12345678910111213141516 |
- /*!
- *
- * 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.CardLayout=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.CardLayout=e())}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.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(t,n,r,i,o){var a,u,c,l,f,h,s,d,p,g=this,v=t.data,_=g.gGHH_(v),m=g.gGFH_(v),w=g.gLI_()[et],y=v.groupDescriptor.footer,b=t.path;if(_>o){if(p=!1,s=q.gRE_(g.grid.uid,et,null,{area:ot,path:b})){d=s.querySelector(".gc-grouping-toggle");var S=d&&d.getBoundingClientRect();k.call(g,{left:S.left,top:S.top,width:S.width,height:S.height},{left:n,top:r},!0)&&(p=!0)}return{area:et,row:-1,column:-1,groupInfo:{path:b,area:ot,onGroupExpandToggle:p}}}if(o-=_,t.isBottomLevel)return h=g.hTGC_(t,et,i,o,{width:w.contentWidth,height:w.contentHeight}),h?h:{area:et,row:-1,column:-1,groupInfo:{path:b,area:at}};for(a=t.children,c=0,l=a.length;l>c;c++){if(u=a[c],f=u.collapsed?_+(y.collapseWithGroup?0:m):u.height,f>=o)return e.call(g,a[c],n,r,i,o);o-=f}return null}function i(t){var e=this,n=e.gLI_()[et],r=e.options,i=r.direction,a=r.rightToLeft&&i===rt;return{left:a?t.offsetLeft:-t.offsetLeft,top:-t.offsetTop,renderedRows:o.call(e,i,n,t,!0)}}function o(t,e,n,r){var i=this,o={start:t===rt?n.offsetLeft:n.offsetTop,end:t===rt?n.offsetLeft+e.width:n.offsetTop+e.height};return i.grid.data.groups?L.call(i,o,r):C.call(i,o,n,r)}function a(){var t=this;if(t.cachedContainerSizeWithoutScrollBar_)return t.cachedContainerSizeWithoutScrollBar_;var e=t.grid.gCI_(),n=e.contentRect;return t.cachedContainerSizeWithoutScrollBar_={width:n.width,height:n.height},t.cachedContainerSizeWithoutScrollBar_}function u(){var t=this;if(t.cachedContainerSizeWithScrollBar_)return t.cachedContainerSizeWithScrollBar_;t.updateCardSize_();var e=t.options.direction,n=t.options.showScrollBar,r=a.call(t),i=r.width,o=r.height,u=Y.gSS(t.grid);return t.grid.data.groups?n&&!c.call(t)&&(e===rt?(t.hasScrollBars_={vertical:!1,horizontal:!0},o-=u.height):(t.hasScrollBars_={vertical:!0,horizontal:!1},i-=u.width)):n&&!l.call(t)&&(e===rt?(t.hasScrollBars_={vertical:!1,horizontal:!0},o-=u.height):(t.hasScrollBars_={vertical:!0,horizontal:!1},i-=u.width)),t.cachedContainerSizeWithScrollBar_={width:i,height:o},t.updateCardSize_(),t.cachedContainerSizeWithScrollBar_}function c(){var t,e=this,n=e.direction,r=a.call(e),i=n===rt?r.width:r.height,o=0,u=e.grid.data.groups,c=u.length;for(t=0;c>t&&(o+=f.call(e,u[t],i,0),!(o>i));t++);return i>=o}function l(){var t=this,e=t.grid,n=e.data.itemCount,r=a.call(t),i=Math.floor(r.height/t.cardHeight_),o=Math.floor(r.width/t.cardWidth_);return i*o>=n}function f(t,e,n){if(!t)return 0;var r,i,o,u,c=this,l=c.options,h=l.direction,s=n;if(s>e)return s;var d=a.call(c);r=h===rt?Math.floor(d.height/c.cardHeight_):Math.floor(d.width/c.cardWidth_);var p=t.groupDescriptor;i=p.footer;var g=c.gGHH_(t),v=c.gGFH_(t);if(s+=g,s>e)return s;if(p.collapsed)i&&i.visible&&!i.collapseWithGroup&&(s+=v);else{if(t.isBottomLevel){if(u=t.itemCount,s+=Math.ceil(u/r)*c.gRH_(),s>e)return s}else for(u=t.groups.length,o=0;u>o;o++)if(s=f.call(c,t.groups[o],e,s),s>e)return s;s+=v}return s}function h(){var t=this.options.rowTemplate;if(t){if(X.isString(t)&&t.length>1&&"#"===t[0]){var e=document.getElementById(t.slice(1));return e.innerHTML}return t}return s.call(this)}function s(){var t=this,e=t.grid.columns,n=0;$.each(e,function(t){t.visible&&(n+=1)});var r=Math.floor(t.cardHeight_/n),i="<div>";return $.each(e,function(t){t.visible&&(i+='<div class="gc-column" style="position:static;'+(t.visible?"height:"+r+"px;":"display:none;")+'" data-column="'+t.id+'"></div>')}),i+="</div>"}function d(){var t,e,n,r=this,i=r.options,o=i.direction,a=u.call(r),c=r.cardHeight_,l=r.cardWidth_,f=a.height,h=a.width;return o===rt?(n=Math.floor(f/c),e=p.call(r,n),t=f):(n=Math.floor(h/l),t=p.call(r,n),e=h),{top:0,left:0,width:h,height:f,contentWidth:e,contentHeight:t,cardCountInAssistDirection:n}}function p(t){var e=this.grid,n=e.data;if(G(e)){var r=0;return $.forEach(e.gI_,function(t){return r+=t.height}),r}if(n.isHierarchical)return g.call(this,n.rootNode).totalHeight;var i=e.layoutEngine.options,o=i.direction,a=e.layoutEngine.cardWidth_,u=e.layoutEngine.cardHeight_,c=n.itemCount;return o===rt?Math.ceil(c/t)*a:Math.ceil(c/t)*u}function g(t){return isNaN(+t.height)&&v.call(this,t),$.pick(t,ht)}function v(t){var e=this,n=e.getCardSize_(),r=n.width,i=n.height,o=e.options.direction;q.tT(t,{action:function(t){var e=t.children;0===e.length?(t.height=t.totalHeight=i,t.width=t.totalWidth=r):!function(){var n=0,a=0,u=o||t.direction;u===rt?($.forEach(e,function(t){n+=t.height,a=Math.max(a,t.totalWidth)}),-1===t.level?(t.height=t.totalHeight=n,t.width=t.totalWidth=a):(t.totalHeight=n,t.totalWidth=r+a,t.height=n,t.width=r)):($.forEach(e,function(t){n=Math.max(n,t.totalHeight),a+=t.width}),-1===t.level?(t.height=t.totalHeight=n,t.width=t.totalWidth=a):(t.totalHeight=i+n,t.totalWidth=a,t.height=i,t.width=a))}()},traverseCollapsed:!0,mode:"depthFirst",direction:"ltr",parentFirst:!1})}function _(t,e){var n=this,r=[],i=0,o=0,a=0;return q.tT(t,{action:function(t){if(-1!==t.level){if(!t.rect){var u=g.call(n,t);a=Math.max(a,u.height),t.level!==o&&(o=t.level,i+=a,a=0);var c=t.path[t.path.length-1],l=0;if(0===c){var f=t.parent.rect;l=f&&f.x}else{var h=t.parent.findChildNodeByPath(c-1);l=h.rect&&h.rect.x+h.width}t.rect={w:u.width,h:u.height,x:isNaN(+l)?0:l,y:i}}w(t.rect,e)&&r.push(t)}},traverseCollapsed:!0,mode:"widthFirst",direction:"ltr",parentFirst:!0}),r}function m(t,e){var n=this,r=n.grid,i=new Set,o=[],a=n.options.hierarchy.lineLength;a=isNaN(+a)?0:+a;var u=n.getCardSize_(),c=function(t){var n=e.get(t);return $.isNil(n)&&(n=r.data.mVI_(t,!0),e.set(t,n)),n},l=function(t,e){var r=t.rect,i=e.rect;if(r&&i){var o=void 0,c=void 0;switch(n.options.hierarchy.alignment){case"center":o=r.x+Math.floor(r.w/2),c=i.x+Math.floor(i.w/2);break;case"right":o=r.x+r.w-Math.floor(u.width/2),c=i.x+i.w-Math.floor(u.width/2);break;default:o=r.x+Math.floor(u.width/2),c=i.x+Math.floor(u.width/2)}var l=r.y+u.height-a,f=i.y+a;return[{x:o,y:l},{x:o,y:(f+l)/2},{x:c,y:(f+l)/2},{x:c,y:f}]}},f=function(t,e){if(t&&e&&-1!==t.level){var n=c(t.calcNode_.itemIndex),r=c(e.calcNode_.itemIndex),a=n+"_"+r;if(!i.has(a)){i.add(a);var u=l(t,e),f=b(u);f&&o.push({from:n,to:r,renderedHTML:f})}}};return $.forEach(t,function(t){var e=t.parent;e&&f(e,t);for(var n=t.children,r=0,i=n.length;i>r;r++)f(t,n[r])}),o}function w(t,e){return t.x<e.x+e.w&&e.x<t.x+t.w&&t.y<e.y+e.h&&e.y<t.y+t.h}function y(t,e){var n=$.map(t,function(t){return x(t,e)});return $.map(n,function(t){return'<div class="gc-line" style="'+X.cMFS(t)+'"></div>'}).join("")}function b(t,e){var n=S(t);if(n)return e=$.defaults(e||{},{width:1}),y(n,e)}function S(t){if($.isArray(t)&&!(t.length<2)){for(var e=[],n=function(t,e){var n=Math.min(t.x,e.x),r=Math.max(t.x,e.x),i=Math.min(t.y,e.y),o=Math.max(t.y,e.y);return n===r&&i===o?null:r-n>o-i?[{x:n,y:i},{x:r,y:i}]:[{x:n,y:i},{x:n,y:o}]},r=0,i=t.length;i-1>r;++r){var o=n(t[r],t[r+1]);o&&e.push(o)}return e}}function x(t,e){var n=Math.ceil(e.width/2),r=t[0],i=t[1];return r.x===i.x?{left:r.x-n+"px",top:r.y+"px",width:e.width+"px",height:i.y-r.y+"px"}:{left:r.x+"px",top:r.y-n+"px",width:i.x-r.x+"px",height:e.width+"px"}}function C(t,e,n){var i,o,a,u=this,c=[],l=u.grid,f=u.gLI_()[et],h=u.options,s=h.direction,d=h.rightToLeft,p=u.cardWidth_,g=u.cardHeight_;if(l.data.isHierarchical){var v=_.call(u,l.data.rootNode,{w:f.width,h:f.height,x:e.offsetLeft,y:e.offsetTop}),w=new Map;for(o=0;o<v.length;o++){var y,b=v[o],S=b.calcNode_.itemIndex,x=l.data.mVI_(S,!0);w.set(S,x),a=q.createID(l.uid,et,x,null,{area:"nodeContent",path:b.path});var C=void 0;switch(h.hierarchy.alignment){case"center":C=b.rect.x+Math.floor((b.rect.w-p)/2);break;case"right":C=b.rect.x+b.rect.w-p;break;default:C=b.rect.x}c.push(T.call(u,a,(y={top:b.rect.y},r(y,d?"right":"left",C),r(y,"height",g),r(y,"width",p),y),x,n))}var I=m.call(u,v,w);for(w.clear(),o=0;o<I.length;o++){var M=I[o];c.push({key:l.uid+"-l"+M.from+"_"+M.to,renderInfo:{cssClass:"gc-polyline",renderedHTML:M.renderedHTML}})}}else{i=P.call(u,{top:t.start,left:t.start});var L;if(s===rt)for(o=i.start;o<i.end;o++){var H;L=Math.floor(o/f.cardCountInAssistDirection)*p,a=l.uid+"-r"+o,c.push(T.call(u,a,(H={top:o%f.cardCountInAssistDirection*g},r(H,d?"right":"left",L),r(H,"height",g),r(H,"width",p),H),o,n))}else for(o=i.start;o<i.end;o++){var E;L=o%f.cardCountInAssistDirection*p,a=l.uid+"-r"+o,c.push(T.call(u,a,(E={top:Math.floor(o/f.cardCountInAssistDirection)*g},r(E,d?"right":"left",L),r(E,"height",g),r(E,"width",p),E),o,n))}}return c}function T(t,e,n,r){var i=this;return r?{key:t,style:e,index:n}:I.call(i,t,e,n)}function I(t,e,n){var r=this,i=r.grid,o=i.formatDataItemInternal_(i.data.getItem(n,!0),!0);return{key:t,renderInfo:{cssClass:"gc-row r"+n,style:e,renderedHTML:r.gRT_()(o)}}}function M(t,e,n,r,i,o){var a=this,u=a.grid.uid+"-gr"+t.path.join("_")+"-r"+e;return r?{key:u,info:{path:t.path,itemIndex:e,area:ut},bounds:n,index:e}:E.call(a,u,e,n,t,a.options.rightToLeft,i,o)}function L(t,e){var n,r,i,o,a,u,c,l,f,h,s=[],d=this,p=d.grid,g=p.gI_,v=[],_=!1,m=!1,w=!1,y=0,b=d.gLI_()[et],S=b.cardCountInAssistDirection,x=d.options,C=x.direction,T=x.rightToLeft,I=d.cardHeight_,L=d.cardWidth_,E=b.contentWidth,O=b.contentHeight,D=t,W=0;for(o=0,a=g.length-1;a>=o;o++)v.push({path:[o],itemIndex:-1,area:ot});for(;v.length>0;)if(r=v[0],i=p.gGI_(r.path),!_){if(A(D,{start:W,end:W+i.height})){_=!0;break}W+=i.height,v.shift()}for(_=!1;v.length>0&&!w;){if(r=v.shift(),i=p.gGI_(r.path),r.area===ot){var j=i.data.groupDescriptor.header;j&&j.visible&&(n=d.gGHH_(i.data),_||(A(D,{start:W,end:W+n})?_=!0:W+=n),_&&(u=C===rt?{width:n,height:O,top:0,left:W}:{width:E,height:n,top:W,left:0},f=q.createID(p.uid,et,null,{area:ot,path:r.path}),e?s.push({key:f,info:r,bounds:u}):s.push(H.call(d,f,r,i,u,C,T)),W+=n,N(D,W)||(w=!0)))}else r.area===ut?(i=p.gGI_(r.path),c=r.itemIndex,n=d.gRH_(),_||(A(D,{start:W,end:W+n})?_=!0:(m=c%S===S-1||c===y-1,m&&(W+=n))),_&&(h={top:C===rt?c%S*I:W,left:C===rt?W:c%S*L,height:I,width:L},s.push(M.call(d,i,c,h,e)),m=c%S===S-1||c===y-1,m&&(W+=n,N(D,W)||(w=!0)))):(i=p.gGI_(r.path),l=i.data.groupDescriptor.footer,l&&l.visible&&(n=d.gGFH_(i.data),_||(A(D,{start:W,end:W+n})?_=!0:W+=n),_&&(u=C===rt?{width:n,height:O,top:0,left:W}:{width:E,height:n,top:W,left:0},f=q.createID(p.uid,et,null,{area:at,path:r.path}),e?s.push({key:f,info:r,bounds:u}):s.push(R.call(d,f,r,i,u,C,T)),s.push({key:f,isRowRole:!1,renderInfo:F.call(d,r.path,i,u,C,T)}),W+=n,N(D,W)||(w=!0))));if(r.area===ot){i=p.gGI_(r.path);var k=i.data;if(l=k.groupDescriptor.footer,k.collapsed)k&&l&&l.visible&&!l.collapseWithGroup&&v.unshift({path:r.path,itemIndex:-1,area:at});else for(v.unshift({path:r.path,itemIndex:-1,area:at}),a=y=k.isBottomLevel?k.itemCount:i.children.length,o=a-1;o>=0;o--)k.isBottomLevel?v.unshift({path:r.path,itemIndex:o,area:ut}):v.unshift({path:r.path.slice().concat([o]),itemIndex:-1,area:ot})}}return s}function H(t,e,n,r,i,o){var a=this;return{key:t,isRowRole:!1,renderInfo:O.call(a,e.path,n,r,i,o)}}function E(t,e,n,r,i,o,a){var u=this;return{key:t,isRowRole:!0,renderInfo:j.call(u,e,r,n,i,o,a)}}function R(t,e,n,r,i,o){var a=this;return{key:t,isRowRole:!1,renderInfo:F.call(a,e.path,n,r,i,o)}}function O(t,e,n,r,i){var o;o=i?{top:n.top,right:n.left,height:n.height,width:n.width}:{top:n.top,left:n.left,height:n.height,width:n.width};var a=r===rt?n.height:n.width;return{cssClass:"gc-row g"+t.join("_"),style:o,renderedHTML:D.call(this,e,a)}}function D(t,e){var n=this,r=t.data,i=r.name,o={level:r.level,margin:r.level*lt,groupStatus:r.collapsed?"collapsed":"expand",condition:r.groupDescriptor.field,name:i,count:r.itemCount};return K.template(W.call(n,r,e),null,null,!0)(o)}function W(t,e){var n,r=this,i=r.gGHH_(t),o=r.options.direction,a=r.options.rightToLeft;return n=o===rt?a?'<div class="gc-group-header-cell gc-group-header gc-group-header-v-rtl" style="right:'+i+"px;width:"+e+"px;height:"+i+"px;line-height:"+i+'px;"><span class="gc-icon gc-grouping-toggle {{=it.groupStatus}}" style="margin-right:{{=it.margin}}px;"></span> <span level="{{=it.level}}">{{=it.condition}}: {{=it.name}}<span> ({{=it.count}})</span></span></div>':'<div class="gc-group-header-cell gc-group-header gc-group-header-v" style="left:'+i+"px;width:"+e+"px;height:"+i+"px;line-height:"+i+'px;"><span class="gc-icon gc-grouping-toggle {{=it.groupStatus}}" style="margin-left:{{=it.margin}}px;"></span> <span level="{{=it.level}}">{{=it.condition}}: {{=it.name}}<span> ({{=it.count}})</span></span></div>':a?'<div class="gc-group-header gc-group-header-cell" style="height:'+i+"px;line-height:"+i+'px;"><span class="gc-icon gc-grouping-toggle {{=it.groupStatus}}" style="margin-right:{{=it.margin}}px;"></span> <span level="{{=it.level}}">{{=it.condition}}: {{=it.name}}<span> ({{=it.count}})</span></span></div>':'<div class="gc-group-header gc-group-header-cell " style="height:'+i+"px;line-height:"+i+'px;"><span class="gc-icon gc-grouping-toggle {{=it.groupStatus}}" style="margin-left:{{=it.margin}}px;"></span> <span level="{{=it.level}}">{{=it.condition}}: {{=it.name}}<span> ({{=it.count}})</span></span></div>',t.groupDescriptor.header.template||n}function j(t,e,n,r,i,o){var a,u=this;return a=r?{top:n.top,right:n.left,height:n.height,width:n.width,overflow:"hidden"}:{top:n.top,left:n.left,height:n.height,width:n.width,overflow:"hidden"},a=o?$.assign(o,a):a,{cssClass:"gc-row"+(i?" "+i:""),style:a,renderedHTML:u.gRT_()(u.grid.formatDataItemInternal_(e.data.getItem(t,!0),!0))}}function F(t,e,n,r,i){var o;return o=i?{top:n.top,right:n.left,height:n.height,width:n.width}:{top:n.top,left:n.left,height:n.height,width:n.width},{cssClass:"gc-row g"+t.join("_"),style:o,renderedHTML:"<div></div>"}}function A(t,e){return t.end>e.start&&e.end>t.start}function N(t,e){return t.end>e&&e>=t.start}function k(t,e,n){var r=this,i=n&&r.grid.isTouchMode?10:0,o=t.left-i,a=t.left+t.width+i,u=t.top-i,c=t.top+t.height+i;return e.left>=o&&e.top>=u&&e.left<a&&e.top<c}function P(t){var e,n,r,i,o=this,a=o.options,u=o.gLI_()[et],c=o.grid.data.itemCount,l=u.cardCountInAssistDirection,f=a.direction===rt?t.left:t.top,h=a.direction===rt?u.width:u.height,s=a.direction===rt?o.cardWidth_:o.cardHeight_;return e=f,n=f+h,r=Math.floor(e/s),i=Math.floor(n/s),r=Math.max(r*l,0),i=Math.min((i+1)*l,c),{start:r,end:i}}function B(){var t=this,e=t.grid;if(t.rowTemplateFn_)return t.rowTemplateFn_;var n,r,i,o,a,u,c=h.call(t),l=Y.createTemplateElement(c);c=Y.getElementInnerText(l);var f=l.querySelectorAll("[data-column]");return $.each(f,function(t,l){var f=e.gCBI_(t.getAttribute("data-column"));if(f&&f.dataField)if(e.data.isCalculatedColumn(f.id))u=f.presenter||'{{=it["'+f.id+'"]}}';else{var h=f.dataField.split(",");if(1===h.length)u=f.presenter||'{{=it["'+f.id+'"]}}';else{var s=[];$.each(h,function(t,n){var r=e.gCBI_(t);r?s.push(r.presenter||'{{=it["'+r.id+'"]}}'):s.push('{{=it["'+f.id+'"]['+n+"]}}")}),u=s.join(" ")}}else u="";a=t,o=a.tagName,n=Y.getElementOuterText(a),i="gc-cell c"+l;var d=n.slice(0,n.length-(o.length+3)),p=d.indexOf("class=");d=-1===p?d.slice(0,o.length+2)+' class="'+i+'" '+d.slice(o.length+2):d.slice(0,p+7)+i+" "+d.slice(p+7),r=d+u+"</"+o+">",-1===c.indexOf(n)&&(n=n.replace(/"/g,"'")),c=c.replace(n,r)}),t.rowTemplateFn_=K.template(c,null,null,!0),t.rowTemplateFn_}function G(t){return!!t.data.groups}function z(t,e){var n=t,r=n.layoutEngine,i=r.hasScrollBar_(),o=e.deltaY;r.options.direction!==rt&&i.vertical?(0!==o&&n.sSPO_(et,{top:n.gSO_(et).top+o}),e.preventDefault()):i.horizontal&&(0!==o&&(r.options.rightToLeft&&(o=-o),n.sSPO_(et,{left:n.gSO_(et).left+o})),e.preventDefault())}function U(t,e){var n,r=t,i=t.layoutEngine;if(i.hTI_=i.hT_(e),n=i.hTI_){i.mdP_={left:e.pageX,top:e.pageY};var o,a=n.groupInfo;if(a&&(a.area===ut&&a.row>=0||a.area===at||a.area===ot&&a.onGroupExpandToggle&&(o=i.grid.gGI_(a.path).data,o.collapsed=!o.collapsed,r.invalidate())),n.area===et){var u=void 0;n.groupInfo&&n.groupInfo.area===ut?(o=r.gGI_(a.path).data,u=o.getItem(a.row,!0)):u=r.data.getItem(n.row,!0),r.rowClick.raise(r,{event:e,hitInfo:n,item:u,idList:q.getIdList(r,n)})}}}function V(t,e){var n=this.grid;if(!n.data.isRefreshSuspended()){var r="addDataColumn"===e.action||"addCalculatedColumn"===e.action||"removeCalculatedColumn"===e.action||"removeDataItems"===e.action;n.invalidate(r)}}n(2);var $=n(7),Y=n(9),X=n(10),q=n(11),K=n(13),J="absolute",Z="relative",Q="hidden",tt="auto",et="viewport",nt="horizontal",rt="vertical",it="gc-rtl",ot="groupHeader",at="groupFooter",ut="groupContent",ct=40,lt=18,ft={cardHeight:256,direction:nt,showScrollBar:!0,rightToLeft:!1,allowAsyncRender:!1},ht=["width","height","totalWidth","totalHeight"],st=function(t){var e=this;e.l_=null,e.name="CardLayout",e.className="card-layout",e.options=$.defaultsDeep(t||{},ft)};st.prototype={gCD_:function(){return{visible:!0,allowSorting:!1,allowEditing:!1}},init_:function(t){var e=this;e.updateCardSize_(),e.iC_()},updateCardSize_:function(){var t=this,e=t.options,n=t.grid;X.isNil(e.cardWidth)?t.cachedContainerSizeWithScrollBar_?t.cardWidth_=t.cachedContainerSizeWithScrollBar_.width:t.cardWidth_=n.gCI_().contentRect.width:t.cardWidth_=t.options.cardWidth,t.cardHeight_=t.options.cardHeight},iC_:function(){var t=this,e=t.grid;$.each(e.columns,function(e){e=$.defaults(e,$.defaults(t.gCD_(),{id:e.dataField,caption:X.caC(e.dataField)}))})},gLI_:function(){var t=this;return t.gS_?t.gS_.gLI_():t.l_||(t.l_={viewport:d.call(this)})},cRC_:function(){var t=this;t.gS_&&t.gS_.cRC_(),t.l_=null,t.rowTemplateFn_=null,t.hasScrollBars_=null,t.cardWidth_=null,t.cardHeight_=null,t.cachedContainerSizeWithoutScrollBar_=null,t.cachedContainerSizeWithScrollBar_=null,t.updateCardSize_()},gRI_:function(t){var e=this;if(e.gS_)return e.gS_.gRI_(t);var n=X.isNil(t.includeRows)?!0:t.includeRows,r=t&&t.area||"";if(!r)return null;var i,a=e.gLI_()[et],u=e.options,c=u.direction,l=u.rightToLeft,f=a.width,h=a.height,s=e.hasScrollBar_(),d=Y.gSS(e.grid),p=l&&s.vertical?a.left+d.width:a.left,g=l&&c===rt?t.offsetLeft:-t.offsetLeft;return i={outerDivCssClass:"gc-viewport"+(l?" "+it:""),outerDivStyle:{position:J,top:a.top,left:p,height:h,width:f,overflow:Q},innerDivStyle:{position:Z,height:a.contentHeight,width:f},innerDivTranslate:{left:g,top:-t.offsetTop},renderedRows:[]},n&&(i.renderedRows=o.call(e,c,a,t,!1)),i},gRR_:function(t){var e=this;if(e.gS_)return e.gS_.gRR_(t);var n=t&&t.area||"";return n?i.call(e,t):null},gRRI_:function(t,e){var n=this;if(n.gS_)return n.gS_.gRRI_(t,e);var r=n.options,i=n.grid;if(n.grid.data.groups){var o=t.info,a=i.gGI_(o.path),u=r.direction,c=r.rightToLeft,l=t.key,f=t.bounds;return o.area===ot?H.call(n,l,o,a,f,u,c):o.area===ut?E.call(n,l,t.index,f,a,c):R.call(n,l,o,a,f,u,c)}return $.isNil(t.index)?t:I.call(n,t.key,t.style,t.index)},gRT_:function(){return B.call(this,!1)},sSP_:function(t){var e=this;if(e.gS_)return e.gS_.sSP_(t);if(!e.options.showScrollBar)return!1;if(t.toLowerCase()===et){var n=e.gLI_()[et];if(n.height<n.contentHeight||n.width<n.contentWidth)return!0}return!1},iSA_:function(t){var e=this;return e.gS_?e.gS_.iSA_(t):t.toLowerCase()===et},gSPRI_:function(t){var e=this,n=e.options;if(e.gS_)return e.gS_.gSPRI_(t);if(t.toLowerCase()===et){var i=e.gLI_()[et],o=e.hasScrollBar_(),a=Y.gSS(e.grid),u=[],c=o.horizontal,l=o.vertical;l&&u.push("scroll-top"),c&&u.push("scroll-left");var f=[],h=i.width+(o.vertical?a.width:0),s=i.height+(o.horizontal?a.height:0),d=(a.height||15)+1,p=(a.width||15)+1,g=n.rightToLeft;return $.each(u,function(t){var e,n="scroll-top"===t;f.push({isVertical:n,outerDivCssClass:"gc-grid-viewport-scroll-panel "+t,outerDivStyle:(e={position:J,top:n?0:s-d},r(e,g?"right":"left",n?h-p:0),r(e,"height",n?s+(c?-1*a.height:0):d),r(e,"width",n?p:h+(l?-1*a.width:0)),r(e,"overflow",tt),e),innerDivStyle:{position:Z,height:n?i.contentHeight:1,width:n?1:i.contentWidth}})}),f}},hasScrollBar_:function(){var t=this;if(t.hasScrollBars_)return t.hasScrollBars_;var e=t.gLI_()[et];return{vertical:e.height<e.contentHeight,horizontal:e.width<e.contentWidth}},gGID_:function(){var t=this.options.groupStrategy;return t?t.gGID_():$.defaultsDeep(this.options.defaultGroupingInfo||{},{footer:{visible:!1,collapseWithGroup:!0},header:{visible:!0}})},getInitialScrollOffset:function(){var t=this;if(t.gS_&&t.gS_.getInitialScrollOffset)return t.gS_.getInitialScrollOffset();var e=t.gLI_()[et],n=t.options;return{viewport:e?{top:0,left:n.rightToLeft&&t.hasScrollBar_().horizontal?e.contentWidth-e.width:0}:{top:0,left:0}}},iGIH_:function(){var t=this;if(t.gS_)return t.gS_.iGIH_();var e,n,r=t.grid.gI_;for(e=0,n=r.length;n>e;e++)r[e].height=t.gGH_(r[e])},gGH_:function(t){var e=this;if(!t)return 0;if(!X.isUndefined(t.height))return t.height;var n=t.data,r=e.options,i=r.direction,o=0,a=n.groupDescriptor.header;a&&a.visible&&(o+=e.gGHH_(n));var c,l,f,h,s=u.call(e);if(c=i===rt?Math.floor(s.height/e.cardHeight_):Math.floor(s.width/e.cardWidth_),n.collapsed){var d=n.groupDescriptor.footer;d||!d.visible||d.collapseWithGroup||(o+=e.gGFH_(n))}else{if(f=n.isBottomLevel?n.itemCount:t.children.length,n.isBottomLevel)o+=Math.ceil(f/c)*e.gRH_();else for(l=0;f>l;l++)h=t.children[l],h.height=e.gGH_(h),o+=h.height;o+=e.gGFH_(n)}return o},sFn2_:function(t){var e=this,n=e.grid;e.gS_?e.gS_.sFn2_(t):n.sRP_(et),n.oso_.raise(n,t)},hT_:function(t){var n=this;if(n.gS_)return n.gS_.hT_(t);var r,i,o,a,u,c,l,f,h=n.grid,s=h.gCI_().contentRect,d=t.pageX-s.left,p=t.pageY-s.top,g=t.pageX-window.pageXOffset,v=t.pageY-window.pageYOffset,_={left:d,top:p},m=n.gLI_()[et],w=n.options,y=w.direction,b=w.rightToLeft,S=n.cardWidth_,x=n.cardHeight_,C=m.cardCountInAssistDirection,T={area:"",row:-1,groupInfo:null},I=h.gI_,M=Y.gSS(h);if(y===nt&&b){var L=M.width;f=k({left:m.left+L,top:m.top,width:m.width+L,height:m.height},_)}else f=k(m,_);if(f){T.area=et;var H=h.gSO_(et),E=b?s.width-d+m.left+H.left:d-m.left+H.left,R=p-m.top+H.top,O=y===rt?E:R,D=y===rt?R:E;if(I&&0!==I.length)for(r=0,i=I.length;i>r;r++){if(u=I[r],c=u.data,o=n.gGHH_(c),a=u.collapsed?o+(c.groupDescriptor.footer.collapseWithGroup?0:n.gGFH_(c)):u.height,a>O)return e.call(n,u,g,v,D,O);O-=a}else{var W=y===rt?S:x,j=y===rt?x:S;l=Math.floor(O/W)*C+Math.floor(D/j),(l>=h.data.itemCount||0>l)&&(l=-1),T.row=l}}return T},d_:function(){var t=this;t.gS_?(t.gS_.d_(),delete t.gS_):t.uRE_()},toJSON_:function(){var t=this,e=t.options,n={};n.name=t.name;var r={};return $.forEach(e,function(t,n){"rowTemplate"===n&&t?r.rowTemplate=q.gUT_(t):"groupStrategy"===n&&t?r.groupStrategy=e.groupStrategy.toJSON_():ft[n]===t||$.isNil(t)||(X.isObject(t)?r[n]=X.serializeObject(X.extractObject(t,ft[n])):r[n]=t)}),$.isEmpty(r)||(n.options=r),n},gIGH_:function(t,e){if(!t.isBottomLevel)return 0;var n=this;return t.data.rootNode?g.call(t.data.rootNode).height:Math.ceil(t.data.itemCount/Math.floor(e.width/n.cardWidth_))*n.gRH_()},gIGRI_:function(t,e,n){if(t.isBottomLevel){var r,i,o,a,u,c,l,f=this,h=f.options,s=t.data,d=0,p=h.direction,g=f.gRH_(),v=[],_=f.cardHeight_,m=f.cardWidth_,w=p===rt?Math.floor(e.height/f.cardHeight_):Math.floor(e.width/f.cardWidth_);if(w)for(r=0,i=s.itemCount;i>r;r++)if(l=f.gS_&&f.gS_.mappingFromViewIndex_?f.gS_.mappingFromViewIndex_(r,t.path):r,n){o=n(t,r),u=o.cssClass,a=o.style||{},a.width=m;var y=o.location;y?(c={top:y.top,left:y.left,height:_,width:m},v[l]=M.call(f,t,l,c,!1,u,a)):(c={top:p===rt?r%w*_:d,left:p===rt?d:r%w*m,height:_,width:m},v[l]=M.call(f,t,l,c,!1,u,a),r%w===w-1&&(d+=g))}else a={width:m},c={top:p===rt?r%w*_:d,left:p===rt?d:r%w*m,height:_,width:m},v[l]=M.call(f,t,l,c,!1,null,a),r%w===w-1&&(d+=g);return v}},gMVIC_:function(t){var e=this,n=e.options,r=n.direction===rt?Math.floor(t.height/e.cardHeight_):Math.floor(t.width/e.cardWidth_);return r*(n.direction===rt?Math.floor(t.width/e.cardWidth_):Math.floor(t.height/e.cardHeight_))},hTGC_:function(t,e,n,r,i){if(e!==et)return null;var o=this,a=o.options,u=a.direction,c=o.cardWidth_,l=o.cardHeight_,f=t.data,h=u===rt?Math.floor(i.height/l):Math.floor(i.width/c),s=-1;return s=u===rt?Math.floor(n/c)*h+Math.floor(r/l):Math.floor(r/l)*h+Math.floor(n/c),s>=f.itemCount&&(s=-1),o.gS_&&o.gS_.mappingFromViewIndex_&&(s=o.gS_.mappingFromViewIndex_(s,t.path)),{area:et,row:-1,column:-1,groupInfo:{area:ut,path:t.path,row:s,column:-1}}},gRH_:function(){var t=this.options.direction;return t===rt?this.cardWidth_:this.cardHeight_},gGHH_:function(t){var e=t.groupDescriptor.header;return e&&e.visible?e.height||ct:0},gGFH_:function(t){var e=t.groupDescriptor.footer;return e&&e.visible?e.height||ct:0},getCardSize_:function(){return{width:this.cardWidth_,height:this.cardHeight_}},rE_:function(){var t=this,e=t.grid;t.gS_?t.gS_.rE_():(e.omw_.addHandler(z,t),e.onMouseClick_.addHandler(U,t),e.data.collectionChanged_.addHandler(V,t))},uRE_:function(){var t=this,e=t.grid;t.gS_?t.gS_.uRE_():(e.omw_.removeHandler(z,t),e.onMouseClick_.removeHandler(U,t),e.data.collectionChanged_.removeHandler(V,t))},tcFn_:function(){},cDS_:function(){},cSS_:function(){},sSL_:function(t){var e=this;if(e.gS_)return e.gS_.sSL_(t);var n=e.grid,r=n.gSO_(et).top,i=e.options,o=e.gLI_().viewport,a=o.contentHeight-o.height,u="up"===t.scrollDirection||"down"===t.scrollDirection,c=u&&50>a-r;return i.loadOnDemand?c:void 0},sLI_:function(){var t=this;return t.gS_?t.gS_.sLI_():t.options.loadOnDemand},gGHr_:function(t,e,n){var r=this,i=r.grid,o=i.gGI_(t),a=r.gGHH_(o.data);if(a>0){var u,c=q.createID(i.uid,et,null,{area:ot,path:t}),l=r.options.direction;return u=l===rt?{width:a,height:e,top:0,left:n}:{width:e,height:a,top:n,left:0},H.call(r,c,{path:t},o,u,l,r.options.rightToLeft)}},sPTE_:function(t,e){return"start"!==e},cTS_:function(t){var e=this;return e.gS_&&$.isFunction(e.gS_.cTS_)?e.gS_.cTS_(t):!(!t.touchScrollInfo||!t.touchScrollInfo[t.moveDirection+"ScrollArea"])},cCS_:function(t){var e,n,r=this,i=r.grid,o=(r.hasScrollBar_(),t.deltaX),a=t.deltaY,u=r.gLI_()[et],c=Math.max(u.contentHeight-u.height,0),l=Math.max(u.contentWidth-u.width,0),f=i.gSO_(et),h=f.top,s=f.left;if(0!==a||0!==o){if(Math.abs(o)<=Math.abs(a))return e=Math.max(0,Math.min(h+a,c)),Math.round(e)!==Math.round(h);if(Math.abs(o)>Math.abs(a))return n=Math.max(0,Math.min(s+o,l)),Math.round(n)!==Math.round(s)}return!1}},t.exports=st}()},,function(t,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 i(t,e){return t.set(e[0],e[1]),t}function o(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<r&&e(t[n],n,t)!==!1;);return t}function c(t,e){for(var n=t?t.length:0;n--&&e(t[n],n,t)!==!1;);return t}function l(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(!e(t[n],n,t))return!1;return!0}function f(t,e){for(var n=-1,r=t?t.length:0,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function h(t,e){var n=t?t.length:0;return!!n&&m(t,e,0)>-1}function s(t,e,n){for(var r=-1,i=t?t.length:0;++r<i;)if(n(e,t[r]))return!0;return!1}function d(t,e){for(var n=-1,r=t?t.length:0,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function p(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function g(t,e,n,r){var i=-1,o=t?t.length:0;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function v(t,e){for(var n=-1,r=t?t.length:0;++n<r;)if(e(t[n],n,t))return!0;return!1}function _(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function m(t,e,n){if(e!==e)return E(t,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function w(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function y(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function b(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function S(t){return function(e){return t(e)}}function x(t,e){return d(e,function(e){return t[e]})}function C(t,e){return t.has(e)}function T(t,e){for(var n=-1,r=t.length;++n<r&&m(e,t[n],0)>-1;);return n}function I(t,e){for(var n=t.length;n--&&m(e,t[n],0)>-1;);return n}function M(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 H(t,e){return null==t?Br:t[e]}function E(t,e,n){for(var r=t.length,i=e+(n?1:-1);n?i--:++i<r;){var o=t[i];if(o!==o)return i}return-1}function R(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function O(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function D(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function W(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];a!==e&&a!==$r||(t[n]=$r,o[i++]=n)}return o}function j(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function F(t){return t.match(_o)}function A(){}function N(){}function k(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=hi,this.__views__=[]}function P(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function B(){this.__data__=ia?ia(null):{}}function G(t){return this.has(t)&&delete this.__data__[t]}function z(t){var e=this.__data__;if(ia){var n=e[t];return n===Vr?Br:n}return Do.call(e,t)?e[t]:Br}function U(t){var e=this.__data__;return ia?e[t]!==Br:Do.call(e,t)}function V(t,e){var n=this.__data__;return n[t]=ia&&e===Br?Vr:e,this}function $(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Y(){this.__data__=[]}function X(t){var e=this.__data__,n=vt(e,t);if(0>n)return!1;var r=e.length-1;return n==r?e.pop():$o.call(e,n,1),!0}function q(t){var e=this.__data__,n=vt(e,t);return 0>n?Br: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<n;){var r=t[e];this.set(r[0],r[1])}}function Q(){this.__data__={hash:new P,map:new(ta||$),string:new P}}function tt(t){return Ve(this,t)["delete"](t)}function et(t){return Ve(this,t).get(t)}function nt(t){return Ve(this,t).has(t)}function rt(t,e){return Ve(this,t).set(t,e),this}function it(t){var e=-1,n=t?t.length:0;for(this.__data__=new Z;++e<n;)this.add(t[e])}function ot(t){return this.__data__.set(t,Vr),this}function at(t){return this.__data__.has(t)}function ut(t){this.__data__=new $(t)}function ct(){this.__data__=new $}function lt(t){return this.__data__["delete"](t)}function ft(t){return this.__data__.get(t)}function ht(t){return this.__data__.has(t)}function st(t,e){var n=this.__data__;return n instanceof $&&n.__data__.length==zr&&(n=this.__data__=new Z(n.__data__)),n.set(t,e),this}function dt(t,e,n,r){return t===Br||Xn(t,Ho[n])&&!Do.call(r,n)?e:t}function pt(t,e,n){(n===Br||Xn(t[e],n))&&("number"!=typeof e||n!==Br||e in t)||(t[e]=n)}function gt(t,e,n){var r=t[e];Do.call(t,e)&&Xn(r,n)&&(n!==Br||e in t)||(t[e]=n)}function vt(t,e){for(var n=t.length;n--;)if(Xn(t[n][0],e))return n;return-1}function _t(t,e){return t&&Ce(e,Cr(e),t)}function mt(t,e){for(var n=-1,r=null==t,i=e.length,o=Array(i);++n<i;)o[n]=r?Br:Sr(t,e[n]);return o}function wt(t,e,n){return t===t&&(n!==Br&&(t=n>=t?t:n),e!==Br&&(t=t>=e?t:e)),t}function yt(t,e,n,r,i,o,a){var c;if(r&&(c=o?r(t,i,o,a):r(t)),c!==Br)return c;
- if(!or(t))return t;var l=Aa(t);if(l){if(c=Ze(t),!e)return xe(t,c)}else{var f=Ke(t),h=f==wi||f==yi;if(Na(t))return he(t,e);if(f==xi||f==pi||h&&!o){if(R(t))return o?t:{};if(c=Qe(h?{}:t),!e)return Te(t,_t(c,t))}else{if(!wo[f])return o?t:{};c=tn(t,f,yt,e)}}a||(a=new ut);var s=a.get(t);if(s)return s;if(a.set(t,c),!l)var d=n?Be(t):Cr(t);return u(d||t,function(i,o){d&&(o=i,i=t[o]),gt(c,o,yt(i,e,n,r,o,t,a))}),c}function bt(t){return or(t)?Uo(t):{}}function St(t,e,n,r){var i=-1,o=h,a=!0,u=t.length,c=[],l=e.length;if(!u)return c;n&&(e=d(e,S(n))),r?(o=s,a=!1):e.length>=zr&&(o=C,a=!1,e=new it(e));t:for(;++i<u;){var f=t[i],p=n?n(f):f;if(f=r||0!==f?f:0,a&&p===p){for(var g=l;g--;)if(e[g]===p)continue t;c.push(f)}else o(e,p,r)||c.push(f)}return c}function xt(t,e){var n=!0;return va(t,function(t,r,i){return n=!!e(t,r,i)}),n}function Ct(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(u===Br?a===a&&!dr(a):n(a,u)))var u=a,c=o}return c}function Tt(t,e,n,r){var i=t.length;for(n=_r(n),0>n&&(n=-n>i?0:i+n),r=r===Br||r>i?i:_r(r),0>r&&(r+=i),r=n>r?0:mr(r);r>n;)t[n++]=e;return t}function It(t,e){var n=[];return va(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function Mt(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=nn),i||(i=[]);++o<a;){var u=t[o];e>0&&n(u)?e>1?Mt(u,e-1,n,r,i):p(i,u):r||(i[i.length]=u)}return i}function Lt(t,e){return t&&ma(t,e,Cr)}function Ht(t,e){return t&&wa(t,e,Cr)}function Et(t,e){e=un(e,t)?[e]:le(e);for(var n=0,r=e.length;null!=t&&r>n;)t=t[mn(e[n++])];return n&&n==r?t:Br}function Rt(t,e,n){var r=e(t);return Aa(t)?r:p(r,n(t))}function Ot(t,e){return t>e}function Dt(t,e){return null!=t&&(Do.call(t,e)||"object"==("undefined"==typeof t?"undefined":r(t))&&e in t&&null===Xe(t))}function Wt(t,e){return null!=t&&e in Object(t)}function jt(t,e,n){for(var r=n?s:h,i=t[0].length,o=t.length,a=o,u=Array(o),c=1/0,l=[];a--;){var f=t[a];a&&e&&(f=d(f,S(e))),c=Zo(f.length,c),u[a]=!n&&(e||i>=120&&f.length>=120)?new it(a&&f):Br}f=t[0];var p=-1,g=u[0];t:for(;++p<i&&l.length<c;){var v=f[p],_=e?e(v):v;if(v=n||0!==v?v:0,!(g?C(g,_):r(l,_,n))){for(a=o;--a;){var m=u[a];if(!(m?C(m,_):r(t[a],_,n)))continue t}g&&g.push(_),l.push(v)}}return l}function Ft(t,e,n,r,i){return t===e?!0:null==t||null==e||!or(t)&&!ar(e)?t!==t&&e!==e:At(t,e,Ft,n,r,i)}function At(t,e,n,r,i,o){var a=Aa(t),u=Aa(e),c=gi,l=gi;a||(c=Ke(t),c=c==pi?xi:c),u||(l=Ke(e),l=l==pi?xi:l);var f=c==xi&&!R(t),h=l==xi&&!R(e),s=c==l;if(s&&!f)return o||(o=new ut),a||pr(t)?Ne(t,e,n,r,i,o):ke(t,e,c,n,r,i,o);if(!(i&ii)){var d=f&&Do.call(t,"__wrapped__"),p=h&&Do.call(e,"__wrapped__");if(d||p){var g=d?t.value():t,v=p?e.value():e;return o||(o=new ut),n(g,v,r,i,o)}}return s?(o||(o=new ut),Pe(t,e,n,r,i,o)):!1}function Nt(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=Object(t);i--;){var u=n[i];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<o;){u=n[i];var c=u[0],l=t[c],f=u[1];if(a&&u[2]){if(l===Br&&!(c in t))return!1}else{var h=new ut;if(r)var s=r(l,f,c,t,e,h);if(!(s===Br?Ft(f,l,r,ri|ii,h):s))return!1}}return!0}function kt(t){if(!or(t)||fn(t))return!1;var e=rr(t)||R(t)?Ao:Ki;return e.test(wn(t))}function Pt(t){return"function"==typeof t?t:null==t?Rr:"object"==("undefined"==typeof t?"undefined":r(t))?Aa(t)?$t(t[0],t[1]):Vt(t):jr(t)}function Bt(t){return Ko(Object(t))}function Gt(t){t=null==t?t:Object(t);var e=[];for(var n in t)e.push(n);return e}function zt(t,e){return e>t}function Ut(t,e){var n=-1,r=Kn(t)?Array(t.length):[];return va(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function Vt(t){var e=$e(t);return 1==e.length&&e[0][2]?dn(e[0][0],e[0][1]):function(n){return n===t||Nt(n,t,e)}}function $t(t,e){return un(t)&&sn(e)?dn(mn(t),e):function(n){var r=Sr(n,t);return r===Br&&r===e?xr(n,t):Ft(e,r,Br,ri|ii)}}function Yt(t,e,n,r,i){if(t!==e){if(!Aa(e)&&!pr(e))var o=Tr(e);u(o||e,function(a,u){if(o&&(u=a,a=e[u]),or(a))i||(i=new ut),Xt(t,e,u,n,Yt,r,i);else{var c=r?r(t[u],a,u+"",t,e,i):Br;c===Br&&(c=a),pt(t,u,c)}})}}function Xt(t,e,n,r,i,o,a){var u=t[n],c=e[n],l=a.get(c);if(l)return void pt(t,n,l);var f=o?o(u,c,n+"",t,e,a):Br,h=f===Br;h&&(f=c,Aa(c)||pr(c)?Aa(u)?f=u:Jn(u)?f=xe(u):(h=!1,f=yt(c,!0)):hr(c)||qn(c)?qn(u)?f=yr(u):!or(u)||r&&rr(u)?(h=!1,f=yt(c,!0)):f=u:h=!1),a.set(c,f),h&&i(f,c,r,o,a),a["delete"](c),pt(t,n,f)}function qt(t,e,n){var r=-1;e=d(e.length?e:[Rr],S(Ue()));var i=Ut(t,function(t,n,i){var o=d(e,function(e){return e(t)});return{criteria:o,index:++r,value:t}});return y(i,function(t,e){return ye(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?Br:e[t]}}function Zt(t){return function(e){return Et(e,t)}}function Qt(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;if(on(i))$o.call(t,i,1);else if(un(i,t))delete t[mn(i)];else{var a=le(i),u=vn(t,a);null!=u&&delete u[mn(Cn(a))]}}}return t}function te(t,e,n,r){e=un(e,t)?[e]:le(e);for(var i=-1,o=e.length,a=o-1,u=t;null!=u&&++i<o;){var c=mn(e[i]);if(or(u)){var l=n;if(i!=a){var f=u[c];l=r?r(f,c,u):Br,l===Br&&(l=null==f?on(e[i+1])?[]:{}:f)}gt(u,c,l)}u=u[c]}return t}function ee(t,e,n){var r=-1,i=t.length;0>e&&(e=-e>i?0:i+e),n=n>i?i:n,0>n&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}function ne(t,e){var n;return va(t,function(t,r,i){return n=e(t,r,i),!n}),!!n}function re(t,e,n){var r=0,i=t?t.length:r;if("number"==typeof e&&e===e&&di>=i){for(;i>r;){var o=r+i>>>1,a=t[o];null!==a&&!dr(a)&&(n?e>=a:e>a)?r=o+1:i=o}return i}return ie(t,e,Rr,n)}function ie(t,e,n,r){e=n(e);for(var i=0,o=t?t.length:0,a=e!==e,u=null===e,c=dr(e),l=e===Br;o>i;){var f=Yo((i+o)/2),h=n(t[f]),s=h!==Br,d=null===h,p=h===h,g=dr(h);if(a)var v=r||p;else v=l?p&&(r||s):u?p&&s&&(r||!d):c?p&&s&&!d&&(r||!g):d||g?!1:r?e>=h:e>h;v?i=f+1:o=f}return Zo(o,si)}function oe(t){if("string"==typeof t)return t;if(dr(t))return ga?ga.call(t):"";var e=t+"";return"0"==e&&1/t==-ui?"-0":e}function ae(t,e,n){var r=-1,i=h,o=t.length,a=!0,u=[],c=u;if(n)a=!1,i=s;else if(o>=zr){var l=e?null:ba(t);if(l)return j(l);a=!1,i=C,c=new it}else c=e?[]:u;t:for(;++r<o;){var f=t[r],d=e?e(f):f;if(f=n||0!==f?f:0,a&&d===d){for(var p=c.length;p--;)if(c[p]===d)continue t;e&&c.push(d),u.push(f)}else i(c,d,n)||(c!==u&&c.push(d),u.push(f))}return u}function ue(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var u=o>r?e[r]:Br;n(a,t[r],u)}return a}function ce(t){return Jn(t)?t:[]}function le(t){return Aa(t)?t:Ta(t)}function fe(t,e,n){var r=t.length;return n=n===Br?r:n,!e&&n>=r?t:ee(t,e,n)}function he(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function se(t){var e=new t.constructor(t.byteLength);return new Bo(e).set(new Bo(t)),e}function de(t,e){var n=e?se(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function pe(t,e,n){var r=e?n(D(t),!0):D(t);return g(r,i,new t.constructor)}function ge(t){var e=new t.constructor(t.source,Yi.exec(t));return e.lastIndex=t.lastIndex,e}function ve(t,e,n){var r=e?n(j(t),!0):j(t);return g(r,o,new t.constructor)}function _e(t){return pa?Object(pa.call(t)):{}}function me(t,e){var n=e?se(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function we(t,e){if(t!==e){var n=t!==Br,r=null===t,i=t===t,o=dr(t),a=e!==Br,u=null===e,c=e===e,l=dr(e);if(!u&&!l&&!o&&t>e||o&&a&&c&&!u&&!l||r&&a&&c||!n&&c||!i)return 1;if(!r&&!o&&!l&&e>t||l&&n&&i&&!r&&!o||u&&n&&i||!a&&i||!c)return-1}return 0}function ye(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,u=n.length;++r<a;){var c=we(i[r],o[r]);if(c){if(r>=u)return c;var l=n[r];return c*("desc"==l?-1:1)}}return t.index-e.index}function be(t,e,n,r){for(var i=-1,o=t.length,a=n.length,u=-1,c=e.length,l=Jo(o-a,0),f=Array(c+l),h=!r;++u<c;)f[u]=e[u];for(;++i<a;)(h||o>i)&&(f[n[i]]=t[i]);for(;l--;)f[u++]=t[i++];return f}function Se(t,e,n,r){for(var i=-1,o=t.length,a=-1,u=n.length,c=-1,l=e.length,f=Jo(o-u,0),h=Array(f+l),s=!r;++i<f;)h[i]=t[i];for(var d=i;++c<l;)h[d+c]=e[c];for(;++a<u;)(s||o>i)&&(h[d+n[a]]=t[i++]);return h}function xe(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function Ce(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i<o;){var a=e[i],u=r?r(n[a],t[a],a,n,t):t[a];gt(n,a,u)}return n}function Te(t,e){return Ce(t,qe(t),e)}function Ie(t){return Un(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:Br,a=i>2?n[2]:Br;for(o=t.length>3&&"function"==typeof o?(i--,o):Br,a&&an(n[0],n[1],a)&&(o=3>i?Br:o,i=1),e=Object(e);++r<i;){var u=n[r];u&&t(e,u,r,o)}return e})}function Me(t,e){return function(n,r){if(null==n)return n;if(!Kn(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Object(n);(e?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}function Le(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),u=a.length;u--;){var c=a[t?u:++i];if(n(o[c],c,o)===!1)break}return e}}function He(t,e,n){function r(){var e=this&&this!==Mo&&this instanceof r?o:t;return e.apply(i?n:this,arguments)}var i=e&Yr,o=Ee(t);return r}function Ee(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=bt(t.prototype),r=t.apply(n,e);return or(r)?r:n}}function Re(t,e,n){function r(){for(var o=arguments.length,u=Array(o),c=o,l=ze(r);c--;)u[c]=arguments[c];var f=3>o&&u[0]!==l&&u[o-1]!==l?[]:W(u,l);if(o-=f.length,n>o)return Fe(t,e,De,r.placeholder,Br,u,f,Br,Br,n-o);var h=this&&this!==Mo&&this instanceof r?i:t;return a(h,this,u)}var i=Ee(t);return r}function Oe(t){return function(e,n,r){var i=Object(e);if(n=Ue(n,3),!Kn(e))var o=Cr(e);var a=t(o||e,function(t,e){return o&&(e=t,t=i[e]),n(t,e,i)},r);return a>-1?e[o?o[a]:a]:Br}}function De(t,e,n,r,i,o,a,u,c,l){function f(){for(var _=arguments.length,m=Array(_),w=_;w--;)m[w]=arguments[w];if(p)var y=ze(f),b=L(m,y);if(r&&(m=be(m,r,i,p)),o&&(m=Se(m,o,a,p)),_-=b,p&&l>_){var S=W(m,y);return Fe(t,e,De,f.placeholder,n,m,S,u,c,l-_)}var x=s?n:this,C=d?x[t]:t;return _=m.length,u?m=_n(m,u):g&&_>1&&m.reverse(),h&&_>c&&(m.length=c),this&&this!==Mo&&this instanceof f&&(C=v||Ee(C)),C.apply(x,m)}var h=e&ti,s=e&Yr,d=e&Xr,p=e&(Kr|Jr),g=e&ni,v=d?Br:Ee(t);return f}function We(t,e,n,r){function i(){for(var e=-1,c=arguments.length,l=-1,f=r.length,h=Array(f+c),s=this&&this!==Mo&&this instanceof i?u:t;++l<f;)h[l]=r[l];for(;c--;)h[l++]=arguments[++e];return a(s,o?n:this,h)}var o=e&Yr,u=Ee(t);return i}function je(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=wr(e),n=wr(n)),t(e,n)}}function Fe(t,e,n,r,i,o,a,u,c,l){var f=e&Kr,h=f?a:Br,s=f?Br:a,d=f?o:Br,p=f?Br:o;e|=f?Zr:Qr,e&=~(f?Qr:Zr),e&qr||(e&=~(Yr|Xr));var g=[t,e,i,d,h,p,s,u,c,l],v=n.apply(Br,g);return ln(t)&&Ca(v,g),v.placeholder=r,v}function Ae(t,e,n,r,i,o,a,u){var c=e&Xr;if(!c&&"function"!=typeof t)throw new TypeError(Ur);var l=r?r.length:0;if(l||(e&=~(Zr|Qr),r=i=Br),a=a===Br?a:Jo(_r(a),0),u=u===Br?u:_r(u),l-=i?i.length:0,e&Qr){var f=r,h=i;r=i=Br}var s=c?Br:Sa(t),d=[t,e,n,r,i,f,h,o,a,u];if(s&&pn(d,s),t=d[0],e=d[1],n=d[2],r=d[3],i=d[4],u=d[9]=null==d[9]?c?0:t.length:Jo(d[9]-l,0),!u&&e&(Kr|Jr)&&(e&=~(Kr|Jr)),e&&e!=Yr)p=e==Kr||e==Jr?Re(t,e,u):e!=Zr&&e!=(Yr|Zr)||i.length?De.apply(Br,d):We(t,e,n,r);else var p=He(t,e,n);var g=s?ya:Ca;return g(p,d)}function Ne(t,e,n,r,i,o){var a=i&ii,u=t.length,c=e.length;if(u!=c&&!(a&&c>u))return!1;var l=o.get(t);if(l)return l==e;var f=-1,h=!0,s=i&ri?new it:Br;for(o.set(t,e);++f<u;){var d=t[f],p=e[f];if(r)var g=a?r(p,d,f,e,t,o):r(d,p,f,t,e,o);if(g!==Br){if(g)continue;h=!1;break}if(s){if(!v(e,function(t,e){return s.has(e)||d!==t&&!n(d,t,r,i,o)?void 0:s.add(e)})){h=!1;break}}else if(d!==p&&!n(d,p,r,i,o)){h=!1;break}}return o["delete"](t),h}function ke(t,e,n,r,i,o,a){switch(n){case Ri:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Ei:return!(t.byteLength!=e.byteLength||!r(new Bo(t),new Bo(e)));case vi:case _i:return+t==+e;case mi:return t.name==e.name&&t.message==e.message;case Si:return t!=+t?e!=+e:t==+e;case Ti:case Mi:return t==e+"";case bi:var u=D;case Ii:var c=oⅈif(u||(u=j),t.size!=e.size&&!c)return!1;var l=a.get(t);return l?l==e:(o|=ri,a.set(t,e),Ne(u(t),u(e),r,i,o,a));case Li:if(pa)return pa.call(t)==pa.call(e)}return!1}function Pe(t,e,n,r,i,o){var a=i&ii,u=Cr(t),c=u.length,l=Cr(e),f=l.length;if(c!=f&&!a)return!1;for(var h=c;h--;){var s=u[h];if(!(a?s in e:Dt(e,s)))return!1}var d=o.get(t);if(d)return d==e;var p=!0;o.set(t,e);for(var g=a;++h<c;){s=u[h];var v=t[s],_=e[s];if(r)var m=a?r(_,v,s,e,t,o):r(v,_,s,t,e,o);if(!(m===Br?v===_||n(v,_,r,i,o):m)){p=!1;break}g||(g="constructor"==s)}if(p&&!g){var w=t.constructor,y=e.constructor;w!=y&&"constructor"in t&&"constructor"in e&&!("function"==typeof w&&w instanceof w&&"function"==typeof y&&y instanceof y)&&(p=!1)}return o["delete"](t),p}function Be(t){return Rt(t,Cr,qe)}function Ge(t){for(var e=t.name+"",n=ua[e],r=Do.call(ua,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function ze(t){var e=Do.call(A,"placeholder")?A:t;return e.placeholder}function Ue(){var t=A.iteratee||Or;return t=t===Or?Pt:t,arguments.length?t(arguments[0],arguments[1]):t}function Ve(t,e){var n=t.__data__;return cn(e)?n["string"==typeof e?"string":"hash"]:n.map}function $e(t){for(var e=Cr(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,sn(i)]}return e}function Ye(t,e){var n=H(t,e);return kt(n)?n:Br}function Xe(t){return Xo(Object(t))}function qe(t){return zo(Object(t))}function Ke(t){return Fo.call(t)}function Je(t,e,n){e=un(e,t)?[e]:le(e);for(var r,i=-1,o=e.length;++i<o;){var a=mn(e[i]);if(!(r=null!=t&&n(t,a)))break;t=t[a]}if(r)return r;var o=t?t.length:0;return!!o&&ir(o)&&on(a,o)&&(Aa(t)||sr(t)||qn(t))}function Ze(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&Do.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function Qe(t){return"function"!=typeof t.constructor||hn(t)?{}:bt(Xe(t))}function tn(t,e,n,r){var i=t.constructor;switch(e){case Ei:return se(t);case vi:case _i:return new i(+t);case Ri:return de(t,r);case Oi:case Di:case Wi:case ji:case Fi:case Ai:case Ni:case ki:case Pi:return me(t,r);case bi:return pe(t,r,n);case Si:case Mi:return new i(t);case Ti:return ge(t);case Ii:return ve(t,r,n);case Li:return _e(t)}}function en(t){var e=t?t.length:Br;return ir(e)&&(Aa(t)||sr(t)||qn(t))?b(e,String):null}function nn(t){return Aa(t)||qn(t)}function rn(t){return Aa(t)&&!(2==t.length&&!rr(t[0]))}function on(t,e){return e=null==e?ci:e,!!e&&("number"==typeof t||Zi.test(t))&&t>-1&&t%1==0&&e>t}function an(t,e,n){if(!or(n))return!1;var i="undefined"==typeof e?"undefined":r(e);return("number"==i?Kn(n)&&on(e,n.length):"string"==i&&e in n)?Xn(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||dr(t)?!0:Gi.test(t)||!Bi.test(t)||null!=e&&t in Object(e)}function cn(t){var e="undefined"==typeof t?"undefined":r(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function ln(t){var e=Ge(t),n=A[e];if("function"!=typeof n||!(e in k.prototype))return!1;if(t===n)return!0;var r=Sa(n);return!!r&&t===r[0]}function fn(t){return!!Ro&&Ro in t}function hn(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Ho;return t===n}function sn(t){return t===t&&!or(t)}function dn(t,e){return function(n){return null==n?!1:n[t]===e&&(e!==Br||t in Object(n))}}function pn(t,e){var n=t[1],r=e[1],i=n|r,o=(Yr|Xr|ti)>i,a=r==ti&&n==Kr||r==ti&&n==ei&&t[7].length<=e[8]||r==(ti|ei)&&e[7].length<=e[8]&&n==Kr;if(!o&&!a)return t;r&Yr&&(t[2]=e[2],i|=n&Yr?0:qr);var u=e[3];if(u){var c=t[3];t[3]=c?be(c,u,e[4]):u,t[4]=c?W(t[3],$r):e[4]}return u=e[5],u&&(c=t[5],t[5]=c?Se(c,u,e[6]):u,t[6]=c?W(t[5],$r):e[6]),u=e[7],u&&(t[7]=u),r&ti&&(t[8]=null==t[8]?e[8]:Zo(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function gn(t,e,n,r,i,o){return or(t)&&or(e)&&Yt(t,e,Br,gn,o.set(e,t)),t}function vn(t,e){return 1==e.length?t:Et(t,ee(e,0,-1))}function _n(t,e){for(var n=t.length,r=Zo(e.length,n),i=xe(t);r--;){var o=e[r];t[r]=on(o,n)?i[o]:Br}return t}function mn(t){if("string"==typeof t||dr(t))return t;var e=t+"";return"0"==e&&1/t==-ui?"-0":e}function wn(t){if(null!=t){try{return Oo.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function yn(t){for(var e=-1,n=t?t.length:0,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i}function bn(t,e,n,r){var i=t?t.length:0;return i?(n&&"number"!=typeof n&&an(t,e,n)&&(n=0,r=i),Tt(t,e,n,r)):[]}function Sn(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=null==n?0:_r(n);return 0>i&&(i=Jo(r+i,0)),_(t,Ue(e,3),i)}function xn(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=null==n?0:_r(n);return 0>i&&(i=Jo(r+i,0)),m(t,e,i)}function Cn(t){var e=t?t.length:0;return e?t[e-1]:Br}function Tn(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=Ue(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Qt(t,i),n}function In(t,e){return re(t,e)}function Mn(t,e,n){return ie(t,e,Ue(n))}function Ln(t,e,n){return t&&t.length?(e=n||e===Br?1:_r(e),ee(t,0,0>e?0:e)):[]}function Hn(t){return t&&t.length?ae(t):[]}function En(t,e){return ue(t||[],e||[],gt)}function Rn(t,e,n){var r=Aa(t)?l:xt;return n&&an(t,e,n)&&(e=Br),r(t,Ue(e,3))}function On(t,e){var n=Aa(t)?f:It;return n(t,Ue(e,3))}function Dn(t,e){var n=Aa(t)?u:va;return n(t,Ue(e,3))}function Wn(t,e){var n=Aa(t)?c:_a;return n(t,Ue(e,3))}function jn(t,e,n,r){t=Kn(t)?t:Lr(t),n=n&&!r?_r(n):0;var i=t.length;return 0>n&&(n=Jo(i+n,0)),sr(t)?i>=n&&t.indexOf(e,n)>-1:!!i&&m(t,e,n)>-1}function Fn(t,e){var n=Aa(t)?d:Ut;return n(t,Ue(e,3))}function An(t,e,n){var r=Aa(t)?g:w,i=arguments.length<3;return r(t,Ue(e,4),n,i,va)}function Nn(t,e,n){var r=Aa(t)?v:ne;return n&&an(t,e,n)&&(e=Br),r(t,Ue(e,3))}function kn(){return Date.now()}function Pn(t,e,n){e=n?Br:e;var r=Ae(t,Kr,Br,Br,Br,Br,Br,e);return r.placeholder=Pn.placeholder,r}function Bn(t,e,n){e=n?Br:e;var r=Ae(t,Jr,Br,Br,Br,Br,Br,e);return r.placeholder=Bn.placeholder,r}function Gn(t,e,n){function r(e){var n=s,r=d;return s=d=Br,m=e,g=t.apply(r,n)}function i(t){return m=t,v=setTimeout(u,e),w?r(t):g}function o(t){var n=t-_,r=t-m,i=e-n;return y?Zo(i,p-r):i}function a(t){var n=t-_,r=t-m;return _===Br||n>=e||0>n||y&&r>=p}function u(){var t=kn();return a(t)?c(t):void(v=setTimeout(u,o(t)))}function c(t){return v=Br,b&&s?r(t):(s=d=Br,g)}function l(){m=0,s=_=d=v=Br}function f(){return v===Br?g:c(kn())}function h(){var t=kn(),n=a(t);if(s=arguments,d=this,_=t,n){if(v===Br)return i(_);if(y)return v=setTimeout(u,e),r(_)}return v===Br&&(v=setTimeout(u,e)),g}var s,d,p,g,v,_,m=0,w=!1,y=!1,b=!0;if("function"!=typeof t)throw new TypeError(Ur);return e=wr(e)||0,or(n)&&(w=!!n.leading,y="maxWait"in n,p=y?Jo(wr(n.maxWait)||0,e):p,b="trailing"in n?!!n.trailing:b),h.cancel=l,h.flush=f,h}function zn(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new TypeError(Ur);var n=function r(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a),a};return n.cache=new(zn.Cache||Z),n}function Un(t,e){if("function"!=typeof t)throw new TypeError(Ur);return e=Jo(e===Br?t.length-1:_r(e),0),function(){for(var n=arguments,r=-1,i=Jo(n.length-e,0),o=Array(i);++r<i;)o[r]=n[e+r];switch(e){case 0:return t.call(this,o);case 1:return t.call(this,n[0],o);case 2:return t.call(this,n[0],n[1],o)}var u=Array(e+1);for(r=-1;++r<e;)u[r]=n[r];return u[e]=o,a(t,this,u)}}function Vn(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError(Ur);return or(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Gn(t,e,{leading:r,maxWait:e,trailing:i})}function $n(t){return yt(t,!1,!0)}function Yn(t){return yt(t,!0,!0)}function Xn(t,e){return t===e||t!==t&&e!==e}function qn(t){return Jn(t)&&Do.call(t,"callee")&&(!Vo.call(t,"callee")||Fo.call(t)==pi)}function Kn(t){return null!=t&&ir(xa(t))&&!rr(t)}function Jn(t){return ar(t)&&Kn(t)}function Zn(t){return t===!0||t===!1||ar(t)&&Fo.call(t)==vi}function Qn(t){return ar(t)&&Fo.call(t)==_i}function tr(t){if(Kn(t)&&(Aa(t)||sr(t)||rr(t.splice)||qn(t)||Na(t)))return!t.length;if(ar(t)){var e=Ke(t);if(e==bi||e==Ii)return!t.size}for(var n in t)if(Do.call(t,n))return!1;return!(aa&&Cr(t).length)}function er(t,e){return Ft(t,e)}function nr(t){return"number"==typeof t&&qo(t)}function rr(t){var e=or(t)?Fo.call(t):"";return e==wi||e==yi}function ir(t){return"number"==typeof t&&t>-1&&t%1==0&&ci>=t}function or(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 cr(t){return null===t}function lr(t){return null==t}function fr(t){return"number"==typeof t||ar(t)&&Fo.call(t)==Si}function hr(t){if(!ar(t)||Fo.call(t)!=xi||R(t))return!1;var e=Xe(t);if(null===e)return!0;var n=Do.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Oo.call(n)==jo}function sr(t){return"string"==typeof t||!Aa(t)&&ar(t)&&Fo.call(t)==Mi}function dr(t){return"symbol"==("undefined"==typeof t?"undefined":r(t))||ar(t)&&Fo.call(t)==Li}function pr(t){return ar(t)&&ir(t.length)&&!!mo[Fo.call(t)]}function gr(t){return t===Br}function vr(t){if(!t)return 0===t?t:0;if(t=wr(t),t===ui||t===-ui){var e=0>t?-1:1;return e*li}return t===t?t:0}function _r(t){var e=vr(t),n=e%1;return e===e?n?e-n:e:0}function mr(t){return t?wt(_r(t),0,hi):0}function wr(t){if("number"==typeof t)return t;if(dr(t))return fi;if(or(t)){var e=rr(t.valueOf)?t.valueOf():t;t=or(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Vi,"");var n=qi.test(t);return n||Ji.test(t)?yo(t.slice(2),n?2:8):Xi.test(t)?fi:+t}function yr(t){return Ce(t,Tr(t))}function br(t){return null==t?"":oe(t)}function Sr(t,e,n){var r=null==t?Br:Et(t,e);return r===Br?n:r}function xr(t,e){return null!=t&&Je(t,e,Wt)}function Cr(t){var e=hn(t);if(!e&&!Kn(t))return Bt(t);var n=en(t),r=!!n,i=n||[],o=i.length;for(var a in t)!Dt(t,a)||r&&("length"==a||on(a,o))||e&&"constructor"==a||i.push(a);return i}function Tr(t){for(var e=-1,n=hn(t),r=Gt(t),i=r.length,o=en(t),a=!!o,u=o||[],c=u.length;++e<i;){var l=r[e];a&&("length"==l||on(l,c))||"constructor"==l&&(n||!Do.call(t,l))||u.push(l)}return u}function Ir(t,e){var n={};return e=Ue(e,3),Lt(t,function(t,r,i){n[r]=e(t,r,i)}),n}function Mr(t,e,n){return null==t?t:te(t,e,n)}function Lr(t){return t?x(t,Cr(t)):[]}function Hr(t,e,n){return t=br(t),n=wt(_r(n),0,t.length),t.lastIndexOf(oe(e),n)==n}function Er(t,e,n){if(t=br(t),t&&(n||e===Br))return t.replace(Vi,"");if(!t||!(e=oe(e)))return t;var r=F(t),i=F(e),o=T(r,i),a=I(r,i)+1;return fe(r,o,a).join("")}function Rr(t){return t}function Or(t){return Pt("function"==typeof t?t:yt(t,!0))}function Dr(t,e){return $t(t,yt(e,!0))}function Wr(){}function jr(t){return un(t)?Jt(mn(t)):Zt(t)}function Fr(){return[]}function Ar(){return!1}function Nr(t){var e=++Wo;return br(t)+e}function kr(t){return t&&t.length?Ct(t,Rr,Ot):Br}function Pr(t){return t&&t.length?Ct(t,Rr,zt):Br}var Br,Gr="4.13.1",zr=200,Ur="Expected a function",Vr="__lodash_hash_undefined__",$r="__lodash_placeholder__",Yr=1,Xr=2,qr=4,Kr=8,Jr=16,Zr=32,Qr=64,ti=128,ei=256,ni=512,ri=1,ii=2,oi=150,ai=16,ui=1/0,ci=9007199254740991,li=1.7976931348623157e308,fi=NaN,hi=4294967295,si=hi-1,di=hi>>>1,pi="[object Arguments]",gi="[object Array]",vi="[object Boolean]",_i="[object Date]",mi="[object Error]",wi="[object Function]",yi="[object GeneratorFunction]",bi="[object Map]",Si="[object Number]",xi="[object Object]",Ci="[object Promise]",Ti="[object RegExp]",Ii="[object Set]",Mi="[object String]",Li="[object Symbol]",Hi="[object WeakMap]",Ei="[object ArrayBuffer]",Ri="[object DataView]",Oi="[object Float32Array]",Di="[object Float64Array]",Wi="[object Int8Array]",ji="[object Int16Array]",Fi="[object Int32Array]",Ai="[object Uint8Array]",Ni="[object Uint8ClampedArray]",ki="[object Uint16Array]",Pi="[object Uint32Array]",Bi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gi=/^\w*$/,zi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(\.|\[\])(?:\4|$))/g,Ui=/[\\^$.*+?()[\]{}|]/g,Vi=/^\s+|\s+$/g,$i=/\\(\\)?/g,Yi=/\w*$/,Xi=/^[-+]0x[0-9a-f]+$/i,qi=/^0b[01]+$/i,Ki=/^\[object .+?Constructor\]$/,Ji=/^0o[0-7]+$/i,Zi=/^(?:0|[1-9]\d*)$/,Qi="\\ud800-\\udfff",to="\\u0300-\\u036f\\ufe20-\\ufe23",eo="\\u20d0-\\u20f0",no="\\ufe0e\\ufe0f",ro="["+Qi+"]",io="["+to+eo+"]",oo="\\ud83c[\\udffb-\\udfff]",ao="(?:"+io+"|"+oo+")",uo="[^"+Qi+"]",co="(?:\\ud83c[\\udde6-\\uddff]){2}",lo="[\\ud800-\\udbff][\\udc00-\\udfff]",fo="\\u200d",ho=ao+"?",so="["+no+"]?",po="(?:"+fo+"(?:"+[uo,co,lo].join("|")+")"+so+ho+")*",go=so+ho+po,vo="(?:"+[uo+io+"?",io,co,lo,ro].join("|")+")",_o=RegExp(oo+"(?="+oo+")|"+vo+go,"g"),mo={};mo[Oi]=mo[Di]=mo[Wi]=mo[ji]=mo[Fi]=mo[Ai]=mo[Ni]=mo[ki]=mo[Pi]=!0,mo[pi]=mo[gi]=mo[Ei]=mo[vi]=mo[Ri]=mo[_i]=mo[mi]=mo[wi]=mo[bi]=mo[Si]=mo[xi]=mo[Ti]=mo[Ii]=mo[Mi]=mo[Hi]=!1;var wo={};wo[pi]=wo[gi]=wo[Ei]=wo[Ri]=wo[vi]=wo[_i]=wo[Oi]=wo[Di]=wo[Wi]=wo[ji]=wo[Fi]=wo[bi]=wo[Si]=wo[xi]=wo[Ti]=wo[Ii]=wo[Mi]=wo[Li]=wo[Ai]=wo[Ni]=wo[ki]=wo[Pi]=!0,wo[mi]=wo[wi]=wo[Hi]=!1;var yo=parseInt,bo="object"==r(e)&&e,So=bo&&"object"==r(t)&&t,xo=So&&So.exports===bo,Co=M("object"==("undefined"==typeof n?"undefined":r(n))&&n),To=M("object"==("undefined"==typeof self?"undefined":r(self))&&self),Io=M("object"==r(this)&&this),Mo=Co||To||Io||Function("return this")(),Lo=Array.prototype,Ho=Object.prototype,Eo=Mo["__core-js_shared__"],Ro=function(){var t=/[^.]+$/.exec(Eo&&Eo.keys&&Eo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Oo=Function.prototype.toString,Do=Ho.hasOwnProperty,Wo=0,jo=Oo.call(Object),Fo=Ho.toString,Ao=RegExp("^"+Oo.call(Do).replace(Ui,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),No=xo?Mo.Buffer:Br,ko=Mo.Reflect,Po=Mo.Symbol,Bo=Mo.Uint8Array,Go=ko?ko.enumerate:Br,zo=Object.getOwnPropertySymbols,Uo=Object.create,Vo=Ho.propertyIsEnumerable,$o=Lo.splice,Yo=Math.floor,Xo=Object.getPrototypeOf,qo=Mo.isFinite,Ko=Object.keys,Jo=Math.max,Zo=Math.min,Qo=Ye(Mo,"DataView"),ta=Ye(Mo,"Map"),ea=Ye(Mo,"Promise"),na=Ye(Mo,"Set"),ra=Ye(Mo,"WeakMap"),ia=Ye(Object,"create"),oa=ra&&new ra,aa=!Vo.call({valueOf:1},"valueOf"),ua={},ca=wn(Qo),la=wn(ta),fa=wn(ea),ha=wn(na),sa=wn(ra),da=Po?Po.prototype:Br,pa=da?da.valueOf:Br,ga=da?da.toString:Br;k.prototype=bt(N.prototype),k.prototype.constructor=k,P.prototype.clear=B,P.prototype["delete"]=G,P.prototype.get=z,P.prototype.has=U,P.prototype.set=V,$.prototype.clear=Y,$.prototype["delete"]=X,$.prototype.get=q,$.prototype.has=K,$.prototype.set=J,Z.prototype.clear=Q,Z.prototype["delete"]=tt,Z.prototype.get=et,Z.prototype.has=nt,Z.prototype.set=rt,it.prototype.add=it.prototype.push=ot,it.prototype.has=at,ut.prototype.clear=ct,ut.prototype["delete"]=lt,ut.prototype.get=ft,ut.prototype.has=ht,ut.prototype.set=st;var va=Me(Lt),_a=Me(Ht,!0),ma=Le(),wa=Le(!0);Go&&!Vo.call({valueOf:1},"valueOf")&&(Gt=function(t){return O(Go(t))});var ya=oa?function(t,e){return oa.set(t,e),t}:Rr,ba=na&&1/j(new na([,-0]))[1]==ui?function(t){return new na(t)}:Wr,Sa=oa?function(t){return oa.get(t)}:Wr,xa=Jt("length");zo||(qe=Fr),(Qo&&Ke(new Qo(new ArrayBuffer(1)))!=Ri||ta&&Ke(new ta)!=bi||ea&&Ke(ea.resolve())!=Ci||na&&Ke(new na)!=Ii||ra&&Ke(new ra)!=Hi)&&(Ke=function(t){var e=Fo.call(t),n=e==xi?t.constructor:Br,r=n?wn(n):Br;if(r)switch(r){case ca:return Ri;case la:return bi;case fa:return Ci;case ha:return Ii;case sa:return Hi}return e});var Ca=function(){var t=0,e=0;return function(n,r){var i=kn(),o=ai-(i-e);if(e=i,o>0){if(++t>=oi)return n}else t=0;return ya(n,r)}}(),Ta=zn(function(t){var e=[];return br(t).replace(zi,function(t,n,r,i){e.push(r?i.replace($i,"$1"):n||t)}),e}),Ia=Un(function(t,e){return Jn(t)?St(t,Mt(e,1,Jn,!0)):[]}),Ma=Un(function(t){var e=d(t,ce);return e.length&&e[0]===t[0]?jt(e):[]}),La=Un(function(t,e){e=Mt(e,1);var n=t?t.length:0,r=mt(t,e);return Qt(t,d(e,function(t){return on(t,n)?+t:t}).sort(we)),r}),Ha=Un(function(t){return ae(Mt(t,1,Jn,!0))}),Ea=Oe(Sn),Ra=Un(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]:Mt(e,1,rn),qt(t,e,[])}),Oa=Un(function(t,e,n){var r=Yr;if(n.length){var i=W(n,ze(Oa));r|=Zr}return Ae(t,r,e,n,i)}),Da=Un(function(t,e,n){var r=Yr|Xr;if(n.length){var i=W(n,ze(Da));r|=Zr}return Ae(e,r,t,n,i)});zn.Cache=Z;var Wa=Un(function(t,e){var n=W(e,ze(Wa));return Ae(t,Zr,Br,e,n)}),ja=Un(function(t,e){var n=W(e,ze(ja));return Ae(t,Qr,Br,e,n)}),Fa=je(Ot),Aa=Array.isArray,Na=No?function(t){return t instanceof No}:Ar,ka=je(zt),Pa=Ie(function(t,e){if(aa||hn(e)||Kn(e))return void Ce(e,Cr(e),t);for(var n in e)Do.call(e,n)&>(t,n,e[n])}),Ba=Ie(function(t,e){if(aa||hn(e)||Kn(e))return void Ce(e,Tr(e),t);for(var n in e)gt(t,n,e[n])}),Ga=Ie(function(t,e,n,r){Ce(e,Tr(e),t,r)}),za=Un(function(t){return t.push(Br,dt),a(Ga,Br,t)}),Ua=Un(function(t){return t.push(Br,gn),a($a,Br,t)}),Va=Ie(function(t,e,n){Yt(t,e,n)}),$a=Ie(function(t,e,n,r){Yt(t,e,n,r)}),Ya=Un(function(t,e){return null==t?{}:Kt(t,d(Mt(e,1),mn))});A.assign=Pa,A.assignIn=Ba,A.assignInWith=Ga,A.bind=Oa,A.bindKey=Da,A.compact=yn,A.curry=Pn,A.curryRight=Bn,A.debounce=Gn,A.defaults=za,A.defaultsDeep=Ua,A.difference=Ia,A.fill=bn,A.filter=On,A.intersection=Ma,A.iteratee=Or,A.keys=Cr,A.keysIn=Tr,A.map=Fn,A.mapValues=Ir,A.mP=Dr,A.memoize=zn,A.merge=Va,A.mergeWith=$a,A.partial=Wa,A.partialRight=ja,A.pick=Ya,A.property=jr,A.pullAt=La,A.remove=Tn,A.rest=Un,A.set=Mr,A.sortBy=Ra,A.take=Ln,A.throttle=Vn,A.toPlainObject=yr,A.union=Ha,A.uniq=Hn,A.values=Lr,A.zipObject=En,A.extend=Ba,A.extendWith=Ga,A.clone=$n,A.cloneDeep=Yn,A.eq=Xn,A.every=Rn,A.find=Ea,A.findIndex=Sn,A.forEach=Dn,A.forEachRight=Wn,A.get=Sr,A.gt=Fa,A.hasIn=xr,A.identity=Rr,A.includes=jn,A.indexOf=xn,A.isArguments=qn,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=ir,A.isNaN=ur,A.isNil=lr,A.isNull=cr,A.isNumber=fr,A.isObject=or,A.isObjectLike=ar,A.isPlainObject=hr,A.isString=sr,A.isSymbol=dr,A.isTypedArray=pr,A.isUndefined=gr,A.last=Cn,A.lt=ka,A.max=kr,A.min=Pr,A.stubArray=Fr,A.stubFalse=Ar,A.noop=Wr,A.now=kn,A.reduce=An,A.some=Nn,A.sortedIndex=In,A.sortedIndexBy=Mn,A.startsWith=Hr,A.toFinite=vr,A.toInteger=_r,A.toLength=mr,A.toNumber=wr,A.toString=br,A.trim=Er,A.uniqueId=Nr,A.each=Dn,A.eachRight=Wn,A.VERSION=Gr,u(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){A[t].placeholder=A}),t.exports=A}).call(void 0)}).call(e,n(8)(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<t.length;e++)n[e]=t[e];return n}return Array.from(t)}!function(){function e(t){if(t&&t.childNodes)for(var n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];8===r.nodeType||3===r.nodeType&&!/\S/.test(r.nodeValue)?(t.removeChild(r),n--):1===r.nodeType&&e(r)}}function i(t,e,n){e=e||h.getStyle(t);var r;return c.isString(n)?r=o(e[n]):(n=n||d,r={},n.forEach(function(t){r[t]=o(e[t])})),r}function o(t){var e=parseFloat(t);return isNaN(e)?0:e}function a(){var t=document.body,e=t.style;if(e&&e.position&&"static"!==e.position){var n=h.gCSV(t,null,d);return{left:n.paddingLeft+n.marginLeft+n.borderLeftWidth,top:n.paddingTop+n.marginTop+n.borderTopWidth,right:n.paddingRight+n.marginRight+n.borderRightWidth}}return{left:0,top:0,right:0}}var u=n(7),c=n(10),l="left",f="right",h={},s={left:0,top:0,width:0,height:0};h.isDomElement=function(t){return t instanceof HTMLElement},h.isVisible=function(t){return h.isDomElement(t)&&null!==t.offsetParent},h.createElement=function(t){var e=document.createElement("div");e.innerHTML=t;var n=e.children[0];return e=null,n},h.createTemplateElement=function(t){var n=document.createElement("div");
- return n.innerHTML=t,e(n),n},h.getElementInnerText=function(t){return t.innerHTML.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")},h.getElementOuterText=function(t){return t.outerHTML.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")},h.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},h.removeClass=function(t,e){if(t&&t.setAttribute&&h.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(" "))}},h.addClass=function(t,e){if(t&&t.setAttribute&&!h.hasClass(t,e)){var n=t.getAttribute("class");t.setAttribute("class",n?n+" "+e:e)}},h.toggleClass=function(t,e,n){n===!0?h.addClass(t,e):h.removeClass(t,e)},h.getElement=function(t){return t instanceof HTMLElement?t:c.isString(t)?document.querySelector(t):null},h.contains=function(t,e){for(var n=e;n;n=n.parentElement)if(n===t)return!0;return!1},h.offset=function(t){var e=t?t.getBoundingClientRect():s;return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},h.gER=function(t){var e=t?t.getBoundingClientRect():s;return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,width:e.width,height:e.height}},h.gCoR=function(t){var e=t?t.getBoundingClientRect():s,n=i(t),r=n.paddingLeft+n.paddingRight,o=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-o-u))}},h.gCoRFn=function(t){var e=i(t),n=e.paddingLeft+e.paddingRight,r=e.paddingTop+e.paddingBottom,o=e.borderLeftWidth+e.borderRightWidth,a=e.borderTopWidth+e.borderBottomWidth;return function(){var i=t.getBoundingClientRect();return{left:i.left+window.pageXOffset+e.borderLeftWidth+e.paddingLeft,top:i.top+window.pageYOffset+e.borderTopWidth+e.paddingTop,width:Math.max(0,Math.floor(i.width-n-o)),height:Math.max(0,Math.floor(i.height-r-a))}}},h.getStyle=function(t){var e=getComputedStyle||window.getComputedStyle;return t&&e?e(t,null):null};var d=["paddingLeft","paddingRight","paddingTop","paddingBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","marginLeft","marginRight","marginTop","marginBottom"];h.gCSV=i,h.getBodyStyle=a,h.setCss=function(t,e){var n=t.style;for(var r in e){var i=e[r];c.isNumber(i)&&r.match(/width|height|left|top|right|bottom|size|padding|margin'/i)&&(i+="px"),n[r]=i.toString()}},h.gSS=function(t){if(t.scS_)return t.scS_;var e=h.createElement('<div style="position:absolute; top:-10000px; left:-10000px; width:100px; height:100px; overflow:scroll;"></div>');return document.body.appendChild(e),t.scS_={width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight},e.parentNode.removeChild(e),t.scS_},h.gSCH=function(){if(h.mSCH)return h.mSCH;var t,e=1e6,n=6e9,r=h.createElement('<div style="display:none"/>');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),h.mSCH=e,h.mSCH},h.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;h.detectRTLMode=function(){if(p)return p;var t=h.createElement('<div class="gc-test-container" style="overflow:auto;height:500px;width:500px;direction:rtl"><div class="gc-test-content" style="height:400px;width:1000px;"></div></div>');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},h.getRTLScrollLeft=function(t){var e=arguments.length<=1||void 0===arguments[1]?"normal":arguments[1];return h.isDomElement(t)?h.tRTLSL(t.scrollLeft,t.scrollWidth-t.clientWidth,h.detectRTLMode(),e):void 0},h.setRTLScrollLeft=function(t,e){var n=arguments.length<=2||void 0===arguments[2]?"normal":arguments[2];if(h.isDomElement(t)){var r=h.detectRTLMode();t.scrollLeft=n===r?e:h.tRTLSL(e,t.scrollWidth-t.clientWidth,n,r)}};var g={normal:0,reverse:1,negative:2};h.tRTLSL=function(t,e,n,i){if(n===i)return t;if(n=g[n],i=g[i],0>=e)return 0;var o=[[[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(o[n][i])))},h.inverseToRTL=function(t){if(!h.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];c.isNilOrWhiteSpace(r)||(t.style[e]="",t.style[n]=r)};return u.forEach(e,function(t){c.isNilOrWhiteSpace(t.style.right)?c.isNilOrWhiteSpace(t.style.left)||r(t,l,f):r(t,f,l),t.style["float"]===f?t.style["float"]=l:t.style["float"]===l&&(t.style["float"]=f)}),t},h.detectBrowserType=function(){if(h.duckTypingBrowserType)return h.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,i=!!document.documentMode,o=!i&&!!window.StyleMedia,a=!!window.chrome&&!!window.chrome.webstore,u=(a||e)&&!!window.CSS,c=!!t.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i);return h.duckTypingBrowserType={isOpera:e,isFirefox:n,isSafari:r,isIE:i,isEdge:o,isChrome:a,isBlink:u,isMobileDevice:c}},t.exports=h}()},function(t,e,n){"use strict";!function(){function e(t){return H.isNil(t)?!0:H.isString(t)?t.replace(/\s/g,"").length<1:!1}function r(t,e,n){t&&t.removeEventListener(e,n)}function i(t,e,n){t&&t.addEventListener(e,n)}function o(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=H.isNil(e)||"boolean"==typeof e||""===e;if(n)return"";var r=isNaN(e);return r||0===e||D.hasOwnProperty(t)&&D[t]?""+e:("string"==typeof e&&(e=e.trim()),e+"px")}function c(t){var e={};return function(n){return e.hasOwnProperty(n)?e[n]:(e[n]=t.call(this,n),e[n])}}function l(t){return t.replace(W,"-$1").toLowerCase()}function f(t){return l(t).replace(j,"-ms-")}function h(t){var e="";for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];H.isNil(r)||(e+=F(n)+":",e+=u(n,r)+";")}return e||null}function s(t,e){var n=function(t){return"[object Object]"===Object.prototype.toString.call(t)};if(!n(t)||!n(e))return t;for(var r,i=[{level:-1,value:t,key:null}],o=[],a={};i.length>0;)if(r=i.pop(),L.isNil(r.key)||(o=H.take(o,r.level),o.push(r.key)),L.isObject(r.value)&&!L.isFunction(r.value))for(var u in r.value)i.push({level:r.level+1,value:r.value[u],key:u});else{var c=o.join("."),l=H.get(t,c);l!==H.get(e,c)&&H.set(a,c,l)}return H.isEmpty(a)?null:a}function d(t){var e=H.cloneDeep(t),n=[];e&&n.push(e);for(var r;n.length>0;)if(r=n.pop(),L.isObject(r))for(var i in r)n.push(r[i]),L.isFunction(r[i])&&(r[i]=g(r[i]));return e}function p(t){var e=H.clone(t),n=[];e&&n.push(e);for(var r,i;n.length>0;)if(r=n.pop(),L.isObject(r))for(var o in r)n.push(r[o]),L.isString(r[o])&&(i=v(r[o]),i&&(r[o]=i));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+/,"")}),i=t.indexOf("{")+1,o=t.lastIndexOf("}");return new Function(r,t.substr(i,o-i))}return null}function _(t){var e;try{e=GC.Spread.Views.Plugins[t]}catch(n){}return e}function m(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 w(t){var e=L.toDate(t);if(isNaN(e.getTime()))return t;var n=e.getFullYear().toString(),r=(e.getMonth()+1).toString(),i=e.getDate().toString();return y(n,4)+"-"+y(r,2)+"-"+y(i,2)}function y(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 S(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""}function x(t,e,n){var r=function(t){return H.isUndefined(t)?t:n?(t+"").trim().toLowerCase():(t+"").trim().toString()},i=r(e);return function(e){if(null==e)return!1;var r=C(e,t);return r=H.isUndefined(r)?r:n?(r+"").toLowerCase():(r+"").toString(),r===i?void 0!==i||t in e:H.isEqual(r,i)}}function C(){var t=arguments.length<=0?void 0:arguments[0],e=arguments.length<=1?void 0:arguments[1];if(!H.isNil(t)&&!H.isNil(e)){e=H.isArray(e)?e:H.isString(e)?e.split("."):[e];for(var n=0,r=e.length,i=arguments.length>2;t&&r>n;){if(i&&n===r-1)return void(t[e[n]]=arguments.length<=2?void 0:arguments[2]);t=t[e[n++]]}return t}}function T(t,e,n,r){H.isArray(t)||(t=[t]),H.isArray(e)||(e=[e]);var i=r?[]:{};H.forEach(t,function(t){i[t]||(i[t]=1)});var o=[],a=[],u=[],c=0,l=0,f=0;return H.forEach(e,function(t){i[t]?(i[t]=2,n&&(a[f++]=t)):(i[t]=3,n&&(o[c++]=t))}),n&&H.forEach(i,function(t,e){1===t&&(u[l++]=+e)}),n?{add:o,remove:u,keep:a}:{map:i}}function I(t){return L.isNumber(t)?M(t):new Date(t)}function M(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={},H=n(7);L.isString=H.isString,L.regist=i,L.unRegist=r,L.isNilOrWhiteSpace=e,L.isNumber=H.isNumber,L.isInt=H.isInteger,L.isBoolean=H.isBoolean,L.isFunction=H.isFunction,L.isUndefined=H.isUndefined,L.isDate=H.isDate,L.isArray=H.isArray,L.isObject=H.isObject,L.debugLog=o,L.getType=a,L.isNull=H.isNull,L.isNil=H.isNil;var E={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=E;var R=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=R;var O={Text:"text",CheckBox:"checkbox",Date:"date",Color:"color",Number:"number"};L.EditorType=O;var D={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},W=/([A-Z])/g,j=/^-ms-/,F=c(function(t){return f(t)});L.cMFS=h,L.extractObject=s,L.serializeObject=d,L.deserializeObject=p,L.serializeFunction=g,L.deserializeFunction=v,L.findPlugin=_,L.getResource=m,L.normalizeDate=w,L.extends_=b,L.caC=S,L.mP=x,L.sOP=function(t,e){return C(t,e)},L.gOP=function(t,e,n){return C(t,e,n)},L.compareArray=T,L.toDate=I,t.exports=L}()},function(t,e,n){"use strict";!function(){function e(t){var n,r,i,o=0;for(n=0,r=t.length;r>n;n++)i=t[n],o=i.hasOwnProperty("columns")?Math.max(o,1+e(i.columns)):Math.max(o,1);return o}function r(t,e,n,r,i){var o=i&&t.isTouchMode?10:0;return e>=r.left-o&&e<=r.right+o&&n>=r.top-o&&n<=r.bottom+o}function i(t,e,n,r,i,o){var a=j.offset(r),u=j.offset(i),c=a.left-u.left,l=a.top-u.top,f=j.gER(r),h=o&&t.isTouchMode?10:0;c-=h,l-=h;var s=c+f.width+2*h,d=l+f.height+2*h;return e>=c&&s>=e&&n>=l&&d>=n}function o(t){return t&&t.action&&t.swipeDirection}function a(t){return t.data.groups&&t.data.groups.length>0}function u(t,e){e=W.defaults(e,{control:null,action:null,mode:"depthFirst",direction:"ltr",traverseCollapsed:!1,parentFirst:!0,getChildren:function(t){return t.children}});var n=W.isFunction(e.control)?e.control:null,r=W.isFunction(e.action)?e.action:null,i="widthFirst"===e.mode,o="rtl"===e.direction,a=i?"unshift":"push",u=i!==o===e.parentFirst?W.forEach:W.forEachRight,c=function(t,e){if(t.length>20){var n=t.slice();return i?o?n.concat(e):n.reverse().concat(e):o?e.concat(n):e.reverse().concat(n)}return u(t,function(t){e[a](t)}),e},l=[t];if(e.parentFirst)for(;l.length>0;){var f=l.pop();if(n){var h=n(f);if("break"===h)break;if("continue"===h)continue}r&&r(f),!e.traverseCollapsed&&f.collapsed||(l=c(e.getChildren(f),l))}else{for(var s=[],d=0;l.length>0;){var p=l.pop();if(n){var g=n(p);if("break"===g)break;if("continue"===g)continue}s[d++]=p,!e.traverseCollapsed&&p.collapsed||(l=c(e.getChildren(p),l))}r&&W.forEachRight(s,function(t){r(t)}),s.length=0}l.length=0}function c(t,e,n,r){if(t){r||(r={index:-1});var i;if(-1!==t.level&&(r.index++,i=e(t,r.index,!1)))return i;if(!t.collapsed){for(var o=r.index,a=t.children.length,u=0;a>u;u++)if(i=c(t.children[u],e,n,r))return i;if(n&&a>0&&-1!==t.level&&(i=e(t,o,!0)))return i}return i}}function l(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===P){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 i=0,o=n.length;o>i;i++)if(n[i]!==r[i])return!1;return!0}function h(t){var e,n,r,i=!1;for(e=0,n=t.length;n>e&&(r=t[e],!(i=r.columns?h(r.columns):"left"===r.pinned||"right"===r.pinned));e++);return i}function s(t,e,n){var r,i,o=[];for(r=0,i=e.length;i>r;r++)e[r].columns&&o.push(e[r]);for(var a;o.length>0;){if(a=o.shift(),a.caption===n)return a;for(r=0,i=a.columns.length;i>r;r++)a.columns[r].columns&&o.push(a.columns[r])}}function d(t,e,n){if(!e)return 0;e=F.isArray(e)?e:[e];var r,i,o,a=0;for(r=0,i=e.length;i>r;r++)o=e[r],o.columns?a+=this.gGCHW_(t,o.columns,n):t.iCV_(o,n)&&o.pinned===n&&(a+=F.isNumber(o.visibleWidth)?o.visibleWidth:0);return a}function p(t,e){var n,r=e.groupDescriptor,i=r.footer,o=r.header,a=t.data,u=e.path;if(e.collapsed)return{path:u,itemIndex:-1,area:i.visible&&!i.collapseWithGroup||!o.visible?k:N};if(i.location===et&&i.visible)return{path:u,itemIndex:-1,area:k};if(e.isBottomLevel){var c=e.expandedItemCount,l={path:u,itemIndex:c-1,area:i&&i.visible&&0===c?k:P},f=a.hierarchyDescriptor;if(f){var h=f.footer;if(h&&h.visible)l.nodeInfo={path:[0],area:B};else{var s=e.rootNode;if(s){for(;s&&s.children&&s.children.length>0;)s=s.children[s.children.length-1];l.nodeInfo={path:s.path,area:G}}}}return l}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 i=ct.gUT_(r);if(i){var o=j.createElement("<div>"+i+"</div>");return e.rightToLeft?j.inverseToRTL(o).innerHTML:o.innerHTML}}return null}function v(t){if(t){var e;return e=F.isString(t)&&t.length>1&&"#"===t[0]?document.getElementById(t.slice(1)).cloneNode(!0):j.createElement("<div>"+t+"</div>"),e.innerHTML}return null}function _(t,e,n,r,i){W.isObject(t)&&(e=t.area,n=t.row,r=t.groupInfo,i=t.nodeInfo,t=t.uid);var o=t;o+=lt[e]?"-"+lt[e]:"";var a=m(r),u=m(i);return o+=a+u,""===u&&W.isNumber(n)&&(-1!==n||r?n>=0&&(!r||r&&r.area===P)&&(o+="-r"+n):o+="-autorow"),o}function m(t){return t&&t.path&<[t.area]?"-"+lt[t.area]+t.path.join("_"):""}function w(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(W.indexOf(r,n[0])>-1?(e.area=lt[n[0]],n.shift()):e.area=z,0===n.length)return e;var i=n[0].match(/g[hrf]/);if(i&&(e.groupInfo={area:lt[i[0]],path:n[0].replace(/g[hrf]/,"").split("_")},n.shift()),0===n.length)return e;var o=n[0].match(/n[rf]/);return o&&(e.nodeInfo={area:lt[o[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 y(t,e){for(var n,r=t.columns,i=0,o=r.length;o>i;i++)if(n=r[i],n.id===e)return i;return-1}function b(t,e){if(t.area===z||t.area===U||t.area===V){var n=t.groupInfo,r=n&&(n.area===k||n.area===N),i=t.nodeInfo,o=i&&i.area===B;if(!o&&!r){var a=n?n.column:t.column;return e&&a>=0||!e}}return!1}function S(t,e,n,r,i){var o=_(t,e,n,r,i);return o?document.getElementById(o):null}function x(t,e){var n=[z],r=t.layoutEngine;r.sPV_&&(r.sPV_("left")&&n.push(U),r.sPV_("right")&&n.push(V));var i=[],o=e.groupInfo,a=e.nodeInfo;return n.forEach(function(n){var r=ct.createID(t.uid,n,o?o.row:e.row,o,a);r&&i.push(r)}),i}function C(t){var e='<div class="gc-grid" style="position:absolute;top:-10000px;left:-10000px;width:5000px;height:5000px;">'+(F.isString(t)?t:t.innerHTML)+"</div>",n=j.createElement(e);document.body.appendChild(n);var r=n.firstChild,i=null;return r&&(i=j.gCoR(r)),document.body.removeChild(n),i}function T(t){var e=t.gLI_(),n=e[z],r=e[U],i=e[V];return n?n.contentHeight>n.height:r?r.contentHeight>r.height:i?i.contentHeight>i.height:!1}function I(t){var e=t.gLI_(),n=e[z];return n?n.contentWidth>n.width:!1}function M(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||(W.each(e.children,function(e){r+=M(t,e,!0)}),n&&e.children.length>0&&ct.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 i=0,o=e.collapsed;if(o||(e.rootNode?i+=M(r,e.rootNode):e.isBottomLevel?i+=e.itemCount:W.each(e.groups,function(t){i+=L(r,t,!0)})),n){var a=e[nt],u=a&&a[rt]&&a[rt][it],c=a&&a[ot],l=c&&c[it],f=c&&c.collapseWithGroup;u&&++i,(l&&(!f||!o)||!u&&o)&&++i}return i}function H(){var t=-1,e=void 0,n=arguments,r=n[0];if(F.isString(n[1])?e=ct.parseID(n[1]):n.length>2&&(e={row:n[1],groupInfo:n[2],nodeInfo:n[3],isNewRow:n[4]}),e){var i=r.layoutEngine.aARA_(ut),o=r.data;if(e.isNewRow)t=i?0:a(r)?L(r,o.rootGroup,!0):r.data&&r.data.hierarchyDescriptor?M(r,o.rootNode,!0):o.itemCount;else{if(e.groupInfo)t=E(r,o.rootGroup,e).index;else if(e.nodeInfo)t=R(r,o.rootNode,e).index;else{var u=ct.createID(r.uid,z,e.row),c=r.getItem(u).item;t=c?o.mVI_(c.sourceIndex):-1}i&&(t+=1)}}return t}function E(t,e,n){for(var r,i,o,a,u,c,l,f,h={finish:!1,index:0},s=n.groupInfo,d=e?e.groups:[],p=0,g=d.length;g>p;p++){if(r=d[p],f=r[nt],i=f&&f[rt]&&f[rt][it],l=f&&f[ot],o=l&&l[it],a=l&&l[at],u=i?1:0,c=o&&a===ut?1:0,r.path.toString()===s.path.toString())s.area===k?h.index+=a===ut?u:L(t,r,!0)-1:s.area===P&&(n.nodeInfo?h.index+=R(t,r.rootNode,n).index+u+c:h.index+=n.row+u+c),h.finish=!0;else if(r.path[r.level].toString()===s.path[r.level].toString()){var v=E(t,r,n);h.index+=v.index+u+c,h.finish=v.finish}else h.index+=L(t,r,!0);if(h.finish)break}return h}function R(t,e,n){for(var r={finish:!1,index:0},i=n.nodeInfo,o=e?e.children:[],a=0,u=o.length;u>a;a++){var c=o[a];if(c.path.toString()===i.path.toString())i.area===B&&(r.index+=M(t,c,!0)-1),r.finish=!0;else if(c.path[c.level].toString()===i.path[c.level].toString()){var l=R(t,c,n);r.index+=l.index+1,r.finish=l.finish}else r.index+=M(t,c,!0);if(r.finish)break}return r}function O(t,e,n){var r=t.getItem(e);if(!r)return null;var i=void 0,o=void 0;r.group&&(i={path:r.group.path,area:r.groupArea}),r.node&&(o={path:r.node.path,area:r.nodeArea});var a=t.uid,u=r.row,c=[];return r.isNewRow&&(u=-1,i=null,o=null),W.each(n,function(t){c.push({area:t,id:ct.createID(a,t,u,i,o)})}),c}function D(t){var e=t.dataField;return e&&!W.startsWith(W.trim(e),"=")&&1!==e.split(",").length}var W=n(7),j=n(9),F=n(10),A=n(12),N="groupHeader",k="groupFooter",P="groupContent",B="nodeFooter",G="nodeContent",z="viewport",U="pinnedLeftViewport",V="pinnedRightViewport",$=["pageX","pageY","clientX","clientY","target"],Y="mouseup",X="mousemove",q="mousedown",K="mousewheel",J="click",Z="dblclick",Q=F.regist,tt=F.unRegist,et="bottom",nt="groupDescriptor",rt="header",it="visible",ot="footer",at="location",ut="top",ct={},lt={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:U,pr:V,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"};ct.gCHL_=e,ct.poIP_=r,ct.poI_=i,ct.iTAC_=o,ct.hG_=a;var ft=function(){function t(t,n){o=(new Date).getTime(),i=!1,a=1e3*t,u=n,c&&l?l(e):setTimeout(e,16.6)}function e(){var t=(new Date).getTime(),r=t-o,f=function(t){u(t||n(r,0,1,a))};return r>=a||i?void f(1):(f(),void(c&&l?l(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(){i=!0}var i,o=0,a=0,u=null,c=0,l=window.requestAnimationFrame||window.webkitRequestAnimationFrame;return{play:t,stop:r}}();ct.ani=ft,ct.tT=u,ct.tN_=c,ct.hHF_=l,ct.gIAS_=f,ct.hPC_=h,ct.gGCBC_=s,ct.gGCHW_=d,ct.gLGIP_=p,ct.gUERT_=g,ct.gUT_=v,ct.createID=_,ct.parseID=w,ct.ci_=y,ct.iEOSA_=b;var ht=function(){function t(t){var e=this;e.options=W.defaultsDeep(t||{},{headerTemplate:null,footerTemplate:null,contentTemplate:null,draggable:!1,showOverlay:!0,parent:null}),e.init_()}function e(){var t=this;t.handleClick_=i.bind(t),t.handleMouseDown_=o.bind(t),t.handleMouseWheel_=a.bind(t),t.handleMouseUp_=c.bind(t),t.handleMouseMove_=l.bind(t),t.handleKeyDown_=d.bind(t),t.handleKeyUp_=p.bind(t),t.handleDoubleClick_=r.bind(t),t.tsFn_=u.bind(t),t.teFn_=h.bind(t),t.tmFn_=f.bind(t);var e=t.container;Q(e,J,t.handleClick_),Q(e,Z,t.handleDoubleClick_),Q(e,q,t.handleMouseDown_),Q(e,K,t.handleMouseWheel_),Q(e,Y,t.handleMouseUp_),Q(e,X,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,q,t.handleMouseDown_),tt(e,K,t.handleMouseWheel_),tt(e,Y,t.handleMouseUp_),tt(e,"keydown",t.handleKeyDown_),tt(e,"keyup",t.handleKeyUp_),tt(e,X,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 i(t){g.call(this,t,J)}function o(t){g.call(this,t,q)}function a(t){g.call(this,t,K)}function u(t){g.call(this,s(t),q)}function c(t){g.call(this,t,Y)}function l(t){g.call(this,t,X)}function f(t){g.call(this,t,"touchmove")}function h(t){g.call(this,s(t),Y)}function s(t){var e=W.pick(t.changedTouches[0],$);return e.stopPropagation=function(){t.stopPropagation()},e.preventDefault=function(){t.preventDefault()},e.deviceType="touch",e}function d(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=W.keys(n.eventCache_),i=t.target,o=i.tagName.toLowerCase(),a=i.className?i.className.split(" "):[],u=[];"body"!==o;)u=u.concat(W.intersection(r,a)),i=i.parentNode,o=i.tagName.toLowerCase(),a=i.className?i.className.split(" "):[];var c,l,f;W.each(u,function(r){for(c=n.eventCache_[r][e],f=c?c.length:0,l=0;f>l;l++)c[l](t)})}}function v(t){var e=this;"touch"===t.deviceType?(e.docTouchMoveHandler_=m.bind(e),e.docTouchEndHandler_=b.bind(e),A(document).on("touchmove",e.docTouchMoveHandler_),A(document).on("touchend",e.docTouchEndHandler_)):(e.docMouseMoveHandler_=_.bind(e),e.docMouseUpHandler_=y.bind(e),window.PointerEvent?(Q(document,"pointermove",e.docMouseMoveHandler_),Q(document,"pointerup",e.docMouseUpHandler_),document.body.setPointerCapture(t.pointerId)):(Q(document,X,e.docMouseMoveHandler_),Q(document,Y,e.docMouseUpHandler_)));var n=e.container,r=j.gER(n),i=j.gCSV(n),o=i.marginTop,a=i.marginLeft,u=j.getBodyStyle();e.startMoveInfo_={mouseOffset:{left:t.pageX,top:t.pageY},containerCSSOffset:{left:r.left-a-u.left,top:r.top-o-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 _(t){w.call(this,t)}function m(t){w.call(this,s(t))}function w(t){var e=this;t.preventDefault();var n=e.startMoveInfo_;if(n){var r=n.mouseOffset,i=n.viewportRect,o=n.containerRect,a=t.pageX-r.left,u=t.pageY-r.top,c=o.left,l=i.left,f=o.width,h=i.width,s=o.top,d=i.top,p=o.height,g=i.height;c+f+a>l+h&&(a=l+h-c-f),l>c+a&&(a=l-c),s+p+u>d+g&&(u=d+g-s-p),d>s+u&&(u=d-s),j.setCss(e.container,{left:n.containerCSSOffset.left+a,top:n.containerCSSOffset.top+u})}}function y(t){S.call(this,t)}function b(t){S.call(this,s(t))}function S(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,X,e.docMouseMoveHandler_),tt(document,Y,e.docMouseUpHandler_)),e.docMouseMoveHandler_=null,e.docMouseUpHandler_=null)}function x(){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 i=0,o=e.length;o>i;i++)e[i].setAttribute("tabindex",i+2);r=e.length+2}var a=t.container,u=j.createElement('<div class="gc-popup-first-tab" tabindex="1"></div>'),c=j.createElement('<div class="gc-popup-last-tab" tabindex="'+r+'"></div>');a.insertBefore(u,a.childNodes[0]),a.appendChild(c),t.fFE_=C.bind(t),t.fLE_=T.bind(t),Q(u,"focus",t.fFE_),Q(c,"focus",t.fLE_)}function C(){this.tabbableElements[this.tabbableElements.length-1].focus()}function T(){this.tabbableElements[0].focus()}return t.prototype={init_:function(){var t=this,n=t.options;t.container=j.createElement('<div class="gc-popup-dialog" tabindex="1"></div>');var r,i=t.container,o=j.createElement,a=j.addClass;if(n.headerTemplate&&(r=o(n.headerTemplate),a(r,"gc-popup-header"),i.appendChild(r)),n.contentTemplate){var u=o(n.contentTemplate);a(u,"gc-popup-content"),i.appendChild(u)}if(n.footerTemplate){var c=o(n.footerTemplate);a(c,"gc-popup-footer"),i.appendChild(c)}n.draggable&&r&&(window.PointerEvent?r.addEventListener("pointerdown",v.bind(t)):r.addEventListener(q,v.bind(t))),e.call(t)},open:function(){var t=this,e=t.options,n=e.parent||document.body;e.showOverlay&&(t.overlay_=j.createElement('<div class="gc-popup-overlay"></div>'),n.appendChild(t.overlay_)),n.appendChild(t.container),x.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,i=t.container.parentNode;i&&i.removeChild(r)},mount:function(t,e,n){var r=this;r.eventCache_=r.eventCache_||{};var i=r.eventCache_;i[t]=i[t]||{},i[t][e]=i[t][e]||[];var o=i[t][e];-1===o.indexOf(n)&&o.push(n)}},t}();ct.popup=ht,ct.gRE_=S,ct.getIdList=x,ct.gUER_=C,ct.hVS=T,ct.hHS=I,ct.gNRC_=M,ct.gGRC_=L,ct.vi=H,ct.getRowIDByViewIndex=O,ct.isMultiFieldColumn=D,t.exports=ct}()},function(t,e){"use strict";!function(e){function n(t){return new r(t)}function r(t){this.element=t}function i(){function t(t,e,n,r,i,o,a,u){var c=this;c.identifier=t,c.target=e,c.screenX=n,c.screenY=r,c.clientX=i,c.clientY=o,c.pageX=a,c.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 i(){for(;a.length>0;)a.pop()}function o(t,e){var n;for(n=0;n<a.length;n+=1)if(a[n].screenX===t&&a[n].screenY===e)return!0;return!1}var a=[],u=this;u.touchList=a,u.Touch=t,u.getTouch=e,u.addUpdateTouch=n,u.removeTouch=r,u.clearTouches=i,u.containsTouchAt=o}function o(t,n,r,i,o){if(o)t.addEventListener(n,r,!1),e.cachedEvents||(e.cachedEvents=[]),e.cachedEvents.push({element:t,event:n,handler:r,uid:i});else{if(!e.cachedEvents)return;for(var a=0,u=e.cachedEvents.length;u>a;a++){var c=e.cachedEvents[a];if(c.uid===r.uid){c.element.removeEventListener(c.event,c.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<e.length;n++)r=e[n],r.target.isSameNode(t)&&v.addUpdateTouch(r)}function r(t){var e,r,i;e=a(t)?"touchstart":"touchmove",r=new p.Touch(t.pointerId,a(t)?t.target:d,t.screenX,t.screenY,t.clientX,t.clientY,t.pageX,t.pageY),t.hwTimestamp>m&&!function(){var t,e,n,r,i;for(e=g.touchList,t=0;t<e.length;t+=1)n=e[t],i=n.identifier,r=p.getTouch(i),r&&!f(r,n)||g.removeTouch(i)}();var u=t.pointerId;return a(t)?("input"!==r.target.tagName.toLowerCase()&&"textarea"!==r.target.tagName.toLowerCase()&&("MSPointerDown"===t.type?r.target.msSetPointerCapture(u):r.target.setPointerCapture(u)),p.clearTouches(),o("pointerDown timstap:"+t.hwTimestamp+" pointerId: "+t.pointerId)):o("pointerMove timstap:"+t.hwTimestamp+" pointerId: "+t.pointerId),p.addUpdateTouch(r),g.addUpdateTouch(r),n(r.target,p.touchList),i=new CustomEvent(e,{bubbles:!0,cancelable:!0}),i.touches=p.touchList,i.changedTouches=g.touchList,i.targetTouches=v.touchList,i}function i(t){var e,r,i;return t.changedTouches=[],t.changedTouches.length=1,t.changedTouches[0]=t,t.changedTouches[0].identifier=t.pointerId,r=new p.Touch(t.pointerId,d,t.screenX,t.screenY,t.clientX,t.clientY,t.pageX,t.pageY),c(t)&&(e="touchend","MSPointerUp"===t.type?r.target.msReleasePointerCapture(t.pointerId):r.target.releasePointerCapture(t.pointerId)),t.hwTimestamp>m&&g.clearTouches(),p.removeTouch(r.identifier),g.addUpdateTouch(r),n(r.target,p.touchList),i=new CustomEvent(e,{bubbles:!0,cancelable:!0}),i.touches=p.touchList,i.changedTouches=g.touchList,i.targetTouches=v.touchList,i}function o(t){_&&console.log(t)}function a(t){return"MSPointerDown"===t.type||"pointerdown"===t.type}function u(t){return"MSPointerMove"===t.type||"pointermove"===t.type}function c(t){return"MSPointerUp"===t.type||"pointerup"===t.type}var h,s,d,_=!1;l(t)||(a(t)||(s=p.getTouch(t.pointerId),d=s?s.target:t.target),h=a(t)||u(t)?r(t):i(t),h.preventDefault=function(){t.preventDefault&&t.preventDefault()},h.stopPropagation=function(){t.stopPropagation&&t.stopPropagation()},e.call(t.target,h),m=t.hwTimestamp)}function u(t){return w[t][y]}function c(t,e){var n="on"+e.toLowerCase();return n in t||t.hasOwnProperty(n)}function l(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 h(t){t&&t.style&&(e.MSPointerEvent?t.style.setAttribute("-ms-touch-action","none;"):t.style.touchAction="none")}function s(t){t&&t.style&&(e.MSPointerEvent?t.style.removeAttribute("-ms-touch-action"):t.style.touchAction=null)}function d(){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,_=["touchstart","touchmove","touchend"],m=0,w={touchstart:["pointerdown","MSPointerDown","touchstart"],touchmove:["pointermove","MSPointerMove","touchmove"],touchend:["pointerup","MSPointerUp","touchend"]},y=e.PointerEvent?0:e.MSPointerEvent?1:2;r.prototype={on:function(t,e){var n=this.element;if(-1===_.indexOf(t))return void n.addEventListener(t,e);if(c(n,t))return void n.addEventListener(t,e);var r=u(t);if(c(n,r)){var i=function(n){a(n,e,t)},l=d();e.uid=l,o(n,r,i,l,!0),h(n)}},off:function(t,e){var n=this.element;return-1===_.indexOf(t)?void n.removeEventListener(t,e):c(n,t)?void n.removeEventListener(t,e):(o(n,t,e,!1),
- void s(n))}},p=new i,g=new i,v=new i,t.exports=n}(window)},function(t,e){"use strict";!function(){function e(t,n,r){return("string"==typeof n?n:n.toString()).replace(t.define||a,function(e,n,i,o){return 0===n.indexOf("def.")&&(n=n.substring(4)),n in r||(":"===i?(t.defineParams&&o.replace(t.defineParams,function(t,e,i){r[n]={arg:e,text:i}}),n in r||(r[n]=o)):new Function("def","def['"+n+"']="+o)(r)),""}).replace(t.use||a,function(n,i){t.useParams&&(i=i.replace(t.useParams,function(t,e,n,i){if(r[n]&&r[n].arg&&i){var o=(n+":"+i).replace(/'|\\/g,"_");return r.__exp=r.__exp||{},r.__exp[o]=r[n].text.replace(new RegExp("(^|[^\\w$])"+r[n].arg+"([^\\w$])","g"),"$1"+i+"$2"),e+"def.__exp['"+o+"']"}}));var o=new Function("def","return "+i)(r);return o?e(t,o,r):o})}function n(t){return t.replace(/\\('|\\)/g,"$1").replace(/[\r\t\n]/g," ")}var r,i={version:"1.0.3",templateSettings:{evaluate:/\{\{([\s\S]+?(\}?)+)\}\}/g,interpolate:/\{\{=([\s\S]+?)\}\}/g,encode:/\{\{!([\s\S]+?)\}\}/g,use:/\{\{#([\s\S]+?)\}\}/g,useParams:/(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\']+\'|\{[^\}]+\})/g,define:/\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g,defineParams:/^\s*([\w$]+):([\s\S]+)/,conditional:/\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g,iterate:/\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g,varname:"it",strip:!0,append:!0,selfcontained:!1,doNotSkipEncoded:!1},template:void 0,compile:void 0};i.encodeHTMLSource=function(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},n=t?/[&<>"'\/]/g:/&(?!#?\w+;)|<|>|"|'|\//g;return function(t){return t?t.toString().replace(n,function(t){return e[t]||t}):""}},r=function(){return this||(0,eval)("this")}(),t.exports=i;var o={append:{start:"'+(",end:")+'",startencode:"'+encodeHTML("},split:{start:"';out+=(",end:");out+='",startencode:"';out+=encodeHTML("}},a=/$^/;i.template=function(t,u,c,l){u=u||i.templateSettings;var f,h,s,d=u.append?o.append:o.split,p=0,g=u.use||u.define?e(u,t,c||{}):t;g=("var out='"+(u.strip?g.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g," ").replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g,""):g).replace(/'|\\/g,"\\$&").replace(u.interpolate||a,function(t,e){return l?(s=n(e),e.indexOf("||")>=0?d.start+s+d.end:d.start+"(typeof "+s+' !== "undefined" && '+s+"!== null)?"+s+': ""'+d.end):d.start+n(e)+d.end}).replace(u.encode||a,function(t,e){return f=!0,d.startencode+n(e)+d.end}).replace(u.conditional||a,function(t,e,r){return e?r?"';}else if("+n(r)+"){out+='":"';}else{out+='":r?"';if("+n(r)+"){out+='":"';}out+='"}).replace(u.iterate||a,function(t,e,r,i){return e?(p+=1,h=i||"i"+p,e=n(e),"';var arr"+p+"="+e+";if(arr"+p+"){var "+r+","+h+"=-1,l"+p+"=arr"+p+".length-1;while("+h+"<l"+p+"){"+r+"=arr"+p+"["+h+"+=1];out+='"):"';} } out+='"}).replace(u.evaluate||a,function(t,e){return"';"+n(e)+"out+='"})+"';return out;").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r").replace(/(\s|;|\}|^|\{)out\+='';/g,"$1").replace(/\+''/g,""),f&&(u.selfcontained||!r||r._encodeHTML||(r._encodeHTML=i.encodeHTMLSource(u.doNotSkipEncoded)),g="var encodeHTML = typeof _encodeHTML !== 'undefined' ? _encodeHTML : ("+i.encodeHTMLSource.toString()+"("+(u.doNotSkipEncoded||"")+"));"+g);try{return new Function(u.varname,g)}catch(v){throw"undefined"!=typeof console&&console.log("Could not create a template function: "+g),v}},i.compile=function(t,e){return i.template(t,null,e)}}()}])});
|