W72crm_web-master/node_modules/vue-cropper/example/dist/build.js

6 lines
128 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=9)}([function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},i=0;i<this.length;i++){var r=this[i][0];"number"==typeof r&&(o[r]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(t,e,n){"use strict";function o(t,e,n,o,i,r,a,s){t=t||{};var c=typeof t.default;"object"!==c&&"function"!==c||(t=t.default);var p="function"==typeof t?t.options:t;e&&(p.render=e,p.staticRenderFns=n,p._compiled=!0),o&&(p.functional=!0),r&&(p._scopeId=r);var l;if(a?(l=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)},p._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(p.functional){p._injectStyles=l;var u=p.render;p.render=function(t,e){return l.call(e),u(t,e)}}else{var f=p.beforeCreate;p.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:p}}e.a=o},function(t,e,n){"use strict";function o(t,e,o,r){v=o,g=r||{};var a=n.i(p.a)(t,e);return i(a),function(e){for(var o=[],r=0;r<a.length;r++){var s=a[r],c=u[s.id];c.refs--,o.push(c)}e?(a=n.i(p.a)(t,e),i(a)):a=[];for(var r=0;r<o.length;r++){var c=o[r];if(0===c.refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete u[c.id]}}}}function i(t){for(var e=0;e<t.length;e++){var n=t[e],o=u[n.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](n.parts[i]);for(;i<n.parts.length;i++)o.parts.push(a(n.parts[i]));o.parts.length>n.parts.length&&(o.parts.length=n.parts.length)}else{for(var r=[],i=0;i<n.parts.length;i++)r.push(a(n.parts[i]));u[n.id]={id:n.id,refs:1,parts:r}}}}function r(){var t=document.createElement("style");return t.type="text/css",f.appendChild(t),t}function a(t){var e,n,o=document.querySelector("style["+y+'~="'+t.id+'"]');if(o){if(v)return m;o.parentNode.removeChild(o)}if(b){var i=h++;o=d||(d=r()),e=s.bind(null,o,i,!1),n=s.bind(null,o,i,!0)}else o=r(),e=c.bind(null,o),n=function(){o.parentNode.removeChild(o)};return e(t),function(o){if(o){if(o.css===t.css&&o.media===t.media&&o.sourceMap===t.sourceMap)return;e(t=o)}else n()}}function s(t,e,n,o){var i=n?"":o.css;if(t.styleSheet)t.styleSheet.cssText=x(e,i);else{var r=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function c(t,e){var n=e.css,o=e.media,i=e.sourceMap;if(o&&t.setAttribute("media",o),g.ssrId&&t.setAttribute(y,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var p=n(25),l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u={},f=l&&(document.head||document.getElementsByTagName("head")[0]),d=null,h=0,v=!1,m=function(){},g=null,y="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase()),x=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var o=n(18),i=n(17),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a={data:function(){return{model:!1,modelSrc:"",crap:!1,previews:{},lists:[{img:"https://avatars2.githubusercontent.com/u/15681693?s=460&v=4"},{img:"http://cdn.xyxiao.cn/Landscape_1.jpg"},{img:"http://cdn.xyxiao.cn/Landscape_2.jpg"},{img:"http://cdn.xyxiao.cn/Landscape_3.jpg"},{img:"http://cdn.xyxiao.cn/Landscape_4.jpg"},{img:"http://cdn.xyxiao.cn/Portrait_1.jpg"},{img:"http://cdn.xyxiao.cn/Portrait_2.jpg"}],option:{img:"",size:1,full:!1,outputType:"png",canMove:!0,fixedBox:!1,original:!1,canMoveBox:!0,autoCrop:!0,autoCropWidth:200,autoCropHeight:150,centerBox:!1,high:!1,cropData:{},enlarge:1,mode:"contain",maxImgSize:2e3},example2:{img:"http://cdn.xyxiao.cn/Landscape_1.jpg",info:!0,size:1,outputType:"jpeg",canScale:!0,autoCrop:!0,autoCropWidth:300,autoCropHeight:250,fixed:!0,infoTrue:!0,fixedNumber:[4,3]},example3:{img:"http://cdn.xyxiao.cn/Landscape_1.jpg",autoCrop:!0,autoCropWidth:200,autoCropHeight:200,fixedBox:!0},downImg:"#",previewStyle1:{},previewStyle2:{},previewStyle3:{},previewStyle4:{},code0:"",code1:"",code2:"",code3:"",preview3:""}},methods:{changeImg:function(){this.option.img=this.lists[~~(Math.random()*this.lists.length)].img},startCrop:function(){this.crap=!0,this.$refs.cropper.startCrop()},stopCrop:function(){this.crap=!1,this.$refs.cropper.stopCrop()},clearCrop:function(){this.$refs.cropper.clearCrop()},refreshCrop:function(){this.$refs.cropper.refresh()},changeScale:function(t){t=t||1,this.$refs.cropper.changeScale(t)},rotateLeft:function(){this.$refs.cropper.rotateLeft()},rotateRight:function(){this.$refs.cropper.rotateRight()},finish:function(t){var e=this;"blob"===t?this.$refs.cropper.getCropBlob(function(t){var n=window.URL.createObjectURL(t);e.model=!0,e.modelSrc=n}):this.$refs.cropper.getCropData(function(t){e.model=!0,e.modelSrc=t})},realTime:function(t){var e=t;this.previewStyle1={width:e.w+"px",height:e.h+"px",overflow:"hidden",margin:"0",zoom:.5},this.previewStyle2={width:e.w+"px",height:e.h+"px",overflow:"hidden",margin:"0",zoom:.2},this.previewStyle3={width:e.w+"px",height:e.h+"px",overflow:"hidden",margin:"0",zoom:100/e.w},this.previewStyle4={width:e.w+"px",height:e.h+"px",overflow:"hidden",margin:"0",zoom:100/e.h},this.previews=t},finish2:function(t){var e=this;this.$refs.cropper2.getCropData(function(t){e.model=!0,e.modelSrc=t})},finish3:function(t){var e=this;this.$refs.cropper3.getCropData(function(t){e.model=!0,e.modelSrc=t})},down:function(t){var e=this;"blob"===t?this.$refs.cropper.getCropBlob(function(t){if(e.downImg=window.URL.createObjectURL(t),window.navigator.msSaveBlob){var n=new Blob([t]);window.navigator.msSaveBlob(n,"demo.png")}else e.$nextTick(function(){e.$refs.downloadDom.click()})}):this.$refs.cropper.getCropData(function(t){if(e.downImg=t,window.navigator.msSaveBlob){var n=new Blob([t]);window.navigator.msSaveBlob(n,"demo.png")}else e.$nextTick(function(){e.$refs.downloadDom.click()})})},uploadImg:function(t,e){var n=this,o=t.target.files[0];if(!/\.(gif|jpg|jpeg|png|bmp|GIF|JPG|PNG)$/.test(t.target.value))return alert("图片类型必须是.gif,jpeg,jpg,png,bmp中的一种"),!1;var i=new FileReader;i.onload=function(t){var o=void 0;o="object"===r(t.target.result)?window.URL.createObjectURL(new Blob([t.target.result])):t.target.result,1===e?n.option.img=o:2===e&&(n.example2.img=o)},i.readAsArrayBuffer(o)},imgLoad:function(t){console.log(t)},cropMoving:function(t){this.option.cropData=t}},components:{VueCropper:o.a,codes:i.a},mounted:function(){this.changeImg(),[].slice.call(document.querySelectorAll("pre code")).forEach(function(t,e){hljs.highlightBlock(t)}),this.code0='\n\t\t\tnpm install vue-cropper\n\t\t\t// 组件内使用\n\t\t\timport { VueCropper } from \'vue-cropper\' \n\t\t\tcomponents: {\n\t\t\t\tVueCropper,\n\t\t\t},\n\n\t\t\t// main.js里面使用\n\t\t\timport VueCropper from \'vue-cropper\' \n\n\t\t\tVue.use(VueCropper)\n\n\t\t\t// cdn方式使用\n\t\t\t<script src="vuecropper.js"><\/script>\n\t\t\tVue.use(window[\'vue-cropper\'])\n\n\t\t\t<vueCropper\n\t\t\t\tref="cropper"\n\t\t\t\t:img="option.img"\n\t\t\t\t:outputSize="option.size"\n\t\t\t\t:outputType="option.outputType"\n\t\t\t></vueCropper>\n\t\t',this.code1='\n\t\t\t<div class="show-info">\n\t\t\t\t<h2>example1 基本例子 无限制</h2>\n\t\t\t\t<div class="test test1">\n\t\t\t\t\t<vueCropper\n\t\t\t\t\t\tref="cropper"\n\t\t\t\t\t\t:img="option.img"\n\t\t\t\t\t\t:outputSize="option.size"\n\t\t\t\t\t\t:outputType="option.outputType"\n\t\t\t\t\t\t:info="true"\n\t\t\t\t\t\t:full="option.full"\n\t\t\t\t\t\t:canMove="option.canMove"\n\t\t\t\t\t\t:canMoveBox="option.canMoveBox"\n\t\t\t\t\t\t:fixedBox="option.fixedBox"\n\t\t\t\t\t\t:original="option.original"\n\t\t\t\t\t\t:autoCrop="option.autoCrop"\n\t\t\t\t\t\t:autoCropWidth="option.autoCropWidth"\n\t\t\t\t\t\t:autoCropHeight="option.autoCropHeight"\n\t\t\t\t\t\t:centerBox="option.centerBox"\n\t\t\t\t\t\t:high="option.high"\n\t\t\t\t\t\t:infoTrue="option.infoTrue"\n\t\t\t\t\t\t@realTime="realTime"\n\t\t\t\t\t\t@imgLoad="imgLoad"\n\t\t\t\t\t\t@cropMoving="cropMoving"\n\t\t\t\t\t\t:enlarge="option.enlarge"\n\t\t\t\t\t></vueCropper>\n\t\t\t\t</div>\n\t\t\t\t<div class="test-button">\n\t\t\t\t\t<button @click="changeImg" class="btn">changeImg</button>\n\t\t\t\t\t<label class="btn" for="uploads">upload</label>\n\t\t\t\t\t<input type="file" id="uploads" style="position:absolute; clip:rect(0 0 0 0);" accept="image/png, image/jpeg, image/gif, image/jpg" @change="uploadImg($event, 1)">\n\t\t\t\t\t<button @click="startCrop" v-if="!crap" class="btn">start</button>\n\t\t\t\t\t<button @click="stopCrop" v-else class="btn">stop</button>\n\t\t\t\t\t<button @click="clearCrop" class="btn">clear</button>\n\t\t\t\t\t<button @click="refreshCrop" class="btn">refresh</button>\n\t\t\t\t\t<button @click="changeScale(1)" class="btn">+</button>\n\t\t\t\t\t<button @click="changeScale(-1)" class="btn">-</button>\n\t\t\t\t\t<button @click="rotateLeft" class="btn">rotateLeft</button>\n\t\t\t\t\t<button @click="rotateRight" class="btn">rotateRight</button>\n\t\t\t\t\t<button @click="finish(\'base64\')" class="btn">preview(base64)</button>\n\t\t\t\t\t<button @click="finish(\'blob\')" class="btn">preview(blob)</button>\n\t\t\t\t\t<a @click="down(\'base64\')" class="btn">download(base64)</a>\n\t\t\t\t\t<a @click="down(\'blob\')" class="btn">download(blob)</a>\n\t\t\t\t\t<a :href="downImg" download="demo.png" ref="downloadDom"></a>\n\t\t\t\t</div>\n\n\t\t\t\t\t<p>截图框大小</p>\n\t\t\t\t\t<div class="show-preview" :style="{\'width\': previews.w + \'px\', \'height\': previews.h + \'px\', \'overflow\': \'hidden\',\n\t\t\t\t\t\t\t\'margin\': \'5px\'}">\n\t\t\t\t\t\t<div :style="previews.div">\n\t\t\t\t\t\t\t<img :src="previews.url" :style="previews.img">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t<p>中等大小</p>\n\t\t\t\t\t<div :style="previewStyle1"> \n\t\t\t\t\t\t<div :style="previews.div">\n\t\t\t\t\t\t\t<img :src="previews.url" :style="previews.img">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<p>迷你大小</p>\n\t\t\t\t\t<div :style="previewStyle2"> \n\t\t\t\t\t\t<div :style="previews.div">\n\t\t\t\t\t\t\t<img :src="previews.url" :style="previews.img">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\n\n\t\t\t\t\t<div style="display:block; width: 100%;">\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>上传图片是否显示原始宽高 (针对大图 可以铺满)</span>\n\t\t\t\t\t\t\t<input type="checkbox" v-model="option.original">\n\t\t\t\t\t\t\t<span>original: {{ option.original}}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>是否根据dpr生成适合屏幕的高清图片</span>\n\t\t\t\t\t\t\t<input type="checkbox" v-model="option.high">\n\t\t\t\t\t\t\t<span>high: {{ option.high}}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>是否输出原图比例的截图</span>\n\t\t\t\t\t\t\t<input type="checkbox" v-model="option.full">\n\t\t\t\t\t\t\t<span>full: {{ option.full}}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>截图信息展示是否是真实的输出宽高</span>\n\t\t\t\t\t\t\t<input type="checkbox" v-model="option.infoTrue">\n\t\t\t\t\t\t\t<span>infoTrue: {{ option.infoTrue}}</span>\t\t\t\t\t\t\t\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>能否拖动图片</span>\n\t\t\t\t\t\t\t<input type="checkbox" v-model="option.canMove">\n\t\t\t\t\t\t\t<span>canMove: {{ option.canMove}}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>能否拖动截图框</span>\n\t\t\t\t\t\t\t<input type="checkbox" v-model="option.canMoveBox">\n\t\t\t\t\t\t\t<span>canMoveBox: {{ option.canMoveBox}}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>截图框固定大小</span>\n\t\t\t\t\t\t\t<input type="checkbox" v-model="option.fixedBox">\n\t\t\t\t\t\t\t<span>fixedBox: {{ option.fixedBox}}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>是否自动生成截图框</span>\n\t\t\t\t\t\t\t<input type="checkbox" v-model="option.autoCrop">\n\t\t\t\t\t\t\t<span>autoCrop: {{ option.autoCrop}}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>截图框是否限制在图片里(只有在自动生成截图框时才能生效)</span>\n\t\t\t\t\t\t\t<input type="checkbox" v-model="option.centerBox">\n\t\t\t\t\t\t\t<span>centerBox: {{ option.centerBox}}</span>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<span>是否按照截图框比例输出 默认为1 </span>\n\t\t\t\t\t\t\t<input type="number" v-model="option.enlarge">\n\t\t\t\t\t\t</label>\n\t\t\t\t\t\t<p>输出图片格式</p>\n\t\t\t\t\t\t<label class="c-item">\n\t\t\t\t\t\t\t<label>jpg <input type="radio" name="type" value="jpeg" v-model="option.outputType"></label>\n\t\t\t\t\t\t\t<label>png <input type="radio" name="type" value="png" v-model="option.outputType"></label>\n\t\t\t\t\t\t\t<label>webp <input type="radio" name="type" value="webp" v-model="option.outputType"></label>\n\t\t\t\t\t\t</label>\n\t\t\t\t\t</div>\n\t\t\t\t\n\t\t\t\t<codes>\n\t\t\t\t\t<div slot="body">{{ code1 }}</div>\n\t\t\t\t</codes>\n </div>\n\t\t'}}},function(t,e,n){"use strict";e.a={data:function(){return{all:!1}},computed:{msg:function(){return this.all?"fold":"unfold"}}}},function(t,e,n){"use strict";var o=n(10);e.a={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:function(){return[1,1]}},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:Number,default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"}},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.showPreview()},cropH:function(){this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(t,e){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},autoCrop:function(t){t&&this.goAutoCrop()},autoCropWidth:function(){this.autoCrop&&this.goAutoCrop()},autoCropHeight:function(){this.autoCrop&&this.goAutoCrop()},mode:function(){this.checkedImg()},rotate:function(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{checkOrientationImage:function(t,e,n,o){var i=this,r=document.createElement("canvas"),a=r.getContext("2d");switch(a.save(),e){case 2:r.width=n,r.height=o,a.translate(n,0),a.scale(-1,1);break;case 3:r.width=n,r.height=o,a.translate(n/2,o/2),a.rotate(180*Math.PI/180),a.translate(-n/2,-o/2);break;case 4:r.width=n,r.height=o,a.translate(0,o),a.scale(1,-1);break;case 5:r.height=n,r.width=o,a.rotate(.5*Math.PI),a.scale(1,-1);break;case 6:r.width=o,r.height=n,a.translate(o/2,n/2),a.rotate(90*Math.PI/180),a.translate(-n/2,-o/2);break;case 7:r.height=n,r.width=o,a.rotate(.5*Math.PI),a.translate(n,-o),a.scale(-1,1);break;case 8:r.height=n,r.width=o,a.translate(o/2,n/2),a.rotate(-90*Math.PI/180),a.translate(-n/2,-o/2);break;default:r.width=n,r.height=o}a.drawImage(t,0,0,n,o),a.restore(),r.toBlob(function(t){var e=URL.createObjectURL(t);i.imgs=e},"image/"+this.outputType,1)},checkedImg:function(){var t=this;if(""!==this.img){this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();var e=new Image;if(e.onload=function(){if(""===t.img)return t.$emit("imgLoad","error"),t.$emit("img-load","error"),!1;var n=e.width,i=e.height;o.a.getData(e).then(function(o){t.orientation=o.orientation||1;var r=t.maxImgSize;if(!t.orientation&&n<r&i<r)return void(t.imgs=t.img);n>r&&(i=i/n*r,n=r),i>r&&(n=n/i*r,i=r),t.checkOrientationImage(e,t.orientation,n,i)})},e.onerror=function(){t.$emit("imgLoad","error"),t.$emit("img-load","error")},"data"!==this.img.substr(0,4)&&(e.crossOrigin=""),this.isIE){var n=new XMLHttpRequest;n.onload=function(){var t=URL.createObjectURL(this.response);e.src=t},n.open("GET",this.img,!0),n.responseType="blob",n.send()}else e.src=this.img}},startMove:function(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=(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.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.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 n=this.scale,o={x:this.touches[0].clientX,y:this.touches[0].clientY},i={x:t.touches[0].clientX,y:t.touches[0].clientY},r={x:this.touches[1].clientX,y:this.touches[1].clientY},a={x:t.touches[1].clientX,y:t.touches[1].clientY},s=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),c=Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2)),p=c-s,l=1;l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth,l=l>.1?.1:l;var u=l*p;if(!this.touchNow){if(this.touchNow=!0,p>0?n+=Math.abs(u):p<0&&n>Math.abs(u)&&(n-=Math.abs(u)),this.touches=t.touches,setTimeout(function(){e.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,n))return!1;this.scale=n}},cancelTouchScale: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.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;var n=t.clientX?t.clientX:t.touches[0].clientX,o=t.clientY?t.clientY:t.touches[0].clientY,i=void 0,r=void 0;i=n-this.moveX,r=o-this.moveY,this.$nextTick(function(){if(e.centerBox){var t=e.getImgAxis(i,r,e.scale),n=e.getCropAxis(),o=e.trueHeight*e.scale,a=e.trueWidth*e.scale,s=void 0,c=void 0,p=void 0,l=void 0;switch(e.rotate){case 1:case-1:case 3:case-3:s=e.cropOffsertX-e.trueWidth*(1-e.scale)/2+(o-a)/2,c=e.cropOffsertY-e.trueHeight*(1-e.scale)/2+(a-o)/2,p=s-o+e.cropW,l=c-a+e.cropH;break;default:s=e.cropOffsertX-e.trueWidth*(1-e.scale)/2,c=e.cropOffsertY-e.trueHeight*(1-e.scale)/2,p=s-a+e.cropW,l=c-o+e.cropH}t.x1>=n.x1&&(i=s),t.y1>=n.y1&&(r=c),t.x2<=n.x2&&(i=p),t.y2<=n.y2&&(r=l)}e.x=i,e.y=r,e.$emit("imgMoving",{moving:!0,axis:e.getImgAxis()}),e.$emit("img-moving",{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()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg:function(){this.canScale&&window.addEventListener(this.support,this.changeSize,{passive:!1})},cancelScale:function(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize:function(t){var e=this;t.preventDefault();var n=this.scale,o=t.deltaY||t.wheelDelta;o=navigator.userAgent.indexOf("Firefox")>0?30*o:o,this.isIE&&(o=-o);var i=this.coe;i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth;var r=i*o;r<0?n+=Math.abs(r):n>Math.abs(r)&&(n-=Math.abs(r));var a=r<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,n))return!1;this.scale=n},changeScale:function(t){var e=this.scale;t=t||1;var n=20;if(n=n/this.trueWidth>n/this.trueHeight?n/this.trueHeight:n/this.trueWidth,t*=n,t>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 n=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=n-e.cropX,i=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 r=e.cropW/e.fixedNumber[0]*e.fixedNumber[1];r+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=r,e.cropOffsertY=e.cropOffsertY}else i>0?(e.cropH=i+e.cropChangeY>e.h?e.h-e.cropChangeY:i,e.cropOffsertY=e.cropChangeY):(e.cropH=e.h-e.cropChangeY+Math.abs(i)>e.h?e.cropChangeY:Math.abs(i),e.cropOffsertY=e.cropChangeY+i>0?e.cropChangeY+i:0)})},changeCropSize:function(t,e,n,o,i){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=n,this.changeCropTypeX=o,this.changeCropTypeY=i,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 n=t.clientX?t.clientX:t.touches?t.touches[0].clientX:0,o=t.clientY?t.clientY:t.touches?t.touches[0].clientY:0,i=this.w,r=this.h,a=0,s=0;if(this.centerBox){var c=this.getImgAxis(),p=c.x2,l=c.y2;a=c.x1>0?c.x1:0,s=c.y1>0?c.y1:0,i>p&&(i=p),r>l&&(r=l)}this.$nextTick(function(){var t=n-e.cropX,c=o-e.cropY;if(e.canChangeX&&(1===e.changeCropTypeX?e.cropOldW-t>0?(e.cropW=i-e.cropChangeX-t<=i-a?e.cropOldW-t:e.cropOldW+e.cropChangeX-a,e.cropOffsertX=i-e.cropChangeX-t<=i-a?e.cropChangeX+t:a):(e.cropW=Math.abs(t)+e.cropChangeX<=i?Math.abs(t)-e.cropOldW:i-e.cropOldW-e.cropChangeX,e.cropOffsertX=e.cropChangeX+e.cropOldW):2===e.changeCropTypeX&&(e.cropOldW+t>0?(e.cropW=e.cropOldW+t+e.cropOffsertX<=i?e.cropOldW+t:i-e.cropOffsertX,e.cropOffsertX=e.cropChangeX):(e.cropW=i-e.cropChangeX+Math.abs(t+e.cropOldW)<=i-a?Math.abs(t+e.cropOldW):e.cropChangeX-a,e.cropOffsertX=i-e.cropChangeX+Math.abs(t+e.cropOldW)<=i-a?e.cropChangeX-Math.abs(t+e.cropOldW):a))),e.canChangeY&&(1===e.changeCropTypeY?e.cropOldH-c>0?(e.cropH=r-e.cropChangeY-c<=r-s?e.cropOldH-c:e.cropOldH+e.cropChangeY-s,e.cropOffsertY=r-e.cropChangeY-c<=r-s?e.cropChangeY+c:s):(e.cropH=Math.abs(c)+e.cropChangeY<=r?Math.abs(c)-e.cropOldH:r-e.cropOldH-e.cropChangeY,e.cropOffsertY=e.cropChangeY+e.cropOldH):2===e.changeCropTypeY&&(e.cropOldH+c>0?(e.cropH=e.cropOldH+c+e.cropOffsertY<=r?e.cropOldH+c:r-e.cropOffsertY,e.cropOffsertY=e.cropChangeY):(e.cropH=r-e.cropChangeY+Math.abs(c+e.cropOldH)<=r-s?Math.abs(c+e.cropOldH):e.cropChangeY-s,e.cropOffsertY=r-e.cropChangeY+Math.abs(c+e.cropOldH)<=r-s?e.cropChangeY-Math.abs(c+e.cropOldH):s))),e.canChangeX&&e.fixed){var p=e.cropW/e.fixedNumber[0]*e.fixedNumber[1];p+e.cropOffsertY>r?(e.cropH=r-e.cropOffsertY,e.cropW=e.cropH/e.fixedNumber[1]*e.fixedNumber[0]):e.cropH=p}if(e.canChangeY&&e.fixed){var l=e.cropH/e.fixedNumber[1]*e.fixedNumber[0];l+e.cropOffsertX>i?(e.cropW=i-e.cropOffsertX,e.cropH=e.cropW/e.fixedNumber[0]*e.fixedNumber[1]):e.cropW=l}})},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=t.clientX?t.clientX:t.touches[0].clientX,n=t.clientY?t.clientY:t.touches[0].clientY,o=void 0,i=void 0;o=e-this.cropOffsertX,i=n-this.cropOffsertY,this.cropX=o,this.cropY=i,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop:function(t,e){var n=this,o=0,i=0;t&&(t.preventDefault(),o=t.clientX?t.clientX:t.touches[0].clientX,i=t.clientY?t.clientY:t.touches[0].clientY),this.$nextTick(function(){var t=void 0,r=void 0,a=o-n.cropX,s=i-n.cropY;if(e&&(a=n.cropOffsertX,s=n.cropOffsertY),t=a<=0?0:a+n.cropW>n.w?n.w-n.cropW:a,r=s<=0?0:s+n.cropH>n.h?n.h-n.cropH:s,n.centerBox){var c=n.getImgAxis();t<=c.x1&&(t=c.x1),t+n.cropW>c.x2&&(t=c.x2-n.cropW),r<=c.y1&&(r=c.y1),r+n.cropH>c.y2&&(r=c.y2-n.cropH)}n.cropOffsertX=t,n.cropOffsertY=r,n.$emit("cropMoving",{moving:!0,axis:n.getCropAxis()}),n.$emit("crop-moving",{moving:!0,axis:n.getCropAxis()})})},getImgAxis:function(t,e,n){t=t||this.x,e=e||this.y,n=n||this.scale;var o={x1:0,x2:0,y1:0,y2:0},i=this.trueWidth*n,r=this.trueHeight*n;switch(this.rotate){case 0:o.x1=t+this.trueWidth*(1-n)/2,o.x2=o.x1+this.trueWidth*n,o.y1=e+this.trueHeight*(1-n)/2,o.y2=o.y1+this.trueHeight*n;break;case 1:case-1:case 3:case-3:o.x1=t+this.trueWidth*(1-n)/2+(i-r)/2,o.x2=o.x1+this.trueHeight*n,o.y1=e+this.trueHeight*(1-n)/2+(r-i)/2,o.y2=o.y1+this.trueWidth*n;break;default:o.x1=t+this.trueWidth*(1-n)/2,o.x2=o.x1+this.trueWidth*n,o.y1=e+this.trueHeight*(1-n)/2,o.y2=o.y1+this.trueHeight*n}return o},getCropAxis:function(){var t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop:function(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked:function(t){function e(t,e){o.width=Math.round(t),o.height=Math.round(e)}var n=this,o=document.createElement("canvas"),i=new Image,r=this.rotate,a=this.trueWidth,s=this.trueHeight,c=this.cropOffsertX,p=this.cropOffsertY;i.onload=function(){if(0!==n.cropW){var l=o.getContext("2d"),u=1;n.high&!n.full&&(u=window.devicePixelRatio),1!==n.enlarge&!n.full&&(u=Math.abs(Number(n.enlarge)),console.log(u));var f=n.cropW*u,d=n.cropH*u,h=a*n.scale*u,v=s*n.scale*u,m=(n.x-c+n.trueWidth*(1-n.scale)/2)*u,g=(n.y-p+n.trueHeight*(1-n.scale)/2)*u;switch(e(f,d),l.save(),r){case 0:n.full?(e(f/n.scale,d/n.scale),l.drawImage(i,m/n.scale,g/n.scale,h/n.scale,v/n.scale)):l.drawImage(i,m,g,h,v);break;case 1:case-3:n.full?(e(f/n.scale,d/n.scale),m=m/n.scale+(h/n.scale-v/n.scale)/2,g=g/n.scale+(v/n.scale-h/n.scale)/2,l.rotate(90*r*Math.PI/180),l.drawImage(i,g,-m-v/n.scale,h/n.scale,v/n.scale)):(m+=(h-v)/2,g+=(v-h)/2,l.rotate(90*r*Math.PI/180),l.drawImage(i,g,-m-v,h,v));break;case 2:case-2:n.full?(e(f/n.scale,d/n.scale),l.rotate(90*r*Math.PI/180),m/=n.scale,g/=n.scale,l.drawImage(i,-m-h/n.scale,-g-v/n.scale,h/n.scale,v/n.scale)):(l.rotate(90*r*Math.PI/180),l.drawImage(i,-m-h,-g-v,h,v));break;case 3:case-1:n.full?(e(f/n.scale,d/n.scale),m=m/n.scale+(h/n.scale-v/n.scale)/2,g=g/n.scale+(v/n.scale-h/n.scale)/2,l.rotate(90*r*Math.PI/180),l.drawImage(i,-g-h/n.scale,m,h/n.scale,v/n.scale)):(m+=(h-v)/2,g+=(v-h)/2,l.rotate(90*r*Math.PI/180),l.drawImage(i,-g-h,m,h,v));break;default:n.full?(e(f/n.scale,d/n.scale),l.drawImage(i,m/n.scale,g/n.scale,h/n.scale,v/n.scale)):l.drawImage(i,m,g,h,v)}l.restore()}else{var y=a*n.scale,b=s*n.scale,x=o.getContext("2d");switch(x.save(),r){case 0:e(y,b),x.drawImage(i,0,0,y,b);break;case 1:case-3:e(b,y),x.rotate(90*r*Math.PI/180),x.drawImage(i,0,-b,y,b);break;case 2:case-2:e(y,b),x.rotate(90*r*Math.PI/180),x.drawImage(i,-y,-b,y,b);break;case 3:case-1:e(b,y),x.rotate(90*r*Math.PI/180),x.drawImage(i,-y,0,y,b);break;default:e(y,b),x.drawImage(i,0,0,y,b)}x.restore()}t(o)},"data"!==this.img.substr(0,4)&&(i.crossOrigin="Anonymous"),i.src=this.imgs},getCropData:function(t){var e=this;this.getCropChecked(function(n){t(n.toDataURL("image/"+e.outputType,e.outputSize))})},getCropBlob:function(t){var e=this;this.getCropChecked(function(n){n.toBlob(function(e){return t(e)},"image/"+e.outputType,e.outputSize)})},showPreview:function(){var t=this;if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout(function(){t.isCanShow=!0},16);var e=this.cropW,n=this.cropH,o=this.scale,i={};i.div={width:e+"px",height:n+"px"};var r=(this.x-this.cropOffsertX)/o,a=(this.y-this.cropOffsertY)/o;i.w=e,i.h=n,i.url=this.imgs,i.img={width:this.trueWidth+"px",height:this.trueHeight+"px",transform:"scale("+o+")translate3d("+r+"px, "+a+"px, 0px)rotateZ("+90*this.rotate+"deg)"},i.html='\n <div class="show-preview" style="width: '+i.w+"px; height: "+i.h+'px,; overflow: hidden">\n <div style="width: '+e+"px; height: "+n+'px">\n <img src='+i.url+' style="width: '+this.trueWidth+"px; height: "+this.trueHeight+"px; transform:\n scale("+o+")translate3d("+r+"px, "+a+"px, 0px)rotateZ("+90*this.rotate+'deg)">\n </div>\n </div>',this.$emit("realTime",i),this.$emit("real-time",i)},reload:function(){var t=this,e=new Image;e.onload=function(){t.w=parseFloat(window.getComputedStyle(t.$refs.cropper).width),t.h=parseFloat(window.getComputedStyle(t.$refs.cropper).height),t.trueWidth=e.width,t.trueHeight=e.height,t.original?t.scale=1:t.scale=t.checkedMode(),t.$nextTick(function(){t.x=-(t.trueWidth-t.trueWidth*t.scale)/2+(t.w-t.trueWidth*t.scale)/2,t.y=-(t.trueHeight-t.trueHeight*t.scale)/2+(t.h-t.trueHeight*t.scale)/2,t.loading=!1,t.autoCrop&&t.goAutoCrop(),t.$emit("img-load","success"),t.$emit("imgLoad","success"),setTimeout(function(){t.showPreview()},20)})},e.onerror=function(){t.$emit("imgLoad","error"),t.$emit("img-load","error")},e.src=this.imgs},checkedMode:function(){var t=1,e=this.trueWidth,n=this.trueHeight,o=this.mode.split(" ");switch(o[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":e=this.w,t=e/this.trueWidth,n*=t,n<this.h&&(n=this.h,t=n/this.trueHeight);break;default:try{var i=o[0];if(-1!==i.search("px")&&(i=i.replace("px",""),e=parseFloat(i),t=e/this.trueWidth),-1!==i.search("%")&&(i=i.replace("%",""),e=parseFloat(i)/100*this.w,t=e/this.trueWidth),2===o.length&&"auto"===i){var r=o[1];-1!==r.search("px")&&(r=r.replace("px",""),n=parseFloat(r),t=n/this.trueHeight),-1!==r.search("%")&&(r=r.replace("%",""),n=parseFloat(r)/100*this.h,t=n/this.trueHeight)}}catch(e){t=1}}return t},goAutoCrop:function(t,e){this.clearCrop(),this.cropping=!0;var n=this.w,o=this.h;if(this.centerBox){var i=this.trueWidth*this.scale,r=this.trueHeight*this.scale;n=i<n?i:n,o=r<o?r:o}var a=t||parseFloat(this.autoCropWidth),s=e||parseFloat(this.autoCropHeight);0!==a&&0!==s||(a=.8*n,s=.8*o),a=a>n?n:a,s=s>o?o:s,this.fixed&&(s=a/this.fixedNumber[0]*this.fixedNumber[1]),s>this.h&&(s=this.h,a=s/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(a,s)},changeCrop:function(t,e){var n=this;if(this.centerBox){var o=this.getImgAxis();t>o.x2-o.x1&&(t=o.x2-o.x1,e=t/this.fixedNumber[0]*this.fixedNumber[1]),e>o.y2-o.y1&&(e=o.y2-o.y1,t=e/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.cropOffsertX=(this.w-t)/2,this.cropOffsertY=(this.h-e)/2,this.centerBox&&this.$nextTick(function(){n.moveCrop(null,!0)})},refresh:function(){var t=this;this.img;this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick(function(){t.checkedImg()})},rotateLeft:function(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight:function(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear:function(){this.rotate=0},checkoutImgAxis:function(t,e,n){t=t||this.x,e=e||this.y,n=n||this.scale;var o=!0;if(this.centerBox){var i=this.getImgAxis(t,e,n),r=this.getCropAxis();i.x1>=r.x1&&(o=!1),i.x2<=r.x2&&(o=!1),i.y1>=r.y1&&(o=!1),i.y2<=r.y2&&(o=!1)}return o}},mounted:function(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";var t=this,e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,n,o){for(var i=atob(this.toDataURL(n,o).split(",")[1]),r=i.length,a=new Uint8Array(r),s=0;s<r;s++)a[s]=i.charCodeAt(s);e(new Blob([a],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed:function(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop)}}},function(t,e,n){"use strict";function o(t){n(24)}var i=n(4),r=n(20),a=n(1),s=o,c=n.i(a.a)(i.a,r.a,r.b,!1,s,null,null);e.a=c.exports},function(t,e,n){"use strict";(function(t,n){function o(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function r(t){return!0===t}function a(t){return!1===t}function s(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function c(t){return null!==t&&"object"==typeof t}function p(t){return"[object Object]"===bo.call(t)}function l(t){return"[object RegExp]"===bo.call(t)}function u(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function f(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function d(t){var e=parseFloat(t);return isNaN(e)?t:e}function h(t,e){for(var n=Object.create(null),o=t.split(","),i=0;i<o.length;i++)n[o[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}function v(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}function m(t,e){return wo.call(t,e)}function g(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function y(t,e){function n(n){var o=arguments.length;return o?o>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function b(t,e){return t.bind(e)}function x(t,e){e=e||0;for(var n=t.length-e,o=new Array(n);n--;)o[n]=t[n+e];return o}function w(t,e){for(var n in e)t[n]=e[n];return t}function _(t){for(var e={},n=0;n<t.length;n++)t[n]&&w(e,t[n]);return e}function C(t,e,n){}function k(t,e){if(t===e)return!0;var n=c(t),o=c(e);if(!n||!o)return!n&&!o&&String(t)===String(e);try{var i=Array.isArray(t),r=Array.isArray(e);if(i&&r)return t.length===e.length&&t.every(function(t,n){return k(t,e[n])});if(i||r)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every(function(n){return k(t[n],e[n])})}catch(t){return!1}}function A(t,e){for(var n=0;n<t.length;n++)if(k(t[n],e))return n;return-1}function $(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function O(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function S(t,e,n,o){Object.defineProperty(t,e,{value:n,enumerable:!!o,writable:!0,configurable:!0})}function T(t){if(!Bo.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}function I(t){return"function"==typeof t&&/native code/.test(t.toString())}function M(t){ti.target&&ei.push(ti.target),ti.target=t}function E(){ti.target=ei.pop()}function L(t){return new ni(void 0,void 0,void 0,String(t))}function B(t){var e=new ni(t.tag,t.data,t.children,t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.isCloned=!0,e}function H(t){ci=t}function j(t,e,n){t.__proto__=e}function N(t,e,n){for(var o=0,i=n.length;o<i;o++){var r=n[o];S(t,r,e[r])}}function W(t,e){if(c(t)&&!(t instanceof ni)){var n;return m(t,"__ob__")&&t.__ob__ instanceof pi?n=t.__ob__:ci&&!Go()&&(Array.isArray(t)||p(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new pi(t)),e&&n&&n.vmCount++,n}}function X(t,e,n,o,i){var r=new ti,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get;s||2!==arguments.length||(n=t[e]);var c=a&&a.set,p=!i&&W(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return ti.target&&(r.depend(),p&&(p.dep.depend(),Array.isArray(e)&&z(e))),e},set:function(e){var o=s?s.call(t):n;e===o||e!==e&&o!==o||(c?c.call(t,e):n=e,p=!i&&W(e),r.notify())}})}}function P(t,e,n){if(Array.isArray(t)&&u(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var o=t.__ob__;return t._isVue||o&&o.vmCount?n:o?(X(o.value,e,n),o.dep.notify(),n):(t[e]=n,n)}function Y(t,e){if(Array.isArray(t)&&u(e))return void t.splice(e,1);var n=t.__ob__;t._isVue||n&&n.vmCount||m(t,e)&&(delete t[e],n&&n.dep.notify())}function z(t){for(var e=void 0,n=0,o=t.length;n<o;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&z(e)}function D(t,e){if(!e)return t;for(var n,o,i,r=Object.keys(e),a=0;a<r.length;a++)n=r[a],o=t[n],i=e[n],m(t,n)?p(o)&&p(i)&&D(o,i):P(t,n,i);return t}function U(t,e,n){return n?function(){var o="function"==typeof e?e.call(n,n):e,i="function"==typeof t?t.call(n,n):t;return o?D(o,i):i}:e?t?function(){return D("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function R(t,e){return e?t?t.concat(e):Array.isArray(e)?e:[e]:t}function F(t,e,n,o){var i=Object.create(t||null);return e?w(i,e):i}function V(t,e){var n=t.props;if(n){var o,i,r,a={};if(Array.isArray(n))for(o=n.length;o--;)"string"==typeof(i=n[o])&&(r=Co(i),a[r]={type:null});else if(p(n))for(var s in n)i=n[s],r=Co(s),a[r]=p(i)?i:{type:i};t.props=a}}function q(t,e){var n=t.inject;if(n){var o=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)o[n[i]]={from:n[i]};else if(p(n))for(var r in n){var a=n[r];o[r]=p(a)?w({from:r},a):{from:a}}}}function G(t){var e=t.directives;if(e)for(var n in e){var o=e[n];"function"==typeof o&&(e[n]={bind:o,update:o})}}function Z(t,e,n){function o(o){var i=li[o]||di;c[o]=i(t[o],e[o],n,o)}"function"==typeof e&&(e=e.options),V(e,n),q(e,n),G(e);var i=e.extends;if(i&&(t=Z(t,i,n)),e.mixins)for(var r=0,a=e.mixins.length;r<a;r++)t=Z(t,e.mixins[r],n);var s,c={};for(s in t)o(s);for(s in e)m(t,s)||o(s);return c}function K(t,e,n,o){if("string"==typeof n){var i=t[e];if(m(i,n))return i[n];var r=Co(n);if(m(i,r))return i[r];var a=ko(r);if(m(i,a))return i[a];return i[n]||i[r]||i[a]}}function J(t,e,n,o){var i=e[t],r=!m(n,t),a=n[t],s=nt(Boolean,i.type);if(s>-1)if(r&&!m(i,"default"))a=!1;else if(""===a||a===$o(t)){var c=nt(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=Q(o,i,t);var p=ci;H(!0),W(a),H(p)}return a}function Q(t,e,n){if(m(e,"default")){var o=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"==typeof o&&"Function"!==tt(e.type)?o.call(t):o}}function tt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function et(t,e){return tt(t)===tt(e)}function nt(t,e){if(!Array.isArray(e))return et(e,t)?0:-1;for(var n=0,o=e.length;n<o;n++)if(et(e[n],t))return n;return-1}function ot(t,e,n){if(e)for(var o=e;o=o.$parent;){var i=o.$options.errorCaptured;if(i)for(var r=0;r<i.length;r++)try{var a=!1===i[r].call(o,t,e,n);if(a)return}catch(t){it(t,o,"errorCaptured hook")}}it(t,e,n)}function it(t,e,n){if(Lo.errorHandler)try{return Lo.errorHandler.call(null,t,e,n)}catch(t){rt(t,null,"config.errorHandler")}rt(t,e,n)}function rt(t,e,n){if(!jo&&!No||"undefined"==typeof console)throw t;console.error(t)}function at(){vi=!1;var t=hi.slice(0);hi.length=0;for(var e=0;e<t.length;e++)t[e]()}function st(t){return t._withTask||(t._withTask=function(){mi=!0;var e=t.apply(null,arguments);return mi=!1,e})}function ct(t,e){var n;if(hi.push(function(){if(t)try{t.call(e)}catch(t){ot(t,e,"nextTick")}else n&&n(e)}),vi||(vi=!0,mi?fi():ui()),!t&&"undefined"!=typeof Promise)return new Promise(function(t){n=t})}function pt(t){lt(t,wi),wi.clear()}function lt(t,e){var n,o,i=Array.isArray(t);if(!(!i&&!c(t)||Object.isFrozen(t)||t instanceof ni)){if(t.__ob__){var r=t.__ob__.dep.id;if(e.has(r))return;e.add(r)}if(i)for(n=t.length;n--;)lt(t[n],e);else for(o=Object.keys(t),n=o.length;n--;)lt(t[o[n]],e)}}function ut(t){function e(){var t=arguments,n=e.fns;if(!Array.isArray(n))return n.apply(null,arguments);for(var o=n.slice(),i=0;i<o.length;i++)o[i].apply(null,t)}return e.fns=t,e}function ft(t,e,n,i,r){var a,s,c,p;for(a in t)s=t[a],c=e[a],p=_i(a),o(s)||(o(c)?(o(s.fns)&&(s=t[a]=ut(s)),n(p.name,s,p.once,p.capture,p.passive,p.params)):s!==c&&(c.fns=s,t[a]=c));for(a in e)o(t[a])&&(p=_i(a),i(p.name,e[a],p.capture))}function dt(t,e,n){function a(){n.apply(this,arguments),v(s.fns,a)}t instanceof ni&&(t=t.data.hook||(t.data.hook={}));var s,c=t[e];o(c)?s=ut([a]):i(c.fns)&&r(c.merged)?(s=c,s.fns.push(a)):s=ut([c,a]),s.merged=!0,t[e]=s}function ht(t,e,n){var r=e.options.props;if(!o(r)){var a={},s=t.attrs,c=t.props;if(i(s)||i(c))for(var p in r){var l=$o(p);vt(a,c,p,l,!0)||vt(a,s,p,l,!1)}return a}}function vt(t,e,n,o,r){if(i(e)){if(m(e,n))return t[n]=e[n],r||delete e[n],!0;if(m(e,o))return t[n]=e[o],r||delete e[o],!0}return!1}function mt(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function gt(t){return s(t)?[L(t)]:Array.isArray(t)?bt(t):void 0}function yt(t){return i(t)&&i(t.text)&&a(t.isComment)}function bt(t,e){var n,a,c,p,l=[];for(n=0;n<t.length;n++)a=t[n],o(a)||"boolean"==typeof a||(c=l.length-1,p=l[c],Array.isArray(a)?a.length>0&&(a=bt(a,(e||"")+"_"+n),yt(a[0])&&yt(p)&&(l[c]=L(p.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?yt(p)?l[c]=L(p.text+a):""!==a&&l.push(L(a)):yt(a)&&yt(p)?l[c]=L(p.text+a.text):(r(t._isVList)&&i(a.tag)&&o(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),l.push(a)));return l}function xt(t,e){return(t.__esModule||Ko&&"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t)?e.extend(t):t}function wt(t,e,n,o,i){var r=ii();return r.asyncFactory=t,r.asyncMeta={data:e,context:n,children:o,tag:i},r}function _t(t,e,n){if(r(t.error)&&i(t.errorComp))return t.errorComp;if(i(t.resolved))return t.resolved;if(r(t.loading)&&i(t.loadingComp))return t.loadingComp;if(!i(t.contexts)){var a=t.contexts=[n],s=!0,p=function(){for(var t=0,e=a.length;t<e;t++)a[t].$forceUpdate()},l=$(function(n){t.resolved=xt(n,e),s||p()}),u=$(function(e){i(t.errorComp)&&(t.error=!0,p())}),f=t(l,u);return c(f)&&("function"==typeof f.then?o(t.resolved)&&f.then(l,u):i(f.component)&&"function"==typeof f.component.then&&(f.component.then(l,u),i(f.error)&&(t.errorComp=xt(f.error,e)),i(f.loading)&&(t.loadingComp=xt(f.loading,e),0===f.delay?t.loading=!0:setTimeout(function(){o(t.resolved)&&o(t.error)&&(t.loading=!0,p())},f.delay||200)),i(f.timeout)&&setTimeout(function(){o(t.resolved)&&u(null)},f.timeout))),s=!1,t.loading?t.loadingComp:t.resolved}t.contexts.push(n)}function Ct(t){return t.isComment&&t.asyncFactory}function kt(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(i(n)&&(i(n.componentOptions)||Ct(n)))return n}}function At(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&St(t,e)}function $t(t,e,n){n?xi.$once(t,e):xi.$on(t,e)}function Ot(t,e){xi.$off(t,e)}function St(t,e,n){xi=t,ft(e,n||{},$t,Ot,t),xi=void 0}function Tt(t,e){var n={};if(!t)return n;for(var o=0,i=t.length;o<i;o++){var r=t[o],a=r.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,r.context!==e&&r.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(r);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===r.tag?c.push.apply(c,r.children||[]):c.push(r)}}for(var p in n)n[p].every(It)&&delete n[p];return n}function It(t){return t.isComment&&!t.asyncFactory||" "===t.text}function Mt(t,e){e=e||{};for(var n=0;n<t.length;n++)Array.isArray(t[n])?Mt(t[n],e):e[t[n].key]=t[n].fn;return e}function Et(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function Lt(t,e,n){t.$el=e,t.$options.render||(t.$options.render=ii),Wt(t,"beforeMount");var o;return o=function(){t._update(t._render(),n)},new Mi(t,o,C,null,!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Wt(t,"mounted")),t}function Bt(t,e,n,o,i){var r=!!(i||t.$options._renderChildren||o.data.scopedSlots||t.$scopedSlots!==yo);if(t.$options._parentVnode=o,t.$vnode=o,t._vnode&&(t._vnode.parent=o),t.$options._renderChildren=i,t.$attrs=o.data.attrs||yo,t.$listeners=n||yo,e&&t.$options.props){H(!1);for(var a=t._props,s=t.$options._propKeys||[],c=0;c<s.length;c++){var p=s[c],l=t.$options.props;a[p]=J(p,l,e,t)}H(!0),t.$options.propsData=e}n=n||yo;var u=t.$options._parentListeners;t.$options._parentListeners=n,St(t,n,u),r&&(t.$slots=Tt(i,o.context),t.$forceUpdate())}function Ht(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function jt(t,e){if(e){if(t._directInactive=!1,Ht(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)jt(t.$children[n]);Wt(t,"activated")}}function Nt(t,e){if(!(e&&(t._directInactive=!0,Ht(t))||t._inactive)){t._inactive=!0;for(var n=0;n<t.$children.length;n++)Nt(t.$children[n]);Wt(t,"deactivated")}}function Wt(t,e){M();var n=t.$options[e];if(n)for(var o=0,i=n.length;o<i;o++)try{n[o].call(t)}catch(n){ot(n,t,e+" hook")}t._hasHookEvent&&t.$emit("hook:"+e),E()}function Xt(){Ti=ki.length=Ai.length=0,$i={},Oi=Si=!1}function Pt(){Si=!0;var t,e;for(ki.sort(function(t,e){return t.id-e.id}),Ti=0;Ti<ki.length;Ti++)t=ki[Ti],e=t.id,$i[e]=null,t.run();var n=Ai.slice(),o=ki.slice();Xt(),Dt(n),Yt(o),Zo&&Lo.devtools&&Zo.emit("flush")}function Yt(t){for(var e=t.length;e--;){var n=t[e],o=n.vm;o._watcher===n&&o._isMounted&&Wt(o,"updated")}}function zt(t){t._inactive=!1,Ai.push(t)}function Dt(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,jt(t[e],!0)}function Ut(t){var e=t.id;if(null==$i[e]){if($i[e]=!0,Si){for(var n=ki.length-1;n>Ti&&ki[n].id>t.id;)n--;ki.splice(n+1,0,t)}else ki.push(t);Oi||(Oi=!0,ct(Pt))}}function Rt(t,e,n){Ei.get=function(){return this[e][n]},Ei.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Ei)}function Ft(t){t._watchers=[];var e=t.$options;e.props&&Vt(t,e.props),e.methods&&Qt(t,e.methods),e.data?qt(t):W(t._data={},!0),e.computed&&Zt(t,e.computed),e.watch&&e.watch!==Uo&&te(t,e.watch)}function Vt(t,e){var n=t.$options.propsData||{},o=t._props={},i=t.$options._propKeys=[];!t.$parent||H(!1);for(var r in e)!function(r){i.push(r);var a=J(r,e,n,t);X(o,r,a),r in t||Rt(t,"_props",r)}(r);H(!0)}function qt(t){var e=t.$options.data;e=t._data="function"==typeof e?Gt(e,t):e||{},p(e)||(e={});for(var n=Object.keys(e),o=t.$options.props,i=(t.$options.methods,n.length);i--;){var r=n[i];o&&m(o,r)||O(r)||Rt(t,"_data",r)}W(e,!0)}function Gt(t,e){M();try{return t.call(e,e)}catch(t){return ot(t,e,"data()"),{}}finally{E()}}function Zt(t,e){var n=t._computedWatchers=Object.create(null),o=Go();for(var i in e){var r=e[i],a="function"==typeof r?r:r.get;o||(n[i]=new Mi(t,a||C,C,Li)),i in t||Kt(t,i,r)}}function Kt(t,e,n){var o=!Go();"function"==typeof n?(Ei.get=o?Jt(e):n,Ei.set=C):(Ei.get=n.get?o&&!1!==n.cache?Jt(e):n.get:C,Ei.set=n.set?n.set:C),Object.defineProperty(t,e,Ei)}function Jt(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ti.target&&e.depend(),e.value}}function Qt(t,e){t.$options.props;for(var n in e)t[n]=null==e[n]?C:Oo(e[n],t)}function te(t,e){for(var n in e){var o=e[n];if(Array.isArray(o))for(var i=0;i<o.length;i++)ee(t,n,o[i]);else ee(t,n,o)}}function ee(t,e,n,o){return p(n)&&(o=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,o)}function ne(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}function oe(t){var e=ie(t.$options.inject,t);e&&(H(!1),Object.keys(e).forEach(function(n){X(t,n,e[n])}),H(!0))}function ie(t,e){if(t){for(var n=Object.create(null),o=Ko?Reflect.ownKeys(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}):Object.keys(t),i=0;i<o.length;i++){for(var r=o[i],a=t[r].from,s=e;s;){if(s._provided&&m(s._provided,a)){n[r]=s._provided[a];break}s=s.$parent}if(!s&&"default"in t[r]){var c=t[r].default;n[r]="function"==typeof c?c.call(e):c}}return n}}function re(t,e){var n,o,r,a,s;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),o=0,r=t.length;o<r;o++)n[o]=e(t[o],o);else if("number"==typeof t)for(n=new Array(t),o=0;o<t;o++)n[o]=e(o+1,o);else if(c(t))for(a=Object.keys(t),n=new Array(a.length),o=0,r=a.length;o<r;o++)s=a[o],n[o]=e(t[s],s,o);return i(n)&&(n._isVList=!0),n}function ae(t,e,n,o){var i,r=this.$scopedSlots[t];if(r)n=n||{},o&&(n=w(w({},o),n)),i=r(n)||e;else{var a=this.$slots[t];a&&(a._rendered=!0),i=a||e}var s=n&&n.slot;return s?this.$createElement("template",{slot:s},i):i}function se(t){return K(this.$options,"filters",t,!0)||To}function ce(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function pe(t,e,n,o,i){var r=Lo.keyCodes[e]||n;return i&&o&&!Lo.keyCodes[e]?ce(i,o):r?ce(r,t):o?$o(o)!==e:void 0}function le(t,e,n,o,i){if(n)if(c(n)){Array.isArray(n)&&(n=_(n));var r;for(var a in n)!function(a){if("class"===a||"style"===a||xo(a))r=t;else{var s=t.attrs&&t.attrs.type;r=o||Lo.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}if(!(a in r)&&(r[a]=n[a],i)){(t.on||(t.on={}))["update:"+a]=function(t){n[a]=t}}}(a)}else;return t}function ue(t,e){var n=this._staticTrees||(this._staticTrees=[]),o=n[t];return o&&!e?o:(o=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),de(o,"__static__"+t,!1),o)}function fe(t,e,n){return de(t,"__once__"+e+(n?"_"+n:""),!0),t}function de(t,e,n){if(Array.isArray(t))for(var o=0;o<t.length;o++)t[o]&&"string"!=typeof t[o]&&he(t[o],e+"_"+o,n);else he(t,e,n)}function he(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function ve(t,e){if(e)if(p(e)){var n=t.on=t.on?w({},t.on):{};for(var o in e){var i=n[o],r=e[o];n[o]=i?[].concat(i,r):r}}else;return t}function me(t){t._o=fe,t._n=d,t._s=f,t._l=re,t._t=ae,t._q=k,t._i=A,t._m=ue,t._f=se,t._k=pe,t._b=le,t._v=L,t._e=ii,t._u=Mt,t._g=ve}function ge(t,e,n,o,i){var a,s=i.options;m(o,"_uid")?(a=Object.create(o),a._original=o):(a=o,o=o._original);var c=r(s._compiled),p=!c;this.data=t,this.props=e,this.children=n,this.parent=o,this.listeners=t.on||yo,this.injections=ie(s.inject,o),this.slots=function(){return Tt(n,o)},c&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=t.scopedSlots||yo),s._scopeId?this._c=function(t,e,n,i){var r=Ae(a,t,e,n,i,p);return r&&!Array.isArray(r)&&(r.fnScopeId=s._scopeId,r.fnContext=o),r}:this._c=function(t,e,n,o){return Ae(a,t,e,n,o,p)}}function ye(t,e,n,o,r){var a=t.options,s={},c=a.props;if(i(c))for(var p in c)s[p]=J(p,c,e||yo);else i(n.attrs)&&xe(s,n.attrs),i(n.props)&&xe(s,n.props);var l=new ge(n,s,r,o,t),u=a.render.call(null,l._c,l);if(u instanceof ni)return be(u,n,l.parent,a);if(Array.isArray(u)){for(var f=gt(u)||[],d=new Array(f.length),h=0;h<f.length;h++)d[h]=be(f[h],n,l.parent,a);return d}}function be(t,e,n,o){var i=B(t);return i.fnContext=n,i.fnOptions=o,e.slot&&((i.data||(i.data={})).slot=e.slot),i}function xe(t,e){for(var n in e)t[Co(n)]=e[n]}function we(t,e,n,a,s){if(!o(t)){var p=n.$options._base;if(c(t)&&(t=p.extend(t)),"function"==typeof t){var l;if(o(t.cid)&&(l=t,void 0===(t=_t(l,p,n))))return wt(l,e,n,a,s);e=e||{},Me(t),i(e.model)&&ke(t.options,e);var u=ht(e,t,s);if(r(t.options.functional))return ye(t,u,e,n,a);var f=e.on;if(e.on=e.nativeOn,r(t.options.abstract)){var d=e.slot;e={},d&&(e.slot=d)}Ce(e);var h=t.options.name||s;return new ni("vue-component-"+t.cid+(h?"-"+h:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:u,listeners:f,tag:s,children:a},l)}}}function _e(t,e,n,o){var r={_isComponent:!0,parent:e,_parentVnode:t,_parentElm:n||null,_refElm:o||null},a=t.data.inlineTemplate;return i(a)&&(r.render=a.render,r.staticRenderFns=a.staticRenderFns),new t.componentOptions.Ctor(r)}function Ce(t){for(var e=t.hook||(t.hook={}),n=0;n<Hi.length;n++){var o=Hi[n];e[o]=Bi[o]}}function ke(t,e){var n=t.model&&t.model.prop||"value",o=t.model&&t.model.event||"input";(e.props||(e.props={}))[n]=e.model.value;var r=e.on||(e.on={});i(r[o])?r[o]=[e.model.callback].concat(r[o]):r[o]=e.model.callback}function Ae(t,e,n,o,i,a){return(Array.isArray(n)||s(n))&&(i=o,o=n,n=void 0),r(a)&&(i=Ni),$e(t,e,n,o,i)}function $e(t,e,n,o,r){if(i(n)&&i(n.__ob__))return ii();if(i(n)&&i(n.is)&&(e=n.is),!e)return ii();Array.isArray(o)&&"function"==typeof o[0]&&(n=n||{},n.scopedSlots={default:o[0]},o.length=0),r===Ni?o=gt(o):r===ji&&(o=mt(o));var a,s;if("string"==typeof e){var c;s=t.$vnode&&t.$vnode.ns||Lo.getTagNamespace(e),a=Lo.isReservedTag(e)?new ni(Lo.parsePlatformTagName(e),n,o,void 0,void 0,t):i(c=K(t.$options,"components",e))?we(c,n,t,o,e):new ni(e,n,o,void 0,void 0,t)}else a=we(e,n,t,o);return Array.isArray(a)?a:i(a)?(i(s)&&Oe(a,s),i(n)&&Se(n),a):ii()}function Oe(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),i(t.children))for(var a=0,s=t.children.length;a<s;a++){var c=t.children[a];i(c.tag)&&(o(c.ns)||r(n)&&"svg"!==c.tag)&&Oe(c,e,n)}}function Se(t){c(t.style)&&pt(t.style),c(t.class)&&pt(t.class)}function Te(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,o=n&&n.context;t.$slots=Tt(e._renderChildren,o),t.$scopedSlots=yo,t._c=function(e,n,o,i){return Ae(t,e,n,o,i,!1)},t.$createElement=function(e,n,o,i){return Ae(t,e,n,o,i,!0)};var i=n&&n.data;X(t,"$attrs",i&&i.attrs||yo,null,!0),X(t,"$listeners",e._parentListeners||yo,null,!0)}function Ie(t,e){var n=t.$options=Object.create(t.constructor.options),o=e._parentVnode;n.parent=e.parent,n._parentVnode=o,n._parentElm=e._parentElm,n._refElm=e._refElm;var i=o.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function Me(t){var e=t.options;if(t.super){var n=Me(t.super);if(n!==t.superOptions){t.superOptions=n;var o=Ee(t);o&&w(t.extendOptions,o),e=t.options=Z(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function Ee(t){var e,n=t.options,o=t.extendOptions,i=t.sealedOptions;for(var r in n)n[r]!==i[r]&&(e||(e={}),e[r]=Le(n[r],o[r],i[r]));return e}function Le(t,e,n){if(Array.isArray(t)){var o=[];n=Array.isArray(n)?n:[n],e=Array.isArray(e)?e:[e];for(var i=0;i<t.length;i++)(e.indexOf(t[i])>=0||n.indexOf(t[i])<0)&&o.push(t[i]);return o}return t}function Be(t){this._init(t)}function He(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=x(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}function je(t){t.mixin=function(t){return this.options=Z(this.options,t),this}}function Ne(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,o=n.cid,i=t._Ctor||(t._Ctor={});if(i[o])return i[o];var r=t.name||n.options.name,a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Z(n.options,t),a.super=n,a.options.props&&We(a),a.options.computed&&Xe(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,Mo.forEach(function(t){a[t]=n[t]}),r&&(a.options.components[r]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=w({},a.options),i[o]=a,a}}function We(t){var e=t.options.props;for(var n in e)Rt(t.prototype,"_props",n)}function Xe(t){var e=t.options.computed;for(var n in e)Kt(t.prototype,n,e[n])}function Pe(t){Mo.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&p(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function Ye(t){return t&&(t.Ctor.options.name||t.tag)}function ze(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!l(t)&&t.test(e)}function De(t,e){var n=t.cache,o=t.keys,i=t._vnode;for(var r in n){var a=n[r];if(a){var s=Ye(a.componentOptions);s&&!e(s)&&Ue(n,r,o,i)}}}function Ue(t,e,n,o){var i=t[e];!i||o&&i.tag===o.tag||i.componentInstance.$destroy(),t[e]=null,v(n,e)}function Re(t){for(var e=t.data,n=t,o=t;i(o.componentInstance);)(o=o.componentInstance._vnode)&&o.data&&(e=Fe(o.data,e));for(;i(n=n.parent);)n&&n.data&&(e=Fe(e,n.data));return Ve(e.staticClass,e.class)}function Fe(t,e){return{staticClass:qe(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Ve(t,e){return i(t)||i(e)?qe(t,Ge(e)):""}function qe(t,e){return t?e?t+" "+e:t:e||""}function Ge(t){return Array.isArray(t)?Ze(t):c(t)?Ke(t):"string"==typeof t?t:""}function Ze(t){for(var e,n="",o=0,r=t.length;o<r;o++)i(e=Ge(t[o]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function Ke(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}function Je(t){return er(t)?"svg":"math"===t?"math":void 0}function Qe(t){if(!jo)return!0;if(nr(t))return!1;if(t=t.toLowerCase(),null!=or[t])return or[t];var e=document.createElement(t);return t.indexOf("-")>-1?or[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:or[t]=/HTMLUnknownElement/.test(e.toString())}function tn(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function en(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function nn(t,e){return document.createElementNS(Qi[t],e)}function on(t){return document.createTextNode(t)}function rn(t){return document.createComment(t)}function an(t,e,n){t.insertBefore(e,n)}function sn(t,e){t.removeChild(e)}function cn(t,e){t.appendChild(e)}function pn(t){return t.parentNode}function ln(t){return t.nextSibling}function un(t){return t.tagName}function fn(t,e){t.textContent=e}function dn(t,e){t.setAttribute(e,"")}function hn(t,e){var n=t.data.ref;if(i(n)){var o=t.context,r=t.componentInstance||t.elm,a=o.$refs;e?Array.isArray(a[n])?v(a[n],r):a[n]===r&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(r)<0&&a[n].push(r):a[n]=[r]:a[n]=r}}function vn(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&mn(t,e)||r(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&o(e.asyncFactory.error))}function mn(t,e){if("input"!==t.tag)return!0;var n,o=i(n=t.data)&&i(n=n.attrs)&&n.type,r=i(n=e.data)&&i(n=n.attrs)&&n.type;return o===r||ir(o)&&ir(r)}function gn(t,e,n){var o,r,a={};for(o=e;o<=n;++o)r=t[o].key,i(r)&&(a[r]=o);return a}function yn(t,e){(t.data.directives||e.data.directives)&&bn(t,e)}function bn(t,e){var n,o,i,r=t===sr,a=e===sr,s=xn(t.data.directives,t.context),c=xn(e.data.directives,e.context),p=[],l=[];for(n in c)o=s[n],i=c[n],o?(i.oldValue=o.value,_n(i,"update",e,t),i.def&&i.def.componentUpdated&&l.push(i)):(_n(i,"bind",e,t),i.def&&i.def.inserted&&p.push(i));if(p.length){var u=function(){for(var n=0;n<p.length;n++)_n(p[n],"inserted",e,t)};r?dt(e,"insert",u):u()}if(l.length&&dt(e,"postpatch",function(){for(var n=0;n<l.length;n++)_n(l[n],"componentUpdated",e,t)}),!r)for(n in s)c[n]||_n(s[n],"unbind",t,t,a)}function xn(t,e){var n=Object.create(null);if(!t)return n;var o,i;for(o=0;o<t.length;o++)i=t[o],i.modifiers||(i.modifiers=lr),n[wn(i)]=i,i.def=K(e.$options,"directives",i.name,!0);return n}function wn(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function _n(t,e,n,o,i){var r=t.def&&t.def[e];if(r)try{r(n.elm,t,n,o,i)}catch(o){ot(o,n.context,"directive "+t.name+" "+e+" hook")}}function Cn(t,e){var n=e.componentOptions;if(!(i(n)&&!1===n.Ctor.options.inheritAttrs||o(t.data.attrs)&&o(e.data.attrs))){var r,a,s=e.elm,c=t.data.attrs||{},p=e.data.attrs||{};i(p.__ob__)&&(p=e.data.attrs=w({},p));for(r in p)a=p[r],c[r]!==a&&kn(s,r,a);(Po||zo)&&p.value!==c.value&&kn(s,"value",p.value);for(r in c)o(p[r])&&(Zi(r)?s.removeAttributeNS(Gi,Ki(r)):Vi(r)||s.removeAttribute(r))}}function kn(t,e,n){t.tagName.indexOf("-")>-1?An(t,e,n):qi(e)?Ji(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Vi(e)?t.setAttribute(e,Ji(n)||"false"===n?"false":"true"):Zi(e)?Ji(n)?t.removeAttributeNS(Gi,Ki(e)):t.setAttributeNS(Gi,e,n):An(t,e,n)}function An(t,e,n){if(Ji(n))t.removeAttribute(e);else{if(Po&&!Yo&&"TEXTAREA"===t.tagName&&"placeholder"===e&&!t.__ieph){var o=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",o)};t.addEventListener("input",o),t.__ieph=!0}t.setAttribute(e,n)}}function $n(t,e){var n=e.elm,r=e.data,a=t.data;if(!(o(r.staticClass)&&o(r.class)&&(o(a)||o(a.staticClass)&&o(a.class)))){var s=Re(e),c=n._transitionClasses;i(c)&&(s=qe(s,Ge(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}function On(t){if(i(t[hr])){var e=Po?"change":"input";t[e]=[].concat(t[hr],t[e]||[]),delete t[hr]}i(t[vr])&&(t.change=[].concat(t[vr],t.change||[]),delete t[vr])}function Sn(t,e,n){var o=zi;return function i(){null!==t.apply(null,arguments)&&In(e,i,n,o)}}function Tn(t,e,n,o,i){e=st(e),n&&(e=Sn(e,t,o)),zi.addEventListener(t,e,Ro?{capture:o,passive:i}:o)}function In(t,e,n,o){(o||zi).removeEventListener(t,e._withTask||e,n)}function Mn(t,e){if(!o(t.data.on)||!o(e.data.on)){var n=e.data.on||{},i=t.data.on||{};zi=e.elm,On(n),ft(n,i,Tn,In,e.context),zi=void 0}}function En(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,r,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};i(c.__ob__)&&(c=e.data.domProps=w({},c));for(n in s)o(c[n])&&(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n){a._value=r;var p=o(r)?"":String(r);Ln(a,p)&&(a.value=p)}else a[n]=r}}}function Ln(t,e){return!t.composing&&("OPTION"===t.tagName||Bn(t,e)||Hn(t,e))}function Bn(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}function Hn(t,e){var n=t.value,o=t._vModifiers;if(i(o)){if(o.lazy)return!1;if(o.number)return d(n)!==d(e);if(o.trim)return n.trim()!==e.trim()}return n!==e}function jn(t){var e=Nn(t.style);return t.staticStyle?w(t.staticStyle,e):e}function Nn(t){return Array.isArray(t)?_(t):"string"==typeof t?yr(t):t}function Wn(t,e){var n,o={};if(e)for(var i=t;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=jn(i.data))&&w(o,n);(n=jn(t.data))&&w(o,n);for(var r=t;r=r.parent;)r.data&&(n=jn(r.data))&&w(o,n);return o}function Xn(t,e){var n=e.data,r=t.data;if(!(o(n.staticStyle)&&o(n.style)&&o(r.staticStyle)&&o(r.style))){var a,s,c=e.elm,p=r.staticStyle,l=r.normalizedStyle||r.style||{},u=p||l,f=Nn(e.data.style)||{};e.data.normalizedStyle=i(f.__ob__)?w({},f):f;var d=Wn(e,!0);for(s in u)o(d[s])&&wr(c,s,"");for(s in d)(a=d[s])!==u[s]&&wr(c,s,null==a?"":a)}}function Pn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Yn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",o=" "+e+" ";n.indexOf(o)>=0;)n=n.replace(o," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function zn(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&w(e,Ar(t.name||"v")),w(e,t),e}return"string"==typeof t?Ar(t):void 0}}function Dn(t){Lr(function(){Lr(t)})}function Un(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Pn(t,e))}function Rn(t,e){t._transitionClasses&&v(t._transitionClasses,e),Yn(t,e)}function Fn(t,e,n){var o=Vn(t,e),i=o.type,r=o.timeout,a=o.propCount;if(!i)return n();var s=i===Or?Ir:Er,c=0,p=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&p()};setTimeout(function(){c<a&&p()},r+1),t.addEventListener(s,l)}function Vn(t,e){var n,o=window.getComputedStyle(t),i=o[Tr+"Delay"].split(", "),r=o[Tr+"Duration"].split(", "),a=qn(i,r),s=o[Mr+"Delay"].split(", "),c=o[Mr+"Duration"].split(", "),p=qn(s,c),l=0,u=0;return e===Or?a>0&&(n=Or,l=a,u=r.length):e===Sr?p>0&&(n=Sr,l=p,u=c.length):(l=Math.max(a,p),n=l>0?a>p?Or:Sr:null,u=n?n===Or?r.length:c.length:0),{type:n,timeout:l,propCount:u,hasTransform:n===Or&&Br.test(o[Tr+"Property"])}}function qn(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,n){return Gn(e)+Gn(t[n])}))}function Gn(t){return 1e3*Number(t.slice(0,-1))}function Zn(t,e){var n=t.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=zn(t.data.transition);if(!o(r)&&!i(n._enterCb)&&1===n.nodeType){for(var a=r.css,s=r.type,p=r.enterClass,l=r.enterToClass,u=r.enterActiveClass,f=r.appearClass,h=r.appearToClass,v=r.appearActiveClass,m=r.beforeEnter,g=r.enter,y=r.afterEnter,b=r.enterCancelled,x=r.beforeAppear,w=r.appear,_=r.afterAppear,C=r.appearCancelled,k=r.duration,A=Ci,O=Ci.$vnode;O&&O.parent;)O=O.parent,A=O.context;var S=!A._isMounted||!t.isRootInsert;if(!S||w||""===w){var T=S&&f?f:p,I=S&&v?v:u,M=S&&h?h:l,E=S?x||m:m,L=S&&"function"==typeof w?w:g,B=S?_||y:y,H=S?C||b:b,j=d(c(k)?k.enter:k),N=!1!==a&&!Yo,W=Qn(L),X=n._enterCb=$(function(){N&&(Rn(n,M),Rn(n,I)),X.cancelled?(N&&Rn(n,T),H&&H(n)):B&&B(n),n._enterCb=null});t.data.show||dt(t,"insert",function(){var e=n.parentNode,o=e&&e._pending&&e._pending[t.key];o&&o.tag===t.tag&&o.elm._leaveCb&&o.elm._leaveCb(),L&&L(n,X)}),E&&E(n),N&&(Un(n,T),Un(n,I),Dn(function(){Rn(n,T),X.cancelled||(Un(n,M),W||(Jn(j)?setTimeout(X,j):Fn(n,s,X)))})),t.data.show&&(e&&e(),L&&L(n,X)),N||W||X()}}}function Kn(t,e){function n(){C.cancelled||(t.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[t.key]=t),h&&h(r),x&&(Un(r,l),Un(r,f),Dn(function(){Rn(r,l),C.cancelled||(Un(r,u),w||(Jn(_)?setTimeout(C,_):Fn(r,p,C)))})),v&&v(r,C),x||w||C())}var r=t.elm;i(r._enterCb)&&(r._enterCb.cancelled=!0,r._enterCb());var a=zn(t.data.transition);if(o(a)||1!==r.nodeType)return e();if(!i(r._leaveCb)){var s=a.css,p=a.type,l=a.leaveClass,u=a.leaveToClass,f=a.leaveActiveClass,h=a.beforeLeave,v=a.leave,m=a.afterLeave,g=a.leaveCancelled,y=a.delayLeave,b=a.duration,x=!1!==s&&!Yo,w=Qn(v),_=d(c(b)?b.leave:b),C=r._leaveCb=$(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[t.key]=null),x&&(Rn(r,u),Rn(r,f)),C.cancelled?(x&&Rn(r,l),g&&g(r)):(e(),m&&m(r)),r._leaveCb=null});y?y(n):n()}}function Jn(t){return"number"==typeof t&&!isNaN(t)}function Qn(t){if(o(t))return!1;var e=t.fns;return i(e)?Qn(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function to(t,e){!0!==e.data.show&&Zn(e)}function eo(t,e,n){no(t,e,n),(Po||zo)&&setTimeout(function(){no(t,e,n)},0)}function no(t,e,n){var o=e.value,i=t.multiple;if(!i||Array.isArray(o)){for(var r,a,s=0,c=t.options.length;s<c;s++)if(a=t.options[s],i)r=A(o,io(a))>-1,a.selected!==r&&(a.selected=r);else if(k(io(a),o))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function oo(t,e){return e.every(function(e){return!k(e,t)})}function io(t){return"_value"in t?t._value:t.value}function ro(t){t.target.composing=!0}function ao(t){t.target.composing&&(t.target.composing=!1,so(t.target,"input"))}function so(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function co(t){return!t.componentInstance||t.data&&t.data.transition?t:co(t.componentInstance._vnode)}function po(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?po(kt(e.children)):t}function lo(t){var e={},n=t.$options;for(var o in n.propsData)e[o]=t[o];var i=n._parentListeners;for(var r in i)e[Co(r)]=i[r];return e}function uo(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function fo(t){for(;t=t.parent;)if(t.data.transition)return!0}function ho(t,e){return e.key===t.key&&e.tag===t.tag}function vo(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function mo(t){t.data.newPos=t.elm.getBoundingClientRect()}function go(t){var e=t.data.pos,n=t.data.newPos,o=e.left-n.left,i=e.top-n.top;if(o||i){t.data.moved=!0;var r=t.elm.style;r.transform=r.WebkitTransform="translate("+o+"px,"+i+"px)",r.transitionDuration="0s"}}/*!
* Vue.js v2.5.17
* (c) 2014-2018 Evan You
* Released under the MIT License.
*/
var yo=Object.freeze({}),bo=Object.prototype.toString,xo=(h("slot,component",!0),h("key,ref,slot,slot-scope,is")),wo=Object.prototype.hasOwnProperty,_o=/-(\w)/g,Co=g(function(t){return t.replace(_o,function(t,e){return e?e.toUpperCase():""})}),ko=g(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),Ao=/\B([A-Z])/g,$o=g(function(t){return t.replace(Ao,"-$1").toLowerCase()}),Oo=Function.prototype.bind?b:y,So=function(t,e,n){return!1},To=function(t){return t},Io="data-server-rendered",Mo=["component","directive","filter"],Eo=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],Lo={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:So,isReservedAttr:So,isUnknownElement:So,getTagNamespace:C,parsePlatformTagName:To,mustUseProp:So,_lifecycleHooks:Eo},Bo=/[^\w.$]/,Ho="__proto__"in{},jo="undefined"!=typeof window,No="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,Wo=No&&WXEnvironment.platform.toLowerCase(),Xo=jo&&window.navigator.userAgent.toLowerCase(),Po=Xo&&/msie|trident/.test(Xo),Yo=Xo&&Xo.indexOf("msie 9.0")>0,zo=Xo&&Xo.indexOf("edge/")>0,Do=(Xo&&Xo.indexOf("android"),Xo&&/iphone|ipad|ipod|ios/.test(Xo)||"ios"===Wo),Uo=(Xo&&/chrome\/\d+/.test(Xo),{}.watch),Ro=!1;if(jo)try{var Fo={};Object.defineProperty(Fo,"passive",{get:function(){Ro=!0}}),window.addEventListener("test-passive",null,Fo)}catch(t){}var Vo,qo,Go=function(){return void 0===Vo&&(Vo=!jo&&!No&&void 0!==t&&"server"===t.process.env.VUE_ENV),Vo},Zo=jo&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Ko="undefined"!=typeof Symbol&&I(Symbol)&&"undefined"!=typeof Reflect&&I(Reflect.ownKeys);qo="undefined"!=typeof Set&&I(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var Jo=C,Qo=0,ti=function(){this.id=Qo++,this.subs=[]};ti.prototype.addSub=function(t){this.subs.push(t)},ti.prototype.removeSub=function(t){v(this.subs,t)},ti.prototype.depend=function(){ti.target&&ti.target.addDep(this)},ti.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e<n;e++)t[e].update()},ti.target=null;var ei=[],ni=function(t,e,n,o,i,r,a,s){this.tag=t,this.data=e,this.children=n,this.text=o,this.elm=i,this.ns=void 0,this.context=r,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},oi={child:{configurable:!0}};oi.child.get=function(){return this.componentInstance},Object.defineProperties(ni.prototype,oi);var ii=function(t){void 0===t&&(t="");var e=new ni;return e.text=t,e.isComment=!0,e},ri=Array.prototype,ai=Object.create(ri);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=ri[t];S(ai,t,function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];var i,r=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),r})});var si=Object.getOwnPropertyNames(ai),ci=!0,pi=function(t){if(this.value=t,this.dep=new ti,this.vmCount=0,S(t,"__ob__",this),Array.isArray(t)){(Ho?j:N)(t,ai,si),this.observeArray(t)}else this.walk(t)};pi.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)X(t,e[n])},pi.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)W(t[e])};var li=Lo.optionMergeStrategies;li.data=function(t,e,n){return n?U(t,e,n):e&&"function"!=typeof e?t:U(t,e)},Eo.forEach(function(t){li[t]=R}),Mo.forEach(function(t){li[t+"s"]=F}),li.watch=function(t,e,n,o){if(t===Uo&&(t=void 0),e===Uo&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};w(i,t);for(var r in e){var a=i[r],s=e[r];a&&!Array.isArray(a)&&(a=[a]),i[r]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},li.props=li.methods=li.inject=li.computed=function(t,e,n,o){if(!t)return e;var i=Object.create(null);return w(i,t),e&&w(i,e),i},li.provide=U;var ui,fi,di=function(t,e){return void 0===e?t:e},hi=[],vi=!1,mi=!1;if(void 0!==n&&I(n))fi=function(){n(at)};else if("undefined"==typeof MessageChannel||!I(MessageChannel)&&"[object MessageChannelConstructor]"!==MessageChannel.toString())fi=function(){setTimeout(at,0)};else{var gi=new MessageChannel,yi=gi.port2;gi.port1.onmessage=at,fi=function(){yi.postMessage(1)}}if("undefined"!=typeof Promise&&I(Promise)){var bi=Promise.resolve();ui=function(){bi.then(at),Do&&setTimeout(C)}}else ui=fi;var xi,wi=new qo,_i=g(function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var o="!"===t.charAt(0);return t=o?t.slice(1):t,{name:t,once:n,capture:o,passive:e}}),Ci=null,ki=[],Ai=[],$i={},Oi=!1,Si=!1,Ti=0,Ii=0,Mi=function(t,e,n,o,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),o?(this.deep=!!o.deep,this.user=!!o.user,this.lazy=!!o.lazy,this.sync=!!o.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Ii,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new qo,this.newDepIds=new qo,this.expression="","function"==typeof e?this.getter=e:(this.getter=T(e),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};Mi.prototype.get=function(){M(this);var t,e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;ot(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&pt(t),E(),this.cleanupDeps()}return t},Mi.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},Mi.prototype.cleanupDeps=function(){for(var t=this,e=this.deps.length;e--;){var n=t.deps[e];t.newDepIds.has(n.id)||n.removeSub(t)}var o=this.depIds;this.depIds=this.newDepIds,this.newDepIds=o,this.newDepIds.clear(),o=this.deps,this.deps=this.newDeps,this.newDeps=o,this.newDeps.length=0},Mi.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Ut(this)},Mi.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){ot(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},Mi.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Mi.prototype.depend=function(){for(var t=this,e=this.deps.length;e--;)t.deps[e].depend()},Mi.prototype.teardown=function(){var t=this;if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var e=this.deps.length;e--;)t.deps[e].removeSub(t);this.active=!1}};var Ei={enumerable:!0,configurable:!0,get:C,set:C},Li={lazy:!0};me(ge.prototype);var Bi={init:function(t,e,n,o){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var i=t;Bi.prepatch(i,i)}else{(t.componentInstance=_e(t,Ci,n,o)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions;Bt(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,Wt(n,"mounted")),t.data.keepAlive&&(e._isMounted?zt(n):jt(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Nt(e,!0):e.$destroy())}},Hi=Object.keys(Bi),ji=1,Ni=2,Wi=0;!function(t){t.prototype._init=function(t){var e=this;e._uid=Wi++,e._isVue=!0,t&&t._isComponent?Ie(e,t):e.$options=Z(Me(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Et(e),At(e),Te(e),Wt(e,"beforeCreate"),oe(e),Ft(e),ne(e),Wt(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(Be),function(t){var e={};e.get=function(){return this._data};var n={};n.get=function(){return this._props},Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=P,t.prototype.$delete=Y,t.prototype.$watch=function(t,e,n){var o=this;if(p(e))return ee(o,t,e,n);n=n||{},n.user=!0;var i=new Mi(o,t,e,n);return n.immediate&&e.call(o,i.value),function(){i.teardown()}}}(Be),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var o=this,i=this;if(Array.isArray(t))for(var r=0,a=t.length;r<a;r++)o.$on(t[r],n);else(i._events[t]||(i._events[t]=[])).push(n),e.test(t)&&(i._hasHookEvent=!0);return i},t.prototype.$once=function(t,e){function n(){o.$off(t,n),e.apply(o,arguments)}var o=this;return n.fn=e,o.$on(t,n),o},t.prototype.$off=function(t,e){var n=this,o=this;if(!arguments.length)return o._events=Object.create(null),o;if(Array.isArray(t)){for(var i=0,r=t.length;i<r;i++)n.$off(t[i],e);return o}var a=o._events[t];if(!a)return o;if(!e)return o._events[t]=null,o;if(e)for(var s,c=a.length;c--;)if((s=a[c])===e||s.fn===e){a.splice(c,1);break}return o},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?x(n):n;for(var o=x(arguments,1),i=0,r=n.length;i<r;i++)try{n[i].apply(e,o)}catch(n){ot(n,e,'event handler for "'+t+'"')}}return e}}(Be),function(t){t.prototype._update=function(t,e){var n=this;n._isMounted&&Wt(n,"beforeUpdate");var o=n.$el,i=n._vnode,r=Ci;Ci=n,n._vnode=t,i?n.$el=n.__patch__(i,t):(n.$el=n.__patch__(n.$el,t,e,!1,n.$options._parentElm,n.$options._refElm),n.$options._parentElm=n.$options._refElm=null),Ci=r,o&&(o.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Wt(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||v(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Wt(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(Be),function(t){me(t.prototype),t.prototype.$nextTick=function(t){return ct(t,this)},t.prototype._render=function(){var t=this,e=t.$options,n=e.render,o=e._parentVnode;o&&(t.$scopedSlots=o.data.scopedSlots||yo),t.$vnode=o;var i;try{i=n.call(t._renderProxy,t.$createElement)}catch(e){ot(e,t,"render"),i=t._vnode}return i instanceof ni||(i=ii()),i.parent=o,i}}(Be);var Xi=[String,RegExp,Array],Pi={name:"keep-alive",abstract:!0,props:{include:Xi,exclude:Xi,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){var t=this;for(var e in t.cache)Ue(t.cache,e,t.keys)},mounted:function(){var t=this;this.$watch("include",function(e){De(t,function(t){return ze(e,t)})}),this.$watch("exclude",function(e){De(t,function(t){return!ze(e,t)})})},render:function(){var t=this.$slots.default,e=kt(t),n=e&&e.componentOptions;if(n){var o=Ye(n),i=this,r=i.include,a=i.exclude;if(r&&(!o||!ze(r,o))||a&&o&&ze(a,o))return e;var s=this,c=s.cache,p=s.keys,l=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;c[l]?(e.componentInstance=c[l].componentInstance,v(p,l),p.push(l)):(c[l]=e,p.push(l),this.max&&p.length>parseInt(this.max)&&Ue(c,p[0],p,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Yi={KeepAlive:Pi};!function(t){var e={};e.get=function(){return Lo},Object.defineProperty(t,"config",e),t.util={warn:Jo,extend:w,mergeOptions:Z,defineReactive:X},t.set=P,t.delete=Y,t.nextTick=ct,t.options=Object.create(null),Mo.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,w(t.options.components,Yi),He(t),je(t),Ne(t),Pe(t)}(Be),Object.defineProperty(Be.prototype,"$isServer",{get:Go}),Object.defineProperty(Be.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Be,"FunctionalRenderContext",{value:ge}),Be.version="2.5.17";var zi,Di,Ui=h("style,class"),Ri=h("input,textarea,option,select,progress"),Fi=function(t,e,n){return"value"===n&&Ri(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Vi=h("contenteditable,draggable,spellcheck"),qi=h("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Gi="http://www.w3.org/1999/xlink",Zi=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Ki=function(t){return Zi(t)?t.slice(6,t.length):""},Ji=function(t){return null==t||!1===t},Qi={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},tr=h("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),er=h("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),nr=function(t){return tr(t)||er(t)},or=Object.create(null),ir=h("text,number,password,search,email,tel,url"),rr=Object.freeze({createElement:en,createElementNS:nn,createTextNode:on,createComment:rn,insertBefore:an,removeChild:sn,appendChild:cn,parentNode:pn,nextSibling:ln,tagName:un,setTextContent:fn,setStyleScope:dn}),ar={create:function(t,e){hn(e)},update:function(t,e){t.data.ref!==e.data.ref&&(hn(t,!0),hn(e))},destroy:function(t){hn(t,!0)}},sr=new ni("",{},[]),cr=["create","activate","update","remove","destroy"],pr={create:yn,update:yn,destroy:function(t){yn(t,sr)}},lr=Object.create(null),ur=[ar,pr],fr={create:Cn,update:Cn},dr={create:$n,update:$n},hr="__r",vr="__c",mr={create:Mn,update:Mn},gr={create:En,update:En},yr=g(function(t){var e={},n=/;(?![^(]*\))/g,o=/:(.+)/;return t.split(n).forEach(function(t){if(t){var n=t.split(o);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}),br=/^--/,xr=/\s*!important$/,wr=function(t,e,n){if(br.test(e))t.style.setProperty(e,n);else if(xr.test(n))t.style.setProperty(e,n.replace(xr,""),"important");else{var o=Cr(e);if(Array.isArray(n))for(var i=0,r=n.length;i<r;i++)t.style[o]=n[i];else t.style[o]=n}},_r=["Webkit","Moz","ms"],Cr=g(function(t){if(Di=Di||document.createElement("div").style,"filter"!==(t=Co(t))&&t in Di)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<_r.length;n++){var o=_r[n]+e;if(o in Di)return o}}),kr={create:Xn,update:Xn},Ar=g(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),$r=jo&&!Yo,Or="transition",Sr="animation",Tr="transition",Ir="transitionend",Mr="animation",Er="animationend";$r&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Tr="WebkitTransition",Ir="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Mr="WebkitAnimation",Er="webkitAnimationEnd"));var Lr=jo?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()},Br=/\b(transform|all)(,|$)/,Hr=jo?{create:to,activate:to,remove:function(t,e){!0!==t.data.show?Kn(t,e):e()}}:{},jr=[fr,dr,mr,gr,kr,Hr],Nr=jr.concat(ur),Wr=function(t){function e(t){return new ni(M.tagName(t).toLowerCase(),{},[],void 0,t)}function n(t,e){function n(){0==--n.listeners&&a(t)}return n.listeners=e,n}function a(t){var e=M.parentNode(t);i(e)&&M.removeChild(e,t)}function c(t,e,n,o,a,s,c){if(i(t.elm)&&i(s)&&(t=s[c]=B(t)),t.isRootInsert=!a,!p(t,e,n,o)){var l=t.data,u=t.children,h=t.tag;i(h)?(t.elm=t.ns?M.createElementNS(t.ns,h):M.createElement(h,t),g(t),d(t,u,e),i(l)&&m(t,e),f(n,t.elm,o)):r(t.isComment)?(t.elm=M.createComment(t.text),f(n,t.elm,o)):(t.elm=M.createTextNode(t.text),f(n,t.elm,o))}}function p(t,e,n,o){var a=t.data;if(i(a)){var s=i(t.componentInstance)&&a.keepAlive;if(i(a=a.hook)&&i(a=a.init)&&a(t,!1,n,o),i(t.componentInstance))return l(t,e),r(s)&&u(t,e,n,o),!0}}function l(t,e){i(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,v(t)?(m(t,e),g(t)):(hn(t),e.push(t))}function u(t,e,n,o){for(var r,a=t;a.componentInstance;)if(a=a.componentInstance._vnode,i(r=a.data)&&i(r=r.transition)){for(r=0;r<T.activate.length;++r)T.activate[r](sr,a);e.push(a);break}f(n,t.elm,o)}function f(t,e,n){i(t)&&(i(n)?n.parentNode===t&&M.insertBefore(t,e,n):M.appendChild(t,e))}function d(t,e,n){if(Array.isArray(e))for(var o=0;o<e.length;++o)c(e[o],n,t.elm,null,!0,e,o);else s(t.text)&&M.appendChild(t.elm,M.createTextNode(String(t.text)))}function v(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return i(t.tag)}function m(t,e){for(var n=0;n<T.create.length;++n)T.create[n](sr,t);O=t.data.hook,i(O)&&(i(O.create)&&O.create(sr,t),i(O.insert)&&e.push(t))}function g(t){var e;if(i(e=t.fnScopeId))M.setStyleScope(t.elm,e);else for(var n=t;n;)i(e=n.context)&&i(e=e.$options._scopeId)&&M.setStyleScope(t.elm,e),n=n.parent;i(e=Ci)&&e!==t.context&&e!==t.fnContext&&i(e=e.$options._scopeId)&&M.setStyleScope(t.elm,e)}function y(t,e,n,o,i,r){for(;o<=i;++o)c(n[o],r,t,e,!1,n,o)}function b(t){var e,n,o=t.data;if(i(o))for(i(e=o.hook)&&i(e=e.destroy)&&e(t),e=0;e<T.destroy.length;++e)T.destroy[e](t);if(i(e=t.children))for(n=0;n<t.children.length;++n)b(t.children[n])}function x(t,e,n,o){for(;n<=o;++n){var r=e[n];i(r)&&(i(r.tag)?(w(r),b(r)):a(r.elm))}}function w(t,e){if(i(e)||i(t.data)){var o,r=T.remove.length+1;for(i(e)?e.listeners+=r:e=n(t.elm,r),i(o=t.componentInstance)&&i(o=o._vnode)&&i(o.data)&&w(o,e),o=0;o<T.remove.length;++o)T.remove[o](t,e);i(o=t.data.hook)&&i(o=o.remove)?o(t,e):e()}else a(t.elm)}function _(t,e,n,r,a){for(var s,p,l,u,f=0,d=0,h=e.length-1,v=e[0],m=e[h],g=n.length-1,b=n[0],w=n[g],_=!a;f<=h&&d<=g;)o(v)?v=e[++f]:o(m)?m=e[--h]:vn(v,b)?(k(v,b,r),v=e[++f],b=n[++d]):vn(m,w)?(k(m,w,r),m=e[--h],w=n[--g]):vn(v,w)?(k(v,w,r),_&&M.insertBefore(t,v.elm,M.nextSibling(m.elm)),v=e[++f],w=n[--g]):vn(m,b)?(k(m,b,r),_&&M.insertBefore(t,m.elm,v.elm),m=e[--h],b=n[++d]):(o(s)&&(s=gn(e,f,h)),p=i(b.key)?s[b.key]:C(b,e,f,h),o(p)?c(b,r,t,v.elm,!1,n,d):(l=e[p],vn(l,b)?(k(l,b,r),e[p]=void 0,_&&M.insertBefore(t,l.elm,v.elm)):c(b,r,t,v.elm,!1,n,d)),b=n[++d]);f>h?(u=o(n[g+1])?null:n[g+1].elm,y(t,u,n,d,g,r)):d>g&&x(t,e,f,h)}function C(t,e,n,o){for(var r=n;r<o;r++){var a=e[r];if(i(a)&&vn(t,a))return r}}function k(t,e,n,a){if(t!==e){var s=e.elm=t.elm;if(r(t.isAsyncPlaceholder))return void(i(e.asyncFactory.resolved)?$(t.elm,e,n):e.isAsyncPlaceholder=!0);if(r(e.isStatic)&&r(t.isStatic)&&e.key===t.key&&(r(e.isCloned)||r(e.isOnce)))return void(e.componentInstance=t.componentInstance);var c,p=e.data;i(p)&&i(c=p.hook)&&i(c=c.prepatch)&&c(t,e);var l=t.children,u=e.children;if(i(p)&&v(e)){for(c=0;c<T.update.length;++c)T.update[c](t,e);i(c=p.hook)&&i(c=c.update)&&c(t,e)}o(e.text)?i(l)&&i(u)?l!==u&&_(s,l,u,n,a):i(u)?(i(t.text)&&M.setTextContent(s,""),y(s,null,u,0,u.length-1,n)):i(l)?x(s,l,0,l.length-1):i(t.text)&&M.setTextContent(s,""):t.text!==e.text&&M.setTextContent(s,e.text),i(p)&&i(c=p.hook)&&i(c=c.postpatch)&&c(t,e)}}function A(t,e,n){if(r(n)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var o=0;o<e.length;++o)e[o].data.hook.insert(e[o])}function $(t,e,n,o){var a,s=e.tag,c=e.data,p=e.children;if(o=o||c&&c.pre,e.elm=t,r(e.isComment)&&i(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(i(c)&&(i(a=c.hook)&&i(a=a.init)&&a(e,!0),i(a=e.componentInstance)))return l(e,n),!0;if(i(s)){if(i(p))if(t.hasChildNodes())if(i(a=c)&&i(a=a.domProps)&&i(a=a.innerHTML)){if(a!==t.innerHTML)return!1}else{for(var u=!0,f=t.firstChild,h=0;h<p.length;h++){if(!f||!$(f,p[h],n,o)){u=!1;break}f=f.nextSibling}if(!u||f)return!1}else d(e,p,n);if(i(c)){var v=!1;for(var g in c)if(!E(g)){v=!0,m(e,n);break}!v&&c.class&&pt(c.class)}}else t.data!==e.text&&(t.data=e.text);return!0}var O,S,T={},I=t.modules,M=t.nodeOps;for(O=0;O<cr.length;++O)for(T[cr[O]]=[],S=0;S<I.length;++S)i(I[S][cr[O]])&&T[cr[O]].push(I[S][cr[O]]);var E=h("attrs,class,staticClass,staticStyle,key");return function(t,n,a,s,p,l){if(o(n))return void(i(t)&&b(t));var u=!1,f=[];if(o(t))u=!0,c(n,f,p,l);else{var d=i(t.nodeType);if(!d&&vn(t,n))k(t,n,f,s);else{if(d){if(1===t.nodeType&&t.hasAttribute(Io)&&(t.removeAttribute(Io),a=!0),r(a)&&$(t,n,f))return A(n,f,!0),t;t=e(t)}var h=t.elm,m=M.parentNode(h);if(c(n,f,h._leaveCb?null:m,M.nextSibling(h)),i(n.parent))for(var g=n.parent,y=v(n);g;){for(var w=0;w<T.destroy.length;++w)T.destroy[w](g);if(g.elm=n.elm,y){for(var _=0;_<T.create.length;++_)T.create[_](sr,g);var C=g.data.hook.insert;if(C.merged)for(var O=1;O<C.fns.length;O++)C.fns[O]()}else hn(g);g=g.parent}i(m)?x(m,[t],0,0):i(t.tag)&&b(t)}}return A(n,f,u),n.elm}}({nodeOps:rr,modules:Nr});Yo&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&so(t,"input")});var Xr={inserted:function(t,e,n,o){"select"===n.tag?(o.elm&&!o.elm._vOptions?dt(n,"postpatch",function(){Xr.componentUpdated(t,e,n)}):eo(t,e,n.context),t._vOptions=[].map.call(t.options,io)):("textarea"===n.tag||ir(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",ro),t.addEventListener("compositionend",ao),t.addEventListener("change",ao),Yo&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){eo(t,e,n.context);var o=t._vOptions,i=t._vOptions=[].map.call(t.options,io);if(i.some(function(t,e){return!k(t,o[e])})){(t.multiple?e.value.some(function(t){return oo(t,i)}):e.value!==e.oldValue&&oo(e.value,i))&&so(t,"change")}}}},Pr={bind:function(t,e,n){var o=e.value;n=co(n);var i=n.data&&n.data.transition,r=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;o&&i?(n.data.show=!0,Zn(n,function(){t.style.display=r})):t.style.display=o?r:"none"},update:function(t,e,n){var o=e.value;!o!=!e.oldValue&&(n=co(n),n.data&&n.data.transition?(n.data.show=!0,o?Zn(n,function(){t.style.display=t.__vOriginalDisplay}):Kn(n,function(){t.style.display="none"})):t.style.display=o?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,o,i){i||(t.style.display=t.__vOriginalDisplay)}},Yr={model:Xr,show:Pr},zr={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]},Dr={name:"transition",props:zr,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(function(t){return t.tag||Ct(t)}),n.length)){var o=this.mode,i=n[0];if(fo(this.$vnode))return i;var r=po(i);if(!r)return i;if(this._leaving)return uo(t,i);var a="__transition-"+this._uid+"-";r.key=null==r.key?r.isComment?a+"comment":a+r.tag:s(r.key)?0===String(r.key).indexOf(a)?r.key:a+r.key:r.key;var c=(r.data||(r.data={})).transition=lo(this),p=this._vnode,l=po(p);if(r.data.directives&&r.data.directives.some(function(t){return"show"===t.name})&&(r.data.show=!0),l&&l.data&&!ho(r,l)&&!Ct(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var u=l.data.transition=w({},c);if("out-in"===o)return this._leaving=!0,dt(u,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),uo(t,i);if("in-out"===o){if(Ct(r))return p;var f,d=function(){f()};dt(c,"afterEnter",d),dt(c,"enterCancelled",d),dt(u,"delayLeave",function(t){f=t})}}return i}}},Ur=w({tag:String,moveClass:String},zr);delete Ur.mode;var Rr={props:Ur,render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),o=this.prevChildren=this.children,i=this.$slots.default||[],r=this.children=[],a=lo(this),s=0;s<i.length;s++){var c=i[s];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))r.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(o){for(var p=[],l=[],u=0;u<o.length;u++){var f=o[u];f.data.transition=a,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?p.push(f):l.push(f)}this.kept=t(e,null,p),this.removed=l}return t(e,null,r)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(vo),t.forEach(mo),t.forEach(go),this._reflow=document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var n=t.elm,o=n.style;Un(n,e),o.transform=o.WebkitTransform=o.transitionDuration="",n.addEventListener(Ir,n._moveCb=function t(o){o&&!/transform$/.test(o.propertyName)||(n.removeEventListener(Ir,t),n._moveCb=null,Rn(n,e))})}}))},methods:{hasMove:function(t,e){if(!$r)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){Yn(n,t)}),Pn(n,e),n.style.display="none",this.$el.appendChild(n);var o=Vn(n);return this.$el.removeChild(n),this._hasMove=o.hasTransform}}},Fr={Transition:Dr,TransitionGroup:Rr};Be.config.mustUseProp=Fi,Be.config.isReservedTag=nr,Be.config.isReservedAttr=Ui,Be.config.getTagNamespace=Je,Be.config.isUnknownElement=Qe,w(Be.options.directives,Yr),w(Be.options.components,Fr),Be.prototype.__patch__=jo?Wr:C,Be.prototype.$mount=function(t,e){return t=t&&jo?tn(t):void 0,Lt(this,t,e)},jo&&setTimeout(function(){Lo.devtools&&Zo&&Zo.emit("init",Be)},0),e.a=Be}).call(e,n(3),n(16).setImmediate)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(8),i=n(7);new o.a({el:"#app",render:function(t){return t(i.a)}})},function(t,e,n){"use strict";function o(t){var e=null;return new Promise(function(n,o){if(t.src)if(/^data\:/i.test(t.src))e=r(t.src),n(e);else if(/^blob\:/i.test(t.src)){var a=new FileReader;a.onload=function(t){e=t.target.result,n(e)},i(t.src,function(t){a.readAsArrayBuffer(t)})}else{var s=new XMLHttpRequest;s.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";e=s.response,n(e),s=null},s.open("GET",t.src,!0),s.responseType="arraybuffer",s.send(null)}else o("img error")})}function i(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 r(t){t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var e=atob(t),n=e.length,o=new ArrayBuffer(n),i=new Uint8Array(o),r=0;r<n;r++)i[r]=e.charCodeAt(r);return o}function a(t,e,n){var o,i="";for(o=e,n+=e;o<n;o++)i+=String.fromCharCode(t.getUint8(o));return i}function s(t){var e,n,o,i,r,s,c,p,l,u,f=new DataView(t),d=f.byteLength;if(255===f.getUint8(0)&&216===f.getUint8(1))for(l=2;l<d;){if(255===f.getUint8(l)&&225===f.getUint8(l+1)){c=l;break}l++}if(c&&(n=c+4,o=c+10,"Exif"===a(f,n,4)&&(s=f.getUint16(o),((r=18761===s)||19789===s)&&42===f.getUint16(o+2,r)&&(i=f.getUint32(o+4,r))>=8&&(p=o+i))),p)for(d=f.getUint16(p,r),u=0;u<d;u++)if(l=p+12*u+2,274===f.getUint16(l,r)){l+=8,e=f.getUint16(l,r);break}return e}var c={};c.getData=function(t){return new Promise(function(e,n){var i={};o(t).then(function(t){i.arrayBuffer=t,i.orientation=s(t),e(i)}).catch(function(t){n(t)})})},e.a=c},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,'.vue-cropper[data-v-199471f4]{position:relative;width:100%;height:100%;box-sizing:border-box;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;direction:ltr;touch-action:none;text-align:left;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC")}.cropper-box-canvas[data-v-199471f4],.cropper-box[data-v-199471f4],.cropper-crop-box[data-v-199471f4],.cropper-drag-box[data-v-199471f4],.cropper-face[data-v-199471f4]{position:absolute;top:0;right:0;bottom:0;left:0;user-select:none}.cropper-box-canvas img[data-v-199471f4]{position:relative;text-align:left;user-select:none;transform:none;max-width:none;max-height:none}.cropper-box[data-v-199471f4]{overflow:hidden}.cropper-move[data-v-199471f4]{cursor:move}.cropper-crop[data-v-199471f4]{cursor:crosshair}.cropper-modal[data-v-199471f4]{background:rgba(0,0,0,.5)}.cropper-view-box[data-v-199471f4]{display:block;overflow:hidden;width:100%;height:100%;outline:1px solid #39f;outline-color:rgba(51,153,255,.75);user-select:none}.cropper-view-box img[data-v-199471f4]{user-select:none;text-align:left;max-width:none;max-height:none}.cropper-face[data-v-199471f4]{top:0;left:0;background-color:#fff;opacity:.1}.crop-info[data-v-199471f4]{position:absolute;left:0;min-width:65px;text-align:center;color:#fff;line-height:20px;background-color:rgba(0,0,0,.8);font-size:12px}.crop-line[data-v-199471f4]{position:absolute;display:block;width:100%;height:100%;opacity:.1}.line-w[data-v-199471f4]{top:-3px;left:0;height:5px;cursor:n-resize}.line-a[data-v-199471f4]{top:0;left:-3px;width:5px;cursor:w-resize}.line-s[data-v-199471f4]{bottom:-3px;left:0;height:5px;cursor:s-resize}.line-d[data-v-199471f4]{top:0;right:-3px;width:5px;cursor:e-resize}.crop-point[data-v-199471f4]{position:absolute;width:8px;height:8px;opacity:.75;background-color:#39f;border-radius:100%}.point1[data-v-199471f4]{top:-4px;left:-4px;cursor:nw-resize}.point2[data-v-199471f4]{top:-5px;left:50%;margin-left:-3px;cursor:n-resize}.point3[data-v-199471f4]{top:-4px;right:-4px;cursor:ne-resize}.point4[data-v-199471f4]{top:50%;left:-4px;margin-top:-3px;cursor:w-resize}.point5[data-v-199471f4]{top:50%;right:-4px;margin-top:-3px;cursor:e-resize}.point6[data-v-199471f4]{bottom:-5px;left:-4px;cursor:sw-resize}.point7[data-v-199471f4]{bottom:-5px;left:50%;margin-left:-3px;cursor:s-resize}.point8[data-v-199471f4]{bottom:-5px;right:-4px;cursor:se-resize}@media screen and (max-width:500px){.crop-point[data-v-199471f4]{position:absolute;width:20px;height:20px;opacity:.45;background-color:#39f;border-radius:100%}.point1[data-v-199471f4]{top:-10px;left:-10px}.point2[data-v-199471f4],.point4[data-v-199471f4],.point5[data-v-199471f4],.point7[data-v-199471f4]{display:none}.point3[data-v-199471f4]{top:-10px;right:-10px}.point4[data-v-199471f4]{top:0;left:0}.point6[data-v-199471f4]{bottom:-10px;left:-10px}.point8[data-v-199471f4]{bottom:-10px;right:-10px}}',""])},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"section code.language-html[data-v-7a4f1d74]{padding:10px 20px;margin:10px 0;display:block;background-color:#333;color:#fff;overflow-x:auto;font-family:Consolas,Monaco,Droid,Sans,Mono,Source,Code,Pro,Menlo,Lucida,Type,Writer,Ubuntu;border-radius:5px;white-space:pre}.preview[data-v-7a4f1d74]{position:relative;height:150px;overflow:hidden}.all[data-v-7a4f1d74]{position:relative}.show[data-v-7a4f1d74]{position:absolute;width:100%;text-align:center;left:0;bottom:0;line-height:50px;height:50px;cursor:pointer;background-color:hsla(0,0%,100%,.3);color:#fff}",""])},function(t,e,n){e=t.exports=n(0)(),e.push([t.i,"*{margin:0;padding:0}.content{margin:auto;max-width:1200px;margin-bottom:100px}.test-button{display:flex;flex-wrap:wrap}.btn{display:inline-block;line-height:1;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #c0ccda;color:#1f2d3d;text-align:center;box-sizing:border-box;outline:none;margin:20px 10px 0 0;padding:9px 15px;font-size:14px;border-radius:4px;color:#fff;background-color:#50bfff;border-color:#50bfff;transition:all .2s ease;text-decoration:none;user-select:none}.des{line-height:30px}code.language-html{padding:10px 20px;margin:10px 0;display:block;background-color:#333;color:#fff;overflow-x:auto;font-family:Consolas,Monaco,Droid,Sans,Mono,Source,Code,Pro,Menlo,Lucida,Type,Writer,Ubuntu;border-radius:5px;white-space:pre}.show-info{margin-bottom:50px}.show-info h2{line-height:50px}.title{display:block;text-decoration:none;text-align:center;line-height:1.5;margin:20px 0;background-image:-webkit-linear-gradient(left,#3498db,#f47920 10%,#d71345 20%,#f7acbc 30%,#ffd400 40%,#3498db 50%,#f47920 60%,#d71345 70%,#f7acbc 80%,#ffd400 90%,#3498db);color:transparent;-webkit-background-clip:text;background-size:200% 100%;animation:slide 5s infinite linear;font-size:40px}.test{height:500px}.model{position:fixed;z-index:10;overflow:auto;top:0;left:0;background:rgba(0,0,0,.8)}.model,.model-show{width:100vw;height:100vh}.model-show{display:flex;justify-content:center;align-items:center;text-align:center}.model img{margin:auto;max-width:80%;width:auto;background-position:0 0,10px 10px;background-size:20px 20px;background-image:linear-gradient(45deg,#eee 25%,transparent 0,transparent 75%,#eee 0,#eee),linear-gradient(45deg,#eee 25%,#fff 0,#fff 75%,#eee 0,#eee)}.c-item,.model img{display:block;user-select:none}.c-item{padding:10px 0}.pre{display:flex}.pre-item{padding-right:20px}@keyframes slide{0%{background-position:0 0}to{background-position:-100% 0}}@media screen and (max-width:1000px){.content{max-width:90%;margin:auto}.test{height:400px}}",""])},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function r(t){if(u===clearTimeout)return clearTimeout(t);if((u===o||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(t);try{return u(t)}catch(e){try{return u.call(null,t)}catch(e){return u.call(this,t)}}}function a(){v&&d&&(v=!1,d.length?h=d.concat(h):m=-1,h.length&&s())}function s(){if(!v){var t=i(a);v=!0;for(var e=h.length;e;){for(d=h,h=[];++m<e;)d&&d[m].run();m=-1,e=h.length}d=null,v=!1,r(t)}}function c(t,e){this.fun=t,this.array=e}function p(){}var l,u,f=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{u="function"==typeof clearTimeout?clearTimeout:o}catch(t){u=o}}();var d,h=[],v=!1,m=-1;f.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.push(new c(t,e)),1!==h.length||v||i(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=p,f.addListener=p,f.once=p,f.off=p,f.removeListener=p,f.removeAllListeners=p,f.emit=p,f.prependListener=p,f.prependOnceListener=p,f.listeners=function(t){return[]},f.binding=function(t){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(t,e,n){(function(t,e){!function(t,n){"use strict";function o(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var o={callback:t,args:e};return p[c]=o,s(c),c++}function i(t){delete p[t]}function r(t){var e=t.callback,o=t.args;switch(o.length){case 0:e();break;case 1:e(o[0]);break;case 2:e(o[0],o[1]);break;case 3:e(o[0],o[1],o[2]);break;default:e.apply(n,o)}}function a(t){if(l)setTimeout(a,0,t);else{var e=p[t];if(e){l=!0;try{r(e)}finally{i(t),l=!1}}}}if(!t.setImmediate){var s,c=1,p={},l=!1,u=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?function(){s=function(t){e.nextTick(function(){a(t)})}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&a(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),s=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){a(t.data)},s=function(e){t.port2.postMessage(e)}}():u&&"onreadystatechange"in u.createElement("script")?function(){var t=u.documentElement;s=function(e){var n=u.createElement("script");n.onreadystatechange=function(){a(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():function(){s=function(t){setTimeout(a,0,t)}}(),f.setImmediate=o,f.clearImmediate=i}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(3),n(14))},function(t,e,n){(function(t){function o(t,e){this._id=t,this._clearFn=e}var i=Function.prototype.apply;e.setTimeout=function(){return new o(i.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(15),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,n(3))},function(t,e,n){"use strict";function o(t){n(23)}var i=n(5),r=n(21),a=n(1),s=o,c=n.i(a.a)(i.a,r.a,r.b,!1,s,"data-v-7a4f1d74",null);e.a=c.exports},function(t,e,n){"use strict";function o(t){n(22)}var i=n(6),r=n(19),a=n(1),s=o,c=n.i(a.a)(i.a,r.a,r.b,!1,s,"data-v-199471f4",null);e.a=c.exports},function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return i});var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"cropper",staticClass:"vue-cropper",on:{mouseover:t.scaleImg,mouseout:t.cancelScale}},[n("div",{staticClass:"cropper-box"},[n("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)"}},[n("img",{ref:"cropperImg",attrs:{src:t.imgs,alt:"cropper-img"}})])]),t._v(" "),n("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(" "),n("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)"}},[n("span",{staticClass:"cropper-view-box"},[n("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(" "),n("span",{staticClass:"cropper-face cropper-move",on:{mousedown:t.cropMove,touchstart:t.cropMove}}),t._v(" "),t.info?n("span",{staticClass:"crop-info",style:{top:t.cropInfo.top}},[t._v(t._s(this.cropInfo.width)+" × "+t._s(this.cropInfo.height))]):t._e(),t._v(" "),t.fixedBox?t._e():n("span",[n("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(" "),n("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(" "),n("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(" "),n("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(" "),n("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(" "),n("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(" "),n("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(" "),n("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(" "),n("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(" "),n("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(" "),n("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(" "),n("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)}}})])])])},i=[]},function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return i});var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wrapper"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.model,expression:"model"}],staticClass:"model"},[n("div",{staticClass:"model-show",on:{click:function(e){t.model=!1}}},[n("img",{attrs:{src:t.modelSrc,alt:""},on:{click:function(e){t.model=!1}}})])]),t._v(" "),n("div",{staticClass:"content"},[t._m(0),t._v(" "),n("iframe",{attrs:{src:"https://ghbtns.com/github-btn.html?user=xyxiao001&repo=vue-cropper&type=star&count=true&size=large",frameborder:"0",scrolling:"0",width:"160px",height:"30px"}}),t._v(" "),n("div",{staticClass:"show-info"},[n("h2",[t._v("install")]),t._v(" "),n("codes",[n("div",{attrs:{slot:"body"},slot:"body"},[t._v(t._s(t.code0))])])],1),t._v(" "),n("div",{staticClass:"show-info"},[n("h2",[t._v("example1 基本例子 无限制")]),t._v(" "),n("div",{staticClass:"test test1"},[n("vueCropper",{ref:"cropper",attrs:{img:t.option.img,outputSize:t.option.size,outputType:t.option.outputType,info:!0,full:t.option.full,canMove:t.option.canMove,canMoveBox:t.option.canMoveBox,fixedBox:t.option.fixedBox,original:t.option.original,autoCrop:t.option.autoCrop,autoCropWidth:t.option.autoCropWidth,autoCropHeight:t.option.autoCropHeight,centerBox:t.option.centerBox,high:t.option.high,infoTrue:t.option.infoTrue,maxImgSize:t.option.maxImageSize,enlarge:t.option.enlarge,mode:t.option.mode},on:{realTime:t.realTime,imgLoad:t.imgLoad,cropMoving:t.cropMoving}})],1),t._v(" "),n("div",{staticClass:"test-button"},[n("button",{staticClass:"btn",on:{click:t.changeImg}},[t._v("changeImg")]),t._v(" "),n("label",{staticClass:"btn",attrs:{for:"uploads"}},[t._v("upload")]),t._v(" "),n("input",{staticStyle:{position:"absolute",clip:"rect(0 0 0 0)"},attrs:{type:"file",id:"uploads",accept:"image/png, image/jpeg, image/gif, image/jpg"},on:{change:function(e){t.uploadImg(e,1)}}}),t._v(" "),t.crap?n("button",{staticClass:"btn",on:{click:t.stopCrop}},[t._v("stop")]):n("button",{staticClass:"btn",on:{click:t.startCrop}},[t._v("start")]),t._v(" "),n("button",{staticClass:"btn",on:{click:t.clearCrop}},[t._v("clear")]),t._v(" "),n("button",{staticClass:"btn",on:{click:t.refreshCrop}},[t._v("refresh")]),t._v(" "),n("button",{staticClass:"btn",on:{click:function(e){t.changeScale(1)}}},[t._v("+")]),t._v(" "),n("button",{staticClass:"btn",on:{click:function(e){t.changeScale(-1)}}},[t._v("-")]),t._v(" "),n("button",{staticClass:"btn",on:{click:t.rotateLeft}},[t._v("rotateLeft")]),t._v(" "),n("button",{staticClass:"btn",on:{click:t.rotateRight}},[t._v("rotateRight")]),t._v(" "),n("button",{staticClass:"btn",on:{click:function(e){t.finish("base64")}}},[t._v("preview(base64)")]),t._v(" "),n("button",{staticClass:"btn",on:{click:function(e){t.finish("blob")}}},[t._v("preview(blob)")]),t._v(" "),n("a",{staticClass:"btn",on:{click:function(e){t.down("base64")}}},[t._v("download(base64)")]),t._v(" "),n("a",{staticClass:"btn",on:{click:function(e){t.down("blob")}}},[t._v("download(blob)")]),t._v(" "),n("a",{ref:"downloadDom",attrs:{href:t.downImg,download:"demo.png"}})]),t._v(" "),n("div",{staticClass:"pre"},[n("section",{staticClass:"pre-item"},[n("p",[t._v("截图框大小")]),t._v(" "),n("div",{staticClass:"show-preview",style:{width:t.previews.w+"px",height:t.previews.h+"px",overflow:"hidden",margin:"5px"}},[n("div",{style:t.previews.div},[n("img",{style:t.previews.img,attrs:{src:t.previews.url}})])])]),t._v(" "),n("section",{staticClass:"pre-item"},[n("p",[t._v("中等大小")]),t._v(" "),n("div",{style:t.previewStyle1},[n("div",{style:t.previews.div},[n("img",{style:t.previews.img,attrs:{src:t.previews.url}})])])]),t._v(" "),n("section",{staticClass:"pre-item"},[n("p",[t._v("迷你大小")]),t._v(" "),n("div",{style:t.previewStyle2},[n("div",{style:t.previews.div},[n("img",{style:t.previews.img,attrs:{src:t.previews.url}})])])]),t._v(" "),n("section",{staticClass:"pre-item",attrs:{title:"zoom: (100 / previews.w)"}},[n("p",[t._v("固定为100宽度")]),t._v(" "),n("div",{style:t.previewStyle3},[n("div",{style:t.previews.div},[n("img",{style:t.previews.img,attrs:{src:t.previews.url}})])])]),t._v(" "),n("section",{staticClass:"pre-item",attrs:{title:"zoom: (100 / previews.h)"}},[n("p",[t._v("固定为100高度")]),t._v(" "),n("div",{style:t.previewStyle4},[n("div",{style:t.previews.div},[n("img",{style:t.previews.img,attrs:{src:t.previews.url}})])])])]),t._v(" "),n("div",{staticStyle:{display:"block",width:"100%"}},[n("label",{staticClass:"c-item"},[n("span",[t._v("图片默认渲染方式")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.option.mode,expression:"option.mode"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){return"_value"in t?t._value:t.value});t.$set(t.option,"mode",e.target.multiple?n:n[0])}}},[n("option",{attrs:{value:"contain"}},[t._v("contain")]),t._v(" "),n("option",{attrs:{value:"cover"}},[t._v("cover")]),t._v(" "),n("option",{attrs:{value:"400px auto"}},[t._v("400px auto")]),t._v(" "),n("option",{attrs:{value:"auto 400px"}},[t._v("auto 400px")]),t._v(" "),n("option",{attrs:{value:"50%"}},[t._v("50%")]),t._v(" "),n("option",{attrs:{value:"auto 50%"}},[t._v("auto 50%")])]),t._v(" "),n("section",[t._v("\n\t\t\t\t\t\t\t类似css background属性设置 设置不符合规范不生效, 参照文档说明\n\t\t\t\t\t\t")])]),t._v(" "),n("label",{staticClass:"c-item"},[n("span",[t._v("上传时图片最大大小(默认会压缩尺寸到这个大小)")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.option.maxImgSize,expression:"option.maxImgSize"}],attrs:{type:"nubmer"},domProps:{value:t.option.maxImgSize},on:{input:function(e){e.target.composing||t.$set(t.option,"maxImgSize",e.target.value)}}})]),t._v(" "),n("label",{staticClass:"c-item"},[n("span",[t._v("上传图片是否显示原始宽高 (针对大图 可以铺满)")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.option.original,expression:"option.original"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.option.original)?t._i(t.option.original,null)>-1:t.option.original},on:{change:function(e){var n=t.option.original,o=e.target,i=!!o.checked;if(Array.isArray(n)){var r=t._i(n,null);o.checked?r<0&&t.$set(t.option,"original",n.concat([null])):r>-1&&t.$set(t.option,"original",n.slice(0,r).concat(n.slice(r+1)))}else t.$set(t.option,"original",i)}}}),t._v(" "),n("span",[t._v("original: "+t._s(t.option.original))])]),t._v(" "),n("label",{staticClass:"c-item"},[n("span",[t._v("是否根据dpr生成适合屏幕的高清图片")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.option.high,expression:"option.high"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.option.high)?t._i(t.option.high,null)>-1:t.option.high},on:{change:function(e){var n=t.option.high,o=e.target,i=!!o.checked;if(Array.isArray(n)){var r=t._i(n,null);o.checked?r<0&&t.$set(t.option,"high",n.concat([null])):r>-1&&t.$set(t.option,"high",n.slice(0,r).concat(n.slice(r+1)))}else t.$set(t.option,"high",i)}}}),t._v(" "),n("span",[t._v("high: "+t._s(t.option.high))])]),t._v(" "),n("label",{staticClass:"c-item"},[n("span",[t._v("是否输出原图比例的截图")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.option.full,expression:"option.full"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.option.full)?t._i(t.option.full,null)>-1:t.option.full},on:{change:function(e){var n=t.option.full,o=e.target,i=!!o.checked;if(Array.isArray(n)){var r=t._i(n,null);o.checked?r<0&&t.$set(t.option,"full",n.concat([null])):r>-1&&t.$set(t.option,"full",n.slice(0,r).concat(n.slice(r+1)))}else t.$set(t.option,"full",i)}}}),t._v(" "),n("span",[t._v("full: "+t._s(t.option.full))])]),t._v(" "),n("label",{staticClass:"c-item"},[n("span",[t._v("截图信息展示是否是真实的输出宽高")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.option.infoTrue,expression:"option.infoTrue"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.option.infoTrue)?t._i(t.option.infoTrue,null)>-1:t.option.infoTrue},on:{change:function(e){var n=t.option.infoTrue,o=e.target,i=!!o.checked;if(Array.isArray(n)){var r=t._i(n,null);o.checked?r<0&&t.$set(t.option,"infoTrue",n.concat([null])):r>-1&&t.$set(t.option,"infoTrue",n.slice(0,r).concat(n.slice(r+1)))}else t.$set(t.option,"infoTrue",i)}}}),t._v(" "),n("span",[t._v("infoTrue: "+t._s(t.option.infoTrue))])]),t._v(" "),n("label",{staticClass:"c-item"},[n("span",[t._v("能否拖动图片")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.option.canMove,expression:"option.canMove"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.option.canMove)?t._i(t.option.canMove,null)>-1:t.option.canMove},on:{change:function(e){var n=t.option.canMove,o=e.target,i=!!o.checked;if(Array.isArray(n)){var r=t._i(n,null);o.checked?r<0&&t.$set(t.option,"canMove",n.concat([null])):r>-1&&t.$set(t.option,"canMove",n.slice(0,r).concat(n.slice(r+1)))}else t.$set(t.option,"canMove",i)}}}),t._v(" "),n("span",[t._v("canMove: "+t._s(t.option.canMove))])]),t._v(" "),n("label",{staticClass:"c-item"},[n("span",[t._v("能否拖动截图框")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.option.canMoveBox,expression:"option.canMoveBox"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.option.canMoveBox)?t._i(t.option.canMoveBox,null)>-1:t.option.canMoveBox},on:{change:function(e){var n=t.option.canMoveBox,o=e.target,i=!!o.checked;if(Array.isArray(n)){var r=t._i(n,null);o.checked?r<0&&t.$set(t.option,"canMoveBox",n.concat([null])):r>-1&&t.$set(t.option,"canMoveBox",n.slice(0,r).concat(n.slice(r+1)))}else t.$set(t.option,"canMoveBox",i)}}}),t._v(" "),n("span",[t._v("canMoveBox: "+t._s(t.option.canMoveBox))])]),t._v(" "),n("label",{staticClass:"c-item"},[n("span",[t._v("截图框固定大小")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.option.fixedBox,expression:"option.fixedBox"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.option.fixedBox)?t._i(t.option.fixedBox,null)>-1:t.option.fixedBox},on:{change:function(e){var n=t.option.fixedBox,o=e.target,i=!!o.checked;if(Array.isArray(n)){var r=t._i(n,null);o.checked?r<0&&t.$set(t.option,"fixedBox",n.concat([null])):r>-1&&t.$set(t.option,"fixedBox",n.slice(0,r).concat(n.slice(r+1)))}else t.$set(t.option,"fixedBox",i)}}}),t._v(" "),n("span",[t._v("fixedBox: "+t._s(t.option.fixedBox))])]),t._v(" "),n("label",{staticClass:"c-item"},[n("span",[t._v("是否自动生成截图框")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.option.autoCrop,expression:"option.autoCrop"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.option.autoCrop)?t._i(t.option.autoCrop,null)>-1:t.option.autoCrop},on:{change:function(e){var n=t.option.autoCrop,o=e.target,i=!!o.checked;if(Array.isArray(n)){var r=t._i(n,null);o.checked?r<0&&t.$set(t.option,"autoCrop",n.concat([null])):r>-1&&t.$set(t.option,"autoCrop",n.slice(0,r).concat(n.slice(r+1)))}else t.$set(t.option,"autoCrop",i)}}}),t._v(" "),n("span",[t._v("autoCrop: "+t._s(t.option.autoCrop))])]),t._v(" "),n("label",{staticClass:"c-item"},[n("span",[t._v("自动生成截图框的宽高")]),t._v(" "),n("span",[t._v("宽度: ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.option.autoCropWidth,expression:"option.autoCropWidth"}],attrs:{type:"number"},domProps:{value:t.option.autoCropWidth},on:{input:function(e){e.target.composing||t.$set(t.option,"autoCropWidth",e.target.value)}}}),t._v(" "),n("span",[t._v("高度: ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.option.autoCropHeight,expression:"option.autoCropHeight"}],attrs:{type:"number"},domProps:{value:t.option.autoCropHeight},on:{input:function(e){e.target.composing||t.$set(t.option,"autoCropHeight",e.target.value)}}})]),t._v(" "),n("label",{staticClass:"c-item"},[n("span",[t._v("截图框是否限制在图片里(只有在自动生成截图框时才能生效)")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.option.centerBox,expression:"option.centerBox"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.option.centerBox)?t._i(t.option.centerBox,null)>-1:t.option.centerBox},on:{change:function(e){var n=t.option.centerBox,o=e.target,i=!!o.checked;if(Array.isArray(n)){var r=t._i(n,null);o.checked?r<0&&t.$set(t.option,"centerBox",n.concat([null])):r>-1&&t.$set(t.option,"centerBox",n.slice(0,r).concat(n.slice(r+1)))}else t.$set(t.option,"centerBox",i)}}}),t._v(" "),n("span",[t._v("centerBox: "+t._s(t.option.centerBox))])]),t._v(" "),n("label",{staticClass:"c-item"},[n("span",[t._v("是否按照截图框比例输出 默认为1 ")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.option.enlarge,expression:"option.enlarge"}],attrs:{type:"number"},domProps:{value:t.option.enlarge},on:{input:function(e){e.target.composing||t.$set(t.option,"enlarge",e.target.value)}}})]),t._v(" "),n("p",[t._v("输出图片格式")]),t._v(" "),n("label",{staticClass:"c-item"},[n("label",[t._v("jpg "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.option.outputType,expression:"option.outputType"}],attrs:{type:"radio",name:"type",value:"jpeg"},domProps:{checked:t._q(t.option.outputType,"jpeg")},on:{change:function(e){t.$set(t.option,"outputType","jpeg")}}})]),t._v(" "),n("label",[t._v("png "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.option.outputType,expression:"option.outputType"}],attrs:{type:"radio",name:"type",value:"png"},domProps:{checked:t._q(t.option.outputType,"png")},on:{change:function(e){t.$set(t.option,"outputType","png")}}})]),t._v(" "),n("label",[t._v("webp "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.option.outputType,expression:"option.outputType"}],attrs:{type:"radio",name:"type",value:"webp"},domProps:{checked:t._q(t.option.outputType,"webp")},on:{change:function(e){t.$set(t.option,"outputType","webp")}}})])])]),t._v(" "),n("codes",[n("div",{attrs:{slot:"body"},slot:"body"},[t._v(t._s(t.code1))])])],1)])])},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h1",[n("a",{staticClass:"title",attrs:{href:"https://github.com/xyxiao001/vue-cropper",target:"_blank"}},[t._v("vue-cropper")])])}]},function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return i});var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{class:{preview:!t.all,all:t.all}},[n("code",{staticClass:"language-html"},[t._t("body")],2),t._v(" "),n("div",{staticClass:"show",on:{click:function(){return t.all=!t.all}}},[t._v(t._s(t.msg))])])},i=[]},function(t,e,n){var o=n(11);"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n(2).default;i("70ad5542",o,!0,{})},function(t,e,n){var o=n(12);"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n(2).default;i("0d06521c",o,!0,{})},function(t,e,n){var o=n(13);"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n(2).default;i("474b47a6",o,!0,{})},function(t,e,n){"use strict";function o(t,e){for(var n=[],o={},i=0;i<e.length;i++){var r=e[i],a=r[0],s=r[1],c=r[2],p=r[3],l={id:t+":"+i,css:s,media:c,sourceMap:p};o[a]?o[a].parts.push(l):n.push(o[a]={id:a,parts:[l]})}return n}e.a=o}]);