@sbs-plugin/vue2-image-process 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +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["vue2ImageProcess"]=e():t["vue2ImageProcess"]=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"}}},91:function(t,e,r){"use strict";var n=r(7925),o=r(8312);t.exports=Object.keys||function(t){return n(t,o)}},136:function(t,e,r){"use strict";var n=r(2848);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},198:function(t,e,r){"use strict";var n=r(2339),o=r(4314),i=r(7015),s=r(2175),a=r(5008),c=r(1188),u=r(8842),l=r(1984),f=l("some",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{some:function(t){a(this);try{s(t)}catch(n){u(this,"throw",n)}if(f)return o(f,this,t);var e=c(this),r=0;return i(e,function(e,n){if(t(e,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},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}},847:function(t,e,r){"use strict";var n=r(2339),o=r(9727),i=r(5584).clear;n({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},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}},1044:function(t,e,r){"use strict";var n=r(8842);t.exports=function(t,e,r){for(var o=t.length-1;o>=0;o--)if(void 0!==t[o])try{r=n(t[o].iterator,e,r)}catch(i){e="throw",r=i}if("throw"===e)throw r;return r}},1188:function(t){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},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}})},1202:function(t,e,r){"use strict";var n=r(5008),o=r(8842);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(s){o(t,"throw",s)}}},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),v=r(2984),g=r(9876),w=r(8280),b=r(8040),E=r(2787),S=r(2964),R=S.enforce,x=S.get,O=c.Int8Array,A=O&&O.prototype,T=c.Uint8ClampedArray,_=T&&T.prototype,C=O&&g(O),I=A&&g(A),k=Object.prototype,j=c.TypeError,P=b("toStringTag"),N=E("TYPED_ARRAY_TAG"),U="TypedArrayConstructor",D=s&&!!w&&"Opera"!==p(c.opera),F=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},M={BigInt64Array:8,BigUint64Array:8},L=function(t){if(!l(t))return!1;var e=p(t);return"DataView"===e||f(B,e)||f(M,e)},q=function(t){var e=g(t);if(l(e)){var r=x(e);return r&&f(r,U)?r[U]:q(e)}},$=function(t){if(!l(t))return!1;var e=p(t);return f(B,e)||f(M,e)},z=function(t){if($(t))return t;throw new j("Target is not a typed array")},V=function(t){if(u(t)&&(!w||v(C,t)))return t;throw new j(h(t)+" is not a typed array constructor")},H=function(t,e,r,n){if(a){if(r)for(var o in B){var i=c[o];if(i&&f(i.prototype,t))try{delete i.prototype[t]}catch(s){try{i.prototype[t]=e}catch(u){}}}I[t]&&!r||y(I,t,r?e:D&&A[t]||e,n)}},W=function(t,e,r){var n,o;if(a){if(w){if(r)for(n in B)if(o=c[n],o&&f(o,t))try{delete o[t]}catch(i){}if(C[t]&&!r)return;try{return y(C,t,r?e:D&&C[t]||e)}catch(i){}}for(n in B)o=c[n],!o||o[t]&&!r||y(o,t,e)}};for(n in B)o=c[n],i=o&&o.prototype,i?R(i)[U]=o:D=!1;for(n in M)o=c[n],i=o&&o.prototype,i&&(R(i)[U]=o);if((!D||!u(C)||C===Function.prototype)&&(C=function(){throw new j("Incorrect invocation")},D))for(n in B)c[n]&&w(c[n],C);if((!D||!I||I===k)&&(I=C.prototype,D))for(n in B)c[n]&&w(c[n].prototype,I);if(D&&g(_)!==I&&w(_,I),a&&!f(I,P))for(n in F=!0,m(I,P,{configurable:!0,get:function(){return l(this)?this[N]:void 0}}),B)c[n]&&d(c[n],N,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:F&&N,aTypedArray:z,aTypedArrayConstructor:V,exportTypedArrayMethod:H,exportTypedArrayStaticMethod:W,getTypedArrayConstructor:q,isView:L,isTypedArray:$,TypedArray:C,TypedArrayPrototype:I}},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}},1768:function(t,e,r){"use strict";var n=r(3473),o=Function.prototype,i=o.apply,s=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(i):function(){return s.apply(i,arguments)})},1803:function(t,e,r){"use strict";var n,o=r(5008),i=r(5180),s=r(8312),a=r(338),c=r(4128),u=r(6608),l=r(2682),f=">",p="<",h="prototype",d="script",y=l("IE_PROTO"),m=function(){},v=function(t){return p+d+f+t+p+"/"+d+f},g=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},w=function(){var t,e=u("iframe"),r="java"+d+":";return e.style.display="none",c.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(v("document.F=Object")),t.close(),t.F},b=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}b="undefined"!=typeof document?document.domain&&n?g(n):w():g(n);var t=s.length;while(t--)delete b[h][s[t]];return b()};a[y]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(m[h]=o(t),r=new m,m[h]=null,r[y]=t):r=b(),void 0===e?r:i.f(r,e)}},1952:function(t,e,r){"use strict";var n=r(9727),o=r(3194),i=r(5999),s=function(t){return o.slice(0,t.length)===t};t.exports=function(){return s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"}()},1984:function(t,e,r){"use strict";var n=r(9727);t.exports=function(t,e){var r=n.Iterator,o=r&&r.prototype,i=o&&o[t],s=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(a){a instanceof e||(s=!1)}if(!s)return i}},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},2144:function(t,e,r){"use strict";var n=r(2339),o=r(4314),i=r(2175),s=r(5008),a=r(1188),c=r(7953),u=r(1202),l=r(768),f=r(8842),p=r(9853),h=r(1984),d=!l&&!p("filter",function(){}),y=!l&&!d&&h("filter",TypeError),m=l||d||y,v=c(function(){var t,e,r,n=this.iterator,i=this.predicate,a=this.next;while(1){if(t=s(o(a,n)),e=this.done=!!t.done,e)return;if(r=t.value,u(n,i,[r,this.counter++],!0))return r}});n({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(t){s(this);try{i(t)}catch(e){f(this,"throw",e)}return y?o(y,this,t):new v(a(this),{predicate:t})}})},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")}},2188:function(t,e,r){"use strict";var n=r(4314),o=r(2175),i=r(5008),s=r(80),a=r(5848),c=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(o(r))return i(n(r,t));throw new c(s(t)+" is not iterable")}},2271:function(t,e,r){"use strict";r(847),r(5886)},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,v=t.stat;if(l=m?n:v?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+(v?".":"#")+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)}}},2620:function(t,e,r){"use strict";var n=r(2984),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new o("Incorrect invocation")}},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,v=function(t){return i(t)?o(t):n(t,{})},g=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 w=f.state||(f.state=new m);w.get=w.get,w.has=w.has,w.set=w.set,n=function(t,e){if(w.has(t))throw new y(d);return e.facade=t,w.set(t,e),e},o=function(t){return w.get(t)||{}},i=function(t){return w.has(t)}}else{var b=p("state");h[b]=!0,n=function(t,e){if(l(t,b))throw new y(d);return e.facade=t,u(t,b,e),e},o=function(t){return l(t,b)?t[b]:{}},i=function(t){return l(t,b)}}t.exports={set:n,get:o,has:i,enforce:v,getterFor:g}},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")})},3490:function(t,e,r){"use strict";var n=r(4919);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},3776:function(t,e,r){"use strict";var n=r(4608);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},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})},3945:function(t,e,r){"use strict";var n=r(5999),o=r(8243);t.exports=function(t){if("Function"===n(t))return o(t)}},3996:function(t,e,r){"use strict";var n,o,i,s=r(7612),a=r(1994),c=r(4701),u=r(1803),l=r(9876),f=r(4919),p=r(8040),h=r(768),d=p("iterator"),y=!1;[].keys&&(i=[].keys(),"next"in i?(o=l(l(i)),o!==Object.prototype&&(n=o)):y=!0);var m=!c(n)||s(function(){var t={};return n[d].call(t)!==t});m?n={}:h&&(n=u(n)),a(n[d])||f(n,d,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:y}},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},4128:function(t,e,r){"use strict";var n=r(5022);t.exports=n("document","documentElement")},4163:function(t){"use strict";var e=TypeError;t.exports=function(t,r){if(t<r)throw new e("Not enough arguments");return t}},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])}},4425:function(t){"use strict";t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},4514:function(t){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},4608:function(t,e,r){"use strict";var n=r(4220),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},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}},4962:function(t,e,r){"use strict";var n=r(8243),o=Error,i=n("".replace),s=function(t){return String(new o(t).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(s);t.exports=function(t,e){if(c&&"string"==typeof t&&!o.prepareStackTrace)while(e--)t=i(t,a,"");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]}},5077:function(t,e,r){"use strict";var n=r(3194);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},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},5180:function(t,e,r){"use strict";var n=r(8567),o=r(3861),i=r(5884),s=r(5008),a=r(14),c=r(91);e.f=n&&!o?Object.defineProperties:function(t,e){s(t);var r,n=a(e),o=c(e),u=o.length,l=0;while(u>l)i.f(t,r=o[l++],n[r]);return t}},5275:function(t,e,r){r(1201),r(218),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})},5486:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},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)}},5584:function(t,e,r){"use strict";var n,o,i,s,a=r(9727),c=r(1768),u=r(7991),l=r(1994),f=r(492),p=r(7612),h=r(4128),d=r(5779),y=r(6608),m=r(4163),v=r(5077),g=r(7810),w=a.setImmediate,b=a.clearImmediate,E=a.process,S=a.Dispatch,R=a.Function,x=a.MessageChannel,O=a.String,A=0,T={},_="onreadystatechange";p(function(){n=a.location});var C=function(t){if(f(T,t)){var e=T[t];delete T[t],e()}},I=function(t){return function(){C(t)}},k=function(t){C(t.data)},j=function(t){a.postMessage(O(t),n.protocol+"//"+n.host)};w&&b||(w=function(t){m(arguments.length,1);var e=l(t)?t:R(t),r=d(arguments,1);return T[++A]=function(){c(e,void 0,r)},o(A),A},b=function(t){delete T[t]},g?o=function(t){E.nextTick(I(t))}:S&&S.now?o=function(t){S.now(I(t))}:x&&!v?(i=new x,s=i.port2,i.port1.onmessage=k,o=u(s.postMessage,s)):a.addEventListener&&l(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!p(j)?(o=j,a.addEventListener("message",k,!1)):o=_ in y("script")?function(t){h.appendChild(y("script"))[_]=function(){h.removeChild(this),C(t)}}:function(t){setTimeout(I(t),0)}),t.exports={set:w,clear:b}},5779:function(t,e,r){"use strict";var n=r(8243);t.exports=n([].slice)},5848:function(t,e,r){"use strict";var n=r(4220),o=r(1351),i=r(3248),s=r(8062),a=r(8040),c=a("iterator");t.exports=function(t){if(!i(t))return o(t,c)||o(t,"@@iterator")||s[n(t)]}},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}},5886:function(t,e,r){"use strict";var n=r(2339),o=r(9727),i=r(5584).set,s=r(6901),a=o.setImmediate?s(i,!1):i;n({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==a},{setImmediate:a})},5895:function(t,e,r){var n;r(1201),r(6040),r(8773),r(218);var 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=[],v={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=v.val&v.position,v.position>>=1,0==v.position&&(v.position=r,v.val=n(v.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=v.val&v.position,v.position>>=1,0==v.position&&(v.position=r,v.val=n(v.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=v.val&v.position,v.position>>=1,0==v.position&&(v.position=r,v.val=n(v.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(v.index>e)return"";s=0,c=Math.pow(2,d),u=1;while(u!=c)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=r,v.val=n(v.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=v.val&v.position,v.position>>=1,0==v.position&&(v.position=r,v.val=n(v.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=v.val&v.position,v.position>>=1,0==v.position&&(v.position=r,v.val=n(v.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)},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)}},6040:function(t,e,r){"use strict";var n=r(2339),o=r(9727),i=r(2620),s=r(5008),a=r(1994),c=r(9876),u=r(7363),l=r(6231),f=r(7612),p=r(492),h=r(8040),d=r(3996).IteratorPrototype,y=r(8567),m=r(768),v="constructor",g="Iterator",w=h("toStringTag"),b=TypeError,E=o[g],S=m||!a(E)||E.prototype!==d||!f(function(){E({})}),R=function(){if(i(this,d),c(this)===d)throw new b("Abstract class Iterator not directly constructable")},x=function(t,e){y?u(d,t,{configurable:!0,get:function(){return e},set:function(e){if(s(this),this===d)throw new b("You can't redefine this property");p(this,t)?this[t]=e:l(this,t,e)}}):d[t]=e};p(d,w)||x(w,g),!S&&p(d,v)&&d[v]!==Object||x(v,R),R.prototype=d,n({global:!0,constructor:!0,forced:S},{Iterator:R})},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)}},6231:function(t,e,r){"use strict";var n=r(8567),o=r(5884),i=r(9945);t.exports=function(t,e,r){n?o.f(t,e,i(0,r)):t[e]=r}},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):{}}},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})},6901:function(t,e,r){"use strict";var n=r(9727),o=r(1768),i=r(1994),s=r(1952),a=r(3194),c=r(5779),u=r(4163),l=n.Function,f=/MSIE .\./.test(a)||"BUN"===s&&function(){var t=n.Bun.version.split(".");return t.length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2])}();t.exports=function(t,e){var r=e?2:1;return f?function(n,s){var a=u(arguments.length,1)>r,f=i(n)?n:l(n),p=a?c(arguments,r):[],h=a?function(){o(f,this,p)}:f;return e?t(h,s):t(h)}:t}},7015:function(t,e,r){"use strict";var n=r(7991),o=r(4314),i=r(5008),s=r(80),a=r(9364),c=r(8911),u=r(2984),l=r(2188),f=r(5848),p=r(8842),h=TypeError,d=function(t,e){this.stopped=t,this.result=e},y=d.prototype;t.exports=function(t,e,r){var m,v,g,w,b,E,S,R=r&&r.that,x=!(!r||!r.AS_ENTRIES),O=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),T=!(!r||!r.INTERRUPTED),_=n(e,R),C=function(t){return m&&p(m,"normal"),new d(!0,t)},I=function(t){return x?(i(t),T?_(t[0],t[1],C):_(t[0],t[1])):T?_(t,C):_(t)};if(O)m=t.iterator;else if(A)m=t;else{if(v=f(t),!v)throw new h(s(t)+" is not iterable");if(a(v)){for(g=0,w=c(t);w>g;g++)if(b=I(t[g]),b&&u(y,b))return b;return new d(!1)}m=l(t,v)}E=O?t.next:m.next;while(!(S=o(E,m)).done){try{b=I(S.value)}catch(k){p(m,"throw",k)}if("object"==typeof b&&b&&u(y,b))return b}return new d(!1)}},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")}},7540:function(t,e,r){"use strict";var n=r(1994),o=r(4701),i=r(8280);t.exports=function(t,e,r){var s,a;return i&&n(s=e.constructor)&&s!==r&&o(a=s.prototype)&&a!==r.prototype&&i(t,a),t}},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},7810:function(t,e,r){"use strict";var n=r(1952);t.exports="NODE"===n},7851:function(t,e,r){"use strict";var n=r(2339),o=r(5008),i=r(7015),s=r(1188),a=[].push;n({target:"Iterator",proto:!0,real:!0},{toArray:function(){var t=[];return i(s(o(this)),a,{that:t,IS_RECORD:!0}),t}})},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}},7953:function(t,e,r){"use strict";var n=r(4314),o=r(1803),i=r(778),s=r(3490),a=r(8040),c=r(2964),u=r(1351),l=r(3996).IteratorPrototype,f=r(5486),p=r(8842),h=r(1044),d=a("toStringTag"),y="IteratorHelper",m="WrapForValidIterator",v="normal",g="throw",w=c.set,b=function(t){var e=c.getterFor(t?m:y);return s(o(l),{next:function(){var r=e(this);if(t)return r.nextHandler();if(r.done)return f(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:f(n,r.done)}catch(o){throw r.done=!0,o}},return:function(){var r=e(this),o=r.iterator;if(r.done=!0,t){var i=u(o,"return");return i?n(i,o):f(void 0,!0)}if(r.inner)try{p(r.inner.iterator,v)}catch(s){return p(o,g,s)}if(r.openIters)try{h(r.openIters,v)}catch(s){return p(o,g,s)}return o&&p(o,v),f(void 0,!0)}})},E=b(!0),S=b(!1);i(S,d,"Iterator Helper"),t.exports=function(t,e,r){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=e?m:y,o.returnHandlerResult=!!r,o.nextHandler=t,o.counter=0,o.done=!1,w(this,o)};return n.prototype=e?E:S,n}},7991:function(t,e,r){"use strict";var n=r(3945),o=r(2175),i=r(3473),s=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?s(t,e):function(){return t.apply(e,arguments)}}},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]}},8062:function(t){"use strict";t.exports={}},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),v=n([].join),g=a&&!o(function(){return 8!==d(function(){},"length",{value:8}).length}),w=String(String).split("String"),b=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),g&&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=v(w,"string"==typeof e?e:"")),t};Function.prototype.toString=b(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]})},8572:function(t,e,r){"use strict";var n=r(2339),o=r(9727),i=r(5022),s=r(9945),a=r(5884).f,c=r(492),u=r(2620),l=r(7540),f=r(3776),p=r(4425),h=r(4962),d=r(8567),y=r(768),m="DOMException",v=i("Error"),g=i(m),w=function(){u(this,b);var t=arguments.length,e=f(t<1?void 0:arguments[0]),r=f(t<2?void 0:arguments[1],"Error"),n=new g(e,r),o=new v(e);return o.name=m,a(n,"stack",s(1,h(o.stack,1))),l(n,this,w),n},b=w.prototype=g.prototype,E="stack"in new v(m),S="stack"in new g(1,2),R=g&&d&&Object.getOwnPropertyDescriptor(o,m),x=!!R&&!(R.writable&&R.configurable),O=E&&!x&&!S;n({global:!0,constructor:!0,forced:y||O},{DOMException:O?w:g});var A=i(m),T=A.prototype;if(T.constructor!==A)for(var _ in y||a(T,"constructor",s(1,A)),p)if(c(p,_)){var C=p[_],I=C.s;c(A,I)||a(A,I,s(6,C.c))}},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})},8773:function(t,e,r){"use strict";var n=r(2339),o=r(4314),i=r(7015),s=r(2175),a=r(5008),c=r(1188),u=r(8842),l=r(1984),f=l("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{forEach:function(t){a(this);try{s(t)}catch(n){u(this,"throw",n)}if(f)return o(f,this,t);var e=c(this),r=0;i(e,function(e){t(e,r++)},{IS_RECORD:!0})}})},8842:function(t,e,r){"use strict";var n=r(4314),o=r(5008),i=r(1351);t.exports=function(t,e,r){var s,a;o(t);try{if(s=i(t,"return"),!s){if("throw"===e)throw r;return r}s=n(s,t)}catch(c){a=!0,s=c}if("throw"===e)throw r;if(a)throw s;return o(s),r}},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}},9062:function(t,e,r){"use strict";var n=r(2339),o=r(4314),i=r(2175),s=r(5008),a=r(1188),c=r(7953),u=r(1202),l=r(8842),f=r(9853),p=r(1984),h=r(768),d=!h&&!f("map",function(){}),y=!h&&!d&&p("map",TypeError),m=h||d||y,v=c(function(){var t=this.iterator,e=s(o(this.next,t)),r=this.done=!!e.done;if(!r)return u(t,this.mapper,[e.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(t){s(this);try{i(t)}catch(e){l(this,"throw",e)}return y?o(y,this,t):new v(a(this),{mapper: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})},9364:function(t,e,r){"use strict";var n=r(8040),o=r(8062),i=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||s[i]===t)}},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},9853:function(t){"use strict";t.exports=function(t,e){var r="function"==typeof Iterator&&Iterator.prototype[t];if(r)try{r.call({next:null},e).next()}catch(n){return!0}}},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 Lt},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),r(6040),r(8773),r(2271);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 v(t){return null!==t&&!m(t)&&null!==t.constructor&&!m(t.constructor)&&E(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const g=h("ArrayBuffer");function w(t){let e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&g(t.buffer),e}const b=d("string"),E=d("function"),S=d("number"),R=t=>null!==t&&"object"===typeof t,x=t=>!0===t||!1===t,O=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)},A=h("Date"),T=h("File"),_=h("Blob"),C=h("FileList"),I=t=>R(t)&&E(t.pipe),k=t=>{let e;return t&&("function"===typeof FormData&&t instanceof FormData||E(t.append)&&("formdata"===(e=p(t))||"object"===e&&E(t.toString)&&"[object FormData]"===t.toString()))},j=h("URLSearchParams"),[P,N,U,D]=["ReadableStream","Request","Response","Headers"].map(h),F=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function B(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 M(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 L=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),q=t=>!m(t)&&t!==L;function $(){const{caseless:t}=q(this)&&this||{},e={},r=(r,n)=>{const o=t&&M(e,n)||n;O(e[o])&&O(r)?e[o]=$(e[o],r):O(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]&&B(arguments[n],r);return e}const z=(t,e,r,{allOwnKeys:n}={})=>(B(e,(e,n)=>{r&&E(e)?t[n]=a(e,r):t[n]=e},{allOwnKeys:n}),t),V=t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),H=(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)},W=(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(!S(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={};B(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(E(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];E(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&&E(t.append)&&"FormData"===t[f]&&t[l])}const ct=t=>{const e=new Array(10),r=(t,n)=>{if(R(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=y(t)?[]:{};return B(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&&(R(t)||E(t))&&E(t.then)&&E(t.catch),ft=((t,e)=>t?setImmediate:e?((t,e)=>(L.addEventListener("message",({source:r,data:n})=>{r===L&&n===t&&e.length&&e.shift()()},!1),r=>{e.push(r),L.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))("function"===typeof setImmediate,E(L.postMessage)),pt="undefined"!==typeof queueMicrotask?queueMicrotask.bind(L):"undefined"!==typeof process&&process.nextTick||ft,ht=t=>null!=t&&E(t[l]);var dt={isArray:y,isArrayBuffer:g,isBuffer:v,isFormData:k,isArrayBufferView:w,isString:b,isNumber:S,isBoolean:x,isObject:R,isPlainObject:O,isReadableStream:P,isRequest:N,isResponse:U,isHeaders:D,isUndefined:m,isDate:A,isFile:T,isBlob:_,isRegExp:et,isFunction:E,isStream:I,isURLSearchParams:j,isTypedArray:G,isFileList:C,forEach:B,merge:$,extend:z,trim:F,stripBOM:V,inherits:H,toFlatObject:W,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:M,global:L,isContextDefined:q,isSpecCompliantForm:at,toJSONObject:ct,isAsyncFn:ut,isThenable:lt,setImmediate:ft,asap:pt,isIterable:ht};r(9062),r(198),r(7851);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,vt={};["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=>{vt[t]={value:t}}),Object.defineProperties(yt,vt),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 gt=yt,wt=null;function bt(t){return dt.isPlainObject(t)||dt.isArray(t)}function Et(t){return dt.endsWith(t,"[]")?t.slice(0,-2):t}function St(t,e,r){return t?t.concat(e).map(function(t,e){return t=Et(t),!r&&e?"["+t+"]":t}).join(r?".":""):e}function Rt(t){return dt.isArray(t)&&!t.some(bt)}const xt=dt.toFlatObject(dt,{},null,function(t){return/^is[A-Z]/.test(t)});function Ot(t,e,r){if(!dt.isObject(t))throw new TypeError("target must be an object");e=e||new(wt||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 gt("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)&&Rt(t)||(dt.isFileList(t)||dt.endsWith(r,"[]"))&&(a=dt.toArray(t)))return r=Et(r),a.forEach(function(t,n){!dt.isUndefined(t)&&null!==t&&e.append(!0===s?St([r],n,i):null===s?r:r+"[]",u(t))}),!1;return!!bt(t)||(e.append(St(o,r,i),u(t)),!1)}const f=[],p=Object.assign(xt,{defaultVisitor:l,convertValue:u,isVisitable:bt});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 At=Ot;function Tt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function _t(t,e){this._pairs=[],t&&At(t,this,e)}const Ct=_t.prototype;Ct.append=function(t,e){this._pairs.push([t,e])},Ct.toString=function(t){const e=t?function(e){return t.call(this,e,Tt)}:Tt;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};var It=_t;function kt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jt(t,e,r){if(!e)return t;const n=r&&r.encode||kt;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 It(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}class Pt{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 Nt=Pt,Ut={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dt="undefined"!==typeof URLSearchParams?URLSearchParams:It,Ft="undefined"!==typeof FormData?FormData:null,Bt="undefined"!==typeof Blob?Blob:null,Mt={isBrowser:!0,classes:{URLSearchParams:Dt,FormData:Ft,Blob:Bt},protocols:["http","https","file","blob","url","data"]};const Lt="undefined"!==typeof window&&"undefined"!==typeof document,qt="object"===typeof navigator&&navigator||void 0,$t=Lt&&(!qt||["ReactNative","NativeScript","NS"].indexOf(qt.product)<0),zt=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),Vt=Lt&&window.location.href||"http://localhost";var Ht={...t,...Mt};function Wt(t,e){return At(t,new Ht.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return Ht.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:Ut,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 Wt(t,this.formSerializer).toString();if((s=dt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return At(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 gt.from(o,gt.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:Ht.classes.FormData,Blob:Ht.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){gt.call(this,null==t?"canceled":t,gt.ERR_CANCELED,e,r),this.name="CanceledError"}dt.inherits(de,gt,{__CANCEL__:!0});var ye=de;function me(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new gt("Request failed with status code "+r.status,[gt.ERR_BAD_REQUEST,gt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}function ve(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ge(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 we=ge;function be(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 Ee=be;const Se=(t,e,r=3)=>{let n=0;const o=we(50,250);return Ee(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)},Re=(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));r(2144),r(8572);var Oe=Ht.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,Ht.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(Ht.origin),Ht.navigator&&/(msie|trident)/i.test(Ht.navigator.userAgent)):()=>!0,Ae=Ht.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 Te(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function _e(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Ce(t,e,r){let n=!Te(e);return t&&(n||0==r)?_e(t,e):e}const Ie=t=>t instanceof fe?{...t}:t;function ke(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(Ie(t),Ie(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 je=t=>{const e=ke({},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=jt(Ce(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(Ht.hasStandardBrowserEnv||Ht.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(Ht.hasStandardBrowserEnv&&(o&&dt.isFunction(o)&&(o=o(e)),o||!1!==o&&Oe(e.url))){const t=i&&s&&Ae.read(s);t&&a.set(i,t)}return e};const Pe="undefined"!==typeof XMLHttpRequest;var Ne=Pe&&function(t){return new Promise(function(e,r){const n=je(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 gt("Request aborted",gt.ECONNABORTED,t,y)),y=null)},y.onerror=function(){r(new gt("Network Error",gt.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||Ut;n.timeoutErrorMessage&&(e=n.timeoutErrorMessage),r(new gt(e,o.clarifyTimeoutError?gt.ETIMEDOUT:gt.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]=Se(h,!0),y.addEventListener("progress",c)),p&&y.upload&&([a,u]=Se(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 v=ve(n.url);v&&-1===Ht.protocols.indexOf(v)?r(new gt("Unsupported protocol "+v+":",gt.ERR_BAD_REQUEST,t)):y.send(o||null)})};const Ue=(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 gt?e:new ye(e instanceof Error?e.message:e))}};let i=e&&setTimeout(()=>{i=null,o(new gt(`timeout ${e} of ms exceeded`,gt.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 De=Ue;const Fe=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},Be=async function*(t,e){for await(const r of Me(t))yield*Fe(r,e)},Me=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()}},Le=(t,e,r,n)=>{const o=Be(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}},He=$e&&Ve(()=>{let t=!1;const e=new Request(Ht.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),We=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 gt(`Response type '${e}' is not supported`,gt.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(Ht.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}=je(t);u=u?(u+"").toLowerCase():"text";let h,d=De([o,i&&i.toAbortSignal()],s);const y=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let m;try{if(c&&He&&"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]=Re(m,Se(xe(c)));n=Le(r.body,We,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&&Re(e,Se(xe(a),!0))||[];i=new Response(Le(i.body,We,r,()=>{n&&n(),y&&y()}),t)}u=u||"text";let v=await Ke[dt.findKey(Ke,u)||"text"](i,t);return!s&&y&&y(),await new Promise((e,r)=>{me(e,r,{data:v,headers:fe.from(i.headers),status:i.status,statusText:i.statusText,config:t,request:h})})}catch(v){if(y&&y(),v&&"TypeError"===v.name&&/Load failed|fetch/i.test(v.message))throw Object.assign(new gt("Network Error",gt.ERR_NETWORK,t,h),{cause:v.cause||v});throw gt.from(v,v&&v.code,t,h)}});const Qe={http:wt,xhr:Ne,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 gt(`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 gt("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 gt("options must be an object",gt.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 gt("option "+i+" must be "+r,gt.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new gt("Unknown option "+i,gt.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 gt(n(o," has been removed"+(e?" in "+e:"")),gt.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 Nt,response:new Nt}}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=ke(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=ke(this.defaults,t);const e=Ce(t.baseURL,t.url,t.allowAbsoluteUrls);return jt(e,t.params,t.paramsSerializer)}}dt.forEach(["delete","get","head","options"],function(t){lr.prototype[t]=function(e,r){return this.request(ke(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(ke(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 vr=mr;function gr(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 gr(ke(t,e))},r}const wr=gr(Zt);wr.Axios=fr,wr.CanceledError=ye,wr.CancelToken=hr,wr.isCancel=he,wr.VERSION=or,wr.toFormData=At,wr.AxiosError=gt,wr.Cancel=wr.CanceledError,wr.all=function(t){return Promise.all(t)},wr.spread=dr,wr.isAxiosError=yr,wr.mergeConfig=ke,wr.AxiosHeaders=fe,wr.formToJSON=t=>Xt(dt.isHTMLForm(t)?new FormData(t):t),wr.getAdapter=er.getAdapter,wr.HttpStatusCode=vr,wr.default=wr;var br=wr,Er=r(5895),Sr=r.n(Er);const Rr={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=>br.post(Rr.uploadImg,{file:new File([t],"image.jpg",{type:"image/jpeg"})},{headers:{"Content-Type":"multipart/form-data"}})).then(e=>{const r=new Image;r.src=`${Rr.API_IMG}/sam/api/upload/${e.data.filename}`,t.workspaceSrc=`${Rr.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),br.post(Rr.fakeSegment,e).then(t=>{const e=t.data.shape,r=Sr().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 E=0;E<c.length;E+=4){const t=c[E+3];0!==t&&(l[E+3]=0)}let f=t,p=e,h=0,d=0;for(let E=0;E<e;E++)for(let e=0;e<t;e++){const r=l[4*(E*t+e)+3];0!==r&&(f=Math.min(f,e),p=Math.min(p,E),h=Math.max(h,e),d=Math.max(d,E))}const y=h-f+1,m=d-p+1,v=f,g=p;s.putImageData(u,0,0);const w=document.createElement("canvas"),b=w.getContext("2d");w.width=y,w.height=m,b.drawImage(i,v,g,y,m,0,0,y,m),w.toBlob(t=>{o&&o(t)},"image/png")}}},Or=xr;function Ar(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 Tr=Ar(Or,i,s,!1,null,"795d171d",null),_r=Tr.exports,Cr=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()])},Ir=[],kr=r(5275),jr=r.n(kr);const Pr={openTask:"https://xingjian.51kandianshi.com/aigc-tools/super-resolve/generate",checkTask:"https://xingjian.51kandianshi.com/aigc-tools/super-resolve/query"};var Nr={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 br.get(`${Pr.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 br.post(Pr.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(jr().ArrayBuffer);i.append(o);const s=i.end();return console.log("图片的 MD5 值:",s),s}catch(e){console.error("获取图片 MD5 值时出错:",e)}}}},Ur=Nr,Dr=Ar(Ur,Cr,Ir,!1,null,"865c5d88",null),Fr=Dr.exports;function Br(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 Mr(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 Lr(t,e){const[r,n,o]=Br(t),i=Math.min(1,o+e/100);return Mr(r,n,i)}const qr=[_r,Fr],$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",Lr(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}()});
2
- //# sourceMappingURL=vue2ImageProcess.umd.min.js.map