jwt-ui 1.11.2 → 1.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/jwt-ui.umd.js CHANGED
@@ -210,12 +210,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
210
210
  JSZip uses the library pako released under the MIT license :
211
211
  https://github.com/nodeca/pako/blob/main/LICENSE
212
212
  */(function(e,t){(function(n){e.exports=n()})(function(){return function n(i,r,o){function s(f,d){if(!r[f]){if(!i[f]){var c=typeof Eb=="function"&&Eb;if(!d&&c)return c(f,!0);if(a)return a(f,!0);var h=new Error("Cannot find module '"+f+"'");throw h.code="MODULE_NOT_FOUND",h}var p=r[f]={exports:{}};i[f][0].call(p.exports,function(m){var y=i[f][1][m];return s(y||m)},p,p.exports,n,i,r,o)}return r[f].exports}for(var a=typeof Eb=="function"&&Eb,u=0;u<o.length;u++)s(o[u]);return s}({1:[function(n,i,r){var o=n("./utils"),s=n("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(u){for(var f,d,c,h,p,m,y,v=[],b=0,g=u.length,k=g,w=o.getTypeOf(u)!=="string";b<u.length;)k=g-b,c=w?(f=u[b++],d=b<g?u[b++]:0,b<g?u[b++]:0):(f=u.charCodeAt(b++),d=b<g?u.charCodeAt(b++):0,b<g?u.charCodeAt(b++):0),h=f>>2,p=(3&f)<<4|d>>4,m=1<k?(15&d)<<2|c>>6:64,y=2<k?63&c:64,v.push(a.charAt(h)+a.charAt(p)+a.charAt(m)+a.charAt(y));return v.join("")},r.decode=function(u){var f,d,c,h,p,m,y=0,v=0,b="data:";if(u.substr(0,b.length)===b)throw new Error("Invalid base64 input, it looks like a data url.");var g,k=3*(u=u.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(u.charAt(u.length-1)===a.charAt(64)&&k--,u.charAt(u.length-2)===a.charAt(64)&&k--,k%1!=0)throw new Error("Invalid base64 input, bad content length.");for(g=s.uint8array?new Uint8Array(0|k):new Array(0|k);y<u.length;)f=a.indexOf(u.charAt(y++))<<2|(h=a.indexOf(u.charAt(y++)))>>4,d=(15&h)<<4|(p=a.indexOf(u.charAt(y++)))>>2,c=(3&p)<<6|(m=a.indexOf(u.charAt(y++))),g[v++]=f,p!==64&&(g[v++]=d),m!==64&&(g[v++]=c);return g}},{"./support":30,"./utils":32}],2:[function(n,i,r){var o=n("./external"),s=n("./stream/DataWorker"),a=n("./stream/Crc32Probe"),u=n("./stream/DataLengthProbe");function f(d,c,h,p,m){this.compressedSize=d,this.uncompressedSize=c,this.crc32=h,this.compression=p,this.compressedContent=m}f.prototype={getContentWorker:function(){var d=new s(o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new u("data_length")),c=this;return d.on("end",function(){if(this.streamInfo.data_length!==c.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),d},getCompressedWorker:function(){return new s(o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},f.createWorkerFrom=function(d,c,h){return d.pipe(new a).pipe(new u("uncompressedSize")).pipe(c.compressWorker(h)).pipe(new u("compressedSize")).withStreamInfo("compression",c)},i.exports=f},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,i,r){var o=n("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new o("STORE compression")},uncompressWorker:function(){return new o("STORE decompression")}},r.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,i,r){var o=n("./utils"),s=function(){for(var a,u=[],f=0;f<256;f++){a=f;for(var d=0;d<8;d++)a=1&a?3988292384^a>>>1:a>>>1;u[f]=a}return u}();i.exports=function(a,u){return a!==void 0&&a.length?o.getTypeOf(a)!=="string"?function(f,d,c,h){var p=s,m=h+c;f^=-1;for(var y=h;y<m;y++)f=f>>>8^p[255&(f^d[y])];return-1^f}(0|u,a,a.length,0):function(f,d,c,h){var p=s,m=h+c;f^=-1;for(var y=h;y<m;y++)f=f>>>8^p[255&(f^d.charCodeAt(y))];return-1^f}(0|u,a,a.length,0):0}},{"./utils":32}],5:[function(n,i,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(n,i,r){var o=null;o=typeof Promise<"u"?Promise:n("lie"),i.exports={Promise:o}},{lie:37}],7:[function(n,i,r){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",s=n("pako"),a=n("./utils"),u=n("./stream/GenericWorker"),f=o?"uint8array":"array";function d(c,h){u.call(this,"FlateWorker/"+c),this._pako=null,this._pakoAction=c,this._pakoOptions=h,this.meta={}}r.magic="\b\0",a.inherits(d,u),d.prototype.processChunk=function(c){this.meta=c.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(f,c.data),!1)},d.prototype.flush=function(){u.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},d.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this._pako=null},d.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var c=this;this._pako.onData=function(h){c.push({data:h,meta:c.meta})}},r.compressWorker=function(c){return new d("Deflate",c)},r.uncompressWorker=function(){return new d("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,i,r){function o(p,m){var y,v="";for(y=0;y<m;y++)v+=String.fromCharCode(255&p),p>>>=8;return v}function s(p,m,y,v,b,g){var k,w,T=p.file,S=p.compression,_=g!==f.utf8encode,A=a.transformTo("string",g(T.name)),D=a.transformTo("string",f.utf8encode(T.name)),x=T.comment,B=a.transformTo("string",g(x)),E=a.transformTo("string",f.utf8encode(x)),F=D.length!==T.name.length,C=E.length!==x.length,I="",N="",H="",Q=T.dir,ie=T.date,ae={crc32:0,compressedSize:0,uncompressedSize:0};m&&!y||(ae.crc32=p.crc32,ae.compressedSize=p.compressedSize,ae.uncompressedSize=p.uncompressedSize);var M=0;m&&(M|=8),_||!F&&!C||(M|=2048);var j=0,V=0;Q&&(j|=16),b==="UNIX"?(V=798,j|=function(W,G){var $=W;return W||($=G?16893:33204),(65535&$)<<16}(T.unixPermissions,Q)):(V=20,j|=function(W){return 63&(W||0)}(T.dosPermissions)),k=ie.getUTCHours(),k<<=6,k|=ie.getUTCMinutes(),k<<=5,k|=ie.getUTCSeconds()/2,w=ie.getUTCFullYear()-1980,w<<=4,w|=ie.getUTCMonth()+1,w<<=5,w|=ie.getUTCDate(),F&&(N=o(1,1)+o(d(A),4)+D,I+="up"+o(N.length,2)+N),C&&(H=o(1,1)+o(d(B),4)+E,I+="uc"+o(H.length,2)+H);var L="";return L+=`
213
- \0`,L+=o(M,2),L+=S.magic,L+=o(k,2),L+=o(w,2),L+=o(ae.crc32,4),L+=o(ae.compressedSize,4),L+=o(ae.uncompressedSize,4),L+=o(A.length,2),L+=o(I.length,2),{fileRecord:c.LOCAL_FILE_HEADER+L+A+I,dirRecord:c.CENTRAL_FILE_HEADER+o(V,2)+L+o(B.length,2)+"\0\0\0\0"+o(j,4)+o(v,4)+A+I+B}}var a=n("../utils"),u=n("../stream/GenericWorker"),f=n("../utf8"),d=n("../crc32"),c=n("../signature");function h(p,m,y,v){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=m,this.zipPlatform=y,this.encodeFileName=v,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(h,u),h.prototype.push=function(p){var m=p.meta.percent||0,y=this.entriesCount,v=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,u.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:y?(m+100*(y-v-1))/y:100}}))},h.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var m=this.streamFiles&&!p.file.dir;if(m){var y=s(p,m,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:y.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(p){this.accumulate=!1;var m=this.streamFiles&&!p.file.dir,y=s(p,m,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(y.dirRecord),m)this.push({data:function(v){return c.DATA_DESCRIPTOR+o(v.crc32,4)+o(v.compressedSize,4)+o(v.uncompressedSize,4)}(p),meta:{percent:100}});else for(this.push({data:y.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var p=this.bytesWritten,m=0;m<this.dirRecords.length;m++)this.push({data:this.dirRecords[m],meta:{percent:100}});var y=this.bytesWritten-p,v=function(b,g,k,w,T){var S=a.transformTo("string",T(w));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(b,2)+o(b,2)+o(g,4)+o(k,4)+o(S.length,2)+S}(this.dirRecords.length,y,p,this.zipComment,this.encodeFileName);this.push({data:v,meta:{percent:100}})},h.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},h.prototype.registerPrevious=function(p){this._sources.push(p);var m=this;return p.on("data",function(y){m.processChunk(y)}),p.on("end",function(){m.closedSource(m.previous.streamInfo),m._sources.length?m.prepareNextSource():m.end()}),p.on("error",function(y){m.error(y)}),this},h.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},h.prototype.error=function(p){var m=this._sources;if(!u.prototype.error.call(this,p))return!1;for(var y=0;y<m.length;y++)try{m[y].error(p)}catch{}return!0},h.prototype.lock=function(){u.prototype.lock.call(this);for(var p=this._sources,m=0;m<p.length;m++)p[m].lock()},i.exports=h},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,i,r){var o=n("../compressions"),s=n("./ZipFileWorker");r.generateWorker=function(a,u,f){var d=new s(u.streamFiles,f,u.platform,u.encodeFileName),c=0;try{a.forEach(function(h,p){c++;var m=function(g,k){var w=g||k,T=o[w];if(!T)throw new Error(w+" is not a valid compression method !");return T}(p.options.compression,u.compression),y=p.options.compressionOptions||u.compressionOptions||{},v=p.dir,b=p.date;p._compressWorker(m,y).withStreamInfo("file",{name:h,dir:v,date:b,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(d)}),d.entriesCount=c}catch(h){d.error(h)}return d}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,i,r){function o(){if(!(this instanceof o))return new o;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var s=new o;for(var a in this)typeof this[a]!="function"&&(s[a]=this[a]);return s}}(o.prototype=n("./object")).loadAsync=n("./load"),o.support=n("./support"),o.defaults=n("./defaults"),o.version="3.10.1",o.loadAsync=function(s,a){return new o().loadAsync(s,a)},o.external=n("./external"),i.exports=o},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,i,r){var o=n("./utils"),s=n("./external"),a=n("./utf8"),u=n("./zipEntries"),f=n("./stream/Crc32Probe"),d=n("./nodejsUtils");function c(h){return new s.Promise(function(p,m){var y=h.decompressed.getContentWorker().pipe(new f);y.on("error",function(v){m(v)}).on("end",function(){y.streamInfo.crc32!==h.decompressed.crc32?m(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}i.exports=function(h,p){var m=this;return p=o.extend(p||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),d.isNode&&d.isStream(h)?s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):o.prepareContent("the loaded zip file",h,!0,p.optimizedBinaryString,p.base64).then(function(y){var v=new u(p);return v.load(y),v}).then(function(y){var v=[s.Promise.resolve(y)],b=y.files;if(p.checkCRC32)for(var g=0;g<b.length;g++)v.push(c(b[g]));return s.Promise.all(v)}).then(function(y){for(var v=y.shift(),b=v.files,g=0;g<b.length;g++){var k=b[g],w=k.fileNameStr,T=o.resolve(k.fileNameStr);m.file(T,k.decompressed,{binary:!0,optimizedBinaryString:!0,date:k.date,dir:k.dir,comment:k.fileCommentStr.length?k.fileCommentStr:null,unixPermissions:k.unixPermissions,dosPermissions:k.dosPermissions,createFolders:p.createFolders}),k.dir||(m.file(T).unsafeOriginalName=w)}return v.zipComment.length&&(m.comment=v.zipComment),m})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,i,r){var o=n("../utils"),s=n("../stream/GenericWorker");function a(u,f){s.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(f)}o.inherits(a,s),a.prototype._bindStream=function(u){var f=this;(this._stream=u).pause(),u.on("data",function(d){f.push({data:d,meta:{percent:0}})}).on("error",function(d){f.isPaused?this.generatedError=d:f.error(d)}).on("end",function(){f.isPaused?f._upstreamEnded=!0:f.end()})},a.prototype.pause=function(){return!!s.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},i.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,i,r){var o=n("readable-stream").Readable;function s(a,u,f){o.call(this,u),this._helper=a;var d=this;a.on("data",function(c,h){d.push(c)||d._helper.pause(),f&&f(h)}).on("error",function(c){d.emit("error",c)}).on("end",function(){d.push(null)})}n("../utils").inherits(s,o),s.prototype._read=function(){this._helper.resume()},i.exports=s},{"../utils":32,"readable-stream":16}],14:[function(n,i,r){i.exports={isNode:typeof Buffer<"u",newBufferFrom:function(o,s){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(o,s);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new Buffer(o,s)},allocBuffer:function(o){if(Buffer.alloc)return Buffer.alloc(o);var s=new Buffer(o);return s.fill(0),s},isBuffer:function(o){return Buffer.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(n,i,r){function o(T,S,_){var A,D=a.getTypeOf(S),x=a.extend(_||{},d);x.date=x.date||new Date,x.compression!==null&&(x.compression=x.compression.toUpperCase()),typeof x.unixPermissions=="string"&&(x.unixPermissions=parseInt(x.unixPermissions,8)),x.unixPermissions&&16384&x.unixPermissions&&(x.dir=!0),x.dosPermissions&&16&x.dosPermissions&&(x.dir=!0),x.dir&&(T=b(T)),x.createFolders&&(A=v(T))&&g.call(this,A,!0);var B=D==="string"&&x.binary===!1&&x.base64===!1;_&&_.binary!==void 0||(x.binary=!B),(S instanceof c&&S.uncompressedSize===0||x.dir||!S||S.length===0)&&(x.base64=!1,x.binary=!0,S="",x.compression="STORE",D="string");var E=null;E=S instanceof c||S instanceof u?S:m.isNode&&m.isStream(S)?new y(T,S):a.prepareContent(T,S,x.binary,x.optimizedBinaryString,x.base64);var F=new h(T,E,x);this.files[T]=F}var s=n("./utf8"),a=n("./utils"),u=n("./stream/GenericWorker"),f=n("./stream/StreamHelper"),d=n("./defaults"),c=n("./compressedObject"),h=n("./zipObject"),p=n("./generate"),m=n("./nodejsUtils"),y=n("./nodejs/NodejsStreamInputAdapter"),v=function(T){T.slice(-1)==="/"&&(T=T.substring(0,T.length-1));var S=T.lastIndexOf("/");return 0<S?T.substring(0,S):""},b=function(T){return T.slice(-1)!=="/"&&(T+="/"),T},g=function(T,S){return S=S!==void 0?S:d.createFolders,T=b(T),this.files[T]||o.call(this,T,null,{dir:!0,createFolders:S}),this.files[T]};function k(T){return Object.prototype.toString.call(T)==="[object RegExp]"}var w={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(T){var S,_,A;for(S in this.files)A=this.files[S],(_=S.slice(this.root.length,S.length))&&S.slice(0,this.root.length)===this.root&&T(_,A)},filter:function(T){var S=[];return this.forEach(function(_,A){T(_,A)&&S.push(A)}),S},file:function(T,S,_){if(arguments.length!==1)return T=this.root+T,o.call(this,T,S,_),this;if(k(T)){var A=T;return this.filter(function(x,B){return!B.dir&&A.test(x)})}var D=this.files[this.root+T];return D&&!D.dir?D:null},folder:function(T){if(!T)return this;if(k(T))return this.filter(function(D,x){return x.dir&&T.test(D)});var S=this.root+T,_=g.call(this,S),A=this.clone();return A.root=_.name,A},remove:function(T){T=this.root+T;var S=this.files[T];if(S||(T.slice(-1)!=="/"&&(T+="/"),S=this.files[T]),S&&!S.dir)delete this.files[T];else for(var _=this.filter(function(D,x){return x.name.slice(0,T.length)===T}),A=0;A<_.length;A++)delete this.files[_[A].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(T){var S,_={};try{if((_=a.extend(T||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode})).type=_.type.toLowerCase(),_.compression=_.compression.toUpperCase(),_.type==="binarystring"&&(_.type="string"),!_.type)throw new Error("No output type specified.");a.checkSupport(_.type),_.platform!=="darwin"&&_.platform!=="freebsd"&&_.platform!=="linux"&&_.platform!=="sunos"||(_.platform="UNIX"),_.platform==="win32"&&(_.platform="DOS");var A=_.comment||this.comment||"";S=p.generateWorker(this,_,A)}catch(D){(S=new u("error")).error(D)}return new f(S,_.type||"string",_.mimeType)},generateAsync:function(T,S){return this.generateInternalStream(T).accumulate(S)},generateNodeStream:function(T,S){return(T=T||{}).type||(T.type="nodebuffer"),this.generateInternalStream(T).toNodejsStream(S)}};i.exports=w},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,i,r){i.exports=n("stream")},{stream:void 0}],17:[function(n,i,r){var o=n("./DataReader");function s(a){o.call(this,a);for(var u=0;u<this.data.length;u++)a[u]=255&a[u]}n("../utils").inherits(s,o),s.prototype.byteAt=function(a){return this.data[this.zero+a]},s.prototype.lastIndexOfSignature=function(a){for(var u=a.charCodeAt(0),f=a.charCodeAt(1),d=a.charCodeAt(2),c=a.charCodeAt(3),h=this.length-4;0<=h;--h)if(this.data[h]===u&&this.data[h+1]===f&&this.data[h+2]===d&&this.data[h+3]===c)return h-this.zero;return-1},s.prototype.readAndCheckSignature=function(a){var u=a.charCodeAt(0),f=a.charCodeAt(1),d=a.charCodeAt(2),c=a.charCodeAt(3),h=this.readData(4);return u===h[0]&&f===h[1]&&d===h[2]&&c===h[3]},s.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},i.exports=s},{"../utils":32,"./DataReader":18}],18:[function(n,i,r){var o=n("../utils");function s(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}s.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var u,f=0;for(this.checkOffset(a),u=this.index+a-1;u>=this.index;u--)f=(f<<8)+this.byteAt(u);return this.index+=a,f},readString:function(a){return o.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},i.exports=s},{"../utils":32}],19:[function(n,i,r){var o=n("./Uint8ArrayReader");function s(a){o.call(this,a)}n("../utils").inherits(s,o),s.prototype.readData=function(a){this.checkOffset(a);var u=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},i.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,i,r){var o=n("./DataReader");function s(a){o.call(this,a)}n("../utils").inherits(s,o),s.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},s.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},s.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},s.prototype.readData=function(a){this.checkOffset(a);var u=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},i.exports=s},{"../utils":32,"./DataReader":18}],21:[function(n,i,r){var o=n("./ArrayReader");function s(a){o.call(this,a)}n("../utils").inherits(s,o),s.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},i.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(n,i,r){var o=n("../utils"),s=n("../support"),a=n("./ArrayReader"),u=n("./StringReader"),f=n("./NodeBufferReader"),d=n("./Uint8ArrayReader");i.exports=function(c){var h=o.getTypeOf(c);return o.checkSupport(h),h!=="string"||s.uint8array?h==="nodebuffer"?new f(c):s.uint8array?new d(o.transformTo("uint8array",c)):new a(o.transformTo("array",c)):new u(c)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,i,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,i,r){var o=n("./GenericWorker"),s=n("../utils");function a(u){o.call(this,"ConvertWorker to "+u),this.destType=u}s.inherits(a,o),a.prototype.processChunk=function(u){this.push({data:s.transformTo(this.destType,u.data),meta:u.meta})},i.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(n,i,r){var o=n("./GenericWorker"),s=n("../crc32");function a(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(a,o),a.prototype.processChunk=function(u){this.streamInfo.crc32=s(u.data,this.streamInfo.crc32||0),this.push(u)},i.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,i,r){var o=n("../utils"),s=n("./GenericWorker");function a(u){s.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}o.inherits(a,s),a.prototype.processChunk=function(u){if(u){var f=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=f+u.data.length}s.prototype.processChunk.call(this,u)},i.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(n,i,r){var o=n("../utils"),s=n("./GenericWorker");function a(u){s.call(this,"DataWorker");var f=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(d){f.dataIsReady=!0,f.data=d,f.max=d&&d.length||0,f.type=o.getTypeOf(d),f.isPaused||f._tickAndRepeat()},function(d){f.error(d)})}o.inherits(a,s),a.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,f=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,f);break;case"uint8array":u=this.data.subarray(this.index,f);break;case"array":case"nodebuffer":u=this.data.slice(this.index,f)}return this.index=f,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(n,i,r){function o(s){this.name=s||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}o.prototype={push:function(s){this.emit("data",s)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(s){this.emit("error",s)}return!0},error:function(s){return!this.isFinished&&(this.isPaused?this.generatedError=s:(this.isFinished=!0,this.emit("error",s),this.previous&&this.previous.error(s),this.cleanUp()),!0)},on:function(s,a){return this._listeners[s].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(s,a){if(this._listeners[s])for(var u=0;u<this._listeners[s].length;u++)this._listeners[s][u].call(this,a)},pipe:function(s){return s.registerPrevious(this)},registerPrevious:function(s){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=s.streamInfo,this.mergeStreamInfo(),this.previous=s;var a=this;return s.on("data",function(u){a.processChunk(u)}),s.on("end",function(){a.end()}),s.on("error",function(u){a.error(u)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var s=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),s=!0),this.previous&&this.previous.resume(),!s},flush:function(){},processChunk:function(s){this.push(s)},withStreamInfo:function(s,a){return this.extraStreamInfo[s]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var s in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,s)&&(this.streamInfo[s]=this.extraStreamInfo[s])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var s="Worker "+this.name;return this.previous?this.previous+" -> "+s:s}},i.exports=o},{}],29:[function(n,i,r){var o=n("../utils"),s=n("./ConvertWorker"),a=n("./GenericWorker"),u=n("../base64"),f=n("../support"),d=n("../external"),c=null;if(f.nodestream)try{c=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function h(m,y){return new d.Promise(function(v,b){var g=[],k=m._internalType,w=m._outputType,T=m._mimeType;m.on("data",function(S,_){g.push(S),y&&y(_)}).on("error",function(S){g=[],b(S)}).on("end",function(){try{var S=function(_,A,D){switch(_){case"blob":return o.newBlob(o.transformTo("arraybuffer",A),D);case"base64":return u.encode(A);default:return o.transformTo(_,A)}}(w,function(_,A){var D,x=0,B=null,E=0;for(D=0;D<A.length;D++)E+=A[D].length;switch(_){case"string":return A.join("");case"array":return Array.prototype.concat.apply([],A);case"uint8array":for(B=new Uint8Array(E),D=0;D<A.length;D++)B.set(A[D],x),x+=A[D].length;return B;case"nodebuffer":return Buffer.concat(A);default:throw new Error("concat : unsupported type '"+_+"'")}}(k,g),T);v(S)}catch(_){b(_)}g=[]}).resume()})}function p(m,y,v){var b=y;switch(y){case"blob":case"arraybuffer":b="uint8array";break;case"base64":b="string"}try{this._internalType=b,this._outputType=y,this._mimeType=v,o.checkSupport(b),this._worker=m.pipe(new s(b)),m.lock()}catch(g){this._worker=new a("error"),this._worker.error(g)}}p.prototype={accumulate:function(m){return h(this,m)},on:function(m,y){var v=this;return m==="data"?this._worker.on(m,function(b){y.call(v,b.data,b.meta)}):this._worker.on(m,function(){o.delay(y,arguments,v)}),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(m){if(o.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:this._outputType!=="nodebuffer"},m)}},i.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,i,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",r.nodebuffer=typeof Buffer<"u",r.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")r.blob=!1;else{var o=new ArrayBuffer(0);try{r.blob=new Blob([o],{type:"application/zip"}).size===0}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(o),r.blob=s.getBlob("application/zip").size===0}catch{r.blob=!1}}}try{r.nodestream=!!n("readable-stream").Readable}catch{r.nodestream=!1}},{"readable-stream":16}],31:[function(n,i,r){for(var o=n("./utils"),s=n("./support"),a=n("./nodejsUtils"),u=n("./stream/GenericWorker"),f=new Array(256),d=0;d<256;d++)f[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;f[254]=f[254]=1;function c(){u.call(this,"utf-8 decode"),this.leftOver=null}function h(){u.call(this,"utf-8 encode")}r.utf8encode=function(p){return s.nodebuffer?a.newBufferFrom(p,"utf-8"):function(m){var y,v,b,g,k,w=m.length,T=0;for(g=0;g<w;g++)(64512&(v=m.charCodeAt(g)))==55296&&g+1<w&&(64512&(b=m.charCodeAt(g+1)))==56320&&(v=65536+(v-55296<<10)+(b-56320),g++),T+=v<128?1:v<2048?2:v<65536?3:4;for(y=s.uint8array?new Uint8Array(T):new Array(T),g=k=0;k<T;g++)(64512&(v=m.charCodeAt(g)))==55296&&g+1<w&&(64512&(b=m.charCodeAt(g+1)))==56320&&(v=65536+(v-55296<<10)+(b-56320),g++),v<128?y[k++]=v:(v<2048?y[k++]=192|v>>>6:(v<65536?y[k++]=224|v>>>12:(y[k++]=240|v>>>18,y[k++]=128|v>>>12&63),y[k++]=128|v>>>6&63),y[k++]=128|63&v);return y}(p)},r.utf8decode=function(p){return s.nodebuffer?o.transformTo("nodebuffer",p).toString("utf-8"):function(m){var y,v,b,g,k=m.length,w=new Array(2*k);for(y=v=0;y<k;)if((b=m[y++])<128)w[v++]=b;else if(4<(g=f[b]))w[v++]=65533,y+=g-1;else{for(b&=g===2?31:g===3?15:7;1<g&&y<k;)b=b<<6|63&m[y++],g--;1<g?w[v++]=65533:b<65536?w[v++]=b:(b-=65536,w[v++]=55296|b>>10&1023,w[v++]=56320|1023&b)}return w.length!==v&&(w.subarray?w=w.subarray(0,v):w.length=v),o.applyFromCharCode(w)}(p=o.transformTo(s.uint8array?"uint8array":"array",p))},o.inherits(c,u),c.prototype.processChunk=function(p){var m=o.transformTo(s.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var y=m;(m=new Uint8Array(y.length+this.leftOver.length)).set(this.leftOver,0),m.set(y,this.leftOver.length)}else m=this.leftOver.concat(m);this.leftOver=null}var v=function(g,k){var w;for((k=k||g.length)>g.length&&(k=g.length),w=k-1;0<=w&&(192&g[w])==128;)w--;return w<0||w===0?k:w+f[g[w]]>k?w:k}(m),b=m;v!==m.length&&(s.uint8array?(b=m.subarray(0,v),this.leftOver=m.subarray(v,m.length)):(b=m.slice(0,v),this.leftOver=m.slice(v,m.length))),this.push({data:r.utf8decode(b),meta:p.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,o.inherits(h,u),h.prototype.processChunk=function(p){this.push({data:r.utf8encode(p.data),meta:p.meta})},r.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,i,r){var o=n("./support"),s=n("./base64"),a=n("./nodejsUtils"),u=n("./external");function f(y){return y}function d(y,v){for(var b=0;b<y.length;++b)v[b]=255&y.charCodeAt(b);return v}n("setimmediate"),r.newBlob=function(y,v){r.checkSupport("blob");try{return new Blob([y],{type:v})}catch{try{var b=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return b.append(y),b.getBlob(v)}catch{throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(y,v,b){var g=[],k=0,w=y.length;if(w<=b)return String.fromCharCode.apply(null,y);for(;k<w;)v==="array"||v==="nodebuffer"?g.push(String.fromCharCode.apply(null,y.slice(k,Math.min(k+b,w)))):g.push(String.fromCharCode.apply(null,y.subarray(k,Math.min(k+b,w)))),k+=b;return g.join("")},stringifyByChar:function(y){for(var v="",b=0;b<y.length;b++)v+=String.fromCharCode(y[b]);return v},applyCanBeUsed:{uint8array:function(){try{return o.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return o.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}}()}};function h(y){var v=65536,b=r.getTypeOf(y),g=!0;if(b==="uint8array"?g=c.applyCanBeUsed.uint8array:b==="nodebuffer"&&(g=c.applyCanBeUsed.nodebuffer),g)for(;1<v;)try{return c.stringifyByChunk(y,b,v)}catch{v=Math.floor(v/2)}return c.stringifyByChar(y)}function p(y,v){for(var b=0;b<y.length;b++)v[b]=y[b];return v}r.applyFromCharCode=h;var m={};m.string={string:f,array:function(y){return d(y,new Array(y.length))},arraybuffer:function(y){return m.string.uint8array(y).buffer},uint8array:function(y){return d(y,new Uint8Array(y.length))},nodebuffer:function(y){return d(y,a.allocBuffer(y.length))}},m.array={string:h,array:f,arraybuffer:function(y){return new Uint8Array(y).buffer},uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return a.newBufferFrom(y)}},m.arraybuffer={string:function(y){return h(new Uint8Array(y))},array:function(y){return p(new Uint8Array(y),new Array(y.byteLength))},arraybuffer:f,uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return a.newBufferFrom(new Uint8Array(y))}},m.uint8array={string:h,array:function(y){return p(y,new Array(y.length))},arraybuffer:function(y){return y.buffer},uint8array:f,nodebuffer:function(y){return a.newBufferFrom(y)}},m.nodebuffer={string:h,array:function(y){return p(y,new Array(y.length))},arraybuffer:function(y){return m.nodebuffer.uint8array(y).buffer},uint8array:function(y){return p(y,new Uint8Array(y.length))},nodebuffer:f},r.transformTo=function(y,v){if(v=v||"",!y)return v;r.checkSupport(y);var b=r.getTypeOf(v);return m[b][y](v)},r.resolve=function(y){for(var v=y.split("/"),b=[],g=0;g<v.length;g++){var k=v[g];k==="."||k===""&&g!==0&&g!==v.length-1||(k===".."?b.pop():b.push(k))}return b.join("/")},r.getTypeOf=function(y){return typeof y=="string"?"string":Object.prototype.toString.call(y)==="[object Array]"?"array":o.nodebuffer&&a.isBuffer(y)?"nodebuffer":o.uint8array&&y instanceof Uint8Array?"uint8array":o.arraybuffer&&y instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(y){if(!o[y.toLowerCase()])throw new Error(y+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(y){var v,b,g="";for(b=0;b<(y||"").length;b++)g+="\\x"+((v=y.charCodeAt(b))<16?"0":"")+v.toString(16).toUpperCase();return g},r.delay=function(y,v,b){setImmediate(function(){y.apply(b||null,v||[])})},r.inherits=function(y,v){function b(){}b.prototype=v.prototype,y.prototype=new b},r.extend=function(){var y,v,b={};for(y=0;y<arguments.length;y++)for(v in arguments[y])Object.prototype.hasOwnProperty.call(arguments[y],v)&&b[v]===void 0&&(b[v]=arguments[y][v]);return b},r.prepareContent=function(y,v,b,g,k){return u.Promise.resolve(v).then(function(w){return o.blob&&(w instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(w))!==-1)&&typeof FileReader<"u"?new u.Promise(function(T,S){var _=new FileReader;_.onload=function(A){T(A.target.result)},_.onerror=function(A){S(A.target.error)},_.readAsArrayBuffer(w)}):w}).then(function(w){var T=r.getTypeOf(w);return T?(T==="arraybuffer"?w=r.transformTo("uint8array",w):T==="string"&&(k?w=s.decode(w):b&&g!==!0&&(w=function(S){return d(S,o.uint8array?new Uint8Array(S.length):new Array(S.length))}(w))),w):u.Promise.reject(new Error("Can't read the data of '"+y+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,i,r){var o=n("./reader/readerFor"),s=n("./utils"),a=n("./signature"),u=n("./zipEntry"),f=n("./support");function d(c){this.files=[],this.loadOptions=c}d.prototype={checkSignature:function(c){if(!this.reader.readAndCheckSignature(c)){this.reader.index-=4;var h=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+s.pretty(h)+", expected "+s.pretty(c)+")")}},isSignature:function(c,h){var p=this.reader.index;this.reader.setIndex(c);var m=this.reader.readString(4)===h;return this.reader.setIndex(p),m},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var c=this.reader.readData(this.zipCommentLength),h=f.uint8array?"uint8array":"array",p=s.transformTo(h,c);this.zipComment=this.loadOptions.decodeFileName(p)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var c,h,p,m=this.zip64EndOfCentralSize-44;0<m;)c=this.reader.readInt(2),h=this.reader.readInt(4),p=this.reader.readData(h),this.zip64ExtensibleData[c]={id:c,length:h,value:p}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var c,h;for(c=0;c<this.files.length;c++)h=this.files[c],this.reader.setIndex(h.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),h.readLocalPart(this.reader),h.handleUTF8(),h.processAttributes()},readCentralDir:function(){var c;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(c=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(c);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var c=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(c<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(c);var h=c;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,(c=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(c),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var p=this.centralDirOffset+this.centralDirSize;this.zip64&&(p+=20,p+=12+this.zip64EndOfCentralSize);var m=h-p;if(0<m)this.isSignature(h,a.CENTRAL_FILE_HEADER)||(this.reader.zero=m);else if(m<0)throw new Error("Corrupted zip: missing "+Math.abs(m)+" bytes.")},prepareReader:function(c){this.reader=o(c)},load:function(c){this.prepareReader(c),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=d},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,i,r){var o=n("./reader/readerFor"),s=n("./utils"),a=n("./compressedObject"),u=n("./crc32"),f=n("./utf8"),d=n("./compressions"),c=n("./support");function h(p,m){this.options=p,this.loadOptions=m}h.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(p){var m,y;if(p.skip(22),this.fileNameLength=p.readInt(2),y=p.readInt(2),this.fileName=p.readData(this.fileNameLength),p.skip(y),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((m=function(v){for(var b in d)if(Object.prototype.hasOwnProperty.call(d,b)&&d[b].magic===v)return d[b];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,m,p.readData(this.compressedSize))},readCentralPart:function(p){this.versionMadeBy=p.readInt(2),p.skip(2),this.bitFlag=p.readInt(2),this.compressionMethod=p.readString(2),this.date=p.readDate(),this.crc32=p.readInt(4),this.compressedSize=p.readInt(4),this.uncompressedSize=p.readInt(4);var m=p.readInt(2);if(this.extraFieldsLength=p.readInt(2),this.fileCommentLength=p.readInt(2),this.diskNumberStart=p.readInt(2),this.internalFileAttributes=p.readInt(2),this.externalFileAttributes=p.readInt(4),this.localHeaderOffset=p.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");p.skip(m),this.readExtraFields(p),this.parseZIP64ExtraField(p),this.fileComment=p.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var p=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=o(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var m,y,v,b=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4<b;)m=p.readInt(2),y=p.readInt(2),v=p.readData(y),this.extraFields[m]={id:m,length:y,value:v};p.setIndex(b)},handleUTF8:function(){var p=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=f.utf8decode(this.fileName),this.fileCommentStr=f.utf8decode(this.fileComment);else{var m=this.findExtraFieldUnicodePath();if(m!==null)this.fileNameStr=m;else{var y=s.transformTo(p,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(y)}var v=this.findExtraFieldUnicodeComment();if(v!==null)this.fileCommentStr=v;else{var b=s.transformTo(p,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(b)}}},findExtraFieldUnicodePath:function(){var p=this.extraFields[28789];if(p){var m=o(p.value);return m.readInt(1)!==1||u(this.fileName)!==m.readInt(4)?null:f.utf8decode(m.readData(p.length-5))}return null},findExtraFieldUnicodeComment:function(){var p=this.extraFields[25461];if(p){var m=o(p.value);return m.readInt(1)!==1||u(this.fileComment)!==m.readInt(4)?null:f.utf8decode(m.readData(p.length-5))}return null}},i.exports=h},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,i,r){function o(m,y,v){this.name=m,this.dir=v.dir,this.date=v.date,this.comment=v.comment,this.unixPermissions=v.unixPermissions,this.dosPermissions=v.dosPermissions,this._data=y,this._dataBinary=v.binary,this.options={compression:v.compression,compressionOptions:v.compressionOptions}}var s=n("./stream/StreamHelper"),a=n("./stream/DataWorker"),u=n("./utf8"),f=n("./compressedObject"),d=n("./stream/GenericWorker");o.prototype={internalStream:function(m){var y=null,v="string";try{if(!m)throw new Error("No output type specified.");var b=(v=m.toLowerCase())==="string"||v==="text";v!=="binarystring"&&v!=="text"||(v="string"),y=this._decompressWorker();var g=!this._dataBinary;g&&!b&&(y=y.pipe(new u.Utf8EncodeWorker)),!g&&b&&(y=y.pipe(new u.Utf8DecodeWorker))}catch(k){(y=new d("error")).error(k)}return new s(y,v,"")},async:function(m,y){return this.internalStream(m).accumulate(y)},nodeStream:function(m,y){return this.internalStream(m||"nodebuffer").toNodejsStream(y)},_compressWorker:function(m,y){if(this._data instanceof f&&this._data.compression.magic===m.magic)return this._data.getCompressedWorker();var v=this._decompressWorker();return this._dataBinary||(v=v.pipe(new u.Utf8EncodeWorker)),f.createWorkerFrom(v,m,y)},_decompressWorker:function(){return this._data instanceof f?this._data.getContentWorker():this._data instanceof d?this._data:new a(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},p=0;p<c.length;p++)o.prototype[c[p]]=h;i.exports=o},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,i,r){(function(o){var s,a,u=o.MutationObserver||o.WebKitMutationObserver;if(u){var f=0,d=new u(m),c=o.document.createTextNode("");d.observe(c,{characterData:!0}),s=function(){c.data=f=++f%2}}else if(o.setImmediate||o.MessageChannel===void 0)s="document"in o&&"onreadystatechange"in o.document.createElement("script")?function(){var y=o.document.createElement("script");y.onreadystatechange=function(){m(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},o.document.documentElement.appendChild(y)}:function(){setTimeout(m,0)};else{var h=new o.MessageChannel;h.port1.onmessage=m,s=function(){h.port2.postMessage(0)}}var p=[];function m(){var y,v;a=!0;for(var b=p.length;b;){for(v=p,p=[],y=-1;++y<b;)v[y]();b=p.length}a=!1}i.exports=function(y){p.push(y)!==1||a||s()}}).call(this,typeof sm<"u"?sm:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,i,r){var o=n("immediate");function s(){}var a={},u=["REJECTED"],f=["FULFILLED"],d=["PENDING"];function c(b){if(typeof b!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,b!==s&&y(this,b)}function h(b,g,k){this.promise=b,typeof g=="function"&&(this.onFulfilled=g,this.callFulfilled=this.otherCallFulfilled),typeof k=="function"&&(this.onRejected=k,this.callRejected=this.otherCallRejected)}function p(b,g,k){o(function(){var w;try{w=g(k)}catch(T){return a.reject(b,T)}w===b?a.reject(b,new TypeError("Cannot resolve promise with itself")):a.resolve(b,w)})}function m(b){var g=b&&b.then;if(b&&(typeof b=="object"||typeof b=="function")&&typeof g=="function")return function(){g.apply(b,arguments)}}function y(b,g){var k=!1;function w(_){k||(k=!0,a.reject(b,_))}function T(_){k||(k=!0,a.resolve(b,_))}var S=v(function(){g(T,w)});S.status==="error"&&w(S.value)}function v(b,g){var k={};try{k.value=b(g),k.status="success"}catch(w){k.status="error",k.value=w}return k}(i.exports=c).prototype.finally=function(b){if(typeof b!="function")return this;var g=this.constructor;return this.then(function(k){return g.resolve(b()).then(function(){return k})},function(k){return g.resolve(b()).then(function(){throw k})})},c.prototype.catch=function(b){return this.then(null,b)},c.prototype.then=function(b,g){if(typeof b!="function"&&this.state===f||typeof g!="function"&&this.state===u)return this;var k=new this.constructor(s);return this.state!==d?p(k,this.state===f?b:g,this.outcome):this.queue.push(new h(k,b,g)),k},h.prototype.callFulfilled=function(b){a.resolve(this.promise,b)},h.prototype.otherCallFulfilled=function(b){p(this.promise,this.onFulfilled,b)},h.prototype.callRejected=function(b){a.reject(this.promise,b)},h.prototype.otherCallRejected=function(b){p(this.promise,this.onRejected,b)},a.resolve=function(b,g){var k=v(m,g);if(k.status==="error")return a.reject(b,k.value);var w=k.value;if(w)y(b,w);else{b.state=f,b.outcome=g;for(var T=-1,S=b.queue.length;++T<S;)b.queue[T].callFulfilled(g)}return b},a.reject=function(b,g){b.state=u,b.outcome=g;for(var k=-1,w=b.queue.length;++k<w;)b.queue[k].callRejected(g);return b},c.resolve=function(b){return b instanceof this?b:a.resolve(new this(s),b)},c.reject=function(b){var g=new this(s);return a.reject(g,b)},c.all=function(b){var g=this;if(Object.prototype.toString.call(b)!=="[object Array]")return this.reject(new TypeError("must be an array"));var k=b.length,w=!1;if(!k)return this.resolve([]);for(var T=new Array(k),S=0,_=-1,A=new this(s);++_<k;)D(b[_],_);return A;function D(x,B){g.resolve(x).then(function(E){T[B]=E,++S!==k||w||(w=!0,a.resolve(A,T))},function(E){w||(w=!0,a.reject(A,E))})}},c.race=function(b){var g=this;if(Object.prototype.toString.call(b)!=="[object Array]")return this.reject(new TypeError("must be an array"));var k=b.length,w=!1;if(!k)return this.resolve([]);for(var T=-1,S=new this(s);++T<k;)_=b[T],g.resolve(_).then(function(A){w||(w=!0,a.resolve(S,A))},function(A){w||(w=!0,a.reject(S,A))});var _;return S}},{immediate:36}],38:[function(n,i,r){var o={};(0,n("./lib/utils/common").assign)(o,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),i.exports=o},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,i,r){var o=n("./zlib/deflate"),s=n("./utils/common"),a=n("./utils/strings"),u=n("./zlib/messages"),f=n("./zlib/zstream"),d=Object.prototype.toString,c=0,h=-1,p=0,m=8;function y(b){if(!(this instanceof y))return new y(b);this.options=s.assign({level:h,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},b||{});var g=this.options;g.raw&&0<g.windowBits?g.windowBits=-g.windowBits:g.gzip&&0<g.windowBits&&g.windowBits<16&&(g.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var k=o.deflateInit2(this.strm,g.level,g.method,g.windowBits,g.memLevel,g.strategy);if(k!==c)throw new Error(u[k]);if(g.header&&o.deflateSetHeader(this.strm,g.header),g.dictionary){var w;if(w=typeof g.dictionary=="string"?a.string2buf(g.dictionary):d.call(g.dictionary)==="[object ArrayBuffer]"?new Uint8Array(g.dictionary):g.dictionary,(k=o.deflateSetDictionary(this.strm,w))!==c)throw new Error(u[k]);this._dict_set=!0}}function v(b,g){var k=new y(g);if(k.push(b,!0),k.err)throw k.msg||u[k.err];return k.result}y.prototype.push=function(b,g){var k,w,T=this.strm,S=this.options.chunkSize;if(this.ended)return!1;w=g===~~g?g:g===!0?4:0,typeof b=="string"?T.input=a.string2buf(b):d.call(b)==="[object ArrayBuffer]"?T.input=new Uint8Array(b):T.input=b,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new s.Buf8(S),T.next_out=0,T.avail_out=S),(k=o.deflate(T,w))!==1&&k!==c)return this.onEnd(k),!(this.ended=!0);T.avail_out!==0&&(T.avail_in!==0||w!==4&&w!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(s.shrinkBuf(T.output,T.next_out))):this.onData(s.shrinkBuf(T.output,T.next_out)))}while((0<T.avail_in||T.avail_out===0)&&k!==1);return w===4?(k=o.deflateEnd(this.strm),this.onEnd(k),this.ended=!0,k===c):w!==2||(this.onEnd(c),!(T.avail_out=0))},y.prototype.onData=function(b){this.chunks.push(b)},y.prototype.onEnd=function(b){b===c&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},r.Deflate=y,r.deflate=v,r.deflateRaw=function(b,g){return(g=g||{}).raw=!0,v(b,g)},r.gzip=function(b,g){return(g=g||{}).gzip=!0,v(b,g)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,i,r){var o=n("./zlib/inflate"),s=n("./utils/common"),a=n("./utils/strings"),u=n("./zlib/constants"),f=n("./zlib/messages"),d=n("./zlib/zstream"),c=n("./zlib/gzheader"),h=Object.prototype.toString;function p(y){if(!(this instanceof p))return new p(y);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},y||{});var v=this.options;v.raw&&0<=v.windowBits&&v.windowBits<16&&(v.windowBits=-v.windowBits,v.windowBits===0&&(v.windowBits=-15)),!(0<=v.windowBits&&v.windowBits<16)||y&&y.windowBits||(v.windowBits+=32),15<v.windowBits&&v.windowBits<48&&!(15&v.windowBits)&&(v.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var b=o.inflateInit2(this.strm,v.windowBits);if(b!==u.Z_OK)throw new Error(f[b]);this.header=new c,o.inflateGetHeader(this.strm,this.header)}function m(y,v){var b=new p(v);if(b.push(y,!0),b.err)throw b.msg||f[b.err];return b.result}p.prototype.push=function(y,v){var b,g,k,w,T,S,_=this.strm,A=this.options.chunkSize,D=this.options.dictionary,x=!1;if(this.ended)return!1;g=v===~~v?v:v===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof y=="string"?_.input=a.binstring2buf(y):h.call(y)==="[object ArrayBuffer]"?_.input=new Uint8Array(y):_.input=y,_.next_in=0,_.avail_in=_.input.length;do{if(_.avail_out===0&&(_.output=new s.Buf8(A),_.next_out=0,_.avail_out=A),(b=o.inflate(_,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&D&&(S=typeof D=="string"?a.string2buf(D):h.call(D)==="[object ArrayBuffer]"?new Uint8Array(D):D,b=o.inflateSetDictionary(this.strm,S)),b===u.Z_BUF_ERROR&&x===!0&&(b=u.Z_OK,x=!1),b!==u.Z_STREAM_END&&b!==u.Z_OK)return this.onEnd(b),!(this.ended=!0);_.next_out&&(_.avail_out!==0&&b!==u.Z_STREAM_END&&(_.avail_in!==0||g!==u.Z_FINISH&&g!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(k=a.utf8border(_.output,_.next_out),w=_.next_out-k,T=a.buf2string(_.output,k),_.next_out=w,_.avail_out=A-w,w&&s.arraySet(_.output,_.output,k,w,0),this.onData(T)):this.onData(s.shrinkBuf(_.output,_.next_out)))),_.avail_in===0&&_.avail_out===0&&(x=!0)}while((0<_.avail_in||_.avail_out===0)&&b!==u.Z_STREAM_END);return b===u.Z_STREAM_END&&(g=u.Z_FINISH),g===u.Z_FINISH?(b=o.inflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===u.Z_OK):g!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(_.avail_out=0))},p.prototype.onData=function(y){this.chunks.push(y)},p.prototype.onEnd=function(y){y===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},r.Inflate=p,r.inflate=m,r.inflateRaw=function(y,v){return(v=v||{}).raw=!0,m(y,v)},r.ungzip=m},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,i,r){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";r.assign=function(u){for(var f=Array.prototype.slice.call(arguments,1);f.length;){var d=f.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var c in d)d.hasOwnProperty(c)&&(u[c]=d[c])}}return u},r.shrinkBuf=function(u,f){return u.length===f?u:u.subarray?u.subarray(0,f):(u.length=f,u)};var s={arraySet:function(u,f,d,c,h){if(f.subarray&&u.subarray)u.set(f.subarray(d,d+c),h);else for(var p=0;p<c;p++)u[h+p]=f[d+p]},flattenChunks:function(u){var f,d,c,h,p,m;for(f=c=0,d=u.length;f<d;f++)c+=u[f].length;for(m=new Uint8Array(c),f=h=0,d=u.length;f<d;f++)p=u[f],m.set(p,h),h+=p.length;return m}},a={arraySet:function(u,f,d,c,h){for(var p=0;p<c;p++)u[h+p]=f[d+p]},flattenChunks:function(u){return[].concat.apply([],u)}};r.setTyped=function(u){u?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,s)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,a))},r.setTyped(o)},{}],42:[function(n,i,r){var o=n("./common"),s=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var u=new o.Buf8(256),f=0;f<256;f++)u[f]=252<=f?6:248<=f?5:240<=f?4:224<=f?3:192<=f?2:1;function d(c,h){if(h<65537&&(c.subarray&&a||!c.subarray&&s))return String.fromCharCode.apply(null,o.shrinkBuf(c,h));for(var p="",m=0;m<h;m++)p+=String.fromCharCode(c[m]);return p}u[254]=u[254]=1,r.string2buf=function(c){var h,p,m,y,v,b=c.length,g=0;for(y=0;y<b;y++)(64512&(p=c.charCodeAt(y)))==55296&&y+1<b&&(64512&(m=c.charCodeAt(y+1)))==56320&&(p=65536+(p-55296<<10)+(m-56320),y++),g+=p<128?1:p<2048?2:p<65536?3:4;for(h=new o.Buf8(g),y=v=0;v<g;y++)(64512&(p=c.charCodeAt(y)))==55296&&y+1<b&&(64512&(m=c.charCodeAt(y+1)))==56320&&(p=65536+(p-55296<<10)+(m-56320),y++),p<128?h[v++]=p:(p<2048?h[v++]=192|p>>>6:(p<65536?h[v++]=224|p>>>12:(h[v++]=240|p>>>18,h[v++]=128|p>>>12&63),h[v++]=128|p>>>6&63),h[v++]=128|63&p);return h},r.buf2binstring=function(c){return d(c,c.length)},r.binstring2buf=function(c){for(var h=new o.Buf8(c.length),p=0,m=h.length;p<m;p++)h[p]=c.charCodeAt(p);return h},r.buf2string=function(c,h){var p,m,y,v,b=h||c.length,g=new Array(2*b);for(p=m=0;p<b;)if((y=c[p++])<128)g[m++]=y;else if(4<(v=u[y]))g[m++]=65533,p+=v-1;else{for(y&=v===2?31:v===3?15:7;1<v&&p<b;)y=y<<6|63&c[p++],v--;1<v?g[m++]=65533:y<65536?g[m++]=y:(y-=65536,g[m++]=55296|y>>10&1023,g[m++]=56320|1023&y)}return d(g,m)},r.utf8border=function(c,h){var p;for((h=h||c.length)>c.length&&(h=c.length),p=h-1;0<=p&&(192&c[p])==128;)p--;return p<0||p===0?h:p+u[c[p]]>h?p:h}},{"./common":41}],43:[function(n,i,r){i.exports=function(o,s,a,u){for(var f=65535&o|0,d=o>>>16&65535|0,c=0;a!==0;){for(a-=c=2e3<a?2e3:a;d=d+(f=f+s[u++]|0)|0,--c;);f%=65521,d%=65521}return f|d<<16|0}},{}],44:[function(n,i,r){i.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,i,r){var o=function(){for(var s,a=[],u=0;u<256;u++){s=u;for(var f=0;f<8;f++)s=1&s?3988292384^s>>>1:s>>>1;a[u]=s}return a}();i.exports=function(s,a,u,f){var d=o,c=f+u;s^=-1;for(var h=f;h<c;h++)s=s>>>8^d[255&(s^a[h])];return-1^s}},{}],46:[function(n,i,r){var o,s=n("../utils/common"),a=n("./trees"),u=n("./adler32"),f=n("./crc32"),d=n("./messages"),c=0,h=4,p=0,m=-2,y=-1,v=4,b=2,g=8,k=9,w=286,T=30,S=19,_=2*w+1,A=15,D=3,x=258,B=x+D+1,E=42,F=113,C=1,I=2,N=3,H=4;function Q(P,le){return P.msg=d[le],le}function ie(P){return(P<<1)-(4<P?9:0)}function ae(P){for(var le=P.length;0<=--le;)P[le]=0}function M(P){var le=P.state,me=le.pending;me>P.avail_out&&(me=P.avail_out),me!==0&&(s.arraySet(P.output,le.pending_buf,le.pending_out,me,P.next_out),P.next_out+=me,le.pending_out+=me,P.total_out+=me,P.avail_out-=me,le.pending-=me,le.pending===0&&(le.pending_out=0))}function j(P,le){a._tr_flush_block(P,0<=P.block_start?P.block_start:-1,P.strstart-P.block_start,le),P.block_start=P.strstart,M(P.strm)}function V(P,le){P.pending_buf[P.pending++]=le}function L(P,le){P.pending_buf[P.pending++]=le>>>8&255,P.pending_buf[P.pending++]=255&le}function W(P,le){var me,J,Y=P.max_chain_length,fe=P.strstart,oe=P.prev_length,pe=P.nice_match,de=P.strstart>P.w_size-B?P.strstart-(P.w_size-B):0,Oe=P.window,ve=P.w_mask,_e=P.prev,Ue=P.strstart+x,st=Oe[fe+oe-1],it=Oe[fe+oe];P.prev_length>=P.good_match&&(Y>>=2),pe>P.lookahead&&(pe=P.lookahead);do if(Oe[(me=le)+oe]===it&&Oe[me+oe-1]===st&&Oe[me]===Oe[fe]&&Oe[++me]===Oe[fe+1]){fe+=2,me++;do;while(Oe[++fe]===Oe[++me]&&Oe[++fe]===Oe[++me]&&Oe[++fe]===Oe[++me]&&Oe[++fe]===Oe[++me]&&Oe[++fe]===Oe[++me]&&Oe[++fe]===Oe[++me]&&Oe[++fe]===Oe[++me]&&Oe[++fe]===Oe[++me]&&fe<Ue);if(J=x-(Ue-fe),fe=Ue-x,oe<J){if(P.match_start=le,pe<=(oe=J))break;st=Oe[fe+oe-1],it=Oe[fe+oe]}}while((le=_e[le&ve])>de&&--Y!=0);return oe<=P.lookahead?oe:P.lookahead}function G(P){var le,me,J,Y,fe,oe,pe,de,Oe,ve,_e=P.w_size;do{if(Y=P.window_size-P.lookahead-P.strstart,P.strstart>=_e+(_e-B)){for(s.arraySet(P.window,P.window,_e,_e,0),P.match_start-=_e,P.strstart-=_e,P.block_start-=_e,le=me=P.hash_size;J=P.head[--le],P.head[le]=_e<=J?J-_e:0,--me;);for(le=me=_e;J=P.prev[--le],P.prev[le]=_e<=J?J-_e:0,--me;);Y+=_e}if(P.strm.avail_in===0)break;if(oe=P.strm,pe=P.window,de=P.strstart+P.lookahead,Oe=Y,ve=void 0,ve=oe.avail_in,Oe<ve&&(ve=Oe),me=ve===0?0:(oe.avail_in-=ve,s.arraySet(pe,oe.input,oe.next_in,ve,de),oe.state.wrap===1?oe.adler=u(oe.adler,pe,ve,de):oe.state.wrap===2&&(oe.adler=f(oe.adler,pe,ve,de)),oe.next_in+=ve,oe.total_in+=ve,ve),P.lookahead+=me,P.lookahead+P.insert>=D)for(fe=P.strstart-P.insert,P.ins_h=P.window[fe],P.ins_h=(P.ins_h<<P.hash_shift^P.window[fe+1])&P.hash_mask;P.insert&&(P.ins_h=(P.ins_h<<P.hash_shift^P.window[fe+D-1])&P.hash_mask,P.prev[fe&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=fe,fe++,P.insert--,!(P.lookahead+P.insert<D)););}while(P.lookahead<B&&P.strm.avail_in!==0)}function $(P,le){for(var me,J;;){if(P.lookahead<B){if(G(P),P.lookahead<B&&le===c)return C;if(P.lookahead===0)break}if(me=0,P.lookahead>=D&&(P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+D-1])&P.hash_mask,me=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart),me!==0&&P.strstart-me<=P.w_size-B&&(P.match_length=W(P,me)),P.match_length>=D)if(J=a._tr_tally(P,P.strstart-P.match_start,P.match_length-D),P.lookahead-=P.match_length,P.match_length<=P.max_lazy_match&&P.lookahead>=D){for(P.match_length--;P.strstart++,P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+D-1])&P.hash_mask,me=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart,--P.match_length!=0;);P.strstart++}else P.strstart+=P.match_length,P.match_length=0,P.ins_h=P.window[P.strstart],P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+1])&P.hash_mask;else J=a._tr_tally(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++;if(J&&(j(P,!1),P.strm.avail_out===0))return C}return P.insert=P.strstart<D-1?P.strstart:D-1,le===h?(j(P,!0),P.strm.avail_out===0?N:H):P.last_lit&&(j(P,!1),P.strm.avail_out===0)?C:I}function re(P,le){for(var me,J,Y;;){if(P.lookahead<B){if(G(P),P.lookahead<B&&le===c)return C;if(P.lookahead===0)break}if(me=0,P.lookahead>=D&&(P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+D-1])&P.hash_mask,me=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart),P.prev_length=P.match_length,P.prev_match=P.match_start,P.match_length=D-1,me!==0&&P.prev_length<P.max_lazy_match&&P.strstart-me<=P.w_size-B&&(P.match_length=W(P,me),P.match_length<=5&&(P.strategy===1||P.match_length===D&&4096<P.strstart-P.match_start)&&(P.match_length=D-1)),P.prev_length>=D&&P.match_length<=P.prev_length){for(Y=P.strstart+P.lookahead-D,J=a._tr_tally(P,P.strstart-1-P.prev_match,P.prev_length-D),P.lookahead-=P.prev_length-1,P.prev_length-=2;++P.strstart<=Y&&(P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+D-1])&P.hash_mask,me=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart),--P.prev_length!=0;);if(P.match_available=0,P.match_length=D-1,P.strstart++,J&&(j(P,!1),P.strm.avail_out===0))return C}else if(P.match_available){if((J=a._tr_tally(P,0,P.window[P.strstart-1]))&&j(P,!1),P.strstart++,P.lookahead--,P.strm.avail_out===0)return C}else P.match_available=1,P.strstart++,P.lookahead--}return P.match_available&&(J=a._tr_tally(P,0,P.window[P.strstart-1]),P.match_available=0),P.insert=P.strstart<D-1?P.strstart:D-1,le===h?(j(P,!0),P.strm.avail_out===0?N:H):P.last_lit&&(j(P,!1),P.strm.avail_out===0)?C:I}function be(P,le,me,J,Y){this.good_length=P,this.max_lazy=le,this.nice_length=me,this.max_chain=J,this.func=Y}function Se(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new s.Buf16(2*_),this.dyn_dtree=new s.Buf16(2*(2*T+1)),this.bl_tree=new s.Buf16(2*(2*S+1)),ae(this.dyn_ltree),ae(this.dyn_dtree),ae(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new s.Buf16(A+1),this.heap=new s.Buf16(2*w+1),ae(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new s.Buf16(2*w+1),ae(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ee(P){var le;return P&&P.state?(P.total_in=P.total_out=0,P.data_type=b,(le=P.state).pending=0,le.pending_out=0,le.wrap<0&&(le.wrap=-le.wrap),le.status=le.wrap?E:F,P.adler=le.wrap===2?0:1,le.last_flush=c,a._tr_init(le),p):Q(P,m)}function we(P){var le=ee(P);return le===p&&function(me){me.window_size=2*me.w_size,ae(me.head),me.max_lazy_match=o[me.level].max_lazy,me.good_match=o[me.level].good_length,me.nice_match=o[me.level].nice_length,me.max_chain_length=o[me.level].max_chain,me.strstart=0,me.block_start=0,me.lookahead=0,me.insert=0,me.match_length=me.prev_length=D-1,me.match_available=0,me.ins_h=0}(P.state),le}function Ee(P,le,me,J,Y,fe){if(!P)return m;var oe=1;if(le===y&&(le=6),J<0?(oe=0,J=-J):15<J&&(oe=2,J-=16),Y<1||k<Y||me!==g||J<8||15<J||le<0||9<le||fe<0||v<fe)return Q(P,m);J===8&&(J=9);var pe=new Se;return(P.state=pe).strm=P,pe.wrap=oe,pe.gzhead=null,pe.w_bits=J,pe.w_size=1<<pe.w_bits,pe.w_mask=pe.w_size-1,pe.hash_bits=Y+7,pe.hash_size=1<<pe.hash_bits,pe.hash_mask=pe.hash_size-1,pe.hash_shift=~~((pe.hash_bits+D-1)/D),pe.window=new s.Buf8(2*pe.w_size),pe.head=new s.Buf16(pe.hash_size),pe.prev=new s.Buf16(pe.w_size),pe.lit_bufsize=1<<Y+6,pe.pending_buf_size=4*pe.lit_bufsize,pe.pending_buf=new s.Buf8(pe.pending_buf_size),pe.d_buf=1*pe.lit_bufsize,pe.l_buf=3*pe.lit_bufsize,pe.level=le,pe.strategy=fe,pe.method=me,we(P)}o=[new be(0,0,0,0,function(P,le){var me=65535;for(me>P.pending_buf_size-5&&(me=P.pending_buf_size-5);;){if(P.lookahead<=1){if(G(P),P.lookahead===0&&le===c)return C;if(P.lookahead===0)break}P.strstart+=P.lookahead,P.lookahead=0;var J=P.block_start+me;if((P.strstart===0||P.strstart>=J)&&(P.lookahead=P.strstart-J,P.strstart=J,j(P,!1),P.strm.avail_out===0)||P.strstart-P.block_start>=P.w_size-B&&(j(P,!1),P.strm.avail_out===0))return C}return P.insert=0,le===h?(j(P,!0),P.strm.avail_out===0?N:H):(P.strstart>P.block_start&&(j(P,!1),P.strm.avail_out),C)}),new be(4,4,8,4,$),new be(4,5,16,8,$),new be(4,6,32,32,$),new be(4,4,16,16,re),new be(8,16,32,32,re),new be(8,16,128,128,re),new be(8,32,128,256,re),new be(32,128,258,1024,re),new be(32,258,258,4096,re)],r.deflateInit=function(P,le){return Ee(P,le,g,15,8,0)},r.deflateInit2=Ee,r.deflateReset=we,r.deflateResetKeep=ee,r.deflateSetHeader=function(P,le){return P&&P.state?P.state.wrap!==2?m:(P.state.gzhead=le,p):m},r.deflate=function(P,le){var me,J,Y,fe;if(!P||!P.state||5<le||le<0)return P?Q(P,m):m;if(J=P.state,!P.output||!P.input&&P.avail_in!==0||J.status===666&&le!==h)return Q(P,P.avail_out===0?-5:m);if(J.strm=P,me=J.last_flush,J.last_flush=le,J.status===E)if(J.wrap===2)P.adler=0,V(J,31),V(J,139),V(J,8),J.gzhead?(V(J,(J.gzhead.text?1:0)+(J.gzhead.hcrc?2:0)+(J.gzhead.extra?4:0)+(J.gzhead.name?8:0)+(J.gzhead.comment?16:0)),V(J,255&J.gzhead.time),V(J,J.gzhead.time>>8&255),V(J,J.gzhead.time>>16&255),V(J,J.gzhead.time>>24&255),V(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),V(J,255&J.gzhead.os),J.gzhead.extra&&J.gzhead.extra.length&&(V(J,255&J.gzhead.extra.length),V(J,J.gzhead.extra.length>>8&255)),J.gzhead.hcrc&&(P.adler=f(P.adler,J.pending_buf,J.pending,0)),J.gzindex=0,J.status=69):(V(J,0),V(J,0),V(J,0),V(J,0),V(J,0),V(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),V(J,3),J.status=F);else{var oe=g+(J.w_bits-8<<4)<<8;oe|=(2<=J.strategy||J.level<2?0:J.level<6?1:J.level===6?2:3)<<6,J.strstart!==0&&(oe|=32),oe+=31-oe%31,J.status=F,L(J,oe),J.strstart!==0&&(L(J,P.adler>>>16),L(J,65535&P.adler)),P.adler=1}if(J.status===69)if(J.gzhead.extra){for(Y=J.pending;J.gzindex<(65535&J.gzhead.extra.length)&&(J.pending!==J.pending_buf_size||(J.gzhead.hcrc&&J.pending>Y&&(P.adler=f(P.adler,J.pending_buf,J.pending-Y,Y)),M(P),Y=J.pending,J.pending!==J.pending_buf_size));)V(J,255&J.gzhead.extra[J.gzindex]),J.gzindex++;J.gzhead.hcrc&&J.pending>Y&&(P.adler=f(P.adler,J.pending_buf,J.pending-Y,Y)),J.gzindex===J.gzhead.extra.length&&(J.gzindex=0,J.status=73)}else J.status=73;if(J.status===73)if(J.gzhead.name){Y=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>Y&&(P.adler=f(P.adler,J.pending_buf,J.pending-Y,Y)),M(P),Y=J.pending,J.pending===J.pending_buf_size)){fe=1;break}fe=J.gzindex<J.gzhead.name.length?255&J.gzhead.name.charCodeAt(J.gzindex++):0,V(J,fe)}while(fe!==0);J.gzhead.hcrc&&J.pending>Y&&(P.adler=f(P.adler,J.pending_buf,J.pending-Y,Y)),fe===0&&(J.gzindex=0,J.status=91)}else J.status=91;if(J.status===91)if(J.gzhead.comment){Y=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>Y&&(P.adler=f(P.adler,J.pending_buf,J.pending-Y,Y)),M(P),Y=J.pending,J.pending===J.pending_buf_size)){fe=1;break}fe=J.gzindex<J.gzhead.comment.length?255&J.gzhead.comment.charCodeAt(J.gzindex++):0,V(J,fe)}while(fe!==0);J.gzhead.hcrc&&J.pending>Y&&(P.adler=f(P.adler,J.pending_buf,J.pending-Y,Y)),fe===0&&(J.status=103)}else J.status=103;if(J.status===103&&(J.gzhead.hcrc?(J.pending+2>J.pending_buf_size&&M(P),J.pending+2<=J.pending_buf_size&&(V(J,255&P.adler),V(J,P.adler>>8&255),P.adler=0,J.status=F)):J.status=F),J.pending!==0){if(M(P),P.avail_out===0)return J.last_flush=-1,p}else if(P.avail_in===0&&ie(le)<=ie(me)&&le!==h)return Q(P,-5);if(J.status===666&&P.avail_in!==0)return Q(P,-5);if(P.avail_in!==0||J.lookahead!==0||le!==c&&J.status!==666){var pe=J.strategy===2?function(de,Oe){for(var ve;;){if(de.lookahead===0&&(G(de),de.lookahead===0)){if(Oe===c)return C;break}if(de.match_length=0,ve=a._tr_tally(de,0,de.window[de.strstart]),de.lookahead--,de.strstart++,ve&&(j(de,!1),de.strm.avail_out===0))return C}return de.insert=0,Oe===h?(j(de,!0),de.strm.avail_out===0?N:H):de.last_lit&&(j(de,!1),de.strm.avail_out===0)?C:I}(J,le):J.strategy===3?function(de,Oe){for(var ve,_e,Ue,st,it=de.window;;){if(de.lookahead<=x){if(G(de),de.lookahead<=x&&Oe===c)return C;if(de.lookahead===0)break}if(de.match_length=0,de.lookahead>=D&&0<de.strstart&&(_e=it[Ue=de.strstart-1])===it[++Ue]&&_e===it[++Ue]&&_e===it[++Ue]){st=de.strstart+x;do;while(_e===it[++Ue]&&_e===it[++Ue]&&_e===it[++Ue]&&_e===it[++Ue]&&_e===it[++Ue]&&_e===it[++Ue]&&_e===it[++Ue]&&_e===it[++Ue]&&Ue<st);de.match_length=x-(st-Ue),de.match_length>de.lookahead&&(de.match_length=de.lookahead)}if(de.match_length>=D?(ve=a._tr_tally(de,1,de.match_length-D),de.lookahead-=de.match_length,de.strstart+=de.match_length,de.match_length=0):(ve=a._tr_tally(de,0,de.window[de.strstart]),de.lookahead--,de.strstart++),ve&&(j(de,!1),de.strm.avail_out===0))return C}return de.insert=0,Oe===h?(j(de,!0),de.strm.avail_out===0?N:H):de.last_lit&&(j(de,!1),de.strm.avail_out===0)?C:I}(J,le):o[J.level].func(J,le);if(pe!==N&&pe!==H||(J.status=666),pe===C||pe===N)return P.avail_out===0&&(J.last_flush=-1),p;if(pe===I&&(le===1?a._tr_align(J):le!==5&&(a._tr_stored_block(J,0,0,!1),le===3&&(ae(J.head),J.lookahead===0&&(J.strstart=0,J.block_start=0,J.insert=0))),M(P),P.avail_out===0))return J.last_flush=-1,p}return le!==h?p:J.wrap<=0?1:(J.wrap===2?(V(J,255&P.adler),V(J,P.adler>>8&255),V(J,P.adler>>16&255),V(J,P.adler>>24&255),V(J,255&P.total_in),V(J,P.total_in>>8&255),V(J,P.total_in>>16&255),V(J,P.total_in>>24&255)):(L(J,P.adler>>>16),L(J,65535&P.adler)),M(P),0<J.wrap&&(J.wrap=-J.wrap),J.pending!==0?p:1)},r.deflateEnd=function(P){var le;return P&&P.state?(le=P.state.status)!==E&&le!==69&&le!==73&&le!==91&&le!==103&&le!==F&&le!==666?Q(P,m):(P.state=null,le===F?Q(P,-3):p):m},r.deflateSetDictionary=function(P,le){var me,J,Y,fe,oe,pe,de,Oe,ve=le.length;if(!P||!P.state||(fe=(me=P.state).wrap)===2||fe===1&&me.status!==E||me.lookahead)return m;for(fe===1&&(P.adler=u(P.adler,le,ve,0)),me.wrap=0,ve>=me.w_size&&(fe===0&&(ae(me.head),me.strstart=0,me.block_start=0,me.insert=0),Oe=new s.Buf8(me.w_size),s.arraySet(Oe,le,ve-me.w_size,me.w_size,0),le=Oe,ve=me.w_size),oe=P.avail_in,pe=P.next_in,de=P.input,P.avail_in=ve,P.next_in=0,P.input=le,G(me);me.lookahead>=D;){for(J=me.strstart,Y=me.lookahead-(D-1);me.ins_h=(me.ins_h<<me.hash_shift^me.window[J+D-1])&me.hash_mask,me.prev[J&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=J,J++,--Y;);me.strstart=J,me.lookahead=D-1,G(me)}return me.strstart+=me.lookahead,me.block_start=me.strstart,me.insert=me.lookahead,me.lookahead=0,me.match_length=me.prev_length=D-1,me.match_available=0,P.next_in=pe,P.input=de,P.avail_in=oe,me.wrap=fe,p},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,i,r){i.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,i,r){i.exports=function(o,s){var a,u,f,d,c,h,p,m,y,v,b,g,k,w,T,S,_,A,D,x,B,E,F,C,I;a=o.state,u=o.next_in,C=o.input,f=u+(o.avail_in-5),d=o.next_out,I=o.output,c=d-(s-o.avail_out),h=d+(o.avail_out-257),p=a.dmax,m=a.wsize,y=a.whave,v=a.wnext,b=a.window,g=a.hold,k=a.bits,w=a.lencode,T=a.distcode,S=(1<<a.lenbits)-1,_=(1<<a.distbits)-1;e:do{k<15&&(g+=C[u++]<<k,k+=8,g+=C[u++]<<k,k+=8),A=w[g&S];t:for(;;){if(g>>>=D=A>>>24,k-=D,(D=A>>>16&255)===0)I[d++]=65535&A;else{if(!(16&D)){if(!(64&D)){A=w[(65535&A)+(g&(1<<D)-1)];continue t}if(32&D){a.mode=12;break e}o.msg="invalid literal/length code",a.mode=30;break e}x=65535&A,(D&=15)&&(k<D&&(g+=C[u++]<<k,k+=8),x+=g&(1<<D)-1,g>>>=D,k-=D),k<15&&(g+=C[u++]<<k,k+=8,g+=C[u++]<<k,k+=8),A=T[g&_];n:for(;;){if(g>>>=D=A>>>24,k-=D,!(16&(D=A>>>16&255))){if(!(64&D)){A=T[(65535&A)+(g&(1<<D)-1)];continue n}o.msg="invalid distance code",a.mode=30;break e}if(B=65535&A,k<(D&=15)&&(g+=C[u++]<<k,(k+=8)<D&&(g+=C[u++]<<k,k+=8)),p<(B+=g&(1<<D)-1)){o.msg="invalid distance too far back",a.mode=30;break e}if(g>>>=D,k-=D,(D=d-c)<B){if(y<(D=B-D)&&a.sane){o.msg="invalid distance too far back",a.mode=30;break e}if(F=b,(E=0)===v){if(E+=m-D,D<x){for(x-=D;I[d++]=b[E++],--D;);E=d-B,F=I}}else if(v<D){if(E+=m+v-D,(D-=v)<x){for(x-=D;I[d++]=b[E++],--D;);if(E=0,v<x){for(x-=D=v;I[d++]=b[E++],--D;);E=d-B,F=I}}}else if(E+=v-D,D<x){for(x-=D;I[d++]=b[E++],--D;);E=d-B,F=I}for(;2<x;)I[d++]=F[E++],I[d++]=F[E++],I[d++]=F[E++],x-=3;x&&(I[d++]=F[E++],1<x&&(I[d++]=F[E++]))}else{for(E=d-B;I[d++]=I[E++],I[d++]=I[E++],I[d++]=I[E++],2<(x-=3););x&&(I[d++]=I[E++],1<x&&(I[d++]=I[E++]))}break}}break}}while(u<f&&d<h);u-=x=k>>3,g&=(1<<(k-=x<<3))-1,o.next_in=u,o.next_out=d,o.avail_in=u<f?f-u+5:5-(u-f),o.avail_out=d<h?h-d+257:257-(d-h),a.hold=g,a.bits=k}},{}],49:[function(n,i,r){var o=n("../utils/common"),s=n("./adler32"),a=n("./crc32"),u=n("./inffast"),f=n("./inftrees"),d=1,c=2,h=0,p=-2,m=1,y=852,v=592;function b(E){return(E>>>24&255)+(E>>>8&65280)+((65280&E)<<8)+((255&E)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function k(E){var F;return E&&E.state?(F=E.state,E.total_in=E.total_out=F.total=0,E.msg="",F.wrap&&(E.adler=1&F.wrap),F.mode=m,F.last=0,F.havedict=0,F.dmax=32768,F.head=null,F.hold=0,F.bits=0,F.lencode=F.lendyn=new o.Buf32(y),F.distcode=F.distdyn=new o.Buf32(v),F.sane=1,F.back=-1,h):p}function w(E){var F;return E&&E.state?((F=E.state).wsize=0,F.whave=0,F.wnext=0,k(E)):p}function T(E,F){var C,I;return E&&E.state?(I=E.state,F<0?(C=0,F=-F):(C=1+(F>>4),F<48&&(F&=15)),F&&(F<8||15<F)?p:(I.window!==null&&I.wbits!==F&&(I.window=null),I.wrap=C,I.wbits=F,w(E))):p}function S(E,F){var C,I;return E?(I=new g,(E.state=I).window=null,(C=T(E,F))!==h&&(E.state=null),C):p}var _,A,D=!0;function x(E){if(D){var F;for(_=new o.Buf32(512),A=new o.Buf32(32),F=0;F<144;)E.lens[F++]=8;for(;F<256;)E.lens[F++]=9;for(;F<280;)E.lens[F++]=7;for(;F<288;)E.lens[F++]=8;for(f(d,E.lens,0,288,_,0,E.work,{bits:9}),F=0;F<32;)E.lens[F++]=5;f(c,E.lens,0,32,A,0,E.work,{bits:5}),D=!1}E.lencode=_,E.lenbits=9,E.distcode=A,E.distbits=5}function B(E,F,C,I){var N,H=E.state;return H.window===null&&(H.wsize=1<<H.wbits,H.wnext=0,H.whave=0,H.window=new o.Buf8(H.wsize)),I>=H.wsize?(o.arraySet(H.window,F,C-H.wsize,H.wsize,0),H.wnext=0,H.whave=H.wsize):(I<(N=H.wsize-H.wnext)&&(N=I),o.arraySet(H.window,F,C-I,N,H.wnext),(I-=N)?(o.arraySet(H.window,F,C-I,I,0),H.wnext=I,H.whave=H.wsize):(H.wnext+=N,H.wnext===H.wsize&&(H.wnext=0),H.whave<H.wsize&&(H.whave+=N))),0}r.inflateReset=w,r.inflateReset2=T,r.inflateResetKeep=k,r.inflateInit=function(E){return S(E,15)},r.inflateInit2=S,r.inflate=function(E,F){var C,I,N,H,Q,ie,ae,M,j,V,L,W,G,$,re,be,Se,ee,we,Ee,P,le,me,J,Y=0,fe=new o.Buf8(4),oe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!E||!E.state||!E.output||!E.input&&E.avail_in!==0)return p;(C=E.state).mode===12&&(C.mode=13),Q=E.next_out,N=E.output,ae=E.avail_out,H=E.next_in,I=E.input,ie=E.avail_in,M=C.hold,j=C.bits,V=ie,L=ae,le=h;e:for(;;)switch(C.mode){case m:if(C.wrap===0){C.mode=13;break}for(;j<16;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if(2&C.wrap&&M===35615){fe[C.check=0]=255&M,fe[1]=M>>>8&255,C.check=a(C.check,fe,2,0),j=M=0,C.mode=2;break}if(C.flags=0,C.head&&(C.head.done=!1),!(1&C.wrap)||(((255&M)<<8)+(M>>8))%31){E.msg="incorrect header check",C.mode=30;break}if((15&M)!=8){E.msg="unknown compression method",C.mode=30;break}if(j-=4,P=8+(15&(M>>>=4)),C.wbits===0)C.wbits=P;else if(P>C.wbits){E.msg="invalid window size",C.mode=30;break}C.dmax=1<<P,E.adler=C.check=1,C.mode=512&M?10:12,j=M=0;break;case 2:for(;j<16;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if(C.flags=M,(255&C.flags)!=8){E.msg="unknown compression method",C.mode=30;break}if(57344&C.flags){E.msg="unknown header flags set",C.mode=30;break}C.head&&(C.head.text=M>>8&1),512&C.flags&&(fe[0]=255&M,fe[1]=M>>>8&255,C.check=a(C.check,fe,2,0)),j=M=0,C.mode=3;case 3:for(;j<32;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}C.head&&(C.head.time=M),512&C.flags&&(fe[0]=255&M,fe[1]=M>>>8&255,fe[2]=M>>>16&255,fe[3]=M>>>24&255,C.check=a(C.check,fe,4,0)),j=M=0,C.mode=4;case 4:for(;j<16;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}C.head&&(C.head.xflags=255&M,C.head.os=M>>8),512&C.flags&&(fe[0]=255&M,fe[1]=M>>>8&255,C.check=a(C.check,fe,2,0)),j=M=0,C.mode=5;case 5:if(1024&C.flags){for(;j<16;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}C.length=M,C.head&&(C.head.extra_len=M),512&C.flags&&(fe[0]=255&M,fe[1]=M>>>8&255,C.check=a(C.check,fe,2,0)),j=M=0}else C.head&&(C.head.extra=null);C.mode=6;case 6:if(1024&C.flags&&(ie<(W=C.length)&&(W=ie),W&&(C.head&&(P=C.head.extra_len-C.length,C.head.extra||(C.head.extra=new Array(C.head.extra_len)),o.arraySet(C.head.extra,I,H,W,P)),512&C.flags&&(C.check=a(C.check,I,W,H)),ie-=W,H+=W,C.length-=W),C.length))break e;C.length=0,C.mode=7;case 7:if(2048&C.flags){if(ie===0)break e;for(W=0;P=I[H+W++],C.head&&P&&C.length<65536&&(C.head.name+=String.fromCharCode(P)),P&&W<ie;);if(512&C.flags&&(C.check=a(C.check,I,W,H)),ie-=W,H+=W,P)break e}else C.head&&(C.head.name=null);C.length=0,C.mode=8;case 8:if(4096&C.flags){if(ie===0)break e;for(W=0;P=I[H+W++],C.head&&P&&C.length<65536&&(C.head.comment+=String.fromCharCode(P)),P&&W<ie;);if(512&C.flags&&(C.check=a(C.check,I,W,H)),ie-=W,H+=W,P)break e}else C.head&&(C.head.comment=null);C.mode=9;case 9:if(512&C.flags){for(;j<16;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if(M!==(65535&C.check)){E.msg="header crc mismatch",C.mode=30;break}j=M=0}C.head&&(C.head.hcrc=C.flags>>9&1,C.head.done=!0),E.adler=C.check=0,C.mode=12;break;case 10:for(;j<32;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}E.adler=C.check=b(M),j=M=0,C.mode=11;case 11:if(C.havedict===0)return E.next_out=Q,E.avail_out=ae,E.next_in=H,E.avail_in=ie,C.hold=M,C.bits=j,2;E.adler=C.check=1,C.mode=12;case 12:if(F===5||F===6)break e;case 13:if(C.last){M>>>=7&j,j-=7&j,C.mode=27;break}for(;j<3;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}switch(C.last=1&M,j-=1,3&(M>>>=1)){case 0:C.mode=14;break;case 1:if(x(C),C.mode=20,F!==6)break;M>>>=2,j-=2;break e;case 2:C.mode=17;break;case 3:E.msg="invalid block type",C.mode=30}M>>>=2,j-=2;break;case 14:for(M>>>=7&j,j-=7&j;j<32;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if((65535&M)!=(M>>>16^65535)){E.msg="invalid stored block lengths",C.mode=30;break}if(C.length=65535&M,j=M=0,C.mode=15,F===6)break e;case 15:C.mode=16;case 16:if(W=C.length){if(ie<W&&(W=ie),ae<W&&(W=ae),W===0)break e;o.arraySet(N,I,H,W,Q),ie-=W,H+=W,ae-=W,Q+=W,C.length-=W;break}C.mode=12;break;case 17:for(;j<14;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if(C.nlen=257+(31&M),M>>>=5,j-=5,C.ndist=1+(31&M),M>>>=5,j-=5,C.ncode=4+(15&M),M>>>=4,j-=4,286<C.nlen||30<C.ndist){E.msg="too many length or distance symbols",C.mode=30;break}C.have=0,C.mode=18;case 18:for(;C.have<C.ncode;){for(;j<3;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}C.lens[oe[C.have++]]=7&M,M>>>=3,j-=3}for(;C.have<19;)C.lens[oe[C.have++]]=0;if(C.lencode=C.lendyn,C.lenbits=7,me={bits:C.lenbits},le=f(0,C.lens,0,19,C.lencode,0,C.work,me),C.lenbits=me.bits,le){E.msg="invalid code lengths set",C.mode=30;break}C.have=0,C.mode=19;case 19:for(;C.have<C.nlen+C.ndist;){for(;be=(Y=C.lencode[M&(1<<C.lenbits)-1])>>>16&255,Se=65535&Y,!((re=Y>>>24)<=j);){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if(Se<16)M>>>=re,j-=re,C.lens[C.have++]=Se;else{if(Se===16){for(J=re+2;j<J;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if(M>>>=re,j-=re,C.have===0){E.msg="invalid bit length repeat",C.mode=30;break}P=C.lens[C.have-1],W=3+(3&M),M>>>=2,j-=2}else if(Se===17){for(J=re+3;j<J;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}j-=re,P=0,W=3+(7&(M>>>=re)),M>>>=3,j-=3}else{for(J=re+7;j<J;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}j-=re,P=0,W=11+(127&(M>>>=re)),M>>>=7,j-=7}if(C.have+W>C.nlen+C.ndist){E.msg="invalid bit length repeat",C.mode=30;break}for(;W--;)C.lens[C.have++]=P}}if(C.mode===30)break;if(C.lens[256]===0){E.msg="invalid code -- missing end-of-block",C.mode=30;break}if(C.lenbits=9,me={bits:C.lenbits},le=f(d,C.lens,0,C.nlen,C.lencode,0,C.work,me),C.lenbits=me.bits,le){E.msg="invalid literal/lengths set",C.mode=30;break}if(C.distbits=6,C.distcode=C.distdyn,me={bits:C.distbits},le=f(c,C.lens,C.nlen,C.ndist,C.distcode,0,C.work,me),C.distbits=me.bits,le){E.msg="invalid distances set",C.mode=30;break}if(C.mode=20,F===6)break e;case 20:C.mode=21;case 21:if(6<=ie&&258<=ae){E.next_out=Q,E.avail_out=ae,E.next_in=H,E.avail_in=ie,C.hold=M,C.bits=j,u(E,L),Q=E.next_out,N=E.output,ae=E.avail_out,H=E.next_in,I=E.input,ie=E.avail_in,M=C.hold,j=C.bits,C.mode===12&&(C.back=-1);break}for(C.back=0;be=(Y=C.lencode[M&(1<<C.lenbits)-1])>>>16&255,Se=65535&Y,!((re=Y>>>24)<=j);){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if(be&&!(240&be)){for(ee=re,we=be,Ee=Se;be=(Y=C.lencode[Ee+((M&(1<<ee+we)-1)>>ee)])>>>16&255,Se=65535&Y,!(ee+(re=Y>>>24)<=j);){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}M>>>=ee,j-=ee,C.back+=ee}if(M>>>=re,j-=re,C.back+=re,C.length=Se,be===0){C.mode=26;break}if(32&be){C.back=-1,C.mode=12;break}if(64&be){E.msg="invalid literal/length code",C.mode=30;break}C.extra=15&be,C.mode=22;case 22:if(C.extra){for(J=C.extra;j<J;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}C.length+=M&(1<<C.extra)-1,M>>>=C.extra,j-=C.extra,C.back+=C.extra}C.was=C.length,C.mode=23;case 23:for(;be=(Y=C.distcode[M&(1<<C.distbits)-1])>>>16&255,Se=65535&Y,!((re=Y>>>24)<=j);){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if(!(240&be)){for(ee=re,we=be,Ee=Se;be=(Y=C.distcode[Ee+((M&(1<<ee+we)-1)>>ee)])>>>16&255,Se=65535&Y,!(ee+(re=Y>>>24)<=j);){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}M>>>=ee,j-=ee,C.back+=ee}if(M>>>=re,j-=re,C.back+=re,64&be){E.msg="invalid distance code",C.mode=30;break}C.offset=Se,C.extra=15&be,C.mode=24;case 24:if(C.extra){for(J=C.extra;j<J;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}C.offset+=M&(1<<C.extra)-1,M>>>=C.extra,j-=C.extra,C.back+=C.extra}if(C.offset>C.dmax){E.msg="invalid distance too far back",C.mode=30;break}C.mode=25;case 25:if(ae===0)break e;if(W=L-ae,C.offset>W){if((W=C.offset-W)>C.whave&&C.sane){E.msg="invalid distance too far back",C.mode=30;break}G=W>C.wnext?(W-=C.wnext,C.wsize-W):C.wnext-W,W>C.length&&(W=C.length),$=C.window}else $=N,G=Q-C.offset,W=C.length;for(ae<W&&(W=ae),ae-=W,C.length-=W;N[Q++]=$[G++],--W;);C.length===0&&(C.mode=21);break;case 26:if(ae===0)break e;N[Q++]=C.length,ae--,C.mode=21;break;case 27:if(C.wrap){for(;j<32;){if(ie===0)break e;ie--,M|=I[H++]<<j,j+=8}if(L-=ae,E.total_out+=L,C.total+=L,L&&(E.adler=C.check=C.flags?a(C.check,N,L,Q-L):s(C.check,N,L,Q-L)),L=ae,(C.flags?M:b(M))!==C.check){E.msg="incorrect data check",C.mode=30;break}j=M=0}C.mode=28;case 28:if(C.wrap&&C.flags){for(;j<32;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if(M!==(4294967295&C.total)){E.msg="incorrect length check",C.mode=30;break}j=M=0}C.mode=29;case 29:le=1;break e;case 30:le=-3;break e;case 31:return-4;case 32:default:return p}return E.next_out=Q,E.avail_out=ae,E.next_in=H,E.avail_in=ie,C.hold=M,C.bits=j,(C.wsize||L!==E.avail_out&&C.mode<30&&(C.mode<27||F!==4))&&B(E,E.output,E.next_out,L-E.avail_out)?(C.mode=31,-4):(V-=E.avail_in,L-=E.avail_out,E.total_in+=V,E.total_out+=L,C.total+=L,C.wrap&&L&&(E.adler=C.check=C.flags?a(C.check,N,L,E.next_out-L):s(C.check,N,L,E.next_out-L)),E.data_type=C.bits+(C.last?64:0)+(C.mode===12?128:0)+(C.mode===20||C.mode===15?256:0),(V==0&&L===0||F===4)&&le===h&&(le=-5),le)},r.inflateEnd=function(E){if(!E||!E.state)return p;var F=E.state;return F.window&&(F.window=null),E.state=null,h},r.inflateGetHeader=function(E,F){var C;return E&&E.state&&2&(C=E.state).wrap?((C.head=F).done=!1,h):p},r.inflateSetDictionary=function(E,F){var C,I=F.length;return E&&E.state?(C=E.state).wrap!==0&&C.mode!==11?p:C.mode===11&&s(1,F,I,0)!==C.check?-3:B(E,F,I,I)?(C.mode=31,-4):(C.havedict=1,h):p},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,i,r){var o=n("../utils/common"),s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],f=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];i.exports=function(d,c,h,p,m,y,v,b){var g,k,w,T,S,_,A,D,x,B=b.bits,E=0,F=0,C=0,I=0,N=0,H=0,Q=0,ie=0,ae=0,M=0,j=null,V=0,L=new o.Buf16(16),W=new o.Buf16(16),G=null,$=0;for(E=0;E<=15;E++)L[E]=0;for(F=0;F<p;F++)L[c[h+F]]++;for(N=B,I=15;1<=I&&L[I]===0;I--);if(I<N&&(N=I),I===0)return m[y++]=20971520,m[y++]=20971520,b.bits=1,0;for(C=1;C<I&&L[C]===0;C++);for(N<C&&(N=C),E=ie=1;E<=15;E++)if(ie<<=1,(ie-=L[E])<0)return-1;if(0<ie&&(d===0||I!==1))return-1;for(W[1]=0,E=1;E<15;E++)W[E+1]=W[E]+L[E];for(F=0;F<p;F++)c[h+F]!==0&&(v[W[c[h+F]]++]=F);if(_=d===0?(j=G=v,19):d===1?(j=s,V-=257,G=a,$-=257,256):(j=u,G=f,-1),E=C,S=y,Q=F=M=0,w=-1,T=(ae=1<<(H=N))-1,d===1&&852<ae||d===2&&592<ae)return 1;for(;;){for(A=E-Q,x=v[F]<_?(D=0,v[F]):v[F]>_?(D=G[$+v[F]],j[V+v[F]]):(D=96,0),g=1<<E-Q,C=k=1<<H;m[S+(M>>Q)+(k-=g)]=A<<24|D<<16|x|0,k!==0;);for(g=1<<E-1;M&g;)g>>=1;if(g!==0?(M&=g-1,M+=g):M=0,F++,--L[E]==0){if(E===I)break;E=c[h+v[F]]}if(N<E&&(M&T)!==w){for(Q===0&&(Q=N),S+=C,ie=1<<(H=E-Q);H+Q<I&&!((ie-=L[H+Q])<=0);)H++,ie<<=1;if(ae+=1<<H,d===1&&852<ae||d===2&&592<ae)return 1;m[w=M&T]=N<<24|H<<16|S-y|0}}return M!==0&&(m[S+M]=E-Q<<24|64<<16|0),b.bits=N,0}},{"../utils/common":41}],51:[function(n,i,r){i.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,i,r){var o=n("../utils/common"),s=0,a=1;function u(Y){for(var fe=Y.length;0<=--fe;)Y[fe]=0}var f=0,d=29,c=256,h=c+1+d,p=30,m=19,y=2*h+1,v=15,b=16,g=7,k=256,w=16,T=17,S=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],A=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=new Array(2*(h+2));u(B);var E=new Array(2*p);u(E);var F=new Array(512);u(F);var C=new Array(256);u(C);var I=new Array(d);u(I);var N,H,Q,ie=new Array(p);function ae(Y,fe,oe,pe,de){this.static_tree=Y,this.extra_bits=fe,this.extra_base=oe,this.elems=pe,this.max_length=de,this.has_stree=Y&&Y.length}function M(Y,fe){this.dyn_tree=Y,this.max_code=0,this.stat_desc=fe}function j(Y){return Y<256?F[Y]:F[256+(Y>>>7)]}function V(Y,fe){Y.pending_buf[Y.pending++]=255&fe,Y.pending_buf[Y.pending++]=fe>>>8&255}function L(Y,fe,oe){Y.bi_valid>b-oe?(Y.bi_buf|=fe<<Y.bi_valid&65535,V(Y,Y.bi_buf),Y.bi_buf=fe>>b-Y.bi_valid,Y.bi_valid+=oe-b):(Y.bi_buf|=fe<<Y.bi_valid&65535,Y.bi_valid+=oe)}function W(Y,fe,oe){L(Y,oe[2*fe],oe[2*fe+1])}function G(Y,fe){for(var oe=0;oe|=1&Y,Y>>>=1,oe<<=1,0<--fe;);return oe>>>1}function $(Y,fe,oe){var pe,de,Oe=new Array(v+1),ve=0;for(pe=1;pe<=v;pe++)Oe[pe]=ve=ve+oe[pe-1]<<1;for(de=0;de<=fe;de++){var _e=Y[2*de+1];_e!==0&&(Y[2*de]=G(Oe[_e]++,_e))}}function re(Y){var fe;for(fe=0;fe<h;fe++)Y.dyn_ltree[2*fe]=0;for(fe=0;fe<p;fe++)Y.dyn_dtree[2*fe]=0;for(fe=0;fe<m;fe++)Y.bl_tree[2*fe]=0;Y.dyn_ltree[2*k]=1,Y.opt_len=Y.static_len=0,Y.last_lit=Y.matches=0}function be(Y){8<Y.bi_valid?V(Y,Y.bi_buf):0<Y.bi_valid&&(Y.pending_buf[Y.pending++]=Y.bi_buf),Y.bi_buf=0,Y.bi_valid=0}function Se(Y,fe,oe,pe){var de=2*fe,Oe=2*oe;return Y[de]<Y[Oe]||Y[de]===Y[Oe]&&pe[fe]<=pe[oe]}function ee(Y,fe,oe){for(var pe=Y.heap[oe],de=oe<<1;de<=Y.heap_len&&(de<Y.heap_len&&Se(fe,Y.heap[de+1],Y.heap[de],Y.depth)&&de++,!Se(fe,pe,Y.heap[de],Y.depth));)Y.heap[oe]=Y.heap[de],oe=de,de<<=1;Y.heap[oe]=pe}function we(Y,fe,oe){var pe,de,Oe,ve,_e=0;if(Y.last_lit!==0)for(;pe=Y.pending_buf[Y.d_buf+2*_e]<<8|Y.pending_buf[Y.d_buf+2*_e+1],de=Y.pending_buf[Y.l_buf+_e],_e++,pe===0?W(Y,de,fe):(W(Y,(Oe=C[de])+c+1,fe),(ve=_[Oe])!==0&&L(Y,de-=I[Oe],ve),W(Y,Oe=j(--pe),oe),(ve=A[Oe])!==0&&L(Y,pe-=ie[Oe],ve)),_e<Y.last_lit;);W(Y,k,fe)}function Ee(Y,fe){var oe,pe,de,Oe=fe.dyn_tree,ve=fe.stat_desc.static_tree,_e=fe.stat_desc.has_stree,Ue=fe.stat_desc.elems,st=-1;for(Y.heap_len=0,Y.heap_max=y,oe=0;oe<Ue;oe++)Oe[2*oe]!==0?(Y.heap[++Y.heap_len]=st=oe,Y.depth[oe]=0):Oe[2*oe+1]=0;for(;Y.heap_len<2;)Oe[2*(de=Y.heap[++Y.heap_len]=st<2?++st:0)]=1,Y.depth[de]=0,Y.opt_len--,_e&&(Y.static_len-=ve[2*de+1]);for(fe.max_code=st,oe=Y.heap_len>>1;1<=oe;oe--)ee(Y,Oe,oe);for(de=Ue;oe=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],ee(Y,Oe,1),pe=Y.heap[1],Y.heap[--Y.heap_max]=oe,Y.heap[--Y.heap_max]=pe,Oe[2*de]=Oe[2*oe]+Oe[2*pe],Y.depth[de]=(Y.depth[oe]>=Y.depth[pe]?Y.depth[oe]:Y.depth[pe])+1,Oe[2*oe+1]=Oe[2*pe+1]=de,Y.heap[1]=de++,ee(Y,Oe,1),2<=Y.heap_len;);Y.heap[--Y.heap_max]=Y.heap[1],function(it,xt){var yt,je,ce,ke,Be,Ve,He=xt.dyn_tree,rt=xt.max_code,ct=xt.stat_desc.static_tree,vt=xt.stat_desc.has_stree,_t=xt.stat_desc.extra_bits,Rt=xt.stat_desc.extra_base,zt=xt.stat_desc.max_length,Ot=0;for(ke=0;ke<=v;ke++)it.bl_count[ke]=0;for(He[2*it.heap[it.heap_max]+1]=0,yt=it.heap_max+1;yt<y;yt++)zt<(ke=He[2*He[2*(je=it.heap[yt])+1]+1]+1)&&(ke=zt,Ot++),He[2*je+1]=ke,rt<je||(it.bl_count[ke]++,Be=0,Rt<=je&&(Be=_t[je-Rt]),Ve=He[2*je],it.opt_len+=Ve*(ke+Be),vt&&(it.static_len+=Ve*(ct[2*je+1]+Be)));if(Ot!==0){do{for(ke=zt-1;it.bl_count[ke]===0;)ke--;it.bl_count[ke]--,it.bl_count[ke+1]+=2,it.bl_count[zt]--,Ot-=2}while(0<Ot);for(ke=zt;ke!==0;ke--)for(je=it.bl_count[ke];je!==0;)rt<(ce=it.heap[--yt])||(He[2*ce+1]!==ke&&(it.opt_len+=(ke-He[2*ce+1])*He[2*ce],He[2*ce+1]=ke),je--)}}(Y,fe),$(Oe,st,Y.bl_count)}function P(Y,fe,oe){var pe,de,Oe=-1,ve=fe[1],_e=0,Ue=7,st=4;for(ve===0&&(Ue=138,st=3),fe[2*(oe+1)+1]=65535,pe=0;pe<=oe;pe++)de=ve,ve=fe[2*(pe+1)+1],++_e<Ue&&de===ve||(_e<st?Y.bl_tree[2*de]+=_e:de!==0?(de!==Oe&&Y.bl_tree[2*de]++,Y.bl_tree[2*w]++):_e<=10?Y.bl_tree[2*T]++:Y.bl_tree[2*S]++,Oe=de,st=(_e=0)===ve?(Ue=138,3):de===ve?(Ue=6,3):(Ue=7,4))}function le(Y,fe,oe){var pe,de,Oe=-1,ve=fe[1],_e=0,Ue=7,st=4;for(ve===0&&(Ue=138,st=3),pe=0;pe<=oe;pe++)if(de=ve,ve=fe[2*(pe+1)+1],!(++_e<Ue&&de===ve)){if(_e<st)for(;W(Y,de,Y.bl_tree),--_e!=0;);else de!==0?(de!==Oe&&(W(Y,de,Y.bl_tree),_e--),W(Y,w,Y.bl_tree),L(Y,_e-3,2)):_e<=10?(W(Y,T,Y.bl_tree),L(Y,_e-3,3)):(W(Y,S,Y.bl_tree),L(Y,_e-11,7));Oe=de,st=(_e=0)===ve?(Ue=138,3):de===ve?(Ue=6,3):(Ue=7,4)}}u(ie);var me=!1;function J(Y,fe,oe,pe){L(Y,(f<<1)+(pe?1:0),3),function(de,Oe,ve,_e){be(de),V(de,ve),V(de,~ve),o.arraySet(de.pending_buf,de.window,Oe,ve,de.pending),de.pending+=ve}(Y,fe,oe)}r._tr_init=function(Y){me||(function(){var fe,oe,pe,de,Oe,ve=new Array(v+1);for(de=pe=0;de<d-1;de++)for(I[de]=pe,fe=0;fe<1<<_[de];fe++)C[pe++]=de;for(C[pe-1]=de,de=Oe=0;de<16;de++)for(ie[de]=Oe,fe=0;fe<1<<A[de];fe++)F[Oe++]=de;for(Oe>>=7;de<p;de++)for(ie[de]=Oe<<7,fe=0;fe<1<<A[de]-7;fe++)F[256+Oe++]=de;for(oe=0;oe<=v;oe++)ve[oe]=0;for(fe=0;fe<=143;)B[2*fe+1]=8,fe++,ve[8]++;for(;fe<=255;)B[2*fe+1]=9,fe++,ve[9]++;for(;fe<=279;)B[2*fe+1]=7,fe++,ve[7]++;for(;fe<=287;)B[2*fe+1]=8,fe++,ve[8]++;for($(B,h+1,ve),fe=0;fe<p;fe++)E[2*fe+1]=5,E[2*fe]=G(fe,5);N=new ae(B,_,c+1,h,v),H=new ae(E,A,0,p,v),Q=new ae(new Array(0),D,0,m,g)}(),me=!0),Y.l_desc=new M(Y.dyn_ltree,N),Y.d_desc=new M(Y.dyn_dtree,H),Y.bl_desc=new M(Y.bl_tree,Q),Y.bi_buf=0,Y.bi_valid=0,re(Y)},r._tr_stored_block=J,r._tr_flush_block=function(Y,fe,oe,pe){var de,Oe,ve=0;0<Y.level?(Y.strm.data_type===2&&(Y.strm.data_type=function(_e){var Ue,st=4093624447;for(Ue=0;Ue<=31;Ue++,st>>>=1)if(1&st&&_e.dyn_ltree[2*Ue]!==0)return s;if(_e.dyn_ltree[18]!==0||_e.dyn_ltree[20]!==0||_e.dyn_ltree[26]!==0)return a;for(Ue=32;Ue<c;Ue++)if(_e.dyn_ltree[2*Ue]!==0)return a;return s}(Y)),Ee(Y,Y.l_desc),Ee(Y,Y.d_desc),ve=function(_e){var Ue;for(P(_e,_e.dyn_ltree,_e.l_desc.max_code),P(_e,_e.dyn_dtree,_e.d_desc.max_code),Ee(_e,_e.bl_desc),Ue=m-1;3<=Ue&&_e.bl_tree[2*x[Ue]+1]===0;Ue--);return _e.opt_len+=3*(Ue+1)+5+5+4,Ue}(Y),de=Y.opt_len+3+7>>>3,(Oe=Y.static_len+3+7>>>3)<=de&&(de=Oe)):de=Oe=oe+5,oe+4<=de&&fe!==-1?J(Y,fe,oe,pe):Y.strategy===4||Oe===de?(L(Y,2+(pe?1:0),3),we(Y,B,E)):(L(Y,4+(pe?1:0),3),function(_e,Ue,st,it){var xt;for(L(_e,Ue-257,5),L(_e,st-1,5),L(_e,it-4,4),xt=0;xt<it;xt++)L(_e,_e.bl_tree[2*x[xt]+1],3);le(_e,_e.dyn_ltree,Ue-1),le(_e,_e.dyn_dtree,st-1)}(Y,Y.l_desc.max_code+1,Y.d_desc.max_code+1,ve+1),we(Y,Y.dyn_ltree,Y.dyn_dtree)),re(Y),pe&&be(Y)},r._tr_tally=function(Y,fe,oe){return Y.pending_buf[Y.d_buf+2*Y.last_lit]=fe>>>8&255,Y.pending_buf[Y.d_buf+2*Y.last_lit+1]=255&fe,Y.pending_buf[Y.l_buf+Y.last_lit]=255&oe,Y.last_lit++,fe===0?Y.dyn_ltree[2*oe]++:(Y.matches++,fe--,Y.dyn_ltree[2*(C[oe]+c+1)]++,Y.dyn_dtree[2*j(fe)]++),Y.last_lit===Y.lit_bufsize-1},r._tr_align=function(Y){L(Y,2,3),W(Y,k,B),function(fe){fe.bi_valid===16?(V(fe,fe.bi_buf),fe.bi_buf=0,fe.bi_valid=0):8<=fe.bi_valid&&(fe.pending_buf[fe.pending++]=255&fe.bi_buf,fe.bi_buf>>=8,fe.bi_valid-=8)}(Y)}},{"../utils/common":41}],53:[function(n,i,r){i.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,i,r){(function(o){(function(s,a){if(!s.setImmediate){var u,f,d,c,h=1,p={},m=!1,y=s.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(s);v=v&&v.setTimeout?v:s,u={}.toString.call(s.process)==="[object process]"?function(w){process.nextTick(function(){g(w)})}:function(){if(s.postMessage&&!s.importScripts){var w=!0,T=s.onmessage;return s.onmessage=function(){w=!1},s.postMessage("","*"),s.onmessage=T,w}}()?(c="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",k,!1):s.attachEvent("onmessage",k),function(w){s.postMessage(c+w,"*")}):s.MessageChannel?((d=new MessageChannel).port1.onmessage=function(w){g(w.data)},function(w){d.port2.postMessage(w)}):y&&"onreadystatechange"in y.createElement("script")?(f=y.documentElement,function(w){var T=y.createElement("script");T.onreadystatechange=function(){g(w),T.onreadystatechange=null,f.removeChild(T),T=null},f.appendChild(T)}):function(w){setTimeout(g,0,w)},v.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var T=new Array(arguments.length-1),S=0;S<T.length;S++)T[S]=arguments[S+1];var _={callback:w,args:T};return p[h]=_,u(h),h++},v.clearImmediate=b}function b(w){delete p[w]}function g(w){if(m)setTimeout(g,0,w);else{var T=p[w];if(T){m=!0;try{(function(S){var _=S.callback,A=S.args;switch(A.length){case 0:_();break;case 1:_(A[0]);break;case 2:_(A[0],A[1]);break;case 3:_(A[0],A[1],A[2]);break;default:_.apply(a,A)}})(T)}finally{b(w),m=!1}}}}function k(w){w.source===s&&typeof w.data=="string"&&w.data.indexOf(c)===0&&g(+w.data.slice(c.length))}})(typeof self>"u"?o===void 0?this:o:self)}).call(this,typeof sm<"u"?sm:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(mK);var OSe=mK.exports;const FSe=bE(OSe);async function PSe(e){return new Promise((t,n)=>{FSe.loadAsync(e).then(function(i){const r=[];i.forEach((o,s)=>{r.push(s.name)}),t(r)},function(i){n(e.name+"@ "+i.message)})})}function jSe(e){return[...e].map(t=>t.charCodeAt(0))}function ISe(e,t=0){const n=Number.parseInt(e.toString("utf8",148,154).replace(/\0.*$/,"").trim(),8);if(Number.isNaN(n))return!1;let i=8*32;for(let r=t;r<t+148;r++)i+=e[r];for(let r=t+156;r<t+512;r++)i+=e[r];return n===i}const RSe=4100;function NSe(e,t,n){n={offset:0,...n};for(const[i,r]of t.entries())if(n.mask){if(r!==(n.mask[i]&e[i+n.offset]))return!1}else if(r!==e[i+n.offset])return!1;return!0}class MSe{constructor(t){this.blobRaw=t}check(t,n){return NSe(this.buffer,t,n)}checkString(t,n){return this.check(jSe(t),n)}async parse(t){if(this.buffer=t,this.check([66,77]))return{ext:"bmp",mime:"image/bmp"};if(this.check([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(this.check([71,73,70]))return{ext:"gif",mime:"image/gif"};if(this.check([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(this.check([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(this.checkString("FLIF"))return{ext:"flif",mime:"image/flif"};if(this.checkString("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(this.checkString("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(this.checkString("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(this.checkString("FORM"))return{ext:"aif",mime:"audio/aiff"};if(this.checkString("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(this.checkString("ftyp",{offset:4})&&this.buffer[8]&96){const n=this.buffer.toString("binary",8,12).replace("\0"," ").trim();switch(n){case"avif":case"avis":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return n.startsWith("3g")?n.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(this.checkString("MThd"))return{ext:"mid",mime:"audio/midi"};if(this.checkString("wOFF")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(this.checkString("wOF2")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(this.check([212,195,178,161])||this.check([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(this.checkString("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(this.checkString("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(this.checkString("fLaC"))return{ext:"flac",mime:"audio/x-flac"};if(this.check([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(this.checkString("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(this.checkString("%PDF"))return{ext:"pdf",mime:"application/pdf"};if(this.check([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(this.checkString("MAC "))return{ext:"ape",mime:"audio/ape"};if(this.check([82,73,70,70])){if(this.check([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(this.check([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(this.check([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(this.checkString("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(this.check([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(this.checkString("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(this.checkString("MSCF")||this.checkString("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(this.check([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(this.check([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(this.check([40,181,47,253]))return{ext:"zst",mime:"application/zstd"};if(this.check([127,69,76,70]))return{ext:"elf",mime:"application/x-elf"};if(this.check([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(this.checkString("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(this.checkString("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(this.check([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(this.checkString("IMPM"))return{ext:"it",mime:"audio/x-it"};if(this.checkString("-lh0-",{offset:2})||this.checkString("-lh1-",{offset:2})||this.checkString("-lh2-",{offset:2})||this.checkString("-lh3-",{offset:2})||this.checkString("-lh4-",{offset:2})||this.checkString("-lh5-",{offset:2})||this.checkString("-lh6-",{offset:2})||this.checkString("-lh7-",{offset:2})||this.checkString("-lzs-",{offset:2})||this.checkString("-lz4-",{offset:2})||this.checkString("-lz5-",{offset:2})||this.checkString("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(this.check([0,0,1,186])){if(this.check([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(this.check([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(this.checkString("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(this.check([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(this.checkString("<?xml "))return{ext:"xml",mime:"application/xml"};if(this.check([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(this.check([82,97,114,33,26,7])&&(this.buffer[6]===0||this.buffer[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(this.checkString("solid "))return{ext:"stl",mime:"model/stl"};if(this.check([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(this.check([65,82,82,79,87,49,0,0]))return{ext:"arrow",mime:"application/x-apache-arrow"};if(this.check([103,108,84,70,2,0,0,0]))return{ext:"glb",mime:"model/gltf-binary"};if(this.check([102,114,101,101],{offset:4})||this.check([109,100,97,116],{offset:4})||this.check([109,111,111,118],{offset:4})||this.check([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(this.check([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(this.checkString("gimp xcf "))return{ext:"xcf",mime:"image/x-xcf"};if(this.check([73,73,85,0,24,0,0,0,136,231,116,216]))return{ext:"rw2",mime:"image/x-panasonic-rw2"};if(this.check([48,38,178,117,142,102,207,17,166,217]))return{ext:"asf",mime:"application/vnd.ms-asf"};if(this.check([171,75,84,88,32,49,49,187,13,10,26,10]))return{ext:"ktx",mime:"image/ktx"};if((this.check([126,16,4])||this.check([126,24,4]))&&this.check([48,77,73,69],{offset:4}))return{ext:"mie",mime:"application/x-mie"};if(this.check([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2}))return{ext:"shp",mime:"application/x-esri-shape"};if(this.check([0,0,0,12,106,80,32,32,13,10,135,10]))return{ext:"jp2",mime:"image/jp2"};if(this.check([255,10])||this.check([0,0,0,12,74,88,76,32,13,10,135,10]))return{ext:"jxl",mime:"image/jxl"};if(this.check([254,255]))return this.check([0,60,0,63,0,120,0,109,0,108],{offset:2})?{ext:"xml",mime:"application/xml"}:void 0;if(this.check([0,0,1,186])||this.check([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(this.check([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(this.check([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(this.check([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(this.check([208,207,17,224,161,177,26,225]))return{ext:"cfb",mime:"application/x-cfb"};if(this.checkString("BEGIN:")){if(this.checkString("VCARD",{offset:6}))return{ext:"vcf",mime:"text/vcard"};if(this.checkString("VCALENDAR",{offset:6}))return{ext:"ics",mime:"text/calendar"}}if(this.checkString("FUJIFILMCCD-RAW"))return{ext:"raf",mime:"image/x-fujifilm-raf"};if(this.checkString("Extended Module:"))return{ext:"xm",mime:"audio/x-xm"};if(this.checkString("Creative Voice File"))return{ext:"voc",mime:"audio/x-voc"};if(this.check([4,0,0,0])&&this.buffer.length>=16){const n=this.buffer.readUInt32LE(12);if(n>12&&this.buffer.length>=n+16)try{const i=this.buffer.slice(16,n+16).toString();if(JSON.parse(i).files)return{ext:"asar",mime:"application/x-asar"}}catch{}}if(this.check([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(this.checkString("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(this.check([71])&&this.check([71],{offset:188}))return{ext:"mts",mime:"video/mp2t"};if(this.check([71],{offset:4})&&this.check([71],{offset:196}))return{ext:"mts",mime:"video/mp2t"};if(this.check([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(this.check([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(this.check([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(this.check([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(this.check([76,80],{offset:34})&&(this.check([0,0,1],{offset:8})||this.check([1,0,2],{offset:8})||this.check([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(this.check([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(ISe(this.buffer))return{ext:"tar",mime:"application/x-tar"};if(this.check([255,254]))return this.check([60,0,63,0,120,0,109,0,108,0],{offset:2})?{ext:"xml",mime:"application/xml"}:this.check([255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0],{offset:2})?{ext:"skp",mime:"application/vnd.sketchup.skp"}:void 0;if(this.checkString("-----BEGIN PGP MESSAGE-----"))return{ext:"pgp",mime:"application/pgp-encrypted"};if(this.buffer.length>=2&&this.check([255,224],{offset:0,mask:[255,224]})){if(this.check([16],{offset:1,mask:[22]}))return this.check([8],{offset:1,mask:[8]})?{ext:"aac",mime:"audio/aac"}:{ext:"aac",mime:"audio/aac"};if(this.check([2],{offset:1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(this.check([4],{offset:1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(this.check([6],{offset:1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}if(this.check([208,207,17,224,161,177,26,225])||this.checkString("WPS2001"))return{ext:"doc",mime:"application/x-indesign"};if(this.check([80,75,3,4])){const n=await PSe(this.blobRaw);for(;n.length;){const i=n.pop();if(Ke.endsWith(i,".rels")||Ke.endsWith(i,".xml"))switch(i.split("/")[0]){case"_rels":break;case"word":return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};case"ppt":return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};case"xl":return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}if(Ke.startsWith(i,"xl/"))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};if(Ke.startsWith(i,"3D/")&&Ke.endsWith(i,".model"))return{ext:"3mf",mime:"model/3mf"}}return{ext:"zip",mime:"application/zip"}}return{ext:"",mime:"unknow"}}}function LSe(e){return new Promise((t,n)=>{const i=new FileReader;i.onload=()=>{t(i.result)},i.onerror=n,i.readAsArrayBuffer(e.slice(0,RSe))})}async function vK(e){try{const t=await LSe(e),n=new Uint8Array(t);return new MSe(e).parse(n)}catch(t){throw t}}class zSe{constructor(){this.cosConfig=null,this.uploadUrl=null}getAuthorization(t,n){if(this.uploadUrl){var i=this,r=this.uploadUrl,o=new XMLHttpRequest;o.open("GET",r,!0),o.withCredentials=!0,o.setRequestHeader("Content-Type","application/json"),o.onload=function(s){var f,d,c,h;try{var a=JSON.parse(s.target.responseText),u=((f=a==null?void 0:a.data)==null?void 0:f.cos_sts_token)||{}}catch{}!a||!u||(i.cosConfig=u,n&&n({TmpSecretId:(d=u==null?void 0:u.credentials)==null?void 0:d.tmpSecretId,TmpSecretKey:(c=u==null?void 0:u.credentials)==null?void 0:c.tmpSecretKey,SecurityToken:(h=u==null?void 0:u.credentials)==null?void 0:h.sessionToken,ExpiredTime:u.expiredTime||"",ScopeLimit:!0}))},t?o.send(JSON.stringify(t.Scope)):o.send()}}initCos(){var t=this;this.cosInstance=new TSe({getAuthorization:function(n,i){t.getAuthorization(n,i)}})}async getFileNameType(t){const n=await vK((t==null?void 0:t.raw)||t);if(n.name=t.name,!n.ext){const i=t.name.split(".");n.ext=i.pop()}return n}async handleUploadFiles(t,n,{onProgress:i,onFileFinish:r,handlePath:o}){var a,u;const s=[];for(let f=0;f<t.length;f++){const d=t[f];if(d.uploadPercent||d.uploadDone==="done")continue;const c=await this.getFileNameType(d),h=o(c);t[f].fileType=c,t[f].keyPath=h;const p={Bucket:((a=this==null?void 0:this.cosConfig)==null?void 0:a.bucket)||"",Region:((u=this==null?void 0:this.cosConfig)==null?void 0:u.region)||"",Key:h,Body:d.raw};s.push(p),t[f].cosConfig=p,n||this.handleCosUploadSingle(t[f],i,r)}n&&this.cosInstance.uploadFiles({files:s,SliceSize:1024*1024*20,onProgress:function(f){var d=parseInt(f.percent*1e4)/100,c=parseInt(f.speed/1024/1024*100)/100;i&&i(d,f)},onFileFinish:function(f,d,c){r&&r(f,d,c,s)}},(f,d)=>{})}handleCosUploadSingle(t,n,i){this.cosInstance.uploadFile({...t.cosConfig,SliceSize:1024*1024*20,onProgress:function(r){var o=parseInt(r.percent*1e4)/100,s=parseInt(r.speed/1024/1024*100)/100;n&&n(o,r),t.uploadPercent=o},onFileFinish:function(r,o,s){if(r)t.uploadDone="file";else{const a=`/${s.Key}`;t.uploadDone="done",t.org_url=a}i&&i(r,o,s,t)}})}getInstance(t){return this.uploadUrl=t,this.cosInstance||(this.getAuthorization(),this.initCos(t)),this.cosInstance}}const Bb=new zSe,VSe={key:0,class:"fx mb10 fxb"},USe={class:"fx"},Db={__name:"pasteUpload",props:{copy:{type:Boolean,default:!1},btnText:{type:String,default:""},limit:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},btnList:{type:Array,default:()=>[]}},emits:["after-btn-click","upload-paste","after-btns-click"],setup(e,{emit:t}){const n=e,i=t;function r(d){try{fetch(""+d,{headers:{Accept:"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"}}).then(h=>{if(!h.ok)throw(h.type==="cors"||h.status===403||h.statusText==="Forbidden")&&lt.ElMessage.error(Pe("该网站可能有防爬机制,请保存后上传或者截图黏贴")),new Error("Network response was not ok");return h.blob()}).then(h=>{const p=new File([h],"image.jpg",{type:h.type});a(p)}).catch(h=>{lt.ElMessage.error(Pe("该网站可能有防爬机制,请保存后上传或者截图黏贴"))})}catch{}}const o=d=>{const h=/<img.*?src="(.*?)".*?>/g.exec(d),p=h&&h[1];p&&r(p)},s=d=>{var p,m;var c=d.clipboardData||d.originalEvent.clipboardData||window.clipboardData;let h=(c==null?void 0:c.items[1])||(c==null?void 0:c.items[0])||"";if(n.limit)return lt.ElMessage.error(Pe("只能上传一张图片"));if(!h)return lt.ElMessage.error(Pe("当前浏览器不支持本地图片粘贴"));if((p=h==null?void 0:h.type)!=null&&p.includes("image")){let y=h.getAsFile();a(y)}else if((m=h==null?void 0:h.type)!=null&&m.includes("text/html")){const y=c.getData("text/html");y&&o(y)}else return lt.ElMessage.error(Pe("粘贴内容非图片"))};function a(d){i("upload-paste",d)}function u(){i("after-btn-click")}function f(d){i("after-btns-click",d,r)}return(d,c)=>{var m;const h=l.resolveComponent("el-input"),p=l.resolveComponent("el-button");return e.copy||e.btnText||(m=e.btnList)!=null&&m.length?(l.openBlock(),l.createElementBlock("div",VSe,[e.copy?(l.openBlock(),l.createBlock(h,{key:0,class:"paste-img-wrapper",disabled:e.disabled,placeholder:l.unref(Pe)("在此处粘贴图片即上传"),rows:2,type:"textarea",onPaste:s},null,8,["disabled","placeholder"])):l.createCommentVNode("",!0),l.createElementVNode("div",USe,[e.btnText?(l.openBlock(),l.createBlock(p,{key:0,class:"ml10",disabled:e.disabled,size:"small",type:"primary",onClick:u},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(Pe)(e.btnText)||l.unref(Pe)("从素材库选")),1)]),_:1},8,["disabled"])):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.btnList,(y,v)=>(l.openBlock(),l.createBlock(p,l.mergeProps({key:v,size:"small",type:"primary",ref_for:!0},y.attrs,{onClick:b=>f(y)}),{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(y==null?void 0:y.title),1)]),_:2},1040,["onClick"]))),128))])])):l.createCommentVNode("",!0)}}},HSe=Object.freeze(Object.defineProperty({__proto__:null,default:Db},Symbol.toStringTag,{value:"Module"})),qSe=l.defineComponent({name:"JwtFileUpload",components:{PasteUpload:Db},props:{module:{type:String,default:"/"},id:{type:String,default:""},limit:{type:Number,default:5},modelValue:{type:Array,default:()=>[]},accept:{type:String,default:""},limitSize:{type:[String,Number],default:1024*500},isCosSdk:{type:Boolean,default:!0},isCosBacthUpload:{type:Boolean,default:!0},copyImgUploade:{type:Boolean,default:!1}},emits:["on-success","update:modelValue","onChange","upload-success"],setup(e,{emit:t}){var n=null;const i=Nn(),r=l.reactive({fileName:"",fileList:l.computed({get:()=>e.modelValue||"",set:k=>{t("update:modelValue",k)}}),extraParams:{module:e.module,name:"",id:e.id},uploadFiles:[],uploadSuccessFiles:[],uploadFileNum:0,selectUploadFileNum:0,uploadTips:"",uploadProgress:!1,uploadPercent:0}),o=l.ref(null),s=(k,w)=>{},a=k=>{},u=(k,w)=>{t("on-success",w)},f=k=>{if(!i.uploadImgUrl)return lt.ElMessage.error(Pe("请配置上传的路径地址"));r.extraParams.name=k.name;const w=parseInt(e.limitSize),T=w/1024,S=k.size/1024<w;return S||(T>1?lt.ElMessage.error(`${Pe("上传文件大小不能超过")} ${T}MB!`):lt.ElMessage.error(`${Pe("上传文件大小不能超过")} ${w}KB!`)),S},d=(k,w)=>{lt.ElMessage.warning(`${Pe("最多上传")}${e.limit}${Pe("文件")},${Pe("您选择了")}${w.length}${Pe("个文件,请重新选择")}`)},c=(k,w)=>{},h=(k,w)=>{if(!e.isCosSdk)return;r.uploadFiles.push(k);let T=w.length;r.selectUploadFileNum=Math.max(T,r.selectUploadFileNum),setTimeout(()=>{r.selectUploadFileNum!==T||r.uploadProgress&&e.isCosBacthUpload||(r.uploadProgress=!0,r.uploadTips=Pe("正在上传中"),r.uploadSuccessFiles=[],p(r.uploadFiles))},50)},p=async k=>{Bb.handleUploadFiles(k,e.isCosBacthUpload,{onProgress:m,onFileFinish:y,handlePath:v})},m=(k,w)=>{e.isCosBacthUpload&&(r.uploadPercent=k)},y=(k,w,T,S)=>{if(e.isCosBacthUpload)if(k)lt.ElMessage.error(Pe("上传失败请重新上传")),r.uploadTips=Pe("上传失败请重新上传"),r.uploadProgress=!1,r.uploadFileNum=0,r.uploadPercent=0;else{r.uploadFileNum+=1;const _=r.uploadFiles.findIndex(A=>A.keyPath===T.Key);_>=0&&(r.uploadFiles[_].uploadDone="done",r.uploadFiles[_].uploadPercent=100,t("upload-success",r.uploadFiles[_],r.uploadFileNum===S.length)),r.uploadFileNum===S.length&&(r.uploadTips=Pe("上传完成"),setTimeout(()=>{r.uploadProgress=!1,r.uploadFileNum=0,r.uploadPercent=0},500))}else k?lt.ElMessage.error(Pe("上传失败请重新上传")):t("upload-success",S,!0)},v=k=>`${ir.get("companyId")}/${e.module}/${fa().format("YYYYMMDD")}/${u7(k.name+`${c7(0,1e4)}`)}.${k.ext}`,b=()=>{n=Bb.getInstance(i.txCosUploadFileUrl)},g=k=>{o.value.handleStart(k),o.value.submit()};return l.onMounted(()=>{e.isCosSdk&&b()}),{uploadRef:o,appOptions:i,...l.toRefs(r),handleRemove:s,handlePreview:a,handleExceed:d,beforeRemove:c,handleBeforeUpload:f,onSuccess:u,t:Pe,handleUploadOnChange:h,handleUploadPaste:g}}}),WSe={class:"w"},KSe={class:"el-upload__text",style:{"min-width":"300px"}},GSe={key:0},JSe={class:"cd"};function YSe(e,t,n,i,r,o){const s=l.resolveComponent("PasteUpload"),a=l.resolveComponent("el-icon"),u=l.resolveComponent("el-upload"),f=l.resolveComponent("el-progress");return l.openBlock(),l.createElementBlock("div",null,[l.createElementVNode("div",WSe,[l.createVNode(s,{copy:e.copyImgUploade,limit:0,onUploadPaste:e.handleUploadPaste},null,8,["copy","onUploadPaste"])]),l.createVNode(u,{ref:"uploadRef","file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=d=>e.fileList=d),accept:e.accept,action:e.appOptions.uploadImgUrl,"auto-upload":!e.isCosSdk,"before-remove":e.beforeRemove,"before-upload":e.handleBeforeUpload,data:e.extraParams,drag:"",limit:e.limit,multiple:"",name:"filedata","on-change":e.handleUploadOnChange,"on-exceed":e.handleExceed,"on-preview":e.handlePreview,"on-remove":e.handleRemove,"on-success":e.onSuccess,"with-credentials":""},{default:l.withCtx(()=>[l.createVNode(a,{class:"el-icon--upload"},{default:l.withCtx(()=>t[1]||(t[1]=[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6H544z",fill:"currentColor"})],-1)])),_:1}),l.createElementVNode("div",KSe,[l.createElementVNode("em",null,l.toDisplayString(e.t("上传文件")),1)])]),_:1},8,["file-list","accept","action","auto-upload","before-remove","before-upload","data","limit","on-change","on-exceed","on-preview","on-remove","on-success"]),e.isCosBacthUpload&&e.uploadProgress?(l.openBlock(),l.createElementBlock("div",GSe,[l.createVNode(f,{percentage:e.uploadPercent},null,8,["percentage"]),l.createElementVNode("span",JSe,l.toDisplayString(e.uploadTips),1)])):l.createCommentVNode("",!0)])}const XSe=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(qSe,[["render",YSe]])},Symbol.toStringTag,{value:"Module"})),ZSe={key:0},QSe={key:1},$Se={key:0},yK={__name:"FormLabel",props:{config:{type:Object,default:()=>{}},label:{type:[String,Function],default:""},showColon:{type:Boolean,default:!1},row:{type:Object,default:()=>{}}},setup(e){const t=e,n=l.computed(()=>{var o;let r=((o=t.config)==null?void 0:o.label)||t.label;return Ke.isFunction(r)&&(r=r(t.row)),Pe(r)}),i=l.computed(()=>{var o;let r=(o=t.config)==null?void 0:o.tips;return r?(Ke.isFunction(r)&&(r=r(t.row)),r?Pe(r):""):""});return(r,o)=>{const s=l.resolveComponent("el-tooltip");return i.value?(l.openBlock(),l.createBlock(s,{key:0,content:i.value,effect:"dark",placement:"bottom",persistent:!1},{default:l.withCtx(()=>[l.createElementVNode("span",null,[l.createTextVNode(l.toDisplayString(n.value)+" ",1),e.showColon?(l.openBlock(),l.createElementBlock("span",ZSe,":")):l.createCommentVNode("",!0)])]),_:1},8,["content"])):(l.openBlock(),l.createElementBlock("span",QSe,[l.createTextVNode(l.toDisplayString(n.value)+" ",1),e.showColon?(l.openBlock(),l.createElementBlock("span",$Se,":")):l.createCommentVNode("",!0)]))}}},exe=Object.freeze(Object.defineProperty({__proto__:null,default:yK},Symbol.toStringTag,{value:"Module"})),txe=l.defineComponent({name:"JwtForm",components:{FormLabel:yK},props:{modelValue:{require:!0,type:[Object,Function],default:()=>{}},config:{require:!0,type:[Object,Function],default:()=>{}},isSearch:{type:Boolean,default:!1},selectionRowIds:{type:String,default:""},selectionRow:{type:Array,default:()=>[]}},emits:["submit","reset","update:modelValue","add-success","edit-success","get-detail-success","error","upload-btn","add-option","picture-action","item-change","after-btns-click"],setup(e,{emit:t}){const n=Nn(),i=l.reactive({loading:!1,fold:!1,init:1}),r=l.ref(null),o=l.ref({});let s={};const a=l.computed(()=>{var V;if(!(e!=null&&e.config))return{};let j=Ke.cloneDeep(e.config);return(V=j==null?void 0:j.formList)!=null&&V.length&&on.hasArray(j==null?void 0:j.formList)&&(j.formList=NJ(j.formList)),Object.freeze(j)}),u=l.computed(()=>{var j,V;return(V=(j=a.value)==null?void 0:j.formList)==null?void 0:V.filter(L=>L.type==="divider")}),f=l.computed(()=>{var re,be,Se,ee;const j=((re=a.value)==null?void 0:re.formList)||[],V=j.length;let L={condition:new Array(V).fill(!0),show:new Array(V).fill(!0),formItemClass:new Array(V).fill("")};const W=i.fold,G=((be=a.value)==null?void 0:be.showNum)||0,$=((Se=a.value)==null?void 0:Se.formAttrs)||{};for(let we=0;we<V;we++){const Ee=j[we],P=Ee.condition?Ee.condition(o.value):!0,le=W||!G||G>we,me=[((ee=Ee==null?void 0:Ee.labelAttrs)==null?void 0:ee.labelWidth)==="0px"||($==null?void 0:$.labelWidth)==="0px"?"empty-label":"",Ee.type==="tips"?"tips-form-item":""];L.condition[we]=P,L.show[we]=le,L.formItemClass[we]=me}return L}),d=(j={},V=!1)=>{var G,$;const L=V||i.init,W={...j};return a.value.formList.forEach(re=>{C7(re,j,W,L)}),i.init=(i.init+1)%4,(G=a.value.api)!=null&&G.detailCallBack&&Ke.isFunction(a.value.api.detailCallBack)?($=a.value.api)==null?void 0:$.detailCallBack(W,j):W},c=async()=>{let j=!0;return await r.value.validate(V=>{j=V}),j},h=async()=>{var L,W;let j={};const V=LJ(a.value.formList,j,o.value);return V!=null&&V.length||(j={...o.value}),a.value.formEditParams&&on.hasObject(a.value.formEditParams)&&Object.assign(j,a.value.formEditParams),await((W=(L=a.value)==null?void 0:L.beforeReq)==null?void 0:W.call(L,j,o.value,e.selectionRowIds,e.selectionRow))||j},p=async(j=null)=>{var W;let V=j||{},L=!o.value.id;return(W=a.value)!=null&&W.isAddFun&&Ke.isFunction(a.value.isAddFun)&&(L=a.value.isAddFun(V,o.value)),L},m=async(j="",V={})=>{var G,$,re,be,Se,ee,we,Ee;if(!await c())return;let W=await h();if((G=Object.keys(V))!=null&&G.length&&(W={...W,...V}),(re=($=a==null?void 0:a.value)==null?void 0:$.api)!=null&&re.add||(Se=(be=a==null?void 0:a.value)==null?void 0:be.api)!=null&&Se.update){if(!(W instanceof FormData)){if(((ee=Object.keys(W))==null?void 0:ee.length)===0){t("error");return}}i.loading=!0;let P=yB((we=a.value)==null?void 0:we.api,W,o.value);if((Ee=P==null?void 0:P.contentType)!=null&&Ee.includes("multipart/form-data")&&!(W instanceof FormData)){let me=new FormData;for(const J in W){const Y=W[J];Y!==void 0&&me.append(J,Y)}W=me}await p(W)?n.request({url:a.value.api.add,method:"post",data:W,...P}).then(me=>{var J,Y,fe,oe;i.loading=!1,(J=a.value.api)!=null&&J.addCallback&&on.isFunction((Y=a.value.api)==null?void 0:Y.addCallback)&&((oe=(fe=a.value.api)==null?void 0:fe.addCallback)==null||oe.call(fe,me,W)),t("add-success",me,j||"add"),j==="addSave"&&l.nextTick(()=>{i.init=!0})}).catch(()=>{i.loading=!1,t("error")}):(W.id=o.value.id,n.request({url:a.value.api.update,method:"post",data:W,...P}).then(me=>{var J,Y,fe,oe;i.loading=!1,me.id&&(o.value.id=me.id),(J=a.value.api)!=null&&J.updateCallback&&on.isFunction((Y=a.value.api)==null?void 0:Y.updateCallback)&&((oe=(fe=a.value.api)==null?void 0:fe.updateCallback)==null||oe.call(fe,me,W)),t("edit-success",me,j||"edit")}).catch(()=>{i.loading=!1,t("error")}))}else t("submit",W)},y=(j,V)=>{const{startKey:L,endKey:W}=V,G=V.formAttrs.format||"YYYY-MM-DD HH:mm:ss";V.formAttrs.type&&V.formAttrs.type.includes("range")&&(o.value[L]=j?fa(j[0]).format(G):"",o.value[W]=j?fa(j[1]).format(G):"")},v=(j,V)=>{const{startKey:L,endKey:W,key:G,type:$}=V;S7($,V)?(o.value[L]=j[0],o.value[W]=j[1]):o.value[G]=j},b=()=>{r.value.resetFields(),t("reset",o.value)},g=(j={})=>{var V,L,W,G,$,re,be,Se,ee,we;if((L=(V=a.value)==null?void 0:V.api)!=null&&L.detail&&((G=(W=a.value)==null?void 0:W.api)!=null&&G.detailParams)&&((Se=($=a.value)==null?void 0:$.api)!=null&&Se.detailParams[((be=(re=a.value)==null?void 0:re.api)==null?void 0:be.detailParamsKey)||"id"])){const Ee={...a.value.api.detailParams,...((we=(ee=a.value)==null?void 0:ee.api)==null?void 0:we.detailExParams)||{},...j};n.request({url:a.value.api.detail,method:"get",params:Ee}).then(P=>{let le=d(P);on.isObject(le)&&l.nextTick(()=>{o.value=le}),t("get-detail-success",P)})}else{if(i.init>1)return;let Ee=d();o.value=Ee}},k=()=>{i.fold=!i.fold},w=(j,V)=>{t("upload-btn",V)},T=(j,V,L,W)=>{t("after-btns-click",j,L,W,V)},S=(j,V)=>{V.handleFun&&on.isFunction(V.handleFun)&&V.handleFun(j,F,o.value,V),t("picture-action",{action:j,item:V})},_=j=>{t("add-option",j)},A=(j,V)=>{var W,G;const L=(W=V==null?void 0:V.formAttrs)==null?void 0:W.refKey;if(L){const $=s[L];if(V!=null&&V.changeCptOptions){const re=V.changeCptOptions(j);$.hanldeSetListData(re)}else if(V!=null&&V.setDynamicParams&&Ke.isFunction(V.setDynamicParams)){const re=V.setDynamicParams(j,o.value,$);$.handleSetDynamicParams(re),l.nextTick(()=>{$.getDataList(!0)})}else{let re=j;V.searchValFun&&Ke.isFunction(V.searchValFun)&&(re=V.searchValFun(j));const be=(G=V==null?void 0:V.formAttrs)==null?void 0:G.refSearchKey;$==null||$.getDataList(!0,re,be)}}},D=(j,V)=>{var L;(L=V==null?void 0:V.formAttrs)!=null&&L.emitSelect||(E(V,j),N())},x=(j,V)=>{E(V,j)},B=j=>{j&&j.cptKey&&(s[j.cptKey]=j)},E=async(j,V)=>{if(j!=null&&j.onChange&&Ke.isFunction(j.onChange)){const L=j!=null&&j.needParams?await h():{};j.onChange(V,o.value,L)}!(j!=null&&j.hideEmit)&&t("item-change",V,j,o.value),A(V,j)},F=(j,V)=>{o.value[j]=V},C=(j,V)=>{o.value[j]=V(o.value)},I=()=>{g()};l.onBeforeMount(()=>{I()});const N=async()=>{if(e.isSearch){const j=await h();t("submit",j)}},H=(j,V,L)=>{const W=k7(j,V,L);F(V,W)},Q=async(j,V)=>{var G;const{key:L,type:W}=V;if(W==="cascader"||W==="cascaderServer")H(j,L,V);else if(W==="timePicker"||W==="slider"&&((G=V==null?void 0:V.formAttrs)!=null&&G.range))v(j,V);else if(W==="datePickerRange")y(j,V);else if(W==="input"){const $=j==null?void 0:j.trim();F(L,$)}else F(L,j);E(V,j),l.nextTick(()=>{N()})},ie=(j,V)=>{V.selectVal=j},ae=j=>{o.value=d(j)},M=l.watchEffect(()=>{Ke.isObject(e.modelValue)&&!Ke.isEmpty(e.modelValue)&&!e.isSearch&&ae(e.modelValue)});return l.onBeforeUpdate(()=>{s={}}),l.onUnmounted(()=>{M(),s=null}),{...l.toRefs(i),formRef:r,refComponments:s,formConfig:a,appModel:o,colVisibleResult:f,fromDividerList:u,isAddForm:p,formSubmit:m,formReset:b,formValidate:c,getDetail:g,datePickerChange:y,handleFormListData:d,handleFold:k,handleAfterBtnClick:w,handleAfterBtnsClick:T,handleAddOption:_,handleSelectServerChange:D,handleSelectServerSelect:x,setItemRef:B,setModelVal:F,handleSetModelVal:C,getDeepVal:rr,t:Pe,handlePictureAction:S,createSubmitData:h,timePickerChange:v,handleSetModelValue:ae,handleComponentChange:Q,handleInputSelectChange:ie}}}),nxe={key:0},ixe={key:1};function rxe(e,t,n,i,r,o){var v,b,g;const s=l.resolveComponent("FormLabel"),a=l.resolveComponent("JwtPrefixSuffix"),u=l.resolveComponent("JwtFormItem"),f=l.resolveComponent("jwt-select-server"),d=l.resolveComponent("el-form-item"),c=l.resolveComponent("el-col"),h=l.resolveComponent("el-button"),p=l.resolveComponent("jwt-icon"),m=l.resolveComponent("el-row"),y=l.resolveComponent("el-form");return(b=(v=e.formConfig)==null?void 0:v.formList)!=null&&b.length?(l.openBlock(),l.createBlock(y,l.mergeProps({key:0},(g=e.formConfig)==null?void 0:g.formAttrs,{ref:"formRef",class:"app-form-container",model:e.appModel,onSubmit:t[0]||(t[0]=l.withModifiers(()=>{},["prevent"]))}),{default:l.withCtx(()=>[l.createVNode(m,{gutter:10},{default:l.withCtx(()=>{var k;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((k=e.formConfig)==null?void 0:k.formList,(w,T)=>{var S,_,A,D;return l.openBlock(),l.createElementBlock(l.Fragment,{key:T},[w.type!="submit"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[e.colVisibleResult.condition[T]?l.withDirectives((l.openBlock(),l.createBlock(c,l.mergeProps({key:0,ref_for:!0},w==null?void 0:w.layoutAttrs,{key:T,class:[(_=(S=e.formConfig)==null?void 0:S.formAttrs)!=null&&_.inline?"el-col-dl":"db"]}),{default:l.withCtx(()=>[w.type!=="slot"?(l.openBlock(),l.createBlock(d,l.mergeProps({key:0,ref_for:!0},w.labelAttrs,{key:T,class:e.colVisibleResult.formItemClass[T],prop:w.key}),{label:l.withCtx(()=>[l.createVNode(s,{config:w==null?void 0:w.labelAttrs,"show-colon":e.formConfig.showColon,row:e.appModel},null,8,["config","show-colon","row"])]),default:l.withCtx(()=>{var x,B,E,F;return[l.createElementVNode("div",{class:l.normalizeClass(((x=w==null?void 0:w.formAttrs)==null?void 0:x.contentCls)||"fx w")},[l.createVNode(a,{item:w,row:e.appModel,type:"pre"},null,8,["item","row"]),l.createVNode(u,{modelValue:e.appModel[w.key],"onUpdate:modelValue":C=>e.appModel[w.key]=C,item:w,"source-data":e.appModel,onAddOption:C=>e.handleAddOption(w),onAfterBtnClick:C=>e.handleAfterBtnClick(C,w),onAfterBtnsClick:e.handleAfterBtnsClick,onChange:C=>e.handleComponentChange(C,w),onInputSelectChange:C=>e.handleInputSelectChange(C,w),onPictureAction:C=>e.handlePictureAction(C,w)},null,8,["modelValue","onUpdate:modelValue","item","source-data","onAddOption","onAfterBtnClick","onAfterBtnsClick","onChange","onInputSelectChange","onPictureAction"]),w.type==="selectServer"?(l.openBlock(),l.createBlock(f,l.mergeProps({key:0,ref_for:!0},w.formAttrs,{ref_for:!0,ref:e.setItemRef,modelValue:e.appModel[w.key],"onUpdate:modelValue":C=>e.appModel[w.key]=C,"cpt-key":w.key,"model-value-name":e.appModel[w==null?void 0:w.titleKey]||((B=w==null?void 0:w.formAttrs)==null?void 0:B.modelValueName)||"","source-data":e.appModel},l.toHandlers(w.formEvents),{onAddOption:C=>e.handleAddOption(w),onChange:C=>e.handleSelectServerChange(C,w),onSelect:C=>e.handleSelectServerSelect(C,w)}),null,16,["modelValue","onUpdate:modelValue","cpt-key","model-value-name","source-data","onAddOption","onChange","onSelect"])):l.createCommentVNode("",!0),l.createVNode(a,{item:w,row:e.appModel,type:"suf"},null,8,["item","row"])],2),(E=w==null?void 0:w.formAttrs)!=null&&E.tips?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass((F=w==null?void 0:w.formAttrs)==null?void 0:F.tipsCls)},l.toDisplayString(e.t(w.formAttrs.tips)),3)):l.createCommentVNode("",!0)]}),_:2},1040,["class","prop"])):l.createCommentVNode("",!0),w.type==="slot"?l.renderSlot(e.$slots,w.name,{key:1,model:e.appModel}):l.createCommentVNode("",!0)]),_:2},1040,["class"])),[[l.vShow,e.colVisibleResult.show[T]]]):l.createCommentVNode("",!0)],64)):(l.openBlock(),l.createBlock(c,l.mergeProps({key:1,ref_for:!0},w==null?void 0:w.layoutAttrs,{key:T,class:[(D=(A=e.formConfig)==null?void 0:A.formAttrs)!=null&&D.inline?"el-col-dl":"db"]}),{default:l.withCtx(()=>[w.type!=="slot"?(l.openBlock(),l.createBlock(d,l.mergeProps({key:0,ref_for:!0},w.labelAttrs,{key:T,prop:w.key}),{default:l.withCtx(()=>{var x,B;return[w.submit?(l.openBlock(),l.createBlock(h,l.mergeProps({key:0,ref_for:!0},w.submit.attrs,{loading:e.loading},l.toHandlers(w.submit.events),{onClick:e.formSubmit}),{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(w.submit.title),1)]),_:2},1040,["loading","onClick"])):l.createCommentVNode("",!0),w.reset?(l.openBlock(),l.createBlock(h,l.mergeProps({key:1,ref_for:!0},w.reset.attrs,{loading:e.loading},l.toHandlers(w.reset.events),{onClick:e.formReset}),{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(w.reset.title),1)]),_:2},1040,["loading","onClick"])):l.createCommentVNode("",!0),e.formConfig.showNum&&e.formConfig.showNum<((B=(x=e.formConfig)==null?void 0:x.formList)==null?void 0:B.length)-1?(l.openBlock(),l.createBlock(h,{key:2,text:"",type:"primary",onClick:e.handleFold},{default:l.withCtx(()=>[e.fold?(l.openBlock(),l.createElementBlock("span",ixe,l.toDisplayString(e.t("合并")||"合并"),1)):(l.openBlock(),l.createElementBlock("span",nxe,l.toDisplayString(e.t("展开")||"展开"),1)),l.createVNode(p,{class:l.normalizeClass(["vab-dropdown",{"vab-dropdown-active":!e.fold}]),icon:"arrow-up-s-line"},null,8,["class"])]),_:1},8,["onClick"])):l.createCommentVNode("",!0)]}),_:2},1040,["prop"])):l.createCommentVNode("",!0)]),_:2},1040,["class"]))],64)}),128))]}),_:3})]),_:3},16,["model"])):l.createCommentVNode("",!0)}const oxe=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(txe,[["render",rxe]])},Symbol.toStringTag,{value:"Module"})),bK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormAutocomplete",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-autocomplete");return l.openBlock(),l.createBlock(u,l.mergeProps(l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),null,16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),kE=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormCascader",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i),s=l.computed(()=>n.item.formSlot||{default:null,empty:null});return(a,u)=>{const f=l.resolveComponent("el-cascader");return l.openBlock(),l.createBlock(f,l.mergeProps(l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),l.createSlots({_:2},[s.value.default?{name:"default",fn:l.withCtx(({node:d,data:c})=>[l.renderSlot(a.$slots,s.value.default,{data:c,node:d})]),key:"0"}:void 0,s.value.empty?{name:"empty",fn:l.withCtx(()=>[l.renderSlot(a.$slots,e.item.formSlot.empty)]),key:"1"}:void 0]),1040,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),kK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormCascaderPanel",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i),s=l.computed(()=>n.item.formSlot||{default:null});return(a,u)=>{const f=l.resolveComponent("el-cascader-panel");return l.openBlock(),l.createBlock(f,l.mergeProps(l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),l.createSlots({_:2},[s.value.default?{name:"default",fn:l.withCtx(({node:d,data:c})=>[l.renderSlot(a.$slots,s.value.default,{data:c,node:d})]),key:"0"}:void 0]),1040,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),wK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormCheckbox",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemOptions:r,itemAttrs:o,handleChange:s,handleGetList:a}=$t(n,i),u=l.ref([]),f=l.computed(()=>u.value.length?u.value:r.value);return o.listApi&&a(u),(d,c)=>{const h=l.resolveComponent("el-checkbox-button"),p=l.resolveComponent("el-checkbox"),m=l.resolveComponent("el-checkbox-group");return l.openBlock(),l.createBlock(m,l.mergeProps(l.unref(o),l.toHandlers(e.item.formEvents),{onChange:l.unref(s)}),{default:l.withCtx(()=>[e.item.isButton?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(f.value,(y,v)=>(l.openBlock(),l.createBlock(h,l.mergeProps({ref_for:!0},y.attrs,{key:v}),{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(y.title),1)]),_:2},1040))),128)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(f.value,(y,v)=>(l.openBlock(),l.createBlock(p,l.mergeProps({ref_for:!0},y.attrs,{key:v,label:y.value||y.attrs.label}),{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(y.title||y.label),1)]),_:2},1040,["label"]))),128))]),_:1},16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),_K=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormColorPicker",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-color-picker");return l.openBlock(),l.createBlock(u,l.mergeProps(l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),null,16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),wE=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormDatePicker",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i),s=l.computed(()=>n.item.formSlot||{rangeSeparator:null});return(a,u)=>{const f=l.resolveComponent("el-date-picker");return l.openBlock(),l.createBlock(f,l.mergeProps({"value-format":"YYYY-MM-DD"},l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),l.createSlots({_:2},[s.value.rangeSeparator?{name:"range-separator",fn:l.withCtx(()=>[l.renderSlot(a.$slots,e.item.formSlot.rangeSeparator)]),key:"0"}:void 0]),1040,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),axe=["id"],_E=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormDivider",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,itemText:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-divider");return l.openBlock(),l.createBlock(u,l.mergeProps({"content-position":"left"},l.unref(r)),{default:l.withCtx(()=>{var f;return[l.createElementVNode("div",l.mergeProps(l.unref(r),{id:(f=e.item)==null?void 0:f.name,class:"jwt-form-divider-text"}),l.toDisplayString(l.unref(o)),17,axe)]}),_:1},16)}}})},Symbol.toStringTag,{value:"Module"})),sxe={class:"jwt-edit-input-wrapper fxmj"},CE=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(l.defineComponent({__name:"FormEditInput",props:{item:{type:Object,default:()=>{}},row:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o,itemKey:s}=$t(n,i),a=l.ref(null),u=l.ref(!1),f=l.ref(!1),d=l.ref(!1);let c=null;const h=l.computed(()=>{const k=n.sourceData[s];return uk(k,"",n.sourceData,n.item)}),p=l.computed(()=>f.value?"check-line":"edit-2-line");function m(){f.value=!1,u.value=!1}function y(k){k.preventDefault(),f.value=!0,u.value=!0,d.value||(d.value=!0)}function v(k){f.value?(m(),o(a.value)):y(k)}function b(){r!=null&&r.isLink&&(c=setTimeout(()=>{u.value||window.open(h.value,"_blank")},200))}const g=l.watchEffect(()=>{a.value=n.sourceData[s]});return l.onUnmounted(()=>{clearTimeout(c),g()}),(k,w)=>{const T=l.resolveComponent("el-input"),S=l.resolveComponent("jwt-icon"),_=l.resolveComponent("el-button");return l.openBlock(),l.createElementBlock("div",sxe,[l.withDirectives(l.createElementVNode("div",{class:l.normalizeClass([l.unref(r).isLink?"omit c0 cp plr5 ptb2 ":"jwt-edit-input-text"]),onClick:b},l.toDisplayString(h.value),3),[[l.vShow,!f.value]]),d.value?l.withDirectives((l.openBlock(),l.createBlock(T,l.mergeProps({key:0,modelValue:a.value,"onUpdate:modelValue":w[0]||(w[0]=A=>a.value=A)},l.unref(r)),null,16,["modelValue"])),[[l.vShow,f.value]]):l.createCommentVNode("",!0),l.withDirectives(l.createVNode(_,{class:l.normalizeClass(["jwt-edit-input-btn",[f.value?"jwt-edit-input-btn-active":"jwt-edit-input-btn"]]),type:"primary",size:"small",link:"",onClick:l.withModifiers(v,["stop"])},{default:l.withCtx(()=>[l.createVNode(S,{icon:p.value,size:"16"},null,8,["icon"])]),_:1},8,["class"]),[[l.vShow,f.value]])])}}}),[["__scopeId","data-v-0bb97b16"]])},Symbol.toStringTag,{value:"Module"})),SE=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormInput",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i),s=l.computed(()=>n.item.formSlot||{prefix:null,suffix:null,prepend:null,append:null});return(a,u)=>{const f=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(f,l.mergeProps(l.unref(r),{onChange:l.unref(o)}),l.createSlots({_:2},[s.value.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(a.$slots,s.value.prefix)]),key:"0"}:void 0,s.value.suffix?{name:"suffix",fn:l.withCtx(()=>[l.renderSlot(a.$slots,s.value.suffix)]),key:"1"}:void 0,s.value.prepend?{name:"prepend",fn:l.withCtx(()=>[l.renderSlot(a.$slots,s.value.prepend)]),key:"2"}:void 0,s.value.append?{name:"append",fn:l.withCtx(()=>[l.renderSlot(a.$slots,s.value.append)]),key:"3"}:void 0]),1040,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),CK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormInputHidden",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(u,l.mergeProps(l.unref(r),{type:"hidden",onChange:l.unref(o)}),null,16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),SK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormInputSelect",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change","input-select-change"],setup(e,{emit:t}){var d;const n=e,i=t,{itemAttrs:r,handleChange:o,itemOptions:s,itemSelectAttrs:a}=$t(n,i),u=l.ref(((d=n==null?void 0:n.item)==null?void 0:d.key)||"");function f(c){i("input-select-change",c)}return l.onMounted(()=>{var c;a.multiple&&(u.value=[((c=n==null?void 0:n.item)==null?void 0:c.key)||""])}),(c,h)=>{const p=l.resolveComponent("el-option"),m=l.resolveComponent("el-select"),y=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(y,l.mergeProps(l.unref(r),{onChange:l.unref(o)}),{prepend:l.withCtx(()=>[l.createVNode(m,l.mergeProps({modelValue:u.value,"onUpdate:modelValue":h[0]||(h[0]=v=>u.value=v),style:{width:"90px"}},l.unref(a),{onChange:f}),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(s),(v,b)=>(l.openBlock(),l.createBlock(p,l.mergeProps({ref_for:!0},v,{key:b}),null,16))),128))]),_:1},16,["modelValue"])]),_:1},16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),xE=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormNumberInput",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-input-number");return l.openBlock(),l.createBlock(u,l.mergeProps({"controls-position":"right",min:0},l.unref(r),{onChange:l.unref(o)}),null,16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),xK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormRadio",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemOptions:r,itemAttrs:o,handleChange:s}=$t(n,i);return(a,u)=>{var h;const f=l.resolveComponent("el-radio-button"),d=l.resolveComponent("el-radio"),c=l.resolveComponent("el-radio-group");return l.openBlock(),l.createBlock(c,l.mergeProps(l.unref(o),l.toHandlers(((h=e.item)==null?void 0:h.formEvents)||{}),{onChange:l.unref(s)}),{default:l.withCtx(()=>[e.item.isButton?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(l.unref(r),(p,m)=>(l.openBlock(),l.createBlock(f,l.mergeProps({ref_for:!0},p.attrs,{key:m},l.toHandlers(p.events)),{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(p.title),1)]),_:2},1040))),128)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(l.unref(r),(p,m)=>(l.openBlock(),l.createBlock(d,l.mergeProps({ref_for:!0},p.attrs,{key:m},l.toHandlers(p.events)),{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(p.title),1)]),_:2},1040))),128))]),_:1},16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),EK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormRate",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-rate");return l.openBlock(),l.createBlock(u,l.mergeProps(l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),null,16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),BK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormSelect",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemOptions:r,itemAttrs:o,handleChange:s}=$t(n,i),a=l.computed(()=>{var u;return((u=n.item)==null?void 0:u.formSlot)||{default:null,prefix:null,empty:null}});return(u,f)=>{const d=l.resolveComponent("el-option"),c=l.resolveComponent("el-option-group"),h=l.resolveComponent("el-select");return l.openBlock(),l.createBlock(h,l.mergeProps(l.unref(o),l.toHandlers(e.item.formEvents),{onChange:l.unref(s)}),l.createSlots({default:l.withCtx(()=>[a.value.default?l.renderSlot(u.$slots,a.value.default,{key:0}):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[e.item.isGroup?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(l.unref(r),(p,m)=>(l.openBlock(),l.createBlock(c,{key:m,disabled:p.disabled,label:p.label},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(p.options,(y,v)=>(l.openBlock(),l.createBlock(d,l.mergeProps({ref_for:!0},y,{key:v}),null,16))),128))]),_:2},1032,["disabled","label"]))),128)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(l.unref(r),(p,m)=>(l.openBlock(),l.createBlock(d,l.mergeProps({ref_for:!0},p,{key:m}),null,16))),128))],64))]),_:2},[a.value.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(u.$slots,a.value.prefix)]),key:"0"}:void 0,a.value.empty?{name:"empty",fn:l.withCtx(()=>[l.renderSlot(u.$slots,a.value.empty)]),key:"1"}:void 0]),1040,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),DK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormSlider",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-slider");return l.openBlock(),l.createBlock(u,l.mergeProps(l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),null,16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),EE=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormSwitch",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-switch");return l.openBlock(),l.createBlock(u,l.mergeProps({"active-value":1,"inactive-value":0},l.unref(r),{onChange:l.unref(o)}),null,16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),AK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormTabs",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-tab-pane"),f=l.resolveComponent("el-tabs");return l.openBlock(),l.createBlock(f,l.mergeProps(l.unref(r),l.toHandlers(e.item.formEvents),{onTabChange:l.unref(o)}),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.item.options,(d,c)=>(l.openBlock(),l.createBlock(u,{key:c,label:d.label,name:d.value},null,8,["label","name"]))),128))]),_:1},16,["onTabChange"])}}})},Symbol.toStringTag,{value:"Module"})),BE=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormTimePicker",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-time-picker");return l.openBlock(),l.createBlock(u,l.mergeProps({"value-format":"HH:mm:ss"},l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),null,16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),TK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormTimeSelect",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-time-select");return l.openBlock(),l.createBlock(u,l.mergeProps(l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),null,16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),OK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormTips",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,itemText:o}=$t(n,i);return(s,a)=>(l.openBlock(),l.createElementBlock("div",l.normalizeProps(l.guardReactiveProps(l.unref(r))),l.toDisplayString(l.unref(o)),17))}})},Symbol.toStringTag,{value:"Module"})),FK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormTransfer",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i),s=l.computed(()=>{var a;return((a=n.item)==null?void 0:a.formSlot)||{default:null}});return(a,u)=>{const f=l.resolveComponent("el-transfer");return l.openBlock(),l.createBlock(f,l.mergeProps(l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),l.createSlots({_:2},[s.value.default?{name:"default",fn:l.withCtx(({option:d})=>[l.renderSlot(a.$slots,e.item.formSlot.default,{option:d})]),key:"0"}:void 0]),1040,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),lxe=l.defineComponent({name:"JwtFormItem",components:{FormInput:l.defineAsyncComponent(()=>Promise.resolve().then(()=>SE)),FormInputSelect:l.defineAsyncComponent(()=>Promise.resolve().then(()=>SK)),FormInputHidden:l.defineAsyncComponent(()=>Promise.resolve().then(()=>CK)),FormNumberInput:l.defineAsyncComponent(()=>Promise.resolve().then(()=>xE)),FormSwitch:l.defineAsyncComponent(()=>Promise.resolve().then(()=>EE)),FormDatePicker:l.defineAsyncComponent(()=>Promise.resolve().then(()=>wE)),FormTimePicker:l.defineAsyncComponent(()=>Promise.resolve().then(()=>BE)),FormTimeSelect:l.defineAsyncComponent(()=>Promise.resolve().then(()=>TK)),FormRadio:l.defineAsyncComponent(()=>Promise.resolve().then(()=>xK)),FormCheckbox:l.defineAsyncComponent(()=>Promise.resolve().then(()=>wK)),FormAutocomplete:l.defineAsyncComponent(()=>Promise.resolve().then(()=>bK)),FormSelect:l.defineAsyncComponent(()=>Promise.resolve().then(()=>BK)),FormCascader:l.defineAsyncComponent(()=>Promise.resolve().then(()=>kE)),FormCascaderPanel:l.defineAsyncComponent(()=>Promise.resolve().then(()=>kK)),FormSlider:l.defineAsyncComponent(()=>Promise.resolve().then(()=>DK)),FormRate:l.defineAsyncComponent(()=>Promise.resolve().then(()=>EK)),FormColorPicker:l.defineAsyncComponent(()=>Promise.resolve().then(()=>_K)),FormTransfer:l.defineAsyncComponent(()=>Promise.resolve().then(()=>FK)),FormTips:l.defineAsyncComponent(()=>Promise.resolve().then(()=>OK)),FormEditInput:l.defineAsyncComponent(()=>Promise.resolve().then(()=>CE)),FormTabs:l.defineAsyncComponent(()=>Promise.resolve().then(()=>AK)),FormDivider:l.defineAsyncComponent(()=>Promise.resolve().then(()=>_E)),ColumnText:l.defineAsyncComponent(()=>Promise.resolve().then(()=>gk)),FormDescription:l.defineAsyncComponent(()=>Promise.resolve().then(()=>Pk))},props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change","add-option","after-btn-click","after-btns-click","picture-action","input-select-change"],setup(e,{emit:t}){return{formRef:l.ref(null),handleAfterBtnClick:(f,d)=>{t("after-btn-click",d)},handleAfterBtnsClick:(f,d)=>{t("after-btns-click",f,d,e.sourceData,e.item)},handleAddOption:f=>{t("add-option",f)},handlePictureAction:(f,d)=>{t("picture-action",f,d)},handleComponentChange:(f,d)=>{t("change",f,d)},handleInputSelectChange:(f,d)=>{t("input-select-change",f,d)}}}});function uxe(e,t,n,i,r,o){return l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.item.currentComponentName),l.mergeProps({item:e.item,"source-data":e.sourceData},e.item.formAttrs,l.toHandlers(e.item.formEvents),{onChange:t[0]||(t[0]=s=>e.handleComponentChange(s,e.item)),onAddOption:t[1]||(t[1]=s=>e.handleAddOption(e.item)),onAfterBtnClick:t[2]||(t[2]=s=>e.handleAfterBtnClick(s,e.item)),onAfterBtnsClick:e.handleAfterBtnsClick,onPictureAction:t[3]||(t[3]=s=>e.handlePictureAction(s,e.item)),onInputSelectChange:t[4]||(t[4]=s=>e.handleInputSelectChange(s,e.item))}),null,16,["item","source-data","onAfterBtnsClick"])}const fxe=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(lxe,[["render",uxe]])},Symbol.toStringTag,{value:"Module"})),lm=l.defineComponent({__name:"ActionButton",props:{action:{type:Object,required:!0},loading:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},showText:{type:Boolean,default:!0}},emits:["action-click"],setup(e,{emit:t}){const n=e,i=t,r=o=>{var s;(s=n==null?void 0:n.action)!=null&&s.isUploadBtn||o.stopPropagation(),i("action-click",o)};return(o,s)=>{const a=l.resolveComponent("jwt-icon"),u=l.resolveComponent("el-button");return l.openBlock(),l.createBlock(u,l.mergeProps({disabled:e.action.disabled,type:e.action.btnType,loading:e.loading},e.action.attrs,{onClick:r}),{default:l.withCtx(()=>[e.action.icon&&!e.loading&&e.showIcon?(l.openBlock(),l.createBlock(a,{key:0,icon:e.action.icon},null,8,["icon"])):l.createCommentVNode("",!0),e.showText?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(e.action.show_title||e.action.title),1)],64)):l.createCommentVNode("",!0)]),_:1},16,["disabled","type","loading"])}}}),dxe=Object.freeze(Object.defineProperty({__proto__:null,default:lm},Symbol.toStringTag,{value:"Module"})),cxe="show_table",hxe="show_header";function PK(e,t="table"){var k;const n=(t==="table"?(k=e.config)==null?void 0:k.action:e==null?void 0:e.config)||{},i=(n==null?void 0:n.list)||[],r=(n==null?void 0:n.commonList)||[],o=t==="table"?cxe:hxe,s=(w,T)=>{var S;return(S=n[w.code])==null?void 0:S[T]},a=w=>{const T=s(w,"condition")||"";return T?on.isFunction(T)&&T(e.row,e.selectionRow,e.totalCount):!0},u=w=>{const T=a(w),S=!i.length||i.includes(w.code);return w[o]&&S&&T},f=w=>{const T=s(w,"disabledFun");return T&&on.isFunction(T)&&T(e.row,e.totalCount)},d=w=>{var _,A,D;const T=f(w),S=(((_=w.code)==null?void 0:_.includes("delete"))||((A=w.code)==null?void 0:A.includes("batch")))&&!((D=e.selectionRow)!=null&&D.length);return T||S||e.loading},c=w=>t=="table"?f(w):d(w),h=w=>s(w,"attrs")||{},p=w=>{var S,_;return((S=h(w))==null?void 0:S.type)||((_=w==null?void 0:w.code)!=null&&_.includes("delete")?"danger":"primary")},m=w=>{var S,_;return{action:((S=s(w,"api"))==null?void 0:S.url)||((_=e==null?void 0:e.fileImport)==null?void 0:_.action)||""}},y=l.computed(()=>r.filter(a)||[]),v=l.computed(()=>{var T,S;return(((S=(T=e==null?void 0:e.menusObj)==null?void 0:T[e.currentPath])==null?void 0:S[e.operationName])||[]).filter(u).concat(y.value).map(_=>({..._,attrs:h(_),disabled:c(_),btnType:p(_),isUploadBtn:_.code.includes("importF"),fileImport:m(_)}))}),b=l.computed(()=>v.value.slice(0,+e.showButtonNum||1/0)),g=l.computed(()=>e.showButtonNum&&v.value.length>e.showButtonNum);return{visibleActions:b,hasOverflowActions:g,tableButtonActions:v}}const pxe={key:0,class:"table-header-actions fx"},gxe=l.defineComponent({name:"JwtHeaderButton"}),mxe=l.defineComponent({...gxe,props:{loading:{type:Boolean,default:!1},currentPath:{type:String,default:"/"},menusObj:{type:Object,default:()=>{}},selectionRow:{type:Array,default:()=>[]},config:{type:Object,default:()=>{}},fileImport:{type:Object,default:()=>{}},row:{type:Object,default:()=>{}},operationName:{type:String,default:"operations"},showIcon:{type:Boolean,default:!0},showText:{type:Boolean,default:!0},uploadSuccessCb:{type:Function,default:null},totalCount:{type:Number,default:0}},emits:["header-action","upload-success"],setup(e,{emit:t}){const n=e,i=t,r=l.ref([]),{tableButtonActions:o}=PK(n,"header");let s=null;const a=(h="")=>{s=lt.ElLoading.service({lock:!0,fullscreen:!0,text:h||Pe("正在导入中")||"正在导入中。。。",background:"rgba(255, 255, 255, 0.7)"})},u=l.computed(()=>vl()),f=(h,p)=>{n!=null&&n.uploadSuccessCb?n.uploadSuccessCb(h,p):lt.ElMessage({message:h.msg,type:h.code===0?"success":"error"}),i("upload-success")},d=h=>{h.status==="ready"?a():s.close()},c=(h,p)=>{i("header-action",p,n.row)};return(h,p)=>{const m=l.resolveComponent("el-upload");return l.unref(o).length?(l.openBlock(),l.createElementBlock("div",pxe,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o),(y,v)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:v},[y.isUploadBtn?(l.openBlock(),l.createBlock(m,l.mergeProps({key:0,"file-list":r.value,"onUpdate:fileList":p[0]||(p[0]=b=>r.value=b),class:"mlr10",accept:"application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,.csv,.xls,.xlsx",headers:u.value,name:"filedata","on-change":d,"on-success":b=>f(b,y),"show-file-list":!1,"with-credentials":"",ref_for:!0},y.fileImport),{default:l.withCtx(()=>[l.createVNode(lm,{loading:e.loading,"show-text":e.showText,"show-icon":e.showIcon,action:y},null,8,["loading","show-text","show-icon","action"])]),_:2},1040,["file-list","headers","on-success"])):(l.openBlock(),l.createBlock(lm,{key:1,loading:e.loading,"show-text":e.showText,"show-icon":e.showIcon,action:y,onActionClick:b=>c(b,y)},null,8,["loading","show-text","show-icon","action","onActionClick"]))],64))),128))])):l.createCommentVNode("",!0)}}}),vxe=Object.freeze(Object.defineProperty({__proto__:null,default:mxe},Symbol.toStringTag,{value:"Module"})),yxe={key:0,class:"icon","aria-hidden":"true"},bxe=["xlink:href"],kxe=l.defineComponent({name:"JwtIcon"}),wxe=l.defineComponent({...kxe,props:{icon:{type:String,default:"settings-3-line"},size:{type:[String,Number],default:null},isCustom:{type:Boolean,default:!1},isCustomSvg:{type:Boolean,default:!1},prefixSvg:{type:String,default:"icon-"}},setup(e){const t=e,n=l.computed(()=>{var i;return t.isCustomSvg?`#${[t.prefixSvg]}${t.icon}`:t.isCustom||(i=t==null?void 0:t.icon)!=null&&i.includes("icon-")?`iconfont ${t.icon} jwt-icon`:`ri-${t.icon} jwt-icon`});return(i,r)=>e.isCustomSvg?(l.openBlock(),l.createElementBlock("svg",yxe,[l.createElementVNode("use",{"xlink:href":n.value},null,8,bxe)])):(l.openBlock(),l.createElementBlock("i",{key:1,class:l.normalizeClass(n.value),style:l.normalizeStyle({"font-size":e.size+"px"})},null,6))}}),_xe=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(wxe,[["__scopeId","data-v-b69ac6d5"]])},Symbol.toStringTag,{value:"Module"})),Cxe={Arrows:{"arrow-left-up":"corner,左上","arrow-up":"send,箭头,向上,发送","arrow-right-up":"send,corner,右上,发送","arrow-right":"forward,箭头,向右","arrow-right-down":"corner,右下","arrow-down":"receive,箭头,向下,接收,收款","arrow-left-down":"receive,corner,箭头,左下,接收,收款","arrow-left":"backward,箭头,向左,返回","arrow-left-up-long":"corner,左上","arrow-up-long":"send,箭头,向上,发送","arrow-right-up-long":"send,corner,右上,发送","arrow-right-long":"forward,箭头,向右","arrow-right-down-long":"corner,右下","arrow-down-long":"receive,箭头,向下,接收,收款","arrow-left-down-long":"receive,corner,箭头,左下,接收,收款","arrow-left-long":"backward,箭头,向左,返回","corner-right-up":"arrow,箭头,右上","corner-up-left":"arrow,箭头,上左","corner-up-right":"arrow,箭头,上右","corner-right-down":"arrow,箭头,右下","corner-down-left":"arrow,箭头,下左","corner-left-up":"arrow,箭头,左上","corner-left-down":"arrow,箭头,左下","corner-down-right":"arrow,箭头,下右","arrow-up-circle":"箭头,向上","arrow-right-circle":"forward,箭头,向右","arrow-down-circle":"箭头,向下,下载","arrow-left-circle":"backward,箭头,向左,返回","arrow-left-up-box":"corner,左上","arrow-up-box":"send,箭头,向上,发送","arrow-right-up-box":"send,corner,右上,发送","arrow-right-box":"forward,箭头,向右","arrow-right-down-box":"corner,右下","arrow-down-box":"receive,箭头,向下,接收,收款","arrow-left-down-box":"receive,corner,箭头,左下,接收,收款","arrow-left-box":"backward,箭头,向左,返回","arrow-up-s":"chevron,箭头,向上","arrow-right-s":"chevron,forward,箭头,向右","arrow-down-s":"chevron,箭头,向下","arrow-left-s":"chevron,backward,箭头,向左,返回","skip-up":"arrow,unfold,top,expand,置顶,展开,收起","skip-right":"arrow,unfold,next,expand,跳过,展开,收起","skip-down":"arrow,unfold,next,expand,跳过,展开,收起","skip-left":"arrow,unfold,expand,bottom,展开,收起","arrow-left-right":"exchange,swap,箭头,左右,交换,换算,兑换","arrow-up-down":"exchange,swap,箭头,上下,交换,换算,兑换","arrow-drop-up":"chevron,箭头,向上","arrow-drop-right":"chevron,forward,箭头,向右","arrow-drop-down":"chevron,箭头,向下","arrow-drop-left":"chevron,backward,箭头,向左,返回","arrow-up-wide":"expand,箭头,向上,展开","arrow-right-wide":"expand,箭头,向上,展开","arrow-down-wide":"expand,箭头,向上,展开","arrow-left-wide":"expand,箭头,向上,展开","arrow-up-double":"unfold,expand,top,chevron,展开,收起","arrow-right-double":"unfold,expand,chevron,展开,收起","arrow-down-double":"unfold,expand,chevron,展开,收起","arrow-left-double":"unfold,expand,chevron,展开,收起","corner-up-left-double":"arrow,replay-all,回复全部","corner-up-right-double":"arrow,forward-all,转发全部","drag-move":"arrow,拖拽,移动,箭头","drag-move-2":"arrow,拖拽,移动,箭头","expand-left":"slide,pull,unfold,arrow","expand-right":"arrow,展开,收起,右","contract-left":"slide,pull,fold,arrow","contract-right":"arrow,slide,pull,fold,展开,收起,右","expand-up-down":"arrow,unfold,dropdown,switch,展开","expand-left-right":"arrow,unfold,dropdown,switch","contract-up-down":"fold,arrow,fold,收起","contract-left-right":"arrow,fold,收起","expand-height":"arrow,unfold,switch,展开","expand-width":"arrow,unfold,switch,展开","expand-horizontal":"arrow,unfold,switch,展开","expand-vertical":"arrow,unfold,dropdown,switch,展开","collapse-horizontal":"arrow,scale,收起,缩小","collapse-vertical":"arrow,scale,收起,缩小","expand-diagonal":"arrow,scale,展开,放大","expand-diagonal-2":"arrow,scale,展开,放大","collapse-diagonal":"arrow,scale,收起,缩小","collapse-diagonal-2":"arrow,scale,收起,缩小","expand-horizontal-s":"arrow,unfold,switch,展开","expand-vertical-s":"arrow,unfold,switch,展开","expand-diagonal-s":"arrow,scale,展开,放大","expand-diagonal-s-2":"arrow,scale,展开,放大","arrow-go-back":"undo,箭头,返回,撤销,撤回","arrow-go-forward":"redo,箭头,重做,撤销,撤回","arrow-turn-forward":"箭头,掉头","arrow-turn-back":"箭头,掉头","scroll-to-bottom":"mouse,滚动到底部,鼠标"},Buildings:{home:"house,房子,家,主页","home-2":"house,房子,家,主页","home-3":"house,房子,家,主页","home-4":"house,房子,家,主页","home-5":"house,房子,家,主页","home-6":"house,房子,家,主页","home-7":"house,房子,家,主页","home-8":"house,房子,家,主页","home-9":"house,roof,房子,家,主页,房顶","home-gear":"house,房子,工厂","home-wifi":"smart home,房子,家具,智能家居","home-smile":"house,smart home,smile,房子,智能家居,微笑","home-smile-2":"house,smart home,smile,房子,智能家居,微笑","home-heart":"house,心,房子,家,主页,孤儿院","home-office":"居家办公",building:"city,office,enterprise,建筑,城市,楼,办公楼,写字楼,企业","building-2":"city,office,construction,enterprise,城市,建筑,楼,企业","building-3":"factory,plant,enterprise,工厂,建筑,楼,企业","building-4":"city,office,enterprise,建筑,城市,楼,办公楼,写字楼,企业",hotel:"building,hotel,office,enterprise,tavern,建筑,酒店,楼,办公楼,写字楼,企业",community:"building,hotel,社区,建筑,酒店",school:"college,university,学校,学院",government:"building,政府,建筑,大会堂",bank:"bank,finance,savings,banking,银行,交易所",store:"shop,mall,supermarket,retail,商店,超市,店铺,商家","store-2":"shop,mall,supermarket,retail,商店,超市,店铺,商家","store-3":"shop,mall,supermarket,retail,商店,超市,店铺,商家",hospital:"medical,health,医院","ancient-gate":"historical,genre,scenic,trip,travel,旅行,旅游,城门,古代,历史,景区","ancient-pavilion":"historical,genre,scenic,trip,travel,旅行,旅游,凉亭,古代,历史,景区",tent:"camping,帐篷,露营,营地"},Business:{mail:"envelope,email,inbox,信封,邮箱,邮件,收件箱","mail-ai":"envelope,email,inbox,信封,邮箱,邮件,收件箱,智能","mail-open":"envelope,email,inbox,信封,邮箱,邮件,收件箱","mail-send":"envelope,email,inbox,zoom,whoosh,信封,邮箱,邮件,发送,发件箱","mail-unread":"envelope,email,inbox,信封,邮箱,邮件,未读","mail-add":"envelope,email,inbox,add,信封,邮箱,邮件,新增,添加","mail-check":"envelope,email,inbox,read,信封,邮箱,邮件,已读","mail-close":"envelope,email,inbox,failed,x,信封,邮箱,邮件,失败","mail-download":"envelope,email,inbox,download,信封,邮箱,邮件,下载","mail-forbid":"envelope,email,inbox,privacy,信封,邮箱,邮件,禁止","mail-lock":"envelope,email,inbox,lock,信封,邮箱,邮件,加密","mail-settings":"envelope,email,inbox,settings,信封,邮箱,邮件,设置","mail-star":"envelope,email,inbox,favorite,信封,邮箱,邮件,收藏,喜欢","mail-volume":"envelope,email,inbox,promotional email,email campaign,subscription,sound,信封,邮箱,邮件,收件箱,推广,订阅",inbox:"收件箱","inbox-2":"收件箱","inbox-archive":"收件箱,归档,收纳","inbox-unarchive":"unzip,unpack,extract,收件箱,取消归档,还原,解压缩",cloud:"weather,云端","cloud-off":"offline mode,connection fail,slash,weather,云端,断网,无信号,连接失败",attachment:"annex,paperclip,附件,曲别针",profile:"id,档案,资料,身份证,证件",archive:"box,收纳,归档,存档,盒子,纸箱","archive-2":"box,收纳,归档,存档,盒子,纸箱","archive-drawer":"night table,收纳,抽屉,归档,存档,床头柜","archive-stack":"box,收纳,归档,存档,盒子,纸箱,堆叠",at:"@,mention,提到,在",award:"medal,achievement,badge,成就,奖牌,金牌,勋章",medal:"award,achievement,badge,成就,奖牌,金牌,勋章","medal-2":"award,achievement,badge,成就,奖牌,金牌,勋章","verified-badge":"认证标志","bar-chart":"statistics,rhythm,柱状图,统计,韵律,节奏","bar-chart-horizontal":"statistics,rhythm,柱状图,统计,韵律,节奏","bar-chart-2":"statistics,rhythm,柱状图,统计,排行,节奏","bar-chart-box":"statistics,rhythm,柱状图,统计,节奏","bar-chart-box-ai":"statistics,rhythm,柱状图,统计,节奏,智能统计","bar-chart-grouped":"statistics,rhythm,柱状图,统计,分组","bubble-chart":"data,analysis,statistics,circles,气泡图,统计","pie-chart":"data,analysis,饼图,饼状图,数据,分析","pie-chart-2":"data,analysis,饼图,饼状图,数据,分析","pie-chart-box":"data,analysis,饼图,饼状图,数据,分析","donut-chart":"data,analysis,circle,pie,环形图,数据,分析","line-chart":"data,analysis,stats,折线图,数据,分析",bookmark:"tag,书签,标记","bookmark-2":"tag,书签,标记","bookmark-3":"tag,书签,标记,荣誉",briefcase:"bag,baggage,公文包,行李箱,旅行箱,皮包","briefcase-2":"bag,baggage,公文包,行李箱,旅行箱,皮包","briefcase-3":"bag,baggage,公文包,行李箱,旅行箱,皮包","briefcase-4":"bag,baggage,公文包,行李箱,旅行箱,皮包","briefcase-5":"bag,baggage,公文包,行李箱,旅行箱,皮包",calculator:"计算器,计算机",calendar:"date,plan,schedule,agenda,日历,日期,月份,计划,日程,时间表","calendar-2":"date,plan,schedule,agenda,日历,日期,月份,计划,日程,时间表","calendar-event":"date,plan,schedule,agenda,日历,日期,月份,计划,日程,时间表","calendar-todo":"date,plan,schedule,agenda,日历,日期,月份,计划,日程,时间表","calendar-check":"date,plan,schedule,agenda,check-in,punch,日历,日期,月份,计划,日程,时间表,签到,打卡","calendar-close":"date,plan,schedule,agenda,error,cancel,日历,日期,月份,计划,日程,时间表,取消,错误","calendar-schedule":"date,plan,schedule,agenda,date,time,日历,日期,月份,计划,日程,时间表,预定,预约","customer-service":"headset,headphones,earphones,客服,售后,耳机,耳麦","customer-service-2":"headset,headphones,earphones,smile,客服,售后,耳机,耳麦",flag:"banner,pin,mark,milestone,旗帜,旗子,国旗,标记,里程碑","flag-off":"flag slash","flag-2":"banner,pin,mark,milestone,旗帜,旗子,国旗,标记,里程碑","triangular-flag":"banner,pin,mark,milestone,旗帜,旗子,国旗,标记,里程碑",global:"earth,union,world,language,地球,联合,世界,全球,语言",honour:"honor,glory,锦旗,荣誉,荣耀,军衔",links:"connection,address,联系,链接,地址",printer:"打印机","printer-cloud":"network,打印机,云打印","record-mail":"voice mail,tape,录音,留言,语音信箱,磁带",reply:"forward,回复全部,回复所有","reply-all":"forward,回复,答复,留言,转发","send-plane":"发送,纸飞机","send-plane-2":"发送,纸飞机",projector:"projection,meeting,投影仪,会议室","projector-2":"projection,meeting,投影仪,会议室,极米",slideshow:"presentation,meeting,PPT,keynote,投影,放映,演示,演讲,幻灯片,会议室","slideshow-2":"presentation,meeting,投影,放映,演示,演讲,幻灯片,会议室","slideshow-3":"presentation,meeting,投影,放映,演示,演讲,视频会议,幻灯片,会议室","slideshow-4":"presentation,meeting,投影,放映,演示,演讲,可视对讲,幻灯片,会议室",presentation:"teaching,training,演讲,老师,培训",window:"browser,program,web,窗口,浏览器,程序,网站","window-2":"browser,program,web,窗口,浏览器,程序,网站",stack:"layers,图层,叠加,堆栈","shake-hands":"cooperation,business,握手,合作,商务",service:"heart,handshake,cooperation,client,服务,握手,心,合作",registered:"注册,商标",trademark:"注册,商标",advertisement:"ad,广告,推广",copyleft:"著佐权",copyright:"版权","creative-commons":"知识共享","creative-commons-by":"attribution,copyright,版权,知识共享,署名","creative-commons-nc":"noncommercial,copyright,版权,知识共享,非商业用途","creative-commons-nd":"no derivative works,copyright,版权,知识共享,禁止演绎","creative-commons-sa":"share alike,copyright,版权,知识共享,相同方式共享","creative-commons-zero":"cc0,copyright,版权,知识共享",megaphone:"bullhorn,loudspeaker,commercial,campaign,扩音器,喇叭,广告,活动","pass-valid":"id,passport,护照有效","pass-pending":"id,passport,护照等待","pass-expired":"id,passport,护照过期","id-card":"card,identity,user,license,badge,passport,身份证,用户,许可证,护照","info-card":"ocard,identity,user,license,badge,passport,身份证,用户,许可证,护照",seo:"搜索引擎优化"},Communication:{"chat-1":"message,reply,comment,消息,聊天,回复,评论","chat-ai":"message,reply,comment,消息,聊天,回复,评论,智能","chat-2":"message,reply,comment,消息,聊天,回复,评论","chat-3":"message,reply,comment,消息,聊天,回复,评论","chat-4":"message,reply,comment,消息,聊天,回复,评论",message:"chat,comment,reply,消息,聊天,回复,评论","message-2":"chat,reply,comment,消息,聊天,回复,评论","message-3":"chat,reply,comment,消息,聊天,回复,评论","chat-check":"message,reply,comment,消息,聊天,回复,评论,已阅","chat-delete":"message,comment,消息,聊天,回复,评论,清除,删除","chat-forward":"message,comment,消息,聊天,转发","chat-upload":"message,comment,消息,聊天,上传","chat-download":"message,comment,消息,下载","chat-new":"message,reply,comment,消息,聊天,回复,评论","chat-settings":"message,comment,消息,聊天,回复,评论,设置","chat-unread":"new message,comment,badge,消息,聊天,回复,评论,未读","chat-search":"message,comment,消息,聊天,回复,评论,搜索,放大镜","chat-smile":"message,reply,comment,消息,聊天,回复,评论","chat-smile-2":"message,reply,comment,消息,聊天,回复,评论","chat-smile-ai":"message,reply,comment,消息,聊天,回复,评论,智能","chat-smile-3":"message,reply,comment,消息,聊天,回复,评论","chat-heart":"message,reply,comment,消息,聊天,回复,评论,心,点赞,收藏","chat-off":"message,reply,comment,slash,消息,聊天,回复,评论,禁止,关闭",feedback:"message,comment,消息,聊天,回复,评论,反馈",discuss:"message,reply,comment,消息,聊天,回复,评论,讨论,群聊","question-answer":"message,reply,comment,消息,聊天,回复,评论,讨论,群聊",questionnaire:"message,comment,help,消息,聊天,回复,评论,讨论,调查问卷,帮助","video-chat":"message,comment,消息,视频聊天","chat-voice":"message,comment,消息,语音消息","chat-voice-ai":"message,comment,消息,语音消息,智能语音","chat-quote":"message,reply,comment,消息,引用回复","chat-follow-up":"message,reply,comment,消息,+1,跟帖","chat-poll":"message,vote,questionnaire,消息,投票,问卷调查","chat-history":"message,历史消息,消息记录","chat-private":"message,私密消息,密聊","chat-thread":"topic,hashtag,话题,井号,哈希",speak:"voice,讲话,声音,对话","speak-ai":"voice,讲话,声音,智能对话","emoji-sticker":"表情,贴纸"},Design:{pencil:"edit,铅笔,编辑",edit:"pencil,铅笔,编辑","edit-2":"pencil,铅笔,编辑","ball-pen":"圆珠笔","quill-pen":"羽毛笔,钢笔,编辑","quill-pen-ai":"羽毛笔,钢笔,编辑,AI写作","pen-nib":"钢笔,笔尖","ink-bottle":"墨水瓶","mark-pen":"highlight,马克笔,高亮笔",markup:"标记,马克","edit-box":"编辑","edit-circle":"编辑",sip:"吸管,取色器",brush:"笔刷,画笔,刷子","brush-ai":"笔刷,画笔,刷子,AI绘画","brush-2":"刷子","brush-3":"刷子","brush-4":"刷子","paint-brush":"填色,填充,刷子",contrast:"brightness,tonalit,对比度,亮度,色调","contrast-2":"moon,dark,brightness,tonalit,月亮,夜间,对比度,亮度,色调",drop:"water,blur,模糊,水,滴","blur-off":"water,drop,slash,模糊,水,滴,禁止,关闭","contrast-drop":"water,brightness,tonalit,水,对比度,亮度,色调,滴","contrast-drop-2":"water,brightness,tonalit,水,对比度,亮度,色调,滴","color-filter":"effect,滤镜,特效","color-filter-ai":"effect,滤镜,特效",compasses:"圆规","compasses-2":"圆规",scissors:"剪刀,裁剪","scissors-cut":"剪刀,裁剪","scissors-2":"剪刀,裁剪,截屏",slice:"knife,切图,切片,刀",eraser:"remove formatting,橡皮,擦除,清除格式",ruler:"尺子","ruler-2":"尺子","pencil-ruler":"design,铅笔,尺子,文具,设计","pencil-ruler-2":"design,铅笔,尺子,文具,设计","t-box":"文字,字体,字号","input-method":"输入法,文字",artboard:"grid,crop,画板,裁切","artboard-2":"画板",crop:"裁切","crop-2":"裁切",screenshot:"capture,屏幕截图,截屏","screenshot-2":"capture,屏幕截图,截屏",focus:"aim,target,goal,焦点,聚焦,目标,靶心","focus-2":"aim,target,goal,bullseye,焦点,聚焦,目标,靶心","focus-3":"aim,target,goal,bullseye,crosshair,locate,焦点,聚焦,目标,靶心,瞄准镜,准心,定位",crosshair:"aim,target,goal,bullseye,crosshair,locate,焦点,聚焦,目标,靶心,瞄准镜,准心,定位","crosshair-2":"aim,target,goal,bullseye,crosshair,locate,焦点,聚焦,目标,靶心,瞄准镜,准心,定位",paint:"fill,填色,填充,油漆桶",palette:"color,调色盘,色板",pantone:"color,色板,潘通色,色号",shape:"border,形状,描边,边框","shape-2":"border,形状,描边,边框",magic:"fantasy,magic stick,beautify,wand,魔法棒,美化,幻想,魔幻",anticlockwise:"rotate,left,counterclockwise,左翻转,左旋转","anticlockwise-2":"rotate,left,counterclockwise,左翻转,左旋转",clockwise:"rotate,right,右翻转,右旋转","clockwise-2":"rotate,right,右翻转,右旋转",hammer:"tool,锤子",tools:"settings,screwdriver,configuration,工具,设置","drag-drop":"drag and drop,mouse,拖拽,鼠标",table:"表格","table-alt":"表格",layout:"布局","layout-2":"collage,布局,拼贴画","layout-3":"collage,布局,拼贴画","layout-4":"collage,布局,拼贴画","layout-5":"collage,布局,拼贴画","layout-6":"collage,布局,拼贴画","layout-column":"左右布局","layout-row":"上下布局","layout-top":"顶部布局,顶部导航","layout-right":"右侧布局,右侧导航","layout-bottom":"底部布局,底部导航","layout-left":"左侧布局,左侧导航","layout-top-2":"顶部布局,顶部导航","layout-right-2":"右侧布局,右侧导航","layout-bottom-2":"底部布局,底部导航","layout-left-2":"左侧布局,左侧导航","layout-grid":"卡片布局,网格","layout-grid-2":"卡片布局,网格","layout-masonry":"collage,瀑布流布局,拼贴画",collage:"瀑布流布局,拼贴画",grid:"table,网格,表格",circle:"圆形",triangle:"三角形",pentagon:"五边形,五角形",hexagon:"六边形",octagon:"八边形",square:"正方形",rectangle:"长方形,矩形",shapes:"形状,模块",shadow:"投影,影子","layout-horizontal":"水平布局","layout-vertical":"垂直布局","flip-horizontal-2":"水平翻转","flip-horizontal":"水平翻转","flip-vertical":"垂直翻转","flip-vertical-2":"垂直翻转","align-item-horizontal-center":"水平居中","align-item-vertical-center":"垂直居中","align-item-left":"左对齐","align-item-top":"顶部对齐","align-item-right":"右对齐","align-item-bottom":"底部对齐"},Development:{bug:"虫子","bug-2":"虫子",code:"代码,编程","code-s":"代码,编程","code-ai":"代码,编程","code-s-slash":"代码,编程","code-box":"代码,编程","terminal-box":"code,command line,prompt,终端,代码,命令行",terminal:"code,command line,prompt,终端,代码,命令行","terminal-window":"code,command line,browser,app,ui,终端,代码,命令行",parentheses:"code,math,小括号",brackets:"code,math,中括号",braces:"code,math,大括号,花括号",command:"apple key,place of interest,modified key,花键,苹果键",cursor:"mouse,pointer,arrow,指针,鼠标","git-commit":"node,onewheel,circle line,dot line,history point,提交","git-pull-request":"合并申请","git-merge":"combine,unite,branch,split,diverge,合并","git-branch":"combine,unite,split,diverge,分支","git-fork":"","git-close-pull-request":"取消,关闭","git-pr-draft":"pull request,草稿","git-repository":"book,bookmark,仓库","git-repository-commits":"book,upload,仓库,提交","git-repository-private":"lock,secure,私密仓库,私人仓库",html5:"html,h5,web",css3:"css,web,styles",javascript:"js,脚本",puzzle:"plugins,拼图,插件","puzzle-2":"plugins,拼图,插件",php:""},Device:{tv:"television,antenna,rabbet ears,电视","tv-2":"monitor,display,screen,television,电视,显示器",computer:"pc,monitor,display,screen,电脑,显示器",mac:"monitor,imac,display,computer,screen,显示器",macbook:"laptop,computer,笔记本",cellphone:"手机,电话",smartphone:"mobile,手机","mobile-download":"手机,下载",tablet:"平板电脑",device:"设备",phone:"电话",instance:"box,nft,cvm,实例,盒子,虚拟机",database:"storage,resource,bars,progress,数据库,存储","database-2":"storage,discs,silo,platter,数据库,存储",server:"服务器","hard-drive":"disc,storage,硬盘,存储","hard-drive-2":"disc,server,storage,硬盘,服务器,存储","hard-drive-3":"disc,server,storage,硬盘,服务器,存储",install:"安装",uninstall:"卸载",save:"floppy,保存,软盘","save-2":"floppy,保存,软盘","save-3":"floppy,保存,软盘","sd-card":"内存卡","sd-card-mini":"内存卡","sim-card":"电话卡","sim-card-2":"电话卡","dual-sim-1":"sim card,电话卡,卡槽,双卡双待","dual-sim-2":"sim card,电话卡,卡槽,双卡双待","u-disk":"U盘,优盘",battery:"电池","battery-charge":"电池,充电","battery-low":"电池,低电量","battery-2":"电池","battery-2-charge":"电池,充电","battery-saver":"电池,省电模式","battery-share":"电池共享,共享电量",cast:"mirroring,投屏,无线,广播",airplay:"mirroring,投屏,无线",cpu:"中央处理器",gradienter:"水平仪",keyboard:"input,键盘,输入","keyboard-box":"input,键盘,输入",mouse:"鼠标",sensor:"capacitor,传感器,电容器",router:"wifi,signal tower,radio,station,路由器,信号塔,广播,基站,流量",radar:"satellite receiver,雷达,卫星接收器,锅",gamepad:"consoles,controller,游戏手柄","remote-control":"controller,遥控器","remote-control-2":"controller,遥控器","device-recover":"恢复出厂设置",hotspot:"手机热点","phone-find":"找回手机","phone-lock":"锁定手机","rotate-lock":"锁定旋转屏幕",restart:"reload,refresh,重启","shut-down":"power off,关机",fingerprint:"指纹","fingerprint-2":"指纹",barcode:"scan,扫码,条形码,条码","barcode-box":"scan,扫码,条形码,条码","qr-code":"二维码","qr-scan":"二维码,扫描","qr-scan-2":"二维码,扫描",scan:"扫描","scan-2":"扫描",rss:"feed,subscribe,订阅",gps:"signal,定位,信号","base-station":"wifi,signal tower,router,cast,基站,信号塔,路由器,广播,流量",bluetooth:"wireless,蓝牙,无线","bluetooth-connect":"wireless,蓝牙,连接,无线",wifi:"无线网","wifi-off":"slash,offline,connection-fail,无线网,关闭,断网,链接失败","signal-wifi":"cellular,strength,无线网,信号","signal-wifi-1":"cellular,strength,无线网,信号","signal-wifi-2":"cellular,strength,无线网,信号","signal-wifi-3":"cellular,strength,无线网,信号","signal-wifi-error":"cellular,offline,connection-fail,无线网,断网,链接失败,无信号","signal-wifi-off":"cellular,slash,offline,connection-fail,无线网,关闭,断网,链接失败","wireless-charging":"power,flash,无线充电,闪充","dashboard-2":"仪表盘","dashboard-3":"仪表盘",usb:"优盘",rfid:"radio,frequency,identification,devices,无线,射频识别",ram:"memory,electronics,内存条,记忆卡","ram-2":"memory,electronics,内存条,记忆卡"},Document:{file:"new,paper,文件,文档,新建","file-2":"new,paper,文件,文档,新建","file-3":"new,paper,文件,文档,新建","file-4":"new,paper,文件,文档,新建","sticky-note":"new,paper,文件,文档,新建,便签纸,便利贴","sticky-note-add":"new,paper,文件,文档,新建,便签纸,便利贴,添加","sticky-note-2":"new,paper,文件,文档,新建,便签纸,便利贴","file-edit":"文件,文档,编辑",draft:"草稿箱,文件,文档,编辑","file-paper":"文件,文档,纸,谱","file-paper-2":"文件,文档,纸,谱",receipt:"收据,凭据","file-text":"文件,文档,文本","file-list":"清单,列表","file-list-2":"清单,列表","file-list-3":"newspaper,清单,列表,报纸",bill:"账单","file-copy":"duplicate,clone,复制,克隆","file-copy-2":"duplicate,clone,复制,克隆",clipboard:"copy,复制,剪切板",survey:"research,questionnaire,clipboard,checkboxes,form,census,调查,问卷,调研",article:"newspaper,document,publisher,print,page,word,file,publication,文章,报纸",newspaper:"新闻,报纸",news:"blog,新闻,博客","file-zip":"7z,rar,压缩包","file-marked":"文件,文档,标记",task:"todo,任务,待办",todo:"待办",book:"read,dictionary,booklet,书,阅读,字典,小册子","book-marked":"read,dictionary,booklet,书,阅读,字典,小册子,书签","book-2":"read,dictionary,booklet,书,阅读,字典,小册子","book-3":"read,dictionary,booklet,书,阅读,字典,小册子","book-open":"read,booklet,magazine,书,阅读,小册子,杂志","book-read":"booklet,magazine,书,阅读,小册子,杂志","contacts-book":"通讯录,联系人","contacts-book-2":"通讯录,联系人","contacts-book-upload":"upload,通讯录,联系人,上传",booklet:"notebook,手册,笔记本,小册子","contacts-book-3":"通讯录,联系人","file-code":"config,文件,文档,代码,脚本,配置文件","file-pdf":"文件,文档","file-pdf-2":"文件,文档","file-word":"文档","file-ppt":"文件,文档","file-excel":"文档,表单","file-word-2":"文档","file-ppt-2":"文件,文档","file-excel-2":"文档,表单","file-hwp":"文件,文档,hangul word processor",keynote:"演示文稿,幻灯片,讲演",numbers:"表格",pages:"website,browser,ui,blocks,prototype,文稿","file-search":"文件,文档,搜索","file-add":"page,document,new,plus,add,文件,文档,新建","file-reduce":"page,document,subtract,delete,文件,文档,减","file-settings":"page,document,cog,gear,文件,文档,设置","file-upload":"page,document,文件,文档,上传","file-transfer":"page,document,文件,文档,传输","file-download":"page,document,文件,文档,下载","file-lock":"page,document,文件,文档,锁","file-chart":"page,document,report,文件,文档,柱状图,报表","file-chart-2":"report,文件,文档,饼图,报表","file-image":"文件,文档,图片","file-music":"文件,文档,音乐","file-video":"文件,文档,视频","file-gif":"文件,文档,动图","file-check":"文件,文档,对勾","file-close":"文件,文档,关闭,删除,错误","file-forbid":"文件,文档,禁用","file-info":"文件,文档,信息","file-warning":"page,document,paper,!,alert,important,exclamation,文件,文档,警告,提醒","file-unknow":"文件,文档,未知,问号","file-user":"文件,文档,用户","file-shield":"protected,secured,文件,文档,盾牌,保护,安全","file-shield-2":"protected,secured,文件,文档,盾牌,保护,安全","file-damage":"breakdown,broken,corrupt,文件,文档,损坏,破损,破裂","file-history":"record,文件,文档,记录,历史","file-shred":"shredder,shred,destroy,cut,文档,销毁,碎纸机,破裂,粉碎","file-cloud":"network,文件,文档,云",contract:"examine,apporove,合约,合同,考试,审批通过",folder:"directory,file,文件夹,目录,文档","folder-2":"directory,file,文件夹,目录,文档","folder-3":"directory,file,文件夹,目录,文档","folder-4":"directory,file,文件夹,目录,文档","folder-5":"directory,file,文件夹,目录,文档","folder-6":"directory,file,文件夹,目录,文档",folders:"directory,file,文件夹,目录,文档,批量","folder-add":"directory,file,文件夹,目录,文档,添加","folder-reduce":"directory,file,remove,subtract,文件夹,目录,文档,减","folder-settings":"directory,file,文件夹,目录,文档,设置","folder-upload":"directory,file,文件夹,目录,文档,上传","folder-transfer":"directory,file,文件夹,目录,文档,传输","folder-download":"directory,file,文件夹,目录,文档,下载","folder-lock":"directory,file,文件夹,目录,文档,锁","folder-chart":"report,文件夹,目录,文档,柱状图,报表","folder-chart-2":"report,文件夹,目录,文档,饼图,报表","folder-music":"directory,file,audio,sound,文件夹,目录,文档,音乐","folder-image":"directory,file,文件夹,目录,文档,图片","folder-video":"directory,file,文件夹,目录,文档,视频","folder-check":"directory,file,文件夹,目录,文档,对勾","folder-close":"directory,file,文件夹,目录,文档,错误","folder-forbid":"directory,file,文件夹,目录,文档,禁用","folder-info":"directory,file,文件夹,目录,文档,信息","folder-warning":"!,alert,important,exclamation,alert,directory,file,文件夹,目录,文档,警告,提醒","folder-unknow":"directory,file,文件夹,目录,文档,未知","folder-user":"directory,file,文件夹,目录,文档,用户","folder-shield":"directory,file,protected,secured,文件夹,目录,文档,保护,盾牌,安全","folder-shield-2":"directory,file,protected,secured,文件夹,目录,文档,保护,盾牌,安全","folder-shared":"directory,file,文件夹,目录,文档,分享","folder-received":"directory,file,文件夹,目录,文档,接收","folder-open":"directory,file,文件夹,目录,文档,打开","folder-keyhole":"directory,encryption,file,文件夹,目录,文档,打开,加密文档","folder-zip":"directory,file,文件夹,目录,文档,打开,压缩","folder-history":"directory,file,record,文件夹,目录,文档,记录,历史","folder-cloud":"directory,file,云文件夹,目录,云文档",markdown:"arrow,箭头,下"},Editor:{bold:"加粗",italic:"斜体",heading:"标题",text:"字体","font-family":"字体","font-sans-serif":"衬线体","font-sans":"非衬线体","font-mono":"等宽字体","font-color":"文字色","font-size":"字号,字体大小","font-size-ai":"字号,字体大小,AI写作","font-size-2":"字号,字体大小",underline:"下划线",overline:"上划线",emphasis:"着重号","emphasis-cn":"着重号",strikethrough:"remove formatting,del,删除线","strikethrough-2":"remove formatting,del,删除线","format-clear":"remove formatting,清除格式","align-left":"ragged right,左对齐","align-center":"居中对齐","align-right":"ragged left,右对齐","align-justify":"four,lines,ruled,left-right,full width,排列对齐","align-top":"two arrows up,double-up,start,顶部对齐","align-vertically":"centered,middle,balance,垂直对齐","align-bottom":"two arrows down,double-down,end,底部对齐","list-check":"check list,清单列表","list-check-2":"check list,清单列表","list-check-3":"check list,清单列表,问卷,task","list-ordered":"numbered list,有序列表","list-ordered-2":"numbered list,有序列表","list-unordered":"bullet list,无序列表","list-radio":"vote,投票,列表","list-indefinite":"列表","indent-decrease":"indent more,quote,缩进","indent-increase":"indent less,quote,缩进","line-height":"leading,行高","line-height-2":"leading,行高","text-spacing":"letter spacing,character spacing,kerning,tracking,字间距","letter-spacing-2":"letter spacing,character spacing,kerning,tracking,字间距","text-wrap":"return,文本换行","attachment-2":"annex,paperclip,附件,曲别针",link:"connection,address,联系,链接,地址","link-unlink":"connection,remove address,去除链接","link-m":"connection,address,联系,链接,地址","link-unlink-m":"connection,remove address,去除链接",separator:"分割线",space:"空格","page-separator":"insert,分页符,插入","code-view":"代码视图","quote-text":"引用","double-quotes-l":"left,quotaion marks,双引号","double-quotes-r":"right,quotaion marks,双引号","single-quotes-l":"left,quotaion marks,单引号","single-quotes-r":"right,quotaion marks,单引号","table-2":"表格","table-3":"表格",subscript:"角标,下标,脚注","subscript-2":"角标,下标,脚注",superscript:"角标,上标","superscript-2":"角标,上标",paragraph:"¶,pilcrow,段落","text-direction-l":"文本左对齐","text-direction-r":"文本左对齐",functions:"Σ,sum,sigma,功能",omega:"Ω,horseshoe,特殊符号",hashtag:"#,pound,number,井号",asterisk:"*,all,everything,wildcard,星号","question-mark":"?,问号","info-i":"information,信息",translate:"translator,翻译","translate-ai":"AI翻译","translate-2":"translator,翻译","translate-ai-2":"AI翻译","a-b":"a/b testing,ab testing,split test,either-or,ab测试","english-input":"英文输入法","pinyin-input":"拼音输入法","wubi-input":"五笔输入法","input-cursor-move":"移动输入光标","number-1":"1,一,数字","number-2":"2,二,数字","number-3":"3,三,数字","number-4":"4,四,数字","number-5":"5,五,数字","number-6":"6,六,数字","number-7":"7,七,数字","number-8":"8,八,数字","number-9":"9,九,数字","number-0":"0,零,数字","sort-asc":"ranking,ordering,sorting,ascending,descending,升序排列,排序,顺序","sort-desc":"ranking,ordering,降序排列,排序","sort-alphabet-asc":"ranking,ordering,升序排列,数字排序,顺序","sort-alphabet-desc":"ranking,ordering,降序排列,字母排序,倒序,倒序","sort-number-asc":"ranking,ordering,升序排列,数字排序,顺序","sort-number-desc":"ranking,ordering,降序排列,数字排序,倒序","bring-forward":"arrange,层级,向上一层","send-backward":"arrange,层级,向下一层","bring-to-front":"arrange,层级,移到最前面","send-to-back":"arrange,层级,移到最后面","h-1":"heading,一级标题","h-2":"heading,一级标题","h-3":"heading,一级标题","h-4":"heading,一级标题","h-5":"heading,一级标题","h-6":"heading,一级标题","insert-column-left":"添加列,左侧","insert-column-right":"添加列,右侧","insert-row-top":"添加行,顶部","insert-row-bottom":"添加行,底部","delete-column":"删除列,底部","delete-row":"添加行,底部","merge-cells-horizontal":"合并单元格","merge-cells-vertical":"合并单元格","split-cells-horizontal":"拆分单元格","split-cells-vertical":"拆分单元格","flow-chart":"流程图","mind-map":"mindmap,脑图,思维导图","node-tree":"节点,层级关系图","organization-chart":"组织架构图,局域网","rounded-corner":"圆角",sketching:"signature,手写,手绘,签名",draggable:"move,reorder,拖拽,排序","slash-commands":"命令,斜线","slash-commands-2":"命令,斜线","ai-generate":"AI自动生成","ai-generate-2":"AI生成","dropdown-list":"下拉菜单","code-block":"代码块","text-snippet":"文字片段,剪切板","ai-generate-text":"图生文,文生图","text-block":"文字块,文字片段","table-view":"表格视图","kanban-view":"看板视图","kanban-view-2":"看板视图","gallery-view":"画廊视图","gallery-view-2":"画廊视图","timeline-view":"时间轴视图,甘特图","calendar-view":"日历视图","list-view":"列表视图","focus-mode":"聚焦模式,沉浸模式","slideshow-view":"幻灯片视图","stacked-view":"堆叠视图","carousel-view":"循环播放视图","input-field":"cursor,输入框,光标",hand:"drag,手,拖拽","square-root":"formula,开根号,公式,计算",formula:"公式,计算","custom-size":"width,hight,自定义宽高,尺寸"},Finance:{wallet:"pocketbook,钱包,卡包","wallet-2":"money clip,钱包,卡包","wallet-3":"money clip,钱包,卡包","bank-card":"credit,purchase,payment,cc,银行卡,信用卡,购买,消费,支付","bank-card-2":"credit,purchase,payment,cc,银行卡,信用卡,购买,消费,支付","no-credit-card":"off,credit,purchase,payment,cc,银行卡,信用卡,购买,消费,支付","secure-payment":"credit,purchase,payment,cc,银行卡,信用卡,购买,消费,支付,安全",refund:"credit card,repayment,cc,银行卡,信用卡还款","refund-2":"credit card,repayment,cc,银行卡,信用卡还款",safe:"vault,secure,保险柜,保险箱","safe-2":"vault,insecure,unlocked,保险柜,保险箱","safe-3":"vault,insecure,unlocked,保险柜,保险箱","price-tag":"label,标签,价签","price-tag-2":"label,标签,价签","price-tag-3":"label,标签,价签",ticket:"coupon,票,优惠券,代金券","ticket-2":"coupon,票,优惠券,代金券",coupon:"ticket,票,优惠券,代金券","coupon-2":"ticket,票,优惠券,代金券","coupon-3":"ticket,票,优惠券,代金券","coupon-4":"优惠券,代金券","coupon-5":"优惠券,代金券","shopping-bag":"purse,购物袋,购买,消费,商城","shopping-bag-2":"购物袋,购买,消费,商城","shopping-bag-3":"购物袋,购买,消费,商城","shopping-bag-4":"购物车,购买,消费,商城","shopping-basket":"购物篮,购买,消费,商城","shopping-basket-2":"购物篮,购买,消费,商城","shopping-cart":"购物车,购买,消费,商城","shopping-cart-2":"购物车,购买,消费,商城",vip:"会员","vip-crown":"king,queen,皇冠,会员,国王,女王,王后","vip-crown-2":"king,queen,皇冠,会员,国王,女王,王后","vip-diamond":"jewelry,钻石,会员",diamond:"jewelry,钻石,会员,珠宝,","diamond-ring":"jewelry,钻戒,戒指,首饰",jewelry:"珠宝,首饰",trophy:"奖品,奖杯,金杯",exchange:"swap,交换,换算,兑换,交易","exchange-box":"swap,交换,换算,兑换,交易","exchange-2":"swap,交换,换算,兑换,交易",swap:"exchange,交换,换算,兑换,交易","swap-box":"exchange,交换,换算,兑换,交易","swap-2":"flow direction,exchange,交换,换算,兑换,交易","swap-3":"flow direction,exchange,交换,换算,兑换,交易","exchange-dollar":"swap,transfer,交换,换算,兑换,美元,转账,交易","exchange-cny":"swap,transfer,交换,换算,兑换,人民币,转账,交易","exchange-funds":"swap,transfer,交换,换算,兑换,基金,股票,转账,交易","increase-decrease":"计算器",percent:"百分之,百分比","copper-coin":"currency,payment,铜币,硬币,货币,钱,支付","copper-diamond":"currency,coins,金币,钻石,货币,钱,支付","money-cny-box":"currency,payment,货币,钱,支付,人民币","money-cny-circle":"currency,coins,金币,payment,货币,钱,支付,人民币","money-dollar-box":"currency,payment,货币,钱,支付,美元","money-dollar-circle":"currency,coins,金币,payment,cent,penny,货币,钱,支付,美元,美分,便士","money-euro-box":"currency,payment,货币,钱,支付,欧元","money-euro-circle":"currency,coins,金币,payment,货币,钱,支付,欧元","money-pound-box":"currency,payment,货币,钱,支付,英镑","money-pound-circle":"currency,coins,金币,payment,货币,钱,支付,英镑","money-rupee-circle":"currency,coins,金币,payment,货币,钱,支付,卢比","bit-coin":"currency,payment,货币,钱,比特币",coin:"金币,硬币",cash:"现金,钞票",coins:"金币,硬币",currency:"cash,payment,货币,钱",funds:"foundation,stock,基金,股票","funds-box":"foundation,stock,基金,股票","red-packet":"红包","water-flash":"水电费",stock:"股票",auction:"hammer,gavel,拍卖,锤子",gift:"present,礼物","gift-2":"present,礼物","hand-coin":"donate,business,捐赠","hand-heart":"help,donate,volunteer,welfare,帮助,爱心,捐赠,志愿者,公益","24-hours":"last,24小时营业",nft:"token",p2p:"trade,点对点,交易,shift,swap,community,切换,社区","token-swap":"cryptocurrency,数字货币,代币,兑换",btc:"cryptocurrency,数字货币,bitcoin,比特币",eth:"cryptocurrency,数字货币,ethereum,以太坊",xtz:"cryptocurrency,数字货币,tezos,兔子币",bnb:"cryptocurrency,数字货币,binance,币安币",xrp:"cryptocurrency,数字货币,ripple,瑞波币","discount-percent":"promotion,sale,折扣,促销,打折"},Food:{restaurant:"餐厅,饭店","restaurant-2":"餐厅,饭店",cup:"tea,coffee,杯子,咖啡,茶",goblet:"cup,wine glass,cocktail,高脚杯,酒杯,鸡尾酒","goblet-2":"cup,wine glass,cocktail,高脚杯,酒杯,鸡尾酒",beer:"cup,啤酒杯",cake:"anniversary,蛋糕","cake-2":"anniversary,蛋糕,生日,蜡烛","cake-3":"蛋糕,生日,蜡烛",knife:"菜刀","knife-blood":"crime,菜刀,犯罪,血,杀人",bread:"toast,吐司面包",drinks:"beverage,coffee,饮料,咖啡","drinks-2":"beverage,juice,饮料,果汁",bowl:"soup,碗,汤"},"Health & Medical":{heart:"like,love,favorite,心,喜欢,爱,收藏","heart-2":"like,love,favorite,心,喜欢,爱,收藏","heart-3":"like,love,favorite,心,喜欢,爱,收藏","heart-add":"like,love,favorite,心,喜欢,爱,收藏","heart-add-2":"like,love,favorite,心,喜欢,爱,收藏",dislike:"like,love,remove favorite,心,不喜欢,取消收藏",hearts:"romance,爱情,浪漫,心","heart-pulse":"heart rate,脉搏,心率",pulse:"wave,heart rate,脉搏,心率,波","pulse-ai":"wave,heart rate,脉搏,心率,波,AI分析",empathize:"care,heart,同理心,关爱,心",nurse:"doctors,医生,护士",dossier:"病例","health-book":"健康手册,医疗手册","first-aid-kit":"case,急救箱",capsule:"medicine,胶囊,药","medicine-bottle":"药瓶",flask:"testing,experimental,experiment,烧瓶,实验,试验","test-tube":"testing,experimental,experiment,试管,实验,试验",dropper:"eyedropper,color picker,color dropper,实验,试验,胶头滴管,取色器",microscope:"testing,experimental,experiment,显微镜,实验,试验","hand-sanitizer":"alcohol,酒精消毒洗手液","mental-health":"心理健康",psychotherapy:"心理治疗",stethoscope:"听诊器",syringe:"注射器",thermometer:"体温计","infrared-thermometer":"红外线体温计,体温枪","surgical-mask":"外科医用口罩",virus:"病毒",lungs:"肺部","rest-time":"close,休息时间,打烊",zzz:"睡觉",brain:"think,ai,大脑,思考,人工智能","brain-2":"think,ai,大脑,思考,人工智能",aed:"flash,心脏电击去颤器","aed-electrodes":"电极",dna:"health,medical,people,DNA,gene,基因,健康,医疗"},Logos:{alipay:"zhifubao,支付宝","alibaba-cloud":"阿里云",amazon:"亚马逊",anthropic:"ai",android:"applications,安卓,应用",angularjs:"angular,programing framework","app-store":"applications,苹果应用商店",apple:"苹果",baidu:"du,claw,百度,爪",bard:"google,ai,magic,star,shining,sparkling,twinkle,人工智能,魔法,星星,闪烁",behance:"behance",bilibili:"哔哩哔哩",blender:"3d",blogger:"博客",bluesky:"",bootstrap:"",centos:"linux,system,系统",chrome:"谷歌浏览器",claude:"ai",codepen:"代码笔",copilot:"github,飞行员",coreos:"linux,system,系统",dingding:"钉钉",discord:"game,chat",disqus:"comments",douban:"豆瓣",dribbble:"追波",drive:"google drive,谷歌云端硬盘",dropbox:"多宝箱",edge:"microsoft edge,edge浏览器","edge-new":"microsoft-edge,浏览器",evernote:"印象笔记",facebook:"脸书","facebook-circle":"脸书","facebook-box":"脸书",fediverse:"",figma:"design",finder:"macintosh,仿达",firebase:"",firefox:"火狐","firefox-browser":"火狐浏览器",flickr:"",flutter:"google",friendica:"",gatsby:"gatsby",gemini:"ai,star",github:"github",gitlab:"gitlab",google:"谷歌","google-play":"applications,谷歌应用商店","honor-of-kings":"game,王者荣耀",ie:"internet explorer,浏览器",instagram:"照片墙",invision:"invision","kakao-talk":"kakao talk,chat",line:"连我",linkedin:"领英","linkedin-box":"领英",java:"",kick:"","microsoft-loop":"Doc,笔记",mastercard:"bank card,银行卡",mastodon:"mastodon,长毛象",medium:"媒体",messenger:"facebook,脸书,信使",meta:"元",microsoft:"windows,窗户,微软","mini-program":"微信小程序",mixtral:"","netease-cloud-music":"netease cloud music,网易云音乐",netflix:"网飞",nextjs:"",nodejs:"",notion:"notes,doc,笔记,文档",npmjs:"npm,nodejs",openai:"人工智能",openbase:"","open-source":"opensource,开源",opera:"欧朋浏览器",patreon:"donate,money,捐赠,打赏",paypal:"贝宝",perplexity:"",pinterest:"拼趣",pix:"",pixelfed:"photography,pixelfed",playstation:"ps","product-hunt":"product hunt",qq:"penguin,tencent,腾讯,企鹅",reactjs:"react,programing framework,facebook",reddit:"reddit",remixicon:"remix icon,图标","remix-run":"",safari:"safari浏览器",skype:"skype",slack:"slack",snapchat:"ghost,色拉布,幽灵",soundcloud:"声云",spectrum:"spectrum",spotify:"music,音乐","stack-overflow":"stack overflow",stackshare:"share,分享,技术栈",steam:"game,store",supabase:"",svelte:"",switch:"nintendo,任天堂","tailwind-css":"",taobao:"淘宝",telegram:"telegram","telegram-2":"",threads:"",tiktok:"抖音",trello:"trello",tumblr:"汤博乐",twitch:"twitch",twitter:"推特","twitter-x":"推特",ubuntu:"linux,system,系统",unsplash:"photos",vercel:"",vimeo:"视频",vk:"",visa:"bank card,银行卡",vuejs:"vue,programing framework",webhook:"",wechat:"微信","wechat-2":"微信","wechat-channels":"微信视频号","wechat-pay":"微信支付",weibo:"新浪微博",whatsapp:"瓦次艾普",windows:"microsoft,窗户,微软",wordpress:"blog,博客",xbox:"xbox",xing:"xing",youtube:"优兔,油管",yuque:"语雀",zcool:"zcool,站酷",zhihu:"知乎"},Map:{"map-pin":"location,navigation,地图,坐标,定位,导航,位置","map-pin-2":"location,navigation,地图,坐标,定位,导航,位置","map-pin-3":"location,navigation,地图,坐标,定位,导航,位置","map-pin-4":"location,navigation,地图,坐标,定位,导航,位置","map-pin-5":"location,navigation,地图,坐标,定位,导航,位置","map-pin-add":"location,navigation,地图,坐标,定位,导航,位置,新增,添加","map-pin-range":"location,navigation,地图,坐标,定位,导航,位置,范围","map-pin-time":"location,navigation,地图,坐标,定位,导航,位置,时间","map-pin-user":"location,navigation,地图,坐标,定位,导航,位置,用户","pin-distance":"坐标,距离",pushpin:"图钉",unpin:"图钉,取消固定","pushpin-2":"图钉",compass:"navigation,safari,direction,discover,指南针,导航,方向,发现,探索","compass-2":"navigation,direction,discover,指南针,导航,方向,发现,探索","compass-3":"navigation,safari,direction,discover,指南针,导航,方向,发现,探索","compass-4":"navigation,direction,discover,指南针,导航,方向,发现,探索","compass-discover":"navigation,direction,指南针,导航,方向,发现,探索",anchor:"锚","china-railway":"中铁,铁路,火车","space-ship":"太空飞船",rocket:"火箭","rocket-2":"space ship,火箭,太空飞船",map:"navigation,travel,地图,导航,旅行","map-2":"location,navigation,travel,地图,定位,导航,旅行","treasure-map":"thriller,adventure,地图,藏宝图","road-map":"navigation,travel,地图,导航,旅行",earth:"global,union,world,language,地球,全球,联合,世界,语言","time-zone":"global,地球,时区,时间",globe:"earth,地球仪",planet:"space,discover,星球,宇宙,探索,发现",parking:"停车场","parking-box":"停车场",route:"path,路线",guide:"path,指引,路线","gas-station":"加气站,加油站","charging-pile":"充电桩","charging-pile-2":"充电桩",car:"汽车","car-washing":"汽车,洗车",roadster:"car,汽车,跑车",taxi:"car,出租车,汽车","taxi-wifi":"car,出租车,汽车","police-car":"汽车,警车",bus:"大巴,巴士","bus-2":"大巴,巴士","bus-wifi":"大巴,巴士",truck:"van,delivery,卡车,货车,运输",train:"火车","train-wifi":"火车",subway:"地铁","subway-wifi":"地铁","flight-takeoff":"airplane,plane,origin,起飞,出发,始发,起点,飞机","flight-land":"airplane,plane,destination,着陆,到达,抵达,终点,飞机",plane:"fight,飞机,航班",sailboat:"帆船",ship:"轮船,航海,海运","ship-2":"轮船",bike:"自行车","e-bike":"take out,takeaway,电动车,外卖","e-bike-2":"take out,takeaway,电动车,外卖",takeaway:"take out,takeaway,电动车,外卖",motorbike:"摩托车",caravan:"房车",walk:"步行",run:"奔跑,跑步",riding:"bike,骑行,自行车",barricade:"路障",footprint:"脚印,足迹","traffic-light":"交通,信号灯","signal-tower":"base station,antenna,信号塔,基站,天线","hotel-bed":"酒店,床",navigation:"gps,导航",oil:"汽油,机油",direction:"right,方向,右转",steering:"drive,方向盘,驾车","steering-2":"drive,方向盘,驾车",lifebuoy:"life ring,救生圈",passport:"passports,护照",suitcase:"travel,旅行,行李箱","suitcase-2":"travel,旅行,行李箱,拉杆箱","suitcase-3":"travel,旅行,boarding case,行李箱,拉杆箱,登机箱","luggage-deposit":"consignment,行李箱,行李寄存,托运","luggage-cart":"行李车",signpost:"milestone,路标,路牌,里程碑"},Media:{image:"picture,photo,图片,照片","image-ai":"picture,photo,图片,照片,AI生图","image-circle":"picture,photo,图片,照片","image-circle-ai":"AI生图","image-2":"picture,photo,图片,照片","image-add":"picture,photo,图片,照片,添加","image-edit":"picture,photo,图片,照片,编辑",landscape:"picture,image,photo,图片,照片","landscape-ai":"picture,image,photo,图片,照片,AI生图","multi-image":"picture,photo,album,gallery,图片,照片,相册",gallery:"album,picture,image,图片,相册","gallery-upload":"album,picture,image,图片,相册,上传",video:"视频","video-ai":"movie,video,影片,电影,视频,AI视频",movie:"film,video,电影,硬盘,视频","movie-ai":"movie,video,影片,电影,视频,AI视频","movie-2":"film,video,电影,硬盘,视频","movie-2-ai":"movie,video,影片,电影,视频,AI视频",film:"movie,video,影片,电影,视频","film-ai":"AI视频",clapperboard:"movie,film,场记板,电影","clapperboard-ai":"movie,film,场记板,电影,AI视频","video-on":"vidicon,camera,摄像机,摄影机,视频","video-on-ai":"vidicon,camera,摄像机,摄影机,视频,AI视频","video-off":"vidicon,camera,摄像机,摄影机,视频,关",vidicon:"video,camera,摄像机,摄影机,视频","vidicon-2":"camera,摄像机,摄影机",live:"video,camera,摄像机,摄影机,视频,直播","video-add":"camera,摄像机,摄影机,视频,添加","video-upload":"camera,摄像机,摄影机,视频,上传","video-download":"camera,摄像机,摄影机,视频,下载",dv:"vidicon,camera,摄像机,摄影机",camera:"photo,照相机,拍照,照片","camera-ai":"photo,照相机,拍照,照片,AI生图","camera-off":"photo,slash,照相机,拍照,照片,禁止,关闭","camera-2":"photo,照相机,拍照,照片","camera-3":"photo,照相机,拍照,照片","camera-lens":"aperture,photo,照相机,拍照,照片,朋友圈","camera-lens-ai":"aperture,photo,照相机,拍照,照片,朋友圈,AI生图","camera-switch":"照相机,拍照,翻转",polaroid:"camera,相机,宝丽来","polaroid-2":"camera,相机,宝丽来","phone-camera":"手机相机,手机摄像头",webcam:"摄像头",mv:"music video,音乐","mv-ai":"music video,音乐,AI音乐",music:"音乐","music-2":"音乐","music-ai":",AI音乐",disc:"music,album,音乐,唱片",album:"music,唱片,音乐",dvd:"cd,dvd,record,光盘,刻录","dvd-ai":"cd,dvd,record,光盘,刻录",headphone:"music,headset,耳机,音乐",radio:"收音机,电台","radio-2":"收音机,电台",tape:"录音,磁带",mic:"record,voice,话筒,语音,录音,声音","mic-ai":"record,voice,话筒,语音,录音,声音","mic-2":"record,voice,话筒,语音,录音,声音","mic-2-ai":"record,voice,话筒,语音,录音,声音","mic-off":"record,voice,slash,关闭话筒,关闭语音,录音,关闭声音,静音,禁止","volume-down":"trumpet,sound,speaker,音量低,喇叭,声音,扬声器","volume-mute":"trumpet,sound,off,音量低,喇叭,声音,静音","volume-up":"trumpet,sound,speaker,音量高,喇叭,声音,扬声器","volume-vibrate":"trumpet,sound,speaker,喇叭,声音,扬声器,震动模式","volume-off-vibrate":"trumpet,sound,speaker,静音,喇叭,声音,扬声器,静音模式",speaker:"音响","speaker-2":"音响","speaker-3":"音响","surround-sound":"环绕立体声",broadcast:"广播",notification:"bell,alarm,通知,铃铛,提醒","notification-2":"bell,alarm,通知,铃铛,提醒","notification-3":"bell,alarm,通知,铃铛,提醒","notification-snooze":"notification_paused,暂停通知,暂停提醒","notification-4":"bell,alarm,通知,铃铛,提醒","notification-off":"bell,alarm,silent,slash,通知,铃铛,提醒,免打扰,静音,关闭,禁止","play-circle":"start,播放,开始","pause-circle":"暂停","record-circle":"录音","stop-circle":"停止",eject:"推出","play-reverse":"回放",play:"start,播放,开始",pause:"暂停",stop:"停止",rewind:"fast,快退",speed:"fast,快进","skip-back":"上一曲","skip-forward":"下一曲","rewind-start":"上一曲","forward-end":"下一曲","play-reverse-mini":"回放","play-mini":"播放","pause-mini":"暂停","stop-mini":"停止","rewind-mini":"fast,快退","speed-mini":"fast,快进","skip-back-mini":"上一曲","skip-forward-mini":"下一曲","rewind-start-mini":"上一曲","forward-end-mini":"下一曲","play-reverse-large":"回放","play-large":"start,播放,开始","pause-large":"暂停","stop-large":"停止","replay-5":"playback,重播,回放","forward-5":"skip,快进,快放,跳过","replay-10":"playback,重播,回放","forward-10":"skip,快进,快放,跳过","replay-15":"playback,重播,回放","forward-15":"skip,快进,快放,跳过","replay-30":"playback,重播,回放","forward-30":"skip,快进,快放,跳过",memories:"回忆",repeat:"swap,交换,循环播放","repeat-2":"swap,交换,循环播放","repeat-one":"单曲循环","order-play":"顺序播放",shuffle:"随机播放","play-list":"播放列表","play-list-2":"播放列表","play-list-add":"列表,添加",fullscreen:"maximize,全屏,最大化","fullscreen-exit":"minimize,退出全屏,最小化",equalizer:"sliders,controls,settings,filter,均衡器,控制器,设置,筛选","equalizer-2":"sliders,controls,settings,filter,均衡器,控制器,设置,筛选","equalizer-3":"sliders,controls,settings,filter,均衡器,控制器,设置,筛选","sound-module":"sliders,controls,settings,filter,均衡器,控制器,设置,筛选",rhythm:"节奏,韵律",voiceprint:"声纹","voice-ai":"声纹","speed-up":"dashboard,快,加速,仪表盘","slow-down":"dashboard,慢,减速,仪表盘",hq:"high quality,高质量,高品质",hd:"high definition,高清晰度","4k":"high definition,high quality,高清晰度,高品质,超清","closed-captioning":"隐藏字幕","closed-captioning-ai":"智能字幕","aspect-ratio":"宽高比,比例","picture-in-picture":"画中画,小窗","picture-in-picture-2":"画中画,小窗","picture-in-picture-exit":"退出画中画,退出小窗"},System:{apps:"应用","apps-2":"应用","apps-2-add":"添加应用","apps-2-ai":"",function:"layout,功能,应用,卡片布局","function-add":"添加应用",dashboard:"仪表盘","dashboard-horizontal":"仪表盘",menu:"navigation,hamburger,导航,菜单,汉堡包","menu-2":"navigation,hamburger,导航,菜单,汉堡包","menu-3":"navigation,hamburger,导航,菜单,汉堡包","menu-4":"navigation,hamburger,导航,菜单,汉堡包","menu-5":"navigation,hamburger,导航,菜单,汉堡包","menu-add":"navigation,hamburger,导航,菜单,汉堡包,添加","menu-fold":"collapse,navigation,hamburger,导航,菜单,汉堡包,收起,展开","menu-unfold":"expand,navigation,hamburger,导航,菜单,汉堡包,收起,展开","menu-unfold-3":"expand,navigation,hamburger,导航,菜单,汉堡包,收起,展开","menu-fold-4":"collapse,navigation,hamburger,导航,菜单,汉堡包,收起,展开","menu-unfold-4":"expand,navigation,hamburger,导航,菜单,汉堡包,收起,展开","menu-fold-3":"collapse,navigation,hamburger,导航,菜单,汉堡包,收起,展开","menu-fold-2":"collapse,navigation,hamburger,导航,菜单,汉堡包,收起,展开","menu-unfold-2":"expand,navigation,hamburger,导航,菜单,汉堡包,收起,展开","menu-search":"category,菜单,搜索",more:"ellipsis,更多,省略","more-2":"kebab menu,ellipsis,更多,省略",star:"favorite,like,mark,星星,星标,喜欢","star-off":"star slash,取消关注,取消喜欢,取消收藏","star-s":"favorite,like,mark,星星,星标,喜欢,半星","star-half":"favorite,like,mark,星星,星标,喜欢","star-half-s":"favorite,like,mark,星星,星标,喜欢,半星",settings:"edit,gear,preferences,偏好设置,编辑,齿轮","settings-2":"edit,gear,preferences,偏好设置,编辑,齿轮","settings-3":"edit,gear,preferences,偏好设置,编辑,齿轮","settings-4":"edit,gear,preferences,偏好设置,编辑,齿轮","settings-5":"edit,gear,preferences,偏好设置,编辑,齿轮","settings-6":"edit,gear,preferences,偏好设置,编辑,齿轮","list-settings":"列表,设置",forbid:"prohibited,slash,ban,禁止,禁用","forbid-2":"prohibited,slash,ban,禁止,禁用",prohibited:"forbid,lash,ban,禁止,禁用","prohibited-2":"forbid,lash,ban,禁止,禁用",information:"i,信息","information-2":"i,信息","information-off":"i,信息,关闭","error-warning":"!,alert,important,alert,exclamation,警告,错误",question:"help,问号,帮助",alert:"提醒,警告",spam:"alert,垃圾邮件,警告","spam-2":"block,alert,垃圾邮件,警告,拦截","spam-3":"block,alert,垃圾邮件,警告,拦截","checkbox-blank":"复选框,空",checkbox:"复选框","checkbox-indeterminate":"复选框","add-box":"plus,new,复选框,添加,加号,新增","checkbox-blank-circle":"复选框,空","checkbox-circle":"复选框","indeterminate-circle":"slash,ban,复选框,禁","add-circle":"plus,new,复选框,添加,加号,新增","close-circle":"cancel,remove,delete,empty,x,关闭,取消,移除,删除,清空","radio-button":"单选框","checkbox-multiple-blank":"复选框,空","checkbox-multiple":"复选框,空",check:"对勾","check-double":"read,done,double-tick,双对勾,已读",close:"cancel,remove,delete,empty,x,关闭,取消,移除,删除,清空",add:"plus,new,添加,新增,加号",subtract:"minus,减",divide:"除以",equal:"sum,result,等于","close-large":"cancel,remove,delete,empty,x,关闭,取消,移除,删除,清空","add-large":"lus,new,添加,新增,加号",download:"import,receive,下载,接收,导入",upload:"export,send,上传,发送,导出","download-2":"import,receive,下载,接收,导入","upload-2":"export,send,上传,发送,导出",import:"download,导入,下载",export:"upload,导出,上传","download-cloud":"下载,云","upload-cloud":"上传,云","download-cloud-2":"下载,云","upload-cloud-2":"上传,云","login-box":"sign in,登录","logout-box":"sign out,登出,注销","logout-box-r":"sign out,登出,注销","login-circle":"sign in,登录","logout-circle":"sign out,登出,注销","logout-circle-r":"sign out,登出,注销",shield:"safety,protect,盾牌,卫士,安全,防御","shield-cross":"safety,protect,盾牌,卫士,安全,防御,闪电","shield-flash":"safety,protect,盾牌,卫士,安全,防御","shield-star":"police badge,safety,protect,盾牌,卫士,安全,防御,星星,警徽","shield-user":"safety,protect,user protected,guarantor,盾牌,卫士,安全,防御,用户","shield-keyhole":"safety,protect,guarantor,盾牌,卫士,安全,防御,钥匙孔","shield-check":"safety,protect,盾牌,卫士,安全,防御","delete-back":"backspace,删除,退格","delete-back-2":"backspace,删除,退格","delete-bin":"trash,remove,ash-bin,garbage,dustbin,uninstall,卸载,删除,垃圾桶","delete-bin-2":"trash,remove,ash-bin,garbage,dustbin,uninstall,卸载,删除,垃圾桶","delete-bin-3":"trash,remove,ash-bin,garbage,dustbin,uninstall,卸载,删除,垃圾桶","delete-bin-4":"trash,remove,ash-bin,garbage,dustbin,uninstall,卸载,删除,垃圾桶","delete-bin-5":"trash,remove,ash-bin,garbage,dustbin,uninstall,卸载,删除,垃圾桶","delete-bin-6":"trash,remove,ash-bin,garbage,dustbin,uninstall,卸载,删除,垃圾桶","delete-bin-7":"trash,remove,ash-bin,garbage,dustbin,uninstall,卸载,删除,垃圾桶",lock:"security,password,锁子,安全,密码","lock-2":"security,password,锁子,安全,密码","lock-password":"security,锁子,安全,密码","lock-unlock":"security,password,锁子,安全,密码","lock-star":"security,premium,锁子,安全,密码,会员,高级",eye:"watch,view,眼睛,查看","eye-off":"slash,眼睛,不可见,关闭,禁止","eye-2":"watch,view,眼睛,查看","eye-close":"x,闭眼",search:"搜索,放大镜","search-2":"搜索,放大镜","search-eye":"搜索,放大镜,眼睛","zoom-in":"放大,放大镜","zoom-out":"缩小,放大镜","find-replace":"查找,搜索,替换",share:"sharing,分享,转发","share-2":"sharing,分享,转发","share-box":"sharing,分享,转发","share-circle":"sharing,分享,转发","share-forward":"sharing,分享,转发","share-forward-2":"sharing,分享,转发","share-forward-box":"sharing,分享,转发","external-link":"外链","side-bar":"侧边栏","sidebar-unfold":"expand,展开侧边栏","sidebar-fold":"收起侧边栏",time:"clock,时间,时钟,钟表",timer:"chronograph,stopwatch,秒表,计时器","timer-2":"chronograph,stopwatch,秒表,计时器","timer-flash":"chronograph,stopwatch,秒表,计时器,闪电",alarm:"闹钟","alarm-add":"添加闹钟","alarm-snooze":"暂停闹钟,再睡一会",history:"record,recent,time machine,历史记录,最近","hourglass-2":"time,history,recent,duration,沙漏,时间,历史记录,最近",hourglass:"time,history,recent,duration,沙漏,时间,历史记录,最近","thumb-up":"like,good,喜欢,好","thumb-down":"dislike,bad,不喜欢,不好","alarm-warning":"alert,report,police light,告警,举报,警灯","notification-badge":"red dot,通知,小红点",toggle:"switch,开关,触发器",filter:"filtration,筛选,过滤","filter-2":"filtration,筛选,过滤","filter-3":"filtration,筛选,过滤","filter-off":"filtration,clear-filter,筛选,过滤",loader:"loader,spinner,ajax,waiting,delay,加载中,载入中,正在加载","loader-2":"loader,spinner,ajax,waiting,delay,加载中,载入中,正在加载","loader-3":"loader,spinner,ajax,waiting,delay,加载中,载入中,正在加载","loader-4":"loader,spinner,ajax,waiting,delay,加载中,载入中,正在加载","loader-5":"loader,spinner,ajax,waiting,delay,加载中,载入中,正在加载",refresh:"reload,repeat,replace,reset,restart,synchronization,spinner,loader,update,刷新,重新加载,重复,重置,替换,重启,同步,更新","loop-left":"reload,repeat,replace,reset,restart,synchronization,spinner,loader,update,刷新,重新加载,重复,重置,替换,重启,同步,更新","loop-right":"reload,repeat,replace,reset,restart,synchronization,spinner,loader,update,刷新,重新加载,重复,重置,替换,重启,同步,更新","reset-left":"reload,repeat,replace,refresh,restart,synchronization,spinner,loader,update,刷新,重新加载,重复,重置,替换,重启,同步,更新","reset-right":"reload,repeat,replace,refresh,restart,synchronization,spinner,loader,update,刷新,重新加载,重复,重置,替换,重启,同步,更新","progress-1":"percent,进度,百分比","progress-2":"percent,进度,百分比","progress-3":"percent,进度,百分比","progress-4":"percent,进度,百分比","progress-5":"percent,进度,百分比","progress-6":"percent,进度,百分比","progress-7":"percent,进度,百分比","progress-8":"percent,进度,百分比"},"User & Faces":{user:"person,people,用户","user-2":"person,people,用户","user-3":"person,people,用户","user-4":"person,people,用户","user-5":"person,people,用户","user-6":"person,people,用户","user-smile":"person,people,用户,微笑","account-box":"person,people,用户,微笑","account-box-2":"person,people,用户,微笑","account-circle":"person,people,用户,微笑","account-circle-2":"person,people,用户,微笑","account-pin-box":"person,people,用户,微笑","account-pin-circle":"person,people,用户,微笑","user-add":"person,people,用户,添加,新增","user-minus":"person,peopl,unfollow,用户,减少,移除","user-follow":"person,people,关注","user-unfollow":"person,people,rejected,用户,取消关注,拒绝,错误","user-shared":"transfer,用户,我分享的,发送,person,people","user-shared-2":"transfer,用户,我分享的,发送,person,people","user-received":"用户,我接收的,收取,person,people","user-received-2":"用户,我接收的,收取,person,people","user-location":"用户,定位,person,people","user-search":"用户,查找,person,people","user-settings":"admin,用户,设置,管理员,person,people","user-star":"用户,关注,person,people","user-heart":"用户,关注,person,people",admin:"admin,用户,管理员,person,people","user-forbid":"terminated,禁止,终止",contacts:"联系人",group:"team,团队,群组,person,people,multiple users,user group,community,社区","group-2":"team,团队,群组,person,people,multiple users,user group,community,社区","group-3":"team,团队,群组,person,people,multiple users,user group,community,社区",team:"团队,小组,群主,person,people","user-voice":"用户,录音,演讲",emotion:"表情,笑脸","emotion-2":"表情,笑脸","emotion-happy":"表情,开心","emotion-normal":"表情,一般","emotion-unhappy":"表情,不开心","emotion-laugh":"comedy,happy,表情,大笑,笑脸,开心,喜剧","emotion-sad":"drama,tears,悲剧,哭泣,泪",skull:"ghost,骷髅,鬼怪","skull-2":"ghost,horror,thriller,骷髅,鬼怪,恐惧,恐怖",men:"gender,man,male,男人,男性",women:"gender,woman,female,女人,女性",travesti:"女人,女性",genderless:"女人,女性","open-arm":"张开双臂","body-scan":"gesture recognition,body,扫描身体,体态识别,动作之别,手势识别",parent:"patriarch,父母,亲子,家长","user-community":"team,团队,群组,person,people,multiple users,user group,community,社区",robot:"AI,mechanic,机器人","robot-2":"AI,mechanic,机器人","robot-3":"AI,mechanic,机器人",aliens:"science fiction,ET,外星人,科幻小说","bear-smile":"cartoon,anime,cartoon,小熊,微笑,儿童,动画片,卡通,动漫",mickey:"cartoon,disney,迪士尼,米老鼠,微笑,儿童,动画片",criminal:"horror,thriller,罪犯,犯罪,恐怖",ghost:"horror,thriller,鬼怪,恐怖,恐惧","ghost-2":"horror,鬼怪,恐怖,恐惧","ghost-smile":"鬼怪,笑","star-smile":"animation,动画,微笑,星星",spy:"incognito mode,detective,secret,间谍,侦探,无痕模式,隐私模式"},Weather:{sun:"light mode,sunny,太阳,白天模式,晴天",moon:"dark mode,night,月亮,夜间模式,月牙",flashlight:"闪电",cloudy:"多云","cloudy-2":"多云",mist:"雾气,雾霾",foggy:"大雾","cloud-windy":"风",windy:"大风,刮风",rainy:"下雨,雨天",drizzle:"小雨",showers:"中雨","heavy-showers":"大雨",thunderstorms:"雷暴,雷阵雨",hail:"冰雹",snowy:"下雪,雪天",snowflake:"下雪,雪天,雪花","sun-cloudy":"晴转多云","moon-cloudy":"夜间多云",tornado:"龙卷风",typhoon:"cyclone,tornado,龙卷风,旋风,台风",haze:"阴霾,薄雾","haze-2":"阴霾,薄雾","sun-foggy":"薄雾","moon-foggy":"薄雾","moon-clear":"夜间模式,夜间无云","temp-hot":"temperature,温度,高温,热","temp-cold":"temperature,温度,低温,冷",celsius:"temperature,温度,摄氏度",fahrenheit:"temperature,温度,华氏度","water-percent":"humidity,水,百分比,湿度",fire:"flame,hot,火,热门",blaze:"flame,火灾",earthquake:"地震",flood:"洪水",meteor:"流星,陨石",rainbow:"彩虹",shining:"star,magic,ai,twinkle,星星,魔法,闪烁","shining-2":"star,magic,ai,twinkle,星星,魔法,闪烁",sparkling:"shining,star,magic,ai,twinkle,星星,魔法,闪烁","sparkling-2":"shining,star,magic,ai,twinkle,星星,魔法,闪烁"},Others:{basketball:"sports,篮球,运动,体育",bell:"cartoon,anime,doraemon,铃铛,哆啦A梦,卡通,动漫",billiards:"sports,运动,台球,8,体育",boxing:"sports,运动,拳击,体育","door-lock":"门锁","door-lock-box":"门锁",football:"sports,运动,足球,体育",game:"pac man,游戏,吃豆人,体育",chess:"game,国际象棋,游戏,比赛",handbag:"fashion,时尚,手提包,女包",key:"password,钥匙,密码","key-2":"password,钥匙,密码",lightbulb:"energy,creativity,灯泡,能源,白炽灯,能源,电子产品","lightbulb-flash":"energy,creativity,idea,灯泡,白炽灯,能源,闪电,创意,灵感",outlet:"二脚插座","outlet-2":"三脚插座",plug:"plugin,二脚插头","plug-2":"plugin,三脚插头","ping-pong":"sports,table tennis,运动,乒乓球,球拍,体育",reserved:"已预定,会议室屏幕,电视,显示器",shirt:"clothes,衬衫,衣服,服饰,西装,西服",sword:"war,刀剑,战争,战斗,玄幻,对抗","t-shirt":"skin,theme,T恤,皮肤,主题,服饰","t-shirt-2":"skin,theme,T恤,皮肤,主题,服饰","t-shirt-air":"dry,T恤,风干,烘干,服饰",umbrella:"protect,雨伞,保护,保险","character-recognition":"ocr,文字识别","voice-recognition":"asr,语音识别,音频",leaf:"energy,ecology,树叶,节能,环保,草,植物",plant:"植物,叶子,草,花盆",seedling:"树苗,植物,叶子,草",tree:"植物,树木",recycle:"recyclable,可回收,循环","scales-2":"厨房称",scales:"balance,称,天平,天秤","scales-3":"balance,称,天平,天秤",fridge:"refrigerator,电冰箱,柜子,服务器",accessibility:"可访问性,辅助功能,无障碍",wheelchair:"accessibility,轮椅,可访问性,辅助功能,残疾人,无障碍",cactus:"desertr,仙人掌,沙漠,植物",door:"门,建筑","door-open":"开门,建筑","door-closed":"关门,建筑","graduation-cap":"cap,school,student,毕业,帽子,学校,学生","box-1":"instance,盒子,实例","box-2":"instance,盒子,实例","box-3":"instance,3d,盒子,实例,立体",candle:"蜡烛",cross:"tomb,十字架,坟墓",infinity:"infinite,endless,loop,forever,math,eternal,无限,循环,永远,永久,永恒",goggles:"vr,vision,护目镜",glasses:"vision,spectacles,眼镜","glasses-2":"vision,spectacles,眼镜","dice-1":"random,骰子","dice-2":"random,骰子","dice-4":"random,骰子","dice-6":"random,骰子","dice-5":"random,骰子","dice-3":"random,骰子",dice:"random,骰子","poker-hearts":"红桃","poker-clubs":"黑桃","poker-diamonds":"jewelry,方片,宝石","poker-spades":"梅花","service-bell":"hotel service,helpdesk,restaurant,服务,铃铛,餐厅",flower:"plant,植物,花",armchair:"sofa,seat,手扶椅,沙发,座位",sofa:"armchair,seat,手扶椅,沙发,座位",tooth:"teeth,牙齿",weight:"weight,heavy,dense,kilo,pound,gram,large,重量","police-badge":"警察,警徽","golf-ball":"sports,高尔夫球",stairs:"stages,levels,楼梯,步行梯,台阶","book-shelf":"books,library,categories,书架,书籍,图书馆,分类"}};let Ab={},Tb=[];for(const[e,t]of Object.entries(Cxe))for(const[n,i]of Object.entries(t))e==="Editor"?(Ab[n]=i,Tb.push(n)):(Ab[`${n}-fill`]=i,Ab[`${n}-line`]=i,Tb.push(`${n}-fill`,`${n}-line`));Tb.sort();const Sxe={style:{padding:"0 5px"}},xxe={class:"jwt-icon-select-wrapper"},Exe=l.defineComponent({name:"JwtIconSelect"}),Bxe=l.defineComponent({...Exe,props:{modelValue:{type:String,default:"settings-3-line"}},emits:["update:modelValue","change","select"],setup(e,{emit:t}){const n=e,i=t,r=16;let o=[],s=0;const a=xJ(),u=l.reactive({searchVal:"",isCustom:!1,listData:[],pagination:{pageNo:1,pageSize:r,total:0,layout:"total, prev, next"}}),f=l.computed({get:()=>n.modelValue||"settings-3-line",set:v=>{i("update:modelValue",v)}}),d=v=>{u.pagination.pageSize=v},c=v=>{u.pagination.pageNo=v,m()},h=v=>{f.value=v.icon,u.isCustom=v.isCustom,i("change",v.icon),i("select",v)},p=()=>{u.pagination.pageNo=1,l.nextTick(()=>{m()})},m=()=>{var b,g;let v=[];if(u.searchVal)for(let k=0;k<s;k++){const w=o[k];((b=w==null?void 0:w.name)!=null&&b.includes(u.searchVal)||(g=w==null?void 0:w.icon)!=null&&g.includes(u.searchVal))&&v.push(w)}else v=o;u.pagination.total=v.length,u.listData=v.slice((u.pagination.pageNo-1)*16,u.pagination.pageNo*16)};function y(){const v=Tb.map(g=>({icon:g,name:Ab[g],isCustom:!1})),b=Object.keys(a).map(g=>({icon:g,name:a[g],isCustom:!0}));o=[...v,...b],s=o.length,u.listData=o.slice(0,r),u.pagination.total=o.length}return l.onMounted(()=>{y()}),(v,b)=>{const g=l.resolveComponent("jwt-icon"),k=l.resolveComponent("el-button"),w=l.resolveComponent("el-input"),T=l.resolveComponent("el-col"),S=l.resolveComponent("el-row"),_=l.resolveComponent("el-card"),A=l.resolveComponent("el-pagination"),D=l.resolveComponent("el-popover");return l.openBlock(),l.createBlock(D,{persistent:!1,trigger:"click",width:300},{reference:l.withCtx(()=>[l.createVNode(k,null,{default:l.withCtx(()=>[l.createVNode(g,{icon:f.value,"is-custom":u.isCustom},null,8,["icon","is-custom"]),l.createElementVNode("span",Sxe,l.toDisplayString(l.unref(Pe)("图标选择器")),1),l.createVNode(g,{icon:"arrow-down-s-line"})]),_:1})]),default:l.withCtx(()=>[l.createElementVNode("div",xxe,[l.createVNode(S,null,{default:l.withCtx(()=>[l.createVNode(T,{span:18},{default:l.withCtx(()=>[l.createVNode(w,{modelValue:u.searchVal,"onUpdate:modelValue":b[0]||(b[0]=x=>u.searchVal=x),clearable:"",placeholder:"",onKeydown:l.withKeys(p,["enter"])},null,8,["modelValue"])]),_:1}),l.createVNode(T,{offset:1,span:4},{default:l.withCtx(()=>[l.createVNode(k,{type:"primary",onClick:p},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(Pe)("查询")),1)]),_:1})]),_:1})]),_:1}),l.createVNode(S,{class:"icon-list",gutter:10},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(u.listData,(x,B)=>(l.openBlock(),l.createBlock(T,{key:B,span:6},{default:l.withCtx(()=>[l.createVNode(_,{"body-style":{padding:"5px",textAlign:"center"},shadow:"hover",onClick:E=>h(x)},{default:l.withCtx(()=>[l.createVNode(g,{icon:x.icon,"is-custom":x.isCustom,size:"30"},null,8,["icon","is-custom"])]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1}),l.createVNode(S,{class:"pagination",justify:"center"},{default:l.withCtx(()=>[l.createVNode(T,{span:18},{default:l.withCtx(()=>[l.createVNode(A,{background:"","current-page":u.pagination.pageNo,layout:u.pagination.layout,"page-size":u.pagination.pageSize,total:u.pagination.total,onCurrentChange:c,onSizeChange:d},null,8,["current-page","layout","page-size","total"])]),_:1})]),_:1})])]),_:1})}}}),Dxe=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(Bxe,[["__scopeId","data-v-c806b3b3"]])},Symbol.toStringTag,{value:"Module"})),Axe=l.defineComponent({name:"JwtImage",inheritAttrs:!1,props:{fit:{type:String,default:"cover"},src:{type:String,default:""},type:{type:String,default:""},multiple:{type:Boolean,default:!1}},emits:["table-action"],setup(e){const t=l.useAttrs(),n=Nn(),i=(a,u,f,d=50)=>n.fillUrl&&on.isFunction(n.fillUrl)?n.fillUrl(a,u,f,d):a,r=l.computed(()=>{var u,f;let a=[];return e.multiple?(f=(u=e.src)==null?void 0:u.split(","))==null||f.map(d=>{d&&a.push({url:i(d),previewUrl:i(d,0,0,0)})}):a.push({url:i(e.src),previewUrl:i(e.src,0,0,0)}),a}),o=l.computed(()=>({search:"search-line",add:"add-circle-line",delete:"delete-bin-line"})[e.type]),s=l.computed(()=>r.value.map(a=>a.previewUrl));return{attrs:t,imgPath:r,previewImgs:s,icon:o}}}),Txe={key:0,class:"base-image-mask"};function Oxe(e,t,n,i,r,o){const s=l.resolveComponent("el-image"),a=l.resolveComponent("jwt-icon");return l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.imgPath,(u,f)=>(l.openBlock(),l.createElementBlock("div",l.mergeProps({ref_for:!0},e.attrs,{key:f,class:["base-image-wrapper",[e.multiple?"dl mr10 mb5":""]]}),[l.createVNode(s,l.mergeProps({fit:e.fit,"initial-index":f,"preview-src-list":e.previewImgs,"preview-teleported":"",src:u.url,ref_for:!0},e.attrs),null,16,["fit","initial-index","preview-src-list","src"]),e.icon?(l.openBlock(),l.createElementBlock("div",Txe,[l.createVNode(a,{icon:e.icon,size:"36"},null,8,["icon"])])):l.createCommentVNode("",!0)],16))),128)}const Fxe=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(Axe,[["render",Oxe],["__scopeId","data-v-1e911279"]])},Symbol.toStringTag,{value:"Module"})),Pxe=l.defineComponent({name:"JwtInput",components:{},inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:null},defaultBg:{type:String,default:"red"},changeBg:{type:String,default:"blue"},textColor:{type:String,default:""}},emits:["update:modelValue","blur"],setup(e,{emit:t}){const n=l.useAttrs(),i=l.reactive({oldVal:e.modelValue}),r=l.computed({get:()=>e.modelValue||"",set:a=>{t("update:modelValue",a)}}),o=l.computed(()=>i.oldVal!==r.value),s=()=>{i.oldVal!==r.value&&(i.oldVal=r.value,t("blur",r.value))};return l.onMounted(()=>{}),{...l.toRefs(i),attrs:n,inputModel:r,newValDiffOldVal:o,handleBlur:s}}});function jxe(e,t,n,i,r,o){const s=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(s,l.mergeProps({modelValue:e.inputModel,"onUpdate:modelValue":t[0]||(t[0]=a=>e.inputModel=a),class:"input-change-style",style:{backgroundColor:`${e.newValDiffOldVal?e.changeBg:e.defaultBg}`,color:e.textColor}},e.attrs,{onBlur:e.handleBlur}),null,16,["modelValue","style","onBlur"])}const Ixe=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(Pxe,[["render",jxe],["__scopeId","data-v-04712864"]])},Symbol.toStringTag,{value:"Module"})),Rxe={class:"jwt-material-img-mask"},Nxe={class:"jwt-material-img-checked-wrapper"},Mxe=l.defineComponent({name:"JwtMaterialItemMask"}),jK=Qt(Object.assign(Mxe,{props:{item:{type:Object,default:()=>{}},index:{type:Number,default:0},showDelete:{type:Boolean,default:!1},showEdit:{type:Boolean,default:!1},showChecked:{type:Boolean,default:!0}},emits:["previewImg","delete","toggleEdit"],setup(e,{emit:t}){const n=e,i=t;function r(){i("previewImg",n.index,n.item)}function o(){i("delete",n.index,n.item)}function s(){i("toggleEdit",n.index,n.item)}return(a,u)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",Rxe,[l.createElementVNode("i",{class:"el-icon",onClick:u[0]||(u[0]=l.withModifiers(f=>r(e.index),["stop"]))},u[3]||(u[3]=[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z",fill:"currentColor"})],-1)])),e.showDelete?(l.openBlock(),l.createElementBlock("i",{key:0,class:"el-icon",onClick:u[1]||(u[1]=l.withModifiers(f=>o(e.index,e.item),["stop"]))},u[4]||(u[4]=[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z",fill:"currentColor"})],-1)]))):l.createCommentVNode("",!0),e.showEdit?(l.openBlock(),l.createElementBlock("i",{key:1,class:"el-icon",onClick:u[2]||(u[2]=l.withModifiers(f=>s(e.index,e.item),["stop"]))},u[5]||(u[5]=[l.createElementVNode("svg",{"data-v-ea893728":"",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z",fill:"currentColor"}),l.createElementVNode("path",{d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z",fill:"currentColor"})],-1)]))):l.createCommentVNode("",!0)]),l.withDirectives(l.createElementVNode("div",Nxe,u[6]||(u[6]=[l.createElementVNode("i",{class:"el-icon"},[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z",fill:"currentColor"})])],-1)]),512),[[l.vShow,e.item.checked&&e.showChecked]])],64))}}),[["__scopeId","data-v-40ce87b9"]]),Lxe=Object.freeze(Object.defineProperty({__proto__:null,default:jK},Symbol.toStringTag,{value:"Module"})),IK={"page-sizes":[10,15,20,30,40,50,100],"page-size":10,layout:"total, sizes, prev, pager, next, jumper"},zxe=l.defineComponent({name:"JwtMaterial",components:{JwtMaterialItemMask:jK,PasteUpload:Db},props:{multiple:{type:Boolean,default:!0},used:{type:Boolean,default:!1},config:{type:Object,default:()=>{}}},emits:["delete-success","on-delete","on-edit","edit-success","select","update:modelValue","on-matting","matting-success"],setup(e,{emit:t}){var Y,fe;const n=l.ref(null),i=l.ref(null),r=Nn();let o=Ke.merge({categoryApi:"",categoryAdd:"",categoryEdit:"",categoryDelete:"",listApi:"",importApi:"",exportApi:"",deleteApi:"",updateApi:"",mattingApi:"",updateName:"filedata",showPasteUpload:!1,uploadApi:"",urlKey:"url",labelKey:"name",idKey:"id",mattingKey:"file_ids",searchKey:"keyword",deleteKey:"id",categoryKey:"category_id",deleteText:"此操作将会永久删除数据,是否继续",isDelete:!0,isSelectAll:!0,isEdite:!0,showPagination:!0,mediumList:!1,onlinPreFileFun:null,nodeLevel:2,pagination:{pageSize:20,pageNumKey:"page",pageSizeKey:"per_page",totalKey:"total",dataKey:"data",...IK},imgLimitSize:1024*20,videoLimitSize:1024*500,oplpadLimit:50,tabList:[],tabOther:{title:"",dataList:[]},activeName:""},e.config);const s=[{title:Pe("添加分类"),type:"add"},{title:Pe("编辑分类"),type:Pe("edit")},{title:Pe("删除分类"),type:"delete"}],a=l.reactive({pasteVal:"",selectTreeData:[],treeData:[],categoryVal:"",categoryId:"",searchVal:"",dataList:[],dialogPreviewVisible:!1,dialogOtherVisible:!1,previewImgIndex:0,previewImgUrl:"",dialogTitle:"",uploadFileNum:0,uploadProgress:!1,ajaxLoading:!1,loading:!1,activeName:(o==null?void 0:o.activeName)||1,categoryPop:{top:0,display:"none",level:1,id:null,name:""},categoryOpt:s,ruleForm:{pid:"",name:"",id:""},rules:{pid:[{required:!0,trigger:"blur"}],name:[{required:!0,message:Pe("分类名称不能为空"),trigger:"blur"}]}}),u=l.reactive({currentPage:1,pageCount:1,pageSize:o.pagination.pageSize||IK["page-sizes"][0],totalCount:1,sort:((Y=o.pagination)==null?void 0:Y.sort)||"id",order:((fe=o.pagination)==null?void 0:fe.order)||"desc"}),f=l.computed(()=>{const oe=["pdf","docx","doc","xlsx","xls","pptx","psd","zip","gz","rar","7z","txt"],pe=oe.map(ve=>`.${ve}`).join(","),de={img:{label:Pe("图片"),name:1,type:"img",fileType:"image/",accept:"image/*"},video:{label:Pe("视频"),name:2,type:"video",fileType:"video/",accept:"video/*"},audio:{label:Pe("音频"),name:3,type:"audio",fileType:"audio/",accept:"audio/*"},file:{label:Pe("文件"),name:4,type:"file",fileType:oe,accept:pe},other:{label:o.tabOther.title||Pe("图片"),name:"other",type:"img",fileType:"image/",accept:"image/*",...o.tabOther}},Oe=o.tabList.map(ve=>{if(de[ve])return{...de[ve]}});return Oe.length===0?[de.img]:Oe}),d=l.computed(()=>a.activeName==="other"),c=l.computed(()=>f.value.filter(pe=>pe.name===a.activeName)[0]||"img"),h=l.computed(()=>{var oe;return((oe=c.value)==null?void 0:oe.label)||Pe("图片")}),p=l.computed(()=>c.value.type==="file"?!1:!!(c.value.type==="img"||o.mediumList)),m=l.computed(()=>({children:"children",value:"id",label:"name",class:"mt5",checkStrictly:!0})),y=l.computed(()=>a.dataList.map(oe=>we(oe.url,"","",""))),v=l.computed(()=>a.dataList.filter(oe=>oe.checked)||[]),b=(oe=0,pe={},de="single")=>{if(!o.deleteApi){t("on-delete",de==="single"?pe:[]);return}let Oe={};const{deleteKey:ve,idKey:_e,deleteApi:Ue}=o;if(de==="single")Oe[ve]=pe[_e];else{const st=v.value.map(it=>it[_e]).join(",");Oe[ve]=st}r.request({url:Ue,method:"post",data:Oe}).then(()=>{de==="single"&&a.dataList.length>1?a.dataList.splice(oe,1):B(),t("delete-success")})},g=(oe,pe,de="single")=>{lt.ElMessageBox.confirm(Pe(o.deleteText),{confirmButtonText:Pe("确定"),cancelButtonText:Pe("取消"),type:"warning"}).then(()=>{b(oe,pe,de)}).catch(()=>{lt.ElMessage.info(Pe("取消操作"))})},k=(oe,pe)=>{if(a.dataList[oe].isEdite){w(oe);return}a.dataList[oe].isEdite=!a.dataList[oe].isEdite},w=oe=>{if(!o.updateApi){t("on-edit",a.dataList[oe]),a.dataList[oe].isEdite=!1;return}const{updateApi:pe,labelKey:de,idKey:Oe}=o;let ve={id:a.dataList[oe][Oe]};ve[de]=a.dataList[oe].name,r.request({url:pe,method:"post",data:ve}).then(()=>{t("edit-success"),a.dataList[oe].isEdite=!1})},T=(oe,pe)=>{if((oe==null?void 0:oe.key)==="Enter"&&!oe.isComposing){oe.currentTarget.blur();return}w(pe)},S=oe=>{const{url:pe}=a.dataList[oe];fk(pe)},_=oe=>{a.previewImgIndex=oe;const{url:pe,icon:de,name:Oe}=a.dataList[oe];if(a.dialogTitle=Oe,a.previewImgUrl=pe,c.value.type==="img")a.dialogPreviewVisible=!0;else if(c.value.type==="file"){const ve=["file-word-fill","file-excel-fill","file-ppt-fill"].includes(de);if(pe.includes(".pdf")||pe.includes(".txt")||ve)ve&&(a.loading=!0,a.previewImgUrl=`https://view.officeapps.live.com/op/view.aspx?src=${pe}`,setTimeout(()=>{a.loading=!1},2e3));else if(o.onlinPreFileFun&&Ke.isFunction(o.onlinPreFileFun))a.previewImgUrl=o.onlinPreFileFun(a.dataList[oe]);else{fk(pe);return}a.dialogOtherVisible=!0}else a.dialogOtherVisible=!0},A=()=>{a.dialogPreviewVisible=!1},D=()=>{if(!e.multiple)return lt.ElMessage({showClose:!0,message:Pe("只能选择一张图片"),type:"error",duration:1e3});a.dataList=a.dataList.map(oe=>(oe.checked=!0,oe))},x=()=>{var Oe;if(!o.categoryApi)return lt.ElMessage.info(Pe("请配置分类接口"));let oe={type:(Oe=c.value)==null?void 0:Oe.type};const{categoryApi:pe,searchKey:de}=o;oe[de]=a.searchVal,r.request({url:pe,method:"get",params:oe}).then(ve=>{ve.unshift({name:`${Pe("全部")}${h.value}`,id:0,children:[]}),a.treeData=ve;const _e=h7(Ke.cloneDeep(ve),o.nodeLevel-1);a.selectTreeData=_e})},B=()=>{if(!o.listApi)return lt.ElMessage.info(Pe("请配置素材接口"));const{listApi:oe,searchKey:pe,urlKey:de,labelKey:Oe,categoryKey:ve}=o;let _e={type:c.value.type,[o.pagination.pageNumKey||"num"]:u.currentPage,[o.pagination.pageSizeKey||"size"]:u.pageSize,sort:u.sort,order:u.order};_e[pe]=a.searchVal,_e[ve]=a.categoryId,a.ajaxLoading=!0,r.request({url:oe,method:"get",params:_e}).then(Ue=>{const st=Ue[o.pagination.dataKey].map(it=>{const xt=it[Oe],yt=it[de];it.url=yt,it.name=xt,it.isEdite=!1;const je=p7(yt,_e.type);return{...it,...je}});u.totalCount=Ue[o.pagination.totalKey],a.dataList=st,a.ajaxLoading=!1}).catch(()=>{a.ajaxLoading=!1})},E=()=>{u.currentPage=1,l.nextTick(()=>{var oe;d.value?(a.dataList=((oe=o==null?void 0:o.tabOther)==null?void 0:oe.dataList)||[],u.totalCount=a.dataList.length):(x(),B())})},F=oe=>{u.currentPage=oe,l.nextTick(()=>{B()})},C=oe=>{u.pageSize=oe,l.nextTick(()=>{B()})},I=()=>{u.currentPage=1,l.nextTick(()=>{B()})},N=()=>{t("select",v.value)},H=oe=>{var pe;if(((pe=a.treeData)==null?void 0:pe.length)===1)return oe.stopPropagation(),lt.ElMessage.error(Pe("请添加分类"))},Q=oe=>{a.categoryId=oe.id||"",l.nextTick(()=>{B()})},ie=(oe,pe,de)=>{const{layerY:Oe}=oe;a.categoryPop.top=`${Oe+45}px`,a.categoryPop.display="block",a.categoryPop.id=(de==null?void 0:de.id)||"",a.categoryPop.pid=(de==null?void 0:de.pid)||0,a.categoryPop.level=(pe==null?void 0:pe.level)||"",a.categoryPop.name=(de==null?void 0:de.name)||"",de.id?pe.level===o.nodeLevel?a.categoryOpt=s.slice(1):a.categoryOpt=s.slice():a.categoryOpt=s.slice(0,1)},ae=()=>{a.categoryPop.display="none"},M=oe=>{var pe,de;if(a.dialogTitle=oe.title,a.previewImgUrl="",a.ruleForm={pid:oe.type==="add"?((pe=a.categoryPop)==null?void 0:pe.id)||0:((de=a.categoryPop)==null?void 0:de.pid)||0,id:a.categoryPop.id||"",name:oe.type==="add"?"":a.categoryPop.name,type:oe.type},oe.type==="delete")return lt.ElMessageBox.confirm(Pe(o.deleteText),{confirmButtonText:Pe("确定"),cancelButtonText:Pe("取消"),type:"warning"}).then(()=>{V()}).catch(()=>{lt.ElMessage.info(Pe("取消操作"))});a.dialogOtherVisible=!0},j=oe=>{a.ruleForm.pid=oe[oe.length-1]},V=()=>{const{categoryAdd:oe,categoryDelete:pe,categoryEdit:de}=o,ve={add:{api:oe,tips:Pe("请配置分类添加接口")},edit:{api:de,tips:Pe("请配置分类编辑接口")},delete:{api:pe,tips:Pe("请配置分类删除接口")}}[a.ruleForm.type];if(!ve.api)return lt.ElMessage.error(Pe(ve.tips));const _e={pid:a.ruleForm.pid,name:a.ruleForm.name,type:c.value.type};a.ruleForm.type!=="add"&&(_e.id=a.ruleForm.id),r.request({url:ve.api,method:"post",data:_e}).then(()=>{x(),a.dialogOtherVisible=!1})},L=(oe,pe)=>{var de;if(!e.multiple&&((de=v.value)==null?void 0:de.length)===1){if(pe.checked){a.dataList[oe].checked=!a.dataList[oe].checked;return}return lt.ElMessage({showClose:!0,message:Pe("只能选择一张图片"),type:"error",duration:1e3})}a.dataList[oe].checked=!a.dataList[oe].checked},W=(oe,pe,de)=>{},G=async oe=>{if(!o.uploadApi)return lt.ElMessage.error(Pe("请配置上传的路径地址!")),!1;const pe=await vK(oe);let de=!0;Ke.isArray(c.value.fileType)?de=c.value.fileType.includes(pe.ext):de=pe.mime.includes(c.value.fileType),de||lt.ElMessage.error(Pe("文件类型格式不正确"));let Oe=null;c.value.type==="img"?Oe=+o.imgLimitSize:c.value.type==="video"||c.value.type==="audio"?Oe=+o.videoLimitSize:Oe=1024*30;const ve=Oe/1024,_e=oe.size/1024<Oe;return _e||(ve>1?lt.ElMessage.error(`${Pe("上传")}${c.value.label}${Pe("大小不能超过")}${ve}MB!`):lt.ElMessage.error(`${Pe("上传")}${c.value.label}${Pe("大小不能超过")}${Oe}KB!`)),de&&_e},$=(oe,pe)=>{lt.ElMessage.warning(`${Pe("最多上传")}${o.oplpadLimit}${Pe("文件")},${Pe("您选择了")}${oe.length}${Pe("个文件请重新选择")}`)},re=(oe,pe,de)=>{},be=oe=>{const{uploadApi:pe}=o,de=lt.ElLoading.service({lock:!0,text:"Loading",background:"rgba(255, 255, 255)"}),Oe=oe.map(ve=>{const _e=new FormData;return _e.append("name",ve.name),_e.append("type",c.value.type),_e.append(o.categoryKey,a.categoryId),_e.append(o.updateName,ve.raw),r.request({url:pe,method:"post",headers:{"Content-Type":"multipart/form-data"},data:_e})});f7.all(Oe).then(f7.spread((ve,_e)=>{a.uploadProgress=!1,de.close(),B()})).catch(ve=>{de.close(),a.uploadProgress=!1,B()})},Se=(oe,pe)=>{let de=pe.length;a.uploadFileNum=Math.max(de,a.uploadFileNum),setTimeout(()=>{a.uploadFileNum!==de||a.uploadProgress||(a.uploadProgress=!0,be(pe))},10)},ee=()=>{a.dataList=a.dataList.map(oe=>(oe.checked=!1,oe))},we=(oe,pe,de,Oe)=>r.fillUrl&&Ke.isFunction(r.fillUrl)&&oe?r.fillUrl(oe,pe,de,Oe):oe,Ee=()=>{x()},P=oe=>{lt.ElMessage.info(oe.msg)},le=()=>{const{exportApi:oe}=o;if(!oe)return lt.ElMessage.info(Pe("请配置素材分类导出接口"));r.request({url:oe,method:"get",params:{type:c.value.type,sort:"pid",order:"asc"}}).then(pe=>{pe.http_path&&fk(pe.http_path)})},me=()=>{const{mattingKey:oe,idKey:pe,mattingApi:de}=o,Oe=v.value.map(Ue=>Ue[pe]).join(",");if(!de){t("on-matting",Oe);return}let ve={};const _e=lt.ElLoading.service({lock:!0,text:"Loading",background:"rgba(255, 255, 255)"});ve[oe]=Oe,r.request({url:de,method:"post",data:ve}).then(()=>{u.currentPage=1,l.nextTick(()=>{B()}),_e.close(),t("matting-success")}).catch(()=>{_e.close()})},J=oe=>{i.value.handleStart(oe),i.value.submit()};return l.onMounted(()=>{E()}),{pagination:u,appConfig:o,tabList:f,currentTab:c,imageViewerRef:n,previewSrcList:y,defaultProps:m,tabTypeName:h,selectArr:v,showCardListData:p,uploadRef:i,activeOtherTab:d,...l.toRefs(a),t:Pe,handleTabClick:E,handleNodeClick:Q,handleTreeNodeClick:ie,handlePreviewImg:_,handleCloseImgViewer:A,handleDeleteMaterial:g,handleSelectItem:L,handleToggleEdit:k,handleEditName:T,handleSearch:I,handleSelectMaterial:N,handleClickBtn:H,handleUploadSuccess:W,handleBeforeUpload:G,handleExceed:$,handleUploadProgress:re,handleUploadChange:Se,handleSelectAllMaterial:D,handleCurrentChange:F,handleSizeChange:C,handleDownloadMaterial:S,handleMouseleave:ae,handleCategoryOpt:M,submitForm:V,handleCancelSelect:ee,handleCascaderChange:j,handleImgUrl:we,handleFileUploadSuccess:Ee,handleExportMaterialCategory:le,handleFileUploadError:P,handleMattingMaterial:me,handleUploadPaste:J}}}),Vxe={class:"jwt-material-wrapper fv h ex"},Uxe={class:"fv h rel"},Hxe={class:"fx mt10"},qxe={class:"custom-tree-node fxmj w pr10"},Wxe=["onClick"],Kxe={class:"fxm"},Gxe={class:"jwt-material-img-wrapper mt15 w fv"},Jxe=["onClick"],Yxe={class:"image-slot fxmc wh"},Xxe={key:1,controls:"",height:"150",width:"150"},Zxe=["src"],Qxe=["src"],$xe=["src"],e5e=["data"],t5e=["src"],n5e={key:2,class:"fxmc el-image",style:{display:"flex"}},i5e={class:"w",controls:""},r5e=["src"],o5e=["src"],a5e={class:"jwt-material-img-name pt5 material-name"},s5e=["title"],l5e={key:0,class:"ex omit plr5 ml10 material-name"},u5e={class:"pr10"},f5e={key:1,class:"fxmc w"},d5e={key:0,class:"fxr w mt15"},c5e={key:0,autoplay:"",class:"w",controls:""},h5e=["src"],p5e=["src"],g5e=["src"],m5e=["data"],v5e=["src"],y5e={key:1,autoplay:"",controls:""},b5e=["src"],k5e=["src"],w5e=["src"];function _5e(e,t,n,i,r,o){const s=l.resolveComponent("el-tab-pane"),a=l.resolveComponent("el-tabs"),u=l.resolveComponent("el-input"),f=l.resolveComponent("el-button"),d=l.resolveComponent("el-upload"),c=l.resolveComponent("jwt-icon"),h=l.resolveComponent("el-tree"),p=l.resolveComponent("el-col"),m=l.resolveComponent("PasteUpload"),y=l.resolveComponent("el-image"),v=l.resolveComponent("JwtMaterialItemMask"),b=l.resolveComponent("el-checkbox"),g=l.resolveComponent("el-empty"),k=l.resolveComponent("el-pagination"),w=l.resolveComponent("el-row"),T=l.resolveComponent("el-image-viewer"),S=l.resolveComponent("el-cascader"),_=l.resolveComponent("el-form-item"),A=l.resolveComponent("el-form"),D=l.resolveComponent("el-dialog"),x=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock("div",Vxe,[l.createVNode(a,{modelValue:e.activeName,"onUpdate:modelValue":t[0]||(t[0]=B=>e.activeName=B),onTabClick:e.handleTabClick},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.tabList,(B,E)=>(l.openBlock(),l.createBlock(s,{key:E,label:B.label,name:B.name},null,8,["label","name"]))),128))]),_:1},8,["modelValue","onTabClick"]),l.createVNode(w,{class:"jwt-material-content ex",gutter:20},{default:l.withCtx(()=>[l.withDirectives(l.createVNode(p,{class:"jwt-material-left",lg:4,md:6,sm:6,xl:4,xs:8},{default:l.withCtx(()=>[l.createElementVNode("div",Uxe,[l.createVNode(u,{modelValue:e.categoryVal,"onUpdate:modelValue":t[1]||(t[1]=B=>e.categoryVal=B),placeholder:e.t("请输入分类名称")},{suffix:l.withCtx(()=>t[9]||(t[9]=[l.createElementVNode("i",{class:"el-icon el-input__icon"},[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z",fill:"currentColor"})])],-1)])),_:1},8,["modelValue","placeholder"]),l.createElementVNode("div",Hxe,[l.createVNode(d,{accept:"file",action:e.appConfig.importApi,data:{type:e.currentTab.type},name:e.appConfig.updateName,"on-error":e.handleFileUploadError,"on-success":e.handleFileUploadSuccess,"show-file-list":!1,"with-credentials":""},{default:l.withCtx(()=>[l.createVNode(f,{type:"primary",onClick:e.handleClickBtn},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("导入")),1)]),_:1},8,["onClick"])]),_:1},8,["action","data","name","on-error","on-success"]),l.createVNode(f,{class:"ml10",type:"primary",onClick:e.handleExportMaterialCategory},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("导出")),1)]),_:1},8,["onClick"])]),l.createVNode(h,{class:"pt5 rbor tree-class h ex",data:e.treeData,"expand-on-click-node":!1,"highlight-current":"",props:e.defaultProps,onNodeClick:e.handleNodeClick},{default:l.withCtx(({node:B,data:E})=>[l.createElementVNode("div",qxe,[l.createElementVNode("span",null,l.toDisplayString(B.label),1),B.level<=e.appConfig.nodeLevel?(l.openBlock(),l.createBlock(c,{key:0,class:"more-line-opt",icon:"more-line",size:"18",onClick:l.withModifiers(F=>e.handleTreeNodeClick(F,B,E),["stop"])},null,8,["onClick"])):l.createCommentVNode("",!0)])]),_:1},8,["data","props","onNodeClick"]),l.createElementVNode("div",{class:"abs category-add-wrapper",style:l.normalizeStyle({top:e.categoryPop.top,right:"10px",display:e.categoryPop.display}),onMouseleave:t[2]||(t[2]=(...B)=>e.handleMouseleave&&e.handleMouseleave(...B))},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.categoryOpt,(B,E)=>(l.openBlock(),l.createElementBlock("div",{key:E,class:"p10 tc cp category-opt-item",onClick:F=>e.handleCategoryOpt(B)},l.toDisplayString(B.title),9,Wxe))),128))],36)])]),_:1},512),[[l.vShow,!e.activeOtherTab]]),l.createVNode(p,{class:"jwt-material-right",lg:20,md:18,sm:18,xl:20,xs:16},{default:l.withCtx(()=>{var B,E,F,C;return[l.createElementVNode("div",Kxe,[l.createVNode(m,{copy:e.appConfig.showPasteUpload,limit:0,onUploadPaste:e.handleUploadPaste},null,8,["copy","onUploadPaste"]),l.withDirectives(l.createVNode(d,{ref:"uploadRef",accept:e.currentTab.accept,action:e.appConfig.uploadApi,"auto-upload":!1,"before-upload":e.handleBeforeUpload,limit:+e.appConfig.oplpadLimit,multiple:"",name:e.appConfig.updateName,"on-change":e.handleUploadChange,"on-exceed":e.handleExceed,"on-progress":e.handleUploadProgress,"on-success":e.handleUploadSuccess,"show-file-list":!1,"with-credentials":""},{default:l.withCtx(()=>[l.createVNode(f,{type:"primary",onClick:e.handleClickBtn},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("上传"))+l.toDisplayString(e.tabTypeName),1)]),_:1},8,["onClick"])]),_:1},8,["accept","action","before-upload","limit","name","on-change","on-exceed","on-progress","on-success"]),[[l.vShow,!e.activeOtherTab]]),e.appConfig.isSelectAll?(l.openBlock(),l.createBlock(f,{key:0,class:"ml10",type:"primary",onClick:e.handleSelectAllMaterial},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("全选"))+l.toDisplayString(e.tabTypeName),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),e.used?(l.openBlock(),l.createBlock(f,{key:1,class:"ml10",disabled:!((B=e.selectArr)!=null&&B.length),type:"primary",onClick:e.handleSelectMaterial},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("使用选中"))+l.toDisplayString(e.tabTypeName),1)]),_:1},8,["disabled","onClick"])):l.createCommentVNode("",!0),l.withDirectives(l.createVNode(f,{class:"ml10",disabled:!((E=e.selectArr)!=null&&E.length),type:"danger",onClick:t[3]||(t[3]=I=>e.handleDeleteMaterial(0,{},"batch"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("删除"))+l.toDisplayString(e.tabTypeName),1)]),_:1},8,["disabled"]),[[l.vShow,!e.activeOtherTab]]),e.activeName===1&&e.appConfig.mattingApi?(l.openBlock(),l.createBlock(f,{key:2,class:"ml10",disabled:!((F=e.selectArr)!=null&&F.length),type:"primary",onClick:e.handleMattingMaterial},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("一键抠图")),1)]),_:1},8,["disabled","onClick"])):l.createCommentVNode("",!0),l.createVNode(u,{modelValue:e.searchVal,"onUpdate:modelValue":t[4]||(t[4]=I=>e.searchVal=I),class:"ml10 w200",placeholder:e.t("请输入关键词"),onKeydown:l.withKeys(e.handleSearch,["enter"])},{suffix:l.withCtx(()=>t[10]||(t[10]=[l.createElementVNode("i",{class:"el-icon el-input__icon"},[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z",fill:"currentColor"})])],-1)])),_:1},8,["modelValue","placeholder","onKeydown"])]),l.createElementVNode("div",Gxe,[l.createElementVNode("div",{class:l.normalizeClass(["ex oy jwt-material-img-content",[e.showCardListData?"fx fxwp":""]])},[(C=e.dataList)!=null&&C.length?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(e.dataList,(I,N)=>(l.openBlock(),l.createElementBlock("div",{key:N,class:l.normalizeClass([e.showCardListData?"jwt-material-img-item":"w"])},[e.showCardListData?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("div",{class:"rel img-item-wrapper",onClick:H=>e.handleSelectItem(N,I)},[e.currentTab.type==="img"?(l.openBlock(),l.createBlock(y,{key:0,fit:"scale-down",src:e.handleImgUrl(I.url)},{error:l.withCtx(()=>[l.createElementVNode("div",Yxe,[l.createVNode(c,{icon:"image-2-line",size:"30"})])]),_:2},1032,["src"])):e.currentTab.type==="video"?(l.openBlock(),l.createElementBlock("video",Xxe,[l.createElementVNode("source",{src:I.url,type:"video/ogg"},null,8,Zxe),l.createElementVNode("source",{src:I.url,type:"video/mp4"},null,8,Qxe),l.createElementVNode("source",{src:I.url,type:"video/webm"},null,8,$xe),l.createElementVNode("object",{data:I.url,height:"150",width:"150"},[l.createElementVNode("embed",{height:"150",src:I.url,width:"150"},null,8,t5e)],8,e5e)])):e.currentTab.type==="audio"?(l.openBlock(),l.createElementBlock("div",n5e,[l.createElementVNode("audio",i5e,[l.createElementVNode("source",{src:I.url,type:"audio/ogg"},null,8,r5e),l.createElementVNode("source",{src:I.url,type:"audio/mpeg"},null,8,o5e),t[11]||(t[11]=l.createTextVNode(" 您的浏览器不支持 audio 元素。 "))])])):l.createCommentVNode("",!0),I.url?(l.openBlock(),l.createBlock(v,{key:3,index:N,item:I,"show-delete":e.appConfig.isDelete,"show-edit":e.appConfig.isEdite,onDelete:e.handleDeleteMaterial,onPreviewImg:e.handlePreviewImg,onToggleEdit:e.handleToggleEdit},null,8,["index","item","show-delete","show-edit","onDelete","onPreviewImg","onToggleEdit"])):l.createCommentVNode("",!0)],8,Jxe),l.createElementVNode("div",a5e,[I.isEdite?(l.openBlock(),l.createBlock(u,{key:1,modelValue:I.name,"onUpdate:modelValue":H=>I.name=H,size:"small",onBlur:H=>e.handleEditName(H,N),onKeydown:l.withKeys(H=>e.handleEditName(H,N),["enter"])},null,8,["modelValue","onUpdate:modelValue","onBlur","onKeydown"])):(l.openBlock(),l.createElementBlock("p",{key:0,class:"tc omit",title:I.name},l.toDisplayString(I.name),9,s5e))])],64)):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["fs16 fxmj w ptb8 material-list-item bbor",[N?"bbor":""]])},[l.createVNode(b,{modelValue:I.checked,"onUpdate:modelValue":H=>I.checked=H,size:"large"},null,8,["modelValue","onUpdate:modelValue"]),l.createVNode(c,{class:l.normalizeClass(["ml10",I.cls]),icon:I.icon,size:24},null,8,["class","icon"]),I.isEdite?(l.openBlock(),l.createBlock(u,{key:1,modelValue:I.name,"onUpdate:modelValue":H=>I.name=H,class:"ex ml10",onBlur:H=>e.handleEditName(H,N),onKeydown:l.withKeys(H=>e.handleEditName(H,N),["enter"])},null,8,["modelValue","onUpdate:modelValue","onBlur","onKeydown"])):(l.openBlock(),l.createElementBlock("div",l5e,l.toDisplayString(I.name),1)),l.createElementVNode("div",u5e,[e.appConfig.isEdite?(l.openBlock(),l.createBlock(f,{key:0,link:"",type:I.isEdite?"success":"primary",onClick:l.withModifiers(H=>e.handleToggleEdit(N,I),["stop"])},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(I.isEdite?e.t("完成"):e.t("编辑")),1)]),_:2},1032,["type","onClick"])):l.createCommentVNode("",!0),e.appConfig.isDelete?(l.openBlock(),l.createBlock(f,{key:1,link:"",type:"danger",onClick:l.withModifiers(H=>e.handleDeleteMaterial(N,I),["stop"])},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("删除")),1)]),_:2},1032,["onClick"])):l.createCommentVNode("",!0),l.createVNode(f,{link:"",type:"primary",onClick:l.withModifiers(H=>e.handleDownloadMaterial(N),["stop"])},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("下载")),1)]),_:2},1032,["onClick"]),l.createVNode(f,{link:"",type:"primary",onClick:l.withModifiers(H=>e.handlePreviewImg(N),["stop"])},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("查看")),1)]),_:2},1032,["onClick"])])],2))],2))),128)):(l.openBlock(),l.createElementBlock("div",f5e,[l.createVNode(g,{description:e.t("暂无数据")},null,8,["description"])]))],2),e.appConfig.showPagination?(l.openBlock(),l.createElementBlock("div",d5e,[l.createVNode(k,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,layout:e.appConfig.pagination.layout,"page-size":e.pagination.pageSize,"page-sizes":e.appConfig.pagination["page-sizes"],total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange},null,8,["current-page","disabled","layout","page-size","page-sizes","total","onCurrentChange","onSizeChange"])])):l.createCommentVNode("",!0)])]}),_:1})]),_:1}),e.dialogPreviewVisible?(l.openBlock(),l.createBlock(T,{key:0,ref:"imageViewerRef","initial-index":e.previewImgIndex,"url-list":e.previewSrcList,"z-index":9999,onClose:e.handleCloseImgViewer},null,8,["initial-index","url-list","onClose"])):l.createCommentVNode("",!0),l.createVNode(D,{modelValue:e.dialogOtherVisible,"onUpdate:modelValue":t[8]||(t[8]=B=>e.dialogOtherVisible=B),"append-to-body":"",center:"","destroy-on-close":"",fullscreen:e.currentTab.type==="file","lock-scroll":"",title:e.dialogTitle,width:"50%"},{default:l.withCtx(()=>[l.withDirectives((l.openBlock(),l.createElementBlock("div",{class:"fxmc w",style:l.normalizeStyle({height:e.currentTab.type==="file"&&e.previewImgUrl?"88vh":""})},[e.previewImgUrl?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[e.currentTab.type==="video"?(l.openBlock(),l.createElementBlock("video",c5e,[l.createElementVNode("source",{src:e.previewImgUrl,type:"video/ogg"},null,8,h5e),l.createElementVNode("source",{src:e.previewImgUrl,type:"video/mp4"},null,8,p5e),l.createElementVNode("source",{src:e.previewImgUrl,type:"video/webm"},null,8,g5e),l.createElementVNode("object",{data:e.previewImgUrl},[l.createElementVNode("embed",{src:e.previewImgUrl},null,8,v5e)],8,m5e)])):e.currentTab.type==="audio"?(l.openBlock(),l.createElementBlock("audio",y5e,[l.createElementVNode("source",{src:e.previewImgUrl,type:"audio/ogg"},null,8,b5e),l.createElementVNode("source",{src:e.previewImgUrl,type:"audio/mpeg"},null,8,k5e),t[12]||(t[12]=l.createTextVNode(" 您的浏览器不支持 audio 元素。 "))])):e.currentTab.type==="file"?(l.openBlock(),l.createElementBlock("iframe",{key:2,class:"w",frameborder:"0",height:"100%",src:e.previewImgUrl},null,8,w5e)):l.createCommentVNode("",!0)],64)):(l.openBlock(),l.createBlock(A,{key:1,ref:"ruleFormRef",class:"w","label-width":"120px",model:e.ruleForm,rules:e.rules},{default:l.withCtx(()=>[l.createVNode(_,{label:e.t("上级分类"),prop:"pid"},{default:l.withCtx(()=>[l.createVNode(S,{modelValue:e.ruleForm.pid,"onUpdate:modelValue":t[5]||(t[5]=B=>e.ruleForm.pid=B),clearable:"",options:e.selectTreeData,props:e.defaultProps,onChange:e.handleCascaderChange},null,8,["modelValue","options","props","onChange"])]),_:1},8,["label"]),l.createVNode(_,{label:e.t("分类名称"),prop:"name"},{default:l.withCtx(()=>[l.createVNode(u,{modelValue:e.ruleForm.name,"onUpdate:modelValue":t[6]||(t[6]=B=>e.ruleForm.name=B),class:"w200"},null,8,["modelValue"])]),_:1},8,["label"]),l.createVNode(_,null,{default:l.withCtx(()=>[l.createVNode(f,{type:"primary",onClick:e.submitForm},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("确定")),1)]),_:1},8,["onClick"]),l.createVNode(f,{onClick:t[7]||(t[7]=B=>e.dialogOtherVisible=!1)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("取消")),1)]),_:1})]),_:1})]),_:1},8,["model","rules"]))],4)),[[x,e.loading]])]),_:1},8,["modelValue","fullscreen","title"])])}const C5e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(zxe,[["render",_5e],["__scopeId","data-v-22b96632"]])},Symbol.toStringTag,{value:"Module"})),S5e=["innerHTML"],x5e=l.defineComponent({name:"JwtPrefixSuffix"}),E5e=l.defineComponent({...x5e,props:{item:{type:Object,default:()=>{}},row:{type:Object,default:()=>{}},type:{type:String,default:"pre"}},setup(e){const t=e,n=l.computed(()=>{var u;return((u=t.item)==null?void 0:u[`${t.type}Unit`])||""}),i=l.computed(()=>{var f;return((f=t.item)==null?void 0:f[`${t.type}UnitCls`])||""||(t.type==="pre"?"mr2":"ml2")}),r=l.computed(()=>{var u;return((u=t.item)==null?void 0:u[`${t.type}UnitFun`])||""}),o=l.computed(()=>r.value?t.type==="pre"?t.item.preUnitFun(t.row,t.item):t.item.sufUnitFun(t.row,t.item):""),s=l.computed(()=>{var f,d,c;const u=((f=t.item)==null?void 0:f[`${t.type}Icon`])||"";return Ke.isFunction(u)?t.type==="pre"?(d=t.item)==null?void 0:d.preIcon(t.row,t.item):(c=t.item)==null?void 0:c.sufIcon(t.row,t.item):u}),a=l.computed(()=>{var f,d,c;const u=((f=t.item)==null?void 0:f[`${t.type}IconTip`])||"";return Ke.isFunction(u)?t.type==="pre"?(d=t.item)==null?void 0:d.preIconTip(t.row,t.item):(c=t.item)==null?void 0:c.sufIconTip(t.row,t.item):u});return(u,f)=>{const d=l.resolveComponent("jwt-icon"),c=l.resolveComponent("el-tooltip");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.type==="pre"&&a.value?(l.openBlock(),l.createBlock(c,{key:0,content:a.value,effect:"dark",placement:"top",persistent:!1},{default:l.withCtx(()=>[l.createVNode(d,{class:"mr2 cp",icon:s.value,size:"16"},null,8,["icon"])]),_:1},8,["content"])):l.createCommentVNode("",!0),r.value&&o.value?(l.openBlock(),l.createElementBlock("span",{key:1,class:l.normalizeClass(i.value),innerHTML:o.value},null,10,S5e)):n.value?(l.openBlock(),l.createElementBlock("span",{key:2,class:l.normalizeClass(i.value)},l.toDisplayString(n.value),3)):l.createCommentVNode("",!0),e.type==="suf"&&a.value?(l.openBlock(),l.createBlock(c,{key:3,content:a.value,effect:"dark",placement:"top",persistent:!1},{default:l.withCtx(()=>[l.createVNode(d,{class:"ml2 cp",icon:s.value,size:"16"},null,8,["icon"])]),_:1},8,["content"])):l.createCommentVNode("",!0)],64)}}}),B5e=Object.freeze(Object.defineProperty({__proto__:null,default:E5e},Symbol.toStringTag,{value:"Module"})),D5e=l.defineComponent({name:"JwtRateIcon",props:{modelValue:{type:[Number,String],default:0},size:{type:[Number,String],default:18},disabled:{type:Boolean,default:!1},voidIcon:{type:String,default:"star-line"},icon:{type:String,default:"star-fill"},color:{type:String,default:"#f7ba2a"},voidColor:{type:String,default:"#c6d1de"},max:{type:[Number,String],default:5}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=l.computed(()=>Math.min(+e.max,10)),i=l.reactive({activeIndex:e.modelValue,hoverIndex:e.modelValue});l.watchEffect(()=>{i.activeIndex=e.modelValue,i.hoverIndex=e.modelValue});const r=u=>{e.disabled||(i.hoverIndex=u+1)},o=()=>{e.disabled||(i.hoverIndex=i.activeIndex)},s=u=>{if(!e.disabled){if(i.activeIndex===u+1){a();return}i.activeIndex=u+1,i.hoverIndex=u+1,t("update:modelValue",u+1),t("change",u+1)}},a=()=>{e.disabled||(i.activeIndex=0,i.hoverIndex=0,t("update:modelValue",0),t("change",0))};return{...l.toRefs(i),maxLenIcon:n,handleMouseenter:r,handleMouseleave:o,handleChange:s,handleDblclick:a}}}),A5e={class:"base-rate-icon"};function T5e(e,t,n,i,r,o){const s=l.resolveComponent("jwt-icon");return l.openBlock(),l.createElementBlock("div",A5e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.maxLenIcon,(a,u)=>(l.openBlock(),l.createBlock(s,{key:u,class:l.normalizeClass(["mr5",[e.disabled?"cpna":"cp"]]),icon:+e.hoverIndex>u?e.icon:e.voidIcon,style:l.normalizeStyle({fontSize:e.size+"px",color:+e.hoverIndex>u?e.color:e.voidColor}),onClick:l.withModifiers(f=>e.handleChange(u),["stop"]),onDblclick:e.handleDblclick,onMouseenter:f=>e.handleMouseenter(u),onMouseleave:e.handleMouseleave},null,8,["class","icon","style","onClick","onDblclick","onMouseenter","onMouseleave"]))),128))])}const O5e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(D5e,[["render",T5e]])},Symbol.toStringTag,{value:"Module"})),F5e=l.defineComponent({name:"JwtSelectServer",components:{},props:{listApi:{type:String,default:""},addApi:{type:String,default:""},cptKey:{type:String,default:""},searchKey:{type:String,default:"title"},exLabelKey:{type:String,default:""},labelKey:{type:String,default:"title"},placeholder:{type:String,default:""},valueKey:{type:String,default:"id"},valueType:{type:String,default:"number"},avatarKey:{type:String,default:""},exParams:{type:Object,default:()=>{}},modelValue:{type:[String,Number,Array],default:""},modelValueName:{type:[String,Number,Array],default:""},sourceData:{type:Object,default:()=>{}},modelValueKey:{type:String,default:""},searchValueKey:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},showAdd:{type:Boolean,default:!1},alwaysAdd:{type:Boolean,default:!1},autoAdd:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},addParams:{type:Object,default:()=>{}},focusFetch:{type:Boolean,default:!1}},emits:["update:modelValue","change","select","add-option","add-success"],setup(e,{emit:t}){const n=l.ref(null),i=Nn(),r=l.useAttrs();let o=[],s=null,a=null,u=null,f=null;const d=50,c=l.reactive({content:"",listData:[],searchVal:"",timer:null,fetched:!1,persistent:!1,remoteLoad:!0,dynamicParams:{}}),h=l.computed(()=>r.disabledFun&&Ke.isFunction(r.disabledFun)?r.disabledFun(e.sourceData):e.disabled),p=l.computed({get:()=>{var C,I;return e.multiple?Ke.isArray(e.modelValue)?e.modelValue:e.modelValue?(I=(C=e.modelValue)==null?void 0:C.split(","))==null?void 0:I.map(N=>(e==null?void 0:e.valueType)==="number"?Number(N):N):[]:e.modelValue},set:C=>{t("update:modelValue",C)}}),m=()=>{const{modelValueName:C,labelKey:I,valueKey:N,multiple:H,valueType:Q,modelValueKey:ie,modelValue:ae}=e;let M=[];if(C){let j="";return H?(Ke.isArray(C)?j=C:j=C.split(","),M=p.value.map((V,L)=>({[I]:j[L],[N]:Q==="number"?+V:V}))):M=[{[I]:C,[N]:Q==="number"?+p.value:p.value}],M}else if(ie){const j=rr(ie,e.sourceData);return e.sourceData&&j&&(Ke.isArray(j)?M=v(j):Ke.isObject(j)?M=v([j]):M=[{[I]:j,[N]:ae}],M=M==null?void 0:M.map(V=>({...V,[I]:V[I],[N]:Q==="number"?+V[N]:V[N]}))),M}else{let j=[];return e!=null&&e.modelValue&&(!H||e!=null&&e.modelValue.length)?j=y(!0):j=y(!0,"","",!!r.defaultSelect),j!=null&&j.length?j:[]}},y=(C=!1,I="",N="",H=!0)=>{var W;const{listApi:Q,searchKey:ie,valueKey:ae,searchValueKey:M,multiple:j}=e;if(!Q)return c.listData=(e==null?void 0:e.options)||[],c.fetched=!0,(e==null?void 0:e.options)||[];let V=Q;if(Ke.isFunction(Q)&&(V=Q(e.sourceData)),!H)return[];let L={sort:"id",order:"desc",per_page:d,...e.exParams,...c.dynamicParams};if(r.exParamsFun&&Ke.isFunction(r.exParamsFun)){const G=r.exParamsFun(e.sourceData);L={...L,...G}}L[ie]=c.searchVal,N&&(L[N]=I),C&&M&&(L[ae]=p.value||""),C&&(L.union_id=j?(W=p==null?void 0:p.value)==null?void 0:W.join(","):e==null?void 0:e.modelValue),i.request({url:V,method:"get",params:L}).then(G=>{const $=r!=null&&r.noPaging?G:G.data;C&&!(r!=null&&r.noPaging)&&G!=null&&G.total&&(G==null?void 0:G.total)<d&&(c.remoteLoad=!1),b($,N,C)})},v=(C=[],I=!1)=>{const{labelKey:N,exLabelKey:H,valueKey:Q,multiple:ie}=e;let ae=C;const M=I?Ke.cloneDeep(o):[];return H||r!=null&&r.exLabelKeyFun?ae=C.map(j=>{const V=H?j[H]:r.exLabelKeyFun(j);return j[N]=V,j}):r!=null&&r.handleDataFun&&(ae=r.handleDataFun(C)),I&&ie&&(ae.forEach(j=>{var L;((L=p==null?void 0:p.value)==null?void 0:L.includes(j[Q]))&&M.forEach((W,G,$)=>{W[Q]===j[Q]&&$.splice(G,1)})}),M.length&&ae.push(...M)),ae},b=(C,I="",N=!1)=>{const{valueKey:H,addApi:Q}=e,ie=v(C,!0);if(Q?c.listData.splice(0,c.listData.length,...ie):c.listData=Object.freeze(ie.map(ae=>Object.freeze(ae))),c.fetched=!0,c.persistent=!0,I&&(s&&clearTimeout(s),s=setTimeout(()=>{p.value=null},150)),N&&r.defaultSelect&&C.length){if(p.value)return;const ae=C[0][H];p.value=ae,l.nextTick(()=>{g(ae)})}},g=C=>{if(t("change",C),(C||C===0)&&r.emitSelect){let I=null;const{valueKey:N,multiple:H}=e;H?(I=[],c.listData.map(Q=>{C.includes(Q[N])&&I.push(Q)}),o=I):I=c.listData.find(Q=>Q[N]===C),a&&clearTimeout(a),a=setTimeout(()=>{t("select",I)},10)}},k=C=>{const{listApi:I,labelKey:N}=e;if(C){if(!I){c.listData=e.options.filter(H=>H[N].includes(C));return}clearTimeout(c.timer),c.timer=setTimeout(()=>{y()},300)}else if(!I){c.listData=e.options;return}c.searchVal=C},w=()=>{t("add-option"),c.fetched=!1,n.value.blur()},T=()=>{const{labelKey:C,valueKey:I,multiple:N,addApi:H,addParams:Q}=e;if(!c.searchVal)return lt.ElMessage.error(Pe("请输入内容"));H&&i.request({url:H,method:"post",data:{[C]:c.searchVal,...Q}}).then(ie=>{t("add-success",ie);const ae=Ke.isFunction(r==null?void 0:r.handleAddSuccess)?r==null?void 0:r.handleAddSuccess(ie):ie[I];c.listData.unshift({[C]:c.searchVal,[I]:ae}),N?p.value.push(ae):p.value=ae,l.nextTick(()=>{n.value.blur()}),u&&clearTimeout(u),r.addRefresh&&(c.searchVal="",y()),u=setTimeout(()=>{n.value.blur()},100)})},S=()=>{o=m()||[],o.length&&(c.persistent=!0),c.listData=o},_=C=>{c.dynamicParams=C},A=()=>{var C,I;c.persistent=!0,(((C=p.value)==null?void 0:C.length)===0&&((I=c.listData)==null?void 0:I.length)===0||!c.fetched||e.focusFetch)&&y(!0)},D=()=>{c.persistent=!1},x=C=>{if(i.fillUrl)return i.fillUrl(C)};l.onMounted(()=>{f=setTimeout(()=>{S()},300)});const B=l.watch(()=>e.modelValueName,C=>{l.nextTick(()=>{C!=null&&C.isTrusted||C&&S()})},{immediate:!0}),E=l.watch(()=>e.sourceData,C=>{l.nextTick(()=>{e.modelValueKey&&C&&Ke.isObject(C)&&!Ke.isEmpty(C)&&S()})}),F=(C=[])=>{b(C)};return l.onBeforeUnmount(()=>{c.listData=[],c.persistent=!1,clearTimeout(c.timer),E(),B(),s&&clearTimeout(s),a&&clearTimeout(a),u&&clearTimeout(u),f&&clearTimeout(f)}),{JwtSelectServerRef:n,selectModel:p,attrs:r,selectDisabled:h,t:Pe,...l.toRefs(c),handleSelectChange:g,remoteMethod:k,getDataList:y,handleAddDialog:w,handleSelectFocus:A,handleSelectBlur:D,handleAddOption:T,hanldeSetListData:F,handleSetDynamicParams:_,fillUrlFun:x}}}),P5e={class:"rel"},j5e={key:0,class:"fxmc p10 bbor sti bcf"},I5e={key:1,class:"fxmc p10 bbor sti bcf"},R5e={key:0,class:"fxm ptb10"},N5e=["innerHTML"],M5e={key:1,class:"ml10"},L5e={class:"fxmc fv ptb15"},z5e={class:"ptb30 fxmc"},V5e={class:"fxmc p10 tbor"};function U5e(e,t,n,i,r,o){const s=l.resolveComponent("el-input"),a=l.resolveComponent("el-button"),u=l.resolveComponent("el-image"),f=l.resolveComponent("el-option"),d=l.resolveComponent("el-text"),c=l.resolveComponent("el-select");return l.openBlock(),l.createBlock(c,{ref:"JwtSelectServerRef",modelValue:e.selectModel,"onUpdate:modelValue":t[3]||(t[3]=h=>e.selectModel=h),clearable:"",disabled:e.selectDisabled,filterable:"",multiple:e.multiple,persistent:e.persistent,placeholder:e.placeholder,remote:e.remoteLoad,"remote-method":e.remoteMethod,"remote-show-suffix":"",onBlur:e.handleSelectBlur,onChange:e.handleSelectChange,onClear:e.getDataList,onFocus:e.handleSelectFocus},l.createSlots({default:l.withCtx(()=>[l.createElementVNode("div",P5e,[e.autoAdd?(l.openBlock(),l.createElementBlock("div",j5e,[l.createVNode(s,{modelValue:e.searchVal,"onUpdate:modelValue":t[0]||(t[0]=h=>e.searchVal=h),placeholder:e.t("立即新增")},null,8,["modelValue","placeholder"]),l.createVNode(a,{class:"ml5",type:"primary",onClick:e.handleAddOption},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("新增")),1)]),_:1},8,["onClick"])])):e.alwaysAdd?(l.openBlock(),l.createElementBlock("div",I5e,[l.createVNode(a,{class:"w",link:"",type:"primary",onClick:e.handleAddDialog},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("立即新增")),1)]),_:1},8,["onClick"])])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"default",{list:e.listData},()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.listData,h=>(l.openBlock(),l.createBlock(f,{key:h[e.valueKey],class:l.normalizeClass({"avatar-logo":e.avatarKey}),label:h[e.labelKey],value:h[e.valueKey]},{default:l.withCtx(()=>{var p;return[e.avatarKey?(l.openBlock(),l.createElementBlock("div",R5e,[l.createVNode(u,{class:l.normalizeClass([(p=e.attrs)!=null&&p.avatarCls?e.attrs.avatarCls:"w40 r100px"]),"preview-src-list":[e.fillUrlFun(h[e.avatarKey])],"preview-teleported":"",src:e.fillUrlFun(h[e.avatarKey])},null,8,["class","preview-src-list","src"]),e.attrs.showHtml?(l.openBlock(),l.createElementBlock("div",{key:0,class:"ml10",innerHTML:h[e.labelKey]},null,8,N5e)):(l.openBlock(),l.createElementBlock("span",M5e,l.toDisplayString(h[e.labelKey]),1))])):l.createCommentVNode("",!0)]}),_:2},1032,["class","label","value"]))),128))],!0)])]),_:2},[e.showAdd||e.alwaysAdd?{name:"empty",fn:l.withCtx(()=>[l.createElementVNode("div",L5e,[l.createElementVNode("div",null,[l.createVNode(d,{type:"info"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("暂无数据"))+"~",1)]),_:1})]),l.createElementVNode("div",{class:"mt10 cp",onClick:t[1]||(t[1]=(...h)=>e.handleAddDialog&&e.handleAddDialog(...h))},[l.createVNode(d,{type:"primary"},{default:l.withCtx(()=>[t[4]||(t[4]=l.createElementVNode("i",{class:"el-icon","data-v-ea893728":""},[l.createElementVNode("svg",{"data-v-ea893728":"",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z",fill:"currentColor"})])],-1)),l.createElementVNode("span",null,l.toDisplayString(e.t("立即新增")),1)]),_:1})])])]),key:"0"}:e.autoAdd?{name:"empty",fn:l.withCtx(()=>[l.createElementVNode("div",null,[l.createElementVNode("div",z5e,[l.createVNode(d,{type:"info"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("暂无数据"))+"~",1)]),_:1})]),l.createElementVNode("div",V5e,[l.createVNode(s,{modelValue:e.searchVal,"onUpdate:modelValue":t[2]||(t[2]=h=>e.searchVal=h),placeholder:e.t("立即新增")},null,8,["modelValue","placeholder"]),l.createVNode(a,{class:"ml5",type:"primary",onClick:e.handleAddOption},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("新增")),1)]),_:1},8,["onClick"])])])]),key:"1"}:void 0]),1032,["modelValue","disabled","multiple","persistent","placeholder","remote","remote-method","onBlur","onChange","onClear","onFocus"])}const H5e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(F5e,[["render",U5e],["__scopeId","data-v-dd5288e7"]])},Symbol.toStringTag,{value:"Module"})),Ob={__name:"tableColumnHeader",props:{item:{type:Object,default:()=>{}},tableData:{type:Array,default:()=>[]}},emits:["fixed","select"],setup(e,{emit:t}){const n=l.ref(!1),i=l.ref(!1),r=e,o=t;l.watchEffect(()=>{var u,f,d;if(r.item.type==="selection"){const c=((u=r==null?void 0:r.tableData)==null?void 0:u.length)&&((f=r==null?void 0:r.tableData)==null?void 0:f.every(p=>p.selectionChecked)),h=(d=r==null?void 0:r.tableData)==null?void 0:d.some(p=>p.selectionChecked);n.value=c,i.value=h&&!c}});function s(){o("fixed",r.item)}function a(u){o("select",u)}return(u,f)=>{var p,m,y,v,b;const d=l.resolveComponent("el-checkbox"),c=l.resolveComponent("jwt-icon"),h=l.resolveComponent("el-tooltip");return l.openBlock(),l.createElementBlock(l.Fragment,null,[((p=e.item)==null?void 0:p.type)==="selection"?(l.openBlock(),l.createBlock(d,{key:0,modelValue:n.value,"onUpdate:modelValue":f[0]||(f[0]=g=>n.value=g),indeterminate:i.value,onChange:a},null,8,["modelValue","indeterminate"])):(m=e.item)!=null&&m.isControl?(l.openBlock(),l.createBlock(c,{key:1,class:l.normalizeClass(e.item.fixed?"":"header-fixed-icon"),icon:"lock-line",onClick:l.withModifiers(s,["stop"])},null,8,["class"])):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString((y=e.item)==null?void 0:y.label),1),(v=e.item)!=null&&v.tips?(l.openBlock(),l.createBlock(h,{key:2,content:(b=e.item)==null?void 0:b.tips,persistent:!1,placement:"right"},{default:l.withCtx(()=>{var g;return[l.createVNode(c,{class:"ml4",icon:((g=e.item)==null?void 0:g.icon)||"information-line"},null,8,["icon"])]}),_:1},8,["content"])):l.createCommentVNode("",!0)],64)}}},q5e=Object.freeze(Object.defineProperty({__proto__:null,default:Ob},Symbol.toStringTag,{value:"Module"}));var W5e=Object.defineProperty,Fb=Object.getOwnPropertySymbols,RK=Object.prototype.hasOwnProperty,NK=Object.prototype.propertyIsEnumerable,MK=(e,t,n)=>t in e?W5e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zd=(e,t)=>{for(var n in t||(t={}))RK.call(t,n)&&MK(e,n,t[n]);if(Fb)for(var n of Fb(t))NK.call(t,n)&&MK(e,n,t[n]);return e},LK=(e,t)=>{var n={};for(var i in e)RK.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Fb)for(var i of Fb(e))t.indexOf(i)<0&&NK.call(e,i)&&(n[i]=e[i]);return n};const aBe="[vue-draggable-plus]: ";function sBe(e){}function lBe(e){}function zK(e,t,n){return n>=0&&n<e.length&&e.splice(n,0,e.splice(t,1)[0]),e}function K5e(e){return e.replace(/-(\w)/g,(t,n)=>n?n.toUpperCase():"")}function G5e(e){return Object.keys(e).reduce((t,n)=>(typeof e[n]<"u"&&(t[K5e(n)]=e[n]),t),{})}function VK(e,t){return Array.isArray(e)&&e.splice(t,1),e}function UK(e,t,n){return Array.isArray(e)&&e.splice(t,0,n),e}function J5e(e){return typeof e>"u"}function Y5e(e){return typeof e=="string"}function HK(e,t,n){const i=e.children[n];e.insertBefore(t,i)}function DE(e){e.parentNode&&e.parentNode.removeChild(e)}function X5e(e,t=document){var n;let i=null;return typeof(t==null?void 0:t.querySelector)=="function"?i=(n=t==null?void 0:t.querySelector)==null?void 0:n.call(t,e):i=document.querySelector(e),i||(`${e}`,void 0),i}function Z5e(e,t,n=null){return function(...i){return e.apply(n,i),t.apply(n,i)}}function Q5e(e,t){const n=Zd({},e);return Object.keys(t).forEach(i=>{n[i]?n[i]=Z5e(e[i],t[i]):n[i]=t[i]}),n}function $5e(e){return e instanceof HTMLElement}function qK(e,t){Object.keys(e).forEach(n=>{t(n,e[n])})}function e8e(e){return e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)}const t8e=Object.assign;/**!
213
+ \0`,L+=o(M,2),L+=S.magic,L+=o(k,2),L+=o(w,2),L+=o(ae.crc32,4),L+=o(ae.compressedSize,4),L+=o(ae.uncompressedSize,4),L+=o(A.length,2),L+=o(I.length,2),{fileRecord:c.LOCAL_FILE_HEADER+L+A+I,dirRecord:c.CENTRAL_FILE_HEADER+o(V,2)+L+o(B.length,2)+"\0\0\0\0"+o(j,4)+o(v,4)+A+I+B}}var a=n("../utils"),u=n("../stream/GenericWorker"),f=n("../utf8"),d=n("../crc32"),c=n("../signature");function h(p,m,y,v){u.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=m,this.zipPlatform=y,this.encodeFileName=v,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(h,u),h.prototype.push=function(p){var m=p.meta.percent||0,y=this.entriesCount,v=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,u.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:y?(m+100*(y-v-1))/y:100}}))},h.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var m=this.streamFiles&&!p.file.dir;if(m){var y=s(p,m,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:y.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(p){this.accumulate=!1;var m=this.streamFiles&&!p.file.dir,y=s(p,m,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(y.dirRecord),m)this.push({data:function(v){return c.DATA_DESCRIPTOR+o(v.crc32,4)+o(v.compressedSize,4)+o(v.uncompressedSize,4)}(p),meta:{percent:100}});else for(this.push({data:y.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var p=this.bytesWritten,m=0;m<this.dirRecords.length;m++)this.push({data:this.dirRecords[m],meta:{percent:100}});var y=this.bytesWritten-p,v=function(b,g,k,w,T){var S=a.transformTo("string",T(w));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+o(b,2)+o(b,2)+o(g,4)+o(k,4)+o(S.length,2)+S}(this.dirRecords.length,y,p,this.zipComment,this.encodeFileName);this.push({data:v,meta:{percent:100}})},h.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},h.prototype.registerPrevious=function(p){this._sources.push(p);var m=this;return p.on("data",function(y){m.processChunk(y)}),p.on("end",function(){m.closedSource(m.previous.streamInfo),m._sources.length?m.prepareNextSource():m.end()}),p.on("error",function(y){m.error(y)}),this},h.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},h.prototype.error=function(p){var m=this._sources;if(!u.prototype.error.call(this,p))return!1;for(var y=0;y<m.length;y++)try{m[y].error(p)}catch{}return!0},h.prototype.lock=function(){u.prototype.lock.call(this);for(var p=this._sources,m=0;m<p.length;m++)p[m].lock()},i.exports=h},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,i,r){var o=n("../compressions"),s=n("./ZipFileWorker");r.generateWorker=function(a,u,f){var d=new s(u.streamFiles,f,u.platform,u.encodeFileName),c=0;try{a.forEach(function(h,p){c++;var m=function(g,k){var w=g||k,T=o[w];if(!T)throw new Error(w+" is not a valid compression method !");return T}(p.options.compression,u.compression),y=p.options.compressionOptions||u.compressionOptions||{},v=p.dir,b=p.date;p._compressWorker(m,y).withStreamInfo("file",{name:h,dir:v,date:b,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(d)}),d.entriesCount=c}catch(h){d.error(h)}return d}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,i,r){function o(){if(!(this instanceof o))return new o;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var s=new o;for(var a in this)typeof this[a]!="function"&&(s[a]=this[a]);return s}}(o.prototype=n("./object")).loadAsync=n("./load"),o.support=n("./support"),o.defaults=n("./defaults"),o.version="3.10.1",o.loadAsync=function(s,a){return new o().loadAsync(s,a)},o.external=n("./external"),i.exports=o},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,i,r){var o=n("./utils"),s=n("./external"),a=n("./utf8"),u=n("./zipEntries"),f=n("./stream/Crc32Probe"),d=n("./nodejsUtils");function c(h){return new s.Promise(function(p,m){var y=h.decompressed.getContentWorker().pipe(new f);y.on("error",function(v){m(v)}).on("end",function(){y.streamInfo.crc32!==h.decompressed.crc32?m(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}i.exports=function(h,p){var m=this;return p=o.extend(p||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),d.isNode&&d.isStream(h)?s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):o.prepareContent("the loaded zip file",h,!0,p.optimizedBinaryString,p.base64).then(function(y){var v=new u(p);return v.load(y),v}).then(function(y){var v=[s.Promise.resolve(y)],b=y.files;if(p.checkCRC32)for(var g=0;g<b.length;g++)v.push(c(b[g]));return s.Promise.all(v)}).then(function(y){for(var v=y.shift(),b=v.files,g=0;g<b.length;g++){var k=b[g],w=k.fileNameStr,T=o.resolve(k.fileNameStr);m.file(T,k.decompressed,{binary:!0,optimizedBinaryString:!0,date:k.date,dir:k.dir,comment:k.fileCommentStr.length?k.fileCommentStr:null,unixPermissions:k.unixPermissions,dosPermissions:k.dosPermissions,createFolders:p.createFolders}),k.dir||(m.file(T).unsafeOriginalName=w)}return v.zipComment.length&&(m.comment=v.zipComment),m})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,i,r){var o=n("../utils"),s=n("../stream/GenericWorker");function a(u,f){s.call(this,"Nodejs stream input adapter for "+u),this._upstreamEnded=!1,this._bindStream(f)}o.inherits(a,s),a.prototype._bindStream=function(u){var f=this;(this._stream=u).pause(),u.on("data",function(d){f.push({data:d,meta:{percent:0}})}).on("error",function(d){f.isPaused?this.generatedError=d:f.error(d)}).on("end",function(){f.isPaused?f._upstreamEnded=!0:f.end()})},a.prototype.pause=function(){return!!s.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},i.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,i,r){var o=n("readable-stream").Readable;function s(a,u,f){o.call(this,u),this._helper=a;var d=this;a.on("data",function(c,h){d.push(c)||d._helper.pause(),f&&f(h)}).on("error",function(c){d.emit("error",c)}).on("end",function(){d.push(null)})}n("../utils").inherits(s,o),s.prototype._read=function(){this._helper.resume()},i.exports=s},{"../utils":32,"readable-stream":16}],14:[function(n,i,r){i.exports={isNode:typeof Buffer<"u",newBufferFrom:function(o,s){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(o,s);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new Buffer(o,s)},allocBuffer:function(o){if(Buffer.alloc)return Buffer.alloc(o);var s=new Buffer(o);return s.fill(0),s},isBuffer:function(o){return Buffer.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(n,i,r){function o(T,S,_){var A,D=a.getTypeOf(S),x=a.extend(_||{},d);x.date=x.date||new Date,x.compression!==null&&(x.compression=x.compression.toUpperCase()),typeof x.unixPermissions=="string"&&(x.unixPermissions=parseInt(x.unixPermissions,8)),x.unixPermissions&&16384&x.unixPermissions&&(x.dir=!0),x.dosPermissions&&16&x.dosPermissions&&(x.dir=!0),x.dir&&(T=b(T)),x.createFolders&&(A=v(T))&&g.call(this,A,!0);var B=D==="string"&&x.binary===!1&&x.base64===!1;_&&_.binary!==void 0||(x.binary=!B),(S instanceof c&&S.uncompressedSize===0||x.dir||!S||S.length===0)&&(x.base64=!1,x.binary=!0,S="",x.compression="STORE",D="string");var E=null;E=S instanceof c||S instanceof u?S:m.isNode&&m.isStream(S)?new y(T,S):a.prepareContent(T,S,x.binary,x.optimizedBinaryString,x.base64);var F=new h(T,E,x);this.files[T]=F}var s=n("./utf8"),a=n("./utils"),u=n("./stream/GenericWorker"),f=n("./stream/StreamHelper"),d=n("./defaults"),c=n("./compressedObject"),h=n("./zipObject"),p=n("./generate"),m=n("./nodejsUtils"),y=n("./nodejs/NodejsStreamInputAdapter"),v=function(T){T.slice(-1)==="/"&&(T=T.substring(0,T.length-1));var S=T.lastIndexOf("/");return 0<S?T.substring(0,S):""},b=function(T){return T.slice(-1)!=="/"&&(T+="/"),T},g=function(T,S){return S=S!==void 0?S:d.createFolders,T=b(T),this.files[T]||o.call(this,T,null,{dir:!0,createFolders:S}),this.files[T]};function k(T){return Object.prototype.toString.call(T)==="[object RegExp]"}var w={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(T){var S,_,A;for(S in this.files)A=this.files[S],(_=S.slice(this.root.length,S.length))&&S.slice(0,this.root.length)===this.root&&T(_,A)},filter:function(T){var S=[];return this.forEach(function(_,A){T(_,A)&&S.push(A)}),S},file:function(T,S,_){if(arguments.length!==1)return T=this.root+T,o.call(this,T,S,_),this;if(k(T)){var A=T;return this.filter(function(x,B){return!B.dir&&A.test(x)})}var D=this.files[this.root+T];return D&&!D.dir?D:null},folder:function(T){if(!T)return this;if(k(T))return this.filter(function(D,x){return x.dir&&T.test(D)});var S=this.root+T,_=g.call(this,S),A=this.clone();return A.root=_.name,A},remove:function(T){T=this.root+T;var S=this.files[T];if(S||(T.slice(-1)!=="/"&&(T+="/"),S=this.files[T]),S&&!S.dir)delete this.files[T];else for(var _=this.filter(function(D,x){return x.name.slice(0,T.length)===T}),A=0;A<_.length;A++)delete this.files[_[A].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(T){var S,_={};try{if((_=a.extend(T||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode})).type=_.type.toLowerCase(),_.compression=_.compression.toUpperCase(),_.type==="binarystring"&&(_.type="string"),!_.type)throw new Error("No output type specified.");a.checkSupport(_.type),_.platform!=="darwin"&&_.platform!=="freebsd"&&_.platform!=="linux"&&_.platform!=="sunos"||(_.platform="UNIX"),_.platform==="win32"&&(_.platform="DOS");var A=_.comment||this.comment||"";S=p.generateWorker(this,_,A)}catch(D){(S=new u("error")).error(D)}return new f(S,_.type||"string",_.mimeType)},generateAsync:function(T,S){return this.generateInternalStream(T).accumulate(S)},generateNodeStream:function(T,S){return(T=T||{}).type||(T.type="nodebuffer"),this.generateInternalStream(T).toNodejsStream(S)}};i.exports=w},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,i,r){i.exports=n("stream")},{stream:void 0}],17:[function(n,i,r){var o=n("./DataReader");function s(a){o.call(this,a);for(var u=0;u<this.data.length;u++)a[u]=255&a[u]}n("../utils").inherits(s,o),s.prototype.byteAt=function(a){return this.data[this.zero+a]},s.prototype.lastIndexOfSignature=function(a){for(var u=a.charCodeAt(0),f=a.charCodeAt(1),d=a.charCodeAt(2),c=a.charCodeAt(3),h=this.length-4;0<=h;--h)if(this.data[h]===u&&this.data[h+1]===f&&this.data[h+2]===d&&this.data[h+3]===c)return h-this.zero;return-1},s.prototype.readAndCheckSignature=function(a){var u=a.charCodeAt(0),f=a.charCodeAt(1),d=a.charCodeAt(2),c=a.charCodeAt(3),h=this.readData(4);return u===h[0]&&f===h[1]&&d===h[2]&&c===h[3]},s.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var u=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},i.exports=s},{"../utils":32,"./DataReader":18}],18:[function(n,i,r){var o=n("../utils");function s(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}s.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var u,f=0;for(this.checkOffset(a),u=this.index+a-1;u>=this.index;u--)f=(f<<8)+this.byteAt(u);return this.index+=a,f},readString:function(a){return o.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},i.exports=s},{"../utils":32}],19:[function(n,i,r){var o=n("./Uint8ArrayReader");function s(a){o.call(this,a)}n("../utils").inherits(s,o),s.prototype.readData=function(a){this.checkOffset(a);var u=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},i.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,i,r){var o=n("./DataReader");function s(a){o.call(this,a)}n("../utils").inherits(s,o),s.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},s.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},s.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},s.prototype.readData=function(a){this.checkOffset(a);var u=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},i.exports=s},{"../utils":32,"./DataReader":18}],21:[function(n,i,r){var o=n("./ArrayReader");function s(a){o.call(this,a)}n("../utils").inherits(s,o),s.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var u=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,u},i.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(n,i,r){var o=n("../utils"),s=n("../support"),a=n("./ArrayReader"),u=n("./StringReader"),f=n("./NodeBufferReader"),d=n("./Uint8ArrayReader");i.exports=function(c){var h=o.getTypeOf(c);return o.checkSupport(h),h!=="string"||s.uint8array?h==="nodebuffer"?new f(c):s.uint8array?new d(o.transformTo("uint8array",c)):new a(o.transformTo("array",c)):new u(c)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,i,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,i,r){var o=n("./GenericWorker"),s=n("../utils");function a(u){o.call(this,"ConvertWorker to "+u),this.destType=u}s.inherits(a,o),a.prototype.processChunk=function(u){this.push({data:s.transformTo(this.destType,u.data),meta:u.meta})},i.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(n,i,r){var o=n("./GenericWorker"),s=n("../crc32");function a(){o.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(a,o),a.prototype.processChunk=function(u){this.streamInfo.crc32=s(u.data,this.streamInfo.crc32||0),this.push(u)},i.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,i,r){var o=n("../utils"),s=n("./GenericWorker");function a(u){s.call(this,"DataLengthProbe for "+u),this.propName=u,this.withStreamInfo(u,0)}o.inherits(a,s),a.prototype.processChunk=function(u){if(u){var f=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=f+u.data.length}s.prototype.processChunk.call(this,u)},i.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(n,i,r){var o=n("../utils"),s=n("./GenericWorker");function a(u){s.call(this,"DataWorker");var f=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,u.then(function(d){f.dataIsReady=!0,f.data=d,f.max=d&&d.length||0,f.type=o.getTypeOf(d),f.isPaused||f._tickAndRepeat()},function(d){f.error(d)})}o.inherits(a,s),a.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,o.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(o.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var u=null,f=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,f);break;case"uint8array":u=this.data.subarray(this.index,f);break;case"array":case"nodebuffer":u=this.data.slice(this.index,f)}return this.index=f,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(n,i,r){function o(s){this.name=s||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}o.prototype={push:function(s){this.emit("data",s)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(s){this.emit("error",s)}return!0},error:function(s){return!this.isFinished&&(this.isPaused?this.generatedError=s:(this.isFinished=!0,this.emit("error",s),this.previous&&this.previous.error(s),this.cleanUp()),!0)},on:function(s,a){return this._listeners[s].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(s,a){if(this._listeners[s])for(var u=0;u<this._listeners[s].length;u++)this._listeners[s][u].call(this,a)},pipe:function(s){return s.registerPrevious(this)},registerPrevious:function(s){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=s.streamInfo,this.mergeStreamInfo(),this.previous=s;var a=this;return s.on("data",function(u){a.processChunk(u)}),s.on("end",function(){a.end()}),s.on("error",function(u){a.error(u)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var s=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),s=!0),this.previous&&this.previous.resume(),!s},flush:function(){},processChunk:function(s){this.push(s)},withStreamInfo:function(s,a){return this.extraStreamInfo[s]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var s in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,s)&&(this.streamInfo[s]=this.extraStreamInfo[s])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var s="Worker "+this.name;return this.previous?this.previous+" -> "+s:s}},i.exports=o},{}],29:[function(n,i,r){var o=n("../utils"),s=n("./ConvertWorker"),a=n("./GenericWorker"),u=n("../base64"),f=n("../support"),d=n("../external"),c=null;if(f.nodestream)try{c=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function h(m,y){return new d.Promise(function(v,b){var g=[],k=m._internalType,w=m._outputType,T=m._mimeType;m.on("data",function(S,_){g.push(S),y&&y(_)}).on("error",function(S){g=[],b(S)}).on("end",function(){try{var S=function(_,A,D){switch(_){case"blob":return o.newBlob(o.transformTo("arraybuffer",A),D);case"base64":return u.encode(A);default:return o.transformTo(_,A)}}(w,function(_,A){var D,x=0,B=null,E=0;for(D=0;D<A.length;D++)E+=A[D].length;switch(_){case"string":return A.join("");case"array":return Array.prototype.concat.apply([],A);case"uint8array":for(B=new Uint8Array(E),D=0;D<A.length;D++)B.set(A[D],x),x+=A[D].length;return B;case"nodebuffer":return Buffer.concat(A);default:throw new Error("concat : unsupported type '"+_+"'")}}(k,g),T);v(S)}catch(_){b(_)}g=[]}).resume()})}function p(m,y,v){var b=y;switch(y){case"blob":case"arraybuffer":b="uint8array";break;case"base64":b="string"}try{this._internalType=b,this._outputType=y,this._mimeType=v,o.checkSupport(b),this._worker=m.pipe(new s(b)),m.lock()}catch(g){this._worker=new a("error"),this._worker.error(g)}}p.prototype={accumulate:function(m){return h(this,m)},on:function(m,y){var v=this;return m==="data"?this._worker.on(m,function(b){y.call(v,b.data,b.meta)}):this._worker.on(m,function(){o.delay(y,arguments,v)}),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(m){if(o.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:this._outputType!=="nodebuffer"},m)}},i.exports=p},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,i,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",r.nodebuffer=typeof Buffer<"u",r.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")r.blob=!1;else{var o=new ArrayBuffer(0);try{r.blob=new Blob([o],{type:"application/zip"}).size===0}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(o),r.blob=s.getBlob("application/zip").size===0}catch{r.blob=!1}}}try{r.nodestream=!!n("readable-stream").Readable}catch{r.nodestream=!1}},{"readable-stream":16}],31:[function(n,i,r){for(var o=n("./utils"),s=n("./support"),a=n("./nodejsUtils"),u=n("./stream/GenericWorker"),f=new Array(256),d=0;d<256;d++)f[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;f[254]=f[254]=1;function c(){u.call(this,"utf-8 decode"),this.leftOver=null}function h(){u.call(this,"utf-8 encode")}r.utf8encode=function(p){return s.nodebuffer?a.newBufferFrom(p,"utf-8"):function(m){var y,v,b,g,k,w=m.length,T=0;for(g=0;g<w;g++)(64512&(v=m.charCodeAt(g)))==55296&&g+1<w&&(64512&(b=m.charCodeAt(g+1)))==56320&&(v=65536+(v-55296<<10)+(b-56320),g++),T+=v<128?1:v<2048?2:v<65536?3:4;for(y=s.uint8array?new Uint8Array(T):new Array(T),g=k=0;k<T;g++)(64512&(v=m.charCodeAt(g)))==55296&&g+1<w&&(64512&(b=m.charCodeAt(g+1)))==56320&&(v=65536+(v-55296<<10)+(b-56320),g++),v<128?y[k++]=v:(v<2048?y[k++]=192|v>>>6:(v<65536?y[k++]=224|v>>>12:(y[k++]=240|v>>>18,y[k++]=128|v>>>12&63),y[k++]=128|v>>>6&63),y[k++]=128|63&v);return y}(p)},r.utf8decode=function(p){return s.nodebuffer?o.transformTo("nodebuffer",p).toString("utf-8"):function(m){var y,v,b,g,k=m.length,w=new Array(2*k);for(y=v=0;y<k;)if((b=m[y++])<128)w[v++]=b;else if(4<(g=f[b]))w[v++]=65533,y+=g-1;else{for(b&=g===2?31:g===3?15:7;1<g&&y<k;)b=b<<6|63&m[y++],g--;1<g?w[v++]=65533:b<65536?w[v++]=b:(b-=65536,w[v++]=55296|b>>10&1023,w[v++]=56320|1023&b)}return w.length!==v&&(w.subarray?w=w.subarray(0,v):w.length=v),o.applyFromCharCode(w)}(p=o.transformTo(s.uint8array?"uint8array":"array",p))},o.inherits(c,u),c.prototype.processChunk=function(p){var m=o.transformTo(s.uint8array?"uint8array":"array",p.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var y=m;(m=new Uint8Array(y.length+this.leftOver.length)).set(this.leftOver,0),m.set(y,this.leftOver.length)}else m=this.leftOver.concat(m);this.leftOver=null}var v=function(g,k){var w;for((k=k||g.length)>g.length&&(k=g.length),w=k-1;0<=w&&(192&g[w])==128;)w--;return w<0||w===0?k:w+f[g[w]]>k?w:k}(m),b=m;v!==m.length&&(s.uint8array?(b=m.subarray(0,v),this.leftOver=m.subarray(v,m.length)):(b=m.slice(0,v),this.leftOver=m.slice(v,m.length))),this.push({data:r.utf8decode(b),meta:p.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,o.inherits(h,u),h.prototype.processChunk=function(p){this.push({data:r.utf8encode(p.data),meta:p.meta})},r.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,i,r){var o=n("./support"),s=n("./base64"),a=n("./nodejsUtils"),u=n("./external");function f(y){return y}function d(y,v){for(var b=0;b<y.length;++b)v[b]=255&y.charCodeAt(b);return v}n("setimmediate"),r.newBlob=function(y,v){r.checkSupport("blob");try{return new Blob([y],{type:v})}catch{try{var b=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return b.append(y),b.getBlob(v)}catch{throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(y,v,b){var g=[],k=0,w=y.length;if(w<=b)return String.fromCharCode.apply(null,y);for(;k<w;)v==="array"||v==="nodebuffer"?g.push(String.fromCharCode.apply(null,y.slice(k,Math.min(k+b,w)))):g.push(String.fromCharCode.apply(null,y.subarray(k,Math.min(k+b,w)))),k+=b;return g.join("")},stringifyByChar:function(y){for(var v="",b=0;b<y.length;b++)v+=String.fromCharCode(y[b]);return v},applyCanBeUsed:{uint8array:function(){try{return o.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return o.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}}()}};function h(y){var v=65536,b=r.getTypeOf(y),g=!0;if(b==="uint8array"?g=c.applyCanBeUsed.uint8array:b==="nodebuffer"&&(g=c.applyCanBeUsed.nodebuffer),g)for(;1<v;)try{return c.stringifyByChunk(y,b,v)}catch{v=Math.floor(v/2)}return c.stringifyByChar(y)}function p(y,v){for(var b=0;b<y.length;b++)v[b]=y[b];return v}r.applyFromCharCode=h;var m={};m.string={string:f,array:function(y){return d(y,new Array(y.length))},arraybuffer:function(y){return m.string.uint8array(y).buffer},uint8array:function(y){return d(y,new Uint8Array(y.length))},nodebuffer:function(y){return d(y,a.allocBuffer(y.length))}},m.array={string:h,array:f,arraybuffer:function(y){return new Uint8Array(y).buffer},uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return a.newBufferFrom(y)}},m.arraybuffer={string:function(y){return h(new Uint8Array(y))},array:function(y){return p(new Uint8Array(y),new Array(y.byteLength))},arraybuffer:f,uint8array:function(y){return new Uint8Array(y)},nodebuffer:function(y){return a.newBufferFrom(new Uint8Array(y))}},m.uint8array={string:h,array:function(y){return p(y,new Array(y.length))},arraybuffer:function(y){return y.buffer},uint8array:f,nodebuffer:function(y){return a.newBufferFrom(y)}},m.nodebuffer={string:h,array:function(y){return p(y,new Array(y.length))},arraybuffer:function(y){return m.nodebuffer.uint8array(y).buffer},uint8array:function(y){return p(y,new Uint8Array(y.length))},nodebuffer:f},r.transformTo=function(y,v){if(v=v||"",!y)return v;r.checkSupport(y);var b=r.getTypeOf(v);return m[b][y](v)},r.resolve=function(y){for(var v=y.split("/"),b=[],g=0;g<v.length;g++){var k=v[g];k==="."||k===""&&g!==0&&g!==v.length-1||(k===".."?b.pop():b.push(k))}return b.join("/")},r.getTypeOf=function(y){return typeof y=="string"?"string":Object.prototype.toString.call(y)==="[object Array]"?"array":o.nodebuffer&&a.isBuffer(y)?"nodebuffer":o.uint8array&&y instanceof Uint8Array?"uint8array":o.arraybuffer&&y instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(y){if(!o[y.toLowerCase()])throw new Error(y+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(y){var v,b,g="";for(b=0;b<(y||"").length;b++)g+="\\x"+((v=y.charCodeAt(b))<16?"0":"")+v.toString(16).toUpperCase();return g},r.delay=function(y,v,b){setImmediate(function(){y.apply(b||null,v||[])})},r.inherits=function(y,v){function b(){}b.prototype=v.prototype,y.prototype=new b},r.extend=function(){var y,v,b={};for(y=0;y<arguments.length;y++)for(v in arguments[y])Object.prototype.hasOwnProperty.call(arguments[y],v)&&b[v]===void 0&&(b[v]=arguments[y][v]);return b},r.prepareContent=function(y,v,b,g,k){return u.Promise.resolve(v).then(function(w){return o.blob&&(w instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(w))!==-1)&&typeof FileReader<"u"?new u.Promise(function(T,S){var _=new FileReader;_.onload=function(A){T(A.target.result)},_.onerror=function(A){S(A.target.error)},_.readAsArrayBuffer(w)}):w}).then(function(w){var T=r.getTypeOf(w);return T?(T==="arraybuffer"?w=r.transformTo("uint8array",w):T==="string"&&(k?w=s.decode(w):b&&g!==!0&&(w=function(S){return d(S,o.uint8array?new Uint8Array(S.length):new Array(S.length))}(w))),w):u.Promise.reject(new Error("Can't read the data of '"+y+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,i,r){var o=n("./reader/readerFor"),s=n("./utils"),a=n("./signature"),u=n("./zipEntry"),f=n("./support");function d(c){this.files=[],this.loadOptions=c}d.prototype={checkSignature:function(c){if(!this.reader.readAndCheckSignature(c)){this.reader.index-=4;var h=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+s.pretty(h)+", expected "+s.pretty(c)+")")}},isSignature:function(c,h){var p=this.reader.index;this.reader.setIndex(c);var m=this.reader.readString(4)===h;return this.reader.setIndex(p),m},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var c=this.reader.readData(this.zipCommentLength),h=f.uint8array?"uint8array":"array",p=s.transformTo(h,c);this.zipComment=this.loadOptions.decodeFileName(p)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var c,h,p,m=this.zip64EndOfCentralSize-44;0<m;)c=this.reader.readInt(2),h=this.reader.readInt(4),p=this.reader.readData(h),this.zip64ExtensibleData[c]={id:c,length:h,value:p}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var c,h;for(c=0;c<this.files.length;c++)h=this.files[c],this.reader.setIndex(h.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),h.readLocalPart(this.reader),h.handleUTF8(),h.processAttributes()},readCentralDir:function(){var c;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(c=new u({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(c);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var c=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(c<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(c);var h=c;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,(c=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(c),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var p=this.centralDirOffset+this.centralDirSize;this.zip64&&(p+=20,p+=12+this.zip64EndOfCentralSize);var m=h-p;if(0<m)this.isSignature(h,a.CENTRAL_FILE_HEADER)||(this.reader.zero=m);else if(m<0)throw new Error("Corrupted zip: missing "+Math.abs(m)+" bytes.")},prepareReader:function(c){this.reader=o(c)},load:function(c){this.prepareReader(c),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=d},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,i,r){var o=n("./reader/readerFor"),s=n("./utils"),a=n("./compressedObject"),u=n("./crc32"),f=n("./utf8"),d=n("./compressions"),c=n("./support");function h(p,m){this.options=p,this.loadOptions=m}h.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(p){var m,y;if(p.skip(22),this.fileNameLength=p.readInt(2),y=p.readInt(2),this.fileName=p.readData(this.fileNameLength),p.skip(y),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((m=function(v){for(var b in d)if(Object.prototype.hasOwnProperty.call(d,b)&&d[b].magic===v)return d[b];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,m,p.readData(this.compressedSize))},readCentralPart:function(p){this.versionMadeBy=p.readInt(2),p.skip(2),this.bitFlag=p.readInt(2),this.compressionMethod=p.readString(2),this.date=p.readDate(),this.crc32=p.readInt(4),this.compressedSize=p.readInt(4),this.uncompressedSize=p.readInt(4);var m=p.readInt(2);if(this.extraFieldsLength=p.readInt(2),this.fileCommentLength=p.readInt(2),this.diskNumberStart=p.readInt(2),this.internalFileAttributes=p.readInt(2),this.externalFileAttributes=p.readInt(4),this.localHeaderOffset=p.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");p.skip(m),this.readExtraFields(p),this.parseZIP64ExtraField(p),this.fileComment=p.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var p=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),p==0&&(this.dosPermissions=63&this.externalFileAttributes),p==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var p=o(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=p.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=p.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=p.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=p.readInt(4))}},readExtraFields:function(p){var m,y,v,b=p.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});p.index+4<b;)m=p.readInt(2),y=p.readInt(2),v=p.readData(y),this.extraFields[m]={id:m,length:y,value:v};p.setIndex(b)},handleUTF8:function(){var p=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=f.utf8decode(this.fileName),this.fileCommentStr=f.utf8decode(this.fileComment);else{var m=this.findExtraFieldUnicodePath();if(m!==null)this.fileNameStr=m;else{var y=s.transformTo(p,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(y)}var v=this.findExtraFieldUnicodeComment();if(v!==null)this.fileCommentStr=v;else{var b=s.transformTo(p,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(b)}}},findExtraFieldUnicodePath:function(){var p=this.extraFields[28789];if(p){var m=o(p.value);return m.readInt(1)!==1||u(this.fileName)!==m.readInt(4)?null:f.utf8decode(m.readData(p.length-5))}return null},findExtraFieldUnicodeComment:function(){var p=this.extraFields[25461];if(p){var m=o(p.value);return m.readInt(1)!==1||u(this.fileComment)!==m.readInt(4)?null:f.utf8decode(m.readData(p.length-5))}return null}},i.exports=h},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,i,r){function o(m,y,v){this.name=m,this.dir=v.dir,this.date=v.date,this.comment=v.comment,this.unixPermissions=v.unixPermissions,this.dosPermissions=v.dosPermissions,this._data=y,this._dataBinary=v.binary,this.options={compression:v.compression,compressionOptions:v.compressionOptions}}var s=n("./stream/StreamHelper"),a=n("./stream/DataWorker"),u=n("./utf8"),f=n("./compressedObject"),d=n("./stream/GenericWorker");o.prototype={internalStream:function(m){var y=null,v="string";try{if(!m)throw new Error("No output type specified.");var b=(v=m.toLowerCase())==="string"||v==="text";v!=="binarystring"&&v!=="text"||(v="string"),y=this._decompressWorker();var g=!this._dataBinary;g&&!b&&(y=y.pipe(new u.Utf8EncodeWorker)),!g&&b&&(y=y.pipe(new u.Utf8DecodeWorker))}catch(k){(y=new d("error")).error(k)}return new s(y,v,"")},async:function(m,y){return this.internalStream(m).accumulate(y)},nodeStream:function(m,y){return this.internalStream(m||"nodebuffer").toNodejsStream(y)},_compressWorker:function(m,y){if(this._data instanceof f&&this._data.compression.magic===m.magic)return this._data.getCompressedWorker();var v=this._decompressWorker();return this._dataBinary||(v=v.pipe(new u.Utf8EncodeWorker)),f.createWorkerFrom(v,m,y)},_decompressWorker:function(){return this._data instanceof f?this._data.getContentWorker():this._data instanceof d?this._data:new a(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},p=0;p<c.length;p++)o.prototype[c[p]]=h;i.exports=o},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,i,r){(function(o){var s,a,u=o.MutationObserver||o.WebKitMutationObserver;if(u){var f=0,d=new u(m),c=o.document.createTextNode("");d.observe(c,{characterData:!0}),s=function(){c.data=f=++f%2}}else if(o.setImmediate||o.MessageChannel===void 0)s="document"in o&&"onreadystatechange"in o.document.createElement("script")?function(){var y=o.document.createElement("script");y.onreadystatechange=function(){m(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},o.document.documentElement.appendChild(y)}:function(){setTimeout(m,0)};else{var h=new o.MessageChannel;h.port1.onmessage=m,s=function(){h.port2.postMessage(0)}}var p=[];function m(){var y,v;a=!0;for(var b=p.length;b;){for(v=p,p=[],y=-1;++y<b;)v[y]();b=p.length}a=!1}i.exports=function(y){p.push(y)!==1||a||s()}}).call(this,typeof sm<"u"?sm:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,i,r){var o=n("immediate");function s(){}var a={},u=["REJECTED"],f=["FULFILLED"],d=["PENDING"];function c(b){if(typeof b!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,b!==s&&y(this,b)}function h(b,g,k){this.promise=b,typeof g=="function"&&(this.onFulfilled=g,this.callFulfilled=this.otherCallFulfilled),typeof k=="function"&&(this.onRejected=k,this.callRejected=this.otherCallRejected)}function p(b,g,k){o(function(){var w;try{w=g(k)}catch(T){return a.reject(b,T)}w===b?a.reject(b,new TypeError("Cannot resolve promise with itself")):a.resolve(b,w)})}function m(b){var g=b&&b.then;if(b&&(typeof b=="object"||typeof b=="function")&&typeof g=="function")return function(){g.apply(b,arguments)}}function y(b,g){var k=!1;function w(_){k||(k=!0,a.reject(b,_))}function T(_){k||(k=!0,a.resolve(b,_))}var S=v(function(){g(T,w)});S.status==="error"&&w(S.value)}function v(b,g){var k={};try{k.value=b(g),k.status="success"}catch(w){k.status="error",k.value=w}return k}(i.exports=c).prototype.finally=function(b){if(typeof b!="function")return this;var g=this.constructor;return this.then(function(k){return g.resolve(b()).then(function(){return k})},function(k){return g.resolve(b()).then(function(){throw k})})},c.prototype.catch=function(b){return this.then(null,b)},c.prototype.then=function(b,g){if(typeof b!="function"&&this.state===f||typeof g!="function"&&this.state===u)return this;var k=new this.constructor(s);return this.state!==d?p(k,this.state===f?b:g,this.outcome):this.queue.push(new h(k,b,g)),k},h.prototype.callFulfilled=function(b){a.resolve(this.promise,b)},h.prototype.otherCallFulfilled=function(b){p(this.promise,this.onFulfilled,b)},h.prototype.callRejected=function(b){a.reject(this.promise,b)},h.prototype.otherCallRejected=function(b){p(this.promise,this.onRejected,b)},a.resolve=function(b,g){var k=v(m,g);if(k.status==="error")return a.reject(b,k.value);var w=k.value;if(w)y(b,w);else{b.state=f,b.outcome=g;for(var T=-1,S=b.queue.length;++T<S;)b.queue[T].callFulfilled(g)}return b},a.reject=function(b,g){b.state=u,b.outcome=g;for(var k=-1,w=b.queue.length;++k<w;)b.queue[k].callRejected(g);return b},c.resolve=function(b){return b instanceof this?b:a.resolve(new this(s),b)},c.reject=function(b){var g=new this(s);return a.reject(g,b)},c.all=function(b){var g=this;if(Object.prototype.toString.call(b)!=="[object Array]")return this.reject(new TypeError("must be an array"));var k=b.length,w=!1;if(!k)return this.resolve([]);for(var T=new Array(k),S=0,_=-1,A=new this(s);++_<k;)D(b[_],_);return A;function D(x,B){g.resolve(x).then(function(E){T[B]=E,++S!==k||w||(w=!0,a.resolve(A,T))},function(E){w||(w=!0,a.reject(A,E))})}},c.race=function(b){var g=this;if(Object.prototype.toString.call(b)!=="[object Array]")return this.reject(new TypeError("must be an array"));var k=b.length,w=!1;if(!k)return this.resolve([]);for(var T=-1,S=new this(s);++T<k;)_=b[T],g.resolve(_).then(function(A){w||(w=!0,a.resolve(S,A))},function(A){w||(w=!0,a.reject(S,A))});var _;return S}},{immediate:36}],38:[function(n,i,r){var o={};(0,n("./lib/utils/common").assign)(o,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),i.exports=o},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,i,r){var o=n("./zlib/deflate"),s=n("./utils/common"),a=n("./utils/strings"),u=n("./zlib/messages"),f=n("./zlib/zstream"),d=Object.prototype.toString,c=0,h=-1,p=0,m=8;function y(b){if(!(this instanceof y))return new y(b);this.options=s.assign({level:h,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:p,to:""},b||{});var g=this.options;g.raw&&0<g.windowBits?g.windowBits=-g.windowBits:g.gzip&&0<g.windowBits&&g.windowBits<16&&(g.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var k=o.deflateInit2(this.strm,g.level,g.method,g.windowBits,g.memLevel,g.strategy);if(k!==c)throw new Error(u[k]);if(g.header&&o.deflateSetHeader(this.strm,g.header),g.dictionary){var w;if(w=typeof g.dictionary=="string"?a.string2buf(g.dictionary):d.call(g.dictionary)==="[object ArrayBuffer]"?new Uint8Array(g.dictionary):g.dictionary,(k=o.deflateSetDictionary(this.strm,w))!==c)throw new Error(u[k]);this._dict_set=!0}}function v(b,g){var k=new y(g);if(k.push(b,!0),k.err)throw k.msg||u[k.err];return k.result}y.prototype.push=function(b,g){var k,w,T=this.strm,S=this.options.chunkSize;if(this.ended)return!1;w=g===~~g?g:g===!0?4:0,typeof b=="string"?T.input=a.string2buf(b):d.call(b)==="[object ArrayBuffer]"?T.input=new Uint8Array(b):T.input=b,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new s.Buf8(S),T.next_out=0,T.avail_out=S),(k=o.deflate(T,w))!==1&&k!==c)return this.onEnd(k),!(this.ended=!0);T.avail_out!==0&&(T.avail_in!==0||w!==4&&w!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(s.shrinkBuf(T.output,T.next_out))):this.onData(s.shrinkBuf(T.output,T.next_out)))}while((0<T.avail_in||T.avail_out===0)&&k!==1);return w===4?(k=o.deflateEnd(this.strm),this.onEnd(k),this.ended=!0,k===c):w!==2||(this.onEnd(c),!(T.avail_out=0))},y.prototype.onData=function(b){this.chunks.push(b)},y.prototype.onEnd=function(b){b===c&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},r.Deflate=y,r.deflate=v,r.deflateRaw=function(b,g){return(g=g||{}).raw=!0,v(b,g)},r.gzip=function(b,g){return(g=g||{}).gzip=!0,v(b,g)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,i,r){var o=n("./zlib/inflate"),s=n("./utils/common"),a=n("./utils/strings"),u=n("./zlib/constants"),f=n("./zlib/messages"),d=n("./zlib/zstream"),c=n("./zlib/gzheader"),h=Object.prototype.toString;function p(y){if(!(this instanceof p))return new p(y);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},y||{});var v=this.options;v.raw&&0<=v.windowBits&&v.windowBits<16&&(v.windowBits=-v.windowBits,v.windowBits===0&&(v.windowBits=-15)),!(0<=v.windowBits&&v.windowBits<16)||y&&y.windowBits||(v.windowBits+=32),15<v.windowBits&&v.windowBits<48&&!(15&v.windowBits)&&(v.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var b=o.inflateInit2(this.strm,v.windowBits);if(b!==u.Z_OK)throw new Error(f[b]);this.header=new c,o.inflateGetHeader(this.strm,this.header)}function m(y,v){var b=new p(v);if(b.push(y,!0),b.err)throw b.msg||f[b.err];return b.result}p.prototype.push=function(y,v){var b,g,k,w,T,S,_=this.strm,A=this.options.chunkSize,D=this.options.dictionary,x=!1;if(this.ended)return!1;g=v===~~v?v:v===!0?u.Z_FINISH:u.Z_NO_FLUSH,typeof y=="string"?_.input=a.binstring2buf(y):h.call(y)==="[object ArrayBuffer]"?_.input=new Uint8Array(y):_.input=y,_.next_in=0,_.avail_in=_.input.length;do{if(_.avail_out===0&&(_.output=new s.Buf8(A),_.next_out=0,_.avail_out=A),(b=o.inflate(_,u.Z_NO_FLUSH))===u.Z_NEED_DICT&&D&&(S=typeof D=="string"?a.string2buf(D):h.call(D)==="[object ArrayBuffer]"?new Uint8Array(D):D,b=o.inflateSetDictionary(this.strm,S)),b===u.Z_BUF_ERROR&&x===!0&&(b=u.Z_OK,x=!1),b!==u.Z_STREAM_END&&b!==u.Z_OK)return this.onEnd(b),!(this.ended=!0);_.next_out&&(_.avail_out!==0&&b!==u.Z_STREAM_END&&(_.avail_in!==0||g!==u.Z_FINISH&&g!==u.Z_SYNC_FLUSH)||(this.options.to==="string"?(k=a.utf8border(_.output,_.next_out),w=_.next_out-k,T=a.buf2string(_.output,k),_.next_out=w,_.avail_out=A-w,w&&s.arraySet(_.output,_.output,k,w,0),this.onData(T)):this.onData(s.shrinkBuf(_.output,_.next_out)))),_.avail_in===0&&_.avail_out===0&&(x=!0)}while((0<_.avail_in||_.avail_out===0)&&b!==u.Z_STREAM_END);return b===u.Z_STREAM_END&&(g=u.Z_FINISH),g===u.Z_FINISH?(b=o.inflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===u.Z_OK):g!==u.Z_SYNC_FLUSH||(this.onEnd(u.Z_OK),!(_.avail_out=0))},p.prototype.onData=function(y){this.chunks.push(y)},p.prototype.onEnd=function(y){y===u.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},r.Inflate=p,r.inflate=m,r.inflateRaw=function(y,v){return(v=v||{}).raw=!0,m(y,v)},r.ungzip=m},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,i,r){var o=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";r.assign=function(u){for(var f=Array.prototype.slice.call(arguments,1);f.length;){var d=f.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var c in d)d.hasOwnProperty(c)&&(u[c]=d[c])}}return u},r.shrinkBuf=function(u,f){return u.length===f?u:u.subarray?u.subarray(0,f):(u.length=f,u)};var s={arraySet:function(u,f,d,c,h){if(f.subarray&&u.subarray)u.set(f.subarray(d,d+c),h);else for(var p=0;p<c;p++)u[h+p]=f[d+p]},flattenChunks:function(u){var f,d,c,h,p,m;for(f=c=0,d=u.length;f<d;f++)c+=u[f].length;for(m=new Uint8Array(c),f=h=0,d=u.length;f<d;f++)p=u[f],m.set(p,h),h+=p.length;return m}},a={arraySet:function(u,f,d,c,h){for(var p=0;p<c;p++)u[h+p]=f[d+p]},flattenChunks:function(u){return[].concat.apply([],u)}};r.setTyped=function(u){u?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,s)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,a))},r.setTyped(o)},{}],42:[function(n,i,r){var o=n("./common"),s=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var u=new o.Buf8(256),f=0;f<256;f++)u[f]=252<=f?6:248<=f?5:240<=f?4:224<=f?3:192<=f?2:1;function d(c,h){if(h<65537&&(c.subarray&&a||!c.subarray&&s))return String.fromCharCode.apply(null,o.shrinkBuf(c,h));for(var p="",m=0;m<h;m++)p+=String.fromCharCode(c[m]);return p}u[254]=u[254]=1,r.string2buf=function(c){var h,p,m,y,v,b=c.length,g=0;for(y=0;y<b;y++)(64512&(p=c.charCodeAt(y)))==55296&&y+1<b&&(64512&(m=c.charCodeAt(y+1)))==56320&&(p=65536+(p-55296<<10)+(m-56320),y++),g+=p<128?1:p<2048?2:p<65536?3:4;for(h=new o.Buf8(g),y=v=0;v<g;y++)(64512&(p=c.charCodeAt(y)))==55296&&y+1<b&&(64512&(m=c.charCodeAt(y+1)))==56320&&(p=65536+(p-55296<<10)+(m-56320),y++),p<128?h[v++]=p:(p<2048?h[v++]=192|p>>>6:(p<65536?h[v++]=224|p>>>12:(h[v++]=240|p>>>18,h[v++]=128|p>>>12&63),h[v++]=128|p>>>6&63),h[v++]=128|63&p);return h},r.buf2binstring=function(c){return d(c,c.length)},r.binstring2buf=function(c){for(var h=new o.Buf8(c.length),p=0,m=h.length;p<m;p++)h[p]=c.charCodeAt(p);return h},r.buf2string=function(c,h){var p,m,y,v,b=h||c.length,g=new Array(2*b);for(p=m=0;p<b;)if((y=c[p++])<128)g[m++]=y;else if(4<(v=u[y]))g[m++]=65533,p+=v-1;else{for(y&=v===2?31:v===3?15:7;1<v&&p<b;)y=y<<6|63&c[p++],v--;1<v?g[m++]=65533:y<65536?g[m++]=y:(y-=65536,g[m++]=55296|y>>10&1023,g[m++]=56320|1023&y)}return d(g,m)},r.utf8border=function(c,h){var p;for((h=h||c.length)>c.length&&(h=c.length),p=h-1;0<=p&&(192&c[p])==128;)p--;return p<0||p===0?h:p+u[c[p]]>h?p:h}},{"./common":41}],43:[function(n,i,r){i.exports=function(o,s,a,u){for(var f=65535&o|0,d=o>>>16&65535|0,c=0;a!==0;){for(a-=c=2e3<a?2e3:a;d=d+(f=f+s[u++]|0)|0,--c;);f%=65521,d%=65521}return f|d<<16|0}},{}],44:[function(n,i,r){i.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,i,r){var o=function(){for(var s,a=[],u=0;u<256;u++){s=u;for(var f=0;f<8;f++)s=1&s?3988292384^s>>>1:s>>>1;a[u]=s}return a}();i.exports=function(s,a,u,f){var d=o,c=f+u;s^=-1;for(var h=f;h<c;h++)s=s>>>8^d[255&(s^a[h])];return-1^s}},{}],46:[function(n,i,r){var o,s=n("../utils/common"),a=n("./trees"),u=n("./adler32"),f=n("./crc32"),d=n("./messages"),c=0,h=4,p=0,m=-2,y=-1,v=4,b=2,g=8,k=9,w=286,T=30,S=19,_=2*w+1,A=15,D=3,x=258,B=x+D+1,E=42,F=113,C=1,I=2,N=3,H=4;function Q(P,le){return P.msg=d[le],le}function ie(P){return(P<<1)-(4<P?9:0)}function ae(P){for(var le=P.length;0<=--le;)P[le]=0}function M(P){var le=P.state,me=le.pending;me>P.avail_out&&(me=P.avail_out),me!==0&&(s.arraySet(P.output,le.pending_buf,le.pending_out,me,P.next_out),P.next_out+=me,le.pending_out+=me,P.total_out+=me,P.avail_out-=me,le.pending-=me,le.pending===0&&(le.pending_out=0))}function j(P,le){a._tr_flush_block(P,0<=P.block_start?P.block_start:-1,P.strstart-P.block_start,le),P.block_start=P.strstart,M(P.strm)}function V(P,le){P.pending_buf[P.pending++]=le}function L(P,le){P.pending_buf[P.pending++]=le>>>8&255,P.pending_buf[P.pending++]=255&le}function W(P,le){var me,J,Y=P.max_chain_length,fe=P.strstart,oe=P.prev_length,pe=P.nice_match,de=P.strstart>P.w_size-B?P.strstart-(P.w_size-B):0,Oe=P.window,ve=P.w_mask,_e=P.prev,Ue=P.strstart+x,st=Oe[fe+oe-1],it=Oe[fe+oe];P.prev_length>=P.good_match&&(Y>>=2),pe>P.lookahead&&(pe=P.lookahead);do if(Oe[(me=le)+oe]===it&&Oe[me+oe-1]===st&&Oe[me]===Oe[fe]&&Oe[++me]===Oe[fe+1]){fe+=2,me++;do;while(Oe[++fe]===Oe[++me]&&Oe[++fe]===Oe[++me]&&Oe[++fe]===Oe[++me]&&Oe[++fe]===Oe[++me]&&Oe[++fe]===Oe[++me]&&Oe[++fe]===Oe[++me]&&Oe[++fe]===Oe[++me]&&Oe[++fe]===Oe[++me]&&fe<Ue);if(J=x-(Ue-fe),fe=Ue-x,oe<J){if(P.match_start=le,pe<=(oe=J))break;st=Oe[fe+oe-1],it=Oe[fe+oe]}}while((le=_e[le&ve])>de&&--Y!=0);return oe<=P.lookahead?oe:P.lookahead}function G(P){var le,me,J,Y,fe,oe,pe,de,Oe,ve,_e=P.w_size;do{if(Y=P.window_size-P.lookahead-P.strstart,P.strstart>=_e+(_e-B)){for(s.arraySet(P.window,P.window,_e,_e,0),P.match_start-=_e,P.strstart-=_e,P.block_start-=_e,le=me=P.hash_size;J=P.head[--le],P.head[le]=_e<=J?J-_e:0,--me;);for(le=me=_e;J=P.prev[--le],P.prev[le]=_e<=J?J-_e:0,--me;);Y+=_e}if(P.strm.avail_in===0)break;if(oe=P.strm,pe=P.window,de=P.strstart+P.lookahead,Oe=Y,ve=void 0,ve=oe.avail_in,Oe<ve&&(ve=Oe),me=ve===0?0:(oe.avail_in-=ve,s.arraySet(pe,oe.input,oe.next_in,ve,de),oe.state.wrap===1?oe.adler=u(oe.adler,pe,ve,de):oe.state.wrap===2&&(oe.adler=f(oe.adler,pe,ve,de)),oe.next_in+=ve,oe.total_in+=ve,ve),P.lookahead+=me,P.lookahead+P.insert>=D)for(fe=P.strstart-P.insert,P.ins_h=P.window[fe],P.ins_h=(P.ins_h<<P.hash_shift^P.window[fe+1])&P.hash_mask;P.insert&&(P.ins_h=(P.ins_h<<P.hash_shift^P.window[fe+D-1])&P.hash_mask,P.prev[fe&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=fe,fe++,P.insert--,!(P.lookahead+P.insert<D)););}while(P.lookahead<B&&P.strm.avail_in!==0)}function $(P,le){for(var me,J;;){if(P.lookahead<B){if(G(P),P.lookahead<B&&le===c)return C;if(P.lookahead===0)break}if(me=0,P.lookahead>=D&&(P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+D-1])&P.hash_mask,me=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart),me!==0&&P.strstart-me<=P.w_size-B&&(P.match_length=W(P,me)),P.match_length>=D)if(J=a._tr_tally(P,P.strstart-P.match_start,P.match_length-D),P.lookahead-=P.match_length,P.match_length<=P.max_lazy_match&&P.lookahead>=D){for(P.match_length--;P.strstart++,P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+D-1])&P.hash_mask,me=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart,--P.match_length!=0;);P.strstart++}else P.strstart+=P.match_length,P.match_length=0,P.ins_h=P.window[P.strstart],P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+1])&P.hash_mask;else J=a._tr_tally(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++;if(J&&(j(P,!1),P.strm.avail_out===0))return C}return P.insert=P.strstart<D-1?P.strstart:D-1,le===h?(j(P,!0),P.strm.avail_out===0?N:H):P.last_lit&&(j(P,!1),P.strm.avail_out===0)?C:I}function re(P,le){for(var me,J,Y;;){if(P.lookahead<B){if(G(P),P.lookahead<B&&le===c)return C;if(P.lookahead===0)break}if(me=0,P.lookahead>=D&&(P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+D-1])&P.hash_mask,me=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart),P.prev_length=P.match_length,P.prev_match=P.match_start,P.match_length=D-1,me!==0&&P.prev_length<P.max_lazy_match&&P.strstart-me<=P.w_size-B&&(P.match_length=W(P,me),P.match_length<=5&&(P.strategy===1||P.match_length===D&&4096<P.strstart-P.match_start)&&(P.match_length=D-1)),P.prev_length>=D&&P.match_length<=P.prev_length){for(Y=P.strstart+P.lookahead-D,J=a._tr_tally(P,P.strstart-1-P.prev_match,P.prev_length-D),P.lookahead-=P.prev_length-1,P.prev_length-=2;++P.strstart<=Y&&(P.ins_h=(P.ins_h<<P.hash_shift^P.window[P.strstart+D-1])&P.hash_mask,me=P.prev[P.strstart&P.w_mask]=P.head[P.ins_h],P.head[P.ins_h]=P.strstart),--P.prev_length!=0;);if(P.match_available=0,P.match_length=D-1,P.strstart++,J&&(j(P,!1),P.strm.avail_out===0))return C}else if(P.match_available){if((J=a._tr_tally(P,0,P.window[P.strstart-1]))&&j(P,!1),P.strstart++,P.lookahead--,P.strm.avail_out===0)return C}else P.match_available=1,P.strstart++,P.lookahead--}return P.match_available&&(J=a._tr_tally(P,0,P.window[P.strstart-1]),P.match_available=0),P.insert=P.strstart<D-1?P.strstart:D-1,le===h?(j(P,!0),P.strm.avail_out===0?N:H):P.last_lit&&(j(P,!1),P.strm.avail_out===0)?C:I}function be(P,le,me,J,Y){this.good_length=P,this.max_lazy=le,this.nice_length=me,this.max_chain=J,this.func=Y}function Se(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new s.Buf16(2*_),this.dyn_dtree=new s.Buf16(2*(2*T+1)),this.bl_tree=new s.Buf16(2*(2*S+1)),ae(this.dyn_ltree),ae(this.dyn_dtree),ae(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new s.Buf16(A+1),this.heap=new s.Buf16(2*w+1),ae(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new s.Buf16(2*w+1),ae(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ee(P){var le;return P&&P.state?(P.total_in=P.total_out=0,P.data_type=b,(le=P.state).pending=0,le.pending_out=0,le.wrap<0&&(le.wrap=-le.wrap),le.status=le.wrap?E:F,P.adler=le.wrap===2?0:1,le.last_flush=c,a._tr_init(le),p):Q(P,m)}function we(P){var le=ee(P);return le===p&&function(me){me.window_size=2*me.w_size,ae(me.head),me.max_lazy_match=o[me.level].max_lazy,me.good_match=o[me.level].good_length,me.nice_match=o[me.level].nice_length,me.max_chain_length=o[me.level].max_chain,me.strstart=0,me.block_start=0,me.lookahead=0,me.insert=0,me.match_length=me.prev_length=D-1,me.match_available=0,me.ins_h=0}(P.state),le}function Ee(P,le,me,J,Y,fe){if(!P)return m;var oe=1;if(le===y&&(le=6),J<0?(oe=0,J=-J):15<J&&(oe=2,J-=16),Y<1||k<Y||me!==g||J<8||15<J||le<0||9<le||fe<0||v<fe)return Q(P,m);J===8&&(J=9);var pe=new Se;return(P.state=pe).strm=P,pe.wrap=oe,pe.gzhead=null,pe.w_bits=J,pe.w_size=1<<pe.w_bits,pe.w_mask=pe.w_size-1,pe.hash_bits=Y+7,pe.hash_size=1<<pe.hash_bits,pe.hash_mask=pe.hash_size-1,pe.hash_shift=~~((pe.hash_bits+D-1)/D),pe.window=new s.Buf8(2*pe.w_size),pe.head=new s.Buf16(pe.hash_size),pe.prev=new s.Buf16(pe.w_size),pe.lit_bufsize=1<<Y+6,pe.pending_buf_size=4*pe.lit_bufsize,pe.pending_buf=new s.Buf8(pe.pending_buf_size),pe.d_buf=1*pe.lit_bufsize,pe.l_buf=3*pe.lit_bufsize,pe.level=le,pe.strategy=fe,pe.method=me,we(P)}o=[new be(0,0,0,0,function(P,le){var me=65535;for(me>P.pending_buf_size-5&&(me=P.pending_buf_size-5);;){if(P.lookahead<=1){if(G(P),P.lookahead===0&&le===c)return C;if(P.lookahead===0)break}P.strstart+=P.lookahead,P.lookahead=0;var J=P.block_start+me;if((P.strstart===0||P.strstart>=J)&&(P.lookahead=P.strstart-J,P.strstart=J,j(P,!1),P.strm.avail_out===0)||P.strstart-P.block_start>=P.w_size-B&&(j(P,!1),P.strm.avail_out===0))return C}return P.insert=0,le===h?(j(P,!0),P.strm.avail_out===0?N:H):(P.strstart>P.block_start&&(j(P,!1),P.strm.avail_out),C)}),new be(4,4,8,4,$),new be(4,5,16,8,$),new be(4,6,32,32,$),new be(4,4,16,16,re),new be(8,16,32,32,re),new be(8,16,128,128,re),new be(8,32,128,256,re),new be(32,128,258,1024,re),new be(32,258,258,4096,re)],r.deflateInit=function(P,le){return Ee(P,le,g,15,8,0)},r.deflateInit2=Ee,r.deflateReset=we,r.deflateResetKeep=ee,r.deflateSetHeader=function(P,le){return P&&P.state?P.state.wrap!==2?m:(P.state.gzhead=le,p):m},r.deflate=function(P,le){var me,J,Y,fe;if(!P||!P.state||5<le||le<0)return P?Q(P,m):m;if(J=P.state,!P.output||!P.input&&P.avail_in!==0||J.status===666&&le!==h)return Q(P,P.avail_out===0?-5:m);if(J.strm=P,me=J.last_flush,J.last_flush=le,J.status===E)if(J.wrap===2)P.adler=0,V(J,31),V(J,139),V(J,8),J.gzhead?(V(J,(J.gzhead.text?1:0)+(J.gzhead.hcrc?2:0)+(J.gzhead.extra?4:0)+(J.gzhead.name?8:0)+(J.gzhead.comment?16:0)),V(J,255&J.gzhead.time),V(J,J.gzhead.time>>8&255),V(J,J.gzhead.time>>16&255),V(J,J.gzhead.time>>24&255),V(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),V(J,255&J.gzhead.os),J.gzhead.extra&&J.gzhead.extra.length&&(V(J,255&J.gzhead.extra.length),V(J,J.gzhead.extra.length>>8&255)),J.gzhead.hcrc&&(P.adler=f(P.adler,J.pending_buf,J.pending,0)),J.gzindex=0,J.status=69):(V(J,0),V(J,0),V(J,0),V(J,0),V(J,0),V(J,J.level===9?2:2<=J.strategy||J.level<2?4:0),V(J,3),J.status=F);else{var oe=g+(J.w_bits-8<<4)<<8;oe|=(2<=J.strategy||J.level<2?0:J.level<6?1:J.level===6?2:3)<<6,J.strstart!==0&&(oe|=32),oe+=31-oe%31,J.status=F,L(J,oe),J.strstart!==0&&(L(J,P.adler>>>16),L(J,65535&P.adler)),P.adler=1}if(J.status===69)if(J.gzhead.extra){for(Y=J.pending;J.gzindex<(65535&J.gzhead.extra.length)&&(J.pending!==J.pending_buf_size||(J.gzhead.hcrc&&J.pending>Y&&(P.adler=f(P.adler,J.pending_buf,J.pending-Y,Y)),M(P),Y=J.pending,J.pending!==J.pending_buf_size));)V(J,255&J.gzhead.extra[J.gzindex]),J.gzindex++;J.gzhead.hcrc&&J.pending>Y&&(P.adler=f(P.adler,J.pending_buf,J.pending-Y,Y)),J.gzindex===J.gzhead.extra.length&&(J.gzindex=0,J.status=73)}else J.status=73;if(J.status===73)if(J.gzhead.name){Y=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>Y&&(P.adler=f(P.adler,J.pending_buf,J.pending-Y,Y)),M(P),Y=J.pending,J.pending===J.pending_buf_size)){fe=1;break}fe=J.gzindex<J.gzhead.name.length?255&J.gzhead.name.charCodeAt(J.gzindex++):0,V(J,fe)}while(fe!==0);J.gzhead.hcrc&&J.pending>Y&&(P.adler=f(P.adler,J.pending_buf,J.pending-Y,Y)),fe===0&&(J.gzindex=0,J.status=91)}else J.status=91;if(J.status===91)if(J.gzhead.comment){Y=J.pending;do{if(J.pending===J.pending_buf_size&&(J.gzhead.hcrc&&J.pending>Y&&(P.adler=f(P.adler,J.pending_buf,J.pending-Y,Y)),M(P),Y=J.pending,J.pending===J.pending_buf_size)){fe=1;break}fe=J.gzindex<J.gzhead.comment.length?255&J.gzhead.comment.charCodeAt(J.gzindex++):0,V(J,fe)}while(fe!==0);J.gzhead.hcrc&&J.pending>Y&&(P.adler=f(P.adler,J.pending_buf,J.pending-Y,Y)),fe===0&&(J.status=103)}else J.status=103;if(J.status===103&&(J.gzhead.hcrc?(J.pending+2>J.pending_buf_size&&M(P),J.pending+2<=J.pending_buf_size&&(V(J,255&P.adler),V(J,P.adler>>8&255),P.adler=0,J.status=F)):J.status=F),J.pending!==0){if(M(P),P.avail_out===0)return J.last_flush=-1,p}else if(P.avail_in===0&&ie(le)<=ie(me)&&le!==h)return Q(P,-5);if(J.status===666&&P.avail_in!==0)return Q(P,-5);if(P.avail_in!==0||J.lookahead!==0||le!==c&&J.status!==666){var pe=J.strategy===2?function(de,Oe){for(var ve;;){if(de.lookahead===0&&(G(de),de.lookahead===0)){if(Oe===c)return C;break}if(de.match_length=0,ve=a._tr_tally(de,0,de.window[de.strstart]),de.lookahead--,de.strstart++,ve&&(j(de,!1),de.strm.avail_out===0))return C}return de.insert=0,Oe===h?(j(de,!0),de.strm.avail_out===0?N:H):de.last_lit&&(j(de,!1),de.strm.avail_out===0)?C:I}(J,le):J.strategy===3?function(de,Oe){for(var ve,_e,Ue,st,it=de.window;;){if(de.lookahead<=x){if(G(de),de.lookahead<=x&&Oe===c)return C;if(de.lookahead===0)break}if(de.match_length=0,de.lookahead>=D&&0<de.strstart&&(_e=it[Ue=de.strstart-1])===it[++Ue]&&_e===it[++Ue]&&_e===it[++Ue]){st=de.strstart+x;do;while(_e===it[++Ue]&&_e===it[++Ue]&&_e===it[++Ue]&&_e===it[++Ue]&&_e===it[++Ue]&&_e===it[++Ue]&&_e===it[++Ue]&&_e===it[++Ue]&&Ue<st);de.match_length=x-(st-Ue),de.match_length>de.lookahead&&(de.match_length=de.lookahead)}if(de.match_length>=D?(ve=a._tr_tally(de,1,de.match_length-D),de.lookahead-=de.match_length,de.strstart+=de.match_length,de.match_length=0):(ve=a._tr_tally(de,0,de.window[de.strstart]),de.lookahead--,de.strstart++),ve&&(j(de,!1),de.strm.avail_out===0))return C}return de.insert=0,Oe===h?(j(de,!0),de.strm.avail_out===0?N:H):de.last_lit&&(j(de,!1),de.strm.avail_out===0)?C:I}(J,le):o[J.level].func(J,le);if(pe!==N&&pe!==H||(J.status=666),pe===C||pe===N)return P.avail_out===0&&(J.last_flush=-1),p;if(pe===I&&(le===1?a._tr_align(J):le!==5&&(a._tr_stored_block(J,0,0,!1),le===3&&(ae(J.head),J.lookahead===0&&(J.strstart=0,J.block_start=0,J.insert=0))),M(P),P.avail_out===0))return J.last_flush=-1,p}return le!==h?p:J.wrap<=0?1:(J.wrap===2?(V(J,255&P.adler),V(J,P.adler>>8&255),V(J,P.adler>>16&255),V(J,P.adler>>24&255),V(J,255&P.total_in),V(J,P.total_in>>8&255),V(J,P.total_in>>16&255),V(J,P.total_in>>24&255)):(L(J,P.adler>>>16),L(J,65535&P.adler)),M(P),0<J.wrap&&(J.wrap=-J.wrap),J.pending!==0?p:1)},r.deflateEnd=function(P){var le;return P&&P.state?(le=P.state.status)!==E&&le!==69&&le!==73&&le!==91&&le!==103&&le!==F&&le!==666?Q(P,m):(P.state=null,le===F?Q(P,-3):p):m},r.deflateSetDictionary=function(P,le){var me,J,Y,fe,oe,pe,de,Oe,ve=le.length;if(!P||!P.state||(fe=(me=P.state).wrap)===2||fe===1&&me.status!==E||me.lookahead)return m;for(fe===1&&(P.adler=u(P.adler,le,ve,0)),me.wrap=0,ve>=me.w_size&&(fe===0&&(ae(me.head),me.strstart=0,me.block_start=0,me.insert=0),Oe=new s.Buf8(me.w_size),s.arraySet(Oe,le,ve-me.w_size,me.w_size,0),le=Oe,ve=me.w_size),oe=P.avail_in,pe=P.next_in,de=P.input,P.avail_in=ve,P.next_in=0,P.input=le,G(me);me.lookahead>=D;){for(J=me.strstart,Y=me.lookahead-(D-1);me.ins_h=(me.ins_h<<me.hash_shift^me.window[J+D-1])&me.hash_mask,me.prev[J&me.w_mask]=me.head[me.ins_h],me.head[me.ins_h]=J,J++,--Y;);me.strstart=J,me.lookahead=D-1,G(me)}return me.strstart+=me.lookahead,me.block_start=me.strstart,me.insert=me.lookahead,me.lookahead=0,me.match_length=me.prev_length=D-1,me.match_available=0,P.next_in=pe,P.input=de,P.avail_in=oe,me.wrap=fe,p},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,i,r){i.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,i,r){i.exports=function(o,s){var a,u,f,d,c,h,p,m,y,v,b,g,k,w,T,S,_,A,D,x,B,E,F,C,I;a=o.state,u=o.next_in,C=o.input,f=u+(o.avail_in-5),d=o.next_out,I=o.output,c=d-(s-o.avail_out),h=d+(o.avail_out-257),p=a.dmax,m=a.wsize,y=a.whave,v=a.wnext,b=a.window,g=a.hold,k=a.bits,w=a.lencode,T=a.distcode,S=(1<<a.lenbits)-1,_=(1<<a.distbits)-1;e:do{k<15&&(g+=C[u++]<<k,k+=8,g+=C[u++]<<k,k+=8),A=w[g&S];t:for(;;){if(g>>>=D=A>>>24,k-=D,(D=A>>>16&255)===0)I[d++]=65535&A;else{if(!(16&D)){if(!(64&D)){A=w[(65535&A)+(g&(1<<D)-1)];continue t}if(32&D){a.mode=12;break e}o.msg="invalid literal/length code",a.mode=30;break e}x=65535&A,(D&=15)&&(k<D&&(g+=C[u++]<<k,k+=8),x+=g&(1<<D)-1,g>>>=D,k-=D),k<15&&(g+=C[u++]<<k,k+=8,g+=C[u++]<<k,k+=8),A=T[g&_];n:for(;;){if(g>>>=D=A>>>24,k-=D,!(16&(D=A>>>16&255))){if(!(64&D)){A=T[(65535&A)+(g&(1<<D)-1)];continue n}o.msg="invalid distance code",a.mode=30;break e}if(B=65535&A,k<(D&=15)&&(g+=C[u++]<<k,(k+=8)<D&&(g+=C[u++]<<k,k+=8)),p<(B+=g&(1<<D)-1)){o.msg="invalid distance too far back",a.mode=30;break e}if(g>>>=D,k-=D,(D=d-c)<B){if(y<(D=B-D)&&a.sane){o.msg="invalid distance too far back",a.mode=30;break e}if(F=b,(E=0)===v){if(E+=m-D,D<x){for(x-=D;I[d++]=b[E++],--D;);E=d-B,F=I}}else if(v<D){if(E+=m+v-D,(D-=v)<x){for(x-=D;I[d++]=b[E++],--D;);if(E=0,v<x){for(x-=D=v;I[d++]=b[E++],--D;);E=d-B,F=I}}}else if(E+=v-D,D<x){for(x-=D;I[d++]=b[E++],--D;);E=d-B,F=I}for(;2<x;)I[d++]=F[E++],I[d++]=F[E++],I[d++]=F[E++],x-=3;x&&(I[d++]=F[E++],1<x&&(I[d++]=F[E++]))}else{for(E=d-B;I[d++]=I[E++],I[d++]=I[E++],I[d++]=I[E++],2<(x-=3););x&&(I[d++]=I[E++],1<x&&(I[d++]=I[E++]))}break}}break}}while(u<f&&d<h);u-=x=k>>3,g&=(1<<(k-=x<<3))-1,o.next_in=u,o.next_out=d,o.avail_in=u<f?f-u+5:5-(u-f),o.avail_out=d<h?h-d+257:257-(d-h),a.hold=g,a.bits=k}},{}],49:[function(n,i,r){var o=n("../utils/common"),s=n("./adler32"),a=n("./crc32"),u=n("./inffast"),f=n("./inftrees"),d=1,c=2,h=0,p=-2,m=1,y=852,v=592;function b(E){return(E>>>24&255)+(E>>>8&65280)+((65280&E)<<8)+((255&E)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new o.Buf16(320),this.work=new o.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function k(E){var F;return E&&E.state?(F=E.state,E.total_in=E.total_out=F.total=0,E.msg="",F.wrap&&(E.adler=1&F.wrap),F.mode=m,F.last=0,F.havedict=0,F.dmax=32768,F.head=null,F.hold=0,F.bits=0,F.lencode=F.lendyn=new o.Buf32(y),F.distcode=F.distdyn=new o.Buf32(v),F.sane=1,F.back=-1,h):p}function w(E){var F;return E&&E.state?((F=E.state).wsize=0,F.whave=0,F.wnext=0,k(E)):p}function T(E,F){var C,I;return E&&E.state?(I=E.state,F<0?(C=0,F=-F):(C=1+(F>>4),F<48&&(F&=15)),F&&(F<8||15<F)?p:(I.window!==null&&I.wbits!==F&&(I.window=null),I.wrap=C,I.wbits=F,w(E))):p}function S(E,F){var C,I;return E?(I=new g,(E.state=I).window=null,(C=T(E,F))!==h&&(E.state=null),C):p}var _,A,D=!0;function x(E){if(D){var F;for(_=new o.Buf32(512),A=new o.Buf32(32),F=0;F<144;)E.lens[F++]=8;for(;F<256;)E.lens[F++]=9;for(;F<280;)E.lens[F++]=7;for(;F<288;)E.lens[F++]=8;for(f(d,E.lens,0,288,_,0,E.work,{bits:9}),F=0;F<32;)E.lens[F++]=5;f(c,E.lens,0,32,A,0,E.work,{bits:5}),D=!1}E.lencode=_,E.lenbits=9,E.distcode=A,E.distbits=5}function B(E,F,C,I){var N,H=E.state;return H.window===null&&(H.wsize=1<<H.wbits,H.wnext=0,H.whave=0,H.window=new o.Buf8(H.wsize)),I>=H.wsize?(o.arraySet(H.window,F,C-H.wsize,H.wsize,0),H.wnext=0,H.whave=H.wsize):(I<(N=H.wsize-H.wnext)&&(N=I),o.arraySet(H.window,F,C-I,N,H.wnext),(I-=N)?(o.arraySet(H.window,F,C-I,I,0),H.wnext=I,H.whave=H.wsize):(H.wnext+=N,H.wnext===H.wsize&&(H.wnext=0),H.whave<H.wsize&&(H.whave+=N))),0}r.inflateReset=w,r.inflateReset2=T,r.inflateResetKeep=k,r.inflateInit=function(E){return S(E,15)},r.inflateInit2=S,r.inflate=function(E,F){var C,I,N,H,Q,ie,ae,M,j,V,L,W,G,$,re,be,Se,ee,we,Ee,P,le,me,J,Y=0,fe=new o.Buf8(4),oe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!E||!E.state||!E.output||!E.input&&E.avail_in!==0)return p;(C=E.state).mode===12&&(C.mode=13),Q=E.next_out,N=E.output,ae=E.avail_out,H=E.next_in,I=E.input,ie=E.avail_in,M=C.hold,j=C.bits,V=ie,L=ae,le=h;e:for(;;)switch(C.mode){case m:if(C.wrap===0){C.mode=13;break}for(;j<16;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if(2&C.wrap&&M===35615){fe[C.check=0]=255&M,fe[1]=M>>>8&255,C.check=a(C.check,fe,2,0),j=M=0,C.mode=2;break}if(C.flags=0,C.head&&(C.head.done=!1),!(1&C.wrap)||(((255&M)<<8)+(M>>8))%31){E.msg="incorrect header check",C.mode=30;break}if((15&M)!=8){E.msg="unknown compression method",C.mode=30;break}if(j-=4,P=8+(15&(M>>>=4)),C.wbits===0)C.wbits=P;else if(P>C.wbits){E.msg="invalid window size",C.mode=30;break}C.dmax=1<<P,E.adler=C.check=1,C.mode=512&M?10:12,j=M=0;break;case 2:for(;j<16;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if(C.flags=M,(255&C.flags)!=8){E.msg="unknown compression method",C.mode=30;break}if(57344&C.flags){E.msg="unknown header flags set",C.mode=30;break}C.head&&(C.head.text=M>>8&1),512&C.flags&&(fe[0]=255&M,fe[1]=M>>>8&255,C.check=a(C.check,fe,2,0)),j=M=0,C.mode=3;case 3:for(;j<32;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}C.head&&(C.head.time=M),512&C.flags&&(fe[0]=255&M,fe[1]=M>>>8&255,fe[2]=M>>>16&255,fe[3]=M>>>24&255,C.check=a(C.check,fe,4,0)),j=M=0,C.mode=4;case 4:for(;j<16;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}C.head&&(C.head.xflags=255&M,C.head.os=M>>8),512&C.flags&&(fe[0]=255&M,fe[1]=M>>>8&255,C.check=a(C.check,fe,2,0)),j=M=0,C.mode=5;case 5:if(1024&C.flags){for(;j<16;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}C.length=M,C.head&&(C.head.extra_len=M),512&C.flags&&(fe[0]=255&M,fe[1]=M>>>8&255,C.check=a(C.check,fe,2,0)),j=M=0}else C.head&&(C.head.extra=null);C.mode=6;case 6:if(1024&C.flags&&(ie<(W=C.length)&&(W=ie),W&&(C.head&&(P=C.head.extra_len-C.length,C.head.extra||(C.head.extra=new Array(C.head.extra_len)),o.arraySet(C.head.extra,I,H,W,P)),512&C.flags&&(C.check=a(C.check,I,W,H)),ie-=W,H+=W,C.length-=W),C.length))break e;C.length=0,C.mode=7;case 7:if(2048&C.flags){if(ie===0)break e;for(W=0;P=I[H+W++],C.head&&P&&C.length<65536&&(C.head.name+=String.fromCharCode(P)),P&&W<ie;);if(512&C.flags&&(C.check=a(C.check,I,W,H)),ie-=W,H+=W,P)break e}else C.head&&(C.head.name=null);C.length=0,C.mode=8;case 8:if(4096&C.flags){if(ie===0)break e;for(W=0;P=I[H+W++],C.head&&P&&C.length<65536&&(C.head.comment+=String.fromCharCode(P)),P&&W<ie;);if(512&C.flags&&(C.check=a(C.check,I,W,H)),ie-=W,H+=W,P)break e}else C.head&&(C.head.comment=null);C.mode=9;case 9:if(512&C.flags){for(;j<16;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if(M!==(65535&C.check)){E.msg="header crc mismatch",C.mode=30;break}j=M=0}C.head&&(C.head.hcrc=C.flags>>9&1,C.head.done=!0),E.adler=C.check=0,C.mode=12;break;case 10:for(;j<32;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}E.adler=C.check=b(M),j=M=0,C.mode=11;case 11:if(C.havedict===0)return E.next_out=Q,E.avail_out=ae,E.next_in=H,E.avail_in=ie,C.hold=M,C.bits=j,2;E.adler=C.check=1,C.mode=12;case 12:if(F===5||F===6)break e;case 13:if(C.last){M>>>=7&j,j-=7&j,C.mode=27;break}for(;j<3;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}switch(C.last=1&M,j-=1,3&(M>>>=1)){case 0:C.mode=14;break;case 1:if(x(C),C.mode=20,F!==6)break;M>>>=2,j-=2;break e;case 2:C.mode=17;break;case 3:E.msg="invalid block type",C.mode=30}M>>>=2,j-=2;break;case 14:for(M>>>=7&j,j-=7&j;j<32;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if((65535&M)!=(M>>>16^65535)){E.msg="invalid stored block lengths",C.mode=30;break}if(C.length=65535&M,j=M=0,C.mode=15,F===6)break e;case 15:C.mode=16;case 16:if(W=C.length){if(ie<W&&(W=ie),ae<W&&(W=ae),W===0)break e;o.arraySet(N,I,H,W,Q),ie-=W,H+=W,ae-=W,Q+=W,C.length-=W;break}C.mode=12;break;case 17:for(;j<14;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if(C.nlen=257+(31&M),M>>>=5,j-=5,C.ndist=1+(31&M),M>>>=5,j-=5,C.ncode=4+(15&M),M>>>=4,j-=4,286<C.nlen||30<C.ndist){E.msg="too many length or distance symbols",C.mode=30;break}C.have=0,C.mode=18;case 18:for(;C.have<C.ncode;){for(;j<3;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}C.lens[oe[C.have++]]=7&M,M>>>=3,j-=3}for(;C.have<19;)C.lens[oe[C.have++]]=0;if(C.lencode=C.lendyn,C.lenbits=7,me={bits:C.lenbits},le=f(0,C.lens,0,19,C.lencode,0,C.work,me),C.lenbits=me.bits,le){E.msg="invalid code lengths set",C.mode=30;break}C.have=0,C.mode=19;case 19:for(;C.have<C.nlen+C.ndist;){for(;be=(Y=C.lencode[M&(1<<C.lenbits)-1])>>>16&255,Se=65535&Y,!((re=Y>>>24)<=j);){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if(Se<16)M>>>=re,j-=re,C.lens[C.have++]=Se;else{if(Se===16){for(J=re+2;j<J;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if(M>>>=re,j-=re,C.have===0){E.msg="invalid bit length repeat",C.mode=30;break}P=C.lens[C.have-1],W=3+(3&M),M>>>=2,j-=2}else if(Se===17){for(J=re+3;j<J;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}j-=re,P=0,W=3+(7&(M>>>=re)),M>>>=3,j-=3}else{for(J=re+7;j<J;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}j-=re,P=0,W=11+(127&(M>>>=re)),M>>>=7,j-=7}if(C.have+W>C.nlen+C.ndist){E.msg="invalid bit length repeat",C.mode=30;break}for(;W--;)C.lens[C.have++]=P}}if(C.mode===30)break;if(C.lens[256]===0){E.msg="invalid code -- missing end-of-block",C.mode=30;break}if(C.lenbits=9,me={bits:C.lenbits},le=f(d,C.lens,0,C.nlen,C.lencode,0,C.work,me),C.lenbits=me.bits,le){E.msg="invalid literal/lengths set",C.mode=30;break}if(C.distbits=6,C.distcode=C.distdyn,me={bits:C.distbits},le=f(c,C.lens,C.nlen,C.ndist,C.distcode,0,C.work,me),C.distbits=me.bits,le){E.msg="invalid distances set",C.mode=30;break}if(C.mode=20,F===6)break e;case 20:C.mode=21;case 21:if(6<=ie&&258<=ae){E.next_out=Q,E.avail_out=ae,E.next_in=H,E.avail_in=ie,C.hold=M,C.bits=j,u(E,L),Q=E.next_out,N=E.output,ae=E.avail_out,H=E.next_in,I=E.input,ie=E.avail_in,M=C.hold,j=C.bits,C.mode===12&&(C.back=-1);break}for(C.back=0;be=(Y=C.lencode[M&(1<<C.lenbits)-1])>>>16&255,Se=65535&Y,!((re=Y>>>24)<=j);){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if(be&&!(240&be)){for(ee=re,we=be,Ee=Se;be=(Y=C.lencode[Ee+((M&(1<<ee+we)-1)>>ee)])>>>16&255,Se=65535&Y,!(ee+(re=Y>>>24)<=j);){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}M>>>=ee,j-=ee,C.back+=ee}if(M>>>=re,j-=re,C.back+=re,C.length=Se,be===0){C.mode=26;break}if(32&be){C.back=-1,C.mode=12;break}if(64&be){E.msg="invalid literal/length code",C.mode=30;break}C.extra=15&be,C.mode=22;case 22:if(C.extra){for(J=C.extra;j<J;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}C.length+=M&(1<<C.extra)-1,M>>>=C.extra,j-=C.extra,C.back+=C.extra}C.was=C.length,C.mode=23;case 23:for(;be=(Y=C.distcode[M&(1<<C.distbits)-1])>>>16&255,Se=65535&Y,!((re=Y>>>24)<=j);){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if(!(240&be)){for(ee=re,we=be,Ee=Se;be=(Y=C.distcode[Ee+((M&(1<<ee+we)-1)>>ee)])>>>16&255,Se=65535&Y,!(ee+(re=Y>>>24)<=j);){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}M>>>=ee,j-=ee,C.back+=ee}if(M>>>=re,j-=re,C.back+=re,64&be){E.msg="invalid distance code",C.mode=30;break}C.offset=Se,C.extra=15&be,C.mode=24;case 24:if(C.extra){for(J=C.extra;j<J;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}C.offset+=M&(1<<C.extra)-1,M>>>=C.extra,j-=C.extra,C.back+=C.extra}if(C.offset>C.dmax){E.msg="invalid distance too far back",C.mode=30;break}C.mode=25;case 25:if(ae===0)break e;if(W=L-ae,C.offset>W){if((W=C.offset-W)>C.whave&&C.sane){E.msg="invalid distance too far back",C.mode=30;break}G=W>C.wnext?(W-=C.wnext,C.wsize-W):C.wnext-W,W>C.length&&(W=C.length),$=C.window}else $=N,G=Q-C.offset,W=C.length;for(ae<W&&(W=ae),ae-=W,C.length-=W;N[Q++]=$[G++],--W;);C.length===0&&(C.mode=21);break;case 26:if(ae===0)break e;N[Q++]=C.length,ae--,C.mode=21;break;case 27:if(C.wrap){for(;j<32;){if(ie===0)break e;ie--,M|=I[H++]<<j,j+=8}if(L-=ae,E.total_out+=L,C.total+=L,L&&(E.adler=C.check=C.flags?a(C.check,N,L,Q-L):s(C.check,N,L,Q-L)),L=ae,(C.flags?M:b(M))!==C.check){E.msg="incorrect data check",C.mode=30;break}j=M=0}C.mode=28;case 28:if(C.wrap&&C.flags){for(;j<32;){if(ie===0)break e;ie--,M+=I[H++]<<j,j+=8}if(M!==(4294967295&C.total)){E.msg="incorrect length check",C.mode=30;break}j=M=0}C.mode=29;case 29:le=1;break e;case 30:le=-3;break e;case 31:return-4;case 32:default:return p}return E.next_out=Q,E.avail_out=ae,E.next_in=H,E.avail_in=ie,C.hold=M,C.bits=j,(C.wsize||L!==E.avail_out&&C.mode<30&&(C.mode<27||F!==4))&&B(E,E.output,E.next_out,L-E.avail_out)?(C.mode=31,-4):(V-=E.avail_in,L-=E.avail_out,E.total_in+=V,E.total_out+=L,C.total+=L,C.wrap&&L&&(E.adler=C.check=C.flags?a(C.check,N,L,E.next_out-L):s(C.check,N,L,E.next_out-L)),E.data_type=C.bits+(C.last?64:0)+(C.mode===12?128:0)+(C.mode===20||C.mode===15?256:0),(V==0&&L===0||F===4)&&le===h&&(le=-5),le)},r.inflateEnd=function(E){if(!E||!E.state)return p;var F=E.state;return F.window&&(F.window=null),E.state=null,h},r.inflateGetHeader=function(E,F){var C;return E&&E.state&&2&(C=E.state).wrap?((C.head=F).done=!1,h):p},r.inflateSetDictionary=function(E,F){var C,I=F.length;return E&&E.state?(C=E.state).wrap!==0&&C.mode!==11?p:C.mode===11&&s(1,F,I,0)!==C.check?-3:B(E,F,I,I)?(C.mode=31,-4):(C.havedict=1,h):p},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,i,r){var o=n("../utils/common"),s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],u=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],f=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];i.exports=function(d,c,h,p,m,y,v,b){var g,k,w,T,S,_,A,D,x,B=b.bits,E=0,F=0,C=0,I=0,N=0,H=0,Q=0,ie=0,ae=0,M=0,j=null,V=0,L=new o.Buf16(16),W=new o.Buf16(16),G=null,$=0;for(E=0;E<=15;E++)L[E]=0;for(F=0;F<p;F++)L[c[h+F]]++;for(N=B,I=15;1<=I&&L[I]===0;I--);if(I<N&&(N=I),I===0)return m[y++]=20971520,m[y++]=20971520,b.bits=1,0;for(C=1;C<I&&L[C]===0;C++);for(N<C&&(N=C),E=ie=1;E<=15;E++)if(ie<<=1,(ie-=L[E])<0)return-1;if(0<ie&&(d===0||I!==1))return-1;for(W[1]=0,E=1;E<15;E++)W[E+1]=W[E]+L[E];for(F=0;F<p;F++)c[h+F]!==0&&(v[W[c[h+F]]++]=F);if(_=d===0?(j=G=v,19):d===1?(j=s,V-=257,G=a,$-=257,256):(j=u,G=f,-1),E=C,S=y,Q=F=M=0,w=-1,T=(ae=1<<(H=N))-1,d===1&&852<ae||d===2&&592<ae)return 1;for(;;){for(A=E-Q,x=v[F]<_?(D=0,v[F]):v[F]>_?(D=G[$+v[F]],j[V+v[F]]):(D=96,0),g=1<<E-Q,C=k=1<<H;m[S+(M>>Q)+(k-=g)]=A<<24|D<<16|x|0,k!==0;);for(g=1<<E-1;M&g;)g>>=1;if(g!==0?(M&=g-1,M+=g):M=0,F++,--L[E]==0){if(E===I)break;E=c[h+v[F]]}if(N<E&&(M&T)!==w){for(Q===0&&(Q=N),S+=C,ie=1<<(H=E-Q);H+Q<I&&!((ie-=L[H+Q])<=0);)H++,ie<<=1;if(ae+=1<<H,d===1&&852<ae||d===2&&592<ae)return 1;m[w=M&T]=N<<24|H<<16|S-y|0}}return M!==0&&(m[S+M]=E-Q<<24|64<<16|0),b.bits=N,0}},{"../utils/common":41}],51:[function(n,i,r){i.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,i,r){var o=n("../utils/common"),s=0,a=1;function u(Y){for(var fe=Y.length;0<=--fe;)Y[fe]=0}var f=0,d=29,c=256,h=c+1+d,p=30,m=19,y=2*h+1,v=15,b=16,g=7,k=256,w=16,T=17,S=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],A=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=new Array(2*(h+2));u(B);var E=new Array(2*p);u(E);var F=new Array(512);u(F);var C=new Array(256);u(C);var I=new Array(d);u(I);var N,H,Q,ie=new Array(p);function ae(Y,fe,oe,pe,de){this.static_tree=Y,this.extra_bits=fe,this.extra_base=oe,this.elems=pe,this.max_length=de,this.has_stree=Y&&Y.length}function M(Y,fe){this.dyn_tree=Y,this.max_code=0,this.stat_desc=fe}function j(Y){return Y<256?F[Y]:F[256+(Y>>>7)]}function V(Y,fe){Y.pending_buf[Y.pending++]=255&fe,Y.pending_buf[Y.pending++]=fe>>>8&255}function L(Y,fe,oe){Y.bi_valid>b-oe?(Y.bi_buf|=fe<<Y.bi_valid&65535,V(Y,Y.bi_buf),Y.bi_buf=fe>>b-Y.bi_valid,Y.bi_valid+=oe-b):(Y.bi_buf|=fe<<Y.bi_valid&65535,Y.bi_valid+=oe)}function W(Y,fe,oe){L(Y,oe[2*fe],oe[2*fe+1])}function G(Y,fe){for(var oe=0;oe|=1&Y,Y>>>=1,oe<<=1,0<--fe;);return oe>>>1}function $(Y,fe,oe){var pe,de,Oe=new Array(v+1),ve=0;for(pe=1;pe<=v;pe++)Oe[pe]=ve=ve+oe[pe-1]<<1;for(de=0;de<=fe;de++){var _e=Y[2*de+1];_e!==0&&(Y[2*de]=G(Oe[_e]++,_e))}}function re(Y){var fe;for(fe=0;fe<h;fe++)Y.dyn_ltree[2*fe]=0;for(fe=0;fe<p;fe++)Y.dyn_dtree[2*fe]=0;for(fe=0;fe<m;fe++)Y.bl_tree[2*fe]=0;Y.dyn_ltree[2*k]=1,Y.opt_len=Y.static_len=0,Y.last_lit=Y.matches=0}function be(Y){8<Y.bi_valid?V(Y,Y.bi_buf):0<Y.bi_valid&&(Y.pending_buf[Y.pending++]=Y.bi_buf),Y.bi_buf=0,Y.bi_valid=0}function Se(Y,fe,oe,pe){var de=2*fe,Oe=2*oe;return Y[de]<Y[Oe]||Y[de]===Y[Oe]&&pe[fe]<=pe[oe]}function ee(Y,fe,oe){for(var pe=Y.heap[oe],de=oe<<1;de<=Y.heap_len&&(de<Y.heap_len&&Se(fe,Y.heap[de+1],Y.heap[de],Y.depth)&&de++,!Se(fe,pe,Y.heap[de],Y.depth));)Y.heap[oe]=Y.heap[de],oe=de,de<<=1;Y.heap[oe]=pe}function we(Y,fe,oe){var pe,de,Oe,ve,_e=0;if(Y.last_lit!==0)for(;pe=Y.pending_buf[Y.d_buf+2*_e]<<8|Y.pending_buf[Y.d_buf+2*_e+1],de=Y.pending_buf[Y.l_buf+_e],_e++,pe===0?W(Y,de,fe):(W(Y,(Oe=C[de])+c+1,fe),(ve=_[Oe])!==0&&L(Y,de-=I[Oe],ve),W(Y,Oe=j(--pe),oe),(ve=A[Oe])!==0&&L(Y,pe-=ie[Oe],ve)),_e<Y.last_lit;);W(Y,k,fe)}function Ee(Y,fe){var oe,pe,de,Oe=fe.dyn_tree,ve=fe.stat_desc.static_tree,_e=fe.stat_desc.has_stree,Ue=fe.stat_desc.elems,st=-1;for(Y.heap_len=0,Y.heap_max=y,oe=0;oe<Ue;oe++)Oe[2*oe]!==0?(Y.heap[++Y.heap_len]=st=oe,Y.depth[oe]=0):Oe[2*oe+1]=0;for(;Y.heap_len<2;)Oe[2*(de=Y.heap[++Y.heap_len]=st<2?++st:0)]=1,Y.depth[de]=0,Y.opt_len--,_e&&(Y.static_len-=ve[2*de+1]);for(fe.max_code=st,oe=Y.heap_len>>1;1<=oe;oe--)ee(Y,Oe,oe);for(de=Ue;oe=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],ee(Y,Oe,1),pe=Y.heap[1],Y.heap[--Y.heap_max]=oe,Y.heap[--Y.heap_max]=pe,Oe[2*de]=Oe[2*oe]+Oe[2*pe],Y.depth[de]=(Y.depth[oe]>=Y.depth[pe]?Y.depth[oe]:Y.depth[pe])+1,Oe[2*oe+1]=Oe[2*pe+1]=de,Y.heap[1]=de++,ee(Y,Oe,1),2<=Y.heap_len;);Y.heap[--Y.heap_max]=Y.heap[1],function(it,xt){var yt,je,ce,ke,Be,Ve,He=xt.dyn_tree,rt=xt.max_code,ct=xt.stat_desc.static_tree,vt=xt.stat_desc.has_stree,_t=xt.stat_desc.extra_bits,Rt=xt.stat_desc.extra_base,zt=xt.stat_desc.max_length,Ot=0;for(ke=0;ke<=v;ke++)it.bl_count[ke]=0;for(He[2*it.heap[it.heap_max]+1]=0,yt=it.heap_max+1;yt<y;yt++)zt<(ke=He[2*He[2*(je=it.heap[yt])+1]+1]+1)&&(ke=zt,Ot++),He[2*je+1]=ke,rt<je||(it.bl_count[ke]++,Be=0,Rt<=je&&(Be=_t[je-Rt]),Ve=He[2*je],it.opt_len+=Ve*(ke+Be),vt&&(it.static_len+=Ve*(ct[2*je+1]+Be)));if(Ot!==0){do{for(ke=zt-1;it.bl_count[ke]===0;)ke--;it.bl_count[ke]--,it.bl_count[ke+1]+=2,it.bl_count[zt]--,Ot-=2}while(0<Ot);for(ke=zt;ke!==0;ke--)for(je=it.bl_count[ke];je!==0;)rt<(ce=it.heap[--yt])||(He[2*ce+1]!==ke&&(it.opt_len+=(ke-He[2*ce+1])*He[2*ce],He[2*ce+1]=ke),je--)}}(Y,fe),$(Oe,st,Y.bl_count)}function P(Y,fe,oe){var pe,de,Oe=-1,ve=fe[1],_e=0,Ue=7,st=4;for(ve===0&&(Ue=138,st=3),fe[2*(oe+1)+1]=65535,pe=0;pe<=oe;pe++)de=ve,ve=fe[2*(pe+1)+1],++_e<Ue&&de===ve||(_e<st?Y.bl_tree[2*de]+=_e:de!==0?(de!==Oe&&Y.bl_tree[2*de]++,Y.bl_tree[2*w]++):_e<=10?Y.bl_tree[2*T]++:Y.bl_tree[2*S]++,Oe=de,st=(_e=0)===ve?(Ue=138,3):de===ve?(Ue=6,3):(Ue=7,4))}function le(Y,fe,oe){var pe,de,Oe=-1,ve=fe[1],_e=0,Ue=7,st=4;for(ve===0&&(Ue=138,st=3),pe=0;pe<=oe;pe++)if(de=ve,ve=fe[2*(pe+1)+1],!(++_e<Ue&&de===ve)){if(_e<st)for(;W(Y,de,Y.bl_tree),--_e!=0;);else de!==0?(de!==Oe&&(W(Y,de,Y.bl_tree),_e--),W(Y,w,Y.bl_tree),L(Y,_e-3,2)):_e<=10?(W(Y,T,Y.bl_tree),L(Y,_e-3,3)):(W(Y,S,Y.bl_tree),L(Y,_e-11,7));Oe=de,st=(_e=0)===ve?(Ue=138,3):de===ve?(Ue=6,3):(Ue=7,4)}}u(ie);var me=!1;function J(Y,fe,oe,pe){L(Y,(f<<1)+(pe?1:0),3),function(de,Oe,ve,_e){be(de),V(de,ve),V(de,~ve),o.arraySet(de.pending_buf,de.window,Oe,ve,de.pending),de.pending+=ve}(Y,fe,oe)}r._tr_init=function(Y){me||(function(){var fe,oe,pe,de,Oe,ve=new Array(v+1);for(de=pe=0;de<d-1;de++)for(I[de]=pe,fe=0;fe<1<<_[de];fe++)C[pe++]=de;for(C[pe-1]=de,de=Oe=0;de<16;de++)for(ie[de]=Oe,fe=0;fe<1<<A[de];fe++)F[Oe++]=de;for(Oe>>=7;de<p;de++)for(ie[de]=Oe<<7,fe=0;fe<1<<A[de]-7;fe++)F[256+Oe++]=de;for(oe=0;oe<=v;oe++)ve[oe]=0;for(fe=0;fe<=143;)B[2*fe+1]=8,fe++,ve[8]++;for(;fe<=255;)B[2*fe+1]=9,fe++,ve[9]++;for(;fe<=279;)B[2*fe+1]=7,fe++,ve[7]++;for(;fe<=287;)B[2*fe+1]=8,fe++,ve[8]++;for($(B,h+1,ve),fe=0;fe<p;fe++)E[2*fe+1]=5,E[2*fe]=G(fe,5);N=new ae(B,_,c+1,h,v),H=new ae(E,A,0,p,v),Q=new ae(new Array(0),D,0,m,g)}(),me=!0),Y.l_desc=new M(Y.dyn_ltree,N),Y.d_desc=new M(Y.dyn_dtree,H),Y.bl_desc=new M(Y.bl_tree,Q),Y.bi_buf=0,Y.bi_valid=0,re(Y)},r._tr_stored_block=J,r._tr_flush_block=function(Y,fe,oe,pe){var de,Oe,ve=0;0<Y.level?(Y.strm.data_type===2&&(Y.strm.data_type=function(_e){var Ue,st=4093624447;for(Ue=0;Ue<=31;Ue++,st>>>=1)if(1&st&&_e.dyn_ltree[2*Ue]!==0)return s;if(_e.dyn_ltree[18]!==0||_e.dyn_ltree[20]!==0||_e.dyn_ltree[26]!==0)return a;for(Ue=32;Ue<c;Ue++)if(_e.dyn_ltree[2*Ue]!==0)return a;return s}(Y)),Ee(Y,Y.l_desc),Ee(Y,Y.d_desc),ve=function(_e){var Ue;for(P(_e,_e.dyn_ltree,_e.l_desc.max_code),P(_e,_e.dyn_dtree,_e.d_desc.max_code),Ee(_e,_e.bl_desc),Ue=m-1;3<=Ue&&_e.bl_tree[2*x[Ue]+1]===0;Ue--);return _e.opt_len+=3*(Ue+1)+5+5+4,Ue}(Y),de=Y.opt_len+3+7>>>3,(Oe=Y.static_len+3+7>>>3)<=de&&(de=Oe)):de=Oe=oe+5,oe+4<=de&&fe!==-1?J(Y,fe,oe,pe):Y.strategy===4||Oe===de?(L(Y,2+(pe?1:0),3),we(Y,B,E)):(L(Y,4+(pe?1:0),3),function(_e,Ue,st,it){var xt;for(L(_e,Ue-257,5),L(_e,st-1,5),L(_e,it-4,4),xt=0;xt<it;xt++)L(_e,_e.bl_tree[2*x[xt]+1],3);le(_e,_e.dyn_ltree,Ue-1),le(_e,_e.dyn_dtree,st-1)}(Y,Y.l_desc.max_code+1,Y.d_desc.max_code+1,ve+1),we(Y,Y.dyn_ltree,Y.dyn_dtree)),re(Y),pe&&be(Y)},r._tr_tally=function(Y,fe,oe){return Y.pending_buf[Y.d_buf+2*Y.last_lit]=fe>>>8&255,Y.pending_buf[Y.d_buf+2*Y.last_lit+1]=255&fe,Y.pending_buf[Y.l_buf+Y.last_lit]=255&oe,Y.last_lit++,fe===0?Y.dyn_ltree[2*oe]++:(Y.matches++,fe--,Y.dyn_ltree[2*(C[oe]+c+1)]++,Y.dyn_dtree[2*j(fe)]++),Y.last_lit===Y.lit_bufsize-1},r._tr_align=function(Y){L(Y,2,3),W(Y,k,B),function(fe){fe.bi_valid===16?(V(fe,fe.bi_buf),fe.bi_buf=0,fe.bi_valid=0):8<=fe.bi_valid&&(fe.pending_buf[fe.pending++]=255&fe.bi_buf,fe.bi_buf>>=8,fe.bi_valid-=8)}(Y)}},{"../utils/common":41}],53:[function(n,i,r){i.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,i,r){(function(o){(function(s,a){if(!s.setImmediate){var u,f,d,c,h=1,p={},m=!1,y=s.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(s);v=v&&v.setTimeout?v:s,u={}.toString.call(s.process)==="[object process]"?function(w){process.nextTick(function(){g(w)})}:function(){if(s.postMessage&&!s.importScripts){var w=!0,T=s.onmessage;return s.onmessage=function(){w=!1},s.postMessage("","*"),s.onmessage=T,w}}()?(c="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",k,!1):s.attachEvent("onmessage",k),function(w){s.postMessage(c+w,"*")}):s.MessageChannel?((d=new MessageChannel).port1.onmessage=function(w){g(w.data)},function(w){d.port2.postMessage(w)}):y&&"onreadystatechange"in y.createElement("script")?(f=y.documentElement,function(w){var T=y.createElement("script");T.onreadystatechange=function(){g(w),T.onreadystatechange=null,f.removeChild(T),T=null},f.appendChild(T)}):function(w){setTimeout(g,0,w)},v.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var T=new Array(arguments.length-1),S=0;S<T.length;S++)T[S]=arguments[S+1];var _={callback:w,args:T};return p[h]=_,u(h),h++},v.clearImmediate=b}function b(w){delete p[w]}function g(w){if(m)setTimeout(g,0,w);else{var T=p[w];if(T){m=!0;try{(function(S){var _=S.callback,A=S.args;switch(A.length){case 0:_();break;case 1:_(A[0]);break;case 2:_(A[0],A[1]);break;case 3:_(A[0],A[1],A[2]);break;default:_.apply(a,A)}})(T)}finally{b(w),m=!1}}}}function k(w){w.source===s&&typeof w.data=="string"&&w.data.indexOf(c)===0&&g(+w.data.slice(c.length))}})(typeof self>"u"?o===void 0?this:o:self)}).call(this,typeof sm<"u"?sm:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(mK);var OSe=mK.exports;const FSe=bE(OSe);async function PSe(e){return new Promise((t,n)=>{FSe.loadAsync(e).then(function(i){const r=[];i.forEach((o,s)=>{r.push(s.name)}),t(r)},function(i){n(e.name+"@ "+i.message)})})}function jSe(e){return[...e].map(t=>t.charCodeAt(0))}function ISe(e,t=0){const n=Number.parseInt(e.toString("utf8",148,154).replace(/\0.*$/,"").trim(),8);if(Number.isNaN(n))return!1;let i=8*32;for(let r=t;r<t+148;r++)i+=e[r];for(let r=t+156;r<t+512;r++)i+=e[r];return n===i}const RSe=4100;function NSe(e,t,n){n={offset:0,...n};for(const[i,r]of t.entries())if(n.mask){if(r!==(n.mask[i]&e[i+n.offset]))return!1}else if(r!==e[i+n.offset])return!1;return!0}class MSe{constructor(t){this.blobRaw=t}check(t,n){return NSe(this.buffer,t,n)}checkString(t,n){return this.check(jSe(t),n)}async parse(t){if(this.buffer=t,this.check([66,77]))return{ext:"bmp",mime:"image/bmp"};if(this.check([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(this.check([71,73,70]))return{ext:"gif",mime:"image/gif"};if(this.check([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(this.check([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(this.checkString("FLIF"))return{ext:"flif",mime:"image/flif"};if(this.checkString("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(this.checkString("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(this.checkString("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(this.checkString("FORM"))return{ext:"aif",mime:"audio/aiff"};if(this.checkString("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(this.checkString("ftyp",{offset:4})&&this.buffer[8]&96){const n=this.buffer.toString("binary",8,12).replace("\0"," ").trim();switch(n){case"avif":case"avis":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return n.startsWith("3g")?n.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(this.checkString("MThd"))return{ext:"mid",mime:"audio/midi"};if(this.checkString("wOFF")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(this.checkString("wOF2")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(this.check([212,195,178,161])||this.check([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(this.checkString("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(this.checkString("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(this.checkString("fLaC"))return{ext:"flac",mime:"audio/x-flac"};if(this.check([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(this.checkString("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(this.checkString("%PDF"))return{ext:"pdf",mime:"application/pdf"};if(this.check([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(this.checkString("MAC "))return{ext:"ape",mime:"audio/ape"};if(this.check([82,73,70,70])){if(this.check([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(this.check([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(this.check([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(this.checkString("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(this.check([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(this.checkString("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(this.checkString("MSCF")||this.checkString("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(this.check([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(this.check([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(this.check([40,181,47,253]))return{ext:"zst",mime:"application/zstd"};if(this.check([127,69,76,70]))return{ext:"elf",mime:"application/x-elf"};if(this.check([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(this.checkString("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(this.checkString("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(this.check([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(this.checkString("IMPM"))return{ext:"it",mime:"audio/x-it"};if(this.checkString("-lh0-",{offset:2})||this.checkString("-lh1-",{offset:2})||this.checkString("-lh2-",{offset:2})||this.checkString("-lh3-",{offset:2})||this.checkString("-lh4-",{offset:2})||this.checkString("-lh5-",{offset:2})||this.checkString("-lh6-",{offset:2})||this.checkString("-lh7-",{offset:2})||this.checkString("-lzs-",{offset:2})||this.checkString("-lz4-",{offset:2})||this.checkString("-lz5-",{offset:2})||this.checkString("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(this.check([0,0,1,186])){if(this.check([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(this.check([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(this.checkString("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(this.check([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(this.checkString("<?xml "))return{ext:"xml",mime:"application/xml"};if(this.check([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(this.check([82,97,114,33,26,7])&&(this.buffer[6]===0||this.buffer[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(this.checkString("solid "))return{ext:"stl",mime:"model/stl"};if(this.check([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(this.check([65,82,82,79,87,49,0,0]))return{ext:"arrow",mime:"application/x-apache-arrow"};if(this.check([103,108,84,70,2,0,0,0]))return{ext:"glb",mime:"model/gltf-binary"};if(this.check([102,114,101,101],{offset:4})||this.check([109,100,97,116],{offset:4})||this.check([109,111,111,118],{offset:4})||this.check([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(this.check([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(this.checkString("gimp xcf "))return{ext:"xcf",mime:"image/x-xcf"};if(this.check([73,73,85,0,24,0,0,0,136,231,116,216]))return{ext:"rw2",mime:"image/x-panasonic-rw2"};if(this.check([48,38,178,117,142,102,207,17,166,217]))return{ext:"asf",mime:"application/vnd.ms-asf"};if(this.check([171,75,84,88,32,49,49,187,13,10,26,10]))return{ext:"ktx",mime:"image/ktx"};if((this.check([126,16,4])||this.check([126,24,4]))&&this.check([48,77,73,69],{offset:4}))return{ext:"mie",mime:"application/x-mie"};if(this.check([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2}))return{ext:"shp",mime:"application/x-esri-shape"};if(this.check([0,0,0,12,106,80,32,32,13,10,135,10]))return{ext:"jp2",mime:"image/jp2"};if(this.check([255,10])||this.check([0,0,0,12,74,88,76,32,13,10,135,10]))return{ext:"jxl",mime:"image/jxl"};if(this.check([254,255]))return this.check([0,60,0,63,0,120,0,109,0,108],{offset:2})?{ext:"xml",mime:"application/xml"}:void 0;if(this.check([0,0,1,186])||this.check([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(this.check([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(this.check([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(this.check([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(this.check([208,207,17,224,161,177,26,225]))return{ext:"cfb",mime:"application/x-cfb"};if(this.checkString("BEGIN:")){if(this.checkString("VCARD",{offset:6}))return{ext:"vcf",mime:"text/vcard"};if(this.checkString("VCALENDAR",{offset:6}))return{ext:"ics",mime:"text/calendar"}}if(this.checkString("FUJIFILMCCD-RAW"))return{ext:"raf",mime:"image/x-fujifilm-raf"};if(this.checkString("Extended Module:"))return{ext:"xm",mime:"audio/x-xm"};if(this.checkString("Creative Voice File"))return{ext:"voc",mime:"audio/x-voc"};if(this.check([4,0,0,0])&&this.buffer.length>=16){const n=this.buffer.readUInt32LE(12);if(n>12&&this.buffer.length>=n+16)try{const i=this.buffer.slice(16,n+16).toString();if(JSON.parse(i).files)return{ext:"asar",mime:"application/x-asar"}}catch{}}if(this.check([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(this.checkString("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(this.check([71])&&this.check([71],{offset:188}))return{ext:"mts",mime:"video/mp2t"};if(this.check([71],{offset:4})&&this.check([71],{offset:196}))return{ext:"mts",mime:"video/mp2t"};if(this.check([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(this.check([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(this.check([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(this.check([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(this.check([76,80],{offset:34})&&(this.check([0,0,1],{offset:8})||this.check([1,0,2],{offset:8})||this.check([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(this.check([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(ISe(this.buffer))return{ext:"tar",mime:"application/x-tar"};if(this.check([255,254]))return this.check([60,0,63,0,120,0,109,0,108,0],{offset:2})?{ext:"xml",mime:"application/xml"}:this.check([255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0],{offset:2})?{ext:"skp",mime:"application/vnd.sketchup.skp"}:void 0;if(this.checkString("-----BEGIN PGP MESSAGE-----"))return{ext:"pgp",mime:"application/pgp-encrypted"};if(this.buffer.length>=2&&this.check([255,224],{offset:0,mask:[255,224]})){if(this.check([16],{offset:1,mask:[22]}))return this.check([8],{offset:1,mask:[8]})?{ext:"aac",mime:"audio/aac"}:{ext:"aac",mime:"audio/aac"};if(this.check([2],{offset:1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(this.check([4],{offset:1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(this.check([6],{offset:1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}if(this.check([208,207,17,224,161,177,26,225])||this.checkString("WPS2001"))return{ext:"doc",mime:"application/x-indesign"};if(this.check([80,75,3,4])){const n=await PSe(this.blobRaw);for(;n.length;){const i=n.pop();if(Ke.endsWith(i,".rels")||Ke.endsWith(i,".xml"))switch(i.split("/")[0]){case"_rels":break;case"word":return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};case"ppt":return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};case"xl":return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}if(Ke.startsWith(i,"xl/"))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};if(Ke.startsWith(i,"3D/")&&Ke.endsWith(i,".model"))return{ext:"3mf",mime:"model/3mf"}}return{ext:"zip",mime:"application/zip"}}return{ext:"",mime:"unknow"}}}function LSe(e){return new Promise((t,n)=>{const i=new FileReader;i.onload=()=>{t(i.result)},i.onerror=n,i.readAsArrayBuffer(e.slice(0,RSe))})}async function vK(e){try{const t=await LSe(e),n=new Uint8Array(t);return new MSe(e).parse(n)}catch(t){throw t}}class zSe{constructor(){this.cosConfig=null,this.uploadUrl=null}getAuthorization(t,n){if(this.uploadUrl){var i=this,r=this.uploadUrl,o=new XMLHttpRequest;o.open("GET",r,!0),o.withCredentials=!0,o.setRequestHeader("Content-Type","application/json"),o.onload=function(s){var f,d,c,h;try{var a=JSON.parse(s.target.responseText),u=((f=a==null?void 0:a.data)==null?void 0:f.cos_sts_token)||{}}catch{}!a||!u||(i.cosConfig=u,n&&n({TmpSecretId:(d=u==null?void 0:u.credentials)==null?void 0:d.tmpSecretId,TmpSecretKey:(c=u==null?void 0:u.credentials)==null?void 0:c.tmpSecretKey,SecurityToken:(h=u==null?void 0:u.credentials)==null?void 0:h.sessionToken,ExpiredTime:u.expiredTime||"",ScopeLimit:!0}))},t?o.send(JSON.stringify(t.Scope)):o.send()}}initCos(){var t=this;this.cosInstance=new TSe({getAuthorization:function(n,i){t.getAuthorization(n,i)}})}async getFileNameType(t){const n=await vK((t==null?void 0:t.raw)||t);if(n.name=t.name,!n.ext){const i=t.name.split(".");n.ext=i.pop()}return n}async handleUploadFiles(t,n,{onProgress:i,onFileFinish:r,handlePath:o}){var a,u;const s=[];for(let f=0;f<t.length;f++){const d=t[f];if(d.uploadPercent||d.uploadDone==="done")continue;const c=await this.getFileNameType(d),h=o(c);t[f].fileType=c,t[f].keyPath=h;const p={Bucket:((a=this==null?void 0:this.cosConfig)==null?void 0:a.bucket)||"",Region:((u=this==null?void 0:this.cosConfig)==null?void 0:u.region)||"",Key:h,Body:d.raw};s.push(p),t[f].cosConfig=p,n||this.handleCosUploadSingle(t[f],i,r)}n&&this.cosInstance.uploadFiles({files:s,SliceSize:1024*1024*20,onProgress:function(f){var d=parseInt(f.percent*1e4)/100,c=parseInt(f.speed/1024/1024*100)/100;i&&i(d,f)},onFileFinish:function(f,d,c){r&&r(f,d,c,s)}},(f,d)=>{})}handleCosUploadSingle(t,n,i){this.cosInstance.uploadFile({...t.cosConfig,SliceSize:1024*1024*20,onProgress:function(r){var o=parseInt(r.percent*1e4)/100,s=parseInt(r.speed/1024/1024*100)/100;n&&n(o,r),t.uploadPercent=o},onFileFinish:function(r,o,s){if(r)t.uploadDone="file";else{const a=`/${s.Key}`;t.uploadDone="done",t.org_url=a}i&&i(r,o,s,t)}})}getInstance(t){return this.uploadUrl=t,this.cosInstance||(this.getAuthorization(),this.initCos(t)),this.cosInstance}}const Bb=new zSe,VSe={key:0,class:"fx mb10 fxb"},USe={class:"fx"},Db={__name:"pasteUpload",props:{copy:{type:Boolean,default:!1},btnText:{type:String,default:""},limit:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},btnList:{type:Array,default:()=>[]}},emits:["after-btn-click","upload-paste","after-btns-click"],setup(e,{emit:t}){const n=e,i=t;function r(d){try{fetch(""+d,{headers:{Accept:"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"}}).then(h=>{if(!h.ok)throw(h.type==="cors"||h.status===403||h.statusText==="Forbidden")&&lt.ElMessage.error(Pe("该网站可能有防爬机制,请保存后上传或者截图黏贴")),new Error("Network response was not ok");return h.blob()}).then(h=>{const p=new File([h],"image.jpg",{type:h.type});a(p)}).catch(h=>{lt.ElMessage.error(Pe("该网站可能有防爬机制,请保存后上传或者截图黏贴"))})}catch{}}const o=d=>{const h=/<img.*?src="(.*?)".*?>/g.exec(d),p=h&&h[1];p&&r(p)},s=d=>{var p,m;var c=d.clipboardData||d.originalEvent.clipboardData||window.clipboardData;let h=(c==null?void 0:c.items[1])||(c==null?void 0:c.items[0])||"";if(n.limit)return lt.ElMessage.error(Pe("只能上传一张图片"));if(!h)return lt.ElMessage.error(Pe("当前浏览器不支持本地图片粘贴"));if((p=h==null?void 0:h.type)!=null&&p.includes("image")){let y=h.getAsFile();a(y)}else if((m=h==null?void 0:h.type)!=null&&m.includes("text/html")){const y=c.getData("text/html");y&&o(y)}else return lt.ElMessage.error(Pe("粘贴内容非图片"))};function a(d){i("upload-paste",d)}function u(){i("after-btn-click")}function f(d){i("after-btns-click",d,r)}return(d,c)=>{var m;const h=l.resolveComponent("el-input"),p=l.resolveComponent("el-button");return e.copy||e.btnText||(m=e.btnList)!=null&&m.length?(l.openBlock(),l.createElementBlock("div",VSe,[e.copy?(l.openBlock(),l.createBlock(h,{key:0,class:"paste-img-wrapper",disabled:e.disabled,placeholder:l.unref(Pe)("在此处粘贴图片即上传"),rows:2,type:"textarea",onPaste:s},null,8,["disabled","placeholder"])):l.createCommentVNode("",!0),l.createElementVNode("div",USe,[e.btnText?(l.openBlock(),l.createBlock(p,{key:0,class:"ml10",disabled:e.disabled,size:"small",type:"primary",onClick:u},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(Pe)(e.btnText)||l.unref(Pe)("从素材库选")),1)]),_:1},8,["disabled"])):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.btnList,(y,v)=>(l.openBlock(),l.createBlock(p,l.mergeProps({key:v,size:"small",type:"primary",ref_for:!0},y.attrs,{onClick:b=>f(y)}),{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(y==null?void 0:y.title),1)]),_:2},1040,["onClick"]))),128))])])):l.createCommentVNode("",!0)}}},HSe=Object.freeze(Object.defineProperty({__proto__:null,default:Db},Symbol.toStringTag,{value:"Module"})),qSe=l.defineComponent({name:"JwtFileUpload",components:{PasteUpload:Db},props:{module:{type:String,default:"/"},id:{type:String,default:""},limit:{type:Number,default:5},modelValue:{type:Array,default:()=>[]},accept:{type:String,default:""},limitSize:{type:[String,Number],default:1024*500},isCosSdk:{type:Boolean,default:!0},isCosBacthUpload:{type:Boolean,default:!0},copyImgUploade:{type:Boolean,default:!1}},emits:["on-success","update:modelValue","onChange","upload-success"],setup(e,{emit:t}){var n=null;const i=Nn(),r=l.reactive({fileName:"",fileList:l.computed({get:()=>e.modelValue||"",set:k=>{t("update:modelValue",k)}}),extraParams:{module:e.module,name:"",id:e.id},uploadFiles:[],uploadSuccessFiles:[],uploadFileNum:0,selectUploadFileNum:0,uploadTips:"",uploadProgress:!1,uploadPercent:0}),o=l.ref(null),s=(k,w)=>{},a=k=>{},u=(k,w)=>{t("on-success",w)},f=k=>{if(!i.uploadImgUrl)return lt.ElMessage.error(Pe("请配置上传的路径地址"));r.extraParams.name=k.name;const w=parseInt(e.limitSize),T=w/1024,S=k.size/1024<w;return S||(T>1?lt.ElMessage.error(`${Pe("上传文件大小不能超过")} ${T}MB!`):lt.ElMessage.error(`${Pe("上传文件大小不能超过")} ${w}KB!`)),S},d=(k,w)=>{lt.ElMessage.warning(`${Pe("最多上传")}${e.limit}${Pe("文件")},${Pe("您选择了")}${w.length}${Pe("个文件,请重新选择")}`)},c=(k,w)=>{},h=(k,w)=>{if(!e.isCosSdk)return;r.uploadFiles.push(k);let T=w.length;r.selectUploadFileNum=Math.max(T,r.selectUploadFileNum),setTimeout(()=>{r.selectUploadFileNum!==T||r.uploadProgress&&e.isCosBacthUpload||(r.uploadProgress=!0,r.uploadTips=Pe("正在上传中"),r.uploadSuccessFiles=[],p(r.uploadFiles))},50)},p=async k=>{Bb.handleUploadFiles(k,e.isCosBacthUpload,{onProgress:m,onFileFinish:y,handlePath:v})},m=(k,w)=>{e.isCosBacthUpload&&(r.uploadPercent=k)},y=(k,w,T,S)=>{if(e.isCosBacthUpload)if(k)lt.ElMessage.error(Pe("上传失败请重新上传")),r.uploadTips=Pe("上传失败请重新上传"),r.uploadProgress=!1,r.uploadFileNum=0,r.uploadPercent=0;else{r.uploadFileNum+=1;const _=r.uploadFiles.findIndex(A=>A.keyPath===T.Key);_>=0&&(r.uploadFiles[_].uploadDone="done",r.uploadFiles[_].uploadPercent=100,t("upload-success",r.uploadFiles[_],r.uploadFileNum===S.length)),r.uploadFileNum===S.length&&(r.uploadTips=Pe("上传完成"),setTimeout(()=>{r.uploadProgress=!1,r.uploadFileNum=0,r.uploadPercent=0},500))}else k?lt.ElMessage.error(Pe("上传失败请重新上传")):t("upload-success",S,!0)},v=k=>`${ir.get("companyId")}/${e.module}/${fa().format("YYYYMMDD")}/${u7(k.name+`${c7(0,1e4)}`)}.${k.ext}`,b=()=>{n=Bb.getInstance(i.txCosUploadFileUrl)},g=k=>{o.value.handleStart(k),o.value.submit()};return l.onMounted(()=>{e.isCosSdk&&b()}),{uploadRef:o,appOptions:i,...l.toRefs(r),handleRemove:s,handlePreview:a,handleExceed:d,beforeRemove:c,handleBeforeUpload:f,onSuccess:u,t:Pe,handleUploadOnChange:h,handleUploadPaste:g}}}),WSe={class:"w"},KSe={class:"el-upload__text",style:{"min-width":"300px"}},GSe={key:0},JSe={class:"cd"};function YSe(e,t,n,i,r,o){const s=l.resolveComponent("PasteUpload"),a=l.resolveComponent("el-icon"),u=l.resolveComponent("el-upload"),f=l.resolveComponent("el-progress");return l.openBlock(),l.createElementBlock("div",null,[l.createElementVNode("div",WSe,[l.createVNode(s,{copy:e.copyImgUploade,limit:0,onUploadPaste:e.handleUploadPaste},null,8,["copy","onUploadPaste"])]),l.createVNode(u,{ref:"uploadRef","file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=d=>e.fileList=d),accept:e.accept,action:e.appOptions.uploadImgUrl,"auto-upload":!e.isCosSdk,"before-remove":e.beforeRemove,"before-upload":e.handleBeforeUpload,data:e.extraParams,drag:"",limit:e.limit,multiple:"",name:"filedata","on-change":e.handleUploadOnChange,"on-exceed":e.handleExceed,"on-preview":e.handlePreview,"on-remove":e.handleRemove,"on-success":e.onSuccess,"with-credentials":""},{default:l.withCtx(()=>[l.createVNode(a,{class:"el-icon--upload"},{default:l.withCtx(()=>t[1]||(t[1]=[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6H544z",fill:"currentColor"})],-1)])),_:1}),l.createElementVNode("div",KSe,[l.createElementVNode("em",null,l.toDisplayString(e.t("上传文件")),1)])]),_:1},8,["file-list","accept","action","auto-upload","before-remove","before-upload","data","limit","on-change","on-exceed","on-preview","on-remove","on-success"]),e.isCosBacthUpload&&e.uploadProgress?(l.openBlock(),l.createElementBlock("div",GSe,[l.createVNode(f,{percentage:e.uploadPercent},null,8,["percentage"]),l.createElementVNode("span",JSe,l.toDisplayString(e.uploadTips),1)])):l.createCommentVNode("",!0)])}const XSe=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(qSe,[["render",YSe]])},Symbol.toStringTag,{value:"Module"})),ZSe={key:0},QSe={key:1},$Se={key:0},yK={__name:"FormLabel",props:{config:{type:Object,default:()=>{}},label:{type:[String,Function],default:""},showColon:{type:Boolean,default:!1},row:{type:Object,default:()=>{}}},setup(e){const t=e,n=l.computed(()=>{var o;let r=((o=t.config)==null?void 0:o.label)||t.label;return Ke.isFunction(r)&&(r=r(t.row)),Pe(r)}),i=l.computed(()=>{var o;let r=(o=t.config)==null?void 0:o.tips;return r?(Ke.isFunction(r)&&(r=r(t.row)),r?Pe(r):""):""});return(r,o)=>{const s=l.resolveComponent("el-tooltip");return i.value?(l.openBlock(),l.createBlock(s,{key:0,content:i.value,effect:"dark",placement:"bottom",persistent:!1},{default:l.withCtx(()=>[l.createElementVNode("span",null,[l.createTextVNode(l.toDisplayString(n.value)+" ",1),e.showColon?(l.openBlock(),l.createElementBlock("span",ZSe,":")):l.createCommentVNode("",!0)])]),_:1},8,["content"])):(l.openBlock(),l.createElementBlock("span",QSe,[l.createTextVNode(l.toDisplayString(n.value)+" ",1),e.showColon?(l.openBlock(),l.createElementBlock("span",$Se,":")):l.createCommentVNode("",!0)]))}}},exe=Object.freeze(Object.defineProperty({__proto__:null,default:yK},Symbol.toStringTag,{value:"Module"})),txe=l.defineComponent({name:"JwtForm",components:{FormLabel:yK},props:{modelValue:{require:!0,type:[Object,Function],default:()=>{}},config:{require:!0,type:[Object,Function],default:()=>{}},isSearch:{type:Boolean,default:!1},selectionRowIds:{type:String,default:""},selectionRow:{type:Array,default:()=>[]}},emits:["submit","reset","update:modelValue","add-success","edit-success","get-detail-success","error","upload-btn","add-option","picture-action","item-change","after-btns-click"],setup(e,{emit:t}){const n=Nn(),i=l.reactive({loading:!1,fold:!1,init:1}),r=l.ref(null),o=l.ref({});let s={};const a=l.computed(()=>{var V;if(!(e!=null&&e.config))return{};let j=Ke.cloneDeep(e.config);return(V=j==null?void 0:j.formList)!=null&&V.length&&on.hasArray(j==null?void 0:j.formList)&&(j.formList=NJ(j.formList)),Object.freeze(j)}),u=l.computed(()=>{var j,V;return(V=(j=a.value)==null?void 0:j.formList)==null?void 0:V.filter(L=>L.type==="divider")}),f=l.computed(()=>{var re,be,Se,ee;const j=((re=a.value)==null?void 0:re.formList)||[],V=j.length;let L={condition:new Array(V).fill(!0),show:new Array(V).fill(!0),formItemClass:new Array(V).fill("")};const W=i.fold,G=((be=a.value)==null?void 0:be.showNum)||0,$=((Se=a.value)==null?void 0:Se.formAttrs)||{};for(let we=0;we<V;we++){const Ee=j[we],P=Ee.condition?Ee.condition(o.value):!0,le=W||!G||G>we,me=[((ee=Ee==null?void 0:Ee.labelAttrs)==null?void 0:ee.labelWidth)==="0px"||($==null?void 0:$.labelWidth)==="0px"?"empty-label":"",Ee.type==="tips"?"tips-form-item":""];L.condition[we]=P,L.show[we]=le,L.formItemClass[we]=me}return L}),d=(j={},V=!1)=>{var G,$;const L=V||i.init,W={...j};return a.value.formList.forEach(re=>{C7(re,j,W,L)}),i.init=(i.init+1)%4,(G=a.value.api)!=null&&G.detailCallBack&&Ke.isFunction(a.value.api.detailCallBack)?($=a.value.api)==null?void 0:$.detailCallBack(W,j):W},c=async()=>{let j=!0;return await r.value.validate(V=>{j=V}),j},h=async()=>{var L,W;let j={};const V=LJ(a.value.formList,j,o.value);return V!=null&&V.length||(j={...o.value}),a.value.formEditParams&&on.hasObject(a.value.formEditParams)&&Object.assign(j,a.value.formEditParams),await((W=(L=a.value)==null?void 0:L.beforeReq)==null?void 0:W.call(L,j,o.value,e.selectionRowIds,e.selectionRow))||j},p=async(j=null)=>{var W;let V=j||{},L=!o.value.id;return(W=a.value)!=null&&W.isAddFun&&Ke.isFunction(a.value.isAddFun)&&(L=a.value.isAddFun(V,o.value)),L},m=async(j="",V={})=>{var G,$,re,be,Se,ee,we,Ee;if(!await c())return;let W=await h();if((G=Object.keys(V))!=null&&G.length&&(W={...W,...V}),(re=($=a==null?void 0:a.value)==null?void 0:$.api)!=null&&re.add||(Se=(be=a==null?void 0:a.value)==null?void 0:be.api)!=null&&Se.update){if(!(W instanceof FormData)){if(((ee=Object.keys(W))==null?void 0:ee.length)===0){t("error");return}}i.loading=!0;let P=yB((we=a.value)==null?void 0:we.api,W,o.value);if((Ee=P==null?void 0:P.contentType)!=null&&Ee.includes("multipart/form-data")&&!(W instanceof FormData)){let me=new FormData;for(const J in W){const Y=W[J];Y!==void 0&&me.append(J,Y)}W=me}await p(W)?n.request({url:a.value.api.add,method:"post",data:W,...P}).then(me=>{var J,Y,fe,oe;i.loading=!1,(J=a.value.api)!=null&&J.addCallback&&on.isFunction((Y=a.value.api)==null?void 0:Y.addCallback)&&((oe=(fe=a.value.api)==null?void 0:fe.addCallback)==null||oe.call(fe,me,W)),t("add-success",me,j||"add"),j==="addSave"&&l.nextTick(()=>{i.init=!0})}).catch(()=>{i.loading=!1,t("error")}):(W.id=o.value.id,n.request({url:a.value.api.update,method:"post",data:W,...P}).then(me=>{var J,Y,fe,oe;i.loading=!1,me.id&&(o.value.id=me.id),(J=a.value.api)!=null&&J.updateCallback&&on.isFunction((Y=a.value.api)==null?void 0:Y.updateCallback)&&((oe=(fe=a.value.api)==null?void 0:fe.updateCallback)==null||oe.call(fe,me,W)),t("edit-success",me,j||"edit")}).catch(()=>{i.loading=!1,t("error")}))}else t("submit",W)},y=(j,V)=>{const{startKey:L,endKey:W}=V,G=V.formAttrs.format||"YYYY-MM-DD HH:mm:ss";V.formAttrs.type&&V.formAttrs.type.includes("range")&&(o.value[L]=j?fa(j[0]).format(G):"",o.value[W]=j?fa(j[1]).format(G):"")},v=(j,V)=>{const{startKey:L,endKey:W,key:G,type:$}=V;S7($,V)?(o.value[L]=j[0],o.value[W]=j[1]):o.value[G]=j},b=()=>{r.value.resetFields(),t("reset",o.value)},g=(j={})=>{var V,L,W,G,$,re,be,Se,ee,we;if((L=(V=a.value)==null?void 0:V.api)!=null&&L.detail&&((G=(W=a.value)==null?void 0:W.api)!=null&&G.detailParams)&&((Se=($=a.value)==null?void 0:$.api)!=null&&Se.detailParams[((be=(re=a.value)==null?void 0:re.api)==null?void 0:be.detailParamsKey)||"id"])){const Ee={...a.value.api.detailParams,...((we=(ee=a.value)==null?void 0:ee.api)==null?void 0:we.detailExParams)||{},...j};n.request({url:a.value.api.detail,method:"get",params:Ee}).then(P=>{let le=d(P);on.isObject(le)&&l.nextTick(()=>{o.value=le}),t("get-detail-success",P)})}else{if(i.init>1)return;let Ee=d();o.value=Ee}},k=()=>{i.fold=!i.fold},w=(j,V)=>{t("upload-btn",V)},T=(j,V,L,W)=>{t("after-btns-click",j,L,W,V)},S=(j,V)=>{V.handleFun&&on.isFunction(V.handleFun)&&V.handleFun(j,F,o.value,V),t("picture-action",{action:j,item:V})},_=j=>{t("add-option",j)},A=(j,V)=>{var W,G;const L=(W=V==null?void 0:V.formAttrs)==null?void 0:W.refKey;if(L){const $=s[L];if(V!=null&&V.changeCptOptions){const re=V.changeCptOptions(j);$.hanldeSetListData(re)}else if(V!=null&&V.setDynamicParams&&Ke.isFunction(V.setDynamicParams)){const re=V.setDynamicParams(j,o.value,$);$.handleSetDynamicParams(re),l.nextTick(()=>{$.getDataList(!0)})}else{let re=j;V.searchValFun&&Ke.isFunction(V.searchValFun)&&(re=V.searchValFun(j));const be=(G=V==null?void 0:V.formAttrs)==null?void 0:G.refSearchKey;$==null||$.getDataList(!0,re,be)}}},D=(j,V)=>{var L;(L=V==null?void 0:V.formAttrs)!=null&&L.emitSelect||(E(V,j),N())},x=(j,V)=>{E(V,j)},B=j=>{j&&j.cptKey&&(s[j.cptKey]=j)},E=async(j,V)=>{if(j!=null&&j.onChange&&Ke.isFunction(j.onChange)){const L=j!=null&&j.needParams?await h():{};j.onChange(V,o.value,L)}!(j!=null&&j.hideEmit)&&t("item-change",V,j,o.value),A(V,j)},F=(j,V)=>{o.value[j]=V},C=(j,V)=>{o.value[j]=V(o.value)},I=()=>{g()};l.onBeforeMount(()=>{I()});const N=async()=>{if(e.isSearch){const j=await h();t("submit",j)}},H=(j,V,L)=>{const W=k7(j,V,L);F(V,W)},Q=async(j,V)=>{var G;const{key:L,type:W}=V;if(W==="cascader"||W==="cascaderServer")H(j,L,V);else if(W==="timePicker"||W==="slider"&&((G=V==null?void 0:V.formAttrs)!=null&&G.range))v(j,V);else if(W==="datePickerRange")y(j,V);else if(W==="input"){const $=j==null?void 0:j.trim();F(L,$)}else F(L,j);E(V,j),l.nextTick(()=>{N()})},ie=(j,V)=>{V.selectVal=j},ae=j=>{o.value=d(j)},M=l.watchEffect(()=>{Ke.isObject(e.modelValue)&&!Ke.isEmpty(e.modelValue)&&!e.isSearch&&ae(e.modelValue)});return l.onBeforeUpdate(()=>{s={}}),l.onUnmounted(()=>{M(),s=null}),{...l.toRefs(i),formRef:r,refComponments:s,formConfig:a,appModel:o,colVisibleResult:f,fromDividerList:u,isAddForm:p,formSubmit:m,formReset:b,formValidate:c,getDetail:g,datePickerChange:y,handleFormListData:d,handleFold:k,handleAfterBtnClick:w,handleAfterBtnsClick:T,handleAddOption:_,handleSelectServerChange:D,handleSelectServerSelect:x,setItemRef:B,setModelVal:F,handleSetModelVal:C,getDeepVal:rr,t:Pe,handlePictureAction:S,createSubmitData:h,timePickerChange:v,handleSetModelValue:ae,handleComponentChange:Q,handleInputSelectChange:ie}}}),nxe={key:0},ixe={key:1};function rxe(e,t,n,i,r,o){var v,b,g;const s=l.resolveComponent("FormLabel"),a=l.resolveComponent("JwtPrefixSuffix"),u=l.resolveComponent("JwtFormItem"),f=l.resolveComponent("jwt-select-server"),d=l.resolveComponent("el-form-item"),c=l.resolveComponent("el-col"),h=l.resolveComponent("el-button"),p=l.resolveComponent("jwt-icon"),m=l.resolveComponent("el-row"),y=l.resolveComponent("el-form");return(b=(v=e.formConfig)==null?void 0:v.formList)!=null&&b.length?(l.openBlock(),l.createBlock(y,l.mergeProps({key:0},(g=e.formConfig)==null?void 0:g.formAttrs,{ref:"formRef",class:"app-form-container",model:e.appModel,onSubmit:t[0]||(t[0]=l.withModifiers(()=>{},["prevent"]))}),{default:l.withCtx(()=>[l.createVNode(m,{gutter:10},{default:l.withCtx(()=>{var k;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList((k=e.formConfig)==null?void 0:k.formList,(w,T)=>{var S,_,A,D;return l.openBlock(),l.createElementBlock(l.Fragment,{key:T},[w.type!="submit"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[e.colVisibleResult.condition[T]?l.withDirectives((l.openBlock(),l.createBlock(c,l.mergeProps({key:0,ref_for:!0},w==null?void 0:w.layoutAttrs,{key:T,class:[(_=(S=e.formConfig)==null?void 0:S.formAttrs)!=null&&_.inline?"el-col-dl":"db"]}),{default:l.withCtx(()=>[w.type!=="slot"?(l.openBlock(),l.createBlock(d,l.mergeProps({key:0,ref_for:!0},w.labelAttrs,{key:T,class:e.colVisibleResult.formItemClass[T],prop:w.key}),{label:l.withCtx(()=>[l.createVNode(s,{config:w==null?void 0:w.labelAttrs,"show-colon":e.formConfig.showColon,row:e.appModel},null,8,["config","show-colon","row"])]),default:l.withCtx(()=>{var x,B,E,F;return[l.createElementVNode("div",{class:l.normalizeClass(((x=w==null?void 0:w.formAttrs)==null?void 0:x.contentCls)||"fx w")},[l.createVNode(a,{item:w,row:e.appModel,type:"pre"},null,8,["item","row"]),l.createVNode(u,{modelValue:e.appModel[w.key],"onUpdate:modelValue":C=>e.appModel[w.key]=C,item:w,"source-data":e.appModel,onAddOption:C=>e.handleAddOption(w),onAfterBtnClick:C=>e.handleAfterBtnClick(C,w),onAfterBtnsClick:e.handleAfterBtnsClick,onChange:C=>e.handleComponentChange(C,w),onInputSelectChange:C=>e.handleInputSelectChange(C,w),onPictureAction:C=>e.handlePictureAction(C,w)},null,8,["modelValue","onUpdate:modelValue","item","source-data","onAddOption","onAfterBtnClick","onAfterBtnsClick","onChange","onInputSelectChange","onPictureAction"]),w.type==="selectServer"?(l.openBlock(),l.createBlock(f,l.mergeProps({key:0,ref_for:!0},w.formAttrs,{ref_for:!0,ref:e.setItemRef,modelValue:e.appModel[w.key],"onUpdate:modelValue":C=>e.appModel[w.key]=C,"cpt-key":w.key,"model-value-name":e.appModel[w==null?void 0:w.titleKey]||((B=w==null?void 0:w.formAttrs)==null?void 0:B.modelValueName)||"","source-data":e.appModel},l.toHandlers(w.formEvents),{onAddOption:C=>e.handleAddOption(w),onChange:C=>e.handleSelectServerChange(C,w),onSelect:C=>e.handleSelectServerSelect(C,w)}),null,16,["modelValue","onUpdate:modelValue","cpt-key","model-value-name","source-data","onAddOption","onChange","onSelect"])):l.createCommentVNode("",!0),l.createVNode(a,{item:w,row:e.appModel,type:"suf"},null,8,["item","row"])],2),(E=w==null?void 0:w.formAttrs)!=null&&E.tips?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass((F=w==null?void 0:w.formAttrs)==null?void 0:F.tipsCls)},l.toDisplayString(e.t(w.formAttrs.tips)),3)):l.createCommentVNode("",!0)]}),_:2},1040,["class","prop"])):l.createCommentVNode("",!0),w.type==="slot"?l.renderSlot(e.$slots,w.name,{key:1,model:e.appModel}):l.createCommentVNode("",!0)]),_:2},1040,["class"])),[[l.vShow,e.colVisibleResult.show[T]]]):l.createCommentVNode("",!0)],64)):(l.openBlock(),l.createBlock(c,l.mergeProps({key:1,ref_for:!0},w==null?void 0:w.layoutAttrs,{key:T,class:[(D=(A=e.formConfig)==null?void 0:A.formAttrs)!=null&&D.inline?"el-col-dl":"db"]}),{default:l.withCtx(()=>[w.type!=="slot"?(l.openBlock(),l.createBlock(d,l.mergeProps({key:0,ref_for:!0},w.labelAttrs,{key:T,prop:w.key}),{default:l.withCtx(()=>{var x,B;return[w.submit?(l.openBlock(),l.createBlock(h,l.mergeProps({key:0,ref_for:!0},w.submit.attrs,{loading:e.loading},l.toHandlers(w.submit.events),{onClick:e.formSubmit}),{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(w.submit.title),1)]),_:2},1040,["loading","onClick"])):l.createCommentVNode("",!0),w.reset?(l.openBlock(),l.createBlock(h,l.mergeProps({key:1,ref_for:!0},w.reset.attrs,{loading:e.loading},l.toHandlers(w.reset.events),{onClick:e.formReset}),{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(w.reset.title),1)]),_:2},1040,["loading","onClick"])):l.createCommentVNode("",!0),e.formConfig.showNum&&e.formConfig.showNum<((B=(x=e.formConfig)==null?void 0:x.formList)==null?void 0:B.length)-1?(l.openBlock(),l.createBlock(h,{key:2,text:"",type:"primary",onClick:e.handleFold},{default:l.withCtx(()=>[e.fold?(l.openBlock(),l.createElementBlock("span",ixe,l.toDisplayString(e.t("合并")||"合并"),1)):(l.openBlock(),l.createElementBlock("span",nxe,l.toDisplayString(e.t("展开")||"展开"),1)),l.createVNode(p,{class:l.normalizeClass(["vab-dropdown",{"vab-dropdown-active":!e.fold}]),icon:"arrow-up-s-line"},null,8,["class"])]),_:1},8,["onClick"])):l.createCommentVNode("",!0)]}),_:2},1040,["prop"])):l.createCommentVNode("",!0)]),_:2},1040,["class"]))],64)}),128))]}),_:3})]),_:3},16,["model"])):l.createCommentVNode("",!0)}const oxe=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(txe,[["render",rxe]])},Symbol.toStringTag,{value:"Module"})),bK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormAutocomplete",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-autocomplete");return l.openBlock(),l.createBlock(u,l.mergeProps(l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),null,16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),kE=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormCascader",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i),s=l.computed(()=>n.item.formSlot||{default:null,empty:null});return(a,u)=>{const f=l.resolveComponent("el-cascader");return l.openBlock(),l.createBlock(f,l.mergeProps(l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),l.createSlots({_:2},[s.value.default?{name:"default",fn:l.withCtx(({node:d,data:c})=>[l.renderSlot(a.$slots,s.value.default,{data:c,node:d})]),key:"0"}:void 0,s.value.empty?{name:"empty",fn:l.withCtx(()=>[l.renderSlot(a.$slots,e.item.formSlot.empty)]),key:"1"}:void 0]),1040,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),kK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormCascaderPanel",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i),s=l.computed(()=>n.item.formSlot||{default:null});return(a,u)=>{const f=l.resolveComponent("el-cascader-panel");return l.openBlock(),l.createBlock(f,l.mergeProps(l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),l.createSlots({_:2},[s.value.default?{name:"default",fn:l.withCtx(({node:d,data:c})=>[l.renderSlot(a.$slots,s.value.default,{data:c,node:d})]),key:"0"}:void 0]),1040,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),wK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormCheckbox",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemOptions:r,itemAttrs:o,handleChange:s,handleGetList:a}=$t(n,i),u=l.ref([]),f=l.computed(()=>u.value.length?u.value:r.value);return o.listApi&&a(u),(d,c)=>{const h=l.resolveComponent("el-checkbox-button"),p=l.resolveComponent("el-checkbox"),m=l.resolveComponent("el-checkbox-group");return l.openBlock(),l.createBlock(m,l.mergeProps(l.unref(o),l.toHandlers(e.item.formEvents),{onChange:l.unref(s)}),{default:l.withCtx(()=>[e.item.isButton?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(f.value,(y,v)=>(l.openBlock(),l.createBlock(h,l.mergeProps({ref_for:!0},y.attrs,{key:v}),{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(y.title),1)]),_:2},1040))),128)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(f.value,(y,v)=>(l.openBlock(),l.createBlock(p,l.mergeProps({ref_for:!0},y.attrs,{key:v,label:y.value||y.attrs.label}),{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(y.title||y.label),1)]),_:2},1040,["label"]))),128))]),_:1},16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),_K=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormColorPicker",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-color-picker");return l.openBlock(),l.createBlock(u,l.mergeProps(l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),null,16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),wE=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormDatePicker",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i),s=l.computed(()=>n.item.formSlot||{rangeSeparator:null});return(a,u)=>{const f=l.resolveComponent("el-date-picker");return l.openBlock(),l.createBlock(f,l.mergeProps({"value-format":"YYYY-MM-DD"},l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),l.createSlots({_:2},[s.value.rangeSeparator?{name:"range-separator",fn:l.withCtx(()=>[l.renderSlot(a.$slots,e.item.formSlot.rangeSeparator)]),key:"0"}:void 0]),1040,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),axe=["id"],_E=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormDivider",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,itemText:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-divider");return l.openBlock(),l.createBlock(u,l.mergeProps({"content-position":"left"},l.unref(r)),{default:l.withCtx(()=>{var f;return[l.createElementVNode("div",l.mergeProps(l.unref(r),{id:(f=e.item)==null?void 0:f.name,class:"jwt-form-divider-text"}),l.toDisplayString(l.unref(o)),17,axe)]}),_:1},16)}}})},Symbol.toStringTag,{value:"Module"})),sxe={class:"jwt-edit-input-wrapper fxmj"},CE=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(l.defineComponent({__name:"FormEditInput",props:{item:{type:Object,default:()=>{}},row:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o,itemKey:s}=$t(n,i),a=l.ref(null),u=l.ref(!1),f=l.ref(!1),d=l.ref(!1);let c=null;const h=l.computed(()=>{const k=n.sourceData[s];return uk(k,"",n.sourceData,n.item)}),p=l.computed(()=>f.value?"check-line":"edit-2-line");function m(){f.value=!1,u.value=!1}function y(k){k.preventDefault(),f.value=!0,u.value=!0,d.value||(d.value=!0)}function v(k){f.value?(m(),o(a.value)):y(k)}function b(){r!=null&&r.isLink&&(c=setTimeout(()=>{u.value||window.open(h.value,"_blank")},200))}const g=l.watchEffect(()=>{a.value=n.sourceData[s]});return l.onUnmounted(()=>{clearTimeout(c),g()}),(k,w)=>{const T=l.resolveComponent("el-input"),S=l.resolveComponent("jwt-icon"),_=l.resolveComponent("el-button");return l.openBlock(),l.createElementBlock("div",sxe,[l.withDirectives(l.createElementVNode("div",{class:l.normalizeClass([l.unref(r).isLink?"omit c0 cp plr5 ptb2 ":"jwt-edit-input-text"]),onClick:b},l.toDisplayString(h.value),3),[[l.vShow,!f.value]]),d.value?l.withDirectives((l.openBlock(),l.createBlock(T,l.mergeProps({key:0,modelValue:a.value,"onUpdate:modelValue":w[0]||(w[0]=A=>a.value=A)},l.unref(r)),null,16,["modelValue"])),[[l.vShow,f.value]]):l.createCommentVNode("",!0),l.withDirectives(l.createVNode(_,{class:l.normalizeClass(["jwt-edit-input-btn",[f.value?"jwt-edit-input-btn-active":"jwt-edit-input-btn"]]),type:"primary",size:"small",link:"",onClick:l.withModifiers(v,["stop"])},{default:l.withCtx(()=>[l.createVNode(S,{icon:p.value,size:"16"},null,8,["icon"])]),_:1},8,["class"]),[[l.vShow,f.value]])])}}}),[["__scopeId","data-v-0bb97b16"]])},Symbol.toStringTag,{value:"Module"})),SE=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormInput",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i),s=l.computed(()=>n.item.formSlot||{prefix:null,suffix:null,prepend:null,append:null});return(a,u)=>{const f=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(f,l.mergeProps(l.unref(r),{onChange:l.unref(o)}),l.createSlots({_:2},[s.value.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(a.$slots,s.value.prefix)]),key:"0"}:void 0,s.value.suffix?{name:"suffix",fn:l.withCtx(()=>[l.renderSlot(a.$slots,s.value.suffix)]),key:"1"}:void 0,s.value.prepend?{name:"prepend",fn:l.withCtx(()=>[l.renderSlot(a.$slots,s.value.prepend)]),key:"2"}:void 0,s.value.append?{name:"append",fn:l.withCtx(()=>[l.renderSlot(a.$slots,s.value.append)]),key:"3"}:void 0]),1040,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),CK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormInputHidden",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(u,l.mergeProps(l.unref(r),{type:"hidden",onChange:l.unref(o)}),null,16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),SK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormInputSelect",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change","input-select-change"],setup(e,{emit:t}){var d;const n=e,i=t,{itemAttrs:r,handleChange:o,itemOptions:s,itemSelectAttrs:a}=$t(n,i),u=l.ref(((d=n==null?void 0:n.item)==null?void 0:d.key)||"");function f(c){i("input-select-change",c)}return l.onMounted(()=>{var c;a.multiple&&(u.value=[((c=n==null?void 0:n.item)==null?void 0:c.key)||""])}),(c,h)=>{const p=l.resolveComponent("el-option"),m=l.resolveComponent("el-select"),y=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(y,l.mergeProps(l.unref(r),{onChange:l.unref(o)}),{prepend:l.withCtx(()=>[l.createVNode(m,l.mergeProps({modelValue:u.value,"onUpdate:modelValue":h[0]||(h[0]=v=>u.value=v),style:{width:"90px"}},l.unref(a),{onChange:f}),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(s),(v,b)=>(l.openBlock(),l.createBlock(p,l.mergeProps({ref_for:!0},v,{key:b}),null,16))),128))]),_:1},16,["modelValue"])]),_:1},16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),xE=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormNumberInput",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-input-number");return l.openBlock(),l.createBlock(u,l.mergeProps({"controls-position":"right",min:0},l.unref(r),{onChange:l.unref(o)}),null,16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),xK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormRadio",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemOptions:r,itemAttrs:o,handleChange:s}=$t(n,i);return(a,u)=>{var h;const f=l.resolveComponent("el-radio-button"),d=l.resolveComponent("el-radio"),c=l.resolveComponent("el-radio-group");return l.openBlock(),l.createBlock(c,l.mergeProps(l.unref(o),l.toHandlers(((h=e.item)==null?void 0:h.formEvents)||{}),{onChange:l.unref(s)}),{default:l.withCtx(()=>[e.item.isButton?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(l.unref(r),(p,m)=>(l.openBlock(),l.createBlock(f,l.mergeProps({ref_for:!0},p.attrs,{key:m},l.toHandlers(p.events)),{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(p.title),1)]),_:2},1040))),128)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(l.unref(r),(p,m)=>(l.openBlock(),l.createBlock(d,l.mergeProps({ref_for:!0},p.attrs,{key:m},l.toHandlers(p.events)),{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(p.title),1)]),_:2},1040))),128))]),_:1},16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),EK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormRate",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-rate");return l.openBlock(),l.createBlock(u,l.mergeProps(l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),null,16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),BK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormSelect",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemOptions:r,itemAttrs:o,handleChange:s}=$t(n,i),a=l.computed(()=>{var u;return((u=n.item)==null?void 0:u.formSlot)||{default:null,prefix:null,empty:null}});return(u,f)=>{const d=l.resolveComponent("el-option"),c=l.resolveComponent("el-option-group"),h=l.resolveComponent("el-select");return l.openBlock(),l.createBlock(h,l.mergeProps(l.unref(o),l.toHandlers(e.item.formEvents),{onChange:l.unref(s)}),l.createSlots({default:l.withCtx(()=>[a.value.default?l.renderSlot(u.$slots,a.value.default,{key:0}):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[e.item.isGroup?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(l.unref(r),(p,m)=>(l.openBlock(),l.createBlock(c,{key:m,disabled:p.disabled,label:p.label},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(p.options,(y,v)=>(l.openBlock(),l.createBlock(d,l.mergeProps({ref_for:!0},y,{key:v}),null,16))),128))]),_:2},1032,["disabled","label"]))),128)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(l.unref(r),(p,m)=>(l.openBlock(),l.createBlock(d,l.mergeProps({ref_for:!0},p,{key:m}),null,16))),128))],64))]),_:2},[a.value.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(u.$slots,a.value.prefix)]),key:"0"}:void 0,a.value.empty?{name:"empty",fn:l.withCtx(()=>[l.renderSlot(u.$slots,a.value.empty)]),key:"1"}:void 0]),1040,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),DK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormSlider",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-slider");return l.openBlock(),l.createBlock(u,l.mergeProps(l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),null,16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),EE=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormSwitch",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-switch");return l.openBlock(),l.createBlock(u,l.mergeProps({"active-value":1,"inactive-value":0},l.unref(r),{onChange:l.unref(o)}),null,16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),AK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormTabs",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-tab-pane"),f=l.resolveComponent("el-tabs");return l.openBlock(),l.createBlock(f,l.mergeProps(l.unref(r),l.toHandlers(e.item.formEvents),{onTabChange:l.unref(o)}),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.item.options,(d,c)=>(l.openBlock(),l.createBlock(u,{key:c,label:d.label,name:d.value},null,8,["label","name"]))),128))]),_:1},16,["onTabChange"])}}})},Symbol.toStringTag,{value:"Module"})),BE=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormTimePicker",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-time-picker");return l.openBlock(),l.createBlock(u,l.mergeProps({"value-format":"HH:mm:ss"},l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),null,16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),TK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormTimeSelect",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i);return(s,a)=>{const u=l.resolveComponent("el-time-select");return l.openBlock(),l.createBlock(u,l.mergeProps(l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),null,16,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),OK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormTips",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,itemText:o}=$t(n,i);return(s,a)=>(l.openBlock(),l.createElementBlock("div",l.normalizeProps(l.guardReactiveProps(l.unref(r))),l.toDisplayString(l.unref(o)),17))}})},Symbol.toStringTag,{value:"Module"})),FK=Object.freeze(Object.defineProperty({__proto__:null,default:l.defineComponent({__name:"FormTransfer",props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change"],setup(e,{emit:t}){const n=e,i=t,{itemAttrs:r,handleChange:o}=$t(n,i),s=l.computed(()=>{var a;return((a=n.item)==null?void 0:a.formSlot)||{default:null}});return(a,u)=>{const f=l.resolveComponent("el-transfer");return l.openBlock(),l.createBlock(f,l.mergeProps(l.unref(r),l.toHandlers(e.item.formEvents),{onChange:l.unref(o)}),l.createSlots({_:2},[s.value.default?{name:"default",fn:l.withCtx(({option:d})=>[l.renderSlot(a.$slots,e.item.formSlot.default,{option:d})]),key:"0"}:void 0]),1040,["onChange"])}}})},Symbol.toStringTag,{value:"Module"})),lxe=l.defineComponent({name:"JwtFormItem",components:{FormInput:l.defineAsyncComponent(()=>Promise.resolve().then(()=>SE)),FormInputSelect:l.defineAsyncComponent(()=>Promise.resolve().then(()=>SK)),FormInputHidden:l.defineAsyncComponent(()=>Promise.resolve().then(()=>CK)),FormNumberInput:l.defineAsyncComponent(()=>Promise.resolve().then(()=>xE)),FormSwitch:l.defineAsyncComponent(()=>Promise.resolve().then(()=>EE)),FormDatePicker:l.defineAsyncComponent(()=>Promise.resolve().then(()=>wE)),FormTimePicker:l.defineAsyncComponent(()=>Promise.resolve().then(()=>BE)),FormTimeSelect:l.defineAsyncComponent(()=>Promise.resolve().then(()=>TK)),FormRadio:l.defineAsyncComponent(()=>Promise.resolve().then(()=>xK)),FormCheckbox:l.defineAsyncComponent(()=>Promise.resolve().then(()=>wK)),FormAutocomplete:l.defineAsyncComponent(()=>Promise.resolve().then(()=>bK)),FormSelect:l.defineAsyncComponent(()=>Promise.resolve().then(()=>BK)),FormCascader:l.defineAsyncComponent(()=>Promise.resolve().then(()=>kE)),FormCascaderPanel:l.defineAsyncComponent(()=>Promise.resolve().then(()=>kK)),FormSlider:l.defineAsyncComponent(()=>Promise.resolve().then(()=>DK)),FormRate:l.defineAsyncComponent(()=>Promise.resolve().then(()=>EK)),FormColorPicker:l.defineAsyncComponent(()=>Promise.resolve().then(()=>_K)),FormTransfer:l.defineAsyncComponent(()=>Promise.resolve().then(()=>FK)),FormTips:l.defineAsyncComponent(()=>Promise.resolve().then(()=>OK)),FormEditInput:l.defineAsyncComponent(()=>Promise.resolve().then(()=>CE)),FormTabs:l.defineAsyncComponent(()=>Promise.resolve().then(()=>AK)),FormDivider:l.defineAsyncComponent(()=>Promise.resolve().then(()=>_E)),ColumnText:l.defineAsyncComponent(()=>Promise.resolve().then(()=>gk)),FormDescription:l.defineAsyncComponent(()=>Promise.resolve().then(()=>Pk))},props:{item:{type:Object,default:()=>{}},sourceData:{type:Object,default:()=>{}}},emits:["change","add-option","after-btn-click","after-btns-click","picture-action","input-select-change"],setup(e,{emit:t}){return{formRef:l.ref(null),handleAfterBtnClick:(f,d)=>{t("after-btn-click",d)},handleAfterBtnsClick:(f,d)=>{t("after-btns-click",f,d,e.sourceData,e.item)},handleAddOption:f=>{t("add-option",f)},handlePictureAction:(f,d)=>{t("picture-action",f,d)},handleComponentChange:(f,d)=>{t("change",f,d)},handleInputSelectChange:(f,d)=>{t("input-select-change",f,d)}}}});function uxe(e,t,n,i,r,o){return l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.item.currentComponentName),l.mergeProps({item:e.item,"source-data":e.sourceData},e.item.formAttrs,l.toHandlers(e.item.formEvents),{onChange:t[0]||(t[0]=s=>e.handleComponentChange(s,e.item)),onAddOption:t[1]||(t[1]=s=>e.handleAddOption(e.item)),onAfterBtnClick:t[2]||(t[2]=s=>e.handleAfterBtnClick(s,e.item)),onAfterBtnsClick:e.handleAfterBtnsClick,onPictureAction:t[3]||(t[3]=s=>e.handlePictureAction(s,e.item)),onInputSelectChange:t[4]||(t[4]=s=>e.handleInputSelectChange(s,e.item))}),null,16,["item","source-data","onAfterBtnsClick"])}const fxe=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(lxe,[["render",uxe]])},Symbol.toStringTag,{value:"Module"})),lm=l.defineComponent({__name:"ActionButton",props:{action:{type:Object,required:!0},loading:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!1},showText:{type:Boolean,default:!0}},emits:["action-click"],setup(e,{emit:t}){const n=e,i=t,r=o=>{var s;(s=n==null?void 0:n.action)!=null&&s.isUploadBtn||o.stopPropagation(),i("action-click",o)};return(o,s)=>{const a=l.resolveComponent("jwt-icon"),u=l.resolveComponent("el-button");return l.openBlock(),l.createBlock(u,l.mergeProps({disabled:e.action.disabled,type:e.action.btnType,loading:e.loading},e.action.attrs,{onClick:r}),{default:l.withCtx(()=>[e.action.icon&&!e.loading&&e.showIcon?(l.openBlock(),l.createBlock(a,{key:0,icon:e.action.icon},null,8,["icon"])):l.createCommentVNode("",!0),e.showText?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(e.action.show_title||e.action.title),1)],64)):l.createCommentVNode("",!0)]),_:1},16,["disabled","type","loading"])}}}),dxe=Object.freeze(Object.defineProperty({__proto__:null,default:lm},Symbol.toStringTag,{value:"Module"})),cxe="show_table",hxe="show_header";function PK(e,t="table"){var k;const n=(t==="table"?(k=e.config)==null?void 0:k.action:e==null?void 0:e.config)||{},i=(n==null?void 0:n.list)||[],r=(n==null?void 0:n.commonList)||[],o=t==="table"?cxe:hxe,s=(w,T)=>{var S;return(S=n[w.code])==null?void 0:S[T]},a=w=>{const T=s(w,"condition")||"";return T?on.isFunction(T)&&T(e.row,e.selectionRow,e.totalCount):!0},u=w=>{const T=a(w),S=!i.length||i.includes(w.code);return w[o]&&S&&T},f=w=>{const T=s(w,"disabledFun");return T&&on.isFunction(T)&&T(e.row,e.totalCount)},d=w=>{var _,A,D;const T=f(w),S=(((_=w.code)==null?void 0:_.includes("delete"))||((A=w.code)==null?void 0:A.includes("batch")))&&!((D=e.selectionRow)!=null&&D.length);return T||S||e.loading},c=w=>t=="table"?f(w):d(w),h=w=>s(w,"attrs")||{},p=w=>{var S,_;return((S=h(w))==null?void 0:S.type)||((_=w==null?void 0:w.code)!=null&&_.includes("delete")?"danger":"primary")},m=w=>{var S,_;return{action:((S=s(w,"api"))==null?void 0:S.url)||((_=e==null?void 0:e.fileImport)==null?void 0:_.action)||""}},y=l.computed(()=>r.filter(a)||[]),v=l.computed(()=>{var T,S;return(((S=(T=e==null?void 0:e.menusObj)==null?void 0:T[e.currentPath])==null?void 0:S[e.operationName])||[]).filter(u).concat(y.value).map(_=>({..._,attrs:h(_),disabled:c(_),btnType:p(_),isUploadBtn:_.code.includes("importF"),fileImport:m(_)}))}),b=l.computed(()=>v.value.slice(0,+e.showButtonNum||1/0)),g=l.computed(()=>e.showButtonNum&&v.value.length>e.showButtonNum);return{visibleActions:b,hasOverflowActions:g,tableButtonActions:v}}const pxe={key:0,class:"table-header-actions fx"},gxe=l.defineComponent({name:"JwtHeaderButton"}),mxe=l.defineComponent({...gxe,props:{loading:{type:Boolean,default:!1},currentPath:{type:String,default:"/"},menusObj:{type:Object,default:()=>{}},selectionRow:{type:Array,default:()=>[]},config:{type:Object,default:()=>{}},fileImport:{type:Object,default:()=>{}},row:{type:Object,default:()=>{}},operationName:{type:String,default:"operations"},showIcon:{type:Boolean,default:!0},showText:{type:Boolean,default:!0},uploadSuccessCb:{type:Function,default:null},totalCount:{type:Number,default:0}},emits:["header-action","upload-success"],setup(e,{emit:t}){const n=e,i=t,r=l.ref([]),{tableButtonActions:o}=PK(n,"header");let s=null;const a=(h="")=>{s=lt.ElLoading.service({lock:!0,fullscreen:!0,text:h||Pe("正在导入中")||"正在导入中。。。",background:"rgba(255, 255, 255, 0.7)"})},u=l.computed(()=>vl()),f=(h,p)=>{n!=null&&n.uploadSuccessCb?n.uploadSuccessCb(h,p):lt.ElMessage({message:h.msg,type:h.code===0?"success":"error"}),i("upload-success")},d=h=>{h.status==="ready"?a():s.close()},c=(h,p)=>{i("header-action",p,n.row)};return(h,p)=>{const m=l.resolveComponent("el-upload");return l.unref(o).length?(l.openBlock(),l.createElementBlock("div",pxe,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o),(y,v)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:v},[y.isUploadBtn?(l.openBlock(),l.createBlock(m,l.mergeProps({key:0,"file-list":r.value,"onUpdate:fileList":p[0]||(p[0]=b=>r.value=b),class:"mlr10",accept:"application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,.csv,.xls,.xlsx",headers:u.value,name:"filedata","on-change":d,"on-success":b=>f(b,y),"show-file-list":!1,"with-credentials":"",ref_for:!0},y.fileImport),{default:l.withCtx(()=>[l.createVNode(lm,{loading:e.loading,"show-text":e.showText,"show-icon":e.showIcon,action:y},null,8,["loading","show-text","show-icon","action"])]),_:2},1040,["file-list","headers","on-success"])):(l.openBlock(),l.createBlock(lm,{key:1,loading:e.loading,"show-text":e.showText,"show-icon":e.showIcon,action:y,onActionClick:b=>c(b,y)},null,8,["loading","show-text","show-icon","action","onActionClick"]))],64))),128))])):l.createCommentVNode("",!0)}}}),vxe=Object.freeze(Object.defineProperty({__proto__:null,default:mxe},Symbol.toStringTag,{value:"Module"})),yxe={key:0,class:"icon","aria-hidden":"true"},bxe=["xlink:href"],kxe=l.defineComponent({name:"JwtIcon"}),wxe=l.defineComponent({...kxe,props:{icon:{type:String,default:"settings-3-line"},size:{type:[String,Number],default:null},isCustom:{type:Boolean,default:!1},isCustomSvg:{type:Boolean,default:!1},prefixSvg:{type:String,default:"icon-"}},setup(e){const t=e,n=l.computed(()=>{var i;return t.isCustomSvg?`#${[t.prefixSvg]}${t.icon}`:t.isCustom||(i=t==null?void 0:t.icon)!=null&&i.includes("icon-")?`iconfont ${t.icon} jwt-icon`:`ri-${t.icon} jwt-icon`});return(i,r)=>e.isCustomSvg?(l.openBlock(),l.createElementBlock("svg",yxe,[l.createElementVNode("use",{"xlink:href":n.value},null,8,bxe)])):(l.openBlock(),l.createElementBlock("i",{key:1,class:l.normalizeClass(n.value),style:l.normalizeStyle({"font-size":e.size+"px"})},null,6))}}),_xe=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(wxe,[["__scopeId","data-v-b69ac6d5"]])},Symbol.toStringTag,{value:"Module"})),Cxe={Arrows:{"arrow-left-up":"corner,左上","arrow-up":"send,箭头,向上,发送","arrow-right-up":"send,corner,右上,发送","arrow-right":"forward,箭头,向右","arrow-right-down":"corner,右下","arrow-down":"receive,箭头,向下,接收,收款","arrow-left-down":"receive,corner,箭头,左下,接收,收款","arrow-left":"backward,箭头,向左,返回","arrow-left-up-long":"corner,左上","arrow-up-long":"send,箭头,向上,发送","arrow-right-up-long":"send,corner,右上,发送","arrow-right-long":"forward,箭头,向右","arrow-right-down-long":"corner,右下","arrow-down-long":"receive,箭头,向下,接收,收款","arrow-left-down-long":"receive,corner,箭头,左下,接收,收款","arrow-left-long":"backward,箭头,向左,返回","corner-right-up":"arrow,箭头,右上","corner-up-left":"arrow,箭头,上左","corner-up-right":"arrow,箭头,上右","corner-right-down":"arrow,箭头,右下","corner-down-left":"arrow,箭头,下左","corner-left-up":"arrow,箭头,左上","corner-left-down":"arrow,箭头,左下","corner-down-right":"arrow,箭头,下右","arrow-up-circle":"箭头,向上","arrow-right-circle":"forward,箭头,向右","arrow-down-circle":"箭头,向下,下载","arrow-left-circle":"backward,箭头,向左,返回","arrow-left-up-box":"corner,左上","arrow-up-box":"send,箭头,向上,发送","arrow-right-up-box":"send,corner,右上,发送","arrow-right-box":"forward,箭头,向右","arrow-right-down-box":"corner,右下","arrow-down-box":"receive,箭头,向下,接收,收款","arrow-left-down-box":"receive,corner,箭头,左下,接收,收款","arrow-left-box":"backward,箭头,向左,返回","arrow-up-s":"chevron,箭头,向上","arrow-right-s":"chevron,forward,箭头,向右","arrow-down-s":"chevron,箭头,向下","arrow-left-s":"chevron,backward,箭头,向左,返回","skip-up":"arrow,unfold,top,expand,置顶,展开,收起","skip-right":"arrow,unfold,next,expand,跳过,展开,收起","skip-down":"arrow,unfold,next,expand,跳过,展开,收起","skip-left":"arrow,unfold,expand,bottom,展开,收起","arrow-left-right":"exchange,swap,箭头,左右,交换,换算,兑换","arrow-up-down":"exchange,swap,箭头,上下,交换,换算,兑换","arrow-drop-up":"chevron,箭头,向上","arrow-drop-right":"chevron,forward,箭头,向右","arrow-drop-down":"chevron,箭头,向下","arrow-drop-left":"chevron,backward,箭头,向左,返回","arrow-up-wide":"expand,箭头,向上,展开","arrow-right-wide":"expand,箭头,向上,展开","arrow-down-wide":"expand,箭头,向上,展开","arrow-left-wide":"expand,箭头,向上,展开","arrow-up-double":"unfold,expand,top,chevron,展开,收起","arrow-right-double":"unfold,expand,chevron,展开,收起","arrow-down-double":"unfold,expand,chevron,展开,收起","arrow-left-double":"unfold,expand,chevron,展开,收起","corner-up-left-double":"arrow,replay-all,回复全部","corner-up-right-double":"arrow,forward-all,转发全部","drag-move":"arrow,拖拽,移动,箭头","drag-move-2":"arrow,拖拽,移动,箭头","expand-left":"slide,pull,unfold,arrow","expand-right":"arrow,展开,收起,右","contract-left":"slide,pull,fold,arrow","contract-right":"arrow,slide,pull,fold,展开,收起,右","expand-up-down":"arrow,unfold,dropdown,switch,展开","expand-left-right":"arrow,unfold,dropdown,switch","contract-up-down":"fold,arrow,fold,收起","contract-left-right":"arrow,fold,收起","expand-height":"arrow,unfold,switch,展开","expand-width":"arrow,unfold,switch,展开","expand-horizontal":"arrow,unfold,switch,展开","expand-vertical":"arrow,unfold,dropdown,switch,展开","collapse-horizontal":"arrow,scale,收起,缩小","collapse-vertical":"arrow,scale,收起,缩小","expand-diagonal":"arrow,scale,展开,放大","expand-diagonal-2":"arrow,scale,展开,放大","collapse-diagonal":"arrow,scale,收起,缩小","collapse-diagonal-2":"arrow,scale,收起,缩小","expand-horizontal-s":"arrow,unfold,switch,展开","expand-vertical-s":"arrow,unfold,switch,展开","expand-diagonal-s":"arrow,scale,展开,放大","expand-diagonal-s-2":"arrow,scale,展开,放大","arrow-go-back":"undo,箭头,返回,撤销,撤回","arrow-go-forward":"redo,箭头,重做,撤销,撤回","arrow-turn-forward":"箭头,掉头","arrow-turn-back":"箭头,掉头","scroll-to-bottom":"mouse,滚动到底部,鼠标"},Buildings:{home:"house,房子,家,主页","home-2":"house,房子,家,主页","home-3":"house,房子,家,主页","home-4":"house,房子,家,主页","home-5":"house,房子,家,主页","home-6":"house,房子,家,主页","home-7":"house,房子,家,主页","home-8":"house,房子,家,主页","home-9":"house,roof,房子,家,主页,房顶","home-gear":"house,房子,工厂","home-wifi":"smart home,房子,家具,智能家居","home-smile":"house,smart home,smile,房子,智能家居,微笑","home-smile-2":"house,smart home,smile,房子,智能家居,微笑","home-heart":"house,心,房子,家,主页,孤儿院","home-office":"居家办公",building:"city,office,enterprise,建筑,城市,楼,办公楼,写字楼,企业","building-2":"city,office,construction,enterprise,城市,建筑,楼,企业","building-3":"factory,plant,enterprise,工厂,建筑,楼,企业","building-4":"city,office,enterprise,建筑,城市,楼,办公楼,写字楼,企业",hotel:"building,hotel,office,enterprise,tavern,建筑,酒店,楼,办公楼,写字楼,企业",community:"building,hotel,社区,建筑,酒店",school:"college,university,学校,学院",government:"building,政府,建筑,大会堂",bank:"bank,finance,savings,banking,银行,交易所",store:"shop,mall,supermarket,retail,商店,超市,店铺,商家","store-2":"shop,mall,supermarket,retail,商店,超市,店铺,商家","store-3":"shop,mall,supermarket,retail,商店,超市,店铺,商家",hospital:"medical,health,医院","ancient-gate":"historical,genre,scenic,trip,travel,旅行,旅游,城门,古代,历史,景区","ancient-pavilion":"historical,genre,scenic,trip,travel,旅行,旅游,凉亭,古代,历史,景区",tent:"camping,帐篷,露营,营地"},Business:{mail:"envelope,email,inbox,信封,邮箱,邮件,收件箱","mail-ai":"envelope,email,inbox,信封,邮箱,邮件,收件箱,智能","mail-open":"envelope,email,inbox,信封,邮箱,邮件,收件箱","mail-send":"envelope,email,inbox,zoom,whoosh,信封,邮箱,邮件,发送,发件箱","mail-unread":"envelope,email,inbox,信封,邮箱,邮件,未读","mail-add":"envelope,email,inbox,add,信封,邮箱,邮件,新增,添加","mail-check":"envelope,email,inbox,read,信封,邮箱,邮件,已读","mail-close":"envelope,email,inbox,failed,x,信封,邮箱,邮件,失败","mail-download":"envelope,email,inbox,download,信封,邮箱,邮件,下载","mail-forbid":"envelope,email,inbox,privacy,信封,邮箱,邮件,禁止","mail-lock":"envelope,email,inbox,lock,信封,邮箱,邮件,加密","mail-settings":"envelope,email,inbox,settings,信封,邮箱,邮件,设置","mail-star":"envelope,email,inbox,favorite,信封,邮箱,邮件,收藏,喜欢","mail-volume":"envelope,email,inbox,promotional email,email campaign,subscription,sound,信封,邮箱,邮件,收件箱,推广,订阅",inbox:"收件箱","inbox-2":"收件箱","inbox-archive":"收件箱,归档,收纳","inbox-unarchive":"unzip,unpack,extract,收件箱,取消归档,还原,解压缩",cloud:"weather,云端","cloud-off":"offline mode,connection fail,slash,weather,云端,断网,无信号,连接失败",attachment:"annex,paperclip,附件,曲别针",profile:"id,档案,资料,身份证,证件",archive:"box,收纳,归档,存档,盒子,纸箱","archive-2":"box,收纳,归档,存档,盒子,纸箱","archive-drawer":"night table,收纳,抽屉,归档,存档,床头柜","archive-stack":"box,收纳,归档,存档,盒子,纸箱,堆叠",at:"@,mention,提到,在",award:"medal,achievement,badge,成就,奖牌,金牌,勋章",medal:"award,achievement,badge,成就,奖牌,金牌,勋章","medal-2":"award,achievement,badge,成就,奖牌,金牌,勋章","verified-badge":"认证标志","bar-chart":"statistics,rhythm,柱状图,统计,韵律,节奏","bar-chart-horizontal":"statistics,rhythm,柱状图,统计,韵律,节奏","bar-chart-2":"statistics,rhythm,柱状图,统计,排行,节奏","bar-chart-box":"statistics,rhythm,柱状图,统计,节奏","bar-chart-box-ai":"statistics,rhythm,柱状图,统计,节奏,智能统计","bar-chart-grouped":"statistics,rhythm,柱状图,统计,分组","bubble-chart":"data,analysis,statistics,circles,气泡图,统计","pie-chart":"data,analysis,饼图,饼状图,数据,分析","pie-chart-2":"data,analysis,饼图,饼状图,数据,分析","pie-chart-box":"data,analysis,饼图,饼状图,数据,分析","donut-chart":"data,analysis,circle,pie,环形图,数据,分析","line-chart":"data,analysis,stats,折线图,数据,分析",bookmark:"tag,书签,标记","bookmark-2":"tag,书签,标记","bookmark-3":"tag,书签,标记,荣誉",briefcase:"bag,baggage,公文包,行李箱,旅行箱,皮包","briefcase-2":"bag,baggage,公文包,行李箱,旅行箱,皮包","briefcase-3":"bag,baggage,公文包,行李箱,旅行箱,皮包","briefcase-4":"bag,baggage,公文包,行李箱,旅行箱,皮包","briefcase-5":"bag,baggage,公文包,行李箱,旅行箱,皮包",calculator:"计算器,计算机",calendar:"date,plan,schedule,agenda,日历,日期,月份,计划,日程,时间表","calendar-2":"date,plan,schedule,agenda,日历,日期,月份,计划,日程,时间表","calendar-event":"date,plan,schedule,agenda,日历,日期,月份,计划,日程,时间表","calendar-todo":"date,plan,schedule,agenda,日历,日期,月份,计划,日程,时间表","calendar-check":"date,plan,schedule,agenda,check-in,punch,日历,日期,月份,计划,日程,时间表,签到,打卡","calendar-close":"date,plan,schedule,agenda,error,cancel,日历,日期,月份,计划,日程,时间表,取消,错误","calendar-schedule":"date,plan,schedule,agenda,date,time,日历,日期,月份,计划,日程,时间表,预定,预约","customer-service":"headset,headphones,earphones,客服,售后,耳机,耳麦","customer-service-2":"headset,headphones,earphones,smile,客服,售后,耳机,耳麦",flag:"banner,pin,mark,milestone,旗帜,旗子,国旗,标记,里程碑","flag-off":"flag slash","flag-2":"banner,pin,mark,milestone,旗帜,旗子,国旗,标记,里程碑","triangular-flag":"banner,pin,mark,milestone,旗帜,旗子,国旗,标记,里程碑",global:"earth,union,world,language,地球,联合,世界,全球,语言",honour:"honor,glory,锦旗,荣誉,荣耀,军衔",links:"connection,address,联系,链接,地址",printer:"打印机","printer-cloud":"network,打印机,云打印","record-mail":"voice mail,tape,录音,留言,语音信箱,磁带",reply:"forward,回复全部,回复所有","reply-all":"forward,回复,答复,留言,转发","send-plane":"发送,纸飞机","send-plane-2":"发送,纸飞机",projector:"projection,meeting,投影仪,会议室","projector-2":"projection,meeting,投影仪,会议室,极米",slideshow:"presentation,meeting,PPT,keynote,投影,放映,演示,演讲,幻灯片,会议室","slideshow-2":"presentation,meeting,投影,放映,演示,演讲,幻灯片,会议室","slideshow-3":"presentation,meeting,投影,放映,演示,演讲,视频会议,幻灯片,会议室","slideshow-4":"presentation,meeting,投影,放映,演示,演讲,可视对讲,幻灯片,会议室",presentation:"teaching,training,演讲,老师,培训",window:"browser,program,web,窗口,浏览器,程序,网站","window-2":"browser,program,web,窗口,浏览器,程序,网站",stack:"layers,图层,叠加,堆栈","shake-hands":"cooperation,business,握手,合作,商务",service:"heart,handshake,cooperation,client,服务,握手,心,合作",registered:"注册,商标",trademark:"注册,商标",advertisement:"ad,广告,推广",copyleft:"著佐权",copyright:"版权","creative-commons":"知识共享","creative-commons-by":"attribution,copyright,版权,知识共享,署名","creative-commons-nc":"noncommercial,copyright,版权,知识共享,非商业用途","creative-commons-nd":"no derivative works,copyright,版权,知识共享,禁止演绎","creative-commons-sa":"share alike,copyright,版权,知识共享,相同方式共享","creative-commons-zero":"cc0,copyright,版权,知识共享",megaphone:"bullhorn,loudspeaker,commercial,campaign,扩音器,喇叭,广告,活动","pass-valid":"id,passport,护照有效","pass-pending":"id,passport,护照等待","pass-expired":"id,passport,护照过期","id-card":"card,identity,user,license,badge,passport,身份证,用户,许可证,护照","info-card":"ocard,identity,user,license,badge,passport,身份证,用户,许可证,护照",seo:"搜索引擎优化"},Communication:{"chat-1":"message,reply,comment,消息,聊天,回复,评论","chat-ai":"message,reply,comment,消息,聊天,回复,评论,智能","chat-2":"message,reply,comment,消息,聊天,回复,评论","chat-3":"message,reply,comment,消息,聊天,回复,评论","chat-4":"message,reply,comment,消息,聊天,回复,评论",message:"chat,comment,reply,消息,聊天,回复,评论","message-2":"chat,reply,comment,消息,聊天,回复,评论","message-3":"chat,reply,comment,消息,聊天,回复,评论","chat-check":"message,reply,comment,消息,聊天,回复,评论,已阅","chat-delete":"message,comment,消息,聊天,回复,评论,清除,删除","chat-forward":"message,comment,消息,聊天,转发","chat-upload":"message,comment,消息,聊天,上传","chat-download":"message,comment,消息,下载","chat-new":"message,reply,comment,消息,聊天,回复,评论","chat-settings":"message,comment,消息,聊天,回复,评论,设置","chat-unread":"new message,comment,badge,消息,聊天,回复,评论,未读","chat-search":"message,comment,消息,聊天,回复,评论,搜索,放大镜","chat-smile":"message,reply,comment,消息,聊天,回复,评论","chat-smile-2":"message,reply,comment,消息,聊天,回复,评论","chat-smile-ai":"message,reply,comment,消息,聊天,回复,评论,智能","chat-smile-3":"message,reply,comment,消息,聊天,回复,评论","chat-heart":"message,reply,comment,消息,聊天,回复,评论,心,点赞,收藏","chat-off":"message,reply,comment,slash,消息,聊天,回复,评论,禁止,关闭",feedback:"message,comment,消息,聊天,回复,评论,反馈",discuss:"message,reply,comment,消息,聊天,回复,评论,讨论,群聊","question-answer":"message,reply,comment,消息,聊天,回复,评论,讨论,群聊",questionnaire:"message,comment,help,消息,聊天,回复,评论,讨论,调查问卷,帮助","video-chat":"message,comment,消息,视频聊天","chat-voice":"message,comment,消息,语音消息","chat-voice-ai":"message,comment,消息,语音消息,智能语音","chat-quote":"message,reply,comment,消息,引用回复","chat-follow-up":"message,reply,comment,消息,+1,跟帖","chat-poll":"message,vote,questionnaire,消息,投票,问卷调查","chat-history":"message,历史消息,消息记录","chat-private":"message,私密消息,密聊","chat-thread":"topic,hashtag,话题,井号,哈希",speak:"voice,讲话,声音,对话","speak-ai":"voice,讲话,声音,智能对话","emoji-sticker":"表情,贴纸"},Design:{pencil:"edit,铅笔,编辑",edit:"pencil,铅笔,编辑","edit-2":"pencil,铅笔,编辑","ball-pen":"圆珠笔","quill-pen":"羽毛笔,钢笔,编辑","quill-pen-ai":"羽毛笔,钢笔,编辑,AI写作","pen-nib":"钢笔,笔尖","ink-bottle":"墨水瓶","mark-pen":"highlight,马克笔,高亮笔",markup:"标记,马克","edit-box":"编辑","edit-circle":"编辑",sip:"吸管,取色器",brush:"笔刷,画笔,刷子","brush-ai":"笔刷,画笔,刷子,AI绘画","brush-2":"刷子","brush-3":"刷子","brush-4":"刷子","paint-brush":"填色,填充,刷子",contrast:"brightness,tonalit,对比度,亮度,色调","contrast-2":"moon,dark,brightness,tonalit,月亮,夜间,对比度,亮度,色调",drop:"water,blur,模糊,水,滴","blur-off":"water,drop,slash,模糊,水,滴,禁止,关闭","contrast-drop":"water,brightness,tonalit,水,对比度,亮度,色调,滴","contrast-drop-2":"water,brightness,tonalit,水,对比度,亮度,色调,滴","color-filter":"effect,滤镜,特效","color-filter-ai":"effect,滤镜,特效",compasses:"圆规","compasses-2":"圆规",scissors:"剪刀,裁剪","scissors-cut":"剪刀,裁剪","scissors-2":"剪刀,裁剪,截屏",slice:"knife,切图,切片,刀",eraser:"remove formatting,橡皮,擦除,清除格式",ruler:"尺子","ruler-2":"尺子","pencil-ruler":"design,铅笔,尺子,文具,设计","pencil-ruler-2":"design,铅笔,尺子,文具,设计","t-box":"文字,字体,字号","input-method":"输入法,文字",artboard:"grid,crop,画板,裁切","artboard-2":"画板",crop:"裁切","crop-2":"裁切",screenshot:"capture,屏幕截图,截屏","screenshot-2":"capture,屏幕截图,截屏",focus:"aim,target,goal,焦点,聚焦,目标,靶心","focus-2":"aim,target,goal,bullseye,焦点,聚焦,目标,靶心","focus-3":"aim,target,goal,bullseye,crosshair,locate,焦点,聚焦,目标,靶心,瞄准镜,准心,定位",crosshair:"aim,target,goal,bullseye,crosshair,locate,焦点,聚焦,目标,靶心,瞄准镜,准心,定位","crosshair-2":"aim,target,goal,bullseye,crosshair,locate,焦点,聚焦,目标,靶心,瞄准镜,准心,定位",paint:"fill,填色,填充,油漆桶",palette:"color,调色盘,色板",pantone:"color,色板,潘通色,色号",shape:"border,形状,描边,边框","shape-2":"border,形状,描边,边框",magic:"fantasy,magic stick,beautify,wand,魔法棒,美化,幻想,魔幻",anticlockwise:"rotate,left,counterclockwise,左翻转,左旋转","anticlockwise-2":"rotate,left,counterclockwise,左翻转,左旋转",clockwise:"rotate,right,右翻转,右旋转","clockwise-2":"rotate,right,右翻转,右旋转",hammer:"tool,锤子",tools:"settings,screwdriver,configuration,工具,设置","drag-drop":"drag and drop,mouse,拖拽,鼠标",table:"表格","table-alt":"表格",layout:"布局","layout-2":"collage,布局,拼贴画","layout-3":"collage,布局,拼贴画","layout-4":"collage,布局,拼贴画","layout-5":"collage,布局,拼贴画","layout-6":"collage,布局,拼贴画","layout-column":"左右布局","layout-row":"上下布局","layout-top":"顶部布局,顶部导航","layout-right":"右侧布局,右侧导航","layout-bottom":"底部布局,底部导航","layout-left":"左侧布局,左侧导航","layout-top-2":"顶部布局,顶部导航","layout-right-2":"右侧布局,右侧导航","layout-bottom-2":"底部布局,底部导航","layout-left-2":"左侧布局,左侧导航","layout-grid":"卡片布局,网格","layout-grid-2":"卡片布局,网格","layout-masonry":"collage,瀑布流布局,拼贴画",collage:"瀑布流布局,拼贴画",grid:"table,网格,表格",circle:"圆形",triangle:"三角形",pentagon:"五边形,五角形",hexagon:"六边形",octagon:"八边形",square:"正方形",rectangle:"长方形,矩形",shapes:"形状,模块",shadow:"投影,影子","layout-horizontal":"水平布局","layout-vertical":"垂直布局","flip-horizontal-2":"水平翻转","flip-horizontal":"水平翻转","flip-vertical":"垂直翻转","flip-vertical-2":"垂直翻转","align-item-horizontal-center":"水平居中","align-item-vertical-center":"垂直居中","align-item-left":"左对齐","align-item-top":"顶部对齐","align-item-right":"右对齐","align-item-bottom":"底部对齐"},Development:{bug:"虫子","bug-2":"虫子",code:"代码,编程","code-s":"代码,编程","code-ai":"代码,编程","code-s-slash":"代码,编程","code-box":"代码,编程","terminal-box":"code,command line,prompt,终端,代码,命令行",terminal:"code,command line,prompt,终端,代码,命令行","terminal-window":"code,command line,browser,app,ui,终端,代码,命令行",parentheses:"code,math,小括号",brackets:"code,math,中括号",braces:"code,math,大括号,花括号",command:"apple key,place of interest,modified key,花键,苹果键",cursor:"mouse,pointer,arrow,指针,鼠标","git-commit":"node,onewheel,circle line,dot line,history point,提交","git-pull-request":"合并申请","git-merge":"combine,unite,branch,split,diverge,合并","git-branch":"combine,unite,split,diverge,分支","git-fork":"","git-close-pull-request":"取消,关闭","git-pr-draft":"pull request,草稿","git-repository":"book,bookmark,仓库","git-repository-commits":"book,upload,仓库,提交","git-repository-private":"lock,secure,私密仓库,私人仓库",html5:"html,h5,web",css3:"css,web,styles",javascript:"js,脚本",puzzle:"plugins,拼图,插件","puzzle-2":"plugins,拼图,插件",php:""},Device:{tv:"television,antenna,rabbet ears,电视","tv-2":"monitor,display,screen,television,电视,显示器",computer:"pc,monitor,display,screen,电脑,显示器",mac:"monitor,imac,display,computer,screen,显示器",macbook:"laptop,computer,笔记本",cellphone:"手机,电话",smartphone:"mobile,手机","mobile-download":"手机,下载",tablet:"平板电脑",device:"设备",phone:"电话",instance:"box,nft,cvm,实例,盒子,虚拟机",database:"storage,resource,bars,progress,数据库,存储","database-2":"storage,discs,silo,platter,数据库,存储",server:"服务器","hard-drive":"disc,storage,硬盘,存储","hard-drive-2":"disc,server,storage,硬盘,服务器,存储","hard-drive-3":"disc,server,storage,硬盘,服务器,存储",install:"安装",uninstall:"卸载",save:"floppy,保存,软盘","save-2":"floppy,保存,软盘","save-3":"floppy,保存,软盘","sd-card":"内存卡","sd-card-mini":"内存卡","sim-card":"电话卡","sim-card-2":"电话卡","dual-sim-1":"sim card,电话卡,卡槽,双卡双待","dual-sim-2":"sim card,电话卡,卡槽,双卡双待","u-disk":"U盘,优盘",battery:"电池","battery-charge":"电池,充电","battery-low":"电池,低电量","battery-2":"电池","battery-2-charge":"电池,充电","battery-saver":"电池,省电模式","battery-share":"电池共享,共享电量",cast:"mirroring,投屏,无线,广播",airplay:"mirroring,投屏,无线",cpu:"中央处理器",gradienter:"水平仪",keyboard:"input,键盘,输入","keyboard-box":"input,键盘,输入",mouse:"鼠标",sensor:"capacitor,传感器,电容器",router:"wifi,signal tower,radio,station,路由器,信号塔,广播,基站,流量",radar:"satellite receiver,雷达,卫星接收器,锅",gamepad:"consoles,controller,游戏手柄","remote-control":"controller,遥控器","remote-control-2":"controller,遥控器","device-recover":"恢复出厂设置",hotspot:"手机热点","phone-find":"找回手机","phone-lock":"锁定手机","rotate-lock":"锁定旋转屏幕",restart:"reload,refresh,重启","shut-down":"power off,关机",fingerprint:"指纹","fingerprint-2":"指纹",barcode:"scan,扫码,条形码,条码","barcode-box":"scan,扫码,条形码,条码","qr-code":"二维码","qr-scan":"二维码,扫描","qr-scan-2":"二维码,扫描",scan:"扫描","scan-2":"扫描",rss:"feed,subscribe,订阅",gps:"signal,定位,信号","base-station":"wifi,signal tower,router,cast,基站,信号塔,路由器,广播,流量",bluetooth:"wireless,蓝牙,无线","bluetooth-connect":"wireless,蓝牙,连接,无线",wifi:"无线网","wifi-off":"slash,offline,connection-fail,无线网,关闭,断网,链接失败","signal-wifi":"cellular,strength,无线网,信号","signal-wifi-1":"cellular,strength,无线网,信号","signal-wifi-2":"cellular,strength,无线网,信号","signal-wifi-3":"cellular,strength,无线网,信号","signal-wifi-error":"cellular,offline,connection-fail,无线网,断网,链接失败,无信号","signal-wifi-off":"cellular,slash,offline,connection-fail,无线网,关闭,断网,链接失败","wireless-charging":"power,flash,无线充电,闪充","dashboard-2":"仪表盘","dashboard-3":"仪表盘",usb:"优盘",rfid:"radio,frequency,identification,devices,无线,射频识别",ram:"memory,electronics,内存条,记忆卡","ram-2":"memory,electronics,内存条,记忆卡"},Document:{file:"new,paper,文件,文档,新建","file-2":"new,paper,文件,文档,新建","file-3":"new,paper,文件,文档,新建","file-4":"new,paper,文件,文档,新建","sticky-note":"new,paper,文件,文档,新建,便签纸,便利贴","sticky-note-add":"new,paper,文件,文档,新建,便签纸,便利贴,添加","sticky-note-2":"new,paper,文件,文档,新建,便签纸,便利贴","file-edit":"文件,文档,编辑",draft:"草稿箱,文件,文档,编辑","file-paper":"文件,文档,纸,谱","file-paper-2":"文件,文档,纸,谱",receipt:"收据,凭据","file-text":"文件,文档,文本","file-list":"清单,列表","file-list-2":"清单,列表","file-list-3":"newspaper,清单,列表,报纸",bill:"账单","file-copy":"duplicate,clone,复制,克隆","file-copy-2":"duplicate,clone,复制,克隆",clipboard:"copy,复制,剪切板",survey:"research,questionnaire,clipboard,checkboxes,form,census,调查,问卷,调研",article:"newspaper,document,publisher,print,page,word,file,publication,文章,报纸",newspaper:"新闻,报纸",news:"blog,新闻,博客","file-zip":"7z,rar,压缩包","file-marked":"文件,文档,标记",task:"todo,任务,待办",todo:"待办",book:"read,dictionary,booklet,书,阅读,字典,小册子","book-marked":"read,dictionary,booklet,书,阅读,字典,小册子,书签","book-2":"read,dictionary,booklet,书,阅读,字典,小册子","book-3":"read,dictionary,booklet,书,阅读,字典,小册子","book-open":"read,booklet,magazine,书,阅读,小册子,杂志","book-read":"booklet,magazine,书,阅读,小册子,杂志","contacts-book":"通讯录,联系人","contacts-book-2":"通讯录,联系人","contacts-book-upload":"upload,通讯录,联系人,上传",booklet:"notebook,手册,笔记本,小册子","contacts-book-3":"通讯录,联系人","file-code":"config,文件,文档,代码,脚本,配置文件","file-pdf":"文件,文档","file-pdf-2":"文件,文档","file-word":"文档","file-ppt":"文件,文档","file-excel":"文档,表单","file-word-2":"文档","file-ppt-2":"文件,文档","file-excel-2":"文档,表单","file-hwp":"文件,文档,hangul word processor",keynote:"演示文稿,幻灯片,讲演",numbers:"表格",pages:"website,browser,ui,blocks,prototype,文稿","file-search":"文件,文档,搜索","file-add":"page,document,new,plus,add,文件,文档,新建","file-reduce":"page,document,subtract,delete,文件,文档,减","file-settings":"page,document,cog,gear,文件,文档,设置","file-upload":"page,document,文件,文档,上传","file-transfer":"page,document,文件,文档,传输","file-download":"page,document,文件,文档,下载","file-lock":"page,document,文件,文档,锁","file-chart":"page,document,report,文件,文档,柱状图,报表","file-chart-2":"report,文件,文档,饼图,报表","file-image":"文件,文档,图片","file-music":"文件,文档,音乐","file-video":"文件,文档,视频","file-gif":"文件,文档,动图","file-check":"文件,文档,对勾","file-close":"文件,文档,关闭,删除,错误","file-forbid":"文件,文档,禁用","file-info":"文件,文档,信息","file-warning":"page,document,paper,!,alert,important,exclamation,文件,文档,警告,提醒","file-unknow":"文件,文档,未知,问号","file-user":"文件,文档,用户","file-shield":"protected,secured,文件,文档,盾牌,保护,安全","file-shield-2":"protected,secured,文件,文档,盾牌,保护,安全","file-damage":"breakdown,broken,corrupt,文件,文档,损坏,破损,破裂","file-history":"record,文件,文档,记录,历史","file-shred":"shredder,shred,destroy,cut,文档,销毁,碎纸机,破裂,粉碎","file-cloud":"network,文件,文档,云",contract:"examine,apporove,合约,合同,考试,审批通过",folder:"directory,file,文件夹,目录,文档","folder-2":"directory,file,文件夹,目录,文档","folder-3":"directory,file,文件夹,目录,文档","folder-4":"directory,file,文件夹,目录,文档","folder-5":"directory,file,文件夹,目录,文档","folder-6":"directory,file,文件夹,目录,文档",folders:"directory,file,文件夹,目录,文档,批量","folder-add":"directory,file,文件夹,目录,文档,添加","folder-reduce":"directory,file,remove,subtract,文件夹,目录,文档,减","folder-settings":"directory,file,文件夹,目录,文档,设置","folder-upload":"directory,file,文件夹,目录,文档,上传","folder-transfer":"directory,file,文件夹,目录,文档,传输","folder-download":"directory,file,文件夹,目录,文档,下载","folder-lock":"directory,file,文件夹,目录,文档,锁","folder-chart":"report,文件夹,目录,文档,柱状图,报表","folder-chart-2":"report,文件夹,目录,文档,饼图,报表","folder-music":"directory,file,audio,sound,文件夹,目录,文档,音乐","folder-image":"directory,file,文件夹,目录,文档,图片","folder-video":"directory,file,文件夹,目录,文档,视频","folder-check":"directory,file,文件夹,目录,文档,对勾","folder-close":"directory,file,文件夹,目录,文档,错误","folder-forbid":"directory,file,文件夹,目录,文档,禁用","folder-info":"directory,file,文件夹,目录,文档,信息","folder-warning":"!,alert,important,exclamation,alert,directory,file,文件夹,目录,文档,警告,提醒","folder-unknow":"directory,file,文件夹,目录,文档,未知","folder-user":"directory,file,文件夹,目录,文档,用户","folder-shield":"directory,file,protected,secured,文件夹,目录,文档,保护,盾牌,安全","folder-shield-2":"directory,file,protected,secured,文件夹,目录,文档,保护,盾牌,安全","folder-shared":"directory,file,文件夹,目录,文档,分享","folder-received":"directory,file,文件夹,目录,文档,接收","folder-open":"directory,file,文件夹,目录,文档,打开","folder-keyhole":"directory,encryption,file,文件夹,目录,文档,打开,加密文档","folder-zip":"directory,file,文件夹,目录,文档,打开,压缩","folder-history":"directory,file,record,文件夹,目录,文档,记录,历史","folder-cloud":"directory,file,云文件夹,目录,云文档",markdown:"arrow,箭头,下"},Editor:{bold:"加粗",italic:"斜体",heading:"标题",text:"字体","font-family":"字体","font-sans-serif":"衬线体","font-sans":"非衬线体","font-mono":"等宽字体","font-color":"文字色","font-size":"字号,字体大小","font-size-ai":"字号,字体大小,AI写作","font-size-2":"字号,字体大小",underline:"下划线",overline:"上划线",emphasis:"着重号","emphasis-cn":"着重号",strikethrough:"remove formatting,del,删除线","strikethrough-2":"remove formatting,del,删除线","format-clear":"remove formatting,清除格式","align-left":"ragged right,左对齐","align-center":"居中对齐","align-right":"ragged left,右对齐","align-justify":"four,lines,ruled,left-right,full width,排列对齐","align-top":"two arrows up,double-up,start,顶部对齐","align-vertically":"centered,middle,balance,垂直对齐","align-bottom":"two arrows down,double-down,end,底部对齐","list-check":"check list,清单列表","list-check-2":"check list,清单列表","list-check-3":"check list,清单列表,问卷,task","list-ordered":"numbered list,有序列表","list-ordered-2":"numbered list,有序列表","list-unordered":"bullet list,无序列表","list-radio":"vote,投票,列表","list-indefinite":"列表","indent-decrease":"indent more,quote,缩进","indent-increase":"indent less,quote,缩进","line-height":"leading,行高","line-height-2":"leading,行高","text-spacing":"letter spacing,character spacing,kerning,tracking,字间距","letter-spacing-2":"letter spacing,character spacing,kerning,tracking,字间距","text-wrap":"return,文本换行","attachment-2":"annex,paperclip,附件,曲别针",link:"connection,address,联系,链接,地址","link-unlink":"connection,remove address,去除链接","link-m":"connection,address,联系,链接,地址","link-unlink-m":"connection,remove address,去除链接",separator:"分割线",space:"空格","page-separator":"insert,分页符,插入","code-view":"代码视图","quote-text":"引用","double-quotes-l":"left,quotaion marks,双引号","double-quotes-r":"right,quotaion marks,双引号","single-quotes-l":"left,quotaion marks,单引号","single-quotes-r":"right,quotaion marks,单引号","table-2":"表格","table-3":"表格",subscript:"角标,下标,脚注","subscript-2":"角标,下标,脚注",superscript:"角标,上标","superscript-2":"角标,上标",paragraph:"¶,pilcrow,段落","text-direction-l":"文本左对齐","text-direction-r":"文本左对齐",functions:"Σ,sum,sigma,功能",omega:"Ω,horseshoe,特殊符号",hashtag:"#,pound,number,井号",asterisk:"*,all,everything,wildcard,星号","question-mark":"?,问号","info-i":"information,信息",translate:"translator,翻译","translate-ai":"AI翻译","translate-2":"translator,翻译","translate-ai-2":"AI翻译","a-b":"a/b testing,ab testing,split test,either-or,ab测试","english-input":"英文输入法","pinyin-input":"拼音输入法","wubi-input":"五笔输入法","input-cursor-move":"移动输入光标","number-1":"1,一,数字","number-2":"2,二,数字","number-3":"3,三,数字","number-4":"4,四,数字","number-5":"5,五,数字","number-6":"6,六,数字","number-7":"7,七,数字","number-8":"8,八,数字","number-9":"9,九,数字","number-0":"0,零,数字","sort-asc":"ranking,ordering,sorting,ascending,descending,升序排列,排序,顺序","sort-desc":"ranking,ordering,降序排列,排序","sort-alphabet-asc":"ranking,ordering,升序排列,数字排序,顺序","sort-alphabet-desc":"ranking,ordering,降序排列,字母排序,倒序,倒序","sort-number-asc":"ranking,ordering,升序排列,数字排序,顺序","sort-number-desc":"ranking,ordering,降序排列,数字排序,倒序","bring-forward":"arrange,层级,向上一层","send-backward":"arrange,层级,向下一层","bring-to-front":"arrange,层级,移到最前面","send-to-back":"arrange,层级,移到最后面","h-1":"heading,一级标题","h-2":"heading,一级标题","h-3":"heading,一级标题","h-4":"heading,一级标题","h-5":"heading,一级标题","h-6":"heading,一级标题","insert-column-left":"添加列,左侧","insert-column-right":"添加列,右侧","insert-row-top":"添加行,顶部","insert-row-bottom":"添加行,底部","delete-column":"删除列,底部","delete-row":"添加行,底部","merge-cells-horizontal":"合并单元格","merge-cells-vertical":"合并单元格","split-cells-horizontal":"拆分单元格","split-cells-vertical":"拆分单元格","flow-chart":"流程图","mind-map":"mindmap,脑图,思维导图","node-tree":"节点,层级关系图","organization-chart":"组织架构图,局域网","rounded-corner":"圆角",sketching:"signature,手写,手绘,签名",draggable:"move,reorder,拖拽,排序","slash-commands":"命令,斜线","slash-commands-2":"命令,斜线","ai-generate":"AI自动生成","ai-generate-2":"AI生成","dropdown-list":"下拉菜单","code-block":"代码块","text-snippet":"文字片段,剪切板","ai-generate-text":"图生文,文生图","text-block":"文字块,文字片段","table-view":"表格视图","kanban-view":"看板视图","kanban-view-2":"看板视图","gallery-view":"画廊视图","gallery-view-2":"画廊视图","timeline-view":"时间轴视图,甘特图","calendar-view":"日历视图","list-view":"列表视图","focus-mode":"聚焦模式,沉浸模式","slideshow-view":"幻灯片视图","stacked-view":"堆叠视图","carousel-view":"循环播放视图","input-field":"cursor,输入框,光标",hand:"drag,手,拖拽","square-root":"formula,开根号,公式,计算",formula:"公式,计算","custom-size":"width,hight,自定义宽高,尺寸"},Finance:{wallet:"pocketbook,钱包,卡包","wallet-2":"money clip,钱包,卡包","wallet-3":"money clip,钱包,卡包","bank-card":"credit,purchase,payment,cc,银行卡,信用卡,购买,消费,支付","bank-card-2":"credit,purchase,payment,cc,银行卡,信用卡,购买,消费,支付","no-credit-card":"off,credit,purchase,payment,cc,银行卡,信用卡,购买,消费,支付","secure-payment":"credit,purchase,payment,cc,银行卡,信用卡,购买,消费,支付,安全",refund:"credit card,repayment,cc,银行卡,信用卡还款","refund-2":"credit card,repayment,cc,银行卡,信用卡还款",safe:"vault,secure,保险柜,保险箱","safe-2":"vault,insecure,unlocked,保险柜,保险箱","safe-3":"vault,insecure,unlocked,保险柜,保险箱","price-tag":"label,标签,价签","price-tag-2":"label,标签,价签","price-tag-3":"label,标签,价签",ticket:"coupon,票,优惠券,代金券","ticket-2":"coupon,票,优惠券,代金券",coupon:"ticket,票,优惠券,代金券","coupon-2":"ticket,票,优惠券,代金券","coupon-3":"ticket,票,优惠券,代金券","coupon-4":"优惠券,代金券","coupon-5":"优惠券,代金券","shopping-bag":"purse,购物袋,购买,消费,商城","shopping-bag-2":"购物袋,购买,消费,商城","shopping-bag-3":"购物袋,购买,消费,商城","shopping-bag-4":"购物车,购买,消费,商城","shopping-basket":"购物篮,购买,消费,商城","shopping-basket-2":"购物篮,购买,消费,商城","shopping-cart":"购物车,购买,消费,商城","shopping-cart-2":"购物车,购买,消费,商城",vip:"会员","vip-crown":"king,queen,皇冠,会员,国王,女王,王后","vip-crown-2":"king,queen,皇冠,会员,国王,女王,王后","vip-diamond":"jewelry,钻石,会员",diamond:"jewelry,钻石,会员,珠宝,","diamond-ring":"jewelry,钻戒,戒指,首饰",jewelry:"珠宝,首饰",trophy:"奖品,奖杯,金杯",exchange:"swap,交换,换算,兑换,交易","exchange-box":"swap,交换,换算,兑换,交易","exchange-2":"swap,交换,换算,兑换,交易",swap:"exchange,交换,换算,兑换,交易","swap-box":"exchange,交换,换算,兑换,交易","swap-2":"flow direction,exchange,交换,换算,兑换,交易","swap-3":"flow direction,exchange,交换,换算,兑换,交易","exchange-dollar":"swap,transfer,交换,换算,兑换,美元,转账,交易","exchange-cny":"swap,transfer,交换,换算,兑换,人民币,转账,交易","exchange-funds":"swap,transfer,交换,换算,兑换,基金,股票,转账,交易","increase-decrease":"计算器",percent:"百分之,百分比","copper-coin":"currency,payment,铜币,硬币,货币,钱,支付","copper-diamond":"currency,coins,金币,钻石,货币,钱,支付","money-cny-box":"currency,payment,货币,钱,支付,人民币","money-cny-circle":"currency,coins,金币,payment,货币,钱,支付,人民币","money-dollar-box":"currency,payment,货币,钱,支付,美元","money-dollar-circle":"currency,coins,金币,payment,cent,penny,货币,钱,支付,美元,美分,便士","money-euro-box":"currency,payment,货币,钱,支付,欧元","money-euro-circle":"currency,coins,金币,payment,货币,钱,支付,欧元","money-pound-box":"currency,payment,货币,钱,支付,英镑","money-pound-circle":"currency,coins,金币,payment,货币,钱,支付,英镑","money-rupee-circle":"currency,coins,金币,payment,货币,钱,支付,卢比","bit-coin":"currency,payment,货币,钱,比特币",coin:"金币,硬币",cash:"现金,钞票",coins:"金币,硬币",currency:"cash,payment,货币,钱",funds:"foundation,stock,基金,股票","funds-box":"foundation,stock,基金,股票","red-packet":"红包","water-flash":"水电费",stock:"股票",auction:"hammer,gavel,拍卖,锤子",gift:"present,礼物","gift-2":"present,礼物","hand-coin":"donate,business,捐赠","hand-heart":"help,donate,volunteer,welfare,帮助,爱心,捐赠,志愿者,公益","24-hours":"last,24小时营业",nft:"token",p2p:"trade,点对点,交易,shift,swap,community,切换,社区","token-swap":"cryptocurrency,数字货币,代币,兑换",btc:"cryptocurrency,数字货币,bitcoin,比特币",eth:"cryptocurrency,数字货币,ethereum,以太坊",xtz:"cryptocurrency,数字货币,tezos,兔子币",bnb:"cryptocurrency,数字货币,binance,币安币",xrp:"cryptocurrency,数字货币,ripple,瑞波币","discount-percent":"promotion,sale,折扣,促销,打折"},Food:{restaurant:"餐厅,饭店","restaurant-2":"餐厅,饭店",cup:"tea,coffee,杯子,咖啡,茶",goblet:"cup,wine glass,cocktail,高脚杯,酒杯,鸡尾酒","goblet-2":"cup,wine glass,cocktail,高脚杯,酒杯,鸡尾酒",beer:"cup,啤酒杯",cake:"anniversary,蛋糕","cake-2":"anniversary,蛋糕,生日,蜡烛","cake-3":"蛋糕,生日,蜡烛",knife:"菜刀","knife-blood":"crime,菜刀,犯罪,血,杀人",bread:"toast,吐司面包",drinks:"beverage,coffee,饮料,咖啡","drinks-2":"beverage,juice,饮料,果汁",bowl:"soup,碗,汤"},"Health & Medical":{heart:"like,love,favorite,心,喜欢,爱,收藏","heart-2":"like,love,favorite,心,喜欢,爱,收藏","heart-3":"like,love,favorite,心,喜欢,爱,收藏","heart-add":"like,love,favorite,心,喜欢,爱,收藏","heart-add-2":"like,love,favorite,心,喜欢,爱,收藏",dislike:"like,love,remove favorite,心,不喜欢,取消收藏",hearts:"romance,爱情,浪漫,心","heart-pulse":"heart rate,脉搏,心率",pulse:"wave,heart rate,脉搏,心率,波","pulse-ai":"wave,heart rate,脉搏,心率,波,AI分析",empathize:"care,heart,同理心,关爱,心",nurse:"doctors,医生,护士",dossier:"病例","health-book":"健康手册,医疗手册","first-aid-kit":"case,急救箱",capsule:"medicine,胶囊,药","medicine-bottle":"药瓶",flask:"testing,experimental,experiment,烧瓶,实验,试验","test-tube":"testing,experimental,experiment,试管,实验,试验",dropper:"eyedropper,color picker,color dropper,实验,试验,胶头滴管,取色器",microscope:"testing,experimental,experiment,显微镜,实验,试验","hand-sanitizer":"alcohol,酒精消毒洗手液","mental-health":"心理健康",psychotherapy:"心理治疗",stethoscope:"听诊器",syringe:"注射器",thermometer:"体温计","infrared-thermometer":"红外线体温计,体温枪","surgical-mask":"外科医用口罩",virus:"病毒",lungs:"肺部","rest-time":"close,休息时间,打烊",zzz:"睡觉",brain:"think,ai,大脑,思考,人工智能","brain-2":"think,ai,大脑,思考,人工智能",aed:"flash,心脏电击去颤器","aed-electrodes":"电极",dna:"health,medical,people,DNA,gene,基因,健康,医疗"},Logos:{alipay:"zhifubao,支付宝","alibaba-cloud":"阿里云",amazon:"亚马逊",anthropic:"ai",android:"applications,安卓,应用",angularjs:"angular,programing framework","app-store":"applications,苹果应用商店",apple:"苹果",baidu:"du,claw,百度,爪",bard:"google,ai,magic,star,shining,sparkling,twinkle,人工智能,魔法,星星,闪烁",behance:"behance",bilibili:"哔哩哔哩",blender:"3d",blogger:"博客",bluesky:"",bootstrap:"",centos:"linux,system,系统",chrome:"谷歌浏览器",claude:"ai",codepen:"代码笔",copilot:"github,飞行员",coreos:"linux,system,系统",dingding:"钉钉",discord:"game,chat",disqus:"comments",douban:"豆瓣",dribbble:"追波",drive:"google drive,谷歌云端硬盘",dropbox:"多宝箱",edge:"microsoft edge,edge浏览器","edge-new":"microsoft-edge,浏览器",evernote:"印象笔记",facebook:"脸书","facebook-circle":"脸书","facebook-box":"脸书",fediverse:"",figma:"design",finder:"macintosh,仿达",firebase:"",firefox:"火狐","firefox-browser":"火狐浏览器",flickr:"",flutter:"google",friendica:"",gatsby:"gatsby",gemini:"ai,star",github:"github",gitlab:"gitlab",google:"谷歌","google-play":"applications,谷歌应用商店","honor-of-kings":"game,王者荣耀",ie:"internet explorer,浏览器",instagram:"照片墙",invision:"invision","kakao-talk":"kakao talk,chat",line:"连我",linkedin:"领英","linkedin-box":"领英",java:"",kick:"","microsoft-loop":"Doc,笔记",mastercard:"bank card,银行卡",mastodon:"mastodon,长毛象",medium:"媒体",messenger:"facebook,脸书,信使",meta:"元",microsoft:"windows,窗户,微软","mini-program":"微信小程序",mixtral:"","netease-cloud-music":"netease cloud music,网易云音乐",netflix:"网飞",nextjs:"",nodejs:"",notion:"notes,doc,笔记,文档",npmjs:"npm,nodejs",openai:"人工智能",openbase:"","open-source":"opensource,开源",opera:"欧朋浏览器",patreon:"donate,money,捐赠,打赏",paypal:"贝宝",perplexity:"",pinterest:"拼趣",pix:"",pixelfed:"photography,pixelfed",playstation:"ps","product-hunt":"product hunt",qq:"penguin,tencent,腾讯,企鹅",reactjs:"react,programing framework,facebook",reddit:"reddit",remixicon:"remix icon,图标","remix-run":"",safari:"safari浏览器",skype:"skype",slack:"slack",snapchat:"ghost,色拉布,幽灵",soundcloud:"声云",spectrum:"spectrum",spotify:"music,音乐","stack-overflow":"stack overflow",stackshare:"share,分享,技术栈",steam:"game,store",supabase:"",svelte:"",switch:"nintendo,任天堂","tailwind-css":"",taobao:"淘宝",telegram:"telegram","telegram-2":"",threads:"",tiktok:"抖音",trello:"trello",tumblr:"汤博乐",twitch:"twitch",twitter:"推特","twitter-x":"推特",ubuntu:"linux,system,系统",unsplash:"photos",vercel:"",vimeo:"视频",vk:"",visa:"bank card,银行卡",vuejs:"vue,programing framework",webhook:"",wechat:"微信","wechat-2":"微信","wechat-channels":"微信视频号","wechat-pay":"微信支付",weibo:"新浪微博",whatsapp:"瓦次艾普",windows:"microsoft,窗户,微软",wordpress:"blog,博客",xbox:"xbox",xing:"xing",youtube:"优兔,油管",yuque:"语雀",zcool:"zcool,站酷",zhihu:"知乎"},Map:{"map-pin":"location,navigation,地图,坐标,定位,导航,位置","map-pin-2":"location,navigation,地图,坐标,定位,导航,位置","map-pin-3":"location,navigation,地图,坐标,定位,导航,位置","map-pin-4":"location,navigation,地图,坐标,定位,导航,位置","map-pin-5":"location,navigation,地图,坐标,定位,导航,位置","map-pin-add":"location,navigation,地图,坐标,定位,导航,位置,新增,添加","map-pin-range":"location,navigation,地图,坐标,定位,导航,位置,范围","map-pin-time":"location,navigation,地图,坐标,定位,导航,位置,时间","map-pin-user":"location,navigation,地图,坐标,定位,导航,位置,用户","pin-distance":"坐标,距离",pushpin:"图钉",unpin:"图钉,取消固定","pushpin-2":"图钉",compass:"navigation,safari,direction,discover,指南针,导航,方向,发现,探索","compass-2":"navigation,direction,discover,指南针,导航,方向,发现,探索","compass-3":"navigation,safari,direction,discover,指南针,导航,方向,发现,探索","compass-4":"navigation,direction,discover,指南针,导航,方向,发现,探索","compass-discover":"navigation,direction,指南针,导航,方向,发现,探索",anchor:"锚","china-railway":"中铁,铁路,火车","space-ship":"太空飞船",rocket:"火箭","rocket-2":"space ship,火箭,太空飞船",map:"navigation,travel,地图,导航,旅行","map-2":"location,navigation,travel,地图,定位,导航,旅行","treasure-map":"thriller,adventure,地图,藏宝图","road-map":"navigation,travel,地图,导航,旅行",earth:"global,union,world,language,地球,全球,联合,世界,语言","time-zone":"global,地球,时区,时间",globe:"earth,地球仪",planet:"space,discover,星球,宇宙,探索,发现",parking:"停车场","parking-box":"停车场",route:"path,路线",guide:"path,指引,路线","gas-station":"加气站,加油站","charging-pile":"充电桩","charging-pile-2":"充电桩",car:"汽车","car-washing":"汽车,洗车",roadster:"car,汽车,跑车",taxi:"car,出租车,汽车","taxi-wifi":"car,出租车,汽车","police-car":"汽车,警车",bus:"大巴,巴士","bus-2":"大巴,巴士","bus-wifi":"大巴,巴士",truck:"van,delivery,卡车,货车,运输",train:"火车","train-wifi":"火车",subway:"地铁","subway-wifi":"地铁","flight-takeoff":"airplane,plane,origin,起飞,出发,始发,起点,飞机","flight-land":"airplane,plane,destination,着陆,到达,抵达,终点,飞机",plane:"fight,飞机,航班",sailboat:"帆船",ship:"轮船,航海,海运","ship-2":"轮船",bike:"自行车","e-bike":"take out,takeaway,电动车,外卖","e-bike-2":"take out,takeaway,电动车,外卖",takeaway:"take out,takeaway,电动车,外卖",motorbike:"摩托车",caravan:"房车",walk:"步行",run:"奔跑,跑步",riding:"bike,骑行,自行车",barricade:"路障",footprint:"脚印,足迹","traffic-light":"交通,信号灯","signal-tower":"base station,antenna,信号塔,基站,天线","hotel-bed":"酒店,床",navigation:"gps,导航",oil:"汽油,机油",direction:"right,方向,右转",steering:"drive,方向盘,驾车","steering-2":"drive,方向盘,驾车",lifebuoy:"life ring,救生圈",passport:"passports,护照",suitcase:"travel,旅行,行李箱","suitcase-2":"travel,旅行,行李箱,拉杆箱","suitcase-3":"travel,旅行,boarding case,行李箱,拉杆箱,登机箱","luggage-deposit":"consignment,行李箱,行李寄存,托运","luggage-cart":"行李车",signpost:"milestone,路标,路牌,里程碑"},Media:{image:"picture,photo,图片,照片","image-ai":"picture,photo,图片,照片,AI生图","image-circle":"picture,photo,图片,照片","image-circle-ai":"AI生图","image-2":"picture,photo,图片,照片","image-add":"picture,photo,图片,照片,添加","image-edit":"picture,photo,图片,照片,编辑",landscape:"picture,image,photo,图片,照片","landscape-ai":"picture,image,photo,图片,照片,AI生图","multi-image":"picture,photo,album,gallery,图片,照片,相册",gallery:"album,picture,image,图片,相册","gallery-upload":"album,picture,image,图片,相册,上传",video:"视频","video-ai":"movie,video,影片,电影,视频,AI视频",movie:"film,video,电影,硬盘,视频","movie-ai":"movie,video,影片,电影,视频,AI视频","movie-2":"film,video,电影,硬盘,视频","movie-2-ai":"movie,video,影片,电影,视频,AI视频",film:"movie,video,影片,电影,视频","film-ai":"AI视频",clapperboard:"movie,film,场记板,电影","clapperboard-ai":"movie,film,场记板,电影,AI视频","video-on":"vidicon,camera,摄像机,摄影机,视频","video-on-ai":"vidicon,camera,摄像机,摄影机,视频,AI视频","video-off":"vidicon,camera,摄像机,摄影机,视频,关",vidicon:"video,camera,摄像机,摄影机,视频","vidicon-2":"camera,摄像机,摄影机",live:"video,camera,摄像机,摄影机,视频,直播","video-add":"camera,摄像机,摄影机,视频,添加","video-upload":"camera,摄像机,摄影机,视频,上传","video-download":"camera,摄像机,摄影机,视频,下载",dv:"vidicon,camera,摄像机,摄影机",camera:"photo,照相机,拍照,照片","camera-ai":"photo,照相机,拍照,照片,AI生图","camera-off":"photo,slash,照相机,拍照,照片,禁止,关闭","camera-2":"photo,照相机,拍照,照片","camera-3":"photo,照相机,拍照,照片","camera-lens":"aperture,photo,照相机,拍照,照片,朋友圈","camera-lens-ai":"aperture,photo,照相机,拍照,照片,朋友圈,AI生图","camera-switch":"照相机,拍照,翻转",polaroid:"camera,相机,宝丽来","polaroid-2":"camera,相机,宝丽来","phone-camera":"手机相机,手机摄像头",webcam:"摄像头",mv:"music video,音乐","mv-ai":"music video,音乐,AI音乐",music:"音乐","music-2":"音乐","music-ai":",AI音乐",disc:"music,album,音乐,唱片",album:"music,唱片,音乐",dvd:"cd,dvd,record,光盘,刻录","dvd-ai":"cd,dvd,record,光盘,刻录",headphone:"music,headset,耳机,音乐",radio:"收音机,电台","radio-2":"收音机,电台",tape:"录音,磁带",mic:"record,voice,话筒,语音,录音,声音","mic-ai":"record,voice,话筒,语音,录音,声音","mic-2":"record,voice,话筒,语音,录音,声音","mic-2-ai":"record,voice,话筒,语音,录音,声音","mic-off":"record,voice,slash,关闭话筒,关闭语音,录音,关闭声音,静音,禁止","volume-down":"trumpet,sound,speaker,音量低,喇叭,声音,扬声器","volume-mute":"trumpet,sound,off,音量低,喇叭,声音,静音","volume-up":"trumpet,sound,speaker,音量高,喇叭,声音,扬声器","volume-vibrate":"trumpet,sound,speaker,喇叭,声音,扬声器,震动模式","volume-off-vibrate":"trumpet,sound,speaker,静音,喇叭,声音,扬声器,静音模式",speaker:"音响","speaker-2":"音响","speaker-3":"音响","surround-sound":"环绕立体声",broadcast:"广播",notification:"bell,alarm,通知,铃铛,提醒","notification-2":"bell,alarm,通知,铃铛,提醒","notification-3":"bell,alarm,通知,铃铛,提醒","notification-snooze":"notification_paused,暂停通知,暂停提醒","notification-4":"bell,alarm,通知,铃铛,提醒","notification-off":"bell,alarm,silent,slash,通知,铃铛,提醒,免打扰,静音,关闭,禁止","play-circle":"start,播放,开始","pause-circle":"暂停","record-circle":"录音","stop-circle":"停止",eject:"推出","play-reverse":"回放",play:"start,播放,开始",pause:"暂停",stop:"停止",rewind:"fast,快退",speed:"fast,快进","skip-back":"上一曲","skip-forward":"下一曲","rewind-start":"上一曲","forward-end":"下一曲","play-reverse-mini":"回放","play-mini":"播放","pause-mini":"暂停","stop-mini":"停止","rewind-mini":"fast,快退","speed-mini":"fast,快进","skip-back-mini":"上一曲","skip-forward-mini":"下一曲","rewind-start-mini":"上一曲","forward-end-mini":"下一曲","play-reverse-large":"回放","play-large":"start,播放,开始","pause-large":"暂停","stop-large":"停止","replay-5":"playback,重播,回放","forward-5":"skip,快进,快放,跳过","replay-10":"playback,重播,回放","forward-10":"skip,快进,快放,跳过","replay-15":"playback,重播,回放","forward-15":"skip,快进,快放,跳过","replay-30":"playback,重播,回放","forward-30":"skip,快进,快放,跳过",memories:"回忆",repeat:"swap,交换,循环播放","repeat-2":"swap,交换,循环播放","repeat-one":"单曲循环","order-play":"顺序播放",shuffle:"随机播放","play-list":"播放列表","play-list-2":"播放列表","play-list-add":"列表,添加",fullscreen:"maximize,全屏,最大化","fullscreen-exit":"minimize,退出全屏,最小化",equalizer:"sliders,controls,settings,filter,均衡器,控制器,设置,筛选","equalizer-2":"sliders,controls,settings,filter,均衡器,控制器,设置,筛选","equalizer-3":"sliders,controls,settings,filter,均衡器,控制器,设置,筛选","sound-module":"sliders,controls,settings,filter,均衡器,控制器,设置,筛选",rhythm:"节奏,韵律",voiceprint:"声纹","voice-ai":"声纹","speed-up":"dashboard,快,加速,仪表盘","slow-down":"dashboard,慢,减速,仪表盘",hq:"high quality,高质量,高品质",hd:"high definition,高清晰度","4k":"high definition,high quality,高清晰度,高品质,超清","closed-captioning":"隐藏字幕","closed-captioning-ai":"智能字幕","aspect-ratio":"宽高比,比例","picture-in-picture":"画中画,小窗","picture-in-picture-2":"画中画,小窗","picture-in-picture-exit":"退出画中画,退出小窗"},System:{apps:"应用","apps-2":"应用","apps-2-add":"添加应用","apps-2-ai":"",function:"layout,功能,应用,卡片布局","function-add":"添加应用",dashboard:"仪表盘","dashboard-horizontal":"仪表盘",menu:"navigation,hamburger,导航,菜单,汉堡包","menu-2":"navigation,hamburger,导航,菜单,汉堡包","menu-3":"navigation,hamburger,导航,菜单,汉堡包","menu-4":"navigation,hamburger,导航,菜单,汉堡包","menu-5":"navigation,hamburger,导航,菜单,汉堡包","menu-add":"navigation,hamburger,导航,菜单,汉堡包,添加","menu-fold":"collapse,navigation,hamburger,导航,菜单,汉堡包,收起,展开","menu-unfold":"expand,navigation,hamburger,导航,菜单,汉堡包,收起,展开","menu-unfold-3":"expand,navigation,hamburger,导航,菜单,汉堡包,收起,展开","menu-fold-4":"collapse,navigation,hamburger,导航,菜单,汉堡包,收起,展开","menu-unfold-4":"expand,navigation,hamburger,导航,菜单,汉堡包,收起,展开","menu-fold-3":"collapse,navigation,hamburger,导航,菜单,汉堡包,收起,展开","menu-fold-2":"collapse,navigation,hamburger,导航,菜单,汉堡包,收起,展开","menu-unfold-2":"expand,navigation,hamburger,导航,菜单,汉堡包,收起,展开","menu-search":"category,菜单,搜索",more:"ellipsis,更多,省略","more-2":"kebab menu,ellipsis,更多,省略",star:"favorite,like,mark,星星,星标,喜欢","star-off":"star slash,取消关注,取消喜欢,取消收藏","star-s":"favorite,like,mark,星星,星标,喜欢,半星","star-half":"favorite,like,mark,星星,星标,喜欢","star-half-s":"favorite,like,mark,星星,星标,喜欢,半星",settings:"edit,gear,preferences,偏好设置,编辑,齿轮","settings-2":"edit,gear,preferences,偏好设置,编辑,齿轮","settings-3":"edit,gear,preferences,偏好设置,编辑,齿轮","settings-4":"edit,gear,preferences,偏好设置,编辑,齿轮","settings-5":"edit,gear,preferences,偏好设置,编辑,齿轮","settings-6":"edit,gear,preferences,偏好设置,编辑,齿轮","list-settings":"列表,设置",forbid:"prohibited,slash,ban,禁止,禁用","forbid-2":"prohibited,slash,ban,禁止,禁用",prohibited:"forbid,lash,ban,禁止,禁用","prohibited-2":"forbid,lash,ban,禁止,禁用",information:"i,信息","information-2":"i,信息","information-off":"i,信息,关闭","error-warning":"!,alert,important,alert,exclamation,警告,错误",question:"help,问号,帮助",alert:"提醒,警告",spam:"alert,垃圾邮件,警告","spam-2":"block,alert,垃圾邮件,警告,拦截","spam-3":"block,alert,垃圾邮件,警告,拦截","checkbox-blank":"复选框,空",checkbox:"复选框","checkbox-indeterminate":"复选框","add-box":"plus,new,复选框,添加,加号,新增","checkbox-blank-circle":"复选框,空","checkbox-circle":"复选框","indeterminate-circle":"slash,ban,复选框,禁","add-circle":"plus,new,复选框,添加,加号,新增","close-circle":"cancel,remove,delete,empty,x,关闭,取消,移除,删除,清空","radio-button":"单选框","checkbox-multiple-blank":"复选框,空","checkbox-multiple":"复选框,空",check:"对勾","check-double":"read,done,double-tick,双对勾,已读",close:"cancel,remove,delete,empty,x,关闭,取消,移除,删除,清空",add:"plus,new,添加,新增,加号",subtract:"minus,减",divide:"除以",equal:"sum,result,等于","close-large":"cancel,remove,delete,empty,x,关闭,取消,移除,删除,清空","add-large":"lus,new,添加,新增,加号",download:"import,receive,下载,接收,导入",upload:"export,send,上传,发送,导出","download-2":"import,receive,下载,接收,导入","upload-2":"export,send,上传,发送,导出",import:"download,导入,下载",export:"upload,导出,上传","download-cloud":"下载,云","upload-cloud":"上传,云","download-cloud-2":"下载,云","upload-cloud-2":"上传,云","login-box":"sign in,登录","logout-box":"sign out,登出,注销","logout-box-r":"sign out,登出,注销","login-circle":"sign in,登录","logout-circle":"sign out,登出,注销","logout-circle-r":"sign out,登出,注销",shield:"safety,protect,盾牌,卫士,安全,防御","shield-cross":"safety,protect,盾牌,卫士,安全,防御,闪电","shield-flash":"safety,protect,盾牌,卫士,安全,防御","shield-star":"police badge,safety,protect,盾牌,卫士,安全,防御,星星,警徽","shield-user":"safety,protect,user protected,guarantor,盾牌,卫士,安全,防御,用户","shield-keyhole":"safety,protect,guarantor,盾牌,卫士,安全,防御,钥匙孔","shield-check":"safety,protect,盾牌,卫士,安全,防御","delete-back":"backspace,删除,退格","delete-back-2":"backspace,删除,退格","delete-bin":"trash,remove,ash-bin,garbage,dustbin,uninstall,卸载,删除,垃圾桶","delete-bin-2":"trash,remove,ash-bin,garbage,dustbin,uninstall,卸载,删除,垃圾桶","delete-bin-3":"trash,remove,ash-bin,garbage,dustbin,uninstall,卸载,删除,垃圾桶","delete-bin-4":"trash,remove,ash-bin,garbage,dustbin,uninstall,卸载,删除,垃圾桶","delete-bin-5":"trash,remove,ash-bin,garbage,dustbin,uninstall,卸载,删除,垃圾桶","delete-bin-6":"trash,remove,ash-bin,garbage,dustbin,uninstall,卸载,删除,垃圾桶","delete-bin-7":"trash,remove,ash-bin,garbage,dustbin,uninstall,卸载,删除,垃圾桶",lock:"security,password,锁子,安全,密码","lock-2":"security,password,锁子,安全,密码","lock-password":"security,锁子,安全,密码","lock-unlock":"security,password,锁子,安全,密码","lock-star":"security,premium,锁子,安全,密码,会员,高级",eye:"watch,view,眼睛,查看","eye-off":"slash,眼睛,不可见,关闭,禁止","eye-2":"watch,view,眼睛,查看","eye-close":"x,闭眼",search:"搜索,放大镜","search-2":"搜索,放大镜","search-eye":"搜索,放大镜,眼睛","zoom-in":"放大,放大镜","zoom-out":"缩小,放大镜","find-replace":"查找,搜索,替换",share:"sharing,分享,转发","share-2":"sharing,分享,转发","share-box":"sharing,分享,转发","share-circle":"sharing,分享,转发","share-forward":"sharing,分享,转发","share-forward-2":"sharing,分享,转发","share-forward-box":"sharing,分享,转发","external-link":"外链","side-bar":"侧边栏","sidebar-unfold":"expand,展开侧边栏","sidebar-fold":"收起侧边栏",time:"clock,时间,时钟,钟表",timer:"chronograph,stopwatch,秒表,计时器","timer-2":"chronograph,stopwatch,秒表,计时器","timer-flash":"chronograph,stopwatch,秒表,计时器,闪电",alarm:"闹钟","alarm-add":"添加闹钟","alarm-snooze":"暂停闹钟,再睡一会",history:"record,recent,time machine,历史记录,最近","hourglass-2":"time,history,recent,duration,沙漏,时间,历史记录,最近",hourglass:"time,history,recent,duration,沙漏,时间,历史记录,最近","thumb-up":"like,good,喜欢,好","thumb-down":"dislike,bad,不喜欢,不好","alarm-warning":"alert,report,police light,告警,举报,警灯","notification-badge":"red dot,通知,小红点",toggle:"switch,开关,触发器",filter:"filtration,筛选,过滤","filter-2":"filtration,筛选,过滤","filter-3":"filtration,筛选,过滤","filter-off":"filtration,clear-filter,筛选,过滤",loader:"loader,spinner,ajax,waiting,delay,加载中,载入中,正在加载","loader-2":"loader,spinner,ajax,waiting,delay,加载中,载入中,正在加载","loader-3":"loader,spinner,ajax,waiting,delay,加载中,载入中,正在加载","loader-4":"loader,spinner,ajax,waiting,delay,加载中,载入中,正在加载","loader-5":"loader,spinner,ajax,waiting,delay,加载中,载入中,正在加载",refresh:"reload,repeat,replace,reset,restart,synchronization,spinner,loader,update,刷新,重新加载,重复,重置,替换,重启,同步,更新","loop-left":"reload,repeat,replace,reset,restart,synchronization,spinner,loader,update,刷新,重新加载,重复,重置,替换,重启,同步,更新","loop-right":"reload,repeat,replace,reset,restart,synchronization,spinner,loader,update,刷新,重新加载,重复,重置,替换,重启,同步,更新","reset-left":"reload,repeat,replace,refresh,restart,synchronization,spinner,loader,update,刷新,重新加载,重复,重置,替换,重启,同步,更新","reset-right":"reload,repeat,replace,refresh,restart,synchronization,spinner,loader,update,刷新,重新加载,重复,重置,替换,重启,同步,更新","progress-1":"percent,进度,百分比","progress-2":"percent,进度,百分比","progress-3":"percent,进度,百分比","progress-4":"percent,进度,百分比","progress-5":"percent,进度,百分比","progress-6":"percent,进度,百分比","progress-7":"percent,进度,百分比","progress-8":"percent,进度,百分比"},"User & Faces":{user:"person,people,用户","user-2":"person,people,用户","user-3":"person,people,用户","user-4":"person,people,用户","user-5":"person,people,用户","user-6":"person,people,用户","user-smile":"person,people,用户,微笑","account-box":"person,people,用户,微笑","account-box-2":"person,people,用户,微笑","account-circle":"person,people,用户,微笑","account-circle-2":"person,people,用户,微笑","account-pin-box":"person,people,用户,微笑","account-pin-circle":"person,people,用户,微笑","user-add":"person,people,用户,添加,新增","user-minus":"person,peopl,unfollow,用户,减少,移除","user-follow":"person,people,关注","user-unfollow":"person,people,rejected,用户,取消关注,拒绝,错误","user-shared":"transfer,用户,我分享的,发送,person,people","user-shared-2":"transfer,用户,我分享的,发送,person,people","user-received":"用户,我接收的,收取,person,people","user-received-2":"用户,我接收的,收取,person,people","user-location":"用户,定位,person,people","user-search":"用户,查找,person,people","user-settings":"admin,用户,设置,管理员,person,people","user-star":"用户,关注,person,people","user-heart":"用户,关注,person,people",admin:"admin,用户,管理员,person,people","user-forbid":"terminated,禁止,终止",contacts:"联系人",group:"team,团队,群组,person,people,multiple users,user group,community,社区","group-2":"team,团队,群组,person,people,multiple users,user group,community,社区","group-3":"team,团队,群组,person,people,multiple users,user group,community,社区",team:"团队,小组,群主,person,people","user-voice":"用户,录音,演讲",emotion:"表情,笑脸","emotion-2":"表情,笑脸","emotion-happy":"表情,开心","emotion-normal":"表情,一般","emotion-unhappy":"表情,不开心","emotion-laugh":"comedy,happy,表情,大笑,笑脸,开心,喜剧","emotion-sad":"drama,tears,悲剧,哭泣,泪",skull:"ghost,骷髅,鬼怪","skull-2":"ghost,horror,thriller,骷髅,鬼怪,恐惧,恐怖",men:"gender,man,male,男人,男性",women:"gender,woman,female,女人,女性",travesti:"女人,女性",genderless:"女人,女性","open-arm":"张开双臂","body-scan":"gesture recognition,body,扫描身体,体态识别,动作之别,手势识别",parent:"patriarch,父母,亲子,家长","user-community":"team,团队,群组,person,people,multiple users,user group,community,社区",robot:"AI,mechanic,机器人","robot-2":"AI,mechanic,机器人","robot-3":"AI,mechanic,机器人",aliens:"science fiction,ET,外星人,科幻小说","bear-smile":"cartoon,anime,cartoon,小熊,微笑,儿童,动画片,卡通,动漫",mickey:"cartoon,disney,迪士尼,米老鼠,微笑,儿童,动画片",criminal:"horror,thriller,罪犯,犯罪,恐怖",ghost:"horror,thriller,鬼怪,恐怖,恐惧","ghost-2":"horror,鬼怪,恐怖,恐惧","ghost-smile":"鬼怪,笑","star-smile":"animation,动画,微笑,星星",spy:"incognito mode,detective,secret,间谍,侦探,无痕模式,隐私模式"},Weather:{sun:"light mode,sunny,太阳,白天模式,晴天",moon:"dark mode,night,月亮,夜间模式,月牙",flashlight:"闪电",cloudy:"多云","cloudy-2":"多云",mist:"雾气,雾霾",foggy:"大雾","cloud-windy":"风",windy:"大风,刮风",rainy:"下雨,雨天",drizzle:"小雨",showers:"中雨","heavy-showers":"大雨",thunderstorms:"雷暴,雷阵雨",hail:"冰雹",snowy:"下雪,雪天",snowflake:"下雪,雪天,雪花","sun-cloudy":"晴转多云","moon-cloudy":"夜间多云",tornado:"龙卷风",typhoon:"cyclone,tornado,龙卷风,旋风,台风",haze:"阴霾,薄雾","haze-2":"阴霾,薄雾","sun-foggy":"薄雾","moon-foggy":"薄雾","moon-clear":"夜间模式,夜间无云","temp-hot":"temperature,温度,高温,热","temp-cold":"temperature,温度,低温,冷",celsius:"temperature,温度,摄氏度",fahrenheit:"temperature,温度,华氏度","water-percent":"humidity,水,百分比,湿度",fire:"flame,hot,火,热门",blaze:"flame,火灾",earthquake:"地震",flood:"洪水",meteor:"流星,陨石",rainbow:"彩虹",shining:"star,magic,ai,twinkle,星星,魔法,闪烁","shining-2":"star,magic,ai,twinkle,星星,魔法,闪烁",sparkling:"shining,star,magic,ai,twinkle,星星,魔法,闪烁","sparkling-2":"shining,star,magic,ai,twinkle,星星,魔法,闪烁"},Others:{basketball:"sports,篮球,运动,体育",bell:"cartoon,anime,doraemon,铃铛,哆啦A梦,卡通,动漫",billiards:"sports,运动,台球,8,体育",boxing:"sports,运动,拳击,体育","door-lock":"门锁","door-lock-box":"门锁",football:"sports,运动,足球,体育",game:"pac man,游戏,吃豆人,体育",chess:"game,国际象棋,游戏,比赛",handbag:"fashion,时尚,手提包,女包",key:"password,钥匙,密码","key-2":"password,钥匙,密码",lightbulb:"energy,creativity,灯泡,能源,白炽灯,能源,电子产品","lightbulb-flash":"energy,creativity,idea,灯泡,白炽灯,能源,闪电,创意,灵感",outlet:"二脚插座","outlet-2":"三脚插座",plug:"plugin,二脚插头","plug-2":"plugin,三脚插头","ping-pong":"sports,table tennis,运动,乒乓球,球拍,体育",reserved:"已预定,会议室屏幕,电视,显示器",shirt:"clothes,衬衫,衣服,服饰,西装,西服",sword:"war,刀剑,战争,战斗,玄幻,对抗","t-shirt":"skin,theme,T恤,皮肤,主题,服饰","t-shirt-2":"skin,theme,T恤,皮肤,主题,服饰","t-shirt-air":"dry,T恤,风干,烘干,服饰",umbrella:"protect,雨伞,保护,保险","character-recognition":"ocr,文字识别","voice-recognition":"asr,语音识别,音频",leaf:"energy,ecology,树叶,节能,环保,草,植物",plant:"植物,叶子,草,花盆",seedling:"树苗,植物,叶子,草",tree:"植物,树木",recycle:"recyclable,可回收,循环","scales-2":"厨房称",scales:"balance,称,天平,天秤","scales-3":"balance,称,天平,天秤",fridge:"refrigerator,电冰箱,柜子,服务器",accessibility:"可访问性,辅助功能,无障碍",wheelchair:"accessibility,轮椅,可访问性,辅助功能,残疾人,无障碍",cactus:"desertr,仙人掌,沙漠,植物",door:"门,建筑","door-open":"开门,建筑","door-closed":"关门,建筑","graduation-cap":"cap,school,student,毕业,帽子,学校,学生","box-1":"instance,盒子,实例","box-2":"instance,盒子,实例","box-3":"instance,3d,盒子,实例,立体",candle:"蜡烛",cross:"tomb,十字架,坟墓",infinity:"infinite,endless,loop,forever,math,eternal,无限,循环,永远,永久,永恒",goggles:"vr,vision,护目镜",glasses:"vision,spectacles,眼镜","glasses-2":"vision,spectacles,眼镜","dice-1":"random,骰子","dice-2":"random,骰子","dice-4":"random,骰子","dice-6":"random,骰子","dice-5":"random,骰子","dice-3":"random,骰子",dice:"random,骰子","poker-hearts":"红桃","poker-clubs":"黑桃","poker-diamonds":"jewelry,方片,宝石","poker-spades":"梅花","service-bell":"hotel service,helpdesk,restaurant,服务,铃铛,餐厅",flower:"plant,植物,花",armchair:"sofa,seat,手扶椅,沙发,座位",sofa:"armchair,seat,手扶椅,沙发,座位",tooth:"teeth,牙齿",weight:"weight,heavy,dense,kilo,pound,gram,large,重量","police-badge":"警察,警徽","golf-ball":"sports,高尔夫球",stairs:"stages,levels,楼梯,步行梯,台阶","book-shelf":"books,library,categories,书架,书籍,图书馆,分类"}};let Ab={},Tb=[];for(const[e,t]of Object.entries(Cxe))for(const[n,i]of Object.entries(t))e==="Editor"?(Ab[n]=i,Tb.push(n)):(Ab[`${n}-fill`]=i,Ab[`${n}-line`]=i,Tb.push(`${n}-fill`,`${n}-line`));Tb.sort();const Sxe={style:{padding:"0 5px"}},xxe={class:"jwt-icon-select-wrapper"},Exe=l.defineComponent({name:"JwtIconSelect"}),Bxe=l.defineComponent({...Exe,props:{modelValue:{type:String,default:"settings-3-line"}},emits:["update:modelValue","change","select"],setup(e,{emit:t}){const n=e,i=t,r=16;let o=[],s=0;const a=xJ(),u=l.reactive({searchVal:"",isCustom:!1,listData:[],pagination:{pageNo:1,pageSize:r,total:0,layout:"total, prev, next"}}),f=l.computed({get:()=>n.modelValue||"settings-3-line",set:v=>{i("update:modelValue",v)}}),d=v=>{u.pagination.pageSize=v},c=v=>{u.pagination.pageNo=v,m()},h=v=>{f.value=v.icon,u.isCustom=v.isCustom,i("change",v.icon),i("select",v)},p=()=>{u.pagination.pageNo=1,l.nextTick(()=>{m()})},m=()=>{var b,g;let v=[];if(u.searchVal)for(let k=0;k<s;k++){const w=o[k];((b=w==null?void 0:w.name)!=null&&b.includes(u.searchVal)||(g=w==null?void 0:w.icon)!=null&&g.includes(u.searchVal))&&v.push(w)}else v=o;u.pagination.total=v.length,u.listData=v.slice((u.pagination.pageNo-1)*16,u.pagination.pageNo*16)};function y(){const v=Tb.map(g=>({icon:g,name:Ab[g],isCustom:!1})),b=Object.keys(a).map(g=>({icon:g,name:a[g],isCustom:!0}));o=[...v,...b],s=o.length,u.listData=o.slice(0,r),u.pagination.total=o.length}return l.onMounted(()=>{y()}),(v,b)=>{const g=l.resolveComponent("jwt-icon"),k=l.resolveComponent("el-button"),w=l.resolveComponent("el-input"),T=l.resolveComponent("el-col"),S=l.resolveComponent("el-row"),_=l.resolveComponent("el-card"),A=l.resolveComponent("el-pagination"),D=l.resolveComponent("el-popover");return l.openBlock(),l.createBlock(D,{persistent:!1,trigger:"click",width:300},{reference:l.withCtx(()=>[l.createVNode(k,null,{default:l.withCtx(()=>[l.createVNode(g,{icon:f.value,"is-custom":u.isCustom},null,8,["icon","is-custom"]),l.createElementVNode("span",Sxe,l.toDisplayString(l.unref(Pe)("图标选择器")),1),l.createVNode(g,{icon:"arrow-down-s-line"})]),_:1})]),default:l.withCtx(()=>[l.createElementVNode("div",xxe,[l.createVNode(S,null,{default:l.withCtx(()=>[l.createVNode(T,{span:18},{default:l.withCtx(()=>[l.createVNode(w,{modelValue:u.searchVal,"onUpdate:modelValue":b[0]||(b[0]=x=>u.searchVal=x),clearable:"",placeholder:"",onKeydown:l.withKeys(p,["enter"])},null,8,["modelValue"])]),_:1}),l.createVNode(T,{offset:1,span:4},{default:l.withCtx(()=>[l.createVNode(k,{type:"primary",onClick:p},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(Pe)("查询")),1)]),_:1})]),_:1})]),_:1}),l.createVNode(S,{class:"icon-list",gutter:10},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(u.listData,(x,B)=>(l.openBlock(),l.createBlock(T,{key:B,span:6},{default:l.withCtx(()=>[l.createVNode(_,{"body-style":{padding:"5px",textAlign:"center"},shadow:"hover",onClick:E=>h(x)},{default:l.withCtx(()=>[l.createVNode(g,{icon:x.icon,"is-custom":x.isCustom,size:"30"},null,8,["icon","is-custom"])]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1}),l.createVNode(S,{class:"pagination",justify:"center"},{default:l.withCtx(()=>[l.createVNode(T,{span:18},{default:l.withCtx(()=>[l.createVNode(A,{background:"","current-page":u.pagination.pageNo,layout:u.pagination.layout,"page-size":u.pagination.pageSize,total:u.pagination.total,onCurrentChange:c,onSizeChange:d},null,8,["current-page","layout","page-size","total"])]),_:1})]),_:1})])]),_:1})}}}),Dxe=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(Bxe,[["__scopeId","data-v-c806b3b3"]])},Symbol.toStringTag,{value:"Module"})),Axe=l.defineComponent({name:"JwtImage",inheritAttrs:!1,props:{fit:{type:String,default:"cover"},src:{type:String,default:""},type:{type:String,default:""},multiple:{type:Boolean,default:!1}},emits:["table-action"],setup(e){const t=l.useAttrs(),n=Nn(),i=(a,u,f,d=50)=>n.fillUrl&&on.isFunction(n.fillUrl)?n.fillUrl(a,u,f,d):a,r=l.computed(()=>{var u,f;let a=[];return e.multiple?(f=(u=e.src)==null?void 0:u.split(","))==null||f.map(d=>{d&&a.push({url:i(d),previewUrl:i(d,0,0,0)})}):a.push({url:i(e.src),previewUrl:i(e.src,0,0,0)}),a}),o=l.computed(()=>({search:"search-line",add:"add-circle-line",delete:"delete-bin-line"})[e.type]),s=l.computed(()=>r.value.map(a=>a.previewUrl));return{attrs:t,imgPath:r,previewImgs:s,icon:o}}}),Txe={key:0,class:"base-image-mask"};function Oxe(e,t,n,i,r,o){const s=l.resolveComponent("el-image"),a=l.resolveComponent("jwt-icon");return l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.imgPath,(u,f)=>(l.openBlock(),l.createElementBlock("div",l.mergeProps({ref_for:!0},e.attrs,{key:f,class:["base-image-wrapper",[e.multiple?"dl mr10 mb5":""]]}),[l.createVNode(s,l.mergeProps({fit:e.fit,"initial-index":f,"preview-src-list":e.previewImgs,"preview-teleported":"",src:u.url,ref_for:!0},e.attrs),null,16,["fit","initial-index","preview-src-list","src"]),e.icon?(l.openBlock(),l.createElementBlock("div",Txe,[l.createVNode(a,{icon:e.icon,size:"36"},null,8,["icon"])])):l.createCommentVNode("",!0)],16))),128)}const Fxe=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(Axe,[["render",Oxe],["__scopeId","data-v-1e911279"]])},Symbol.toStringTag,{value:"Module"})),Pxe=l.defineComponent({name:"JwtInput",components:{},inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:null},defaultBg:{type:String,default:"red"},changeBg:{type:String,default:"blue"},textColor:{type:String,default:""}},emits:["update:modelValue","blur"],setup(e,{emit:t}){const n=l.useAttrs(),i=l.reactive({oldVal:e.modelValue}),r=l.computed({get:()=>e.modelValue||"",set:a=>{t("update:modelValue",a)}}),o=l.computed(()=>i.oldVal!==r.value),s=()=>{i.oldVal!==r.value&&(i.oldVal=r.value,t("blur",r.value))};return l.onMounted(()=>{}),{...l.toRefs(i),attrs:n,inputModel:r,newValDiffOldVal:o,handleBlur:s}}});function jxe(e,t,n,i,r,o){const s=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(s,l.mergeProps({modelValue:e.inputModel,"onUpdate:modelValue":t[0]||(t[0]=a=>e.inputModel=a),class:"input-change-style",style:{backgroundColor:`${e.newValDiffOldVal?e.changeBg:e.defaultBg}`,color:e.textColor}},e.attrs,{onBlur:e.handleBlur}),null,16,["modelValue","style","onBlur"])}const Ixe=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(Pxe,[["render",jxe],["__scopeId","data-v-04712864"]])},Symbol.toStringTag,{value:"Module"})),Rxe={class:"jwt-material-img-mask"},Nxe={class:"jwt-material-img-checked-wrapper"},Mxe=l.defineComponent({name:"JwtMaterialItemMask"}),jK=Qt(Object.assign(Mxe,{props:{item:{type:Object,default:()=>{}},index:{type:Number,default:0},showDelete:{type:Boolean,default:!1},showEdit:{type:Boolean,default:!1},showChecked:{type:Boolean,default:!0}},emits:["previewImg","delete","toggleEdit"],setup(e,{emit:t}){const n=e,i=t;function r(){i("previewImg",n.index,n.item)}function o(){i("delete",n.index,n.item)}function s(){i("toggleEdit",n.index,n.item)}return(a,u)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",Rxe,[l.createElementVNode("i",{class:"el-icon",onClick:u[0]||(u[0]=l.withModifiers(f=>r(e.index),["stop"]))},u[3]||(u[3]=[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z",fill:"currentColor"})],-1)])),e.showDelete?(l.openBlock(),l.createElementBlock("i",{key:0,class:"el-icon",onClick:u[1]||(u[1]=l.withModifiers(f=>o(e.index,e.item),["stop"]))},u[4]||(u[4]=[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z",fill:"currentColor"})],-1)]))):l.createCommentVNode("",!0),e.showEdit?(l.openBlock(),l.createElementBlock("i",{key:1,class:"el-icon",onClick:u[2]||(u[2]=l.withModifiers(f=>s(e.index,e.item),["stop"]))},u[5]||(u[5]=[l.createElementVNode("svg",{"data-v-ea893728":"",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z",fill:"currentColor"}),l.createElementVNode("path",{d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z",fill:"currentColor"})],-1)]))):l.createCommentVNode("",!0)]),l.withDirectives(l.createElementVNode("div",Nxe,u[6]||(u[6]=[l.createElementVNode("i",{class:"el-icon"},[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z",fill:"currentColor"})])],-1)]),512),[[l.vShow,e.item.checked&&e.showChecked]])],64))}}),[["__scopeId","data-v-40ce87b9"]]),Lxe=Object.freeze(Object.defineProperty({__proto__:null,default:jK},Symbol.toStringTag,{value:"Module"})),IK={"page-sizes":[10,15,20,30,40,50,100],"page-size":10,layout:"total, sizes, prev, pager, next, jumper"},zxe=l.defineComponent({name:"JwtMaterial",components:{JwtMaterialItemMask:jK,PasteUpload:Db},props:{multiple:{type:Boolean,default:!0},used:{type:Boolean,default:!1},config:{type:Object,default:()=>{}}},emits:["delete-success","on-delete","on-edit","edit-success","select","update:modelValue","on-matting","matting-success"],setup(e,{emit:t}){var Y,fe;const n=l.ref(null),i=l.ref(null),r=Nn();let o=Ke.merge({categoryApi:"",categoryAdd:"",categoryEdit:"",categoryDelete:"",listApi:"",importApi:"",exportApi:"",deleteApi:"",updateApi:"",mattingApi:"",updateName:"filedata",showPasteUpload:!1,uploadApi:"",urlKey:"url",labelKey:"name",idKey:"id",mattingKey:"file_ids",searchKey:"keyword",deleteKey:"id",categoryKey:"category_id",deleteText:"此操作将会永久删除数据,是否继续",isDelete:!0,isSelectAll:!0,isEdite:!0,showPagination:!0,mediumList:!1,onlinPreFileFun:null,nodeLevel:2,pagination:{pageSize:20,pageNumKey:"page",pageSizeKey:"per_page",totalKey:"total",dataKey:"data",...IK},imgLimitSize:1024*20,videoLimitSize:1024*500,oplpadLimit:50,tabList:[],tabOther:{title:"",dataList:[]},activeName:""},e.config);const s=[{title:Pe("添加分类"),type:"add"},{title:Pe("编辑分类"),type:Pe("edit")},{title:Pe("删除分类"),type:"delete"}],a=l.reactive({pasteVal:"",selectTreeData:[],treeData:[],categoryVal:"",categoryId:"",searchVal:"",dataList:[],dialogPreviewVisible:!1,dialogOtherVisible:!1,previewImgIndex:0,previewImgUrl:"",dialogTitle:"",uploadFileNum:0,uploadProgress:!1,ajaxLoading:!1,loading:!1,activeName:(o==null?void 0:o.activeName)||1,categoryPop:{top:0,display:"none",level:1,id:null,name:""},categoryOpt:s,ruleForm:{pid:"",name:"",id:""},rules:{pid:[{required:!0,trigger:"blur"}],name:[{required:!0,message:Pe("分类名称不能为空"),trigger:"blur"}]}}),u=l.reactive({currentPage:1,pageCount:1,pageSize:o.pagination.pageSize||IK["page-sizes"][0],totalCount:1,sort:((Y=o.pagination)==null?void 0:Y.sort)||"id",order:((fe=o.pagination)==null?void 0:fe.order)||"desc"}),f=l.computed(()=>{const oe=["pdf","docx","doc","xlsx","xls","pptx","psd","zip","gz","rar","7z","txt"],pe=oe.map(ve=>`.${ve}`).join(","),de={img:{label:Pe("图片"),name:1,type:"img",fileType:"image/",accept:"image/*"},video:{label:Pe("视频"),name:2,type:"video",fileType:"video/",accept:"video/*"},audio:{label:Pe("音频"),name:3,type:"audio",fileType:"audio/",accept:"audio/*"},file:{label:Pe("文件"),name:4,type:"file",fileType:oe,accept:pe},other:{label:o.tabOther.title||Pe("图片"),name:"other",type:"img",fileType:"image/",accept:"image/*",...o.tabOther}},Oe=o.tabList.map(ve=>{if(de[ve])return{...de[ve]}});return Oe.length===0?[de.img]:Oe}),d=l.computed(()=>a.activeName==="other"),c=l.computed(()=>f.value.filter(pe=>pe.name===a.activeName)[0]||"img"),h=l.computed(()=>{var oe;return((oe=c.value)==null?void 0:oe.label)||Pe("图片")}),p=l.computed(()=>c.value.type==="file"?!1:!!(c.value.type==="img"||o.mediumList)),m=l.computed(()=>({children:"children",value:"id",label:"name",class:"mt5",checkStrictly:!0})),y=l.computed(()=>a.dataList.map(oe=>we(oe.url,"","",""))),v=l.computed(()=>a.dataList.filter(oe=>oe.checked)||[]),b=(oe=0,pe={},de="single")=>{if(!o.deleteApi){t("on-delete",de==="single"?pe:[]);return}let Oe={};const{deleteKey:ve,idKey:_e,deleteApi:Ue}=o;if(de==="single")Oe[ve]=pe[_e];else{const st=v.value.map(it=>it[_e]).join(",");Oe[ve]=st}r.request({url:Ue,method:"post",data:Oe}).then(()=>{de==="single"&&a.dataList.length>1?a.dataList.splice(oe,1):B(),t("delete-success")})},g=(oe,pe,de="single")=>{lt.ElMessageBox.confirm(Pe(o.deleteText),{confirmButtonText:Pe("确定"),cancelButtonText:Pe("取消"),type:"warning"}).then(()=>{b(oe,pe,de)}).catch(()=>{lt.ElMessage.info(Pe("取消操作"))})},k=(oe,pe)=>{if(a.dataList[oe].isEdite){w(oe);return}a.dataList[oe].isEdite=!a.dataList[oe].isEdite},w=oe=>{if(!o.updateApi){t("on-edit",a.dataList[oe]),a.dataList[oe].isEdite=!1;return}const{updateApi:pe,labelKey:de,idKey:Oe}=o;let ve={id:a.dataList[oe][Oe]};ve[de]=a.dataList[oe].name,r.request({url:pe,method:"post",data:ve}).then(()=>{t("edit-success"),a.dataList[oe].isEdite=!1})},T=(oe,pe)=>{if((oe==null?void 0:oe.key)==="Enter"&&!oe.isComposing){oe.currentTarget.blur();return}w(pe)},S=oe=>{const{url:pe}=a.dataList[oe];fk(pe)},_=oe=>{a.previewImgIndex=oe;const{url:pe,icon:de,name:Oe}=a.dataList[oe];if(a.dialogTitle=Oe,a.previewImgUrl=pe,c.value.type==="img")a.dialogPreviewVisible=!0;else if(c.value.type==="file"){const ve=["file-word-fill","file-excel-fill","file-ppt-fill"].includes(de);if(pe.includes(".pdf")||pe.includes(".txt")||ve)ve&&(a.loading=!0,a.previewImgUrl=`https://view.officeapps.live.com/op/view.aspx?src=${pe}`,setTimeout(()=>{a.loading=!1},2e3));else if(o.onlinPreFileFun&&Ke.isFunction(o.onlinPreFileFun))a.previewImgUrl=o.onlinPreFileFun(a.dataList[oe]);else{fk(pe);return}a.dialogOtherVisible=!0}else a.dialogOtherVisible=!0},A=()=>{a.dialogPreviewVisible=!1},D=()=>{if(!e.multiple)return lt.ElMessage({showClose:!0,message:Pe("只能选择一张图片"),type:"error",duration:1e3});a.dataList=a.dataList.map(oe=>(oe.checked=!0,oe))},x=()=>{var Oe;if(!o.categoryApi)return lt.ElMessage.info(Pe("请配置分类接口"));let oe={type:(Oe=c.value)==null?void 0:Oe.type};const{categoryApi:pe,searchKey:de}=o;oe[de]=a.searchVal,r.request({url:pe,method:"get",params:oe}).then(ve=>{ve.unshift({name:`${Pe("全部")}${h.value}`,id:0,children:[]}),a.treeData=ve;const _e=h7(Ke.cloneDeep(ve),o.nodeLevel-1);a.selectTreeData=_e})},B=()=>{if(!o.listApi)return lt.ElMessage.info(Pe("请配置素材接口"));const{listApi:oe,searchKey:pe,urlKey:de,labelKey:Oe,categoryKey:ve}=o;let _e={type:c.value.type,[o.pagination.pageNumKey||"num"]:u.currentPage,[o.pagination.pageSizeKey||"size"]:u.pageSize,sort:u.sort,order:u.order};_e[pe]=a.searchVal,_e[ve]=a.categoryId,a.ajaxLoading=!0,r.request({url:oe,method:"get",params:_e}).then(Ue=>{const st=Ue[o.pagination.dataKey].map(it=>{const xt=it[Oe],yt=it[de];it.url=yt,it.name=xt,it.isEdite=!1;const je=p7(yt,_e.type);return{...it,...je}});u.totalCount=Ue[o.pagination.totalKey],a.dataList=st,a.ajaxLoading=!1}).catch(()=>{a.ajaxLoading=!1})},E=()=>{u.currentPage=1,l.nextTick(()=>{var oe;d.value?(a.dataList=((oe=o==null?void 0:o.tabOther)==null?void 0:oe.dataList)||[],u.totalCount=a.dataList.length):(x(),B())})},F=oe=>{u.currentPage=oe,l.nextTick(()=>{B()})},C=oe=>{u.pageSize=oe,l.nextTick(()=>{B()})},I=()=>{u.currentPage=1,l.nextTick(()=>{B()})},N=()=>{t("select",v.value)},H=oe=>{var pe;if(((pe=a.treeData)==null?void 0:pe.length)===1)return oe.stopPropagation(),lt.ElMessage.error(Pe("请添加分类"))},Q=oe=>{a.categoryId=oe.id||"",l.nextTick(()=>{B()})},ie=(oe,pe,de)=>{const{layerY:Oe}=oe;a.categoryPop.top=`${Oe+45}px`,a.categoryPop.display="block",a.categoryPop.id=(de==null?void 0:de.id)||"",a.categoryPop.pid=(de==null?void 0:de.pid)||0,a.categoryPop.level=(pe==null?void 0:pe.level)||"",a.categoryPop.name=(de==null?void 0:de.name)||"",de.id?pe.level===o.nodeLevel?a.categoryOpt=s.slice(1):a.categoryOpt=s.slice():a.categoryOpt=s.slice(0,1)},ae=()=>{a.categoryPop.display="none"},M=oe=>{var pe,de;if(a.dialogTitle=oe.title,a.previewImgUrl="",a.ruleForm={pid:oe.type==="add"?((pe=a.categoryPop)==null?void 0:pe.id)||0:((de=a.categoryPop)==null?void 0:de.pid)||0,id:a.categoryPop.id||"",name:oe.type==="add"?"":a.categoryPop.name,type:oe.type},oe.type==="delete")return lt.ElMessageBox.confirm(Pe(o.deleteText),{confirmButtonText:Pe("确定"),cancelButtonText:Pe("取消"),type:"warning"}).then(()=>{V()}).catch(()=>{lt.ElMessage.info(Pe("取消操作"))});a.dialogOtherVisible=!0},j=oe=>{a.ruleForm.pid=oe[oe.length-1]},V=()=>{const{categoryAdd:oe,categoryDelete:pe,categoryEdit:de}=o,ve={add:{api:oe,tips:Pe("请配置分类添加接口")},edit:{api:de,tips:Pe("请配置分类编辑接口")},delete:{api:pe,tips:Pe("请配置分类删除接口")}}[a.ruleForm.type];if(!ve.api)return lt.ElMessage.error(Pe(ve.tips));const _e={pid:a.ruleForm.pid,name:a.ruleForm.name,type:c.value.type};a.ruleForm.type!=="add"&&(_e.id=a.ruleForm.id),r.request({url:ve.api,method:"post",data:_e}).then(()=>{x(),a.dialogOtherVisible=!1})},L=(oe,pe)=>{var de;if(!e.multiple&&((de=v.value)==null?void 0:de.length)===1){if(pe.checked){a.dataList[oe].checked=!a.dataList[oe].checked;return}return lt.ElMessage({showClose:!0,message:Pe("只能选择一张图片"),type:"error",duration:1e3})}a.dataList[oe].checked=!a.dataList[oe].checked},W=(oe,pe,de)=>{},G=async oe=>{if(!o.uploadApi)return lt.ElMessage.error(Pe("请配置上传的路径地址!")),!1;const pe=await vK(oe);let de=!0;Ke.isArray(c.value.fileType)?de=c.value.fileType.includes(pe.ext):de=pe.mime.includes(c.value.fileType),de||lt.ElMessage.error(Pe("文件类型格式不正确"));let Oe=null;c.value.type==="img"?Oe=+o.imgLimitSize:c.value.type==="video"||c.value.type==="audio"?Oe=+o.videoLimitSize:Oe=1024*30;const ve=Oe/1024,_e=oe.size/1024<Oe;return _e||(ve>1?lt.ElMessage.error(`${Pe("上传")}${c.value.label}${Pe("大小不能超过")}${ve}MB!`):lt.ElMessage.error(`${Pe("上传")}${c.value.label}${Pe("大小不能超过")}${Oe}KB!`)),de&&_e},$=(oe,pe)=>{lt.ElMessage.warning(`${Pe("最多上传")}${o.oplpadLimit}${Pe("文件")},${Pe("您选择了")}${oe.length}${Pe("个文件请重新选择")}`)},re=(oe,pe,de)=>{},be=oe=>{const{uploadApi:pe}=o,de=lt.ElLoading.service({lock:!0,text:"Loading",background:"rgba(255, 255, 255)"}),Oe=oe.map(ve=>{const _e=new FormData;return _e.append("name",ve.name),_e.append("type",c.value.type),_e.append(o.categoryKey,a.categoryId),_e.append(o.updateName,ve.raw),r.request({url:pe,method:"post",headers:{"Content-Type":"multipart/form-data"},data:_e})});f7.all(Oe).then(f7.spread((ve,_e)=>{a.uploadProgress=!1,de.close(),B()})).catch(ve=>{de.close(),a.uploadProgress=!1,B()})},Se=(oe,pe)=>{let de=pe.length;a.uploadFileNum=Math.max(de,a.uploadFileNum),setTimeout(()=>{a.uploadFileNum!==de||a.uploadProgress||(a.uploadProgress=!0,be(pe))},10)},ee=()=>{a.dataList=a.dataList.map(oe=>(oe.checked=!1,oe))},we=(oe,pe,de,Oe)=>r.fillUrl&&Ke.isFunction(r.fillUrl)&&oe?r.fillUrl(oe,pe,de,Oe):oe,Ee=()=>{x()},P=oe=>{lt.ElMessage.info(oe.msg)},le=()=>{const{exportApi:oe}=o;if(!oe)return lt.ElMessage.info(Pe("请配置素材分类导出接口"));r.request({url:oe,method:"get",params:{type:c.value.type,sort:"pid",order:"asc"}}).then(pe=>{pe.http_path&&fk(pe.http_path)})},me=()=>{const{mattingKey:oe,idKey:pe,mattingApi:de}=o,Oe=v.value.map(Ue=>Ue[pe]).join(",");if(!de){t("on-matting",Oe);return}let ve={};const _e=lt.ElLoading.service({lock:!0,text:"Loading",background:"rgba(255, 255, 255)"});ve[oe]=Oe,r.request({url:de,method:"post",data:ve}).then(()=>{u.currentPage=1,l.nextTick(()=>{B()}),_e.close(),t("matting-success")}).catch(()=>{_e.close()})},J=oe=>{i.value.handleStart(oe),i.value.submit()};return l.onMounted(()=>{setTimeout(()=>{E()},1e3)}),{pagination:u,appConfig:o,tabList:f,currentTab:c,imageViewerRef:n,previewSrcList:y,defaultProps:m,tabTypeName:h,selectArr:v,showCardListData:p,uploadRef:i,activeOtherTab:d,...l.toRefs(a),t:Pe,handleTabClick:E,handleNodeClick:Q,handleTreeNodeClick:ie,handlePreviewImg:_,handleCloseImgViewer:A,handleDeleteMaterial:g,handleSelectItem:L,handleToggleEdit:k,handleEditName:T,handleSearch:I,handleSelectMaterial:N,handleClickBtn:H,handleUploadSuccess:W,handleBeforeUpload:G,handleExceed:$,handleUploadProgress:re,handleUploadChange:Se,handleSelectAllMaterial:D,handleCurrentChange:F,handleSizeChange:C,handleDownloadMaterial:S,handleMouseleave:ae,handleCategoryOpt:M,submitForm:V,handleCancelSelect:ee,handleCascaderChange:j,handleImgUrl:we,handleFileUploadSuccess:Ee,handleExportMaterialCategory:le,handleFileUploadError:P,handleMattingMaterial:me,handleUploadPaste:J}}}),Vxe={class:"jwt-material-wrapper fv h ex"},Uxe={class:"fv h rel"},Hxe={class:"fx mt10"},qxe={class:"custom-tree-node fxmj w pr10"},Wxe=["onClick"],Kxe={class:"fxm"},Gxe={class:"jwt-material-img-wrapper mt15 w fv"},Jxe=["onClick"],Yxe={class:"image-slot fxmc wh"},Xxe={key:1,controls:"",height:"150",width:"150"},Zxe=["src"],Qxe=["src"],$xe=["src"],e5e=["data"],t5e=["src"],n5e={key:2,class:"fxmc el-image",style:{display:"flex"}},i5e={class:"w",controls:""},r5e=["src"],o5e=["src"],a5e={class:"jwt-material-img-name pt5 material-name"},s5e=["title"],l5e={key:0,class:"ex omit plr5 ml10 material-name"},u5e={class:"pr10"},f5e={key:1,class:"fxmc w"},d5e={key:0,class:"fxr w mt15"},c5e={key:0,autoplay:"",class:"w",controls:""},h5e=["src"],p5e=["src"],g5e=["src"],m5e=["data"],v5e=["src"],y5e={key:1,autoplay:"",controls:""},b5e=["src"],k5e=["src"],w5e=["src"];function _5e(e,t,n,i,r,o){const s=l.resolveComponent("el-tab-pane"),a=l.resolveComponent("el-tabs"),u=l.resolveComponent("el-input"),f=l.resolveComponent("el-button"),d=l.resolveComponent("el-upload"),c=l.resolveComponent("jwt-icon"),h=l.resolveComponent("el-tree"),p=l.resolveComponent("el-col"),m=l.resolveComponent("PasteUpload"),y=l.resolveComponent("el-image"),v=l.resolveComponent("JwtMaterialItemMask"),b=l.resolveComponent("el-checkbox"),g=l.resolveComponent("el-empty"),k=l.resolveComponent("el-pagination"),w=l.resolveComponent("el-row"),T=l.resolveComponent("el-image-viewer"),S=l.resolveComponent("el-cascader"),_=l.resolveComponent("el-form-item"),A=l.resolveComponent("el-form"),D=l.resolveComponent("el-dialog"),x=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock("div",Vxe,[l.createVNode(a,{modelValue:e.activeName,"onUpdate:modelValue":t[0]||(t[0]=B=>e.activeName=B),onTabClick:e.handleTabClick},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.tabList,(B,E)=>(l.openBlock(),l.createBlock(s,{key:E,label:B.label,name:B.name},null,8,["label","name"]))),128))]),_:1},8,["modelValue","onTabClick"]),l.createVNode(w,{class:"jwt-material-content ex",gutter:20},{default:l.withCtx(()=>[l.withDirectives(l.createVNode(p,{class:"jwt-material-left",lg:4,md:6,sm:6,xl:4,xs:8},{default:l.withCtx(()=>[l.createElementVNode("div",Uxe,[l.createVNode(u,{modelValue:e.categoryVal,"onUpdate:modelValue":t[1]||(t[1]=B=>e.categoryVal=B),placeholder:e.t("请输入分类名称")},{suffix:l.withCtx(()=>t[9]||(t[9]=[l.createElementVNode("i",{class:"el-icon el-input__icon"},[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z",fill:"currentColor"})])],-1)])),_:1},8,["modelValue","placeholder"]),l.createElementVNode("div",Hxe,[l.createVNode(d,{accept:"file",action:e.appConfig.importApi,data:{type:e.currentTab.type},name:e.appConfig.updateName,"on-error":e.handleFileUploadError,"on-success":e.handleFileUploadSuccess,"show-file-list":!1,"with-credentials":""},{default:l.withCtx(()=>[l.createVNode(f,{type:"primary",onClick:e.handleClickBtn},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("导入")),1)]),_:1},8,["onClick"])]),_:1},8,["action","data","name","on-error","on-success"]),l.createVNode(f,{class:"ml10",type:"primary",onClick:e.handleExportMaterialCategory},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("导出")),1)]),_:1},8,["onClick"])]),l.createVNode(h,{class:"pt5 rbor tree-class h ex",data:e.treeData,"expand-on-click-node":!1,"highlight-current":"",props:e.defaultProps,onNodeClick:e.handleNodeClick},{default:l.withCtx(({node:B,data:E})=>[l.createElementVNode("div",qxe,[l.createElementVNode("span",null,l.toDisplayString(B.label),1),B.level<=e.appConfig.nodeLevel?(l.openBlock(),l.createBlock(c,{key:0,class:"more-line-opt",icon:"more-line",size:"18",onClick:l.withModifiers(F=>e.handleTreeNodeClick(F,B,E),["stop"])},null,8,["onClick"])):l.createCommentVNode("",!0)])]),_:1},8,["data","props","onNodeClick"]),l.createElementVNode("div",{class:"abs category-add-wrapper",style:l.normalizeStyle({top:e.categoryPop.top,right:"10px",display:e.categoryPop.display}),onMouseleave:t[2]||(t[2]=(...B)=>e.handleMouseleave&&e.handleMouseleave(...B))},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.categoryOpt,(B,E)=>(l.openBlock(),l.createElementBlock("div",{key:E,class:"p10 tc cp category-opt-item",onClick:F=>e.handleCategoryOpt(B)},l.toDisplayString(B.title),9,Wxe))),128))],36)])]),_:1},512),[[l.vShow,!e.activeOtherTab]]),l.createVNode(p,{class:"jwt-material-right",lg:20,md:18,sm:18,xl:20,xs:16},{default:l.withCtx(()=>{var B,E,F,C;return[l.createElementVNode("div",Kxe,[l.createVNode(m,{copy:e.appConfig.showPasteUpload,limit:0,onUploadPaste:e.handleUploadPaste},null,8,["copy","onUploadPaste"]),l.withDirectives(l.createVNode(d,{ref:"uploadRef",accept:e.currentTab.accept,action:e.appConfig.uploadApi,"auto-upload":!1,"before-upload":e.handleBeforeUpload,limit:+e.appConfig.oplpadLimit,multiple:"",name:e.appConfig.updateName,"on-change":e.handleUploadChange,"on-exceed":e.handleExceed,"on-progress":e.handleUploadProgress,"on-success":e.handleUploadSuccess,"show-file-list":!1,"with-credentials":""},{default:l.withCtx(()=>[l.createVNode(f,{type:"primary",onClick:e.handleClickBtn},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("上传"))+l.toDisplayString(e.tabTypeName),1)]),_:1},8,["onClick"])]),_:1},8,["accept","action","before-upload","limit","name","on-change","on-exceed","on-progress","on-success"]),[[l.vShow,!e.activeOtherTab]]),e.appConfig.isSelectAll?(l.openBlock(),l.createBlock(f,{key:0,class:"ml10",type:"primary",onClick:e.handleSelectAllMaterial},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("全选"))+l.toDisplayString(e.tabTypeName),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),e.used?(l.openBlock(),l.createBlock(f,{key:1,class:"ml10",disabled:!((B=e.selectArr)!=null&&B.length),type:"primary",onClick:e.handleSelectMaterial},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("使用选中"))+l.toDisplayString(e.tabTypeName),1)]),_:1},8,["disabled","onClick"])):l.createCommentVNode("",!0),l.withDirectives(l.createVNode(f,{class:"ml10",disabled:!((E=e.selectArr)!=null&&E.length),type:"danger",onClick:t[3]||(t[3]=I=>e.handleDeleteMaterial(0,{},"batch"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("删除"))+l.toDisplayString(e.tabTypeName),1)]),_:1},8,["disabled"]),[[l.vShow,!e.activeOtherTab]]),e.activeName===1&&e.appConfig.mattingApi?(l.openBlock(),l.createBlock(f,{key:2,class:"ml10",disabled:!((F=e.selectArr)!=null&&F.length),type:"primary",onClick:e.handleMattingMaterial},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("一键抠图")),1)]),_:1},8,["disabled","onClick"])):l.createCommentVNode("",!0),l.createVNode(u,{modelValue:e.searchVal,"onUpdate:modelValue":t[4]||(t[4]=I=>e.searchVal=I),class:"ml10 w200",placeholder:e.t("请输入关键词"),onKeydown:l.withKeys(e.handleSearch,["enter"])},{suffix:l.withCtx(()=>t[10]||(t[10]=[l.createElementVNode("i",{class:"el-icon el-input__icon"},[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z",fill:"currentColor"})])],-1)])),_:1},8,["modelValue","placeholder","onKeydown"])]),l.createElementVNode("div",Gxe,[l.createElementVNode("div",{class:l.normalizeClass(["ex oy jwt-material-img-content",[e.showCardListData?"fx fxwp":""]])},[(C=e.dataList)!=null&&C.length?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(e.dataList,(I,N)=>(l.openBlock(),l.createElementBlock("div",{key:N,class:l.normalizeClass([e.showCardListData?"jwt-material-img-item":"w"])},[e.showCardListData?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("div",{class:"rel img-item-wrapper",onClick:H=>e.handleSelectItem(N,I)},[e.currentTab.type==="img"?(l.openBlock(),l.createBlock(y,{key:0,fit:"scale-down",src:e.handleImgUrl(I.url)},{error:l.withCtx(()=>[l.createElementVNode("div",Yxe,[l.createVNode(c,{icon:"image-2-line",size:"30"})])]),_:2},1032,["src"])):e.currentTab.type==="video"?(l.openBlock(),l.createElementBlock("video",Xxe,[l.createElementVNode("source",{src:I.url,type:"video/ogg"},null,8,Zxe),l.createElementVNode("source",{src:I.url,type:"video/mp4"},null,8,Qxe),l.createElementVNode("source",{src:I.url,type:"video/webm"},null,8,$xe),l.createElementVNode("object",{data:I.url,height:"150",width:"150"},[l.createElementVNode("embed",{height:"150",src:I.url,width:"150"},null,8,t5e)],8,e5e)])):e.currentTab.type==="audio"?(l.openBlock(),l.createElementBlock("div",n5e,[l.createElementVNode("audio",i5e,[l.createElementVNode("source",{src:I.url,type:"audio/ogg"},null,8,r5e),l.createElementVNode("source",{src:I.url,type:"audio/mpeg"},null,8,o5e),t[11]||(t[11]=l.createTextVNode(" 您的浏览器不支持 audio 元素。 "))])])):l.createCommentVNode("",!0),I.url?(l.openBlock(),l.createBlock(v,{key:3,index:N,item:I,"show-delete":e.appConfig.isDelete,"show-edit":e.appConfig.isEdite,onDelete:e.handleDeleteMaterial,onPreviewImg:e.handlePreviewImg,onToggleEdit:e.handleToggleEdit},null,8,["index","item","show-delete","show-edit","onDelete","onPreviewImg","onToggleEdit"])):l.createCommentVNode("",!0)],8,Jxe),l.createElementVNode("div",a5e,[I.isEdite?(l.openBlock(),l.createBlock(u,{key:1,modelValue:I.name,"onUpdate:modelValue":H=>I.name=H,size:"small",onBlur:H=>e.handleEditName(H,N),onKeydown:l.withKeys(H=>e.handleEditName(H,N),["enter"])},null,8,["modelValue","onUpdate:modelValue","onBlur","onKeydown"])):(l.openBlock(),l.createElementBlock("p",{key:0,class:"tc omit",title:I.name},l.toDisplayString(I.name),9,s5e))])],64)):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["fs16 fxmj w ptb8 material-list-item bbor",[N?"bbor":""]])},[l.createVNode(b,{modelValue:I.checked,"onUpdate:modelValue":H=>I.checked=H,size:"large"},null,8,["modelValue","onUpdate:modelValue"]),l.createVNode(c,{class:l.normalizeClass(["ml10",I.cls]),icon:I.icon,size:24},null,8,["class","icon"]),I.isEdite?(l.openBlock(),l.createBlock(u,{key:1,modelValue:I.name,"onUpdate:modelValue":H=>I.name=H,class:"ex ml10",onBlur:H=>e.handleEditName(H,N),onKeydown:l.withKeys(H=>e.handleEditName(H,N),["enter"])},null,8,["modelValue","onUpdate:modelValue","onBlur","onKeydown"])):(l.openBlock(),l.createElementBlock("div",l5e,l.toDisplayString(I.name),1)),l.createElementVNode("div",u5e,[e.appConfig.isEdite?(l.openBlock(),l.createBlock(f,{key:0,link:"",type:I.isEdite?"success":"primary",onClick:l.withModifiers(H=>e.handleToggleEdit(N,I),["stop"])},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(I.isEdite?e.t("完成"):e.t("编辑")),1)]),_:2},1032,["type","onClick"])):l.createCommentVNode("",!0),e.appConfig.isDelete?(l.openBlock(),l.createBlock(f,{key:1,link:"",type:"danger",onClick:l.withModifiers(H=>e.handleDeleteMaterial(N,I),["stop"])},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("删除")),1)]),_:2},1032,["onClick"])):l.createCommentVNode("",!0),l.createVNode(f,{link:"",type:"primary",onClick:l.withModifiers(H=>e.handleDownloadMaterial(N),["stop"])},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("下载")),1)]),_:2},1032,["onClick"]),l.createVNode(f,{link:"",type:"primary",onClick:l.withModifiers(H=>e.handlePreviewImg(N),["stop"])},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("查看")),1)]),_:2},1032,["onClick"])])],2))],2))),128)):(l.openBlock(),l.createElementBlock("div",f5e,[l.createVNode(g,{description:e.t("暂无数据")},null,8,["description"])]))],2),e.appConfig.showPagination?(l.openBlock(),l.createElementBlock("div",d5e,[l.createVNode(k,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,layout:e.appConfig.pagination.layout,"page-size":e.pagination.pageSize,"page-sizes":e.appConfig.pagination["page-sizes"],total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange},null,8,["current-page","disabled","layout","page-size","page-sizes","total","onCurrentChange","onSizeChange"])])):l.createCommentVNode("",!0)])]}),_:1})]),_:1}),e.dialogPreviewVisible?(l.openBlock(),l.createBlock(T,{key:0,ref:"imageViewerRef","initial-index":e.previewImgIndex,"url-list":e.previewSrcList,"z-index":9999,onClose:e.handleCloseImgViewer},null,8,["initial-index","url-list","onClose"])):l.createCommentVNode("",!0),l.createVNode(D,{modelValue:e.dialogOtherVisible,"onUpdate:modelValue":t[8]||(t[8]=B=>e.dialogOtherVisible=B),"append-to-body":"",center:"","destroy-on-close":"",fullscreen:e.currentTab.type==="file","lock-scroll":"",title:e.dialogTitle,width:"50%"},{default:l.withCtx(()=>[l.withDirectives((l.openBlock(),l.createElementBlock("div",{class:"fxmc w",style:l.normalizeStyle({height:e.currentTab.type==="file"&&e.previewImgUrl?"88vh":""})},[e.previewImgUrl?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[e.currentTab.type==="video"?(l.openBlock(),l.createElementBlock("video",c5e,[l.createElementVNode("source",{src:e.previewImgUrl,type:"video/ogg"},null,8,h5e),l.createElementVNode("source",{src:e.previewImgUrl,type:"video/mp4"},null,8,p5e),l.createElementVNode("source",{src:e.previewImgUrl,type:"video/webm"},null,8,g5e),l.createElementVNode("object",{data:e.previewImgUrl},[l.createElementVNode("embed",{src:e.previewImgUrl},null,8,v5e)],8,m5e)])):e.currentTab.type==="audio"?(l.openBlock(),l.createElementBlock("audio",y5e,[l.createElementVNode("source",{src:e.previewImgUrl,type:"audio/ogg"},null,8,b5e),l.createElementVNode("source",{src:e.previewImgUrl,type:"audio/mpeg"},null,8,k5e),t[12]||(t[12]=l.createTextVNode(" 您的浏览器不支持 audio 元素。 "))])):e.currentTab.type==="file"?(l.openBlock(),l.createElementBlock("iframe",{key:2,class:"w",frameborder:"0",height:"100%",src:e.previewImgUrl},null,8,w5e)):l.createCommentVNode("",!0)],64)):(l.openBlock(),l.createBlock(A,{key:1,ref:"ruleFormRef",class:"w","label-width":"120px",model:e.ruleForm,rules:e.rules},{default:l.withCtx(()=>[l.createVNode(_,{label:e.t("上级分类"),prop:"pid"},{default:l.withCtx(()=>[l.createVNode(S,{modelValue:e.ruleForm.pid,"onUpdate:modelValue":t[5]||(t[5]=B=>e.ruleForm.pid=B),clearable:"",options:e.selectTreeData,props:e.defaultProps,onChange:e.handleCascaderChange},null,8,["modelValue","options","props","onChange"])]),_:1},8,["label"]),l.createVNode(_,{label:e.t("分类名称"),prop:"name"},{default:l.withCtx(()=>[l.createVNode(u,{modelValue:e.ruleForm.name,"onUpdate:modelValue":t[6]||(t[6]=B=>e.ruleForm.name=B),class:"w200"},null,8,["modelValue"])]),_:1},8,["label"]),l.createVNode(_,null,{default:l.withCtx(()=>[l.createVNode(f,{type:"primary",onClick:e.submitForm},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("确定")),1)]),_:1},8,["onClick"]),l.createVNode(f,{onClick:t[7]||(t[7]=B=>e.dialogOtherVisible=!1)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("取消")),1)]),_:1})]),_:1})]),_:1},8,["model","rules"]))],4)),[[x,e.loading]])]),_:1},8,["modelValue","fullscreen","title"])])}const C5e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(zxe,[["render",_5e],["__scopeId","data-v-13ac0fd5"]])},Symbol.toStringTag,{value:"Module"})),S5e=["innerHTML"],x5e=l.defineComponent({name:"JwtPrefixSuffix"}),E5e=l.defineComponent({...x5e,props:{item:{type:Object,default:()=>{}},row:{type:Object,default:()=>{}},type:{type:String,default:"pre"}},setup(e){const t=e,n=l.computed(()=>{var u;return((u=t.item)==null?void 0:u[`${t.type}Unit`])||""}),i=l.computed(()=>{var f;return((f=t.item)==null?void 0:f[`${t.type}UnitCls`])||""||(t.type==="pre"?"mr2":"ml2")}),r=l.computed(()=>{var u;return((u=t.item)==null?void 0:u[`${t.type}UnitFun`])||""}),o=l.computed(()=>r.value?t.type==="pre"?t.item.preUnitFun(t.row,t.item):t.item.sufUnitFun(t.row,t.item):""),s=l.computed(()=>{var f,d,c;const u=((f=t.item)==null?void 0:f[`${t.type}Icon`])||"";return Ke.isFunction(u)?t.type==="pre"?(d=t.item)==null?void 0:d.preIcon(t.row,t.item):(c=t.item)==null?void 0:c.sufIcon(t.row,t.item):u}),a=l.computed(()=>{var f,d,c;const u=((f=t.item)==null?void 0:f[`${t.type}IconTip`])||"";return Ke.isFunction(u)?t.type==="pre"?(d=t.item)==null?void 0:d.preIconTip(t.row,t.item):(c=t.item)==null?void 0:c.sufIconTip(t.row,t.item):u});return(u,f)=>{const d=l.resolveComponent("jwt-icon"),c=l.resolveComponent("el-tooltip");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.type==="pre"&&a.value?(l.openBlock(),l.createBlock(c,{key:0,content:a.value,effect:"dark",placement:"top",persistent:!1},{default:l.withCtx(()=>[l.createVNode(d,{class:"mr2 cp",icon:s.value,size:"16"},null,8,["icon"])]),_:1},8,["content"])):l.createCommentVNode("",!0),r.value&&o.value?(l.openBlock(),l.createElementBlock("span",{key:1,class:l.normalizeClass(i.value),innerHTML:o.value},null,10,S5e)):n.value?(l.openBlock(),l.createElementBlock("span",{key:2,class:l.normalizeClass(i.value)},l.toDisplayString(n.value),3)):l.createCommentVNode("",!0),e.type==="suf"&&a.value?(l.openBlock(),l.createBlock(c,{key:3,content:a.value,effect:"dark",placement:"top",persistent:!1},{default:l.withCtx(()=>[l.createVNode(d,{class:"ml2 cp",icon:s.value,size:"16"},null,8,["icon"])]),_:1},8,["content"])):l.createCommentVNode("",!0)],64)}}}),B5e=Object.freeze(Object.defineProperty({__proto__:null,default:E5e},Symbol.toStringTag,{value:"Module"})),D5e=l.defineComponent({name:"JwtRateIcon",props:{modelValue:{type:[Number,String],default:0},size:{type:[Number,String],default:18},disabled:{type:Boolean,default:!1},voidIcon:{type:String,default:"star-line"},icon:{type:String,default:"star-fill"},color:{type:String,default:"#f7ba2a"},voidColor:{type:String,default:"#c6d1de"},max:{type:[Number,String],default:5}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=l.computed(()=>Math.min(+e.max,10)),i=l.reactive({activeIndex:e.modelValue,hoverIndex:e.modelValue});l.watchEffect(()=>{i.activeIndex=e.modelValue,i.hoverIndex=e.modelValue});const r=u=>{e.disabled||(i.hoverIndex=u+1)},o=()=>{e.disabled||(i.hoverIndex=i.activeIndex)},s=u=>{if(!e.disabled){if(i.activeIndex===u+1){a();return}i.activeIndex=u+1,i.hoverIndex=u+1,t("update:modelValue",u+1),t("change",u+1)}},a=()=>{e.disabled||(i.activeIndex=0,i.hoverIndex=0,t("update:modelValue",0),t("change",0))};return{...l.toRefs(i),maxLenIcon:n,handleMouseenter:r,handleMouseleave:o,handleChange:s,handleDblclick:a}}}),A5e={class:"base-rate-icon"};function T5e(e,t,n,i,r,o){const s=l.resolveComponent("jwt-icon");return l.openBlock(),l.createElementBlock("div",A5e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.maxLenIcon,(a,u)=>(l.openBlock(),l.createBlock(s,{key:u,class:l.normalizeClass(["mr5",[e.disabled?"cpna":"cp"]]),icon:+e.hoverIndex>u?e.icon:e.voidIcon,style:l.normalizeStyle({fontSize:e.size+"px",color:+e.hoverIndex>u?e.color:e.voidColor}),onClick:l.withModifiers(f=>e.handleChange(u),["stop"]),onDblclick:e.handleDblclick,onMouseenter:f=>e.handleMouseenter(u),onMouseleave:e.handleMouseleave},null,8,["class","icon","style","onClick","onDblclick","onMouseenter","onMouseleave"]))),128))])}const O5e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(D5e,[["render",T5e]])},Symbol.toStringTag,{value:"Module"})),F5e=l.defineComponent({name:"JwtSelectServer",components:{},props:{listApi:{type:String,default:""},addApi:{type:String,default:""},cptKey:{type:String,default:""},searchKey:{type:String,default:"title"},exLabelKey:{type:String,default:""},labelKey:{type:String,default:"title"},placeholder:{type:String,default:""},valueKey:{type:String,default:"id"},valueType:{type:String,default:"number"},avatarKey:{type:String,default:""},exParams:{type:Object,default:()=>{}},modelValue:{type:[String,Number,Array],default:""},modelValueName:{type:[String,Number,Array],default:""},sourceData:{type:Object,default:()=>{}},modelValueKey:{type:String,default:""},searchValueKey:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},showAdd:{type:Boolean,default:!1},alwaysAdd:{type:Boolean,default:!1},autoAdd:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},addParams:{type:Object,default:()=>{}},focusFetch:{type:Boolean,default:!1}},emits:["update:modelValue","change","select","add-option","add-success"],setup(e,{emit:t}){const n=l.ref(null),i=Nn(),r=l.useAttrs();let o=[],s=null,a=null,u=null,f=null;const d=50,c=l.reactive({content:"",listData:[],searchVal:"",timer:null,fetched:!1,persistent:!1,remoteLoad:!0,dynamicParams:{}}),h=l.computed(()=>r.disabledFun&&Ke.isFunction(r.disabledFun)?r.disabledFun(e.sourceData):e.disabled),p=l.computed({get:()=>{var C,I;return e.multiple?Ke.isArray(e.modelValue)?e.modelValue:e.modelValue?(I=(C=e.modelValue)==null?void 0:C.split(","))==null?void 0:I.map(N=>(e==null?void 0:e.valueType)==="number"?Number(N):N):[]:e.modelValue},set:C=>{t("update:modelValue",C)}}),m=()=>{const{modelValueName:C,labelKey:I,valueKey:N,multiple:H,valueType:Q,modelValueKey:ie,modelValue:ae}=e;let M=[];if(C){let j="";return H?(Ke.isArray(C)?j=C:j=C.split(","),M=p.value.map((V,L)=>({[I]:j[L],[N]:Q==="number"?+V:V}))):M=[{[I]:C,[N]:Q==="number"?+p.value:p.value}],M}else if(ie){const j=rr(ie,e.sourceData);return e.sourceData&&j&&(Ke.isArray(j)?M=v(j):Ke.isObject(j)?M=v([j]):M=[{[I]:j,[N]:ae}],M=M==null?void 0:M.map(V=>({...V,[I]:V[I],[N]:Q==="number"?+V[N]:V[N]}))),M}else{let j=[];return e!=null&&e.modelValue&&(!H||e!=null&&e.modelValue.length)?j=y(!0):j=y(!0,"","",!!r.defaultSelect),j!=null&&j.length?j:[]}},y=(C=!1,I="",N="",H=!0)=>{var W;const{listApi:Q,searchKey:ie,valueKey:ae,searchValueKey:M,multiple:j}=e;if(!Q)return c.listData=(e==null?void 0:e.options)||[],c.fetched=!0,(e==null?void 0:e.options)||[];let V=Q;if(Ke.isFunction(Q)&&(V=Q(e.sourceData)),!H)return[];let L={sort:"id",order:"desc",per_page:d,...e.exParams,...c.dynamicParams};if(r.exParamsFun&&Ke.isFunction(r.exParamsFun)){const G=r.exParamsFun(e.sourceData);L={...L,...G}}L[ie]=c.searchVal,N&&(L[N]=I),C&&M&&(L[ae]=p.value||""),C&&(L.union_id=j?(W=p==null?void 0:p.value)==null?void 0:W.join(","):e==null?void 0:e.modelValue),i.request({url:V,method:"get",params:L}).then(G=>{const $=r!=null&&r.noPaging?G:G.data;C&&!(r!=null&&r.noPaging)&&G!=null&&G.total&&(G==null?void 0:G.total)<d&&(c.remoteLoad=!1),b($,N,C)})},v=(C=[],I=!1)=>{const{labelKey:N,exLabelKey:H,valueKey:Q,multiple:ie}=e;let ae=C;const M=I?Ke.cloneDeep(o):[];return H||r!=null&&r.exLabelKeyFun?ae=C.map(j=>{const V=H?j[H]:r.exLabelKeyFun(j);return j[N]=V,j}):r!=null&&r.handleDataFun&&(ae=r.handleDataFun(C)),I&&ie&&(ae.forEach(j=>{var L;((L=p==null?void 0:p.value)==null?void 0:L.includes(j[Q]))&&M.forEach((W,G,$)=>{W[Q]===j[Q]&&$.splice(G,1)})}),M.length&&ae.push(...M)),ae},b=(C,I="",N=!1)=>{const{valueKey:H,addApi:Q}=e,ie=v(C,!0);if(Q?c.listData.splice(0,c.listData.length,...ie):c.listData=Object.freeze(ie.map(ae=>Object.freeze(ae))),c.fetched=!0,c.persistent=!0,I&&(s&&clearTimeout(s),s=setTimeout(()=>{p.value=null},150)),N&&r.defaultSelect&&C.length){if(p.value)return;const ae=C[0][H];p.value=ae,l.nextTick(()=>{g(ae)})}},g=C=>{if(t("change",C),(C||C===0)&&r.emitSelect){let I=null;const{valueKey:N,multiple:H}=e;H?(I=[],c.listData.map(Q=>{C.includes(Q[N])&&I.push(Q)}),o=I):I=c.listData.find(Q=>Q[N]===C),a&&clearTimeout(a),a=setTimeout(()=>{t("select",I)},10)}},k=C=>{const{listApi:I,labelKey:N}=e;if(C){if(!I){c.listData=e.options.filter(H=>H[N].includes(C));return}clearTimeout(c.timer),c.timer=setTimeout(()=>{y()},300)}else if(!I){c.listData=e.options;return}c.searchVal=C},w=()=>{t("add-option"),c.fetched=!1,n.value.blur()},T=()=>{const{labelKey:C,valueKey:I,multiple:N,addApi:H,addParams:Q}=e;if(!c.searchVal)return lt.ElMessage.error(Pe("请输入内容"));H&&i.request({url:H,method:"post",data:{[C]:c.searchVal,...Q}}).then(ie=>{t("add-success",ie);const ae=Ke.isFunction(r==null?void 0:r.handleAddSuccess)?r==null?void 0:r.handleAddSuccess(ie):ie[I];c.listData.unshift({[C]:c.searchVal,[I]:ae}),N?p.value.push(ae):p.value=ae,l.nextTick(()=>{n.value.blur()}),u&&clearTimeout(u),r.addRefresh&&(c.searchVal="",y()),u=setTimeout(()=>{n.value.blur()},100)})},S=()=>{o=m()||[],o.length&&(c.persistent=!0),c.listData=o},_=C=>{c.dynamicParams=C},A=()=>{var C,I;c.persistent=!0,(((C=p.value)==null?void 0:C.length)===0&&((I=c.listData)==null?void 0:I.length)===0||!c.fetched||e.focusFetch)&&y(!0)},D=()=>{c.persistent=!1},x=C=>{if(i.fillUrl)return i.fillUrl(C)};l.onMounted(()=>{f=setTimeout(()=>{S()},300)});const B=l.watch(()=>e.modelValueName,C=>{l.nextTick(()=>{C!=null&&C.isTrusted||C&&S()})},{immediate:!0}),E=l.watch(()=>e.sourceData,C=>{l.nextTick(()=>{e.modelValueKey&&C&&Ke.isObject(C)&&!Ke.isEmpty(C)&&S()})}),F=(C=[])=>{b(C)};return l.onBeforeUnmount(()=>{c.listData=[],c.persistent=!1,clearTimeout(c.timer),E(),B(),s&&clearTimeout(s),a&&clearTimeout(a),u&&clearTimeout(u),f&&clearTimeout(f)}),{JwtSelectServerRef:n,selectModel:p,attrs:r,selectDisabled:h,t:Pe,...l.toRefs(c),handleSelectChange:g,remoteMethod:k,getDataList:y,handleAddDialog:w,handleSelectFocus:A,handleSelectBlur:D,handleAddOption:T,hanldeSetListData:F,handleSetDynamicParams:_,fillUrlFun:x}}}),P5e={class:"rel"},j5e={key:0,class:"fxmc p10 bbor sti bcf"},I5e={key:1,class:"fxmc p10 bbor sti bcf"},R5e={key:0,class:"fxm ptb10"},N5e=["innerHTML"],M5e={key:1,class:"ml10"},L5e={class:"fxmc fv ptb15"},z5e={class:"ptb30 fxmc"},V5e={class:"fxmc p10 tbor"};function U5e(e,t,n,i,r,o){const s=l.resolveComponent("el-input"),a=l.resolveComponent("el-button"),u=l.resolveComponent("el-image"),f=l.resolveComponent("el-option"),d=l.resolveComponent("el-text"),c=l.resolveComponent("el-select");return l.openBlock(),l.createBlock(c,{ref:"JwtSelectServerRef",modelValue:e.selectModel,"onUpdate:modelValue":t[3]||(t[3]=h=>e.selectModel=h),clearable:"",disabled:e.selectDisabled,filterable:"",multiple:e.multiple,persistent:e.persistent,placeholder:e.placeholder,remote:e.remoteLoad,"remote-method":e.remoteMethod,"remote-show-suffix":"",onBlur:e.handleSelectBlur,onChange:e.handleSelectChange,onClear:e.getDataList,onFocus:e.handleSelectFocus},l.createSlots({default:l.withCtx(()=>[l.createElementVNode("div",P5e,[e.autoAdd?(l.openBlock(),l.createElementBlock("div",j5e,[l.createVNode(s,{modelValue:e.searchVal,"onUpdate:modelValue":t[0]||(t[0]=h=>e.searchVal=h),placeholder:e.t("立即新增")},null,8,["modelValue","placeholder"]),l.createVNode(a,{class:"ml5",type:"primary",onClick:e.handleAddOption},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("新增")),1)]),_:1},8,["onClick"])])):e.alwaysAdd?(l.openBlock(),l.createElementBlock("div",I5e,[l.createVNode(a,{class:"w",link:"",type:"primary",onClick:e.handleAddDialog},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("立即新增")),1)]),_:1},8,["onClick"])])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"default",{list:e.listData},()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.listData,h=>(l.openBlock(),l.createBlock(f,{key:h[e.valueKey],class:l.normalizeClass({"avatar-logo":e.avatarKey}),label:h[e.labelKey],value:h[e.valueKey]},{default:l.withCtx(()=>{var p;return[e.avatarKey?(l.openBlock(),l.createElementBlock("div",R5e,[l.createVNode(u,{class:l.normalizeClass([(p=e.attrs)!=null&&p.avatarCls?e.attrs.avatarCls:"w40 r100px"]),"preview-src-list":[e.fillUrlFun(h[e.avatarKey])],"preview-teleported":"",src:e.fillUrlFun(h[e.avatarKey])},null,8,["class","preview-src-list","src"]),e.attrs.showHtml?(l.openBlock(),l.createElementBlock("div",{key:0,class:"ml10",innerHTML:h[e.labelKey]},null,8,N5e)):(l.openBlock(),l.createElementBlock("span",M5e,l.toDisplayString(h[e.labelKey]),1))])):l.createCommentVNode("",!0)]}),_:2},1032,["class","label","value"]))),128))],!0)])]),_:2},[e.showAdd||e.alwaysAdd?{name:"empty",fn:l.withCtx(()=>[l.createElementVNode("div",L5e,[l.createElementVNode("div",null,[l.createVNode(d,{type:"info"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("暂无数据"))+"~",1)]),_:1})]),l.createElementVNode("div",{class:"mt10 cp",onClick:t[1]||(t[1]=(...h)=>e.handleAddDialog&&e.handleAddDialog(...h))},[l.createVNode(d,{type:"primary"},{default:l.withCtx(()=>[t[4]||(t[4]=l.createElementVNode("i",{class:"el-icon","data-v-ea893728":""},[l.createElementVNode("svg",{"data-v-ea893728":"",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z",fill:"currentColor"})])],-1)),l.createElementVNode("span",null,l.toDisplayString(e.t("立即新增")),1)]),_:1})])])]),key:"0"}:e.autoAdd?{name:"empty",fn:l.withCtx(()=>[l.createElementVNode("div",null,[l.createElementVNode("div",z5e,[l.createVNode(d,{type:"info"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("暂无数据"))+"~",1)]),_:1})]),l.createElementVNode("div",V5e,[l.createVNode(s,{modelValue:e.searchVal,"onUpdate:modelValue":t[2]||(t[2]=h=>e.searchVal=h),placeholder:e.t("立即新增")},null,8,["modelValue","placeholder"]),l.createVNode(a,{class:"ml5",type:"primary",onClick:e.handleAddOption},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("新增")),1)]),_:1},8,["onClick"])])])]),key:"1"}:void 0]),1032,["modelValue","disabled","multiple","persistent","placeholder","remote","remote-method","onBlur","onChange","onClear","onFocus"])}const H5e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(F5e,[["render",U5e],["__scopeId","data-v-dd5288e7"]])},Symbol.toStringTag,{value:"Module"})),Ob={__name:"tableColumnHeader",props:{item:{type:Object,default:()=>{}},tableData:{type:Array,default:()=>[]}},emits:["fixed","select"],setup(e,{emit:t}){const n=l.ref(!1),i=l.ref(!1),r=e,o=t;l.watchEffect(()=>{var u,f,d;if(r.item.type==="selection"){const c=((u=r==null?void 0:r.tableData)==null?void 0:u.length)&&((f=r==null?void 0:r.tableData)==null?void 0:f.every(p=>p.selectionChecked)),h=(d=r==null?void 0:r.tableData)==null?void 0:d.some(p=>p.selectionChecked);n.value=c,i.value=h&&!c}});function s(){o("fixed",r.item)}function a(u){o("select",u)}return(u,f)=>{var p,m,y,v,b;const d=l.resolveComponent("el-checkbox"),c=l.resolveComponent("jwt-icon"),h=l.resolveComponent("el-tooltip");return l.openBlock(),l.createElementBlock(l.Fragment,null,[((p=e.item)==null?void 0:p.type)==="selection"?(l.openBlock(),l.createBlock(d,{key:0,modelValue:n.value,"onUpdate:modelValue":f[0]||(f[0]=g=>n.value=g),indeterminate:i.value,onChange:a},null,8,["modelValue","indeterminate"])):(m=e.item)!=null&&m.isControl?(l.openBlock(),l.createBlock(c,{key:1,class:l.normalizeClass(e.item.fixed?"":"header-fixed-icon"),icon:"lock-line",onClick:l.withModifiers(s,["stop"])},null,8,["class"])):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString((y=e.item)==null?void 0:y.label),1),(v=e.item)!=null&&v.tips?(l.openBlock(),l.createBlock(h,{key:2,content:(b=e.item)==null?void 0:b.tips,persistent:!1,placement:"right"},{default:l.withCtx(()=>{var g;return[l.createVNode(c,{class:"ml4",icon:((g=e.item)==null?void 0:g.icon)||"information-line"},null,8,["icon"])]}),_:1},8,["content"])):l.createCommentVNode("",!0)],64)}}},q5e=Object.freeze(Object.defineProperty({__proto__:null,default:Ob},Symbol.toStringTag,{value:"Module"}));var W5e=Object.defineProperty,Fb=Object.getOwnPropertySymbols,RK=Object.prototype.hasOwnProperty,NK=Object.prototype.propertyIsEnumerable,MK=(e,t,n)=>t in e?W5e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zd=(e,t)=>{for(var n in t||(t={}))RK.call(t,n)&&MK(e,n,t[n]);if(Fb)for(var n of Fb(t))NK.call(t,n)&&MK(e,n,t[n]);return e},LK=(e,t)=>{var n={};for(var i in e)RK.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&Fb)for(var i of Fb(e))t.indexOf(i)<0&&NK.call(e,i)&&(n[i]=e[i]);return n};const aBe="[vue-draggable-plus]: ";function sBe(e){}function lBe(e){}function zK(e,t,n){return n>=0&&n<e.length&&e.splice(n,0,e.splice(t,1)[0]),e}function K5e(e){return e.replace(/-(\w)/g,(t,n)=>n?n.toUpperCase():"")}function G5e(e){return Object.keys(e).reduce((t,n)=>(typeof e[n]<"u"&&(t[K5e(n)]=e[n]),t),{})}function VK(e,t){return Array.isArray(e)&&e.splice(t,1),e}function UK(e,t,n){return Array.isArray(e)&&e.splice(t,0,n),e}function J5e(e){return typeof e>"u"}function Y5e(e){return typeof e=="string"}function HK(e,t,n){const i=e.children[n];e.insertBefore(t,i)}function DE(e){e.parentNode&&e.parentNode.removeChild(e)}function X5e(e,t=document){var n;let i=null;return typeof(t==null?void 0:t.querySelector)=="function"?i=(n=t==null?void 0:t.querySelector)==null?void 0:n.call(t,e):i=document.querySelector(e),i||(`${e}`,void 0),i}function Z5e(e,t,n=null){return function(...i){return e.apply(n,i),t.apply(n,i)}}function Q5e(e,t){const n=Zd({},e);return Object.keys(t).forEach(i=>{n[i]?n[i]=Z5e(e[i],t[i]):n[i]=t[i]}),n}function $5e(e){return e instanceof HTMLElement}function qK(e,t){Object.keys(e).forEach(n=>{t(n,e[n])})}function e8e(e){return e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)}const t8e=Object.assign;/**!
214
214
  * Sortable 1.15.2
215
215
  * @author RubaXa <trash@rubaxa.org>
216
216
  * @author owenm <owen23355@gmail.com>
217
217
  * @license MIT
218
- */function WK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function aa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WK(Object(n),!0).forEach(function(i){n8e(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WK(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Pb(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pb=function(t){return typeof t}:Pb=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pb(e)}function n8e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ra(){return Ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ra.apply(this,arguments)}function i8e(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,o;for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}function r8e(e,t){if(e==null)return{};var n=i8e(e,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}var o8e="1.15.2";function Na(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Ma=Na(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),um=Na(/Edge/i),KK=Na(/firefox/i),fm=Na(/safari/i)&&!Na(/chrome/i)&&!Na(/android/i),GK=Na(/iP(ad|od|hone)/i),JK=Na(/chrome/i)&&Na(/android/i),YK={capture:!1,passive:!1};function sn(e,t,n){e.addEventListener(t,n,!Ma&&YK)}function tn(e,t,n){e.removeEventListener(t,n,!Ma&&YK)}function jb(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function a8e(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Do(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&jb(e,t):jb(e,t))||i&&e===n)return e;if(e===n)break}while(e=a8e(e))}return null}var XK=/\s+/g;function jr(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(XK," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(XK," ")}}function Ct(e,t,n){var i=e&&e.style;if(i){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=n+(typeof n=="string"?"":"px")}}function Qd(e,t){var n="";if(typeof e=="string")n=e;else do{var i=Ct(e,"transform");i&&i!=="none"&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function ZK(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n)for(;r<o;r++)n(i[r],r);return i}return[]}function sa(){var e=document.scrollingElement;return e||document.documentElement}function di(e,t,n,i,r){if(!(!e.getBoundingClientRect&&e!==window)){var o,s,a,u,f,d,c;if(e!==window&&e.parentNode&&e!==sa()?(o=e.getBoundingClientRect(),s=o.top,a=o.left,u=o.bottom,f=o.right,d=o.height,c=o.width):(s=0,a=0,u=window.innerHeight,f=window.innerWidth,d=window.innerHeight,c=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!Ma))do if(r&&r.getBoundingClientRect&&(Ct(r,"transform")!=="none"||n&&Ct(r,"position")!=="static")){var h=r.getBoundingClientRect();s-=h.top+parseInt(Ct(r,"border-top-width")),a-=h.left+parseInt(Ct(r,"border-left-width")),u=s+o.height,f=a+o.width;break}while(r=r.parentNode);if(i&&e!==window){var p=Qd(r||e),m=p&&p.a,y=p&&p.d;p&&(s/=y,a/=m,c/=m,d/=y,u=s+d,f=a+c)}return{top:s,left:a,bottom:u,right:f,width:c,height:d}}}function QK(e,t,n){for(var i=hl(e,!0),r=di(e)[t];i;){var o=di(i)[n],s=void 0;if(s=r>=o,!s)return i;if(i===sa())break;i=hl(i,!1)}return!1}function $d(e,t,n,i){for(var r=0,o=0,s=e.children;o<s.length;){if(s[o].style.display!=="none"&&s[o]!==St.ghost&&(i||s[o]!==St.dragged)&&Do(s[o],n.draggable,e,!1)){if(r===t)return s[o];r++}o++}return null}function AE(e,t){for(var n=e.lastElementChild;n&&(n===St.ghost||Ct(n,"display")==="none"||t&&!jb(n,t));)n=n.previousElementSibling;return n||null}function oo(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==St.clone&&(!t||jb(e,t))&&n++;return n}function $K(e){var t=0,n=0,i=sa();if(e)do{var r=Qd(e),o=r.a,s=r.d;t+=e.scrollLeft*o,n+=e.scrollTop*s}while(e!==i&&(e=e.parentNode));return[t,n]}function s8e(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n)}return-1}function hl(e,t){if(!e||!e.getBoundingClientRect)return sa();var n=e,i=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=Ct(n);if(n.clientWidth<n.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return sa();if(i||t)return n;i=!0}}while(n=n.parentNode);return sa()}function l8e(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function TE(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var dm;function eG(e,t){return function(){if(!dm){var n=arguments,i=this;n.length===1?e.call(i,n[0]):e.apply(i,n),dm=setTimeout(function(){dm=void 0},t)}}}function u8e(){clearTimeout(dm),dm=void 0}function tG(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function nG(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function iG(e,t,n){var i={};return Array.from(e.children).forEach(function(r){var o,s,a,u;if(!(!Do(r,t.draggable,e,!1)||r.animated||r===n)){var f=di(r);i.left=Math.min((o=i.left)!==null&&o!==void 0?o:1/0,f.left),i.top=Math.min((s=i.top)!==null&&s!==void 0?s:1/0,f.top),i.right=Math.max((a=i.right)!==null&&a!==void 0?a:-1/0,f.right),i.bottom=Math.max((u=i.bottom)!==null&&u!==void 0?u:-1/0,f.bottom)}}),i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}var Ir="Sortable"+new Date().getTime();function f8e(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(i){if(!(Ct(i,"display")==="none"||i===St.ghost)){e.push({target:i,rect:di(i)});var r=aa({},e[e.length-1].rect);if(i.thisAnimationDuration){var o=Qd(i,!0);o&&(r.top-=o.f,r.left-=o.e)}i.fromRect=r}})}},addAnimationState:function(n){e.push(n)},removeAnimationState:function(n){e.splice(s8e(e,{target:n}),1)},animateAll:function(n){var i=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var r=!1,o=0;e.forEach(function(s){var a=0,u=s.target,f=u.fromRect,d=di(u),c=u.prevFromRect,h=u.prevToRect,p=s.rect,m=Qd(u,!0);m&&(d.top-=m.f,d.left-=m.e),u.toRect=d,u.thisAnimationDuration&&TE(c,d)&&!TE(f,d)&&(p.top-d.top)/(p.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(a=c8e(p,c,h,i.options)),TE(d,f)||(u.prevFromRect=f,u.prevToRect=d,a||(a=i.options.animation),i.animate(u,p,d,a)),a&&(r=!0,o=Math.max(o,a),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},a),u.thisAnimationDuration=a)}),clearTimeout(t),r?t=setTimeout(function(){typeof n=="function"&&n()},o):typeof n=="function"&&n(),e=[]},animate:function(n,i,r,o){if(o){Ct(n,"transition",""),Ct(n,"transform","");var s=Qd(this.el),a=s&&s.a,u=s&&s.d,f=(i.left-r.left)/(a||1),d=(i.top-r.top)/(u||1);n.animatingX=!!f,n.animatingY=!!d,Ct(n,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=d8e(n),Ct(n,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),Ct(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){Ct(n,"transition",""),Ct(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},o)}}}}function d8e(e){return e.offsetWidth}function c8e(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}var ec=[],OE={initializeByDefault:!0},cm={mount:function(e){for(var t in OE)OE.hasOwnProperty(t)&&!(t in e)&&(e[t]=OE[t]);ec.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),ec.push(e)},pluginEvent:function(e,t,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var r=e+"Global";ec.forEach(function(o){t[o.pluginName]&&(t[o.pluginName][r]&&t[o.pluginName][r](aa({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](aa({sortable:t},n)))})},initializePlugins:function(e,t,n,i){ec.forEach(function(s){var a=s.pluginName;if(!(!e.options[a]&&!s.initializeByDefault)){var u=new s(e,t,e.options);u.sortable=e,u.options=e.options,e[a]=u,Ra(n,u.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var o=this.modifyOption(e,r,e.options[r]);typeof o<"u"&&(e.options[r]=o)}},getEventProperties:function(e,t){var n={};return ec.forEach(function(i){typeof i.eventProperties=="function"&&Ra(n,i.eventProperties.call(t[i.pluginName],e))}),n},modifyOption:function(e,t,n){var i;return ec.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[t]=="function"&&(i=r.optionListeners[t].call(e[r.pluginName],n))}),i}};function h8e(e){var t=e.sortable,n=e.rootEl,i=e.name,r=e.targetEl,o=e.cloneEl,s=e.toEl,a=e.fromEl,u=e.oldIndex,f=e.newIndex,d=e.oldDraggableIndex,c=e.newDraggableIndex,h=e.originalEvent,p=e.putSortable,m=e.extraEventProperties;if(t=t||n&&n[Ir],!!t){var y,v=t.options,b="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!Ma&&!um?y=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(i,!0,!0)),y.to=s||n,y.from=a||n,y.item=r||n,y.clone=o,y.oldIndex=u,y.newIndex=f,y.oldDraggableIndex=d,y.newDraggableIndex=c,y.originalEvent=h,y.pullMode=p?p.lastPutMode:void 0;var g=aa(aa({},m),cm.getEventProperties(i,t));for(var k in g)y[k]=g[k];n&&n.dispatchEvent(y),v[b]&&v[b].call(t,y)}}var p8e=["evt"],yr=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.evt,r=r8e(n,p8e);cm.pluginEvent.bind(St)(e,t,aa({dragEl:ot,parentEl:qn,ghostEl:jt,rootEl:jn,nextEl:Yu,lastDownEl:Ib,cloneEl:zn,cloneHidden:pl,dragStarted:pm,putSortable:ji,activeSortable:St.active,originalEvent:i,oldIndex:tc,oldDraggableIndex:hm,newIndex:Rr,newDraggableIndex:gl,hideGhostForTarget:fG,unhideGhostForTarget:dG,cloneNowHidden:function(){pl=!0},cloneNowShown:function(){pl=!1},dispatchSortableEvent:function(o){nr({sortable:t,name:o,originalEvent:i})}},r))};function nr(e){h8e(aa({putSortable:ji,cloneEl:zn,targetEl:ot,rootEl:jn,oldIndex:tc,oldDraggableIndex:hm,newIndex:Rr,newDraggableIndex:gl},e))}var ot,qn,jt,jn,Yu,Ib,zn,pl,tc,Rr,hm,gl,Rb,ji,nc=!1,Nb=!1,Mb=[],Xu,Ao,FE,PE,rG,oG,pm,ic,gm,mm=!1,Lb=!1,zb,Yi,jE=[],IE=!1,Vb=[],Ub=typeof document<"u",Hb=GK,aG=um||Ma?"cssFloat":"float",g8e=Ub&&!JK&&!GK&&"draggable"in document.createElement("div"),sG=function(){if(Ub){if(Ma)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),lG=function(e,t){var n=Ct(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=$d(e,0,t),o=$d(e,1,t),s=r&&Ct(r),a=o&&Ct(o),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+di(r).width,f=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+di(o).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&s.float&&s.float!=="none"){var d=s.float==="left"?"left":"right";return o&&(a.clear==="both"||a.clear===d)?"vertical":"horizontal"}return r&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||u>=i&&n[aG]==="none"||o&&n[aG]==="none"&&u+f>i)?"vertical":"horizontal"},m8e=function(e,t,n){var i=n?e.left:e.top,r=n?e.right:e.bottom,o=n?e.width:e.height,s=n?t.left:t.top,a=n?t.right:t.bottom,u=n?t.width:t.height;return i===s||r===a||i+o/2===s+u/2},v8e=function(e,t){var n;return Mb.some(function(i){var r=i[Ir].options.emptyInsertThreshold;if(!(!r||AE(i))){var o=di(i),s=e>=o.left-r&&e<=o.right+r,a=t>=o.top-r&&t<=o.bottom+r;if(s&&a)return n=i}}),n},uG=function(e){function t(r,o){return function(s,a,u,f){var d=s.options.group.name&&a.options.group.name&&s.options.group.name===a.options.group.name;if(r==null&&(o||d))return!0;if(r==null||r===!1)return!1;if(o&&r==="clone")return r;if(typeof r=="function")return t(r(s,a,u,f),o)(s,a,u,f);var c=(o?s:a).options.group.name;return r===!0||typeof r=="string"&&r===c||r.join&&r.indexOf(c)>-1}}var n={},i=e.group;(!i||Pb(i)!="object")&&(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},fG=function(){!sG&&jt&&Ct(jt,"display","none")},dG=function(){!sG&&jt&&Ct(jt,"display","")};Ub&&!JK&&document.addEventListener("click",function(e){if(Nb)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Nb=!1,!1},!0);var Zu=function(e){if(ot){e=e.touches?e.touches[0]:e;var t=v8e(e.clientX,e.clientY);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Ir]._onDragOver(n)}}},y8e=function(e){ot&&ot.parentNode[Ir]._isOutsideThisEl(e.target)};function St(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Ra({},t),e[Ir]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return lG(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,s){o.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:St.supportPointer!==!1&&"PointerEvent"in window&&!fm,emptyInsertThreshold:5};cm.initializePlugins(this,e,n);for(var i in n)!(i in t)&&(t[i]=n[i]);uG(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:g8e,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?sn(e,"pointerdown",this._onTapStart):(sn(e,"mousedown",this._onTapStart),sn(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(sn(e,"dragover",this),sn(e,"dragenter",this)),Mb.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ra(this,f8e())}St.prototype={constructor:St,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ic=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,ot):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,r=i.preventOnFilter,o=e.type,s=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,a=(s||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||a,f=i.filter;if(E8e(n),!ot&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&fm&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=Do(a,i.draggable,n,!1),!(a&&a.animated)&&Ib!==a)){if(tc=oo(a),hm=oo(a,i.draggable),typeof f=="function"){if(f.call(this,e,a,this)){nr({sortable:t,rootEl:u,name:"filter",targetEl:a,toEl:n,fromEl:n}),yr("filter",t,{evt:e}),r&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=Do(u,d.trim(),n,!1),d)return nr({sortable:t,rootEl:d,name:"filter",targetEl:a,fromEl:n,toEl:n}),yr("filter",t,{evt:e}),!0}),f)){r&&e.cancelable&&e.preventDefault();return}i.handle&&!Do(u,i.handle,n,!1)||this._prepareDragStart(e,s,a)}}},_prepareDragStart:function(e,t,n){var i=this,r=i.el,o=i.options,s=r.ownerDocument,a;if(n&&!ot&&n.parentNode===r){var u=di(n);if(jn=r,ot=n,qn=ot.parentNode,Yu=ot.nextSibling,Ib=n,Rb=o.group,St.dragged=ot,Xu={target:ot,clientX:(t||e).clientX,clientY:(t||e).clientY},rG=Xu.clientX-u.left,oG=Xu.clientY-u.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ot.style["will-change"]="all",a=function(){if(yr("delayEnded",i,{evt:e}),St.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!KK&&i.nativeDraggable&&(ot.draggable=!0),i._triggerDragStart(e,t),nr({sortable:i,name:"choose",originalEvent:e}),jr(ot,o.chosenClass,!0)},o.ignore.split(",").forEach(function(f){ZK(ot,f.trim(),RE)}),sn(s,"dragover",Zu),sn(s,"mousemove",Zu),sn(s,"touchmove",Zu),sn(s,"mouseup",i._onDrop),sn(s,"touchend",i._onDrop),sn(s,"touchcancel",i._onDrop),KK&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ot.draggable=!0),yr("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(um||Ma))){if(St.eventCanceled){this._onDrop();return}sn(s,"mouseup",i._disableDelayedDrag),sn(s,"touchend",i._disableDelayedDrag),sn(s,"touchcancel",i._disableDelayedDrag),sn(s,"mousemove",i._delayedDragTouchMoveHandler),sn(s,"touchmove",i._delayedDragTouchMoveHandler),o.supportPointer&&sn(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(a,o.delay)}else a()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ot&&RE(ot),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;tn(e,"mouseup",this._disableDelayedDrag),tn(e,"touchend",this._disableDelayedDrag),tn(e,"touchcancel",this._disableDelayedDrag),tn(e,"mousemove",this._delayedDragTouchMoveHandler),tn(e,"touchmove",this._delayedDragTouchMoveHandler),tn(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?sn(document,"pointermove",this._onTouchMove):t?sn(document,"touchmove",this._onTouchMove):sn(document,"mousemove",this._onTouchMove):(sn(ot,"dragend",this),sn(jn,"dragstart",this._onDragStart));try{document.selection?Wb(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(nc=!1,jn&&ot){yr("dragStarted",this,{evt:t}),this.nativeDraggable&&sn(document,"dragover",y8e);var n=this.options;!e&&jr(ot,n.dragClass,!1),jr(ot,n.ghostClass,!0),St.active=this,e&&this._appendGhost(),nr({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ao){this._lastX=Ao.clientX,this._lastY=Ao.clientY,fG();for(var e=document.elementFromPoint(Ao.clientX,Ao.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ao.clientX,Ao.clientY),e!==t);)t=e;if(ot.parentNode[Ir]._isOutsideThisEl(e),t)do{if(t[Ir]){var n=void 0;if(n=t[Ir]._onDragOver({clientX:Ao.clientX,clientY:Ao.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);dG()}},_onTouchMove:function(e){if(Xu){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,r=e.touches?e.touches[0]:e,o=jt&&Qd(jt,!0),s=jt&&o&&o.a,a=jt&&o&&o.d,u=Hb&&Yi&&$K(Yi),f=(r.clientX-Xu.clientX+i.x)/(s||1)+(u?u[0]-jE[0]:0)/(s||1),d=(r.clientY-Xu.clientY+i.y)/(a||1)+(u?u[1]-jE[1]:0)/(a||1);if(!St.active&&!nc){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(jt){o?(o.e+=f-(FE||0),o.f+=d-(PE||0)):o={a:1,b:0,c:0,d:1,e:f,f:d};var c="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");Ct(jt,"webkitTransform",c),Ct(jt,"mozTransform",c),Ct(jt,"msTransform",c),Ct(jt,"transform",c),FE=f,PE=d,Ao=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!jt){var e=this.options.fallbackOnBody?document.body:jn,t=di(ot,!0,Hb,!0,e),n=this.options;if(Hb){for(Yi=e;Ct(Yi,"position")==="static"&&Ct(Yi,"transform")==="none"&&Yi!==document;)Yi=Yi.parentNode;Yi!==document.body&&Yi!==document.documentElement?(Yi===document&&(Yi=sa()),t.top+=Yi.scrollTop,t.left+=Yi.scrollLeft):Yi=sa(),jE=$K(Yi)}jt=ot.cloneNode(!0),jr(jt,n.ghostClass,!1),jr(jt,n.fallbackClass,!0),jr(jt,n.dragClass,!0),Ct(jt,"transition",""),Ct(jt,"transform",""),Ct(jt,"box-sizing","border-box"),Ct(jt,"margin",0),Ct(jt,"top",t.top),Ct(jt,"left",t.left),Ct(jt,"width",t.width),Ct(jt,"height",t.height),Ct(jt,"opacity","0.8"),Ct(jt,"position",Hb?"absolute":"fixed"),Ct(jt,"zIndex","100000"),Ct(jt,"pointerEvents","none"),St.ghost=jt,e.appendChild(jt),Ct(jt,"transform-origin",rG/parseInt(jt.style.width)*100+"% "+oG/parseInt(jt.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,i=e.dataTransfer,r=n.options;if(yr("dragStart",this,{evt:e}),St.eventCanceled){this._onDrop();return}yr("setupClone",this),St.eventCanceled||(zn=nG(ot),zn.removeAttribute("id"),zn.draggable=!1,zn.style["will-change"]="",this._hideClone(),jr(zn,this.options.chosenClass,!1),St.clone=zn),n.cloneId=Wb(function(){yr("clone",n),!St.eventCanceled&&(n.options.removeCloneOnHide||jn.insertBefore(zn,ot),n._hideClone(),nr({sortable:n,name:"clone"}))}),!t&&jr(ot,r.dragClass,!0),t?(Nb=!0,n._loopId=setInterval(n._emulateDragOver,50)):(tn(document,"mouseup",n._onDrop),tn(document,"touchend",n._onDrop),tn(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(n,i,ot)),sn(document,"drop",n),Ct(ot,"transform","translateZ(0)")),nc=!0,n._dragStartId=Wb(n._dragStarted.bind(n,t,e)),sn(document,"selectstart",n),pm=!0,fm&&Ct(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,n=e.target,i,r,o,s=this.options,a=s.group,u=St.active,f=Rb===a,d=s.sort,c=ji||u,h,p=this,m=!1;if(IE)return;function y(H,Q){yr(H,p,aa({evt:e,isOwner:f,axis:h?"vertical":"horizontal",revert:o,dragRect:i,targetRect:r,canSort:d,fromSortable:c,target:n,completed:b,onMove:function(ie,ae){return qb(jn,t,ot,i,ie,di(ie),e,ae)},changed:g},Q))}function v(){y("dragOverAnimationCapture"),p.captureAnimationState(),p!==c&&c.captureAnimationState()}function b(H){return y("dragOverCompleted",{insertion:H}),H&&(f?u._hideClone():u._showClone(p),p!==c&&(jr(ot,ji?ji.options.ghostClass:u.options.ghostClass,!1),jr(ot,s.ghostClass,!0)),ji!==p&&p!==St.active?ji=p:p===St.active&&ji&&(ji=null),c===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){y("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==c&&(c.animateAll(),c._ignoreWhileAnimating=null)),(n===ot&&!ot.animated||n===t&&!n.animated)&&(ic=null),!s.dragoverBubble&&!e.rootEl&&n!==document&&(ot.parentNode[Ir]._isOutsideThisEl(e.target),!H&&Zu(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function g(){Rr=oo(ot),gl=oo(ot,s.draggable),nr({sortable:p,name:"change",toEl:t,newIndex:Rr,newDraggableIndex:gl,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=Do(n,s.draggable,t,!0),y("dragOver"),St.eventCanceled)return m;if(ot.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return b(!1);if(Nb=!1,u&&!s.disabled&&(f?d||(o=qn!==jn):ji===this||(this.lastPutMode=Rb.checkPull(this,u,ot,e))&&a.checkPut(this,u,ot,e))){if(h=this._getDirection(e,n)==="vertical",i=di(ot),y("dragOverValid"),St.eventCanceled)return m;if(o)return qn=jn,v(),this._hideClone(),y("revert"),St.eventCanceled||(Yu?jn.insertBefore(ot,Yu):jn.appendChild(ot)),b(!0);var k=AE(t,s.draggable);if(!k||_8e(e,h,this)&&!k.animated){if(k===ot)return b(!1);if(k&&t===e.target&&(n=k),n&&(r=di(n)),qb(jn,t,ot,i,n,r,e,!!n)!==!1)return v(),k&&k.nextSibling?t.insertBefore(ot,k.nextSibling):t.appendChild(ot),qn=t,g(),b(!0)}else if(k&&w8e(e,h,this)){var w=$d(t,0,s,!0);if(w===ot)return b(!1);if(n=w,r=di(n),qb(jn,t,ot,i,n,r,e,!1)!==!1)return v(),t.insertBefore(ot,w),qn=t,g(),b(!0)}else if(n.parentNode===t){r=di(n);var T=0,S,_=ot.parentNode!==t,A=!m8e(ot.animated&&ot.toRect||i,n.animated&&n.toRect||r,h),D=h?"top":"left",x=QK(n,"top","top")||QK(ot,"top","top"),B=x?x.scrollTop:void 0;ic!==n&&(S=r[D],mm=!1,Lb=!A&&s.invertSwap||_),T=C8e(e,n,r,h,A?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,Lb,ic===n);var E;if(T!==0){var F=oo(ot);do F-=T,E=qn.children[F];while(E&&(Ct(E,"display")==="none"||E===jt))}if(T===0||E===n)return b(!1);ic=n,gm=T;var C=n.nextElementSibling,I=!1;I=T===1;var N=qb(jn,t,ot,i,n,r,e,I);if(N!==!1)return(N===1||N===-1)&&(I=N===1),IE=!0,setTimeout(k8e,30),v(),I&&!C?t.appendChild(ot):n.parentNode.insertBefore(ot,I?C:n),x&&tG(x,0,B-x.scrollTop),qn=ot.parentNode,S!==void 0&&!Lb&&(zb=Math.abs(S-di(n)[D])),g(),b(!0)}if(t.contains(ot))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){tn(document,"mousemove",this._onTouchMove),tn(document,"touchmove",this._onTouchMove),tn(document,"pointermove",this._onTouchMove),tn(document,"dragover",Zu),tn(document,"mousemove",Zu),tn(document,"touchmove",Zu)},_offUpEvents:function(){var e=this.el.ownerDocument;tn(e,"mouseup",this._onDrop),tn(e,"touchend",this._onDrop),tn(e,"pointerup",this._onDrop),tn(e,"touchcancel",this._onDrop),tn(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;if(Rr=oo(ot),gl=oo(ot,n.draggable),yr("drop",this,{evt:e}),qn=ot&&ot.parentNode,Rr=oo(ot),gl=oo(ot,n.draggable),St.eventCanceled){this._nulling();return}nc=!1,Lb=!1,mm=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),NE(this.cloneId),NE(this._dragStartId),this.nativeDraggable&&(tn(document,"drop",this),tn(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),fm&&Ct(document.body,"user-select",""),Ct(ot,"transform",""),e&&(pm&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),jt&&jt.parentNode&&jt.parentNode.removeChild(jt),(jn===qn||ji&&ji.lastPutMode!=="clone")&&zn&&zn.parentNode&&zn.parentNode.removeChild(zn),ot&&(this.nativeDraggable&&tn(ot,"dragend",this),RE(ot),ot.style["will-change"]="",pm&&!nc&&jr(ot,ji?ji.options.ghostClass:this.options.ghostClass,!1),jr(ot,this.options.chosenClass,!1),nr({sortable:this,name:"unchoose",toEl:qn,newIndex:null,newDraggableIndex:null,originalEvent:e}),jn!==qn?(Rr>=0&&(nr({rootEl:qn,name:"add",toEl:qn,fromEl:jn,originalEvent:e}),nr({sortable:this,name:"remove",toEl:qn,originalEvent:e}),nr({rootEl:qn,name:"sort",toEl:qn,fromEl:jn,originalEvent:e}),nr({sortable:this,name:"sort",toEl:qn,originalEvent:e})),ji&&ji.save()):Rr!==tc&&Rr>=0&&(nr({sortable:this,name:"update",toEl:qn,originalEvent:e}),nr({sortable:this,name:"sort",toEl:qn,originalEvent:e})),St.active&&((Rr==null||Rr===-1)&&(Rr=tc,gl=hm),nr({sortable:this,name:"end",toEl:qn,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){yr("nulling",this),jn=ot=qn=jt=Yu=zn=Ib=pl=Xu=Ao=pm=Rr=gl=tc=hm=ic=gm=ji=Rb=St.dragged=St.ghost=St.clone=St.active=null,Vb.forEach(function(e){e.checked=!0}),Vb.length=FE=PE=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ot&&(this._onDragOver(e),b8e(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,i=0,r=n.length,o=this.options;i<r;i++)t=n[i],Do(t,o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||x8e(t));return e},sort:function(e,t){var n={},i=this.el;this.toArray().forEach(function(r,o){var s=i.children[o];Do(s,this.options.draggable,i,!1)&&(n[r]=s)},this),t&&this.captureAnimationState(),e.forEach(function(r){n[r]&&(i.removeChild(n[r]),i.appendChild(n[r]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Do(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var i=cm.modifyOption(this,e,t);typeof i<"u"?n[e]=i:n[e]=t,e==="group"&&uG(n)},destroy:function(){yr("destroy",this);var e=this.el;e[Ir]=null,tn(e,"mousedown",this._onTapStart),tn(e,"touchstart",this._onTapStart),tn(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(tn(e,"dragover",this),tn(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Mb.splice(Mb.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!pl){if(yr("hideClone",this),St.eventCanceled)return;Ct(zn,"display","none"),this.options.removeCloneOnHide&&zn.parentNode&&zn.parentNode.removeChild(zn),pl=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(pl){if(yr("showClone",this),St.eventCanceled)return;ot.parentNode==jn&&!this.options.group.revertClone?jn.insertBefore(zn,ot):Yu?jn.insertBefore(zn,Yu):jn.appendChild(zn),this.options.group.revertClone&&this.animate(ot,zn),Ct(zn,"display",""),pl=!1}}};function b8e(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function qb(e,t,n,i,r,o,s,a){var u,f=e[Ir],d=f.options.onMove,c;return window.CustomEvent&&!Ma&&!um?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=t,u.from=e,u.dragged=n,u.draggedRect=i,u.related=r||t,u.relatedRect=o||di(t),u.willInsertAfter=a,u.originalEvent=s,e.dispatchEvent(u),d&&(c=d.call(f,u,s)),c}function RE(e){e.draggable=!1}function k8e(){IE=!1}function w8e(e,t,n){var i=di($d(n.el,0,n.options,!0)),r=iG(n.el,n.options,jt),o=10;return t?e.clientX<r.left-o||e.clientY<i.top&&e.clientX<i.right:e.clientY<r.top-o||e.clientY<i.bottom&&e.clientX<i.left}function _8e(e,t,n){var i=di(AE(n.el,n.options.draggable)),r=iG(n.el,n.options,jt),o=10;return t?e.clientX>r.right+o||e.clientY>i.bottom&&e.clientX>i.left:e.clientY>r.bottom+o||e.clientX>i.right&&e.clientY>i.top}function C8e(e,t,n,i,r,o,s,a){var u=i?e.clientY:e.clientX,f=i?n.height:n.width,d=i?n.top:n.left,c=i?n.bottom:n.right,h=!1;if(!s){if(a&&zb<f*r){if(!mm&&(gm===1?u>d+f*o/2:u<c-f*o/2)&&(mm=!0),mm)h=!0;else if(gm===1?u<d+zb:u>c-zb)return-gm}else if(u>d+f*(1-r)/2&&u<c-f*(1-r)/2)return S8e(t)}return h=h||s,h&&(u<d+f*o/2||u>c-f*o/2)?u>d+f/2?1:-1:0}function S8e(e){return oo(ot)<oo(e)?1:-1}function x8e(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function E8e(e){Vb.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&Vb.push(i)}}function Wb(e){return setTimeout(e,0)}function NE(e){return clearTimeout(e)}Ub&&sn(document,"touchmove",function(e){(St.active||nc)&&e.cancelable&&e.preventDefault()}),St.utils={on:sn,off:tn,css:Ct,find:ZK,is:function(e,t){return!!Do(e,t,e,!1)},extend:l8e,throttle:eG,closest:Do,toggleClass:jr,clone:nG,index:oo,nextTick:Wb,cancelNextTick:NE,detectDirection:lG,getChild:$d},St.get=function(e){return e[Ir]},St.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(St.utils=aa(aa({},St.utils),i.utils)),cm.mount(i)})},St.create=function(e,t){return new St(e,t)},St.version=o8e;var ci=[],vm,ME,LE=!1,zE,VE,Kb,ym;function B8e(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(t){var n=t.originalEvent;this.sortable.nativeDraggable?sn(document,"dragover",this._handleAutoScroll):this.options.supportPointer?sn(document,"pointermove",this._handleFallbackAutoScroll):n.touches?sn(document,"touchmove",this._handleFallbackAutoScroll):sn(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var n=t.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?tn(document,"dragover",this._handleAutoScroll):(tn(document,"pointermove",this._handleFallbackAutoScroll),tn(document,"touchmove",this._handleFallbackAutoScroll),tn(document,"mousemove",this._handleFallbackAutoScroll)),cG(),Gb(),u8e()},nulling:function(){Kb=ME=vm=LE=ym=zE=VE=null,ci.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,n){var i=this,r=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,s=document.elementFromPoint(r,o);if(Kb=t,n||this.options.forceAutoScrollFallback||um||Ma||fm){UE(t,this.options,s,n);var a=hl(s,!0);LE&&(!ym||r!==zE||o!==VE)&&(ym&&cG(),ym=setInterval(function(){var u=hl(document.elementFromPoint(r,o),!0);u!==a&&(a=u,Gb()),UE(t,i.options,u,n)},10),zE=r,VE=o)}else{if(!this.options.bubbleScroll||hl(s,!0)===sa()){Gb();return}UE(t,this.options,hl(s,!1),!1)}}},Ra(e,{pluginName:"scroll",initializeByDefault:!0})}function Gb(){ci.forEach(function(e){clearInterval(e.pid)}),ci=[]}function cG(){clearInterval(ym)}var UE=eG(function(e,t,n,i){if(t.scroll){var r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,u=sa(),f=!1,d;ME!==n&&(ME=n,Gb(),vm=t.scroll,d=t.scrollFn,vm===!0&&(vm=hl(n,!0)));var c=0,h=vm;do{var p=h,m=di(p),y=m.top,v=m.bottom,b=m.left,g=m.right,k=m.width,w=m.height,T=void 0,S=void 0,_=p.scrollWidth,A=p.scrollHeight,D=Ct(p),x=p.scrollLeft,B=p.scrollTop;p===u?(T=k<_&&(D.overflowX==="auto"||D.overflowX==="scroll"||D.overflowX==="visible"),S=w<A&&(D.overflowY==="auto"||D.overflowY==="scroll"||D.overflowY==="visible")):(T=k<_&&(D.overflowX==="auto"||D.overflowX==="scroll"),S=w<A&&(D.overflowY==="auto"||D.overflowY==="scroll"));var E=T&&(Math.abs(g-r)<=s&&x+k<_)-(Math.abs(b-r)<=s&&!!x),F=S&&(Math.abs(v-o)<=s&&B+w<A)-(Math.abs(y-o)<=s&&!!B);if(!ci[c])for(var C=0;C<=c;C++)ci[C]||(ci[C]={});(ci[c].vx!=E||ci[c].vy!=F||ci[c].el!==p)&&(ci[c].el=p,ci[c].vx=E,ci[c].vy=F,clearInterval(ci[c].pid),(E!=0||F!=0)&&(f=!0,ci[c].pid=setInterval((function(){i&&this.layer===0&&St.active._onTouchMove(Kb);var I=ci[this.layer].vy?ci[this.layer].vy*a:0,N=ci[this.layer].vx?ci[this.layer].vx*a:0;typeof d=="function"&&d.call(St.dragged.parentNode[Ir],N,I,e,Kb,ci[this.layer].el)!=="continue"||tG(ci[this.layer].el,N,I)}).bind({layer:c}),24))),c++}while(t.bubbleScroll&&h!==u&&(h=hl(h,!1)));LE=f}},30),hG=function(e){var t=e.originalEvent,n=e.putSortable,i=e.dragEl,r=e.activeSortable,o=e.dispatchSortableEvent,s=e.hideGhostForTarget,a=e.unhideGhostForTarget;if(t){var u=n||r;s();var f=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(f.clientX,f.clientY);a(),u&&!u.el.contains(d)&&(o("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function HE(){}HE.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=$d(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:hG},Ra(HE,{pluginName:"revertOnSpill"});function qE(){}qE.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,i=n||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:hG},Ra(qE,{pluginName:"removeOnSpill"}),St.mount(new B8e),St.mount(qE,HE);function D8e(e){return e==null?e:JSON.parse(JSON.stringify(e))}function A8e(e){l.getCurrentInstance()&&l.onUnmounted(e)}function T8e(e){l.getCurrentInstance()?l.onMounted(e):l.nextTick(e)}let pG=null,gG=null;function mG(e=null,t=null){pG=e,gG=t}function O8e(){return{data:pG,clonedData:gG}}const vG=Symbol("cloneElement");function F8e(...e){var t,n;const i=(t=l.getCurrentInstance())==null?void 0:t.proxy;let r=null;const o=e[0];let[,s,a]=e;Array.isArray(l.unref(s))||(a=s,s=null);let u=null;const{immediate:f=!0,clone:d=D8e,customUpdate:c}=(n=l.unref(a))!=null?n:{};function h(A){var D;const{from:x,oldIndex:B,item:E}=A;r=Array.from(x.childNodes);const F=l.unref((D=l.unref(s))==null?void 0:D[B]),C=d(F);mG(F,C),E[vG]=C}function p(A){const D=A.item[vG];if(!J5e(D)){if(DE(A.item),l.isRef(s)){const x=[...l.unref(s)];s.value=UK(x,A.newDraggableIndex,D);return}UK(l.unref(s),A.newDraggableIndex,D)}}function m(A){const{from:D,item:x,oldIndex:B,oldDraggableIndex:E,pullMode:F,clone:C}=A;if(HK(D,x,B),F==="clone"){DE(C);return}if(l.isRef(s)){const I=[...l.unref(s)];s.value=VK(I,E);return}VK(l.unref(s),E)}function y(A){if(c){c(A);return}const{from:D,item:x,oldIndex:B,oldDraggableIndex:E,newDraggableIndex:F}=A;if(DE(x),HK(D,x,B),l.isRef(s)){const C=[...l.unref(s)];s.value=zK(C,E,F);return}zK(l.unref(s),E,F)}function v(A){const{newIndex:D,oldIndex:x,from:B,to:E}=A;let F=null;const C=D===x&&B===E;try{if(C){let I=null;r==null||r.some((N,H)=>{if(I&&(r==null?void 0:r.length)!==E.childNodes.length)return B.insertBefore(I,N.nextSibling),!0;const Q=E.childNodes[H];I=E==null?void 0:E.replaceChild(N,Q)})}}catch(I){F=I}finally{r=null}l.nextTick(()=>{if(mG(),F)throw F})}const b={onUpdate:y,onStart:h,onAdd:p,onRemove:m,onEnd:v};function g(A){const D=l.unref(o);return A||(A=Y5e(D)?X5e(D,i==null?void 0:i.$el):D),A&&!$5e(A)&&(A=A.$el),A||void 0,A}function k(){var A;const D=(A=l.unref(a))!=null?A:{},x=LK(D,["immediate","clone"]);return qK(x,(B,E)=>{e8e(B)&&(x[B]=(F,...C)=>{const I=O8e();return t8e(F,I),E(F,...C)})}),Q5e(s===null?{}:b,x)}const w=A=>{A=g(A),u&&T.destroy(),u=new St(A,k())};l.watch(()=>a,()=>{u&&qK(k(),(A,D)=>{u==null||u.option(A,D)})},{deep:!0});const T={option:(A,D)=>u==null?void 0:u.option(A,D),destroy:()=>{u==null||u.destroy(),u=null},save:()=>u==null?void 0:u.save(),toArray:()=>u==null?void 0:u.toArray(),closest:(...A)=>u==null?void 0:u.closest(...A)},S=()=>T==null?void 0:T.option("disabled",!0),_=()=>T==null?void 0:T.option("disabled",!1);return T8e(()=>{f&&w()}),A8e(T.destroy),Zd({start:w,pause:S,resume:_},T)}const WE=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],P8e=["clone","animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...WE.map(e=>`on${e.replace(/^\S/,t=>t.toUpperCase())}`)],yG=l.defineComponent({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:P8e,emits:["update:modelValue",...WE],setup(e,{slots:t,emit:n,expose:i,attrs:r}){const o=WE.reduce((d,c)=>{const h=`on${c.replace(/^\S/,p=>p.toUpperCase())}`;return d[h]=(...p)=>n(c,...p),d},{}),s=l.computed(()=>{const d=l.toRefs(e),c=LK(d,["modelValue"]),h=Object.entries(c).reduce((p,[m,y])=>{const v=l.unref(y);return v!==void 0&&(p[m]=v),p},{});return Zd(Zd({},o),G5e(Zd(Zd({},r),h)))}),a=l.computed({get:()=>e.modelValue,set:d=>n("update:modelValue",d)}),u=l.ref(),f=l.reactive(F8e(e.target||u,a,s));return i(f),()=>{var d;return l.h(e.tag||"div",{ref:u},(d=t==null?void 0:t.default)==null?void 0:d.call(t,f))}}}),j8e={class:"c0 omit ex fs13 plr4"},I8e={class:"b g6"},R8e=["title"],bG={__name:"tableContentControl",props:{modelValue:{type:Array,default:()=>[]},dragTitleKey:{type:String,default:"title"}},emits:["sort","change","update:modelValue"],setup(e,{emit:t}){const n=e,i=t,r=l.computed({get:()=>n.modelValue,set:u=>{i("update:modelValue",u)}}),o=l.computed(()=>{let u=1/0;return n.modelValue.forEach(f=>{u=Math.min(u,f.rank)}),u||1});function s(u){return rr(n.dragTitleKey,u)}function a(u){i("sort",u,o.value)}return(u,f)=>{const d=l.resolveComponent("jwt-icon"),c=l.resolveComponent("el-button"),h=l.resolveComponent("el-popover");return l.openBlock(),l.createBlock(h,{persistent:!1,placement:"bottom","popper-style":"max-height:60vh;overflow-y:auto;",trigger:"hover",width:240},{reference:l.withCtx(()=>[l.createVNode(c,{size:"small",text:""},{default:l.withCtx(()=>[l.createVNode(d,{icon:"draggable",size:"18"})]),_:1})]),default:l.withCtx(()=>[l.createVNode(l.unref(yG),{modelValue:r.value,"onUpdate:modelValue":f[0]||(f[0]=p=>r.value=p),animation:"150","ghost-class":"ghost",onSort:a},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,(p,m)=>(l.openBlock(),l.createElementBlock("div",{key:p.id,class:"cpm ptb4 w fxmc"},[l.createVNode(d,{class:"g9",icon:"drag-drop-line"}),l.createElementVNode("div",j8e,[l.createElementVNode("span",I8e,l.toDisplayString(o.value+m),1),l.createElementVNode("span",{class:"ml4",title:s(p)},l.toDisplayString(s(p)),9,R8e)])]))),128))]),_:1},8,["modelValue"])]),_:1})}}},N8e=Object.freeze(Object.defineProperty({__proto__:null,default:bG},Symbol.toStringTag,{value:"Module"})),KE={__name:"tableFieldControl",props:{modelValue:{type:Array,default:()=>[]}},emits:["sort","change","update:modelValue"],setup(e,{emit:t}){const n=e,i=t,r=l.computed({get:()=>n.modelValue,set:a=>{i("update:modelValue",a)}});function o(a){i("sort",a)}function s(a,u){i("change",a,u)}return(a,u)=>{const f=l.resolveComponent("jwt-icon"),d=l.resolveComponent("el-button"),c=l.resolveComponent("el-checkbox"),h=l.resolveComponent("el-popover");return l.openBlock(),l.createBlock(h,{persistent:!1,placement:"bottom","popper-style":"max-height:70vh;overflow-y:auto;",trigger:"hover",width:210},{reference:l.withCtx(()=>[l.createVNode(d,{size:"small",text:""},{default:l.withCtx(()=>[l.createVNode(f,{icon:"settings-line",size:"18"})]),_:1})]),default:l.withCtx(()=>[l.createVNode(l.unref(yG),{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=p=>r.value=p),animation:"150","ghost-class":"ghost",onSort:o},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,p=>l.withDirectives((l.openBlock(),l.createElementBlock("div",{key:p.id},[l.createVNode(f,{icon:"drag-drop-line"}),l.createVNode(c,{checked:p.checked,class:"ml5",onChange:m=>s(p,a.index)},{default:l.withCtx(()=>[l.createElementVNode("span",{class:l.normalizeClass(p.label.length>6?"fs12":"")},l.toDisplayString(p.label),3)]),_:2},1032,["checked","onChange"])],512)),[[l.vShow,!p.isOperate]])),128))]),_:1},8,["modelValue"])]),_:1})}}},M8e=Object.freeze(Object.defineProperty({__proto__:null,default:KE},Symbol.toStringTag,{value:"Module"})),kG={__name:"tableListContent",props:{tableAttr:{require:!0,type:Object,default:()=>{}},tableEvents:{type:Object,default:()=>{}},tableData:{type:Array,default:()=>[]},appTableColumn:{type:Array,default:()=>[]},ajaxLoading:{type:Boolean,default:!1},loadingText:{type:String,default:"正在加载中..."},tableHeight:{type:[String,Number],default:null},tableSize:{type:String,default:"small"},currentPagePath:{type:String,default:""},userMenusAuth:{type:Object,default:()=>{}},tableButtonNum:{type:Number,default:3},pagination:{type:Object,default:()=>{}},defaultSort:{type:Object,default:()=>{}}},emits:["table-current-change","header-dragend","selection-change","sort-change","change-table-column","table-action","edit-row","click-cell","dbclick-cell","show-file"],setup(e,{expose:t,emit:n}){const i=e,r=n,o=l.ref(null),s=l.computed(()=>{var b,g;return((((b=i==null?void 0:i.pagination)==null?void 0:b.currentPage)||1)-1)*(((g=i==null?void 0:i.pagination)==null?void 0:g.pageSize)||15)});function a(b){r("table-current-change",b)}function u(b,g,k,w){r("header-dragend",b,g,k,w)}function f(b){r("selection-change",b)}function d(b={}){r("sort-change",b)}function c(b){r("change-table-column","fixed",b)}function h(b,g,k){r("table-action",b,g,k)}function p(b={},g={}){r("edit-row",b,g)}function m(b,g){r("click-cell",b,g)}function y(b){r("show-file",b)}function v(b,g,k,w){var T;r("dbclick-cell",{row:b,column:g,cell:k,event:w,text:((T=w==null?void 0:w.target)==null?void 0:T.textContent)||""})}return t({tableRef:o}),(b,g)=>{const k=l.resolveComponent("jwt-table-button"),w=l.resolveComponent("jwt-column-item"),T=l.resolveComponent("el-table-column"),S=l.resolveComponent("el-table"),_=l.resolveDirective("loading");return l.withDirectives((l.openBlock(),l.createBlock(S,l.mergeProps(e.tableAttr,{ref_key:"tableRef",ref:o,"default-sort":e.defaultSort,class:"mt10 jwt-table-wrapper",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":e.loadingText,height:e.tableHeight,size:e.tableSize},l.toHandlers(e.tableEvents),{onCellDblclick:v,onCurrentChange:a,onHeaderDragend:u,onSelectionChange:f,onSortChange:d}),{default:l.withCtx(()=>[l.renderSlot(b.$slots,"table-content-before"),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.appTableColumn,(A,D)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:D},[A.checked?(l.openBlock(),l.createBlock(T,l.mergeProps({key:0,align:A.align||"center",fixed:A.fixed,ref_for:!0},A.attrs,{"min-width":A.minWidth?A.minWidth:null,prop:A.prop,sortable:A.sortable,type:A.type,width:A.width?A.width:null}),l.createSlots({header:l.withCtx(()=>[l.createVNode(Ob,{item:A,onFixed:x=>c(A)},null,8,["item","onFixed"])]),_:2},[A.type?A.type==="expand"?{name:"default",fn:l.withCtx(({row:x})=>[l.renderSlot(b.$slots,A.prop,{index:D,scope:x})]),key:"1"}:void 0:{name:"default",fn:l.withCtx(({row:x,$index:B})=>[A.action?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.renderSlot(b.$slots,"action-before",{scope:x}),l.createVNode(k,{config:A,"current-path":e.currentPagePath,"menus-obj":e.userMenusAuth,row:x,"show-button-num":e.tableButtonNum,onTableAction:E=>h(E,x,A)},null,8,["config","current-path","menus-obj","row","show-button-num","onTableAction"]),l.renderSlot(b.$slots,"action-after",{scope:x})],64)):A.isColumn?l.renderSlot(b.$slots,A.prop,{key:1,index:D,scope:x}):(l.openBlock(),l.createElementBlock("div",{key:2,class:l.normalizeClass([(A==null?void 0:A.columnCls)||"fxmc","w mw"])},[l.renderSlot(b.$slots,A.slotPreName,{scope:x}),l.renderSlot(b.$slots,A.prop,{index:D,rowindex:B,pagestart:s.value,scope:x},()=>[l.createVNode(w,{index:B,item:A,row:x,pagestart:s.value,onChange:p,onClickCell:m,onShowFile:y},null,8,["index","item","row","pagestart"])]),l.renderSlot(b.$slots,A.slotSufName,{scope:x})],2))]),key:"0"}]),1040,["align","fixed","min-width","prop","sortable","type","width"])):l.createCommentVNode("",!0)],64))),128)),l.renderSlot(b.$slots,"table-content-after",{list:e.tableData})]),_:3},16,["default-sort","data","element-loading-text","height","size"])),[[_,e.ajaxLoading]])}}},L8e=Object.freeze(Object.defineProperty({__proto__:null,default:kG},Symbol.toStringTag,{value:"Module"})),z8e={class:"table-list-actions"},V8e={class:"fx fxwp"},U8e=l.defineComponent({name:"JwtTableButton"}),wG=l.defineComponent({...U8e,props:{currentPath:{type:String,default:"/"},menusObj:{type:Object,default:()=>{}},config:{type:Object,default:()=>{}},row:{type:Object,default:()=>{}},operationName:{type:String,default:"operations"},showButtonNum:{type:Number,default:3},showIcon:{type:Boolean,default:!1},showText:{type:Boolean,default:!0}},emits:["table-action"],setup(e,{emit:t}){const n=e,i=t,{visibleActions:r,tableButtonActions:o,hasOverflowActions:s}=PK(n),a=(u,f)=>{i("table-action",{action:f,e:u})};return(u,f)=>{var h;const d=l.resolveComponent("jwt-icon"),c=l.resolveComponent("el-popover");return l.openBlock(),l.createElementBlock("div",z8e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(r),(p,m)=>(l.openBlock(),l.createBlock(lm,{key:m,link:"",size:"small",action:p,"show-icon":e.showIcon,"show-text":e.showText,onActionClick:y=>a(y,p)},null,8,["action","show-icon","show-text","onActionClick"]))),128)),l.unref(s)?(l.openBlock(),l.createBlock(c,{key:0,placement:"bottom",trigger:"hover",persistent:!1,width:150},{reference:l.withCtx(()=>[l.createVNode(d,{class:"ml5 cp",icon:"more-fill"})]),default:l.withCtx(()=>[l.createElementVNode("div",V8e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o),(p,m)=>(l.openBlock(),l.createBlock(lm,{key:m,action:p,link:"","show-icon":e.showIcon,"show-text":e.showText,size:"small",onActionClick:y=>a(y,p)},null,8,["action","show-icon","show-text","onActionClick"]))),128))])]),_:1})):l.createCommentVNode("",!0),(h=l.unref(r))!=null&&h.length?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(" ")],64))])}}}),H8e=Object.freeze(Object.defineProperty({__proto__:null,default:wG},Symbol.toStringTag,{value:"Module"})),q8e=["element-loading-text"],W8e={class:"fxmc c0",style:{padding:"10px 0","justify-content":"center",height:"100%","background-color":"var(--el-table-row-hover-bg-color)"}},_G=Qt({__name:"tableListContentVirtualized",props:{tableAttr:{require:!0,type:Object,default:()=>{}},tableEvents:{type:Object,default:()=>{}},tableData:{type:Array,default:()=>[]},appTableColumn:{type:Array,default:()=>[]},ajaxLoading:{type:Boolean,default:!1},loadingText:{type:String,default:"正在加载中..."},tableHeight:{type:[String,Number],default:"72vh"},tableSize:{type:String,default:"small"},currentPagePath:{type:String,default:""},userMenusAuth:{type:Object,default:()=>{}},tableButtonNum:{type:Number,default:3},estimatedRowHeight:{type:Number,default:50},pagination:{type:Object,default:()=>{}},defaultSort:{type:Object,default:()=>{}}},emits:["table-current-change","header-dragend","selection-change","sort-change","change-table-column","table-action","edit-row","click-cell","dbclick-cell","selection-header-change","selection-column-change","show-file"],setup(e,{emit:t}){const n=e,i=l.computed(()=>{var h,p;return((h=n.tableAttr)==null?void 0:h["show-summary"])&&((p=n.tableAttr)==null?void 0:p.summaryMethod)}),r=l.computed(()=>{var h,p;return((((h=n==null?void 0:n.pagination)==null?void 0:h.currentPage)||1)-1)*(((p=n==null?void 0:n.pagination)==null?void 0:p.pageSize)||15)}),o=t,s=l.useSlots(),a=l.computed(()=>n.appTableColumn.map(h=>({...h,align:h.align||"center",title:h.label,key:h.prop,property:h.prop,width:h.width||h.minWidth||150,dataKey:h.prop,headerCellRenderer:()=>l.h(Ob,{item:h,tableData:n.tableData,onFixed:()=>o("change-table-column","fixed",h),onSelect:p=>o("selection-header-change",p)}),cellRenderer:({rowData:p,rowIndex:m,columnIndex:y})=>{const v={index:y,rowindex:m,scope:p,row:p,item:h,pagestart:r.value};return h.action?l.h("div",{class:[(h==null?void 0:h.columnCls)||"fxmc","w mw ptb8"],onDblclick:b=>c(b,p,h)},[s["action-before"]?s["action-before"]({scope:p}):null,l.h(wG,{config:h,"current-path":n.currentPagePath,"menus-obj":n.userMenusAuth,row:p,"show-button-num":n.tableButtonNum,onTableAction:b=>o("table-action",b,p,h)}),s["action-after"]?s["action-after"]({scope:p}):null]):(h==null?void 0:h.type)==="selection"?l.h(lt.ElCheckbox,{modelValue:p.selectionChecked,onChange:b=>{p.selectionChecked=b,o("selection-column-change",b,p)}}):l.h("div",{class:[(h==null?void 0:h.columnCls)||"fxmc","w mw ptb8"],onDblclick:b=>c(b,p,h)},[h.slotPreName&&s[h.slotPreName]?s[h.slotPreName](v):null,s[h.prop]?s[h.prop](v):l.h(R7,{item:h,row:p,index:m,pagestart:r.value,onChange:(b,g)=>o("edit-row",b,g),onClickCell:(b,g)=>o("click-cell",b,g),onShowFile:b=>o("show-file",b)}),h.slotSufName&&s[h.slotSufName]?s[h.slotSufName](v):null])}})).filter(h=>!h.hide)),u=l.computed(()=>{var h;if(i.value){const p=(h=n.tableAttr)==null?void 0:h.summaryMethod({columns:a.value,data:n.tableData});let m=[];return p.forEach((y,v)=>{y&&y!=="-"&&v&&m.push(`${a.value[v].label}: ${y}`)}),m.length?`总计:${m.join("、")}`:""}return""}),f=l.ref({order:"desc"});function d(h){o("sort-change",{prop:h.key,order:h.order==="asc"?"ascending":"descending",column:h.column}),f.value=h}function c(h,p,m){var y;o("dbclick-cell",{row:p,column:m,event:h,text:((y=h==null?void 0:h.currentTarget)==null?void 0:y.textContent)||""})}return(h,p)=>{const m=l.resolveComponent("el-table-v2"),y=l.resolveComponent("el-auto-resizer"),v=l.resolveDirective("loading");return l.withDirectives((l.openBlock(),l.createElementBlock("div",{"element-loading-spinner":"el-icon-loading","element-loading-text":e.loadingText,style:l.normalizeStyle({height:e.tableHeight})},[l.createVNode(y,null,{default:l.withCtx(({height:b,width:g})=>[l.createVNode(m,l.mergeProps({columns:a.value,data:e.tableData,"estimated-row-height":e.estimatedRowHeight,fixed:"","footer-height":40,height:b,"sort-by":e.defaultSort,width:g},e.tableAttr,l.toHandlers(e.tableEvents),{onColumnSort:d}),l.createSlots({_:2},[i.value&&u.value?{name:"footer",fn:l.withCtx(()=>[l.createElementVNode("div",W8e,l.toDisplayString(u.value),1)]),key:"0"}:void 0]),1040,["columns","data","estimated-row-height","height","sort-by","width"])]),_:1})],12,q8e)),[[v,e.ajaxLoading]])}}},[["__scopeId","data-v-7ecf0778"]]),K8e=Object.freeze(Object.defineProperty({__proto__:null,default:_G},Symbol.toStringTag,{value:"Module"})),GE={__name:"tableSizeSetting",emits:["tableSize"],setup(e,{emit:t}){const n=t,i=ir.get("tableSize")||"default",r=l.ref(i),o=[{title:Pe("大"),size:"large",imgSize:70},{title:Pe("中"),size:"default",imgSize:60},{title:Pe("小"),size:"small",imgSize:40}];function s(a){n("tableSize",a)}return(a,u)=>{const f=l.resolveComponent("jwt-icon"),d=l.resolveComponent("el-button"),c=l.resolveComponent("el-radio"),h=l.resolveComponent("el-radio-group"),p=l.resolveComponent("el-popover");return l.openBlock(),l.createBlock(p,{persistent:!1,placement:"bottom",trigger:"hover",width:200},{reference:l.withCtx(()=>[l.createVNode(d,{size:"small",text:""},{default:l.withCtx(()=>[l.createVNode(f,{icon:"line-height",size:"18"})]),_:1})]),default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(h,{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=m=>r.value=m),onChange:s},{default:l.withCtx(()=>[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(o,(m,y)=>l.createVNode(c,{key:y,label:m.size},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(m.title),1)]),_:2},1032,["label"])),64))]),_:1},8,["modelValue"])])]),_:1})}}},G8e=Object.freeze(Object.defineProperty({__proto__:null,default:GE},Symbol.toStringTag,{value:"Module"})),J8e=l.defineComponent({name:"JwtTableCopy",components:{TableSizeSetting:GE,TableFieldControl:KE,TableColumnHeader:Ob},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},userMenusAuth:{type:Object,default:()=>{}},route:{type:Object,default:()=>{}},router:{type:Object,default:()=>{}},userFieldList:{type:Object,default:()=>{}},refMenuId:{type:[Number,String],default:""},pageUrl:{type:String,default:""},tableColumn:{type:Array,default:()=>[]},freezeList:{type:Boolean,default:!0},cacheSearch:{type:Boolean,default:!1}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success","click-cell","des-edit-success","upload-btn","event-name","copy-success","asynExport","search-result","change-table-column","fixed-table-column","dialog-close","refresh-draw","refresh-table","form-item-change","row-change"],setup(e,{emit:t}){var se,xe,Le,Te;const n=Nn(),i={"page-sizes":v7(),"page-size":20,layout:"total, sizes, prev, pager, next, jumper"};let r="";const o=l.shallowRef([]),s=l.shallowRef([]),a=l.reactive({ajaxLoading:!1,submitLoading:!1,renderTable:!0,refreshTable:!1,tableSize:ir.get("tableSize")||"default",tableFields:null,tableStatistics:[]}),{proxy:u}=l.getCurrentInstance(),f=l.useSlots(),d=l.ref([]),c=l.ref({}),h=l.shallowRef(null),p=l.shallowRef(null),m=l.shallowRef(null),y=l.shallowRef(null),v=l.computed(()=>d.value.map(ne=>ne.id).join(",")),b=l.computed(()=>{var ne;return((ne=p.value)==null?void 0:ne.editBoxRefModel)||{}}),g=l.computed(()=>{var ne;return((ne=m.value)==null?void 0:ne.editBoxRefModel)||{}}),k=l.computed(()=>lo("showPagination",e.config)?Ke.isFunction(e.config.showPagination)?e.config.showPagination():e.config.showPagination:!0),w=l.computed(()=>lo("headerActionsShow",e.config)?Ke.isFunction(e.config.headerActionsShow)?e.config.headerActionsShow():e.config.headerActionsShow:!0),T=l.computed(()=>lo("showHeaderSearch",e.config)?Ke.isFunction(e.config.showHeaderSearch)?e.config.showHeaderSearch():e.config.showHeaderSearch:!0),S=Object.freeze({headerActions:{list:[],deleteText:""},headerActionsShow:!0,tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0,immediate:!0},virtualized:!1,tableEvents:{},tableColumn:[],searchBtnInline:!1,useField:!0,keepAliveTabs:!0,tableListApi:null,tableListParams:{},tableDeleteApi:null,tableRowEdit:!0,tableDeleteText:"",tableDeleteParams:{},tableExportApi:"",tableExportPathKey:"",tablePrintApi:"",tablePrintPathKey:"http_path",pagination:i,showPagination:!0,hasPagination:!0,showTableLineHeight:!1,editBoxOnDialog:!0,editBox:{title:Pe("系统"),dialog:{width:"960px",top:"7vh"},form:{api:{add:null,update:null},formAttrs:{},formList:[]},footer:{confirm:{title:Pe("确认"),attrs:{type:"primary"}},cancel:{title:Pe("取消"),attrs:{}}}},tableDrawer:{}});let _=Ke.merge({},S,{useField:!0,keepAliveTabs:!0},e.config);const A=()=>{var ne;return((ne=e==null?void 0:e.config)==null?void 0:ne.tablePageSizeName)||"pageSize"},D=l.reactive({currentPage:1,pageCount:1,pageSize:ir.get(A())||((se=_.tableListParams)==null?void 0:se.per_page)||_.pagination["page-sizes"][2],totalCount:1,sort:((xe=_.tableListParams)==null?void 0:xe.sort)||"id",order:((Le=_.tableListParams)==null?void 0:Le.order)||"desc"}),x=l.reactive({title:"",type:"add",visible:!1,model:{},config:{},boxName:"editBox",refreshTable:!1}),B=l.reactive({title:"",type:"add",visible:!1,model:{},config:{},boxName:"editBox"}),E={"append-to-body":!0,"destroy-on-close":!0,size:"40%"},F=l.shallowReactive({attrs:{...E},visible:!1,config:{},detailInfo:{},contentConfig:{}}),C=l.computed(()=>{var ne;return F.descriptionEdit||(ne=F==null?void 0:F.attrs)!=null&&ne.refresh?l.reactive(F.detailInfo):F.detailInfo}),I=()=>{var Ce;const ne={};for(const Re in e.userMenusAuth){const{id:ze}=((Ce=e.userMenusAuth)==null?void 0:Ce[Re])||"";ze&&(ne[ze]=Re)}return ne},N=l.computed(()=>{let ne=e.route.path||"";return e!=null&&e.refMenuId&&(ne=I()[e.refMenuId]),e!=null&&e.pageUrl&&(ne=e==null?void 0:e.pageUrl),ne||""}),H=l.computed(()=>Pe("加载数据中")||"加载数据中..."),Q=(ne={})=>{const{query:Ce}=e.route;let Re={...c.value,...ne};if((Ce.fromJump||Ce.openType)&&!(e!=null&&e.refMenuId)){for(let[ze,$e]of Object.entries(Ce))Ke.isArray($e)?Re[ze]=$e.map(ut=>+ut):Re[ze]=$e;Re.openType&&delete Re.openType,delete Re.fromJump}c.value=Re,ae(ne)},ie=()=>{var ne,Ce;return{..._.tableListParams||{},page:D.currentPage,per_page:D.pageSize,sort:D.sort||((ne=_.tableListParams)==null?void 0:ne.sort)||"",order:D.order||((Ce=_.tableListParams)==null?void 0:Ce.order)||"",...c.value||{}}},ae=(ne={})=>{const Ce=ie(),Re=Ke.merge({},Ce,ne);M(Re)},M=ne=>{if(!_.tableListApi){_.tableData&&(o.value=_.tableData);return}a.ajaxLoading=!0,n.request({url:_.tableListApi,method:"get",params:ne}).then(Ce=>{let Re=null;_.hasPagination?(_!=null&&_.tableListCallback&&Ke.isFunction(_.tableListCallback)?Re=_.tableListCallback(Ce.data,Ce):Re=Ce.data,o.value=e.freezeList?l.markRaw(Re.map(ze=>l.markRaw(ze))):Re,D.pageCount=Ce==null?void 0:Ce.totalPage,D.totalCount=Ce.total,D.currentPage=Ce.current_page):(Re=Ce,o.value=e.freezeList?l.markRaw(Re):Re),Re=null,a.tableStatistics=(Ce==null?void 0:Ce.statistics)||null,a.ajaxLoading=!1,j(Ce.data),t("tablelist-change",Ce.data)}).catch(()=>{a.ajaxLoading=!1})},j=(ne=[])=>{if(e!=null&&e.refMenuId)return;const{query:{id:Ce,openType:Re}}=e.route;if(Re&&Ce&&ne.length===1){if(Re==="edit")$n(ne[0],{});else if(Re.includes("Detail")){const ze=s.value.find($e=>{var ut;return((ut=$e==null?void 0:$e.publicDrawerConfig)==null?void 0:ut.openName)===Re});ze!=null&&ze.id&&t("click-cell",ne[0],ze)}}},V=()=>{D.currentPage=1;const ne={page:1,per_page:D.pageSize};c.value={},l.nextTick(()=>{ae(ne)})},L=(ne,Ce)=>{c.value[ne]=Ce},W=ne=>{var Ce,Re;D.currentPage=1,(Re=(Ce=e.config)==null?void 0:Ce.tableSearch)!=null&&Re.onlyData?c.value={...ne}:c.value={...c.value,...ne},t("search-result",ne),ae(ne)},G=ne=>{D.currentPage=ne,ae({page:ne})},$=ne=>{D.pageSize=ne;const Ce=A();ir.set(Ce,ne),ae({per_page:ne})},re=ne=>{d.value=ne,t("selection-change",ne)},be=({prop:ne,order:Ce})=>{D.sort=ne,D.order=Ce==="ascending"?"asc":"desc",ae({sort:ne,order:Ce==="ascending"?"asc":"desc"})},Se=ne=>{t("table-current-change",ne)},ee=()=>{var ne,Ce,Re,ze;if(B.visible){B.visible=!1,B.config=null,B.model=null,a.submitLoading=!1;return}F.visible&&Oe(),(Ce=(ne=x==null?void 0:x.config)==null?void 0:ne.api)!=null&&Ce.refreshDraw&&t("refresh-draw"),((ze=(Re=x==null?void 0:x.config)==null?void 0:Re.api)!=null&&ze.refreshTable||x!=null&&x.refreshTable)&&t("refresh-table"),x.visible=!1,x.config=null,x.model=null,a.submitLoading=!1,t("list-change"),!x.stopGetList&&ae()},we=(ne,Ce)=>{var Re,ze,$e;x.visible&&(Re=x==null?void 0:x.config)!=null&&Re.addSuccess&&Ke.isFunction((ze=x==null?void 0:x.config)==null?void 0:ze.addSuccess)&&(($e=x==null?void 0:x.config)==null||$e.addSuccess(c,L)),ee(),t("add-success",ne,Ce)},Ee=(ne,Ce)=>{ee(),t("edit-success",ne,Ce)},P=()=>{F.visible=!0},le=(ne,Ce)=>{n.request({url:_.tableCopyApi,method:"post",data:ne}).then(()=>{t("copy-success",Ce),ae()})},me=(ne,Ce,Re,ze=[],$e=!1)=>{Ik(ne,Ce,Re,{selectionRow:ze,cancel:$e,callback:(ut,We)=>{var ft,dt;t("des-edit-success",ut,We),Ce.refreshTable&&R(),Ce!=null&&Ce.refreshDraw&&ve(),(dt=(ft=Ce==null?void 0:Ce.api)==null?void 0:ft.callback)==null||dt.call(ft,ut)}})},J=(ne={})=>{const Ce=ie();kB(ne,Ce,{url:_.tablePrintApi,tableData:o.value,proxy:u,tableExportPathKey:_.tableExportPathKey})},Y=(ne={},Ce={})=>{const Re=ie();Em(ne,Ce,Re,{url:_.tableExportApi,tableData:o.value,proxy:u,selectionRow:d.value,tableExportPathKey:_.tableExportPathKey,beforeExportFun:_.beforeExportFun,tableExportName:_.tableExportName,emit:t,isTemp:!1})},fe=(ne={},Ce={})=>{const Re=ie();Em(ne,Ce,Re,{url:_.tableExportApi,tableData:o.value,proxy:u,selectionRow:d.value,tableExportPathKey:_.tableExportPathKey,beforeExportFun:_.beforeExportFun,tableExportName:_.tableExportName,emit:t,isTemp:!0})},oe=()=>{var ne;if(!((ne=_.tableFileImport)!=null&&ne.action)){lt.ElMessage.info(Pe("请配置文件上传接口"));return}},pe=(ne,Ce,Re=!0)=>{ne[`isEdit${Ce.prop}`]=Re},de=(ne={},Ce={},Re="table")=>{var Ne,Ge,Je,gt,et;const{id:ze}=ne,{prop:$e,refreshTable:ut,api:We}=Ce;if(t("row-change",ne,Ce),!ze||!_.tableRowEdit)return;const ft={table:{url:_.tableUpdateApi,des:"tableUpdateApi"},drawDes:{url:((Ne=F==null?void 0:F.api)==null?void 0:Ne.update)||((Je=(Ge=F==null?void 0:F.descriptions)==null?void 0:Ge.api)==null?void 0:Je.update)||((et=(gt=_==null?void 0:_.tableDrawer)==null?void 0:gt.api)==null?void 0:et.update),des:"drawerConfig.api.update || appConfig.tableDrawer.api.update"}};let dt=(We==null?void 0:We.url)||ft[Re].url;if(!dt)return lt.ElMessage.info(`${Pe("请配置编辑接口")}${ft[Re].des}`);var Z={id:ze};const{startKey:ge,endKey:Me}=Ce;if(ge&&Me?(Z[ge]=ne[$e][0]||"",Z[Me]=ne[$e][1]||""):Z[$e]=ne[$e]||"",We!=null&&We.params){let qt=Ke.isFunction(We.params)?We.params(ne,Z):We.params;Z={...Z,...qt}}n.request({url:dt,method:"post",data:Z}).then(()=>{ne[`isEdit${$e}`]=!1,Re==="drawDes"&&(a.refreshTable=!0),ut&&R(),t("des-edit-success",Ce)})},Oe=(ne="")=>{if(!F.visible){t("refresh-draw");return}const{url:Ce,row:Re,searchKey:ze,valueKey:$e}=F.params||{};if(!Ce)return lt.ElMessage.info(Pe("请配置详情接口"));const ut={};ut[ze]=ne||rr($e,Re),n.request({url:Ce,method:"get",params:ut}).then(We=>{F.detailInfo=We})},ve=(ne="")=>{Oe(ne),a.refreshTable=!0},_e=(ne,Ce)=>{var ut,We,ft,dt,Z;const Re=Ke.merge({},E,((ut=Ce.drawerConfig)==null?void 0:ut.attrs)||{});F.attrs=Re;const ze=(We=Ce==null?void 0:Ce.drawerConfig)==null?void 0:We.tabPaneName,$e=(ft=Ce==null?void 0:Ce.drawerConfig)==null?void 0:ft.desListName;ze&&(_!=null&&_.tableDrawer[ze])&&(F.config={..._==null?void 0:_.tableDrawer[ze],api:Ke.merge({},((dt=_==null?void 0:_.tableDrawer)==null?void 0:dt.api)||{},((Z=Ce.drawerConfig)==null?void 0:Z.api)||{}),attrs:Re,descriptions:$e&&(_!=null&&_.tableDrawer[$e])?_==null?void 0:_.tableDrawer[$e]:{}}),F.detailInfo=ne,F.contentConfig={row:l.toRaw(ne),item:l.toRaw(Ce)},l.nextTick(()=>{F.visible=!0})},Ue=(ne,Ce)=>{var Re;t("click-cell",ne,Ce),Ce.drawerConfig?_e(ne,Ce):((Re=Ce==null?void 0:Ce.actions)==null?void 0:Re.type)==="editBox"&&$n(ne,Ce.actions)},st=()=>{},it=()=>{a.refreshTable&&(ae(),a.refreshTable=!1),F.visible=!1},xt=ne=>{t("upload-btn",ne)},yt=()=>{var ne;(ne=_==null?void 0:_.tableFileImport)!=null&&ne.refreshTable&&R()},je=(...ne)=>{t("event-name",...ne)},ce=ne=>{const Ce=ne==null?void 0:ne.action;Xe("",Ce)},ke=(ne,Ce)=>{B.visible?m.value.setModelVal(ne,Ce):p.value.setModelVal(ne,Ce)},Be=(ne,Ce)=>{B.visible?m.value.handleSetModelVal(ne,Ce):p.value.handleSetModelVal(ne,Ce)},Ve=(ne="editBoxInfo")=>{ne==="editBoxInfo"?(x.model={},x.config={}):ne==="addBoxInfo"&&(B.model={},B.config={}),t("dialog-close")},He=ne=>{a.tableSize=ne,ir.set("tableSize",ne)},rt=(ne,Ce,Re,ze)=>{if(a.tableFields){const $e=s.value.find(ut=>ut.prop===Re.property);$e!=null&&$e.id&&t("change-table-column","width",{width:ne,column:$e})}},ct=ne=>{a.tableFields&&(t("change-table-column","toggle",ne),ne.checked=!ne.checked)},vt=()=>{a.tableFields&&t("change-table-column","draggable",s.value)},_t=ne=>{a.tableFields&&(t("change-table-column","fixed",ne),ne.fixed=!ne.fixed)},Rt=()=>{h.value.formReset()},zt=(ne,Ce)=>{h.value.setModelVal(ne,Ce)},Ot=()=>{var ze,$e,ut;const{path:ne}=e.route,Ce=(e==null?void 0:e.refMenuId)||(($e=(ze=e.userMenusAuth)==null?void 0:ze[ne])==null?void 0:$e.id);return((ut=e==null?void 0:e.config)==null?void 0:ut.useField)&&(e==null?void 0:e.userFieldList[Ce])||null},bn=()=>{var Ce,Re,ze;return((ze=(Re=(Ce=e.userMenusAuth)==null?void 0:Ce[N.value])==null?void 0:Re.operations)==null?void 0:ze.filter($e=>$e==null?void 0:$e.show_table))||[]},In=()=>{var ze,$e;let ne=[];const Ce=Ot();a.tableFields=Ce,((ze=e==null?void 0:e.tableColumn)!=null&&ze.length?e==null?void 0:e.tableColumn:($e=e==null?void 0:e.config)==null?void 0:$e.tableColumn).forEach(ut=>{var dt,Z,ge,Me;const We={...ut,label:Ke.isFunction(ut.label)?ut.label():Pe(ut.label),tips:Ke.isFunction(ut.tips)?ut.tips():Pe(ut.tips)};We.isEdit=!!(We.editType||We.dateTimeFormat||We.isImg||We.isImgs||We.editTypeFun);let ft=!0;if(We.isOperate){const Ne=bn(),Ge=We.fixed==="right"&&(((dt=We==null?void 0:We.action)==null?void 0:dt.list)||[]);Ne!=null&&Ne.length&&Ge.length?ft=Ne.some(Je=>Ge.includes(Je.code)):ft=!1}Ce?(Ce[We.prop]&&ne.push({...We,...Ce[We.prop],isControl:!0,fixed:!!((Z=Ce[We.prop])!=null&&Z.is_fixed),checked:We.hide?!1:!!Ce[We.prop].is_show,width:((ge=Ce[We.prop])==null?void 0:ge.width)||(We==null?void 0:We.width)||""}),We.isOperate&&ne.push({...We,rank:We!=null&&We.type?-1/0:1/0,checked:(We==null?void 0:We.type)||ft,isControl:!1,fixed:(We==null?void 0:We.fixed)||"",width:((Me=Ce[We.prop])==null?void 0:Me.width)||(We==null?void 0:We.width)||""})):ne.push({...We,checked:We.isOperate?ft:!We.hide})}),Ce&&(ne=ne.sort((ut,We)=>ut.rank-We.rank)),s.value=ne},Rn=()=>{const ne={},Ce=Ot();if(Ce&&Ke.isObject(Ce))for(const[Re,ze]of Object.entries(Ce))ze.is_default_sort&&(ne.sort=Re,ne.order=ze.sort);ne!=null&&ne.order&&(D.sort=ne.sort,D.order=ne.order)},It=async()=>await p.value.createSubmitData(),mn=()=>{In()},Wn=(ne,Ce,Re)=>{ne&&n.request({url:ne,method:"get",params:{}}).then(ze=>{Ce==null||Ce(ze,Re.model)})},hi=(ne={},Ce={})=>{var $e;const Re=ne.formList;let ze=Re;return a.tableFields&&(ze=Re.filter(ut=>{const We=!ut.privacyId||!!a.tableFields[ut.privacyId];return(ne==null?void 0:ne.privacyKey)==="disabled"?(ut.formAttrs={...ut.formAttrs,disabled:!We},!0):We})),($e=ne==null?void 0:ne.beforeCreate)!=null&&$e.formatFormList&&Ke.isFunction(ne.beforeCreate.formatFormList)&&(ze=ne.beforeCreate.formatFormList(ze,Ce)),ze},Ni=async(ne,Ce,Re={},ze)=>{const $e={id:ne.id,...Re};n.request({url:_[Ce].form.api.detail,method:"get",params:$e}).then(ut=>{ze?x.model=ze(ut):x.model=ut,x.title=jk(!0,_,Ce,Pe),t("get-detail-success",ut)})},Nr={filterFormList:hi,handleGetDetail:Ni,handleBeforeCreateReq:Wn,t:Pe},$n=(ne,Ce)=>{af(ne,Ce,_,x,Nr),l.nextTick(()=>{_.editBoxOnDialog?x.visible=!0:P()})},Xe=(ne,Ce)=>{af(ne,Ce,_,B,Nr),B.visible=!0},Mr=(ne="",Ce,Re,ze)=>{n.request({url:ne||_.tableDeleteApi,method:"post",data:Ce}).then(()=>{t("delete-success",ze),ae(),Re!=null&&Re.refreshDraw&&ve()})},Ai={deleteText:((Te=_==null?void 0:_.headerActions)==null?void 0:Te.deleteText)||"",tableCopyText:_.tableCopyText,handleEdit:$n,handleLinkRouter:hk,t:Pe,emit:t,handleDeleteRequest:Mr,handleExportRequest:Y,handleExportTempRequest:fe,handlePrintRequest:J,handleImportRequest:oe,handleSimpleRequest:me,handleCopyRequest:le},ua=(ne,Ce={},Re=null)=>{var ut,We,ft;const{code:ze}=ne,$e=Re||((ut=_.headerActions)==null?void 0:ut[ze])||((ft=(We=F==null?void 0:F.descriptions)==null?void 0:We.headerActions)==null?void 0:ft[ze]);hc(ne,Ce,$e,d.value,"tableHeader",Ai),t("header-action",ne,d.value,C.value,$e)},O=(ne,Ce,Re)=>{const{action:ze}=ne,$e=Re.action[ze.code];hc(ze,Ce,$e,d.value,"",{...Ai,deleteText:_.tableDeleteText}),t("table-action",ze,Ce,$e,ne)},X=l.watchEffect(()=>{}),z=l.watch(e,ne=>{_=Ke.merge({},S,ne.config),ne.config.tableData&&(o.value=ne.config.tableData||[])}),R=()=>{ae(),t("refresh-table")},q=(ne,Ce,Re)=>{t("form-item-change",ne,Ce,Re)},K=async()=>{var Re;const ne=await((Re=h==null?void 0:h.value)==null?void 0:Re.createSubmitData());for(const ze in ne)ne[ze]===""&&delete ne[ze];const Ce=te(!1);return Ce&&(Object.assign(ne,Ce),h.value.handleSetModelValue(ne)),ne},te=(ne=!1)=>{var Ce;if(e.cacheSearch){const Re=r||N.value;return((Ce=n==null?void 0:n.handleCacheSearch)==null?void 0:Ce.call(n,Re,ne,ne?c.value:null))||null}return null},ye=l.watch(()=>N.value,(ne,Ce)=>{ne!==r&&(r=Ce)});l.onMounted(async()=>{var Ce;const ne=await K();c.value=ne,Rn(),In(),(Ce=_.tableAttr)!=null&&Ce.immediate&&Q()});function Fe(){_=null,o.value=null,s.value=null,c.value=null,a.tableFields=null,d.value=null,a.renderTable=!1}return l.onBeforeUnmount(()=>{te(!0),X(),z(),Fe(),ye()}),{tableRef:y,tableData:o,appTableColumn:s,slots:f,...l.toRefs(a),currentPagePath:N,appConfig:_,pagination:D,editBoxRef:p,editBoxRefModel:b,editBoxInfo:x,addBoxInfo:B,addBoxRef:m,addBoxRefModel:g,tableDrawerConfig:F,selectionRow:d,selectionRowIds:v,tableSearchModel:c,loadingText:H,searchFormRef:h,showPagination:k,showHeaderActions:w,showHeaderSearch:T,onSearchSubmit:W,onSearchReset:V,handleEdit:$n,handleCurrentChange:G,handleSizeChange:$,handleSelectionChange:re,handleTableCurrentChange:Se,handleSortChange:be,handleHeaderAction:ua,handleTableAction:O,handleGetDetail:Ni,getList:ae,initSearch:Q,handleError:st,handleAddSuccess:we,handleEditSuccess:Ee,handleEditRow:pe,handleEditRowProp:de,handleImportRequest:oe,handleClickRow:Ue,handleCloseDrawer:it,handleUploadBtn:xt,handleUploadSuccess:yt,handleRefreshDrawerDetail:ve,handleComponentEvent:je,handleAddOption:ce,setFormModelVal:ke,handleSetFormModelVal:Be,handleSetSearchModelVal:zt,handleDialogClose:Ve,handleTableSizeChange:He,handleTableHeaderDragend:rt,handleFieldCheck:ct,handleTableColumnSort:vt,handleSearchFormReset:Rt,getSubmitData:It,handleFixedCell:_t,handleDoLayoutTable:mn,handleItemChange:q}}}),Y8e={key:0,class:"app-table-wrapper"},X8e={key:0,class:"table-header-wrapper fx"},Z8e={class:"fxm pr10 ex"},Q8e={class:"fxmj"},$8e={class:"ex"};function e9e(e,t,n,i,r,o){var w,T,S,_,A,D,x;const s=l.resolveComponent("jwt-form"),a=l.resolveComponent("jwt-header-button"),u=l.resolveComponent("TableSizeSetting"),f=l.resolveComponent("TableFieldControl"),d=l.resolveComponent("TableColumnHeader"),c=l.resolveComponent("jwt-table-button"),h=l.resolveComponent("jwt-column-item"),p=l.resolveComponent("el-table-column"),m=l.resolveComponent("el-table"),y=l.resolveComponent("el-pagination"),v=l.resolveComponent("JwtDialogForm"),b=l.resolveComponent("jwt-detail-drawer"),g=l.resolveComponent("el-drawer"),k=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.renderTable?(l.openBlock(),l.createElementBlock("div",Y8e,[l.createElementVNode("div",{class:l.normalizeClass([(w=e.appConfig)!=null&&w.searchBtnInline?"fxmj":""])},[l.renderSlot(e.$slots,"search-before",{},void 0,!0),e.showHeaderSearch?(l.openBlock(),l.createElementBlock("div",X8e,[t[0]||(l.setBlockTracking(-1,!0),(t[0]=(_=(S=(T=e.config)==null?void 0:T.tableSearch)==null?void 0:S.formList)!=null&&_.length?(l.openBlock(),l.createBlock(s,{key:0,ref:"searchFormRef",modelValue:e.tableSearchModel,"onUpdate:modelValue":B=>e.tableSearchModel=B,class:"app-table-search",config:(A=e.config)==null?void 0:A.tableSearch,"is-search":"",onReset:e.onSearchReset,onSubmit:e.onSearchSubmit},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),B=>({name:B,fn:l.withCtx(({model:E})=>[l.renderSlot(e.$slots,B,{model:E},void 0,!0)])}))]),1032,["modelValue","onUpdate:modelValue","config","onReset","onSubmit"])):l.createCommentVNode("",!0)).cacheIndex=0,l.setBlockTracking(1),t[0]),l.renderSlot(e.$slots,"search-form-after",{},void 0,!0)])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"search-after",{},void 0,!0),l.createElementVNode("div",{class:l.normalizeClass(["fxmj",[(D=e.appConfig)!=null&&D.searchBtnInline?"mb18":""]])},[l.createElementVNode("div",Z8e,[l.renderSlot(e.$slots,"header-button-before",{},void 0,!0),e.showHeaderActions?(l.openBlock(),l.createBlock(a,{key:0,config:((x=e.config)==null?void 0:x.headerActions)||{},"current-path":e.currentPagePath,"file-import":e.appConfig.tableFileImport,loading:e.ajaxLoading,"menus-obj":e.userMenusAuth,"selection-row":e.selectionRow,"upload-success-cb":e.appConfig.uploadSuccessCb,onHeaderAction:e.handleHeaderAction,onUploadSuccess:e.handleUploadSuccess},null,8,["config","current-path","file-import","loading","menus-obj","selection-row","upload-success-cb","onHeaderAction","onUploadSuccess"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"header-button-after",{},void 0,!0)]),l.createElementVNode("div",null,[e.appConfig.showTableLineHeight?(l.openBlock(),l.createBlock(u,{key:0,onTableSize:e.handleTableSizeChange},null,8,["onTableSize"])):l.createCommentVNode("",!0),e.tableFields?(l.openBlock(),l.createBlock(f,{key:1,modelValue:e.appTableColumn,"onUpdate:modelValue":t[1]||(t[1]=B=>e.appTableColumn=B),onChange:e.handleFieldCheck,onSort:e.handleTableColumnSort},null,8,["modelValue","onChange","onSort"])):l.createCommentVNode("",!0)])],2)],2),l.renderSlot(e.$slots,"table-before",{},void 0,!0),l.renderSlot(e.$slots,"table-content",{list:e.tableData},()=>[l.withDirectives((l.openBlock(),l.createBlock(m,l.mergeProps(e.appConfig.tableAttr,{ref:"tableRef",class:"mt10 jwt-table-wrapper",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":e.loadingText,height:e.tableHeight,size:e.tableSize},l.toHandlers(e.appConfig.tableEvents),{onCurrentChange:e.handleTableCurrentChange,onHeaderDragend:e.handleTableHeaderDragend,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange}),{default:l.withCtx(()=>[l.renderSlot(e.$slots,"table-content-before",{},void 0,!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.appTableColumn,(B,E)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:E},[B.checked?(l.openBlock(),l.createBlock(p,l.mergeProps({key:0,align:B.align||"center",fixed:B.fixed,ref_for:!0},B.attrs,{"min-width":B.minWidth?B.minWidth:null,prop:B.prop,sortable:B.sortable,type:B.type,width:B.width?B.width:null}),l.createSlots({header:l.withCtx(()=>[l.createVNode(d,{item:B,onFixed:F=>e.handleFixedCell(B)},null,8,["item","onFixed"])]),_:2},[B.type?B.type==="expand"?{name:"default",fn:l.withCtx(({row:F})=>[l.renderSlot(e.$slots,B.prop,{index:E,scope:F},void 0,!0)]),key:"1"}:void 0:{name:"default",fn:l.withCtx(({row:F,$index:C})=>[B.action?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.renderSlot(e.$slots,"action-before",{scope:F},void 0,!0),l.createVNode(c,{config:B,"current-path":e.currentPagePath,"menus-obj":e.userMenusAuth,row:F,"show-button-num":e.appConfig.tableButtonNum,onTableAction:I=>e.handleTableAction(I,F,B)},null,8,["config","current-path","menus-obj","row","show-button-num","onTableAction"]),l.renderSlot(e.$slots,"action-after",{scope:F},void 0,!0)],64)):B.isColumn?l.renderSlot(e.$slots,B.prop,{key:1,index:E,scope:F},void 0,!0):(l.openBlock(),l.createElementBlock("div",{key:2,class:l.normalizeClass([(B==null?void 0:B.columnCls)||"fxmc","w mw"])},[l.renderSlot(e.$slots,B.slotPreName,{scope:F},void 0,!0),l.renderSlot(e.$slots,B.prop,{index:E,scope:F},()=>[l.createVNode(h,{index:C,item:B,row:F,onChange:e.handleEditRowProp,onClickCell:e.handleClickRow},null,8,["index","item","row","onChange","onClickCell"])],!0),l.renderSlot(e.$slots,B.slotSufName,{scope:F},void 0,!0)],2))]),key:"0"}]),1040,["align","fixed","min-width","prop","sortable","type","width"])):l.createCommentVNode("",!0)],64))),128)),l.renderSlot(e.$slots,"table-content-after",{list:e.tableData},void 0,!0)]),_:3},16,["data","element-loading-text","height","size","onCurrentChange","onHeaderDragend","onSelectionChange","onSortChange"])),[[k,e.ajaxLoading]])],!0),l.renderSlot(e.$slots,"table-after",{},void 0,!0),l.createElementVNode("div",Q8e,[l.createElementVNode("div",$8e,[l.renderSlot(e.$slots,"table-pagination-before",{data:e.tableStatistics},void 0,!0)]),e.showPagination?(l.openBlock(),l.createBlock(y,l.mergeProps({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):l.createCommentVNode("",!0)]),l.renderSlot(e.$slots,"table-pagination-after",{},void 0,!0)])):l.createCommentVNode("",!0),e.editBoxInfo.visible?(l.openBlock(),l.createBlock(v,{key:1,ref:"editBoxRef","app-config":e.editBoxInfo.config,config:e.editBoxInfo,"selection-row":e.selectionRow,"selection-row-ids":e.selectionRowIds,onAddOption:e.handleAddOption,onAddSuccess:e.handleAddSuccess,onEditSuccess:e.handleEditSuccess,onError:e.handleError,onItemChange:e.handleItemChange,onUploadBtn:e.handleUploadBtn},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),B=>({name:B,fn:l.withCtx(({model:E})=>[l.renderSlot(e.$slots,B,{model:E},void 0,!0)])}))]),1032,["app-config","config","selection-row","selection-row-ids","onAddOption","onAddSuccess","onEditSuccess","onError","onItemChange","onUploadBtn"])):l.createCommentVNode("",!0),e.addBoxInfo.visible?(l.openBlock(),l.createBlock(v,{key:2,ref:"addBoxRef","app-config":e.addBoxInfo.config,config:e.addBoxInfo,onAddOption:e.handleAddOption,onAddSuccess:e.handleAddSuccess,onEditSuccess:e.handleEditSuccess,onError:e.handleError,onUploadBtn:e.handleUploadBtn},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),B=>({name:B,fn:l.withCtx(({model:E})=>[l.renderSlot(e.$slots,B,{model:E},void 0,!0)])}))]),1032,["app-config","config","onAddOption","onAddSuccess","onEditSuccess","onError","onUploadBtn"])):l.createCommentVNode("",!0),e.tableDrawerConfig.visible?(l.openBlock(),l.createBlock(g,l.mergeProps({key:3,modelValue:e.tableDrawerConfig.visible,"onUpdate:modelValue":t[2]||(t[2]=B=>e.tableDrawerConfig.visible=B)},e.tableDrawerConfig.attrs,{class:"jwt-drawer-wrapper","with-header":!1,onClose:e.handleCloseDrawer}),{default:l.withCtx(()=>[l.createVNode(b,{ref:"pageDetailRef",config:e.tableDrawerConfig.config,"current-page-drawer-config":e.tableDrawerConfig.contentConfig,"current-page-path":e.currentPagePath,"keep-alive":!1,"open-page-drawer-config-list":[],"user-menus-auth":e.userMenusAuth,onCloseDrawer:e.handleCloseDrawer,onRefreshTable:e.handleRefreshTable},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),B=>({name:B,fn:l.withCtx(({scope:E,model:F,row:C})=>[l.renderSlot(e.$slots,B,{model:F,row:C,scope:E},void 0,!0)])}))]),1032,["config","current-page-drawer-config","current-page-path","user-menus-auth","onCloseDrawer","onRefreshTable"])]),_:3},16,["modelValue","onClose"])):l.createCommentVNode("",!0)],64)}const t9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(J8e,[["render",e9e],["__scopeId","data-v-e15df54b"]])},Symbol.toStringTag,{value:"Module"})),n9e=l.defineComponent({name:"JwtTable",components:{TableSizeSetting:GE,TableFieldControl:KE,TableListContent:kG,TableContentControl:bG,TableListContentVirtualized:_G},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},userMenusAuth:{type:Object,default:()=>{}},route:{type:Object,default:()=>{}},router:{type:Object,default:()=>{}},userFieldList:{type:Object,default:()=>{}},refMenuId:{type:[Number,String],default:""},pageUrl:{type:String,default:""},tableColumn:{type:Array,default:()=>[]},freezeList:{type:Boolean,default:!0},cacheSearch:{type:Boolean,default:!1}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success","click-cell","des-edit-success","upload-btn","event-name","copy-success","asynExport","search-result","change-table-column","fixed-table-column","dialog-close","refresh-draw","refresh-table","form-item-change","row-change","dbclick-cell","change-table-rank","after-btns-click","show-file","sort-change"],setup(e,{emit:t}){var $e,ut,We,ft,dt;const n=Nn(),i={"page-sizes":v7(),"page-size":20,layout:"total, sizes, prev, pager, next, jumper"};let r="";const o=($e=e==null?void 0:e.config)!=null&&$e.virtualized?l.ref([]):l.shallowRef([]),s=l.shallowRef([]),a=l.reactive({ajaxLoading:!1,submitLoading:!1,renderTable:!0,refreshTable:!1,tableSize:ir.get("tableSize")||"default",tableFields:null,tableStatistics:[]}),{proxy:u}=l.getCurrentInstance(),f=l.useSlots(),d=l.ref([]),c=l.ref({}),h=l.shallowRef(null),p=l.shallowRef(null),m=l.shallowRef(null),y=l.ref(null),v=l.computed(()=>{var Z;return(Z=y==null?void 0:y.value)==null?void 0:Z.tableRef}),b=l.computed(()=>d.value.map(Z=>Z.id).join(",")),g=l.computed(()=>{var Z;return((Z=p.value)==null?void 0:Z.editBoxRefModel)||{}}),k=l.computed(()=>{var Z;return((Z=m.value)==null?void 0:Z.editBoxRefModel)||{}}),w=l.computed(()=>lo("showPagination",e.config)?Ke.isFunction(e.config.showPagination)?e.config.showPagination():e.config.showPagination:!0),T=l.computed(()=>lo("headerActionsShow",e.config)?Ke.isFunction(e.config.headerActionsShow)?e.config.headerActionsShow():e.config.headerActionsShow:!0),S=l.computed(()=>lo("showHeaderSearch",e.config)?Ke.isFunction(e.config.showHeaderSearch)?e.config.showHeaderSearch():e.config.showHeaderSearch:!0),_=Object.freeze({headerActions:{list:[],deleteText:""},headerActionsShow:!0,tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0,immediate:!0,defaultSort:{prop:"",order:""},sortBy:{key:"",order:""}},virtualized:!1,dragTitleKey:"title",estimatedRowHeight:50,tableEvents:{},tableColumn:[],searchBtnInline:!1,useField:!0,keepAliveTabs:!0,tableListApi:null,tableListParams:{},tableCacheSortOrder:{},tableDeleteApi:null,tableRowEdit:!0,tableDeleteText:"",tableDeleteParams:{},tableExportApi:"",tableExportPathKey:"",tablePrintApi:"",tablePrintPathKey:"http_path",pagination:i,showPagination:!0,hasPagination:!0,showTableLineHeight:!1,showTableDrag:!1,editBoxOnDialog:!0,editBox:{title:Pe("系统"),dialog:{width:"960px",top:"7vh"},form:{api:{add:null,update:null},formAttrs:{},formList:[]},footer:{confirm:{title:Pe("确认"),attrs:{type:"primary"}},cancel:{title:Pe("取消"),attrs:{}}}},tableDrawer:{}});let A=Ke.merge({},_,{useField:!0,keepAliveTabs:!0},e.config);const D=()=>{var Z;return((Z=e==null?void 0:e.config)==null?void 0:Z.tablePageSizeName)||"pageSize"},x=l.reactive({currentPage:1,pageCount:1,pageSize:ir.get(D())||((ut=A.tableListParams)==null?void 0:ut.per_page)||A.pagination["page-sizes"][2],totalCount:1,sort:((We=A.tableListParams)==null?void 0:We.sort)||"id",order:((ft=A.tableListParams)==null?void 0:ft.order)||"desc"}),B=l.reactive({title:"",type:"add",visible:!1,model:{},config:{},boxName:"editBox",refreshTable:!1}),E=l.reactive({title:"",type:"add",visible:!1,model:{},config:{},boxName:"editBox"}),F={"append-to-body":!0,"destroy-on-close":!0,size:"40%"},C=l.shallowReactive({attrs:{...F},visible:!1,config:{},detailInfo:{},contentConfig:{}}),I=l.computed(()=>A.virtualized?{key:x.sort,order:x.order}:{prop:x.sort,order:x.order==="asc"?"ascending":"descending"}),N=l.computed(()=>{var Z;return C.descriptionEdit||(Z=C==null?void 0:C.attrs)!=null&&Z.refresh?l.reactive(C.detailInfo):C.detailInfo}),H=()=>{var ge;const Z={};for(const Me in e.userMenusAuth){const{id:Ne}=((ge=e.userMenusAuth)==null?void 0:ge[Me])||"";Ne&&(Z[Ne]=Me)}return Z},Q=l.computed(()=>{var ge;let Z=((ge=e==null?void 0:e.route)==null?void 0:ge.path)||"";return e!=null&&e.refMenuId&&(Z=H()[e.refMenuId]),e!=null&&e.pageUrl&&(Z=e==null?void 0:e.pageUrl),Z||""}),ie=l.computed(()=>Pe("加载数据中")||"加载数据中..."),ae=(Z={})=>{const{query:ge}=e.route||{};let Me={...c.value,...Z};if((ge!=null&&ge.fromJump||ge!=null&&ge.openType)&&!(e!=null&&e.refMenuId)){for(let[Ne,Ge]of Object.entries(ge))Ke.isArray(Ge)?Me[Ne]=Ge.map(Je=>+Je):Me[Ne]=Ge;Me.openType&&delete Me.openType,delete Me.fromJump}c.value=Me,j(Z)},M=()=>{var Z,ge;return{...A.tableListParams||{},page:x.currentPage,per_page:x.pageSize,sort:x.sort||((Z=A.tableListParams)==null?void 0:Z.sort)||"",order:x.order||((ge=A.tableListParams)==null?void 0:ge.order)||"",...c.value||{}}},j=(Z={})=>{const ge=M(),Me=Ke.merge({},ge,Z);V(Me)},V=Z=>{if(!A.tableListApi){A.tableData&&(o.value=A.tableData);return}a.ajaxLoading=!0,n.request({url:A.tableListApi,method:"get",params:Z}).then(ge=>{let Me=null;if(A.hasPagination){A!=null&&A.tableListCallback&&Ke.isFunction(A.tableListCallback)?Me=A.tableListCallback(ge.data,ge):Me=ge.data,o.value=e.freezeList?l.markRaw(Me.map(Ge=>l.markRaw(Ge))):Me;let Ne=ge;A!=null&&A.paginationCback&&Ke.isFunction(A.paginationCback)&&(Ne=A.paginationCback(ge)),x.pageCount=Ne==null?void 0:Ne.totalPage,x.totalCount=Ne.total,x.currentPage=Ne.current_page}else Me=ge,o.value=e.freezeList?l.markRaw(Me):Me;Me=null,a.tableStatistics=(ge==null?void 0:ge.statistics)||null,a.ajaxLoading=!1,L(ge.data),t("tablelist-change",ge.data)}).catch(()=>{a.ajaxLoading=!1})},L=(Z=[])=>{if(e!=null&&e.refMenuId)return;const{query:{id:ge,openType:Me}}=e.route;if(Me&&ge&&Z.length===1){if(Me==="edit")R(Z[0],{});else if(Me.includes("Detail")){const Ne=s.value.find(Ge=>{var Je;return((Je=Ge==null?void 0:Ge.publicDrawerConfig)==null?void 0:Je.openName)===Me});Ne!=null&&Ne.id&&t("click-cell",Z[0],Ne)}}},W=()=>{x.currentPage=1;const Z={page:1,per_page:x.pageSize};c.value={},l.nextTick(()=>{j(Z)})},G=(Z,ge)=>{c.value[Z]=ge},$=Z=>{var ge,Me;x.currentPage=1,(Me=(ge=e.config)==null?void 0:ge.tableSearch)!=null&&Me.onlyData?c.value={...Z}:c.value={...c.value,...Z},t("search-result",Z),j(Z)},re=Z=>{x.currentPage=Z,j({page:Z})},be=Z=>{x.pageSize=Z;const ge=D();ir.set(ge,Z),j({per_page:Z})},Se=Z=>{d.value=Z,t("selection-change",Z)},ee=Z=>{o.value=o.value.map(ge=>(ge.selectionChecked=Z,ge)),Z?(d.value=o.value,t("selection-change",o.value)):(d.value=[],t("selection-change",[]))},we=()=>{l.nextTick(()=>{const Z=o.value.filter(ge=>ge.selectionChecked);d.value=Z,t("selection-change",Z)})},Ee=({prop:Z,order:ge})=>{var Ne;x.sort=Z,x.order=ge==="ascending"?"asc":"desc";const Me={sort:Z,order:ge==="ascending"?"asc":"desc"};ge&&((Ne=A==null?void 0:A.tableListParams)!=null&&Ne.sorts)&&(Me.sorts=""),t("sort-change",{prop:Z,order:ge,param:Me,tableFields:a.tableFields}),j(Me)},P=Z=>{t("table-current-change",Z)},le=()=>{var Z,ge,Me,Ne;if(E.visible){E.visible=!1,E.config=null,E.model=null,a.submitLoading=!1;return}C.visible&&it(),(ge=(Z=B==null?void 0:B.config)==null?void 0:Z.api)!=null&&ge.refreshDraw&&t("refresh-draw"),((Ne=(Me=B==null?void 0:B.config)==null?void 0:Me.api)!=null&&Ne.refreshTable||B!=null&&B.refreshTable)&&t("refresh-table"),B.visible=!1,B.config=null,B.model=null,a.submitLoading=!1,t("list-change"),!B.stopGetList&&j()},me=(Z,ge)=>{var Me,Ne,Ge;B.visible&&(Me=B==null?void 0:B.config)!=null&&Me.addSuccess&&Ke.isFunction((Ne=B==null?void 0:B.config)==null?void 0:Ne.addSuccess)&&((Ge=B==null?void 0:B.config)==null||Ge.addSuccess(c,G)),le(),t("add-success",Z,ge)},J=(Z,ge)=>{le(),t("edit-success",Z,ge)},Y=()=>{C.visible=!0},fe=(Z,ge)=>{n.request({url:A.tableCopyApi,method:"post",data:Z}).then(()=>{t("copy-success",ge),j()})},oe=(Z,ge,Me,Ne=[],Ge=!1)=>{Ik(Z,ge,Me,{selectionRow:Ne,cancel:Ge,callback:(Je,gt)=>{var et,qt;t("des-edit-success",Je,gt),ge.refreshTable&&Le(),ge!=null&&ge.refreshDraw&&xt(),(qt=(et=ge==null?void 0:ge.api)==null?void 0:et.callback)==null||qt.call(et,Je)}})},pe=(Z={})=>{const ge=M();kB(Z,ge,{url:A.tablePrintApi,tableData:o.value,proxy:u,tableExportPathKey:A.tableExportPathKey})},de=(Z={},ge={})=>{const Me=M();Em(Z,ge,Me,{url:A.tableExportApi,tableData:o.value,proxy:u,selectionRow:d.value,tableExportPathKey:A.tableExportPathKey,beforeExportFun:A.beforeExportFun,tableExportName:A.tableExportName,emit:t,isTemp:!1})},Oe=(Z={},ge={})=>{const Me=M();Em(Z,ge,Me,{url:A.tableExportApi,tableData:o.value,proxy:u,selectionRow:d.value,tableExportPathKey:A.tableExportPathKey,beforeExportFun:A.beforeExportFun,tableExportName:A.tableExportName,emit:t,isTemp:!0})},ve=()=>{var Z;if(!((Z=A.tableFileImport)!=null&&Z.action)){lt.ElMessage.info(Pe("请配置文件上传接口"));return}},_e=(Z,ge,Me=!0)=>{Z[`isEdit${ge.prop}`]=Me},Ue=(Z={},ge={},Me="table")=>{var un,ki,Li,Lr,so;const{id:Ne}=Z,{prop:Ge,refreshTable:Je,api:gt}=ge;if(t("row-change",Z,ge),!Ne||!A.tableRowEdit)return;const et={table:{url:A.tableUpdateApi,des:"tableUpdateApi"},drawDes:{url:((un=C==null?void 0:C.api)==null?void 0:un.update)||((Li=(ki=C==null?void 0:C.descriptions)==null?void 0:ki.api)==null?void 0:Li.update)||((so=(Lr=A==null?void 0:A.tableDrawer)==null?void 0:Lr.api)==null?void 0:so.update),des:"drawerConfig.api.update || appConfig.tableDrawer.api.update"}};let qt=(gt==null?void 0:gt.url)||et[Me].url;if(!qt)return lt.ElMessage.info(`${Pe("请配置编辑接口")}${et[Me].des}`);var nn={id:Ne};const{startKey:Mi,endKey:bi}=ge;if(Mi&&bi?(nn[Mi]=ck(Z[Ge][0]),nn[bi]=ck(Z[Ge][1])):nn[Ge]=ck(Z[Ge]),gt!=null&&gt.params){let $u=Ke.isFunction(gt.params)?gt.params(Z,nn):gt.params;nn={...nn,...$u}}n.request({url:qt,method:"post",data:nn}).then(()=>{Z[`isEdit${Ge}`]=!1,Me==="drawDes"&&(a.refreshTable=!0),Je&&Le(),t("des-edit-success",ge)})},st=Z=>{t("dbclick-cell",Z)},it=(Z="")=>{if(!C.visible){t("refresh-draw");return}const{url:ge,row:Me,searchKey:Ne,valueKey:Ge}=C.params||{};if(!ge)return lt.ElMessage.info(Pe("请配置详情接口"));const Je={};Je[Ne]=Z||rr(Ge,Me),n.request({url:ge,method:"get",params:Je}).then(gt=>{C.detailInfo=gt})},xt=(Z="")=>{it(Z),a.refreshTable=!0},yt=(Z,ge)=>{var Je,gt,et,qt,nn;const Me=Ke.merge({},F,((Je=ge.drawerConfig)==null?void 0:Je.attrs)||{});C.attrs=Me;const Ne=(gt=ge==null?void 0:ge.drawerConfig)==null?void 0:gt.tabPaneName,Ge=(et=ge==null?void 0:ge.drawerConfig)==null?void 0:et.desListName;Ne&&(A!=null&&A.tableDrawer[Ne])&&(C.config={...A==null?void 0:A.tableDrawer[Ne],api:Ke.merge({},((qt=A==null?void 0:A.tableDrawer)==null?void 0:qt.api)||{},((nn=ge.drawerConfig)==null?void 0:nn.api)||{}),attrs:Me,descriptions:Ge&&(A!=null&&A.tableDrawer[Ge])?A==null?void 0:A.tableDrawer[Ge]:{}}),C.detailInfo=Z,C.contentConfig={row:l.toRaw(Z),item:l.toRaw(ge)},l.nextTick(()=>{C.visible=!0})},je=(Z,ge)=>{var Me;t("click-cell",Z,ge),ge.drawerConfig?yt(Z,ge):((Me=ge==null?void 0:ge.actions)==null?void 0:Me.type)==="editBox"&&R(Z,ge.actions)},ce=Z=>{t("show-file",Z)},ke=()=>{},Be=()=>{a.refreshTable&&(j(),a.refreshTable=!1),C.visible=!1},Ve=Z=>{t("upload-btn",Z)},He=(Z,ge,Me,Ne)=>{t("after-btns-click",Z,ge,Me,Ne)},rt=()=>{var Z;(Z=A==null?void 0:A.tableFileImport)!=null&&Z.refreshTable&&Le()},ct=(...Z)=>{t("event-name",...Z)},vt=Z=>{const ge=Z==null?void 0:Z.action;q("",ge)},_t=(Z,ge)=>{E.visible?m.value.setModelVal(Z,ge):p.value.setModelVal(Z,ge)},Rt=(Z,ge)=>{E.visible?m.value.handleSetModelVal(Z,ge):p.value.handleSetModelVal(Z,ge)},zt=(Z="editBoxInfo")=>{Z==="editBoxInfo"?(B.model={},B.config={}):Z==="addBoxInfo"&&(E.model={},E.config={}),t("dialog-close")},Ot=Z=>{a.tableSize=Z,ir.set("tableSize",Z)},bn=(Z,ge,Me,Ne)=>{if(a.tableFields){const Ge=s.value.find(Je=>Je.prop===Me.property);Ge!=null&&Ge.id&&t("change-table-column","width",{width:Z,column:Ge})}},In=Z=>{a.tableFields&&(t("change-table-column","toggle",Z),Z.checked=!Z.checked)},Rn=()=>{a.tableFields&&t("change-table-column","draggable",s.value)},It=(Z,ge)=>{o.value=o.value.map((Me,Ne)=>({...Me,rank:ge+Ne})),l.nextTick(()=>{t("change-table-rank",o.value)})},mn=(Z,ge)=>{a.tableFields&&(t("change-table-column",Z,ge),ge.fixed=!ge.fixed)},Wn=()=>{h.value.formReset()},hi=(Z,ge)=>{h.value.setModelVal(Z,ge)},Ni=()=>{var Ne,Ge,Je;const{path:Z}=(e==null?void 0:e.route)||{},ge=(e==null?void 0:e.refMenuId)||((Ge=(Ne=e.userMenusAuth)==null?void 0:Ne[Z])==null?void 0:Ge.id);return((Je=e==null?void 0:e.config)==null?void 0:Je.useField)&&(e==null?void 0:e.userFieldList[ge])||null},Nr=()=>{var ge,Me,Ne;return((Ne=(Me=(ge=e.userMenusAuth)==null?void 0:ge[Q.value])==null?void 0:Me.operations)==null?void 0:Ne.filter(Ge=>Ge==null?void 0:Ge.show_table))||[]},$n=()=>{var Ne,Ge;let Z=[];const ge=Ni();a.tableFields=ge,((Ne=e==null?void 0:e.tableColumn)!=null&&Ne.length?e==null?void 0:e.tableColumn:(Ge=e==null?void 0:e.config)==null?void 0:Ge.tableColumn).forEach(Je=>{var nn,Mi,bi,un,ki,Li;const gt=Ke.isFunction(Je.label)?Je.label():Je.label,et={...Je,label:Pe(gt),tips:Ke.isFunction(Je.tips)?Je.tips():Pe(Je.tips)};et.isEdit=!!(et.editType||et.dateTimeFormat||et.isImg||et.isImgs||et.editTypeFun);let qt=!0;if(et.isOperate){const Lr=Nr(),so=et.fixed==="right"&&(((nn=et==null?void 0:et.action)==null?void 0:nn.list)||[]);Lr!=null&&Lr.length&&so.length?qt=Lr.some($u=>so.includes($u.code)):qt=!1}ge?(ge[et.prop]&&Z.push({...et,...ge[et.prop],label:et!=null&&et.customLabel?et.label:((Mi=ge[et.prop])==null?void 0:Mi.label)||et.label,isControl:!0,fixed:!!((bi=ge[et.prop])!=null&&bi.is_fixed),checked:et.hide?!1:!!ge[et.prop].is_show,width:((un=ge[et.prop])==null?void 0:un.width)||(et==null?void 0:et.width)||"",sortable:(ki=ge[et.prop])!=null&&ki.support_sort?"custome":!1}),et.isOperate&&Z.push({...et,rank:et!=null&&et.type?-1/0:1/0,checked:(et==null?void 0:et.type)||qt,isControl:!1,fixed:(et==null?void 0:et.fixed)||"",width:((Li=ge[et.prop])==null?void 0:Li.width)||(et==null?void 0:et.width)||""})):Z.push({...et,checked:et.isOperate?qt:!et.hide})}),ge&&(Z=Z.sort((Je,gt)=>Je.rank-gt.rank)),s.value=Z},Xe=()=>{var Me,Ne,Ge;const Z={},ge=Ni();if(ge&&Ke.isObject(ge))for(const[Je,gt]of Object.entries(ge))gt.is_default_sort&&(Z.sort=Je,Z.order=gt.sort);(Me=A==null?void 0:A.tableCacheSortOrder)!=null&&Me.order&&(Z.order=(Ne=A==null?void 0:A.tableCacheSortOrder)==null?void 0:Ne.order,Z.sort=(Ge=A==null?void 0:A.tableCacheSortOrder)==null?void 0:Ge.sort),Z!=null&&Z.order&&(x.sort=Z.sort,x.order=Z.order)},Mr=async()=>await p.value.createSubmitData(),Ai=()=>{$n()},ua=(Z,ge,Me)=>{Z&&n.request({url:Z,method:"get",params:{}}).then(Ne=>{ge==null||ge(Ne,Me.model)})},O=(Z={},ge={})=>{var Ge;const Me=Z.formList;let Ne=Me;return a.tableFields&&(Ne=Me.filter(Je=>{const gt=!Je.privacyId||!!a.tableFields[Je.privacyId];return(Z==null?void 0:Z.privacyKey)==="disabled"?(Je.formAttrs={...Je.formAttrs,disabled:!gt},!0):gt})),(Ge=Z==null?void 0:Z.beforeCreate)!=null&&Ge.formatFormList&&Ke.isFunction(Z.beforeCreate.formatFormList)&&(Ne=Z.beforeCreate.formatFormList(Ne,ge)),Ne},X=async(Z,ge,Me={},Ne)=>{const Ge={id:Z.id,...Me};n.request({url:A[ge].form.api.detail,method:"get",params:Ge}).then(Je=>{var gt,et,qt,nn;Ne?B.model=Ne(Je):B.model=Je,(gt=A[ge].form.api)!=null&&gt.detailCallback&&Ke.isFunction((et=A[ge].form.api)==null?void 0:et.detailCallback)&&((nn=(qt=A[ge].form.api)==null?void 0:qt.detailCallback)==null||nn.call(qt,Je)),B.title=jk(!0,A,ge,Pe),t("get-detail-success",Je)})},z={filterFormList:O,handleGetDetail:X,handleBeforeCreateReq:ua,t:Pe},R=(Z,ge)=>{af(Z,ge,A,B,z),l.nextTick(()=>{A.editBoxOnDialog?B.visible=!0:Y()})},q=(Z,ge)=>{af(Z,ge,A,E,z),E.visible=!0},K=(Z="",ge,Me,Ne)=>{n.request({url:Z||A.tableDeleteApi,method:"post",data:ge}).then(()=>{t("delete-success",Ne),j(),Me!=null&&Me.refreshDraw&&xt()})},te={deleteText:((dt=A==null?void 0:A.headerActions)==null?void 0:dt.deleteText)||"",tableCopyText:A.tableCopyText,handleEdit:R,handleLinkRouter:hk,t:Pe,emit:t,handleDeleteRequest:K,handleExportRequest:de,handleExportTempRequest:Oe,handlePrintRequest:pe,handleImportRequest:ve,handleSimpleRequest:oe,handleCopyRequest:fe},ye=(Z,ge={},Me=null)=>{var Je,gt,et;const{code:Ne}=Z,Ge=Me||((Je=A.headerActions)==null?void 0:Je[Ne])||((et=(gt=C==null?void 0:C.descriptions)==null?void 0:gt.headerActions)==null?void 0:et[Ne]);hc(Z,ge,Ge,d.value,"tableHeader",te),t("header-action",Z,d.value,N.value,Ge)},Fe=(Z,ge,Me)=>{const{action:Ne}=Z,Ge=Me.action[Ne.code];hc(Ne,ge,Ge,d.value,"",{...te,deleteText:A.tableDeleteText}),t("table-action",Ne,ge,Ge,Z)},se=l.watchEffect(()=>{}),xe=l.watch(e,Z=>{A=Ke.merge({},_,Z.config),Z.config.tableData&&(o.value=Z.config.tableData||[])}),Le=()=>{j(),t("refresh-table")},Te=(Z,ge,Me)=>{t("form-item-change",Z,ge,Me)},ne=async()=>{var Me;const Z=await((Me=h==null?void 0:h.value)==null?void 0:Me.createSubmitData());for(const Ne in Z)Z[Ne]===""&&delete Z[Ne];const ge=Ce(!1);return ge&&(Object.assign(Z,ge),h.value.handleSetModelValue(Z)),Z},Ce=(Z=!1)=>{var ge;if(e.cacheSearch){const Me=r||Q.value;return((ge=n==null?void 0:n.handleCacheSearch)==null?void 0:ge.call(n,Me,Z,Z?c.value:null))||null}return null},Re=l.watch(()=>Q.value,(Z,ge)=>{Z!==r&&(r=ge)});l.onMounted(async()=>{var ge;const Z=await ne();c.value=Z,Xe(),$n(),(ge=A.tableAttr)!=null&&ge.immediate&&ae()});function ze(){A=null,o.value=null,s.value=null,c.value=null,a.tableFields=null,d.value=null,a.renderTable=!1}return l.onBeforeUnmount(()=>{Ce(!0),se(),xe(),ze(),Re()}),{tableRef:v,tableListContentRef:y,tableData:o,appTableColumn:s,slots:f,...l.toRefs(a),currentPagePath:Q,appConfig:A,pagination:x,editBoxRef:p,editBoxRefModel:g,editBoxInfo:B,addBoxInfo:E,addBoxRef:m,addBoxRefModel:k,tableDrawerConfig:C,selectionRow:d,selectionRowIds:b,tableSearchModel:c,loadingText:ie,searchFormRef:h,showPagination:w,showHeaderActions:T,showHeaderSearch:S,defaultSort:I,onSearchSubmit:$,onSearchReset:W,handleEdit:R,handleCurrentChange:re,handleSizeChange:be,handleSelectionChange:Se,handleTableCurrentChange:P,handleSortChange:Ee,handleHeaderAction:ye,handleTableAction:Fe,handleGetDetail:X,getList:j,initSearch:ae,handleError:ke,handleAddSuccess:me,handleEditSuccess:J,handleEditRow:_e,handleEditRowProp:Ue,handleImportRequest:ve,handleClickRow:je,handleShowFile:ce,handleCloseDrawer:Be,handleUploadBtn:Ve,handleUploadSuccess:rt,handleRefreshDrawerDetail:xt,handleComponentEvent:ct,handleAddOption:vt,setFormModelVal:_t,handleSetFormModelVal:Rt,handleSetSearchModelVal:hi,handleDialogClose:zt,handleTableSizeChange:Ot,handleTableHeaderDragend:bn,handleFieldCheck:In,handleTableColumnSort:Rn,handleSearchFormReset:Wn,getSubmitData:Mr,handleFixedCell:mn,handleDoLayoutTable:Ai,handleItemChange:Te,handleDbCellClick:st,handleTableDataSort:It,handleAfterBtnsClick:He,handleSelectionHeaderChange:ee,handleSelectionColumnChange:we}}}),i9e={key:0,class:"app-table-wrapper"},r9e={key:0,class:"table-header-wrapper fx"},o9e={class:"fxm pr10 ex"},a9e={class:"fxmj"},s9e={class:"ex"};function l9e(e,t,n,i,r,o){var b,g,k,w,T,S,_,A,D;const s=l.resolveComponent("jwt-form"),a=l.resolveComponent("jwt-header-button"),u=l.resolveComponent("TableSizeSetting"),f=l.resolveComponent("TableFieldControl"),d=l.resolveComponent("TableContentControl"),c=l.resolveComponent("TableListContentVirtualized"),h=l.resolveComponent("TableListContent"),p=l.resolveComponent("el-pagination"),m=l.resolveComponent("JwtDialogForm"),y=l.resolveComponent("jwt-detail-drawer"),v=l.resolveComponent("el-drawer");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.renderTable?(l.openBlock(),l.createElementBlock("div",i9e,[l.createElementVNode("div",{class:l.normalizeClass([(b=e.appConfig)!=null&&b.searchBtnInline?"fxmj":""])},[l.renderSlot(e.$slots,"search-before",{},void 0,!0),e.showHeaderSearch?(l.openBlock(),l.createElementBlock("div",r9e,[t[0]||(l.setBlockTracking(-1,!0),(t[0]=(w=(k=(g=e.config)==null?void 0:g.tableSearch)==null?void 0:k.formList)!=null&&w.length?(l.openBlock(),l.createBlock(s,{key:0,ref:"searchFormRef",modelValue:e.tableSearchModel,"onUpdate:modelValue":x=>e.tableSearchModel=x,class:"app-table-search",config:(T=e.config)==null?void 0:T.tableSearch,"is-search":"",onReset:e.onSearchReset,onSubmit:e.onSearchSubmit},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({model:B})=>[l.renderSlot(e.$slots,x,{model:B},void 0,!0)])}))]),1032,["modelValue","onUpdate:modelValue","config","onReset","onSubmit"])):l.createCommentVNode("",!0)).cacheIndex=0,l.setBlockTracking(1),t[0]),l.renderSlot(e.$slots,"search-form-after",{},void 0,!0)])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"search-after",{},void 0,!0),l.createElementVNode("div",{class:l.normalizeClass(["fxmj",[(S=e.appConfig)!=null&&S.searchBtnInline?"mb18":""]])},[l.createElementVNode("div",o9e,[l.renderSlot(e.$slots,"header-button-before",{},void 0,!0),e.showHeaderActions?(l.openBlock(),l.createBlock(a,{key:0,config:((_=e.config)==null?void 0:_.headerActions)||{},"current-path":e.currentPagePath,"file-import":e.appConfig.tableFileImport,loading:e.ajaxLoading,"menus-obj":e.userMenusAuth,"total-count":e.pagination.totalCount,"selection-row":e.selectionRow,"upload-success-cb":e.appConfig.uploadSuccessCb,onHeaderAction:e.handleHeaderAction,onUploadSuccess:e.handleUploadSuccess},null,8,["config","current-path","file-import","loading","menus-obj","total-count","selection-row","upload-success-cb","onHeaderAction","onUploadSuccess"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"header-button-after",{},void 0,!0)]),l.createElementVNode("div",null,[e.appConfig.showTableLineHeight?(l.openBlock(),l.createBlock(u,{key:0,onTableSize:e.handleTableSizeChange},null,8,["onTableSize"])):l.createCommentVNode("",!0),e.tableFields?(l.openBlock(),l.createBlock(f,{key:1,modelValue:e.appTableColumn,"onUpdate:modelValue":t[1]||(t[1]=x=>e.appTableColumn=x),onChange:e.handleFieldCheck,onSort:e.handleTableColumnSort},null,8,["modelValue","onChange","onSort"])):l.createCommentVNode("",!0),(A=e.appConfig)!=null&&A.showTableDrag&&((D=e.tableData)!=null&&D.length)?(l.openBlock(),l.createBlock(d,{key:2,modelValue:e.tableData,"onUpdate:modelValue":t[2]||(t[2]=x=>e.tableData=x),"drag-title-key":e.appConfig.dragTitleKey,onSort:e.handleTableDataSort},null,8,["modelValue","drag-title-key","onSort"])):l.createCommentVNode("",!0)])],2)],2),l.renderSlot(e.$slots,"table-before",{},void 0,!0),l.renderSlot(e.$slots,"table-content",{list:e.tableData},()=>[e.appConfig.virtualized?(l.openBlock(),l.createBlock(c,{key:0,"ajax-loading":e.ajaxLoading,"app-table-column":e.appTableColumn,"current-page-path":e.currentPagePath,"default-sort":e.defaultSort,"estimated-row-height":e.appConfig.estimatedRowHeight,"loading-text":e.loadingText,pagination:e.pagination,"table-attr":e.appConfig.tableAttr,"table-button-num":e.appConfig.tableButtonNum,"table-data":e.tableData,"table-events":e.appConfig.tableEvents,"table-height":e.tableHeight,"table-size":e.tableSize,"user-menus-auth":e.userMenusAuth,onChangeTableColumn:e.handleFixedCell,onClickCell:e.handleClickRow,onDbclickCell:e.handleDbCellClick,onEditRow:e.handleEditRowProp,onSelectionColumnChange:e.handleSelectionColumnChange,onSelectionHeaderChange:e.handleSelectionHeaderChange,onSortChange:e.handleSortChange,onTableAction:e.handleTableAction,onShowFile:e.handleShowFile},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({scope:B,data:E,list:F,index:C,rowindex:I,pagestart:N})=>[l.renderSlot(e.$slots,x,{data:E,index:C,list:F,rowindex:I,pagestart:N,scope:B},void 0,!0)])}))]),1032,["ajax-loading","app-table-column","current-page-path","default-sort","estimated-row-height","loading-text","pagination","table-attr","table-button-num","table-data","table-events","table-height","table-size","user-menus-auth","onChangeTableColumn","onClickCell","onDbclickCell","onEditRow","onSelectionColumnChange","onSelectionHeaderChange","onSortChange","onTableAction","onShowFile"])):(l.openBlock(),l.createBlock(h,{key:1,ref:"tableListContentRef","ajax-loading":e.ajaxLoading,"app-table-column":e.appTableColumn,"current-page-path":e.currentPagePath,"default-sort":e.defaultSort,"loading-text":e.loadingText,"table-attr":e.appConfig.tableAttr,"table-button-num":e.appConfig.tableButtonNum,"table-data":e.tableData,"table-events":e.appConfig.tableEvents,"table-height":e.tableHeight,"table-size":e.tableSize,"user-menus-auth":e.userMenusAuth,pagination:e.pagination,onChangeTableColumn:e.handleFixedCell,onClickCell:e.handleClickRow,onDbclickCell:e.handleDbCellClick,onEditRow:e.handleEditRowProp,onHeaderDragend:e.handleTableHeaderDragend,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange,onTableAction:e.handleTableAction,onTableCurrentChange:e.handleTableCurrentChange,onShowFile:e.handleShowFile},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({scope:B,data:E,list:F,index:C,rowindex:I,pagestart:N})=>[l.renderSlot(e.$slots,x,{data:E,index:C,list:F,rowindex:I,pagestart:N,scope:B},void 0,!0)])}))]),1032,["ajax-loading","app-table-column","current-page-path","default-sort","loading-text","table-attr","table-button-num","table-data","table-events","table-height","table-size","user-menus-auth","pagination","onChangeTableColumn","onClickCell","onDbclickCell","onEditRow","onHeaderDragend","onSelectionChange","onSortChange","onTableAction","onTableCurrentChange","onShowFile"]))],!0),l.renderSlot(e.$slots,"table-after",{},void 0,!0),l.createElementVNode("div",a9e,[l.createElementVNode("div",s9e,[l.renderSlot(e.$slots,"table-pagination-before",{data:e.tableStatistics},void 0,!0)]),e.showPagination?(l.openBlock(),l.createBlock(p,l.mergeProps({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):l.createCommentVNode("",!0)]),l.renderSlot(e.$slots,"table-pagination-after",{},void 0,!0)])):l.createCommentVNode("",!0),e.editBoxInfo.visible?(l.openBlock(),l.createBlock(m,{key:1,ref:"editBoxRef","app-config":e.editBoxInfo.config,config:e.editBoxInfo,"selection-row":e.selectionRow,"selection-row-ids":e.selectionRowIds,onAddOption:e.handleAddOption,onAddSuccess:e.handleAddSuccess,onDialogClose:e.handleDialogClose,onEditSuccess:e.handleEditSuccess,onError:e.handleError,onItemChange:e.handleItemChange,onUploadBtn:e.handleUploadBtn,onAfterBtnsClick:e.handleAfterBtnsClick},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({model:B})=>[l.renderSlot(e.$slots,x,{model:B},void 0,!0)])}))]),1032,["app-config","config","selection-row","selection-row-ids","onAddOption","onAddSuccess","onDialogClose","onEditSuccess","onError","onItemChange","onUploadBtn","onAfterBtnsClick"])):l.createCommentVNode("",!0),e.addBoxInfo.visible?(l.openBlock(),l.createBlock(m,{key:2,ref:"addBoxRef","app-config":e.addBoxInfo.config,config:e.addBoxInfo,onAddOption:e.handleAddOption,onAddSuccess:e.handleAddSuccess,onDialogClose:e.handleDialogClose,onEditSuccess:e.handleEditSuccess,onError:e.handleError,onUploadBtn:e.handleUploadBtn},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({model:B})=>[l.renderSlot(e.$slots,x,{model:B},void 0,!0)])}))]),1032,["app-config","config","onAddOption","onAddSuccess","onDialogClose","onEditSuccess","onError","onUploadBtn"])):l.createCommentVNode("",!0),e.tableDrawerConfig.visible?(l.openBlock(),l.createBlock(v,l.mergeProps({key:3,modelValue:e.tableDrawerConfig.visible,"onUpdate:modelValue":t[3]||(t[3]=x=>e.tableDrawerConfig.visible=x)},e.tableDrawerConfig.attrs,{class:"jwt-drawer-wrapper","with-header":!1,onClose:e.handleCloseDrawer}),{default:l.withCtx(()=>[l.createVNode(y,{ref:"pageDetailRef",config:e.tableDrawerConfig.config,"current-page-drawer-config":e.tableDrawerConfig.contentConfig,"current-page-path":e.currentPagePath,"keep-alive":!1,"open-page-drawer-config-list":[],"user-menus-auth":e.userMenusAuth,onCloseDrawer:e.handleCloseDrawer,onRefreshTable:e.handleRefreshTable},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({scope:B,model:E,row:F})=>[l.renderSlot(e.$slots,x,{model:E,row:F,scope:B},void 0,!0)])}))]),1032,["config","current-page-drawer-config","current-page-path","user-menus-auth","onCloseDrawer","onRefreshTable"])]),_:3},16,["modelValue","onClose"])):l.createCommentVNode("",!0)],64)}const u9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(n9e,[["render",l9e],["__scopeId","data-v-7924fa11"]])},Symbol.toStringTag,{value:"Module"})),f9e={"page-sizes":[10,20,30,40,50,100],"page-size":10,layout:"total, sizes, prev, pager, next, jumper"},d9e=l.defineComponent({name:"JwtTableOnly",components:{},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},userMenusAuth:{type:Object,default:()=>{}}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success"],setup(e,{emit:t}){const n=Nn(),i=l.reactive({tableData:[],ajaxLoading:!1,submitLoading:!1});let r=l.reactive(Ke.merge({tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0},tableColumn:[],tableListApi:null,tableListParams:{},tableDeleteApi:null,tableDeleteParams:{},pagination:f9e,showPagination:!0},e.config));const o=l.reactive({currentPage:1,pageCount:1,pageSize:r.pagination["page-sizes"][0],totalCount:1,sort:"id",order:"desc"}),s=l.ref([]),a=l.ref({}),u=l.ref(null),f=l.computed(()=>e.userMenusAuth||{}),d=()=>{c()},c=()=>{const A=Ke.merge({page:o.currentPage,per_page:o.pageSize,sort:o.sort,order:o.order},r.tableListParams,a.value);h(A)},h=A=>{if(!r.tableListApi){r.tableData&&(i.tableData=r.tableData);return}i.ajaxLoading=!0,n.request({url:r.tableListApi,method:"get",params:A}).then(D=>{i.tableData=D.data,o.pageCount=D.totalPage,o.totalCount=D.total,i.ajaxLoading=!1,t("tablelist-change")})},p=()=>{o.currentPage=1,o.pageSize=r.pagination["page-sizes"][0],c()},m=()=>{o.currentPage=1,o.pageSize=r.pagination["page-sizes"][0],c(a.value)},y=A=>{o.currentPage=A,c()},v=A=>{o.pageSize=A,c()},b=(A,D="")=>A===null||A===""||A===void 0?"-":D?fa(A).format(D):A,g=A=>{s.value=A,t("selection-change",A)},k=({prop:A,order:D})=>{o.sort=A,o.order=D==="ascending"?"asc":"desc",c()},w=A=>{t("table-current-change",A)},T=(A,D,x=!0)=>{A[`isEdit${D.prop}`]=x},S=(A,D)=>{const{id:x}=A,{prop:B}=D;if(x){var E={id:x};if(E[B]=A[B],!r.tableUpdateApi)return lt.ElMessage.info("请配置编辑接口!tableUpdateApi");n.request({url:r.tableUpdateApi,method:"post",data:E}).then(()=>{A[`isEdit${B}`]=!1})}},_=A=>n.fillUrl&&on.isFunction(n.fillUrl)?n.fillUrl(A):A;return l.watch(e,A=>{r=Ke.merge(r,A.config),A.config.tableData&&(i.tableData=A.config.tableData||[])}),l.onBeforeMount(()=>{d()}),{...l.toRefs(i),appConfig:r,pagination:o,selectionRow:s,tableSearchModel:a,editBoxRef:u,dayjs:fa,userMenusAuthObj:f,onSearchSubmit:m,onSearchReset:p,handleCurrentChange:y,handleSizeChange:v,handleSelectionChange:g,handleTableCurrentChange:w,handleSortChange:k,filterVal:b,initSearch:d,handleEditRow:T,handleEditRowProp:S,handleFillUrl:_}}}),c9e={class:"app-table-wrapper"},h9e=["onDblclick"],p9e={class:"image-slot wh fxmc"},g9e={class:"fxr"};function m9e(e,t,n,i,r,o){const s=l.resolveComponent("el-input"),a=l.resolveComponent("el-input-number"),u=l.resolveComponent("jwt-upload-image"),f=l.resolveComponent("el-switch"),d=l.resolveComponent("jwt-icon"),c=l.resolveComponent("el-image"),h=l.resolveComponent("el-table-column"),p=l.resolveComponent("el-table"),m=l.resolveComponent("el-pagination"),y=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock("div",c9e,[l.renderSlot(e.$slots,"table-before",{},void 0,!0),l.withDirectives((l.openBlock(),l.createBlock(p,l.mergeProps(e.appConfig.tableAttr,{ref:"tableRef",class:"mt15",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":"加载数据中...",height:e.tableHeight,onCurrentChange:e.handleTableCurrentChange,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange}),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.appConfig.tableColumn,(v,b)=>(l.openBlock(),l.createBlock(h,{key:b,align:v.align||"center",fixed:v.fixed,label:v.label,"min-width":v.minWidth?v.minWidth:null,prop:v.prop,sortable:v.sortable,type:v.type,width:v.width?v.width:null},l.createSlots({_:2},[v.type?void 0:{name:"default",fn:l.withCtx(({row:g,$index:k})=>[v.dateTimeFormat?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createTextVNode(l.toDisplayString(e.filterVal(g[v.prop],v.dateTimeFormat)),1)],64)):v.editType?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[v.editType==="input"?(l.openBlock(),l.createBlock(s,{key:0,modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,type:"text",onKeydown:l.withKeys(w=>e.handleEditRowProp(g,v),["enter"])},null,8,["modelValue","onUpdate:modelValue","onKeydown"])):v.editType==="inputNumber"?(l.openBlock(),l.createBlock(a,{key:1,modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,"controls-position":"right",min:0,onBlur:w=>e.handleEditRowProp(g,v)},null,8,["modelValue","onUpdate:modelValue","onBlur"])):v.editType==="uploadImg"?(l.openBlock(),l.createBlock(u,{key:2,modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,onOnChange:w=>e.handleEditRowProp(g,v)},null,8,["modelValue","onUpdate:modelValue","onOnChange"])):v.editType==="switch"?(l.openBlock(),l.createBlock(f,{key:3,modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,"active-value":1,"inactive-value":0,onChange:w=>e.handleEditRowProp(g,v)},null,8,["modelValue","onUpdate:modelValue","onChange"])):l.createCommentVNode("",!0)],64)):v.editInput?(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[l.withDirectives(l.createElementVNode("div",{onDblclick:w=>e.handleEditRow(g,v)},l.toDisplayString(e.filterVal(g[v.prop])),41,h9e),[[l.vShow,!g[`isEdit${v.prop}`]]]),l.withDirectives(l.createVNode(s,{modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,type:"text",onBlur:w=>e.handleEditRowProp(g,v),onKeyup:l.withKeys(w=>e.handleEditRowProp(g,v),["enter"])},null,8,["modelValue","onUpdate:modelValue","onBlur","onKeyup"]),[[l.vShow,g[`isEdit${v.prop}`]]])],64)):v.isImg?(l.openBlock(),l.createBlock(c,{key:3,"preview-src-list":[e.handleFillUrl(g[v.prop])],"preview-teleported":"",size:80,src:e.handleFillUrl(g[v.prop]),teleported:""},{error:l.withCtx(()=>[l.createElementVNode("div",p9e,[l.createVNode(d,{class:"g9",icon:"image-line",style:{"font-size":"40px"}})])]),_:2},1032,["preview-src-list","src"])):l.renderSlot(e.$slots,v.prop,{key:4,index:k,scope:g},()=>[l.createTextVNode(l.toDisplayString(e.filterVal(g[v.prop])),1)],!0)]),key:"0"}]),1032,["align","fixed","label","min-width","prop","sortable","type","width"]))),128))]),_:3},16,["data","height","onCurrentChange","onSelectionChange","onSortChange"])),[[y,e.ajaxLoading]]),l.createElementVNode("div",g9e,[e.appConfig.showPagination?(l.openBlock(),l.createBlock(m,l.mergeProps({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):l.createCommentVNode("",!0)])])}const v9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(d9e,[["render",m9e],["__scopeId","data-v-3311d9e5"]])},Symbol.toStringTag,{value:"Module"})),y9e=l.defineComponent({name:"JwtTabs"}),b9e=l.defineComponent({...y9e,props:{config:{type:Object,require:!0,default:()=>{}},currentPath:{type:String,default:"/"},menusObj:{type:Object,default:()=>{}},info:{type:Object,require:!0,default:()=>{}},keepAlive:{type:Boolean,default:!0}},emits:["tab-click","event-name"],setup(e,{expose:t,emit:n}){var b,g;const i=e,r=n,o=l.ref(null),s=l.ref(!1),a=l.computed(()=>{var w,T;return((T=(w=i.menusObj)==null?void 0:w[i==null?void 0:i.currentPath])==null?void 0:T.id)||""}),u=l.computed(()=>{var k,w;return((w=(k=i.config)==null?void 0:k.tabPaneList)==null?void 0:w.filter(T=>T.condition&&Ke.isFunction(T.condition)?T.condition(i.info):!0))||[]}),f=l.computed(()=>{var T;const k=((i==null?void 0:i.menusObj)||{})[i==null?void 0:i.currentPath];let w=u.value;if(k&&((T=k==null?void 0:k.operations)!=null&&T.length)){const S={};if(k.operations.forEach(_=>{_.show_tab&&(S[_.code]=_)}),Object.keys(S).length)return w.filter(_=>{var A,D,x;if(S[_.name]){_.refMenuId=((A=S[_.name])==null?void 0:A.ref_menu_id)||"",_.rank=((D=S[_.name])==null?void 0:D.rank)||"";let B=((x=S[_.name])==null?void 0:x.show_title)||_.label||"";return _.numKey&&(B=`${Pe(B)} (${i.info[_.numKey]||0})`),_.label=B,!0}}).sort((_,A)=>_.rank-A.rank)}return w}),d=l.computed(()=>{if(!i.keepAlive||s.value)return[""];const k=[];return f.value.map(w=>{w.unKeepAlive||k.push(w.name)}),k}),c=l.ref(((b=i.config)==null?void 0:b.activeName)||((g=f.value[0])==null?void 0:g.name)),h=l.computed(()=>f.value.find(w=>w.name===c.value)),p=l.computed(()=>{var w,T;const k=((w=h.value)==null?void 0:w.params)||{};return{refMenuId:((T=h.value)==null?void 0:T.refMenuId)||a.value||"",...k}}),m=(k,w)=>{l.nextTick(()=>{r("tab-click",k,w,h.value)})},y=(...k)=>{r("event-name",...k)},v=k=>{f.value.find(T=>T.name===k)&&(c.value=k)};return l.onBeforeUnmount(()=>{s.value=!0}),t({componentRef:o,handleChangeTab:v}),(k,w)=>{var _;const T=l.resolveComponent("el-tab-pane"),S=l.resolveComponent("el-tabs");return l.openBlock(),l.createBlock(S,l.mergeProps({modelValue:c.value,"onUpdate:modelValue":w[0]||(w[0]=A=>c.value=A)},(_=e.config)==null?void 0:_.tabsAttrs,{onTabClick:m}),{default:l.withCtx(()=>{var A,D;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.value,(x,B)=>(l.openBlock(),l.createBlock(T,l.mergeProps({key:B,ref_for:!0},x,{label:x.label}),null,16,["label"]))),128)),(l.openBlock(),l.createBlock(l.KeepAlive,{include:d.value},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(h.value.component),l.mergeProps({key:h.value.name,ref_key:"componentRef",ref:o,info:e.info,params:p.value,"ref-menu-id":((A=h.value)==null?void 0:A.refMenuId)||a.value||""},((D=h.value)==null?void 0:D.attrs)||{},{onEventName:y}),null,16,["info","params","ref-menu-id"]))],1032,["include"]))]}),_:1},16,["modelValue"])}}}),k9e=Object.freeze(Object.defineProperty({__proto__:null,default:b9e},Symbol.toStringTag,{value:"Module"})),w9e=l.defineComponent({name:"JwtTags",props:{modelValue:{type:[String,Array],default:""},btnTitle:{type:String,default:"添加"},disabled:{type:Boolean,default:!1},labelKey:{type:String,default:"title"},valueKey:{type:String,default:"id"},isArray:{type:Boolean,default:!1},isInput:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=l.ref(null),i=l.reactive({tagList:[],inputVisible:!1,inputValue:"",initOnce:!1}),r=()=>{var c;if(i.initOnce)return;let d=[];return e.modelValue&&on.isString(e.modelValue)?d=(c=e==null?void 0:e.modelValue)==null?void 0:c.split(","):e.modelValue&&on.isArray(e.modelValue)&&(d=e.modelValue.map(h=>({...h,title:h[e.labelKey],id:h[e.valueKey]}))),i.initOnce=!0,d},o=l.watch(()=>e.modelValue,d=>{i.initOnce||d!=null&&d.isTrusted||(d?i.tagList=r():i.tagList=[])},{immediate:!0}),s=()=>{i.inputVisible=!0,l.nextTick(()=>{var d,c;(c=(d=n.value)==null?void 0:d.input)==null||c.focus()})},a=d=>{i.tagList.splice(i.tagList.indexOf(d),1),u()},u=()=>{const d=e.isArray?i.tagList:i.tagList.join(",");t("update:modelValue",d)},f=()=>{i.inputValue&&(e.isArray?i.tagList.push({[e.labelKey]:i.inputValue,[e.valueKey]:""}):i.tagList.push(i.inputValue)),i.inputVisible=!1,i.inputValue="",u()};return l.onUpdated(()=>{}),l.onBeforeMount(()=>{i.initOnce=!1}),l.onBeforeUnmount(()=>{o()}),{...l.toRefs(i),inputRef:n,showInput:s,handleClose:a,handleEmitResult:u,handleInputConfirm:f}}}),_9e={class:"fx fxwp w"};function C9e(e,t,n,i,r,o){const s=l.resolveComponent("el-input"),a=l.resolveComponent("jwt-icon"),u=l.resolveComponent("el-tag"),f=l.resolveComponent("el-button");return l.openBlock(),l.createElementBlock("div",_9e,[e.isInput?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(e.tagList,(d,c)=>(l.openBlock(),l.createElementBlock("div",{key:d,class:"rel tags-input-wrapper mb10 mr10"},[l.createVNode(s,{modelValue:d[e.labelKey],"onUpdate:modelValue":h=>d[e.labelKey]=h,class:"w220",clearable:"",placeholder:"请输入",onBlur:e.handleEmitResult},null,8,["modelValue","onUpdate:modelValue","onBlur"]),l.createVNode(a,{class:"cd cp tags-input-close",icon:"close-circle-fill abs_rt",size:"18",style:{right:"-10px",top:"-15px"},onClick:h=>e.handleClose(d,c)},null,8,["onClick"])]))),128)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(e.tagList,d=>(l.openBlock(),l.createBlock(u,{key:d,class:"mb4",closable:"","disable-transitions":!1,disabled:e.disabled,onClose:c=>e.handleClose(d,e.index)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.isArray?d[e.labelKey]:d),1)]),_:2},1032,["disabled","onClose"]))),128)),e.inputVisible?(l.openBlock(),l.createBlock(s,{key:2,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=d=>e.inputValue=d),class:l.normalizeClass([e.isInput?"w220 mr10 mb10":"w120"]),placeholder:"请输入",onBlur:e.handleInputConfirm,onKeyup:l.withKeys(e.handleInputConfirm,["enter"])},null,8,["modelValue","class","onBlur","onKeyup"])):(l.openBlock(),l.createBlock(f,{key:3,class:"button-new-tag",disabled:e.disabled,size:e.isInput?"":"small",onClick:e.showInput},{default:l.withCtx(()=>[l.createTextVNode(" + "+l.toDisplayString(e.btnTitle),1)]),_:1},8,["disabled","size","onClick"]))])}const S9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(w9e,[["render",C9e],["__scopeId","data-v-44fc3183"]])},Symbol.toStringTag,{value:"Module"})),x9e=["id"],JE={__name:"TreeNodeTitle",props:{node:{type:Object,default:()=>{}},nodeKey:{type:String,default:"id"},children:{type:String,default:"children"},checkedKeys:{type:Array,default:()=>[]},expandAll:{type:Boolean,default:!0},level:{type:Number,default:0},menuTitleKey:{type:String,default:"title"},optTitleKey:{type:String,default:"title"},isOpt:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["check","show"],setup(e,{emit:t}){const n=e,i=t,r=l.inject("menusIdObj"),o=l.ref(n.expandAll),s=l.computed(()=>n.node[n.nodeKey]),a=l.computed(()=>n.isOpt?"":`menu-id-${n.node[n.nodeKey]}`),u=l.computed(()=>{var v;if(n.isOpt)return((v=n==null?void 0:n.node)==null?void 0:v.remark)||"";if(n.node.rid){const b=r==null?void 0:r[n.node.rid];return b!=null&&b[n.optTitleKey]?`权限关联:${b[n.optTitleKey]}`:""}return""}),f=l.computed(()=>{var v;return((v=n.node[n.children])==null?void 0:v.length)>0}),d=(v=n.node)=>{const b=[],g=k=>{var w;(w=k[n.children])!=null&&w.length&&k[n.children].forEach(T=>{b.push(T[n.nodeKey]),g(T)})};return g(v),b},c=l.computed(()=>d()),h=l.computed({get(){return f.value?c.value.length>0&&c.value.every(v=>n.checkedKeys.includes(v)):n.checkedKeys.includes(s.value)},set(v){m(v)}}),p=l.computed(()=>{if(!f.value)return!1;const v=c.value.filter(b=>n.checkedKeys.includes(b)).length;return v>0&&v<c.value.length}),m=v=>{i("check",{key:s.value,checked:v,level:n.level})};function y(){o.value=!o.value,l.nextTick(()=>{i("show",o.value,n.node)})}return l.onUnmounted(()=>{}),(v,b)=>{var T,S,_,A;const g=l.resolveComponent("jwt-icon"),k=l.resolveComponent("el-popover"),w=l.resolveComponent("el-checkbox");return l.openBlock(),l.createElementBlock("div",{id:a.value||"",class:l.normalizeClass(["fxm jwt-menu-opt-item-title",[e.isOpt?"mr20":""]])},[e.isOpt?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(g,{key:0,class:l.normalizeClass(["cp fs20 mr5 g9 linear",[(S=(T=e.node)==null?void 0:T.children)!=null&&S.length||(A=(_=e.node)==null?void 0:_.operations)!=null&&A.length?"":"gtp",o.value?"":"up-90"]]),icon:"arrow-down-s-fill",onClick:y},null,8,["class"])),l.createVNode(w,{modelValue:h.value,"onUpdate:modelValue":b[0]||(b[0]=D=>h.value=D),indeterminate:p.value,disabled:e.disabled},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.node[e.menuTitleKey])+" ",1),l.createVNode(k,{content:u.value,persistent:!1,placement:"bottom",title:"权限说明",width:"240"},{reference:l.withCtx(()=>[u.value?(l.openBlock(),l.createBlock(g,{key:0,icon:"information-fill"})):l.createCommentVNode("",!0)]),_:1},8,["content"])]),_:1},8,["modelValue","indeterminate","disabled"]),e.isOpt?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:1,class:"ex h30",onClick:y}))],10,x9e)}}},E9e=Object.freeze(Object.defineProperty({__proto__:null,default:JE},Symbol.toStringTag,{value:"Module"})),B9e={class:"jwt-menu-opt-item"},D9e={class:"fx fxwp"},CG={__name:"TreeNode",props:{node:{type:Object,required:!0},nodeKey:{type:String,default:"id"},children:{type:String,default:"children"},checkedKeys:{type:Array,default:()=>[]},expandAll:{type:Boolean,default:!0},level:{type:Number,default:0},menuTitleKey:{type:String,default:"title"},optTitleKey:{type:String,default:"title"},disabled:{type:Boolean,default:!1}},emits:["check","toggle"],setup(e,{emit:t}){const n=e,i=t,r=l.ref(!0),o=l.computed(()=>n.node[n.children]||[]),s=l.computed(()=>{var c;return((c=o.value)==null?void 0:c.length)>0}),a=l.computed(()=>{const c=[],h=[],p=[],m=[];return o.value.forEach(y=>{y.show_tab?c.push(y):y.show_header?p.push(y):y.show_table?h.push(y):m.push(y)}),[{title:"表头权限",list:p},{title:"表格权限",list:h},{title:"tab权限",list:c},{title:"其他权限",list:m}]});function u(c,h){r.value=c,i("toggle",h)}function f(c){i("toggle",c)}const d=c=>{i("check",c)};return(c,h)=>{const p=l.resolveComponent("TreeNode",!0),m=l.resolveComponent("el-divider");return l.openBlock(),l.createElementBlock("div",B9e,[l.createVNode(JE,{"checked-keys":e.checkedKeys,children:e.children,"expand-all":e.expandAll,level:e.level+1,"menu-title-key":e.menuTitleKey,node:e.node,"node-key":e.nodeKey,"opt-title-key":e.optTitleKey,disabled:e.disabled,onCheck:d,onShow:u},null,8,["checked-keys","children","expand-all","level","menu-title-key","node","node-key","opt-title-key","disabled"]),s.value?l.withDirectives((l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass([e.node.isOptChild?"fs16 lhm jwt-menu-opt-item-opt-wrapper":"pl25"])},[e.node.isOptChild?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(a.value,(y,v)=>(l.openBlock(),l.createElementBlock("div",{key:v,class:"plr25"},[y.list.length?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(m,{"border-style":"dashed",class:"jwt-menu-opt-item-opt-divider","content-position":"center"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(y.title),1)]),_:2},1024),l.createElementVNode("div",D9e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(y.list,b=>(l.openBlock(),l.createBlock(JE,{key:b.id,"checked-keys":e.checkedKeys,children:e.children,"expand-all":e.expandAll,"is-opt":"",disabled:e.disabled,level:e.level+1,"menu-title-key":e.menuTitleKey,node:b,"node-key":e.nodeKey,"opt-title-key":e.optTitleKey,onCheck:d},null,8,["checked-keys","children","expand-all","disabled","level","menu-title-key","node","node-key","opt-title-key"]))),128))])],64)):l.createCommentVNode("",!0)]))),128)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(e.node.children,(y,v)=>(l.openBlock(),l.createElementBlock("div",{key:v},[l.createVNode(p,{"checked-keys":e.checkedKeys,children:e.children,"expand-all":e.expandAll,level:e.level+1,"menu-title-key":e.menuTitleKey,node:y,"node-key":e.nodeKey,disabled:e.disabled,"opt-title-key":e.optTitleKey,onCheck:d,onToggle:f},null,8,["checked-keys","children","expand-all","level","menu-title-key","node","node-key","disabled","opt-title-key"])]))),128))],2)),[[l.vShow,r.value]]):l.createCommentVNode("",!0)])}}},A9e=Object.freeze(Object.defineProperty({__proto__:null,default:CG},Symbol.toStringTag,{value:"Module"})),T9e={class:"rel"},O9e={key:0,class:"menu-opt-nav-wrapper"},F9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(Object.assign({name:"JwtTree"},{props:{treeData:{type:Array,default:()=>[]},nodeKey:{type:String,default:"id"},menuTitleKey:{type:String,default:"title"},children:{type:String,default:"children"},checkedKeys:{type:Array,default:()=>[]},expandAll:{type:Boolean,default:!0},menusIdObj:{type:Object,default:()=>{}},showNav:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:checked-keys","change","toggle","tab-change"],setup(e,{emit:t}){const n=e,i=t,r=l.ref(n.checkedKeys||[]),o=l.ref([]),s=l.ref(""),a=new Map,u=new Map;l.provide("menusIdObj",n.menusIdObj||{});const f=(k,w=null)=>{const T=new Map,S=(_,A)=>{_&&_.forEach(D=>{var B,E;const x=D[n.nodeKey];T.set(x,{node:D,parentKey:A,childrenKeys:((B=D[n.children])==null?void 0:B.map(F=>F[n.nodeKey]))||[]}),(E=D[n.children])!=null&&E.length&&S(D[n.children],x)})};return S(k,w),T},d=l.computed(()=>f(n.treeData)),c=l.computed(()=>{var k,w;return Ke.isArray(n.treeData)&&((k=n.treeData)!=null&&k.length)?((w=n.treeData)==null?void 0:w.length)>1?n.treeDatap:n.treeData[0][n.children]:[]}),h=l.computed(()=>c.value.map(k=>`menu-id-${k[n.nodeKey]}`)),p=k=>{if(a.has(k))return a.get(k);const w=[],T=[k];for(;T.length;){const S=T.pop(),_=d.value.get(S);_&&_.childrenKeys.length&&(w.push(..._.childrenKeys),T.push(..._.childrenKeys))}return a.set(k,w),w},m=k=>{if(u.has(k))return u.get(k);const w=[];let T=k;for(;T;){const S=d.value.get(T);S&&S.parentKey?(w.push(S.parentKey),T=S.parentKey):T=null}return u.set(k,w),w},y=({key:k,level:w,checked:T})=>{const S=new Set(r.value),_=new Set(o.value);T?S.add(k):S.delete(k),_.delete(k),p(k).forEach(x=>{_.delete(x),T?S.add(x):S.delete(x)}),m(k).forEach(x=>{const B=d.value.get(x);B&&(B.childrenKeys.every(F=>S.has(F))?(S.add(x),_.delete(x)):(S.delete(x),B.childrenKeys.some(I=>S.has(I))?_.add(x):_.delete(x),B.childrenKeys.some(I=>_.has(I))&&_.add(x)))}),r.value=Array.from(S),o.value=Array.from(_),i("update:checked-keys",r.value),i("change",{key:k,checked:T,level:w,data:d.value.get(k),checkedKeys:r.value,halfCheckedKeys:o.value})},v=()=>{a.clear(),u.clear()};function b(k){i("toggle",k,h.value)}function g(k){i("tab-change",k)}return l.onMounted(()=>{setTimeout(()=>{b("")},1e3)}),l.watchEffect(()=>{n.checkedKeys&&(r.value=[...n.checkedKeys],v())}),l.onUnmounted(()=>{v()}),(k,w)=>{const T=l.resolveComponent("el-tab-pane"),S=l.resolveComponent("el-tabs");return l.openBlock(),l.createElementBlock("div",T9e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.treeData,(_,A)=>(l.openBlock(),l.createBlock(CG,{key:A,"checked-keys":r.value,"expand-all":e.expandAll,level:0,"menu-title-key":e.menuTitleKey,node:_,"node-key":e.nodeKey,disabled:e.disabled,onCheck:y,onToggle:b},null,8,["checked-keys","expand-all","menu-title-key","node","node-key","disabled"]))),128)),e.showNav?(l.openBlock(),l.createElementBlock("div",O9e,[l.createVNode(S,{modelValue:s.value,"onUpdate:modelValue":w[0]||(w[0]=_=>s.value=_),"tab-position":"right",onTabChange:g},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.value,_=>(l.openBlock(),l.createBlock(T,{key:_[e.nodeKey],label:_[e.menuTitleKey]},null,8,["label"]))),128))]),_:1},8,["modelValue"])])):l.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-392b12fd"]])},Symbol.toStringTag,{value:"Module"})),P9e=l.defineComponent({name:"JwtUploadFile",props:{modelValue:{type:[String,Array],default:null},limitSize:{type:[String,Number],default:1024*10*50},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},limit:{type:[String,Number],default:10},uploadParam:{type:Object,default:()=>{}},module:{type:String,default:""},dragUpload:{type:Boolean,default:!1}},emits:["update:modelValue","onChange","after-btn-click"],setup(e,{emit:t}){const n=Nn(),i=l.useAttrs(),r=l.ref(null),o=l.reactive({fileList:[],initOnce:!1,onUploadProgress:!1,uploadFiles:[],uploadSuccessFiles:[],selectUploadFileNum:0}),s=l.computed(()=>e.disabled||(e.isCosBacthUpload?o.uploadProgress:!1)),a=v=>n.fillUrl&&on.isFunction(n.fillUrl)?n.fillUrl(v,"","",""):v,u=()=>{let v=[];if(e.multiple)if(on.hasArray(e.modelValue))e.modelValue.map(b=>{b&&v.push({url:a(b),org_url:b,name:a(b)})});else if(on.isString(e.modelValue))e.modelValue.split(",").map(b=>{b&&v.push({url:a(b),org_url:b,name:a(b)})});else return o.initOnce=!1,[];else v=e.modelValue?[{url:a(e.modelValue),org_url:e.modelValue,name:a(e.modelValue)}]:[];return o.initOnce=!0,v},f=l.watch(()=>e.modelValue,v=>{l.nextTick(()=>{if(!(v!=null&&v.isTrusted))if(v){const b=u();o.fileList=b}else o.fileList=[]})},{immediate:!0}),d=l.computed(()=>vl()),c=v=>{if(!n.uploadImgUrl)return lt.ElMessage.error(Pe("请配置上传的路径地址"));const b=v.type,g=parseInt(e.limitSize),k=g/1024,w=v.size/1024<g;w||(k>1?lt.ElMessage.error(`${Pe("上传文件大小不能超过")} ${k}MB!`):lt.ElMessage.error(`${Pe("上传文件大小不能超过")} ${g}KB!`));const T=w;return T&&(o.onUploadProgress=!0),T},h=()=>{o.onUploadProgress=!1},p=(v,b)=>{if(o.onUploadProgress=!1,v.code===0){let g=o.fileList.concat([b]);y(g)}else lt.ElMessage.error(v.msg),this.dialogVisible=!1},m=(v,b)=>{y(b)},y=v=>{const b=(n==null?void 0:n.imgUploadResKey)||"";o.initOnce=!0;let g=[];v.map(k=>{var T,S,_;const w=(b?(S=(T=k==null?void 0:k.response)==null?void 0:T.data)==null?void 0:S[b]:(_=k==null?void 0:k.response)==null?void 0:_.data)||k.org_url;w&&g.push(w)}),e.multiple?(t("update:modelValue",g),t("onChange",g)):(t("update:modelValue",g[0]||""),t("onChange",g[0]||""))};return l.onBeforeMount(()=>{o.fileList=[],o.initOnce=!1}),l.onMounted(()=>{}),l.onBeforeUnmount(()=>{f()}),{attrs:i,uploadRef:r,appOptions:n,...l.toRefs(o),headers:d,uploadDisabled:s,handleRemove:m,handleBeforeUpload:c,handleUploadSuccess:p,handleUploadError:h,t:Pe}}}),j9e={class:"w"};function I9e(e,t,n,i,r,o){const s=l.resolveComponent("el-button"),a=l.resolveComponent("el-upload");return l.openBlock(),l.createElementBlock("div",j9e,[l.createVNode(a,l.mergeProps({ref:"uploadRef","file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=u=>e.fileList=u),accept:e.attrs.accept||"application/*",action:e.appOptions.uploadImgUrl,"before-upload":e.handleBeforeUpload,data:e.uploadParam,disabled:e.uploadDisabled,headers:e.headers,multiple:e.multiple,drag:e.dragUpload,name:"filedata","on-error":e.handleUploadError,"on-remove":e.handleRemove,"on-success":e.handleUploadSuccess,"with-credentials":""},e.attrs),{default:l.withCtx(()=>[l.createVNode(s,{type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("上传")),1)]),_:1})]),_:1},16,["file-list","accept","action","before-upload","data","disabled","headers","multiple","drag","on-error","on-remove","on-success"])])}const R9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(P9e,[["render",I9e]])},Symbol.toStringTag,{value:"Module"})),N9e=["src"],M9e=["title"],L9e={class:"picture-card-operation"},z9e=["onClick"],SG=Qt({__name:"fileSlot",props:{listType:{type:String,default:"picture-card"},file:{type:Object,default:()=>{}},pictureActions:{type:Array,default:()=>[]}},emits:["remove","on-preview","action"],setup(e,{emit:t}){const n=t,{t:i}=lt.useLocale(),r=lt.useNamespace("upload"),o=lt.useNamespace("icon"),s=lt.useFormDisabled(),a=d=>{n("remove",d)},u=d=>{n("on-preview",d)},f=(d,c)=>{n("action",{item:d,file:c})};return(d,c)=>{const h=l.resolveComponent("el-icon"),p=l.resolveComponent("el-progress");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.listType==="picture"||e.file.status!=="uploading"&&e.listType==="picture-card"?(l.openBlock(),l.createElementBlock("img",{key:0,alt:"",class:l.normalizeClass(l.unref(r).be("list","item-thumbnail")),src:e.file.url},null,10,N9e)):l.createCommentVNode("",!0),e.file.status==="uploading"||e.listType!=="picture-card"?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(l.unref(r).be("list","item-info"))},[l.createElementVNode("a",{class:l.normalizeClass(l.unref(r).be("list","item-name")),onClick:c[0]||(c[0]=l.withModifiers(m=>u(e.file),["prevent"]))},[l.createVNode(h,{class:l.normalizeClass(l.unref(o).m("document"))},{default:l.withCtx(()=>[l.createVNode(l.unref(FX))]),_:1},8,["class"]),l.createElementVNode("span",{class:l.normalizeClass(l.unref(r).be("list","item-file-name")),title:e.file.name},l.toDisplayString(e.file.name),11,M9e)],2),e.file.status==="uploading"?(l.openBlock(),l.createBlock(p,{key:0,percentage:Number(e.file.percentage),"stroke-width":e.listType==="picture-card"?6:2,style:l.normalizeStyle(e.listType==="picture-card"?"":"margin-top: 0.5rem"),type:e.listType==="picture-card"?"circle":"line"},null,8,["percentage","stroke-width","style","type"])):l.createCommentVNode("",!0)],2)):l.createCommentVNode("",!0),l.createElementVNode("label",{class:l.normalizeClass(l.unref(r).be("list","item-status-label"))},[e.listType==="text"?(l.openBlock(),l.createBlock(h,{key:0,class:l.normalizeClass([l.unref(o).m("upload-success"),l.unref(o).m("circle-check")])},{default:l.withCtx(()=>[l.createVNode(l.unref(BX))]),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(l.openBlock(),l.createBlock(h,{key:1,class:l.normalizeClass([l.unref(o).m("upload-success"),l.unref(o).m("check")])},{default:l.withCtx(()=>[l.createVNode(l.unref(xX))]),_:1},8,["class"])):l.createCommentVNode("",!0)],2),l.unref(s)?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(h,{key:2,class:l.normalizeClass(l.unref(o).m("close")),onClick:c[1]||(c[1]=m=>a(e.file))},{default:l.withCtx(()=>[l.createVNode(l.unref(vB))]),_:1},8,["class"])),l.unref(s)?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("i",{key:3,class:l.normalizeClass(l.unref(o).m("close-tip"))},l.toDisplayString(l.unref(i)("el.upload.deleteTip")),3)),e.listType==="picture-card"?(l.openBlock(),l.createElementBlock("span",{key:4,class:l.normalizeClass(l.unref(r).be("list","item-actions"))},[l.createElementVNode("span",{class:l.normalizeClass(l.unref(r).be("list","item-preview")),onClick:c[2]||(c[2]=m=>u(e.file))},[l.createVNode(h,{class:l.normalizeClass(l.unref(o).m("zoom-in"))},{default:l.withCtx(()=>[l.createVNode(l.unref(jX))]),_:1},8,["class"])],2),l.unref(s)?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass(l.unref(r).be("list","item-delete")),onClick:c[3]||(c[3]=m=>a(e.file))},[l.createVNode(h,{class:l.normalizeClass(l.unref(o).m("delete"))},{default:l.withCtx(()=>[l.createVNode(l.unref(TX))]),_:1},8,["class"])],2)),l.createElementVNode("div",L9e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.pictureActions,(m,y)=>(l.openBlock(),l.createElementBlock("span",{key:y,onClick:l.withModifiers(v=>f(m,e.file),["stop"])},l.toDisplayString(m.label),9,z9e))),128))])],2)):l.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-5526a394"]]),V9e=Object.freeze(Object.defineProperty({__proto__:null,default:SG},Symbol.toStringTag,{value:"Module"})),U9e=l.defineComponent({name:"JwtUploadImage",components:{FileSlot:SG,PasteUpload:Db},props:{modelValue:{type:[String,Array],default:null},limitSize:{type:[String,Number],default:2048},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},listType:{type:String,default:"picture-card"},limit:{type:[String,Number],default:10},uploadParam:{type:Object,default:()=>{}},uploadPrefixName:{type:String,default:""},copyImgUploade:{type:Boolean,default:!1},verifyFileType:{type:Boolean,default:!0},uploadName:{type:String,default:""},dragUpload:{type:Boolean,default:!1}},emits:["update:modelValue","onChange","after-btn-click","picture-action","after-btns-click"],setup(e,{emit:t}){const n=Nn(),i=l.useAttrs(),r=l.ref(null),o=l.reactive({fileList:[],dialogVisible:!1,dialogImageUrl:"",initOnce:!1,onUploadProgress:!1,textarea:"",uploadParams:{...e.uploadParam,name:"",goods_matting:0}}),s=(C="")=>n.fillUrl&&on.isFunction(n.fillUrl)?n.fillUrl(C):C,a=l.computed(()=>(e==null?void 0:e.uploadName)||(n==null?void 0:n.uploadFileName)||"filedata"),u=l.computed(()=>({"--upload-picture-card-size":(i==null?void 0:i.cardSize)||"148px"})),f=l.computed(()=>(e==null?void 0:e.listType)==="picture-card"),d=l.computed(()=>{var C;return e.multiple?!1:!!((C=e==null?void 0:e.modelValue)!=null&&C.length)||o.onUploadProgress}),c=()=>{var I;if(!e.modelValue)return[];let C=[];if(e.multiple)if(on.hasArray(e.modelValue))e.modelValue.map(N=>{N&&C.push({url:s(N),org_url:N,name:s(N)})});else if(on.isString(e.modelValue))e.modelValue.split(",").map(N=>{N&&C.push({url:s(N),org_url:N,name:s(N)})});else if((I=e.modelValue)!=null&&I.length)C=[{url:s(e.modelValue),org_url:e.modelValue,name:s(e.modelValue)}];else return o.initOnce=!1,[];else C=e.modelValue?[{url:s(e.modelValue),org_url:e.modelValue,name:s(e.modelValue)}]:[];return o.initOnce=!0,C},h=l.watch(()=>e.modelValue,C=>{l.nextTick(()=>{if(!(C!=null&&C.isTrusted))if(C){const I=c();o.fileList=I}else o.fileList=[]})},{immediate:!0}),p=l.computed(()=>vl()),m=C=>{if(!n.uploadImgUrl)return lt.ElMessage.error(Pe("请配置上传的路径地址"));o.uploadParams.name=`${e.uploadPrefixName}${e.uploadPrefixName?"_":""}${C.name}`;const I=C.type,N=parseInt(e.limitSize),H=N/1024,Q=C.size/1024<N,ie=["image/jpeg","image/png","image/gif","image/webp","image/x-icon"];let ae=e.verifyFileType?ie.includes(I):!0;I.includes(".icon")&&(ae=!0),ae||lt.ElMessage.error(Pe("上传图片只能是JPG,PNG,GIF,WEBP格式")),Q||(H>1?lt.ElMessage.error(`${Pe("上传图片大小不能超过")} ${H}MB!`):lt.ElMessage.error(`${Pe("上传图片大小不能超过")} ${N}KB!`));const M=ae&&Q;return M&&(o.onUploadProgress=!0),M},y=()=>{o.onUploadProgress=!1},v=(C,I,N)=>{const H=N.every(Q=>Q.status==="success");o.onUploadProgress=!1,H&&g(N)},b=(C,I)=>{g(I)},g=C=>{const I=n.imgUploadResKey||"";o.initOnce=!0;let N=[];C.map(H=>{var ie,ae,M;const Q=(I?(ae=(ie=H==null?void 0:H.response)==null?void 0:ie.data)==null?void 0:ae[I]:(M=H==null?void 0:H.response)==null?void 0:M.data)||H.org_url;Q&&N.push(Q)}),e.multiple?(t("update:modelValue",N),t("onChange",N)):(t("update:modelValue",N[0]||""),t("onChange",N[0]||""))},k=C=>{o.dialogImageUrl=C.url,o.dialogVisible=!0},w=C=>{r.value.handleStart(C),r.value.submit()},T=()=>{t("after-btn-click")},S=(C,I)=>{t("after-btns-click",C,I)},_=(C,I)=>{const N=lt.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});i.mattingUrl&&i.requestFun({url:i.mattingUrl,method:"post",data:{http_path:C,...e.uploadParam}}).then(H=>{const Q=H==null?void 0:H.relative_path.split(",").map(ie=>({url:s(ie),org_url:ie,name:ie}));t("picture-action",{file:Q,item:I}),N.close()}).catch(()=>{N.close()})},A=C=>{r.value.handleRemove(C)},D=l.computed(()=>o.fileList.length&&i.mattingAll),x=l.computed(()=>{const C=(i==null?void 0:i.actionList)||[];return C.length===0?[]:[{label:Pe("设为主图"),code:"setMain"},{label:Pe("抠图"),code:"mattingImg"},{label:Pe("设计"),code:"design"}].filter(H=>C.includes(H.code))}),B=({file:C,item:I})=>{if(I.code==="mattingImg"){_(C.url,I);return}t("picture-action",{file:C,item:I})},E=()=>{var I,N;const C=(N=(I=o.fileList)==null?void 0:I.map(H=>H.org_url))==null?void 0:N.join(",");C&&_(C,{code:"mattingAll"})},F=(C,I)=>{};return l.onBeforeMount(()=>{o.fileList=[],o.initOnce=!1}),l.onBeforeUnmount(()=>{o.fileList=[],o.initOnce=!1,h()}),{attrs:i,uploadRef:r,appOptions:n,isPictureCard:f,...l.toRefs(o),headers:p,showOnlyOne:d,pictureActions:x,showMattingAll:D,styleObj:u,uploadFileName:a,handleRemove:b,handleBeforeUpload:m,handleUploadSuccess:v,handlePictureCardPreview:k,handleUploadError:y,handleUploadPaste:w,t:Pe,handleAfterBtn:T,handleClickAfterBtns:S,handleFileRemove:A,handlePictureAction:B,handleAllMattingImg:E,handleUploadOnChange:F}}}),H9e={key:0,class:"fv fxr ml5"},q9e=["src"];function W9e(e,t,n,i,r,o){const s=l.resolveComponent("PasteUpload"),a=l.resolveComponent("jwt-icon"),u=l.resolveComponent("el-button"),f=l.resolveComponent("file-slot"),d=l.resolveComponent("el-upload"),c=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",{class:"w jwt-upload-image-wrapper",style:l.normalizeStyle(e.styleObj)},[l.createVNode(s,{"btn-list":e.attrs.btnList,"btn-text":e.attrs.afterBtnText,copy:e.copyImgUploade,disabled:e.disabled,limit:e.showOnlyOne,onAfterBtnClick:e.handleAfterBtn,onAfterBtnsClick:e.handleClickAfterBtns,onUploadPaste:e.handleUploadPaste},null,8,["btn-list","btn-text","copy","disabled","limit","onAfterBtnClick","onAfterBtnsClick","onUploadPaste"]),l.createElementVNode("div",{class:l.normalizeClass([e.isPictureCard?"fx":""])},[l.createVNode(d,{ref:"uploadRef",accept:e.attrs.accept||"image/*",action:e.appOptions.uploadImgUrl,"before-upload":e.handleBeforeUpload,class:l.normalizeClass({onlyOne:e.showOnlyOne}),data:e.uploadParams,disabled:e.disabled,drag:e.dragUpload,"file-list":e.fileList,headers:e.headers,"list-type":e.listType,multiple:e.multiple,name:e.uploadFileName,"on-change":e.handleUploadOnChange,"on-error":e.handleUploadError,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"on-success":e.handleUploadSuccess,"show-file-list":!0,"with-credentials":""},l.createSlots({trigger:l.withCtx(()=>[e.isPictureCard?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[e.attrs.useMaterial?(l.openBlock(),l.createElementBlock("div",{key:0,class:"wh fxmc",onClick:t[0]||(t[0]=l.withModifiers((...h)=>e.handleAfterBtn&&e.handleAfterBtn(...h),["stop"]))},[l.createVNode(a,{icon:"add-line",size:40})])):(l.openBlock(),l.createBlock(a,{key:1,icon:"add-line",size:40}))],64)):(l.openBlock(),l.createBlock(u,{key:1,type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("选择文件")),1)]),_:1}))]),_:2},[e.attrs.mattingUrl?{name:"file",fn:l.withCtx(({file:h})=>[l.createVNode(f,{file:h,"list-type":e.listType,"picture-actions":e.pictureActions,onAction:e.handlePictureAction,onOnPreview:e.handlePictureCardPreview,onRemove:e.handleFileRemove},null,8,["file","list-type","picture-actions","onAction","onOnPreview","onRemove"])]),key:"0"}:void 0]),1032,["accept","action","before-upload","class","data","disabled","drag","file-list","headers","list-type","multiple","name","on-change","on-error","on-preview","on-remove","on-success"]),e.showMattingAll?(l.openBlock(),l.createElementBlock("div",H9e,[l.createVNode(u,{type:"primary",onClick:e.handleAllMattingImg},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("一键抠图")),1)]),_:1},8,["onClick"])])):l.createCommentVNode("",!0)],2),e.attrs.tips1?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(e.attrs.tipsCls)},l.toDisplayString(e.attrs.tips),3)):l.createCommentVNode("",!0),l.createVNode(c,{modelValue:e.dialogVisible,"onUpdate:modelValue":t[1]||(t[1]=h=>e.dialogVisible=h),"append-to-body":""},{default:l.withCtx(()=>[l.createElementVNode("img",{src:e.dialogImageUrl,style:{width:"100%"},"w-full":""},null,8,q9e)]),_:1},8,["modelValue"])],4)}const K9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(U9e,[["render",W9e]])},Symbol.toStringTag,{value:"Module"})),G9e=l.defineComponent({name:"JwtUploadVideo",props:{modelValue:{type:[String,Array],default:null},limitSize:{type:[String,Number],default:1024*10*50},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},listType:{type:String,default:"picture-card"},limit:{type:[String,Number],default:10},uploadParam:{type:Object,default:()=>{}},copyImgUploade:{type:Boolean,default:!1},isCosSdk:{type:Boolean,default:!1},isCosBacthUpload:{type:Boolean,default:!0},module:{type:String,default:""},dragUpload:{type:Boolean,default:!1}},emits:["update:modelValue","onChange","after-btn-click"],setup(e,{emit:t}){const n=Nn();var i=null;const r=l.useAttrs(),o=l.ref(null),s=l.reactive({fileList:[],dialogVisible:!1,dialogImageUrl:"",initOnce:!1,onUploadProgress:!1,textarea:"",uploadFiles:[],uploadSuccessFiles:[],uploadFileNum:0,selectUploadFileNum:0,uploadTips:"",uploadProgress:!1,uploadPercent:0,cosConfig:{}}),a=l.computed(()=>e.disabled||(e.isCosBacthUpload?s.uploadProgress:!1)),u=x=>n.fillUrl&&on.isFunction(n.fillUrl)?n.fillUrl(x,"","",""):x,f=l.computed(()=>{var x;return e.multiple?!1:!!((x=e==null?void 0:e.modelValue)!=null&&x.length)||s.onUploadProgress}),d=()=>{let x=[];if(e.multiple)if(on.hasArray(e.modelValue))e.modelValue.map(B=>{B&&x.push({url:u(B),org_url:B,name:u(B)})});else if(on.isString(e.modelValue))e.modelValue.split(",").map(B=>{B&&x.push({url:u(B),org_url:B,name:u(B)})});else return s.initOnce=!1,[];else x=e.modelValue?[{url:u(e.modelValue),org_url:e.modelValue,name:u(e.modelValue)}]:[];return s.initOnce=!0,x};l.watch(()=>e.modelValue,x=>{l.nextTick(()=>{if(!(x!=null&&x.isTrusted))if(x){const B=d();s.fileList=B}else s.fileList=[]})},{immediate:!0});const c=l.computed(()=>vl()),h=x=>{if(!n.uploadImgUrl)return lt.ElMessage.error(Pe("请配置上传的路径地址"));const B=x.type,E=parseInt(e.limitSize),F=E/1024,C=x.size/1024<E;C||(F>1?lt.ElMessage.error(`${Pe("上传视频大小不能超过")} ${F}MB!`):lt.ElMessage.error(`${Pe("上传视频大小不能超过")} ${E}KB!`));const I=C;return I&&(s.onUploadProgress=!0),I},p=()=>{s.onUploadProgress=!1},m=(x,B)=>{if(s.onUploadProgress=!1,x.code===0){let E=s.fileList.concat([B]);v(E)}else lt.ElMessage.error(x.msg),this.dialogVisible=!1},y=(x,B)=>{v(B)},v=x=>{const B=n.imgUploadResKey||"";s.initOnce=!0;let E=[];x.map(F=>{var I,N,H;const C=(B?(N=(I=F==null?void 0:F.response)==null?void 0:I.data)==null?void 0:N[B]:(H=F==null?void 0:F.response)==null?void 0:H.data)||F.org_url;C&&E.push(C)}),e.multiple?(t("update:modelValue",E),t("onChange",E)):(t("update:modelValue",E[0]||""),t("onChange",E[0]||""))},b=(x,B)=>{if(!e.isCosSdk)return;s.uploadFiles.push(x);let E=B.length;s.selectUploadFileNum=Math.max(E,s.selectUploadFileNum),setTimeout(()=>{s.selectUploadFileNum!==E||s.uploadProgress&&e.isCosBacthUpload||(s.uploadProgress=!0,s.uploadTips=Pe("正在上传中")+"...",s.uploadSuccessFiles=[],g(s.uploadFiles))},50)},g=async x=>{Bb.handleUploadFiles(x,e.isCosBacthUpload,{onProgress:k,onFileFinish:w,handlePath:T})},k=(x,B)=>{e.isCosBacthUpload&&(s.uploadPercent=x)},w=(x,B,E,F)=>{if(e.isCosBacthUpload)if(x)lt.ElMessage.error(Pe("上传失败请重新上传")),s.uploadTips=Pe("上传失败请重新上传")+"...",s.uploadProgress=!1,s.uploadFileNum=0,s.uploadPercent=0;else{s.uploadFileNum+=1;const C=`/${E.Key}`,I=s.uploadFiles.findIndex(N=>N.keyPath===E.Key);if(I>=0&&(s.uploadFiles[I].uploadDone="done",s.uploadFiles[I].uploadPercent=100),s.uploadSuccessFiles.push({org_url:C}),s.uploadFileNum===F.length){s.uploadTips=Pe("上传完成");let N=s.fileList.concat(s.uploadSuccessFiles);v(N),setTimeout(()=>{s.uploadProgress=!1,s.uploadFileNum=0,s.uploadPercent=0},500)}}else if(x)lt.ElMessage.error(Pe("上传失败请重新上传"));else{const C=`/${E.Key}`;let I=s.fileList.concat([{org_url:C}]);v(I)}},T=x=>`${ir.get("companyId")}/${e.module}/${fa().format("YYYYMMDD")}/${u7(x.name+`${c7(0,1e4)}`)}.${x.ext}`,S=x=>{s.dialogImageUrl=x,s.dialogVisible=!0},_=()=>{t("after-btn-click")},A=(x,B)=>{if(s.fileList.splice(x,1),l.nextTick(()=>{v(s.fileList)}),s.uploadFileList.length){const E=s.uploadFileList.findIndex(F=>F.org_url===B.org_url);E>=0&&s.uploadFileList.splice(E,1)}},D=()=>{i=Bb.getInstance(n.txCosUploadFileUrl)};return l.onBeforeMount(()=>{s.fileList=[],s.initOnce=!1}),l.onMounted(()=>{e.isCosSdk&&D()}),{attrs:r,uploadRef:o,appOptions:n,...l.toRefs(s),headers:c,showOnlyOne:f,uploadDisabled:a,handleRemove:y,handleBeforeUpload:h,handleUploadSuccess:m,handleVideoPreview:S,handleUploadError:p,t:Pe,handleAfterBtn:_,handleDeleteVideo:A,handleUploadOnChange:b,handleInitCosSdk:D}}}),J9e={class:"w"},Y9e={class:"fx fxwp el-upload-list el-upload-list--picture-card"},X9e=["src"],Z9e={key:0,class:"jwt-material-img-mask"},Q9e=["onClick"],$9e=["onClick"],eEe={class:"fx mb10 fxb"},tEe={key:0},nEe={class:"g6 fs12 lh1"},iEe={key:1,style:{width:"50%"}},rEe={class:"cd"},oEe=["src"];function aEe(e,t,n,i,r,o){const s=l.resolveComponent("jwt-icon"),a=l.resolveComponent("el-upload"),u=l.resolveComponent("el-button"),f=l.resolveComponent("el-progress"),d=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",J9e,[l.createElementVNode("ul",Y9e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.fileList,(c,h)=>(l.openBlock(),l.createElementBlock("li",{key:h,class:"el-upload-list__item is-success rel"},[l.createElementVNode("video",{class:"wh",controls:"",src:c.url},null,8,X9e),c.url?(l.openBlock(),l.createElementBlock("div",Z9e,[l.createElementVNode("i",{class:"el-icon",onClick:l.withModifiers(p=>e.handleVideoPreview(c.url),["stop"])},t[2]||(t[2]=[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z",fill:"currentColor"})],-1)]),8,Q9e),l.createElementVNode("i",{class:"el-icon",onClick:l.withModifiers(p=>e.handleDeleteVideo(h,c),["stop"])},t[3]||(t[3]=[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z",fill:"currentColor"})],-1)]),8,$9e)])):l.createCommentVNode("",!0)]))),128)),l.createVNode(a,{ref:"uploadRef",accept:"video/*",action:e.appOptions.uploadImgUrl,"auto-upload":!e.isCosSdk,"before-upload":e.handleBeforeUpload,class:l.normalizeClass({onlyOne:e.showOnlyOne}),data:e.uploadParam,disabled:e.uploadDisabled,headers:e.headers,"list-type":e.listType,multiple:e.multiple,drag:e.dragUpload,name:"filedata","on-change":e.handleUploadOnChange,"on-error":e.handleUploadError,"on-remove":e.handleRemove,"on-success":e.handleUploadSuccess,"show-file-list":!1,"with-credentials":""},{default:l.withCtx(()=>[e.attrs.useMaterial?(l.openBlock(),l.createElementBlock("div",{key:0,class:"wh fxmc",onClick:t[0]||(t[0]=l.withModifiers((...c)=>e.handleAfterBtn&&e.handleAfterBtn(...c),["stop"]))},[l.createVNode(s,{icon:"add-line",size:40})])):(l.openBlock(),l.createBlock(s,{key:1,icon:"add-line",size:40}))]),_:1},8,["action","auto-upload","before-upload","class","data","disabled","headers","list-type","multiple","drag","on-change","on-error","on-remove","on-success"]),l.createElementVNode("div",eEe,[e.attrs.afterBtnText?(l.openBlock(),l.createBlock(u,{key:0,class:"ml10",disabled:e.disabled,size:"default",type:"primary",onClick:e.handleAfterBtn},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t(e.attrs.afterBtnText)||e.t("从素材库选")),1)]),_:1},8,["disabled","onClick"])):l.createCommentVNode("",!0)])]),e.isCosBacthUpload?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",tEe,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.uploadFiles,(c,h)=>(l.openBlock(),l.createElementBlock("div",{key:h,class:"lh1"},[l.createElementVNode("span",nEe,l.toDisplayString(c.name),1),l.createVNode(f,{class:"mt2",percentage:c.uploadPercent,"stroke-width":3},null,8,["percentage"])]))),128))])),e.isCosBacthUpload&&e.uploadProgress?(l.openBlock(),l.createElementBlock("div",iEe,[l.createVNode(f,{percentage:e.uploadPercent},null,8,["percentage"]),l.createElementVNode("span",rEe,l.toDisplayString(e.uploadTips),1)])):l.createCommentVNode("",!0),l.createVNode(d,{modelValue:e.dialogVisible,"onUpdate:modelValue":t[1]||(t[1]=c=>e.dialogVisible=c),"append-to-body":""},{default:l.withCtx(()=>[l.createElementVNode("video",{controls:"",src:e.dialogImageUrl,style:{width:"100%"},"w-full":""},null,8,oEe)]),_:1},8,["modelValue"])])}const sEe=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(G9e,[["render",aEe],["__scopeId","data-v-bbd8a00e"]])},Symbol.toStringTag,{value:"Module"})),lEe={beforeMount(e,t){var a;const n=t.arg||{},i=((a=t==null?void 0:t.modifiers)==null?void 0:a.once)||!1,r=n.root||null,o=n.rootMargin||"0px",s=n.threshold||0;e.intersectionObserver=new IntersectionObserver(u=>{u[0].isIntersecting&&(t.value(),i&&e.intersectionObserver.disconnect())},{root:r,rootMargin:o,threshold:s}),e.intersectionObserver.observe(e)},unmounted(e){e.intersectionObserver.disconnect()}};function uEe(e){const t=new Map;return function(...n){const i=JSON.stringify(n);if(t.has(i))return t.get(i);const r=l.computed(()=>e(...n));return t.set(i,r),r}}var xG={exports:{}};const fEe=DSe(nSe);(function(e,t){(function(n,i){e.exports=i(fEe)})(self,n=>(()=>{var i={857:a=>{a.exports=n}},r={};function o(a){var u=r[a];if(u!==void 0)return u.exports;var f=r[a]={exports:{}};return i[a](f,f.exports,o),f.exports}o.d=(a,u)=>{for(var f in u)o.o(u,f)&&!o.o(a,f)&&Object.defineProperty(a,f,{enumerable:!0,get:u[f]})},o.o=(a,u)=>Object.prototype.hasOwnProperty.call(a,u),o.r=a=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var s={};return(()=>{o.r(s),o.d(s,{default:()=>V});var a=o(857);(0,a.i18nAddResources)("en",{attachment:{upload:"Upload Attachment",download:"Download Attachment"}}),(0,a.i18nAddResources)("zh-CN",{attachment:{upload:"上传附件",download:"下载附件"}});function u(L,W,G,$,re){return{sel:L,data:W,children:G,text:$,elm:re,key:W===void 0?void 0:W.key}}const f=Array.isArray;function d(L){return typeof L=="string"||typeof L=="number"||L instanceof String||L instanceof Number}function c(L,W,G){if(L.ns="http://www.w3.org/2000/svg",G!=="foreignObject"&&W!==void 0)for(let $=0;$<W.length;++$){const re=W[$];if(typeof re=="string")continue;const be=re.data;be!==void 0&&c(be,re.children,re.sel)}}function h(L,W,G){let $,re,be,Se={};if(G!==void 0?(W!==null&&(Se=W),f(G)?$=G:d(G)?re=G.toString():G&&G.sel&&($=[G])):W!=null&&(f(W)?$=W:d(W)?re=W.toString():W&&W.sel?$=[W]:Se=W),$!==void 0)for(be=0;be<$.length;++be)d($[be])&&($[be]=u(void 0,void 0,void 0,$[be],void 0));return L[0]!=="s"||L[1]!=="v"||L[2]!=="g"||L.length!==3&&L[3]!=="."&&L[3]!=="#"||c(Se,$,L),u(L,Se,$,re,void 0)}const p={type:"attachment",renderElem:function(L,W,G){var $=G.isDisabled(),re=a.DomEditor.isNodeSelected(G,L),be=L,Se=be.fileName,ee=Se===void 0?"":Se,we=be.link,Ee=we===void 0?"":we;return h("span",{props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:re&&!$?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"0 3px",backgroundColor:"#f1f1f1",cursor:$?"pointer":"inherit"},on:{click:function(){$&&Ee&&window.open(Ee,"_blank")}}},[h("img",{props:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAv5JREFUWEetl1nITVEUx3/fo5LkyRQeFA+SIS8eZHhQimRKMhMSoogyR5QxMs9DkplQEhFvxihCKUWkpCTP9P9a+1p3f2efe869367T3Xeftdf/v9e012mi9cZQYDzQBxgIfANeAO+BDSmYplbCX58HAnwFFgNXY7zWIHABmBQpfg10A9pH64OAZ36tUQLngClO4XVgC/DU1iYCF937N+aiylIjBM4A05xy+XljwqV/3bpkKjFRL4GTwMyU0gwSY4Abtn4NGBdk6iFwFJhbAjyI/gLaAR+BnvUSOATML2j22BCvgL7AbyPS/L6MBfYDC3NOrlS8BLzNcIGi/4mtPwSGlbXAHmBJDriCSgQU5UrJmIT8Ptb277OaUNgCu4BlBcCDSFWUGzFfCXV6WaEQge3A8hLgcSquBjbnBWxeDGwFVtXwuT9ZfHLtlY4wFB9xxUwGoViLfVGzxuCymqyXC57KAilb1wC44kVxUxM8i8Bs4HgJn8cnV6YoYwqBxwR6A/eBzrY7Vh5SLeUW1QjVisLgMQEFyQTbfQqY5ZTVAp8HHC4L7gnocrhiCj5ZpdKvxlJgd45b5gDHcsDzKmQlC3zUrwS2mcJ+wAPXWMRumQHIWimzh04pVSErBG4Do0zLaOCWzX2rpeZjqgPT/GwB8FTMNK+HQqSerZNJKgjVUGro9Go2NXwJnQycLwGebFYCgS9AF1PYEfhu8wXAQZurfh8AutcoMnGDGrvN8f5vAQVg6FJGAndNqq211SE1qzbb9evLaylw74I1wCbTvgLY4ZAGAzeBDhH6kYzmRARyfR6fILhAd7XubI0fQC/gpxNuY23YcOCDdbrP3fvSJw97/W14B5D5NR4DQ2K2if91g3sXaN4V+OxAlN+LgD8J4B7WbJTpjluoivuB6cBpJ6VquBd4BAST67tP1tHFIxKlfJ6KAb8+AriXcWqlarCUf60ashY4UdBlVWKpjkgRvzP6+MjSf9nA39UDHsdAlg7VhgFAf3sk89IefXq3+NotS+QfmNG0IS7jBhcAAAAASUVORK5CYII="},style:{width:"1em",marginRight:"0.1em",minWidth:"0",minHeight:"0"}}),ee])}};function m(L){return L!==null&&typeof L=="object"&&"constructor"in L&&L.constructor===Object}function y(L={},W={}){Object.keys(W).forEach(G=>{L[G]===void 0?L[G]=W[G]:m(W[G])&&m(L[G])&&Object.keys(W[G]).length>0&&y(L[G],W[G])})}const v={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function b(){const L=typeof document<"u"?document:{};return y(L,v),L}const g={document:v,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:L=>typeof setTimeout>"u"?(L(),null):setTimeout(L,0),cancelAnimationFrame(L){typeof setTimeout<"u"&&clearTimeout(L)}};function k(){const L=typeof window<"u"?window:{};return y(L,g),L}class w extends Array{constructor(W){typeof W=="number"?super(W):(super(...W||[]),function(G){const $=G.__proto__;Object.defineProperty(G,"__proto__",{get:()=>$,set(re){$.__proto__=re}})}(this))}}function T(L,W){const G=k(),$=b();let re=[];if(!W&&L instanceof w)return L;if(!L)return new w(re);if(typeof L=="string"){const be=L.trim();if(be.indexOf("<")>=0&&be.indexOf(">")>=0){let Se="div";be.indexOf("<li")===0&&(Se="ul"),be.indexOf("<tr")===0&&(Se="tbody"),be.indexOf("<td")!==0&&be.indexOf("<th")!==0||(Se="tr"),be.indexOf("<tbody")===0&&(Se="table"),be.indexOf("<option")===0&&(Se="select");const ee=$.createElement(Se);ee.innerHTML=be;for(let we=0;we<ee.childNodes.length;we+=1)re.push(ee.childNodes[we])}else re=function(Se,ee){if(typeof Se!="string")return[Se];const we=[],Ee=ee.querySelectorAll(Se);for(let P=0;P<Ee.length;P+=1)we.push(Ee[P]);return we}(L.trim(),W||$)}else if(L.nodeType||L===G||L===$)re.push(L);else if(Array.isArray(L)){if(L instanceof w)return L;re=L}return new w(function(be){const Se=[];for(let ee=0;ee<be.length;ee+=1)Se.indexOf(be[ee])===-1&&Se.push(be[ee]);return Se}(re))}function S(...L){let[W,G,$,re]=L;function be(Ee){const P=Ee.target;if(!P)return;const le=Ee.target.dom7EventData||[];if(le.indexOf(Ee)<0&&le.unshift(Ee),T(P).is(G))$.apply(P,le);else{const me=T(P).parents();for(let J=0;J<me.length;J+=1)T(me[J]).is(G)&&$.apply(me[J],le)}}function Se(Ee){const P=Ee&&Ee.target&&Ee.target.dom7EventData||[];P.indexOf(Ee)<0&&P.unshift(Ee),$.apply(this,P)}typeof L[1]=="function"&&([W,$,re]=L,G=void 0),re||(re=!1);const ee=W.split(" ");let we;for(let Ee=0;Ee<this.length;Ee+=1){const P=this[Ee];if(G)for(we=0;we<ee.length;we+=1){const le=ee[we];P.dom7LiveListeners||(P.dom7LiveListeners={}),P.dom7LiveListeners[le]||(P.dom7LiveListeners[le]=[]),P.dom7LiveListeners[le].push({listener:$,proxyListener:be}),P.addEventListener(le,be,re)}else for(we=0;we<ee.length;we+=1){const le=ee[we];P.dom7Listeners||(P.dom7Listeners={}),P.dom7Listeners[le]||(P.dom7Listeners[le]=[]),P.dom7Listeners[le].push({listener:$,proxyListener:Se}),P.addEventListener(le,Se,re)}}return this}function _(){for(let L=0;L<this.length;L+=1)this[L].style.display="none";return this}function A(...L){let W;const G=b();for(let $=0;$<L.length;$+=1){W=L[$];for(let re=0;re<this.length;re+=1)if(typeof W=="string"){const be=G.createElement("div");for(be.innerHTML=W;be.firstChild;)this[re].appendChild(be.firstChild)}else if(W instanceof w)for(let be=0;be<W.length;be+=1)this[re].appendChild(W[be]);else this[re].appendChild(W)}return this}T.fn=w.prototype;const D="resize scroll".split(" ");function x(L){return function(...W){if(W[0]===void 0){for(let G=0;G<this.length;G+=1)D.indexOf(L)<0&&(L in this[G]?this[G][L]():T(this[G]).trigger(L));return this}return this.on(L,...W)}}const B=x("click"),E=T;E.fn.hide=_,E.fn.append=A,E.fn.click=B,E.fn.on=S;const F=E;var C=function(){return C=Object.assign||function(L){for(var W,G=1,$=arguments.length;G<$;G++)for(var re in W=arguments[G])Object.prototype.hasOwnProperty.call(W,re)&&(L[re]=W[re]);return L},C.apply(this,arguments)},I=function(L,W,G,$){return new(G||(G=Promise))(function(re,be){function Se(Ee){try{we($.next(Ee))}catch(P){be(P)}}function ee(Ee){try{we($.throw(Ee))}catch(P){be(P)}}function we(Ee){var P;Ee.done?re(Ee.value):(P=Ee.value,P instanceof G?P:new G(function(le){le(P)})).then(Se,ee)}we(($=$.apply(L,[])).next())})},N=function(L,W){var G,$,re,be,Se={label:0,sent:function(){if(1&re[0])throw re[1];return re[1]},trys:[],ops:[]};return be={next:ee(0),throw:ee(1),return:ee(2)},typeof Symbol=="function"&&(be[Symbol.iterator]=function(){return this}),be;function ee(we){return function(Ee){return function(P){if(G)throw new TypeError("Generator is already executing.");for(;Se;)try{if(G=1,$&&(re=2&P[0]?$.return:P[0]?$.throw||((re=$.return)&&re.call($),0):$.next)&&!(re=re.call($,P[1])).done)return re;switch($=0,re&&(P=[2&P[0],re.value]),P[0]){case 0:case 1:re=P;break;case 4:return Se.label++,{value:P[1],done:!1};case 5:Se.label++,$=P[1],P=[0];continue;case 7:P=Se.ops.pop(),Se.trys.pop();continue;default:if(!((re=(re=Se.trys).length>0&&re[re.length-1])||P[0]!==6&&P[0]!==2)){Se=0;continue}if(P[0]===3&&(!re||P[1]>re[0]&&P[1]<re[3])){Se.label=P[1];break}if(P[0]===6&&Se.label<re[1]){Se.label=re[1],re=P;break}if(re&&Se.label<re[2]){Se.label=re[2],Se.ops.push(P);break}re[2]&&Se.ops.pop(),Se.trys.pop();continue}P=W.call(L,Se)}catch(le){P=[6,le],$=0}finally{G=re=0}if(5&P[0])throw P[1];return{value:P[0]?P[1]:void 0,done:!0}}([we,Ee])}}};function H(L){return L.getMenuConfig("uploadAttachment")}function Q(L,W,G){if(W&&G){L.restoreSelection();var $={type:"attachment",fileName:W,link:G,children:[{text:""}]};L.insertNode($),L.move(1);var re=H(L).onInsertedAttachment;re&&re($)}}function ie(L,W){return I(this,void 0,void 0,function(){var G,$,re,be;return N(this,function(Se){switch(Se.label){case 0:return G=function(ee){var we=ae.get(ee);if(we!=null)return we;var Ee=H(ee),P=Ee.onSuccess,le=Ee.onProgress,me=Ee.onFailed,J=Ee.customInsert,Y=Ee.onError;return we=(0,a.createUploader)(C(C({},Ee),{onProgress:function(fe){ee.showProgressBar(fe),le&&le(fe)},onSuccess:function(fe,oe){if(J)J(oe,fe,function(st,it){return Q(ee,st,it)});else{var pe=oe.errno,de=pe===void 0?1:pe,Oe=oe.data,ve=Oe===void 0?{}:Oe;if(de!==0)return void me(fe,oe);var _e=ve.url,Ue=_e===void 0?"":_e;Q(ee,fe.name,Ue),P(fe,oe)}},onError:function(fe,oe,pe){var de=fe.name;Y&&Y(fe,oe,pe)}})),ae.set(ee,we),we}(L),$=W.name,re=W.type,be=W.size,G.addFile({name:$,type:re,size:be,data:W}),[4,G.upload()];case 1:return Se.sent(),[2]}})})}var ae=new WeakMap;const M=function(){function L(){this.title=(0,a.t)("attachment.upload"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M665.821116 327.053068l-64.958782-64.926783-324.79391 324.729911c-53.822991 53.790991-53.822991 141.053355 0 194.844347s141.053355 53.790991 194.876346 0l389.752692-389.688693a229.531696 229.531696 0 0 0 0-324.729912 229.627694 229.627694 0 0 0-324.761911 0L126.727224 476.458266l-0.863984 0.831985c-125.085655 125.085655-125.085655 327.833853 0 452.887508 125.053655 125.053655 327.865853 125.053655 452.983507 0l0.831984-0.863984 0.031999 0.032 279.322763-279.290764-64.990781-64.926782-279.322763 279.258764-0.831984 0.831984a228.731711 228.731711 0 0 1-323.065943 0 228.603714 228.603714 0 0 1 0-322.969944l0.895983-0.831985-0.031999-0.063998L600.958332 132.208721c53.694993-53.726993 141.149353-53.726993 194.876346 0s53.694993 141.149353 0 194.844347L406.081986 716.741761c-17.919664 17.919664-47.039118 17.919664-64.958782 0a45.983138 45.983138 0 0 1 0-64.926783L665.917114 327.053068z"></path></svg>',this.tag="button"}return L.prototype.getValue=function(W){return""},L.prototype.isActive=function(W){return!1},L.prototype.exec=function(W,G){var $=this.getMenuConfig(W),re=$.allowedFileTypes,be=re===void 0?[]:re,Se=$.customBrowseAndUpload;if(Se)Se(function(P,le){return Q(W,P,le)});else{var ee="";be.length>0&&(ee='accept="'.concat(be.join(", "),'"'));var we=F("body"),Ee=F('<input type="file" '.concat(ee," multiple/>"));Ee.hide(),we.append(Ee),Ee.click(),Ee.on("change",function(){var P=Ee[0].files;(function(le,me){var J,Y;I(this,void 0,void 0,function(){var fe,oe,pe,de,Oe,ve;return N(this,function(_e){switch(_e.label){case 0:if(me==null)return[2];fe=Array.prototype.slice.call(me),oe=H(le).customUpload,_e.label=1;case 1:_e.trys.push([1,9,10,15]),pe=function(Ue){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var st,it=Ue[Symbol.asyncIterator];return it?it.call(Ue):(Ue=typeof __values=="function"?__values(Ue):Ue[Symbol.iterator](),st={},xt("next"),xt("throw"),xt("return"),st[Symbol.asyncIterator]=function(){return this},st);function xt(yt){st[yt]=Ue[yt]&&function(je){return new Promise(function(ce,ke){(function(Be,Ve,He,rt){Promise.resolve(rt).then(function(ct){Be({value:ct,done:He})},Ve)})(ce,ke,(je=Ue[yt](je)).done,je.value)})}}}(fe),_e.label=2;case 2:return[4,pe.next()];case 3:return(de=_e.sent()).done?[3,8]:(Oe=de.value,oe?[4,oe(Oe,function(Ue,st){return Q(le,Ue,st)})]:[3,5]);case 4:return _e.sent(),[3,7];case 5:return[4,ie(le,Oe)];case 6:_e.sent(),_e.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return ve=_e.sent(),J={error:ve},[3,15];case 10:return _e.trys.push([10,,13,14]),de&&!de.done&&(Y=pe.return)?[4,Y.call(pe)]:[3,12];case 11:_e.sent(),_e.label=12;case 12:return[3,14];case 13:if(J)throw J.error;return[7];case 14:return[7];case 15:return[2]}})})})(W,P)})}},L.prototype.isDisabled=function(W){var G=W.selection;if(G==null||a.SlateRange.isExpanded(G))return!0;var $=a.DomEditor.getSelectedElems(W);return!!$.some(function(re){return W.isVoid(re)})||!!$.some(function(re){return a.DomEditor.getNodeType(re)==="pre"})},L.prototype.getMenuConfig=function(W){return W.getMenuConfig("uploadAttachment")},L}(),j=function(){function L(){this.title=(0,a.t)("attachment.download"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M736 448l-256 256-256-256h160V64h192v384z m-256 256H0v256h960v-256H480z m416 128h-128v-64h128v64z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return L.prototype.getValue=function(W){var G=this.getSelectedElem(W);return G==null?"":G.link},L.prototype.isActive=function(W){return!1},L.prototype.exec=function(W,G){G&&typeof G=="string"&&window.open(G,"_blank")},L.prototype.isDisabled=function(W){var G=W.selection;return G==null||!!a.SlateRange.isExpanded(G)||this.getSelectedElem(W)==null},L.prototype.getSelectedElem=function(W){var G=a.DomEditor.getSelectedNodeByType(W,"attachment");return G??null},L}(),V={editorPlugin:function(L){var W=L.isInline,G=L.isVoid,$=L;return $.isInline=function(re){return a.DomEditor.getNodeType(re)==="attachment"||W(re)},$.isVoid=function(re){return a.DomEditor.getNodeType(re)==="attachment"||G(re)},$},renderElems:[p],elemsToHtml:[{type:"attachment",elemToHtml:function(L,W){var G=L,$=G.link,re=$===void 0?"":$,be=G.fileName,Se=be===void 0?"":be;return'<a data-w-e-type="attachment" data-w-e-is-void data-w-e-is-inline href="'.concat(re,'" download="').concat(Se,'">').concat(Se,"</a>")}}],parseElemsHtml:[{selector:'a[data-w-e-type="attachment"]',parseElemHtml:function(L,W,G){return{type:"attachment",link:L.getAttribute("href")||"",fileName:L.getAttribute("download")||"",children:[{text:""}]}}}],menus:[{key:"uploadAttachment",factory:function(){return new M},config:{server:"",fieldName:"wangeditor-uploaded-attachment",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(L){return L},onProgress:function(L){},onSuccess:function(L,W){},onFailed:function(L,W){},onError:function(L,W,G){},onInsertedAttachment:function(L){}}},{key:"downloadAttachment",factory:function(){return new j}}]}})(),s})())})(xG);var dEe=xG.exports;const cEe=bE(dEe),hEe=(e,t={})=>{_J(t);const n=Object.assign({"./JwtCascaderArea/index.vue":TJ,"./JwtCascaderServer/index.vue":jJ,"./JwtColumnItme/components/ColumnDateTimeFormat.vue":x7,"./JwtColumnItme/components/ColumnDefault.vue":E7,"./JwtColumnItme/components/ColumnFile.vue":B7,"./JwtColumnItme/components/ColumnHtml.vue":D7,"./JwtColumnItme/components/ColumnImg.vue":A7,"./JwtColumnItme/components/ColumnImgAdd.vue":T7,"./JwtColumnItme/components/ColumnImgs.vue":O7,"./JwtColumnItme/components/ColumnLink.vue":F7,"./JwtColumnItme/components/ColumnTag.vue":P7,"./JwtColumnItme/components/ColumnTagList.vue":j7,"./JwtColumnItme/components/ColumnText.vue":gk,"./JwtColumnItme/components/ColumnVideo.vue":I7,"./JwtColumnItme/index.vue":lY,"./JwtCount/index.vue":dY,"./JwtCropper/index.vue":aX,"./JwtCropperDialog/index.vue":fX,"./JwtDesHeader/index.vue":Pk,"./JwtDesInfo/index.vue":yX,"./JwtDesTable/index.vue":wX,"./JwtDetailDrawer/index.vue":XX,"./JwtDialogForm/index.vue":oZ,"./JwtEditor/index.vue":wSe,"./JwtEmojiSelect/index.vue":ESe,"./JwtFileIcon/index.vue":BSe,"./JwtFileUpload/index.vue":XSe,"./JwtForm/components/FormLabel.vue":exe,"./JwtForm/index.vue":oxe,"./JwtFormItem/components/FormAutocomplete.vue":bK,"./JwtFormItem/components/FormCascader.vue":kE,"./JwtFormItem/components/FormCascaderPanel.vue":kK,"./JwtFormItem/components/FormCheckbox.vue":wK,"./JwtFormItem/components/FormColorPicker.vue":_K,"./JwtFormItem/components/FormDatePicker.vue":wE,"./JwtFormItem/components/FormDivider.vue":_E,"./JwtFormItem/components/FormEditInput.vue":CE,"./JwtFormItem/components/FormInput.vue":SE,"./JwtFormItem/components/FormInputHidden.vue":CK,"./JwtFormItem/components/FormInputSelect.vue":SK,"./JwtFormItem/components/FormNumberInput.vue":xE,"./JwtFormItem/components/FormRadio.vue":xK,"./JwtFormItem/components/FormRate.vue":EK,"./JwtFormItem/components/FormSelect.vue":BK,"./JwtFormItem/components/FormSlider.vue":DK,"./JwtFormItem/components/FormSwitch.vue":EE,"./JwtFormItem/components/FormTabs.vue":AK,"./JwtFormItem/components/FormTimePicker.vue":BE,"./JwtFormItem/components/FormTimeSelect.vue":TK,"./JwtFormItem/components/FormTips.vue":OK,"./JwtFormItem/components/FormTransfer.vue":FK,"./JwtFormItem/index.vue":fxe,"./JwtHeaderButton/index.vue":vxe,"./JwtIcon/index.vue":_xe,"./JwtIconSelect/index.vue":Dxe,"./JwtImage/index.vue":Fxe,"./JwtInput/index.vue":Ixe,"./JwtMaterial/index.vue":C5e,"./JwtMaterialItemMask/index.vue":Lxe,"./JwtPrefixSuffix/index.vue":B5e,"./JwtRateIcon/index.vue":O5e,"./JwtSelectServer/index.vue":H5e,"./JwtTable/components/tableColumnHeader.vue":q5e,"./JwtTable/components/tableContentControl.vue":N8e,"./JwtTable/components/tableFieldControl.vue":M8e,"./JwtTable/components/tableListContent.vue":L8e,"./JwtTable/components/tableListContentVirtualized.vue":K8e,"./JwtTable/components/tableSizeSetting.vue":G8e,"./JwtTable/index copy.vue":t9e,"./JwtTable/index.vue":u9e,"./JwtTableButton/components/ActionButton.vue":dxe,"./JwtTableButton/index.vue":H8e,"./JwtTableOnly/index.vue":v9e,"./JwtTabs/index.vue":k9e,"./JwtTags/index.vue":S9e,"./JwtTree/components/TreeNode.vue":A9e,"./JwtTree/components/TreeNodeTitle.vue":E9e,"./JwtTree/index.vue":F9e,"./JwtUploadFile/index.vue":R9e,"./JwtUploadImage/components/fileSlot.vue":V9e,"./JwtUploadImage/components/pasteUpload.vue":HSe,"./JwtUploadImage/index.vue":K9e,"./JwtUploadVideo/index.vue":sEe});for(const i in n){const r=n[i];r.default.name&&e.component(r.default.name,r.default||r)}e.directive("jwt-observe-viewport",lEe)};fi.registerModule(cEe);function EG(e){return e&&e.__esModule?e.default:e}function ao(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jb,bt,BG,bm,DG,AG,Yb={},TG=[],pEe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ml(e,t){for(var n in t)e[n]=t[n];return e}function OG(e){var t=e.parentNode;t&&t.removeChild(e)}function YE(e,t,n){var i,r,o,s={};for(o in t)o=="key"?i=t[o]:o=="ref"?r=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?Jb.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Xb(e,s,i,r,null)}function Xb(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++BG};return r==null&&bt.vnode!=null&&bt.vnode(o),o}function La(){return{current:null}}function rc(e){return e.children}function la(e,t){this.props=e,this.context=t}function oc(e,t){if(t==null)return e.__?oc(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?oc(e):null}function FG(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return FG(e)}}function PG(e){(!e.__d&&(e.__d=!0)&&bm.push(e)&&!Zb.__r++||AG!==bt.debounceRendering)&&((AG=bt.debounceRendering)||DG)(Zb)}function Zb(){for(var e;Zb.__r=bm.length;)e=bm.sort(function(t,n){return t.__v.__b-n.__v.__b}),bm=[],e.some(function(t){var n,i,r,o,s,a;t.__d&&(s=(o=(n=t).__v).__e,(a=n.__P)&&(i=[],(r=ml({},o)).__v=o.__v+1,XE(a,o,r,n.__n,a.ownerSVGElement!==void 0,o.__h!=null?[s]:null,i,s??oc(o),o.__h),zG(i,o),o.__e!=s&&FG(o)))})}function jG(e,t,n,i,r,o,s,a,u,f){var d,c,h,p,m,y,v,b=i&&i.__k||TG,g=b.length;for(n.__k=[],d=0;d<t.length;d++)if((p=n.__k[d]=(p=t[d])==null||typeof p=="boolean"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?Xb(null,p,null,null,p):Array.isArray(p)?Xb(rc,{children:p},null,null,null):p.__b>0?Xb(p.type,p.props,p.key,null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(h=b[d])===null||h&&p.key==h.key&&p.type===h.type)b[d]=void 0;else for(c=0;c<g;c++){if((h=b[c])&&p.key==h.key&&p.type===h.type){b[c]=void 0;break}h=null}XE(e,p,h=h||Yb,r,o,s,a,u,f),m=p.__e,(c=p.ref)&&h.ref!=c&&(v||(v=[]),h.ref&&v.push(h.ref,null,p),v.push(c,p.__c||m,p)),m!=null?(y==null&&(y=m),typeof p.type=="function"&&p.__k===h.__k?p.__d=u=IG(p,u,e):u=RG(e,p,h,b,m,u),typeof n.type=="function"&&(n.__d=u)):u&&h.__e==u&&u.parentNode!=e&&(u=oc(h))}for(n.__e=y,d=g;d--;)b[d]!=null&&(typeof n.type=="function"&&b[d].__e!=null&&b[d].__e==n.__d&&(n.__d=oc(i,d+1)),UG(b[d],b[d]));if(v)for(d=0;d<v.length;d++)VG(v[d],v[++d],v[++d])}function IG(e,t,n){for(var i,r=e.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=e,t=typeof i.type=="function"?IG(i,t,n):RG(n,i,i,r,i.__e,t));return t}function Qb(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){Qb(n,t)}):t.push(e)),t}function RG(e,t,n,i,r,o){var s,a,u;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(n==null||r!=o||r.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(r),s=null;else{for(a=o,u=0;(a=a.nextSibling)&&u<i.length;u+=2)if(a==r)break e;e.insertBefore(r,o),s=o}return s!==void 0?s:r.nextSibling}function gEe(e,t,n,i,r){var o;for(o in n)o==="children"||o==="key"||o in t||$b(e,o,null,n[o],i);for(o in t)r&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===t[o]||$b(e,o,t[o],n[o],i)}function NG(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||pEe.test(t)?n:n+"px"}function $b(e,t,n,i,r){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof i=="string"&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||NG(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||NG(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i||e.addEventListener(t,o?LG:MG,o):e.removeEventListener(t,o?LG:MG,o);else if(t!=="dangerouslySetInnerHTML"){if(r)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,n):e.removeAttribute(t))}}function MG(e){this.l[e.type+!1](bt.event?bt.event(e):e)}function LG(e){this.l[e.type+!0](bt.event?bt.event(e):e)}function XE(e,t,n,i,r,o,s,a,u){var f,d,c,h,p,m,y,v,b,g,k,w=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(u=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(f=bt.__b)&&f(t);try{e:if(typeof w=="function"){if(v=t.props,b=(f=w.contextType)&&i[f.__c],g=f?b?b.props.value:f.__:i,n.__c?y=(d=t.__c=n.__c).__=d.__E:("prototype"in w&&w.prototype.render?t.__c=d=new w(v,g):(t.__c=d=new la(v,g),d.constructor=w,d.render=vEe),b&&b.sub(d),d.props=v,d.state||(d.state={}),d.context=g,d.__n=i,c=d.__d=!0,d.__h=[]),d.__s==null&&(d.__s=d.state),w.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=ml({},d.__s)),ml(d.__s,w.getDerivedStateFromProps(v,d.__s))),h=d.props,p=d.state,c)w.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(w.getDerivedStateFromProps==null&&v!==h&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(v,g),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(v,d.__s,g)===!1||t.__v===n.__v){d.props=v,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(T){T&&(T.__=t)}),d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(v,d.__s,g),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(h,p,m)})}d.context=g,d.props=v,d.state=d.__s,(f=bt.__r)&&f(t),d.__d=!1,d.__v=t,d.__P=e,f=d.render(d.props,d.state,d.context),d.state=d.__s,d.getChildContext!=null&&(i=ml(ml({},i),d.getChildContext())),c||d.getSnapshotBeforeUpdate==null||(m=d.getSnapshotBeforeUpdate(h,p)),k=f!=null&&f.type===rc&&f.key==null?f.props.children:f,jG(e,Array.isArray(k)?k:[k],t,n,i,r,o,s,a,u),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),y&&(d.__E=d.__=null),d.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=mEe(n.__e,t,n,i,r,o,s,u);(f=bt.diffed)&&f(t)}catch(T){t.__v=null,(u||o!=null)&&(t.__e=a,t.__h=!!u,o[o.indexOf(a)]=null),bt.__e(T,t,n)}}function zG(e,t){bt.__c&&bt.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(i){i.call(n)})}catch(i){bt.__e(i,n.__v)}})}function mEe(e,t,n,i,r,o,s,a){var u,f,d,c=n.props,h=t.props,p=t.type,m=0;if(p==="svg"&&(r=!0),o!=null){for(;m<o.length;m++)if((u=o[m])&&"setAttribute"in u==!!p&&(p?u.localName===p:u.nodeType===3)){e=u,o[m]=null;break}}if(e==null){if(p===null)return document.createTextNode(h);e=r?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,h.is&&h),o=null,a=!1}if(p===null)c===h||a&&e.data===h||(e.data=h);else{if(o=o&&Jb.call(e.childNodes),f=(c=n.props||Yb).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!a){if(o!=null)for(c={},m=0;m<e.attributes.length;m++)c[e.attributes[m].name]=e.attributes[m].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(gEe(e,h,c,r,a),d)t.__k=[];else if(m=t.props.children,jG(e,Array.isArray(m)?m:[m],t,n,i,r&&p!=="foreignObject",o,s,o?o[0]:n.__k&&oc(n,0),a),o!=null)for(m=o.length;m--;)o[m]!=null&&OG(o[m]);a||("value"in h&&(m=h.value)!==void 0&&(m!==c.value||m!==e.value||p==="progress"&&!m)&&$b(e,"value",m,c.value,!1),"checked"in h&&(m=h.checked)!==void 0&&m!==e.checked&&$b(e,"checked",m,c.checked,!1))}return e}function VG(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(i){bt.__e(i,n)}}function UG(e,t,n){var i,r;if(bt.unmount&&bt.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||VG(i,null,t)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(o){bt.__e(o,t)}i.base=i.__P=null}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&UG(i[r],t,typeof e.type!="function");n||e.__e==null||OG(e.__e),e.__e=e.__d=void 0}function vEe(e,t,n){return this.constructor(e,n)}function HG(e,t,n){var i,r,o;bt.__&&bt.__(e,t),r=(i=typeof n=="function")?null:n&&n.__k||t.__k,o=[],XE(t,e=(!i&&n||t).__k=YE(rc,null,[e]),r||Yb,Yb,t.ownerSVGElement!==void 0,!i&&n?[n]:r?null:t.firstChild?Jb.call(t.childNodes):null,o,!i&&n?n:r?r.__e:t.firstChild,i),zG(o,e)}Jb=TG.slice,bt={__e:function(e,t){for(var n,i,r;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&i.getDerivedStateFromError!=null&&(n.setState(i.getDerivedStateFromError(e)),r=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e),r=n.__d),r)return n.__E=n}catch(o){e=o}throw e}},BG=0,la.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ml({},this.state),typeof e=="function"&&(e=e(ml({},n),this.props)),e&&ml(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),PG(this))},la.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),PG(this))},la.prototype.render=rc,bm=[],DG=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Zb.__r=0;var yEe=0;function qe(e,t,n,i,r){var o,s,a={};for(s in t)s=="ref"?o=t[s]:a[s]=t[s];var u={type:e,props:a,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--yEe,__source:i,__self:r};if(typeof e=="function"&&(o=e.defaultProps))for(s in o)a[s]===void 0&&(a[s]=o[s]);return bt.vnode&&bt.vnode(u),u}function bEe(e,t){try{window.localStorage[`emoji-mart.${e}`]=JSON.stringify(t)}catch{}}function kEe(e){try{const t=window.localStorage[`emoji-mart.${e}`];if(t)return JSON.parse(t)}catch{}}var za={set:bEe,get:kEe};const ZE=new Map,wEe=[{v:15,emoji:"🫨"},{v:14,emoji:"🫠"},{v:13.1,emoji:"😶‍🌫️"},{v:13,emoji:"🥸"},{v:12.1,emoji:"🧑‍🦰"},{v:12,emoji:"🥱"},{v:11,emoji:"🥰"},{v:5,emoji:"🤩"},{v:4,emoji:"👱‍♀️"},{v:3,emoji:"🤣"},{v:2,emoji:"👋🏻"},{v:1,emoji:"🙃"}];function _Ee(){for(const{v:e,emoji:t}of wEe)if(qG(t))return e}function CEe(){return!qG("🇨🇦")}function qG(e){if(ZE.has(e))return ZE.get(e);const t=SEe(e);return ZE.set(e,t),t}const SEe=(()=>{let e=null;try{navigator.userAgent.includes("jsdom")||(e=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!e)return()=>!1;const t=25,n=20,i=Math.floor(t/2);return e.font=i+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=n*2,e.canvas.height=t,r=>{e.clearRect(0,0,n*2,t),e.fillStyle="#FF0000",e.fillText(r,0,22),e.fillStyle="#0000FF",e.fillText(r,n,22);const o=e.getImageData(0,0,n,t).data,s=o.length;let a=0;for(;a<s&&!o[a+3];a+=4);if(a>=s)return!1;const u=n+a/4%n,f=Math.floor(a/4/n),d=e.getImageData(u,f,1,1).data;return!(o[a]!==d[0]||o[a+2]!==d[2]||e.measureText(r).width>=n)}})();var WG={latestVersion:_Ee,noCountryFlags:CEe};const QE=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let Ii=null;function xEe(e){Ii||(Ii=za.get("frequently")||{});const t=e.id||e;t&&(Ii[t]||(Ii[t]=0),Ii[t]+=1,za.set("last",t),za.set("frequently",Ii))}function EEe({maxFrequentRows:e,perLine:t}){if(!e)return[];Ii||(Ii=za.get("frequently"));let n=[];if(!Ii){Ii={};for(let o in QE.slice(0,t)){const s=QE[o];Ii[s]=t-o,n.push(s)}return n}const i=e*t,r=za.get("last");for(let o in Ii)n.push(o);if(n.sort((o,s)=>{const a=Ii[s],u=Ii[o];return a==u?o.localeCompare(s):a-u}),n.length>i){const o=n.slice(i);n=n.slice(0,i);for(let s of o)s!=r&&delete Ii[s];r&&n.indexOf(r)==-1&&(delete Ii[n[n.length-1]],n.splice(-1,1,r)),za.set("frequently",Ii)}return n}var $E={add:xEe,get:EEe,DEFAULTS:QE},KG={};KG=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var Va={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let Ri=null,Wt=null;const e7={};async function GG(e){if(e7[e])return e7[e];const n=await(await fetch(e)).json();return e7[e]=n,n}let t7=null,JG=null,YG=!1;function km(e,{caller:t}={}){return t7||(t7=new Promise(n=>{JG=n})),e&&BEe(e),t7}async function BEe(e){YG=!0;let{emojiVersion:t,set:n,locale:i}=e;if(t||(t=Va.emojiVersion.value),n||(n=Va.set.value),i||(i=Va.locale.value),Wt)Wt.categories=Wt.categories.filter(u=>!u.name);else{Wt=(typeof e.data=="function"?await e.data():e.data)||await GG(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${n}.json`),Wt.emoticons={},Wt.natives={},Wt.categories.unshift({id:"frequent",emojis:[]});for(const u in Wt.aliases){const f=Wt.aliases[u],d=Wt.emojis[f];d&&(d.aliases||(d.aliases=[]),d.aliases.push(u))}Wt.originalCategories=Wt.categories}if(Ri=(typeof e.i18n=="function"?await e.i18n():e.i18n)||(i=="en"?EG(KG):await GG(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)),e.custom)for(let u in e.custom){u=parseInt(u);const f=e.custom[u],d=e.custom[u-1];if(!(!f.emojis||!f.emojis.length)){f.id||(f.id=`custom_${u+1}`),f.name||(f.name=Ri.categories.custom),d&&!f.icon&&(f.target=d.target||d),Wt.categories.push(f);for(const c of f.emojis)Wt.emojis[c.id]=c}}e.categories&&(Wt.categories=Wt.originalCategories.filter(u=>e.categories.indexOf(u.id)!=-1).sort((u,f)=>{const d=e.categories.indexOf(u.id),c=e.categories.indexOf(f.id);return d-c}));let r=null,o=null;n=="native"&&(r=WG.latestVersion(),o=e.noCountryFlags||WG.noCountryFlags());let s=Wt.categories.length,a=!1;for(;s--;){const u=Wt.categories[s];if(u.id=="frequent"){let{maxFrequentRows:c,perLine:h}=e;c=c>=0?c:Va.maxFrequentRows.value,h||(h=Va.perLine.value),u.emojis=$E.get({maxFrequentRows:c,perLine:h})}if(!u.emojis||!u.emojis.length){Wt.categories.splice(s,1);continue}const{categoryIcons:f}=e;if(f){const c=f[u.id];c&&!u.icon&&(u.icon=c)}let d=u.emojis.length;for(;d--;){const c=u.emojis[d],h=c.id?c:Wt.emojis[c],p=()=>{u.emojis.splice(d,1)};if(!h||e.exceptEmojis&&e.exceptEmojis.includes(h.id)){p();continue}if(r&&h.version>r){p();continue}if(o&&u.id=="flags"&&!QG.includes(h.id)){p();continue}if(!h.search){if(a=!0,h.search=","+[[h.id,!1],[h.name,!0],[h.keywords,!1],[h.emoticons,!1]].map(([y,v])=>{if(y)return(Array.isArray(y)?y:[y]).map(b=>(v?b.split(/[-|_|\s]+/):[b]).map(g=>g.toLowerCase())).flat()}).flat().filter(y=>y&&y.trim()).join(","),h.emoticons)for(const y of h.emoticons)Wt.emoticons[y]||(Wt.emoticons[y]=h.id);let m=0;for(const y of h.skins){if(!y)continue;m++;const{native:v}=y;v&&(Wt.natives[v]=h.id,h.search+=`,${v}`);const b=m==1?"":`:skin-tone-${m}:`;y.shortcodes=`:${h.id}:${b}`}}}}a&&Qu.reset(),JG()}function XG(e,t,n){e||(e={});const i={};for(let r in t)i[r]=ZG(r,e,t,n);return i}function ZG(e,t,n,i){const r=n[e];let o=i&&i.getAttribute(e)||(t[e]!=null&&t[e]!=null?t[e]:null);return r&&(o!=null&&r.value&&typeof r.value!=typeof o&&(typeof r.value=="boolean"?o=o!="false":o=r.value.constructor(o)),r.transform&&o&&(o=r.transform(o)),(o==null||r.choices&&r.choices.indexOf(o)==-1)&&(o=r.value)),o}const DEe=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let n7=null;function AEe(e){return e.id?e:Wt.emojis[e]||Wt.emojis[Wt.aliases[e]]||Wt.emojis[Wt.natives[e]]}function TEe(){n7=null}async function OEe(e,{maxResults:t,caller:n}={}){if(!e||!e.trim().length)return null;t||(t=90),await km(null,{caller:n||"SearchIndex.search"});const i=e.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((a,u,f)=>a.trim()&&f.indexOf(a)==u);if(!i.length)return;let r=n7||(n7=Object.values(Wt.emojis)),o,s;for(const a of i){if(!r.length)break;o=[],s={};for(const u of r){if(!u.search)continue;const f=u.search.indexOf(`,${a}`);f!=-1&&(o.push(u),s[u.id]||(s[u.id]=0),s[u.id]+=u.id==a?0:f+1)}r=o}return o.length<2||(o.sort((a,u)=>{const f=s[a.id],d=s[u.id];return f==d?a.id.localeCompare(u.id):f-d}),o.length>t&&(o=o.slice(0,t))),o}var Qu={search:OEe,get:AEe,reset:TEe,SHORTCODES_REGEX:DEe};const QG=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function FEe(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((n,i)=>n==t[i])}async function PEe(e=1){for(let t in[...Array(e).keys()])await new Promise(requestAnimationFrame)}function jEe(e,{skinIndex:t=0}={}){const n=e.skins[t]||(t=0,e.skins[t]),i={id:e.id,name:e.name,native:n.native,unified:n.unified,keywords:e.keywords,shortcodes:n.shortcodes||e.shortcodes};return e.skins.length>1&&(i.skin=t+1),n.src&&(i.src=n.src),e.aliases&&e.aliases.length&&(i.aliases=e.aliases),e.emoticons&&e.emoticons.length&&(i.emoticons=e.emoticons),i}var ek={categories:{activity:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:qe("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:qe("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:qe("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:qe("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),qe("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),qe("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:qe("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),qe("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:qe("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),qe("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),qe("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:qe("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},search:{loupe:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:qe("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:qe("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})}};function i7(e){let{id:t,skin:n,emoji:i}=e;if(e.shortcodes){const a=e.shortcodes.match(Qu.SHORTCODES_REGEX);a&&(t=a[1],a[2]&&(n=a[2]))}if(i||(i=Qu.get(t||e.native)),!i)return e.fallback;const r=i.skins[n-1]||i.skins[0],o=r.src||(e.set!="native"&&!e.spritesheet?typeof e.getImageURL=="function"?e.getImageURL(e.set,r.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/64/${r.unified}.png`:void 0),s=typeof e.getSpritesheetURL=="function"?e.getSpritesheetURL(e.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/sheets-256/64.png`;return qe("span",{class:"emoji-mart-emoji","data-emoji-set":e.set,children:o?qe("img",{style:{maxWidth:e.size||"1em",maxHeight:e.size||"1em",display:"inline-block"},alt:r.native||r.shortcodes,src:o}):e.set=="native"?qe("span",{style:{fontSize:e.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:r.native}):qe("span",{style:{display:"block",width:e.size,height:e.size,backgroundImage:`url(${s})`,backgroundSize:`${100*Wt.sheet.cols}% ${100*Wt.sheet.rows}%`,backgroundPosition:`${100/(Wt.sheet.cols-1)*r.x}% ${100/(Wt.sheet.rows-1)*r.y}%`}})})}const IEe=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class $G extends IEe{static get observedAttributes(){return Object.keys(this.Props)}update(t={}){for(let n in t)this.attributeChangedCallback(n,null,t[n])}attributeChangedCallback(t,n,i){if(!this.component)return;const r=ZG(t,{[t]:i},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[t]:r}):(this.component.props[t]=r,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(t={}){if(super(),this.props=t,t.parent||t.ref){let n=null;const i=t.parent||(n=t.ref&&t.ref.current);n&&(n.innerHTML=""),i&&i.appendChild(this)}}}class REe extends $G{setShadow(){this.attachShadow({mode:"open"})}injectStyles(t){if(!t)return;const n=document.createElement("style");n.textContent=t,this.shadowRoot.insertBefore(n,this.shadowRoot.firstChild)}constructor(t,{styles:n}={}){super(t),this.setShadow(),this.injectStyles(n)}}var eJ={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:e=>/\D/.test(e)?e:`${e}px`},set:Va.set,skin:Va.skin};class r7 extends $G{async connectedCallback(){const t=XG(this.props,eJ,this);t.element=this,t.ref=n=>{this.component=n},await km(),!this.disconnected&&HG(qe(i7,{...t}),this)}constructor(t){super(t)}}ao(r7,"Props",eJ),typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",r7);var tJ,o7=[],nJ=bt.__b,iJ=bt.__r,rJ=bt.diffed,oJ=bt.__c,aJ=bt.unmount;function NEe(){var e;for(o7.sort(function(t,n){return t.__v.__b-n.__v.__b});e=o7.pop();)if(e.__P)try{e.__H.__h.forEach(tk),e.__H.__h.forEach(a7),e.__H.__h=[]}catch(t){e.__H.__h=[],bt.__e(t,e.__v)}}bt.__b=function(e){nJ&&nJ(e)},bt.__r=function(e){iJ&&iJ(e);var t=e.__c.__H;t&&(t.__h.forEach(tk),t.__h.forEach(a7),t.__h=[])},bt.diffed=function(e){rJ&&rJ(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(o7.push(t)!==1&&tJ===bt.requestAnimationFrame||((tJ=bt.requestAnimationFrame)||function(n){var i,r=function(){clearTimeout(o),sJ&&cancelAnimationFrame(i),setTimeout(n)},o=setTimeout(r,100);sJ&&(i=requestAnimationFrame(r))})(NEe))},bt.__c=function(e,t){t.some(function(n){try{n.__h.forEach(tk),n.__h=n.__h.filter(function(i){return!i.__||a7(i)})}catch(i){t.some(function(r){r.__h&&(r.__h=[])}),t=[],bt.__e(i,n.__v)}}),oJ&&oJ(e,t)},bt.unmount=function(e){aJ&&aJ(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(i){try{tk(i)}catch(r){t=r}}),t&&bt.__e(t,n.__v))};var sJ=typeof requestAnimationFrame=="function";function tk(e){var t=e.__c;typeof t=="function"&&(e.__c=void 0,t())}function a7(e){e.__c=e.__()}function MEe(e,t){for(var n in t)e[n]=t[n];return e}function lJ(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var i in t)if(i!=="__source"&&e[i]!==t[i])return!0;return!1}function nk(e){this.props=e}(nk.prototype=new la).isPureReactComponent=!0,nk.prototype.shouldComponentUpdate=function(e,t){return lJ(this.props,e)||lJ(this.state,t)};var uJ=bt.__b;bt.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),uJ&&uJ(e)};var LEe=bt.__e;bt.__e=function(e,t,n){if(e.then){for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}LEe(e,t,n)};var fJ=bt.unmount;function s7(){this.__u=0,this.t=null,this.__b=null}function dJ(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function ik(){this.u=null,this.o=null}bt.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),fJ&&fJ(e)},(s7.prototype=new la).__c=function(e,t){var n=t.__c,i=this;i.t==null&&(i.t=[]),i.t.push(n);var r=dJ(i.__v),o=!1,s=function(){o||(o=!0,n.__R=null,r?r(a):a())};n.__R=s;var a=function(){if(!--i.__u){if(i.state.__e){var f=i.state.__e;i.__v.__k[0]=function c(h,p,m){return h&&(h.__v=null,h.__k=h.__k&&h.__k.map(function(y){return c(y,p,m)}),h.__c&&h.__c.__P===p&&(h.__e&&m.insertBefore(h.__e,h.__d),h.__c.__e=!0,h.__c.__P=m)),h}(f,f.__c.__P,f.__c.__O)}var d;for(i.setState({__e:i.__b=null});d=i.t.pop();)d.forceUpdate()}},u=t.__h===!0;i.__u++||u||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(s,s)},s7.prototype.componentWillUnmount=function(){this.t=[]},s7.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function o(s,a,u){return s&&(s.__c&&s.__c.__H&&(s.__c.__H.__.forEach(function(f){typeof f.__c=="function"&&f.__c()}),s.__c.__H=null),(s=MEe({},s)).__c!=null&&(s.__c.__P===u&&(s.__c.__P=a),s.__c=null),s.__k=s.__k&&s.__k.map(function(f){return o(f,a,u)})),s}(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__e&&YE(rc,null,e.fallback);return r&&(r.__h=null),[YE(rc,null,t.__e?null:e.children),r]};var cJ=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(ik.prototype=new la).__e=function(e){var t=this,n=dJ(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),cJ(t,e,i)):r()};n?n(o):o()}},ik.prototype.render=function(e){this.u=null,this.o=new Map;var t=Qb(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ik.prototype.componentDidUpdate=ik.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){cJ(e,n,t)})};var zEe=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,VEe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,UEe=typeof document<"u",HEe=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};la.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(la.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var hJ=bt.event;function qEe(){}function WEe(){return this.cancelBubble}function KEe(){return this.defaultPrevented}bt.event=function(e){return hJ&&(e=hJ(e)),e.persist=qEe,e.isPropagationStopped=WEe,e.isDefaultPrevented=KEe,e.nativeEvent=e};var pJ={configurable:!0,get:function(){return this.class}},gJ=bt.vnode;bt.vnode=function(e){var t=e.type,n=e.props,i=n;if(typeof t=="string"){var r=t.indexOf("-")===-1;for(var o in i={},n){var s=n[o];UEe&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in n&&s==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&s===!0?s="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!HEe(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():r&&VEe.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():s===null&&(s=void 0),i[o]=s)}t=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Qb(n.children).forEach(function(a){a.props.selected=i.value.indexOf(a.props.value)!=-1})),t=="select"&&i.defaultValue!=null&&(i.value=Qb(n.children).forEach(function(a){a.props.selected=i.multiple?i.defaultValue.indexOf(a.props.value)!=-1:i.defaultValue==a.props.value})),e.props=i,n.class!=n.className&&(pJ.enumerable="className"in n,n.className!=null&&(i.class=n.className),Object.defineProperty(i,"className",pJ))}e.$$typeof=zEe,gJ&&gJ(e)};var mJ=bt.__r;bt.__r=function(e){mJ&&mJ(e),e.__c};const GEe={light:"outline",dark:"solid"};class JEe extends nk{renderIcon(t){const{icon:n}=t;if(n){if(n.svg)return qe("span",{class:"flex",dangerouslySetInnerHTML:{__html:n.svg}});if(n.src)return qe("img",{src:n.src})}const i=ek.categories[t.id]||ek.categories.custom,r=this.props.icons=="auto"?GEe[this.props.theme]:this.props.icons;return i[r]||i}render(){let t=null;return qe("nav",{id:"nav",class:"padding","data-position":this.props.position,dir:this.props.dir,children:qe("div",{class:"flex relative",children:[this.categories.map((n,i)=>{const r=n.name||Ri.categories[n.id],o=!this.props.unfocused&&n.id==this.state.categoryId;return o&&(t=i),qe("button",{"aria-label":r,"aria-selected":o||void 0,title:r,type:"button",class:"flex flex-grow flex-center",onMouseDown:s=>s.preventDefault(),onClick:()=>{this.props.onClick({category:n,i})},children:this.renderIcon(n)})}),qe("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:t==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${t*100}%)`:`translateX(${t*100}%)`}})]})})}constructor(){super(),this.categories=Wt.categories.filter(t=>!t.target),this.state={categoryId:this.categories[0].id}}}class YEe extends nk{shouldComponentUpdate(t){for(let n in t)if(n!="children"&&t[n]!=this.props[n])return!0;return!1}render(){return this.props.children}}const rk={rowsPerRender:10};class XEe extends la{getInitialState(t=this.props){return{skin:za.get("skin")||t.skin,theme:this.initTheme(t.theme)}}componentWillMount(){this.dir=Ri.rtl?"rtl":"ltr",this.refs={menu:La(),navigation:La(),scroll:La(),search:La(),searchInput:La(),skinToneButton:La(),skinToneRadio:La()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:t}=this.refs;t.current&&t.current.focus()}}componentWillReceiveProps(t){this.nextState||(this.nextState={});for(const n in t)this.nextState[n]=t[n];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let n=!1;for(const r in this.nextState)this.props[r]=this.nextState[r],(r==="custom"||r==="categories")&&(n=!0);delete this.nextState;const i=this.getInitialState();if(n)return this.reset(i);this.setState(i)})}componentWillUnmount(){this.unregister()}async reset(t={}){await km(this.props),this.initGrid(),this.unobserve(),this.setState(t,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var t;document.removeEventListener("click",this.handleClickOutside),(t=this.darkMedia)==null||t.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:t=[]}={}){Array.isArray(t)||(t=[t]);for(const n of this.observers)t.includes(n)||n.disconnect();this.observers=[].concat(t)}initGrid(){const{categories:t}=Wt;this.refs.categories=new Map;const n=Wt.categories.map(r=>r.id).join(",");this.navKey&&this.navKey!=n&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=n,this.grid=[],this.grid.setsize=0;const i=(r,o)=>{const s=[];s.__categoryId=o.id,s.__index=r.length,this.grid.push(s);const a=this.grid.length-1,u=a%rk.rowsPerRender?{}:La();return u.index=a,u.posinset=this.grid.setsize+1,r.push(u),s};for(let r of t){const o=[];let s=i(o,r);for(let a of r.emojis)s.length==this.getPerLine()&&(s=i(o,r)),this.grid.setsize+=1,s.push(a);this.refs.categories.set(r.id,{root:La(),rows:o})}}initTheme(t){if(t!="auto")return t;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(t=this.props){if(!t.dynamicWidth)return;const{element:n,emojiButtonSize:i}=t,r=()=>{const{width:s}=n.getBoundingClientRect();return Math.floor(s/i)},o=new ResizeObserver(()=>{this.unobserve({except:o}),this.setState({perLine:r()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return o.observe(n),this.observers.push(o),r()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([t,n]){const i=this.state.searchResults||this.grid,r=i[t]&&i[t][n];if(r)return Qu.get(r)}observeCategories(){const t=this.refs.navigation.current;if(!t)return;const n=new Map,i=s=>{s!=t.state.categoryId&&t.setState({categoryId:s})},r={root:this.refs.scroll.current,threshold:[0,1]},o=new IntersectionObserver(s=>{for(const u of s){const f=u.target.dataset.id;n.set(f,u.intersectionRatio)}const a=[...n];for(const[u,f]of a)if(f){i(u);break}},r);for(const{root:s}of this.refs.categories.values())o.observe(s.current);this.observers.push(o)}observeRows(){const t={...this.state.visibleRows},n=new IntersectionObserver(i=>{for(const r of i){const o=parseInt(r.target.dataset.index);r.isIntersecting?t[o]=!0:delete t[o]}this.setState({visibleRows:t})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(rk.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*rk.rowsPerRender}px`});for(const{rows:i}of this.refs.categories.values())for(const r of i)r.current&&n.observe(r.current);this.observers.push(n)}preventDefault(t){t.preventDefault()}unfocusSearch(){const t=this.refs.searchInput.current;t&&t.blur()}navigate({e:t,input:n,left:i,right:r,up:o,down:s}){const a=this.state.searchResults||this.grid;if(!a.length)return;let[u,f]=this.state.pos;const d=(()=>{if(u==0&&f==0&&!t.repeat&&(i||o))return null;if(u==-1)return!t.repeat&&(r||s)&&n.selectionStart==n.value.length?[0,0]:null;if(i||r){let c=a[u];const h=i?-1:1;if(f+=h,!c[f]){if(u+=h,c=a[u],!c)return u=i?0:a.length-1,f=i?0:a[u].length-1,[u,f];f=i?c.length-1:0}return[u,f]}if(o||s){u+=o?-1:1;const c=a[u];return c?(c[f]||(f=c.length-1),[u,f]):(u=o?0:a.length-1,f=o?0:a[u].length-1,[u,f])}})();if(d)t.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:d,keyboard:!0},()=>{this.scrollTo({row:d[0]})})}scrollTo({categoryId:t,row:n}){const i=this.state.searchResults||this.grid;if(!i.length)return;const r=this.refs.scroll.current,o=r.getBoundingClientRect();let s=0;if(n>=0&&(t=i[n].__categoryId),t&&(s=(this.refs[t]||this.refs.categories.get(t).root).current.getBoundingClientRect().top-(o.top-r.scrollTop)+1),n>=0)if(!n)s=0;else{const a=i[n].__index,u=s+a*this.props.emojiButtonSize,f=u+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(u<r.scrollTop)s=u;else if(f>r.scrollTop+o.height)s=f-o.height;else return}this.ignoreMouse(),r.scrollTop=s}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(t){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:t||[-1,-1],keyboard:!1})}handleEmojiClick({e:t,emoji:n,pos:i}){if(this.props.onEmojiSelect&&(!n&&i&&(n=this.getEmojiByPos(i)),n)){const r=jEe(n,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&$E.add(r,this.props),this.props.onEmojiSelect(r,t)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(t){this.setState({tempSkin:t})}handleSkinClick(t){this.ignoreMouse(),this.closeSkins(),this.setState({skin:t,tempSkin:null}),za.set("skin",t)}renderNav(){return qe(JEe,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const t=this.getEmojiByPos(this.state.pos),n=this.state.searchResults&&!this.state.searchResults.length;return qe("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[qe("div",{class:"flex flex-middle flex-grow",children:[qe("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:qe(i7,{emoji:t,id:n?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),qe("div",{class:`margin-${this.dir[0]}`,children:t||n?qe("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[qe("div",{class:"preview-title ellipsis",children:t?t.name:Ri.search_no_results_1}),qe("div",{class:"preview-subtitle ellipsis color-c",children:t?t.skins[0].shortcodes:Ri.search_no_results_2})]}):qe("div",{class:"preview-placeholder color-c",children:Ri.pick})})]}),!t&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(t,{pos:n,posinset:i,grid:r}){const o=this.props.emojiButtonSize,s=this.state.tempSkin||this.state.skin,u=(t.skins[s-1]||t.skins[0]).native,f=FEe(this.state.pos,n),d=n.concat(t.id).join("");return qe(YEe,{selected:f,skin:s,size:o,children:qe("button",{"aria-label":u,"aria-selected":f||void 0,"aria-posinset":i,"aria-setsize":r.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?t.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:c=>this.handleEmojiClick({e:c,emoji:t}),onMouseEnter:()=>this.handleEmojiOver(n),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[qe("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(i-1)%this.props.emojiButtonColors.length]:void 0}}),qe(i7,{emoji:t,set:this.props.set,size:this.props.emojiSize,skin:s,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},d)}renderSearch(){const t=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return qe("div",{children:[qe("div",{class:"spacer"}),qe("div",{class:"flex flex-middle",children:[qe("div",{class:"search relative flex-grow",children:[qe("input",{type:"search",ref:this.refs.searchInput,placeholder:Ri.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),qe("span",{class:"icon loupe flex",children:ek.search.loupe}),this.state.searchResults&&qe("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:ek.search.delete})]}),t&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:t}=this.state;return t?qe("div",{class:"category",ref:this.refs.search,children:[qe("div",{class:`sticky padding-small align-${this.dir[0]}`,children:Ri.categories.search}),qe("div",{children:t.length?t.map((n,i)=>qe("div",{class:"flex",children:n.map((r,o)=>this.renderEmojiButton(r,{pos:[i,o],posinset:i*this.props.perLine+o+1,grid:t}))})):qe("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&qe("a",{onClick:this.props.onAddCustomEmoji,children:Ri.add_custom})})})]}):null}renderCategories(){const{categories:t}=Wt,n=!!this.state.searchResults,i=this.getPerLine();return qe("div",{style:{visibility:n?"hidden":void 0,display:n?"none":void 0,height:"100%"},children:t.map(r=>{const{root:o,rows:s}=this.refs.categories.get(r.id);return qe("div",{"data-id":r.target?r.target.id:r.id,class:"category",ref:o,children:[qe("div",{class:`sticky padding-small align-${this.dir[0]}`,children:r.name||Ri.categories[r.id]}),qe("div",{class:"relative",style:{height:s.length*this.props.emojiButtonSize},children:s.map((a,u)=>{const f=a.index-a.index%rk.rowsPerRender,d=this.state.visibleRows[f],c="current"in a?a:void 0;if(!d&&!c)return null;const h=u*i,p=h+i,m=r.emojis.slice(h,p);return m.length<i&&m.push(...new Array(i-m.length)),qe("div",{"data-index":a.index,ref:c,class:"flex row",style:{top:u*this.props.emojiButtonSize},children:d&&m.map((y,v)=>{if(!y)return qe("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const b=Qu.get(y);return this.renderEmojiButton(b,{pos:[a.index,v],posinset:a.posinset+v,grid:this.grid})})},a.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:qe("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:qe("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":Ri.skins.choose,title:Ri.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:qe("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const t=this.getEmojiByPos(this.state.pos),n=t?t.name:"";return qe("div",{"aria-live":"polite",class:"sr-only",children:n})}renderSkins(){const n=this.refs.skinToneButton.current.getBoundingClientRect(),i=this.base.getBoundingClientRect(),r={};return this.dir=="ltr"?r.right=i.right-n.right-3:r.left=n.left-i.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?r.bottom=i.bottom-n.top+6:(r.top=n.bottom-i.top+3,r.bottom="auto"),qe("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":Ri.skins.choose,class:"menu hidden","data-position":r.top?"top":"bottom",style:r,children:[...Array(6).keys()].map(o=>{const s=o+1,a=this.state.skin==s;return qe("div",{children:[qe("input",{type:"radio",name:"skin-tone",value:s,"aria-label":Ri.skins[s],ref:a?this.refs.skinToneRadio:null,defaultChecked:a,onChange:()=>this.handleSkinMouseOver(s),onKeyDown:u=>{(u.code=="Enter"||u.code=="Space"||u.code=="Tab")&&(u.preventDefault(),this.handleSkinClick(s))}}),qe("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(s),onMouseEnter:()=>this.handleSkinMouseOver(s),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[qe("span",{class:`skin-tone skin-tone-${s}`}),qe("span",{class:"margin-small-lr",children:Ri.skins[s]})]})]})})})}render(){const t=this.props.perLine*this.props.emojiButtonSize;return qe("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${t}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&qe("div",{class:"padding-lr",children:this.renderSearch()}),qe("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:qe("div",{style:{width:this.props.dynamicWidth?"100%":t,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(t){super(),ao(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),ao(this,"handleClickOutside",n=>{const{element:i}=this.props;n.target!=i&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(n))}),ao(this,"handleBaseClick",n=>{this.state.showSkins&&(n.target.closest(".menu")||(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins()))}),ao(this,"handleBaseKeydown",n=>{this.state.showSkins&&n.key=="Escape"&&(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins())}),ao(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),ao(this,"handleSearchInput",async()=>{const n=this.refs.searchInput.current;if(!n)return;const{value:i}=n,r=await Qu.search(i),o=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!r)return this.setState({searchResults:r,pos:[-1,-1]},o);const s=n.selectionStart==n.value.length?[0,0]:[-1,-1],a=[];a.setsize=r.length;let u=null;for(let f of r)(!a.length||u.length==this.getPerLine())&&(u=[],u.__categoryId="search",u.__index=a.length,a.push(u)),u.push(f);this.ignoreMouse(),this.setState({searchResults:a,pos:s},o)}),ao(this,"handleSearchKeyDown",n=>{const i=n.currentTarget;switch(n.stopImmediatePropagation(),n.key){case"ArrowLeft":this.navigate({e:n,input:i,left:!0});break;case"ArrowRight":this.navigate({e:n,input:i,right:!0});break;case"ArrowUp":this.navigate({e:n,input:i,up:!0});break;case"ArrowDown":this.navigate({e:n,input:i,down:!0});break;case"Enter":n.preventDefault(),this.handleEmojiClick({e:n,pos:this.state.pos});break;case"Escape":n.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),ao(this,"clearSearch",()=>{const n=this.refs.searchInput.current;n&&(n.value="",n.focus(),this.handleSearchInput())}),ao(this,"handleCategoryClick",({category:n,i})=>{this.scrollTo(i==0?{row:-1}:{categoryId:n.id})}),ao(this,"openSkins",n=>{const{currentTarget:i}=n,r=i.getBoundingClientRect();this.setState({showSkins:r},async()=>{await PEe(2);const o=this.refs.menu.current;o&&(o.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(t),visibleRows:{0:!0},...this.getInitialState(t)}}}class l7 extends REe{async connectedCallback(){const t=XG(this.props,Va,this);t.element=this,t.ref=n=>{this.component=n},await km(t),!this.disconnected&&HG(qe(XEe,{...t}),this.shadowRoot)}constructor(t){super(t,{styles:EG(vJ)})}}ao(l7,"Props",Va),typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",l7);var vJ={};vJ=`:host {
218
+ */function WK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function aa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WK(Object(n),!0).forEach(function(i){n8e(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WK(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Pb(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pb=function(t){return typeof t}:Pb=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pb(e)}function n8e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ra(){return Ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ra.apply(this,arguments)}function i8e(e,t){if(e==null)return{};var n={},i=Object.keys(e),r,o;for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}function r8e(e,t){if(e==null)return{};var n=i8e(e,t),i,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}var o8e="1.15.2";function Na(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Ma=Na(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),um=Na(/Edge/i),KK=Na(/firefox/i),fm=Na(/safari/i)&&!Na(/chrome/i)&&!Na(/android/i),GK=Na(/iP(ad|od|hone)/i),JK=Na(/chrome/i)&&Na(/android/i),YK={capture:!1,passive:!1};function sn(e,t,n){e.addEventListener(t,n,!Ma&&YK)}function tn(e,t,n){e.removeEventListener(t,n,!Ma&&YK)}function jb(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function a8e(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Do(e,t,n,i){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&jb(e,t):jb(e,t))||i&&e===n)return e;if(e===n)break}while(e=a8e(e))}return null}var XK=/\s+/g;function jr(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(XK," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(XK," ")}}function Ct(e,t,n){var i=e&&e.style;if(i){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in i)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),i[t]=n+(typeof n=="string"?"":"px")}}function Qd(e,t){var n="";if(typeof e=="string")n=e;else do{var i=Ct(e,"transform");i&&i!=="none"&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function ZK(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n)for(;r<o;r++)n(i[r],r);return i}return[]}function sa(){var e=document.scrollingElement;return e||document.documentElement}function di(e,t,n,i,r){if(!(!e.getBoundingClientRect&&e!==window)){var o,s,a,u,f,d,c;if(e!==window&&e.parentNode&&e!==sa()?(o=e.getBoundingClientRect(),s=o.top,a=o.left,u=o.bottom,f=o.right,d=o.height,c=o.width):(s=0,a=0,u=window.innerHeight,f=window.innerWidth,d=window.innerHeight,c=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!Ma))do if(r&&r.getBoundingClientRect&&(Ct(r,"transform")!=="none"||n&&Ct(r,"position")!=="static")){var h=r.getBoundingClientRect();s-=h.top+parseInt(Ct(r,"border-top-width")),a-=h.left+parseInt(Ct(r,"border-left-width")),u=s+o.height,f=a+o.width;break}while(r=r.parentNode);if(i&&e!==window){var p=Qd(r||e),m=p&&p.a,y=p&&p.d;p&&(s/=y,a/=m,c/=m,d/=y,u=s+d,f=a+c)}return{top:s,left:a,bottom:u,right:f,width:c,height:d}}}function QK(e,t,n){for(var i=hl(e,!0),r=di(e)[t];i;){var o=di(i)[n],s=void 0;if(s=r>=o,!s)return i;if(i===sa())break;i=hl(i,!1)}return!1}function $d(e,t,n,i){for(var r=0,o=0,s=e.children;o<s.length;){if(s[o].style.display!=="none"&&s[o]!==St.ghost&&(i||s[o]!==St.dragged)&&Do(s[o],n.draggable,e,!1)){if(r===t)return s[o];r++}o++}return null}function AE(e,t){for(var n=e.lastElementChild;n&&(n===St.ghost||Ct(n,"display")==="none"||t&&!jb(n,t));)n=n.previousElementSibling;return n||null}function oo(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==St.clone&&(!t||jb(e,t))&&n++;return n}function $K(e){var t=0,n=0,i=sa();if(e)do{var r=Qd(e),o=r.a,s=r.d;t+=e.scrollLeft*o,n+=e.scrollTop*s}while(e!==i&&(e=e.parentNode));return[t,n]}function s8e(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n)}return-1}function hl(e,t){if(!e||!e.getBoundingClientRect)return sa();var n=e,i=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=Ct(n);if(n.clientWidth<n.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return sa();if(i||t)return n;i=!0}}while(n=n.parentNode);return sa()}function l8e(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function TE(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var dm;function eG(e,t){return function(){if(!dm){var n=arguments,i=this;n.length===1?e.call(i,n[0]):e.apply(i,n),dm=setTimeout(function(){dm=void 0},t)}}}function u8e(){clearTimeout(dm),dm=void 0}function tG(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function nG(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function iG(e,t,n){var i={};return Array.from(e.children).forEach(function(r){var o,s,a,u;if(!(!Do(r,t.draggable,e,!1)||r.animated||r===n)){var f=di(r);i.left=Math.min((o=i.left)!==null&&o!==void 0?o:1/0,f.left),i.top=Math.min((s=i.top)!==null&&s!==void 0?s:1/0,f.top),i.right=Math.max((a=i.right)!==null&&a!==void 0?a:-1/0,f.right),i.bottom=Math.max((u=i.bottom)!==null&&u!==void 0?u:-1/0,f.bottom)}}),i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}var Ir="Sortable"+new Date().getTime();function f8e(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(i){if(!(Ct(i,"display")==="none"||i===St.ghost)){e.push({target:i,rect:di(i)});var r=aa({},e[e.length-1].rect);if(i.thisAnimationDuration){var o=Qd(i,!0);o&&(r.top-=o.f,r.left-=o.e)}i.fromRect=r}})}},addAnimationState:function(n){e.push(n)},removeAnimationState:function(n){e.splice(s8e(e,{target:n}),1)},animateAll:function(n){var i=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var r=!1,o=0;e.forEach(function(s){var a=0,u=s.target,f=u.fromRect,d=di(u),c=u.prevFromRect,h=u.prevToRect,p=s.rect,m=Qd(u,!0);m&&(d.top-=m.f,d.left-=m.e),u.toRect=d,u.thisAnimationDuration&&TE(c,d)&&!TE(f,d)&&(p.top-d.top)/(p.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(a=c8e(p,c,h,i.options)),TE(d,f)||(u.prevFromRect=f,u.prevToRect=d,a||(a=i.options.animation),i.animate(u,p,d,a)),a&&(r=!0,o=Math.max(o,a),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},a),u.thisAnimationDuration=a)}),clearTimeout(t),r?t=setTimeout(function(){typeof n=="function"&&n()},o):typeof n=="function"&&n(),e=[]},animate:function(n,i,r,o){if(o){Ct(n,"transition",""),Ct(n,"transform","");var s=Qd(this.el),a=s&&s.a,u=s&&s.d,f=(i.left-r.left)/(a||1),d=(i.top-r.top)/(u||1);n.animatingX=!!f,n.animatingY=!!d,Ct(n,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=d8e(n),Ct(n,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),Ct(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){Ct(n,"transition",""),Ct(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},o)}}}}function d8e(e){return e.offsetWidth}function c8e(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}var ec=[],OE={initializeByDefault:!0},cm={mount:function(e){for(var t in OE)OE.hasOwnProperty(t)&&!(t in e)&&(e[t]=OE[t]);ec.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),ec.push(e)},pluginEvent:function(e,t,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var r=e+"Global";ec.forEach(function(o){t[o.pluginName]&&(t[o.pluginName][r]&&t[o.pluginName][r](aa({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](aa({sortable:t},n)))})},initializePlugins:function(e,t,n,i){ec.forEach(function(s){var a=s.pluginName;if(!(!e.options[a]&&!s.initializeByDefault)){var u=new s(e,t,e.options);u.sortable=e,u.options=e.options,e[a]=u,Ra(n,u.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var o=this.modifyOption(e,r,e.options[r]);typeof o<"u"&&(e.options[r]=o)}},getEventProperties:function(e,t){var n={};return ec.forEach(function(i){typeof i.eventProperties=="function"&&Ra(n,i.eventProperties.call(t[i.pluginName],e))}),n},modifyOption:function(e,t,n){var i;return ec.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[t]=="function"&&(i=r.optionListeners[t].call(e[r.pluginName],n))}),i}};function h8e(e){var t=e.sortable,n=e.rootEl,i=e.name,r=e.targetEl,o=e.cloneEl,s=e.toEl,a=e.fromEl,u=e.oldIndex,f=e.newIndex,d=e.oldDraggableIndex,c=e.newDraggableIndex,h=e.originalEvent,p=e.putSortable,m=e.extraEventProperties;if(t=t||n&&n[Ir],!!t){var y,v=t.options,b="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!Ma&&!um?y=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(i,!0,!0)),y.to=s||n,y.from=a||n,y.item=r||n,y.clone=o,y.oldIndex=u,y.newIndex=f,y.oldDraggableIndex=d,y.newDraggableIndex=c,y.originalEvent=h,y.pullMode=p?p.lastPutMode:void 0;var g=aa(aa({},m),cm.getEventProperties(i,t));for(var k in g)y[k]=g[k];n&&n.dispatchEvent(y),v[b]&&v[b].call(t,y)}}var p8e=["evt"],yr=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.evt,r=r8e(n,p8e);cm.pluginEvent.bind(St)(e,t,aa({dragEl:ot,parentEl:qn,ghostEl:jt,rootEl:jn,nextEl:Yu,lastDownEl:Ib,cloneEl:zn,cloneHidden:pl,dragStarted:pm,putSortable:ji,activeSortable:St.active,originalEvent:i,oldIndex:tc,oldDraggableIndex:hm,newIndex:Rr,newDraggableIndex:gl,hideGhostForTarget:fG,unhideGhostForTarget:dG,cloneNowHidden:function(){pl=!0},cloneNowShown:function(){pl=!1},dispatchSortableEvent:function(o){nr({sortable:t,name:o,originalEvent:i})}},r))};function nr(e){h8e(aa({putSortable:ji,cloneEl:zn,targetEl:ot,rootEl:jn,oldIndex:tc,oldDraggableIndex:hm,newIndex:Rr,newDraggableIndex:gl},e))}var ot,qn,jt,jn,Yu,Ib,zn,pl,tc,Rr,hm,gl,Rb,ji,nc=!1,Nb=!1,Mb=[],Xu,Ao,FE,PE,rG,oG,pm,ic,gm,mm=!1,Lb=!1,zb,Yi,jE=[],IE=!1,Vb=[],Ub=typeof document<"u",Hb=GK,aG=um||Ma?"cssFloat":"float",g8e=Ub&&!JK&&!GK&&"draggable"in document.createElement("div"),sG=function(){if(Ub){if(Ma)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),lG=function(e,t){var n=Ct(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=$d(e,0,t),o=$d(e,1,t),s=r&&Ct(r),a=o&&Ct(o),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+di(r).width,f=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+di(o).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&s.float&&s.float!=="none"){var d=s.float==="left"?"left":"right";return o&&(a.clear==="both"||a.clear===d)?"vertical":"horizontal"}return r&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||u>=i&&n[aG]==="none"||o&&n[aG]==="none"&&u+f>i)?"vertical":"horizontal"},m8e=function(e,t,n){var i=n?e.left:e.top,r=n?e.right:e.bottom,o=n?e.width:e.height,s=n?t.left:t.top,a=n?t.right:t.bottom,u=n?t.width:t.height;return i===s||r===a||i+o/2===s+u/2},v8e=function(e,t){var n;return Mb.some(function(i){var r=i[Ir].options.emptyInsertThreshold;if(!(!r||AE(i))){var o=di(i),s=e>=o.left-r&&e<=o.right+r,a=t>=o.top-r&&t<=o.bottom+r;if(s&&a)return n=i}}),n},uG=function(e){function t(r,o){return function(s,a,u,f){var d=s.options.group.name&&a.options.group.name&&s.options.group.name===a.options.group.name;if(r==null&&(o||d))return!0;if(r==null||r===!1)return!1;if(o&&r==="clone")return r;if(typeof r=="function")return t(r(s,a,u,f),o)(s,a,u,f);var c=(o?s:a).options.group.name;return r===!0||typeof r=="string"&&r===c||r.join&&r.indexOf(c)>-1}}var n={},i=e.group;(!i||Pb(i)!="object")&&(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},fG=function(){!sG&&jt&&Ct(jt,"display","none")},dG=function(){!sG&&jt&&Ct(jt,"display","")};Ub&&!JK&&document.addEventListener("click",function(e){if(Nb)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Nb=!1,!1},!0);var Zu=function(e){if(ot){e=e.touches?e.touches[0]:e;var t=v8e(e.clientX,e.clientY);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Ir]._onDragOver(n)}}},y8e=function(e){ot&&ot.parentNode[Ir]._isOutsideThisEl(e.target)};function St(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Ra({},t),e[Ir]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return lG(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,s){o.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:St.supportPointer!==!1&&"PointerEvent"in window&&!fm,emptyInsertThreshold:5};cm.initializePlugins(this,e,n);for(var i in n)!(i in t)&&(t[i]=n[i]);uG(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:g8e,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?sn(e,"pointerdown",this._onTapStart):(sn(e,"mousedown",this._onTapStart),sn(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(sn(e,"dragover",this),sn(e,"dragenter",this)),Mb.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ra(this,f8e())}St.prototype={constructor:St,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ic=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,ot):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,r=i.preventOnFilter,o=e.type,s=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,a=(s||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||a,f=i.filter;if(E8e(n),!ot&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&fm&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=Do(a,i.draggable,n,!1),!(a&&a.animated)&&Ib!==a)){if(tc=oo(a),hm=oo(a,i.draggable),typeof f=="function"){if(f.call(this,e,a,this)){nr({sortable:t,rootEl:u,name:"filter",targetEl:a,toEl:n,fromEl:n}),yr("filter",t,{evt:e}),r&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=Do(u,d.trim(),n,!1),d)return nr({sortable:t,rootEl:d,name:"filter",targetEl:a,fromEl:n,toEl:n}),yr("filter",t,{evt:e}),!0}),f)){r&&e.cancelable&&e.preventDefault();return}i.handle&&!Do(u,i.handle,n,!1)||this._prepareDragStart(e,s,a)}}},_prepareDragStart:function(e,t,n){var i=this,r=i.el,o=i.options,s=r.ownerDocument,a;if(n&&!ot&&n.parentNode===r){var u=di(n);if(jn=r,ot=n,qn=ot.parentNode,Yu=ot.nextSibling,Ib=n,Rb=o.group,St.dragged=ot,Xu={target:ot,clientX:(t||e).clientX,clientY:(t||e).clientY},rG=Xu.clientX-u.left,oG=Xu.clientY-u.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ot.style["will-change"]="all",a=function(){if(yr("delayEnded",i,{evt:e}),St.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!KK&&i.nativeDraggable&&(ot.draggable=!0),i._triggerDragStart(e,t),nr({sortable:i,name:"choose",originalEvent:e}),jr(ot,o.chosenClass,!0)},o.ignore.split(",").forEach(function(f){ZK(ot,f.trim(),RE)}),sn(s,"dragover",Zu),sn(s,"mousemove",Zu),sn(s,"touchmove",Zu),sn(s,"mouseup",i._onDrop),sn(s,"touchend",i._onDrop),sn(s,"touchcancel",i._onDrop),KK&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ot.draggable=!0),yr("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(um||Ma))){if(St.eventCanceled){this._onDrop();return}sn(s,"mouseup",i._disableDelayedDrag),sn(s,"touchend",i._disableDelayedDrag),sn(s,"touchcancel",i._disableDelayedDrag),sn(s,"mousemove",i._delayedDragTouchMoveHandler),sn(s,"touchmove",i._delayedDragTouchMoveHandler),o.supportPointer&&sn(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(a,o.delay)}else a()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ot&&RE(ot),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;tn(e,"mouseup",this._disableDelayedDrag),tn(e,"touchend",this._disableDelayedDrag),tn(e,"touchcancel",this._disableDelayedDrag),tn(e,"mousemove",this._delayedDragTouchMoveHandler),tn(e,"touchmove",this._delayedDragTouchMoveHandler),tn(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?sn(document,"pointermove",this._onTouchMove):t?sn(document,"touchmove",this._onTouchMove):sn(document,"mousemove",this._onTouchMove):(sn(ot,"dragend",this),sn(jn,"dragstart",this._onDragStart));try{document.selection?Wb(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(nc=!1,jn&&ot){yr("dragStarted",this,{evt:t}),this.nativeDraggable&&sn(document,"dragover",y8e);var n=this.options;!e&&jr(ot,n.dragClass,!1),jr(ot,n.ghostClass,!0),St.active=this,e&&this._appendGhost(),nr({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ao){this._lastX=Ao.clientX,this._lastY=Ao.clientY,fG();for(var e=document.elementFromPoint(Ao.clientX,Ao.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ao.clientX,Ao.clientY),e!==t);)t=e;if(ot.parentNode[Ir]._isOutsideThisEl(e),t)do{if(t[Ir]){var n=void 0;if(n=t[Ir]._onDragOver({clientX:Ao.clientX,clientY:Ao.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);dG()}},_onTouchMove:function(e){if(Xu){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,r=e.touches?e.touches[0]:e,o=jt&&Qd(jt,!0),s=jt&&o&&o.a,a=jt&&o&&o.d,u=Hb&&Yi&&$K(Yi),f=(r.clientX-Xu.clientX+i.x)/(s||1)+(u?u[0]-jE[0]:0)/(s||1),d=(r.clientY-Xu.clientY+i.y)/(a||1)+(u?u[1]-jE[1]:0)/(a||1);if(!St.active&&!nc){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(jt){o?(o.e+=f-(FE||0),o.f+=d-(PE||0)):o={a:1,b:0,c:0,d:1,e:f,f:d};var c="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");Ct(jt,"webkitTransform",c),Ct(jt,"mozTransform",c),Ct(jt,"msTransform",c),Ct(jt,"transform",c),FE=f,PE=d,Ao=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!jt){var e=this.options.fallbackOnBody?document.body:jn,t=di(ot,!0,Hb,!0,e),n=this.options;if(Hb){for(Yi=e;Ct(Yi,"position")==="static"&&Ct(Yi,"transform")==="none"&&Yi!==document;)Yi=Yi.parentNode;Yi!==document.body&&Yi!==document.documentElement?(Yi===document&&(Yi=sa()),t.top+=Yi.scrollTop,t.left+=Yi.scrollLeft):Yi=sa(),jE=$K(Yi)}jt=ot.cloneNode(!0),jr(jt,n.ghostClass,!1),jr(jt,n.fallbackClass,!0),jr(jt,n.dragClass,!0),Ct(jt,"transition",""),Ct(jt,"transform",""),Ct(jt,"box-sizing","border-box"),Ct(jt,"margin",0),Ct(jt,"top",t.top),Ct(jt,"left",t.left),Ct(jt,"width",t.width),Ct(jt,"height",t.height),Ct(jt,"opacity","0.8"),Ct(jt,"position",Hb?"absolute":"fixed"),Ct(jt,"zIndex","100000"),Ct(jt,"pointerEvents","none"),St.ghost=jt,e.appendChild(jt),Ct(jt,"transform-origin",rG/parseInt(jt.style.width)*100+"% "+oG/parseInt(jt.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,i=e.dataTransfer,r=n.options;if(yr("dragStart",this,{evt:e}),St.eventCanceled){this._onDrop();return}yr("setupClone",this),St.eventCanceled||(zn=nG(ot),zn.removeAttribute("id"),zn.draggable=!1,zn.style["will-change"]="",this._hideClone(),jr(zn,this.options.chosenClass,!1),St.clone=zn),n.cloneId=Wb(function(){yr("clone",n),!St.eventCanceled&&(n.options.removeCloneOnHide||jn.insertBefore(zn,ot),n._hideClone(),nr({sortable:n,name:"clone"}))}),!t&&jr(ot,r.dragClass,!0),t?(Nb=!0,n._loopId=setInterval(n._emulateDragOver,50)):(tn(document,"mouseup",n._onDrop),tn(document,"touchend",n._onDrop),tn(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(n,i,ot)),sn(document,"drop",n),Ct(ot,"transform","translateZ(0)")),nc=!0,n._dragStartId=Wb(n._dragStarted.bind(n,t,e)),sn(document,"selectstart",n),pm=!0,fm&&Ct(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,n=e.target,i,r,o,s=this.options,a=s.group,u=St.active,f=Rb===a,d=s.sort,c=ji||u,h,p=this,m=!1;if(IE)return;function y(H,Q){yr(H,p,aa({evt:e,isOwner:f,axis:h?"vertical":"horizontal",revert:o,dragRect:i,targetRect:r,canSort:d,fromSortable:c,target:n,completed:b,onMove:function(ie,ae){return qb(jn,t,ot,i,ie,di(ie),e,ae)},changed:g},Q))}function v(){y("dragOverAnimationCapture"),p.captureAnimationState(),p!==c&&c.captureAnimationState()}function b(H){return y("dragOverCompleted",{insertion:H}),H&&(f?u._hideClone():u._showClone(p),p!==c&&(jr(ot,ji?ji.options.ghostClass:u.options.ghostClass,!1),jr(ot,s.ghostClass,!0)),ji!==p&&p!==St.active?ji=p:p===St.active&&ji&&(ji=null),c===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){y("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==c&&(c.animateAll(),c._ignoreWhileAnimating=null)),(n===ot&&!ot.animated||n===t&&!n.animated)&&(ic=null),!s.dragoverBubble&&!e.rootEl&&n!==document&&(ot.parentNode[Ir]._isOutsideThisEl(e.target),!H&&Zu(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function g(){Rr=oo(ot),gl=oo(ot,s.draggable),nr({sortable:p,name:"change",toEl:t,newIndex:Rr,newDraggableIndex:gl,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=Do(n,s.draggable,t,!0),y("dragOver"),St.eventCanceled)return m;if(ot.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return b(!1);if(Nb=!1,u&&!s.disabled&&(f?d||(o=qn!==jn):ji===this||(this.lastPutMode=Rb.checkPull(this,u,ot,e))&&a.checkPut(this,u,ot,e))){if(h=this._getDirection(e,n)==="vertical",i=di(ot),y("dragOverValid"),St.eventCanceled)return m;if(o)return qn=jn,v(),this._hideClone(),y("revert"),St.eventCanceled||(Yu?jn.insertBefore(ot,Yu):jn.appendChild(ot)),b(!0);var k=AE(t,s.draggable);if(!k||_8e(e,h,this)&&!k.animated){if(k===ot)return b(!1);if(k&&t===e.target&&(n=k),n&&(r=di(n)),qb(jn,t,ot,i,n,r,e,!!n)!==!1)return v(),k&&k.nextSibling?t.insertBefore(ot,k.nextSibling):t.appendChild(ot),qn=t,g(),b(!0)}else if(k&&w8e(e,h,this)){var w=$d(t,0,s,!0);if(w===ot)return b(!1);if(n=w,r=di(n),qb(jn,t,ot,i,n,r,e,!1)!==!1)return v(),t.insertBefore(ot,w),qn=t,g(),b(!0)}else if(n.parentNode===t){r=di(n);var T=0,S,_=ot.parentNode!==t,A=!m8e(ot.animated&&ot.toRect||i,n.animated&&n.toRect||r,h),D=h?"top":"left",x=QK(n,"top","top")||QK(ot,"top","top"),B=x?x.scrollTop:void 0;ic!==n&&(S=r[D],mm=!1,Lb=!A&&s.invertSwap||_),T=C8e(e,n,r,h,A?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,Lb,ic===n);var E;if(T!==0){var F=oo(ot);do F-=T,E=qn.children[F];while(E&&(Ct(E,"display")==="none"||E===jt))}if(T===0||E===n)return b(!1);ic=n,gm=T;var C=n.nextElementSibling,I=!1;I=T===1;var N=qb(jn,t,ot,i,n,r,e,I);if(N!==!1)return(N===1||N===-1)&&(I=N===1),IE=!0,setTimeout(k8e,30),v(),I&&!C?t.appendChild(ot):n.parentNode.insertBefore(ot,I?C:n),x&&tG(x,0,B-x.scrollTop),qn=ot.parentNode,S!==void 0&&!Lb&&(zb=Math.abs(S-di(n)[D])),g(),b(!0)}if(t.contains(ot))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){tn(document,"mousemove",this._onTouchMove),tn(document,"touchmove",this._onTouchMove),tn(document,"pointermove",this._onTouchMove),tn(document,"dragover",Zu),tn(document,"mousemove",Zu),tn(document,"touchmove",Zu)},_offUpEvents:function(){var e=this.el.ownerDocument;tn(e,"mouseup",this._onDrop),tn(e,"touchend",this._onDrop),tn(e,"pointerup",this._onDrop),tn(e,"touchcancel",this._onDrop),tn(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;if(Rr=oo(ot),gl=oo(ot,n.draggable),yr("drop",this,{evt:e}),qn=ot&&ot.parentNode,Rr=oo(ot),gl=oo(ot,n.draggable),St.eventCanceled){this._nulling();return}nc=!1,Lb=!1,mm=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),NE(this.cloneId),NE(this._dragStartId),this.nativeDraggable&&(tn(document,"drop",this),tn(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),fm&&Ct(document.body,"user-select",""),Ct(ot,"transform",""),e&&(pm&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),jt&&jt.parentNode&&jt.parentNode.removeChild(jt),(jn===qn||ji&&ji.lastPutMode!=="clone")&&zn&&zn.parentNode&&zn.parentNode.removeChild(zn),ot&&(this.nativeDraggable&&tn(ot,"dragend",this),RE(ot),ot.style["will-change"]="",pm&&!nc&&jr(ot,ji?ji.options.ghostClass:this.options.ghostClass,!1),jr(ot,this.options.chosenClass,!1),nr({sortable:this,name:"unchoose",toEl:qn,newIndex:null,newDraggableIndex:null,originalEvent:e}),jn!==qn?(Rr>=0&&(nr({rootEl:qn,name:"add",toEl:qn,fromEl:jn,originalEvent:e}),nr({sortable:this,name:"remove",toEl:qn,originalEvent:e}),nr({rootEl:qn,name:"sort",toEl:qn,fromEl:jn,originalEvent:e}),nr({sortable:this,name:"sort",toEl:qn,originalEvent:e})),ji&&ji.save()):Rr!==tc&&Rr>=0&&(nr({sortable:this,name:"update",toEl:qn,originalEvent:e}),nr({sortable:this,name:"sort",toEl:qn,originalEvent:e})),St.active&&((Rr==null||Rr===-1)&&(Rr=tc,gl=hm),nr({sortable:this,name:"end",toEl:qn,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){yr("nulling",this),jn=ot=qn=jt=Yu=zn=Ib=pl=Xu=Ao=pm=Rr=gl=tc=hm=ic=gm=ji=Rb=St.dragged=St.ghost=St.clone=St.active=null,Vb.forEach(function(e){e.checked=!0}),Vb.length=FE=PE=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ot&&(this._onDragOver(e),b8e(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,i=0,r=n.length,o=this.options;i<r;i++)t=n[i],Do(t,o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||x8e(t));return e},sort:function(e,t){var n={},i=this.el;this.toArray().forEach(function(r,o){var s=i.children[o];Do(s,this.options.draggable,i,!1)&&(n[r]=s)},this),t&&this.captureAnimationState(),e.forEach(function(r){n[r]&&(i.removeChild(n[r]),i.appendChild(n[r]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Do(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var i=cm.modifyOption(this,e,t);typeof i<"u"?n[e]=i:n[e]=t,e==="group"&&uG(n)},destroy:function(){yr("destroy",this);var e=this.el;e[Ir]=null,tn(e,"mousedown",this._onTapStart),tn(e,"touchstart",this._onTapStart),tn(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(tn(e,"dragover",this),tn(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Mb.splice(Mb.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!pl){if(yr("hideClone",this),St.eventCanceled)return;Ct(zn,"display","none"),this.options.removeCloneOnHide&&zn.parentNode&&zn.parentNode.removeChild(zn),pl=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(pl){if(yr("showClone",this),St.eventCanceled)return;ot.parentNode==jn&&!this.options.group.revertClone?jn.insertBefore(zn,ot):Yu?jn.insertBefore(zn,Yu):jn.appendChild(zn),this.options.group.revertClone&&this.animate(ot,zn),Ct(zn,"display",""),pl=!1}}};function b8e(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function qb(e,t,n,i,r,o,s,a){var u,f=e[Ir],d=f.options.onMove,c;return window.CustomEvent&&!Ma&&!um?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=t,u.from=e,u.dragged=n,u.draggedRect=i,u.related=r||t,u.relatedRect=o||di(t),u.willInsertAfter=a,u.originalEvent=s,e.dispatchEvent(u),d&&(c=d.call(f,u,s)),c}function RE(e){e.draggable=!1}function k8e(){IE=!1}function w8e(e,t,n){var i=di($d(n.el,0,n.options,!0)),r=iG(n.el,n.options,jt),o=10;return t?e.clientX<r.left-o||e.clientY<i.top&&e.clientX<i.right:e.clientY<r.top-o||e.clientY<i.bottom&&e.clientX<i.left}function _8e(e,t,n){var i=di(AE(n.el,n.options.draggable)),r=iG(n.el,n.options,jt),o=10;return t?e.clientX>r.right+o||e.clientY>i.bottom&&e.clientX>i.left:e.clientY>r.bottom+o||e.clientX>i.right&&e.clientY>i.top}function C8e(e,t,n,i,r,o,s,a){var u=i?e.clientY:e.clientX,f=i?n.height:n.width,d=i?n.top:n.left,c=i?n.bottom:n.right,h=!1;if(!s){if(a&&zb<f*r){if(!mm&&(gm===1?u>d+f*o/2:u<c-f*o/2)&&(mm=!0),mm)h=!0;else if(gm===1?u<d+zb:u>c-zb)return-gm}else if(u>d+f*(1-r)/2&&u<c-f*(1-r)/2)return S8e(t)}return h=h||s,h&&(u<d+f*o/2||u>c-f*o/2)?u>d+f/2?1:-1:0}function S8e(e){return oo(ot)<oo(e)?1:-1}function x8e(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function E8e(e){Vb.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&Vb.push(i)}}function Wb(e){return setTimeout(e,0)}function NE(e){return clearTimeout(e)}Ub&&sn(document,"touchmove",function(e){(St.active||nc)&&e.cancelable&&e.preventDefault()}),St.utils={on:sn,off:tn,css:Ct,find:ZK,is:function(e,t){return!!Do(e,t,e,!1)},extend:l8e,throttle:eG,closest:Do,toggleClass:jr,clone:nG,index:oo,nextTick:Wb,cancelNextTick:NE,detectDirection:lG,getChild:$d},St.get=function(e){return e[Ir]},St.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(St.utils=aa(aa({},St.utils),i.utils)),cm.mount(i)})},St.create=function(e,t){return new St(e,t)},St.version=o8e;var ci=[],vm,ME,LE=!1,zE,VE,Kb,ym;function B8e(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(t){var n=t.originalEvent;this.sortable.nativeDraggable?sn(document,"dragover",this._handleAutoScroll):this.options.supportPointer?sn(document,"pointermove",this._handleFallbackAutoScroll):n.touches?sn(document,"touchmove",this._handleFallbackAutoScroll):sn(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var n=t.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?tn(document,"dragover",this._handleAutoScroll):(tn(document,"pointermove",this._handleFallbackAutoScroll),tn(document,"touchmove",this._handleFallbackAutoScroll),tn(document,"mousemove",this._handleFallbackAutoScroll)),cG(),Gb(),u8e()},nulling:function(){Kb=ME=vm=LE=ym=zE=VE=null,ci.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,n){var i=this,r=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,s=document.elementFromPoint(r,o);if(Kb=t,n||this.options.forceAutoScrollFallback||um||Ma||fm){UE(t,this.options,s,n);var a=hl(s,!0);LE&&(!ym||r!==zE||o!==VE)&&(ym&&cG(),ym=setInterval(function(){var u=hl(document.elementFromPoint(r,o),!0);u!==a&&(a=u,Gb()),UE(t,i.options,u,n)},10),zE=r,VE=o)}else{if(!this.options.bubbleScroll||hl(s,!0)===sa()){Gb();return}UE(t,this.options,hl(s,!1),!1)}}},Ra(e,{pluginName:"scroll",initializeByDefault:!0})}function Gb(){ci.forEach(function(e){clearInterval(e.pid)}),ci=[]}function cG(){clearInterval(ym)}var UE=eG(function(e,t,n,i){if(t.scroll){var r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,u=sa(),f=!1,d;ME!==n&&(ME=n,Gb(),vm=t.scroll,d=t.scrollFn,vm===!0&&(vm=hl(n,!0)));var c=0,h=vm;do{var p=h,m=di(p),y=m.top,v=m.bottom,b=m.left,g=m.right,k=m.width,w=m.height,T=void 0,S=void 0,_=p.scrollWidth,A=p.scrollHeight,D=Ct(p),x=p.scrollLeft,B=p.scrollTop;p===u?(T=k<_&&(D.overflowX==="auto"||D.overflowX==="scroll"||D.overflowX==="visible"),S=w<A&&(D.overflowY==="auto"||D.overflowY==="scroll"||D.overflowY==="visible")):(T=k<_&&(D.overflowX==="auto"||D.overflowX==="scroll"),S=w<A&&(D.overflowY==="auto"||D.overflowY==="scroll"));var E=T&&(Math.abs(g-r)<=s&&x+k<_)-(Math.abs(b-r)<=s&&!!x),F=S&&(Math.abs(v-o)<=s&&B+w<A)-(Math.abs(y-o)<=s&&!!B);if(!ci[c])for(var C=0;C<=c;C++)ci[C]||(ci[C]={});(ci[c].vx!=E||ci[c].vy!=F||ci[c].el!==p)&&(ci[c].el=p,ci[c].vx=E,ci[c].vy=F,clearInterval(ci[c].pid),(E!=0||F!=0)&&(f=!0,ci[c].pid=setInterval((function(){i&&this.layer===0&&St.active._onTouchMove(Kb);var I=ci[this.layer].vy?ci[this.layer].vy*a:0,N=ci[this.layer].vx?ci[this.layer].vx*a:0;typeof d=="function"&&d.call(St.dragged.parentNode[Ir],N,I,e,Kb,ci[this.layer].el)!=="continue"||tG(ci[this.layer].el,N,I)}).bind({layer:c}),24))),c++}while(t.bubbleScroll&&h!==u&&(h=hl(h,!1)));LE=f}},30),hG=function(e){var t=e.originalEvent,n=e.putSortable,i=e.dragEl,r=e.activeSortable,o=e.dispatchSortableEvent,s=e.hideGhostForTarget,a=e.unhideGhostForTarget;if(t){var u=n||r;s();var f=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(f.clientX,f.clientY);a(),u&&!u.el.contains(d)&&(o("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function HE(){}HE.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=$d(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:hG},Ra(HE,{pluginName:"revertOnSpill"});function qE(){}qE.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,i=n||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:hG},Ra(qE,{pluginName:"removeOnSpill"}),St.mount(new B8e),St.mount(qE,HE);function D8e(e){return e==null?e:JSON.parse(JSON.stringify(e))}function A8e(e){l.getCurrentInstance()&&l.onUnmounted(e)}function T8e(e){l.getCurrentInstance()?l.onMounted(e):l.nextTick(e)}let pG=null,gG=null;function mG(e=null,t=null){pG=e,gG=t}function O8e(){return{data:pG,clonedData:gG}}const vG=Symbol("cloneElement");function F8e(...e){var t,n;const i=(t=l.getCurrentInstance())==null?void 0:t.proxy;let r=null;const o=e[0];let[,s,a]=e;Array.isArray(l.unref(s))||(a=s,s=null);let u=null;const{immediate:f=!0,clone:d=D8e,customUpdate:c}=(n=l.unref(a))!=null?n:{};function h(A){var D;const{from:x,oldIndex:B,item:E}=A;r=Array.from(x.childNodes);const F=l.unref((D=l.unref(s))==null?void 0:D[B]),C=d(F);mG(F,C),E[vG]=C}function p(A){const D=A.item[vG];if(!J5e(D)){if(DE(A.item),l.isRef(s)){const x=[...l.unref(s)];s.value=UK(x,A.newDraggableIndex,D);return}UK(l.unref(s),A.newDraggableIndex,D)}}function m(A){const{from:D,item:x,oldIndex:B,oldDraggableIndex:E,pullMode:F,clone:C}=A;if(HK(D,x,B),F==="clone"){DE(C);return}if(l.isRef(s)){const I=[...l.unref(s)];s.value=VK(I,E);return}VK(l.unref(s),E)}function y(A){if(c){c(A);return}const{from:D,item:x,oldIndex:B,oldDraggableIndex:E,newDraggableIndex:F}=A;if(DE(x),HK(D,x,B),l.isRef(s)){const C=[...l.unref(s)];s.value=zK(C,E,F);return}zK(l.unref(s),E,F)}function v(A){const{newIndex:D,oldIndex:x,from:B,to:E}=A;let F=null;const C=D===x&&B===E;try{if(C){let I=null;r==null||r.some((N,H)=>{if(I&&(r==null?void 0:r.length)!==E.childNodes.length)return B.insertBefore(I,N.nextSibling),!0;const Q=E.childNodes[H];I=E==null?void 0:E.replaceChild(N,Q)})}}catch(I){F=I}finally{r=null}l.nextTick(()=>{if(mG(),F)throw F})}const b={onUpdate:y,onStart:h,onAdd:p,onRemove:m,onEnd:v};function g(A){const D=l.unref(o);return A||(A=Y5e(D)?X5e(D,i==null?void 0:i.$el):D),A&&!$5e(A)&&(A=A.$el),A||void 0,A}function k(){var A;const D=(A=l.unref(a))!=null?A:{},x=LK(D,["immediate","clone"]);return qK(x,(B,E)=>{e8e(B)&&(x[B]=(F,...C)=>{const I=O8e();return t8e(F,I),E(F,...C)})}),Q5e(s===null?{}:b,x)}const w=A=>{A=g(A),u&&T.destroy(),u=new St(A,k())};l.watch(()=>a,()=>{u&&qK(k(),(A,D)=>{u==null||u.option(A,D)})},{deep:!0});const T={option:(A,D)=>u==null?void 0:u.option(A,D),destroy:()=>{u==null||u.destroy(),u=null},save:()=>u==null?void 0:u.save(),toArray:()=>u==null?void 0:u.toArray(),closest:(...A)=>u==null?void 0:u.closest(...A)},S=()=>T==null?void 0:T.option("disabled",!0),_=()=>T==null?void 0:T.option("disabled",!1);return T8e(()=>{f&&w()}),A8e(T.destroy),Zd({start:w,pause:S,resume:_},T)}const WE=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],P8e=["clone","animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...WE.map(e=>`on${e.replace(/^\S/,t=>t.toUpperCase())}`)],yG=l.defineComponent({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:P8e,emits:["update:modelValue",...WE],setup(e,{slots:t,emit:n,expose:i,attrs:r}){const o=WE.reduce((d,c)=>{const h=`on${c.replace(/^\S/,p=>p.toUpperCase())}`;return d[h]=(...p)=>n(c,...p),d},{}),s=l.computed(()=>{const d=l.toRefs(e),c=LK(d,["modelValue"]),h=Object.entries(c).reduce((p,[m,y])=>{const v=l.unref(y);return v!==void 0&&(p[m]=v),p},{});return Zd(Zd({},o),G5e(Zd(Zd({},r),h)))}),a=l.computed({get:()=>e.modelValue,set:d=>n("update:modelValue",d)}),u=l.ref(),f=l.reactive(F8e(e.target||u,a,s));return i(f),()=>{var d;return l.h(e.tag||"div",{ref:u},(d=t==null?void 0:t.default)==null?void 0:d.call(t,f))}}}),j8e={class:"c0 omit ex fs13 plr4"},I8e={class:"b g6"},R8e=["title"],bG={__name:"tableContentControl",props:{modelValue:{type:Array,default:()=>[]},dragTitleKey:{type:String,default:"title"}},emits:["sort","change","update:modelValue"],setup(e,{emit:t}){const n=e,i=t,r=l.computed({get:()=>n.modelValue,set:u=>{i("update:modelValue",u)}}),o=l.computed(()=>{let u=1/0;return n.modelValue.forEach(f=>{u=Math.min(u,f.rank)}),u||1});function s(u){return rr(n.dragTitleKey,u)}function a(u){i("sort",u,o.value)}return(u,f)=>{const d=l.resolveComponent("jwt-icon"),c=l.resolveComponent("el-button"),h=l.resolveComponent("el-popover");return l.openBlock(),l.createBlock(h,{persistent:!1,placement:"bottom","popper-style":"max-height:60vh;overflow-y:auto;",trigger:"hover",width:240},{reference:l.withCtx(()=>[l.createVNode(c,{size:"small",text:""},{default:l.withCtx(()=>[l.createVNode(d,{icon:"draggable",size:"18"})]),_:1})]),default:l.withCtx(()=>[l.createVNode(l.unref(yG),{modelValue:r.value,"onUpdate:modelValue":f[0]||(f[0]=p=>r.value=p),animation:"150","ghost-class":"ghost",onSort:a},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,(p,m)=>(l.openBlock(),l.createElementBlock("div",{key:p.id,class:"cpm ptb4 w fxmc"},[l.createVNode(d,{class:"g9",icon:"drag-drop-line"}),l.createElementVNode("div",j8e,[l.createElementVNode("span",I8e,l.toDisplayString(o.value+m),1),l.createElementVNode("span",{class:"ml4",title:s(p)},l.toDisplayString(s(p)),9,R8e)])]))),128))]),_:1},8,["modelValue"])]),_:1})}}},N8e=Object.freeze(Object.defineProperty({__proto__:null,default:bG},Symbol.toStringTag,{value:"Module"})),KE={__name:"tableFieldControl",props:{modelValue:{type:Array,default:()=>[]}},emits:["sort","change","update:modelValue"],setup(e,{emit:t}){const n=e,i=t,r=l.computed({get:()=>n.modelValue,set:a=>{i("update:modelValue",a)}});function o(a){i("sort",a)}function s(a,u){i("change",a,u)}return(a,u)=>{const f=l.resolveComponent("jwt-icon"),d=l.resolveComponent("el-button"),c=l.resolveComponent("el-checkbox"),h=l.resolveComponent("el-popover");return l.openBlock(),l.createBlock(h,{persistent:!1,placement:"bottom","popper-style":"max-height:70vh;overflow-y:auto;",trigger:"hover",width:210},{reference:l.withCtx(()=>[l.createVNode(d,{size:"small",text:""},{default:l.withCtx(()=>[l.createVNode(f,{icon:"settings-line",size:"18"})]),_:1})]),default:l.withCtx(()=>[l.createVNode(l.unref(yG),{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=p=>r.value=p),animation:"150","ghost-class":"ghost",onSort:o},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,p=>l.withDirectives((l.openBlock(),l.createElementBlock("div",{key:p.id},[l.createVNode(f,{icon:"drag-drop-line"}),l.createVNode(c,{checked:p.checked,class:"ml5",onChange:m=>s(p,a.index)},{default:l.withCtx(()=>[l.createElementVNode("span",{class:l.normalizeClass(p.label.length>6?"fs12":"")},l.toDisplayString(p.label),3)]),_:2},1032,["checked","onChange"])],512)),[[l.vShow,!p.isOperate]])),128))]),_:1},8,["modelValue"])]),_:1})}}},M8e=Object.freeze(Object.defineProperty({__proto__:null,default:KE},Symbol.toStringTag,{value:"Module"})),kG={__name:"tableListContent",props:{tableAttr:{require:!0,type:Object,default:()=>{}},tableEvents:{type:Object,default:()=>{}},tableData:{type:Array,default:()=>[]},appTableColumn:{type:Array,default:()=>[]},ajaxLoading:{type:Boolean,default:!1},loadingText:{type:String,default:"正在加载中..."},tableHeight:{type:[String,Number],default:null},tableSize:{type:String,default:"small"},currentPagePath:{type:String,default:""},userMenusAuth:{type:Object,default:()=>{}},tableButtonNum:{type:Number,default:3},pagination:{type:Object,default:()=>{}},defaultSort:{type:Object,default:()=>{}}},emits:["table-current-change","header-dragend","selection-change","sort-change","change-table-column","table-action","edit-row","click-cell","dbclick-cell","show-file"],setup(e,{expose:t,emit:n}){const i=e,r=n,o=l.ref(null),s=l.computed(()=>{var b,g;return((((b=i==null?void 0:i.pagination)==null?void 0:b.currentPage)||1)-1)*(((g=i==null?void 0:i.pagination)==null?void 0:g.pageSize)||15)});function a(b){r("table-current-change",b)}function u(b,g,k,w){r("header-dragend",b,g,k,w)}function f(b){r("selection-change",b)}function d(b={}){r("sort-change",b)}function c(b){r("change-table-column","fixed",b)}function h(b,g,k){r("table-action",b,g,k)}function p(b={},g={}){r("edit-row",b,g)}function m(b,g){r("click-cell",b,g)}function y(b){r("show-file",b)}function v(b,g,k,w){var T;r("dbclick-cell",{row:b,column:g,cell:k,event:w,text:((T=w==null?void 0:w.target)==null?void 0:T.textContent)||""})}return t({tableRef:o}),(b,g)=>{const k=l.resolveComponent("jwt-table-button"),w=l.resolveComponent("jwt-column-item"),T=l.resolveComponent("el-table-column"),S=l.resolveComponent("el-table"),_=l.resolveDirective("loading");return l.withDirectives((l.openBlock(),l.createBlock(S,l.mergeProps(e.tableAttr,{ref_key:"tableRef",ref:o,"default-sort":e.defaultSort,class:"mt10 jwt-table-wrapper",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":e.loadingText,height:e.tableHeight,size:e.tableSize},l.toHandlers(e.tableEvents),{onCellDblclick:v,onCurrentChange:a,onHeaderDragend:u,onSelectionChange:f,onSortChange:d}),{default:l.withCtx(()=>[l.renderSlot(b.$slots,"table-content-before"),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.appTableColumn,(A,D)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:D},[A.checked?(l.openBlock(),l.createBlock(T,l.mergeProps({key:0,align:A.align||"center",fixed:A.fixed,ref_for:!0},A.attrs,{"min-width":A.minWidth?A.minWidth:null,prop:A.prop,sortable:A.sortable,type:A.type,width:A.width?A.width:null}),l.createSlots({header:l.withCtx(()=>[l.createVNode(Ob,{item:A,onFixed:x=>c(A)},null,8,["item","onFixed"])]),_:2},[A.type?A.type==="expand"?{name:"default",fn:l.withCtx(({row:x})=>[l.renderSlot(b.$slots,A.prop,{index:D,scope:x})]),key:"1"}:void 0:{name:"default",fn:l.withCtx(({row:x,$index:B})=>[A.action?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.renderSlot(b.$slots,"action-before",{scope:x}),l.createVNode(k,{config:A,"current-path":e.currentPagePath,"menus-obj":e.userMenusAuth,row:x,"show-button-num":e.tableButtonNum,onTableAction:E=>h(E,x,A)},null,8,["config","current-path","menus-obj","row","show-button-num","onTableAction"]),l.renderSlot(b.$slots,"action-after",{scope:x})],64)):A.isColumn?l.renderSlot(b.$slots,A.prop,{key:1,index:D,scope:x}):(l.openBlock(),l.createElementBlock("div",{key:2,class:l.normalizeClass([(A==null?void 0:A.columnCls)||"fxmc","w mw"])},[l.renderSlot(b.$slots,A.slotPreName,{scope:x}),l.renderSlot(b.$slots,A.prop,{index:D,rowindex:B,pagestart:s.value,scope:x},()=>[l.createVNode(w,{index:B,item:A,row:x,pagestart:s.value,onChange:p,onClickCell:m,onShowFile:y},null,8,["index","item","row","pagestart"])]),l.renderSlot(b.$slots,A.slotSufName,{scope:x})],2))]),key:"0"}]),1040,["align","fixed","min-width","prop","sortable","type","width"])):l.createCommentVNode("",!0)],64))),128)),l.renderSlot(b.$slots,"table-content-after",{list:e.tableData})]),_:3},16,["default-sort","data","element-loading-text","height","size"])),[[_,e.ajaxLoading]])}}},L8e=Object.freeze(Object.defineProperty({__proto__:null,default:kG},Symbol.toStringTag,{value:"Module"})),z8e={class:"table-list-actions"},V8e={class:"fx fxwp"},U8e=l.defineComponent({name:"JwtTableButton"}),wG=l.defineComponent({...U8e,props:{currentPath:{type:String,default:"/"},menusObj:{type:Object,default:()=>{}},config:{type:Object,default:()=>{}},row:{type:Object,default:()=>{}},operationName:{type:String,default:"operations"},showButtonNum:{type:Number,default:3},showIcon:{type:Boolean,default:!1},showText:{type:Boolean,default:!0}},emits:["table-action"],setup(e,{emit:t}){const n=e,i=t,{visibleActions:r,tableButtonActions:o,hasOverflowActions:s}=PK(n),a=(u,f)=>{i("table-action",{action:f,e:u})};return(u,f)=>{var h;const d=l.resolveComponent("jwt-icon"),c=l.resolveComponent("el-popover");return l.openBlock(),l.createElementBlock("div",z8e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(r),(p,m)=>(l.openBlock(),l.createBlock(lm,{key:m,link:"",size:"small",action:p,"show-icon":e.showIcon,"show-text":e.showText,onActionClick:y=>a(y,p)},null,8,["action","show-icon","show-text","onActionClick"]))),128)),l.unref(s)?(l.openBlock(),l.createBlock(c,{key:0,placement:"bottom",trigger:"hover",persistent:!1,width:150},{reference:l.withCtx(()=>[l.createVNode(d,{class:"ml5 cp",icon:"more-fill"})]),default:l.withCtx(()=>[l.createElementVNode("div",V8e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o),(p,m)=>(l.openBlock(),l.createBlock(lm,{key:m,action:p,link:"","show-icon":e.showIcon,"show-text":e.showText,size:"small",onActionClick:y=>a(y,p)},null,8,["action","show-icon","show-text","onActionClick"]))),128))])]),_:1})):l.createCommentVNode("",!0),(h=l.unref(r))!=null&&h.length?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(" ")],64))])}}}),H8e=Object.freeze(Object.defineProperty({__proto__:null,default:wG},Symbol.toStringTag,{value:"Module"})),q8e=["element-loading-text"],W8e={class:"fxmc c0",style:{padding:"10px 0","justify-content":"center",height:"100%","background-color":"var(--el-table-row-hover-bg-color)"}},_G=Qt({__name:"tableListContentVirtualized",props:{tableAttr:{require:!0,type:Object,default:()=>{}},tableEvents:{type:Object,default:()=>{}},tableData:{type:Array,default:()=>[]},appTableColumn:{type:Array,default:()=>[]},ajaxLoading:{type:Boolean,default:!1},loadingText:{type:String,default:"正在加载中..."},tableHeight:{type:[String,Number],default:"72vh"},tableSize:{type:String,default:"small"},currentPagePath:{type:String,default:""},userMenusAuth:{type:Object,default:()=>{}},tableButtonNum:{type:Number,default:3},estimatedRowHeight:{type:Number,default:50},pagination:{type:Object,default:()=>{}},defaultSort:{type:Object,default:()=>{}}},emits:["table-current-change","header-dragend","selection-change","sort-change","change-table-column","table-action","edit-row","click-cell","dbclick-cell","selection-header-change","selection-column-change","show-file"],setup(e,{emit:t}){const n=e,i=l.computed(()=>{var h,p;return((h=n.tableAttr)==null?void 0:h["show-summary"])&&((p=n.tableAttr)==null?void 0:p.summaryMethod)}),r=l.computed(()=>{var h,p;return((((h=n==null?void 0:n.pagination)==null?void 0:h.currentPage)||1)-1)*(((p=n==null?void 0:n.pagination)==null?void 0:p.pageSize)||15)}),o=t,s=l.useSlots(),a=l.computed(()=>n.appTableColumn.map(h=>({...h,align:h.align||"center",title:h.label,key:h.prop,property:h.prop,width:h.width||h.minWidth||150,dataKey:h.prop,headerCellRenderer:()=>l.h(Ob,{item:h,tableData:n.tableData,onFixed:()=>o("change-table-column","fixed",h),onSelect:p=>o("selection-header-change",p)}),cellRenderer:({rowData:p,rowIndex:m,columnIndex:y})=>{const v={index:y,rowindex:m,scope:p,row:p,item:h,pagestart:r.value};return h.action?l.h("div",{class:[(h==null?void 0:h.columnCls)||"fxmc","w mw ptb8"],onDblclick:b=>c(b,p,h)},[s["action-before"]?s["action-before"]({scope:p}):null,l.h(wG,{config:h,"current-path":n.currentPagePath,"menus-obj":n.userMenusAuth,row:p,"show-button-num":n.tableButtonNum,onTableAction:b=>o("table-action",b,p,h)}),s["action-after"]?s["action-after"]({scope:p}):null]):(h==null?void 0:h.type)==="selection"?l.h(lt.ElCheckbox,{modelValue:p.selectionChecked,onChange:b=>{p.selectionChecked=b,o("selection-column-change",b,p)}}):l.h("div",{class:[(h==null?void 0:h.columnCls)||"fxmc","w mw ptb8"],onDblclick:b=>c(b,p,h)},[h.slotPreName&&s[h.slotPreName]?s[h.slotPreName](v):null,s[h.prop]?s[h.prop](v):l.h(R7,{item:h,row:p,index:m,pagestart:r.value,onChange:(b,g)=>o("edit-row",b,g),onClickCell:(b,g)=>o("click-cell",b,g),onShowFile:b=>o("show-file",b)}),h.slotSufName&&s[h.slotSufName]?s[h.slotSufName](v):null])}})).filter(h=>!h.hide)),u=l.computed(()=>{var h;if(i.value){const p=(h=n.tableAttr)==null?void 0:h.summaryMethod({columns:a.value,data:n.tableData});let m=[];return p.forEach((y,v)=>{y&&y!=="-"&&v&&m.push(`${a.value[v].label}: ${y}`)}),m.length?`总计:${m.join("、")}`:""}return""}),f=l.ref({order:"desc"});function d(h){o("sort-change",{prop:h.key,order:h.order==="asc"?"ascending":"descending",column:h.column}),f.value=h}function c(h,p,m){var y;o("dbclick-cell",{row:p,column:m,event:h,text:((y=h==null?void 0:h.currentTarget)==null?void 0:y.textContent)||""})}return(h,p)=>{const m=l.resolveComponent("el-table-v2"),y=l.resolveComponent("el-auto-resizer"),v=l.resolveDirective("loading");return l.withDirectives((l.openBlock(),l.createElementBlock("div",{"element-loading-spinner":"el-icon-loading","element-loading-text":e.loadingText,style:l.normalizeStyle({height:e.tableHeight})},[l.createVNode(y,null,{default:l.withCtx(({height:b,width:g})=>[l.createVNode(m,l.mergeProps({columns:a.value,data:e.tableData,"estimated-row-height":e.estimatedRowHeight,fixed:"","footer-height":40,height:b,"sort-by":e.defaultSort,width:g},e.tableAttr,l.toHandlers(e.tableEvents),{onColumnSort:d}),l.createSlots({_:2},[i.value&&u.value?{name:"footer",fn:l.withCtx(()=>[l.createElementVNode("div",W8e,l.toDisplayString(u.value),1)]),key:"0"}:void 0]),1040,["columns","data","estimated-row-height","height","sort-by","width"])]),_:1})],12,q8e)),[[v,e.ajaxLoading]])}}},[["__scopeId","data-v-7ecf0778"]]),K8e=Object.freeze(Object.defineProperty({__proto__:null,default:_G},Symbol.toStringTag,{value:"Module"})),GE={__name:"tableSizeSetting",emits:["tableSize"],setup(e,{emit:t}){const n=t,i=ir.get("tableSize")||"default",r=l.ref(i),o=[{title:Pe("大"),size:"large",imgSize:70},{title:Pe("中"),size:"default",imgSize:60},{title:Pe("小"),size:"small",imgSize:40}];function s(a){n("tableSize",a)}return(a,u)=>{const f=l.resolveComponent("jwt-icon"),d=l.resolveComponent("el-button"),c=l.resolveComponent("el-radio"),h=l.resolveComponent("el-radio-group"),p=l.resolveComponent("el-popover");return l.openBlock(),l.createBlock(p,{persistent:!1,placement:"bottom",trigger:"hover",width:200},{reference:l.withCtx(()=>[l.createVNode(d,{size:"small",text:""},{default:l.withCtx(()=>[l.createVNode(f,{icon:"line-height",size:"18"})]),_:1})]),default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(h,{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=m=>r.value=m),onChange:s},{default:l.withCtx(()=>[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(o,(m,y)=>l.createVNode(c,{key:y,label:m.size},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(m.title),1)]),_:2},1032,["label"])),64))]),_:1},8,["modelValue"])])]),_:1})}}},G8e=Object.freeze(Object.defineProperty({__proto__:null,default:GE},Symbol.toStringTag,{value:"Module"})),J8e=l.defineComponent({name:"JwtTableCopy",components:{TableSizeSetting:GE,TableFieldControl:KE,TableColumnHeader:Ob},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},userMenusAuth:{type:Object,default:()=>{}},route:{type:Object,default:()=>{}},router:{type:Object,default:()=>{}},userFieldList:{type:Object,default:()=>{}},refMenuId:{type:[Number,String],default:""},pageUrl:{type:String,default:""},tableColumn:{type:Array,default:()=>[]},freezeList:{type:Boolean,default:!0},cacheSearch:{type:Boolean,default:!1}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success","click-cell","des-edit-success","upload-btn","event-name","copy-success","asynExport","search-result","change-table-column","fixed-table-column","dialog-close","refresh-draw","refresh-table","form-item-change","row-change"],setup(e,{emit:t}){var se,xe,Le,Te;const n=Nn(),i={"page-sizes":v7(),"page-size":20,layout:"total, sizes, prev, pager, next, jumper"};let r="";const o=l.shallowRef([]),s=l.shallowRef([]),a=l.reactive({ajaxLoading:!1,submitLoading:!1,renderTable:!0,refreshTable:!1,tableSize:ir.get("tableSize")||"default",tableFields:null,tableStatistics:[]}),{proxy:u}=l.getCurrentInstance(),f=l.useSlots(),d=l.ref([]),c=l.ref({}),h=l.shallowRef(null),p=l.shallowRef(null),m=l.shallowRef(null),y=l.shallowRef(null),v=l.computed(()=>d.value.map(ne=>ne.id).join(",")),b=l.computed(()=>{var ne;return((ne=p.value)==null?void 0:ne.editBoxRefModel)||{}}),g=l.computed(()=>{var ne;return((ne=m.value)==null?void 0:ne.editBoxRefModel)||{}}),k=l.computed(()=>lo("showPagination",e.config)?Ke.isFunction(e.config.showPagination)?e.config.showPagination():e.config.showPagination:!0),w=l.computed(()=>lo("headerActionsShow",e.config)?Ke.isFunction(e.config.headerActionsShow)?e.config.headerActionsShow():e.config.headerActionsShow:!0),T=l.computed(()=>lo("showHeaderSearch",e.config)?Ke.isFunction(e.config.showHeaderSearch)?e.config.showHeaderSearch():e.config.showHeaderSearch:!0),S=Object.freeze({headerActions:{list:[],deleteText:""},headerActionsShow:!0,tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0,immediate:!0},virtualized:!1,tableEvents:{},tableColumn:[],searchBtnInline:!1,useField:!0,keepAliveTabs:!0,tableListApi:null,tableListParams:{},tableDeleteApi:null,tableRowEdit:!0,tableDeleteText:"",tableDeleteParams:{},tableExportApi:"",tableExportPathKey:"",tablePrintApi:"",tablePrintPathKey:"http_path",pagination:i,showPagination:!0,hasPagination:!0,showTableLineHeight:!1,editBoxOnDialog:!0,editBox:{title:Pe("系统"),dialog:{width:"960px",top:"7vh"},form:{api:{add:null,update:null},formAttrs:{},formList:[]},footer:{confirm:{title:Pe("确认"),attrs:{type:"primary"}},cancel:{title:Pe("取消"),attrs:{}}}},tableDrawer:{}});let _=Ke.merge({},S,{useField:!0,keepAliveTabs:!0},e.config);const A=()=>{var ne;return((ne=e==null?void 0:e.config)==null?void 0:ne.tablePageSizeName)||"pageSize"},D=l.reactive({currentPage:1,pageCount:1,pageSize:ir.get(A())||((se=_.tableListParams)==null?void 0:se.per_page)||_.pagination["page-sizes"][2],totalCount:1,sort:((xe=_.tableListParams)==null?void 0:xe.sort)||"id",order:((Le=_.tableListParams)==null?void 0:Le.order)||"desc"}),x=l.reactive({title:"",type:"add",visible:!1,model:{},config:{},boxName:"editBox",refreshTable:!1}),B=l.reactive({title:"",type:"add",visible:!1,model:{},config:{},boxName:"editBox"}),E={"append-to-body":!0,"destroy-on-close":!0,size:"40%"},F=l.shallowReactive({attrs:{...E},visible:!1,config:{},detailInfo:{},contentConfig:{}}),C=l.computed(()=>{var ne;return F.descriptionEdit||(ne=F==null?void 0:F.attrs)!=null&&ne.refresh?l.reactive(F.detailInfo):F.detailInfo}),I=()=>{var Ce;const ne={};for(const Re in e.userMenusAuth){const{id:ze}=((Ce=e.userMenusAuth)==null?void 0:Ce[Re])||"";ze&&(ne[ze]=Re)}return ne},N=l.computed(()=>{let ne=e.route.path||"";return e!=null&&e.refMenuId&&(ne=I()[e.refMenuId]),e!=null&&e.pageUrl&&(ne=e==null?void 0:e.pageUrl),ne||""}),H=l.computed(()=>Pe("加载数据中")||"加载数据中..."),Q=(ne={})=>{const{query:Ce}=e.route;let Re={...c.value,...ne};if((Ce.fromJump||Ce.openType)&&!(e!=null&&e.refMenuId)){for(let[ze,$e]of Object.entries(Ce))Ke.isArray($e)?Re[ze]=$e.map(ut=>+ut):Re[ze]=$e;Re.openType&&delete Re.openType,delete Re.fromJump}c.value=Re,ae(ne)},ie=()=>{var ne,Ce;return{..._.tableListParams||{},page:D.currentPage,per_page:D.pageSize,sort:D.sort||((ne=_.tableListParams)==null?void 0:ne.sort)||"",order:D.order||((Ce=_.tableListParams)==null?void 0:Ce.order)||"",...c.value||{}}},ae=(ne={})=>{const Ce=ie(),Re=Ke.merge({},Ce,ne);M(Re)},M=ne=>{if(!_.tableListApi){_.tableData&&(o.value=_.tableData);return}a.ajaxLoading=!0,n.request({url:_.tableListApi,method:"get",params:ne}).then(Ce=>{let Re=null;_.hasPagination?(_!=null&&_.tableListCallback&&Ke.isFunction(_.tableListCallback)?Re=_.tableListCallback(Ce.data,Ce):Re=Ce.data,o.value=e.freezeList?l.markRaw(Re.map(ze=>l.markRaw(ze))):Re,D.pageCount=Ce==null?void 0:Ce.totalPage,D.totalCount=Ce.total,D.currentPage=Ce.current_page):(Re=Ce,o.value=e.freezeList?l.markRaw(Re):Re),Re=null,a.tableStatistics=(Ce==null?void 0:Ce.statistics)||null,a.ajaxLoading=!1,j(Ce.data),t("tablelist-change",Ce.data)}).catch(()=>{a.ajaxLoading=!1})},j=(ne=[])=>{if(e!=null&&e.refMenuId)return;const{query:{id:Ce,openType:Re}}=e.route;if(Re&&Ce&&ne.length===1){if(Re==="edit")$n(ne[0],{});else if(Re.includes("Detail")){const ze=s.value.find($e=>{var ut;return((ut=$e==null?void 0:$e.publicDrawerConfig)==null?void 0:ut.openName)===Re});ze!=null&&ze.id&&t("click-cell",ne[0],ze)}}},V=()=>{D.currentPage=1;const ne={page:1,per_page:D.pageSize};c.value={},l.nextTick(()=>{ae(ne)})},L=(ne,Ce)=>{c.value[ne]=Ce},W=ne=>{var Ce,Re;D.currentPage=1,(Re=(Ce=e.config)==null?void 0:Ce.tableSearch)!=null&&Re.onlyData?c.value={...ne}:c.value={...c.value,...ne},t("search-result",ne),ae(ne)},G=ne=>{D.currentPage=ne,ae({page:ne})},$=ne=>{D.pageSize=ne;const Ce=A();ir.set(Ce,ne),ae({per_page:ne})},re=ne=>{d.value=ne,t("selection-change",ne)},be=({prop:ne,order:Ce})=>{D.sort=ne,D.order=Ce==="ascending"?"asc":"desc",ae({sort:ne,order:Ce==="ascending"?"asc":"desc"})},Se=ne=>{t("table-current-change",ne)},ee=()=>{var ne,Ce,Re,ze;if(B.visible){B.visible=!1,B.config=null,B.model=null,a.submitLoading=!1;return}F.visible&&Oe(),(Ce=(ne=x==null?void 0:x.config)==null?void 0:ne.api)!=null&&Ce.refreshDraw&&t("refresh-draw"),((ze=(Re=x==null?void 0:x.config)==null?void 0:Re.api)!=null&&ze.refreshTable||x!=null&&x.refreshTable)&&t("refresh-table"),x.visible=!1,x.config=null,x.model=null,a.submitLoading=!1,t("list-change"),!x.stopGetList&&ae()},we=(ne,Ce)=>{var Re,ze,$e;x.visible&&(Re=x==null?void 0:x.config)!=null&&Re.addSuccess&&Ke.isFunction((ze=x==null?void 0:x.config)==null?void 0:ze.addSuccess)&&(($e=x==null?void 0:x.config)==null||$e.addSuccess(c,L)),ee(),t("add-success",ne,Ce)},Ee=(ne,Ce)=>{ee(),t("edit-success",ne,Ce)},P=()=>{F.visible=!0},le=(ne,Ce)=>{n.request({url:_.tableCopyApi,method:"post",data:ne}).then(()=>{t("copy-success",Ce),ae()})},me=(ne,Ce,Re,ze=[],$e=!1)=>{Ik(ne,Ce,Re,{selectionRow:ze,cancel:$e,callback:(ut,We)=>{var ft,dt;t("des-edit-success",ut,We),Ce.refreshTable&&R(),Ce!=null&&Ce.refreshDraw&&ve(),(dt=(ft=Ce==null?void 0:Ce.api)==null?void 0:ft.callback)==null||dt.call(ft,ut)}})},J=(ne={})=>{const Ce=ie();kB(ne,Ce,{url:_.tablePrintApi,tableData:o.value,proxy:u,tableExportPathKey:_.tableExportPathKey})},Y=(ne={},Ce={})=>{const Re=ie();Em(ne,Ce,Re,{url:_.tableExportApi,tableData:o.value,proxy:u,selectionRow:d.value,tableExportPathKey:_.tableExportPathKey,beforeExportFun:_.beforeExportFun,tableExportName:_.tableExportName,emit:t,isTemp:!1})},fe=(ne={},Ce={})=>{const Re=ie();Em(ne,Ce,Re,{url:_.tableExportApi,tableData:o.value,proxy:u,selectionRow:d.value,tableExportPathKey:_.tableExportPathKey,beforeExportFun:_.beforeExportFun,tableExportName:_.tableExportName,emit:t,isTemp:!0})},oe=()=>{var ne;if(!((ne=_.tableFileImport)!=null&&ne.action)){lt.ElMessage.info(Pe("请配置文件上传接口"));return}},pe=(ne,Ce,Re=!0)=>{ne[`isEdit${Ce.prop}`]=Re},de=(ne={},Ce={},Re="table")=>{var Ne,Ge,Je,gt,et;const{id:ze}=ne,{prop:$e,refreshTable:ut,api:We}=Ce;if(t("row-change",ne,Ce),!ze||!_.tableRowEdit)return;const ft={table:{url:_.tableUpdateApi,des:"tableUpdateApi"},drawDes:{url:((Ne=F==null?void 0:F.api)==null?void 0:Ne.update)||((Je=(Ge=F==null?void 0:F.descriptions)==null?void 0:Ge.api)==null?void 0:Je.update)||((et=(gt=_==null?void 0:_.tableDrawer)==null?void 0:gt.api)==null?void 0:et.update),des:"drawerConfig.api.update || appConfig.tableDrawer.api.update"}};let dt=(We==null?void 0:We.url)||ft[Re].url;if(!dt)return lt.ElMessage.info(`${Pe("请配置编辑接口")}${ft[Re].des}`);var Z={id:ze};const{startKey:ge,endKey:Me}=Ce;if(ge&&Me?(Z[ge]=ne[$e][0]||"",Z[Me]=ne[$e][1]||""):Z[$e]=ne[$e]||"",We!=null&&We.params){let qt=Ke.isFunction(We.params)?We.params(ne,Z):We.params;Z={...Z,...qt}}n.request({url:dt,method:"post",data:Z}).then(()=>{ne[`isEdit${$e}`]=!1,Re==="drawDes"&&(a.refreshTable=!0),ut&&R(),t("des-edit-success",Ce)})},Oe=(ne="")=>{if(!F.visible){t("refresh-draw");return}const{url:Ce,row:Re,searchKey:ze,valueKey:$e}=F.params||{};if(!Ce)return lt.ElMessage.info(Pe("请配置详情接口"));const ut={};ut[ze]=ne||rr($e,Re),n.request({url:Ce,method:"get",params:ut}).then(We=>{F.detailInfo=We})},ve=(ne="")=>{Oe(ne),a.refreshTable=!0},_e=(ne,Ce)=>{var ut,We,ft,dt,Z;const Re=Ke.merge({},E,((ut=Ce.drawerConfig)==null?void 0:ut.attrs)||{});F.attrs=Re;const ze=(We=Ce==null?void 0:Ce.drawerConfig)==null?void 0:We.tabPaneName,$e=(ft=Ce==null?void 0:Ce.drawerConfig)==null?void 0:ft.desListName;ze&&(_!=null&&_.tableDrawer[ze])&&(F.config={..._==null?void 0:_.tableDrawer[ze],api:Ke.merge({},((dt=_==null?void 0:_.tableDrawer)==null?void 0:dt.api)||{},((Z=Ce.drawerConfig)==null?void 0:Z.api)||{}),attrs:Re,descriptions:$e&&(_!=null&&_.tableDrawer[$e])?_==null?void 0:_.tableDrawer[$e]:{}}),F.detailInfo=ne,F.contentConfig={row:l.toRaw(ne),item:l.toRaw(Ce)},l.nextTick(()=>{F.visible=!0})},Ue=(ne,Ce)=>{var Re;t("click-cell",ne,Ce),Ce.drawerConfig?_e(ne,Ce):((Re=Ce==null?void 0:Ce.actions)==null?void 0:Re.type)==="editBox"&&$n(ne,Ce.actions)},st=()=>{},it=()=>{a.refreshTable&&(ae(),a.refreshTable=!1),F.visible=!1},xt=ne=>{t("upload-btn",ne)},yt=()=>{var ne;(ne=_==null?void 0:_.tableFileImport)!=null&&ne.refreshTable&&R()},je=(...ne)=>{t("event-name",...ne)},ce=ne=>{const Ce=ne==null?void 0:ne.action;Xe("",Ce)},ke=(ne,Ce)=>{B.visible?m.value.setModelVal(ne,Ce):p.value.setModelVal(ne,Ce)},Be=(ne,Ce)=>{B.visible?m.value.handleSetModelVal(ne,Ce):p.value.handleSetModelVal(ne,Ce)},Ve=(ne="editBoxInfo")=>{ne==="editBoxInfo"?(x.model={},x.config={}):ne==="addBoxInfo"&&(B.model={},B.config={}),t("dialog-close")},He=ne=>{a.tableSize=ne,ir.set("tableSize",ne)},rt=(ne,Ce,Re,ze)=>{if(a.tableFields){const $e=s.value.find(ut=>ut.prop===Re.property);$e!=null&&$e.id&&t("change-table-column","width",{width:ne,column:$e})}},ct=ne=>{a.tableFields&&(t("change-table-column","toggle",ne),ne.checked=!ne.checked)},vt=()=>{a.tableFields&&t("change-table-column","draggable",s.value)},_t=ne=>{a.tableFields&&(t("change-table-column","fixed",ne),ne.fixed=!ne.fixed)},Rt=()=>{h.value.formReset()},zt=(ne,Ce)=>{h.value.setModelVal(ne,Ce)},Ot=()=>{var ze,$e,ut;const{path:ne}=e.route,Ce=(e==null?void 0:e.refMenuId)||(($e=(ze=e.userMenusAuth)==null?void 0:ze[ne])==null?void 0:$e.id);return((ut=e==null?void 0:e.config)==null?void 0:ut.useField)&&(e==null?void 0:e.userFieldList[Ce])||null},bn=()=>{var Ce,Re,ze;return((ze=(Re=(Ce=e.userMenusAuth)==null?void 0:Ce[N.value])==null?void 0:Re.operations)==null?void 0:ze.filter($e=>$e==null?void 0:$e.show_table))||[]},In=()=>{var ze,$e;let ne=[];const Ce=Ot();a.tableFields=Ce,((ze=e==null?void 0:e.tableColumn)!=null&&ze.length?e==null?void 0:e.tableColumn:($e=e==null?void 0:e.config)==null?void 0:$e.tableColumn).forEach(ut=>{var dt,Z,ge,Me;const We={...ut,label:Ke.isFunction(ut.label)?ut.label():Pe(ut.label),tips:Ke.isFunction(ut.tips)?ut.tips():Pe(ut.tips)};We.isEdit=!!(We.editType||We.dateTimeFormat||We.isImg||We.isImgs||We.editTypeFun);let ft=!0;if(We.isOperate){const Ne=bn(),Ge=We.fixed==="right"&&(((dt=We==null?void 0:We.action)==null?void 0:dt.list)||[]);Ne!=null&&Ne.length&&Ge.length?ft=Ne.some(Je=>Ge.includes(Je.code)):ft=!1}Ce?(Ce[We.prop]&&ne.push({...We,...Ce[We.prop],isControl:!0,fixed:!!((Z=Ce[We.prop])!=null&&Z.is_fixed),checked:We.hide?!1:!!Ce[We.prop].is_show,width:((ge=Ce[We.prop])==null?void 0:ge.width)||(We==null?void 0:We.width)||""}),We.isOperate&&ne.push({...We,rank:We!=null&&We.type?-1/0:1/0,checked:(We==null?void 0:We.type)||ft,isControl:!1,fixed:(We==null?void 0:We.fixed)||"",width:((Me=Ce[We.prop])==null?void 0:Me.width)||(We==null?void 0:We.width)||""})):ne.push({...We,checked:We.isOperate?ft:!We.hide})}),Ce&&(ne=ne.sort((ut,We)=>ut.rank-We.rank)),s.value=ne},Rn=()=>{const ne={},Ce=Ot();if(Ce&&Ke.isObject(Ce))for(const[Re,ze]of Object.entries(Ce))ze.is_default_sort&&(ne.sort=Re,ne.order=ze.sort);ne!=null&&ne.order&&(D.sort=ne.sort,D.order=ne.order)},It=async()=>await p.value.createSubmitData(),mn=()=>{In()},Wn=(ne,Ce,Re)=>{ne&&n.request({url:ne,method:"get",params:{}}).then(ze=>{Ce==null||Ce(ze,Re.model)})},hi=(ne={},Ce={})=>{var $e;const Re=ne.formList;let ze=Re;return a.tableFields&&(ze=Re.filter(ut=>{const We=!ut.privacyId||!!a.tableFields[ut.privacyId];return(ne==null?void 0:ne.privacyKey)==="disabled"?(ut.formAttrs={...ut.formAttrs,disabled:!We},!0):We})),($e=ne==null?void 0:ne.beforeCreate)!=null&&$e.formatFormList&&Ke.isFunction(ne.beforeCreate.formatFormList)&&(ze=ne.beforeCreate.formatFormList(ze,Ce)),ze},Ni=async(ne,Ce,Re={},ze)=>{const $e={id:ne.id,...Re};n.request({url:_[Ce].form.api.detail,method:"get",params:$e}).then(ut=>{ze?x.model=ze(ut):x.model=ut,x.title=jk(!0,_,Ce,Pe),t("get-detail-success",ut)})},Nr={filterFormList:hi,handleGetDetail:Ni,handleBeforeCreateReq:Wn,t:Pe},$n=(ne,Ce)=>{af(ne,Ce,_,x,Nr),l.nextTick(()=>{_.editBoxOnDialog?x.visible=!0:P()})},Xe=(ne,Ce)=>{af(ne,Ce,_,B,Nr),B.visible=!0},Mr=(ne="",Ce,Re,ze)=>{n.request({url:ne||_.tableDeleteApi,method:"post",data:Ce}).then(()=>{t("delete-success",ze),ae(),Re!=null&&Re.refreshDraw&&ve()})},Ai={deleteText:((Te=_==null?void 0:_.headerActions)==null?void 0:Te.deleteText)||"",tableCopyText:_.tableCopyText,handleEdit:$n,handleLinkRouter:hk,t:Pe,emit:t,handleDeleteRequest:Mr,handleExportRequest:Y,handleExportTempRequest:fe,handlePrintRequest:J,handleImportRequest:oe,handleSimpleRequest:me,handleCopyRequest:le},ua=(ne,Ce={},Re=null)=>{var ut,We,ft;const{code:ze}=ne,$e=Re||((ut=_.headerActions)==null?void 0:ut[ze])||((ft=(We=F==null?void 0:F.descriptions)==null?void 0:We.headerActions)==null?void 0:ft[ze]);hc(ne,Ce,$e,d.value,"tableHeader",Ai),t("header-action",ne,d.value,C.value,$e)},O=(ne,Ce,Re)=>{const{action:ze}=ne,$e=Re.action[ze.code];hc(ze,Ce,$e,d.value,"",{...Ai,deleteText:_.tableDeleteText}),t("table-action",ze,Ce,$e,ne)},X=l.watchEffect(()=>{}),z=l.watch(e,ne=>{_=Ke.merge({},S,ne.config),ne.config.tableData&&(o.value=ne.config.tableData||[])}),R=()=>{ae(),t("refresh-table")},q=(ne,Ce,Re)=>{t("form-item-change",ne,Ce,Re)},K=async()=>{var Re;const ne=await((Re=h==null?void 0:h.value)==null?void 0:Re.createSubmitData());for(const ze in ne)ne[ze]===""&&delete ne[ze];const Ce=te(!1);return Ce&&(Object.assign(ne,Ce),h.value.handleSetModelValue(ne)),ne},te=(ne=!1)=>{var Ce;if(e.cacheSearch){const Re=r||N.value;return((Ce=n==null?void 0:n.handleCacheSearch)==null?void 0:Ce.call(n,Re,ne,ne?c.value:null))||null}return null},ye=l.watch(()=>N.value,(ne,Ce)=>{ne!==r&&(r=Ce)});l.onMounted(async()=>{var Ce;const ne=await K();c.value=ne,Rn(),In(),(Ce=_.tableAttr)!=null&&Ce.immediate&&Q()});function Fe(){_=null,o.value=null,s.value=null,c.value=null,a.tableFields=null,d.value=null,a.renderTable=!1}return l.onBeforeUnmount(()=>{te(!0),X(),z(),Fe(),ye()}),{tableRef:y,tableData:o,appTableColumn:s,slots:f,...l.toRefs(a),currentPagePath:N,appConfig:_,pagination:D,editBoxRef:p,editBoxRefModel:b,editBoxInfo:x,addBoxInfo:B,addBoxRef:m,addBoxRefModel:g,tableDrawerConfig:F,selectionRow:d,selectionRowIds:v,tableSearchModel:c,loadingText:H,searchFormRef:h,showPagination:k,showHeaderActions:w,showHeaderSearch:T,onSearchSubmit:W,onSearchReset:V,handleEdit:$n,handleCurrentChange:G,handleSizeChange:$,handleSelectionChange:re,handleTableCurrentChange:Se,handleSortChange:be,handleHeaderAction:ua,handleTableAction:O,handleGetDetail:Ni,getList:ae,initSearch:Q,handleError:st,handleAddSuccess:we,handleEditSuccess:Ee,handleEditRow:pe,handleEditRowProp:de,handleImportRequest:oe,handleClickRow:Ue,handleCloseDrawer:it,handleUploadBtn:xt,handleUploadSuccess:yt,handleRefreshDrawerDetail:ve,handleComponentEvent:je,handleAddOption:ce,setFormModelVal:ke,handleSetFormModelVal:Be,handleSetSearchModelVal:zt,handleDialogClose:Ve,handleTableSizeChange:He,handleTableHeaderDragend:rt,handleFieldCheck:ct,handleTableColumnSort:vt,handleSearchFormReset:Rt,getSubmitData:It,handleFixedCell:_t,handleDoLayoutTable:mn,handleItemChange:q}}}),Y8e={key:0,class:"app-table-wrapper"},X8e={key:0,class:"table-header-wrapper fx"},Z8e={class:"fxm pr10 ex"},Q8e={class:"fxmj"},$8e={class:"ex"};function e9e(e,t,n,i,r,o){var w,T,S,_,A,D,x;const s=l.resolveComponent("jwt-form"),a=l.resolveComponent("jwt-header-button"),u=l.resolveComponent("TableSizeSetting"),f=l.resolveComponent("TableFieldControl"),d=l.resolveComponent("TableColumnHeader"),c=l.resolveComponent("jwt-table-button"),h=l.resolveComponent("jwt-column-item"),p=l.resolveComponent("el-table-column"),m=l.resolveComponent("el-table"),y=l.resolveComponent("el-pagination"),v=l.resolveComponent("JwtDialogForm"),b=l.resolveComponent("jwt-detail-drawer"),g=l.resolveComponent("el-drawer"),k=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.renderTable?(l.openBlock(),l.createElementBlock("div",Y8e,[l.createElementVNode("div",{class:l.normalizeClass([(w=e.appConfig)!=null&&w.searchBtnInline?"fxmj":""])},[l.renderSlot(e.$slots,"search-before",{},void 0,!0),e.showHeaderSearch?(l.openBlock(),l.createElementBlock("div",X8e,[t[0]||(l.setBlockTracking(-1,!0),(t[0]=(_=(S=(T=e.config)==null?void 0:T.tableSearch)==null?void 0:S.formList)!=null&&_.length?(l.openBlock(),l.createBlock(s,{key:0,ref:"searchFormRef",modelValue:e.tableSearchModel,"onUpdate:modelValue":B=>e.tableSearchModel=B,class:"app-table-search",config:(A=e.config)==null?void 0:A.tableSearch,"is-search":"",onReset:e.onSearchReset,onSubmit:e.onSearchSubmit},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),B=>({name:B,fn:l.withCtx(({model:E})=>[l.renderSlot(e.$slots,B,{model:E},void 0,!0)])}))]),1032,["modelValue","onUpdate:modelValue","config","onReset","onSubmit"])):l.createCommentVNode("",!0)).cacheIndex=0,l.setBlockTracking(1),t[0]),l.renderSlot(e.$slots,"search-form-after",{},void 0,!0)])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"search-after",{},void 0,!0),l.createElementVNode("div",{class:l.normalizeClass(["fxmj",[(D=e.appConfig)!=null&&D.searchBtnInline?"mb18":""]])},[l.createElementVNode("div",Z8e,[l.renderSlot(e.$slots,"header-button-before",{},void 0,!0),e.showHeaderActions?(l.openBlock(),l.createBlock(a,{key:0,config:((x=e.config)==null?void 0:x.headerActions)||{},"current-path":e.currentPagePath,"file-import":e.appConfig.tableFileImport,loading:e.ajaxLoading,"menus-obj":e.userMenusAuth,"selection-row":e.selectionRow,"upload-success-cb":e.appConfig.uploadSuccessCb,onHeaderAction:e.handleHeaderAction,onUploadSuccess:e.handleUploadSuccess},null,8,["config","current-path","file-import","loading","menus-obj","selection-row","upload-success-cb","onHeaderAction","onUploadSuccess"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"header-button-after",{},void 0,!0)]),l.createElementVNode("div",null,[e.appConfig.showTableLineHeight?(l.openBlock(),l.createBlock(u,{key:0,onTableSize:e.handleTableSizeChange},null,8,["onTableSize"])):l.createCommentVNode("",!0),e.tableFields?(l.openBlock(),l.createBlock(f,{key:1,modelValue:e.appTableColumn,"onUpdate:modelValue":t[1]||(t[1]=B=>e.appTableColumn=B),onChange:e.handleFieldCheck,onSort:e.handleTableColumnSort},null,8,["modelValue","onChange","onSort"])):l.createCommentVNode("",!0)])],2)],2),l.renderSlot(e.$slots,"table-before",{},void 0,!0),l.renderSlot(e.$slots,"table-content",{list:e.tableData},()=>[l.withDirectives((l.openBlock(),l.createBlock(m,l.mergeProps(e.appConfig.tableAttr,{ref:"tableRef",class:"mt10 jwt-table-wrapper",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":e.loadingText,height:e.tableHeight,size:e.tableSize},l.toHandlers(e.appConfig.tableEvents),{onCurrentChange:e.handleTableCurrentChange,onHeaderDragend:e.handleTableHeaderDragend,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange}),{default:l.withCtx(()=>[l.renderSlot(e.$slots,"table-content-before",{},void 0,!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.appTableColumn,(B,E)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:E},[B.checked?(l.openBlock(),l.createBlock(p,l.mergeProps({key:0,align:B.align||"center",fixed:B.fixed,ref_for:!0},B.attrs,{"min-width":B.minWidth?B.minWidth:null,prop:B.prop,sortable:B.sortable,type:B.type,width:B.width?B.width:null}),l.createSlots({header:l.withCtx(()=>[l.createVNode(d,{item:B,onFixed:F=>e.handleFixedCell(B)},null,8,["item","onFixed"])]),_:2},[B.type?B.type==="expand"?{name:"default",fn:l.withCtx(({row:F})=>[l.renderSlot(e.$slots,B.prop,{index:E,scope:F},void 0,!0)]),key:"1"}:void 0:{name:"default",fn:l.withCtx(({row:F,$index:C})=>[B.action?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.renderSlot(e.$slots,"action-before",{scope:F},void 0,!0),l.createVNode(c,{config:B,"current-path":e.currentPagePath,"menus-obj":e.userMenusAuth,row:F,"show-button-num":e.appConfig.tableButtonNum,onTableAction:I=>e.handleTableAction(I,F,B)},null,8,["config","current-path","menus-obj","row","show-button-num","onTableAction"]),l.renderSlot(e.$slots,"action-after",{scope:F},void 0,!0)],64)):B.isColumn?l.renderSlot(e.$slots,B.prop,{key:1,index:E,scope:F},void 0,!0):(l.openBlock(),l.createElementBlock("div",{key:2,class:l.normalizeClass([(B==null?void 0:B.columnCls)||"fxmc","w mw"])},[l.renderSlot(e.$slots,B.slotPreName,{scope:F},void 0,!0),l.renderSlot(e.$slots,B.prop,{index:E,scope:F},()=>[l.createVNode(h,{index:C,item:B,row:F,onChange:e.handleEditRowProp,onClickCell:e.handleClickRow},null,8,["index","item","row","onChange","onClickCell"])],!0),l.renderSlot(e.$slots,B.slotSufName,{scope:F},void 0,!0)],2))]),key:"0"}]),1040,["align","fixed","min-width","prop","sortable","type","width"])):l.createCommentVNode("",!0)],64))),128)),l.renderSlot(e.$slots,"table-content-after",{list:e.tableData},void 0,!0)]),_:3},16,["data","element-loading-text","height","size","onCurrentChange","onHeaderDragend","onSelectionChange","onSortChange"])),[[k,e.ajaxLoading]])],!0),l.renderSlot(e.$slots,"table-after",{},void 0,!0),l.createElementVNode("div",Q8e,[l.createElementVNode("div",$8e,[l.renderSlot(e.$slots,"table-pagination-before",{data:e.tableStatistics},void 0,!0)]),e.showPagination?(l.openBlock(),l.createBlock(y,l.mergeProps({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):l.createCommentVNode("",!0)]),l.renderSlot(e.$slots,"table-pagination-after",{},void 0,!0)])):l.createCommentVNode("",!0),e.editBoxInfo.visible?(l.openBlock(),l.createBlock(v,{key:1,ref:"editBoxRef","app-config":e.editBoxInfo.config,config:e.editBoxInfo,"selection-row":e.selectionRow,"selection-row-ids":e.selectionRowIds,onAddOption:e.handleAddOption,onAddSuccess:e.handleAddSuccess,onEditSuccess:e.handleEditSuccess,onError:e.handleError,onItemChange:e.handleItemChange,onUploadBtn:e.handleUploadBtn},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),B=>({name:B,fn:l.withCtx(({model:E})=>[l.renderSlot(e.$slots,B,{model:E},void 0,!0)])}))]),1032,["app-config","config","selection-row","selection-row-ids","onAddOption","onAddSuccess","onEditSuccess","onError","onItemChange","onUploadBtn"])):l.createCommentVNode("",!0),e.addBoxInfo.visible?(l.openBlock(),l.createBlock(v,{key:2,ref:"addBoxRef","app-config":e.addBoxInfo.config,config:e.addBoxInfo,onAddOption:e.handleAddOption,onAddSuccess:e.handleAddSuccess,onEditSuccess:e.handleEditSuccess,onError:e.handleError,onUploadBtn:e.handleUploadBtn},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),B=>({name:B,fn:l.withCtx(({model:E})=>[l.renderSlot(e.$slots,B,{model:E},void 0,!0)])}))]),1032,["app-config","config","onAddOption","onAddSuccess","onEditSuccess","onError","onUploadBtn"])):l.createCommentVNode("",!0),e.tableDrawerConfig.visible?(l.openBlock(),l.createBlock(g,l.mergeProps({key:3,modelValue:e.tableDrawerConfig.visible,"onUpdate:modelValue":t[2]||(t[2]=B=>e.tableDrawerConfig.visible=B)},e.tableDrawerConfig.attrs,{class:"jwt-drawer-wrapper","with-header":!1,onClose:e.handleCloseDrawer}),{default:l.withCtx(()=>[l.createVNode(b,{ref:"pageDetailRef",config:e.tableDrawerConfig.config,"current-page-drawer-config":e.tableDrawerConfig.contentConfig,"current-page-path":e.currentPagePath,"keep-alive":!1,"open-page-drawer-config-list":[],"user-menus-auth":e.userMenusAuth,onCloseDrawer:e.handleCloseDrawer,onRefreshTable:e.handleRefreshTable},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),B=>({name:B,fn:l.withCtx(({scope:E,model:F,row:C})=>[l.renderSlot(e.$slots,B,{model:F,row:C,scope:E},void 0,!0)])}))]),1032,["config","current-page-drawer-config","current-page-path","user-menus-auth","onCloseDrawer","onRefreshTable"])]),_:3},16,["modelValue","onClose"])):l.createCommentVNode("",!0)],64)}const t9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(J8e,[["render",e9e],["__scopeId","data-v-e15df54b"]])},Symbol.toStringTag,{value:"Module"})),n9e=l.defineComponent({name:"JwtTable",components:{TableSizeSetting:GE,TableFieldControl:KE,TableListContent:kG,TableContentControl:bG,TableListContentVirtualized:_G},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},userMenusAuth:{type:Object,default:()=>{}},route:{type:Object,default:()=>{}},router:{type:Object,default:()=>{}},userFieldList:{type:Object,default:()=>{}},refMenuId:{type:[Number,String],default:""},pageUrl:{type:String,default:""},tableColumn:{type:Array,default:()=>[]},freezeList:{type:Boolean,default:!0},cacheSearch:{type:Boolean,default:!1}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success","click-cell","des-edit-success","upload-btn","event-name","copy-success","asynExport","search-result","change-table-column","fixed-table-column","dialog-close","refresh-draw","refresh-table","form-item-change","row-change","dbclick-cell","change-table-rank","after-btns-click","show-file","sort-change"],setup(e,{emit:t}){var $e,ut,We,ft,dt;const n=Nn(),i={"page-sizes":v7(),"page-size":20,layout:"total, sizes, prev, pager, next, jumper"};let r="";const o=($e=e==null?void 0:e.config)!=null&&$e.virtualized?l.ref([]):l.shallowRef([]),s=l.shallowRef([]),a=l.reactive({ajaxLoading:!1,submitLoading:!1,renderTable:!0,refreshTable:!1,tableSize:ir.get("tableSize")||"default",tableFields:null,tableStatistics:[]}),{proxy:u}=l.getCurrentInstance(),f=l.useSlots(),d=l.ref([]),c=l.ref({}),h=l.shallowRef(null),p=l.shallowRef(null),m=l.shallowRef(null),y=l.ref(null),v=l.computed(()=>{var Z;return(Z=y==null?void 0:y.value)==null?void 0:Z.tableRef}),b=l.computed(()=>d.value.map(Z=>Z.id).join(",")),g=l.computed(()=>{var Z;return((Z=p.value)==null?void 0:Z.editBoxRefModel)||{}}),k=l.computed(()=>{var Z;return((Z=m.value)==null?void 0:Z.editBoxRefModel)||{}}),w=l.computed(()=>lo("showPagination",e.config)?Ke.isFunction(e.config.showPagination)?e.config.showPagination():e.config.showPagination:!0),T=l.computed(()=>lo("headerActionsShow",e.config)?Ke.isFunction(e.config.headerActionsShow)?e.config.headerActionsShow():e.config.headerActionsShow:!0),S=l.computed(()=>lo("showHeaderSearch",e.config)?Ke.isFunction(e.config.showHeaderSearch)?e.config.showHeaderSearch():e.config.showHeaderSearch:!0),_=Object.freeze({headerActions:{list:[],deleteText:""},headerActionsShow:!0,tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0,immediate:!0,defaultSort:{prop:"",order:""},sortBy:{key:"",order:""}},virtualized:!1,dragTitleKey:"title",estimatedRowHeight:50,tableEvents:{},tableColumn:[],searchBtnInline:!1,useField:!0,keepAliveTabs:!0,tableListApi:null,tableListParams:{},tableCacheSortOrder:{},tableDeleteApi:null,tableRowEdit:!0,tableDeleteText:"",tableDeleteParams:{},tableExportApi:"",tableExportPathKey:"",tablePrintApi:"",tablePrintPathKey:"http_path",pagination:i,showPagination:!0,hasPagination:!0,showTableLineHeight:!1,showTableDrag:!1,editBoxOnDialog:!0,editBox:{title:Pe("系统"),dialog:{width:"960px",top:"7vh"},form:{api:{add:null,update:null},formAttrs:{},formList:[]},footer:{confirm:{title:Pe("确认"),attrs:{type:"primary"}},cancel:{title:Pe("取消"),attrs:{}}}},tableDrawer:{}});let A=Ke.merge({},_,{useField:!0,keepAliveTabs:!0},e.config);const D=()=>{var Z;return((Z=e==null?void 0:e.config)==null?void 0:Z.tablePageSizeName)||"pageSize"},x=l.reactive({currentPage:1,pageCount:1,pageSize:ir.get(D())||((ut=A.tableListParams)==null?void 0:ut.per_page)||A.pagination["page-sizes"][2],totalCount:1,sort:((We=A.tableListParams)==null?void 0:We.sort)||"id",order:((ft=A.tableListParams)==null?void 0:ft.order)||"desc"}),B=l.reactive({title:"",type:"add",visible:!1,model:{},config:{},boxName:"editBox",refreshTable:!1}),E=l.reactive({title:"",type:"add",visible:!1,model:{},config:{},boxName:"editBox"}),F={"append-to-body":!0,"destroy-on-close":!0,size:"40%"},C=l.shallowReactive({attrs:{...F},visible:!1,config:{},detailInfo:{},contentConfig:{}}),I=l.computed(()=>A.virtualized?{key:x.sort,order:x.order}:{prop:x.sort,order:x.order==="asc"?"ascending":"descending"}),N=l.computed(()=>{var Z;return C.descriptionEdit||(Z=C==null?void 0:C.attrs)!=null&&Z.refresh?l.reactive(C.detailInfo):C.detailInfo}),H=()=>{var ge;const Z={};for(const Me in e.userMenusAuth){const{id:Ne}=((ge=e.userMenusAuth)==null?void 0:ge[Me])||"";Ne&&(Z[Ne]=Me)}return Z},Q=l.computed(()=>{var ge;let Z=((ge=e==null?void 0:e.route)==null?void 0:ge.path)||"";return e!=null&&e.refMenuId&&(Z=H()[e.refMenuId]),e!=null&&e.pageUrl&&(Z=e==null?void 0:e.pageUrl),Z||""}),ie=l.computed(()=>Pe("加载数据中")||"加载数据中..."),ae=(Z={})=>{const{query:ge}=e.route||{};let Me={...c.value,...Z};if((ge!=null&&ge.fromJump||ge!=null&&ge.openType)&&!(e!=null&&e.refMenuId)){for(let[Ne,Ge]of Object.entries(ge))Ke.isArray(Ge)?Me[Ne]=Ge.map(Je=>+Je):Me[Ne]=Ge;Me.openType&&delete Me.openType,delete Me.fromJump}c.value=Me,j(Z)},M=()=>{var Z,ge;return{...A.tableListParams||{},page:x.currentPage,per_page:x.pageSize,sort:x.sort||((Z=A.tableListParams)==null?void 0:Z.sort)||"",order:x.order||((ge=A.tableListParams)==null?void 0:ge.order)||"",...c.value||{}}},j=(Z={})=>{const ge=M(),Me=Ke.merge({},ge,Z);V(Me)},V=Z=>{if(!A.tableListApi){A.tableData&&(o.value=A.tableData);return}a.ajaxLoading=!0,n.request({url:A.tableListApi,method:"get",params:Z}).then(ge=>{let Me=null;if(A.hasPagination){A!=null&&A.tableListCallback&&Ke.isFunction(A.tableListCallback)?Me=A.tableListCallback(ge.data,ge):Me=ge.data,o.value=e.freezeList?l.markRaw(Me.map(Ge=>l.markRaw(Ge))):Me;let Ne=ge;A!=null&&A.paginationCback&&Ke.isFunction(A.paginationCback)&&(Ne=A.paginationCback(ge)),x.pageCount=Ne==null?void 0:Ne.totalPage,x.totalCount=Ne.total,x.currentPage=Ne.current_page}else Me=ge,o.value=e.freezeList?l.markRaw(Me):Me;Me=null,a.tableStatistics=(ge==null?void 0:ge.statistics)||null,a.ajaxLoading=!1,L(ge.data),t("tablelist-change",ge.data)}).catch(()=>{a.ajaxLoading=!1})},L=(Z=[])=>{if(e!=null&&e.refMenuId)return;const{query:{id:ge,openType:Me}}=e.route;if(Me&&ge&&Z.length===1){if(Me==="edit")R(Z[0],{});else if(Me.includes("Detail")){const Ne=s.value.find(Ge=>{var Je;return((Je=Ge==null?void 0:Ge.publicDrawerConfig)==null?void 0:Je.openName)===Me});Ne!=null&&Ne.id&&t("click-cell",Z[0],Ne)}}},W=()=>{x.currentPage=1;const Z={page:1,per_page:x.pageSize};c.value={},l.nextTick(()=>{j(Z)})},G=(Z,ge)=>{c.value[Z]=ge},$=Z=>{var ge,Me;x.currentPage=1,(Me=(ge=e.config)==null?void 0:ge.tableSearch)!=null&&Me.onlyData?c.value={...Z}:c.value={...c.value,...Z},t("search-result",Z),j(Z)},re=Z=>{x.currentPage=Z,j({page:Z})},be=Z=>{x.pageSize=Z;const ge=D();ir.set(ge,Z),j({per_page:Z})},Se=Z=>{d.value=Z,t("selection-change",Z)},ee=Z=>{o.value=o.value.map(ge=>(ge.selectionChecked=Z,ge)),Z?(d.value=o.value,t("selection-change",o.value)):(d.value=[],t("selection-change",[]))},we=()=>{l.nextTick(()=>{const Z=o.value.filter(ge=>ge.selectionChecked);d.value=Z,t("selection-change",Z)})},Ee=({prop:Z,order:ge})=>{var Ne;x.sort=Z,x.order=ge==="ascending"?"asc":"desc";const Me={sort:Z,order:ge==="ascending"?"asc":"desc"};ge&&((Ne=A==null?void 0:A.tableListParams)!=null&&Ne.sorts)&&(Me.sorts=""),t("sort-change",{prop:Z,order:ge,param:Me,tableFields:a.tableFields}),j(Me)},P=Z=>{t("table-current-change",Z)},le=()=>{var Z,ge,Me,Ne;if(E.visible){E.visible=!1,E.config=null,E.model=null,a.submitLoading=!1;return}C.visible&&it(),(ge=(Z=B==null?void 0:B.config)==null?void 0:Z.api)!=null&&ge.refreshDraw&&t("refresh-draw"),((Ne=(Me=B==null?void 0:B.config)==null?void 0:Me.api)!=null&&Ne.refreshTable||B!=null&&B.refreshTable)&&t("refresh-table"),B.visible=!1,B.config=null,B.model=null,a.submitLoading=!1,t("list-change"),!B.stopGetList&&j()},me=(Z,ge)=>{var Me,Ne,Ge;B.visible&&(Me=B==null?void 0:B.config)!=null&&Me.addSuccess&&Ke.isFunction((Ne=B==null?void 0:B.config)==null?void 0:Ne.addSuccess)&&((Ge=B==null?void 0:B.config)==null||Ge.addSuccess(c,G)),le(),t("add-success",Z,ge)},J=(Z,ge)=>{le(),t("edit-success",Z,ge)},Y=()=>{C.visible=!0},fe=(Z,ge)=>{n.request({url:A.tableCopyApi,method:"post",data:Z}).then(()=>{t("copy-success",ge),j()})},oe=(Z,ge,Me,Ne=[],Ge=!1)=>{Ik(Z,ge,Me,{selectionRow:Ne,cancel:Ge,callback:(Je,gt)=>{var et,qt;t("des-edit-success",Je,gt),ge.refreshTable&&Le(),ge!=null&&ge.refreshDraw&&xt(),(qt=(et=ge==null?void 0:ge.api)==null?void 0:et.callback)==null||qt.call(et,Je)}})},pe=(Z={})=>{const ge=M();kB(Z,ge,{url:A.tablePrintApi,tableData:o.value,proxy:u,tableExportPathKey:A.tableExportPathKey})},de=(Z={},ge={})=>{const Me=M();Em(Z,ge,Me,{url:A.tableExportApi,tableData:o.value,proxy:u,selectionRow:d.value,tableExportPathKey:A.tableExportPathKey,beforeExportFun:A.beforeExportFun,tableExportName:A.tableExportName,emit:t,isTemp:!1})},Oe=(Z={},ge={})=>{const Me=M();Em(Z,ge,Me,{url:A.tableExportApi,tableData:o.value,proxy:u,selectionRow:d.value,tableExportPathKey:A.tableExportPathKey,beforeExportFun:A.beforeExportFun,tableExportName:A.tableExportName,emit:t,isTemp:!0})},ve=()=>{var Z;if(!((Z=A.tableFileImport)!=null&&Z.action)){lt.ElMessage.info(Pe("请配置文件上传接口"));return}},_e=(Z,ge,Me=!0)=>{Z[`isEdit${ge.prop}`]=Me},Ue=(Z={},ge={},Me="table")=>{var un,ki,Li,Lr,so;const{id:Ne}=Z,{prop:Ge,refreshTable:Je,api:gt}=ge;if(t("row-change",Z,ge),!Ne||!A.tableRowEdit)return;const et={table:{url:A.tableUpdateApi,des:"tableUpdateApi"},drawDes:{url:((un=C==null?void 0:C.api)==null?void 0:un.update)||((Li=(ki=C==null?void 0:C.descriptions)==null?void 0:ki.api)==null?void 0:Li.update)||((so=(Lr=A==null?void 0:A.tableDrawer)==null?void 0:Lr.api)==null?void 0:so.update),des:"drawerConfig.api.update || appConfig.tableDrawer.api.update"}};let qt=(gt==null?void 0:gt.url)||et[Me].url;if(!qt)return lt.ElMessage.info(`${Pe("请配置编辑接口")}${et[Me].des}`);var nn={id:Ne};const{startKey:Mi,endKey:bi}=ge;if(Mi&&bi?(nn[Mi]=ck(Z[Ge][0]),nn[bi]=ck(Z[Ge][1])):nn[Ge]=ck(Z[Ge]),gt!=null&&gt.params){let $u=Ke.isFunction(gt.params)?gt.params(Z,nn):gt.params;nn={...nn,...$u}}n.request({url:qt,method:"post",data:nn}).then(()=>{Z[`isEdit${Ge}`]=!1,Me==="drawDes"&&(a.refreshTable=!0),Je&&Le(),t("des-edit-success",ge)})},st=Z=>{t("dbclick-cell",Z)},it=(Z="")=>{if(!C.visible){t("refresh-draw");return}const{url:ge,row:Me,searchKey:Ne,valueKey:Ge}=C.params||{};if(!ge)return lt.ElMessage.info(Pe("请配置详情接口"));const Je={};Je[Ne]=Z||rr(Ge,Me),n.request({url:ge,method:"get",params:Je}).then(gt=>{C.detailInfo=gt})},xt=(Z="")=>{it(Z),a.refreshTable=!0},yt=(Z,ge)=>{var Je,gt,et,qt,nn;const Me=Ke.merge({},F,((Je=ge.drawerConfig)==null?void 0:Je.attrs)||{});C.attrs=Me;const Ne=(gt=ge==null?void 0:ge.drawerConfig)==null?void 0:gt.tabPaneName,Ge=(et=ge==null?void 0:ge.drawerConfig)==null?void 0:et.desListName;Ne&&(A!=null&&A.tableDrawer[Ne])&&(C.config={...A==null?void 0:A.tableDrawer[Ne],api:Ke.merge({},((qt=A==null?void 0:A.tableDrawer)==null?void 0:qt.api)||{},((nn=ge.drawerConfig)==null?void 0:nn.api)||{}),attrs:Me,descriptions:Ge&&(A!=null&&A.tableDrawer[Ge])?A==null?void 0:A.tableDrawer[Ge]:{}}),C.detailInfo=Z,C.contentConfig={row:l.toRaw(Z),item:l.toRaw(ge)},l.nextTick(()=>{C.visible=!0})},je=(Z,ge)=>{var Me;t("click-cell",Z,ge),ge.drawerConfig?yt(Z,ge):((Me=ge==null?void 0:ge.actions)==null?void 0:Me.type)==="editBox"&&R(Z,ge.actions)},ce=Z=>{t("show-file",Z)},ke=()=>{},Be=()=>{a.refreshTable&&(j(),a.refreshTable=!1),C.visible=!1},Ve=Z=>{t("upload-btn",Z)},He=(Z,ge,Me,Ne)=>{t("after-btns-click",Z,ge,Me,Ne)},rt=()=>{var Z;(Z=A==null?void 0:A.tableFileImport)!=null&&Z.refreshTable&&Le()},ct=(...Z)=>{t("event-name",...Z)},vt=Z=>{const ge=Z==null?void 0:Z.action;q("",ge)},_t=(Z,ge)=>{E.visible?m.value.setModelVal(Z,ge):p.value.setModelVal(Z,ge)},Rt=(Z,ge)=>{E.visible?m.value.handleSetModelVal(Z,ge):p.value.handleSetModelVal(Z,ge)},zt=(Z="editBoxInfo")=>{Z==="editBoxInfo"?(B.model={},B.config={}):Z==="addBoxInfo"&&(E.model={},E.config={}),t("dialog-close")},Ot=Z=>{a.tableSize=Z,ir.set("tableSize",Z)},bn=(Z,ge,Me,Ne)=>{if(a.tableFields){const Ge=s.value.find(Je=>Je.prop===Me.property);Ge!=null&&Ge.id&&t("change-table-column","width",{width:Z,column:Ge})}},In=Z=>{a.tableFields&&(t("change-table-column","toggle",Z),Z.checked=!Z.checked)},Rn=()=>{a.tableFields&&t("change-table-column","draggable",s.value)},It=(Z,ge)=>{o.value=o.value.map((Me,Ne)=>({...Me,rank:ge+Ne})),l.nextTick(()=>{t("change-table-rank",o.value)})},mn=(Z,ge)=>{a.tableFields&&(t("change-table-column",Z,ge),ge.fixed=!ge.fixed)},Wn=()=>{h.value.formReset()},hi=(Z,ge)=>{h.value.setModelVal(Z,ge)},Ni=()=>{var Ne,Ge,Je;const{path:Z}=(e==null?void 0:e.route)||{},ge=(e==null?void 0:e.refMenuId)||((Ge=(Ne=e.userMenusAuth)==null?void 0:Ne[Z])==null?void 0:Ge.id);return((Je=e==null?void 0:e.config)==null?void 0:Je.useField)&&(e==null?void 0:e.userFieldList[ge])||null},Nr=()=>{var ge,Me,Ne;return((Ne=(Me=(ge=e.userMenusAuth)==null?void 0:ge[Q.value])==null?void 0:Me.operations)==null?void 0:Ne.filter(Ge=>Ge==null?void 0:Ge.show_table))||[]},$n=()=>{var Ne,Ge;let Z=[];const ge=Ni();a.tableFields=ge,((Ne=e==null?void 0:e.tableColumn)!=null&&Ne.length?e==null?void 0:e.tableColumn:(Ge=e==null?void 0:e.config)==null?void 0:Ge.tableColumn).forEach(Je=>{var nn,Mi,bi,un,ki,Li;const gt=Ke.isFunction(Je.label)?Je.label():Je.label,et={...Je,label:Pe(gt),tips:Ke.isFunction(Je.tips)?Je.tips():Pe(Je.tips)};et.isEdit=!!(et.editType||et.dateTimeFormat||et.isImg||et.isImgs||et.editTypeFun);let qt=!0;if(et.isOperate){const Lr=Nr(),so=et.fixed==="right"&&(((nn=et==null?void 0:et.action)==null?void 0:nn.list)||[]);Lr!=null&&Lr.length&&so.length?qt=Lr.some($u=>so.includes($u.code)):qt=!1}ge?(ge[et.prop]&&Z.push({...et,...ge[et.prop],label:et!=null&&et.customLabel?et.label:((Mi=ge[et.prop])==null?void 0:Mi.label)||et.label,isControl:!0,fixed:!!((bi=ge[et.prop])!=null&&bi.is_fixed),checked:et.hide?!1:!!ge[et.prop].is_show,width:((un=ge[et.prop])==null?void 0:un.width)||(et==null?void 0:et.width)||"",sortable:(ki=ge[et.prop])!=null&&ki.support_sort?"custome":!1}),et.isOperate&&Z.push({...et,rank:et!=null&&et.type?-1/0:1/0,checked:(et==null?void 0:et.type)||qt,isControl:!1,fixed:(et==null?void 0:et.fixed)||"",width:((Li=ge[et.prop])==null?void 0:Li.width)||(et==null?void 0:et.width)||""})):Z.push({...et,checked:et.isOperate?qt:!et.hide})}),ge&&(Z=Z.sort((Je,gt)=>Je.rank-gt.rank)),s.value=Z},Xe=()=>{var Me,Ne,Ge;const Z={},ge=Ni();if(ge&&Ke.isObject(ge))for(const[Je,gt]of Object.entries(ge))gt.is_default_sort&&(Z.sort=Je,Z.order=gt.sort);(Me=A==null?void 0:A.tableCacheSortOrder)!=null&&Me.order&&(Z.order=(Ne=A==null?void 0:A.tableCacheSortOrder)==null?void 0:Ne.order,Z.sort=(Ge=A==null?void 0:A.tableCacheSortOrder)==null?void 0:Ge.sort),Z!=null&&Z.order&&(x.sort=Z.sort,x.order=Z.order)},Mr=async()=>await p.value.createSubmitData(),Ai=()=>{$n()},ua=(Z,ge,Me)=>{Z&&n.request({url:Z,method:"get",params:{}}).then(Ne=>{ge==null||ge(Ne,Me.model)})},O=(Z={},ge={})=>{var Ge;const Me=Z.formList;let Ne=Me;return a.tableFields&&(Ne=Me.filter(Je=>{const gt=!Je.privacyId||!!a.tableFields[Je.privacyId];return(Z==null?void 0:Z.privacyKey)==="disabled"?(Je.formAttrs={...Je.formAttrs,disabled:!gt},!0):gt})),(Ge=Z==null?void 0:Z.beforeCreate)!=null&&Ge.formatFormList&&Ke.isFunction(Z.beforeCreate.formatFormList)&&(Ne=Z.beforeCreate.formatFormList(Ne,ge)),Ne},X=async(Z,ge,Me={},Ne)=>{const Ge={id:Z.id,...Me};n.request({url:A[ge].form.api.detail,method:"get",params:Ge}).then(Je=>{var gt,et,qt,nn;Ne?B.model=Ne(Je):B.model=Je,(gt=A[ge].form.api)!=null&&gt.detailCallback&&Ke.isFunction((et=A[ge].form.api)==null?void 0:et.detailCallback)&&((nn=(qt=A[ge].form.api)==null?void 0:qt.detailCallback)==null||nn.call(qt,Je)),B.title=jk(!0,A,ge,Pe),t("get-detail-success",Je)})},z={filterFormList:O,handleGetDetail:X,handleBeforeCreateReq:ua,t:Pe},R=(Z,ge)=>{af(Z,ge,A,B,z),l.nextTick(()=>{A.editBoxOnDialog?B.visible=!0:Y()})},q=(Z,ge)=>{af(Z,ge,A,E,z),E.visible=!0},K=(Z="",ge,Me,Ne)=>{n.request({url:Z||A.tableDeleteApi,method:"post",data:ge}).then(()=>{t("delete-success",Ne),j(),Me!=null&&Me.refreshDraw&&xt()})},te={deleteText:((dt=A==null?void 0:A.headerActions)==null?void 0:dt.deleteText)||"",tableCopyText:A.tableCopyText,handleEdit:R,handleLinkRouter:hk,t:Pe,emit:t,handleDeleteRequest:K,handleExportRequest:de,handleExportTempRequest:Oe,handlePrintRequest:pe,handleImportRequest:ve,handleSimpleRequest:oe,handleCopyRequest:fe},ye=(Z,ge={},Me=null)=>{var Je,gt,et;const{code:Ne}=Z,Ge=Me||((Je=A.headerActions)==null?void 0:Je[Ne])||((et=(gt=C==null?void 0:C.descriptions)==null?void 0:gt.headerActions)==null?void 0:et[Ne]);hc(Z,ge,Ge,d.value,"tableHeader",te),t("header-action",Z,d.value,N.value,Ge)},Fe=(Z,ge,Me)=>{const{action:Ne}=Z,Ge=Me.action[Ne.code];hc(Ne,ge,Ge,d.value,"",{...te,deleteText:A.tableDeleteText}),t("table-action",Ne,ge,Ge,Z)},se=l.watchEffect(()=>{}),xe=l.watch(e,Z=>{A=Ke.merge({},_,Z.config),Z.config.tableData&&(o.value=Z.config.tableData||[])}),Le=()=>{j(),t("refresh-table")},Te=(Z,ge,Me)=>{t("form-item-change",Z,ge,Me)},ne=async()=>{var Me;const Z=await((Me=h==null?void 0:h.value)==null?void 0:Me.createSubmitData());for(const Ne in Z)Z[Ne]===""&&delete Z[Ne];const ge=Ce(!1);return ge&&(Object.assign(Z,ge),h.value.handleSetModelValue(Z)),Z},Ce=(Z=!1)=>{var ge;if(e.cacheSearch){const Me=r||Q.value;return((ge=n==null?void 0:n.handleCacheSearch)==null?void 0:ge.call(n,Me,Z,Z?c.value:null))||null}return null},Re=l.watch(()=>Q.value,(Z,ge)=>{Z!==r&&(r=ge)});l.onMounted(async()=>{var ge;const Z=await ne();c.value=Z,Xe(),$n(),(ge=A.tableAttr)!=null&&ge.immediate&&ae()});function ze(){A=null,o.value=null,s.value=null,c.value=null,a.tableFields=null,d.value=null,a.renderTable=!1}return l.onBeforeUnmount(()=>{Ce(!0),se(),xe(),ze(),Re()}),{tableRef:v,tableListContentRef:y,tableData:o,appTableColumn:s,slots:f,...l.toRefs(a),currentPagePath:Q,appConfig:A,pagination:x,editBoxRef:p,editBoxRefModel:g,editBoxInfo:B,addBoxInfo:E,addBoxRef:m,addBoxRefModel:k,tableDrawerConfig:C,selectionRow:d,selectionRowIds:b,tableSearchModel:c,loadingText:ie,searchFormRef:h,showPagination:w,showHeaderActions:T,showHeaderSearch:S,defaultSort:I,onSearchSubmit:$,onSearchReset:W,handleEdit:R,handleCurrentChange:re,handleSizeChange:be,handleSelectionChange:Se,handleTableCurrentChange:P,handleSortChange:Ee,handleHeaderAction:ye,handleTableAction:Fe,handleGetDetail:X,getList:j,initSearch:ae,handleError:ke,handleAddSuccess:me,handleEditSuccess:J,handleEditRow:_e,handleEditRowProp:Ue,handleImportRequest:ve,handleClickRow:je,handleShowFile:ce,handleCloseDrawer:Be,handleUploadBtn:Ve,handleUploadSuccess:rt,handleRefreshDrawerDetail:xt,handleComponentEvent:ct,handleAddOption:vt,setFormModelVal:_t,handleSetFormModelVal:Rt,handleSetSearchModelVal:hi,handleDialogClose:zt,handleTableSizeChange:Ot,handleTableHeaderDragend:bn,handleFieldCheck:In,handleTableColumnSort:Rn,handleSearchFormReset:Wn,getSubmitData:Mr,handleFixedCell:mn,handleDoLayoutTable:Ai,handleItemChange:Te,handleDbCellClick:st,handleTableDataSort:It,handleAfterBtnsClick:He,handleSelectionHeaderChange:ee,handleSelectionColumnChange:we}}}),i9e={key:0,class:"app-table-wrapper"},r9e={key:0,class:"table-header-wrapper fx"},o9e={class:"fxm pr10 ex"},a9e={class:"fxmj"},s9e={class:"ex"};function l9e(e,t,n,i,r,o){var b,g,k,w,T,S,_,A,D;const s=l.resolveComponent("jwt-form"),a=l.resolveComponent("jwt-header-button"),u=l.resolveComponent("TableSizeSetting"),f=l.resolveComponent("TableFieldControl"),d=l.resolveComponent("TableContentControl"),c=l.resolveComponent("TableListContentVirtualized"),h=l.resolveComponent("TableListContent"),p=l.resolveComponent("el-pagination"),m=l.resolveComponent("JwtDialogForm"),y=l.resolveComponent("jwt-detail-drawer"),v=l.resolveComponent("el-drawer");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.renderTable?(l.openBlock(),l.createElementBlock("div",i9e,[l.createElementVNode("div",{class:l.normalizeClass([(b=e.appConfig)!=null&&b.searchBtnInline?"fxmj":""])},[l.renderSlot(e.$slots,"search-before",{},void 0,!0),e.showHeaderSearch?(l.openBlock(),l.createElementBlock("div",r9e,[t[0]||(l.setBlockTracking(-1,!0),(t[0]=(w=(k=(g=e.config)==null?void 0:g.tableSearch)==null?void 0:k.formList)!=null&&w.length?(l.openBlock(),l.createBlock(s,{key:0,ref:"searchFormRef",modelValue:e.tableSearchModel,"onUpdate:modelValue":x=>e.tableSearchModel=x,class:"app-table-search",config:(T=e.config)==null?void 0:T.tableSearch,"is-search":"",onReset:e.onSearchReset,onSubmit:e.onSearchSubmit},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({model:B})=>[l.renderSlot(e.$slots,x,{model:B},void 0,!0)])}))]),1032,["modelValue","onUpdate:modelValue","config","onReset","onSubmit"])):l.createCommentVNode("",!0)).cacheIndex=0,l.setBlockTracking(1),t[0]),l.renderSlot(e.$slots,"search-form-after",{},void 0,!0)])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"search-after",{},void 0,!0),l.createElementVNode("div",{class:l.normalizeClass(["fxmj",[(S=e.appConfig)!=null&&S.searchBtnInline?"mb18":""]])},[l.createElementVNode("div",o9e,[l.renderSlot(e.$slots,"header-button-before",{},void 0,!0),e.showHeaderActions?(l.openBlock(),l.createBlock(a,{key:0,config:((_=e.config)==null?void 0:_.headerActions)||{},"current-path":e.currentPagePath,"file-import":e.appConfig.tableFileImport,loading:e.ajaxLoading,"menus-obj":e.userMenusAuth,"total-count":e.pagination.totalCount,"selection-row":e.selectionRow,"upload-success-cb":e.appConfig.uploadSuccessCb,onHeaderAction:e.handleHeaderAction,onUploadSuccess:e.handleUploadSuccess},null,8,["config","current-path","file-import","loading","menus-obj","total-count","selection-row","upload-success-cb","onHeaderAction","onUploadSuccess"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"header-button-after",{},void 0,!0)]),l.createElementVNode("div",null,[e.appConfig.showTableLineHeight?(l.openBlock(),l.createBlock(u,{key:0,onTableSize:e.handleTableSizeChange},null,8,["onTableSize"])):l.createCommentVNode("",!0),e.tableFields?(l.openBlock(),l.createBlock(f,{key:1,modelValue:e.appTableColumn,"onUpdate:modelValue":t[1]||(t[1]=x=>e.appTableColumn=x),onChange:e.handleFieldCheck,onSort:e.handleTableColumnSort},null,8,["modelValue","onChange","onSort"])):l.createCommentVNode("",!0),(A=e.appConfig)!=null&&A.showTableDrag&&((D=e.tableData)!=null&&D.length)?(l.openBlock(),l.createBlock(d,{key:2,modelValue:e.tableData,"onUpdate:modelValue":t[2]||(t[2]=x=>e.tableData=x),"drag-title-key":e.appConfig.dragTitleKey,onSort:e.handleTableDataSort},null,8,["modelValue","drag-title-key","onSort"])):l.createCommentVNode("",!0)])],2)],2),l.renderSlot(e.$slots,"table-before",{},void 0,!0),l.renderSlot(e.$slots,"table-content",{list:e.tableData},()=>[e.appConfig.virtualized?(l.openBlock(),l.createBlock(c,{key:0,"ajax-loading":e.ajaxLoading,"app-table-column":e.appTableColumn,"current-page-path":e.currentPagePath,"default-sort":e.defaultSort,"estimated-row-height":e.appConfig.estimatedRowHeight,"loading-text":e.loadingText,pagination:e.pagination,"table-attr":e.appConfig.tableAttr,"table-button-num":e.appConfig.tableButtonNum,"table-data":e.tableData,"table-events":e.appConfig.tableEvents,"table-height":e.tableHeight,"table-size":e.tableSize,"user-menus-auth":e.userMenusAuth,onChangeTableColumn:e.handleFixedCell,onClickCell:e.handleClickRow,onDbclickCell:e.handleDbCellClick,onEditRow:e.handleEditRowProp,onSelectionColumnChange:e.handleSelectionColumnChange,onSelectionHeaderChange:e.handleSelectionHeaderChange,onSortChange:e.handleSortChange,onTableAction:e.handleTableAction,onShowFile:e.handleShowFile},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({scope:B,data:E,list:F,index:C,rowindex:I,pagestart:N})=>[l.renderSlot(e.$slots,x,{data:E,index:C,list:F,rowindex:I,pagestart:N,scope:B},void 0,!0)])}))]),1032,["ajax-loading","app-table-column","current-page-path","default-sort","estimated-row-height","loading-text","pagination","table-attr","table-button-num","table-data","table-events","table-height","table-size","user-menus-auth","onChangeTableColumn","onClickCell","onDbclickCell","onEditRow","onSelectionColumnChange","onSelectionHeaderChange","onSortChange","onTableAction","onShowFile"])):(l.openBlock(),l.createBlock(h,{key:1,ref:"tableListContentRef","ajax-loading":e.ajaxLoading,"app-table-column":e.appTableColumn,"current-page-path":e.currentPagePath,"default-sort":e.defaultSort,"loading-text":e.loadingText,"table-attr":e.appConfig.tableAttr,"table-button-num":e.appConfig.tableButtonNum,"table-data":e.tableData,"table-events":e.appConfig.tableEvents,"table-height":e.tableHeight,"table-size":e.tableSize,"user-menus-auth":e.userMenusAuth,pagination:e.pagination,onChangeTableColumn:e.handleFixedCell,onClickCell:e.handleClickRow,onDbclickCell:e.handleDbCellClick,onEditRow:e.handleEditRowProp,onHeaderDragend:e.handleTableHeaderDragend,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange,onTableAction:e.handleTableAction,onTableCurrentChange:e.handleTableCurrentChange,onShowFile:e.handleShowFile},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({scope:B,data:E,list:F,index:C,rowindex:I,pagestart:N})=>[l.renderSlot(e.$slots,x,{data:E,index:C,list:F,rowindex:I,pagestart:N,scope:B},void 0,!0)])}))]),1032,["ajax-loading","app-table-column","current-page-path","default-sort","loading-text","table-attr","table-button-num","table-data","table-events","table-height","table-size","user-menus-auth","pagination","onChangeTableColumn","onClickCell","onDbclickCell","onEditRow","onHeaderDragend","onSelectionChange","onSortChange","onTableAction","onTableCurrentChange","onShowFile"]))],!0),l.renderSlot(e.$slots,"table-after",{},void 0,!0),l.createElementVNode("div",a9e,[l.createElementVNode("div",s9e,[l.renderSlot(e.$slots,"table-pagination-before",{data:e.tableStatistics},void 0,!0)]),e.showPagination?(l.openBlock(),l.createBlock(p,l.mergeProps({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):l.createCommentVNode("",!0)]),l.renderSlot(e.$slots,"table-pagination-after",{},void 0,!0)])):l.createCommentVNode("",!0),e.editBoxInfo.visible?(l.openBlock(),l.createBlock(m,{key:1,ref:"editBoxRef","app-config":e.editBoxInfo.config,config:e.editBoxInfo,"selection-row":e.selectionRow,"selection-row-ids":e.selectionRowIds,onAddOption:e.handleAddOption,onAddSuccess:e.handleAddSuccess,onDialogClose:e.handleDialogClose,onEditSuccess:e.handleEditSuccess,onError:e.handleError,onItemChange:e.handleItemChange,onUploadBtn:e.handleUploadBtn,onAfterBtnsClick:e.handleAfterBtnsClick},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({model:B})=>[l.renderSlot(e.$slots,x,{model:B},void 0,!0)])}))]),1032,["app-config","config","selection-row","selection-row-ids","onAddOption","onAddSuccess","onDialogClose","onEditSuccess","onError","onItemChange","onUploadBtn","onAfterBtnsClick"])):l.createCommentVNode("",!0),e.addBoxInfo.visible?(l.openBlock(),l.createBlock(m,{key:2,ref:"addBoxRef","app-config":e.addBoxInfo.config,config:e.addBoxInfo,onAddOption:e.handleAddOption,onAddSuccess:e.handleAddSuccess,onDialogClose:e.handleDialogClose,onEditSuccess:e.handleEditSuccess,onError:e.handleError,onUploadBtn:e.handleUploadBtn},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({model:B})=>[l.renderSlot(e.$slots,x,{model:B},void 0,!0)])}))]),1032,["app-config","config","onAddOption","onAddSuccess","onDialogClose","onEditSuccess","onError","onUploadBtn"])):l.createCommentVNode("",!0),e.tableDrawerConfig.visible?(l.openBlock(),l.createBlock(v,l.mergeProps({key:3,modelValue:e.tableDrawerConfig.visible,"onUpdate:modelValue":t[3]||(t[3]=x=>e.tableDrawerConfig.visible=x)},e.tableDrawerConfig.attrs,{class:"jwt-drawer-wrapper","with-header":!1,onClose:e.handleCloseDrawer}),{default:l.withCtx(()=>[l.createVNode(y,{ref:"pageDetailRef",config:e.tableDrawerConfig.config,"current-page-drawer-config":e.tableDrawerConfig.contentConfig,"current-page-path":e.currentPagePath,"keep-alive":!1,"open-page-drawer-config-list":[],"user-menus-auth":e.userMenusAuth,onCloseDrawer:e.handleCloseDrawer,onRefreshTable:e.handleRefreshTable},l.createSlots({_:2},[l.renderList(Object.keys(e.slots),x=>({name:x,fn:l.withCtx(({scope:B,model:E,row:F})=>[l.renderSlot(e.$slots,x,{model:E,row:F,scope:B},void 0,!0)])}))]),1032,["config","current-page-drawer-config","current-page-path","user-menus-auth","onCloseDrawer","onRefreshTable"])]),_:3},16,["modelValue","onClose"])):l.createCommentVNode("",!0)],64)}const u9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(n9e,[["render",l9e],["__scopeId","data-v-7924fa11"]])},Symbol.toStringTag,{value:"Module"})),f9e={"page-sizes":[10,20,30,40,50,100],"page-size":10,layout:"total, sizes, prev, pager, next, jumper"},d9e=l.defineComponent({name:"JwtTableOnly",components:{},props:{config:{require:!0,type:Object,default:()=>{}},tableHeight:{type:[String,Number],default:null},userMenusAuth:{type:Object,default:()=>{}}},emits:["selection-change","list-change","header-action","table-action","add-handle","edit-handle","add-success","edit-success","delete-success","table-current-change","tablelist-change","get-detail-success"],setup(e,{emit:t}){const n=Nn(),i=l.reactive({tableData:[],ajaxLoading:!1,submitLoading:!1});let r=l.reactive(Ke.merge({tableAttr:{stripe:!0,border:!0,fit:!0,highlightCurrentRow:!0},tableColumn:[],tableListApi:null,tableListParams:{},tableDeleteApi:null,tableDeleteParams:{},pagination:f9e,showPagination:!0},e.config));const o=l.reactive({currentPage:1,pageCount:1,pageSize:r.pagination["page-sizes"][0],totalCount:1,sort:"id",order:"desc"}),s=l.ref([]),a=l.ref({}),u=l.ref(null),f=l.computed(()=>e.userMenusAuth||{}),d=()=>{c()},c=()=>{const A=Ke.merge({page:o.currentPage,per_page:o.pageSize,sort:o.sort,order:o.order},r.tableListParams,a.value);h(A)},h=A=>{if(!r.tableListApi){r.tableData&&(i.tableData=r.tableData);return}i.ajaxLoading=!0,n.request({url:r.tableListApi,method:"get",params:A}).then(D=>{i.tableData=D.data,o.pageCount=D.totalPage,o.totalCount=D.total,i.ajaxLoading=!1,t("tablelist-change")})},p=()=>{o.currentPage=1,o.pageSize=r.pagination["page-sizes"][0],c()},m=()=>{o.currentPage=1,o.pageSize=r.pagination["page-sizes"][0],c(a.value)},y=A=>{o.currentPage=A,c()},v=A=>{o.pageSize=A,c()},b=(A,D="")=>A===null||A===""||A===void 0?"-":D?fa(A).format(D):A,g=A=>{s.value=A,t("selection-change",A)},k=({prop:A,order:D})=>{o.sort=A,o.order=D==="ascending"?"asc":"desc",c()},w=A=>{t("table-current-change",A)},T=(A,D,x=!0)=>{A[`isEdit${D.prop}`]=x},S=(A,D)=>{const{id:x}=A,{prop:B}=D;if(x){var E={id:x};if(E[B]=A[B],!r.tableUpdateApi)return lt.ElMessage.info("请配置编辑接口!tableUpdateApi");n.request({url:r.tableUpdateApi,method:"post",data:E}).then(()=>{A[`isEdit${B}`]=!1})}},_=A=>n.fillUrl&&on.isFunction(n.fillUrl)?n.fillUrl(A):A;return l.watch(e,A=>{r=Ke.merge(r,A.config),A.config.tableData&&(i.tableData=A.config.tableData||[])}),l.onBeforeMount(()=>{d()}),{...l.toRefs(i),appConfig:r,pagination:o,selectionRow:s,tableSearchModel:a,editBoxRef:u,dayjs:fa,userMenusAuthObj:f,onSearchSubmit:m,onSearchReset:p,handleCurrentChange:y,handleSizeChange:v,handleSelectionChange:g,handleTableCurrentChange:w,handleSortChange:k,filterVal:b,initSearch:d,handleEditRow:T,handleEditRowProp:S,handleFillUrl:_}}}),c9e={class:"app-table-wrapper"},h9e=["onDblclick"],p9e={class:"image-slot wh fxmc"},g9e={class:"fxr"};function m9e(e,t,n,i,r,o){const s=l.resolveComponent("el-input"),a=l.resolveComponent("el-input-number"),u=l.resolveComponent("jwt-upload-image"),f=l.resolveComponent("el-switch"),d=l.resolveComponent("jwt-icon"),c=l.resolveComponent("el-image"),h=l.resolveComponent("el-table-column"),p=l.resolveComponent("el-table"),m=l.resolveComponent("el-pagination"),y=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock("div",c9e,[l.renderSlot(e.$slots,"table-before",{},void 0,!0),l.withDirectives((l.openBlock(),l.createBlock(p,l.mergeProps(e.appConfig.tableAttr,{ref:"tableRef",class:"mt15",data:e.tableData,"element-loading-spinner":"el-icon-loading","element-loading-text":"加载数据中...",height:e.tableHeight,onCurrentChange:e.handleTableCurrentChange,onSelectionChange:e.handleSelectionChange,onSortChange:e.handleSortChange}),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.appConfig.tableColumn,(v,b)=>(l.openBlock(),l.createBlock(h,{key:b,align:v.align||"center",fixed:v.fixed,label:v.label,"min-width":v.minWidth?v.minWidth:null,prop:v.prop,sortable:v.sortable,type:v.type,width:v.width?v.width:null},l.createSlots({_:2},[v.type?void 0:{name:"default",fn:l.withCtx(({row:g,$index:k})=>[v.dateTimeFormat?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createTextVNode(l.toDisplayString(e.filterVal(g[v.prop],v.dateTimeFormat)),1)],64)):v.editType?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[v.editType==="input"?(l.openBlock(),l.createBlock(s,{key:0,modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,type:"text",onKeydown:l.withKeys(w=>e.handleEditRowProp(g,v),["enter"])},null,8,["modelValue","onUpdate:modelValue","onKeydown"])):v.editType==="inputNumber"?(l.openBlock(),l.createBlock(a,{key:1,modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,"controls-position":"right",min:0,onBlur:w=>e.handleEditRowProp(g,v)},null,8,["modelValue","onUpdate:modelValue","onBlur"])):v.editType==="uploadImg"?(l.openBlock(),l.createBlock(u,{key:2,modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,onOnChange:w=>e.handleEditRowProp(g,v)},null,8,["modelValue","onUpdate:modelValue","onOnChange"])):v.editType==="switch"?(l.openBlock(),l.createBlock(f,{key:3,modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,"active-value":1,"inactive-value":0,onChange:w=>e.handleEditRowProp(g,v)},null,8,["modelValue","onUpdate:modelValue","onChange"])):l.createCommentVNode("",!0)],64)):v.editInput?(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[l.withDirectives(l.createElementVNode("div",{onDblclick:w=>e.handleEditRow(g,v)},l.toDisplayString(e.filterVal(g[v.prop])),41,h9e),[[l.vShow,!g[`isEdit${v.prop}`]]]),l.withDirectives(l.createVNode(s,{modelValue:g[v.prop],"onUpdate:modelValue":w=>g[v.prop]=w,type:"text",onBlur:w=>e.handleEditRowProp(g,v),onKeyup:l.withKeys(w=>e.handleEditRowProp(g,v),["enter"])},null,8,["modelValue","onUpdate:modelValue","onBlur","onKeyup"]),[[l.vShow,g[`isEdit${v.prop}`]]])],64)):v.isImg?(l.openBlock(),l.createBlock(c,{key:3,"preview-src-list":[e.handleFillUrl(g[v.prop])],"preview-teleported":"",size:80,src:e.handleFillUrl(g[v.prop]),teleported:""},{error:l.withCtx(()=>[l.createElementVNode("div",p9e,[l.createVNode(d,{class:"g9",icon:"image-line",style:{"font-size":"40px"}})])]),_:2},1032,["preview-src-list","src"])):l.renderSlot(e.$slots,v.prop,{key:4,index:k,scope:g},()=>[l.createTextVNode(l.toDisplayString(e.filterVal(g[v.prop])),1)],!0)]),key:"0"}]),1032,["align","fixed","label","min-width","prop","sortable","type","width"]))),128))]),_:3},16,["data","height","onCurrentChange","onSelectionChange","onSortChange"])),[[y,e.ajaxLoading]]),l.createElementVNode("div",g9e,[e.appConfig.showPagination?(l.openBlock(),l.createBlock(m,l.mergeProps({key:0},e.appConfig.pagination,{class:"app-pagination","current-page":e.pagination.currentPage,disabled:e.ajaxLoading,"page-count":e.pagination.pageCount,"page-size":e.pagination.pageSize,total:e.pagination.totalCount,onCurrentChange:e.handleCurrentChange,onSizeChange:e.handleSizeChange}),null,16,["current-page","disabled","page-count","page-size","total","onCurrentChange","onSizeChange"])):l.createCommentVNode("",!0)])])}const v9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(d9e,[["render",m9e],["__scopeId","data-v-3311d9e5"]])},Symbol.toStringTag,{value:"Module"})),y9e=l.defineComponent({name:"JwtTabs"}),b9e=l.defineComponent({...y9e,props:{config:{type:Object,require:!0,default:()=>{}},currentPath:{type:String,default:"/"},menusObj:{type:Object,default:()=>{}},info:{type:Object,require:!0,default:()=>{}},keepAlive:{type:Boolean,default:!0}},emits:["tab-click","event-name"],setup(e,{expose:t,emit:n}){var b,g;const i=e,r=n,o=l.ref(null),s=l.ref(!1),a=l.computed(()=>{var w,T;return((T=(w=i.menusObj)==null?void 0:w[i==null?void 0:i.currentPath])==null?void 0:T.id)||""}),u=l.computed(()=>{var k,w;return((w=(k=i.config)==null?void 0:k.tabPaneList)==null?void 0:w.filter(T=>T.condition&&Ke.isFunction(T.condition)?T.condition(i.info):!0))||[]}),f=l.computed(()=>{var T;const k=((i==null?void 0:i.menusObj)||{})[i==null?void 0:i.currentPath];let w=u.value;if(k&&((T=k==null?void 0:k.operations)!=null&&T.length)){const S={};if(k.operations.forEach(_=>{_.show_tab&&(S[_.code]=_)}),Object.keys(S).length)return w.filter(_=>{var A,D,x;if(S[_.name]){_.refMenuId=((A=S[_.name])==null?void 0:A.ref_menu_id)||"",_.rank=((D=S[_.name])==null?void 0:D.rank)||"";let B=((x=S[_.name])==null?void 0:x.show_title)||_.label||"";return _.numKey&&(B=`${Pe(B)} (${i.info[_.numKey]||0})`),_.label=B,!0}}).sort((_,A)=>_.rank-A.rank)}return w}),d=l.computed(()=>{if(!i.keepAlive||s.value)return[""];const k=[];return f.value.map(w=>{w.unKeepAlive||k.push(w.name)}),k}),c=l.ref(((b=i.config)==null?void 0:b.activeName)||((g=f.value[0])==null?void 0:g.name)),h=l.computed(()=>f.value.find(w=>w.name===c.value)),p=l.computed(()=>{var w,T;const k=((w=h.value)==null?void 0:w.params)||{};return{refMenuId:((T=h.value)==null?void 0:T.refMenuId)||a.value||"",...k}}),m=(k,w)=>{l.nextTick(()=>{r("tab-click",k,w,h.value)})},y=(...k)=>{r("event-name",...k)},v=k=>{f.value.find(T=>T.name===k)&&(c.value=k)};return l.onBeforeUnmount(()=>{s.value=!0}),t({componentRef:o,handleChangeTab:v}),(k,w)=>{var _;const T=l.resolveComponent("el-tab-pane"),S=l.resolveComponent("el-tabs");return l.openBlock(),l.createBlock(S,l.mergeProps({modelValue:c.value,"onUpdate:modelValue":w[0]||(w[0]=A=>c.value=A)},(_=e.config)==null?void 0:_.tabsAttrs,{onTabClick:m}),{default:l.withCtx(()=>{var A,D;return[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.value,(x,B)=>(l.openBlock(),l.createBlock(T,l.mergeProps({key:B,ref_for:!0},x,{label:x.label}),null,16,["label"]))),128)),(l.openBlock(),l.createBlock(l.KeepAlive,{include:d.value},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(h.value.component),l.mergeProps({key:h.value.name,ref_key:"componentRef",ref:o,info:e.info,params:p.value,"ref-menu-id":((A=h.value)==null?void 0:A.refMenuId)||a.value||""},((D=h.value)==null?void 0:D.attrs)||{},{onEventName:y}),null,16,["info","params","ref-menu-id"]))],1032,["include"]))]}),_:1},16,["modelValue"])}}}),k9e=Object.freeze(Object.defineProperty({__proto__:null,default:b9e},Symbol.toStringTag,{value:"Module"})),w9e=l.defineComponent({name:"JwtTags",props:{modelValue:{type:[String,Array],default:""},btnTitle:{type:String,default:"添加"},disabled:{type:Boolean,default:!1},labelKey:{type:String,default:"title"},valueKey:{type:String,default:"id"},isArray:{type:Boolean,default:!1},isInput:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=l.ref(null),i=l.reactive({tagList:[],inputVisible:!1,inputValue:"",initOnce:!1}),r=()=>{var c;if(i.initOnce)return;let d=[];return e.modelValue&&on.isString(e.modelValue)?d=(c=e==null?void 0:e.modelValue)==null?void 0:c.split(","):e.modelValue&&on.isArray(e.modelValue)&&(d=e.modelValue.map(h=>({...h,title:h[e.labelKey],id:h[e.valueKey]}))),i.initOnce=!0,d},o=l.watch(()=>e.modelValue,d=>{i.initOnce||d!=null&&d.isTrusted||(d?i.tagList=r():i.tagList=[])},{immediate:!0}),s=()=>{i.inputVisible=!0,l.nextTick(()=>{var d,c;(c=(d=n.value)==null?void 0:d.input)==null||c.focus()})},a=d=>{i.tagList.splice(i.tagList.indexOf(d),1),u()},u=()=>{const d=e.isArray?i.tagList:i.tagList.join(",");t("update:modelValue",d)},f=()=>{i.inputValue&&(e.isArray?i.tagList.push({[e.labelKey]:i.inputValue,[e.valueKey]:""}):i.tagList.push(i.inputValue)),i.inputVisible=!1,i.inputValue="",u()};return l.onUpdated(()=>{}),l.onBeforeMount(()=>{i.initOnce=!1}),l.onBeforeUnmount(()=>{o()}),{...l.toRefs(i),inputRef:n,showInput:s,handleClose:a,handleEmitResult:u,handleInputConfirm:f}}}),_9e={class:"fx fxwp w"};function C9e(e,t,n,i,r,o){const s=l.resolveComponent("el-input"),a=l.resolveComponent("jwt-icon"),u=l.resolveComponent("el-tag"),f=l.resolveComponent("el-button");return l.openBlock(),l.createElementBlock("div",_9e,[e.isInput?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(e.tagList,(d,c)=>(l.openBlock(),l.createElementBlock("div",{key:d,class:"rel tags-input-wrapper mb10 mr10"},[l.createVNode(s,{modelValue:d[e.labelKey],"onUpdate:modelValue":h=>d[e.labelKey]=h,class:"w220",clearable:"",placeholder:"请输入",onBlur:e.handleEmitResult},null,8,["modelValue","onUpdate:modelValue","onBlur"]),l.createVNode(a,{class:"cd cp tags-input-close",icon:"close-circle-fill abs_rt",size:"18",style:{right:"-10px",top:"-15px"},onClick:h=>e.handleClose(d,c)},null,8,["onClick"])]))),128)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(e.tagList,d=>(l.openBlock(),l.createBlock(u,{key:d,class:"mb4",closable:"","disable-transitions":!1,disabled:e.disabled,onClose:c=>e.handleClose(d,e.index)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.isArray?d[e.labelKey]:d),1)]),_:2},1032,["disabled","onClose"]))),128)),e.inputVisible?(l.openBlock(),l.createBlock(s,{key:2,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=d=>e.inputValue=d),class:l.normalizeClass([e.isInput?"w220 mr10 mb10":"w120"]),placeholder:"请输入",onBlur:e.handleInputConfirm,onKeyup:l.withKeys(e.handleInputConfirm,["enter"])},null,8,["modelValue","class","onBlur","onKeyup"])):(l.openBlock(),l.createBlock(f,{key:3,class:"button-new-tag",disabled:e.disabled,size:e.isInput?"":"small",onClick:e.showInput},{default:l.withCtx(()=>[l.createTextVNode(" + "+l.toDisplayString(e.btnTitle),1)]),_:1},8,["disabled","size","onClick"]))])}const S9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(w9e,[["render",C9e],["__scopeId","data-v-44fc3183"]])},Symbol.toStringTag,{value:"Module"})),x9e=["id"],JE={__name:"TreeNodeTitle",props:{node:{type:Object,default:()=>{}},nodeKey:{type:String,default:"id"},children:{type:String,default:"children"},checkedKeys:{type:Array,default:()=>[]},expandAll:{type:Boolean,default:!0},level:{type:Number,default:0},menuTitleKey:{type:String,default:"title"},optTitleKey:{type:String,default:"title"},isOpt:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["check","show"],setup(e,{emit:t}){const n=e,i=t,r=l.inject("menusIdObj"),o=l.ref(n.expandAll),s=l.computed(()=>n.node[n.nodeKey]),a=l.computed(()=>n.isOpt?"":`menu-id-${n.node[n.nodeKey]}`),u=l.computed(()=>{var v;if(n.isOpt)return((v=n==null?void 0:n.node)==null?void 0:v.remark)||"";if(n.node.rid){const b=r==null?void 0:r[n.node.rid];return b!=null&&b[n.optTitleKey]?`权限关联:${b[n.optTitleKey]}`:""}return""}),f=l.computed(()=>{var v;return((v=n.node[n.children])==null?void 0:v.length)>0}),d=(v=n.node)=>{const b=[],g=k=>{var w;(w=k[n.children])!=null&&w.length&&k[n.children].forEach(T=>{b.push(T[n.nodeKey]),g(T)})};return g(v),b},c=l.computed(()=>d()),h=l.computed({get(){return f.value?c.value.length>0&&c.value.every(v=>n.checkedKeys.includes(v)):n.checkedKeys.includes(s.value)},set(v){m(v)}}),p=l.computed(()=>{if(!f.value)return!1;const v=c.value.filter(b=>n.checkedKeys.includes(b)).length;return v>0&&v<c.value.length}),m=v=>{i("check",{key:s.value,checked:v,level:n.level})};function y(){o.value=!o.value,l.nextTick(()=>{i("show",o.value,n.node)})}return l.onUnmounted(()=>{}),(v,b)=>{var T,S,_,A;const g=l.resolveComponent("jwt-icon"),k=l.resolveComponent("el-popover"),w=l.resolveComponent("el-checkbox");return l.openBlock(),l.createElementBlock("div",{id:a.value||"",class:l.normalizeClass(["fxm jwt-menu-opt-item-title",[e.isOpt?"mr20":""]])},[e.isOpt?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(g,{key:0,class:l.normalizeClass(["cp fs20 mr5 g9 linear",[(S=(T=e.node)==null?void 0:T.children)!=null&&S.length||(A=(_=e.node)==null?void 0:_.operations)!=null&&A.length?"":"gtp",o.value?"":"up-90"]]),icon:"arrow-down-s-fill",onClick:y},null,8,["class"])),l.createVNode(w,{modelValue:h.value,"onUpdate:modelValue":b[0]||(b[0]=D=>h.value=D),indeterminate:p.value,disabled:e.disabled},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.node[e.menuTitleKey])+" ",1),l.createVNode(k,{content:u.value,persistent:!1,placement:"bottom",title:"权限说明",width:"240"},{reference:l.withCtx(()=>[u.value?(l.openBlock(),l.createBlock(g,{key:0,icon:"information-fill"})):l.createCommentVNode("",!0)]),_:1},8,["content"])]),_:1},8,["modelValue","indeterminate","disabled"]),e.isOpt?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:1,class:"ex h30",onClick:y}))],10,x9e)}}},E9e=Object.freeze(Object.defineProperty({__proto__:null,default:JE},Symbol.toStringTag,{value:"Module"})),B9e={class:"jwt-menu-opt-item"},D9e={class:"fx fxwp"},CG={__name:"TreeNode",props:{node:{type:Object,required:!0},nodeKey:{type:String,default:"id"},children:{type:String,default:"children"},checkedKeys:{type:Array,default:()=>[]},expandAll:{type:Boolean,default:!0},level:{type:Number,default:0},menuTitleKey:{type:String,default:"title"},optTitleKey:{type:String,default:"title"},disabled:{type:Boolean,default:!1}},emits:["check","toggle"],setup(e,{emit:t}){const n=e,i=t,r=l.ref(!0),o=l.computed(()=>n.node[n.children]||[]),s=l.computed(()=>{var c;return((c=o.value)==null?void 0:c.length)>0}),a=l.computed(()=>{const c=[],h=[],p=[],m=[];return o.value.forEach(y=>{y.show_tab?c.push(y):y.show_header?p.push(y):y.show_table?h.push(y):m.push(y)}),[{title:"表头权限",list:p},{title:"表格权限",list:h},{title:"tab权限",list:c},{title:"其他权限",list:m}]});function u(c,h){r.value=c,i("toggle",h)}function f(c){i("toggle",c)}const d=c=>{i("check",c)};return(c,h)=>{const p=l.resolveComponent("TreeNode",!0),m=l.resolveComponent("el-divider");return l.openBlock(),l.createElementBlock("div",B9e,[l.createVNode(JE,{"checked-keys":e.checkedKeys,children:e.children,"expand-all":e.expandAll,level:e.level+1,"menu-title-key":e.menuTitleKey,node:e.node,"node-key":e.nodeKey,"opt-title-key":e.optTitleKey,disabled:e.disabled,onCheck:d,onShow:u},null,8,["checked-keys","children","expand-all","level","menu-title-key","node","node-key","opt-title-key","disabled"]),s.value?l.withDirectives((l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass([e.node.isOptChild?"fs16 lhm jwt-menu-opt-item-opt-wrapper":"pl25"])},[e.node.isOptChild?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(a.value,(y,v)=>(l.openBlock(),l.createElementBlock("div",{key:v,class:"plr25"},[y.list.length?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(m,{"border-style":"dashed",class:"jwt-menu-opt-item-opt-divider","content-position":"center"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(y.title),1)]),_:2},1024),l.createElementVNode("div",D9e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(y.list,b=>(l.openBlock(),l.createBlock(JE,{key:b.id,"checked-keys":e.checkedKeys,children:e.children,"expand-all":e.expandAll,"is-opt":"",disabled:e.disabled,level:e.level+1,"menu-title-key":e.menuTitleKey,node:b,"node-key":e.nodeKey,"opt-title-key":e.optTitleKey,onCheck:d},null,8,["checked-keys","children","expand-all","disabled","level","menu-title-key","node","node-key","opt-title-key"]))),128))])],64)):l.createCommentVNode("",!0)]))),128)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(e.node.children,(y,v)=>(l.openBlock(),l.createElementBlock("div",{key:v},[l.createVNode(p,{"checked-keys":e.checkedKeys,children:e.children,"expand-all":e.expandAll,level:e.level+1,"menu-title-key":e.menuTitleKey,node:y,"node-key":e.nodeKey,disabled:e.disabled,"opt-title-key":e.optTitleKey,onCheck:d,onToggle:f},null,8,["checked-keys","children","expand-all","level","menu-title-key","node","node-key","disabled","opt-title-key"])]))),128))],2)),[[l.vShow,r.value]]):l.createCommentVNode("",!0)])}}},A9e=Object.freeze(Object.defineProperty({__proto__:null,default:CG},Symbol.toStringTag,{value:"Module"})),T9e={class:"rel"},O9e={key:0,class:"menu-opt-nav-wrapper"},F9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(Object.assign({name:"JwtTree"},{props:{treeData:{type:Array,default:()=>[]},nodeKey:{type:String,default:"id"},menuTitleKey:{type:String,default:"title"},children:{type:String,default:"children"},checkedKeys:{type:Array,default:()=>[]},expandAll:{type:Boolean,default:!0},menusIdObj:{type:Object,default:()=>{}},showNav:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:checked-keys","change","toggle","tab-change"],setup(e,{emit:t}){const n=e,i=t,r=l.ref(n.checkedKeys||[]),o=l.ref([]),s=l.ref(""),a=new Map,u=new Map;l.provide("menusIdObj",n.menusIdObj||{});const f=(k,w=null)=>{const T=new Map,S=(_,A)=>{_&&_.forEach(D=>{var B,E;const x=D[n.nodeKey];T.set(x,{node:D,parentKey:A,childrenKeys:((B=D[n.children])==null?void 0:B.map(F=>F[n.nodeKey]))||[]}),(E=D[n.children])!=null&&E.length&&S(D[n.children],x)})};return S(k,w),T},d=l.computed(()=>f(n.treeData)),c=l.computed(()=>{var k,w;return Ke.isArray(n.treeData)&&((k=n.treeData)!=null&&k.length)?((w=n.treeData)==null?void 0:w.length)>1?n.treeDatap:n.treeData[0][n.children]:[]}),h=l.computed(()=>c.value.map(k=>`menu-id-${k[n.nodeKey]}`)),p=k=>{if(a.has(k))return a.get(k);const w=[],T=[k];for(;T.length;){const S=T.pop(),_=d.value.get(S);_&&_.childrenKeys.length&&(w.push(..._.childrenKeys),T.push(..._.childrenKeys))}return a.set(k,w),w},m=k=>{if(u.has(k))return u.get(k);const w=[];let T=k;for(;T;){const S=d.value.get(T);S&&S.parentKey?(w.push(S.parentKey),T=S.parentKey):T=null}return u.set(k,w),w},y=({key:k,level:w,checked:T})=>{const S=new Set(r.value),_=new Set(o.value);T?S.add(k):S.delete(k),_.delete(k),p(k).forEach(x=>{_.delete(x),T?S.add(x):S.delete(x)}),m(k).forEach(x=>{const B=d.value.get(x);B&&(B.childrenKeys.every(F=>S.has(F))?(S.add(x),_.delete(x)):(S.delete(x),B.childrenKeys.some(I=>S.has(I))?_.add(x):_.delete(x),B.childrenKeys.some(I=>_.has(I))&&_.add(x)))}),r.value=Array.from(S),o.value=Array.from(_),i("update:checked-keys",r.value),i("change",{key:k,checked:T,level:w,data:d.value.get(k),checkedKeys:r.value,halfCheckedKeys:o.value})},v=()=>{a.clear(),u.clear()};function b(k){i("toggle",k,h.value)}function g(k){i("tab-change",k)}return l.onMounted(()=>{setTimeout(()=>{b("")},1e3)}),l.watchEffect(()=>{n.checkedKeys&&(r.value=[...n.checkedKeys],v())}),l.onUnmounted(()=>{v()}),(k,w)=>{const T=l.resolveComponent("el-tab-pane"),S=l.resolveComponent("el-tabs");return l.openBlock(),l.createElementBlock("div",T9e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.treeData,(_,A)=>(l.openBlock(),l.createBlock(CG,{key:A,"checked-keys":r.value,"expand-all":e.expandAll,level:0,"menu-title-key":e.menuTitleKey,node:_,"node-key":e.nodeKey,disabled:e.disabled,onCheck:y,onToggle:b},null,8,["checked-keys","expand-all","menu-title-key","node","node-key","disabled"]))),128)),e.showNav?(l.openBlock(),l.createElementBlock("div",O9e,[l.createVNode(S,{modelValue:s.value,"onUpdate:modelValue":w[0]||(w[0]=_=>s.value=_),"tab-position":"right",onTabChange:g},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.value,_=>(l.openBlock(),l.createBlock(T,{key:_[e.nodeKey],label:_[e.menuTitleKey]},null,8,["label"]))),128))]),_:1},8,["modelValue"])])):l.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-392b12fd"]])},Symbol.toStringTag,{value:"Module"})),P9e=l.defineComponent({name:"JwtUploadFile",props:{modelValue:{type:[String,Array],default:null},limitSize:{type:[String,Number],default:1024*10*50},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},limit:{type:[String,Number],default:10},uploadParam:{type:Object,default:()=>{}},module:{type:String,default:""},dragUpload:{type:Boolean,default:!1}},emits:["update:modelValue","onChange","after-btn-click"],setup(e,{emit:t}){const n=Nn(),i=l.useAttrs(),r=l.ref(null),o=l.reactive({fileList:[],initOnce:!1,onUploadProgress:!1,uploadFiles:[],uploadSuccessFiles:[],selectUploadFileNum:0}),s=l.computed(()=>e.disabled||(e.isCosBacthUpload?o.uploadProgress:!1)),a=v=>n.fillUrl&&on.isFunction(n.fillUrl)?n.fillUrl(v,"","",""):v,u=()=>{let v=[];if(e.multiple)if(on.hasArray(e.modelValue))e.modelValue.map(b=>{b&&v.push({url:a(b),org_url:b,name:a(b)})});else if(on.isString(e.modelValue))e.modelValue.split(",").map(b=>{b&&v.push({url:a(b),org_url:b,name:a(b)})});else return o.initOnce=!1,[];else v=e.modelValue?[{url:a(e.modelValue),org_url:e.modelValue,name:a(e.modelValue)}]:[];return o.initOnce=!0,v},f=l.watch(()=>e.modelValue,v=>{l.nextTick(()=>{if(!(v!=null&&v.isTrusted))if(v){const b=u();o.fileList=b}else o.fileList=[]})},{immediate:!0}),d=l.computed(()=>vl()),c=v=>{if(!n.uploadImgUrl)return lt.ElMessage.error(Pe("请配置上传的路径地址"));const b=v.type,g=parseInt(e.limitSize),k=g/1024,w=v.size/1024<g;w||(k>1?lt.ElMessage.error(`${Pe("上传文件大小不能超过")} ${k}MB!`):lt.ElMessage.error(`${Pe("上传文件大小不能超过")} ${g}KB!`));const T=w;return T&&(o.onUploadProgress=!0),T},h=()=>{o.onUploadProgress=!1},p=(v,b)=>{if(o.onUploadProgress=!1,v.code===0){let g=o.fileList.concat([b]);y(g)}else lt.ElMessage.error(v.msg),this.dialogVisible=!1},m=(v,b)=>{y(b)},y=v=>{const b=(n==null?void 0:n.imgUploadResKey)||"";o.initOnce=!0;let g=[];v.map(k=>{var T,S,_;const w=(b?(S=(T=k==null?void 0:k.response)==null?void 0:T.data)==null?void 0:S[b]:(_=k==null?void 0:k.response)==null?void 0:_.data)||k.org_url;w&&g.push(w)}),e.multiple?(t("update:modelValue",g),t("onChange",g)):(t("update:modelValue",g[0]||""),t("onChange",g[0]||""))};return l.onBeforeMount(()=>{o.fileList=[],o.initOnce=!1}),l.onMounted(()=>{}),l.onBeforeUnmount(()=>{f()}),{attrs:i,uploadRef:r,appOptions:n,...l.toRefs(o),headers:d,uploadDisabled:s,handleRemove:m,handleBeforeUpload:c,handleUploadSuccess:p,handleUploadError:h,t:Pe}}}),j9e={class:"w"};function I9e(e,t,n,i,r,o){const s=l.resolveComponent("el-button"),a=l.resolveComponent("el-upload");return l.openBlock(),l.createElementBlock("div",j9e,[l.createVNode(a,l.mergeProps({ref:"uploadRef","file-list":e.fileList,"onUpdate:fileList":t[0]||(t[0]=u=>e.fileList=u),accept:e.attrs.accept||"application/*",action:e.appOptions.uploadImgUrl,"before-upload":e.handleBeforeUpload,data:e.uploadParam,disabled:e.uploadDisabled,headers:e.headers,multiple:e.multiple,drag:e.dragUpload,name:"filedata","on-error":e.handleUploadError,"on-remove":e.handleRemove,"on-success":e.handleUploadSuccess,limit:e.limit,"with-credentials":""},e.attrs),{default:l.withCtx(()=>[l.createVNode(s,{type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("上传")),1)]),_:1})]),_:1},16,["file-list","accept","action","before-upload","data","disabled","headers","multiple","drag","on-error","on-remove","on-success","limit"])])}const R9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(P9e,[["render",I9e]])},Symbol.toStringTag,{value:"Module"})),N9e=["src"],M9e=["title"],L9e={class:"picture-card-operation"},z9e=["onClick"],SG=Qt({__name:"fileSlot",props:{listType:{type:String,default:"picture-card"},file:{type:Object,default:()=>{}},pictureActions:{type:Array,default:()=>[]}},emits:["remove","on-preview","action"],setup(e,{emit:t}){const n=t,{t:i}=lt.useLocale(),r=lt.useNamespace("upload"),o=lt.useNamespace("icon"),s=lt.useFormDisabled(),a=d=>{n("remove",d)},u=d=>{n("on-preview",d)},f=(d,c)=>{n("action",{item:d,file:c})};return(d,c)=>{const h=l.resolveComponent("el-icon"),p=l.resolveComponent("el-progress");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.listType==="picture"||e.file.status!=="uploading"&&e.listType==="picture-card"?(l.openBlock(),l.createElementBlock("img",{key:0,alt:"",class:l.normalizeClass(l.unref(r).be("list","item-thumbnail")),src:e.file.url},null,10,N9e)):l.createCommentVNode("",!0),e.file.status==="uploading"||e.listType!=="picture-card"?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(l.unref(r).be("list","item-info"))},[l.createElementVNode("a",{class:l.normalizeClass(l.unref(r).be("list","item-name")),onClick:c[0]||(c[0]=l.withModifiers(m=>u(e.file),["prevent"]))},[l.createVNode(h,{class:l.normalizeClass(l.unref(o).m("document"))},{default:l.withCtx(()=>[l.createVNode(l.unref(FX))]),_:1},8,["class"]),l.createElementVNode("span",{class:l.normalizeClass(l.unref(r).be("list","item-file-name")),title:e.file.name},l.toDisplayString(e.file.name),11,M9e)],2),e.file.status==="uploading"?(l.openBlock(),l.createBlock(p,{key:0,percentage:Number(e.file.percentage),"stroke-width":e.listType==="picture-card"?6:2,style:l.normalizeStyle(e.listType==="picture-card"?"":"margin-top: 0.5rem"),type:e.listType==="picture-card"?"circle":"line"},null,8,["percentage","stroke-width","style","type"])):l.createCommentVNode("",!0)],2)):l.createCommentVNode("",!0),l.createElementVNode("label",{class:l.normalizeClass(l.unref(r).be("list","item-status-label"))},[e.listType==="text"?(l.openBlock(),l.createBlock(h,{key:0,class:l.normalizeClass([l.unref(o).m("upload-success"),l.unref(o).m("circle-check")])},{default:l.withCtx(()=>[l.createVNode(l.unref(BX))]),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(l.openBlock(),l.createBlock(h,{key:1,class:l.normalizeClass([l.unref(o).m("upload-success"),l.unref(o).m("check")])},{default:l.withCtx(()=>[l.createVNode(l.unref(xX))]),_:1},8,["class"])):l.createCommentVNode("",!0)],2),l.unref(s)?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(h,{key:2,class:l.normalizeClass(l.unref(o).m("close")),onClick:c[1]||(c[1]=m=>a(e.file))},{default:l.withCtx(()=>[l.createVNode(l.unref(vB))]),_:1},8,["class"])),l.unref(s)?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("i",{key:3,class:l.normalizeClass(l.unref(o).m("close-tip"))},l.toDisplayString(l.unref(i)("el.upload.deleteTip")),3)),e.listType==="picture-card"?(l.openBlock(),l.createElementBlock("span",{key:4,class:l.normalizeClass(l.unref(r).be("list","item-actions"))},[l.createElementVNode("span",{class:l.normalizeClass(l.unref(r).be("list","item-preview")),onClick:c[2]||(c[2]=m=>u(e.file))},[l.createVNode(h,{class:l.normalizeClass(l.unref(o).m("zoom-in"))},{default:l.withCtx(()=>[l.createVNode(l.unref(jX))]),_:1},8,["class"])],2),l.unref(s)?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass(l.unref(r).be("list","item-delete")),onClick:c[3]||(c[3]=m=>a(e.file))},[l.createVNode(h,{class:l.normalizeClass(l.unref(o).m("delete"))},{default:l.withCtx(()=>[l.createVNode(l.unref(TX))]),_:1},8,["class"])],2)),l.createElementVNode("div",L9e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.pictureActions,(m,y)=>(l.openBlock(),l.createElementBlock("span",{key:y,onClick:l.withModifiers(v=>f(m,e.file),["stop"])},l.toDisplayString(m.label),9,z9e))),128))])],2)):l.createCommentVNode("",!0)],64)}}},[["__scopeId","data-v-5526a394"]]),V9e=Object.freeze(Object.defineProperty({__proto__:null,default:SG},Symbol.toStringTag,{value:"Module"})),U9e=l.defineComponent({name:"JwtUploadImage",components:{FileSlot:SG,PasteUpload:Db},props:{modelValue:{type:[String,Array],default:null},limitSize:{type:[String,Number],default:2048},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},listType:{type:String,default:"picture-card"},limit:{type:[String,Number],default:10},uploadParam:{type:Object,default:()=>{}},uploadPrefixName:{type:String,default:""},copyImgUploade:{type:Boolean,default:!1},verifyFileType:{type:Boolean,default:!0},uploadName:{type:String,default:""},dragUpload:{type:Boolean,default:!1}},emits:["update:modelValue","onChange","after-btn-click","picture-action","after-btns-click"],setup(e,{emit:t}){const n=Nn(),i=l.useAttrs(),r=l.ref(null),o=l.reactive({fileList:[],dialogVisible:!1,dialogImageUrl:"",initOnce:!1,onUploadProgress:!1,textarea:"",uploadParams:{...e.uploadParam,name:"",goods_matting:0}}),s=(C="")=>n.fillUrl&&on.isFunction(n.fillUrl)?n.fillUrl(C):C,a=l.computed(()=>(e==null?void 0:e.uploadName)||(n==null?void 0:n.uploadFileName)||"filedata"),u=l.computed(()=>({"--upload-picture-card-size":(i==null?void 0:i.cardSize)||"148px"})),f=l.computed(()=>(e==null?void 0:e.listType)==="picture-card"),d=l.computed(()=>{var C;return e.multiple?!1:!!((C=e==null?void 0:e.modelValue)!=null&&C.length)||o.onUploadProgress}),c=()=>{var I;if(!e.modelValue)return[];let C=[];if(e.multiple)if(on.hasArray(e.modelValue))e.modelValue.map(N=>{N&&C.push({url:s(N),org_url:N,name:s(N)})});else if(on.isString(e.modelValue))e.modelValue.split(",").map(N=>{N&&C.push({url:s(N),org_url:N,name:s(N)})});else if((I=e.modelValue)!=null&&I.length)C=[{url:s(e.modelValue),org_url:e.modelValue,name:s(e.modelValue)}];else return o.initOnce=!1,[];else C=e.modelValue?[{url:s(e.modelValue),org_url:e.modelValue,name:s(e.modelValue)}]:[];return o.initOnce=!0,C},h=l.watch(()=>e.modelValue,C=>{l.nextTick(()=>{if(!(C!=null&&C.isTrusted))if(C){const I=c();o.fileList=I}else o.fileList=[]})},{immediate:!0}),p=l.computed(()=>vl()),m=C=>{if(!n.uploadImgUrl)return lt.ElMessage.error(Pe("请配置上传的路径地址"));o.uploadParams.name=`${e.uploadPrefixName}${e.uploadPrefixName?"_":""}${C.name}`;const I=C.type,N=parseInt(e.limitSize),H=N/1024,Q=C.size/1024<N,ie=["image/jpeg","image/png","image/gif","image/webp","image/x-icon"];let ae=e.verifyFileType?ie.includes(I):!0;I.includes(".icon")&&(ae=!0),ae||lt.ElMessage.error(Pe("上传图片只能是JPG,PNG,GIF,WEBP格式")),Q||(H>1?lt.ElMessage.error(`${Pe("上传图片大小不能超过")} ${H}MB!`):lt.ElMessage.error(`${Pe("上传图片大小不能超过")} ${N}KB!`));const M=ae&&Q;return M&&(o.onUploadProgress=!0),M},y=()=>{o.onUploadProgress=!1},v=(C,I,N)=>{const H=N.every(Q=>Q.status==="success");o.onUploadProgress=!1,H&&g(N)},b=(C,I)=>{g(I)},g=C=>{const I=n.imgUploadResKey||"";o.initOnce=!0;let N=[];C.map(H=>{var ie,ae,M;const Q=(I?(ae=(ie=H==null?void 0:H.response)==null?void 0:ie.data)==null?void 0:ae[I]:(M=H==null?void 0:H.response)==null?void 0:M.data)||H.org_url;Q&&N.push(Q)}),e.multiple?(t("update:modelValue",N),t("onChange",N)):(t("update:modelValue",N[0]||""),t("onChange",N[0]||""))},k=C=>{o.dialogImageUrl=C.url,o.dialogVisible=!0},w=C=>{r.value.handleStart(C),r.value.submit()},T=()=>{t("after-btn-click")},S=(C,I)=>{t("after-btns-click",C,I)},_=(C,I)=>{const N=lt.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});i.mattingUrl&&i.requestFun({url:i.mattingUrl,method:"post",data:{http_path:C,...e.uploadParam}}).then(H=>{const Q=H==null?void 0:H.relative_path.split(",").map(ie=>({url:s(ie),org_url:ie,name:ie}));t("picture-action",{file:Q,item:I}),N.close()}).catch(()=>{N.close()})},A=C=>{r.value.handleRemove(C)},D=l.computed(()=>o.fileList.length&&i.mattingAll),x=l.computed(()=>{const C=(i==null?void 0:i.actionList)||[];return C.length===0?[]:[{label:Pe("设为主图"),code:"setMain"},{label:Pe("抠图"),code:"mattingImg"},{label:Pe("设计"),code:"design"}].filter(H=>C.includes(H.code))}),B=({file:C,item:I})=>{if(I.code==="mattingImg"){_(C.url,I);return}t("picture-action",{file:C,item:I})},E=()=>{var I,N;const C=(N=(I=o.fileList)==null?void 0:I.map(H=>H.org_url))==null?void 0:N.join(",");C&&_(C,{code:"mattingAll"})},F=(C,I)=>{};return l.onBeforeMount(()=>{o.fileList=[],o.initOnce=!1}),l.onBeforeUnmount(()=>{o.fileList=[],o.initOnce=!1,h()}),{attrs:i,uploadRef:r,appOptions:n,isPictureCard:f,...l.toRefs(o),headers:p,showOnlyOne:d,pictureActions:x,showMattingAll:D,styleObj:u,uploadFileName:a,handleRemove:b,handleBeforeUpload:m,handleUploadSuccess:v,handlePictureCardPreview:k,handleUploadError:y,handleUploadPaste:w,t:Pe,handleAfterBtn:T,handleClickAfterBtns:S,handleFileRemove:A,handlePictureAction:B,handleAllMattingImg:E,handleUploadOnChange:F}}}),H9e={key:0,class:"fv fxr ml5"},q9e=["src"];function W9e(e,t,n,i,r,o){const s=l.resolveComponent("PasteUpload"),a=l.resolveComponent("jwt-icon"),u=l.resolveComponent("el-button"),f=l.resolveComponent("file-slot"),d=l.resolveComponent("el-upload"),c=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",{class:"w jwt-upload-image-wrapper",style:l.normalizeStyle(e.styleObj)},[l.createVNode(s,{"btn-list":e.attrs.btnList,"btn-text":e.attrs.afterBtnText,copy:e.copyImgUploade,disabled:e.disabled,limit:e.showOnlyOne,onAfterBtnClick:e.handleAfterBtn,onAfterBtnsClick:e.handleClickAfterBtns,onUploadPaste:e.handleUploadPaste},null,8,["btn-list","btn-text","copy","disabled","limit","onAfterBtnClick","onAfterBtnsClick","onUploadPaste"]),l.createElementVNode("div",{class:l.normalizeClass([e.isPictureCard?"fx":""])},[l.createVNode(d,{ref:"uploadRef",accept:e.attrs.accept||"image/*",action:e.appOptions.uploadImgUrl,"before-upload":e.handleBeforeUpload,class:l.normalizeClass({onlyOne:e.showOnlyOne}),data:e.uploadParams,disabled:e.disabled,drag:e.dragUpload,"file-list":e.fileList,headers:e.headers,"list-type":e.listType,multiple:e.multiple,name:e.uploadFileName,"on-change":e.handleUploadOnChange,"on-error":e.handleUploadError,"on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove,"on-success":e.handleUploadSuccess,"show-file-list":!0,"with-credentials":""},l.createSlots({trigger:l.withCtx(()=>[e.isPictureCard?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[e.attrs.useMaterial?(l.openBlock(),l.createElementBlock("div",{key:0,class:"wh fxmc",onClick:t[0]||(t[0]=l.withModifiers((...h)=>e.handleAfterBtn&&e.handleAfterBtn(...h),["stop"]))},[l.createVNode(a,{icon:"add-line",size:40})])):(l.openBlock(),l.createBlock(a,{key:1,icon:"add-line",size:40}))],64)):(l.openBlock(),l.createBlock(u,{key:1,type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("选择文件")),1)]),_:1}))]),_:2},[e.attrs.mattingUrl?{name:"file",fn:l.withCtx(({file:h})=>[l.createVNode(f,{file:h,"list-type":e.listType,"picture-actions":e.pictureActions,onAction:e.handlePictureAction,onOnPreview:e.handlePictureCardPreview,onRemove:e.handleFileRemove},null,8,["file","list-type","picture-actions","onAction","onOnPreview","onRemove"])]),key:"0"}:void 0]),1032,["accept","action","before-upload","class","data","disabled","drag","file-list","headers","list-type","multiple","name","on-change","on-error","on-preview","on-remove","on-success"]),e.showMattingAll?(l.openBlock(),l.createElementBlock("div",H9e,[l.createVNode(u,{type:"primary",onClick:e.handleAllMattingImg},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t("一键抠图")),1)]),_:1},8,["onClick"])])):l.createCommentVNode("",!0)],2),e.attrs.tips1?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(e.attrs.tipsCls)},l.toDisplayString(e.attrs.tips),3)):l.createCommentVNode("",!0),l.createVNode(c,{modelValue:e.dialogVisible,"onUpdate:modelValue":t[1]||(t[1]=h=>e.dialogVisible=h),"append-to-body":""},{default:l.withCtx(()=>[l.createElementVNode("img",{src:e.dialogImageUrl,style:{width:"100%"},"w-full":""},null,8,q9e)]),_:1},8,["modelValue"])],4)}const K9e=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(U9e,[["render",W9e]])},Symbol.toStringTag,{value:"Module"})),G9e=l.defineComponent({name:"JwtUploadVideo",props:{modelValue:{type:[String,Array],default:null},limitSize:{type:[String,Number],default:1024*10*50},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},listType:{type:String,default:"picture-card"},limit:{type:[String,Number],default:10},uploadParam:{type:Object,default:()=>{}},copyImgUploade:{type:Boolean,default:!1},isCosSdk:{type:Boolean,default:!1},isCosBacthUpload:{type:Boolean,default:!0},module:{type:String,default:""},dragUpload:{type:Boolean,default:!1}},emits:["update:modelValue","onChange","after-btn-click"],setup(e,{emit:t}){const n=Nn();var i=null;const r=l.useAttrs(),o=l.ref(null),s=l.reactive({fileList:[],dialogVisible:!1,dialogImageUrl:"",initOnce:!1,onUploadProgress:!1,textarea:"",uploadFiles:[],uploadSuccessFiles:[],uploadFileNum:0,selectUploadFileNum:0,uploadTips:"",uploadProgress:!1,uploadPercent:0,cosConfig:{}}),a=l.computed(()=>e.disabled||(e.isCosBacthUpload?s.uploadProgress:!1)),u=x=>n.fillUrl&&on.isFunction(n.fillUrl)?n.fillUrl(x,"","",""):x,f=l.computed(()=>{var x;return e.multiple?!1:!!((x=e==null?void 0:e.modelValue)!=null&&x.length)||s.onUploadProgress}),d=()=>{let x=[];if(e.multiple)if(on.hasArray(e.modelValue))e.modelValue.map(B=>{B&&x.push({url:u(B),org_url:B,name:u(B)})});else if(on.isString(e.modelValue))e.modelValue.split(",").map(B=>{B&&x.push({url:u(B),org_url:B,name:u(B)})});else return s.initOnce=!1,[];else x=e.modelValue?[{url:u(e.modelValue),org_url:e.modelValue,name:u(e.modelValue)}]:[];return s.initOnce=!0,x};l.watch(()=>e.modelValue,x=>{l.nextTick(()=>{if(!(x!=null&&x.isTrusted))if(x){const B=d();s.fileList=B}else s.fileList=[]})},{immediate:!0});const c=l.computed(()=>vl()),h=x=>{if(!n.uploadImgUrl)return lt.ElMessage.error(Pe("请配置上传的路径地址"));const B=x.type,E=parseInt(e.limitSize),F=E/1024,C=x.size/1024<E;C||(F>1?lt.ElMessage.error(`${Pe("上传视频大小不能超过")} ${F}MB!`):lt.ElMessage.error(`${Pe("上传视频大小不能超过")} ${E}KB!`));const I=C;return I&&(s.onUploadProgress=!0),I},p=()=>{s.onUploadProgress=!1},m=(x,B)=>{if(s.onUploadProgress=!1,x.code===0){let E=s.fileList.concat([B]);v(E)}else lt.ElMessage.error(x.msg),this.dialogVisible=!1},y=(x,B)=>{v(B)},v=x=>{const B=n.imgUploadResKey||"";s.initOnce=!0;let E=[];x.map(F=>{var I,N,H;const C=(B?(N=(I=F==null?void 0:F.response)==null?void 0:I.data)==null?void 0:N[B]:(H=F==null?void 0:F.response)==null?void 0:H.data)||F.org_url;C&&E.push(C)}),e.multiple?(t("update:modelValue",E),t("onChange",E)):(t("update:modelValue",E[0]||""),t("onChange",E[0]||""))},b=(x,B)=>{if(!e.isCosSdk)return;s.uploadFiles.push(x);let E=B.length;s.selectUploadFileNum=Math.max(E,s.selectUploadFileNum),setTimeout(()=>{s.selectUploadFileNum!==E||s.uploadProgress&&e.isCosBacthUpload||(s.uploadProgress=!0,s.uploadTips=Pe("正在上传中")+"...",s.uploadSuccessFiles=[],g(s.uploadFiles))},50)},g=async x=>{Bb.handleUploadFiles(x,e.isCosBacthUpload,{onProgress:k,onFileFinish:w,handlePath:T})},k=(x,B)=>{e.isCosBacthUpload&&(s.uploadPercent=x)},w=(x,B,E,F)=>{if(e.isCosBacthUpload)if(x)lt.ElMessage.error(Pe("上传失败请重新上传")),s.uploadTips=Pe("上传失败请重新上传")+"...",s.uploadProgress=!1,s.uploadFileNum=0,s.uploadPercent=0;else{s.uploadFileNum+=1;const C=`/${E.Key}`,I=s.uploadFiles.findIndex(N=>N.keyPath===E.Key);if(I>=0&&(s.uploadFiles[I].uploadDone="done",s.uploadFiles[I].uploadPercent=100),s.uploadSuccessFiles.push({org_url:C}),s.uploadFileNum===F.length){s.uploadTips=Pe("上传完成");let N=s.fileList.concat(s.uploadSuccessFiles);v(N),setTimeout(()=>{s.uploadProgress=!1,s.uploadFileNum=0,s.uploadPercent=0},500)}}else if(x)lt.ElMessage.error(Pe("上传失败请重新上传"));else{const C=`/${E.Key}`;let I=s.fileList.concat([{org_url:C}]);v(I)}},T=x=>`${ir.get("companyId")}/${e.module}/${fa().format("YYYYMMDD")}/${u7(x.name+`${c7(0,1e4)}`)}.${x.ext}`,S=x=>{s.dialogImageUrl=x,s.dialogVisible=!0},_=()=>{t("after-btn-click")},A=(x,B)=>{if(s.fileList.splice(x,1),l.nextTick(()=>{v(s.fileList)}),s.uploadFileList.length){const E=s.uploadFileList.findIndex(F=>F.org_url===B.org_url);E>=0&&s.uploadFileList.splice(E,1)}},D=()=>{i=Bb.getInstance(n.txCosUploadFileUrl)};return l.onBeforeMount(()=>{s.fileList=[],s.initOnce=!1}),l.onMounted(()=>{e.isCosSdk&&D()}),{attrs:r,uploadRef:o,appOptions:n,...l.toRefs(s),headers:c,showOnlyOne:f,uploadDisabled:a,handleRemove:y,handleBeforeUpload:h,handleUploadSuccess:m,handleVideoPreview:S,handleUploadError:p,t:Pe,handleAfterBtn:_,handleDeleteVideo:A,handleUploadOnChange:b,handleInitCosSdk:D}}}),J9e={class:"w"},Y9e={class:"fx fxwp el-upload-list el-upload-list--picture-card"},X9e=["src"],Z9e={key:0,class:"jwt-material-img-mask"},Q9e=["onClick"],$9e=["onClick"],eEe={class:"fx mb10 fxb"},tEe={key:0},nEe={class:"g6 fs12 lh1"},iEe={key:1,style:{width:"50%"}},rEe={class:"cd"},oEe=["src"];function aEe(e,t,n,i,r,o){const s=l.resolveComponent("jwt-icon"),a=l.resolveComponent("el-upload"),u=l.resolveComponent("el-button"),f=l.resolveComponent("el-progress"),d=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",J9e,[l.createElementVNode("ul",Y9e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.fileList,(c,h)=>(l.openBlock(),l.createElementBlock("li",{key:h,class:"el-upload-list__item is-success rel"},[l.createElementVNode("video",{class:"wh",controls:"",src:c.url},null,8,X9e),c.url?(l.openBlock(),l.createElementBlock("div",Z9e,[l.createElementVNode("i",{class:"el-icon",onClick:l.withModifiers(p=>e.handleVideoPreview(c.url),["stop"])},t[2]||(t[2]=[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z",fill:"currentColor"})],-1)]),8,Q9e),l.createElementVNode("i",{class:"el-icon",onClick:l.withModifiers(p=>e.handleDeleteVideo(h,c),["stop"])},t[3]||(t[3]=[l.createElementVNode("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z",fill:"currentColor"})],-1)]),8,$9e)])):l.createCommentVNode("",!0)]))),128)),l.createVNode(a,{ref:"uploadRef",accept:"video/*",action:e.appOptions.uploadImgUrl,"auto-upload":!e.isCosSdk,"before-upload":e.handleBeforeUpload,class:l.normalizeClass({onlyOne:e.showOnlyOne}),data:e.uploadParam,disabled:e.uploadDisabled,headers:e.headers,"list-type":e.listType,multiple:e.multiple,drag:e.dragUpload,name:"filedata","on-change":e.handleUploadOnChange,"on-error":e.handleUploadError,"on-remove":e.handleRemove,"on-success":e.handleUploadSuccess,"show-file-list":!1,"with-credentials":""},{default:l.withCtx(()=>[e.attrs.useMaterial?(l.openBlock(),l.createElementBlock("div",{key:0,class:"wh fxmc",onClick:t[0]||(t[0]=l.withModifiers((...c)=>e.handleAfterBtn&&e.handleAfterBtn(...c),["stop"]))},[l.createVNode(s,{icon:"add-line",size:40})])):(l.openBlock(),l.createBlock(s,{key:1,icon:"add-line",size:40}))]),_:1},8,["action","auto-upload","before-upload","class","data","disabled","headers","list-type","multiple","drag","on-change","on-error","on-remove","on-success"]),l.createElementVNode("div",eEe,[e.attrs.afterBtnText?(l.openBlock(),l.createBlock(u,{key:0,class:"ml10",disabled:e.disabled,size:"default",type:"primary",onClick:e.handleAfterBtn},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.t(e.attrs.afterBtnText)||e.t("从素材库选")),1)]),_:1},8,["disabled","onClick"])):l.createCommentVNode("",!0)])]),e.isCosBacthUpload?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",tEe,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.uploadFiles,(c,h)=>(l.openBlock(),l.createElementBlock("div",{key:h,class:"lh1"},[l.createElementVNode("span",nEe,l.toDisplayString(c.name),1),l.createVNode(f,{class:"mt2",percentage:c.uploadPercent,"stroke-width":3},null,8,["percentage"])]))),128))])),e.isCosBacthUpload&&e.uploadProgress?(l.openBlock(),l.createElementBlock("div",iEe,[l.createVNode(f,{percentage:e.uploadPercent},null,8,["percentage"]),l.createElementVNode("span",rEe,l.toDisplayString(e.uploadTips),1)])):l.createCommentVNode("",!0),l.createVNode(d,{modelValue:e.dialogVisible,"onUpdate:modelValue":t[1]||(t[1]=c=>e.dialogVisible=c),"append-to-body":""},{default:l.withCtx(()=>[l.createElementVNode("video",{controls:"",src:e.dialogImageUrl,style:{width:"100%"},"w-full":""},null,8,oEe)]),_:1},8,["modelValue"])])}const sEe=Object.freeze(Object.defineProperty({__proto__:null,default:Qt(G9e,[["render",aEe],["__scopeId","data-v-bbd8a00e"]])},Symbol.toStringTag,{value:"Module"})),lEe={beforeMount(e,t){var a;const n=t.arg||{},i=((a=t==null?void 0:t.modifiers)==null?void 0:a.once)||!1,r=n.root||null,o=n.rootMargin||"0px",s=n.threshold||0;e.intersectionObserver=new IntersectionObserver(u=>{u[0].isIntersecting&&(t.value(),i&&e.intersectionObserver.disconnect())},{root:r,rootMargin:o,threshold:s}),e.intersectionObserver.observe(e)},unmounted(e){e.intersectionObserver.disconnect()}};function uEe(e){const t=new Map;return function(...n){const i=JSON.stringify(n);if(t.has(i))return t.get(i);const r=l.computed(()=>e(...n));return t.set(i,r),r}}var xG={exports:{}};const fEe=DSe(nSe);(function(e,t){(function(n,i){e.exports=i(fEe)})(self,n=>(()=>{var i={857:a=>{a.exports=n}},r={};function o(a){var u=r[a];if(u!==void 0)return u.exports;var f=r[a]={exports:{}};return i[a](f,f.exports,o),f.exports}o.d=(a,u)=>{for(var f in u)o.o(u,f)&&!o.o(a,f)&&Object.defineProperty(a,f,{enumerable:!0,get:u[f]})},o.o=(a,u)=>Object.prototype.hasOwnProperty.call(a,u),o.r=a=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var s={};return(()=>{o.r(s),o.d(s,{default:()=>V});var a=o(857);(0,a.i18nAddResources)("en",{attachment:{upload:"Upload Attachment",download:"Download Attachment"}}),(0,a.i18nAddResources)("zh-CN",{attachment:{upload:"上传附件",download:"下载附件"}});function u(L,W,G,$,re){return{sel:L,data:W,children:G,text:$,elm:re,key:W===void 0?void 0:W.key}}const f=Array.isArray;function d(L){return typeof L=="string"||typeof L=="number"||L instanceof String||L instanceof Number}function c(L,W,G){if(L.ns="http://www.w3.org/2000/svg",G!=="foreignObject"&&W!==void 0)for(let $=0;$<W.length;++$){const re=W[$];if(typeof re=="string")continue;const be=re.data;be!==void 0&&c(be,re.children,re.sel)}}function h(L,W,G){let $,re,be,Se={};if(G!==void 0?(W!==null&&(Se=W),f(G)?$=G:d(G)?re=G.toString():G&&G.sel&&($=[G])):W!=null&&(f(W)?$=W:d(W)?re=W.toString():W&&W.sel?$=[W]:Se=W),$!==void 0)for(be=0;be<$.length;++be)d($[be])&&($[be]=u(void 0,void 0,void 0,$[be],void 0));return L[0]!=="s"||L[1]!=="v"||L[2]!=="g"||L.length!==3&&L[3]!=="."&&L[3]!=="#"||c(Se,$,L),u(L,Se,$,re,void 0)}const p={type:"attachment",renderElem:function(L,W,G){var $=G.isDisabled(),re=a.DomEditor.isNodeSelected(G,L),be=L,Se=be.fileName,ee=Se===void 0?"":Se,we=be.link,Ee=we===void 0?"":we;return h("span",{props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:re&&!$?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"0 3px",backgroundColor:"#f1f1f1",cursor:$?"pointer":"inherit"},on:{click:function(){$&&Ee&&window.open(Ee,"_blank")}}},[h("img",{props:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAv5JREFUWEetl1nITVEUx3/fo5LkyRQeFA+SIS8eZHhQimRKMhMSoogyR5QxMs9DkplQEhFvxihCKUWkpCTP9P9a+1p3f2efe869367T3Xeftdf/v9e012mi9cZQYDzQBxgIfANeAO+BDSmYplbCX58HAnwFFgNXY7zWIHABmBQpfg10A9pH64OAZ36tUQLngClO4XVgC/DU1iYCF937N+aiylIjBM4A05xy+XljwqV/3bpkKjFRL4GTwMyU0gwSY4Abtn4NGBdk6iFwFJhbAjyI/gLaAR+BnvUSOATML2j22BCvgL7AbyPS/L6MBfYDC3NOrlS8BLzNcIGi/4mtPwSGlbXAHmBJDriCSgQU5UrJmIT8Ptb277OaUNgCu4BlBcCDSFWUGzFfCXV6WaEQge3A8hLgcSquBjbnBWxeDGwFVtXwuT9ZfHLtlY4wFB9xxUwGoViLfVGzxuCymqyXC57KAilb1wC44kVxUxM8i8Bs4HgJn8cnV6YoYwqBxwR6A/eBzrY7Vh5SLeUW1QjVisLgMQEFyQTbfQqY5ZTVAp8HHC4L7gnocrhiCj5ZpdKvxlJgd45b5gDHcsDzKmQlC3zUrwS2mcJ+wAPXWMRumQHIWimzh04pVSErBG4Do0zLaOCWzX2rpeZjqgPT/GwB8FTMNK+HQqSerZNJKgjVUGro9Go2NXwJnQycLwGebFYCgS9AF1PYEfhu8wXAQZurfh8AutcoMnGDGrvN8f5vAQVg6FJGAndNqq211SE1qzbb9evLaylw74I1wCbTvgLY4ZAGAzeBDhH6kYzmRARyfR6fILhAd7XubI0fQC/gpxNuY23YcOCDdbrP3fvSJw97/W14B5D5NR4DQ2K2if91g3sXaN4V+OxAlN+LgD8J4B7WbJTpjluoivuB6cBpJ6VquBd4BAST67tP1tHFIxKlfJ6KAb8+AriXcWqlarCUf60ashY4UdBlVWKpjkgRvzP6+MjSf9nA39UDHsdAlg7VhgFAf3sk89IefXq3+NotS+QfmNG0IS7jBhcAAAAASUVORK5CYII="},style:{width:"1em",marginRight:"0.1em",minWidth:"0",minHeight:"0"}}),ee])}};function m(L){return L!==null&&typeof L=="object"&&"constructor"in L&&L.constructor===Object}function y(L={},W={}){Object.keys(W).forEach(G=>{L[G]===void 0?L[G]=W[G]:m(W[G])&&m(L[G])&&Object.keys(W[G]).length>0&&y(L[G],W[G])})}const v={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function b(){const L=typeof document<"u"?document:{};return y(L,v),L}const g={document:v,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:L=>typeof setTimeout>"u"?(L(),null):setTimeout(L,0),cancelAnimationFrame(L){typeof setTimeout<"u"&&clearTimeout(L)}};function k(){const L=typeof window<"u"?window:{};return y(L,g),L}class w extends Array{constructor(W){typeof W=="number"?super(W):(super(...W||[]),function(G){const $=G.__proto__;Object.defineProperty(G,"__proto__",{get:()=>$,set(re){$.__proto__=re}})}(this))}}function T(L,W){const G=k(),$=b();let re=[];if(!W&&L instanceof w)return L;if(!L)return new w(re);if(typeof L=="string"){const be=L.trim();if(be.indexOf("<")>=0&&be.indexOf(">")>=0){let Se="div";be.indexOf("<li")===0&&(Se="ul"),be.indexOf("<tr")===0&&(Se="tbody"),be.indexOf("<td")!==0&&be.indexOf("<th")!==0||(Se="tr"),be.indexOf("<tbody")===0&&(Se="table"),be.indexOf("<option")===0&&(Se="select");const ee=$.createElement(Se);ee.innerHTML=be;for(let we=0;we<ee.childNodes.length;we+=1)re.push(ee.childNodes[we])}else re=function(Se,ee){if(typeof Se!="string")return[Se];const we=[],Ee=ee.querySelectorAll(Se);for(let P=0;P<Ee.length;P+=1)we.push(Ee[P]);return we}(L.trim(),W||$)}else if(L.nodeType||L===G||L===$)re.push(L);else if(Array.isArray(L)){if(L instanceof w)return L;re=L}return new w(function(be){const Se=[];for(let ee=0;ee<be.length;ee+=1)Se.indexOf(be[ee])===-1&&Se.push(be[ee]);return Se}(re))}function S(...L){let[W,G,$,re]=L;function be(Ee){const P=Ee.target;if(!P)return;const le=Ee.target.dom7EventData||[];if(le.indexOf(Ee)<0&&le.unshift(Ee),T(P).is(G))$.apply(P,le);else{const me=T(P).parents();for(let J=0;J<me.length;J+=1)T(me[J]).is(G)&&$.apply(me[J],le)}}function Se(Ee){const P=Ee&&Ee.target&&Ee.target.dom7EventData||[];P.indexOf(Ee)<0&&P.unshift(Ee),$.apply(this,P)}typeof L[1]=="function"&&([W,$,re]=L,G=void 0),re||(re=!1);const ee=W.split(" ");let we;for(let Ee=0;Ee<this.length;Ee+=1){const P=this[Ee];if(G)for(we=0;we<ee.length;we+=1){const le=ee[we];P.dom7LiveListeners||(P.dom7LiveListeners={}),P.dom7LiveListeners[le]||(P.dom7LiveListeners[le]=[]),P.dom7LiveListeners[le].push({listener:$,proxyListener:be}),P.addEventListener(le,be,re)}else for(we=0;we<ee.length;we+=1){const le=ee[we];P.dom7Listeners||(P.dom7Listeners={}),P.dom7Listeners[le]||(P.dom7Listeners[le]=[]),P.dom7Listeners[le].push({listener:$,proxyListener:Se}),P.addEventListener(le,Se,re)}}return this}function _(){for(let L=0;L<this.length;L+=1)this[L].style.display="none";return this}function A(...L){let W;const G=b();for(let $=0;$<L.length;$+=1){W=L[$];for(let re=0;re<this.length;re+=1)if(typeof W=="string"){const be=G.createElement("div");for(be.innerHTML=W;be.firstChild;)this[re].appendChild(be.firstChild)}else if(W instanceof w)for(let be=0;be<W.length;be+=1)this[re].appendChild(W[be]);else this[re].appendChild(W)}return this}T.fn=w.prototype;const D="resize scroll".split(" ");function x(L){return function(...W){if(W[0]===void 0){for(let G=0;G<this.length;G+=1)D.indexOf(L)<0&&(L in this[G]?this[G][L]():T(this[G]).trigger(L));return this}return this.on(L,...W)}}const B=x("click"),E=T;E.fn.hide=_,E.fn.append=A,E.fn.click=B,E.fn.on=S;const F=E;var C=function(){return C=Object.assign||function(L){for(var W,G=1,$=arguments.length;G<$;G++)for(var re in W=arguments[G])Object.prototype.hasOwnProperty.call(W,re)&&(L[re]=W[re]);return L},C.apply(this,arguments)},I=function(L,W,G,$){return new(G||(G=Promise))(function(re,be){function Se(Ee){try{we($.next(Ee))}catch(P){be(P)}}function ee(Ee){try{we($.throw(Ee))}catch(P){be(P)}}function we(Ee){var P;Ee.done?re(Ee.value):(P=Ee.value,P instanceof G?P:new G(function(le){le(P)})).then(Se,ee)}we(($=$.apply(L,[])).next())})},N=function(L,W){var G,$,re,be,Se={label:0,sent:function(){if(1&re[0])throw re[1];return re[1]},trys:[],ops:[]};return be={next:ee(0),throw:ee(1),return:ee(2)},typeof Symbol=="function"&&(be[Symbol.iterator]=function(){return this}),be;function ee(we){return function(Ee){return function(P){if(G)throw new TypeError("Generator is already executing.");for(;Se;)try{if(G=1,$&&(re=2&P[0]?$.return:P[0]?$.throw||((re=$.return)&&re.call($),0):$.next)&&!(re=re.call($,P[1])).done)return re;switch($=0,re&&(P=[2&P[0],re.value]),P[0]){case 0:case 1:re=P;break;case 4:return Se.label++,{value:P[1],done:!1};case 5:Se.label++,$=P[1],P=[0];continue;case 7:P=Se.ops.pop(),Se.trys.pop();continue;default:if(!((re=(re=Se.trys).length>0&&re[re.length-1])||P[0]!==6&&P[0]!==2)){Se=0;continue}if(P[0]===3&&(!re||P[1]>re[0]&&P[1]<re[3])){Se.label=P[1];break}if(P[0]===6&&Se.label<re[1]){Se.label=re[1],re=P;break}if(re&&Se.label<re[2]){Se.label=re[2],Se.ops.push(P);break}re[2]&&Se.ops.pop(),Se.trys.pop();continue}P=W.call(L,Se)}catch(le){P=[6,le],$=0}finally{G=re=0}if(5&P[0])throw P[1];return{value:P[0]?P[1]:void 0,done:!0}}([we,Ee])}}};function H(L){return L.getMenuConfig("uploadAttachment")}function Q(L,W,G){if(W&&G){L.restoreSelection();var $={type:"attachment",fileName:W,link:G,children:[{text:""}]};L.insertNode($),L.move(1);var re=H(L).onInsertedAttachment;re&&re($)}}function ie(L,W){return I(this,void 0,void 0,function(){var G,$,re,be;return N(this,function(Se){switch(Se.label){case 0:return G=function(ee){var we=ae.get(ee);if(we!=null)return we;var Ee=H(ee),P=Ee.onSuccess,le=Ee.onProgress,me=Ee.onFailed,J=Ee.customInsert,Y=Ee.onError;return we=(0,a.createUploader)(C(C({},Ee),{onProgress:function(fe){ee.showProgressBar(fe),le&&le(fe)},onSuccess:function(fe,oe){if(J)J(oe,fe,function(st,it){return Q(ee,st,it)});else{var pe=oe.errno,de=pe===void 0?1:pe,Oe=oe.data,ve=Oe===void 0?{}:Oe;if(de!==0)return void me(fe,oe);var _e=ve.url,Ue=_e===void 0?"":_e;Q(ee,fe.name,Ue),P(fe,oe)}},onError:function(fe,oe,pe){var de=fe.name;Y&&Y(fe,oe,pe)}})),ae.set(ee,we),we}(L),$=W.name,re=W.type,be=W.size,G.addFile({name:$,type:re,size:be,data:W}),[4,G.upload()];case 1:return Se.sent(),[2]}})})}var ae=new WeakMap;const M=function(){function L(){this.title=(0,a.t)("attachment.upload"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M665.821116 327.053068l-64.958782-64.926783-324.79391 324.729911c-53.822991 53.790991-53.822991 141.053355 0 194.844347s141.053355 53.790991 194.876346 0l389.752692-389.688693a229.531696 229.531696 0 0 0 0-324.729912 229.627694 229.627694 0 0 0-324.761911 0L126.727224 476.458266l-0.863984 0.831985c-125.085655 125.085655-125.085655 327.833853 0 452.887508 125.053655 125.053655 327.865853 125.053655 452.983507 0l0.831984-0.863984 0.031999 0.032 279.322763-279.290764-64.990781-64.926782-279.322763 279.258764-0.831984 0.831984a228.731711 228.731711 0 0 1-323.065943 0 228.603714 228.603714 0 0 1 0-322.969944l0.895983-0.831985-0.031999-0.063998L600.958332 132.208721c53.694993-53.726993 141.149353-53.726993 194.876346 0s53.694993 141.149353 0 194.844347L406.081986 716.741761c-17.919664 17.919664-47.039118 17.919664-64.958782 0a45.983138 45.983138 0 0 1 0-64.926783L665.917114 327.053068z"></path></svg>',this.tag="button"}return L.prototype.getValue=function(W){return""},L.prototype.isActive=function(W){return!1},L.prototype.exec=function(W,G){var $=this.getMenuConfig(W),re=$.allowedFileTypes,be=re===void 0?[]:re,Se=$.customBrowseAndUpload;if(Se)Se(function(P,le){return Q(W,P,le)});else{var ee="";be.length>0&&(ee='accept="'.concat(be.join(", "),'"'));var we=F("body"),Ee=F('<input type="file" '.concat(ee," multiple/>"));Ee.hide(),we.append(Ee),Ee.click(),Ee.on("change",function(){var P=Ee[0].files;(function(le,me){var J,Y;I(this,void 0,void 0,function(){var fe,oe,pe,de,Oe,ve;return N(this,function(_e){switch(_e.label){case 0:if(me==null)return[2];fe=Array.prototype.slice.call(me),oe=H(le).customUpload,_e.label=1;case 1:_e.trys.push([1,9,10,15]),pe=function(Ue){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var st,it=Ue[Symbol.asyncIterator];return it?it.call(Ue):(Ue=typeof __values=="function"?__values(Ue):Ue[Symbol.iterator](),st={},xt("next"),xt("throw"),xt("return"),st[Symbol.asyncIterator]=function(){return this},st);function xt(yt){st[yt]=Ue[yt]&&function(je){return new Promise(function(ce,ke){(function(Be,Ve,He,rt){Promise.resolve(rt).then(function(ct){Be({value:ct,done:He})},Ve)})(ce,ke,(je=Ue[yt](je)).done,je.value)})}}}(fe),_e.label=2;case 2:return[4,pe.next()];case 3:return(de=_e.sent()).done?[3,8]:(Oe=de.value,oe?[4,oe(Oe,function(Ue,st){return Q(le,Ue,st)})]:[3,5]);case 4:return _e.sent(),[3,7];case 5:return[4,ie(le,Oe)];case 6:_e.sent(),_e.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return ve=_e.sent(),J={error:ve},[3,15];case 10:return _e.trys.push([10,,13,14]),de&&!de.done&&(Y=pe.return)?[4,Y.call(pe)]:[3,12];case 11:_e.sent(),_e.label=12;case 12:return[3,14];case 13:if(J)throw J.error;return[7];case 14:return[7];case 15:return[2]}})})})(W,P)})}},L.prototype.isDisabled=function(W){var G=W.selection;if(G==null||a.SlateRange.isExpanded(G))return!0;var $=a.DomEditor.getSelectedElems(W);return!!$.some(function(re){return W.isVoid(re)})||!!$.some(function(re){return a.DomEditor.getNodeType(re)==="pre"})},L.prototype.getMenuConfig=function(W){return W.getMenuConfig("uploadAttachment")},L}(),j=function(){function L(){this.title=(0,a.t)("attachment.download"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M736 448l-256 256-256-256h160V64h192v384z m-256 256H0v256h960v-256H480z m416 128h-128v-64h128v64z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return L.prototype.getValue=function(W){var G=this.getSelectedElem(W);return G==null?"":G.link},L.prototype.isActive=function(W){return!1},L.prototype.exec=function(W,G){G&&typeof G=="string"&&window.open(G,"_blank")},L.prototype.isDisabled=function(W){var G=W.selection;return G==null||!!a.SlateRange.isExpanded(G)||this.getSelectedElem(W)==null},L.prototype.getSelectedElem=function(W){var G=a.DomEditor.getSelectedNodeByType(W,"attachment");return G??null},L}(),V={editorPlugin:function(L){var W=L.isInline,G=L.isVoid,$=L;return $.isInline=function(re){return a.DomEditor.getNodeType(re)==="attachment"||W(re)},$.isVoid=function(re){return a.DomEditor.getNodeType(re)==="attachment"||G(re)},$},renderElems:[p],elemsToHtml:[{type:"attachment",elemToHtml:function(L,W){var G=L,$=G.link,re=$===void 0?"":$,be=G.fileName,Se=be===void 0?"":be;return'<a data-w-e-type="attachment" data-w-e-is-void data-w-e-is-inline href="'.concat(re,'" download="').concat(Se,'">').concat(Se,"</a>")}}],parseElemsHtml:[{selector:'a[data-w-e-type="attachment"]',parseElemHtml:function(L,W,G){return{type:"attachment",link:L.getAttribute("href")||"",fileName:L.getAttribute("download")||"",children:[{text:""}]}}}],menus:[{key:"uploadAttachment",factory:function(){return new M},config:{server:"",fieldName:"wangeditor-uploaded-attachment",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(L){return L},onProgress:function(L){},onSuccess:function(L,W){},onFailed:function(L,W){},onError:function(L,W,G){},onInsertedAttachment:function(L){}}},{key:"downloadAttachment",factory:function(){return new j}}]}})(),s})())})(xG);var dEe=xG.exports;const cEe=bE(dEe),hEe=(e,t={})=>{_J(t);const n=Object.assign({"./JwtCascaderArea/index.vue":TJ,"./JwtCascaderServer/index.vue":jJ,"./JwtColumnItme/components/ColumnDateTimeFormat.vue":x7,"./JwtColumnItme/components/ColumnDefault.vue":E7,"./JwtColumnItme/components/ColumnFile.vue":B7,"./JwtColumnItme/components/ColumnHtml.vue":D7,"./JwtColumnItme/components/ColumnImg.vue":A7,"./JwtColumnItme/components/ColumnImgAdd.vue":T7,"./JwtColumnItme/components/ColumnImgs.vue":O7,"./JwtColumnItme/components/ColumnLink.vue":F7,"./JwtColumnItme/components/ColumnTag.vue":P7,"./JwtColumnItme/components/ColumnTagList.vue":j7,"./JwtColumnItme/components/ColumnText.vue":gk,"./JwtColumnItme/components/ColumnVideo.vue":I7,"./JwtColumnItme/index.vue":lY,"./JwtCount/index.vue":dY,"./JwtCropper/index.vue":aX,"./JwtCropperDialog/index.vue":fX,"./JwtDesHeader/index.vue":Pk,"./JwtDesInfo/index.vue":yX,"./JwtDesTable/index.vue":wX,"./JwtDetailDrawer/index.vue":XX,"./JwtDialogForm/index.vue":oZ,"./JwtEditor/index.vue":wSe,"./JwtEmojiSelect/index.vue":ESe,"./JwtFileIcon/index.vue":BSe,"./JwtFileUpload/index.vue":XSe,"./JwtForm/components/FormLabel.vue":exe,"./JwtForm/index.vue":oxe,"./JwtFormItem/components/FormAutocomplete.vue":bK,"./JwtFormItem/components/FormCascader.vue":kE,"./JwtFormItem/components/FormCascaderPanel.vue":kK,"./JwtFormItem/components/FormCheckbox.vue":wK,"./JwtFormItem/components/FormColorPicker.vue":_K,"./JwtFormItem/components/FormDatePicker.vue":wE,"./JwtFormItem/components/FormDivider.vue":_E,"./JwtFormItem/components/FormEditInput.vue":CE,"./JwtFormItem/components/FormInput.vue":SE,"./JwtFormItem/components/FormInputHidden.vue":CK,"./JwtFormItem/components/FormInputSelect.vue":SK,"./JwtFormItem/components/FormNumberInput.vue":xE,"./JwtFormItem/components/FormRadio.vue":xK,"./JwtFormItem/components/FormRate.vue":EK,"./JwtFormItem/components/FormSelect.vue":BK,"./JwtFormItem/components/FormSlider.vue":DK,"./JwtFormItem/components/FormSwitch.vue":EE,"./JwtFormItem/components/FormTabs.vue":AK,"./JwtFormItem/components/FormTimePicker.vue":BE,"./JwtFormItem/components/FormTimeSelect.vue":TK,"./JwtFormItem/components/FormTips.vue":OK,"./JwtFormItem/components/FormTransfer.vue":FK,"./JwtFormItem/index.vue":fxe,"./JwtHeaderButton/index.vue":vxe,"./JwtIcon/index.vue":_xe,"./JwtIconSelect/index.vue":Dxe,"./JwtImage/index.vue":Fxe,"./JwtInput/index.vue":Ixe,"./JwtMaterial/index.vue":C5e,"./JwtMaterialItemMask/index.vue":Lxe,"./JwtPrefixSuffix/index.vue":B5e,"./JwtRateIcon/index.vue":O5e,"./JwtSelectServer/index.vue":H5e,"./JwtTable/components/tableColumnHeader.vue":q5e,"./JwtTable/components/tableContentControl.vue":N8e,"./JwtTable/components/tableFieldControl.vue":M8e,"./JwtTable/components/tableListContent.vue":L8e,"./JwtTable/components/tableListContentVirtualized.vue":K8e,"./JwtTable/components/tableSizeSetting.vue":G8e,"./JwtTable/index copy.vue":t9e,"./JwtTable/index.vue":u9e,"./JwtTableButton/components/ActionButton.vue":dxe,"./JwtTableButton/index.vue":H8e,"./JwtTableOnly/index.vue":v9e,"./JwtTabs/index.vue":k9e,"./JwtTags/index.vue":S9e,"./JwtTree/components/TreeNode.vue":A9e,"./JwtTree/components/TreeNodeTitle.vue":E9e,"./JwtTree/index.vue":F9e,"./JwtUploadFile/index.vue":R9e,"./JwtUploadImage/components/fileSlot.vue":V9e,"./JwtUploadImage/components/pasteUpload.vue":HSe,"./JwtUploadImage/index.vue":K9e,"./JwtUploadVideo/index.vue":sEe});for(const i in n){const r=n[i];r.default.name&&e.component(r.default.name,r.default||r)}e.directive("jwt-observe-viewport",lEe)};fi.registerModule(cEe);function EG(e){return e&&e.__esModule?e.default:e}function ao(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jb,bt,BG,bm,DG,AG,Yb={},TG=[],pEe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ml(e,t){for(var n in t)e[n]=t[n];return e}function OG(e){var t=e.parentNode;t&&t.removeChild(e)}function YE(e,t,n){var i,r,o,s={};for(o in t)o=="key"?i=t[o]:o=="ref"?r=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?Jb.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Xb(e,s,i,r,null)}function Xb(e,t,n,i,r){var o={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++BG};return r==null&&bt.vnode!=null&&bt.vnode(o),o}function La(){return{current:null}}function rc(e){return e.children}function la(e,t){this.props=e,this.context=t}function oc(e,t){if(t==null)return e.__?oc(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?oc(e):null}function FG(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return FG(e)}}function PG(e){(!e.__d&&(e.__d=!0)&&bm.push(e)&&!Zb.__r++||AG!==bt.debounceRendering)&&((AG=bt.debounceRendering)||DG)(Zb)}function Zb(){for(var e;Zb.__r=bm.length;)e=bm.sort(function(t,n){return t.__v.__b-n.__v.__b}),bm=[],e.some(function(t){var n,i,r,o,s,a;t.__d&&(s=(o=(n=t).__v).__e,(a=n.__P)&&(i=[],(r=ml({},o)).__v=o.__v+1,XE(a,o,r,n.__n,a.ownerSVGElement!==void 0,o.__h!=null?[s]:null,i,s??oc(o),o.__h),zG(i,o),o.__e!=s&&FG(o)))})}function jG(e,t,n,i,r,o,s,a,u,f){var d,c,h,p,m,y,v,b=i&&i.__k||TG,g=b.length;for(n.__k=[],d=0;d<t.length;d++)if((p=n.__k[d]=(p=t[d])==null||typeof p=="boolean"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?Xb(null,p,null,null,p):Array.isArray(p)?Xb(rc,{children:p},null,null,null):p.__b>0?Xb(p.type,p.props,p.key,null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(h=b[d])===null||h&&p.key==h.key&&p.type===h.type)b[d]=void 0;else for(c=0;c<g;c++){if((h=b[c])&&p.key==h.key&&p.type===h.type){b[c]=void 0;break}h=null}XE(e,p,h=h||Yb,r,o,s,a,u,f),m=p.__e,(c=p.ref)&&h.ref!=c&&(v||(v=[]),h.ref&&v.push(h.ref,null,p),v.push(c,p.__c||m,p)),m!=null?(y==null&&(y=m),typeof p.type=="function"&&p.__k===h.__k?p.__d=u=IG(p,u,e):u=RG(e,p,h,b,m,u),typeof n.type=="function"&&(n.__d=u)):u&&h.__e==u&&u.parentNode!=e&&(u=oc(h))}for(n.__e=y,d=g;d--;)b[d]!=null&&(typeof n.type=="function"&&b[d].__e!=null&&b[d].__e==n.__d&&(n.__d=oc(i,d+1)),UG(b[d],b[d]));if(v)for(d=0;d<v.length;d++)VG(v[d],v[++d],v[++d])}function IG(e,t,n){for(var i,r=e.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=e,t=typeof i.type=="function"?IG(i,t,n):RG(n,i,i,r,i.__e,t));return t}function Qb(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){Qb(n,t)}):t.push(e)),t}function RG(e,t,n,i,r,o){var s,a,u;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(n==null||r!=o||r.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(r),s=null;else{for(a=o,u=0;(a=a.nextSibling)&&u<i.length;u+=2)if(a==r)break e;e.insertBefore(r,o),s=o}return s!==void 0?s:r.nextSibling}function gEe(e,t,n,i,r){var o;for(o in n)o==="children"||o==="key"||o in t||$b(e,o,null,n[o],i);for(o in t)r&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===t[o]||$b(e,o,t[o],n[o],i)}function NG(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||pEe.test(t)?n:n+"px"}function $b(e,t,n,i,r){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof i=="string"&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||NG(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||NG(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i||e.addEventListener(t,o?LG:MG,o):e.removeEventListener(t,o?LG:MG,o);else if(t!=="dangerouslySetInnerHTML"){if(r)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,n):e.removeAttribute(t))}}function MG(e){this.l[e.type+!1](bt.event?bt.event(e):e)}function LG(e){this.l[e.type+!0](bt.event?bt.event(e):e)}function XE(e,t,n,i,r,o,s,a,u){var f,d,c,h,p,m,y,v,b,g,k,w=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(u=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(f=bt.__b)&&f(t);try{e:if(typeof w=="function"){if(v=t.props,b=(f=w.contextType)&&i[f.__c],g=f?b?b.props.value:f.__:i,n.__c?y=(d=t.__c=n.__c).__=d.__E:("prototype"in w&&w.prototype.render?t.__c=d=new w(v,g):(t.__c=d=new la(v,g),d.constructor=w,d.render=vEe),b&&b.sub(d),d.props=v,d.state||(d.state={}),d.context=g,d.__n=i,c=d.__d=!0,d.__h=[]),d.__s==null&&(d.__s=d.state),w.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=ml({},d.__s)),ml(d.__s,w.getDerivedStateFromProps(v,d.__s))),h=d.props,p=d.state,c)w.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(w.getDerivedStateFromProps==null&&v!==h&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(v,g),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(v,d.__s,g)===!1||t.__v===n.__v){d.props=v,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(T){T&&(T.__=t)}),d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(v,d.__s,g),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(h,p,m)})}d.context=g,d.props=v,d.state=d.__s,(f=bt.__r)&&f(t),d.__d=!1,d.__v=t,d.__P=e,f=d.render(d.props,d.state,d.context),d.state=d.__s,d.getChildContext!=null&&(i=ml(ml({},i),d.getChildContext())),c||d.getSnapshotBeforeUpdate==null||(m=d.getSnapshotBeforeUpdate(h,p)),k=f!=null&&f.type===rc&&f.key==null?f.props.children:f,jG(e,Array.isArray(k)?k:[k],t,n,i,r,o,s,a,u),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),y&&(d.__E=d.__=null),d.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=mEe(n.__e,t,n,i,r,o,s,u);(f=bt.diffed)&&f(t)}catch(T){t.__v=null,(u||o!=null)&&(t.__e=a,t.__h=!!u,o[o.indexOf(a)]=null),bt.__e(T,t,n)}}function zG(e,t){bt.__c&&bt.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(i){i.call(n)})}catch(i){bt.__e(i,n.__v)}})}function mEe(e,t,n,i,r,o,s,a){var u,f,d,c=n.props,h=t.props,p=t.type,m=0;if(p==="svg"&&(r=!0),o!=null){for(;m<o.length;m++)if((u=o[m])&&"setAttribute"in u==!!p&&(p?u.localName===p:u.nodeType===3)){e=u,o[m]=null;break}}if(e==null){if(p===null)return document.createTextNode(h);e=r?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,h.is&&h),o=null,a=!1}if(p===null)c===h||a&&e.data===h||(e.data=h);else{if(o=o&&Jb.call(e.childNodes),f=(c=n.props||Yb).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!a){if(o!=null)for(c={},m=0;m<e.attributes.length;m++)c[e.attributes[m].name]=e.attributes[m].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(gEe(e,h,c,r,a),d)t.__k=[];else if(m=t.props.children,jG(e,Array.isArray(m)?m:[m],t,n,i,r&&p!=="foreignObject",o,s,o?o[0]:n.__k&&oc(n,0),a),o!=null)for(m=o.length;m--;)o[m]!=null&&OG(o[m]);a||("value"in h&&(m=h.value)!==void 0&&(m!==c.value||m!==e.value||p==="progress"&&!m)&&$b(e,"value",m,c.value,!1),"checked"in h&&(m=h.checked)!==void 0&&m!==e.checked&&$b(e,"checked",m,c.checked,!1))}return e}function VG(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(i){bt.__e(i,n)}}function UG(e,t,n){var i,r;if(bt.unmount&&bt.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||VG(i,null,t)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(o){bt.__e(o,t)}i.base=i.__P=null}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&UG(i[r],t,typeof e.type!="function");n||e.__e==null||OG(e.__e),e.__e=e.__d=void 0}function vEe(e,t,n){return this.constructor(e,n)}function HG(e,t,n){var i,r,o;bt.__&&bt.__(e,t),r=(i=typeof n=="function")?null:n&&n.__k||t.__k,o=[],XE(t,e=(!i&&n||t).__k=YE(rc,null,[e]),r||Yb,Yb,t.ownerSVGElement!==void 0,!i&&n?[n]:r?null:t.firstChild?Jb.call(t.childNodes):null,o,!i&&n?n:r?r.__e:t.firstChild,i),zG(o,e)}Jb=TG.slice,bt={__e:function(e,t){for(var n,i,r;t=t.__;)if((n=t.__c)&&!n.__)try{if((i=n.constructor)&&i.getDerivedStateFromError!=null&&(n.setState(i.getDerivedStateFromError(e)),r=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e),r=n.__d),r)return n.__E=n}catch(o){e=o}throw e}},BG=0,la.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ml({},this.state),typeof e=="function"&&(e=e(ml({},n),this.props)),e&&ml(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),PG(this))},la.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),PG(this))},la.prototype.render=rc,bm=[],DG=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Zb.__r=0;var yEe=0;function qe(e,t,n,i,r){var o,s,a={};for(s in t)s=="ref"?o=t[s]:a[s]=t[s];var u={type:e,props:a,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--yEe,__source:i,__self:r};if(typeof e=="function"&&(o=e.defaultProps))for(s in o)a[s]===void 0&&(a[s]=o[s]);return bt.vnode&&bt.vnode(u),u}function bEe(e,t){try{window.localStorage[`emoji-mart.${e}`]=JSON.stringify(t)}catch{}}function kEe(e){try{const t=window.localStorage[`emoji-mart.${e}`];if(t)return JSON.parse(t)}catch{}}var za={set:bEe,get:kEe};const ZE=new Map,wEe=[{v:15,emoji:"🫨"},{v:14,emoji:"🫠"},{v:13.1,emoji:"😶‍🌫️"},{v:13,emoji:"🥸"},{v:12.1,emoji:"🧑‍🦰"},{v:12,emoji:"🥱"},{v:11,emoji:"🥰"},{v:5,emoji:"🤩"},{v:4,emoji:"👱‍♀️"},{v:3,emoji:"🤣"},{v:2,emoji:"👋🏻"},{v:1,emoji:"🙃"}];function _Ee(){for(const{v:e,emoji:t}of wEe)if(qG(t))return e}function CEe(){return!qG("🇨🇦")}function qG(e){if(ZE.has(e))return ZE.get(e);const t=SEe(e);return ZE.set(e,t),t}const SEe=(()=>{let e=null;try{navigator.userAgent.includes("jsdom")||(e=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!e)return()=>!1;const t=25,n=20,i=Math.floor(t/2);return e.font=i+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=n*2,e.canvas.height=t,r=>{e.clearRect(0,0,n*2,t),e.fillStyle="#FF0000",e.fillText(r,0,22),e.fillStyle="#0000FF",e.fillText(r,n,22);const o=e.getImageData(0,0,n,t).data,s=o.length;let a=0;for(;a<s&&!o[a+3];a+=4);if(a>=s)return!1;const u=n+a/4%n,f=Math.floor(a/4/n),d=e.getImageData(u,f,1,1).data;return!(o[a]!==d[0]||o[a+2]!==d[2]||e.measureText(r).width>=n)}})();var WG={latestVersion:_Ee,noCountryFlags:CEe};const QE=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let Ii=null;function xEe(e){Ii||(Ii=za.get("frequently")||{});const t=e.id||e;t&&(Ii[t]||(Ii[t]=0),Ii[t]+=1,za.set("last",t),za.set("frequently",Ii))}function EEe({maxFrequentRows:e,perLine:t}){if(!e)return[];Ii||(Ii=za.get("frequently"));let n=[];if(!Ii){Ii={};for(let o in QE.slice(0,t)){const s=QE[o];Ii[s]=t-o,n.push(s)}return n}const i=e*t,r=za.get("last");for(let o in Ii)n.push(o);if(n.sort((o,s)=>{const a=Ii[s],u=Ii[o];return a==u?o.localeCompare(s):a-u}),n.length>i){const o=n.slice(i);n=n.slice(0,i);for(let s of o)s!=r&&delete Ii[s];r&&n.indexOf(r)==-1&&(delete Ii[n[n.length-1]],n.splice(-1,1,r)),za.set("frequently",Ii)}return n}var $E={add:xEe,get:EEe,DEFAULTS:QE},KG={};KG=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var Va={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let Ri=null,Wt=null;const e7={};async function GG(e){if(e7[e])return e7[e];const n=await(await fetch(e)).json();return e7[e]=n,n}let t7=null,JG=null,YG=!1;function km(e,{caller:t}={}){return t7||(t7=new Promise(n=>{JG=n})),e&&BEe(e),t7}async function BEe(e){YG=!0;let{emojiVersion:t,set:n,locale:i}=e;if(t||(t=Va.emojiVersion.value),n||(n=Va.set.value),i||(i=Va.locale.value),Wt)Wt.categories=Wt.categories.filter(u=>!u.name);else{Wt=(typeof e.data=="function"?await e.data():e.data)||await GG(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${n}.json`),Wt.emoticons={},Wt.natives={},Wt.categories.unshift({id:"frequent",emojis:[]});for(const u in Wt.aliases){const f=Wt.aliases[u],d=Wt.emojis[f];d&&(d.aliases||(d.aliases=[]),d.aliases.push(u))}Wt.originalCategories=Wt.categories}if(Ri=(typeof e.i18n=="function"?await e.i18n():e.i18n)||(i=="en"?EG(KG):await GG(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)),e.custom)for(let u in e.custom){u=parseInt(u);const f=e.custom[u],d=e.custom[u-1];if(!(!f.emojis||!f.emojis.length)){f.id||(f.id=`custom_${u+1}`),f.name||(f.name=Ri.categories.custom),d&&!f.icon&&(f.target=d.target||d),Wt.categories.push(f);for(const c of f.emojis)Wt.emojis[c.id]=c}}e.categories&&(Wt.categories=Wt.originalCategories.filter(u=>e.categories.indexOf(u.id)!=-1).sort((u,f)=>{const d=e.categories.indexOf(u.id),c=e.categories.indexOf(f.id);return d-c}));let r=null,o=null;n=="native"&&(r=WG.latestVersion(),o=e.noCountryFlags||WG.noCountryFlags());let s=Wt.categories.length,a=!1;for(;s--;){const u=Wt.categories[s];if(u.id=="frequent"){let{maxFrequentRows:c,perLine:h}=e;c=c>=0?c:Va.maxFrequentRows.value,h||(h=Va.perLine.value),u.emojis=$E.get({maxFrequentRows:c,perLine:h})}if(!u.emojis||!u.emojis.length){Wt.categories.splice(s,1);continue}const{categoryIcons:f}=e;if(f){const c=f[u.id];c&&!u.icon&&(u.icon=c)}let d=u.emojis.length;for(;d--;){const c=u.emojis[d],h=c.id?c:Wt.emojis[c],p=()=>{u.emojis.splice(d,1)};if(!h||e.exceptEmojis&&e.exceptEmojis.includes(h.id)){p();continue}if(r&&h.version>r){p();continue}if(o&&u.id=="flags"&&!QG.includes(h.id)){p();continue}if(!h.search){if(a=!0,h.search=","+[[h.id,!1],[h.name,!0],[h.keywords,!1],[h.emoticons,!1]].map(([y,v])=>{if(y)return(Array.isArray(y)?y:[y]).map(b=>(v?b.split(/[-|_|\s]+/):[b]).map(g=>g.toLowerCase())).flat()}).flat().filter(y=>y&&y.trim()).join(","),h.emoticons)for(const y of h.emoticons)Wt.emoticons[y]||(Wt.emoticons[y]=h.id);let m=0;for(const y of h.skins){if(!y)continue;m++;const{native:v}=y;v&&(Wt.natives[v]=h.id,h.search+=`,${v}`);const b=m==1?"":`:skin-tone-${m}:`;y.shortcodes=`:${h.id}:${b}`}}}}a&&Qu.reset(),JG()}function XG(e,t,n){e||(e={});const i={};for(let r in t)i[r]=ZG(r,e,t,n);return i}function ZG(e,t,n,i){const r=n[e];let o=i&&i.getAttribute(e)||(t[e]!=null&&t[e]!=null?t[e]:null);return r&&(o!=null&&r.value&&typeof r.value!=typeof o&&(typeof r.value=="boolean"?o=o!="false":o=r.value.constructor(o)),r.transform&&o&&(o=r.transform(o)),(o==null||r.choices&&r.choices.indexOf(o)==-1)&&(o=r.value)),o}const DEe=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let n7=null;function AEe(e){return e.id?e:Wt.emojis[e]||Wt.emojis[Wt.aliases[e]]||Wt.emojis[Wt.natives[e]]}function TEe(){n7=null}async function OEe(e,{maxResults:t,caller:n}={}){if(!e||!e.trim().length)return null;t||(t=90),await km(null,{caller:n||"SearchIndex.search"});const i=e.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((a,u,f)=>a.trim()&&f.indexOf(a)==u);if(!i.length)return;let r=n7||(n7=Object.values(Wt.emojis)),o,s;for(const a of i){if(!r.length)break;o=[],s={};for(const u of r){if(!u.search)continue;const f=u.search.indexOf(`,${a}`);f!=-1&&(o.push(u),s[u.id]||(s[u.id]=0),s[u.id]+=u.id==a?0:f+1)}r=o}return o.length<2||(o.sort((a,u)=>{const f=s[a.id],d=s[u.id];return f==d?a.id.localeCompare(u.id):f-d}),o.length>t&&(o=o.slice(0,t))),o}var Qu={search:OEe,get:AEe,reset:TEe,SHORTCODES_REGEX:DEe};const QG=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function FEe(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((n,i)=>n==t[i])}async function PEe(e=1){for(let t in[...Array(e).keys()])await new Promise(requestAnimationFrame)}function jEe(e,{skinIndex:t=0}={}){const n=e.skins[t]||(t=0,e.skins[t]),i={id:e.id,name:e.name,native:n.native,unified:n.unified,keywords:e.keywords,shortcodes:n.shortcodes||e.shortcodes};return e.skins.length>1&&(i.skin=t+1),n.src&&(i.src=n.src),e.aliases&&e.aliases.length&&(i.aliases=e.aliases),e.emoticons&&e.emoticons.length&&(i.emoticons=e.emoticons),i}var ek={categories:{activity:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:qe("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:qe("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:qe("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:qe("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),qe("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),qe("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:qe("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),qe("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:qe("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),qe("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[qe("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),qe("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:qe("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:qe("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},search:{loupe:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:qe("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:qe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:qe("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})}};function i7(e){let{id:t,skin:n,emoji:i}=e;if(e.shortcodes){const a=e.shortcodes.match(Qu.SHORTCODES_REGEX);a&&(t=a[1],a[2]&&(n=a[2]))}if(i||(i=Qu.get(t||e.native)),!i)return e.fallback;const r=i.skins[n-1]||i.skins[0],o=r.src||(e.set!="native"&&!e.spritesheet?typeof e.getImageURL=="function"?e.getImageURL(e.set,r.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/64/${r.unified}.png`:void 0),s=typeof e.getSpritesheetURL=="function"?e.getSpritesheetURL(e.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/sheets-256/64.png`;return qe("span",{class:"emoji-mart-emoji","data-emoji-set":e.set,children:o?qe("img",{style:{maxWidth:e.size||"1em",maxHeight:e.size||"1em",display:"inline-block"},alt:r.native||r.shortcodes,src:o}):e.set=="native"?qe("span",{style:{fontSize:e.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:r.native}):qe("span",{style:{display:"block",width:e.size,height:e.size,backgroundImage:`url(${s})`,backgroundSize:`${100*Wt.sheet.cols}% ${100*Wt.sheet.rows}%`,backgroundPosition:`${100/(Wt.sheet.cols-1)*r.x}% ${100/(Wt.sheet.rows-1)*r.y}%`}})})}const IEe=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class $G extends IEe{static get observedAttributes(){return Object.keys(this.Props)}update(t={}){for(let n in t)this.attributeChangedCallback(n,null,t[n])}attributeChangedCallback(t,n,i){if(!this.component)return;const r=ZG(t,{[t]:i},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[t]:r}):(this.component.props[t]=r,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(t={}){if(super(),this.props=t,t.parent||t.ref){let n=null;const i=t.parent||(n=t.ref&&t.ref.current);n&&(n.innerHTML=""),i&&i.appendChild(this)}}}class REe extends $G{setShadow(){this.attachShadow({mode:"open"})}injectStyles(t){if(!t)return;const n=document.createElement("style");n.textContent=t,this.shadowRoot.insertBefore(n,this.shadowRoot.firstChild)}constructor(t,{styles:n}={}){super(t),this.setShadow(),this.injectStyles(n)}}var eJ={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:e=>/\D/.test(e)?e:`${e}px`},set:Va.set,skin:Va.skin};class r7 extends $G{async connectedCallback(){const t=XG(this.props,eJ,this);t.element=this,t.ref=n=>{this.component=n},await km(),!this.disconnected&&HG(qe(i7,{...t}),this)}constructor(t){super(t)}}ao(r7,"Props",eJ),typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",r7);var tJ,o7=[],nJ=bt.__b,iJ=bt.__r,rJ=bt.diffed,oJ=bt.__c,aJ=bt.unmount;function NEe(){var e;for(o7.sort(function(t,n){return t.__v.__b-n.__v.__b});e=o7.pop();)if(e.__P)try{e.__H.__h.forEach(tk),e.__H.__h.forEach(a7),e.__H.__h=[]}catch(t){e.__H.__h=[],bt.__e(t,e.__v)}}bt.__b=function(e){nJ&&nJ(e)},bt.__r=function(e){iJ&&iJ(e);var t=e.__c.__H;t&&(t.__h.forEach(tk),t.__h.forEach(a7),t.__h=[])},bt.diffed=function(e){rJ&&rJ(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(o7.push(t)!==1&&tJ===bt.requestAnimationFrame||((tJ=bt.requestAnimationFrame)||function(n){var i,r=function(){clearTimeout(o),sJ&&cancelAnimationFrame(i),setTimeout(n)},o=setTimeout(r,100);sJ&&(i=requestAnimationFrame(r))})(NEe))},bt.__c=function(e,t){t.some(function(n){try{n.__h.forEach(tk),n.__h=n.__h.filter(function(i){return!i.__||a7(i)})}catch(i){t.some(function(r){r.__h&&(r.__h=[])}),t=[],bt.__e(i,n.__v)}}),oJ&&oJ(e,t)},bt.unmount=function(e){aJ&&aJ(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(i){try{tk(i)}catch(r){t=r}}),t&&bt.__e(t,n.__v))};var sJ=typeof requestAnimationFrame=="function";function tk(e){var t=e.__c;typeof t=="function"&&(e.__c=void 0,t())}function a7(e){e.__c=e.__()}function MEe(e,t){for(var n in t)e[n]=t[n];return e}function lJ(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var i in t)if(i!=="__source"&&e[i]!==t[i])return!0;return!1}function nk(e){this.props=e}(nk.prototype=new la).isPureReactComponent=!0,nk.prototype.shouldComponentUpdate=function(e,t){return lJ(this.props,e)||lJ(this.state,t)};var uJ=bt.__b;bt.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),uJ&&uJ(e)};var LEe=bt.__e;bt.__e=function(e,t,n){if(e.then){for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}LEe(e,t,n)};var fJ=bt.unmount;function s7(){this.__u=0,this.t=null,this.__b=null}function dJ(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function ik(){this.u=null,this.o=null}bt.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),fJ&&fJ(e)},(s7.prototype=new la).__c=function(e,t){var n=t.__c,i=this;i.t==null&&(i.t=[]),i.t.push(n);var r=dJ(i.__v),o=!1,s=function(){o||(o=!0,n.__R=null,r?r(a):a())};n.__R=s;var a=function(){if(!--i.__u){if(i.state.__e){var f=i.state.__e;i.__v.__k[0]=function c(h,p,m){return h&&(h.__v=null,h.__k=h.__k&&h.__k.map(function(y){return c(y,p,m)}),h.__c&&h.__c.__P===p&&(h.__e&&m.insertBefore(h.__e,h.__d),h.__c.__e=!0,h.__c.__P=m)),h}(f,f.__c.__P,f.__c.__O)}var d;for(i.setState({__e:i.__b=null});d=i.t.pop();)d.forceUpdate()}},u=t.__h===!0;i.__u++||u||i.setState({__e:i.__b=i.__v.__k[0]}),e.then(s,s)},s7.prototype.componentWillUnmount=function(){this.t=[]},s7.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function o(s,a,u){return s&&(s.__c&&s.__c.__H&&(s.__c.__H.__.forEach(function(f){typeof f.__c=="function"&&f.__c()}),s.__c.__H=null),(s=MEe({},s)).__c!=null&&(s.__c.__P===u&&(s.__c.__P=a),s.__c=null),s.__k=s.__k&&s.__k.map(function(f){return o(f,a,u)})),s}(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__e&&YE(rc,null,e.fallback);return r&&(r.__h=null),[YE(rc,null,t.__e?null:e.children),r]};var cJ=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(ik.prototype=new la).__e=function(e){var t=this,n=dJ(t.__v),i=t.o.get(e);return i[0]++,function(r){var o=function(){t.props.revealOrder?(i.push(r),cJ(t,e,i)):r()};n?n(o):o()}},ik.prototype.render=function(e){this.u=null,this.o=new Map;var t=Qb(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ik.prototype.componentDidUpdate=ik.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){cJ(e,n,t)})};var zEe=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,VEe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,UEe=typeof document<"u",HEe=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};la.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(la.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var hJ=bt.event;function qEe(){}function WEe(){return this.cancelBubble}function KEe(){return this.defaultPrevented}bt.event=function(e){return hJ&&(e=hJ(e)),e.persist=qEe,e.isPropagationStopped=WEe,e.isDefaultPrevented=KEe,e.nativeEvent=e};var pJ={configurable:!0,get:function(){return this.class}},gJ=bt.vnode;bt.vnode=function(e){var t=e.type,n=e.props,i=n;if(typeof t=="string"){var r=t.indexOf("-")===-1;for(var o in i={},n){var s=n[o];UEe&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in n&&s==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&s===!0?s="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!HEe(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():r&&VEe.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():s===null&&(s=void 0),i[o]=s)}t=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Qb(n.children).forEach(function(a){a.props.selected=i.value.indexOf(a.props.value)!=-1})),t=="select"&&i.defaultValue!=null&&(i.value=Qb(n.children).forEach(function(a){a.props.selected=i.multiple?i.defaultValue.indexOf(a.props.value)!=-1:i.defaultValue==a.props.value})),e.props=i,n.class!=n.className&&(pJ.enumerable="className"in n,n.className!=null&&(i.class=n.className),Object.defineProperty(i,"className",pJ))}e.$$typeof=zEe,gJ&&gJ(e)};var mJ=bt.__r;bt.__r=function(e){mJ&&mJ(e),e.__c};const GEe={light:"outline",dark:"solid"};class JEe extends nk{renderIcon(t){const{icon:n}=t;if(n){if(n.svg)return qe("span",{class:"flex",dangerouslySetInnerHTML:{__html:n.svg}});if(n.src)return qe("img",{src:n.src})}const i=ek.categories[t.id]||ek.categories.custom,r=this.props.icons=="auto"?GEe[this.props.theme]:this.props.icons;return i[r]||i}render(){let t=null;return qe("nav",{id:"nav",class:"padding","data-position":this.props.position,dir:this.props.dir,children:qe("div",{class:"flex relative",children:[this.categories.map((n,i)=>{const r=n.name||Ri.categories[n.id],o=!this.props.unfocused&&n.id==this.state.categoryId;return o&&(t=i),qe("button",{"aria-label":r,"aria-selected":o||void 0,title:r,type:"button",class:"flex flex-grow flex-center",onMouseDown:s=>s.preventDefault(),onClick:()=>{this.props.onClick({category:n,i})},children:this.renderIcon(n)})}),qe("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:t==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${t*100}%)`:`translateX(${t*100}%)`}})]})})}constructor(){super(),this.categories=Wt.categories.filter(t=>!t.target),this.state={categoryId:this.categories[0].id}}}class YEe extends nk{shouldComponentUpdate(t){for(let n in t)if(n!="children"&&t[n]!=this.props[n])return!0;return!1}render(){return this.props.children}}const rk={rowsPerRender:10};class XEe extends la{getInitialState(t=this.props){return{skin:za.get("skin")||t.skin,theme:this.initTheme(t.theme)}}componentWillMount(){this.dir=Ri.rtl?"rtl":"ltr",this.refs={menu:La(),navigation:La(),scroll:La(),search:La(),searchInput:La(),skinToneButton:La(),skinToneRadio:La()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:t}=this.refs;t.current&&t.current.focus()}}componentWillReceiveProps(t){this.nextState||(this.nextState={});for(const n in t)this.nextState[n]=t[n];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let n=!1;for(const r in this.nextState)this.props[r]=this.nextState[r],(r==="custom"||r==="categories")&&(n=!0);delete this.nextState;const i=this.getInitialState();if(n)return this.reset(i);this.setState(i)})}componentWillUnmount(){this.unregister()}async reset(t={}){await km(this.props),this.initGrid(),this.unobserve(),this.setState(t,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var t;document.removeEventListener("click",this.handleClickOutside),(t=this.darkMedia)==null||t.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:t=[]}={}){Array.isArray(t)||(t=[t]);for(const n of this.observers)t.includes(n)||n.disconnect();this.observers=[].concat(t)}initGrid(){const{categories:t}=Wt;this.refs.categories=new Map;const n=Wt.categories.map(r=>r.id).join(",");this.navKey&&this.navKey!=n&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=n,this.grid=[],this.grid.setsize=0;const i=(r,o)=>{const s=[];s.__categoryId=o.id,s.__index=r.length,this.grid.push(s);const a=this.grid.length-1,u=a%rk.rowsPerRender?{}:La();return u.index=a,u.posinset=this.grid.setsize+1,r.push(u),s};for(let r of t){const o=[];let s=i(o,r);for(let a of r.emojis)s.length==this.getPerLine()&&(s=i(o,r)),this.grid.setsize+=1,s.push(a);this.refs.categories.set(r.id,{root:La(),rows:o})}}initTheme(t){if(t!="auto")return t;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(t=this.props){if(!t.dynamicWidth)return;const{element:n,emojiButtonSize:i}=t,r=()=>{const{width:s}=n.getBoundingClientRect();return Math.floor(s/i)},o=new ResizeObserver(()=>{this.unobserve({except:o}),this.setState({perLine:r()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return o.observe(n),this.observers.push(o),r()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([t,n]){const i=this.state.searchResults||this.grid,r=i[t]&&i[t][n];if(r)return Qu.get(r)}observeCategories(){const t=this.refs.navigation.current;if(!t)return;const n=new Map,i=s=>{s!=t.state.categoryId&&t.setState({categoryId:s})},r={root:this.refs.scroll.current,threshold:[0,1]},o=new IntersectionObserver(s=>{for(const u of s){const f=u.target.dataset.id;n.set(f,u.intersectionRatio)}const a=[...n];for(const[u,f]of a)if(f){i(u);break}},r);for(const{root:s}of this.refs.categories.values())o.observe(s.current);this.observers.push(o)}observeRows(){const t={...this.state.visibleRows},n=new IntersectionObserver(i=>{for(const r of i){const o=parseInt(r.target.dataset.index);r.isIntersecting?t[o]=!0:delete t[o]}this.setState({visibleRows:t})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(rk.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*rk.rowsPerRender}px`});for(const{rows:i}of this.refs.categories.values())for(const r of i)r.current&&n.observe(r.current);this.observers.push(n)}preventDefault(t){t.preventDefault()}unfocusSearch(){const t=this.refs.searchInput.current;t&&t.blur()}navigate({e:t,input:n,left:i,right:r,up:o,down:s}){const a=this.state.searchResults||this.grid;if(!a.length)return;let[u,f]=this.state.pos;const d=(()=>{if(u==0&&f==0&&!t.repeat&&(i||o))return null;if(u==-1)return!t.repeat&&(r||s)&&n.selectionStart==n.value.length?[0,0]:null;if(i||r){let c=a[u];const h=i?-1:1;if(f+=h,!c[f]){if(u+=h,c=a[u],!c)return u=i?0:a.length-1,f=i?0:a[u].length-1,[u,f];f=i?c.length-1:0}return[u,f]}if(o||s){u+=o?-1:1;const c=a[u];return c?(c[f]||(f=c.length-1),[u,f]):(u=o?0:a.length-1,f=o?0:a[u].length-1,[u,f])}})();if(d)t.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:d,keyboard:!0},()=>{this.scrollTo({row:d[0]})})}scrollTo({categoryId:t,row:n}){const i=this.state.searchResults||this.grid;if(!i.length)return;const r=this.refs.scroll.current,o=r.getBoundingClientRect();let s=0;if(n>=0&&(t=i[n].__categoryId),t&&(s=(this.refs[t]||this.refs.categories.get(t).root).current.getBoundingClientRect().top-(o.top-r.scrollTop)+1),n>=0)if(!n)s=0;else{const a=i[n].__index,u=s+a*this.props.emojiButtonSize,f=u+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(u<r.scrollTop)s=u;else if(f>r.scrollTop+o.height)s=f-o.height;else return}this.ignoreMouse(),r.scrollTop=s}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(t){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:t||[-1,-1],keyboard:!1})}handleEmojiClick({e:t,emoji:n,pos:i}){if(this.props.onEmojiSelect&&(!n&&i&&(n=this.getEmojiByPos(i)),n)){const r=jEe(n,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&$E.add(r,this.props),this.props.onEmojiSelect(r,t)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(t){this.setState({tempSkin:t})}handleSkinClick(t){this.ignoreMouse(),this.closeSkins(),this.setState({skin:t,tempSkin:null}),za.set("skin",t)}renderNav(){return qe(JEe,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const t=this.getEmojiByPos(this.state.pos),n=this.state.searchResults&&!this.state.searchResults.length;return qe("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[qe("div",{class:"flex flex-middle flex-grow",children:[qe("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:qe(i7,{emoji:t,id:n?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),qe("div",{class:`margin-${this.dir[0]}`,children:t||n?qe("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[qe("div",{class:"preview-title ellipsis",children:t?t.name:Ri.search_no_results_1}),qe("div",{class:"preview-subtitle ellipsis color-c",children:t?t.skins[0].shortcodes:Ri.search_no_results_2})]}):qe("div",{class:"preview-placeholder color-c",children:Ri.pick})})]}),!t&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(t,{pos:n,posinset:i,grid:r}){const o=this.props.emojiButtonSize,s=this.state.tempSkin||this.state.skin,u=(t.skins[s-1]||t.skins[0]).native,f=FEe(this.state.pos,n),d=n.concat(t.id).join("");return qe(YEe,{selected:f,skin:s,size:o,children:qe("button",{"aria-label":u,"aria-selected":f||void 0,"aria-posinset":i,"aria-setsize":r.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?t.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:c=>this.handleEmojiClick({e:c,emoji:t}),onMouseEnter:()=>this.handleEmojiOver(n),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[qe("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(i-1)%this.props.emojiButtonColors.length]:void 0}}),qe(i7,{emoji:t,set:this.props.set,size:this.props.emojiSize,skin:s,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},d)}renderSearch(){const t=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return qe("div",{children:[qe("div",{class:"spacer"}),qe("div",{class:"flex flex-middle",children:[qe("div",{class:"search relative flex-grow",children:[qe("input",{type:"search",ref:this.refs.searchInput,placeholder:Ri.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),qe("span",{class:"icon loupe flex",children:ek.search.loupe}),this.state.searchResults&&qe("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:ek.search.delete})]}),t&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:t}=this.state;return t?qe("div",{class:"category",ref:this.refs.search,children:[qe("div",{class:`sticky padding-small align-${this.dir[0]}`,children:Ri.categories.search}),qe("div",{children:t.length?t.map((n,i)=>qe("div",{class:"flex",children:n.map((r,o)=>this.renderEmojiButton(r,{pos:[i,o],posinset:i*this.props.perLine+o+1,grid:t}))})):qe("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&qe("a",{onClick:this.props.onAddCustomEmoji,children:Ri.add_custom})})})]}):null}renderCategories(){const{categories:t}=Wt,n=!!this.state.searchResults,i=this.getPerLine();return qe("div",{style:{visibility:n?"hidden":void 0,display:n?"none":void 0,height:"100%"},children:t.map(r=>{const{root:o,rows:s}=this.refs.categories.get(r.id);return qe("div",{"data-id":r.target?r.target.id:r.id,class:"category",ref:o,children:[qe("div",{class:`sticky padding-small align-${this.dir[0]}`,children:r.name||Ri.categories[r.id]}),qe("div",{class:"relative",style:{height:s.length*this.props.emojiButtonSize},children:s.map((a,u)=>{const f=a.index-a.index%rk.rowsPerRender,d=this.state.visibleRows[f],c="current"in a?a:void 0;if(!d&&!c)return null;const h=u*i,p=h+i,m=r.emojis.slice(h,p);return m.length<i&&m.push(...new Array(i-m.length)),qe("div",{"data-index":a.index,ref:c,class:"flex row",style:{top:u*this.props.emojiButtonSize},children:d&&m.map((y,v)=>{if(!y)return qe("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const b=Qu.get(y);return this.renderEmojiButton(b,{pos:[a.index,v],posinset:a.posinset+v,grid:this.grid})})},a.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:qe("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:qe("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":Ri.skins.choose,title:Ri.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:qe("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const t=this.getEmojiByPos(this.state.pos),n=t?t.name:"";return qe("div",{"aria-live":"polite",class:"sr-only",children:n})}renderSkins(){const n=this.refs.skinToneButton.current.getBoundingClientRect(),i=this.base.getBoundingClientRect(),r={};return this.dir=="ltr"?r.right=i.right-n.right-3:r.left=n.left-i.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?r.bottom=i.bottom-n.top+6:(r.top=n.bottom-i.top+3,r.bottom="auto"),qe("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":Ri.skins.choose,class:"menu hidden","data-position":r.top?"top":"bottom",style:r,children:[...Array(6).keys()].map(o=>{const s=o+1,a=this.state.skin==s;return qe("div",{children:[qe("input",{type:"radio",name:"skin-tone",value:s,"aria-label":Ri.skins[s],ref:a?this.refs.skinToneRadio:null,defaultChecked:a,onChange:()=>this.handleSkinMouseOver(s),onKeyDown:u=>{(u.code=="Enter"||u.code=="Space"||u.code=="Tab")&&(u.preventDefault(),this.handleSkinClick(s))}}),qe("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(s),onMouseEnter:()=>this.handleSkinMouseOver(s),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[qe("span",{class:`skin-tone skin-tone-${s}`}),qe("span",{class:"margin-small-lr",children:Ri.skins[s]})]})]})})})}render(){const t=this.props.perLine*this.props.emojiButtonSize;return qe("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${t}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&qe("div",{class:"padding-lr",children:this.renderSearch()}),qe("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:qe("div",{style:{width:this.props.dynamicWidth?"100%":t,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(t){super(),ao(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),ao(this,"handleClickOutside",n=>{const{element:i}=this.props;n.target!=i&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(n))}),ao(this,"handleBaseClick",n=>{this.state.showSkins&&(n.target.closest(".menu")||(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins()))}),ao(this,"handleBaseKeydown",n=>{this.state.showSkins&&n.key=="Escape"&&(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins())}),ao(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),ao(this,"handleSearchInput",async()=>{const n=this.refs.searchInput.current;if(!n)return;const{value:i}=n,r=await Qu.search(i),o=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!r)return this.setState({searchResults:r,pos:[-1,-1]},o);const s=n.selectionStart==n.value.length?[0,0]:[-1,-1],a=[];a.setsize=r.length;let u=null;for(let f of r)(!a.length||u.length==this.getPerLine())&&(u=[],u.__categoryId="search",u.__index=a.length,a.push(u)),u.push(f);this.ignoreMouse(),this.setState({searchResults:a,pos:s},o)}),ao(this,"handleSearchKeyDown",n=>{const i=n.currentTarget;switch(n.stopImmediatePropagation(),n.key){case"ArrowLeft":this.navigate({e:n,input:i,left:!0});break;case"ArrowRight":this.navigate({e:n,input:i,right:!0});break;case"ArrowUp":this.navigate({e:n,input:i,up:!0});break;case"ArrowDown":this.navigate({e:n,input:i,down:!0});break;case"Enter":n.preventDefault(),this.handleEmojiClick({e:n,pos:this.state.pos});break;case"Escape":n.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),ao(this,"clearSearch",()=>{const n=this.refs.searchInput.current;n&&(n.value="",n.focus(),this.handleSearchInput())}),ao(this,"handleCategoryClick",({category:n,i})=>{this.scrollTo(i==0?{row:-1}:{categoryId:n.id})}),ao(this,"openSkins",n=>{const{currentTarget:i}=n,r=i.getBoundingClientRect();this.setState({showSkins:r},async()=>{await PEe(2);const o=this.refs.menu.current;o&&(o.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(t),visibleRows:{0:!0},...this.getInitialState(t)}}}class l7 extends REe{async connectedCallback(){const t=XG(this.props,Va,this);t.element=this,t.ref=n=>{this.component=n},await km(t),!this.disconnected&&HG(qe(XEe,{...t}),this.shadowRoot)}constructor(t){super(t,{styles:EG(vJ)})}}ao(l7,"Props",Va),typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",l7);var vJ={};vJ=`:host {
219
219
  width: min-content;
220
220
  height: 435px;
221
221
  min-height: 230px;