9 lines
56 KiB
JavaScript
9 lines
56 KiB
JavaScript
!function(){function t(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,c=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(c.push(o.value),c.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return c}}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function n(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function i(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function d(t,e,n,o){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new A(o||[]);return r(a,"_invoke",{value:P(t,n,c)}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var v="suspendedStart",h="suspendedYield",m="executing",y="completed",g={};function b(){}function w(){}function x(){}var S={};f(S,l,(function(){return this}));var O=Object.getPrototypeOf,E=O&&O(O(R([])));E&&E!==n&&o.call(E,l)&&(S=E);var j=x.prototype=b.prototype=Object.create(S);function I(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(r,i,c,l){var u=p(t[r],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==a(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,c,l)}),(function(t){n("throw",t,c,l)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,l)}))}l(u.arg)}var i;r(this,"_invoke",{value:function(t,o){function r(){return new e((function(e,r){n(t,o,e,r)}))}return i=i?i.then(r,r):r()}})}function P(e,n,o){var r=v;return function(i,a){if(r===m)throw Error("Generator is already running");if(r===y){if("throw"===i)throw a;return{value:t,done:!0}}for(o.method=i,o.arg=a;;){var c=o.delegate;if(c){var l=k(c,o);if(l){if(l===g)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===v)throw r=y,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=m;var u=p(e,n,o);if("normal"===u.type){if(r=o.done?y:h,u.arg===g)continue;return{value:u.arg,done:o.done}}"throw"===u.type&&(r=y,o.method="throw",o.arg=u.arg)}}}function k(e,n){var o=n.method,r=e.iterator[o];if(r===t)return n.delegate=null,"throw"===o&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var i=p(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function n(){for(;++r<e.length;)if(o.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(a(e)+" is not iterable")}return w.prototype=x,r(j,"constructor",{value:x,configurable:!0}),r(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},I(C.prototype),f(C.prototype,u,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var a=new C(d(t,n,o,r),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},I(j),f(j,s,"Generator"),f(j,l,(function(){return this})),f(j,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var o in e)n.push(o);return n.reverse(),function t(){for(;n.length;){var o=n.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},e.values=R,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(o,r){return c.type="throw",c.arg=e,n.next=o,r&&(n.method="next",n.arg=t),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;T(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,o){return this.delegate={iterator:R(e),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=t),g}},e}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}System.register(["./index-legacy-BU4eSv88.js","./index-legacy-0bjbkd6N.js","./index-legacy-CCieVZyX.js","./DeleteOutlined-legacy-hIE6ZyIM.js","./useMergedState-legacy-BqSaRGGw.js"],(function(o,r){"use strict";var c,l,u,s,f,d,p,v,h,m,y,g,b,w,x,S,O,E,j,I,C,P,k,L,T,A,R,D,F,M,U,_,z,H,N,B,X,G,V,q,W,$,J,Y,K,Q,Z,tt,et,nt,ot,rt,it,at,ct,lt,ut,st,ft;return{setters:[function(t){c=t.dG,l=t.dH,u=t.dI,s=t.a,f=t.t,d=t.v,p=t.aS,v=t.c,h=t._,m=t.dJ,y=t.at,g=t.I,b=t.a_,w=t.b0,x=t.bm,S=t.a$,O=t.o,E=t.b1,j=t.f,I=t.aC,C=t.U,P=t.u,k=t.p,L=t.ad,T=t.ae,A=t.Z,R=t.$,D=t.ag,F=t.O,M=t.aD,U=t.d0,_=t.dK,z=t.bP,H=t.a8,N=t.dE,B=t.aQ,X=t.af,G=t.ar,V=t.as,q=t.ab,W=t.aI,$=t.b,J=t.m,Y=t.r,K=t.dD,Q=t.an,Z=t.aw,tt=t.bo,et=t.aP,nt=t.a7,ot=t.j,t.ak,rt=t.al},function(t){it=t.b},function(t){at=t.E,ct=t.k,lt=t.l,ut=t.u},function(t){st=t.D},function(t){ft=t.u}],execute:function(){function r(t,e,n,o){for(var r=-1,i=null==t?0:t.length;++r<i;){var a=t[r];e(o,a,n(a),t)}return o}var dt=function(t,e,n){for(var o=-1,r=Object(t),i=n(t),a=i.length;a--;){var c=i[++o];if(!1===e(r[c],c,r))break}return t};var pt,vt=(pt=function(t,e){return t&&dt(t,e,c)},function(t,e){if(null==t)return t;if(!l(t))return pt(t,e);for(var n=t.length,o=-1,r=Object(t);++o<n&&!1!==e(r[o],o,r););return t});function ht(t,e,n,o){return vt(t,(function(t,r,i){e(o,t,n(t),i)})),o}var mt,yt,gt=(mt=function(t,e,n){t[n?0:1].push(e)},yt=function(){return[[],[]]},function(t,e){var n=u(t)?r:ht,o=yt?yt():{};return n(t,mt,it(e),o)});function bt(t){var e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch(n){return e}}function wt(t){var e=new XMLHttpRequest;t.onProgress&&e.upload&&(e.upload.onprogress=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),t.onProgress(e)});var n=new FormData;t.data&&Object.keys(t.data).forEach((function(e){var o=t.data[e];Array.isArray(o)?o.forEach((function(t){n.append("".concat(e,"[]"),t)})):n.append(e,o)})),t.file instanceof Blob?n.append(t.filename,t.file,t.file.name):n.append(t.filename,t.file),e.onerror=function(e){t.onError(e)},e.onload=function(){return e.status<200||e.status>=300?t.onError(function(t,e){var n="cannot ".concat(t.method," ").concat(t.action," ").concat(e.status,"'"),o=new Error(n);return o.status=e.status,o.method=t.method,o.url=t.action,o}(t,e),bt(e)):t.onSuccess(bt(e),e)},e.open(t.method,t.action,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var o=t.headers||{};return null!==o["X-Requested-With"]&&e.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach((function(t){null!==o[t]&&e.setRequestHeader(t,o[t])})),e.send(n),{abort:function(){e.abort()}}}var xt=+new Date,St=0;function Ot(){return"vc-upload-".concat(xt,"-").concat(++St)}var Et=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(","),o=t.name||"",r=t.type||"",i=r.replace(/\/.*$/,"");return n.some((function(t){var e=t.trim();if(/^\*(\/\*)?$/.test(t))return!0;if("."===e.charAt(0)){var n=o.toLowerCase(),a=e.toLowerCase(),c=[a];return".jpg"!==a&&".jpeg"!==a||(c=[".jpg",".jpeg"]),c.some((function(t){return n.endsWith(t)}))}return/\/\*$/.test(e)?i===e.replace(/\/.*$/,""):r===e||!!/^\w+$/.test(e)}))}return!0};var jt=function(t,e,n){var o=function(t,r){t.path=r||"",t.isFile?t.file((function(o){n(o)&&(t.fullPath&&!o.webkitRelativePath&&(Object.defineProperties(o,{webkitRelativePath:{writable:!0}}),o.webkitRelativePath=t.fullPath.replace(/^\//,""),Object.defineProperties(o,{webkitRelativePath:{writable:!1}})),e([o]))})):t.isDirectory&&function(t,e){var n=t.createReader(),o=[];!function t(){n.readEntries((function(n){var r=Array.prototype.slice.apply(n);o=o.concat(r),r.length?t():e(o)}))}()}(t,(function(e){e.forEach((function(e){o(e,"".concat(r).concat(t.name,"/"))}))}))};t.forEach((function(t){o(t.webkitGetAsEntry())}))},It=function(){return{capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function}},Ct=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(e){i(e)}}function c(t){try{l(o.throw(t))}catch(e){i(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}l((o=o.apply(t,e||[])).next())}))},Pt=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n},kt=s({compatConfig:{MODE:3},name:"AjaxUploader",inheritAttrs:!1,props:It(),setup:function(t,o){var r=this,c=o.slots,l=o.attrs,u=o.expose,s=f(Ot()),y={},g=f(),b=!1,w=function(t){if(t){var e=t.uid?t.uid:t;y[e]&&y[e].abort&&y[e].abort(),delete y[e]}else Object.keys(y).forEach((function(t){y[t]&&y[t].abort&&y[t].abort(),delete y[t]}))};d((function(){b=!0})),p((function(){b=!1,w()}));var x=function(e){var o=n(e),c=o.map((function(e){return e.uid=Ot(),function(e,n){return Ct(r,void 0,void 0,i().mark((function o(){var r,c,l,u,s,f,d,p,v;return i().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(r=t.beforeUpload,c=e,!r){o.next=14;break}return o.prev=3,o.next=6,r(e,n);case 6:c=o.sent,o.next=12;break;case 9:o.prev=9,o.t0=o.catch(3),c=!1;case 12:if(!1!==c){o.next=14;break}return o.abrupt("return",{origin:e,parsedFile:null,action:null,data:null});case 14:if("function"!=typeof(l=t.action)){o.next=21;break}return o.next=18,l(e);case 18:u=o.sent,o.next=22;break;case 21:u=l;case 22:if("function"!=typeof(s=t.data)){o.next=29;break}return o.next=26,s(e);case 26:f=o.sent,o.next=30;break;case 29:f=s;case 30:return d="object"!==a(c)&&"string"!=typeof c||!c?e:c,p=d instanceof File?d:new File([d],e.name,{type:e.type}),(v=p).uid=e.uid,o.abrupt("return",{origin:e,data:f,parsedFile:v,action:u});case 35:case"end":return o.stop()}}),o,null,[[3,9]])})))}(e,o)}));Promise.all(c).then((function(e){var n=t.onBatchStart;null==n||n(e.map((function(t){return{file:t.origin,parsedFile:t.parsedFile}}))),e.filter((function(t){return null!==t.parsedFile})).forEach((function(e){!function(e){var n=e.data,o=e.origin,r=e.action,i=e.parsedFile;if(b){var a=t.onStart,c=t.customRequest,l=t.name,u=t.headers,s=t.withCredentials,f=t.method,d=o.uid,p=c||wt,v={action:r,filename:l,data:n,file:i,headers:u,withCredentials:s,method:f||"post",onProgress:function(e){var n=t.onProgress;null==n||n(e,i)},onSuccess:function(e,n){var o=t.onSuccess;null==o||o(e,i,n),delete y[d]},onError:function(e,n){var o=t.onError;null==o||o(e,n,i),delete y[d]}};a(o),y[d]=p(v)}}(e)}))}))},S=function(e){var o=t.accept,r=t.directory,i=n(e.target.files).filter((function(t){return!r||Et(t,o)}));x(i),s.value=Ot()},O=function(e){var n=g.value;if(n){var o=t.onClick;n.click(),o&&o(e)}},E=function(t){"Enter"===t.key&&O(t)},j=function(e){var n=t.multiple;if(e.preventDefault(),"dragover"!==e.type)if(t.directory)jt(Array.prototype.slice.call(e.dataTransfer.items),x,(function(e){return Et(e,t.accept)}));else{var o=gt(Array.prototype.slice.call(e.dataTransfer.files),(function(e){return Et(e,t.accept)})),r=o[0],i=o[1];!1===n&&(r=r.slice(0,1)),x(r),i.length&&t.onReject&&t.onReject(i)}};return u({abort:w}),function(){var n,o=t.componentTag,r=t.prefixCls,i=t.disabled,a=t.id,u=t.multiple,f=t.accept,d=t.capture,p=t.directory,y=t.openFileDialogOnClick,b=t.onMouseenter,w=t.onMouseleave,x=Pt(t,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),I=e(e(e({},r,!0),"".concat(r,"-disabled"),i),l.class,!!l.class),C=p?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return v(o,h(h({},i?{}:{onClick:y?O:function(){},onKeydown:y?E:function(){},onMouseenter:b,onMouseleave:w,onDrop:j,onDragover:j,tabindex:"0"}),{},{class:I,role:"button",style:l.style}),{default:function(){return[v("input",h(h(h({},m(x,{aria:!0,data:!0})),{},{id:a,type:"file",ref:g,onClick:function(t){return t.stopPropagation()},onCancel:function(t){return t.stopPropagation()},key:s.value,style:{display:"none"},accept:f},C),{},{multiple:u,onChange:S},null!=d?{capture:d}:{}),null),null===(n=c.default)||void 0===n?void 0:n.call(c)]}})}}});function Lt(){}var Tt=s({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:y(It(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Lt,onError:Lt,onSuccess:Lt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup:function(t,e){var n=e.slots,o=e.attrs,r=e.expose,i=f();return r({abort:function(t){var e;null===(e=i.value)||void 0===e||e.abort(t)}}),function(){return v(kt,h(h(h({},t),o),{},{ref:i}),n)}}}),At={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};function Rt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){Dt(t,e,n[e])}))}return t}function Dt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ft=function(t,e){var n=Rt({},t,e.attrs);return v(g,Rt({},n,{icon:At}),null)};Ft.displayName="PaperClipOutlined",Ft.inheritAttrs=!1;var Mt={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:e}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:e}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"};function Ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){_t(t,e,n[e])}))}return t}function _t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zt=function(t,e){var n=Ut({},t,e.attrs);return v(g,Ut({},n,{icon:Mt}),null)};zt.displayName="PictureTwoTone",zt.inheritAttrs=!1;var Ht={icon:function(t,e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:e}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"};function Nt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){Bt(t,e,n[e])}))}return t}function Bt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xt=function(t,e){var n=Nt({},t,e.attrs);return v(g,Nt({},n,{icon:Ht}),null)};function Gt(){return{capture:b([Boolean,String]),type:w(),name:String,defaultFileList:x(),fileList:x(),action:b([String,Function]),directory:S(),data:b([Object,Function]),method:w(),headers:O(),showUploadList:b([Boolean,Object]),multiple:S(),accept:String,beforeUpload:E(),onChange:E(),"onUpdate:fileList":E(),onDrop:E(),listType:w(),onPreview:E(),onDownload:E(),onReject:E(),onRemove:E(),remove:E(),supportServerRender:S(),disabled:S(),prefixCls:String,customRequest:E(),withCredentials:S(),openFileDialogOnClick:S(),locale:O(),id:String,previewFile:E(),transformFile:E(),iconRender:E(),isImageUrl:E(),progress:O(),itemRender:E(),maxCount:Number,height:b([Number,String]),removeIcon:E(),downloadIcon:E(),previewIcon:E()}}function Vt(t){return j(j({},t),{lastModified:t.lastModified,lastModifiedDate:t.lastModifiedDate,name:t.name,size:t.size,type:t.type,uid:t.uid,percent:0,originFileObj:t})}function qt(t,e){var o=n(e),r=o.findIndex((function(e){return e.uid===t.uid}));return-1===r?o.push(t):o[r]=t,o}function Wt(t,e){var n=void 0!==t.uid?"uid":"name";return e.filter((function(e){return e[n]===t[n]}))[0]}Xt.displayName="FileTwoTone",Xt.inheritAttrs=!1;var $t=function(t){return 0===t.indexOf("image/")},Jt=200;var Yt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};function Kt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?Object(arguments[e]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){Qt(t,e,n[e])}))}return t}function Qt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zt=function(t,e){var n=Kt({},t,e.attrs);return v(g,Kt({},n,{icon:Yt}),null)};Zt.displayName="DownloadOutlined",Zt.inheritAttrs=!1;var te=s({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:{prefixCls:String,locale:O(void 0),file:O(),items:x(),listType:w(),isImgUrl:E(),showRemoveIcon:S(),showDownloadIcon:S(),showPreviewIcon:S(),removeIcon:E(),downloadIcon:E(),previewIcon:E(),iconRender:E(),actionIconRender:E(),itemRender:E(),onPreview:E(),onClose:E(),onDownload:E(),progress:O()},setup:function(t,n){var o,r=n.slots,i=n.attrs,a=I(!1),c=I();d((function(){c.value=setTimeout((function(){a.value=!0}),300)})),p((function(){clearTimeout(c.value)}));var l=I(null===(o=t.file)||void 0===o?void 0:o.status);C((function(){var e;return null===(e=t.file)||void 0===e?void 0:e.status}),(function(t){"removed"!==t&&(l.value=t)}));var u=P("upload",t).rootPrefixCls,s=k((function(){return L("".concat(u.value,"-fade"))}));return function(){var n,o,c=t.prefixCls,u=t.locale,f=t.listType,d=t.file,p=t.items,m=t.progress,y=t.iconRender,g=void 0===y?r.iconRender:y,b=t.actionIconRender,w=void 0===b?r.actionIconRender:b,x=t.itemRender,S=void 0===x?r.itemRender:x,O=t.isImgUrl,E=t.showPreviewIcon,j=t.showRemoveIcon,I=t.showDownloadIcon,C=t.previewIcon,P=void 0===C?r.previewIcon:C,k=t.removeIcon,L=void 0===k?r.removeIcon:k,M=t.downloadIcon,U=void 0===M?r.downloadIcon:M,_=t.onPreview,z=t.onDownload,H=t.onClose,N=i.class,B=i.style,X=g({file:d}),G=v("div",{class:"".concat(c,"-text-icon")},[X]);if("picture"===f||"picture-card"===f)if("uploading"===l.value||!d.thumbUrl&&!d.url){var V=e(e({},"".concat(c,"-list-item-thumbnail"),!0),"".concat(c,"-list-item-file"),"uploading"!==l.value);G=v("div",{class:V},[X])}else{var q=(null==O?void 0:O(d))?v("img",{src:d.thumbUrl||d.url,alt:d.name,class:"".concat(c,"-list-item-image"),crossorigin:d.crossOrigin},null):X,W=e(e({},"".concat(c,"-list-item-thumbnail"),!0),"".concat(c,"-list-item-file"),O&&!O(d));G=v("a",{class:W,onClick:function(t){return _(d,t)},href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[q])}var $=e(e({},"".concat(c,"-list-item"),!0),"".concat(c,"-list-item-").concat(l.value),!0),J="string"==typeof d.linkProps?JSON.parse(d.linkProps):d.linkProps,Y=j?w({customIcon:L?L({file:d}):v(st,null,null),callback:function(){return H(d)},prefixCls:c,title:u.removeFile}):null,K=I&&"done"===l.value?w({customIcon:U?U({file:d}):v(Zt,null,null),callback:function(){return z(d)},prefixCls:c,title:u.downloadFile}):null,Q="picture-card"!==f&&v("span",{key:"download-delete",class:["".concat(c,"-list-item-actions"),{picture:"picture"===f}]},[K,Y]),Z="".concat(c,"-list-item-name"),tt=d.url?[v("a",h(h({key:"view",target:"_blank",rel:"noopener noreferrer",class:Z,title:d.name},J),{},{href:d.url,onClick:function(t){return _(d,t)}}),[d.name]),Q]:[v("span",{key:"view",class:Z,onClick:function(t){return _(d,t)},title:d.name},[d.name]),Q],et=E?v("a",{href:d.url||d.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:d.url||d.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:function(t){return _(d,t)},title:u.previewFile},[P?P({file:d}):v(at,null,null)]):null,nt="picture-card"===f&&"uploading"!==l.value&&v("span",{class:"".concat(c,"-list-item-actions")},[et,"done"===l.value&&K,Y]),ot=v("div",{class:$},[G,tt,nt,a.value&&v(T,s.value,{default:function(){return[A(v("div",{class:"".concat(c,"-list-item-progress")},["percent"in d?v(D,h(h({},m),{},{type:"line",percent:d.percent}),null):null]),[[R,"uploading"===l.value]])]}})]),rt=e(e({},"".concat(c,"-list-item-container"),!0),"".concat(N),!!N),it=d.response&&"string"==typeof d.response?d.response:(null===(n=d.error)||void 0===n?void 0:n.statusText)||(null===(o=d.error)||void 0===o?void 0:o.message)||u.uploadError,ct="error"===l.value?v(F,{title:it,getPopupContainer:function(t){return t.parentNode}},{default:function(){return[ot]}}):ot;return v("div",{class:rt,style:B},[S?S({originNode:ct,file:d,fileList:p,actions:{download:z.bind(null,d),preview:_.bind(null,d),remove:H.bind(null,d)}}):ct])}}}),ee=function(t,e){var n,o=e.slots;return H(null===(n=o.default)||void 0===n?void 0:n.call(o))[0]},ne=s({compatConfig:{MODE:3},name:"AUploadList",props:y({listType:w(),onPreview:E(),onDownload:E(),onRemove:E(),items:x(),progress:O(),prefixCls:w(),showRemoveIcon:S(),showDownloadIcon:S(),showPreviewIcon:S(),removeIcon:E(),downloadIcon:E(),previewIcon:E(),locale:O(void 0),previewFile:E(),iconRender:E(),isImageUrl:E(),appendAction:E(),appendActionVisible:S(),itemRender:E()},{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:function(t){return new Promise((function(e){if(t.type&&$t(t.type)){var n=document.createElement("canvas");n.width=Jt,n.height=Jt,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(Jt,"px; height: ").concat(Jt,"px; z-index: 9999; display: none;"),document.body.appendChild(n);var o=n.getContext("2d"),r=new Image;if(r.onload=function(){var t=r.width,i=r.height,a=Jt,c=Jt,l=0,u=0;t>i?u=-((c=i*(Jt/t))-a)/2:l=-((a=t*(Jt/i))-c)/2,o.drawImage(r,l,u,a,c);var s=n.toDataURL();document.body.removeChild(n),e(s)},r.crossOrigin="anonymous",t.type.startsWith("image/svg+xml")){var i=new FileReader;i.addEventListener("load",(function(){i.result&&(r.src=i.result)})),i.readAsDataURL(t)}else r.src=window.URL.createObjectURL(t)}else e("")}))},isImageUrl:function(t){if(t.type&&!t.thumbUrl)return $t(t.type);var e=t.thumbUrl||t.url||"",n=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),e=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(e)||[""])[0]}(e);return!(!/^data:image\//.test(e)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!/^data:/.test(e)&&!n},items:[],appendActionVisible:!0}),setup:function(t,n){var o=n.slots,r=n.expose,i=I(!1);d((function(){i.value}));var a=I([]);C((function(){return t.items}),(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];a.value=t.slice()}),{immediate:!0,deep:!0}),M((function(){if("picture"===t.listType||"picture-card"===t.listType){var e=!1;(t.items||[]).forEach((function(n,o){"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(n.originFileObj instanceof File||n.originFileObj instanceof Blob)&&void 0===n.thumbUrl&&(n.thumbUrl="",t.previewFile&&t.previewFile(n.originFileObj).then((function(t){var r=t||"";r!==n.thumbUrl&&(a.value[o].thumbUrl=r,e=!0)})))})),e&&U(a)}}));var c=function(e,n){if(t.onPreview)return null==n||n.preventDefault(),t.onPreview(e)},l=function(e){"function"==typeof t.onDownload?t.onDownload(e):e.url&&window.open(e.url)},u=function(e){var n;null===(n=t.onRemove)||void 0===n||n.call(t,e)},s=function(e){var n=e.file,r=t.iconRender||o.iconRender;if(r)return r({file:n,listType:t.listType});var i="uploading"===n.status,a=t.isImageUrl&&t.isImageUrl(n)?v(zt,null,null):v(Xt,null,null),c=v(i?N:Ft,null,null);return"picture"===t.listType?c=i?v(N,null,null):a:"picture-card"===t.listType&&(c=i?t.locale.uploading:a),c},f=function(t){var e=t.customIcon,n=t.callback,o=t.prefixCls,r={type:"text",size:"small",title:t.title,onClick:function(){n()},class:"".concat(o,"-list-item-action")};return B(e)?v(X,r,{icon:function(){return e}}):v(X,r,{default:function(){return[v("span",null,[e])]}})};r({handlePreview:c,handleDownload:l});var p=P("upload",t),m=p.prefixCls,y=p.rootPrefixCls,g=k((function(){return e(e({},"".concat(m.value,"-list"),!0),"".concat(m.value,"-list-").concat(t.listType),!0)})),b=k((function(){var e=j({},ct("".concat(y.value,"-motion-collapse")));delete e.onAfterAppear,delete e.onAfterEnter,delete e.onAfterLeave;var n=j(j({},_("".concat(m.value,"-").concat("picture-card"===t.listType?"animate-inline":"animate"))),{class:g.value,appear:i.value});return"picture-card"!==t.listType?j(j({},e),n):n}));return function(){var e=t.listType,n=t.locale,r=t.isImageUrl,i=t.showPreviewIcon,d=t.showRemoveIcon,p=t.showDownloadIcon,y=t.removeIcon,g=t.previewIcon,w=t.downloadIcon,x=t.progress,S=t.appendAction,O=t.itemRender,E=t.appendActionVisible,I=null==S?void 0:S(),C=a.value;return v(z,h(h({},b.value),{},{tag:"div"}),{default:function(){return[C.map((function(t){var a=t.uid;return v(te,{key:a,locale:n,prefixCls:m.value,file:t,items:C,progress:x,listType:e,isImgUrl:r,showPreviewIcon:i,showRemoveIcon:d,showDownloadIcon:p,onPreview:c,onDownload:l,onClose:u,removeIcon:y,previewIcon:g,downloadIcon:w,itemRender:O},j(j({},o),{iconRender:s,actionIconRender:f}))})),S?A(v(ee,{key:"__ant_upload_appendAction"},{default:function(){return I}}),[[R,!!E]]):null]}})}}}),oe=function(t){var n=t.componentCls,o=t.iconCls;return e({},"".concat(n,"-wrapper"),e({},"".concat(n,"-drag"),e(e(e(e(e(e(e(e({position:"relative",width:"100%",height:"100%",textAlign:"center",background:t.colorFillAlter,border:"".concat(t.lineWidth,"px dashed ").concat(t.colorBorder),borderRadius:t.borderRadiusLG,cursor:"pointer",transition:"border-color ".concat(t.motionDurationSlow)},n,{padding:"".concat(t.padding,"px 0")}),"".concat(n,"-btn"),{display:"table",width:"100%",height:"100%",outline:"none"}),"".concat(n,"-drag-container"),{display:"table-cell",verticalAlign:"middle"}),"&:not(".concat(n,"-disabled):hover"),{borderColor:t.colorPrimaryHover}),"p".concat(n,"-drag-icon"),e({marginBottom:t.margin},o,{color:t.colorPrimary,fontSize:t.uploadThumbnailSize})),"p".concat(n,"-text"),{margin:"0 0 ".concat(t.marginXXS,"px"),color:t.colorTextHeading,fontSize:t.fontSizeLG}),"p".concat(n,"-hint"),{color:t.colorTextDescription,fontSize:t.fontSize}),"&".concat(n,"-disabled"),e({cursor:"not-allowed"},"p".concat(n,"-drag-icon ").concat(o,",\n p").concat(n,"-text,\n p").concat(n,"-hint\n "),{color:t.colorTextDisabled}))))},re=function(t){var n=t.componentCls,o=t.antCls,r=t.iconCls,i=t.fontSize,a=t.lineHeight,c="".concat(n,"-list-item"),l="".concat(c,"-actions"),u="".concat(c,"-action"),s=Math.round(i*a);return e({},"".concat(n,"-wrapper"),e({},"".concat(n,"-list"),j(j({},G()),e(e(e(e({lineHeight:t.lineHeight},c,e(e(e(e({position:"relative",height:t.lineHeight*i,marginTop:t.marginXS,fontSize:i,display:"flex",alignItems:"center",transition:"background-color ".concat(t.motionDurationSlow),"&:hover":{backgroundColor:t.controlItemBgHover}},"".concat(c,"-name"),j(j({},V),{padding:"0 ".concat(t.paddingXS,"px"),lineHeight:a,flex:"auto",transition:"all ".concat(t.motionDurationSlow)})),l,e(e(e(e(e({},u,{opacity:0}),"".concat(u).concat(o,"-btn-sm"),{height:s,border:0,lineHeight:1,"> span":{transform:"scale(1)"}}),"\n ".concat(u,":focus,\n &.picture ").concat(u,"\n "),{opacity:1}),r,{color:t.colorTextDescription,transition:"all ".concat(t.motionDurationSlow)}),"&:hover ".concat(r),{color:t.colorText})),"".concat(n,"-icon ").concat(r),{color:t.colorTextDescription,fontSize:i}),"".concat(c,"-progress"),{position:"absolute",bottom:-t.uploadProgressOffset,width:"100%",paddingInlineStart:i+t.paddingXS,fontSize:i,lineHeight:0,pointerEvents:"none","> div":{margin:0}})),"".concat(c,":hover ").concat(u),{opacity:1,color:t.colorText}),"".concat(c,"-error"),e(e({color:t.colorError},"".concat(c,"-name, ").concat(n,"-icon ").concat(r),{color:t.colorError}),l,e(e({},"".concat(r,", ").concat(r,":hover"),{color:t.colorError}),u,{opacity:1}))),"".concat(n,"-list-item-container"),{transition:"opacity ".concat(t.motionDurationSlow,", height ").concat(t.motionDurationSlow),"&::before":{display:"table",width:0,height:0,content:'""'}}))))},ie=new q("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),ae=new q("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),ce=function(t){var n=t.componentCls,o="".concat(n,"-animate-inline");return[e({},"".concat(n,"-wrapper"),e(e(e({},"".concat(o,"-appear, ").concat(o,"-enter, ").concat(o,"-leave"),{animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseInOutCirc,animationFillMode:"forwards"}),"".concat(o,"-appear, ").concat(o,"-enter"),{animationName:ie}),"".concat(o,"-leave"),{animationName:ae})),ie,ae]},le=function(t){var n=t.componentCls,o=t.iconCls,r=t.uploadThumbnailSize,i=t.uploadProgressOffset,a="".concat(n,"-list"),c="".concat(a,"-item");return e({},"".concat(n,"-wrapper"),e({},"".concat(a).concat(a,"-picture, ").concat(a).concat(a,"-picture-card"),e(e(e({},c,e(e({position:"relative",height:r+2*t.lineWidth+2*t.paddingXS,padding:t.paddingXS,border:"".concat(t.lineWidth,"px ").concat(t.lineType," ").concat(t.colorBorder),borderRadius:t.borderRadiusLG,"&:hover":{background:"transparent"}},"".concat(c,"-thumbnail"),j(j({},V),e(e({width:r,height:r,lineHeight:"".concat(r+t.paddingSM,"px"),textAlign:"center",flex:"none"},o,{fontSize:t.fontSizeHeading2,color:t.colorPrimary}),"img",{display:"block",width:"100%",height:"100%",overflow:"hidden"}))),"".concat(c,"-progress"),{bottom:i,width:"calc(100% - ".concat(2*t.paddingSM,"px)"),marginTop:0,paddingInlineStart:r+t.paddingXS})),"".concat(c,"-error"),e({borderColor:t.colorError},"".concat(c,"-thumbnail ").concat(o),e(e({},"svg path[fill='#e6f7ff']",{fill:t.colorErrorBg}),"svg path[fill='#1890ff']",{fill:t.colorError}))),"".concat(c,"-uploading"),e({borderStyle:"dashed"},"".concat(c,"-name"),{marginBottom:i}))))},ue=function(t){var n,o=t.componentCls,r=t.iconCls,i=t.fontSizeLG,a=t.colorTextLightSolid,c="".concat(o,"-list"),l="".concat(c,"-item"),u=t.uploadPicCardSize;return e({},"".concat(o,"-wrapper").concat(o,"-picture-card-wrapper"),j(j({},G()),e(e({display:"inline-block",width:"100%"},"".concat(o).concat(o,"-select"),e(e({width:u,height:u,marginInlineEnd:t.marginXS,marginBottom:t.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:t.colorFillAlter,border:"".concat(t.lineWidth,"px dashed ").concat(t.colorBorder),borderRadius:t.borderRadiusLG,cursor:"pointer",transition:"border-color ".concat(t.motionDurationSlow)},"> ".concat(o),{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"}),"&:not(".concat(o,"-disabled):hover"),{borderColor:t.colorPrimary})),"".concat(c).concat(c,"-picture-card"),(e(e(e(e(e(e(e(e(e(e(n={},"".concat(c,"-item-container"),{display:"inline-block",width:u,height:u,marginBlock:"0 ".concat(t.marginXS,"px"),marginInline:"0 ".concat(t.marginXS,"px"),verticalAlign:"top"}),"&::after",{display:"none"}),l,{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:"calc(100% - ".concat(2*t.paddingXS,"px)"),height:"calc(100% - ".concat(2*t.paddingXS,"px)"),backgroundColor:t.colorBgMask,opacity:0,transition:"all ".concat(t.motionDurationSlow),content:'" "'}}),"".concat(l,":hover"),e({},"&::before, ".concat(l,"-actions"),{opacity:1})),"".concat(l,"-actions"),e({position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:"all ".concat(t.motionDurationSlow)},"".concat(r,"-eye, ").concat(r,"-download, ").concat(r,"-delete"),{zIndex:10,width:i,margin:"0 ".concat(t.marginXXS,"px"),fontSize:i,cursor:"pointer",transition:"all ".concat(t.motionDurationSlow)})),"".concat(l,"-actions, ").concat(l,"-actions:hover"),e({},"".concat(r,"-eye, ").concat(r,"-download, ").concat(r,"-delete"),{color:new W(a).setAlpha(.65).toRgbString(),"&:hover":{color:a}})),"".concat(l,"-thumbnail, ").concat(l,"-thumbnail img"),{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"}),"".concat(l,"-name"),{display:"none",textAlign:"center"}),"".concat(l,"-file + ").concat(l,"-name"),{position:"absolute",bottom:t.margin,display:"block",width:"calc(100% - ".concat(2*t.paddingXS,"px)")}),"".concat(l,"-uploading"),e(e({},"&".concat(l),{backgroundColor:t.colorFillAlter}),"&::before, ".concat(r,"-eye, ").concat(r,"-download, ").concat(r,"-delete"),{display:"none"})),e(n,"".concat(l,"-progress"),{bottom:t.marginXL,width:"calc(100% - ".concat(2*t.paddingXS,"px)"),paddingInlineStart:0})))))},se=function(t){var n=t.componentCls;return e({},"".concat(n,"-rtl"),{direction:"rtl"})},fe=function(t){var n=t.componentCls,o=t.colorTextDisabled;return e({},"".concat(n,"-wrapper"),j(j({},Y(t)),e(e(e({},n,{outline:0,"input[type='file']":{cursor:"pointer"}}),"".concat(n,"-select"),{display:"inline-block"}),"".concat(n,"-disabled"),{color:o,cursor:"not-allowed"})))},de=$("Upload",(function(t){var e=t.fontSizeHeading3,n=t.fontSize,o=t.lineHeight,r=t.lineWidth,i=t.controlHeightLG,a=Math.round(n*o),c=J(t,{uploadThumbnailSize:2*e,uploadProgressOffset:a/2+r,uploadPicCardSize:2.55*i});return[fe(c),oe(c),le(c),ue(c),re(c),ce(c),se(c),lt(c)]})),pe=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{l(o.next(t))}catch(e){i(e)}}function c(t){try{l(o.throw(t))}catch(e){i(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}l((o=o.apply(t,e||[])).next())}))},ve=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n},he="__LIST_IGNORE_".concat(Date.now(),"__"),me=s({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:y(Gt(),{type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",supportServerRender:!0}),setup:function(o,r){var c=this,l=r.slots,u=r.attrs,s=r.expose,p=ut(),m=P("upload",o),y=m.prefixCls,g=m.direction,b=m.disabled,w=t(de(y),2),x=w[0],S=w[1],O=K(),E=k((function(){var t;return null!==(t=b.value)&&void 0!==t?t:O.value})),I=ft(o.defaultFileList||[],{value:Q(o,"fileList"),postState:function(t){var e=Date.now();return(null!=t?t:[]).map((function(t,n){return t.uid||Object.isFrozen(t)||(t.uid="__AUTO__".concat(e,"_").concat(n,"__")),t}))}}),C=t(I,2),L=C[0],T=C[1],A=f("drop"),R=f(null);d((function(){Z(void 0!==o.fileList||void 0===u.value,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Z(void 0===o.transformFile,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Z(void 0===o.remove,"Upload","`remove` props is deprecated. Please use `remove` event.")}));var D=function(t,e,r){var i,a,c=n(e);1===o.maxCount?c=c.slice(-1):o.maxCount&&(c=c.slice(0,o.maxCount)),T(c);var l={file:t,fileList:c};r&&(l.event=r),null===(i=o["onUpdate:fileList"])||void 0===i||i.call(o,l.fileList),null===(a=o.onChange)||void 0===a||a.call(o,l),p.onFieldChange()},F=function(t,e){return pe(c,void 0,void 0,i().mark((function n(){var r,c,l,u;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=o.beforeUpload,c=o.transformFile,l=t,!r){n.next=13;break}return n.next=5,r(t,e);case 5:if(!1!==(u=n.sent)){n.next=8;break}return n.abrupt("return",!1);case 8:if(delete t[he],u!==he){n.next=12;break}return Object.defineProperty(t,he,{value:!0,configurable:!0}),n.abrupt("return",!1);case 12:"object"===a(u)&&u&&(l=u);case 13:if(!c){n.next=17;break}return n.next=16,c(l);case 16:l=n.sent;case 17:return n.abrupt("return",l);case 18:case"end":return n.stop()}}),n)})))},M=function(t){var e=t.filter((function(t){return!t.file[he]}));if(e.length){var o=e.map((function(t){return Vt(t.file)})),r=n(L.value);o.forEach((function(t){r=qt(t,r)})),o.forEach((function(t,n){var o=t;if(e[n].parsedFile)t.status="uploading";else{var i,a=t.originFileObj;try{i=new File([a],a.name,{type:a.type})}catch(c){(i=new Blob([a],{type:a.type})).name=a.name,i.lastModifiedDate=new Date,i.lastModified=(new Date).getTime()}i.uid=t.uid,o=i}D(o,r)}))}},U=function(t,e,n){try{"string"==typeof t&&(t=JSON.parse(t))}catch(i){}if(Wt(e,L.value)){var o=Vt(e);o.status="done",o.percent=100,o.response=t,o.xhr=n;var r=qt(o,L.value);D(o,r)}},_=function(t,e){if(Wt(e,L.value)){var n=Vt(e);n.status="uploading",n.percent=t.percent;var o=qt(n,L.value);D(n,o,t)}},z=function(t,e,n){if(Wt(n,L.value)){var o=Vt(n);o.error=t,o.response=e,o.status="error";var r=qt(o,L.value);D(o,r)}},H=function(t){var e,n=o.onRemove||o.remove;Promise.resolve("function"==typeof n?n(t):n).then((function(n){var o,r;if(!1!==n){var i=function(t,e){var n=void 0!==t.uid?"uid":"name",o=e.filter((function(e){return e[n]!==t[n]}));return o.length===e.length?null:o}(t,L.value);i&&(e=j(j({},t),{status:"removed"}),null===(o=L.value)||void 0===o||o.forEach((function(t){var n=void 0!==e.uid?"uid":"name";t[n]!==e[n]||Object.isFrozen(t)||(t.status="removed")})),null===(r=R.value)||void 0===r||r.abort(e),D(e,i))}}))},N=function(t){var e;A.value=t.type,"drop"===t.type&&(null===(e=o.onDrop)||void 0===e||e.call(o,t))};s({onBatchStart:M,onSuccess:U,onProgress:_,onError:z,fileList:L,upload:R});var B=t(tt("Upload",et.Upload,k((function(){return o.locale}))),1)[0],X=function(t,e){var n=o.removeIcon,r=o.previewIcon,i=o.downloadIcon,a=o.previewFile,c=o.onPreview,u=o.onDownload,s=o.isImageUrl,f=o.progress,d=o.itemRender,p=o.iconRender,h=o.showUploadList,m="boolean"==typeof h?{}:h,g=m.showDownloadIcon,b=m.showPreviewIcon,w=m.showRemoveIcon;return h?v(ne,{prefixCls:y.value,listType:o.listType,items:L.value,previewFile:a,onPreview:c,onDownload:u,onRemove:H,showRemoveIcon:!E.value&&w,showPreviewIcon:b,showDownloadIcon:g,removeIcon:n,previewIcon:r,downloadIcon:i,iconRender:p,locale:B.value,isImageUrl:s,progress:f,itemRender:d,appendActionVisible:e,appendAction:t},j({},l)):null==t?void 0:t()};return function(){var t,n,r,i=o.listType,a=o.type,c=u.class,s=(u.style,ve(u,["class","style"])),f=j(j(j({onBatchStart:M,onError:z,onProgress:_,onSuccess:U},s),o),{id:null!==(t=o.id)&&void 0!==t?t:p.id.value,prefixCls:y.value,beforeUpload:F,onChange:void 0,disabled:E.value});delete f.remove,l.default&&!E.value||delete f.id;var d=e({},"".concat(y.value,"-rtl"),"rtl"===g.value);if("drag"===a){var m=nt(y.value,e(e(e(e(e({},"".concat(y.value,"-drag"),!0),"".concat(y.value,"-drag-uploading"),L.value.some((function(t){return"uploading"===t.status}))),"".concat(y.value,"-drag-hover"),"dragover"===A.value),"".concat(y.value,"-disabled"),E.value),"".concat(y.value,"-rtl"),"rtl"===g.value),u.class,S.value);return x(v("span",h(h({},u),{},{class:nt("".concat(y.value,"-wrapper"),d,c,S.value)}),[v("div",{class:m,onDrop:N,onDragover:N,onDragleave:N,style:u.style},[v(Tt,h(h({},f),{},{ref:R,class:"".concat(y.value,"-btn")}),h({default:function(){return[v("div",{class:"".concat(y.value,"-drag-container")},[null===(n=l.default)||void 0===n?void 0:n.call(l)])]}},l))]),X()]))}var b=nt(y.value,e(e(e(e({},"".concat(y.value,"-select"),!0),"".concat(y.value,"-select-").concat(i),!0),"".concat(y.value,"-disabled"),E.value),"".concat(y.value,"-rtl"),"rtl"===g.value)),w=ot(null===(r=l.default)||void 0===r?void 0:r.call(l)),O=function(t){return v("div",{class:b,style:t},[v(Tt,h(h({},f),{},{ref:R}),l)])};return x("picture-card"===i?v("span",h(h({},u),{},{class:nt("".concat(y.value,"-wrapper"),"".concat(y.value,"-picture-card-wrapper"),d,u.class,S.value)}),[X(O,!(!w||!w.length))]):v("span",h(h({},u),{},{class:nt("".concat(y.value,"-wrapper"),d,u.class,S.value)}),[O(w&&w.length?void 0:{display:"none"}),X()]))}}}),ye=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(t);r<o.length;r++)e.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(n[o[r]]=t[o[r]])}return n},ge=s({compatConfig:{MODE:3},name:"AUploadDragger",inheritAttrs:!1,props:Gt(),setup:function(t,e){var n=e.slots,o=e.attrs;return function(){var e=t.height,r=ye(t,["height"]),i=o.style,a=ye(o,["style"]),c=j(j(j({},r),a),{type:"drag",style:j(j({},i),{height:"number"==typeof e?"".concat(e,"px"):e})});return v(me,c,n)}}}),be=(o("_",j(me,{Dragger:ge,LIST_IGNORE:he,install:function(t){return t.component(me.name,me),t.component(ge.name,ge),t}})),{exports:{}});
|
|
/*!
|
|
* clipboard.js v2.0.11
|
|
* https://clipboardjs.com/
|
|
*
|
|
* Licensed MIT © Zeno Rocha
|
|
*/
|
|
!function(t){var e;e=function(){return function(){var t={686:function(t,e,n){n.d(e,{default:function(){return S}});var o=n(279),r=n.n(o),i=n(370),a=n.n(i),c=n(817),l=n.n(c);function u(t){try{return document.execCommand(t)}catch(e){return!1}}var s=function(t){var e=l()(t);return u("cut"),e},f=function(t,e){var n=function(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(o,"px"),n.setAttribute("readonly",""),n.value=t,n}(t);e.container.appendChild(n);var o=l()(n);return u("copy"),n.remove(),o},d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=f(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?n=f(t.value,e):(n=l()(t),u("copy")),n};function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}var v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,o=t.container,r=t.target,i=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==r){if(!r||"object"!==p(r)||1!==r.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&r.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(r.hasAttribute("readonly")||r.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?d(i,{container:o}):r?"cut"===n?s(r):d(r,{container:o}):void 0};function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function m(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function y(t,e){return y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},y(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o,r,i=b(t);if(e){var a=b(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o=this,!(r=n)||"object"!==h(r)&&"function"!=typeof r?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(o):r}}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function w(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}var x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(i,t);var e,n,o,r=g(i);function i(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),(n=r.call(this)).resolveOptions(e),n.listenClick(t),n}return e=i,n=[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===h(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=a()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",o=v({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(o?"success":"error",{action:n,text:o,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return w("action",t)}},{key:"defaultTarget",value:function(t){var e=w("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return w("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],o=[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return d(t,e)}},{key:"cut",value:function(t){return s(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}],n&&m(e.prototype,n),o&&m(e,o),i}(r()),S=x},828:function(t){if("undefined"!=typeof Element&&!Element.prototype.matches){var e=Element.prototype;e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var o=n(828);function r(t,e,n,o,r){var a=i.apply(this,arguments);return t.addEventListener(n,a,r),{destroy:function(){t.removeEventListener(n,a,r)}}}function i(t,e,n,r){return function(n){n.delegateTarget=o(n.target,e),n.delegateTarget&&r.call(t,n)}}t.exports=function(t,e,n,o,i){return"function"==typeof t.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return r(t,e,n,o,i)})))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var o=n(879),r=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!o.string(e))throw new TypeError("Second argument must be a String");if(!o.fn(n))throw new TypeError("Third argument must be a Function");if(o.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(o.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}(t,e,n);if(o.string(t))return function(t,e,n){return r(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,a=o.length;i<a;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}return n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n(686)}().default},t.exports=e()}(be);var we=rt(be.exports);o("u",(function(t){return{toClipboard:function(t,e){return new Promise((function(n,o){var r=document.createElement("button"),i=new we(r,{text:function(){return t},action:function(){return"copy"},container:void 0!==e?e:document.body});i.on("success",(function(t){i.destroy(),n(t)})),i.on("error",(function(t){i.destroy(),o(t)})),document.body.appendChild(r),r.click(),document.body.removeChild(r)}))}}}))}}}))}();
|