Comparing version 0.0.6 to 0.0.7
@@ -6,3 +6,3 @@ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.vueboxy=e():t.vueboxy=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},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="/",e(e.s=36)}([function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var i=n(29)("wks"),r=n(31),o=n(2).Symbol,s="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=s&&o[t]||(s?o:r)("Symbol."+t))}).store=i},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var i=n(16),r=n(27);t.exports=n(7)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports={}},function(t,e,n){var i=n(10);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(2),r=n(0),o=n(23),s=n(4),a=function(t,e,n){var u,c,h,l=t&a.F,f=t&a.G,p=t&a.S,d=t&a.P,v=t&a.B,g=t&a.W,x=f?r:r[e]||(r[e]={}),y=x.prototype,m=f?i:p?i[e]:(i[e]||{}).prototype;f&&(n=e);for(u in n)(c=!l&&m&&void 0!==m[u])&&u in x||(h=c?m[u]:n[u],x[u]=f&&"function"!=typeof m[u]?n[u]:v&&c?o(h,i):g&&m[u]==h?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):d&&"function"==typeof h?o(Function.call,h):h,d&&((x.virtual||(x.virtual={}))[u]=h,t&a.R&&y&&!y[u]&&s(y,u,h)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var i=n(14);t.exports=function(t){return Object(i(t))}},function(t,e){t.exports=function(t,e,n,i){var r,o=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(r=t,o=t.default);var a="function"==typeof o?o.options:o;if(e&&(a.render=e.render,a.staticRenderFns=e.staticRenderFns),n&&(a._scopeId=n),i){var u=Object.create(a.computed||null);Object.keys(i).forEach(function(t){var e=i[t];u[t]=function(){return e}}),a.computed=u}return{esModule:r,exports:o,options:a}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var i=n(13);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){var i=n(6),r=n(60),o=n(77),s=Object.defineProperty;e.f=n(7)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(70),r=n(25);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){var i=n(29)("keys"),r=n(31);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(15),r=n(14);t.exports=function(t){return i(r(t))}},function(t,e,n){t.exports={default:n(48),__esModule:!0}},function(t,e,n){var i=n(13),r=n(1)("toStringTag"),o="Arguments"==i(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),r))?n:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){var i=n(53);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(10),r=n(2).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){"use strict";var i=n(64),r=n(8),o=n(73),s=n(4),a=n(9),u=n(5),c=n(62),h=n(28),l=n(69),f=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,v,g,x,y){c(n,e,v);var m,b,_,T=function(t){if(!p&&t in I)return I[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},E=e+" Iterator",w="values"==g,S=!1,I=t.prototype,O=I[f]||I["@@iterator"]||g&&I[g],B=O||T(g),j=g?w?T("entries"):B:void 0,A="Array"==e?I.entries||O:O;if(A&&(_=l(A.call(new t)))!==Object.prototype&&(h(_,E,!0),i||a(_,f)||s(_,f,d)),w&&O&&"values"!==O.name&&(S=!0,B=function(){return O.call(this)}),i&&!y||!p&&!S&&I[f]||s(I,f,B),u[e]=B,u[E]=d,g)if(m={values:w?B:T("values"),keys:x?B:T("keys"),entries:j},y)for(b in m)b in I||o(I,b,m[b]);else r(r.P+r.F*(p||S),e,m);return m}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(16).f,r=n(9),o=n(1)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},function(t,e,n){var i=n(2),r=i["__core-js_shared__"]||(i["__core-js_shared__"]={});t.exports=function(t){return r[t]||(r[t]={})}},function(t,e,n){var i=n(19),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e,n){"use strict";var i=n(75)(!0);n(26)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){n(82);for(var i=n(2),r=n(4),o=n(5),s=n(1)("toStringTag"),a=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],u=0;u<5;u++){var c=a[u],h=i[c],l=h&&h.prototype;l&&!l[s]&&r(l,s,c),o[c]=o.Array}},function(t,e,n){n(89);var i=n(12)(n(38),n(96),null,null);t.exports=i.exports},function(t,e,n){n(87);var i=n(12)(n(40),n(94),"data-v-2e8f66f4",null);t.exports=i.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(35),r=n.n(i),o=n(34),s=n.n(o);n.d(e,"Hello",function(){return s.a}),e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(90);n.n(i);e.default={name:"Box",props:{containerId:{type:String},boxId:{type:String},h:{type:Number,default:60},w:{type:Number,default:60},x:{type:Number,default:0},y:{type:Number,default:0},dragX:{type:Number,default:null},dragY:{type:Number,default:null},dragW:{type:Number,default:null},dragH:{type:Number,default:null}},mounted:function(){this.enableTouch()},data:function(){return{}},computed:{top:function(){return null===this.dragY?this.y:this.dragY},left:function(){return null===this.dragX?this.x:this.dragX},width:function(){return null===this.dragW?this.w:this.dragW},height:function(){return null===this.dragH?this.h:this.dragH}},methods:{enableTouch:function(){var t=this,e=new i(document.getElementsByClassName("js-vbox__"+this.containerId+"-"+this.boxId)[0]);e.get("pan").set({direction:i.DIRECTION_ALL}),e.off("panstart",function(e){t.dragBoxStart(e)}).on("panstart",function(e){t.dragBoxStart(e)}),e.off("panleft panright panup pandown",function(e){t.dragBox(e)}).on("panleft panright panup pandown",function(e){t.dragBox(e)}),e.off("panend",function(e){t.dropBox(e)}).on("panend",function(e){t.dropBox(e)}),e=new i(document.getElementsByClassName("js-vbox__"+this.containerId+"-"+this.boxId+"-resize")[0]),e.get("pan").set({direction:i.DIRECTION_ALL}),e.off("panstart",function(e){t.resizeBoxStart(e)}).on("panstart",function(e){t.resizeBoxStart(e)}),e.off("panleft panright panup pandown",function(e){t.resizeBox(e)}).on("panleft panright panup pandown",function(e){t.resizeBox(e)}),e.off("panend",function(e){t.resizeBoxEnd(e)}).on("panend",function(e){t.resizeBoxEnd(e)})},dragBoxStart:function(t){this.$emit("dragBoxStart",this.boxId)},dragBox:function(t){var e={deltaX:t.deltaX,deltaY:t.deltaY};this.$emit("dragBox",this.boxId,e)},dropBox:function(t){this.$emit("dropBox",this.boxId)},resizeBoxStart:function(t){this.$emit("resizeBoxStart",this.boxId)},resizeBox:function(t){var e={deltaX:t.deltaX,deltaY:t.deltaY};this.$emit("resizeBox",this.boxId,e)},resizeBoxEnd:function(t){this.$emit("resizeBoxEnd",this.boxId)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"hello",data:function(){return{msg:"Welcome to Your Vue.js App"}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"ShadowBox",props:{h:{type:Number,default:0},w:{type:Number,default:0},x:{type:Number,default:0},y:{type:Number,default:0}},data:function(){return{id:Math.floor(65536*(1+Math.random())).toString(16).substring(1),display:"auto"}},methods:{}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(41),r=n.n(i),o=n(43),s=n.n(o),a=n(45),u=n.n(a),c=n(44),h=n.n(c),l=n(21),f=n.n(l),p=n(46),d=n.n(p),v=n(91),g=n.n(v),x=n(92),y=n.n(x);e.default={name:"VueBoxy",components:{Box:g.a,ShadowBox:y.a},props:{boxData:{type:Array},debounce:{type:Number,default:20}},mounted:function(){this.initializeContainer(),this.initializeBoxes()},watch:{boxData:function(t){this.initializeBoxes()}},beforeDestroy:function(){},data:function(){return{container:{el:null,id:Math.floor(65536*(1+Math.random())).toString(16).substring(1),x:0,y:0},boxDefaults:{id:null,x:0,y:0,dragX:null,dragY:null,h:0,w:0,dragH:null,dragW:null},boxes:{},sorted:[],loopKill:0,history:[],drag:{box:{h:0,w:0,x:0,y:0},origX:0,origY:0,origW:0,origH:0}}},methods:{initializeContainer:function(){this.container.el=document.getElementById("js-vbox__"+this.container.id),this.container.x=this.container.el.getBoundingClientRect().left,this.container.y=this.container.el.getBoundingClientRect().top},initializeBoxes:function(){this.setDefaultsForBoxes(),this.sortBoxes(),this.pushHistory()},setDefaultsForBoxes:function(){var t=!0,e=!1,n=void 0;try{for(var i,r=f()(this.boxData.entries());!(t=(i=r.next()).done);t=!0){var o=i.value,s=d()(o,2),a=s[0],u=s[1];this.setDefaultsForBox(a.toString(),u)}}catch(t){e=!0,n=t}finally{try{!t&&r.return&&r.return()}finally{if(e)throw n}}this.$set(this.drag,"box",this.boxDefaults)},setDefaultsForBox:function(t,e){var n=h()({id:t},this.boxDefaults,e);this.$set(this.boxes,t,n),this.$set(this.boxes[t],"id",t)},sortBoxes:function(){var t=this;this.sorted=u()(this.boxes),this.sorted.sort(function(e,n){return t.boxes[e].y-t.boxes[n].y})},pushHistory:function(){this.history=[],this.history.push(JSON.parse(s()(this.boxes)))},resizeBoxStart:function(t){this.drag.box=this.boxes[t],this.drag.origX=this.boxes[t].x,this.drag.origY=this.boxes[t].y,this.drag.origW=this.boxes[t].w,this.drag.origH=this.boxes[t].h},resizeBox:function(t,e){var n=this.boxes[t],i=!1,r=!1;this.$set(n,"dragX",this.drag.origX),this.$set(n,"dragY",this.drag.origY),this.$set(n,"dragW",this.drag.origW+e.deltaX),this.$set(n,"dragH",this.drag.origH+e.deltaY),Math.abs(n.dragW-n.w)>=20&&(i=!0),Math.abs(n.dragH-n.h)>=20&&(r=!0),(i||r)&&(i&&this.$set(n,"w",20*Math.ceil((this.drag.origW+e.deltaX)/20)),r&&this.$set(n,"h",20*Math.ceil((this.drag.origH+e.deltaY)/20)),this.resetBoxes(),this.fixCollisions(n))},resizeBoxEnd:function(t){var e=this.boxes[t];this.$set(this.drag,"box",this.boxDefaults),this.$set(e,"dragX",null),this.$set(e,"dragY",null),this.$set(e,"dragW",null),this.$set(e,"dragH",null),this.pushHistory(),this.sortBoxes(),this.clearAllSelections()},dragBoxStart:function(t){this.drag.box=this.boxes[t],this.drag.origX=this.boxes[t].x,this.drag.origY=this.boxes[t].y,this.drag.origW=this.boxes[t].w,this.drag.origH=this.boxes[t].h},dragBox:function(t,e){var n=this.boxes[t],i=!1,r=!1,o=0,s=0;this.$set(n,"dragX",this.drag.origX+e.deltaX),this.$set(n,"dragY",this.drag.origY+e.deltaY),this.$set(n,"dragW",this.drag.origW),this.$set(n,"dragH",this.drag.origH),Math.abs(n.dragX-n.x)>=20&&(i=!0),Math.abs(n.dragY-n.y)>=20&&(r=!0),o=20*Math.ceil((this.drag.origX+e.deltaX)/20),s=20*Math.ceil((this.drag.origY+e.deltaY)/20),(i||r)&&(i&&o>=0&&this.$set(n,"x",o),r&&s>=0&&this.$set(n,"y",s),this.resetBoxes(),this.fixCollisions(n))},dropBox:function(t){var e=this.boxes[t];this.$set(this.drag,"box",this.boxDefaults),this.$set(e,"dragX",null),this.$set(e,"dragY",null),this.$set(e,"dragW",null),this.$set(e,"dragH",null),this.pushHistory(),this.sortBoxes(),this.clearAllSelections()},clearAllSelections:function(){document.selection?document.selection.empty():window.getSelection&&window.getSelection().removeAllRanges()},resetBoxes:function(){var t=this,e=0;r()(this.sorted,function(n,i){t.restoreBoxFromHistory(t.boxes[n]),t.boxes[n].y+t.boxes[n].h<t.drag.box.y&&e++}),this.reorderDragBox(e)},restoreBoxFromHistory:function(t){var e=this.history[this.history.length-1];this.isDragBox(t)||(this.$set(this.boxes[t.id],"y",e[t.id].y),this.$set(this.boxes[t.id],"x",e[t.id].x))},reorderDragBox:function(t){var e=this.getSortIndex(this.boxes[this.drag.box.id]),n=this.sorted.length-1;t=t>n?n:t,this.sorted.splice(e,1),this.sorted.splice(t,0,this.drag.box.id)},isDragBox:function(t){return t.id===this.drag.box.id},getSortIndex:function(t){return this.sorted.findIndex(function(e){return e===t.id})},fixCollisions:function(t){var e=this,n=this.getSortIndex(t),i=n+1,o=this.sorted.length-1,s=this.sorted.slice(n),a=0;if(r()(s,function(n,i){e.fixCollision(t,e.boxes[n])&&a++}),i!==o&&(!this.isDragBox(t)||a)){var u=this.sorted[i];this.fixCollisions(this.boxes[u])}},fixCollision:function(t,e){if(!this.isIntersect(t,e))return!1;var n=t.y+t.h-e.y;return this.pushDown(e,n),!0},pushDown:function(t,e){var n=20*Math.ceil((this.boxes[t.id].y+e)/20);this.$set(this.boxes[t.id],"y",n)},isIntersect:function(t,e){if(t.id===e.id)return!1;if(e.id===this.drag.box.id)return!1;var n={left:t.x,top:t.y,right:t.x+t.w,bottom:t.y+t.h},i={left:e.x,top:e.y,right:e.x+e.w,bottom:e.y+e.h};return n.left<i.right&&i.left<n.right&&n.top<i.bottom&&i.top<n.bottom}}}},function(t,e,n){t.exports={default:n(47),__esModule:!0}},function(t,e,n){t.exports={default:n(49),__esModule:!0}},function(t,e,n){t.exports={default:n(50),__esModule:!0}},function(t,e,n){t.exports={default:n(51),__esModule:!0}},function(t,e,n){t.exports={default:n(52),__esModule:!0}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var r=n(42),o=i(r),s=n(21),a=i(s);e.default=function(){function t(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var s,u=(0,a.default)(t);!(i=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{!i&&u.return&&u.return()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if((0,o.default)(Object(e)))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e,n){n(81),t.exports=n(0).Array.forEach},function(t,e,n){n(33),n(32),t.exports=n(79)},function(t,e,n){n(33),n(32),t.exports=n(80)},function(t,e,n){var i=n(0),r=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},function(t,e,n){n(83),t.exports=n(0).Object.assign},function(t,e,n){n(84),t.exports=n(0).Object.keys},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(){}},function(t,e,n){var i=n(20),r=n(30),o=n(76);t.exports=function(t){return function(e,n,s){var a,u=i(e),c=r(u.length),h=o(s,c);if(t&&n!=n){for(;c>h;)if((a=u[h++])!=a)return!0}else for(;c>h;h++)if((t||h in u)&&u[h]===n)return t||h||0;return!t&&-1}}},function(t,e,n){var i=n(23),r=n(15),o=n(11),s=n(30),a=n(58);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,h=4==t,l=6==t,f=5==t||l,p=e||a;return function(e,a,d){for(var v,g,x=o(e),y=r(x),m=i(a,d,3),b=s(y.length),_=0,T=n?p(e,b):u?p(e,0):void 0;b>_;_++)if((f||_ in y)&&(v=y[_],g=m(v,_,x),t))if(n)T[_]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return _;case 2:T.push(v)}else if(h)return!1;return l?-1:c||h?h:T}}},function(t,e,n){var i=n(10),r=n(61),o=n(1)("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var i=n(57);t.exports=function(t,e){return new(i(t))(e)}},function(t,e,n){t.exports=n(2).document&&document.documentElement},function(t,e,n){t.exports=!n(7)&&!n(3)(function(){return 7!=Object.defineProperty(n(24)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(13);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){"use strict";var i=n(66),r=n(27),o=n(28),s={};n(4)(s,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(s,{next:r(1,n)}),o(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports=!0},function(t,e,n){"use strict";var i=n(17),r=n(68),o=n(71),s=n(11),a=n(15),u=Object.assign;t.exports=!u||n(3)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=i})?function(t,e){for(var n=s(t),u=arguments.length,c=1,h=r.f,l=o.f;u>c;)for(var f,p=a(arguments[c++]),d=h?i(p).concat(h(p)):i(p),v=d.length,g=0;v>g;)l.call(p,f=d[g++])&&(n[f]=p[f]);return n}:u},function(t,e,n){var i=n(6),r=n(67),o=n(25),s=n(18)("IE_PROTO"),a=function(){},u=function(){var t,e=n(24)("iframe"),i=o.length;for(e.style.display="none",n(59).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;i--;)delete u.prototype[o[i]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=i(t),n=new a,a.prototype=null,n[s]=t):n=u(),void 0===e?n:r(n,e)}},function(t,e,n){var i=n(16),r=n(6),o=n(17);t.exports=n(7)?Object.defineProperties:function(t,e){r(t);for(var n,s=o(e),a=s.length,u=0;a>u;)i.f(t,n=s[u++],e[n]);return t}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(9),r=n(11),o=n(18)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var i=n(9),r=n(20),o=n(55)(!1),s=n(18)("IE_PROTO");t.exports=function(t,e){var n,a=r(t),u=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);for(;e.length>u;)i(a,n=e[u++])&&(~o(c,n)||c.push(n));return c}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var i=n(8),r=n(0),o=n(3);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],s={};s[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",s)}},function(t,e,n){t.exports=n(4)},function(t,e,n){var i=n(3);t.exports=function(t,e){return!!t&&i(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){var i=n(19),r=n(14);t.exports=function(t){return function(e,n){var o,s,a=String(r(e)),u=i(n),c=a.length;return u<0||u>=c?t?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):s-56320+(o-55296<<10)+65536)}}},function(t,e,n){var i=n(19),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},function(t,e,n){var i=n(10);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var i=n(22),r=n(1)("iterator"),o=n(5);t.exports=n(0).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},function(t,e,n){var i=n(6),r=n(78);t.exports=n(0).getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return i(e.call(t))}},function(t,e,n){var i=n(22),r=n(1)("iterator"),o=n(5);t.exports=n(0).isIterable=function(t){var e=Object(t);return void 0!==e[r]||"@@iterator"in e||o.hasOwnProperty(i(e))}},function(t,e,n){"use strict";var i=n(8),r=n(56)(0),o=n(74)([].forEach,!0);i(i.P+i.F*!o,"Array",{forEach:function(t){return r(this,t,arguments[1])}})},function(t,e,n){"use strict";var i=n(54),r=n(63),o=n(5),s=n(20);t.exports=n(26)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,n){var i=n(8);i(i.S+i.F,"Object",{assign:n(65)})},function(t,e,n){var i=n(11),r=n(17);n(72)("keys",function(){return function(t){return r(i(t))}})},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){var i;/*! Hammer.JS - v2.0.7 - 2016-04-22 | ||
* Licensed under the MIT license */ | ||
!function(r,o,s,a){"use strict";function u(t,e,n){return setTimeout(p(t,n),e)}function c(t,e,n){return!!Array.isArray(t)&&(h(t,n[e],n),!0)}function h(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==a)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function l(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),t.apply(this,arguments)}}function f(t,e,n){var i,r=e.prototype;i=t.prototype=Object.create(r),i.constructor=t,i._super=r,n&&dt(i,n)}function p(t,e){return function(){return t.apply(e,arguments)}}function d(t,e){return typeof t==xt?t.apply(e?e[0]||a:a,e):t}function v(t,e){return t===a?e:t}function g(t,e,n){h(b(e),function(e){t.addEventListener(e,n,!1)})}function x(t,e,n){h(b(e),function(e){t.removeEventListener(e,n,!1)})}function y(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function m(t,e){return t.indexOf(e)>-1}function b(t){return t.trim().split(/\s+/g)}function _(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function T(t){return Array.prototype.slice.call(t,0)}function E(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];_(r,s)<0&&i.push(t[o]),r[o]=s,o++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function w(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<vt.length;){if(n=vt[o],(i=n?n+r:e)in t)return i;o++}return a}function S(){return Et++}function I(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}function O(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){d(t.options.enable,[t])&&n.handler(e)},this.init()}function B(t){var e=t.options.inputClass;return new(e||(It?$:Ot?L:St?U:F))(t,j)}function j(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&jt&&i-r==0,s=e&(Ct|Mt)&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,A(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function A(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=P(e)),r>1&&!n.firstMultiple?n.firstMultiple=P(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,u=e.center=D(i);e.timeStamp=bt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=X(a,u),e.distance=N(a,u),C(n,e),e.offsetDirection=Y(e.deltaX,e.deltaY);var c=z(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=mt(c.x)>mt(c.y)?c.x:c.y,e.scale=s?k(s.pointers,i):1,e.rotation=s?R(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,M(n,e);var h=t.element;y(e.srcEvent.target,h)&&(h=e.srcEvent.target),e.target=h}function C(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==jt&&o.eventType!==Ct||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function M(t,e){var n,i,r,o,s=t.lastInterval||e,u=e.timeStamp-s.timeStamp;if(e.eventType!=Mt&&(u>Bt||s.velocity===a)){var c=e.deltaX-s.deltaX,h=e.deltaY-s.deltaY,l=z(u,c,h);i=l.x,r=l.y,n=mt(l.x)>mt(l.y)?l.x:l.y,o=Y(c,h),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}function P(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:yt(t.pointers[n].clientX),clientY:yt(t.pointers[n].clientY)},n++;return{timeStamp:bt(),pointers:e,center:D(e),deltaX:t.deltaX,deltaY:t.deltaY}}function D(t){var e=t.length;if(1===e)return{x:yt(t[0].clientX),y:yt(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:yt(n/e),y:yt(i/e)}}function z(t,e,n){return{x:e/t||0,y:n/t||0}}function Y(t,e){return t===e?Pt:mt(t)>=mt(e)?t<0?Dt:zt:e<0?Yt:Nt}function N(t,e,n){n||(n=Ft);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function X(t,e,n){n||(n=Ft);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function R(t,e){return X(e[1],e[0],$t)+X(t[1],t[0],$t)}function k(t,e){return N(e[0],e[1],$t)/N(t[0],t[1],$t)}function F(){this.evEl=Ht,this.evWin=Lt,this.pressed=!1,O.apply(this,arguments)}function $(){this.evEl=Vt,this.evWin=Gt,O.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function W(){this.evTarget=Zt,this.evWin=Kt,this.started=!1,O.apply(this,arguments)}function H(t,e){var n=T(t.touches),i=T(t.changedTouches);return e&(Ct|Mt)&&(n=E(n.concat(i),"identifier",!0)),[n,i]}function L(){this.evTarget=te,this.targetIds={},O.apply(this,arguments)}function q(t,e){var n=T(t.touches),i=this.targetIds;if(e&(jt|At)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=T(t.changedTouches),a=[],u=this.target;if(o=n.filter(function(t){return y(t.target,u)}),e===jt)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<s.length;)i[s[r].identifier]&&a.push(s[r]),e&(Ct|Mt)&&delete i[s[r].identifier],r++;return a.length?[E(o.concat(a),"identifier",!0),a]:void 0}function U(){O.apply(this,arguments);var t=p(this.handler,this);this.touch=new L(this.manager,t),this.mouse=new F(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function V(t,e){t&jt?(this.primaryTouch=e.changedPointers[0].identifier,G.call(this,e)):t&(Ct|Mt)&&G.call(this,e)}function G(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches,r=function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)};setTimeout(r,ee)}}function J(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),s=Math.abs(n-r.y);if(o<=ne&&s<=ne)return!0}return!1}function Z(t,e){this.manager=t,this.set(e)}function K(t){if(m(t,ae))return ae;var e=m(t,ue),n=m(t,ce);return e&&n?ae:e||n?e?ue:ce:m(t,se)?se:oe}function Q(t){this.options=dt({},this.defaults,t||{}),this.id=S(),this.manager=null,this.options.enable=v(this.options.enable,!0),this.state=le,this.simultaneous={},this.requireFail=[]}function tt(t){return t&ge?"cancel":t&de?"end":t&pe?"move":t&fe?"start":""}function et(t){return t==Nt?"down":t==Yt?"up":t==Dt?"left":t==zt?"right":""}function nt(t,e){var n=e.manager;return n?n.get(t):t}function it(){Q.apply(this,arguments)}function rt(){it.apply(this,arguments),this.pX=null,this.pY=null}function ot(){it.apply(this,arguments)}function st(){Q.apply(this,arguments),this._timer=null,this._input=null}function at(){it.apply(this,arguments)}function ut(){it.apply(this,arguments)}function ct(){Q.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ht(t,e){return e=e||{},e.recognizers=v(e.recognizers,ht.defaults.preset),new lt(t,e)}function lt(t,e){this.options=dt({},ht.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=B(this),this.touchAction=new Z(this,this.options.touchAction),ft(this,!0),h(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function ft(t,e){var n=t.element;if(n.style){var i;h(t.options.cssProps,function(r,o){i=w(n.style,o),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||""}),e||(t.oldCssProps={})}}function pt(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var dt,vt=["","webkit","Moz","MS","ms","o"],gt=o.createElement("div"),xt="function",yt=Math.round,mt=Math.abs,bt=Date.now;dt="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==a&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var _t=l(function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===a)&&(t[i[r]]=e[i[r]]),r++;return t},"extend","Use `assign`."),Tt=l(function(t,e){return _t(t,e,!0)},"merge","Use `assign`."),Et=1,wt=/mobile|tablet|ip(ad|hone|od)|android/i,St="ontouchstart"in r,It=w(r,"PointerEvent")!==a,Ot=St&&wt.test(navigator.userAgent),Bt=25,jt=1,At=2,Ct=4,Mt=8,Pt=1,Dt=2,zt=4,Yt=8,Nt=16,Xt=Dt|zt,Rt=Yt|Nt,kt=Xt|Rt,Ft=["x","y"],$t=["clientX","clientY"];O.prototype={handler:function(){},init:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(I(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(I(this.element),this.evWin,this.domHandler)}};var Wt={mousedown:jt,mousemove:At,mouseup:Ct},Ht="mousedown",Lt="mousemove mouseup";f(F,O,{handler:function(t){var e=Wt[t.type];e&jt&&0===t.button&&(this.pressed=!0),e&At&&1!==t.which&&(e=Ct),this.pressed&&(e&Ct&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var qt={pointerdown:jt,pointermove:At,pointerup:Ct,pointercancel:Mt,pointerout:Mt},Ut={2:"touch",3:"pen",4:"mouse",5:"kinect"},Vt="pointerdown",Gt="pointermove pointerup pointercancel";r.MSPointerEvent&&!r.PointerEvent&&(Vt="MSPointerDown",Gt="MSPointerMove MSPointerUp MSPointerCancel"),f($,O,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=qt[i],o=Ut[t.pointerType]||t.pointerType,s="touch"==o,a=_(e,t.pointerId,"pointerId");r&jt&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):r&(Ct|Mt)&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))}});var Jt={touchstart:jt,touchmove:At,touchend:Ct,touchcancel:Mt},Zt="touchstart",Kt="touchstart touchmove touchend touchcancel";f(W,O,{handler:function(t){var e=Jt[t.type];if(e===jt&&(this.started=!0),this.started){var n=H.call(this,t,e);e&(Ct|Mt)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var Qt={touchstart:jt,touchmove:At,touchend:Ct,touchcancel:Mt},te="touchstart touchmove touchend touchcancel";f(L,O,{handler:function(t){var e=Qt[t.type],n=q.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});var ee=2500,ne=25;f(U,O,{handler:function(t,e,n){var i="touch"==n.pointerType,r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)V.call(this,e,n);else if(r&&J.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ie=w(gt.style,"touchAction"),re=ie!==a,oe="auto",se="manipulation",ae="none",ue="pan-x",ce="pan-y",he=function(){if(!re)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){t[n]=!e||r.CSS.supports("touch-action",n)}),t}();Z.prototype={set:function(t){"compute"==t&&(t=this.compute()),re&&this.manager.element.style&&he[t]&&(this.manager.element.style[ie]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return h(this.manager.recognizers,function(e){d(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),K(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var i=this.actions,r=m(i,ae)&&!he[ae],o=m(i,ce)&&!he[ce],s=m(i,ue)&&!he[ue];if(r){var a=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(a&&u&&c)return}return s&&o?void 0:r||o&&n&Xt||s&&n&Rt?this.preventSrc(e):void 0},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var le=1,fe=2,pe=4,de=8,ve=de,ge=16;Q.prototype={defaults:{},set:function(t){return dt(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(c(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=nt(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return c(t,"dropRecognizeWith",this)?this:(t=nt(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(c(t,"requireFailure",this))return this;var e=this.requireFail;return t=nt(t,this),-1===_(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(c(t,"dropRequireFailure",this))return this;t=nt(t,this);var e=_(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,i=this.state;i<de&&e(n.options.event+tt(i)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),i>=de&&e(n.options.event+tt(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|le)))return!1;t++}return!0},recognize:function(t){var e=dt({},t);if(!d(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(ve|ge|32)&&(this.state=le),this.state=this.process(e),this.state&(fe|pe|de|ge)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},f(it,Q,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(fe|pe),r=this.attrTest(t);return i&&(n&Mt||!r)?e|ge:i||r?n&Ct?e|de:e&fe?e|pe:fe:32}}),f(rt,it,{defaults:{event:"pan",threshold:10,pointers:1,direction:kt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Xt&&e.push(ce),t&Rt&&e.push(ue),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(e.direction&Xt?(r=0===o?Pt:o<0?Dt:zt,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===s?Pt:s<0?Yt:Nt,n=s!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return it.prototype.attrTest.call(this,t)&&(this.state&fe||!(this.state&fe)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=et(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),f(ot,it,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ae]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&fe)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),f(st,Q,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[oe]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(Ct|Mt)&&!r)this.reset();else if(t.eventType&jt)this.reset(),this._timer=u(function(){this.state=ve,this.tryEmit()},e.time,this);else if(t.eventType&Ct)return ve;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ve&&(t&&t.eventType&Ct?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=bt(),this.manager.emit(this.options.event,this._input)))}}),f(at,it,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ae]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&fe)}}),f(ut,it,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Xt|Rt,pointers:1},getTouchAction:function(){return rt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Xt|Rt)?e=t.overallVelocity:n&Xt?e=t.overallVelocityX:n&Rt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&mt(e)>this.options.velocity&&t.eventType&Ct},emit:function(t){var e=et(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),f(ct,Q,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[se]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&jt&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=Ct)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||N(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t;if(0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=u(function(){this.state=ve,this.tryEmit()},e.interval,this),fe):ve}return 32},failTimeout:function(){return this._timer=u(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ve&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ht.VERSION="2.0.7",ht.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[at,{enable:!1}],[ot,{enable:!1},["rotate"]],[ut,{direction:Xt}],[rt,{direction:Xt},["swipe"]],[ct],[ct,{event:"doubletap",taps:2},["tap"]],[st]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};lt.prototype={set:function(t){return dt(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,i=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&ve)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(fe|pe|de)&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Q)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(c(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(c(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=_(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var n=this.handlers;return h(b(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==a){var n=this.handlers;return h(b(t),function(t){e?n[t]&&n[t].splice(_(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&pt(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&ft(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},dt(ht,{INPUT_START:jt,INPUT_MOVE:At,INPUT_END:Ct,INPUT_CANCEL:Mt,STATE_POSSIBLE:le,STATE_BEGAN:fe,STATE_CHANGED:pe,STATE_ENDED:de,STATE_RECOGNIZED:ve,STATE_CANCELLED:ge,STATE_FAILED:32,DIRECTION_NONE:Pt,DIRECTION_LEFT:Dt,DIRECTION_RIGHT:zt,DIRECTION_UP:Yt,DIRECTION_DOWN:Nt,DIRECTION_HORIZONTAL:Xt,DIRECTION_VERTICAL:Rt,DIRECTION_ALL:kt,Manager:lt,Input:O,TouchAction:Z,TouchInput:L,MouseInput:F,PointerEventInput:$,TouchMouseInput:U,SingleTouchInput:W,Recognizer:Q,AttrRecognizer:it,Tap:ct,Pan:rt,Swipe:ut,Pinch:ot,Rotate:at,Press:st,on:g,off:x,each:h,merge:Tt,extend:_t,assign:dt,inherit:f,bindFn:p,prefixed:w}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=ht,(i=function(){return ht}.call(e,n,e,t))!==a&&(t.exports=i)}(window,document)},function(t,e,n){n(85),n(86);var i=n(12)(n(37),n(93),"data-v-1ed87aaa",null);t.exports=i.exports},function(t,e,n){n(88);var i=n(12)(n(39),n(95),"data-v-515b312a",null);t.exports=i.exports},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vbox__box",style:{width:t.width+"px",height:t.height+"px",left:t.left+"px",top:t.top+"px"}},[n("div",{staticClass:"vbox__box-content",class:"js-vbox__"+t.containerId+"-"+t.boxId},[t._t("default"),n("div",{staticStyle:{position:"absolute"}},[t._v(t._s(t.boxId))])],2),n("div",{staticClass:"vbox__resize",class:"js-vbox__"+t.containerId+"-"+t.boxId+"-resize"},[n("i",{staticClass:"material-icons fa-rotate-45"},[t._v("keyboard_arrow_right")])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vbox__container js-vbox__container",attrs:{id:"js-vbox__"+t.container.id}},[n("div",{staticClass:"vbox__coord"}),t._v(" "),t._l(t.boxes,function(e){return n("box",{key:"vbox"+e.id,attrs:{containerId:t.container.id,boxId:e.id,h:e.h,w:e.w,x:e.x,y:e.y,dragX:e.dragX,dragY:e.dragY,dragW:e.dragW,dragH:e.dragH},on:{dragBoxStart:function(e){t.dragBoxStart(arguments[0])},dragBox:function(e){t.dragBox(arguments[0],arguments[1])},dropBox:function(e){t.dropBox(arguments[0])},resizeBoxStart:function(e){t.resizeBoxStart(arguments[0])},resizeBox:function(e){t.resizeBox(arguments[0],arguments[1])},resizeBoxEnd:function(e){t.resizeBoxEnd(arguments[0])},remove:function(n){t.boxes.splice(e.id,1)}}},[t._t("box"+e.id)],2)}),t._v(" "),n("shadow-box",{attrs:{h:t.drag.box.h,w:t.drag.box.w,x:t.drag.box.x,y:t.drag.box.y}}),t._v(" "),n("pre",{staticStyle:{position:"absolute",top:"500px"}},[t._v("\n ")])],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"vbox__shadow-box",style:{display:t.display,width:t.w+"px",height:t.h+"px",left:t.x+"px",top:t.y+"px"}})},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"helloworld"},[n("h1",[t._v(t._s(t.msg))]),t._v(" "),n("h2",[t._v("Essential Links")]),t._v(" "),t._m(0),t._v(" "),n("h2",[t._v("Ecosystem")]),t._v(" "),t._m(1)])},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",[n("li",[n("a",{attrs:{href:"https://vuejs.org",target:"_blank"}},[t._v("Core Docs")])]),t._v(" "),n("li",[n("a",{attrs:{href:"https://forum.vuejs.org",target:"_blank"}},[t._v("Forum")])]),t._v(" "),n("li",[n("a",{attrs:{href:"https://gitter.im/vuejs/vue",target:"_blank"}},[t._v("Gitter Chat")])]),t._v(" "),n("li",[n("a",{attrs:{href:"https://twitter.com/vuejs",target:"_blank"}},[t._v("Twitter")])]),t._v(" "),n("br"),t._v(" "),n("li",[n("a",{attrs:{href:"http://vuejs-templates.github.io/webpack/",target:"_blank"}},[t._v("Docs for This Template")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",[n("li",[n("a",{attrs:{href:"http://router.vuejs.org/",target:"_blank"}},[t._v("vue-router")])]),t._v(" "),n("li",[n("a",{attrs:{href:"http://vuex.vuejs.org/",target:"_blank"}},[t._v("vuex")])]),t._v(" "),n("li",[n("a",{attrs:{href:"http://vue-loader.vuejs.org/",target:"_blank"}},[t._v("vue-loader")])]),t._v(" "),n("li",[n("a",{attrs:{href:"https://github.com/vuejs/awesome-vue",target:"_blank"}},[t._v("awesome-vue")])])])}]}}])}); | ||
!function(r,o,s,a){"use strict";function u(t,e,n){return setTimeout(p(t,n),e)}function c(t,e,n){return!!Array.isArray(t)&&(h(t,n[e],n),!0)}function h(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==a)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function l(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),t.apply(this,arguments)}}function f(t,e,n){var i,r=e.prototype;i=t.prototype=Object.create(r),i.constructor=t,i._super=r,n&&dt(i,n)}function p(t,e){return function(){return t.apply(e,arguments)}}function d(t,e){return typeof t==xt?t.apply(e?e[0]||a:a,e):t}function v(t,e){return t===a?e:t}function g(t,e,n){h(b(e),function(e){t.addEventListener(e,n,!1)})}function x(t,e,n){h(b(e),function(e){t.removeEventListener(e,n,!1)})}function y(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function m(t,e){return t.indexOf(e)>-1}function b(t){return t.trim().split(/\s+/g)}function _(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function T(t){return Array.prototype.slice.call(t,0)}function E(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];_(r,s)<0&&i.push(t[o]),r[o]=s,o++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function w(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<vt.length;){if(n=vt[o],(i=n?n+r:e)in t)return i;o++}return a}function S(){return Et++}function I(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}function O(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){d(t.options.enable,[t])&&n.handler(e)},this.init()}function B(t){var e=t.options.inputClass;return new(e||(It?$:Ot?L:St?U:F))(t,j)}function j(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&jt&&i-r==0,s=e&(Ct|Mt)&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,A(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function A(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=P(e)),r>1&&!n.firstMultiple?n.firstMultiple=P(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,u=e.center=D(i);e.timeStamp=bt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=X(a,u),e.distance=N(a,u),C(n,e),e.offsetDirection=Y(e.deltaX,e.deltaY);var c=z(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=mt(c.x)>mt(c.y)?c.x:c.y,e.scale=s?k(s.pointers,i):1,e.rotation=s?R(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,M(n,e);var h=t.element;y(e.srcEvent.target,h)&&(h=e.srcEvent.target),e.target=h}function C(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==jt&&o.eventType!==Ct||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}function M(t,e){var n,i,r,o,s=t.lastInterval||e,u=e.timeStamp-s.timeStamp;if(e.eventType!=Mt&&(u>Bt||s.velocity===a)){var c=e.deltaX-s.deltaX,h=e.deltaY-s.deltaY,l=z(u,c,h);i=l.x,r=l.y,n=mt(l.x)>mt(l.y)?l.x:l.y,o=Y(c,h),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}function P(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:yt(t.pointers[n].clientX),clientY:yt(t.pointers[n].clientY)},n++;return{timeStamp:bt(),pointers:e,center:D(e),deltaX:t.deltaX,deltaY:t.deltaY}}function D(t){var e=t.length;if(1===e)return{x:yt(t[0].clientX),y:yt(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:yt(n/e),y:yt(i/e)}}function z(t,e,n){return{x:e/t||0,y:n/t||0}}function Y(t,e){return t===e?Pt:mt(t)>=mt(e)?t<0?Dt:zt:e<0?Yt:Nt}function N(t,e,n){n||(n=Ft);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function X(t,e,n){n||(n=Ft);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}function R(t,e){return X(e[1],e[0],$t)+X(t[1],t[0],$t)}function k(t,e){return N(e[0],e[1],$t)/N(t[0],t[1],$t)}function F(){this.evEl=Ht,this.evWin=Lt,this.pressed=!1,O.apply(this,arguments)}function $(){this.evEl=Vt,this.evWin=Gt,O.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function W(){this.evTarget=Zt,this.evWin=Kt,this.started=!1,O.apply(this,arguments)}function H(t,e){var n=T(t.touches),i=T(t.changedTouches);return e&(Ct|Mt)&&(n=E(n.concat(i),"identifier",!0)),[n,i]}function L(){this.evTarget=te,this.targetIds={},O.apply(this,arguments)}function q(t,e){var n=T(t.touches),i=this.targetIds;if(e&(jt|At)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=T(t.changedTouches),a=[],u=this.target;if(o=n.filter(function(t){return y(t.target,u)}),e===jt)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<s.length;)i[s[r].identifier]&&a.push(s[r]),e&(Ct|Mt)&&delete i[s[r].identifier],r++;return a.length?[E(o.concat(a),"identifier",!0),a]:void 0}function U(){O.apply(this,arguments);var t=p(this.handler,this);this.touch=new L(this.manager,t),this.mouse=new F(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function V(t,e){t&jt?(this.primaryTouch=e.changedPointers[0].identifier,G.call(this,e)):t&(Ct|Mt)&&G.call(this,e)}function G(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches,r=function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)};setTimeout(r,ee)}}function J(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),s=Math.abs(n-r.y);if(o<=ne&&s<=ne)return!0}return!1}function Z(t,e){this.manager=t,this.set(e)}function K(t){if(m(t,ae))return ae;var e=m(t,ue),n=m(t,ce);return e&&n?ae:e||n?e?ue:ce:m(t,se)?se:oe}function Q(t){this.options=dt({},this.defaults,t||{}),this.id=S(),this.manager=null,this.options.enable=v(this.options.enable,!0),this.state=le,this.simultaneous={},this.requireFail=[]}function tt(t){return t&ge?"cancel":t&de?"end":t&pe?"move":t&fe?"start":""}function et(t){return t==Nt?"down":t==Yt?"up":t==Dt?"left":t==zt?"right":""}function nt(t,e){var n=e.manager;return n?n.get(t):t}function it(){Q.apply(this,arguments)}function rt(){it.apply(this,arguments),this.pX=null,this.pY=null}function ot(){it.apply(this,arguments)}function st(){Q.apply(this,arguments),this._timer=null,this._input=null}function at(){it.apply(this,arguments)}function ut(){it.apply(this,arguments)}function ct(){Q.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ht(t,e){return e=e||{},e.recognizers=v(e.recognizers,ht.defaults.preset),new lt(t,e)}function lt(t,e){this.options=dt({},ht.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=B(this),this.touchAction=new Z(this,this.options.touchAction),ft(this,!0),h(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function ft(t,e){var n=t.element;if(n.style){var i;h(t.options.cssProps,function(r,o){i=w(n.style,o),e?(t.oldCssProps[i]=n.style[i],n.style[i]=r):n.style[i]=t.oldCssProps[i]||""}),e||(t.oldCssProps={})}}function pt(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var dt,vt=["","webkit","Moz","MS","ms","o"],gt=o.createElement("div"),xt="function",yt=Math.round,mt=Math.abs,bt=Date.now;dt="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==a&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var _t=l(function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===a)&&(t[i[r]]=e[i[r]]),r++;return t},"extend","Use `assign`."),Tt=l(function(t,e){return _t(t,e,!0)},"merge","Use `assign`."),Et=1,wt=/mobile|tablet|ip(ad|hone|od)|android/i,St="ontouchstart"in r,It=w(r,"PointerEvent")!==a,Ot=St&&wt.test(navigator.userAgent),Bt=25,jt=1,At=2,Ct=4,Mt=8,Pt=1,Dt=2,zt=4,Yt=8,Nt=16,Xt=Dt|zt,Rt=Yt|Nt,kt=Xt|Rt,Ft=["x","y"],$t=["clientX","clientY"];O.prototype={handler:function(){},init:function(){this.evEl&&g(this.element,this.evEl,this.domHandler),this.evTarget&&g(this.target,this.evTarget,this.domHandler),this.evWin&&g(I(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(I(this.element),this.evWin,this.domHandler)}};var Wt={mousedown:jt,mousemove:At,mouseup:Ct},Ht="mousedown",Lt="mousemove mouseup";f(F,O,{handler:function(t){var e=Wt[t.type];e&jt&&0===t.button&&(this.pressed=!0),e&At&&1!==t.which&&(e=Ct),this.pressed&&(e&Ct&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var qt={pointerdown:jt,pointermove:At,pointerup:Ct,pointercancel:Mt,pointerout:Mt},Ut={2:"touch",3:"pen",4:"mouse",5:"kinect"},Vt="pointerdown",Gt="pointermove pointerup pointercancel";r.MSPointerEvent&&!r.PointerEvent&&(Vt="MSPointerDown",Gt="MSPointerMove MSPointerUp MSPointerCancel"),f($,O,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=qt[i],o=Ut[t.pointerType]||t.pointerType,s="touch"==o,a=_(e,t.pointerId,"pointerId");r&jt&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):r&(Ct|Mt)&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))}});var Jt={touchstart:jt,touchmove:At,touchend:Ct,touchcancel:Mt},Zt="touchstart",Kt="touchstart touchmove touchend touchcancel";f(W,O,{handler:function(t){var e=Jt[t.type];if(e===jt&&(this.started=!0),this.started){var n=H.call(this,t,e);e&(Ct|Mt)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var Qt={touchstart:jt,touchmove:At,touchend:Ct,touchcancel:Mt},te="touchstart touchmove touchend touchcancel";f(L,O,{handler:function(t){var e=Qt[t.type],n=q.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}});var ee=2500,ne=25;f(U,O,{handler:function(t,e,n){var i="touch"==n.pointerType,r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)V.call(this,e,n);else if(r&&J.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ie=w(gt.style,"touchAction"),re=ie!==a,oe="auto",se="manipulation",ae="none",ue="pan-x",ce="pan-y",he=function(){if(!re)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){t[n]=!e||r.CSS.supports("touch-action",n)}),t}();Z.prototype={set:function(t){"compute"==t&&(t=this.compute()),re&&this.manager.element.style&&he[t]&&(this.manager.element.style[ie]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return h(this.manager.recognizers,function(e){d(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),K(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var i=this.actions,r=m(i,ae)&&!he[ae],o=m(i,ce)&&!he[ce],s=m(i,ue)&&!he[ue];if(r){var a=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(a&&u&&c)return}return s&&o?void 0:r||o&&n&Xt||s&&n&Rt?this.preventSrc(e):void 0},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var le=1,fe=2,pe=4,de=8,ve=de,ge=16;Q.prototype={defaults:{},set:function(t){return dt(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(c(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=nt(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return c(t,"dropRecognizeWith",this)?this:(t=nt(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(c(t,"requireFailure",this))return this;var e=this.requireFail;return t=nt(t,this),-1===_(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(c(t,"dropRequireFailure",this))return this;t=nt(t,this);var e=_(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,i=this.state;i<de&&e(n.options.event+tt(i)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),i>=de&&e(n.options.event+tt(i))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|le)))return!1;t++}return!0},recognize:function(t){var e=dt({},t);if(!d(this.options.enable,[this,e]))return this.reset(),void(this.state=32);this.state&(ve|ge|32)&&(this.state=le),this.state=this.process(e),this.state&(fe|pe|de|ge)&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},f(it,Q,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=e&(fe|pe),r=this.attrTest(t);return i&&(n&Mt||!r)?e|ge:i||r?n&Ct?e|de:e&fe?e|pe:fe:32}}),f(rt,it,{defaults:{event:"pan",threshold:10,pointers:1,direction:kt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Xt&&e.push(ce),t&Rt&&e.push(ue),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(e.direction&Xt?(r=0===o?Pt:o<0?Dt:zt,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===s?Pt:s<0?Yt:Nt,n=s!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return it.prototype.attrTest.call(this,t)&&(this.state&fe||!(this.state&fe)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=et(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),f(ot,it,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ae]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&fe)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),f(st,Q,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[oe]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(Ct|Mt)&&!r)this.reset();else if(t.eventType&jt)this.reset(),this._timer=u(function(){this.state=ve,this.tryEmit()},e.time,this);else if(t.eventType&Ct)return ve;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ve&&(t&&t.eventType&Ct?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=bt(),this.manager.emit(this.options.event,this._input)))}}),f(at,it,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ae]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&fe)}}),f(ut,it,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Xt|Rt,pointers:1},getTouchAction:function(){return rt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Xt|Rt)?e=t.overallVelocity:n&Xt?e=t.overallVelocityX:n&Rt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&mt(e)>this.options.velocity&&t.eventType&Ct},emit:function(t){var e=et(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),f(ct,Q,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[se]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&jt&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=Ct)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||N(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t;if(0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=u(function(){this.state=ve,this.tryEmit()},e.interval,this),fe):ve}return 32},failTimeout:function(){return this._timer=u(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ve&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ht.VERSION="2.0.7",ht.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[at,{enable:!1}],[ot,{enable:!1},["rotate"]],[ut,{direction:Xt}],[rt,{direction:Xt},["swipe"]],[ct],[ct,{event:"doubletap",taps:2},["tap"]],[st]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};lt.prototype={set:function(t){return dt(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,i=this.recognizers,r=e.curRecognizer;(!r||r&&r.state&ve)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&n.state&(fe|pe|de)&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Q)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(c(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(c(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=_(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var n=this.handlers;return h(b(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==a){var n=this.handlers;return h(b(t),function(t){e?n[t]&&n[t].splice(_(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&pt(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&ft(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},dt(ht,{INPUT_START:jt,INPUT_MOVE:At,INPUT_END:Ct,INPUT_CANCEL:Mt,STATE_POSSIBLE:le,STATE_BEGAN:fe,STATE_CHANGED:pe,STATE_ENDED:de,STATE_RECOGNIZED:ve,STATE_CANCELLED:ge,STATE_FAILED:32,DIRECTION_NONE:Pt,DIRECTION_LEFT:Dt,DIRECTION_RIGHT:zt,DIRECTION_UP:Yt,DIRECTION_DOWN:Nt,DIRECTION_HORIZONTAL:Xt,DIRECTION_VERTICAL:Rt,DIRECTION_ALL:kt,Manager:lt,Input:O,TouchAction:Z,TouchInput:L,MouseInput:F,PointerEventInput:$,TouchMouseInput:U,SingleTouchInput:W,Recognizer:Q,AttrRecognizer:it,Tap:ct,Pan:rt,Swipe:ut,Pinch:ot,Rotate:at,Press:st,on:g,off:x,each:h,merge:Tt,extend:_t,assign:dt,inherit:f,bindFn:p,prefixed:w}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=ht,(i=function(){return ht}.call(e,n,e,t))!==a&&(t.exports=i)}(window,document)},function(t,e,n){n(85),n(86);var i=n(12)(n(37),n(93),"data-v-1ed87aaa",null);t.exports=i.exports},function(t,e,n){n(88);var i=n(12)(n(39),n(95),"data-v-515b312a",null);t.exports=i.exports},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vbox__box",style:{width:t.width+"px",height:t.height+"px",left:t.left+"px",top:t.top+"px"}},[n("div",{staticClass:"vbox__box-content",class:"js-vbox__"+t.containerId+"-"+t.boxId},[t._t("default"),n("div",{staticStyle:{position:"absolute"}},[t._v(t._s(t.boxId))])],2),n("div",{staticClass:"vbox__resize",class:"js-vbox__"+t.containerId+"-"+t.boxId+"-resize"},[n("i",{staticClass:"material-icons fa-rotate-45"},[t._v("keyboard_arrow_right")])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vbox__container js-vbox__container",attrs:{id:"js-vbox__"+t.container.id}},[n("div",{staticClass:"vbox__coord"}),t._v(" "),t._l(t.boxes,function(e){return n("box",{key:"vbox"+e.id,attrs:{containerId:t.container.id,boxId:e.id,h:e.h,w:e.w,x:e.x,y:e.y,dragX:e.dragX,dragY:e.dragY,dragW:e.dragW,dragH:e.dragH},on:{dragBoxStart:function(e){t.dragBoxStart(arguments[0])},dragBox:function(e){t.dragBox(arguments[0],arguments[1])},dropBox:function(e){t.dropBox(arguments[0])},resizeBoxStart:function(e){t.resizeBoxStart(arguments[0])},resizeBox:function(e){t.resizeBox(arguments[0],arguments[1])},resizeBoxEnd:function(e){t.resizeBoxEnd(arguments[0])},remove:function(n){t.boxes.splice(e.id,1)}}},[t._t("box"+e.id)],2)}),t._v(" "),n("shadow-box",{attrs:{h:t.drag.box.h,w:t.drag.box.w,x:t.drag.box.x,y:t.drag.box.y}}),t._v(" "),n("pre",{staticStyle:{position:"absolute",top:"500px"}},[t._v("\n ")])],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"vbox__shadow-box",style:{display:t.display,width:t.w+"px",height:t.h+"px",left:t.x+"px",top:t.y+"px"}})},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"helloworld"},[n("div",{staticClass:"test"},[t._v("This is a test")]),t._v(" "),n("h1",[t._v(t._s(t.msg))]),t._v(" "),n("h2",[t._v("Essential Links")]),t._v(" "),t._m(0),t._v(" "),n("h2",[t._v("Ecosystem")]),t._v(" "),t._m(1)])},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",[n("li",[n("a",{attrs:{href:"https://vuejs.org",target:"_blank"}},[t._v("Core Docs")])]),t._v(" "),n("li",[n("a",{attrs:{href:"https://forum.vuejs.org",target:"_blank"}},[t._v("Forum")])]),t._v(" "),n("li",[n("a",{attrs:{href:"https://gitter.im/vuejs/vue",target:"_blank"}},[t._v("Gitter Chat")])]),t._v(" "),n("li",[n("a",{attrs:{href:"https://twitter.com/vuejs",target:"_blank"}},[t._v("Twitter")])]),t._v(" "),n("br"),t._v(" "),n("li",[n("a",{attrs:{href:"http://vuejs-templates.github.io/webpack/",target:"_blank"}},[t._v("Docs for This Template")])])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",[n("li",[n("a",{attrs:{href:"http://router.vuejs.org/",target:"_blank"}},[t._v("vue-router")])]),t._v(" "),n("li",[n("a",{attrs:{href:"http://vuex.vuejs.org/",target:"_blank"}},[t._v("vuex")])]),t._v(" "),n("li",[n("a",{attrs:{href:"http://vue-loader.vuejs.org/",target:"_blank"}},[t._v("vue-loader")])]),t._v(" "),n("li",[n("a",{attrs:{href:"https://github.com/vuejs/awesome-vue",target:"_blank"}},[t._v("awesome-vue")])])])}]}}])}); | ||
//# sourceMappingURL=vueboxy.min.js.map |
{ | ||
"name": "vueboxy", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "A Vue.js project", | ||
@@ -5,0 +5,0 @@ "author": "David Graham <prograhammer@gmail.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2030671
1717