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