vue-cropper-swx
Version:
A simple Vue picture clipping plugin
1 lines • 222 kB
JavaScript
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=134)}([function(t,e,n){var r=n(2),o=n(19),i=n(11),a=n(12),s=n(20),c=function(t,e,n){var u,f,l,p,h=t&c.F,d=t&c.G,v=t&c.S,g=t&c.P,m=t&c.B,y=d?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,b=d?o:o[e]||(o[e]={}),w=b.prototype||(b.prototype={});d&&(n=e);for(u in n)f=!h&&y&&void 0!==y[u],l=(f?y:n)[u],p=m&&f?s(l,r):g&&"function"==typeof l?s(Function.call,l):l,y&&a(y,u,l,t&c.U),b[u]!=l&&i(b,u,p),g&&w[u]!=l&&(w[u]=l)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(61)("wks"),o=n(41),i=n(2).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){t.exports=!n(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(1),o=n(106),i=n(26),a=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(25),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(23);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(7),o=n(37);t.exports=n(6)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(2),o=n(11),i=n(14),a=n(41)("src"),s=Function.toString,c=(""+s).split("toString");n(19).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(u&&(i(n,a)||o(n,a,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e,n){var r=n(0),o=n(3),i=n(23),a=/"/g,s=function(t,e,n,r){var o=String(i(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(48),o=n(37),i=n(17),a=n(26),s=n(14),c=n(106),u=Object.getOwnPropertyDescriptor;e.f=n(6)?u:function(t,e){if(t=i(t),e=a(e,!0),c)try{return u(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(14),o=n(9),i=n(81)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(47),o=n(23);t.exports=function(t){return r(o(t))}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(10);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){"use strict";var r=n(3);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){var r=n(20),o=n(47),i=n(9),a=n(8),s=n(66);t.exports=function(t,e){var n=1==t,c=2==t,u=3==t,f=4==t,l=6==t,p=5==t||l,h=e||s;return function(e,s,d){for(var v,g,m=i(e),y=o(m),b=r(s,d,3),w=a(y.length),x=0,_=n?h(e,w):c?h(e,0):void 0;w>x;x++)if((p||x in y)&&(v=y[x],g=b(v,x,m),t))if(n)_[x]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return x;case 2:_.push(v)}else if(f)return!1;return l?-1:u||f?f:_}}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(0),o=n(19),i=n(3);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(127),o=n(0),i=n(61)("metadata"),a=i.store||(i.store=new(n(130))),s=function(t,e,n){var o=a.get(t);if(!o){if(!n)return;a.set(t,o=new r)}var i=o.get(e);if(!i){if(!n)return;o.set(e,i=new r)}return i},c=function(t,e,n){var r=s(e,n,!1);return void 0!==r&&r.has(t)},u=function(t,e,n){var r=s(e,n,!1);return void 0===r?void 0:r.get(t)},f=function(t,e,n,r){s(n,r,!0).set(t,e)},l=function(t,e){var n=s(t,e,!1),r=[];return n&&n.forEach(function(t,e){r.push(e)}),r},p=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},h=function(t){o(o.S,"Reflect",t)};t.exports={store:a,map:s,has:c,get:u,set:f,keys:l,key:p,exp:h}},function(t,e,n){"use strict";if(n(6)){var r=n(30),o=n(2),i=n(3),a=n(0),s=n(63),c=n(87),u=n(20),f=n(32),l=n(37),p=n(11),h=n(38),d=n(25),v=n(8),g=n(125),m=n(40),y=n(26),b=n(14),w=n(46),x=n(4),_=n(9),C=n(73),S=n(34),A=n(16),O=n(35).f,k=n(89),M=n(41),E=n(5),I=n(22),T=n(50),P=n(62),$=n(90),j=n(42),L=n(56),N=n(39),F=n(65),W=n(98),B=n(7),R=n(15),H=B.f,D=R.f,X=o.RangeError,z=o.TypeError,Y=o.Uint8Array,U=Array.prototype,V=c.ArrayBuffer,G=c.DataView,q=I(0),K=I(2),J=I(3),Z=I(4),Q=I(5),tt=I(6),et=T(!0),nt=T(!1),rt=$.values,ot=$.keys,it=$.entries,at=U.lastIndexOf,st=U.reduce,ct=U.reduceRight,ut=U.join,ft=U.sort,lt=U.slice,pt=U.toString,ht=U.toLocaleString,dt=E("iterator"),vt=E("toStringTag"),gt=M("typed_constructor"),mt=M("def_constructor"),yt=s.CONSTR,bt=s.TYPED,wt=s.VIEW,xt=I(1,function(t,e){return Ot(P(t,t[mt]),e)}),_t=i(function(){return 1===new Y(new Uint16Array([1]).buffer)[0]}),Ct=!!Y&&!!Y.prototype.set&&i(function(){new Y(1).set({})}),St=function(t,e){var n=d(t);if(n<0||n%e)throw X("Wrong offset!");return n},At=function(t){if(x(t)&&bt in t)return t;throw z(t+" is not a typed array!")},Ot=function(t,e){if(!(x(t)&> in t))throw z("It is not a typed array constructor!");return new t(e)},kt=function(t,e){return Mt(P(t,t[mt]),e)},Mt=function(t,e){for(var n=0,r=e.length,o=Ot(t,r);r>n;)o[n]=e[n++];return o},Et=function(t,e,n){H(t,e,{get:function(){return this._d[n]}})},It=function(t){var e,n,r,o,i,a,s=_(t),c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,p=k(s);if(void 0!=p&&!C(p)){for(a=p.call(s),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);s=r}for(l&&c>2&&(f=u(f,arguments[2],2)),e=0,n=v(s.length),o=Ot(this,n);n>e;e++)o[e]=l?f(s[e],e):s[e];return o},Tt=function(){for(var t=0,e=arguments.length,n=Ot(this,e);e>t;)n[t]=arguments[t++];return n},Pt=!!Y&&i(function(){ht.call(new Y(1))}),$t=function(){return ht.apply(Pt?lt.call(At(this)):At(this),arguments)},jt={copyWithin:function(t,e){return W.call(At(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(At(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return F.apply(At(this),arguments)},filter:function(t){return kt(this,K(At(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(At(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(At(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){q(At(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(At(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(At(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ut.apply(At(this),arguments)},lastIndexOf:function(t){return at.apply(At(this),arguments)},map:function(t){return xt(At(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(At(this),arguments)},reduceRight:function(t){return ct.apply(At(this),arguments)},reverse:function(){for(var t,e=this,n=At(e).length,r=Math.floor(n/2),o=0;o<r;)t=e[o],e[o++]=e[--n],e[n]=t;return e},some:function(t){return J(At(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ft.call(At(this),t)},subarray:function(t,e){var n=At(this),r=n.length,o=m(t,r);return new(P(n,n[mt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,v((void 0===e?r:m(e,r))-o))}},Lt=function(t,e){return kt(this,lt.call(At(this),t,e))},Nt=function(t){At(this);var e=St(arguments[1],1),n=this.length,r=_(t),o=v(r.length),i=0;if(o+e>n)throw X("Wrong length!");for(;i<o;)this[e+i]=r[i++]},Ft={entries:function(){return it.call(At(this))},keys:function(){return ot.call(At(this))},values:function(){return rt.call(At(this))}},Wt=function(t,e){return x(t)&&t[bt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Bt=function(t,e){return Wt(t,e=y(e,!0))?l(2,t[e]):D(t,e)},Rt=function(t,e,n){return!(Wt(t,e=y(e,!0))&&x(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?H(t,e,n):(t[e]=n.value,t)};yt||(R.f=Bt,B.f=Rt),a(a.S+a.F*!yt,"Object",{getOwnPropertyDescriptor:Bt,defineProperty:Rt}),i(function(){pt.call({})})&&(pt=ht=function(){return ut.call(this)});var Ht=h({},jt);h(Ht,Ft),p(Ht,dt,Ft.values),h(Ht,{slice:Lt,set:Nt,constructor:function(){},toString:pt,toLocaleString:$t}),Et(Ht,"buffer","b"),Et(Ht,"byteOffset","o"),Et(Ht,"byteLength","l"),Et(Ht,"length","e"),H(Ht,vt,{get:function(){return this[bt]}}),t.exports=function(t,e,n,c){c=!!c;var u=t+(c?"Clamped":"")+"Array",l="get"+t,h="set"+t,d=o[u],m=d||{},y=d&&A(d),b=!d||!s.ABV,_={},C=d&&d.prototype,k=function(t,n){var r=t._d;return r.v[l](n*e+r.o,_t)},M=function(t,n,r){var o=t._d;c&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[h](n*e+o.o,r,_t)},E=function(t,e){H(t,e,{get:function(){return k(this,e)},set:function(t){return M(this,e,t)},enumerable:!0})};b?(d=n(function(t,n,r,o){f(t,d,u,"_d");var i,a,s,c,l=0,h=0;if(x(n)){if(!(n instanceof V||"ArrayBuffer"==(c=w(n))||"SharedArrayBuffer"==c))return bt in n?Mt(d,n):It.call(d,n);i=n,h=St(r,e);var m=n.byteLength;if(void 0===o){if(m%e)throw X("Wrong length!");if((a=m-h)<0)throw X("Wrong length!")}else if((a=v(o)*e)+h>m)throw X("Wrong length!");s=a/e}else s=g(n),a=s*e,i=new V(a);for(p(t,"_d",{b:i,o:h,l:a,e:s,v:new G(i)});l<s;)E(t,l++)}),C=d.prototype=S(Ht),p(C,"constructor",d)):i(function(){d(1)})&&i(function(){new d(-1)})&&L(function(t){new d,new d(null),new d(1.5),new d(t)},!0)||(d=n(function(t,n,r,o){f(t,d,u);var i;return x(n)?n instanceof V||"ArrayBuffer"==(i=w(n))||"SharedArrayBuffer"==i?void 0!==o?new m(n,St(r,e),o):void 0!==r?new m(n,St(r,e)):new m(n):bt in n?Mt(d,n):It.call(d,n):new m(g(n))}),q(y!==Function.prototype?O(m).concat(O(y)):O(m),function(t){t in d||p(d,t,m[t])}),d.prototype=C,r||(C.constructor=d));var I=C[dt],T=!!I&&("values"==I.name||void 0==I.name),P=Ft.values;p(d,gt,!0),p(C,bt,u),p(C,wt,!0),p(C,mt,d),(c?new d(1)[vt]==u:vt in C)||H(C,vt,{get:function(){return u}}),_[u]=d,a(a.G+a.W+a.F*(d!=m),_),a(a.S,u,{BYTES_PER_ELEMENT:e}),a(a.S+a.F*i(function(){m.of.call(d,1)}),u,{from:It,of:Tt}),"BYTES_PER_ELEMENT"in C||p(C,"BYTES_PER_ELEMENT",e),a(a.P,u,jt),N(u),a(a.P+a.F*Ct,u,{set:Nt}),a(a.P+a.F*!T,u,Ft),r||C.toString==pt||(C.toString=pt),a(a.P+a.F*i(function(){new d(1).slice()}),u,{slice:Lt}),a(a.P+a.F*(i(function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()})||!i(function(){C.toLocaleString.call([1,2])})),u,{toLocaleString:$t}),j[u]=T?I:P,r||T||p(C,dt,P)}}else t.exports=function(){}},function(t,e,n){var r=n(5)("unscopables"),o=Array.prototype;void 0==o[r]&&n(11)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e){t.exports=!1},function(t,e,n){var r=n(41)("meta"),o=n(4),i=n(14),a=n(7).f,s=0,c=Object.isExtensible||function(){return!0},u=!n(3)(function(){return c(Object.preventExtensions({}))}),f=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},h=function(t){return u&&d.NEED&&c(t)&&!i(t,r)&&f(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(20),o=n(109),i=n(73),a=n(1),s=n(8),c=n(89),u={},f={},e=t.exports=function(t,e,n,l,p){var h,d,v,g,m=p?function(){return t}:c(t),y=r(n,l,e?2:1),b=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(h=s(t.length);h>b;b++)if((g=e?y(a(d=t[b])[0],d[1]):y(t[b]))===u||g===f)return g}else for(v=m.call(t);!(d=v.next()).done;)if((g=o(v,y,d.value,e))===u||g===f)return g};e.BREAK=u,e.RETURN=f},function(t,e,n){var r=n(1),o=n(115),i=n(69),a=n(81)("IE_PROTO"),s=function(){},c=function(){var t,e=n(68)("iframe"),r=i.length;for(e.style.display="none",n(71).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(117),o=n(69).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(117),o=n(69);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(12);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(2),o=n(7),i=n(6),a=n(5)("species");t.exports=function(t){var e=r[t];i&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(25),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports={}},function(t,e,n){var r=n(7).f,o=n(14),i=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),o=n(23),i=n(3),a=n(85),s="["+a+"]",c="
",u=RegExp("^"+s+s+"*"),f=RegExp(s+s+"*$"),l=function(t,e,n){var o={},s=i(function(){return!!a[t]()||c[t]()!=c}),u=o[t]=s?e(p):a[t];n&&(o[n]=u),r(r.P+r.F*s,"String",o)},p=l.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(f,"")),t};t.exports=l},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){var r=n(18),o=n(5)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){var r=n(18);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(17),o=n(8),i=n(40);t.exports=function(t){return function(e,n,a){var s,c=r(e),u=o(c.length),f=i(a,u);if(t&&n!=n){for(;u>f;)if((s=c[f++])!=s)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){"use strict";var r=n(2),o=n(0),i=n(12),a=n(38),s=n(31),c=n(33),u=n(32),f=n(4),l=n(3),p=n(56),h=n(43),d=n(72);t.exports=function(t,e,n,v,g,m){var y=r[t],b=y,w=g?"set":"add",x=b&&b.prototype,_={},C=function(t){var e=x[t];i(x,t,"delete"==t?function(t){return!(m&&!f(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!f(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(m||x.forEach&&!l(function(){(new b).entries().next()}))){var S=new b,A=S[w](m?{}:-0,1)!=S,O=l(function(){S.has(1)}),k=p(function(t){new b(t)}),M=!m&&l(function(){for(var t=new b,e=5;e--;)t[w](e,e);return!t.has(-0)});k||(b=e(function(e,n){u(e,b,t);var r=d(new y,e,b);return void 0!=n&&c(n,g,r[w],r),r}),b.prototype=x,x.constructor=b),(O||M)&&(C("delete"),C("has"),g&&C("get")),(M||A)&&C(w),m&&x.clear&&delete x.clear}else b=v.getConstructor(e,t,g,w),a(b.prototype,n),s.NEED=!0;return h(b,t),_[t]=b,o(o.G+o.W+o.F*(b!=y),_),m||v.setStrong(b,t,g),b}},function(t,e,n){"use strict";var r=n(11),o=n(12),i=n(3),a=n(23),s=n(5);t.exports=function(t,e,n){var c=s(t),u=n(a,c,""[t]),f=u[0],l=u[1];i(function(){var e={};return e[c]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,f),r(RegExp.prototype,c,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)}))}},function(t,e,n){"use strict";var r=n(1);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(18);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(4),o=n(18),i=n(5)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,n){var r=n(5)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e,n){"use strict";t.exports=n(30)||!n(3)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete n(2)[t]})},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(0),o=n(10),i=n(20),a=n(33);t.exports=function(t){r(r.S,t,{from:function(t){var e,n,r,s,c=arguments[1];return o(this),e=void 0!==c,e&&o(c),void 0==t?new this:(n=[],e?(r=0,s=i(c,arguments[2],2),a(t,!1,function(t){n.push(s(t,r++))})):a(t,!1,n.push,n),new this(n))}})}},function(t,e,n){"use strict";var r=n(0);t.exports=function(t){r(r.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,n){var r=n(19),o=n(2),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(30)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(1),o=n(10),i=n(5)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},function(t,e,n){for(var r,o=n(2),i=n(11),a=n(41),s=a("typed_array"),c=a("view"),u=!(!o.ArrayBuffer||!o.DataView),f=u,l=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(r=o[p[l++]])?(i(r.prototype,s,!0),i(r.prototype,c,!0)):f=!1;t.exports={ABV:u,CONSTR:f,TYPED:s,VIEW:c}},function(t,e,n){var r=n(2),o=r.navigator;t.exports=o&&o.userAgent||""},function(t,e,n){"use strict";var r=n(9),o=n(40),i=n(8);t.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,u=void 0===c?n:o(c,n);u>s;)e[s++]=t;return e}},function(t,e,n){var r=n(138);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){"use strict";var r=n(7),o=n(37);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(4),o=n(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var r=n(2).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(4),o=n(80).set;t.exports=function(t,e,n){var i,a=e.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},function(t,e,n){var r=n(42),o=n(5)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){"use strict";var r=n(34),o=n(37),i=n(43),a={};n(11)(a,n(5)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){"use strict";var r=n(30),o=n(0),i=n(12),a=n(11),s=n(42),c=n(74),u=n(43),f=n(16),l=n(5)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,d,v,g,m){c(n,e,d);var y,b,w,x=function(t){if(!p&&t in A)return A[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",C="values"==v,S=!1,A=t.prototype,O=A[l]||A["@@iterator"]||v&&A[v],k=O||x(v),M=v?C?x("entries"):k:void 0,E="Array"==e?A.entries||O:O;if(E&&(w=f(E.call(new t)))!==Object.prototype&&w.next&&(u(w,_,!0),r||"function"==typeof w[l]||a(w,l,h)),C&&O&&"values"!==O.name&&(S=!0,k=function(){return O.call(this)}),r&&!m||!p&&!S&&A[l]||a(A,l,k),s[e]=k,s[_]=h,v)if(y={values:C?k:x("values"),keys:g?k:x("keys"),entries:M},m)for(b in y)b in A||i(A,b,y[b]);else o(o.P+o.F*(p||S),e,y);return y}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,n){var r=n(2),o=n(86).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,c="process"==n(18)(a);t.exports=function(){var t,e,n,u=function(){var r,o;for(c&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(u)};else if(!i||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var f=s.resolve(void 0);n=function(){f.then(u)}}else n=function(){o.call(r,u)};else{var l=!0,p=document.createTextNode("");new i(u).observe(p,{characterData:!0}),n=function(){p.data=l=!l}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=o(e),this.reject=o(n)}var o=n(10);t.exports.f=function(t){return new r(t)}},function(t,e,n){var r=n(4),o=n(1),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(20)(Function.call,n(15).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){var r=n(61)("keys"),o=n(41);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(25),o=n(23);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),c=r(n),u=s.length;return c<0||c>=u?t?"":void 0:(i=s.charCodeAt(c),i<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):i:t?s.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,n){var r=n(55),o=n(23);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(t))}},function(t,e,n){"use strict";var r=n(25),o=n(23);t.exports=function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){var r,o,i,a=n(20),s=n(107),c=n(71),u=n(68),f=n(2),l=f.process,p=f.setImmediate,h=f.clearImmediate,d=f.MessageChannel,v=f.Dispatch,g=0,m={},y=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},b=function(t){y.call(t.data)};p&&h||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++g]=function(){s("function"==typeof t?t:Function(t),e)},r(g),g},h=function(t){delete m[t]},"process"==n(18)(l)?r=function(t){l.nextTick(a(y,t,1))}:v&&v.now?r=function(t){v.now(a(y,t,1))}:d?(o=new d,i=o.port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",b,!1)):r="onreadystatechange"in u("script")?function(t){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:p,clear:h}},function(t,e,n){"use strict";function r(t,e,n){var r,o,i,a=new Array(n),s=8*n-e-1,c=(1<<s)-1,u=c>>1,f=23===e?W(2,-24)-W(2,-77):0,l=0,p=t<0||0===t&&1/t<0?1:0;for(t=F(t),t!=t||t===L?(o=t!=t?1:0,r=c):(r=B(R(t)/H),t*(i=W(2,-r))<1&&(r--,i*=2),t+=r+u>=1?f/i:f*W(2,1-u),t*i>=2&&(r++,i/=2),r+u>=c?(o=0,r=c):r+u>=1?(o=(t*i-1)*W(2,e),r+=u):(o=t*W(2,u-1)*W(2,e),r=0));e>=8;a[l++]=255&o,o/=256,e-=8);for(r=r<<e|o,s+=e;s>0;a[l++]=255&r,r/=256,s-=8);return a[--l]|=128*p,a}function o(t,e,n){var r,o=8*n-e-1,i=(1<<o)-1,a=i>>1,s=o-7,c=n-1,u=t[c--],f=127&u;for(u>>=7;s>0;f=256*f+t[c],c--,s-=8);for(r=f&(1<<-s)-1,f>>=-s,s+=e;s>0;r=256*r+t[c],c--,s-=8);if(0===f)f=1-a;else{if(f===i)return r?NaN:u?-L:L;r+=W(2,e),f-=a}return(u?-1:1)*r*W(2,f-e)}function i(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function a(t){return[255&t]}function s(t){return[255&t,t>>8&255]}function c(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function u(t){return r(t,52,8)}function f(t){return r(t,23,4)}function l(t,e,n){O(t[E],e,{get:function(){return this[n]}})}function p(t,e,n,r){var o=+n,i=S(o);if(i+e>t[X])throw j(I);var a=t[D]._b,s=i+t[z],c=a.slice(s,s+e);return r?c:c.reverse()}function h(t,e,n,r,o,i){var a=+n,s=S(a);if(s+e>t[X])throw j(I);for(var c=t[D]._b,u=s+t[z],f=r(+o),l=0;l<e;l++)c[u+l]=f[i?l:e-l-1]}var d=n(2),v=n(6),g=n(30),m=n(63),y=n(11),b=n(38),w=n(3),x=n(32),_=n(25),C=n(8),S=n(125),A=n(35).f,O=n(7).f,k=n(65),M=n(43),E="prototype",I="Wrong index!",T=d.ArrayBuffer,P=d.DataView,$=d.Math,j=d.RangeError,L=d.Infinity,N=T,F=$.abs,W=$.pow,B=$.floor,R=$.log,H=$.LN2,D=v?"_b":"buffer",X=v?"_l":"byteLength",z=v?"_o":"byteOffset";if(m.ABV){if(!w(function(){T(1)})||!w(function(){new T(-1)})||w(function(){return new T,new T(1.5),new T(NaN),"ArrayBuffer"!=T.name})){T=function(t){return x(this,T),new N(S(t))};for(var Y,U=T[E]=N[E],V=A(N),G=0;V.length>G;)(Y=V[G++])in T||y(T,Y,N[Y]);g||(U.constructor=T)}var q=new P(new T(2)),K=P[E].setInt8;q.setInt8(0,2147483648),q.setInt8(1,2147483649),!q.getInt8(0)&&q.getInt8(1)||b(P[E],{setInt8:function(t,e){K.call(this,t,e<<24>>24)},setUint8:function(t,e){K.call(this,t,e<<24>>24)}},!0)}else T=function(t){x(this,T,"ArrayBuffer");var e=S(t);this._b=k.call(new Array(e),0),this[X]=e},P=function(t,e,n){x(this,P,"DataView"),x(t,T,"DataView");var r=t[X],o=_(e);if(o<0||o>r)throw j("Wrong offset!");if(n=void 0===n?r-o:C(n),o+n>r)throw j("Wrong length!");this[D]=t,this[z]=o,this[X]=n},v&&(l(T,"byteLength","_l"),l(P,"buffer","_b"),l(P,"byteLength","_l"),l(P,"byteOffset","_o")),b(P[E],{getInt8:function(t){return p(this,1,t)[0]<<24>>24},getUint8:function(t){return p(this,1,t)[0]},getInt16:function(t){var e=p(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=p(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return i(p(this,4,t,arguments[1]))},getUint32:function(t){return i(p(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return o(p(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return o(p(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){h(this,1,t,a,e)},setUint8:function(t,e){h(this,1,t,a,e)},setInt16:function(t,e){h(this,2,t,s,e,arguments[2])},setUint16:function(t,e){h(this,2,t,s,e,arguments[2])},setInt32:function(t,e){h(this,4,t,c,e,arguments[2])},setUint32:function(t,e){h(this,4,t,c,e,arguments[2])},setFloat32:function(t,e){h(this,4,t,f,e,arguments[2])},setFloat64:function(t,e){h(this,8,t,u,e,arguments[2])}});M(T,"ArrayBuffer"),M(P,"DataView"),y(P[E],m.VIEW,!0),e.ArrayBuffer=T,e.DataView=P},function(t,e,n){var r=n(2),o=n(19),i=n(30),a=n(126),s=n(7).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(46),o=n(5)("iterator"),i=n(42);t.exports=n(19).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){"use strict";var r=n(29),o=n(110),i=n(42),a=n(17);t.exports=n(75)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,s){t=t||{};var c=typeof t.default;"object"!==c&&"function"!==c||(t=t.default);var u="function"==typeof t?t.options:t;e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId=i);var f;if(a?(f=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(a)},u._ssrRegister=f):o&&(f=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(u.functional){u._injectStyles=f;var l=u.render;u.render=function(t,e){return f.call(e),l(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,f):[f]}return{exports:t,options:u}}e.a=r},function(t,e,n){"use strict";function r(t,e,r,i){v=r,m=i||{};var a=n.i(u.a)(t,e);return o(a),function(e){for(var r=[],i=0;i<a.length;i++){var s=a[i],c=l[s.id];c.refs--,r.push(c)}e?(a=n.i(u.a)(t,e),o(a)):a=[];for(var i=0;i<r.length;i++){var c=r[i];if(0===c.refs){for(var f=0;f<c.parts.length;f++)c.parts[f]();delete l[c.id]}}}}function o(t){for(var e=0;e<t.length;e++){var n=t[e],r=l[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(a(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{for(var i=[],o=0;o<n.parts.length;o++)i.push(a(n.parts[o]));l[n.id]={id:n.id,refs:1,parts:i}}}}function i(){var t=document.createElement("style");return t.type="text/css",p.appendChild(t),t}function a(t){var e,n,r=document.querySelector("style["+y+'~="'+t.id+'"]');if(r){if(v)return g;r.parentNode.removeChild(r)}if(b){var o=d++;r=h||(h=i()),e=s.bind(null,r,o,!1),n=s.bind(null,r,o,!0)}else r=i(),e=c.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}function s(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=w(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function c(t,e){var n=e.css,r=e.media,o=e.sourceMap;if(r&&t.setAttribute("media",r),m.ssrId&&t.setAttribute(y,e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var u=n(351),f="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!f)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l={},p=f&&(document.head||document.getElementsByTagName("head")[0]),h=null,d=0,v=!1,g=function(){},m=null,y="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase()),w=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){"use strict";var r=n(344),o=n(343),i="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};e.a={data:function(){return{model:!1,modelSrc:"",crap:!1,previews:{},lists:[{img:"https://avatars2.githubusercontent.com/u/15681693?s=460&v=4"},{img:"http://cdn.xyxiao.cn/Landscape_1.jpg"},{img:"http://cdn.xyxiao.cn/Landscape_2.jpg"},{img:"http://cdn.xyxiao.cn/Landscape_3.jpg"},{img:"http://cdn.xyxiao.cn/Landscape_4.jpg"},{img:"http://cdn.xyxiao.cn/Portrait_1.jpg"},{img:"http://cdn.xyxiao.cn/Portrait_2.jpg"}],option:{img:"",size:1,full:!1,outputType:"png",canMove:!0,fixedBox:!1,original:!1,canMoveBox:!0,autoCrop:!0,autoCropWidth:200,autoCropHeight:150,centerBox:!1,high:!1,cropData:{},enlarge:1,mode:"contain",maxImgSize:3e3,limitMinSize:[100,120]},example2:{img:"http://cdn.xyxiao.cn/Landscape_2.jpg",info:!0,size:1,outputType:"jpeg",canScale:!0,autoCrop:!0,autoCropWidth:300,autoCropHeight:250,fixed:!0,infoTrue:!0,fixedNumber:[4,3]},example3:{img:"http://cdn.xyxiao.cn/Landscape_1.jpg",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!0},downImg:"#",previewStyle1:{},previewStyle2:{},previewStyle3:{},previewStyle4:{},code0:"",code1:"",code2:"",code3:"",preview3:""}},methods:{changeImg:function(){this.option.img=this.lists[~~(Math.random()*this.lists.length)].img},startCrop:function(){this.crap=!0,this.$refs.cropper.startCrop()},stopCrop:function(){this.crap=!1,this.$refs.cropper.stopCrop()},clearCrop:function(){this.$refs.cropper.clearCrop()},refreshCrop:function(){this.$refs.cropper.refresh()},changeScale:function(t){t=t||1,this.$refs.cropper.changeScale(t)},rotateLeft:function(){this.$refs.cropper.rotateLeft()},rotateRight:function(){this.$refs.cropper.rotateRight()},finish:function(t){var e=this;"blob"===t?this.$refs.cropper.getCropBlob(function(t){var n=window.URL.createObjectURL(t);e.model=!0,e.modelSrc=n}):this.$refs.cropper.getCropData(function(t){e.model=!0,e.modelSrc=t})},realTime:function(t){var e=t;this.previewStyle1={width:e.w+"px",height:e.h+"px",overflow:"hidden",margin:"0",zoom:.5},this.previewStyle2={width:e.w+"px",height:e.h+"px",overflow:"hidden",margin:"0",zoom:.2},this.previewStyle3={width:e.w+"px",height:e.h+"px",overflow:"hidden",margin:"0",zoom:100/e.w},this.previewStyle4={width:e.w+"px",height:e.h+"px",overflow:"hidden",margin:"0",zoom:100/e.h},this.previews=t},finish2:function(t){var e=this;this.$refs.cropper2.getCropData(function(t){e.model=!0,e.modelSrc=t})},finish3:function(t){var e=this;this.$refs.cropper3.getCropData(function(t){e.model=!0,e.modelSrc=t})},down:function(t){var e=this;"blob"===t?this.$refs.cropper.getCropBlob(function(t){if(e.downImg=window.URL.createObjectURL(t),window.navigator.msSaveBlob){var n=new Blob([t]);window.navigator.msSaveBlob(n,"demo.png")}else e.$nextTick(function(){e.$refs.downloadDom.click()})}):this.$refs.cropper.getCropData(function(t){if(e.downImg=t,window.navigator.msSaveBlob){var n=new Blob([t]);window.navigator.msSaveBlob(n,"demo.png")}else e.$nextTick(function(){e.$refs.downloadDom.click()})})},uploadImg:function(t,e){var n=this,r=t.target.files[0];if(!/\.(gif|jpg|jpeg|png|bmp|GIF|JPG|PNG)$/.test(t.target.value))return alert("图片类型必须是.gif,jpeg,jpg,png,bmp中的一种"),!1;var o=new FileReader;o.onload=function(t){var r=void 0;r="object"===i(t.target.result)?window.URL.createObjectURL(new Blob([t.target.result])):t.target.result,1===e?n.option.img=r:2===e&&(n.example2.img=r),n.$refs.uploadImg.value=""},o.readAsArrayBuffer(r)},imgLoad:function(t){console.log(t)},cropMoving:function(t){this.option.cropData=t}},components:{VueCropper:r.a,codes:o.a},mounted:function(){this.changeImg(),[].slice.call(document.querySelectorAll("pre code")).forEach(function(t,e){hljs.highlightBlock(t)}),this.code0='\n\t\t\tnpm install vue-cropper\n\t\t\t// 组件内使用\n\t\t\timport { VueCropper } from \'vue-cropper\' \n\t\t\tcomponents: {\n\t\t\t\tVueCropper,\n\t\t\t},\n\n\t\t\t// main.js里面使用\n\t\t\timport VueCropper from \'vue-cropper\' \n\n\t\t\tVue.use(VueCropper)\n\n\t\t\t// cdn方式使用\n\t\t\t<script src="vuecropper.js"><\/script>\n\t\t\tVue.use(window[\'vue-cropper\'])\n\n\t\t\t<vueCropper\n\t\t\t\tref="cropper"\n\t\t\t\t:img="option.img"\n\t\t\t\t:outputSize="option.size"\n\t\t\t\t:outputType="option.outputType"\n\t\t\t></vueCropper>\n\t\t',this.code1='\n\t\t\t<div class="show-info">\n\t\t\t\t<h2>example1 基本例子 无限制</h2>\n\t\t\t\t<div class="test test1">\n\t\t\t\t\t<vueCropper\n\t\t\t\t\t\tref="cropper"\n\t\t\t\t\t\t:img="option.img"\n\t\t\t\t\t\t:outputSize="option.size"\n\t\t\t\t\t\t:outputType="option.outputType"\n\t\t\t\t\t\t:info="true"\n\t\t\t\t\t\t:full="option.full"\n\t\t\t\t\t\t:canMove="option.canMove"\n\t\t\t\t\t\t:canMoveBox="option.canMoveBox"\n\t\t\t\t\t\t:fixedBox="option.fixedBox"\n\t\t\t\t\t\t:original="option.original"\n\t\t\t\t\t\t:autoCrop="option.autoCrop"\n\t\t\t\t\t\t:autoCropWidth="option.autoCropWidth"\n\t\t\t\t\t\t:autoCropHeight="option.autoCropHeight"\n\t\t\t\t\t\t:centerBox="option.centerBox"\n\t\t\t\t\t\t:high="option.high"\n\t\t\t\t\t\t:infoTrue="option.infoTrue"\n\t\t\t\t\t\t@realTime="realTime"\n\t\t\t\t\t\t@imgLoad="imgLoad"\n\t\t\t\t\t\t@cropMoving="cropMoving"\n\t\t\t\t\t\t:enlarge="option.enlarge"\n\t\t\t\t\t></vueCropper>\n\t\t\t\t</div>\n\t\t\t\t<div class="test-button">\n\t\t\t\t\t<button @click="changeImg" class="btn">changeImg</button>\n\t\t\t\t\t<label class="btn" for="uploads">upload</label>\n\t\t\t\t\t<input type="file" id="uploads" style="position:absolute; clip:rect(0 0 0 0);" accept="image/png, image/jpeg, image/gif, image/jpg" @change="uploadImg($event, 1)">\n\t\t\t\t\t<button @click="startCrop" v-if="!crap" class="btn">start</button>\n\t\t\t\t\t<button @click="stopCrop" v-else class="btn">stop</button>\n\t\t\t\t\t<button @click="clearCrop" class="btn">clear</button>\n\t\t\t\t\t<button @click="refreshCrop" class="btn">refresh</button>\n\t\t\t\t\t<button @click="changeScale(1)" class="btn">+</button>\n\t\t\t\t\t<button @click="changeScale(-1)" class="btn">-</button>\n\t\t\t\t\t<button @click="rotateLeft" class="btn">rotateLeft</button>\n\t\t\t\t\t<button @click="rotateRight" class="btn">rotateRight</button>\n\t\t\t\t\t<button @click="finish(\'base64\')" class="btn">preview(base64)</button>\n\t\t\t\t\t<button @click="finish(\'blob\')" class="btn">preview(blob)</button>\n\t\t\t\t\t<a @click="down(\'base64\')" class="btn">download(base64)</a>\n\t\t\t\t\t<a @click="down(\'blob\')" class="btn">download(blob)</a>\n\t\t\t\t\t<a :href="downImg" download="demo.png" ref="downloadDom"></a>\n\t\t\t\t</div>\n\n\t\t\t\t\t<p>截图框大小</p>\n\t\t\t\t\t<div class="show-preview" :style="{\'width\': previews.w + \'px\', \'height\': previews.h + \'px\', \'overflow\': \'hidden\',\n\t\t\t\t\t\t\t\'margin\': \'5px\'}">\n\t\t\t\t\t\t<div :style="previews.div">\n\t\t\t\t\t\t\t<img :src="previews.url" :style="previews.img">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t<p>中等大小</p>\n\t\t\t\t\t<div :style="previewStyle1"> \n\t\t\t\t\t\t<div :style="previews.div">\n\t\t\t\t\t\t\t<img :src="previews.url" :style="previews.img">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<p>迷你大小</p>\n\t\t\t\t\t<div :style="previewStyle2"> \n\t\t\t\t\t\t<div :style="previews.div">\n\t\t\t\t\t\t\t<img :src="previews.url" :style="previews.img">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\n\t\t\t\t\t<div style="display:block; width: 100%;">\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>上传图片是否显示原始宽高 (针对大图 可以铺满)</span>\n\t\t\t\t\t\t\t<input type="checkbox" v-model="option.original">\n\t\t\t\t\t\t\t<span>original: {{ option.original}}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>是否根据dpr生成适合屏幕的高清图片</span>\n\t\t\t\t\t\t\t<input type="checkbox" v-model="option.high">\n\t\t\t\t\t\t\t<span>high: {{ option.high}}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>是否输出原图比例的截图</span>\n\t\t\t\t\t\t\t<input type="checkbox" v-model="option.full">\n\t\t\t\t\t\t\t<span>full: {{ option.full}}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>截图信息展示是否是真实的输出宽高</span>\n\t\t\t\t\t\t\t<input type="checkbox" v-model="option.infoTrue">\n\t\t\t\t\t\t\t<span>infoTrue: {{ option.infoTrue}}</span>\t\t\t\t\t\t\t\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>能否拖动图片</span>\n\t\t\t\t\t\t\t<input type="checkbox" v-model="option.canMove">\n\t\t\t\t\t\t\t<span>canMove: {{ option.canMove}}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>能否拖动截图框</span>\n\t\t\t\t\t\t\t<input type="checkbox" v-model="option.canMoveBox">\n\t\t\t\t\t\t\t<span>canMoveBox: {{ option.canMoveBox}}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>截图框固定大小</span>\n\t\t\t\t\t\t\t<input type="checkbox" v-model="option.fixedBox">\n\t\t\t\t\t\t\t<span>fixedBox: {{ option.fixedBox}}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>是否自动生成截图框</span>\n\t\t\t\t\t\t\t<input type="checkbox" v-model="option.autoCrop">\n\t\t\t\t\t\t\t<span>autoCrop: {{ option.autoCrop}}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>截图框是否限制在图片里(只有在自动生成截图框时才能生效)</span>\n\t\t\t\t\t\t\t<input type="checkbox" v-model="option.centerBox">\n\t\t\t\t\t\t\t<span>centerBox: {{ option.centerBox}}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>是否按照截图框比例输出 默认为1 </span>\n\t\t\t\t\t\t\t<input type="number" v-model="option.enlarge">\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<p>输出图片格式</p>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<label>jpg <input type="radio" name="type" value="jpeg" v-model="option.outputType"></label>\n\t\t\t\t\t\t\t<label>png <input type="radio" name="type" value="png" v-model="option.outputType"></label>\n\t\t\t\t\t\t\t<label>webp <input type="radio" name="type" value="webp" v-model="option.outputType"></label>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<codes>\n\t\t\t\t\t<div slot="body">{{ code1 }}</div>\n\t\t\t\t</codes>\n </div>\n\t\t'}}},function(t,e,n){"use strict";e.a={data:function(){return{all:!1}},computed:{msg:function(){return this.all?"fold":"unfold"}}}},function(t,e,n){"use strict";var r=n(135);e.a={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:function(){return[1,1]}},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:function(){return 10}}},computed:{cropInfo:function(){var t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){var e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:function(){navigator.userAgent;return!!window.ActiveXObject||"ActiveXObject"in window},passive:function(){return this.isIE?null:{passive:!1}}},watch:{img:function(){this.checkedImg()},imgs:function(t){""!==t&&this.reload()},cropW:function(){this.showPreview()},cropH:function(){this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(t,e){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},autoCrop:function(t){t&&this.goAutoCrop()},autoCropWidth:function(){this.autoCrop&&this.goAutoCrop()},autoCropHeight:function(){this.autoCrop&&this.goAutoCrop()},mode:function(){this.checkedImg()},rotate:function(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion:function(t){for(var e=navigator.userAgent.split(" "),n="",r=new RegExp(t,"i"),o=0;o<e.length;o++)r.test(e[o])&&(n=e[o]);return n?n.split("/")[1].split("."):["0","0","0"]},checkOrientationImage:function(t,e,n,r){var o=this;if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){var i=this.getVersion("version");i[0]>13&&i[1]>1&&(e=-1)}else{var a=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(a){var s=a[1];s=s.split("_"),(s[0]>13||s[0]>=13&&s[1]>=4)&&(e=-1)}}var c=document.createElement("canvas"),u=c.getContext("2d");switch(u.save(),e){case 2:c.width=n,c.height=r,u.translate(n,0),u.scale(-1,1);break;case 3:c.width=n,c.height=r,u.translate(n/2,r/2),u.rotate(180*Math.PI/180),u.translate(-n/2,-r/2);break;case 4:c.width=n,c.height=r,u.translate(0,r),u.scale(1,-1);break;case 5:c.height=n,c.width=r,u.rotate(.5*Math.PI),u.scale(1,-1);break;case 6:c.width=r,c.height=n,u.translate(r/2,n/2),u.rotate(90*Math.PI/180),u.translate(-n/2,-r/2);break;case 7:c.height=n,c.width=r,u.rotate(.5*Math.PI),u.translate(n,-r),u.scale(-1,1);break;case 8:c.height=n,c.width=r,u.translate(r/2,n/2),u.rotate(-90*Math.PI/180),u.translate(-n/2,-r/2);break;default:c.width=n,c.height=r}u.drawImage(t,0,0,n,r),u.restore(),c.toBlob(function(t){var e=URL.createObjectURL(t);URL.revokeObjectURL(o.imgs),o.imgs=e},"image/"+this.outputType,1)},checkedImg:function(){var t=this;if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();var e=new Image;if(e.onload=function(){if(""===t.img)return t.$emit("imgLoad","error"),t.$emit("img-load","error"),!1;var n=e.width,o=e.height;r.a.getData(e).then(function(r){t.orientation=r.orientation||1;var i=Number(t.maxImgSize);if(!t.orientation&&n<i&o<i)return void(t.imgs=t.img);n>i&&(o=o/n*i,n=i),o>i&&(n=n/o*i,o=i),t.checkOrientationImage(e,t.orientation,n,o)})},e.onerror=function(){t.$emit("imgLoad","error"),t.$emit("img-load","error")},"data"!==this.img.substr(0,4)&&(e.crossOrigin=""),this.isIE){var n=new XMLHttpRequest;n.onload=function(){var t=URL.createObjectURL(this.response);e.src=t},n.open("GET",this.img,!0),n.responseType="blob",n.send()}else e.src=this.img},startMove:function(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.croppin