/*! * * SpreadJS Library 10.0.0 * * Copyright(c) GrapeCity, Inc. All rights reserved. * * Licensed under the SpreadJS Commercial License. * spread.sales@grapecity.com * http://spread.grapecity.com/Pages/Spread-JS-License/ * * */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.TrellisGrouping=e():(t.GC=t.GC||{},t.GC.Spread=t.GC.Spread||{},t.GC.Spread.Views=t.GC.Spread.Views||{},t.GC.Spread.Views.Plugins=t.GC.Spread.Views.Plugins||{},t.GC.Spread.Views.Plugins.TrellisGrouping=e())}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="/assets/",e(0)}([function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}!function(){function e(){var t=this,e=t.grid.data.groups;if(!e||e.length<=0)return{key:t.grid.uid+"-gc-group-container",renderInfo:{renderedHTML:""}};var n,r=e.length,o="";for(n=0;r>n;n++)o+=O(t,t.grid.gGI_([n]));return{key:t.grid.uid+"-gc-group-container",renderInfo:{renderedHTML:o}}}function o(t,e,n,r,a){var u,l,c,f,s,d,h,p,g=t.grid.layoutEngine,v=t.options.gapSize,m=e.data,_=t.options;if(u=g.gGHH_(m),u>=r)return{area:q,row:-1,column:-1,groupInfo:{path:e.path,area:$}};r-=u+v;var y=i.call(t,e,n,r);if(y)return y;if(e.isBottomLevel){var w=document.querySelector("#"+t.grid.uid+"-g"+e.path.join("_")+" .gc-trellis-group-body");return p=g.hTGC_(e,q,n,r,{width:e.width,height:e.height-(u+v),scrollLeft:w.scrollLeft,scrollTop:w.scrollTop},a),null===p&&rc;c++){if(h=s[c].height,h>=r)return o(t,s[c],n,r,a);r-=h+v}else for(c=0,f=s.length;f>c;c++){if(d=s[c].width,d>=n)return o(t,s[c],n,r,a);n-=d+v}}function i(t,e,n){var r,o,i=t.path,a=this,u=a.grid,l=a.grid.columns.length,c=document.getElementById(u.uid+"-gf"+i.join("_"));if(c){var f=document.getElementById(u.uid+"-g"+i.join("_")).querySelector(".gc-trellis-group-body"),s=X.poI_(u,e,n,c,f);if(s){for(o=0;l>o&&(r=c.querySelector(".c"+o),!r||!X.poI_(u,e,n,r,f));o++);return{area:q,row:-1,column:-1,groupInfo:{path:i,area:J,row:-1,column:o===l?-1:o}}}}return null}function a(t,e,n){var r,i,a,l,c=this,f=c.gLI_()[q],s=c.grid,d=s.gCI_().contentRect,h=V.gSS(s),p=t-d.left,g=e-d.top;if(s.layoutEngine.options.rightToLeft){var v=f.contentHeight>f.height;p=f.width+(v?h.width:0)-p}if(!u(f,{left:p,top:g}))return null;var m=s.gSO_(q);for(p+=m.left,g+=m.top,r=s.gI_,a=0,l=r.length;l>a;a++){if(i=r[a].width,i>=p)return o(c,r[a],p,g,n);p-=i+c.options.gapSize}return{area:"viewport",row:-1,column:-1}}function u(t,e){return e.left>=t.left&&e.top>=t.top&&e.left<=t.left+t.width&&e.top<=t.top+t.height}function l(t,e){var n=E(e);this.ismouseEvent_=!1,f.call(this,t,n)&&(e.handled=!0)}function c(t,e){this.ismouseEvent_=!0,f.call(this,t,e)}function f(t,e){var n=this,r=n.grid,o=e.target,i=n.mdHI_=n.hT_(e);if(i&&i.groupInfo&&(!n.ismouseEvent_||0===e.button)){var a=i.groupInfo,u=document.getElementById(r.uid+"-gr"+a.path.join("_")+"-r"+a.row),l=u&&X.poIP_(r,e.pageX-window.pageXOffset,e.pageY-window.pageYOffset,u.getBoundingClientRect(),!1);return a&&"groupContent"===a.area&&a.row>=0&&!n.dragDropStatus&&l&&(n.startMousePosition={left:e.pageX,top:e.pageY},o&&o.draggable&&(o.draggable=!1,o.addEventListener("dragstart",function(t){t.preventDefault()}))),!1}}function s(t,e){var n=this;e||"[object TouchEvent]"!==Object.prototype.toString.call(t)||(e=t);var r=E(e);h.call(n,r)&&(e.handled=!0)}function d(t,e){var n=this;e||"[object MouseEvent]"!==Object.prototype.toString.call(t)||(e=t),h.call(n,e)}function h(t){var e=this;e.mouseMoveHitInfo_=e.hT_(t);var n=e.grid;if(!e.dragDropStatus&&e.startMousePosition&&Math.pow(t.pageX-e.startMousePosition.left,2)+Math.pow(t.pageY-e.startMousePosition.top,2)>25){e.dragDropStatus=Q;var r=e.mdHI_.groupInfo,o={status:"beforeDragging",event:t,dataItem:e.grid.gGI_(r.path).data.getItem(r.row,!0),hitInfo:U.cloneDeep(e.mdHI_),cancel:!1};if(e.dragDropping.raise(n,o),!o.cancel){var i=document.getElementById(n.uid+"-gr"+r.path.join("_")+"-r"+r.row);_.call(e,t,i),e.dragDropStatus=tt}}!e.moveGroupItem_||e.dragDropStatus!==tt&&e.dragDropStatus!==et||(e.dragDropStatus=et,y.call(e,t))}function p(t,e){var n=t,r=this,o=e.deltaY,i=e.deltaX;if(i||o){var a,u,l=r.gLI_().viewport,c=l.heightMath.abs(o)){if(u=Math.max(0,Math.min(v+i,h)),Math.round(u)===Math.round(v))return;n.sSPO_(q,{left:u})}}e.preventDefault()}function g(t){w.call(this,t)}function v(){var t=this;t.dragDropStatus!==tt&&t.dragDropStatus!==et&&I.call(t)}function m(t,e){var n=t,r=t.layoutEngine,o=void 0;if(r.hTI_=r.hT_(e),o=r.hTI_,o&&o.area===q){var i=void 0,a=o.groupInfo;i=o.groupInfo&&o.groupInfo.area===K?n.gGI_(a.path).data.getItem(a.row,!0):n.data.getItem(o.row,!0),n.rowClick.raise(n,{event:e,hitInfo:o,item:i,idList:X.getIdList(n,o)})}}function _(t,e){var n=this,r=n.mdHI_.groupInfo,o=V.getStyle(e),i=parseFloat(o.getPropertyValue(nt)),a=parseFloat(o.getPropertyValue(rt)),u=V.offset(e);e.removeAttribute("id");var l=n.grid.gGI_(r.path);n.moveGroupItem_=l.data.getItem(r.row,!0),n.placeHolderElement_||(n.placeHolderElement_=e.cloneNode(!1),V.setCss(n.placeHolderElement_,{background:"rgba(153, 153, 153, 0.5)",width:o.width,height:o.height}),V.addClass(n.placeHolderElement_,"gc-trellis-place-holder")),C(t,n),n.movingElement_=e;var c=document.getElementById(n.grid.uid),f=n.grid.gCI_().contentRect;c.appendChild(n.movingElement_),n.startElementPosition_={left:u.left-a-f.left,top:u.top-i-f.top},V.setCss(n.movingElement_,{position:"absolute",left:n.startElementPosition_.left+"px",top:n.startElementPosition_.top+"px",right:"auto"}),n.ismouseEvent_?(n.mouseUpHandler_=w.bind(n),Y.regist(document,"mousemove",n.mvFn_),Y.regist(document,"mouseup",n.mouseUpHandler_)):(z(document).on("touchmove",n.tmFn_),z(document).on("touchend",n.teFn_)),document.body.className=document.body.className+" no-select"}function y(t){var e=this;b.apply(e,[t]),e.mdHI_&&e.mdHI_.groupInfo&&(V.setCss(e.movingElement_,{left:t.pageX-e.startMousePosition.left+e.startElementPosition_.left+"px",top:t.pageY-e.startMousePosition.top+e.startElementPosition_.top+"px",right:"auto"}),C(t,e))}function w(t){var e=this;if(b.apply(e,[t,!0]),e.dragDropStatus===tt||e.dragDropStatus===et){e.ismouseEvent_?(Y.unRegist(document,"mousemove",e.mvFn_),Y.unRegist(document,"mouseup",e.mouseUpHandler_)):(z(document).off("touchmove",e.tmFn_),z(document).off("touchend",e.teFn_)),e.movingElement_&&e.movingElement_.parentNode&&e.movingElement_.parentNode.removeChild(e.movingElement_),e.placeHolderElement_&&e.placeHolderElement_.parentNode&&e.placeHolderElement_.parentNode.removeChild(e.placeHolderElement_),document.body.className=document.body.className.replace("no-select","");var n={status:"beforeDropping",event:t,dataItem:e.moveGroupItem_,hitInfo:U.cloneDeep(e.mouseMoveHitInfo_),cancel:!1};e.dragDropping.raise(e.grid,n),n.cancel||S(e),I.call(e),e.grid.invalidate()}}function b(t,e){var n=this,r=n.grid,o=r.ods_;if(e)return void o.raise(r,{cancel:!0});var i=n.gLI_()[q],a=r.gCI_().contentRect,u=t.pageX-a.left,l=t.pageY-a.top;if(r.layoutEngine.options.rightToLeft){var c=i.contentHeight>i.height;u=i.width+(c?V.gSS(r).width:0)-u}var f=function(t,e,n){return n=Math.max(e,n),t=e>t?t-e:t>n?t-n:0,Math.log((Math.abs(t)+ot)/ot)/Math.log(2)*(t>0?it:-it)},s=f(l,0,i.height),d=f(u,0,i.width);0!==d||0!==s?(n.dragScrollFlag=!0,o.raise(r,{area:"viewport",moveOffset:function(t){return{top:t.top+s,left:t.left+d}}})):n.dragScrollFlag&&(n.dragScrollFlag=!1,o.raise(r,{cancel:!0}))}function I(){var t=this;t.mouseMoveHandler_=null,t.mouseUpHandler_=null,t.moveGroupItem_=null,t.mdHI_=null,t.placeHolderElement_=null,t.placeHolderGroupInfo_=null,t.movingElement_=null,t.dragDropStatus=null,t.startMousePosition=null}function S(t){if(t.placeHolderGroupInfo_&&t.mdHI_){var e,n,r,o,i=t.grid.data.groups,a=t.placeHolderGroupInfo_,u=a.path,l=t.mdHI_.groupInfo,c=l.path,f=N.call(t,u),s=N.call(t,c),d=W.call(t,a.row,a.path),h=W.call(t,l.row,l.path);for(t.rowOrder_[s].splice(h,1),a.row>=0?t.rowOrder_[f].splice(d,0,t.moveGroupItem_.sourceIndex):t.rowOrder_[f].push(t.moveGroupItem_.sourceIndex),o=0,r=u.length;r>o;o++)n=u[o],e=i[n].groupDescriptor.field,t.moveGroupItem_[e]!==i[n].name&&(t.moveGroupItem_[e]=i[n].name),i=i[n].groups;t.grid.data.refresh()}}function E(t){return{pageX:t.targetTouches[0].pageX,pageY:t.targetTouches[0].pageY,target:t.target}}function C(t,e){if(e.mouseMoveHitInfo_){var n=e.mouseMoveHitInfo_.groupInfo;if(n){var r=e.grid.gGI_(n.path),o=r.data;if(o&&o.isBottomLevel){var i=document.querySelector("#"+e.grid.uid+"-g"+n.path.join("_")+" .gc-trellis-group-body-inner"),a=null,u=e.mdHI_.groupInfo,l=JSON.stringify(n.path)!==JSON.stringify(u.path);if(n.row>=0)if(l)a=document.getElementById(e.grid.uid+"-gr"+n.path.join("_")+"-r"+n.row);else{var c=n.path,f=W.call(e,n.row,c),s=W.call(e,u.row,c),d=f>=s?f+1:f;a=document.getElementById(e.grid.uid+"-gr"+n.path.join("_")+"-r"+e.mappingFromViewIndex_(d,c))}a?i.insertBefore(e.placeHolderElement_,a):i.appendChild(e.placeHolderElement_);var h=e.grid.layoutEngine;if(h.getInnerGroupWidth&&l){var p=e.placeHolderElement_.getBoundingClientRect(),g=h.getInnerGroupWidth(r,{additionalWidth:p.width});i.style.width=g+"px"}e.placeHolderGroupInfo_=U.cloneDeep(n)}}}}function T(){var t=this;if(t.cacheViewportLayout_)return t.cacheViewportLayout_;var e=t.grid,n=e.gCI_().contentRect,r=n.width,o=n.height,i=t.options.gapSize,a=V.gSS(e),u=0,l=o,c=e.data.groups;if(!c||c.length<=0)l=0;else{for(var f=0,s=e.gI_,d=0,h=s.length;h>d;d++)u+=Math.ceil(H(t,s[d])),f=Math.max(f,s[d].height);u+=(h-1)*i,u>r&&(l-=a.height),l=Math.max(l,f)}return r=o>=l?r:r-a.width,o=r>=u?o:o-a.height,t.cacheViewportLayout_={top:0,left:0,width:r,height:o,contentWidth:u,contentHeight:l},t.cacheViewportLayout_}function H(t,e){if(e.width)return e.width;var n=t.options,r=n.groupLayoutFn(e.data),o=0,i=e.data;if(i.isBottomLevel)o=n.panelUnitWidth*r.units;else{var a=0,u=e.children.length;if(r.direction===Z)for(;u>a;a++)o=Math.max(o,H(t,e.children[a]));else{for(;u>a;a++)o+=H(t,e.children[a]);o+=(u-1)*n.gapSize}}return e.width=o,o}function L(t,e,n,r){var o=t.options,i=t.grid,a=i.layoutEngine,u=e.data,l=o.gapSize,c=o.groupLayoutFn(u),f=a.gGHH_(u),s=a.gGFH_(u);f=f?f+l:0;var d,h=0;if(e.isBottomLevel)d=a.gIGH_(e,{width:c.units*o.panelUnitWidth},x.bind(t)),r=r-f-s,h=Math.max(r,d)+f+s;else{var p,g=e.children,v=g.length;if(c.direction===Z){for(p=0;v-1>p;p++)d=L(t,g[p],n,0),n&&(g[p].height=d),h+=d+l;r=r-h-f,d=L(t,g[p],n,r),n&&(g[p].height=d),h+=d}else for(r-=f,p=0;v>p;p++)d=L(t,g[p],n,r),n&&(g[p].height=d),h=Math.max(h,d);h+=f+s}return h}function x(t,e){return{cssClass:"gc-trellis-row "+(this.grid.layoutEngine.options.rightToLeft?"gc-float-right":"gc-float-left"),ownerCssClass:"trellis-grouping",style:{position:"static",overflow:"hidden"}}}function O(t,e){var n,r,o=e.data,i=t.grid,a=t.options,u=a.groupLayoutFn,l=u(o),c=e.children,f=i.layoutEngine,s=f.options.rightToLeft,d=a.panelUnitWidth,h=l.units*d,p=e.path,g=a.gapSize,v="",m=0;if(c)for(n=0;n';for(n=0,r=_.length;r>n;n++)_[n]&&(w+=i.rR_(_[n]));w+="",v=w}var b=u(o.parent).direction,I=p[o.level],S=c&&c.length?{}:{marginTop:g};o.isBottomLevel&&(S=U.assign({width:l.units*d,position:"relative",overflow:"auto",minHeight:m},S));var E=o.isBottomLevel?"gc-trellis-group-body gc-trellis-group-content":"gc-trellis-group-body",C={};return 0!==o.level&&b===Z||(s?C.marginRight=0===I?0:g:C.marginLeft=0===I?0:g),b===Z&&(C.clear="both"),v='
'+M.call(t,e,S.width)+'
'+v+"
"+R.call(t,e,S.width)+"
"}function M(t,e){var n=this,r=n.grid,o=r.layoutEngine,i=t.data.groupDescriptor;if(i.header.visible){if(i.header.template){var a=o.gIGHRI_(t,e,j);return r.rR_(a)}var u=t.data,l={height:o.gGHH_(u),width:e};return t.data.level&&(l.marginTop=n.options.gapSize),'
'+u.name+"
"}return""}function R(t,e){var n=this,r=n.grid,o=t.data.groupDescriptor,i=r.layoutEngine;if(o.footer.visible){if(o.footer.template){var a=i.gIGHRI_(t,e,D,!0);return r.rR_(a)}return''}return""}function j(t,e){return{cssClass:"gc-trellis-group-header "+(t.options.rightToLeft?"gc-float-right":"gc-float-left"),ownerCssClass:"trellis-grouping",style:{height:t.gGHH_(e.data),position:"relative",overflow:"hidden","float":"none"}}}function D(t,e){return{cssClass:"gc-trellis-group-footer "+(t.options.rightToLeft?"gc-float-right":"gc-float-left"),style:{height:t.gGFH_(e.data),position:"relative",overflow:"hidden","float":"none"}}}function F(t,e){var n,r,o=this,i=o.grid,a=[],u=e.action;if("removeDataItems"===u){var l=e.removeAt;if(Y.isArray(l))a=U.clone(l);else{var c=Y.isNumber(e.count)?e.count:1;for(n=e.removeAt+c;n>e.removeAt;n--)a.push(n-1)}for(a.sort(function(t,e){return e-t}),n=0,r=a.length;r>n;n++)P.call(o,a[n])}else i&&(o.rowOrder_={},A.call(o,i.data.groups));if(!i.data.isRefreshSuspended()){var f="addDataColumn"===u||"addCalculatedColumn"===u||"removeCalculatedColumn"===u||"removeDataItems"===u;o.grid.invalidate(f)}}function P(t){var e=this;if(!U.isEmpty(e.rowOrder_)){var n,r,o=null;U.each(e.rowOrder_,function(e){for(n=0,r=e.length;r>n;n++)e[n]===t?o=n:e[n]>t&&(e[n]-=1),n===r-1&&null!==o&&(e.splice(o,1),o=null)})}}function A(t){var e=this;if(t)for(var n=0,r=t.length;r>n;n++){var o=t[n];o.isBottomLevel?e.rowOrder_[N.call(e,o.path)]=G(o):A.call(e,o.groups)}}function N(t){for(var e=this.grid.data.groups,n=[],r=0,o=t.length;o>r;r++)n.push(e[t[r]].name),e=e[t[r]].groups;return n.join("_")}function k(t,e){var n=this,r=U.clone(t);if(!U.isEmpty(n.rowOrder_)){var o,i,a,u=G(e.data),l=n.rowOrder_[N.call(n,e.path)],c=n.mdHI_&&n.mdHI_.groupInfo;for(o=0,i=t.length;i>o;o++)a=l.indexOf(u[o]),n.dragDropStatus===et&&c&&U.isEqual(c.path,e.path)&&c.row===o?r[a]=null:r[a]=t[o]}return r}function G(t){return U.map(t.getItems(),"sourceIndex")}function W(t,e){var n,r=this,o=r.grid.gGI_(e);if(U.isEmpty(r.rowOrder_))n=t;else{var i=G(o.data),a=r.rowOrder_[N.call(r,e)];n=a.indexOf(i[t])}return n}n(1);var B=n(5).Event,U=n(6),V=n(8),Y=n(9),X=n(10),z=n(11),q="viewport",$="groupHeader",K="groupContent",J="groupFooter",Z="vertical",Q="preparedrag",tt="startdrag",et="dragmoving",nt="margin-top",rt="margin-left",ot=50,it=10,at=function(t){var e=this;e.name="TrellisGrouping",e.className="trellis-grouping",e.options=U.defaults(t||{},e.getDefaultOptions_()),e.dragDropping=new B};at.prototype={init_:function(t){var e=this;e.grid=t,e.rowOrder_={},e.mvFn_=d.bind(e),e.tmFn_=s.bind(e),e.teFn_=g.bind(e)},rE_:function(){var t=this,e=t.grid;e.omd_.addHandler(c,t),e.omw_.addHandler(p,t),e.otos_.addHandler(l,t),e.otm_.addHandler(s,t),e.omm_.addHandler(t.mvFn_),e.omu_.addHandler(v,t),e.onMouseClick_.addHandler(m,t),e.data.collectionChanged_.addHandler(F,t)},uRE_:function(){var t=this,e=t.grid;e.omw_.removeHandler(p,t),e.omd_.removeHandler(c,t),e.omu_.removeHandler(v,t),e.otos_.removeHandler(l,t),e.otm_.removeHandler(s,t),e.omm_.removeHandler(t.mvFn_),e.onMouseClick_.removeHandler(m,t),e.data.collectionChanged_.removeHandler(F,t)},gLI_:function(){return{viewport:T.call(this)}},gRI_:function(t){var n,o,i=this,a=Y.isNil(t.includeRows)?!0:t.includeRows,u=t.offsetTop,l=T.call(i),c=i.grid.layoutEngine.options.rightToLeft,f=(n={position:"absolute"},r(n,c?"right":"left",l.left),r(n,"top",l.top),r(n,"height",l.height),r(n,"width",l.width),r(n,"overflow","hidden"),n),s=(o={position:"absolute",height:l.contentHeight-(0>u?u:0),width:l.contentWidth+1},r(o,c?"right":"left",0),r(o,"top",0),o),d={outerDivCssClass:"gc-viewport gc-trellis-viewport",outerDivStyle:f,innerDivStyle:s,innerDivTranslate:{left:(c?t.offsetLeft:-t.offsetLeft)||0,top:-t.offsetTop||0},renderedRows:[]};return a&&d.renderedRows.push(e.call(i)),U.isEmpty(i.rowOrder_)&&i.grid.data.groups&&A.call(i,i.grid.data.groups),d},gRR_:function(t){var e=this;return{left:(e.grid.layoutEngine.options.rightToLeft?t.offsetLeft:-t.offsetLeft)||0,top:-t.offsetTop||0,renderedRows:[{key:e.grid.uid+"-gc-group-container"}]}},gRRI_:function(t,n){return e.call(this)},sSP_:function(){var t=this.gLI_()[q];return!(!t||!(t.heighte.width,o=e.contentHeight>e.height,i=e.height+(r?n.height:0),a=e.width+(o?n.width:0),u=e.contentHeight,l=e.contentWidth,c=[];r&&c.push("scroll-left"),o&&c.push("scroll-top");var f=[],s=(n.height||15)+1,d=(n.width||15)+1;return U.each(c,function(t){var e="scroll-top"===t;f.push({isVertical:e,outerDivCssClass:"gc-grid-viewport-scroll-panel "+t,outerDivStyle:{position:"absolute",top:e?0:i-s,left:e?a-d:0,height:e?i+(r?-1*n.height:0):s,width:e?d:a+(o?-1*n.width:0),overflow:"auto"},innerDivStyle:{position:"relative",height:e?u:1,width:e?1:l}})}),f},hT_:function(t){var e=this,n=t.pageX,r=t.pageY;return a.call(e,n,r,t)},cRC_:function(){var t=this;t.cacheViewportLayout_=null},iGIH_:function(){var t,e,n,r=this,o=r.grid.gI_,i=0;for(t=0,e=o.length;e>t;t++)n=o[t],i=Math.max(i,r.gGH_(n,!1));for(t=0,e=o.length;e>t;t++)o[t].height=r.gGH_(o[t],!0,i)},gGH_:function(t,e,n){var r=this,o=r.grid,i=V.gSS(o),a=o.gCI_().contentRect;if(!n){n=a.height;for(var u=0,l=o.gI_,c=0,f=l.length;f>c;c++)u+=H(r,l[c]);u+=(f-1)*r.options.gapSize,u>a.width&&(n-=i.height)}return L(this,t,e,n)},d_:function(){var t=this;t.uRE_(),t.grid=null},toJSON_:function(){var t=this,e=t.options,n={};n.name=t.name;var r={},o=t.getDefaultOptions_();return U.each(e,function(t,n){"groupLayoutFn"===n&&t?r.groupLayoutFn=Y.serializeFunction(e.groupLayoutFn):U.isEqual(t,o[n])||U.isNil(t)||(Y.isObject(t)?r[n]=Y.serializeObject(Y.extractObject(t,o[n])):r[n]=t)}),U.isEmpty(r)||(n.options=r),n},sSL_:function(){},sLI_:function(){},iLFn_:function(){var t=this.grid;t.invalidate()},cTS_:function(t){var e=t.touchStartHitInfo&&t.touchStartHitInfo.groupInfo;return!(e&&e.area===K&&e.row>=0)},mappingFromViewIndex_:function(t,e){var n,r=this,o=r.grid.gGI_(e);if(U.isEmpty(r.rowOrder_))n=t;else{var i=r.rowOrder_[N.call(r,e)][t],a=G(o.data);n=a.indexOf(i)}return n},getDefaultOptions_:function(){return{panelUnitWidth:150,gapSize:4,groupLayoutFn:function(){return{units:1,direction:"horizontal"}}}}},t.exports=at}()},function(t,e){},,,,function(t,e){"use strict";!function(){var e=function(){function t(t,e,n){this.handler=t,this.self=e,this.priority=n}return t}(),n=function(){function t(){this._handlers=[]}return t.prototype.addHandler=function(t,n){var r=arguments.length<=2||void 0===arguments[2]?1:arguments[2];this._handlers.push(new e(t,n,r)),this.sortHandlers()},t.prototype.removeHandler=function(t,e){for(var n=0;nn?1:n>r?-1:0})},t.prototype.removeHandlersByPriority=function(t){for(var e=null,n=null,r=0;ra&&!n;a++){var u=i[a];u.handler.call(u.self,t,e)}},Object.defineProperty(t.prototype,"hasHandlers",{get:function(){return this._handlers.length>0},enumerable:!0,configurable:!0}),t}();t.exports={Event:n,EventHandler:e}}()},function(t,e,n){(function(t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};(function(){function o(t,e){return t.set(e[0],e[1]),t}function i(t,e){return t.add(e),t}function a(t,e,n){var r=n.length;switch(r){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function u(t,e){for(var n=-1,r=t?t.length:0;++n-1}function d(t,e,n){for(var r=-1,o=t?t.length:0;++r-1;);return n}function T(t,e){for(var n=t.length;n--&&_(e,t[n],0)>-1;);return n}function H(t){return t&&t.Object===Object?t:null}function L(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&r++;return r}function x(t,e){return null==t?Wr:t[e]}function O(t,e,n){for(var r=t.length,o=e+(n?1:-1);n?o--:++on)return!1;var r=e.length-1;return n==r?e.pop():Xi.call(e,n,1),!0}function $(t){var e=this.__data__,n=vt(e,t);return 0>n?Wr:e[n][1]}function K(t){return vt(this.__data__,t)>-1}function J(t,e){var n=this.__data__,r=vt(n,t);return 0>r?n.push([t,e]):n[r][1]=e,this}function Z(t){var e=-1,n=t?t.length:0;for(this.clear();++e=t?t:n),e!==Wr&&(t=t>=e?t:e)),t}function wt(t,e,n,r,o,i,a){var l;if(r&&(l=i?r(t,o,i,a):r(t)),l!==Wr)return l;if(!ir(t))return t;var c=Aa(t);if(c){if(l=Ze(t),!e)return Se(t,l)}else{var f=Ke(t),s=f==wo||f==bo;if(Na(t))return se(t,e);if(f==Eo||f==go||s&&!i){if(M(t))return i?t:{};if(l=Qe(s?{}:t),!e)return Ce(t,mt(l,t))}else{if(!yi[f])return i?t:{};l=tn(t,f,wt,e)}}a||(a=new ut);var d=a.get(t);if(d)return d;if(a.set(t,l),!c)var h=n?We(t):Er(t);return u(h||t,function(o,i){h&&(i=o,o=t[i]),gt(l,i,wt(o,e,n,r,i,t,a))}),l}function bt(t){return ir(t)?Vi(t):{}}function It(t,e,n,r){var o=-1,i=s,a=!0,u=t.length,l=[],c=e.length;if(!u)return l;n&&(e=h(e,I(n))),r?(i=d,a=!1):e.length>=Ur&&(i=E,a=!1,e=new ot(e));t:for(;++on&&(n=-n>o?0:o+n),r=r===Wr||r>o?o:mr(r),0>r&&(r+=o),r=n>r?0:_r(r);r>n;)t[n++]=e;return t}function Tt(t,e){var n=[];return va(t,function(t,r,o){e(t,r,o)&&n.push(t)}),n}function Ht(t,e,n,r,o){var i=-1,a=t.length;for(n||(n=nn),o||(o=[]);++i0&&n(u)?e>1?Ht(u,e-1,n,r,o):p(o,u):r||(o[o.length]=u)}return o}function Lt(t,e){return t&&_a(t,e,Er)}function xt(t,e){return t&&ya(t,e,Er)}function Ot(t,e){e=un(e,t)?[e]:ce(e);for(var n=0,r=e.length;null!=t&&r>n;)t=t[_n(e[n++])];return n&&n==r?t:Wr}function Mt(t,e,n){var r=e(t);return Aa(t)?r:p(r,n(t))}function Rt(t,e){return t>e}function jt(t,e){return null!=t&&(ji.call(t,e)||"object"==("undefined"==typeof t?"undefined":r(t))&&e in t&&null===qe(t))}function Dt(t,e){return null!=t&&e in Object(t)}function Ft(t,e,n){for(var r=n?d:s,o=t[0].length,i=t.length,a=i,u=Array(i),l=1/0,c=[];a--;){var f=t[a];a&&e&&(f=h(f,I(e))),l=Zi(f.length,l),u[a]=!n&&(e||o>=120&&f.length>=120)?new ot(a&&f):Wr}f=t[0];var p=-1,g=u[0];t:for(;++pt}function Vt(t,e){var n=-1,r=Kn(t)?Array(t.length):[];return va(t,function(t,o,i){r[++n]=e(t,o,i)}),r}function Yt(t){var e=Xe(t);return 1==e.length&&e[0][2]?hn(e[0][0],e[0][1]):function(n){return n===t||Nt(n,t,e)}}function Xt(t,e){return un(t)&&dn(e)?hn(_n(t),e):function(n){var r=Ir(n,t);return r===Wr&&r===e?Sr(n,t):Pt(e,r,Wr,ro|oo)}}function zt(t,e,n,r,o){if(t!==e){if(!Aa(e)&&!pr(e))var i=Cr(e);u(i||e,function(a,u){if(i&&(u=a,a=e[u]),ir(a))o||(o=new ut),qt(t,e,u,n,zt,r,o);else{var l=r?r(t[u],a,u+"",t,e,o):Wr;l===Wr&&(l=a),pt(t,u,l)}})}}function qt(t,e,n,r,o,i,a){var u=t[n],l=e[n],c=a.get(l);if(c)return void pt(t,n,c);var f=i?i(u,l,n+"",t,e,a):Wr,s=f===Wr;s&&(f=l,Aa(l)||pr(l)?Aa(u)?f=u:Jn(u)?f=Se(u):(s=!1,f=wt(l,!0)):sr(l)||$n(l)?$n(u)?f=wr(u):!ir(u)||r&&rr(u)?(s=!1,f=wt(l,!0)):f=u:s=!1),a.set(l,f),s&&o(f,l,r,i,a),a["delete"](l),pt(t,n,f)}function $t(t,e,n){var r=-1;e=h(e.length?e:[Mr],I(Ve()));var o=Vt(t,function(t,n,o){var i=h(e,function(e){return e(t)});return{criteria:i,index:++r,value:t}});return w(o,function(t,e){return we(t,e,n)})}function Kt(t,e){return t=Object(t),g(e,function(e,n){return n in t&&(e[n]=t[n]),e},{})}function Jt(t){return function(e){return null==e?Wr:e[t]}}function Zt(t){return function(e){return Ot(e,t)}}function Qt(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;if(on(o))Xi.call(t,o,1);else if(un(o,t))delete t[_n(o)];else{var a=ce(o),u=vn(t,a);null!=u&&delete u[_n(En(a))]}}}return t}function te(t,e,n,r){e=un(e,t)?[e]:ce(e);for(var o=-1,i=e.length,a=i-1,u=t;null!=u&&++oe&&(e=-e>o?0:o+e),n=n>o?o:n,0>n&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r=o){for(;o>r;){var i=r+o>>>1,a=t[i];null!==a&&!hr(a)&&(n?e>=a:e>a)?r=i+1:o=i}return o}return oe(t,e,Mr,n)}function oe(t,e,n,r){e=n(e);for(var o=0,i=t?t.length:0,a=e!==e,u=null===e,l=hr(e),c=e===Wr;i>o;){var f=zi((o+i)/2),s=n(t[f]),d=s!==Wr,h=null===s,p=s===s,g=hr(s);if(a)var v=r||p;else v=c?p&&(r||d):u?p&&d&&(r||!h):l?p&&d&&!h&&(r||!g):h||g?!1:r?e>=s:e>s;v?o=f+1:i=f}return Zi(i,ho)}function ie(t){if("string"==typeof t)return t;if(hr(t))return ga?ga.call(t):"";var e=t+"";return"0"==e&&1/t==-uo?"-0":e}function ae(t,e,n){var r=-1,o=s,i=t.length,a=!0,u=[],l=u;if(n)a=!1,o=d;else if(i>=Ur){var c=e?null:ba(t);if(c)return F(c);a=!1,o=E,l=new ot}else l=e?[]:u;t:for(;++rr?e[r]:Wr;n(a,t[r],u)}return a}function le(t){return Jn(t)?t:[]}function ce(t){return Aa(t)?t:Ca(t)}function fe(t,e,n){var r=t.length;return n=n===Wr?r:n,!e&&n>=r?t:ee(t,e,n)}function se(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function de(t){var e=new t.constructor(t.byteLength);return new Wi(e).set(new Wi(t)),e}function he(t,e){var n=e?de(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function pe(t,e,n){var r=e?n(j(t),!0):j(t);return g(r,o,new t.constructor)}function ge(t){var e=new t.constructor(t.source,qo.exec(t));return e.lastIndex=t.lastIndex,e}function ve(t,e,n){var r=e?n(F(t),!0):F(t);return g(r,i,new t.constructor)}function me(t){return pa?Object(pa.call(t)):{}}function _e(t,e){var n=e?de(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ye(t,e){if(t!==e){var n=t!==Wr,r=null===t,o=t===t,i=hr(t),a=e!==Wr,u=null===e,l=e===e,c=hr(e);if(!u&&!c&&!i&&t>e||i&&a&&l&&!u&&!c||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!c&&e>t||c&&n&&o&&!r&&!i||u&&n&&o||!a&&o||!l)return-1}return 0}function we(t,e,n){for(var r=-1,o=t.criteria,i=e.criteria,a=o.length,u=n.length;++r=u)return l;var c=n[r];return l*("desc"==c?-1:1)}}return t.index-e.index}function be(t,e,n,r){for(var o=-1,i=t.length,a=n.length,u=-1,l=e.length,c=Ji(i-a,0),f=Array(l+c),s=!r;++uo)&&(f[n[o]]=t[o]);for(;c--;)f[u++]=t[o++];return f}function Ie(t,e,n,r){for(var o=-1,i=t.length,a=-1,u=n.length,l=-1,c=e.length,f=Ji(i-u,0),s=Array(f+c),d=!r;++oo)&&(s[h+n[a]]=t[o++]);return s}function Se(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n1?n[o-1]:Wr,a=o>2?n[2]:Wr;for(i=t.length>3&&"function"==typeof i?(o--,i):Wr,a&&an(n[0],n[1],a)&&(i=3>o?Wr:i,o=1),e=Object(e);++ri&&u[0]!==c&&u[i-1]!==c?[]:D(u,c);if(i-=f.length,n>i)return Pe(t,e,je,r.placeholder,Wr,u,f,Wr,Wr,n-i);var s=this&&this!==Hi&&this instanceof r?o:t;return a(s,this,u)}var o=Oe(t);return r}function Re(t){return function(e,n,r){var o=Object(e);if(n=Ve(n,3),!Kn(e))var i=Er(e);var a=t(i||e,function(t,e){return i&&(e=t,t=o[e]),n(t,e,o)},r);return a>-1?e[i?i[a]:a]:Wr}}function je(t,e,n,r,o,i,a,u,l,c){function f(){for(var m=arguments.length,_=Array(m),y=m;y--;)_[y]=arguments[y];if(p)var w=Ue(f),b=L(_,w);if(r&&(_=be(_,r,o,p)),i&&(_=Ie(_,i,a,p)),m-=b,p&&c>m){var I=D(_,w);return Pe(t,e,je,f.placeholder,n,_,I,u,l,c-m)}var S=d?n:this,E=h?S[t]:t;return m=_.length,u?_=mn(_,u):g&&m>1&&_.reverse(),s&&m>l&&(_.length=l),this&&this!==Hi&&this instanceof f&&(E=v||Oe(E)),E.apply(S,_)}var s=e&to,d=e&zr,h=e&qr,p=e&(Kr|Jr),g=e&no,v=h?Wr:Oe(t);return f}function De(t,e,n,r){function o(){for(var e=-1,l=arguments.length,c=-1,f=r.length,s=Array(f+l),d=this&&this!==Hi&&this instanceof o?u:t;++cu))return!1;var c=i.get(t);if(c)return c==e;var f=-1,s=!0,d=o&ro?new ot:Wr;for(i.set(t,e);++f-1&&t%1==0&&e>t}function an(t,e,n){if(!ir(n))return!1;var o="undefined"==typeof e?"undefined":r(e);return("number"==o?Kn(n)&&on(e,n.length):"string"==o&&e in n)?qn(n[e],t):!1}function un(t,e){if(Aa(t))return!1;var n="undefined"==typeof t?"undefined":r(t);return"number"==n||"symbol"==n||"boolean"==n||null==t||hr(t)?!0:Uo.test(t)||!Bo.test(t)||null!=e&&t in Object(e)}function ln(t){var e="undefined"==typeof t?"undefined":r(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function cn(t){var e=Be(t),n=A[e];if("function"!=typeof n||!(e in k.prototype))return!1;if(t===n)return!0;var r=Ia(n);return!!r&&t===r[0]}function fn(t){return!!Mi&&Mi in t}function sn(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||xi;return t===n}function dn(t){return t===t&&!ir(t)}function hn(t,e){return function(n){return null==n?!1:n[t]===e&&(e!==Wr||t in Object(n))}}function pn(t,e){var n=t[1],r=e[1],o=n|r,i=(zr|qr|to)>o,a=r==to&&n==Kr||r==to&&n==eo&&t[7].length<=e[8]||r==(to|eo)&&e[7].length<=e[8]&&n==Kr;if(!i&&!a)return t;r&zr&&(t[2]=e[2],o|=n&zr?0:$r);var u=e[3];if(u){var l=t[3];t[3]=l?be(l,u,e[4]):u,t[4]=l?D(t[3],Xr):e[4]}return u=e[5],u&&(l=t[5],t[5]=l?Ie(l,u,e[6]):u,t[6]=l?D(t[5],Xr):e[6]),u=e[7],u&&(t[7]=u),r&to&&(t[8]=null==t[8]?e[8]:Zi(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o,t}function gn(t,e,n,r,o,i){return ir(t)&&ir(e)&&zt(t,e,Wr,gn,i.set(e,t)),t}function vn(t,e){return 1==e.length?t:Ot(t,ee(e,0,-1))}function mn(t,e){for(var n=t.length,r=Zi(e.length,n),o=Se(t);r--;){var i=e[r];t[r]=on(i,n)?o[i]:Wr}return t}function _n(t){if("string"==typeof t||hr(t))return t;var e=t+"";return"0"==e&&1/t==-uo?"-0":e}function yn(t){if(null!=t){try{return Ri.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function wn(t){for(var e=-1,n=t?t.length:0,r=0,o=[];++eo&&(o=Ji(r+o,0)),m(t,Ve(e,3),o)}function Sn(t,e,n){var r=t?t.length:0;if(!r)return-1;var o=null==n?0:mr(n);return 0>o&&(o=Ji(r+o,0)),_(t,e,o)}function En(t){var e=t?t.length:0;return e?t[e-1]:Wr}function Cn(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],i=t.length;for(e=Ve(e,3);++re?0:e)):[]}function xn(t){return t&&t.length?ae(t):[]}function On(t,e){return ue(t||[],e||[],gt)}function Mn(t,e,n){var r=Aa(t)?c:St;return n&&an(t,e,n)&&(e=Wr),r(t,Ve(e,3))}function Rn(t,e){var n=Aa(t)?f:Tt;return n(t,Ve(e,3))}function jn(t,e){var n=Aa(t)?u:va;return n(t,Ve(e,3))}function Dn(t,e){var n=Aa(t)?l:ma;return n(t,Ve(e,3))}function Fn(t,e,n,r){t=Kn(t)?t:Lr(t),n=n&&!r?mr(n):0;var o=t.length;return 0>n&&(n=Ji(o+n,0)),dr(t)?o>=n&&t.indexOf(e,n)>-1:!!o&&_(t,e,n)>-1}function Pn(t,e){var n=Aa(t)?h:Vt;return n(t,Ve(e,3))}function An(t,e,n){var r=Aa(t)?g:y,o=arguments.length<3;return r(t,Ve(e,4),n,o,va)}function Nn(t,e,n){var r=Aa(t)?v:ne;return n&&an(t,e,n)&&(e=Wr),r(t,Ve(e,3))}function kn(){return Date.now()}function Gn(t,e,n){e=n?Wr:e;var r=Ae(t,Kr,Wr,Wr,Wr,Wr,Wr,e);return r.placeholder=Gn.placeholder,r}function Wn(t,e,n){e=n?Wr:e;var r=Ae(t,Jr,Wr,Wr,Wr,Wr,Wr,e);return r.placeholder=Wn.placeholder,r}function Bn(t,e,n){function r(e){var n=d,r=h;return d=h=Wr,_=e,g=t.apply(r,n)}function o(t){return _=t,v=setTimeout(u,e),y?r(t):g}function i(t){var n=t-m,r=t-_,o=e-n;return w?Zi(o,p-r):o}function a(t){var n=t-m,r=t-_;return m===Wr||n>=e||0>n||w&&r>=p}function u(){var t=kn();return a(t)?l(t):void(v=setTimeout(u,i(t)))}function l(t){return v=Wr,b&&d?r(t):(d=h=Wr,g)}function c(){_=0,d=m=h=v=Wr}function f(){return v===Wr?g:l(kn())}function s(){var t=kn(),n=a(t);if(d=arguments,h=this,m=t,n){if(v===Wr)return o(m);if(w)return v=setTimeout(u,e),r(m)}return v===Wr&&(v=setTimeout(u,e)),g}var d,h,p,g,v,m,_=0,y=!1,w=!1,b=!0;if("function"!=typeof t)throw new TypeError(Vr);return e=yr(e)||0,ir(n)&&(y=!!n.leading,w="maxWait"in n,p=w?Ji(yr(n.maxWait)||0,e):p,b="trailing"in n?!!n.trailing:b),s.cancel=c,s.flush=f,s}function Un(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(Vr);var n=function r(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a),a};return n.cache=new(Un.Cache||Z),n}function Vn(t,e){if("function"!=typeof t)throw new TypeError(Vr);return e=Ji(e===Wr?t.length-1:mr(e),0),function(){for(var n=arguments,r=-1,o=Ji(n.length-e,0),i=Array(o);++r-1&&t%1==0&&lo>=t}function ir(t){var e="undefined"==typeof t?"undefined":r(t);return!!t&&("object"==e||"function"==e)}function ar(t){return!!t&&"object"==("undefined"==typeof t?"undefined":r(t))}function ur(t){return fr(t)&&t!=+t}function lr(t){return null===t}function cr(t){return null==t}function fr(t){return"number"==typeof t||ar(t)&&Pi.call(t)==So}function sr(t){if(!ar(t)||Pi.call(t)!=Eo||M(t))return!1;var e=qe(t);if(null===e)return!0;var n=ji.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ri.call(n)==Fi}function dr(t){return"string"==typeof t||!Aa(t)&&ar(t)&&Pi.call(t)==Lo}function hr(t){return"symbol"==("undefined"==typeof t?"undefined":r(t))||ar(t)&&Pi.call(t)==xo}function pr(t){return ar(t)&&or(t.length)&&!!_i[Pi.call(t)]}function gr(t){return t===Wr}function vr(t){if(!t)return 0===t?t:0;if(t=yr(t),t===uo||t===-uo){var e=0>t?-1:1;return e*co}return t===t?t:0}function mr(t){var e=vr(t),n=e%1;return e===e?n?e-n:e:0}function _r(t){return t?yt(mr(t),0,so):0}function yr(t){if("number"==typeof t)return t;if(hr(t))return fo;if(ir(t)){var e=rr(t.valueOf)?t.valueOf():t;t=ir(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Xo,"");var n=Ko.test(t);return n||Zo.test(t)?wi(t.slice(2),n?2:8):$o.test(t)?fo:+t}function wr(t){return Ee(t,Cr(t))}function br(t){return null==t?"":ie(t)}function Ir(t,e,n){var r=null==t?Wr:Ot(t,e);return r===Wr?n:r}function Sr(t,e){return null!=t&&Je(t,e,Dt)}function Er(t){var e=sn(t);if(!e&&!Kn(t))return Wt(t);var n=en(t),r=!!n,o=n||[],i=o.length;for(var a in t)!jt(t,a)||r&&("length"==a||on(a,i))||e&&"constructor"==a||o.push(a);return o}function Cr(t){for(var e=-1,n=sn(t),r=Bt(t),o=r.length,i=en(t),a=!!i,u=i||[],l=u.length;++e>>1,go="[object Arguments]",vo="[object Array]",mo="[object Boolean]",_o="[object Date]",yo="[object Error]",wo="[object Function]",bo="[object GeneratorFunction]",Io="[object Map]",So="[object Number]",Eo="[object Object]",Co="[object Promise]",To="[object RegExp]",Ho="[object Set]",Lo="[object String]",xo="[object Symbol]",Oo="[object WeakMap]",Mo="[object ArrayBuffer]",Ro="[object DataView]",jo="[object Float32Array]",Do="[object Float64Array]",Fo="[object Int8Array]",Po="[object Int16Array]",Ao="[object Int32Array]",No="[object Uint8Array]",ko="[object Uint8ClampedArray]",Go="[object Uint16Array]",Wo="[object Uint32Array]",Bo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Uo=/^\w*$/,Vo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(\.|\[\])(?:\4|$))/g,Yo=/[\\^$.*+?()[\]{}|]/g,Xo=/^\s+|\s+$/g,zo=/\\(\\)?/g,qo=/\w*$/,$o=/^[-+]0x[0-9a-f]+$/i,Ko=/^0b[01]+$/i,Jo=/^\[object .+?Constructor\]$/,Zo=/^0o[0-7]+$/i,Qo=/^(?:0|[1-9]\d*)$/,ti="\\ud800-\\udfff",ei="\\u0300-\\u036f\\ufe20-\\ufe23",ni="\\u20d0-\\u20f0",ri="\\ufe0e\\ufe0f",oi="["+ti+"]",ii="["+ei+ni+"]",ai="\\ud83c[\\udffb-\\udfff]",ui="(?:"+ii+"|"+ai+")",li="[^"+ti+"]",ci="(?:\\ud83c[\\udde6-\\uddff]){2}",fi="[\\ud800-\\udbff][\\udc00-\\udfff]",si="\\u200d",di=ui+"?",hi="["+ri+"]?",pi="(?:"+si+"(?:"+[li,ci,fi].join("|")+")"+hi+di+")*",gi=hi+di+pi,vi="(?:"+[li+ii+"?",ii,ci,fi,oi].join("|")+")",mi=RegExp(ai+"(?="+ai+")|"+vi+gi,"g"),_i={};_i[jo]=_i[Do]=_i[Fo]=_i[Po]=_i[Ao]=_i[No]=_i[ko]=_i[Go]=_i[Wo]=!0,_i[go]=_i[vo]=_i[Mo]=_i[mo]=_i[Ro]=_i[_o]=_i[yo]=_i[wo]=_i[Io]=_i[So]=_i[Eo]=_i[To]=_i[Ho]=_i[Lo]=_i[Oo]=!1;var yi={};yi[go]=yi[vo]=yi[Mo]=yi[Ro]=yi[mo]=yi[_o]=yi[jo]=yi[Do]=yi[Fo]=yi[Po]=yi[Ao]=yi[Io]=yi[So]=yi[Eo]=yi[To]=yi[Ho]=yi[Lo]=yi[xo]=yi[No]=yi[ko]=yi[Go]=yi[Wo]=!0,yi[yo]=yi[wo]=yi[Oo]=!1;var wi=parseInt,bi="object"==r(e)&&e,Ii=bi&&"object"==r(t)&&t,Si=Ii&&Ii.exports===bi,Ei=H("object"==("undefined"==typeof n?"undefined":r(n))&&n),Ci=H("object"==("undefined"==typeof self?"undefined":r(self))&&self),Ti=H("object"==r(this)&&this),Hi=Ei||Ci||Ti||Function("return this")(),Li=Array.prototype,xi=Object.prototype,Oi=Hi["__core-js_shared__"],Mi=function(){var t=/[^.]+$/.exec(Oi&&Oi.keys&&Oi.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Ri=Function.prototype.toString,ji=xi.hasOwnProperty,Di=0,Fi=Ri.call(Object),Pi=xi.toString,Ai=RegExp("^"+Ri.call(ji).replace(Yo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ni=Si?Hi.Buffer:Wr,ki=Hi.Reflect,Gi=Hi.Symbol,Wi=Hi.Uint8Array,Bi=ki?ki.enumerate:Wr,Ui=Object.getOwnPropertySymbols,Vi=Object.create,Yi=xi.propertyIsEnumerable,Xi=Li.splice,zi=Math.floor,qi=Object.getPrototypeOf,$i=Hi.isFinite,Ki=Object.keys,Ji=Math.max,Zi=Math.min,Qi=ze(Hi,"DataView"),ta=ze(Hi,"Map"),ea=ze(Hi,"Promise"),na=ze(Hi,"Set"),ra=ze(Hi,"WeakMap"),oa=ze(Object,"create"),ia=ra&&new ra,aa=!Yi.call({valueOf:1},"valueOf"),ua={},la=yn(Qi),ca=yn(ta),fa=yn(ea),sa=yn(na),da=yn(ra),ha=Gi?Gi.prototype:Wr,pa=ha?ha.valueOf:Wr,ga=ha?ha.toString:Wr;k.prototype=bt(N.prototype),k.prototype.constructor=k,G.prototype.clear=W,G.prototype["delete"]=B,G.prototype.get=U,G.prototype.has=V,G.prototype.set=Y,X.prototype.clear=z,X.prototype["delete"]=q,X.prototype.get=$,X.prototype.has=K,X.prototype.set=J,Z.prototype.clear=Q,Z.prototype["delete"]=tt,Z.prototype.get=et,Z.prototype.has=nt,Z.prototype.set=rt,ot.prototype.add=ot.prototype.push=it,ot.prototype.has=at,ut.prototype.clear=lt,ut.prototype["delete"]=ct,ut.prototype.get=ft,ut.prototype.has=st,ut.prototype.set=dt;var va=He(Lt),ma=He(xt,!0),_a=Le(),ya=Le(!0);Bi&&!Yi.call({valueOf:1},"valueOf")&&(Bt=function(t){return R(Bi(t))});var wa=ia?function(t,e){return ia.set(t,e),t}:Mr,ba=na&&1/F(new na([,-0]))[1]==uo?function(t){return new na(t)}:Dr,Ia=ia?function(t){return ia.get(t)}:Dr,Sa=Jt("length");Ui||($e=Pr),(Qi&&Ke(new Qi(new ArrayBuffer(1)))!=Ro||ta&&Ke(new ta)!=Io||ea&&Ke(ea.resolve())!=Co||na&&Ke(new na)!=Ho||ra&&Ke(new ra)!=Oo)&&(Ke=function(t){var e=Pi.call(t),n=e==Eo?t.constructor:Wr,r=n?yn(n):Wr;if(r)switch(r){case la:return Ro;case ca:return Io;case fa:return Co;case sa:return Ho;case da:return Oo}return e});var Ea=function(){var t=0,e=0;return function(n,r){var o=kn(),i=ao-(o-e);if(e=o,i>0){if(++t>=io)return n}else t=0;return wa(n,r)}}(),Ca=Un(function(t){var e=[];return br(t).replace(Vo,function(t,n,r,o){e.push(r?o.replace(zo,"$1"):n||t)}),e}),Ta=Vn(function(t,e){return Jn(t)?It(t,Ht(e,1,Jn,!0)):[]}),Ha=Vn(function(t){var e=h(t,le);return e.length&&e[0]===t[0]?Ft(e):[]}),La=Vn(function(t,e){e=Ht(e,1);var n=t?t.length:0,r=_t(t,e);return Qt(t,h(e,function(t){return on(t,n)?+t:t}).sort(ye)),r}),xa=Vn(function(t){return ae(Ht(t,1,Jn,!0))}),Oa=Re(In),Ma=Vn(function(t,e){if(null==t)return[];var n=e.length;return n>1&&an(t,e[0],e[1])?e=[]:n>2&&an(e[0],e[1],e[2])&&(e=[e[0]]),e=1==e.length&&Aa(e[0])?e[0]:Ht(e,1,rn),$t(t,e,[])}),Ra=Vn(function(t,e,n){var r=zr;if(n.length){var o=D(n,Ue(Ra));r|=Zr}return Ae(t,r,e,n,o)}),ja=Vn(function(t,e,n){var r=zr|qr;if(n.length){var o=D(n,Ue(ja));r|=Zr}return Ae(e,r,t,n,o)});Un.Cache=Z;var Da=Vn(function(t,e){var n=D(e,Ue(Da));return Ae(t,Zr,Wr,e,n)}),Fa=Vn(function(t,e){var n=D(e,Ue(Fa));return Ae(t,Qr,Wr,e,n)}),Pa=Fe(Rt),Aa=Array.isArray,Na=Ni?function(t){return t instanceof Ni}:Ar,ka=Fe(Ut),Ga=Te(function(t,e){if(aa||sn(e)||Kn(e))return void Ee(e,Er(e),t);for(var n in e)ji.call(e,n)&>(t,n,e[n])}),Wa=Te(function(t,e){if(aa||sn(e)||Kn(e))return void Ee(e,Cr(e),t);for(var n in e)gt(t,n,e[n])}),Ba=Te(function(t,e,n,r){Ee(e,Cr(e),t,r)}),Ua=Vn(function(t){return t.push(Wr,ht),a(Ba,Wr,t)}),Va=Vn(function(t){return t.push(Wr,gn),a(Xa,Wr,t)}),Ya=Te(function(t,e,n){zt(t,e,n)}),Xa=Te(function(t,e,n,r){zt(t,e,n,r)}),za=Vn(function(t,e){return null==t?{}:Kt(t,h(Ht(e,1),_n))});A.assign=Ga,A.assignIn=Wa,A.assignInWith=Ba,A.bind=Ra,A.bindKey=ja,A.compact=wn,A.curry=Gn,A.curryRight=Wn,A.debounce=Bn,A.defaults=Ua,A.defaultsDeep=Va,A.difference=Ta,A.fill=bn,A.filter=Rn,A.intersection=Ha,A.iteratee=Rr,A.keys=Er,A.keysIn=Cr,A.map=Pn,A.mapValues=Tr,A.mP=jr,A.memoize=Un,A.merge=Ya,A.mergeWith=Xa,A.partial=Da,A.partialRight=Fa,A.pick=za,A.property=Fr,A.pullAt=La,A.remove=Cn,A.rest=Vn,A.set=Hr,A.sortBy=Ma,A.take=Ln,A.throttle=Yn,A.toPlainObject=wr,A.union=xa,A.uniq=xn,A.values=Lr,A.zipObject=On,A.extend=Wa,A.extendWith=Ba,A.clone=Xn,A.cloneDeep=zn,A.eq=qn,A.every=Mn,A.find=Oa,A.findIndex=In,A.forEach=jn,A.forEachRight=Dn,A.get=Ir,A.gt=Pa,A.hasIn=Sr,A.identity=Mr,A.includes=Fn,A.indexOf=Sn,A.isArguments=$n,A.isArray=Aa,A.isArrayLike=Kn,A.isArrayLikeObject=Jn,A.isBoolean=Zn,A.isBuffer=Na,A.isDate=Qn,A.isEmpty=tr,A.isEqual=er,A.isFinite=nr,A.isFunction=rr,A.isLength=or,A.isNaN=ur,A.isNil=cr,A.isNull=lr,A.isNumber=fr,A.isObject=ir,A.isObjectLike=ar,A.isPlainObject=sr,A.isString=dr,A.isSymbol=hr,A.isTypedArray=pr,A.isUndefined=gr,A.last=En,A.lt=ka,A.max=kr,A.min=Gr,A.stubArray=Pr,A.stubFalse=Ar,A.noop=Dr,A.now=kn,A.reduce=An,A.some=Nn,A.sortedIndex=Tn,A.sortedIndexBy=Hn,A.startsWith=xr,A.toFinite=vr,A.toInteger=mr,A.toLength=_r,A.toNumber=yr,A.toString=br,A.trim=Or,A.uniqueId=Nr,A.each=jn,A.eachRight=Dn,A.VERSION=Br,u(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){A[t].placeholder=A}),t.exports=A}).call(void 0)}).call(e,n(7)(t),function(){return this}())},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e")},s.getElementOuterText=function(t){return t.outerHTML.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")},s.hasClass=function(t,e){if(t&&t.getAttribute){var n=t.getAttribute("class");if(n)return n=n.replace(/[\t\r\n\f]/g," ").split(" "),n.indexOf(e)>=0}return!1},s.removeClass=function(t,e){if(t&&t.setAttribute&&s.hasClass(t,e)){var n=t.getAttribute("class").split(" "),r=[];u.each(n,function(t){t.toLowerCase()!==e.toLowerCase()&&r.push(t)}),t.setAttribute("class",r.join(" "))}},s.addClass=function(t,e){if(t&&t.setAttribute&&!s.hasClass(t,e)){var n=t.getAttribute("class");t.setAttribute("class",n?n+" "+e:e)}},s.toggleClass=function(t,e,n){n===!0?s.addClass(t,e):s.removeClass(t,e)},s.getElement=function(t){return t instanceof HTMLElement?t:l.isString(t)?document.querySelector(t):null},s.contains=function(t,e){for(var n=e;n;n=n.parentElement)if(n===t)return!0;return!1},s.offset=function(t){var e=t?t.getBoundingClientRect():d;return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},s.gER=function(t){var e=t?t.getBoundingClientRect():d;return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,width:e.width,height:e.height}},s.gCoR=function(t){var e=t?t.getBoundingClientRect():d,n=o(t),r=n.paddingLeft+n.paddingRight,i=n.paddingTop+n.paddingBottom,a=n.borderLeftWidth+n.borderRightWidth,u=n.borderTopWidth+n.borderBottomWidth;return{left:e.left+window.pageXOffset+n.borderLeftWidth+n.paddingLeft,top:e.top+window.pageYOffset+n.borderTopWidth+n.paddingTop,width:Math.max(0,Math.floor(e.width-r-a)),height:Math.max(0,Math.floor(e.height-i-u))}},s.gCoRFn=function(t){var e=o(t),n=e.paddingLeft+e.paddingRight,r=e.paddingTop+e.paddingBottom,i=e.borderLeftWidth+e.borderRightWidth,a=e.borderTopWidth+e.borderBottomWidth;return function(){var o=t.getBoundingClientRect();return{left:o.left+window.pageXOffset+e.borderLeftWidth+e.paddingLeft,top:o.top+window.pageYOffset+e.borderTopWidth+e.paddingTop,width:Math.max(0,Math.floor(o.width-n-i)),height:Math.max(0,Math.floor(o.height-r-a))}}},s.getStyle=function(t){var e=getComputedStyle||window.getComputedStyle;return t&&e?e(t,null):null};var h=["paddingLeft","paddingRight","paddingTop","paddingBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","marginLeft","marginRight","marginTop","marginBottom"];s.gCSV=o,s.getBodyStyle=a,s.setCss=function(t,e){var n=t.style;for(var r in e){var o=e[r];l.isNumber(o)&&r.match(/width|height|left|top|right|bottom|size|padding|margin'/i)&&(o+="px"),n[r]=o.toString()}},s.gSS=function(t){if(t.scS_)return t.scS_;var e=s.createElement('
');return document.body.appendChild(e),t.scS_={width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight},e.parentNode.removeChild(e),t.scS_},s.gSCH=function(){if(s.mSCH)return s.mSCH;var t,e=1e6,n=6e9,r=s.createElement('
');for(document.body.appendChild(r);;){if(t=e+5e5,r.style.height=t+"px",t>n||r.offsetHeight!==t)break;e=t}return r.parentNode.removeChild(r),s.mSCH=e,s.mSCH},s.closest=function(t,e){for(;t;){if(t.matches?t.matches(e):t.msMatchesSelector(e))return t;if(t.parentNode===document)return null;t=t.parentNode}return null};var p=void 0;s.detectRTLMode=function(){if(p)return p;var t=s.createElement('
');document.body.appendChild(t);var e="normal";return 0===t.scrollLeft&&(t.scrollLeft=1e4,e=t.scrollLeft>0?"reverse":"negative"),document.body.removeChild(t),t=null,p=e,e},s.getRTLScrollLeft=function(t){var e=arguments.length<=1||void 0===arguments[1]?"normal":arguments[1];return s.isDomElement(t)?s.tRTLSL(t.scrollLeft,t.scrollWidth-t.clientWidth,s.detectRTLMode(),e):void 0},s.setRTLScrollLeft=function(t,e){var n=arguments.length<=2||void 0===arguments[2]?"normal":arguments[2];if(s.isDomElement(t)){var r=s.detectRTLMode();t.scrollLeft=n===r?e:s.tRTLSL(e,t.scrollWidth-t.clientWidth,n,r)}};var g={normal:0,reverse:1,negative:2};s.tRTLSL=function(t,e,n,o){if(n===o)return t;if(n=g[n],o=g[o],0>=e)return 0;var i=[[[1],[-1,e],[1,-e]],[[-1,e],[1],[-1]],[[1,e],[-1],[1]]];return function(t,e){var n=arguments.length<=2||void 0===arguments[2]?0:arguments[2];return(e>0?t:-t)+n}.apply(void 0,[t].concat(r(i[n][o])))},s.inverseToRTL=function(t){if(!s.isDomElement(t))return t;var e,n="[style]";e="TEMPLATE"===t.tagName?t.content.querySelectorAll(n):t.querySelectorAll(n);var r=function(t,e,n){var r=t.style[e];l.isNilOrWhiteSpace(r)||(t.style[e]="",t.style[n]=r)};return u.forEach(e,function(t){l.isNilOrWhiteSpace(t.style.right)?l.isNilOrWhiteSpace(t.style.left)||r(t,c,f):r(t,f,c),t.style["float"]===f?t.style["float"]=c:t.style["float"]===c&&(t.style["float"]=f)}),t},s.detectBrowserType=function(){if(s.duckTypingBrowserType)return s.duckTypingBrowserType;var t=navigator&&navigator.userAgent,e=!!window.opr&&!!window.opr.addons||!!window.opera||t.indexOf(" OPR/")>=0,n="undefined"!=typeof InstallTrigger,r=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,o=!!document.documentMode,i=!o&&!!window.StyleMedia,a=!!window.chrome&&!!window.chrome.webstore,u=(a||e)&&!!window.CSS,l=!!t.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);return s.duckTypingBrowserType={isOpera:e,isFirefox:n,isSafari:r,isIE:o,isEdge:i,isChrome:a,isBlink:u,isMobileDevice:l}},t.exports=s}()},function(t,e,n){"use strict";!function(){function e(t){return x.isNil(t)?!0:x.isString(t)?t.replace(/\s/g,"").length<1:!1}function r(t,e,n){t&&t.removeEventListener(e,n)}function o(t,e,n){t&&t.addEventListener(e,n)}function i(t){}function a(t){return L.isNumber(t)?"number":L.isBoolean(t)?"boolean":L.isDate(t)?"date":L.isString(t)?"string":L.isArray(t)?"array":L.isObject(t)?"object":""; }function u(t,e){var n=x.isNil(e)||"boolean"==typeof e||""===e;if(n)return"";var r=isNaN(e);return r||0===e||j.hasOwnProperty(t)&&j[t]?""+e:("string"==typeof e&&(e=e.trim()),e+"px")}function l(t){var e={};return function(n){return e.hasOwnProperty(n)?e[n]:(e[n]=t.call(this,n),e[n])}}function c(t){return t.replace(D,"-$1").toLowerCase()}function f(t){return c(t).replace(F,"-ms-")}function s(t){var e="";for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];x.isNil(r)||(e+=P(n)+":",e+=u(n,r)+";")}return e||null}function d(t,e){var n=function(t){return"[object Object]"===Object.prototype.toString.call(t)};if(!n(t)||!n(e))return t;for(var r,o=[{level:-1,value:t,key:null}],i=[],a={};o.length>0;)if(r=o.pop(),L.isNil(r.key)||(i=x.take(i,r.level),i.push(r.key)),L.isObject(r.value)&&!L.isFunction(r.value))for(var u in r.value)o.push({level:r.level+1,value:r.value[u],key:u});else{var l=i.join("."),c=x.get(t,l);c!==x.get(e,l)&&x.set(a,l,c)}return x.isEmpty(a)?null:a}function h(t){var e=x.cloneDeep(t),n=[];e&&n.push(e);for(var r;n.length>0;)if(r=n.pop(),L.isObject(r))for(var o in r)n.push(r[o]),L.isFunction(r[o])&&(r[o]=g(r[o]));return e}function p(t){var e=x.clone(t),n=[];e&&n.push(e);for(var r,o;n.length>0;)if(r=n.pop(),L.isObject(r))for(var i in r)n.push(r[i]),L.isString(r[i])&&(o=v(r[i]),o&&(r[i]=o));return e}function g(t){return t.toString()}function v(t){if(L.isString(t)&&"function"===t.substr(0,8)&&(/\s/.test(t[8])||"("===t[8])){var e=t.indexOf("(")+1,n=t.indexOf(")"),r=t.substr(e,n-e).split(",").map(function(t){return t.replace(/\s+/,"")}),o=t.indexOf("{")+1,i=t.lastIndexOf("}");return new Function(r,t.substr(o,i-o))}return null}function m(t){var e;try{e=GC.Spread.Views.Plugins[t]}catch(n){}return e}function _(t){var e={},n=GC&&GC.Spread&&GC.Spread.Views&&GC.Spread.Views.LocaleResource&&GC.Spread.Views.LocaleResource.content;for(var r in t)e[r]=n&&n[r];return e}function y(t){var e=L.toDate(t);if(isNaN(e.getTime()))return t;var n=e.getFullYear().toString(),r=(e.getMonth()+1).toString(),o=e.getDate().toString();return w(n,4)+"-"+w(r,2)+"-"+w(o,2)}function w(t,e){var n=e-t.length+1;return n>=0?new Array(n).join("0")+t:t}function b(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);n.prototype=e.prototype,t.prototype=new n}function I(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""}function S(t,e,n){var r=function(t){return x.isUndefined(t)?t:n?(t+"").trim().toLowerCase():(t+"").trim().toString()},o=r(e);return function(e){if(null==e)return!1;var r=E(e,t);return r=x.isUndefined(r)?r:n?(r+"").toLowerCase():(r+"").toString(),r===o?void 0!==o||t in e:x.isEqual(r,o)}}function E(){var t=arguments.length<=0?void 0:arguments[0],e=arguments.length<=1?void 0:arguments[1];if(!x.isNil(t)&&!x.isNil(e)){e=x.isArray(e)?e:x.isString(e)?e.split("."):[e];for(var n=0,r=e.length,o=arguments.length>2;t&&r>n;){if(o&&n===r-1)return void(t[e[n]]=arguments.length<=2?void 0:arguments[2]);t=t[e[n++]]}return t}}function C(t,e,n,r){x.isArray(t)||(t=[t]),x.isArray(e)||(e=[e]);var o=r?[]:{};x.forEach(t,function(t){o[t]||(o[t]=1)});var i=[],a=[],u=[],l=0,c=0,f=0;return x.forEach(e,function(t){o[t]?(o[t]=2,n&&(a[f++]=t)):(o[t]=3,n&&(i[l++]=t))}),n&&x.forEach(o,function(t,e){1===t&&(u[c++]=+e)}),n?{add:i,remove:u,keep:a}:{map:o}}function T(t){return L.isNumber(t)?H(t):new Date(t)}function H(t){var e=new Date(1899,11,30),n=864e5,r=t-Math.floor(t);return 0>t&&r&&(t=Math.floor(t)-r),new Date(t*n+ +e)}var L={},x=n(6);L.isString=x.isString,L.regist=o,L.unRegist=r,L.isNilOrWhiteSpace=e,L.isNumber=x.isNumber,L.isInt=x.isInteger,L.isBoolean=x.isBoolean,L.isFunction=x.isFunction,L.isUndefined=x.isUndefined,L.isDate=x.isDate,L.isArray=x.isArray,L.isObject=x.isObject,L.debugLog=i,L.getType=a,L.isNull=x.isNull,L.isNil=x.isNil;var O={Back:8,Tab:9,Enter:13,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Left:37,Up:38,Right:39,Down:40,Delete:46,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123};L.Key=O;var M=function(t){var e=t.keyCode,n=e>47&&58>e||e>64&&91>e||e>95&&112>e||e>185&&193>e||e>218&&223>e;return n};L.isPrintableKey=M;var R={Text:"text",CheckBox:"checkbox",Date:"date",Color:"color",Number:"number"};L.EditorType=R;var j={columnCount:!0,flex:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeOpacity:!0},D=/([A-Z])/g,F=/^-ms-/,P=l(function(t){return f(t)});L.cMFS=s,L.extractObject=d,L.serializeObject=h,L.deserializeObject=p,L.serializeFunction=g,L.deserializeFunction=v,L.findPlugin=m,L.getResource=_,L.normalizeDate=y,L.extends_=b,L.caC=I,L.mP=S,L.sOP=function(t,e){return E(t,e)},L.gOP=function(t,e,n){return E(t,e,n)},L.compareArray=C,L.toDate=T,t.exports=L}()},function(t,e,n){"use strict";!function(){function e(t){var n,r,o,i=0;for(n=0,r=t.length;r>n;n++)o=t[n],i=o.hasOwnProperty("columns")?Math.max(i,1+e(o.columns)):Math.max(i,1);return i}function r(t,e,n,r,o){var i=o&&t.isTouchMode?10:0;return e>=r.left-i&&e<=r.right+i&&n>=r.top-i&&n<=r.bottom+i}function o(t,e,n,r,o,i){var a=F.offset(r),u=F.offset(o),l=a.left-u.left,c=a.top-u.top,f=F.gER(r),s=i&&t.isTouchMode?10:0;l-=s,c-=s;var d=l+f.width+2*s,h=c+f.height+2*s;return e>=l&&d>=e&&n>=c&&h>=n}function i(t){return t&&t.action&&t.swipeDirection}function a(t){return t.data.groups&&t.data.groups.length>0}function u(t,e){e=D.defaults(e,{control:null,action:null,mode:"depthFirst",direction:"ltr",traverseCollapsed:!1,parentFirst:!0,getChildren:function(t){return t.children}});var n=D.isFunction(e.control)?e.control:null,r=D.isFunction(e.action)?e.action:null,o="widthFirst"===e.mode,i="rtl"===e.direction,a=o?"unshift":"push",u=o!==i===e.parentFirst?D.forEach:D.forEachRight,l=function(t,e){if(t.length>20){var n=t.slice();return o?i?n.concat(e):n.reverse().concat(e):i?e.concat(n):e.reverse().concat(n)}return u(t,function(t){e[a](t)}),e},c=[t];if(e.parentFirst)for(;c.length>0;){var f=c.pop();if(n){var s=n(f);if("break"===s)break;if("continue"===s)continue}r&&r(f),!e.traverseCollapsed&&f.collapsed||(c=l(e.getChildren(f),c))}else{for(var d=[],h=0;c.length>0;){var p=c.pop();if(n){var g=n(p);if("break"===g)break;if("continue"===g)continue}d[h++]=p,!e.traverseCollapsed&&p.collapsed||(c=l(e.getChildren(p),c))}r&&D.forEachRight(d,function(t){r(t)}),d.length=0}c.length=0}function l(t,e,n,r){if(t){r||(r={index:-1});var o;if(-1!==t.level&&(r.index++,o=e(t,r.index,!1)))return o;if(!t.collapsed){for(var i=r.index,a=t.children.length,u=0;a>u;u++)if(o=l(t.children[u],e,n,r))return o;if(n&&a>0&&-1!==t.level&&(o=e(t,i,!0)))return o}return o}}function c(t){return t.options.hierarchy&&t.options.hierarchy.footer&&t.options.hierarchy.footer.visible}function f(t,e){if(t.area!==e.area)return!1;if(t.area===G){if(t.itemIndex!==e.itemIndex)return!1;if(t.isHierarchyFooter!==e.isHierarchyFooter)return!1}var n=t.path,r=e.path;if(n.length!==r.length)return!1;for(var o=0,i=n.length;i>o;o++)if(n[o]!==r[o])return!1;return!0}function s(t){var e,n,r,o=!1;for(e=0,n=t.length;n>e&&(r=t[e],!(o=r.columns?s(r.columns):"left"===r.pinned||"right"===r.pinned));e++);return o}function d(t,e,n){var r,o,i=[];for(r=0,o=e.length;o>r;r++)e[r].columns&&i.push(e[r]);for(var a;i.length>0;){if(a=i.shift(),a.caption===n)return a;for(r=0,o=a.columns.length;o>r;r++)a.columns[r].columns&&i.push(a.columns[r])}}function h(t,e,n){if(!e)return 0;e=P.isArray(e)?e:[e];var r,o,i,a=0;for(r=0,o=e.length;o>r;r++)i=e[r],i.columns?a+=this.gGCHW_(t,i.columns,n):t.iCV_(i,n)&&i.pinned===n&&(a+=P.isNumber(i.visibleWidth)?i.visibleWidth:0);return a}function p(t,e){var n,r=e.groupDescriptor,o=r.footer,i=r.header,a=t.data,u=e.path;if(e.collapsed)return{path:u,itemIndex:-1,area:o.visible&&!o.collapseWithGroup||!i.visible?k:N};if(o.location===et&&o.visible)return{path:u,itemIndex:-1,area:k};if(e.isBottomLevel){var l=e.expandedItemCount,c={path:u,itemIndex:l-1,area:o&&o.visible&&0===l?k:G},f=a.hierarchyDescriptor;if(f){var s=f.footer;if(s&&s.visible)c.nodeInfo={path:[0],area:W};else{var d=e.rootNode;if(d){for(;d&&d.children&&d.children.length>0;)d=d.children[d.children.length-1];c.nodeInfo={path:d.path,area:B}}}}return c}return n=e.groups,p(t,n[n.length-1])}function g(t,e,n){if(e){var r;r="left"===t?n?e.pinnedLeftColHeaderTemplate:e.pinnedLeftRowTemplate:"right"===t?n?e.pinnedRightColHeaderTemplate:e.pinnedRightRowTemplate:n?e.colHeaderTemplate:e.rowTemplate;var o=lt.gUT_(r);if(o){var i=F.createElement("
"+o+"
");return e.rightToLeft?F.inverseToRTL(i).innerHTML:i.innerHTML}}return null}function v(t){if(t){var e;return e=P.isString(t)&&t.length>1&&"#"===t[0]?document.getElementById(t.slice(1)).cloneNode(!0):F.createElement("
"+t+"
"),e.innerHTML}return null}function m(t,e,n,r,o){D.isObject(t)&&(e=t.area,n=t.row,r=t.groupInfo,o=t.nodeInfo,t=t.uid);var i=t;i+=ct[e]?"-"+ct[e]:"";var a=_(r),u=_(o);return i+=a+u,""===u&&D.isNumber(n)&&(-1!==n||r?n>=0&&(!r||r&&r.area===G)&&(i+="-r"+n):i+="-autorow"),i}function _(t){return t&&t.path&&ct[t.area]?"-"+ct[t.area]+t.path.join("_"):""}function y(t){var e={uid:/gc-\d+/.exec(t)[0],row:-1},n=t.split("-").slice(2);if(0===n.length)return e;var r=["pl","pr","rh","ch","plch","prch","corner","gt","gth","chRow","plchRow","prchRow"];if(D.indexOf(r,n[0])>-1?(e.area=ct[n[0]],n.shift()):e.area=U,0===n.length)return e;var o=n[0].match(/g[hrf]/);if(o&&(e.groupInfo={area:ct[o[0]],path:n[0].replace(/g[hrf]/,"").split("_")},n.shift()),0===n.length)return e;var i=n[0].match(/n[rf]/);return i&&(e.nodeInfo={area:ct[i[0]],path:n[0].replace(/n[rf]/,"").split("_")}),"autorow"===n[0]?e.isNewRow=!0:e.row=+n[0].replace("r",""),n.length=0,e}function w(t,e){for(var n,r=t.columns,o=0,i=r.length;i>o;o++)if(n=r[o],n.id===e)return o;return-1}function b(t,e){if(t.area===U||t.area===V||t.area===Y){var n=t.groupInfo,r=n&&(n.area===k||n.area===N),o=t.nodeInfo,i=o&&o.area===W;if(!i&&!r){var a=n?n.column:t.column;return e&&a>=0||!e}}return!1}function I(t,e,n,r,o){var i=m(t,e,n,r,o);return i?document.getElementById(i):null}function S(t,e){var n=[U],r=t.layoutEngine;r.sPV_&&(r.sPV_("left")&&n.push(V),r.sPV_("right")&&n.push(Y));var o=[],i=e.groupInfo,a=e.nodeInfo;return n.forEach(function(n){var r=lt.createID(t.uid,n,i?i.row:e.row,i,a);r&&o.push(r)}),o}function E(t){var e='
'+(P.isString(t)?t:t.innerHTML)+"
",n=F.createElement(e);document.body.appendChild(n);var r=n.firstChild,o=null;return r&&(o=F.gCoR(r)),document.body.removeChild(n),o}function C(t){var e=t.gLI_(),n=e[U],r=e[V],o=e[Y];return n?n.contentHeight>n.height:r?r.contentHeight>r.height:o?o.contentHeight>o.height:!1}function T(t){var e=t.gLI_(),n=e[U];return n?n.contentWidth>n.width:!1}function H(t,e){var n=arguments.length<=2||void 0===arguments[2]?!1:arguments[2];if(!e)return 0;var r=n?1:0;return e.collapsed||(D.each(e.children,function(e){r+=H(t,e,!0)}),n&&e.children.length>0&<.hHF_(t)&&++r),r}function L(t,e){var n=arguments.length<=2||void 0===arguments[2]?!1:arguments[2],r=t;if(!e)return 0;var o=0,i=e.collapsed;if(i||(e.rootNode?o+=H(r,e.rootNode):e.isBottomLevel?o+=e.itemCount:D.each(e.groups,function(t){o+=L(r,t,!0)})),n){var a=e[nt],u=a&&a[rt]&&a[rt][ot],l=a&&a[it],c=l&&l[ot],f=l&&l.collapseWithGroup;u&&++o,(c&&(!f||!i)||!u&&i)&&++o}return o}function x(){var t=-1,e=void 0,n=arguments,r=n[0];if(P.isString(n[1])?e=lt.parseID(n[1]):n.length>2&&(e={row:n[1],groupInfo:n[2],nodeInfo:n[3],isNewRow:n[4]}),e){var o=r.layoutEngine.aARA_(ut),i=r.data;if(e.isNewRow)t=o?0:a(r)?L(r,i.rootGroup,!0):r.data&&r.data.hierarchyDescriptor?H(r,i.rootNode,!0):i.itemCount;else{if(e.groupInfo)t=O(r,i.rootGroup,e).index;else if(e.nodeInfo)t=M(r,i.rootNode,e).index;else{var u=lt.createID(r.uid,U,e.row),l=r.getItem(u).item;t=l?i.mVI_(l.sourceIndex):-1}o&&(t+=1)}}return t}function O(t,e,n){for(var r,o,i,a,u,l,c,f,s={finish:!1,index:0},d=n.groupInfo,h=e?e.groups:[],p=0,g=h.length;g>p;p++){if(r=h[p],f=r[nt],o=f&&f[rt]&&f[rt][ot],c=f&&f[it],i=c&&c[ot],a=c&&c[at],u=o?1:0,l=i&&a===ut?1:0,r.path.toString()===d.path.toString())d.area===k?s.index+=a===ut?u:L(t,r,!0)-1:d.area===G&&(n.nodeInfo?s.index+=M(t,r.rootNode,n).index+u+l:s.index+=n.row+u+l),s.finish=!0;else if(r.path[r.level].toString()===d.path[r.level].toString()){var v=O(t,r,n);s.index+=v.index+u+l,s.finish=v.finish}else s.index+=L(t,r,!0);if(s.finish)break}return s}function M(t,e,n){for(var r={finish:!1,index:0},o=n.nodeInfo,i=e?e.children:[],a=0,u=i.length;u>a;a++){var l=i[a];if(l.path.toString()===o.path.toString())o.area===W&&(r.index+=H(t,l,!0)-1),r.finish=!0;else if(l.path[l.level].toString()===o.path[l.level].toString()){var c=M(t,l,n);r.index+=c.index+1,r.finish=c.finish}else r.index+=H(t,l,!0);if(r.finish)break}return r}function R(t,e,n){var r=t.getItem(e);if(!r)return null;var o=void 0,i=void 0;r.group&&(o={path:r.group.path,area:r.groupArea}),r.node&&(i={path:r.node.path,area:r.nodeArea});var a=t.uid,u=r.row,l=[];return r.isNewRow&&(u=-1,o=null,i=null),D.each(n,function(t){l.push({area:t,id:lt.createID(a,t,u,o,i)})}),l}function j(t){var e=t.dataField;return e&&!D.startsWith(D.trim(e),"=")&&1!==e.split(",").length}var D=n(6),F=n(8),P=n(9),A=n(11),N="groupHeader",k="groupFooter",G="groupContent",W="nodeFooter",B="nodeContent",U="viewport",V="pinnedLeftViewport",Y="pinnedRightViewport",X=["pageX","pageY","clientX","clientY","target"],z="mouseup",q="mousemove",$="mousedown",K="mousewheel",J="click",Z="dblclick",Q=P.regist,tt=P.unRegist,et="bottom",nt="groupDescriptor",rt="header",ot="visible",it="footer",at="location",ut="top",lt={},ct={viewport:"",pinnedLeftViewport:"pl",pinnedRightViewport:"pr",rowHeader:"rh",columnHeader:"ch",pinnedLeftColumnHeader:"plch",pinnedRightColumnHeader:"prch",columnHeaderRow:"chRow",pinnedLeftColumnHeaderRow:"plchRow",pinnedRightColumnHeaderRow:"prchRow",gantt:"gt",ganttHeader:"gth",groupHeader:"gh",groupFooter:"gf",groupContent:"gr",nodeFooter:"nf",nodeContent:"nr",pl:V,pr:Y,rh:"rowHeader",ch:"columnHeader",plch:"pinnedLeftColumnHeader",prch:"pinnedRightColumnHeader",chRow:"columnHeaderRow",plchRow:"pinnedLeftColumnHeaderRow",prchRow:"pinnedRightColumnHeaderRow",gt:"gantt",gth:"ganttHeader",gh:"groupHeader",gf:"groupFooter",gr:"groupContent",nf:"nodeFooter",nr:"nodeContent",corner:"corner"};lt.gCHL_=e,lt.poIP_=r,lt.poI_=o,lt.iTAC_=i,lt.hG_=a;var ft=function(){function t(t,n){i=(new Date).getTime(),o=!1,a=1e3*t,u=n,l&&c?c(e):setTimeout(e,16.6)}function e(){var t=(new Date).getTime(),r=t-i,f=function(t){u(t||n(r,0,1,a))};return r>=a||o?void f(1):(f(),void(l&&c?c(e):setTimeout(e,16.6)))}function n(t,e,n,r){return t/=r/2,1>t?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)}function r(){o=!0}var o,i=0,a=0,u=null,l=0,c=window.requestAnimationFrame||window.webkitRequestAnimationFrame;return{play:t,stop:r}}();lt.ani=ft,lt.tT=u,lt.tN_=l,lt.hHF_=c,lt.gIAS_=f,lt.hPC_=s,lt.gGCBC_=d,lt.gGCHW_=h,lt.gLGIP_=p,lt.gUERT_=g,lt.gUT_=v,lt.createID=m,lt.parseID=y,lt.ci_=w,lt.iEOSA_=b;var st=function(){function t(t){var e=this;e.options=D.defaultsDeep(t||{},{headerTemplate:null,footerTemplate:null,contentTemplate:null,draggable:!1,showOverlay:!0,parent:null}),e.init_()}function e(){var t=this;t.handleClick_=o.bind(t),t.handleMouseDown_=i.bind(t),t.handleMouseWheel_=a.bind(t),t.handleMouseUp_=l.bind(t),t.handleMouseMove_=c.bind(t),t.handleKeyDown_=h.bind(t),t.handleKeyUp_=p.bind(t),t.handleDoubleClick_=r.bind(t),t.tsFn_=u.bind(t),t.teFn_=s.bind(t),t.tmFn_=f.bind(t);var e=t.container;Q(e,J,t.handleClick_),Q(e,Z,t.handleDoubleClick_),Q(e,$,t.handleMouseDown_),Q(e,K,t.handleMouseWheel_),Q(e,z,t.handleMouseUp_),Q(e,q,t.handleMouseMove_),Q(e,"keydown",t.handleKeyDown_),Q(e,"keyup",t.handleKeyUp_),A(e).on("touchstart",t.tsFn_),A(e).on("touchend",t.teFn_),A(e).on("touchmove",t.tmFn_)}function n(){var t=this,e=t.container;tt(e,J,t.handleClick_),tt(e,Z,t.handleDoubleClick_),tt(e,$,t.handleMouseDown_),tt(e,K,t.handleMouseWheel_),tt(e,z,t.handleMouseUp_),tt(e,"keydown",t.handleKeyDown_),tt(e,"keyup",t.handleKeyUp_),tt(e,q,t.handleMouseMove_),A(e).off("touchstart",t.tsFn_),A(e).off("touchend",t.teFn_),A(e).off("touchmove",t.tmFn_),tt(e.querySelector(".gc-popup-first-tab"),"focus",t.fFE_),tt(e.querySelector(".gc-popup-last-tab"),"focus",t.fLE_)}function r(t){g.call(this,t,"doubleclick")}function o(t){g.call(this,t,J)}function i(t){g.call(this,t,$)}function a(t){g.call(this,t,K)}function u(t){g.call(this,d(t),$)}function l(t){g.call(this,t,z)}function c(t){g.call(this,t,q)}function f(t){g.call(this,t,"touchmove")}function s(t){g.call(this,d(t),z)}function d(t){var e=D.pick(t.changedTouches[0],X);return e.stopPropagation=function(){t.stopPropagation()},e.preventDefault=function(){t.preventDefault()},e.deviceType="touch",e}function h(t){g.call(this,t,"keydown")}function p(t){g.call(this,t,"keyup")}function g(t,e){var n=this;if(t.target){n.options.parent&&t.stopPropagation();for(var r=D.keys(n.eventCache_),o=t.target,i=o.tagName.toLowerCase(),a=o.className?o.className.split(" "):[],u=[];"body"!==i;)u=u.concat(D.intersection(r,a)),o=o.parentNode,i=o.tagName.toLowerCase(),a=o.className?o.className.split(" "):[];var l,c,f;D.each(u,function(r){for(l=n.eventCache_[r][e],f=l?l.length:0,c=0;f>c;c++)l[c](t)})}}function v(t){var e=this;"touch"===t.deviceType?(e.docTouchMoveHandler_=_.bind(e),e.docTouchEndHandler_=b.bind(e),A(document).on("touchmove",e.docTouchMoveHandler_),A(document).on("touchend",e.docTouchEndHandler_)):(e.docMouseMoveHandler_=m.bind(e),e.docMouseUpHandler_=w.bind(e),window.PointerEvent?(Q(document,"pointermove",e.docMouseMoveHandler_),Q(document,"pointerup",e.docMouseUpHandler_),document.body.setPointerCapture(t.pointerId)):(Q(document,q,e.docMouseMoveHandler_),Q(document,z,e.docMouseUpHandler_)));var n=e.container,r=F.gER(n),o=F.gCSV(n),i=o.marginTop,a=o.marginLeft,u=F.getBodyStyle();e.startMoveInfo_={mouseOffset:{left:t.pageX,top:t.pageY},containerCSSOffset:{left:r.left-a-u.left,top:r.top-i-u.top},containerRect:r,viewportRect:{left:0,top:0,width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}}}function m(t){y.call(this,t)}function _(t){y.call(this,d(t))}function y(t){var e=this;t.preventDefault();var n=e.startMoveInfo_;if(n){var r=n.mouseOffset,o=n.viewportRect,i=n.containerRect,a=t.pageX-r.left,u=t.pageY-r.top,l=i.left,c=o.left,f=i.width,s=o.width,d=i.top,h=o.top,p=i.height,g=o.height;l+f+a>c+s&&(a=c+s-l-f),c>l+a&&(a=c-l),d+p+u>h+g&&(u=h+g-d-p),h>d+u&&(u=h-d),F.setCss(e.container,{left:n.containerCSSOffset.left+a,top:n.containerCSSOffset.top+u})}}function w(t){I.call(this,t)}function b(t){I.call(this,d(t))}function I(t){var e=this;e.startMoveInfo_=null,"touch"===t.deviceType?(A(document).off("touchmove",e.docTouchMoveHandler_),A(document).off("touchend",e.docTouchEndHandler_),e.docTouchMoveHandler_=null,e.docTouchEndHandler_=null):(window.PointerEvent?(document.body.releasePointerCapture(t.pointerId),tt(document,"pointermove",e.docMouseMoveHandler_),tt(document,"pointerup",e.docMouseUpHandler_)):(tt(document,q,e.docMouseMoveHandler_),tt(document,z,e.docMouseUpHandler_)),e.docMouseMoveHandler_=null,e.docMouseUpHandler_=null)}function S(){var t=this,e=t.tabbableElements=t.container.querySelectorAll("a[href]:not([disabled]), area[href]:not([disabled]), button:not([disabled]), input:not([disabled]), select:not([disabled]),textarea:not([disabled]),[tabindex]:not([disabled])"),n=t.options.setTabOrder,r=0;if(n)r=n(e,2)+1;else{for(var o=0,i=e.length;i>o;o++)e[o].setAttribute("tabindex",o+2);r=e.length+2}var a=t.container,u=F.createElement('
'),l=F.createElement('
');a.insertBefore(u,a.childNodes[0]),a.appendChild(l),t.fFE_=E.bind(t),t.fLE_=C.bind(t),Q(u,"focus",t.fFE_),Q(l,"focus",t.fLE_)}function E(){this.tabbableElements[this.tabbableElements.length-1].focus()}function C(){this.tabbableElements[0].focus()}return t.prototype={init_:function(){var t=this,n=t.options;t.container=F.createElement('
');var r,o=t.container,i=F.createElement,a=F.addClass;if(n.headerTemplate&&(r=i(n.headerTemplate),a(r,"gc-popup-header"),o.appendChild(r)),n.contentTemplate){var u=i(n.contentTemplate);a(u,"gc-popup-content"),o.appendChild(u)}if(n.footerTemplate){var l=i(n.footerTemplate);a(l,"gc-popup-footer"),o.appendChild(l)}n.draggable&&r&&(window.PointerEvent?r.addEventListener("pointerdown",v.bind(t)):r.addEventListener($,v.bind(t))),e.call(t)},open:function(){var t=this,e=t.options,n=e.parent||document.body;e.showOverlay&&(t.overlay_=F.createElement('
'),n.appendChild(t.overlay_)),n.appendChild(t.container),S.call(t)},close:function(){var t=this;n.call(t);var e=t.overlay_;t.options.showOverlay&&e.parentNode.removeChild(e);var r=t.container,o=t.container.parentNode;o&&o.removeChild(r)},mount:function(t,e,n){var r=this;r.eventCache_=r.eventCache_||{};var o=r.eventCache_;o[t]=o[t]||{},o[t][e]=o[t][e]||[];var i=o[t][e];-1===i.indexOf(n)&&i.push(n)}},t}();lt.popup=st,lt.gRE_=I,lt.getIdList=S,lt.gUER_=E,lt.hVS=C,lt.hHS=T,lt.gNRC_=H,lt.gGRC_=L,lt.vi=x,lt.getRowIDByViewIndex=R,lt.isMultiFieldColumn=j,t.exports=lt}()},function(t,e){"use strict";!function(e){function n(t){return new r(t)}function r(t){this.element=t}function o(){function t(t,e,n,r,o,i,a,u){var l=this;l.identifier=t,l.target=e,l.screenX=n,l.screenY=r,l.clientX=o,l.clientY=i,l.pageX=a,l.pageY=u}function e(t){var e,n;for(e=0,n=a.length;n>e;e+=1)if(a[e].identifier===t)return a[e]}function n(t){var e,n;for(e=0,n=a.length;n>e;e+=1)if(a[e].identifier===t.identifier)return void(a[e]=t);a.push(t)}function r(t){var e,n;for(e=0,n=a.length;n>e;e+=1)a[e].identifier===t&&(a.splice(e,1),n=a.length)}function o(){for(;a.length>0;)a.pop()}function i(t,e){var n;for(n=0;na;a++){var l=e.cachedEvents[a];if(l.uid===r.uid){l.element.removeEventListener(l.event,l.handler);break}}e.cachedEvents.splice(a,1),0===e.cachedEvents.length&&delete e.cachedEvents}}function a(t,e){function n(t,e){var n,r;for(v.clearTouches(),n=0;n_&&!function(){var t,e,n,r,o;for(e=g.touchList,t=0;t_&&g.clearTouches(),p.removeTouch(r.identifier),g.addUpdateTouch(r),n(r.target,p.touchList),o=new CustomEvent(e,{bubbles:!0,cancelable:!0}),o.touches=p.touchList,o.changedTouches=g.touchList,o.targetTouches=v.touchList,o}function i(t){m&&console.log(t)}function a(t){return"MSPointerDown"===t.type||"pointerdown"===t.type}function u(t){return"MSPointerMove"===t.type||"pointermove"===t.type}function l(t){return"MSPointerUp"===t.type||"pointerup"===t.type}var s,d,h,m=!1;c(t)||(a(t)||(d=p.getTouch(t.pointerId),h=d?d.target:t.target),s=a(t)||u(t)?r(t):o(t),s.preventDefault=function(){t.preventDefault&&t.preventDefault()},s.stopPropagation=function(){t.stopPropagation&&t.stopPropagation()},e.call(t.target,s),_=t.hwTimestamp)}function u(t){return y[t][w]}function l(t,e){var n="on"+e.toLowerCase();return n in t||t.hasOwnProperty(n)}function c(t){return"mouse"===t.pointerType||4===t.pointerType?!0:"pointerdown"===t.type&&0===t.x&&0===t.y?!0:"pen"===t.pointerType&&0===t.pressure&&"pointermove"===t.type}function f(t,e){return t.screenX===e.screenX&&t.screenY===e.screenY}function s(t){t&&t.style&&(e.MSPointerEvent?t.style.setAttribute("-ms-touch-action","none;"):t.style.touchAction="none")}function d(t){t&&t.style&&(e.MSPointerEvent?t.style.removeAttribute("-ms-touch-action"):t.style.touchAction=null)}function h(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}var p,g,v,m=["touchstart","touchmove","touchend"],_=0,y={touchstart:["pointerdown","MSPointerDown","touchstart"],touchmove:["pointermove","MSPointerMove","touchmove"],touchend:["pointerup","MSPointerUp","touchend"]},w=e.PointerEvent?0:e.MSPointerEvent?1:2;r.prototype={on:function(t,e){var n=this.element;if(-1===m.indexOf(t))return void n.addEventListener(t,e);if(l(n,t))return void n.addEventListener(t,e);var r=u(t);if(l(n,r)){var o=function(n){a(n,e,t)},c=h();e.uid=c,i(n,r,o,c,!0),s(n)}},off:function(t,e){var n=this.element;return-1===m.indexOf(t)?void n.removeEventListener(t,e):l(n,t)?void n.removeEventListener(t,e):(i(n,t,e,!1),void d(n))}},p=new o,g=new o,v=new o,t.exports=n}(window)}])});