| Server IP : 34.87.99.72 / Your IP : 216.73.217.31 Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 User : bitnami ( 1000) PHP Version : 7.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /opt/bitnami/apache2/htdocs/app/node_modules/vuetify-image-clipper/dist/ |
Upload File : |
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["v-image-clipper"]=e():t["v-image-clipper"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};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,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"0676":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"clipper-range"},[n("div",{directives:[{name:"stream",rawName:"v-stream:mousedown",value:t.mousedown$,expression:"mousedown$",arg:"mousedown"},{name:"stream",rawName:"v-stream:touchstart",value:t.touchstart$,expression:"touchstart$",arg:"touchstart"}],staticClass:"wrap"},[n("div",{staticClass:"stick"}),n("div",{staticClass:"bar",style:t.barStyle})])])},i=[],o=(n("a9e3"),n("ebb6")),a=n("3e18"),c=n("9f2d"),s=n("4d82"),u=n("a744"),l=n("2bd2"),f=n("6e77"),h={domStreams:["mousedown$","touchstart$"],subscriptions:function(){var t=this;return this.init$=new l["a"],this.mouseup$=Object(f["a"])(window,"mouseup"),this.mousemove$=Object(f["a"])(window,"mousemove"),this.touchmove$=Object(f["a"])(window,"touchmove",{passive:!1}),this.touchend$=Object(f["a"])(window,"touchend",{passive:!1}),this.mouseEvent$=this.mousedown$.pipe(Object(o["a"])((function(t){return t.event.preventDefault(),t.event})),Object(a["a"])((function(){return t.mousemove$.pipe(Object(c["a"])(t.mouseup$),Object(o["a"])((function(t){return t.clientX})))})),Object(s["a"])(this.mousedown$.pipe(Object(o["a"])((function(t){return t.event.clientX}))))),this.touchEvent$=this.touchstart$.pipe(Object(o["a"])((function(t){return t.event.preventDefault(),t.event})),Object(a["a"])((function(){return t.touchmove$.pipe(Object(c["a"])(t.touchend$),Object(o["a"])((function(t){return t.touches[0].clientX})))})),Object(s["a"])(this.touchstart$.pipe(Object(o["a"])((function(t){return t.event.touches[0].clientX}))))),this.dragSubject$=(new l["a"]).pipe(Object(s["a"])(this.mouseEvent$),Object(s["a"])(this.touchEvent$),Object(o["a"])(this.getLeftPercent),Object(u["a"])(0),Object(s["a"])(this.init$)),{x$:this.dragSubject$}},props:{value:{type:Number,default:0},max:{type:Number,default:10},min:{type:Number,default:0}},computed:{barStyle:function(){return{left:"".concat(100*this.x$,"%")}},val:function(){var t=this.max-this.min,e=this.getPos(),n=e.stickPos,r=e.maxLeft;return this.x$*n.width/r*t+this.min}},watch:{value:function(){this.initVal()}},mounted:function(){var t=this;this.initVal(),this.$subscribeTo(this.dragSubject$,(function(){t.$emit("input",t.val)}))},methods:{getPos:function(){var t=this.$el.querySelector(".stick").getBoundingClientRect(),e=this.$el.querySelector(".bar").getBoundingClientRect();return{maxLeft:t.width-e.width,stickPos:t,barPos:e}},getLeftPercent:function(t){var e=this.$el.querySelector(".stick").getBoundingClientRect(),n=this.$el.querySelector(".bar").getBoundingClientRect(),r=e.width-n.width,i=Math.max(Math.min(t-e.left,r),0);return i/e.width},initVal:function(){var t=this.max-this.min,e=(this.value-this.min)/t,n=this.getPos();this.init$.next(e*n.maxLeft/n.stickPos.width)}}},p=h,d=(n("d4ce"),n("2877")),b=Object(d["a"])(p,r,i,!1,null,"2fd0acf9",null);e["a"]=b.exports},"06cf":function(t,e,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),a=n("fc6a"),c=n("c04e"),s=n("5135"),u=n("0cfb"),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=c(e,!0),u)try{return l(t,e)}catch(n){}if(s(t,e))return o(!i.f.call(t,e),t[e])}},"0ca4":function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return r}))},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d3b":function(t,e,n){var r=n("d039"),i=n("b622"),o=n("c430"),a=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e["delete"]("b"),n+=r+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"127f":function(t,e,n){"use strict";function r(){return"function"===typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return i}));var i=r()},1453:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("9ab4"),i=n("d817"),o=n("e9a8"),a=n("a6e8"),c=n("2ff5"),s=n("88bc"),u=n("0ca4"),l=function(t){function e(n,r,i){var a=t.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o["a"];break;case 1:if(!n){a.destination=o["a"];break}if("object"===typeof n){n instanceof e?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new f(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new f(a,n,r,i);break}return a}return r["a"](e,t),e.prototype[c["a"]]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(a["a"]),f=function(t){function e(e,n,r,a){var c,s=t.call(this)||this;s._parentSubscriber=e;var u=s;return Object(i["a"])(n)?c=n:n&&(c=n.next,r=n.error,a=n.complete,n!==o["a"]&&(u=Object.create(n),Object(i["a"])(u.unsubscribe)&&s.add(u.unsubscribe.bind(u)),u.unsubscribe=s.unsubscribe.bind(s))),s._context=u,s._next=c,s._error=r,s._complete=a,s}return r["a"](e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;s["a"].useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=s["a"].useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(u["a"])(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(u["a"])(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};s["a"].useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),s["a"].useDeprecatedSynchronousErrorHandling)throw n;Object(u["a"])(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!s["a"].useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return s["a"].useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Object(u["a"])(r),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(l)},1456:function(t,e,n){},1716:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n("fad2"),i=n("0ca4"),o=function(t){return function(e){return t.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,i["a"]),e}},a=n("127f"),c=function(t){return function(e){var n=t[a["a"]]();do{var r=void 0;try{r=n.next()}catch(i){return e.error(i),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}while(1);return"function"===typeof n.return&&e.add((function(){n.return&&n.return()})),e}},s=n("c539"),u=function(t){return function(e){var n=t[s["a"]]();if("function"!==typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}},l=n("d9e3"),f=n("fd66"),h=n("31c4"),p=function(t){if(t&&"function"===typeof t[s["a"]])return u(t);if(Object(l["a"])(t))return Object(r["a"])(t);if(Object(f["a"])(t))return o(t);if(t&&"function"===typeof t[a["a"]])return c(t);var e=Object(h["a"])(t)?"an invalid object":"'"+t+"'",n="You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(n)}},"19aa":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,n){var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,c={next:function(){return{done:!!a++}},return:function(){o=!0}};c[i]=function(){return this},Array.from(c,(function(){throw 2}))}catch(s){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(s){}return n}},"1cdc":function(t,e,n){var r=n("342f");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},2144:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("e9b9"),i=n("fad2"),o=n("245f");function a(t,e){return e?Object(o["a"])(t,e):new r["a"](Object(i["a"])(t))}},2266:function(t,e,n){var r=n("825a"),i=n("e95a"),o=n("50c4"),a=n("0366"),c=n("35a1"),s=n("9bdd"),u=function(t,e){this.stopped=t,this.result=e},l=t.exports=function(t,e,n,l,f){var h,p,d,b,m,g,v,y=a(e,n,l?2:1);if(f)h=t;else{if(p=c(t),"function"!=typeof p)throw TypeError("Target is not iterable");if(i(p)){for(d=0,b=o(t.length);b>d;d++)if(m=l?y(r(v=t[d])[0],v[1]):y(t[d]),m&&m instanceof u)return m;return new u(!1)}h=p.call(t)}g=h.next;while(!(v=g.call(h)).done)if(m=s(h,y,v.value,l),"object"==typeof m&&m&&m instanceof u)return m;return new u(!1)};l.stop=function(t){return new u(!0,t)}},"23cb":function(t,e,n){var r=n("a691"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),c=n("ce4e"),s=n("e893"),u=n("94ca");t.exports=function(t,e){var n,l,f,h,p,d,b=t.target,m=t.global,g=t.stat;if(l=m?r:g?r[b]||c(b,{}):(r[b]||{}).prototype,l)for(f in e){if(p=e[f],t.noTargetGet?(d=i(l,f),h=d&&d.value):h=l[f],n=u(m?f:b+(g?".":"#")+f,t.forced),!n&&void 0!==h){if(typeof p===typeof h)continue;s(p,h)}(t.sham||h&&h.sham)&&o(p,"sham",!0),a(l,f,p,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"245f":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("e9b9"),i=n("a6e8");function o(t,e){return new r["a"]((function(n){var r=new i["a"],o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},2626:function(t,e,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),c=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},"27af":function(t,e,n){"use strict";var r=n("1456"),i=n.n(r);i.a},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,c){var s,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(s=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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=s):i&&(s=c?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),s)if(u.functional){u._injectStyles=s;var l=u.render;u.render=function(t,e){return s.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,s):[s]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},"2b3d":function(t,e,n){"use strict";n("3ca3");var r,i=n("23e7"),o=n("83ab"),a=n("0d3b"),c=n("da84"),s=n("37e8"),u=n("6eeb"),l=n("19aa"),f=n("5135"),h=n("60da"),p=n("4df4"),d=n("6547").codeAt,b=n("5fb2"),m=n("d44e"),g=n("9861"),v=n("69f3"),y=c.URL,w=g.URLSearchParams,x=g.getState,S=v.set,j=v.getterFor("URL"),O=Math.floor,_=Math.pow,E="Invalid authority",P="Invalid scheme",C="Invalid host",$="Invalid port",T=/[A-Za-z]/,I=/[\d+-.A-Za-z]/,R=/\d/,L=/^(0x|0X)/,k=/^[0-7]+$/,D=/^\d+$/,A=/^[\dA-Fa-f]+$/,F=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,N=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,U=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,M=/[\u0009\u000A\u000D]/g,H=function(t,e){var n,r,i;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return C;if(n=W(e.slice(1,-1)),!n)return C;t.host=n}else if(K(t)){if(e=b(e),F.test(e))return C;if(n=Y(e),null===n)return C;t.host=n}else{if(N.test(e))return C;for(n="",r=p(e),i=0;i<r.length;i++)n+=Z(r[i],G);t.host=n}},Y=function(t){var e,n,r,i,o,a,c,s=t.split(".");if(s.length&&""==s[s.length-1]&&s.pop(),e=s.length,e>4)return t;for(n=[],r=0;r<e;r++){if(i=s[r],""==i)return t;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=L.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?D:8==o?k:A).test(i))return t;a=parseInt(i,o)}n.push(a)}for(r=0;r<e;r++)if(a=n[r],r==e-1){if(a>=_(256,5-e))return null}else if(a>255)return null;for(c=n.pop(),r=0;r<n.length;r++)c+=n[r]*_(256,3-r);return c},W=function(t){var e,n,r,i,o,a,c,s=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,h=function(){return t.charAt(f)};if(":"==h()){if(":"!=t.charAt(1))return;f+=2,u++,l=u}while(h()){if(8==u)return;if(":"!=h()){e=n=0;while(n<4&&A.test(h()))e=16*e+parseInt(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,u>6)return;r=0;while(h()){if(i=null,r>0){if(!("."==h()&&r<4))return;f++}if(!R.test(h()))return;while(R.test(h())){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}s[u]=256*s[u]+i,r++,2!=r&&4!=r||u++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;s[u++]=e}else{if(null!==l)return;f++,u++,l=u}}if(null!==l){a=u-l,u=7;while(0!=u&&a>0)c=s[u],s[u--]=s[l+a-1],s[l+--a]=c}else if(8!=u)return;return s},X=function(t){for(var e=null,n=1,r=null,i=0,o=0;o<8;o++)0!==t[o]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(e=r,n=i),e},B=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=O(t/256);return e.join(".")}if("object"==typeof t){for(e="",r=X(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},G={},V=h({},G,{" ":1,'"':1,"<":1,">":1,"`":1}),q=h({},V,{"#":1,"?":1,"{":1,"}":1}),z=h({},q,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Z=function(t,e){var n=d(t,0);return n>32&&n<127&&!f(e,t)?t:encodeURIComponent(t)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},K=function(t){return f(J,t.scheme)},Q=function(t){return""!=t.username||""!=t.password},tt=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},et=function(t,e){var n;return 2==t.length&&T.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},nt=function(t){var e;return t.length>1&&et(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},rt=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&et(e[0],!0)||e.pop()},it=function(t){return"."===t||"%2e"===t.toLowerCase()},ot=function(t){return t=t.toLowerCase(),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},at={},ct={},st={},ut={},lt={},ft={},ht={},pt={},dt={},bt={},mt={},gt={},vt={},yt={},wt={},xt={},St={},jt={},Ot={},_t={},Et={},Pt=function(t,e,n,i){var o,a,c,s,u=n||at,l=0,h="",d=!1,b=!1,m=!1;n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(U,"")),e=e.replace(M,""),o=p(e);while(l<=o.length){switch(a=o[l],u){case at:if(!a||!T.test(a)){if(n)return P;u=st;continue}h+=a.toLowerCase(),u=ct;break;case ct:if(a&&(I.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(n)return P;h="",u=st,l=0;continue}if(n&&(K(t)!=f(J,h)||"file"==h&&(Q(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=h,n)return void(K(t)&&J[t.scheme]==t.port&&(t.port=null));h="","file"==t.scheme?u=yt:K(t)&&i&&i.scheme==t.scheme?u=ut:K(t)?u=pt:"/"==o[l+1]?(u=lt,l++):(t.cannotBeABaseURL=!0,t.path.push(""),u=Ot)}break;case st:if(!i||i.cannotBeABaseURL&&"#"!=a)return P;if(i.cannotBeABaseURL&&"#"==a){t.scheme=i.scheme,t.path=i.path.slice(),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,u=Et;break}u="file"==i.scheme?yt:ft;continue;case ut:if("/"!=a||"/"!=o[l+1]){u=ft;continue}u=dt,l++;break;case lt:if("/"==a){u=bt;break}u=jt;continue;case ft:if(t.scheme=i.scheme,a==r)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query;else if("/"==a||"\\"==a&&K(t))u=ht;else if("?"==a)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query="",u=_t;else{if("#"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.path.pop(),u=jt;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query,t.fragment="",u=Et}break;case ht:if(!K(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,u=jt;continue}u=bt}else u=dt;break;case pt:if(u=dt,"/"!=a||"/"!=h.charAt(l+1))continue;l++;break;case dt:if("/"!=a&&"\\"!=a){u=bt;continue}break;case bt:if("@"==a){d&&(h="%40"+h),d=!0,c=p(h);for(var g=0;g<c.length;g++){var v=c[g];if(":"!=v||m){var y=Z(v,z);m?t.password+=y:t.username+=y}else m=!0}h=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&K(t)){if(d&&""==h)return E;l-=p(h).length+1,h="",u=mt}else h+=a;break;case mt:case gt:if(n&&"file"==t.scheme){u=xt;continue}if(":"!=a||b){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&K(t)){if(K(t)&&""==h)return C;if(n&&""==h&&(Q(t)||null!==t.port))return;if(s=H(t,h),s)return s;if(h="",u=St,n)return;continue}"["==a?b=!0:"]"==a&&(b=!1),h+=a}else{if(""==h)return C;if(s=H(t,h),s)return s;if(h="",u=vt,n==gt)return}break;case vt:if(!R.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&K(t)||n){if(""!=h){var w=parseInt(h,10);if(w>65535)return $;t.port=K(t)&&w===J[t.scheme]?null:w,h=""}if(n)return;u=St;continue}return $}h+=a;break;case yt:if(t.scheme="file","/"==a||"\\"==a)u=wt;else{if(!i||"file"!=i.scheme){u=jt;continue}if(a==r)t.host=i.host,t.path=i.path.slice(),t.query=i.query;else if("?"==a)t.host=i.host,t.path=i.path.slice(),t.query="",u=_t;else{if("#"!=a){nt(o.slice(l).join(""))||(t.host=i.host,t.path=i.path.slice(),rt(t)),u=jt;continue}t.host=i.host,t.path=i.path.slice(),t.query=i.query,t.fragment="",u=Et}}break;case wt:if("/"==a||"\\"==a){u=xt;break}i&&"file"==i.scheme&&!nt(o.slice(l).join(""))&&(et(i.path[0],!0)?t.path.push(i.path[0]):t.host=i.host),u=jt;continue;case xt:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&et(h))u=jt;else if(""==h){if(t.host="",n)return;u=St}else{if(s=H(t,h),s)return s;if("localhost"==t.host&&(t.host=""),n)return;h="",u=St}continue}h+=a;break;case St:if(K(t)){if(u=jt,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(u=jt,"/"!=a))continue}else t.fragment="",u=Et;else t.query="",u=_t;break;case jt:if(a==r||"/"==a||"\\"==a&&K(t)||!n&&("?"==a||"#"==a)){if(ot(h)?(rt(t),"/"==a||"\\"==a&&K(t)||t.path.push("")):it(h)?"/"==a||"\\"==a&&K(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&et(h)&&(t.host&&(t.host=""),h=h.charAt(0)+":"),t.path.push(h)),h="","file"==t.scheme&&(a==r||"?"==a||"#"==a))while(t.path.length>1&&""===t.path[0])t.path.shift();"?"==a?(t.query="",u=_t):"#"==a&&(t.fragment="",u=Et)}else h+=Z(a,q);break;case Ot:"?"==a?(t.query="",u=_t):"#"==a?(t.fragment="",u=Et):a!=r&&(t.path[0]+=Z(a,G));break;case _t:n||"#"!=a?a!=r&&("'"==a&&K(t)?t.query+="%27":t.query+="#"==a?"%23":Z(a,G)):(t.fragment="",u=Et);break;case Et:a!=r&&(t.fragment+=Z(a,V));break}l++}},Ct=function(t){var e,n,r=l(this,Ct,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(t),c=S(r,{type:"URL"});if(void 0!==i)if(i instanceof Ct)e=j(i);else if(n=Pt(e={},String(i)),n)throw TypeError(n);if(n=Pt(c,a,null,e),n)throw TypeError(n);var s=c.searchParams=new w,u=x(s);u.updateSearchParams(c.query),u.updateURL=function(){c.query=String(s)||null},o||(r.href=Tt.call(r),r.origin=It.call(r),r.protocol=Rt.call(r),r.username=Lt.call(r),r.password=kt.call(r),r.host=Dt.call(r),r.hostname=At.call(r),r.port=Ft.call(r),r.pathname=Nt.call(r),r.search=Ut.call(r),r.searchParams=Mt.call(r),r.hash=Ht.call(r))},$t=Ct.prototype,Tt=function(){var t=j(this),e=t.scheme,n=t.username,r=t.password,i=t.host,o=t.port,a=t.path,c=t.query,s=t.fragment,u=e+":";return null!==i?(u+="//",Q(t)&&(u+=n+(r?":"+r:"")+"@"),u+=B(i),null!==o&&(u+=":"+o)):"file"==e&&(u+="//"),u+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==c&&(u+="?"+c),null!==s&&(u+="#"+s),u},It=function(){var t=j(this),e=t.scheme,n=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(r){return"null"}return"file"!=e&&K(t)?e+"://"+B(t.host)+(null!==n?":"+n:""):"null"},Rt=function(){return j(this).scheme+":"},Lt=function(){return j(this).username},kt=function(){return j(this).password},Dt=function(){var t=j(this),e=t.host,n=t.port;return null===e?"":null===n?B(e):B(e)+":"+n},At=function(){var t=j(this).host;return null===t?"":B(t)},Ft=function(){var t=j(this).port;return null===t?"":String(t)},Nt=function(){var t=j(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Ut=function(){var t=j(this).query;return t?"?"+t:""},Mt=function(){return j(this).searchParams},Ht=function(){var t=j(this).fragment;return t?"#"+t:""},Yt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&s($t,{href:Yt(Tt,(function(t){var e=j(this),n=String(t),r=Pt(e,n);if(r)throw TypeError(r);x(e.searchParams).updateSearchParams(e.query)})),origin:Yt(It),protocol:Yt(Rt,(function(t){var e=j(this);Pt(e,String(t)+":",at)})),username:Yt(Lt,(function(t){var e=j(this),n=p(String(t));if(!tt(e)){e.username="";for(var r=0;r<n.length;r++)e.username+=Z(n[r],z)}})),password:Yt(kt,(function(t){var e=j(this),n=p(String(t));if(!tt(e)){e.password="";for(var r=0;r<n.length;r++)e.password+=Z(n[r],z)}})),host:Yt(Dt,(function(t){var e=j(this);e.cannotBeABaseURL||Pt(e,String(t),mt)})),hostname:Yt(At,(function(t){var e=j(this);e.cannotBeABaseURL||Pt(e,String(t),gt)})),port:Yt(Ft,(function(t){var e=j(this);tt(e)||(t=String(t),""==t?e.port=null:Pt(e,t,vt))})),pathname:Yt(Nt,(function(t){var e=j(this);e.cannotBeABaseURL||(e.path=[],Pt(e,t+"",St))})),search:Yt(Ut,(function(t){var e=j(this);t=String(t),""==t?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",Pt(e,t,_t)),x(e.searchParams).updateSearchParams(e.query)})),searchParams:Yt(Mt),hash:Yt(Ht,(function(t){var e=j(this);t=String(t),""!=t?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",Pt(e,t,Et)):e.fragment=null}))}),u($t,"toJSON",(function(){return Tt.call(this)}),{enumerable:!0}),u($t,"toString",(function(){return Tt.call(this)}),{enumerable:!0}),y){var Wt=y.createObjectURL,Xt=y.revokeObjectURL;Wt&&u(Ct,"createObjectURL",(function(t){return Wt.apply(y,arguments)})),Xt&&u(Ct,"revokeObjectURL",(function(t){return Xt.apply(y,arguments)}))}m(Ct,"URL"),i({global:!0,forced:!a,sham:!o},{URL:Ct})},"2bd2":function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return h}));var r=n("9ab4"),i=n("e9b9"),o=n("1453"),a=n("a6e8"),c=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),s=c,u=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r["a"](e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(a["a"]),l=n("2ff5"),f=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r["a"](e,t),e}(o["a"]),h=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r["a"](e,t),e.prototype[l["a"]]=function(){return new f(this)},e.prototype.lift=function(t){var e=new p(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new s;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new s;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new s;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new s;return this.hasError?(t.error(this.thrownError),a["a"].EMPTY):this.isStopped?(t.complete(),a["a"].EMPTY):(this.observers.push(t),new u(this,t))},e.prototype.asObservable=function(){var t=new i["a"];return t.source=this,t},e.create=function(t,e){return new p(t,e)},e}(i["a"]),p=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r["a"](e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){var e=this.source;return e?this.source.subscribe(t):a["a"].EMPTY},e}(h)},"2ca0":function(t,e,n){"use strict";var r=n("23e7"),i=n("06cf").f,o=n("50c4"),a=n("5a34"),c=n("1d80"),s=n("ab13"),u=n("c430"),l="".startsWith,f=Math.min,h=s("startsWith"),p=!u&&!h&&!!function(){var t=i(String.prototype,"startsWith");return t&&!t.writable}();r({target:"String",proto:!0,forced:!p&&!h},{startsWith:function(t){var e=String(c(this));a(t);var n=o(f(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return l?l.call(e,r,n):e.slice(n,n+r.length)===r}})},"2cf4":function(t,e,n){var r,i,o,a=n("da84"),c=n("d039"),s=n("c6b6"),u=n("0366"),l=n("1be4"),f=n("cc12"),h=n("1cdc"),p=a.location,d=a.setImmediate,b=a.clearImmediate,m=a.process,g=a.MessageChannel,v=a.Dispatch,y=0,w={},x="onreadystatechange",S=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},j=function(t){return function(){S(t)}},O=function(t){S(t.data)},_=function(t){a.postMessage(t+"",p.protocol+"//"+p.host)};d&&b||(d=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return w[++y]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(y),y},b=function(t){delete w[t]},"process"==s(m)?r=function(t){m.nextTick(j(t))}:v&&v.now?r=function(t){v.now(j(t))}:g&&!h?(i=new g,o=i.port2,i.port1.onmessage=O,r=u(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(_)||"file:"===p.protocol?r=x in f("script")?function(t){l.appendChild(f("script"))[x]=function(){l.removeChild(this),S(t)}}:function(t){setTimeout(j(t),0)}:(r=_,a.addEventListener("message",O,!1))),t.exports={set:d,clear:b}},"2d00":function(t,e,n){var r,i,o=n("da84"),a=n("342f"),c=o.process,s=c&&c.versions,u=s&&s.v8;u?(r=u.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),t.exports=i&&+i},"2ff5":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"===typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},"300a":function(t,e,n){"use strict";var r=n("3e20"),i=n.n(r);i.a},"31c4":function(t,e,n){"use strict";function r(t){return null!==t&&"object"===typeof t}n.d(e,"a",(function(){return r}))},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"35a1":function(t,e,n){var r=n("f5df"),i=n("3f8c"),o=n("b622"),a=o("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||i[r(t)]}},"37e8":function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("df75");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),c=r.length,s=0;while(c>s)i.f(t,n=r[s++],e[n]);return t}},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,i=n("69f3"),o=n("7dd0"),a="String Iterator",c=i.set,s=i.getterFor(a);o(String,"String",(function(t){c(this,{type:a,string:String(t),index:0})}),(function(){var t,e=s(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},"3e18":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("a6c5");function i(t,e){return Object(r["a"])(t,e,1)}},"3e20":function(t,e,n){},"3f8c":function(t,e){t.exports={}},"428f":function(t,e,n){var r=n("da84");t.exports=r},"44ad":function(t,e,n){var r=n("d039"),i=n("c6b6"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),c=Array.prototype;void 0==c[a]&&o.f(c,a,{configurable:!0,value:i(null)}),t.exports=function(t){c[a][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},"44e7":function(t,e,n){var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},4840:function(t,e,n){var r=n("825a"),i=n("1c0b"),o=n("b622"),a=o("species");t.exports=function(t,e){var n,o=r(t).constructor;return void 0===o||void 0==(n=r(o)[a])?e:i(n)}},4930:function(t,e,n){var r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4af2":function(t,e,n){"use strict";var r=n("fc00"),i=n.n(r);i.a},"4d64":function(t,e,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),a=function(t){return function(e,n,a){var c,s=r(e),u=i(s.length),l=o(a,u);if(t&&n!=n){while(u>l)if(c=s[l++],c!=c)return!0}else for(;u>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4d82":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("a748");function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(r["a"].apply(void 0,[e].concat(t)))}}},"4df4":function(t,e,n){"use strict";var r=n("0366"),i=n("7b0b"),o=n("9bdd"),a=n("e95a"),c=n("50c4"),s=n("8418"),u=n("35a1");t.exports=function(t){var e,n,l,f,h,p,d=i(t),b="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,v=void 0!==g,y=u(d),w=0;if(v&&(g=r(g,m>2?arguments[2]:void 0,2)),void 0==y||b==Array&&a(y))for(e=c(d.length),n=new b(e);e>w;w++)p=v?g(d[w],w):d[w],s(n,w,p);else for(f=y.call(d),h=f.next,n=new b;!(l=h.call(f)).done;w++)p=v?o(f,g,[l.value,w],!0):l.value,s(n,w,p);return n.length=w,n}},"50c4":function(t,e,n){var r=n("a691"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5670:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("9ab4"),i=n("1453");function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.predicate,this.thisArg))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r["a"](e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(i["a"])},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56dd":function(t,e,n){"use strict";(function(t){var r=n("ca1a"),i=n("0676"),o=n("6500"),a=n("8d63");n.d(e,"a",(function(){return a["a"]}));var c=n("cfda");n.d(e,"b",(function(){return c["a"]}));var s=n("d8dd");const u=function(t,e){const n={clipperBasic:{component:o["a"],name:"clipper-basic"},clipperPreview:{component:r["a"],name:"clipper-preview"},clipperRange:{component:i["a"],name:"clipper-range"},clipperFixed:{component:a["a"],name:"clipper-fixed"},clipperUpload:{component:c["a"],name:"clipper-upload"}},u=e=>{t.component(n[e].name,n[e].component)};e=e||{},s["a"].parentPropName=e.parentPropName||s["a"].parentPropName,e.components=void 0===e.components?n:e.components;for(let r in e.components){if(!n[r])throw new Error(`Invalid components "${r}" in vurjs-clipper plugin`);n[r].name="string"===typeof e.components[r]?e.components[r]:n[r].name,u(r)}},l={install:u};let f=null;"undefined"!==typeof window?f=window.Vue:"undefined"!==typeof t&&(f=t.Vue),f&&f.use(l)}).call(this,n("c8ba"))},"56ef":function(t,e,n){var r=n("d066"),i=n("241c"),o=n("7418"),a=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("1d80"),i=n("5899"),o="["+i+"]",a=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),s=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:s(1),end:s(2),trim:s(3)}},"5a34":function(t,e,n){var r=n("44e7");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5fb2":function(t,e,n){"use strict";var r=2147483647,i=36,o=1,a=26,c=38,s=700,u=72,l=128,f="-",h=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,d="Overflow: input needs wider integers to process",b=i-o,m=Math.floor,g=String.fromCharCode,v=function(t){var e=[],n=0,r=t.length;while(n<r){var i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=t.charCodeAt(n++);56320==(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),n--)}else e.push(i)}return e},y=function(t){return t+22+75*(t<26)},w=function(t,e,n){var r=0;for(t=n?m(t/s):t>>1,t+=m(t/e);t>b*a>>1;r+=i)t=m(t/b);return m(r+(b+1)*t/(t+c))},x=function(t){var e=[];t=v(t);var n,c,s=t.length,h=l,p=0,b=u;for(n=0;n<t.length;n++)c=t[n],c<128&&e.push(g(c));var x=e.length,S=x;x&&e.push(f);while(S<s){var j=r;for(n=0;n<t.length;n++)c=t[n],c>=h&&c<j&&(j=c);var O=S+1;if(j-h>m((r-p)/O))throw RangeError(d);for(p+=(j-h)*O,h=j,n=0;n<t.length;n++){if(c=t[n],c<h&&++p>r)throw RangeError(d);if(c==h){for(var _=p,E=i;;E+=i){var P=E<=b?o:E>=b+a?a:E-b;if(_<P)break;var C=_-P,$=i-P;e.push(g(y(P+C%$))),_=m(C/$)}e.push(g(y(_))),b=w(p,O,S==x),p=0,++S}}++p,++h}return e.join("")};t.exports=function(t){var e,n,r=[],i=t.toLowerCase().replace(p,".").split(".");for(e=0;e<i.length;e++)n=i[e],r.push(h.test(n)?"xn--"+x(n):n);return r.join(".")}},"60da":function(t,e,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("df75"),a=n("7418"),c=n("d1e7"),s=n("7b0b"),u=n("44ad"),l=Object.assign,f=Object.defineProperty;t.exports=!l||i((function(){if(r&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||o(l({},e)).join("")!=i}))?function(t,e){var n=s(t),i=arguments.length,l=1,f=a.f,h=c.f;while(i>l){var p,d=u(arguments[l++]),b=f?o(d).concat(f(d)):o(d),m=b.length,g=0;while(m>g)p=b[g++],r&&!h.call(d,p)||(n[p]=d[p])}return n}:l},6500:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"js-clipper-basic"},[n("div",{staticClass:"vuejs-clipper-basic__clip-area js-clip-area",class:{vertical:t.isVertical},style:t.areaStyle},[n("canvas",{staticClass:"vuejs-clipper-basic__stem-canvas",attrs:{width:t.stemArea.width,height:t.stemArea.height}}),n("div",{staticClass:"vuejs-clipper-basic__padding",style:{padding:t.areaStyle.padding}},[n("div",{staticClass:"vuejs-clipper-basic__in-pad"},[n("div",{staticClass:"vuejs-clipper-basic__img-scale js-img-scale",style:t.scaleStyle},[n("img",{staticClass:"vuejs-clipper-basic__img js-img",style:t.rotateStyle,attrs:{src:t.src,crossorigin:t.crossOrigin},on:{load:function(e){t.imgLoaded(),t.emit("load",e)},error:function(e){return t.emit("error",e)}}})])])]),n("div",{staticClass:"vuejs-clipper-basic__zoom-area js-zoom-area",style:t.posObj},[n("div",{staticClass:"vuejs-clipper-basic__extend vuejs-clipper-basic__extend--outer",style:t.exOuterStyle}),n("div",{staticClass:"vuejs-clipper-basic__extend vuejs-clipper-basic__extend--inner",style:t.exInnerStyle},[n("div",{staticClass:"vuejs-clipper-basic__drag-inset js-drag-inset"})]),t.corner?n("div",t._l(4,(function(t){return n("div",{key:"corner"+t,staticClass:"vuejs-clipper-basic__corner",class:"vuejs-clipper-basic__corner"+t})})),0):t._e(),t.grid?n("div",{staticClass:"vuejs-clipper-basic__grid"},t._l(4,(function(t){return n("div",{key:"gridItem"+t,staticClass:"vuejs-clipper-basic__grid-item"})})),0):t._e(),t._t("vuejs-clipper-basic__area")],2)]),n("div",{staticClass:"vuejs-clipper-basic__placeholder",style:t.eptStyle},[t._t("placeholder")],2)])},i=[],o=(n("99af"),n("a9e3"),n("c7eb")),a=n("2bd2"),c=n("ebb6"),s=n("4d82"),u=n("5670"),l=n("c4cc"),f=n("3e18"),h=n("9f2d"),p=n("a744"),d={extends:{methods:o["a"],mixins:[o["d"],o["c"]]},subscriptions:function(){var t=this;return this.change$=new a["a"],this.setWH$=new a["a"],this.setTL$=new a["a"],this.initWHTL$=(new a["a"]).pipe(Object(c["a"])(this.initWHTL)),this.stop$=new a["a"],this.mousedownDrag$=(new a["a"]).pipe(Object(s["a"])(this.mousedown$),Object(u["a"])(this.isDragElement),Object(l["a"])(this.prevent),Object(c["a"])((function(e){return t.eInZoom(e)})),Object(f["a"])((function(){return t.mousemove$.pipe(Object(h["a"])(t.mouseup$))}),(function(t,e){return{down:t,move:e}}))),this.touchdownDrag$=this.touchstart$.pipe(Object(u["a"])(this.isDragElement),Object(u["a"])((function(t){return 1===t.touches.length})),Object(l["a"])(this.prevent),Object(c["a"])((function(e){return t.eInZoom(e.touches[0])})),Object(f["a"])((function(){return t.touchmove$.pipe(Object(h["a"])(t.touchend$),Object(u["a"])((function(t){return 1===t.touches.length})),Object(c["a"])((function(t){return t.touches[0]})))}),(function(t,e){return{down:t,move:e}}))),this.mousedownZoom$=(new a["a"]).pipe(Object(s["a"])(this.mousedown$),Object(u["a"])(this.isZoomElement),Object(l["a"])(this.prevent),Object(c["a"])(this.setDownPosition),Object(f["a"])((function(){return t.mousemove$.pipe(Object(h["a"])(t.mouseup$))}),(function(t,e){return{down:t,move:e}}))),this.touchdownZoom$=this.touchstart$.pipe(Object(u["a"])(this.isZoomElement),Object(u["a"])((function(t){return 1===t.touches.length})),Object(l["a"])(this.prevent),Object(c["a"])(this.setDownPosition),Object(f["a"])((function(){return t.touchmove$.pipe(Object(h["a"])(t.touchend$),Object(u["a"])((function(t){return 1===t.touches.length})),Object(c["a"])((function(t){return t.touches[0]})))}),(function(t,e){return{down:t,move:e}}))),this.touchTwoFingersZoom$=this.touchstart$.pipe(Object(u["a"])((function(t){return 2===t.touches.length})),Object(u["a"])(this.isTwoPointZoomElement),Object(l["a"])(this.prevent),Object(c["a"])((function(){t.stop$.next(0);var e=t.zoomPos();return{event:event,zoom:e}})),Object(f["a"])((function(){return t.touchmove$.pipe(Object(u["a"])((function(t){return 2===t.touches.length})),Object(l["a"])(t.prevent),Object(h["a"])(t.touchend$))}),(function(e,n){return t.getTwoTouchesPos(e.event,n,e.zoom)}))),this.mousedownCreate$=this.mousedown$.pipe(Object(u["a"])(this.isCreateElement),Object(l["a"])(this.prevent),Object(c["a"])(this.getFakeDown),Object(f["a"])((function(){return t.mousemove$.pipe(Object(h["a"])(t.mouseup$))}),(function(t,e){return{down:t,move:e}}))),this.touchstartCreate$=this.touchstart$.pipe(Object(u["a"])(this.isCreateElement),Object(l["a"])(this.prevent),Object(c["a"])((function(t){return t.touches[0]})),Object(c["a"])(this.getFakeDown),Object(f["a"])((function(){return t.touchmove$.pipe(Object(h["a"])(t.touchend$),Object(h["a"])(t.stop$),Object(u["a"])((function(t){return 1===t.touches.length})),Object(u["a"])((function(){return t.touchCreate})))}),(function(t,e){return{down:t,move:e.touches[0]}}))),this.dragSubject$=(new a["a"]).pipe(Object(s["a"])(this.mousedownDrag$),Object(s["a"])(this.touchdownDrag$),Object(c["a"])(this.dragMoving),Object(c["a"])(this.repositionDrag),Object(s["a"])(this.setTL$),Object(p["a"])({left:0,top:0})),this.dragCreateSubject$=this.mousedownCreate$.pipe(Object(s["a"])(this.touchstartCreate$),Object(c["a"])((function(t){var e=t.down,n=t.move;return{down:e,move:n}}))),this.zoomSubject$=(new a["a"]).pipe(Object(s["a"])(this.mousedownZoom$),Object(s["a"])(this.touchdownZoom$),Object(s["a"])(this.dragCreateSubject$),Object(c["a"])(this.reverseDownPos),Object(c["a"])(this.zoomingPosition),Object(s["a"])(this.touchTwoFingersZoom$),Object(c["a"])(this.setRatioWH),Object(c["a"])(this.toPercentage),Object(c["a"])(this.splitPos),Object(c["a"])((function(e){var n=e.tl,r=e.wh;return t.setTL$.next(n),r})),Object(p["a"])({width:0,height:0}),Object(s["a"])(this.initWHTL$),Object(s["a"])(this.setWH$)),this.onChange$=(new a["a"]).pipe(Object(s["a"])(this.dragSubject$),Object(s["a"])(this.change$)),{zoomTL$:this.dragSubject$,zoomWH$:this.zoomSubject$}},props:{preview:{type:String,default:""},src:{type:String,default:""},border:{type:Number,default:1},outline:{type:Number,default:6},corner:{type:Boolean,default:!0},grid:{type:Boolean,default:!0},mode:{type:String,default:"normal"},ratio:{type:Number,default:NaN},wrapRatio:{type:Number,default:NaN},touchCreate:{type:Boolean,default:!0},rotate:{type:Number,default:0},bgColor:{type:String,default:"white"},shadow:{type:String,default:"rgba(0, 0, 0, 0.4)"},scale:{type:Number,default:1},minWidth:{type:Number,default:1},minHeight:{type:Number,default:1},initWidth:{type:Number,default:50},initHeight:{type:Number,default:50},crossOrigin:{type:String,default:void 0}},data:function(){return{imgRatio:NaN}},computed:{posObj:function(){var t={"border-width":"".concat(this.border,"px !important"),width:"".concat(this.zoomWH$.width,"% !important"),height:"".concat(this.zoomWH$.height,"% !important"),color:"".concat(this.shadow," !important"),"box-shadow":"0 0 0 ".concat(this._shadow," !important")};for(var e in this.zoomTL$)"number"===typeof this.zoomTL$[e]&&(t[e]="".concat(this.zoomTL$[e],"% !important"));return t},scaleStyle:function(){return{transform:"scale(".concat(this.scale,") !important")}},rotateStyle:function(){return{transform:"rotate(".concat(this.rotate,"deg) !important")}},areaStyle:function(){var t="".concat(this.border,"px !important"),e="".concat(this.src?"block":"none"," !important"),n="".concat(this.bgColor," !important");return{padding:t,display:e,"background-color":n}},eptStyle:function(){var t="".concat(this.src?"none":"block"," !important");return{display:t}},exOuterStyle:function(){var t="".concat(this.outline+this.border,"px");return{"border-width":"".concat(t," !important"),transform:"translate(-".concat(t,",-").concat(t,") !important")}},exInnerStyle:function(){var t="".concat(this.outline,"px !important");return{padding:t}},_shadow:function(){return"".concat(this.imgRatio>=1?100:100/this.imgRatio,"vw")},stemArea:function(){return this.wrapRatio?{width:100*this.wrapRatio,height:100}:this.imgRatio?{width:this.imgEl.naturalWidth,height:this.imgEl.naturalHeight}:{}},isVertical:function(){var t=this.wrapRatio||this.ratio;return!!t&&this.imgRatio<t}},watch:{ratio:function(){this.resetData()},wrapRatio:function(){this.resetData()},bgColor:function(){this.callPreview("setData",{bgColor:this.bgColor})},scaleStyle:function(){this.change$.next(0)},rotateStyle:function(){this.change$.next(0)}},mounted:function(){var t=this;this.imgEl=this.$el.querySelector(".js-clipper-basic .js-img"),this.canvasEl=document.createElement("CANVAS"),this.areaEl=this.$el.querySelector(".js-clipper-basic .js-clip-area"),this.scaleEl=this.$el.querySelector(".js-clipper-basic .js-img-scale"),this.zoomEl=this.$el.querySelector(".js-clipper-basic .js-zoom-area"),this.dragEl=this.$el.querySelector(".js-clipper-basic .js-drag-inset"),this.preview&&this.$subscribeTo(this.onChange$,(function(){t.$nextTick((function(){var e=t.getDrawPos().pos,n=t.rotate;t.invalidDrawPos(e)||t.callPreview("locateImage",e,n)}))}))},methods:{imgLoaded:function(){this.callPreview("setData",{src:this.src,bgColor:this.bgColor}),this.imgRatio=this.imgEl.naturalWidth/this.imgEl.naturalHeight,this.resetData()},resetData:function(){var t=this;this.$nextTick((function(){t.initWHTL$.next(!0)}))}}},b=d,m=(n("300a"),n("2877")),g=Object(m["a"])(b,r,i,!1,null,"322309c2",null);e["a"]=g.exports},6547:function(t,e,n){var r=n("a691"),i=n("1d80"),o=function(t){return function(e,n){var o,a,c=String(i(e)),s=r(n),u=c.length;return s<0||s>=u?t?"":void 0:(o=c.charCodeAt(s),o<55296||o>56319||s+1===u||(a=c.charCodeAt(s+1))<56320||a>57343?t?c.charAt(s):o:t?c.slice(s,s+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},"65f0":function(t,e,n){var r=n("861d"),i=n("e8b5"),o=n("b622"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"667f":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("a6c5"),i=n("9828");function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r["a"])(i["a"],t)}},"69f3":function(t,e,n){var r,i,o,a=n("7f9a"),c=n("da84"),s=n("861d"),u=n("9112"),l=n("5135"),f=n("f772"),h=n("d012"),p=c.WeakMap,d=function(t){return o(t)?i(t):r(t,{})},b=function(t){return function(e){var n;if(!s(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var m=new p,g=m.get,v=m.has,y=m.set;r=function(t,e){return y.call(m,t,e),e},i=function(t){return g.call(m,t)||{}},o=function(t){return v.call(m,t)}}else{var w=f("state");h[w]=!0,r=function(t,e){return u(t,w,e),e},i=function(t){return l(t,w)?t[w]:{}},o=function(t){return l(t,w)}}t.exports={set:r,get:i,has:o,enforce:d,getterFor:b}},"6e77":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("e9b9"),i=n("8ac6"),o=n("d817"),a=n("ebb6");function c(t,e,n,u){return Object(o["a"])(n)&&(u=n,n=void 0),u?c(t,e,n).pipe(Object(a["a"])((function(t){return Object(i["a"])(t)?u.apply(void 0,t):u(t)}))):new r["a"]((function(r){function i(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}s(t,e,i,r,n)}))}function s(t,e,n,r,i){var o;if(f(t)){var a=t;t.addEventListener(e,n,i),o=function(){return a.removeEventListener(e,n,i)}}else if(l(t)){var c=t;t.on(e,n),o=function(){return c.off(e,n)}}else if(u(t)){var h=t;t.addListener(e,n),o=function(){return h.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var p=0,d=t.length;p<d;p++)s(t[p],e,n,r,i)}r.add(o)}function u(t){return t&&"function"===typeof t.addListener&&"function"===typeof t.removeListener}function l(t){return t&&"function"===typeof t.on&&"function"===typeof t.off}function f(t){return t&&"function"===typeof t.addEventListener&&"function"===typeof t.removeEventListener}},"6eeb":function(t,e,n){var r=n("da84"),i=n("9112"),o=n("5135"),a=n("ce4e"),c=n("8925"),s=n("69f3"),u=s.get,l=s.enforce,f=String(String).split("String");(t.exports=function(t,e,n,c){var s=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,h=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),l(n).source=f.join("string"==typeof e?e:"")),t!==r?(s?!h&&t[e]&&(u=!0):delete t[e],u?t[e]=n:i(t,e,n)):u?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||c(this)}))},"6f45":function(t,e,r){var i,o;(function(){var r=!1,a=function(t){return t instanceof a?t:this instanceof a?void(this.EXIFwrapped=t):new a(t)};t.exports&&(e=t.exports=a),e.EXIF=a;var c=a.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},s=a.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},u=a.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},l=a.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},f=a.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function h(t){return!!t.exifdata}function p(t,e){e=e||t.match(/^data\:([^\;]+)\;base64,/im)[1]||"",t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(t),r=n.length,i=new ArrayBuffer(r),o=new Uint8Array(i),a=0;a<r;a++)o[a]=n.charCodeAt(a);return i}function d(t,e){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="blob",n.onload=function(t){200!=this.status&&0!==this.status||e(this.response)},n.send()}function b(t,e){function n(n){var r=m(n);t.exifdata=r||{};var i=g(n);if(t.iptcdata=i||{},a.isXmpEnabled){var o=E(n);t.xmpdata=o||{}}e&&e.call(t)}if(t.src)if(/^data\:/i.test(t.src)){var i=p(t.src);n(i)}else if(/^blob\:/i.test(t.src)){var o=new FileReader;o.onload=function(t){n(t.target.result)},d(t.src,(function(t){o.readAsArrayBuffer(t)}))}else{var c=new XMLHttpRequest;c.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";n(c.response),c=null},c.open("GET",t.src,!0),c.responseType="arraybuffer",c.send(null)}else if(self.FileReader&&(t instanceof self.Blob||t instanceof self.File)){o=new FileReader;o.onload=function(t){r&&console.log("Got file of length "+t.target.result.byteLength),n(t.target.result)},o.readAsArrayBuffer(t)}}function m(t){var e=new DataView(t);if(r&&console.log("Got file of length "+t.byteLength),255!=e.getUint8(0)||216!=e.getUint8(1))return r&&console.log("Not a valid JPEG"),!1;var n,i=2,o=t.byteLength;while(i<o){if(255!=e.getUint8(i))return r&&console.log("Not a valid marker at offset "+i+", found: "+e.getUint8(i)),!1;if(n=e.getUint8(i+1),r&&console.log(n),225==n)return r&&console.log("Found 0xFFE1 marker"),_(e,i+4,e.getUint16(i+2)-2);i+=2+e.getUint16(i+2)}}function g(t){var e=new DataView(t);if(r&&console.log("Got file of length "+t.byteLength),255!=e.getUint8(0)||216!=e.getUint8(1))return r&&console.log("Not a valid JPEG"),!1;var n=2,i=t.byteLength,o=function(t,e){return 56===t.getUint8(e)&&66===t.getUint8(e+1)&&73===t.getUint8(e+2)&&77===t.getUint8(e+3)&&4===t.getUint8(e+4)&&4===t.getUint8(e+5)};while(n<i){if(o(e,n)){var a=e.getUint8(n+7);a%2!==0&&(a+=1),0===a&&(a=4);var c=n+8+a,s=e.getUint16(n+6+a);return y(t,c,s)}n++}}var v={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function y(t,e,n){var r,i,o,a,c=new DataView(t),s={},u=e;while(u<e+n)28===c.getUint8(u)&&2===c.getUint8(u+1)&&(a=c.getUint8(u+2),a in v&&(o=c.getInt16(u+3),o+5,i=v[a],r=O(c,u+5,o),s.hasOwnProperty(i)?s[i]instanceof Array?s[i].push(r):s[i]=[s[i],r]:s[i]=r)),u++;return s}function w(t,e,n,i,o){var a,c,s,u=t.getUint16(n,!o),l={};for(s=0;s<u;s++)a=n+12*s+2,c=i[t.getUint16(a,!o)],!c&&r&&console.log("Unknown tag: "+t.getUint16(a,!o)),l[c]=x(t,a,e,n,o);return l}function x(t,e,n,r,i){var o,a,c,s,u,l,f=t.getUint16(e+2,!i),h=t.getUint32(e+4,!i),p=t.getUint32(e+8,!i)+n;switch(f){case 1:case 7:if(1==h)return t.getUint8(e+8,!i);for(o=h>4?p:e+8,a=[],s=0;s<h;s++)a[s]=t.getUint8(o+s);return a;case 2:return o=h>4?p:e+8,O(t,o,h-1);case 3:if(1==h)return t.getUint16(e+8,!i);for(o=h>2?p:e+8,a=[],s=0;s<h;s++)a[s]=t.getUint16(o+2*s,!i);return a;case 4:if(1==h)return t.getUint32(e+8,!i);for(a=[],s=0;s<h;s++)a[s]=t.getUint32(p+4*s,!i);return a;case 5:if(1==h)return u=t.getUint32(p,!i),l=t.getUint32(p+4,!i),c=new Number(u/l),c.numerator=u,c.denominator=l,c;for(a=[],s=0;s<h;s++)u=t.getUint32(p+8*s,!i),l=t.getUint32(p+4+8*s,!i),a[s]=new Number(u/l),a[s].numerator=u,a[s].denominator=l;return a;case 9:if(1==h)return t.getInt32(e+8,!i);for(a=[],s=0;s<h;s++)a[s]=t.getInt32(p+4*s,!i);return a;case 10:if(1==h)return t.getInt32(p,!i)/t.getInt32(p+4,!i);for(a=[],s=0;s<h;s++)a[s]=t.getInt32(p+8*s,!i)/t.getInt32(p+4+8*s,!i);return a}}function S(t,e,n){var r=t.getUint16(e,!n);return t.getUint32(e+2+12*r,!n)}function j(t,e,n,r){var i=S(t,e+n,r);if(!i)return{};if(i>t.byteLength)return{};var o=w(t,e,e+i,l,r);if(o["Compression"])switch(o["Compression"]){case 6:if(o.JpegIFOffset&&o.JpegIFByteCount){var a=e+o.JpegIFOffset,c=o.JpegIFByteCount;o["blob"]=new Blob([new Uint8Array(t.buffer,a,c)],{type:"image/jpeg"})}break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",o["Compression"])}else 2==o["PhotometricInterpretation"]&&console.log("Thumbnail image format is RGB, which is not implemented.");return o}function O(t,e,r){var i="";for(n=e;n<e+r;n++)i+=String.fromCharCode(t.getUint8(n));return i}function _(t,e){if("Exif"!=O(t,e,4))return r&&console.log("Not valid EXIF data! "+O(t,e,4)),!1;var n,i,o,a,l,h=e+6;if(18761==t.getUint16(h))n=!1;else{if(19789!=t.getUint16(h))return r&&console.log("Not valid TIFF data! (no 0x4949 or 0x4D4D)"),!1;n=!0}if(42!=t.getUint16(h+2,!n))return r&&console.log("Not valid TIFF data! (no 0x002A)"),!1;var p=t.getUint32(h+4,!n);if(p<8)return r&&console.log("Not valid TIFF data! (First offset less than 8)",t.getUint32(h+4,!n)),!1;if(i=w(t,h,h+p,s,n),i.ExifIFDPointer)for(o in a=w(t,h,h+i.ExifIFDPointer,c,n),a){switch(o){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":a[o]=f[o][a[o]];break;case"ExifVersion":case"FlashpixVersion":a[o]=String.fromCharCode(a[o][0],a[o][1],a[o][2],a[o][3]);break;case"ComponentsConfiguration":a[o]=f.Components[a[o][0]]+f.Components[a[o][1]]+f.Components[a[o][2]]+f.Components[a[o][3]];break}i[o]=a[o]}if(i.GPSInfoIFDPointer)for(o in l=w(t,h,h+i.GPSInfoIFDPointer,u,n),l){switch(o){case"GPSVersionID":l[o]=l[o][0]+"."+l[o][1]+"."+l[o][2]+"."+l[o][3];break}i[o]=l[o]}return i["thumbnail"]=j(t,h,p,n),i}function E(t){if("DOMParser"in self){var e=new DataView(t);if(r&&console.log("Got file of length "+t.byteLength),255!=e.getUint8(0)||216!=e.getUint8(1))return r&&console.log("Not a valid JPEG"),!1;var n=2,i=t.byteLength,o=new DOMParser;while(n<i-4){if("http"==O(e,n,4)){var a=n-1,c=e.getUint16(n-2)-1,s=O(e,a,c),u=s.indexOf("xmpmeta>")+8;s=s.substring(s.indexOf("<x:xmpmeta"),u);var l=s.indexOf("x:xmpmeta")+10;s=s.slice(0,l)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+s.slice(l);var f=o.parseFromString(s,"text/xml");return C(f)}n++}}}function P(t){var e={};if(1==t.nodeType){if(t.attributes.length>0){e["@attributes"]={};for(var n=0;n<t.attributes.length;n++){var r=t.attributes.item(n);e["@attributes"][r.nodeName]=r.nodeValue}}}else if(3==t.nodeType)return t.nodeValue;if(t.hasChildNodes())for(var i=0;i<t.childNodes.length;i++){var o=t.childNodes.item(i),a=o.nodeName;if(null==e[a])e[a]=P(o);else{if(null==e[a].push){var c=e[a];e[a]=[],e[a].push(c)}e[a].push(P(o))}}return e}function C(t){try{var e={};if(t.children.length>0)for(var n=0;n<t.children.length;n++){var r=t.children.item(n),i=r.attributes;for(var o in i){var a=i[o],c=a.nodeName,s=a.nodeValue;void 0!==c&&(e[c]=s)}var u=r.nodeName;if("undefined"==typeof e[u])e[u]=P(r);else{if("undefined"==typeof e[u].push){var l=e[u];e[u]=[],e[u].push(l)}e[u].push(P(r))}}else e=t.textContent;return e}catch(f){console.log(f.message)}}a.enableXmp=function(){a.isXmpEnabled=!0},a.disableXmp=function(){a.isXmpEnabled=!1},a.getData=function(t,e){return!((self.Image&&t instanceof self.Image||self.HTMLImageElement&&t instanceof self.HTMLImageElement)&&!t.complete)&&(h(t)?e&&e.call(t):b(t,e),!0)},a.getTag=function(t,e){if(h(t))return t.exifdata[e]},a.getIptcTag=function(t,e){if(h(t))return t.iptcdata[e]},a.getAllTags=function(t){if(!h(t))return{};var e,n=t.exifdata,r={};for(e in n)n.hasOwnProperty(e)&&(r[e]=n[e]);return r},a.getAllIptcTags=function(t){if(!h(t))return{};var e,n=t.iptcdata,r={};for(e in n)n.hasOwnProperty(e)&&(r[e]=n[e]);return r},a.pretty=function(t){if(!h(t))return"";var e,n=t.exifdata,r="";for(e in n)n.hasOwnProperty(e)&&("object"==typeof n[e]?n[e]instanceof Number?r+=e+" : "+n[e]+" ["+n[e].numerator+"/"+n[e].denominator+"]\r\n":r+=e+" : ["+n[e].length+" values]\r\n":r+=e+" : "+n[e]+"\r\n");return r},a.readFromBinaryFile=function(t){return m(t)},i=[],o=function(){return a}.apply(e,i),void 0===o||(t.exports=o)}).call(this)},7156:function(t,e,n){var r=n("861d"),i=n("d2bb");t.exports=function(t,e,n){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(t,a),t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7594:function(t,e,n){},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7a31":function(t,e,n){},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7c73":function(t,e,n){var r,i=n("825a"),o=n("37e8"),a=n("7839"),c=n("d012"),s=n("1be4"),u=n("cc12"),l=n("f772"),f=">",h="<",p="prototype",d="script",b=l("IE_PROTO"),m=function(){},g=function(t){return h+d+f+t+h+"/"+d+f},v=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){var t,e=u("iframe"),n="java"+d+":";return e.style.display="none",s.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(g("document.F=Object")),t.close(),t.F},w=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}w=r?v(r):y();var t=a.length;while(t--)delete w[p][a[t]];return w()};c[b]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(m[p]=i(t),n=new m,m[p]=null,n[b]=t):n=w(),void 0===e?n:o(n,e)}},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),i=n("9ed3"),o=n("e163"),a=n("d2bb"),c=n("d44e"),s=n("9112"),u=n("6eeb"),l=n("b622"),f=n("c430"),h=n("3f8c"),p=n("ae93"),d=p.IteratorPrototype,b=p.BUGGY_SAFARI_ITERATORS,m=l("iterator"),g="keys",v="values",y="entries",w=function(){return this};t.exports=function(t,e,n,l,p,x,S){i(n,e,l);var j,O,_,E=function(t){if(t===p&&I)return I;if(!b&&t in $)return $[t];switch(t){case g:return function(){return new n(this,t)};case v:return function(){return new n(this,t)};case y:return function(){return new n(this,t)}}return function(){return new n(this)}},P=e+" Iterator",C=!1,$=t.prototype,T=$[m]||$["@@iterator"]||p&&$[p],I=!b&&T||E(p),R="Array"==e&&$.entries||T;if(R&&(j=o(R.call(new t)),d!==Object.prototype&&j.next&&(f||o(j)===d||(a?a(j,d):"function"!=typeof j[m]&&s(j,m,w)),c(j,P,!0,!0),f&&(h[P]=w))),p==v&&T&&T.name!==v&&(C=!0,I=function(){return T.call(this)}),f&&!S||$[m]===I||s($,m,I),h[e]=I,p)if(O={values:E(v),keys:x?I:E(g),entries:E(y)},S)for(_ in O)(b||C||!(_ in $))&&u($,_,O[_]);else r({target:e,proto:!0,forced:b||C},O);return O}},"7f9a":function(t,e,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var r=n("c04e"),i=n("9bf2"),o=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8858:function(t,e,n){"use strict";var r=n("7594"),i=n.n(r);i.a},8875:function(t,e,n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,r,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,c=o.exec(p.stack)||a.exec(p.stack),s=c&&c[1]||!1,u=c&&c[2]||!1,l=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");s===l&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(r,"$1").trim());for(var h=0;h<f.length;h++){if("interactive"===f[h].readyState)return f[h];if(f[h].src===s)return f[h];if(s===l&&f[h].innerHTML&&f[h].innerHTML.trim()===i)return f[h]}return null}}return t}))},"88bc":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;e.stack}r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},8925:function(t,e,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},"8ac6":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return Array.isArray||function(t){return t&&"number"===typeof t.length}}()},"8d63":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"js-clipper-fixed"},[n("div",{staticClass:"vuejs-clipper-fixed__wrap js-wrap",style:t.wrapStyle},[n("canvas",{staticClass:"vuejs-clipper-fixed__stem-outer",attrs:{width:t.stemArea.width,height:t.stemArea.height}}),n("div",{staticClass:"vuejs-clipper-fixed__img-center"},[n("canvas",{staticClass:"vuejs-clipper-fixed__stem-bg js-stem-bg"}),n("div",{staticClass:"vuejs-clipper-fixed__img-scale js-img-scale",style:t.scaleStyle},[n("div",{staticClass:"vuejs-clipper-fixed__img-translate js-img-translate",style:t.translateStyle},[n("img",{staticClass:"vuejs-clipper-fixed__img js-img",style:t.bgStyle,attrs:{src:t.src,crossorigin:t.crossOrigin},on:{load:function(e){t.imgLoaded(),t.emit("load",e)},error:function(e){return t.emit("error",e)}}})])])]),n("div",{staticClass:"vuejs-clipper-fixed__cover"},[n("div",{staticClass:"vuejs-clipper-fixed__area js-area",style:t.areaStyle},[n("canvas",{staticClass:"vuejs-clipper-fixed__stem-area",style:t.stemStyle,attrs:{width:t.stemArea.width,height:t.stemArea.height}}),t.grid?n("div",{staticClass:"vuejs-clipper-fixed__grid"},t._l(4,(function(t){return n("div",{key:"gridItem"+t,staticClass:"vuejs-clipper-fixed__grid-item"})})),0):t._e()])])]),n("div",{staticClass:"vuejs-clipper-fixed__placeholder",style:t.eptStyle},[t._t("placeholder")],2)])},i=[],o=(n("99af"),n("a9e3"),n("c7eb")),a=n("5670"),c=n("c4cc"),s=n("ebb6"),u=n("3e18"),l=n("9f2d"),f=n("a744"),h=n("4d82"),p=n("2bd2"),d=n("a748"),b={extends:{methods:o["b"],mixins:[o["d"],o["e"],o["c"]]},subscriptions:function(){var t=this;return this.setWH$=new p["a"],this.setTL$=new p["a"],this.change$=new p["a"],this.mousedownDrag$=this.mousedown$.pipe(Object(a["a"])(this.isDragElement),Object(c["a"])(this.prevent),Object(s["a"])(this.dragDownPos),Object(u["a"])((function(){return t.mousemove$.pipe(Object(c["a"])(t.prevent),Object(l["a"])(t.mouseup$))}),(function(t,e){return{down:t,move:e}}))),this.touchdownDrag$=this.touchstart$.pipe(Object(a["a"])(this.isDragElement),Object(c["a"])(this.prevent),Object(a["a"])((function(t){return 1===t.touches.length})),Object(s["a"])((function(t){return t.touches[0]})),Object(s["a"])(this.dragDownPos),Object(u["a"])((function(){return t.touchmove$.pipe(Object(l["a"])(t.touchend$),Object(a["a"])((function(t){return 1===t.touches.length})))}),(function(t,e){return{down:t,move:e.touches[0]}}))),this.wheelEvent$=this.wheel$.pipe(Object(a["a"])(this.isDragElement),Object(c["a"])(this.prevent),Object(s["a"])((function(t){return t.deltaY})),Object(s["a"])((function(t){return t>=0?-1:1}))),this.touchTwoFinger$=this.touchstart$.pipe(Object(a["a"])(this.isDragElement),Object(a["a"])((function(t){return 2===t.touches.length})),Object(c["a"])(this.prevent),Object(s["a"])(this.towPointsTouches),Object(s["a"])(this.setOrigin),Object(u["a"])((function(){return t.touchmove$.pipe(Object(l["a"])(t.touchend$),Object(a["a"])((function(t){return 2===t.touches.length})),Object(s["a"])(t.towPointsTouches))}),(function(t,e){var n=t.down,r=t.origin;return{down:n,move:e,origin:r}})),Object(s["a"])(this.twoPointsDelta)),this.wheelZoom$=(new p["a"]).pipe(Object(f["a"])(1),Object(h["a"])(this.wheelEvent$),Object(s["a"])(this.calcWheelScaling)),this.touchZoom$=(new p["a"]).pipe(Object(f["a"])(1),Object(h["a"])(this.touchTwoFinger$),Object(s["a"])(this.calcTouchScaling)),this.zoomFromNativeEvents=Object(d["a"])(this.wheelZoom$,this.touchZoom$).pipe(Object(s["a"])(this.handleZoomEvent)),this.zoomSubject$=(new p["a"]).pipe(Object(h["a"])(this.setWH$),Object(h["a"])(this.zoomFromNativeEvents)),this.dragSubject$=(new p["a"]).pipe(Object(f["a"])({left:0,top:0}),Object(h["a"])(this.setTL$),Object(h["a"])(this.mousedownDrag$.pipe(Object(h["a"])(this.touchdownDrag$),Object(s["a"])(this.delta),Object(s["a"])(this.toPercentage)))),this.onChange$=(new p["a"]).pipe(Object(h["a"])(this.zoomSubject$),Object(h["a"])(this.dragSubject$),Object(h["a"])(this.change$)),{bgWH$:this.zoomSubject$,bgTL$:this.dragSubject$}},props:{src:{type:String,default:""},rotate:{type:Number,default:0},ratio:{type:Number,default:1},zoomRate:{type:Number,default:.04},minScale:{type:Number,default:.1},bgColor:{type:String,default:"white"},border:{type:Number,default:1},borderColor:{type:String,default:"white"},grid:{type:Boolean,default:!0},shadow:{type:String,default:"rgba(0, 0, 0, 0.4)"},round:{type:Boolean,default:!1},preview:{type:String,default:""},crossOrigin:{type:String,default:void 0},area:{type:Number,default:50},handleZoomEvent:{type:Function,default:function(t){return t}}},data:function(){return{imgRatio:NaN}},computed:{areaStyle:function(){var t={color:this.shadow,"border-width":"".concat(this.border,"px !important"),"border-color":"".concat(this.borderColor," !important"),"box-shadow":"0 0 0 ".concat(this._shadow," !important"),"border-radius":"".concat(this.round?"50%":""," !important")};return this.ratio>=1?t.width="".concat(this.area,"% !important"):t.height="".concat(this.area,"% !important"),t},scaleStyle:function(){var t=this.bgWH$;return{transform:"scale(".concat(t,") !important")}},translateStyle:function(){var t=this.bgTL$.left,e=this.bgTL$.top;return{transform:"translate(".concat(t,"%,").concat(e,"%) !important")}},bgStyle:function(){return{transform:"rotate(".concat(this.rotate,"deg) !important")}},wrapStyle:function(){return{"background-color":"".concat(this.bgColor," !important"),display:"".concat(this.src?"block":"none"," !important")}},stemArea:function(){return{width:100,height:100/this.ratio}},eptStyle:function(){return{display:"".concat(this.src?"none":"block"," !important")}},stemStyle:function(){var t={};return this.ratio>=1?t.width="100% !important":t.height="100% !important",t},_shadow:function(){return"".concat(this.imgRatio>=1?100:100/this.imgRatio,"vw")}},watch:{ratio:function(){this.resetData(),this.change$.next(0)},bgColor:function(){this.callPreview("setData",{bgColor:this.bgColor})},bgStyle:function(){this.change$.next(0)}},mounted:function(){var t=this;this.imgEl=this.$el.querySelector(".js-clipper-fixed .js-img"),this.wrapEl=this.$el.querySelector(".js-clipper-fixed .js-wrap"),this.areaEl=this.$el.querySelector(".js-clipper-fixed .js-area"),this.scaleEl=this.$el.querySelector(".js-clipper-fixed .js-img-scale"),this.translateEl=this.$el.querySelector(".js-clipper-fixed .js-img-translate"),this.stemEl=this.$el.querySelector(".js-clipper-fixed .js-stem-bg"),this.canvasEl=document.createElement("CANVAS"),this.$subscribeTo(this.onChange$,(function(){t.$nextTick((function(){var e=t.getDrawPos().pos,n=t.rotate;t.invalidDrawPos(e)||t.callPreview("locateImage",e,n)}))}))},methods:{imgLoaded:function(){this.imgRatio=this.imgEl.naturalWidth/this.imgEl.naturalHeight,this.stemEl.width=this.imgEl.naturalWidth,this.stemEl.height=this.imgEl.naturalHeight,this.resetData(),this.callPreview("setData",{src:this.src,bgColor:this.bgColor})},resetData:function(){this.setTL$.next({left:0,top:0});var t=this.ratio>this.imgRatio?this.imgRatio/this.ratio:1;this.setWH$.next(Math.max(t,this.minScale))}}},m=b,g=(n("4af2"),n("2877")),v=Object(g["a"])(m,r,i,!1,null,"3e3030c1",null);e["a"]=v.exports},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"94ca":function(t,e,n){var r=n("d039"),i=/#|\.prototype\./,o=function(t,e){var n=c[a(t)];return n==u||n!=s&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=o.data={},s=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},9828:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},9861:function(t,e,n){"use strict";n("e260");var r=n("23e7"),i=n("d066"),o=n("0d3b"),a=n("6eeb"),c=n("e2cc"),s=n("d44e"),u=n("9ed3"),l=n("69f3"),f=n("19aa"),h=n("5135"),p=n("0366"),d=n("f5df"),b=n("825a"),m=n("861d"),g=n("7c73"),v=n("5c6c"),y=n("9a1f"),w=n("35a1"),x=n("b622"),S=i("fetch"),j=i("Headers"),O=x("iterator"),_="URLSearchParams",E=_+"Iterator",P=l.set,C=l.getterFor(_),$=l.getterFor(E),T=/\+/g,I=Array(4),R=function(t){return I[t-1]||(I[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},L=function(t){try{return decodeURIComponent(t)}catch(e){return t}},k=function(t){var e=t.replace(T," "),n=4;try{return decodeURIComponent(e)}catch(r){while(n)e=e.replace(R(n--),L);return e}},D=/[!'()~]|%20/g,A={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},F=function(t){return A[t]},N=function(t){return encodeURIComponent(t).replace(D,F)},U=function(t,e){if(e){var n,r,i=e.split("&"),o=0;while(o<i.length)n=i[o++],n.length&&(r=n.split("="),t.push({key:k(r.shift()),value:k(r.join("="))}))}},M=function(t){this.entries.length=0,U(this.entries,t)},H=function(t,e){if(t<e)throw TypeError("Not enough arguments")},Y=u((function(t,e){P(this,{type:E,iterator:y(C(t).entries),kind:e})}),"Iterator",(function(){var t=$(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n})),W=function(){f(this,W,_);var t,e,n,r,i,o,a,c,s,u=arguments.length>0?arguments[0]:void 0,l=this,p=[];if(P(l,{type:_,entries:p,updateURL:function(){},updateSearchParams:M}),void 0!==u)if(m(u))if(t=w(u),"function"===typeof t){e=t.call(u),n=e.next;while(!(r=n.call(e)).done){if(i=y(b(r.value)),o=i.next,(a=o.call(i)).done||(c=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");p.push({key:a.value+"",value:c.value+""})}}else for(s in u)h(u,s)&&p.push({key:s,value:u[s]+""});else U(p,"string"===typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},X=W.prototype;c(X,{append:function(t,e){H(arguments.length,2);var n=C(this);n.entries.push({key:t+"",value:e+""}),n.updateURL()},delete:function(t){H(arguments.length,1);var e=C(this),n=e.entries,r=t+"",i=0;while(i<n.length)n[i].key===r?n.splice(i,1):i++;e.updateURL()},get:function(t){H(arguments.length,1);for(var e=C(this).entries,n=t+"",r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){H(arguments.length,1);for(var e=C(this).entries,n=t+"",r=[],i=0;i<e.length;i++)e[i].key===n&&r.push(e[i].value);return r},has:function(t){H(arguments.length,1);var e=C(this).entries,n=t+"",r=0;while(r<e.length)if(e[r++].key===n)return!0;return!1},set:function(t,e){H(arguments.length,1);for(var n,r=C(this),i=r.entries,o=!1,a=t+"",c=e+"",s=0;s<i.length;s++)n=i[s],n.key===a&&(o?i.splice(s--,1):(o=!0,n.value=c));o||i.push({key:a,value:c}),r.updateURL()},sort:function(){var t,e,n,r=C(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(t=o[n],e=0;e<n;e++)if(i[e].key>t.key){i.splice(e,0,t);break}e===n&&i.push(t)}r.updateURL()},forEach:function(t){var e,n=C(this).entries,r=p(t,arguments.length>1?arguments[1]:void 0,3),i=0;while(i<n.length)e=n[i++],r(e.value,e.key,this)},keys:function(){return new Y(this,"keys")},values:function(){return new Y(this,"values")},entries:function(){return new Y(this,"entries")}},{enumerable:!0}),a(X,O,X.entries),a(X,"toString",(function(){var t,e=C(this).entries,n=[],r=0;while(r<e.length)t=e[r++],n.push(N(t.key)+"="+N(t.value));return n.join("&")}),{enumerable:!0}),s(W,_),r({global:!0,forced:!o},{URLSearchParams:W}),o||"function"!=typeof S||"function"!=typeof j||r({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,n,r,i=[t];return arguments.length>1&&(e=arguments[1],m(e)&&(n=e.body,d(n)===_&&(r=e.headers?new j(e.headers):new j,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=g(e,{body:v(0,String(n)),headers:v(0,r)}))),i.push(e)),S.apply(this,i)}}),t.exports={URLSearchParams:W,getState:C}},"99af":function(t,e,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("e8b5"),a=n("861d"),c=n("7b0b"),s=n("50c4"),u=n("8418"),l=n("65f0"),f=n("1dde"),h=n("b622"),p=n("2d00"),d=h("isConcatSpreadable"),b=9007199254740991,m="Maximum allowed index exceeded",g=p>=51||!i((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),v=f("concat"),y=function(t){if(!a(t))return!1;var e=t[d];return void 0!==e?!!e:o(t)},w=!g||!v;r({target:"Array",proto:!0,forced:w},{concat:function(t){var e,n,r,i,o,a=c(this),f=l(a,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?a:arguments[e],y(o)){if(i=s(o.length),h+i>b)throw TypeError(m);for(n=0;n<i;n++,h++)n in o&&u(f,h,o[n])}else{if(h>=b)throw TypeError(m);u(f,h++,o)}return f.length=h,f}})},"9a1f":function(t,e,n){var r=n("825a"),i=n("35a1");t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return r(e.call(t))}},"9ab4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},"9bdd":function(t,e,n){var r=n("825a");t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(a){var o=t["return"];throw void 0!==o&&r(o.call(t)),a}}},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),a=n("c04e"),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9e46":function(t,e,n){"use strict";function r(t){return t&&"function"===typeof t.schedule}n.d(e,"a",(function(){return r}))},"9ed3":function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),c=n("3f8c"),s=function(){return this};t.exports=function(t,e,n){var u=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,u,!1,!0),c[u]=s,t}},"9f2d":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("9ab4"),i=n("cf86");function o(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new c(t),r=Object(i["c"])(this.notifier,new i["a"](n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),c=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r["a"](e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i["b"])},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a6c5:function(t,e,n){"use strict";n.d(e,"a",(function(){return x}));var r=n("9ab4"),i=n("ebb6"),o=n("e9b9"),a=n("1716"),c=n("a6e8"),s=n("c539");function u(t,e){return new o["a"]((function(n){var r=new c["a"];return r.add(e.schedule((function(){var i=t[s["a"]]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}function l(t,e){return new o["a"]((function(n){var r=new c["a"];return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}var f=n("245f"),h=n("127f");function p(t,e){if(!t)throw new Error("Iterable cannot be null");return new o["a"]((function(n){var r,i=new c["a"];return i.add((function(){r&&"function"===typeof r.return&&r.return()})),i.add(e.schedule((function(){r=t[h["a"]](),i.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}})))}))),i}))}function d(t){return t&&"function"===typeof t[s["a"]]}var b=n("fd66"),m=n("d9e3");function g(t){return t&&"function"===typeof t[h["a"]]}function v(t,e){if(null!=t){if(d(t))return u(t,e);if(Object(b["a"])(t))return l(t,e);if(Object(m["a"])(t))return Object(f["a"])(t,e);if(g(t)||"string"===typeof t)return p(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function y(t,e){return e?v(t,e):t instanceof o["a"]?t:new o["a"](Object(a["a"])(t))}var w=n("cf86");function x(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"===typeof e?function(r){return r.pipe(x((function(n,r){return y(t(n,r)).pipe(Object(i["a"])((function(t,i){return e(n,t,r,i)})))}),n))}:("number"===typeof e&&(n=e),function(e){return e.lift(new S(t,n))})}var S=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new j(t,this.project,this.concurrent))},t}(),j=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r["a"](e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new w["a"](this),n=this.destination;n.add(e);var r=Object(w["c"])(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(w["b"])},a6e8:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("8ac6"),i=n("31c4"),o=n("d817"),a=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),c=a,s=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this,a=n._parentOrParents,s=n._ctorUnsubscribe,l=n._unsubscribe,f=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,a instanceof t)a.remove(this);else if(null!==a)for(var h=0;h<a.length;++h){var p=a[h];p.remove(this)}if(Object(o["a"])(l)){s&&(this._unsubscribe=void 0);try{l.call(this)}catch(m){e=m instanceof c?u(m.errors):[m]}}if(Object(r["a"])(f)){h=-1;var d=f.length;while(++h<d){var b=f[h];if(Object(i["a"])(b))try{b.unsubscribe()}catch(m){e=e||[],m instanceof c?e=e.concat(u(m.errors)):e.push(m)}}}if(e)throw new c(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!==typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;n=new t,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function u(t){return t.reduce((function(t,e){return t.concat(e instanceof c?e.errors:e)}),[])}},a744:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("9e46"),i=n("2144"),o=n("245f");function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r["a"])(n)?(t.pop(),Object(o["a"])(t,n)):Object(i["a"])(t)}var c=n("667f");function s(){return Object(c["a"])(1)}function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s()(a.apply(void 0,t))}function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(r["a"])(n)?(t.pop(),function(e){return u(t,e,n)}):function(e){return u(t,e)}}},a748:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("e9b9"),i=n("9e46"),o=n("667f"),a=n("2144");function c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,c=null,s=t[t.length-1];return Object(i["a"])(s)?(c=t.pop(),t.length>1&&"number"===typeof t[t.length-1]&&(n=t.pop())):"number"===typeof s&&(n=t.pop()),null===c&&1===t.length&&t[0]instanceof r["a"]?t[0]:Object(o["a"])(n)(Object(a["a"])(t,c))}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),i=n("da84"),o=n("94ca"),a=n("6eeb"),c=n("5135"),s=n("c6b6"),u=n("7156"),l=n("c04e"),f=n("d039"),h=n("7c73"),p=n("241c").f,d=n("06cf").f,b=n("9bf2").f,m=n("58a8").trim,g="Number",v=i[g],y=v.prototype,w=s(h(y))==g,x=function(t){var e,n,r,i,o,a,c,s,u=l(t,!1);if("string"==typeof u&&u.length>2)if(u=m(u),e=u.charCodeAt(0),43===e||45===e){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=u.slice(2),a=o.length,c=0;c<a;c++)if(s=o.charCodeAt(c),s<48||s>i)return NaN;return parseInt(o,r)}return+u};if(o(g,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var S,j=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof j&&(w?f((function(){y.valueOf.call(n)})):s(n)!=g)?u(new v(x(e)),n,j):x(e)},O=r?p(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;O.length>_;_++)c(v,S=O[_])&&!c(j,S)&&b(j,S,d(v,S));j.prototype=y,y.constructor=j,a(i,g,j)}},ab13:function(t,e,n){var r=n("b622"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},ae93:function(t,e,n){"use strict";var r,i,o,a=n("e163"),c=n("9112"),s=n("5135"),u=n("b622"),l=n("c430"),f=u("iterator"),h=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)),i!==Object.prototype&&(r=i)):h=!0),void 0==r&&(r={}),l||s(r,f)||c(r,f,p),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},b041:function(t,e,n){"use strict";var r=n("00ee"),i=n("f5df");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b0c0:function(t,e,n){var r=n("83ab"),i=n("9bf2").f,o=Function.prototype,a=o.toString,c=/^\s*function ([^ (]*)/,s="name";r&&!(s in o)&&i(o,s,{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(t){return""}}})},b575:function(t,e,n){var r,i,o,a,c,s,u,l,f=n("da84"),h=n("06cf").f,p=n("c6b6"),d=n("2cf4").set,b=n("1cdc"),m=f.MutationObserver||f.WebKitMutationObserver,g=f.process,v=f.Promise,y="process"==p(g),w=h(f,"queueMicrotask"),x=w&&w.value;x||(r=function(){var t,e;y&&(t=g.domain)&&t.exit();while(i){e=i.fn,i=i.next;try{e()}catch(n){throw i?a():o=void 0,n}}o=void 0,t&&t.enter()},y?a=function(){g.nextTick(r)}:m&&!b?(c=!0,s=document.createTextNode(""),new m(r).observe(s,{characterData:!0}),a=function(){s.data=c=!c}):v&&v.resolve?(u=v.resolve(void 0),l=u.then,a=function(){l.call(u,r)}):a=function(){d.call(f,r)}),t.exports=x||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("5135"),a=n("90e3"),c=n("4930"),s=n("fdbf"),u=i("wks"),l=r.Symbol,f=s?l:l&&l.withoutSetter||a;t.exports=function(t){return o(u,t)||(c&&o(l,t)?u[t]=l[t]:u[t]=f("Symbol."+t)),u[t]}},c04e:function(t,e,n){var r=n("861d");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},c430:function(t,e){t.exports=!1},c4cc:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("9ab4"),i=n("1453"),o=n("fae9"),a=n("d817");function c(t,e,n){return function(r){return r.lift(new s(t,e,n))}}var s=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.nextOrObserver,this.error,this.complete))},t}(),u=function(t){function e(e,n,r,i){var c=t.call(this,e)||this;return c._tapNext=o["a"],c._tapError=o["a"],c._tapComplete=o["a"],c._tapError=r||o["a"],c._tapComplete=i||o["a"],Object(a["a"])(n)?(c._context=c,c._tapNext=n):n&&(c._context=n,c._tapNext=n.next||o["a"],c._tapError=n.error||o["a"],c._tapComplete=n.complete||o["a"]),c}return r["a"](e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(i["a"])},c539:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){return"function"===typeof Symbol&&Symbol.observable||"@@observable"}()},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c7eb:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return h})),n.d(e,"d",(function(){return p})),n.d(e,"e",(function(){return d})),n.d(e,"c",(function(){return b}));const r={prevent:function(t){t.preventDefault()},eTo:function(t,e,n){const r=this[n+"Pos"]();let i=0;switch(e){case"top":i=t.clientY-r.top;break;case"left":i=t.clientX-r.left;break;case"right":i=r.right-t.clientX;break;case"bottom":i=r.bottom-t.clientY;break}return i},toPercentage:function(t){const e={},n={left:"toX",right:"toX",top:"toY",bottom:"toY",width:"toX",height:"toY"};for(let r in t){const i=n[r];i&&void 0!==t[r]&&(e[r]=this[i](t[r]))}return e},invalidDrawPos:function(t){return 0===t.swidth||0===t.sheight}};var i=r;const o={eToArea:function(t,e){return this.eTo(t,e,"area")},areaPos:function(){const t=this.areaEl.getBoundingClientRect();return t},zoomPos:function(){const t=this.zoomEl.getBoundingClientRect();return t},scalePos:function(){return this.scaleEl.getBoundingClientRect()},imgPos:function(){return this.imgEl.getBoundingClientRect()},eInZoom:function(t){const e=this.zoomEl.getBoundingClientRect();return{width:e.width,height:e.height,left:t.clientX-e.left,top:t.clientY-e.top}},zoomInArea:function(){const t=this.areaEl.getBoundingClientRect(),e=this.zoomEl.getBoundingClientRect();return Object.assign(e,{offsetLeft:e.left-t.left,offsetTop:e.top-t.top,maxLeft:t.width-e.width,maxTop:t.height-e.height})},toX:function(t){const e=this.areaPos();return Math.min(Math.max(t/e.width*100,0),100)},toY:function(t){const e=this.areaPos();return Math.min(Math.max(t/e.height*100,0),100)},isDragElement:function(t){return t.target===this.dragEl},dragMoving:function({down:t,move:e}){const n=this.toX(this.eToArea(e,"left")-t.left),r=this.toY(this.eToArea(e,"top")-t.top);return{left:n,top:r,down:t,move:e}},repositionDrag:function({left:t,top:e,down:n,move:r}){const i=this.zoomInArea(),o=this.toX(i.maxLeft),a=this.toY(i.maxTop);if(t=Math.min(t,o),e=Math.min(e,a),t===o||0===t){const t=this.eInZoom(r);n.left=Math.max(Math.min(t.left,t.width),0)}if(e===a||0===e){const t=this.eInZoom(r);n.top=Math.max(Math.min(t.top,t.height),0)}return{left:t,top:e}},ratioPos:function(t){const e=this.zoomPos();let n=t.width-e.width,r=t.height-e.height,i=n>r;return{x:i,y:!i}},zoomingPosition:function({down:t,move:e}){let n=e.clientX>t.clientX?"r":"l",r=e.clientY>t.clientY?"b":"t";const i=()=>this.eToArea(t,"top"),o=()=>this.eToArea(t,"left"),a=i(),c=o(),s=this.areaPos();let u,l,f,h,p,d,b=0,m=0;const g=this.minWidth*s.width/100,v=this.ratio?g/this.ratio:this.minHeight*s.height/100;return"r"===n?(c+g>s.width?(t.clientX=s.right-g,u=c):u=o(),p=s.width-u,b=e.clientX-t.clientX):"l"===n&&(c<g&&(t.clientX=s.left+g),f=s.right-t.clientX,p=s.width-f,b=t.clientX-e.clientX),"b"===r?(a+v>s.height?(t.clientY=s.bottom-v,l=a):l=i(),d=s.height-l,m=e.clientY-t.clientY):"t"===r&&(a<v&&(t.clientY=s.top+v),h=s.bottom-t.clientY,d=s.height-h,m=t.clientY-e.clientY),b=Math.max(Math.min(b,p),g),m=Math.max(Math.min(m,d),v),{width:b,height:m,top:l,left:u,right:f,bottom:h,maxWidth:p,maxHeight:d}},setRatioWH:function({width:t,height:e,maxWidth:n,maxHeight:r,left:i,top:o,right:a,bottom:c}){if(!this.ratio)return{width:t,height:e,left:i,top:o,right:a,bottom:c};const s=this.ratioPos({width:t,height:e});return s.x?(e=Math.min(t/this.ratio,r),t=e===r?e*this.ratio:t):(t=Math.min(e*this.ratio,n),e=t===n?t/this.ratio:e),{width:t,height:e,left:i,top:o,right:a,bottom:c}},initWHTL:function(){let t=this.initWidth,e=this.initHeight,n=(100-this.initWidth)/2,r=(100-this.initHeight)/2;const i=this.areaPos(),o={width:t*i.width/100,height:e*i.height/100,border:2*this.border};if(this.ratio){if(this.ratio){const a=this.wrapRatio||this.imgRatio,c=()=>{const t=(o.width-o.border)/this.ratio+o.border,n=t/i.height*100;e=Math.max(n,this.minHeight),r=(100-e)/2},s=()=>{const e=(o.height-o.border)*this.ratio+o.border,r=e/i.width*100;t=Math.max(r,this.minWidth),n=(100-t)/2};if(a<=this.ratio){if(c(),this.minHeight===e&&s(),t>100)throw new Error("Invalid ratio, wrapRatio, minWidth combination")}else if(s(),this.minWidth===t&&c(),e>100)throw new Error("Invalid ratio, wrapRatio, minWidth combination")}}else{if(t<this.minWidth)throw new Error("Invalid initWidth, minWidth combination");if(e<this.minHeight)throw new Error("Invalid initHeight, minHeight combination")}return this.setTL$.next({left:n,top:r}),{width:t,height:e}},splitPos:function({top:t,left:e,right:n,bottom:r,width:i,height:o,maxWidth:a,maxHeight:c}){return{tl:{left:e,top:t,right:n,bottom:r},wh:{width:i,height:o,maxWidth:a,maxHeight:c}}},isZoomElement:function(t){return this.zoomEl.contains(t.target)&&t.target!==this.dragEl},judgeArea:function(t){const e=this.zoomPos(),n=e.left+e.width/2,r=e.top+e.height/2,i=t.clientX,o=t.clientY;return{l:i<n,r:i>n,t:o<r,b:o>r}},setDownPosition:function(t){const e=this.judgeArea(t),n=this.zoomPos(),r=e.t?n.bottom:n.top,i=e.l?n.right:n.left;return{target:null,clientX:i,clientY:r}},isTwoPointZoomElement:function(t){return this.areaEl.contains(t.touches[0].target)&&this.areaEl.contains(t.touches[1].target)},getTwoTouchesPos:function(t,e,n){const r=this.areaPos(),i=e.touches[0].clientX<e.touches[1].clientX,o=e.touches[0].clientY<e.touches[1].clientY,a=t.touches[0].clientX<t.touches[1].clientX,c=t.touches[0].clientY<t.touches[1].clientY,s={left:i?0:1,right:i?1:0,top:o?0:1,bottom:o?1:0},u={left:a?0:1,right:a?1:0,top:c?0:1,bottom:c?1:0},l=t.touches[u.left].clientX-e.touches[s.left].clientX,f=t.touches[u.top].clientY-e.touches[s.top].clientY,h=this.minWidth*r.width/100,p=this.ratio?h/this.ratio:this.minHeight*r.height/100,d=Math.min(n.left-r.left-l,r.width-h),b=Math.min(n.top-r.top-f,r.height-p),m=r.width-d,g=r.height-b,v=t.touches[u.right].clientX-n.right,y=t.touches[u.bottom].clientY-n.bottom,w=Math.max(Math.min(e.touches[s.right].clientX-r.left-d-v,m),h),x=Math.max(Math.min(e.touches[s.bottom].clientY-b-r.top-y,g),p);return{width:w,height:x,top:b,left:d,maxWidth:m,maxHeight:g}},isCreateElement:function(t){return t.target===this.areaEl||t.target===this.imgEl},getFakeDown:function(t){return{target:t.target,clientX:t.clientX,clientY:t.clientY}},reverseDownPos:function({down:t,move:e}){if("normal"===this.mode)return{down:t,move:e};if(null!==t.target&&t.target===this.areaEl)return t.target=null,{down:t,move:e};const n=this.judgeArea(t),r=this.zoomPos();return n.l&&e.clientX<=t.clientX?t.clientX=r.right:n.r&&e.clientX>=t.clientX&&(t.clientX=r.left),n.t&&e.clientY<=t.clientY?t.clientY=r.bottom:n.b&&e.clientY>=t.clientY&&(t.clientY=r.top),{down:t,move:e}},getImgNonRotatePos:function(){const t=this.scalePos(),e=t.left+t.width/2,n=t.top+t.height/2;let r,i;return this.isVertical?(i=t.height,r=i*this.imgRatio):(r=t.width,i=r/this.imgRatio),{left:e-r/2,right:e+r/2,top:n-i/2,bottom:n+i/2,width:r,height:i}},getDrawPos:function(t){const{wPixel:e,maxWPixel:n}=t||{},r=this.zoomPos(),i=this.getImgNonRotatePos(),o=this.imgEl.naturalWidth,a=i.width,c=r.left-i.left+this.border,s=r.top-i.top+this.border,u=r.width-2*this.border,l=r.height-2*this.border,f=o/a,h=n?Math.min(e||u*f,n):e||u*f,p={rotateX:(i.left+i.width/2-(r.left+this.border))*f,rotateY:(i.top+i.height/2-(r.top+this.border))*f,drawX:(i.left-(r.left+this.border))*f,drawY:(i.top-(r.top+this.border))*f},d={sx:c*f,sy:s*f,swidth:u*f,sheight:l*f,dx:0,dy:0,dwidth:h,dheight:h*l/u};return d[Symbol.iterator]=function*(){for(let t in d)yield d[t]},{pos:d,translate:p}}};var a=o;const c={wrapPos:function(){return this.wrapEl.getBoundingClientRect()},scalePos:function(){return this.scaleEl.getBoundingClientRect()},translatePos:function(){return this.translateEl.getBoundingClientRect()},toX:function(t){const e=this.scalePos();return t/e.width*100},toY:function(t){const e=this.scalePos();return t/e.height*100},isDragElement:function(t){return this.wrapEl.contains(t.target)},dragDownPos:function(t){const e=this.translatePos(),n=this.scalePos(),r={left:e.left-n.left,top:e.top-n.top,clientX:t.clientX,clientY:t.clientY};return r},delta:function({down:t,move:e}){const n=e.clientX-t.clientX+t.left,r=e.clientY-t.clientY+t.top;return{left:n,top:r}},towPointsTouches:function(t){return t.touches},setOrigin:function(t){return{down:[t[0],t[1]],origin:this.scalePos().width}},twoPointsDelta:function({down:t,move:e}){const n=Math.abs(e[0].clientX-e[1].clientX)-Math.abs(t[0].clientX-t[1].clientX),r=Math.abs(e[0].clientY-e[1].clientY)-Math.abs(t[0].clientY-t[1].clientY);t[0]=e[0],t[1]=e[1];const i=this.wrapPos();return Math.abs(n)>=Math.abs(r)?n/i.width:r/i.height},getDrawPos:function(t){const{wPixel:e,maxWPixel:n}=t||{},r=this.areaEl.getBoundingClientRect(),i=this.translatePos(),o=this.imgEl.naturalWidth,a=r.left-i.left+this.border,c=r.top-i.top+this.border,s=o/i.width,u={rotateX:(i.left+i.width/2-(r.left+this.border))*s,rotateY:(i.top+i.height/2-(r.top+this.border))*s,drawX:(i.left-(r.left+this.border))*s,drawY:(i.top-(r.top+this.border))*s},l=r.width-2*this.border,f=r.height-2*this.border,h=n?Math.min(e||l*s,n):e||l*s,p={sx:a*s,sy:c*s,swidth:l*s,sheight:f*s,dx:0,dy:0,dwidth:h,dheight:h*f/l};return p[Symbol.iterator]=function*(){for(let t in p)yield p[t]},{pos:p,translate:u}},calcWheelScaling:function(t){const e=this.bgWH$;let n=this.zoomRate*Math.max(e,.8)*t;return Math.max(e+n,this.minScale)},calcTouchScaling:function(t){const e=this.bgWH$;let n=Math.max(e,.8)*t;return Math.max(e+n,this.minScale)}};var s=c,u=n("6e77"),l=n("d8dd");const f=Object.assign(a,i),h=Object.assign(s,i),p={beforeCreate(){this.mousedown$=Object(u["a"])(window,"mousedown"),this.mousemove$=Object(u["a"])(window,"mousemove"),this.mouseup$=Object(u["a"])(window,"mouseup"),this.touchstart$=Object(u["a"])(window,"touchstart",{passive:!1}),this.touchmove$=Object(u["a"])(window,"touchmove",{passive:!1}),this.touchend$=Object(u["a"])(window,"touchend",{passive:!1})}},d={beforeCreate(){this.wheel$=Object(u["a"])(window,"wheel",{passive:!1})}},b={methods:{clip:function(t){const e=this.getDrawPos(t),n=this.canvasEl.getContext("2d"),r=e.pos.swidth,i=e.pos.sheight;if(this.canvasEl.width=r,this.canvasEl.height=i,n.fillStyle=this.bgColor,n.fillRect(0,0,r,i),n.translate(e.translate.rotateX,e.translate.rotateY),n.rotate(this.rotate*Math.PI/180),n.translate(e.translate.drawX-e.translate.rotateX,e.translate.drawY-e.translate.rotateY),n.drawImage(this.imgEl,0,0),t){const t=document.createElement("CANVAS");return t.width=e.pos.dwidth,t.height=e.pos.dheight,t.getContext("2d").drawImage(this.canvasEl,0,0,e.pos.dwidth,e.pos.dheight),t}return this.canvasEl},callPreview:function(t,...e){const n=l["a"].parentPropName;if(!this.preview)return;if(!this.$parent[n])return;let r=this.$parent[n][this.preview];r&&r.forEach(n=>{n[t](...e)})},emit:function(t,e){this.$emit(t,e)}}}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca1a:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"preview"},[n("div",{staticClass:"wrap",style:t.wrapStyle},[n("canvas",{staticClass:"shim",attrs:{width:t.outerWidth,height:t.outerHeight}}),n("div",{staticClass:"img-pos",style:t.styleObj},[n("div",{staticClass:"img-rotate",style:t.rotateStyle},[n("img",{staticClass:"img",attrs:{src:t.src},on:{load:t.imgLoaded}})])])]),n("div",{staticClass:"placeholder",style:t.eptStyle},[t._t("placeholder")],2)])},i=[],o=(n("99af"),n("b0c0"),n("d8dd")),a={props:{name:{type:String,required:!0}},data:function(){return{src:"",imgEl:null,imgWidth:1,imgHeight:1,outerWidth:1,outerHeight:1,bgColor:"white",pos:{},rotate:0}},computed:{styleObj:function(){var t=this.pos.sx/this.imgWidth,e=this.pos.sy/this.imgHeight,n=this.imgWidth/this.pos.swidth;return{transform:"scale(".concat(n,") translate(").concat(-100*t,"% ,").concat(-100*e,"%)")}},rotateStyle:function(){return{transform:"rotate(".concat(this.rotate,"deg)")}},wrapStyle:function(){var t=this.src?"block":"none";return{backgroundColor:this.bgColor,display:t}},eptStyle:function(){return{display:this.src?"none":"block"}}},mounted:function(){this.imgEl=this.$el.querySelector(".img"),this.initListener()},methods:{initListener:function(){var t=this.$parent,e=o["a"].parentPropName;t[e]||(t[e]={}),t[e][this.name]||(t[e][this.name]=[]);var n=t[e][this.name];n.push(this)},setData:function(t){for(var e in t)this[e]=t[e]},imgLoaded:function(){this.imgWidth=this.imgEl.naturalWidth,this.imgHeight=this.imgEl.naturalHeight},locateImage:function(t,e){this.rotate=e,this.outerWidth=t.swidth,this.outerHeight=t.sheight,this.pos=t}}},c=a,s=(n("27af"),n("2877")),u=Object(s["a"])(c,r,i,!1,null,"50e0d35b",null);e["a"]=u.exports},ca84:function(t,e,n){var r=n("5135"),i=n("fc6a"),o=n("4d64").indexOf,a=n("d012");t.exports=function(t,e){var n,c=i(t),s=0,u=[];for(n in c)!r(a,n)&&r(c,n)&&u.push(n);while(e.length>s)r(c,n=e[s++])&&(~o(u,n)||u.push(n));return u}},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cdf9:function(t,e,n){var r=n("825a"),i=n("861d"),o=n("f069");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},ce4e:function(t,e,n){var r=n("da84"),i=n("9112");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},cf86:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return u}));var r=n("9ab4"),i=n("1453"),o=n("e9b9"),a=n("1716"),c=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return r["a"](e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(i["a"]),s=(i["a"],function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r["a"](e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i["a"]));i["a"];function u(t,e){if(!e.closed)return t instanceof o["a"]?t.subscribe(e):Object(a["a"])(t)(e)}},cfda:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{on:{click:t.triggerInput}},[t._t("default"),n("img",{staticClass:"stem",staticStyle:{display:"none"},attrs:{src:t.DomString}}),n("input",t._b({staticClass:"upload",staticStyle:{display:"none"},attrs:{type:"file"},on:{change:function(e){return t.upload(e)},click:function(e){return t.clear(e)}}},"input",t.$attrs,!1))],2)},i=[],o=(n("e260"),n("d3b7"),n("e6cf"),n("3ca3"),n("2ca0"),n("ddb0"),n("2b3d"),n("6f45")),a=n.n(o),c={props:{exif:{type:Boolean,default:!0},value:{type:String,default:""},check:{type:Boolean,default:!0}},data:function(){return{uploadEl:null,file:null,DomString:""}},mounted:function(){this.uploadEl=this.$el.querySelector(".upload")},methods:{upload:function(t){var e=this;1===t.target.files.length&&(this.file=t.target.files[0],this.check&&!this.file.type.startsWith("image/")||(this.DomString&&/^blob:/.test(this.DomString)&&window.URL.revokeObjectURL(this.DomString),this.DomString=window.URL.createObjectURL(this.file),this.checkEXIF().then((function(){e.$emit("input",e.DomString)}))))},checkEXIF:function(){var t=this;return new Promise((function(e,n){if(!t.exif)return n(new Error);e()})).then((function(){return t.getEXIF()})).then((function(e){return t.getImageRect().then((function(t){var n=t.width,r=t.height;return Promise.resolve({width:n,height:r,orientation:e})})).catch((function(){return Promise.reject(new Error)}))})).then(this.tranformCanvas).catch((function(){return Promise.resolve()}))},getEXIF:function(){var t=this;return new Promise((function(e,n){a.a.getData(t.file,(function(){var t=this.exifdata.Orientation;void 0!==t&&1!==t||n(new Error),e(t)}))}))},getImageRect:function(){var t=this;return new Promise((function(e,n){var r=t.$el.querySelector(".stem");if(r.complete)return e({width:r.naturalWidth,height:r.naturalHeight});r.onload=function(){e({width:this.naturalWidth,height:this.naturalHeight})},r.onerror=function(){n(new Error("img on load error"))}}))},tranformCanvas:function(t){var e=t.width,n=t.height,r=t.orientation,i=document.createElement("canvas"),o=i.getContext("2d");switch(r>4&&r<9?(i.width=n,i.height=e):(i.width=e,i.height=n),r){case 2:o.transform(-1,0,0,1,e,0);break;case 3:o.transform(-1,0,0,-1,e,n);break;case 4:o.transform(1,0,0,-1,0,n);break;case 5:o.transform(0,1,1,0,0,0);break;case 6:o.transform(0,1,-1,0,n,0);break;case 7:o.transform(0,-1,-1,0,n,e);break;case 8:o.transform(0,-1,1,0,0,e);break;default:break}o.drawImage(this.$el.querySelector(".stem"),0,0),this.DomString=i.toDataURL(this.file.type)},clear:function(t){t.target.value=null},triggerInput:function(){this.uploadEl&&this.uploadEl.click()}}},s=c,u=n("2877"),l=Object(u["a"])(s,r,i,!1,null,null,null);e["a"]=l.exports},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),i=n("da84"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d2bb:function(t,e,n){var r=n("825a"),i=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},d3b7:function(t,e,n){var r=n("00ee"),i=n("6eeb"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(t,e,n){var r=n("9bf2").f,i=n("5135"),o=n("b622"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},d4ce:function(t,e,n){"use strict";var r=n("7a31"),i=n.n(r);i.a},d817:function(t,e,n){"use strict";function r(t){return"function"===typeof t}n.d(e,"a",(function(){return r}))},d8dd:function(t,e,n){"use strict";const r={parentPropName:"_imgPreviewLists"};e["a"]=r},d9e3:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t&&"number"===typeof t.length&&"function"!==typeof t}},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("c8ba"))},ddb0:function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("e260"),a=n("9112"),c=n("b622"),s=c("iterator"),u=c("toStringTag"),l=o.values;for(var f in i){var h=r[f],p=h&&h.prototype;if(p){if(p[s]!==l)try{a(p,s,l)}catch(b){p[s]=l}if(p[u]||a(p,u,f),i[f])for(var d in o)if(p[d]!==o[d])try{a(p,d,o[d])}catch(b){p[d]=o[d]}}}},df75:function(t,e,n){var r=n("ca84"),i=n("7839");t.exports=Object.keys||function(t){return r(t,i)}},e163:function(t,e,n){var r=n("5135"),i=n("7b0b"),o=n("f772"),a=n("e177"),c=o("IE_PROTO"),s=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),c=n("7dd0"),s="Array Iterator",u=a.set,l=a.getterFor(s);t.exports=c(Array,"Array",(function(t,e){u(this,{type:s,target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},e2cc:function(t,e,n){var r=n("6eeb");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e6cf:function(t,e,n){"use strict";var r,i,o,a,c=n("23e7"),s=n("c430"),u=n("da84"),l=n("d066"),f=n("fea9"),h=n("6eeb"),p=n("e2cc"),d=n("d44e"),b=n("2626"),m=n("861d"),g=n("1c0b"),v=n("19aa"),y=n("c6b6"),w=n("8925"),x=n("2266"),S=n("1c7e"),j=n("4840"),O=n("2cf4").set,_=n("b575"),E=n("cdf9"),P=n("44de"),C=n("f069"),$=n("e667"),T=n("69f3"),I=n("94ca"),R=n("b622"),L=n("2d00"),k=R("species"),D="Promise",A=T.get,F=T.set,N=T.getterFor(D),U=f,M=u.TypeError,H=u.document,Y=u.process,W=l("fetch"),X=C.f,B=X,G="process"==y(Y),V=!!(H&&H.createEvent&&u.dispatchEvent),q="unhandledrejection",z="rejectionhandled",Z=0,J=1,K=2,Q=1,tt=2,et=I(D,(function(){var t=w(U)!==String(U);if(!t){if(66===L)return!0;if(!G&&"function"!=typeof PromiseRejectionEvent)return!0}if(s&&!U.prototype["finally"])return!0;if(L>=51&&/native code/.test(U))return!1;var e=U.resolve(1),n=function(t){t((function(){}),(function(){}))},r=e.constructor={};return r[k]=n,!(e.then((function(){}))instanceof n)})),nt=et||!S((function(t){U.all(t)["catch"]((function(){}))})),rt=function(t){var e;return!(!m(t)||"function"!=typeof(e=t.then))&&e},it=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;_((function(){var i=e.value,o=e.state==J,a=0;while(r.length>a){var c,s,u,l=r[a++],f=o?l.ok:l.fail,h=l.resolve,p=l.reject,d=l.domain;try{f?(o||(e.rejection===tt&&st(t,e),e.rejection=Q),!0===f?c=i:(d&&d.enter(),c=f(i),d&&(d.exit(),u=!0)),c===l.promise?p(M("Promise-chain cycle")):(s=rt(c))?s.call(c,h,p):h(c)):p(i)}catch(b){d&&!u&&d.exit(),p(b)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&at(t,e)}))}},ot=function(t,e,n){var r,i;V?(r=H.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},(i=u["on"+t])?i(r):t===q&&P("Unhandled promise rejection",n)},at=function(t,e){O.call(u,(function(){var n,r=e.value,i=ct(e);if(i&&(n=$((function(){G?Y.emit("unhandledRejection",r,t):ot(q,t,r)})),e.rejection=G||ct(e)?tt:Q,n.error))throw n.value}))},ct=function(t){return t.rejection!==Q&&!t.parent},st=function(t,e){O.call(u,(function(){G?Y.emit("rejectionHandled",t):ot(z,t,e.value)}))},ut=function(t,e,n,r){return function(i){t(e,n,i,r)}},lt=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=K,it(t,e,!0))},ft=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw M("Promise can't be resolved itself");var i=rt(n);i?_((function(){var r={done:!1};try{i.call(n,ut(ft,t,r,e),ut(lt,t,r,e))}catch(o){lt(t,r,o,e)}})):(e.value=n,e.state=J,it(t,e,!1))}catch(o){lt(t,{done:!1},o,e)}}};et&&(U=function(t){v(this,U,D),g(t),r.call(this);var e=A(this);try{t(ut(ft,this,e),ut(lt,this,e))}catch(n){lt(this,e,n)}},r=function(t){F(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Z,value:void 0})},r.prototype=p(U.prototype,{then:function(t,e){var n=N(this),r=X(j(this,U));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=G?Y.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=Z&&it(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=A(t);this.promise=t,this.resolve=ut(ft,t,e),this.reject=ut(lt,t,e)},C.f=X=function(t){return t===U||t===o?new i(t):B(t)},s||"function"!=typeof f||(a=f.prototype.then,h(f.prototype,"then",(function(t,e){var n=this;return new U((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof W&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return E(U,W.apply(u,arguments))}}))),c({global:!0,wrap:!0,forced:et},{Promise:U}),d(U,D,!1,!0),b(D),o=l(D),c({target:D,stat:!0,forced:et},{reject:function(t){var e=X(this);return e.reject.call(void 0,t),e.promise}}),c({target:D,stat:!0,forced:s||et},{resolve:function(t){return E(s&&this===o?U:this,t)}}),c({target:D,stat:!0,forced:nt},{all:function(t){var e=this,n=X(e),r=n.resolve,i=n.reject,o=$((function(){var n=g(e.resolve),o=[],a=0,c=1;x(t,(function(t){var s=a++,u=!1;o.push(void 0),c++,n.call(e,t).then((function(t){u||(u=!0,o[s]=t,--c||r(o))}),i)})),--c||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=X(e),r=n.reject,i=$((function(){var i=g(e.resolve);x(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},e893:function(t,e,n){var r=n("5135"),i=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e){for(var n=i(e),c=a.f,s=o.f,u=0;u<n.length;u++){var l=n[u];r(t,l)||c(t,l,s(e,l))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},e95a:function(t,e,n){var r=n("b622"),i=n("3f8c"),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},e9a8:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("88bc"),i=n("0ca4"),o={closed:!0,next:function(t){},error:function(t){if(r["a"].useDeprecatedSynchronousErrorHandling)throw t;Object(i["a"])(t)},complete:function(){}}},e9b9:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n("1453");function i(t){while(t){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r["a"]?i:null}return!0}var o=n("2ff5"),a=n("e9a8");function c(t,e,n){if(t){if(t instanceof r["a"])return t;if(t[o["a"]])return t[o["a"]]()}return t||e||n?new r["a"](t,e,n):new r["a"](a["a"])}var s=n("c539"),u=n("9828");function l(t){return 0===t.length?u["a"]:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var f=n("88bc"),h=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=c(t,e,n);if(r?i.add(r.call(i,this.source)):i.add(this.source||f["a"].useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),f["a"].useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){f["a"].useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),i(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return e=p(e),new e((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(n){r(n),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[s["a"]]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:l(t)(this)},t.prototype.toPromise=function(t){var e=this;return t=p(t),new t((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function p(t){if(t||(t=f["a"].Promise||Promise),!t)throw new Error("no Promise impl found");return t}},ebb6:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("9ab4"),i=n("1453");function o(t,e){return function(n){if("function"!==typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project,this.thisArg))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r["a"](e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(i["a"])},f069:function(t,e,n){"use strict";var r=n("1c0b"),i=function(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=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},f5df:function(t,e,n){var r=n("00ee"),i=n("c6b6"),o=n("b622"),a=o("toStringTag"),c="Arguments"==i(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),a))?n:c?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},fad2:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},fae9:function(t,e,n){"use strict";function r(){}n.d(e,"a",(function(){return r}))},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var r=window.document.currentScript,i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-card",{attrs:{flat:""}},[n("v-row",{staticClass:"ma-0",attrs:{"no-gutters":""}},[n("v-col",{attrs:{cols:"12",md:""}},[n("clipper-fixed",{ref:"clipper",staticClass:"my-clipper fill-height",staticStyle:{cursor:"pointer"},attrs:{src:t.imgURL,ratio:t.ratio,grid:"","bg-color":"#eee",rotate:t.rotate},on:{load:function(e){return t.resetRotate()}}},[n("div",{attrs:{slot:"placeholder"},slot:"placeholder"},[n("clipper-upload",{staticClass:"clipper-upload",attrs:{accept:t.accept},model:{value:t.imgURL,callback:function(e){t.imgURL=e},expression:"imgURL"}},[t._t("image_input",[n("div",{staticClass:"py-12 text-center font-italic"},[n("div",[n("v-icon",{attrs:{size:"80px"}},[t._v("mdi-file-image-outline")])],1),n("div",{staticClass:"grey--text"},[n("div",[t._v("No image is selected.")]),n("div",{staticClass:"pt-1"},[n("v-btn",{staticClass:"text-capitalize",attrs:{small:"",color:"primary"}},[t._v("upload image")])],1)])])])],2)],1)])],1),""!=t.imgURL?[n("v-col",{attrs:{cols:"12",md:"3","align-self":"center"}},[n("v-row",{staticClass:"pa-1 ma-0",class:t.hide_result?"flex-column":"",attrs:{dense:"",justify:"space-around"}},[t.hide_result?t._e():n("v-col",{attrs:{cols:"12"}},[n("img",{staticClass:"fill-width",attrs:{src:t.imgResult}}),n("div",{directives:[{name:"show",rawName:"v-show",value:""==t.imgResult,expression:"imgResult == '' "}]},[t._t("no_result",[n("div",{staticClass:"radius-05 body-2 font-italic grey--text py-6 text-center",staticStyle:{border:"2px dashed #ccc"}},[t._v("No Result")])])],2),t._t("extra_info")],2),n("v-col",{attrs:{cols:"auto"}},[n("v-icon",{attrs:{color:"success",title:"Confirm"},on:{click:function(e){return t.clipImage()}}},[t._v(t._s(t.clip_icon))])],1),n("v-col",{attrs:{cols:"auto"}},[n("v-icon",{attrs:{color:"error",title:"Reset"},on:{click:function(e){return t.resetComponent()}}},[t._v(t._s(t.reset_icon))])],1),n("v-col",{attrs:{cols:"auto"}},[n("v-icon",{attrs:{title:"Rotate Image"},on:{click:function(e){return t.rotateImage()}}},[t._v(t._s(t.rotate_icon))])],1)],1)],1)]:t._e()],2),n("v-card-actions",[t._t("default")],2)],1)},c=[],s=(n("a9e3"),n("56dd")),u={components:{clipperFixed:s["a"],clipperUpload:s["b"]},props:{value:{required:!0},hide_result:{type:Boolean,default:!1},ratio:{type:Number,default:1},clip_icon:{type:String,default:"mdi-content-cut"},reset_icon:{type:String,default:"mdi-backup-restore"},rotate_icon:{type:String,default:"mdi-format-rotate-90"},accept:{type:String,default:"image/*"}},data:function(){return{imgURL:"",imgResult:"",rotate:0}},created:function(){},watch:{},methods:{rotateImage:function(){270==this.rotate?this.rotate=0:this.rotate+=90},resetComponent:function(){this.imgURL="",this.imgResult="",this.$emit("reset")},resetRotate:function(){this.rotate=0},clipImage:function(){var t=this.$refs.clipper.clip(),e=t.toDataURL();this.imgResult=e,this.$emit("input",e)}}},l=u,f=(n("8858"),n("2877")),h=Object(f["a"])(l,a,c,!1,null,"ddce35a0",null),p=h.exports,d=n("2bd2"),b=n("a6e8"),m=n("6e77"),g=n("e9b9"),v=n("fae9"),y=new g["a"](v["a"]);var w=n("9ab4"),x=n("1453");function S(){return function(t){return t.lift(new j(t))}}var j=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new O(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),O=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return w["a"](e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(x["a"]),_=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return w["a"](e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,t=this._connection=new b["a"],t.add(this.source.subscribe(new P(this.getSubject(),this))),t.closed&&(this._connection=null,t=b["a"].EMPTY)),t},e.prototype.refCount=function(){return S()(this)},e}(g["a"]),E=function(){var t=_.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),P=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return w["a"](e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(d["b"]);x["a"];function C(t,e){return function(n){var r;if(r="function"===typeof t?t:function(){return t},"function"===typeof e)return n.lift(new T(r,e));var i=Object.create(n,E);return i.source=n,i.subjectFactory=r,i}}var $,T=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();function I(){return new d["a"]}function R(){return function(t){return S()(C(I)(t))}}var L=function(){};function k(t){$=t,L=$.util.warn||L}function D(t){return t&&"function"===typeof t.subscribe}function A(t){return t&&"function"===typeof t.next}function F(t,e,n){e in t?t[e]=n:$.util.defineReactive(t,e,n)}function N(t){return[t.arg].concat(Object.keys(t.modifiers)).join(":")}var U={created:function(){var t=this,e=t.$options.domStreams;e&&e.forEach((function(e){t[e]=new d["a"]}));var n=t.$options.observableMethods;n&&(Array.isArray(n)?n.forEach((function(e){t[e+"$"]=t.$createObservableMethod(e)})):Object.keys(n).forEach((function(e){t[n[e]]=t.$createObservableMethod(e)})));var r=t.$options.subscriptions;"function"===typeof r&&(r=r.call(t)),r&&(t.$observables={},t._subscription=new b["a"],Object.keys(r).forEach((function(e){F(t,e,void 0);var n=t.$observables[e]=r[e];D(n)?t._subscription.add(r[e].subscribe((function(n){t[e]=n}),(function(t){throw t}))):L('Invalid Observable found in subscriptions option with key "'+e+'".',t)})))},beforeDestroy:function(){this._subscription&&this._subscription.unsubscribe()}},M={bind:function(t,e,n){var r=e.value,i=e.arg,o=e.expression,a=e.modifiers;if(A(r))r={subject:r};else if(!r||!A(r.subject))return void L('Invalid Subject found in directive with key "'+o+'".'+o+" should be an instance of Subject or have the type { subject: Subject, data: any }.",n.context);var c={stop:function(t){return t.stopPropagation()},prevent:function(t){return t.preventDefault()}},s=Object.keys(c).filter((function(t){return a[t]})),u=r.subject,l=(u.next||u.onNext).bind(u);if(!a.native&&n.componentInstance)r.subscription=n.componentInstance.$eventToObservable(i).subscribe((function(t){s.forEach((function(e){return c[e](t)})),l({event:t,data:r.data})}));else{var f=r.options?[t,i,r.options]:[t,i];r.subscription=m["a"].apply(void 0,f).subscribe((function(t){s.forEach((function(e){return c[e](t)})),l({event:t,data:r.data})}))}(t._rxHandles||(t._rxHandles={}))[N(e)]=r},update:function(t,e){var n=e.value,r=t._rxHandles&&t._rxHandles[N(e)];r&&n&&A(n.subject)&&(r.data=n.data)},unbind:function(t,e){var n=N(e),r=t._rxHandles&&t._rxHandles[n];r&&(r.subscription&&r.subscription.unsubscribe(),t._rxHandles[n]=null)}};function H(t,e){var n=this,r=new g["a"]((function(r){var i,o=function(){i=n.$watch(t,(function(t,e){r.next({oldValue:e,newValue:t})}),e)};return n._data?o():n.$once("hook:created",o),new b["a"]((function(){i&&i()}))}));return r}function Y(t,e){if("undefined"===typeof window)return y;var n=this,r=document.documentElement,i=new g["a"]((function(i){function o(e){if(n.$el){if(null===t&&n.$el===e.target)return i.next(e);for(var r=n.$el.querySelectorAll(t),o=e.target,a=0,c=r.length;a<c;a++)if(r[a]===o)return i.next(e)}}return r.addEventListener(e,o),new b["a"]((function(){r.removeEventListener(e,o)}))}));return i}function W(t,e,n,r){var i=t.subscribe(e,n,r);return(this._subscription||(this._subscription=new b["a"])).add(i),i}function X(t){var e=this,n=Array.isArray(t)?t:[t],r=new g["a"]((function(t){var r=n.map((function(n){var r=function(e){return t.next({name:n,msg:e})};return e.$on(n,r),{name:n,callback:r}}));return function(){r.forEach((function(t){return e.$off(t.name,t.callback)}))}}));return r}function B(t,e){var n=this;void 0!==n[t]&&L("Potential bug: Method "+t+" already defined on vm and has been overwritten by $createObservableMethod."+String(n[t]),n);var r=function(r){return n[t]=function(){var t=Array.from(arguments);e?(t.push(this),r.next(t)):t.length<=1?r.next(t[0]):r.next(t)},function(){delete n[t]}};return new g["a"](r).pipe(R())}function G(t){k(t),t.mixin(U),t.directive("stream",M),t.prototype.$watchAsObservable=H,t.prototype.$fromDOMEvent=Y,t.prototype.$subscribeTo=W,t.prototype.$eventToObservable=X,t.prototype.$createObservableMethod=B,t.config.optionMergeStrategies.subscriptions=t.config.optionMergeStrategies.data}"undefined"!==typeof Vue&&Vue.use(G);var V=G;p.install=function(t){t.use(V),t.component("v-image-clipper",p)};var q=p;e["default"]=q},fc00:function(t,e,n){},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fd66:function(t,e,n){"use strict";function r(t){return!!t&&"function"!==typeof t.subscribe&&"function"===typeof t.then}n.d(e,"a",(function(){return r}))},fdbc: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}},fdbf:function(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fea9:function(t,e,n){var r=n("da84");t.exports=r.Promise}})}));
//# sourceMappingURL=v-image-clipper.umd.min.js.map