v-gantt-why
Version:
vue甘特图
1 lines • 73.5 kB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["v-gantt-why"]=e():t["v-gantt-why"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="5cd8")}({"0288":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},"064b":function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"0655":function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!==typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof t&&t.Math===Math?t:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)}}(),a=2;function s(t,e){var n=!1,r=!1,i=0;function s(){n&&(n=!1,t()),r&&u()}function c(){o(s)}function u(){var t=Date.now();if(n){if(t-i<a)return;r=!0}else n=!0,r=!1,setTimeout(c,e);i=t}return u}var c=20,u=["top","right","bottom","left","width","height","size","weight"],f="undefined"!==typeof MutationObserver,l=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),c)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),f?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e,r=u.some((function(t){return!!~n.indexOf(t)}));r&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),d=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},h=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||i},p=O(0,0,0,0);function g(t){return parseFloat(t)||0}function v(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){var r=t["border-"+n+"-width"];return e+g(r)}),0)}function m(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var o=i[r],a=t["padding-"+o];n[o]=g(a)}return n}function y(t){var e=t.getBBox();return O(0,0,e.width,e.height)}function b(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return p;var r=h(t).getComputedStyle(t),i=m(r),o=i.left+i.right,a=i.top+i.bottom,s=g(r.width),c=g(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=v(r,"left","right")+o),Math.round(c+a)!==n&&(c-=v(r,"top","bottom")+a)),!w(t)){var u=Math.round(s+o)-e,f=Math.round(c+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(f)&&(c-=f)}return O(i.left,i.top,s,c)}var x=function(){return"undefined"!==typeof SVGGraphicsElement?function(t){return t instanceof h(t).SVGGraphicsElement}:function(t){return t instanceof h(t).SVGElement&&"function"===typeof t.getBBox}}();function w(t){return t===h(t).document.documentElement}function S(t){return r?x(t)?y(t):b(t):p}function _(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return d(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function O(t,e,n,r){return{x:t,y:e,width:n,height:r}}var T=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=O(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=S(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),A=function(){function t(t,e){var n=_(e);d(this,{target:t,contentRect:n})}return t}(),k=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof h(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new T(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof h(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new A(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),R="undefined"!==typeof WeakMap?new WeakMap:new n,E=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=l.getInstance(),r=new k(e,n,this);R.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach((function(t){E.prototype[t]=function(){var e;return(e=R.get(this))[t].apply(e,arguments)}}));var M=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:E}();e["a"]=M}).call(this,n("0288"))},"07a2":function(t,e,n){var r=n("8a1c");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},"08ba":function(t,e,n){var r=n("d890"),i=n("064b"),o=n("3c10"),a=n("0fc1");for(var s in i){var c=r[s],u=c&&c.prototype;if(u&&u.forEach!==o)try{a(u,"forEach",o)}catch(f){u.forEach=o}}},"0a51":function(t,e,n){"use strict";var r=n("1c8b"),i=n("1e2c"),o=n("d890"),a=n("faa8"),s=n("a719"),c=n("d910").f,u=n("c69d"),f=o.Symbol;if(i&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var l={},d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof d?new f(t):void 0===t?f():f(t);return""===t&&(l[e]=!0),e};u(d,f);var h=d.prototype=f.prototype;h.constructor=d;var p=h.toString,g="Symbol(test)"==String(f("test")),v=/^Symbol\((.*)\)[^)]+$/;c(h,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=p.call(t);if(a(l,t))return"";var n=g?e.slice(7,-1):e.replace(v,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:d})}},"0a60":function(t,e){e.f=Object.getOwnPropertySymbols},"0c3c":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"0fc1":function(t,e,n){var r=n("1e2c"),i=n("d910"),o=n("38b9");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},1025:function(t,e,n){var r=n("3a08"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},"16ff":function(t,e,n){var r=n("a1a8"),i=n("e505"),o=n("ea92");e=r(!1);var a=i(o);e.push([t.i,".gantt-chart{position:relative;overflow:hidden;outline:1px solid #f0f0f0}.gantt-chart,.gantt-container{height:100%;width:100%}.gantt-header{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#fff;outline:1px solid #f0f0f0}.gantt-header-title{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%;background:#747e80;color:#fff;text-align:center}.gantt-header-timeline{overflow:hidden}.gantt-body,.gantt-timeline{position:relative}.gantt-timeline{text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex}.gantt-timeline-day{overflow:hidden;font-weight:700;color:#777}.gantt-timeline-scale{display:-webkit-box;display:-ms-flexbox;display:flex}.gantt-timeline-scale>div{height:100%;font-size:.8rem;font-weight:700;color:#777;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:18px}.gantt-timeline-block:first-child .gantt-timeline-scale div:first-child{visibility:hidden}.gantt-leftbar{width:100%;height:100%;background:#fff;color:#777;font-size:.8rem}.gantt-leftbar-wrapper{-webkit-box-flex:0;-ms-flex:none;flex:none;position:relative;overflow:hidden;background:#fff;outline:1px solid #f0f0f0;z-index:100}.gantt-leftbar-defalutItem{width:100%;height:100%;outline:1px solid #f0f0f0}.gantt-table{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%}.gantt-markline-area{position:absolute;z-index:99}.gantt-markline{position:absolute;z-index:100;width:2px;height:100vh}.gantt-markline-label{padding:3px;float:left;color:#fff;font-size:.7rem}.gantt-blocks-wrapper{overflow:hidden}.gantt-block{position:relative;background-image:url("+a+");background-repeat:repeat}.gantt-block-container{position:relative;height:100%}.gantt-block-item{position:absolute;height:100%}.gantt-block-defaultBlock{width:100%;height:100%;outline:1px solid #f0f0f0;background:#f0f0f0}.gantt-scroll-y{overflow-y:scroll;position:absolute;z-index:1000;top:0;right:0;height:100%;width:17px}.gantt-scroll-y>div{width:17px}.gantt-scroll-x{overflow-x:scroll;position:absolute;z-index:1000;left:0;bottom:0;width:100%;height:17px}.gantt-scroll-x>div{height:17px}.gantt-header-title{background:#fff;font-size:16px;font-family:PingFang SC;font-weight:500;color:#5181df}",""]),t.exports=e},1784:function(t,e,n){"use strict";var r=n("1c8b"),i=n("58d8").left,o=n("d7e1"),a=n("ff9c"),s=o("reduce"),c=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!c},{reduce:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"18f6":function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1944:function(t,e,n){var r=n("d890"),i=n("0fc1"),o=n("faa8"),a=n("e4db"),s=n("1025"),c=n("b702"),u=c.get,f=c.enforce,l=String(String).split("String");(t.exports=function(t,e,n,s){var c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),f(n).source=l.join("string"==typeof e?e:"")),t!==r?(c?!d&&t[e]&&(u=!0):delete t[e],u?t[e]=n:i(t,e,n)):u?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},"1b2e":function(t,e,n){var r=n("1c8b");r({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},"1b99":function(t,e,n){var r=n("d890");t.exports=r},"1bbd":function(t,e,n){"use strict";var r=n("9f67"),i=n("d910"),o=n("38b9");t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},"1c2e":function(t,e,n){"use strict";var r=n("1944"),i=n("857c"),o=n("efe2"),a=n("99ad"),s="toString",c=RegExp.prototype,u=c[s],f=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),l=u.name!=s;(f||l)&&r(RegExp.prototype,s,(function(){var t=i(this),e=String(t.source),n=t.flags,r=String(void 0===n&&t instanceof RegExp&&!("flags"in c)?a.call(t):n);return"/"+e+"/"+r}),{unsafe:!0})},"1c8b":function(t,e,n){var r=n("d890"),i=n("aa6b").f,o=n("0fc1"),a=n("1944"),s=n("e4db"),c=n("c69d"),u=n("e8d6");t.exports=function(t,e){var n,f,l,d,h,p,g=t.target,v=t.global,m=t.stat;if(f=v?r:m?r[g]||s(g,{}):(r[g]||{}).prototype,f)for(l in e){if(h=e[l],t.noTargetGet?(p=i(f,l),d=p&&p.value):d=f[l],n=u(v?l:g+(m?".":"#")+l,t.forced),!n&&void 0!==d){if(typeof h===typeof d)continue;c(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),a(f,l,h,t)}}},"1ca1":function(t,e,n){var r=n("a719"),i=n("74e7"),o=n("90fb"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"1e2c":function(t,e,n){var r=n("efe2");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"1ea7":function(t,e,n){var r=n("efe2"),i=n("90fb"),o=n("f594"),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},2039:function(t,e,n){var r=n("1e2c"),i=n("efe2"),o=n("ae25");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},2118:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"258f":function(t,e,n){var r=n("90fb"),i=n("6d60"),o=n("d910"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},2732:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"27b5":function(t,e,n){var r=n("d910").f,i=n("faa8"),o=n("90fb"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},"2a91":function(t,e,n){var r=n("47ae"),i=n("2118"),o=n("90fb"),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=Object(t),a))?n:s?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},"2e4c":function(t,e,n){var r=n("16ff");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var i=n("85cb").default;i("9c13f43c",r,!0,{sourceMap:!1,shadowMode:!1})},3438:function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";return function(t,e){e.prototype.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)}}}))},3553:function(t,e,n){var r=n("2732");t.exports=function(t){return Object(r(t))}},"38b9":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"3a08":function(t,e,n){var r=n("d890"),i=n("e4db"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},"3ac0":function(t,e,n){var r=n("ab0d");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var i=n("85cb").default;i("424c8e08",r,!0,{sourceMap:!1,shadowMode:!1})},"3c10":function(t,e,n){"use strict";var r=n("5dfd").forEach,i=n("d7e1"),o=n("ff9c"),a=i("forEach"),s=o("forEach");t.exports=a&&s?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"3da3":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4194:function(t,e,n){"use strict";var r=n("1c8b"),i=n("5dfd").find,o=n("258f"),a=n("ff9c"),s="find",c=!0,u=a(s);s in[]&&Array(1)[s]((function(){c=!1})),r({target:"Array",proto:!0,forced:c||!u},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(s)},4350:function(t,e,n){var r=n("90fb");e.f=r},"45af":function(t,e,n){var r=n("da10"),i=n("d88d"),o=n("e1d6"),a=function(t){return function(e,n,a){var s,c=r(e),u=i(c.length),f=o(a,u);if(t&&n!=n){while(u>f)if(s=c[f++],s!=s)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"47ae":function(t,e,n){var r=n("90fb"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"4fda":function(t,e,n){var r=n("6d7a");t.exports=r("navigator","userAgent")||""},"50fb":function(t,e,n){var r=n("857c"),i=n("d1fd");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},"513c":function(t,e,n){"use strict";var r=n("1e2c"),i=n("d890"),o=n("e8d6"),a=n("1944"),s=n("faa8"),c=n("2118"),u=n("7063"),f=n("9f67"),l=n("efe2"),d=n("6d60"),h=n("b338").f,p=n("aa6b").f,g=n("d910").f,v=n("c10f").trim,m="Number",y=i[m],b=y.prototype,x=c(d(b))==m,w=function(t){var e,n,r,i,o,a,s,c,u=f(t,!1);if("string"==typeof u&&u.length>2)if(u=v(u),e=u.charCodeAt(0),43===e||45===e){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=u.slice(2),a=o.length,s=0;s<a;s++)if(c=o.charCodeAt(s),c<48||c>i)return NaN;return parseInt(o,r)}return+u};if(o(m,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var S,_=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof _&&(x?l((function(){b.valueOf.call(n)})):c(n)!=m)?u(new y(w(e)),n,_):w(e)},O=r?h(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),T=0;O.length>T;T++)s(y,S=O[T])&&!s(_,S)&&g(_,S,p(y,S));_.prototype=b,b.constructor=_,a(i,m,_)}},"52f9":function(t,e,n){"use strict";var r=n("47ae"),i=n("2a91");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},"58d8":function(t,e,n){var r=n("0c3c"),i=n("3553"),o=n("692f"),a=n("d88d"),s=function(t){return function(e,n,s,c){r(n);var u=i(e),f=o(u),l=a(u.length),d=t?l-1:0,h=t?-1:1;if(s<2)while(1){if(d in f){c=f[d],d+=h;break}if(d+=h,t?d<0:l<=d)throw TypeError("Reduce of empty array with no initial value")}for(;t?d>=0:l>d;d+=h)d in f&&(c=n(c,f[d],d,u));return c}};t.exports={left:s(!1),right:s(!0)}},"5cd8":function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var r=window.document.currentScript,i=n("79e4");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"gantt-chart",on:{"&wheel":function(e){return t.wheelHandle(e)},"&touchstart":function(e){return t.touchStartHandle(e)},"&touchmove":function(e){return t.touchMoveHandle(e)},"&touchend":function(e){return t.touchEndHandle(e)}}},[n("div",{staticClass:"gantt-container",style:{height:"calc(100% - "+t.scrollXBarHeight+"px)",width:"calc(100% - "+t.scrollYBarWidth+"px)"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.hideHeader,expression:"!hideHeader"}],staticClass:"gantt-header",style:{width:"calc(100% + "+t.scrollYBarWidth+"px)"}},[n("div",{staticClass:"gantt-header-title",style:{"line-height":t.titleHeight+"px",height:t.titleHeight+"px",width:t.titleWidth+"px"}},[t._t("title",[t._v("welcome v-gantt-chart")])],2),n("div",{ref:"headerTimeline",staticClass:"gantt-header-timeline"},[n("div",{staticClass:"gantt-timeline-wrapper",style:{width:t.totalWidth+t.scrollYBarWidth+"px"}},[n("timeline",{attrs:{start:t.start,end:t.end,cellWidth:t.cellWidth,titleHeight:t.titleHeight,scale:t.scale,startTimeOfRenderArea:t.dayjs(t.startTimeOfRenderArea),endTimeOfRenderArea:t.dayjs(t.endTimeOfRenderArea),getPositonOffset:t.getPositonOffset},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.day,r=e.getTimeScales;return[t._t("timeline",null,{day:n,getTimeScales:r})]}}],null,!0)})],1)])]),n("div",{staticClass:"gantt-body",style:{height:"calc(100% - "+t.actualHeaderHeight+"px)"}},[n("div",{staticClass:"gantt-table"},[n("div",{ref:"marklineArea",staticClass:"gantt-markline-area",style:{marginLeft:t.titleWidth+"px"}},[t.showCurrentTime?n("CurrentTime",{attrs:{getPositonOffset:t.getPositonOffset}}):t._e(),t._l(t.timeLines,(function(e,r){return n("mark-line",{key:r,attrs:{markLineTime:e.time,getPositonOffset:t.getPositonOffset,color:e.color}})}))],2),n("div",{ref:"leftbarWrapper",staticClass:"gantt-leftbar-wrapper",style:{width:t.titleWidth+"px",height:"calc(100% + "+t.scrollXBarHeight+"px)"}},[n("LeftBar",{style:{height:t.totalHeight+t.scrollXBarHeight+"px"},attrs:{datas:t.datas,dataKey:t.dataKey,scrollTop:t.scrollTop,heightOfBlocksWrapper:t.heightOfBlocksWrapper,cellHeight:t.cellHeight,preload:t.preload},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.data;return[t._t("left",null,{data:n})]}}],null,!0)})],1),n("div",{ref:"blocksWrapper",staticClass:"gantt-blocks-wrapper"},[n("blocks",{style:{width:t.totalWidth+"px"},attrs:{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft,heightOfBlocksWrapper:t.heightOfBlocksWrapper,widthOfBlocksWrapper:t.widthOfBlocksWrapper,arrayKeys:t.arrayKeys,itemKey:t.itemKey,dataKey:t.dataKey,datas:t.datas,cellWidth:t.cellWidth,cellHeight:t.cellHeight,scale:t.scale,getPositonOffset:t.getPositonOffset,getWidthAbout2Times:t.getWidthAbout2Times,customGenerateBlocks:t.customGenerateBlocks,startTimeOfRenderArea:t.startTimeOfRenderArea,endTimeOfRenderArea:t.endTimeOfRenderArea,preload:t.preload},scopedSlots:t._u([t.customGenerateBlocks?{key:"default",fn:function(e){var n=e.data,r=e.getPositonOffset,i=e.getWidthAbout2Times,o=e.isInRenderingTimeRange,a=e.isAcrossRenderingTimeRange;return[t._t("block",null,{data:n,getPositonOffset:r,getWidthAbout2Times:i,isInRenderingTimeRange:o,isAcrossRenderingTimeRange:a,startTimeOfRenderArea:t.startTimeOfRenderArea,endTimeOfRenderArea:t.endTimeOfRenderArea})]}}:{key:"default",fn:function(e){var n=e.data,r=e.item;return[t._t("block",null,{data:n,item:r})]}}],null,!0)})],1)])])]),n("div",{ref:"scrollYBar",staticClass:"gantt-scroll-y",style:{width:t.scrollYBarWidth+"px",height:"calc(100% - "+t.actualHeaderHeight+"px",marginTop:t.actualHeaderHeight+"px"},on:{"&scroll":function(e){return t.syncScrollY(e)}}},[n("div",{style:{height:t.totalHeight+"px"}})]),n("div",{ref:"scrollXBar",staticClass:"gantt-scroll-x",style:{height:t.scrollXBarHeight+"px",width:"calc(100% - "+t.titleWidth+"px )",marginLeft:t.titleWidth+"px"},on:{"&scroll":function(e){return t.syncScrollX(e)}}},[n("div",{style:{width:t.totalWidth+"px"}})])])},s=[],c=(n("b4fb"),n("fe59"),n("b130"),n("513c"),n("1b2e"),n("b691"),n("e18c"),n("1c2e"),n("90aa"),n("08ba"),n("a0f6")),u=n.n(c),f=n("0655"),l=(n("9302"),[1,2,3,4,5,6,10,12,15,20,30,60,120,180,240,360,720,1440]),d=1440;function h(t){return t>=d&&t%d===0}function p(t){if(!l.includes(t)&&!h(t))throw new RangeError("错误的scale值,输入值为".concat(t,",可用的scale值为").concat(l.join(","),",或者为1440的整数倍"));return!0}function g(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60;p(n);var r=t.clone(),i=n/60;return n>60?(e=Math.floor(t.hour()/i),r=r.hour(e*i).minute(0).second(0)):(e=Math.floor(t.minute()/n),r=r.minute(e*n).second(0)),r}function v(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60;if(t.isAfter(e))throw new TypeError("错误的参数顺序,函数calcScalesAbout2Times的第一个时间参数必须大于第二个时间参数");p(n);var r=g(t,n),i=0;while(!r.isAfter(e))i++,r=r.add(n,"minute");return i}function m(t){return void 0===t||null===t}function y(t){return void 0!==t&&null!==t}function b(t){console.warn(t)}var x=function(){var t={},e={},n=0;return function(r,i){return t[r]!==i?(n++>1e4&&(t={},e={}),t[r]=i,e[r]=_(i)):e[r]}}();function w(t,e,n){var r=n.scale,i=n.cellWidth,o=x("pStart",t),a=_(e);return O(o,a)/r*i}function S(t,e,n){var r=n.scale,i=n.cellWidth,o=x("pStart",t),a=x("pBeginTimeOfTimeLine",e);return O(a,o)/r*i}function _(t){return new Date(t)}function O(t,e){var n=e.getTime()-t.getTime();return n/1e3/60}function T(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=t,i=!0;return function(){var t=arguments,o=this;return i?(r.apply(o,t),i=!1):!e&&void(e=setTimeout((function(){clearTimeout(e),e=null,r.apply(o,t)}),n))}}var A=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"gantt-timeline",style:{"margin-left":-t.cellWidth/2+"px"}},[t.lazy?n("div",{staticClass:"gantt-timeline-padding_block",style:{width:t.paddingWidth+"px"}}):t._e(),t._l(t.allDayBlocks,(function(e,r){return[!t.lazy||t.isInRenderingDayRange(e)?n("div",{key:r,staticClass:"gantt-timeline-block",style:{width:t.getTimeScales(e).length*t.cellWidth+"px"}},[t._t("default",[n("div",{staticClass:"gantt-timeline-day",style:t.heightStyle},[t._v(" "+t._s(e.format("YYYY-MM-DD"))+" ")]),t.isDayScale?t._e():n("div",{staticClass:"gantt-timeline-scale",style:t.heightStyle},t._l(t.getTimeScales(e),(function(e,r){return n("div",{key:r,style:t.cellWidthStyle})})),0)],{day:e,getTimeScales:t.getTimeScales})],2):t._e()]}))],2)},k=[],R=(n("f3dd"),n("0a51"),n("4194"),n("e60a")),E=n.n(R),M=n("3438"),$=n.n(M),W=n("5ecf"),D=n.n(W);u.a.extend(E.a),u.a.extend($.a),u.a.extend(D.a);var B=Symbol(),L=Symbol(),C=Symbol();function N(t,e){return t.isSame(e,"day")}function P(t,e,n){return n.isSameOrAfter(t)&&n.isSameOrBefore(e)}var j={name:"Timeline",props:{start:{type:u.a},end:{type:u.a},cellWidth:{type:Number},titleHeight:{type:Number},scale:{type:Number},endTimeOfRenderArea:[u.a,null],startTimeOfRenderArea:[u.a,null],getPositonOffset:{type:Function},lazy:{type:Boolean,default:!0}},computed:{startDayOfRenderArea:function(){return this.startTimeOfRenderArea.startOf("day")},endDayOfRenderArea:function(){return this.endTimeOfRenderArea.endOf("day")},paddingWidth:function(){var t=this.allDayBlocks,e=this.scale,n=this.startDayOfRenderArea,r=t.find((function(t){return!!(e>=d&&n.isBetween(t,t.add(e/d,"day")))||N(t,n)}));return r&&r!=t[0]?this.getPositonOffset(r.toString()):0},isDayScale:function(){var t=this.scale;return h(t)},allDayBlocks:function(){var t=[],e=this.start,n=this.end,r=this.scale,i=this.isDayScale,o=e.clone().startOf("day"),a=i&&r>d?r/d:1;while(o.isSameOrBefore(n))t.push(o),o=o.add(a,"day");return t},cellWidthStyle:function(){return{width:"".concat(this.cellWidth,"px")}},heightStyle:function(){return{height:this.titleHeight/(this.isDayScale?1:2)+"px","line-height":this.titleHeight/(this.isDayScale?1:2)+"px"}}},methods:{isInRenderingDayRange:function(t){var e=this.startDayOfRenderArea,n=this.endDayOfRenderArea,r=this.scale;return!!(r>=d&&e.isBetween(t,t.add(r/d,"day")))||!!P(e,n,t)},getTimeScales:function(t){var e=this.start,n=this.end;return N(t,e)?this.generateTimeScale(B):N(t,n)?this.generateTimeScale(C):this.generateTimeScale(L)},generateTimeScale:function(t){var e,n,r=[],i=this.start,o=this.end,a=this.scale;switch(t){case B:e=g(i,a),n=N(i,o)?o:i.endOf("day");break;case C:e=o.startOf("day"),n=o;break;case L:e=i.startOf("day"),n=i.endOf("day");break;default:throw new TypeError("错误的计算类型")}while(!e.isAfter(n))r.push(e),e=e.add(a,"minute");return r}}},H=j;function I(t,e,n,r,i,o,a,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var f=u.render;u.render=function(t,e){return c.call(e),f(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,c):[c]}return{exports:t,options:u}}var F=I(H,A,k,!1,null,null,null),Y=F.exports,z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("mark-line",{attrs:{markLineTime:t.currentTime,getPositonOffset:t.getPositonOffset,color:"rgba(255,0,0,.4)"}})},V=[],G=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"gantt-markline",style:{"background-color":t.color,left:t.getPosition()+"px"}},[n("div",{staticClass:"gantt-markline-label",style:{"background-color":t.color}},[t._v(" "+t._s(t.dayjs(t.markLineTime).format("HH:mm:ss"))+" ")])])},K=[],X={name:"MarkLine",props:{markLineTime:{validator:function(t){return u()(t).isValid()}},color:{type:String,default:"#0ca30a"},getPositonOffset:{type:Function,required:!0}},data:function(){return{visible:!1,dayjs:u.a}},methods:{getPosition:function(){return null==this.markLineTime?(this.visible=!1,0):(this.visible=!0,this.getPositonOffset(this.markLineTime))}}},U=X,q=I(U,G,K,!1,null,null,null),J=q.exports,Q={name:"CurrentTime",components:{MarkLine:J},props:{getPositonOffset:{type:Function,required:!0}},data:function(){return{currentTime:u()().toString()}},created:function(){var t=this,e=setInterval((function(){t.currentTime=u()().toString()}),1e3);this.$once("hook:beforeDestroy",(function(){clearInterval(e)}))}},Z=Q,tt=I(Z,z,V,!1,null,null,null),et=tt.exports,nt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"gantt-leftbar"},[n("div",{staticClass:"gantt-leftbar-item gantt-block-top-space",style:{height:t.topSpace+"px"}}),t._l(t.showDatas,(function(e,r){return n("div",{key:t.dataKey?e[t.dataKey]:r,staticClass:"gantt-leftbar-item",style:t.cellHeightStyle},[t._t("default",[n("div",{staticClass:"gantt-leftbar-defalutItem"},[t._v("need slot")])],{data:e})],2)}))],2)},rt=[],it=(n("77ad"),{props:{scrollTop:{type:Number,required:!0},heightOfBlocksWrapper:{type:Number,required:!0},cellHeight:{type:Number,required:!0},datas:{type:Array,required:!0},preload:{type:Number,default:1}},data:function(){return{oldTopIndex:0,startRenderNum:0,endRenderNum:0}},computed:{blockHeight:function(){var t=this.datas,e=this.cellHeight;return t.length*e},currentTopIndex:function(){var t=this.scrollTop,e=this.cellHeight,n=this.datas,r=this.heightOfBlocksWrapper,i=n.length*e-r;return e>0&&i<t?(console.warn("错误的scrollTop值 ".concat(t,",可用滚动高度为").concat(i,",代码自动矫正")),Math.ceil(i/e)):Math.ceil(t/e)},showDatas:function(){var t=this.startRenderNum,e=this.endRenderNum,n=this.datas;return n.slice(t,e)},topSpace:function(){var t=this.oldTopIndex,e=this.cellHeight,n=this.preload,r=t-n>0?t-n:0;return r*e}},watch:{currentTopIndex:function(t){var e=this.oldTopIndex,n=this.preload;if(0!==n){if(e!==t){var r=1;(t<e-(n-r)||t>e+(n-r))&&(this.oldTopIndex=t,this.sliceData())}}else this.sliceData()},datas:function(){this.sliceData()},heightOfBlocksWrapper:function(){this.sliceData()},cellHeight:function(){this.sliceData()},preload:function(){this.sliceData()}},created:function(){this.sliceData()},methods:{sliceData:function(){var t=this.heightOfBlocksWrapper,e=this.currentTopIndex,n=this.cellHeight,r=this.preload,i=this.datas;if(0===t||0===n)return this.endRenderNum=0,void(this.startRenderNum=0);if(0===r)return this.endRenderNum=i.length,void(this.startRenderNum=0);var o=e+Math.ceil(t/n)+r;this.endRenderNum=o>i.length?i.length:o,this.startRenderNum=e-r>0?e-r:0}}}),ot=it,at={name:"LeftBar",mixins:[ot],props:{dataKey:String,datas:{type:Array,required:!0}},computed:{cellHeightStyle:function(){return{height:"".concat(this.cellHeight,"px")}}}},st=at,ct=I(st,nt,rt,!1,null,null,null),ut=ct.exports,ft=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"gantt-blocks",style:{height:t.blockHeight+"px"}},[n("div",{staticClass:"gantt-block gantt-block-top-space",style:{height:t.topSpace+"px"}}),t._l(t.showDatas,(function(e,r){return n("div",{key:t.dataKey?e[t.dataKey]:r,staticClass:"gantt-block",style:t.blockStyle},[n("div",{staticClass:"top_class1"},[t.customGenerateBlocks?[t._t("default",[t._v("need slot")],{data:e,getPositonOffset:t.getPositonOffset,getWidthAbout2Times:t.getWidthAbout2Times,isInRenderingTimeRange:t.isInRenderingTimeRange,isAcrossRenderingTimeRange:t.isAcrossRenderingTimeRange})]:[t._l(t.concatArray(e),(function(r,i){return[t.isInRenderingTimeRangeOrIsAcrossRenderingTimeRange(r.start,r.end)?n("div",{key:t.itemKey?r[t.itemKey]:i,staticClass:"gantt-block-item",style:{left:t.getPosition(r)+"px",width:t.getWidth(r)+"px"}},[t._t("default",[n("div",{staticClass:"gantt-block-defaultBlock"},[t._v("need slot")])],{data:e,item:r})],2):t._e()]}))]],2),n("div",{staticClass:"top_class2"},[t.customGenerateBlocks?[t._t("default",[t._v("need slot")],{data:e,getPositonOffset:t.getPositonOffset,getWidthAbout2Times:t.getWidthAbout2Times,isInRenderingTimeRange:t.isInRenderingTimeRange,isAcrossRenderingTimeRange:t.isAcrossRenderingTimeRange})]:[t._l(t.concatArray2(e),(function(r,i){return[t.isInRenderingTimeRangeOrIsAcrossRenderingTimeRange(r.start,r.end)?n("div",{key:t.itemKey?r[t.itemKey]:i,staticClass:"gantt-block-item",style:{left:t.getPosition(r)+"px",width:t.getWidth(r)+"px"},attrs:{"data-aa":"asd"}},[t._t("default",[n("div",{staticClass:"gantt-block-defaultBlock"},[t._v("need slot")])],{data:e,item:r})],2):t._e()]}))]],2)])}))],2)},lt=[],dt=(n("1784"),{name:"Blocks",mixins:[ot],props:{dataKey:String,itemKey:String,arrayKeys:{type:Array},scrollLeft:Number,cellWidth:{type:Number,required:!0},scale:{type:Number,required:!0},widthOfBlocksWrapper:{type:Number,required:!0},endTimeOfRenderArea:[Number,null],startTimeOfRenderArea:[Number,null],getPositonOffset:Function,getWidthAbout2Times:Function,customGenerateBlocks:Boolean},computed:{renderAarrys:function(){var t=this.arrayKeys;return t.length>0?t:["gtArray"]},blockStyle:function(){return{backgroundSize:"".concat(this.cellWidth,"px ").concat(this.cellHeight,"px"),height:"".concat(this.cellHeight,"px")}},blockStyle2:function(){return{height:"13px",paddingTop:"20px"}}},methods:{concatArray:function(t){return this.renderAarrys.reduce((function(e,n){return Array.isArray(t[n])?e.concat(t[n]):e}),[])},concatArray2:function(t){return["gtArray2"].reduce((function(e,n){return Array.isArray(t[n])?e.concat(t[n]):e}),[])},isInRenderingTimeRangeOrIsAcrossRenderingTimeRange:function(t,e){if(0===this.heightOfBlocksWrapper)return!1;var n=this.startTimeOfRenderArea,r=this.endTimeOfRenderArea;if(m(n)||m(r))return!1;var i=new Date(t).getTime(),o=new Date(e).getTime();return n>=i&&o>=r||(n<=i&&i<=r||n<=o&&o<=r)},isInRenderingTimeRange:function(t){if(0===this.heightOfBlocksWrapper)return!1;var e=this.startTimeOfRenderArea,n=this.endTimeOfRenderArea;if(m(e)||m(n))return!1;var r=new Date(t).getTime();return e<=r&&r<=n},isAcrossRenderingTimeRange:function(t,e){if(0===this.heightOfBlocksWrapper)return!1;var n=this.startTimeOfRenderArea,r=this.endTimeOfRenderArea;if(m(n)||m(r))return!1;var i=new Date(t).getTime(),o=new Date(e).getTime();return n>=i&&o>=r},getWidth:function(t){return m(t.start)||m(t.end)?0:this.getWidthAbout2Times(t.start,t.end)},getPosition:function(t){return m(t.start)?(b("错误,该数据项不含start 值 ".concat(JSON.stringify(t),",无法计算偏移值。")),0):this.getPositonOffset(t.start)}}}),ht=dt,pt=(n("e299"),I(ht,ft,lt,!1,null,"184bed09",null)),gt=pt.exports,vt={name:"Gantt",components:{Timeline:Y,LeftBar:ut,Blocks:gt,MarkLine:J,CurrentTime:et},props:{startTime:{default:function(){return u()()},validator:function(t){var e=u()(t).isValid();return e||b("非法的开始时间 ".concat(t)),e}},endTime:{default:function(){return u()()},validator:function(t){var e=u()(t).isValid();return e||b("非法的结束时间 ".concat(t)),e}},cellWidth:{type:Number,default:50},cellHeight:{type:Number,default:20},titleHeight:{type:Number,default:40},titleWidth:{type:Number,default:200},scale:{type:Number,default:60,validator:function(t){return l.includes(t)||h(t)}},datas:{type:Array,default:function(){return[]}},dataKey:{type:String,default:void 0},itemKey:{type:String,default:void 0},arrayKeys:{type:Array,default:function(){return[]}},showCurrentTime:{type:Boolean,default:!1},timeLines:{type:Array},scrollToTime:{validator:function(t){return u()(t).isValid()}},scrollToPostion:{validator:function(t){var e=!y(t.x)||!Number.isNaN(t.x),n=!y(t.y)||!Number.isNaN(t.y);return!(!e&&!n)||(b("scrollToPostion x或y 有值为非Number类型"),!1)}},hideHeader:{type:Boolean,default:!1},hideXScrollBar:{type:Boolean,default:!1},hideYScrollBar:{type:Boolean,default:!1},customGenerateBlocks:{type:Boolean,default:!1},timeRangeCorrection:{type:Boolean,default:!0},preload:{type:Number}},data:function(){return{selector:{gantt_leftbar:{},gantt_table:{},gantt_scroll_y:{},gantt_timeline:{},gantt_scroll_x:{},gantt_markArea:{}},scrollTop:0,scrollLeft:0,heightOfBlocksWrapper:0,widthOfBlocksWrapper:0,scrollBarWitdh:17,dayjs:u.a,preTouchPosition:{x:0,y:0}}},computed:{start:function(){return u()(this.startTime)},end:function(){var t=this.start,e=this.widthOfBlocksWrapper,n=this.scale,r=this.cellWidth,i=this.timeRangeCorrection,o=u()(this.endTime),a=v(t,o,n)*r;return i&&(t.isAfter(o)||a<=e)&&(o=g(t,n).add(e/r*n,"minute")),o},totalWidth:function(){var t=this.cellWidth,e=this.totalScales;return t*e},totalScales:function(){var t=this.start,e=this.end,n=this.scale;return v(t,e,n)},totalHeight:function(){var t=this.datas,e=this.cellHeight;return t.length*e},beginTimeOfTimeLine:function(){var t=g(this.start,this.scale);return t},beginTimeOfTimeLineToString:function(){return this.beginTimeOfTimeLine.toString()},avialableScrollLeft:function(){var t=this.totalWidth,e=this.widthOfBlocksWrapper;return t-e-1},avialableScrollTop:function(){var t=this.totalHeight,e=this.heightOfBlocksWrapper;return t-e-1},scrollXBarHeight:function(){return this.hideXScrollBar?0:this.scrollBarWitdh},scrollYBarWidth:function(){return this.hideYScrollBar?0:this.scrollBarWitdh},actualHeaderHeight:function(){return this.hideHeader?0:this.titleHeight},startTimeOfRenderArea:function(){if(0!==this.heightOfBlocksWrapper){var t=this.beginTimeOfTimeLine,e=this.scrollLeft,n=this.cellWidth,r=this.scale;return t.add(e/n*r,"minute").toDate().getTime()}},endTimeOfRenderArea:function(){if(0!==this.heightOfBlocksWrapper){var t=this.beginTimeOfTimeLine,e=this.scrollLeft,n=this.cellWidth,r=this.scale,i=this.widthOfBlocksWrapper,o=this.totalWidth,a=o<i?o:i;return t.add((e+a)/n*r,"minute").toDate().getTime()}}},watch:{scrollToTime:{handler:function(t){if(t){var e=this.start,n=this.end,r=u()(t);if(r.isAfter(e)&&r.isBefore(n)){var i=this.getPositonOffset(t);this.$nextTick(this.manualScroll(i))}else b("当前滚动至".concat(t,"不在").concat(e,"和").concat(n,"的范围之内"))}},immediate:!0},scrollToPostion:{handler:function(t){if(t){var e=Number.parseFloat(t.x),n=Number.parseFloat(t.y);Number.isNaN(e)||e===this.scrollLeft||this.$nextTick(this.manualScroll(e)),Number.isNaN(n)||n===this.scrollTop||this.$nextTick(this.manualScroll(void 0,n))}},immediate:!0}},mounted:function(){var t=this;this.cacheSelector();var e=T((function(e){e.forEach((function(e){var n=e.contentRect;t.heightOfBlocksWrapper=n.height,t.widthOfBlocksWrapper=n.width}))})),n=new f["a"](e);n.observe(this.$refs.blocksWrapper),this.$once("hook:beforeDestroy",(function(){n.disconnect(),t.releaseSelector()}))},methods:{touchMoveHandle:function(t){var e=t.touches[0];this.wheelHandle({deltaX:this.preTouchPosition.x-e.screenX,deltaY:this.preTouchPosition.y-e.screenY}),this.preTouchPosition.x=e.screenX,this.preTouchPosition.y=e.screenY},touchStartHandle:function(t){var e=t.touches[0];this.preTouchPosition.x=e.screenX,this.preTouchPosition.y=e.screenY},touchEndHandle:function(){this.preTouchPosition.x=0,this.preTouchPosition.y=0},getWidthAbout2Times:function(t,e){var n={scale:this.scale,cellWidth:this.cellWidth};return w(t,e,n)},getPositonOffset:function(t){var e={scale:this.scale,cellWidth:this.cellWidth};return S(t,this.beginTimeOfTimeLineToString,e)},cacheSelector:function(){this.selector.gantt_leftbar=this.$refs.leftbarWrapper,this.selector.gantt_table=this.$refs.blocksWrapper,this.selector.gantt_scroll_y=this.$refs.scrollYBar,this.selector.gantt_timeline=this.$refs.headerTimeline,this.selector.gantt_scroll_x=this.$refs.scrollXBar,this.selector.gantt_markArea=this.$refs.marklineArea},releaseSelector:function(){var t;for(t in this.selector)this.selector[t]=null},wheelHandle:function(t){var e=t.deltaX,n=t.deltaY,r=this.scrollTop,i=this.scrollLeft,o=this.avialableScrollLeft,a=this.avialableScrollTop;0!==n&&(r+n>=a&&r!==a?this.manualScroll(void 0,a):r+n<0&&0!==r?this.manualScroll(void 0,0):this.manualScroll(void 0,r+n)),0!==e&&(i+e>=o&&i!==o?this.manualScroll(o):i+e<0&&0!==i?this.manualScroll(0):this.manualScroll(i+e))},manualScroll:function(t,e){void 0!=t&&(this.selector.gantt_scroll_x.scrollLeft=t),void 0!=e&&(this.selector.gantt_scroll_y.scrollTop=e)},syncScrollY:function(t){var e=this.selector,n=e.gantt_leftbar,r=e.gantt_table,i=t.target.scrollTop;this.scrollTop=r.scrollTop=n.scrollTop=i,this.$emit("scrollTop",i)},syncScrollX:function(t){var e=this.selector,n=e.gantt_table,r=e.gantt_timeline,i=e.gantt_markArea,o=t.target.scrollLeft;this.scrollLeft=r.scrollLeft=n.scrollLeft=o,i.style.left=-o+"px",this.$emit("scrollLeft",o)}}},mt=vt,yt=(n("c3ab"),I(mt,a,s,!1,null,null,null)),bt=yt.exports,xt={version:"1.0.6",install:function(t,e){t.component("v-gantt-why",bt)}};"undefined"!==typeof window&&window.Vue&&window.Vue.use(xt);var wt=xt;e["default"]=wt},"5dfd":function(t,e,n){var r=n("e349"),i=n("692f"),o=n("3553"),a=n("d88d"),s=n("1ca1"),c=[].push,u=function(t){var e=1==t,n=2==t,u=3==t,f=4==t,l=6==t,d=5==t||l;return function(h,p,g,v){for(var m,y,b=o(h),x=i(b),w=r(p,g,3),S=a(x.length),_=0,O=v||s,T=e?O(h,S):n?O(h,0):void 0;S>_;_++)if((d||_ in x)&&(m=x[_],y=w(m,_,b),t))if(e)T[_]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return _;case 2:c.call(T,m)}else if(f)return!1;return l?-1:u||f?f:T}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},"5ecf":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";return function(t,e,n){e.prototype.isBetween=function(t,e,r,i){var o=n(t),a=n(e),s="("===(i=i||"()")[0],c=")"===i[1];return(s?this.isAfter(o,r):!this.isBefore(o,r))&&(c?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(o,r):!this.isAfter(o,r))&&(c?this.isAfter(a,r):!this.isBefore(a,r))}}}))},"604f":function(t,e,n){var r=n("d890"),i=n("1025"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"692f":function(t,e,n){var r=n("efe2"),i=n("2118"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"6d28":function(t,e,n){var r=n("9b9d"),i=n("3a08");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"6d51":function(t,e,n){var r=n("1b99"),i=n("faa8"),o=n("4350"),a=n("d910").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},"6d60":function(t,e,n){var r,i=n("857c"),o=n("dbe8"),a=n("18f6"),s=n("d5a8"),c=n("6fdf"),u=n("ae25"),f=n("7db2"),l=">",d="<",h="prototype",p="script",g=f("IE_PROTO"),v=function(){},m=function(t){return d+p+l+t+d+"/"+p+l},y=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){var t,e=u("iframe"),n="java"+p+":";return e.style.display="none",c.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(m("document.F=Object")),t.close(),t.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}x=r?y(r):b();var t=a.length;while(t--)delete x[h][a[t]];return x()};s[g]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(v[h]=i(t),n=new v,v[h]=null,n[g]=t):n=x(),void 0===e?n:o(n,e)}},"6d7a":function(t,e,n){var r=n("1b99"),i=n("d890"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},"6fdf":function(t,e,n){var r=n("6d7a");t.exports=r("document","documentElement")},7063:function(t,e,n){var r=n("a719"),i=n("50fb");t.exports=function(t,e,n){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(t,a),t}},"74cb":function(t,e,n){var r=n("c54b");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"74e7":function(t,e,n){var r=n("2118");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"77ad":function(t,e,n){"use strict";var r=n("1c8b"),i=n("a719"),o=n("74e7"),a=n("e1d6"),s=n("d88d"),c=n("da10"),u=n("1bbd"),f=n("90fb"),l=n("1ea7"),d=n("ff9c"),h=l("slice"),p=d("slice",{ACCESSORS:!0,0:0,1:2}),g=f("species"),v=[].slice,m=Math.max;r({target:"Array",proto:!0,forced:!h||!p},{slice:function(t,e){var n,r,f,l=c(this),d=s(l.length),h=a(t,d),p=a(void 0===e?d:e,d);if(o(l)&&(n=l.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?i(n)&&(n=n[g],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return v.call(l,h,p);for(r=new(void 0===n?Array:n)(m(p-h,0)),f=0;h<p;h++,f++)h in l&&u(r,f,l[h]);return r.length=f,r}})},"783d":function(t,e,n){var r=n("90fb"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},"79e4":function(t,e,n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(h){var n,r,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(h.stack)||a.exec(h.stack),c=s&&s[1]||!1,u=s&&s[2]||!1,f=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");c===f&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(r,"$1").trim());for(var d=0;d<l.length;d++){if("interactive"===l[d].readyState)return l[d];if(l[d].src===c)return l[d];if(c===f&&l[d].innerHTML&&l[d].innerHTML.trim()===i)return l[d]}return null}}return t}))},"7db2":function(t,e,n){var r=n("6d28"),i=n("7e8b"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},"7e8b":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},"84b3":function(t,e,n){var r=n("d890"),i=n("c10f").trim,o=n("fc8c"),a=r.parseFloat,s=1/a(o+"-0")!==-1/0;t.exports=s?function(t){var e=i(String(t)),n=a(e);return 0===n&&"-"==e.charAt(0)?-0:n}:a},"857c":function(t,e,n){var r=n("a719");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"85cb":function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++