@sbs-plugin/vue2-image-process 0.0.7 → 0.0.9

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.
@@ -1 +0,0 @@
1
- (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue2-image-processing"]=e():t["vue2-image-processing"]=e()})("undefined"!==typeof self?self:this,function(){return function(){var t={14:function(t,e,r){"use strict";var n=r(4754),o=r(6671);t.exports=function(t){return n(o(t))}},80:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(r){return"Object"}}},136:function(t,e,r){"use strict";var n=r(2848);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},218:function(t,e,r){"use strict";var n=r(9925),o=r(1385),i=r(990),s=r(8938),a=r(9435),c=o.aTypedArray,u=o.getTypedArrayConstructor,l=o.exportTypedArrayMethod,f=function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}(),p=f&&function(){try{new Int8Array(1)["with"](-.5,1)}catch(t){return!0}}();l("with",{with:function(t,e){var r=c(this),o=s(t),l=i(r)?a(e):+e;return n(r,u(r),o,l)}}["with"],!f||p)},338:function(t){"use strict";t.exports={}},392:function(t){"use strict";var e=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw e("Maximum allowed index exceeded");return t}},408:function(t){"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},492:function(t,e,r){"use strict";var n=r(8243),o=r(7858),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},768:function(t){"use strict";t.exports=!1},778:function(t,e,r){"use strict";var n=r(8567),o=r(5884),i=r(9945);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},849:function(t,e,r){"use strict";var n=r(8938),o=Math.min;t.exports=function(t){var e=n(t);return e>0?o(e,9007199254740991):0}},990:function(t,e,r){"use strict";var n=r(4220);t.exports=function(t){var e=n(t);return"BigInt64Array"===e||"BigUint64Array"===e}},1201:function(t,e,r){"use strict";var n=r(2339),o=r(7858),i=r(8911),s=r(1546),a=r(392),c=r(7612),u=c(function(){return 4294967297!==[].push.call({length:4294967296},1)}),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},f=u||!l();n({target:"Array",proto:!0,arity:1,forced:f},{push:function(t){var e=o(this),r=i(e),n=arguments.length;a(r+n);for(var c=0;c<n;c++)e[r]=arguments[c],r++;return s(e,r),r}})},1351:function(t,e,r){"use strict";var n=r(2175),o=r(3248);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},1367:function(t,e,r){"use strict";var n=r(9727),o=r(1994),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},1385:function(t,e,r){"use strict";var n,o,i,s=r(4514),a=r(8567),c=r(9727),u=r(1994),l=r(4701),f=r(492),p=r(4220),h=r(80),d=r(778),y=r(4919),m=r(7363),g=r(2984),v=r(9876),b=r(8280),w=r(8040),S=r(2787),E=r(2964),O=E.enforce,x=E.get,A=c.Int8Array,R=A&&A.prototype,_=c.Uint8ClampedArray,C=_&&_.prototype,T=A&&v(A),k=R&&v(R),j=Object.prototype,P=c.TypeError,U=w("toStringTag"),I=S("TYPED_ARRAY_TAG"),F="TypedArrayConstructor",B=s&&!!b&&"Opera"!==p(c.opera),N=!1,M={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},L={BigInt64Array:8,BigUint64Array:8},D=function(t){if(!l(t))return!1;var e=p(t);return"DataView"===e||f(M,e)||f(L,e)},q=function(t){var e=v(t);if(l(e)){var r=x(e);return r&&f(r,F)?r[F]:q(e)}},$=function(t){if(!l(t))return!1;var e=p(t);return f(M,e)||f(L,e)},z=function(t){if($(t))return t;throw new P("Target is not a typed array")},V=function(t){if(u(t)&&(!b||g(T,t)))return t;throw new P(h(t)+" is not a typed array constructor")},W=function(t,e,r,n){if(a){if(r)for(var o in M){var i=c[o];if(i&&f(i.prototype,t))try{delete i.prototype[t]}catch(s){try{i.prototype[t]=e}catch(u){}}}k[t]&&!r||y(k,t,r?e:B&&R[t]||e,n)}},H=function(t,e,r){var n,o;if(a){if(b){if(r)for(n in M)if(o=c[n],o&&f(o,t))try{delete o[t]}catch(i){}if(T[t]&&!r)return;try{return y(T,t,r?e:B&&T[t]||e)}catch(i){}}for(n in M)o=c[n],!o||o[t]&&!r||y(o,t,e)}};for(n in M)o=c[n],i=o&&o.prototype,i?O(i)[F]=o:B=!1;for(n in L)o=c[n],i=o&&o.prototype,i&&(O(i)[F]=o);if((!B||!u(T)||T===Function.prototype)&&(T=function(){throw new P("Incorrect invocation")},B))for(n in M)c[n]&&b(c[n],T);if((!B||!k||k===j)&&(k=T.prototype,B))for(n in M)c[n]&&b(c[n].prototype,k);if(B&&v(C)!==k&&b(C,k),a&&!f(k,U))for(n in N=!0,m(k,U,{configurable:!0,get:function(){return l(this)?this[I]:void 0}}),M)c[n]&&d(c[n],I,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:B,TYPED_ARRAY_TAG:N&&I,aTypedArray:z,aTypedArrayConstructor:V,exportTypedArrayMethod:W,exportTypedArrayStaticMethod:H,getTypedArrayConstructor:q,isView:D,isTypedArray:$,TypedArray:T,TypedArrayPrototype:k}},1546:function(t,e,r){"use strict";var n=r(8567),o=r(9505),i=TypeError,s=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(o(t)&&!s(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},1994:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports="undefined"==typeof e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2135:function(t,e,r){"use strict";var n=r(8243),o=r(1994),i=r(2848),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},2175:function(t,e,r){"use strict";var n=r(1994),o=r(80),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},2339:function(t,e,r){"use strict";var n=r(9727),o=r(4390).f,i=r(778),s=r(4919),a=r(2980),c=r(8395),u=r(7799);t.exports=function(t,e){var r,l,f,p,h,d,y=t.target,m=t.global,g=t.stat;if(l=m?n:g?n[y]||a(y,{}):n[y]&&n[y].prototype,l)for(f in e){if(h=e[f],t.dontCallGetSet?(d=o(l,f),p=d&&d.value):p=l[f],r=u(m?f:y+(g?".":"#")+f,t.forced),!r&&void 0!==p){if(typeof h==typeof p)continue;c(h,p)}(t.sham||p&&p.sham)&&i(h,"sham",!0),s(l,f,h,t)}}},2639:function(t,e,r){"use strict";var n=r(8243),o=r(2175);t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(i){}}},2682:function(t,e,r){"use strict";var n=r(136),o=r(2787),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},2787:function(t,e,r){"use strict";var n=r(8243),o=0,i=Math.random(),s=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+i,36)}},2817:function(t,e,r){"use strict";var n=r(8567),o=r(492),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&s(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},2848:function(t,e,r){"use strict";var n=r(768),o=r(9727),i=r(2980),s="__core-js_shared__",a=t.exports=o[s]||i(s,{});(a.versions||(a.versions=[])).push({version:"3.43.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})},2964:function(t,e,r){"use strict";var n,o,i,s=r(1367),a=r(9727),c=r(4701),u=r(778),l=r(492),f=r(2848),p=r(2682),h=r(338),d="Object already initialized",y=a.TypeError,m=a.WeakMap,g=function(t){return i(t)?o(t):n(t,{})},v=function(t){return function(e){var r;if(!c(e)||(r=o(e)).type!==t)throw new y("Incompatible receiver, "+t+" required");return r}};if(s||f.state){var b=f.state||(f.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,n=function(t,e){if(b.has(t))throw new y(d);return e.facade=t,b.set(t,e),e},o=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var w=p("state");h[w]=!0,n=function(t,e){if(l(t,w))throw new y(d);return e.facade=t,u(t,w,e),e},o=function(t){return l(t,w)?t[w]:{}},i=function(t){return l(t,w)}}t.exports={set:n,get:o,has:i,enforce:g,getterFor:v}},2980:function(t,e,r){"use strict";var n=r(9727),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},2984:function(t,e,r){"use strict";var n=r(8243);t.exports=n({}.isPrototypeOf)},3194:function(t,e,r){"use strict";var n=r(9727),o=n.navigator,i=o&&o.userAgent;t.exports=i?String(i):""},3248:function(t){"use strict";t.exports=function(t){return null===t||void 0===t}},3473:function(t,e,r){"use strict";var n=r(7612);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},3861:function(t,e,r){"use strict";var n=r(8567),o=r(7612);t.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},4066:function(t,e,r){"use strict";var n=r(5022),o=r(8243),i=r(8411),s=r(4082),a=r(5008),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=s.f;return r?c(e,r(t)):e}},4082:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},4220:function(t,e,r){"use strict";var n=r(9999),o=r(1994),i=r(5999),s=r(8040),a=s("toStringTag"),c=Object,u="Arguments"===i(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(r){}};t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=l(e=c(t),a))?r:u?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},4314:function(t,e,r){"use strict";var n=r(3473),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},4390:function(t,e,r){"use strict";var n=r(8567),o=r(4314),i=r(5102),s=r(9945),a=r(14),c=r(7062),u=r(492),l=r(9248),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=c(e),l)try{return f(t,e)}catch(r){}if(u(t,e))return s(!o(i.f,t,e),t[e])}},4514:function(t){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},4701:function(t,e,r){"use strict";var n=r(1994);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},4754:function(t,e,r){"use strict";var n=r(8243),o=r(7612),i=r(5999),s=Object,a=n("".split);t.exports=o(function(){return!s("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?a(t,""):s(t)}:s},4919:function(t,e,r){"use strict";var n=r(1994),o=r(5884),i=r(8344),s=r(2980);t.exports=function(t,e,r,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:e;if(n(r)&&i(r,u,a),a.global)c?t[e]=r:s(e,r);else{try{a.unsafe?t[e]&&(c=!0):delete t[e]}catch(l){}c?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},5008:function(t,e,r){"use strict";var n=r(4701),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},5022:function(t,e,r){"use strict";var n=r(9727),o=r(1994),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t]):n[t]&&n[t][e]}},5102:function(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},5540:function(t,e,r){"use strict";var n=r(14),o=r(6113),i=r(8911),s=function(t){return function(e,r,s){var a=n(e),c=i(a);if(0===c)return!t&&-1;var u,l=o(s,c);if(t&&r!==r){while(c>l)if(u=a[l++],u!==u)return!0}else for(;c>l;l++)if((t||l in a)&&a[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},5884:function(t,e,r){"use strict";var n=r(8567),o=r(9248),i=r(3861),s=r(5008),a=r(7062),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",h="writable";e.f=n?i?function(t,e,r){if(s(t),e=a(e),s(r),"function"===typeof t&&"prototype"===e&&"value"in r&&h in r&&!r[h]){var n=l(t,e);n&&n[h]&&(t[e]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return u(t,e,r)}:u:function(t,e,r){if(s(t),e=a(e),s(r),o)try{return u(t,e,r)}catch(n){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},5999:function(t,e,r){"use strict";var n=r(8243),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},6113:function(t,e,r){"use strict";var n=r(8938),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},6608:function(t,e,r){"use strict";var n=r(9727),o=r(4701),i=n.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},6616:function(t){(function(e){t.exports=e()})(function(t){"use strict";var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(t,e){var r=t[0],n=t[1],o=t[2],i=t[3];r+=(n&o|~n&i)+e[0]-680876936|0,r=(r<<7|r>>>25)+n|0,i+=(r&n|~r&o)+e[1]-389564586|0,i=(i<<12|i>>>20)+r|0,o+=(i&r|~i&n)+e[2]+606105819|0,o=(o<<17|o>>>15)+i|0,n+=(o&i|~o&r)+e[3]-1044525330|0,n=(n<<22|n>>>10)+o|0,r+=(n&o|~n&i)+e[4]-176418897|0,r=(r<<7|r>>>25)+n|0,i+=(r&n|~r&o)+e[5]+1200080426|0,i=(i<<12|i>>>20)+r|0,o+=(i&r|~i&n)+e[6]-1473231341|0,o=(o<<17|o>>>15)+i|0,n+=(o&i|~o&r)+e[7]-45705983|0,n=(n<<22|n>>>10)+o|0,r+=(n&o|~n&i)+e[8]+1770035416|0,r=(r<<7|r>>>25)+n|0,i+=(r&n|~r&o)+e[9]-1958414417|0,i=(i<<12|i>>>20)+r|0,o+=(i&r|~i&n)+e[10]-42063|0,o=(o<<17|o>>>15)+i|0,n+=(o&i|~o&r)+e[11]-1990404162|0,n=(n<<22|n>>>10)+o|0,r+=(n&o|~n&i)+e[12]+1804603682|0,r=(r<<7|r>>>25)+n|0,i+=(r&n|~r&o)+e[13]-40341101|0,i=(i<<12|i>>>20)+r|0,o+=(i&r|~i&n)+e[14]-1502002290|0,o=(o<<17|o>>>15)+i|0,n+=(o&i|~o&r)+e[15]+1236535329|0,n=(n<<22|n>>>10)+o|0,r+=(n&i|o&~i)+e[1]-165796510|0,r=(r<<5|r>>>27)+n|0,i+=(r&o|n&~o)+e[6]-1069501632|0,i=(i<<9|i>>>23)+r|0,o+=(i&n|r&~n)+e[11]+643717713|0,o=(o<<14|o>>>18)+i|0,n+=(o&r|i&~r)+e[0]-373897302|0,n=(n<<20|n>>>12)+o|0,r+=(n&i|o&~i)+e[5]-701558691|0,r=(r<<5|r>>>27)+n|0,i+=(r&o|n&~o)+e[10]+38016083|0,i=(i<<9|i>>>23)+r|0,o+=(i&n|r&~n)+e[15]-660478335|0,o=(o<<14|o>>>18)+i|0,n+=(o&r|i&~r)+e[4]-405537848|0,n=(n<<20|n>>>12)+o|0,r+=(n&i|o&~i)+e[9]+568446438|0,r=(r<<5|r>>>27)+n|0,i+=(r&o|n&~o)+e[14]-1019803690|0,i=(i<<9|i>>>23)+r|0,o+=(i&n|r&~n)+e[3]-187363961|0,o=(o<<14|o>>>18)+i|0,n+=(o&r|i&~r)+e[8]+1163531501|0,n=(n<<20|n>>>12)+o|0,r+=(n&i|o&~i)+e[13]-1444681467|0,r=(r<<5|r>>>27)+n|0,i+=(r&o|n&~o)+e[2]-51403784|0,i=(i<<9|i>>>23)+r|0,o+=(i&n|r&~n)+e[7]+1735328473|0,o=(o<<14|o>>>18)+i|0,n+=(o&r|i&~r)+e[12]-1926607734|0,n=(n<<20|n>>>12)+o|0,r+=(n^o^i)+e[5]-378558|0,r=(r<<4|r>>>28)+n|0,i+=(r^n^o)+e[8]-2022574463|0,i=(i<<11|i>>>21)+r|0,o+=(i^r^n)+e[11]+1839030562|0,o=(o<<16|o>>>16)+i|0,n+=(o^i^r)+e[14]-35309556|0,n=(n<<23|n>>>9)+o|0,r+=(n^o^i)+e[1]-1530992060|0,r=(r<<4|r>>>28)+n|0,i+=(r^n^o)+e[4]+1272893353|0,i=(i<<11|i>>>21)+r|0,o+=(i^r^n)+e[7]-155497632|0,o=(o<<16|o>>>16)+i|0,n+=(o^i^r)+e[10]-1094730640|0,n=(n<<23|n>>>9)+o|0,r+=(n^o^i)+e[13]+681279174|0,r=(r<<4|r>>>28)+n|0,i+=(r^n^o)+e[0]-358537222|0,i=(i<<11|i>>>21)+r|0,o+=(i^r^n)+e[3]-722521979|0,o=(o<<16|o>>>16)+i|0,n+=(o^i^r)+e[6]+76029189|0,n=(n<<23|n>>>9)+o|0,r+=(n^o^i)+e[9]-640364487|0,r=(r<<4|r>>>28)+n|0,i+=(r^n^o)+e[12]-421815835|0,i=(i<<11|i>>>21)+r|0,o+=(i^r^n)+e[15]+530742520|0,o=(o<<16|o>>>16)+i|0,n+=(o^i^r)+e[2]-995338651|0,n=(n<<23|n>>>9)+o|0,r+=(o^(n|~i))+e[0]-198630844|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~o))+e[7]+1126891415|0,i=(i<<10|i>>>22)+r|0,o+=(r^(i|~n))+e[14]-1416354905|0,o=(o<<15|o>>>17)+i|0,n+=(i^(o|~r))+e[5]-57434055|0,n=(n<<21|n>>>11)+o|0,r+=(o^(n|~i))+e[12]+1700485571|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~o))+e[3]-1894986606|0,i=(i<<10|i>>>22)+r|0,o+=(r^(i|~n))+e[10]-1051523|0,o=(o<<15|o>>>17)+i|0,n+=(i^(o|~r))+e[1]-2054922799|0,n=(n<<21|n>>>11)+o|0,r+=(o^(n|~i))+e[8]+1873313359|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~o))+e[15]-30611744|0,i=(i<<10|i>>>22)+r|0,o+=(r^(i|~n))+e[6]-1560198380|0,o=(o<<15|o>>>17)+i|0,n+=(i^(o|~r))+e[13]+1309151649|0,n=(n<<21|n>>>11)+o|0,r+=(o^(n|~i))+e[4]-145523070|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~o))+e[11]-1120210379|0,i=(i<<10|i>>>22)+r|0,o+=(r^(i|~n))+e[2]+718787259|0,o=(o<<15|o>>>17)+i|0,n+=(i^(o|~r))+e[9]-343485551|0,n=(n<<21|n>>>11)+o|0,t[0]=r+t[0]|0,t[1]=n+t[1]|0,t[2]=o+t[2]|0,t[3]=i+t[3]|0}function n(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}function o(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return r}function i(t){var e,o,i,s,a,c,u=t.length,l=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=u;e+=64)r(l,n(t.substring(e-64,e)));for(t=t.substring(e-64),o=t.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<o;e+=1)i[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(r(l,i),e=0;e<16;e+=1)i[e]=0;return s=8*u,s=s.toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),c=parseInt(s[1],16)||0,i[14]=a,i[15]=c,r(l,i),l}function s(t){var e,n,i,s,a,c,u=t.length,l=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=u;e+=64)r(l,o(t.subarray(e-64,e)));for(t=e-64<u?t.subarray(e-64):new Uint8Array(0),n=t.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<n;e+=1)i[e>>2]|=t[e]<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(r(l,i),e=0;e<16;e+=1)i[e]=0;return s=8*u,s=s.toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),c=parseInt(s[1],16)||0,i[14]=a,i[15]=c,r(l,i),l}function a(t){var r,n="";for(r=0;r<4;r+=1)n+=e[t>>8*r+4&15]+e[t>>8*r&15];return n}function c(t){var e;for(e=0;e<t.length;e+=1)t[e]=a(t[e]);return t.join("")}function u(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function l(t,e){var r,n=t.length,o=new ArrayBuffer(n),i=new Uint8Array(o);for(r=0;r<n;r+=1)i[r]=t.charCodeAt(r);return e?i:o}function f(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function p(t,e,r){var n=new Uint8Array(t.byteLength+e.byteLength);return n.set(new Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),r?n:n.buffer}function h(t){var e,r=[],n=t.length;for(e=0;e<n-1;e+=2)r.push(parseInt(t.substr(e,2),16));return String.fromCharCode.apply(String,r)}function d(){this.reset()}return"5d41402abc4b2a76b9719d911017c592"!==c(i("hello"))&&function(t,e){var r=(65535&t)+(65535&e),n=(t>>16)+(e>>16)+(r>>16);return n<<16|65535&r},"undefined"===typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(t,e){return t=0|t||0,t<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(r,n){var o,i,s,a,c=this.byteLength,u=e(r,c),l=c;return n!==t&&(l=e(n,c)),u>l?new ArrayBuffer(0):(o=l-u,i=new ArrayBuffer(o),s=new Uint8Array(i),a=new Uint8Array(this,u,o),s.set(a),i)}}(),d.prototype.append=function(t){return this.appendBinary(u(t)),this},d.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var e,o=this._buff.length;for(e=64;e<=o;e+=64)r(this._hash,n(this._buff.substring(e-64,e)));return this._buff=this._buff.substring(e-64),this},d.prototype.end=function(t){var e,r,n=this._buff,o=n.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<o;e+=1)i[e>>2]|=n.charCodeAt(e)<<(e%4<<3);return this._finish(i,o),r=c(this._hash),t&&(r=h(r)),this.reset(),r},d.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},d.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},d.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},d.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},d.prototype._finish=function(t,e){var n,o,i,s=e;if(t[s>>2]|=128<<(s%4<<3),s>55)for(r(this._hash,t),s=0;s<16;s+=1)t[s]=0;n=8*this._length,n=n.toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(n[2],16),i=parseInt(n[1],16)||0,t[14]=o,t[15]=i,r(this._hash,t)},d.hash=function(t,e){return d.hashBinary(u(t),e)},d.hashBinary=function(t,e){var r=i(t),n=c(r);return e?h(n):n},d.ArrayBuffer=function(){this.reset()},d.ArrayBuffer.prototype.append=function(t){var e,n=p(this._buff.buffer,t,!0),i=n.length;for(this._length+=t.byteLength,e=64;e<=i;e+=64)r(this._hash,o(n.subarray(e-64,e)));return this._buff=e-64<i?new Uint8Array(n.buffer.slice(e-64)):new Uint8Array(0),this},d.ArrayBuffer.prototype.end=function(t){var e,r,n=this._buff,o=n.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<o;e+=1)i[e>>2]|=n[e]<<(e%4<<3);return this._finish(i,o),r=c(this._hash),t&&(r=h(r)),this.reset(),r},d.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},d.ArrayBuffer.prototype.getState=function(){var t=d.prototype.getState.call(this);return t.buff=f(t.buff),t},d.ArrayBuffer.prototype.setState=function(t){return t.buff=l(t.buff,!0),d.prototype.setState.call(this,t)},d.ArrayBuffer.prototype.destroy=d.prototype.destroy,d.ArrayBuffer.prototype._finish=d.prototype._finish,d.ArrayBuffer.hash=function(t,e){var r=s(new Uint8Array(t)),n=c(r);return e?h(n):n},d})},6671:function(t,e,r){"use strict";var n=r(3248),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},6710:function(t,e,r){"use strict";var n=r(7612);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},7062:function(t,e,r){"use strict";var n=r(8300),o=r(7450);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},7363:function(t,e,r){"use strict";var n=r(8344),o=r(5884);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}},7422:function(t,e,r){"use strict";var n,o,i=r(9727),s=r(3194),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(n=l.split("."),o=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(n=s.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/),n&&(o=+n[1]))),t.exports=o},7450:function(t,e,r){"use strict";var n=r(5022),o=r(1994),i=r(2984),s=r(9815),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,a(t))}},7467:function(t,e,r){"use strict";var n=r(8946),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},7612:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},7799:function(t,e,r){"use strict";var n=r(7612),o=r(1994),i=/#|\.prototype\./,s=function(t,e){var r=c[a(t)];return r===l||r!==u&&(o(e)?n(e):!!e)},a=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},7858:function(t,e,r){"use strict";var n=r(6671),o=Object;t.exports=function(t){return o(n(t))}},7925:function(t,e,r){"use strict";var n=r(8243),o=r(492),i=r(14),s=r(5540).indexOf,a=r(338),c=n([].push);t.exports=function(t,e){var r,n=i(t),u=0,l=[];for(r in n)!o(a,r)&&o(n,r)&&c(l,r);while(e.length>u)o(n,r=e[u++])&&(~s(l,r)||c(l,r));return l}},8040:function(t,e,r){"use strict";var n=r(9727),o=r(136),i=r(492),s=r(2787),a=r(8614),c=r(9815),u=n.Symbol,l=o("wks"),f=c?u["for"]||u:u&&u.withoutSetter||s;t.exports=function(t){return i(l,t)||(l[t]=a&&i(u,t)?u[t]:f("Symbol."+t)),l[t]}},8243:function(t,e,r){"use strict";var n=r(3473),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);t.exports=n?s:function(t){return function(){return i.apply(t,arguments)}}},8280:function(t,e,r){"use strict";var n=r(2639),o=r(4701),i=r(6671),s=r(7467);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=n(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(a){}return function(r,n){return i(r),s(n),o(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},8300:function(t,e,r){"use strict";var n=r(4314),o=r(4701),i=r(7450),s=r(1351),a=r(9989),c=r(8040),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,c=s(t,l);if(c){if(void 0===e&&(e="default"),r=n(c,t,e),!o(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},8312:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8344:function(t,e,r){"use strict";var n=r(8243),o=r(7612),i=r(1994),s=r(492),a=r(8567),c=r(2817).CONFIGURABLE,u=r(2135),l=r(2964),f=l.enforce,p=l.get,h=String,d=Object.defineProperty,y=n("".slice),m=n("".replace),g=n([].join),v=a&&!o(function(){return 8!==d(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=t.exports=function(t,e,r){"Symbol("===y(h(e),0,7)&&(e="["+m(h(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!s(t,"name")||c&&t.name!==e)&&(a?d(t,"name",{value:e,configurable:!0}):t.name=e),v&&r&&s(r,"arity")&&t.length!==r.arity&&d(t,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=f(t);return s(n,"source")||(n.source=g(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w(function(){return i(this)&&p(this).source||u(this)},"toString")},8395:function(t,e,r){"use strict";var n=r(492),o=r(4066),i=r(4390),s=r(5884);t.exports=function(t,e,r){for(var a=o(e),c=s.f,u=i.f,l=0;l<a.length;l++){var f=a[l];n(t,f)||r&&n(r,f)||c(t,f,u(e,f))}}},8411:function(t,e,r){"use strict";var n=r(7925),o=r(8312),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},8567:function(t,e,r){"use strict";var n=r(7612);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},8614:function(t,e,r){"use strict";var n=r(7422),o=r(7612),i=r(9727),s=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},8878:function(t,e,r){var n,o=function(){var t=String.fromCharCode,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",n={};function o(t,e){if(!n[t]){n[t]={};for(var r=0;r<t.length;r++)n[t][t.charAt(r)]=r}return n[t][e]}var i={compressToBase64:function(t){if(null==t)return"";var r=i._compress(t,6,function(t){return e.charAt(t)});switch(r.length%4){default:case 0:return r;case 1:return r+"===";case 2:return r+"==";case 3:return r+"="}},decompressFromBase64:function(t){return null==t?"":""==t?null:i._decompress(t.length,32,function(r){return o(e,t.charAt(r))})},compressToUTF16:function(e){return null==e?"":i._compress(e,15,function(e){return t(e+32)})+" "},decompressFromUTF16:function(t){return null==t?"":""==t?null:i._decompress(t.length,16384,function(e){return t.charCodeAt(e)-32})},compressToUint8Array:function(t){for(var e=i.compress(t),r=new Uint8Array(2*e.length),n=0,o=e.length;n<o;n++){var s=e.charCodeAt(n);r[2*n]=s>>>8,r[2*n+1]=s%256}return r},decompressFromUint8Array:function(e){if(null===e||void 0===e)return i.decompress(e);for(var r=new Array(e.length/2),n=0,o=r.length;n<o;n++)r[n]=256*e[2*n]+e[2*n+1];var s=[];return r.forEach(function(e){s.push(t(e))}),i.decompress(s.join(""))},compressToEncodedURIComponent:function(t){return null==t?"":i._compress(t,6,function(t){return r.charAt(t)})},decompressFromEncodedURIComponent:function(t){return null==t?"":""==t?null:(t=t.replace(/ /g,"+"),i._decompress(t.length,32,function(e){return o(r,t.charAt(e))}))},compress:function(e){return i._compress(e,16,function(e){return t(e)})},_compress:function(t,e,r){if(null==t)return"";var n,o,i,s={},a={},c="",u="",l="",f=2,p=3,h=2,d=[],y=0,m=0;for(i=0;i<t.length;i+=1)if(c=t.charAt(i),Object.prototype.hasOwnProperty.call(s,c)||(s[c]=p++,a[c]=!0),u=l+c,Object.prototype.hasOwnProperty.call(s,u))l=u;else{if(Object.prototype.hasOwnProperty.call(a,l)){if(l.charCodeAt(0)<256){for(n=0;n<h;n++)y<<=1,m==e-1?(m=0,d.push(r(y)),y=0):m++;for(o=l.charCodeAt(0),n=0;n<8;n++)y=y<<1|1&o,m==e-1?(m=0,d.push(r(y)),y=0):m++,o>>=1}else{for(o=1,n=0;n<h;n++)y=y<<1|o,m==e-1?(m=0,d.push(r(y)),y=0):m++,o=0;for(o=l.charCodeAt(0),n=0;n<16;n++)y=y<<1|1&o,m==e-1?(m=0,d.push(r(y)),y=0):m++,o>>=1}f--,0==f&&(f=Math.pow(2,h),h++),delete a[l]}else for(o=s[l],n=0;n<h;n++)y=y<<1|1&o,m==e-1?(m=0,d.push(r(y)),y=0):m++,o>>=1;f--,0==f&&(f=Math.pow(2,h),h++),s[u]=p++,l=String(c)}if(""!==l){if(Object.prototype.hasOwnProperty.call(a,l)){if(l.charCodeAt(0)<256){for(n=0;n<h;n++)y<<=1,m==e-1?(m=0,d.push(r(y)),y=0):m++;for(o=l.charCodeAt(0),n=0;n<8;n++)y=y<<1|1&o,m==e-1?(m=0,d.push(r(y)),y=0):m++,o>>=1}else{for(o=1,n=0;n<h;n++)y=y<<1|o,m==e-1?(m=0,d.push(r(y)),y=0):m++,o=0;for(o=l.charCodeAt(0),n=0;n<16;n++)y=y<<1|1&o,m==e-1?(m=0,d.push(r(y)),y=0):m++,o>>=1}f--,0==f&&(f=Math.pow(2,h),h++),delete a[l]}else for(o=s[l],n=0;n<h;n++)y=y<<1|1&o,m==e-1?(m=0,d.push(r(y)),y=0):m++,o>>=1;f--,0==f&&(f=Math.pow(2,h),h++)}for(o=2,n=0;n<h;n++)y=y<<1|1&o,m==e-1?(m=0,d.push(r(y)),y=0):m++,o>>=1;while(1){if(y<<=1,m==e-1){d.push(r(y));break}m++}return d.join("")},decompress:function(t){return null==t?"":""==t?null:i._decompress(t.length,32768,function(e){return t.charCodeAt(e)})},_decompress:function(e,r,n){var o,i,s,a,c,u,l,f=[],p=4,h=4,d=3,y="",m=[],g={val:n(0),position:r,index:1};for(o=0;o<3;o+=1)f[o]=o;s=0,c=Math.pow(2,2),u=1;while(u!=c)a=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=n(g.index++)),s|=(a>0?1:0)*u,u<<=1;switch(s){case 0:s=0,c=Math.pow(2,8),u=1;while(u!=c)a=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=n(g.index++)),s|=(a>0?1:0)*u,u<<=1;l=t(s);break;case 1:s=0,c=Math.pow(2,16),u=1;while(u!=c)a=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=n(g.index++)),s|=(a>0?1:0)*u,u<<=1;l=t(s);break;case 2:return""}f[3]=l,i=l,m.push(l);while(1){if(g.index>e)return"";s=0,c=Math.pow(2,d),u=1;while(u!=c)a=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=n(g.index++)),s|=(a>0?1:0)*u,u<<=1;switch(l=s){case 0:s=0,c=Math.pow(2,8),u=1;while(u!=c)a=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=n(g.index++)),s|=(a>0?1:0)*u,u<<=1;f[h++]=t(s),l=h-1,p--;break;case 1:s=0,c=Math.pow(2,16),u=1;while(u!=c)a=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=n(g.index++)),s|=(a>0?1:0)*u,u<<=1;f[h++]=t(s),l=h-1,p--;break;case 2:return m.join("")}if(0==p&&(p=Math.pow(2,d),d++),f[l])y=f[l];else{if(l!==h)return null;y=i+i.charAt(0)}m.push(y),f[h++]=i+y.charAt(0),p--,i=y,0==p&&(p=Math.pow(2,d),d++)}}};return i}();n=function(){return o}.call(e,r,e,t),void 0===n||(t.exports=n)},8911:function(t,e,r){"use strict";var n=r(849);t.exports=function(t){return n(t.length)}},8938:function(t,e,r){"use strict";var n=r(408);t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},8946:function(t,e,r){"use strict";var n=r(4701);t.exports=function(t){return n(t)||null===t}},9248:function(t,e,r){"use strict";var n=r(8567),o=r(7612),i=r(6608);t.exports=!n&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},9435:function(t,e,r){"use strict";var n=r(8300),o=TypeError;t.exports=function(t){var e=n(t,"number");if("number"==typeof e)throw new o("Can't convert number to bigint");return BigInt(e)}},9505:function(t,e,r){"use strict";var n=r(5999);t.exports=Array.isArray||function(t){return"Array"===n(t)}},9727:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9815:function(t,e,r){"use strict";var n=r(8614);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9876:function(t,e,r){"use strict";var n=r(492),o=r(1994),i=r(7858),s=r(2682),a=r(6710),c=s("IE_PROTO"),u=Object,l=u.prototype;t.exports=a?u.getPrototypeOf:function(t){var e=i(t);if(n(e,c))return e[c];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof u?l:null}},9925:function(t,e,r){"use strict";var n=r(8911),o=r(8938),i=RangeError;t.exports=function(t,e,r,s){var a=n(t),c=o(r),u=c<0?a+c:c;if(u>=a||u<0)throw new i("Incorrect index");for(var l=new e(a),f=0;f<a;f++)l[f]=f===u?s:t[f];return l}},9945:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},9989:function(t,e,r){"use strict";var n=r(4314),o=r(1994),i=r(4701),s=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&o(r=t.toString)&&!i(a=n(r,t)))return a;if(o(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&o(r=t.toString)&&!i(a=n(r,t)))return a;throw new s("Can't convert object to primitive value")}},9999:function(t,e,r){"use strict";var n=r(8040),o=n("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}!function(){r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,{a:e}),e}}(),function(){r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}}(),function(){r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){r.p=""}();var n={};return function(){"use strict";r.r(n),r.d(n,{default:function(){return Vr}});var t={};if(r.r(t),r.d(t,{hasBrowserEnv:function(){return Dt},hasStandardBrowserEnv:function(){return $t},hasStandardBrowserWebWorkerEnv:function(){return zt},navigator:function(){return qt},origin:function(){return Vt}}),"undefined"!==typeof window){var e=window.document.currentScript,o=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(r.p=o[1])}var i=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"modal-overlay",on:{click:function(e){return e.target!==e.currentTarget?null:t.handleMask.apply(null,arguments)}}},[e("div",{staticClass:"modal-content"},[e("div",{staticClass:"modal-header"},[t._v("AI抠图")]),e("div",{staticClass:"modal-body"},[e("div",{staticClass:"container",on:{click:function(t){t.stopPropagation()}}},[e("div",{staticClass:"title"},[t._v("*鼠标悬停并点击要抠图的部分,可智能识别要抠图的对象。抠图后,点击应用按钮")]),""==t.afterEditSrc?e("div",{staticClass:"workspace"},[e("img",{directives:[{name:"show",rawName:"v-show",value:t.path,expression:"path"}],ref:"imgRef",style:{width:t.w,height:t.h},attrs:{src:t.workspaceSrc,crossorigin:"anonymous"},on:{mousedown:t.handleMouseDown,mouseenter:function(e){t.canvasVisible=!0},mouseout:()=>{t.clicks.length||t.isEverything||(t.canvasVisible=!1)}}}),e("canvas",{directives:[{name:"show",rawName:"v-show",value:t.path&&t.canvasVisible,expression:"path && canvasVisible"}],ref:"canvasRef",attrs:{width:t.originalSize.w,height:t.originalSize.h}}),e("div",{style:{width:t.w,height:t.h},attrs:{id:"point-box"}})]):t._e(),""==t.afterEditSrc?e("div",{staticStyle:{display:"flex","justify-content":"center"}},[e("div",{staticClass:"button",on:{click:t.clearCanvas}},[t._v("重置框选")]),e("div",{staticClass:"button",on:{click:t.imageMatting}},[t._v("开始抠图")])]):t._e(),""!==t.afterEditSrc?e("div",[e("img",{style:{width:t.w},attrs:{src:t.afterEditSrc,crossorigin:"anonymous"}})]):t._e(),""!==t.afterEditSrc?e("div",{staticClass:"button",on:{click:t.handleOk}},[t._v("应用")]):t._e()]),e("transition",{attrs:{name:"fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"spin-mask"},[e("div",{staticClass:"spin-loading"},[e("span",{staticClass:"line-md--loading-alt-loop"}),e("div",[t._v("加载中...")])])])])],1)])])])},s=[];r(1201),r(218);function a(t,e){return function(){return t.apply(e,arguments)}}const{toString:c}=Object.prototype,{getPrototypeOf:u}=Object,{iterator:l,toStringTag:f}=Symbol,p=(t=>e=>{const r=c.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),h=t=>(t=t.toLowerCase(),e=>p(e)===t),d=t=>e=>typeof e===t,{isArray:y}=Array,m=d("undefined");function g(t){return null!==t&&!m(t)&&null!==t.constructor&&!m(t.constructor)&&S(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const v=h("ArrayBuffer");function b(t){let e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&v(t.buffer),e}const w=d("string"),S=d("function"),E=d("number"),O=t=>null!==t&&"object"===typeof t,x=t=>!0===t||!1===t,A=t=>{if("object"!==p(t))return!1;const e=u(t);return(null===e||e===Object.prototype||null===Object.getPrototypeOf(e))&&!(f in t)&&!(l in t)},R=h("Date"),_=h("File"),C=h("Blob"),T=h("FileList"),k=t=>O(t)&&S(t.pipe),j=t=>{let e;return t&&("function"===typeof FormData&&t instanceof FormData||S(t.append)&&("formdata"===(e=p(t))||"object"===e&&S(t.toString)&&"[object FormData]"===t.toString()))},P=h("URLSearchParams"),[U,I,F,B]=["ReadableStream","Request","Response","Headers"].map(h),N=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function M(t,e,{allOwnKeys:r=!1}={}){if(null===t||"undefined"===typeof t)return;let n,o;if("object"!==typeof t&&(t=[t]),y(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{const o=r?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let s;for(n=0;n<i;n++)s=o[n],e.call(null,t[s],s,t)}}function L(t,e){e=e.toLowerCase();const r=Object.keys(t);let n,o=r.length;while(o-- >0)if(n=r[o],e===n.toLowerCase())return n;return null}const D=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),q=t=>!m(t)&&t!==D;function $(){const{caseless:t}=q(this)&&this||{},e={},r=(r,n)=>{const o=t&&L(e,n)||n;A(e[o])&&A(r)?e[o]=$(e[o],r):A(r)?e[o]=$({},r):y(r)?e[o]=r.slice():e[o]=r};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&M(arguments[n],r);return e}const z=(t,e,r,{allOwnKeys:n}={})=>(M(e,(e,n)=>{r&&S(e)?t[n]=a(e,r):t[n]=e},{allOwnKeys:n}),t),V=t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),W=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},H=(t,e,r,n)=>{let o,i,s;const a={};if(e=e||{},null==t)return e;do{o=Object.getOwnPropertyNames(t),i=o.length;while(i-- >0)s=o[i],n&&!n(s,t,e)||a[s]||(e[s]=t[s],a[s]=!0);t=!1!==r&&u(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},J=(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},K=t=>{if(!t)return null;if(y(t))return t;let e=t.length;if(!E(e))return null;const r=new Array(e);while(e-- >0)r[e]=t[e];return r},G=(t=>e=>t&&e instanceof t)("undefined"!==typeof Uint8Array&&u(Uint8Array)),X=(t,e)=>{const r=t&&t[l],n=r.call(t);let o;while((o=n.next())&&!o.done){const r=o.value;e.call(t,r[0],r[1])}},Y=(t,e)=>{let r;const n=[];while(null!==(r=t.exec(e)))n.push(r);return n},Q=h("HTMLFormElement"),Z=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,r){return e.toUpperCase()+r}),tt=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),et=h("RegExp"),rt=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};M(r,(r,o)=>{let i;!1!==(i=e(r,o,t))&&(n[o]=i||r)}),Object.defineProperties(t,n)},nt=t=>{rt(t,(e,r)=>{if(S(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];S(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},ot=(t,e)=>{const r={},n=t=>{t.forEach(t=>{r[t]=!0})};return y(t)?n(t):n(String(t).split(e)),r},it=()=>{},st=(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e;function at(t){return!!(t&&S(t.append)&&"FormData"===t[f]&&t[l])}const ct=t=>{const e=new Array(10),r=(t,n)=>{if(O(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=y(t)?[]:{};return M(t,(t,e)=>{const i=r(t,n+1);!m(i)&&(o[e]=i)}),e[n]=void 0,o}}return t};return r(t,0)},ut=h("AsyncFunction"),lt=t=>t&&(O(t)||S(t))&&S(t.then)&&S(t.catch),ft=((t,e)=>t?setImmediate:e?((t,e)=>(D.addEventListener("message",({source:r,data:n})=>{r===D&&n===t&&e.length&&e.shift()()},!1),r=>{e.push(r),D.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))("function"===typeof setImmediate,S(D.postMessage)),pt="undefined"!==typeof queueMicrotask?queueMicrotask.bind(D):"undefined"!==typeof process&&process.nextTick||ft,ht=t=>null!=t&&S(t[l]);var dt={isArray:y,isArrayBuffer:v,isBuffer:g,isFormData:j,isArrayBufferView:b,isString:w,isNumber:E,isBoolean:x,isObject:O,isPlainObject:A,isReadableStream:U,isRequest:I,isResponse:F,isHeaders:B,isUndefined:m,isDate:R,isFile:_,isBlob:C,isRegExp:et,isFunction:S,isStream:k,isURLSearchParams:P,isTypedArray:G,isFileList:T,forEach:M,merge:$,extend:z,trim:N,stripBOM:V,inherits:W,toFlatObject:H,kindOf:p,kindOfTest:h,endsWith:J,toArray:K,forEachEntry:X,matchAll:Y,isHTMLForm:Q,hasOwnProperty:tt,hasOwnProp:tt,reduceDescriptors:rt,freezeMethods:nt,toObjectSet:ot,toCamelCase:Z,noop:it,toFiniteNumber:st,findKey:L,global:D,isContextDefined:q,isSpecCompliantForm:at,toJSONObject:ct,isAsyncFn:ut,isThenable:lt,setImmediate:ft,asap:pt,isIterable:ht};function yt(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}dt.inherits(yt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:dt.toJSONObject(this.config),code:this.code,status:this.status}}});const mt=yt.prototype,gt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{gt[t]={value:t}}),Object.defineProperties(yt,gt),Object.defineProperty(mt,"isAxiosError",{value:!0}),yt.from=(t,e,r,n,o,i)=>{const s=Object.create(mt);return dt.toFlatObject(t,s,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t),yt.call(s,t.message,e,r,n,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};var vt=yt,bt=null;function wt(t){return dt.isPlainObject(t)||dt.isArray(t)}function St(t){return dt.endsWith(t,"[]")?t.slice(0,-2):t}function Et(t,e,r){return t?t.concat(e).map(function(t,e){return t=St(t),!r&&e?"["+t+"]":t}).join(r?".":""):e}function Ot(t){return dt.isArray(t)&&!t.some(wt)}const xt=dt.toFlatObject(dt,{},null,function(t){return/^is[A-Z]/.test(t)});function At(t,e,r){if(!dt.isObject(t))throw new TypeError("target must be an object");e=e||new(bt||FormData),r=dt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!dt.isUndefined(e[t])});const n=r.metaTokens,o=r.visitor||l,i=r.dots,s=r.indexes,a=r.Blob||"undefined"!==typeof Blob&&Blob,c=a&&dt.isSpecCompliantForm(e);if(!dt.isFunction(o))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(dt.isDate(t))return t.toISOString();if(dt.isBoolean(t))return t.toString();if(!c&&dt.isBlob(t))throw new vt("Blob is not supported. Use a Buffer instead.");return dt.isArrayBuffer(t)||dt.isTypedArray(t)?c&&"function"===typeof Blob?new Blob([t]):Buffer.from(t):t}function l(t,r,o){let a=t;if(t&&!o&&"object"===typeof t)if(dt.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(dt.isArray(t)&&Ot(t)||(dt.isFileList(t)||dt.endsWith(r,"[]"))&&(a=dt.toArray(t)))return r=St(r),a.forEach(function(t,n){!dt.isUndefined(t)&&null!==t&&e.append(!0===s?Et([r],n,i):null===s?r:r+"[]",u(t))}),!1;return!!wt(t)||(e.append(Et(o,r,i),u(t)),!1)}const f=[],p=Object.assign(xt,{defaultVisitor:l,convertValue:u,isVisitable:wt});function h(t,r){if(!dt.isUndefined(t)){if(-1!==f.indexOf(t))throw Error("Circular reference detected in "+r.join("."));f.push(t),dt.forEach(t,function(t,n){const i=!(dt.isUndefined(t)||null===t)&&o.call(e,t,dt.isString(n)?n.trim():n,r,p);!0===i&&h(t,r?r.concat(n):[n])}),f.pop()}}if(!dt.isObject(t))throw new TypeError("data must be an object");return h(t),e}var Rt=At;function _t(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function Ct(t,e){this._pairs=[],t&&Rt(t,this,e)}const Tt=Ct.prototype;Tt.append=function(t,e){this._pairs.push([t,e])},Tt.toString=function(t){const e=t?function(e){return t.call(this,e,_t)}:_t;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};var kt=Ct;function jt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Pt(t,e,r){if(!e)return t;const n=r&&r.encode||jt;dt.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(i=o?o(e,r):dt.isURLSearchParams(e)?e.toString():new kt(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}class Ut{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){dt.forEach(this.handlers,function(e){null!==e&&t(e)})}}var It=Ut,Ft={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bt="undefined"!==typeof URLSearchParams?URLSearchParams:kt,Nt="undefined"!==typeof FormData?FormData:null,Mt="undefined"!==typeof Blob?Blob:null,Lt={isBrowser:!0,classes:{URLSearchParams:Bt,FormData:Nt,Blob:Mt},protocols:["http","https","file","blob","url","data"]};const Dt="undefined"!==typeof window&&"undefined"!==typeof document,qt="object"===typeof navigator&&navigator||void 0,$t=Dt&&(!qt||["ReactNative","NativeScript","NS"].indexOf(qt.product)<0),zt=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Vt=Dt&&window.location.href||"http://localhost";var Wt={...t,...Lt};function Ht(t,e){return Rt(t,new Wt.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return Wt.isNode&&dt.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}function Jt(t){return dt.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}function Kt(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],e[i]=t[i];return e}function Gt(t){function e(t,r,n,o){let i=t[o++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),a=o>=t.length;if(i=!i&&dt.isArray(n)?n.length:i,a)return dt.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&dt.isObject(n[i])||(n[i]=[]);const c=e(t,r,n[i],o);return c&&dt.isArray(n[i])&&(n[i]=Kt(n[i])),!s}if(dt.isFormData(t)&&dt.isFunction(t.entries)){const r={};return dt.forEachEntry(t,(t,n)=>{e(Jt(t),n,r,0)}),r}return null}var Xt=Gt;function Yt(t,e,r){if(dt.isString(t))try{return(e||JSON.parse)(t),dt.trim(t)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(t)}const Qt={transitional:Ft,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,o=dt.isObject(t);o&&dt.isHTMLForm(t)&&(t=new FormData(t));const i=dt.isFormData(t);if(i)return n?JSON.stringify(Xt(t)):t;if(dt.isArrayBuffer(t)||dt.isBuffer(t)||dt.isStream(t)||dt.isFile(t)||dt.isBlob(t)||dt.isReadableStream(t))return t;if(dt.isArrayBufferView(t))return t.buffer;if(dt.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ht(t,this.formSerializer).toString();if((s=dt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Rt(s?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||n?(e.setContentType("application/json",!1),Yt(t)):t}],transformResponse:[function(t){const e=this.transitional||Qt.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(dt.isResponse(t)||dt.isReadableStream(t))return t;if(t&&dt.isString(t)&&(r&&!this.responseType||n)){const r=e&&e.silentJSONParsing,i=!r&&n;try{return JSON.parse(t)}catch(o){if(i){if("SyntaxError"===o.name)throw vt.from(o,vt.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wt.classes.FormData,Blob:Wt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};dt.forEach(["delete","get","head","post","put","patch"],t=>{Qt.headers[t]={}});var Zt=Qt;const te=dt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var ee=t=>{const e={};let r,n,o;return t&&t.split("\n").forEach(function(t){o=t.indexOf(":"),r=t.substring(0,o).trim().toLowerCase(),n=t.substring(o+1).trim(),!r||e[r]&&te[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e};const re=Symbol("internals");function ne(t){return t&&String(t).trim().toLowerCase()}function oe(t){return!1===t||null==t?t:dt.isArray(t)?t.map(oe):String(t)}function ie(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;while(n=r.exec(t))e[n[1]]=n[2];return e}const se=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ae(t,e,r,n,o){return dt.isFunction(n)?n.call(this,e,r):(o&&(e=r),dt.isString(e)?dt.isString(n)?-1!==e.indexOf(n):dt.isRegExp(n)?n.test(e):void 0:void 0)}function ce(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}function ue(t,e){const r=dt.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})})}class le{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function o(t,e,r){const o=ne(e);if(!o)throw new Error("header name must be a non-empty string");const i=dt.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=oe(t))}const i=(t,e)=>dt.forEach(t,(t,r)=>o(t,r,e));if(dt.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(dt.isString(t)&&(t=t.trim())&&!se(t))i(ee(t),e);else if(dt.isObject(t)&&dt.isIterable(t)){let r,n,o={};for(const e of t){if(!dt.isArray(e))throw TypeError("Object iterator must return a key-value pair");o[n=e[0]]=(r=o[n])?dt.isArray(r)?[...r,e[1]]:[r,e[1]]:e[1]}i(o,e)}else null!=t&&o(e,t,r);return this}get(t,e){if(t=ne(t),t){const r=dt.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return ie(t);if(dt.isFunction(e))return e.call(this,t,r);if(dt.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=ne(t),t){const r=dt.findKey(this,t);return!(!r||void 0===this[r]||e&&!ae(this,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function o(t){if(t=ne(t),t){const o=dt.findKey(r,t);!o||e&&!ae(r,r[o],o,e)||(delete r[o],n=!0)}}return dt.isArray(t)?t.forEach(o):o(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;while(r--){const o=e[r];t&&!ae(this,this[o],o,t,!0)||(delete this[o],n=!0)}return n}normalize(t){const e=this,r={};return dt.forEach(this,(n,o)=>{const i=dt.findKey(r,o);if(i)return e[i]=oe(n),void delete e[o];const s=t?ce(o):String(o).trim();s!==o&&delete e[o],e[s]=oe(n),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return dt.forEach(this,(r,n)=>{null!=r&&!1!==r&&(e[n]=t&&dt.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach(t=>r.set(t)),r}static accessor(t){const e=this[re]=this[re]={accessors:{}},r=e.accessors,n=this.prototype;function o(t){const e=ne(t);r[e]||(ue(n,t),r[e]=!0)}return dt.isArray(t)?t.forEach(o):o(t),this}}le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),dt.reduceDescriptors(le.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[r]=t}}}),dt.freezeMethods(le);var fe=le;function pe(t,e){const r=this||Zt,n=e||r,o=fe.from(n.headers);let i=n.data;return dt.forEach(t,function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function he(t){return!(!t||!t.__CANCEL__)}function de(t,e,r){vt.call(this,null==t?"canceled":t,vt.ERR_CANCELED,e,r),this.name="CanceledError"}dt.inherits(de,vt,{__CANCEL__:!0});var ye=de;function me(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new vt("Request failed with status code "+r.status,[vt.ERR_BAD_REQUEST,vt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}function ge(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ve(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o,i=0,s=0;return e=void 0!==e?e:1e3,function(a){const c=Date.now(),u=n[s];o||(o=c),r[i]=a,n[i]=c;let l=s,f=0;while(l!==i)f+=r[l++],l%=t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),c-o<e)return;const p=u&&c-u;return p?Math.round(1e3*f/p):void 0}}var be=ve;function we(t,e){let r,n,o=0,i=1e3/e;const s=(e,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),t.apply(null,e)},a=(...t)=>{const e=Date.now(),a=e-o;a>=i?s(t,e):(r=t,n||(n=setTimeout(()=>{n=null,s(r)},i-a)))},c=()=>r&&s(r);return[a,c]}var Se=we;const Ee=(t,e,r=3)=>{let n=0;const o=be(50,250);return Se(r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,a=i-n,c=o(a),u=i<=s;n=i;const l={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&u?(s-i)/c:void 0,event:r,lengthComputable:null!=s,[e?"download":"upload"]:!0};t(l)},r)},Oe=(t,e)=>{const r=null!=t;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},xe=t=>(...e)=>dt.asap(()=>t(...e));var Ae=Wt.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,Wt.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(Wt.origin),Wt.navigator&&/(msie|trident)/i.test(Wt.navigator.userAgent)):()=>!0,Re=Wt.hasStandardBrowserEnv?{write(t,e,r,n,o,i){const s=[t+"="+encodeURIComponent(e)];dt.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),dt.isString(n)&&s.push("path="+n),dt.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function _e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ce(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Te(t,e,r){let n=!_e(e);return t&&(n||0==r)?Ce(t,e):e}const ke=t=>t instanceof fe?{...t}:t;function je(t,e){e=e||{};const r={};function n(t,e,r,n){return dt.isPlainObject(t)&&dt.isPlainObject(e)?dt.merge.call({caseless:n},t,e):dt.isPlainObject(e)?dt.merge({},e):dt.isArray(e)?e.slice():e}function o(t,e,r,o){return dt.isUndefined(e)?dt.isUndefined(t)?void 0:n(void 0,t,r,o):n(t,e,r,o)}function i(t,e){if(!dt.isUndefined(e))return n(void 0,e)}function s(t,e){return dt.isUndefined(e)?dt.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(r,o,i){return i in e?n(r,o):i in t?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,e,r)=>o(ke(t),ke(e),r,!0)};return dt.forEach(Object.keys(Object.assign({},t,e)),function(n){const i=c[n]||o,s=i(t[n],e[n],n);dt.isUndefined(s)&&i!==a||(r[n]=s)}),r}var Pe=t=>{const e=je({},t);let r,{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:c}=e;if(e.headers=a=fe.from(a),e.url=Pt(Te(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),dt.isFormData(n))if(Wt.hasStandardBrowserEnv||Wt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(r=a.getContentType())){const[t,...e]=r?r.split(";").map(t=>t.trim()).filter(Boolean):[];a.setContentType([t||"multipart/form-data",...e].join("; "))}if(Wt.hasStandardBrowserEnv&&(o&&dt.isFunction(o)&&(o=o(e)),o||!1!==o&&Ae(e.url))){const t=i&&s&&Re.read(s);t&&a.set(i,t)}return e};const Ue="undefined"!==typeof XMLHttpRequest;var Ie=Ue&&function(t){return new Promise(function(e,r){const n=Pe(t);let o=n.data;const i=fe.from(n.headers).normalize();let s,a,c,u,l,{responseType:f,onUploadProgress:p,onDownloadProgress:h}=n;function d(){u&&u(),l&&l(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let y=new XMLHttpRequest;function m(){if(!y)return;const n=fe.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),o=f&&"text"!==f&&"json"!==f?y.response:y.responseText,i={data:o,status:y.status,statusText:y.statusText,headers:n,config:t,request:y};me(function(t){e(t),d()},function(t){r(t),d()},i),y=null}y.open(n.method.toUpperCase(),n.url,!0),y.timeout=n.timeout,"onloadend"in y?y.onloadend=m:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(m)},y.onabort=function(){y&&(r(new vt("Request aborted",vt.ECONNABORTED,t,y)),y=null)},y.onerror=function(){r(new vt("Network Error",vt.ERR_NETWORK,t,y)),y=null},y.ontimeout=function(){let e=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||Ft;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),r(new vt(e,o.clarifyTimeoutError?vt.ETIMEDOUT:vt.ECONNABORTED,t,y)),y=null},void 0===o&&i.setContentType(null),"setRequestHeader"in y&&dt.forEach(i.toJSON(),function(t,e){y.setRequestHeader(e,t)}),dt.isUndefined(n.withCredentials)||(y.withCredentials=!!n.withCredentials),f&&"json"!==f&&(y.responseType=n.responseType),h&&([c,l]=Ee(h,!0),y.addEventListener("progress",c)),p&&y.upload&&([a,u]=Ee(p),y.upload.addEventListener("progress",a),y.upload.addEventListener("loadend",u)),(n.cancelToken||n.signal)&&(s=e=>{y&&(r(!e||e.type?new ye(null,t,y):e),y.abort(),y=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const g=ge(n.url);g&&-1===Wt.protocols.indexOf(g)?r(new vt("Unsupported protocol "+g+":",vt.ERR_BAD_REQUEST,t)):y.send(o||null)})};const Fe=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let r,n=new AbortController;const o=function(t){if(!r){r=!0,s();const e=t instanceof Error?t:this.reason;n.abort(e instanceof vt?e:new ye(e instanceof Error?e.message:e))}};let i=e&&setTimeout(()=>{i=null,o(new vt(`timeout ${e} of ms exceeded`,vt.ETIMEDOUT))},e);const s=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)}),t=null)};t.forEach(t=>t.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=()=>dt.asap(s),a}};var Be=Fe;const Ne=function*(t,e){let r=t.byteLength;if(!e||r<e)return void(yield t);let n,o=0;while(o<r)n=o+e,yield t.slice(o,n),o=n},Me=async function*(t,e){for await(const r of Le(t))yield*Ne(r,e)},Le=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)break;yield r}}finally{await e.cancel()}},De=(t,e,r,n)=>{const o=Me(t,e);let i,s=0,a=t=>{i||(i=!0,n&&n(t))};return new ReadableStream({async pull(t){try{const{done:e,value:n}=await o.next();if(e)return a(),void t.close();let i=n.byteLength;if(r){let t=s+=i;r(t)}t.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel(t){return a(t),o.return()}},{highWaterMark:2})},qe="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,$e=qe&&"function"===typeof ReadableStream,ze=qe&&("function"===typeof TextEncoder?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Ve=(t,...e)=>{try{return!!t(...e)}catch(r){return!1}},We=$e&&Ve(()=>{let t=!1;const e=new Request(Wt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),He=65536,Je=$e&&Ve(()=>dt.isReadableStream(new Response("").body)),Ke={stream:Je&&(t=>t.body)};qe&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Ke[e]&&(Ke[e]=dt.isFunction(t[e])?t=>t[e]():(t,r)=>{throw new vt(`Response type '${e}' is not supported`,vt.ERR_NOT_SUPPORT,r)})})})(new Response);const Ge=async t=>{if(null==t)return 0;if(dt.isBlob(t))return t.size;if(dt.isSpecCompliantForm(t)){const e=new Request(Wt.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return dt.isArrayBufferView(t)||dt.isArrayBuffer(t)?t.byteLength:(dt.isURLSearchParams(t)&&(t+=""),dt.isString(t)?(await ze(t)).byteLength:void 0)},Xe=async(t,e)=>{const r=dt.toFiniteNumber(t.getContentLength());return null==r?Ge(e):r};var Ye=qe&&(async t=>{let{url:e,method:r,data:n,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:p}=Pe(t);u=u?(u+"").toLowerCase():"text";let h,d=Be([o,i&&i.toAbortSignal()],s);const y=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let m;try{if(c&&We&&"get"!==r&&"head"!==r&&0!==(m=await Xe(l,n))){let t,r=new Request(e,{method:"POST",body:n,duplex:"half"});if(dt.isFormData(n)&&(t=r.headers.get("content-type"))&&l.setContentType(t),r.body){const[t,e]=Oe(m,Ee(xe(c)));n=De(r.body,He,t,e)}}dt.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;h=new Request(e,{...p,signal:d,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:o?f:void 0});let i=await fetch(h,p);const s=Je&&("stream"===u||"response"===u);if(Je&&(a||s&&y)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=i[e]});const e=dt.toFiniteNumber(i.headers.get("content-length")),[r,n]=a&&Oe(e,Ee(xe(a),!0))||[];i=new Response(De(i.body,He,r,()=>{n&&n(),y&&y()}),t)}u=u||"text";let g=await Ke[dt.findKey(Ke,u)||"text"](i,t);return!s&&y&&y(),await new Promise((e,r)=>{me(e,r,{data:g,headers:fe.from(i.headers),status:i.status,statusText:i.statusText,config:t,request:h})})}catch(g){if(y&&y(),g&&"TypeError"===g.name&&/Load failed|fetch/i.test(g.message))throw Object.assign(new vt("Network Error",vt.ERR_NETWORK,t,h),{cause:g.cause||g});throw vt.from(g,g&&g.code,t,h)}});const Qe={http:bt,xhr:Ie,fetch:Ye};dt.forEach(Qe,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(r){}Object.defineProperty(t,"adapterName",{value:e})}});const Ze=t=>`- ${t}`,tr=t=>dt.isFunction(t)||null===t||!1===t;var er={getAdapter:t=>{t=dt.isArray(t)?t:[t];const{length:e}=t;let r,n;const o={};for(let i=0;i<e;i++){let e;if(r=t[i],n=r,!tr(r)&&(n=Qe[(e=String(r)).toLowerCase()],void 0===n))throw new vt(`Unknown adapter '${e}'`);if(n)break;o[e||"#"+i]=n}if(!n){const t=Object.entries(o).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));let r=e?t.length>1?"since :\n"+t.map(Ze).join("\n"):" "+Ze(t[0]):"as no adapter specified";throw new vt("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n},adapters:Qe};function rr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ye(null,t)}function nr(t){rr(t),t.headers=fe.from(t.headers),t.data=pe.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);const e=er.getAdapter(t.adapter||Zt.adapter);return e(t).then(function(e){return rr(t),e.data=pe.call(t,t.transformResponse,e),e.headers=fe.from(e.headers),e},function(e){return he(e)||(rr(t),e&&e.response&&(e.response.data=pe.call(t,t.transformResponse,e.response),e.response.headers=fe.from(e.response.headers))),Promise.reject(e)})}const or="1.10.0",ir={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ir[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const sr={};function ar(t,e,r){if("object"!==typeof t)throw new vt("options must be an object",vt.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;while(o-- >0){const i=n[o],s=e[i];if(s){const e=t[i],r=void 0===e||s(e,i,t);if(!0!==r)throw new vt("option "+i+" must be "+r,vt.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new vt("Unknown option "+i,vt.ERR_BAD_OPTION)}}ir.transitional=function(t,e,r){function n(t,e){return"[Axios v"+or+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new vt(n(o," has been removed"+(e?" in "+e:"")),vt.ERR_DEPRECATED);return e&&!sr[o]&&(sr[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}},ir.spelling=function(t){return(e,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};var cr={assertOptions:ar,validators:ir};const ur=cr.validators;class lr{constructor(t){this.defaults=t||{},this.interceptors={request:new It,response:new It}}async request(t,e){try{return await this._request(t,e)}catch(r){if(r instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const e=t.stack?t.stack.replace(/^.+\n/,""):"";try{r.stack?e&&!String(r.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+e):r.stack=e}catch(n){}}throw r}}_request(t,e){"string"===typeof t?(e=e||{},e.url=t):e=t||{},e=je(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:o}=e;void 0!==r&&cr.assertOptions(r,{silentJSONParsing:ur.transitional(ur.boolean),forcedJSONParsing:ur.transitional(ur.boolean),clarifyTimeoutError:ur.transitional(ur.boolean)},!1),null!=n&&(dt.isFunction(n)?e.paramsSerializer={serialize:n}:cr.assertOptions(n,{encode:ur.function,serialize:ur.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),cr.assertOptions(e,{baseUrl:ur.spelling("baseURL"),withXsrfToken:ur.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&dt.merge(o.common,o[e.method]);o&&dt.forEach(["delete","get","head","post","put","patch","common"],t=>{delete o[t]}),e.headers=fe.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach(function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))});const c=[];let u;this.interceptors.response.forEach(function(t){c.push(t.fulfilled,t.rejected)});let l,f=0;if(!a){const t=[nr.bind(this),void 0];t.unshift.apply(t,s),t.push.apply(t,c),l=t.length,u=Promise.resolve(e);while(f<l)u=u.then(t[f++],t[f++]);return u}l=s.length;let p=e;f=0;while(f<l){const t=s[f++],e=s[f++];try{p=t(p)}catch(h){e.call(this,h);break}}try{u=nr.call(this,p)}catch(h){return Promise.reject(h)}f=0,l=c.length;while(f<l)u=u.then(c[f++],c[f++]);return u}getUri(t){t=je(this.defaults,t);const e=Te(t.baseURL,t.url,t.allowAbsoluteUrls);return Pt(e,t.params,t.paramsSerializer)}}dt.forEach(["delete","get","head","options"],function(t){lr.prototype[t]=function(e,r){return this.request(je(r||{},{method:t,url:e,data:(r||{}).data}))}}),dt.forEach(["post","put","patch"],function(t){function e(e){return function(r,n,o){return this.request(je(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}lr.prototype[t]=e(),lr.prototype[t+"Form"]=e(!0)});var fr=lr;class pr{constructor(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(t){e=t});const r=this;this.promise.then(t=>{if(!r._listeners)return;let e=r._listeners.length;while(e-- >0)r._listeners[e](t);r._listeners=null}),this.promise.then=t=>{let e;const n=new Promise(t=>{r.subscribe(t),e=t}).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t(function(t,n,o){r.reason||(r.reason=new ye(t,n,o),e(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;const e=new pr(function(e){t=e});return{token:e,cancel:t}}}var hr=pr;function dr(t){return function(e){return t.apply(null,e)}}function yr(t){return dt.isObject(t)&&!0===t.isAxiosError}const mr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mr).forEach(([t,e])=>{mr[e]=t});var gr=mr;function vr(t){const e=new fr(t),r=a(fr.prototype.request,e);return dt.extend(r,fr.prototype,e,{allOwnKeys:!0}),dt.extend(r,e,null,{allOwnKeys:!0}),r.create=function(e){return vr(je(t,e))},r}const br=vr(Zt);br.Axios=fr,br.CanceledError=ye,br.CancelToken=hr,br.isCancel=he,br.VERSION=or,br.toFormData=Rt,br.AxiosError=vt,br.Cancel=br.CanceledError,br.all=function(t){return Promise.all(t)},br.spread=dr,br.isAxiosError=yr,br.mergeConfig=je,br.AxiosHeaders=fe,br.formToJSON=t=>Xt(dt.isHTMLForm(t)?new FormData(t):t),br.getAdapter=er.getAdapter,br.HttpStatusCode=gr,br.default=br;var wr=br,Sr=r(8878),Er=r.n(Sr);const Or={uploadImg:"https://apollo.51kandianshi.com/imageaicutout/sam/api/upload",fakeSegment:"https://apollo.51kandianshi.com/imageaicutout/sam/api/segment",API_IMG:"https://outerh5.51kandianshi.com/staticsaicoutout"};var xr={name:"AIImageMatting",props:{visible:{type:Boolean,default:!1},src:{type:String,default:""}},data(){return{workspaceSrc:"",path:"",loading:!1,imgRef:null,canvasRef:null,ctx:null,originalSize:{w:0,h:0},w:"0",h:"0",left:0,scale:1,clicks:[],lock:!1,canvasVisible:!0,isEverything:!1,afterEditSrc:""}},watch:{visible:{handler:function(t){t&&(this.ctx=this.$refs.canvasRef.getContext("2d"),this.initImage())},deep:!1,immediate:!1}},mounted(){},methods:{close(){this.$emit("update:visible",!1)},handleMask(){this.visible&&this.close()},initImage(){const t=this;fetch(this.src).then(t=>t.blob()).then(t=>wr.post(Or.uploadImg,{file:new File([t],"image.jpg",{type:"image/jpeg"})},{headers:{"Content-Type":"multipart/form-data"}})).then(e=>{const r=new Image;r.src=`${Or.API_IMG}/sam/api/upload/${e.data.filename}`,t.workspaceSrc=`${Or.API_IMG}/sam/api/upload/${e.data.filename}`,t.path=e.data.path,r.onload=()=>{let e,n,o=r.width,i=r.height,s=800,a=600,c=o/i;c*a>s?(e=s,n=s/c):(n=a,e=c*a),t.originalSize={w:o,h:i},e=parseInt(e),n=parseInt(n),t.w=e+"px",t.h=n+"px",t.left=(s-e)/2,t.scale=e/o,t.$refs.imgRef.addEventListener("contextmenu",t=>t.preventDefault()),t.$refs.imgRef.addEventListener("mousemove",t.throttle(t.handleMouseMove,150)),t.$refs.canvasRef.style.transform=`scale(${t.scale})`}}).catch(t=>{console.error(t)})},handleMouseMove(t){if(this.isEverything)return;if(0!==this.clicks.length)return;if(this.lock)return;this.lock=!0;let e=this.getClick(t);requestIdleCallback(()=>{this.getMask([e])})},handleMouseDown(t){if(t.preventDefault(),t.stopPropagation(),1===t.button)return;if(this.isEverything)return;if(this.lock)return;this.lock=!0;let e=this.getClick(t);this.placePoint(t.offsetX,t.offsetY,e.clickType),this.clicks.push(e),requestIdleCallback(()=>{this.getMask()})},getClick(t){let e={x:t.offsetX,y:t.offsetY};const r=this.scale;return e.x/=r,e.y/=r,3===t.which?e.clickType=0:1!==t.which&&0!==t.which||(e.clickType=1),e},placePoint(t,e,r){let n=document.getElementById("point-box"),o=document.createElement("div");o.className="segment-point"+(r?"":" negative"),o.style=`position: absolute;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background-color: ${r?"#409EFF":"#F56C6C "};\n left: ${t-5}px;\n top: ${e-5}px`,o.id="point-"+this.clicks.length,n.appendChild(o)},getMask(t){null==t&&(t=this.clicks);const e={path:this.path,clicks:t};console.log(e),wr.post(Or.fakeSegment,e).then(t=>{const e=t.data.shape,r=Er().decompressFromEncodedURIComponent(t.data.mask),n=this.rleFrString(r);this.drawCanvas(e,this.decodeRleCounts(e,n)),this.lock=!1}).catch(t=>{console.error(t),this.lock=!1})},drawCanvas(t,e){let r=t[0],n=t[1],o=this.ctx.getImageData(0,0,n,r),i=o.data,s=0;for(let a=0;a<n;a++)for(let t=0;t<r;t++)0===e[s++]?(i[0+4*(n*t+a)]=40,i[1+4*(n*t+a)]=40,i[2+4*(n*t+a)]=40,i[3+4*(n*t+a)]=190):i[3+4*(n*t+a)]=0;this.ctx.putImageData(o,0,0)},removePoint(t){const e="point-"+t;let r=document.getElementById(e);null!=r&&r.remove()},clearCanvas(){for(let t=0;t<this.clicks.length;t++)this.removePoint(t);this.clicks=[],this.isEverything=!1,this.ctx.clearRect(0,0,this.canvasRef.width,this.canvasRef.height)},imageMatting(){this.lock||0===this.clicks.length||this.cutOutImage(this.originalSize,this.$refs.imgRef,this.$refs.canvasRef,t=>{this.afterEditSrc=URL.createObjectURL(t)})},handleOk(){this.$emit("update:visible",!1,this.afterEditSrc)},throttle(t,e){let r=null;return function(){const n=this,o=arguments;r||(r=setTimeout(()=>{t.apply(n,o),clearTimeout(r),r=null},e))}},rleFrString(t){let e=[],r=0;while(r<t.length){let n=0,o=0,i=1;while(i){let e=t.charCodeAt(r)-48;n|=(31&e)<<5*o,i=32&e,r++,o++,!i&&16&e&&(n|=-1<<5*o)}e.length>2&&(n+=e[e.length-2]),e.push(n)}return e},decodeRleCounts(t,e){let r=new Uint8Array(t[0]*t[1]),n=0,o=0;for(let i of e){while(i-- >0)r[n++]=o;o=(o+1)%2}return r},cutOutImage({w:t,h:e},r,n,o){const i=document.createElement("canvas"),s=i.getContext("2d",{willReadFrequently:!0}),a=n.getContext("2d",{willReadFrequently:!0});i.width=t,i.height=e,s.drawImage(r,0,0,t,e);const c=a.getImageData(0,0,t,e).data,u=s.getImageData(0,0,t,e),l=u.data;for(let S=0;S<c.length;S+=4){const t=c[S+3];0!==t&&(l[S+3]=0)}let f=t,p=e,h=0,d=0;for(let S=0;S<e;S++)for(let e=0;e<t;e++){const r=l[4*(S*t+e)+3];0!==r&&(f=Math.min(f,e),p=Math.min(p,S),h=Math.max(h,e),d=Math.max(d,S))}const y=h-f+1,m=d-p+1,g=f,v=p;s.putImageData(u,0,0);const b=document.createElement("canvas"),w=b.getContext("2d");b.width=y,b.height=m,w.drawImage(i,g,v,y,m,0,0,y,m),b.toBlob(t=>{o&&o(t)},"image/png")}}},Ar=xr;function Rr(t,e,r,n,o,i,s,a){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):o&&(c=a?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}var _r=Rr(Ar,i,s,!1,null,"795d171d",null),Cr=_r.exports,Tr=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"fade"}},[t.visible?e("div",{staticClass:"modal-overlay",on:{click:function(e){return e.target!==e.currentTarget?null:t.handleMask.apply(null,arguments)}}},[e("div",{staticClass:"modal-content"},[e("div",{staticClass:"modal-header"},[t._v("AI超分")]),e("div",{staticClass:"modal-body"},[e("div",{on:{click:function(t){t.stopPropagation()}}},[e("div",{staticClass:"workspace"},[e("div",{staticClass:"imgblock"},[""!==t.afterEditSrc?e("div",{staticClass:"label"},[t._v("超分前")]):t._e(),e("img",{attrs:{src:t.workspaceSrc}})]),""!==t.afterEditSrc?e("div",{staticClass:"imgblock"},[e("div",{staticClass:"label"},[t._v("超分后")]),e("img",{attrs:{src:t.afterEditSrc}})]):t._e()]),""==t.afterEditSrc?e("div",{staticClass:"radiogroup"},t._l(t.duration,function(r){return e("div",{key:r.value,staticClass:"radio",class:t.currentDuration==r.value?"radio-active":"",on:{click:function(e){t.currentDuration=r.value}}},[t._v(" "+t._s(r.text)+" ")])}),0):t._e(),""==t.afterEditSrc?e("div",{staticClass:"button",on:{click:t.expandResolution}},[t._v("立即生成")]):t._e(),""!==t.afterEditSrc?e("div",{staticClass:"button",on:{click:t.handleOk}},[t._v("应用")]):t._e()]),e("transition",{attrs:{name:"fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"spin-mask"},[e("div",{staticClass:"spin-loading"},[e("span",{staticClass:"line-md--loading-alt-loop"}),e("div",[t._v("加载中...")])])])])],1)])]):t._e()])},kr=[],jr=r(6616),Pr=r.n(jr);const Ur={openTask:"https://xingjian.51kandianshi.com/aigc-tools/super-resolve/generate",checkTask:"https://xingjian.51kandianshi.com/aigc-tools/super-resolve/query"};var Ir={name:"AISuperResolutionModal",props:{visible:{type:Boolean,default:!1},src:{type:String,default:""}},data(){return{loading:!1,workspaceSrc:"",afterEditSrc:"",taskId:"",interval:null,currentDuration:"1",duration:[{text:"2倍",value:"1"},{text:"4倍",value:"2"}]}},created(){this.workspaceSrc="https://cre.51kandianshi.com/iopaint/Images/3bf3f294-e6e8-411d-8531-8eba990a3456.png"},watch:{visible(t){t?this.workspaceSrc=this.src:(this.workspaceSrc="",this.afterEditSrc="",this.taskId="",this.interval&&(clearInterval(this.interval),this.interval=null))}},methods:{close(){this.$emit("update:visible",!1)},handleMask(){this.visible&&this.close()},async checkResult(){if(""!=this.taskId)try{const t=await wr.get(`${Ur.checkTask}?taskId=${this.taskId}`,{headers:{accessToken:this.$token}});if(0==t.data.code&&1==t.data.data.status)return t.data.data.fileUrl;if(0==t.data.code&&2==t.data.data.status)return this.loading=!1,this.interval&&(clearInterval(this.interval),this.interval=null),!1}catch(t){this.loading=!1,this.interval&&(clearInterval(this.interval),this.interval=null)}},async expandResolution(){let t=await this.getImageMd5(this.workspaceSrc);this.loading=!0;try{const e=await wr.post(Ur.openTask,{fileUrl:this.workspaceSrc,md5:t,mode:1,outScale:this.currentDuration,fileType:3},{headers:{accessToken:this.$token}});0==e.data.code?(this.taskId=e.data.data.taskId,this.interval=setInterval(async()=>{let t=await this.checkResult();t&&(clearInterval(this.interval),this.interval=null,this.loading=!1,this.afterEditSrc=t)},2e3)):this.loading=!1}catch(e){this.loading=!1}},handleOk(){this.$emit("update:visible",!1,this.afterEditSrc)},async getImageMd5(t){try{const e=await fetch(t);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const r=await e.blob(),n=await r.arrayBuffer(),o=new Uint8Array(n),i=new(Pr().ArrayBuffer);i.append(o);const s=i.end();return console.log("图片的 MD5 值:",s),s}catch(e){console.error("获取图片 MD5 值时出错:",e)}}}},Fr=Ir,Br=Rr(Fr,Tr,kr,!1,null,"865c5d88",null),Nr=Br.exports;function Mr(t){let e,r,n=parseInt(t.slice(1,3),16)/255,o=parseInt(t.slice(3,5),16)/255,i=parseInt(t.slice(5,7),16)/255,s=Math.max(n,o,i),a=Math.min(n,o,i),c=(s+a)/2;if(s===a)e=r=0;else{let t=s-a;switch(r=c>.5?t/(2-s-a):t/(s+a),s){case n:e=(o-i)/t+(o<i?6:0);break;case o:e=(i-n)/t+2;break;case i:e=(n-o)/t+4;break}e/=6}return[e,r,c]}function Lr(t,e,r){let n,o,i;function s(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(0===e)n=o=i=r;else{let a=r<.5?r*(1+e):r+e-r*e,c=2*r-a;n=s(c,a,t+1/3),o=s(c,a,t),i=s(c,a,t-1/3)}const a=t=>{const e=Math.round(255*t);return e.toString(16).padStart(2,"0")};return"#"+a(n)+a(o)+a(i)}function Dr(t,e){const[r,n,o]=Mr(t),i=Math.min(1,o+e/100);return Lr(r,n,i)}const qr=[Cr,Nr],$r=function(t,e={}){const{theme:r,token:n}=e;$r.installed||($r.installed=!0,r&&(document.documentElement.style.setProperty("--sbsplugin-primary-color",r.primaryColor||"#1677ff"),document.documentElement.style.setProperty("--sbsplugin-primary-color-hover",Dr(r.primaryColor||"#1677ff",10))),t.prototype.$token=n,qr.forEach(e=>t.component(e.name,e)))};"undefined"!==typeof window&&window.Vue&&$r(window.Vue);var zr=$r,Vr=zr}(),n}()});