| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-584056d7"],{"053b":function(t,e,o){var i=o("1e2c"),r=o("d910").f,n=Function.prototype,a=n.toString,s=/^\s*function ([^ (]*)/,l="name";i&&!(l in n)&&r(n,l,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(t){return""}}})},"064b":function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"08ba":function(t,e,o){var i=o("d890"),r=o("064b"),n=o("3c10"),a=o("0fc1");for(var s in r){var l=i[s],c=l&&l.prototype;if(c&&c.forEach!==n)try{a(c,"forEach",n)}catch(h){c.forEach=n}}},"0a0a":function(t,e,o){"use strict";var i=o("edba"),r=o.n(i);r.a},"0a51":function(t,e,o){"use strict";var i=o("1c8b"),r=o("1e2c"),n=o("d890"),a=o("faa8"),s=o("a719"),l=o("d910").f,c=o("c69d"),h=n.Symbol;if(r&&"function"==typeof h&&(!("description"in h.prototype)||void 0!==h().description)){var u={},d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof d?new h(t):void 0===t?h():h(t);return""===t&&(u[e]=!0),e};c(d,h);var f=d.prototype=h.prototype;f.constructor=d;var g=f.toString,p="Symbol(test)"==String(h("test")),m=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=g.call(t);if(a(u,t))return"";var o=p?e.slice(7,-1):e.replace(m,"$1");return""===o?void 0:o}}),i({global:!0,forced:!0},{Symbol:d})}},"0d7a":function(t,e,o){"use strict";var i=o("b2a2"),r=o("8a1c"),n=o("857c"),a=o("2732"),s=o("ef4c"),l=o("38eb"),c=o("d88d"),h=o("59da"),u=o("5139"),d=o("efe2"),f=[].push,g=Math.min,p=4294967295,m=!d((function(){return!RegExp(p,"y")}));i("split",2,(function(t,e,o){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,o){var i=String(a(this)),n=void 0===o?p:o>>>0;if(0===n)return[];if(void 0===t)return[i];if(!r(t))return e.call(i,t,n);var s,l,c,h=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),g=0,m=new RegExp(t.source,d+"g");while(s=u.call(m,i)){if(l=m.lastIndex,l>g&&(h.push(i.slice(g,s.index)),s.length>1&&s.index<i.length&&f.apply(h,s.slice(1)),c=s[0].length,g=l,h.length>=n))break;m.lastIndex===s.index&&m.lastIndex++}return g===i.length?!c&&m.test("")||h.push(""):h.push(i.slice(g)),h.length>n?h.slice(0,n):h}:"0".split(void 0,0).length?function(t,o){return void 0===t&&0===o?[]:e.call(this,t,o)}:e,[function(e,o){var r=a(this),n=void 0==e?void 0:e[t];return void 0!==n?n.call(e,r,o):i.call(String(r),e,o)},function(t,r){var a=o(i,t,this,r,i!==e);if(a.done)return a.value;var u=n(t),d=String(this),f=s(u,RegExp),v=u.unicode,y=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(m?"y":"g"),x=new f(m?u:"^(?:"+u.source+")",y),b=void 0===r?p:r>>>0;if(0===b)return[];if(0===d.length)return null===h(x,d)?[d]:[];var w=0,B=0,I=[];while(B<d.length){x.lastIndex=m?B:0;var C,T=h(x,m?d:d.slice(B));if(null===T||(C=g(c(x.lastIndex+(m?0:B)),d.length))===w)B=l(d,B,v);else{if(I.push(d.slice(w,B)),I.length===b)return I;for(var A=1;A<=T.length-1;A++)if(I.push(T[A]),I.length===b)return I;B=w=C}}return I.push(d.slice(w)),I}]}),!m)},"19fc":function(t,e,o){"use strict";var i=o("3553"),r=o("e1d6"),n=o("d88d"),a=Math.min;t.exports=[].copyWithin||function(t,e){var o=i(this),s=n(o.length),l=r(t,s),c=r(e,s),h=arguments.length>2?arguments[2]:void 0,u=a((void 0===h?s:r(h,s))-c,s-l),d=1;c<l&&l<c+u&&(d=-1,c+=u-1,l+=u-1);while(u-- >0)c in o?o[l]=o[c]:delete o[l],l+=d,c+=d;return o}},"1bb1":function(t,e,o){"use strict";var i=o("d890"),r=o("5a9e"),n=o("efe2"),a=i.Int8Array,s=r.aTypedArray,l=r.exportTypedArrayMethod,c=[].toLocaleString,h=[].slice,u=!!a&&n((function(){c.call(new a(1))})),d=n((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!n((function(){a.prototype.toLocaleString.call([1,2])}));l("toLocaleString",(function(){return c.apply(u?h.call(s(this)):s(this),arguments)}),d)},"1bbd":function(t,e,o){"use strict";var i=o("9f67"),r=o("d910"),n=o("38b9");t.exports=function(t,e,o){var a=i(e);a in t?r.f(t,a,n(0,o)):t[a]=o}},"1c2e9":function(t,e,o){"use strict";var i=o("d890"),r=o("1e2c"),n=o("d77f"),a=o("0fc1"),s=o("99ab"),l=o("efe2"),c=o("c4e4"),h=o("3da3"),u=o("d88d"),d=o("3ccd"),f=o("e026"),g=o("908e"),p=o("50fb"),m=o("b338").f,v=o("d910").f,y=o("fa41"),x=o("27b5"),b=o("b702"),w=b.get,B=b.set,I="ArrayBuffer",C="DataView",T="prototype",A="Wrong length",M="Wrong index",S=i[I],O=S,_=i[C],L=_&&_[T],E=Object.prototype,k=i.RangeError,P=f.pack,R=f.unpack,N=function(t){return[255&t]},D=function(t){return[255&t,t>>8&255]},F=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},j=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},U=function(t){return P(t,23,4)},W=function(t){return P(t,52,8)},H=function(t,e){v(t[T],e,{get:function(){return w(this)[e]}})},$=function(t,e,o,i){var r=d(o),n=w(t);if(r+e>n.byteLength)throw k(M);var a=w(n.buffer).bytes,s=r+n.byteOffset,l=a.slice(s,s+e);return i?l:l.reverse()},V=function(t,e,o,i,r,n){var a=d(o),s=w(t);if(a+e>s.byteLength)throw k(M);for(var l=w(s.buffer).bytes,c=a+s.byteOffset,h=i(+r),u=0;u<e;u++)l[c+u]=h[n?u:e-u-1]};if(n){if(!l((function(){S(1)}))||!l((function(){new S(-1)}))||l((function(){return new S,new S(1.5),new S(NaN),S.name!=I}))){O=function(t){return c(this,O),new S(d(t))};for(var Y,q=O[T]=S[T],z=m(S),G=0;z.length>G;)(Y=z[G++])in O||a(O,Y,S[Y]);q.constructor=O}p&&g(L)!==E&&p(L,E);var X=new _(new O(2)),J=L.setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||s(L,{setInt8:function(t,e){J.call(this,t,e<<24>>24)},setUint8:function(t,e){J.call(this,t,e<<24>>24)}},{unsafe:!0})}else O=function(t){c(this,O,I);var e=d(t);B(this,{bytes:y.call(new Array(e),0),byteLength:e}),r||(this.byteLength=e)},_=function(t,e,o){c(this,_,C),c(t,O,C);var i=w(t).byteLength,n=h(e);if(n<0||n>i)throw k("Wrong offset");if(o=void 0===o?i-n:u(o),n+o>i)throw k(A);B(this,{buffer:t,byteLength:o,byteOffset:n}),r||(this.buffer=t,this.byteLength=o,this.byteOffset=n)},r&&(H(O,"byteLength"),H(_,"buffer"),H(_,"byteLength"),H(_,"byteOffset")),s(_[T],{getInt8:function(t){return $(this,1,t)[0]<<24>>24},getUint8:function(t){return $(this,1,t)[0]},getInt16:function(t){var e=$(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=$(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return j($(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return j($(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return R($(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return R($(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){V(this,1,t,N,e)},setUint8:function(t,e){V(this,1,t,N,e)},setInt16:function(t,e){V(this,2,t,D,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){V(this,2,t,D,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){V(this,4,t,F,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){V(this,4,t,F,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){V(this,4,t,U,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){V(this,8,t,W,e,arguments.length>2?arguments[2]:void 0)}});x(O,I),x(_,C),t.exports={ArrayBuffer:O,DataView:_}},"1cc1":function(t,e,o){"use strict";var i=o("5a9e"),r=o("5dfd").find,n=i.aTypedArray,a=i.exportTypedArrayMethod;a("find",(function(t){return r(n(this),t,arguments.length>1?arguments[1]:void 0)}))},"26a2":function(t,e,o){"use strict";var i=o("1c8b"),r=o("d890"),n=o("1e2c"),a=o("a4c7"),s=o("5a9e"),l=o("1c2e9"),c=o("c4e4"),h=o("38b9"),u=o("0fc1"),d=o("d88d"),f=o("3ccd"),g=o("7aeb"),p=o("9f67"),m=o("faa8"),v=o("2a91"),y=o("a719"),x=o("6d60"),b=o("50fb"),w=o("b338").f,B=o("6f82"),I=o("5dfd").forEach,C=o("403f"),T=o("d910"),A=o("aa6b"),M=o("b702"),S=o("7063"),O=M.get,_=M.set,L=T.f,E=A.f,k=Math.round,P=r.RangeError,R=l.ArrayBuffer,N=l.DataView,D=s.NATIVE_ARRAY_BUFFER_VIEWS,F=s.TYPED_ARRAY_TAG,j=s.TypedArray,U=s.TypedArrayPrototype,W=s.aTypedArrayConstructor,H=s.isTypedArray,$="BYTES_PER_ELEMENT",V="Wrong length",Y=function(t,e){var o=0,i=e.length,r=new(W(t))(i);while(i>o)r[o]=e[o++];return r},q=function(t,e){L(t,e,{get:function(){return O(this)[e]}})},z=function(t){var e;return t instanceof R||"ArrayBuffer"==(e=v(t))||"SharedArrayBuffer"==e},G=function(t,e){return H(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},X=function(t,e){return G(t,e=p(e,!0))?h(2,t[e]):E(t,e)},J=function(t,e,o){return!(G(t,e=p(e,!0))&&y(o)&&m(o,"value"))||m(o,"get")||m(o,"set")||o.configurable||m(o,"writable")&&!o.writable||m(o,"enumerable")&&!o.enumerable?L(t,e,o):(t[e]=o.value,t)};n?(D||(A.f=X,T.f=J,q(U,"buffer"),q(U,"byteOffset"),q(U,"byteLength"),q(U,"length")),i({target:"Object",stat:!0,forced:!D},{getOwnPropertyDescriptor:X,defineProperty:J}),t.exports=function(t,e,o){var n=t.match(/\d+$/)[0]/8,s=t+(o?"Clamped":"")+"Array",l="get"+t,h="set"+t,p=r[s],m=p,v=m&&m.prototype,T={},A=function(t,e){var o=O(t);return o.view[l](e*n+o.byteOffset,!0)},M=function(t,e,i){var r=O(t);o&&(i=(i=k(i))<0?0:i>255?255:255&i),r.view[h](e*n+r.byteOffset,i,!0)},E=function(t,e){L(t,e,{get:function(){return A(this,e)},set:function(t){return M(this,e,t)},enumerable:!0})};D?a&&(m=e((function(t,e,o,i){return c(t,m,s),S(function(){return y(e)?z(e)?void 0!==i?new p(e,g(o,n),i):void 0!==o?new p(e,g(o,n)):new p(e):H(e)?Y(m,e):B.call(m,e):new p(f(e))}(),t,m)})),b&&b(m,j),I(w(p),(function(t){t in m||u(m,t,p[t])})),m.prototype=v):(m=e((function(t,e,o,i){c(t,m,s);var r,a,l,h=0,u=0;if(y(e)){if(!z(e))return H(e)?Y(m,e):B.call(m,e);r=e,u=g(o,n);var p=e.byteLength;if(void 0===i){if(p%n)throw P(V);if(a=p-u,a<0)throw P(V)}else if(a=d(i)*n,a+u>p)throw P(V);l=a/n}else l=f(e),a=l*n,r=new R(a);_(t,{buffer:r,byteOffset:u,byteLength:a,length:l,view:new N(r)});while(h<l)E(t,h++)})),b&&b(m,j),v=m.prototype=x(U)),v.constructor!==m&&u(v,"constructor",m),F&&u(v,F,s),T[s]=m,i({global:!0,forced:m!=p,sham:!D},T),$ in m||u(m,$,n),$ in v||u(v,$,n),C(s)}):t.exports=function(){}},2909:function(t,e,o){"use strict";var i=o("5a9e"),r=o("58d8").left,n=i.aTypedArray,a=i.exportTypedArrayMethod;a("reduce",(function(t){return r(n(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},3598:function(t,e,o){"use strict";var i=o("5a9e"),r=o("8d7b"),n=i.aTypedArray,a=i.exportTypedArrayMethod;a("lastIndexOf",(function(t){return r.apply(n(this),arguments)}))},"3c10":function(t,e,o){"use strict";var i=o("5dfd").forEach,r=o("d7e1"),n=o("ff9c"),a=r("forEach"),s=n("forEach");t.exports=a&&s?[].forEach:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}},"3c51":function(t,e,o){"use strict";var i=o("5a9e"),r=o("fa41"),n=i.aTypedArray,a=i.exportTypedArrayMethod;a("fill",(function(t){return r.apply(n(this),arguments)}))},"3ccd":function(t,e,o){var i=o("3da3"),r=o("d88d");t.exports=function(t){if(void 0===t)return 0;var e=i(t),o=r(e);if(e!==o)throw RangeError("Wrong length or index");return o}},4140:function(t,e,o){"use strict";var i=o("5a9e"),r=o("ef4c"),n=o("efe2"),a=i.aTypedArray,s=i.aTypedArrayConstructor,l=i.exportTypedArrayMethod,c=[].slice,h=n((function(){new Int8Array(1).slice()}));l("slice",(function(t,e){var o=c.call(a(this),t,e),i=r(this,this.constructor),n=0,l=o.length,h=new(s(i))(l);while(l>n)h[n]=o[n++];return h}),h)},4350:function(t,e,o){var i=o("90fb");e.f=i},"513c":function(t,e,o){"use strict";var i=o("1e2c"),r=o("d890"),n=o("e8d6"),a=o("1944"),s=o("faa8"),l=o("2118"),c=o("7063"),h=o("9f67"),u=o("efe2"),d=o("6d60"),f=o("b338").f,g=o("aa6b").f,p=o("d910").f,m=o("c10f").trim,v="Number",y=r[v],x=y.prototype,b=l(d(x))==v,w=function(t){var e,o,i,r,n,a,s,l,c=h(t,!1);if("string"==typeof c&&c.length>2)if(c=m(c),e=c.charCodeAt(0),43===e||45===e){if(o=c.charCodeAt(2),88===o||120===o)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+c}for(n=c.slice(2),a=n.length,s=0;s<a;s++)if(l=n.charCodeAt(s),l<48||l>r)return NaN;return parseInt(n,i)}return+c};if(n(v,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var B,I=function(t){var e=arguments.length<1?0:t,o=this;return o instanceof I&&(b?u((function(){x.valueOf.call(o)})):l(o)!=v)?c(new y(w(e)),o,I):w(e)},C=i?f(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),T=0;C.length>T;T++)s(y,B=C[T])&&!s(I,B)&&p(I,B,g(y,B));I.prototype=x,x.constructor=I,a(r,v,I)}},"58d8":function(t,e,o){var i=o("0c3c"),r=o("3553"),n=o("692f"),a=o("d88d"),s=function(t){return function(e,o,s,l){i(o);var c=r(e),h=n(c),u=a(c.length),d=t?u-1:0,f=t?-1:1;if(s<2)while(1){if(d in h){l=h[d],d+=f;break}if(d+=f,t?d<0:u<=d)throw TypeError("Reduce of empty array with no initial value")}for(;t?d>=0:u>d;d+=f)d in h&&(l=o(l,h[d],d,c));return l}};t.exports={left:s(!1),right:s(!0)}},"5a9e":function(t,e,o){"use strict";var i,r=o("d77f"),n=o("1e2c"),a=o("d890"),s=o("a719"),l=o("faa8"),c=o("2a91"),h=o("0fc1"),u=o("1944"),d=o("d910").f,f=o("908e"),g=o("50fb"),p=o("90fb"),m=o("7e8b"),v=a.Int8Array,y=v&&v.prototype,x=a.Uint8ClampedArray,b=x&&x.prototype,w=v&&f(v),B=y&&f(y),I=Object.prototype,C=I.isPrototypeOf,T=p("toStringTag"),A=m("TYPED_ARRAY_TAG"),M=r&&!!g&&"Opera"!==c(a.opera),S=!1,O={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},_=function(t){var e=c(t);return"DataView"===e||l(O,e)},L=function(t){return s(t)&&l(O,c(t))},E=function(t){if(L(t))return t;throw TypeError("Target is not a typed array")},k=function(t){if(g){if(C.call(w,t))return t}else for(var e in O)if(l(O,i)){var o=a[e];if(o&&(t===o||C.call(o,t)))return t}throw TypeError("Target is not a typed array constructor")},P=function(t,e,o){if(n){if(o)for(var i in O){var r=a[i];r&&l(r.prototype,t)&&delete r.prototype[t]}B[t]&&!o||u(B,t,o?e:M&&y[t]||e)}},R=function(t,e,o){var i,r;if(n){if(g){if(o)for(i in O)r=a[i],r&&l(r,t)&&delete r[t];if(w[t]&&!o)return;try{return u(w,t,o?e:M&&v[t]||e)}catch(s){}}for(i in O)r=a[i],!r||r[t]&&!o||u(r,t,e)}};for(i in O)a[i]||(M=!1);if((!M||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},M))for(i in O)a[i]&&g(a[i],w);if((!M||!B||B===I)&&(B=w.prototype,M))for(i in O)a[i]&&g(a[i].prototype,B);if(M&&f(b)!==B&&g(b,B),n&&!l(B,T))for(i in S=!0,d(B,T,{get:function(){return s(this)?this[A]:void 0}}),O)a[i]&&h(a[i],A,i);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:S&&A,aTypedArray:E,aTypedArrayConstructor:k,exportTypedArrayMethod:P,exportTypedArrayStaticMethod:R,isView:_,isTypedArray:L,TypedArray:w,TypedArrayPrototype:B}},"5ee6":function(t,e,o){"use strict";var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[!0===t.showChooseBtn&&!0===t.isModal?o("div",{on:{click:t.handleOpen}},[t._t("openImgCutter"),t._t("open")],2):t._e(),t.$slots.openImgCutter||t.$slots.open||!0!==t.isModal?t._e():o("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.handleOpen}},[t._v(t._s(t.label))]),o("transition",{attrs:{name:"fade"}},[t.visible?o("div",{ref:"mask",class:!0===t.isModal?"mask vue-img-cutter":""},[t.visible?o("div",{class:!0===t.isModal?"dialogBoxModal":"dialogBox"},[o("transition",{attrs:{name:"fade","enter-class":"fade-in-enter","enter-active-class":"fade-in-active","leave-class":"fade-out-enter","leave-active-class":"fade-out-active"}},[o("div",{ref:"dialogMainModalRef",class:!0===t.isModal?"dialogMainModal":"dialogMain",style:"width:"+(!0===t.isModal?t.boxWidth+32:t.boxWidth)+"px"},[o("div",{staticClass:"toolMain"},[!0===t.isModal?o("div",{staticClass:"tool-title"},[t._v(" 图片裁剪 "),o("span",{staticClass:"closeIcon",on:{click:t.handleClose}},[t._v("×")])]):t._e(),o("div",{ref:"toolBox",staticClass:"toolBox",style:"height:"+t.boxHeight+"px;width:"+t.boxWidth+"px",on:{mousemove:t.controlBtnMouseMove,mouseup:t.controlBtnMouseUp,mouseleave:t.controlBtnMouseUp}},[o("div",{directives:[{name:"show",rawName:"v-show",value:!t.drawImg.img&&!0===t.showChooseBtn,expression:"!drawImg.img && showChooseBtn===true"}],staticClass:"tips"},[o("div",{staticClass:"btn btn-warning btn-xs",on:{click:t.chooseImg}},[t._v(t._s(t.label))])]),1==t.tool?o("div",{directives:[{name:"show",rawName:"v-show",value:this.drawImg.img&&!0!==t.dropImg.active&&1==t.controlBox.disable&&1==t.toolBox.disable,expression:"this.drawImg.img && dropImg.active!==true && controlBox.disable==true && toolBox.disable==true"}],staticClass:"dockMain",style:"background:"+this.toolBgc,on:{mouseenter:t.dropImgOff}},[t.rate?o("div",{staticClass:"dockBtn"},[t._t("ratio",[t._v(" Ratio: ")]),t._v(" "+t._s(t.rate)+" ")],2):t._e(),o("div",{staticClass:"dockBtn",on:{click:t.scaleReset}},[t._t("scaleReset",[t._v(" Scale: ")]),t._v(" "+t._s(t.drawImg.swidth>0?(t.drawImg.width/t.drawImg.swidth).toFixed(2):"-")+" ")],2),!1===t.originalGraph?o("div",{staticClass:"dockBtn",on:{click:function(e){return t.turnImg(-90)}}},[t._t("turnLeft",[t._v(" ↳ ")])],2):t._e(),!1===t.originalGraph?o("div",{staticClass:"dockBtn",on:{click:function(e){return t.turnImg(90)}}},[t._t("turnRight",[t._v(" ↲ ")])],2):t._e(),!1===t.originalGraph?o("div",{staticClass:"dockBtn",on:{click:function(e){return t.turnReset()}}},[t._t("reset",[t._v(" ↻ ")])],2):t._e(),!1===t.originalGraph?o("div",{staticClass:"dockBtnScrollBar"},[o("div",{ref:"dockBtnScrollControl",staticClass:"scrollBarControl",style:"left:"+t.rotateControl.position+"px",on:{mousemove:t.scrollBarControlMove,mousedown:t.scrollBarControlOn,mouseleave:t.scrollBarControlOff,mouseup:t.scrollBarControlOff}}),1==t.rotateControl.active?o("div",{staticClass:"scrollBarText",style:"left:"+t.rotateControl.position+"px"},[t._v(" "+t._s(t.rotateImg.angle.toFixed(0)+"°")+" ")]):t._e()]):t._e(),!1===t.originalGraph?o("div",{staticClass:"dockBtn",on:{click:t.flipHorizontal}},[t._t("flipHorizontal",[t._v(" ⇆ ")])],2):t._e(),!1===t.originalGraph?o("div",{staticClass:"dockBtn",on:{click:t.flipVertically}},[t._t("turnRight",[t._v(" ⇅ ")])],2):t._e()]):t._e(),o("div",{directives:[{name:"show",rawName:"v-show",value:null!=t.drawImg.img,expression:"drawImg.img!=null"}],ref:"toolBoxControl",staticClass:"toolBoxControl",on:{mousedown:t.toolBoxMouseDown,mouseup:t.toolBoxMouseUp,mousemove:t.toolBoxMouseMove,mouseleave:t.toolBoxMouseLeave}},[o("div",{staticClass:"toolBoxControlBox"},[o("div",{staticClass:"controlBox"},[o("div",{staticClass:"controlBoxInnerLine controlBoxInnerLineTop"}),o("div",{staticClass:"controlBoxInnerLine controlBoxInnerLineBottom"}),o("div",{staticClass:"controlBoxInnerLine controlBoxInnerLineLeft"}),o("div",{staticClass:"controlBoxInnerLine controlBoxInnerLineRight"}),!1===t.originalGraph?o("div",{staticClass:"selectArea"},[t._v(" 宽:"+t._s(t.toolBox.width)+" 高:"+t._s(t.toolBox.height)+" (x:"+t._s(t.toolBoxPosition.x)+",y:"+t._s(t.toolBoxPosition.y)+") ")]):t._e(),!0===t.originalGraph?o("div",{staticClass:"selectArea"},[t._v(" 宽:"+t._s((t.toolBox.width/(t.drawImg.width/t.drawImg.swidth)).toFixed(0))+" 高:"+t._s((t.toolBox.height/(t.drawImg.width/t.drawImg.swidth)).toFixed(0))+" (x:"+t._s(t.toolBoxPosition.x)+",y:"+t._s(t.toolBoxPosition.y)+") ")]):t._e(),!0===t.sizeChange?o("div",{staticClass:"leftUp controlBtn",attrs:{"data-name":"leftUp"},on:{mousedown:function(e){return t.controlBtnMouseDown(e,"leftUp")}}}):t._e(),!0===t.sizeChange?o("div",{staticClass:"leftDown controlBtn",attrs:{"data-name":"leftDown"},on:{mousedown:function(e){return t.controlBtnMouseDown(e,"leftDown")}}}):t._e(),!0===t.sizeChange?o("div",{staticClass:"rightUp controlBtn",attrs:{"data-name":"rightUp"},on:{mousedown:function(e){return t.controlBtnMouseDown(e,"rightUp")}}}):t._e(),!0===t.sizeChange?o("div",{staticClass:"rightDown controlBtn",attrs:{"data-name":"rightDown"},on:{mousedown:function(e){return t.controlBtnMouseDown(e,"rightDown")}}}):t._e(),!0===t.sizeChange&&!t.rate&&this.toolBox.width>20?o("div",{staticClass:"topCenter controlBtn",attrs:{"data-name":"topCenter"},on:{mousedown:function(e){return t.controlBtnMouseDown(e,"topCenter")}}}):t._e(),!0===t.sizeChange&&!t.rate&&this.toolBox.width>20?o("div",{staticClass:"downCenter controlBtn",attrs:{"data-name":"downCenter"},on:{mousedown:function(e){return t.controlBtnMouseDown(e,"downCenter")}}}):t._e(),!0===t.sizeChange&&!t.rate&&this.toolBox.height>20?o("div",{staticClass:"leftCenter controlBtn",attrs:{"data-name":"leftCenter"},on:{mousedown:function(e){return t.controlBtnMouseDown(e,"leftCenter")}}}):t._e(),!0===t.sizeChange&&!t.rate&&this.toolBox.height>20?o("div",{staticClass:"rightCenter controlBtn",attrs:{"data-name":"rightCenter"},on:{mousedown:function(e){return t.controlBtnMouseDown(e,"rightCenter")}}}):t._e()]),o("div",{staticClass:"toolBoxControlLine toolBoxControlLineItem-1"}),o("div",{staticClass:"toolBoxControlLine toolBoxControlLineItem-2"}),o("div",{staticClass:"toolBoxControlLine toolBoxControlLineItem-3"}),o("div",{staticClass:"toolBoxControlLine toolBoxControlLineItem-4"})])]),o("div",{staticClass:"copyright"},[t.DoNotDisplayCopyright?t._e():o("a",{attrs:{target:"_blank",href:"https://github.com/acccccccb/vue-img-cutter",rel:"nofollow"}},[t._v("vue-img-cutter "+t._s(t.version))])]),o("canvas",{ref:"canvasSelectBox",staticClass:"canvasSelectBox",attrs:{width:t.boxWidth,height:t.boxHeight},on:{mousedown:t.dropImgOn,mouseup:t.dropImgOff,mousemove:t.dropImgMove}}),o("canvas",{ref:"canvas",staticClass:"canvas",attrs:{width:t.boxWidth,height:t.boxHeight}})])]),o("div",{staticClass:"i-dialog-footer"},[o("input",{ref:"inputFile",staticStyle:{width:"1px",height:"1px",border:"none",opacity:"0"},attrs:{type:"file",accept:"image/gif, image/jpeg ,image/png"},on:{change:t.putImgToCanv}}),o("span",{on:{click:t.chooseImg}},[t._t("choose",[!0===t.showChooseBtn?o("div",{staticClass:"btn btn-primary btn-primary-plain"},[t._v(t._s(t.label))]):t._e()])],2),o("div",{staticClass:"btn-group fr"},[o("span",{on:{click:t.handleClose}},[t._t("cancel",[o("button",{staticClass:"btn btn-default",attrs:{type:"button"}},[t._v("取消")])])],2),o("span",{on:{click:function(e){return t.cropPicture(!1)}}},[t._t("confirm",[o("button",{staticClass:"btn btn-primary",staticStyle:{"margin-left":"15px"},attrs:{type:"button",disabled:!t.drawImg.img}},[t._v("确定")])])],2)])])])]),o("div",{staticStyle:{clear:"both"}})],1):t._e()]):t._e()])],1)},r=[];o("ecb4"),o("053b"),o("513c"),o("e18c"),o("e35a"),o("f4e3"),o("0d7a"),o("8256"),o("ab6e"),o("927c"),o("3c51"),o("db0a"),o("1cc1"),o("ab0f"),o("fc6e"),o("f30b"),o("cfd1"),o("d104"),o("f74a"),o("3598"),o("b497"),o("2909"),o("a7ef"),o("b523"),o("e671"),o("4140"),o("83db"),o("829d"),o("939f"),o("1bb1"),o("c3ba"),o("f3dd"),o("dbb3"),o("fe59"),o("b73f"),o("bf84"),o("fe8a"),o("08ba");function n(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function a(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function s(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?a(Object(o),!0).forEach((function(e){n(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}o("0a51"),o("9b11"),o("96db"),o("af86");function l(t){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}var c=o("e84e"),h={name:"ImgCutter",props:{crossOrigin:{type:Boolean,default:!1,required:!1},crossOriginHeader:{type:String,default:"*",required:!1},label:{type:String,default:"选择图片",required:!1},isModal:{type:Boolean,default:!0,required:!1},lockScroll:{type:Boolean,default:!0,required:!1},showChooseBtn:{type:Boolean,default:!0,required:!1},boxWidth:{type:Number,default:800,required:!1},boxHeight:{type:Number,default:400,required:!1},cutWidth:{type:Number,default:200,required:!1},cutHeight:{type:Number,default:200,required:!1},rate:{type:String,default:null,required:!1},tool:{type:Boolean,default:!0,required:!1},toolBgc:{type:String,default:"#fff",required:!1},sizeChange:{type:Boolean,default:!0,required:!1},originalGraph:{type:Boolean,default:!1,required:!1},moveAble:{type:Boolean,default:!0,required:!1},CuttingOriginal:{type:Boolean,default:!1,required:!1},WatermarkText:{type:String,default:"",required:!1},WatermarkTextFont:{type:String,default:"12px Sans-serif",required:!1},WatermarkTextColor:{type:String,default:"#fff",required:!1},WatermarkTextX:{type:Number,default:.95,required:!1},WatermarkTextY:{type:Number,default:.95,required:!1},smallToUpload:{type:Boolean,default:!1,required:!1},saveCutPosition:{type:Boolean,default:!1,required:!1},scaleAble:{type:Boolean,default:!0,required:!1},DoNotDisplayCopyright:{type:Boolean,default:!1,required:!1}},model:["label","boxWidth","boxHeight","rate","tool","DoNotDisplayCopyright"],data:function(){var t,e;return t=this.boxWidth/2,e=this.boxHeight/2,{version:"",visible:!1,fileName:"",cutImageObj:null,onPrintImgTimmer:null,toolBoxPosition:{x:0,y:0},drawImg:{img:null,sx:0,sy:0,swidth:0,sheight:0,x:0,y:0,width:0,height:0},toolBox:{disable:!0,width:t,height:e,x:0,y:0,boxMove:{start:{x:0,y:0},moveTo:{x:0,y:0}}},dropImg:{active:!1,pageX:0,pageY:0,params:{}},rotateImg:{angle:0},rotateControl:{active:!1,start:{x:0,y:0},position:100},scaleImg:{rate:0,params:{}},controlBox:{disable:!0,btnName:"",start:{x:0,y:0,width:0,height:0}},selectBox:!1,selectBoxColor:"rgba(0,0,0,0.6)",isFlipHorizontal:!1,isFlipVertically:!1}},mounted:function(){var t=this;this.version=c.version,!1===this.isModal&&(this.visible=!0,this.$nextTick((function(){t.$refs["toolBox"].onmousewheel=t.scaleImgWheel,t.$refs["toolBox"].addEventListener("DOMMouseScroll",t.scaleImgWheel)})))},methods:{handleOpen:function(t){var e=this,o=this,i=function(t){if(o.$refs["toolBox"].onmousewheel=e.scaleImgWheel,o.$refs["toolBox"].addEventListener("DOMMouseScroll",e.scaleImgWheel),!0===o.isModal){!0===o.lockScroll&&(document.body.style.overflowY="hidden");var i=o.$refs["dialogMainModalRef"].offsetHeight+200,r=window.innerHeight,n=o.$refs["mask"];n.style.overflowY=i>r?"scroll":"hidden"}t&&"function"===typeof t&&t()};if(t&&"object"==l(t)&&t.src){if(!t.name)throw new Error("传入参数必须包含:src,name");var r=new Image;!0===this.crossOrigin&&(r.crossOrigin=this.crossOriginHeader),r.name=t.name,r.style.position="fixed",r.style.top=-5e3,r.style.opacity=0,r.onerror=function(t){console.error("图片加载失败"),o.$emit("error",{event:t,msg:"图片加载失败"}),o.clearCutImageObj()},r.onload=function(){if(!0!==r.complete)throw new Error("图片加载失败");o.visible=!0,o.$nextTick((function(){i((function(){o.importImgToCanv(r)}))}))},r.src=t.src,this.cutImageObj=r,document.body.appendChild(r),this.$emit("onChooseImg",t)}else o.visible=!0,o.$nextTick((function(){i()}))},handleClose:function(){var t=this;this.clearAll(),!0===this.isModal&&(!0===this.lockScroll&&(document.body.style.overflowY="scroll"),this.$nextTick((function(){t.visible=!1})))},chooseImg:function(){this.$refs["inputFile"].click()},importImgToCanv:function(t){var e=this;e.fileName=t.name;var o,i=t.height,r=t.width,n=e.boxWidth,a=e.boxHeight,l=s({},e.drawImg);l.img=t,e.scaleImg.rate=r/i,i<a&&r<n?(o=1,l.x=(n-r)/2,l.y=(a-i)/2):r/i<=n/a?(o=a/i,l.x=(n-r*o)/2):(o=n/r,l.y=(a-i*o)/2),l.swidth=r,l.sheight=i,l.width=r*o,l.height=i*o,l.x=(n-l.width)/2,l.y=(a-l.height)/2,e.$set(e,"drawImg",l),e.printImg(),e.putToolBox()},putImgToCanv:function(t){var e,o=this;if(!t.target.files)return console.error("IE9及以下需要自己传入image对象"),!1;if(e=t.target.files[0]||null,e){this.fileName=e.name;var i=new FileReader;new Image,i.readAsDataURL(e),i.onload=function(t){var r=t.target.result,n=document.createElement("img");n.src=r;var a=setInterval((function(){if(2==i.readyState){if(clearInterval(a),!o.sizeChange&&o.smallToUpload&&n.width<=o.cutWidth&&n.height<=o.cutHeight)return o.handleClose(),void o.$emit("cutDown",{filename:e.name,file:e});var t,r=n.height,l=n.width,c=o.boxWidth,h=o.boxHeight,u=s({},o.drawImg);u.img=n,o.scaleImg.rate=l/r,r<h&&l<c?(t=1,u.x=(c-l)/2,u.y=(h-r)/2):l/r<=c/h?(t=h/r,u.x=(c-l*t)/2):(t=c/l,u.y=(h-r*t)/2),u.swidth=l,u.sheight=r,u.width=l*t,u.height=r*t,u.x=(c-u.width)/2,u.y=(h-u.height)/2,o.$set(o,"drawImg",u),o.printImg(),o.putToolBox()}}),200)},this.$emit("onChooseImg",e)}},putToolBox:function(){this.toolBox.width!==this.boxWidth/2&&this.toolBox.height!==this.boxHeight/2&&!1!==this.saveCutPosition||(this.toolBox.width=this.cutWidth>this.boxWidth?this.boxWidth:this.cutWidth,this.toolBox.height=this.cutHeight>this.boxHeight?this.boxHeight:this.cutHeight),(0===this.toolBox.x&&0===this.toolBox.y||!1===this.saveCutPosition)&&(this.toolBox.x=this.boxWidth/2-this.toolBox.width/2,this.toolBox.y=this.boxHeight/2-this.toolBox.height/2),this.drawControlBox(this.toolBox.width,this.toolBox.height,this.toolBox.x,this.toolBox.y)},isSupportFileApi:function(){return!!(window.File&&window.FileList&&window.FileReader&&window.Blob&&-1===navigator.userAgent.indexOf("Edge")&&-1===navigator.userAgent.indexOf("MSIE")&&-1===navigator.userAgent.indexOf("Trident"))},dataURLtoFile:function(t,e){var o=t.split(","),i=o[0].match(/:(.*?);/)[1],r=atob(o[1]),n=r.length,a=new Uint8Array(n);while(n--)a[n]=r.charCodeAt(n);if(this.isSupportFileApi()){var s=new File([a],e,{type:i});return s}return"不支持File对象"},clearAll:function(){var t=this,e=t.$refs["canvas"],o=e.getContext("2d");o.clearRect(0,0,e.width,e.height);var i=t.$refs["canvasSelectBox"],r=i.getContext("2d");r.clearRect(0,0,i.width,i.height);var n=t.drawImg.sx,a=t.drawImg.sy;this.drawImg={img:null,sx:n,sy:a,swidth:0,sheight:0,x:0,y:0,width:0,height:0},this.isFlipHorizontal=!1,this.isFlipVertically=!1,this.$refs["inputFile"].value="",this.rotateImg.angle=0,this.drawImg.img=null,this.turnReset(),this.clearCutImageObj(),this.$emit("onClearAll")},clearCutImageObj:function(){null!==this.cutImageObj&&void 0!==this.cutImageObj&&("function"===typeof this.cutImageObj.remove?this.cutImageObj.remove():this.cutImageObj.removeNode()),this.cutImageObj=null},drawControlBox:function(t,e,o,i){var r=this;t>this.boxWidth&&(t=this.boxWidth),e>this.boxHeight&&(e=this.boxHeight),o<0&&(o=0),i<0&&(i=0);var n,a,s=this.$refs["toolBoxControl"],l=this.$refs["canvasSelectBox"],c=l.getContext("2d");if(c.fillStyle=this.selectBoxColor,c.clearRect(0,0,l.width,l.height),c.fillRect(0,0,l.width,l.height),this.rate&&""!==this.rate){var h=this.rate.split(":")[0]/this.rate.split(":")[1];h>=1?(n=t,a=t/h):(n=e*h,a=e)}else n=t,a=e;this.toolBox.width=n,this.toolBox.height=a,s.style.width=Math.abs(n)+"px",s.style.height=Math.abs(a)+"px",this.toolBox.boxMove.moveTo.x=o,this.toolBox.boxMove.moveTo.y=i,n<0&&(o+=n),a<0&&(i+=a),o+this.toolBox.width>this.boxWidth&&(o=this.boxWidth-this.toolBox.width),o<0&&(o=0),i+this.toolBox.height>this.boxHeight&&(i=this.boxHeight-this.toolBox.height),i<0&&(i=0),this.toolBoxPosition.x=o,this.toolBoxPosition.y=i,s.style.left=o+"px",s.style.top=i+"px",c.clearRect(o,i,Math.abs(n),Math.abs(a)),this.onPrintImgTimmer&&clearTimeout(this.onPrintImgTimmer),this.onPrintImgTimmer=setTimeout((function(){r.cropPicture(!0)}),100)},resetToolBox:function(){this.toolBox.width<0&&(this.toolBox.boxMove.moveTo.x=this.toolBox.x-this.toolBox.width),this.toolBox.height<0&&(this.toolBox.boxMove.moveTo.y=this.toolBox.y-this.toolBox.height),this.toolBox.width=Math.abs(this.toolBox.width),this.toolBox.height=Math.abs(this.toolBox.height)},toolBoxMouseDown:function(t){var e=this.$refs["toolBoxControl"];this.toolBox.x=parseInt(e.style.left.split("px")[0]),this.toolBox.y=parseInt(e.style.top.split("px")[0]),this.toolBox.disable=!1,this.dropImg.active=!1,this.toolBox.boxMove.start={x:t.pageX,y:t.pageY}},toolBoxMouseMove:function(t){if(this.dropImg.active&&this.dropImgMove(t),!1===this.toolBox.disable&&!0===this.moveAble){var e=t.pageX-this.toolBox.boxMove.start.x,o=t.pageY-this.toolBox.boxMove.start.y,i=this.toolBox.x+e,r=this.toolBox.y+o;this.drawControlBox(this.toolBox.width,this.toolBox.height,i,r)}},toolBoxMouseLeave:function(){var t=this;this.toolBox.disable=!0,this.onPrintImgTimmer&&clearTimeout(this.onPrintImgTimmer),this.onPrintImgTimmer=setTimeout((function(){t.cropPicture(!0)}),100),this.resetToolBox()},toolBoxMouseUp:function(t){this.toolBox.x=parseInt(this.toolBoxPosition.x),this.toolBox.y=parseInt(this.toolBoxPosition.y),this.toolBox.disable=!0,this.dropImg.active=!1,this.resetToolBox()},printImg:function(){var t=this;if(this.drawImg.img){var e=this.$refs["canvas"],o=e.getContext("2d");o.font="18px bold 黑体",o.fillStyle="#ff0",o.textAlign="center",o.textBaseline="middle",o.save(),o.clearRect(0,0,e.width,e.height),o.translate(this.drawImg.x+this.drawImg.width/2,this.drawImg.y+this.drawImg.height/2),o.rotate(this.rotateImg.angle*Math.PI/180),o.translate(-(this.drawImg.x+this.drawImg.width/2),-(this.drawImg.y+this.drawImg.height/2)),o.translate(this.drawImg.x,this.drawImg.y),o.scale(this.isFlipHorizontal?-1:1,this.isFlipVertically?-1:1),o.drawImage(this.drawImg.img,this.drawImg.sx,this.drawImg.sy,this.drawImg.swidth,this.drawImg.sheight,this.isFlipHorizontal?-this.drawImg.width:0,this.isFlipVertically?-this.drawImg.height:0,this.drawImg.width,this.drawImg.height),o.translate(-this.drawImg.x,this.drawImg.y),o.restore(),this.onPrintImgTimmer&&clearTimeout(this.onPrintImgTimmer),this.onPrintImgTimmer=setTimeout((function(){t.cropPicture(!0)}),100)}},dropImgOn:function(t){this.dropImg.active=!0,this.dropImg.params=s({},this.drawImg),this.dropImg.pageX=t.pageX,this.dropImg.pageY=t.pageY},dropImgOff:function(){var t=this;this.dropImg.active=!1,this.onPrintImgTimmer&&clearTimeout(this.onPrintImgTimmer),this.onPrintImgTimmer=setTimeout((function(){t.cropPicture(!0)}),100)},dropImgMove:function(t){var e=this;if(this.dropImg.active&&this.drawImg.img){var o=s({},e.drawImg);o.x=e.dropImg.params.x-(e.dropImg.pageX-t.pageX),o.y=e.dropImg.params.y-(e.dropImg.pageY-t.pageY),e.$set(e,"drawImg",o),e.printImg(),t.stopPropagation()}},scaleReset:function(){this.drawImg.width=this.drawImg.swidth,this.drawImg.height=this.drawImg.sheight,this.printImg()},scaleImgWheel:function(t){var e=this,o=this;if(o.drawImg.img&&!0===this.scaleAble){var i,r=t||window.event;r.wheelDelta?i=-r.wheelDelta/40:r.detail&&(i=r.detail);var n=50;o.drawImg.x=o.drawImg.width-9*i>n?o.drawImg.x+3*i:o.drawImg.x,o.drawImg.y=o.drawImg.width-9*i>n?o.drawImg.y+3*i:o.drawImg.y,o.drawImg.width=o.drawImg.width-9*i>n?o.drawImg.width-9*i:n,o.drawImg.height=o.drawImg.width/o.scaleImg.rate,o.printImg(),this.onPrintImgTimmer&&clearTimeout(this.onPrintImgTimmer),this.onPrintImgTimmer=setTimeout((function(){e.cropPicture(!0)}),100)}return t.preventDefault(),t.returnValue=!1,!1},flipHorizontal:function(){this.drawImg.img&&(0==this.isFlipHorizontal?this.isFlipHorizontal=!0:this.isFlipHorizontal=!1,this.printImg())},flipVertically:function(){this.drawImg.img&&(0==this.isFlipVertically?this.isFlipVertically=!0:this.isFlipVertically=!1,this.printImg())},turnImg:function(t){var e=this.rotateImg.angle,o=e+t;o>=-180&&o<=180&&(this.rotateImg.angle=o,this.rotateControl.position=o/180*100+100,this.printImg("rotate"))},turnReset:function(){this.rotateImg.angle=0,this.rotateControl.position=100,this.printImg("rotate")},controlBtnMouseDown:function(t,e){this.controlBox.disable=!1,this.controlBox.btnName=e,this.controlBox.start.x=t.clientX,this.controlBox.start.y=t.clientY,this.controlBox.start.width=this.toolBox.width,this.controlBox.start.height=this.toolBox.height,t.stopPropagation()},controlBtnMouseUp:function(t){this.controlBox.disable=!0,this.dropImgOff(),this.resetToolBox(),this.toolBoxMouseUp(),t.stopPropagation()},controlBtnMouseMove:function(t){if(!1===this.controlBox.disable){var e,o,i=t.clientX-this.controlBox.start.x,r=t.clientY-this.controlBox.start.y;"leftUp"==this.controlBox.btnName&&(e=this.toolBox.x+i,o=this.toolBox.y+r,this.toolBox.width=this.controlBox.start.width-i,this.toolBox.height=this.controlBox.start.height-r),"rightUp"==this.controlBox.btnName&&(e=this.toolBox.x,o=this.toolBox.y+r,this.toolBox.width=this.controlBox.start.width+i,this.toolBox.height=this.controlBox.start.height-r),"rightDown"==this.controlBox.btnName&&(e=this.toolBox.x,o=this.toolBox.y,this.toolBox.width=this.controlBox.start.width+i,this.toolBox.height=this.controlBox.start.height+r),"leftDown"==this.controlBox.btnName&&(e=this.toolBox.x+i,o=this.toolBox.y,this.toolBox.width=this.controlBox.start.width-i,this.toolBox.height=this.controlBox.start.height+r),"topCenter"==this.controlBox.btnName&&(e=this.toolBox.x,o=this.toolBox.y+r,this.toolBox.width=this.controlBox.start.width,this.toolBox.height=this.controlBox.start.height-r),"downCenter"==this.controlBox.btnName&&(e=this.toolBox.x,o=this.toolBox.y,this.toolBox.width=this.controlBox.start.width,this.toolBox.height=this.controlBox.start.height+r),"leftCenter"==this.controlBox.btnName&&(e=this.toolBox.x+i,o=this.toolBox.y,this.toolBox.width=this.controlBox.start.width-i,this.toolBox.height=this.controlBox.start.height),"rightCenter"==this.controlBox.btnName&&(e=this.toolBox.x,o=this.toolBox.y,this.toolBox.width=this.controlBox.start.width+i,this.toolBox.height=this.controlBox.start.height),this.drawControlBox(this.toolBox.width,this.toolBox.height,e,o)}t.stopPropagation()},cropPicture:function(t){var e=this;if(this.drawImg.img){var o=this.$refs["canvas"];if(this.WatermarkText&&!t){var i=o.getContext("2d");i.font=this.WatermarkTextFont,i.fillStyle=this.WatermarkTextColor,i.textAlign="right",i.textBaseline="bottom",i.fillText(this.WatermarkText,this.toolBox.x+this.toolBox.width*this.WatermarkTextX,this.toolBox.y+this.toolBox.height*this.WatermarkTextY)}var r=new Image;!0===this.crossOrigin&&(r.crossOrigin=this.crossOriginHeader),r.src=o.toDataURL(),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(t,e,i){window.atob?setTimeout((function(){for(var r=atob(o.toDataURL(e,i).split(",")[1]),n=r.length,a=new Uint8Array(n),s=0;s<n;s++)a[s]=r.charCodeAt(s);t(new Blob([a],{type:e||"image/png"}))}),200):t(!1,{type:"image/png"})}}),o.toBlob((function(o){if(o){var i=new FileReader;i.readAsDataURL(o),i.onload=function(){var o=setInterval((function(){if(2==i.readyState){clearInterval(o);var n=document.createElement("canvas"),a=n.getContext("2d");if(1==e.originalGraph){var s=e.drawImg.width/e.drawImg.swidth,l=e.toolBox.width/s,c=e.toolBox.height/s;n.width=l,n.height=c;var h=(e.toolBox.x-e.drawImg.x)/s,u=(e.toolBox.y-e.drawImg.y)/s,d=e.drawImg.swidth,f=e.drawImg.sheight;a.translate(-h,-u),a.drawImage(e.drawImg.img,0,0,d,f)}else{n.width=e.toolBox.width,n.height=e.toolBox.height;var g=e.toolBox;if(e.rate){var p=e.rate.split(":")[0]/e.rate.split(":")[1],m=e.rate.split(":")[0],v=e.rate.split(":")[1];m>=v?a.drawImage(r,g.x,g.y,g.width,g.width*p,0,0,g.width,g.width*p):a.drawImage(r,g.x,g.y,g.width,g.width/p,0,0,g.width,g.width/p)}else a.drawImage(r,g.x,g.y,g.width,g.height,0,0,g.width,g.height)}n.toBlob((function(o){t?e.$emit("onPrintImg",{fileName:e.fileName,blob:o,file:e.dataURLtoFile(n.toDataURL(),e.fileName),dataURL:n.toDataURL()}):(e.handleClose(),e.$emit("cutDown",{fileName:e.fileName,blob:o,file:e.dataURLtoFile(n.toDataURL(),e.fileName),dataURL:n.toDataURL()}))}),"image/jpeg",.95)}}),200)}}else{var n=document.createElement("canvas");n.width=e.toolBox.width,n.height=e.toolBox.height;var a=n.getContext("2d"),s=e.toolBox;if(e.rate){var l=e.rate.split(":")[0]/e.rate.split(":")[1];a.drawImage(r,s.x,s.y,s.width,s.width*l,0,0,s.width,s.width*l)}else a.drawImage(r,s.x,s.y,s.width,s.height,0,0,s.width,s.height);t?e.$emit("onPrintImg",{fileName:e.fileName,dataURL:n.toDataURL()}):(e.handleClose(),e.$emit("cutDown",{fileName:e.fileName,dataURL:n.toDataURL()}))}}))}else t||(console.warn("No picture selected"),e.$emit("error",{err:1,msg:"No picture selected"}))},scrollBarControlMove:function(t){if(this.rotateControl.active){var e=t.pageX-this.rotateControl.start.x,o=this.rotateControl.start.position+e;o<=0&&(o=0),o>=200&&(o=200),this.rotateControl.position=o,this.rotateImg.angle=(o-100)/100*180,this.printImg()}},scrollBarControlOn:function(t){this.rotateControl.active=!0,this.rotateControl.start.x=t.pageX,this.rotateControl.start.y=t.pageY,this.rotateControl.start.position=this.rotateControl.position},scrollBarControlOff:function(){this.rotateControl.active=!1}}},u=h,d=(o("0a0a"),o("9ca4")),f=Object(d["a"])(u,i,r,!1,null,"b09dcefa",null),g=f.exports;e["a"]=g},6176:function(t,e,o){var i=o("3da3");t.exports=function(t){var e=i(t);if(e<0)throw RangeError("The argument can't be less than 0");return e}},"6d51":function(t,e,o){var i=o("1b99"),r=o("faa8"),n=o("4350"),a=o("d910").f;t.exports=function(t){var e=i.Symbol||(i.Symbol={});r(e,t)||a(e,t,{value:n.f(t)})}},"6f82":function(t,e,o){var i=o("3553"),r=o("d88d"),n=o("b60f"),a=o("98a9"),s=o("e349"),l=o("5a9e").aTypedArrayConstructor;t.exports=function(t){var e,o,c,h,u,d,f=i(t),g=arguments.length,p=g>1?arguments[1]:void 0,m=void 0!==p,v=n(f);if(void 0!=v&&!a(v)){u=v.call(f),d=u.next,f=[];while(!(h=d.call(u)).done)f.push(h.value)}for(m&&g>2&&(p=s(p,arguments[2],2)),o=r(f.length),c=new(l(this))(o),e=0;o>e;e++)c[e]=m?p(f[e],e):f[e];return c}},7063:function(t,e,o){var i=o("a719"),r=o("50fb");t.exports=function(t,e,o){var n,a;return r&&"function"==typeof(n=e.constructor)&&n!==o&&i(a=n.prototype)&&a!==o.prototype&&r(t,a),t}},"7aeb":function(t,e,o){var i=o("6176");t.exports=function(t,e){var o=i(t);if(o%e)throw RangeError("Wrong offset");return o}},8256:function(t,e,o){var i=o("26a2");i("Uint8",(function(t){return function(e,o,i){return t(this,e,o,i)}}))},"829d":function(t,e,o){"use strict";var i=o("5a9e"),r=i.aTypedArray,n=i.exportTypedArrayMethod,a=[].sort;n("sort",(function(t){return a.call(r(this),t)}))},"83db":function(t,e,o){"use strict";var i=o("5a9e"),r=o("5dfd").some,n=i.aTypedArray,a=i.exportTypedArrayMethod;a("some",(function(t){return r(n(this),t,arguments.length>1?arguments[1]:void 0)}))},"8a1c":function(t,e,o){var i=o("a719"),r=o("2118"),n=o("90fb"),a=n("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==r(t))}},"8d7b":function(t,e,o){"use strict";var i=o("da10"),r=o("3da3"),n=o("d88d"),a=o("d7e1"),s=o("ff9c"),l=Math.min,c=[].lastIndexOf,h=!!c&&1/[1].lastIndexOf(1,-0)<0,u=a("lastIndexOf"),d=s("indexOf",{ACCESSORS:!0,1:0}),f=h||!u||!d;t.exports=f?function(t){if(h)return c.apply(this,arguments)||0;var e=i(this),o=n(e.length),a=o-1;for(arguments.length>1&&(a=l(a,r(arguments[1]))),a<0&&(a=o+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}:c},"927c":function(t,e,o){"use strict";var i=o("5a9e"),r=o("5dfd").every,n=i.aTypedArray,a=i.exportTypedArrayMethod;a("every",(function(t){return r(n(this),t,arguments.length>1?arguments[1]:void 0)}))},"939f":function(t,e,o){"use strict";var i=o("5a9e"),r=o("d88d"),n=o("e1d6"),a=o("ef4c"),s=i.aTypedArray,l=i.exportTypedArrayMethod;l("subarray",(function(t,e){var o=s(this),i=o.length,l=n(t,i);return new(a(o,o.constructor))(o.buffer,o.byteOffset+l*o.BYTES_PER_ELEMENT,r((void 0===e?i:n(e,i))-l))}))},"96db":function(t,e,o){"use strict";var i=o("f62c").charAt,r=o("b702"),n=o("99ee"),a="String Iterator",s=r.set,l=r.getterFor(a);n(String,"String",(function(t){s(this,{type:a,string:String(t),index:0})}),(function(){var t,e=l(this),o=e.string,r=e.index;return r>=o.length?{value:void 0,done:!0}:(t=i(o,r),e.index+=t.length,{value:t,done:!1})}))},"9b11":function(t,e,o){var i=o("6d51");i("iterator")},a4c7:function(t,e,o){var i=o("d890"),r=o("efe2"),n=o("f471"),a=o("5a9e").NATIVE_ARRAY_BUFFER_VIEWS,s=i.ArrayBuffer,l=i.Int8Array;t.exports=!a||!r((function(){l(1)}))||!r((function(){new l(-1)}))||!n((function(t){new l,new l(null),new l(1.5),new l(t)}),!0)||r((function(){return 1!==new l(new s(2),1,void 0).length}))},a7ef:function(t,e,o){"use strict";var i=o("5a9e"),r=o("58d8").right,n=i.aTypedArray,a=i.exportTypedArrayMethod;a("reduceRight",(function(t){return r(n(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},ab0f:function(t,e,o){"use strict";var i=o("5a9e"),r=o("5dfd").findIndex,n=i.aTypedArray,a=i.exportTypedArrayMethod;a("findIndex",(function(t){return r(n(this),t,arguments.length>1?arguments[1]:void 0)}))},ab6e:function(t,e,o){"use strict";var i=o("5a9e"),r=o("19fc"),n=i.aTypedArray,a=i.exportTypedArrayMethod;a("copyWithin",(function(t,e){return r.call(n(this),t,e,arguments.length>2?arguments[2]:void 0)}))},af86:function(t,e,o){var i=o("d890"),r=o("064b"),n=o("a133"),a=o("0fc1"),s=o("90fb"),l=s("iterator"),c=s("toStringTag"),h=n.values;for(var u in r){var d=i[u],f=d&&d.prototype;if(f){if(f[l]!==h)try{a(f,l,h)}catch(p){f[l]=h}if(f[c]||a(f,c,u),r[u])for(var g in n)if(f[g]!==n[g])try{a(f,g,n[g])}catch(p){f[g]=n[g]}}}},b497:function(t,e,o){"use strict";var i=o("5a9e"),r=o("5dfd").map,n=o("ef4c"),a=i.aTypedArray,s=i.aTypedArrayConstructor,l=i.exportTypedArrayMethod;l("map",(function(t){return r(a(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(s(n(t,t.constructor)))(e)}))}))},b523:function(t,e,o){"use strict";var i=o("5a9e"),r=i.aTypedArray,n=i.exportTypedArrayMethod,a=Math.floor;n("reverse",(function(){var t,e=this,o=r(e).length,i=a(o/2),n=0;while(n<i)t=e[n],e[n++]=e[--o],e[o]=t;return e}))},b73f:function(t,e,o){var i=o("1c8b"),r=o("efe2"),n=o("da10"),a=o("aa6b").f,s=o("1e2c"),l=r((function(){a(1)})),c=!s||l;i({target:"Object",stat:!0,forced:c,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(n(t),e)}})},bf84:function(t,e,o){var i=o("1c8b"),r=o("1e2c"),n=o("8d44"),a=o("da10"),s=o("aa6b"),l=o("1bbd");i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(t){var e,o,i=a(t),r=s.f,c=n(i),h={},u=0;while(c.length>u)o=r(i,e=c[u++]),void 0!==o&&l(h,e,o);return h}})},c051:function(t,e,o){var i=o("da10"),r=o("b338").f,n={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==n.call(t)?s(t):r(i(t))}},c10f:function(t,e,o){var i=o("2732"),r=o("fc8c"),n="["+r+"]",a=RegExp("^"+n+n+"*"),s=RegExp(n+n+"*$"),l=function(t){return function(e){var o=String(i(e));return 1&t&&(o=o.replace(a,"")),2&t&&(o=o.replace(s,"")),o}};t.exports={start:l(1),end:l(2),trim:l(3)}},c3ba:function(t,e,o){"use strict";var i=o("5a9e").exportTypedArrayMethod,r=o("efe2"),n=o("d890"),a=n.Uint8Array,s=a&&a.prototype||{},l=[].toString,c=[].join;r((function(){l.call({})}))&&(l=function(){return c.call(this)});var h=s.toString!=l;i("toString",l,h)},cfd1:function(t,e,o){"use strict";var i=o("5a9e"),r=o("45af").indexOf,n=i.aTypedArray,a=i.exportTypedArrayMethod;a("indexOf",(function(t){return r(n(this),t,arguments.length>1?arguments[1]:void 0)}))},d104:function(t,e,o){"use strict";var i=o("d890"),r=o("5a9e"),n=o("a133"),a=o("90fb"),s=a("iterator"),l=i.Uint8Array,c=n.values,h=n.keys,u=n.entries,d=r.aTypedArray,f=r.exportTypedArrayMethod,g=l&&l.prototype[s],p=!!g&&("values"==g.name||void 0==g.name),m=function(){return c.call(d(this))};f("entries",(function(){return u.call(d(this))})),f("keys",(function(){return h.call(d(this))})),f("values",m,!p),f(s,m,!p)},d77f:function(t,e){t.exports="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView},d7e1:function(t,e,o){"use strict";var i=o("efe2");t.exports=function(t,e){var o=[][t];return!!o&&i((function(){o.call(null,e||function(){throw 1},1)}))}},db0a:function(t,e,o){"use strict";var i=o("5a9e"),r=o("5dfd").filter,n=o("ef4c"),a=i.aTypedArray,s=i.aTypedArrayConstructor,l=i.exportTypedArrayMethod;l("filter",(function(t){var e=r(a(this),t,arguments.length>1?arguments[1]:void 0),o=n(this,this.constructor),i=0,l=e.length,c=new(s(o))(l);while(l>i)c[i]=e[i++];return c}))},dbb3:function(t,e,o){"use strict";var i=o("1c8b"),r=o("5dfd").filter,n=o("1ea7"),a=o("ff9c"),s=n("filter"),l=a("filter");i({target:"Array",proto:!0,forced:!s||!l},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},e026:function(t,e){var o=1/0,i=Math.abs,r=Math.pow,n=Math.floor,a=Math.log,s=Math.LN2,l=function(t,e,l){var c,h,u,d=new Array(l),f=8*l-e-1,g=(1<<f)-1,p=g>>1,m=23===e?r(2,-24)-r(2,-77):0,v=t<0||0===t&&1/t<0?1:0,y=0;for(t=i(t),t!=t||t===o?(h=t!=t?1:0,c=g):(c=n(a(t)/s),t*(u=r(2,-c))<1&&(c--,u*=2),t+=c+p>=1?m/u:m*r(2,1-p),t*u>=2&&(c++,u/=2),c+p>=g?(h=0,c=g):c+p>=1?(h=(t*u-1)*r(2,e),c+=p):(h=t*r(2,p-1)*r(2,e),c=0));e>=8;d[y++]=255&h,h/=256,e-=8);for(c=c<<e|h,f+=e;f>0;d[y++]=255&c,c/=256,f-=8);return d[--y]|=128*v,d},c=function(t,e){var i,n=t.length,a=8*n-e-1,s=(1<<a)-1,l=s>>1,c=a-7,h=n-1,u=t[h--],d=127&u;for(u>>=7;c>0;d=256*d+t[h],h--,c-=8);for(i=d&(1<<-c)-1,d>>=-c,c+=e;c>0;i=256*i+t[h],h--,c-=8);if(0===d)d=1-l;else{if(d===s)return i?NaN:u?-o:o;i+=r(2,e),d-=l}return(u?-1:1)*i*r(2,d-e)};t.exports={pack:l,unpack:c}},e671:function(t,e,o){"use strict";var i=o("5a9e"),r=o("d88d"),n=o("7aeb"),a=o("3553"),s=o("efe2"),l=i.aTypedArray,c=i.exportTypedArrayMethod,h=s((function(){new Int8Array(1).set({})}));c("set",(function(t){l(this);var e=n(arguments.length>1?arguments[1]:void 0,1),o=this.length,i=a(t),s=r(i.length),c=0;if(s+e>o)throw RangeError("Wrong length");while(c<s)this[e+c]=i[c++]}),h)},e84e:function(t){t.exports=JSON.parse('{"name":"vue-img-cutter","version":"2.1.10","description":"A image crop plug-in for Vue,you can use it to rotate、zoom images and cut any size","author":"acccccccb <tabzhang@foxmail.com>","private":false,"scripts":{"dev":"webpack-dev-server --inline --progress --config build/webpack.dev.conf.js","start":"npm run dev","build":"node build/build.js"},"dependencies":{"vue":"^2.5.2"},"devDependencies":{"autoprefixer":"^7.1.2","babel-core":"^6.22.1","babel-helper-vue-jsx-merge-props":"^2.0.3","babel-loader":"^7.1.1","babel-plugin-syntax-jsx":"^6.18.0","babel-plugin-transform-runtime":"^6.22.0","babel-plugin-transform-vue-jsx":"^3.5.0","babel-preset-env":"^1.3.2","babel-preset-stage-2":"^6.22.0","chalk":"^2.0.1","copy-webpack-plugin":"^4.0.1","css-loader":"^0.28.0","extract-text-webpack-plugin":"^3.0.0","file-loader":"^1.1.4","friendly-errors-webpack-plugin":"^1.6.1","html-webpack-plugin":"^2.30.1","js-yaml":"^3.13.1","lodash":"^4.17.15","mem":"^6.0.0","mixin-deep":"^2.0.1","node-notifier":"^5.1.2","optimize-css-assets-webpack-plugin":"^3.2.0","ora":"^1.2.0","portfinder":"^1.0.13","postcss-import":"^11.0.0","postcss-loader":"^2.0.8","postcss-url":"^7.2.1","rimraf":"^2.6.0","semver":"^5.3.0","set-value":"^3.0.1","shelljs":"^0.7.6","uglifyjs-webpack-plugin":"^1.1.1","url-loader":"^0.5.8","vue-loader":"^13.3.0","vue-style-loader":"^3.0.1","vue-template-compiler":"^2.5.2","webpack":"^3.6.0","webpack-bundle-analyzer":"^2.13.1","webpack-dev-server":"^2.11.5","webpack-merge":"^4.1.0"},"engines":{"node":">= 6.0.0","npm":">= 3.0.0"},"browserslist":["> 1%","last 2 versions","not ie <= 8"],"main":"./src/index.js","repository":{"type":"git","url":"git+https://github.com/acccccccb/vue-img-cutter.git"},"keywords":["image","crop","cutter","vue","裁剪"],"license":"Apache2.0","bugs":{"url":"https://github.com/acccccccb/vue-img-cutter/issues"},"homepage":"https://ihtmlcss.com/demo/dist/#/croptool","__npminstall_done":"Thu Dec 17 2020 17:52:23 GMT+0800 (中国标准时间)","_from":"vue-img-cutter@2.1.10","_resolved":"https://registry.npm.taobao.org/vue-img-cutter/download/vue-img-cutter-2.1.10.tgz"}')},ecb4:function(t,e,o){"use strict";var i=o("1c8b"),r=o("45af").indexOf,n=o("d7e1"),a=o("ff9c"),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,c=n("indexOf"),h=a("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:l||!c||!h},{indexOf:function(t){return l?s.apply(this,arguments)||0:r(this,t,arguments.length>1?arguments[1]:void 0)}})},edba:function(t,e,o){},f30b:function(t,e,o){"use strict";var i=o("5a9e"),r=o("45af").includes,n=i.aTypedArray,a=i.exportTypedArrayMethod;a("includes",(function(t){return r(n(this),t,arguments.length>1?arguments[1]:void 0)}))},f3dd:function(t,e,o){"use strict";var i=o("1c8b"),r=o("d890"),n=o("6d7a"),a=o("9b9d"),s=o("1e2c"),l=o("c54b"),c=o("74cb"),h=o("efe2"),u=o("faa8"),d=o("74e7"),f=o("a719"),g=o("857c"),p=o("3553"),m=o("da10"),v=o("9f67"),y=o("38b9"),x=o("6d60"),b=o("cbab"),w=o("b338"),B=o("c051"),I=o("0a60"),C=o("aa6b"),T=o("d910"),A=o("ef71"),M=o("0fc1"),S=o("1944"),O=o("6d28"),_=o("7db2"),L=o("d5a8"),E=o("7e8b"),k=o("90fb"),P=o("4350"),R=o("6d51"),N=o("27b5"),D=o("b702"),F=o("5dfd").forEach,j=_("hidden"),U="Symbol",W="prototype",H=k("toPrimitive"),$=D.set,V=D.getterFor(U),Y=Object[W],q=r.Symbol,z=n("JSON","stringify"),G=C.f,X=T.f,J=B.f,Q=A.f,K=O("symbols"),Z=O("op-symbols"),tt=O("string-to-symbol-registry"),et=O("symbol-to-string-registry"),ot=O("wks"),it=r.QObject,rt=!it||!it[W]||!it[W].findChild,nt=s&&h((function(){return 7!=x(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,e,o){var i=G(Y,e);i&&delete Y[e],X(t,e,o),i&&t!==Y&&X(Y,e,i)}:X,at=function(t,e){var o=K[t]=x(q[W]);return $(o,{type:U,tag:t,description:e}),s||(o.description=e),o},st=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof q},lt=function(t,e,o){t===Y&<(Z,e,o),g(t);var i=v(e,!0);return g(o),u(K,i)?(o.enumerable?(u(t,j)&&t[j][i]&&(t[j][i]=!1),o=x(o,{enumerable:y(0,!1)})):(u(t,j)||X(t,j,y(1,{})),t[j][i]=!0),nt(t,i,o)):X(t,i,o)},ct=function(t,e){g(t);var o=m(e),i=b(o).concat(gt(o));return F(i,(function(e){s&&!ut.call(o,e)||lt(t,e,o[e])})),t},ht=function(t,e){return void 0===e?x(t):ct(x(t),e)},ut=function(t){var e=v(t,!0),o=Q.call(this,e);return!(this===Y&&u(K,e)&&!u(Z,e))&&(!(o||!u(this,e)||!u(K,e)||u(this,j)&&this[j][e])||o)},dt=function(t,e){var o=m(t),i=v(e,!0);if(o!==Y||!u(K,i)||u(Z,i)){var r=G(o,i);return!r||!u(K,i)||u(o,j)&&o[j][i]||(r.enumerable=!0),r}},ft=function(t){var e=J(m(t)),o=[];return F(e,(function(t){u(K,t)||u(L,t)||o.push(t)})),o},gt=function(t){var e=t===Y,o=J(e?Z:m(t)),i=[];return F(o,(function(t){!u(K,t)||e&&!u(Y,t)||i.push(K[t])})),i};if(l||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=E(t),o=function(t){this===Y&&o.call(Z,t),u(this,j)&&u(this[j],e)&&(this[j][e]=!1),nt(this,e,y(1,t))};return s&&rt&&nt(Y,e,{configurable:!0,set:o}),at(e,t)},S(q[W],"toString",(function(){return V(this).tag})),S(q,"withoutSetter",(function(t){return at(E(t),t)})),A.f=ut,T.f=lt,C.f=dt,w.f=B.f=ft,I.f=gt,P.f=function(t){return at(k(t),t)},s&&(X(q[W],"description",{configurable:!0,get:function(){return V(this).description}}),a||S(Y,"propertyIsEnumerable",ut,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),F(b(ot),(function(t){R(t)})),i({target:U,stat:!0,forced:!l},{for:function(t){var e=String(t);if(u(tt,e))return tt[e];var o=q(e);return tt[e]=o,et[o]=e,o},keyFor:function(t){if(!st(t))throw TypeError(t+" is not a symbol");if(u(et,t))return et[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),i({target:"Object",stat:!0,forced:!l,sham:!s},{create:ht,defineProperty:lt,defineProperties:ct,getOwnPropertyDescriptor:dt}),i({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ft,getOwnPropertySymbols:gt}),i({target:"Object",stat:!0,forced:h((function(){I.f(1)}))},{getOwnPropertySymbols:function(t){return I.f(p(t))}}),z){var pt=!l||h((function(){var t=q();return"[null]"!=z([t])||"{}"!=z({a:t})||"{}"!=z(Object(t))}));i({target:"JSON",stat:!0,forced:pt},{stringify:function(t,e,o){var i,r=[t],n=1;while(arguments.length>n)r.push(arguments[n++]);if(i=e,(f(e)||void 0!==t)&&!st(t))return d(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!st(e))return e}),r[1]=e,z.apply(null,r)}})}q[W][H]||M(q[W],H,q[W].valueOf),N(q,U),L[j]=!0},f4e3:function(t,e,o){"use strict";var i=o("b2a2"),r=o("857c"),n=o("d88d"),a=o("2732"),s=o("38eb"),l=o("59da");i("match",1,(function(t,e,o){return[function(e){var o=a(this),i=void 0==e?void 0:e[t];return void 0!==i?i.call(e,o):new RegExp(e)[t](String(o))},function(t){var i=o(e,t,this);if(i.done)return i.value;var a=r(t),c=String(this);if(!a.global)return l(a,c);var h=a.unicode;a.lastIndex=0;var u,d=[],f=0;while(null!==(u=l(a,c))){var g=String(u[0]);d[f]=g,""===g&&(a.lastIndex=s(c,n(a.lastIndex),h)),f++}return 0===f?null:d}]}))},f74a:function(t,e,o){"use strict";var i=o("5a9e"),r=i.aTypedArray,n=i.exportTypedArrayMethod,a=[].join;n("join",(function(t){return a.apply(r(this),arguments)}))},fa41:function(t,e,o){"use strict";var i=o("3553"),r=o("e1d6"),n=o("d88d");t.exports=function(t){var e=i(this),o=n(e.length),a=arguments.length,s=r(a>1?arguments[1]:void 0,o),l=a>2?arguments[2]:void 0,c=void 0===l?o:r(l,o);while(c>s)e[s++]=t;return e}},fc6e:function(t,e,o){"use strict";var i=o("5a9e"),r=o("5dfd").forEach,n=i.aTypedArray,a=i.exportTypedArrayMethod;a("forEach",(function(t){r(n(this),t,arguments.length>1?arguments[1]:void 0)}))},fc8c:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},fe59:function(t,e,o){"use strict";var i=o("1c8b"),r=o("3c10");i({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},fe8a:function(t,e,o){var i=o("1c8b"),r=o("3553"),n=o("cbab"),a=o("efe2"),s=a((function(){n(1)}));i({target:"Object",stat:!0,forced:s},{keys:function(t){return n(r(t))}})}}]);
- //# sourceMappingURL=chunk-584056d7.f556b52c.js.map
|