web/h5/admin/static/js/0.7cc8ce6fa27383817eb8.js

(开头部分) 64KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

webpackJsonp([0],{"0Y9P":function(t,e,i){"use strict";var o=i("Dd8w"),s=i.n(o),n=i("fZjL"),a=i.n(n),r=i("NYxO"),l={props:{course:{type:Object,default:function(){return{}}},type:{type:String,default:"price"},courseType:{type:String,default:"normal"},discount:{type:String,default:"10"},feedback:{type:Boolean,default:!0},typeList:{type:String,default:"course_list"},normalTagShow:{type:Boolean,default:!0},vipTagShow:{type:Boolean,default:!1},isVip:{type:String,default:"0"}},data:function(){return{pathName:this.$route.name}},computed:s()({},Object(r.mapState)(["vipSwitch","isLoading"]),{discountNum:function(){if("class_list"===this.typeList)return!1;if(""!==this.discount){var t=Number(this.discount);return 10!==t&&(0==t?"限免":t+"折")}}}),watch:{course:{handler:function(t){var e=t.courseSet;if("h5Setting"!==this.pathName&&e)for(var i=a()(e.cover),o=0;o<i.length;o++)e.cover[i[o]]=e.cover[i[o]].replace(/^(\/\/)|(http:\/\/)/,"https://")},immediate:!0}},methods:{onClick:function(t){if(this.feedback){var e="order"===this.type,i=this.course.id||this.course.targetId;"SPAN"!==t.target.tagName&&(e?location.href=this.order.targetUrl:this.$router.push({path:"course_list"===this.typeList?"/course/"+i:"/classroom/"+i}))}}}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"e-course"},[i("div",{staticClass:"clearfix",on:{click:t.onClick}},[i("div",{staticClass:"e-course__left pull-left"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.course.imgSrc.url,expression:"course.imgSrc.url"}],class:t.course.imgSrc.className}),t._v(" "),t.normalTagShow?i("div",["live"===t.courseType?i("span",{staticClass:"tag tag-live"},[t._v("直播")]):t._e(),t._v(" "),t.discountNum?i("span",{staticClass:"tag tag-discount"},[t._v(t._s(t.discountNum))]):t._e()]):t._e(),t._v(" "),t.vipTagShow&&t.vipSwitch&&Number(t.isVip)?i("span",{staticClass:"tag tag-vip"},[t._v("会员免费")]):t._e()]),t._v(" "),i("div",{staticClass:"e-course__right pull-left"},[i("div",{staticClass:"e-course__header text-overflow"},[t._v(t._s(t.course.header))]),t._v(" "),i("div",{staticClass:"e-course__middle"},[t.course.middle.value?i("div",{domProps:{innerHTML:t._s(t.course.middle.html)}}):t._e()]),t._v(" "),i("div",{staticClass:"e-course__bottom",domProps:{innerHTML:t._s(t.course.bottom.html)}})])])])},staticRenderFns:[]},u=i("VU/8")(l,c,!1,null,null,null).exports,d={props:{courseList:{type:Object,default:{}},feedback:{type:Boolean,default:!0},index:{type:Number,default:-1},typeList:{type:String,default:"course_list"},normalTagShow:{type:Boolean,default:!0},vipTagShow:{type:Boolean,default:!1},moreType:{type:String,default:"normal"},vipName:{type:String,default:"会员"},levelId:{type:Number,default:1}},components:{"e-class":u},data:function(){return{type:"price",pathName:this.$route.name}},filters:{courseListData:function(t,e){switch(e.type){case"price":var i=e.showStudent?'<span class="switch-box__state"><p style="color: #B0BDC9">\n            '+t.studentNum+"人在学</p></span>":"",o="0.00"===t.price?'<p style="color: #408FFB">免费</p>':'<p style="color: #ff5353">¥ '+t.price+"</p>";return"classroom_list"===e.typeList?{id:t.id,targetId:t.targetId,imgSrc:{url:t.cover.middle||"",className:"e-class__img"},header:t.title,middle:{value:t.courseNum,html:'<div class="e-course__count">共 '+t.courseNum+" 门课程</div>"},bottom:{value:t.price||t.studentNum,html:'<span class="switch-box__price">'+o+'</span>\n                  <span class="switch-box__state"><p style="color: #B0BDC9">\n                    '+t.studentNum+"人在学</p>\n                  </span>"}}:{id:t.id,imgSrc:{url:t.courseSet.cover.middle||"",className:"e-course__img"},header:t.courseSetTitle,middle:{value:t.title,html:'<div class="e-course__project text-overflow">\n                  <span>'+t.title+"</span>\n                </div>"},bottom:{value:t.price||t.studentNum,html:'<span class="switch-box__price">'+o+"</span>"+i}};case"confirmOrder":return{imgSrc:{url:t.cover.middle||"",className:"e-course__img"},header:t.title,middle:"",bottom:{value:t.coinPayAmount,html:'<span class="switch-box__price">\n                  <p style="color: #ff5353">¥ '+t.coinPayAmount+"</p>\n                </span>"}};case"rank":return"classroom_list"===e.typeList?{id:t.id,targetId:t.targetId,imgSrc:{url:t.cover.middle||"",className:"e-class__img"},header:t.title,middle:"",bottom:{value:t.courseNum,html:'<div class="e-course__count">共 '+t.courseNum+" 门课程</div>"}}:{id:t.id,imgSrc:{url:t.courseSet.cover.middle||"",className:"course_list"===e.typeList?"e-course__img":"e-class__img"},header:t.courseSetTitle,middle:{value:t.title,html:'<div class="e-course__project text-overflow">\n                  <span>'+t.title+"</span>\n                </div>"},bottom:{value:t.progress.percent,html:'<div class="rank-box">\n                  <div class="progress round-conner">\n                    <div class="curRate round-conner"\n                      style="width:'+t.progress.percent+'%">\n                    </div>\n                  </div>\n                  <span>'+t.progress.percent+"%</span>\n                </div>"}};default:return"empty data"}}},computed:s()({},Object(r.mapState)(["courseSettings"]),{sourceType:{get:function(){return this.courseList.sourceType}},sort:{get:function(){return this.courseList.sort}},lastDays:{get:function(){return this.courseList.lastDays}},limit:{get:function(){return this.courseList.limit}},categoryId:{get:function(){return this.courseList.categoryId}},courseItemData:{get:function(){return!this.courseList.items.length},set:function(){}},listObj:function(){return{type:"price",typeList:this.typeList,showStudent:!this.courseSettings||Number(this.courseSettings.show_student_num_enabled)}}}),watch:{sort:function(t){this.fetchCourse()},limit:function(t,e){if(e>t){var i=this.courseList.items.slice(0,t);this.courseList.items=i}else this.fetchCourse()},lastDays:function(t){this.fetchCourse()},categoryId:function(t){this.fetchCourse()},sourceType:function(t,e){t!==e&&(this.courseList.items=[]),this.fetchCourse()}},created:function(){this.pathName.includes("Setting")&&this.fetchCourse()},methods:{jumpTo:function(t){this.feedback&&("vip"===this.moreType?this.$router.push({name:"course_list"===this.typeList?"vip_course":"vip_classroom",query:{vipName:this.vipName,levelId:this.levelId}}):this.$router.push({name:"course_list"===this.typeList?"more_course":"more_class"}))},fetchCourse:function(){if("custom"!==this.sourceType){var t={sort:this.sort,limit:this.limit,lastDays:this.lastDays,categoryId:this.categoryId};this.$emit("fetchCourse",{index:this.index,params:t,typeList:this.typeList})}}}},p={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.courseList.items.length?i("div",{staticClass:"e-course-list"},[i("div",{staticClass:"e-course-list__header"},[i("div",{staticClass:"clearfix"},[i("span",{staticClass:"e-course-list__list-title text-overflow"},[t._v(t._s(t.courseList.title))]),t._v(" "),i("span",{staticClass:"e-course-list__more"},[i("span",{staticClass:"more-text pull-left",on:{click:function(e){t.jumpTo(t.courseList.source)}}},[t._v("更多")])])])]),t._v(" "),i("div",{staticClass:"e-course-list__body"},t._l(t.courseList.items,function(e){return i("e-class",{key:e.id,attrs:{course:t._f("courseListData")(e,t.listObj),discount:"course_list"===t.typeList?e.courseSet.discount:"",courseType:"course_list"===t.typeList?e.courseSet.type:"",typeList:t.typeList,normalTagShow:t.normalTagShow,vipTagShow:t.vipTagShow,type:t.type,isVip:e.vipLevelId,feedback:t.feedback}})})),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.courseItemData,expression:"courseItemData"}],staticClass:"e-course__empty"},[t._v("暂无"+t._s("course_list"===t.typeList?"课程":"班级"))])]):t._e()},staticRenderFns:[]},h=i("VU/8")(d,p,!1,null,null,null);e.a=h.exports},"5zde":function(t,e,i){i("zQR9"),i("qyJz"),t.exports=i("FeBl").Array.from},"7qms":function(t,e,i){"use strict";var o={props:{poster:{type:Object,default:{}},feedback:{type:Boolean,default:!0}},data:function(){return{link:this.poster.link}},computed:{linkUrl:function(){if(!("url"==this.poster.link.type&&this.feedback))return"javascripts;";var t=this.poster.link.url&&this.poster.link.url.trim();return t?/^(\/\/)|(http:\/\/)|(https:\/\/)/.exec(t)?t:"http://"+t:"javascripts:;"}},methods:{jumpTo:function(t){this.feedback&&("course"===t.type&&t.target?this.$router.push({path:"/course/"+t.target.id}):"classroom"===t.type&&t.target?this.$router.push({path:"/classroom/"+t.target.id}):"vip"!==t.type||this.$router.push({path:"/vip"}))}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"e-poster"},["url"==t.poster.link.type&&t.feedback?i("a",{attrs:{href:t.linkUrl}},[i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.poster.image.uri,expression:"poster.image.uri"}],staticClass:"e-poster__img"})]):i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.poster.image.uri,expression:"poster.image.uri"}],staticClass:"e-poster__img",on:{click:function(e){t.jumpTo(t.link)}}})])},staticRenderFns:[]},n=i("VU/8")(o,s,!1,null,null,null);e.a=n.exports},DAYN:function(t,e,i){"use strict";var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t};function s(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}!function(){function e(t){function e(t){t.parentElement.removeChild(t)}function i(t,e,i){var o=0===i?t.children[0]:t.children[i-1].nextSibling;t.insertBefore(e,o)}function n(t,e){var i=this;this.$nextTick(function(){return i.$emit(t.toLowerCase(),e)})}var a=["Start","Add","Remove","Update","End"],r=["Choose","Sort","Filter","Clone"],l=["Move"].concat(a,r).map(function(t){return"on"+t}),c=null;return{name:"draggable",props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1,init:!1}},render:function(t){var e=this.$slots.default;if(e&&1===e.length){var i=e[0];i.componentOptions&&"transition-group"===i.componentOptions.tag&&(this.transitionMode=!0)}var o=e,n=this.$slots.footer;n&&(o=e?[].concat(s(e),s(n)):[].concat(s(n)));var a=null,r=function(t,e){a=function(t,e,i){return void 0==i?t:((t=null==t?{}:t)[e]=i,t)}(a,t,e)};if(r("attrs",this.$attrs),this.componentData){var l=this.componentData,c=l.on,u=l.props;r("on",c),r("props",u)}return t(this.element,a,o)},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.element.toLowerCase()!==this.$el.nodeName.toLowerCase(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter element value or remove transition-group. Current element value: "+this.element);var i={};a.forEach(function(t){i["on"+t]=function(t){var e=this;return function(i){null!==e.realList&&e["onDrag"+t](i),n.call(e,t,i)}}.call(e,t)}),r.forEach(function(t){i["on"+t]=n.bind(e,t)});var s=o({},this.options,i,{onMove:function(t,i){return e.onDragMove(t,i)}});!("draggable"in s)&&(s.draggable=">*"),this._sortable=new t(this.rootContainer,s),this.computeIndexes()},beforeDestroy:function(){this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},isCloning:function(){return!!this.options&&!!this.options.group&&"clone"===this.options.group.pull},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){for(var e in t)-1==l.indexOf(e)&&this._sortable.option(e,t[e])},deep:!0},realList:function(){this.computeIndexes()}},methods:{getChildrenNodes:function(){if(this.init||(this.noneFunctionalComponentMode=this.noneFunctionalComponentMode&&1==this.$children.length,this.init=!0),this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick(function(){t.visibleIndexes=function(t,e,i){if(!t)return[];var o=t.map(function(t){return t.elm}),n=[].concat(s(e)).map(function(t){return o.indexOf(t)});return i?n.filter(function(t){return-1!==t}):n}(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode)})},getUnderlyingVm:function(t){var e=function(t,e){return t.map(function(t){return t.elm}).indexOf(e)}(this.getChildrenNodes()||[],t);return-1===e?null:{index:e,element:this.realList[e]}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&"transition-group"===e.$options._componentTag?e.$parent:e},emitChanges:function(t){var e=this;this.$nextTick(function(){e.$emit("change",t)})},alterList:function(t){if(this.list)t(this.list);else{var e=[].concat(s(this.value));t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,t)};this.alterList(e)},updatePosition:function(t,e){var i=function(i){return i.splice(e,0,i.splice(t,1)[0])};this.alterList(i)},getRelatedContextFromMoveEvent:function(t){var e=t.to,i=t.related,s=this.getUnderlyingPotencialDraggableComponent(e);if(!s)return{component:s};var n=s.realList,a={list:n,component:s};if(e!==i&&n&&s.getUnderlyingVm){var r=s.getUnderlyingVm(i);if(r)return o(r,a)}return a},getVmIndex:function(t){var e=this.visibleIndexes,i=e.length;return t>i-1?i:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[t].data=null;var e=this.getComponent();e.children=[],e.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),c=t.item},onDragAdd:function(t){var i=t.item._underlying_vm_;if(void 0!==i){e(t.item);var o=this.getVmIndex(t.newIndex);this.spliceList(o,0,i),this.computeIndexes();var s={element:i,newIndex:o};this.emitChanges({added:s})}},onDragRemove:function(t){if(i(this.rootContainer,t.item,t.oldIndex),this.isCloning)e(t.clone);else{var o=this.context.index;this.spliceList(o,1);var s={element:this.context.element,oldIndex:o};this.resetTransitionData(o),this.emitChanges({removed:s})}},onDragUpdate:function(t){e(t.item),i(t.from,t.item,t.oldIndex);var o=this.context.index,s=this.getVmIndex(t.newIndex);this.updatePosition(o,s);var n={element:this.context.element,oldIndex:o,newIndex:s};this.emitChanges({moved:n})},computeFutureIndex:function(t,e){if(!t.element)return 0;var i=[].concat(s(e.to.children)).filter(function(t){return"none"!==t.style.display}),o=i.indexOf(e.related),n=t.component.getVmIndex(o);return-1!=i.indexOf(c)||!e.willInsertAfter?n:n+1},onDragMove:function(t,e){var i=this.move;if(!i||!this.realList)return!0;var s=this.getRelatedContextFromMoveEvent(t),n=this.context,a=this.computeFutureIndex(s,t);return o(n,{futureIndex:a}),o(t,{relatedContext:s,draggedContext:n}),i(t,e)},onDragEnd:function(t){this.computeIndexes(),c=null}}}}Array.from||(Array.from=function(t){return[].slice.call(t)});var n=i("Lokx");t.exports=e(n)}()},Dd8w:function(t,e,i){"use strict";e.__esModule=!0;var o,s=i("woOf"),n=(o=s)&&o.__esModule?o:{default:o};e.default=n.default||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t}},Gu7T:function(t,e,i){"use strict";e.__esModule=!0;var o,s=i("c/Tr"),n=(o=s)&&o.__esModule?o:{default:o};e.default=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return(0,n.default)(t)}},"LF/w":function(t,e,i){"use strict";var o=i("xPBg"),s={props:["item","num","feedback"],computed:{couponStatus:function(){if(!this.feedback)return"";var t=this.item.currentUserCoupon;return 0!=this.item.unreceivedNum||t?!t||"used"!==t.status&&"using"!==t.status?void 0:"coupon-used":"coupon-received-all"}},mixins:[{methods:{timeExpire:function(t){var e=t.createdTime,i=t.deadline;return e?(e=Object(o.formatFullTime)(new Date(e)))+" 至 "+(i=Object(o.formatFullTime)(new Date(i))):"有效期截止:"+(i=Object(o.formatFullTime)(new Date(i)))},priceHtml:function(t){var e=t.rate,i=t.type,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],s=parseInt(e,10),n=s.toString().length>3?"text-16 ml-5":"",a=Number(e).toFixed(2).split(".")[1];a=0===Number(a)?"":"."+a;var r="discount"===i?"折":"元";return o?'<span class="'+n+'">'+s+'</span><span class="text-14">'+(a+r)+"</span>":s+a+r},scopeFilter:function(t){var e=t.targetType,i=t.target;return"classroom"===e?i?i.title:"全部班级":"course"===e?i?i.title:"全部课程":"vip"===e?i?i.name:"全部会员":"全部商品"},handleClick:function(t){this.$emit("buttonClick",t)}}}]},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:["e-coupon__body",t.couponStatus]},[i("div",{staticClass:"e-coupon__header clearfix"},[i("span",{staticClass:"e-coupon__price",domProps:{innerHTML:t._s(t.priceHtml(t.item))}}),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:1==t.num,expression:"num == 1"}],staticClass:"e-coupon__name"},[i("div",{staticClass:"text-overflow text-14 coupon-name"},[t._v(t._s(t.item.name))]),t._v(" "),i("span",{staticClass:"text-10"},[t._v(t._s(t.timeExpire(t.item)))])]),t._v(" "),t.feedback?i("div",[0==t.item.unreceivedNum||t.item.currentUserCoupon?i("div",{staticClass:"stamp"}):t._e(),t._v(" "),i("span",{staticClass:"coupon-button",on:{click:function(e){t.handleClick(t.item)}}},[t._v(t._s(t.item.currentUserCoupon?"去使用":"领券"))])]):i("div",[i("span",{staticClass:"coupon-button"},[t._v("领券")])])]),t._v(" "),i("div",{staticClass:"e-coupon__middle"}),t._v(" "),i("div",{staticClass:"e-coupon__bottom text-overflow"},[t._v("\n    可用范围:"+t._s(t.scopeFilter(t.item))+"\n  ")])])},staticRenderFns:[]},a={components:{item:i("VU/8")(s,n,!1,null,null,null).exports},props:{coupons:{type:Array,default:function(){return[]}},feedback:{type:Boolean,default:!0},showTitle:{type:String,default:"show"}},computed:{couponNum:function(){return this.coupons.length>1?"e-coupon-multi":"e-coupon-single"}},methods:{handleClick:function(t){this.feedback&&this.$emit("couponHandle",t)}}},r={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"e-coupon"},["show"===t.showTitle?i("div",{staticClass:"e-coupon__title"},[t._v("优惠券")]):t._e(),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.coupons.length,expression:"coupons.length"}],class:["e-coupon__container","clearfix",t.couponNum]},[t.coupons.length>1?i("van-swipe",{attrs:{width:200,"show-indicators":!1,loop:!1,touchable:!0}},t._l(t.coupons,function(e,o){return i("van-swipe-item",{key:o},[i("item",{attrs:{item:e,num:t.coupons.length,feedback:t.feedback},on:{buttonClick:function(e){t.handleClick(e)}}})],1)})):t._l(t.coupons,function(e,o){return i("item",{key:o,attrs:{item:e,num:t.coupons.length,feedback:t.feedback},on:{buttonClick:function(e){t.handleClick(e)}}})})],2)])},staticRenderFns:[]},l=i("VU/8")(a,r,!1,null,null,null);e.a=l.exports},Lokx:function(t,e,i){var o,s;
/**!
 * Sortable
 * @author	RubaXa   <trash@rubaxa.org>
 * @license MIT
 */
/**!
 * Sortable
 * @author	RubaXa   <trash@rubaxa.org>
 * @license MIT
 */
!function(n){"use strict";void 0===(s="function"==typeof(o=n)?o.call(e,i,e,t):o)||(t.exports=s)}(function(){"use strict";if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var t,e,i,o,s,n,a,r,l,c,u,d,p,h,m,f,v,g,y,_,b,w={},C=/\s+/g,x=/left|right|inline/,k="Sortable"+(new Date).getTime(),D=window,M=D.document,S=D.parseInt,T=D.setTimeout,I=D.jQuery||D.Zepto,L=D.Polymer,O=!1,N="draggable"in M.createElement("div"),A=!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie)/i)&&((b=M.createElement("x")).style.cssText="pointer-events:auto","auto"===b.style.pointerEvents),E=!1,$=Math.abs,H=Math.min,B=[],Y=[],X=ot(function(t,e,i){if(i&&e.scroll){var o,s,n,a,u,d,p=i[k],h=e.scrollSensitivity,m=e.scrollSpeed,f=t.clientX,v=t.clientY,g=window.innerWidth,y=window.innerHeight;if(l!==i&&(r=e.scroll,l=i,c=e.scrollFn,!0===r)){r=i;do{if(r.offsetWidth<r.scrollWidth||r.offsetHeight<r.scrollHeight)break}while(r=r.parentNode)}r&&(o=r,s=r.getBoundingClientRect(),n=($(s.right-f)<=h)-($(s.left-f)<=h),a=($(s.bottom-v)<=h)-($(s.top-v)<=h)),n||a||(a=(y-v<=h)-(v<=h),((n=(g-f<=h)-(f<=h))||a)&&(o=D)),w.vx===n&&w.vy===a&&w.el===o||(w.el=o,w.vx=n,w.vy=a,clearInterval(w.pid),o&&(w.pid=setInterval(function(){if(d=a?a*m:0,u=n?n*m:0,"function"==typeof c)return c.call(p,u,d,t);o===D?D.scrollTo(D.pageXOffset+u,D.pageYOffset+d):(o.scrollTop+=d,o.scrollLeft+=u)},24)))}},30),P=function(t){function e(t,e){return void 0!==t&&!0!==t||(t=i.name),"function"==typeof t?t:function(i,o){var s=o.options.group.name;return e?t:t&&(t.join?t.indexOf(s)>-1:s==t)}}var i={},o=t.group;o&&"object"==typeof o||(o={name:o}),i.name=o.name,i.checkPull=e(o.pull,!0),i.checkPut=e(o.put),i.revertClone=o.revertClone,t.group=i};try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){O={capture:!1,passive:!1}}}))}catch(t){}function U(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(t);this.el=t,this.options=e=st({},e),t[k]=this;var i={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(t.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==U.supportPointer};for(var o in i)!(o in e)&&(e[o]=i[o]);for(var s in P(e),this)"_"===s.charAt(0)&&"function"==typeof this[s]&&(this[s]=this[s].bind(this));this.nativeDraggable=!e.forceFallback&&N,j(t,"mousedown",this._onTapStart),j(t,"touchstart",this._onTapStart),e.supportPointer&&j(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(j(t,"dragover",this),j(t,"dragenter",this)),Y.push(this._onDragOver),e.store&&this.sort(e.store.get(this))}function V(e,i){"clone"!==e.lastPullMode&&(i=!0),o&&o.state!==i&&(q(o,"display",i?"none":""),i||o.state&&(e.options.group.revertClone?(s.insertBefore(o,n),e._animate(t,o)):s.insertBefore(o,t)),o.state=i)}function F(t,e,i){if(t){i=i||M;do{if(">*"===e&&t.parentNode===i||it(t,e))return t}while(t=W(t))}return null}function W(t){var e=t.host;return e&&e.nodeType?e:t.parentNode}function j(t,e,i){t.addEventListener(e,i,O)}function R(t,e,i){t.removeEventListener(e,i,O)}function z(t,e,i){if(t)if(t.classList)t.classList[i?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(C," ").replace(" "+e+" "," ");t.className=(o+(i?" "+e:"")).replace(C," ")}}function q(t,e,i){var o=t&&t.style;if(o){if(void 0===i)return M.defaultView&&M.defaultView.getComputedStyle?i=M.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===e?i:i[e];e in o||(e="-webkit-"+e),o[e]=i+("string"==typeof i?"":"px")}}function G(t,e,i){if(t){var o=t.getElementsByTagName(e),s=0,n=o.length;if(i)for(;s<n;s++)i(o[s],s);return o}return[]}function J(t,e,i,s,n,a,r,l){t=t||e[k];var c=M.createEvent("Event"),u=t.options,d="on"+i.charAt(0).toUpperCase()+i.substr(1);c.initEvent(i,!0,!0),c.to=n||e,c.from=a||e,c.item=s||e,c.clone=o,c.oldIndex=r,c.newIndex=l,e.dispatchEvent(c),u[d]&&u[d].call(t,c)}function Q(t,e,i,o,s,n,a,r){var l,c,u=t[k],d=u.options.onMove;return(l=M.createEvent("Event")).initEvent("move",!0,!0),l.to=e,l.from=t,l.dragged=i,l.draggedRect=o,l.related=s||e,l.relatedRect=n||e.getBoundingClientRect(),l.willInsertAfter=r,t.dispatchEvent(l),d&&(c=d.call(u,l,a)),c}function Z(t){t.draggable=!1}function K(){E=!1}function tt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,i=e.length,o=0;i--;)o+=e.charCodeAt(i);return o.toString(36)}function et(t,e){var i=0;if(!t||!t.parentNode)return-1;for(;t&&(t=t.previousElementSibling);)"TEMPLATE"===t.nodeName.toUpperCase()||">*"!==e&&!it(t,e)||i++;return i}function it(t,e){if(t){var i=(e=e.split(".")).shift().toUpperCase(),o=new RegExp("\\s("+e.join("|")+")(?=\\s)","g");return!(""!==i&&t.nodeName.toUpperCase()!=i||e.length&&((" "+t.className+" ").match(o)||[]).length!=e.length)}return!1}function ot(t,e){var i,o;return function(){void 0===i&&(i=arguments,o=this,T(function(){1===i.length?t.call(o,i[0]):t.apply(o,i),i=void 0},e))}}function st(t,e){if(t&&e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function nt(t){return L&&L.dom?L.dom(t).cloneNode(!0):I?I(t).clone(!0)[0]:t.cloneNode(!0)}function at(t){return T(t,0)}function rt(t){return clearTimeout(t)}return U.prototype={constructor:U,_onTapStart:function(e){var i,o=this,s=this.el,n=this.options,r=n.preventOnFilter,l=e.type,c=e.touches&&e.touches[0],u=(c||e).target,d=e.target.shadowRoot&&e.path&&e.path[0]||u,p=n.filter;if(function(t){var e=t.getElementsByTagName("input"),i=e.length;for(;i--;){var o=e[i];o.checked&&B.push(o)}}(s),!t&&!(/mousedown|pointerdown/.test(l)&&0!==e.button||n.disabled)&&!d.isContentEditable&&(u=F(u,n.draggable,s))&&a!==u){if(i=et(u,n.draggable),"function"==typeof p){if(p.call(this,e,u,this))return J(o,d,"filter",u,s,s,i),void(r&&e.preventDefault())}else if(p&&(p=p.split(",").some(function(t){if(t=F(d,t.trim(),s))return J(o,t,"filter",u,s,s,i),!0})))return void(r&&e.preventDefault());n.handle&&!F(d,n.handle,s)||this._prepareDragStart(e,c,u,i)}},_prepareDragStart:function(i,o,r,l){var c,u=this,d=u.el,p=u.options,m=d.ownerDocument;r&&!t&&r.parentNode===d&&(g=i,s=d,e=(t=r).parentNode,n=t.nextSibling,a=r,f=p.group,h=l,this._lastX=(o||i).clientX,this._lastY=(o||i).clientY,t.style["will-change"]="all",c=function(){u._disableDelayedDrag(),t.draggable=u.nativeDraggable,z(t,p.chosenClass,!0),u._triggerDragStart(i,o),J(u,s,"choose",t,s,s,h)},p.ignore.split(",").forEach(function(e){G(t,e.trim(),Z)}),j(m,"mouseup",u._onDrop),j(m,"touchend",u._onDrop),j(m,"touchcancel",u._onDrop),j(m,"selectstart",u),p.supportPointer&&j(m,"pointercancel",u._onDrop),p.delay?(j(m,"mouseup",u._disableDelayedDrag),j(m,"touchend",u._disableDelayedDrag),j(m,"touchcancel",u._disableDelayedDrag),j(m,"mousemove",u._disableDelayedDrag),j(m,"touchmove",u._disableDelayedDrag),p.supportPointer&&j(m,"pointermove",u._disableDelayedDrag),u._dragStartTimer=T(c,p.delay)):c())},_disableDelayedDrag:function(){var t=this.el.ownerDocument;clearTimeout(this._dragStartTimer),R(t,"mouseup",this._disableDelayedDrag),R(t,"touchend",this._disableDelayedDrag),R(t,"touchcancel",this._disableDelayedDrag),R(t,"mousemove",this._disableDelayedDrag),R(t,"touchmove",this._disableDelayedDrag),R(t,"pointermove",this._disableDelayedDrag)},_triggerDragStart:function(e,i){(i=i||("touch"==e.pointerType?e:null))?(g={target:t,clientX:i.clientX,clientY:i.clientY},this._onDragStart(g,"touch")):this.nativeDraggable?(j(t,"dragend",this),j(s,"dragstart",this._onDragStart)):this._onDragStart(g,!0);try{M.selection?at(function(){M.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(){if(s&&t){var e=this.options;z(t,e.ghostClass,!0),z(t,e.dragClass,!1),U.active=this,J(this,s,"start",t,s,s,h)}else this._nulling()},_emulateDragOver:function(){if(y){if(this._lastX===y.clientX&&this._lastY===y.clientY)return;this._lastX=y.clientX,this._lastY=y.clientY,A||q(i,"display","none");var t=M.elementFromPoint(y.clientX,y.clientY),e=t,o=Y.length;if(t&&t.shadowRoot&&(e=t=t.shadowRoot.elementFromPoint(y.clientX,y.clientY)),e)do{if(e[k]){for(;o--;)Y[o]({clientX:y.clientX,clientY:y.clientY,target:t,rootEl:e});break}t=e}while(e=e.parentNode);A||q(i,"display","")}},_onTouchMove:function(t){if(g){var e=this.options,o=e.fallbackTolerance,s=e.fallbackOffset,n=t.touches?t.touches[0]:t,a=n.clientX-g.clientX+s.x,r=n.clientY-g.clientY+s.y,l=t.touches?"translate3d("+a+"px,"+r+"px,0)":"translate("+a+"px,"+r+"px)";if(!U.active){if(o&&H($(n.clientX-this._lastX),$(n.clientY-this._lastY))<o)return;this._dragStarted()}this._appendGhost(),_=!0,y=n,q(i,"webkitTransform",l),q(i,"mozTransform",l),q(i,"msTransform",l),q(i,"transform",l),t.preventDefault()}},_appendGhost:function(){if(!i){var e,o=t.getBoundingClientRect(),n=q(t),a=this.options;z(i=t.cloneNode(!0),a.ghostClass,!1),z(i,a.fallbackClass,!0),z(i,a.dragClass,!0),q(i,"top",o.top-S(n.marginTop,10)),q(i,"left",o.left-S(n.marginLeft,10)),q(i,"width",o.width),q(i,"height",o.height),q(i,"opacity","0.8"),q(i,"position","fixed"),q(i,"zIndex","100000"),q(i,"pointerEvents","none"),a.fallbackOnBody&&M.body.appendChild(i)||s.appendChild(i),e=i.getBoundingClientRect(),q(i,"width",2*o.width-e.width),q(i,"height",2*o.height-e.height)}},_onDragStart:function(e,i){var n=this,a=e.dataTransfer,r=n.options;n._offUpEvents(),f.checkPull(n,n,t,e)&&((o=nt(t)).draggable=!1,o.style["will-change"]="",q(o,"display","none"),z(o,n.options.chosenClass,!1),n._cloneId=at(function(){s.insertBefore(o,t),J(n,s,"clone",t)})),z(t,r.dragClass,!0),i?("touch"===i?(j(M,"touchmove",n._onTouchMove),j(M,"touchend",n._onDrop),j(M,"touchcancel",n._onDrop),r.supportPointer&&(j(M,"pointermove",n._onTouchMove),j(M,"pointerup",n._onDrop))):(j(M,"mousemove",n._onTouchMove),j(M,"mouseup",n._onDrop)),n._loopId=setInterval(n._emulateDragOver,50)):(a&&(a.effectAllowed="move",r.setData&&r.setData.call(n,a,t)),j(M,"drop",n),n._dragStartId=at(n._dragStarted))},_onDragOver:function(a){var r,l,c,h,m=this.el,g=this.options,y=g.group,b=U.active,w=f===y,C=!1,D=g.sort;if(void 0!==a.preventDefault&&(a.preventDefault(),!g.dragoverBubble&&a.stopPropagation()),!t.animated&&(_=!0,b&&!g.disabled&&(w?D||(h=!s.contains(t)):v===this||(b.lastPullMode=f.checkPull(this,b,t,a))&&y.checkPut(this,b,t,a))&&(void 0===a.rootEl||a.rootEl===this.el))){if(X(a,g,this.el),E)return;if(r=F(a.target,g.draggable,m),l=t.getBoundingClientRect(),v!==this&&(v=this,C=!0),h)return V(b,!0),e=s,void(o||n?s.insertBefore(t,o||n):D||s.appendChild(t));if(0===m.children.length||m.children[0]===i||m===a.target&&function(t,e){var i=t.lastElementChild.getBoundingClientRect();return e.clientY-(i.top+i.height)>5||e.clientX-(i.left+i.width)>5}(m,a)){if(0!==m.children.length&&m.children[0]!==i&&m===a.target&&(r=m.lastElementChild),r){if(r.animated)return;c=r.getBoundingClientRect()}V(b,w),!1!==Q(s,m,t,l,r,c,a)&&(t.contains(m)||(m.appendChild(t),e=m),this._animate(l,t),r&&this._animate(c,r))}else if(r&&!r.animated&&r!==t&&void 0!==r.parentNode[k]){u!==r&&(u=r,d=q(r),p=q(r.parentNode));var M=(c=r.getBoundingClientRect()).right-c.left,S=c.bottom-c.top,I=x.test(d.cssFloat+d.display)||"flex"==p.display&&0===p["flex-direction"].indexOf("row"),L=r.offsetWidth>t.offsetWidth,O=r.offsetHeight>t.offsetHeight,N=(I?(a.clientX-c.left)/M:(a.clientY-c.top)/S)>.5,A=r.nextElementSibling,$=!1;if(I){var H=t.offsetTop,B=r.offsetTop;$=H===B?r.previousElementSibling===t&&!L||N&&L:r.previousElementSibling===t||t.previousElementSibling===r?(a.clientY-c.top)/S>.5:B>H}else C||($=A!==t&&!O||N&&O);var Y=Q(s,m,t,l,r,c,a,$);!1!==Y&&(1!==Y&&-1!==Y||($=1===Y),E=!0,T(K,30),V(b,w),t.contains(m)||($&&!A?m.appendChild(t):r.parentNode.insertBefore(t,$?A:r)),e=t.parentNode,this._animate(l,t),this._animate(c,r))}}},_animate:function(t,e){var i=this.options.animation;if(i){var o=e.getBoundingClientRect();1===t.nodeType&&(t=t.getBoundingClientRect()),q(e,"transition","none"),q(e,"transform","translate3d("+(t.left-o.left)+"px,"+(t.top-o.top)+"px,0)"),e.offsetWidth,q(e,"transition","all "+i+"ms"),q(e,"transform","translate3d(0,0,0)"),clearTimeout(e.animated),e.animated=T(function(){q(e,"transition",""),q(e,"transform",""),e.animated=!1},i)}},_offUpEvents:function(){var t=this.el.ownerDocument;R(M,"touchmove",this._onTouchMove),R(M,"pointermove",this._onTouchMove),R(t,"mouseup",this._onDrop),R(t,"touchend",this._onDrop),R(t,"pointerup",this._onDrop),R(t,"touchcancel",this._onDrop),R(t,"pointercancel",this._onDrop),R(t,"selectstart",this)},_onDrop:function(a){var r=this.el,l=this.options;clearInterval(this._loopId),clearInterval(w.pid),clearTimeout(this._dragStartTimer),rt(this._cloneId),rt(this._dragStartId),R(M,"mouseover",this),R(M,"mousemove",this._onTouchMove),this.nativeDraggable&&(R(M,"drop",this),R(r,"dragstart",this._onDragStart)),this._offUpEvents(),a&&(_&&(a.preventDefault(),!l.dropBubble&&a.stopPropagation()),i&&i.parentNode&&i.parentNode.removeChild(i),s!==e&&"clone"===U.active.lastPullMode||o&&o.parentNode&&o.parentNode.removeChild(o),t&&(this.nativeDraggable&&R(t,"dragend",this),Z(t),t.style["will-change"]="",z(t,this.options.ghostClass,!1),z(t,this.options.chosenClass,!1),J(this,s,"unchoose",t,e,s,h),s!==e?(m=et(t,l.draggable))>=0&&(J(null,e,"add",t,e,s,h,m),J(this,s,"remove",t,e,s,h,m),J(null,e,"sort",t,e,s,h,m),J(this,s,"sort",t,e,s,h,m)):t.nextSibling!==n&&(m=et(t,l.draggable))>=0&&(J(this,s,"update",t,e,s,h,m),J(this,s,"sort",t,e,s,h,m)),U.active&&(null!=m&&-1!==m||(m=h),J(this,s,"end",t,e,s,h,m),this.save()))),this._nulling()},_nulling:function(){s=t=e=i=n=o=a=r=l=g=y=_=m=u=d=v=f=U.active=null,B.forEach(function(t){t.checked=!0}),B.length=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragover":case"dragenter":t&&(this._onDragOver(e),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.preventDefault()}(e));break;case"mouseover":this._onDrop(e);break;case"selectstart":e.preventDefault()}},toArray:function(){for(var t,e=[],i=this.el.children,o=0,s=i.length,n=this.options;o<s;o++)F(t=i[o],n.draggable,this.el)&&e.push(t.getAttribute(n.dataIdAttr)||tt(t));return e},sort:function(t){var e={},i=this.el;this.toArray().forEach(function(t,o){var s=i.children[o];F(s,this.options.draggable,i)&&(e[t]=s)},this),t.forEach(function(t){e[t]&&(i.removeChild(e[t]),i.appendChild(e[t]))})},save:function(){var t=this.options.store;t&&t.set(this)},closest:function(t,e){return F(t,e||this.options.draggable,this.el)},option:function(t,e){var i=this.options;if(void 0===e)return i[t];i[t]=e,"group"===t&&P(i)},destroy:function(){var t=this.el;t[k]=null,R(t,"mousedown",this._onTapStart),R(t,"touchstart",this._onTapStart),R(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(R(t,"dragover",this),R(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),Y.splice(Y.indexOf(this._onDragOver),1),this._onDrop(),this.el=t=null}},j(M,"touchmove",function(t){U.active&&t.preventDefault()}),U.utils={on:j,off:R,css:q,find:G,is:function(t,e){return!!F(t,e,t)},extend:st,throttle:ot,closest:F,toggleClass:z,clone:nt,index:et,nextTick:at,cancelNextTick:rt},U.create=function(t,e){return new U(t,e)},U.version="1.7.0",U})},TmV0:function(t,e,i){i("fZOM"),t.exports=i("FeBl").Object.values},YZ0n:function(t,e,i){var o;window,o=function(){return function(t){var e={};function i(o){if(e[o])return e[o].exports;var s=e[o]={i:o,l:!1,exports:{}};return t[o].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)i.d(o,s,function(e){return t[e]}.bind(null,s));return o},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=6)}([function(t,e,i){var o=i(2);"string"==typeof o&&(o=[[t.i,o,""]]);i(4)(o,{hmr:!0,transform:void 0,insertInto:void 0}),o.locals&&(t.exports=o.locals)},function(t,e,i){"use strict";var o=i(0);i.n(o).a},function(t,e,i){(t.exports=i(3)(!1)).push([t.i,'\n.vue-cropper[data-v-6dae58fd] {\n  position: relative;\n  width: 100%;\n  height: 100%;\n  box-sizing: border-box;\n  user-select: none;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  direction: ltr;\n  touch-action: none;\n  text-align: left;\n  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");\n}\n.cropper-box[data-v-6dae58fd],\n.cropper-box-canvas[data-v-6dae58fd],\n.cropper-drag-box[data-v-6dae58fd],\n.cropper-crop-box[data-v-6dae58fd],\n.cropper-face[data-v-6dae58fd] {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  user-select: none;\n}\n.cropper-box-canvas img[data-v-6dae58fd] {\n  position: relative;\n  text-align: left;\n  user-select: none;\n  transform: none;\n  max-width: none;\n  max-height: none;\n}\n.cropper-box[data-v-6dae58fd] {\n  overflow: hidden;\n}\n.cropper-move[data-v-6dae58fd] {\n  cursor: move;\n}\n.cropper-crop[data-v-6dae58fd] {\n  cursor: crosshair;\n}\n.cropper-modal[data-v-6dae58fd] {\n  background: rgba(0, 0, 0, 0.5);\n}\n.cropper-crop-box[data-v-6dae58fd] {\n  /*border: 2px solid #39f;*/\n}\n.cropper-view-box[data-v-6dae58fd] {\n  display: block;\n  overflow: hidden;\n  width: 100%;\n  height: 100%;\n  outline: 1px solid #39f;\n  outline-color: rgba(51, 153, 255, 0.75);\n  user-select: none;\n}\n.cropper-view-box img[data-v-6dae58fd] {\n  user-select: none;\n  text-align: left;\n  max-width: none;\n  max-height: none;\n}\n.cropper-face[data-v-6dae58fd] {\n  top: 0;\n  left: 0;\n  background-color: #fff;\n  opacity: 0.1;\n}\n.crop-info[data-v-6dae58fd] {\n  position: absolute;\n  left: 0px;\n  min-width: 65px;\n  text-align: center;\n  color: white;\n  line-height: 20px;\n  background-color: rgba(0, 0, 0, 0.8);\n  font-size: 12px;\n}\n.crop-line[data-v-6dae58fd] {\n  position: absolute;\n  display: block;\n  width: 100%;\n  height: 100%;\n  opacity: 0.1;\n}\n.line-w[data-v-6dae58fd] {\n  top: -3px;\n  left: 0;\n  height: 5px;\n  cursor: n-resize;\n}\n.line-a[data-v-6dae58fd] {\n  top: 0;\n  left: -3px;\n  width: 5px;\n  cursor: w-resize;\n}\n.line-s[data-v-6dae58fd] {\n  bottom: -3px;\n  left: 0;\n  height: 5px;\n  cursor: s-resize;\n}\n.line-d[data-v-6dae58fd] {\n  top: 0;\n  right: -3px;\n  width: 5px;\n  cursor: e-resize;\n}\n.crop-point[data-v-6dae58fd] {\n  position: absolute;\n  width: 8px;\n  height: 8px;\n  opacity: 0.75;\n  background-color: #39f;\n  border-radius: 100%;\n}\n.point1[data-v-6dae58fd] {\n  top: -4px;\n  left: -4px;\n  cursor: nw-resize;\n}\n.point2[data-v-6dae58fd] {\n  top: -5px;\n  left: 50%;\n  margin-left: -3px;\n  cursor: n-resize;\n}\n.point3[data-v-6dae58fd] {\n  top: -4px;\n  right: -4px;\n  cursor: ne-resize;\n}\n.point4[data-v-6dae58fd] {\n  top: 50%;\n  left: -4px;\n  margin-top: -3px;\n  cursor: w-resize;\n}\n.point5[data-v-6dae58fd] {\n  top: 50%;\n  right: -4px;\n  margin-top: -3px;\n  cursor: w-resize;\n}\n.point6[data-v-6dae58fd] {\n  bottom: -5px;\n  left: -4px;\n  cursor: sw-resize;\n}\n.point7[data-v-6dae58fd] {\n  bottom: -5px;\n  left: 50%;\n  margin-left: -3px;\n  cursor: s-resize;\n}\n.point8[data-v-6dae58fd] {\n  bottom: -5px;\n  right: -4px;\n  cursor: se-resize;\n}\n@media screen and (max-width: 500px) {\n.crop-point[data-v-6dae58fd] {\n    position: absolute;\n    width: 20px;\n    height: 20px;\n    opacity: 0.45;\n    background-color: #39f;\n    border-radius: 100%;\n}\n.point1[data-v-6dae58fd] {\n    top: -10px;\n    left: -10px;\n}\n.point2[data-v-6dae58fd],\n  .point4[data-v-6dae58fd],\n  .point5[data-v-6dae58fd],\n  .point7[data-v-6dae58fd] {\n    display: none;\n}\n.point3[data-v-6dae58fd] {\n    top: -10px;\n    right: -10px;\n}\n.point4[data-v-6dae58fd] {\n    top: 0;\n    left: 0;\n}\n.point6[data-v-6dae58fd] {\n    bottom: -10px;\n    left: -10px;\n}\n.point8[data-v-6dae58fd] {\n    bottom: -10px;\n    right: -10px;\n}\n}\n',""])},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=function(t,e){var i=t[1]||"",o=t[3];if(!o)return i;if(e&&"function"==typeof btoa){var s=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(o),n=o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"});return[i].concat(n).concat([s]).join("\n")}return[i].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},s=0;s<this.length;s++){var n=this[s][0];"number"==typeof n&&(o[n]=!0)}for(s=0;s<t.length;s++){var a=t[s];"number"==typeof a[0]&&o[a[0]]||(i&&!a[2]?a[2]=i:i&&(a[2]="("+a[2]+") and ("+i+")"),e.push(a))}},e}},function(t,e,i){var o={},s=function(t){var e;return function(){return void 0===e&&(e=function(){return window&&document&&document.all&&!window.atob}.apply(this,arguments)),e}}(),n=function(t){var e={};return function(t,i){if("function"==typeof t)return t();if(void 0===e[t]){var o=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,i);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}}(),a=null,r=0,l=[],c=i(5);function u(t,e){for(var i=0;i<t.length;i++){var s=t[i],n=o[s.id];if(n){n.refs++;for(var a=0;a<n.parts.length;a++)n.parts[a](s.parts[a]);for(;a<s.parts.length;a++)n.parts.push(v(s.parts[a],e))}else{var r=[];for(a=0;a<s.parts.length;a++)r.push(v(s.parts[a],e));o[s.id]={id:s.id,refs:1,parts:r}}}}function d(t,e){for(var i=[],o={},s=0;s<t.length;s++){var n=t[s],a=e.base?n[0]+e.base:n[0],r={css:n[1],media:n[2],sourceMap:n[3]};o[a]?o[a].parts.push(r):i.push(o[a]={id:a,parts:[r]})}return i}function p(t,e){var i=n(t.insertInto);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=l[l.length-1];if("top"===t.insertAt)o?o.nextSibling?i.insertBefore(e,o.nextSibling):i.appendChild(e):i.insertBefore(e,i.firstChild),l.push(e);else if("bottom"===t.insertAt)i.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var s=n(t.insertAt.before,i);i.insertBefore(e,s)}}function h(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=l.indexOf(t);e>=0&&l.splice(e,1)}function m(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var o=i.nc;o&&(t.attrs.nonce=o)}return f(e,t.attrs),p(t,e),e}function f(t,e){Object.keys(e).forEach(function(i){t.setAttribute(i,e[i])})}function v(t,e){var i,o,s,n;if(e.transform&&t.css){if(!(n="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=n}if(e.singleton){var l=r++;i=a||(a=m(e)),o=y.bind(null,i,l,!1),s=y.bind(null,i,l,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",f(e,t.attrs),p(t,e),e}(e),o=function(t,e,i){var o=i.css,s=i.sourceMap,n=void 0===e.convertToAbsoluteUrls&&s;(e.convertToAbsoluteUrls||n)&&(o=c(o)),s&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */");var a=new Blob([o],{type:"text/css"}),r=t.href;t.href=URL.createObjectURL(a),r&&URL.revokeObjectURL(r)}.bind(null,i,e),s=function(){h(i),i.href&&URL.revokeObjectURL(i.href)}):(i=m(e),o=function(t,e){var i=e.css,o=e.media;if(o&&t.setAttribute("media",o),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}.bind(null,i),s=function(){h(i)});return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else s()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=s()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var i=d(t,e);return u(i,e),function(t){for(var s=[],n=0;n<i.length;n++){var a=i[n];(r=o[a.id]).refs--,s.push(r)}for(t&&u(d(t,e),e),n=0;n<s.length;n++){var r;if(0===(r=s[n]).refs){for(var l=0;l<r.parts.length;l++)r.parts[l]();delete o[r.id]}}}};var g=function(){var t=[];return function(e,i){return t[e]=i,t.filter(Boolean).join("\n")}}();function y(t,e,i,o){var s=i?"":o.css;if(t.styleSheet)t.styleSheet.cssText=g(e,s);else{var n=document.createTextNode(s),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(n,a[e]):t.appendChild(n)}}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var i=e.protocol+"//"+e.host,o=i+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var s,n=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(n)?t:(s=0===n.indexOf("//")?n:0===n.indexOf("/")?i+n:o+n.replace(/^\.\//,""),"url("+JSON.stringify(s)+")")})}},function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"cropper",staticClass:"vue-cropper",on:{mouseover:t.scaleImg,mouseout:t.cancleScale}},[i("div",{staticClass:"cropper-box"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}],staticClass:"cropper-box-canvas",style:{width:t.trueWidth+"px",height:t.trueHeight+"px",transform:"scale("+t.scale+","+t.scale+") translate3d("+t.x/t.scale+"px,"+t.y/t.scale+"px,0)rotateZ("+90*t.rotate+"deg)"}},[i("img",{ref:"cropperImg",attrs:{src:t.imgs,alt:"cropper-img"}})])]),t._v(" "),i("div",{staticClass:"cropper-drag-box",class:{"cropper-move":t.move&&!t.crop,"cropper-crop":t.crop,"cropper-modal":t.cropping},on:{mousedown:t.startMove,touchstart:t.startMove}}),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.cropping,expression:"cropping"}],staticClass:"cropper-crop-box",style:{width:t.cropW+"px",height:t.cropH+"px",transform:"translate3d("+t.cropOffsertX+"px,"+t.cropOffsertY+"px,0)"}},[i("span",{staticClass:"cropper-view-box"},[i("img",{style:{width:t.trueWidth+"px",height:t.trueHeight+"px",transform:"scale("+t.scale+","+t.scale+") translate3d("+(t.x-t.cropOffsertX)/t.scale+"px,"+(t.y-t.cropOffsertY)/t.scale+"px,0)rotateZ("+90*t.rotate+"deg)"},attrs:{src:t.imgs,alt:"cropper-img"}})]),t._v(" "),i("span",{staticClass:"cropper-face cropper-move",on:{mousedown:t.cropMove,touchstart:t.cropMove}}),t._v(" "),t.info?i("span",{staticClass:"crop-info",style:{top:t.cropInfo.top}},[t._v("\n          "+t._s(this.cropInfo.width)+" × "+t._s(this.cropInfo.height)+"\n        ")]):t._e(),t._v(" "),t.fixedBox?t._e():i("span",[i("span",{staticClass:"crop-line line-w",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,1)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,1)}}}),t._v(" "),i("span",{staticClass:"crop-line line-a",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,1,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,1,0)}}}),t._v(" "),i("span",{staticClass:"crop-line line-s",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,2)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,2)}}}),t._v(" "),i("span",{staticClass:"crop-line line-d",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,2,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,2,0)}}}),t._v(" "),i("span",{staticClass:"crop-point point1",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,1,1)},touchstart:function(e){t.changeCropSize(e,!0,!0,1,1)}}}),t._v(" "),i("span",{staticClass:"crop-point point2",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,1)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,1)}}}),t._v(" "),i("span",{staticClass:"crop-point point3",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,2,1)},touchstart:function(e){t.changeCropSize(e,!0,!0,2,1)}}}),t._v(" "),i("span",{staticClass:"crop-point point4",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,1,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,1,0)}}}),t._v(" "),i("span",{staticClass:"crop-point point5",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,2,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,2,0)}}}),t._v(" "),i("span",{staticClass:"crop-point point6",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,1,2)},touchstart:function(e){t.changeCropSize(e,!0,!0,1,2)}}}),t._v(" "),i("span",{staticClass:"crop-point point7",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,2)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,2)}}}),t._v(" "),i("span",{staticClass:"crop-point point8",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,2,2)},touchstart:function(e){t.changeCropSize(e,!0,!0,2,2)}}})])])])};o._withStripped=!0;var s={};s.getData=function(t){return new Promise(function(e,i){var o={};(function(t){var e=null;return new Promise(function(i,o){if(t.src)if(/^data\:/i.test(t.src))e=function(t){t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var e=atob(t),i=e.length,o=new ArrayBuffer(i),s=new Uint8Array(o),n=0;n<i;n++)s[n]=e.charCodeAt(n);return o}(t.src),i(e);else if(/^blob\:/i.test(t.src)){var s=new FileReader;s.onload=function(t){e=t.target.result,i(e)},function(t,e){var i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType="blob",i.onload=function(t){200!=this.status&&0!==this.status||function(t){s.readAsArrayBuffer(t)}(this.response)},i.send()}(t.src)}else{var n=new XMLHttpRequest;n.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";e=n.response,i(e),n=null},n.open("GET",t.src,!0),n.responseType="arraybuffer",n.send(null)}else o("img error")})})(t).then(function(t){o.arrayBuffer=t,o.orientation=function(t){var e,i,o,s,n,a,r,l,c,u=new DataView(t),d=u.byteLength;if(255===u.getUint8(0)&&216===u.getUint8(1))for(l=2;l<d;){if(255===u.getUint8(l)&&225===u.getUint8(l+1)){a=l;break}l++}if(a&&(i=a+10,"Exif"===function(t,e,i){var o,s="";for(o=e,i+=e;o<i;o++)s+=String.fromCharCode(t.getUint8(o));return s}(u,a+4,4)&&(((s=18761===(n=u.getUint16(i)))||19789===n)&&42===u.getUint16(i+2,s)&&(o=u.getUint32(i+4,s))>=8&&(r=i+o))),r)for(d=u.getUint16(r,s),c=0;c<d;c++)if(l=r+12*c+2,274===u.getUint16(l,s)){l+=8,e=u.getUint16(l,s);break}return e}(t),e(o)}).catch(function(t){i(t)})})};var n=s,a={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:""}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:Number,default:0},autoCropHeight:{type:Number,default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:function(){return[1,1]}},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:Number,default:2e3},enlarge:{type:[Number,String],default:1}},computed:{cropInfo:function(){var t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){var e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:function(){var t=navigator.userAgent;return t.indexOf("compatible")>-1&&t.indexOf("MSIE")>-1}},watch:{img:function(){this.checkedImg()},imgs:function(t){""!==t&&this.reload()},cropW:function(){this.cropW=this.cropW,this.showPreview()},cropH:function(){this.cropH=this.cropH,this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(t,e){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},autoCrop:function(t){t&&this.goAutoCrop()},rotate:function(){this.showPreview(),this.autoCrop&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{checkOrientationImage:function(t,e,i,o){var s=this,n=document.createElement("canvas"),a=n.getContext("2d");switch(a.save(),e){case 2:n.width=i,n.height=o,a.translate(i,0),a.scale(-1,1);break;case 3:n.width=i,n.height=o,a.translate(i/2,o/2),a.rotate(180*Math.PI/180),a.translate(-i/2,-o/2);break;case 4:n.width=i,n.height=o,a.translate(0,o),a.scale(1,-1);break;case 5:n.height=i,n.width=o,a.rotate(.5*Math.PI),a.scale(1,-1);break;case 6:n.width=o,n.height=i,a.translate(o/2,i/2),a.rotate(90*Math.PI/180),a.translate(-i/2,-o/2);break;case 7:n.height=i,n.width=o,a.rotate(.5*Math.PI),a.translate(i,-o),a.scale(-1,1);break;case 8:n.height=i,n.width=o,a.translate(o/2,i/2),a.rotate(-90*Math.PI/180),a.translate(-i/2,-o/2);break;default:n.width=i,n.height=o}a.drawImage(t,0,0,i,o),a.restore(),n.toBlob(function(t){var e=URL.createObjectURL(t);s.imgs=e},"image/"+this.outputType,1)},checkedImg:function(){var t=this;if(""!==this.img){this.loading=!0,this.scale=1,this.clearCrop();var e=new Image;if(e.onload=function(){if(""===t.img)return t.$emit("imgLoad","error"),!1;var i=e.width,o=e.height;n.getData(e).then(function(s){t.orientation=s.orientation||1;var n=t.maxImgSize;!t.orientation&&i<n&o<n?t.imgs=t.img:(i>n&&(o=o/i*n,i=n),o>n&&(i=i/o*n,o=n),t.checkOrientationImage(e,t.orientation,i,o))})},e.onerror=function(){t.$emit("imgLoad","error")},e.crossOrigin="",this.isIE){var i=new XMLHttpRequest;i.onload=function(){var t=URL.createObjectURL(this.response);e.src=t},i.open("GET",this.img,!0),i.responseType="blob",i.send()}else e.src=this.img}},startMove:function(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=(t.clientX?t.clientX:t.touches[0].clientX)-this.x,this.moveY=(t.clientY?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancleTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX=t.clientX?t.clientX:t.touches[0].clientX,this.cropY=t.clientY?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale:function(t){var e=this;t.preventDefault();var i=this.scale,o=this.touches[0].clientX,s=this.touches[0].clientY,n=t.touches[0].clientX,a=t.touches[0].clientY,r=this.touches[1].clientX,l=this.touches[1].clientY,c=t.touches[1].clientX,u=t.touches[1].clientY,d=Math.sqrt(Math.pow(o-r,2)+Math.pow(s-l,2)),p=Math.sqrt(Math.pow(n-c,2)+Math.pow(a-u,2))-d,h=1,m=(h=(h=h/this.trueWidth>h/this.trueHeight?h/this.trueHeight:h/this.trueWidth)>.1?.1:h)*p;if(!this.touchNow){if(this.touchNow=!0,p>0?i+=Math.abs(m):p<0&&i>Math.abs(m)&&(i-=Math.abs(m)),this.touches=t.touches,setTimeout(function(){e.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,i))return!1;this.scale=i}},cancleTouchScale:function(t){window.removeEventListener("touchmove",this.touchScale)},moveImg:function(t){var e=this;if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancleTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;var i,o,s=t.clientX?t.clientX:t.touches[0].clientX,n=t.clientY?t.clientY:t.touches[0].clientY;i=s-this.moveX,o=n-this.moveY,this.$nextTick(function(){if(e.centerBox){var t,s,n,a,r=e.getImgAxis(i,o,e.scale),l=e.getCropAxis(),c=e.trueHeight*e.scale,u=e.trueWidth*e.scale;switch(e.rotate){case 1:case-1:case 3:case-3:t=e.cropOffsertX-e.trueWidth*(1-e.scale)/2+(c-u)/2,s=e.cropOffsertY-e.trueHeight*(1-e.scale)/2+(u-c)/2,n=t-c+e.cropW,a=s-u+e.cropH;break;default:t=e.cropOffsertX-e.trueWidth*(1-e.scale)/2,s=e.cropOffsertY-e.trueHeight*(1-e.scale)/2,n=t-u+e.cropW,a=s-c+e.cropH}r.x1>=l.x1&&(i=t),r.y1>=l.y1&&(o=s),r.x2<=l.x2&&(i=n),r.y2<=l.y2&&(o=a)}e.x=i,e.y=o,e.$emit("imgMoving",{moving:!0,axis:e.getImgAxis()})})},leaveImg:function(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()})},scaleImg:function(){this.canScale&&window.addEventListener(this.support,this.changeSize)},cancleScale:function(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize:function(t){var e=this;t.preventDefault();var i=this.scale,o=t.deltaY||t.wheelDelta;o=navigator.userAgent.indexOf("Firefox")>0?30*o:o,this.isIE&&(o=-o);var s=this.coe,n=(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth)*o;n<0?i+=Math.abs(n):i>Math.abs(n)&&(i-=Math.abs(n));var a=n<0?"add":"reduce";if(a!==this.coeStatus&&(this.coeStatus=a,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(function(){e.scaling=!1,e.coe=e.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,i))return!1;this.scale=i},changeScale:function(t){var e=this.scale;t=t||1;var i=20;if((t*=i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop:function(t){var e=this;t.preventDefault();var i=t.clientX?t.clientX:t.touches?t.touches[0].clientX:0,o=t.clientY?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick(function(){var t=i-e.cropX,s=o-e.cropY;if(t>0?(e.cropW=t+e.cropChangeX>e.w?e.w-e.cropChangeX:t,e.cropOffsertX=e.cropChangeX):(e.cropW=e.w-e.cropChangeX+Math.abs(t)>e.w?e.cropChangeX:Math.abs(t),e.cropOffsertX=e.cropChangeX+t>0?e.cropChangeX+t:0),e.fixed){var n=e.cropW/e.fixedNumber[0]*e.fixedNumber[1];n+e.cropOffsertY>e.h?(e.cropH=e.h-e.cropOffsertY,e.cropW=e.cropH/e.fixedNumber[1]*e.fixedNumber[0],e.cropOffsertX=t>0?e.cropChangeX:e.cropChangeX-e.cropW):e.cropH=n,e.cropOffsertY=e.cropOffsertY}else s>0?(e.cropH=s+e.cropChangeY>e.h?e.h-e.cropChangeY:s,e.cropOffsertY=e.cropChangeY):(e.cropH=e.h-e.cropChangeY+Math.abs(s)>e.h?e.cropChangeY:Math.abs(s),e.cropOffsertY=e.cropChangeY+s>0?e.cropChangeY+s:0)})},changeCropSize:function(t,e,i,o,s){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=i,this.changeCropTypeX=o,this.changeCropTypeY=s,this.cropX=t.clientX?t.clientX:t.touches[0].clientX,this.cropY=t.clientY?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0)},changeCropNow:function(t){var e=this;t.preventDefault();var i=t.clientX?t.clientX:t.touches?t.touches[0].clientX:0,o=t.clientY?t.clientY:t.touches?t.touches[0].clientY:0,s=this.w,n=this.h,a=0,r=0;if(this.centerBox){var l=this.getImgAxis(),c=l.x2,u=l.y2;a=l.x1>0?l.x1:0,r=l.y1>0?l.y1:0,s>c&&(s=c),n>u&&(n=u)}this.$nextTick(function(){var t=i-e.cropX,l=o-e.cropY;if(e.canChangeX&&(1===e.changeCropTypeX?e.cropOldW-t>0?(e.cropW=s-e.cropChangeX-t<=s-a?e.cropOldW-t:e.cropOldW+e.cropChangeX-a,e.cropOffsertX=s-e.cropChangeX-t<=s-a?e.cropChangeX+t:a):(e.cropW=Math.abs(t)+e.cropChangeX<=s?Math.abs(t)-e.cropOldW:s-e.cropOldW-e.cropChangeX,e.cropOffsertX=e.cropChangeX+e.cropOldW):2===e.changeCropTypeX&&(e.cropOldW+t>0?(e.cropW=e.cropOldW+t+e.cropOffsertX<=s?e.cropOldW+t:s-e.cropOffsertX,e.cropOffsertX=e.cropChangeX):(e.cropW=s-e.cropChangeX+Math.abs(t+e.cropOldW)<=s-a?Math.abs(t+e.cropOldW):e.cropChangeX-a,e.cropOffsertX=s-e.cropChangeX+Math.abs(t+e.cropOldW)<=s-a?e.cropChangeX-Math.abs(t+e.cropOldW):a))),e.canChangeY&&(1===e.changeCropTypeY?e.cropOldH-l>0?(e.cropH=n-e.cropChangeY-l<=n-r?e.cropOldH-l:e.cropOldH+e.cropChangeY-r,e.cropOffsertY=n-e.cropChangeY-l<=n-r?e.cropChangeY+l:r):(e.cropH=Math.abs(l)+e.cropChangeY<=n?Math.abs(l)-e.cropOldH:n-e.cropOldH-e.cropChangeY,e.cropOffsertY=e.cropChangeY+e.cropOldH):2===e.changeCropTypeY&&(e.cropOldH+l>0?(e.cropH=e.cropOldH+l+e.cropOffsertY<=n?e.cropOldH+l:n-e.cropOffsertY,e.cropOffsertY=e.cropChangeY):(e.cropH=n-e.cropChangeY+Math.abs(l+e.cropOldH)<=n-r?Math.abs(l+e.cropOldH):e.cropChangeY-r,e.cropOffsertY=n-e.cropChangeY+Math.abs(l+e.cropOldH)<=n-r?e.cropChangeY-Math.abs(l+e.cropOldH):r))),e.canChangeX&&e.fixed){var c=e.cropW/e.fixedNumber[0]*e.fixedNumber[1];c+e.cropOffsertY>n?(e.cropH=n-e.cropOffsertY,e.cropW=e.cropH/e.fixedNumber[1]*e.fixedNumber[0]):e.cropH=c}if(e.canChangeY&&e.fixed){var u=e.cropH/e.fixedNumber[1]*e.fixedNumber[0];u+e.cropOffsertX>s?(e.cropW=s-e.cropOffsertX,e.cropH=e.cropW/e.fixedNumber[0]*e.fixedNumber[1]):e.cropW=u}})},changeCropEnd:function(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop:function(){0===this.cropW&&0===this.cropH&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop:function(){this.crop=!0},stopCrop:function(){this.crop=!1},clearCrop:function(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove:function(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);var e,i,o=t.clientX?t.clientX:t.touches[0].clientX,s=t.clientY?t.clientY:t.touches[0].clientY;e=o-this.cropOffsertX,i=s-this.cropOffsertY,this.cropX=e,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()})},moveCrop:function(t,e){var i=this,o=0,s=0;t&&(t.preventDefault(),o=t.clientX?t.clientX:t.touches[0].clientX,s=t.clientY?t.clientY:t.touches[0].clientY),this.$nextTick(function(){var t,n,a=o-i.cropX,r=s-i.cropY;if(e&&(a=i.cropOffsertX,r=i.cropOffsertY),t=a<=0?0:a+i.cropW>i.w?i.w-i.cropW:a,n=r<=0?0:r+i.cropH>i.h?i.h-i.cropH:r,i.centerBox){var l=i.getImgAxis();t<=l.x1&&(t=l.x1),t+i.cropW>l.x2&&(t=l.x2-i.cropW),n<=l.y1&&(n=l.y1),n+i.cropH>l.y2&&(n=l.y2-i.cropH)}i.cropOffsertX=t,i.cropOffsertY=n,i.$emit("cropMoving",{moving:!0,axis:i.getCropAxis()})})},getImgAxis:function(t,e,i){t=t||this.x,e=e||this.y,i=i||this.scale;var o={x1:0,x2:0,y1:0,y2:0},s=this.trueWidth*i,n=this.trueHeight*i;switch(this.rotate){case 0:o.x1=t+this.trueWidth*(1-i)/2,o.x2=o.x1+this.trueWidth*i,o.y1=e+this.trueHeight*(1-i)/2,o.y2=o.y1+this.trueHeight*i;break;case 1:case-1:case 3:case-3:o.x1=t+this.trueWidth*(1-i)/2+(s-n)/2,o.x2=o.x1+this.trueHeight*i,o.y1=e+this.trueHeight*(1-i)/2+(n-s)/2,o.y2=o.y1+this.trueWidth*i;break;default:o.x1=t+this.trueWidth*(1-i)/2,o.x2=

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。