@jzliu-cli/bi-engine 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/README.md +381 -0
  2. package/dist/assets/fonts/element-icons.313f7dac.woff +0 -0
  3. package/dist/assets/fonts/element-icons.45201881.ttf +0 -0
  4. package/dist/assets/img/dashboard/center1.png +0 -0
  5. package/dist/assets/img/dashboard/center2.png +0 -0
  6. package/dist/assets/img/dashboard/center3.png +0 -0
  7. package/dist/assets/img/dashboard/center4.png +0 -0
  8. package/dist/assets/img/dashboard/center5.png +0 -0
  9. package/dist/assets/img/dashboard/center6.png +0 -0
  10. package/dist/assets/img/dashboard/center7.png +0 -0
  11. package/dist/assets/img/dashboard/center8-bg.png +0 -0
  12. package/dist/assets/img/dashboard/center8.png +0 -0
  13. package/dist/assets/img/dashboard/column-none.png +0 -0
  14. package/dist/assets/img/dashboard/connect.png +0 -0
  15. package/dist/assets/img/dashboard/dangjian.png +0 -0
  16. package/dist/assets/img/dashboard/indicator-card.png +0 -0
  17. package/dist/assets/img/dashboard/lay1.png +0 -0
  18. package/dist/assets/img/dashboard/lay2.png +0 -0
  19. package/dist/assets/img/dashboard/lay3.png +0 -0
  20. package/dist/assets/img/dashboard/lay4.png +0 -0
  21. package/dist/assets/img/dashboard/lay5.png +0 -0
  22. package/dist/assets/img/dashboard/lay6.png +0 -0
  23. package/dist/assets/img/dashboard/lay7.png +0 -0
  24. package/dist/assets/img/dashboard/lay8.png +0 -0
  25. package/dist/assets/img/dashboard/line-none.png +0 -0
  26. package/dist/assets/img/dashboard/mobile.png +0 -0
  27. package/dist/assets/img/dashboard/pie-none.png +0 -0
  28. package/dist/assets/img/dashboard/resource.png +0 -0
  29. package/dist/assets/img/dashboard/share.png +0 -0
  30. package/dist/assets/img/dashboard/table-none.png +0 -0
  31. package/dist/assets/img/empty.png +0 -0
  32. package/dist/assets/img/mobile.png +0 -0
  33. package/dist/assets/img/panel.png +0 -0
  34. package/dist/assets/style/base.less +1754 -0
  35. package/dist/assets/style/dashboard.less +320 -0
  36. package/dist/assets/style/element-variables-dark.less +8 -0
  37. package/dist/assets/style/element-variables.less +5 -0
  38. package/dist/assets/style/tailwind.css +3 -0
  39. package/dist/assets/style/transition.less +30 -0
  40. package/dist/assets/theme/element.define.css +32271 -0
  41. package/dist/assets/theme/fonts/element-icons.ttf +0 -0
  42. package/dist/assets/theme/fonts/element-icons.woff +0 -0
  43. package/dist/assets/theme/index.css +65744 -0
  44. package/dist/images/column-none.a609dd43.png +0 -0
  45. package/dist/images/empty.31d6cfe0.png +0 -0
  46. package/dist/images/indicator-card.b7982b59.png +0 -0
  47. package/dist/images/lay1.64c91237.png +0 -0
  48. package/dist/images/lay2.7b0fa581.png +0 -0
  49. package/dist/images/lay3.f44c8385.png +0 -0
  50. package/dist/images/lay4.6f06e367.png +0 -0
  51. package/dist/images/lay5.1090706d.png +0 -0
  52. package/dist/images/lay6.9ef2f723.png +0 -0
  53. package/dist/images/lay7.afa3a4fa.png +0 -0
  54. package/dist/images/lay8.80107d63.png +0 -0
  55. package/dist/images/line-none.5b0a596f.png +0 -0
  56. package/dist/images/mobile.18b276e6.png +0 -0
  57. package/dist/images/panel.93199700.png +0 -0
  58. package/dist/images/pie-none.3cb81d7f.png +0 -0
  59. package/dist/images/table-none.ca8daa78.png +0 -0
  60. package/dist/index.js +3 -0
  61. package/dist/index.js.LICENSE.txt +29 -0
  62. package/dist/index.js.map +1 -0
  63. package/dist/style.css +101324 -0
  64. package/dist/style.css.map +1 -0
  65. package/package.json +78 -0
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ /*! For license information please see index.js.LICENSE.txt */
2
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@antv/g2plot"),require("vue"),require("vuex")):"function"==typeof define&&define.amd?define(["@antv/g2plot","vue","vuex"],e):"object"==typeof exports?exports.CDSPBiDashboard=e(require("@antv/g2plot"),require("vue"),require("vuex")):t.CDSPBiDashboard=e(t.G2Plot,t.Vue,t.Vuex)}(this,(t,e,n)=>(()=>{var r={246:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o.apply(this,arguments)}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){i(t,e,n[e])})}return t}function s(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function l(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.r(e),n.d(e,{MultiDrag:()=>be,Sortable:()=>Ht,Swap:()=>le,default:()=>_e});function u(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var c=u(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),h=u(/Edge/i),d=u(/firefox/i),f=u(/safari/i)&&!u(/chrome/i)&&!u(/android/i),p=u(/iP(ad|od|hone)/i),v=u(/chrome/i)&&u(/android/i),g={capture:!1,passive:!1};function m(t,e,n){t.addEventListener(e,n,!c&&g)}function y(t,e,n){t.removeEventListener(e,n,!c&&g)}function b(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function w(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function C(t,e,n,r){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&b(t,e):b(t,e))||r&&t===n)return t;if(t===n)break}while(t=w(t))}return null}var _,x=/\s+/g;function S(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(x," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(x," ")}}function E(t,e,n){var r=t&&t.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in r||-1!==e.indexOf("webkit")||(e="-webkit-"+e),r[e]=n+("string"==typeof n?"":"px")}}function O(t,e){var n="";if("string"==typeof t)n=t;else do{var r=E(t,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function T(t,e,n){if(t){var r=t.getElementsByTagName(e),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function I(){var t=document.scrollingElement;return t||document.documentElement}function M(t,e,n,r,i){if(t.getBoundingClientRect||t===window){var o,a,s,l,u,h,d;if(t!==window&&t!==I()?(a=(o=t.getBoundingClientRect()).top,s=o.left,l=o.bottom,u=o.right,h=o.height,d=o.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,h=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!c))do{if(i&&i.getBoundingClientRect&&("none"!==E(i,"transform")||n&&"static"!==E(i,"position"))){var f=i.getBoundingClientRect();a-=f.top+parseInt(E(i,"border-top-width")),s-=f.left+parseInt(E(i,"border-left-width")),l=a+o.height,u=s+o.width;break}}while(i=i.parentNode);if(r&&t!==window){var p=O(i||t),v=p&&p.a,g=p&&p.d;p&&(l=(a/=g)+(h/=g),u=(s/=v)+(d/=v))}return{top:a,left:s,bottom:l,right:u,width:d,height:h}}}function L(t,e,n){for(var r=P(t,!0),i=M(t)[e];r;){var o=M(r)[n];if(!("top"===n||"left"===n?i>=o:i<=o))return r;if(r===I())break;r=P(r,!1)}return!1}function k(t,e,n){for(var r=0,i=0,o=t.children;i<o.length;){if("none"!==o[i].style.display&&o[i]!==Ht.ghost&&o[i]!==Ht.dragged&&C(o[i],n.draggable,t,!1)){if(r===e)return o[i];r++}i++}return null}function A(t,e){for(var n=t.lastElementChild;n&&(n===Ht.ghost||"none"===E(n,"display")||e&&!b(n,e));)n=n.previousElementSibling;return n||null}function R(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Ht.clone||e&&!b(t,e)||n++;return n}function D(t){var e=0,n=0,r=I();if(t)do{var i=O(t),o=i.a,a=i.d;e+=t.scrollLeft*o,n+=t.scrollTop*a}while(t!==r&&(t=t.parentNode));return[e,n]}function P(t,e){if(!t||!t.getBoundingClientRect)return I();var n=t,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=E(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return I();if(r||e)return n;r=!0}}}while(n=n.parentNode);return I()}function N(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function B(t,e){return function(){if(!_){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),_=setTimeout(function(){_=void 0},e)}}}function z(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function F(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function H(t,e){E(t,"position","absolute"),E(t,"top",e.top),E(t,"left",e.left),E(t,"width",e.width),E(t,"height",e.height)}function j(t){E(t,"position",""),E(t,"top",""),E(t,"left",""),E(t,"width",""),E(t,"height","")}var W="Sortable"+(new Date).getTime();function G(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach(function(t){if("none"!==E(t,"display")&&t!==Ht.ghost){e.push({target:t,rect:M(t)});var n=a({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=O(t,!0);r&&(n.top-=r.f,n.left-=r.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var i=!1,o=0;e.forEach(function(t){var e=0,n=t.target,a=n.fromRect,s=M(n),l=n.prevFromRect,u=n.prevToRect,c=t.rect,h=O(n,!0);h&&(s.top-=h.f,s.left-=h.e),n.toRect=s,n.thisAnimationDuration&&N(l,s)&&!N(a,s)&&(c.top-s.top)/(c.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(e=function(t,e,n,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*r.animation}(c,l,u,r.options)),N(s,a)||(n.prevFromRect=a,n.prevToRect=s,e||(e=r.options.animation),r.animate(n,c,s,e)),e&&(i=!0,o=Math.max(o,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},e),n.thisAnimationDuration=e)}),clearTimeout(t),i?t=setTimeout(function(){"function"==typeof n&&n()},o):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,r){if(r){E(t,"transition",""),E(t,"transform","");var i=O(this.el),o=i&&i.a,a=i&&i.d,s=(e.left-n.left)/(o||1),l=(e.top-n.top)/(a||1);t.animatingX=!!s,t.animatingY=!!l,E(t,"transform","translate3d("+s+"px,"+l+"px,0)"),function(t){t.offsetWidth}(t),E(t,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),E(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){E(t,"transition",""),E(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},r)}}}}var V=[],$={initializeByDefault:!0},U={mount:function(t){for(var e in $)$.hasOwnProperty(e)&&!(e in t)&&(t[e]=$[e]);V.push(t)},pluginEvent:function(t,e,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=t+"Global";V.forEach(function(r){e[r.pluginName]&&(e[r.pluginName][i]&&e[r.pluginName][i](a({sortable:e},n)),e.options[r.pluginName]&&e[r.pluginName][t]&&e[r.pluginName][t](a({sortable:e},n)))})},initializePlugins:function(t,e,n,r){for(var i in V.forEach(function(r){var i=r.pluginName;if(t.options[i]||r.initializeByDefault){var a=new r(t,e,t.options);a.sortable=t,a.options=t.options,t[i]=a,o(n,a.defaults)}}),t.options)if(t.options.hasOwnProperty(i)){var a=this.modifyOption(t,i,t.options[i]);void 0!==a&&(t.options[i]=a)}},getEventProperties:function(t,e){var n={};return V.forEach(function(r){"function"==typeof r.eventProperties&&o(n,r.eventProperties.call(e[r.pluginName],t))}),n},modifyOption:function(t,e,n){var r;return V.forEach(function(i){t[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[e]&&(r=i.optionListeners[e].call(t[i.pluginName],n))}),r}};function Y(t){var e=t.sortable,n=t.rootEl,r=t.name,i=t.targetEl,o=t.cloneEl,s=t.toEl,l=t.fromEl,u=t.oldIndex,d=t.newIndex,f=t.oldDraggableIndex,p=t.newDraggableIndex,v=t.originalEvent,g=t.putSortable,m=t.extraEventProperties;if(e=e||n&&n[W]){var y,b=e.options,w="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||c||h?(y=document.createEvent("Event")).initEvent(r,!0,!0):y=new CustomEvent(r,{bubbles:!0,cancelable:!0}),y.to=s||n,y.from=l||n,y.item=i||n,y.clone=o,y.oldIndex=u,y.newIndex=d,y.oldDraggableIndex=f,y.newDraggableIndex=p,y.originalEvent=v,y.pullMode=g?g.lastPutMode:void 0;var C=a({},m,U.getEventProperties(r,e));for(var _ in C)y[_]=C[_];n&&n.dispatchEvent(y),b[w]&&b[w].call(e,y)}}var X=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=s(n,["evt"]);U.pluginEvent.bind(Ht)(t,e,a({dragEl:K,parentEl:Z,ghostEl:J,rootEl:Q,nextEl:tt,lastDownEl:et,cloneEl:nt,cloneHidden:rt,dragStarted:gt,putSortable:ut,activeSortable:Ht.active,originalEvent:r,oldIndex:it,oldDraggableIndex:at,newIndex:ot,newDraggableIndex:st,hideGhostForTarget:Nt,unhideGhostForTarget:Bt,cloneNowHidden:function(){rt=!0},cloneNowShown:function(){rt=!1},dispatchSortableEvent:function(t){q({sortable:e,name:t,originalEvent:r})}},i))};function q(t){Y(a({putSortable:ut,cloneEl:nt,targetEl:K,rootEl:Q,oldIndex:it,oldDraggableIndex:at,newIndex:ot,newDraggableIndex:st},t))}var K,Z,J,Q,tt,et,nt,rt,it,ot,at,st,lt,ut,ct,ht,dt,ft,pt,vt,gt,mt,yt,bt,wt,Ct=!1,_t=!1,xt=[],St=!1,Et=!1,Ot=[],Tt=!1,It=[],Mt="undefined"!=typeof document,Lt=p,kt=h||c?"cssFloat":"float",At=Mt&&!v&&!p&&"draggable"in document.createElement("div"),Rt=function(){if(Mt){if(c)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Dt=function(t,e){var n=E(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=k(t,0,e),o=k(t,1,e),a=i&&E(i),s=o&&E(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+M(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+M(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[kt]||o&&"none"===n[kt]&&l+u>r)?"vertical":"horizontal"},Pt=function(t){function e(t,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==t&&(n||s))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(r,i,o,a),n)(r,i,o,a);var l=(n?r:i).options.group.name;return!0===t||"string"==typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var n={},i=t.group;i&&"object"==r(i)||(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},Nt=function(){!Rt&&J&&E(J,"display","none")},Bt=function(){!Rt&&J&&E(J,"display","")};Mt&&document.addEventListener("click",function(t){if(_t)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),_t=!1,!1},!0);var zt=function(t){if(K){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,o=t.clientY,xt.some(function(t){if(!A(t)){var e=M(t),n=t[W].options.emptyInsertThreshold,r=i>=e.left-n&&i<=e.right+n,s=o>=e.top-n&&o<=e.bottom+n;return n&&r&&s?a=t:void 0}}),a);if(e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[W]._onDragOver(n)}}var i,o,a},Ft=function(t){K&&K.parentNode[W]._isOutsideThisEl(t.target)};function Ht(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=o({},e),t[W]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Dt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ht.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in U.initializePlugins(this,t,n),n)!(r in e)&&(e[r]=n[r]);for(var i in Pt(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&At,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?m(t,"pointerdown",this._onTapStart):(m(t,"mousedown",this._onTapStart),m(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(m(t,"dragover",this),m(t,"dragenter",this)),xt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),o(this,G())}function jt(t,e,n,r,i,o,a,s){var l,u,d=t[W],f=d.options.onMove;return!window.CustomEvent||c||h?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=n,l.draggedRect=r,l.related=i||e,l.relatedRect=o||M(e),l.willInsertAfter=s,l.originalEvent=a,t.dispatchEvent(l),f&&(u=f.call(d,l,a)),u}function Wt(t){t.draggable=!1}function Gt(){Tt=!1}function Vt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function $t(t){return setTimeout(t,0)}function Ut(t){return clearTimeout(t)}Ht.prototype={constructor:Ht,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(mt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,K):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,r=this.options,i=r.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,u=r.filter;if(function(t){It.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var r=e[n];r.checked&&It.push(r)}}(n),!K&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||r.disabled||l.isContentEditable||(s=C(s,r.draggable,n,!1))&&s.animated||et===s)){if(it=R(s),at=R(s,r.draggable),"function"==typeof u){if(u.call(this,t,s,this))return q({sortable:e,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),X("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(u&&(u=u.split(",").some(function(r){if(r=C(l,r.trim(),n,!1))return q({sortable:e,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),X("filter",e,{evt:t}),!0})))return void(i&&t.cancelable&&t.preventDefault());r.handle&&!C(l,r.handle,n,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(t,e,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!K&&n.parentNode===o){var l=M(n);if(Q=o,Z=(K=n).parentNode,tt=K.nextSibling,et=n,lt=a.group,Ht.dragged=K,ct={target:K,clientX:(e||t).clientX,clientY:(e||t).clientY},pt=ct.clientX-l.left,vt=ct.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,K.style["will-change"]="all",r=function(){X("delayEnded",i,{evt:t}),Ht.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!d&&i.nativeDraggable&&(K.draggable=!0),i._triggerDragStart(t,e),q({sortable:i,name:"choose",originalEvent:t}),S(K,a.chosenClass,!0))},a.ignore.split(",").forEach(function(t){T(K,t.trim(),Wt)}),m(s,"dragover",zt),m(s,"mousemove",zt),m(s,"touchmove",zt),m(s,"mouseup",i._onDrop),m(s,"touchend",i._onDrop),m(s,"touchcancel",i._onDrop),d&&this.nativeDraggable&&(this.options.touchStartThreshold=4,K.draggable=!0),X("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(h||c))r();else{if(Ht.eventCanceled)return void this._onDrop();m(s,"mouseup",i._disableDelayedDrag),m(s,"touchend",i._disableDelayedDrag),m(s,"touchcancel",i._disableDelayedDrag),m(s,"mousemove",i._delayedDragTouchMoveHandler),m(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&m(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){K&&Wt(K),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;y(t,"mouseup",this._disableDelayedDrag),y(t,"touchend",this._disableDelayedDrag),y(t,"touchcancel",this._disableDelayedDrag),y(t,"mousemove",this._delayedDragTouchMoveHandler),y(t,"touchmove",this._delayedDragTouchMoveHandler),y(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?m(document,"pointermove",this._onTouchMove):m(document,e?"touchmove":"mousemove",this._onTouchMove):(m(K,"dragend",this),m(Q,"dragstart",this._onDragStart));try{document.selection?$t(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(Ct=!1,Q&&K){X("dragStarted",this,{evt:e}),this.nativeDraggable&&m(document,"dragover",Ft);var n=this.options;!t&&S(K,n.dragClass,!1),S(K,n.ghostClass,!0),Ht.active=this,t&&this._appendGhost(),q({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(ht){this._lastX=ht.clientX,this._lastY=ht.clientY,Nt();for(var t=document.elementFromPoint(ht.clientX,ht.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ht.clientX,ht.clientY))!==e;)e=t;if(K.parentNode[W]._isOutsideThisEl(t),e)do{if(e[W]){if(e[W]._onDragOver({clientX:ht.clientX,clientY:ht.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Bt()}},_onTouchMove:function(t){if(ct){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,i=t.touches?t.touches[0]:t,o=J&&O(J,!0),a=J&&o&&o.a,s=J&&o&&o.d,l=Lt&&wt&&D(wt),u=(i.clientX-ct.clientX+r.x)/(a||1)+(l?l[0]-Ot[0]:0)/(a||1),c=(i.clientY-ct.clientY+r.y)/(s||1)+(l?l[1]-Ot[1]:0)/(s||1);if(!Ht.active&&!Ct){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(J){o?(o.e+=u-(dt||0),o.f+=c-(ft||0)):o={a:1,b:0,c:0,d:1,e:u,f:c};var h="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");E(J,"webkitTransform",h),E(J,"mozTransform",h),E(J,"msTransform",h),E(J,"transform",h),dt=u,ft=c,ht=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!J){var t=this.options.fallbackOnBody?document.body:Q,e=M(K,!0,Lt,!0,t),n=this.options;if(Lt){for(wt=t;"static"===E(wt,"position")&&"none"===E(wt,"transform")&&wt!==document;)wt=wt.parentNode;wt!==document.body&&wt!==document.documentElement?(wt===document&&(wt=I()),e.top+=wt.scrollTop,e.left+=wt.scrollLeft):wt=I(),Ot=D(wt)}S(J=K.cloneNode(!0),n.ghostClass,!1),S(J,n.fallbackClass,!0),S(J,n.dragClass,!0),E(J,"transition",""),E(J,"transform",""),E(J,"box-sizing","border-box"),E(J,"margin",0),E(J,"top",e.top),E(J,"left",e.left),E(J,"width",e.width),E(J,"height",e.height),E(J,"opacity","0.8"),E(J,"position",Lt?"absolute":"fixed"),E(J,"zIndex","100000"),E(J,"pointerEvents","none"),Ht.ghost=J,t.appendChild(J),E(J,"transform-origin",pt/parseInt(J.style.width)*100+"% "+vt/parseInt(J.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,r=t.dataTransfer,i=n.options;X("dragStart",this,{evt:t}),Ht.eventCanceled?this._onDrop():(X("setupClone",this),Ht.eventCanceled||((nt=F(K)).draggable=!1,nt.style["will-change"]="",this._hideClone(),S(nt,this.options.chosenClass,!1),Ht.clone=nt),n.cloneId=$t(function(){X("clone",n),Ht.eventCanceled||(n.options.removeCloneOnHide||Q.insertBefore(nt,K),n._hideClone(),q({sortable:n,name:"clone"}))}),!e&&S(K,i.dragClass,!0),e?(_t=!0,n._loopId=setInterval(n._emulateDragOver,50)):(y(document,"mouseup",n._onDrop),y(document,"touchend",n._onDrop),y(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,K)),m(document,"drop",n),E(K,"transform","translateZ(0)")),Ct=!0,n._dragStartId=$t(n._dragStarted.bind(n,e,t)),m(document,"selectstart",n),gt=!0,f&&E(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,r,i,o=this.el,s=t.target,l=this.options,u=l.group,c=Ht.active,h=lt===u,d=l.sort,f=ut||c,p=this,v=!1;if(!Tt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),s=C(s,l.draggable,o,!0),N("dragOver"),Ht.eventCanceled)return v;if(K.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return F(!1);if(_t=!1,c&&!l.disabled&&(h?d||(r=!Q.contains(K)):ut===this||(this.lastPutMode=lt.checkPull(this,c,K,t))&&u.checkPut(this,c,K,t))){if(i="vertical"===this._getDirection(t,s),e=M(K),N("dragOverValid"),Ht.eventCanceled)return v;if(r)return Z=Q,B(),this._hideClone(),N("revert"),Ht.eventCanceled||(tt?Q.insertBefore(K,tt):Q.appendChild(K)),F(!0);var g=A(o,l.draggable);if(!g||function(t,e,n){var r=M(A(n.el,n.options.draggable)),i=10;return e?t.clientX>r.right+i||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+i}(t,i,this)&&!g.animated){if(g===K)return F(!1);if(g&&o===t.target&&(s=g),s&&(n=M(s)),!1!==jt(Q,o,K,e,s,n,t,!!s))return B(),o.appendChild(K),Z=o,H(),F(!0)}else if(s.parentNode===o){n=M(s);var m,y,b,w=K.parentNode!==o,_=!function(t,e,n){var r=n?t.left:t.top,i=n?t.right:t.bottom,o=n?t.width:t.height,a=n?e.left:e.top,s=n?e.right:e.bottom,l=n?e.width:e.height;return r===a||i===s||r+o/2===a+l/2}(K.animated&&K.toRect||e,s.animated&&s.toRect||n,i),x=i?"top":"left",O=L(s,"top","top")||L(K,"top","top"),T=O?O.scrollTop:void 0;if(mt!==s&&(y=n[x],St=!1,Et=!_&&l.invertSwap||w),m=function(t,e,n,r,i,o,a,s){var l=r?t.clientY:t.clientX,u=r?n.height:n.width,c=r?n.top:n.left,h=r?n.bottom:n.right,d=!1;if(!a)if(s&&bt<u*i){if(!St&&(1===yt?l>c+u*o/2:l<h-u*o/2)&&(St=!0),St)d=!0;else if(1===yt?l<c+bt:l>h-bt)return-yt}else if(l>c+u*(1-i)/2&&l<h-u*(1-i)/2)return function(t){return R(K)<R(t)?1:-1}(e);if((d=d||a)&&(l<c+u*o/2||l>h-u*o/2))return l>c+u/2?1:-1;return 0}(t,s,n,i,_?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Et,mt===s),0!==m){var I=R(K);do{I-=m,b=Z.children[I]}while(b&&("none"===E(b,"display")||b===J))}if(0===m||b===s)return F(!1);mt=s,yt=m;var k=s.nextElementSibling,D=!1,P=jt(Q,o,K,e,s,n,t,D=1===m);if(!1!==P)return 1!==P&&-1!==P||(D=1===P),Tt=!0,setTimeout(Gt,30),B(),D&&!k?o.appendChild(K):s.parentNode.insertBefore(K,D?k:s),O&&z(O,0,T-O.scrollTop),Z=K.parentNode,void 0===y||Et||(bt=Math.abs(y-M(s)[x])),H(),F(!0)}if(o.contains(K))return F(!1)}return!1}function N(l,u){X(l,p,a({evt:t,isOwner:h,axis:i?"vertical":"horizontal",revert:r,dragRect:e,targetRect:n,canSort:d,fromSortable:f,target:s,completed:F,onMove:function(n,r){return jt(Q,o,K,e,n,M(n),t,r)},changed:H},u))}function B(){N("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function F(e){return N("dragOverCompleted",{insertion:e}),e&&(h?c._hideClone():c._showClone(p),p!==f&&(S(K,ut?ut.options.ghostClass:c.options.ghostClass,!1),S(K,l.ghostClass,!0)),ut!==p&&p!==Ht.active?ut=p:p===Ht.active&&ut&&(ut=null),f===p&&(p._ignoreWhileAnimating=s),p.animateAll(function(){N("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(s===K&&!K.animated||s===o&&!s.animated)&&(mt=null),l.dragoverBubble||t.rootEl||s===document||(K.parentNode[W]._isOutsideThisEl(t.target),!e&&zt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),v=!0}function H(){ot=R(K),st=R(K,l.draggable),q({sortable:p,name:"change",toEl:o,newIndex:ot,newDraggableIndex:st,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){y(document,"mousemove",this._onTouchMove),y(document,"touchmove",this._onTouchMove),y(document,"pointermove",this._onTouchMove),y(document,"dragover",zt),y(document,"mousemove",zt),y(document,"touchmove",zt)},_offUpEvents:function(){var t=this.el.ownerDocument;y(t,"mouseup",this._onDrop),y(t,"touchend",this._onDrop),y(t,"pointerup",this._onDrop),y(t,"touchcancel",this._onDrop),y(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;ot=R(K),st=R(K,n.draggable),X("drop",this,{evt:t}),Z=K&&K.parentNode,ot=R(K),st=R(K,n.draggable),Ht.eventCanceled||(Ct=!1,Et=!1,St=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ut(this.cloneId),Ut(this._dragStartId),this.nativeDraggable&&(y(document,"drop",this),y(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),f&&E(document.body,"user-select",""),E(K,"transform",""),t&&(gt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),J&&J.parentNode&&J.parentNode.removeChild(J),(Q===Z||ut&&"clone"!==ut.lastPutMode)&&nt&&nt.parentNode&&nt.parentNode.removeChild(nt),K&&(this.nativeDraggable&&y(K,"dragend",this),Wt(K),K.style["will-change"]="",gt&&!Ct&&S(K,ut?ut.options.ghostClass:this.options.ghostClass,!1),S(K,this.options.chosenClass,!1),q({sortable:this,name:"unchoose",toEl:Z,newIndex:null,newDraggableIndex:null,originalEvent:t}),Q!==Z?(ot>=0&&(q({rootEl:Z,name:"add",toEl:Z,fromEl:Q,originalEvent:t}),q({sortable:this,name:"remove",toEl:Z,originalEvent:t}),q({rootEl:Z,name:"sort",toEl:Z,fromEl:Q,originalEvent:t}),q({sortable:this,name:"sort",toEl:Z,originalEvent:t})),ut&&ut.save()):ot!==it&&ot>=0&&(q({sortable:this,name:"update",toEl:Z,originalEvent:t}),q({sortable:this,name:"sort",toEl:Z,originalEvent:t})),Ht.active&&(null!=ot&&-1!==ot||(ot=it,st=at),q({sortable:this,name:"end",toEl:Z,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){X("nulling",this),Q=K=Z=J=tt=nt=et=rt=ct=ht=gt=ot=st=it=at=mt=yt=ut=lt=Ht.dragged=Ht.ghost=Ht.clone=Ht.active=null,It.forEach(function(t){t.checked=!0}),It.length=dt=ft=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":K&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)C(t=n[r],o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||Vt(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach(function(t,r){var i=n.children[r];C(i,this.options.draggable,n,!1)&&(e[t]=i)},this),t.forEach(function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))})},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return C(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var r=U.modifyOption(this,t,e);n[t]=void 0!==r?r:e,"group"===t&&Pt(n)},destroy:function(){X("destroy",this);var t=this.el;t[W]=null,y(t,"mousedown",this._onTapStart),y(t,"touchstart",this._onTapStart),y(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(y(t,"dragover",this),y(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),xt.splice(xt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!rt){if(X("hideClone",this),Ht.eventCanceled)return;E(nt,"display","none"),this.options.removeCloneOnHide&&nt.parentNode&&nt.parentNode.removeChild(nt),rt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(rt){if(X("showClone",this),Ht.eventCanceled)return;Q.contains(K)&&!this.options.group.revertClone?Q.insertBefore(nt,K):tt?Q.insertBefore(nt,tt):Q.appendChild(nt),this.options.group.revertClone&&this.animate(K,nt),E(nt,"display",""),rt=!1}}else this._hideClone()}},Mt&&m(document,"touchmove",function(t){(Ht.active||Ct)&&t.cancelable&&t.preventDefault()}),Ht.utils={on:m,off:y,css:E,find:T,is:function(t,e){return!!C(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:B,closest:C,toggleClass:S,clone:F,index:R,nextTick:$t,cancelNextTick:Ut,detectDirection:Dt,getChild:k},Ht.get=function(t){return t[W]},Ht.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Ht.utils=a({},Ht.utils,t.utils)),U.mount(t)})},Ht.create=function(t,e){return new Ht(t,e)},Ht.version="1.10.2";var Yt,Xt,qt,Kt,Zt,Jt,Qt=[],te=!1;function ee(){Qt.forEach(function(t){clearInterval(t.pid)}),Qt=[]}function ne(){clearInterval(Jt)}var re,ie=B(function(t,e,n,r){if(e.scroll){var i,o=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,l=e.scrollSpeed,u=I(),c=!1;Xt!==n&&(Xt=n,ee(),Yt=e.scroll,i=e.scrollFn,!0===Yt&&(Yt=P(n,!0)));var h=0,d=Yt;do{var f=d,p=M(f),v=p.top,g=p.bottom,m=p.left,y=p.right,b=p.width,w=p.height,C=void 0,_=void 0,x=f.scrollWidth,S=f.scrollHeight,O=E(f),T=f.scrollLeft,L=f.scrollTop;f===u?(C=b<x&&("auto"===O.overflowX||"scroll"===O.overflowX||"visible"===O.overflowX),_=w<S&&("auto"===O.overflowY||"scroll"===O.overflowY||"visible"===O.overflowY)):(C=b<x&&("auto"===O.overflowX||"scroll"===O.overflowX),_=w<S&&("auto"===O.overflowY||"scroll"===O.overflowY));var k=C&&(Math.abs(y-o)<=s&&T+b<x)-(Math.abs(m-o)<=s&&!!T),A=_&&(Math.abs(g-a)<=s&&L+w<S)-(Math.abs(v-a)<=s&&!!L);if(!Qt[h])for(var R=0;R<=h;R++)Qt[R]||(Qt[R]={});Qt[h].vx==k&&Qt[h].vy==A&&Qt[h].el===f||(Qt[h].el=f,Qt[h].vx=k,Qt[h].vy=A,clearInterval(Qt[h].pid),0==k&&0==A||(c=!0,Qt[h].pid=setInterval(function(){r&&0===this.layer&&Ht.active._onTouchMove(Zt);var e=Qt[this.layer].vy?Qt[this.layer].vy*l:0,n=Qt[this.layer].vx?Qt[this.layer].vx*l:0;"function"==typeof i&&"continue"!==i.call(Ht.dragged.parentNode[W],n,e,t,Zt,Qt[this.layer].el)||z(Qt[this.layer].el,n,e)}.bind({layer:h}),24))),h++}while(e.bubbleScroll&&d!==u&&(d=P(d,!1)));te=c}},30),oe=function(t){var e=t.originalEvent,n=t.putSortable,r=t.dragEl,i=t.activeSortable,o=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(e){var l=n||i;a();var u=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,c=document.elementFromPoint(u.clientX,u.clientY);s(),l&&!l.el.contains(c)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function ae(){}function se(){}function le(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;re=e},dragOverValid:function(t){var e=t.completed,n=t.target,r=t.onMove,i=t.activeSortable,o=t.changed,a=t.cancel;if(i.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var u=re;!1!==r(n)?(S(n,l.swapClass,!0),re=n):re=null,u&&u!==re&&S(u,l.swapClass,!1)}o(),e(!0),a()}},drop:function(t){var e=t.activeSortable,n=t.putSortable,r=t.dragEl,i=n||this.sortable,o=this.options;re&&S(re,o.swapClass,!1),re&&(o.swap||n&&n.options.swap)&&r!==re&&(i.captureAnimationState(),i!==e&&e.captureAnimationState(),function(t,e){var n,r,i=t.parentNode,o=e.parentNode;if(!i||!o||i.isEqualNode(e)||o.isEqualNode(t))return;n=R(t),r=R(e),i.isEqualNode(o)&&n<r&&r++;i.insertBefore(e,i.children[n]),o.insertBefore(t,o.children[r])}(r,re),i.animateAll(),i!==e&&e.animateAll())},nulling:function(){re=null}},o(t,{pluginName:"swap",eventProperties:function(){return{swapItem:re}}})}ae.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=k(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:oe},o(ae,{pluginName:"revertOnSpill"}),se.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:oe},o(se,{pluginName:"removeOnSpill"});var ue,ce,he,de,fe,pe=[],ve=[],ge=!1,me=!1,ye=!1;function be(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?m(document,"pointerup",this._deselectMultiDrag):(m(document,"mouseup",this._deselectMultiDrag),m(document,"touchend",this._deselectMultiDrag)),m(document,"keydown",this._checkKeyDown),m(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,n){var r="";pe.length&&ce===t?pe.forEach(function(t,e){r+=(e?", ":"")+t.textContent}):r=n.textContent,e.setData("Text",r)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;he=e},delayEnded:function(){this.isMultiDrag=~pe.indexOf(he)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var r=0;r<pe.length;r++)ve.push(F(pe[r])),ve[r].sortableIndex=pe[r].sortableIndex,ve[r].draggable=!1,ve[r].style["will-change"]="",S(ve[r],this.options.selectedClass,!1),pe[r]===he&&S(ve[r],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.sortable,n=t.rootEl,r=t.dispatchSortableEvent,i=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||pe.length&&ce===e&&(we(!0,n),r("clone"),i()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,r=t.cancel;this.isMultiDrag&&(we(!1,n),ve.forEach(function(t){E(t,"display","")}),e(),fe=!1,r())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),r=t.cancel;this.isMultiDrag&&(ve.forEach(function(t){E(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),n(),fe=!0,r())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&ce&&ce.multiDrag._deselectMultiDrag(),pe.forEach(function(t){t.sortableIndex=R(t)}),pe=pe.sort(function(t,e){return t.sortableIndex-e.sortableIndex}),ye=!0},dragStarted:function(t){var e=this,n=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){pe.forEach(function(t){t!==he&&E(t,"position","absolute")});var r=M(he,!1,!0,!0);pe.forEach(function(t){t!==he&&H(t,r)}),me=!0,ge=!0}n.animateAll(function(){me=!1,ge=!1,e.options.animation&&pe.forEach(function(t){j(t)}),e.options.sort&&Ce()})}},dragOver:function(t){var e=t.target,n=t.completed,r=t.cancel;me&&~pe.indexOf(e)&&(n(!1),r())},revert:function(t){var e=t.fromSortable,n=t.rootEl,r=t.sortable,i=t.dragRect;pe.length>1&&(pe.forEach(function(t){r.addAnimationState({target:t,rect:me?M(t):i}),j(t),t.fromRect=i,e.removeAnimationState(t)}),me=!1,function(t,e){pe.forEach(function(n,r){var i=e.children[n.sortableIndex+(t?Number(r):0)];i?e.insertBefore(n,i):e.appendChild(n)})}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,r=t.insertion,i=t.activeSortable,o=t.parentEl,a=t.putSortable,s=this.options;if(r){if(n&&i._hideClone(),ge=!1,s.animation&&pe.length>1&&(me||!n&&!i.options.sort&&!a)){var l=M(he,!1,!0,!0);pe.forEach(function(t){t!==he&&(H(t,l),o.appendChild(t))}),me=!0}if(!n)if(me||Ce(),pe.length>1){var u=fe;i._showClone(e),i.options.animation&&!fe&&u&&ve.forEach(function(t){i.addAnimationState({target:t,rect:de}),t.fromRect=de,t.thisAnimationDuration=null})}else i._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,r=t.activeSortable;if(pe.forEach(function(t){t.thisAnimationDuration=null}),r.options.animation&&!n&&r.multiDrag.isMultiDrag){de=o({},e);var i=O(he,!0);de.top-=i.f,de.left-=i.e}},dragOverAnimationComplete:function(){me&&(me=!1,Ce())},drop:function(t){var e=t.originalEvent,n=t.rootEl,r=t.parentEl,i=t.sortable,o=t.dispatchSortableEvent,a=t.oldIndex,s=t.putSortable,l=s||this.sortable;if(e){var u=this.options,c=r.children;if(!ye)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),S(he,u.selectedClass,!~pe.indexOf(he)),~pe.indexOf(he))pe.splice(pe.indexOf(he),1),ue=null,Y({sortable:i,rootEl:n,name:"deselect",targetEl:he,originalEvt:e});else{if(pe.push(he),Y({sortable:i,rootEl:n,name:"select",targetEl:he,originalEvt:e}),e.shiftKey&&ue&&i.el.contains(ue)){var h,d,f=R(ue),p=R(he);if(~f&&~p&&f!==p)for(p>f?(d=f,h=p):(d=p,h=f+1);d<h;d++)~pe.indexOf(c[d])||(S(c[d],u.selectedClass,!0),pe.push(c[d]),Y({sortable:i,rootEl:n,name:"select",targetEl:c[d],originalEvt:e}))}else ue=he;ce=l}if(ye&&this.isMultiDrag){if((r[W].options.sort||r!==n)&&pe.length>1){var v=M(he),g=R(he,":not(."+this.options.selectedClass+")");if(!ge&&u.animation&&(he.thisAnimationDuration=null),l.captureAnimationState(),!ge&&(u.animation&&(he.fromRect=v,pe.forEach(function(t){if(t.thisAnimationDuration=null,t!==he){var e=me?M(t):v;t.fromRect=e,l.addAnimationState({target:t,rect:e})}})),Ce(),pe.forEach(function(t){c[g]?r.insertBefore(t,c[g]):r.appendChild(t),g++}),a===R(he))){var m=!1;pe.forEach(function(t){t.sortableIndex===R(t)||(m=!0)}),m&&o("update")}pe.forEach(function(t){j(t)}),l.animateAll()}ce=l}(n===r||s&&"clone"!==s.lastPutMode)&&ve.forEach(function(t){t.parentNode&&t.parentNode.removeChild(t)})}},nullingGlobal:function(){this.isMultiDrag=ye=!1,ve.length=0},destroyGlobal:function(){this._deselectMultiDrag(),y(document,"pointerup",this._deselectMultiDrag),y(document,"mouseup",this._deselectMultiDrag),y(document,"touchend",this._deselectMultiDrag),y(document,"keydown",this._checkKeyDown),y(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==ye&&ye||ce!==this.sortable||t&&C(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;pe.length;){var e=pe[0];S(e,this.options.selectedClass,!1),pe.shift(),Y({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[W];e&&e.options.multiDrag&&!~pe.indexOf(t)&&(ce&&ce!==e&&(ce.multiDrag._deselectMultiDrag(),ce=e),S(t,e.options.selectedClass,!0),pe.push(t))},deselect:function(t){var e=t.parentNode[W],n=pe.indexOf(t);e&&e.options.multiDrag&&~n&&(S(t,e.options.selectedClass,!1),pe.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return pe.forEach(function(r){var i;e.push({multiDragElement:r,index:r.sortableIndex}),i=me&&r!==he?-1:me?R(r,":not(."+t.options.selectedClass+")"):R(r),n.push({multiDragElement:r,index:i})}),{items:l(pe),clones:[].concat(ve),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function we(t,e){ve.forEach(function(n,r){var i=e.children[n.sortableIndex+(t?Number(r):0)];i?e.insertBefore(n,i):e.appendChild(n)})}function Ce(){pe.forEach(function(t){t!==he&&t.parentNode&&t.parentNode.removeChild(t)})}Ht.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?m(document,"dragover",this._handleAutoScroll):this.options.supportPointer?m(document,"pointermove",this._handleFallbackAutoScroll):e.touches?m(document,"touchmove",this._handleFallbackAutoScroll):m(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):(y(document,"pointermove",this._handleFallbackAutoScroll),y(document,"touchmove",this._handleFallbackAutoScroll),y(document,"mousemove",this._handleFallbackAutoScroll)),ne(),ee(),clearTimeout(_),_=void 0},nulling:function(){Zt=Xt=Yt=te=Jt=qt=Kt=null,Qt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,r=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(r,i);if(Zt=t,e||h||c||f){ie(t,this.options,o,e);var a=P(o,!0);!te||Jt&&r===qt&&i===Kt||(Jt&&ne(),Jt=setInterval(function(){var o=P(document.elementFromPoint(r,i),!0);o!==a&&(a=o,ee()),ie(t,n.options,o,e)},10),qt=r,Kt=i)}else{if(!this.options.bubbleScroll||P(o,!0)===I())return void ee();ie(t,this.options,P(o,!1),!1)}}},o(t,{pluginName:"scroll",initializeByDefault:!0})}),Ht.mount(se,ae);const _e=Ht},261:(t,e,n)=>{"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}e.__esModule=!0;var o=i(n(2871)),a=r(n(9613)),s=r(n(3769)),l=i(n(2849)),u=i(n(7624)),c=r(n(1148));function h(){var t=new o.HandlebarsEnvironment;return l.extend(t,o),t.SafeString=a.default,t.Exception=s.default,t.Utils=l,t.escapeExpression=l.escapeExpression,t.VM=u,t.template=function(e){return u.template(e,t)},t}var d=h();d.create=h,c.default(d),d.default=d,e.default=d,t.exports=e.default},432:function(t,e,n){var r;"undefined"!=typeof self&&self,r=function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),l=n("41a0"),u=n("7f20"),c=n("38fd"),h=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),f="keys",p="values",v=function(){return this};t.exports=function(t,e,n,g,m,y,b){l(n,e,g);var w,C,_,x=function(t){if(!d&&t in T)return T[t];switch(t){case f:case p:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",E=m==p,O=!1,T=t.prototype,I=T[h]||T["@@iterator"]||m&&T[m],M=I||x(m),L=m?E?x("entries"):M:void 0,k="Array"==e&&T.entries||I;if(k&&(_=c(k.call(new t)))!==Object.prototype&&_.next&&(u(_,S,!0),r||"function"==typeof _[h]||a(_,h,v)),E&&I&&I.name!==p&&(O=!0,M=function(){return I.call(this)}),r&&!b||!d&&!O&&T[h]||a(T,h,M),s[e]=M,s[S]=v,m)if(w={values:E?M:x(p),keys:y?M:x(f),entries:L},b)for(C in w)C in T||o(T,C,w[C]);else i(i.P+i.F*(d||O),e,w);return w}},"02f4":function(t,e,n){var r=n("4588"),i=n("be13");t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),l=r(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},"0390":function(t,e,n){"use strict";var r=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"0bfb":function(t,e,n){"use strict";var r=n("cb7c");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},1495:function(t,e,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,l=0;s>l;)r.f(t,n=a[l++],e[n]);return t}},"214f":function(t,e,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),l=n("520a"),u=s("species"),c=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=s(t),f=!o(function(){var e={};return e[d]=function(){return 7},7!=""[t](e)}),p=f?!o(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[u]=function(){return n}),n[d](""),!e}):void 0;if(!f||!p||"replace"===t&&!c||"split"===t&&!h){var v=/./[d],g=n(a,d,""[t],function(t,e,n,r,i){return e.exec===l?f&&!i?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),m=g[0],y=g[1];r(String.prototype,t,m),i(RegExp.prototype,d,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},"230e":function(t,e,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"23c6":function(t,e,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),l="toString",u=(""+s).split(l);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(l&&(o(n,a)||i(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,l,function(){return"function"==typeof this&&this[a]||s.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},l="prototype",u=function(){var t,e=n("230e")("iframe"),r=o.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u[l][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[l]=r(t),n=new s,s[l]=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},"2b4c":function(t,e,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2fdb":function(t,e,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,e,n){var r=n("86cc"),i=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"456d":function(t,e,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",function(){return function(t){return i(r(t))}})},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},5147:function(t,e,n){var r=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(t){}}return!0}},"520a":function(t,e,n){"use strict";var r,i,o=n("0bfb"),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,u="lastIndex",c=(r=/a/,i=/b*/g,a.call(r,"a"),a.call(i,"a"),0!==r[u]||0!==i[u]),h=void 0!==/()??/.exec("")[1];(c||h)&&(l=function(t){var e,n,r,i,l=this;return h&&(n=new RegExp("^"+l.source+"$(?!\\s)",o.call(l))),c&&(e=l[u]),r=a.call(l,t),c&&r&&(l[u]=l.global?r.index+r[0].length:e),h&&r&&r.length>1&&s.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r}),t.exports=l},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),l="prototype",u=function(t,e,n){var c,h,d,f,p=t&u.F,v=t&u.G,g=t&u.S,m=t&u.P,y=t&u.B,b=v?r:g?r[e]||(r[e]={}):(r[e]||{})[l],w=v?i:i[e]||(i[e]={}),C=w[l]||(w[l]={});for(c in v&&(n=e),n)d=((h=!p&&b&&void 0!==b[c])?b:n)[c],f=y&&h?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,b&&a(b,c,d,t&u.U),w[c]!=d&&o(w,c,f),m&&C[c]!=d&&(C[c]=d)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5eda":function(t,e,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},"5f1b":function(t,e,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},6762:function(t,e,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},7333:function(t,e,n){"use strict";var r=n("0d58"),i=n("2621"),o=n("52a7"),a=n("4bf8"),s=n("626a"),l=Object.assign;t.exports=!l||n("79e5")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=r})?function(t,e){for(var n=a(t),l=arguments.length,u=1,c=i.f,h=o.f;l>u;)for(var d,f=s(arguments[u++]),p=c?r(f).concat(c(f)):r(f),v=p.length,g=0;v>g;)h.call(f,d=p[g++])&&(n[d]=f[d]);return n}:l},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},8378:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),i=Array.prototype;null==i[r]&&n("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9def":function(t,e,n){var r=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a352:function(e,n){e.exports=t},a481:function(t,e,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),l=n("5f1b"),u=Math.max,c=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,function(t,e,n,v){return[function(r,i){var o=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=v(n,t,this,e);if(i.done)return i.value;var h=r(t),d=String(this),f="function"==typeof e;f||(e=String(e));var m=h.global;if(m){var y=h.unicode;h.lastIndex=0}for(var b=[];;){var w=l(h,d);if(null===w)break;if(b.push(w),!m)break;""===String(w[0])&&(h.lastIndex=s(d,o(h.lastIndex),y))}for(var C="",_=0,x=0;x<b.length;x++){w=b[x];for(var S=String(w[0]),E=u(c(a(w.index),d.length),0),O=[],T=1;T<w.length;T++)O.push(p(w[T]));var I=w.groups;if(f){var M=[S].concat(O,E,d);void 0!==I&&M.push(I);var L=String(e.apply(void 0,M))}else L=g(S,d,E,O,I,e);E>=_&&(C+=d.slice(_,E)+L,_=E+S.length)}return C+d.slice(_)}];function g(t,e,r,o,a,s){var l=r+t.length,u=o.length,c=f;return void 0!==a&&(a=i(a),c=d),n.call(s,c,function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(l);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return n;if(c>u){var d=h(c/10);return 0===d?n:d<=u?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):n}s=o[c-1]}return void 0===s?"":s})}})},aae3:function(t,e,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},ac6a:function(t,e,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),l=n("84f2"),u=n("2b4c"),c=u("iterator"),h=u("toStringTag"),d=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(f),v=0;v<p.length;v++){var g,m=p[v],y=f[m],b=a[m],w=b&&b.prototype;if(w&&(w[c]||s(w,c,d),w[h]||s(w,h,m),l[m]=d,y))for(g in r)w[g]||o(w,g,r[g],!0)}},b0c5:function(t,e,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var r=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,a){var s,l=r(e),u=i(l.length),c=o(a,u);if(t&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},c649:function(t,e,n){"use strict";(function(t){n.d(e,"c",function(){return u}),n.d(e,"a",function(){return s}),n.d(e,"b",function(){return o}),n.d(e,"d",function(){return l}),n("a481");var r,i,o="undefined"!=typeof window?window.console:t.console,a=/-(\w)/g,s=(r=function(t){return t.replace(a,function(t,e){return e?e.toUpperCase():""})},i=Object.create(null),function(t){return i[t]||(i[t]=r(t))});function l(t){null!==t.parentElement&&t.parentElement.removeChild(t)}function u(t,e,n){var r=0===n?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,r)}}).call(this,n("c8ba"))},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>l;)r(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},d2c8:function(t,e,n){var r=n("aae3"),i=n("be13");t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,e,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];r(r.P+r.F*n("5147")(a),"String",{startsWith:function(t){var e=o(this,t,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return s?s.call(e,r,n):e.slice(n,n+r.length)===r}})},f6fd:function(t,e){!function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})}(document)},f751:function(t,e,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb15:function(t,e,n){"use strict";var r;function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(e),"undefined"!=typeof window&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1])),n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb");var l=n("a352"),u=n.n(l),c=n("c649");function h(t,e){var n=this;this.$nextTick(function(){return n.$emit(t.toLowerCase(),e)})}function d(t){var e=this;return function(n){null!==e.realList&&e["onDrag"+t](n),h.call(e,t,n)}}function f(t){return["transition-group","TransitionGroup"].includes(t)}function p(t,e,n){return t[n]||(e[n]?e[n]():void 0)}var v=["Start","Add","Remove","Update","End"],g=["Choose","Unchoose","Sort","Filter","Clone"],m=["Move"].concat(v,g).map(function(t){return"on"+t}),y=null,b={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(t){var e=this.$slots.default;this.transitionMode=function(t){if(!t||1!==t.length)return!1;var e=a(t,1)[0].componentOptions;return!!e&&f(e.tag)}(e);var n=function(t,e,n){var r=0,i=0,o=p(e,n,"header");o&&(r=o.length,t=t?[].concat(s(o),s(t)):s(o));var a=p(e,n,"footer");return a&&(i=a.length,t=t?[].concat(s(t),s(a)):s(a)),{children:t,headerOffset:r,footerOffset:i}}(e,this.$slots,this.$scopedSlots),r=n.children,i=n.headerOffset,o=n.footerOffset;this.headerOffset=i,this.footerOffset=o;var l=function(t,e){var n=null,r=function(t,e){n=function(t,e,n){return void 0===n||((t=t||{})[e]=n),t}(n,t,e)};if(r("attrs",Object.keys(t).filter(function(t){return"id"===t||t.startsWith("data-")}).reduce(function(e,n){return e[n]=t[n],e},{})),!e)return n;var i=e.on,o=e.props,a=e.attrs;return r("on",i),r("props",o),Object.assign(n.attrs,a),n}(this.$attrs,this.componentData);return t(this.getTag(),l,r)},created:function(){null!==this.list&&null!==this.value&&c.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&c.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&c.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var t=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var e={};v.forEach(function(n){e["on"+n]=d.call(t,n)}),g.forEach(function(n){e["on"+n]=h.bind(t,n)});var n=Object.keys(this.$attrs).reduce(function(e,n){return e[Object(c.a)(n)]=t.$attrs[n],e},{}),r=Object.assign({},this.options,n,e,{onMove:function(e,n){return t.onDragMove(e,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new u.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){this.updateOptions(t)},deep:!0},$attrs:{handler:function(t){this.updateOptions(t)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var t=this._vnode.fnOptions;return t&&t.functional},getTag:function(){return this.tag||this.element},updateOptions:function(t){for(var e in t){var n=Object(c.a)(e);-1===m.indexOf(n)&&this._sortable.option(n,t[e])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick(function(){t.visibleIndexes=function(t,e,n,r){if(!t)return[];var i=t.map(function(t){return t.elm}),o=e.length-r,a=s(e).map(function(t,e){return e>=o?i.length:i.indexOf(t)});return n?a.filter(function(t){return-1!==t}):a}(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode,t.footerOffset)})},getUnderlyingVm:function(t){var e=function(t,e){return t.map(function(t){return t.elm}).indexOf(e)}(this.getChildrenNodes()||[],t);return-1===e?null:{index:e,element:this.realList[e]}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&f(e.$options._componentTag)?e.$parent:!("realList"in e)&&1===e.$children.length&&"realList"in e.$children[0]?e.$children[0]:e},emitChanges:function(t){var e=this;this.$nextTick(function(){e.$emit("change",t)})},alterList:function(t){if(this.list)t(this.list);else{var e=s(this.value);t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,s(t))};this.alterList(e)},updatePosition:function(t,e){var n=function(n){return n.splice(e,0,n.splice(t,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(t){var e=t.to,n=t.related,r=this.getUnderlyingPotencialDraggableComponent(e);if(!r)return{component:r};var i=r.realList,o={list:i,component:r};if(e!==n&&i&&r.getUnderlyingVm){var a=r.getUnderlyingVm(n);if(a)return Object.assign(a,o)}return o},getVmIndex:function(t){var e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[t].data=null;var e=this.getComponent();e.children=[],e.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),y=t.item},onDragAdd:function(t){var e=t.item._underlying_vm_;if(void 0!==e){Object(c.d)(t.item);var n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();var r={element:e,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(t){if(Object(c.c)(this.rootContainer,t.item,t.oldIndex),"clone"!==t.pullMode){var e=this.context.index;this.spliceList(e,1);var n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})}else Object(c.d)(t.clone)},onDragUpdate:function(t){Object(c.d)(t.item),Object(c.c)(t.from,t.item,t.oldIndex);var e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);var r={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},computeFutureIndex:function(t,e){if(!t.element)return 0;var n=s(e.to.children).filter(function(t){return"none"!==t.style.display}),r=n.indexOf(e.related),i=t.component.getVmIndex(r);return-1===n.indexOf(y)&&e.willInsertAfter?i+1:i},onDragMove:function(t,e){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(t),i=this.context,o=this.computeFutureIndex(r,t);return Object.assign(i,{futureIndex:o}),n(Object.assign({},t,{relatedContext:r,draggedContext:i}),e)},onDragEnd:function(){this.computeIndexes(),y=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",b);var w=b;e.default=w}}).default},t.exports=r(n(246))},566:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(2849),i={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if("string"==typeof t){var e=r.indexOf(i.methodMap,t.toLowerCase());t=e>=0?e:parseInt(t,10)}return t},log:function(t){if(t=i.lookupLevel(t),"undefined"!=typeof console&&i.lookupLevel(i.level)<=t){var e=i.methodMap[t];console[e]||(e="log");for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o]}}};e.default=i,t.exports=e.default},579:(t,e,n)=>{var r=n(3738).default;t.exports=function(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(r(t)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},639:(t,e,n)=>{"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(n(261)),o=r(n(2300)),a=n(9027),s=n(1127),l=r(n(6727)),u=r(n(1350)),c=r(n(1148)),h=i.default.create;function d(){var t=h();return t.compile=function(e,n){return s.compile(e,n,t)},t.precompile=function(e,n){return s.precompile(e,n,t)},t.AST=o.default,t.Compiler=s.Compiler,t.JavaScriptCompiler=l.default,t.Parser=a.parser,t.parse=a.parse,t.parseWithoutProcessing=a.parseWithoutProcessing,t}var f=d();f.create=d,c.default(f),f.Visitor=u.default,f.default=f,e.default=f,t.exports=e.default},644:(t,e,n)=>{"use strict";t.exports=n.p+"images/lay8.80107d63.png"},887:(t,e,n)=>{var r=n(6993),i=n(1791);t.exports=function(t,e,n,o,a){return new i(r().w(t,e,n,o),a||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},908:(t,e,n)=>{"use strict";e.__esModule=!0;var r,i=n(2849),o=n(3769),a=(r=o)&&r.__esModule?r:{default:r};e.default=function(t){t.registerHelper("with",function(t,e){if(2!=arguments.length)throw new a.default("#with requires exactly one argument");i.isFunction(t)&&(t=t.call(this));var n=e.fn;if(i.isEmpty(t))return e.inverse(this);var r=e.data;return e.data&&e.ids&&((r=i.createFrame(e.data)).contextPath=i.appendContextPath(e.data.contextPath,e.ids[0])),n(t,{data:r,blockParams:i.blockParams([t],[r&&r.contextPath])})})},t.exports=e.default},915:(t,e,n)=>{"use strict";e.__esModule=!0;var r,i=n(1350),o=(r=i)&&r.__esModule?r:{default:r};function a(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=t}function s(t,e,n){void 0===e&&(e=t.length);var r=t[e-1],i=t[e-2];return r?"ContentStatement"===r.type?(i||!n?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(r.original):void 0:n}function l(t,e,n){void 0===e&&(e=-1);var r=t[e+1],i=t[e+2];return r?"ContentStatement"===r.type?(i||!n?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(r.original):void 0:n}function u(t,e,n){var r=t[null==e?0:e+1];if(r&&"ContentStatement"===r.type&&(n||!r.rightStripped)){var i=r.value;r.value=r.value.replace(n?/^\s+/:/^[ \t]*\r?\n?/,""),r.rightStripped=r.value!==i}}function c(t,e,n){var r=t[null==e?t.length-1:e-1];if(r&&"ContentStatement"===r.type&&(n||!r.leftStripped)){var i=r.value;return r.value=r.value.replace(n?/\s+$/:/[ \t]+$/,""),r.leftStripped=r.value!==i,r.leftStripped}}a.prototype=new o.default,a.prototype.Program=function(t){var e=!this.options.ignoreStandalone,n=!this.isRootSeen;this.isRootSeen=!0;for(var r=t.body,i=0,o=r.length;i<o;i++){var a=r[i],h=this.accept(a);if(h){var d=s(r,i,n),f=l(r,i,n),p=h.openStandalone&&d,v=h.closeStandalone&&f,g=h.inlineStandalone&&d&&f;h.close&&u(r,i,!0),h.open&&c(r,i,!0),e&&g&&(u(r,i),c(r,i)&&"PartialStatement"===a.type&&(a.indent=/([ \t]+$)/.exec(r[i-1].original)[1])),e&&p&&(u((a.program||a.inverse).body),c(r,i)),e&&v&&(u(r,i),c((a.inverse||a.program).body))}}return t},a.prototype.BlockStatement=a.prototype.DecoratorBlock=a.prototype.PartialBlockStatement=function(t){this.accept(t.program),this.accept(t.inverse);var e=t.program||t.inverse,n=t.program&&t.inverse,r=n,i=n;if(n&&n.chained)for(r=n.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var o={open:t.openStrip.open,close:t.closeStrip.close,openStandalone:l(e.body),closeStandalone:s((r||e).body)};if(t.openStrip.close&&u(e.body,null,!0),n){var a=t.inverseStrip;a.open&&c(e.body,null,!0),a.close&&u(r.body,null,!0),t.closeStrip.open&&c(i.body,null,!0),!this.options.ignoreStandalone&&s(e.body)&&l(r.body)&&(c(e.body),u(r.body))}else t.closeStrip.open&&c(e.body,null,!0);return o},a.prototype.Decorator=a.prototype.MustacheStatement=function(t){return t.strip},a.prototype.PartialStatement=a.prototype.CommentStatement=function(t){var e=t.strip||{};return{inlineStandalone:!0,open:e.open,close:e.close}},e.default=a,t.exports=e.default},952:(t,e,n)=>{"use strict";t.exports=n.p+"images/lay4.6f06e367.png"},1002:(t,e,n)=>{"use strict";t.exports=n.p+"images/lay6.9ef2f723.png"},1127:(t,e,n)=>{"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.Compiler=l,e.precompile=function(t,e,n){if(null==t||"string"!=typeof t&&"Program"!==t.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+t);"data"in(e=e||{})||(e.data=!0);e.compat&&(e.useDepths=!0);var r=n.parse(t,e),o=(new n.Compiler).compile(r,e);return(new n.JavaScriptCompiler).compile(o,e)},e.compile=function(t,e,n){void 0===e&&(e={});if(null==t||"string"!=typeof t&&"Program"!==t.type)throw new i.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);"data"in(e=o.extend({},e))||(e.data=!0);e.compat&&(e.useDepths=!0);var r=void 0;function a(){var r=n.parse(t,e),i=(new n.Compiler).compile(r,e),o=(new n.JavaScriptCompiler).compile(i,e,void 0,!0);return n.template(o)}function s(t,e){return r||(r=a()),r.call(this,t,e)}return s._setup=function(t){return r||(r=a()),r._setup(t)},s._child=function(t,e,n,i){return r||(r=a()),r._child(t,e,n,i)},s};var i=r(n(3769)),o=n(2849),a=r(n(2300)),s=[].slice;function l(){}function u(t,e){if(t===e)return!0;if(o.isArray(t)&&o.isArray(e)&&t.length===e.length){for(var n=0;n<t.length;n++)if(!u(t[n],e[n]))return!1;return!0}}function c(t){if(!t.path.parts){var e=t.path;t.path={type:"PathExpression",data:!1,depth:0,parts:[e.original+""],original:e.original+"",loc:e.loc}}}l.prototype={compiler:l,equals:function(t){var e=this.opcodes.length;if(t.opcodes.length!==e)return!1;for(var n=0;n<e;n++){var r=this.opcodes[n],i=t.opcodes[n];if(r.opcode!==i.opcode||!u(r.args,i.args))return!1}e=this.children.length;for(n=0;n<e;n++)if(!this.children[n].equals(t.children[n]))return!1;return!0},guid:0,compile:function(t,e){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=e,this.stringParams=e.stringParams,this.trackIds=e.trackIds,e.blockParams=e.blockParams||[],e.knownHelpers=o.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},e.knownHelpers),this.accept(t)},compileProgram:function(t){var e=(new this.compiler).compile(t,this.options),n=this.guid++;return this.usePartial=this.usePartial||e.usePartial,this.children[n]=e,this.useDepths=this.useDepths||e.useDepths,n},accept:function(t){if(!this[t.type])throw new i.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var e=this[t.type](t);return this.sourceNode.shift(),e},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var e=t.body,n=e.length,r=0;r<n;r++)this.accept(e[r]);return this.options.blockParams.shift(),this.isSimple=1===n,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){c(t);var e=t.program,n=t.inverse;e=e&&this.compileProgram(e),n=n&&this.compileProgram(n);var r=this.classifySexpr(t);"helper"===r?this.helperSexpr(t,e,n):"simple"===r?(this.simpleSexpr(t),this.opcode("pushProgram",e),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,e,n),this.opcode("pushProgram",e),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var e=t.program&&this.compileProgram(t.program),n=this.setupFullMustacheParams(t,e,void 0),r=t.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,r.original)},PartialStatement:function(t){this.usePartial=!0;var e=t.program;e&&(e=this.compileProgram(t.program));var n=t.params;if(n.length>1)throw new i.default("Unsupported number of partial arguments: "+n.length,t);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var r=t.name.original,o="SubExpression"===t.name.type;o&&this.accept(t.name),this.setupFullMustacheParams(t,e,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",o,r,a),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){c(t);var e=this.classifySexpr(t);"simple"===e?this.simpleSexpr(t):"helper"===e?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,e,n){var r=t.path,i=r.parts[0],o=null!=e||null!=n;this.opcode("getContext",r.depth),this.opcode("pushProgram",e),this.opcode("pushProgram",n),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",i,o)},simpleSexpr:function(t){var e=t.path;e.strict=!0,this.accept(e),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,e,n){var r=this.setupFullMustacheParams(t,e,n),o=t.path,s=o.parts[0];if(this.options.knownHelpers[s])this.opcode("invokeKnownHelper",r.length,s);else{if(this.options.knownHelpersOnly)throw new i.default("You specified knownHelpersOnly, but used the unknown helper "+s,t);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",r.length,o.original,a.default.helpers.simpleId(o))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var e=t.parts[0],n=a.default.helpers.scopedId(t),r=!t.depth&&!n&&this.blockParamIndex(e);r?this.opcode("lookupBlockParam",r,t.parts):e?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,n):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var e=t.pairs,n=0,r=e.length;for(this.opcode("pushHash");n<r;n++)this.pushParam(e[n].value);for(;n--;)this.opcode("assignToHash",e[n].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:s.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var e=a.default.helpers.simpleId(t.path),n=e&&!!this.blockParamIndex(t.path.parts[0]),r=!n&&a.default.helpers.helperExpression(t),i=!n&&(r||e);if(i&&!r){var o=t.path.parts[0],s=this.options;s.knownHelpers[o]?r=!0:s.knownHelpersOnly&&(i=!1)}return r?"helper":i?"ambiguous":"simple"},pushParams:function(t){for(var e=0,n=t.length;e<n;e++)this.pushParam(t[e])},pushParam:function(t){var e=null!=t.value?t.value:t.original||"";if(this.stringParams)e.replace&&(e=e.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",e,t.type),"SubExpression"===t.type&&this.accept(t);else{if(this.trackIds){var n=void 0;if(!t.parts||a.default.helpers.scopedId(t)||t.depth||(n=this.blockParamIndex(t.parts[0])),n){var r=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,r)}else(e=t.original||e).replace&&(e=e.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,e)}this.accept(t)}},setupFullMustacheParams:function(t,e,n,r){var i=t.params;return this.pushParams(i),this.opcode("pushProgram",e),this.opcode("pushProgram",n),t.hash?this.accept(t.hash):this.opcode("emptyHash",r),i},blockParamIndex:function(t){for(var e=0,n=this.options.blockParams.length;e<n;e++){var r=this.options.blockParams[e],i=r&&o.indexOf(r,t);if(r&&i>=0)return[e,i]}}}},1148:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t){"object"!=typeof globalThis&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__);var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}},t.exports=e.default},1162:(t,e,n)=>{"use strict";n.d(e,{uVY:()=>TI}),t=n.hmd(t);var r=Object.freeze({__proto__:null,get Base(){return Ri},get Circle(){return Di},get Ellipse(){return Ni},get Image(){return Fi},get Line(){return Wi},get Marker(){return $i},get Path(){return eo},get Polygon(){return ro},get Polyline(){return oo},get Rect(){return so},get Text(){return uo}}),i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var a=function(){return a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},a.apply(this,arguments)};function s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function l(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function c(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var h=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},d={}.toString,f=function(t,e){return d.call(t)==="[object "+e+"]"},p=function(t){return f(t,"Function")},v=function(t){return null==t},g=function(t){return Array.isArray?Array.isArray(t):f(t,"Array")},m=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e};function y(t,e){if(t)if(g(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if(m(t))for(var i in t)if(t.hasOwnProperty(i)&&!1===e(t[i],i))break}var b=function(t){return"object"==typeof t&&null!==t},w=function(t){if(g(t))return t.reduce(function(t,e){return Math.max(t,e)},t[0])},C=function(t){if(g(t))return t.reduce(function(t,e){return Math.min(t,e)},t[0])},_=function(t){return f(t,"String")},x=function(t){return f(t,"Number")};var S=function(t,e){return(t%e+e)%e},E=Math.PI/180,O=function(t){return E*t},T=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return y(t,function(n,r){p(t)&&"prototype"===r||e.push(n)}),e},I=function(t){var e=function(t){return v(t)?"":t.toString()}(t);return e.charAt(0).toUpperCase()+e.substring(1)};function M(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function L(t,e,n,r){return e&&M(t,e),n&&M(t,n),r&&M(t,r),t}var k,A=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(_(t)||_(e))return!1;if(h(t)||h(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length&&(n=A(t[r],e[r]));r++);return n}if(b(t)||b(e)){var i=Object.keys(t),o=Object.keys(e);if(i.length!==o.length)return!1;for(n=!0,r=0;r<i.length&&(n=A(t[i[r]],e[i[r]]));r++);return n}return!1},R={},D=function(){};!function(t,e){if(!p(t))throw new TypeError("Expected a function");var n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,r);return a.set(o,s),s};n.cache=new Map}(function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return k||(k=document.createElement("canvas").getContext("2d")),k.font=[o,a,i,n+"px",r].join(" "),k.measureText(_(t)?t:"").width},function(t,e){return void 0===e&&(e={}),function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}([t],T(e)).join("")});var P="\t\n\v\f\r   ᠎              \u2028\u2029",N=new RegExp("([a-z])["+P+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+P+"]*,?["+P+"]*)+)","ig"),B=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+P+"]*,?["+P+"]*","ig"),z=function(t){if(!t)return null;if(g(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(N,function(r,i,o){var a=[],s=i.toLowerCase();if(o.replace(B,function(t,e){e&&a.push(+e)}),"m"===s&&a.length>2&&(n.push([i].concat(a.splice(0,2))),s="l",i="m"===i?"l":"L"),"o"===s&&1===a.length&&n.push([i,a[0]]),"r"===s)n.push([i].concat(a));else for(;a.length>=e[s]&&(n.push([i].concat(a.splice(0,e[s]))),e[s]););return t}),n},F=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},H=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,s=t+n*Math.cos(-r*a),l=t+n*Math.cos(-i*a);o=[["M",s,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,l,e+n*Math.sin(-i*a)]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o},j=function(t){if(!(t=z(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,s=0,l=0;"M"===t[0][0]&&(a=i=+t[0][1],s=o=+t[0][2],l++,r[0]=["M",i,o]);for(var u=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),c=void 0,h=void 0,d=l,f=t.length;d<f;d++){if(r.push(c=[]),(e=(h=t[d])[0])!==e.toUpperCase())switch(c[0]=e.toUpperCase(),c[0]){case"A":c[1]=h[1],c[2]=h[2],c[3]=h[3],c[4]=h[4],c[5]=h[5],c[6]=+h[6]+i,c[7]=+h[7]+o;break;case"V":c[1]=+h[1]+o;break;case"H":c[1]=+h[1]+i;break;case"R":for(var p=2,v=(n=[i,o].concat(h.slice(1))).length;p<v;p++)n[p]=+n[p]+i,n[++p]=+n[p]+o;r.pop(),r=r.concat(F(n,u));break;case"O":r.pop(),(n=H(i,o,h[1],h[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(H(i,o,h[1],h[2],h[3])),c=["U"].concat(r[r.length-1].slice(-2));break;case"M":a=+h[1]+i,s=+h[2]+o;break;default:for(p=1,v=h.length;p<v;p++)c[p]=+h[p]+(p%2?i:o)}else if("R"===e)n=[i,o].concat(h.slice(1)),r.pop(),r=r.concat(F(n,u)),c=["R"].concat(h.slice(-2));else if("O"===e)r.pop(),(n=H(i,o,h[1],h[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(H(i,o,h[1],h[2],h[3])),c=["U"].concat(r[r.length-1].slice(-2));else for(var g=0,m=h.length;g<m;g++)c[g]=h[g];if("O"!==(e=e.toUpperCase()))switch(c[0]){case"Z":i=+a,o=+s;break;case"H":i=c[1];break;case"V":o=c[1];break;case"M":a=c[c.length-2],s=c[c.length-1];break;default:i=c[c.length-2],o=c[c.length-1]}}return r},W=function(t,e,n,r){return[t,e,n,r,n,r]},G=function(t,e,n,r,i,o){var a=1/3,s=2/3;return[a*t+s*n,a*e+s*r,a*i+s*n,a*o+s*r,i,o]},V=function(t,e,n,r,i,o,a,s,l,u){n===r&&(n+=1);var c,h,d,f,p,v=120*Math.PI/180,g=Math.PI/180*(+i||0),m=[],y=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(u)h=u[0],d=u[1],f=u[2],p=u[3];else{t=(c=y(t,e,-g)).x,e=c.y,s=(c=y(s,l,-g)).x,l=c.y,t===s&&e===l&&(s+=1,l+=1);var b=(t-s)/2,w=(e-l)/2,C=b*b/(n*n)+w*w/(r*r);C>1&&(n*=C=Math.sqrt(C),r*=C);var _=n*n,x=r*r,S=(o===a?-1:1)*Math.sqrt(Math.abs((_*x-_*w*w-x*b*b)/(_*w*w+x*b*b)));f=S*n*w/r+(t+s)/2,p=S*-r*b/n+(e+l)/2,h=Math.asin(((e-p)/r).toFixed(9)),d=Math.asin(((l-p)/r).toFixed(9)),h=t<f?Math.PI-h:h,d=s<f?Math.PI-d:d,h<0&&(h=2*Math.PI+h),d<0&&(d=2*Math.PI+d),a&&h>d&&(h-=2*Math.PI),!a&&d>h&&(d-=2*Math.PI)}var E=d-h;if(Math.abs(E)>v){var O=d,T=s,I=l;d=h+v*(a&&d>h?1:-1),s=f+n*Math.cos(d),l=p+r*Math.sin(d),m=V(s,l,n,r,i,0,a,T,I,[d,O,f,p])}E=d-h;var M=Math.cos(h),L=Math.sin(h),k=Math.cos(d),A=Math.sin(d),R=Math.tan(E/4),D=4/3*n*R,P=4/3*r*R,N=[t,e],B=[t+D*L,e-P*M],z=[s+D*A,l-P*k],F=[s,l];if(B[0]=2*N[0]-B[0],B[1]=2*N[1]-B[1],u)return[B,z,F].concat(m);for(var H=[],j=0,W=(m=[B,z,F].concat(m).join().split(",")).length;j<W;j++)H[j]=j%2?y(m[j-1],m[j],g).y:y(m[j],m[j+1],g).x;return H},$=function(t,e){var n,r=j(t),i=e&&j(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],l=[],u="",c="",h=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(V.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(G(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(G(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(W(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(W(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(W(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(W(e.x,e.y,e.X,e.Y))}return t},d=function(t,e){if(t[e].length>7){t[e].shift();for(var o=t[e];o.length;)s[e]="A",i&&(l[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},f=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var p=0;p<n;p++){r[p]&&(u=r[p][0]),"C"!==u&&(s[p]=u,p&&(c=s[p-1])),r[p]=h(r[p],o,c),"A"!==s[p]&&"C"===u&&(s[p]="C"),d(r,p),i&&(i[p]&&(u=i[p][0]),"C"!==u&&(l[p]=u,p&&(c=l[p-1])),i[p]=h(i[p],a,c),"A"!==l[p]&&"C"===u&&(l[p]="C"),d(i,p)),f(r,i,o,a,p),f(i,r,a,o,p);var v=r[p],g=i&&i[p],m=v.length,y=i&&g.length;o.x=v[m-2],o.y=v[m-1],o.bx=parseFloat(v[m-4])||o.x,o.by=parseFloat(v[m-3])||o.y,a.bx=i&&(parseFloat(g[y-4])||a.x),a.by=i&&(parseFloat(g[y-3])||a.y),a.x=i&&g[y-2],a.y=i&&g[y-1]}return i?[r,i]:r},U=/,?([a-z]),?/gi,Y=function(t){return t.join(",").replace(U,"$1")},X=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},q=function(t,e,n,r,i,o,a,s,l){null===l&&(l=1);for(var u=(l=l>1?1:l<0?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,f=0;f<12;f++){var p=u*c[f]+u,v=X(p,t,n,i,a),g=X(p,e,r,o,s),m=v*v+g*g;d+=h[f]*Math.sqrt(m)}return u*d},K=function(t,e,n,r,i,o,a,s){for(var l,u,c,h,d=[],f=[[],[]],p=0;p<2;++p)if(0===p?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*a,c=3*n-3*t):(u=6*e-12*r+6*o,l=-3*e+9*r-9*o+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(h=-c/u)>0&&h<1&&d.push(h)}else{var v=u*u-4*c*l,g=Math.sqrt(v);if(!(v<0)){var m=(-u+g)/(2*l);m>0&&m<1&&d.push(m);var y=(-u-g)/(2*l);y>0&&y<1&&d.push(y)}}for(var b,w=d.length,C=w;w--;)b=1-(h=d[w]),f[0][w]=b*b*b*t+3*b*b*h*n+3*b*h*h*i+h*h*h*a,f[1][w]=b*b*b*e+3*b*b*h*r+3*b*h*h*o+h*h*h*s;return f[0][C]=t,f[1][C]=e,f[0][C+1]=a,f[1][C+1]=s,f[0].length=f[1].length=C+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},Z=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,s)||Math.min(e,r)>Math.max(o,s))){var l=(t-n)*(o-s)-(e-r)*(i-a);if(l){var u=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/l,c=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/l,h=+u.toFixed(2),d=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,a).toFixed(2)||h>+Math.max(i,a).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(o,s).toFixed(2)||d>+Math.max(o,s).toFixed(2)))return{x:u,y:c}}}},J=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},Q=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=Y,o},tt=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:Q(t,e,n,r),vb:[t,e,n,r].join(" ")}},et=function(t,e,n,r,i,o,a,s){g(t)||(t=[t,e,n,r,i,o,a,s]);var l=K.apply(null,t);return tt(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},nt=function(t,e,n,r,i,o,a,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),d=l*l,f=d*l,p=t+2*l*(n-t)+d*(i-2*n+t),v=e+2*l*(r-e)+d*(o-2*r+e),g=n+2*l*(i-n)+d*(a-2*i+n),m=r+2*l*(o-r)+d*(s-2*o+r);return{x:c*t+3*h*l*n+3*u*l*l*i+f*a,y:c*e+3*h*l*r+3*u*l*l*o+f*s,m:{x:p,y:v},n:{x:g,y:m},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*a,y:u*o+l*s},alpha:90-180*Math.atan2(p-g,v-m)/Math.PI}},rt=function(t,e,n){if(!function(t,e){return t=tt(t),e=tt(e),J(e,t.x,t.y)||J(e,t.x2,t.y)||J(e,t.x,t.y2)||J(e,t.x2,t.y2)||J(t,e.x,e.y)||J(t,e.x2,e.y)||J(t,e.x,e.y2)||J(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(et(t),et(e)))return n?0:[];for(var r=~~(q.apply(0,t)/8),i=~~(q.apply(0,e)/8),o=[],a=[],s={},l=n?0:[],u=0;u<r+1;u++){var c=nt.apply(0,t.concat(u/r));o.push({x:c.x,y:c.y,t:u/r})}for(u=0;u<i+1;u++){c=nt.apply(0,e.concat(u/i));a.push({x:c.x,y:c.y,t:u/i})}for(u=0;u<r;u++)for(var h=0;h<i;h++){var d=o[u],f=o[u+1],p=a[h],v=a[h+1],g=Math.abs(f.x-d.x)<.001?"y":"x",m=Math.abs(v.x-p.x)<.001?"y":"x",y=Z(d.x,d.y,f.x,f.y,p.x,p.y,v.x,v.y);if(y){if(s[y.x.toFixed(4)]===y.y.toFixed(4))continue;s[y.x.toFixed(4)]=y.y.toFixed(4);var b=d.t+Math.abs((y[g]-d[g])/(f[g]-d[g]))*(f.t-d.t),w=p.t+Math.abs((y[m]-p[m])/(v[m]-p[m]))*(v.t-p.t);b>=0&&b<=1&&w>=0&&w<=1&&(n?l+=1:l.push({x:y.x,y:y.y,t1:b,t2:w}))}}return l};function it(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var o=[],a=0;a<e.length-1;a++)0===a&&n.push(e[0]),a===e.length-2&&r.push(e[a+1]),o[a]=[(1-i)*e[a][0]+i*e[a+1][0],(1-i)*e[a][1]+i*e[a+1][1]];t(o,i)}}(t,e),{left:n,right:r.reverse()}}var ot=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,a=1/n,s=0;s<n-1;s++){var l=it(o,a/(1-a*s));i.push(l.left),o=l.right}return i.push(o),i.map(function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e.concat(t[t.length-1])})}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},at=function(t,e){if(t.length!==e.length)return!1;var n=!0;return y(t,function(t,r){if(t!==e[r])return n=!1,!1}),n};function st(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var lt=function(t,e){var n=function(t,e){var n,r,i=t.length,o=e.length,a=0;if(0===i||0===o)return null;for(var s=[],l=0;l<=i;l++)s[l]=[],s[l][0]={min:l};for(var u=0;u<=o;u++)s[0][u]={min:u};for(l=1;l<=i;l++)for(n=t[l-1],u=1;u<=o;u++){r=e[u-1],a=at(n,r)?0:1;var c=s[l-1][u].min+1,h=s[l][u-1].min+1,d=s[l-1][u-1].min+a;s[l][u]=st(c,h,d)}return s}(t,e),r=t.length,i=e.length,o=[],a=1,s=1;if(n[r][i].min!==r){for(var l=1;l<=r;l++){var u=n[l][l].min;s=l;for(var c=a;c<=i;c++)n[l][c].min<u&&(u=n[l][c].min,s=c);a=s,n[l][a].type&&o.push({index:l-1,type:n[l][a].type})}for(l=o.length-1;l>=0;l--)a=o[l].index,"add"===o[l].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var h=i-(r=t.length);if(r<i)for(l=0;l<h;l++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};function ut(t,e,n){for(var r,i=[].concat(t),o=1/(n+1),a=ct(e)[0],s=1;s<=n;s++)o*=s,0===(r=Math.floor(t.length*o))?i.unshift([a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]):i.splice(r,0,[a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]);return i}function ct(t){var e=[];switch(t[0]){case"M":case"L":case"T":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}var ht=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=ct(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=ut(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=ut(n,t[r-1],2)}t[r]=["C"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=ut(n,t[r-1],1)}t[r]=["S"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;default:t[r]=e[r]}return t},dt=Object.freeze({__proto__:null,catmullRomToBezier:F,fillPath:function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(a=0;a<r;a++){var s=Math.floor(i*a);o[s]=(o[s]||0)+1}var l=o.reduce(function(e,r,i){return i===n?e.concat(t[n]):e.concat(ot(t[i],t[i+1],r))},[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l},fillPathByDiff:lt,formatPath:ht,intersection:function(t,e){return function(t,e,n){var r,i,o,a,s,l,u,c,h,d;t=$(t),e=$(e);for(var f=n?0:[],p=0,v=t.length;p<v;p++){var g=t[p];if("M"===g[0])r=s=g[1],i=l=g[2];else{"C"===g[0]?(h=[r,i].concat(g.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,s,l,s,l],r=s,i=l);for(var m=0,y=e.length;m<y;m++){var b=e[m];if("M"===b[0])o=u=b[1],a=c=b[2];else{"C"===b[0]?(d=[o,a].concat(b.slice(1)),o=d[6],a=d[7]):(d=[o,a,o,a,u,c,u,c],o=u,a=c);var w=rt(h,d,n);if(n)f+=w;else{for(var C=0,_=w.length;C<_;C++)w[C].segment1=p,w[C].segment2=m,w[C].bez1=h,w[C].bez2=d;f=f.concat(w)}}}}}return f}(t,e)},parsePathArray:Y,parsePathString:z,pathToAbsolute:j,pathToCurve:$,rectPath:Q}),ft=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}(),pt=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this._events[t]||[],o=this._events["*"]||[],a=function(r){for(var i=r.length,o=0;o<i;o++)if(r[o]){var a=r[o],s=a.callback;a.once&&(r.splice(o,1),0===r.length&&delete e._events[t],i--,o--),s.apply(e,n)}};a(i),a(o)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],r=n.length,i=0;i<r;i++)n[i].callback===e&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();function vt(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var gt="undefined"!=typeof window&&void 0!==window.document;function mt(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r}function yt(t){return t.cfg.visible&&t.cfg.capture}var bt=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=L(r,e),n}return o(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(pt),wt=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},Ct=function(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"},_t=function(t){this.version=t,this.type="node",this.name="node",this.os=process.platform},xt=function(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"},St=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},Et=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},Ot=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Tt=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],It=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Mt(t){var e=function(t){return""!==t&&Tt.reduce(function(e,n){var r=n[0],i=n[1];if(e)return e;var o=i.exec(t);return!!o&&[r,o]},!1)}(t);if(!e)return null;var n=e[0],r=e[1];if("searchbot"===n)return new St;var i=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);i?i.length<3&&(i=wt(wt([],i,!0),function(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}(3-i.length),!0)):i=[];var o=i.join("."),a=function(t){for(var e=0,n=It.length;e<n;e++){var r=It[e],i=r[0];if(r[1].exec(t))return i}return null}(t),s=Ot.exec(t);return s&&s[1]?new xt(n,o,a,s[1]):new Ct(n,o,a)}var Lt,kt="undefined"!=typeof Float32Array?Float32Array:Array;function At(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=n[0],f=n[1],p=n[2],v=n[3],g=n[4],m=n[5],y=n[6],b=n[7],w=n[8];return t[0]=d*r+f*a+p*u,t[1]=d*i+f*s+p*c,t[2]=d*o+f*l+p*h,t[3]=v*r+g*a+m*u,t[4]=v*i+g*s+m*c,t[5]=v*o+g*l+m*h,t[6]=y*r+b*a+w*u,t[7]=y*i+b*s+w*c,t[8]=y*o+b*l+w*h,t}function Rt(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function Dt(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return function(t,e){t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1}(r,n),At(t,r,e)}function Pt(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return function(t,e){var n=Math.sin(e),r=Math.cos(e);t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1}(r,n),At(t,r,e)}function Nt(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return function(t,e){t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1}(r,n),At(t,r,e)}function Bt(t,e,n){return At(t,n,e)}function zt(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],r=0,i=e.length;r<i;r++){var o=e[r];switch(o[0]){case"t":Dt(n,n,[o[1],o[2]]);break;case"s":Nt(n,n,[o[1],o[2]]);break;case"r":Pt(n,n,o[1]);break;case"m":Bt(n,n,o[1])}}return n}function Ft(t,e){var n=[],r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],d=e[0],f=e[1],p=e[2],v=e[3],g=e[4],m=e[5],y=e[6],b=e[7],w=e[8];return n[0]=d*r+f*a+p*u,n[1]=d*i+f*s+p*c,n[2]=d*o+f*l+p*h,n[3]=v*r+g*a+m*u,n[4]=v*i+g*s+m*c,n[5]=v*o+g*l+m*h,n[6]=y*r+b*a+w*u,n[7]=y*i+b*s+w*c,n[8]=y*o+b*l+w*h,n}function Ht(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n}function jt(t){var e=[],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=c*a-s*u,d=-c*o+s*l,f=u*o-a*l,p=n*h+r*d+i*f;return p?(p=1/p,e[0]=h*p,e[1]=(-c*r+i*u)*p,e[2]=(s*r-i*a)*p,e[3]=d*p,e[4]=(c*n-i*l)*p,e[5]=(-s*n+i*o)*p,e[6]=f*p,e[7]=(-u*n+r*l)*p,e[8]=(a*n-r*o)*p,e):null}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)}),Lt=new kt(3),kt!=Float32Array&&(Lt[0]=0,Lt[1]=0,Lt[2]=0),function(){var t=function(){var t=new kt(2);return kt!=Float32Array&&(t[0]=0,t[1]=0),t}()}();var Wt=zt,Gt="matrix",Vt=["zIndex","capture","visible","type"],$t=["repeat"];function Ut(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}var Yt=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return L(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return o(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],i=e[1];if(!r)return this.attrs;if(m(r)){for(var o in r)this.setAttr(o,r[o]);return this.afterAttrsChange(r),this}return 2===e.length?(this.setAttr(r,i),this.afterAttrsChange(((t={})[r]=i,t)),this):this.attrs[r]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren();this.get("el");var n=e.indexOf(this);e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren();this.get("el");var n=e.indexOf(this);e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(vt(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr(Gt,this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr(Gt)},e.prototype.setMatrix=function(t){this.attr(Gt,t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?Ft(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?Ft(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?Ht(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=jt(e);if(n)return Ht(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r=this.getShapeBase()[I(t.type)];r&&(n=new r({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};y(e,function(t,r){g(e[r])?n[r]=function(t){for(var e=[],n=0;n<t.length;n++)g(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[r]):n[r]=e[r]});var r=new(0,this.constructor)({attrs:n});return y(Vt,function(e){r.set(e,t.get(e))}),r},e.prototype.destroy=function(){this.destroyed||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var r=this.get("animations")||[];n.timer||n.initTimer();var i,o,a,s,l,u=t[0],c=t[1],h=t[2],d=void 0===h?"easeLinear":h,f=t[3],v=void 0===f?D:f,g=t[4],b=void 0===g?0:g;p(u)?(i=u,u={}):m(u)&&u.onFrame&&(i=u.onFrame,o=u.repeat),m(c)?(c=(l=c).duration,d=l.easing||"easeLinear",b=l.delay||0,o=l.repeat||o||!1,v=l.callback||D,a=l.pauseCallback||D,s=l.resumeCallback||D):(x(v)&&(b=v,v=null),p(d)?(v=d,d="easeLinear"):d=d||"easeLinear");var w,C=function(t,e){var n={},r=e.attr();return y(t,function(t,e){-1!==$t.indexOf(e)||A(r[e],t)||(n[e]=t)}),n}(u,this),_={fromAttrs:Ut(C,this),toAttrs:C,duration:c,easing:d,repeat:o,callback:v,pauseCallback:a,resumeCallback:s,delay:b,startTime:n.getTime(),id:(R[w=w||"g"]?R[w]+=1:R[w]=1,w+R[w]),onFrame:i,pathFormatted:!1};r.length>0?r=function(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,o=Object.prototype.hasOwnProperty;return y(t,function(t){n+r<t.startTime+t.delay+t.duration&&i>t.delay&&y(e.toAttrs,function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])})}),t}(r,_):n.addAnimator(this),r.push(_),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0),y(this.get("animations"),function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()}),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return y(e,function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return y(e,function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,i=e.propagationPath;this.getEvents(),"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var o=function(t){var o=i[t],s=o.get("name");if(s){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&n&&mt(o,n))return"break";g(s)?y(s,function(t){r.emitDelegateEvent(o,t,e)}):a.emitDelegateEvent(o,s,e)}},a=this,s=0;s<i.length;s++){if("break"===o(s))break}},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),i=e+":"+n.type;(r[i]||r["*"])&&(n.name=i,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(i,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),r=Wt(n,[["t",t,e]]);return this.setMatrix(r),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(t-n,e-r),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),r=Wt(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=Wt(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,r=e.y,i=this.getMatrix(),o=Wt(i,[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,n){var r=this.getMatrix(),i=Wt(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(bt),Xt={},qt="_INDEX";function Kt(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach(function(t){Kt(t,e)})}}function Zt(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach(function(t){Zt(t,e)})}}var Jt,Qt,te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=this.getChildren().filter(function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)});return i.length>0?y(i,function(i){var o=i.getBBox(),a=o.minX,s=o.maxX,l=o.minY,u=o.maxY;a<t&&(t=a),s>e&&(e=s),l<n&&(n=l),u>r&&(r=u)}):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=this.getChildren().filter(function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)});return i.length>0?y(i,function(i){var o=i.getCanvasBBox(),a=o.minX,s=o.maxX,l=o.minY,u=o.maxY;a<t&&(t=a),s>e&&(e=s),l<n&&(n=l),u>r&&(r=u)}):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){y(this.getChildren(),function(e){e.applyMatrix(t)})},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];m(n)?r=n:r.type=n;var i=Xt[r.type];i||(i=I(r.type),Xt[r.type]=i);var o=new(this.getShapeBase()[i])(r);return this.add(o),o},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=t[0],i=t[1];if(p(r))n=new r(i||{parent:this});else{var o=r||{};n=new(this.getGroupBase())(o)}return this.add(n),n},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,n){if(!yt(this))return null;var r,i=this.getChildren();if(this.isCanvas())r=this._findShape(i,t,e,n);else{var o=[t,e,1];o=this.invertFromMatrix(o),this.isClipped(o[0],o[1])||(r=this._findShape(i,o[0],o[1],n))}return r},e.prototype._findShape=function(t,e,n,r){for(var i=null,o=t.length-1;o>=0;o--){var a=t[o];if(yt(a)&&(a.isGroup()?i=a.getShape(e,n,r):a.isHit(e,n)&&(i=a)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),vt(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&Kt(t,e),r&&Zt(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();y(e,function(t,e){return t[qt]=e,t}),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e[qt]-n[qt]:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[];return y(this.getChildren(),function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))}),e},e.prototype.find=function(t){var e=null;return y(this.getChildren(),function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1}),e},e.prototype.findById=function(t){return this.find(function(e){return e.get("id")===t})},e.prototype.findByClassName=function(t){return this.find(function(e){return e.get("className")===t})},e.prototype.findAllByName=function(t){return this.findAll(function(e){return e.get("name")===t})},e}(Yt),ee=0,ne=0,re=0,ie=0,oe=0,ae=0,se="object"==typeof performance&&performance.now?performance:Date,le="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ue(){return oe||(le(ce),oe=se.now()+ae)}function ce(){oe=0}function he(){this._call=this._time=this._next=null}function de(t,e,n){var r=new he;return r.restart(t,e,n),r}function fe(){oe=(ie=se.now())+ae,ee=ne=0;try{!function(){ue(),++ee;for(var t,e=Jt;e;)(t=oe-e._time)>=0&&e._call.call(null,t),e=e._next;--ee}()}finally{ee=0,function(){var t,e,n=Jt,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Jt=e);Qt=t,ve(r)}(),oe=0}}function pe(){var t=se.now(),e=t-ie;e>1e3&&(ae-=e,ie=t)}function ve(t){ee||(ne&&(ne=clearTimeout(ne)),t-oe>24?(t<1/0&&(ne=setTimeout(fe,t-se.now()-ae)),re&&(re=clearInterval(re))):(re||(ie=se.now(),re=setInterval(pe,1e3)),ee=1,le(fe)))}function ge(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function me(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function ye(){}he.prototype=de.prototype={constructor:he,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?ue():+n)+(null==e?0:+e),this._next||Qt===this||(Qt?Qt._next=this:Jt=this,Qt=this),this._call=t,this._time=n,ve()},stop:function(){this._call&&(this._call=null,this._time=1/0,ve())}};var be=.7,we=1/be,Ce="\\s*([+-]?\\d+)\\s*",_e="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Se=/^#([0-9a-f]{3,8})$/,Ee=new RegExp(`^rgb\\(${Ce},${Ce},${Ce}\\)$`),Oe=new RegExp(`^rgb\\(${xe},${xe},${xe}\\)$`),Te=new RegExp(`^rgba\\(${Ce},${Ce},${Ce},${_e}\\)$`),Ie=new RegExp(`^rgba\\(${xe},${xe},${xe},${_e}\\)$`),Me=new RegExp(`^hsl\\(${_e},${xe},${xe}\\)$`),Le=new RegExp(`^hsla\\(${_e},${xe},${xe},${_e}\\)$`),ke={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ae(){return this.rgb().formatHex()}function Re(){return this.rgb().formatRgb()}function De(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Se.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Pe(e):3===n?new ze(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Ne(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Ne(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ee.exec(t))?new ze(e[1],e[2],e[3],1):(e=Oe.exec(t))?new ze(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Te.exec(t))?Ne(e[1],e[2],e[3],e[4]):(e=Ie.exec(t))?Ne(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Me.exec(t))?Ve(e[1],e[2]/100,e[3]/100,1):(e=Le.exec(t))?Ve(e[1],e[2]/100,e[3]/100,e[4]):ke.hasOwnProperty(t)?Pe(ke[t]):"transparent"===t?new ze(NaN,NaN,NaN,0):null}function Pe(t){return new ze(t>>16&255,t>>8&255,255&t,1)}function Ne(t,e,n,r){return r<=0&&(t=e=n=NaN),new ze(t,e,n,r)}function Be(t,e,n,r){return 1===arguments.length?((i=t)instanceof ye||(i=De(i)),i?new ze((i=i.rgb()).r,i.g,i.b,i.opacity):new ze):new ze(t,e,n,null==r?1:r);var i}function ze(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Fe(){return`#${Ge(this.r)}${Ge(this.g)}${Ge(this.b)}`}function He(){const t=je(this.opacity);return`${1===t?"rgb(":"rgba("}${We(this.r)}, ${We(this.g)}, ${We(this.b)}${1===t?")":`, ${t})`}`}function je(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function We(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ge(t){return((t=We(t))<16?"0":"")+t.toString(16)}function Ve(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ue(t,e,n,r)}function $e(t){if(t instanceof Ue)return new Ue(t.h,t.s,t.l,t.opacity);if(t instanceof ye||(t=De(t)),!t)return new Ue;if(t instanceof Ue)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Ue(a,s,l,t.opacity)}function Ue(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Ye(t){return(t=(t||0)%360)<0?t+360:t}function Xe(t){return Math.max(0,Math.min(1,t||0))}function qe(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}ge(ye,De,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ae,formatHex:Ae,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return $e(this).formatHsl()},formatRgb:Re,toString:Re}),ge(ze,Be,me(ye,{brighter(t){return t=null==t?we:Math.pow(we,t),new ze(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?be:Math.pow(be,t),new ze(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ze(We(this.r),We(this.g),We(this.b),je(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Fe,formatHex:Fe,formatHex8:function(){return`#${Ge(this.r)}${Ge(this.g)}${Ge(this.b)}${Ge(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:He,toString:He})),ge(Ue,function(t,e,n,r){return 1===arguments.length?$e(t):new Ue(t,e,n,null==r?1:r)},me(ye,{brighter(t){return t=null==t?we:Math.pow(we,t),new Ue(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?be:Math.pow(be,t),new Ue(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ze(qe(t>=240?t-240:t+120,i,r),qe(t,i,r),qe(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Ue(Ye(this.h),Xe(this.s),Xe(this.l),je(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=je(this.opacity);return`${1===t?"hsl(":"hsla("}${Ye(this.h)}, ${100*Xe(this.s)}%, ${100*Xe(this.l)}%${1===t?")":`, ${t})`}`}}));var Ke=t=>()=>t;function Ze(t){return 1===(t=+t)?Je:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Ke(isNaN(e)?n:e)}}function Je(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Ke(isNaN(t)?e:t)}var Qe=function t(e){var n=Ze(e);function r(t,e){var r=n((t=Be(t)).r,(e=Be(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Je(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function tn(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function en(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function nn(t,e){return(en(e)?tn:rn)(t,e)}function rn(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=hn(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function on(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function an(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function sn(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=hn(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var ln=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,un=new RegExp(ln.source,"g");function cn(t,e){var n,r,i,o=ln.lastIndex=un.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=ln.exec(t))&&(r=un.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:an(n,r)})),o=un.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function hn(t,e){var n,r=typeof e;return null==e||"boolean"===r?Ke(e):("number"===r?an:"string"===r?(n=De(e))?(e=n,Qe):cn:e instanceof De?Qe:e instanceof Date?on:en(e)?tn:Array.isArray(e)?rn:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?sn:an)(t,e)}function dn(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function fn(t){return t*t*t}function pn(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var vn=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),gn=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),mn=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),yn=Math.PI,bn=yn/2;function wn(t){return(1-Math.cos(yn*t))/2}function Cn(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function _n(t){return((t*=2)<=1?Cn(1-t):2-Cn(t-1))/2}function xn(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Sn=4/11,En=6/11,On=8/11,Tn=9/11,In=10/11,Mn=21/22,Ln=7.5625;function kn(t){return(t=+t)<Sn?Ln*t*t:t<On?Ln*(t-=En)*t+.75:t<In?Ln*(t-=Tn)*t+.9375:Ln*(t-=Mn)*t+.984375}var An=1.70158,Rn=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(An),Dn=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(An),Pn=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(An),Nn=2*Math.PI,Bn=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Nn);function i(t){return e*Cn(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*Nn)},i.period=function(n){return t(e,n)},i}(1,.3),zn=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Nn);function i(t){return 1-e*Cn(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*Nn)},i.period=function(n){return t(e,n)},i}(1,.3),Fn=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Nn);function i(t){return((t=2*t-1)<0?e*Cn(-t)*Math.sin((r-t)/n):2-e*Cn(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*Nn)},i.period=function(n){return t(e,n)},i}(1,.3),Hn=Object.freeze({__proto__:null,easeLinear:function(t){return+t},easeQuad:dn,easeQuadIn:function(t){return t*t},easeQuadOut:function(t){return t*(2-t)},easeQuadInOut:dn,easeCubic:pn,easeCubicIn:fn,easeCubicOut:function(t){return--t*t*t+1},easeCubicInOut:pn,easePoly:mn,easePolyIn:vn,easePolyOut:gn,easePolyInOut:mn,easeSin:wn,easeSinIn:function(t){return 1===+t?1:1-Math.cos(t*bn)},easeSinOut:function(t){return Math.sin(t*bn)},easeSinInOut:wn,easeExp:_n,easeExpIn:function(t){return Cn(1-+t)},easeExpOut:function(t){return 1-Cn(t)},easeExpInOut:_n,easeCircle:xn,easeCircleIn:function(t){return 1-Math.sqrt(1-t*t)},easeCircleOut:function(t){return Math.sqrt(1- --t*t)},easeCircleInOut:xn,easeBounce:kn,easeBounceIn:function(t){return 1-kn(1-t)},easeBounceOut:kn,easeBounceInOut:function(t){return((t*=2)<=1?1-kn(1-t):kn(t-1)+1)/2},easeBack:Pn,easeBackIn:Rn,easeBackOut:Dn,easeBackInOut:Pn,easeElastic:zn,easeElasticIn:Bn,easeElasticOut:zn,easeElasticInOut:Fn}),jn={};var Wn=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},Gn=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},Vn=[1,0,0,0,1,0,0,0,1];function $n(t,e,n){var r,i=e.startTime;if(n<i+e.delay||e._paused)return!1;var o,a=e.duration,s=e.easing,l=jn[(o=s).toLowerCase()]||Hn[o];if(n=n-i-e.delay,e.repeat)r=l(r=n%a/a);else{if(!((r=n/a)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=l(r)}if(e.onFrame){var u=e.onFrame(r);t.attr(u)}else!function(t,e,n){var r={},i=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var a;for(var s in o)if(!A(i[s],o[s]))if("path"===s){var l=o[s],u=i[s];l.length>u.length?(l=z(o[s]),u=z(i[s]),u=lt(u,l),u=ht(u,l),e.fromAttrs.path=u,e.toAttrs.path=l):e.pathFormatted||(l=z(o[s]),u=z(i[s]),u=ht(u,l),e.fromAttrs.path=u,e.toAttrs.path=l,e.pathFormatted=!0),r[s]=[];for(var c=0;c<l.length;c++){for(var h=l[c],d=u[c],f=[],v=0;v<h.length;v++)x(h[v])&&d&&x(d[v])?(a=hn(d[v],h[v]),f.push(a(n))):f.push(h[v]);r[s].push(f)}}else if("matrix"===s){var g=nn(i[s]||Vn,o[s]||Vn)(n);r[s]=g}else Wn(s)&&Gn(o[s])?r[s]=o[s]:p(o[s])||(a=hn(i[s],o[s]),r[s]=a(n));t.attr(r)}}(t,e,r);return!1}var Un=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,r=this;this.timer=de(function(i){if(r.current=i,r.animators.length>0){for(var o=r.animators.length-1;o>=0;o--)if((t=r.animators[o]).destroyed)r.removeAnimator(o);else{if(!t.isAnimatePaused())for(var a=(e=t.get("animations")).length-1;a>=0;a--)n=e[a],$n(t,n,i)&&(e.splice(a,1),n.callback&&n.callback());0===e.length&&r.removeAnimator(o)}r.canvas.get("autoDraw")||r.canvas.draw()}})},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach(function(e){e.stopAnimate(t)}),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),Yn=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Xn(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function qn(t,e,n){if(n.bubbles){var r=void 0,i=!1;if("mouseenter"===e?(r=n.fromShape,i=!0):"mouseleave"===e&&(i=!0,r=n.toShape),t.isCanvas()&&i)return;if(r&&mt(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var Kn,Zn=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");y(Yn,function(n){e.addEventListener(n,t._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");y(Yn,function(n){e.removeEventListener(n,t._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,r,i,o){var a=new ft(t,e);return a.fromShape=i,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(r),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],o=!1;if(i)i.call(this,n,r,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(o||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,l=n.timeStamp-this.mousedownTimeStamp,u=a.clientX-t.clientX,c=a.clientY-t.clientY;l>120||u*u+c*c>40?s&&s.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,o){var a=this._getEventObj(t,e,n,r,i,o);if(r){a.shape=r,Xn(r,t,a);for(var s=r.getParent();s;)s.emitDelegation(t,a),a.propagationStopped||qn(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{Xn(this.canvas,t,a)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),Jn=Kn?Mt(Kn):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new Et:"undefined"!=typeof navigator?Mt(navigator.userAgent):"undefined"!=typeof process&&process.version?new _t(process.version.slice(1)):null,Qn=Jn&&"firefox"===Jn.name,tr=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return o(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");_(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new Zn({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new Un(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");gt&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");gt&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(Qn&&!v(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!v(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(te),er=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},e}(te),nr=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,o=t.maxY;if(e){var a=Ht(e,[t.minX,t.minY]),s=Ht(e,[t.maxX,t.minY]),l=Ht(e,[t.minX,t.maxY]),u=Ht(e,[t.maxX,t.maxY]);n=Math.min(a[0],s[0],l[0],u[0]),i=Math.max(a[0],s[0],l[0],u[0]),r=Math.min(a[1],s[1],l[1],u[1]),o=Math.max(a[1],s[1],l[1],u[1])}var c=this.attrs;if(c.shadowColor){var h=c.shadowBlur,d=void 0===h?0:h,f=c.shadowOffsetX,p=void 0===f?0:f,v=c.shadowOffsetY,g=void 0===v?0:v,m=n-d+p,y=i+d+p,b=r-d+g,w=o+d+g;n=Math.min(n,m),i=Math.max(i,y),r=Math.min(r,b),o=Math.max(o,w)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:o,width:i-n,height:o-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],o=(i=this.invertFromMatrix(i))[0],a=i[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(r&&r.isHit(o,a))return!0}return!1},e}(Yt),rr=new Map;function ir(t,e){rr.set(t,e)}function or(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}}function ar(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}}function sr(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function lr(t,e){return Math.abs(t-e)<.001}function ur(t,e){var n=C(t),r=C(e);return{x:n,y:r,width:w(t)-n,height:w(e)-r}}function cr(t){return(t+2*Math.PI)%(2*Math.PI)}var hr={box:function(t,e,n,r){return ur([t,n],[e,r])},length:function(t,e,n,r){return sr(t,e,n,r)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,r,i,o){var a=(n-t)*(i-t)+(r-e)*(o-e);return a<0?sr(t,e,i,o):a>(n-t)*(n-t)+(r-e)*(r-e)?sr(n,r,i,o):this.pointToLine(t,e,n,r,i,o)},pointToLine:function(t,e,n,r,i,o){var a=[n-t,r-e];if(function(t,e){return t[0]===e[0]&&t[1]===e[1]}(a,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var s=[-a[1],a[0]];!function(t,e){var n=e[0],r=e[1],i=n*n+r*r;i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i}(s,s);var l=[i-t,o-e];return Math.abs(function(t,e){return t[0]*e[0]+t[1]*e[1]}(l,s))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function dr(t,e,n,r,i,o){var a,s=1/0,l=[n,r],u=20;o&&o>200&&(u=o/10);for(var c=1/u,h=c/10,d=0;d<=u;d++){var f=d*c,p=[i.apply(null,t.concat([f])),i.apply(null,e.concat([f]))];(y=sr(l[0],l[1],p[0],p[1]))<s&&(a=f,s=y)}if(0===a)return{x:t[0],y:e[0]};if(1===a){var v=t.length;return{x:t[v-1],y:e[v-1]}}s=1/0;for(d=0;d<32&&!(h<1e-4);d++){var g=a-h,m=a+h,y=(p=[i.apply(null,t.concat([g])),i.apply(null,e.concat([g]))],sr(l[0],l[1],p[0],p[1]));if(g>=0&&y<s)a=g,s=y;else{var b=[i.apply(null,t.concat([m])),i.apply(null,e.concat([m]))],w=sr(l[0],l[1],b[0],b[1]);m<=1&&w<s?(a=m,s=w):h*=.5}}return{x:i.apply(null,t.concat([a])),y:i.apply(null,e.concat([a]))}}function fr(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function pr(t,e,n){var r=t+n-2*e;if(lr(r,0))return[.5];var i=(t-e)/r;return i<=1&&i>=0?[i]:[]}function vr(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function gr(t,e,n,r,i,o,a){var s=fr(t,n,i,a),l=fr(e,r,o,a),u=hr.pointAt(t,e,n,r,a),c=hr.pointAt(n,r,i,o,a);return[[t,e,u.x,u.y,s,l],[s,l,c.x,c.y,i,o]]}function mr(t,e,n,r,i,o,a){if(0===a)return(sr(t,e,n,r)+sr(n,r,i,o)+sr(t,e,i,o))/2;var s=gr(t,e,n,r,i,o,.5),l=s[0],u=s[1];return l.push(a-1),u.push(a-1),mr.apply(null,l)+mr.apply(null,u)}var yr={box:function(t,e,n,r,i,o){var a=pr(t,n,i)[0],s=pr(e,r,o)[0],l=[t,i],u=[e,o];return void 0!==a&&l.push(fr(t,n,i,a)),void 0!==s&&u.push(fr(e,r,o,s)),ur(l,u)},length:function(t,e,n,r,i,o){return mr(t,e,n,r,i,o,3)},nearestPoint:function(t,e,n,r,i,o,a,s){return dr([t,n,i],[e,r,o],a,s,fr)},pointDistance:function(t,e,n,r,i,o,a,s){var l=this.nearestPoint(t,e,n,r,i,o,a,s);return sr(l.x,l.y,a,s)},interpolationAt:fr,pointAt:function(t,e,n,r,i,o,a){return{x:fr(t,n,i,a),y:fr(e,r,o,a)}},divide:function(t,e,n,r,i,o,a){return gr(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,i,o,a){var s=vr(t,n,i,a),l=vr(e,r,o,a);return cr(Math.atan2(l,s))}};function br(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i}function wr(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n))}function Cr(t,e,n,r){var i,o,a,s=-3*t+9*e-9*n+3*r,l=6*t-12*e+6*n,u=3*e-3*t,c=[];if(lr(s,0))lr(l,0)||(i=-u/l)>=0&&i<=1&&c.push(i);else{var h=l*l-4*s*u;lr(h,0)?c.push(-l/(2*s)):h>0&&(o=(-l-(a=Math.sqrt(h)))/(2*s),(i=(-l+a)/(2*s))>=0&&i<=1&&c.push(i),o>=0&&o<=1&&c.push(o))}return c}function _r(t,e,n,r,i,o,a,s,l){var u=br(t,n,i,a,l),c=br(e,r,o,s,l),h=hr.pointAt(t,e,n,r,l),d=hr.pointAt(n,r,i,o,l),f=hr.pointAt(i,o,a,s,l),p=hr.pointAt(h.x,h.y,d.x,d.y,l),v=hr.pointAt(d.x,d.y,f.x,f.y,l);return[[t,e,h.x,h.y,p.x,p.y,u,c],[u,c,v.x,v.y,f.x,f.y,a,s]]}function xr(t,e,n,r,i,o,a,s,l){if(0===l)return function(t,e){for(var n=0,r=t.length,i=0;i<r;i++)n+=sr(t[i],e[i],t[(i+1)%r],e[(i+1)%r]);return n/2}([t,n,i,a],[e,r,o,s]);var u=_r(t,e,n,r,i,o,a,s,.5),c=u[0],h=u[1];return c.push(l-1),h.push(l-1),xr.apply(null,c)+xr.apply(null,h)}var Sr={extrema:Cr,box:function(t,e,n,r,i,o,a,s){for(var l=[t,a],u=[e,s],c=Cr(t,n,i,a),h=Cr(e,r,o,s),d=0;d<c.length;d++)l.push(br(t,n,i,a,c[d]));for(d=0;d<h.length;d++)u.push(br(e,r,o,s,h[d]));return ur(l,u)},length:function(t,e,n,r,i,o,a,s){return xr(t,e,n,r,i,o,a,s,3)},nearestPoint:function(t,e,n,r,i,o,a,s,l,u,c){return dr([t,n,i,a],[e,r,o,s],l,u,br,c)},pointDistance:function(t,e,n,r,i,o,a,s,l,u,c){var h=this.nearestPoint(t,e,n,r,i,o,a,s,l,u,c);return sr(h.x,h.y,l,u)},interpolationAt:br,pointAt:function(t,e,n,r,i,o,a,s,l){return{x:br(t,n,i,a,l),y:br(e,r,o,s,l)}},divide:function(t,e,n,r,i,o,a,s,l){return _r(t,e,n,r,i,o,a,s,l)},tangentAngle:function(t,e,n,r,i,o,a,s,l){var u=wr(t,n,i,a,l),c=wr(e,r,o,s,l);return cr(Math.atan2(c,u))}};function Er(t,e,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+t}function Or(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}var Tr=function(t,e,n,r,i,o,a){for(var s=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),l=1/0,u=-1/0,c=[o,a],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var d=s+h;o<a?o<d&&d<a&&c.push(d):a<d&&d<o&&c.push(d)}for(h=0;h<c.length;h++){var f=Er(t,0,n,r,i,c[h]);f<l&&(l=f),f>u&&(u=f)}var p=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),v=1/0,g=-1/0,m=[o,a];for(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var y=p+h;o<a?o<y&&y<a&&m.push(y):a<y&&y<o&&m.push(y)}for(h=0;h<m.length;h++){var b=Or(0,e,n,r,i,m[h]);b<v&&(v=b),b>g&&(g=b)}return{x:l,y:v,width:u-l,height:g-v}};var Ir=function(t){return function(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],i=t[n+1];e+=sr(r[0],r[1],i[0],i[1])}return e}(t)};function Mr(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function Lr(t,e){var n=t.get("startArrowShape"),r=t.get("endArrowShape");return n&&(e=Mr(e,n.getCanvasBBox())),r&&(e=Mr(e,r.getCanvasBBox())),e}var kr=null;function Ar(){if(!kr){var t=document.createElement("canvas");t.width=1,t.height=1,kr=t.getContext("2d")}return kr}function Rr(t,e,n){var r=1;if(_(t)&&(r=t.split("\n").length),r>1){var i=function(t,e){return e?e-t:.14*t}(e,n);return e*r+i*(r-1)}return e}function Dr(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight;return[t.fontStyle,t.fontVariant,r,e+"px",n].join(" ").trim()}var Pr=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,Nr=/[^\s\,]+/gi;var Br="\t\n\v\f\r   ᠎              \u2028\u2029",zr=new RegExp("([a-z])["+Br+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Br+"]*,?["+Br+"]*)+)","ig"),Fr=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Br+"]*,?["+Br+"]*","ig");var Hr=/[a-z]/;function jr(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function Wr(t){var e=function(t){if(!t)return null;if(g(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(zr,function(t,r,i){var o=[],a=r.toLowerCase();if(i.replace(Fr,function(t,e){e&&o.push(+e)}),"m"===a&&o.length>2&&(n.push([r].concat(o.splice(0,2))),a="l",r="m"===r?"l":"L"),"o"===a&&1===o.length&&n.push([r,o[0]]),"r"===a)n.push([r].concat(o));else for(;o.length>=e[a]&&(n.push([r].concat(o.splice(0,e[a]))),e[a]););return""}),n}(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r<e.length;r++){var i=e[r][0];if(Hr.test(i)||["V","H","T","S"].indexOf(i)>=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,l=0,u=0,c=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(l=a=+h[1],u=s=+h[2],c++,o[0]=["M",a,s]);r=c;for(var d=e.length;r<d;r++){var f=e[r],p=o[r-1],v=[],m=(i=f[0]).toUpperCase();if(i!==m)switch(v[0]=m,m){case"A":v[1]=f[1],v[2]=f[2],v[3]=f[3],v[4]=f[4],v[5]=f[5],v[6]=+f[6]+a,v[7]=+f[7]+s;break;case"V":v[1]=+f[1]+s;break;case"H":v[1]=+f[1]+a;break;case"M":l=+f[1]+a,u=+f[2]+s,v[1]=l,v[2]=u;break;default:for(var y=1,b=f.length;y<b;y++)v[y]=+f[y]+(y%2?a:s)}else v=e[r];switch(m){case"Z":a=+l,s=+u;break;case"H":v=["L",a=v[1],s];break;case"V":v=["L",a,s=v[1]];break;case"T":a=v[1],s=v[2];var w=jr([p[1],p[2]],[p[3],p[4]]);v=["Q",w[0],w[1],a,s];break;case"S":a=v[v.length-2],s=v[v.length-1];var C=p.length,_=jr([p[C-4],p[C-3]],[p[C-2],p[C-1]]);v=["C",_[0],_[1],v[1],v[2],a,s];break;case"M":l=v[v.length-2],u=v[v.length-1];break;default:a=v[v.length-2],s=v[v.length-1]}o.push(v)}return o}function Gr(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Vr(t,e){return Gr(t)*Gr(e)?(t[0]*e[0]+t[1]*e[1])/(Gr(t)*Gr(e)):1}function $r(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Vr(t,e))}function Ur(t,e){return t[0]===e[0]&&t[1]===e[1]}function Yr(t,e){var n=e[1],r=e[2],i=S(O(e[3]),2*Math.PI),o=e[4],a=e[5],s=t[0],l=t[1],u=e[6],c=e[7],h=Math.cos(i)*(s-u)/2+Math.sin(i)*(l-c)/2,d=-1*Math.sin(i)*(s-u)/2+Math.cos(i)*(l-c)/2,f=h*h/(n*n)+d*d/(r*r);f>1&&(n*=Math.sqrt(f),r*=Math.sqrt(f));var p=n*n*(d*d)+r*r*(h*h),v=p?Math.sqrt((n*n*(r*r)-p)/p):1;o===a&&(v*=-1),isNaN(v)&&(v=0);var g=r?v*n*d/r:0,m=n?v*-r*h/n:0,y=(s+u)/2+Math.cos(i)*g-Math.sin(i)*m,b=(l+c)/2+Math.sin(i)*g+Math.cos(i)*m,w=[(h-g)/n,(d-m)/r],C=[(-1*h-g)/n,(-1*d-m)/r],_=$r([1,0],w),x=$r(w,C);return Vr(w,C)<=-1&&(x=Math.PI),Vr(w,C)>=1&&(x=0),0===a&&x>0&&(x-=2*Math.PI),1===a&&x<0&&(x+=2*Math.PI),{cx:y,cy:b,rx:Ur(t,[u,c])?0:n,ry:Ur(t,[u,c])?0:r,startAngle:_,endAngle:_+x,xRotation:i,arcFlag:o,sweepFlag:a}}function Xr(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function qr(t){t=function(t){var e=t||[];return g(e)?e:_(e)?(y(e=e.match(Pr),function(t,n){if((t=t.match(Nr))[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}y(t,function(e,n){isNaN(e)||(t[n]=+e)}),e[n]=t}),e):void 0}(t);for(var e=[],n=null,r=null,i=null,o=0,a=t.length,s=0;s<a;s++){var l=t[s];r=t[s+1];var u=l[0],c={command:u,prePoint:n,params:l,startTangent:null,endTangent:null};switch(u){case"M":i=[l[1],l[2]],o=s;break;case"A":var h=Yr(n,l);c.arcParams=h}if("Z"===u)n=i,r=t[o+1];else{var d=l.length;n=[l[d-2],l[d-1]]}r&&"Z"===r[0]&&(r=t[o],e[o]&&(e[o].prePoint=n)),c.currentPoint=n,e[o]&&Ur(n,e[o].currentPoint)&&(e[o].prePoint=c.prePoint);var f=r?[r[r.length-2],r[r.length-1]]:null;c.nextPoint=f;var p=c.prePoint;if(["L","H","V"].includes(u))c.startTangent=[p[0]-n[0],p[1]-n[1]],c.endTangent=[n[0]-p[0],n[1]-p[1]];else if("Q"===u){var v=[l[1],l[2]];c.startTangent=[p[0]-v[0],p[1]-v[1]],c.endTangent=[n[0]-v[0],n[1]-v[1]]}else if("T"===u){v=Xr((w=e[s-1]).currentPoint,p);"Q"===w.command?(c.command="Q",c.startTangent=[p[0]-v[0],p[1]-v[1]],c.endTangent=[n[0]-v[0],n[1]-v[1]]):(c.command="TL",c.startTangent=[p[0]-n[0],p[1]-n[1]],c.endTangent=[n[0]-p[0],n[1]-p[1]])}else if("C"===u){var m=[l[1],l[2]],b=[l[3],l[4]];c.startTangent=[p[0]-m[0],p[1]-m[1]],c.endTangent=[n[0]-b[0],n[1]-b[1]],0===c.startTangent[0]&&0===c.startTangent[1]&&(c.startTangent=[m[0]-b[0],m[1]-b[1]]),0===c.endTangent[0]&&0===c.endTangent[1]&&(c.endTangent=[b[0]-m[0],b[1]-m[1]])}else if("S"===u){var w;m=Xr((w=e[s-1]).currentPoint,p),b=[l[1],l[2]];"C"===w.command?(c.command="C",c.startTangent=[p[0]-m[0],p[1]-m[1]],c.endTangent=[n[0]-b[0],n[1]-b[1]]):(c.command="SQ",c.startTangent=[p[0]-b[0],p[1]-b[1]],c.endTangent=[n[0]-b[0],n[1]-b[1]])}else if("A"===u){var C=.001,x=c.arcParams||{},S=x.cx,E=void 0===S?0:S,O=x.cy,T=void 0===O?0:O,I=x.rx,M=void 0===I?0:I,L=x.ry,k=void 0===L?0:L,A=x.sweepFlag,R=void 0===A?0:A,D=x.startAngle,P=void 0===D?0:D,N=x.endAngle,B=void 0===N?0:N;0===R&&(C*=-1);var z=M*Math.cos(P-C)+E,F=k*Math.sin(P-C)+T;c.startTangent=[z-i[0],F-i[1]];var H=M*Math.cos(P+B+C)+E,j=k*Math.sin(P+B-C)+T;c.endTangent=[p[0]-H,p[1]-j]}e.push(c)}return e}function Kr(t,e){var n,r,i,o=t.prePoint,a=t.currentPoint,s=t.nextPoint,l=Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2),u=Math.pow(a[0]-s[0],2)+Math.pow(a[1]-s[1],2),c=Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2),h=Math.acos((l+u-c)/(2*Math.sqrt(l)*Math.sqrt(u)));if(!h||0===Math.sin(h)||(n=h,r=0,void 0===i&&(i=1e-5),Math.abs(n-r)<i))return{xExtra:0,yExtra:0};var d=Math.abs(Math.atan2(s[1]-a[1],s[0]-a[0])),f=Math.abs(Math.atan2(s[0]-a[0],s[1]-a[1]));return d=d>Math.PI/2?Math.PI-d:d,f=f>Math.PI/2?Math.PI-f:f,{xExtra:Math.cos(h/2-d)*(e/2*(1/Math.sin(h/2)))-e/2||0,yExtra:Math.cos(f-h/2)*(e/2*(1/Math.sin(h/2)))-e/2||0}}function Zr(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function Jr(t,e,n,r,i,o){return i>=t&&i<=t+n&&o>=e&&o<=e+r}function Qr(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function ti(t,e){return t[0]===e[0]&&t[1]===e[1]}ir("rect",or),ir("image",or),ir("circle",ar),ir("marker",ar),ir("polyline",function(t){for(var e=t.attr().points,n=[],r=[],i=0;i<e.length;i++){var o=e[i];n.push(o[0]),r.push(o[1])}var a=ur(n,r),s=a.x,l=a.y,u={minX:s,minY:l,maxX:s+a.width,maxY:l+a.height};return{x:(u=Lr(t,u)).minX,y:u.minY,width:u.maxX-u.minX,height:u.maxY-u.minY}}),ir("polygon",function(t){for(var e=t.attr().points,n=[],r=[],i=0;i<e.length;i++){var o=e[i];n.push(o[0]),r.push(o[1])}return ur(n,r)}),ir("text",function(t){var e=t.attr(),n=e.x,r=e.y,i=e.text,o=e.fontSize,a=e.lineHeight,s=e.font;s||(s=Dr(e));var l,u=function(t,e){var n=Ar(),r=0;return v(t)||""===t||(n.save(),n.font=e,_(t)&&t.includes("\n")?y(t.split("\n"),function(t){var e=n.measureText(t).width;r<e&&(r=e)}):r=n.measureText(t).width,n.restore()),r}(i,s);if(u){var c=e.textAlign,h=e.textBaseline,d=Rr(i,o,a),f={x:n,y:r-d};c&&("end"===c||"right"===c?f.x-=u:"center"===c&&(f.x-=u/2)),h&&("top"===h?f.y+=d:"middle"===h&&(f.y+=d/2)),l={x:f.x,y:f.y,width:u,height:d}}else l={x:n,y:r,width:0,height:0};return l}),ir("path",function(t){var e=t.attr(),n=e.path,r=e.stroke?e.lineWidth:0,i=function(t,e){for(var n=[],r=[],i=[],o=0;o<t.length;o++){var a=(v=t[o]).currentPoint,s=v.params,l=v.prePoint,u=void 0;switch(v.command){case"Q":u=yr.box(l[0],l[1],s[1],s[2],s[3],s[4]);break;case"C":u=Sr.box(l[0],l[1],s[1],s[2],s[3],s[4],s[5],s[6]);break;case"A":var c=v.arcParams;u=Tr(c.cx,c.cy,c.rx,c.ry,c.xRotation,c.startAngle,c.endAngle);break;default:n.push(a[0]),r.push(a[1])}u&&(v.box=u,n.push(u.x,u.x+u.width),r.push(u.y,u.y+u.height)),e&&("L"===v.command||"M"===v.command)&&v.prePoint&&v.nextPoint&&i.push(v)}n=n.filter(function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0}),r=r.filter(function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0});var h=C(n),d=C(r),f=w(n),p=w(r);if(0===i.length)return{x:h,y:d,width:f-h,height:p-d};for(o=0;o<i.length;o++){var v;(a=(v=i[o]).currentPoint)[0]===h?h-=Kr(v,e).xExtra:a[0]===f&&(f+=Kr(v,e).xExtra),a[1]===d?d-=Kr(v,e).yExtra:a[1]===p&&(p+=Kr(v,e).yExtra)}return{x:h,y:d,width:f-h,height:p-d}}(t.get("segments")||qr(n),r),o=i.x,a=i.y,s={minX:o,minY:a,maxX:o+i.width,maxY:a+i.height};return{x:(s=Lr(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}}),ir("line",function(t){var e=t.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a={minX:Math.min(n,i),maxX:Math.max(n,i),minY:Math.min(r,o),maxY:Math.max(r,o)};return{x:(a=Lr(t,a)).minX,y:a.minY,width:a.maxX-a.minX,height:a.maxY-a.minY}}),ir("ellipse",function(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;return{x:n-i,y:r-o,width:2*i,height:2*o}});var ei=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,ni=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,ri=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,ii=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function oi(t,e){y(t.match(ii),function(t){var n=t.split(":");e.addColorStop(n[0],n[1])})}function ai(t,e,n){var r=e.getBBox();if(isNaN(r.x)||isNaN(r.y)||isNaN(r.width)||isNaN(r.height))return n;if(_(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return function(t,e,n){var r,i,o=ei.exec(n),a=parseFloat(o[1])%360*(Math.PI/180),s=o[2],l=e.getBBox();a>=0&&a<.5*Math.PI?(r={x:l.minX,y:l.minY},i={x:l.maxX,y:l.maxY}):.5*Math.PI<=a&&a<Math.PI?(r={x:l.maxX,y:l.minY},i={x:l.minX,y:l.maxY}):Math.PI<=a&&a<1.5*Math.PI?(r={x:l.maxX,y:l.maxY},i={x:l.minX,y:l.minY}):(r={x:l.minX,y:l.maxY},i={x:l.maxX,y:l.minY});var u=Math.tan(a),c=u*u,h=(i.x-r.x+u*(i.y-r.y))/(c+1)+r.x,d=u*(i.x-r.x+u*(i.y-r.y))/(c+1)+r.y,f=t.createLinearGradient(r.x,r.y,h,d);return oi(s,f),f}(t,e,n);if("r"===n[0])return function(t,e,n){var r=ni.exec(n),i=parseFloat(r[1]),o=parseFloat(r[2]),a=parseFloat(r[3]),s=r[4];if(0===a){var l=s.match(ii);return l[l.length-1].split(":")[1]}var u=e.getBBox(),c=u.maxX-u.minX,h=u.maxY-u.minY,d=Math.sqrt(c*c+h*h)/2,f=t.createRadialGradient(u.minX+c*i,u.minY+h*o,0,u.minX+c/2,u.minY+h/2,a*d);return oi(s,f),f}(t,e,n);if("p"===n[0])return function(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var r,i,o=ri.exec(n),a=o[1],s=o[2];function l(){r=t.createPattern(i,a),e.set("pattern",r),e.set("patternSource",n)}switch(a){case"a":a="repeat";break;case"x":a="repeat-x";break;case"y":a="repeat-y";break;default:a="no-repeat"}return i=new Image,s.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=s,i.complete?l():(i.onload=l,i.src=i.src),r}(t,e,n)}return n}return n instanceof CanvasPattern?n:void 0}function si(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function li(t,e){return si(t)*si(e)?(t[0]*e[0]+t[1]*e[1])/(si(t)*si(e)):1}function ui(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(li(t,e))}function ci(t,e){var n=e[1],r=e[2],i=S(O(e[3]),2*Math.PI),o=e[4],a=e[5],s=t[0],l=t[1],u=e[6],c=e[7],h=Math.cos(i)*(s-u)/2+Math.sin(i)*(l-c)/2,d=-1*Math.sin(i)*(s-u)/2+Math.cos(i)*(l-c)/2,f=h*h/(n*n)+d*d/(r*r);f>1&&(n*=Math.sqrt(f),r*=Math.sqrt(f));var p=n*n*(d*d)+r*r*(h*h),v=p?Math.sqrt((n*n*(r*r)-p)/p):1;o===a&&(v*=-1),isNaN(v)&&(v=0);var g=r?v*n*d/r:0,m=n?v*-r*h/n:0,y=(s+u)/2+Math.cos(i)*g-Math.sin(i)*m,b=(l+c)/2+Math.sin(i)*g+Math.cos(i)*m,w=[(h-g)/n,(d-m)/r],C=[(-1*h-g)/n,(-1*d-m)/r],_=ui([1,0],w),x=ui(w,C);return li(w,C)<=-1&&(x=Math.PI),li(w,C)>=1&&(x=0),0===a&&x>0&&(x-=2*Math.PI),1===a&&x<0&&(x+=2*Math.PI),{cx:y,cy:b,rx:ti(t,[u,c])?0:n,ry:ti(t,[u,c])?0:r,startAngle:_,endAngle:_+x,xRotation:i,arcFlag:o,sweepFlag:a}}var hi=Math.sin,di=Math.cos,fi=Math.atan2,pi=Math.PI;function vi(t,e,n,r,i,o,a){var s=e.stroke,l=e.lineWidth,u=fi(r-o,n-i),c=new eo({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*di(pi/6)+","+10*hi(pi/6)+" L0,0 L"+10*di(pi/6)+",-"+10*hi(pi/6),stroke:s,lineWidth:l}});c.translate(i,o),c.rotateAtPoint(i,o,u),t.set(a?"startArrowShape":"endArrowShape",c)}function gi(t,e,n,r,i,o,l){var u=e.startArrow,c=e.endArrow,h=e.stroke,d=e.lineWidth,f=l?u:c,p=f.d,v=f.fill,g=f.stroke,m=f.lineWidth,y=s(f,["d","fill","stroke","lineWidth"]),b=fi(r-o,n-i);p&&(i-=di(b)*p,o-=hi(b)*p);var w=new eo({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:a(a({},y),{stroke:g||h,lineWidth:m||d,fill:v})});w.translate(i,o),w.rotateAtPoint(i,o,b),t.set(l?"startArrowShape":"endArrowShape",w)}function mi(t,e,n,r,i){var o=fi(r-e,n-t);return{dx:di(o)*i,dy:hi(o)*i}}function yi(t,e,n,r,i,o){"object"==typeof e.startArrow?gi(t,e,n,r,i,o,!0):e.startArrow?vi(t,e,n,r,i,o,!0):t.set("startArrowShape",null)}function bi(t,e,n,r,i,o){"object"==typeof e.endArrow?gi(t,e,n,r,i,o,!1):e.endArrow?vi(t,e,n,r,i,o,!1):t.set("startArrowShape",null)}var wi={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function Ci(t,e){var n=e.attr();for(var r in n){var i=n[r],o=wi[r]?wi[r]:r;"matrix"===o&&i?t.transform(i[0],i[1],i[3],i[4],i[6],i[7]):"lineDash"===o&&t.setLineDash?g(i)&&t.setLineDash(i):("strokeStyle"===o||"fillStyle"===o?i=ai(t,e,i):"globalAlpha"===o&&(i*=t.globalAlpha),t[o]=i)}}function _i(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];i.cfg.visible?i.draw(t,n):i.skipDraw()}}function xi(t,e,n){var r=t.get("refreshElements");y(r,function(e){if(e!==t)for(var n=e.cfg.parent;n&&n!==t&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent}),r[0]===t?Oi(e):Si(e,n)}function Si(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.cfg.visible)if(r.cfg.hasChanged)r.cfg.refresh=!0,r.isGroup()&&Oi(r.cfg.children);else if(r.cfg.refresh)r.isGroup()&&Si(r.cfg.children,e);else{var i=Ti(r,e);r.cfg.refresh=i,i&&r.isGroup()&&Si(r.cfg.children,e)}}}function Ei(t){for(var e=0;e<t.length;e++){var n=t[e];n.cfg.hasChanged=!1,n.isGroup()&&!n.destroyed&&Ei(n.cfg.children)}}function Oi(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.visible&&(r.cfg.refresh=!0,r.isGroup()&&Oi(r.get("children")))}}function Ti(t,e){var n=t.cfg.cacheCanvasBBox;return t.cfg.isInView&&n&&Qr(n,e)}function Ii(t,e,n,r){var i=n.path,o=n.startArrow,a=n.endArrow;if(i){var s=[0,0],l=[0,0],u={dx:0,dy:0};e.beginPath();for(var c=0;c<i.length;c++){var h=i[c],d=h[0];if(0===c&&o&&o.d)u=mi((f=t.getStartTangent())[0][0],f[0][1],f[1][0],f[1][1],o.d);else if(c===i.length-2&&"Z"===i[c+1][0]&&a&&a.d){if("Z"===i[c+1][0])u=mi((f=t.getEndTangent())[0][0],f[0][1],f[1][0],f[1][1],a.d)}else if(c===i.length-1&&a&&a.d){var f;if("Z"!==i[0])u=mi((f=t.getEndTangent())[0][0],f[0][1],f[1][0],f[1][1],a.d)}var p=u.dx,v=u.dy;switch(d){case"M":e.moveTo(h[1]-p,h[2]-v),l=[h[1],h[2]];break;case"L":e.lineTo(h[1]-p,h[2]-v);break;case"Q":e.quadraticCurveTo(h[1],h[2],h[3]-p,h[4]-v);break;case"C":e.bezierCurveTo(h[1],h[2],h[3],h[4],h[5]-p,h[6]-v);break;case"A":var g=void 0;r?(g=r[c])||(g=ci(s,h),r[c]=g):g=ci(s,h);var m=g.cx,y=g.cy,b=g.rx,w=g.ry,C=g.startAngle,_=g.endAngle,x=g.xRotation,S=g.sweepFlag;if(e.ellipse)e.ellipse(m,y,b,w,x,C,_,1-S);else{var E=b>w?b:w,O=b>w?1:b/w,T=b>w?w/b:1;e.translate(m,y),e.rotate(x),e.scale(O,T),e.arc(0,0,E,C,_,1-S),e.scale(1/O,1/T),e.rotate(-x),e.translate(-m,-y)}break;case"Z":e.closePath()}if("Z"===d)s=l;else{var I=h.length;s=[h[I-2],h[I-1]]}}}}function Mi(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))}function Li(t){var e,n,r;if(t.destroyed)e=t._cacheCanvasBBox;else{var i=t.get("cacheCanvasBBox"),o=i&&!(!i.width||!i.height),a=t.getCanvasBBox(),s=a&&!(!a.width||!a.height);o&&s?(r=a,e=(n=i)&&r?{minX:Math.min(n.minX,r.minX),minY:Math.min(n.minY,r.minY),maxX:Math.max(n.maxX,r.maxX),maxY:Math.max(n.maxY,r.maxY)}:n||r):o?e=i:s&&(e=a)}return e}var ki=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.onCanvasChange=function(t){Mi(this,t)},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),Ci(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];y(t,function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))});var r=null;if(e.length){var i=C(e),o=w(e),a=C(n),s=w(n);r={minX:i,minY:a,x:i,y:a,maxX:o,maxY:s,width:o-i,height:s-a};var l=this.cfg.canvas;if(l){var u=l.getViewRange();this.set("isInView",Qr(r,u))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),Ci(t,this),this._applyClip(t,this.getClip()),_i(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(er),Ai=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return a(a({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return ki},e.prototype.onCanvasChange=function(t){Mi(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=function(t){return rr.get(t)}(t),r=n(this),i=e/2,o=r.x-i,a=r.y-i,s=r.x+r.width+i,l=r.y+r.height+i;return{x:o,minX:o,y:a,minY:a,width:r.width+e,height:r.height+e,maxX:s,maxY:l}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),Ci(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);if(!Qr(e,this.getCanvasBBox()))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),Ci(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=Qr(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&(v(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(v(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(nr),Ri=Ai,Di=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return a(a({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=o.x,s=o.y,l=o.r,u=i/2,c=Zr(a,s,t,e);return r&&n?c<=l+u:r?c<=l:!!n&&(c>=l-u&&c<=l+u)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(Ri);function Pi(t,e,n,r){return t/(n*n)+e/(r*r)}var Ni=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return a(a({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=i/2,s=o.x,l=o.y,u=o.rx,c=o.ry,h=(t-s)*(t-s),d=(e-l)*(e-l);return r&&n?Pi(h,d,u+a,c+a)<=1:r?Pi(h,d,u,c)<=1:!!n&&(Pi(h,d,u-a,c-a)>=1&&Pi(h,d,u+a,c+a)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,o,0,0,2*Math.PI,!1);else{var a=i>o?i:o,s=i>o?1:i/o,l=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(s,l),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(Ri);function Bi(t){return t instanceof HTMLElement&&_(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var zi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return a(a({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(_(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):Bi(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,a=e.sx,s=e.sy,l=e.swidth,u=e.sheight,c=e.img;(c instanceof Image||Bi(c))&&(v(a)||v(s)||v(l)||v(u)?t.drawImage(c,n,r,i,o):t.drawImage(c,a,s,l,u,n,r,i,o))},e}(Ri),Fi=zi;function Hi(t,e,n,r,i,o,a){var s=Math.min(t,n),l=Math.max(t,n),u=Math.min(e,r),c=Math.max(e,r),h=i/2;return o>=s-h&&o<=l+h&&a>=u-h&&a<=c+h&&hr.pointToLine(t,e,n,r,o,a)<=i/2}var ji=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return a(a({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=t.startArrow,a=t.endArrow;o&&yi(this,t,r,i,e,n),a&&bi(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr();return Hi(o.x1,o.y1,o.x2,o.y2,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.startArrow,s=e.endArrow,l={dx:0,dy:0},u={dx:0,dy:0};a&&a.d&&(l=mi(n,r,i,o,e.startArrow.d)),s&&s.d&&(u=mi(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+l.dx,r+l.dy),t.lineTo(i-u.dx,o-u.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return hr.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return hr.pointAt(n,r,i,o,t)},e}(Ri),Wi=ji,Gi={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},Vi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return v(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,o=r.y,a=r.symbol||"circle",s=this._getR(r);if(p(a))n=Wr(n=(t=a)(i,o,s));else{if(!(t=e.Symbols[a]))return null;n=t(i,o,s)}return n},e.prototype.createPath=function(t){Ii(this,t,{path:this._getPath()},this.get("paramsCache"))},e.Symbols=Gi,e}(Ri),$i=Vi;function Ui(t,e,n){var r=Ar();return t.createPath(r),r.isPointInPath(e,n)}function Yi(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function Xi(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function qi(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],s=t[(o+1)%i];if(Xi(a,s,[e,n]))return!0;Yi(a[1]-n)>0!=Yi(s[1]-n)>0&&Yi(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}function Ki(t,e,n,r,i,o,a,s){var l=(Math.atan2(s-e,a-t)+2*Math.PI)%(2*Math.PI);if(l<r||l>i)return!1;var u={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return Zr(u.x,u.y,a,s)<=o/2}var Zi=zt;var Ji=a({hasArc:function(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i=t[r][0];if("C"===i||"A"===i||"Q"===i){e=!0;break}}return e},extractPolygons:function(t){for(var e=t.length,n=[],r=[],i=[],o=0;o<e;o++){var a=t[o],s=a[0];"M"===s?(i.length&&(r.push(i),i=[]),i.push([a[1],a[2]])):"Z"===s?i.length&&(n.push(i),i=[]):i.push([a[1],a[2]])}return i.length>0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var o=!1,a=e/2,s=0;s<t.length;s++){var l=t[s],u=l.currentPoint,c=l.params,h=l.prePoint,d=l.box;if(!d||Jr(d.x-a,d.y-a,d.width+e,d.height+e,n,r)){switch(l.command){case"L":case"Z":o=Hi(h[0],h[1],u[0],u[1],e,n,r);break;case"Q":o=yr.pointDistance(h[0],h[1],c[1],c[2],c[3],c[4],n,r)<=e/2;break;case"C":o=Sr.pointDistance(h[0],h[1],c[1],c[2],c[3],c[4],c[5],c[6],n,r,i)<=e/2;break;case"A":var f=l.arcParams,p=f.cx,v=f.cy,g=f.rx,m=f.ry,y=f.startAngle,b=f.endAngle,w=f.xRotation,C=[n,r,1],_=g>m?g:m;Rt(C,C,Zi(null,[["t",-p,-v],["r",-w],["s",1/(g>m?1:g/m),1/(g>m?m/g:1)]])),o=Ki(0,0,_,y,b,e,C[0],C[1])}if(o)break}}return o}},dt);function Qi(t,e,n){for(var r=!1,i=0;i<t.length;i++){if(r=qi(t[i],e,n))break}return r}var to=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return a(a({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=Wr(t);var e=Ji.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=qr(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t,e=this.attr(),n=e.startArrow,r=e.endArrow;n&&yi(this,e,(t=this.getStartTangent())[0][0],t[0][1],t[1][0],t[1][1]);r&&bi(this,e,(t=this.getEndTangent())[0][0],t[0][1],t[1][0],t[1][1])},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.getSegments(),a=this.get("hasArc"),s=!1;if(n){var l=this.getTotalLength();s=Ji.isPointInStroke(o,i,t,e,l)}if(!s&&r)if(a)s=Ui(this,t,e);else{var u=this.attr("path"),c=Ji.extractPolygons(u);s=Qi(c.polygons,t,e)||Qi(c.polylines,t,e)}return s},e.prototype.createPath=function(t){Ii(this,t,this.attr(),this.get("paramsCache"))},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return v(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,r=this.get("tCache");r||(this._calculateCurve(),this._setTcache(),r=this.get("tCache"));var i=this.get("curve");if(!r||0===r.length)return i?{x:i[0][1],y:i[0][2]}:null;y(r,function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)});var o=i[n];if(v(o)||v(n))return null;var a=o.length,s=i[n+1];return Sr.pointAt(o[a-2],o[a-1],s[1],s[2],s[3],s[4],s[5],s[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",Ji.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,o=0,a=[],s=this.get("curve");s&&(y(s,function(t,e){n=s[e+1],r=t.length,n&&(i+=Sr.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)}),this.set("totalLength",i),0!==i?(y(s,function(l,u){n=s[u+1],r=l.length,n&&((t=[])[0]=o/i,e=Sr.length(l[r-2],l[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e||0,t[1]=o/i,a.push(t))}),this.set("tCache",a)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?(t.push([i[0]-o[0],i[1]-o[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(Ri),eo=to;function no(t,e,n,r,i){var o=t.length;if(o<2)return!1;for(var a=0;a<o-1;a++){if(Hi(t[a][0],t[a][1],t[a+1][0],t[a+1][1],e,n,r))return!0}if(i){var s=t[0],l=t[o-1];if(Hi(s[0],s[1],l[0],l[1],e,n,r))return!0}return!1}var ro=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr().points,a=!1;return n&&(a=no(o,i,t,e,!0)),!a&&r&&(a=qi(o,t,e)),a},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n<e.length;n++){var r=e[n];0===n?t.moveTo(r[0],r[1]):t.lineTo(r[0],r[1])}t.closePath()}},e}(Ri),io=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return a(a({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,r=e.startArrow,i=e.endArrow,o=n.length,a=n[0][0],s=n[0][1],l=n[o-1][0],u=n[o-1][1];r&&yi(this,t,n[1][0],n[1][1],a,s),i&&bi(this,t,n[o-2][0],n[o-2][1],l,u)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!(!n||!i)&&no(this.attr().points,i,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,r=e.startArrow,i=e.endArrow,o=n.length;if(!(n.length<2)){var a,s=n[0][0],l=n[0][1],u=n[o-1][0],c=n[o-1][1];if(r&&r.d)s+=(a=mi(s,l,n[1][0],n[1][1],r.d)).dx,l+=a.dy;if(i&&i.d)u-=(a=mi(n[o-2][0],n[o-2][1],u,c,i.d)).dx,c-=a.dy;t.beginPath(),t.moveTo(s,l);for(var h=0;h<o-1;h++){var d=n[h];t.lineTo(d[0],d[1])}t.lineTo(u,c)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return v(e)?(this.set("totalLength",Ir(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),y(i,function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}),hr.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];y(t,function(a,s){t[s+1]&&((n=[])[0]=i/e,r=hr.length(a[0],a[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,o.push(n))}),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(Ri),oo=io;var ao=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return a(a({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=o.x,s=o.y,l=o.width,u=o.height,c=o.radius;if(c){var h=!1;return n&&(h=function(t,e,n,r,i,o,a,s){return Hi(t+i,e,t+n-i,e,o,a,s)||Hi(t+n,e+i,t+n,e+r-i,o,a,s)||Hi(t+n-i,e+r,t+i,e+r,o,a,s)||Hi(t,e+r-i,t,e+i,o,a,s)||Ki(t+n-i,e+i,i,1.5*Math.PI,2*Math.PI,o,a,s)||Ki(t+n-i,e+r-i,i,0,.5*Math.PI,o,a,s)||Ki(t+i,e+r-i,i,.5*Math.PI,Math.PI,o,a,s)||Ki(t+i,e+i,i,Math.PI,1.5*Math.PI,o,a,s)}(a,s,l,u,c,i,t,e)),!h&&r&&(h=Ui(this,t,e)),h}var d=i/2;return r&&n?Jr(a-d,s-d,l+d,u+d,t,e):r?Jr(a,s,l,u,t,e):n?function(t,e,n,r,i,o,a){var s=i/2;return Jr(t-s,e-s,n,i,o,a)||Jr(t+n-s,e-s,i,r,o,a)||Jr(t+s,e+r-s,n,i,o,a)||Jr(t-s,e+s,i,r,o,a)}(a,s,l,u,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,a=e.radius;if(t.beginPath(),0===a)t.rect(n,r,i,o);else{var s=function(t){var e=0,n=0,r=0,i=0;return g(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,[e,n,r,i]}(a),l=s[0],u=s[1],c=s[2],h=s[3];t.moveTo(n+l,r),t.lineTo(n+i-u,r),0!==u&&t.arc(n+i-u,r+u,u,-Math.PI/2,0),t.lineTo(n+i,r+o-c),0!==c&&t.arc(n+i-c,r+o-c,c,0,Math.PI/2),t.lineTo(n+h,r+o),0!==h&&t.arc(n+h,r+o-h,h,Math.PI/2,Math.PI),t.lineTo(n,r+l),0!==l&&t.arc(n+l,r+l,l,Math.PI,1.5*Math.PI),t.closePath()}},e}(Ri),so=ao,lo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return a(a({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=Dr(t)},e.prototype._setText=function(t){var e=null;_(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,o=i.textBaseline,a=i.x,s=i.y,l=1*i.fontSize,u=this._getSpaceingY(),c=Rr(i.text,i.fontSize,i.lineHeight);y(e,function(e,i){r=s+i*(u+l)-c+l,"middle"===o&&(r+=c-l-(c-l)/2),"top"===o&&(r+=c-l),v(e)||(n?t.fillText(e,a,r):t.strokeText(e,a,r))})},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var a=n.text;v(a)||(e?t.fillText(a,r,i):t.strokeText(a,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&(v(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(v(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(Ri),uo=lo;function co(t,e,n){var r,i,o=t.getTotalMatrix();if(o){var a=(r=[e,n,1],(i=o)?Ht(jt(i),r):r);return[a[0],a[1]]}return[e,n]}function ho(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!yt(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var r=co(t,e,n),i=r[0],o=r[1];if(t.isClipped(i,o))return!1}var a=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=a.minX&&e<=a.maxX&&n>=a.minY&&n<=a.maxY}function fo(t,e,n){if(!ho(t,e,n))return null;for(var r=null,i=t.getChildren(),o=i.length-1;o>=0;o--){var a=i[o];if(a.isGroup())r=fo(a,e,n);else if(ho(a,e,n)){var s=a,l=co(a,e,n),u=l[0],c=l[1];s.isInShape(u,c)&&(r=a)}if(r)break}return r}var po,vo,go,mo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return ki},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||(window?window.devicePixelRatio:1);return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*e,i.height=o*n,o>1&&r.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?fo(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();e.length&&e[0]===this?t=n:(t=function(t){if(!t.length)return null;var e=[],n=[],r=[],i=[];return y(t,function(t){var o=Li(t);o&&(e.push(o.minX),n.push(o.minY),r.push(o.maxX),i.push(o.maxY))}),{minX:C(e),minY:C(n),maxX:w(r),maxY:w(i)}}(e),t&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=function(t,e){return t&&e&&Qr(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}(t,n))));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t,e=this.get("drawFrame");e&&(t=e,(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),Ci(t,this),_i(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),Ci(t,this),xi(this,n,r),_i(t,n,r),t.restore()):e.length&&Ei(e),y(e,function(t){t.get("hasChanged")&&t.set("hasChanged",!1)}),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t,e=this,n=this.get("drawFrame");n||(t=function(){e.get("localRefresh")?e._drawRegion():e._drawAll(),e.set("drawFrame",null)},n=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t),this.set("drawFrame",n))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(tr),yo="$$value$$",bo="$$extra$$",wo="$$origin$$",Co="$$extra_column$$",_o="$$total$$",xo="$$multi$$",So="$$series_number$$",Eo="$$empty_field_value$$",Oo="$$empty_extra_placeholder$$";!function(t){t.DATA_CELL_CLICK_EVENT="interaction:data-cell-click",t.MERGED_CELLS_CLICK_EVENT="interaction:merged-cells-click",t.CORNER_TEXT_CLICK_EVENT="interaction:corner-cell-text-click",t.ROW_COLUMN_CLICK_EVENT="interaction:row-column-click",t.ROW_TEXT_CLICK_EVENT="interaction:row-text-click",t.HOVER_EVENT="interaction:hover",t.TREND_ICON_CLICK="interaction:trend-icon-click"}(po||(po={})),function(t){t.MOUSE_DOWN="mousedown",t.MOUSE_MOVE="mousemove",t.MOUSE_OUT="mouseout",t.MOUSE_LEAVE="mouseleave",t.MOUSE_UP="mouseup",t.KEY_DOWN="keydown",t.KEY_UP="keyup",t.CLICK="click",t.HOVER="hover",t.DOUBLE_CLICK="dblclick",t.CONTEXT_MENU="contextmenu"}(vo||(vo={})),function(t){t.ROW_CELL_HOVER="row-cell:hover",t.ROW_CELL_CLICK="row-cell:click",t.ROW_CELL_DOUBLE_CLICK="row-cell:double-click",t.ROW_CELL_CONTEXT_MENU="row-cell:context-menu",t.ROW_CELL_MOUSE_DOWN="row-cell:mouse-down",t.ROW_CELL_MOUSE_UP="row-cell:mouse-up",t.ROW_CELL_MOUSE_MOVE="row-cell:mouse-move",t.ROW_CELL_COLLAPSE_TREE_ROWS="row-cell:collapsed-tree-rows",t.ROW_CELL_SCROLL="row-cell:scroll",t.ROW_CELL_BRUSH_SELECTION="row-cell:brush-selection",t.COL_CELL_HOVER="col-cell:hover",t.COL_CELL_CLICK="col-cell:click",t.COL_CELL_DOUBLE_CLICK="col-cell:double-click",t.COL_CELL_CONTEXT_MENU="col-cell:context-menu",t.COL_CELL_MOUSE_DOWN="col-cell:mouse-down",t.COL_CELL_MOUSE_UP="col-cell:mouse-up",t.COL_CELL_MOUSE_MOVE="col-cell:mouse-move",t.COL_CELL_BRUSH_SELECTION="col-cell:brush-selection",t.DATA_CELL_HOVER="data-cell:hover",t.DATA_CELL_CLICK="data-cell:click",t.DATA_CELL_DOUBLE_CLICK="data-cell:double-click",t.DATA_CELL_CONTEXT_MENU="data-cell:context-menu",t.DATA_CELL_MOUSE_UP="data-cell:mouse-up",t.DATA_CELL_MOUSE_DOWN="data-cell:mouse-down",t.DATA_CELL_MOUSE_MOVE="data-cell:mouse-move",t.DATA_CELL_TREND_ICON_CLICK="data-cell:trend-icon-click",t.DATA_CELL_BRUSH_SELECTION="data-cell:brush-selection",t.DATA_CELL_SELECT_MOVE="data-cell:select-move",t.CORNER_CELL_HOVER="corner-cell:hover",t.CORNER_CELL_CLICK="corner-cell:click",t.CORNER_CELL_DOUBLE_CLICK="corner-cell:double-click",t.CORNER_CELL_CONTEXT_MENU="corner-cell:context-menu",t.CORNER_CELL_MOUSE_DOWN="corner-cell:mouse-down",t.CORNER_CELL_MOUSE_UP="corner-cell:mouse-up",t.CORNER_CELL_MOUSE_MOVE="corner-cell:mouse-move",t.MERGED_CELLS_HOVER="merged-cells:hover",t.MERGED_CELLS_CLICK="merged-cells:click",t.MERGED_CELLS_DOUBLE_CLICK="merged-cells:double-click",t.MERGED_CELLS_CONTEXT_MENU="merged-cell:context-menu",t.MERGED_CELLS_MOUSE_DOWN="merged-cells:mouse-down",t.MERGED_CELLS_MOUSE_UP="merged-cells:mouse-up",t.MERGED_CELLS_MOUSE_MOVE="merged-cells:mouse-move",t.RANGE_SORT="sort:range-sort",t.RANGE_SORTED="sort:range-sorted",t.RANGE_FILTER="filter:range-filter",t.RANGE_FILTERED="filter:range-filtered",t.LAYOUT_AFTER_HEADER_LAYOUT="layout:after-header-layout",t.LAYOUT_CELL_SCROLL="layout:cell-scroll",t.LAYOUT_PAGINATION="layout:pagination",t.LAYOUT_COLLAPSE_ROWS="layout:collapsed-rows",t.LAYOUT_AFTER_COLLAPSE_ROWS="layout:after-collapsed-rows",t.LAYOUT_AFTER_REAL_DATA_CELL_RENDER="layout:after-real-data-cell-render",t.LAYOUT_TREE_ROWS_COLLAPSE_ALL="layout:toggle-collapse-all",t.LAYOUT_COLS_EXPANDED="layout:table-col-expanded",t.LAYOUT_COLS_HIDDEN="layout:table-col-hidden",t.LAYOUT_AFTER_RENDER="layout:after-render",t.LAYOUT_BEFORE_RENDER="layout:before-render",t.LAYOUT_DESTROY="layout:destroy",t.LAYOUT_RESIZE="layout:resize",t.LAYOUT_RESIZE_SERIES_WIDTH="layout:resize-series-width",t.LAYOUT_RESIZE_ROW_WIDTH="layout:resize-row-width",t.LAYOUT_RESIZE_ROW_HEIGHT="layout:resize-row-height",t.LAYOUT_RESIZE_COL_WIDTH="layout:resize-column-width",t.LAYOUT_RESIZE_COL_HEIGHT="layout:resize-column-height",t.LAYOUT_RESIZE_TREE_WIDTH="layout:resize-tree-width",t.LAYOUT_RESIZE_MOUSE_DOWN="layout:resize:mouse-down",t.LAYOUT_RESIZE_MOUSE_MOVE="layout:resize:mouse-move",t.LAYOUT_RESIZE_MOUSE_UP="layout:resize-mouse-up",t.GLOBAL_KEYBOARD_DOWN="global:keyboard-down",t.GLOBAL_KEYBOARD_UP="global:keyboard-up",t.GLOBAL_COPIED="global:copied",t.GLOBAL_MOUSE_UP="global:mouse-up",t.GLOBAL_MOUSE_MOVE="global:mouse-move",t.GLOBAL_ACTION_ICON_CLICK="global:action-icon-click",t.GLOBAL_ACTION_ICON_HOVER="global:action-icon-hover",t.GLOBAL_ACTION_ICON_HOVER_OFF="global:action-icon-hover-off",t.GLOBAL_CONTEXT_MENU="global:context-menu",t.GLOBAL_CLICK="global:click",t.GLOBAL_DOUBLE_CLICK="global:double-click",t.GLOBAL_SELECTED="global:selected",t.GLOBAL_HOVER="global:hover",t.GLOBAL_RESET="global:reset",t.GLOBAL_LINK_FIELD_JUMP="global:link-field-jump",t.GLOBAL_SCROLL="global:scroll"}(go||(go={}));var To,Io="mergedCellsGroup",Mo="frozenRowGroup",Lo="frozenColGroup",ko="frozenTrailingRowGroup",Ao="frozenTrailingColGroup",Ro="frozenTopGroup",Do="frozenBottomGroup",Po="rowResizeAreaGroup",No="rowFrozenResizeAreaGroup",Bo="frozenSplitLine",zo="rowIndexResizeAreaGroup",Fo="cornerResizeAreaGroup",Ho="colResizeAreaGroup",jo="colFrozenResizeAreaGroup",Wo="gridGroup",Go="horizontal-resize-area-",Vo="root",$o="[&]",Uo="-";!function(t){t.Line="line",t.Bar="bar",t.Bullet="bullet"}(To||(To={}));var Yo,Xo,qo,Ko="square",Zo="...",Jo="antv-s2",Qo="valueRanges",ta={},ea="#000000",na="#FFFFFF",ra={data:[],totalData:[],fields:{rows:[],columns:[],values:[],customTreeItems:[],valueInCols:!0},meta:[],sortParams:[],filterParams:[]};!function(t){t.ROW="row",t.COL="col",t.TRAILING_ROW="trailingRow",t.TRAILING_COL="trailingCol",t.SCROLL="scroll",t.TOP="top",t.BOTTOM="bottom"}(Xo||(Xo={})),function(t){t.FROZEN_COL="frozenCol",t.FROZEN_ROW="frozenRow",t.FROZEN_TRAILING_COL="frozenTrailingCol",t.FROZEN_TRAILING_ROW="frozenTrailingRow"}(qo||(qo={}));var ia,oa,aa,sa=((Yo={})[Xo.ROW]="frozenRowGroup",Yo[Xo.COL]="frozenColGroup",Yo[Xo.TRAILING_COL]="frozenTrailingColGroup",Yo[Xo.TRAILING_ROW]="frozenTrailingRowGroup",Yo[Xo.SCROLL]="panelScrollGroup",Yo[Xo.TOP]="frozenTopGroup",Yo[Xo.BOTTOM]="frozenBottomGroup",Yo);!function(t){t.CORNER_CELL_CLICK="cornerCellClick",t.DATA_CELL_CLICK="dataCellClick",t.MERGED_CELLS_CLICK="mergedCellsClick",t.ROW_COLUMN_CLICK="rowColumnClick",t.ROW_TEXT_CLICK="rowTextClick",t.HOVER="hover",t.BRUSH_SELECTION="brushSelection",t.ROW_BRUSH_SELECTION="rowBrushSelection",t.COL_BRUSH_SELECTION="colBrushSelection",t.COL_ROW_RESIZE="rowColResize",t.DATA_CELL_MULTI_SELECTION="dataCellMultiSelection",t.RANGE_SELECTION="rangeSelection",t.SELECTED_CELL_MOVE="selectedCellMove"}(ia||(ia={})),function(t){t.ALL_SELECTED="allSelected",t.SELECTED="selected",t.BRUSH_SELECTED="brushSelected",t.UNSELECTED="unselected",t.HOVER="hover",t.HOVER_FOCUS="hoverFocus",t.HIGHLIGHT="highlight",t.SEARCH_RESULT="searchResult",t.PREPARE_SELECT="prepareSelect"}(oa||(oa={})),function(t){t.DATA_CELL="dataCell",t.HEADER_CELL="headerCell",t.ROW_CELL="rowCell",t.COL_CELL="colCell",t.CORNER_CELL="cornerCell",t.MERGED_CELL="mergedCell"}(aa||(aa={}));var la,ua,ca,ha,da={textOpacity:"fillOpacity",backgroundOpacity:"fillOpacity",backgroundColor:"fill",borderOpacity:"strokeOpacity",borderColor:"stroke",borderWidth:"lineWidth",opacity:"opacity"},fa={textShape:["textOpacity"],textShapes:["textOpacity"],linkFieldShape:["opacity"],interactiveBgShape:["backgroundColor","backgroundOpacity"],interactiveBorderShape:["borderColor","borderOpacity","borderWidth"]},pa="interactionStateInfo";!function(t){t.CLICK="click",t.UN_DRAGGED="unDragged",t.DRAGGED="dragged"}(la||(la={})),function(t){t.SHIFT="Shift",t.COPY="c",t.ESC="Escape",t.META="Meta",t.CONTROL="Control",t.ARROW_UP="ArrowUp",t.ARROW_DOWN="ArrowDown",t.ARROW_LEFT="ArrowLeft",t.ARROW_RIGHT="ArrowRight"}(ua||(ua={})),function(t){t.ASC="ASC",t.DESC="DESC"}(ca||(ca={})),function(t){t.HOVER="hover",t.CLICK="click",t.BRUSH_SELECTION="brushSelection",t.ROW_BRUSH_SELECTION="rowBrushSelection",t.COL_BRUSH_SELECTION="colBrushSelection",t.MULTI_SELECTION="multiSelection",t.RESIZE="resize"}(ha||(ha={}));var va,ga,ma,ya={x:{value:0,scroll:!1},y:{value:0,scroll:!1}};!function(t){t.CONTENT="content",t.CANVAS="canvas"}(va||(va={})),function(t){t.SCROLL_UP="scrollUp",t.SCROLL_DOWN="scrollDown"}(ga||(ga={})),function(t){t[t.SCROLL_UP=-1]="SCROLL_UP",t[t.SCROLL_DOWN=1]="SCROLL_DOWN"}(ma||(ma={}));var ba,wa,Ca;!function(t){t.Horizontal="col",t.Vertical="row"}(ba||(ba={})),function(t){t.Field="field",t.Cell="cell",t.Tree="tree",t.Series="series"}(wa||(wa={})),function(t){t.ALL="all",t.CURRENT="current"}(Ca||(Ca={}));var _a;!function(t){t.Adaptive="adaptive",t.ColAdaptive="colAdaptive",t.Compact="compact"}(_a||(_a={}));var xa={layoutWidthType:_a.Adaptive,showTreeLeafNodeAlignDot:!1,collapsedRows:{},collapsedCols:{},cellCfg:{width:96,height:30},rowCfg:{width:null,widthByField:{},heightByField:{}},colCfg:{height:30,widthByFieldValue:{},heightByField:{}},device:"pc"},Sa={width:600,height:480,debug:!1,hierarchyType:"grid",conditions:{},totals:{},tooltip:{showTooltip:!1,autoAdjustBoundary:"body",operation:{hiddenColumns:!1,trend:!1,sort:!1,menus:[]}},interaction:{linkFields:[],hiddenColumnFields:[],selectedCellsSpotlight:!1,hoverHighlight:!0,hoverFocus:{duration:800},scrollSpeedRatio:{horizontal:1,vertical:1},autoResetSheetStyle:!0,brushSelection:{data:!0,row:!1,col:!1},multiSelection:!0,rangeSelection:!0,scrollbarPosition:va.CONTENT,resize:{rowCellVertical:!0,cornerCellHorizontal:!0,colCellHorizontal:!0,colCellVertical:!0,rowResizeType:Ca.ALL},eventListenerOptions:!1,selectedCellHighlight:!1,overscrollBehavior:"auto"},showSeriesNumber:!1,customSVGIcons:[],showDefaultHeaderActionIcon:!1,headerActionIcons:[],style:xa,frozenRowHeader:!0,frozenRowCount:0,frozenColCount:0,frozenTrailingRowCount:0,frozenTrailingColCount:0,hdAdapter:!0,cornerText:"",cornerExtraFieldText:"",placeholder:Uo,supportCSSTransform:!1,devicePixelRatio:window.devicePixelRatio},Ea="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,Oa="object"==typeof self&&self&&self.Object===Object&&self,Ta=Ea||Oa||Function("return this")(),Ia=Ta.Symbol,Ma=Object.prototype,La=Ma.hasOwnProperty,ka=Ma.toString,Aa=Ia?Ia.toStringTag:void 0;var Ra=Object.prototype.toString;var Da=Ia?Ia.toStringTag:void 0;function Pa(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Da&&Da in Object(t)?function(t){var e=La.call(t,Aa),n=t[Aa];try{t[Aa]=void 0;var r=!0}catch(t){}var i=ka.call(t);return r&&(e?t[Aa]=n:delete t[Aa]),i}(t):function(t){return Ra.call(t)}(t)}function Na(t){return null!=t&&"object"==typeof t}function Ba(t){return"symbol"==typeof t||Na(t)&&"[object Symbol]"==Pa(t)}function za(t){return"number"==typeof t?t:Ba(t)?NaN:+t}function Fa(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var Ha=Array.isArray,ja=Ia?Ia.prototype:void 0,Wa=ja?ja.toString:void 0;function Ga(t){if("string"==typeof t)return t;if(Ha(t))return Fa(t,Ga)+"";if(Ba(t))return Wa?Wa.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Va(t,e){return function(n,r){var i;if(void 0===n&&void 0===r)return e;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Ga(n),r=Ga(r)):(n=za(n),r=za(r)),i=t(n,r)}return i}}var $a=Va(function(t,e){return t+e},0),Ua=/\s/;function Ya(t){for(var e=t.length;e--&&Ua.test(t.charAt(e)););return e}var Xa=/^\s+/;function qa(t){return t?t.slice(0,Ya(t)+1).replace(Xa,""):t}function Ka(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Za=/^[-+]0x[0-9a-f]+$/i,Ja=/^0b[01]+$/i,Qa=/^0o[0-7]+$/i,ts=parseInt;function es(t){if("number"==typeof t)return t;if(Ba(t))return NaN;if(Ka(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ka(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=qa(t);var n=Ja.test(t);return n||Qa.test(t)?ts(t.slice(2),n?2:8):Za.test(t)?NaN:+t}var ns=1/0;function rs(t){return t?(t=es(t))===ns||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function is(t){var e=rs(t),n=e%1;return e==e?n?e-n:e:0}function os(t){return t}function as(t){if(!Ka(t))return!1;var e=Pa(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var ss,ls=Ta["__core-js_shared__"],us=(ss=/[^.]+$/.exec(ls&&ls.keys&&ls.keys.IE_PROTO||""))?"Symbol(src)_1."+ss:"";var cs=Function.prototype.toString;function hs(t){if(null!=t){try{return cs.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var ds=/^\[object .+?Constructor\]$/,fs=Function.prototype,ps=Object.prototype,vs=fs.toString,gs=ps.hasOwnProperty,ms=RegExp("^"+vs.call(gs).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ys(t){return!(!Ka(t)||function(t){return!!us&&us in t}(t))&&(as(t)?ms:ds).test(hs(t))}function bs(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return ys(n)?n:void 0}var ws=bs(Ta,"WeakMap"),Cs=ws&&new ws,_s=Cs?function(t,e){return Cs.set(t,e),t}:os,xs=_s,Ss=Object.create,Es=function(){function t(){}return function(e){if(!Ka(e))return{};if(Ss)return Ss(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),Os=Es;function Ts(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=Os(t.prototype),r=t.apply(n,e);return Ka(r)?r:n}}function Is(t,e,n){switch(n.length){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)}var Ms=Math.max;function Ls(t,e,n,r){for(var i=-1,o=t.length,a=n.length,s=-1,l=e.length,u=Ms(o-a,0),c=Array(l+u),h=!r;++s<l;)c[s]=e[s];for(;++i<a;)(h||i<o)&&(c[n[i]]=t[i]);for(;u--;)c[s++]=t[i++];return c}var ks=Math.max;function As(t,e,n,r){for(var i=-1,o=t.length,a=-1,s=n.length,l=-1,u=e.length,c=ks(o-s,0),h=Array(c+u),d=!r;++i<c;)h[i]=t[i];for(var f=i;++l<u;)h[f+l]=e[l];for(;++a<s;)(d||i<o)&&(h[f+n[a]]=t[i++]);return h}function Rs(){}function Ds(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Ps(){}Ds.prototype=Os(Rs.prototype),Ds.prototype.constructor=Ds;var Ns=Cs?function(t){return Cs.get(t)}:Ps,Bs=Ns,zs={},Fs=Object.prototype.hasOwnProperty;function Hs(t){for(var e=t.name+"",n=zs[e],r=Fs.call(zs,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function js(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Ws(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function Gs(t){if(t instanceof Ds)return t.clone();var e=new js(t.__wrapped__,t.__chain__);return e.__actions__=Ws(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}js.prototype=Os(Rs.prototype),js.prototype.constructor=js;var Vs=Object.prototype.hasOwnProperty;function $s(t){if(Na(t)&&!Ha(t)&&!(t instanceof Ds)){if(t instanceof js)return t;if(Vs.call(t,"__wrapped__"))return Gs(t)}return new js(t)}function Us(t){var e=Hs(t),n=$s[e];if("function"!=typeof n||!(e in Ds.prototype))return!1;if(t===n)return!0;var r=Bs(n);return!!r&&t===r[0]}$s.prototype=Rs.prototype,$s.prototype.constructor=$s;var Ys=Date.now;function Xs(t){var e=0,n=0;return function(){var r=Ys(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var qs=Xs(xs),Ks=/\{\n\/\* \[wrapped with (.+)\] \*/,Zs=/,? & /;var Js=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Qs(t){return function(){return t}}var tl=function(){try{var t=bs(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),el=tl,nl=el?function(t,e){return el(t,"toString",{configurable:!0,enumerable:!1,value:Qs(e),writable:!0})}:os,rl=Xs(nl);function il(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function ol(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function al(t){return t!=t}function sl(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):ol(t,al,n)}function ll(t,e){return!!(null==t?0:t.length)&&sl(t,e,0)>-1}var ul=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];function cl(t,e,n){var r=e+"";return rl(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Js,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return il(ul,function(n){var r="_."+n[0];e&n[1]&&!ll(t,r)&&t.push(r)}),t.sort()}(function(t){var e=t.match(Ks);return e?e[1].split(Zs):[]}(r),n)))}function hl(t,e,n,r,i,o,a,s,l,u){var c=8&e;e|=c?32:64,4&(e&=~(c?64:32))||(e&=-4);var h=[t,e,i,c?o:void 0,c?a:void 0,c?void 0:o,c?void 0:a,s,l,u],d=n.apply(void 0,h);return Us(t)&&qs(d,h),d.placeholder=r,cl(d,t,e)}function dl(t){return t.placeholder}var fl=/^(?:0|[1-9]\d*)$/;function pl(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&fl.test(t))&&t>-1&&t%1==0&&t<e}var vl=Math.min;var gl="__lodash_placeholder__";function ml(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];a!==e&&a!==gl||(t[n]=gl,o[i++]=n)}return o}function yl(t,e,n,r,i,o,a,s,l,u){var c=128&e,h=1&e,d=2&e,f=24&e,p=512&e,v=d?void 0:Ts(t);return function g(){for(var m=arguments.length,y=Array(m),b=m;b--;)y[b]=arguments[b];if(f)var w=dl(g),C=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(y,w);if(r&&(y=Ls(y,r,i,f)),o&&(y=As(y,o,a,f)),m-=C,f&&m<u){var _=ml(y,w);return hl(t,e,yl,g.placeholder,n,y,_,s,l,u-m)}var x=h?n:this,S=d?x[t]:t;return m=y.length,s?y=function(t,e){for(var n=t.length,r=vl(e.length,n),i=Ws(t);r--;){var o=e[r];t[r]=pl(o,n)?i[o]:void 0}return t}(y,s):p&&m>1&&y.reverse(),c&&l<m&&(y.length=l),this&&this!==Ta&&this instanceof g&&(S=v||Ts(S)),S.apply(x,y)}}var bl="__lodash_placeholder__",wl=128,Cl=Math.min;var _l=Math.max;function xl(t,e,n,r,i,o,a,s){var l=2&e;if(!l&&"function"!=typeof t)throw new TypeError("Expected a function");var u=r?r.length:0;if(u||(e&=-97,r=i=void 0),a=void 0===a?a:_l(is(a),0),s=void 0===s?s:is(s),u-=i?i.length:0,64&e){var c=r,h=i;r=i=void 0}var d=l?void 0:Bs(t),f=[t,e,n,r,i,c,h,o,a,s];if(d&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,a=r==wl&&8==n||r==wl&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!a)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var s=e[3];if(s){var l=t[3];t[3]=l?Ls(l,s,e[4]):s,t[4]=l?ml(t[3],bl):e[4]}(s=e[5])&&(l=t[5],t[5]=l?As(l,s,e[6]):s,t[6]=l?ml(t[5],bl):e[6]),(s=e[7])&&(t[7]=s),r&wl&&(t[8]=null==t[8]?e[8]:Cl(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(f,d),t=f[0],e=f[1],n=f[2],r=f[3],i=f[4],!(s=f[9]=void 0===f[9]?l?0:t.length:_l(f[9]-u,0))&&24&e&&(e&=-25),e&&1!=e)p=8==e||16==e?function(t,e,n){var r=Ts(t);return function i(){for(var o=arguments.length,a=Array(o),s=o,l=dl(i);s--;)a[s]=arguments[s];var u=o<3&&a[0]!==l&&a[o-1]!==l?[]:ml(a,l);return(o-=u.length)<n?hl(t,e,yl,i.placeholder,void 0,a,u,void 0,void 0,n-o):Is(this&&this!==Ta&&this instanceof i?r:t,this,a)}}(t,e,s):32!=e&&33!=e||i.length?yl.apply(void 0,f):function(t,e,n,r){var i=1&e,o=Ts(t);return function e(){for(var a=-1,s=arguments.length,l=-1,u=r.length,c=Array(u+s),h=this&&this!==Ta&&this instanceof e?o:t;++l<u;)c[l]=r[l];for(;s--;)c[l++]=arguments[++a];return Is(h,i?n:this,c)}}(t,e,n,r);else var p=function(t,e,n){var r=1&e,i=Ts(t);return function e(){return(this&&this!==Ta&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return cl((d?xs:qs)(p,f),t,e)}function Sl(t,e,n){return e=n?void 0:e,xl(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function El(t,e,n){"__proto__"==e&&el?el(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Ol(t,e){return t===e||t!=t&&e!=e}var Tl=Object.prototype.hasOwnProperty;function Il(t,e,n){var r=t[e];Tl.call(t,e)&&Ol(r,n)&&(void 0!==n||e in t)||El(t,e,n)}function Ml(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=r?r(n[s],t[s],s,n,t):void 0;void 0===l&&(l=t[s]),i?El(n,s,l):Il(n,s,l)}return n}var Ll=Math.max;function kl(t,e,n){return e=Ll(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Ll(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(a),Is(t,this,s)}}function Al(t,e){return rl(kl(t,e,os),t+"")}function Rl(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Dl(t){return null!=t&&Rl(t.length)&&!as(t)}function Pl(t,e,n){if(!Ka(n))return!1;var r=typeof e;return!!("number"==r?Dl(n)&&pl(e,n.length):"string"==r&&e in n)&&Ol(n[e],t)}function Nl(t){return Al(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&Pl(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e})}var Bl=Object.prototype;function zl(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Bl)}function Fl(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Hl(t){return Na(t)&&"[object Arguments]"==Pa(t)}var jl=Object.prototype,Wl=jl.hasOwnProperty,Gl=jl.propertyIsEnumerable,Vl=Hl(function(){return arguments}())?Hl:function(t){return Na(t)&&Wl.call(t,"callee")&&!Gl.call(t,"callee")},$l=Vl;function Ul(){return!1}var Yl="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xl=Yl&&t&&!t.nodeType&&t,ql=Xl&&Xl.exports===Yl?Ta.Buffer:void 0,Kl=(ql?ql.isBuffer:void 0)||Ul,Zl={};function Jl(t){return function(e){return t(e)}}Zl["[object Float32Array]"]=Zl["[object Float64Array]"]=Zl["[object Int8Array]"]=Zl["[object Int16Array]"]=Zl["[object Int32Array]"]=Zl["[object Uint8Array]"]=Zl["[object Uint8ClampedArray]"]=Zl["[object Uint16Array]"]=Zl["[object Uint32Array]"]=!0,Zl["[object Arguments]"]=Zl["[object Array]"]=Zl["[object ArrayBuffer]"]=Zl["[object Boolean]"]=Zl["[object DataView]"]=Zl["[object Date]"]=Zl["[object Error]"]=Zl["[object Function]"]=Zl["[object Map]"]=Zl["[object Number]"]=Zl["[object Object]"]=Zl["[object RegExp]"]=Zl["[object Set]"]=Zl["[object String]"]=Zl["[object WeakMap]"]=!1;var Ql="object"==typeof exports&&exports&&!exports.nodeType&&exports,tu=Ql&&t&&!t.nodeType&&t,eu=tu&&tu.exports===Ql&&Ea.process,nu=function(){try{var t=tu&&tu.require&&tu.require("util").types;return t||eu&&eu.binding&&eu.binding("util")}catch(t){}}(),ru=nu&&nu.isTypedArray,iu=ru?Jl(ru):function(t){return Na(t)&&Rl(t.length)&&!!Zl[Pa(t)]},ou=iu,au=Object.prototype.hasOwnProperty;function su(t,e){var n=Ha(t),r=!n&&$l(t),i=!n&&!r&&Kl(t),o=!n&&!r&&!i&&ou(t),a=n||r||i||o,s=a?Fl(t.length,String):[],l=s.length;for(var u in t)!e&&!au.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||pl(u,l))||s.push(u);return s}function lu(t,e){return function(n){return t(e(n))}}var uu=lu(Object.keys,Object),cu=Object.prototype.hasOwnProperty;function hu(t){if(!zl(t))return uu(t);var e=[];for(var n in Object(t))cu.call(t,n)&&"constructor"!=n&&e.push(n);return e}function du(t){return Dl(t)?su(t):hu(t)}var fu=Object.prototype.hasOwnProperty,pu=Nl(function(t,e){if(zl(e)||Dl(e))Ml(e,du(e),t);else for(var n in e)fu.call(e,n)&&Il(t,n,e[n])}),vu=pu;var gu=Object.prototype.hasOwnProperty;function mu(t){if(!Ka(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=zl(t),n=[];for(var r in t)("constructor"!=r||!e&&gu.call(t,r))&&n.push(r);return n}function yu(t){return Dl(t)?su(t,!0):mu(t)}var bu=Nl(function(t,e){Ml(e,yu(e),t)}),wu=bu,Cu=Nl(function(t,e,n,r){Ml(e,yu(e),t,r)}),_u=Cu,xu=Nl(function(t,e,n,r){Ml(e,du(e),t,r)}),Su=xu,Eu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ou=/^\w*$/;function Tu(t,e){if(Ha(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Ba(t))||(Ou.test(t)||!Eu.test(t)||null!=e&&t in Object(e))}var Iu=bs(Object,"create");var Mu=Object.prototype.hasOwnProperty;var Lu=Object.prototype.hasOwnProperty;function ku(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Au(t,e){for(var n=t.length;n--;)if(Ol(t[n][0],e))return n;return-1}ku.prototype.clear=function(){this.__data__=Iu?Iu(null):{},this.size=0},ku.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ku.prototype.get=function(t){var e=this.__data__;if(Iu){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Mu.call(e,t)?e[t]:void 0},ku.prototype.has=function(t){var e=this.__data__;return Iu?void 0!==e[t]:Lu.call(e,t)},ku.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Iu&&void 0===e?"__lodash_hash_undefined__":e,this};var Ru=Array.prototype.splice;function Du(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Du.prototype.clear=function(){this.__data__=[],this.size=0},Du.prototype.delete=function(t){var e=this.__data__,n=Au(e,t);return!(n<0)&&(n==e.length-1?e.pop():Ru.call(e,n,1),--this.size,!0)},Du.prototype.get=function(t){var e=this.__data__,n=Au(e,t);return n<0?void 0:e[n][1]},Du.prototype.has=function(t){return Au(this.__data__,t)>-1},Du.prototype.set=function(t,e){var n=this.__data__,r=Au(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var Pu=bs(Ta,"Map");function Nu(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function Bu(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Bu.prototype.clear=function(){this.size=0,this.__data__={hash:new ku,map:new(Pu||Du),string:new ku}},Bu.prototype.delete=function(t){var e=Nu(this,t).delete(t);return this.size-=e?1:0,e},Bu.prototype.get=function(t){return Nu(this,t).get(t)},Bu.prototype.has=function(t){return Nu(this,t).has(t)},Bu.prototype.set=function(t,e){var n=Nu(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function zu(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(zu.Cache||Bu),n}zu.Cache=Bu;var Fu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hu=/\\(\\)?/g,ju=function(t){var e=zu(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Fu,function(t,n,r,i){e.push(r?i.replace(Hu,"$1"):n||t)}),e}),Wu=ju;function Gu(t){return null==t?"":Ga(t)}function Vu(t,e){return Ha(t)?t:Tu(t,e)?[t]:Wu(Gu(t))}function $u(t){if("string"==typeof t||Ba(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Uu(t,e){for(var n=0,r=(e=Vu(e,t)).length;null!=t&&n<r;)t=t[$u(e[n++])];return n&&n==r?t:void 0}function Yu(t,e,n){var r=null==t?void 0:Uu(t,e);return void 0===r?n:r}function Xu(t,e){for(var n=-1,r=e.length,i=Array(r),o=null==t;++n<r;)i[n]=o?void 0:Yu(t,e[n]);return i}function qu(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var Ku=Ia?Ia.isConcatSpreadable:void 0;function Zu(t){return Ha(t)||$l(t)||!!(Ku&&t&&t[Ku])}function Ju(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=Zu),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?Ju(s,e-1,n,r,i):qu(i,s):r||(i[i.length]=s)}return i}function Qu(t){return(null==t?0:t.length)?Ju(t,1):[]}function tc(t){return rl(kl(t,void 0,Qu),t+"")}var ec=tc(Xu),nc=lu(Object.getPrototypeOf,Object),rc=Function.prototype,ic=Object.prototype,oc=rc.toString,ac=ic.hasOwnProperty,sc=oc.call(Object);function lc(t){if(!Na(t)||"[object Object]"!=Pa(t))return!1;var e=nc(t);if(null===e)return!0;var n=ac.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&oc.call(n)==sc}function uc(t){if(!Na(t))return!1;var e=Pa(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!lc(t)}var cc=Al(function(t,e){try{return Is(t,void 0,e)}catch(t){return uc(t)?t:new Error(t)}}),hc=cc;function dc(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=is(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var fc=Al(function(t,e,n){var r=1;if(n.length){var i=ml(n,dl(fc));r|=32}return xl(t,r,e,n,i)});fc.placeholder={};var pc=fc,vc=tc(function(t,e){return il(e,function(e){e=$u(e),El(t,e,pc(t[e],t))}),t}),gc=vc,mc=Al(function(t,e,n){var r=3;if(n.length){var i=ml(n,dl(mc));r|=32}return xl(e,r,t,n,i)});mc.placeholder={};var yc=mc;function bc(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}function wc(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:bc(t,e,n)}var Cc=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function _c(t){return Cc.test(t)}var xc="\\ud800-\\udfff",Sc="["+xc+"]",Ec="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Oc="\\ud83c[\\udffb-\\udfff]",Tc="[^"+xc+"]",Ic="(?:\\ud83c[\\udde6-\\uddff]){2}",Mc="[\\ud800-\\udbff][\\udc00-\\udfff]",Lc="(?:"+Ec+"|"+Oc+")"+"?",kc="[\\ufe0e\\ufe0f]?",Ac=kc+Lc+("(?:\\u200d(?:"+[Tc,Ic,Mc].join("|")+")"+kc+Lc+")*"),Rc="(?:"+[Tc+Ec+"?",Ec,Ic,Mc,Sc].join("|")+")",Dc=RegExp(Oc+"(?="+Oc+")|"+Rc+Ac,"g");function Pc(t){return _c(t)?function(t){return t.match(Dc)||[]}(t):function(t){return t.split("")}(t)}function Nc(t){return function(e){var n=_c(e=Gu(e))?Pc(e):void 0,r=n?n[0]:e.charAt(0),i=n?wc(n,1).join(""):e.slice(1);return r[t]()+i}}var Bc=Nc("toUpperCase");function zc(t){return Bc(Gu(t).toLowerCase())}function Fc(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function Hc(t){return function(e){return null==t?void 0:t[e]}}var jc=Hc({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Wc=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gc=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");function Vc(t){return(t=Gu(t))&&t.replace(Wc,jc).replace(Gc,"")}var $c=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Uc=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Yc="\\ud800-\\udfff",Xc="\\u2700-\\u27bf",qc="a-z\\xdf-\\xf6\\xf8-\\xff",Kc="A-Z\\xc0-\\xd6\\xd8-\\xde",Zc="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Jc="["+Zc+"]",Qc="\\d+",th="["+Xc+"]",eh="["+qc+"]",nh="[^"+Yc+Zc+Qc+Xc+qc+Kc+"]",rh="(?:\\ud83c[\\udde6-\\uddff]){2}",ih="[\\ud800-\\udbff][\\udc00-\\udfff]",oh="["+Kc+"]",ah="(?:"+eh+"|"+nh+")",sh="(?:"+oh+"|"+nh+")",lh="(?:['’](?:d|ll|m|re|s|t|ve))?",uh="(?:['’](?:D|LL|M|RE|S|T|VE))?",ch="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",hh="[\\ufe0e\\ufe0f]?",dh=hh+ch+("(?:\\u200d(?:"+["[^"+Yc+"]",rh,ih].join("|")+")"+hh+ch+")*"),fh="(?:"+[th,rh,ih].join("|")+")"+dh,ph=RegExp([oh+"?"+eh+"+"+lh+"(?="+[Jc,oh,"$"].join("|")+")",sh+"+"+uh+"(?="+[Jc,oh+ah,"$"].join("|")+")",oh+"?"+ah+"+"+lh,oh+"+"+uh,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Qc,fh].join("|"),"g");function vh(t,e,n){return t=Gu(t),void 0===(e=n?void 0:e)?function(t){return Uc.test(t)}(t)?function(t){return t.match(ph)||[]}(t):function(t){return t.match($c)||[]}(t):t.match(e)||[]}var gh=RegExp("['’]","g");function mh(t){return function(e){return Fc(vh(Vc(e).replace(gh,"")),t,"")}}var yh=mh(function(t,e,n){return e=e.toLowerCase(),t+(n?zc(e):e)}),bh=yh;var wh=Ta.isFinite,Ch=Math.min;function _h(t){var e=Math[t];return function(t,n){if(t=es(t),(n=null==n?0:Ch(is(n),292))&&wh(t)){var r=(Gu(t)+"e").split("e");return+((r=(Gu(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var xh=_h("ceil");function Sh(t){var e=$s(t);return e.__chain__=!0,e}var Eh=Math.ceil,Oh=Math.max;function Th(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}function Ih(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=es(n))==n?n:0),void 0!==e&&(e=(e=es(e))==e?e:0),Th(es(t),e,n)}function Mh(t){var e=this.__data__=new Du(t);this.size=e.size}function Lh(t,e){return t&&Ml(e,du(e),t)}Mh.prototype.clear=function(){this.__data__=new Du,this.size=0},Mh.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Mh.prototype.get=function(t){return this.__data__.get(t)},Mh.prototype.has=function(t){return this.__data__.has(t)},Mh.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Du){var r=n.__data__;if(!Pu||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Bu(r)}return n.set(t,e),this.size=n.size,this};var kh="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ah=kh&&t&&!t.nodeType&&t,Rh=Ah&&Ah.exports===kh?Ta.Buffer:void 0,Dh=Rh?Rh.allocUnsafe:void 0;function Ph(t,e){if(e)return t.slice();var n=t.length,r=Dh?Dh(n):new t.constructor(n);return t.copy(r),r}function Nh(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function Bh(){return[]}var zh=Object.prototype.propertyIsEnumerable,Fh=Object.getOwnPropertySymbols,Hh=Fh?function(t){return null==t?[]:(t=Object(t),Nh(Fh(t),function(e){return zh.call(t,e)}))}:Bh,jh=Hh;var Wh=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)qu(e,jh(t)),t=nc(t);return e}:Bh,Gh=Wh;function Vh(t,e,n){var r=e(t);return Ha(t)?r:qu(r,n(t))}function $h(t){return Vh(t,du,jh)}function Uh(t){return Vh(t,yu,Gh)}var Yh=bs(Ta,"DataView"),Xh=bs(Ta,"Promise"),qh=bs(Ta,"Set"),Kh="[object Map]",Zh="[object Promise]",Jh="[object Set]",Qh="[object WeakMap]",td="[object DataView]",ed=hs(Yh),nd=hs(Pu),rd=hs(Xh),id=hs(qh),od=hs(ws),ad=Pa;(Yh&&ad(new Yh(new ArrayBuffer(1)))!=td||Pu&&ad(new Pu)!=Kh||Xh&&ad(Xh.resolve())!=Zh||qh&&ad(new qh)!=Jh||ws&&ad(new ws)!=Qh)&&(ad=function(t){var e=Pa(t),n="[object Object]"==e?t.constructor:void 0,r=n?hs(n):"";if(r)switch(r){case ed:return td;case nd:return Kh;case rd:return Zh;case id:return Jh;case od:return Qh}return e});var sd=ad,ld=Object.prototype.hasOwnProperty;var ud=Ta.Uint8Array;function cd(t){var e=new t.constructor(t.byteLength);return new ud(e).set(new ud(t)),e}var hd=/\w*$/;var dd=Ia?Ia.prototype:void 0,fd=dd?dd.valueOf:void 0;function pd(t,e){var n=e?cd(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function vd(t,e,n){var r,i=t.constructor;switch(e){case"[object ArrayBuffer]":return cd(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,e){var n=e?cd(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return pd(t,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,hd.exec(t));return e.lastIndex=t.lastIndex,e}(t);case"[object Symbol]":return r=t,fd?Object(fd.call(r)):{}}}function gd(t){return"function"!=typeof t.constructor||zl(t)?{}:Os(nc(t))}var md=nu&&nu.isMap,yd=md?Jl(md):function(t){return Na(t)&&"[object Map]"==sd(t)},bd=yd;var wd=nu&&nu.isSet,Cd=wd?Jl(wd):function(t){return Na(t)&&"[object Set]"==sd(t)},_d=Cd,xd="[object Arguments]",Sd="[object Function]",Ed="[object Object]",Od={};function Td(t,e,n,r,i,o){var a,s=1&e,l=2&e,u=4&e;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!Ka(t))return t;var c=Ha(t);if(c){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&ld.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!s)return Ws(t,a)}else{var h=sd(t),d=h==Sd||"[object GeneratorFunction]"==h;if(Kl(t))return Ph(t,s);if(h==Ed||h==xd||d&&!i){if(a=l||d?{}:gd(t),!s)return l?function(t,e){return Ml(t,Gh(t),e)}(t,function(t,e){return t&&Ml(e,yu(e),t)}(a,t)):function(t,e){return Ml(t,jh(t),e)}(t,Lh(a,t))}else{if(!Od[h])return i?t:{};a=vd(t,h,s)}}o||(o=new Mh);var f=o.get(t);if(f)return f;o.set(t,a),_d(t)?t.forEach(function(r){a.add(Td(r,e,n,r,t,o))}):bd(t)&&t.forEach(function(r,i){a.set(i,Td(r,e,n,i,t,o))});var p=c?void 0:(u?l?Uh:$h:l?yu:du)(t);return il(p||t,function(r,i){p&&(r=t[i=r]),Il(a,i,Td(r,e,n,i,t,o))}),a}Od[xd]=Od["[object Array]"]=Od["[object ArrayBuffer]"]=Od["[object DataView]"]=Od["[object Boolean]"]=Od["[object Date]"]=Od["[object Float32Array]"]=Od["[object Float64Array]"]=Od["[object Int8Array]"]=Od["[object Int16Array]"]=Od["[object Int32Array]"]=Od["[object Map]"]=Od["[object Number]"]=Od[Ed]=Od["[object RegExp]"]=Od["[object Set]"]=Od["[object String]"]=Od["[object Symbol]"]=Od["[object Uint8Array]"]=Od["[object Uint8ClampedArray]"]=Od["[object Uint16Array]"]=Od["[object Uint32Array]"]=!0,Od["[object Error]"]=Od[Sd]=Od["[object WeakMap]"]=!1;function Id(t){return Td(t,4)}function Md(t){return Td(t,5)}function Ld(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i}function kd(){var t=arguments.length;if(!t)return[];for(var e=Array(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return qu(Ha(n)?Ws(n):[n],Ju(e,1))}function Ad(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Bu;++e<n;)this.add(t[e])}function Rd(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Dd(t,e){return t.has(e)}Ad.prototype.add=Ad.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ad.prototype.has=function(t){return this.__data__.has(t)};function Pd(t,e,n,r,i,o){var a=1&n,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(t),c=o.get(e);if(u&&c)return u==e&&c==t;var h=-1,d=!0,f=2&n?new Ad:void 0;for(o.set(t,e),o.set(e,t);++h<s;){var p=t[h],v=e[h];if(r)var g=a?r(v,p,h,e,t,o):r(p,v,h,t,e,o);if(void 0!==g){if(g)continue;d=!1;break}if(f){if(!Rd(e,function(t,e){if(!Dd(f,e)&&(p===t||i(p,t,n,r,o)))return f.push(e)})){d=!1;break}}else if(p!==v&&!i(p,v,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function Nd(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function Bd(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}var zd=Ia?Ia.prototype:void 0,Fd=zd?zd.valueOf:void 0;var Hd=Object.prototype.hasOwnProperty;var jd="[object Arguments]",Wd="[object Array]",Gd="[object Object]",Vd=Object.prototype.hasOwnProperty;function $d(t,e,n,r,i,o){var a=Ha(t),s=Ha(e),l=a?Wd:sd(t),u=s?Wd:sd(e),c=(l=l==jd?Gd:l)==Gd,h=(u=u==jd?Gd:u)==Gd,d=l==u;if(d&&Kl(t)){if(!Kl(e))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Mh),a||ou(t)?Pd(t,e,n,r,i,o):function(t,e,n,r,i,o,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new ud(t),new ud(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ol(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=Nd;case"[object Set]":var l=1&r;if(s||(s=Bd),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;r|=2,a.set(t,e);var c=Pd(s(t),s(e),r,i,o,a);return a.delete(t),c;case"[object Symbol]":if(Fd)return Fd.call(t)==Fd.call(e)}return!1}(t,e,l,n,r,i,o);if(!(1&n)){var f=c&&Vd.call(t,"__wrapped__"),p=h&&Vd.call(e,"__wrapped__");if(f||p){var v=f?t.value():t,g=p?e.value():e;return o||(o=new Mh),i(v,g,n,r,o)}}return!!d&&(o||(o=new Mh),function(t,e,n,r,i,o){var a=1&n,s=$h(t),l=s.length;if(l!=$h(e).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in e:Hd.call(e,c)))return!1}var h=o.get(t),d=o.get(e);if(h&&d)return h==e&&d==t;var f=!0;o.set(t,e),o.set(e,t);for(var p=a;++u<l;){var v=t[c=s[u]],g=e[c];if(r)var m=a?r(g,v,c,e,t,o):r(v,g,c,t,e,o);if(!(void 0===m?v===g||i(v,g,n,r,o):m)){f=!1;break}p||(p="constructor"==c)}if(f&&!p){var y=t.constructor,b=e.constructor;y==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(f=!1)}return o.delete(t),o.delete(e),f}(t,e,n,r,i,o))}function Ud(t,e,n,r,i){return t===e||(null==t||null==e||!Na(t)&&!Na(e)?t!=t&&e!=e:$d(t,e,n,r,Ud,i))}function Yd(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=Object(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){var l=(s=n[i])[0],u=t[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in t))return!1}else{var h=new Mh;if(r)var d=r(u,c,l,t,e,h);if(!(void 0===d?Ud(c,u,3,r,h):d))return!1}}return!0}function Xd(t){return t==t&&!Ka(t)}function qd(t){for(var e=du(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Xd(i)]}return e}function Kd(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}function Zd(t){var e=qd(t);return 1==e.length&&e[0][2]?Kd(e[0][0],e[0][1]):function(n){return n===t||Yd(n,t,e)}}function Jd(t,e){return null!=t&&e in Object(t)}function Qd(t,e,n){for(var r=-1,i=(e=Vu(e,t)).length,o=!1;++r<i;){var a=$u(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Rl(i)&&pl(a,i)&&(Ha(t)||$l(t))}function tf(t,e){return null!=t&&Qd(t,e,Jd)}function ef(t,e){return Tu(t)&&Xd(e)?Kd($u(t),e):function(n){var r=Yu(n,t);return void 0===r&&r===e?tf(n,t):Ud(e,r,3)}}function nf(t){return function(e){return null==e?void 0:e[t]}}function rf(t){return Tu(t)?nf($u(t)):function(t){return function(e){return Uu(e,t)}}(t)}function of(t){return"function"==typeof t?t:null==t?os:"object"==typeof t?Ha(t)?ef(t[0],t[1]):Zd(t):rf(t)}function af(t){var e=null==t?0:t.length,n=of;return t=e?Fa(t,function(t){if("function"!=typeof t[1])throw new TypeError("Expected a function");return[n(t[0]),t[1]]}):[],Al(function(n){for(var r=-1;++r<e;){var i=t[r];if(Is(i[0],this,n))return Is(i[1],this,n)}})}function sf(t,e,n){var r=n.length;if(null==t)return!r;for(t=Object(t);r--;){var i=n[r],o=e[i],a=t[i];if(void 0===a&&!(i in t)||!o(a))return!1}return!0}function lf(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function uf(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[t?s:++i];if(!1===n(o[l],l,o))break}return e}}var cf=uf();function hf(t,e){return t&&cf(t,e,du)}function df(t,e){return function(n,r){if(null==n)return n;if(!Dl(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Object(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}var ff=df(hf);function pf(t,e,n,r){return ff(t,function(t,i,o){e(r,t,n(t),o)}),r}function vf(t,e){return function(n,r){var i=Ha(n)?lf:pf,o=e?e():{};return i(n,t,of(r),o)}}var gf=Object.prototype.hasOwnProperty,mf=vf(function(t,e,n){gf.call(t,n)?++t[n]:El(t,n,1)}),yf=mf;function bf(t,e,n){var r=xl(t,8,void 0,void 0,void 0,void 0,void 0,e=n?void 0:e);return r.placeholder=bf.placeholder,r}bf.placeholder={};function wf(t,e,n){var r=xl(t,16,void 0,void 0,void 0,void 0,void 0,e=n?void 0:e);return r.placeholder=wf.placeholder,r}wf.placeholder={};var Cf=function(){return Ta.Date.now()},_f=Math.max,xf=Math.min;function Sf(t,e,n){var r,i,o,a,s,l,u=0,c=!1,h=!1,d=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function f(e){var n=r,o=i;return r=i=void 0,u=e,a=t.apply(o,n)}function p(t){var n=t-l;return void 0===l||n>=e||n<0||h&&t-u>=o}function v(){var t=Cf();if(p(t))return g(t);s=setTimeout(v,function(t){var n=e-(t-l);return h?xf(n,o-(t-u)):n}(t))}function g(t){return s=void 0,d&&r?f(t):(r=i=void 0,a)}function m(){var t=Cf(),n=p(t);if(r=arguments,i=this,l=t,n){if(void 0===s)return function(t){return u=t,s=setTimeout(v,e),c?f(t):a}(l);if(h)return clearTimeout(s),s=setTimeout(v,e),f(l)}return void 0===s&&(s=setTimeout(v,e)),a}return e=es(e)||0,Ka(n)&&(c=!!n.leading,o=(h="maxWait"in n)?_f(es(n.maxWait)||0,e):o,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},m.flush=function(){return void 0===s?a:g(Cf())},m}var Ef=Object.prototype,Of=Ef.hasOwnProperty,Tf=Al(function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&Pl(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],a=yu(o),s=-1,l=a.length;++s<l;){var u=a[s],c=t[u];(void 0===c||Ol(c,Ef[u])&&!Of.call(t,u))&&(t[u]=o[u])}return t}),If=Tf;function Mf(t,e,n){(void 0!==n&&!Ol(t[e],n)||void 0===n&&!(e in t))&&El(t,e,n)}function Lf(t){return Na(t)&&Dl(t)}function kf(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Af(t){return Ml(t,yu(t))}function Rf(t,e,n,r,i){t!==e&&cf(e,function(o,a){if(i||(i=new Mh),Ka(o))!function(t,e,n,r,i,o,a){var s=kf(t,n),l=kf(e,n),u=a.get(l);if(u)Mf(t,n,u);else{var c=o?o(s,l,n+"",t,e,a):void 0,h=void 0===c;if(h){var d=Ha(l),f=!d&&Kl(l),p=!d&&!f&&ou(l);c=l,d||f||p?Ha(s)?c=s:Lf(s)?c=Ws(s):f?(h=!1,c=Ph(l,!0)):p?(h=!1,c=pd(l,!0)):c=[]:lc(l)||$l(l)?(c=s,$l(s)?c=Af(s):Ka(s)&&!as(s)||(c=gd(l))):h=!1}h&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),Mf(t,n,c)}}(t,e,a,n,Rf,r,i);else{var s=r?r(kf(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Mf(t,a,s)}},yu)}function Df(t,e,n,r,i,o){return Ka(t)&&Ka(e)&&(o.set(e,t),Rf(t,e,void 0,Df,o),o.delete(e)),t}var Pf=Nl(function(t,e,n,r){Rf(t,e,n,r)}),Nf=Pf,Bf=Al(function(t){return t.push(void 0,Df),Is(Nf,void 0,t)});function zf(t,e,n){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout(function(){t.apply(void 0,n)},e)}var Ff=Al(function(t,e){return zf(t,1,e)}),Hf=Ff,jf=Al(function(t,e,n){return zf(t,es(e)||0,n)}),Wf=jf;function Gf(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Vf(t,e,n,r){var i=-1,o=ll,a=!0,s=t.length,l=[],u=e.length;if(!s)return l;n&&(e=Fa(e,Jl(n))),r?(o=Gf,a=!1):e.length>=200&&(o=Dd,a=!1,e=new Ad(e));t:for(;++i<s;){var c=t[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,a&&h==h){for(var d=u;d--;)if(e[d]===h)continue t;l.push(c)}else o(e,h,r)||l.push(c)}return l}var $f=Al(function(t,e){return Lf(t)?Vf(t,Ju(e,1,Lf,!0)):[]}),Uf=$f;function Yf(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Xf=Al(function(t,e){var n=Yf(e);return Lf(n)&&(n=void 0),Lf(t)?Vf(t,Ju(e,1,Lf,!0),of(n)):[]}),qf=Xf,Kf=Al(function(t,e){var n=Yf(e);return Lf(n)&&(n=void 0),Lf(t)?Vf(t,Ju(e,1,Lf,!0),void 0,n):[]}),Zf=Kf,Jf=Va(function(t,e){return t/e},1);function Qf(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?bc(t,r?0:o,r?o+1:i):bc(t,r?o+1:0,r?i:o)}function tp(t){return"function"==typeof t?t:os}function ep(t,e){return(Ha(t)?il:ff)(t,tp(e))}function np(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}var rp=uf(!0);function ip(t,e){return t&&rp(t,e,du)}var op=df(ip,!0);function ap(t,e){return(Ha(t)?np:op)(t,tp(e))}function sp(t){return function(e){var n=sd(e);return"[object Map]"==n?Nd(e):"[object Set]"==n?function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}(e):function(t,e){return Fa(e,function(e){return[e,t[e]]})}(e,t(e))}}var lp=sp(du),up=sp(yu),cp=Hc({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),hp=/[&<>"']/g,dp=RegExp(hp.source);function fp(t){return(t=Gu(t))&&dp.test(t)?t.replace(hp,cp):t}var pp=/[\\^$.*+?()[\]{}|]/g,vp=RegExp(pp.source);function gp(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function mp(t,e){var n=!0;return ff(t,function(t,r,i){return n=!!e(t,r,i)}),n}function yp(t,e,n){var r=Ha(t)?gp:mp;return n&&Pl(t,e,n)&&(e=void 0),r(t,of(e))}function bp(t){return t?Th(is(t),0,4294967295):0}function wp(t,e){var n=[];return ff(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function Cp(t,e){return(Ha(t)?Nh:wp)(t,of(e))}function _p(t){return function(e,n,r){var i=Object(e);if(!Dl(e)){var o=of(n);e=du(e),n=function(t){return o(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:void 0}}var xp=Math.max;function Sp(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=xp(r+i,0)),ol(t,of(e),i)}var Ep=_p(Sp);function Op(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}var Tp=Math.max,Ip=Math.min;function Mp(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=is(n),i=n<0?Tp(r+i,0):Ip(i,r-1)),ol(t,of(e),i,!0)}var Lp=_p(Mp);function kp(t){return t&&t.length?t[0]:void 0}function Ap(t,e){var n=-1,r=Dl(t)?Array(t.length):[];return ff(t,function(t,i,o){r[++n]=e(t,i,o)}),r}function Rp(t,e){return(Ha(t)?Fa:Ap)(t,of(e))}function Dp(t,e){return Ju(Rp(t,e),1)}var Pp=1/0;var Np=1/0;function Bp(t){return(null==t?0:t.length)?Ju(t,Np):[]}var zp=_h("floor");function Fp(t){return tc(function(e){var n=e.length,r=n,i=js.prototype.thru;for(t&&e.reverse();r--;){var o=e[r];if("function"!=typeof o)throw new TypeError("Expected a function");if(i&&!a&&"wrapper"==Hs(o))var a=new js([],!0)}for(r=a?r:n;++r<n;){var s=Hs(o=e[r]),l="wrapper"==s?Bs(o):void 0;a=l&&Us(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[Hs(l[0])].apply(a,l[3]):1==o.length&&Us(o)?a[s]():a.thru(o)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&Ha(r))return a.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}})}var Hp=Fp(),jp=Fp(!0);function Wp(t,e){return null==t?t:cf(t,tp(e),yu)}function Gp(t,e){return Nh(e,function(e){return as(t[e])})}var Vp=Object.prototype.hasOwnProperty,$p=vf(function(t,e,n){Vp.call(t,n)?t[n].push(e):El(t,n,[e])}),Up=$p;function Yp(t,e){return t>e}function Xp(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=es(e),n=es(n)),t(e,n)}}var qp=Xp(Yp),Kp=Xp(function(t,e){return t>=e}),Zp=Kp,Jp=Object.prototype.hasOwnProperty;function Qp(t,e){return null!=t&&Jp.call(t,e)}function tv(t,e){return null!=t&&Qd(t,e,Qp)}var ev=Math.max,nv=Math.min;function rv(t,e,n){return e=rs(e),void 0===n?(n=e,e=0):n=rs(n),function(t,e,n){return t>=nv(e,n)&&t<ev(e,n)}(t=es(t),e,n)}function iv(t){return"string"==typeof t||!Ha(t)&&Na(t)&&"[object String]"==Pa(t)}function ov(t,e){return Fa(e,function(e){return t[e]})}function av(t){return null==t?[]:ov(t,du(t))}var sv=Math.max;function lv(t,e,n,r){t=Dl(t)?t:av(t),n=n&&!r?is(n):0;var i=t.length;return n<0&&(n=sv(i+n,0)),iv(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&sl(t,e,n)>-1}var uv=Math.max;function cv(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=uv(r+i,0)),sl(t,e,i)}var hv=Math.min;function dv(t,e,n){for(var r=n?Gf:ll,i=t[0].length,o=t.length,a=o,s=Array(o),l=1/0,u=[];a--;){var c=t[a];a&&e&&(c=Fa(c,Jl(e))),l=hv(c.length,l),s[a]=!n&&(e||i>=120&&c.length>=120)?new Ad(a&&c):void 0}c=t[0];var h=-1,d=s[0];t:for(;++h<i&&u.length<l;){var f=c[h],p=e?e(f):f;if(f=n||0!==f?f:0,!(d?Dd(d,p):r(u,p,n))){for(a=o;--a;){var v=s[a];if(!(v?Dd(v,p):r(t[a],p,n)))continue t}d&&d.push(p),u.push(f)}}return u}function fv(t){return Lf(t)?t:[]}var pv=Al(function(t){var e=Fa(t,fv);return e.length&&e[0]===t[0]?dv(e):[]}),vv=Al(function(t){var e=Yf(t),n=Fa(t,fv);return e===Yf(n)?e=void 0:n.pop(),n.length&&n[0]===t[0]?dv(n,of(e)):[]}),gv=vv,mv=Al(function(t){var e=Yf(t),n=Fa(t,fv);return(e="function"==typeof e?e:void 0)&&n.pop(),n.length&&n[0]===t[0]?dv(n,void 0,e):[]});function yv(t,e){return function(n,r){return function(t,e,n,r){return hf(t,function(t,i,o){e(r,n(t),i,o)}),r}(n,t,e(r),{})}}var bv=Object.prototype.toString,wv=yv(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=bv.call(e)),t[e]=n},Qs(os)),Cv=wv,_v=Object.prototype,xv=_v.hasOwnProperty,Sv=_v.toString,Ev=yv(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Sv.call(e)),xv.call(t,e)?t[e].push(n):t[e]=[n]},of),Ov=Ev;function Tv(t,e){return e.length<2?t:Uu(t,bc(e,0,-1))}function Iv(t,e,n){var r=null==(t=Tv(t,e=Vu(e,t)))?t:t[$u(Yf(e))];return null==r?void 0:Is(r,t,n)}var Mv=Al(Iv),Lv=Al(function(t,e,n){var r=-1,i="function"==typeof e,o=Dl(t)?Array(t.length):[];return ff(t,function(t){o[++r]=i?Is(e,t,n):Iv(t,e,n)}),o}),kv=Lv;var Av=nu&&nu.isArrayBuffer,Rv=Av?Jl(Av):function(t){return Na(t)&&"[object ArrayBuffer]"==Pa(t)},Dv=Rv;function Pv(t){return!0===t||!1===t||Na(t)&&"[object Boolean]"==Pa(t)}var Nv=nu&&nu.isDate,Bv=Nv?Jl(Nv):function(t){return Na(t)&&"[object Date]"==Pa(t)},zv=Bv;var Fv=Object.prototype.hasOwnProperty;function Hv(t){if(null==t)return!0;if(Dl(t)&&(Ha(t)||"string"==typeof t||"function"==typeof t.splice||Kl(t)||ou(t)||$l(t)))return!t.length;var e=sd(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(zl(t))return!hu(t).length;for(var n in t)if(Fv.call(t,n))return!1;return!0}function jv(t,e){return Ud(t,e)}var Wv=Ta.isFinite;function Gv(t){return"number"==typeof t&&t==is(t)}function Vv(t){return"number"==typeof t||Na(t)&&"[object Number]"==Pa(t)}function $v(t){return Vv(t)&&t!=+t}var Uv=ls?as:Ul;function Yv(t){return null==t}function Xv(t){return null===t}var qv=nu&&nu.isRegExp,Kv=qv?Jl(qv):function(t){return Na(t)&&"[object RegExp]"==Pa(t)},Zv=Kv,Jv=9007199254740991;function Qv(t){return void 0===t}var tg=Array.prototype.join;var eg=mh(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),ng=eg,rg=vf(function(t,e,n){El(t,n,e)}),ig=rg;var og=Math.max,ag=Math.min;var sg=mh(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),lg=sg,ug=Nc("toLowerCase");function cg(t,e){return t<e}var hg=Xp(cg),dg=Xp(function(t,e){return t<=e}),fg=dg;function pg(t,e){var n={};return e=of(e),hf(t,function(t,r,i){El(n,e(t,r,i),t)}),n}function vg(t){return Zd(Td(t,1))}function gg(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(void 0===s?a==a&&!Ba(a):n(a,s)))var s=a,l=o}return l}function mg(t){return t&&t.length?gg(t,os,Yp):void 0}function yg(t,e){return t&&t.length?gg(t,of(e),Yp):void 0}function bg(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function wg(t,e){var n=null==t?0:t.length;return n?bg(t,e)/n:NaN}var Cg=Nl(function(t,e,n){Rf(t,e,n)}),_g=Cg,xg=Al(function(t,e){return function(n){return Iv(n,t,e)}}),Sg=xg,Eg=Al(function(t,e){return function(n){return Iv(t,n,e)}}),Og=Eg;function Tg(t){return t&&t.length?gg(t,os,cg):void 0}function Ig(t,e,n){var r=du(e),i=Gp(e,r),o=!(Ka(n)&&"chain"in n&&!n.chain),a=as(t);return il(i,function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Ws(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,qu([this.value()],arguments))})}),t}var Mg=Va(function(t,e){return t*e},1);function Lg(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}var kg=Ia?Ia.iterator:void 0;function Ag(t){if(!t)return[];if(Dl(t))return iv(t)?Pc(t):Ws(t);if(kg&&t[kg])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[kg]());var e=sd(t);return("[object Map]"==e?Nd:"[object Set]"==e?Bd:av)(t)}function Rg(t,e){var n=t.length;if(n)return pl(e+=e<0?n:0,n)?t[e]:void 0}function Dg(t,e){return null==(t=Tv(t,e=Vu(e,t)))||delete t[$u(Yf(e))]}function Pg(t){return lc(t)?void 0:t}var Ng=tc(function(t,e){var n={};if(null==t)return n;var r=!1;e=Fa(e,function(e){return e=Vu(e,t),r||(r=e.length>1),e}),Ml(t,Uh(t),n),r&&(n=Td(n,7,Pg));for(var i=e.length;i--;)Dg(n,e[i]);return n}),Bg=Ng;function zg(t,e,n,r){if(!Ka(t))return t;for(var i=-1,o=(e=Vu(e,t)).length,a=o-1,s=t;null!=s&&++i<o;){var l=$u(e[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(i!=a){var c=s[l];void 0===(u=r?r(c,l,s):void 0)&&(u=Ka(c)?c:pl(e[i+1])?[]:{})}Il(s,l,u),s=s[l]}return t}function Fg(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=Uu(t,a);n(s,a)&&zg(o,Vu(a,t),s)}return o}function Hg(t,e){if(null==t)return{};var n=Fa(Uh(t),function(t){return[t]});return e=of(e),Fg(t,n,function(t,n){return e(t,n[0])})}function jg(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=Ba(t),a=void 0!==e,s=null===e,l=e==e,u=Ba(e);if(!s&&!u&&!o&&t>e||o&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&t<e||u&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}function Wg(t,e,n){e=e.length?Fa(e,function(t){return Ha(t)?function(e){return Uu(e,1===t.length?t[0]:t)}:t}):[os];var r=-1;e=Fa(e,Jl(of));var i=Ap(t,function(t,n,i){var o=Fa(e,function(e){return e(t)});return{criteria:o,index:++r,value:t}});return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(i,function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;++r<a;){var l=jg(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)})}function Gg(t,e,n,r){return null==t?[]:(Ha(e)||(e=null==e?[]:[e]),Ha(n=r?void 0:n)||(n=null==n?[]:[n]),Wg(t,e,n))}function Vg(t){return tc(function(e){return e=Fa(e,Jl(of)),Al(function(n){var r=this;return t(e,function(t){return Is(t,r,n)})})})}var $g=Vg(Fa),Ug=Al,Yg=Math.min,Xg=Ug(function(t,e){var n=(e=1==e.length&&Ha(e[0])?Fa(e[0],Jl(of)):Fa(Ju(e,1),Jl(of))).length;return Al(function(r){for(var i=-1,o=Yg(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return Is(t,this,r)})}),qg=Xg,Kg=Vg(gp),Zg=Vg(Rd),Jg=Math.floor;function Qg(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=Jg(e/2))&&(t+=t)}while(e);return n}var tm=nf("length"),em="\\ud800-\\udfff",nm="["+em+"]",rm="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",im="\\ud83c[\\udffb-\\udfff]",om="[^"+em+"]",am="(?:\\ud83c[\\udde6-\\uddff]){2}",sm="[\\ud800-\\udbff][\\udc00-\\udfff]",lm="(?:"+rm+"|"+im+")"+"?",um="[\\ufe0e\\ufe0f]?",cm=um+lm+("(?:\\u200d(?:"+[om,am,sm].join("|")+")"+um+lm+")*"),hm="(?:"+[om+rm+"?",rm,am,sm,nm].join("|")+")",dm=RegExp(im+"(?="+im+")|"+hm+cm,"g");function fm(t){return _c(t)?function(t){for(var e=dm.lastIndex=0;dm.test(t);)++e;return e}(t):tm(t)}var pm=Math.ceil;function vm(t,e){var n=(e=void 0===e?" ":Ga(e)).length;if(n<2)return n?Qg(e,t):e;var r=Qg(e,pm(t/fm(e)));return _c(e)?wc(Pc(r),0,t).join(""):r.slice(0,t)}var gm=Math.ceil,mm=Math.floor;var ym=/^\s+/,bm=Ta.parseInt;var wm=Al(function(t,e){return xl(t,32,void 0,e,ml(e,dl(wm)))});wm.placeholder={};var Cm=wm,_m=Al(function(t,e){return xl(t,64,void 0,e,ml(e,dl(_m)))});_m.placeholder={};var xm=_m,Sm=vf(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),Em=Sm;var Om=tc(function(t,e){return null==t?{}:function(t,e){return Fg(t,e,function(e,n){return tf(t,n)})}(t,e)}),Tm=Om;function Im(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}var Mm=Array.prototype.splice;function Lm(t,e,n,r){var i=r?Im:sl,o=-1,a=e.length,s=t;for(t===e&&(e=Ws(e)),n&&(s=Fa(t,Jl(n)));++o<a;)for(var l=0,u=e[o],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==t&&Mm.call(s,l,1),Mm.call(t,l,1);return t}function km(t,e){return t&&t.length&&e&&e.length?Lm(t,e):t}var Am=Al(km);var Rm=Array.prototype.splice;function Dm(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;pl(i)?Rm.call(t,i,1):Dg(t,i)}}return t}var Pm=tc(function(t,e){var n=null==t?0:t.length,r=Xu(t,e);return Dm(t,Fa(e,function(t){return pl(t,n)?+t:t}).sort(jg)),r}),Nm=Pm,Bm=Math.floor,zm=Math.random;function Fm(t,e){return t+Bm(zm()*(e-t+1))}var Hm=parseFloat,jm=Math.min,Wm=Math.random;var Gm=Math.ceil,Vm=Math.max;function $m(t){return function(e,n,r){return r&&"number"!=typeof r&&Pl(e,n,r)&&(n=r=void 0),e=rs(e),void 0===n?(n=e,e=0):n=rs(n),function(t,e,n,r){for(var i=-1,o=Vm(Gm((e-t)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=t,t+=n;return a}(e,n,r=void 0===r?e<n?1:-1:rs(r),t)}}var Um=$m(),Ym=$m(!0),Xm=tc(function(t,e){return xl(t,256,void 0,void 0,void 0,e)}),qm=Xm;function Km(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function Zm(t,e,n){var r=Ha(t)?Fc:Km,i=arguments.length<3;return r(t,of(e),n,i,ff)}function Jm(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}var Qm=Array.prototype.reverse;function ty(t){return null==t?t:Qm.call(t)}var ey=_h("round");function ny(t){var e=t.length;return e?t[Fm(0,e-1)]:void 0}function ry(t){return ny(av(t))}function iy(t,e){var n=-1,r=t.length,i=r-1;for(e=void 0===e?r:e;++n<e;){var o=Fm(n,i),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}function oy(t,e){return iy(Ws(t),Th(e,0,t.length))}function ay(t,e){var n=av(t);return iy(n,Th(e,0,n.length))}function sy(t,e,n){return null==t?t:zg(t,e,n)}function ly(t){return iy(Ws(t))}function uy(t){return iy(av(t))}function cy(t){if(null==t)return 0;if(Dl(t))return iv(t)?fm(t):t.length;var e=sd(t);return"[object Map]"==e||"[object Set]"==e?t.size:hu(t).length}var hy=mh(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),dy=hy;function fy(t,e){var n;return ff(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}function py(t,e,n){var r=Ha(t)?Rd:fy;return n&&Pl(t,e,n)&&(e=void 0),r(t,of(e))}var vy=Al(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Pl(t,e[0],e[1])?e=[]:n>2&&Pl(e[0],e[1],e[2])&&(e=[e[0]]),Wg(t,Ju(e,1),[])}),gy=vy,my=Math.floor,yy=Math.min;function by(t,e,n,r){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=n(e))!=e,s=null===e,l=Ba(e),u=void 0===e;i<o;){var c=my((i+o)/2),h=n(t[c]),d=void 0!==h,f=null===h,p=h==h,v=Ba(h);if(a)var g=r||p;else g=u?p&&(r||d):s?p&&d&&(r||!f):l?p&&d&&!f&&(r||!v):!f&&!v&&(r?h<=e:h<e);g?i=c+1:o=c}return yy(o,4294967294)}function wy(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!Ba(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return by(t,e,os,n)}function Cy(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!Ol(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function _y(t,e,n){return n&&"number"!=typeof n&&Pl(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=Gu(t))&&("string"==typeof e||null!=e&&!Zv(e))&&!(e=Ga(e))&&_c(t)?wc(Pc(t),0,n):t.split(e,n):[]}var xy=Math.max;var Sy=mh(function(t,e,n){return t+(n?" ":"")+Bc(e)}),Ey=Sy;function Oy(){return!0}var Ty=Va(function(t,e){return t-e},0);function Iy(t,e){return t&&t.length?bg(t,of(e)):0}var My=Object.prototype,Ly=My.hasOwnProperty;function ky(t,e,n,r){return void 0===t||Ol(t,My[n])&&!Ly.call(r,n)?e:t}var Ay={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Ry(t){return"\\"+Ay[t]}var Dy=/<%=([\s\S]+?)%>/g,Py={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:Dy,variable:"",imports:{_:{escape:fp}}},Ny=/\b__p \+= '';/g,By=/\b(__p \+=) '' \+/g,zy=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fy=/[()=,{}\[\]\/\s]/,Hy=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,jy=/($^)/,Wy=/['\n\r\u2028\u2029\\]/g,Gy=Object.prototype.hasOwnProperty;function Vy(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Ka(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Sf(t,e,{leading:r,maxWait:e,trailing:i})}function $y(t,e){return e(t)}var Uy=4294967295,Yy=Math.min;function Xy(t,e){var n=t;return n instanceof Ds&&(n=n.value()),Fc(e,function(t,e){return e.func.apply(e.thisArg,qu([t],e.args))},n)}function qy(){return Xy(this.__wrapped__,this.__actions__)}var Ky=9007199254740991;function Zy(t){return Gu(t).toUpperCase()}function Jy(t,e){for(var n=t.length;n--&&sl(e,t[n],0)>-1;);return n}function Qy(t,e){for(var n=-1,r=t.length;++n<r&&sl(e,t[n],0)>-1;);return n}function tb(t,e,n){if((t=Gu(t))&&(n||void 0===e))return qa(t);if(!t||!(e=Ga(e)))return t;var r=Pc(t),i=Pc(e);return wc(r,Qy(r,i),Jy(r,i)+1).join("")}var eb=/^\s+/;var nb=/\w*$/;var rb=Hc({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),ib=/&(?:amp|lt|gt|quot|#39);/g,ob=RegExp(ib.source);var ab=qh&&1/Bd(new qh([,-0]))[1]==1/0?function(t){return new qh(t)}:Ps,sb=ab;function lb(t,e,n){var r=-1,i=ll,o=t.length,a=!0,s=[],l=s;if(n)a=!1,i=Gf;else if(o>=200){var u=e?null:sb(t);if(u)return Bd(u);a=!1,i=Dd,l=new Ad}else l=e?[]:s;t:for(;++r<o;){var c=t[r],h=e?e(c):c;if(c=n||0!==c?c:0,a&&h==h){for(var d=l.length;d--;)if(l[d]===h)continue t;e&&l.push(h),s.push(c)}else i(l,h,n)||(l!==s&&l.push(h),s.push(c))}return s}var ub=Al(function(t){return lb(Ju(t,1,Lf,!0))}),cb=Al(function(t){var e=Yf(t);return Lf(e)&&(e=void 0),lb(Ju(t,1,Lf,!0),of(e))}),hb=cb,db=Al(function(t){var e=Yf(t);return e="function"==typeof e?e:void 0,lb(Ju(t,1,Lf,!0),void 0,e)});function fb(t){return t&&t.length?lb(t):[]}function pb(t,e){return t&&t.length?lb(t,of(e)):[]}var vb=0;function gb(t,e){return null==t||Dg(t,e)}var mb=Math.max;function yb(t){if(!t||!t.length)return[];var e=0;return t=Nh(t,function(t){if(Lf(t))return e=mb(t.length,e),!0}),Fl(e,function(e){return Fa(t,nf(e))})}function bb(t,e){if(!t||!t.length)return[];var n=yb(t);return null==e?n:Fa(n,function(t){return Is(e,void 0,t)})}function wb(t,e,n,r){return zg(t,e,n(Uu(t,e)),r)}var Cb=mh(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),_b=Cb;var xb=Al(function(t,e){return Lf(t)?Vf(t,e):[]}),Sb=xb;var Eb=tc(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Xu(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Ds&&pl(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:$y,args:[i],thisArg:void 0}),new js(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(void 0),t})):this.thru(i)}),Ob=Eb;function Tb(t,e,n){var r=t.length;if(r<2)return r?lb(t[0]):[];for(var i=-1,o=Array(r);++i<r;)for(var a=t[i],s=-1;++s<r;)s!=i&&(o[i]=Vf(o[i]||a,t[s],e,n));return lb(Ju(o,1),e,n)}var Ib=Al(function(t){return Tb(Nh(t,Lf))}),Mb=Al(function(t){var e=Yf(t);return Lf(e)&&(e=void 0),Tb(Nh(t,Lf),of(e))}),Lb=Mb,kb=Al(function(t){var e=Yf(t);return e="function"==typeof e?e:void 0,Tb(Nh(t,Lf),void 0,e)}),Ab=Al(yb);function Rb(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var s=r<o?e[r]:void 0;n(a,t[r],s)}return a}var Db=Al(function(t){var e=t.length,n=e>1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,bb(t,n)}),Pb={chunk:function(t,e,n){e=(n?Pl(t,e,n):void 0===e)?1:Oh(is(e),0);var r=null==t?0:t.length;if(!r||e<1)return[];for(var i=0,o=0,a=Array(Eh(r/e));i<r;)a[o++]=bc(t,i,i+=e);return a},compact:Ld,concat:kd,difference:Uf,differenceBy:qf,differenceWith:Zf,drop:function(t,e,n){var r=null==t?0:t.length;return r?bc(t,(e=n||void 0===e?1:is(e))<0?0:e,r):[]},dropRight:function(t,e,n){var r=null==t?0:t.length;return r?bc(t,0,(e=r-(e=n||void 0===e?1:is(e)))<0?0:e):[]},dropRightWhile:function(t,e){return t&&t.length?Qf(t,of(e),!0,!0):[]},dropWhile:function(t,e){return t&&t.length?Qf(t,of(e),!0):[]},fill:function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&Pl(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=is(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:is(r))<0&&(r+=i),r=n>r?0:bp(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},findIndex:Sp,findLastIndex:Mp,first:kp,flatten:Qu,flattenDeep:Bp,flattenDepth:function(t,e){return(null==t?0:t.length)?Ju(t,e=void 0===e?1:is(e)):[]},fromPairs:function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},head:kp,indexOf:cv,initial:function(t){return(null==t?0:t.length)?bc(t,0,-1):[]},intersection:pv,intersectionBy:gv,intersectionWith:mv,join:function(t,e){return null==t?"":tg.call(t,e)},last:Yf,lastIndexOf:function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=is(n))<0?og(r+i,0):ag(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):ol(t,al,i,!0)},nth:function(t,e){return t&&t.length?Rg(t,is(e)):void 0},pull:Am,pullAll:km,pullAllBy:function(t,e,n){return t&&t.length&&e&&e.length?Lm(t,e,of(n)):t},pullAllWith:function(t,e,n){return t&&t.length&&e&&e.length?Lm(t,e,void 0,n):t},pullAt:Nm,remove:function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=of(e);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Dm(t,i),n},reverse:ty,slice:function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Pl(t,e,n)?(e=0,n=r):(e=null==e?0:is(e),n=void 0===n?r:is(n)),bc(t,e,n)):[]},sortedIndex:function(t,e){return wy(t,e)},sortedIndexBy:function(t,e,n){return by(t,e,of(n))},sortedIndexOf:function(t,e){var n=null==t?0:t.length;if(n){var r=wy(t,e);if(r<n&&Ol(t[r],e))return r}return-1},sortedLastIndex:function(t,e){return wy(t,e,!0)},sortedLastIndexBy:function(t,e,n){return by(t,e,of(n),!0)},sortedLastIndexOf:function(t,e){if(null==t?0:t.length){var n=wy(t,e,!0)-1;if(Ol(t[n],e))return n}return-1},sortedUniq:function(t){return t&&t.length?Cy(t):[]},sortedUniqBy:function(t,e){return t&&t.length?Cy(t,of(e)):[]},tail:function(t){var e=null==t?0:t.length;return e?bc(t,1,e):[]},take:function(t,e,n){return t&&t.length?bc(t,0,(e=n||void 0===e?1:is(e))<0?0:e):[]},takeRight:function(t,e,n){var r=null==t?0:t.length;return r?bc(t,(e=r-(e=n||void 0===e?1:is(e)))<0?0:e,r):[]},takeRightWhile:function(t,e){return t&&t.length?Qf(t,of(e),!1,!0):[]},takeWhile:function(t,e){return t&&t.length?Qf(t,of(e)):[]},union:ub,unionBy:hb,unionWith:db,uniq:fb,uniqBy:pb,uniqWith:function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?lb(t,void 0,e):[]},unzip:yb,unzipWith:bb,without:Sb,xor:Ib,xorBy:Lb,xorWith:kb,zip:Ab,zipObject:function(t,e){return Rb(t||[],e||[],Il)},zipObjectDeep:function(t,e){return Rb(t||[],e||[],zg)},zipWith:Db},Nb={countBy:yf,each:ep,eachRight:ap,every:yp,filter:Cp,find:Ep,findLast:Lp,flatMap:Dp,flatMapDeep:function(t,e){return Ju(Rp(t,e),Pp)},flatMapDepth:function(t,e,n){return n=void 0===n?1:is(n),Ju(Rp(t,e),n)},forEach:ep,forEachRight:ap,groupBy:Up,includes:lv,invokeMap:kv,keyBy:ig,map:Rp,orderBy:Gg,partition:Em,reduce:Zm,reduceRight:function(t,e,n){var r=Ha(t)?Jm:Km,i=arguments.length<3;return r(t,of(e),n,i,op)},reject:function(t,e){return(Ha(t)?Nh:wp)(t,Lg(of(e)))},sample:function(t){return(Ha(t)?ny:ry)(t)},sampleSize:function(t,e,n){return e=(n?Pl(t,e,n):void 0===e)?1:is(e),(Ha(t)?oy:ay)(t,e)},shuffle:function(t){return(Ha(t)?ly:uy)(t)},size:cy,some:py,sortBy:gy},Bb={now:Cf},zb={after:function(t,e){if("function"!=typeof e)throw new TypeError("Expected a function");return t=is(t),function(){if(--t<1)return e.apply(this,arguments)}},ary:Sl,before:dc,bind:pc,bindKey:yc,curry:bf,curryRight:wf,debounce:Sf,defer:Hf,delay:Wf,flip:function(t){return xl(t,512)},memoize:zu,negate:Lg,once:function(t){return dc(2,t)},overArgs:qg,partial:Cm,partialRight:xm,rearg:qm,rest:function(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return Al(t,e=void 0===e?e:is(e))},spread:function(t,e){if("function"!=typeof t)throw new TypeError("Expected a function");return e=null==e?0:xy(is(e),0),Al(function(n){var r=n[e],i=wc(n,0,e);return r&&qu(i,r),Is(t,this,i)})},throttle:Vy,unary:function(t){return Sl(t,1)},wrap:function(t,e){return Cm(tp(e),t)}},Fb={castArray:function(){if(!arguments.length)return[];var t=arguments[0];return Ha(t)?t:[t]},clone:Id,cloneDeep:Md,cloneDeepWith:function(t,e){return Td(t,5,e="function"==typeof e?e:void 0)},cloneWith:function(t,e){return Td(t,4,e="function"==typeof e?e:void 0)},conformsTo:function(t,e){return null==e||sf(t,e,du(e))},eq:Ol,gt:qp,gte:Zp,isArguments:$l,isArray:Ha,isArrayBuffer:Dv,isArrayLike:Dl,isArrayLikeObject:Lf,isBoolean:Pv,isBuffer:Kl,isDate:zv,isElement:function(t){return Na(t)&&1===t.nodeType&&!lc(t)},isEmpty:Hv,isEqual:jv,isEqualWith:function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?Ud(t,e,void 0,n):!!r},isError:uc,isFinite:function(t){return"number"==typeof t&&Wv(t)},isFunction:as,isInteger:Gv,isLength:Rl,isMap:bd,isMatch:function(t,e){return t===e||Yd(t,e,qd(e))},isMatchWith:function(t,e,n){return n="function"==typeof n?n:void 0,Yd(t,e,qd(e),n)},isNaN:$v,isNative:function(t){if(Uv(t))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ys(t)},isNil:Yv,isNull:Xv,isNumber:Vv,isObject:Ka,isObjectLike:Na,isPlainObject:lc,isRegExp:Zv,isSafeInteger:function(t){return Gv(t)&&t>=-9007199254740991&&t<=Jv},isSet:_d,isString:iv,isSymbol:Ba,isTypedArray:ou,isUndefined:Qv,isWeakMap:function(t){return Na(t)&&"[object WeakMap]"==sd(t)},isWeakSet:function(t){return Na(t)&&"[object WeakSet]"==Pa(t)},lt:hg,lte:fg,toArray:Ag,toFinite:rs,toInteger:is,toLength:bp,toNumber:es,toPlainObject:Af,toSafeInteger:function(t){return t?Th(is(t),-9007199254740991,Ky):0===t?t:0},toString:Gu},Hb={add:$a,ceil:xh,divide:Jf,floor:zp,max:mg,maxBy:yg,mean:function(t){return wg(t,os)},meanBy:function(t,e){return wg(t,of(e))},min:Tg,minBy:function(t,e){return t&&t.length?gg(t,of(e),cg):void 0},multiply:Mg,round:ey,subtract:Ty,sum:function(t){return t&&t.length?bg(t,os):0},sumBy:Iy},jb=Ih,Wb=rv,Gb=function(t,e,n){if(n&&"boolean"!=typeof n&&Pl(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=rs(t),void 0===e?(e=t,t=0):e=rs(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Wm();return jm(t+i*(e-t+Hm("1e-"+((i+"").length-1))),e)}return Fm(t,e)},Vb={assign:vu,assignIn:wu,assignInWith:_u,assignWith:Su,at:ec,create:function(t,e){var n=Os(t);return null==e?n:Lh(n,e)},defaults:If,defaultsDeep:Bf,entries:lp,entriesIn:up,extend:wu,extendWith:_u,findKey:function(t,e){return Op(t,of(e),hf)},findLastKey:function(t,e){return Op(t,of(e),ip)},forIn:Wp,forInRight:function(t,e){return null==t?t:rp(t,tp(e),yu)},forOwn:function(t,e){return t&&hf(t,tp(e))},forOwnRight:function(t,e){return t&&ip(t,tp(e))},functions:function(t){return null==t?[]:Gp(t,du(t))},functionsIn:function(t){return null==t?[]:Gp(t,yu(t))},get:Yu,has:tv,hasIn:tf,invert:Cv,invertBy:Ov,invoke:Mv,keys:du,keysIn:yu,mapKeys:pg,mapValues:function(t,e){var n={};return e=of(e),hf(t,function(t,r,i){El(n,r,e(t,r,i))}),n},merge:_g,mergeWith:Nf,omit:Bg,omitBy:function(t,e){return Hg(t,Lg(of(e)))},pick:Tm,pickBy:Hg,result:function(t,e,n){var r=-1,i=(e=Vu(e,t)).length;for(i||(i=1,t=void 0);++r<i;){var o=null==t?void 0:t[$u(e[r])];void 0===o&&(r=i,o=n),t=as(o)?o.call(t):o}return t},set:sy,setWith:function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:zg(t,e,n,r)},toPairs:lp,toPairsIn:up,transform:function(t,e,n){var r=Ha(t),i=r||Kl(t)||ou(t);if(e=of(e),null==n){var o=t&&t.constructor;n=i?r?new o:[]:Ka(t)&&as(o)?Os(nc(t)):{}}return(i?il:hf)(t,function(t,r,i){return e(n,t,r,i)}),n},unset:gb,update:function(t,e,n){return null==t?t:wb(t,e,tp(n))},updateWith:function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:wb(t,e,tp(n),r)},values:av,valuesIn:function(t){return null==t?[]:ov(t,yu(t))}},$b={at:Ob,chain:Sh,commit:function(){return new js(this.value(),this.__chain__)},lodash:$s,next:function(){void 0===this.__values__&&(this.__values__=Ag(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},plant:function(t){for(var e,n=this;n instanceof Rs;){var r=Gs(n);r.__index__=0,r.__values__=void 0,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},reverse:function(){var t=this.__wrapped__;if(t instanceof Ds){var e=t;return this.__actions__.length&&(e=new Ds(this)),(e=e.reverse()).__actions__.push({func:$y,args:[ty],thisArg:void 0}),new js(e,this.__chain__)}return this.thru(ty)},tap:function(t,e){return e(t),t},thru:$y,toIterator:function(){return this},toJSON:qy,value:qy,valueOf:qy,wrapperChain:function(){return Sh(this)}},Ub={camelCase:bh,capitalize:zc,deburr:Vc,endsWith:function(t,e,n){t=Gu(t),e=Ga(e);var r=t.length,i=n=void 0===n?r:Th(is(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},escape:fp,escapeRegExp:function(t){return(t=Gu(t))&&vp.test(t)?t.replace(pp,"\\$&"):t},kebabCase:ng,lowerCase:lg,lowerFirst:ug,pad:function(t,e,n){t=Gu(t);var r=(e=is(e))?fm(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return vm(mm(i),n)+t+vm(gm(i),n)},padEnd:function(t,e,n){t=Gu(t);var r=(e=is(e))?fm(t):0;return e&&r<e?t+vm(e-r,n):t},padStart:function(t,e,n){t=Gu(t);var r=(e=is(e))?fm(t):0;return e&&r<e?vm(e-r,n)+t:t},parseInt:function(t,e,n){return n||null==e?e=0:e&&(e=+e),bm(Gu(t).replace(ym,""),e||0)},repeat:function(t,e,n){return e=(n?Pl(t,e,n):void 0===e)?1:is(e),Qg(Gu(t),e)},replace:function(){var t=arguments,e=Gu(t[0]);return t.length<3?e:e.replace(t[1],t[2])},snakeCase:dy,split:_y,startCase:Ey,startsWith:function(t,e,n){return t=Gu(t),n=null==n?0:Th(is(n),0,t.length),e=Ga(e),t.slice(n,n+e.length)==e},template:function(t,e,n){var r=Py.imports._.templateSettings||Py;n&&Pl(t,e,n)&&(e=void 0),t=Gu(t),e=_u({},e,r,ky);var i,o,a=_u({},e.imports,r.imports,ky),s=du(a),l=ov(a,s),u=0,c=e.interpolate||jy,h="__p += '",d=RegExp((e.escape||jy).source+"|"+c.source+"|"+(c===Dy?Hy:jy).source+"|"+(e.evaluate||jy).source+"|$","g"),f=Gy.call(e,"sourceURL")?"//# sourceURL="+(e.sourceURL+"").replace(/\s/g," ")+"\n":"";t.replace(d,function(e,n,r,a,s,l){return r||(r=a),h+=t.slice(u,l).replace(Wy,Ry),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+e.length,e}),h+="';\n";var p=Gy.call(e,"variable")&&e.variable;if(p){if(Fy.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(Ny,""):h).replace(By,"$1").replace(zy,"$1;"),h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=hc(function(){return Function(s,f+"return "+h).apply(void 0,l)});if(v.source=h,uc(v))throw v;return v},templateSettings:Py,toLower:function(t){return Gu(t).toLowerCase()},toUpper:Zy,trim:tb,trimEnd:function(t,e,n){if((t=Gu(t))&&(n||void 0===e))return t.slice(0,Ya(t)+1);if(!t||!(e=Ga(e)))return t;var r=Pc(t);return wc(r,0,Jy(r,Pc(e))+1).join("")},trimStart:function(t,e,n){if((t=Gu(t))&&(n||void 0===e))return t.replace(eb,"");if(!t||!(e=Ga(e)))return t;var r=Pc(t);return wc(r,Qy(r,Pc(e))).join("")},truncate:function(t,e){var n=30,r="...";if(Ka(e)){var i="separator"in e?e.separator:i;n="length"in e?is(e.length):n,r="omission"in e?Ga(e.omission):r}var o=(t=Gu(t)).length;if(_c(t)){var a=Pc(t);o=a.length}if(n>=o)return t;var s=n-fm(r);if(s<1)return r;var l=a?wc(a,0,s).join(""):t.slice(0,s);if(void 0===i)return l+r;if(a&&(s+=l.length-s),Zv(i)){if(t.slice(s).search(i)){var u,c=l;for(i.global||(i=RegExp(i.source,Gu(nb.exec(i))+"g")),i.lastIndex=0;u=i.exec(c);)var h=u.index;l=l.slice(0,void 0===h?s:h)}}else if(t.indexOf(Ga(i),s)!=s){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+r},unescape:function(t){return(t=Gu(t))&&ob.test(t)?t.replace(ib,rb):t},upperCase:_b,upperFirst:Bc,words:vh},Yb={attempt:hc,bindAll:gc,cond:af,conforms:function(t){return function(t){var e=du(t);return function(n){return sf(n,t,e)}}(Td(t,1))},constant:Qs,defaultTo:function(t,e){return null==t||t!=t?e:t},flow:Hp,flowRight:jp,identity:os,iteratee:function(t){return of("function"==typeof t?t:Td(t,1))},matches:vg,matchesProperty:function(t,e){return ef(t,Td(e,1))},method:Sg,methodOf:Og,mixin:Ig,noop:Ps,nthArg:function(t){return t=is(t),Al(function(e){return Rg(e,t)})},over:$g,overEvery:Kg,overSome:Zg,property:rf,propertyOf:function(t){return function(e){return null==t?void 0:Uu(t,e)}},range:Um,rangeRight:Ym,stubArray:Bh,stubFalse:Ul,stubObject:function(){return{}},stubString:function(){return""},stubTrue:Oy,times:function(t,e){if((t=is(t))<1||t>9007199254740991)return[];var n=Uy,r=Yy(t,Uy);e=tp(e),t-=Uy;for(var i=Fl(r,e);++n<t;)e(n);return i},toPath:function(t){return Ha(t)?Fa(t,$u):Ba(t)?[t]:Ws(Wu(Gu(t)))},uniqueId:function(t){var e=++vb;return Gu(t)+e}};var Xb=Math.max,qb=Math.min;var Kb=Math.min;var Zb,Jb=4294967295,Qb=Array.prototype,tw=Object.prototype.hasOwnProperty,ew=Ia?Ia.iterator:void 0,nw=Math.max,rw=Math.min,iw=function(t){return function(e,n,r){if(null==r){var i=Ka(n),o=i&&du(n),a=o&&o.length&&Gp(n,o);(a?a.length:i)||(r=n,n=e,e=this)}return t(e,n,r)}}(Ig);function ow(t){return ow="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ow(t)}$s.after=zb.after,$s.ary=zb.ary,$s.assign=Vb.assign,$s.assignIn=Vb.assignIn,$s.assignInWith=Vb.assignInWith,$s.assignWith=Vb.assignWith,$s.at=Vb.at,$s.before=zb.before,$s.bind=zb.bind,$s.bindAll=Yb.bindAll,$s.bindKey=zb.bindKey,$s.castArray=Fb.castArray,$s.chain=$b.chain,$s.chunk=Pb.chunk,$s.compact=Pb.compact,$s.concat=Pb.concat,$s.cond=Yb.cond,$s.conforms=Yb.conforms,$s.constant=Yb.constant,$s.countBy=Nb.countBy,$s.create=Vb.create,$s.curry=zb.curry,$s.curryRight=zb.curryRight,$s.debounce=zb.debounce,$s.defaults=Vb.defaults,$s.defaultsDeep=Vb.defaultsDeep,$s.defer=zb.defer,$s.delay=zb.delay,$s.difference=Pb.difference,$s.differenceBy=Pb.differenceBy,$s.differenceWith=Pb.differenceWith,$s.drop=Pb.drop,$s.dropRight=Pb.dropRight,$s.dropRightWhile=Pb.dropRightWhile,$s.dropWhile=Pb.dropWhile,$s.fill=Pb.fill,$s.filter=Nb.filter,$s.flatMap=Nb.flatMap,$s.flatMapDeep=Nb.flatMapDeep,$s.flatMapDepth=Nb.flatMapDepth,$s.flatten=Pb.flatten,$s.flattenDeep=Pb.flattenDeep,$s.flattenDepth=Pb.flattenDepth,$s.flip=zb.flip,$s.flow=Yb.flow,$s.flowRight=Yb.flowRight,$s.fromPairs=Pb.fromPairs,$s.functions=Vb.functions,$s.functionsIn=Vb.functionsIn,$s.groupBy=Nb.groupBy,$s.initial=Pb.initial,$s.intersection=Pb.intersection,$s.intersectionBy=Pb.intersectionBy,$s.intersectionWith=Pb.intersectionWith,$s.invert=Vb.invert,$s.invertBy=Vb.invertBy,$s.invokeMap=Nb.invokeMap,$s.iteratee=Yb.iteratee,$s.keyBy=Nb.keyBy,$s.keys=du,$s.keysIn=Vb.keysIn,$s.map=Nb.map,$s.mapKeys=Vb.mapKeys,$s.mapValues=Vb.mapValues,$s.matches=Yb.matches,$s.matchesProperty=Yb.matchesProperty,$s.memoize=zb.memoize,$s.merge=Vb.merge,$s.mergeWith=Vb.mergeWith,$s.method=Yb.method,$s.methodOf=Yb.methodOf,$s.mixin=iw,$s.negate=Lg,$s.nthArg=Yb.nthArg,$s.omit=Vb.omit,$s.omitBy=Vb.omitBy,$s.once=zb.once,$s.orderBy=Nb.orderBy,$s.over=Yb.over,$s.overArgs=zb.overArgs,$s.overEvery=Yb.overEvery,$s.overSome=Yb.overSome,$s.partial=zb.partial,$s.partialRight=zb.partialRight,$s.partition=Nb.partition,$s.pick=Vb.pick,$s.pickBy=Vb.pickBy,$s.property=Yb.property,$s.propertyOf=Yb.propertyOf,$s.pull=Pb.pull,$s.pullAll=Pb.pullAll,$s.pullAllBy=Pb.pullAllBy,$s.pullAllWith=Pb.pullAllWith,$s.pullAt=Pb.pullAt,$s.range=Yb.range,$s.rangeRight=Yb.rangeRight,$s.rearg=zb.rearg,$s.reject=Nb.reject,$s.remove=Pb.remove,$s.rest=zb.rest,$s.reverse=Pb.reverse,$s.sampleSize=Nb.sampleSize,$s.set=Vb.set,$s.setWith=Vb.setWith,$s.shuffle=Nb.shuffle,$s.slice=Pb.slice,$s.sortBy=Nb.sortBy,$s.sortedUniq=Pb.sortedUniq,$s.sortedUniqBy=Pb.sortedUniqBy,$s.split=Ub.split,$s.spread=zb.spread,$s.tail=Pb.tail,$s.take=Pb.take,$s.takeRight=Pb.takeRight,$s.takeRightWhile=Pb.takeRightWhile,$s.takeWhile=Pb.takeWhile,$s.tap=$b.tap,$s.throttle=zb.throttle,$s.thru=$y,$s.toArray=Fb.toArray,$s.toPairs=Vb.toPairs,$s.toPairsIn=Vb.toPairsIn,$s.toPath=Yb.toPath,$s.toPlainObject=Fb.toPlainObject,$s.transform=Vb.transform,$s.unary=zb.unary,$s.union=Pb.union,$s.unionBy=Pb.unionBy,$s.unionWith=Pb.unionWith,$s.uniq=Pb.uniq,$s.uniqBy=Pb.uniqBy,$s.uniqWith=Pb.uniqWith,$s.unset=Vb.unset,$s.unzip=Pb.unzip,$s.unzipWith=Pb.unzipWith,$s.update=Vb.update,$s.updateWith=Vb.updateWith,$s.values=Vb.values,$s.valuesIn=Vb.valuesIn,$s.without=Pb.without,$s.words=Ub.words,$s.wrap=zb.wrap,$s.xor=Pb.xor,$s.xorBy=Pb.xorBy,$s.xorWith=Pb.xorWith,$s.zip=Pb.zip,$s.zipObject=Pb.zipObject,$s.zipObjectDeep=Pb.zipObjectDeep,$s.zipWith=Pb.zipWith,$s.entries=Vb.toPairs,$s.entriesIn=Vb.toPairsIn,$s.extend=Vb.assignIn,$s.extendWith=Vb.assignInWith,iw($s,$s),$s.add=Hb.add,$s.attempt=Yb.attempt,$s.camelCase=Ub.camelCase,$s.capitalize=Ub.capitalize,$s.ceil=Hb.ceil,$s.clamp=jb,$s.clone=Fb.clone,$s.cloneDeep=Fb.cloneDeep,$s.cloneDeepWith=Fb.cloneDeepWith,$s.cloneWith=Fb.cloneWith,$s.conformsTo=Fb.conformsTo,$s.deburr=Ub.deburr,$s.defaultTo=Yb.defaultTo,$s.divide=Hb.divide,$s.endsWith=Ub.endsWith,$s.eq=Fb.eq,$s.escape=Ub.escape,$s.escapeRegExp=Ub.escapeRegExp,$s.every=Nb.every,$s.find=Nb.find,$s.findIndex=Pb.findIndex,$s.findKey=Vb.findKey,$s.findLast=Nb.findLast,$s.findLastIndex=Pb.findLastIndex,$s.findLastKey=Vb.findLastKey,$s.floor=Hb.floor,$s.forEach=Nb.forEach,$s.forEachRight=Nb.forEachRight,$s.forIn=Vb.forIn,$s.forInRight=Vb.forInRight,$s.forOwn=Vb.forOwn,$s.forOwnRight=Vb.forOwnRight,$s.get=Vb.get,$s.gt=Fb.gt,$s.gte=Fb.gte,$s.has=Vb.has,$s.hasIn=Vb.hasIn,$s.head=Pb.head,$s.identity=os,$s.includes=Nb.includes,$s.indexOf=Pb.indexOf,$s.inRange=Wb,$s.invoke=Vb.invoke,$s.isArguments=Fb.isArguments,$s.isArray=Ha,$s.isArrayBuffer=Fb.isArrayBuffer,$s.isArrayLike=Fb.isArrayLike,$s.isArrayLikeObject=Fb.isArrayLikeObject,$s.isBoolean=Fb.isBoolean,$s.isBuffer=Fb.isBuffer,$s.isDate=Fb.isDate,$s.isElement=Fb.isElement,$s.isEmpty=Fb.isEmpty,$s.isEqual=Fb.isEqual,$s.isEqualWith=Fb.isEqualWith,$s.isError=Fb.isError,$s.isFinite=Fb.isFinite,$s.isFunction=Fb.isFunction,$s.isInteger=Fb.isInteger,$s.isLength=Fb.isLength,$s.isMap=Fb.isMap,$s.isMatch=Fb.isMatch,$s.isMatchWith=Fb.isMatchWith,$s.isNaN=Fb.isNaN,$s.isNative=Fb.isNative,$s.isNil=Fb.isNil,$s.isNull=Fb.isNull,$s.isNumber=Fb.isNumber,$s.isObject=Ka,$s.isObjectLike=Fb.isObjectLike,$s.isPlainObject=Fb.isPlainObject,$s.isRegExp=Fb.isRegExp,$s.isSafeInteger=Fb.isSafeInteger,$s.isSet=Fb.isSet,$s.isString=Fb.isString,$s.isSymbol=Fb.isSymbol,$s.isTypedArray=Fb.isTypedArray,$s.isUndefined=Fb.isUndefined,$s.isWeakMap=Fb.isWeakMap,$s.isWeakSet=Fb.isWeakSet,$s.join=Pb.join,$s.kebabCase=Ub.kebabCase,$s.last=Yf,$s.lastIndexOf=Pb.lastIndexOf,$s.lowerCase=Ub.lowerCase,$s.lowerFirst=Ub.lowerFirst,$s.lt=Fb.lt,$s.lte=Fb.lte,$s.max=Hb.max,$s.maxBy=Hb.maxBy,$s.mean=Hb.mean,$s.meanBy=Hb.meanBy,$s.min=Hb.min,$s.minBy=Hb.minBy,$s.stubArray=Yb.stubArray,$s.stubFalse=Yb.stubFalse,$s.stubObject=Yb.stubObject,$s.stubString=Yb.stubString,$s.stubTrue=Yb.stubTrue,$s.multiply=Hb.multiply,$s.nth=Pb.nth,$s.noop=Yb.noop,$s.now=Bb.now,$s.pad=Ub.pad,$s.padEnd=Ub.padEnd,$s.padStart=Ub.padStart,$s.parseInt=Ub.parseInt,$s.random=Gb,$s.reduce=Nb.reduce,$s.reduceRight=Nb.reduceRight,$s.repeat=Ub.repeat,$s.replace=Ub.replace,$s.result=Vb.result,$s.round=Hb.round,$s.sample=Nb.sample,$s.size=Nb.size,$s.snakeCase=Ub.snakeCase,$s.some=Nb.some,$s.sortedIndex=Pb.sortedIndex,$s.sortedIndexBy=Pb.sortedIndexBy,$s.sortedIndexOf=Pb.sortedIndexOf,$s.sortedLastIndex=Pb.sortedLastIndex,$s.sortedLastIndexBy=Pb.sortedLastIndexBy,$s.sortedLastIndexOf=Pb.sortedLastIndexOf,$s.startCase=Ub.startCase,$s.startsWith=Ub.startsWith,$s.subtract=Hb.subtract,$s.sum=Hb.sum,$s.sumBy=Hb.sumBy,$s.template=Ub.template,$s.times=Yb.times,$s.toFinite=Fb.toFinite,$s.toInteger=is,$s.toLength=Fb.toLength,$s.toLower=Ub.toLower,$s.toNumber=Fb.toNumber,$s.toSafeInteger=Fb.toSafeInteger,$s.toString=Fb.toString,$s.toUpper=Ub.toUpper,$s.trim=Ub.trim,$s.trimEnd=Ub.trimEnd,$s.trimStart=Ub.trimStart,$s.truncate=Ub.truncate,$s.unescape=Ub.unescape,$s.uniqueId=Yb.uniqueId,$s.upperCase=Ub.upperCase,$s.upperFirst=Ub.upperFirst,$s.each=Nb.forEach,$s.eachRight=Nb.forEachRight,$s.first=Pb.head,iw($s,(Zb={},hf($s,function(t,e){tw.call($s.prototype,e)||(Zb[e]=t)}),Zb),{chain:!1}),$s.VERSION="4.17.21",($s.templateSettings=Ub.templateSettings).imports._=$s,il(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){$s[t].placeholder=$s}),il(["drop","take"],function(t,e){Ds.prototype[t]=function(n){n=void 0===n?1:nw(is(n),0);var r=this.__filtered__&&!e?new Ds(this):this.clone();return r.__filtered__?r.__takeCount__=rw(n,r.__takeCount__):r.__views__.push({size:rw(n,Jb),type:t+(r.__dir__<0?"Right":"")}),r},Ds.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),il(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;Ds.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:of(t),type:n}),e.__filtered__=e.__filtered__||r,e}}),il(["head","last"],function(t,e){var n="take"+(e?"Right":"");Ds.prototype[t]=function(){return this[n](1).value()[0]}}),il(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");Ds.prototype[t]=function(){return this.__filtered__?new Ds(this):this[n](1)}}),Ds.prototype.compact=function(){return this.filter(os)},Ds.prototype.find=function(t){return this.filter(t).head()},Ds.prototype.findLast=function(t){return this.reverse().find(t)},Ds.prototype.invokeMap=Al(function(t,e){return"function"==typeof t?new Ds(this):this.map(function(n){return Iv(n,t,e)})}),Ds.prototype.reject=function(t){return this.filter(Lg(of(t)))},Ds.prototype.slice=function(t,e){t=is(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Ds(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=is(e))<0?n.dropRight(-e):n.take(e-t)),n)},Ds.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ds.prototype.toArray=function(){return this.take(Jb)},hf(Ds.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=$s[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&($s.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,s=e instanceof Ds,l=a[0],u=s||Ha(e),c=function(t){var e=i.apply($s,qu([t],a));return r&&h?e[0]:e};u&&n&&"function"==typeof l&&1!=l.length&&(s=u=!1);var h=this.__chain__,d=!!this.__actions__.length,f=o&&!h,p=s&&!d;if(!o&&u){e=p?e:new Ds(this);var v=t.apply(e,a);return v.__actions__.push({func:$y,args:[c],thisArg:void 0}),new js(v,h)}return f&&p?t.apply(this,a):(v=this.thru(c),f?r?v.value()[0]:v.value():v)})}),il(["pop","push","shift","sort","splice","unshift"],function(t){var e=Qb[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);$s.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ha(i)?i:[],t)}return this[n](function(n){return e.apply(Ha(n)?n:[],t)})}}),hf(Ds.prototype,function(t,e){var n=$s[e];if(n){var r=n.name+"";tw.call(zs,r)||(zs[r]=[]),zs[r].push({name:e,func:n})}}),zs[yl(void 0,2).name]=[{name:"wrapper",func:void 0}],Ds.prototype.clone=function(){var t=new Ds(this.__wrapped__);return t.__actions__=Ws(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ws(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ws(this.__views__),t},Ds.prototype.reverse=function(){if(this.__filtered__){var t=new Ds(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ds.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ha(t),r=e<0,i=n?t.length:0,o=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=qb(e,t+a);break;case"takeRight":t=Xb(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,h=c.length,d=0,f=Kb(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return Xy(t,this.__actions__);var p=[];t:for(;l--&&d<f;){for(var v=-1,g=t[u+=e];++v<h;){var m=c[v],y=m.iteratee,b=m.type,w=y(g);if(2==b)g=w;else if(!w){if(1==b)continue t;break t}}p[d++]=g}return p},$s.prototype.at=$b.at,$s.prototype.chain=$b.wrapperChain,$s.prototype.commit=$b.commit,$s.prototype.next=$b.next,$s.prototype.plant=$b.plant,$s.prototype.reverse=$b.reverse,$s.prototype.toJSON=$s.prototype.valueOf=$s.prototype.value=$b.value,$s.prototype.first=$s.prototype.head,ew&&($s.prototype[ew]=$b.toIterator);var aw=/^\s+/,sw=/\s+$/;function lw(t,e){if(e=e||{},(t=t||"")instanceof lw)return t;if(!(this instanceof lw))return new lw(t,e);var n=function(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;"string"==typeof t&&(t=function(t){t=t.replace(aw,"").replace(sw,"").toLowerCase();var e,n=!1;if(Ew[t])t=Ew[t],n=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=zw.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=zw.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=zw.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=zw.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=zw.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=zw.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=zw.hex8.exec(t))return{r:Lw(e[1]),g:Lw(e[2]),b:Lw(e[3]),a:Dw(e[4]),format:n?"name":"hex8"};if(e=zw.hex6.exec(t))return{r:Lw(e[1]),g:Lw(e[2]),b:Lw(e[3]),format:n?"name":"hex"};if(e=zw.hex4.exec(t))return{r:Lw(e[1]+""+e[1]),g:Lw(e[2]+""+e[2]),b:Lw(e[3]+""+e[3]),a:Dw(e[4]+""+e[4]),format:n?"name":"hex8"};if(e=zw.hex3.exec(t))return{r:Lw(e[1]+""+e[1]),g:Lw(e[2]+""+e[2]),b:Lw(e[3]+""+e[3]),format:n?"name":"hex"};return!1}(t));"object"==ow(t)&&(Fw(t.r)&&Fw(t.g)&&Fw(t.b)?(l=t.r,u=t.g,c=t.b,e={r:255*Iw(l,255),g:255*Iw(u,255),b:255*Iw(c,255)},a=!0,s="%"===String(t.r).substr(-1)?"prgb":"rgb"):Fw(t.h)&&Fw(t.s)&&Fw(t.v)?(r=Aw(t.s),i=Aw(t.v),e=function(t,e,n){t=6*Iw(t,360),e=Iw(e,100),n=Iw(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),l=r%6,u=[n,a,o,o,s,n][l],c=[s,n,n,a,o,o][l],h=[o,o,s,n,n,a][l];return{r:255*u,g:255*c,b:255*h}}(t.h,r,i),a=!0,s="hsv"):Fw(t.h)&&Fw(t.s)&&Fw(t.l)&&(r=Aw(t.s),o=Aw(t.l),e=function(t,e,n){var r,i,o;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=Iw(t,360),e=Iw(e,100),n=Iw(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;r=a(l,s,t+1/3),i=a(l,s,t),o=a(l,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(t.h,r,o),a=!0,s="hsl"),t.hasOwnProperty("a")&&(n=t.a));var l,u,c;return n=Tw(n),{ok:a,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function uw(t,e,n){t=Iw(t,255),e=Iw(e,255),n=Iw(n,255);var r,i,o=Math.max(t,e,n),a=Math.min(t,e,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:i,l:s}}function cw(t,e,n){t=Iw(t,255),e=Iw(e,255),n=Iw(n,255);var r,i,o=Math.max(t,e,n),a=Math.min(t,e,n),s=o,l=o-a;if(i=0===o?0:l/o,o==a)r=0;else{switch(o){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:i,v:s}}function hw(t,e,n,r){var i=[kw(Math.round(t).toString(16)),kw(Math.round(e).toString(16)),kw(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function dw(t,e,n,r){return[kw(Rw(r)),kw(Math.round(t).toString(16)),kw(Math.round(e).toString(16)),kw(Math.round(n).toString(16))].join("")}function fw(t,e){e=0===e?0:e||10;var n=lw(t).toHsl();return n.s-=e/100,n.s=Mw(n.s),lw(n)}function pw(t,e){e=0===e?0:e||10;var n=lw(t).toHsl();return n.s+=e/100,n.s=Mw(n.s),lw(n)}function vw(t){return lw(t).desaturate(100)}function gw(t,e){e=0===e?0:e||10;var n=lw(t).toHsl();return n.l+=e/100,n.l=Mw(n.l),lw(n)}function mw(t,e){e=0===e?0:e||10;var n=lw(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-e/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-e/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-e/100*255))),lw(n)}function yw(t,e){e=0===e?0:e||10;var n=lw(t).toHsl();return n.l-=e/100,n.l=Mw(n.l),lw(n)}function bw(t,e){var n=lw(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,lw(n)}function ww(t){var e=lw(t).toHsl();return e.h=(e.h+180)%360,lw(e)}function Cw(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=lw(t).toHsl(),r=[lw(t)],i=360/e,o=1;o<e;o++)r.push(lw({h:(n.h+o*i)%360,s:n.s,l:n.l}));return r}function _w(t){var e=lw(t).toHsl(),n=e.h;return[lw(t),lw({h:(n+72)%360,s:e.s,l:e.l}),lw({h:(n+216)%360,s:e.s,l:e.l})]}function xw(t,e,n){e=e||6,n=n||30;var r=lw(t).toHsl(),i=360/n,o=[lw(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(lw(r));return o}function Sw(t,e){e=e||6;for(var n=lw(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(lw({h:r,s:i,v:o})),o=(o+s)%1;return a}lw.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,n,r=this.toRgb();return t=r.r/255,e=r.g/255,n=r.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=Tw(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=cw(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=cw(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=uw(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=uw(this._r,this._g,this._b),e=Math.round(360*t.h),n=Math.round(100*t.s),r=Math.round(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return hw(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,n,r,i){var o=[kw(Math.round(t).toString(16)),kw(Math.round(e).toString(16)),kw(Math.round(n).toString(16)),kw(Rw(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*Iw(this._r,255))+"%",g:Math.round(100*Iw(this._g,255))+"%",b:Math.round(100*Iw(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*Iw(this._r,255))+"%, "+Math.round(100*Iw(this._g,255))+"%, "+Math.round(100*Iw(this._b,255))+"%)":"rgba("+Math.round(100*Iw(this._r,255))+"%, "+Math.round(100*Iw(this._g,255))+"%, "+Math.round(100*Iw(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Ow[hw(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+dw(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";if(t){var i=lw(t);n="#"+dw(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex4"===t&&(n=this.toHex8String(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return lw(this.toString())},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(gw,arguments)},brighten:function(){return this._applyModification(mw,arguments)},darken:function(){return this._applyModification(yw,arguments)},desaturate:function(){return this._applyModification(fw,arguments)},saturate:function(){return this._applyModification(pw,arguments)},greyscale:function(){return this._applyModification(vw,arguments)},spin:function(){return this._applyModification(bw,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(xw,arguments)},complement:function(){return this._applyCombination(ww,arguments)},monochromatic:function(){return this._applyCombination(Sw,arguments)},splitcomplement:function(){return this._applyCombination(_w,arguments)},triad:function(){return this._applyCombination(Cw,[3])},tetrad:function(){return this._applyCombination(Cw,[4])}},lw.fromRatio=function(t,e){if("object"==ow(t)){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:Aw(t[r]));t=n}return lw(t,e)},lw.equals=function(t,e){return!(!t||!e)&&lw(t).toRgbString()==lw(e).toRgbString()},lw.random=function(){return lw.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},lw.mix=function(t,e,n){n=0===n?0:n||50;var r=lw(t).toRgb(),i=lw(e).toRgb(),o=n/100;return lw({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},lw.readability=function(t,e){var n=lw(t),r=lw(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},lw.isReadable=function(t,e,n){var r,i,o=lw.readability(t,e);switch(i=!1,r=function(t){var e,n;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==n&&"large"!==n&&(n="small");return{level:e,size:n}}(n),r.level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},lw.mostReadable=function(t,e,n){var r,i,o,a,s=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var u=0;u<e.length;u++)(r=lw.readability(t,e[u]))>l&&(l=r,s=lw(e[u]));return lw.isReadable(t,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,lw.mostReadable(t,["#fff","#000"],n))};var Ew=lw.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ow=lw.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(Ew);function Tw(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Iw(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Mw(t){return Math.min(1,Math.max(0,t))}function Lw(t){return parseInt(t,16)}function kw(t){return 1==t.length?"0"+t:""+t}function Aw(t){return t<=1&&(t=100*t+"%"),t}function Rw(t){return Math.round(255*parseFloat(t)).toString(16)}function Dw(t){return Lw(t)/255}var Pw,Nw,Bw,zw=(Nw="[\\s|\\(]+("+(Pw="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Pw+")[,|\\s]+("+Pw+")\\s*\\)?",Bw="[\\s|\\(]+("+Pw+")[,|\\s]+("+Pw+")[,|\\s]+("+Pw+")[,|\\s]+("+Pw+")\\s*\\)?",{CSS_UNIT:new RegExp(Pw),rgb:new RegExp("rgb"+Nw),rgba:new RegExp("rgba"+Bw),hsl:new RegExp("hsl"+Nw),hsla:new RegExp("hsla"+Bw),hsv:new RegExp("hsv"+Nw),hsva:new RegExp("hsva"+Bw),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Fw(t){return!!zw.CSS_UNIT.exec(t)}var Hw,jw=[95,85,75,30,15,0,15,30,45,60,80],Ww=function(t){return lw(t).getLuminance()<=.5},Gw=[{fontColorIndex:0,bgColorIndex:3},{fontColorIndex:13,bgColorIndex:8},{fontColorIndex:14,bgColorIndex:1}],Vw=function(t){void 0===t&&(t={});var e=Array.from(Array(15)).fill(na),n=t.basicColorRelations,r=void 0===n?[]:n,i=function(t){for(var e=[],n=0;n<11;n++){var r=jw[n];e.push(Zy(0===r?t:lw.mix(t,n<5?"#FFFFFF":"#000000",r).toHexString()))}return e}(t.brandColor);return r.forEach(function(t){e[t.basicColorIndex]=i[t.standardColorIndex]}),Gw.forEach(function(t){var n=t.fontColorIndex,r=t.bgColorIndex;e[n]=Ww(e[r])?na:ea}),a(a({},t),{basicColors:e})},$w=Vw({brandColor:"#3471F9",semanticColors:{red:"#FF4D4F",green:"#29A294",yellow:"#FAAD14"},others:{highlight:"#87B5FF",results:"#F0F7FF"},basicColorRelations:[{basicColorIndex:1,standardColorIndex:0},{basicColorIndex:2,standardColorIndex:1},{basicColorIndex:3,standardColorIndex:5},{basicColorIndex:4,standardColorIndex:6},{basicColorIndex:5,standardColorIndex:6},{basicColorIndex:6,standardColorIndex:6},{basicColorIndex:7,standardColorIndex:5},{basicColorIndex:9,standardColorIndex:1},{basicColorIndex:10,standardColorIndex:4},{basicColorIndex:11,standardColorIndex:4},{basicColorIndex:12,standardColorIndex:5}]}),Uw={default:Vw({brandColor:"#326EF4",semanticColors:{red:"#FF4D4F",green:"#29A294",yellow:"#FAAD14"},others:{highlight:"#87B5FF",results:"#F0F7FF"},basicColorRelations:[{basicColorIndex:1,standardColorIndex:0},{basicColorIndex:2,standardColorIndex:1},{basicColorIndex:3,standardColorIndex:1},{basicColorIndex:4,standardColorIndex:2},{basicColorIndex:5,standardColorIndex:7},{basicColorIndex:6,standardColorIndex:5},{basicColorIndex:7,standardColorIndex:5},{basicColorIndex:9,standardColorIndex:1},{basicColorIndex:10,standardColorIndex:2},{basicColorIndex:11,standardColorIndex:5},{basicColorIndex:12,standardColorIndex:5}]}),colorful:$w,gray:Vw({brandColor:"#9DA7B6",semanticColors:{red:"#FF4D4F",green:"#29A294",yellow:"#FAAD14"},others:{highlight:"#87B5FF",results:"#F0F7FF"},basicColorRelations:[{basicColorIndex:1,standardColorIndex:0},{basicColorIndex:2,standardColorIndex:1},{basicColorIndex:3,standardColorIndex:1},{basicColorIndex:4,standardColorIndex:2},{basicColorIndex:5,standardColorIndex:7},{basicColorIndex:6,standardColorIndex:8},{basicColorIndex:7,standardColorIndex:5},{basicColorIndex:9,standardColorIndex:1},{basicColorIndex:10,standardColorIndex:2},{basicColorIndex:11,standardColorIndex:3},{basicColorIndex:12,standardColorIndex:3}]})},Yw="Roboto, PingFangSC, BlinkMacSystemFont, Microsoft YaHei, Arial, sans-serif",Xw="zh_CN",qw=Xw,Kw={zh_CN:{小计:"小计",总计:"总计",总和:"(总和)",项:"项",已选择:"已选择",序号:"序号",度量:"度量",数值:"数值",共计:"共计",条:"条",趋势:"趋势",隐藏:"隐藏",组内升序:"组内升序",升序:"升序",降序:"降序",组内降序:"组内降序",不排序:"不排序",",":","},en_US:{小计:"Total",总计:"Total",总和:"(SUM)",项:"items",已选择:"selected",序号:"Index",度量:"Measure",数值:"Measure",共计:"Total",条:"",隐藏:"Hide",趋势:"Trend",组内升序:"Group ASC",组内降序:"Group DESC",升序:"ASC",降序:"DESC",不排序:"No order",",":", "},ru_RU:{小计:"Промежуточный итог",总计:"Общий итог",总和:"(СУММА)",项:"элемент(-а/-ов)",已选择:"выбрано",序号:"Индекс",度量:"Мера",数值:"Численная величина",共计:"Общее количество",条:"",隐藏:"Скрыть",趋势:"Курс",组内升序:"Группировать по возрастанию",组内降序:"Группировать по убыванию",升序:"По возрастанию",降序:"По убыванию",不排序:"Не отсортировано",",":", "}},Zw=function(t,e){return void 0===e&&(e=t),Yu(Kw,[qw,t],e)},Jw="".concat(Jo,"-tooltip"),Qw="".concat(Jw,"-container"),tC="".concat(Qw,"-show"),eC="".concat(Qw,"-hide"),nC=("".concat(Jw,"-operation"),15),rC=10;!function(t){t[t.ALL=0]="ALL",t[t.COL=1]="COL",t[t.ROW=2]="ROW"}(Hw||(Hw={}));var iC;function oC(t){return"mobile"===t||/(iPhone|iPad|SymbianOS|Windows Phone|iPod|iOS|Android)/i.test(navigator.userAgent)}function aC(){return/windows/i.test(navigator.userAgent)}!function(t){t.All="all",t.DetailOnly="detailOnly"}(iC||(iC={}));var sC=function(t){var e,n,r,i,o,a,s=(null==t?void 0:t.palette)||(a=null==t?void 0:t.name,Uw[(a||"default").toLowerCase()]),l=s.basicColors,u=s.semanticColors,c=s.others,h=null===(e=null==t?void 0:t.spreadsheet)||void 0===e?void 0:e.isTableMode(),d=aC()?"bold":700,f=function(){var t,e;return{bolderText:{fontFamily:Yw,fontSize:12,fontWeight:d,fill:l[13],opacity:1,textAlign:"right",textBaseline:"middle",linkTextFill:l[6]},text:{fontFamily:Yw,fontSize:12,fontWeight:"normal",fill:l[13],opacity:1,textAlign:"right",textBaseline:"middle",linkTextFill:l[6]},cell:{crossBackgroundColor:l[1],backgroundColor:l[8],backgroundColorOpacity:1,horizontalBorderColor:l[9],horizontalBorderColorOpacity:1,verticalBorderColor:l[9],verticalBorderColorOpacity:1,horizontalBorderWidth:1,verticalBorderWidth:1,borderDash:[],padding:{top:8,right:8,bottom:8,left:8},interactionState:{hover:{backgroundColor:l[2],backgroundOpacity:.6},hoverFocus:{backgroundColor:l[2],backgroundOpacity:.6,borderColor:l[14],borderWidth:1,borderOpacity:1},selected:{backgroundColor:l[2],backgroundOpacity:.6},unselected:{backgroundOpacity:.3,textOpacity:.3,opacity:.3},searchResult:{backgroundColor:null!==(t=null==c?void 0:c.results)&&void 0!==t?t:l[2],backgroundOpacity:1},highlight:{backgroundColor:null!==(e=null==c?void 0:c.highlight)&&void 0!==e?e:l[6],backgroundOpacity:1},prepareSelect:{borderColor:l[14],borderOpacity:1,borderWidth:1}}},miniChart:{line:{point:{size:2.2,fill:l[6],opacity:1},linkLine:{size:1.5,fill:l[6],opacity:.6}},bar:{intervalPadding:4,fill:l[6],opacity:1},bullet:{progressBar:{widthPercent:.6,height:10,innerHeight:6},comparativeMeasure:{width:1,height:12,fill:l[13],opacity:.25},rangeColors:{good:null==u?void 0:u.green,satisfactory:u.yellow,bad:u.red},backgroundColor:"#E9E9E9"},interval:{height:12,fill:l[7]}},icon:{fill:l[13],downIconColor:u.red,upIconColor:u.green,size:10,margin:{right:4,left:4}}}};return{cornerCell:{bolderText:{fontFamily:Yw,fontSize:12,fontWeight:d,fill:l[0],opacity:1,textAlign:h?"center":"left",textBaseline:"middle"},text:{fontFamily:Yw,fontSize:12,fontWeight:d,fill:l[0],opacity:1,textAlign:"right",textBaseline:"middle"},cell:{backgroundColor:l[3],backgroundColorOpacity:1,horizontalBorderColor:l[10],horizontalBorderColorOpacity:1,verticalBorderColor:l[10],verticalBorderColorOpacity:1,horizontalBorderWidth:1,verticalBorderWidth:1,borderDash:[],padding:{top:0,right:8,bottom:0,left:8}},icon:{fill:l[0],size:10,margin:{right:4,left:4}}},rowCell:{seriesText:{fontFamily:Yw,fontSize:12,fontWeight:"normal",fill:l[14],linkTextFill:l[6],opacity:1,textBaseline:h?"middle":"top",textAlign:"center"},measureText:{fontFamily:Yw,fontSize:12,fontWeight:"normal",fill:l[14],linkTextFill:l[6],opacity:1,textAlign:h?"center":"left",textBaseline:"top"},bolderText:{fontFamily:Yw,fontSize:12,fontWeight:d,fill:l[14],linkTextFill:l[6],opacity:1,textAlign:h?"center":"left",textBaseline:"top"},text:{fontFamily:Yw,fontSize:12,fontWeight:"normal",fill:l[14],linkTextFill:l[6],opacity:1,textBaseline:"top",textAlign:h?"center":"left"},cell:{backgroundColor:l[1],backgroundColorOpacity:1,horizontalBorderColor:l[9],horizontalBorderColorOpacity:1,verticalBorderColor:l[9],verticalBorderColorOpacity:1,horizontalBorderWidth:1,verticalBorderWidth:1,borderDash:[],padding:{top:0,right:8,bottom:0,left:8},interactionState:{hover:{backgroundColor:l[2],backgroundOpacity:.6},selected:{backgroundColor:l[2],backgroundOpacity:.6},unselected:{backgroundOpacity:.3,textOpacity:.3,opacity:.3},prepareSelect:{borderColor:l[14],borderOpacity:1,borderWidth:1},searchResult:{backgroundColor:null!==(n=null==c?void 0:c.results)&&void 0!==n?n:l[2],backgroundOpacity:1},highlight:{backgroundColor:null!==(r=null==c?void 0:c.highlight)&&void 0!==r?r:l[6],backgroundOpacity:1}}},icon:{fill:l[14],size:10,margin:{right:4,left:4}},seriesNumberWidth:80},colCell:{measureText:{fontFamily:Yw,fontSize:12,fontWeight:"normal",fill:l[0],opacity:1,textAlign:"right",textBaseline:"middle"},bolderText:{fontFamily:Yw,fontSize:12,fontWeight:d,fill:l[0],opacity:1,textAlign:"center",textBaseline:"middle"},text:{fontFamily:Yw,fontSize:12,fontWeight:"normal",fill:l[0],opacity:1,textAlign:"center",textBaseline:"middle"},cell:{backgroundColor:l[3],backgroundColorOpacity:1,horizontalBorderColor:l[10],horizontalBorderColorOpacity:1,verticalBorderColor:l[10],verticalBorderColorOpacity:1,horizontalBorderWidth:1,verticalBorderWidth:1,borderDash:[],padding:{top:0,right:8,bottom:0,left:8},interactionState:{hover:{backgroundColor:l[4],backgroundOpacity:.6},selected:{backgroundColor:l[4],backgroundOpacity:.6},unselected:{backgroundOpacity:.3,textOpacity:.3,opacity:.3},prepareSelect:{borderColor:l[14],borderOpacity:1,borderWidth:1},searchResult:{backgroundColor:null!==(i=null==c?void 0:c.results)&&void 0!==i?i:l[2],backgroundOpacity:1},highlight:{backgroundColor:null!==(o=null==c?void 0:c.highlight)&&void 0!==o?o:l[6],backgroundOpacity:1}}},icon:{fill:l[0],size:10,margin:{top:6,right:4,bottom:6,left:4}}},dataCell:f(),mergedCell:f(),resizeArea:{size:3,background:l[7],backgroundOpacity:0,guideLineColor:l[7],guideLineDisableColor:"rgba(0,0,0,0.25)",guideLineDash:[3,3],interactionState:{hover:{backgroundColor:l[7],backgroundOpacity:1}}},scrollBar:{trackColor:"rgba(0,0,0,0.01)",thumbHoverColor:"rgba(0,0,0,0.25)",thumbColor:"rgba(0,0,0,0.15)",thumbHorizontalMinSize:32,thumbVerticalMinSize:32,size:oC()?3:6,hoverSize:oC()?4:8,lineCap:"round"},splitLine:{horizontalBorderColor:l[12],horizontalBorderColorOpacity:.2,horizontalBorderWidth:2,verticalBorderColor:l[11],verticalBorderColorOpacity:.25,verticalBorderWidth:2,showShadow:!0,shadowWidth:8,shadowColors:{left:"rgba(0,0,0,0.1)",right:"rgba(0,0,0,0)"},borderDash:[]},prepareSelectMask:{backgroundColor:l[5],backgroundOpacity:.3},background:{color:l[8],opacity:1}}},lC=function(){function t(t){this.x=0,this.y=0,this.width=0,this.height=0,this.colIndex=-1,this.level=0,this.isLeaf=!1,this.children=[],this.padding=0;var e=t.id,n=t.key,r=t.value,i=t.label,o=t.parent,a=t.level,s=t.rowIndex,l=t.isTotals,u=t.isGrandTotals,c=t.isSubTotals,h=t.isCollapsed,d=t.isTotalRoot,f=t.hierarchy,p=t.isPivotMode,v=t.seriesNumberWidth,g=t.field,m=t.spreadsheet,y=t.query,b=t.belongsCell,w=t.inCollapseNode,C=t.isTotalMeasure,_=t.isLeaf,x=t.extra;this.id=e,this.key=n,this.value=r,this.label=i||r,this.parent=o,this.level=a,this.rowIndex=s,this.isTotals=l,this.isCollapsed=h,this.hierarchy=f,this.isPivotMode=p,this.seriesNumberWidth=v,this.field=g,this.spreadsheet=m,this.query=y,this.belongsCell=b,this.inCollapseNode=w,this.isTotalMeasure=C,this.isLeaf=_,this.isGrandTotals=u,this.isSubTotals=c,this.isTotalRoot=d,this.extra=x}return t.getFieldPath=function(t,e){if(t&&!t.isTotals||t&&e){for(var n=t.parent,r=[t.field];n&&n.id!==Vo;)r.push(n.field),n=n.parent;return r.reverse()}},t.getAllLeaveNodes=function(t){var e=[];if(t.isLeaf)return[t];for(var n=c([],u(t.children),!1),r=n.shift();r;)r.isLeaf?e.push(r):n.unshift.apply(n,c([],u(r.children),!1)),r=n.shift();return e},t.getAllChildrenNodes=function(t){var e=[];if(t.isLeaf)return[t];for(var n=c([],u(t.children||[]),!1),r=n.shift();r;)e.push(r),n.unshift.apply(n,c([],u(r.children),!1)),r=n.shift();return e},t.getAllBranch=function(t){for(var e=[],n=this.getAllLeaveNodes(t),r=n.shift(),i=[];r;){i.unshift(r);for(var o=r.parent;o&&!jv(o,t);)i.unshift(o),o=o.parent;e.push(i),r=n.shift(),i=[]}return e},t.blankNode=function(){return new t({id:"",key:"",value:""})},t.rootNode=function(){return new t({id:"root",key:"",value:""})},t.prototype.toJSON=function(){return Bg(this,["config","hierarchy","parent","spreadsheet"])},t.prototype.getHeadLeafChild=function(){for(var t=this;!Hv(t.children);)t=kp(t.children);return t},t.prototype.getTotalHeightForTreeHierarchy=function(){return 0===this.height||Hv(this.children)?this.height:this.children.reduce(function(t,e){return t+e.getTotalHeightForTreeHierarchy()},this.height)},t}(),uC=function(){function t(){this.width=0,this.height=0,this.maxLevel=-1,this.sampleNodesForAllLevels=[],this.sampleNodeForLastLevel=null,this.allNodesWithoutRoot=[],this.indexNode=[]}return t.prototype.getLeaves=function(){return this.allNodesWithoutRoot.filter(function(t){return t.isLeaf})},t.prototype.getNodes=function(t){return void 0!==t?this.allNodesWithoutRoot.filter(function(e){return e.level===t}):this.allNodesWithoutRoot},t.prototype.getNodesLessThanLevel=function(t){return this.allNodesWithoutRoot.filter(function(e){return e.level<=t})},t.prototype.pushNode=function(t,e){void 0===e&&(e=-1),-1===e?this.allNodesWithoutRoot.push(t):this.allNodesWithoutRoot.splice(e,0,t)},t.prototype.pushIndexNode=function(t){this.indexNode.push(t)},t.prototype.getIndexNodes=function(){return this.indexNode},t}(),cC=function(t){var e=t.label,n=t.isSubTotals,r=t.isGrandTotals,i=t.isTotalRoot;this.label=e,this.isSubTotals=n,this.isGrandTotals=r,this.isTotalRoot=i};function hC(t,e){for(var n={},r=t;r&&r.key;)r.isTotalRoot&&!e||r.value===Eo||(n[r.key]=r.value),r=r.parent;return n}var dC=function(){function t(){var t=this;this.debug=!1,this.debugCallback=function(e,n){if(t.debug){performance.now();n();performance.now()}else n()},this.logger=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];t.debug}}return t.getInstance=function(){return t.instance||(t.instance=new t),t.instance},t.prototype.setDebug=function(t){this.debug=t},t}(),fC=Object.freeze({__proto__:null,ArrowDown:'\n<svg width="10px" height="10px" viewBox="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" font-family="Roboto, PingFangSC, BlinkMacSystemFont, Microsoft YaHei, Arial, sans-serif" font-size="12" font-weight="bold">\n <text id="↓" fill="#29A294">\n <tspan x="-0.225097656" y="8.5">↓</tspan>\n </text>\n</g>\n</svg>',ArrowUp:'<svg width="10px" height="10px" viewBox="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" font-family="Roboto, PingFangSC, BlinkMacSystemFont, Microsoft YaHei, Arial, sans-serif" font-size="12" font-weight="bold">\n <text id="↑" fill="#FF4D4F">\n <tspan x="-0.225097656" y="8.5">↑</tspan>\n </text>\n</g>\n</svg>\n',CellDown:'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="7px" height="9px" viewBox="0 0 7 9" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 58 (84663) - https://sketch.com --\x3e\n <title>down</title>\n <desc>Created with Sketch.</desc>\n <g id="一期开发" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <polygon id="down" fill="#58AE57" transform="translate(3.500000, 4.500000) scale(1, -1) translate(-3.500000, -4.500000) " points="3.5 0 7 9 0 9"></polygon>\n </g>\n</svg>',CellUp:'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="7px" height="9px" viewBox="0 0 7 9" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 58 (84663) - https://sketch.com --\x3e\n <title>up</title>\n <desc>Created with Sketch.</desc>\n <g id="一期开发" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <polygon id="up" fill="#F46649" points="3.5 0 7 9 0 9"></polygon>\n </g>\n</svg> ',GlobalAsc:'<svg t="1557124621626" class="icon" style="" viewBox="0 0 1024 1024" version="1.1"\nxmlns="http://www.w3.org/2000/svg" p-id="17452"\nxmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14">\n<defs>\n <style type="text/css"></style>\n</defs>\n<path d="M182.272 167.04a8 8 0 0 0-12.544 0L57.728 309.056A8 8 0 0 0 64 321.984h76.032v530.048c0 4.352 3.584 7.936 7.936 7.936h56.064a8 8 0 0 0 7.936-7.936V321.92H288a8 8 0 0 0 6.272-12.992l-112-141.888z m209.728 626.944h176c4.416 0 8 3.584 8 8v56a8 8 0 0 1-8 8h-176A8 8 0 0 1 384 857.984v-56c0-4.416 3.584-8 8-8z m0-424h368c4.416 0 8 3.648 8 8v56a8 8 0 0 1-8 8h-368A8 8 0 0 1 384 433.984v-56c0-4.352 3.584-8 8-8z m528-139.968h-528A8 8 0 0 1 384 222.016v-56c0-4.416 3.584-8 8-8h528c4.416 0 8 3.584 8 8v56a8 8 0 0 1-8 8z m-256 424h-272A8 8 0 0 1 384 646.016v-56c0-4.416 3.584-8 8-8h272c4.416 0 8 3.584 8 8v56a8 8 0 0 1-8 8z" p-id="17453"></path>\n</svg>',GlobalDesc:'<svg t="1557124685600" class="icon" style="" viewBox="0 0 1024 1024" version="1.1"\n xmlns="http://www.w3.org/2000/svg" p-id="17561"\n xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14">\n <defs>\n <style type="text/css"></style>\n </defs>\n <path d="M182.272 856.96a8 8 0 0 1-12.544 0l-112-141.952A8 8 0 0 1 64 702.08h76.032V172.032c0-4.416 3.584-8 7.936-8h56.064c4.352 0 7.936 3.584 7.936 8v529.984H288c6.72 0 10.496 7.808 6.272 12.992l-112 141.888z m209.728-626.944h176A8 8 0 0 0 576 222.016v-56a8 8 0 0 0-8-8h-176A8 8 0 0 0 384 166.016v56c0 4.416 3.584 8 8 8z m0 424h368a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8h-368A8 8 0 0 0 384 590.016v56c0 4.416 3.584 8 8 8z m528 139.968h-528a8 8 0 0 0-8 8v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z m-256-424h-272A8 8 0 0 0 384 377.984v56c0 4.416 3.584 8 8 8h272a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z" p-id="17562"></path>\n</svg>',GroupAsc:'<svg t="1557124695786" class="icon" style="" viewBox="0 0 1024 1024" version="1.1"\n xmlns="http://www.w3.org/2000/svg" p-id="17670"\n xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14">\n <defs>\n <style type="text/css"></style>\n </defs>\n <path d="M182.272 167.04a8 8 0 0 0-12.544 0L57.728 309.056A8 8 0 0 0 64 321.984h76.032v530.048c0 4.352 3.584 7.936 7.936 7.936h56.064a8 8 0 0 0 7.936-7.936V321.92H288a8 8 0 0 0 6.272-12.992l-112-141.888z m209.728 62.976h304A8 8 0 0 0 704 222.016v-56a8 8 0 0 0-8-8h-304A8 8 0 0 0 384 166.016v56c0 4.416 3.584 8 8 8z m0 424h304a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8h-304A8 8 0 0 0 384 590.016v56c0 4.416 3.584 8 8 8z m528 139.968h-528a8 8 0 0 0-8 8v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z m0-424h-528A8 8 0 0 0 384 377.984v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z" p-id="17671"></path>\n</svg>',GroupDesc:'<svg t="1557124710652" class="icon" style="" viewBox="0 0 1024 1024" version="1.1"\n xmlns="http://www.w3.org/2000/svg" p-id="17779"\n xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14">\n <defs>\n <style type="text/css"></style>\n </defs>\n <path d="M182.272 856.96a8 8 0 0 1-12.544 0l-112-141.952A8 8 0 0 1 64 702.08h76.032V172.032c0-4.416 3.584-8 7.936-8h56.064c4.352 0 7.936 3.584 7.936 8v529.984H288c6.72 0 10.496 7.808 6.272 12.992l-112 141.888z m209.728-626.944h304A8 8 0 0 0 704 222.016v-56a8 8 0 0 0-8-8h-304A8 8 0 0 0 384 166.016v56c0 4.416 3.584 8 8 8z m0 424h304a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8h-304A8 8 0 0 0 384 590.016v56c0 4.416 3.584 8 8 8z m528 139.968h-528a8 8 0 0 0-8 8v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z m0-424h-528A8 8 0 0 0 384 377.984v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z" p-id="17780"></path>\n</svg>',GroupNone:'<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n<g id="设计输出" stroke="none" stroke-width="1" fill-opacity="0.25" fill-rule="evenodd">\n <g id="设计输出-移动端指标详情页-阅读端" transform="translate(-3275.000000, -724.000000)" fill-rule="nonzero">\n <g id="编组-39" transform="translate(3064.500000, 667.000000)">\n <g id="编组-36" transform="translate(80.500000, 44.000000)">\n <g id="不排序" transform="translate(130.000000, 13.000000)">\n <path d="M12.0009375,12.40625 C12.0696875,12.40625 12.1259375,12.4625 12.1259375,12.53125 L12.1259375,12.53125 L12.1259375,13.40625 C12.1259375,13.475 12.0696875,13.53125 12.0009375,13.53125 L12.0009375,13.53125 L6.25093747,13.53125 C6.18218747,13.53125 6.12593747,13.475 6.12593747,13.40625 L6.12593747,13.40625 L6.12593747,12.53125 C6.12593747,12.4625 6.18218747,12.40625 6.25093747,12.40625 L6.25093747,12.40625 Z M2.93949997,2.5801875 L2.97437497,2.6109375 L4.72437497,4.828125 C4.78062497,4.89776786 4.74503823,4.99725765 4.66779698,5.02426203 L4.62593747,5.03125 L3.438,5.03089062 L3.43843747,10.9691406 L4.62593747,10.9691406 C4.73062497,10.9691406 4.78999997,11.0910156 4.72437497,11.1722656 L2.97437497,13.3894531 C2.92437497,13.4535156 2.82749997,13.4535156 2.77749997,13.3894531 L1.02749997,11.1722656 C0.961874969,11.0894531 1.02124997,10.9691406 1.12593747,10.9691406 L2.31343747,10.9691406 L2.313,5.03089062 L1.12593747,5.03125 C1.03620533,5.03125 0.979764,4.94285714 1.00679571,4.8654519 L1.02749997,4.828125 L2.77749997,2.6109375 C2.81749997,2.5596875 2.88749997,2.5494375 2.93949997,2.5801875 Z M10.5009375,9.09375 C10.5696875,9.09375 10.6259375,9.15 10.6259375,9.21875 L10.6259375,9.21875 L10.6259375,10.09375 C10.6259375,10.1625 10.5696875,10.21875 10.5009375,10.21875 L10.5009375,10.21875 L6.25093747,10.21875 C6.18218747,10.21875 6.12593747,10.1625 6.12593747,10.09375 L6.12593747,10.09375 L6.12593747,9.21875 C6.12593747,9.15 6.18218747,9.09375 6.25093747,9.09375 L6.25093747,9.09375 Z M14.5009375,5.78125 C14.5696875,5.78125 14.6259375,5.8375 14.6259375,5.90625 L14.6259375,5.90625 L14.6259375,6.78125 C14.6259375,6.85 14.5696875,6.90625 14.5009375,6.90625 L14.5009375,6.90625 L6.25093747,6.90625 C6.18218747,6.90625 6.12593747,6.85 6.12593747,6.78125 L6.12593747,6.78125 L6.12593747,5.90625 C6.12593747,5.8375 6.18218747,5.78125 6.25093747,5.78125 L6.25093747,5.78125 Z M9.00093747,2.46875 C9.06968747,2.46875 9.12593747,2.525 9.12593747,2.59375 L9.12593747,2.59375 L9.12593747,3.46875 C9.12593747,3.5375 9.06968747,3.59375 9.00093747,3.59375 L9.00093747,3.59375 L6.25093747,3.59375 C6.18218747,3.59375 6.12593747,3.5375 6.12593747,3.46875 L6.12593747,3.46875 L6.12593747,2.59375 C6.12593747,2.525 6.18218747,2.46875 6.25093747,2.46875 L6.25093747,2.46875 Z" id="形状结合"></path>\n </g>\n </g>\n </g>\n </g>q\n</g>\n</svg>',Minus:'<svg t="1557140120188" class="icon" style="" viewBox="0 0 1024 1024" version="1.1"\nxmlns="http://www.w3.org/2000/svg" p-id="16909" xmlns:xlink="http://www.w3.org/1999/xlink"\nwidth="200" height="200">\n\t<defs>\n\t\t<style type="text/css">\n\t\t</style>\n\t</defs>\n\t<path d="M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"\n\tp-id="16910">\n\t</path>\n\t<path d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32z m-40 728H184V184h656v656z"\n\tp-id="16911">\n\t</path>\n</svg>',Plus:'<svg t="1557140186692" class="icon" style="" viewBox="0 0 1024 1024" version="1.1"\nxmlns="http://www.w3.org/2000/svg" p-id="17025" xmlns:xlink="http://www.w3.org/1999/xlink"\nwidth="200" height="200">\n\t<defs>\n\t\t<style type="text/css">\n\t\t</style>\n\t</defs>\n\t<path d="M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"\n\tp-id="17026">\n\t</path>\n\t<path d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32z m-40 728H184V184h656v656z"\n\tp-id="17027">\n\t</path>\n</svg>',SortDown:'<svg t="1565940955886" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"\n p-id="17472" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">\n <defs>\n <style type="text/css"></style>\n </defs>\n <path\n fill-opacity="0.45"\n d="M948 392.992l-403.008 488.99200001Q532 896 512.992 896t-32-14.016L76 392.992q-18.016-20.992-7.008-46.016T108 321.98400001L916 321.98400001q28 0 39.008 24.99199999T948 392.992z"\n p-id="17473" data-spm-anchor-id="a313x.7781069.0.i2" class="selected"></path>\n</svg>\n',SortUp:'<svg t="1565940979768" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"\n p-id="17620" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">\n <defs>\n <style type="text/css"></style>\n </defs>\n <path\n fill-opacity="0.45"\n d="M76 631.008l403.008-488.99200001Q492 128 511.008 128t32 14.016L948 631.008q18.016 20.992 7.008 46.016T916 702.01599999L108 702.01599999q-28 0-39.008-24.99199999T76 631.008z"\n p-id="17621"></path>\n</svg>\n',SortDownSelected:'<svg t="1565940955886" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"\n p-id="17472" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">\n <defs>\n <style type="text/css"></style>\n </defs>\n <path\n d="M948 392.992l-403.008 488.99200001Q532 896 512.992 896t-32-14.016L76 392.992q-18.016-20.992-7.008-46.016T108 321.98400001L916 321.98400001q28 0 39.008 24.99199999T948 392.992z"\n p-id="17473" data-spm-anchor-id="a313x.7781069.0.i2" class="selected"></path>\n</svg>\n',SortUpSelected:'<svg t="1565940979768" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"\np-id="17620" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">\n<defs>\n<style type="text/css"></style>\n</defs>\n<path\nd="M76 631.008l403.008-488.99200001Q492 128 511.008 128t32 14.016L948 631.008q18.016 20.992 7.008 46.016T916 702.01599999L108 702.01599999q-28 0-39.008-24.99199999T76 631.008z"\np-id="17621"></path>\n</svg>\n',InfoCircle:'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1590389330617" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="19656" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M512 64c-247.4 0-448 200.6-448 448s200.6 448 448 448 448-200.6 448-448-200.6-448-448-448z m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" fill="" p-id="19657"></path><path d="M464 336c0 26.5 21.5 48 48 48s48-21.5 48-48-21.5-48-48-48-48 21.5-48 48zM536 448h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-272c0-4.4-3.6-8-8-8z" fill="" p-id="19658"></path></svg>',ExpandColIcon:'<?xml version="1.0" encoding="UTF-8"?>\n<svg width="23px" height="12px" viewBox="0 0 23 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <title>编组 8备份 3</title>\n <g id="----隐藏列标注!" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="隐藏列标注" transform="translate(-275.000000, -824.000000)">\n <rect fill="#FFFFFF" x="0" y="0" width="1333" height="1167"></rect>\n <g id="编组-8备份-3" transform="translate(275.000000, 824.000000)">\n <rect id="矩形" stroke-opacity="0.25" stroke="#000000" fill="#F7F7F7" x="0.5" y="0.5" width="11" height="11"></rect>\n <rect id="矩形备份-9" stroke-opacity="0.25" stroke="#000000" fill="#F7F7F7" x="11.5" y="0.5" width="11" height="11"></rect>\n <g id="7.Icon/arrow/15.down/fill" transform="translate(6.000000, 6.000000) rotate(90.000000) translate(-6.000000, -6.000000) " fill="#000000" fill-rule="nonzero" opacity="0.65">\n <path d="M7.25020811,6.37218077 L4.91348936,8.20968077 C4.82677061,8.27764952 4.69903624,8.21671202 4.69903624,8.10655577 L4.69903624,4.43272764 C4.69903624,4.32257139 4.82677061,4.26046202 4.91348936,4.32960264 L7.25020811,6.16593077 C7.31700499,6.21866514 7.31700499,6.31944639 7.25020811,6.37218077 Z" id="fill" transform="translate(5.999671, 6.269385) rotate(90.000000) translate(-5.999671, -6.269385) "></path>\n </g>\n <g id="7.Icon/arrow/15.down/fill" transform="translate(17.000000, 6.000000) rotate(270.000000) translate(-17.000000, -6.000000) translate(11.000000, 0.000000)" fill="#000000" fill-rule="nonzero" opacity="0.65">\n <path d="M7.25020811,6.37218077 L4.91348936,8.20968077 C4.82677061,8.27764952 4.69903624,8.21671202 4.69903624,8.10655577 L4.69903624,4.43272764 C4.69903624,4.32257139 4.82677061,4.26046202 4.91348936,4.32960264 L7.25020811,6.16593077 C7.31700499,6.21866514 7.31700499,6.31944639 7.25020811,6.37218077 Z" id="fill" transform="translate(5.999671, 6.269385) rotate(90.000000) translate(-5.999671, -6.269385) "></path>\n </g>\n </g>\n <line x1="286.5" y1="813" x2="286.5" y2="864.5" id="路径-2备份-3" stroke="#000000" opacity="0.25"></line>\n </g>\n </g>\n</svg>',Trend:'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1596433821690" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="20229" width="16" height="16" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css"></style></defs><path d="M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6c-3.1-3.1-8.2-3.1-11.3 0l-230 229.9L461.4 404c-3.1-3.1-8.2-3.1-11.3 0L266.3 586.7c-3.1 3.1-3.1 8.2 0 11.3l39.5 39.7z" p-id="20230"></path></svg>',DrillDownIcon:'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1608030723688" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="21482" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M547.648 696a32 32 0 0 1 31.488 26.24l0.512 5.76v151.68l145.216-144.512a32 32 0 0 1 40.832-3.648l4.416 3.712a32 32 0 0 1 3.584 40.832l-3.712 4.48-203.072 202.24a32 32 0 0 1-40.768 3.648l-4.416-3.712-202.24-202.24a32 32 0 0 1 40.832-48.96l4.416 3.712 150.912 150.912v-158.144a32 32 0 0 1 32-32z m194.56-529.28l4.928 3.072 233.792 180.224a32 32 0 0 1 1.728 49.28l-4.864 3.52-409.792 245.568a32 32 0 0 1-27.328 2.624l-5.184-2.432-422.4-245.568a32 32 0 0 1-7.552-49.28l4.544-4.032 242.816-180.288a32 32 0 0 1 42.432 47.552l-4.288 3.84-203.84 151.296 364.16 211.648 353.28-211.712-196.608-151.552a32 32 0 0 1-8.896-40l3.136-4.864a32 32 0 0 1 40-8.96zM547.712 28.672a32 32 0 0 1 31.488 26.24l0.512 5.76v396.992a32 32 0 0 1-63.488 5.76l-0.512-5.76V60.736a32 32 0 0 1 32-32z" p-id="21483" fill="currentColor"></path></svg>\n',EyeOutlined:'<svg viewBox="64 64 896 896" focusable="false" data-icon="eye" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"></path></svg>'}),pC={},vC=function(t,e){pC[lg(t)]=e};du(fC).forEach(function(t){vC(t,fC[t])});var gC,mC,yC,bC="<svg",wC="data:image/svg+xml",CC={},_C=function(t){function e(e){var n=t.call(this,e)||this;return n.isOnlineLink=function(t){return/^(https?:)?(\/\/)/.test(t)},n.render(),n}return o(e,t),e.prototype.getImage=function(t,e,n){var r=this;return new Promise(function(i,o){var a=function(t){return pC[lg(t)]}(t);if(a){var s=new Image;s.onload=function(){CC[e]=s,i(s)},s.onerror=o,a.includes(wC)||r.isOnlineLink(a)?(s.src=a,s.crossOrigin="anonymous"):(n&&(a=(a=a.replace(/fill=[\'\"]#?\w+[\'\"]/g,"")).replace(/fill>/g,">")),a=a.replace(bC,"".concat(bC,' fill="').concat(n,'"')),s.src="".concat(wC,";utf-8,").concat(encodeURIComponent(a)))}})},e.prototype.render=function(){var t=this.cfg,n=t.name,r=t.fill,i=Id(this.cfg),o=a(a({},Bg(i,"fill")),{type:e.type}),s=new Fi({attrs:o});this.iconImageShape=s,this.setImageAttrs({name:n,fill:r})},e.prototype.setImageAttrs=function(t){var e=this,n=t.name,r=t.fill,i=this.iconImageShape;n=n||i.attrs.name,r=r||i.attrs.fill;var o="".concat(n,"-").concat(r),a=CC[o];a?(i.attr("img",a),this.addShape("image",i)):this.getImage(n,o,r).then(function(t){var r,o,a,s=null===(a=null===(o=null===(r=e.getParent())||void 0===r?void 0:r.getMeta)||void 0===o?void 0:o.call(r).spreadsheet)||void 0===a?void 0:a.container;e.destroyed||s&&!s.get("refreshElements")?dC.getInstance().logger("GuiIcon ".concat(n," destroyed.")):(i.attr("img",t),e.addShape("image",i))}).catch(function(t){TypeError})},e.type="__GUI_ICON__",e}(ki);!function(t){t.TOP="TOP",t.BOTTOM="BOTTOM",t.LEFT="LEFT",t.RIGHT="RIGHT"}(gC||(gC={})),function(t){t.SUM="SUM",t.MIN="MIN",t.MAX="MAX",t.AVG="AVG"}(mC||(mC={})),function(t){t.Row="row",t.Col="col",t.Series="series"}(yC||(yC={}));var xC=function(){function t(){this.store=new Map}return t.prototype.set=function(t,e){return this.store.set(t,e)},t.prototype.get=function(t,e){var n;return null!==(n=this.store.get(t))&&void 0!==n?n:e},t.prototype.clear=function(){this.store.clear()},t.prototype.size=function(){return this.store.size},t}(),SC=function(t){var e,n,r=t.facetCfg,i=t.level,o=t.fields,a=r.colCfg,s=r.spreadsheet,l=r.dataSet.moreThanOneValue(),u=null===(n=null===(e=s.dataCfg.fields)||void 0===e?void 0:e.valueInCols)||void 0===n||n,c=(null==a?void 0:a.hideMeasureColumn)&&u&&!l&&lv(o,bo)?2:1;return i===o.length-c},EC=function(t,e,n,r){return e.layoutArrange?e.layoutArrange(e.spreadsheet,n,r,t):t},OC=function(t,e,n,r){var i,o;if((null===(o=null===(i=t.spreadsheet)||void 0===i?void 0:i.facet)||void 0===o?void 0:o.getHiddenColumnsInfo(n))&&t.columns.find(function(t){return t===n.field}))return!1;var a=!0,s=function(t,n,i){void 0===n&&(n=-1),void 0===i&&(i=-1),-1===n?(e.children.push(t),r.pushNode(t)):(e.children.splice(n,0,t),r.pushNode(t,i))};if(t.layoutHierarchy){var l=t.layoutHierarchy(t.spreadsheet,n);if(l){var u=!!Pv(null==l?void 0:l.delete)&&(null==l?void 0:l.delete);a=!u;var c=l.push,h=l.unshift,d=e.children.length,f=r.getNodes().length;Hv(h)||(ep(h,function(t){s(t)}),d=e.children.length,f=r.getNodes().length),Hv(c)||ep(c,function(t){s(t)}),u||s(n,d,f)}else s(n)}else s(n);return a},TC=function(t,e,n){(null==t?void 0:t.layoutCoordinate)&&((null==e?void 0:e.isLeaf)||(null==n?void 0:n.isLeaf))&&(null==t||t.layoutCoordinate(t.spreadsheet,e,n))},IC=function(t){this.label=t},MC=function(t){var e=t.addTotalMeasureInTotal,n=t.parentNode,r=t.currentField,i=t.fields,o=t.facetCfg,s=t.hierarchy,l=i.indexOf(r),h=o.dataSet,d=o.values,f=[],p={},v=o.spreadsheet.getTotalsConfig(r),g=n.isGrandTotals?v.totalsGroupDimensions||[]:v.subTotalsGroupDimensions||[],m=h.isEmpty()?[]:g;if(null==m?void 0:m.includes(r)){p=hC(n);var y=h.getDimensionValues(r,p);f.push.apply(f,c([],u((y||[]).map(function(t){return new cC({label:t,isSubTotals:n.isSubTotals,isGrandTotals:n.isGrandTotals,isTotalRoot:!1})})),!1)),Hv(f)&&r&&f.push(Eo)}else{if(!e||r!==bo)return SC({facetCfg:o,level:l,fields:i})?(n.isLeaf=!0,s.pushIndexNode(n),void(n.rowIndex=s.getIndexNodes().length-1)):void MC(a(a({},t),{currentField:i[l+1]}));p=hC(n),f.push.apply(f,c([],u(d.map(function(t){return new IC(t)})),!1))}var b=f.filter(function(t){return!Qv(t)});RC(a(a({},t),{fieldValues:b,level:l,parentNode:n,query:p}))},LC=function(t){var e,n,r=t.parentNode,i=t.currentField,o=t.fields,s=t.facetCfg,l=o.indexOf(i),h=s.dataSet,d=s.spreadsheet,f=[];n=hC(r,!0);var p=h.getDimensionValues(i,n),v=EC(p,s,r,i);f.push.apply(f,c([],u(v||[]),!1)),Hv(f)&&i&&(i===bo?f.push.apply(f,c([],u(null===(e=h.fields)||void 0===e?void 0:e.values),!1)):f.push(Eo)),function(t){var e,n,r,i=t.isFirstField,o=t.currentField,a=t.fieldValues,s=t.spreadsheet,l=t.lastField,u=s.getTotalsConfig(i?o:l);i?(null==u?void 0:u.showGrandTotals)&&(n=u.reverseLayout?"unshift":"push",r=new cC({label:u.label,isSubTotals:!1,isGrandTotals:!0,isTotalRoot:!0})):(null==u?void 0:u.showSubTotals)&&($s.size(a)>1||!1!==$s.get(u,"showSubTotals.always"))&&o!==bo&&(n=u.reverseSubLayout?"unshift":"push",r=new cC({label:u.subLabel,isSubTotals:!0,isGrandTotals:!1,isTotalRoot:!0})),null===(e=a[n])||void 0===e||e.call(a,r)}({currentField:i,lastField:o[l-1],isFirstField:0===l,fieldValues:f,spreadsheet:d});var g=f.filter(function(t){return!Qv(t)});RC(a(a({},t),{fieldValues:g,level:l,parentNode:r,query:n}))},kC=function(t){t.parentNode.isTotals?MC(t):LC(t)},AC=function(t,e){return"".concat(t).concat($o).concat(e)},RC=function(t){var e,n,r,i,o,s,c,h,d,f,p=t.currentField,v=t.fields,g=t.fieldValues,m=t.facetCfg,y=t.hierarchy,b=t.parentNode,w=t.level,C=t.query,_=t.addMeasureInTotalQuery,x=t.addTotalMeasureInTotal,S=m.spreadsheet,E=m.collapsedCols;try{for(var O=l(g.entries()),T=O.next();!T.done;T=O.next()){var I=u(T.value,2),M=I[0],L=I[1],k=L instanceof cC,A=L instanceof IC,R=void 0,D=void 0,P=!1,N=!1,B=!1,z=!1,F=p;if(k){var H=L;N=H.isGrandTotals,B=H.isSubTotals,z=H.isTotalRoot,R=Zw(L.label),D=z?C:a(a({},C),((r={})[p]=R,r)),_&&(D[bo]=null===(c=null==S?void 0:S.dataSet)||void 0===c?void 0:c.fields.values[0]),P=SC({facetCfg:m,level:w,fields:v})}else A?(R=Zw(L.label),D=a(a({},C),((i={})[bo]=R,i)),F=bo,N=b.isGrandTotals,B=b.isSubTotals,P=SC({facetCfg:m,level:w,fields:v})):S.isTableMode()?(R=L,F=v[M],D=a(a({},C),((o={})[F]=R,o)),P=!0):(D=(R=L)===Eo?a({},C):a(a({},C),((s={})[p]=R,s)),P=SC({facetCfg:m,level:w,fields:v}));var j=AC(b.id,R);if(!j)return;var W=!!Pv(null==E?void 0:E[j])&&(null==E?void 0:E[j]),G=new lC({id:j,key:F,value:R,level:w,field:F,parent:b,isTotals:k||A,isGrandTotals:N,isSubTotals:B,isTotalMeasure:A,isCollapsed:W,isTotalRoot:z,hierarchy:y,query:D,spreadsheet:S,isLeaf:P||W}),V=OC(m,b,G,y),$=null===(h=null==S?void 0:S.facet)||void 0===h?void 0:h.getHiddenColumnsInfo(G);$&&b&&(b.hiddenChildNodeInfo=$),!(w>y.maxLevel)||N||b.isGrandTotals||b.isSubTotals||G.isSubTotals||(y.sampleNodesForAllLevels.push(G),y.maxLevel=w,y.sampleNodeForLastLevel=$?(null===(d=null==$?void 0:$.displaySiblingNode)||void 0===d?void 0:d.next)||(null===(f=null==$?void 0:$.displaySiblingNode)||void 0===f?void 0:f.prev):G),P||W||!V?(G.isLeaf=!0,y.pushIndexNode(G),G.rowIndex=y.getIndexNodes().length-1):kC({addTotalMeasureInTotal:x,addMeasureInTotalQuery:_,parentNode:G,currentField:v[w+1],fields:v,facetCfg:m,hierarchy:y})}}catch(t){e={error:t}}finally{try{T&&!T.done&&(n=O.return)&&n.call(O)}finally{if(e)throw e.error}}},DC=function(t,e,n,r){var i=e.facetCfg,o=e.hierarchy,a=e.parentNode,s=i.dataSet;t.forEach(function(t,l){"string"==typeof t&&(t={key:t});var u=t.key,c=u===So?Zw("序号"):s.getFieldName(u),h=r||a;if(RC({currentField:u,fields:[u],fieldValues:[c],facetCfg:i,hierarchy:o,parentNode:h,level:n,query:{},addMeasureInTotalQuery:!1,addTotalMeasureInTotal:!1}),t.children&&t.children.length){var d=h.children[l];d.isLeaf=!1,DC(t.children,e,n+1,d)}})},PC=function(t,e){return e>0&&t<e},NC=function(t,e,n){return e>0&&t>=n-e},BC=function(t,e,n){return n>0&&t<e+n},zC=function(t,e,n){return n>0&&t>=e+1-n},FC=function(t,e,n,r,i,o){var a=Sp(n,function(e,r){var a=t-(Yv(o)?0:o)+i.x;return a>=e&&a<n[r+1]},0);a=Math.max(a,0);var s=Sp(n,function(e,r){var o=i.width+t+i.x;return o>=e&&o<n[r+1]},a);s=Math.min(-1===s?1/0:s,n.length-2);var l=r.getIndexRange(e+i.y,i.height+e+i.y);return[a,s,l.start,l.end]},HC=function(t,e,n){var r,i,o=null==t?void 0:t.getMatrix(),a=null!==(r=null==o?void 0:o[6])&&void 0!==r?r:0,s=null!==(i=null==o?void 0:o[7])&&void 0!==i?i:0;null==t||t.translate(e-a,n-s)},jC=function(t,e){var n,r=null==t?void 0:t.getMatrix(),i=null!==(n=null==r?void 0:r[6])&&void 0!==n?n:0;null==t||t.translate(e-i,0)},WC=function(t,e,n){var r=e,i=n,o=function(t){return t.isLeaf?1:t.children?t.children.reduce(function(t,e){return t+=o(e)},0):0};return e&&(r=t.slice(0,e).reduce(function(t,e){return t+=o(e)},0)),n&&(i=t.slice(t.length-n).reduce(function(t,e){return t+=o(e)},0)),{colCount:r,trailingColCount:i}},GC=function(t,e){return t.reduce(function(t,n){"string"==typeof n&&(n={key:n});var r=a({},n);return r.children?(r.children=GC(r.children,e),t.push(r),t):(e[r.key]&&t.push(r),t)},[])},VC=function(t){return"root"===t.parent.id},$C=function(t){var e=function(t){var e=[],n=function(t){t.forEach(function(t){"string"!=typeof t&&t.children?n(t.children):e.push(t)})};return n(t),e}(t);return e.map(function(t){return"string"==typeof t?t:t.key})},UC=function(t){var e=t.children[0];return e?e.isLeaf?e:UC(e):t},YC=function(t,e){var n,r=t.pagination,i=t.frozenFirstRow,o=t.hierarchyType,a=t.showSeriesNumber,s=r&&r.pageSize,l=!1,u=null==e?void 0:e[0];!s&&i&&(l=0===(null===(n=null==u?void 0:u.children)||void 0===n?void 0:n.length),("tree"===o||"customTree"===o)&&!l&&(l=!a));var c=l&&!!u;return{frozenRowCount:c?1:0,frozenColCount:0,frozenTrailingColCount:0,frozenTrailingRowCount:0,enableFrozenFirstRow:l,frozenRowHeight:c?u.height:0}},XC=function(t){return t===Eo?Uo:t},qC=("KMBTP".split(""),function(t){return Number.parseFloat((es(t)||0).toPrecision(16))}),KC=function(t,e,n){if(void 0===n&&(n=0),!Object.values(t).find(function(t){return t>0}))return t;var r=a({},t);r.frozenColCount>=e&&(r.frozenColCount=e);var i=e-r.frozenColCount;r.frozenTrailingColCount>i&&(r.frozenTrailingColCount=i),r.frozenRowCount>=n&&(r.frozenRowCount=n);var o=n-r.frozenRowCount;return r.frozenTrailingRowCount>o&&(r.frozenTrailingRowCount=o),r},ZC=function(t){var e;return null!==(e=null==t?void 0:t.position)&&void 0!==e?e:"right"},JC=function(t,e){return Lp(t,function(t){return t.field instanceof RegExp?t.field.test(e):t.field===e})},QC=function(t){return _g({size:0,position:"right",margin:{left:0,right:0}},t)},t_=function(t,e,n){var r=e.size,i=e.margin,o=JC(null==t?void 0:t.icon,n),a=o&&o.mapping&&{size:r,margin:i,position:ZC(o)};return QC(a)};function e_(t,e,n){var r;return null===(r=null==t?void 0:t.addShape)||void 0===r?void 0:r.call(t,"rect",a({zIndex:1,attrs:e},n||{}))}function n_(t,e){var n;return null===(n=null==t?void 0:t.addShape)||void 0===n?void 0:n.call(t,"circle",{attrs:e})}function r_(t,e,n,r,i,o,s,l){var u;return!Hv(e)&&t&&ep(e,function(e){t.contain(e)&&t.removeChild(e,!0)}),null===(u=null==t?void 0:t.addShape)||void 0===u?void 0:u.call(t,"text",{attrs:a(a({x:n,y:r,text:i,originalText:l},o),s)})}function i_(t,e,n){var r;return null===(r=null==t?void 0:t.addShape)||void 0===r?void 0:r.call(t,"line",{zIndex:100,attrs:a(a({},e),n)})}function o_(t,e,n){Hv(t)||(Ha(t)?t:[t]).forEach(function(t){sy(t,"attrs.".concat(e),n)})}function a_(t,e){var n=new _C(e);return null==t||t.add(n),n}function s_(t,e,n,r,i){var o=new _C(a(a({name:r?"Plus":"Minus"},e),{fill:n}));return as(i)&&o.on("click",i),null==t||t.add(o),o}var l_,u_="s2-offscreen-canvas",c_=function(t,e){var n,r,i,o=t.data,a=t.encode,s=t.type,l=e.getMeta(),u=l.x,c=l.y,h=l.height,d=l.width,f=e.getStyle(aa.DATA_CELL),p=f.cell,v=f.miniChart,g=[],m=Rp(o,function(t){return g.push(null==t?void 0:t[a.y]),{x:t[a.x],y:t[a.y]}}),y=mg(g),b=Tg(g),w=y-b,C=u+p.padding.left,_=u+d-p.padding.right,x=c+p.padding.top,S=c+h-p.padding.bottom,E=S-x,O=s===To.Bar?(_-C-(g.length-1)*(null===(n=null==v?void 0:v.bar)||void 0===n?void 0:n.intervalPadding))/g.length+(null===(r=null==v?void 0:v.bar)||void 0===r?void 0:r.intervalPadding):null!==(i=(_-C)/(g.length-1))&&void 0!==i?i:0,T=[],I=Rp(m,function(t,e){var n,r,i=C+e*O;if(r=0!==w?S-((null==t?void 0:t.y)-b)/w*E:b>0?x:S,s===To.Bar){var o=void 0,a=void 0;b<0&&y>0&&0!==w?(o=S-(0-b)/w*E,a=Math.abs(r-o),(null==t?void 0:t.y)<0&&(r=o)):(o=b<0?x:S,a=0===(w=mg([Math.abs(y),Math.abs(b)]))?E:Math.abs((null==t?void 0:t.y)-0)/w*E,r=o);var l=O-(null===(n=null==v?void 0:v.bar)||void 0===n?void 0:n.intervalPadding);T.push([l,a])}return[i,r]});return{points:I,box:T}},h_=function(t,e,n){var r=Number(e)-Number(t);return Number.isNaN(r)||Number(t)<0?n.bad:r<=.1?n.good:r>.1&&r<=.2?n.satisfactory:n.bad},d_=function(t){var e,n,r,i,o,a;if(!Hv(t)){var s=t.getCellArea(),l=s.x,u=s.y,c=s.height,h=s.width,d=t.findFieldCondition(null===(e=t.cellConditions)||void 0===e?void 0:e.interval);if(d&&d.mapping){var f=t.mappingValue(d);if(!f)return;var p=f.isCompare?f:t.valueRangeByField,v=qC(p.minValue),g=qC(p.maxValue),m=Yv(null==f?void 0:f.fieldValue)?qC(t.getMeta().fieldValue):qC(null==f?void 0:f.fieldValue);if(m<v||m>g)return;var y=null!==(r=null===(n=t.getStyle().miniChart.interval)||void 0===n?void 0:n.height)&&void 0!==r?r:t.getStyle().cell.miniBarChartHeight,b=null!==(o=null===(i=t.getStyle().miniChart.interval)||void 0===i?void 0:i.fill)&&void 0!==o?o:t.getStyle().cell.miniBarChartFillColor,w=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),t=qC(t),e=qC(e);var n=t>=0,r=e>=0&&t<=0,i=r?0:n?t:e,o=e-t;return function(e){var a=n?0:1;return{zeroScale:r?Ih(Math.abs(0-t)/o,0,1):a,scale:Ih((e-i)/o,-1,1)}}}(v,g),C=w(m);return e_(t,{x:l+h*C.zeroScale,y:u+c/2-y/2,width:h*C.scale,height:y,fill:null!==(a=f.fill)&&void 0!==a?a:b})}}},f_=function(t,e){var n,r=e.getStyle(aa.DATA_CELL),i=e.getMeta(),o=i.x,a=i.y,s=i.height,l=i.width,u=i.spreadsheet;if(Hv(t))r_(e,[],o+l-r.cell.padding.right,a+s/2,S_(e,u.options.placeholder),r.text);else{var c=r.miniChart.bullet,h=c.progressBar,d=c.comparativeMeasure,f=c.rangeColors,p=c.backgroundColor,v=t.measure,g=t.target,m=Math.max(Number(v),0),y=Math.max(Number(g),0),b=function(t,e){var n,r;void 0===e&&(e={min:0,max:0});var i=Number(t);if(Number.isNaN(i))return t;var o=null!==(n=null==e?void 0:e.min)&&void 0!==n?n:e,a=null!==(r=null==e?void 0:e.max)&&void 0!==r?r:e;return new Intl.NumberFormat("en-US",{minimumFractionDigits:o,maximumFractionDigits:a,useGrouping:!1,style:"percent"}).format(i)}(v,2),w=(null==h?void 0:h.widthPercent)>1?(null==h?void 0:h.widthPercent)/100:null==h?void 0:h.widthPercent,C=r.cell.padding,_=l-C.left-C.right,x=w*_,S=_-x,E=o+l-C.right-x,O=a+s/2-h.height/2;e_(e,{x:E,y:O,width:x,height:h.height,fill:p,textBaseline:r.text.textBaseline});var T=Yu(e.getMeta(),"spreadsheet.options.bullet.getRangeColor"),I=Math.max(Math.min(x*m,x),0);e_(e,{x:E,y:O+(h.height-h.innerHeight)/2,width:I,height:h.innerHeight,fill:null!==(n=null==T?void 0:T(m,y))&&void 0!==n?n:h_(m,y,f)});var M=E+x*y;i_(e,{x1:M,y1:a+(s-d.height)/2,x2:M,y2:a+(s-d.height)/2+d.height},{stroke:(null==d?void 0:d.fill)||(null==d?void 0:d.color),lineWidth:d.width,opacity:null==d?void 0:d.opacity}),r_(e,[],E-C.right,a+s/2,C_({measureTextWidth:u.measureTextWidth,text:b,maxWidth:S-C.right,fontParam:r.text}),r.text)}},p_=function(t,e){switch(null==e?void 0:e.type){case To.Line:!function(t,e){if(!Hv(null==t?void 0:t.data)&&!Hv(e)){var n=e.getStyle(aa.DATA_CELL).miniChart.line,r=n.point,i=n.linkLine,o=c_(t,e).points;!function(t,e){var n;null===(n=null==t?void 0:t.addShape)||void 0===n||n.call(t,"polyline",{attrs:e})}(e,{points:o,stroke:i.fill,lineWidth:i.size,opacity:i.opacity});for(var a=0;a<o.length;a++)n_(e,{x:o[a][0],y:o[a][1],r:r.size,fill:r.fill,fillOpacity:r.opacity})}}(e,t);break;case To.Bar:!function(t,e){if(!Hv(null==t?void 0:t.data)&&!Hv(e))for(var n=e.getStyle(aa.DATA_CELL).miniChart.bar,r=c_(t,e),i=r.points,o=r.box,a=0;a<i.length;a++)e_(e,{x:i[a][0],y:i[a][1],width:o[a][0],height:o[a][1],fill:n.fill,fillOpacity:n.opacity})}(e,t);break;default:f_(e,t)}},v_=function(t,e){var n=t.x,r=t.y,i=t.width,o=t.height,a=i-(null==e?void 0:e.left)-(null==e?void 0:e.right),s=o-(null==e?void 0:e.top)-(null==e?void 0:e.bottom);return{x:n+(null==e?void 0:e.left),y:r+(null==e?void 0:e.top),width:a,height:s}},g_=function(t,e){return t-(e=QC(e)).size-e.margin.right-e.margin.left},m_=function(t,e,n){var r=t.y,i=t.height;void 0===n&&(n=0);var o=0;switch(e){case"top":o=r;break;case"middle":o=r+i/2-n/2;break;default:o=r+i-n}return o},y_=function(t,e,n,r,i){void 0===n&&(n=0),void 0===i&&(i=1);var o,a,s=t.x,l=t.width,u=e||{},c=u.textAlign,h=u.textBaseline,d=QC(r),f=d.size,p=d.margin,v=d.position,g=i*(f+p.left)+(i?p.right:0);switch(c){case"left":o=s+("left"===v?g:0),a=s+("left"===v?p.left:n+p.left);break;case"center":var m=s+l/2-(g-("left"===v?p.left:p.right)+n)/2;o=m+n/2+("left"===v?g-p.left:0),a=m+("left"===v?0:n+p.left);break;default:o=s+l-("right"===v?g:0),a=s+l-("right"===v?g-p.left:n+g-p.left)}return{text:{x:o,y:m_(t,h,0)},icon:{x:a,y:m_(t,h,f)}}},b_=function(t,e,n){var r,i,o,a,s,l=e.x,u=e.y,c=e.width,h=e.height,d=n.horizontalBorderWidth,f=n.horizontalBorderColorOpacity,p=n.horizontalBorderColor,v=n.verticalBorderWidth,g=n.verticalBorderColor,m=n.verticalBorderColorOpacity,y=n.borderDash;if(t===gC.TOP||t===gC.BOTTOM){var b=u;i=b=t===gC.TOP?u+v/2:u+h-v/2,a=b,r=l,o=l+c,s={lineWidth:d,stroke:p,strokeOpacity:f,lineDash:y}}if(t===gC.LEFT||t===gC.RIGHT){var w=l;r=w=t===gC.LEFT?l+d/2:l+c-d/2,o=w,i=u,a=u+h,s={lineWidth:v,stroke:g,strokeOpacity:m,lineDash:y}}return{position:{x1:r,x2:o,y1:i,y2:a},style:s}},w_=(zu(function(t,e){if(void 0===t&&(t=""),!e)return 0;var n,r=(n=document.getElementById(u_),n||((n=document.createElement("canvas")).id=u_,n.style.display="none",document.body.appendChild(n),n)).getContext("2d"),i=e,o=i.fontSize,a=i.fontFamily,s=i.fontWeight,l=i.fontStyle,u=i.fontVariant;return r.font=[l,u,s,"".concat(o,"px"),a].join(" ").trim(),r.measureText("".concat(t)).width},function(t,e){return c([t],u(av(e)),!1).join("")}),function(t,e,n,r){var i,o=t(Zo,r);i=iv(e)?e:Gu(e);var a,s,l=n,u=[];if(t(e,r)<=n)return e;for(var c=!0;c;){if((s=t(a=i.substr(0,16),r))+o>l&&s>l){c=!1;break}if(u.push(a),l-=s,!(i=i.substr(16)))return u.join("")}for(var h=!0;h;){if((s=t(a=i.substr(0,1),r))+o>l){h=!1;break}if(u.push(a),l-=s,!(i=i.substr(1)))return u.join("")}return"".concat(u.join(""),"...")}),C_=function(t){var e=t.measureTextWidth,n=t.text,r=t.maxWidth,i=t.fontParam,o=t.priorityParam,a=t.placeholder,s={},l=null!=a?a:Uo,h=Yv(n)||""===n||n===Eo?l:"".concat(n),d=o;if(i&&Ha(i)?d=i:s=i||{},!d||!d.length)return w_(e,h,r,s);var f=[],p=[h];d.forEach(function(t){p.forEach(function(e,n){var r=-1,i=e.match(new RegExp(t));if(i){var o=i[0];r=i.index,f.push(o);var a=r+o.length,s=[e.slice(0,r),e.slice(a)].filter(function(t){return!!t});p.splice.apply(p,c([n,1],u(s),!1))}})}),p=f.concat(p);var v=h,g=e(Zo,s),m=r;return p.forEach(function(t){if(m<=0){var n=v.indexOf(t),r=v.slice(n-3,n);if(r&&r!==Zo){var i=e(t,s);v=v.replace(t,i>g?Zo:t)}else v=v.replace(t,"");m-=g}else{i=e(t,s);if(m<i&&i>g){var o=w_(e,t,m,s);v=v.replace(t,o),m=0}else m-=i}}),v},__=function(t,e,n,r){void 0===r&&(r="left");var i=e.right,o=e.left,a=n||0;return"left"===r?t+i/2+a:"right"===r?t-i/2-a:t+o/2+a},x_=function(t){var e=t.rowIndex,n=t.colIndex,r=t.meta,i=t.data,o=t.textStyle,s=t.textCondition,l=null==o?void 0:o.fill;return(null==s?void 0:s.mapping)&&(l=null==s?void 0:s.mapping(i,{rowIndex:e,colIndex:n,meta:r}).fill),a(a({},o),{fill:l})},S_=function(t,e){return as(e)?e(t):e},E_=function(t,e,n){var r,i,o,s;void 0===n&&(n=!0);var l=t.getContentArea(),u=l.x,c=l.y,h=l.height,d=l.width,f=e||t.getMeta().fieldValue,p=f.values,v=t.getMeta().spreadsheet,g=v.options,m=v.measureTextWidth,y=g.style.cellCfg.valuesCfg,b=null===(i=null===(r=null==g?void 0:g.conditions)||void 0===r?void 0:r.text)||void 0===i?void 0:i[0],w=null===(s=null===(o=null==g?void 0:g.conditions)||void 0===o?void 0:o.icon)||void 0===s?void 0:s[0];if(Ha(p)){var C=null==y?void 0:y.widthPercent,_=0;if(null==f?void 0:f.label){var x=t.getStyle(aa.DATA_CELL).bolderText,S=r_(t,[],u,c+(_=h/(p.length+1))/2,C_({measureTextWidth:m,text:f.label,maxWidth:d,fontParam:x}),x);t.addTextShape(S)}for(var E,O=function(t){var e,n,r=t.getMeta().isTotals,i=null===(n=(e=t).isMeasureField)||void 0===n?void 0:n.call(e),o=t.getStyle(t.cellType||aa.DATA_CELL);return{cellStyle:o,textStyle:i?o.measureText:r?o.bolderText:o.text}}(t),T=O.cellStyle,I=O.textStyle,M=null==T?void 0:T.icon,L=w&&w.mapping&&{size:null==M?void 0:M.size,margin:null==M?void 0:M.margin,position:null==w?void 0:w.position},k=function(t,e,n){for(var r,i,o,a=t.x,s=t.y,l=t.width,u=t.height/cy(e),c=[],h=0,d=Rp(n,function(t){return t>1?t/100:t}),f=0;f<cy(e);f++){i=s+u*f;var p=[];r=a,h=0;for(var v=0;v<cy(e[f]);v++)o=Hv(d)?l/cy(e[0]):l*d[v],r=__(a,{left:0,right:0},h,"left"),h+=o,p.push({x:r,y:i,width:o,height:u});c.push(p)}return c}({x:u,y:c+_,height:h-_,width:d},p,C),A=0;A<p.length;A++)for(var R=Id(p[A]),D=0;D<R.length;D++){E=R[D];var P=n?x_({rowIndex:A,colIndex:D,meta:null==t?void 0:t.getMeta(),data:E,textStyle:I,textCondition:b}):I,N=(null==t?void 0:t.getMeta().spreadsheet.options).placeholder,B=S_(null==t?void 0:t.getMeta(),N),z=g_(k[A][D].width,M),F=C_({measureTextWidth:m,text:E,maxWidth:z,fontParam:P,placeholder:B}),H=m(F,I),j=y_(k[A][D],I,H,L,w?1:0);S=r_(t,[],j.text.x,j.text.y,F,P,{},null==E?void 0:E.toString());if(t.addTextShape(S),w&&n){var W=null==w?void 0:w.mapping(E,{rowIndex:A,colIndex:D,meta:null==t?void 0:t.getMeta()});if(W){var G=a_(t,a(a({},j.icon),{name:W.icon,width:null==M?void 0:M.size,height:null==M?void 0:M.size,fill:W.fill}));t.addConditionIconShape(G)}}}}else p_(t,p)},O_=function(t,e){return void 0===e&&(e=1),(null==t?void 0:t.width)*e},T_=function(t){try{return JSON.parse(t)}catch(t){return null}};function I_(t){return t===xo}function M_(t,e,n){return void 0===t&&(t={}),void 0===e&&(e=[]),void 0===n&&(n=_o),e.reduce(function(e,r){var i=t[r];return r in t?e.push(String(i)):e.push(n),e},[])}function L_(t,e){var n=e.filter(function(e){return e in t});return Hv(n)&&n.push(Oo),n}function k_(t,e,n){void 0===t&&(t={}),void 0===e&&(e=[]);var r=[];function i(t,e,n){return e.reduce(function(e,r){var i=t[r];return r in t?e.push(String(i)):r===bo&&n?e.push(n):e.push(_o),e},[])}return n?n.forEach(function(n){r.push(i(t,e,n))}):r.push(i(t,e)),r}function A_(t,e){return t.concat(e).filter(function(t){return t!==bo}).join($o)}function R_(t){var e=t.rowDimensionValues,n=t.colDimensionValues,r=t.isFirstCreate,i=t.onFirstCreate,o=t.rowFields,a=t.colFields,s=t.rowPivotMeta,l=t.colPivotMeta,h=t.prefix,d=void 0===h?"":h,f=function(t,e,n,o){for(var a=n,s=[],l=0;l<e.length;l++){var u=e[l];if(r&&a&&!(null==a?void 0:a.has(u))){var c=e.slice(0,l+1).map(function(t){return String(t)}),h=c.join($o),d=void 0;d=u===_o?0:a.has(_o)?a.size:a.size+1,a.set(u,{id:h,dimensions:c,value:u,level:d,children:new Map}),null==i||i({dimension:null==t?void 0:t[l],dimensionPath:h,careRepeated:o})}var f=null==a?void 0:a.get(u);if(s.push(I_(u)?u:null==f?void 0:f.level),f){var p=null==t?void 0:t[l+1];r&&f.childField!==p&&(f.childField=p),a=null==f?void 0:f.children}}return s},p=f(o,e,s,!1),v=f(a,n,l,!0);return c(c([d],u(p),!1),u(v),!1)}function D_(t,e){if(t&&e){var n=e.split($o),r=Yf(n),i=t;ep(n,function(t,e){var n=i.get(t);return n?(t===r?(n.children=new Map,n.childField=void 0):i=n.children,!0):0===e&&t===Vo})}}function P_(t,e,n){var r={field:bo,name:e||n,formatter:function(e){return function(e){var n=Ep(t,function(t){return t.field===e});return Yu(n,"name",e)}(e)}};return r}function N_(t,e){return{isRowTotal:t.isGrandTotals,isRowSubTotal:t.isSubTotals,isColTotal:e.isGrandTotals,isColSubTotal:e.isSubTotals}}function B_(t){var e=t.pivotMeta,n=t.dimensionValues,r=t.fieldIdx,i=t.queryType,o=t.fields,a=t.sortedDimensionValues,s=[{children:e}];for(var u=function(t){var e=n[t],r=o[t];s=I_(e)?function(t,e){var n,r=Dp(t,function(t){var e,n,r=[];try{for(var o=l(t.children.values()),a=o.next();!a.done;a=o.next()){var s=a.value;s.value===Oo||i!==iC.All&&s.value===_o||r.push(s)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r});if(t.length>1){var o=null!==(n=a[e])&&void 0!==n?n:[],s=new Map(o.map(function(t,e){return[t,e]}));return r.sort(function(t,e){return s.get(t.id)-s.get(e.id)}),r}return r}(s,r):s.map(function(t){return t.children.get(e)}).filter(Boolean)},c=0;c<=r;c++)u(c);return s}function z_(t){var e=t.dimensionValues,n=t.pivotMeta,r=t.fields,i=t.sortedDimensionValues,o=t.queryType,a=void 0===o?iC.All:o;return function(t){for(var e=null,n=0;n<t.length;n++)if(I_(t[n]))e=n;else if(!Xv(e)&&e<n)return!0;return!1}(e)?B_({pivotMeta:n,dimensionValues:e,fieldIdx:e.length-1,queryType:a,fields:r,sortedDimensionValues:i}).map(function(t){return t.dimensions}):[e]}function F_(t,e){return t?Ha(t)?Dp(t,function(t){if(!Ha(t))return Ld([t]);var n=e===iC.DetailOnly?1:0;return Ld(t.slice(n))}):Ld([t]):[]}function H_(t,e){return!(!t||!e)&&String(t).toLowerCase()===String(e).toLowerCase()}var j_,W_=function(t,e){var n=t.getColumnNodes().find(function(t){return t.id===e});return t.isPivotMode()?null==n?void 0:n.value:null==n?void 0:n.field},G_=function(t,e){var n=e.getColumnNodes().find(function(e){return e.colIndex===t}),r=W_(e,n.id);return e.options.interaction.copyWithFormat?e.dataSet.getFieldFormatter(r):function(t){return t}},V_=function(t,e,n){var r,i;if(n.isPivotMode()){var o=u(function(t,e){var n=t.rowIndex,r=t.colIndex;return[e.getRowNodes().find(function(t){return t.rowIndex===n}),e.getColumnNodes().find(function(t){return t.colIndex===r})]}(t,n),2),s=o[0],l=o[1],c=function(t){var e,n,r,i;return(null===(i=null===(r=null===(n=t.options)||void 0===n?void 0:n.style)||void 0===r?void 0:r.colCfg)||void 0===i?void 0:i.hideMeasureColumn)&&t.isValueInCols()?((e={})[bo]=t.dataCfg.fields.values[0],e):{}}(n),h=n.dataSet.getCellData({query:a(a(a({},s.query),l.query),c),rowNode:s,isTotals:s.isTotals||s.isTotalMeasure||l.isTotals||l.isTotalMeasure,totalStatus:N_(s,l)});return null!==(r=null==h?void 0:h[yo])&&void 0!==r?r:""}var d=function(t,e){var n=e.getColumnNodes().find(function(e){return e.colIndex===t});return W_(e,n.id)}(t.colIndex,n);return null===(i=e[t.rowIndex])||void 0===i?void 0:i[d]},$_=function(t,e,n){return G_(t.colIndex,n)(V_(t,e,n))},U_=function(t){return/\n/.test(t)?'"'+t.replace(/\r\n?/g,"\n")+'"':t},Y_=function(t,e){var n=t.split($o);return e?n.slice(n.length-e):(n.shift(),n)},X_=function(t,e){return Rp(t,function(t){return e.dataSet.getFieldName(t)})};!function(t){t.PLAIN="text/plain",t.HTML="text/html"}(j_||(j_={}));var q_=((l_={})[j_.PLAIN]=function(t){return{type:j_.PLAIN,content:Rp(t,function(t){return t.join("\t")}).join("\r\n")}},l_[j_.HTML]=function(t){return{type:j_.HTML,content:'<meta charset="utf-8"><table><tbody>'.concat((e=t,n="tr",e.map(function(t){return"<".concat(n,">").concat(function(t,e){return t.map(function(t){return"<".concat(e,">").concat(fp(t),"</").concat(e,">")}).join("")}(t,"td"),"</").concat(n,">")}).join("")),"</tbody></table>")};var e,n},l_);function K_(t){return q_[t]}function Z_(t,e){return void 0===e&&(e=j_.PLAIN),Array.isArray(e)?[].concat(t).filter(function(t){return e.includes(t.type)}).map(function(t){return t.content}):[].concat(t).filter(function(t){return(null==t?void 0:t.type)===e}).map(function(t){return t.content})[0]||""}var J_=function(t,e,n){var r,i,o,a,s,l,u=null!==(i=null===(r=t[0])||void 0===r?void 0:r.length)&&void 0!==i?i:0,c=null!==(o=null==e?void 0:e.length)&&void 0!==o?o:0,h=null!==(s=null===(a=n[0])||void 0===a?void 0:a.length)&&void 0!==s?s:0,d=null!==(l=n.length)&&void 0!==l?l:0,f=u+h,p=c+d,v=Array.from(Array(p),function(){return new Array(f)});return v=Rp(v,function(r,i){return Rp(r,function(r,o){return o>=0&&o<u&&i>=0&&i<c?"":o>=u&&o<=f&&i>=0&&i<c?e[i][o-u]:o>=0&&o<u&&i>=c&&i<p?t[i-c][o]:o>=u&&o<=f&&i>=c&&i<p?n[i-c][o-u]:void 0})}),[K_(j_.PLAIN)(v),K_(j_.HTML)(v)]},Q_=function(t,e,n){return Rp(t,function(t){return e.map(function(e){var r,i=n.dataSet.getCellData({query:a(a({},t.query),e.query),rowNode:t,isTotals:t.isTotals||t.isTotalMeasure||e.isTotals||e.isTotalMeasure,totalStatus:N_(t,e)});return G_(e.colIndex,n)(null!==(r=null==i?void 0:i[yo])&&void 0!==r?r:"")})})};function tx(t,e,n){return t.options.interaction.copyWithHeader?function(t,e,n){var r=Rp(e,function(t){return Y_(t.id)}),i=Ab.apply(void 0,c([],u(Rp(n,function(t){return Y_(t.id)})),!1)),o=Q_(e,n,t);return J_(r,i,o)}(t,e,n):function(t,e,n){var r=Q_(e,n,t);return[K_(j_.PLAIN)(r),K_(j_.HTML)(r)]}(t,e,n)}var ex=function(t,e,n){return e.isPivotMode()?function(t,e){var n=t.getRowNodes().filter(function(e){return e.isLeaf||t.isHierarchyTreeType()}),r=t.getColumnNodes().filter(function(t){return t.isLeaf}),i=e.length?e.reduce(function(t,e){return t.push.apply(t,c([],u(r.filter(function(t){return t.id.startsWith(e.id)})),!1)),t},[]):r;return tx(t,n,i)}(e,n):function(t,e){var n=t.dataSet.getDisplayDataSet(),r=e.length?e.map(function(e){return{field:W_(t,e.id),formatter:G_(e.colIndex,t)}}):t.dataCfg.fields.columns.map(function(e){return t.getColumnNodes().find(function(t){return t.field===e})}).map(function(e){return{field:W_(t,e.id),formatter:G_(e.colIndex,t)}}),i=n.map(function(t){return r.map(function(e){var n=e.field,r=e.formatter;return U_(r(t[n]))})});return[K_(j_.PLAIN)(i),K_(j_.HTML)(i)]}(e,n)},nx=function(t,e,n){return e.isPivotMode()?function(t,e){var n=t.getRowNodes().filter(function(e){return e.isLeaf||t.isHierarchyTreeType()}),r=t.getColumnNodes().filter(function(t){return t.isLeaf}),i=e.reduce(function(t,e){return t.push.apply(t,c([],u(n.filter(function(t){return t.id.startsWith(e.id)})),!1)),t},[]);return tx(t,i,r)}(e,n):function(t,e){var n=t.dataSet.getDisplayDataSet().filter(function(t,n){return e.map(function(t){return t.rowIndex}).includes(n)}).map(function(e){var n=t.getColumnNodes().reduce(function(t,e,n){return t[e.field]=n,t},{});return Object.keys(e).sort(function(t,e){return n[t]-n[e]}).map(function(e){return t.getColumnNodes().find(function(t){return t.field===e})}).filter(Boolean).map(function(n){return U_(G_(n.colIndex,t)(e[n.field]))})});return[K_(j_.PLAIN)(n),K_(j_.HTML)(n)]}(e,n)};function rx(t,e,n){return Rp(t,function(t){var r=t.getMeta(),i=r.id,o=r.isTotals,a=r.spreadsheet,s=o?function(t,e){for(var n=t,r={level:e},i=n.label;n.level>=0;){for(var o=r.level-n.level;o>0;)i="".concat(n.label).concat($o).concat(i),o--;r=n,n=n.parent}return i}(r,e):i,l=Y_(s,n.size);return X_(l,a)})}function ix(t){var e,n=function(t){var e=new Set;return ep(t,function(t){var n=t.getMeta().level;e.has(n)||e.add(n)}),e}(t),r=null!==(e=mg(Array.from(n)))&&void 0!==e?e:0,i=function(t,e){return Cp(t,function(t){var n=t.getMeta(),r=n.level===e,i=n.isTotals&&Hv(n.children);return r||i})}(t,r),o=t[0].cellType===aa.COL_CELL,a=rx(i,r,n);return o&&(a=Ab.apply(void 0,c([],u(a),!1))),[K_(j_.PLAIN)(a),K_(j_.HTML)(a)]}var ox=function(t,e,n){return Rp(e,function(e){var r;return null!==(r=t[e])&&void 0!==r?r:n})},ax=function(t,e){var n,r=t.options.placeholder,i=t.dataCfg.fields,o=i.rows,a=i.columns,s=i.values,l=S_(t,r),h=t.getColumnLeafNodes(),d=[];if(t.isTableMode()){var f=Cp(h,function(t){return t.field!==So});d=Rp(e,function(t){return Rp(f,function(e){var n;return null!==(n=null==t?void 0:t[e.field])&&void 0!==n?n:l})})}else if(t.isPivotMode()){var p=c(c(c([],u(o),!1),u(a),!1),u(s),!1);d=Zm((Ha(n=e)?Bp(n):[n]).filter(function(t){return c(c([],u(o),!1),u(a),!1).every(function(e){return!Yv(t[e])})}),function(t,e){return c(c([],u(t),!1),[ox(e,p,l)],!1)},[])}return[K_(j_.PLAIN)(d),K_(j_.HTML)(d)]};function sx(t,e){var n,r,i=e.filter(function(t){return t.type===aa.COL_CELL}),o=e.filter(function(t){return t.type===aa.ROW_CELL}),a=t.dataSet.getDisplayDataSet();if(t.interaction.getCurrentStateName()===oa.ALL_SELECTED)r=ex(0,t,[]);else if(i.length)r=ex(0,t,i);else if(o.length)r=nx(0,t,o);else{if(!e.length)return;var s=function(t){if(!(null==t?void 0:t.length))return[];var e=u([{row:1/0,col:1/0},{row:0,col:0}],2),n=e[0],r=e[1];t.forEach(function(t){var e=t.rowIndex,i=t.colIndex;n.col=Math.min(i,n.col),n.row=Math.min(e,n.row),r.col=Math.max(i,r.col),r.row=Math.max(e,r.row)});var i=u([r.row-n.row+1,r.col-n.col+1],2),o=i[0],a=i[1],s=new Array(o).fill("").map(function(){return new Array(a).fill("")});return t.forEach(function(t){var e=t.rowIndex,r=t.colIndex,i=u([e-n.row,r-n.col],2),o=i[0],a=i[1];s[o][a]=t}),s}(e);if(t.interaction.getSelectedCellHighlight().currentRow){var l=Gg(e,"rowIndex","asc").map(function(e){return t.dataSet.getRowData(e)});r=ax(t,l)}else r=(null===(n=t.options.interaction)||void 0===n?void 0:n.copyWithHeader)?function(t,e,n){var r=Ab.apply(void 0,c([],u(Rp(t[0],function(t){var e,r=(null==t?void 0:t.colId)||Yf(null===(e=null==t?void 0:t.id)||void 0===e?void 0:e.split("-"))||"";return X_(Y_(r),n)})),!1)),i=Rp(t,function(t){var e,r,i,o=(null===(e=null==t?void 0:t[0])||void 0===e?void 0:e.rowId)||kp(null===(i=null===(r=null==t?void 0:t[0])||void 0===r?void 0:r.id)||void 0===i?void 0:i.split("-"))||"";return X_(Y_(o),n)}),o=Rp(t,function(t){return Rp(t,function(t){return $_(t,e,n)})});return J_(i,r,o)}(s,a,t):function(t,e,n){var r=e.map(function(e){return e.map(function(e){return e?U_($_(e,t,n)):""})});return[K_(j_.PLAIN)(r),K_(j_.HTML)(r)]}(a,s,t)}return r}var lx=function(t){return new Promise(function(e,n){var r;r=Array.isArray(t)?Yu(t.filter(function(t){return t.type===j_.PLAIN}),"[0].content",""):t.content||"";var i=document.createElement("textarea");i.value=r,document.body.appendChild(i),i.focus({preventScroll:!0}),i.select();var o=document.execCommand("copy");document.body.removeChild(i),o?e():n()})},ux=function(t,e){var n;return void 0===e&&(e=!1),n="string"==typeof t?{content:t,type:j_.PLAIN}:t,navigator.clipboard&&window.ClipboardItem&&!e?function(t){return navigator.clipboard.write([new ClipboardItem([].concat(t).reduce(function(t,e){var n,r=e.type,i=e.content.replace(/\x00/g,"");return a(a({},t),((n={})[r]=new Blob([i],{type:r}),n))},{}))]).catch(function(){return lx(t)})}(n):lx(n)},cx=function(t,e,n){var r,i=t.split($o);if(n)r=[t];else{r=[AC(i[0],i[1])];for(var o=2;o<i.length;o+=1)r.push(AC(r[o-2],i[o]))}var a=Cp(e,function(t){var e;return r.includes(null===(e=t.getMeta())||void 0===e?void 0:e.id)});return a},hx=function(t,e,n){t&&ep(cx(t,e),function(t){t.updateByState(n)})},dx=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=c(c([],u(t),!1),[function(t,e){if(Ha(t)&&Ha(e))return e}],!1);return Nf.apply(void 0,c([{}],u(n),!1))},fx=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=dx.apply(void 0,c([ra],u(t),!1));return n.fields=function(t){var e=["rows","columns","values"].reduce(function(e,n){var r=t[n],i=fb(r);return jv(i,r),e[n]=i,e},{});return a(a({},t),e)}(n.fields),Hv(n.fields.customTreeItems)&&!Hv(n.fields.values)||(n.fields.valueInCols=!1),n},px=function(t){return dx(Sa,t)},vx=function(t){function e(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=t.call(this,{})||this;return o.textShapes=[],o.actualTextWidth=0,o.conditionIconShapes=[],o.stateShapes=new Map,o.meta=e,o.spreadsheet=n,o.theme=n.theme,o.conditions=o.spreadsheet.options.conditions,o.handleRestOptions.apply(o,c([],u(r),!1)),o.shouldInit()&&o.initCell(),o}return o(e,t),e.prototype.getMeta=function(){return this.meta},e.prototype.setMeta=function(t){this.meta=dx(this.meta,t)},e.prototype.getIconStyle=function(){return this.theme[this.cellType].icon},e.prototype.getTextAndIconPosition=function(t){void 0===t&&(t=1);var e=this.getTextStyle(),n=this.getIconStyle();return y_(this.getContentArea(),e,this.actualTextWidth,n,t)},e.prototype.getActualText=function(){return this.actualText},e.prototype.isTextOverflowing=function(){var t=this.getActualText();return t?lv(t,Zo):t!==this.getFieldValue()},e.prototype.getFieldValue=function(){var t=this.getFormattedFieldValue().formattedValue;return t===Eo?this.getActualText():t},e.prototype.handleRestOptions=function(){},e.prototype.shouldInit=function(){var t=this.meta,e=t.width,n=t.height;return e>0&&n>0},e.prototype.getStyle=function(t){return Yu(this.theme,t||this.cellType)},e.prototype.getResizeAreaStyle=function(){return this.getStyle("resizeArea")},e.prototype.shouldDrawResizeAreaByType=function(t,e){var n=this.spreadsheet.options.interaction.resize;return Pv(n)?n:as(n.visible)?n.visible(e):n[t]},e.prototype.getCellArea=function(){var t=this.meta;return{x:t.x,y:t.y,height:t.height,width:t.width}},e.prototype.getContentArea=function(){var t=this.getStyle()||this.theme.dataCell,e=(null==t?void 0:t.cell).padding;return v_(this.getCellArea(),e)},e.prototype.getIconPosition=function(t){return void 0===t&&(t=1),this.getTextAndIconPosition(t).icon},e.prototype.drawTextShape=function(){var t=this.getFormattedFieldValue().formattedValue,e=this.getMaxTextWidth(),n=this.getTextStyle(),r=this.spreadsheet,i=r.options.placeholder,o=r.measureTextWidth,a=S_(this,i),s=C_({measureTextWidth:o,text:t,maxWidth:e,fontParam:n,placeholder:a});this.actualText=s,this.actualTextWidth=o(s,n);var l=this.getTextPosition();this.textShape=r_(this,[this.textShape],l.x,l.y,s,n),this.textShapes.push(this.textShape)},e.prototype.drawLinkFieldShape=function(t,e){if(t){if(!oC(this.spreadsheet.options.style.device)){var n=this.getTextStyle(),r=this.getTextPosition().x;"center"===n.textAlign?r-=this.actualTextWidth/2:"right"===n.textAlign&&(r-=this.actualTextWidth);var i=this.textShape.getBBox().maxY;this.linkFieldShape=i_(this,{x1:r,y1:i+1,x2:r+this.actualTextWidth,y2:i+1},{stroke:e,lineWidth:1})}this.textShape.attr({fill:e,cursor:"pointer",appendInfo:{isLinkFieldText:!0,cellData:this.meta}})}},e.prototype.getLinkFieldStyle=function(){return this.getTextStyle().linkTextFill},e.prototype.drawLinkField=function(t){var e=this.spreadsheet.options.interaction.linkFields,n=void 0===e?[]:e,r=this.getLinkFieldStyle(),i=function(t,e){return"function"==typeof t?t(e):t.some(function(t){return t===e.key||t===e.id||t===e.valueField})}(n,t);this.drawLinkFieldShape(i,r)},e.prototype.updateByState=function(t,e){var n=this;this.spreadsheet.interaction.setInteractedCells(e),ep(Yu(this.theme,"".concat(this.cellType,".cell.interactionState.").concat(t)),function(t,e){du(Hg(fa,function(t){return lv(t,e)})).forEach(function(r){var i=n.stateShapes.has(r),o=i?n.stateShapes.get(r):n[r],a=Ha(o)?o:[o];(i&&a.forEach(function(t){t.set("visible",!0)}),"interactiveBorderShape"===r&&"borderWidth"===e)&&(Vv(t)&&ep(n.getInteractiveBorderShapeStyle(t),function(t,e){o_(a,e,t)}));o_(a,da[e],t)})})},e.prototype.getInteractiveBorderShapeStyle=function(t){var e=this.getCellArea(),n=e.x,r=e.y,i=e.height,o=e.width,a=this.theme.dataCell.cell,s=a.horizontalBorderWidth,l=a.verticalBorderWidth;return{x:n+l/2+t/2,y:r+s/2+t/2,width:o-l-t,height:i-s-t}},e.prototype.hideInteractionShape=function(){this.stateShapes.forEach(function(t){o_(t,da.backgroundOpacity,0),o_(t,da.backgroundColor,"transparent"),o_(t,da.borderOpacity,0),o_(t,da.borderWidth,1),o_(t,da.borderColor,"transparent")})},e.prototype.clearUnselectedState=function(){o_(this.backgroundShape,da.backgroundOpacity,1),o_(this.textShapes,da.textOpacity,1),o_(this.linkFieldShape,da.opacity,1)},e.prototype.getTextShape=function(){return this.textShape},e.prototype.getTextShapes=function(){return this.textShapes||[this.textShape]},e.prototype.addTextShape=function(t){t&&this.textShapes.push(t)},e.prototype.getConditionIconShape=function(){return this.conditionIconShape},e.prototype.getConditionIconShapes=function(){return this.conditionIconShapes||[this.conditionIconShape]},e.prototype.addConditionIconShape=function(t){t&&this.conditionIconShapes.push(t)},e.prototype.resetTextAndConditionIconShapes=function(){this.textShapes=[],this.conditionIconShapes=[]},Object.defineProperty(e.prototype,"cellConditions",{get:function(){return this.conditions},enumerable:!1,configurable:!0}),e.prototype.drawConditionIconShapes=function(){var t,e=this.findFieldCondition(null===(t=this.conditions)||void 0===t?void 0:t.icon);if(e&&e.mapping){var n=this.mappingValue(e),r=this.getIconPosition(),i=this.theme.dataCell.icon.size;Hv(null==n?void 0:n.icon)||(this.conditionIconShape=a_(this,a(a({},r),{name:n.icon,width:i,height:i,fill:n.fill})),this.addConditionIconShape(this.conditionIconShape))}},e.prototype.getTextConditionFill=function(t){var e,n,r=t.fill,i=this.findFieldCondition(null===(e=this.conditions)||void 0===e?void 0:e.text);return(null==i?void 0:i.mapping)&&(r=(null===(n=this.mappingValue(i))||void 0===n?void 0:n.fill)||t.fill),r},e.prototype.getCrossBackgroundColor=function(t){var e=this.getStyle().cell,n=e.crossBackgroundColor,r=e.backgroundColorOpacity;return n&&t%2==0?{backgroundColorOpacity:r,backgroundColor:n}:{backgroundColorOpacity:r,backgroundColor:this.getStyle().cell.backgroundColor}},e}(ki),gx=function(t,e){return e?e(t[bo],t[yo]):t[yo]},mx=function(t,e){var n=e.getMeta().id;return t.some(function(t){return jv(t.id,n)})},yx=function(t,e){return"".concat(t).concat("-").concat(e)},bx=function(t){return t.type===aa.DATA_CELL},wx=function(t,e,n){var r=n.interaction.getSelectedCellHighlight(),i=r.rowHeader,o=r.colHeader,a=r.currentRow,s=r.currentCol,l=e.cellType===aa.ROW_CELL,u=n.isTableMode()&&n.options.showSeriesNumber&&i&&l;(a||u)&&function(t,e){ep(t,function(t){bx(t)&&t.rowIndex===e.getMeta().rowIndex&&e.updateByState(oa.SELECTED)})}(t,e),s&&function(t,e){ep(t,function(t){bx(t)&&t.colIndex===e.getMeta().colIndex&&e.updateByState(oa.SELECTED)})}(t,e),(i||o)&&function(t,e){ep(t,function(t){bx(t)&&t.rowIndex===e.getMeta().rowIndex&&t.colIndex===e.getMeta().colIndex&&e.updateByState(oa.SELECTED)})}(t,e)},Cx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"cellType",{get:function(){return aa.DATA_CELL},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueRangeByField",{get:function(){return this.spreadsheet.dataSet.getValueRangeByField(this.meta.valueField)},enumerable:!1,configurable:!0}),e.prototype.handleByStateName=function(t,e){mx(t,this)&&this.updateByState(e)},e.prototype.handleSearchResult=function(t){mx(t,this)&&(Ep(t,function(t){return null==t?void 0:t.isTarget}).id===this.getMeta().id?this.updateByState(oa.HIGHLIGHT):this.updateByState(oa.SEARCH_RESULT))},e.prototype.handleSelect=function(t){var e;switch(null===(e=null==t?void 0:t[0])||void 0===e?void 0:e.type){case aa.COL_CELL:this.changeRowColSelectState("colIndex");break;case aa.ROW_CELL:this.changeRowColSelectState("rowIndex");break;case aa.DATA_CELL:!function(t){var e=t.interaction.getSelectedCellHighlight(),n=e.currentRow,r=e.currentCol,i=e.rowHeader,o=e.colHeader;return n||r||i||o}(this.spreadsheet)?mx(t,this)?this.updateByState(oa.SELECTED):this.spreadsheet.options.interaction.selectedCellsSpotlight&&this.updateByState(oa.UNSELECTED):wx(t,this,this.spreadsheet)}},e.prototype.handleHover=function(t){var e=kp(t);if(e.type===aa.DATA_CELL){var n=this.spreadsheet.interaction.getHoverHighlight(),r=n.currentRow,i=n.currentCol;if(r||i){var o=this.meta.colIndex,a=this.meta.rowIndex;i&&o===(null==e?void 0:e.colIndex)||r&&a===(null==e?void 0:e.rowIndex)?this.updateByState(oa.HOVER):this.hideInteractionShape()}var s=this.getMeta(),l=s.id,u=s.rowIndex,c=s.colIndex;jv(e.id,l)&&jv(e.rowIndex,u)&&jv(e.colIndex,c)&&this.updateByState(oa.HOVER_FOCUS)}else this.hideInteractionShape()},e.prototype.update=function(){var t=this.spreadsheet.interaction.getCurrentStateName(),e=this.spreadsheet.interaction.getCells();if(t!==oa.ALL_SELECTED){if(!Hv(e)&&t)switch(t){case oa.SELECTED:this.handleSelect(e);break;case oa.HOVER_FOCUS:case oa.HOVER:this.handleHover(e);break;case oa.SEARCH_RESULT:this.handleSearchResult(e);break;default:this.handleByStateName(e,t)}}else this.updateByState(oa.SELECTED)},e.prototype.setMeta=function(e){t.prototype.setMeta.call(this,e),this.initCell()},e.prototype.drawTextShape=function(){t.prototype.drawTextShape.call(this),this.drawLinkField(this.meta)},e.prototype.initCell=function(){this.resetTextAndConditionIconShapes(),this.drawBackgroundShape(),this.drawInteractiveBgShape(),this.shouldHideRowSubtotalData()||(this.drawConditionIntervalShape(),this.drawTextShape(),this.drawConditionIconShapes()),this.drawInteractiveBorderShape(),this.meta.isFrozenCorner&&this.drawBorderShape(),this.update()},e.prototype.getDefaultTextFill=function(t){var e=t.fill,n=this.getBackgroundColor(),r=n.backgroundColor,i=n.intelligentReverseTextColor;return!Ww(r)||e!==ea&&function(t,e){return lw.isReadable(t,e,{level:"AA",size:"small"})}(r,e)||!i||(e=na),e},e.prototype.getTextStyle=function(){var t=this.meta.isTotals?this.theme.dataCell.bolderText:this.theme.dataCell.text,e=this.getTextConditionFill(a(a({},t),{fill:this.getDefaultTextFill(t)}));return a(a({},t),{fill:e})},e.prototype.getIconStyle=function(){return t_(this.conditions,this.theme.dataCell.icon,this.meta.valueField)},e.prototype.drawConditionIntervalShape=function(){this.conditionIntervalShape=d_(this)},e.prototype.shouldHideRowSubtotalData=function(){var t,e=this.meta,n=e.rowId,r=e.rowIndex,i=this.spreadsheet.store.get("drillDownIdPathMap");if(null==i?void 0:i.has(n))return!1;var o=(null!==(t=this.spreadsheet.options.totals)&&void 0!==t?t:{}).row,a=void 0===o?{}:o,s=this.spreadsheet.facet.layoutResult.rowLeafNodes[r],l=!(null==s?void 0:s.isGrandTotals)&&(null==s?void 0:s.isTotals);return"tree"===this.spreadsheet.options.hierarchyType&&!a.showSubTotals&&l},e.prototype.getFormattedFieldValue=function(){var t;if(this.shouldHideRowSubtotalData())return{value:null,formattedValue:Uo};var e=this.meta,n=e.rowId,r=e.valueField,i=e.fieldValue,o=e.data,a=e.id,s=null===(t=this.spreadsheet.dataSet.displayFormattedValueMap)||void 0===t?void 0:t.get(a),l=this.spreadsheet.dataSet.getFieldMeta(n)?n:r,u=this.spreadsheet.dataSet.getFieldFormatter(l);return{value:i,formattedValue:null!=s?s:u(i,o,this.meta)}},e.prototype.getMaxTextWidth=function(){var t=this.getContentArea().width,e=this.getIconStyle();return g_(t,e)},e.prototype.getTextPosition=function(){return this.getTextAndIconPosition().text},e.prototype.getBackgroundColor=function(){var t,e=this.getCrossBackgroundColor(this.meta.rowIndex),n=e.backgroundColor,r=e.backgroundColorOpacity;if(this.shouldHideRowSubtotalData())return{backgroundColor:n,backgroundColorOpacity:r};var i=this.findFieldCondition(null===(t=this.conditions)||void 0===t?void 0:t.background),o=!1;if(i&&i.mapping){var a=this.mappingValue(i);a&&(n=a.fill,o=a.intelligentReverseTextColor,r=1)}return{backgroundColor:n,backgroundColorOpacity:r,intelligentReverseTextColor:o}},e.prototype.drawBackgroundShape=function(){var t=this.getBackgroundColor(),e=t.backgroundColor,n=t.backgroundColorOpacity;this.backgroundShape=e_(this,a(a({},this.getCellArea()),{fill:e,fillOpacity:n}))},e.prototype.drawInteractiveBorderShape=function(){var t=this.getCellArea(),e=t.x,n=t.y,r=t.height,i=t.width;this.stateShapes.set("interactiveBorderShape",e_(this,{x:e+1,y:n+1,width:i-2,height:r-2},{capture:!1,visible:!1}))},e.prototype.drawInteractiveBgShape=function(){this.stateShapes.set("interactiveBgShape",e_(this,a({},this.getCellArea()),{visible:!1}))},e.prototype.changeRowColSelectState=function(t){var e=this.spreadsheet.interaction,n=Yu(this.meta,t),r=e.getState(),i=r.nodes,o=void 0===i?[]:i,a=r.cells,s=void 0===a?[]:a,l=!1;this.spreadsheet.isTableMode()&&o.length?l=o[0].hierarchy.getLeaves().some(function(t,e){return!!o.some(function(e){return e===t})&&e===n}):l=c(c([],u(o),!1),u(s),!1).some(function(e){return Yu(e,t)===n});l?this.updateByState(oa.SELECTED):this.spreadsheet.options.interaction.selectedCellsSpotlight?this.updateByState(oa.UNSELECTED):this.hideInteractionShape()},e.prototype.drawBorderShape=function(){var t=this;[gC.BOTTOM,gC.RIGHT].forEach(function(e){var n=b_(e,t.getCellArea(),t.getStyle().cell),r=n.position,i=n.style;i_(t,r,i)})},e.prototype.findFieldCondition=function(t){return JC(t,this.meta.valueField)},e.prototype.mappingValue=function(t){var e=this.meta.fieldValue,n=this.spreadsheet.isTableMode()?this.spreadsheet.dataSet.getCellData({query:{rowIndex:this.meta.rowIndex}}):this.meta.data;return null==t?void 0:t.mapping(e,n)},e.prototype.updateByState=function(e){if(t.prototype.updateByState.call(this,e,this),e===oa.UNSELECTED){var n=Yu(this.theme,"".concat(this.cellType,".cell.interactionState.").concat(e));n&&this.toggleConditionIntervalShapeOpacity(n.opacity)}},e.prototype.clearUnselectedState=function(){t.prototype.clearUnselectedState.call(this),this.toggleConditionIntervalShapeOpacity(1)},e.prototype.toggleConditionIntervalShapeOpacity=function(t){o_(this.conditionIntervalShape,da.backgroundOpacity,t),o_(this.conditionIconShapes,da.opacity,t)},e.prototype.drawLeftBorder=function(){var t=b_(gC.LEFT,this.getCellArea(),this.getStyle().cell);i_(this,t.position,t.style)},e}(vx),_x=function(t){function e(e,n,r){return t.call(this,r,e,n)||this}return o(e,t),e.prototype.handleRestOptions=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=u(t,1)[0];this.cells=n},Object.defineProperty(e.prototype,"cellType",{get:function(){return aa.MERGED_CELL},enumerable:!1,configurable:!0}),e.prototype.update=function(){},e.prototype.initCell=function(){this.resetTextAndConditionIconShapes(),this.conditions=this.spreadsheet.options.conditions,this.drawBackgroundShape(),this.drawTextShape()},e.prototype.drawBackgroundShape=function(){var t=Sx(this.cells),e=this.theme.dataCell.cell;this.backgroundShape=function(t,e){var n;return null===(n=null==t?void 0:t.addShape)||void 0===n?void 0:n.call(t,"polygon",{attrs:e})}(this,{points:t,stroke:e.horizontalBorderColor,fill:e.backgroundColor,lineHeight:e.horizontalBorderWidth})},e.prototype.drawTextShape=function(){Hv(this.meta)||(Ka(this.meta.fieldValue)?E_(this):t.prototype.drawTextShape.call(this))},e}(Cx),xx=function(t,e){return Ep(e,function(e){return jv(e[0],t[1])})},Sx=function(t){var e=[];t.forEach(function(t){var n=t.getMeta(),r=n.x,i=n.y,o=n.width,a=n.height;e=e.concat(function(t,e,n,r){var i=[t,e],o=[t+n,e],a=[t+n,e+r],s=[t,e+r];return[[i,o],[o,a],[a,s],[s,i]]}(r,i,o,a))}),e=function(t){var e=[];return ep(t,function(n){var r=[n[1],n[0]];JSON.stringify(t).includes(JSON.stringify(r))||e.push(n)}),e}(e);for(var n=[],r=e[0],i=r,o=[];!jv(r,o);)n=n.concat(i),i=o=xx(i,e);return n},Ex=function(t,e,n){var r;void 0===n&&(n=[]);var i=function(t,e){var n,r=[],i=[];return ep(t,function(t){var o=Ep(e,function(e){var n,r=null===(n=null==e?void 0:e.getMeta)||void 0===n?void 0:n.call(e);if((null==r?void 0:r.colIndex)===(null==t?void 0:t.colIndex)&&(null==r?void 0:r.rowIndex)===(null==t?void 0:t.rowIndex))return e});o?(r.push(o),n=(null==t?void 0:t.showText)?null==o?void 0:o.getMeta():n):i.push(t)}),{cells:r,invisibleCellInfo:i,cellsMeta:n}}(n,t),o=i.cellsMeta,a=i.cells,s=i.invisibleCellInfo,l=o,u=a;if((null==s?void 0:s.length)>0&&s.length<n.length){var c=function(t,e){var n,r=[];return ep(t,function(t){var i,o,a,s=null===(o=null===(i=null==e?void 0:e.facet)||void 0===i?void 0:i.layoutResult)||void 0===o?void 0:o.getCellMeta(t.rowIndex,t.colIndex);if(s){var l=null===(a=null==e?void 0:e.facet)||void 0===a?void 0:a.cfg.dataCell(s);n=(null==t?void 0:t.showText)?s:n,r.push(l)}}),{cells:r,cellsMeta:n}}(s,e),h=c.cells,d=c.cellsMeta;l=l||d,u=a.concat(h)}return Hv(a)||l||(l=null===(r=u[0])||void 0===r?void 0:r.getMeta()),{cells:u,viewMeta:l}},Ox=function(t,e,n){var r;return(null===(r=t.options)||void 0===r?void 0:r.mergedCell)?t.options.mergedCell(t,e,n):new _x(t,e,n)},Tx=function(t,e,n){var r,i=e||function(t){var e=t.interaction.getActiveCells(),n=[];return ep(e,function(t,e){var r=t.getMeta(),i=0===e?{showText:!0}:{};n.push(a(a({},i),{colIndex:null==r?void 0:r.colIndex,rowIndex:null==r?void 0:r.rowIndex}))}),n}(t);if(!((null==i?void 0:i.length)<=1)){var o=t.interaction.getPanelGroupAllDataCells(),s=Ex(o,t,i),l=s.cells,u=s.viewMeta;if(!Hv(l)){var c=(null===(r=t.options)||void 0===r?void 0:r.mergedCellsInfo)||[];c.push(i),t.setOptions({mergedCellsInfo:c});var h=n?void 0:u;t.panelScrollGroup.addMergeCell(Ox(t,l,h))}}},Ix=function(t,e){var n,r,i;if(e&&e.cellType===aa.MERGED_CELL){var o,a,s,l=(o=e,a=null===(n=t.options)||void 0===n?void 0:n.mergedCellsInfo,s=Rp(o.cells,function(t){return{colIndex:t.getMeta().colIndex,rowIndex:t.getMeta().rowIndex}}),Cp(a,function(t){return!jv(t.map(function(t){return t.showText?{colIndex:t.colIndex,rowIndex:t.rowIndex}:t}),s)}));(null==l?void 0:l.length)!==(null===(i=null===(r=t.options)||void 0===r?void 0:r.mergedCellsInfo)||void 0===i?void 0:i.length)&&(t.setOptions({mergedCellsInfo:l}),e.remove(!0))}},Mx=function(t,e){return Zf(t,e,function(t,e){return jv(t.viewMeta.id,e.viewMeta.id)})},Lx=function(t,e){var n,r=null===(n=t.options)||void 0===n?void 0:n.mergedCellsInfo;if(!Hv(r)){var i=t.interaction.getPanelGroupAllDataCells();if(!Hv(i)){var o=[];r.forEach(function(e){var n=Ex(i,t,e);n.cells.length>0&&o.push(n)});var a=e.getChildren(),s=function(t){return Rp(t,function(t){return{cells:t.cells,viewMeta:t.getMeta()}})}(a),l=Mx(s,o),u=Mx(o,s);ep(l,function(t){var e=Ep(a,function(e){return jv(e.getMeta().id,t.viewMeta.id)});null==e||e.remove(!0)}),ep(u,function(n){var r=n.cells,i=n.viewMeta;e.add(Ox(t,r,i))})}}},kx=function(t){return t.includes($o)?"id":"field"},Ax=function(t,e){void 0===e&&(e=[]);var n=t.getInitColumnLeafNodes();return Ld(e.map(function(t){var e=kx(t);return n.find(function(n){return n[e]===t})}))},Rx=function(t,e,n){void 0===e&&(e=[]),void 0===n&&(n=!1);var r=function(e,n){void 0===e&&(e=[]),void 0===n&&(n=[]),t.setOptions({interaction:{hiddenColumnFields:e}}),t.interaction.reset(),t.store.set("hiddenColumnsDetail",n),t.render(!1,{reBuildHiddenColumnsDetail:!1})};if(Hv(e)&&n)r();else{var i=t.store.get("hiddenColumnsDetail",[]),o=t.options.interaction.hiddenColumnFields;if(!jv(e,o)||n){var a=fb(c(c([],u(e),!1),u(o),!1)),s=Ax(t,a).every(function(t,e,n){var r=n[e+1];return!r||1===Math.abs(t.colIndex-r.colIndex)}),l=function(t,e){if(void 0===e&&(e=[]),Hv(e))return{prev:null,next:null};var n=t.getInitColumnLeafNodes(),r=Ax(t,e).map(function(t){return null==t?void 0:t.colIndex}),i=Math.max.apply(Math,c([],u(r),!1)),o=Math.min.apply(Math,c([],u(r),!1)),a=n.find(function(t){return t.colIndex===i+1});return{prev:n.find(function(t){return t.colIndex===o-1})||null,next:a||null}}(t,s?a:e),h={hideColumnNodes:Ax(t,e),displaySiblingNode:l},d=c(c([],u(i),!1),[h],!1);t.emit(go.LAYOUT_COLS_HIDDEN,h,d),r(a,d)}}},Dx=function(t,e,n){void 0===e&&(e=[]),void 0===n&&(n=!1),Hv(e)&&n&&Rx(t,e,!0);var r=function(t){var e=t.dataCfg.fields.columns,n=void 0===e?[]:e;return t.isTableMode()?n:t.getInitColumnLeafNodes().map(function(t){return t.id})}(t),i=function(t,e){if(Hv(e))return[];var n=Number.NEGATIVE_INFINITY;return t.reduce(function(t,r,i){if(!e.includes(r))return t;if(i===n+1)Yf(t).push(r);else{var o=[r];t.push(o)}return n=i,t},[])}($C(r),e);i.forEach(function(e){Rx(t,e,n)})},Px=function(t,e){return function(t){var e=function(t){return(null==t?void 0:t.next)||(null==t?void 0:t.prev)}(t);return null==e?void 0:e.id}(t)===e},Nx=function(t){var e=t.type,n=t.id,r=t.theme,i=t.width,o=t.height,l=s(t,["type","id","theme","width","height"]),u=e===ba.Horizontal?r.size:null,c=e===ba.Vertical?r.size:null;return{fill:r.background,fillOpacity:r.backgroundOpacity,cursor:"".concat(e,"-resize"),width:u,height:c,appendInfo:a(a({},l),{isResizeArea:!0,type:e,id:n,width:i,height:o,size:r.size})}},Bx=function(t,e){if(t.foregroundGroup)return t.foregroundGroup.findById(e)||t.foregroundGroup.addGroup({id:e,zIndex:5})},zx=function(t,e,n){var r=null!=n?n:{},i=r.scrollX,o=void 0===i?0:i,a=r.scrollY,s=void 0===a?0:a,l=!(t.x-o>e.x+e.width||t.x+t.width-o<e.x),u=!(t.y-s>e.y+e.height||t.y+t.height-s<e.y);return l&&u},Fx=function(t,e,n){var r=Ep(t,function(t){return function(t,e,n){if(!t)return!1;var r=t.iconNames,i=t.displayCondition,o=t.belongsCell;return!Hv(r)&&o===n&&(!i||r.some(function(t){return i(e,t)}))}(t,e,n)});if(r){var i=r.iconNames;return r.displayCondition&&(i=i.filter(function(t){return r.displayCondition(e,t)})),a(a({},r),{iconNames:i})}},Hx=function(t,e){var n=t.label;return jv(t.field,bo)?{formattedValue:e||n,value:n}:{formattedValue:n,value:n}},jx=function(t){return"ASC"===Zy(t)},Wx=function(t){return"DESC"===Zy(t)},Gx=function(t){return!$v(Number(t))},Vx=function(t,e,n){var r=jx(e)?1:-1,i=["-",void 0];return null==t?void 0:t.sort(function(t,e){var o=t,a=e;if(n){if(o=t[n],a=e[n],Gx(o)&&Gx(a))return(Number(o)-Number(a))*r;if(o&&(null==i?void 0:i.includes(null==o?void 0:o.toString())))return-r;if(Number(o)&&(null==i?void 0:i.includes(null==a?void 0:a.toString())))return r}return Yv(o)||Yv(a)?o?r:-r:o.toString().localeCompare(a.toString(),"zh")*r})},$x=function(t,e,n){return n?function(t,e){var n;return null===(n=null==t?void 0:t.filter(function(t){return!(null==e?void 0:e.includes(t))}))||void 0===n?void 0:n.concat(e)}(e,fb(t)):c([],u(new Set(c(c([],u(t),!1),u(e),!1))),!1)},Ux=function(t){var e=t.sortByValues,n=t.originValues,r=n.filter(function(t){return e.find(function(e){return Yf(_y(t,$o))===e})}),i=r.map(function(t){var e=t.split($o);return e.length>1?[e.slice(0,e.length-1).join($o),e[e.length-1]]:e}),o=Array.from(new Set(i.map(function(t){return t[0]})));i.sort(function(t,n){var r=t.slice(0,t.length-1),i=n.slice(0,n.length-1);return r.join()!==i.join()?o.indexOf(r[0])-o.indexOf(i[0]):e.indexOf(t[t.length-1])-e.indexOf(n[n.length-1])});var a,s,l=i.map(function(t){return t.join($o)});return a=l,n.sort(function(t,e){s&&(t=s(t),e=s(e));var n=a.indexOf(t),r=a.indexOf(e);return-1===n&&-1===r?0:-1===n?1:-1===r?-1:n-r})},Yx=function(t){var e,n=t.sortParam,r=t.measureValues,i=t.originValues,o=t.dataSet,a=n.sortByMeasure,s=n.query,l=n.sortFieldId,u=n.sortMethod,c=o.fields,h=c.rows,d=c.columns,f=h.includes(l);if(a){var p=Vx(r,u,a===_o?s[bo]:a);e=function(t,e,n){var r,i=e.slice(0,e.indexOf(t)+1);return null===(r=n.map(function(t){return i.map(function(e){return t[e]}).join("".concat($o))}))||void 0===r?void 0:r.filter(function(t){return t})}(l,f?h:$C(d),p)}else e=Rp(Vx(r,u));return $x(e,i,jx(u))},Xx=function(t){var e=t.sortParam,n=t.originValues,r=t.measureValues,i=t.dataSet,o=e.sortFunc,s=e.sortMethod,l=e.sortBy,u=n,c={originValues:n,measureValues:r,sortParam:e,dataSet:i};return o?u=function(t){var e=t.originValues,n=t.measureValues,r=t.sortParam,i=t.dataSet,o=r.sortFunc,s=r.sortFieldId,l=r.sortMethod,u=o(a({data:n},r));return(null==u?void 0:u.length)?(i.fields.rows.indexOf(s)>0||i.fields.columns.indexOf(s)>0)&&!lv(u[0],$o)?Ux({sortByValues:u,originValues:e}):$x(u,e,jx(l)):e}(c):l?u=Ux({sortByValues:l,originValues:n}):(jx(s)||Wx(s))&&(u=Yx(c)),u},qx=function(t){return t.filter(function(t){return t!==bo})},Kx=function(t){var e=t.dataSet,n=t.sortParam,r=t.originValues,i=e.fields,o=n.sortByMeasure,s=n.query,l=n.sortFieldId;if(o!==_o)return e.getMultiData(s,{queryType:iC.DetailOnly});var u=e.getMultiData(s,{queryType:iC.All}),c=$C(i.columns),h=lv(i.rows,l),d=qx(h?i.rows:c),f=qx(h?c:i.rows),p=d[d.indexOf(l)+1],v=du(s),g=f.filter(function(t){return!v.includes(t)}),m=u.filter(function(t){var e=new Set(Object.keys(t[wo]));return!!e.has(l)&&(!e.has(p)&&g.every(function(t){return!e.has(t)}))});return Hv(m)?Ld(Rp(r,function(t){var n=function(t,e,n){var r,i={};if(lv(t,$o))for(var o=_y(t,$o),a=(null===(r=null==e?void 0:e.rows)||void 0===r?void 0:r.includes(n))?e.rows:$C(e.columns),s=0;s<=cv(a,n);s++)i[a[s]]=o[s];else i[n]=t;return i}(t,i,l);return e.getTotalValue(a(a({},s),n))})):m},Zx=function(t,e){if(null==t?void 0:t.sortMethod){if(jx(null==t?void 0:t.sortMethod))return"groupAsc";if(Wx(null==t?void 0:t.sortMethod))return"groupDesc"}if(e)return"SortDown"},Jx=function(t){var e,n,r=t.pivotMeta,i=t.dimensions,o=t.sortedDimensionValues,a=t.sortFieldId,s={children:r},h=[s];try{for(var d=l(i),f=d.next();!f.done;f=d.next()){if(f.value===a){h.forEach(function(t){var e=c([],u(t.children.values()),!1),n=gy(e,function(t){return cv(o,t.id)}).map(function(t){return[t.value,t]});t.children=new Map(n)});break}h=Dp(h,function(t){return c([],u(t.children.values()),!1)})}}catch(t){e={error:t}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}return s.children},Qx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.handleRestOptions=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=u(t,1)[0];this.headerConfig=a({},n);var r=this.meta,i=r.value,o=r.query,s=this.spreadsheet.dataCfg.sortParams,l=this.isSortCell(),h=Ep(c([],u(s),!1).reverse(),function(t){return l&&(null==t?void 0:t.sortByMeasure)===i&&jv(Yu(t,"query"),o)}),d=Zx(h,l);this.headerConfig.sortParam=a(a(a({},this.headerConfig.sortParam),h||{query:o}),{type:d})},e.prototype.initCell=function(){this.resetTextAndConditionIconShapes(),this.actionIcons=[],this.hasDefaultHiddenIcon=!1},e.prototype.getTreeIcon=function(){return this.treeIcon},e.prototype.getInteractiveBorderShapeStyle=function(t){var e=this.getCellArea(),n=e.x,r=e.y,i=e.height;return{x:n+t,y:r+t,width:e.width-2*t,height:i-2*t}},e.prototype.getFormattedFieldValue=function(){var t=this.meta,e=t.label,n=t.isTotalRoot,r=t.isGrandTotals,i=this.spreadsheet.dataSet.getFieldFormatter(this.meta.field);return{formattedValue:!this.spreadsheet.isTableMode()&&(this.spreadsheet.isHierarchyTreeType()?!(r&&n):!n)&&i?i(e,void 0,this.meta):e,value:e}},e.prototype.getActionIconCfg=function(){return Fx(this.spreadsheet.options.headerActionIcons,this.meta,this.cellType)},e.prototype.showSortIcon=function(){var t=this.spreadsheet,e=t.options,n=Hv(t.dataCfg.fields.values);if(e.showDefaultHeaderActionIcon&&!n){var r=this.headerConfig.sortParam,i=this.meta.query;return i&&jv(null==r?void 0:r.query,i)&&(null==r?void 0:r.type)&&"none"!==(null==r?void 0:r.type)}return!1},e.prototype.getActionIconsCount=function(){if(this.showSortIcon())return 1;var t=this.getActionIconCfg();return t?t.iconNames.length:0},e.prototype.getActionIconsWidth=function(){var t=this.getStyle().icon;return(t.size+t.margin.left)*this.getActionIconsCount()},e.prototype.drawSortIcons=function(){var t=this;if(this.showSortIcon()){var e=this.getStyle(),n=e.icon,r=e.text,i=this.getTextConditionFill(r),o=this.headerConfig.sortParam,s=this.getIconPosition(),l=new _C(a(a({name:Yu(o,"type","none")},s),{width:n.size,height:n.size,fill:i}));l.on("click",function(e){t.spreadsheet.emit(go.GLOBAL_ACTION_ICON_CLICK,e),t.spreadsheet.handleGroupSort(e,t.meta)}),this.add(l),this.actionIcons.push(l)}},e.prototype.hasDefaultHideActionIcon=function(){return this.hasDefaultHiddenIcon},e.prototype.addActionIcon=function(t){var e=this,n=t.x,r=t.y,i=t.iconName,o=t.defaultHide,a=t.action,s=t.onClick,l=t.onHover,u=this.getStyle(),c=u.icon,h=u.text,d=this.getTextConditionFill(h),f=(null==c?void 0:c.fill)||d,p=new _C({name:i,x:n,y:r,width:null==c?void 0:c.size,height:null==c?void 0:c.size,fill:f});p.set("visible",!o),p.on("mouseover",function(t){e.spreadsheet.emit(go.GLOBAL_ACTION_ICON_HOVER,t),null==l||l({hovering:!0,iconName:i,meta:e.meta,event:t})}),p.on("mouseleave",function(t){e.spreadsheet.emit(go.GLOBAL_ACTION_ICON_HOVER_OFF,t),null==l||l({hovering:!1,iconName:i,meta:e.meta,event:t})}),p.on("click",function(t){var n;e.spreadsheet.emit(go.GLOBAL_ACTION_ICON_CLICK,t),null===(n=s||a)||void 0===n||n({iconName:i,meta:e.meta,event:t})}),this.actionIcons.push(p),this.add(p)},e.prototype.drawActionIcons=function(){var t=this;if(this.showSortIcon())this.drawSortIcons();else{var e=this.getActionIconCfg();if(e){var n=e.iconNames,r=e.action,i=e.onClick,o=e.onHover,a=e.defaultHide,s=this.getIconPosition(n.length),l=this.getStyle().icon,u=l.size,c=l.margin;ep(n,function(e,n){var l=s.x+n*u+n*c.left,h=s.y,d="function"==typeof a?a(t.meta,e):a;d&&(t.hasDefaultHiddenIcon=!0),t.addActionIcon({iconName:e,x:l,y:h,defaultHide:d,action:r,onClick:i,onHover:o})})}}},e.prototype.drawBackgroundShape=function(){var t=this.getBackgroundColor(),e=t.backgroundColor,n=t.backgroundColorOpacity;this.backgroundShape=e_(this,a(a({},this.getCellArea()),{fill:e,fillOpacity:n}))},e.prototype.isSortCell=function(){var t,e,n,r=null===(e=null===(t=this.spreadsheet)||void 0===t?void 0:t.isValueInCols)||void 0===e?void 0:e.call(t),i=this.meta.level===(null===(n=this.meta.hierarchy)||void 0===n?void 0:n.maxLevel);return r?i&&this.cellType===aa.COL_CELL:i&&this.cellType===aa.ROW_CELL},e.prototype.handleByStateName=function(t,e){mx(t,this)&&this.updateByState(e)},e.prototype.handleSearchResult=function(t){mx(t,this)&&(Ep(t,function(t){return null==t?void 0:t.isTarget}).id===this.getMeta().id?this.updateByState(oa.HIGHLIGHT):this.updateByState(oa.SEARCH_RESULT))},e.prototype.handleHover=function(t){var e;mx(t,this)&&(this.updateByState(oa.HOVER),this.hasDefaultHideActionIcon()&&this.toggleActionIcon(null===(e=null==t?void 0:t[0])||void 0===e?void 0:e.id))},e.prototype.handleSelect=function(t,e){mx(t,this)&&this.updateByState(oa.SELECTED),lv(Rp(e,"id"),this.meta.id)&&this.updateByState(oa.SELECTED)},e.prototype.getTextStyle=function(){var t,e=this.getStyle(),n=e.text,r=e.bolderText,i=e.measureText;t=this.isMeasureField()?i||n:this.isBolderText()?r:n;var o=this.getTextConditionFill(t);return a(a({},t),{fill:o})},e.prototype.getBackgroundColor=function(){var t,e=(null===(t=this.getStyle())||void 0===t?void 0:t.cell)||{},n=e.backgroundColor,r=e.backgroundColorOpacity;return this.getBackgroundColorByCondition(n,r)},e.prototype.getBackgroundColorByCondition=function(t,e){var n,r=t,i=this.findFieldCondition(null===(n=this.conditions)||void 0===n?void 0:n.background);if(i&&i.mapping){var o=this.mappingValue(i);o&&(r=o.fill)}return{backgroundColor:r,backgroundColorOpacity:e}},e.prototype.toggleActionIcon=function(t){if(this.getMeta().id===t){var e=[];ep(this.actionIcons,function(t){t.get("visible")||(t.set("visible",!0),e.push(t))}),this.spreadsheet.store.set("visibleActionIcons",e)}},e.prototype.update=function(){var t=this.spreadsheet.interaction,e=null==t?void 0:t.getState(),n=null==t?void 0:t.getCells([aa.CORNER_CELL,aa.COL_CELL,aa.ROW_CELL]);if(kp(n))switch(null==e?void 0:e.stateName){case oa.SELECTED:case oa.BRUSH_SELECTED:this.handleSelect(n,null==e?void 0:e.nodes);break;case oa.HOVER_FOCUS:case oa.HOVER:this.handleHover(n);break;case oa.SEARCH_RESULT:this.handleSearchResult(n);break;default:this.handleByStateName(n,null==e?void 0:e.stateName)}},e.prototype.updateByState=function(e){t.prototype.updateByState.call(this,e,this)},e.prototype.hideInteractionShape=function(){t.prototype.hideInteractionShape.call(this)},e.prototype.isMeasureField=function(){return[bo,Co].includes(this.meta.field)},e.prototype.mappingValue=function(t){var e=this.getMeta().label;return null==t?void 0:t.mapping(e,this.meta)},e.prototype.findFieldCondition=function(t){var e=this;return Lp(t,function(t){return t.field instanceof RegExp?t.field.test(e.meta.field):t.field===e.meta.field})},e}(vx),tS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"cellType",{get:function(){return aa.COL_CELL},enumerable:!1,configurable:!0}),e.prototype.initCell=function(){t.prototype.initCell.call(this),this.drawBackgroundShape(),this.drawInteractiveBgShape(),this.drawInteractiveBorderShape(),this.drawTextShape(),this.drawConditionIconShapes(),this.drawActionIcons(),this.drawBorders(),this.drawResizeArea(),this.addExpandColumnIconShapes(),this.update()},e.prototype.drawInteractiveBgShape=function(){this.stateShapes.set("interactiveBgShape",e_(this,a({},this.getCellArea()),{visible:!1}))},e.prototype.drawInteractiveBorderShape=function(){this.stateShapes.set("interactiveBorderShape",e_(this,this.getInteractiveBorderShapeStyle(2),{visible:!1}))},e.prototype.getMaxTextWidth=function(){return this.getContentArea().width-this.getActionIconsWidth()},e.prototype.getIconPosition=function(){if(this.meta.isLeaf)return t.prototype.getIconPosition.call(this,this.getActionIconsCount());var e=this.getIconStyle(),n=e.margin.left,r=this.getTextStyle(),i=this.textPosition,o=null==i?void 0:i.x,a=(null==i?void 0:i.y)-e.size/2;return"left"===r.textAlign?{x:o+this.actualTextWidth+n,y:a}:"right"===r.textAlign?{x:o+n,y:a}:{x:o+this.actualTextWidth/2+n,y:a}},e.prototype.isBolderText=function(){var t=this.meta,e=t.isLeaf;return!(!t.isTotals&&e)},e.prototype.getTextPosition=function(){var t,e=this.meta.isLeaf,n=this.headerConfig,r=n.width,i=n.scrollContainsRowHeader,o=n.cornerWidth,s=n.scrollX,l=this.getTextStyle(),u=this.getContentArea(),c=this.getIconStyle();if(e)return y_(u,l,this.actualTextWidth,c,this.getActionIconsCount()).text;var h={start:s-(i?o:0),width:r+(i?o:0)},d=this.getTextStyle().textAlign,f=function(t,e,n){void 0===n&&(n={left:0,right:0});var r=a({},t);return"left"===e?(r.start+=n.left,r.width-=n.left):"right"===e&&(r.width-=n.right),r}(h,d,null===(t=this.getStyle().cell)||void 0===t?void 0:t.padding),p=this.getActionIconsWidth(),v=this.actualTextWidth+p,g=function(t,e,n){var r,i,o=e.start+e.width,a=t.start+t.width;if(e.start<=t.start&&o>=a)r=t.start+t.width/2,i=t.width;else if(e.start<=t.start)r=(s=e.width-(t.start-e.start))<n?o-n/2:o-s/2,i=s;else if(o>=a){var s;r=(s=e.width-(o-a))<n?e.start+n/2:e.start+s/2,i=s}else r=e.start+e.width/2,i=e.width;return{start:r,width:i}}(f,{start:u.x,width:u.width},v),m=function(t,e,n,r){var i=e+n,o=t.start;if("center"===r)return o-n/2;var a=t.width-i>0?t.width/2:i/2;return"left"===r?o-a:o+a-n}(g,this.actualTextWidth,p,d),y=u.y+u.height/2;return this.textPosition={x:m,y},this.textPosition},e.prototype.getActionIconsWidth=function(){var t=this.getStyle().icon,e=t.size,n=t.margin,r=this.getActionIconsCount();return(e+n.left)*r+(r>0?n.right:0)},e.prototype.getColResizeAreaKey=function(){return this.meta.key},e.prototype.getColResizeArea=function(){return Bx(this.spreadsheet,Ho)},e.prototype.getHorizontalResizeAreaName=function(){return"".concat(Go).concat(this.meta.key)},e.prototype.drawHorizontalResizeArea=function(){var t,e;if(!(0===(null===(e=null===(t=this.spreadsheet.options.style)||void 0===t?void 0:t.colCfg)||void 0===e?void 0:e.height))&&this.shouldDrawResizeAreaByType("colCellVertical",this)){var n=this.headerConfig,r=n.cornerWidth,i=n.viewportWidth,o=this.meta,s=o.y,l=o.height,u=this.getResizeAreaStyle(),c=this.getColResizeArea(),h=this.getHorizontalResizeAreaName();if(!c.find(function(t){return t.attrs.name===h})){var d=r+i;c.addShape("rect",{attrs:a(a({},Nx({theme:u,type:ba.Vertical,id:this.getColResizeAreaKey(),effect:wa.Field,offsetX:0,offsetY:s,width:d,height:l,meta:this.meta})),{name:h,x:0,y:s+l-u.size/2,width:d})})}}},e.prototype.shouldAddVerticalResizeArea=function(){var t=this.meta,e=t.x,n=t.y,r=t.width,i=t.height,o=this.headerConfig,a=o.scrollX,s=o.scrollY,l=o.scrollContainsRowHeader,u=o.cornerWidth,c=o.height,h=o.width,d=this.getResizeAreaStyle(),f={x:e+r-d.size/2,y:n,width:d.size,height:i};return zx(f,{x:l?-u:0,y:0,width:l?u+h:h,height:c},{scrollX:a,scrollY:s})},e.prototype.getVerticalResizeAreaOffset=function(){var t=this.meta,e=t.x,n=t.y,r=this.headerConfig,i=r.scrollX,o=r.position;return{x:o.x+e-i,y:o.y+n}},e.prototype.drawVerticalResizeArea=function(){if(this.meta.isLeaf&&this.shouldDrawResizeAreaByType("colCellHorizontal",this)){var t=this.meta,e=t.label,n=t.width,r=t.height,i=this.getResizeAreaStyle(),o=this.getColResizeArea();if(this.shouldAddVerticalResizeArea()){var s=this.getVerticalResizeAreaOffset(),l=s.x,u=s.y;o.addShape("rect",{attrs:a(a({},Nx({theme:i,type:ba.Horizontal,effect:wa.Cell,id:e,offsetX:l,offsetY:u,width:n,height:r,meta:this.meta})),{x:l+n-i.size/2,y:u,height:r})})}}},e.prototype.drawResizeArea=function(){this.drawHorizontalResizeArea(),this.drawVerticalResizeArea()},e.prototype.drawHorizontalBorder=function(){var t=b_(gC.TOP,this.meta,this.theme.colCell.cell);i_(this,t.position,t.style)},e.prototype.drawVerticalBorder=function(t){var e=b_(t,this.meta,this.theme.colCell.cell);i_(this,e.position,e.style)},e.prototype.drawBorders=function(){var t=this.spreadsheet,e=t.options,n=t.isTableMode;0===this.meta.colIndex&&n()&&!e.showSeriesNumber&&this.drawVerticalBorder(gC.LEFT),this.drawHorizontalBorder(),this.drawVerticalBorder(gC.RIGHT)},e.prototype.hasHiddenColumnCell=function(){var t=this,e=this.spreadsheet.options,n=e.interaction.hiddenColumnFields,r=void 0===n?[]:n,i=e.tooltip.operation,o=this.spreadsheet.store.get("hiddenColumnsDetail",[]);return!(Hv(o)||Hv(r)||!i.hiddenColumns)&&!!o.find(function(e){return Px(null==e?void 0:e.displaySiblingNode,t.meta.id)})},e.prototype.getExpandIconTheme=function(){return this.getStyle().icon},e.prototype.addExpandColumnSplitLine=function(){var t=this.meta,e=t.x,n=t.y,r=t.width,i=t.height,o=this.theme.splitLine,a=o.horizontalBorderColor,s=o.horizontalBorderWidth,l=o.horizontalBorderColorOpacity,u=o.borderDash,c=this.isLastColumn()?e+r-s:e;i_(this,{x1:c,y1:n,x2:c,y2:n+i},{stroke:a,lineWidth:s,strokeOpacity:l,lineDash:u})},e.prototype.addExpandColumnIconShapes=function(){this.hasHiddenColumnCell()&&(this.addExpandColumnSplitLine(),this.addExpandColumnIcons())},e.prototype.addExpandColumnIcons=function(){var t=this.isLastColumn();this.addExpandColumnIcon(t),this.isAllDisplaySiblingNodeHidden()&&t&&this.addExpandColumnIcon(!1)},e.prototype.addExpandColumnIcon=function(t){var e=this,n=this.getExpandColumnIconConfig(t);a_(this,a(a({},n),{name:"ExpandColIcon",cursor:"pointer"})).on("click",function(){e.spreadsheet.emit(go.LAYOUT_COLS_EXPANDED,e.meta)})},e.prototype.getExpandColumnIconConfig=function(t){var e=this.getExpandIconTheme().size,n=this.getCellArea(),r=n.x,i=n.y,o=n.width,a=r-e;return{x:t?a+o:a,y:i+n.height/2-e/2,width:2*e,height:e}},e.prototype.isLastColumn=function(){return t=this.spreadsheet,e=this.meta.id,n=t.getColumnLeafNodes(),r=t.getInitColumnLeafNodes(),i=kx(e),Yu(Yf(n),i)===e&&Yu(Yf(r),i)!==e;var t,e,n,r,i},e.prototype.isAllDisplaySiblingNodeHidden=function(){var t=this.meta.id,e=this.spreadsheet.store.get("hiddenColumnsDetail",[]),n=e.find(function(e){var n,r=e.displaySiblingNode;return(null===(n=null==r?void 0:r.next)||void 0===n?void 0:n.id)===t}),r=e.find(function(e){var n,r=e.displaySiblingNode;return(null===(n=null==r?void 0:r.prev)||void 0===n?void 0:n.id)===t});return r&&n},e}(Qx),eS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.isBolderText=function(){return this.meta.cornerType===yC.Col},Object.defineProperty(e.prototype,"cellType",{get:function(){return aa.CORNER_CELL},enumerable:!1,configurable:!0}),e.prototype.initCell=function(){t.prototype.initCell.call(this),this.resetTextAndConditionIconShapes(),this.drawBackgroundShape(),this.drawTreeIcon(),this.drawCellText(),this.drawConditionIconShapes(),this.drawActionIcons(),this.drawBorderShape(),this.drawResizeArea(),this.update()},e.prototype.drawCellText=function(){this.drawTextShape()},e.prototype.drawTextShape=function(){var t=this.getContentArea().x,e=this.getCellArea(),n=e.y,r=e.height,i=this.getTextStyle(),o=this.getCornerText(),a=this.getMaxTextWidth(),s=S_(this.meta,this.spreadsheet.options.placeholder),l=this.spreadsheet.measureTextWidth,u=C_({measureTextWidth:l,text:o,maxWidth:a,fontParam:i,placeholder:s});this.actualText=u;var c=u.indexOf(Zo),h=u,d="";if(-1!==c&&this.spreadsheet.isHierarchyTreeType()){var f=c+(/iPhone/gi.test(navigator.userAgent)&&812===window.screen.height&&375===window.screen.width?1:0);h=o.substr(0,f),d=o.slice(f),d=C_({measureTextWidth:l,text:d,maxWidth:a,fontParam:i})}var p,v,g=(p={x:t+this.getTreeIconWidth(),y:n,width:a,height:r},v=i,y_(p,v).text).x,m=n+(Hv(d)?r/2:r/4);this.addTextShape(r_(this,[this.textShapes[0]],g,m,h,i)),Hv(d)||this.addTextShape(r_(this,[this.textShapes[1]],g,n+.75*r,d,i)),this.actualTextWidth=mg([l(h,i),l(d,i)])},e.prototype.drawTreeIcon=function(){var t=this;if(this.showTreeIcon()&&this.meta.cornerType!==yC.Col){var e=this.headerConfig.hierarchyCollapse,n=this.getStyle().icon.size,r=this.getTextStyle(),i=r.textBaseline,o=r.fill,a=this.getContentArea();this.treeIcon=s_(this,{x:a.x,y:m_(a,i,n),width:n,height:n},o,e,function(){t.headerConfig.spreadsheet.store.set("scrollY",0),t.headerConfig.spreadsheet.emit(go.LAYOUT_TREE_ROWS_COLLAPSE_ALL,e)})}},e.prototype.drawBorderShape=function(){var t=this;[gC.TOP,gC.LEFT].forEach(function(e){var n=b_(e,t.getCellArea(),t.getStyle().cell),r=n.position,i=n.style;i_(t,r,i)})},e.prototype.isLastRowCornerCell=function(){var t=this.meta,e=t.cornerType,n=t.field,r=this.headerConfig.rows;return e===yC.Row&&(this.spreadsheet.isHierarchyTreeType()||Yf(r)===n)},e.prototype.getResizeAreaEffect=function(){return this.meta.cornerType===yC.Series?wa.Series:this.isLastRowCornerCell()&&this.spreadsheet.isHierarchyTreeType()?wa.Tree:wa.Field},e.prototype.drawResizeArea=function(){if(this.shouldDrawResizeAreaByType("cornerCellHorizontal",this)){var t=this.getResizeAreaStyle(),e=Bx(this.spreadsheet,Fo),n=this.headerConfig,r=n.position,i=n.scrollX,o=n.scrollY,s=n.width,l=n.height,u=this.meta,c=u.x,h=u.y,d=u.width,f=u.height,p=u.field,v=u.cornerType,g={x:c+d-t.size/2,y:h,width:t.size,height:f},m={x:0,y:0,width:s,height:l};if(v!==yC.Col&&zx(g,m,{scrollX:i,scrollY:o})){var y=r.x+c-i,b=r.y+(this.isLastRowCornerCell()?0:h);e.addShape("rect",{attrs:a(a({},Nx({theme:t,id:p,type:ba.Horizontal,effect:this.getResizeAreaEffect(),offsetX:y,offsetY:b,width:d,height:f,meta:this.meta})),{x:y+d-t.size/2,y:b,height:this.isLastRowCornerCell()?l:f})})}}},e.prototype.showTreeIcon=function(){var t;return this.spreadsheet.isHierarchyTreeType()&&0===(null===(t=this.meta)||void 0===t?void 0:t.x)},e.prototype.getIconPosition=function(){var t,e,n=null===(e=null===(t=this.textShapes)||void 0===t?void 0:t[0])||void 0===e?void 0:e.cfg.attrs,r=this.getTextStyle(),i=r.textBaseline,o=r.textAlign,a=this.getStyle().icon,s=a.size,l=a.margin;return{x:(null==n?void 0:n.x)+af([[vg("center"),Qs(this.actualTextWidth/2)],[vg("right"),Qs(0)],[Oy,Qs(this.actualTextWidth)]])(o)+l.left,y:m_(this.getContentArea(),i,s)}},e.prototype.getTreeIconWidth=function(){var t=this.getStyle().icon,e=t.size,n=t.margin;return this.showTreeIcon()?e+n.right:0},e.prototype.getTextStyle=function(){var t=this.getStyle(),e=t.text,n=t.bolderText,r=this.isBolderText()?e:n,i=this.getTextConditionFill(r);return a(a({},r),{fill:i})},e.prototype.getMaxTextWidth=function(){return this.getContentArea().width-this.getTreeIconWidth()-this.getActionIconsWidth()},e.prototype.getTextPosition=function(){return{x:0,y:0}},e.prototype.getFormattedFieldValue=function(){return Hx(this.meta,this.spreadsheet.dataSet.getFieldName(this.meta.label))},e.prototype.getCornerText=function(){return this.getFormattedFieldValue().formattedValue},e}(Qx),nS=function(t,e,n){var r,i,o=(null===(r=n.icon.margin)||void 0===r?void 0:r.left)||0,a=(null===(i=n.icon.margin)||void 0===i?void 0:i.right)||0,s=t.store.get("hiddenColumnsDetail",[]),l=!1,u=!1;s.forEach(function(t){var n,r,i,o;(null===(r=null===(n=null==t?void 0:t.displaySiblingNode)||void 0===n?void 0:n.prev)||void 0===r?void 0:r.field)===e&&(l=!0),(null===(o=null===(i=null==t?void 0:t.displaySiblingNode)||void 0===i?void 0:i.next)||void 0===o?void 0:o.field)===e&&(u=!0)});var c=Yu(n,"icon.size");return{left:u?c+a:0,right:l?c+o:0}},rS=function(t,e,n){var r=Yu(n,"cell.padding"),i=nS(t,e.field,n);return r.left+r.right+function(t,e,n,r){var i,o,a=Yu(r,"size"),s=Yu(r,"margin"),l=0;return(l=t.options.showDefaultHeaderActionIcon?1:null!==(o=null===(i=Fx(t.options.headerActionIcons,e,n))||void 0===i?void 0:i.iconNames.length)&&void 0!==o?o:0)*(a+s.left)+(l>0?s.right:0)}(t,e,aa.COL_CELL,Yu(n,"icon"))+i.left+i.right},iS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.handleRestOptions=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=u(t,1)[0];this.headerConfig=a({},n);var r=this.meta.field,i=this.spreadsheet.dataCfg.sortParams,o=Ep(i,function(t){return(null==t?void 0:t.sortFieldId)===r}),s=Zx(o,!0);this.headerConfig.sortParam=a(a(a({},this.headerConfig.sortParam),o||{}),{type:s})},e.prototype.isFrozenCell=function(){var t=this.spreadsheet.options,e=t.frozenColCount,n=t.frozenTrailingColCount,r=this.spreadsheet.facet.layoutResult.colNodes.filter(function(t){return VC(t)}),i=function(t){for(;!VC(t);)t=t.parent;return t}(this.meta).colIndex;return PC(i,e)||NC(i,n,r.length)},e.prototype.getFormattedFieldValue=function(){return Hx(this.meta,this.spreadsheet.dataSet.getFieldName(this.meta.label))},e.prototype.shouldAddVerticalResizeArea=function(){return!!this.isFrozenCell()||t.prototype.shouldAddVerticalResizeArea.call(this)},e.prototype.getVerticalResizeAreaOffset=function(){var t=this.meta,e=t.x,n=t.y,r=this.headerConfig,i=r.scrollX,o=r.position;return this.isFrozenCell()?{x:e,y:n}:{x:o.x+e-i,y:o.y+n}},e.prototype.getColResizeArea=function(){return this.isFrozenCell()?Bx(this.spreadsheet,jo):t.prototype.getColResizeArea.call(this)},e.prototype.isSortCell=function(){return!0},e.prototype.showSortIcon=function(){return this.spreadsheet.options.showDefaultHeaderActionIcon},e.prototype.getTextStyle=function(){var t=this.getStyle();return null==t?void 0:t.bolderText},e.prototype.getContentArea=function(){var t,e=((null===(t=this.getStyle())||void 0===t?void 0:t.cell)||this.theme.dataCell.cell).padding,n=a({},e),r=nS(this.spreadsheet,this.meta.field,this.getStyle());return r.left&&(n.left=(n.left||0)+r.left),r.right&&(n.right=(n.right||0)+r.right),v_(this.getCellArea(),n)},e.prototype.getHorizontalResizeAreaName=function(){return"".concat(Go).concat("table-col-cell")},e.prototype.drawBackgroundShape=function(){var t=this.getStyle().cell.backgroundColor;this.backgroundShape=e_(this,a(a({},this.getCellArea()),{fill:t}))},e}(tS),oS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getStyle=function(t){return t?this.theme[t]:Yu(this,"theme.cornerCell")},e.prototype.showSortIcon=function(){return!1},e.prototype.drawLeftBorder=function(){var t=b_(gC.LEFT,this.getCellArea(),this.getStyle().cell);i_(this,t.position,t.style)},e.prototype.drawBorders=function(){t.prototype.drawBorders.call(this),0===this.meta.colIndex&&this.drawLeftBorder()},e}(iS),aS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getLinkFieldStyle=function(){return this.theme.rowCell.text.linkTextFill},e.prototype.drawBorderShape=function(){t.prototype.drawBorderShape.call(this),0===this.meta.colIndex&&this.drawLeftBorder()},e.prototype.shouldDrawResizeArea=function(){return 0===this.meta.colIndex},e.prototype.drawResizeArea=function(){if(this.shouldDrawResizeArea()){var t=this.getCellArea(),e=t.x,n=t.y,r=t.width,i=t.height,o=this.meta.rowIndex,s=this.getResizeAreaStyle(),l=this.spreadsheet.options,u=l.frozenRowCount,c=l.frozenTrailingRowCount,h=this.spreadsheet.facet.getCellRange(),d=BC(o,h.start,u),f=zC(o,h.end,c),p=d||f?No:Po,v=Bx(this.spreadsheet,p),g=this.spreadsheet.facet.layoutResult.colsHierarchy.height,m=this.spreadsheet.facet.getScrollOffset().scrollY,y=this.spreadsheet.facet.getPaginationScrollY(),b=n+(f?0:g);f||(b-=d?y:m+y),v.addShape("rect",{attrs:a(a({},Nx({id:String(this.meta.rowIndex),theme:s,type:ba.Vertical,effect:wa.Cell,offsetX:e,offsetY:b,width:r,height:i,meta:this.meta})),{x:e,y:b+i-s.size/2,width:r})})}},e}(Cx),sS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"cellType",{get:function(){return aa.ROW_CELL},enumerable:!1,configurable:!0}),e.prototype.getTextStyle=function(){return this.theme.rowCell.seriesText},e}(aS),lS=function(){function t(t){this.EVENT="gesture",this.gm=t}return t.prototype.do=function(t){switch(t.type){case"touchstart":this.onTouchStart(t);break;case"touchmove":this.onTouchMove(t);break;case"touchend":this.onTouchEnd(t);break;case"touchcancel":this.onTouchCancel(t);break;default:return}},t.prototype.emit=function(t){this.gm.emit(this.EVENT,t)},t}(),uS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.EVENT="pan",e}return o(e,t),e.prototype.onTouchCancel=function(t){},e.prototype.onTouchEnd=function(t){},e.prototype.onTouchMove=function(t){var e=t.x,n=t.y,r=e-this.preX,i=n-this.preY;this.preX=e,this.preY=n,this.emit({x:e,y:n,deltaX:r,deltaY:i,event:t})},e.prototype.onTouchStart=function(t){var e=t.x,n=t.y;this.preX=e,this.preY=n},e}(lS),cS="object"==typeof performance&&performance.now?performance:Date,hS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.EVENT="press",e}return o(e,t),e.prototype.onTouchCancel=function(t){this.clearTimeout()},e.prototype.onTouchEnd=function(t){this.clearTimeout()},e.prototype.onTouchMove=function(t){var e=t.x,n=t.y;(e-this.touchStartX>10||n-this.touchStartY>10)&&this.clearTimeout()},e.prototype.onTouchStart=function(t){var e=this;this.clearTimeout();var n=t.x,r=t.y;this.touchStartTime=cS.now(),this.touchStartX=n,this.touchStartY=r,this.pressTimeout=window.setTimeout(function(){e.emit({x:n,y:r,event:t})},300)},e.prototype.clearTimeout=function(){window.clearTimeout(this.pressTimeout)},e}(lS),dS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.EVENT="swipe",e.latestMoveTime=0,e.ms=0,e.speedX=0,e.speedY=0,e.preX=0,e.preY=0,e}return o(e,t),e.prototype.onTouchCancel=function(t){},e.prototype.onTouchEnd=function(t){var e=this.speedX,n=this.speedY;if(cS.now()-this.latestMoveTime<100){var r=t.x,i=t.y;this.emit({x:r,y:i,speedX:e,speedY:n,event:t})}},e.prototype.onTouchMove=function(t){var e=t.x,n=t.y,r=cS.now(),i=e-this.preX,o=n-this.preY,a=r-this.ms;this.speedX=i/a,this.speedY=o/a,this.latestMoveTime=r},e.prototype.onTouchStart=function(t){var e=t.x,n=t.y;this.speedX=this.speedY=0,this.preX=e,this.preY=n,this.ms=cS.now()},e}(lS),fS={Pan:uS,Press:hS,Swipe:dS,Tap:function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.EVENT="tap",e}return o(e,t),e.prototype.onTouchCancel=function(t){},e.prototype.onTouchEnd=function(t){var e=t.x,n=t.y;e-this.touchStartX<2&&n-this.touchStartY<2&&cS.now()-this.touchStartTime<300&&this.emit({x:e,y:n,event:t})},e.prototype.onTouchMove=function(t){},e.prototype.onTouchStart=function(t){var e=t.x,n=t.y;this.touchStartTime=cS.now(),this.touchStartX=e,this.touchStartY=n},e}(lS)},pS=function(t){function e(e,n){void 0===n&&(n={});var r=t.call(this)||this;return r.onTouchStart=function(t){r.preventEvent(t),r.element.on("touchmove",r.onTouchMove),r.element.on("touchend",r.onTouchEnd),r.element.on("touchcancel",r.onTouchCancel),r.emit("touchdown",t),r.doGestures(t)},r.onTouchMove=function(t){r.preventEvent(t),r.emit("touchmove",t),r.doGestures(t)},r.onTouchEnd=function(t){r.preventEvent(t),r.emit("touchend",t),r.element.off("touchmove",r.onTouchMove),r.element.off("touchend",r.onTouchEnd),r.element.off("touchcancel",r.onTouchCancel),r.doGestures(t)},r.onTouchCancel=function(t){r.preventEvent(t),r.emit("touchcancel",t),r.element.off("touchmove",r.onTouchMove),r.element.off("touchend",r.onTouchEnd),r.element.off("touchcancel",r.onTouchCancel),r.doGestures(t)},r.element=e,r.options=n,r.initialGestures(),r.bindTouchStart(),r}return o(e,t),e.prototype.destroy=function(){this.element.off("touchstart",this.onTouchStart),this.off()},e.prototype.initialGestures=function(){var t=this,e=this.options.gestures||["Pan","Press","Swipe","Tap"];this.gestures=e.map(function(e){return new(0,fS[e])(t)})},e.prototype.bindTouchStart=function(){this.element.on("touchstart",this.onTouchStart)},e.prototype.preventEvent=function(t){var e=t.type;(this.options.prevents||[]).includes(e)&&t.preventDefault()},e.prototype.doGestures=function(t){this.gestures.forEach(function(e){e.do(t)})},e}(pt),vS=fn,gS="wheel",mS=function(t){function e(e){var n=t.call(this)||this;return n.rafMs=0,n.onPan=function(t){n.raf&&cancelAnimationFrame(n.raf);var e=t.deltaX,r=t.deltaY,i=n.getWrapperEvent(t,e,r);n.emit(gS,i)},n.onSwipe=function(t){var e=t.speedX,r=t.speedY;n.rafMs=cS.now(),n.ms=n.rafMs,0===e&&0===r||n.rafInertia(t)},n.element=e,n.gm=new pS(e,{gestures:["Pan","Swipe"]}),n.gm.on("swipe",n.onSwipe),n.gm.on("pan",n.onPan),n}return o(e,t),e.prototype.destroy=function(){window.cancelAnimationFrame(this.raf),this.gm.destroy(),this.off()},e.prototype.rafInertia=function(t){var e=this,n=t.speedX,r=t.speedY;this.raf=window.requestAnimationFrame(function(){var i=cS.now(),o=(i-e.ms)/800;if(o<1){o=vS(1-o);var a=i-e.rafMs,s=n*o*a,l=r*o*a,u=e.getWrapperEvent(t,s,l);e.emit(gS,u),e.rafMs=i,e.rafInertia(t)}})},e.prototype.getWrapperEvent=function(t,e,n){return a(a({},t),{deltaX:-e,deltaY:-n})},e}(pt),yS=function(t,e,n,r,i){var o=n+r;return t+i>=o?t:o<t+(e+i)/2?n+r-i:n>t+(e-i)/2?t+e-n>i?n:t+e-i:t+(e-i)/2},bS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),Object.defineProperty(e.prototype,"cellType",{get:function(){return aa.ROW_CELL},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){var e;t.prototype.destroy.call(this),null===(e=this.gm)||void 0===e||e.destroy()},e.prototype.initCell=function(){t.prototype.initCell.call(this),this.drawBackgroundShape(),this.drawInteractiveBgShape(),this.drawInteractiveBorderShape(),this.drawTextShape(),this.drawConditionIconShapes(),this.drawTreeIcon(),this.drawTreeLeafNodeAlignDot(),this.drawRectBorder(),this.drawResizeAreaInLeaf(),this.drawActionIcons(),this.update()},e.prototype.getBackgroundColor=function(){var t=this.getCrossBackgroundColor(this.meta.rowIndex),e=t.backgroundColor,n=t.backgroundColorOpacity;return this.getBackgroundColorByCondition(e,n)},e.prototype.drawInteractiveBorderShape=function(){this.stateShapes.set("interactiveBorderShape",e_(this,this.getInteractiveBorderShapeStyle(2),{visible:!1}))},e.prototype.drawInteractiveBgShape=function(){this.stateShapes.set("interactiveBgShape",e_(this,a({},this.getCellArea()),{visible:!1}))},e.prototype.showTreeIcon=function(){return this.spreadsheet.isHierarchyTreeType()&&!this.meta.isLeaf},e.prototype.showTreeLeafNodeAlignDot=function(){var t;return(null===(t=this.spreadsheet.options.style)||void 0===t?void 0:t.showTreeLeafNodeAlignDot)&&this.spreadsheet.isHierarchyTreeType()},e.prototype.getParentTreeIconCfg=function(){if(this.showTreeLeafNodeAlignDot()&&this.spreadsheet.isHierarchyTreeType()&&this.meta.isLeaf)return Yu(this.meta,"parent.belongsCell.treeIcon.cfg")},e.prototype.drawTreeIcon=function(){var t=this;if(this.showTreeIcon()){var e=this.meta,n=e.isCollapsed,r=e.id,i=e.hierarchy,o=this.getContentArea().x,a=this.getTextStyle().fill,s=this.getStyle().icon.size,l=o+this.getContentIndent(),u=this.getIconYPosition();this.treeIcon=s_(this,{x:l,y:u,width:s,height:s},a,n,function(){if(!oC()){if(!n){var e=t.spreadsheet.store.get("scrollY"),o=t.headerConfig.viewportHeight||0,a=(u=t.meta,c=0,null==(h=u.children)||h.forEach(function(t){c+=t.height||0}),c),s=i.height-a;if(e>0&&e+o>s){var l=s-o;t.spreadsheet.store.set("scrollY",l>0?l:0)}}var u,c,h;t.spreadsheet.emit(go.ROW_CELL_COLLAPSE_TREE_ROWS,{id:r,isCollapsed:!n,node:t.meta})}}),oC()&&(this.gm=new pS(this,{gestures:["Tap"]}),this.gm.on("tap",function(){t.spreadsheet.emit(go.ROW_CELL_COLLAPSE_TREE_ROWS,{id:r,isCollapsed:!n,node:t.meta})}))}},e.prototype.drawTreeLeafNodeAlignDot=function(){var t=this.getParentTreeIconCfg();if(t){var e=this.getStyle().icon,n=e.size,r=e.margin,i=t.x+n+r.right,o=this.getTextPosition().y,a=this.getTextStyle(),s=a.fill,l=a.fontSize,u=n/5;this.treeLeafNodeAlignDot=n_(this,{x:i+n/2,y:o+(l-u)/2,r:u,fill:s,fillOpacity:.3})}},e.prototype.isBolderText=function(){var t=this.meta,e=t.isLeaf,n=t.isTotals,r=t.level;return!e&&0===r||n},e.prototype.drawTextShape=function(){t.prototype.drawTextShape.call(this),this.drawLinkField(this.meta)},e.prototype.drawRectBorder=function(){var t=this,e=this.getCellArea().x,n=this.getContentIndent(),r=this.spreadsheet.isHierarchyTreeType()?e:e+n;[gC.BOTTOM,gC.LEFT].forEach(function(e){var n=b_(e,a(a({},t.getCellArea()),{x:r}),t.getStyle().cell),i=n.position,o=n.style;i_(t,i,o)})},e.prototype.getResizeClipAreaBBox=function(){var t=this.headerConfig;return{x:0,y:0,width:t.width,height:t.viewportHeight}},e.prototype.drawResizeAreaInLeaf=function(){if(this.meta.isLeaf&&this.shouldDrawResizeAreaByType("rowCellVertical",this)){var t=this.getCellArea(),e=t.x,n=t.y,r=t.width,i=t.height,o=this.getResizeAreaStyle(),s=Bx(this.spreadsheet,Po),l=this.headerConfig,u=l.position,c=l.seriesNumberWidth,h=l.width,d=l.scrollX,f=l.scrollY,p={x:e+c,y:n+i-o.size/2,width:r,height:o.size},v=this.getResizeClipAreaBBox();if(zx(p,v,{scrollX:d,scrollY:f})){var g=(null==u?void 0:u.x)+e-d+c,m=(null==u?void 0:u.y)+n-f,y=this.spreadsheet.isFrozenRowHeader()?h-c-(e-d):r;s.addShape("rect",{attrs:a(a({},Nx({id:this.meta.id,theme:o,type:ba.Vertical,effect:wa.Cell,offsetX:g,offsetY:m,width:r,height:i,meta:this.meta})),{x:g,y:m+i-o.size/2,width:y})})}}},e.prototype.getContentIndent=function(){if(!this.spreadsheet.isHierarchyTreeType())return 0;for(var t=this.getStyle(),e=t.icon,n=t.cell,r=e.size+e.margin.right,i=this.meta.parent,o=0;i;)0!==i.height&&(o+=r),i=i.parent;return this.showTreeLeafNodeAlignDot()&&(o+=this.isTreeLevel()?0:n.padding.right+e.margin.right),o},e.prototype.getTextIndent=function(){var t=this.getStyle().icon,e=t.size,n=t.margin;return this.getContentIndent()+(this.showTreeIcon()||this.isTreeLevel()&&this.showTreeLeafNodeAlignDot()?e+n.right:0)},e.prototype.isTreeLevel=function(){return Ep(Yu(this.meta,"parent.children"),function(t){return!t.isLeaf})},e.prototype.getIconPosition=function(){if(!this.textShape)return{x:0,y:0};var t=this.textShape.cfg.attrs,e=t.x,n=t.y,r=t.textAlign,i=this.getStyle().icon.margin.left;return"left"===r?{x:e+this.actualTextWidth+i,y:n}:"right"===r?{x:e+i,y:n}:{x:e+this.actualTextWidth/2+i,y:n}},e.prototype.getMaxTextWidth=function(){return this.getContentArea().width-this.getTextIndent()-this.getActionIconsWidth()},e.prototype.getTextArea=function(){var t=this.getContentArea(),e=this.getTextIndent();return a(a({},t),{x:t.x+e,width:t.width-e})},e.prototype.getAdjustTextAreaHeight=function(t,e,n){var r=t.height;return!this.spreadsheet.facet.vScrollBar&&t.y+t.height>e+n&&(r=e+n-t.y),r},e.prototype.calculateTextY=function(t){var e=t.textArea,n=t.adjustTextAreaHeight,r=this.headerConfig,i=r.scrollY,o=r.viewportHeight,a=this.getTextStyle().fontSize;return yS(e.y,n,i,o,a)},e.prototype.getTextPosition=function(){var t=this.getTextArea(),e=this.headerConfig,n=e.scrollY,r=e.viewportHeight,i=this.getAdjustTextAreaHeight(t,n,r),o=this.calculateTextY({textArea:t,adjustTextAreaHeight:i});return{x:y_(t,this.getTextStyle(),0,this.getIconStyle(),this.getActionIconsCount()).text.x,y:o}},e.prototype.getIconYPosition=function(){var t=this.getTextPosition().y,e=this.getStyle().icon.size;return t+(this.getTextStyle().fontSize-e)/2},e}(Qx),wS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.handleRestOptions=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=u(e),i=r[0],o=r.slice(1);t.prototype.handleRestOptions.call(this,i,o),this.frozenRowCell=o[0]},e.prototype.getAdjustTextAreaHeight=function(t,e,n){var r=t.y-this.getFrozenFirstRowHeight(),i=t.height;return!this.spreadsheet.facet.vScrollBar&&r+t.height>e+n&&(i=e+n-r),i},e.prototype.calculateTextY=function(t){var e=t.textArea,n=t.adjustTextAreaHeight,r=this.headerConfig,i=r.scrollY,o=r.viewportHeight,a=this.getTextStyle().fontSize;return yS(e.y,n,i+this.getFrozenFirstRowHeight(),o,a)},e.prototype.getResizeClipAreaBBox=function(){return a(a({},t.prototype.getResizeClipAreaBBox.call(this)),{y:this.getFrozenFirstRowHeight()})},e.prototype.getFrozenFirstRowHeight=function(){var t;if(this.frozenRowCell)return 0;var e=this.spreadsheet,n=e.facet,r=e.options;return YC(r,null===(t=null==n?void 0:n.layoutResult)||void 0===t?void 0:t.rowNodes).frozenRowHeight},e}(bS),CS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.initCell=function(){this.drawBackgroundShape(),this.drawRectBorder(),this.drawTextShape()},e.prototype.getTextStyle=function(){var t;return null===(t=this.getStyle())||void 0===t?void 0:t.seriesText},e.prototype.getTextPosition=function(){return t.prototype.getTextPosition.call(this)},e.prototype.getActionIconsCount=function(){return 0},e.prototype.getIconStyle=function(){},e.prototype.drawResizeAreaInLeaf=function(){},e.prototype.update=function(){},e.prototype.findFieldCondition=function(){},e.prototype.mappingValue=function(){},e}(wS),_S=function(t){return[ua.META,ua.CONTROL].includes(t.key)},xS=function(t){return t.ctrlKey||t.metaKey},SS=function(t){var e=t.getMeta()||{},n=e.id,r=e.colIndex,i=e.rowIndex,o=e.rowQuery;return{id:n,colIndex:r,rowIndex:i,type:t.cellType,rowQuery:o}};function ES(t,e){var n=Math.min(t.rowIndex,e.rowIndex),r=Math.max(t.rowIndex,e.rowIndex);return{start:{rowIndex:n,colIndex:Math.min(t.colIndex,e.colIndex)},end:{rowIndex:r,colIndex:Math.max(t.colIndex,e.colIndex)}}}var OS,TS,IS=function(t,e){var n=t.getSelectedCellHighlight(),r=n.colHeader,i=n.rowHeader;r&&t.updateCells(t.getAllColHeaderCells()),i&&t.updateCells(t.getAllRowHeaderCells()),e()},MS=function(t){var e=t.store.get("visibleActionIcons"),n=t.interaction.getInteractedCells(),r=t.interaction.getState().cells;if(Hv(n)&&Hv(r)&&Hv(e))return!1;(ep(e,function(t){t.set("visible",!1)}),t.store.set("visibleActionIcons",[]),ep(n,function(t){t.hideInteractionShape()}),t.interaction.resetState(),t.options.interaction.selectedCellsSpotlight)&&ep(t.interaction.getPanelGroupAllUnSelectedDataCells()||[],function(t){t.clearUnselectedState()});return!0},LS=9e15,kS=1e9,AS="0123456789abcdef",RS="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",DS="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",PS={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-LS,maxE:LS,crypto:!1},NS=!0,BS="[DecimalError] ",zS=BS+"Invalid argument: ",FS=BS+"Precision limit exceeded",HS=BS+"crypto unavailable",jS="[object Decimal]",WS=Math.floor,GS=Math.pow,VS=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,$S=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,US=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,YS=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,XS=1e7,qS=RS.length-1,KS=DS.length-1,ZS={toStringTag:jS};function JS(t){var e,n,r,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)(n=7-(r=t[e]+"").length)&&(o+=uE(n)),o+=r;(n=7-(r=(a=t[e])+"").length)&&(o+=uE(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function QS(t,e,n){if(t!==~~t||t<e||t>n)throw Error(zS+t)}function tE(t,e,n,r){var i,o,a,s;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=7,i=0):(i=Math.ceil((e+1)/7),e%=7),o=GS(10,7-e),s=t[i]%o|0,null==r?e<3?(0==e?s=s/100|0:1==e&&(s=s/10|0),a=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):a=(n<4&&s+1==o||n>3&&s+1==o/2)&&(t[i+1]/o/100|0)==GS(10,e-2)-1||(s==o/2||0==s)&&!(t[i+1]/o/100|0):e<4?(0==e?s=s/1e3|0:1==e?s=s/100|0:2==e&&(s=s/10|0),a=(r||n<4)&&9999==s||!r&&n>3&&4999==s):a=((r||n<4)&&s+1==o||!r&&n>3&&s+1==o/2)&&(t[i+1]/o/1e3|0)==GS(10,e-3)-1,a}function eE(t,e,n){for(var r,i,o=[0],a=0,s=t.length;a<s;){for(i=o.length;i--;)o[i]*=e;for(o[0]+=AS.indexOf(t.charAt(a++)),r=0;r<o.length;r++)o[r]>n-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}ZS.absoluteValue=ZS.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),rE(t)},ZS.ceil=function(){return rE(new this.constructor(this),this.e+1,2)},ZS.clampedTo=ZS.clamp=function(t,e){var n=this,r=n.constructor;if(t=new r(t),e=new r(e),!t.s||!e.s)return new r(NaN);if(t.gt(e))throw Error(zS+e);return n.cmp(t)<0?t:n.cmp(e)>0?e:new r(n)},ZS.comparedTo=ZS.cmp=function(t){var e,n,r,i,o=this,a=o.d,s=(t=new o.constructor(t)).d,l=o.s,u=t.s;if(!a||!s)return l&&u?l!==u?l:a===s?0:!a^l<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?l:s[0]?-u:0;if(l!==u)return l;if(o.e!==t.e)return o.e>t.e^l<0?1:-1;for(e=0,n=(r=a.length)<(i=s.length)?r:i;e<n;++e)if(a[e]!==s[e])return a[e]>s[e]^l<0?1:-1;return r===i?0:r>i^l<0?1:-1},ZS.cosine=ZS.cos=function(){var t,e,n=this,r=n.constructor;return n.d?n.d[0]?(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(t,e){var n,r,i;if(e.isZero())return e;r=e.d.length,r<32?i=(1/bE(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10");t.precision+=n,e=yE(t,1,e.times(i),new t(1));for(var o=n;o--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return t.precision-=n,e}(r,wE(r,n)),r.precision=t,r.rounding=e,rE(2==TS||3==TS?n.neg():n,t,e,!0)):new r(1):new r(NaN)},ZS.cubeRoot=ZS.cbrt=function(){var t,e,n,r,i,o,a,s,l,u,c=this,h=c.constructor;if(!c.isFinite()||c.isZero())return new h(c);for(NS=!1,(o=c.s*GS(c.s*c,1/3))&&Math.abs(o)!=1/0?r=new h(o.toString()):(n=JS(c.d),(o=((t=c.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=GS(n,1/3),t=WS((t+1)/3)-(t%3==(t<0?-1:2)),(r=new h(n=o==1/0?"5e"+t:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+t)).s=c.s),a=(t=h.precision)+3;;)if(u=(l=(s=r).times(s).times(s)).plus(c),r=nE(u.plus(c).times(s),u.plus(l),a+2,1),JS(s.d).slice(0,a)===(n=JS(r.d)).slice(0,a)){if("9999"!=(n=n.slice(a-3,a+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(rE(r,t+1,1),e=!r.times(r).times(r).eq(c));break}if(!i&&(rE(s,t+1,0),s.times(s).times(s).eq(c))){r=s;break}a+=4,i=1}return NS=!0,rE(r,t,h.rounding,e)},ZS.decimalPlaces=ZS.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=7*((t=e.length-1)-WS(this.e/7)),t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},ZS.dividedBy=ZS.div=function(t){return nE(this,new this.constructor(t))},ZS.dividedToIntegerBy=ZS.divToInt=function(t){var e=this.constructor;return rE(nE(this,new e(t),0,1,1),e.precision,e.rounding)},ZS.equals=ZS.eq=function(t){return 0===this.cmp(t)},ZS.floor=function(){return rE(new this.constructor(this),this.e+1,3)},ZS.greaterThan=ZS.gt=function(t){return this.cmp(t)>0},ZS.greaterThanOrEqualTo=ZS.gte=function(t){var e=this.cmp(t);return 1==e||0===e},ZS.hyperbolicCosine=ZS.cosh=function(){var t,e,n,r,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;n=a.precision,r=a.rounding,a.precision=n+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?e=(1/bE(4,t=Math.ceil(i/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=yE(a,1,o.times(e),new a(1),!0);for(var l,u=t,c=new a(8);u--;)l=o.times(o),o=s.minus(l.times(c.minus(l.times(c))));return rE(o,a.precision=n,a.rounding=r,!0)},ZS.hyperbolicSine=ZS.sinh=function(){var t,e,n,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,n=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=yE(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(r))>16?16:0|t,i=yE(o,2,i=i.times(1/bE(5,t)),i,!0);for(var a,s=new o(5),l=new o(16),u=new o(20);t--;)a=i.times(i),i=i.times(s.plus(a.times(l.times(a).plus(u))))}return o.precision=e,o.rounding=n,rE(i,e,n,!0)},ZS.hyperbolicTangent=ZS.tanh=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+7,r.rounding=1,nE(n.sinh(),n.cosh(),r.precision=t,r.rounding=e)):new r(n.s)},ZS.inverseCosine=ZS.acos=function(){var t,e=this,n=e.constructor,r=e.abs().cmp(1),i=n.precision,o=n.rounding;return-1!==r?0===r?e.isNeg()?sE(n,i,o):new n(0):new n(NaN):e.isZero()?sE(n,i+4,o).times(.5):(n.precision=i+6,n.rounding=1,e=e.asin(),t=sE(n,i+4,o).times(.5),n.precision=i,n.rounding=o,t.minus(e))},ZS.inverseHyperbolicCosine=ZS.acosh=function(){var t,e,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(t=r.precision,e=r.rounding,r.precision=t+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,NS=!1,n=n.times(n).minus(1).sqrt().plus(n),NS=!0,r.precision=t,r.rounding=e,n.ln()):new r(n)},ZS.inverseHyperbolicSine=ZS.asinh=function(){var t,e,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,NS=!1,n=n.times(n).plus(1).sqrt().plus(n),NS=!0,r.precision=t,r.rounding=e,n.ln())},ZS.inverseHyperbolicTangent=ZS.atanh=function(){var t,e,n,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=o.precision,e=o.rounding,r=i.sd(),Math.max(r,t)<2*-i.e-1?rE(new o(i),t,e,!0):(o.precision=n=r-i.e,i=nE(i.plus(1),new o(1).minus(i),n+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=e,i.times(.5))):new o(NaN)},ZS.inverseSine=ZS.asin=function(){var t,e,n,r,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),n=o.precision,r=o.rounding,-1!==e?0===e?((t=sE(o,n+4,r).times(.5)).s=i.s,t):new o(NaN):(o.precision=n+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=r,i.times(2)))},ZS.inverseTangent=ZS.atan=function(){var t,e,n,r,i,o,a,s,l,u=this,c=u.constructor,h=c.precision,d=c.rounding;if(u.isFinite()){if(u.isZero())return new c(u);if(u.abs().eq(1)&&h+4<=KS)return(a=sE(c,h+4,d).times(.25)).s=u.s,a}else{if(!u.s)return new c(NaN);if(h+4<=KS)return(a=sE(c,h+4,d).times(.5)).s=u.s,a}for(c.precision=s=h+10,c.rounding=1,t=n=Math.min(28,s/7+2|0);t;--t)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(NS=!1,e=Math.ceil(s/7),r=1,l=u.times(u),a=new c(u),i=u;-1!==t;)if(i=i.times(l),o=a.minus(i.div(r+=2)),i=i.times(l),void 0!==(a=o.plus(i.div(r+=2))).d[e])for(t=e;a.d[t]===o.d[t]&&t--;);return n&&(a=a.times(2<<n-1)),NS=!0,rE(a,c.precision=h,c.rounding=d,!0)},ZS.isFinite=function(){return!!this.d},ZS.isInteger=ZS.isInt=function(){return!!this.d&&WS(this.e/7)>this.d.length-2},ZS.isNaN=function(){return!this.s},ZS.isNegative=ZS.isNeg=function(){return this.s<0},ZS.isPositive=ZS.isPos=function(){return this.s>0},ZS.isZero=function(){return!!this.d&&0===this.d[0]},ZS.lessThan=ZS.lt=function(t){return this.cmp(t)<0},ZS.lessThanOrEqualTo=ZS.lte=function(t){return this.cmp(t)<1},ZS.logarithm=ZS.log=function(t){var e,n,r,i,o,a,s,l,u=this,c=u.constructor,h=c.precision,d=c.rounding;if(null==t)t=new c(10),e=!0;else{if(n=(t=new c(t)).d,t.s<0||!n||!n[0]||t.eq(1))return new c(NaN);e=t.eq(10)}if(n=u.d,u.s<0||!n||!n[0]||u.eq(1))return new c(n&&!n[0]?-1/0:1!=u.s?NaN:n?0:1/0);if(e)if(n.length>1)o=!0;else{for(i=n[0];i%10==0;)i/=10;o=1!==i}if(NS=!1,a=pE(u,s=h+5),r=e?aE(c,s+10):pE(t,s),tE((l=nE(a,r,s,1)).d,i=h,d))do{if(a=pE(u,s+=10),r=e?aE(c,s+10):pE(t,s),l=nE(a,r,s,1),!o){+JS(l.d).slice(i+1,i+15)+1==1e14&&(l=rE(l,h+1,0));break}}while(tE(l.d,i+=10,d));return NS=!0,rE(l,h,d)},ZS.minus=ZS.sub=function(t){var e,n,r,i,o,a,s,l,u,c,h,d,f=this,p=f.constructor;if(t=new p(t),!f.d||!t.d)return f.s&&t.s?f.d?t.s=-t.s:t=new p(t.d||f.s!==t.s?f:NaN):t=new p(NaN),t;if(f.s!=t.s)return t.s=-t.s,f.plus(t);if(u=f.d,d=t.d,s=p.precision,l=p.rounding,!u[0]||!d[0]){if(d[0])t.s=-t.s;else{if(!u[0])return new p(3===l?-0:0);t=new p(f)}return NS?rE(t,s,l):t}if(n=WS(t.e/7),c=WS(f.e/7),u=u.slice(),o=c-n){for((h=o<0)?(e=u,o=-o,a=d.length):(e=d,n=c,a=u.length),o>(r=Math.max(Math.ceil(s/7),a)+2)&&(o=r,e.length=1),e.reverse(),r=o;r--;)e.push(0);e.reverse()}else{for((h=(r=u.length)<(a=d.length))&&(a=r),r=0;r<a;r++)if(u[r]!=d[r]){h=u[r]<d[r];break}o=0}for(h&&(e=u,u=d,d=e,t.s=-t.s),a=u.length,r=d.length-a;r>0;--r)u[a++]=0;for(r=d.length;r>o;){if(u[--r]<d[r]){for(i=r;i&&0===u[--i];)u[i]=XS-1;--u[i],u[r]+=XS}u[r]-=d[r]}for(;0===u[--a];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(t.d=u,t.e=oE(u,n),NS?rE(t,s,l):t):new p(3===l?-0:0)},ZS.modulo=ZS.mod=function(t){var e,n=this,r=n.constructor;return t=new r(t),!n.d||!t.s||t.d&&!t.d[0]?new r(NaN):!t.d||n.d&&!n.d[0]?rE(new r(n),r.precision,r.rounding):(NS=!1,9==r.modulo?(e=nE(n,t.abs(),0,3,1)).s*=t.s:e=nE(n,t,0,r.modulo,1),e=e.times(t),NS=!0,n.minus(e))},ZS.naturalExponential=ZS.exp=function(){return fE(this)},ZS.naturalLogarithm=ZS.ln=function(){return pE(this)},ZS.negated=ZS.neg=function(){var t=new this.constructor(this);return t.s=-t.s,rE(t)},ZS.plus=ZS.add=function(t){var e,n,r,i,o,a,s,l,u,c,h=this,d=h.constructor;if(t=new d(t),!h.d||!t.d)return h.s&&t.s?h.d||(t=new d(t.d||h.s===t.s?h:NaN)):t=new d(NaN),t;if(h.s!=t.s)return t.s=-t.s,h.minus(t);if(u=h.d,c=t.d,s=d.precision,l=d.rounding,!u[0]||!c[0])return c[0]||(t=new d(h)),NS?rE(t,s,l):t;if(o=WS(h.e/7),r=WS(t.e/7),u=u.slice(),i=o-r){for(i<0?(n=u,i=-i,a=c.length):(n=c,r=o,a=u.length),i>(a=(o=Math.ceil(s/7))>a?o+1:a+1)&&(i=a,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((a=u.length)-(i=c.length)<0&&(i=a,n=c,c=u,u=n),e=0;i;)e=(u[--i]=u[i]+c[i]+e)/XS|0,u[i]%=XS;for(e&&(u.unshift(e),++r),a=u.length;0==u[--a];)u.pop();return t.d=u,t.e=oE(u,r),NS?rE(t,s,l):t},ZS.precision=ZS.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(zS+t);return n.d?(e=lE(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},ZS.round=function(){var t=this,e=t.constructor;return rE(new e(t),t.e+1,e.rounding)},ZS.sine=ZS.sin=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(t,e){var n,r=e.d.length;if(r<3)return e.isZero()?e:yE(t,2,e,e);n=(n=1.4*Math.sqrt(r))>16?16:0|n,e=e.times(1/bE(5,n)),e=yE(t,2,e,e);for(var i,o=new t(5),a=new t(16),s=new t(20);n--;)i=e.times(e),e=e.times(o.plus(i.times(a.times(i).minus(s))));return e}(r,wE(r,n)),r.precision=t,r.rounding=e,rE(TS>2?n.neg():n,t,e,!0)):new r(NaN)},ZS.squareRoot=ZS.sqrt=function(){var t,e,n,r,i,o,a=this,s=a.d,l=a.e,u=a.s,c=a.constructor;if(1!==u||!s||!s[0])return new c(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);for(NS=!1,0==(u=Math.sqrt(+a))||u==1/0?(((e=JS(s)).length+l)%2==0&&(e+="0"),u=Math.sqrt(e),l=WS((l+1)/2)-(l<0||l%2),r=new c(e=u==1/0?"5e"+l:(e=u.toExponential()).slice(0,e.indexOf("e")+1)+l)):r=new c(u.toString()),n=(l=c.precision)+3;;)if(r=(o=r).plus(nE(a,o,n+2,1)).times(.5),JS(o.d).slice(0,n)===(e=JS(r.d)).slice(0,n)){if("9999"!=(e=e.slice(n-3,n+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(rE(r,l+1,1),t=!r.times(r).eq(a));break}if(!i&&(rE(o,l+1,0),o.times(o).eq(a))){r=o;break}n+=4,i=1}return NS=!0,rE(r,l,c.rounding,t)},ZS.tangent=ZS.tan=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+10,r.rounding=1,(n=n.sin()).s=1,n=nE(n,new r(1).minus(n.times(n)).sqrt(),t+10,0),r.precision=t,r.rounding=e,rE(2==TS||4==TS?n.neg():n,t,e,!0)):new r(NaN)},ZS.times=ZS.mul=function(t){var e,n,r,i,o,a,s,l,u,c=this,h=c.constructor,d=c.d,f=(t=new h(t)).d;if(t.s*=c.s,!(d&&d[0]&&f&&f[0]))return new h(!t.s||d&&!d[0]&&!f||f&&!f[0]&&!d?NaN:d&&f?0*t.s:t.s/0);for(n=WS(c.e/7)+WS(t.e/7),(l=d.length)<(u=f.length)&&(o=d,d=f,f=o,a=l,l=u,u=a),o=[],r=a=l+u;r--;)o.push(0);for(r=u;--r>=0;){for(e=0,i=l+r;i>r;)s=o[i]+f[r]*d[i-r-1]+e,o[i--]=s%XS|0,e=s/XS|0;o[i]=(o[i]+e)%XS|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=oE(o,n),NS?rE(t,h.precision,h.rounding):t},ZS.toBinary=function(t,e){return CE(this,2,t,e)},ZS.toDecimalPlaces=ZS.toDP=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(QS(t,0,kS),void 0===e?e=r.rounding:QS(e,0,8),rE(n,t+n.e+1,e))},ZS.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=iE(r,!0):(QS(t,0,kS),void 0===e?e=i.rounding:QS(e,0,8),n=iE(r=rE(new i(r),t+1,e),!0,t+1)),r.isNeg()&&!r.isZero()?"-"+n:n},ZS.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?n=iE(i):(QS(t,0,kS),void 0===e?e=o.rounding:QS(e,0,8),n=iE(r=rE(new o(i),t+i.e+1,e),!1,t+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},ZS.toFraction=function(t){var e,n,r,i,o,a,s,l,u,c,h,d,f=this,p=f.d,v=f.constructor;if(!p)return new v(f);if(u=n=new v(1),r=l=new v(0),a=(o=(e=new v(r)).e=lE(p)-f.e-1)%7,e.d[0]=GS(10,a<0?7+a:a),null==t)t=o>0?e:u;else{if(!(s=new v(t)).isInt()||s.lt(u))throw Error(zS+s);t=s.gt(e)?o>0?e:u:s}for(NS=!1,s=new v(JS(p)),c=v.precision,v.precision=o=7*p.length*2;h=nE(s,e,0,1,1),1!=(i=n.plus(h.times(r))).cmp(t);)n=r,r=i,i=u,u=l.plus(h.times(i)),l=i,i=e,e=s.minus(h.times(i)),s=i;return i=nE(t.minus(n),r,0,1,1),l=l.plus(i.times(u)),n=n.plus(i.times(r)),l.s=u.s=f.s,d=nE(u,r,o,1).minus(f).abs().cmp(nE(l,n,o,1).minus(f).abs())<1?[u,r]:[l,n],v.precision=c,NS=!0,d},ZS.toHexadecimal=ZS.toHex=function(t,e){return CE(this,16,t,e)},ZS.toNearest=function(t,e){var n=this,r=n.constructor;if(n=new r(n),null==t){if(!n.d)return n;t=new r(1),e=r.rounding}else{if(t=new r(t),void 0===e?e=r.rounding:QS(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(NS=!1,n=nE(n,t,0,e,1).times(t),NS=!0,rE(n)):(t.s=n.s,n=t),n},ZS.toNumber=function(){return+this},ZS.toOctal=function(t,e){return CE(this,8,t,e)},ZS.toPower=ZS.pow=function(t){var e,n,r,i,o,a,s=this,l=s.constructor,u=+(t=new l(t));if(!(s.d&&t.d&&s.d[0]&&t.d[0]))return new l(GS(+s,u));if((s=new l(s)).eq(1))return s;if(r=l.precision,o=l.rounding,t.eq(1))return rE(s,r,o);if((e=WS(t.e/7))>=t.d.length-1&&(n=u<0?-u:u)<=9007199254740991)return i=cE(l,s,n,r),t.s<0?new l(1).div(i):rE(i,r,o);if((a=s.s)<0){if(e<t.d.length-1)return new l(NaN);if(1&t.d[e]||(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(e=0!=(n=GS(+s,u))&&isFinite(n)?new l(n+"").e:WS(u*(Math.log("0."+JS(s.d))/Math.LN10+s.e+1)))>l.maxE+1||e<l.minE-1?new l(e>0?a/0:0):(NS=!1,l.rounding=s.s=1,n=Math.min(12,(e+"").length),(i=fE(t.times(pE(s,r+n)),r)).d&&tE((i=rE(i,r+5,1)).d,r,o)&&(e=r+10,+JS((i=rE(fE(t.times(pE(s,e+n)),e),e+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=rE(i,r+1,0))),i.s=a,NS=!0,l.rounding=o,rE(i,r,o))},ZS.toPrecision=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=iE(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(QS(t,1,kS),void 0===e?e=i.rounding:QS(e,0,8),n=iE(r=rE(new i(r),t,e),t<=r.e||r.e<=i.toExpNeg,t)),r.isNeg()&&!r.isZero()?"-"+n:n},ZS.toSignificantDigits=ZS.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(QS(t,1,kS),void 0===e?e=n.rounding:QS(e,0,8)),rE(new n(this),t,e)},ZS.toString=function(){var t=this,e=t.constructor,n=iE(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},ZS.truncated=ZS.trunc=function(){return rE(new this.constructor(this),this.e+1,1)},ZS.valueOf=ZS.toJSON=function(){var t=this,e=t.constructor,n=iE(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var nE=function(){function t(t,e,n){var r,i=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+i,t[o]=r%n|0,i=r/n|0;return i&&t.unshift(i),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]<e[n]?1:0,t[n]=i*r+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(r,i,o,a,s,l){var u,c,h,d,f,p,v,g,m,y,b,w,C,_,x,S,E,O,T,I,M=r.constructor,L=r.s==i.s?1:-1,k=r.d,A=i.d;if(!(k&&k[0]&&A&&A[0]))return new M(r.s&&i.s&&(k?!A||k[0]!=A[0]:A)?k&&0==k[0]||!A?0*L:L/0:NaN);for(l?(f=1,c=r.e-i.e):(l=XS,f=7,c=WS(r.e/f)-WS(i.e/f)),T=A.length,E=k.length,y=(m=new M(L)).d=[],h=0;A[h]==(k[h]||0);h++);if(A[h]>(k[h]||0)&&c--,null==o?(_=o=M.precision,a=M.rounding):_=s?o+(r.e-i.e)+1:o,_<0)y.push(1),p=!0;else{if(_=_/f+2|0,h=0,1==T){for(d=0,A=A[0],_++;(h<E||d)&&_--;h++)x=d*l+(k[h]||0),y[h]=x/A|0,d=x%A|0;p=d||h<E}else{for((d=l/(A[0]+1)|0)>1&&(A=t(A,d,l),k=t(k,d,l),T=A.length,E=k.length),S=T,w=(b=k.slice(0,T)).length;w<T;)b[w++]=0;(I=A.slice()).unshift(0),O=A[0],A[1]>=l/2&&++O;do{d=0,(u=e(A,b,T,w))<0?(C=b[0],T!=w&&(C=C*l+(b[1]||0)),(d=C/O|0)>1?(d>=l&&(d=l-1),1==(u=e(v=t(A,d,l),b,g=v.length,w=b.length))&&(d--,n(v,T<g?I:A,g,l))):(0==d&&(u=d=1),v=A.slice()),(g=v.length)<w&&v.unshift(0),n(b,v,w,l),-1==u&&(u=e(A,b,T,w=b.length))<1&&(d++,n(b,T<w?I:A,w,l)),w=b.length):0===u&&(d++,b=[0]),y[h++]=d,u&&b[0]?b[w++]=k[S]||0:(b=[k[S]],w=1)}while((S++<E||void 0!==b[0])&&_--);p=void 0!==b[0]}y[0]||y.shift()}if(1==f)m.e=c,OS=p;else{for(h=1,d=y[0];d>=10;d/=10)h++;m.e=h+c*f-1,rE(m,s?o+m.e+1:o,a,p)}return m}}();function rE(t,e,n,r){var i,o,a,s,l,u,c,h,d,f=t.constructor;t:if(null!=e){if(!(h=t.d))return t;for(i=1,s=h[0];s>=10;s/=10)i++;if((o=e-i)<0)o+=7,a=e,l=(c=h[d=0])/GS(10,i-a-1)%10|0;else if((d=Math.ceil((o+1)/7))>=(s=h.length)){if(!r)break t;for(;s++<=d;)h.push(0);c=l=0,i=1,a=(o%=7)-7+1}else{for(c=s=h[d],i=1;s>=10;s/=10)i++;l=(a=(o%=7)-7+i)<0?0:c/GS(10,i-a-1)%10|0}if(r=r||e<0||void 0!==h[d+1]||(a<0?c:c%GS(10,i-a-1)),u=n<4?(l||r)&&(0==n||n==(t.s<0?3:2)):l>5||5==l&&(4==n||r||6==n&&(o>0?a>0?c/GS(10,i-a):0:h[d-1])%10&1||n==(t.s<0?8:7)),e<1||!h[0])return h.length=0,u?(e-=t.e+1,h[0]=GS(10,(7-e%7)%7),t.e=-e||0):h[0]=t.e=0,t;if(0==o?(h.length=d,s=1,d--):(h.length=d+1,s=GS(10,7-o),h[d]=a>0?(c/GS(10,i-a)%GS(10,a)|0)*s:0),u)for(;;){if(0==d){for(o=1,a=h[0];a>=10;a/=10)o++;for(a=h[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(t.e++,h[0]==XS&&(h[0]=1));break}if(h[d]+=s,h[d]!=XS)break;h[d--]=0,s=1}for(o=h.length;0===h[--o];)h.pop()}return NS&&(t.e>f.maxE?(t.d=null,t.e=NaN):t.e<f.minE&&(t.e=0,t.d=[0])),t}function iE(t,e,n){if(!t.isFinite())return vE(t);var r,i=t.e,o=JS(t.d),a=o.length;return e?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+uE(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):i<0?(o="0."+uE(-i-1)+o,n&&(r=n-a)>0&&(o+=uE(r))):i>=a?(o+=uE(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+uE(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=uE(r))),o}function oE(t,e){var n=t[0];for(e*=7;n>=10;n/=10)e++;return e}function aE(t,e,n){if(e>qS)throw NS=!0,n&&(t.precision=n),Error(FS);return rE(new t(RS),e,1,!0)}function sE(t,e,n){if(e>KS)throw Error(FS);return rE(new t(DS),e,n,!0)}function lE(t){var e=t.length-1,n=7*e+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function uE(t){for(var e="";t--;)e+="0";return e}function cE(t,e,n,r){var i,o=new t(1),a=Math.ceil(r/7+4);for(NS=!1;;){if(n%2&&_E((o=o.times(e)).d,a)&&(i=!0),0===(n=WS(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}_E((e=e.times(e)).d,a)}return NS=!0,o}function hE(t){return 1&t.d[t.d.length-1]}function dE(t,e,n){for(var r,i=new t(e[0]),o=0;++o<e.length;){if(!(r=new t(e[o])).s){i=r;break}i[n](r)&&(i=r)}return i}function fE(t,e){var n,r,i,o,a,s,l,u=0,c=0,h=0,d=t.constructor,f=d.rounding,p=d.precision;if(!t.d||!t.d[0]||t.e>17)return new d(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(NS=!1,l=p):l=e,s=new d(.03125);t.e>-2;)t=t.times(s),h+=5;for(l+=r=Math.log(GS(2,h))/Math.LN10*2+5|0,n=o=a=new d(1),d.precision=l;;){if(o=rE(o.times(t),l,1),n=n.times(++c),JS((s=a.plus(nE(o,n,l,1))).d).slice(0,l)===JS(a.d).slice(0,l)){for(i=h;i--;)a=rE(a.times(a),l,1);if(null!=e)return d.precision=p,a;if(!(u<3&&tE(a.d,l-r,f,u)))return rE(a,d.precision=p,f,NS=!0);d.precision=l+=10,n=o=s=new d(1),c=0,u++}a=s}}function pE(t,e){var n,r,i,o,a,s,l,u,c,h,d,f=1,p=t,v=p.d,g=p.constructor,m=g.rounding,y=g.precision;if(p.s<0||!v||!v[0]||!p.e&&1==v[0]&&1==v.length)return new g(v&&!v[0]?-1/0:1!=p.s?NaN:v?0:p);if(null==e?(NS=!1,c=y):c=e,g.precision=c+=10,r=(n=JS(v)).charAt(0),!(Math.abs(o=p.e)<15e14))return u=aE(g,c+2,y).times(o+""),p=pE(new g(r+"."+n.slice(1)),c-10).plus(u),g.precision=y,null==e?rE(p,y,m,NS=!0):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=JS((p=p.times(t)).d)).charAt(0),f++;for(o=p.e,r>1?(p=new g("0."+n),o++):p=new g(r+"."+n.slice(1)),h=p,l=a=p=nE(p.minus(1),p.plus(1),c,1),d=rE(p.times(p),c,1),i=3;;){if(a=rE(a.times(d),c,1),JS((u=l.plus(nE(a,new g(i),c,1))).d).slice(0,c)===JS(l.d).slice(0,c)){if(l=l.times(2),0!==o&&(l=l.plus(aE(g,c+2,y).times(o+""))),l=nE(l,new g(f),c,1),null!=e)return g.precision=y,l;if(!tE(l.d,c-10,m,s))return rE(l,g.precision=y,m,NS=!0);g.precision=c+=10,u=a=p=nE(h.minus(1),h.plus(1),c,1),d=rE(p.times(p),c,1),i=s=1}l=u,i+=2}}function vE(t){return String(t.s*t.s/0)}function gE(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);r++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(r,i)){if(i-=r,t.e=n=n-r-1,t.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=7;r<i;)t.d.push(+e.slice(r,r+=7));r=7-(e=e.slice(r)).length}else r-=i;for(;r--;)e+="0";t.d.push(+e),NS&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function mE(t,e){var n,r,i,o,a,s,l,u,c;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),YS.test(e))return gE(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if($S.test(e))n=16,e=e.toLowerCase();else if(VS.test(e))n=2;else{if(!US.test(e))throw Error(zS+e);n=8}for((o=e.search(/p/i))>0?(l=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),a=(o=e.indexOf("."))>=0,r=t.constructor,a&&(o=(s=(e=e.replace(".","")).length)-o,i=cE(r,new r(n),o,2*o)),o=c=(u=eE(e,n,XS)).length-1;0===u[o];--o)u.pop();return o<0?new r(0*t.s):(t.e=oE(u,c),t.d=u,NS=!1,a&&(t=nE(t,i,4*s)),l&&(t=t.times(Math.abs(l)<54?GS(2,l):cO.pow(2,l))),NS=!0,t)}function yE(t,e,n,r,i){var o,a,s,l,u=t.precision,c=Math.ceil(u/7);for(NS=!1,l=n.times(n),s=new t(r);;){if(a=nE(s.times(l),new t(e++*e++),u,1),s=i?r.plus(a):r.minus(a),r=nE(a.times(l),new t(e++*e++),u,1),void 0!==(a=s.plus(r)).d[c]){for(o=c;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=r,r=a,a=o}return NS=!0,a.d.length=c+1,a}function bE(t,e){for(var n=t;--e;)n*=t;return n}function wE(t,e){var n,r=e.s<0,i=sE(t,t.precision,1),o=i.times(.5);if((e=e.abs()).lte(o))return TS=r?4:1,e;if((n=e.divToInt(i)).isZero())TS=r?3:2;else{if((e=e.minus(n.times(i))).lte(o))return TS=hE(n)?r?2:3:r?4:1,e;TS=hE(n)?r?1:4:r?3:2}return e.minus(i).abs()}function CE(t,e,n,r){var i,o,a,s,l,u,c,h,d,f=t.constructor,p=void 0!==n;if(p?(QS(n,1,kS),void 0===r?r=f.rounding:QS(r,0,8)):(n=f.precision,r=f.rounding),t.isFinite()){for(p?(i=2,16==e?n=4*n-3:8==e&&(n=3*n-2)):i=e,(a=(c=iE(t)).indexOf("."))>=0&&(c=c.replace(".",""),(d=new f(1)).e=c.length-a,d.d=eE(iE(d),10,i),d.e=d.d.length),o=l=(h=eE(c,10,i)).length;0==h[--l];)h.pop();if(h[0]){if(a<0?o--:((t=new f(t)).d=h,t.e=o,h=(t=nE(t,d,n,r,0,i)).d,o=t.e,u=OS),a=h[n],s=i/2,u=u||void 0!==h[n+1],u=r<4?(void 0!==a||u)&&(0===r||r===(t.s<0?3:2)):a>s||a===s&&(4===r||u||6===r&&1&h[n-1]||r===(t.s<0?8:7)),h.length=n,u)for(;++h[--n]>i-1;)h[n]=0,n||(++o,h.unshift(1));for(l=h.length;!h[l-1];--l);for(a=0,c="";a<l;a++)c+=AS.charAt(h[a]);if(p){if(l>1)if(16==e||8==e){for(a=16==e?4:3,--l;l%a;l++)c+="0";for(l=(h=eE(c,i,e)).length;!h[l-1];--l);for(a=1,c="1.";a<l;a++)c+=AS.charAt(h[a])}else c=c.charAt(0)+"."+c.slice(1);c=c+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)c="0"+c;c="0."+c}else if(++o>l)for(o-=l;o--;)c+="0";else o<l&&(c=c.slice(0,o)+"."+c.slice(o))}else c=p?"0p+0":"0";c=(16==e?"0x":2==e?"0b":8==e?"0o":"")+c}else c=vE(t);return t.s<0?"-"+c:c}function _E(t,e){if(t.length>e)return t.length=e,!0}function xE(t){return new this(t).abs()}function SE(t){return new this(t).acos()}function EE(t){return new this(t).acosh()}function OE(t,e){return new this(t).plus(e)}function TE(t){return new this(t).asin()}function IE(t){return new this(t).asinh()}function ME(t){return new this(t).atan()}function LE(t){return new this(t).atanh()}function kE(t,e){t=new this(t),e=new this(e);var n,r=this.precision,i=this.rounding,o=r+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(n=e.s<0?sE(this,r,i):new this(0)).s=t.s:!t.d||e.isZero()?(n=sE(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,n=this.atan(nE(t,e,o,1)),e=sE(this,o,1),this.precision=r,this.rounding=i,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(nE(t,e,o,1)):(n=sE(this,o,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function AE(t){return new this(t).cbrt()}function RE(t){return rE(t=new this(t),t.e+1,2)}function DE(t,e,n){return new this(t).clamp(e,n)}function PE(t){if(!t||"object"!=typeof t)throw Error(BS+"Object expected");var e,n,r,i=!0===t.defaults,o=["precision",1,kS,"rounding",0,8,"toExpNeg",-LS,0,"toExpPos",0,LS,"maxE",0,LS,"minE",-LS,0,"modulo",0,9];for(e=0;e<o.length;e+=3)if(n=o[e],i&&(this[n]=PS[n]),void 0!==(r=t[n])){if(!(WS(r)===r&&r>=o[e+1]&&r<=o[e+2]))throw Error(zS+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=PS[n]),void 0!==(r=t[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(zS+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(HS);this[n]=!0}else this[n]=!1}return this}function NE(t){return new this(t).cos()}function BE(t){return new this(t).cosh()}function zE(t,e){return new this(t).div(e)}function FE(t){return new this(t).exp()}function HE(t){return rE(t=new this(t),t.e+1,3)}function jE(){var t,e,n=new this(0);for(NS=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)n.d&&(n=n.plus(e.times(e)));else{if(e.s)return NS=!0,new this(1/0);n=e}return NS=!0,n.sqrt()}function WE(t){return t instanceof cO||t&&t.toStringTag===jS||!1}function GE(t){return new this(t).ln()}function VE(t,e){return new this(t).log(e)}function $E(t){return new this(t).log(2)}function UE(t){return new this(t).log(10)}function YE(){return dE(this,arguments,"lt")}function XE(){return dE(this,arguments,"gt")}function qE(t,e){return new this(t).mod(e)}function KE(t,e){return new this(t).mul(e)}function ZE(t,e){return new this(t).pow(e)}function JE(t){var e,n,r,i,o=0,a=new this(1),s=[];if(void 0===t?t=this.precision:QS(t,1,kS),r=Math.ceil(t/7),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(r));o<r;)(i=e[o])>=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(HS);for(e=crypto.randomBytes(r*=4);o<r;)(i=e[o]+(e[o+1]<<8)+(e[o+2]<<16)+((127&e[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,o):(s.push(i%1e7),o+=4);o=r/4}else for(;o<r;)s[o++]=1e7*Math.random()|0;for(t%=7,(r=s[--o])&&t&&(i=GS(10,7-t),s[o]=(r/i|0)*i);0===s[o];o--)s.pop();if(o<0)n=0,s=[0];else{for(n=-1;0===s[0];n-=7)s.shift();for(r=1,i=s[0];i>=10;i/=10)r++;r<7&&(n-=7-r)}return a.e=n,a.d=s,a}function QE(t){return rE(t=new this(t),t.e+1,this.rounding)}function tO(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function eO(t){return new this(t).sin()}function nO(t){return new this(t).sinh()}function rO(t){return new this(t).sqrt()}function iO(t,e){return new this(t).sub(e)}function oO(){var t=0,e=arguments,n=new this(e[t]);for(NS=!1;n.s&&++t<e.length;)n=n.plus(e[t]);return NS=!0,rE(n,this.precision,this.rounding)}function aO(t){return new this(t).tan()}function sO(t){return new this(t).tanh()}function lO(t){return rE(t=new this(t),t.e+1,1)}ZS[Symbol.for("nodejs.util.inspect.custom")]=ZS.toString,ZS[Symbol.toStringTag]="Decimal";var uO,cO=ZS.constructor=function t(e){var n,r,i;function o(t){var e,n,r,i=this;if(!(i instanceof o))return new o(t);if(i.constructor=o,WE(t))return i.s=t.s,void(NS?!t.d||t.e>o.maxE?(i.e=NaN,i.d=null):t.e<o.minE?(i.e=0,i.d=[0]):(i.e=t.e,i.d=t.d.slice()):(i.e=t.e,i.d=t.d?t.d.slice():t.d));if("number"===(r=typeof t)){if(0===t)return i.s=1/t<0?-1:1,i.e=0,void(i.d=[0]);if(t<0?(t=-t,i.s=-1):i.s=1,t===~~t&&t<1e7){for(e=0,n=t;n>=10;n/=10)e++;return void(NS?e>o.maxE?(i.e=NaN,i.d=null):e<o.minE?(i.e=0,i.d=[0]):(i.e=e,i.d=[t]):(i.e=e,i.d=[t]))}return 0*t!=0?(t||(i.s=NaN),i.e=NaN,void(i.d=null)):gE(i,t.toString())}if("string"!==r)throw Error(zS+t);return 45===(n=t.charCodeAt(0))?(t=t.slice(1),i.s=-1):(43===n&&(t=t.slice(1)),i.s=1),YS.test(t)?gE(i,t):mE(i,t)}if(o.prototype=ZS,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=PE,o.clone=t,o.isDecimal=WE,o.abs=xE,o.acos=SE,o.acosh=EE,o.add=OE,o.asin=TE,o.asinh=IE,o.atan=ME,o.atanh=LE,o.atan2=kE,o.cbrt=AE,o.ceil=RE,o.clamp=DE,o.cos=NE,o.cosh=BE,o.div=zE,o.exp=FE,o.floor=HE,o.hypot=jE,o.ln=GE,o.log=VE,o.log10=UE,o.log2=$E,o.max=YE,o.min=XE,o.mod=qE,o.mul=KE,o.pow=ZE,o.random=JE,o.round=QE,o.sign=tO,o.sin=eO,o.sinh=nO,o.sqrt=rO,o.sub=iO,o.sum=oO,o.tan=aO,o.tanh=sO,o.trunc=lO,void 0===e&&(e={}),e&&!0!==e.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<i.length;)e.hasOwnProperty(r=i[n++])||(e[r]=this[r]);return o.config(e),o}(PS);RS=new cO(RS),DS=new cO(DS);var hO=function(t){return"number"==typeof t?Number.isNaN(t):!t||("string"!=typeof t||Number.isNaN(Number(t)))},dO=function(t,e,n){return void 0===n&&(n=!1),(null==t?void 0:t.length)?t.reduce(function(t,r){var i=Yu(r,e),o=hO(i);if(n&&o)return t;var a=o?0:i;return t.push(new cO(a)),t},[]):[]},fO=function(t,e){var n=dO(t,e);return n.length?cO.sum.apply(cO,c([],u(n),!1)).toNumber():0},pO=function(t,e,n){var r=dO(e,n,!0);if(null==r?void 0:r.length)return cO[t].apply(cO,c([],u(r),!1)).toNumber()},vO=((uO={})[mC.SUM]=fO,uO[mC.MIN]=function(t,e){return pO("min",t,e)},uO[mC.MAX]=function(t,e){return pO("max",t,e)},uO[mC.AVG]=function(t,e){var n=dO(t,e);return(null==n?void 0:n.length)?cO.sum.apply(cO,c([],u(n),!1)).dividedBy(n.length).toNumber():0},uO),gO=function(t){return a(a({},null==t?void 0:t.colQuery),null==t?void 0:t.rowQuery)},mO=function(t,e){var n;if(t){var r=e.style,i=e.className,o=void 0===i?[]:i,a=e.visible;if(r&&Object.assign(t.style,r),o.length){var s=o.filter(Boolean);(n=t.classList).add.apply(n,c([],u(s),!1))}t.classList.toggle(tC,a),t.classList.toggle(eC,!a)}},yO=function(t,e){var n,r=null===(n=null==t?void 0:t.dataSet)||void 0===n?void 0:n.getFieldFormatter(e);return function(t,e){return n=r(t,e),i=Vv(n)&&Number.isNaN(n),o=""===n,Yv(n)||i||o?"-":n;var n,i,o}},bO=function(t,e){var n,r=e.data,i=e.field,o=e.valueField,a=e.useCompleteDataForFormatter,s=void 0===a||a,l=null===(n=null==t?void 0:t.dataSet)||void 0===n?void 0:n.getFieldName(i),u=yO(t,i),c=Ka(r[i])?JSON.stringify(r[i]):r[i];return{name:l,value:u(o||c,s?r:void 0)}},wO=function(t,e,n){return Rp(Cp(kd([],e),function(t){return t!==bo&&n[t]}),function(e){return bO(t,{data:n,field:e,useCompleteDataForFormatter:!1})})},CO=function(t,e,n){if(e){var r=n.isTotals,i=e[bo],o=e[i],a=[];if(r)a.push(bO(t,{data:e,field:i,valueField:Yu(e,yo)}));else if(function(t){return Ka(t)&&"values"in t}(o)&&t.getTooltipDataItemMappingCallback()){var s=gx(e,t.getTooltipDataItemMappingCallback());ep(s,function(e,n){a.push(bO(t,{data:s,field:n}))})}else a.push(bO(t,{data:e,field:i}));return a}},_O=function(t,e,n){void 0===n&&(n=!0);var r=[];return ep(e,function(e,i){ep(t,function(t){n||-1===t.colIndex?n&&-1!==t.rowIndex&&r.push([t.rowIndex,i]):r.push([i,t.colIndex])})}),r},xO=function(t,e,n){var r,i=null===(r=t.facet)||void 0===r?void 0:r.layoutResult,o=function(t){var n=null==e?void 0:e.getMeta(),r=null==n?void 0:n.isTotals,o=(null==e?void 0:e.cellType)===aa.COL_CELL,a=(null==e?void 0:e.cellType)===aa.ROW_CELL;if(!o&&!a)return!1;var s=i.colNodes.find(function(e){return e.colIndex===t.colIndex}),l=i.rowNodes.find(function(e){return e.rowIndex===t.rowIndex}),u=o?null==l?void 0:l.isTotals:null==s?void 0:s.isTotals;return!r&&(null==t?void 0:t.isTotals)||r&&u};if(n){var a=function(t,e){var n,r=e.rowLeafNodes,i=e.colLeafNodes,o=t.interaction.getState(),a=o.nodes,s=void 0===a?[]:a,l=o.cells,u=void 0===l?[]:l,c=null===(n=null==u?void 0:u[0])||void 0===n?void 0:n.type,h=s.filter(function(t){return null==t?void 0:t.isLeaf});return c===aa.COL_CELL?_O(h,r,!1):c===aa.ROW_CELL?_O(h,i):[]}(t,i);return Ld(Rp(a,function(t){var e=u(t,2),n=e[0],r=e[1],a=i.getCellMeta(n,r);if(!o(a))return(null==a?void 0:a.data)||gO(a)}))}return t.interaction.getCells().filter(function(t){var e=i.getCellMeta(t.rowIndex,t.colIndex);return!o(e)}).map(function(t){var e=i.getCellMeta(t.rowIndex,t.colIndex);return(null==e?void 0:e.data)||gO(e)})},SO=function(t){var e=t.spreadsheet,n=t.targetCell,r=t.options,i=void 0===r?{}:r,o=[],a={};if(e.isTableMode()&&(null==i?void 0:i.showSingleTips)){var s=n.getMeta();return[{selectedData:(null==s?void 0:s.field)?e.dataSet.getMultiData({field:s.field}):[e.dataSet.getRowData(s)],name:"",value:""}]}return ep(xO(e,n,i.showSingleTips),function(t){var e;a[null==t?void 0:t[bo]]?null===(e=a[null==t?void 0:t[bo]])||void 0===e||e.push(t):a[null==t?void 0:t[bo]]=[t]}),pg(a,function(t,n){var r,s=function(t,e,n){var r;if(n)return Zw("总计");var i=null===(r=null==t?void 0:t.dataSet)||void 0===r?void 0:r.getFieldName(e);return i&&"undefined"!==i?i:""}(e,n,null==i?void 0:i.isTotals),l="",u="";if(yp(t,function(t){return hO(Yu(t,yo))})){var c=e.options.placeholder,h=S_(a,c);l=h,u=h}else{var d=yO(e,n),f=fO(t,yo);u=f,l=null!==(r=null==d?void 0:d(f,t))&&void 0!==r?r:parseFloat(f.toPrecision(16))}o.push({selectedData:t,name:s,value:l,originValue:u})}),o},EO=function(t){var e=t.spreadsheet,n=t.cellInfos,r=void 0===n?[]:n,i=t.options,o=void 0===i?{}:i,a=t.targetCell,s=null,l=null,u=null,c=function(t){if(t){var e=t.getMeta();if(!e.isTotals){var n=Ep(e.spreadsheet.dataCfg.meta,{field:e.field||e.value||e.valueField}),r=null==n?void 0:n.field;return e.spreadsheet.dataSet.getFieldDescription(r)}}}(a),h=r[0]||{};if(null==o?void 0:o.hideSummary)if(o.showSingleTips){var d=yO(e,h.valueField)(h.value),f=o.enableFormat?e.dataSet.getFieldName(h.value)||d:e.dataSet.getFieldName(h.valueField);h.name=f||""}else l=function(t,e,n){var r,i,o,a,s=(n||{}).isTotals,l=[],u=[];if(e){var c=null===(i=null===(r=null==t?void 0:t.dataSet)||void 0===r?void 0:r.fields)||void 0===i?void 0:i.columns,h=null===(a=null===(o=null==t?void 0:t.dataSet)||void 0===o?void 0:o.fields)||void 0===a?void 0:a.rows;l=wO(t,$C(c||[]),e),u=wO(t,h,e)}return Hv(l)&&Hv(u)&&s&&(l=[{value:Zw("总计")}]),{cols:l,rows:u}}(e,h,o),u=CO(e,h,o);else s=SO({spreadsheet:e,options:o,targetCell:a});var p=h||{};return{summaries:s,interpretation:p.interpretation,infos:p.infos,tips:p.tips,name:p.name,headInfo:l,details:u,description:c}},OO=function(t){if(!t.interaction.isSelectedState())return[];var e=t.dataCfg.fields.valueInCols;return t.interaction.getCells().reduce(function(n,r){var i=t.facet.layoutResult.getCellMeta(null==r?void 0:r.rowIndex,null==r?void 0:r.colIndex),o=gO(i);if(Hv(i)||Hv(o))return[];var s=a(a({},o),{colIndex:e?i.colIndex:null,rowIndex:e?null:i.rowIndex});return n.find(function(t){return jv(s,t)})||n.push(s),n},[])},TO=function(t,e){var n;if(e&&t){var r=null===(n=t.getCellType)||void 0===n?void 0:n.call(t,null==e?void 0:e.target);return function(t,e){void 0===t&&(t={});var n=function(e){return dx(t,e)},r=t.col,i=t.row,o=t.data,s=t.corner;return e===aa.COL_CELL?n(r):e===aa.ROW_CELL?n(i):e===aa.DATA_CELL?n(o):e===aa.CORNER_CELL?n(s):a({},t)}(t.options.tooltip,r)}},IO=function(t,e){var n=e.defaultMenus,r=void 0===n?[]:n,i=e.cell,o=function(t){return void 0===t&&(t=[]),t.filter(function(t){var e;return as(t.visible)?t.visible(i):null===(e=t.visible)||void 0===e||e}).map(function(t){return t.children&&(t.children=o(t.children)),t})},a=o(t.menus);return{onClick:t.onClick,menus:Ld(c(c([],u(r),!1),u(a),!1))}},MO=function(){function t(t){var e=this;this.displayFormattedValueMap=new Map,this.getFieldMeta=zu(function(t,n){return Ep(e.meta||n,function(e){return e.field===t})}),this.spreadsheet=t}return t.prototype.getFieldName=function(t){var e=Yu(this.getFieldMeta(t,this.meta),"name",t);return XC(e)},t.prototype.getFieldFormatter=function(t){return Yu(this.getFieldMeta(t,this.meta),"formatter",os)},t.prototype.getFieldDescription=function(t){return Yu(this.getFieldMeta(t,this.meta),"description")},t.prototype.setDataCfg=function(t){this.getFieldMeta.cache.clear();var e=this.processDataCfg(t),n=e.fields,r=e.meta,i=e.data,o=e.totalData,a=e.sortParams,s=e.filterParams;this.fields=n,this.meta=r,this.originData=i,this.totalData=o,this.sortParams=a,this.filterParams=s,this.displayData=this.originData,this.indexesData={}},t.prototype.processMeta=function(t,e){var n,r;return void 0===t&&(t=[]),c(c([],u(t),!1),[P_(t,null===(r=null===(n=this.spreadsheet)||void 0===n?void 0:n.options)||void 0===r?void 0:r.cornerExtraFieldText,e)],!1)},t.prototype.getDisplayDataSet=function(){return this.displayData||[]},t.prototype.isEmpty=function(){return Hv(this.getDisplayDataSet())},t.prototype.getEmptyViewIndexes=function(){return[]},t.prototype.getValueRangeByField=function(t){var e,n,r,i=(n=this.spreadsheet,r=t,n.store.get(Qo,ta)[r]);if(i)return i;var o=Ld(Rp(this.originData,function(e){var n=e[t];return Yv(n)?null:Number.parseFloat(n)})),s={maxValue:mg(o),minValue:Tg(o)};return function(t,e){var n=t.store.get(Qo,ta);t.store.set(Qo,a(a({},n),e))}(this.spreadsheet,((e={})[t]=s,e)),s},t.prototype.moreThanOneValue=function(){var t,e;return(null===(e=null===(t=this.fields)||void 0===t?void 0:t.values)||void 0===e?void 0:e.length)>1},t}(),LO=function(){function t(t){this.extraField=t}return t.createProxyData=function(e,n){return new Proxy(e,new t(n))},t.createProxyDataList=function(e,n){return n.map(function(n){return t.createProxyData(e,n)})},t.prototype.get=function(t,e){return e===wo?t:e===bo?this.extraField:e===yo?t[this.extraField]:t[e]},t.prototype.has=function(t,e){return e===bo||e===yo||e in t},t.prototype.ownKeys=function(t){return Object.keys(t).concat(bo,yo)},t.prototype.getOwnPropertyDescriptor=function(t,e){return e===bo||e===yo?{configurable:!0,enumerable:!0}:Object.getOwnPropertyDescriptor(t,e)},t}(),kO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleDimensionValuesSort=function(){ep(e.sortParams,function(t){var n=t.sortFieldId,r=t.sortByMeasure;if(n){var i=c([],u(e.sortedDimensionValues[n]||[]),!1),o=function(t){var e,n=t.dataSet,r=t.sortParam,i=t.originValues;return e=t.isSortByMeasure?Kx(t):i,Xx({sortParam:r,originValues:i,measureValues:e,dataSet:n})}({dataSet:e,sortParam:t,originValues:i,isSortByMeasure:!Hv(r)});e.sortedDimensionValues[n]=o,e.handlePivotMetaSort(n,o)}})},e.getTotalStatus=function(t){var n=e.fields,r=n.columns,i=n.rows,o=function(e,n){if(n){var r=Ep(e,function(e){return!tv(t,e)});return r&&r!==kp(e)}return yp(e,function(e){return!tv(t,e)})},a=function(t,e){return e?t.filter(function(t){return t!==bo}):t};return{isRowTotal:o(a(i,!e.spreadsheet.isValueInCols())),isRowSubTotal:o(i,!0),isColTotal:o(a(r,e.spreadsheet.isValueInCols())),isColSubTotal:o(r,!0)}},e}return o(e,t),e.prototype.getExistValuesByDataItem=function(t,e){return L_(t,e)},e.prototype.setDataCfg=function(e){t.prototype.setDataCfg.call(this,e);var n=this.fields.rows;this.sortedDimensionValues={},this.rowPivotMeta=new Map,this.colPivotMeta=new Map,this.dimensionValuesCache=new Map,this.transformIndexesData(this.originData.concat(this.totalData),n),this.handleDimensionValuesSort()},e.prototype.transformIndexesData=function(t,e){var n,r=this,i=this.fields,o=i.columns,a=i.values,s=i.valueInCols;return dC.getInstance().debugCallback("Transform Data",function(){n=function(t){var e=t.rows,n=t.columns,r=t.values,i=t.valueInCols,o=t.data,a=void 0===o?[]:o,s=t.indexesData,u=void 0===s?{}:s,c=t.sortedDimensionValues,h=t.rowPivotMeta,d=t.colPivotMeta,f=t.getExistValuesByDataItem,p=[],v=new Set(pv(e,n)),g=function(t){var e=t.dimension,n=t.dimensionPath,r=t.careRepeated;(void 0===r||r)&&v.has(e)||(c[e]||(c[e]=[])).push(n)},m=A_(e,n);return a.forEach(function(t){var o,a,s,c;if(t&&!Hv(t)){var v=f?f(t,r):L_(t,r),y=k_(t,e,i?null:v),b=k_(t,n,i?v:null);try{for(var w=l(y),C=w.next();!C.done;C=w.next()){var _=C.value;try{for(var x=(s=void 0,l(b)),S=x.next();!S.done;S=x.next()){var E=R_({rowDimensionValues:_,colDimensionValues:S.value,rowPivotMeta:h,colPivotMeta:d,rowFields:e,colFields:n,isFirstCreate:!0,onFirstCreate:g,prefix:m});p.push(E),sy(u,E,t)}}catch(t){s={error:t}}finally{try{S&&!S.done&&(c=x.return)&&c.call(x)}finally{if(s)throw s.error}}}}catch(t){o={error:t}}finally{try{C&&!C.done&&(a=w.return)&&a.call(w)}finally{if(o)throw o.error}}}}),{paths:p,indexesData:u,rowPivotMeta:h,colPivotMeta:d,sortedDimensionValues:c}}({rows:e,columns:o,values:a,valueInCols:s,data:t,indexesData:r.indexesData,sortedDimensionValues:r.sortedDimensionValues,rowPivotMeta:r.rowPivotMeta,colPivotMeta:r.colPivotMeta,getExistValuesByDataItem:r.getExistValuesByDataItem}),r.indexesData=n.indexesData,r.rowPivotMeta=n.rowPivotMeta,r.colPivotMeta=n.colPivotMeta,r.sortedDimensionValues=n.sortedDimensionValues}),n},e.prototype.transformDrillDownData=function(t,e,n){var r,i=this,o=c(c([],u(lC.getFieldPath(n,!0)),!1),[t],!1),a=this.spreadsheet.store,s=null==n?void 0:n.id,l=null!==(r=a.get("drillDownIdPathMap"))&&void 0!==r?r:new Map;l.has(s)&&(ep(l.get(s),function(t){gb(i.indexesData,t)}),D_(this.rowPivotMeta,s));var h=this.transformIndexesData(e,o).paths;l.set(s,h),a.set("drillDownIdPathMap",l)},e.prototype.clearDrillDownData=function(t){var e=this,n=this.spreadsheet.store,r=n.get("drillDownIdPathMap");if(!r)return!1;var i=n.get("drillDownDataCache",[]);if(t){var o=r.get(t);o&&ep(o,function(t){gb(e.indexesData,t)}),D_(this.rowPivotMeta,t),r.delete(t);var a=Cp(i,function(t){return r.has(null==t?void 0:t.rowId)});n.set("drillDownDataCache",a);var s=a.map(function(t){return null==t?void 0:t.drillLevel}),l=n.get("drillDownFieldInLevel",[]).filter(function(t){return lv(s,null==t?void 0:t.drillLevel)});n.set("drillDownFieldInLevel",l)}else{r.clear();var u=this.spreadsheet.store.get("originalDataCfg");Hv(u)||this.spreadsheet.setDataCfg(u),this.spreadsheet.store.set("drillItemsNum",-1),this.spreadsheet.store.set("drillDownDataCache",[]),this.spreadsheet.store.set("drillDownFieldInLevel",[])}return n.set("drillDownIdPathMap",r),!0},e.prototype.handlePivotMetaSort=function(t,e){var n=this.fields,r=n.rows,i=n.columns;lv(r,t)?this.rowPivotMeta=Jx({pivotMeta:this.rowPivotMeta,dimensions:r,sortFieldId:t,sortedDimensionValues:e}):lv(i,t)&&(this.colPivotMeta=Jx({pivotMeta:this.colPivotMeta,dimensions:i,sortFieldId:t,sortedDimensionValues:e}))},e.prototype.processDataCfg=function(t){var e=t.data,n=t.meta,r=void 0===n?[]:n,i=t.fields,o=t.sortParams,s=void 0===o?[]:o,l=t.totalData,h=i.columns,d=i.rows,f=i.values,p=i.valueInCols,v=i.customValueOrder,g=h,m=d;return p?g=this.isCustomMeasuresPosition(v)?this.handleCustomMeasuresOrder(v,g):fb(c(c([],u(h),!1),[bo],!1)):m=this.isCustomMeasuresPosition(v)?this.handleCustomMeasuresOrder(v,m):fb(c(c([],u(d),!1),[bo],!1)),{data:e,totalData:l,meta:this.processMeta(r,Zw("数值")),fields:a(a({},i),{rows:m,columns:g,values:f}),sortParams:s}},e.prototype.getFieldsAndPivotMetaByField=function(t){var e=this.fields||{},n=e.rows,r=void 0===n?[]:n,i=e.columns,o=void 0===i?[]:i;return r.includes(t)?{dimensions:r,pivotMeta:this.rowPivotMeta}:o.includes(t)?{dimensions:o,pivotMeta:this.colPivotMeta}:{}},e.prototype.getDimensionValues=function(t,e){void 0===e&&(e={});var n=this.getFieldsAndPivotMetaByField(t),r=n.pivotMeta,i=n.dimensions;if(!r||!i)return[];var o=Hv(e);if(this.dimensionValuesCache.has(t)&&o)return this.dimensionValuesCache.get(t);var a=fb(B_({pivotMeta:r,dimensionValues:M_(e,i,xo),fields:i,fieldIdx:cv(i,t),queryType:iC.DetailOnly,sortedDimensionValues:this.sortedDimensionValues}).map(function(t){return t.value}));return o&&this.dimensionValuesCache.set(t,a),a},e.prototype.getTotalValue=function(t,e){var n,r=this.spreadsheet.options,i=function(t,e){var n=t.isRowTotal,r=t.isRowSubTotal,i=t.isColTotal,o=t.isColSubTotal,a=e||{},s=a.row,l=a.col,u=s||{},c=u.calcTotals,h=void 0===c?{}:c,d=u.calcSubTotals,f=void 0===d?{}:d,p=l||{},v=p.calcTotals,g=void 0===v?{}:v,m=p.calcSubTotals,y=void 0===m?{}:m,b=function(t,e){if((t.aggregation||t.calcFunc)&&e)return{aggregation:t.aggregation,calcFunc:t.calcFunc}};return b(g,i)||b(y,o)||b(h,n)||b(f,r)}(py(e)?e:this.getTotalStatus(t),null==r?void 0:r.totals)||{},o=i.aggregation,s=i.calcFunc,l=Hv(null==r?void 0:r.totals)&&!this.spreadsheet.isHierarchyTreeType()?mC.SUM:"",u=vO[o||l];if(u||s){var c=this.getMultiData(t,{queryType:iC.DetailOnly}),h=void 0;return s?h=s(t,c,this.spreadsheet):u&&(h=u(c,yo)),a(a({},t),((n={})[yo]=h,n[t[bo]]=h,n))}},e.prototype.getCellData=function(t){var e,n,r,i=t||{},o=i.query,a=void 0===o?{}:o,s=i.rowNode,l=i.isTotals,u=void 0!==l&&l,c=i.totalStatus,h=this.fields,d=h.rows,f=h.columns,p=d,v=null===(e=this.spreadsheet)||void 0===e?void 0:e.store.get("drillDownIdPathMap"),g=Array.from(null!==(n=null==v?void 0:v.keys())&&void 0!==n?n:[]).some(function(t){return null==s?void 0:s.id.startsWith(t)});s&&g&&(p=null!==(r=lC.getFieldPath(s,g))&&void 0!==r?r:d);var m=R_({rowDimensionValues:M_(a,p),colDimensionValues:M_(a,f),rowPivotMeta:this.rowPivotMeta,colPivotMeta:this.colPivotMeta,rowFields:p,colFields:f,prefix:A_(p,f)}),y=Yu(this.indexesData,m);return y?LO.createProxyData(y,a[bo]):u?this.getTotalValue(a,c):void 0},e.prototype.getQueryExtraFields=function(t){var e=this.fields.values,n=t[bo];return n?lv(e,n)?[n]:[]:e},e.prototype.getMultiData=function(t,e,n,r,i){var o,a,s,h;void 0===t&&(t={}),void 0===r&&(r=[]),void 0===i&&(i=!0),Hv(t);var d=Ka(e)?e:{queryType:i?iC.All:iC.DetailOnly,drillDownFields:r},f=d.drillDownFields,p=void 0===f?[]:f,v=d.queryType,g=void 0===v?iC.All:v,m=this.fields,y=m.rows,b=m.columns,w=Hv(p)?y:y.concat(p),C=function(t){var e=t.rowFields,n=t.rowDimensionValues,r=t.rowPivotMeta,i=t.colFields,o=t.colDimensionValues,a=t.colPivotMeta,s=t.queryType,l=t.sortedDimensionValues;return{rowQueries:z_({dimensionValues:n,pivotMeta:r,fields:e,sortedDimensionValues:l,queryType:s}),colQueries:z_({dimensionValues:o,pivotMeta:a,fields:i,sortedDimensionValues:l,queryType:s})}}({rowDimensionValues:M_(t,w,xo),colDimensionValues:M_(t,b,xo),rowPivotMeta:this.rowPivotMeta,colPivotMeta:this.colPivotMeta,rowFields:w,colFields:b,sortedDimensionValues:this.sortedDimensionValues,queryType:g}),_=C.rowQueries,x=C.colQueries,S=A_(w,b),E=[];try{for(var O=l(_),T=O.next();!T.done;T=O.next()){var I=T.value;try{for(var M=(s=void 0,l(x)),L=M.next();!L.done;L=M.next()){for(var k,A=R_({rowDimensionValues:I,colDimensionValues:L.value,rowPivotMeta:this.rowPivotMeta,colPivotMeta:this.colPivotMeta,rowFields:w,colFields:b,prefix:S}),R=!1,D=this.indexesData,P=function(t){var e=A[t];R?D=I_(e)?F_(D,g):Ld(Rp(D,function(t){return null==t?void 0:t[e]})):I_(e)?(R=!0,D=Ld([D]),t--):D=null==D?void 0:D[e],k=t},N=0;N<A.length;N++)P(N),N=k;Ha(D)?E.push.apply(E,c([],u(D),!1)):D&&E.push(D)}}catch(t){s={error:t}}finally{try{L&&!L.done&&(h=M.return)&&h.call(M)}finally{if(s)throw s.error}}}}catch(t){o={error:t}}finally{try{T&&!T.done&&(a=O.return)&&a.call(O)}finally{if(o)throw o.error}}var B=this.getQueryExtraFields(t);return Dp(fb(E),function(t){return t?LO.createProxyDataList(t,B):[]})},e.prototype.getFieldFormatter=function(e,n){return e===_o?this.getFieldFormatterForTotalValue(n):t.prototype.getFieldFormatter.call(this,e)},e.prototype.getFieldFormatterForTotalValue=function(e){var n;return!this.spreadsheet.isValueInCols()&&e&&(n=Yu(e.rowQuery,bo)),n=null!=n?n:Yu(this.fields.values,0),t.prototype.getFieldFormatter.call(this,n)},e.prototype.handleCustomMeasuresOrder=function(t,e){var n=fb(c([],u(e),!1));return e.length>=t?(n.splice(t,0,bo),n):c(c([],u(n),!1),[bo],!1)},e.prototype.isCustomMeasuresPosition=function(t){return Vv(t)},e.prototype.getRowData=function(t){return this.getMultiData(t.rowQuery)},e}(MO),AO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getCellData=function(t){var e=t.query,n=this.fields,r=n.rows,i=n.columns,o=R_({rowDimensionValues:M_(e,r),colDimensionValues:M_(e,i),rowPivotMeta:this.rowPivotMeta,colPivotMeta:this.colPivotMeta,rowFields:r,colFields:i,prefix:A_(r,i)}),a=Yu(this.indexesData,o);return a?LO.createProxyData(a,e[bo]):a},e.prototype.processDataCfg=function(t){var e=t.meta,n=this.processMeta(e,Zw("指标"));return a(a({},t),{meta:n,fields:a(a({},t.fields),{rows:[bo],valueInCols:!1})})},e}(kO),RO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleDimensionValueFilter=function(){ep(e.filterParams,function(t){var n=t.filterKey,r=t.filteredValues,i=t.customFilter,o=new Set(r),a=function(t){return!o.has(t[n])},s=Cp(e.displayData,function(t){return i?i(t)&&a(t):a(t)});e.displayData=e.getDisplayData(s)})},e.handleDimensionValuesSort=function(){ep(e.sortParams,function(t){var n,r=t.sortFieldId,i=t.sortBy,o=t.sortFunc,s=t.sortMethod,l=t.query;if(r){var h=e.displayData,d=[];if(l){var f=[];h.forEach(function(t){for(var e=Object.keys(l),n=!0,r=0;r<e.length;r++){var i=e[r];if(t[i]!==l[i]){n=!1,d.push(t);break}}n&&f.push(t)}),h=f}var p=h;if(o)p=o(a(a({},t),{data:h}));else if(i&&!as(i)){var v=c([],u(i),!1).reverse();p=h.sort(function(t,e){var n=v.indexOf(t[r]);return v.indexOf(e[r])-n})}else if(jx(s)||Wx(s)){var g=S_(e.spreadsheet,null===(n=e.spreadsheet.options)||void 0===n?void 0:n.placeholder);p=Gg(h,[(as(i)?i:null)||function(t){return t[r]===g?Number.MIN_VALUE:t[r]}],[s.toLocaleLowerCase()])}d.length&&(p=c(c([],u(p),!1),u(d),!1)),e.displayData=e.getDisplayData(p)}})},e}return o(e,t),e.prototype.processDataCfg=function(t){return t},e.prototype.setDataCfg=function(e){t.prototype.setDataCfg.call(this,e),this.handleDimensionValueFilter(),this.handleDimensionValuesSort()},e.prototype.getStartFrozenRows=function(t){var e=(this.spreadsheet.options||{}).frozenRowCount;return e?t.slice(0,e):[]},e.prototype.getEndFrozenRows=function(t){var e=(this.spreadsheet.options||{}).frozenTrailingRowCount;return e?t.slice(-e):[]},e.prototype.getDisplayData=function(t){var e=this.getStartFrozenRows(t),n=this.getEndFrozenRows(t),r=t.slice(e.length||0,-n.length||void 0);return c(c(c([],u(e),!1),u(r),!1),u(n),!1)},e.prototype.getDimensionValues=function(){return[]},e.prototype.getCellData=function(t){var e=t.query;if(0!==this.displayData.length||0!==e.rowIndex){var n=this.displayData[e.rowIndex];return tf(e,"field")&&Ka(n)?n[e.field]:n}},e.prototype.getMultiData=function(t){if(!t)return this.displayData;var e=this.displayData[t.rowIndex]?[this.displayData[t.rowIndex]]:this.displayData;return tf(t,"field")?e.map(function(e){return e[t.field]}):e},e.prototype.getRowData=function(t){return this.getCellData({query:{rowIndex:t.rowIndex}})},e}(MO);function DO(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function PO(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function NO(){}var BO=.7,zO=1/BO,FO="\\s*([+-]?\\d+)\\s*",HO="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",jO="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",WO=/^#([0-9a-f]{3,8})$/,GO=new RegExp("^rgb\\("+[FO,FO,FO]+"\\)$"),VO=new RegExp("^rgb\\("+[jO,jO,jO]+"\\)$"),$O=new RegExp("^rgba\\("+[FO,FO,FO,HO]+"\\)$"),UO=new RegExp("^rgba\\("+[jO,jO,jO,HO]+"\\)$"),YO=new RegExp("^hsl\\("+[HO,jO,jO]+"\\)$"),XO=new RegExp("^hsla\\("+[HO,jO,jO,HO]+"\\)$"),qO={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function KO(){return this.rgb().formatHex()}function ZO(){return this.rgb().formatRgb()}function JO(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=WO.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?QO(e):3===n?new nT(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?tT(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?tT(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=GO.exec(t))?new nT(e[1],e[2],e[3],1):(e=VO.exec(t))?new nT(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$O.exec(t))?tT(e[1],e[2],e[3],e[4]):(e=UO.exec(t))?tT(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=YO.exec(t))?aT(e[1],e[2]/100,e[3]/100,1):(e=XO.exec(t))?aT(e[1],e[2]/100,e[3]/100,e[4]):qO.hasOwnProperty(t)?QO(qO[t]):"transparent"===t?new nT(NaN,NaN,NaN,0):null}function QO(t){return new nT(t>>16&255,t>>8&255,255&t,1)}function tT(t,e,n,r){return r<=0&&(t=e=n=NaN),new nT(t,e,n,r)}function eT(t,e,n,r){return 1===arguments.length?((i=t)instanceof NO||(i=JO(i)),i?new nT((i=i.rgb()).r,i.g,i.b,i.opacity):new nT):new nT(t,e,n,null==r?1:r);var i}function nT(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function rT(){return"#"+oT(this.r)+oT(this.g)+oT(this.b)}function iT(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function oT(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function aT(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new lT(t,e,n,r)}function sT(t){if(t instanceof lT)return new lT(t.h,t.s,t.l,t.opacity);if(t instanceof NO||(t=JO(t)),!t)return new lT;if(t instanceof lT)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new lT(a,s,l,t.opacity)}function lT(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function uT(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function cT(t){return function(){return t}}function hT(t){return 1===(t=+t)?dT:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):cT(isNaN(e)?n:e)}}function dT(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):cT(isNaN(t)?e:t)}DO(NO,JO,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:KO,formatHex:KO,formatHsl:function(){return sT(this).formatHsl()},formatRgb:ZO,toString:ZO}),DO(nT,eT,PO(NO,{brighter:function(t){return t=null==t?zO:Math.pow(zO,t),new nT(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?BO:Math.pow(BO,t),new nT(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rT,formatHex:rT,formatRgb:iT,toString:iT})),DO(lT,function(t,e,n,r){return 1===arguments.length?sT(t):new lT(t,e,n,null==r?1:r)},PO(NO,{brighter:function(t){return t=null==t?zO:Math.pow(zO,t),new lT(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?BO:Math.pow(BO,t),new lT(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new nT(uT(t>=240?t-240:t+120,i,r),uT(t,i,r),uT(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var fT=function t(e){var n=hT(e);function r(t,e){var r=n((t=eT(t)).r,(e=eT(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=dT(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function pT(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function vT(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function gT(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=ST(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function mT(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function yT(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function bT(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=ST(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var wT,CT=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_T=new RegExp(CT.source,"g");function xT(t,e){var n,r,i,o=CT.lastIndex=_T.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=CT.exec(t))&&(r=_T.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:yT(n,r)})),o=_T.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function ST(t,e){var n,r=typeof e;return null==e||"boolean"===r?cT(e):("number"===r?yT:"string"===r?(n=JO(e))?(e=n,fT):xT:e instanceof JO?fT:e instanceof Date?mT:vT(e)?pT:Array.isArray(e)?gT:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?bT:yT)(t,e)}!function(t){t.ScrollChange="scroll-change",t.ScrollEnd="scroll-end"}(wT||(wT={}));var ET=function(t){function e(e){var n=t.call(this,e)||this;n.isMobile=!1,n.eventHandlers=[],n.scrollFrameId=null,n.getCoordinatesName=function(){return{from:n.isHorizontal?"x1":"y1",to:n.isHorizontal?"x2":"y2"}},n.getCoordinatesWithBBoxExtraPadding=function(){var t=n.theme.size,e=n.isHorizontal?0:t/2,r=n.isHorizontal?t:t/2;return{start:n.thumbOffset+e,end:n.thumbOffset+n.thumbLen-r}},n.current=function(){var t=n.thumbLen/n.trackLen;return n.thumbOffset/n.trackLen/(1-t)},n.updateThumbLen=function(t){if(n.thumbLen!==t){n.thumbLen=t;var e=n.getCoordinatesName();n.thumbShape.attr(e.to,n.thumbOffset+t),n.emitScrollChange(n.thumbOffset/(n.trackLen-n.thumbLen)*n.scrollTargetMaxOffset,!1)}},n.updateThumbOffset=function(t,e){var r;void 0===e&&(e=!0);var i=n.validateRange(t);if(!(n.thumbOffset===i&&0!==i)){n.thumbOffset=i;var o=n.getCoordinatesName(),a=o.from,s=o.to,l=n.getCoordinatesWithBBoxExtraPadding(),u=l.start,c=l.end;n.thumbShape.attr(((r={})[a]=u,r[s]=c,r)),e&&n.emitScrollChange(i/(n.trackLen-n.thumbLen)*n.scrollTargetMaxOffset,!1)}},n.onlyUpdateThumbOffset=function(t){var e;n.updateThumbOffset(t,!1),null===(e=n.get("canvas"))||void 0===e||e.draw()},n.emitScrollChange=function(t,e){void 0===e&&(e=!0),cancelAnimationFrame(n.scrollFrameId),n.scrollFrameId=requestAnimationFrame(function(){n.emit(wT.ScrollChange,{offset:t,updateThumbOffset:e})})},n.addEventListener=function(t,e,n){return null==t||t.addEventListener(e,n,!1),{remove:function(){null==t||t.removeEventListener(e,n,!1)}}},n.addEvent=function(t,e,r){t.on(e,r),n.eventHandlers.push({target:t,type:e,handler:r})},n.initScrollBar=function(){n.scrollBarGroup=n.createScrollBarGroup(),n.scrollBarGroup.move(n.position.x,n.position.y),n.bindEvents()},n.createScrollBarGroup=function(){var t=n.addGroup({className:n.isHorizontal?"horizontalBar":"verticalBar"});return n.trackShape=n.createTrackShape(t),n.thumbShape=n.createThumbShape(t),t},n.createTrackShape=function(t){var e=n.theme,r=e.lineCap,i=void 0===r?"round":r,o=e.trackColor,s=e.size,l={lineWidth:s,stroke:o,lineCap:i};return n.isHorizontal?t.addShape("line",{attrs:a(a({},l),{x1:0,y1:s/2,x2:n.trackLen,y2:s/2})}):t.addShape("line",{attrs:a(a({},l),{x1:s/2,y1:0,x2:s/2,y2:n.trackLen})})},n.createThumbShape=function(t){var e=n.theme,r=e.size,i=e.lineCap,o=void 0===i?"round":i,s={lineWidth:r,stroke:e.thumbColor,lineCap:o,cursor:"default"},l=n.getCoordinatesWithBBoxExtraPadding(),u=l.start,c=l.end;return n.isHorizontal?t.addShape("line",{attrs:a(a({},s),{x1:u,y1:r/2,x2:c,y2:r/2})}):t.addShape("line",{attrs:a(a({},s),{x1:r/2,y1:u,x2:r/2,y2:c})})},n.bindEvents=function(){n.on("mousedown",n.onStartEvent(!1)),n.on("mouseup",n.onMouseUp),n.on("touchstart",n.onStartEvent(!0)),n.on("touchend",n.onMouseUp),n.trackShape.on("click",n.onTrackClick),n.thumbShape.on("mouseover",n.onTrackMouseOver),n.thumbShape.on("mouseout",n.onTrackMouseOut)},n.onStartEvent=function(t){return function(e){e.preventDefault(),n.isMobile=t;var r=n.isMobile?Yu(e,"touches.0",e):e,i=r.clientX,o=r.clientY;n.startPos=n.isHorizontal?i:o,n.bindLaterEvent()}},n.bindLaterEvent=function(){var t=n.get("canvas"),e=document.body,r=[];n.isMobile?(r=[n.addEventListener(e,"touchmove",n.onMouseMove),n.addEventListener(e,"touchend",n.onMouseUp),n.addEventListener(e,"touchcancel",n.onMouseUp)],n.addEvent(t,"touchend",n.onMouseUp),n.addEvent(t,"touchcancel",n.onMouseUp)):(r=[n.addEventListener(e,"mousemove",n.onMouseMove),n.addEventListener(e,"mouseup",n.onMouseUp),n.addEventListener(e,"mouseleave",n.onMouseUp)],n.addEvent(t,"mouseup",n.onMouseUp)),n.clearEvents=function(){r.forEach(function(t){null==t||t.remove()}),ep(n.eventHandlers,function(t){var e;null===(e=t.target)||void 0===e||e.off(t.type,t.handler)}),n.eventHandlers.length=0}},n.onTrackClick=function(t){var e=n.isHorizontal?t.x-n.position.x-n.thumbLen/2:t.y-n.position.y-n.thumbLen/2,r=n.validateRange(e);n.updateThumbOffset(r)},n.onMouseMove=function(t){t.preventDefault();var e=n.isMobile?Yu(t,"touches.0",t):t,r=e.clientX,i=e.clientY,o=n.isHorizontal?r:i,a=o-n.startPos;n.startPos=o,n.updateThumbOffset(n.thumbOffset+a)},n.onMouseUp=function(t){var e;n.emit(wT.ScrollEnd,{}),t.preventDefault(),null===(e=n.clearEvents)||void 0===e||e.call(n)},n.onTrackMouseOver=function(){var t=n.theme,e=t.thumbHoverColor,r=t.hoverSize;n.thumbShape.attr("stroke",e),n.thumbShape.attr("lineWidth",r)},n.onTrackMouseOut=function(){var t=n.theme,e=t.thumbColor,r=t.size;n.thumbShape.attr("stroke",e),n.thumbShape.attr("lineWidth",r)},n.validateRange=function(t){var e=t;return t+n.thumbLen>n.trackLen?e=n.trackLen-n.thumbLen:t+n.thumbLen<n.thumbLen&&(e=0),e};var r=e.isHorizontal,i=void 0!==r&&r,o=e.trackLen,s=e.thumbLen,l=e.position,u=e.thumbOffset,c=void 0===u?0:u,h=e.theme,d=e.scrollTargetMaxOffset;return n.isHorizontal=i,n.thumbOffset=c,n.trackLen=o,n.thumbLen=s,n.position=l,n.theme=h,n.scrollTargetMaxOffset=d,n.initScrollBar(),n}return o(e,t),e}(ki),OT=function(t,e,n){if(n<=0)return{start:0,end:0};var r=Sp(t,function(n,r){return e>=n&&e<t[r+1]},0);r=Math.max(r,0);var i=n===e?r:Sp(t,function(e,r){return n>e&&n<=t[r+1]},r);return{start:r,end:i=Math.min(-1===i?1/0:i,t.length-2)}},TT=function(t,e){var n=e.width,r=e.originalWidth,i=Math.min(r-n,t);return i<0?0:i},IT=function(t,e,n){var r=Math.min(e-n,t);return r<0?0:r},MT=function(t,e){if(void 0===t&&(t=[]),Hv(t))return[];var n=[];return t.forEach(function(t){(t instanceof e&&n.push(t),t instanceof ki)&&t.getChildren().forEach(function(t){t instanceof e&&n.push(t)})}),n},LT=function(t,e,n){return n.slice(t,e+1).map(function(t){return t.x+t.width})},kT=function(t,e,n){for(var r=[],i=t;i<e+1;i++)r.push(n.getCellOffsetY(i+1));return r},AT=function(t,e,n){var r=u(n,4),i=r[0],o=r[1],a=r[2],s=r[3];return t>=i&&t<=o&&e>=a&&e<=s},RT=function(t){for(var e=u(t,4),n=e[0],r=e[1],i=e[2],o=e[3],a=[],s=n;s<=r;s+=1)for(var l=i;l<=o;l+=1)a.push([s,l]);return a},DT=function(t,e){var n=[],r=[];return Object.keys(e).forEach(function(i){var o=function(t,e){var n=[],r=[];if(Hv(t))return Hv(e)?{add:n,remove:r}:{add:RT(e),remove:r};if(Hv(e))return{add:n,remove:RT(t)};for(var i=u(t,4),o=i[0],a=i[1],s=i[2],l=i[3],c=u(e,4),h=c[0],d=c[1],f=c[2],p=c[3],v=o;v<=a;v++)for(var g=s;g<=l;g++)AT(v,g,e)||r.push([v,g]);for(v=h;v<=d;v+=1)for(g=f;g<=p;g+=1)AT(v,g,t)||n.push([v,g]);return{add:n,remove:r}}((null==t?void 0:t[i])||[],e[i]),a=o.add,s=o.remove;n.push.apply(n,c([],u(a),!1)),r.push.apply(r,c([],u(s),!1))}),{add:n,remove:r}},PT=function(t,e){void 0===e&&(e=!1),this.x=0,this.y=0,this.minX=0,this.minY=0,this.maxX=0,this.maxY=0,this.width=0,this.height=0,this.originalWidth=0,this.originalHeight=0,this.viewportHeight=0,this.viewportWidth=0,this.facet=t,this.spreadsheet=t.spreadsheet,this.layoutResult=t.layoutResult,e&&this.calculateBBox()},NT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.calculateBBox=function(){var t=this.getCornerBBoxWidth(),e=this.getCornerBBoxHeight();this.width=t,this.height=e,this.maxX=t,this.maxY=e},e.prototype.getCornerBBoxOriginalHeight=function(){var t=this.layoutResult.colsHierarchy,e=this.spreadsheet.options.style.colCfg;return t.sampleNodeForLastLevel?Math.floor(t.height):null==e?void 0:e.height},e.prototype.getCornerBBoxHeight=function(){return this.originalHeight=this.getCornerBBoxOriginalHeight(),this.originalHeight},e.prototype.getCornerBBoxWidth=function(){var t=this.layoutResult.rowsHierarchy;return this.originalWidth=Math.floor(t.width+this.facet.getSeriesNumberWidth()),this.spreadsheet.isScrollContainsRowHeader()?this.originalWidth:this.adjustCornerBBoxWidth()},e.prototype.adjustCornerBBoxWidth=function(){var t=this.layoutResult.colsHierarchy,e=this.spreadsheet.options.width,n=.5*e,r=null==t?void 0:t.width,i=e-this.originalWidth;if(this.originalWidth<=n||r<=i)return this.originalWidth;var o=0;return o=r<=e-n?this.originalWidth-(r-i):n,Math.floor(o)},e}(PT),BT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.calculateBBox=function(){this.originalWidth=this.facet.getRealWidth(),this.originalHeight=this.facet.getRealHeight();var t=this.facet.cornerBBox,e={x:Math.floor(t.maxX),y:Math.floor(t.maxY)},n=this.spreadsheet.theme.scrollBar.size,r=this.spreadsheet.options,i=r.width,o=r.height,a=Math.max(0,i-e.x),s=Math.max(0,o-e.y-n);this.x=e.x,this.y=e.y,this.width=a,this.height=s,this.viewportHeight=Math.abs(Math.floor(Math.min(s,this.originalHeight))),this.viewportWidth=Math.abs(Math.floor(Math.min(a,this.originalWidth))),this.maxX=e.x+this.viewportWidth,this.maxY=e.y+this.viewportHeight,this.minX=e.x,this.minY=e.y;var l=this.spreadsheet.options,u=l.frozenTrailingColCount,c=l.frozenTrailingRowCount;u>0&&(this.viewportWidth=this.width,this.maxX=e.x+this.width),c>0&&(this.viewportHeight=this.height,this.maxY=e.y+this.height)},e}(PT),zT=function(t){function e(e){var n=t.call(this,e)||this;return n.isHeaderCellInViewport=function(t,e,n,r){return t+e>=n&&n+r>=t},n.headerConfig=e,n}return o(e,t),e.prototype.getConfig=function(){return this.headerConfig},e.prototype.clearResizeAreaGroup=function(t){var e=this.get("parent"),n=null==e?void 0:e.findById(t);null==n||n.clear()},e.prototype.render=function(t){this.clearResizeAreaGroup(t),this.clear(),this.layout(),this.offset(),this.clip()},e.prototype.onScrollXY=function(t,e,n){this.headerConfig.scrollX=t,this.headerConfig.scrollY=e,this.render(n)},e.prototype.onRowScrollX=function(t,e){this.headerConfig.scrollX=t,this.render(e)},e.prototype.clear=function(){t.prototype.clear.call(this)},e}(ki),FT=function(t){function e(e){var n=t.call(this,e)||this;return n.scrollGroup=n.addGroup({name:"colScrollGroup",zIndex:3}),n}return o(e,t),e.prototype.onColScroll=function(t,e){this.headerConfig.scrollX!==t&&(this.headerConfig.scrollX=t,this.render(e))},e.prototype.clip=function(){var t=this.headerConfig,e=t.width,n=t.height,r=t.scrollX,i=t.spreadsheet.isFrozenRowHeader();this.scrollGroup.setClip({type:"rect",attrs:{x:i?r:0,y:0,width:i?e:e+r,height:n}})},e.prototype.clear=function(){var t,e;null===(t=this.scrollGroup)||void 0===t||t.clear(),null===(e=this.background)||void 0===e||e.remove(!0)},e.prototype.getCellInstance=function(t,e,n){return new tS(t,e,n)},e.prototype.getCellGroup=function(t){return this.scrollGroup},e.prototype.isColCellInRect=function(t){var e=this.headerConfig,n=e.spreadsheet,r=e.cornerWidth,i=e.width,o=e.scrollX;return i+o>t.x&&o-(n.isFrozenRowHeader()?0:r)<t.x+t.width},e.prototype.layout=function(){var t=this,e=this.headerConfig,n=e.data,r=e.spreadsheet,i=r.options.colCell;ep(n,function(e){var n=e;if(t.isColCellInRect(n)){var o=(null==i?void 0:i(n,r,t.headerConfig))||t.getCellInstance(n,r,t.headerConfig);n.belongsCell=o,t.getCellGroup(n).add(o)}})},e.prototype.offset=function(){var t=this.headerConfig,e=t.position,n=t.scrollX;jC(this.scrollGroup,e.x-n)},e}(zT),HT=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.getCornerHeader=function(t,n,r,i,o,a){var s=t.width,l=t.height,u=n.originalWidth,c=n.originalHeight,h=n.width,d=n.height;return new e({data:this.getCornerNodes({x:n.x,y:n.y},u,c,i.rows,i.columns,o.rowsHierarchy,o.colsHierarchy,i.dataSet,r,a),position:{x:n.x,y:n.y},width:h,height:d,originalHeight:c,originalWidth:u,viewportWidth:s,viewportHeight:l,hierarchyType:i.hierarchyType,hierarchyCollapse:i.hierarchyCollapse,rows:i.rows,columns:i.columns,seriesNumberWidth:r,spreadsheet:a})},e.getCornerNodes=function(t,e,n,r,i,o,a,s,l,u){var c,h,d,f=[],p=u.options.style.colCfg,v=null==a?void 0:a.sampleNodeForLastLevel,g=null!==(c=null==v?void 0:v.y)&&void 0!==c?c:0,m=null!==(d=null!==(h=null==v?void 0:v.height)&&void 0!==h?h:null==p?void 0:p.height)&&void 0!==d?d:0;if(l){var y=new lC({id:"",key:"series-number-node",value:Zw("序号")});y.x=null==t?void 0:t.x,y.y=g,y.width=l,y.height=m,y.isPivotMode=!0,y.spreadsheet=u,y.cornerType=yC.Series,f.push(y)}if(u.isHierarchyTreeType()){var b=this.getTreeCornerText(u),w=new lC({key:"",id:b,value:b});w.x=t.x+l,w.y=g,w.width=e-l,w.height=m,w.seriesNumberWidth=l,w.isPivotMode=!0,w.spreadsheet=u,w.cornerType=yC.Row,f.push(w)}else o.sampleNodesForAllLevels.forEach(function(t){var e=r[t.level],n=new lC({key:e,id:e,value:s.getFieldName(e)});n.x=t.x+l,n.y=g,n.width=t.width,n.height=m,n.field=e,n.isPivotMode=!0,n.cornerType=yC.Row,n.spreadsheet=u,f.push(n)});return a.sampleNodesForAllLevels.forEach(function(n){if(n.level<a.maxLevel){var r=i[n.level],o=new lC({key:r,id:r,value:s.getFieldName(r)});o.x=t.x,o.y=n.y,o.width=e,o.height=n.height,o.field=r,o.isPivotMode=!0,o.cornerType=yC.Col,o.spreadsheet=u,f.push(o)}}),f},e.getTreeCornerText=function(t){var e=t.dataSet.fields.rows,n=void 0===e?[]:e,r=t.options.cornerText;if(r)return r;var i=t.store.get("drillDownFieldInLevel",[]).map(function(t){return t.drillField}),o=n.filter(function(t){return!lv(i,t)}).map(function(e){return t.dataSet.getFieldName(e)}).join("/");return o},e.prototype.onCorScroll=function(t,e){this.headerConfig.scrollX=t,this.render(e)},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.layout=function(){this.renderCells()},e.prototype.renderCells=function(){var t,e,n,r,i=this,o=this.headerConfig,a=o.data,s=o.spreadsheet,l=null===(e=null===(t=null==s?void 0:s.facet)||void 0===t?void 0:t.cfg)||void 0===e?void 0:e.cornerHeader,u=null===(r=null===(n=null==s?void 0:s.facet)||void 0===n?void 0:n.cfg)||void 0===r?void 0:r.cornerCell;l?l(this,s,this.headerConfig):a.forEach(function(t){var e;u&&(e=u(t,i.headerConfig.spreadsheet,i.headerConfig)),Hv(e)&&(e=new eS(t,i.headerConfig.spreadsheet,i.headerConfig)),i.add(e)})},e.prototype.offset=function(){var t=this.headerConfig.scrollX;jC(this,-t)},e.prototype.clip=function(){var t=this.headerConfig,e=t.width,n=t.height,r=t.scrollX;this.setClip({type:"rect",attrs:{x:r,y:0,width:e,height:n}})},e.prototype.getNodes=function(){return this.headerConfig.data||[]},e}(zT),jT=function(t){function e(e){var n=t.call(this,e)||this;return n.render(),n}return o(e,t),e.prototype.layout=function(){this.addCornerBottomBorder(),this.addCornerRightBorder(),this.addSplitLineShadow()},e.prototype.render=function(){this.clear(),this.layout()},e.prototype.onBorderScroll=function(t){this.cfg.scrollX=t;var e=this.cfg.position;HC(this,e.x-t,0),this.render()},e.prototype.onChangeShadowVisibility=function(t,e){this.cfg.showViewportLeftShadow=t>0,this.cfg.showViewportRightShadow=Math.floor(t)<Math.floor(e),this.render()},e.prototype.addCornerRightBorder=function(){var t,e=this.cfg;if(e.isPivotMode){var n=e.width,r=e.height,i=e.viewportHeight,o=e.position,a=null===(t=e.spreadsheet.theme)||void 0===t?void 0:t.splitLine,s=o.x+n,l=o.y,u=o.y+r+i;this.addShape("line",{attrs:{x1:s,y1:l,x2:s,y2:u,stroke:a.verticalBorderColor,lineWidth:a.verticalBorderWidth,opacity:a.verticalBorderColorOpacity,lineDash:a.borderDash}})}},e.prototype.addCornerBottomBorder=function(){var t,e=this.cfg,n=e.width,r=e.height,i=e.viewportWidth,o=e.position,a=e.scrollX,s=e.scrollContainsRowHeader,l=null===(t=e.spreadsheet.theme)||void 0===t?void 0:t.splitLine,u=o.x,c=u+n+i+(s?a:0),h=o.y+r-1;this.addShape("line",{attrs:{x1:u,y1:h,x2:c,y2:h,stroke:l.horizontalBorderColor,lineWidth:l.horizontalBorderWidth,opacity:l.horizontalBorderColorOpacity,lineDash:l.borderDash}})},e.prototype.addSplitLineShadow=function(){var t,e=this.cfg,n=e.isPivotMode,r=e.spreadsheet,i=null===(t=r.theme)||void 0===t?void 0:t.splitLine;n&&i.showShadow&&r.isFrozenRowHeader()&&(this.addSplitLineLeftShadow(),this.addSplitLineRightShadow())},e.prototype.addSplitLineLeftShadow=function(){var t,e,n;if(this.cfg.showViewportLeftShadow){var r=this.cfg,i=r.width,o=r.height,a=r.viewportHeight,s=r.position,l=null===(t=r.spreadsheet.theme)||void 0===t?void 0:t.splitLine,u=s.x+i,c=s.y;this.addShape("rect",{attrs:{x:u,y:c,width:l.shadowWidth,height:a+o,fill:"l (0) 0:".concat(null===(e=l.shadowColors)||void 0===e?void 0:e.left," 1:").concat(null===(n=l.shadowColors)||void 0===n?void 0:n.right)}})}},e.prototype.addSplitLineRightShadow=function(){var t,e,n;if(this.cfg.showViewportRightShadow){var r=this.cfg,i=r.width,o=r.height,a=r.viewportHeight,s=r.viewportWidth,l=r.position,u=null===(t=r.spreadsheet.theme)||void 0===t?void 0:t.splitLine,c=l.x+i+s-u.shadowWidth,h=l.y;this.addShape("rect",{attrs:{x:c,y:h,width:u.shadowWidth,height:a+o,fill:"l (0) 0:".concat(null===(e=u.shadowColors)||void 0===e?void 0:e.right," 1:").concat(null===(n=u.shadowColors)||void 0===n?void 0:n.left)}})}},e}(ki),WT=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gm&&this.gm.destroy()},e.prototype.rowCellInRect=function(t){var e=this.headerConfig,n=e.width,r=e.viewportHeight,i=e.seriesNumberWidth,o=e.scrollY,a=e.scrollX;return r+o>t.y&&o<t.y+t.height&&n-i+a>t.x&&a-i<t.x+t.width},e.prototype.createCellInstance=function(t){return new wS(t,this.headerConfig.spreadsheet,this.headerConfig)},e.prototype.getCellGroup=function(t){return this},e.prototype.getCustomRowCell=function(){var t,e,n=this.headerConfig.spreadsheet;return null===(e=null===(t=null==n?void 0:n.facet)||void 0===t?void 0:t.cfg)||void 0===e?void 0:e.rowCell},e.prototype.layout=function(){var t=this,e=this.headerConfig,n=e.data,r=e.spreadsheet,i=this.getCustomRowCell();ep(n,function(e){if(t.rowCellInRect(e)&&0!==e.height){var n=void 0;i&&(n=i(e,r,t.headerConfig)),Hv(n)&&r.isPivotMode()&&(n=t.createCellInstance(e)),e.belongsCell=n,t.getCellGroup(e).add(n)}})},e.prototype.offset=function(){var t=this.headerConfig,e=t.scrollX,n=t.scrollY,r=t.position,i=t.seriesNumberWidth;HC(this,r.x-e+i,r.y-n)},e.prototype.clip=function(){var t=this.headerConfig,e=t.width,n=t.viewportHeight,r=t.scrollX,i=t.scrollY,o=t.seriesNumberWidth;this.setClip({type:"rect",attrs:{x:r-o,y:i,width:e,height:n}})},e}(zT),GT=function(t){function e(e){var n=t.call(this,e)||this;n.scrollGroup=n.addGroup({name:"rowScrollGroup",zIndex:3}),n.frozenHeadGroup=n.addGroup({name:"rowHeaderFrozenGroup",zIndex:4});var r=n.headerConfig,i=r.position,o=r.seriesNumberWidth;return HC(n.frozenHeadGroup,i.x+o,i.y),n}return o(e,t),e.prototype.rowCellInRectXDir=function(t){var e=this.headerConfig,n=e.width,r=e.scrollX,i=e.seriesNumberWidth,o=t.x+i;return n+r>o&&r<o+t.width},e.prototype.rowCellInRectYDir=function(t){var e=this.headerConfig,n=e.viewportHeight,r=e.scrollY,i=t.y-this.getFrozenFirstRowHeight();return n+r>i&&r<i+t.height},e.prototype.rowCellInRect=function(t){var e=this.rowCellInRectXDir(t);return this.isFrozenRow(t)?e:e&&this.rowCellInRectYDir(t)},e.prototype.getCellGroup=function(t){return this.isFrozenRow(t)?this.frozenHeadGroup:this.scrollGroup},e.prototype.offset=function(){var t=this.headerConfig,e=t.scrollX,n=t.scrollY,r=t.position,i=t.seriesNumberWidth,o=r.x-e+i;HC(this.scrollGroup,o,r.y-n),jC(this.frozenHeadGroup,o)},e.prototype.clip=function(){var t=this.headerConfig,e=t.width,n=t.viewportHeight,r=t.scrollX,i=t.scrollY,o=r-t.seriesNumberWidth;this.scrollGroup.setClip({type:"rect",attrs:{x:o,y:i+this.getFrozenFirstRowHeight(),width:e,height:n}}),this.frozenHeadGroup.setClip({type:"rect",attrs:{x:o,y:0,width:this.headerConfig.width,height:this.getFrozenFirstRowHeight()}})},e.prototype.isFrozenRow=function(t){var e,n=this.headerConfig.spreadsheet,r=n.facet,i=YC(n.options,null===(e=r.layoutResult)||void 0===e?void 0:e.rowNodes).frozenRowCount;return i>0&&t.rowIndex>=0&&t.rowIndex<i},e.prototype.getFrozenFirstRowHeight=function(){var t,e=this.headerConfig.spreadsheet,n=e.facet;return YC(e.options,null===(t=n.layoutResult)||void 0===t?void 0:t.rowNodes).frozenRowHeight},e.prototype.clear=function(){this.frozenHeadGroup.clear(),this.scrollGroup.clear()},e}(WT),VT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.getSeriesNumberHeader=function(t){var n,r=t.viewportBBox,i=t.seriesNumberWidth,o=t.leafNodes,a=t.spreadsheet,s=t.cornerWidth,l=r.height,u=r.viewportHeight,c=[],h=a.isHierarchyTreeType();o.forEach(function(t){var e=new lC({id:"",key:"",value:"".concat(c.length+1)});e.x=t.x,e.y=t.y,e.height=h?t.getTotalHeightForTreeHierarchy():t.height,e.width=i,e.rowIndex=t.rowIndex,e.spreadsheet=a,e.isLeaf=!0,c.push(e)});var d=a.facet,f=YC(a.options,null===(n=d.layoutResult)||void 0===n?void 0:n.rowNodes),p=f.frozenRowCount,v=f.frozenRowHeight;return new e({width:s,height:l,viewportWidth:s,viewportHeight:!!p?u-v:u,position:{x:0,y:r.y},data:c,spreadsheet:a,seriesNumberWidth:0,hierarchyType:a.options.hierarchyType,linkFields:[]})},e.prototype.createCellInstance=function(t){var e=this.isFrozenRow(t);return new CS(t,this.headerConfig.spreadsheet,a(a({},this.headerConfig),{scrollY:e?0:this.headerConfig.scrollY}),e)},e.prototype.getCustomRowCell=function(){return null},e}(GT),$T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.createCellInstance=function(t){var e=this.headerConfig,n=e.spreadsheet,r=e.scrollY,i=this.isFrozenRow(t);return new wS(t,n,a(a({},this.headerConfig),{scrollY:i?0:r}),i)},e}(GT),UT=function(){function t(t){var e=this;this.scrollFrameId=null,this.hideScrollBar=function(){var t,n,r;null===(t=e.hRowScrollBar)||void 0===t||t.hide(),null===(n=e.hScrollBar)||void 0===n||n.hide(),null===(r=e.vScrollBar)||void 0===r||r.hide()},this.delayHideScrollBar=Sf(this.hideScrollBar,1e3),this.delayHideScrollbarOnMobile=function(){oC()&&e.delayHideScrollBar()},this.showVerticalScrollBar=function(){var t;null===(t=e.vScrollBar)||void 0===t||t.show()},this.showHorizontalScrollBar=function(){var t,n;null===(t=e.hRowScrollBar)||void 0===t||t.show(),null===(n=e.hScrollBar)||void 0===n||n.show()},this.onContainerWheelForMobileCompatibility=function(){var t,n,r=e.spreadsheet.getCanvasElement();r.addEventListener("touchstart",function(e){t=e.touches[0].clientY}),r.addEventListener("touchend",function(r){(n=r.changedTouches[0].clientY)<t?e.scrollDirection=ga.SCROLL_UP:n>t&&(e.scrollDirection=ga.SCROLL_DOWN)})},this.onContainerWheel=function(){e.onContainerWheelForPc(),e.onContainerWheelForMobile()},this.getMobileWheelDeltaY=function(t){return e.scrollDirection===ga.SCROLL_UP?Math.max(0,t):e.scrollDirection===ga.SCROLL_DOWN?Math.min(0,t):t},this.onContainerWheelForPc=function(){var t=e.spreadsheet.getCanvasElement();null==t||t.addEventListener("wheel",e.onWheel)},this.onContainerWheelForMobile=function(){e.mobileWheel=new mS(e.spreadsheet.container),e.mobileWheel.on("wheel",function(t){e.spreadsheet.hideTooltip();var n=t.event,r=t.deltaX,i=t.deltaY,o=t.x,s=t.y,l=e.getMobileWheelDeltaY(i);e.onWheel(a(a({},n),{deltaX:r,deltaY:l,offsetX:o,offsetY:s}))}),e.onContainerWheelForMobileCompatibility()},this.bindEvents=function(){e.onContainerWheel(),e.emitPaginationEvent()},this.setScrollOffset=function(t){Object.keys(t).forEach(function(n){var r=t[n];Qv(r)||e.spreadsheet.store.set(n,Math.floor(r))})},this.getScrollOffset=function(){var t=e.spreadsheet.store;return{scrollX:t.get("scrollX",0),scrollY:t.get("scrollY",0),rowHeaderScrollX:t.get("rowHeaderScrollX",0)}},this.emitPaginationEvent=function(){var t=e.cfg.pagination;if(t){var n=t.current,r=void 0===n?1:n,i=t.pageSize,o=e.viewCellHeights.getTotalLength(),a=Math.floor((o-1)/i)+1;e.cfg.spreadsheet.emit(go.LAYOUT_PAGINATION,{pageSize:i,pageCount:a,total:o,current:r})}},this.unbindEvents=function(){var t=e.spreadsheet.getCanvasElement();null==t||t.removeEventListener("wheel",e.onWheel),e.mobileWheel.destroy()},this.clipPanelGroup=function(){var t;e.foregroundGroup=e.spreadsheet.foregroundGroup,e.backgroundGroup=e.spreadsheet.backgroundGroup,e.panelGroup=e.spreadsheet.panelGroup;var n=e.panelBBox,r=n.width,i=n.height;null===(t=e.spreadsheet.panelScrollGroup)||void 0===t||t.setClip({type:"rect",attrs:{x:0,y:e.cornerBBox.height,width:r,height:i}})},this.calculateCellWidthHeight=function(){var t=Zm(e.layoutResult.colLeafNodes,function(t,e){return t.push(Yf(t)+e.width),t},[0]);e.viewCellWidths=t,e.viewCellHeights=e.getViewCellHeights(e.layoutResult)},this.getRealScrollX=function(t,n){return void 0===n&&(n=0),e.cfg.spreadsheet.isScrollContainsRowHeader()?t:n},this.calculatePanelBBox=function(){e.panelBBox=new BT(e,!0)},this.getRealWidth=function(){return Yf(e.viewCellWidths)},this.getRealHeight=function(){var t=e.cfg.pagination,n=e.viewCellHeights;if(t){var r=e.getCellRange(),i=r.start,o=r.end;return n.getCellOffsetY(o+1)-n.getCellOffsetY(i)}return n.getTotalHeight()},this.clearAllGroup=function(){for(var t=e.panelGroup.getChildren()||[],n=t.length-1;n>=0;n--){var r=t[n];r instanceof ki?r.set("children",[]):t[n].remove()}e.foregroundGroup.set("children",[]),e.backgroundGroup.set("children",[])},this.scrollWithAnimation=function(t,n,r){var i,o,a,s;void 0===t&&(t={}),void 0===n&&(n=200);var l=e.getAdjustedScrollOffset({scrollX:(null===(i=t.offsetX)||void 0===i?void 0:i.value)||0,scrollY:(null===(o=t.offsetY)||void 0===o?void 0:o.value)||0,rowHeaderScrollX:(null===(a=t.rowHeaderOffsetX)||void 0===a?void 0:a.value)||0}),c=l.scrollX,h=l.scrollY,d=l.rowHeaderScrollX;null===(s=e.timer)||void 0===s||s.stop();var f,p,v=e.getScrollOffset(),g=[null!=c?c:v.scrollX,null!=h?h:v.scrollY,null!=d?d:v.rowHeaderScrollX],m=(f=Object.values(v),(vT(p=g)?pT:gT)(f,p));e.timer=de(function(t){try{var i=Math.min(t/n,1),o=u(m(i),3),a=o[0],s=o[1],l=o[2];e.setScrollOffset({rowHeaderScrollX:l,scrollX:a,scrollY:s}),e.startScroll(),t>n&&(e.timer.stop(),null==r||r())}catch(t){e.timer.stop()}})},this.scrollImmediately=function(t){var n,r,i;void 0===t&&(t={});var o=e.getAdjustedScrollOffset({scrollX:(null===(n=t.offsetX)||void 0===n?void 0:n.value)||0,scrollY:(null===(r=t.offsetY)||void 0===r?void 0:r.value)||0,rowHeaderScrollX:(null===(i=t.rowHeaderOffsetX)||void 0===i?void 0:i.value)||0}),a=o.scrollX,s=o.scrollY,l=o.rowHeaderScrollX;e.setScrollOffset({scrollX:a,scrollY:s,rowHeaderScrollX:l}),e.startScroll()},this.startScroll=function(t){var n,r,i;void 0===t&&(t=!1);var o=e.getScrollOffset(),a=o.rowHeaderScrollX,s=o.scrollX,l=o.scrollY;null===(n=e.hRowScrollBar)||void 0===n||n.onlyUpdateThumbOffset(e.getScrollBarOffset(a,e.hRowScrollBar)),null===(r=e.hScrollBar)||void 0===r||r.onlyUpdateThumbOffset(e.getScrollBarOffset(s,e.hScrollBar)),null===(i=e.vScrollBar)||void 0===i||i.onlyUpdateThumbOffset(e.getScrollBarOffset(l,e.vScrollBar)),e.dynamicRenderCell(t)},this.getRendererHeight=function(){var t=e.getCellRange(),n=t.start,r=t.end;return e.viewCellHeights.getCellOffsetY(r+1)-e.viewCellHeights.getCellOffsetY(n)},this.getAdjustedScrollOffset=function(t){var n=t.scrollX,r=t.scrollY,i=t.rowHeaderScrollX;return{scrollX:IT(n,e.layoutResult.colsHierarchy.width,e.panelBBox.width),scrollY:IT(r,e.getRendererHeight(),e.panelBBox.height),rowHeaderScrollX:TT(i,e.cornerBBox)}},this.renderRowScrollBar=function(t){if(!e.cfg.spreadsheet.isScrollContainsRowHeader()&&e.cornerBBox.width<e.cornerBBox.originalWidth){var n=e.cornerBBox.originalWidth-e.cornerBBox.width,r=e.getScrollbarPosition().maxY,i=e.spreadsheet.theme,o=i.splitLine,a=i.scrollBar,s=Math.max(e.cornerBBox.width*e.cornerBBox.width/e.cornerBBox.originalWidth,null==a?void 0:a.thumbHorizontalMinSize),l=s-(null==o?void 0:o.verticalBorderWidth);e.hRowScrollBar=new ET({isHorizontal:!0,trackLen:e.cornerBBox.width,thumbLen:l,position:{x:e.cornerBBox.minX+e.scrollBarSize/2,y:r},thumbOffset:t*(e.cornerBBox.width-s)/n,theme:e.scrollBarTheme,scrollTargetMaxOffset:n}),e.hRowScrollBar.on(wT.ScrollChange,function(t){var r,i,o=t.offset,a=e.getValidScrollBarOffset(o,n),s=Math.floor(a);e.setScrollOffset({rowHeaderScrollX:s}),null===(r=e.rowHeader)||void 0===r||r.onRowScrollX(s,Po),null===(i=e.rowIndexHeader)||void 0===i||i.onRowScrollX(s,zo),e.cornerHeader.onRowScrollX(s,Fo);var l=e.getScrollBarOffset(s,e.hRowScrollBar),u=e.getScrollOffset(),c={scrollX:u.scrollX,scrollY:u.scrollY,rowHeaderScrollX:l};e.hRowScrollBar.updateThumbOffset(l,!1),e.spreadsheet.emit(go.ROW_CELL_SCROLL,c),e.spreadsheet.emit(go.GLOBAL_SCROLL,c)}),e.foregroundGroup.add(e.hRowScrollBar)}},this.getValidScrollBarOffset=function(t,e){return Ih(t,0,e)},this.renderHScrollBar=function(t,n,r){if(Math.floor(t)<Math.floor(n)){var i=e.scrollBarSize/2,o=e.getScrollbarPosition().maxY,a=t+(e.cfg.spreadsheet.isScrollContainsRowHeader()?Math.min(e.cornerBBox.width,e.getCanvasHW().width):0),s={x:e.panelBBox.minX+(e.cfg.spreadsheet.isScrollContainsRowHeader()?-e.cornerBBox.width+i:i),y:o},l=n+(e.cfg.spreadsheet.isScrollContainsRowHeader()?e.cornerBBox.width:0),u=e.spreadsheet.theme.scrollBar,c=l-a,h=Math.max(a/l*a,null==u?void 0:u.thumbHorizontalMinSize);e.hScrollBar=new ET({isHorizontal:!0,trackLen:a,thumbLen:h,position:s,thumbOffset:r*(a-h)/c,theme:e.scrollBarTheme,scrollTargetMaxOffset:c}),e.hScrollBar.on(wT.ScrollChange,function(t){var n=t.offset,r=t.updateThumbOffset,i=e.getValidScrollBarOffset(n,c);r&&e.hScrollBar.updateThumbOffset(e.getScrollBarOffset(i,e.hScrollBar),!1),e.setScrollOffset({scrollX:i}),e.dynamicRenderCell()}),e.foregroundGroup.add(e.hScrollBar)}},this.getScrollbarPosition=function(){var t=e.panelBBox,n=t.maxX,r=t.maxY,i=e.getCanvasHW(),o=i.width,a=i.height,s=e.spreadsheet.options.interaction.scrollbarPosition===va.CONTENT;return{maxX:(s?n:o)-e.scrollBarSize,maxY:s?r:a-e.scrollBarSize}},this.renderVScrollBar=function(t,n,r){if(t<n){var i=e.spreadsheet.theme.scrollBar,o=Math.max(t/n*t,null==i?void 0:i.thumbVerticalMinSize),a=n-t,s=e.getScrollbarPosition().maxX;e.vScrollBar=new ET({isHorizontal:!1,trackLen:t,thumbLen:o,thumbOffset:r*(t-o)/a,position:{x:s,y:e.panelBBox.minY},theme:e.scrollBarTheme,scrollTargetMaxOffset:a}),e.vScrollBar.on(wT.ScrollChange,function(t){var n=t.offset,r=t.updateThumbOffset,i=e.getValidScrollBarOffset(n,a);r&&e.vScrollBar.updateThumbOffset(e.getScrollBarOffset(i,e.vScrollBar),!1),e.setScrollOffset({scrollY:i}),e.dynamicRenderCell()}),e.foregroundGroup.add(e.vScrollBar)}},this.getScrollBarOffset=function(t,e){return t*(e.trackLen-e.thumbLen)/e.scrollTargetMaxOffset},this.isScrollOverThePanelArea=function(t){var n=t.offsetX,r=t.offsetY;return n>e.panelBBox.minX&&n<e.panelBBox.maxX&&r>e.panelBBox.minY&&r<e.panelBBox.maxY},this.isScrollOverTheCornerArea=function(t){var n=t.offsetX,r=t.offsetY;return n>e.cornerBBox.minX&&n<e.cornerBBox.maxX&&r>e.cornerBBox.minY&&r<e.cornerBBox.maxY+e.panelBBox.height},this.updateHorizontalRowScrollOffset=function(t){var n,r=t.offset,i=t.offsetX,o=t.offsetY;e.isScrollOverTheCornerArea({offsetX:i,offsetY:o})&&(null===(n=e.hRowScrollBar)||void 0===n||n.emitScrollChange(r))},this.updateHorizontalScrollOffset=function(t){var n,r=t.offset,i=t.offsetX,o=t.offsetY;e.hRowScrollBar&&!e.isScrollOverThePanelArea({offsetX:i,offsetY:o})||null===(n=e.hScrollBar)||void 0===n||n.emitScrollChange(r)},this.isScrollToLeft=function(t){var n=t.deltaX,r=t.offsetX,i=t.offsetY;if(!e.hScrollBar&&!e.hRowScrollBar)return!0;var o=!e.hRowScrollBar||e.isScrollOverThePanelArea({offsetY:i,offsetX:r})||e.hRowScrollBar.thumbOffset<=0,a=!e.hScrollBar||e.hScrollBar.thumbOffset<=0;return n<=0&&a&&o},this.isScrollToRight=function(t){var n,r,i,o,a,s,l=t.deltaX,u=t.offsetX,c=t.offsetY;if(!e.hScrollBar&&!e.hRowScrollBar)return!0;var h=e.spreadsheet.isFrozenRowHeader()?null===(n=e.panelBBox)||void 0===n?void 0:n.width:null===(r=e.panelBBox)||void 0===r?void 0:r.maxX,d=!e.hRowScrollBar||e.isScrollOverThePanelArea({offsetY:c,offsetX:u})||(null===(i=e.hRowScrollBar)||void 0===i?void 0:i.thumbOffset)+(null===(o=e.hRowScrollBar)||void 0===o?void 0:o.thumbLen)>=e.cornerBBox.width,f=e.hRowScrollBar&&e.isScrollOverTheCornerArea({offsetX:u,offsetY:c})||(null===(a=e.hScrollBar)||void 0===a?void 0:a.thumbOffset)+(null===(s=e.hScrollBar)||void 0===s?void 0:s.thumbLen)>=h;return l>=0&&f&&d},this.isScrollToTop=function(t){var n;return!e.vScrollBar||t<=0&&(null===(n=e.vScrollBar)||void 0===n?void 0:n.thumbOffset)<=0},this.isScrollToBottom=function(t){var n,r,i;return!e.vScrollBar||t>=0&&(null===(n=e.vScrollBar)||void 0===n?void 0:n.thumbOffset)+(null===(r=e.vScrollBar)||void 0===r?void 0:r.thumbLen)>=(null===(i=e.panelBBox)||void 0===i?void 0:i.height)},this.isVerticalScrollOverTheViewport=function(t){return!e.isScrollToTop(t)&&!e.isScrollToBottom(t)},this.isHorizontalScrollOverTheViewport=function(t){return!e.isScrollToLeft(t)&&!e.isScrollToRight(t)},this.isScrollOverTheViewport=function(t){var n=t.deltaY,r=t.deltaX;return!(t.offsetY<=e.cornerBBox.maxY)&&(0!==n?e.isVerticalScrollOverTheViewport(n):0!==r&&e.isHorizontalScrollOverTheViewport(t))},this.cancelScrollFrame=function(){return(!oC()||!e.scrollFrameId)&&(cancelAnimationFrame(e.scrollFrameId),!0)},this.clearScrollFrameIdOnMobile=function(){oC()&&(e.scrollFrameId=null)},this.stopScrollChainingIfNeeded=function(t){"auto"!==e.spreadsheet.options.interaction.overscrollBehavior&&(e.cancelScrollFrame(),e.stopScrollChaining(t))},this.stopScrollChaining=function(t){var e,n;(null==t?void 0:t.cancelable)&&(null===(e=null==t?void 0:t.preventDefault)||void 0===e||e.call(t));var r=null==t?void 0:t.originalEvent;(null==r?void 0:r.cancelable)&&(null===(n=null==r?void 0:r.preventDefault)||void 0===n||n.call(r))},this.onWheel=function(t){var n=e.spreadsheet.options.interaction,r=t.deltaX,i=t.deltaY,o=t.offsetX,a=t.offsetY;t.shiftKey&&aC()&&(o=o-r+i,r=i,a-=i,i=0);var s=u(function(t,e,n){var r=Math.abs(t/e),i=r>2?0:e;return[(r<=.5?0:t)*n.horizontal,i*n.vertical]}(r,i,n.scrollSpeedRatio),2),l=s[0],c=s[1];e.spreadsheet.hideTooltip(),e.spreadsheet.interaction.clearHoverTimer(),e.isScrollOverTheViewport({deltaX:l,deltaY:c,offsetX:o,offsetY:a})?(e.stopScrollChaining(t),e.spreadsheet.interaction.addIntercepts([ha.HOVER]),e.cancelScrollFrame()&&(e.scrollFrameId=requestAnimationFrame(function(){var t,n=e.getScrollOffset(),r=n.scrollX,i=n.scrollY,s=n.rowHeaderScrollX;0!==l&&(e.showHorizontalScrollBar(),e.updateHorizontalRowScrollOffset({offsetX:o,offsetY:a,offset:l+s}),e.updateHorizontalScrollOffset({offsetX:o,offsetY:a,offset:l+r})),0!==c&&(e.showVerticalScrollBar(),null===(t=e.vScrollBar)||void 0===t||t.emitScrollChange(c+i)),e.delayHideScrollbarOnMobile(),e.clearScrollFrameIdOnMobile()}))):e.stopScrollChainingIfNeeded(t)},this.addCell=function(t){var n=e.spreadsheet.panelScrollGroup;null==n||n.add(t)},this.realCellRender=function(t,n){var r=e.calculateXYIndexes(t,n);dC.getInstance().logger("renderIndex:",e.preCellIndexes,r);var i=DT(e.preCellIndexes,r),o=i.add,a=i.remove;dC.getInstance().debugCallback("Data Cell Render",function(){ep(o,function(t){var n=u(t,2),r=n[0],i=n[1],o=e.layoutResult.getCellMeta(i,r);if(o){var a=e.cfg.dataCell(o);a.set("name","".concat(r,"-").concat(i)),e.addCell(a)}});var t=MT(e.panelGroup.getChildren(),Cx);ep(a,function(e){var n=u(e,2),r=n[0],i=n[1],o=Ep(t,function(t){return t.get("name")==="".concat(r,"-").concat(i)});null==o||o.remove(!0)}),dC.getInstance().logger("Render Cell Panel: ".concat(null==t?void 0:t.length,", Add: ").concat(null==o?void 0:o.length,", Remove: ").concat(null==a?void 0:a.length))}),e.preCellIndexes=r,e.spreadsheet.emit(go.LAYOUT_AFTER_REAL_DATA_CELL_RENDER,{add:o,remove:a,spreadsheet:e.spreadsheet})},this.getGridInfo=function(){var t=u(e.preCellIndexes.center,4),n=t[0],r=t[1],i=t[2],o=t[3];return{cols:LT(n,r,e.layoutResult.colLeafNodes),rows:kT(i,o,e.viewCellHeights)}},this.onAfterScroll=Sf(function(){var t=e.spreadsheet,n=t.interaction,r=t.container;if(!n.isSelectedState()&&(n.removeIntercepts([ha.HOVER]),n.getHoverAfterScroll())){var i=n.eventController.canvasMousemoveEvent;if(i){var o=i.x,s=i.y,l=r.getShape(o,s);l&&r.emit(vo.MOUSE_MOVE,a(a({},i),{shape:l,target:l,timestamp:performance.now()}))}}},300),this.cfg=t,this.spreadsheet=t.spreadsheet,this.init()}return Object.defineProperty(t.prototype,"scrollBarTheme",{get:function(){return this.spreadsheet.theme.scrollBar},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollBarSize",{get:function(){return this.scrollBarTheme.size},enumerable:!1,configurable:!0}),t.prototype.getCellCustomWidth=function(t,e){return as(e)?null==e?void 0:e(t):e},t.prototype.getCellDraggedWidth=function(t){var e=this.cfg.colCfg;return Yu(null==e?void 0:e.widthByFieldValue,"".concat(t.value))},t.prototype.render=function(){var t;Hv((t=this.spreadsheet.dataCfg.fields).rows)&&Hv(t.columns)&&Hv(t.values)&&Hv(t.customTreeItems)||(this.adjustScrollOffset(),this.renderHeaders(),this.renderScrollBars(),this.renderBackground(),this.dynamicRenderCell(!0))},t.prototype.adjustScrollOffset=function(){var t=this.getAdjustedScrollOffset(this.getScrollOffset());this.setScrollOffset(t)},t.prototype.getSeriesNumberWidth=function(){return this.cfg.showSeriesNumber?this.spreadsheet.theme.rowCell.seriesNumberWidth:0},t.prototype.getCanvasHW=function(){return{width:this.cfg.width,height:this.cfg.height}},t.prototype.updateScrollOffset=function(t){var e,n,r,i,o,a;void 0===(null===(e=t.rowHeaderOffsetX)||void 0===e?void 0:e.value)?void 0===(null===(r=t.offsetX)||void 0===r?void 0:r.value)?void 0!==(null===(o=t.offsetY)||void 0===o?void 0:o.value)&&((null===(a=t.offsetY)||void 0===a?void 0:a.animate)?this.scrollWithAnimation(t):this.scrollImmediately(t)):(null===(i=t.offsetX)||void 0===i?void 0:i.animate)?this.scrollWithAnimation(t):this.scrollImmediately(t):(null===(n=t.rowHeaderOffsetX)||void 0===n?void 0:n.animate)?this.scrollWithAnimation(t):this.scrollImmediately(t)},t.prototype.getPaginationScrollY=function(){var t=this.cfg.pagination;if(t){var e=t.current,n=void 0===e?1:e,r=t.pageSize,i=this.viewCellHeights,o=Math.max((n-1)*r,0);return i.getCellOffsetY(o)}return 0},t.prototype.destroy=function(){this.unbindEvents(),this.clearAllGroup(),this.preCellIndexes=null,cancelAnimationFrame(this.scrollFrameId)},t.prototype.calculateXYIndexes=function(t,e){var n=this.panelBBox,r=n.viewportHeight,i=n.viewportWidth;return{center:FC(t,e,this.viewCellWidths,this.viewCellHeights,{width:i,height:r,x:0,y:0},this.getRealScrollX(this.cornerBBox.width))}},t.prototype.calculateCornerBBox=function(){this.cornerBBox=new NT(this,!0)},t.prototype.getCellRange=function(){var t=this.cfg.pagination;return function(t,e){var n=t,r=0,i=n.getTotalLength()-1;if(e){var o=e.current,a=void 0===o?1:o,s=e.pageSize;r=Math.max((a-1)*s,0),i=Math.min(a*s-1,n.getTotalLength()-1)}return{start:r,end:i}}(this.viewCellHeights,t)},t.prototype.panelScrollGroupClip=function(t,e){var n,r=this.spreadsheet.isFrozenRowHeader();null===(n=this.spreadsheet.panelScrollGroup)||void 0===n||n.setClip({type:"rect",attrs:{x:r?t:0,y:e,width:this.panelBBox.width+(r?0:t),height:this.panelBBox.height}})},t.prototype.clip=function(t,e){this.panelScrollGroupClip(t,e)},t.prototype.translateRelatedGroups=function(t,e,n){var r,i,o,a,s,l;HC(this.spreadsheet.panelScrollGroup,this.cornerBBox.width-t,this.cornerBBox.height-e),null===(r=this.rowHeader)||void 0===r||r.onScrollXY(this.getRealScrollX(t,n),e,Po),null===(i=this.rowIndexHeader)||void 0===i||i.onScrollXY(this.getRealScrollX(t,n),e,zo),null===(o=this.cornerHeader)||void 0===o||o.onCorScroll(this.getRealScrollX(t,n),Fo),null===(a=this.centerFrame)||void 0===a||a.onChangeShadowVisibility(t,this.getRealWidth()-this.panelBBox.width),null===(s=this.centerFrame)||void 0===s||s.onBorderScroll(this.getRealScrollX(t)),null===(l=this.columnHeader)||void 0===l||l.onColScroll(t,Ho)},t.prototype.init=function(){var t=this;dC.getInstance().debugCallback("Header Layout",function(){t.layoutResult=t.doLayout(),t.saveInitColumnLeafNodes(t.layoutResult.colLeafNodes),t.spreadsheet.emit(go.LAYOUT_AFTER_HEADER_LAYOUT,t.layoutResult)}),this.calculateCellWidthHeight(),this.calculateCornerBBox(),this.calculatePanelBBox(),this.clipPanelGroup(),this.bindEvents()},t.prototype.renderBackground=function(){var t=this.getCanvasHW(),e=t.width,n=t.height,r=this.spreadsheet.theme.background,i=r.color,o=r.opacity;this.backgroundGroup.addShape("rect",{attrs:{fill:i,opacity:o,x:0,y:0,width:e,height:n}})},t.prototype.renderScrollBars=function(){var t=this.getScrollOffset(),e=t.scrollX,n=t.scrollY,r=t.rowHeaderScrollX,i=this.panelBBox,o=i.width,a=i.height,s=this.layoutResult.colsHierarchy.width,l=this.getRealHeight();this.renderRowScrollBar(r),this.renderHScrollBar(o,s,e),this.renderVScrollBar(a,l,n)},t.prototype.renderHeaders=function(){var t=this.getSeriesNumberWidth();this.rowHeader=this.getRowHeader(),this.columnHeader=this.getColHeader(),t>0&&!this.rowIndexHeader&&(this.rowIndexHeader=this.getSeriesNumberHeader()),this.cornerHeader=this.getCornerHeader(),this.centerFrame=this.getCenterFrame(),this.rowIndexHeader&&this.foregroundGroup.add(this.rowIndexHeader),this.rowHeader&&this.foregroundGroup.add(this.rowHeader),this.foregroundGroup.add(this.columnHeader),this.foregroundGroup.add(this.cornerHeader),this.foregroundGroup.add(this.centerFrame)},t.prototype.getRowHeaderCfg=function(){var t,e,n,r=this.panelBBox,i=r.y,o=r.viewportHeight,a=r.viewportWidth,s=r.height,l=this.getSeriesNumberWidth();return{width:this.cornerBBox.width,height:s,viewportWidth:a,viewportHeight:o,position:{x:0,y:i},data:this.layoutResult.rowNodes,hierarchyType:this.cfg.hierarchyType,linkFields:null!==(n=null===(e=null===(t=this.cfg.spreadsheet.options)||void 0===t?void 0:t.interaction)||void 0===e?void 0:e.linkFields)&&void 0!==n?n:[],seriesNumberWidth:l,spreadsheet:this.spreadsheet}},t.prototype.getRowHeader=function(){return this.rowHeader?this.rowHeader:new WT(this.getRowHeaderCfg())},t.prototype.getColHeader=function(){if(!this.columnHeader){var t=this.panelBBox,e=t.x,n=t.width,r=t.viewportHeight,i=t.viewportWidth;return new FT({width:n,cornerWidth:this.cornerBBox.width,height:this.cornerBBox.height,viewportWidth:i,viewportHeight:r,position:{x:e,y:0},data:this.layoutResult.colNodes,scrollContainsRowHeader:this.cfg.spreadsheet.isScrollContainsRowHeader(),sortParam:this.cfg.spreadsheet.store.get("sortParam"),spreadsheet:this.spreadsheet})}return this.columnHeader},t.prototype.getCornerHeader=function(){return this.cornerHeader?this.cornerHeader:HT.getCornerHeader(this.panelBBox,this.cornerBBox,this.getSeriesNumberWidth(),this.cfg,this.layoutResult,this.spreadsheet)},t.prototype.getSeriesNumberHeader=function(){return VT.getSeriesNumberHeader({viewportBBox:this.panelBBox,seriesNumberWidth:this.getSeriesNumberWidth(),leafNodes:this.layoutResult.rowsHierarchy.getNodes(0),spreadsheet:this.spreadsheet,cornerWidth:this.cornerBBox.width})},t.prototype.getCenterFrame=function(){var t;if(!this.centerFrame){var e=this.panelBBox,n=e.viewportWidth,r=e.viewportHeight,i=this.cornerBBox.width,o=this.cornerBBox.height,a=null===(t=this.cfg)||void 0===t?void 0:t.frame,s={position:{x:this.cornerBBox.x,y:this.cornerBBox.y},width:i,height:o,viewportWidth:n,viewportHeight:r,showViewportLeftShadow:!1,showViewportRightShadow:!1,scrollContainsRowHeader:this.cfg.spreadsheet.isScrollContainsRowHeader(),isPivotMode:this.cfg.spreadsheet.isPivotMode(),spreadsheet:this.cfg.spreadsheet};return a?a(s):new jT(s)}return this.centerFrame},t.prototype.updatePanelScrollGroup=function(){this.gridInfo=this.getGridInfo(),this.spreadsheet.panelScrollGroup.update(this.gridInfo)},t.prototype.dynamicRenderCell=function(t){var e=this.getScrollOffset(),n=e.scrollX,r=e.scrollY,i=e.rowHeaderScrollX,o=r+this.getPaginationScrollY(),a=IT(o,this.viewCellHeights.getTotalHeight(),this.panelBBox.viewportHeight);this.spreadsheet.hideTooltip(),this.spreadsheet.interaction.clearHoverTimer(),this.realCellRender(n,a),this.updatePanelScrollGroup(),this.translateRelatedGroups(n,a,i),this.clip(n,a),t||this.emitScrollEvent({scrollX:n,scrollY:a,rowHeaderScrollX:i}),this.onAfterScroll()},t.prototype.emitScrollEvent=function(t){this.spreadsheet.emit(go.LAYOUT_CELL_SCROLL,t),this.spreadsheet.emit(go.GLOBAL_SCROLL,t)},t.prototype.saveInitColumnLeafNodes=function(t){void 0===t&&(t=[]);var e=this.spreadsheet,n=e.store,r=e.options.interaction.hiddenColumnFields;t.length+r.length!==n.get("initColumnLeafNodes",[]).length&&n.set("initColumnLeafNodes",t)},t.prototype.getHiddenColumnsInfo=function(t){var e=this.spreadsheet.store.get("hiddenColumnsDetail",[]);return Hv(e)?null:e.find(function(e){var n;return null===(n=null==e?void 0:e.hideColumnNodes)||void 0===n?void 0:n.some(function(e){return e.id===t.id})})},t.prototype.getCornerNodes=function(){var t;return(null===(t=this.cornerHeader)||void 0===t?void 0:t.getNodes())||[]},t}(),YT=function(t){function e(e){var n,r=t.call(this,e)||this;return r.frozenGroupInfo=((n={})[qo.FROZEN_COL]={width:0},n[qo.FROZEN_ROW]={height:0},n[qo.FROZEN_TRAILING_ROW]={height:0},n[qo.FROZEN_TRAILING_COL]={width:0},n),r.panelScrollGroupIndexes=[],r.initFrozenGroupPosition=function(){var t=r.getScrollOffset(),e=t.scrollY,n=t.scrollX,i=r.getPaginationScrollY();HC(r.spreadsheet.frozenRowGroup,r.cornerBBox.width-n,r.cornerBBox.height-i),HC(r.spreadsheet.frozenColGroup,r.cornerBBox.width,r.cornerBBox.height-e-i),HC(r.spreadsheet.frozenTrailingColGroup,r.cornerBBox.width,r.cornerBBox.height-e-i),HC(r.spreadsheet.frozenTopGroup,r.cornerBBox.width,r.cornerBBox.height-i)},r.addCell=function(t){var e=r.getBizRevisedFrozenOptions(),n=e.frozenRowCount,i=e.frozenColCount,o=e.frozenTrailingRowCount,a=e.frozenTrailingColCount,s=r.layoutResult.colsHierarchy.getLeaves().length,l=r.getCellRange(),u=r.getRealFrozenColumns(i,a),c=u.colCount,h=u.trailingColCount,d=function(t,e,n,r){var i=e.frozenColCount,o=e.frozenRowCount,a=e.frozenTrailingColCount,s=e.frozenTrailingRowCount,l=t.colIndex,u=t.rowIndex;return BC(u,r.start,o)?Xo.ROW:zC(u,r.end,s)?Xo.TRAILING_ROW:PC(l,i)?Xo.COL:NC(l,a,n)?Xo.TRAILING_COL:Xo.SCROLL}(t.getMeta(),{frozenRowCount:n,frozenColCount:c,frozenTrailingRowCount:o,frozenTrailingColCount:h},s,l),f=sa[d];f&&r.spreadsheet[f]&&r.spreadsheet[f].add(t)},r.renderFrozenGroupSplitLine=function(t,e){var n,i,o,s=r.panelBBox,l=s.width,u=s.height,c=s.viewportWidth,h=s.viewportHeight,d=r.cornerBBox.height,f=r.layoutResult.colNodes.filter(function(t){return VC(t)}),p=r.getCellRange(),v=p.end-p.start,g=KC(r.getBizRevisedFrozenOptions(),f.length,v),m=g.frozenRowCount,y=void 0===m?0:m,b=g.frozenColCount,w=void 0===b?0:b,C=g.frozenTrailingColCount,_=void 0===C?0:C,x=g.frozenTrailingRowCount,S=void 0===x?0:x,E=Math.floor(e-r.getPaginationScrollY()),O=Math.max(0,(null!==(n=Yf(r.viewCellWidths))&&void 0!==n?n:0)-c),T=Math.max(0,r.viewCellHeights.getCellOffsetY(p.end+1)-r.viewCellHeights.getCellOffsetY(p.start)-h);null===(i=r.foregroundGroup.findById(Bo))||void 0===i||i.remove();var I,M,L,k,A=Yu(r.cfg,"spreadsheet.theme.splitLine"),R=r.foregroundGroup.addGroup({id:Bo,zIndex:4}),D={lineWidth:null==A?void 0:A.verticalBorderWidth,stroke:null==A?void 0:A.verticalBorderColor,opacity:null==A?void 0:A.verticalBorderColorOpacity,lineDash:null==A?void 0:A.borderDash},P={lineWidth:null==A?void 0:A.horizontalBorderWidth,stroke:null==A?void 0:A.horizontalBorderColor,opacity:null==A?void 0:A.horizontalBorderColorOpacity,lineDash:null==A?void 0:A.borderDash};w>0&&(i_(R,{x1:I=f.reduce(function(t,e,n){return n<w?t+e.width:t},0),x2:I,y1:d,y2:d+(M=S>0?u:h)},a({},D)),A.showShadow&&t>0&&R.addShape("rect",{attrs:{x:I,y:d,width:A.shadowWidth,height:M,fill:r.getShadowFill(0)}}));y>0&&(i_(R,{x1:0,x2:k=_>0?l:c,y1:L=d+r.getTotalHeightForRange(p.start,p.start+y-1),y2:L},a({},P)),A.showShadow&&E>0&&R.addShape("rect",{attrs:{x:0,y:L,width:k,height:A.shadowWidth,fill:r.getShadowFill(90)}}));_>0&&(i_(R,{x1:I=f[f.length-_].x,x2:I,y1:d,y2:d+(M=S?u:h)},a({},D)),A.showShadow&&Math.floor(t)<Math.floor(O)&&R.addShape("rect",{attrs:{x:I-(null!==(o=A.shadowWidth)&&void 0!==o?o:0),y:d,width:A.shadowWidth,height:M,fill:r.getShadowFill(180)}}));S>0&&(i_(R,{x1:0,x2:k=_>0?l:c,y1:L=r.panelBBox.maxY-r.getTotalHeightForRange(p.end-S+1,p.end),y2:L},a({},P)),A.showShadow&&E<Math.floor(T)&&R.addShape("rect",{attrs:{x:0,y:L-A.shadowWidth,width:k,height:A.shadowWidth,fill:r.getShadowFill(270)}}));r.foregroundGroup.sort()},r.getRealFrozenColumns=function(t,e){var n,i=t,o=e;if(t||e){var a=r.layoutResult.colsHierarchy.getNodes();a=a.filter(function(t){return VC(t)}),i=(n=WC(a,t,e)).colCount,o=n.trailingColCount}return{colCount:i,trailingColCount:o}},r.getTotalHeightForRange=function(t,e){if(t<0||e<0)return 0;if(r.rowOffsets)return r.rowOffsets[e+1]-r.rowOffsets[t];for(var n=0,i=t;i<e+1;i++){n+=r.getDefaultCellHeight()}return n},r.getShadowFill=function(t){var e,n,i=Yu(r.cfg,"spreadsheet.theme.splitLine");return"l (".concat(t,") 0:").concat(null===(e=i.shadowColors)||void 0===e?void 0:e.left," 1:").concat(null===(n=i.shadowColors)||void 0===n?void 0:n.right)},r}return o(e,t),e.prototype.calculateFrozenGroupInfo=function(){var t=this.getFrozenOptionsDirectly(),e=t.frozenColCount,n=t.frozenRowCount,r=t.frozenTrailingColCount,i=t.frozenTrailingRowCount,o=this.layoutResult.colNodes.filter(function(t){return VC(t)}),a=this.viewCellHeights,s=this.getCellRange(),l=this.frozenGroupInfo,u=l.frozenCol,c=l.frozenTrailingCol,h=l.frozenRow,d=l.frozenTrailingRow;e>0&&(u.width=o[e-1].x+o[e-1].width-0,u.range=[0,e-1]),n>0&&(h.height=a.getCellOffsetY(s.start+n)-a.getCellOffsetY(s.start),h.range=[s.start,s.start+n-1]),r>0&&(c.width=o[o.length-1].x-o[o.length-r].x+o[o.length-1].width,c.range=[o.length-r,o.length-1]),i>0&&(d.height=a.getCellOffsetY(s.end+1)-a.getCellOffsetY(s.end+1-i),d.range=[s.end-i+1,s.end])},e.prototype.calculateXYIndexes=function(t,e){var n,r,i,o=this.layoutResult.colLeafNodes.length,a=this.getCellRange(),s=this.panelBBox,l=s.viewportHeight,h=s.viewportWidth,d=this.getFrozenOptionsDirectly(),f=d.frozenColCount,p=void 0===f?0:f,v=d.frozenRowCount,g=void 0===v?0:v,m=d.frozenTrailingColCount,y=void 0===m?0:m,b=d.frozenTrailingRowCount,w=void 0===b?0:b,C={width:h,height:l,x:0,y:0};if(y>0||p>0){var _=this.frozenGroupInfo,x=_.frozenTrailingCol,S=_.frozenCol;C.width-=x.width+S.width,C.x+=null!==(n=S.width)&&void 0!==n?n:0}if(w>0||g>0){var E=this.frozenGroupInfo,O=E.frozenRow,T=E.frozenTrailingRow;C.height<O.height+T.height?(C.height=0,C.y=0):(C.height-=O.height+T.height,C.y+=O.height)}var I=this.spreadsheet.isTableMode()&&(null===(i=null===(r=this.spreadsheet.dataSet)||void 0===r?void 0:r.isEmpty)||void 0===i?void 0:i.call(r))?this.spreadsheet.dataSet.getEmptyViewIndexes():FC(t,e,this.viewCellWidths,this.viewCellHeights,C,this.getRealScrollX(this.cornerBBox.width));this.panelScrollGroupIndexes=I;var M=this.getRealFrozenColumns(p,y);return function(t,e,n,r){var i=e.frozenColCount,o=e.frozenRowCount,a=e.frozenTrailingColCount,s=e.frozenTrailingRowCount,l=c([],u(t),!1);PC(l[0],i)&&(l[0]=i),NC(l[1],a,n)&&(l[1]=n-a-1),BC(l[2],r.start,o)&&(l[2]=r.start+o),zC(l[3],r.end,s)&&(l[3]=r.end-s);var h=c([],u(l),!1);h[2]=r.start,h[3]=r.start+o-1;var d=c([],u(l),!1);d[0]=0,d[1]=i-1;var f=c([],u(l),!1);f[2]=r.end+1-s,f[3]=r.end;var p=c([],u(l),!1);return p[0]=n-a,p[1]=n-1,{center:l,frozenRow:h,frozenCol:d,frozenTrailingCol:p,frozenTrailingRow:f}}(I,{frozenColCount:M.colCount,frozenRowCount:g,frozenTrailingColCount:M.trailingColCount,frozenTrailingRowCount:w},o,a)},e.prototype.updateFrozenGroupGrid=function(){var t=this;[qo.FROZEN_COL,qo.FROZEN_ROW,qo.FROZEN_TRAILING_COL,qo.FROZEN_TRAILING_ROW].forEach(function(e){if(t.frozenGroupInfo[e].range){var n=[],r=[];if(e.toLowerCase().includes("row")){var i=u(t.frozenGroupInfo[e].range,2),o=i[0],a=i[1];if(n=t.gridInfo.cols,r=kT(o,a,t.viewCellHeights),e===qo.FROZEN_TRAILING_ROW){var s=t.spreadsheet.frozenTrailingRowGroup.getBBox().minY;r=function(t,e,n,r){var i=kT(t,e,r),o=r.getCellOffsetY(t);return i.map(function(t){return t-o+n})}(o,a,Math.ceil(s),t.viewCellHeights)}}else{var l=u(t.frozenGroupInfo[e].range,2),c=l[0],h=l[1],d=t.layoutResult.colNodes.filter(function(t){return VC(t)});n=LT(c,h,d),r=t.gridInfo.rows}t.spreadsheet["".concat(e,"Group")].updateGrid({cols:n,rows:r},"".concat(e,"Group"))}})},e.prototype.updatePanelScrollGroup=function(){t.prototype.updatePanelScrollGroup.call(this),this.updateFrozenGroupGrid()},e.prototype.translateRelatedGroups=function(e,n,r){var i=this,o=this.spreadsheet,a=o.frozenColGroup,s=o.frozenTrailingColGroup;[o.frozenRowGroup,o.frozenTrailingRowGroup].forEach(function(t){jC(t,i.cornerBBox.width-e)}),[a,s].forEach(function(t){!function(t,e){var n,r=null==t?void 0:t.getMatrix(),i=null!==(n=null==r?void 0:r[7])&&void 0!==n?n:0;null==t||t.translate(0,e-i)}(t,i.cornerBBox.height-n)}),t.prototype.translateRelatedGroups.call(this,e,n,r),this.updateRowResizeArea(),this.renderFrozenGroupSplitLine(e,n)},e.prototype.updateRowResizeArea=function(){},e.prototype.clip=function(t,e){var n,r,i,o,s=this.getPaginationScrollY(),l=this.spreadsheet,u=l.frozenRowGroup,c=l.frozenColGroup,h=l.frozenTrailingColGroup,d=l.frozenTrailingRowGroup,f=l.panelScrollGroup,p=0,v=0,g=0;c&&(p=c.getBBox().width),u&&(v=u.getBBox().height),h&&(o=h.getBBox()),d&&(g=d.getBBox().height);var m=this.panelBBox.width-p-(null!==(n=null==o?void 0:o.width)&&void 0!==n?n:0),y=this.panelBBox.height-v-g;f.setClip({type:"rect",attrs:{x:t+p,y:e+v,width:m,height:y}}),u.setClip({type:"rect",attrs:{x:t+p,y:s,width:m,height:v}}),null==d||d.setClip({type:"rect",attrs:{x:t+p,y:d.getBBox().minY,width:m,height:g}});var b={y:e+v,height:y};null==c||c.setClip({type:"rect",attrs:a(a({},b),{x:0,width:p})}),null==h||h.setClip({type:"rect",attrs:a(a({},b),{x:null!==(r=null==o?void 0:o.minX)&&void 0!==r?r:0,width:null!==(i=null==o?void 0:o.width)&&void 0!==i?i:0})})},e.prototype.init=function(){t.prototype.init.call(this)},e.prototype.render=function(){this.calculateFrozenGroupInfo(),t.prototype.render.call(this),this.initFrozenGroupPosition()},e.prototype.getFrozenOptionsDirectly=function(){var t=this.layoutResult.colLeafNodes.length,e=this.getCellRange();return KC(this.getBizRevisedFrozenOptions(),t,e.end-e.start+1)},e.prototype.getBizRevisedFrozenOptions=function(){var t=this.cfg;return{frozenColCount:t.frozenColCount,frozenRowCount:t.frozenRowCount,frozenTrailingColCount:t.frozenTrailingColCount,frozenTrailingRowCount:t.frozenTrailingRowCount}},e.prototype.getDefaultCellHeight=function(){var t,e=this.cfg.cellCfg;return null!==(t=null==e?void 0:e.height)&&void 0!==t?t:0},e}(UT),XT=function(t){var e,n,r,i=t.facetCfg,o=t.customTreeItems,a=void 0===o?[]:o,u=t.level,c=t.parentNode,h=t.hierarchy,d=i.spreadsheet,f=i.collapsedRows,p=i.hierarchyCollapse;try{for(var v=l(a),g=v.next();!g.done;g=v.next()){var m=g.value,y=m.key,b=m.title,w=m.collapsed,C=m.children,_=s(m,["key","title","collapsed","children"]),x=((r={})[bo]=y,r),S=AC(c.id,b),E=null!=w&&w,O=Yu(f,S),T=null!=O?O:p||E,I=new lC({id:S,key:y,label:b,value:b,level:u,parent:c,field:y,isTotals:!1,isCollapsed:T,hierarchy:h,query:x,spreadsheet:d,extra:_});u>h.maxLevel&&(h.maxLevel=u),Hv(C)&&(I.isLeaf=!0);var M=OC(i,c,I,h);Hv(C)||T||!M||XT({facetCfg:i,parentNode:I,level:u+1,hierarchy:h,customTreeItems:C})}}catch(t){e={error:t}}finally{try{g&&!g.done&&(n=v.return)&&n.call(v)}finally{if(e)throw e.error}}},qT=function(t){var e,n,r,i,o,s,h=t.parentNode,d=t.currentField,f=t.level,p=t.facetCfg,v=t.hierarchy,g=t.pivotMeta,m=p.spreadsheet,y=p.collapsedRows,b=p.hierarchyCollapse,w=p.rowExpandDepth,C=h.query,_=h.id,x=(null===(i=m.dataCfg.fields.rows)||void 0===i?void 0:i.length)<=f,S=function(t){return void 0===t&&(t=[]),t.filter(function(t){return t!==_o&&t!==Oo})}(Array.from(g.keys())),E=EC(S,p,h,d),O=m.store.get("drillItemsNum");x&&O>0&&(E=E.slice(0,O)),0===f&&function(t,e,n){var r=t.getTotalsConfig(e);r.showGrandTotals&&n[r.reverseLayout?"unshift":"push"](new cC({label:r.label,isSubTotals:!1,isGrandTotals:!0}))}(m,d,E);try{for(var T=l(E),I=T.next();!I.done;I=T.next()){var M=I.value,L=M instanceof cC,k=L?null:g.get(M),A=void 0,R=C,D=!1,P=!1;if(L){var N=M;D=N.isGrandTotals,P=N.isSubTotals,A=Zw(M.label),R=C}else A=M,R=a(a({},C),((r={})[d]=A,r));var B=AC(_,A),z=null==y?void 0:y[B],F=Vv(w)?f>w:null,H=null!==(o=null!=z?z:F)&&void 0!==o?o:b,j=new lC({id:B,key:d,label:A,value:A,level:f,parent:h,field:d,isTotals:L,isGrandTotals:D,isSubTotals:P,isCollapsed:H,hierarchy:v,query:R,spreadsheet:m});f>v.maxLevel&&(v.maxLevel=f);var W=Hv(c([],u((null===(s=null==k?void 0:k.children)||void 0===s?void 0:s.keys())||[]),!1).filter(function(t){return t!==_o}));(W||L)&&(j.isLeaf=!0),W||(j.isTotals=!0);var G=OC(p,h,j,v);W||H||L||!G||qT({level:f+1,currentField:k.childField,pivotMeta:k.children,facetCfg:p,parentNode:j,hierarchy:v})}}catch(t){e={error:t}}finally{try{I&&!I.done&&(n=T.return)&&n.call(T)}finally{if(e)throw e.error}}},KT=function(t){var e,n,r=t.isValueInCols,i=t.moreThanOneValue,o=t.rootNode,a=t.facetCfg,s=t.hierarchy,l=t.fields;t.isRowHeader?(e=!r&&i,n=!r&&!i):(e=r&&i,n=r&&!i),kC({addTotalMeasureInTotal:e,addMeasureInTotalQuery:n,parentNode:o,currentField:l[0],fields:l,facetCfg:a,hierarchy:s})},ZT=function(t){var e=t.facetCfg,n=t.rootNode,r=t.hierarchy,i=e.hierarchyType,o=e.rows,a=e.dataSet;"tree"===i?qT({level:0,currentField:o[0],pivotMeta:a.rowPivotMeta,facetCfg:e,parentNode:n,hierarchy:r}):function(t){var e=t.facetCfg,n=t.rootNode,r=t.hierarchy,i=e.dataSet.fields.customTreeItems;XT({customTreeItems:i,facetCfg:e,level:0,parentNode:n,hierarchy:r})}(t)},JT=function(t){var e=t.isPivotMode,n=t.hierarchy,r=t.rootNode,i=t.facetCfg;e?KT(t):function(t){var e=t.facetCfg,n=e.columns,r=e.spreadsheet.store.get("hiddenColumnsDetail"),i=null==e?void 0:e.showSeriesNumber,o=c([],u($C(n).filter(function(t){return!r||r.every(function(e){return e.hideColumnNodes.every(function(e){return e.field!==t})})})),!1),a=c([],u(n),!1),s={};i&&(a.unshift({key:So}),s[So]=!0),o.reduce(function(t,e){return t[e]=!0,t},s),DC(GC(a,s),t,0,null)}({parentNode:r,hierarchy:n,facetCfg:i})},QT=function(t){var e=t.isRowHeader,n=t.facetCfg,r=n.spreadsheet,i=n.rows,o=void 0===i?[]:i,a=n.columns,s=void 0===a?[]:a,l=r.dataCfg.fields.valueInCols,u=r.isPivotMode(),c=n.dataSet.moreThanOneValue(),h=lC.rootNode(),d=new uC,f={isValueInCols:l,isPivotMode:u,moreThanOneValue:c,rootNode:h,hierarchy:d,spreadsheet:r,facetCfg:n,fields:e?o:s,isRowHeader:e};e?function(t){t.spreadsheet.isHierarchyTreeType()?ZT(t):KT(t)}(f):JT(f);return{hierarchy:d,leafNodes:e&&r.isHierarchyTreeType()?d.getNodes():d.getLeaves()}},tI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.renderFrozenGroupSplitLine=function(t,n){var r;if(null===(r=e.foregroundGroup.findById(Bo))||void 0===r||r.remove(),e.enableFrozenFirstRow()){var i=Math.floor(n-e.getPaginationScrollY()),o=e.foregroundGroup.addGroup({id:Bo,zIndex:4}),s=Yu(e.cfg,"spreadsheet.theme.splitLine"),l={lineWidth:null==s?void 0:s.horizontalBorderWidth,stroke:null==s?void 0:s.horizontalBorderColor,opacity:null==s?void 0:s.horizontalBorderColorOpacity},u=e.cornerBBox.height,c=e.getCellRange(),h=u+e.getTotalHeightForRange(c.start,c.start),d=e.panelBBox.viewportWidth+e.layoutResult.rowsHierarchy.width+e.getSeriesNumberWidth();i_(o,{x1:0,x2:d,y1:h,y2:h},a({},l)),s.showShadow&&i>0&&o.addShape("rect",{attrs:{x:0,y:h,width:d,height:s.shadowWidth,fill:e.getShadowFill(90)}})}},e}return o(e,t),e.prototype.updateFrozenGroupGrid=function(){var t=this;[qo.FROZEN_ROW].forEach(function(e){if(t.frozenGroupInfo[e].range){var n=[],r=[];if(e.toLowerCase().includes("row")){var i=u(t.frozenGroupInfo[e].range,2),o=i[0],a=i[1];n=t.gridInfo.cols,r=kT(o,a,t.viewCellHeights)}t.spreadsheet["".concat(e,"Group")].updateGrid({cols:n,rows:r},"".concat(e,"Group"))}})},e.prototype.getBizRevisedFrozenOptions=function(){return YC(this.cfg,this.layoutResult.rowNodes)},e.prototype.clip=function(e,n){var r=this.spreadsheet,i=r.isFrozenRowHeader,o=r.frozenRowGroup;if(i.call(this.spreadsheet))t.prototype.clip.call(this,e,n);else if(this.panelScrollGroupClip(e,n),this.enableFrozenFirstRow()){var a=this.getPaginationScrollY();o.setClip({type:"rect",attrs:{x:0,y:a,width:this.panelBBox.width+e,height:o.getBBox().height}})}},Object.defineProperty(e.prototype,"rowCellTheme",{get:function(){return this.spreadsheet.theme.rowCell.cell},enumerable:!1,configurable:!0}),e.prototype.getContentHeight=function(){var t=this.layoutResult,e=t.rowsHierarchy,n=t.colsHierarchy;return e.height+n.height},e.prototype.doLayout=function(){var t=this,e=QT({isRowHeader:!0,facetCfg:this.cfg}),n=e.leafNodes,r=e.hierarchy,i=QT({isRowHeader:!1,facetCfg:this.cfg}),o=i.leafNodes,s=i.hierarchy;this.calculateNodesCoordinate(n,r,o,s);var l=this.cfg,u=l.dataSet,c=l.spreadsheet,h={colNodes:s.getNodes(),colsHierarchy:s,rowNodes:r.getNodes(),rowsHierarchy:r,rowLeafNodes:n,colLeafNodes:o,getCellMeta:function(e,r){var i=e||0,a=r||0,s=n[i],l=o[a];if(!s||!l)return null;var h=s.query,d=l.query,f=s.isTotals||s.isTotalMeasure||l.isTotals||l.isTotalMeasure,p=t.getMeasureInfo(),v=_g({},h,d,p),g=N_(s,l),m=u.getCellData({query:v,rowNode:s,isTotals:f,totalStatus:g}),y=v[bo],b=Yu(m,yo,null);return{spreadsheet:c,x:l.x,y:s.y,width:l.width,height:s.height,data:m,rowIndex:i,colIndex:a,isTotals:f,valueField:y,fieldValue:b,rowQuery:h,colQuery:d,rowId:s.id,colId:l.id,id:yx(s.id,l.id)}},spreadsheet:c};return function(t,e){var n=null==t?void 0:t.layoutDataPosition;if(n){var r=e.getCellMeta,i=n(t.spreadsheet,r);return a(a({},e),{getCellMeta:i})}return e}(this.cfg,h)},e.prototype.getMeasureInfo=function(){var t,e,n,r=this.cfg,i=r.dataSet,o=r.spreadsheet,a=o.options.hierarchyType;return null!==(e=Yu(o,"facet.cfg.colCfg.hideMeasureColumn"))&&void 0!==e&&e&&"customTree"!==a?((t={})[bo]=null===(n=i.fields.values)||void 0===n?void 0:n[0],t):{}},e.prototype.calculateNodesCoordinate=function(t,e,n,r){this.calculateRowNodesCoordinate(t,e,n),this.calculateColNodesCoordinate(n,r,t,e.width)},e.prototype.calculateColNodesCoordinate=function(t,e,n,r){for(var i,o,a,s=lC.blankNode(),l=e.getNodes(),u=e.sampleNodesForAllLevels,c=0;c<u.length;c++){var h=u[c];if(h.height=this.getColNodeHeight(h),e.height+=h.height,0===h.level)h.y=0;else{var d=u[c-1];h.y=null!==(i=(null==d?void 0:d.y)+(null==d?void 0:d.height))&&void 0!==i?i:0}}for(var f=0,p=function(i){var a=l[i];if(a.isLeaf&&(a.colIndex=f,f+=1,a.x=s.x+s.width,a.width=v.calculateColLeafNodesWidth(a,t,n,r),e.width+=a.width,s=a),0===a.level)a.y=0;else{var u=e.sampleNodesForAllLevels.find(function(t){return t.level===a.level-1});a.y=null!==(o=(null==u?void 0:u.y)+(null==u?void 0:u.height))&&void 0!==o?o:0}a.height=v.getColNodeHeight(a),TC(v.cfg,null,a)},v=this,g=0;g<l.length;g++)p(g);this.autoCalculateColNodeWidthAndX(t),Hv(null===(a=this.spreadsheet.options.totals)||void 0===a?void 0:a.col)||(this.adjustTotalNodesCoordinate({hierarchy:e,isRowHeader:!1,isSubTotal:!0}),this.adjustTotalNodesCoordinate({hierarchy:e,isRowHeader:!1,isSubTotal:!1}))},e.prototype.autoCalculateColNodeWidthAndX=function(t){for(var e,n=null,r=0,i=t.slice(0);r<i.length;){var o=i[r++].parent;if(n!==o&&o){i.push(o);var a=null===(e=o.children)||void 0===e?void 0:e.find(function(t){return t.width}),s=null==a?void 0:a.x,l=Iy(o.children,"width");o.x=s,o.width=l,n=o}}},e.prototype.calculateColLeafNodesWidth=function(t,e,n,r){var i,o,s,l,u,c=this.cfg,h=c.colCfg,d=c.dataSet,f=c.filterDisplayDataItem,p=this.getCellDraggedWidth(t);if(Vv(p))return p;var v=this.getCellCustomWidth(t,null==h?void 0:h.width);if(Vv(v))return v;if(this.spreadsheet.getLayoutWidthType()===_a.Compact){for(var g=this.spreadsheet.theme.colCell,m=g.bolderText,y=g.cell,b=g.icon,w=this.spreadsheet.theme.dataCell.text,C=this.spreadsheet.dataSet.getFieldFormatter(t.field),_=null!==(i=null==C?void 0:C(t.value))&&void 0!==i?i:t.label,x=this.getExpectedCellIconWidth(aa.COL_CELL,this.spreadsheet.isValueInCols()&&this.spreadsheet.options.showDefaultHeaderActionIcon,b),S=this.spreadsheet.measureTextWidth(_,m)+x,E=this.getMeasureInfo(),O=void 0,T=0,I=0,M=0;M<50;M++){var L=n[M];if(L){var k=d.getCellData({query:a(a({},t.query),L.query),rowNode:L,isTotals:t.isTotals||t.isTotalMeasure||L.isTotals||L.isTotalMeasure,totalStatus:N_(L,t)});if(k){var A=gx(k,f),R=null!==(s=null===(o=this.spreadsheet.dataSet.getFieldFormatter(k[bo]))||void 0===o?void 0:o(A))&&void 0!==s?s:A,D="".concat(R),P=_g({},L.query,t.query,E)[bo],N=t_(this.spreadsheet.options.conditions,this.spreadsheet.theme.dataCell.icon,P),B=N.size,z=N.margin,F=B+z.left+z.right,H=this.spreadsheet.measureTextWidth(D,w)+F;H>T&&(O=D,T=H,I=F)}}}var j=S>T,W=j?_:O,G=j?x:I;return dC.getInstance().logger("Max Label In Col:",t.field,W,T),this.spreadsheet.measureTextWidth(W,a(a({},m),{fontSize:Math.max(w.fontSize,m.fontSize)}))+(null===(l=y.padding)||void 0===l?void 0:l.left)+(null===(u=y.padding)||void 0===u?void 0:u.right)+G}return this.spreadsheet.isHierarchyTreeType()?this.getAdaptTreeColWidth(t,e,n):this.getAdaptGridColWidth(e,r)},e.prototype.getColNodeHeight=function(t){var e=this.cfg.colCfg,n=Yu(e,["heightByField",t.key]);return null!=n?n:null==e?void 0:e.height},e.prototype.getExpectedCellIconWidth=function(t,e,n){var r,i=0;if(e)i=1;else{var o=Fx(Rp(this.spreadsheet.options.headerActionIcons,function(t){return a(a({},t),{displayCondition:function(){return!0}})}),null,t);i=null!==(r=null==o?void 0:o.iconNames.length)&&void 0!==r?r:0}return i?i*(n.size+n.margin.left)+n.margin.right:0},e.prototype.calculateRowNodesCoordinate=function(t,e,n){var r,i,o,a,s,u,c,h,d,f,p=this.cfg,v=p.cellCfg,g=p.spreadsheet,m=g.isHierarchyTreeType(),y=Yu(g,"options.style.rowCfg.heightByField",{}),b=null!==(o=e.sampleNodesForAllLevels)&&void 0!==o?o:[];if(m)e.width=this.getTreeRowHeaderWidth();else try{for(var w=l(e.sampleNodesForAllLevels),C=w.next();!C.done;C=w.next()){var _=C.value;_.width=this.calculateGridRowNodesWidth(_,n),e.width+=_.width;var x=null!==(a=b[_.level-1])&&void 0!==a?a:{x:0,width:0};_.x=(null==x?void 0:x.x)+(null==x?void 0:x.width)}}catch(t){r={error:t}}finally{try{C&&!C.done&&(i=w.return)&&i.call(w)}finally{if(r)throw r.error}}for(var S=lC.blankNode(),E=e.getNodes(),O=0;O<E.length;O++){var T=E[O];if((m||!m&&T.isLeaf)&&(null!==(s=T.rowIndex)&&void 0!==s||(T.rowIndex=O),null!==(u=T.colIndex)&&void 0!==u||(T.colIndex=O),T.y=S.y+S.height,T.height=(null!==(c=null==y?void 0:y[T.id])&&void 0!==c?c:null==v?void 0:v.height)+(null===(h=this.rowCellTheme.padding)||void 0===h?void 0:h.top)+(null===(d=this.rowCellTheme.padding)||void 0===d?void 0:d.bottom),S=T,e.height+=T.height),m||0===T.level)T.x=0;else{x=b[T.level-1];T.x=(null==x?void 0:x.x)+(null==x?void 0:x.width)}if(m)T.width=this.getTreeRowHeaderWidth();else{var I=b[T.level];T.width=null==I?void 0:I.width}TC(this.cfg,T,null)}m||(this.autoCalculateRowNodeHeightAndY(t),Hv(null===(f=g.options.totals)||void 0===f?void 0:f.row)||(this.adjustTotalNodesCoordinate({hierarchy:e,isRowHeader:!0,isSubTotal:!1}),this.adjustTotalNodesCoordinate({hierarchy:e,isRowHeader:!0,isSubTotal:!0})))},e.prototype.autoCalculateRowNodeHeightAndY=function(t){for(var e=null,n=0,r=t.slice(0);n<r.length;){var i=r[n++].parent;e!==i&&i&&(r.push(i),i.y=i.children[0].y,i.height=i.children.reduce(function(t,e){return t+e.height},0),e=i)}},e.prototype.getMultipleMap=function(t,e,n){for(var r=t.maxLevel,i=this.cfg,o=i.totals,a=i.dataSet,s=a.moreThanOneValue(),l=a.fields,u=l.rows,c=l.columns,h=e?u:c,d=e?o.row:o.col,f=n?d.subTotalsGroupDimensions||[]:d.totalsGroupDimensions||[],p=a.isEmpty()?[]:f,v=Array.from({length:r+1},function(){return 1}),g=r;g>0;g--){var m=h[g],y=m===bo&&s;p.includes(m)||y||(v[g-1]+=v[g],v[g]=0)}return v},e.prototype.adjustTotalNodesCoordinate=function(t){var e=t.hierarchy,n=t.isRowHeader,r=t.isSubTotal,i=this.getMultipleMap(e,n,r),o=Cp(e.getNodes(),function(t){return r?t.isSubTotals:t.isGrandTotals}),a=n?"width":"height";ep(o,function(t){var n,o=i[t.level];if(!o&&r)for(var s=1;o<1;)o=i[t.level-s]-s,s++;for(var l=0,u=function(r){l+=(null===(n=e.sampleNodesForAllLevels.find(function(e){return e.level===t.level+r}))||void 0===n?void 0:n[a])||0},c=0;c<o;c++)u(c);t[a]=l})},e.prototype.calculateGridRowNodesWidth=function(t,e){var n=this.cfg,r=n.rowCfg,i=n.spreadsheet,o=Yu(r,["widthByField",t.key]);if(Vv(o))return o;var a=this.getCellCustomWidth(t,null==r?void 0:r.width);return Vv(a)?a:i.getLayoutWidthType()!==_a.Adaptive?this.getCompactGridRowWidth(t):this.getAdaptGridColWidth(e)},e.prototype.getAdaptTreeColWidth=function(t,e,n){var r=this.getCanvasHW().width-this.getSeriesNumberWidth(),i=Math.min(r/2,this.getTreeRowHeaderWidth()),o=Math.max(1,e.length),a=this.cfg.cellCfg;return Math.max(O_(a,this.getColLabelLength(t,n)),(r-i)/o)},e.prototype.getColLabelLength=function(t,e){var n,r=T_(null==t?void 0:t.value);if(Ha(r))return r.length;for(var i=1,o=0;o<50;o++){var s=e[o];if(!s)return i;for(var l=this.cfg.dataSet.getCellData({query:a(a({},t.query),s.query),rowNode:s,isTotals:t.isTotals||t.isTotalMeasure||s.isTotals||s.isTotalMeasure,totalStatus:N_(s,t)}),u=du(null==l?void 0:l[wo]),c=0;c<u.length;c++){var h=l[u[c]],d=cy(null===(n=null==h?void 0:h.values)||void 0===n?void 0:n[0]);d>i&&(i=d)}}return i},e.prototype.getAdaptGridColWidth=function(t,e){var n=this.cfg,r=n.rows,i=n.cellCfg,o=r.length,a=t.length,s=this.getCanvasHW().width-this.getSeriesNumberWidth(),l=Math.max(1,o+a);return e?Math.max(O_(i),(s-e)/a):Math.max(O_(i),s/l)},e.prototype.getTreeRowHeaderWidth=function(){var t,e,n,r,i=this.cfg,o=i.rows,a=i.dataSet,s=i.rowCfg,l=i.treeRowsWidth,u=null!=l?l:null==s?void 0:s.treeRowsWidth;if(Vv(u))return u;var c=this.getCellCustomWidth(null,null==s?void 0:s.width);if(Vv(c))return c;var h=o.map(function(t){return a.getFieldName(t)}).join("/"),d=this.spreadsheet.theme.cornerCell,f=d.bolderText,p=d.icon,v=1+this.spreadsheet.measureTextWidth(h,f)+2*p.size+(null===(t=p.margin)||void 0===t?void 0:t.left)+(null===(e=p.margin)||void 0===e?void 0:e.right)+(null===(n=this.rowCellTheme.padding)||void 0===n?void 0:n.left)+(null===(r=this.rowCellTheme.padding)||void 0===r?void 0:r.right),g=Math.max(null!=u?u:120,v);return Number.isNaN(g)?120:g},e.prototype.getCompactGridRowWidth=function(t){var e,n=this,r=this.cfg,i=r.dataSet,o=r.spreadsheet,a=o.theme.rowCell,s=a.bolderText,l=a.icon,u=a.cell,c=o.theme.cornerCell,h=c.bolderText,d=c.icon,f=c.cell,p=t.field,v=t.isLeaf,g=this.getExpectedCellIconWidth(aa.ROW_CELL,!o.isValueInCols()&&v&&o.options.showDefaultHeaderActionIcon,l),m=null===(e=i.getDimensionValues(p))||void 0===e?void 0:e.slice(0,50).map(function(t){var e,r;return null!==(r=null===(e=n.spreadsheet.dataSet.getFieldFormatter(p))||void 0===e?void 0:e(t))&&void 0!==r?r:t}),y=yg(m,function(t){return"".concat(t).length}),b=o.measureTextWidth(y,s)+g+u.padding.left+u.padding.right,w=i.getFieldName(p),C=this.getExpectedCellIconWidth(aa.CORNER_CELL,!1,d),_=o.measureTextWidth(w,h)+C+f.padding.left+f.padding.right;return dC.getInstance().logger("Max Label In Row:",p,b>_?y:w),Math.max(b,_)},e.prototype.getViewCellHeights=function(t){var e=Zm(t.rowLeafNodes,function(t,e){return t.push(Yf(t)+e.height),t},[0]);return{getTotalHeight:function(){return Yf(e)||0},getCellOffsetY:function(t){return e[t]||0},getTotalLength:function(){return e.length-1},getIndexRange:function(t,n){return OT(e,t,n)}}},e.prototype.getRowHeader=function(){if(!this.rowHeader){var t=this.getRowHeaderCfg(),e=t.viewportHeight,n=s(t,["viewportHeight"]),r=YC(this.cfg,this.layoutResult.rowNodes).frozenRowHeight;return new $T(a(a({},n),{viewportHeight:e-r}))}},e.prototype.enableFrozenFirstRow=function(){return!!this.getBizRevisedFrozenOptions().frozenRowCount},e}(YT),eI=function(t){function e(e){var n,r,i,o=this;(o=t.call(this,e)||this).getScrollGroupClipBBox=function(){var t,e=o.headerConfig,n=e.width,r=e.height,i=e.scrollX,a=e.spreadsheet,s=a.options;if(!s.frozenColCount&&!s.frozenTrailingColCount)return{x:i,y:0,width:n,height:r};for(var l=null===(t=a.facet)||void 0===t?void 0:t.layoutResult.colLeafNodes,u=KC(a.options,l.length),c=u.frozenColCount,h=u.frozenTrailingColCount,d=0,f=0,p=0;p<c;p++)d+=l[p].width;for(p=0;p<h;p++)f+=l[l.length-1-p].width;return{x:i+d,y:0,width:n-d-f,height:r}};var a=null===(n=o.headerConfig.spreadsheet)||void 0===n?void 0:n.options,s=a.frozenColCount,l=a.frozenTrailingColCount,u=null===(i=null===(r=o.headerConfig.spreadsheet)||void 0===r?void 0:r.facet)||void 0===i?void 0:i.layoutResult.colNodes.filter(function(t){return VC(t)}),c=WC(u,s,l),h=c.colCount,d=c.trailingColCount;return o.finalColCount=h,o.finalTrailingColCount=d,h&&(o.frozenColGroup=o.addGroup({name:"colFrozenGroup",zIndex:4})),d&&(o.frozenTrailingColGroup=o.addGroup({name:"colFrozenTrailingGroup",zIndex:4})),o}return o(e,t),e.prototype.isFrozenCell=function(t){var e=this.headerConfig.spreadsheet,n=null==e?void 0:e.options,r=n.frozenColCount,i=n.frozenTrailingColCount,o=t.colIndex,a=null==e?void 0:e.facet.layoutResult.colLeafNodes;return PC(o,r)||NC(o,i,a.length)},e.prototype.clear=function(){var e,n,r=this.headerConfig.spreadsheet;t.prototype.clear.call(this),null===(e=this.frozenTrailingColGroup)||void 0===e||e.clear(),null===(n=this.frozenColGroup)||void 0===n||n.clear();var i=null==r?void 0:r.foregroundGroup.findById(jo);null==i||i.clear()},e.prototype.getCellInstance=function(t,e,n){return t.field===So?new oS(t,e,n):new iS(t,e,n)},e.prototype.getCellGroup=function(t){var e,n=this.headerConfig.spreadsheet,r=UC(t).colIndex;return PC(r,this.finalColCount)?this.frozenColGroup:NC(r,this.finalTrailingColCount,null===(e=null==n?void 0:n.facet)||void 0===e?void 0:e.layoutResult.colLeafNodes.length)?this.frozenTrailingColGroup:this.scrollGroup},e.prototype.isColCellInRect=function(e){var n,r=this.headerConfig.spreadsheet,i=null===(n=null==r?void 0:r.facet)||void 0===n?void 0:n.layoutResult.colLeafNodes.length,o=UC(e).colIndex;return!(!PC(o,this.finalColCount)&&!NC(o,this.finalTrailingColCount,i))||t.prototype.isColCellInRect.call(this,e)},e.prototype.clip=function(){this.scrollGroup.setClip({type:"rect",attrs:this.getScrollGroupClipBBox()})},e}(FT),nI=function(t){function e(e){var n=t.call(this,e)||this;n.onSortHandler=function(t){var e=n.spreadsheet,r=t;Array.isArray(t)||(r=[t]);var i=e.dataCfg.sortParams||[];r=r.map(function(t){var e,n,r=a(a({},t),{sortFieldId:null!==(e=t.sortKey)&&void 0!==e?e:t.sortFieldId}),o=null!==(n=i.find(function(t){return t.sortFieldId===r.sortFieldId}))&&void 0!==n?n:{};return a(a({},o),r)});var o=i.filter(function(t){return!r.find(function(e){return e.sortFieldId===t.sortFieldId})});sy(e.dataCfg,"sortParams",c(c([],u(o),!1),u(r),!1)),e.setDataCfg(e.dataCfg),e.render(!0),e.emit(go.RANGE_SORTED,e.dataSet.getDisplayDataSet())},n.onFilterHandler=function(t){var e=n.spreadsheet,r=!t.filteredValues||0===t.filteredValues.length,i=e.dataCfg.filterParams||[],o=i.findIndex(function(e){return e.filterKey===t.filterKey});-1!==o?r?i.splice(o,1):i[o]=t:i.push(t),sy(e.dataCfg,"filterParams",i),e.render(!0),e.emit(go.RANGE_FILTERED,e.dataSet.getDisplayDataSet())},n.renderFrozenPanelCornerGroup=function(){var t=n.layoutResult.colNodes.filter(function(t){return VC(t)}),e=n.getCellRange(),r=KC(n.spreadsheet.options,t.length,e.end-e.start+1),i=r.frozenRowCount,o=r.frozenColCount,a=r.frozenTrailingRowCount,s=r.frozenTrailingColCount,l=WC(t,o,s),u=function(t,e,n){for(var r,i=t.frozenColCount,o=t.frozenRowCount,a=t.frozenTrailingColCount,s=t.frozenTrailingRowCount,l=((r={})[Xo.TOP]=[],r[Xo.BOTTOM]=[],r),u=0;u<i;u++){for(var c=n.start;c<n.start+o;c++)l[Xo.TOP].push({x:u,y:c});if(s>0)for(c=0;c<s;c++){var h=n.end-c;l[Xo.BOTTOM].push({x:u,y:h})}}for(u=0;u<a;u++){var d=e-1-u;for(c=n.start;c<n.start+o;c++)l[Xo.TOP].push({x:d,y:c});if(s>0)for(c=0;c<s;c++)h=n.end-c,l[Xo.BOTTOM].push({x:d,y:h})}return l}({frozenRowCount:i,frozenColCount:l.colCount,frozenTrailingRowCount:a,frozenTrailingColCount:l.trailingColCount},n.layoutResult.colLeafNodes.length,e);Object.keys(u).forEach(function(t){var e=u[t],r=n.spreadsheet[sa[t]];r&&e.forEach(function(t){n.addFrozenCell(t.x,t.y,r)})})},n.addFrozenCell=function(t,e,r){var i=n.layoutResult.getCellMeta(e,t);if(i.isFrozenCorner=!0,i){var o=n.cfg.dataCell(i);r.add(o)}};var r=n.spreadsheet;return r.on(go.RANGE_SORT,n.onSortHandler),r.on(go.RANGE_FILTER,n.onFilterHandler),n}return o(e,t),e.prototype.updateRowResizeArea=function(){var t=this.spreadsheet,e=t.foregroundGroup,n=Yu(t.options,"interaction.resize");if(Pv(n)?n:null==n?void 0:n.rowCellVertical){var r=e.findById(Po),i=e.findById(No);r&&r.set("children",[]),i&&i.set("children",[]);var o=MT(this.panelGroup.getChildren(),aS).filter(function(t){return t.shouldDrawResizeArea()});null==o||o.forEach(function(t){t.drawResizeArea()})}},e.prototype.clip=function(e,n){t.prototype.clip.call(this,e,n),this.clipResizeAreaGroup()},e.prototype.clipResizeAreaGroup=function(){var t,e,n=this.spreadsheet.foregroundGroup.findById(Po);if(n){var r=this.layoutResult.colLeafNodes,i=this.spreadsheet,o=i.frozenRowGroup,a=i.frozenTrailingRowGroup,s=0,l=0;o&&(s=o.getBBox().height),a&&(l=a.getBBox().height);var u=this.panelBBox.height-s-l;n.setClip({type:"rect",attrs:{x:0,y:s+this.cornerBBox.height,width:null!==(e=null===(t=null==r?void 0:r[0])||void 0===t?void 0:t.width)&&void 0!==e?e:0,height:u}})}},e.prototype.getContentHeight=function(){var t=this.getViewCellHeights().getTotalHeight,e=this.layoutResult.colsHierarchy;return t()+e.height},Object.defineProperty(e.prototype,"dataCellTheme",{get:function(){return this.spreadsheet.theme.dataCell.cell},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){var e=this.spreadsheet;e.off(go.RANGE_SORT,this.onSortHandler),e.off(go.RANGE_FILTER,this.onFilterHandler),t.prototype.destroy.call(this)},e.prototype.calculateCornerBBox=function(){var t=this.layoutResult.colsHierarchy,e=Math.floor(t.height);this.cornerBBox=new NT(this),this.cornerBBox.height=e,this.cornerBBox.maxY=e},e.prototype.doLayout=function(){var t=this,e=this.cfg,n=e.dataSet,r=e.spreadsheet,i=new uC,o=QT({isRowHeader:!1,facetCfg:this.cfg}),a=o.leafNodes,s=o.hierarchy;this.calculateColNodesCoordinate(a,s);var l={colNodes:s.getNodes(),colsHierarchy:s,rowNodes:i.getNodes(),rowsHierarchy:i,rowLeafNodes:i.getLeaves(),colLeafNodes:a,getCellMeta:function(e,i){var o,s,l=t.cfg.showSeriesNumber,u=a[i],c=t.getCellHeight(e),h=t.getCellRange(),d=KC(t.cfg,a.length,h.end-h.start+1).frozenTrailingRowCount,f=u.x,p=t.viewCellHeights.getCellOffsetY(e);return zC(e,h.end,d)&&(p=t.panelBBox.maxY-t.getTotalHeightForRange(e,h.end)),s=l&&u.field===So?"".concat(e+1):n.getCellData({query:{field:u.field,rowIndex:e}}),{spreadsheet:r,x:f,y:p,width:u.width,height:c,data:(o={},o[u.field]=s,o),rowIndex:e,colIndex:i,isTotals:!1,colId:u.id,rowId:String(e),valueField:u.field,fieldValue:s,id:yx(String(e),u.id)}},spreadsheet:r};return l},e.prototype.getAdaptiveColWidth=function(t){var e=this.cfg.cellCfg,n=this.cfg.showSeriesNumber;if(this.spreadsheet.getLayoutWidthType()!==_a.Compact){var r=this.getSeriesNumberWidth(),i=t.length-(n?1:0),o=this.getCanvasHW().width-r;return Math.max(null==e?void 0:e.width,o/Math.max(1,i))}return null==e?void 0:e.width},e.prototype.getColNodeHeight=function(t,e){var n=this.cfg.colCfg,r=av(null==n?void 0:n.heightByField)[0]||(null==n?void 0:n.height);if(!e)return r;if(t.children&&t.children.length)return r;for(;t.parent;)e-=VC(t)?0:r,t=t.parent;return e},e.prototype.calculateColNodesCoordinate=function(t,e){var n,r,i,o,a,s,u=lC.blankNode(),c=e.getNodes();try{for(var h=l(e.sampleNodesForAllLevels),d=h.next();!d.done;d=h.next()){var f=d.value;f.height=this.getColNodeHeight(f),e.height+=f.height}}catch(t){n={error:t}}finally{try{d&&!d.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}for(var p=this.getAdaptiveColWidth(t),v=0,g=0;g<c.length;g++){(_=c[g]).isLeaf&&(_.colIndex=v,v+=1,_.x=u.x+u.width,_.width=this.calculateColLeafNodesWidth(_,p),TC(this.cfg,null,_),e.width+=_.width,u=_),0===_.level?_.y=0:_.y=null!==(a=(null===(i=_.parent)||void 0===i?void 0:i.y)+(null===(o=_.parent)||void 0===o?void 0:o.height))&&void 0!==a?a:0,_.height=this.getColNodeHeight(_,e.height)}var m=c.filter(function(t){return VC(t)}),y=KC(null===(s=this.spreadsheet)||void 0===s?void 0:s.options,m.length).frozenTrailingColCount;u=lC.blankNode();var b=this.getCanvasHW().width;if(y>0){var w=WC(m,0,y).trailingColCount,C=c.filter(function(t){return t.isLeaf});for(g=1;g<=w;g++){var _;(_=C[C.length-g]).x=1===g?b-_.width:u.x-_.width,u=_}}this.autoCalculateColNodeWidthAndX(t)},e.prototype.autoCalculateColNodeWidthAndX=function(t){for(var e=null,n=t.slice(0);n.length;){var r=n.shift().parent;e!==r&&r&&(n.push(r),r.x=r.children[0].x,r.width=r.children.map(function(t){return t.width}).reduce(function(t,e){return t+e},0),e=r)}},e.prototype.calculateColLeafNodesWidth=function(t,e){var n=this.cfg,r=n.colCfg,i=n.dataSet,o=n.spreadsheet,a=this.spreadsheet.getLayoutWidthType(),s=this.getCellDraggedWidth(t);if(Vv(s))return s;var l,u=this.getCellCustomWidth(t,null==r?void 0:r.width);if(Vv(u))return u;if(a===_a.Compact){var c=i.getDisplayDataSet(),h=i.getFieldFormatter(t.field),d=yg(null==c?void 0:c.slice(0,50).map(function(e){var n;return"".concat(null!==(n=null==h?void 0:h(e[t.field]))&&void 0!==n?n:e[t.field])}),function(t){return o.measureTextWidthRoughly(t)});dC.getInstance().logger("Max Label In Col:",t.field,d);var f=o.theme.colCell.bolderText,p=o.theme.dataCell,v=p.text,g=p.cell,m=o.measureTextWidth(d,v)+g.padding.left+g.padding.right+1,y=o.measureTextWidth(t.label,f)+rS(this.spreadsheet,t,o.theme.colCell);l=Math.max(y,m)}else l=e;return t.field===So&&(l=this.getSeriesNumberWidth()),l},e.prototype.initRowOffsets=function(){var t,e=this,n=this.cfg.dataSet,r=((null===(t=this.spreadsheet.options.style)||void 0===t?void 0:t.rowCfg)||{}).heightByField,i=void 0===r?{}:r;if(Object.keys(i).length){var o=n.getDisplayDataSet();this.rowOffsets=[0];var a=0;o.forEach(function(t,n){var r,o=null!==(r=null==i?void 0:i[String(n)])&&void 0!==r?r:e.getDefaultCellHeight(),s=a+o;e.rowOffsets.push(s),a=s})}},e.prototype.getCellHeight=function(t){var e;if(this.rowOffsets){var n=((null===(e=this.spreadsheet.options.style)||void 0===e?void 0:e.rowCfg)||{}).heightByField,r=void 0===n?{}:n,i=null==r?void 0:r[String(t)];if(Vv(i))return i}return this.getDefaultCellHeight()},e.prototype.getViewCellHeights=function(){var t=this,e=this.cfg.dataSet,n=this.getDefaultCellHeight();return{getTotalHeight:function(){return t.rowOffsets?Yf(t.rowOffsets):n*e.getDisplayDataSet().length},getCellOffsetY:function(e){if(e<=0)return 0;if(t.rowOffsets)return t.rowOffsets[e];for(var r=0,i=0;i<e;i++)r+=n;return r},getTotalLength:function(){return e.getDisplayDataSet().length},getIndexRange:function(e,r){if(t.rowOffsets)return OT(t.rowOffsets,e,r);var i=Math.floor(e/n),o=r%n===0?r/n-1:Math.floor(r/n);return{start:Math.max(0,i),end:Math.max(0,o)}}}},e.prototype.init=function(){this.initRowOffsets(),t.prototype.init.call(this);var e=this.panelBBox,n=e.width,r=e.height;this.spreadsheet.panelGroup.setClip({type:"rect",attrs:{x:0,y:this.cornerBBox.height,width:n,height:r}})},e.prototype.getColHeader=function(){if(!this.columnHeader){var t=this.panelBBox,e=t.x,n=t.width,r=t.viewportHeight,i=t.viewportWidth;return new eI({width:n,height:this.cornerBBox.height,viewportWidth:i,viewportHeight:r,cornerWidth:this.cornerBBox.width,position:{x:e,y:0},data:this.layoutResult.colNodes,scrollContainsRowHeader:this.cfg.spreadsheet.isScrollContainsRowHeader(),sortParam:this.cfg.spreadsheet.store.get("sortParam"),spreadsheet:this.spreadsheet})}return this.columnHeader},e.prototype.render=function(){this.renderFrozenPanelCornerGroup(),t.prototype.render.call(this)},e.prototype.getRowHeader=function(){return null},e.prototype.getSeriesNumberHeader=function(){return null},e}(YT),rI=function(t){function e(e){var n=t.call(this,e)||this;return n.gridInfo={cols:[],rows:[]},n.updateGrid=function(t,e){void 0===e&&(e=Wo);var r=n.getBBox(),i=n.s2,o=i.theme,a=i.isTableMode,s=o.dataCell.cell,l=a()&&(e===Wo||e===Lo);n.gridGroup&&n.findById(e)||(n.gridGroup=n.addGroup({id:e})),n.gridGroup.clear(),n.gridInfo=t,l&&n.gridInfo.cols.unshift(0);var u=s.verticalBorderWidth,c=s.verticalBorderWidth/2;n.gridInfo.cols.forEach(function(t){i_(n.gridGroup,{x1:t,x2:t,y1:Math.ceil(r.minY+c),y2:Math.floor(r.maxY-c)},{stroke:s.verticalBorderColor,strokeOpacity:s.verticalBorderColorOpacity,lineWidth:u,lineCap:Ko,lineDash:s.borderDash})});var h=s.horizontalBorderWidth,d=s.horizontalBorderWidth/2;n.gridInfo.rows.forEach(function(t){i_(n.gridGroup,{x1:Math.ceil(r.minX+d),x2:Math.floor(r.maxX-d),y1:t,y2:t},{stroke:s.horizontalBorderColor,strokeOpacity:s.horizontalBorderColorOpacity,lineWidth:h,lineCap:Ko,lineDash:s.borderDash})}),n.gridGroup.toFront()},n.s2=e.s2,n}return o(e,t),e}(ki),iI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(rI),oI=function(t){function e(e){var n=t.call(this,e)||this;return n.initMergedCellsGroup(),n}return o(e,t),e.prototype.initMergedCellsGroup=function(){this.mergedCellsGroup&&this.findById(Io)||(this.mergedCellsGroup=this.addGroup({id:Io}))},e.prototype.updateMergedCells=function(){this.initMergedCellsGroup(),Lx(this.s2,this.mergedCellsGroup),this.mergedCellsGroup.toFront()},e.prototype.addMergeCell=function(t){var e;null===(e=this.mergedCellsGroup)||void 0===e||e.add(t)},e.prototype.update=function(t){this.updateGrid(t),this.updateMergedCells()},e}(rI),aI=function(){function t(t){var e=this;this.isLinkFieldText=function(t){var n=e.getCellAppendInfo(t);return null==n?void 0:n.isLinkFieldText},this.spreadsheet=t,this.bindEvents()}return t.prototype.getCellAppendInfo=function(t){var e,n;return(null===(e=null==t?void 0:t.attr)||void 0===e?void 0:e.call(t,"appendInfo"))||(null===(n=null==t?void 0:t.attrs)||void 0===n?void 0:n.appendInfo)||{}},t.prototype.reset=function(){},t}(),sI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.bindEvents=function(){this.bindDataCellClick()},e.prototype.bindDataCellClick=function(){var t=this;this.spreadsheet.on(go.DATA_CELL_CLICK,function(e){var n;e.stopPropagation();var r=t.spreadsheet.interaction;if(r.clearHoverTimer(),!r.hasIntercepts([ha.CLICK]))if(t.isLinkFieldText(e.target))t.emitLinkFieldClickEvent(e);else{var i=t.spreadsheet.getCell(e.target),o=i.getMeta();if(o)if(r.addIntercepts([ha.HOVER]),r.isSelectedCell(i))1===(null===(n=e.originalEvent)||void 0===n?void 0:n.detail)&&(r.reset(),t.spreadsheet.emit(go.GLOBAL_SELECTED,r.getActiveCells()));else{r.changeState({cells:[SS(i)],stateName:oa.SELECTED,onUpdateCells:IS}),t.spreadsheet.emit(go.GLOBAL_SELECTED,[i]),t.showTooltip(e,o);var a=o.rowId,s=o.colId,l=o.spreadsheet,u=r.getSelectedCellHighlight(),c=u.colHeader,h=u.rowHeader;if(c&&hx(s,r.getAllColHeaderCells(),oa.SELECTED),h&&a){var d=function(t,e){var n=e.interaction,r=e.facet,i=e.options;if(e.isTableMode()){if(!i.showSeriesNumber)return[];var o=r.layoutResult.colLeafNodes[0].id,a=yx(String(t.rowIndex),o),s=[],l=n.getAllCells().find(function(t){return t.getMeta().id===a});return l&&l instanceof sS&&s.push(l),s}return cx(t.rowId,n.getAllRowHeaderCells(),e.isHierarchyTreeType())}(o,l);ep(d,function(t){t.updateByState(oa.SELECTED)})}}}})},e.prototype.getTooltipOperator=function(t,e){var n=this,r={key:"trend",text:Zw("趋势"),icon:"Trend"},i=this.spreadsheet.getCell(t.target),o=TO(this.spreadsheet,t).operation,s=o.trend&&a(a({},r),{onClick:function(){n.spreadsheet.emit(go.DATA_CELL_TREND_ICON_CLICK,a(a({},e),{record:n.spreadsheet.isTableMode()?n.spreadsheet.dataSet.getCellData({query:{rowIndex:e.rowIndex}}):void 0})),n.spreadsheet.hideTooltip()}});return IO(o,{defaultMenus:[s],cell:i})},e.prototype.showTooltip=function(t,e){var n=e.data,r=e.isTotals,i=void 0!==r&&r,o=e.value,s=e.fieldValue,l=e.field,u=e.valueField,c=n,h=this.spreadsheet.isTableMode(),d=[(h?a(a({},c),{value:o||s,valueField:l||u}):c)||a(a({},e.rowQuery),e.colQuery)],f=this.getTooltipOperator(t,e);this.spreadsheet.showTooltipWithInfo(t,d,{isTotals:i,operator:f,enterable:!0,hideSummary:!0,showSingleTips:h})},e.prototype.emitLinkFieldClickEvent=function(t){var e=this.getCellAppendInfo(t.target).cellData,n=e.valueField,r=e.data;this.spreadsheet.emit(go.GLOBAL_LINK_FIELD_JUMP,{key:n,cellData:e,record:Object.assign({rowIndex:e.rowIndex},r)})},e}(aI),lI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.bindEvents=function(){this.bindDataCellClick()},e.prototype.bindDataCellClick=function(){var t=this;this.spreadsheet.on(go.MERGED_CELLS_CLICK,function(e){e.stopPropagation();var n=t.spreadsheet.interaction;n.hasIntercepts([ha.CLICK])||n.addIntercepts([ha.HOVER])})},e}(aI),uI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isMultiSelection=!1,e.handleRowColClick=function(t){if(t.stopPropagation(),!e.isLinkFieldText(t.target)){var n=e.spreadsheet,r=n.interaction,i=n.options,o=e.spreadsheet.getCell(t.target),a=!(!i.interaction.multiSelection||!e.isMultiSelection);r.selectHeaderCell({cell:o,isMultiSelection:a})&&e.showTooltip(t)}},e.getHideColumnField=function(t){return e.spreadsheet.isTableMode()?t.field:t.id},e}return o(e,t),e.prototype.bindEvents=function(){this.bindKeyboardDown(),this.bindKeyboardUp(),this.bindColCellClick(),this.bindRowCellClick(),this.bindTableColExpand(),this.bindMouseMove()},e.prototype.reset=function(){this.isMultiSelection=!1,this.spreadsheet.interaction.removeIntercepts([ha.CLICK])},e.prototype.bindKeyboardDown=function(){var t=this;this.spreadsheet.on(go.GLOBAL_KEYBOARD_DOWN,function(e){_S(e)&&(t.isMultiSelection=!0)})},e.prototype.bindKeyboardUp=function(){var t=this;this.spreadsheet.on(go.GLOBAL_KEYBOARD_UP,function(e){_S(e)&&t.reset()})},e.prototype.bindMouseMove=function(){var t=this;this.spreadsheet.on(go.GLOBAL_MOUSE_MOVE,function(e){t.isMultiSelection&&!xS(e)&&t.reset()})},e.prototype.bindRowCellClick=function(){var t=this;this.spreadsheet.on(go.ROW_CELL_CLICK,function(e){t.handleRowColClick(e)})},e.prototype.bindColCellClick=function(){var t=this;this.spreadsheet.on(go.COL_CELL_CLICK,function(e){t.handleRowColClick(e)})},e.prototype.showTooltip=function(t){var e=TO(this.spreadsheet,t),n=e.operation;if(e.showTooltip){var r=this.spreadsheet.interaction,i=r.isSelectedState()?Rp(r.getActiveCells(),function(t){var e=t.getMeta();return vu({},e.query||{},Tm(e,["colIndex","rowIndex"]))}):[],o=this.getTooltipOperator(t,n);this.spreadsheet.showTooltipWithInfo(t,i,{showSingleTips:!0,operator:o})}},e.prototype.getTooltipOperator=function(t,e){var n=this,r=this.spreadsheet.getCell(t.target),i=r.getMeta(),o=r.cellType===aa.COL_CELL,s=1===this.spreadsheet.getColumnLeafNodes().length,l={key:"hiddenColumns",text:Zw("隐藏"),icon:"EyeOutlined"},u=o&&!s&&i.isLeaf&&e.hiddenColumns&&a(a({},l),{onClick:function(){n.hideSelectedColumns()}});return IO(e,{defaultMenus:[u],cell:r})},e.prototype.bindTableColExpand=function(){var t=this;this.spreadsheet.on(go.LAYOUT_COLS_EXPANDED,function(e){t.handleExpandIconClick(e)})},e.prototype.hideSelectedColumns=function(){var t=this.spreadsheet.interaction.getActiveCells().map(function(t){return t.getMeta()}).map(this.getHideColumnField);Dx(this.spreadsheet,t,!0)},e.prototype.handleExpandIconClick=function(t){var e=this.spreadsheet.store.get("hiddenColumnsDetail",[]),n=(Lp(e,function(e){var n=e.displaySiblingNode;return Px(n,t.id)})||{}).hideColumnNodes,r=void 0===n?[]:n,i=this.spreadsheet.options.interaction.hiddenColumnFields,o=r.map(this.getHideColumnField),a=Uf(i,o),s=e.filter(function(e){var n=e.displaySiblingNode;return!Px(n,t.id)});this.spreadsheet.setOptions({interaction:{hiddenColumnFields:a}}),this.spreadsheet.store.set("hiddenColumnsDetail",s),this.spreadsheet.interaction.reset(),this.spreadsheet.render(!1)},e}(aI),cI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getRowData=function(t){var n,r=t.getHeadLeafChild(),i=e.spreadsheet.dataSet.getMultiData(null==r?void 0:r.query)[0];return a(a({},i),{rowIndex:null!==(n=t.rowIndex)&&void 0!==n?n:r.rowIndex})},e}return o(e,t),e.prototype.bindEvents=function(){this.bindRowCellClick()},e.prototype.bindRowCellClick=function(){var t=this;this.spreadsheet.on(go.ROW_CELL_CLICK,function(e){if(!t.spreadsheet.interaction.hasIntercepts([ha.CLICK])&&t.isLinkFieldText(e.target)){var n=t.getCellAppendInfo(e.target).cellData,r=n.key,i=t.getRowData(n);t.spreadsheet.emit(go.GLOBAL_LINK_FIELD_JUMP,{key:r,cellData:n,record:i})}})},e}(aI),hI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.bindEvents=function(){this.bindCornerCellClick()},e.prototype.bindCornerCellClick=function(){var t=this;this.spreadsheet.on(go.CORNER_CELL_CLICK,function(e){var n,r=t.spreadsheet.interaction,i=t.spreadsheet.getCell(e.target);if(i){var o=i.getMeta(),a=t.getRowNodesByField(null==o?void 0:o.field),s=null===(n=a[0])||void 0===n?void 0:n.belongsCell,l=t.getRowCells(a);if(s&&r.isSelectedCell(s))return r.reset(),void t.spreadsheet.emit(go.GLOBAL_SELECTED,r.getActiveCells());Hv(a)||Hv(l)||(r.addIntercepts([ha.HOVER]),r.changeState({cells:l,stateName:oa.SELECTED}),r.highlightNodes(a),t.showTooltip(e),t.spreadsheet.emit(go.GLOBAL_SELECTED,r.getActiveCells()))}})},e.prototype.getRowNodesByField=function(t){return this.spreadsheet.getRowNodes().filter(function(e){return e.field===t})},e.prototype.getRowCells=function(t){return t.map(function(t){return{id:t.id,colIndex:-1,rowIndex:-1,type:aa.ROW_CELL}})},e.prototype.showTooltip=function(t){var e=this.spreadsheet.interaction.getActiveCells();this.spreadsheet.showTooltipWithInfo(t,[],{data:{summaries:[{selectedData:e,name:"",value:null}]}})},e}(aI),dI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.bindEvents=function(){this.bindCornerCellHover(),this.bindDataCellHover(),this.bindRowCellHover(),this.bindColCellHover()},e.prototype.updateRowColCells=function(t){var e=t.rowId,n=t.colId,r=this.spreadsheet.interaction,i=r.getHoverHighlight(),o=i.rowHeader;(i.colHeader&&hx(n,r.getAllColHeaderCells(),oa.HOVER),o&&e)&&ep(cx(e,r.getAllRowHeaderCells(),this.spreadsheet.isHierarchyTreeType()),function(t){t.updateByState(oa.HOVER)})},e.prototype.changeStateToHoverFocus=function(t,e,n){var r,i=this,o=this.spreadsheet.interaction,a=this.spreadsheet.options.interaction.hoverFocus;o.clearHoverTimer();var s=function(){if(!o.hasIntercepts([ha.HOVER])){o.changeState({cells:[SS(t)],stateName:oa.HOVER_FOCUS});var r=i.spreadsheet.isTableMode(),a={isTotals:n.isTotals,enterable:!0,hideSummary:!0,showSingleTips:r},s=o.getHoverHighlight(),l=s.rowHeader,u=s.colHeader;(l||u)&&i.updateRowColCells(n);var c=i.getCellData(n,r);i.spreadsheet.showTooltipWithInfo(e,c,a)}},l=800;if(Pv(a)||(l=null!==(r=null==a?void 0:a.duration)&&void 0!==r?r:800),0===l)s();else{var u=window.setTimeout(function(){return s()},l);o.setHoverTimer(u)}},e.prototype.handleHeaderHover=function(t){var e=this.spreadsheet.getCell(t.target);if(!Hv(e)){var n=this.spreadsheet.interaction;n.clearHoverTimer(),n.isActiveCell(e)||(n.changeState({cells:[SS(e)],stateName:oa.HOVER}),e.update(),this.showEllipsisTooltip(t,e))}},e.prototype.showEllipsisTooltip=function(t,e){if(e&&e.isTextOverflowing()){var n=e.getMeta(),r=!0,i={isTotals:n.isTotals,enterable:!0,hideSummary:!0,showSingleTips:r,enableFormat:!0},o=this.getCellData(n,r);this.spreadsheet.showTooltipWithInfo(t,o,i)}else this.spreadsheet.hideTooltip()},e.prototype.getCellData=function(t,e){void 0===t&&(t={});var n=t.data,r=t.query,i=t.value,o=t.field,s=t.fieldValue,l=t.valueField,u=t.rowQuery,c=t.colQuery,h=n;return e?[a(a({},r),{value:i||s,valueField:o||l})]:[h||a(a({},u),c)]},e.prototype.bindDataCellHover=function(){var t=this;this.spreadsheet.on(go.DATA_CELL_HOVER,function(e){var n=t.spreadsheet.getCell(e.target);if(!Hv(n)){var r=t.spreadsheet,i=r.interaction,o=r.options.interaction,a=null==n?void 0:n.getMeta();if(!i.isActiveCell(n)){i.changeState({cells:[SS(n)],stateName:oa.HOVER});var s=i.getHoverHighlight(),l=s.rowHeader,u=s.colHeader;(l||u)&&t.updateRowColCells(a),o.hoverFocus&&t.changeStateToHoverFocus(n,e,a)}}})},e.prototype.bindRowCellHover=function(){var t=this;this.spreadsheet.on(go.ROW_CELL_HOVER,function(e){t.handleHeaderHover(e)})},e.prototype.bindColCellHover=function(){var t=this;this.spreadsheet.on(go.COL_CELL_HOVER,function(e){t.handleHeaderHover(e)})},e.prototype.bindCornerCellHover=function(){var t=this;this.spreadsheet.on(go.CORNER_CELL_HOVER,function(e){t.handleHeaderHover(e)})},e}(aI),fI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.displayedCells=[],e.brushRangeCells=[],e.brushSelectionStage=la.UN_DRAGGED,e.brushSelectionMinimumMoveDistance=5,e.scrollAnimationComplete=!0,e.mouseMoveDistanceFromCanvas=0,e.setMoveDistanceFromCanvas=function(t,n,r){var i=0;if(n&&(i=t.x),r){var o=t.y;i=n?Math.max(o,i):o}e.mouseMoveDistanceFromCanvas=Math.abs(i)},e.formatBrushPointForScroll=function(t,n){var r,i,o,a;void 0===n&&(n=!1);var s=t.x,l=t.y,u=e.spreadsheet.facet,c=n?u.cornerBBox:u.panelBBox,h=c.minX,d=c.maxX,f=u.panelBBox,p=f.minY,v=f.maxY,g=(null===(r=e.endBrushPoint)||void 0===r?void 0:r.x)+s,m=(null===(i=e.endBrushPoint)||void 0===i?void 0:i.y)+l,y=!0,b=!0,w=null===(a=null===(o=u.vScrollBar)||void 0===o?void 0:o.getBBox())||void 0===a?void 0:a.width;return g>d?g=d-w-2:g<h?g=h+2:y=!1,m>v?m=v-2:m<=p?m=p+2:b=!1,{x:{value:g,needScroll:y},y:{value:m,needScroll:b}}},e.rectanglesIntersect=function(t,e){return t.maxX>e.minX&&t.minX<e.maxX&&t.minY<e.maxY&&t.maxY>e.minY},e.autoScrollIntervalId=null,e.autoScrollConfig=Md(ya),e.validateYIndex=function(t){var n,r,i=e.spreadsheet.facet,o=i.frozenGroupInfo,a=0,s=null===(n=null==o?void 0:o.frozenRow)||void 0===n?void 0:n.range;if(s&&(a=s[1]+1),t<a)return null;var l=i.getCellRange().end,u=null===(r=null==o?void 0:o.frozenTrailingRow)||void 0===r?void 0:r.range;return u&&(l=u[0]-1),t>l?null:t},e.validateXIndex=function(t){var n,r,i=e.spreadsheet.facet,o=i.frozenGroupInfo,a=0,s=null===(n=null==o?void 0:o.frozenCol)||void 0===n?void 0:n.range;if(s&&(a=s[1]+1),t<a)return null;var l=i.layoutResult.colLeafNodes.length-1,u=null===(r=null==o?void 0:o.frozenTrailingCol)||void 0===r?void 0:r.range;return u&&(l=u[0]-1),t>l?null:t},e.adjustNextColIndexWithFrozen=function(t,n){var r=e.spreadsheet,i=r.facet,o=r.dataSet,a=r.options,s=o.getDisplayDataSet().length,l=i.layoutResult.colLeafNodes.length,u=KC(a,l,s),c=u.frozenTrailingColCount,h=u.frozenColCount,d=i.panelScrollGroupIndexes;return c>0&&n===ga.SCROLL_DOWN&&NC(t,c,l)?d[1]:h>0&&n===ga.SCROLL_UP&&PC(t,h)?d[0]:t},e.adjustNextRowIndexWithFrozen=function(t,n){var r=e.spreadsheet,i=r.facet,o=r.dataSet,a=r.options,s=o.getDisplayDataSet().length,l=i.layoutResult.colLeafNodes.length,u=i.getCellRange(),c=KC(a,l,s),h=c.frozenTrailingRowCount,d=c.frozenRowCount,f=i.panelScrollGroupIndexes;return h>0&&n===ga.SCROLL_DOWN&&zC(t,u.end,h)?f[3]:d>0&&n===ga.SCROLL_UP&&BC(t,u.start,d)?f[2]:t},e.getWillScrollRowIndexDiff=function(t){return t===ga.SCROLL_DOWN?ma.SCROLL_DOWN:ma.SCROLL_UP},e.getDefaultWillScrollToRowIndex=function(t){var n=e.adjustNextRowIndexWithFrozen(e.endBrushPoint.rowIndex,t)+e.getWillScrollRowIndexDiff(t);return e.validateYIndex(n)},e.getWillScrollToRowIndex=function(t){return e.getDefaultWillScrollToRowIndex(t)},e.getNextScrollDelta=function(t){var n=e.spreadsheet.facet.getScrollOffset(),r=n.scrollX,i=n.scrollY,o=0,a=0;if(t.y.scroll){var s=t.y.value>0?ga.SCROLL_DOWN:ga.SCROLL_UP,l=e.getWillScrollToRowIndex(s),u=function(t,e,n){var r,i,o=n.facet,a=o.viewCellHeights.getCellOffsetY,s=o.panelBBox.height,l=a(t+1);if(Yv(l))return 0;var u=null==o?void 0:o.frozenGroupInfo,c=null!==(r=null==u?void 0:u.frozenRow.height)&&void 0!==r?r:0,h=null!==(i=null==u?void 0:u.frozenTrailingRow.height)&&void 0!==i?i:0;return e===ga.SCROLL_UP?a(t)-c:l-(s-h)}(l,s,e.spreadsheet)-i;a=Yv(l)||Yv(u)||Number.isNaN(u)?0:u}if(t.x.scroll){s=t.x.value>0?ga.SCROLL_DOWN:ga.SCROLL_UP;var c=e.adjustNextColIndexWithFrozen(e.endBrushPoint.colIndex,s),h=e.validateXIndex(c+(t.x.value>0?1:-1));o=Yv(h)?0:function(t,e,n){var r,i,o=n.facet,a=o.panelBBox.width,s=null==o?void 0:o.frozenGroupInfo,l=null!==(r=null==s?void 0:s.frozenCol.width)&&void 0!==r?r:0,u=null!==(i=null==s?void 0:s.frozenTrailingCol.width)&&void 0!==i?i:0,c=o.layoutResult.colLeafNodes[t];return e===ga.SCROLL_UP?c.x-l:c.x+c.width-(a-u)}(h,s,e.spreadsheet)-r}return{x:o,y:a}},e.onScrollAnimationComplete=function(){e.scrollAnimationComplete=!0,e.brushSelectionStage!==la.UN_DRAGGED&&e.renderPrepareSelected(e.endBrushPoint)},e.autoScroll=function(t){if(void 0===t&&(t=!1),e.brushSelectionStage!==la.UN_DRAGGED&&e.scrollAnimationComplete){var n=e.autoScrollConfig,r=e.spreadsheet.facet.getScrollOffset(),i=t?"rowHeaderOffsetX":"offsetX",o={rowHeaderOffsetX:{value:r.rowHeaderScrollX,animate:!0},offsetX:{value:r.scrollX,animate:!0},offsetY:{value:r.scrollY,animate:!0}},a=e.getNextScrollDelta(n),s=a.x,l=a.y;if(0!==l||0!==s){if(n.y.scroll&&(o.offsetY.value+=l),n.x.scroll){var u=o[i];u.value+=s,u.value<0&&(u.value=0)}e.scrollAnimationComplete=!1;var c=n.x.scroll?1:3,h=Math.max(16,300-e.mouseMoveDistanceFromCanvas*c);e.spreadsheet.facet.scrollWithAnimation(o,h,e.onScrollAnimationComplete)}else e.clearAutoScroll()}},e.handleScroll=Vy(function(t,n,r){if(void 0===r&&(r=!1),e.brushSelectionStage!==la.UN_DRAGGED){var i=e.formatBrushPointForScroll({x:t,y:n},r),o=i.x,a=o.value,s=o.needScroll,l=i.y,u=l.value,c=l.needScroll,h=e.autoScrollConfig;c&&(h.y.value=n,h.y.scroll=!0),s&&(h.x.value=t,h.x.scroll=!0),e.setMoveDistanceFromCanvas({x:t,y:n},s,c),e.renderPrepareSelected({x:a,y:u}),(c||s)&&(e.clearAutoScroll(),e.autoScroll(r),e.autoScrollIntervalId=setInterval(function(){e.autoScroll(r)},16))}},30),e.clearAutoScroll=function(){e.autoScrollIntervalId&&(clearInterval(e.autoScrollIntervalId),e.autoScrollIntervalId=null,e.resetScrollDelta())},e.onUpdateCells=function(t,e){return e()},e.showPrepareSelectedCells=function(){e.brushRangeCells=e.getBrushRangeCells(),e.spreadsheet.interaction.changeState({cells:Rp(e.brushRangeCells,function(t){return SS(t)}),stateName:oa.PREPARE_SELECT,force:!0,onUpdateCells:e.onUpdateCells})},e.renderPrepareSelected=function(t){var n=t.x,r=t.y,i=e.spreadsheet.container.getShape(n,r),o=e.spreadsheet.getCell(i);if(o&&(o instanceof Cx||o instanceof wS||o instanceof tS)){var a=o.getMeta(),s=a.rowIndex,l=a.colIndex;e.endBrushPoint={x:n,y:r,rowIndex:s,colIndex:l};var u=e.spreadsheet.interaction;u.addIntercepts([ha.HOVER]),u.clearStyleIndependent(),e.isValidBrushSelection()&&(e.showPrepareSelectedCells(),e.updatePrepareSelectMask())}},e}return o(e,t),e.prototype.bindEvents=function(){this.bindMouseDown(),this.bindMouseMove(),this.bindMouseUp()},e.prototype.getPrepareSelectMaskTheme=function(){var t;return null===(t=this.spreadsheet.theme)||void 0===t?void 0:t.prepareSelectMask},e.prototype.initPrepareSelectMaskShape=function(){var t=this.spreadsheet.foregroundGroup;if(t){t.removeChild(this.prepareSelectMaskShape);var e=this.getPrepareSelectMaskTheme();this.prepareSelectMaskShape=t.addShape("rect",{visible:!1,attrs:{width:0,height:0,x:0,y:0,fill:null==e?void 0:e.backgroundColor,fillOpacity:null==e?void 0:e.backgroundOpacity,zIndex:5},capture:!1})}},e.prototype.setBrushSelectionStage=function(t){this.brushSelectionStage=t},e.prototype.isPointInCanvas=function(t){var e=this.spreadsheet.facet.getCanvasHW(),n=e.height,r=e.width,i=this.spreadsheet.facet.panelBBox,o=i.minX,a=i.minY;return t.x>o&&t.x<r&&t.y>a&&t.y<n},e.prototype.resetDrag=function(){this.hidePrepareSelectMaskShape(),this.setBrushSelectionStage(la.UN_DRAGGED)},e.prototype.isValidBrushSelection=function(){var t=this.getBrushRange(),e=t.start,n=t.end;return n.x-e.x>this.brushSelectionMinimumMoveDistance||n.y-e.y>this.brushSelectionMinimumMoveDistance},e.prototype.setDisplayedCells=function(){this.displayedCells=this.spreadsheet.interaction.getPanelGroupAllDataCells()},e.prototype.updatePrepareSelectMask=function(){var t=this.getBrushRange(),e=this.getPrepareSelectMaskPosition(t),n=e.x,r=e.y;this.prepareSelectMaskShape.attr({x:n,y:r,width:t.width,height:t.height}),this.prepareSelectMaskShape.show()},e.prototype.hidePrepareSelectMaskShape=function(){var t;null===(t=this.prepareSelectMaskShape)||void 0===t||t.hide()},e.prototype.resetScrollDelta=function(){this.autoScrollConfig=Md(ya)},e.prototype.getBrushPoint=function(t){var e=this.spreadsheet.facet.getScrollOffset(),n=e.scrollY,r=e.scrollX,i={x:null==t?void 0:t.x,y:null==t?void 0:t.y},o=this.spreadsheet.getCell(t.target).getMeta(),s=o.colIndex,l=o.rowIndex;return a(a({},i),{rowIndex:l,colIndex:s,scrollY:n,scrollX:r})},e.prototype.getBrushRange=function(){var t,e,n,r,i,o,a,s,l=this.spreadsheet.facet.getScrollOffset(),u=l.scrollX,c=l.scrollY,h=Math.min(this.startBrushPoint.rowIndex,null===(t=this.endBrushPoint)||void 0===t?void 0:t.rowIndex),d=Math.max(this.startBrushPoint.rowIndex,null===(e=this.endBrushPoint)||void 0===e?void 0:e.rowIndex),f=Math.min(this.startBrushPoint.colIndex,null===(n=this.endBrushPoint)||void 0===n?void 0:n.colIndex),p=Math.max(this.startBrushPoint.colIndex,null===(r=this.endBrushPoint)||void 0===r?void 0:r.colIndex),v=this.startBrushPoint.x+this.startBrushPoint.scrollX-u,g=this.startBrushPoint.y+this.startBrushPoint.scrollY-c,m=Math.min(v,null===(i=this.endBrushPoint)||void 0===i?void 0:i.x),y=Math.max(v,null===(o=this.endBrushPoint)||void 0===o?void 0:o.x),b=Math.min(g,null===(a=this.endBrushPoint)||void 0===a?void 0:a.y),w=Math.max(g,null===(s=this.endBrushPoint)||void 0===s?void 0:s.y);return{start:{rowIndex:h,colIndex:f,x:m,y:b},end:{rowIndex:d,colIndex:p,x:y,y:w},width:y-m,height:w-b}},e.prototype.getBrushRangeCells=function(){var t=this;return this.setDisplayedCells(),this.displayedCells.filter(function(e){var n=e.getMeta();return t.isInBrushRange(n)})},e.prototype.mouseDown=function(t){var e;null===(e=null==t?void 0:t.preventDefault)||void 0===e||e.call(t),this.spreadsheet.interaction.hasIntercepts([ha.CLICK])||(this.setBrushSelectionStage(la.CLICK),this.initPrepareSelectMaskShape(),this.setDisplayedCells(),this.startBrushPoint=this.getBrushPoint(t))},e.prototype.addBrushIntercepts=function(){this.spreadsheet.interaction.addIntercepts([ha.BRUSH_SELECTION])},e.prototype.bindMouseUp=function(t){var e=this;void 0===t&&(t=!1),this.spreadsheet.on(go.GLOBAL_MOUSE_UP,function(n){if(e.brushSelectionStage===la.DRAGGED){if(t&&e.clearAutoScroll(),e.isValidBrushSelection()){e.addBrushIntercepts(),e.updateSelectedCells();var r=OO(e.spreadsheet);e.spreadsheet.showTooltipWithInfo(n,r)}e.spreadsheet.interaction.getCurrentStateName()===oa.PREPARE_SELECT&&e.spreadsheet.interaction.reset(),e.resetDrag()}else e.resetDrag()}),this.spreadsheet.on(go.GLOBAL_CONTEXT_MENU,function(){e.brushSelectionStage!==la.UN_DRAGGED&&(e.spreadsheet.interaction.removeIntercepts([ha.HOVER]),e.resetDrag())})},e.prototype.autoBrushScroll=function(t,e){var n,r;if(void 0===e&&(e=!1),this.clearAutoScroll(),!this.isPointInCanvas(t)){var i=(null==t?void 0:t.x)-(null===(n=this.endBrushPoint)||void 0===n?void 0:n.x),o=(null==t?void 0:t.y)-(null===(r=this.endBrushPoint)||void 0===r?void 0:r.y);return this.handleScroll(i,o,e),!0}return!1},e.prototype.emitBrushSelectionEvent=function(t,e){this.spreadsheet.emit(t,e),this.spreadsheet.emit(go.GLOBAL_SELECTED,e),Hv(e)&&this.spreadsheet.interaction.removeIntercepts([ha.HOVER])},e.prototype.getVisibleBrushRangeCells=function(t){return this.brushRangeCells.find(function(e){var n=e.getMeta();return(null==n?void 0:n.id)===t})},e.prototype.isInBrushRange=function(t){return!1},e.prototype.bindMouseDown=function(){},e.prototype.bindMouseMove=function(){},e.prototype.updateSelectedCells=function(){},e.prototype.getPrepareSelectMaskPosition=function(t){return{x:t.start.x,y:t.start.y}},e}(aI),pI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.displayedCells=[],e.brushRangeCells=[],e.onUpdateCells=function(t){return t.updateCells(t.getAllColHeaderCells())},e}return o(e,t),e.prototype.bindEvents=function(){this.bindMouseDown(),this.bindMouseMove(),this.bindMouseUp()},e.prototype.bindMouseDown=function(){var e=this;this.spreadsheet.on(go.COL_CELL_MOUSE_DOWN,function(n){e.spreadsheet.interaction.getBrushSelection().col&&t.prototype.mouseDown.call(e,n)})},e.prototype.isPointInCanvas=function(t){var e=this.spreadsheet.facet.getCanvasHW().width,n=this.spreadsheet.facet.cornerBBox,r=n.width,i=n.minY,o=n.maxY;return t.x>=r&&t.x<=e&&t.y>=i&&t.y<=o},e.prototype.bindMouseMove=function(){var t=this;this.spreadsheet.on(go.COL_CELL_MOUSE_MOVE,function(e){if(t.brushSelectionStage!==la.UN_DRAGGED){t.setBrushSelectionStage(la.DRAGGED);var n=t.spreadsheet.container.getPointByEvent(e.originalEvent);t.isPointInCanvas(n)&&t.renderPrepareSelected(n)}})},e.prototype.setDisplayedCells=function(){this.displayedCells=this.spreadsheet.interaction.getAllColHeaderCells()},e.prototype.isInBrushRange=function(t){var e=this.getBrushRange(),n=e.start,r=e.end,i=this.spreadsheet.facet.getScrollOffset().scrollX,o=this.spreadsheet.facet.cornerBBox,a=t.x,s=void 0===a?0:a,l=t.y,u=void 0===l?0:l,c=t.width,h=void 0===c?0:c,d=t.height,f=void 0===d?0:d;return this.rectanglesIntersect({minX:n.x-o.width+i,minY:n.y,maxX:r.x-o.width+i,maxY:r.y},{minX:s,maxX:s+h,minY:u,maxY:u+f})},e.prototype.updateSelectedCells=function(){var t=this.spreadsheet.interaction;t.changeState({cells:Rp(this.brushRangeCells,SS),stateName:oa.BRUSH_SELECTED,onUpdateCells:this.onUpdateCells}),this.spreadsheet.emit(go.COL_CELL_BRUSH_SELECTION,this.brushRangeCells),this.spreadsheet.emit(go.GLOBAL_SELECTED,this.brushRangeCells),Hv(this.brushRangeCells)&&t.removeIntercepts([ha.HOVER])},e.prototype.addBrushIntercepts=function(){this.spreadsheet.interaction.addIntercepts([ha.COL_BRUSH_SELECTION])},e}(fI),vI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.displayedCells=[],e.brushRangeCells=[],e.getSelectedCellMetas=function(t){var n=[],r=e.spreadsheet.facet.layoutResult,i=r.rowLeafNodes,o=void 0===i?[]:i,a=r.colLeafNodes,s=void 0===a?[]:a,l=Um(t.start.rowIndex,t.end.rowIndex+1),u=Um(t.start.colIndex,t.end.colIndex+1);return l.forEach(function(t){u.forEach(function(r){var i=String(s[r].id),a=Hv(o)?String(t):String(o[t].id);n.push({colIndex:r,rowIndex:t,id:yx(a,i),type:aa.DATA_CELL,rowId:a,colId:i,spreadsheet:e.spreadsheet})})}),n},e}return o(e,t),e.prototype.bindMouseDown=function(){var e=this;this.spreadsheet.on(go.DATA_CELL_MOUSE_DOWN,function(n){e.spreadsheet.interaction.getBrushSelection().data&&(t.prototype.mouseDown.call(e,n),e.resetScrollDelta())})},e.prototype.bindMouseMove=function(){var t=this;this.spreadsheet.on(go.GLOBAL_MOUSE_MOVE,function(e){if(t.brushSelectionStage!==la.UN_DRAGGED){t.setBrushSelectionStage(la.DRAGGED);var n=t.spreadsheet.container.getPointByEvent(e);t.autoBrushScroll(n)||t.renderPrepareSelected(n)}})},e.prototype.isInBrushRange=function(t){var e=this.getBrushRange(),n=e.start,r=e.end,i=t.rowIndex,o=t.colIndex;return i>=n.rowIndex&&i<=r.rowIndex&&o>=n.colIndex&&o<=r.colIndex},e.prototype.updateSelectedCells=function(){var t=this.getBrushRange(),e=this.getSelectedCellMetas(t);this.spreadsheet.interaction.changeState({cells:e,stateName:oa.SELECTED,onUpdateCells:IS});var n=this.getScrollBrushRangeCells(e);this.emitBrushSelectionEvent(go.DATA_CELL_BRUSH_SELECTION,n)},e.prototype.getScrollBrushRangeCells=function(t){var e=this;return t.map(function(t){var n=e.getVisibleBrushRangeCells(t.id);if(n)return n;var r=e.spreadsheet.facet.layoutResult.getCellMeta(t.rowIndex,t.colIndex);return new(e.spreadsheet.isTableMode()?aS:Cx)(r,e.spreadsheet)})},e.prototype.bindMouseUp=function(){t.prototype.bindMouseUp.call(this,!0)},e.prototype.getPrepareSelectMaskPosition=function(t){var e=this.spreadsheet.facet.panelBBox,n=e.minX,r=e.minY;return{x:Math.max(t.start.x,n),y:Math.max(t.start.y,r)}},e}(fI),gI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isInBrushRange=function(t){var n=e.getBrushRange(),r=n.start,i=n.end,o=e.spreadsheet.facet.getScrollOffset(),a=o.scrollY,s=o.rowHeaderScrollX,l=e.spreadsheet.facet.cornerBBox,u=t.x,c=void 0===u?0:u,h=t.y,d=void 0===h?0:h,f=t.width,p=void 0===f?0:f,v=t.height,g=void 0===v?0:v;return e.rectanglesIntersect({minX:r.x+s,minY:r.y-l.height+a,maxX:i.x+s,maxY:i.y-l.height+a},{minX:c,maxX:c+p,minY:d,maxY:d+g})},e.onUpdateCells=function(t){return t.updateCells(t.getAllRowHeaderCells())},e.getSelectedRowNodes=function(){return e.spreadsheet.getRowNodes().filter(e.isInBrushRange)},e.getVisibleRowLeafCellByScrollDirection=function(t){var n=e.spreadsheet.interaction.getAllRowHeaderCells();return t===ga.SCROLL_DOWN?Yf(n):n.find(function(t){return t.getMeta().isLeaf})},e.getWillScrollToRowIndex=function(t){var n,r;if(!Yv(e.endBrushPoint.rowIndex))return e.getDefaultWillScrollToRowIndex(t);var i=e.getVisibleRowLeafCellByScrollDirection(t),o=(null!==(r=null===(n=null==i?void 0:i.getMeta())||void 0===n?void 0:n.rowIndex)&&void 0!==r?r:0)+e.getWillScrollRowIndexDiff(t);return e.validateYIndex(o)},e}return o(e,t),e.prototype.bindMouseDown=function(){var e=this;this.spreadsheet.on(go.ROW_CELL_MOUSE_DOWN,function(n){e.spreadsheet.interaction.getBrushSelection().row&&t.prototype.mouseDown.call(e,n)})},e.prototype.isPointInCanvas=function(t){var e=this.spreadsheet.facet.getCanvasHW().height,n=this.spreadsheet.facet.cornerBBox,r=n.minX,i=n.height,o=n.maxX;return t.x>=r&&t.x<=o&&t.y>=i&&t.y<=e},e.prototype.bindMouseMove=function(){var t=this;this.spreadsheet.on(go.GLOBAL_MOUSE_MOVE,function(e){if(t.brushSelectionStage!==la.UN_DRAGGED){t.setBrushSelectionStage(la.DRAGGED);var n=t.spreadsheet.container.getPointByEvent(e);t.autoBrushScroll(n,!0)||t.renderPrepareSelected(n)}})},e.prototype.setDisplayedCells=function(){this.displayedCells=this.spreadsheet.interaction.getAllRowHeaderCells()},e.prototype.updateSelectedCells=function(){var t=this.getSelectedRowNodes(),e=this.getScrollBrushRangeCells(t),n=Rp(e,SS);this.spreadsheet.interaction.changeState({cells:n,stateName:oa.BRUSH_SELECTED,onUpdateCells:this.onUpdateCells}),this.emitBrushSelectionEvent(go.ROW_CELL_BRUSH_SELECTION,e)},e.prototype.addBrushIntercepts=function(){this.spreadsheet.interaction.addIntercepts([ha.ROW_BRUSH_SELECTION])},e.prototype.getScrollBrushRangeCells=function(t){var e=this;return t.map(function(t){var n=e.getVisibleBrushRangeCells(t.id);return n||e.spreadsheet.facet.rowHeader.createCellInstance(t)})},e.prototype.getPrepareSelectMaskPosition=function(t){var e=this.spreadsheet.facet.panelBBox.minY;return{x:t.start.x,y:Math.max(t.start.y,e)}},e}(fI),mI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isMultiSelection=!1,e}return o(e,t),e.prototype.bindEvents=function(){this.bindKeyboardDown(),this.bindDataCellClick(),this.bindKeyboardUp(),this.bindMouseMove()},e.prototype.reset=function(){this.isMultiSelection=!1,this.spreadsheet.interaction.removeIntercepts([ha.CLICK])},e.prototype.bindKeyboardDown=function(){var t=this;this.spreadsheet.on(go.GLOBAL_KEYBOARD_DOWN,function(e){_S(e)&&(t.isMultiSelection=!0,t.spreadsheet.interaction.addIntercepts([ha.CLICK]))})},e.prototype.bindKeyboardUp=function(){var t=this;this.spreadsheet.on(go.GLOBAL_KEYBOARD_UP,function(e){_S(e)&&t.reset()})},e.prototype.bindMouseMove=function(){var t=this;this.spreadsheet.on(go.GLOBAL_MOUSE_MOVE,function(e){t.isMultiSelection&&!xS(e)&&t.reset()})},e.prototype.getSelectedCells=function(t){var e=t.getMeta().id,n=this.spreadsheet.interaction,r=n.getCells([aa.DATA_CELL]);return n.getCurrentStateName()!==oa.SELECTED&&(r=[]),r.find(function(t){return t.id===e})?r.filter(function(t){return t.id!==e}):c(c([],u(r),!1),[SS(t)],!1)},e.prototype.bindDataCellClick=function(){var t=this;this.spreadsheet.on(go.DATA_CELL_CLICK,function(e){e.stopPropagation();var n=t.spreadsheet.getCell(e.target),r=n.getMeta(),i=t.spreadsheet.interaction;if(t.isMultiSelection&&r){var o=t.getSelectedCells(n);if(Hv(o))return i.clearState(),t.spreadsheet.hideTooltip(),void t.spreadsheet.emit(go.GLOBAL_SELECTED,i.getActiveCells());i.addIntercepts([ha.CLICK,ha.HOVER]),t.spreadsheet.hideTooltip(),i.changeState({cells:o,stateName:oa.SELECTED,onUpdateCells:IS}),t.spreadsheet.emit(go.GLOBAL_SELECTED,i.getActiveCells()),t.spreadsheet.showTooltipWithInfo(e,OO(t.spreadsheet))}})},e}(aI),yI=function(){function t(t){var e=this;this.canvasEventHandlers=[],this.s2EventHandlers=[],this.domEventListeners=[],this.isCanvasEffect=!1,this.isGuiIconShape=function(t){return t instanceof Fi&&t.attrs.type===_C.type},this.onCanvasMousedown=function(t){if(e.target=t.target,e.spreadsheet.interaction.clearHoverTimer(),e.isResizeArea(t)){e.spreadsheet.emit(go.LAYOUT_RESIZE_MOUSE_DOWN,t);var n=function(n){if(!e.spreadsheet.getCanvasElement())return!1;e.spreadsheet.getCanvasElement()!==n.target&&(t.clientX=n.clientX,t.clientY=n.clientY,t.originalEvent=n,e.spreadsheet.emit(go.LAYOUT_RESIZE_MOUSE_MOVE,t))};return window.addEventListener("mousemove",n),void window.addEventListener("mouseup",function(){window.removeEventListener("mousemove",n)},{once:!0})}switch(e.spreadsheet.getCellType(t.target)){case aa.DATA_CELL:e.spreadsheet.emit(go.DATA_CELL_MOUSE_DOWN,t);break;case aa.ROW_CELL:e.spreadsheet.emit(go.ROW_CELL_MOUSE_DOWN,t);break;case aa.COL_CELL:e.spreadsheet.emit(go.COL_CELL_MOUSE_DOWN,t);break;case aa.CORNER_CELL:e.spreadsheet.emit(go.CORNER_CELL_MOUSE_DOWN,t);break;case aa.MERGED_CELL:e.spreadsheet.emit(go.MERGED_CELLS_MOUSE_DOWN,t)}},this.onCanvasMousemove=function(t){if(e.canvasMousemoveEvent=t,e.isResizeArea(t))return e.activeResizeArea(t),void e.spreadsheet.emit(go.LAYOUT_RESIZE_MOUSE_MOVE,t);e.resetResizeArea();var n=e.spreadsheet.getCell(t.target);if(n){var r=n.cellType;switch(r){case aa.DATA_CELL:e.spreadsheet.emit(go.DATA_CELL_MOUSE_MOVE,t);break;case aa.ROW_CELL:e.spreadsheet.emit(go.ROW_CELL_MOUSE_MOVE,t);break;case aa.COL_CELL:e.spreadsheet.emit(go.COL_CELL_MOUSE_MOVE,t);break;case aa.CORNER_CELL:e.spreadsheet.emit(go.CORNER_CELL_MOUSE_MOVE,t);break;case aa.MERGED_CELL:e.spreadsheet.emit(go.MERGED_CELLS_MOUSE_MOVE,t)}if(!e.hasBrushSelectionIntercepts())switch(e.spreadsheet.emit(go.GLOBAL_HOVER,t),r){case aa.DATA_CELL:e.spreadsheet.emit(go.DATA_CELL_HOVER,t);break;case aa.ROW_CELL:e.spreadsheet.emit(go.ROW_CELL_HOVER,t);break;case aa.COL_CELL:e.spreadsheet.emit(go.COL_CELL_HOVER,t);break;case aa.CORNER_CELL:e.spreadsheet.emit(go.CORNER_CELL_HOVER,t);break;case aa.MERGED_CELL:e.spreadsheet.emit(go.MERGED_CELLS_HOVER,t)}}},this.onCanvasMouseup=function(t){if(e.isResizeArea(t))e.spreadsheet.emit(go.LAYOUT_RESIZE_MOUSE_UP,t);else{var n=e.spreadsheet.getCell(t.target);if(n){var r=n.cellType;if(e.target===t.target){var i=e.isGuiIconShape(t.target);switch(r){case aa.DATA_CELL:e.spreadsheet.emit(go.DATA_CELL_CLICK,t);break;case aa.ROW_CELL:if(i)break;e.spreadsheet.emit(go.ROW_CELL_CLICK,t);break;case aa.COL_CELL:if(i)break;e.spreadsheet.emit(go.COL_CELL_CLICK,t);break;case aa.CORNER_CELL:if(i)break;e.spreadsheet.emit(go.CORNER_CELL_CLICK,t);break;case aa.MERGED_CELL:e.spreadsheet.emit(go.MERGED_CELLS_CLICK,t)}}switch(r){case aa.DATA_CELL:e.spreadsheet.emit(go.DATA_CELL_MOUSE_UP,t);break;case aa.ROW_CELL:e.spreadsheet.emit(go.ROW_CELL_MOUSE_UP,t);break;case aa.COL_CELL:e.spreadsheet.emit(go.COL_CELL_MOUSE_UP,t);break;case aa.CORNER_CELL:e.spreadsheet.emit(go.CORNER_CELL_MOUSE_UP,t);break;case aa.MERGED_CELL:e.spreadsheet.emit(go.MERGED_CELLS_MOUSE_UP,t)}}}},this.onCanvasClick=function(t){e.spreadsheet.emit(go.GLOBAL_CLICK,t)},this.onCanvasDoubleClick=function(t){var n=e.spreadsheet;if(e.isResizeArea(t))n.emit(go.LAYOUT_RESIZE_MOUSE_UP,t);else{n.emit(go.GLOBAL_DOUBLE_CLICK,t);var r=n.getCell(t.target);if(r){var i=r.cellType;if(e.target===t.target)switch(i){case aa.DATA_CELL:n.emit(go.DATA_CELL_DOUBLE_CLICK,t);break;case aa.ROW_CELL:n.emit(go.ROW_CELL_DOUBLE_CLICK,t);break;case aa.COL_CELL:n.emit(go.COL_CELL_DOUBLE_CLICK,t);break;case aa.CORNER_CELL:n.emit(go.CORNER_CELL_DOUBLE_CLICK,t);break;case aa.MERGED_CELL:n.emit(go.MERGED_CELLS_DOUBLE_CLICK,t)}}}},this.onCanvasMouseout=function(t){if(e.isAutoResetSheetStyle&&!(null==t?void 0:t.shape)){var n=e.spreadsheet.interaction;n.isSelectedState()||n.intercepts.size>0||n.reset()}},this.onCanvasContextMenu=function(t){var n=e.spreadsheet;if(e.isResizeArea(t))n.emit(go.LAYOUT_RESIZE_MOUSE_UP,t);else switch(n.emit(go.GLOBAL_CONTEXT_MENU,t),e.spreadsheet.getCellType(t.target)){case aa.DATA_CELL:e.spreadsheet.emit(go.DATA_CELL_CONTEXT_MENU,t);break;case aa.ROW_CELL:e.spreadsheet.emit(go.ROW_CELL_CONTEXT_MENU,t);break;case aa.COL_CELL:e.spreadsheet.emit(go.COL_CELL_CONTEXT_MENU,t);break;case aa.CORNER_CELL:e.spreadsheet.emit(go.CORNER_CELL_CONTEXT_MENU,t);break;case aa.MERGED_CELL:e.spreadsheet.emit(go.MERGED_CELLS_CONTEXT_MENU,t)}},this.spreadsheet=t,this.bindEvents()}return Object.defineProperty(t.prototype,"canvasContainer",{get:function(){return this.spreadsheet.container},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAutoResetSheetStyle",{get:function(){return this.spreadsheet.options.interaction.autoResetSheetStyle},enumerable:!1,configurable:!0}),t.prototype.bindEvents=function(){var t=this;this.clearAllEvents(),this.addCanvasEvent(vo.CLICK,this.onCanvasClick),this.addCanvasEvent(vo.MOUSE_DOWN,this.onCanvasMousedown),this.addCanvasEvent(vo.MOUSE_MOVE,this.onCanvasMousemove),this.addCanvasEvent(vo.MOUSE_OUT,this.onCanvasMouseout),this.addCanvasEvent(vo.MOUSE_UP,this.onCanvasMouseup),this.addCanvasEvent(vo.DOUBLE_CLICK,this.onCanvasDoubleClick),this.addCanvasEvent(vo.CONTEXT_MENU,this.onCanvasContextMenu),this.addS2Event(go.GLOBAL_ACTION_ICON_CLICK,function(){t.spreadsheet.interaction.addIntercepts([ha.HOVER]),t.spreadsheet.interaction.clearState()}),this.addDomEventListener(window,vo.CLICK,function(e){t.resetSheetStyle(e),t.isCanvasEffect=t.isMouseOnTheCanvasContainer(e)}),this.addDomEventListener(window,vo.KEY_DOWN,function(e){t.onKeyboardCopy(e),t.onKeyboardEsc(e),t.spreadsheet.emit(go.GLOBAL_KEYBOARD_DOWN,e)}),this.addDomEventListener(window,vo.KEY_UP,function(e){t.spreadsheet.emit(go.GLOBAL_KEYBOARD_UP,e)}),this.addDomEventListener(window,vo.MOUSE_UP,function(e){t.spreadsheet.emit(go.GLOBAL_MOUSE_UP,e)}),this.addDomEventListener(window,vo.MOUSE_MOVE,function(e){t.spreadsheet.emit(go.GLOBAL_MOUSE_MOVE,e)})},t.prototype.onKeyboardCopy=function(t){if(this.isCanvasEffect&&this.spreadsheet.options.interaction.enableCopy&&H_(t.key,ua.COPY)&&(t.metaKey||t.ctrlKey)){var e=function(t){var e,n,r=t.interaction,i=r.getState().cells||[],o=null!==(e=r.getInteractedCells())&&void 0!==e?e:[];return(n=!Hv(o)&&yp(o,function(t){return t.cellType===aa.ROW_CELL||t.cellType===aa.COL_CELL})?ix(o):sx(t,i))&&ux(n),Z_(n,j_.PLAIN)}(this.spreadsheet);Yv(e)||this.spreadsheet.emit(go.GLOBAL_COPIED,e)}},t.prototype.onKeyboardEsc=function(t){this.isCanvasEffect&&H_(t.key,ua.ESC)&&this.resetSheetStyle(t)},t.prototype.resetSheetStyle=function(t){if(this.isAutoResetSheetStyle&&this.spreadsheet){var e=this.spreadsheet.interaction;e.hasIntercepts([ha.BRUSH_SELECTION,ha.COL_BRUSH_SELECTION,ha.ROW_BRUSH_SELECTION])?e.removeIntercepts([ha.BRUSH_SELECTION,ha.ROW_BRUSH_SELECTION,ha.COL_BRUSH_SELECTION]):this.isMouseOnTheTooltip(t)||this.isMouseOnTheCanvasContainer(t)||(e.reset(),this.spreadsheet.emit(go.GLOBAL_RESET,t),this.spreadsheet.emit(go.GLOBAL_SELECTED,e.getActiveCells()))}},t.prototype.isMouseEvent=function(t){return tf(t,"clientX")&&tf(t,"clientY")},t.prototype.isMouseOnTheCanvasContainer=function(t){if(this.isMouseEvent(t)){var e=this.spreadsheet.getCanvasElement();if(!e)return!1;if(this.spreadsheet.options.supportCSSTransform)return e.contains(t.target);var n=e.getBoundingClientRect()||{},r=n.x,i=n.y,o=this.getContainerRect(),a=o.width,s=o.height;return e.contains(t.target)&&t.clientX<=r+a&&t.clientY<=i+s}return!1},t.prototype.getContainerRect=function(){var t,e=this.spreadsheet,n=e.facet,r=e.options,i=(null==n?void 0:n.hRowScrollBar)||(null==n?void 0:n.hScrollBar),o=(null==n?void 0:n.panelBBox)||{},a=o.maxX,s=o.maxY,l=r.width,u=r.height,c=(null===(t=null==i?void 0:i.theme)||void 0===t?void 0:t.size)||0;return{width:Math.min(l,a),height:Math.min(u,s+c)}},t.prototype.isMouseOnTheTooltip=function(t){var e,n,r,i,o=this.spreadsheet.tooltip;if(!(null==o?void 0:o.visible))return!1;var a=(null===(r=null===(n=null===(e=this.spreadsheet.tooltip)||void 0===e?void 0:e.container)||void 0===n?void 0:n.getBoundingClientRect)||void 0===r?void 0:r.call(n))||{},s=a.x,l=a.y,u=a.width,c=a.height;return t.target instanceof Node?function(t,e){for(var n=!1,r=e;r&&r!==document.body;){if(t===r){n=!0;break}r=r.parentElement}return n}(null===(i=this.spreadsheet.tooltip)||void 0===i?void 0:i.container,t.target):!!this.isMouseEvent(t)&&(t.clientX>=s&&t.clientX<=s+u&&t.clientY>=l&&t.clientY<=l+c)},t.prototype.isResizeArea=function(t){var e=Yu(t.target,"attrs.appendInfo");return null==e?void 0:e.isResizeArea},t.prototype.activeResizeArea=function(t){this.resetResizeArea();var e=t.target;this.spreadsheet.store.set("activeResizeArea",e),e.attr(da.backgroundOpacity,this.spreadsheet.theme.resizeArea.interactionState.hover.backgroundOpacity)},t.prototype.resetResizeArea=function(){var t=this.spreadsheet.store.get("activeResizeArea");Hv(t)||t.attr(da.backgroundOpacity,this.spreadsheet.theme.resizeArea.backgroundOpacity),this.spreadsheet.store.set("activeResizeArea",t)},t.prototype.hasBrushSelectionIntercepts=function(){return this.spreadsheet.interaction.hasIntercepts([ha.HOVER,ha.BRUSH_SELECTION,ha.ROW_BRUSH_SELECTION,ha.COL_BRUSH_SELECTION])},t.prototype.clear=function(){this.unbindEvents()},t.prototype.unbindEvents=function(){this.clearAllEvents()},t.prototype.addCanvasEvent=function(t,e){var n;null===(n=this.canvasContainer)||void 0===n||n.on(t,e),this.canvasEventHandlers.push({type:t,handler:e})},t.prototype.addS2Event=function(t,e){this.spreadsheet.on(t,e),this.s2EventHandlers.push({type:t,handler:e})},t.prototype.addDomEventListener=function(t,e,n){if(t.addEventListener){var r=this.spreadsheet.options.interaction.eventListenerOptions;t.addEventListener(e,n,r),this.domEventListeners.push({target:t,type:e,handler:n,options:r})}},t.prototype.clearAllEvents=function(){var t=this;ep(this.canvasEventHandlers,function(e){var n,r=e.type,i=e.handler;null===(n=t.canvasContainer)||void 0===n||n.off(r,i)}),ep(this.s2EventHandlers,function(e){var n=e.type,r=e.handler;t.spreadsheet.off(n,r)}),ep(this.domEventListeners,function(t){t.target.removeEventListener(t.type,t.handler,t.options)}),this.canvasEventHandlers=[],this.s2EventHandlers=[],this.domEventListeners=[]},t}(),bI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isRangeSelection=!1,e.handleColClick=function(t){t.stopPropagation();var n=e.spreadsheet.interaction,r=e.spreadsheet.getCell(t.target),i=null==r?void 0:r.getMeta();if(!Yv(null==i?void 0:i.x)){n.addIntercepts([ha.HOVER]);var o=[SS(r)],a=e.spreadsheet.store.get("lastClickedCell");if(e.isRangeSelection&&a&&a.cellType===r.cellType&&a.getMeta().level===r.getMeta().level){var s=u([e.spreadsheet.facet.layoutResult.rowsHierarchy.maxLevel,e.spreadsheet.facet.layoutResult.colsHierarchy.maxLevel],2),l=s[0],c=s[1],h=ES(a.getMeta(),r.getMeta()),d=h.start,f=h.end;r instanceof Cx?o=e.handleSeriesNumberRowSelected(d.rowIndex,f.rowIndex,r):r.cellType===aa.ROW_CELL&&r.getMeta().level===l?o=e.handleRowSelected(d.rowIndex,f.rowIndex,r):r.cellType===aa.COL_CELL&&r.getMeta().level===c&&(o=e.handleColSelected(d.colIndex,f.colIndex,r)),n.changeState({cells:o,stateName:oa.SELECTED})}else Hv(n.getCells())&&n.removeIntercepts([ha.HOVER]),e.spreadsheet.store.set("lastClickedCell",r);var p=o.map(function(t){return t.id});n.updateCells(n.getRowColActiveCells(p)),e.spreadsheet.emit(go.GLOBAL_SELECTED,n.getActiveCells())}},e}return o(e,t),e.prototype.bindEvents=function(){this.bindKeyboardDown(),this.bindDataCellClick(),this.bindColCellClick(),this.bindKeyboardUp(),this.bindMouseMove()},e.prototype.reset=function(){this.isRangeSelection=!1,this.spreadsheet.interaction.removeIntercepts([ha.CLICK])},e.prototype.bindKeyboardDown=function(){var t=this;this.spreadsheet.on(go.GLOBAL_KEYBOARD_DOWN,function(e){e.key===ua.SHIFT&&(t.isRangeSelection=!0,t.spreadsheet.interaction.addIntercepts([ha.CLICK]))})},e.prototype.bindKeyboardUp=function(){var t=this;this.spreadsheet.on(go.GLOBAL_KEYBOARD_UP,function(e){e.key===ua.SHIFT&&t.reset()})},e.prototype.bindMouseMove=function(){var t=this;this.spreadsheet.on(go.GLOBAL_MOUSE_MOVE,function(e){t.isRangeSelection&&!e.shiftKey&&t.reset()})},e.prototype.bindColCellClick=function(){var t=this;this.spreadsheet.isTableMode()&&this.spreadsheet.on(go.ROW_CELL_CLICK,function(e){t.handleColClick(e)}),this.spreadsheet.on(go.COL_CELL_CLICK,function(e){t.handleColClick(e)})},e.prototype.bindDataCellClick=function(){var t=this;this.spreadsheet.on(go.DATA_CELL_CLICK,function(e){e.stopPropagation();var n=t.spreadsheet.getCell(e.target),r=n.getMeta(),i=t.spreadsheet.interaction;if(r){var o=t.spreadsheet.store.get("lastClickedCell");if(t.isRangeSelection&&(null==o?void 0:o.cellType)===n.cellType){var a=ES(o.getMeta(),n.getMeta()),s=a.start,l=a.end,u=Um(s.colIndex,l.colIndex+1).flatMap(function(e){var r=t.spreadsheet.facet.layoutResult.colLeafNodes[e].id;return Um(s.rowIndex,l.rowIndex+1).map(function(i){return{id:(t.spreadsheet.facet.getSeriesNumberWidth()||t.spreadsheet.isTableMode()?String(i):t.spreadsheet.facet.layoutResult.rowLeafNodes[i].id)+"-"+r,colIndex:e,rowIndex:i,type:n.cellType}})});i.addIntercepts([ha.CLICK,ha.HOVER]),i.changeState({cells:u,stateName:oa.SELECTED}),t.spreadsheet.showTooltipWithInfo(e,OO(t.spreadsheet)),t.spreadsheet.emit(go.GLOBAL_SELECTED,i.getActiveCells())}else t.spreadsheet.store.set("lastClickedCell",n)}})},e.prototype.handleSeriesNumberRowSelected=function(t,e,n){var r=this.spreadsheet.facet.layoutResult.colLeafNodes[0].id;return Um(t,e+1).map(function(t){return{id:String(t)+"-"+r,colIndex:0,rowIndex:t,type:n.cellType}})},e.prototype.handleRowSelected=function(t,e,n){return this.spreadsheet.facet.layoutResult.rowNodes.filter(function(n){return rv(n.rowIndex,t,e+1)}).map(function(t){return{id:t.id,colIndex:t.colIndex,rowIndex:t.rowIndex,type:n.cellType}})},e.prototype.handleColSelected=function(t,e,n){return this.spreadsheet.facet.layoutResult.colLeafNodes.filter(function(n){return rv(n.colIndex,t,e+1)}).map(function(t){return{id:t.id,colIndex:t.colIndex,rowIndex:t.rowIndex,type:n.cellType}})},e}(aI),wI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.resizeStartPosition={},e.resizeMouseMove=function(t){var n,r;if(null===(n=e.resizeReferenceGroup)||void 0===n?void 0:n.get("visible")){null===(r=null==t?void 0:t.preventDefault)||void 0===r||r.call(t);var i=t.originalEvent,o=e.getResizeInfo(),a=e.resizeReferenceGroup.getChildren()||[];if(!Hv(a)){var s=u(a,2)[1],l=u(Id(s.attr("path")),2),c=l[0],h=l[1];o.type===ba.Horizontal?e.updateHorizontalResizingEndGuideLinePosition(i,o,c,h):e.updateVerticalResizingEndGuideLinePosition(i,o,c,h),e.updateResizeGuideLineTheme(s),s.attr("path",[c,h])}}},e}return o(e,t),e.prototype.bindEvents=function(){this.bindMouseDown(),this.bindMouseMove(),this.bindMouseUp()},e.prototype.initResizeGroup=function(){if(!this.resizeReferenceGroup){this.resizeReferenceGroup=this.spreadsheet.foregroundGroup.addGroup();var t=this.spreadsheet.options,e=t.width,n=t.height,r=this.getResizeAreaTheme(),i=r.guideLineColor,o={path:"",lineDash:r.guideLineDash,stroke:i,lineWidth:r.size};this.resizeReferenceGroup.addShape("path",{id:"RESIZE_START_GUIDE_LINE",attrs:o}),this.resizeReferenceGroup.addShape("path",{id:"RESIZE_END_GUIDE_LINE",attrs:o}),this.resizeReferenceGroup.addShape("rect",{id:"RESIZE_MASK",attrs:{appendInfo:{isResizeArea:!0},x:0,y:0,width:e,height:n,fill:"transparent"}})}},e.prototype.getResizeAreaTheme=function(){return this.spreadsheet.theme.resizeArea},e.prototype.setResizeTarget=function(t){this.resizeTarget=t},e.prototype.getGuideLineWidthAndHeight=function(){var t=this.spreadsheet.options,e=t.width,n=t.height,r=this.spreadsheet.facet.panelBBox,i=r.maxY,o=r.maxX;return{width:Math.min(o,e),height:Math.min(i,n)}},e.prototype.getResizeShapes=function(){var t;return(null===(t=this.resizeReferenceGroup)||void 0===t?void 0:t.get("children"))||[]},e.prototype.setResizeMaskCursor=function(t){var e=u(this.getResizeShapes(),3)[2];null==e||e.attr("cursor",t)},e.prototype.updateResizeGuideLinePosition=function(t,e){var n=this.getResizeShapes();if(!Hv(n)){var r=u(n,2),i=r[0],o=r[1],a=e.type,s=e.offsetX,l=e.offsetY,c=e.width,h=e.height,d=this.getGuideLineWidthAndHeight(),f=d.width,p=d.height;if(this.setResizeMaskCursor("".concat(a,"-resize")),a===ba.Horizontal)return i.attr("path",[["M",s,l],["L",s,p]]),o.attr("path",[["M",s+c,l],["L",s+c,p]]),this.resizeStartPosition.offsetX=t.offsetX,void(this.resizeStartPosition.clientX=t.clientX);i.attr("path",[["M",s,l],["L",f,l]]),o.attr("path",[["M",s,l+h],["L",f,l+h]]),this.resizeStartPosition.offsetY=t.offsetY,this.resizeStartPosition.clientY=t.clientY}},e.prototype.bindMouseDown=function(){var t=this;this.spreadsheet.on(go.LAYOUT_RESIZE_MOUSE_DOWN,function(e){var n;null===(n=null==e?void 0:e.preventDefault)||void 0===n||n.call(e);var r=e.target,i=e.originalEvent,o=t.getCellAppendInfo(e.target);t.spreadsheet.store.set("resized",!1),(null==o?void 0:o.isResizeArea)&&(t.spreadsheet.interaction.reset(),t.spreadsheet.interaction.addIntercepts([ha.RESIZE]),t.setResizeTarget(r),t.showResizeGroup(),t.updateResizeGuideLinePosition(i,o))})},e.prototype.bindMouseMove=function(){var t=this;this.spreadsheet.on(go.LAYOUT_RESIZE_MOUSE_MOVE,function(e){Vy(t.resizeMouseMove,33)(e)})},e.prototype.getResizeGuideLinePosition=function(){var t=u(this.resizeReferenceGroup.getChildren()||[],2),e=t[0],n=t[1],r=(null==e?void 0:e.attr("path"))||[],i=(null==n?void 0:n.attr("path"))||[],o=u(r[0]||[],3),a=o[1],s=void 0===a?0:a,l=o[2],c=void 0===l?0:l,h=u(i[0]||[],3),d=h[1],f=void 0===d?0:d,p=h[2];return{start:{x:s,y:c},end:{x:f,y:void 0===p?0:p}}},e.prototype.getDisAllowResizeInfo=function(){var t,e=this.getResizeInfo(),n=this.spreadsheet.options.interaction.resize,r=e.width,i=e.height,o=e.resizedWidth,a=e.resizedHeight,s=null===(t=null==n?void 0:n.disable)||void 0===t?void 0:t.call(n,e);return{displayWidth:s?r:o,displayHeight:s?i:a,isDisabled:s}},e.prototype.getResizeWidthDetail=function(){var t,e,n=this.getResizeInfo(),r=this.getDisAllowResizeInfo().displayWidth;switch(n.effect){case wa.Field:return{eventType:go.LAYOUT_RESIZE_ROW_WIDTH,style:{rowCfg:{widthByField:(t={},t[n.id]=r,t)}}};case wa.Tree:return{eventType:go.LAYOUT_RESIZE_TREE_WIDTH,style:{treeRowsWidth:r,rowCfg:{treeRowsWidth:r}}};case wa.Cell:return{eventType:go.LAYOUT_RESIZE_COL_WIDTH,style:{colCfg:{widthByFieldValue:(e={},e[n.id]=r,e)}}};case wa.Series:return{eventType:go.LAYOUT_RESIZE_SERIES_WIDTH,seriesNumberWidth:r};default:return null}},e.prototype.getResizeHeightDetail=function(){var t,e,n,r=this.spreadsheet.options,i=r.interaction.resize,o=r.style.rowCfg.heightByField,a=this.spreadsheet.theme.rowCell.cell.padding,s=this.getResizeInfo(),l=this.getDisAllowResizeInfo().displayHeight,u=this.spreadsheet.isPivotMode()?l-a.top-a.bottom:l;switch(s.effect){case wa.Field:return{eventType:go.LAYOUT_RESIZE_COL_HEIGHT,style:{colCfg:{heightByField:(t={},t[s.id]=l,t)}}};case wa.Cell:return n=(null==o?void 0:o[String(s.id)])||(null==i?void 0:i.rowResizeType)===Ca.CURRENT?{rowCfg:{heightByField:(e={},e[s.id]=u,e)}}:{cellCfg:{height:u}},{eventType:go.LAYOUT_RESIZE_ROW_HEIGHT,style:n};default:return null}},e.prototype.getResizeDetail=function(){return this.getResizeInfo().type===ba.Horizontal?this.getResizeWidthDetail():this.getResizeHeightDetail()},e.prototype.showResizeGroup=function(){this.initResizeGroup(),this.resizeReferenceGroup.set("visible",!0)},e.prototype.hideResizeGroup=function(){this.resizeReferenceGroup.set("visible",!1)},e.prototype.bindMouseUp=function(){var t=this;this.spreadsheet.on(go.GLOBAL_MOUSE_UP,function(){var e;t.setResizeMaskCursor("default"),t.resizeReferenceGroup&&!Hv(null===(e=t.resizeReferenceGroup)||void 0===e?void 0:e.getChildren())&&(t.hideResizeGroup(),t.renderResizedResult())})},e.prototype.updateResizeGuideLineTheme=function(t){var e=this.getResizeAreaTheme(),n=e.guideLineColor,r=e.guideLineDisableColor,i=this.getDisAllowResizeInfo().isDisabled;t.attr("stroke",i?r:n),this.setResizeMaskCursor(i?"no-drop":"default")},e.prototype.updateHorizontalResizingEndGuideLinePosition=function(t,e,n,r){var i=t.clientX-this.resizeStartPosition.clientX;e.width+i<28&&(i=-(e.width-28));var o=e.offsetX+e.width+i;n[1]=o,r[1]=o,this.resizeTarget.attr({x:o-e.size/2})},e.prototype.updateVerticalResizingEndGuideLinePosition=function(t,e,n,r){var i=t.clientY-this.resizeStartPosition.clientY;e.height+i<16&&(i=-(e.height-16));var o=e.offsetY+e.height+i;n[2]=o,r[2]=o,this.resizeTarget.attr({y:o-e.size/2})},e.prototype.renderResizedResult=function(){var t=this.getResizeInfo(),e=this.getResizeDetail()||{},n=e.style,r=e.seriesNumberWidth,i=e.eventType,o={info:t,style:n};this.spreadsheet.emit(go.LAYOUT_RESIZE,o),this.spreadsheet.emit(i,o),n&&this.spreadsheet.setOptions({style:n}),r&&this.spreadsheet.setTheme({rowCell:{seriesNumberWidth:r}}),this.spreadsheet.store.set("resized",!0),this.render()},e.prototype.getResizeInfo=function(){var t=this.getCellAppendInfo(this.resizeTarget),e=this.getResizeGuideLinePosition(),n=e.start,r=e.end,i=Math.floor(r.x-n.x),o=Math.floor(r.y-n.y);return a(a({},t),{resizedWidth:i,resizedHeight:o})},e.prototype.render=function(){this.resizeStartPosition={},this.resizeTarget=null,this.resizeReferenceGroup=null,this.spreadsheet.render(!1)},e}(aI),CI=[ua.ARROW_LEFT,ua.ARROW_RIGHT,ua.ARROW_UP,ua.ARROW_DOWN],_I=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.isCanvasEffect=function(){return this.spreadsheet.interaction.eventController.isCanvasEffect},e.prototype.bindEvents=function(){var t=this;this.spreadsheet.on(go.GLOBAL_KEYBOARD_DOWN,function(e){if(t.isCanvasEffect()){var n=e.shiftKey,r=e.metaKey,i=!1,o=!1,a=!1;CI.includes(e.key)&&(r&&n?(i=!1,o=!0,a=!1):r?(i=!0,o=!0,a=!0):n?(i=!1,o=!1,a=!1):(i=!0,o=!1,a=!0),t.handleMove({event:e,changeStartCell:i,isJumpMode:o,isSingleSelection:a}))}}),this.spreadsheet.on(go.DATA_CELL_CLICK,function(e){var n=t.spreadsheet.getCell(e.target).getMeta();n&&(t.startCell=t.getCellMetaFromViewMeta(n),t.endCell=t.startCell)})},e.prototype.getCellMetaFromViewMeta=function(t){return{rowIndex:t.rowIndex,colIndex:t.colIndex,id:t.id,type:aa.DATA_CELL}},e.prototype.handleMove=function(t){var e=t.event,n=t.changeStartCell,r=t.isJumpMode,i=t.isSingleSelection,o=this,a=o.spreadsheet,s=o.startCell,l=o.endCell,c=n?s:l,h=this.getMoveInfo(e.key,c,r);if(h){var d=u([h.row,h.col],2),f=d[0],p=d[1];this.scrollToActiveCell(a,f,p);var v=this.generateCellMeta(a,f,p),g=i?[v]:this.getRangeCells(a,s,v);!function(t,e){var n=t.interaction;n.changeState({stateName:oa.SELECTED,cells:e}),t.emit(go.GLOBAL_SELECTED,n.getActiveCells())}(a,g),n&&(this.startCell=v),this.endCell=v,this.spreadsheet.emit(go.DATA_CELL_SELECT_MOVE,g)}},e.prototype.generateCellMeta=function(t,e,n){var r=t.isTableMode,i=t.facet.layoutResult,o=i.colLeafNodes,a=i.rowLeafNodes,s=r()?String(e):a[e].id,l=o[n].id;return{rowIndex:e,colIndex:n,id:yx(s,l),type:aa.DATA_CELL}},e.prototype.getRangeCells=function(t,e,n){for(var r=ES(e,n),i=r.start,o=i.rowIndex,a=i.colIndex,s=r.end,l=s.rowIndex,u=s.colIndex,c=[],h=o;h<=l;h++)for(var d=a;d<=u;d++)c.push(this.generateCellMeta(t,h,d));return c},e.prototype.getMoveInfo=function(t,e,n){var r=this.spreadsheet,i=r.options,o=i.frozenColCount,a=void 0===o?0:o,s=i.frozenRowCount,l=void 0===s?0:s,c=i.frozenTrailingColCount,h=void 0===c?0:c,d=i.frozenTrailingRowCount,f=void 0===d?0:d,p=r.facet.layoutResult,v=p.rowLeafNodes,g=u([0+a,p.colLeafNodes.length-h-1],2),m=g[0],y=g[1],b=u([0+l,(r.isTableMode()?r.dataSet.getDisplayDataSet().length:v.length)-f-1],2),w=b[0],C=b[1];if(e)switch(t){case ua.ARROW_RIGHT:if(e.colIndex+1>y)return;return{row:e.rowIndex,col:n?y:e.colIndex+1};case ua.ARROW_LEFT:if(e.colIndex-1<m)return;return{row:e.rowIndex,col:n?m:e.colIndex-1};case ua.ARROW_UP:if(e.rowIndex-1<w)return;return{row:n?w:e.rowIndex-1,col:e.colIndex};case ua.ARROW_DOWN:if(e.rowIndex+1>C)return;return{row:n?C:e.rowIndex+1,col:e.colIndex}}},e.prototype.calculateOffset=function(t,e,n){var r=t.options,i=r.frozenRowCount,o=void 0===i?0:i,a=r.frozenTrailingRowCount,s=void 0===a?0:a,l=t.facet,u=t.frozenColGroup,c=t.frozenTrailingColGroup,h=t.frozenRowGroup,d=t.frozenTrailingRowGroup,f=l.layoutResult.colLeafNodes,p=l.getScrollOffset(),v=p.scrollX,g=p.scrollY,m=l.panelBBox,y=m.viewportHeight,b=m.viewportWidth,w=Yu(t,"theme.splitLine"),C=u?Math.floor(u.getBBox().width-w.verticalBorderWidth/2):0,_=c?Math.floor(c.getBBox().width):0,x=h?Math.floor(h.getBBox().height-w.horizontalBorderWidth/2):0,S=d?Math.floor(d.getBBox().height):0,E=FC(v,g,l.viewCellWidths,l.viewCellHeights,{width:b-C-_,height:y-x-S,x:C,y:x},l.getRealScrollX(l.cornerBBox.width)),O=-1,T=-1,I=f.find(function(t){return t.colIndex===n});if(n<=E[0]?O=I.x-C:n>=E[1]&&n<f.length-s&&(O=I.x+I.width-b+_),e<=E[2])T=l.viewCellHeights.getCellOffsetY(e-o);else if(e>=E[3]){T=l.viewCellHeights.getCellOffsetY(e+1)+S-y}return{offsetX:O,offsetY:T}},e.prototype.scrollToActiveCell=function(t,e,n){var r=this.calculateOffset(t,e,n),i=r.offsetX,o=r.offsetY,a=t.facet,s=t.facet.getScrollOffset(),l=s.scrollX,u=s.scrollY;a.scrollWithAnimation({offsetX:{value:i>-1?i:l},offsetY:{value:o>-1?o:u}})},e}(aI),xI=function(){function t(t){var e=this;this.interactions=new Map,this.intercepts=new Set,this.hoverTimer=null,this.defaultState={cells:[],force:!1},this.onTriggerInteractionsResetEffect=function(){e.interactions.forEach(function(t){t.reset()})},this.selectAll=function(){e.changeState({stateName:oa.ALL_SELECTED})},this.getCellChildrenNodes=function(t){var n,r=null===(n=null==t?void 0:t.getMeta)||void 0===n?void 0:n.call(t),i=(null==t?void 0:t.cellType)===aa.ROW_CELL;return e.spreadsheet.isHierarchyTreeType()&&i?lC.getAllLeaveNodes(r).filter(function(t){return t.rowIndex===r.rowIndex}):lC.getAllChildrenNodes(r)},this.selectHeaderCell=function(t){var n;void 0===t&&(t={});var r=t.cell;if(!Hv(r)){var i=null===(n=null==r?void 0:r.getMeta)||void 0===n?void 0:n.call(r);if(i&&!Yv(null==i?void 0:i.x)){e.addIntercepts([ha.HOVER]);var o=e.spreadsheet.isHierarchyTreeType(),a=(null==r?void 0:r.cellType)===aa.COL_CELL,s=e.getState(),l=e.isSelectedCell(r),u=(null==t?void 0:t.isMultiSelection)&&e.isSelectedState(),c=l?[]:e.getCellChildrenNodes(r),h=l?[]:[SS(r)];if(u&&(h=kd(null==s?void 0:s.cells,h),c=kd(null==s?void 0:s.nodes,c),l&&(h=h.filter(function(t){return t.id!==i.id}),c=c.filter(function(t){return!(null==t?void 0:t.id.includes(i.id))}))),Hv(h))return e.reset(),void e.spreadsheet.emit(go.GLOBAL_SELECTED,e.getActiveCells());e.changeState({cells:h,nodes:c,stateName:oa.SELECTED});var d=h.map(function(t){return t.id});return e.updateCells(e.getRowColActiveCells(d)),o&&!a||e.highlightNodes(c),e.spreadsheet.emit(go.GLOBAL_SELECTED,e.getActiveCells()),!0}}},this.highlightNodes=function(t){void 0===t&&(t=[]),t.forEach(function(t){var e;null===(e=null==t?void 0:t.belongsCell)||void 0===e||e.updateByState(oa.SELECTED,t.belongsCell)})},this.mergeCells=function(t,n){Tx(e.spreadsheet,t,n)},this.unmergeCell=function(t){Ix(e.spreadsheet,t)},this.spreadsheet=t,this.registerEventController(),this.registerInteractions(),window.addEventListener("visibilitychange",this.onTriggerInteractionsResetEffect)}return t.prototype.destroy=function(){this.interactions.clear(),this.intercepts.clear(),this.eventController.clear(),this.clearHoverTimer(),this.resetState(),window.removeEventListener("visibilitychange",this.onTriggerInteractionsResetEffect)},t.prototype.reset=function(){this.clearState(),this.clearHoverTimer(),this.intercepts.clear(),this.spreadsheet.hideTooltip()},t.prototype.setState=function(t){!function(t,e){var n=null==e?void 0:e.stateName;t.interaction.isEqualStateName(n)||(MS(t),t.hideTooltip(),t.store.set(pa,e))}(this.spreadsheet,t)},t.prototype.getState=function(){return this.spreadsheet.store.get(pa)||this.defaultState},t.prototype.setInteractedCells=function(t){var e=this.getInteractedCells().concat([t]),n=this.getState();n.interactedCells=e,this.setState(n)},t.prototype.getInteractedCells=function(){var t=this.getState();return(null==t?void 0:t.interactedCells)||[]},t.prototype.resetState=function(){this.spreadsheet.store.set(pa,this.defaultState)},t.prototype.getCurrentStateName=function(){return this.getState().stateName},t.prototype.isEqualStateName=function(t){return this.getCurrentStateName()===t},t.prototype.isStateOf=function(t){var e=this.getState();return(null==e?void 0:e.stateName)===t},t.prototype.isSelectedState=function(){return this.isStateOf(oa.SELECTED)||this.isStateOf(oa.BRUSH_SELECTED)},t.prototype.isAllSelectedState=function(){return this.isStateOf(oa.ALL_SELECTED)},t.prototype.isHoverFocusState=function(){return this.isStateOf(oa.HOVER_FOCUS)},t.prototype.isHoverState=function(){return this.isStateOf(oa.HOVER)},t.prototype.isActiveCell=function(t){return!!this.getCells().find(function(e){return t.getMeta().id===e.id})},t.prototype.isSelectedCell=function(t){return this.isSelectedState()&&this.isActiveCell(t)},t.prototype.getCells=function(t){var e=this.getState(),n=(null==e?void 0:e.cells)||[];return Yv(t)?n:n.filter(function(e){return t.includes(e.type)})},t.prototype.getActiveCells=function(){var t=this.getCells().map(function(t){return t.id}),e=this.getAllCells();return Rp(t,function(t){return Ep(e,function(e){var n;return(null===(n=null==e?void 0:e.getMeta())||void 0===n?void 0:n.id)===t})}).filter(function(t){return t})},t.prototype.clearStyleIndependent=function(){(this.isSelectedState()||this.isHoverState()||this.isAllSelectedState())&&this.getPanelGroupAllDataCells().forEach(function(t){t.hideInteractionShape()})},t.prototype.getPanelGroupAllUnSelectedDataCells=function(){var t=this;return this.getPanelGroupAllDataCells().filter(function(e){return!t.isActiveCell(e)})},t.prototype.getPanelGroupAllDataCells=function(){var t;return MT(null===(t=this.spreadsheet.panelGroup)||void 0===t?void 0:t.getChildren(),Cx)},t.prototype.getAllRowHeaderCells=function(){var t,e,n=((null===(t=this.spreadsheet.foregroundGroup)||void 0===t?void 0:t.getChildren())||[]).find(function(t){return t instanceof WT&&!(t instanceof VT)}),r=(null===(e=null==n?void 0:n.cfg)||void 0===e?void 0:e.children)||[];return MT(r,wS).filter(function(t){return t.cellType===aa.ROW_CELL})},t.prototype.getAllColHeaderCells=function(){var t,e,n=((null===(t=this.spreadsheet.foregroundGroup)||void 0===t?void 0:t.getChildren())||[]).find(function(t){return t instanceof FT}),r=(null===(e=null==n?void 0:n.cfg)||void 0===e?void 0:e.children)||[];return MT(r,tS).filter(function(t){return t.cellType===aa.COL_CELL})},t.prototype.getRowColActiveCells=function(t){return kd(this.getAllRowHeaderCells(),this.getAllColHeaderCells()).filter(function(e){return t.includes(e.getMeta().id)})},t.prototype.getAllCells=function(){return kd(this.getPanelGroupAllDataCells(),this.getAllRowHeaderCells(),this.getAllColHeaderCells())},t.prototype.hideColumns=function(t,e){void 0===t&&(t=[]),void 0===e&&(e=!0),Dx(this.spreadsheet,t,e)},t.prototype.getBrushSelectionInfo=function(t){var e,n,r;return Pv(t)?{dataBrushSelection:t,rowBrushSelection:t,colBrushSelection:t}:{dataBrushSelection:null!==(e=null==t?void 0:t.data)&&void 0!==e&&e,rowBrushSelection:null!==(n=null==t?void 0:t.row)&&void 0!==n&&n,colBrushSelection:null!==(r=null==t?void 0:t.col)&&void 0!==r&&r}},t.prototype.getDefaultInteractions=function(){var t=this.spreadsheet.options.interaction,e=t.resize,n=t.brushSelection,r=t.multiSelection,i=t.rangeSelection,o=t.selectedCellMove,a=this.getBrushSelectionInfo(n),s=a.dataBrushSelection,l=a.rowBrushSelection,u=a.colBrushSelection;return[{key:ia.CORNER_CELL_CLICK,interaction:hI},{key:ia.DATA_CELL_CLICK,interaction:sI},{key:ia.ROW_COLUMN_CLICK,interaction:uI},{key:ia.ROW_TEXT_CLICK,interaction:cI},{key:ia.MERGED_CELLS_CLICK,interaction:lI},{key:ia.HOVER,interaction:dI,enable:!oC()},{key:ia.BRUSH_SELECTION,interaction:vI,enable:!oC()&&s},{key:ia.ROW_BRUSH_SELECTION,interaction:gI,enable:!oC()&&l},{key:ia.COL_BRUSH_SELECTION,interaction:pI,enable:!oC()&&u},{key:ia.COL_ROW_RESIZE,interaction:wI,enable:!oC()&&e},{key:ia.DATA_CELL_MULTI_SELECTION,interaction:mI,enable:!oC()&&r},{key:ia.RANGE_SELECTION,interaction:bI,enable:!oC()&&i},{key:ia.SELECTED_CELL_MOVE,interaction:_I,enable:!oC()&&o}]},t.prototype.registerInteractions=function(){var t=this,e=this.spreadsheet.options.interaction.customInteractions;this.interactions.clear(),this.getDefaultInteractions().forEach(function(e){var n=e.key,r=e.interaction;!1!==e.enable&&t.interactions.set(n,new r(t.spreadsheet))}),Hv(e)||ep(e,function(e){var n=e.interaction;t.interactions.set(e.key,new n(t.spreadsheet))})},t.prototype.registerEventController=function(){this.eventController=new yI(this.spreadsheet)},t.prototype.draw=function(){this.spreadsheet.container.draw()},t.prototype.clearState=function(){MS(this.spreadsheet)&&this.draw()},t.prototype.changeState=function(t){var e=this,n=this.spreadsheet.interaction,r=t.cells,i=void 0===r?[]:r,o=t.force,a=t.stateName,s=t.onUpdateCells;if(Hv(i)&&a===oa.SELECTED)o&&n.changeState({cells:[],stateName:oa.UNSELECTED});else{this.getCurrentStateName()===oa.ALL_SELECTED&&this.clearStyleIndependent(),this.clearState(),this.setState(t);var l=function(){e.updatePanelGroupAllDataCells()};s?s(this,l):l(),this.draw()}},t.prototype.updatePanelGroupAllDataCells=function(){this.updateCells(this.getPanelGroupAllDataCells())},t.prototype.updateCells=function(t){void 0===t&&(t=[]),t.forEach(function(t){t.update()})},t.prototype.addIntercepts=function(t){var e=this;void 0===t&&(t=[]),t.forEach(function(t){e.intercepts.add(t)})},t.prototype.hasIntercepts=function(t){var e=this;return void 0===t&&(t=[]),t.some(function(t){return e.intercepts.has(t)})},t.prototype.removeIntercepts=function(t){var e=this;void 0===t&&(t=[]),t.forEach(function(t){e.intercepts.delete(t)})},t.prototype.clearHoverTimer=function(){clearTimeout(this.hoverTimer)},t.prototype.setHoverTimer=function(t){this.hoverTimer=t},t.prototype.getHoverTimer=function(){return this.hoverTimer},t.prototype.getSelectedCellHighlight=function(){var t=this.spreadsheet.options.interaction.selectedCellHighlight;if(Pv(t))return{rowHeader:t,colHeader:t,currentRow:!1,currentCol:!1};var e=null!=t?t:{},n=e.rowHeader,r=void 0!==n&&n,i=e.colHeader,o=void 0!==i&&i,a=e.currentRow,s=void 0!==a&&a,l=e.currentCol;return{rowHeader:r,colHeader:o,currentRow:s,currentCol:void 0!==l&&l}},t.prototype.getHoverAfterScroll=function(){return this.spreadsheet.options.interaction.hoverAfterScroll},t.prototype.getHoverHighlight=function(){var t=this.spreadsheet.options.interaction.hoverHighlight;if(Pv(t))return{rowHeader:t,colHeader:t,currentRow:t,currentCol:t};var e=null!=t?t:{},n=e.rowHeader,r=void 0!==n&&n,i=e.colHeader,o=void 0!==i&&i,a=e.currentRow,s=void 0!==a&&a,l=e.currentCol;return{rowHeader:r,colHeader:o,currentRow:s,currentCol:void 0!==l&&l}},t.prototype.getBrushSelection=function(){var t=this.spreadsheet.options.interaction.brushSelection;if(Pv(t))return{data:t,row:t,col:t};var e=null!=t?t:{},n=e.data,r=void 0!==n&&n,i=e.row,o=void 0!==i&&i,a=e.col;return{data:r,row:o,col:void 0!==a&&a}},t}(),SI=function(){function t(t){var e=this;this.viewport=window,this.isDevicePixelRatioChange=!1,this.init=function(){e.initDevicePixelRatioListener(),e.initDeviceZoomListener()},this.destroy=function(){e.removeDevicePixelRatioListener(),e.removeDeviceZoomListener()},this.removeDevicePixelRatioListener=function(){var t;(null===(t=e.devicePixelRatioMedia)||void 0===t?void 0:t.removeEventListener)?e.devicePixelRatioMedia.removeEventListener("change",e.renderByDevicePixelRatioChanged):e.devicePixelRatioMedia.removeListener(e.renderByDevicePixelRatioChanged)},this.initDeviceZoomListener=function(){var t,n;oC()||null===(n=null===(t=e.viewport)||void 0===t?void 0:t.visualViewport)||void 0===n||n.addEventListener("resize",e.renderByZoomScaleWithoutResizeEffect)},this.removeDeviceZoomListener=function(){var t,n;oC()||null===(n=null===(t=e.viewport)||void 0===t?void 0:t.visualViewport)||void 0===n||n.removeEventListener("resize",e.renderByZoomScaleWithoutResizeEffect)},this.renderByZoomScaleWithoutResizeEffect=function(t){e.isDevicePixelRatioChange=!1,e.renderByZoomScale(t)},this.renderByDevicePixelRatioChanged=function(){e.isDevicePixelRatioChange=!0,e.renderByDevicePixelRatio()},this.renderByDevicePixelRatio=function(t){void 0===t&&(t=window.devicePixelRatio);var n=e.spreadsheet,r=n.container,i=n.options,o=i.width,a=i.height,s=i.devicePixelRatio,l=e.spreadsheet.getCanvasElement();if(r.get("pixelRatio")!==t&&l){var u=Math.max(t,s,1);r.set("pixelRatio",u),r.changeSize(o,a),e.spreadsheet.render(!1)}},this.renderByZoomScale=Sf(function(t){var n=Math.ceil(t.target.scale);n>=1&&!e.isDevicePixelRatioChange&&e.renderByDevicePixelRatio(n)},350),this.spreadsheet=t}return t.prototype.initDevicePixelRatioListener=function(){var t;this.devicePixelRatioMedia=window.matchMedia("(resolution: ".concat(window.devicePixelRatio,"dppx)")),(null===(t=this.devicePixelRatioMedia)||void 0===t?void 0:t.addEventListener)?this.devicePixelRatioMedia.addEventListener("change",this.renderByDevicePixelRatioChanged):this.devicePixelRatioMedia.addListener(this.renderByDevicePixelRatioChanged)},t}(),EI=function(){function t(t){this.visible=!1,this.position={x:0,y:0},this.spreadsheet=t}return t.prototype.show=function(t){var e,n,r,i=t.position,o=t.options,s=t.content,l=t.event,u=function(t){return a({operator:{onClick:Ps,menus:[]},enterable:!0,enableFormat:!0},t)}(o).enterable,c=this.spreadsheet.options.tooltip||{},h=c.autoAdjustBoundary,d=c.adjustPosition;this.visible=!0,this.options=t;var f=this.getContainer();this.renderContent(s);var p=function(t){var e=t.spreadsheet,n=t.position,r=t.tooltipContainer,i=t.autoAdjustBoundary,o=e.getCanvasElement(),a=n.x+nC,s=n.y+rC;if(!i||!o)return{x:a,y:s};var l="body"===i,u=e.facet.panelBBox,c=u.maxX,h=u.maxY,d=e.options,f=d.width,p=d.height,v=o.getBoundingClientRect(),g=v.top,m=v.left,y=r.getBoundingClientRect(),b=y.width,w=y.height,C=document.body.getBoundingClientRect(),_=C.width,x=C.height,S=l?_:Math.min(f,c)+m,E=l?x:Math.min(p,h)+g;return a+b>=S&&(a=S-b),s+w>=E&&(s=E-w),{x:a,y:s}}({spreadsheet:this.spreadsheet,position:i,tooltipContainer:f,autoAdjustBoundary:h}),v=p.x,g=p.y;this.position=null!==(e=null==d?void 0:d({position:{x:v,y:g},event:l}))&&void 0!==e?e:{x:v,y:g},mO(f,{style:{left:"".concat(null===(n=this.position)||void 0===n?void 0:n.x,"px"),top:"".concat(null===(r=this.position)||void 0===r?void 0:r.y,"px"),pointerEvents:u?"all":"none"},visible:!0})},t.prototype.hide=function(){this.visible=!1,this.container&&(mO(this.container,{style:{pointerEvents:"none"},visible:!1}),this.resetPosition())},t.prototype.destroy=function(){var t,e;this.visible=!1,this.container&&(this.resetPosition(),null===(e=(t=this.container).remove)||void 0===e||e.call(t),this.container=null)},t.prototype.renderContent=function(t){if(this.container){this.clearContent();var e=(this.spreadsheet.options.tooltip||{}).content,n=null!=t?t:e;Yv(n)||("string"!=typeof n?n instanceof Element&&this.container.appendChild(n):this.container.innerHTML=n)}},t.prototype.clearContent=function(){this.container&&(this.container.innerHTML="")},t.prototype.disablePointerEvent=function(){this.container&&"none"!==this.container.style.pointerEvents&&mO(this.container,{style:{pointerEvents:"none"}})},t.prototype.resetPosition=function(){this.position={x:0,y:0}},t.prototype.getContainer=function(){var t;if(!this.container){var e=this.spreadsheet.options.tooltip,n=(null===(t=e.getContainer)||void 0===t?void 0:t.call(e))||document.body,r=document.createElement("div");return mO(r,{style:e.style,className:[Qw].concat(e.className)}),n.appendChild(r),this.container=r,this.container}return this.container},t}(),OI=function(t){function e(e,n,r){var i=t.call(this)||this;return i.store=new xC,i.untypedOn=i.on,i.untypedEmit=i.emit,i.on=function(t,e){return i.untypedOn(t,e)},i.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return i.untypedEmit.apply(i,c([t],u(e),!1))},i.initHiddenColumnsDetail=function(){var t=i.options.interaction.hiddenColumnFields,e=i.store.get("hiddenColumnsDetail");Hv(t)&&Hv(e)||Dx(i,t,!0)},i.measureText=zu(function(t,e){var n;if(void 0===t&&(t=""),!e)return null;var r=null===(n=i.getCanvasElement())||void 0===n?void 0:n.getContext("2d"),o=e,a=o.fontSize,s=o.fontFamily,l=o.fontWeight,u=o.fontStyle,c=o.fontVariant;return r.font=[u,c,l,"".concat(a,"px"),s].join(" ").trim(),r.measureText(String(t))},function(t,e){return c([t],u(av(e)),!1).join("")}),i.measureTextWidth=function(t,e){void 0===t&&(t="");var n=i.measureText(t,e);return(null==n?void 0:n.width)||0},i.measureTextHeight=function(t,e){void 0===t&&(t="");var n=i.measureText(t,e);return n?n.actualBoundingBoxAscent+n.actualBoundingBoxDescent:0},i.measureTextWidthRoughly=function(t,e){var n,r;void 0===e&&(e={});var o=i.measureTextWidth("a",e),a=i.measureTextWidth("蚂",e),s=0;if(!t)return s;try{for(var u=l(t),c=u.next();!c.done;c=u.next()){var h=c.value.charCodeAt(0);s+=h>=0&&h<=255?o:a}}catch(t){n={error:t}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return s},i.dataCfg=fx(n),i.options=px(r),i.dataSet=i.getDataSet(i.options),i.setDebug(),i.initTooltip(),i.initGroups(e),i.bindEvents(),i.initInteraction(),i.initTheme(),i.initHdAdapter(),i.registerIcons(),i.setOverscrollBehavior(),i.mountSheetInstance(),i}return o(e,t),e.prototype.setOverscrollBehavior=function(){var t=this.options.interaction.overscrollBehavior,e=window.getComputedStyle(document.body).getPropertyValue("overscroll-behavior");e&&"auto"!==e?this.store.set("initOverscrollBehavior",e):t&&(document.body.style.overscrollBehavior=t)},e.prototype.restoreOverscrollBehavior=function(){document.body.style.overscrollBehavior=this.store.get("initOverscrollBehavior")||""},e.prototype.setDebug=function(){dC.getInstance().setDebug(this.options.debug)},e.prototype.initTheme=function(){this.setThemeCfg({name:"default"})},e.prototype.getMountContainer=function(t){var e=iv(t)?document.querySelector(t):t;if(!e)throw new Error("Target mount container is not a DOM element");return e},e.prototype.initHdAdapter=function(){this.options.hdAdapter&&(this.hdAdapter=new SI(this),this.hdAdapter.init())},e.prototype.initInteraction=function(){var t,e;null===(e=null===(t=this.interaction)||void 0===t?void 0:t.destroy)||void 0===e||e.call(t),this.interaction=new xI(this)},e.prototype.initTooltip=function(){var t,e;null===(e=null===(t=this.tooltip)||void 0===t?void 0:t.destroy)||void 0===e||e.call(t),this.tooltip=this.renderTooltip(),this.tooltip},e.prototype.renderTooltip=function(){var t,e;return(null===(e=null===(t=this.options.tooltip)||void 0===t?void 0:t.renderTooltip)||void 0===e?void 0:e.call(t,this))||new EI(this)},e.prototype.showTooltip=function(t){var e,n,r=t.content,i=t.event,o=this.getCell(null==i?void 0:i.target),s=as(r)?r(o,t):r;null===(n=(e=this.tooltip).show)||void 0===n||n.call(e,a(a({},t),{content:s}))},e.prototype.showTooltipWithInfo=function(t,e,n){var r,i=TO(this,t),o=i.showTooltip,s=i.content;if(o){var l=this.getCell(null==t?void 0:t.target),u=null!==(r=null==n?void 0:n.data)&&void 0!==r?r:EO({spreadsheet:this,cellInfos:e,targetCell:l,options:a({enableFormat:!0},n)});this.showTooltip({data:u,position:{x:t.clientX,y:t.clientY},options:a({enterable:!0},n),event:t,content:s})}},e.prototype.hideTooltip=function(){var t,e;null===(e=(t=this.tooltip).hide)||void 0===e||e.call(t)},e.prototype.destroyTooltip=function(){var t,e;null===(e=(t=this.tooltip).destroy)||void 0===e||e.call(t)},e.prototype.registerIcons=function(){var t=this.options.customSVGIcons;Hv(t)||ep(t,function(t){vC(t.name,t.svg)})},e.prototype.setDataCfg=function(t,e){this.store.set("originalDataCfg",t),this.dataCfg=e?fx(t):fx(this.dataCfg,t),this.store.set(Qo,ta)},e.prototype.setOptions=function(t,e){var n;this.hideTooltip(),this.options=e?px(t):dx(this.options,t),(e||(null===(n=t.tooltip)||void 0===n?void 0:n.renderTooltip))&&this.initTooltip(),this.resetHiddenColumnsDetailInfoIfNeeded(),this.registerIcons()},e.prototype.resetHiddenColumnsDetailInfoIfNeeded=function(){var t;Hv(null===(t=this.options.interaction)||void 0===t?void 0:t.hiddenColumnFields)||this.store.set("hiddenColumnsDetail",[])},e.prototype.render=function(t,e){if(void 0===t&&(t=!0),void 0===e&&(e={}),this.getCanvasElement()){var n=e.reBuildDataSet,r=void 0!==n&&n,i=e.reBuildHiddenColumnsDetail,o=void 0===i||i;this.emit(go.LAYOUT_BEFORE_RENDER),r&&(this.dataSet=this.getDataSet(this.options)),t&&(this.clearDrillDownData("",!0),this.dataSet.setDataCfg(this.dataCfg)),this.buildFacet(),o&&this.initHiddenColumnsDetail(),this.emit(go.LAYOUT_AFTER_RENDER)}},e.prototype.mountSheetInstance=function(){var t=this.getCanvasElement();t&&(t.__s2_instance__=this)},e.prototype.unmountSheetInstance=function(){var t=this.getCanvasElement();t&&delete t.__s2_instance__},e.prototype.destroy=function(){var t,e,n,r,i;this.restoreOverscrollBehavior(),this.emit(go.LAYOUT_DESTROY),null===(t=this.facet)||void 0===t||t.destroy(),null===(e=this.hdAdapter)||void 0===e||e.destroy(),null===(n=this.interaction)||void 0===n||n.destroy(),null===(r=this.store)||void 0===r||r.clear(),this.destroyTooltip(),this.clearCanvasEvent(),this.unmountSheetInstance(),null===(i=this.container)||void 0===i||i.destroy(),function(){var t;null===(t=document.getElementById(u_))||void 0===t||t.remove()}()},e.prototype.setThemeCfg=function(t){void 0===t&&(t={});var e=(null==t?void 0:t.theme)||{},n=sC(a(a({},t),{spreadsheet:this}));this.theme=dx(n,e)},e.prototype.setTheme=function(t){this.theme=dx(this.theme,t)},e.prototype.updatePagination=function(t){this.options=dx(this.options,{pagination:t}),this.store.set("scrollX",0),this.store.set("scrollY",0)},e.prototype.getContentHeight=function(){return this.facet.getContentHeight()},e.prototype.changeSize=function(t,e){void 0===t&&(t=this.options.width),void 0===e&&(e=this.options.height),this.changeSheetSize(t,e)},e.prototype.changeSheetSize=function(t,e){void 0===t&&(t=this.options.width),void 0===e&&(e=this.options.height);var n=this.getCanvasElement(),r=this.container.get("width"),i=this.container.get("height");(t!==r||e!==i)&&n&&(this.options=dx(this.options,{width:t,height:e}),this.container.changeSize(t,e))},e.prototype.getCanvasElement=function(){return this.container.get("el")},e.prototype.getLayoutWidthType=function(){return this.options.style.layoutWidthType},e.prototype.getRowNodes=function(t){return void 0===t&&(t=-1),-1===t?this.facet.layoutResult.rowNodes:this.facet.layoutResult.rowNodes.filter(function(e){return e.level===t})},e.prototype.getRowLeafNodes=function(){var t;return(null===(t=this.facet)||void 0===t?void 0:t.layoutResult.rowLeafNodes)||[]},e.prototype.getColumnNodes=function(t){var e;void 0===t&&(t=-1);var n=(null===(e=this.facet)||void 0===e?void 0:e.layoutResult.colNodes)||[];return-1===t?n:n.filter(function(e){return e.level===t})},e.prototype.getColumnLeafNodes=function(){var t;return(null===(t=this.facet)||void 0===t?void 0:t.layoutResult.colLeafNodes)||[]},e.prototype.updateScrollOffset=function(t){var e={offsetX:{value:void 0,animate:!1},offsetY:{value:void 0,animate:!1},rowHeaderOffsetX:{value:void 0,animate:!1}};this.facet.updateScrollOffset(dx(e,t))},e.prototype.getTooltipDataItemMappingCallback=function(){var t;return null===(t=this.options)||void 0===t?void 0:t.mappingDisplayDataItem},e.prototype.isCellType=function(t){return t instanceof vx},e.prototype.getCell=function(t){for(var e,n=t;n&&!(n instanceof mo);){if(this.isCellType(n))return n;n=null===(e=n.get)||void 0===e?void 0:e.call(n,"parent")}return null},e.prototype.getCellType=function(t){var e=this.getCell(t);return null==e?void 0:e.cellType},e.prototype.getTotalsConfig=function(t){var e=Yu(this.options.totals,lv(this.dataSet.fields.rows,t)?"row":"col",{}),n=!(!e.showSubTotals||!lv(e.subTotalsDimensions,t))&&e.showSubTotals;return a(a({label:Zw("总计"),subLabel:Zw("小计"),totalsGroupDimensions:[],subTotalsGroupDimensions:[]},e),{showSubTotals:n})},e.prototype.initGroups=function(t){var e=this.options,n=e.width,r=e.height,i=e.supportCSSTransform,o=e.devicePixelRatio;this.container=new mo({container:this.getMountContainer(t),width:n,height:r,localRefresh:!1,supportCSSTransform:i,pixelRatio:Math.max(o,1)}),this.backgroundGroup=this.container.addGroup({name:"backGroundGroup",zIndex:0}),this.panelGroup=this.container.addGroup({name:"panelGroup",zIndex:1}),this.foregroundGroup=this.container.addGroup({name:"foreGroundGroup",zIndex:3}),this.initPanelGroupChildren(),this.updateContainerStyle()},e.prototype.updateContainerStyle=function(){var t=this.getCanvasElement();t&&(t.style.display="block")},e.prototype.initPanelGroupChildren=function(){this.panelScrollGroup=new oI({name:"panelScrollGroup",zIndex:1,s2:this}),this.panelGroup.add(this.panelScrollGroup)},e.prototype.getInitColumnLeafNodes=function(){return this.store.get("initColumnLeafNodes",[])},e.prototype.clearColumnLeafNodes=function(){this.clearInitColumnLeafNodes()},e.prototype.clearInitColumnLeafNodes=function(){this.store.set("initColumnLeafNodes",void 0)},e.prototype.clearCanvasEvent=function(){var t=this;Wp(this.getEvents(),function(e,n){t.off(n)})},e.prototype.updateSortMethodMap=function(t,e,n){var r;void 0===n&&(n=!1);var i=n?null:this.store.get("sortMethodMap");this.store.set("sortMethodMap",a(a({},i),((r={})[t]=e,r)))},e.prototype.getMenuDefaultSelectedKeys=function(t){var e=Yu(this.store.get("sortMethodMap"),t);return e?[e]:[]},e}(pt),TI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getDataSet=function(t){var e=t.dataSet,n=t.hierarchyType;return e?e(this):"customTree"===n?new AO(this):new kO(this)},e.prototype.getContentHeight=function(){return this.facet.getContentHeight()},e.prototype.isPivotMode=function(){return!0},e.prototype.isTableMode=function(){return!1},e.prototype.isHierarchyTreeType=function(){var t=this.options.hierarchyType;return"tree"===t||"customTree"===t},e.prototype.isScrollContainsRowHeader=function(){return!this.isFrozenRowHeader()},e.prototype.isFrozenRowHeader=function(){var t;return null===(t=this.options)||void 0===t?void 0:t.frozenRowHeader},e.prototype.isValueInCols=function(){var t,e;return null===(e=null===(t=this.dataSet)||void 0===t?void 0:t.fields)||void 0===e?void 0:e.valueInCols},e.prototype.clearDrillDownData=function(t,e){this.dataSet instanceof kO&&(this.dataSet.clearDrillDownData(t)&&!e&&(this.interaction.reset(),this.render(!1)))},e.prototype.getFacetCfgFromDataSetAndOptions=function(){var t=this,e=this.dataSet,n=e.fields,r=e.meta,i=this.options,o=i.style,s=i.dataCell;return a(a(a(a({},this.options),n),o),{meta:r,spreadsheet:this,dataSet:this.dataSet,dataCell:null!=s?s:function(e){return new Cx(e,t)}})},e.prototype.buildFacet=function(){var t,e=this.getFacetCfgFromDataSetAndOptions();null===(t=this.facet)||void 0===t||t.destroy(),this.facet=new tI(e),this.facet.render()},e.prototype.bindEvents=function(){this.off(go.ROW_CELL_COLLAPSE_TREE_ROWS),this.off(go.LAYOUT_TREE_ROWS_COLLAPSE_ALL),this.on(go.ROW_CELL_COLLAPSE_TREE_ROWS,this.handleRowCellCollapseTreeRows),this.on(go.LAYOUT_TREE_ROWS_COLLAPSE_ALL,this.handleTreeRowsCollapseAll)},e.prototype.handleRowCellCollapseTreeRows=function(t){var e,n=t.id,r=t.isCollapsed,i={style:{collapsedRows:(e={},e[n]=r,e)}};this.emit(go.LAYOUT_COLLAPSE_ROWS,{collapsedRows:i.style.collapsedRows,meta:null==t?void 0:t.node}),this.setOptions(i),this.render(!1),this.emit(go.LAYOUT_AFTER_COLLAPSE_ROWS,{collapsedRows:i.style.collapsedRows,meta:null==t?void 0:t.node})},e.prototype.handleTreeRowsCollapseAll=function(t){var e={style:{hierarchyCollapse:!t,collapsedRows:null,rowExpandDepth:null}};this.setOptions(e),this.render(!1)},e.prototype.groupSortByMethod=function(t,e){var n=this.dataCfg.fields,r=n.rows,i=n.columns,o=this.options.style.colCfg.hideMeasureColumn,s=this.isValueInCols()?Yf(r):Yf(i),l=e.query,h=e.value,d=Id(l),f=h;o&&this.isValueInCols()&&(f=this.dataSet.fields.values[0],d[bo]=f);var p={sortFieldId:s,sortMethod:t,sortByMeasure:f,query:d},v=this.dataCfg.sortParams.filter(function(t){return(null==t?void 0:t.sortFieldId)!==s});this.updateSortMethodMap(e.id,t,!0);var g=c(c([],u(v),!1),[p],!1);this.emit(go.RANGE_SORT,g),this.setDataCfg(a(a({},this.dataCfg),{sortParams:g})),this.render()},e.prototype.handleGroupSort=function(t,e){var n=this;t.stopPropagation(),this.interaction.addIntercepts([ha.HOVER]);var r=this.getMenuDefaultSelectedKeys(null==e?void 0:e.id),i={onClick:function(r){var i=r.key;n.groupSortByMethod(i,e),n.emit(go.RANGE_SORTED,t)},menus:[{key:"asc",icon:"groupAsc",text:Zw("组内升序")},{key:"desc",icon:"groupDesc",text:Zw("组内降序")},{key:"none",text:Zw("不排序")}],defaultSelectedKeys:r};this.showTooltipWithInfo(t,[],{operator:i,onlyMenu:!0,forceRender:!0})},e.prototype.initPanelGroupChildren=function(){t.prototype.initPanelGroupChildren.call(this);var e={zIndex:2,s2:this};this.frozenRowGroup=new iI(a({KEY_GROUP_PANEL_FROZEN_ROW:Mo},e)),this.panelGroup.add(this.frozenRowGroup)},e.prototype.isCellType=function(t){return t instanceof vx&&!(t instanceof CS)},e}(OI);!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onSortTooltipClick=function(t,n){var r=t.key,i={sortFieldId:n.field,sortMethod:r};e.updateSortMethodMap(n.id,r),e.emit(go.RANGE_SORT,[i])},e}o(e,t),e.prototype.getDataSet=function(t){var e=t.dataSet;return e?e(this):new RO(this)},e.prototype.isPivotMode=function(){return!1},e.prototype.isTableMode=function(){return!0},e.prototype.isHierarchyTreeType=function(){return!1},e.prototype.isScrollContainsRowHeader=function(){return!1},e.prototype.isFrozenRowHeader=function(){return!1},e.prototype.clearDrillDownData=function(){},e.prototype.isValueInCols=function(){return!1},e.prototype.bindEvents=function(){},e.prototype.initPanelGroupChildren=function(){var e,n=this;t.prototype.initPanelGroupChildren.call(this);var r={zIndex:2,s2:this};e=u([Mo,Lo,ko,Ao,Ro,Do].map(function(t){var e=new iI(a({name:t},r));return n.panelGroup.add(e),e}),6),this.frozenRowGroup=e[0],this.frozenColGroup=e[1],this.frozenTrailingRowGroup=e[2],this.frozenTrailingColGroup=e[3],this.frozenTopGroup=e[4],this.frozenBottomGroup=e[5]},e.prototype.getFacetCfgFromDataSetAndOptions=function(){var t=this,e=this.dataSet,n=e.fields,r=e.meta,i=this.options,o=i.style,s=i.dataCell;return a(a(a(a({},this.options),n),o),{meta:r,spreadsheet:this,dataSet:this.dataSet,dataCell:null!=s?s:function(e){return t.options.showSeriesNumber&&0===e.colIndex?new sS(e,t):new aS(e,t)}})},e.prototype.buildFacet=function(){var t,e=this.getFacetCfgFromDataSetAndOptions();null===(t=this.facet)||void 0===t||t.destroy(),this.facet=new nI(e),this.facet.render()},e.prototype.clearFrozenGroups=function(){this.frozenRowGroup.set("children",[]),this.frozenColGroup.set("children",[]),this.frozenTrailingRowGroup.set("children",[]),this.frozenTrailingColGroup.set("children",[]),this.frozenTopGroup.set("children",[]),this.frozenBottomGroup.set("children",[])},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.clearFrozenGroups(),this.off(go.RANGE_SORT),this.off(go.RANGE_FILTER)},e.prototype.handleGroupSort=function(t,e){var n=this;t.stopPropagation(),this.interaction.addIntercepts([ha.HOVER]);var r=this.getMenuDefaultSelectedKeys(null==e?void 0:e.id),i={onClick:function(t){var r=t.key;n.onSortTooltipClick({key:r},e)},menus:[{key:"asc",icon:"groupAsc",text:Zw("升序")},{key:"desc",icon:"groupDesc",text:Zw("降序")},{key:"none",text:Zw("不排序")}],defaultSelectedKeys:r};this.showTooltipWithInfo(t,[],{operator:i,onlyMenu:!0,forceRender:!0})}}(OI)},1350:(t,e,n)=>{"use strict";e.__esModule=!0;var r,i=n(3769),o=(r=i)&&r.__esModule?r:{default:r};function a(){this.parents=[]}function s(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function l(t){s.call(this,t),this.acceptKey(t,"program"),this.acceptKey(t,"inverse")}function u(t){this.acceptRequired(t,"name"),this.acceptArray(t.params),this.acceptKey(t,"hash")}a.prototype={constructor:a,mutating:!1,acceptKey:function(t,e){var n=this.accept(t[e]);if(this.mutating){if(n&&!a.prototype[n.type])throw new o.default('Unexpected node type "'+n.type+'" found when accepting '+e+" on "+t.type);t[e]=n}},acceptRequired:function(t,e){if(this.acceptKey(t,e),!t[e])throw new o.default(t.type+" requires "+e)},acceptArray:function(t){for(var e=0,n=t.length;e<n;e++)this.acceptKey(t,e),t[e]||(t.splice(e,1),e--,n--)},accept:function(t){if(t){if(!this[t.type])throw new o.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var e=this[t.type](t);return this.current=this.parents.shift(),!this.mutating||e?e:!1!==e?t:void 0}},Program:function(t){this.acceptArray(t.body)},MustacheStatement:s,Decorator:s,BlockStatement:l,DecoratorBlock:l,PartialStatement:u,PartialBlockStatement:function(t){u.call(this,t),this.acceptKey(t,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:s,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(t){this.acceptArray(t.pairs)},HashPair:function(t){this.acceptRequired(t,"value")}},e.default=a,t.exports=e.default},1429:(t,e,n)=>{"use strict";t.exports=n.p+"images/lay1.64c91237.png"},1791:(t,e,n)=>{var r=n(5172),i=n(5546);t.exports=function t(e,n){function o(t,i,a,s){try{var l=e[t](i),u=l.value;return u instanceof r?n.resolve(u.v).then(function(t){o("next",t,a,s)},function(t){o("throw",t,a,s)}):n.resolve(u).then(function(t){l.value=t,a(l)},function(t){return o("throw",t,a,s)})}catch(t){s(t)}}var a;this.next||(i(t.prototype),i(t.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(t,e,r){function i(){return new n(function(e,n){o(t,r,e,n)})}return a=a?a.then(i,i):i()},!0)},t.exports.__esModule=!0,t.exports.default=t.exports},1965:(t,e,n)=>{t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),l=n("41a0"),u=n("7f20"),c=n("38fd"),h=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),f="keys",p="values",v=function(){return this};t.exports=function(t,e,n,g,m,y,b){l(n,e,g);var w,C,_,x=function(t){if(!d&&t in T)return T[t];switch(t){case f:case p:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",E=m==p,O=!1,T=t.prototype,I=T[h]||T["@@iterator"]||m&&T[m],M=I||x(m),L=m?E?x("entries"):M:void 0,k="Array"==e&&T.entries||I;if(k&&(_=c(k.call(new t)))!==Object.prototype&&_.next&&(u(_,S,!0),r||"function"==typeof _[h]||a(_,h,v)),E&&I&&I.name!==p&&(O=!0,M=function(){return I.call(this)}),r&&!b||!d&&!O&&T[h]||a(T,h,M),s[e]=M,s[S]=v,m)if(w={values:E?M:x(p),keys:y?M:x(f),entries:L},b)for(C in w)C in T||o(T,C,w[C]);else i(i.P+i.F*(d||O),e,w);return w}},"02f4":function(t,e,n){var r=n("4588"),i=n("be13");t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),l=r(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},"0390":function(t,e,n){"use strict";var r=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"0bfb":function(t,e,n){"use strict";var r=n("cb7c");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},1156:function(t,e,n){var r=n("ad20");"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n("499e").default)("c1ec597e",r,!0,{sourceMap:!1,shadowMode:!1})},"11e9":function(t,e,n){var r=n("52a7"),i=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),l=n("c69a"),u=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},1495:function(t,e,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,l=0;s>l;)r.f(t,n=a[l++],e[n]);return t}},"18d2":function(t,e,n){"use strict";var r=n("18e9");t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,i=t.stateHandler.getState;if(!e)throw new Error("Missing required dependency: reporter.");function o(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function a(t){return i(t).object}return{makeDetectable:function(t,a,s){s||(s=a,a=t,t=null),(t=t||{}).debug,r.isIE(8)?s(a):function(a,s){var l=o(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),u=!1,c=window.getComputedStyle(a),h=a.offsetWidth,d=a.offsetHeight;function f(){function n(){if("static"===c.position){a.style.setProperty("position","relative",t.important?"important":"");var n=function(e,n,r,i){var o=r[i];"auto"!==o&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(o)&&(e.warn("An element that is positioned static has style."+i+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",n),n.style.setProperty(i,"0",t.important?"important":""))};n(e,a,c,"top"),n(e,a,c,"right"),n(e,a,c,"bottom"),n(e,a,c,"left")}}""!==c.position&&(n(),u=!0);var o=document.createElement("object");o.style.cssText=l,o.tabIndex=-1,o.type="text/html",o.setAttribute("aria-hidden","true"),o.onload=function(){u||n(),function t(e,n){if(!e.contentDocument){var r=i(e);return r.checkForObjectDocumentTimeoutId&&window.clearTimeout(r.checkForObjectDocumentTimeoutId),void(r.checkForObjectDocumentTimeoutId=setTimeout(function(){r.checkForObjectDocumentTimeoutId=0,t(e,n)},100))}n(e.contentDocument)}(this,function(t){s(a)})},r.isIE()||(o.data="about:blank"),i(a)&&(a.appendChild(o),i(a).object=o,r.isIE()&&(o.data="about:blank"))}i(a).startSize={width:h,height:d},n?n.add(f):f()}(a,s)},addListener:function(t,e){function n(){e(t)}if(r.isIE(8))i(t).object={proxy:n},t.attachEvent("onresize",n);else{var o=a(t);if(!o)throw new Error("Element is not detectable by this strategy.");o.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(t){if(i(t)){var e=a(t);e&&(r.isIE(8)?t.detachEvent("onresize",e.proxy):t.removeChild(e),i(t).checkForObjectDocumentTimeoutId&&window.clearTimeout(i(t).checkForObjectDocumentTimeoutId),delete i(t).object)}}}}},"18e9":function(t,e,n){"use strict";var r=t.exports={};r.isIE=function(t){return(-1!==(e=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==e.indexOf("trident")||-1!==e.indexOf(" edge/"))&&(!t||t===function(){var t=3,e=document.createElement("div"),n=e.getElementsByTagName("i");do{e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(n[0]);return t>4?t:undefined}());var e},r.isLegacyOpera=function(){return!!window.opera}},"1ca7":function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return s}),n.d(e,"c",function(){return l});var r="auto";function i(){return"undefined"!=typeof document}function o(){return"undefined"!=typeof window}function a(){return i()?void 0!==document.dir?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):r}function s(t,e){o?window.addEventListener(t,e):e()}function l(t,e){o&&window.removeEventListener(t,e)}},"214f":function(t,e,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),l=n("520a"),u=s("species"),c=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=s(t),f=!o(function(){var e={};return e[d]=function(){return 7},7!=""[t](e)}),p=f?!o(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[u]=function(){return n}),n[d](""),!e}):void 0;if(!f||!p||"replace"===t&&!c||"split"===t&&!h){var v=/./[d],g=n(a,d,""[t],function(t,e,n,r,i){return e.exec===l?f&&!i?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),m=g[0],y=g[1];r(String.prototype,t,m),i(RegExp.prototype,d,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},"230e":function(t,e,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},2350:function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(o).concat([i]).join("\n")}var a;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},"23c6":function(t,e,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",function(){return r})},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),l="toString",u=(""+s).split(l);n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(l&&(o(n,a)||i(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,l,function(){return"function"==typeof this&&this[a]||s.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},l="prototype",u=function(){var t,e=n("230e")("iframe"),r=o.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u[l][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[l]=r(t),n=new s,s[l]=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},"2af9":function(t,e,n){"use strict";(function(t){n.d(e,"d",function(){return a});n("7f7f"),n("cadf"),n("456d"),n("ac6a");var r=n("bc21");n.d(e,"a",function(){return r.a});var i=n("37c8");n.d(e,"b",function(){return i.a});var o={GridLayout:i.a,GridItem:r.a};function a(t){a.installed||(a.installed=!0,Object.keys(o).forEach(function(e){t.component(e,o[e])}))}var s={install:a},l=null;"undefined"!=typeof window?l=window.Vue:void 0!==t&&(l=t.Vue),l&&l.use(s),e.c=o}).call(this,n("c8ba"))},"2b4c":function(t,e,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},"2cef":function(t,e,n){"use strict";t.exports=function(){var t=1;return{generate:function(){return t++}}}},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2f21":function(t,e,n){"use strict";var r=n("79e5");t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},"32e9":function(t,e,n){var r=n("86cc"),i=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"37c8":function(t,e,n){"use strict";n("8e6e"),n("cadf"),n("456d"),n("f751"),n("fca0"),n("ac6a");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}n("c5f6");var i=n("8bbf"),o=n.n(i),a=n("a2b6"),s=n("97a7"),l=n("bc21"),u=n("1ca7");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var d=n("eec4"),f={name:"GridLayout",provide:function(){return{eventBus:null,layout:this}},components:{GridItem:l.a},props:{autoSize:{type:Boolean,default:!0},colNum:{type:Number,default:12},rowHeight:{type:Number,default:150},maxRows:{type:Number,default:1/0},margin:{type:Array,default:function(){return[10,10]}},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},layout:{type:Array,required:!0},responsive:{type:Boolean,default:!1},responsiveLayouts:{type:Object,default:function(){return{}}},breakpoints:{type:Object,default:function(){return{lg:1200,md:996,sm:768,xs:480,xxs:0}}},cols:{type:Object,default:function(){return{lg:12,md:10,sm:6,xs:4,xxs:2}}},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},data:function(){return{width:null,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:-1},layouts:{},lastBreakpoint:null,originalLayout:null}},created:function(){var t=this;t.resizeEventHandler=function(e,n,r,i,o,a){t.resizeEvent(e,n,r,i,o,a)},t.dragEventHandler=function(e,n,r,i,o,a){t.dragEvent(e,n,r,i,o,a)},t._provided.eventBus=new o.a,t.eventBus=t._provided.eventBus,t.eventBus.$on("resizeEvent",t.resizeEventHandler),t.eventBus.$on("dragEvent",t.dragEventHandler),t.$emit("layout-created",t.layout)},beforeDestroy:function(){this.eventBus.$off("resizeEvent",this.resizeEventHandler),this.eventBus.$off("dragEvent",this.dragEventHandler),this.eventBus.$destroy(),Object(u.c)("resize",this.onWindowResize),this.erd&&this.erd.uninstall(this.$refs.item)},beforeMount:function(){this.$emit("layout-before-mount",this.layout)},mounted:function(){this.$emit("layout-mounted",this.layout),this.$nextTick(function(){Object(a.l)(this.layout),this.originalLayout=this.layout;var t=this;this.$nextTick(function(){t.onWindowResize(),t.initResponsiveFeatures(),Object(u.a)("resize",t.onWindowResize),Object(a.c)(t.layout,t.verticalCompact),t.$emit("layout-updated",t.layout),t.updateHeight(),t.$nextTick(function(){this.erd=d({strategy:"scroll",callOnAdd:!1}),this.erd.listenTo(t.$refs.item,function(){t.onWindowResize()})})})})},watch:{width:function(t,e){var n=this;this.$nextTick(function(){var t=this;this.eventBus.$emit("updateWidth",this.width),null===e&&this.$nextTick(function(){t.$emit("layout-ready",n.layout)}),this.updateHeight()})},layout:function(){this.layoutUpdate()},colNum:function(t){this.eventBus.$emit("setColNum",t)},rowHeight:function(){this.eventBus.$emit("setRowHeight",this.rowHeight)},isDraggable:function(){this.eventBus.$emit("setDraggable",this.isDraggable)},isResizable:function(){this.eventBus.$emit("setResizable",this.isResizable)},responsive:function(){this.responsive||(this.$emit("update:layout",this.originalLayout),this.eventBus.$emit("setColNum",this.colNum)),this.onWindowResize()},maxRows:function(){this.eventBus.$emit("setMaxRows",this.maxRows)},margin:function(){this.updateHeight()}},methods:{layoutUpdate:function(){if(void 0!==this.layout&&null!==this.originalLayout){if(this.layout.length!==this.originalLayout.length){var t=this.findDifference(this.layout,this.originalLayout);t.length>0&&(this.layout.length>this.originalLayout.length?this.originalLayout=this.originalLayout.concat(t):this.originalLayout=this.originalLayout.filter(function(e){return!t.some(function(t){return e.i===t.i})})),this.lastLayoutLength=this.layout.length,this.initResponsiveFeatures()}Object(a.c)(this.layout,this.verticalCompact),this.eventBus.$emit("updateWidth",this.width),this.updateHeight(),this.$emit("layout-updated",this.layout)}},updateHeight:function(){this.mergedStyle={height:this.containerHeight()}},onWindowResize:function(){null!==this.$refs&&null!==this.$refs.item&&void 0!==this.$refs.item&&(this.width=this.$refs.item.offsetWidth),this.eventBus.$emit("resizeEvent")},containerHeight:function(){if(this.autoSize){var t=Object(a.a)(this.layout)*(this.rowHeight+this.margin[1])+this.margin[1]+"px";return t}},dragEvent:function(t,e,n,r,i,o){var s=Object(a.f)(this.layout,e);null==s&&(s={x:0,y:0}),"dragmove"===t||"dragstart"===t?(this.placeholder.i=e,this.placeholder.x=s.x,this.placeholder.y=s.y,this.placeholder.w=o,this.placeholder.h=i,this.$nextTick(function(){this.isDragging=!0}),this.eventBus.$emit("updateWidth",this.width)):this.$nextTick(function(){this.isDragging=!1}),this.layout=Object(a.g)(this.layout,s,n,r,!0,this.preventCollision),Object(a.c)(this.layout,this.verticalCompact),this.eventBus.$emit("compact"),this.updateHeight(),"dragend"===t&&this.$emit("layout-updated",this.layout)},resizeEvent:function(t,e,n,r,i,o){var s,l=Object(a.f)(this.layout,e);if(null==l&&(l={h:0,w:0}),this.preventCollision){var u=Object(a.e)(this.layout,h(h({},l),{},{w:o,h:i})).filter(function(t){return t.i!==l.i});if(s=u.length>0){var c=1/0,d=1/0;u.forEach(function(t){t.x>l.x&&(c=Math.min(c,t.x)),t.y>l.y&&(d=Math.min(d,t.y))}),Number.isFinite(c)&&(l.w=c-l.x),Number.isFinite(d)&&(l.h=d-l.y)}}s||(l.w=o,l.h=i),"resizestart"===t||"resizemove"===t?(this.placeholder.i=e,this.placeholder.x=n,this.placeholder.y=r,this.placeholder.w=l.w,this.placeholder.h=l.h,this.$nextTick(function(){this.isDragging=!0}),this.eventBus.$emit("updateWidth",this.width)):this.$nextTick(function(){this.isDragging=!1}),this.responsive&&this.responsiveGridLayout(),Object(a.c)(this.layout,this.verticalCompact),this.eventBus.$emit("compact"),this.updateHeight(),"resizeend"===t&&this.$emit("layout-updated",this.layout)},responsiveGridLayout:function(){var t=Object(s.b)(this.breakpoints,this.width),e=Object(s.c)(t,this.cols);null==this.lastBreakpoint||this.layouts[this.lastBreakpoint]||(this.layouts[this.lastBreakpoint]=Object(a.b)(this.layout));var n=Object(s.a)(this.originalLayout,this.layouts,this.breakpoints,t,this.lastBreakpoint,e,this.verticalCompact);this.layouts[t]=n,this.lastBreakpoint!==t&&this.$emit("breakpoint-changed",t,n),this.$emit("update:layout",n),this.lastBreakpoint=t,this.eventBus.$emit("setColNum",Object(s.c)(t,this.cols))},initResponsiveFeatures:function(){this.layouts=Object.assign({},this.responsiveLayouts)},findDifference:function(t,e){var n=t.filter(function(t){return!e.some(function(e){return t.i===e.i})}),r=e.filter(function(e){return!t.some(function(t){return e.i===t.i})});return n.concat(r)}}},p=(n("e279"),n("2877")),v=Object(p.a)(f,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"item",staticClass:"vue-grid-layout",style:t.mergedStyle},[t._t("default"),n("grid-item",{directives:[{name:"show",rawName:"v-show",value:t.isDragging,expression:"isDragging"}],staticClass:"vue-grid-placeholder",attrs:{x:t.placeholder.x,y:t.placeholder.y,w:t.placeholder.w,h:t.placeholder.h,i:t.placeholder.i}})],2)},[],!1,null,null,null);e.a=v.exports},"38fd":function(t,e,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"456d":function(t,e,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",function(){return function(t){return i(r(t))}})},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4917:function(t,e,n){"use strict";var r=n("cb7c"),i=n("9def"),o=n("0390"),a=n("5f1b");n("214f")("match",1,function(t,e,n,s){return[function(n){var r=t(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=s(n,t,this);if(e.done)return e.value;var l=r(t),u=String(this);if(!l.global)return a(l,u);var c=l.unicode;l.lastIndex=0;for(var h,d=[],f=0;null!==(h=a(l,u));){var p=String(h[0]);d[f]=p,""===p&&(l.lastIndex=o(u,i(l.lastIndex),c)),f++}return 0===f?null:d}]})},"499e":function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=o[0],s={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}n.r(e),n.d(e,"default",function(){return p});var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,u=!1,c=function(){},h=null,d="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,n,i){u=n,h=i||{};var a=r(t,e);return v(a),function(e){for(var n=[],i=0;i<a.length;i++){var s=a[i];(l=o[s.id]).refs--,n.push(l)}e?v(a=r(t,e)):a=[];for(i=0;i<n.length;i++){var l;if(0===(l=n[i]).refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete o[l.id]}}}}function v(t){for(var e=0;e<t.length;e++){var n=t[e],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(m(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(m(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function g(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function m(t){var e,n,r=document.querySelector("style["+d+'~="'+t.id+'"]');if(r){if(u)return c;r.parentNode.removeChild(r)}if(f){var i=l++;r=s||(s=g()),e=w.bind(null,r,i,!1),n=w.bind(null,r,i,!0)}else r=g(),e=C.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var y,b=(y=[],function(t,e){return y[t]=e,y.filter(Boolean).join("\n")});function w(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function C(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),h.ssrId&&t.setAttribute(d,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"49ad":function(t,e,n){"use strict";t.exports=function(t){var e={};function n(n){var r=t.get(n);return void 0===r?[]:e[r]||[]}return{get:n,add:function(n,r){var i=t.get(n);e[i]||(e[i]=[]),e[i].push(r)},removeListener:function(t,e){for(var r=n(t),i=0,o=r.length;i<o;++i)if(r[i]===e){r.splice(i,1);break}},removeAllListeners:function(t){var e=n(t);e&&(e.length=0)}}}},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},5058:function(t,e,n){"use strict";t.exports=function(t){var e=t.idGenerator,n=t.stateHandler.getState;return{get:function(t){var e=n(t);return e&&void 0!==e.id?e.id:null},set:function(t){var r=n(t);if(!r)throw new Error("setId required the element to have a resize detection state.");var i=e.generate();return r.id=i,i}}}},"50bf":function(t,e,n){"use strict";(t.exports={}).getOption=function(t,e,n){var r=t[e];if(null==r&&void 0!==n)return n;return r}},"520a":function(t,e,n){"use strict";var r,i,o=n("0bfb"),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,u="lastIndex",c=(r=/a/,i=/b*/g,a.call(r,"a"),a.call(i,"a"),0!==r[u]||0!==i[u]),h=void 0!==/()??/.exec("")[1];(c||h)&&(l=function(t){var e,n,r,i,l=this;return h&&(n=new RegExp("^"+l.source+"$(?!\\s)",o.call(l))),c&&(e=l[u]),r=a.call(l,t),c&&r&&(l[u]=l.global?r.index+r[0].length:e),h&&r&&r.length>1&&s.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r}),t.exports=l},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"55dd":function(t,e,n){"use strict";var r=n("5ca1"),i=n("d8e8"),o=n("4bf8"),a=n("79e5"),s=[].sort,l=[1,2,3];r(r.P+r.F*(a(function(){l.sort(void 0)})||!a(function(){l.sort(null)})||!n("2f21")(s)),"Array",{sort:function(t){return void 0===t?s.call(o(this)):s.call(o(this),i(t))}})},"5be5":function(t,e,n){"use strict";t.exports=function(t){var e=t.stateHandler.getState;return{isDetectable:function(t){var n=e(t);return n&&!!n.isDetectable},markAsDetectable:function(t){e(t).isDetectable=!0},isBusy:function(t){return!!e(t).busy},markBusy:function(t,n){e(t).busy=!!n}}}},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),l="prototype",u=function(t,e,n){var c,h,d,f,p=t&u.F,v=t&u.G,g=t&u.S,m=t&u.P,y=t&u.B,b=v?r:g?r[e]||(r[e]={}):(r[e]||{})[l],w=v?i:i[e]||(i[e]={}),C=w[l]||(w[l]={});for(c in v&&(n=e),n)d=((h=!p&&b&&void 0!==b[c])?b:n)[c],f=y&&h?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,b&&a(b,c,d,t&u.U),w[c]!=d&&o(w,c,f),m&&C[c]!=d&&(C[c]=d)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5dbc":function(t,e,n){var r=n("d3f4"),i=n("8b97").set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},"5ed4":function(t,e,n){"use strict";n("6e21")},"5eda":function(t,e,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},"5f1b":function(t,e,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"6e21":function(t,e,n){var r=n("9cbe");"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n("499e").default)("3cbd0c21",r,!0,{sourceMap:!1,shadowMode:!1})},7333:function(t,e,n){"use strict";var r=n("9e1e"),i=n("0d58"),o=n("2621"),a=n("52a7"),s=n("4bf8"),l=n("626a"),u=Object.assign;t.exports=!u||n("79e5")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=s(t),u=arguments.length,c=1,h=o.f,d=a.f;u>c;)for(var f,p=l(arguments[c++]),v=h?i(p).concat(h(p)):i(p),g=v.length,m=0;g>m;)f=v[m++],r&&!d.call(p,f)||(n[f]=p[f]);return n}:u},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},"7f7f":function(t,e,n){var r=n("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n("9e1e")&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},8378:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8b97":function(t,e,n){var r=n("d3f4"),i=n("cb7c"),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},"8bbf":function(t,e){t.exports=n(5594)},"8e6e":function(t,e,n){var r=n("5ca1"),i=n("990b"),o=n("6821"),a=n("11e9"),s=n("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=o(t),l=a.f,u=i(r),c={},h=0;u.length>h;)void 0!==(n=l(r,e=u[h++]))&&s(c,e,n);return c}})},9093:function(t,e,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"97a7":function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"c",function(){return o}),n.d(e,"a",function(){return a});n("55dd"),n("ac6a"),n("cadf"),n("456d");var r=n("a2b6");function i(t,e){for(var n=s(t),r=n[0],i=1,o=n.length;i<o;i++){var a=n[i];e>t[a]&&(r=a)}return r}function o(t,e){if(!e[t])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+t+" is missing!");return e[t]}function a(t,e,n,i,o,a,l){if(e[i])return Object(r.b)(e[i]);for(var u=t,c=s(n),h=c.slice(c.indexOf(i)),d=0,f=h.length;d<f;d++){var p=h[d];if(e[p]){u=e[p];break}}return u=Object(r.b)(u||[]),Object(r.c)(Object(r.d)(u,{cols:a}),l)}function s(t){return Object.keys(t).sort(function(e,n){return t[e]-t[n]})}},"990b":function(t,e,n){var r=n("9093"),i=n("2621"),o=n("cb7c"),a=n("7726").Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),i=Array.prototype;null==i[r]&&n("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9cbe":function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,'.vue-grid-item{-webkit-transition:all .2s ease;transition:all .2s ease;-webkit-transition-property:left,top,right;transition-property:left,top,right}.vue-grid-item.no-touch{-ms-touch-action:none;touch-action:none}.vue-grid-item.cssTransforms{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;left:0;right:auto}.vue-grid-item.cssTransforms.render-rtl{left:auto;right:0}.vue-grid-item.resizing{opacity:.6;z-index:3}.vue-grid-item.vue-draggable-dragging{-webkit-transition:none;transition:none;z-index:3}.vue-grid-item.vue-grid-placeholder{background:red;opacity:.2;-webkit-transition-duration:.1s;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.vue-grid-item>.vue-resizable-handle{position:absolute;width:20px;height:20px;bottom:0;right:0;background:url("data:image/svg+xml;base64,PHN2ZyBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjYiIGhlaWdodD0iNiI+PHBhdGggZD0iTTYgNkgwVjQuMmg0LjJWMEg2djZ6IiBvcGFjaXR5PSIuMzAyIi8+PC9zdmc+");background-position:100% 100%;padding:0 3px 3px 0;background-repeat:no-repeat;background-origin:content-box;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:se-resize}.vue-grid-item>.vue-rtl-resizable-handle{bottom:0;left:0;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS0xLTFoMTJ2MTJILTF6Ii8+PGc+PHBhdGggc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiIGQ9Ik0xNDQuODIxLTM4LjM5M2wtMjAuMzU3LTMxLjc4NSIvPjxwYXRoIHN0cm9rZT0iIzY2NiIgc3Ryb2tlLWxpbmVjYXA9InVuZGVmaW5lZCIgc3Ryb2tlLWxpbmVqb2luPSJ1bmRlZmluZWQiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIgZD0iTS45NDctLjAxOHY5LjEyNU0tLjY1NiA5aDEwLjczIi8+PC9nPjwvc3ZnPg==);background-position:0 100%;padding-left:3px;background-repeat:no-repeat;background-origin:content-box;cursor:sw-resize;right:auto}.vue-grid-item.disable-userselect{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}',""])},"9def":function(t,e,n){var r=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a2b6:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return u}),n.d(e,"f",function(){return c}),n.d(e,"e",function(){return d}),n.d(e,"g",function(){return p}),n.d(e,"j",function(){return g}),n.d(e,"k",function(){return m}),n.d(e,"h",function(){return y}),n.d(e,"i",function(){return b}),n.d(e,"l",function(){return C});n("a481"),n("cadf"),n("456d"),n("ac6a"),n("55dd");function r(t){for(var e,n=0,r=0,i=t.length;r<i;r++)(e=t[r].y+t[r].h)>n&&(n=e);return n}function i(t){for(var e=Array(t.length),n=0,r=t.length;n<r;n++)e[n]=o(t[n]);return e}function o(t){return JSON.parse(JSON.stringify(t))}function a(t,e){return t!==e&&(!(t.x+t.w<=e.x)&&(!(t.x>=e.x+e.w)&&(!(t.y+t.h<=e.y)&&!(t.y>=e.y+e.h))))}function s(t,e){for(var n=f(t),r=w(t),i=Array(t.length),o=0,a=r.length;o<a;o++){var s=r[o];s.static||(s=l(n,s,e),n.push(s)),i[t.indexOf(s)]=s,s.moved=!1}return i}function l(t,e,n){if(n)for(;e.y>0&&!h(t,e);)e.y--;for(var r;r=h(t,e);)e.y=r.y+r.h;return e}function u(t,e){for(var n=f(t),r=0,i=t.length;r<i;r++){var o=t[r];if(o.x+o.w>e.cols&&(o.x=e.cols-o.w),o.x<0&&(o.x=0,o.w=e.cols),o.static)for(;h(n,o);)o.y++;else n.push(o)}return t}function c(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n].i===e)return t[n]}function h(t,e){for(var n=0,r=t.length;n<r;n++)if(a(t[n],e))return t[n]}function d(t,e){return t.filter(function(t){return a(t,e)})}function f(t){return t.filter(function(t){return t.static})}function p(t,e,n,r,i,o){if(e.static)return t;var a=e.x,s=e.y,l=r&&e.y>r;"number"==typeof n&&(e.x=n),"number"==typeof r&&(e.y=r),e.moved=!0;var u=w(t);l&&(u=u.reverse());var c=d(u,e);if(o&&c.length)return e.x=a,e.y=s,e.moved=!1,t;for(var h=0,f=c.length;h<f;h++){var p=c[h];p.moved||(e.y>p.y&&e.y-p.y>p.h/4||(t=p.static?v(t,p,e,i):v(t,e,p,i)))}return t}function v(t,e,n,r){var i=!1;if(r){var o={x:n.x,y:n.y,w:n.w,h:n.h,i:"-1"};if(o.y=Math.max(e.y-n.h,0),!h(t,o))return p(t,n,void 0,o.y,i)}return p(t,n,void 0,n.y+1,i)}function g(t,e,n,r){var i="translate3d("+e+"px,"+t+"px, 0)";return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:n+"px",height:r+"px",position:"absolute"}}function m(t,e,n,r){var i="translate3d("+-1*e+"px,"+t+"px, 0)";return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:n+"px",height:r+"px",position:"absolute"}}function y(t,e,n,r){return{top:t+"px",left:e+"px",width:n+"px",height:r+"px",position:"absolute"}}function b(t,e,n,r){return{top:t+"px",right:e+"px",width:n+"px",height:r+"px",position:"absolute"}}function w(t){return[].concat(t).sort(function(t,e){return t.y===e.y&&t.x===e.x?0:t.y>e.y||t.y===e.y&&t.x>e.x?1:-1})}function C(t,e){e=e||"Layout";var n=["x","y","w","h"];if(!Array.isArray(t))throw new Error(e+" must be an array!");for(var r=0,i=t.length;r<i;r++){for(var o=t[r],a=0;a<n.length;a++)if("number"!=typeof o[n[a]])throw new Error("VueGridLayout: "+e+"["+r+"]."+n[a]+" must be a number!");if(o.i&&o.i,void 0!==o.static&&"boolean"!=typeof o.static)throw new Error("VueGridLayout: "+e+"["+r+"].static must be a boolean!")}}},a481:function(t,e,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),l=n("5f1b"),u=Math.max,c=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,function(t,e,n,v){return[function(r,i){var o=t(this),a=null==r?void 0:r[e];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=v(n,t,this,e);if(i.done)return i.value;var h=r(t),d=String(this),f="function"==typeof e;f||(e=String(e));var m=h.global;if(m){var y=h.unicode;h.lastIndex=0}for(var b=[];;){var w=l(h,d);if(null===w)break;if(b.push(w),!m)break;""===String(w[0])&&(h.lastIndex=s(d,o(h.lastIndex),y))}for(var C="",_=0,x=0;x<b.length;x++){w=b[x];for(var S=String(w[0]),E=u(c(a(w.index),d.length),0),O=[],T=1;T<w.length;T++)O.push(p(w[T]));var I=w.groups;if(f){var M=[S].concat(O,E,d);void 0!==I&&M.push(I);var L=String(e.apply(void 0,M))}else L=g(S,d,E,O,I,e);E>=_&&(C+=d.slice(_,E)+L,_=E+S.length)}return C+d.slice(_)}];function g(t,e,r,o,a,s){var l=r+t.length,u=o.length,c=f;return void 0!==a&&(a=i(a),c=d),n.call(s,c,function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(l);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return n;if(c>u){var d=h(c/10);return 0===d?n:d<=u?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):n}s=o[c-1]}return void 0===s?"":s})}})},aa77:function(t,e,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),a=n("fdef"),s="["+a+"]",l=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),c=function(t,e,n){var i={},s=o(function(){return!!a[t]()||"​…"!="​…"[t]()}),l=i[t]=s?e(h):a[t];n&&(i[n]=l),r(r.P+r.F*s,"String",i)},h=c.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=c},abb4:function(t,e,n){"use strict";t.exports=function(t){function e(){}var n={log:e,warn:e,error:e};if(!t&&window.console){var r=function(t,e){t[e]=function(){var t=console[e];if(t.apply)t.apply(console,arguments);else for(var n=0;n<arguments.length;n++)t(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}},ac6a:function(t,e,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),l=n("84f2"),u=n("2b4c"),c=u("iterator"),h=u("toStringTag"),d=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(f),v=0;v<p.length;v++){var g,m=p[v],y=f[m],b=a[m],w=b&&b.prototype;if(w&&(w[c]||s(w,c,d),w[h]||s(w,h,m),l[m]=d,y))for(g in r)w[g]||o(w,g,r[g],!0)}},ad20:function(t,e,n){(t.exports=n("2350")(!1)).push([t.i,".vue-grid-layout{position:relative;-webkit-transition:height .2s ease;transition:height .2s ease}",""])},b0c5:function(t,e,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b770:function(t,e,n){"use strict";(t.exports={}).forEach=function(t,e){for(var n=0;n<t.length;n++){var r=e(t[n]);if(r)return r}}},bc21:function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"edgeTarget",function(){return he}),n.d(r,"elements",function(){return de}),n.d(r,"grid",function(){return fe});n("a481"),n("4917"),n("c5f6");var i=n("a2b6");function o(t){return n=(e=t).target.offsetParent||document.body,r=e.offsetParent===document.body?{left:0,top:0}:n.getBoundingClientRect(),i=e.clientX+n.scrollLeft-r.left,o=e.clientY+n.scrollTop-r.top,{x:i,y:o};var e,n,r,i,o}function a(t,e,n,r){var i;return!("number"==typeof(i=t)&&!isNaN(i))?{deltaX:0,deltaY:0,lastX:n,lastY:r,x:n,y:r}:{deltaX:n-t,deltaY:r-e,lastX:t,lastY:e,x:n,y:r}}var s=n("97a7"),l=n("1ca7");const u={init:function(t){const e=t;u.document=e.document,u.DocumentFragment=e.DocumentFragment||c,u.SVGElement=e.SVGElement||c,u.SVGSVGElement=e.SVGSVGElement||c,u.SVGElementInstance=e.SVGElementInstance||c,u.Element=e.Element||c,u.HTMLElement=e.HTMLElement||u.Element,u.Event=e.Event,u.Touch=e.Touch||c,u.PointerEvent=e.PointerEvent||e.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function c(){}var h=u;var d=t=>!(!t||!t.Window)&&t instanceof t.Window;let f,p;function v(t){f=t;const e=t.document.createTextNode("");e.ownerDocument!==t.document&&"function"==typeof t.wrap&&t.wrap(e)===e&&(t=t.wrap(t)),p=t}function g(t){if(d(t))return t;return(t.ownerDocument||t).defaultView||p.window}"undefined"!=typeof window&&window&&v(window);const m=t=>!!t&&"object"==typeof t,y=t=>"function"==typeof t;var b={window:t=>t===p||d(t),docFrag:t=>m(t)&&11===t.nodeType,object:m,func:y,number:t=>"number"==typeof t,bool:t=>"boolean"==typeof t,string:t=>"string"==typeof t,element:t=>{if(!t||"object"!=typeof t)return!1;const e=g(t)||p;return/object|function/.test(typeof e.Element)?t instanceof e.Element:1===t.nodeType&&"string"==typeof t.nodeName},plainObject:t=>m(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString()),array:t=>m(t)&&void 0!==t.length&&y(t.splice)};const w={init:function(t){const e=h.Element,n=p.navigator;w.supportsTouch="ontouchstart"in t||b.func(t.DocumentTouch)&&h.document instanceof t.DocumentTouch,w.supportsPointerEvent=!1!==n.pointerEnabled&&!!h.PointerEvent,w.isIOS=/iP(hone|od|ad)/.test(n.platform),w.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),w.isIe9=/MSIE 9/.test(n.userAgent),w.isOperaMobile="Opera"===n.appName&&w.supportsTouch&&/Presto/.test(n.userAgent),w.prefixedMatchesSelector="matches"in e.prototype?"matches":"webkitMatchesSelector"in e.prototype?"webkitMatchesSelector":"mozMatchesSelector"in e.prototype?"mozMatchesSelector":"oMatchesSelector"in e.prototype?"oMatchesSelector":"msMatchesSelector",w.pEventTypes=w.supportsPointerEvent?h.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,w.wheelEvent="onmousewheel"in h.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null};var C=w;const _=(t,e)=>{for(const n of e)t.push(n);return t},x=t=>_([],t),S=(t,e)=>{for(let n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1},E=(t,e)=>t[S(t,e)];function O(t){const e={};for(const n in t){const r=t[n];b.plainObject(r)?e[n]=O(r):b.array(r)?e[n]=x(r):e[n]=r}return e}function T(t,e){for(const n in e)t[n]=e[n];return t}let I,M,L=0;var k={request:t=>I(t),cancel:t=>M(t),init:function(t){if(I=t.requestAnimationFrame,M=t.cancelAnimationFrame,!I){const e=["ms","moz","webkit","o"];for(const n of e)I=t[`${n}RequestAnimationFrame`],M=t[`${n}CancelAnimationFrame`]||t[`${n}CancelRequestAnimationFrame`]}I=I&&I.bind(t),M=M&&M.bind(t),I||(I=e=>{const n=Date.now(),r=Math.max(0,16-(n-L)),i=t.setTimeout(()=>{e(n+r)},r);return L=n+r,i},M=t=>clearTimeout(t))}};function A(t,e,n){if(n=n||{},b.string(t)&&-1!==t.search(" ")&&(t=R(t)),b.array(t))return t.reduce((t,r)=>T(t,A(r,e,n)),n);if(b.object(t)&&(e=t,t=""),b.func(e))n[t]=n[t]||[],n[t].push(e);else if(b.array(e))for(const r of e)A(t,r,n);else if(b.object(e))for(const r in e){A(R(r).map(e=>`${t}${e}`),e[r],n)}return n}function R(t){return t.trim().split(/ +/)}function D(t,e){for(const n of e){if(t.immediatePropagationStopped)break;n(t)}}class P{constructor(t){this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=T({},t||{})}fire(t){let e;const n=this.global;(e=this.types[t.type])&&D(t,e),!t.propagationStopped&&n&&(e=n[t.type])&&D(t,e)}on(t,e){const n=A(t,e);for(t in n)this.types[t]=_(this.types[t]||[],n[t])}off(t,e){const n=A(t,e);for(t in n){const e=this.types[t];if(e&&e.length)for(const r of n[t]){const t=e.indexOf(r);-1!==t&&e.splice(t,1)}}}getRect(t){return null}}function N(t,e){if(t.contains)return t.contains(e);for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function B(t,e){for(;b.element(t);){if(F(t,e))return t;t=z(t)}return null}function z(t){let e=t.parentNode;if(b.docFrag(e)){for(;(e=e.host)&&b.docFrag(e););return e}return e}function F(t,e){return p!==f&&(e=e.replace(/\/deep\//g," ")),t[C.prefixedMatchesSelector](e)}function H(t,e,n){for(;b.element(t);){if(F(t,e))return!0;if((t=z(t))===n)return F(t,e)}return!1}function j(t){return t.correspondingUseElement||t}function W(t){const e=t instanceof h.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return e&&{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top}}function G(t){const e=W(t);if(!C.isIOS7&&e){const r={x:(n=(n=g(t))||p).scrollX||n.document.documentElement.scrollLeft,y:n.scrollY||n.document.documentElement.scrollTop};e.left+=r.x,e.right+=r.x,e.top+=r.y,e.bottom+=r.y}var n;return e}function V(t){return!!b.string(t)&&(h.document.querySelector(t),!0)}function $(t,e,n,r){let i=t;return b.string(i)?i=function(t,e,n){return"parent"===t?z(n):"self"===t?e.getRect(n):B(n,t)}(i,e,n):b.func(i)&&(i=i(...r)),b.element(i)&&(i=G(i)),i}function U(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function Y(t){return!t||"x"in t&&"y"in t||((t=T({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function X(t,e,n){t.left&&(e.left+=n.x),t.right&&(e.right+=n.x),t.top&&(e.top+=n.y),t.bottom&&(e.bottom+=n.y),e.width=e.right-e.left,e.height=e.bottom-e.top}var q=function(t,e,n){const r=t.options[n];return U($(r&&r.origin||t.options.origin,t,e,[t&&e]))||{x:0,y:0}},K=(t,e)=>Math.sqrt(t*t+e*e);class Z{constructor(t){this.type=void 0,this.target=void 0,this.currentTarget=void 0,this.interactable=void 0,this._interaction=void 0,this.timeStamp=void 0,this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=t}preventDefault(){}stopPropagation(){this.propagationStopped=!0}stopImmediatePropagation(){this.immediatePropagationStopped=this.propagationStopped=!0}}Object.defineProperty(Z.prototype,"interaction",{get(){return this._interaction._proxy},set(){}});const J={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}};class Q extends Z{constructor(t,e,n,r,i,o,a){super(t),this.target=void 0,this.currentTarget=void 0,this.relatedTarget=null,this.screenX=void 0,this.screenY=void 0,this.button=void 0,this.buttons=void 0,this.ctrlKey=void 0,this.shiftKey=void 0,this.altKey=void 0,this.metaKey=void 0,this.page=void 0,this.client=void 0,this.delta=void 0,this.rect=void 0,this.x0=void 0,this.y0=void 0,this.t0=void 0,this.dt=void 0,this.duration=void 0,this.clientX0=void 0,this.clientY0=void 0,this.velocity=void 0,this.speed=void 0,this.swipe=void 0,this.timeStamp=void 0,this.axes=void 0,this.preEnd=void 0,i=i||t.element;const s=t.interactable,l=(s&&s.options||J).deltaSource,u=q(s,i,n),c="start"===r,h="end"===r,d=c?this:t.prevEvent,f=c?t.coords.start:h?{page:d.page,client:d.client,timeStamp:t.coords.cur.timeStamp}:t.coords.cur;this.page=T({},f.page),this.client=T({},f.client),this.rect=T({},t.rect),this.timeStamp=f.timeStamp,h||(this.page.x-=u.x,this.page.y-=u.y,this.client.x-=u.x,this.client.y-=u.y),this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.button=e.button,this.buttons=e.buttons,this.target=i,this.currentTarget=i,this.preEnd=o,this.type=a||n+(r||""),this.interactable=s,this.t0=c?t.pointers[t.pointers.length-1].downTime:d.t0,this.x0=t.coords.start.page.x-u.x,this.y0=t.coords.start.page.y-u.y,this.clientX0=t.coords.start.client.x-u.x,this.clientY0=t.coords.start.client.y-u.y,this.delta=c||h?{x:0,y:0}:{x:this[l].x-d[l].x,y:this[l].y-d[l].y},this.dt=t.coords.delta.timeStamp,this.duration=this.timeStamp-this.t0,this.velocity=T({},t.coords.velocity[l]),this.speed=K(this.velocity.x,this.velocity.y),this.swipe=h||"inertiastart"===r?this.getSwipe():null}getSwipe(){const t=this._interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150)return null;let e=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;e<0&&(e+=360);const n=112.5<=e&&e<247.5,r=202.5<=e&&e<337.5;return{up:r,down:!r&&22.5<=e&&e<157.5,left:n,right:!n&&(292.5<=e||e<67.5),angle:e,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}preventDefault(){}stopImmediatePropagation(){this.immediatePropagationStopped=this.propagationStopped=!0}stopPropagation(){this.propagationStopped=!0}}function tt(t,e){if(e.phaselessTypes[t])return!0;for(const n in e.map)if(0===t.indexOf(n)&&t.substr(n.length)in e.phases)return!0;return!1}Object.defineProperties(Q.prototype,{pageX:{get(){return this.page.x},set(t){this.page.x=t}},pageY:{get(){return this.page.y},set(t){this.page.y=t}},clientX:{get(){return this.client.x},set(t){this.client.x=t}},clientY:{get(){return this.client.y},set(t){this.client.y=t}},dx:{get(){return this.delta.x},set(t){this.delta.x=t}},dy:{get(){return this.delta.y},set(t){this.delta.y=t}},velocityX:{get(){return this.velocity.x},set(t){this.velocity.x=t}},velocityY:{get(){return this.velocity.y},set(t){this.velocity.y=t}}});class et{get _defaults(){return{base:{},perAction:{},actions:{}}}constructor(t,e,n,r){this.options=void 0,this._actions=void 0,this.target=void 0,this.events=new P,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._rectChecker=void 0,this._actions=e.actions,this.target=t,this._context=e.context||n,this._win=g(V(t)?this._context:t),this._doc=this._win.document,this._scopeEvents=r,this.set(e)}setOnEvents(t,e){return b.func(e.onstart)&&this.on(`${t}start`,e.onstart),b.func(e.onmove)&&this.on(`${t}move`,e.onmove),b.func(e.onend)&&this.on(`${t}end`,e.onend),b.func(e.oninertiastart)&&this.on(`${t}inertiastart`,e.oninertiastart),this}updatePerActionListeners(t,e,n){(b.array(e)||b.object(e))&&this.off(t,e),(b.array(n)||b.object(n))&&this.on(t,n)}setPerAction(t,e){const n=this._defaults;for(const r in e){const i=r,o=this.options[t],a=e[i];"listeners"===i&&this.updatePerActionListeners(t,o.listeners,a),b.array(a)?o[i]=x(a):b.plainObject(a)?(o[i]=T(o[i]||{},O(a)),b.object(n.perAction[i])&&"enabled"in n.perAction[i]&&(o[i].enabled=!1!==a.enabled)):b.bool(a)&&b.object(n.perAction[i])?o[i].enabled=a:o[i]=a}}getRect(t){return t=t||(b.element(this.target)?this.target:null),b.string(this.target)&&(t=t||this._context.querySelector(this.target)),G(t)}rectChecker(t){return b.func(t)?(this._rectChecker=t,this.getRect=t=>{const e=T({},this._rectChecker(t));return"width"in e||(e.width=e.right-e.left,e.height=e.bottom-e.top),e},this):null===t?(delete this.getRect,delete this._rectChecker,this):this.getRect}_backCompatOption(t,e){if(V(e)||b.object(e)){this.options[t]=e;for(const n in this._actions.map)this.options[n][t]=e;return this}return this.options[t]}origin(t){return this._backCompatOption("origin",t)}deltaSource(t){return"page"===t||"client"===t?(this.options.deltaSource=t,this):this.options.deltaSource}context(){return this._context}inContext(t){return this._context===t.ownerDocument||N(this._context,t)}testIgnoreAllow(t,e,n){return!this.testIgnore(t.ignoreFrom,e,n)&&this.testAllow(t.allowFrom,e,n)}testAllow(t,e,n){return!t||!!b.element(n)&&(b.string(t)?H(n,t,e):!!b.element(t)&&N(t,n))}testIgnore(t,e,n){return!(!t||!b.element(n))&&(b.string(t)?H(n,t,e):!!b.element(t)&&N(t,n))}fire(t){return this.events.fire(t),this}_onOff(t,e,n,r){b.object(e)&&!b.array(e)&&(r=n,n=null);const i="on"===t?"add":"remove",o=A(e,n);for(let e in o){"wheel"===e&&(e=C.wheelEvent);for(const n of o[e])tt(e,this._actions)?this.events[t](e,n):b.string(this.target)?this._scopeEvents[`${i}Delegate`](this.target,this._context,e,n,r):this._scopeEvents[i](this.target,e,n,r)}return this}on(t,e,n){return this._onOff("on",t,e,n)}off(t,e,n){return this._onOff("off",t,e,n)}set(t){const e=this._defaults;b.object(t)||(t={}),this.options=O(e.base);for(const n in this._actions.methodDict){const r=n,i=this._actions.methodDict[r];this.options[r]={},this.setPerAction(r,T(T({},e.perAction),e.actions[r])),this[i](t[r])}for(const e in t)b.func(this[e])&&this[e](t[e]);return this}unset(){if(b.string(this.target))for(const t in this._scopeEvents.delegatedEvents){const e=this._scopeEvents.delegatedEvents[t];for(let n=e.length-1;n>=0;n--){const{selector:r,context:i,listeners:o}=e[n];r===this.target&&i===this._context&&e.splice(n,1);for(let e=o.length-1;e>=0;e--)this._scopeEvents.removeDelegate(this.target,this._context,t,o[e][0],o[e][1])}}else this._scopeEvents.remove(this.target,"all")}}class nt{constructor(t){this.list=[],this.selectorMap={},this.scope=void 0,this.scope=t,t.addListeners({"interactable:unset":({interactable:t})=>{const{target:e,_context:n}=t,r=b.string(e)?this.selectorMap[e]:e[this.scope.id],i=S(r,t=>t.context===n);r[i]&&(r[i].context=null,r[i].interactable=null),r.splice(i,1)}})}new(t,e){e=T(e||{},{actions:this.scope.actions});const n=new this.scope.Interactable(t,e,this.scope.document,this.scope.events),r={context:n._context,interactable:n};return this.scope.addDocument(n._doc),this.list.push(n),b.string(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(r)):(n.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(r)),this.scope.fire("interactable:new",{target:t,options:e,interactable:n,win:this.scope._win}),n}get(t,e){const n=e&&e.context||this.scope.document,r=b.string(t),i=r?this.selectorMap[t]:t[this.scope.id];if(!i)return null;const o=E(i,e=>e.context===n&&(r||e.interactable.inContext(t)));return o&&o.interactable}forEachMatch(t,e){for(const n of this.list){let r;if((b.string(n.target)?b.element(t)&&F(t,n.target):t===n.target)&&n.inContext(t)&&(r=e(n)),void 0!==r)return r}}}function rt(t,e){for(const n in e){const r=rt.prefixedPropREs;let i=!1;for(const t in r)if(0===n.indexOf(t)&&r[t].test(n)){i=!0;break}i||"function"==typeof e[n]||(t[n]=e[n])}return t}rt.prefixedPropREs={webkit:/(Movement[XY]|Radius[XY]|RotationAngle|Force)$/,moz:/(Pressure)$/};var it=rt;function ot(t,e){t.page=t.page||{},t.page.x=e.page.x,t.page.y=e.page.y,t.client=t.client||{},t.client.x=e.client.x,t.client.y=e.client.y,t.timeStamp=e.timeStamp}function at(t){return t instanceof h.Event||t instanceof h.Touch}function st(t,e,n){return t=t||"page",(n=n||{}).x=e[t+"X"],n.y=e[t+"Y"],n}function lt(t){return b.number(t.pointerId)?t.pointerId:t.identifier}function ut(t,e,n){const r=e.length>1?ht(e):e[0];!function(t,e){e=e||{x:0,y:0},C.isOperaMobile&&at(t)?(st("screen",t,e),e.x+=window.scrollX,e.y+=window.scrollY):st("page",t,e)}(r,t.page),function(t,e){e=e||{},C.isOperaMobile&&at(t)?st("screen",t,e):st("client",t,e)}(r,t.client),t.timeStamp=n}function ct(t){const e=[];return b.array(t)?(e[0]=t[0],e[1]=t[1]):"touchend"===t.type?1===t.touches.length?(e[0]=t.touches[0],e[1]=t.changedTouches[0]):0===t.touches.length&&(e[0]=t.changedTouches[0],e[1]=t.changedTouches[1]):(e[0]=t.touches[0],e[1]=t.touches[1]),e}function ht(t){const e={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0};for(const n of t)for(const t in e)e[t]+=n[t];for(const n in e)e[n]/=t.length;return e}function dt(t){if(!t.length)return null;const e=ct(t),n=Math.min(e[0].pageX,e[1].pageX),r=Math.min(e[0].pageY,e[1].pageY),i=Math.max(e[0].pageX,e[1].pageX),o=Math.max(e[0].pageY,e[1].pageY);return{x:n,y:r,left:n,top:r,right:i,bottom:o,width:i-n,height:o-r}}function ft(t,e){const n=e+"X",r=e+"Y",i=ct(t),o=i[0][n]-i[1][n],a=i[0][r]-i[1][r];return K(o,a)}function pt(t,e){const n=e+"X",r=e+"Y",i=ct(t),o=i[1][n]-i[0][n],a=i[1][r]-i[0][r];return 180*Math.atan2(a,o)/Math.PI}function vt(t){const e=b.func(t.composedPath)?t.composedPath():t.path;return[j(e?e[0]:t.target),j(t.currentTarget)]}class gt{constructor(t){this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=t,it(this,t)}preventOriginalDefault(){this.originalEvent.preventDefault()}stopPropagation(){this.originalEvent.stopPropagation()}stopImmediatePropagation(){this.originalEvent.stopImmediatePropagation()}}function mt(t){if(!b.object(t))return{capture:!!t,passive:!1};const e=T({},t);return e.capture=!!t.capture,e.passive=!!t.passive,e}var yt={id:"events",install:function(t){const e=[],n={},r=[],i={add:o,remove:a,addDelegate:function(t,e,i,a,u){const c=mt(u);if(!n[i]){n[i]=[];for(const t of r)o(t,i,s),o(t,i,l,!0)}const h=n[i];let d=E(h,n=>n.selector===t&&n.context===e);d||(d={selector:t,context:e,listeners:[]},h.push(d));d.listeners.push([a,c])},removeDelegate:function(t,e,r,i,o){const u=mt(o),c=n[r];let h,d=!1;if(!c)return;for(h=c.length-1;h>=0;h--){const n=c[h];if(n.selector===t&&n.context===e){const{listeners:t}=n;for(let n=t.length-1;n>=0;n--){const[o,{capture:f,passive:p}]=t[n];if(o===i&&f===u.capture&&p===u.passive){t.splice(n,1),t.length||(c.splice(h,1),a(e,r,s),a(e,r,l,!0)),d=!0;break}}if(d)break}}},delegateListener:s,delegateUseCapture:l,delegatedEvents:n,documents:r,targets:e,supportsOptions:!1,supportsPassive:!1};function o(t,n,r,o){const a=mt(o);let s=E(e,e=>e.eventTarget===t);s||(s={eventTarget:t,events:{}},e.push(s)),s.events[n]||(s.events[n]=[]),t.addEventListener&&!((t,e)=>-1!==t.indexOf(e))(s.events[n],r)&&(t.addEventListener(n,r,i.supportsOptions?a:a.capture),s.events[n].push(r))}function a(t,n,r,o){const s=mt(o),l=S(e,e=>e.eventTarget===t),u=e[l];if(!u||!u.events)return;if("all"===n){for(n in u.events)u.events.hasOwnProperty(n)&&a(t,n,"all");return}let c=!1;const h=u.events[n];if(h){if("all"===r){for(let e=h.length-1;e>=0;e--)a(t,n,h[e],s);return}for(let e=0;e<h.length;e++)if(h[e]===r){t.removeEventListener(n,r,i.supportsOptions?s:s.capture),h.splice(e,1),0===h.length&&(delete u.events[n],c=!0);break}}c&&!Object.keys(u.events).length&&e.splice(l,1)}function s(t,e){const r=mt(e),i=new gt(t),o=n[t.type],[a]=vt(t);let s=a;for(;b.element(s);){for(let t=0;t<o.length;t++){const e=o[t],{selector:n,context:l}=e;if(F(s,n)&&N(l,a)&&N(l,s)){const{listeners:t}=e;i.currentTarget=s;for(const[e,{capture:n,passive:o}]of t)n===r.capture&&o===r.passive&&e(i)}}s=z(s)}}function l(t){return s.call(this,t,!0)}return t.document.createElement("div").addEventListener("test",null,{get capture(){return i.supportsOptions=!0},get passive(){return i.supportsPassive=!0}}),t.events=i,i}};function bt(t,e){let n=!1;return function(){return n||(p.console.warn(e),n=!0),t.apply(this,arguments)}}function wt(t,e){return t.name=e.name,t.axis=e.axis,t.edges=e.edges,t}class Ct{constructor(t,e,n,r,i){this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=t,this.pointer=e,this.event=n,this.downTime=r,this.downTarget=i}}let _t,xt;!function(t){t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy=""}(_t||(_t={})),function(t){t.start="",t.move="",t.end="",t.stop="",t.interacting=""}(xt||(xt={}));let St=0;var Et=class{get pointerMoveTolerance(){return 1}constructor({pointerType:t,scopeFire:e}){this.interactable=null,this.element=null,this.rect=void 0,this._rects=void 0,this.edges=void 0,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=null,this.simulation=null,this.doMove=bt(function(t){this.move(t)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=St++,this._scopeFire=e,this.pointerType=t;const n=this;this._proxy={};for(const t in _t)Object.defineProperty(this._proxy,t,{get:()=>n[t]});for(const t in xt)Object.defineProperty(this._proxy,t,{value:(...e)=>n[t](...e)});this._scopeFire("interactions:new",{interaction:this})}pointerDown(t,e,n){const r=this.updatePointer(t,e,n,!0),i=this.pointers[r];this._scopeFire("interactions:down",{pointer:t,event:e,eventTarget:n,pointerIndex:r,pointerInfo:i,type:"down",interaction:this})}start(t,e,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===t.name?2:1)||!e.options[t.name].enabled)&&(wt(this.prepared,t),this.interactable=e,this.element=n,this.rect=e.getRect(n),this.edges=this.prepared.edges?T({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}pointerMove(t,e,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(t,e,n,!1);const r=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;let i,o;this.pointerIsDown&&!this.pointerWasMoved&&(i=this.coords.cur.client.x-this.coords.start.client.x,o=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=K(i,o)>this.pointerMoveTolerance);const a=this.getPointerIndex(t),s={pointer:t,pointerIndex:a,pointerInfo:this.pointers[a],event:e,type:"move",eventTarget:n,dx:i,dy:o,duplicate:r,interaction:this};r||function(t,e){const n=Math.max(e.timeStamp/1e3,.001);t.page.x=e.page.x/n,t.page.y=e.page.y/n,t.client.x=e.client.x/n,t.client.y=e.client.y/n,t.timeStamp=n}(this.coords.velocity,this.coords.delta),this._scopeFire("interactions:move",s),r||this.simulation||(this.interacting()&&(s.type=null,this.move(s)),this.pointerWasMoved&&ot(this.coords.prev,this.coords.cur))}move(t){var e;t&&t.event||((e=this.coords.delta).page.x=0,e.page.y=0,e.client.x=0,e.client.y=0),(t=T({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{})).phase="move",this._doPhase(t)}pointerUp(t,e,n,r){let i=this.getPointerIndex(t);-1===i&&(i=this.updatePointer(t,e,n,!1));const o=/cancel$/i.test(e.type)?"cancel":"up";this._scopeFire(`interactions:${o}`,{pointer:t,pointerIndex:i,pointerInfo:this.pointers[i],event:e,eventTarget:n,type:o,curEventTarget:r,interaction:this}),this.simulation||this.end(e),this.removePointer(t,e)}documentBlur(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}end(t){let e;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(e=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,!0===e&&this.stop()}currentAction(){return this._interacting?this.prepared.name:null}interacting(){return this._interacting}stop(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}getPointerIndex(t){const e=lt(t);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:S(this.pointers,t=>t.id===e)}getPointerInfo(t){return this.pointers[this.getPointerIndex(t)]}updatePointer(t,e,n,r){const i=lt(t);let o=this.getPointerIndex(t),a=this.pointers[o];var s,l,u;return r=!1!==r&&(r||/(down|start)$/i.test(e.type)),a?a.pointer=t:(a=new Ct(i,t,e,null,null),o=this.pointers.length,this.pointers.push(a)),ut(this.coords.cur,this.pointers.map(t=>t.pointer),this._now()),s=this.coords.delta,l=this.coords.prev,u=this.coords.cur,s.page.x=u.page.x-l.page.x,s.page.y=u.page.y-l.page.y,s.client.x=u.client.x-l.client.x,s.client.y=u.client.y-l.client.y,s.timeStamp=u.timeStamp-l.timeStamp,r&&(this.pointerIsDown=!0,a.downTime=this.coords.cur.timeStamp,a.downTarget=n,it(this.downPointer,t),this.interacting()||(ot(this.coords.start,this.coords.cur),ot(this.coords.prev,this.coords.cur),this.downEvent=e,this.pointerWasMoved=!1)),this._updateLatestPointer(t,e,n),this._scopeFire("interactions:update-pointer",{pointer:t,event:e,eventTarget:n,down:r,pointerInfo:a,pointerIndex:o,interaction:this}),o}removePointer(t,e){const n=this.getPointerIndex(t);if(-1===n)return;const r=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:t,event:e,eventTarget:null,pointerIndex:n,pointerInfo:r,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}_updateLatestPointer(t,e,n){this._latestPointer.pointer=t,this._latestPointer.event=e,this._latestPointer.eventTarget=n}destroy(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}_createPreparedEvent(t,e,n,r){return new Q(this,t,this.prepared.name,e,this.element,n,r)}_fireEvent(t){this.interactable.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}_doPhase(t){const{event:e,phase:n,preEnd:r,type:i}=t,{rect:o}=this;o&&"move"===n&&(X(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top);if(!1===this._scopeFire(`interactions:before-action-${n}`,t))return!1;const a=t.iEvent=this._createPreparedEvent(e,n,r,i);return this._scopeFire(`interactions:action-${n}`,t),"start"===n&&(this.prevEvent=a),this._fireEvent(a),this._scopeFire(`interactions:after-action-${n}`,t),!0}_now(){return Date.now()}};function Ot(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):b.bool(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault}function Tt({interaction:t,event:e}){t.interactable&&t.interactable.checkAndPreventDefault(e)}var It={id:"core/interactablePreventDefault",install:function(t){const{Interactable:e}=t;e.prototype.preventDefault=Ot,e.prototype.checkAndPreventDefault=function(e){return function(t,e,n){const r=t.options.preventDefault;if("never"!==r)if("always"!==r){if(e.events.supportsPassive&&/^touch(start|move)$/.test(n.type)){const t=g(n.target).document,r=e.getDocOptions(t);if(!r||!r.events||!1!==r.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(n.type)||b.element(n.target)&&F(n.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||n.preventDefault()}else n.preventDefault()}(this,t,e)},t.interactions.docEvents.push({type:"dragstart",listener(e){for(const n of t.interactions.list)if(n.element&&(n.element===e.target||N(n.element,e.target)))return void n.interactable.checkAndPreventDefault(e)}})},listeners:["down","move","up","cancel"].reduce((t,e)=>(t[`interactions:${e}`]=Tt,t),{})};const Mt={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search(t){for(const e of Mt.methodOrder){const n=Mt[e](t);if(n)return n}return null},simulationResume({pointerType:t,eventType:e,eventTarget:n,scope:r}){if(!/down|start/i.test(e))return null;for(const e of r.interactions.list){let r=n;if(e.simulation&&e.simulation.allowResume&&e.pointerType===t)for(;r;){if(r===e.element)return e;r=z(r)}}return null},mouseOrPen({pointerId:t,pointerType:e,eventType:n,scope:r}){if("mouse"!==e&&"pen"!==e)return null;let i;for(const n of r.interactions.list)if(n.pointerType===e){if(n.simulation&&!Lt(n,t))continue;if(n.interacting())return n;i||(i=n)}if(i)return i;for(const t of r.interactions.list)if(!(t.pointerType!==e||/down/i.test(n)&&t.simulation))return t;return null},hasPointer({pointerId:t,scope:e}){for(const n of e.interactions.list)if(Lt(n,t))return n;return null},idle({pointerType:t,scope:e}){for(const n of e.interactions.list){if(1===n.pointers.length){const t=n.interactable;if(t&&(!t.options.gesture||!t.options.gesture.enabled))continue}else if(n.pointers.length>=2)continue;if(!n.interacting()&&t===n.pointerType)return n}return null}};function Lt(t,e){return t.pointers.some(({id:t})=>t===e)}var kt=Mt;const At=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Rt(t,e){return function(n){const r=e.interactions.list,i=(o=n,b.string(o.pointerType)?o.pointerType:b.number(o.pointerType)?[void 0,void 0,"touch","pen","mouse"][o.pointerType]:/touch/.test(o.type)||o instanceof h.Touch?"touch":"mouse");var o;const[a,s]=vt(n),l=[];if(/^touch/.test(n.type)){e.prevTouchTime=e.now();for(const t of n.changedTouches){const r={pointer:t,pointerId:lt(t),pointerType:i,eventType:n.type,eventTarget:a,curEventTarget:s,scope:e},o=Dt(r);l.push([r.pointer,r.eventTarget,r.curEventTarget,o])}}else{let t=!1;if(!C.supportsPointerEvent&&/mouse/.test(n.type)){for(let e=0;e<r.length&&!t;e++)t="mouse"!==r[e].pointerType&&r[e].pointerIsDown;t=t||e.now()-e.prevTouchTime<500||0===n.timeStamp}if(!t){const t={pointer:n,pointerId:lt(n),pointerType:i,eventType:n.type,curEventTarget:s,eventTarget:a,scope:e},r=Dt(t);l.push([t.pointer,t.eventTarget,t.curEventTarget,r])}}for(const[e,r,i,o]of l)o[t](e,n,r,i)}}function Dt(t){const{pointerType:e,scope:n}=t,r={interaction:kt.search(t),searchDetails:t};return n.fire("interactions:find",r),r.interaction||n.interactions.new({pointerType:e})}function Pt({doc:t,scope:e,options:n},r){const{interactions:{docEvents:i},events:o}=e,a=o[r];e.browser.isIOS&&!n.events&&(n.events={passive:!1});for(const e in o.delegatedEvents)a(t,e,o.delegateListener),a(t,e,o.delegateUseCapture,!0);const s=n&&n.events;for(const{type:e,listener:n}of i)a(t,e,n,s)}var Nt={id:"core/interactions",install:function(t){const e={};for(const n of At)e[n]=Rt(n,t);const n=C.pEventTypes;let r;function i(){for(const e of t.interactions.list)if(e.pointerIsDown&&"touch"===e.pointerType&&!e._interacting)for(const n of e.pointers)t.documents.some(({doc:t})=>N(t,n.downTarget))||e.removePointer(n.pointer,n.event)}r=h.PointerEvent?[{type:n.down,listener:i},{type:n.down,listener:e.pointerDown},{type:n.move,listener:e.pointerMove},{type:n.up,listener:e.pointerUp},{type:n.cancel,listener:e.pointerUp}]:[{type:"mousedown",listener:e.pointerDown},{type:"mousemove",listener:e.pointerMove},{type:"mouseup",listener:e.pointerUp},{type:"touchstart",listener:i},{type:"touchstart",listener:e.pointerDown},{type:"touchmove",listener:e.pointerMove},{type:"touchend",listener:e.pointerUp},{type:"touchcancel",listener:e.pointerUp}],r.push({type:"blur",listener(e){for(const n of t.interactions.list)n.documentBlur(e)}}),t.prevTouchTime=0,t.Interaction=class extends Et{get pointerMoveTolerance(){return t.interactions.pointerMoveTolerance}set pointerMoveTolerance(e){t.interactions.pointerMoveTolerance=e}_now(){return t.now()}},t.interactions={list:[],new(e){e.scopeFire=(e,n)=>t.fire(e,n);const n=new t.Interaction(e);return t.interactions.list.push(n),n},listeners:e,docEvents:r,pointerMoveTolerance:1},t.usePlugin(It)},listeners:{"scope:add-document":t=>Pt(t,"add"),"scope:remove-document":t=>Pt(t,"remove"),"interactable:unset":({interactable:t},e)=>{for(let n=e.interactions.list.length-1;n>=0;n--){const r=e.interactions.list[n];r.interactable===t&&(r.stop(),e.fire("interactions:destroy",{interaction:r}),r.destroy(),e.interactions.list.length>2&&e.interactions.list.splice(n,1))}}},onDocSignal:Pt,doOnInteractions:Rt,methodNames:At};function Bt(t){return t&&t.replace(/\/.*$/,"")}const zt=new class{constructor(){this.id=`__interact_scope_${Math.floor(100*Math.random())}`,this.isInitialized=!1,this.listenerMaps=[],this.browser=C,this.defaults=O(J),this.Eventable=P,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(t){const e=(n,r)=>{let i=t.interactables.get(n,r);return i||(i=t.interactables.new(n,r),i.events.global=e.globalEvents),i};return e.getPointerAverage=ht,e.getTouchBBox=dt,e.getTouchDistance=ft,e.getTouchAngle=pt,e.getElementRect=G,e.getElementClientRect=W,e.matchesSelector=F,e.closest=B,e.globalEvents={},e.version="1.10.2",e.scope=t,e.use=function(t,e){return this.scope.usePlugin(t,e),this},e.isSet=function(t,e){return!!this.scope.interactables.get(t,e&&e.context)},e.on=bt(function(t,e,n){if(b.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),b.array(t)){for(const r of t)this.on(r,e,n);return this}if(b.object(t)){for(const n in t)this.on(n,t[n],e);return this}return tt(t,this.scope.actions)?this.globalEvents[t]?this.globalEvents[t].push(e):this.globalEvents[t]=[e]:this.scope.events.add(this.scope.document,t,e,{options:n}),this},"The interact.on() method is being deprecated"),e.off=bt(function(t,e,n){if(b.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),b.array(t)){for(const r of t)this.off(r,e,n);return this}if(b.object(t)){for(const n in t)this.off(n,t[n],e);return this}if(tt(t,this.scope.actions)){let n;t in this.globalEvents&&-1!==(n=this.globalEvents[t].indexOf(e))&&this.globalEvents[t].splice(n,1)}else this.scope.events.remove(this.scope.document,t,e,n);return this},"The interact.off() method is being deprecated"),e.debug=function(){return this.scope},e.supportsTouch=function(){return C.supportsTouch},e.supportsPointerEvent=function(){return C.supportsPointerEvent},e.stop=function(){for(const t of this.scope.interactions.list)t.stop();return this},e.pointerMoveTolerance=function(t){return b.number(t)?(this.scope.interactions.pointerMoveTolerance=t,this):this.scope.interactions.pointerMoveTolerance},e.addDocument=function(t,e){this.scope.addDocument(t,e)},e.removeDocument=function(t){this.scope.removeDocument(t)},e}(this),this.InteractEvent=Q,this.Interactable=void 0,this.interactables=new nt(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=t=>this.removeDocument(t.target);const t=this;this.Interactable=class extends et{get _defaults(){return t.defaults}set(e){return super.set(e),t.fire("interactable:set",{options:e,interactable:this}),this}unset(){super.unset(),t.interactables.list.splice(t.interactables.list.indexOf(this),1),t.fire("interactable:unset",{interactable:this})}}}addListeners(t,e){this.listenerMaps.push({id:e,map:t})}fire(t,e){for(const{map:{[t]:n}}of this.listenerMaps)if(n&&!1===n(e,this,t))return!1}init(t){return this.isInitialized?this:function(t,e){return t.isInitialized=!0,v(e),h.init(e),C.init(e),k.init(e),t.window=e,t.document=e.document,t.usePlugin(Nt),t.usePlugin(yt),t}(this,t)}pluginIsInstalled(t){return this._plugins.map[t.id]||-1!==this._plugins.list.indexOf(t)}usePlugin(t,e){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,e),t.listeners&&t.before){let e=0;const n=this.listenerMaps.length,r=t.before.reduce((t,e)=>(t[e]=!0,t[Bt(e)]=!0,t),{});for(;e<n;e++){const t=this.listenerMaps[e].id;if(r[t]||r[Bt(t)])break}this.listenerMaps.splice(e,0,{id:t.id,map:t.listeners})}else t.listeners&&this.listenerMaps.push({id:t.id,map:t.listeners});return this}addDocument(t,e){if(-1!==this.getDocIndex(t))return!1;const n=g(t);e=e?T({},e):{},this.documents.push({doc:t,options:e}),this.events.documents.push(t),t!==this.document&&this.events.add(n,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:t,window:n,scope:this,options:e})}removeDocument(t){const e=this.getDocIndex(t),n=g(t),r=this.documents[e].options;this.events.remove(n,"unload",this.onWindowUnload),this.documents.splice(e,1),this.events.documents.splice(e,1),this.fire("scope:remove-document",{doc:t,window:n,scope:this,options:r})}getDocIndex(t){for(let e=0;e<this.documents.length;e++)if(this.documents[e].doc===t)return e;return-1}getDocOptions(t){const e=this.getDocIndex(t);return-1===e?null:this.documents[e].options}now(){return(this.window.Date||Date).now()}};var Ft=zt.interactStatic;const Ht=t=>zt.init(t);function jt(t){return b.bool(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor}function Wt(t){return b.func(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker}"object"==typeof window&&window&&Ht(window);var Gt={id:"auto-start/interactableMethods",install:function(t){const{Interactable:e}=t;e.prototype.getAction=function(e,n,r,i){const o=function(t,e,n,r,i){const o=t.getRect(r),a=e.buttons||{0:1,1:4,3:8,4:16}[e.button],s={action:null,interactable:t,interaction:n,element:r,rect:o,buttons:a};return i.fire("auto-start:check",s),s.action}(this,n,r,i,t);return this.options.actionChecker?this.options.actionChecker(e,n,o,this,i,r):o},e.prototype.ignoreFrom=bt(function(t){return this._backCompatOption("ignoreFrom",t)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),e.prototype.allowFrom=bt(function(t){return this._backCompatOption("allowFrom",t)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),e.prototype.actionChecker=Wt,e.prototype.styleCursor=jt}};function Vt(t,e,n,r,i){return e.testIgnoreAllow(e.options[t.name],n,r)&&e.options[t.name].enabled&&Xt(e,n,t,i)?t:null}function $t(t,e,n,r,i,o,a){for(let s=0,l=r.length;s<l;s++){const l=r[s],u=i[s],c=l.getAction(e,n,t,u);if(!c)continue;const h=Vt(c,l,u,o,a);if(h)return{action:h,interactable:l,element:u}}return{action:null,interactable:null,element:null}}function Ut(t,e,n,r,i){let o=[],a=[],s=r;function l(t){o.push(t),a.push(s)}for(;b.element(s);){o=[],a=[],i.interactables.forEachMatch(s,l);const u=$t(t,e,n,o,a,r,i);if(u.action&&!u.interactable.options[u.action.name].manualStart)return u;s=z(s)}return{action:null,interactable:null,element:null}}function Yt(t,{action:e,interactable:n,element:r},i){e=e||{name:null},t.interactable=n,t.element=r,wt(t.prepared,e),t.rect=n&&e.name?n.getRect(r):null,Zt(t,i),i.fire("autoStart:prepared",{interaction:t})}function Xt(t,e,n,r){const i=t.options,o=i[n.name].max,a=i[n.name].maxPerElement,s=r.autoStart.maxInteractions;let l=0,u=0,c=0;if(!(o&&a&&s))return!1;for(const i of r.interactions.list){const r=i.prepared.name;if(i.interacting()){if(l++,l>=s)return!1;if(i.interactable===t){if(u+=r===n.name?1:0,u>=o)return!1;if(i.element===e&&(c++,r===n.name&&c>=a))return!1}}}return s>0}function qt(t,e){return b.number(t)?(e.autoStart.maxInteractions=t,this):e.autoStart.maxInteractions}function Kt(t,e,n){const{cursorElement:r}=n.autoStart;r&&r!==t&&(r.style.cursor=""),t.ownerDocument.documentElement.style.cursor=e,t.style.cursor=e,n.autoStart.cursorElement=e?t:null}function Zt(t,e){const{interactable:n,element:r,prepared:i}=t;if("mouse"!==t.pointerType||!n||!n.options.styleCursor)return void(e.autoStart.cursorElement&&Kt(e.autoStart.cursorElement,"",e));let o="";if(i.name){const a=n.options[i.name].cursorChecker;o=b.func(a)?a(i,n,r,t._interacting):e.actions.map[i.name].getCursor(i)}Kt(t.element,o||"",e)}var Jt={id:"auto-start/base",before:["actions"],install:function(t){const{interactStatic:e,defaults:n}=t;t.usePlugin(Gt),n.base.actionChecker=null,n.base.styleCursor=!0,T(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=e=>qt(e,t),t.autoStart={maxInteractions:1/0,withinInteractionLimit:Xt,cursorElement:null}},listeners:{"interactions:down":function({interaction:t,pointer:e,event:n,eventTarget:r},i){if(t.interacting())return;Yt(t,Ut(t,e,n,r,i),i)},"interactions:move":(t,e)=>{!function({interaction:t,pointer:e,event:n,eventTarget:r},i){if("mouse"!==t.pointerType||t.pointerIsDown||t.interacting())return;Yt(t,Ut(t,e,n,r,i),i)}(t,e),function(t,e){const{interaction:n}=t;if(!n.pointerIsDown||n.interacting()||!n.pointerWasMoved||!n.prepared.name)return;e.fire("autoStart:before-start",t);const{interactable:r}=n,i=n.prepared.name;i&&r&&(r.options[i].manualStart||!Xt(r,n.element,n.prepared,e)?n.stop():(n.start(n.prepared,r,n.element),Zt(n,e)))}(t,e)},"interactions:stop":function({interaction:t},e){const{interactable:n}=t;n&&n.options.styleCursor&&Kt(t.element,"",e)}},maxInteractions:qt,withinInteractionLimit:Xt,validateAction:Vt};var Qt={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function({interaction:t,eventTarget:e,dx:n,dy:r},i){if("drag"!==t.prepared.name)return;const o=Math.abs(n),a=Math.abs(r),s=t.interactable.options.drag,l=s.startAxis,u=o>a?"x":o<a?"y":"xy";if(t.prepared.axis="start"===s.lockAxis?u[0]:s.lockAxis,"xy"!==u&&"xy"!==l&&l!==u){t.prepared.name=null;let n=e;const r=function(r){if(r===t.interactable)return;const o=t.interactable.options.drag;if(!o.manualStart&&r.testIgnoreAllow(o,n,e)){const o=r.getAction(t.downPointer,t.downEvent,t,n);if(o&&"drag"===o.name&&function(t,e){if(!e)return!1;const n=e.options.drag.startAxis;return"xy"===t||"xy"===n||n===t}(u,r)&&Jt.validateAction(o,r,n,e,i))return r}};for(;b.element(n);){const e=i.interactables.forEachMatch(n,r);if(e){t.prepared.name="drag",t.interactable=e,t.element=n;break}n=z(n)}}}}};function te(t){const e=t.prepared&&t.prepared.name;if(!e)return null;const n=t.interactable.options;return n[e].hold||n[e].delay}var ee={id:"auto-start/hold",install:function(t){const{defaults:e}=t;t.usePlugin(Jt),e.perAction.hold=0,e.perAction.delay=0},listeners:{"interactions:new":({interaction:t})=>{t.autoStartHoldTimer=null},"autoStart:prepared":({interaction:t})=>{const e=te(t);e>0&&(t.autoStartHoldTimer=setTimeout(()=>{t.start(t.prepared,t.interactable,t.element)},e))},"interactions:move":({interaction:t,duplicate:e})=>{t.autoStartHoldTimer&&t.pointerWasMoved&&!e&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":({interaction:t})=>{te(t)>0&&(t.prepared.name=null)}},getHoldDuration:te},ne={id:"auto-start",install(t){t.usePlugin(Jt),t.usePlugin(ee),t.usePlugin(Qt)}};function re({interaction:t}){if("drag"!==t.prepared.name)return;const e=t.prepared.axis;"x"===e?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):"y"===e&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}function ie({iEvent:t,interaction:e}){if("drag"!==e.prepared.name)return;const n=e.prepared.axis;if("x"===n||"y"===n){const r="x"===n?"y":"x";t.page[r]=e.coords.start.page[r],t.client[r]=e.coords.start.client[r],t.delta[r]=0}}"object"==typeof window&&window&&Ht(window),Ft.use(ne);const oe={id:"actions/drag",install:function(t){const{actions:e,Interactable:n,defaults:r}=t;n.prototype.draggable=oe.draggable,e.map.drag=oe,e.methodDict.drag="draggable",r.actions.drag=oe.defaults},listeners:{"interactions:before-action-move":re,"interactions:action-resume":re,"interactions:action-move":ie,"auto-start:check":t=>{const{interaction:e,interactable:n,buttons:r}=t,i=n.options.drag;if(i&&i.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||0!==(r&n.options.drag.mouseButtons)))return t.action={name:"drag",axis:"start"===i.lockAxis?i.startAxis:i.lockAxis},!1}},draggable:function(t){return b.object(t)?(this.options.drag.enabled=!1!==t.enabled,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):b.bool(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:re,move:ie,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:()=>"move"};var ae=oe;function se(t,e,n,r,i,o,a){if(!e)return!1;if(!0===e){const e=b.number(o.width)?o.width:o.right-o.left,r=b.number(o.height)?o.height:o.bottom-o.top;if(a=Math.min(a,Math.abs(("left"===t||"right"===t?e:r)/2)),e<0&&("left"===t?t="right":"right"===t&&(t="left")),r<0&&("top"===t?t="bottom":"bottom"===t&&(t="top")),"left"===t)return n.x<(e>=0?o.left:o.right)+a;if("top"===t)return n.y<(r>=0?o.top:o.bottom)+a;if("right"===t)return n.x>(e>=0?o.right:o.left)-a;if("bottom"===t)return n.y>(r>=0?o.bottom:o.top)-a}return!!b.element(r)&&(b.element(e)?e===r:H(r,e,i))}function le({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.resizeAxes)return;const n=t;e.interactable.options.resize.square?("y"===e.resizeAxes?n.delta.x=n.delta.y:n.delta.y=n.delta.x,n.axes="xy"):(n.axes=e.resizeAxes,"x"===e.resizeAxes?n.delta.y=0:"y"===e.resizeAxes&&(n.delta.x=0))}"object"==typeof window&&window&&Ht(window),Ft.use(ae);const ue={id:"actions/resize",before:["actions/drag"],install:function(t){const{actions:e,browser:n,Interactable:r,defaults:i}=t;ue.cursors=function(t){return t.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),ue.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,r.prototype.resizable=function(e){return function(t,e,n){if(b.object(e))return t.options.resize.enabled=!1!==e.enabled,t.setPerAction("resize",e),t.setOnEvents("resize",e),b.string(e.axis)&&/^x$|^y$|^xy$/.test(e.axis)?t.options.resize.axis=e.axis:null===e.axis&&(t.options.resize.axis=n.defaults.actions.resize.axis),b.bool(e.preserveAspectRatio)?t.options.resize.preserveAspectRatio=e.preserveAspectRatio:b.bool(e.square)&&(t.options.resize.square=e.square),t;if(b.bool(e))return t.options.resize.enabled=e,t;return t.options.resize}(this,e,t)},e.map.resize=ue,e.methodDict.resize="resizable",i.actions.resize=ue.defaults},listeners:{"interactions:new":({interaction:t})=>{t.resizeAxes="xy"},"interactions:action-start":t=>{!function({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.prepared.edges)return;const n=t,r=e.rect;e._rects={start:T({},r),corrected:T({},r),previous:T({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},n.edges=e.prepared.edges,n.rect=e._rects.corrected,n.deltaRect=e._rects.delta}(t),le(t)},"interactions:action-move":t=>{!function({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.prepared.edges)return;const n=t,r=e.interactable.options.resize.invert,i="reposition"===r||"negate"===r,o=e.rect,{start:a,corrected:s,delta:l,previous:u}=e._rects;if(T(u,s),i){if(T(s,o),"reposition"===r){if(s.top>s.bottom){const t=s.top;s.top=s.bottom,s.bottom=t}if(s.left>s.right){const t=s.left;s.left=s.right,s.right=t}}}else s.top=Math.min(o.top,a.bottom),s.bottom=Math.max(o.bottom,a.top),s.left=Math.min(o.left,a.right),s.right=Math.max(o.right,a.left);s.width=s.right-s.left,s.height=s.bottom-s.top;for(const t in s)l[t]=s[t]-u[t];n.edges=e.prepared.edges,n.rect=s,n.deltaRect=l}(t),le(t)},"interactions:action-end":function({iEvent:t,interaction:e}){if("resize"!==e.prepared.name||!e.prepared.edges)return;const n=t;n.edges=e.prepared.edges,n.rect=e._rects.corrected,n.deltaRect=e._rects.delta},"auto-start:check":function(t){const{interaction:e,interactable:n,element:r,rect:i,buttons:o}=t;if(!i)return;const a=T({},e.coords.cur.page),s=n.options.resize;if(s&&s.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||0!==(o&s.mouseButtons))){if(b.object(s.edges)){const n={left:!1,right:!1,top:!1,bottom:!1};for(const t in n)n[t]=se(t,s.edges[t],a,e._latestPointer.eventTarget,r,i,s.margin||ue.defaultMargin);n.left=n.left&&!n.right,n.top=n.top&&!n.bottom,(n.left||n.right||n.top||n.bottom)&&(t.action={name:"resize",edges:n})}else{const e="y"!==s.axis&&a.x>i.right-ue.defaultMargin,n="x"!==s.axis&&a.y>i.bottom-ue.defaultMargin;(e||n)&&(t.action={name:"resize",axes:(e?"x":"")+(n?"y":"")})}return!t.action&&void 0}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor({edges:t,axis:e,name:n}){const r=ue.cursors;let i=null;if(e)i=r[n+e];else if(t){let e="";for(const n of["top","bottom","left","right"])t[n]&&(e+=n);i=r[e]}return i},defaultMargin:null};var ce=ue;"object"==typeof window&&window&&Ht(window),Ft.use(ce);var he=()=>{},de=()=>{},fe=t=>{const e=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(([e,n])=>e in t||n in t),n=(n,r)=>{const{range:i,limits:o={left:-1/0,right:1/0,top:-1/0,bottom:1/0},offset:a={x:0,y:0}}=t,s={range:i,grid:t,x:null,y:null};for(const[i,l]of e){const e=Math.round((n-a.x)/t[i]),u=Math.round((r-a.y)/t[l]);s[i]=Math.max(o.left,Math.min(o.right,e*t[i]+a.x)),s[l]=Math.max(o.top,Math.min(o.bottom,u*t[l]+a.y))}return s};return n.grid=t,n.coordFields=e,n};var pe={id:"snappers",install(t){const{interactStatic:e}=t;e.snappers=T(e.snappers||{},r),e.createSnapGrid=e.snappers.grid}};class ve{constructor(t){this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=null,this.result=null,this.endResult=null,this.edges=void 0,this.interaction=void 0,this.interaction=t,this.result=ge()}start({phase:t},e){const{interaction:n}=this,r=function(t){const e=t.interactable.options[t.prepared.name],n=e.modifiers;if(n&&n.length)return n;return["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(t=>{const n=e[t];return n&&n.enabled&&{options:n,methods:n._methods}}).filter(t=>!!t)}(n);var i,o;this.prepareStates(r),this.edges=T({},n.edges),this.startOffset=(i=n.rect,o=e,i?{left:o.x-i.left,top:o.y-i.top,right:i.right-o.x,bottom:i.bottom-o.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};const a={phase:t,pageCoords:e,preEnd:!1};this.result=ge(),this.startAll(a);return this.result=this.setAll(a)}fillArg(t){const{interaction:e}=this;t.interaction=e,t.interactable=e.interactable,t.element=e.element,t.rect=t.rect||e.rect,t.edges=this.edges,t.startOffset=this.startOffset}startAll(t){this.fillArg(t);for(const e of this.states)e.methods.start&&(t.state=e,e.methods.start(t))}setAll(t){this.fillArg(t);const{phase:e,preEnd:n,skipModifiers:r,rect:i}=t;t.coords=T({},t.pageCoords),t.rect=T({},i);const o=r?this.states.slice(r):this.states,a=ge(t.coords,t.rect);for(const r of o){const{options:i}=r,o=T({},t.coords);let s=null;r.methods.set&&this.shouldDo(i,n,e)&&(t.state=r,s=r.methods.set(t),X(this.interaction.edges,t.rect,{x:t.coords.x-o.x,y:t.coords.y-o.y})),a.eventProps.push(s)}a.delta.x=t.coords.x-t.pageCoords.x,a.delta.y=t.coords.y-t.pageCoords.y,a.rectDelta.left=t.rect.left-i.left,a.rectDelta.right=t.rect.right-i.right,a.rectDelta.top=t.rect.top-i.top,a.rectDelta.bottom=t.rect.bottom-i.bottom;const s=this.result.coords,l=this.result.rect;if(s&&l){const t=a.rect.left!==l.left||a.rect.right!==l.right||a.rect.top!==l.top||a.rect.bottom!==l.bottom;a.changed=t||s.x!==a.coords.x||s.y!==a.coords.y}return a}applyToInteraction(t){const{interaction:e}=this,{phase:n}=t,r=e.coords.cur,i=e.coords.start,{result:o,startDelta:a}=this,s=o.delta;"start"===n&&T(this.startDelta,o.delta);for(const[t,e]of[[i,a],[r,s]])t.page.x+=e.x,t.page.y+=e.y,t.client.x+=e.x,t.client.y+=e.y;const{rectDelta:l}=this.result,u=t.rect||e.rect;u.left+=l.left,u.right+=l.right,u.top+=l.top,u.bottom+=l.bottom,u.width=u.right-u.left,u.height=u.bottom-u.top}setAndApply(t){const{interaction:e}=this,{phase:n,preEnd:r,skipModifiers:i}=t,o=this.setAll({preEnd:r,phase:n,pageCoords:t.modifiedCoords||e.coords.cur.page});if(this.result=o,!o.changed&&(!i||i<this.states.length)&&e.interacting())return!1;if(t.modifiedCoords){const{page:n}=e.coords.cur,r={x:t.modifiedCoords.x-n.x,y:t.modifiedCoords.y-n.y};o.coords.x+=r.x,o.coords.y+=r.y,o.delta.x+=r.x,o.delta.y+=r.y}this.applyToInteraction(t)}beforeEnd(t){const{interaction:e,event:n}=t,r=this.states;if(!r||!r.length)return;let i=!1;for(const e of r){t.state=e;const{options:n,methods:r}=e,o=r.beforeEnd&&r.beforeEnd(t);if(o)return this.endResult=o,!1;i=i||!i&&this.shouldDo(n,!0,t.phase,!0)}i&&e.move({event:n,preEnd:!0})}stop(t){const{interaction:e}=t;if(!this.states||!this.states.length)return;const n=T({states:this.states,interactable:e.interactable,element:e.element,rect:null},t);this.fillArg(n);for(const t of this.states)n.state=t,t.methods.stop&&t.methods.stop(n);this.states=null,this.endResult=null}prepareStates(t){this.states=[];for(let e=0;e<t.length;e++){const{options:n,methods:r,name:i}=t[e];this.states.push({options:n,methods:r,index:e,name:i})}return this.states}restoreInteractionCoords({interaction:{coords:t,rect:e,modification:n}}){if(!n.result)return;const{startDelta:r}=n,{delta:i,rectDelta:o}=n.result,a=[[t.start,r],[t.cur,i]];for(const[t,e]of a)t.page.x-=e.x,t.page.y-=e.y,t.client.x-=e.x,t.client.y-=e.y;e.left-=o.left,e.right-=o.right,e.top-=o.top,e.bottom-=o.bottom}shouldDo(t,e,n,r){return!(!t||!1===t.enabled||r&&!t.endOnly||t.endOnly&&!e||"start"===n&&!t.setStart)}copyFrom(t){this.startOffset=t.startOffset,this.startDelta=t.startDelta,this.edges=t.edges,this.states=t.states.map(t=>O(t)),this.result=ge(T({},t.result.coords),T({},t.result.rect))}destroy(){for(const t in this)this[t]=null}}function ge(t,e){return{rect:e,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function me(t,e){const{defaults:n}=t,r={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},i=t=>{const i=t||{};i.enabled=!1!==i.enabled;for(const t in n)t in i||(i[t]=n[t]);const o={options:i,methods:r,name:e,enable:()=>(i.enabled=!0,o),disable:()=>(i.enabled=!1,o)};return o};return e&&"string"==typeof e&&(i._defaults=n,i._methods=r),i}function ye({iEvent:t,interaction:{modification:{result:e}}}){e&&(t.modifiers=e.eventProps)}var be={id:"modifiers/base",before:["actions"],install:t=>{t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":({interaction:t})=>{t.modification=new ve(t)},"interactions:before-action-start":t=>{const{modification:e}=t.interaction;e.start(t,t.interaction.coords.start.page),t.interaction.edges=e.edges,e.applyToInteraction(t)},"interactions:before-action-move":t=>t.interaction.modification.setAndApply(t),"interactions:before-action-end":t=>t.interaction.modification.beforeEnd(t),"interactions:action-start":ye,"interactions:action-move":ye,"interactions:action-end":ye,"interactions:after-action-start":t=>t.interaction.modification.restoreInteractionCoords(t),"interactions:after-action-move":t=>t.interaction.modification.restoreInteractionCoords(t),"interactions:stop":t=>t.interaction.modification.stop(t)}};function we({startCoords:t,edgeSign:e},n,r){n?r.y=t.y+(r.x-t.x)*e:r.x=t.x+(r.y-t.y)*e}function Ce({startRect:t,startCoords:e,ratio:n,edgeSign:r},i,o,a){if(i){const i=a.width/n;o.y=e.y+(i-t.height)*r}else{const i=a.height*n;o.x=e.x+(i-t.width)*r}}var _e=me({start(t){const{state:e,rect:n,edges:r,pageCoords:i}=t;let{ratio:o}=e.options;const{equalDelta:a,modifiers:s}=e.options;"preserve"===o&&(o=n.width/n.height),e.startCoords=T({},i),e.startRect=T({},n),e.ratio=o,e.equalDelta=a;const l=e.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(e.xIsPrimaryAxis=!(!r.left&&!r.right),e.equalDelta)e.edgeSign=(l.left?1:-1)*(l.top?1:-1);else{const t=e.xIsPrimaryAxis?l.top:l.left;e.edgeSign=t?-1:1}if(T(t.edges,l),!s||!s.length)return;const u=new ve(t.interaction);u.copyFrom(t.interaction.modification),u.prepareStates(s),e.subModification=u,u.startAll({...t})},set(t){const{state:e,rect:n,coords:r}=t,i=T({},r),o=e.equalDelta?we:Ce;if(o(e,e.xIsPrimaryAxis,r,n),!e.subModification)return null;const a=T({},n);X(e.linkedEdges,a,{x:r.x-i.x,y:r.y-i.y});const s=e.subModification.setAll({...t,rect:a,edges:e.linkedEdges,pageCoords:r,prevCoords:r,prevRect:a}),{delta:l}=s;if(s.changed){o(e,Math.abs(l.x)>Math.abs(l.y),s.coords,s.rect),T(r,s.coords)}return s.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}},"aspectRatio");const xe=()=>{};xe._defaults={};var Se=xe;function Ee(t,e,n){return b.func(t)?$(t,e.interactable,e.element,[n.x,n.y,e]):$(t,e.interactable,e.element)}const Oe={start:function({rect:t,startOffset:e,state:n,interaction:r,pageCoords:i}){const{options:o}=n,{elementRect:a}=o,s=T({left:0,top:0,right:0,bottom:0},o.offset||{});if(t&&a){const n=Ee(o.restriction,r,i);if(n){const e=n.right-n.left-t.width,r=n.bottom-n.top-t.height;e<0&&(s.left+=e,s.right+=e),r<0&&(s.top+=r,s.bottom+=r)}s.left+=e.left-t.width*a.left,s.top+=e.top-t.height*a.top,s.right+=e.right-t.width*(1-a.right),s.bottom+=e.bottom-t.height*(1-a.bottom)}n.offset=s},set:function({coords:t,interaction:e,state:n}){const{options:r,offset:i}=n,o=Ee(r.restriction,e,t);if(!o)return;const a=function(t){return!t||"left"in t&&"top"in t||((t=T({},t)).left=t.x||0,t.top=t.y||0,t.right=t.right||t.left+t.width,t.bottom=t.bottom||t.top+t.height),t}(o);t.x=Math.max(Math.min(a.right-i.right,t.x),a.left+i.left),t.y=Math.max(Math.min(a.bottom-i.bottom,t.y),a.top+i.top)},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}};var Te=me(Oe,"restrict");const Ie={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Me={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Le(t,e){for(const n of["top","left","bottom","right"])n in t||(t[n]=e[n]);return t}const ke={noInner:Ie,noOuter:Me,start:function({interaction:t,startOffset:e,state:n}){const{options:r}=n;let i;if(r){i=U(Ee(r.offset,t,t.coords.start.page))}i=i||{x:0,y:0},n.offset={top:i.y+e.top,left:i.x+e.left,bottom:i.y-e.bottom,right:i.x-e.right}},set:function({coords:t,edges:e,interaction:n,state:r}){const{offset:i,options:o}=r;if(!e)return;const a=T({},t),s=Ee(o.inner,n,a)||{},l=Ee(o.outer,n,a)||{};Le(s,Ie),Le(l,Me),e.top?t.y=Math.min(Math.max(l.top+i.top,a.y),s.top+i.top):e.bottom&&(t.y=Math.max(Math.min(l.bottom+i.bottom,a.y),s.bottom+i.bottom)),e.left?t.x=Math.min(Math.max(l.left+i.left,a.x),s.left+i.left):e.right&&(t.x=Math.max(Math.min(l.right+i.right,a.x),s.right+i.right))},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}};var Ae=me(ke,"restrictEdges");const Re=T({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},Oe.defaults);var De=me({start:Oe.start,set:Oe.set,defaults:Re},"restrictRect");const Pe={width:-1/0,height:-1/0},Ne={width:1/0,height:1/0};var Be=me({start:function(t){return ke.start(t)},set:function(t){const{interaction:e,state:n,rect:r,edges:i}=t,{options:o}=n;if(!i)return;const a=Y(Ee(o.min,e,t.coords))||Pe,s=Y(Ee(o.max,e,t.coords))||Ne;n.options={endOnly:o.endOnly,inner:T({},ke.noInner),outer:T({},ke.noOuter)},i.top?(n.options.inner.top=r.bottom-a.height,n.options.outer.top=r.bottom-s.height):i.bottom&&(n.options.inner.bottom=r.top+a.height,n.options.outer.bottom=r.top+s.height),i.left?(n.options.inner.left=r.right-a.width,n.options.outer.left=r.right-s.width):i.right&&(n.options.inner.right=r.left+a.width,n.options.outer.right=r.left+s.width),ke.set(t),n.options=o},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize");const ze={start:function(t){const{interaction:e,interactable:n,element:r,rect:i,state:o,startOffset:a}=t,{options:s}=o,l=s.offsetWithOrigin?function(t){const{element:e}=t.interaction,n=U($(t.state.options.origin,null,null,[e])),r=n||q(t.interactable,e,t.interaction.prepared.name);return r}(t):{x:0,y:0};let u;if("startCoords"===s.offset)u={x:e.coords.start.page.x,y:e.coords.start.page.y};else{const t=$(s.offset,n,r,[e]);u=U(t)||{x:0,y:0},u.x+=l.x,u.y+=l.y}const{relativePoints:c}=s;o.offsets=i&&c&&c.length?c.map((t,e)=>({index:e,relativePoint:t,x:a.left-i.width*t.x+u.x,y:a.top-i.height*t.y+u.y})):[T({index:0,relativePoint:null},u)]},set:function(t){const{interaction:e,coords:n,state:r}=t,{options:i,offsets:o}=r,a=q(e.interactable,e.element,e.prepared.name),s=T({},n),l=[];i.offsetWithOrigin||(s.x-=a.x,s.y-=a.y);for(const t of o){const n=s.x-t.x,r=s.y-t.y;for(let o=0,a=i.targets.length;o<a;o++){const a=i.targets[o];let s;s=b.func(a)?a(n,r,e._proxy,t,o):a,s&&l.push({x:(b.number(s.x)?s.x:n)+t.x,y:(b.number(s.y)?s.y:r)+t.y,range:b.number(s.range)?s.range:i.range,source:a,index:o,offset:t})}}const u={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}};for(const t of l){const e=t.range,n=t.x-s.x,r=t.y-s.y,i=K(n,r);let o=i<=e;e===1/0&&u.inRange&&u.range!==1/0&&(o=!1),u.target&&!(o?u.inRange&&e!==1/0?i/e<u.distance/u.range:e===1/0&&u.range!==1/0||i<u.distance:!u.inRange&&i<u.distance)||(u.target=t,u.distance=i,u.range=e,u.inRange=o,u.delta.x=n,u.delta.y=r)}return u.inRange&&(n.x=u.target.x,n.y=u.target.y),r.closest=u,u},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}};var Fe=me(ze,"snap");const He={start:function(t){const{state:e,edges:n}=t,{options:r}=e;if(!n)return null;t.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:r.offset||"self",origin:{x:0,y:0},range:r.range}},e.targetFields=e.targetFields||[["width","height"],["x","y"]],ze.start(t),e.offsets=t.state.offsets,t.state=e},set:function(t){const{interaction:e,state:n,coords:r}=t,{options:i,offsets:o}=n,a={x:r.x-o[0].x,y:r.y-o[0].y};n.options=T({},i),n.options.targets=[];for(const t of i.targets||[]){let r;if(r=b.func(t)?t(a.x,a.y,e):t,r){for(const[t,e]of n.targetFields)if(t in r||e in r){r.x=r[t],r.y=r[e];break}n.options.targets.push(r)}}const s=ze.set(t);return n.options=i,s},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}};var je=me(He,"snapSize");var We={aspectRatio:_e,restrictEdges:Ae,restrict:Te,restrictRect:De,restrictSize:Be,snapEdges:me({start:function(t){const{edges:e}=t;return e?(t.state.targetFields=t.state.targetFields||[[e.left?"left":"right",e.top?"top":"bottom"]],He.start(t)):null},set:He.set,defaults:T(O(He.defaults),{targets:null,range:null,offset:{x:0,y:0}})},"snapEdges"),snap:Fe,snapSize:je,spring:Se,avoid:Se,transform:Se,rubberband:Se};var Ge,Ve={id:"modifiers",install(t){const{interactStatic:e}=t;t.usePlugin(be),t.usePlugin(pe),e.modifiers=We;for(const e in We){const{_defaults:n,_methods:r}=We[e];n._methods=r,t.defaults.perAction[e]=n}}};"object"==typeof window&&window&&Ht(window),Ft.use(Ve),function(t){t.touchAction="touchAction",t.boxSizing="boxSizing",t.noListeners="noListeners"}(Ge||(Ge={}));const $e="[interact.js] ",Ue={touchAction:"https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action",boxSizing:"https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing"};const Ye=[{name:Ge.touchAction,perform:({element:t})=>!function(t,e,n){let r=t;for(;b.element(r);){if(Xe(r,e,n))return!0;r=z(r)}return!1}(t,"touchAction",/pan-|pinch|none/),getInfo:({element:t})=>[t,Ue.touchAction],text:'Consider adding CSS "touch-action: none" to this element\n'},{name:Ge.boxSizing,perform(t){const{element:e}=t;return"resize"===t.prepared.name&&e instanceof h.HTMLElement&&!Xe(e,"boxSizing",/border-box/)},text:'Consider adding CSS "box-sizing: border-box" to this resizable element',getInfo:({element:t})=>[t,Ue.boxSizing]},{name:Ge.noListeners,perform(t){const e=t.prepared.name;return!(t.interactable.events.types[`${e}move`]||[]).length},getInfo:t=>[t.prepared.name,t.interactable],text:"There are no listeners set for this action"}];function Xe(t,e,n){const r=t.style[e]||p.getComputedStyle(t)[e];return n.test((r||"").toString())}const qe="dev-tools";var Ke={id:qe,install:function(t,{logger:e}={}){const{Interactable:n,defaults:r}=t;t.logger=e||console,r.base.devTools={ignore:{}},n.prototype.devTools=function(t){return t?(T(this.options.devTools,t),this):this.options.devTools}},listeners:{"interactions:action-start":({interaction:t},e)=>{for(const n of Ye){const r=t.interactable&&t.interactable.options;r&&r.devTools&&r.devTools.ignore[n.name]||!n.perform(t)||e.logger.warn($e+n.text,...n.getInfo(t))}}},checks:Ye,CheckName:Ge,links:Ue,prefix:$e};"object"==typeof window&&window&&Ht(window),Ft.use(Ke);var Ze={name:"GridItem",props:{isDraggable:{type:Boolean,required:!1,default:null},isResizable:{type:Boolean,required:!1,default:null},static:{type:Boolean,required:!1,default:!1},minH:{type:Number,required:!1,default:1},minW:{type:Number,required:!1,default:1},maxH:{type:Number,required:!1,default:1/0},maxW:{type:Number,required:!1,default:1/0},x:{type:Number,required:!0},y:{type:Number,required:!0},w:{type:Number,required:!0},h:{type:Number,required:!0},i:{required:!0},dragIgnoreFrom:{type:String,required:!1,default:"a, button"},dragAllowFrom:{type:String,required:!1,default:null},resizeIgnoreFrom:{type:String,required:!1,default:"a, button"},preserveAspectRatio:{type:Boolean,required:!1,default:!1}},inject:["eventBus","layout"],data:function(){return{cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:null,resizable:null,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:null,isResizing:!1,resizing:null,lastX:NaN,lastY:NaN,lastW:NaN,lastH:NaN,style:{},rtl:!1,dragEventSet:!1,resizeEventSet:!1,previousW:null,previousH:null,previousX:null,previousY:null,innerX:this.x,innerY:this.y,innerW:this.w,innerH:this.h}},created:function(){var t=this,e=this;e.updateWidthHandler=function(t){e.updateWidth(t)},e.compactHandler=function(t){e.compact(t)},e.setDraggableHandler=function(t){null===e.isDraggable&&(e.draggable=t)},e.setResizableHandler=function(t){null===e.isResizable&&(e.resizable=t)},e.setRowHeightHandler=function(t){e.rowHeight=t},e.setMaxRowsHandler=function(t){e.maxRows=t},e.directionchangeHandler=function(){t.rtl="rtl"===Object(l.b)(),t.compact()},e.setColNum=function(t){e.cols=parseInt(t)},this.eventBus.$on("updateWidth",e.updateWidthHandler),this.eventBus.$on("compact",e.compactHandler),this.eventBus.$on("setDraggable",e.setDraggableHandler),this.eventBus.$on("setResizable",e.setResizableHandler),this.eventBus.$on("setRowHeight",e.setRowHeightHandler),this.eventBus.$on("setMaxRows",e.setMaxRowsHandler),this.eventBus.$on("directionchange",e.directionchangeHandler),this.eventBus.$on("setColNum",e.setColNum),this.rtl="rtl"===Object(l.b)()},beforeDestroy:function(){var t=this;this.eventBus.$off("updateWidth",t.updateWidthHandler),this.eventBus.$off("compact",t.compactHandler),this.eventBus.$off("setDraggable",t.setDraggableHandler),this.eventBus.$off("setResizable",t.setResizableHandler),this.eventBus.$off("setRowHeight",t.setRowHeightHandler),this.eventBus.$off("setMaxRows",t.setMaxRowsHandler),this.eventBus.$off("directionchange",t.directionchangeHandler),this.eventBus.$off("setColNum",t.setColNum),this.interactObj&&this.interactObj.unset()},mounted:function(){this.layout.responsive&&this.layout.lastBreakpoint?this.cols=Object(s.c)(this.layout.lastBreakpoint,this.layout.cols):this.cols=this.layout.colNum,this.rowHeight=this.layout.rowHeight,this.containerWidth=null!==this.layout.width?this.layout.width:100,this.margin=void 0!==this.layout.margin?this.layout.margin:[10,10],this.maxRows=this.layout.maxRows,null===this.isDraggable?this.draggable=this.layout.isDraggable:this.draggable=this.isDraggable,null===this.isResizable?this.resizable=this.layout.isResizable:this.resizable=this.isResizable,this.useCssTransforms=this.layout.useCssTransforms,this.useStyleCursor=this.layout.useStyleCursor,this.createStyle()},watch:{isDraggable:function(){this.draggable=this.isDraggable},static:function(){this.tryMakeDraggable(),this.tryMakeResizable()},draggable:function(){this.tryMakeDraggable()},isResizable:function(){this.resizable=this.isResizable},resizable:function(){this.tryMakeResizable()},rowHeight:function(){this.createStyle(),this.emitContainerResized()},cols:function(){this.tryMakeResizable(),this.createStyle(),this.emitContainerResized()},containerWidth:function(){this.tryMakeResizable(),this.createStyle(),this.emitContainerResized()},x:function(t){this.innerX=t,this.createStyle()},y:function(t){this.innerY=t,this.createStyle()},h:function(t){this.innerH=t,this.createStyle()},w:function(t){this.innerW=t,this.createStyle()},renderRtl:function(){this.tryMakeResizable(),this.createStyle()},minH:function(){this.tryMakeResizable()},maxH:function(){this.tryMakeResizable()},minW:function(){this.tryMakeResizable()},maxW:function(){this.tryMakeResizable()},"$parent.margin":function(t){!t||t[0]==this.margin[0]&&t[1]==this.margin[1]||(this.margin=t.map(function(t){return Number(t)}),this.createStyle(),this.emitContainerResized())}},computed:{classObj:function(){return{"vue-resizable":this.resizableAndNotStatic,static:this.static,resizing:this.isResizing,"vue-draggable-dragging":this.isDragging,cssTransforms:this.useCssTransforms,"render-rtl":this.renderRtl,"disable-userselect":this.isDragging,"no-touch":this.isAndroid&&this.draggableOrResizableAndNotStatic}},resizableAndNotStatic:function(){return this.resizable&&!this.static},draggableOrResizableAndNotStatic:function(){return(this.draggable||this.resizable)&&!this.static},isAndroid:function(){return-1!==navigator.userAgent.toLowerCase().indexOf("android")},renderRtl:function(){return this.layout.isMirrored?!this.rtl:this.rtl},resizableHandleClass:function(){return this.renderRtl?"vue-resizable-handle vue-rtl-resizable-handle":"vue-resizable-handle"}},methods:{createStyle:function(){this.x+this.w>this.cols?(this.innerX=0,this.innerW=this.w>this.cols?this.cols:this.w):(this.innerX=this.x,this.innerW=this.w);var t,e=this.calcPosition(this.innerX,this.innerY,this.innerW,this.innerH);this.isDragging&&(e.top=this.dragging.top,this.renderRtl?e.right=this.dragging.left:e.left=this.dragging.left),this.isResizing&&(e.width=this.resizing.width,e.height=this.resizing.height),t=this.useCssTransforms?this.renderRtl?Object(i.k)(e.top,e.right,e.width,e.height):Object(i.j)(e.top,e.left,e.width,e.height):this.renderRtl?Object(i.i)(e.top,e.right,e.width,e.height):Object(i.h)(e.top,e.left,e.width,e.height),this.style=t},emitContainerResized:function(){for(var t={},e=0,n=["width","height"];e<n.length;e++){var r=n[e],i=this.style[r].match(/^(\d+)px$/);if(!i)return;t[r]=i[1]}this.$emit("container-resized",this.i,this.h,this.w,t.height,t.width)},handleResize:function(t){if(!this.static){var e=o(t);if(null!=e){var n,r=e.x,i=e.y,s={width:0,height:0};switch(t.type){case"resizestart":this.previousW=this.innerW,this.previousH=this.innerH,n=this.calcPosition(this.innerX,this.innerY,this.innerW,this.innerH),s.width=n.width,s.height=n.height,this.resizing=s,this.isResizing=!0;break;case"resizemove":var l=a(this.lastW,this.lastH,r,i);this.renderRtl?s.width=this.resizing.width-l.deltaX:s.width=this.resizing.width+l.deltaX,s.height=this.resizing.height+l.deltaY,this.resizing=s;break;case"resizeend":n=this.calcPosition(this.innerX,this.innerY,this.innerW,this.innerH),s.width=n.width,s.height=n.height,this.resizing=null,this.isResizing=!1}(n=this.calcWH(s.height,s.width)).w<this.minW&&(n.w=this.minW),n.w>this.maxW&&(n.w=this.maxW),n.h<this.minH&&(n.h=this.minH),n.h>this.maxH&&(n.h=this.maxH),n.h<1&&(n.h=1),n.w<1&&(n.w=1),this.lastW=r,this.lastH=i,this.innerW===n.w&&this.innerH===n.h||this.$emit("resize",this.i,n.h,n.w,s.height,s.width),"resizeend"!==t.type||this.previousW===this.innerW&&this.previousH===this.innerH||this.$emit("resized",this.i,n.h,n.w,s.height,s.width),this.eventBus.$emit("resizeEvent",t.type,this.i,this.innerX,this.innerY,n.h,n.w)}}},handleDrag:function(t){if(!this.static&&!this.isResizing){var e=o(t);if(null!==e){var n,r=e.x,i=e.y,s={top:0,left:0};switch(t.type){case"dragstart":this.previousX=this.innerX,this.previousY=this.innerY;var l=t.target.offsetParent.getBoundingClientRect(),u=t.target.getBoundingClientRect();this.renderRtl?s.left=-1*(u.right-l.right):s.left=u.left-l.left,s.top=u.top-l.top,this.dragging=s,this.isDragging=!0;break;case"dragend":if(!this.isDragging)return;var c=t.target.offsetParent.getBoundingClientRect(),h=t.target.getBoundingClientRect();this.renderRtl?s.left=-1*(h.right-c.right):s.left=h.left-c.left,s.top=h.top-c.top,this.dragging=null,this.isDragging=!1;break;case"dragmove":var d=a(this.lastX,this.lastY,r,i);this.renderRtl?s.left=this.dragging.left-d.deltaX:s.left=this.dragging.left+d.deltaX,s.top=this.dragging.top+d.deltaY,this.dragging=s}n=(this.renderRtl,this.calcXY(s.top,s.left)),this.lastX=r,this.lastY=i,this.innerX===n.x&&this.innerY===n.y||this.$emit("move",this.i,n.x,n.y),"dragend"!==t.type||this.previousX===this.innerX&&this.previousY===this.innerY||this.$emit("moved",this.i,n.x,n.y),this.eventBus.$emit("dragEvent",t.type,this.i,n.x,n.y,this.innerH,this.innerW)}}},calcPosition:function(t,e,n,r){var i=this.calcColWidth();return this.renderRtl?{right:Math.round(i*t+(t+1)*this.margin[0]),top:Math.round(this.rowHeight*e+(e+1)*this.margin[1]),width:n===1/0?n:Math.round(i*n+Math.max(0,n-1)*this.margin[0]),height:r===1/0?r:Math.round(this.rowHeight*r+Math.max(0,r-1)*this.margin[1])}:{left:Math.round(i*t+(t+1)*this.margin[0]),top:Math.round(this.rowHeight*e+(e+1)*this.margin[1]),width:n===1/0?n:Math.round(i*n+Math.max(0,n-1)*this.margin[0]),height:r===1/0?r:Math.round(this.rowHeight*r+Math.max(0,r-1)*this.margin[1])}},calcXY:function(t,e){var n=this.calcColWidth(),r=Math.round((e-this.margin[0])/(n+this.margin[0])),i=Math.round((t-this.margin[1])/(this.rowHeight+this.margin[1]));return{x:r=Math.max(Math.min(r,this.cols-this.innerW),0),y:i=Math.max(Math.min(i,this.maxRows-this.innerH),0)}},calcColWidth:function(){return(this.containerWidth-this.margin[0]*(this.cols+1))/this.cols},calcWH:function(t,e){var n=this.calcColWidth(),r=Math.round((e+this.margin[0])/(n+this.margin[0])),i=Math.round((t+this.margin[1])/(this.rowHeight+this.margin[1]));return{w:r=Math.max(Math.min(r,this.cols-this.innerX),0),h:i=Math.max(Math.min(i,this.maxRows-this.innerY),0)}},updateWidth:function(t,e){this.containerWidth=t,null!=e&&(this.cols=e)},compact:function(){this.createStyle()},tryMakeDraggable:function(){var t=this;if(null!==this.interactObj&&void 0!==this.interactObj||(this.interactObj=Ft(this.$refs.item),this.useStyleCursor||this.interactObj.styleCursor(!1)),this.draggable&&!this.static){var e={ignoreFrom:this.dragIgnoreFrom,allowFrom:this.dragAllowFrom};this.interactObj.draggable(e),this.dragEventSet||(this.dragEventSet=!0,this.interactObj.on("dragstart dragmove dragend",function(e){t.handleDrag(e)}))}else this.interactObj.draggable({enabled:!1})},tryMakeResizable:function(){var t=this;if(null!==this.interactObj&&void 0!==this.interactObj||(this.interactObj=Ft(this.$refs.item),this.useStyleCursor||this.interactObj.styleCursor(!1)),this.resizable&&!this.static){var e=this.calcPosition(0,0,this.maxW,this.maxH),n=this.calcPosition(0,0,this.minW,this.minH),r={edges:{left:!1,right:"."+this.resizableHandleClass.trim().replace(" ","."),bottom:"."+this.resizableHandleClass.trim().replace(" ","."),top:!1},ignoreFrom:this.resizeIgnoreFrom,restrictSize:{min:{height:n.height,width:n.width},max:{height:e.height,width:e.width}}};this.preserveAspectRatio&&(r.modifiers=[Ft.modifiers.aspectRatio({ratio:"preserve"})]),this.interactObj.resizable(r),this.resizeEventSet||(this.resizeEventSet=!0,this.interactObj.on("resizestart resizemove resizeend",function(e){t.handleResize(e)}))}else this.interactObj.resizable({enabled:!1})},autoSize:function(){this.previousW=this.innerW,this.previousH=this.innerH;var t=this.$slots.default[0].elm.getBoundingClientRect(),e=this.calcWH(t.height,t.width);e.w<this.minW&&(e.w=this.minW),e.w>this.maxW&&(e.w=this.maxW),e.h<this.minH&&(e.h=this.minH),e.h>this.maxH&&(e.h=this.maxH),e.h<1&&(e.h=1),e.w<1&&(e.w=1),this.innerW===e.w&&this.innerH===e.h||this.$emit("resize",this.i,e.h,e.w,t.height,t.width),this.previousW===e.w&&this.previousH===e.h||(this.$emit("resized",this.i,e.h,e.w,t.height,t.width),this.eventBus.$emit("resizeEvent","resizeend",this.i,this.innerX,this.innerY,e.h,e.w))}}},Je=(n("5ed4"),n("2877")),Qe=Object(Je.a)(Ze,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"item",staticClass:"vue-grid-item",class:t.classObj,style:t.style},[t._t("default"),t.resizableAndNotStatic?n("span",{ref:"handle",class:t.resizableHandleClass}):t._e()],2)},[],!1,null,null,null);e.a=Qe.exports},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},c274:function(t,e,n){"use strict";var r=n("50bf");function i(){var t={},e=0,n=0,r=0;return{add:function(i,o){o||(o=i,i=0),i>n?n=i:i<r&&(r=i),t[i]||(t[i]=[]),t[i].push(o),e++},process:function(){for(var e=r;e<=n;e++)for(var i=t[e],o=0;o<i.length;o++){(0,i[o])()}},size:function(){return e}}}t.exports=function(t){var e=(t=t||{}).reporter,n=r.getOption(t,"async",!0),o=r.getOption(t,"auto",!0);o&&!n&&(e&&e.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var a,s=i(),l=!1;function u(){for(l=!0;s.size();){var t=s;s=i(),t.process()}l=!1}function c(){var t;t=u,a=setTimeout(t,0)}return{add:function(t,e){!l&&o&&n&&0===s.size()&&c(),s.add(t,e)},force:function(t){l||(void 0===t&&(t=n),a&&(clearTimeout(a),a=null),t?c():u())}}}},c366:function(t,e,n){var r=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,a){var s,l=r(e),u=i(l.length),c=o(a,u);if(t&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},c5f6:function(t,e,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),a=n("5dbc"),s=n("6a99"),l=n("79e5"),u=n("9093").f,c=n("11e9").f,h=n("86cc").f,d=n("aa77").trim,f="Number",p=r[f],v=p,g=p.prototype,m=o(n("2aeb")(g))==f,y="trim"in String.prototype,b=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,r,i,o=(e=y?e.trim():d(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var a,l=e.slice(2),u=0,c=l.length;u<c;u++)if((a=l.charCodeAt(u))<48||a>i)return NaN;return parseInt(l,r)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof p&&(m?l(function(){g.valueOf.call(n)}):o(n)!=f)?a(new v(b(e)),n,p):b(e)};for(var w,C=n("9e1e")?u(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;C.length>_;_++)i(v,w=C[_])&&!i(p,w)&&h(p,w,c(v,w));p.prototype=g,g.constructor=p,n("2aba")(r,f,p)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},c946:function(t,e,n){"use strict";var r=n("b770").forEach;t.exports=function(t){var e=(t=t||{}).reporter,n=t.batchProcessor,i=t.stateHandler.getState,o=(t.stateHandler.hasState,t.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!e)throw new Error("Missing required dependency: reporter.");var a=function(){var t=500,e=500,n=document.createElement("div");n.style.cssText=u(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var r=document.createElement("div");r.style.cssText=u(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),r.appendChild(n),document.body.insertBefore(r,document.body.firstChild);var i=t-r.clientWidth,o=e-r.clientHeight;return document.body.removeChild(r),{width:i,height:o}}(),s="erd_scroll_detection_container";function l(t){!function(t,e,n){function r(n,r){r=r||function(e){t.head.appendChild(e)};var i=t.createElement("style");return i.innerHTML=n,i.id=e,r(i),i}if(!t.getElementById(e)){var i=n+"_animation",o=n+"_animation_active",a="/* Created by the element-resize-detector library. */\n";a+="."+n+" > div::-webkit-scrollbar { "+u(["display: none"])+" }\n\n",a+="."+o+" { "+u(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+i,"animation-name: "+i])+" }\n",a+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",r(a+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(t,"erd_scroll_detection_scrollbar_style",s)}function u(e){var n=t.important?" !important; ":"; ";return(e.join(n)+n).trim()}function c(t,n,r){if(t.addEventListener)t.addEventListener(n,r);else{if(!t.attachEvent)return e.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+n,r)}}function h(t,n,r){if(t.removeEventListener)t.removeEventListener(n,r);else{if(!t.detachEvent)return e.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+n,r)}}function d(t){return i(t).container.childNodes[0].childNodes[0].childNodes[0]}function f(t){return i(t).container.childNodes[0].childNodes[0].childNodes[1]}return l(window.document),{makeDetectable:function(t,l,h){function p(){if(t.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(o.get(l),"Scroll: "),e.log.apply)e.log.apply(null,n);else for(var r=0;r<n.length;r++)e.log(n[r])}}function v(t){var e=i(t).container.childNodes[0],n=window.getComputedStyle(e);return!n.width||-1===n.width.indexOf("px")}function g(){var t=window.getComputedStyle(l),e={};return e.position=t.position,e.width=l.offsetWidth,e.height=l.offsetHeight,e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left,e.widthCSS=t.width,e.heightCSS=t.height,e}function m(){if(p("storeStyle invoked."),i(l)){var t=g();i(l).style=t}else p("Aborting because element has been uninstalled")}function y(t,e,n){i(t).lastWidth=e,i(t).lastHeight=n}function b(){return 2*a.width+1}function w(){return 2*a.height+1}function C(t){return t+10+b()}function _(t){return t+10+w()}function x(t,e,n){var r=d(t),i=f(t),o=C(e),a=_(n),s=function(t){return 2*t+b()}(e),l=function(t){return 2*t+w()}(n);r.scrollLeft=o,r.scrollTop=a,i.scrollLeft=s,i.scrollTop=l}function S(){var t=i(l).container;if(!t){(t=document.createElement("div")).className=s,t.style.cssText=u(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),i(l).container=t,function(t){t.className+=" "+s+"_animation_active"}(t),l.appendChild(t);var e=function(){i(l).onRendered&&i(l).onRendered()};c(t,"animationstart",e),i(l).onAnimationStart=e}return t}function E(){if(p("Injecting elements"),i(l)){!function(){var n=i(l).style;if("static"===n.position){l.style.setProperty("position","relative",t.important?"important":"");var r=function(t,e,n,r){var i=n[r];"auto"!==i&&"0"!==function(t){return t.replace(/[^-\d\.]/g,"")}(i)&&(t.warn("An element that is positioned static has style."+r+"="+i+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",e),e.style[r]=0)};r(e,l,n,"top"),r(e,l,n,"right"),r(e,l,n,"bottom"),r(e,l,n,"left")}}();var n=i(l).container;n||(n=S());var r,o,h,d,f=a.width,v=a.height,g=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),m=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(r=(r=-(1+f))?r+"px":"0"),"top: "+(o=(o=-(1+v))?o+"px":"0"),"right: "+(d=(d=-f)?d+"px":"0"),"bottom: "+(h=(h=-v)?h+"px":"0")])),y=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),b=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),w=u(["position: absolute","left: 0","top: 0"]),C=u(["position: absolute","width: 200%","height: 200%"]),_=document.createElement("div"),x=document.createElement("div"),E=document.createElement("div"),O=document.createElement("div"),T=document.createElement("div"),I=document.createElement("div");_.dir="ltr",_.style.cssText=g,_.className=s,x.className=s,x.style.cssText=m,E.style.cssText=y,O.style.cssText=w,T.style.cssText=b,I.style.cssText=C,E.appendChild(O),T.appendChild(I),x.appendChild(E),x.appendChild(T),_.appendChild(x),n.appendChild(_),c(E,"scroll",M),c(T,"scroll",L),i(l).onExpandScroll=M,i(l).onShrinkScroll=L}else p("Aborting because element has been uninstalled");function M(){i(l).onExpand&&i(l).onExpand()}function L(){i(l).onShrink&&i(l).onShrink()}}function O(){function a(e,n,r){var i=function(t){return d(t).childNodes[0]}(e),o=C(n),a=_(r);i.style.setProperty("width",o+"px",t.important?"important":""),i.style.setProperty("height",a+"px",t.important?"important":"")}function s(r){var s=l.offsetWidth,c=l.offsetHeight,h=s!==i(l).lastWidth||c!==i(l).lastHeight;p("Storing current size",s,c),y(l,s,c),n.add(0,function(){if(h)if(i(l))if(u()){if(t.debug){var n=l.offsetWidth,r=l.offsetHeight;n===s&&r===c||e.warn(o.get(l),"Scroll: Size changed before updating detector elements.")}a(l,s,c)}else p("Aborting because element container has not been initialized");else p("Aborting because element has been uninstalled")}),n.add(1,function(){i(l)?u()?x(l,s,c):p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")}),h&&r&&n.add(2,function(){i(l)?u()?r():p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")})}function u(){return!!i(l).container}function c(){p("notifyListenersIfNeeded invoked");var t=i(l);return void 0===i(l).lastNotifiedWidth&&t.lastWidth===t.startSize.width&&t.lastHeight===t.startSize.height?p("Not notifying: Size is the same as the start size, and there has been no notification yet."):t.lastWidth===t.lastNotifiedWidth&&t.lastHeight===t.lastNotifiedHeight?p("Not notifying: Size already notified"):(p("Current size not notified, notifying..."),t.lastNotifiedWidth=t.lastWidth,t.lastNotifiedHeight=t.lastHeight,void r(i(l).listeners,function(t){t(l)}))}function h(){p("Scroll detected."),v(l)?p("Scroll event fired while unrendered. Ignoring..."):s(c)}if(p("registerListenersAndPositionElements invoked."),i(l)){i(l).onRendered=function(){if(p("startanimation triggered."),v(l))p("Ignoring since element is still unrendered...");else{p("Element rendered.");var t=d(l),e=f(l);0!==t.scrollLeft&&0!==t.scrollTop&&0!==e.scrollLeft&&0!==e.scrollTop||(p("Scrollbars out of sync. Updating detector elements..."),s(c))}},i(l).onExpand=h,i(l).onShrink=h;var g=i(l).style;a(l,g.width,g.height)}else p("Aborting because element has been uninstalled")}function T(){if(p("finalizeDomMutation invoked."),i(l)){var t=i(l).style;y(l,t.width,t.height),x(l,t.width,t.height)}else p("Aborting because element has been uninstalled")}function I(){h(l)}function M(){var t;p("Installing..."),i(l).listeners=[],t=g(),i(l).startSize={width:t.width,height:t.height},p("Element start size",i(l).startSize),n.add(0,m),n.add(1,E),n.add(2,O),n.add(3,T),n.add(4,I)}h||(h=l,l=t,t=null),t=t||{},p("Making detectable..."),!function(t){return!function(t){return t===t.ownerDocument.body||t.ownerDocument.body.contains(t)}(t)||null===window.getComputedStyle(t)}(l)?M():(p("Element is detached"),S(),p("Waiting until element is attached..."),i(l).onRendered=function(){p("Element is now attached"),M()})},addListener:function(t,e){if(!i(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");i(t).listeners.push(e)},uninstall:function(t){var e=i(t);e&&(e.onExpandScroll&&h(d(t),"scroll",e.onExpandScroll),e.onShrinkScroll&&h(f(t),"scroll",e.onShrinkScroll),e.onAnimationStart&&h(e.container,"animationstart",e.onAnimationStart),e.container&&t.removeChild(e.container))},initDocument:l}}},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>l;)r(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d6eb:function(t,e,n){"use strict";var r="_erd";function i(t){return t[r]}t.exports={initState:function(t){return t[r]={},i(t)},getState:i,cleanState:function(t){delete t[r]}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e279:function(t,e,n){"use strict";n("1156")},eec4:function(t,e,n){"use strict";var r=n("b770").forEach,i=n("5be5"),o=n("49ad"),a=n("2cef"),s=n("5058"),l=n("abb4"),u=n("18e9"),c=n("c274"),h=n("d6eb"),d=n("18d2"),f=n("c946");function p(t){return Array.isArray(t)||void 0!==t.length}function v(t){if(Array.isArray(t))return t;var e=[];return r(t,function(t){e.push(t)}),e}function g(t){return t&&1===t.nodeType}function m(t,e,n){var r=t[e];return null==r&&void 0!==n?n:r}t.exports=function(t){var e;if((t=t||{}).idHandler)e={get:function(e){return t.idHandler.get(e,!0)},set:t.idHandler.set};else{var n=a(),y=s({idGenerator:n,stateHandler:h});e=y}var b=t.reporter;b||(b=l(!1===b));var w=m(t,"batchProcessor",c({reporter:b})),C={};C.callOnAdd=!!m(t,"callOnAdd",!0),C.debug=!!m(t,"debug",!1);var _,x=o(e),S=i({stateHandler:h}),E=m(t,"strategy","object"),O=m(t,"important",!1),T={reporter:b,batchProcessor:w,stateHandler:h,idHandler:e,important:O};if("scroll"===E&&(u.isLegacyOpera()?(b.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),E="object"):u.isIE(9)&&(b.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),E="object")),"scroll"===E)_=f(T);else{if("object"!==E)throw new Error("Invalid strategy name: "+E);_=d(T)}var I={};return{listenTo:function(t,n,i){function o(t){var e=x.get(t);r(e,function(e){e(t)})}function a(t,e,n){x.add(e,n),t&&n(e)}if(i||(i=n,n=t,t={}),!n)throw new Error("At least one element required.");if(!i)throw new Error("Listener required.");if(g(n))n=[n];else{if(!p(n))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=v(n)}var s=0,l=m(t,"callOnAdd",C.callOnAdd),u=m(t,"onReady",function(){}),c=m(t,"debug",C.debug);r(n,function(t){h.getState(t)||(h.initState(t),e.set(t));var d=e.get(t);if(c&&b.log("Attaching listener to element",d,t),!S.isDetectable(t))return c&&b.log(d,"Not detectable."),S.isBusy(t)?(c&&b.log(d,"System busy making it detectable"),a(l,t,i),I[d]=I[d]||[],void I[d].push(function(){++s===n.length&&u()})):(c&&b.log(d,"Making detectable..."),S.markBusy(t,!0),_.makeDetectable({debug:c,important:O},t,function(t){if(c&&b.log(d,"onElementDetectable"),h.getState(t)){S.markAsDetectable(t),S.markBusy(t,!1),_.addListener(t,o),a(l,t,i);var e=h.getState(t);if(e&&e.startSize){var f=t.offsetWidth,p=t.offsetHeight;e.startSize.width===f&&e.startSize.height===p||o(t)}I[d]&&r(I[d],function(t){t()})}else c&&b.log(d,"Element uninstalled before being detectable.");delete I[d],++s===n.length&&u()}));c&&b.log(d,"Already detecable, adding listener."),a(l,t,i),s++}),s===n.length&&u()},removeListener:x.removeListener,removeAllListeners:x.removeAllListeners,uninstall:function(t){if(!t)return b.error("At least one element is required.");if(g(t))t=[t];else{if(!p(t))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");t=v(t)}r(t,function(t){x.removeAllListeners(t),_.uninstall(t),h.cleanState(t)})},initDocument:function(t){_.initDocument&&_.initDocument(t)}}}},f1ae:function(t,e,n){"use strict";var r=n("86cc"),i=n("4630");t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},f6fd:function(t,e){!function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})}(document)},f751:function(t,e,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb15:function(t,e,n){"use strict";var r;(n.r(e),n.d(e,"install",function(){return i.d}),n.d(e,"GridLayout",function(){return i.b}),n.d(e,"GridItem",function(){return i.a}),"undefined"!=typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var i=n("2af9");e.default=i.c},fca0:function(t,e,n){var r=n("5ca1"),i=n("7726").isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}).default},2277:(t,e,n)=>{"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.registerDefaultHelpers=function(t){i.default(t),o.default(t),a.default(t),s.default(t),l.default(t),u.default(t),c.default(t)},e.moveHelperToHooks=function(t,e,n){t.helpers[e]&&(t.hooks[e]=t.helpers[e],n||delete t.helpers[e])};var i=r(n(6097)),o=r(n(6785)),a=r(n(4353)),s=r(n(2355)),l=r(n(5300)),u=r(n(7466)),c=r(n(908))},2300:(t,e)=>{"use strict";e.__esModule=!0;var n={helpers:{helperExpression:function(t){return"SubExpression"===t.type||("MustacheStatement"===t.type||"BlockStatement"===t.type)&&!!(t.params&&t.params.length||t.hash)},scopedId:function(t){return/^\.|this\b/.test(t.original)},simpleId:function(t){return 1===t.parts.length&&!n.helpers.scopedId(t)&&!t.depth}}};e.default=n,t.exports=e.default},2355:(t,e,n)=>{"use strict";e.__esModule=!0;var r,i=n(2849),o=n(3769),a=(r=o)&&r.__esModule?r:{default:r};e.default=function(t){t.registerHelper("if",function(t,e){if(2!=arguments.length)throw new a.default("#if requires exactly one argument");return i.isFunction(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||i.isEmpty(t)?e.inverse(this):e.fn(this)}),t.registerHelper("unless",function(e,n){if(2!=arguments.length)throw new a.default("#unless requires exactly one argument");return t.helpers.if.call(this,e,{fn:n.inverse,inverse:n.fn,hash:n.hash})})},t.exports=e.default},2543:function(t,e,n){var r;t=n.nmd(t),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,u=32,c=64,h=128,d=256,f=1/0,p=9007199254740991,v=NaN,g=4294967295,m=[["ary",h],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",u],["partialRight",c],["rearg",d]],y="[object Arguments]",b="[object Array]",w="[object Boolean]",C="[object Date]",_="[object Error]",x="[object Function]",S="[object GeneratorFunction]",E="[object Map]",O="[object Number]",T="[object Object]",I="[object Promise]",M="[object RegExp]",L="[object Set]",k="[object String]",A="[object Symbol]",R="[object WeakMap]",D="[object ArrayBuffer]",P="[object DataView]",N="[object Float32Array]",B="[object Float64Array]",z="[object Int8Array]",F="[object Int16Array]",H="[object Int32Array]",j="[object Uint8Array]",W="[object Uint8ClampedArray]",G="[object Uint16Array]",V="[object Uint32Array]",$=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,X=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,K=RegExp(X.source),Z=RegExp(q.source),J=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,tt=/<%=([\s\S]+?)%>/g,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nt=/^\w*$/,rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,it=/[\\^$.*+?()[\]{}|]/g,ot=RegExp(it.source),at=/^\s+/,st=/\s/,lt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ut=/\{\n\/\* \[wrapped with (.+)\] \*/,ct=/,? & /,ht=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dt=/[()=,{}\[\]\/\s]/,ft=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vt=/\w*$/,gt=/^[-+]0x[0-9a-f]+$/i,mt=/^0b[01]+$/i,yt=/^\[object .+?Constructor\]$/,bt=/^0o[0-7]+$/i,wt=/^(?:0|[1-9]\d*)$/,Ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_t=/($^)/,xt=/['\n\r\u2028\u2029\\]/g,St="\\ud800-\\udfff",Et="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ot="\\u2700-\\u27bf",Tt="a-z\\xdf-\\xf6\\xf8-\\xff",It="A-Z\\xc0-\\xd6\\xd8-\\xde",Mt="\\ufe0e\\ufe0f",Lt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",kt="['’]",At="["+St+"]",Rt="["+Lt+"]",Dt="["+Et+"]",Pt="\\d+",Nt="["+Ot+"]",Bt="["+Tt+"]",zt="[^"+St+Lt+Pt+Ot+Tt+It+"]",Ft="\\ud83c[\\udffb-\\udfff]",Ht="[^"+St+"]",jt="(?:\\ud83c[\\udde6-\\uddff]){2}",Wt="[\\ud800-\\udbff][\\udc00-\\udfff]",Gt="["+It+"]",Vt="\\u200d",$t="(?:"+Bt+"|"+zt+")",Ut="(?:"+Gt+"|"+zt+")",Yt="(?:['’](?:d|ll|m|re|s|t|ve))?",Xt="(?:['’](?:D|LL|M|RE|S|T|VE))?",qt="(?:"+Dt+"|"+Ft+")"+"?",Kt="["+Mt+"]?",Zt=Kt+qt+("(?:"+Vt+"(?:"+[Ht,jt,Wt].join("|")+")"+Kt+qt+")*"),Jt="(?:"+[Nt,jt,Wt].join("|")+")"+Zt,Qt="(?:"+[Ht+Dt+"?",Dt,jt,Wt,At].join("|")+")",te=RegExp(kt,"g"),ee=RegExp(Dt,"g"),ne=RegExp(Ft+"(?="+Ft+")|"+Qt+Zt,"g"),re=RegExp([Gt+"?"+Bt+"+"+Yt+"(?="+[Rt,Gt,"$"].join("|")+")",Ut+"+"+Xt+"(?="+[Rt,Gt+$t,"$"].join("|")+")",Gt+"?"+$t+"+"+Yt,Gt+"+"+Xt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pt,Jt].join("|"),"g"),ie=RegExp("["+Vt+St+Et+Mt+"]"),oe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ae=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],se=-1,le={};le[N]=le[B]=le[z]=le[F]=le[H]=le[j]=le[W]=le[G]=le[V]=!0,le[y]=le[b]=le[D]=le[w]=le[P]=le[C]=le[_]=le[x]=le[E]=le[O]=le[T]=le[M]=le[L]=le[k]=le[R]=!1;var ue={};ue[y]=ue[b]=ue[D]=ue[P]=ue[w]=ue[C]=ue[N]=ue[B]=ue[z]=ue[F]=ue[H]=ue[E]=ue[O]=ue[T]=ue[M]=ue[L]=ue[k]=ue[A]=ue[j]=ue[W]=ue[G]=ue[V]=!0,ue[_]=ue[x]=ue[R]=!1;var ce={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},he=parseFloat,de=parseInt,fe="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pe="object"==typeof self&&self&&self.Object===Object&&self,ve=fe||pe||Function("return this")(),ge=e&&!e.nodeType&&e,me=ge&&t&&!t.nodeType&&t,ye=me&&me.exports===ge,be=ye&&fe.process,we=function(){try{var t=me&&me.require&&me.require("util").types;return t||be&&be.binding&&be.binding("util")}catch(t){}}(),Ce=we&&we.isArrayBuffer,_e=we&&we.isDate,xe=we&&we.isMap,Se=we&&we.isRegExp,Ee=we&&we.isSet,Oe=we&&we.isTypedArray;function Te(t,e,n){switch(n.length){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 Ie(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function Me(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Le(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function ke(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Ae(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function Re(t,e){return!!(null==t?0:t.length)&&Ge(t,e,0)>-1}function De(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Pe(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Ne(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function Be(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function ze(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Fe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var He=Ye("length");function je(t,e,n){var r;return n(t,function(t,n,i){if(e(t,n,i))return r=n,!1}),r}function We(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Ge(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):We(t,$e,n)}function Ve(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function $e(t){return t!=t}function Ue(t,e){var n=null==t?0:t.length;return n?Ke(t,e)/n:v}function Ye(t){return function(e){return null==e?i:e[t]}}function Xe(t){return function(e){return null==t?i:t[e]}}function qe(t,e,n,r,i){return i(t,function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)}),n}function Ke(t,e){for(var n,r=-1,o=t.length;++r<o;){var a=e(t[r]);a!==i&&(n=n===i?a:n+a)}return n}function Ze(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Je(t){return t?t.slice(0,gn(t)+1).replace(at,""):t}function Qe(t){return function(e){return t(e)}}function tn(t,e){return Pe(e,function(e){return t[e]})}function en(t,e){return t.has(e)}function nn(t,e){for(var n=-1,r=t.length;++n<r&&Ge(e,t[n],0)>-1;);return n}function rn(t,e){for(var n=t.length;n--&&Ge(e,t[n],0)>-1;);return n}var on=Xe({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),an=Xe({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function sn(t){return"\\"+ce[t]}function ln(t){return ie.test(t)}function un(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function cn(t,e){return function(n){return t(e(n))}}function hn(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n];a!==e&&a!==s||(t[n]=s,o[i++]=n)}return o}function dn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function fn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function pn(t){return ln(t)?function(t){var e=ne.lastIndex=0;for(;ne.test(t);)++e;return e}(t):He(t)}function vn(t){return ln(t)?function(t){return t.match(ne)||[]}(t):function(t){return t.split("")}(t)}function gn(t){for(var e=t.length;e--&&st.test(t.charAt(e)););return e}var mn=Xe({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var yn=function t(e){var n,r=(e=null==e?ve:yn.defaults(ve.Object(),e,yn.pick(ve,ae))).Array,st=e.Date,St=e.Error,Et=e.Function,Ot=e.Math,Tt=e.Object,It=e.RegExp,Mt=e.String,Lt=e.TypeError,kt=r.prototype,At=Et.prototype,Rt=Tt.prototype,Dt=e["__core-js_shared__"],Pt=At.toString,Nt=Rt.hasOwnProperty,Bt=0,zt=(n=/[^.]+$/.exec(Dt&&Dt.keys&&Dt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ft=Rt.toString,Ht=Pt.call(Tt),jt=ve._,Wt=It("^"+Pt.call(Nt).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gt=ye?e.Buffer:i,Vt=e.Symbol,$t=e.Uint8Array,Ut=Gt?Gt.allocUnsafe:i,Yt=cn(Tt.getPrototypeOf,Tt),Xt=Tt.create,qt=Rt.propertyIsEnumerable,Kt=kt.splice,Zt=Vt?Vt.isConcatSpreadable:i,Jt=Vt?Vt.iterator:i,Qt=Vt?Vt.toStringTag:i,ne=function(){try{var t=fo(Tt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ie=e.clearTimeout!==ve.clearTimeout&&e.clearTimeout,ce=st&&st.now!==ve.Date.now&&st.now,fe=e.setTimeout!==ve.setTimeout&&e.setTimeout,pe=Ot.ceil,ge=Ot.floor,me=Tt.getOwnPropertySymbols,be=Gt?Gt.isBuffer:i,we=e.isFinite,He=kt.join,Xe=cn(Tt.keys,Tt),bn=Ot.max,wn=Ot.min,Cn=st.now,_n=e.parseInt,xn=Ot.random,Sn=kt.reverse,En=fo(e,"DataView"),On=fo(e,"Map"),Tn=fo(e,"Promise"),In=fo(e,"Set"),Mn=fo(e,"WeakMap"),Ln=fo(Tt,"create"),kn=Mn&&new Mn,An={},Rn=Fo(En),Dn=Fo(On),Pn=Fo(Tn),Nn=Fo(In),Bn=Fo(Mn),zn=Vt?Vt.prototype:i,Fn=zn?zn.valueOf:i,Hn=zn?zn.toString:i;function jn(t){if(ns(t)&&!$a(t)&&!(t instanceof $n)){if(t instanceof Vn)return t;if(Nt.call(t,"__wrapped__"))return Ho(t)}return new Vn(t)}var Wn=function(){function t(){}return function(e){if(!es(e))return{};if(Xt)return Xt(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function Gn(){}function Vn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function $n(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Yn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Xn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function qn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Xn;++e<n;)this.add(t[e])}function Kn(t){var e=this.__data__=new Yn(t);this.size=e.size}function Zn(t,e){var n=$a(t),r=!n&&Va(t),i=!n&&!r&&qa(t),o=!n&&!r&&!i&&cs(t),a=n||r||i||o,s=a?Ze(t.length,Mt):[],l=s.length;for(var u in t)!e&&!Nt.call(t,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||wo(u,l))||s.push(u);return s}function Jn(t){var e=t.length;return e?t[qr(0,e-1)]:i}function Qn(t,e){return No(Li(t),lr(e,0,t.length))}function tr(t){return No(Li(t))}function er(t,e,n){(n!==i&&!ja(t[e],n)||n===i&&!(e in t))&&ar(t,e,n)}function nr(t,e,n){var r=t[e];Nt.call(t,e)&&ja(r,n)&&(n!==i||e in t)||ar(t,e,n)}function rr(t,e){for(var n=t.length;n--;)if(ja(t[n][0],e))return n;return-1}function ir(t,e,n,r){return fr(t,function(t,i,o){e(r,t,n(t),o)}),r}function or(t,e){return t&&ki(e,As(e),t)}function ar(t,e,n){"__proto__"==e&&ne?ne(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function sr(t,e){for(var n=-1,o=e.length,a=r(o),s=null==t;++n<o;)a[n]=s?i:Ts(t,e[n]);return a}function lr(t,e,n){return t==t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function ur(t,e,n,r,o,a){var s,l=1&e,u=2&e,c=4&e;if(n&&(s=o?n(t,r,o,a):n(t)),s!==i)return s;if(!es(t))return t;var h=$a(t);if(h){if(s=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Nt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!l)return Li(t,s)}else{var d=go(t),f=d==x||d==S;if(qa(t))return Si(t,l);if(d==T||d==y||f&&!o){if(s=u||f?{}:yo(t),!l)return u?function(t,e){return ki(t,vo(t),e)}(t,function(t,e){return t&&ki(e,Rs(e),t)}(s,t)):function(t,e){return ki(t,po(t),e)}(t,or(s,t))}else{if(!ue[d])return o?t:{};s=function(t,e,n){var r=t.constructor;switch(e){case D:return Ei(t);case w:case C:return new r(+t);case P:return function(t,e){var n=e?Ei(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case N:case B:case z:case F:case H:case j:case W:case G:case V:return Oi(t,n);case E:return new r;case O:case k:return new r(t);case M:return function(t){var e=new t.constructor(t.source,vt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case L:return new r;case A:return i=t,Fn?Tt(Fn.call(i)):{}}var i}(t,d,l)}}a||(a=new Kn);var p=a.get(t);if(p)return p;a.set(t,s),ss(t)?t.forEach(function(r){s.add(ur(r,e,n,r,t,a))}):rs(t)&&t.forEach(function(r,i){s.set(i,ur(r,e,n,i,t,a))});var v=h?i:(c?u?oo:io:u?Rs:As)(t);return Me(v||t,function(r,i){v&&(r=t[i=r]),nr(s,i,ur(r,e,n,i,t,a))}),s}function cr(t,e,n){var r=n.length;if(null==t)return!r;for(t=Tt(t);r--;){var o=n[r],a=e[o],s=t[o];if(s===i&&!(o in t)||!a(s))return!1}return!0}function hr(t,e,n){if("function"!=typeof t)throw new Lt(o);return Ao(function(){t.apply(i,n)},e)}function dr(t,e,n,r){var i=-1,o=Re,a=!0,s=t.length,l=[],u=e.length;if(!s)return l;n&&(e=Pe(e,Qe(n))),r?(o=De,a=!1):e.length>=200&&(o=en,a=!1,e=new qn(e));t:for(;++i<s;){var c=t[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,a&&h==h){for(var d=u;d--;)if(e[d]===h)continue t;l.push(c)}else o(e,h,r)||l.push(c)}return l}jn.templateSettings={escape:J,evaluate:Q,interpolate:tt,variable:"",imports:{_:jn}},jn.prototype=Gn.prototype,jn.prototype.constructor=jn,Vn.prototype=Wn(Gn.prototype),Vn.prototype.constructor=Vn,$n.prototype=Wn(Gn.prototype),$n.prototype.constructor=$n,Un.prototype.clear=function(){this.__data__=Ln?Ln(null):{},this.size=0},Un.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Un.prototype.get=function(t){var e=this.__data__;if(Ln){var n=e[t];return n===a?i:n}return Nt.call(e,t)?e[t]:i},Un.prototype.has=function(t){var e=this.__data__;return Ln?e[t]!==i:Nt.call(e,t)},Un.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ln&&e===i?a:e,this},Yn.prototype.clear=function(){this.__data__=[],this.size=0},Yn.prototype.delete=function(t){var e=this.__data__,n=rr(e,t);return!(n<0)&&(n==e.length-1?e.pop():Kt.call(e,n,1),--this.size,!0)},Yn.prototype.get=function(t){var e=this.__data__,n=rr(e,t);return n<0?i:e[n][1]},Yn.prototype.has=function(t){return rr(this.__data__,t)>-1},Yn.prototype.set=function(t,e){var n=this.__data__,r=rr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Xn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(On||Yn),string:new Un}},Xn.prototype.delete=function(t){var e=co(this,t).delete(t);return this.size-=e?1:0,e},Xn.prototype.get=function(t){return co(this,t).get(t)},Xn.prototype.has=function(t){return co(this,t).has(t)},Xn.prototype.set=function(t,e){var n=co(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(t){return this.__data__.set(t,a),this},qn.prototype.has=function(t){return this.__data__.has(t)},Kn.prototype.clear=function(){this.__data__=new Yn,this.size=0},Kn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Kn.prototype.get=function(t){return this.__data__.get(t)},Kn.prototype.has=function(t){return this.__data__.has(t)},Kn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!On||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Xn(r)}return n.set(t,e),this.size=n.size,this};var fr=Di(Cr),pr=Di(_r,!0);function vr(t,e){var n=!0;return fr(t,function(t,r,i){return n=!!e(t,r,i)}),n}function gr(t,e,n){for(var r=-1,o=t.length;++r<o;){var a=t[r],s=e(a);if(null!=s&&(l===i?s==s&&!us(s):n(s,l)))var l=s,u=a}return u}function mr(t,e){var n=[];return fr(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function yr(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=bo),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?yr(s,e-1,n,r,i):Ne(i,s):r||(i[i.length]=s)}return i}var br=Pi(),wr=Pi(!0);function Cr(t,e){return t&&br(t,e,As)}function _r(t,e){return t&&wr(t,e,As)}function xr(t,e){return Ae(e,function(e){return Ja(t[e])})}function Sr(t,e){for(var n=0,r=(e=wi(e,t)).length;null!=t&&n<r;)t=t[zo(e[n++])];return n&&n==r?t:i}function Er(t,e,n){var r=e(t);return $a(t)?r:Ne(r,n(t))}function Or(t){return null==t?t===i?"[object Undefined]":"[object Null]":Qt&&Qt in Tt(t)?function(t){var e=Nt.call(t,Qt),n=t[Qt];try{t[Qt]=i;var r=!0}catch(t){}var o=Ft.call(t);r&&(e?t[Qt]=n:delete t[Qt]);return o}(t):function(t){return Ft.call(t)}(t)}function Tr(t,e){return t>e}function Ir(t,e){return null!=t&&Nt.call(t,e)}function Mr(t,e){return null!=t&&e in Tt(t)}function Lr(t,e,n){for(var o=n?De:Re,a=t[0].length,s=t.length,l=s,u=r(s),c=1/0,h=[];l--;){var d=t[l];l&&e&&(d=Pe(d,Qe(e))),c=wn(d.length,c),u[l]=!n&&(e||a>=120&&d.length>=120)?new qn(l&&d):i}d=t[0];var f=-1,p=u[0];t:for(;++f<a&&h.length<c;){var v=d[f],g=e?e(v):v;if(v=n||0!==v?v:0,!(p?en(p,g):o(h,g,n))){for(l=s;--l;){var m=u[l];if(!(m?en(m,g):o(t[l],g,n)))continue t}p&&p.push(g),h.push(v)}}return h}function kr(t,e,n){var r=null==(t=Mo(t,e=wi(e,t)))?t:t[zo(Zo(e))];return null==r?i:Te(r,t,n)}function Ar(t){return ns(t)&&Or(t)==y}function Rr(t,e,n,r,o){return t===e||(null==t||null==e||!ns(t)&&!ns(e)?t!=t&&e!=e:function(t,e,n,r,o,a){var s=$a(t),l=$a(e),u=s?b:go(t),c=l?b:go(e),h=(u=u==y?T:u)==T,d=(c=c==y?T:c)==T,f=u==c;if(f&&qa(t)){if(!qa(e))return!1;s=!0,h=!1}if(f&&!h)return a||(a=new Kn),s||cs(t)?no(t,e,n,r,o,a):function(t,e,n,r,i,o,a){switch(n){case P:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case D:return!(t.byteLength!=e.byteLength||!o(new $t(t),new $t(e)));case w:case C:case O:return ja(+t,+e);case _:return t.name==e.name&&t.message==e.message;case M:case k:return t==e+"";case E:var s=un;case L:var l=1&r;if(s||(s=dn),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;r|=2,a.set(t,e);var c=no(s(t),s(e),r,i,o,a);return a.delete(t),c;case A:if(Fn)return Fn.call(t)==Fn.call(e)}return!1}(t,e,u,n,r,o,a);if(!(1&n)){var p=h&&Nt.call(t,"__wrapped__"),v=d&&Nt.call(e,"__wrapped__");if(p||v){var g=p?t.value():t,m=v?e.value():e;return a||(a=new Kn),o(g,m,n,r,a)}}if(!f)return!1;return a||(a=new Kn),function(t,e,n,r,o,a){var s=1&n,l=io(t),u=l.length,c=io(e),h=c.length;if(u!=h&&!s)return!1;var d=u;for(;d--;){var f=l[d];if(!(s?f in e:Nt.call(e,f)))return!1}var p=a.get(t),v=a.get(e);if(p&&v)return p==e&&v==t;var g=!0;a.set(t,e),a.set(e,t);var m=s;for(;++d<u;){var y=t[f=l[d]],b=e[f];if(r)var w=s?r(b,y,f,e,t,a):r(y,b,f,t,e,a);if(!(w===i?y===b||o(y,b,n,r,a):w)){g=!1;break}m||(m="constructor"==f)}if(g&&!m){var C=t.constructor,_=e.constructor;C==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof C&&C instanceof C&&"function"==typeof _&&_ instanceof _||(g=!1)}return a.delete(t),a.delete(e),g}(t,e,n,r,o,a)}(t,e,n,r,Rr,o))}function Dr(t,e,n,r){var o=n.length,a=o,s=!r;if(null==t)return!a;for(t=Tt(t);o--;){var l=n[o];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++o<a;){var u=(l=n[o])[0],c=t[u],h=l[1];if(s&&l[2]){if(c===i&&!(u in t))return!1}else{var d=new Kn;if(r)var f=r(c,h,u,t,e,d);if(!(f===i?Rr(h,c,3,r,d):f))return!1}}return!0}function Pr(t){return!(!es(t)||(e=t,zt&&zt in e))&&(Ja(t)?Wt:yt).test(Fo(t));var e}function Nr(t){return"function"==typeof t?t:null==t?il:"object"==typeof t?$a(t)?Wr(t[0],t[1]):jr(t):fl(t)}function Br(t){if(!Eo(t))return Xe(t);var e=[];for(var n in Tt(t))Nt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function zr(t){if(!es(t))return function(t){var e=[];if(null!=t)for(var n in Tt(t))e.push(n);return e}(t);var e=Eo(t),n=[];for(var r in t)("constructor"!=r||!e&&Nt.call(t,r))&&n.push(r);return n}function Fr(t,e){return t<e}function Hr(t,e){var n=-1,i=Ya(t)?r(t.length):[];return fr(t,function(t,r,o){i[++n]=e(t,r,o)}),i}function jr(t){var e=ho(t);return 1==e.length&&e[0][2]?To(e[0][0],e[0][1]):function(n){return n===t||Dr(n,t,e)}}function Wr(t,e){return _o(t)&&Oo(e)?To(zo(t),e):function(n){var r=Ts(n,t);return r===i&&r===e?Is(n,t):Rr(e,r,3)}}function Gr(t,e,n,r,o){t!==e&&br(e,function(a,s){if(o||(o=new Kn),es(a))!function(t,e,n,r,o,a,s){var l=Lo(t,n),u=Lo(e,n),c=s.get(u);if(c)return void er(t,n,c);var h=a?a(l,u,n+"",t,e,s):i,d=h===i;if(d){var f=$a(u),p=!f&&qa(u),v=!f&&!p&&cs(u);h=u,f||p||v?$a(l)?h=l:Xa(l)?h=Li(l):p?(d=!1,h=Si(u,!0)):v?(d=!1,h=Oi(u,!0)):h=[]:os(u)||Va(u)?(h=l,Va(l)?h=ys(l):es(l)&&!Ja(l)||(h=yo(u))):d=!1}d&&(s.set(u,h),o(h,u,r,a,s),s.delete(u));er(t,n,h)}(t,e,s,n,Gr,r,o);else{var l=r?r(Lo(t,s),a,s+"",t,e,o):i;l===i&&(l=a),er(t,s,l)}},Rs)}function Vr(t,e){var n=t.length;if(n)return wo(e+=e<0?n:0,n)?t[e]:i}function $r(t,e,n){e=e.length?Pe(e,function(t){return $a(t)?function(e){return Sr(e,1===t.length?t[0]:t)}:t}):[il];var r=-1;e=Pe(e,Qe(uo()));var i=Hr(t,function(t,n,i){var o=Pe(e,function(e){return e(t)});return{criteria:o,index:++r,value:t}});return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(i,function(t,e){return function(t,e,n){var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;for(;++r<a;){var l=Ti(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)})}function Ur(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=Sr(t,a);n(s,a)&&ti(o,wi(a,t),s)}return o}function Yr(t,e,n,r){var i=r?Ve:Ge,o=-1,a=e.length,s=t;for(t===e&&(e=Li(e)),n&&(s=Pe(t,Qe(n)));++o<a;)for(var l=0,u=e[o],c=n?n(u):u;(l=i(s,c,l,r))>-1;)s!==t&&Kt.call(s,l,1),Kt.call(t,l,1);return t}function Xr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;wo(i)?Kt.call(t,i,1):di(t,i)}}return t}function qr(t,e){return t+ge(xn()*(e-t+1))}function Kr(t,e){var n="";if(!t||e<1||e>p)return n;do{e%2&&(n+=t),(e=ge(e/2))&&(t+=t)}while(e);return n}function Zr(t,e){return Ro(Io(t,e,il),t+"")}function Jr(t){return Jn(js(t))}function Qr(t,e){var n=js(t);return No(n,lr(e,0,n.length))}function ti(t,e,n,r){if(!es(t))return t;for(var o=-1,a=(e=wi(e,t)).length,s=a-1,l=t;null!=l&&++o<a;){var u=zo(e[o]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(o!=s){var h=l[u];(c=r?r(h,u,l):i)===i&&(c=es(h)?h:wo(e[o+1])?[]:{})}nr(l,u,c),l=l[u]}return t}var ei=kn?function(t,e){return kn.set(t,e),t}:il,ni=ne?function(t,e){return ne(t,"toString",{configurable:!0,enumerable:!1,value:el(e),writable:!0})}:il;function ri(t){return No(js(t))}function ii(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=r(o);++i<o;)a[i]=t[i+e];return a}function oi(t,e){var n;return fr(t,function(t,r,i){return!(n=e(t,r,i))}),!!n}function ai(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!us(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return si(t,e,il,n)}function si(t,e,n,r){var o=0,a=null==t?0:t.length;if(0===a)return 0;for(var s=(e=n(e))!=e,l=null===e,u=us(e),c=e===i;o<a;){var h=ge((o+a)/2),d=n(t[h]),f=d!==i,p=null===d,v=d==d,g=us(d);if(s)var m=r||v;else m=c?v&&(r||f):l?v&&f&&(r||!p):u?v&&f&&!p&&(r||!g):!p&&!g&&(r?d<=e:d<e);m?o=h+1:a=h}return wn(a,4294967294)}function li(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!ja(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function ui(t){return"number"==typeof t?t:us(t)?v:+t}function ci(t){if("string"==typeof t)return t;if($a(t))return Pe(t,ci)+"";if(us(t))return Hn?Hn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function hi(t,e,n){var r=-1,i=Re,o=t.length,a=!0,s=[],l=s;if(n)a=!1,i=De;else if(o>=200){var u=e?null:Ki(t);if(u)return dn(u);a=!1,i=en,l=new qn}else l=e?[]:s;t:for(;++r<o;){var c=t[r],h=e?e(c):c;if(c=n||0!==c?c:0,a&&h==h){for(var d=l.length;d--;)if(l[d]===h)continue t;e&&l.push(h),s.push(c)}else i(l,h,n)||(l!==s&&l.push(h),s.push(c))}return s}function di(t,e){return null==(t=Mo(t,e=wi(e,t)))||delete t[zo(Zo(e))]}function fi(t,e,n,r){return ti(t,e,n(Sr(t,e)),r)}function pi(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?ii(t,r?0:o,r?o+1:i):ii(t,r?o+1:0,r?i:o)}function vi(t,e){var n=t;return n instanceof $n&&(n=n.value()),Be(e,function(t,e){return e.func.apply(e.thisArg,Ne([t],e.args))},n)}function gi(t,e,n){var i=t.length;if(i<2)return i?hi(t[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=t[o],l=-1;++l<i;)l!=o&&(a[o]=dr(a[o]||s,t[l],e,n));return hi(yr(a,1),e,n)}function mi(t,e,n){for(var r=-1,o=t.length,a=e.length,s={};++r<o;){var l=r<a?e[r]:i;n(s,t[r],l)}return s}function yi(t){return Xa(t)?t:[]}function bi(t){return"function"==typeof t?t:il}function wi(t,e){return $a(t)?t:_o(t,e)?[t]:Bo(bs(t))}var Ci=Zr;function _i(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:ii(t,e,n)}var xi=ie||function(t){return ve.clearTimeout(t)};function Si(t,e){if(e)return t.slice();var n=t.length,r=Ut?Ut(n):new t.constructor(n);return t.copy(r),r}function Ei(t){var e=new t.constructor(t.byteLength);return new $t(e).set(new $t(t)),e}function Oi(t,e){var n=e?Ei(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ti(t,e){if(t!==e){var n=t!==i,r=null===t,o=t==t,a=us(t),s=e!==i,l=null===e,u=e==e,c=us(e);if(!l&&!c&&!a&&t>e||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!o)return 1;if(!r&&!a&&!c&&t<e||c&&n&&o&&!r&&!a||l&&n&&o||!s&&o||!u)return-1}return 0}function Ii(t,e,n,i){for(var o=-1,a=t.length,s=n.length,l=-1,u=e.length,c=bn(a-s,0),h=r(u+c),d=!i;++l<u;)h[l]=e[l];for(;++o<s;)(d||o<a)&&(h[n[o]]=t[o]);for(;c--;)h[l++]=t[o++];return h}function Mi(t,e,n,i){for(var o=-1,a=t.length,s=-1,l=n.length,u=-1,c=e.length,h=bn(a-l,0),d=r(h+c),f=!i;++o<h;)d[o]=t[o];for(var p=o;++u<c;)d[p+u]=e[u];for(;++s<l;)(f||o<a)&&(d[p+n[s]]=t[o++]);return d}function Li(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function ki(t,e,n,r){var o=!n;n||(n={});for(var a=-1,s=e.length;++a<s;){var l=e[a],u=r?r(n[l],t[l],l,n,t):i;u===i&&(u=t[l]),o?ar(n,l,u):nr(n,l,u)}return n}function Ai(t,e){return function(n,r){var i=$a(n)?Ie:ir,o=e?e():{};return i(n,t,uo(r,2),o)}}function Ri(t){return Zr(function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,s=o>2?n[2]:i;for(a=t.length>3&&"function"==typeof a?(o--,a):i,s&&Co(n[0],n[1],s)&&(a=o<3?i:a,o=1),e=Tt(e);++r<o;){var l=n[r];l&&t(e,l,r,a)}return e})}function Di(t,e){return function(n,r){if(null==n)return n;if(!Ya(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Tt(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Pi(t){return function(e,n,r){for(var i=-1,o=Tt(e),a=r(e),s=a.length;s--;){var l=a[t?s:++i];if(!1===n(o[l],l,o))break}return e}}function Ni(t){return function(e){var n=ln(e=bs(e))?vn(e):i,r=n?n[0]:e.charAt(0),o=n?_i(n,1).join(""):e.slice(1);return r[t]()+o}}function Bi(t){return function(e){return Be(Js(Vs(e).replace(te,"")),t,"")}}function zi(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=Wn(t.prototype),r=t.apply(n,e);return es(r)?r:n}}function Fi(t){return function(e,n,r){var o=Tt(e);if(!Ya(e)){var a=uo(n,3);e=As(e),n=function(t){return a(o[t],t,o)}}var s=t(e,n,r);return s>-1?o[a?e[s]:s]:i}}function Hi(t){return ro(function(e){var n=e.length,r=n,a=Vn.prototype.thru;for(t&&e.reverse();r--;){var s=e[r];if("function"!=typeof s)throw new Lt(o);if(a&&!l&&"wrapper"==so(s))var l=new Vn([],!0)}for(r=l?r:n;++r<n;){var u=so(s=e[r]),c="wrapper"==u?ao(s):i;l=c&&xo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[so(c[0])].apply(l,c[3]):1==s.length&&xo(s)?l[u]():l.thru(s)}return function(){var t=arguments,r=t[0];if(l&&1==t.length&&$a(r))return l.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}})}function ji(t,e,n,o,a,s,l,u,c,d){var f=e&h,p=1&e,v=2&e,g=24&e,m=512&e,y=v?i:zi(t);return function h(){for(var b=arguments.length,w=r(b),C=b;C--;)w[C]=arguments[C];if(g)var _=lo(h),x=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(w,_);if(o&&(w=Ii(w,o,a,g)),s&&(w=Mi(w,s,l,g)),b-=x,g&&b<d){var S=hn(w,_);return Xi(t,e,ji,h.placeholder,n,w,S,u,c,d-b)}var E=p?n:this,O=v?E[t]:t;return b=w.length,u?w=function(t,e){var n=t.length,r=wn(e.length,n),o=Li(t);for(;r--;){var a=e[r];t[r]=wo(a,n)?o[a]:i}return t}(w,u):m&&b>1&&w.reverse(),f&&c<b&&(w.length=c),this&&this!==ve&&this instanceof h&&(O=y||zi(O)),O.apply(E,w)}}function Wi(t,e){return function(n,r){return function(t,e,n,r){return Cr(t,function(t,i,o){e(r,n(t),i,o)}),r}(n,t,e(r),{})}}function Gi(t,e){return function(n,r){var o;if(n===i&&r===i)return e;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ci(n),r=ci(r)):(n=ui(n),r=ui(r)),o=t(n,r)}return o}}function Vi(t){return ro(function(e){return e=Pe(e,Qe(uo())),Zr(function(n){var r=this;return t(e,function(t){return Te(t,r,n)})})})}function $i(t,e){var n=(e=e===i?" ":ci(e)).length;if(n<2)return n?Kr(e,t):e;var r=Kr(e,pe(t/pn(e)));return ln(e)?_i(vn(r),0,t).join(""):r.slice(0,t)}function Ui(t){return function(e,n,o){return o&&"number"!=typeof o&&Co(e,n,o)&&(n=o=i),e=ps(e),n===i?(n=e,e=0):n=ps(n),function(t,e,n,i){for(var o=-1,a=bn(pe((e-t)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=t,t+=n;return s}(e,n,o=o===i?e<n?1:-1:ps(o),t)}}function Yi(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ms(e),n=ms(n)),t(e,n)}}function Xi(t,e,n,r,o,a,s,l,h,d){var f=8&e;e|=f?u:c,4&(e&=~(f?c:u))||(e&=-4);var p=[t,e,o,f?a:i,f?s:i,f?i:a,f?i:s,l,h,d],v=n.apply(i,p);return xo(t)&&ko(v,p),v.placeholder=r,Do(v,t,e)}function qi(t){var e=Ot[t];return function(t,n){if(t=ms(t),(n=null==n?0:wn(vs(n),292))&&we(t)){var r=(bs(t)+"e").split("e");return+((r=(bs(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Ki=In&&1/dn(new In([,-0]))[1]==f?function(t){return new In(t)}:ul;function Zi(t){return function(e){var n=go(e);return n==E?un(e):n==L?fn(e):function(t,e){return Pe(e,function(e){return[e,t[e]]})}(e,t(e))}}function Ji(t,e,n,a,f,p,v,g){var m=2&e;if(!m&&"function"!=typeof t)throw new Lt(o);var y=a?a.length:0;if(y||(e&=-97,a=f=i),v=v===i?v:bn(vs(v),0),g=g===i?g:vs(g),y-=f?f.length:0,e&c){var b=a,w=f;a=f=i}var C=m?i:ao(t),_=[t,e,n,a,f,b,w,p,v,g];if(C&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,a=r==h&&8==n||r==h&&n==d&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!a)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var l=e[3];if(l){var u=t[3];t[3]=u?Ii(u,l,e[4]):l,t[4]=u?hn(t[3],s):e[4]}(l=e[5])&&(u=t[5],t[5]=u?Mi(u,l,e[6]):l,t[6]=u?hn(t[5],s):e[6]);(l=e[7])&&(t[7]=l);r&h&&(t[8]=null==t[8]?e[8]:wn(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(_,C),t=_[0],e=_[1],n=_[2],a=_[3],f=_[4],!(g=_[9]=_[9]===i?m?0:t.length:bn(_[9]-y,0))&&24&e&&(e&=-25),e&&1!=e)x=8==e||e==l?function(t,e,n){var o=zi(t);return function a(){for(var s=arguments.length,l=r(s),u=s,c=lo(a);u--;)l[u]=arguments[u];var h=s<3&&l[0]!==c&&l[s-1]!==c?[]:hn(l,c);return(s-=h.length)<n?Xi(t,e,ji,a.placeholder,i,l,h,i,i,n-s):Te(this&&this!==ve&&this instanceof a?o:t,this,l)}}(t,e,g):e!=u&&33!=e||f.length?ji.apply(i,_):function(t,e,n,i){var o=1&e,a=zi(t);return function e(){for(var s=-1,l=arguments.length,u=-1,c=i.length,h=r(c+l),d=this&&this!==ve&&this instanceof e?a:t;++u<c;)h[u]=i[u];for(;l--;)h[u++]=arguments[++s];return Te(d,o?n:this,h)}}(t,e,n,a);else var x=function(t,e,n){var r=1&e,i=zi(t);return function e(){return(this&&this!==ve&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Do((C?ei:ko)(x,_),t,e)}function Qi(t,e,n,r){return t===i||ja(t,Rt[n])&&!Nt.call(r,n)?e:t}function to(t,e,n,r,o,a){return es(t)&&es(e)&&(a.set(e,t),Gr(t,e,i,to,a),a.delete(e)),t}function eo(t){return os(t)?i:t}function no(t,e,n,r,o,a){var s=1&n,l=t.length,u=e.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(t),h=a.get(e);if(c&&h)return c==e&&h==t;var d=-1,f=!0,p=2&n?new qn:i;for(a.set(t,e),a.set(e,t);++d<l;){var v=t[d],g=e[d];if(r)var m=s?r(g,v,d,e,t,a):r(v,g,d,t,e,a);if(m!==i){if(m)continue;f=!1;break}if(p){if(!Fe(e,function(t,e){if(!en(p,e)&&(v===t||o(v,t,n,r,a)))return p.push(e)})){f=!1;break}}else if(v!==g&&!o(v,g,n,r,a)){f=!1;break}}return a.delete(t),a.delete(e),f}function ro(t){return Ro(Io(t,i,Uo),t+"")}function io(t){return Er(t,As,po)}function oo(t){return Er(t,Rs,vo)}var ao=kn?function(t){return kn.get(t)}:ul;function so(t){for(var e=t.name+"",n=An[e],r=Nt.call(An,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function lo(t){return(Nt.call(jn,"placeholder")?jn:t).placeholder}function uo(){var t=jn.iteratee||ol;return t=t===ol?Nr:t,arguments.length?t(arguments[0],arguments[1]):t}function co(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function ho(t){for(var e=As(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Oo(i)]}return e}function fo(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return Pr(n)?n:i}var po=me?function(t){return null==t?[]:(t=Tt(t),Ae(me(t),function(e){return qt.call(t,e)}))}:gl,vo=me?function(t){for(var e=[];t;)Ne(e,po(t)),t=Yt(t);return e}:gl,go=Or;function mo(t,e,n){for(var r=-1,i=(e=wi(e,t)).length,o=!1;++r<i;){var a=zo(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&ts(i)&&wo(a,i)&&($a(t)||Va(t))}function yo(t){return"function"!=typeof t.constructor||Eo(t)?{}:Wn(Yt(t))}function bo(t){return $a(t)||Va(t)||!!(Zt&&t&&t[Zt])}function wo(t,e){var n=typeof t;return!!(e=null==e?p:e)&&("number"==n||"symbol"!=n&&wt.test(t))&&t>-1&&t%1==0&&t<e}function Co(t,e,n){if(!es(n))return!1;var r=typeof e;return!!("number"==r?Ya(n)&&wo(e,n.length):"string"==r&&e in n)&&ja(n[e],t)}function _o(t,e){if($a(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!us(t))||(nt.test(t)||!et.test(t)||null!=e&&t in Tt(e))}function xo(t){var e=so(t),n=jn[e];if("function"!=typeof n||!(e in $n.prototype))return!1;if(t===n)return!0;var r=ao(n);return!!r&&t===r[0]}(En&&go(new En(new ArrayBuffer(1)))!=P||On&&go(new On)!=E||Tn&&go(Tn.resolve())!=I||In&&go(new In)!=L||Mn&&go(new Mn)!=R)&&(go=function(t){var e=Or(t),n=e==T?t.constructor:i,r=n?Fo(n):"";if(r)switch(r){case Rn:return P;case Dn:return E;case Pn:return I;case Nn:return L;case Bn:return R}return e});var So=Dt?Ja:ml;function Eo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Rt)}function Oo(t){return t==t&&!es(t)}function To(t,e){return function(n){return null!=n&&(n[t]===e&&(e!==i||t in Tt(n)))}}function Io(t,e,n){return e=bn(e===i?t.length-1:e,0),function(){for(var i=arguments,o=-1,a=bn(i.length-e,0),s=r(a);++o<a;)s[o]=i[e+o];o=-1;for(var l=r(e+1);++o<e;)l[o]=i[o];return l[e]=n(s),Te(t,this,l)}}function Mo(t,e){return e.length<2?t:Sr(t,ii(e,0,-1))}function Lo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var ko=Po(ei),Ao=fe||function(t,e){return ve.setTimeout(t,e)},Ro=Po(ni);function Do(t,e,n){var r=e+"";return Ro(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(lt,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Me(m,function(n){var r="_."+n[0];e&n[1]&&!Re(t,r)&&t.push(r)}),t.sort()}(function(t){var e=t.match(ut);return e?e[1].split(ct):[]}(r),n)))}function Po(t){var e=0,n=0;return function(){var r=Cn(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function No(t,e){var n=-1,r=t.length,o=r-1;for(e=e===i?r:e;++n<e;){var a=qr(n,o),s=t[a];t[a]=t[n],t[n]=s}return t.length=e,t}var Bo=function(t){var e=Pa(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(rt,function(t,n,r,i){e.push(r?i.replace(ft,"$1"):n||t)}),e});function zo(t){if("string"==typeof t||us(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Fo(t){if(null!=t){try{return Pt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ho(t){if(t instanceof $n)return t.clone();var e=new Vn(t.__wrapped__,t.__chain__);return e.__actions__=Li(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var jo=Zr(function(t,e){return Xa(t)?dr(t,yr(e,1,Xa,!0)):[]}),Wo=Zr(function(t,e){var n=Zo(e);return Xa(n)&&(n=i),Xa(t)?dr(t,yr(e,1,Xa,!0),uo(n,2)):[]}),Go=Zr(function(t,e){var n=Zo(e);return Xa(n)&&(n=i),Xa(t)?dr(t,yr(e,1,Xa,!0),i,n):[]});function Vo(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=bn(r+i,0)),We(t,uo(e,3),i)}function $o(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==i&&(o=vs(n),o=n<0?bn(r+o,0):wn(o,r-1)),We(t,uo(e,3),o,!0)}function Uo(t){return(null==t?0:t.length)?yr(t,1):[]}function Yo(t){return t&&t.length?t[0]:i}var Xo=Zr(function(t){var e=Pe(t,yi);return e.length&&e[0]===t[0]?Lr(e):[]}),qo=Zr(function(t){var e=Zo(t),n=Pe(t,yi);return e===Zo(n)?e=i:n.pop(),n.length&&n[0]===t[0]?Lr(n,uo(e,2)):[]}),Ko=Zr(function(t){var e=Zo(t),n=Pe(t,yi);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?Lr(n,i,e):[]});function Zo(t){var e=null==t?0:t.length;return e?t[e-1]:i}var Jo=Zr(Qo);function Qo(t,e){return t&&t.length&&e&&e.length?Yr(t,e):t}var ta=ro(function(t,e){var n=null==t?0:t.length,r=sr(t,e);return Xr(t,Pe(e,function(t){return wo(t,n)?+t:t}).sort(Ti)),r});function ea(t){return null==t?t:Sn.call(t)}var na=Zr(function(t){return hi(yr(t,1,Xa,!0))}),ra=Zr(function(t){var e=Zo(t);return Xa(e)&&(e=i),hi(yr(t,1,Xa,!0),uo(e,2))}),ia=Zr(function(t){var e=Zo(t);return e="function"==typeof e?e:i,hi(yr(t,1,Xa,!0),i,e)});function oa(t){if(!t||!t.length)return[];var e=0;return t=Ae(t,function(t){if(Xa(t))return e=bn(t.length,e),!0}),Ze(e,function(e){return Pe(t,Ye(e))})}function aa(t,e){if(!t||!t.length)return[];var n=oa(t);return null==e?n:Pe(n,function(t){return Te(e,i,t)})}var sa=Zr(function(t,e){return Xa(t)?dr(t,e):[]}),la=Zr(function(t){return gi(Ae(t,Xa))}),ua=Zr(function(t){var e=Zo(t);return Xa(e)&&(e=i),gi(Ae(t,Xa),uo(e,2))}),ca=Zr(function(t){var e=Zo(t);return e="function"==typeof e?e:i,gi(Ae(t,Xa),i,e)}),ha=Zr(oa);var da=Zr(function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,aa(t,n)});function fa(t){var e=jn(t);return e.__chain__=!0,e}function pa(t,e){return e(t)}var va=ro(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return sr(e,t)};return!(e>1||this.__actions__.length)&&r instanceof $n&&wo(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:pa,args:[o],thisArg:i}),new Vn(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(i),t})):this.thru(o)});var ga=Ai(function(t,e,n){Nt.call(t,n)?++t[n]:ar(t,n,1)});var ma=Fi(Vo),ya=Fi($o);function ba(t,e){return($a(t)?Me:fr)(t,uo(e,3))}function wa(t,e){return($a(t)?Le:pr)(t,uo(e,3))}var Ca=Ai(function(t,e,n){Nt.call(t,n)?t[n].push(e):ar(t,n,[e])});var _a=Zr(function(t,e,n){var i=-1,o="function"==typeof e,a=Ya(t)?r(t.length):[];return fr(t,function(t){a[++i]=o?Te(e,t,n):kr(t,e,n)}),a}),xa=Ai(function(t,e,n){ar(t,n,e)});function Sa(t,e){return($a(t)?Pe:Hr)(t,uo(e,3))}var Ea=Ai(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});var Oa=Zr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Co(t,e[0],e[1])?e=[]:n>2&&Co(e[0],e[1],e[2])&&(e=[e[0]]),$r(t,yr(e,1),[])}),Ta=ce||function(){return ve.Date.now()};function Ia(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Ji(t,h,i,i,i,i,e)}function Ma(t,e){var n;if("function"!=typeof e)throw new Lt(o);return t=vs(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var La=Zr(function(t,e,n){var r=1;if(n.length){var i=hn(n,lo(La));r|=u}return Ji(t,r,e,n,i)}),ka=Zr(function(t,e,n){var r=3;if(n.length){var i=hn(n,lo(ka));r|=u}return Ji(e,r,t,n,i)});function Aa(t,e,n){var r,a,s,l,u,c,h=0,d=!1,f=!1,p=!0;if("function"!=typeof t)throw new Lt(o);function v(e){var n=r,o=a;return r=a=i,h=e,l=t.apply(o,n)}function g(t){var n=t-c;return c===i||n>=e||n<0||f&&t-h>=s}function m(){var t=Ta();if(g(t))return y(t);u=Ao(m,function(t){var n=e-(t-c);return f?wn(n,s-(t-h)):n}(t))}function y(t){return u=i,p&&r?v(t):(r=a=i,l)}function b(){var t=Ta(),n=g(t);if(r=arguments,a=this,c=t,n){if(u===i)return function(t){return h=t,u=Ao(m,e),d?v(t):l}(c);if(f)return xi(u),u=Ao(m,e),v(c)}return u===i&&(u=Ao(m,e)),l}return e=ms(e)||0,es(n)&&(d=!!n.leading,s=(f="maxWait"in n)?bn(ms(n.maxWait)||0,e):s,p="trailing"in n?!!n.trailing:p),b.cancel=function(){u!==i&&xi(u),h=0,r=c=a=u=i},b.flush=function(){return u===i?l:y(Ta())},b}var Ra=Zr(function(t,e){return hr(t,1,e)}),Da=Zr(function(t,e,n){return hr(t,ms(e)||0,n)});function Pa(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Lt(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Pa.Cache||Xn),n}function Na(t){if("function"!=typeof t)throw new Lt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Pa.Cache=Xn;var Ba=Ci(function(t,e){var n=(e=1==e.length&&$a(e[0])?Pe(e[0],Qe(uo())):Pe(yr(e,1),Qe(uo()))).length;return Zr(function(r){for(var i=-1,o=wn(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return Te(t,this,r)})}),za=Zr(function(t,e){var n=hn(e,lo(za));return Ji(t,u,i,e,n)}),Fa=Zr(function(t,e){var n=hn(e,lo(Fa));return Ji(t,c,i,e,n)}),Ha=ro(function(t,e){return Ji(t,d,i,i,i,e)});function ja(t,e){return t===e||t!=t&&e!=e}var Wa=Yi(Tr),Ga=Yi(function(t,e){return t>=e}),Va=Ar(function(){return arguments}())?Ar:function(t){return ns(t)&&Nt.call(t,"callee")&&!qt.call(t,"callee")},$a=r.isArray,Ua=Ce?Qe(Ce):function(t){return ns(t)&&Or(t)==D};function Ya(t){return null!=t&&ts(t.length)&&!Ja(t)}function Xa(t){return ns(t)&&Ya(t)}var qa=be||ml,Ka=_e?Qe(_e):function(t){return ns(t)&&Or(t)==C};function Za(t){if(!ns(t))return!1;var e=Or(t);return e==_||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!os(t)}function Ja(t){if(!es(t))return!1;var e=Or(t);return e==x||e==S||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Qa(t){return"number"==typeof t&&t==vs(t)}function ts(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=p}function es(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ns(t){return null!=t&&"object"==typeof t}var rs=xe?Qe(xe):function(t){return ns(t)&&go(t)==E};function is(t){return"number"==typeof t||ns(t)&&Or(t)==O}function os(t){if(!ns(t)||Or(t)!=T)return!1;var e=Yt(t);if(null===e)return!0;var n=Nt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Pt.call(n)==Ht}var as=Se?Qe(Se):function(t){return ns(t)&&Or(t)==M};var ss=Ee?Qe(Ee):function(t){return ns(t)&&go(t)==L};function ls(t){return"string"==typeof t||!$a(t)&&ns(t)&&Or(t)==k}function us(t){return"symbol"==typeof t||ns(t)&&Or(t)==A}var cs=Oe?Qe(Oe):function(t){return ns(t)&&ts(t.length)&&!!le[Or(t)]};var hs=Yi(Fr),ds=Yi(function(t,e){return t<=e});function fs(t){if(!t)return[];if(Ya(t))return ls(t)?vn(t):Li(t);if(Jt&&t[Jt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Jt]());var e=go(t);return(e==E?un:e==L?dn:js)(t)}function ps(t){return t?(t=ms(t))===f||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function vs(t){var e=ps(t),n=e%1;return e==e?n?e-n:e:0}function gs(t){return t?lr(vs(t),0,g):0}function ms(t){if("number"==typeof t)return t;if(us(t))return v;if(es(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=es(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Je(t);var n=mt.test(t);return n||bt.test(t)?de(t.slice(2),n?2:8):gt.test(t)?v:+t}function ys(t){return ki(t,Rs(t))}function bs(t){return null==t?"":ci(t)}var ws=Ri(function(t,e){if(Eo(e)||Ya(e))ki(e,As(e),t);else for(var n in e)Nt.call(e,n)&&nr(t,n,e[n])}),Cs=Ri(function(t,e){ki(e,Rs(e),t)}),_s=Ri(function(t,e,n,r){ki(e,Rs(e),t,r)}),xs=Ri(function(t,e,n,r){ki(e,As(e),t,r)}),Ss=ro(sr);var Es=Zr(function(t,e){t=Tt(t);var n=-1,r=e.length,o=r>2?e[2]:i;for(o&&Co(e[0],e[1],o)&&(r=1);++n<r;)for(var a=e[n],s=Rs(a),l=-1,u=s.length;++l<u;){var c=s[l],h=t[c];(h===i||ja(h,Rt[c])&&!Nt.call(t,c))&&(t[c]=a[c])}return t}),Os=Zr(function(t){return t.push(i,to),Te(Ps,i,t)});function Ts(t,e,n){var r=null==t?i:Sr(t,e);return r===i?n:r}function Is(t,e){return null!=t&&mo(t,e,Mr)}var Ms=Wi(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),t[e]=n},el(il)),Ls=Wi(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Ft.call(e)),Nt.call(t,e)?t[e].push(n):t[e]=[n]},uo),ks=Zr(kr);function As(t){return Ya(t)?Zn(t):Br(t)}function Rs(t){return Ya(t)?Zn(t,!0):zr(t)}var Ds=Ri(function(t,e,n){Gr(t,e,n)}),Ps=Ri(function(t,e,n,r){Gr(t,e,n,r)}),Ns=ro(function(t,e){var n={};if(null==t)return n;var r=!1;e=Pe(e,function(e){return e=wi(e,t),r||(r=e.length>1),e}),ki(t,oo(t),n),r&&(n=ur(n,7,eo));for(var i=e.length;i--;)di(n,e[i]);return n});var Bs=ro(function(t,e){return null==t?{}:function(t,e){return Ur(t,e,function(e,n){return Is(t,n)})}(t,e)});function zs(t,e){if(null==t)return{};var n=Pe(oo(t),function(t){return[t]});return e=uo(e),Ur(t,n,function(t,n){return e(t,n[0])})}var Fs=Zi(As),Hs=Zi(Rs);function js(t){return null==t?[]:tn(t,As(t))}var Ws=Bi(function(t,e,n){return e=e.toLowerCase(),t+(n?Gs(e):e)});function Gs(t){return Zs(bs(t).toLowerCase())}function Vs(t){return(t=bs(t))&&t.replace(Ct,on).replace(ee,"")}var $s=Bi(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),Us=Bi(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),Ys=Ni("toLowerCase");var Xs=Bi(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});var qs=Bi(function(t,e,n){return t+(n?" ":"")+Zs(e)});var Ks=Bi(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Zs=Ni("toUpperCase");function Js(t,e,n){return t=bs(t),(e=n?i:e)===i?function(t){return oe.test(t)}(t)?function(t){return t.match(re)||[]}(t):function(t){return t.match(ht)||[]}(t):t.match(e)||[]}var Qs=Zr(function(t,e){try{return Te(t,i,e)}catch(t){return Za(t)?t:new St(t)}}),tl=ro(function(t,e){return Me(e,function(e){e=zo(e),ar(t,e,La(t[e],t))}),t});function el(t){return function(){return t}}var nl=Hi(),rl=Hi(!0);function il(t){return t}function ol(t){return Nr("function"==typeof t?t:ur(t,1))}var al=Zr(function(t,e){return function(n){return kr(n,t,e)}}),sl=Zr(function(t,e){return function(n){return kr(t,n,e)}});function ll(t,e,n){var r=As(e),i=xr(e,r);null!=n||es(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=xr(e,As(e)));var o=!(es(n)&&"chain"in n&&!n.chain),a=Ja(t);return Me(i,function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=Li(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Ne([this.value()],arguments))})}),t}function ul(){}var cl=Vi(Pe),hl=Vi(ke),dl=Vi(Fe);function fl(t){return _o(t)?Ye(zo(t)):function(t){return function(e){return Sr(e,t)}}(t)}var pl=Ui(),vl=Ui(!0);function gl(){return[]}function ml(){return!1}var yl=Gi(function(t,e){return t+e},0),bl=qi("ceil"),wl=Gi(function(t,e){return t/e},1),Cl=qi("floor");var _l,xl=Gi(function(t,e){return t*e},1),Sl=qi("round"),El=Gi(function(t,e){return t-e},0);return jn.after=function(t,e){if("function"!=typeof e)throw new Lt(o);return t=vs(t),function(){if(--t<1)return e.apply(this,arguments)}},jn.ary=Ia,jn.assign=ws,jn.assignIn=Cs,jn.assignInWith=_s,jn.assignWith=xs,jn.at=Ss,jn.before=Ma,jn.bind=La,jn.bindAll=tl,jn.bindKey=ka,jn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return $a(t)?t:[t]},jn.chain=fa,jn.chunk=function(t,e,n){e=(n?Co(t,e,n):e===i)?1:bn(vs(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var a=0,s=0,l=r(pe(o/e));a<o;)l[s++]=ii(t,a,a+=e);return l},jn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},jn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Ne($a(n)?Li(n):[n],yr(e,1))},jn.cond=function(t){var e=null==t?0:t.length,n=uo();return t=e?Pe(t,function(t){if("function"!=typeof t[1])throw new Lt(o);return[n(t[0]),t[1]]}):[],Zr(function(n){for(var r=-1;++r<e;){var i=t[r];if(Te(i[0],this,n))return Te(i[1],this,n)}})},jn.conforms=function(t){return function(t){var e=As(t);return function(n){return cr(n,t,e)}}(ur(t,1))},jn.constant=el,jn.countBy=ga,jn.create=function(t,e){var n=Wn(t);return null==e?n:or(n,e)},jn.curry=function t(e,n,r){var o=Ji(e,8,i,i,i,i,i,n=r?i:n);return o.placeholder=t.placeholder,o},jn.curryRight=function t(e,n,r){var o=Ji(e,l,i,i,i,i,i,n=r?i:n);return o.placeholder=t.placeholder,o},jn.debounce=Aa,jn.defaults=Es,jn.defaultsDeep=Os,jn.defer=Ra,jn.delay=Da,jn.difference=jo,jn.differenceBy=Wo,jn.differenceWith=Go,jn.drop=function(t,e,n){var r=null==t?0:t.length;return r?ii(t,(e=n||e===i?1:vs(e))<0?0:e,r):[]},jn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?ii(t,0,(e=r-(e=n||e===i?1:vs(e)))<0?0:e):[]},jn.dropRightWhile=function(t,e){return t&&t.length?pi(t,uo(e,3),!0,!0):[]},jn.dropWhile=function(t,e){return t&&t.length?pi(t,uo(e,3),!0):[]},jn.fill=function(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&Co(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=vs(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:vs(r))<0&&(r+=o),r=n>r?0:gs(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},jn.filter=function(t,e){return($a(t)?Ae:mr)(t,uo(e,3))},jn.flatMap=function(t,e){return yr(Sa(t,e),1)},jn.flatMapDeep=function(t,e){return yr(Sa(t,e),f)},jn.flatMapDepth=function(t,e,n){return n=n===i?1:vs(n),yr(Sa(t,e),n)},jn.flatten=Uo,jn.flattenDeep=function(t){return(null==t?0:t.length)?yr(t,f):[]},jn.flattenDepth=function(t,e){return(null==t?0:t.length)?yr(t,e=e===i?1:vs(e)):[]},jn.flip=function(t){return Ji(t,512)},jn.flow=nl,jn.flowRight=rl,jn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},jn.functions=function(t){return null==t?[]:xr(t,As(t))},jn.functionsIn=function(t){return null==t?[]:xr(t,Rs(t))},jn.groupBy=Ca,jn.initial=function(t){return(null==t?0:t.length)?ii(t,0,-1):[]},jn.intersection=Xo,jn.intersectionBy=qo,jn.intersectionWith=Ko,jn.invert=Ms,jn.invertBy=Ls,jn.invokeMap=_a,jn.iteratee=ol,jn.keyBy=xa,jn.keys=As,jn.keysIn=Rs,jn.map=Sa,jn.mapKeys=function(t,e){var n={};return e=uo(e,3),Cr(t,function(t,r,i){ar(n,e(t,r,i),t)}),n},jn.mapValues=function(t,e){var n={};return e=uo(e,3),Cr(t,function(t,r,i){ar(n,r,e(t,r,i))}),n},jn.matches=function(t){return jr(ur(t,1))},jn.matchesProperty=function(t,e){return Wr(t,ur(e,1))},jn.memoize=Pa,jn.merge=Ds,jn.mergeWith=Ps,jn.method=al,jn.methodOf=sl,jn.mixin=ll,jn.negate=Na,jn.nthArg=function(t){return t=vs(t),Zr(function(e){return Vr(e,t)})},jn.omit=Ns,jn.omitBy=function(t,e){return zs(t,Na(uo(e)))},jn.once=function(t){return Ma(2,t)},jn.orderBy=function(t,e,n,r){return null==t?[]:($a(e)||(e=null==e?[]:[e]),$a(n=r?i:n)||(n=null==n?[]:[n]),$r(t,e,n))},jn.over=cl,jn.overArgs=Ba,jn.overEvery=hl,jn.overSome=dl,jn.partial=za,jn.partialRight=Fa,jn.partition=Ea,jn.pick=Bs,jn.pickBy=zs,jn.property=fl,jn.propertyOf=function(t){return function(e){return null==t?i:Sr(t,e)}},jn.pull=Jo,jn.pullAll=Qo,jn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Yr(t,e,uo(n,2)):t},jn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Yr(t,e,i,n):t},jn.pullAt=ta,jn.range=pl,jn.rangeRight=vl,jn.rearg=Ha,jn.reject=function(t,e){return($a(t)?Ae:mr)(t,Na(uo(e,3)))},jn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=uo(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Xr(t,i),n},jn.rest=function(t,e){if("function"!=typeof t)throw new Lt(o);return Zr(t,e=e===i?e:vs(e))},jn.reverse=ea,jn.sampleSize=function(t,e,n){return e=(n?Co(t,e,n):e===i)?1:vs(e),($a(t)?Qn:Qr)(t,e)},jn.set=function(t,e,n){return null==t?t:ti(t,e,n)},jn.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:ti(t,e,n,r)},jn.shuffle=function(t){return($a(t)?tr:ri)(t)},jn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Co(t,e,n)?(e=0,n=r):(e=null==e?0:vs(e),n=n===i?r:vs(n)),ii(t,e,n)):[]},jn.sortBy=Oa,jn.sortedUniq=function(t){return t&&t.length?li(t):[]},jn.sortedUniqBy=function(t,e){return t&&t.length?li(t,uo(e,2)):[]},jn.split=function(t,e,n){return n&&"number"!=typeof n&&Co(t,e,n)&&(e=n=i),(n=n===i?g:n>>>0)?(t=bs(t))&&("string"==typeof e||null!=e&&!as(e))&&!(e=ci(e))&&ln(t)?_i(vn(t),0,n):t.split(e,n):[]},jn.spread=function(t,e){if("function"!=typeof t)throw new Lt(o);return e=null==e?0:bn(vs(e),0),Zr(function(n){var r=n[e],i=_i(n,0,e);return r&&Ne(i,r),Te(t,this,i)})},jn.tail=function(t){var e=null==t?0:t.length;return e?ii(t,1,e):[]},jn.take=function(t,e,n){return t&&t.length?ii(t,0,(e=n||e===i?1:vs(e))<0?0:e):[]},jn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?ii(t,(e=r-(e=n||e===i?1:vs(e)))<0?0:e,r):[]},jn.takeRightWhile=function(t,e){return t&&t.length?pi(t,uo(e,3),!1,!0):[]},jn.takeWhile=function(t,e){return t&&t.length?pi(t,uo(e,3)):[]},jn.tap=function(t,e){return e(t),t},jn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Lt(o);return es(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Aa(t,e,{leading:r,maxWait:e,trailing:i})},jn.thru=pa,jn.toArray=fs,jn.toPairs=Fs,jn.toPairsIn=Hs,jn.toPath=function(t){return $a(t)?Pe(t,zo):us(t)?[t]:Li(Bo(bs(t)))},jn.toPlainObject=ys,jn.transform=function(t,e,n){var r=$a(t),i=r||qa(t)||cs(t);if(e=uo(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:es(t)&&Ja(o)?Wn(Yt(t)):{}}return(i?Me:Cr)(t,function(t,r,i){return e(n,t,r,i)}),n},jn.unary=function(t){return Ia(t,1)},jn.union=na,jn.unionBy=ra,jn.unionWith=ia,jn.uniq=function(t){return t&&t.length?hi(t):[]},jn.uniqBy=function(t,e){return t&&t.length?hi(t,uo(e,2)):[]},jn.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?hi(t,i,e):[]},jn.unset=function(t,e){return null==t||di(t,e)},jn.unzip=oa,jn.unzipWith=aa,jn.update=function(t,e,n){return null==t?t:fi(t,e,bi(n))},jn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:fi(t,e,bi(n),r)},jn.values=js,jn.valuesIn=function(t){return null==t?[]:tn(t,Rs(t))},jn.without=sa,jn.words=Js,jn.wrap=function(t,e){return za(bi(e),t)},jn.xor=la,jn.xorBy=ua,jn.xorWith=ca,jn.zip=ha,jn.zipObject=function(t,e){return mi(t||[],e||[],nr)},jn.zipObjectDeep=function(t,e){return mi(t||[],e||[],ti)},jn.zipWith=da,jn.entries=Fs,jn.entriesIn=Hs,jn.extend=Cs,jn.extendWith=_s,ll(jn,jn),jn.add=yl,jn.attempt=Qs,jn.camelCase=Ws,jn.capitalize=Gs,jn.ceil=bl,jn.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=ms(n))==n?n:0),e!==i&&(e=(e=ms(e))==e?e:0),lr(ms(t),e,n)},jn.clone=function(t){return ur(t,4)},jn.cloneDeep=function(t){return ur(t,5)},jn.cloneDeepWith=function(t,e){return ur(t,5,e="function"==typeof e?e:i)},jn.cloneWith=function(t,e){return ur(t,4,e="function"==typeof e?e:i)},jn.conformsTo=function(t,e){return null==e||cr(t,e,As(e))},jn.deburr=Vs,jn.defaultTo=function(t,e){return null==t||t!=t?e:t},jn.divide=wl,jn.endsWith=function(t,e,n){t=bs(t),e=ci(e);var r=t.length,o=n=n===i?r:lr(vs(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},jn.eq=ja,jn.escape=function(t){return(t=bs(t))&&Z.test(t)?t.replace(q,an):t},jn.escapeRegExp=function(t){return(t=bs(t))&&ot.test(t)?t.replace(it,"\\$&"):t},jn.every=function(t,e,n){var r=$a(t)?ke:vr;return n&&Co(t,e,n)&&(e=i),r(t,uo(e,3))},jn.find=ma,jn.findIndex=Vo,jn.findKey=function(t,e){return je(t,uo(e,3),Cr)},jn.findLast=ya,jn.findLastIndex=$o,jn.findLastKey=function(t,e){return je(t,uo(e,3),_r)},jn.floor=Cl,jn.forEach=ba,jn.forEachRight=wa,jn.forIn=function(t,e){return null==t?t:br(t,uo(e,3),Rs)},jn.forInRight=function(t,e){return null==t?t:wr(t,uo(e,3),Rs)},jn.forOwn=function(t,e){return t&&Cr(t,uo(e,3))},jn.forOwnRight=function(t,e){return t&&_r(t,uo(e,3))},jn.get=Ts,jn.gt=Wa,jn.gte=Ga,jn.has=function(t,e){return null!=t&&mo(t,e,Ir)},jn.hasIn=Is,jn.head=Yo,jn.identity=il,jn.includes=function(t,e,n,r){t=Ya(t)?t:js(t),n=n&&!r?vs(n):0;var i=t.length;return n<0&&(n=bn(i+n,0)),ls(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Ge(t,e,n)>-1},jn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=bn(r+i,0)),Ge(t,e,i)},jn.inRange=function(t,e,n){return e=ps(e),n===i?(n=e,e=0):n=ps(n),function(t,e,n){return t>=wn(e,n)&&t<bn(e,n)}(t=ms(t),e,n)},jn.invoke=ks,jn.isArguments=Va,jn.isArray=$a,jn.isArrayBuffer=Ua,jn.isArrayLike=Ya,jn.isArrayLikeObject=Xa,jn.isBoolean=function(t){return!0===t||!1===t||ns(t)&&Or(t)==w},jn.isBuffer=qa,jn.isDate=Ka,jn.isElement=function(t){return ns(t)&&1===t.nodeType&&!os(t)},jn.isEmpty=function(t){if(null==t)return!0;if(Ya(t)&&($a(t)||"string"==typeof t||"function"==typeof t.splice||qa(t)||cs(t)||Va(t)))return!t.length;var e=go(t);if(e==E||e==L)return!t.size;if(Eo(t))return!Br(t).length;for(var n in t)if(Nt.call(t,n))return!1;return!0},jn.isEqual=function(t,e){return Rr(t,e)},jn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Rr(t,e,i,n):!!r},jn.isError=Za,jn.isFinite=function(t){return"number"==typeof t&&we(t)},jn.isFunction=Ja,jn.isInteger=Qa,jn.isLength=ts,jn.isMap=rs,jn.isMatch=function(t,e){return t===e||Dr(t,e,ho(e))},jn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,Dr(t,e,ho(e),n)},jn.isNaN=function(t){return is(t)&&t!=+t},jn.isNative=function(t){if(So(t))throw new St("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(t)},jn.isNil=function(t){return null==t},jn.isNull=function(t){return null===t},jn.isNumber=is,jn.isObject=es,jn.isObjectLike=ns,jn.isPlainObject=os,jn.isRegExp=as,jn.isSafeInteger=function(t){return Qa(t)&&t>=-9007199254740991&&t<=p},jn.isSet=ss,jn.isString=ls,jn.isSymbol=us,jn.isTypedArray=cs,jn.isUndefined=function(t){return t===i},jn.isWeakMap=function(t){return ns(t)&&go(t)==R},jn.isWeakSet=function(t){return ns(t)&&"[object WeakSet]"==Or(t)},jn.join=function(t,e){return null==t?"":He.call(t,e)},jn.kebabCase=$s,jn.last=Zo,jn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=vs(n))<0?bn(r+o,0):wn(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):We(t,$e,o,!0)},jn.lowerCase=Us,jn.lowerFirst=Ys,jn.lt=hs,jn.lte=ds,jn.max=function(t){return t&&t.length?gr(t,il,Tr):i},jn.maxBy=function(t,e){return t&&t.length?gr(t,uo(e,2),Tr):i},jn.mean=function(t){return Ue(t,il)},jn.meanBy=function(t,e){return Ue(t,uo(e,2))},jn.min=function(t){return t&&t.length?gr(t,il,Fr):i},jn.minBy=function(t,e){return t&&t.length?gr(t,uo(e,2),Fr):i},jn.stubArray=gl,jn.stubFalse=ml,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=xl,jn.nth=function(t,e){return t&&t.length?Vr(t,vs(e)):i},jn.noConflict=function(){return ve._===this&&(ve._=jt),this},jn.noop=ul,jn.now=Ta,jn.pad=function(t,e,n){t=bs(t);var r=(e=vs(e))?pn(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return $i(ge(i),n)+t+$i(pe(i),n)},jn.padEnd=function(t,e,n){t=bs(t);var r=(e=vs(e))?pn(t):0;return e&&r<e?t+$i(e-r,n):t},jn.padStart=function(t,e,n){t=bs(t);var r=(e=vs(e))?pn(t):0;return e&&r<e?$i(e-r,n)+t:t},jn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),_n(bs(t).replace(at,""),e||0)},jn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Co(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=ps(t),e===i?(e=t,t=0):e=ps(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=xn();return wn(t+o*(e-t+he("1e-"+((o+"").length-1))),e)}return qr(t,e)},jn.reduce=function(t,e,n){var r=$a(t)?Be:qe,i=arguments.length<3;return r(t,uo(e,4),n,i,fr)},jn.reduceRight=function(t,e,n){var r=$a(t)?ze:qe,i=arguments.length<3;return r(t,uo(e,4),n,i,pr)},jn.repeat=function(t,e,n){return e=(n?Co(t,e,n):e===i)?1:vs(e),Kr(bs(t),e)},jn.replace=function(){var t=arguments,e=bs(t[0]);return t.length<3?e:e.replace(t[1],t[2])},jn.result=function(t,e,n){var r=-1,o=(e=wi(e,t)).length;for(o||(o=1,t=i);++r<o;){var a=null==t?i:t[zo(e[r])];a===i&&(r=o,a=n),t=Ja(a)?a.call(t):a}return t},jn.round=Sl,jn.runInContext=t,jn.sample=function(t){return($a(t)?Jn:Jr)(t)},jn.size=function(t){if(null==t)return 0;if(Ya(t))return ls(t)?pn(t):t.length;var e=go(t);return e==E||e==L?t.size:Br(t).length},jn.snakeCase=Xs,jn.some=function(t,e,n){var r=$a(t)?Fe:oi;return n&&Co(t,e,n)&&(e=i),r(t,uo(e,3))},jn.sortedIndex=function(t,e){return ai(t,e)},jn.sortedIndexBy=function(t,e,n){return si(t,e,uo(n,2))},jn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ai(t,e);if(r<n&&ja(t[r],e))return r}return-1},jn.sortedLastIndex=function(t,e){return ai(t,e,!0)},jn.sortedLastIndexBy=function(t,e,n){return si(t,e,uo(n,2),!0)},jn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=ai(t,e,!0)-1;if(ja(t[n],e))return n}return-1},jn.startCase=qs,jn.startsWith=function(t,e,n){return t=bs(t),n=null==n?0:lr(vs(n),0,t.length),e=ci(e),t.slice(n,n+e.length)==e},jn.subtract=El,jn.sum=function(t){return t&&t.length?Ke(t,il):0},jn.sumBy=function(t,e){return t&&t.length?Ke(t,uo(e,2)):0},jn.template=function(t,e,n){var r=jn.templateSettings;n&&Co(t,e,n)&&(e=i),t=bs(t),e=_s({},e,r,Qi);var o,a,s=_s({},e.imports,r.imports,Qi),l=As(s),u=tn(s,l),c=0,h=e.interpolate||_t,d="__p += '",f=It((e.escape||_t).source+"|"+h.source+"|"+(h===tt?pt:_t).source+"|"+(e.evaluate||_t).source+"|$","g"),p="//# sourceURL="+(Nt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++se+"]")+"\n";t.replace(f,function(e,n,r,i,s,l){return r||(r=i),d+=t.slice(c,l).replace(xt,sn),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+e.length,e}),d+="';\n";var v=Nt.call(e,"variable")&&e.variable;if(v){if(dt.test(v))throw new St("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace($,""):d).replace(U,"$1").replace(Y,"$1;"),d="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Qs(function(){return Et(l,p+"return "+d).apply(i,u)});if(g.source=d,Za(g))throw g;return g},jn.times=function(t,e){if((t=vs(t))<1||t>p)return[];var n=g,r=wn(t,g);e=uo(e),t-=g;for(var i=Ze(r,e);++n<t;)e(n);return i},jn.toFinite=ps,jn.toInteger=vs,jn.toLength=gs,jn.toLower=function(t){return bs(t).toLowerCase()},jn.toNumber=ms,jn.toSafeInteger=function(t){return t?lr(vs(t),-9007199254740991,p):0===t?t:0},jn.toString=bs,jn.toUpper=function(t){return bs(t).toUpperCase()},jn.trim=function(t,e,n){if((t=bs(t))&&(n||e===i))return Je(t);if(!t||!(e=ci(e)))return t;var r=vn(t),o=vn(e);return _i(r,nn(r,o),rn(r,o)+1).join("")},jn.trimEnd=function(t,e,n){if((t=bs(t))&&(n||e===i))return t.slice(0,gn(t)+1);if(!t||!(e=ci(e)))return t;var r=vn(t);return _i(r,0,rn(r,vn(e))+1).join("")},jn.trimStart=function(t,e,n){if((t=bs(t))&&(n||e===i))return t.replace(at,"");if(!t||!(e=ci(e)))return t;var r=vn(t);return _i(r,nn(r,vn(e))).join("")},jn.truncate=function(t,e){var n=30,r="...";if(es(e)){var o="separator"in e?e.separator:o;n="length"in e?vs(e.length):n,r="omission"in e?ci(e.omission):r}var a=(t=bs(t)).length;if(ln(t)){var s=vn(t);a=s.length}if(n>=a)return t;var l=n-pn(r);if(l<1)return r;var u=s?_i(s,0,l).join(""):t.slice(0,l);if(o===i)return u+r;if(s&&(l+=u.length-l),as(o)){if(t.slice(l).search(o)){var c,h=u;for(o.global||(o=It(o.source,bs(vt.exec(o))+"g")),o.lastIndex=0;c=o.exec(h);)var d=c.index;u=u.slice(0,d===i?l:d)}}else if(t.indexOf(ci(o),l)!=l){var f=u.lastIndexOf(o);f>-1&&(u=u.slice(0,f))}return u+r},jn.unescape=function(t){return(t=bs(t))&&K.test(t)?t.replace(X,mn):t},jn.uniqueId=function(t){var e=++Bt;return bs(t)+e},jn.upperCase=Ks,jn.upperFirst=Zs,jn.each=ba,jn.eachRight=wa,jn.first=Yo,ll(jn,(_l={},Cr(jn,function(t,e){Nt.call(jn.prototype,e)||(_l[e]=t)}),_l),{chain:!1}),jn.VERSION="4.17.21",Me(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){jn[t].placeholder=jn}),Me(["drop","take"],function(t,e){$n.prototype[t]=function(n){n=n===i?1:bn(vs(n),0);var r=this.__filtered__&&!e?new $n(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,g),type:t+(r.__dir__<0?"Right":"")}),r},$n.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),Me(["filter","map","takeWhile"],function(t,e){var n=e+1,r=1==n||3==n;$n.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:uo(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),Me(["head","last"],function(t,e){var n="take"+(e?"Right":"");$n.prototype[t]=function(){return this[n](1).value()[0]}}),Me(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");$n.prototype[t]=function(){return this.__filtered__?new $n(this):this[n](1)}}),$n.prototype.compact=function(){return this.filter(il)},$n.prototype.find=function(t){return this.filter(t).head()},$n.prototype.findLast=function(t){return this.reverse().find(t)},$n.prototype.invokeMap=Zr(function(t,e){return"function"==typeof t?new $n(this):this.map(function(n){return kr(n,t,e)})}),$n.prototype.reject=function(t){return this.filter(Na(uo(t)))},$n.prototype.slice=function(t,e){t=vs(t);var n=this;return n.__filtered__&&(t>0||e<0)?new $n(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=vs(e))<0?n.dropRight(-e):n.take(e-t)),n)},$n.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},$n.prototype.toArray=function(){return this.take(g)},Cr($n.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=jn[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);o&&(jn.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,l=e instanceof $n,u=s[0],c=l||$a(e),h=function(t){var e=o.apply(jn,Ne([t],s));return r&&d?e[0]:e};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var d=this.__chain__,f=!!this.__actions__.length,p=a&&!d,v=l&&!f;if(!a&&c){e=v?e:new $n(this);var g=t.apply(e,s);return g.__actions__.push({func:pa,args:[h],thisArg:i}),new Vn(g,d)}return p&&v?t.apply(this,s):(g=this.thru(h),p?r?g.value()[0]:g.value():g)})}),Me(["pop","push","shift","sort","splice","unshift"],function(t){var e=kt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);jn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply($a(i)?i:[],t)}return this[n](function(n){return e.apply($a(n)?n:[],t)})}}),Cr($n.prototype,function(t,e){var n=jn[e];if(n){var r=n.name+"";Nt.call(An,r)||(An[r]=[]),An[r].push({name:e,func:n})}}),An[ji(i,2).name]=[{name:"wrapper",func:i}],$n.prototype.clone=function(){var t=new $n(this.__wrapped__);return t.__actions__=Li(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Li(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Li(this.__views__),t},$n.prototype.reverse=function(){if(this.__filtered__){var t=new $n(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},$n.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=$a(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=wn(e,t+a);break;case"takeRight":t=bn(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,h=c.length,d=0,f=wn(l,this.__takeCount__);if(!n||!r&&i==l&&f==l)return vi(t,this.__actions__);var p=[];t:for(;l--&&d<f;){for(var v=-1,g=t[u+=e];++v<h;){var m=c[v],y=m.iteratee,b=m.type,w=y(g);if(2==b)g=w;else if(!w){if(1==b)continue t;break t}}p[d++]=g}return p},jn.prototype.at=va,jn.prototype.chain=function(){return fa(this)},jn.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},jn.prototype.next=function(){this.__values__===i&&(this.__values__=fs(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},jn.prototype.plant=function(t){for(var e,n=this;n instanceof Gn;){var r=Ho(n);r.__index__=0,r.__values__=i,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},jn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof $n){var e=t;return this.__actions__.length&&(e=new $n(this)),(e=e.reverse()).__actions__.push({func:pa,args:[ea],thisArg:i}),new Vn(e,this.__chain__)}return this.thru(ea)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return vi(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,Jt&&(jn.prototype[Jt]=function(){return this}),jn}();ve._=yn,(r=function(){return yn}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},2614:(t,e)=>{"use strict";e.__esModule=!0,e.wrapHelper=function(t,e){if("function"!=typeof t)return t;return function(){return arguments[arguments.length-1]=e(arguments[arguments.length-1]),t.apply(this,arguments)}}},2849:(t,e)=>{"use strict";e.__esModule=!0,e.extend=a,e.indexOf=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},e.escapeExpression=function(t){if("string"!=typeof t){if(t&&t.toHTML)return t.toHTML();if(null==t)return"";if(!t)return t+"";t=""+t}if(!i.test(t))return t;return t.replace(r,o)},e.isEmpty=function(t){return!t&&0!==t||!(!u(t)||0!==t.length)},e.createFrame=function(t){var e=a({},t);return e._parent=t,e},e.blockParams=function(t,e){return t.path=e,t},e.appendContextPath=function(t,e){return(t?t+".":"")+e};var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},r=/[&<>"'`=]/g,i=/[&<>"'`=]/;function o(t){return n[t]}function a(t){for(var e=1;e<arguments.length;e++)for(var n in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],n)&&(t[n]=arguments[e][n]);return t}var s=Object.prototype.toString;e.toString=s;var l=function(t){return"function"==typeof t};l(/x/)&&(e.isFunction=l=function(t){return"function"==typeof t&&"[object Function]"===s.call(t)}),e.isFunction=l;var u=Array.isArray||function(t){return!(!t||"object"!=typeof t)&&"[object Array]"===s.call(t)};e.isArray=u},2871:(t,e,n)=>{"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.HandlebarsEnvironment=h;var i=n(2849),o=r(n(3769)),a=n(2277),s=n(5940),l=r(n(566)),u=n(3865);e.VERSION="4.7.8";e.COMPILER_REVISION=8;e.LAST_COMPATIBLE_COMPILER_REVISION=7;e.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var c="[object Object]";function h(t,e,n){this.helpers=t||{},this.partials=e||{},this.decorators=n||{},a.registerDefaultHelpers(this),s.registerDefaultDecorators(this)}h.prototype={constructor:h,logger:l.default,log:l.default.log,registerHelper:function(t,e){if(i.toString.call(t)===c){if(e)throw new o.default("Arg not supported with multiple helpers");i.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if(i.toString.call(t)===c)i.extend(this.partials,t);else{if(void 0===e)throw new o.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if(i.toString.call(t)===c){if(e)throw new o.default("Arg not supported with multiple decorators");i.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){u.resetLoggedProperties()}};var d=l.default.log;e.log=d,e.createFrame=i.createFrame,e.logger=l.default},2915:(t,e,n)=>{"use strict";t.exports=n.p+"images/lay7.afa3a4fa.png"},3095:(t,e,n)=>{"use strict";t.exports=n.p+"images/lay3.f44c8385.png"},3585:(t,e,n)=>{"use strict";t.exports=n.p+"images/column-none.a609dd43.png"},3598:(t,e,n)=>{"use strict";t.exports=n.p+"images/lay2.7b0fa581.png"},3738:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},3769:(t,e)=>{"use strict";e.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(t,e){var i=e&&e.loc,o=void 0,a=void 0,s=void 0,l=void 0;i&&(o=i.start.line,a=i.end.line,s=i.start.column,l=i.end.column,t+=" - "+o+":"+s);for(var u=Error.prototype.constructor.call(this,t),c=0;c<n.length;c++)this[n[c]]=u[n[c]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{i&&(this.lineNumber=o,this.endLineNumber=a,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:l,enumerable:!0})):(this.column=s,this.endColumn=l))}catch(t){}}r.prototype=new Error,e.default=r,t.exports=e.default},3865:(t,e,n)=>{"use strict";e.__esModule=!0,e.createProtoAccessControl=function(t){var e=Object.create(null);e.constructor=!1,e.__defineGetter__=!1,e.__defineSetter__=!1,e.__lookupGetter__=!1;var n=Object.create(null);return n.__proto__=!1,{properties:{whitelist:i.createNewLookupObject(n,t.allowedProtoProperties),defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:i.createNewLookupObject(e,t.allowedProtoMethods),defaultValue:t.allowProtoMethodsByDefault}}},e.resultIsAllowed=function(t,e,n){return l("function"==typeof t?e.methods:e.properties,n)},e.resetLoggedProperties=function(){Object.keys(s).forEach(function(t){delete s[t]})};var r,i=n(9726),o=n(566),a=(r=o)&&r.__esModule?r:{default:r},s=Object.create(null);function l(t,e){return void 0!==t.whitelist[e]?!0===t.whitelist[e]:void 0!==t.defaultValue?t.defaultValue:(function(t){!0!==s[t]&&(s[t]=!0,a.default.log("error",'Handlebars: Access has been denied to resolve the property "'+t+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(e),!1)}},4353:(t,e,n)=>{"use strict";e.__esModule=!0;var r,i=n(3769),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t){t.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new o.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},t.exports=e.default},4373:t=>{t.exports=function(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function t(){for(;n.length;)if((r=n.pop())in e)return t.value=r,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},4633:(t,e,n)=>{var r=n(5172),i=n(6993),o=n(5869),a=n(887),s=n(1791),l=n(4373),u=n(579);function c(){"use strict";var e=i(),n=e.m(c),h=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function d(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))}var f={throw:1,return:2,break:3,continue:3};function p(t){var e,n;return function(r){e||(e={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(t,e){return n(r.a,f[t],e)},delegateYield:function(t,i,o){return e.resultName=i,n(r.d,u(t),o)},finish:function(t){return n(r.f,t)}},n=function(t,n,i){r.p=e.prev,r.n=e.next;try{return t(n,i)}finally{e.next=r.n}}),e.resultName&&(e[e.resultName]=r.v,e.resultName=void 0),e.sent=r.v,e.next=r.n;try{return t.call(this,e)}finally{r.p=e.prev,r.n=e.next}}}return(t.exports=c=function(){return{wrap:function(t,n,r,i){return e.w(p(t),n,r,i&&i.reverse())},isGeneratorFunction:d,mark:e.m,awrap:function(t,e){return new r(t,e)},AsyncIterator:s,async:function(t,e,n,r,i){return(d(e)?a:o)(p(t),e,n,r,i)},keys:l,values:u}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports},4756:(t,e,n)=>{var r=n(4633)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},5172:t=>{t.exports=function(t,e){this.v=t,this.k=e},t.exports.__esModule=!0,t.exports.default=t.exports},5300:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t){t.registerHelper("log",function(){for(var e=[void 0],n=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)e.push(arguments[r]);var i=1;null!=n.hash.level?i=n.hash.level:n.data&&null!=n.data.level&&(i=n.data.level),e[0]=i,t.log.apply(t,e)})},t.exports=e.default},5546:t=>{function e(n,r,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(n){a=0}t.exports=e=function(t,n,r,i){function o(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?a?a(t,n,{value:r,enumerable:!i,configurable:!i,writable:!i}):t[n]=r:(o("next",0),o("throw",1),o("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r,i,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},5594:t=>{"use strict";t.exports=e},5740:e=>{"use strict";e.exports=t},5869:(t,e,n)=>{var r=n(887);t.exports=function(t,e,n,i,o){var a=r(t,e,n,i,o);return a.next().then(function(t){return t.done?t.value:a.next()})},t.exports.__esModule=!0,t.exports.default=t.exports},5940:(t,e,n)=>{"use strict";e.__esModule=!0,e.registerDefaultDecorators=function(t){o.default(t)};var r,i=n(7430),o=(r=i)&&r.__esModule?r:{default:r}},6097:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(2849);e.default=function(t){t.registerHelper("blockHelperMissing",function(e,n){var i=n.inverse,o=n.fn;if(!0===e)return o(this);if(!1===e||null==e)return i(this);if(r.isArray(e))return e.length>0?(n.ids&&(n.ids=[n.name]),t.helpers.each(e,n)):i(this);if(n.data&&n.ids){var a=r.createFrame(n.data);a.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:a}}return o(e,n)})},t.exports=e.default},6201:(t,e)=>{"use strict";e.__esModule=!0;var n=function(){var t={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(t,e,n,r,i,o,a){var s=o.length-1;switch(i){case 1:return o[s-1];case 2:this.$=r.prepareProgram(o[s]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:case 40:case 41:this.$=o[s];break;case 9:this.$={type:"CommentStatement",value:r.stripComment(o[s]),strip:r.stripFlags(o[s],o[s]),loc:r.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:o[s],value:o[s],loc:r.locInfo(this._$)};break;case 11:this.$=r.prepareRawBlock(o[s-2],o[s-1],o[s],this._$);break;case 12:this.$={path:o[s-3],params:o[s-2],hash:o[s-1]};break;case 13:this.$=r.prepareBlock(o[s-3],o[s-2],o[s-1],o[s],!1,this._$);break;case 14:this.$=r.prepareBlock(o[s-3],o[s-2],o[s-1],o[s],!0,this._$);break;case 15:this.$={open:o[s-5],path:o[s-4],params:o[s-3],hash:o[s-2],blockParams:o[s-1],strip:r.stripFlags(o[s-5],o[s])};break;case 16:case 17:this.$={path:o[s-4],params:o[s-3],hash:o[s-2],blockParams:o[s-1],strip:r.stripFlags(o[s-5],o[s])};break;case 18:this.$={strip:r.stripFlags(o[s-1],o[s-1]),program:o[s]};break;case 19:var l=r.prepareBlock(o[s-2],o[s-1],o[s],o[s],!1,this._$),u=r.prepareProgram([l],o[s-1].loc);u.chained=!0,this.$={strip:o[s-2].strip,program:u,chain:!0};break;case 21:this.$={path:o[s-1],strip:r.stripFlags(o[s-2],o[s])};break;case 22:case 23:this.$=r.prepareMustache(o[s-3],o[s-2],o[s-1],o[s-4],r.stripFlags(o[s-4],o[s]),this._$);break;case 24:this.$={type:"PartialStatement",name:o[s-3],params:o[s-2],hash:o[s-1],indent:"",strip:r.stripFlags(o[s-4],o[s]),loc:r.locInfo(this._$)};break;case 25:this.$=r.preparePartialBlock(o[s-2],o[s-1],o[s],this._$);break;case 26:this.$={path:o[s-3],params:o[s-2],hash:o[s-1],strip:r.stripFlags(o[s-4],o[s])};break;case 29:this.$={type:"SubExpression",path:o[s-3],params:o[s-2],hash:o[s-1],loc:r.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:o[s],loc:r.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:r.id(o[s-2]),value:o[s],loc:r.locInfo(this._$)};break;case 32:this.$=r.id(o[s-1]);break;case 35:this.$={type:"StringLiteral",value:o[s],original:o[s],loc:r.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(o[s]),original:Number(o[s]),loc:r.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===o[s],original:"true"===o[s],loc:r.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:r.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:r.locInfo(this._$)};break;case 42:this.$=r.preparePath(!0,o[s],this._$);break;case 43:this.$=r.preparePath(!1,o[s],this._$);break;case 44:o[s-2].push({part:r.id(o[s]),original:o[s],separator:o[s-1]}),this.$=o[s-2];break;case 45:this.$=[{part:r.id(o[s]),original:o[s]}];break;case 46:case 48:case 50:case 58:case 64:case 70:case 78:case 82:case 86:case 90:case 94:this.$=[];break;case 47:case 49:case 51:case 59:case 65:case 71:case 79:case 83:case 87:case 91:case 95:case 99:case 101:o[s-1].push(o[s]);break;case 98:case 100:this.$=[o[s]]}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(t,e){throw new Error(t)},parse:function(t){var e=this,n=[0],r=[null],i=[],o=this.table,a="",s=0,l=0,u=0;this.lexer.setInput(t),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var c=this.lexer.yylloc;i.push(c);var h=this.lexer.options&&this.lexer.options.ranges;function d(){var t;return"number"!=typeof(t=e.lexer.lex()||1)&&(t=e.symbols_[t]||t),t}"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var f,p,v,g,m,y,b,w,C,_={};;){if(v=n[n.length-1],this.defaultActions[v]?g=this.defaultActions[v]:(null==f&&(f=d()),g=o[v]&&o[v][f]),void 0===g||!g.length||!g[0]){var x="";if(!u){for(y in C=[],o[v])this.terminals_[y]&&y>2&&C.push("'"+this.terminals_[y]+"'");x=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+C.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(x,{text:this.lexer.match,token:this.terminals_[f]||f,line:this.lexer.yylineno,loc:c,expected:C})}}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+f);switch(g[0]){case 1:n.push(f),r.push(this.lexer.yytext),i.push(this.lexer.yylloc),n.push(g[1]),f=null,p?(f=p,p=null):(l=this.lexer.yyleng,a=this.lexer.yytext,s=this.lexer.yylineno,c=this.lexer.yylloc,u>0&&u--);break;case 2:if(b=this.productions_[g[1]][1],_.$=r[r.length-b],_._$={first_line:i[i.length-(b||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(b||1)].first_column,last_column:i[i.length-1].last_column},h&&(_._$.range=[i[i.length-(b||1)].range[0],i[i.length-1].range[1]]),void 0!==(m=this.performAction.call(_,a,l,s,this.yy,g[1],r,i)))return m;b&&(n=n.slice(0,-1*b*2),r=r.slice(0,-1*b),i=i.slice(0,-1*b)),n.push(this.productions_[g[1]][0]),r.push(_.$),i.push(_._$),w=o[n[n.length-2]][n[n.length-1]],n.push(w);break;case 3:return!0}}return!0}},e=function(){var t={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t){return this._input=t,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e-1),this.offset-=e;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this},more:function(){return this._more=!0,this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},next:function(){if(this.done)return this.EOF;var t,e,n,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),a=0;a<o.length&&(!(n=this._input.match(this.rules[o[a]]))||e&&!(n[0].length>e[0].length)||(e=n,r=a,this.options.flex));a++);return e?((i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],t=this.performAction.call(this,this.yy,this,o[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),t||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return void 0!==t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)},options:{},performAction:function(t,e,n,r){function i(t,n){return e.yytext=e.yytext.substring(t,e.yyleng-n+t)}switch(n){case 0:if("\\\\"===e.yytext.slice(-2)?(i(0,1),this.begin("mu")):"\\"===e.yytext.slice(-1)?(i(0,1),this.begin("emu")):this.begin("mu"),e.yytext)return 15;break;case 1:case 5:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(i(5,9),"END_RAW_BLOCK");case 6:case 22:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:case 23:return 48;case 21:this.unput(e.yytext),this.popState(),this.begin("com");break;case 24:return 73;case 25:case 26:case 41:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return e.yytext=i(1,2).replace(/\\"/g,'"'),80;case 32:return e.yytext=i(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 42:return e.yytext=e.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return t}();function n(){this.yy={}}return t.lexer=e,n.prototype=t,t.Parser=n,new n}();e.default=n,t.exports=e.default},6312:(t,e,n)=>{"use strict";t.exports=n.p+"images/indicator-card.b7982b59.png"},6465:(t,e,n)=>{"use strict";t.exports=n.p+"images/line-none.5b0a596f.png"},6727:(t,e,n)=>{"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(2871),o=r(n(3769)),a=n(2849),s=r(n(9632));function l(t){this.value=t}function u(){}u.prototype={nameLookup:function(t,e){return this.internalNameLookup(t,e)},depthedLookup:function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},compilerInfo:function(){var t=i.COMPILER_REVISION;return[t,i.REVISION_CHANGES[t]]},appendToBuffer:function(t,e,n){return a.isArray(t)||(t=[t]),t=this.source.wrap(t,e),this.environment.isSimple?["return ",t,";"]:n?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(t,e){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(e),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(t,e,n,r){this.environment=t,this.options=e,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!r,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,e),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var i=t.opcodes,a=void 0,s=void 0,l=void 0,u=void 0;for(l=0,u=i.length;l<u;l++)a=i[l],this.source.currentLocation=a.loc,s=s||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=s,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new o.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),";\n"]),this.decorators.push("return fn;"),r?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var c=this.createFunctionContext(r);if(this.isChild)return c;var h={compiler:this.compilerInfo(),main:c};this.decorators&&(h.main_d=this.decorators,h.useDecorators=!0);var d=this.context,f=d.programs,p=d.decorators;for(l=0,u=f.length;l<u;l++)f[l]&&(h[l]=f[l],p[l]&&(h[l+"_d"]=p[l],h.useDecorators=!0));return this.environment.usePartial&&(h.usePartial=!0),this.options.data&&(h.useData=!0),this.useDepths&&(h.useDepths=!0),this.useBlockParams&&(h.useBlockParams=!0),this.options.compat&&(h.compat=!0),r?h.compilerOptions=this.options:(h.compiler=JSON.stringify(h.compiler),this.source.currentLocation={start:{line:1,column:0}},h=this.objectLiteral(h),e.srcName?(h=h.toStringWithSourceMap({file:e.destName})).map=h.map&&h.map.toString():h=h.toString()),h},preamble:function(){this.lastContext=0,this.source=new s.default(this.options.srcName),this.decorators=new s.default(this.options.srcName)},createFunctionContext:function(t){var e=this,n="",r=this.stackVars.concat(this.registers.list);r.length>0&&(n+=", "+r.join(", "));var i=0;Object.keys(this.aliases).forEach(function(t){var r=e.aliases[t];r.children&&r.referenceCount>1&&(n+=", alias"+ ++i+"="+t,r.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var o=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths");var a=this.mergeSource(n);return t?(o.push(a),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),") {\n ",a,"}"])},mergeSource:function(t){var e=this.environment.isSimple,n=!this.forceBuffer,r=void 0,i=void 0,o=void 0,a=void 0;return this.source.each(function(t){t.appendToBuffer?(o?t.prepend(" + "):o=t,a=t):(o&&(i?o.prepend("buffer += "):r=!0,a.add(";"),o=a=void 0),i=!0,e||(n=!1))}),n?o?(o.prepend("return "),a.add(";")):i||this.source.push('return "";'):(t+=", buffer = "+(r?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),a.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(r?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(t){var e=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(t,0,n);var r=this.popStack();n.splice(1,0,r),this.push(this.source.functionCall(e,"call",n))},ambiguousBlockValue:function(){var t=this.aliasable("container.hooks.blockHelperMissing"),e=[this.contextName(0)];this.setupHelperArgs("",0,e,!0),this.flushInline();var n=this.topStack();e.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(t,"call",e),"}"])},appendContent:function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},append:function(){if(this.isInline())this.replaceStack(function(t){return[" != null ? ",t,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(t){this.lastContext=t},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(t,e,n,r){var i=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(t[i++])),this.resolvePath("context",t,i,e,n)},lookupBlockParam:function(t,e){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",e,1)},lookupData:function(t,e,n){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",e,0,!0,n)},resolvePath:function(t,e,n,r,i){var o=this;if(this.options.strict||this.options.assumeObjects)this.push(function(t,e,n,r,i){var o=e.popStack(),a=n.length;t&&a--;for(;r<a;r++)o=e.nameLookup(o,n[r],i);return t?[e.aliasable("container.strict"),"(",o,", ",e.quotedString(n[r]),", ",JSON.stringify(e.source.currentLocation)," )"]:o}(this.options.strict&&i,this,e,n,t));else for(var a=e.length;n<a;n++)this.replaceStack(function(i){var a=o.nameLookup(i,e[n],t);return r?[" && ",a]:[" != null ? ",a," : ",i]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(t,e){this.pushContext(),this.pushString(e),"SubExpression"!==e&&("string"==typeof t?this.pushString(t):this.pushStackLiteral(t))},emptyHash:function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},pushString:function(t){this.pushStackLiteral(this.quotedString(t))},pushLiteral:function(t){this.pushStackLiteral(t)},pushProgram:function(t){null!=t?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},registerDecorator:function(t,e){var n=this.nameLookup("decorators",e,"decorator"),r=this.setupHelperArgs(e,t);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",r])," || fn;"])},invokeHelper:function(t,e,n){var r=this.popStack(),i=this.setupHelper(t,e),o=[];n&&o.push(i.name),o.push(r),this.options.strict||o.push(this.aliasable("container.hooks.helperMissing"));var a=["(",this.itemsSeparatedBy(o,"||"),")"],s=this.source.functionCall(a,"call",i.callParams);this.push(s)},itemsSeparatedBy:function(t,e){var n=[];n.push(t[0]);for(var r=1;r<t.length;r++)n.push(e,t[r]);return n},invokeKnownHelper:function(t,e){var n=this.setupHelper(t,e);this.push(this.source.functionCall(n.name,"call",n.callParams))},invokeAmbiguous:function(t,e){this.useRegister("helper");var n=this.popStack();this.emptyHash();var r=this.setupHelper(0,t,e),i=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",t,"helper")," || ",n,")"];this.options.strict||(i[0]="(helper = ",i.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",i,r.paramsInit?["),(",r.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",r.callParams)," : helper))"])},invokePartial:function(t,e,n){var r=[],i=this.setupParams(e,1,r);t&&(e=this.popStack(),delete i.name),n&&(i.indent=JSON.stringify(n)),i.helpers="helpers",i.partials="partials",i.decorators="container.decorators",t?r.unshift(e):r.unshift(this.nameLookup("partials",e,"partial")),this.options.compat&&(i.depths="depths"),i=this.objectLiteral(i),r.push(i),this.push(this.source.functionCall("container.invokePartial","",r))},assignToHash:function(t){var e=this.popStack(),n=void 0,r=void 0,i=void 0;this.trackIds&&(i=this.popStack()),this.stringParams&&(r=this.popStack(),n=this.popStack());var o=this.hash;n&&(o.contexts[t]=n),r&&(o.types[t]=r),i&&(o.ids[t]=i),o.values[t]=e},pushId:function(t,e,n){"BlockParam"===t?this.pushStackLiteral("blockParams["+e[0]+"].path["+e[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):"PathExpression"===t?this.pushString(e):"SubExpression"===t?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:u,compileChildren:function(t,e){for(var n=t.children,r=void 0,i=void 0,o=0,a=n.length;o<a;o++){r=n[o],i=new this.compiler;var s=this.matchExistingProgram(r);if(null==s){this.context.programs.push("");var l=this.context.programs.length;r.index=l,r.name="program"+l,this.context.programs[l]=i.compile(r,e,this.context,!this.precompile),this.context.decorators[l]=i.decorators,this.context.environments[l]=r,this.useDepths=this.useDepths||i.useDepths,this.useBlockParams=this.useBlockParams||i.useBlockParams,r.useDepths=this.useDepths,r.useBlockParams=this.useBlockParams}else r.index=s.index,r.name="program"+s.index,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams}},matchExistingProgram:function(t){for(var e=0,n=this.context.environments.length;e<n;e++){var r=this.context.environments[e];if(r&&r.equals(t))return r}},programExpression:function(t){var e=this.environment.children[t],n=[e.index,"data",e.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),"container.program("+n.join(", ")+")"},useRegister:function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},push:function(t){return t instanceof l||(t=this.source.wrap(t)),this.inlineStack.push(t),t},pushStackLiteral:function(t){this.push(new l(t))},pushSource:function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},replaceStack:function(t){var e=["("],n=void 0,r=void 0,i=void 0;if(!this.isInline())throw new o.default("replaceStack on non-inline");var a=this.popStack(!0);if(a instanceof l)e=["(",n=[a.value]],i=!0;else{r=!0;var s=this.incrStack();e=["((",this.push(s)," = ",a,")"],n=this.topStack()}var u=t.call(this,n);i||this.popStack(),r&&this.stackSlot--,this.push(e.concat(u,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var t=this.inlineStack;this.inlineStack=[];for(var e=0,n=t.length;e<n;e++){var r=t[e];if(r instanceof l)this.compileStack.push(r);else{var i=this.incrStack();this.pushSource([i," = ",r,";"]),this.compileStack.push(i)}}},isInline:function(){return this.inlineStack.length},popStack:function(t){var e=this.isInline(),n=(e?this.inlineStack:this.compileStack).pop();if(!t&&n instanceof l)return n.value;if(!e){if(!this.stackSlot)throw new o.default("Invalid stack pop");this.stackSlot--}return n},topStack:function(){var t=this.isInline()?this.inlineStack:this.compileStack,e=t[t.length-1];return e instanceof l?e.value:e},contextName:function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},quotedString:function(t){return this.source.quotedString(t)},objectLiteral:function(t){return this.source.objectLiteral(t)},aliasable:function(t){var e=this.aliases[t];return e?(e.referenceCount++,e):((e=this.aliases[t]=this.source.wrap(t)).aliasable=!0,e.referenceCount=1,e)},setupHelper:function(t,e,n){var r=[];return{params:r,paramsInit:this.setupHelperArgs(e,t,r,n),name:this.nameLookup("helpers",e,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(r)}},setupParams:function(t,e,n){var r={},i=[],o=[],a=[],s=!n,l=void 0;s&&(n=[]),r.name=this.quotedString(t),r.hash=this.popStack(),this.trackIds&&(r.hashIds=this.popStack()),this.stringParams&&(r.hashTypes=this.popStack(),r.hashContexts=this.popStack());var u=this.popStack(),c=this.popStack();(c||u)&&(r.fn=c||"container.noop",r.inverse=u||"container.noop");for(var h=e;h--;)l=this.popStack(),n[h]=l,this.trackIds&&(a[h]=this.popStack()),this.stringParams&&(o[h]=this.popStack(),i[h]=this.popStack());return s&&(r.args=this.source.generateArray(n)),this.trackIds&&(r.ids=this.source.generateArray(a)),this.stringParams&&(r.types=this.source.generateArray(o),r.contexts=this.source.generateArray(i)),this.options.data&&(r.data="data"),this.useBlockParams&&(r.blockParams="blockParams"),r},setupHelperArgs:function(t,e,n,r){var i=this.setupParams(t,e,n);return i.loc=JSON.stringify(this.source.currentLocation),i=this.objectLiteral(i),r?(this.useRegister("options"),n.push("options"),["options=",i]):n?(n.push(i),""):i}},function(){for(var t="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),e=u.RESERVED_WORDS={},n=0,r=t.length;n<r;n++)e[t[n]]=!0}(),u.isValidJavaScriptVariableName=function(t){return!u.RESERVED_WORDS[t]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(t)},e.default=u,t.exports=e.default},6785:(t,e,n)=>{"use strict";e.__esModule=!0;var r,i=n(2849),o=n(3769),a=(r=o)&&r.__esModule?r:{default:r};e.default=function(t){t.registerHelper("each",function(t,e){if(!e)throw new a.default("Must pass iterator to #each");var n,r=e.fn,o=e.inverse,s=0,l="",u=void 0,c=void 0;function h(e,n,o){u&&(u.key=e,u.index=n,u.first=0===n,u.last=!!o,c&&(u.contextPath=c+e)),l+=r(t[e],{data:u,blockParams:i.blockParams([t[e],e],[c+e,null])})}if(e.data&&e.ids&&(c=i.appendContextPath(e.data.contextPath,e.ids[0])+"."),i.isFunction(t)&&(t=t.call(this)),e.data&&(u=i.createFrame(e.data)),t&&"object"==typeof t)if(i.isArray(t))for(var d=t.length;s<d;s++)s in t&&h(s,s,s===t.length-1);else if("function"==typeof Symbol&&t[Symbol.iterator]){for(var f=[],p=t[Symbol.iterator](),v=p.next();!v.done;v=p.next())f.push(v.value);for(d=(t=f).length;s<d;s++)h(s,s,s===t.length-1)}else n=void 0,Object.keys(t).forEach(function(t){void 0!==n&&h(n,s-1),n=t,s++}),void 0!==n&&h(n,s-1,!0);return 0===s&&(l=o(this)),l})},t.exports=e.default},6993:(t,e,n)=>{var r=n(5546);function i(){var e,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.toStringTag||"@@toStringTag";function l(t,i,o,a){var s=i&&i.prototype instanceof c?i:c,l=Object.create(s.prototype);return r(l,"_invoke",function(t,r,i){var o,a,s,l=0,c=i||[],h=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return o=t,a=0,s=e,d.n=n,u}};function f(t,r){for(a=t,s=r,n=0;!h&&l&&!i&&n<c.length;n++){var i,o=c[n],f=d.p,p=o[2];t>3?(i=p===r)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=f&&((i=t<2&&f<o[1])?(a=0,d.v=r,d.n=o[1]):f<p&&(i=t<3||o[0]>r||r>p)&&(o[4]=t,o[5]=r,d.n=p,a=0))}if(i||t>1)return u;throw h=!0,r}return function(i,c,p){if(l>1)throw TypeError("Generator is already running");for(h&&1===c&&f(c,p),a=c,s=p;(n=a<2?e:s)||!h;){o||(a?a<3?(a>1&&(d.n=-1),f(a,s)):d.n=s:d.v=s);try{if(l=2,o){if(a||(i="next"),n=o[i]){if(!(n=n.call(o,s)))throw TypeError("iterator result is not an object");if(!n.done)return n;s=n.value,a<2&&(a=0)}else 1===a&&(n=o.return)&&n.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((n=(h=d.n<0)?s:t.call(r,d))!==u)break}catch(t){o=e,a=1,s=t}finally{l=1}}return{value:n,done:h}}}(t,o,a),!0),l}var u={};function c(){}function h(){}function d(){}n=Object.getPrototypeOf;var f=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),p=d.prototype=c.prototype=Object.create(f);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,r(t,s,"GeneratorFunction")),t.prototype=Object.create(p),t}return h.prototype=d,r(p,"constructor",d),r(d,"constructor",h),h.displayName="GeneratorFunction",r(d,s,"GeneratorFunction"),r(p),r(p,s,"Generator"),r(p,a,function(){return this}),r(p,"toString",function(){return"[object Generator]"}),(t.exports=i=function(){return{w:l,m:v}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},7430:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(2849);e.default=function(t){t.registerDecorator("inline",function(t,e,n,i){var o=t;return e.partials||(e.partials={},o=function(i,o){var a=n.partials;n.partials=r.extend({},a,e.partials);var s=t(i,o);return n.partials=a,s}),e.partials[i.args[0]]=i.fn,o})},t.exports=e.default},7466:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t){t.registerHelper("lookup",function(t,e,n){return t?n.lookupProperty(t,e):t})},t.exports=e.default},7624:(t,e,n)=>{"use strict";e.__esModule=!0,e.checkRevision=function(t){var e=t&&t[0]||1,n=s.COMPILER_REVISION;if(e>=s.LAST_COMPATIBLE_COMPILER_REVISION&&e<=s.COMPILER_REVISION)return;if(e<s.LAST_COMPATIBLE_COMPILER_REVISION){var r=s.REVISION_CHANGES[n],i=s.REVISION_CHANGES[e];throw new a.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+i+").")}throw new a.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")},e.template=function(t,e){if(!e)throw new a.default("No environment passed to template");if(!t||!t.main)throw new a.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var n=t.compiler&&7===t.compiler[0];var r={strict:function(t,e,n){if(!t||!(e in t))throw new a.default('"'+e+'" not defined in '+t,{loc:n});return r.lookupProperty(t,e)},lookupProperty:function(t,e){var n=t[e];return null==n||Object.prototype.hasOwnProperty.call(t,e)||c.resultIsAllowed(n,r.protoAccessControl,e)?n:void 0},lookup:function(t,e){for(var n=t.length,i=0;i<n;i++){if(null!=(t[i]&&r.lookupProperty(t[i],e)))return t[i][e]}},lambda:function(t,e){return"function"==typeof t?t.call(e):t},escapeExpression:i.escapeExpression,invokePartial:function(n,r,o){o.hash&&(r=i.extend({},r,o.hash),o.ids&&(o.ids[0]=!0)),n=e.VM.resolvePartial.call(this,n,r,o);var s=i.extend({},o,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),l=e.VM.invokePartial.call(this,n,r,s);if(null==l&&e.compile&&(o.partials[o.name]=e.compile(n,t.compilerOptions,e),l=o.partials[o.name](r,s)),null!=l){if(o.indent){for(var u=l.split("\n"),c=0,h=u.length;c<h&&(u[c]||c+1!==h);c++)u[c]=o.indent+u[c];l=u.join("\n")}return l}throw new a.default("The partial "+o.name+" could not be compiled when running in runtime-only mode")},fn:function(e){var n=t[e];return n.decorator=t[e+"_d"],n},programs:[],program:function(t,e,n,r,i){var o=this.programs[t],a=this.fn(t);return e||i||r||n?o=h(this,t,a,e,n,r,i):o||(o=this.programs[t]=h(this,t,a)),o},data:function(t,e){for(;t&&e--;)t=t._parent;return t},mergeIfNeeded:function(t,e){var n=t||e;return t&&e&&t!==e&&(n=i.extend({},e,t)),n},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function o(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=n.data;o._setup(n),!n.partial&&t.useData&&(i=function(t,e){e&&"root"in e||((e=e?s.createFrame(e):{}).root=t);return e}(e,i));var a=void 0,l=t.useBlockParams?[]:void 0;function u(e){return""+t.main(r,e,r.helpers,r.partials,i,l,a)}return t.useDepths&&(a=n.depths?e!=n.depths[0]?[e].concat(n.depths):n.depths:[e]),(u=f(t.main,u,r,n.depths||[],i,l))(e,n)}return o.isTop=!0,o._setup=function(o){if(o.partial)r.protoAccessControl=o.protoAccessControl,r.helpers=o.helpers,r.partials=o.partials,r.decorators=o.decorators,r.hooks=o.hooks;else{var a=i.extend({},e.helpers,o.helpers);!function(t,e){Object.keys(t).forEach(function(n){var r=t[n];t[n]=function(t,e){var n=e.lookupProperty;return u.wrapHelper(t,function(t){return i.extend({lookupProperty:n},t)})}(r,e)})}(a,r),r.helpers=a,t.usePartial&&(r.partials=r.mergeIfNeeded(o.partials,e.partials)),(t.usePartial||t.useDecorators)&&(r.decorators=i.extend({},e.decorators,o.decorators)),r.hooks={},r.protoAccessControl=c.createProtoAccessControl(o);var s=o.allowCallsToHelperMissing||n;l.moveHelperToHooks(r,"helperMissing",s),l.moveHelperToHooks(r,"blockHelperMissing",s)}},o._child=function(e,n,i,o){if(t.useBlockParams&&!i)throw new a.default("must pass block params");if(t.useDepths&&!o)throw new a.default("must pass parent depths");return h(r,e,t[e],n,0,i,o)},o},e.wrapProgram=h,e.resolvePartial=function(t,e,n){t?t.call||n.name||(n.name=t,t=n.partials[t]):t="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name];return t},e.invokePartial=function(t,e,n){var r=n.data&&n.data["partial-block"];n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var o=void 0;n.fn&&n.fn!==d&&function(){n.data=s.createFrame(n.data);var t=n.fn;o=n.data["partial-block"]=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return n.data=s.createFrame(n.data),n.data["partial-block"]=r,t(e,n)},t.partials&&(n.partials=i.extend({},n.partials,t.partials))}();void 0===t&&o&&(t=o);if(void 0===t)throw new a.default("The partial "+n.name+" could not be found");if(t instanceof Function)return t(e,n)},e.noop=d;var r,i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(2849)),o=n(3769),a=(r=o)&&r.__esModule?r:{default:r},s=n(2871),l=n(2277),u=n(2614),c=n(3865);function h(t,e,n,r,i,o,a){function s(e){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=a;return!a||e==a[0]||e===t.nullContext&&null===a[0]||(s=[e].concat(a)),n(t,e,t.helpers,t.partials,i.data||r,o&&[i.blockParams].concat(o),s)}return(s=f(n,s,t,a,r,o)).program=e,s.depth=a?a.length:0,s.blockParams=i||0,s}function d(){return""}function f(t,e,n,r,o,a){if(t.decorator){var s={};e=t.decorator(e,s,n,r&&r[0],o,a,r),i.extend(e,s)}return e}},8425:(t,e,n)=>{"use strict";e.__esModule=!0,e.SourceLocation=function(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}},e.id=function(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t},e.stripFlags=function(t,e){return{open:"~"===t.charAt(2),close:"~"===e.charAt(e.length-3)}},e.stripComment=function(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},e.preparePath=function(t,e,n){n=this.locInfo(n);for(var r=t?"@":"",i=[],a=0,s=0,l=e.length;s<l;s++){var u=e[s].part,c=e[s].original!==u;if(r+=(e[s].separator||"")+u,c||".."!==u&&"."!==u&&"this"!==u)i.push(u);else{if(i.length>0)throw new o.default("Invalid path: "+r,{loc:n});".."===u&&a++}}return{type:"PathExpression",data:t,depth:a,parts:i,original:r,loc:n}},e.prepareMustache=function(t,e,n,r,i,o){var a=r.charAt(3)||r.charAt(2),s="{"!==a&&"&"!==a;return{type:/\*/.test(r)?"Decorator":"MustacheStatement",path:t,params:e,hash:n,escaped:s,strip:i,loc:this.locInfo(o)}},e.prepareRawBlock=function(t,e,n,r){a(t,n),r=this.locInfo(r);var i={type:"Program",body:e,strip:{},loc:r};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}},e.prepareBlock=function(t,e,n,r,i,s){r&&r.path&&a(t,r);var l=/\*/.test(t.open);e.blockParams=t.blockParams;var u=void 0,c=void 0;if(n){if(l)throw new o.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),c=n.strip,u=n.program}i&&(i=u,u=e,e=i);return{type:l?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:u,openStrip:t.strip,inverseStrip:c,closeStrip:r&&r.strip,loc:this.locInfo(s)}},e.prepareProgram=function(t,e){if(!e&&t.length){var n=t[0].loc,r=t[t.length-1].loc;n&&r&&(e={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:t,strip:{},loc:e}},e.preparePartialBlock=function(t,e,n,r){return a(t,n),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:n&&n.strip,loc:this.locInfo(r)}};var r,i=n(3769),o=(r=i)&&r.__esModule?r:{default:r};function a(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var n={loc:t.path.loc};throw new o.default(t.path.original+" doesn't match "+e,n)}}},8433:(t,e,n)=>{"use strict";t.exports=n.p+"images/lay5.1090706d.png"},8714:t=>{"use strict";t.exports=n},8959:(t,e,n)=>{"use strict";t.exports=n.p+"images/pie-none.3cb81d7f.png"},9027:(t,e,n)=>{"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.parseWithoutProcessing=u,e.parse=function(t,e){var n=u(t,e);return new o.default(e).accept(n)};var i=r(n(6201)),o=r(n(915)),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(8425)),s=n(2849);e.parser=i.default;var l={};function u(t,e){return"Program"===t.type?t:(i.default.yy=l,l.locInfo=function(t){return new l.SourceLocation(e&&e.srcName,t)},i.default.parse(t))}s.extend(l,a)},9285:(t,e,n)=>{"use strict";t.exports=n.p+"images/table-none.ca8daa78.png"},9454:(t,e,n)=>{var r={"./lay1.png":1429,"./lay2.png":3598,"./lay3.png":3095,"./lay4.png":952,"./lay5.png":8433,"./lay6.png":1002,"./lay7.png":2915,"./lay8.png":644};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id=9454},9613:(t,e)=>{"use strict";function n(t){this.string=t}e.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},e.default=n,t.exports=e.default},9632:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(2849),i=void 0;try{}catch(t){}function o(t,e,n){if(r.isArray(t)){for(var i=[],o=0,a=t.length;o<a;o++)i.push(e.wrap(t[o],n));return i}return"boolean"==typeof t||"number"==typeof t?t+"":t}function a(t){this.srcFile=t,this.source=[]}i||((i=function(t,e,n,r){this.src="",r&&this.add(r)}).prototype={add:function(t){r.isArray(t)&&(t=t.join("")),this.src+=t},prepend:function(t){r.isArray(t)&&(t=t.join("")),this.src=t+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),a.prototype={isEmpty:function(){return!this.source.length},prepend:function(t,e){this.source.unshift(this.wrap(t,e))},push:function(t,e){this.source.push(this.wrap(t,e))},merge:function(){var t=this.empty();return this.each(function(e){t.add([" ",e,"\n"])}),t},each:function(t){for(var e=0,n=this.source.length;e<n;e++)t(this.source[e])},empty:function(){var t=this.currentLocation||{start:{}};return new i(t.start.line,t.start.column,this.srcFile)},wrap:function(t){var e=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return t instanceof i?t:(t=o(t,this,e),new i(e.start.line,e.start.column,this.srcFile,t))},functionCall:function(t,e,n){return n=this.generateList(n),this.wrap([t,e?"."+e+"(":"(",n,")"])},quotedString:function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(t){var e=this,n=[];Object.keys(t).forEach(function(r){var i=o(t[r],e);"undefined"!==i&&n.push([e.quotedString(r),":",i])});var r=this.generateList(n);return r.prepend("{"),r.add("}"),r},generateList:function(t){for(var e=this.empty(),n=0,r=t.length;n<r;n++)n&&e.add(","),e.add(o(t[n],this));return e},generateArray:function(t){var e=this.generateList(t);return e.prepend("["),e.add("]"),e}},e.default=a,t.exports=e.default},9726:(t,e,n)=>{"use strict";e.__esModule=!0,e.createNewLookupObject=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.extend.apply(void 0,[Object.create(null)].concat(e))};var r=n(2849)}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={id:t,loaded:!1,exports:{}};return r[t].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),o.p="./";var a={};return(()=>{"use strict";o.r(a),o.d(a,{BiDashboard:()=>mr,chartRender:()=>Te,default:()=>wr,enumData:()=>t,install:()=>Cr,mockData:()=>r,panelConfig:()=>e,storeConfig:()=>br,utils:()=>n});var t={};o.r(t),o.d(t,{TAB_TYPES:()=>rt,aggregatorMap:()=>Q,applyUseTypeMap:()=>et,chartSeriesColors:()=>it,customKey:()=>ot,lineStyleMap:()=>st,lineTypeMap:()=>at,tableTypeZnMap:()=>tt,useTypesMap:()=>nt,widgetTypeMap:()=>lt});var e={};o.r(e),o.d(e,{cColumnConf:()=>gt,cIndicatorCard:()=>vt,cLineConf:()=>yt,cPieConf:()=>mt,cTableConf:()=>pt,panelMap:()=>bt,remarkPositionMap:()=>ht,styleConfig:()=>dt});var n={};o.r(n),o.d(n,{aggregateDataByDimension:()=>g,calcDescartes:()=>I,calculateChartSize:()=>C,calculateContrast:()=>W,debounce:()=>k,deepClone:()=>T,elResizeObverse:()=>m,formatChartData:()=>b,formatIndicatorData:()=>At,generateCSSVariables:()=>G,generateChartColor:()=>w,generateColorPalette:()=>j,generateRandomColor:()=>H,getAllFieldsByFields:()=>It,getCategoryDimension:()=>Ot,getCodeByCubeField:()=>Et,getColorDimensions:()=>xt,getColorFieldMap:()=>Lt,getDimensions:()=>St,getFieldValueByCustomKey:()=>kt,getMeasures:()=>_t,getParamsRowsAndColumns:()=>y,getStyleConfig:()=>Tt,hexToRgba:()=>F,initHeight:()=>Dt,initWidth:()=>Pt,mateMapping:()=>L,mergeStyles:()=>V,safeGet:()=>D,throttle:()=>A,transferObjectToArray:()=>Mt,transferWhiteVal:()=>M,uniqueArray:()=>P,updatePanelWidget:()=>Rt,validateData:()=>R,validateEmail:()=>Y,validateForm:()=>J,validateIdCard:()=>K,validatePassword:()=>Z,validatePhone:()=>q,validateURL:()=>X});var r={};o.r(r),o.d(r,{columnWidgets:()=>De,indicatorWidgets:()=>Ne,lineWidgets:()=>Be,pieWidgets:()=>Pe,tableWidgets:()=>Re,widgets:()=>ze});var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dashboard-designer cdsp_dashboard",style:t.dashboardStyle},[n("div",{staticClass:"action-panel-container"},[n("action-panel",{attrs:{gridLayout:t.layoutObj,previewFlag:t.previewFlag},on:{"toggle-preview":t.handleTogglePreview},model:{value:t.isPc,callback:function(e){t.isPc=e},expression:"isPc"}})],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.getPreviewFlag,expression:"!getPreviewFlag"}],staticClass:"components-panel-container"},[n("components-panel",{on:{drag:t.componentsPanelDrag,dragend:t.componentsPanelDragend}})],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.getPreviewFlag,expression:"!getPreviewFlag"}],staticClass:"setting-panel-container"},[n("setting-panel",{attrs:{selectItem:t.selectItem},on:{updateDashboard:t.updateDashboard}})],1),t._v(" "),n("div",{staticClass:"canvas-panel-container"},[t.isPc?n("canvas-panel",{ref:"grid",attrs:{gridLayout:t.layoutObj.layout,previewFlag:t.previewFlag},on:{"update:gridLayout":function(e){return t.$set(t.layoutObj,"layout",e)},"update:grid-layout":function(e){return t.$set(t.layoutObj,"layout",e)},chartSelect:t.handleChartSelect,"grid-resize":t.handleGridResize}}):n("mobile-preview",[n("canvas-panel",{ref:"grid",attrs:{gridLayout:t.mobileLayout,previewFlag:t.previewFlag},on:{"update:gridLayout":function(e){t.mobileLayout=e},"update:grid-layout":function(e){t.mobileLayout=e},chartSelect:t.handleChartSelect}})],1)],1)])};function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}function u(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function h(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(t){c(o,r,i,a,s,"next",t)}function s(t){c(o,r,i,a,s,"throw",t)}a(void 0)})}}i._withStripped=!0;var d=o(4756),f=o.n(d),p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"bi-header"},[n("div"),t._v(" "),n("div",{staticClass:"bi-header-content"},[n("div",{staticClass:"dashboard-action-panel"},[n("div",{staticClass:"action-panel-left"},[n("i",{staticClass:"el-icon-s-data bi-header-icon"}),t._v(" "),t.getPreviewFlag?n("span",[t._v(t._s(t.gridLayout.dashboardName))]):n("input",{directives:[{name:"model",rawName:"v-model",value:t.gridLayout.dashboardName,expression:"gridLayout.dashboardName"}],staticClass:"middle bi-header-name-input",attrs:{type:"text"},domProps:{value:t.gridLayout.dashboardName},on:{input:function(e){e.target.composing||t.$set(t.gridLayout,"dashboardName",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"action-panel-middle"},[n("div",{staticClass:"device-switch-container"},[n("div",{staticClass:"switch-content",on:{click:function(e){return t.switchActive(!0)}}},[n("i",{staticClass:"el-icon-monitor"})]),t._v(" "),n("div",{staticClass:"switch-content",on:{click:function(e){return t.switchActive(!1)}}},[n("i",{staticClass:"el-icon-mobile"})]),t._v(" "),n("div",{staticClass:"switch-bar",style:t.switchPos})])]),t._v(" "),n("div",{staticClass:"action-panel-right"},[n("div",{staticClass:"bi-header-btn-wrapper"},[n("button",{staticClass:"bi-header-btn default",on:{click:t.btnPreview}},[t._v(t._s(t.previewBtnName))])]),t._v(" "),n("div",{staticClass:"bi-header-btn-wrapper"},[n("button",{staticClass:"bi-header-btn default",on:{click:t.btnExportJson}},[t._v("导出JSON")])]),t._v(" "),n("div",{staticClass:"bi-header-btn-wrapper"},[n("button",{staticClass:"bi-header-btn default",on:{click:t.btnSave}},[t._v("保 存")])]),t._v(" "),n("div",{staticClass:"bi-header-btn-wrapper"},[n("button",{staticClass:"bi-header-btn primary",on:{click:t.btnSaveAndRelease}},[t._v("保存并发布")])])])])])])};function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function g(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"sum";if(!(t&&Array.isArray(t)&&e&&n))return t||[];var i=new Map;return t.forEach(function(t){var o=t[e],a=parseFloat(t[n])||0;if(i.has(o)){var s=i.get(o);switch(r){case"sum":default:s[n]+=a;break;case"avg":s[n]=(s[n]+a)/2;break;case"max":s[n]=Math.max(s[n],a);break;case"min":s[n]=Math.min(s[n],a);break;case"count":s[n]+=1}Object.keys(t).forEach(function(r){r!==e&&r!==n&&(s[r]=t[r])})}else{var l=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},t);l[n]=a,i.set(o,l)}}),Array.from(i.values())}function m(t,e){var n=null,r=!1,i=!1,o=function(){if(r)i=!0;else{r=!0;var t=window.setInterval(function(){i||(window.clearInterval(t),r=!1,e()),i=!1},100)}};try{(n=new ResizeObserver(o)).observe(t)}catch(t){_support_&&(_support_=!1),o(),window.addEventListener("resize",o,!1)}return function(){n&&n.disconnect()}}function y(t){var e=JSON.parse(JSON.stringify(t)),n=function(t){return(t=Array.isArray(t)?t:t.chooseFields).map(function(t){return{columnCode:t.unitCode,aggregatorType:t.aggregatorType}})},r=e.filter(function(t){return"rows"===t.queryType}),i=e.filter(function(t){return["values","columns"].includes(t.queryType)}).reduce(function(t,e){return t.chooseFields=t.chooseFields.concat(e.chooseFields),t.chooseFields});return{rowsCodes:n(r[0].chooseFields),columnCodes:n(i)}}function b(t,e){if(!t||!Array.isArray(t))return[];var n=e.dimensionField,r=e.measureField,i=e.aggregatorType;return n&&r?g(t,n,r,void 0===i?"sum":i):t}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!t)return t;if(t.startsWith("#")){var n=parseInt(t.slice(1,3),16),r=parseInt(t.slice(3,5),16),i=parseInt(t.slice(5,7),16);return"rgba(".concat(n,", ").concat(r,", ").concat(i,", ").concat(e,")")}return t}function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.padding,r=void 0===n?20:n,i=e.minWidth,o=void 0===i?200:i,a=e.minHeight,s=void 0===a?150:a;if(!t)return{width:o,height:s};var l=t.getBoundingClientRect();return{width:Math.max(l.width-2*r,o),height:Math.max(l.height-2*r,s)}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function x(t,e){if(t){if("string"==typeof t)return _(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(t,e):void 0}}function S(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||x(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return O(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function T(t){if(null===t||"object"!==s(t))return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array)return t.map(function(t){return T(t)});if("object"===s(t)){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=T(t[n]));return e}}function I(t){return t.length<2?t[0]||[]:t.reduce(function(t,e){var n=[];return t.forEach(function(t){e.forEach(function(e){Array.isArray(t)?n.push([].concat(S(t),[e])):n.push([t,e])})}),n})}function M(t){return null==t||""===t?"--":t}function L(t){var e=new Map;return t.forEach(function(t){e.set(t.field,t.name)}),e}function k(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=r&&!n;clearTimeout(n),n=setTimeout(function(){n=null,r||t.apply(void 0,o)},e),s&&t.apply(void 0,o)}}function A(t,e){var n;return function(){if(!n){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];t.apply(this,i),n=!0,setTimeout(function(){return n=!1},e)}}}function R(t,e){switch(e){case"array":return Array.isArray(t);case"object":return null!==t&&"object"===s(t)&&!Array.isArray(t);case"string":return"string"==typeof t;case"number":return"number"==typeof t&&!isNaN(t);case"boolean":return"boolean"==typeof t;default:return null!=t}}function D(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!t||"string"!=typeof e)return n;var r,i=t,o=E(e.split("."));try{for(o.s();!(r=o.n()).done;){var a=r.value;if(null==i||!i.hasOwnProperty(a))return n;i=i[a]}}catch(t){o.e(t)}finally{o.f()}return i}function P(t,e){if(!Array.isArray(t))return[];if(e){var n=new Set;return t.filter(function(t){var r=t[e];return!n.has(r)&&(n.add(r),!0)})}return S(new Set(t))}function N(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(t,e)||x(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?B(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function F(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!t)return t;3===(t=t.replace("#","")).length&&(t=t.split("").map(function(t){return t+t}).join(""));var n=parseInt(t.slice(0,2),16),r=parseInt(t.slice(2,4),16),i=parseInt(t.slice(4,6),16);return"rgba(".concat(n,", ").concat(r,", ").concat(i,", ").concat(e,")")}function H(){for(var t="#",e=0;e<6;e++)t+="0123456789ABCDEF"[Math.floor(16*Math.random())];return t}function j(t){for(var e=[],n=((arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#1890ff").replace("#",""),0);n<t;n++){var r=360/t*n;e.push("hsl(".concat(r,", 70%, 50%)"))}return e}function W(t,e){var n=function(t){var e,n=N(((e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t))?[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]:[0,0,0]).map(function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}),3);return.2126*n[0]+.7152*n[1]+.0722*n[2]},r=n(t),i=n(e);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function G(t){for(var e=":root {\n",n=0,r=Object.entries(t);n<r.length;n++){var i=N(r[n],2),o=i[0],a=i[1];e+=" --".concat(o,": ").concat(a,";\n")}return e+="}"}function V(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce(function(t,e){return e&&"object"===s(e)?z(z({},t),e):t},{})}function $(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return U(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function U(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Y(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}function X(t){try{return new URL(t),!0}catch(t){return!1}}function q(t){return/^1[3-9]\d{9}$/.test(t)}function K(t){return/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(t)}function Z(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.minLength,r=void 0===n?8:n,i=e.requireUppercase,o=void 0===i||i,a=e.requireLowercase,s=void 0===a||a,l=e.requireNumbers,u=void 0===l||l,c=e.requireSpecialChars,h=void 0!==c&&c,d={isValid:!0,errors:[]};return t.length<r&&(d.isValid=!1,d.errors.push("密码长度不能少于".concat(r,"位"))),o&&!/[A-Z]/.test(t)&&(d.isValid=!1,d.errors.push("密码必须包含大写字母")),s&&!/[a-z]/.test(t)&&(d.isValid=!1,d.errors.push("密码必须包含小写字母")),u&&!/\d/.test(t)&&(d.isValid=!1,d.errors.push("密码必须包含数字")),h&&!/[!@#$%^&*(),.?":{}|<>]/.test(t)&&(d.isValid=!1,d.errors.push("密码必须包含特殊字符")),d}function J(t,e){for(var n={isValid:!0,errors:{}},r=0,i=Object.entries(e);r<i.length;r++){var o,a=N(i[r],2),l=a[0],u=a[1],c=t[l],h=[],d=$(u);try{for(d.s();!(o=d.n()).done;){var f=o.value;if(!f.required||null!=c&&""!==c){if(null!=c&&""!==c){if(f.type&&s(c)!==f.type){h.push(f.message||"".concat(l,"类型不正确"));continue}if(f.min&&c.length<f.min){h.push(f.message||"".concat(l,"长度不能少于").concat(f.min));continue}if(f.max&&c.length>f.max){h.push(f.message||"".concat(l,"长度不能超过").concat(f.max));continue}if(f.pattern&&!f.pattern.test(c)){h.push(f.message||"".concat(l,"格式不正确"));continue}if(f.validator&&!f.validator(c)){h.push(f.message||"".concat(l,"验证失败"));continue}}}else h.push(f.message||"".concat(l,"是必填项"))}}catch(t){d.e(t)}finally{d.f()}h.length>0&&(n.isValid=!1,n.errors[l]=h)}return n}p._withStripped=!0;var Q={sum:"求和",avg:"平均值",count:"计数",min:"最小值",max:"最大值","distinct-count":"去重计数"},tt={0:"贴源表",1:"标准表",2:"维度",3:"标准代码",4:"事实"},et={0:"应用系统建设",1:"统计分析",2:"科研",3:"其他"},nt={0:"ETL",1:"EXCEL",2:"API"},rt={FIELD:"field",STYLE:"style",ADVANCED:"advanced"},it=["#5B8FF9","#BDD2FD","#61DDAA","#BDEFDB","#BDEFDB","#C2C8D5","#F6BD16","#FBE5A2","#7262FD","#D3CEFD","#78D3F8","#B6E3F5","#9661BC","#D3C6EA","#FFD8B8","#008685","#AAD8D8","#F08BB4","#FFD6E7"],ot="w_",at={curve:"curve",line:"line"},st={sty1:"sty1",sty2:"sty2",sty3:"sty3"},lt={Table:"Table",Column:"Column",Pie:"Pie",Line:"Line",IndicatorCard:"IndicatorCard"};function ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function ct(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ut(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var ht={title:1,top:2},dt={commongConfig:{showTitle:!1,showRemark:!1,remark:"",remarkPosition:ht.title,backgroundColor:"#fff",mergeCells:!1,pagination:!1,indicatorIcon:!1,indicatorStyle:1,columnBackgroundOpacity:100,gradientEffect:!1,columnWidthRatio:80,labelConfig:{show:!1,showAll:!1,position:"auto",textConfig:{fontSize:12,isBold:!1,color:"#000",isItalic:!1,decimalPlaces:0}},legendConfig:{show:!0,position:"top"},lineChartConfig:{lineType:at.line,lineStyle:st.sty1,showPoint:!1,pointShape:"circle",lineWidth:1}},helperData:{indicatorRowIconMap:{},fieldMap:{}}},ft={defaultRows:8,styleConfig:ct({},JSON.parse(JSON.stringify(dt)))},pt=ct(ct({},ft),{},{name:"交叉表",type:lt.Table,defaultCols:"whole",className:"component-type-cross-table",defaultImg:o(9285),fields:[{label:"行/维度",isMust:!1,limitNum:null,type:"dimension",alias:"dimension",queryType:"rows"},{label:"列/维度/度量",isMust:!1,limitNum:null,type:"any",alias:"measure",queryType:"columns"}],styleComp:{type:"c-table-style",styleConfig:{}}}),vt=ct(ct({},ft),{},{name:"指标看板",type:lt.IndicatorCard,defaultCols:"half",className:"component-type-indicator-card",defaultImg:o(6312),fields:[{label:"看板标签/维度",isMust:!1,limitNum:1,type:"dimension",alias:"dimension",queryType:"rows"},{label:"看板指标/度量",isMust:!0,limitNum:1,type:"measure",alias:"measure",queryType:"values"}],styleComp:{type:"c-indicator-style",styleConfig:{}}}),gt=ct(ct({},ft),{},{name:"柱图",type:lt.Column,defaultCols:"half",className:"component-type-bar",defaultImg:o(3585),fields:[{label:"类别轴/维度",isMust:!0,limitNum:null,type:"dimension",alias:"dimension",queryType:"rows"},{label:"值轴/度量",isMust:!0,limitNum:null,type:"measure",alias:"measure",queryType:"values"},{label:"颜色图例/维度",isMust:!1,limitNum:1,type:"dimension",alias:"dimension",queryType:"columns"}],styleComp:{type:"c-column-style",styleConfig:{}}}),mt=ct(ct({},ft),{},{name:"饼图",type:lt.Pie,defaultCols:"half",className:"component-type-pie",defaultImg:o(8959),fields:[{label:"扇区标签/维度",isMust:!0,limitNum:1,type:"dimension",queryType:"rows"},{label:"扇区角度/度量",isMust:!0,limitNum:10,type:"measure",queryType:"columns"}],styleComp:{type:"c-pie-style",styleConfig:{}}}),yt=ct(ct({},ft),{},{name:"折线图",type:lt.Line,defaultCols:"half",className:"component-type-line",defaultImg:o(6465),fields:[{label:"类别轴/维度",isMust:!0,limitNum:null,type:"dimension",alias:"dimension",queryType:"rows"},{label:"值轴/度量",isMust:!0,limitNum:null,type:"measure",alias:"measure",queryType:"values"},{label:"颜色图例/维度",isMust:!1,limitNum:1,type:"dimension",alias:"dimension",queryType:"columns"}],styleComp:{type:"c-line-style",styleConfig:{}}}),bt=u(u(u(u(u({},lt.Table,pt),lt.Column,gt),lt.Pie,mt),lt.Line,yt),lt.IndicatorCard,vt);function wt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Ct(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wt(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _t(t){var e;return null!==(e=t.find(function(t){return"values"===t.queryType}))&&void 0!==e?e:{}}function xt(t){var e;return null!==(e=t.find(function(t){return"columns"===t.queryType}))&&void 0!==e?e:{}}function St(t){var e;return null!==(e=t.find(function(t){return"rows"===t.queryType}))&&void 0!==e?e:{}}function Et(t){var e,n;return null!==(e=null===(n=t.chooseFields)||void 0===n?void 0:n.map(function(t){return t.unitCode}))&&void 0!==e?e:[]}function Ot(t){var e=function(t){return Et(t)};if(t.some(function(t){return"any"===t.type})){var n,r,i,o=e(St(t)),a=null!==(n=t.find(function(t){return"columns"===t.queryType}))&&void 0!==n?n:{};return{rows:o,values:(null!==(r=a.chooseFields.filter(function(t){return"measure"===t.defineType}))&&void 0!==r?r:[]).map(function(t){return t.unitCode}),columns:(null!==(i=a.chooseFields.filter(function(t){return"dimension"===t.defineType}))&&void 0!==i?i:[]).map(function(t){return t.unitCode})}}return{rows:e(St(t)),values:e(_t(t)),columns:e(xt(t))}}function Tt(t){var e;return null!==(e=t.styleConfig)&&void 0!==e?e:{}}function It(t){return t.reduce(function(t,e){return t.push.apply(t,S(e.chooseFields)),t},[])}function Mt(t){return Object.entries(t).map(function(t){var e=N(t,2);return Ct({key:e[0]},e[1])})}function Lt(t,e,n){var r,i,o,a="Pie"===n.type,s=null!==(r=_t(t))&&void 0!==r&&null!==(r=r.chooseFields)&&void 0!==r&&r.length?[_t(t)]:[],l=(null===(i=xt(t))||void 0===i||null===(i=i.chooseFields)||void 0===i?void 0:i.length)>0?[xt(t)]:[],c=(null===(o=St(t))||void 0===o||null===(o=o.chooseFields)||void 0===o?void 0:o.length)>0?[St(t)]:[],h=a?c:l;if(h.length>0){var d,f={},p=null===(d=h[0].chooseFields[0])||void 0===d?void 0:d.unitCode;return e.forEach(function(t){var n=e.indexOf(t)%it.length;f[t[p]]=u(u({},ot+"text",t[p]),ot+"seriesColor",it[n])}),f}return It(s).reduce(function(t,e,n){var r=n%it.length;return t[e.unitName]=u(u({},ot+"text",e.unitName),ot+"seriesColor",it[r]),t},{})}function kt(t,e){return t[ot+e]}function At(t,e){var n,r=Ot(t),i=r.rows,o=r.values,a=null===(n=t.find(function(t){return"values"===t.queryType}))||void 0===n?void 0:n.chooseFields[0].unitName,s=new Map;return e.filter(function(t){var e=t[i[0]];return!s.has(e)&&(s.set(e,!0),!0)}).map(function(t){return{rowValue:t[i[0]],measureValue:t[o[0]],measureName:a}})}function Rt(t){var e,n,r=Lt(t.fields,t.data.data,t);Object.keys(null!==(e=null===(n=t.styleConfig.helperData)||void 0===n?void 0:n.fieldMap)&&void 0!==e?e:{}).length>0||(t.styleConfig.helperData.fieldMap=r),t.styleConfig||(t.styleConfig=Ct({},JSON.parse(JSON.stringify(dt))))}function Dt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this[e[0]]=this.$el.offsetHeight-16}function Pt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this[e[0]]=this.$el.offsetWidth}var Nt=function(){};function Bt(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}var zt=Bt({name:"actionPanel",props:{value:{type:Boolean,default:!0},gridLayout:{type:Object,default:function(){}},previewFlag:{type:Boolean,default:!1}},data:function(){return{active:this.value}},computed:{getPreviewFlag:function(){return this.previewFlag},switchPos:function(){return this.active?{left:0}:{left:"56px"}},previewBtnName:function(){return this.getPreviewFlag?"编 辑":"预 览"}},methods:{btnPreview:function(){this.$emit("toggle-preview",!this.getPreviewFlag)},btnExportJson:function(){try{var t={dashboardName:this.gridLayout.dashboardName,layout:this.gridLayout.layout,timestamp:(new Date).toISOString(),version:"1.0.0"},e=JSON.stringify(t,null,2),n=new Blob([e],{type:"application/json"}),r=URL.createObjectURL(n),i=document.createElement("a");i.href=r;var o="".concat(this.gridLayout.dashboardName||"dashboard","_").concat((new Date).toISOString().split("T")[0],".json");i.download=o,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r),this.$message.success("JSON 文件导出成功")}catch(t){this.$message.error("导出 JSON 失败")}},btnSave:function(){var t=this;return h(f().mark(function e(){var n,r,i,o,a;return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.gridLayout,r=n.dashboardName,i=n.layout,{wid:t.$route.query.wid,dashboardName:r,dashboardUnitInfos:i.map(function(t){var e=y(t.fields),n=e.rowsCodes,r=e.columnCodes;return{wid:t.wid,unitDefine:JSON.stringify(t),unitName:t.describe,unitQueryConfig:{faceTableCode:t.dataSetId,rowsCodes:n,columnCodes:r}}})},e.prev=1,e.next=2,Nt();case 2:t.$message.success("保存成功"),e.next=4;break;case 3:e.prev=3,a=e.catch(1),o=a.errmsg,t.$message.error(o);case 4:case"end":return e.stop()}},e,null,[[1,3]])}))()},btnSaveAndRelease:function(){this.$message.warning("该功能暂未开放")},switchActive:function(t){this.active=t,this.$emit("input",this.active)}}},p,[],!1,null,"739e2c8e",null);zt.options.__file="src/components/actionPanel.vue";const Ft=zt.exports;var Ht=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.forceUpdateFlag?n("div",{staticClass:"root-container"},[n("grid-layout",{ref:"gridlayout",staticClass:"gridlayout",attrs:{layout:t.viewLayout,"col-num":t.cols,responsive:t.responsive,"row-height":30,"is-draggable":!0,"is-resizable":!0,"vertical-compact":!0,"use-css-transforms":!1},on:{"update:layout":function(e){t.viewLayout=e}}},t._l(t.viewLayout,function(e){return n("grid-item",{key:e._id,style:{background:e.styleConfig&&e.styleConfig.commongConfig.customBackgroundColor?e.styleConfig.commongConfig.backgroundColor:"#fff"},attrs:{"drag-allow-from":".bi-layout-drag-handle",static:t.getPreviewFlag,x:e.x,y:e.y,w:e.w,h:e.h,"drag-ignore-from":".middle-layer",i:e.i},on:{resized:function(n){return t.resizedEvent(e)}}},[n("div",{staticClass:"bi-layout-drag-handle"},[n("div",{staticStyle:{"margin-top":"-4px"}},[n("i",{staticClass:"el-icon-more"})]),t._v(" "),n("div",{staticStyle:{"margin-top":"2px"}},[n("i",{staticClass:"el-icon-more"})])]),t._v(" "),n("div",{staticClass:"chart-warp grid-warp",class:{shadow:e._id===t.cur._id}},[n("middle-layer",{attrs:{chartData:e},nativeOn:{click:function(n){return t.chartSelect(e)}}})],1)])}),1),t._v(" "),n("div",{staticClass:"gap"})],1):t._e()};Ht._withStripped=!0;var jt=o(1965),Wt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"middle-layer cdsp_dashboard"},[t.showTitle?n("div",{staticClass:"chart-header"},[t.chartData.styleConfig.commongConfig.showTitle?n("span",{staticClass:"title"},[t._v(t._s(t.chartData.name))]):t._e(),t._v(" "),t.chartData.styleConfig.commongConfig.showRemark?[t.chartData.styleConfig.commongConfig.remarkPosition===t.remarkPositionMap.title?n("el-tooltip",{attrs:{content:t.chartData.styleConfig.commongConfig.remark,placement:"right"}},[n("i",{staticClass:"el-icon-question"})]):n("div",[n("span",{staticClass:"remark"},[t._v(t._s(t.chartData.styleConfig.commongConfig.remark))])])]:t._e()],2):t._e(),t._v(" "),n("div",{staticClass:"chart-content",style:{height:t.showTitle?"calc(100% - 30px)":"100%"}},[n(t.computedTpl,{tag:"component",attrs:{chartData:t.chartData}})],1)])};Wt._withStripped=!0;var Gt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"defaultSeat",style:{backgroundImage:"url("+t.chartData.defaultImg+")"}},[n("div",{staticClass:"error-description"},[t._v("当前图表无数据")])])};Gt._withStripped=!0;var Vt=Bt({name:"defaultSeat",props:{chartData:{type:Object,default:function(){return{}}}}},Gt,[],!1,null,"04decd88",null);Vt.options.__file="src/components/charts/defaultSeat.vue";const $t=Vt.exports;var Ut=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"chart-warp",style:{height:t.warpHeight}},[n("div",{ref:"container"}),t._v(" "),t.chartData.styleConfig.commongConfig.pagination?n("el-pagination",{staticStyle:{"margin-top":"8px"},attrs:{small:"",layout:"prev, pager, next",total:t.pagination.total},on:{"current-change":t.currentChange}}):t._e()],1)};Ut._withStripped=!0;var Yt=o(1162),Xt=o(2543);o(639);function qt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Kt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qt(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Zt=Bt({name:"cTable",props:{chartData:{type:Object,default:function(){return{}}}},data:function(){return{s2:null,warpHeight:200,warpWidth:200,resizeObserver:null,pagination:{pageSize:10,current:1,total:100}}},mounted:function(){var t=this;this.$nextTick(function(){Dt.call(t,"warpHeight"),Pt.call(t,"warpWidth"),t.renderChart()})},watch:{"chartData.styleConfig":{handler:function(){this.initTheme(),this.s2.destroy(),this.renderChart()},deep:!0}},methods:{currentChange:function(t){this.s2.destroy(),this.pagination.current=t,this.renderChart()},initTheme:function(){this.chartData.styleConfig&&this.s2.setTheme({background:{color:this.chartData.styleConfig.commongConfig.customBackgroundColor?this.chartData.styleConfig.commongConfig.backgroundColor:"#fff"}})},getHeight:function(t){var e=t-(this.chartData.styleConfig.commongConfig.pagination?20:0);return this.chartData.styleConfig.commongConfig.showTitle&&(e-=20),e},renderChart:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n={height:this.getHeight(this.warpHeight),width:this.warpWidth},r=this.chartData.styleConfig.commongConfig.mergeCells,i=Ot(this.chartData.fields),o=i.rows,a=i.values,s=i.columns,l=JSON.parse(JSON.stringify(this.chartData.data.meta)),u=JSON.parse(JSON.stringify(this.chartData.data.data)),c=this.chartData.styleConfig.commongConfig.pagination?u.slice((this.pagination.current-1)*this.pagination.pageSize,this.pagination.current*this.pagination.pageSize):u,h=o[0];l.forEach(function(t){t.field===h&&(t.formatter=r?function(t){return t.split("-")[0]}:void 0,c.forEach(function(t,e){t[h]=r?"".concat(t[h],"-").concat(e):t[h]}))}),this.s2=new Yt.uVY(this.$refs.container,Kt(Kt({},this.chartData.data),{},{data:c,meta:l,fields:{rows:o,values:a,columns:s}}),n),this.pagination.total=this.chartData.data.data.length;var d=(0,Xt.debounce)(function(e,n){t.s2.changeSheetSize(e,t.getHeight(n)),t.initTheme(),t.s2.render(!1)},200);this.resizeObserver=new ResizeObserver(function(){var t=N(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],1),e=N(t[0].borderBoxSize||[],1)[0];d(e.inlineSize,e.blockSize)}),this.resizeObserver.observe(this.$el),this.initTheme(),this.s2.render(e)}},destroyed:function(){this.$el&&this.resizeObserver.observe(this.$el)}},Ut,[],!1,null,"fa494476",null);Zt.options.__file="src/components/charts/cTable.vue";const Jt=Zt.exports;var Qt=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"chart-warp",style:{height:t.warpHeight},attrs:{id:t.chartData._id}})};Qt._withStripped=!0;var te=o(5740);function ee(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function ne(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ee(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var re=Bt({name:"column",props:{chartData:{type:Object,default:function(){return{}}}},data:function(){return{warpHeight:200,renderTimer:null,piePlot:null}},watch:{"chartData.styleConfig.helperData.fieldMap":{handler:function(){this.debounceRenderChart()},deep:!0},"chartData.styleConfig.commongConfig.labelConfig":{handler:function(){this.debounceRenderChart()},deep:!0},"chartData.styleConfig.commongConfig.legendConfig":{handler:function(){this.debounceRenderChart()},deep:!0},"chartData.styleConfig.commongConfig.columnBackgroundOpacity":{handler:function(){this.debounceRenderChart()},deep:!0}},mounted:function(){var t=this;this.$nextTick(function(){Dt.call(t,"warpHeight"),t.renderChart()})},methods:{debounceRenderChart:function(){var t=this;this.renderTimer&&clearTimeout(this.renderTimer),this.renderTimer=setTimeout(function(){t.piePlot&&t.piePlot.destroy(),t.renderChart()},300)},aggregateDataByDimension:function(t,e,n){if(!(t&&Array.isArray(t)&&e&&n))return t||[];var r=new Map;return t.forEach(function(t){var i=t[e],o=parseFloat(t[n])||0;if(r.has(i)){var a=r.get(i);a[n]+=o,Object.keys(t).forEach(function(r){r!==e&&r!==n&&(a[r]=t[r])})}else{var s=ne({},t);s[n]=o,r.set(i,s)}}),Array.from(r.values())},renderChart:function(){var t=this,e=this.chartData,n=e._id,r=e.data,i=r.data,o=(r.meta,Ot(this.chartData.fields)),a=o.rows,s=(o.values,o.columns),l=this.chartData.styleConfig.commongConfig.labelConfig,u=this.chartData.styleConfig.commongConfig.legendConfig,c=this.aggregateDataByDimension(i,a[0],s[0]),h=a[0]||"",d={appendPadding:10,angleField:s[0]||"",colorField:h,radius:.8,color:function(e){var n;return F(null===(n=t.chartData.styleConfig.helperData.fieldMap[e[h]])||void 0===n?void 0:n[ot+"seriesColor"],t.chartData.styleConfig.commongConfig.columnBackgroundOpacity/100)},legend:!!u.show&&{position:u.position,marker:function(e,n,r){var i;return{style:{fill:null===(i=t.chartData.styleConfig.helperData.fieldMap[r[h]])||void 0===i?void 0:i[ot+"seriesColor"]}}}},label:!!l.show&&{type:l.position,content:function(t){var e=t.percent;return"".concat((100*e).toFixed(l.textConfig.decimalPlaces),"%")},autoHide:!l.showAll,style:{fontSize:l.textConfig.fontSize,fill:l.textConfig.color,fontWeight:l.textConfig.isBold?"bold":"normal",fontStyle:l.textConfig.isItalic?"italic":"normal"}}};this.piePlot=new te.Pie(n,ne(ne({},d),{},{data:c})),this.piePlot.render()}}},Qt,[],!1,null,"567bd043",null);re.options.__file="src/components/charts/cPie.vue";const ie=re.exports;var oe=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"chart-warp",style:{height:t.warpHeight},attrs:{id:t.chartData._id}})};function ae(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function se(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ae(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}oe._withStripped=!0;var le=Bt({name:"column",props:{chartData:{type:Object,default:function(){return{}}}},data:function(){return{renderTimer:null,warpHeight:200,stackedColumnPlot:null}},watch:{"chartData.styleConfig.helperData.fieldMap":{handler:function(){this.debounceRenderChart()},deep:!0},"chartData.styleConfig.commongConfig.columnBackgroundOpacity":{handler:function(){this.debounceRenderChart()},deep:!0},"chartData.styleConfig.commongConfig.gradientEffect":{handler:function(){this.debounceRenderChart()},deep:!0},"chartData.styleConfig.commongConfig.columnWidthRatio":{handler:function(){this.debounceRenderChart()},deep:!0},"chartData.styleConfig.commongConfig.labelConfig":{handler:function(){this.debounceRenderChart()},deep:!0},"chartData.styleConfig.commongConfig.legendConfig":{handler:function(){this.debounceRenderChart()},deep:!0}},mounted:function(){var t=this;this.$nextTick(function(){Dt.call(t,"warpHeight"),t.renderChart()})},methods:{debounceRenderChart:function(){var t=this;this.renderTimer&&clearTimeout(this.renderTimer),this.renderTimer=setTimeout(function(){t.stackedColumnPlot.destroy(),t.renderChart()},300)},renderChart:function(){var t=this,e=this.chartData,n=e._id,r=e.data,i=r.data,o=r.meta,a=Ot(this.chartData.fields),s=a.rows,l=a.values,c=a.columns,h=L(o),d=this.chartData.styleConfig.commongConfig.labelConfig,f=this.chartData.styleConfig.commongConfig.legendConfig,p={xField:"xField",yField:"yField",seriesField:"seriesField",isGroup:!0,columnWidthRatio:this.chartData.styleConfig.commongConfig.columnWidthRatio/100,label:!!d.show&&{autoHide:!d.showAll,position:"auto"===d.position?"middle":d.position,layout:[].concat(S("auto"===d.position?[{type:"interval-adjust-position"}]:[]),[{type:"interval-hide-overlap"}]),style:{fontSize:d.textConfig.fontSize,fill:d.textConfig.color,fontWeight:d.textConfig.isBold?"bold":"normal",fontStyle:d.textConfig.isItalic?"italic":"normal"}},color:function(e){var n,r=null===(n=t.chartData.styleConfig.helperData.fieldMap[e.seriesField])||void 0===n?void 0:n[ot+"seriesColor"];if(!t.chartData.styleConfig.commongConfig.gradientEffect)return F(r,t.chartData.styleConfig.commongConfig.columnBackgroundOpacity/100);if(!r)return"#1890ff";var i=t.chartData.styleConfig.commongConfig.columnBackgroundOpacity/100;return"l(270) 0:#ffffff 0.5:".concat(F(r,i)," 1:").concat(r)},legend:!!f.show&&{position:f.position,marker:function(e,n,r){var i;return{style:{fill:null===(i=t.chartData.styleConfig.helperData.fieldMap[r.name])||void 0===i?void 0:i[ot+"seriesColor"]}}}}},v=[];i.forEach(function(t){var e=!!c.length,n=[],r=[],i=[n,r],o=function(){l.includes(a)&&(t[a]=Math.round(80*Math.random()+20));var i=[];Object.keys(t).filter(function(t){return s.includes(t)}).forEach(function(e){i.push(t[e])}),l.includes(a)&&n.push(u({},a,t[a])),s.includes(a)&&r.push({xField:i.join("-")}),e&&(t.xField=i.join("-"))};for(var a in t)o();e?(t.yField=t[l[0]],t.seriesField=t[c[0]],v.push(t)):v.push.apply(v,S(I(i).map(function(t){var e={};return t.forEach(function(t){for(var n in t)e[n]=t[n],l.includes(n)&&(e.seriesField=h.get(n),e.yField=t[n])}),e})))}),this.stackedColumnPlot=new te.Column(n,se(se({},p),{},{data:v})),this.stackedColumnPlot.render()}}},oe,[],!1,null,"91449f22",null);le.options.__file="src/components/charts/cColumn.vue";const ue=le.exports;var ce=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"chart-render"},[n(t.computedTpl,{tag:"component",attrs:{chartData:t.chartData}})],1)};ce._withStripped=!0;var he=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"chart-warp indicator-card",style:{height:t.warpHeight},attrs:{id:t.chartData._id}},[n("div",{ref:"warp",staticClass:"indicator-card-warp",style:{height:t.warpHeight}},t._l(t.cardList,function(e,r){return n("div",{key:r,staticClass:"card-item",style:{width:t.cardWidth}},[n(t.computedTpl,{tag:"component",attrs:{idx:r,chartData:t.chartData,info:e}}),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:t.rightLineShow(r),expression:"rightLineShow(idx)"}],staticClass:"right-border"}),t._v(" "),n("p",{directives:[{name:"show",rawName:"v-show",value:t.leftLineShow(r),expression:"leftLineShow(idx)"}],staticClass:"bottom-border"})],1)}),0)])};he._withStripped=!0;var de=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"indicator-style1"},[t.chartData.styleConfig.commongConfig.indicatorIcon?n("style-icon",{attrs:{chartData:t.chartData,rowValue:t.info.rowValue,idx:t.idx}}):t._e(),t._v(" "),n("div",{staticClass:"indicator-style-item-content"},[n("div",{staticClass:"indicator-style-item",staticStyle:{"margin-bottom":"4px","line-height":"1.5","font-weight":"700"},attrs:{title:t.info.rowValue}},[t._v(t._s(t.info.rowValue)+"\n ")]),t._v(" "),n("div",{staticClass:"list-content",attrs:{title:t.info.measureName+t.info.measureValue}},[n("div",{staticClass:"text-overflow"},[t._v(t._s(t.info.measureName))]),t._v(" "),n("div",{staticClass:"text-overflow",staticStyle:{"font-size":"28px","font-weight":"700"}},[t._v(t._s(t.transferWhiteVal(t.info.measureValue)))])])])],1)};de._withStripped=!0;var fe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"indicator-style-icon",style:t.iconStyle},[n("i",{class:t.chartData.styleConfig.helperData.indicatorRowIconMap[t.rowValue]})])};fe._withStripped=!0;var pe=Bt({name:"styleIcon",props:{chartData:{type:Object,default:function(){}},rowValue:{type:String,default:""},idx:{type:Number,default:0}},data:function(){return{themeColorList:["#407FFF","#37D4CF","#A091F2","#FFB779","#7C7CA6","#34CC98"]}},computed:{iconStyle:function(){var t=this.idx%this.themeColorList.length,e=this.themeColorList[t];return{backgroundColor:F(e,.2),color:e}}},methods:{}},fe,[],!1,null,"5a47f012",null);pe.options.__file="src/components/charts/indicatorStyle/styleIcon.vue";const ve=pe.exports;var ge=Bt({name:"style1",components:{styleIcon:ve},props:{info:{type:Object,default:function(){}},chartData:{type:Object,default:function(){}},idx:{type:Number,default:0}},data:function(){return{transferWhiteVal:M}}},de,[],!1,null,"57e48ec3",null);ge.options.__file="src/components/charts/indicatorStyle/style1.vue";const me=ge.exports;var ye=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"indicator-style2"},[t.chartData.styleConfig.commongConfig.indicatorIcon?n("style-icon",{attrs:{chartData:t.chartData,rowValue:t.info.rowValue,idx:t.idx}}):t._e(),t._v(" "),n("div",{staticClass:"indicator-style-item-content"},[n("div",{staticClass:"indicator-style-item",staticStyle:{"margin-bottom":"4px","line-height":"1.5","font-weight":"700"},attrs:{title:t.info.rowValue}},[t._v(t._s(t.info.rowValue)+"\n ")]),t._v(" "),n("div",{staticClass:"list-content",attrs:{title:t.info.measureName+t.info.measureValue}},[n("div",{staticClass:"text-overflow"},[t._v(t._s(t.info.measureName))]),t._v(" "),n("div",{staticClass:"text-overflow",staticStyle:{"font-size":"28px","font-weight":"700"}},[t._v(t._s(t.transferWhiteVal(t.info.measureValue)))])])])],1)};ye._withStripped=!0;var be=Bt({name:"style2",components:{styleIcon:ve},props:{info:{type:Object,default:function(){}},chartData:{type:Object,default:function(){}},idx:{type:Number,default:0}},data:function(){return{transferWhiteVal:M}}},ye,[],!1,null,"57f2a644",null);be.options.__file="src/components/charts/indicatorStyle/style2.vue";var we=Bt({name:"cIndicatorCard",components:{style1:me,style2:be.exports},props:{chartData:{type:Object,default:function(){return{}}}},data:function(){return{transferWhiteVal:M,cardList:[],warpHeight:200,cardWidth:"25%",fixConf:{width:-1,baseNum:0}}},computed:{computedTpl:function(){return this.chartData.styleConfig.commongConfig.indicatorStyle?"style"+this.chartData.styleConfig.commongConfig.indicatorStyle:"style1"},rightLineShow:function(){var t=this;return function(e){return(e+=1)%t.getColsMaxNum!==0}},leftLineShow:function(){var t=this;return function(e){var n=t.cardList.length%t.getColsMaxNum;return!(e>t.cardList.length-1-(0===n?t.getColsMaxNum:n))}},getColsMaxNum:function(){return parseInt(100/parseInt(this.cardWidth))}},mounted:function(){var t=this;this.$nextTick(function(){Dt.call(t,"warpHeight"),t.renderChart()}),m(document.querySelector(".indicator-card-warp"),function(){t.computedSty()})},methods:{computedSty:function(){var t,e="",n=null===(t=this.$refs)||void 0===t||null===(t=t.warp)||void 0===t?void 0:t.offsetWidth;e=n<=300?"100%":n>300&&n<=500?"50%":n>500&&n<1200?"33%":"25%",this.cardWidth=e},renderChart:function(){var t=this.chartData.data.data;this.cardList=At(this.chartData.fields,t)}},destroyed:function(){}},he,[],!1,null,"6a9bff94",null);we.options.__file="src/components/charts/cIndicatorCard.vue";const Ce=we.exports;var _e=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"chart-warp",style:{height:t.warpHeight},attrs:{id:t.chartData._id}})};function xe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Se(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xe(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xe(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}_e._withStripped=!0;var Ee=Bt({name:"cLine",props:{chartData:{type:Object,default:function(){return{}}}},data:function(){return{warpHeight:200,lineTypeMap:at,lineStyleMap:st,customKey:ot,linePlot:null,renderTimer:null}},watch:{"chartData.styleConfig.helperData.fieldMap":{handler:function(){this.debounceRenderChart()},deep:!0},"chartData.styleConfig.commongConfig.labelConfig":{handler:function(){this.debounceRenderChart()},deep:!0},"chartData.styleConfig.commongConfig.legendConfig":{handler:function(){this.debounceRenderChart()},deep:!0},"chartData.styleConfig.commongConfig.lineChartConfig":{handler:function(){this.debounceRenderChart()},deep:!0}},mounted:function(){var t=this;this.$nextTick(function(){Dt.call(t,"warpHeight"),t.renderChart()})},methods:{debounceRenderChart:function(){var t=this;this.renderTimer&&clearTimeout(this.renderTimer),this.renderTimer=setTimeout(function(){t.linePlot.destroy(),t.renderChart()},300)},renderChart:function(){var t=this,e=this.chartData,n=e._id,r=e.data,i=r.data,o=r.meta,a=(r.fields,Ot(this.chartData.fields)),s=a.rows,l=a.values,c=a.columns,h=L(o),d=this.chartData.styleConfig.commongConfig.labelConfig,f=this.chartData.styleConfig.commongConfig.legendConfig,p=u(u(u({xField:"xField",yField:"yField",seriesField:"seriesField",smooth:this.chartData.styleConfig.commongConfig.lineChartConfig.lineType===at.curve,legend:!!f.show&&{position:f.position,marker:function(e,n,r){var i;return{style:{fill:null===(i=t.chartData.styleConfig.helperData.fieldMap[r.name])||void 0===i?void 0:i[ot+"seriesColor"]}}}},label:!!d.show&&{autoHide:!d.showAll,position:"auto"===d.position?"middle":d.position,layout:[].concat(S("auto"===d.position?[{type:"interval-adjust-position"}]:[]),[{type:"interval-hide-overlap"}]),formatter:function(t,e){var n=(100*t.percent).toFixed(d.textConfig.decimalPlaces);return"".concat(t.type,": ").concat(n,"%")},style:{fontSize:d.textConfig.fontSize,fill:d.textConfig.color,fontWeight:d.textConfig.isBold?"bold":"normal",fontStyle:d.textConfig.isItalic?"italic":"normal"}},tooltip:{shared:!0,showCrosshairs:!0},lineStyle:{lineDash:this.chartData.styleConfig.commongConfig.lineChartConfig.lineStyle===st.sty1?[]:[2,2],lineWidth:this.chartData.styleConfig.commongConfig.lineChartConfig.lineWidth}},"smooth",this.chartData.styleConfig.commongConfig.lineChartConfig.lineType===at.curve),"color",function(e){var n;return F(null===(n=t.chartData.styleConfig.helperData.fieldMap[e.seriesField])||void 0===n?void 0:n[ot+"seriesColor"],1)}),"point",!!this.chartData.styleConfig.commongConfig.lineChartConfig.showPoint&&{size:this.chartData.styleConfig.commongConfig.lineChartConfig.pointSize,shape:this.chartData.styleConfig.commongConfig.lineChartConfig.pointShape}),v=[],g=!!c.length;i.forEach(function(t){var e=[];s.forEach(function(n){void 0!==t[n]&&e.push(t[n])});var n=e.join("-");if(g){var r=t[l[0]],i=t[c[0]];void 0!==r&&void 0!==i&&v.push({xField:n,yField:r,seriesField:i})}else l.forEach(function(e){void 0!==t[e]&&v.push({xField:n,yField:t[e],seriesField:h.get(e)||e})})}),v.length&&n&&(this.linePlot=new te.Line(n,Se(Se({},p),{},{data:v})),this.linePlot.render())}}},_e,[],!1,null,"28890b66",null);Ee.options.__file="src/components/charts/cLine.vue";var Oe=Bt({name:"chartRender",components:{cPie:ie,cTable:Jt,cColumn:ue,cIndicatorCard:Ce,cLine:Ee.exports},props:{chartData:{type:Object,default:function(){return{}}}},data:function(){return{tplMap:{}}},created:function(){this.chartData.styleConfig||(this.chartData.styleConfig=JSON.parse(JSON.stringify(dt))),this.createTplMap()},computed:{computedTpl:function(){return this.tplMap[this.chartData.type]}},methods:{createTplMap:function(){this.tplMap=u(u(u(u(u({},lt.Table,"c-table"),lt.Pie,"c-pie"),lt.Column,"c-column"),lt.IndicatorCard,"c-indicator-card"),lt.Line,"c-line")}}},ce,[],!1,null,"54812d2c",null);Oe.options.__file="src/components/charts/chartRender.vue";const Te=Oe.exports;var Ie=Bt({name:"middleLayer",components:{cPie:ie,cTable:Jt,cColumn:ue,chartRender:Te,cIndicatorCard:Ce,defaultSeat:$t},props:{mode:{type:String,default:"design"},chartData:{type:Object,default:function(){return{}}}},data:function(){return{remarkPositionMap:ht}},created:function(){},computed:{isDesign:function(){return"design"===this.mode},showTitle:function(){return this.chartData.styleConfig&&(this.chartData.styleConfig.commongConfig.showTitle||this.chartData.styleConfig.commongConfig.showRemark)},computedTpl:function(){return this.chartData.data?"chart-render":"default-seat"}},methods:{changeTitleShow:function(t){var e=this;this.chartData.describeShow=t,this.$nextTick(function(){t&&e.$refs.chartInput.focus()})}}},Wt,[],!1,null,"abd821dc",null);Ie.options.__file="src/components/charts/middleLayer.vue";const Me=Ie.exports;o(2543);var Le=Bt({name:"canvasPanel",components:{GridLayout:jt.GridLayout,GridItem:jt.GridItem,middleLayer:Me},props:{gridLayout:{type:Array,default:function(){return[]}},previewFlag:{type:Boolean,default:!1}},data:function(){return{cols:12,draggable:!0,resizable:!0,responsive:!1,forceUpdateFlag:!0,index:0,cur:{},observer:null}},computed:{getPreviewFlag:function(){return this.previewFlag},viewLayout:{get:function(){return this.gridLayout},set:function(t){t.filter(function(t){return!t._id}).length||this.$emit("update:gridLayout",t)}}},watch:{gridLayout:function(t,e){var n=e.filter(function(t){return!!t._id}).map(function(t){return t._id}),r=t.filter(function(t){return!!t._id}),i=r.findIndex(function(t){return!n.includes(t._id)});-1!==i&&this.chartSelect(r[i]),this.viewLayout=t}},mounted:function(){var t=this,e=document.querySelector(".gridlayout");m(e,function(){var n=e.getBoundingClientRect().width;t.viewLayout.forEach(function(t){var e,r,i,o;n<=600?(t.ow=null!==(e=t.w)&&void 0!==e?e:t.ow,t.oy=null!==(r=t.y)&&void 0!==r?r:t.oy,t.w=12,t.h):(t.w=null!==(i=t.ow)&&void 0!==i?i:t.w,t.y=null!==(o=t.oy)&&void 0!==o?o:t.y,delete t.ow,delete t.oy)}),n<=600&&(t.forceUpdateFlag=!1,t.forceUpdateFlag=!0)})},methods:{resizedEvent:function(t){this.$emit("grid-resize",t)},chartSelect:function(t){this.gridLayout.forEach(function(t){t._select=!1}),t._select=!0,this.cur=t,this.$emit("chartSelect",t)}}},Ht,[],!1,null,"5d0bc8a8",null);Le.options.__file="src/components/canvasPanel.vue";const ke=Le.exports;var Ae=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"components-panel"},[n("div",{staticClass:"components-panel-header",on:{click:t.toggleDropdown}},[n("span",[t._v("添加图表")]),t._v(" "),n("i",{staticClass:"el-icon-arrow-down",class:{"is-expanded":t.isDropdownOpen}})]),t._v(" "),t.isDropdownOpen?n("div",{staticClass:"dropdown-overlay"},[n("div",{staticClass:"dropdown-container"},[n("div",{staticClass:"components-widgets"},t._l(t.widgets,function(e){return n("div",{key:e.className},[n("div",{staticClass:"indicator-title"},[t._v(t._s(e.name))]),t._v(" "),n("div",{staticClass:"components-item-warp",attrs:{draggable:"true",unselectable:"on"},on:{drag:function(n){return t.drag(e)},dragend:function(n){return t.dragend(e)}}},[n("chart-render",{attrs:{chartData:e}})],1)])}),0)])]):t._e()])};Ae._withStripped=!0;var Re={type:"Table",defaultRows:8,name:"交叉表",defaultCols:"whole",className:"component-type-cross-table",defaultImg:"http://172.31.28.85:3000/static/img/table-none.ca8daa.png",fields:[{label:"行/维度",isMust:!1,limitNum:null,type:"dimension",alias:"dimension",queryType:"rows",chooseFields:[{unitCode:"user_level",unitName:"用户等级",belongDimName:null,id:"user_level_1",name:"用户等级",originIdx:0,defineType:"dimension",originType:"dimension",alias:"dimension",queryType:"rows"},{unitCode:"behavior_date",unitName:"行为日期",belongDimName:null,id:"behavior_date_0",name:"行为日期",originIdx:0,defineType:"dimension",originType:"dimension",alias:"dimension",queryType:"rows"},{unitCode:"behavior_type",unitName:"行为类型",belongDimName:null,id:"behavior_type_2",name:"行为类型",originIdx:0,defineType:"dimension",originType:"dimension",alias:"dimension",queryType:"rows"}]},{label:"列/维度/度量",isMust:!1,limitNum:null,type:"any",alias:"measure",queryType:"columns",chooseFields:[{unitCode:"page_views",unitName:"页面浏览量",belongDimName:null,id:"page_views_1",name:"页面浏览量",originIdx:1,aggregatorType:"avg",defineType:"measure",originType:"any",alias:"measure",queryType:"columns"}]}],styleComp:{type:"c-table-style",styleConfig:{}},_id:"id_1757502661965",dataSetId:"USER_BEHAVIOR_FACT",data:{describe:"用户行为数据概览 - 包含页面浏览量、点击次数、停留时长、跳出率等关键指标",fields:{rows:["user_segment","user_level"],columns:[],values:["page_views","click_count","duration","bounce_rate"],valueInCols:!0},meta:[{field:"page_views",name:"页面浏览量"},{field:"click_count",name:"点击次数"},{field:"duration",name:"停留时长"},{field:"bounce_rate",name:"跳出率"},{field:"behavior_date",name:"行为日期"},{field:"user_segment",name:"用户分群"},{field:"user_level",name:"用户等级"},{field:"behavior_type",name:"行为类型"},{field:"device_type",name:"设备类型"}],data:[{page_views:1250,click_count:320,duration:180.5,bounce_rate:.25,behavior_date:"2023-01-15",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"PC"},{page_views:890,click_count:450,duration:245.8,bounce_rate:.15,behavior_date:"2023-01-16",user_segment:"老用户",user_level:"VIP",behavior_type:"点击",device_type:"移动端"},{page_views:2100,click_count:680,duration:320.2,bounce_rate:.08,behavior_date:"2023-01-17",user_segment:"老用户",user_level:"高级",behavior_type:"购买",device_type:"PC"},{page_views:1560,click_count:420,duration:195.6,bounce_rate:.22,behavior_date:"2023-01-18",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"平板"},{page_views:980,click_count:280,duration:165.3,bounce_rate:.18,behavior_date:"2023-01-19",user_segment:"老用户",user_level:"VIP",behavior_type:"搜索",device_type:"移动端"},{page_views:1350,click_count:380,duration:220.7,bounce_rate:.12,behavior_date:"2023-01-20",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"PC"},{page_views:1680,click_count:520,duration:280.4,bounce_rate:.09,behavior_date:"2023-01-21",user_segment:"老用户",user_level:"高级",behavior_type:"购买",device_type:"移动端"},{page_views:1120,click_count:340,duration:195.2,bounce_rate:.21,behavior_date:"2023-01-22",user_segment:"新用户",user_level:"普通",behavior_type:"点击",device_type:"平板"},{page_views:1980,click_count:620,duration:310.8,bounce_rate:.07,behavior_date:"2023-01-23",user_segment:"老用户",user_level:"VIP",behavior_type:"购买",device_type:"PC"},{page_views:1450,click_count:410,duration:240.6,bounce_rate:.14,behavior_date:"2023-01-24",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"移动端"},{page_views:820,click_count:260,duration:155.9,bounce_rate:.19,behavior_date:"2023-01-25",user_segment:"老用户",user_level:"普通",behavior_type:"搜索",device_type:"平板"},{page_views:1750,click_count:580,duration:295.3,bounce_rate:.11,behavior_date:"2023-01-26",user_segment:"老用户",user_level:"高级",behavior_type:"购买",device_type:"PC"},{page_views:1280,click_count:390,duration:210.5,bounce_rate:.16,behavior_date:"2023-01-27",user_segment:"新用户",user_level:"普通",behavior_type:"点击",device_type:"移动端"},{page_views:920,click_count:290,duration:170.8,bounce_rate:.17,behavior_date:"2023-01-28",user_segment:"老用户",user_level:"VIP",behavior_type:"搜索",device_type:"平板"},{page_views:1620,click_count:510,duration:275.2,bounce_rate:.1,behavior_date:"2023-01-29",user_segment:"老用户",user_level:"高级",behavior_type:"购买",device_type:"PC"},{page_views:1380,click_count:420,duration:225.7,bounce_rate:.13,behavior_date:"2023-01-30",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"移动端"},{page_views:1050,click_count:320,duration:185.4,bounce_rate:.2,behavior_date:"2023-01-31",user_segment:"老用户",user_level:"普通",behavior_type:"点击",device_type:"平板"},{page_views:1890,click_count:600,duration:305.1,bounce_rate:.08,behavior_date:"2023-02-01",user_segment:"老用户",user_level:"VIP",behavior_type:"购买",device_type:"PC"},{page_views:1150,click_count:350,duration:200.3,bounce_rate:.15,behavior_date:"2023-02-02",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"移动端"}]},x:0,y:0,w:12,h:8,i:"0",originCol:12,originWidth:12,_select:!0,moved:!1,describe:"用户行为数据概览 - 包含页面浏览量、点击次数、停留时长、跳出率等关键指标",describeShow:!1,styleConfig:{commongConfig:{showTitle:!1,showRemark:!1,remark:"",remarkPosition:1,backgroundColor:"#fff",mergeCells:!1,pagination:!1}}},De={type:"Column",defaultRows:8,name:"柱图",defaultCols:"half",className:"component-type-bar",defaultImg:"http://172.31.28.85:3000/static/img/column-none.a609dd.png",fields:[{label:"类别轴/维度",isMust:!0,limitNum:null,type:"dimension",alias:"dimension",queryType:"rows",chooseFields:[{unitCode:"user_level",unitName:"用户等级",belongDimName:null,id:"user_level_0",name:"用户等级",originIdx:0,defineType:"dimension",originType:"dimension",alias:"dimension",queryType:"rows"}]},{label:"值轴/度量",isMust:!0,limitNum:null,type:"measure",alias:"measure",queryType:"values",chooseFields:[{unitCode:"page_views",unitName:"页面浏览量",belongDimName:null,id:"page_views_0",name:"页面浏览量",originIdx:1,aggregatorType:"avg",defineType:"measure",originType:"measure",alias:"measure",queryType:"values"}]},{label:"颜色图例/维度",isMust:!1,limitNum:1,type:"dimension",alias:"dimension",queryType:"columns",chooseFields:[{unitCode:"behavior_date",unitName:"行为日期",belongDimName:null,id:"behavior_date_0",name:"行为日期",originIdx:2,defineType:"dimension",originType:"dimension",alias:"dimension",queryType:"columns"}]}],styleComp:{type:"c-column-style",styleConfig:{}},_id:"id_1757646455428",dataSetId:"USER_BEHAVIOR_FACT",data:{describe:"用户行为数据概览 - 包含页面浏览量、点击次数、停留时长、跳出率等关键指标",meta:[{field:"page_views",name:"页面浏览量"},{field:"click_count",name:"点击次数"},{field:"duration",name:"停留时长"},{field:"bounce_rate",name:"跳出率"},{field:"behavior_date",name:"行为日期"},{field:"user_segment",name:"用户分群"},{field:"user_level",name:"用户等级"},{field:"behavior_type",name:"行为类型"},{field:"device_type",name:"设备类型"}],data:[{page_views:1250,click_count:320,duration:180.5,bounce_rate:.25,behavior_date:"2023-01-15",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"PC",xField:"普通",yField:1250,seriesField:"2023-01-15"},{page_views:1250,click_count:320,duration:180.5,bounce_rate:.25,behavior_date:"2023-01-15",user_segment:"新用户",user_level:"VIP",behavior_type:"浏览",device_type:"PC",xField:"普通",yField:1250,seriesField:"2023-01-15"},{page_views:1250,click_count:320,duration:180.5,bounce_rate:.25,behavior_date:"2023-01-15",user_segment:"新用户",user_level:"高级",behavior_type:"浏览",device_type:"PC",xField:"普通",yField:1250,seriesField:"2023-01-15"},{page_views:1250,click_count:320,duration:180.5,bounce_rate:.25,behavior_date:"2023-01-16",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"PC",xField:"普通",yField:1250,seriesField:"2023-01-16"},{page_views:1250,click_count:320,duration:180.5,bounce_rate:.25,behavior_date:"2023-01-16",user_segment:"新用户",user_level:"VIP",behavior_type:"浏览",device_type:"PC",xField:"普通",yField:1250,seriesField:"2023-01-16"},{page_views:1250,click_count:320,duration:180.5,bounce_rate:.25,behavior_date:"2023-01-16",user_segment:"新用户",user_level:"高级",behavior_type:"浏览",device_type:"PC",xField:"普通",yField:1250,seriesField:"2023-01-16"}]},x:4,y:0,w:6,h:8,i:"0",originCol:12,originWidth:6,_select:!0,moved:!1,describe:"用户行为数据概览 - 包含页面浏览量、点击次数、停留时长、跳出率等关键指标",describeShow:!1,styleConfig:{commongConfig:{showTitle:!1,showRemark:!1,remark:"",remarkPosition:1,backgroundColor:"#fff",mergeCells:!1,pagination:!1,indicatorIcon:!1,indicatorStyle:1,columnBackgroundOpacity:100,gradientEffect:!1,columnWidthRatio:80,labelConfig:{show:!1,showAll:!1,position:"auto",textConfig:{fontSize:12,isBold:!1,color:"#000",isItalic:!1}},legendConfig:{show:!0,position:"top"}},helperData:{indicatorRowIconMap:{},fieldMap:{}}}},Pe={type:"Pie",defaultRows:8,name:"饼图",defaultCols:"half",className:"component-type-pie",defaultImg:"http://172.31.28.85:3000/static/img/pie-none.3cb81d.png",fields:[{label:"扇区标签/维度",isMust:!0,limitNum:1,type:"dimension",queryType:"rows",chooseFields:[{unitCode:"behavior_type",unitName:"行为类型",belongDimName:null,id:"behavior_type_0",name:"行为类型",originIdx:0,defineType:"dimension",originType:"dimension",queryType:"rows"}]},{label:"扇区角度/度量",isMust:!0,limitNum:10,type:"measure",queryType:"columns",chooseFields:[{unitCode:"click_count",unitName:"点击次数",belongDimName:null,id:"click_count_0",name:"点击次数",originIdx:1,aggregatorType:"avg",defineType:"measure",originType:"measure",queryType:"columns"}]}],styleComp:{type:"c-pie-style",styleConfig:{}},_id:"id_1757314937506",dataSetId:"USER_BEHAVIOR_FACT",data:{describe:"用户行为数据概览 - 包含页面浏览量、点击次数、停留时长、跳出率等关键指标",fields:{rows:["behavior_date","user_segment","user_level"],columns:["behavior_type","device_type"],values:["page_views","click_count","duration","bounce_rate"],valueInCols:!0},meta:[{field:"page_views",name:"页面浏览量"},{field:"click_count",name:"点击次数"},{field:"duration",name:"停留时长"},{field:"bounce_rate",name:"跳出率"},{field:"behavior_date",name:"行为日期"},{field:"user_segment",name:"用户分群"},{field:"user_level",name:"用户等级"},{field:"behavior_type",name:"行为类型"},{field:"device_type",name:"设备类型"}],data:[{page_views:1250,click_count:320,duration:180.5,bounce_rate:.25,behavior_date:"2023-01-15",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"PC"},{page_views:890,click_count:450,duration:245.8,bounce_rate:.15,behavior_date:"2023-01-16",user_segment:"老用户",user_level:"VIP",behavior_type:"点击",device_type:"移动端"},{page_views:2100,click_count:680,duration:320.2,bounce_rate:.08,behavior_date:"2023-01-17",user_segment:"老用户",user_level:"高级",behavior_type:"购买",device_type:"PC"},{page_views:1560,click_count:420,duration:195.6,bounce_rate:.22,behavior_date:"2023-01-18",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"平板"},{page_views:980,click_count:280,duration:165.3,bounce_rate:.18,behavior_date:"2023-01-19",user_segment:"老用户",user_level:"VIP",behavior_type:"搜索",device_type:"移动端"}]},x:6,y:0,w:6,h:8,i:"2",originCol:12,originWidth:6,_select:!1,moved:!1,describe:"用户行为数据概览 - 包含页面浏览量、点击次数、停留时长、跳出率等关键指标",describeShow:!1},Ne={type:"Indicator",defaultRows:8,name:"指标看板",defaultCols:"half",className:"component-type-indicator-card",defaultImg:"http://172.31.28.85:3000/static/img/indicator-card.b7982b.png",fields:[{label:"看板标签/维度",isMust:!1,limitNum:1,type:"dimension",alias:"dimension",queryType:"rows",chooseFields:[{unitCode:"device_type",unitName:"设备类型",belongDimName:null,id:"device_type_0",name:"设备类型",originIdx:0,defineType:"dimension",originType:"dimension",alias:"dimension",queryType:"rows"}]},{label:"看板指标/度量",isMust:!0,limitNum:null,type:"measure",alias:"measure",queryType:"values",chooseFields:[{unitCode:"page_views",unitName:"页面浏览量",belongDimName:null,id:"page_views_0",name:"页面浏览量",originIdx:1,aggregatorType:"avg",defineType:"measure",originType:"measure",alias:"measure",queryType:"values"}]}],styleComp:{type:"c-indicator-style",styleConfig:{}},_id:"id_1757569952453",dataSetId:"USER_BEHAVIOR_FACT",data:{describe:"用户行为数据概览 - 包含页面浏览量、点击次数、停留时长、跳出率等关键指标",fields:{rows:["behavior_date","user_segment","user_level"],columns:["behavior_type","device_type"],values:["page_views","click_count","duration","bounce_rate"],valueInCols:!0},meta:[{field:"page_views",name:"页面浏览量"},{field:"click_count",name:"点击次数"},{field:"duration",name:"停留时长"},{field:"bounce_rate",name:"跳出率"},{field:"behavior_date",name:"行为日期"},{field:"user_segment",name:"用户分群"},{field:"user_level",name:"用户等级"},{field:"behavior_type",name:"行为类型"},{field:"device_type",name:"设备类型"}],data:[{page_views:1250,click_count:320,duration:180.5,bounce_rate:.25,behavior_date:"2023-01-15",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"PC"},{page_views:890,click_count:450,duration:245.8,bounce_rate:.15,behavior_date:"2023-01-16",user_segment:"老用户",user_level:"SVIP",behavior_type:"点击",device_type:"移动端"},{page_views:2100,click_count:680,duration:320.2,bounce_rate:.08,behavior_date:"2023-01-17",user_segment:"老用户",user_level:"高级",behavior_type:"购买",device_type:"PC"},{page_views:1560,click_count:420,duration:195.6,bounce_rate:.22,behavior_date:"2023-01-18",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"平板"},{page_views:980,click_count:280,duration:165.3,bounce_rate:.18,behavior_date:"2023-01-19",user_segment:"老用户",user_level:"VIP",behavior_type:"搜索",device_type:"移动端"}]},x:3,y:0,w:6,h:8,i:"0",originCol:12,originWidth:6,_select:!0,moved:!1,describe:"用户行为数据概览 - 包含页面浏览量、点击次数、停留时长、跳出率等关键指标",describeShow:!1,styleConfig:{helperData:{indicatorRowIconMap:{}},commongConfig:{showTitle:!1,showRemark:!1,remark:"",remarkPosition:1,backgroundColor:"#fff",mergeCells:!1,pagination:!1,indicatorIcon:!1,indicatorStyle:1}}},Be={type:"Line",defaultRows:8,name:"折线图",defaultCols:"half",className:"component-type-line",defaultImg:"http://172.31.28.85:3000/static/img/line-none.5b0a59.png",fields:[{label:"类别轴/维度",isMust:!0,limitNum:null,type:"dimension",alias:"dimension",queryType:"rows",chooseFields:[{unitCode:"behavior_date",unitName:"行为日期",belongDimName:null,id:"behavior_date_0",name:"行为日期",originIdx:0,defineType:"dimension",originType:"dimension",alias:"dimension",queryType:"rows"}]},{label:"值轴/度量",isMust:!0,limitNum:null,type:"measure",alias:"measure",queryType:"values",chooseFields:[{unitCode:"click_count",unitName:"点击次数",belongDimName:null,id:"click_count_0",name:"点击次数",originIdx:1,aggregatorType:"avg",defineType:"measure",originType:"measure",alias:"measure",queryType:"values"},{unitCode:"page_views",unitName:"页面浏览量",belongDimName:null,id:"page_views_1",name:"页面浏览量",originIdx:1,aggregatorType:"avg",defineType:"measure",originType:"measure",alias:"measure",queryType:"values"}]},{label:"颜色图例/维度",isMust:!1,limitNum:1,type:"dimension",alias:"dimension",queryType:"columns",chooseFields:[]}],styleComp:{type:"c-line-style",styleConfig:{}},_id:"id_1757314952994",dataSetId:"USER_BEHAVIOR_FACT",data:{describe:"用户行为数据概览 - 包含页面浏览量、点击次数、停留时长、跳出率等关键指标",fields:{rows:["behavior_date","user_segment","user_level"],columns:["behavior_type","device_type"],values:["page_views","click_count","duration","bounce_rate"],valueInCols:!0},meta:[{field:"page_views",name:"页面浏览量"},{field:"click_count",name:"点击次数"},{field:"duration",name:"停留时长"},{field:"bounce_rate",name:"跳出率"},{field:"behavior_date",name:"行为日期"},{field:"user_segment",name:"用户分群"},{field:"user_level",name:"用户等级"},{field:"behavior_type",name:"行为类型"},{field:"device_type",name:"设备类型"}],data:[{page_views:1250,click_count:321,duration:180.5,bounce_rate:.25,behavior_date:"2023-01-15",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"PC"},{page_views:890,click_count:450,duration:245.8,bounce_rate:.15,behavior_date:"2023-01-16",user_segment:"老用户",user_level:"VIP",behavior_type:"点击",device_type:"移动端"},{page_views:2100,click_count:680,duration:320.2,bounce_rate:.08,behavior_date:"2023-01-17",user_segment:"老用户",user_level:"高级",behavior_type:"购买",device_type:"PC"},{page_views:1560,click_count:420,duration:195.6,bounce_rate:.22,behavior_date:"2023-01-18",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"平板"},{page_views:980,click_count:280,duration:165.3,bounce_rate:.18,behavior_date:"2023-01-19",user_segment:"老用户",user_level:"VIP",behavior_type:"搜索",device_type:"移动端"}]},x:6,y:8,w:6,h:8,i:"4",originCol:12,originWidth:6,_select:!0,moved:!1,describe:"用户行为数据概览 - 包含页面浏览量、点击次数、停留时长、跳出率等关键指标",describeShow:!1},ze=[Re,De,Pe,Ne,Be];function Fe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function He(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fe(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var je=Bt({name:"componentsPanel",components:{chartRender:Te},data:function(){return{list:[],widgets:ze,isDropdownOpen:!1}},created:function(){for(var t in bt)this.list.push(He({type:t},bt[t]))},mounted:function(){document.addEventListener("click",this.handleGlobalClick)},beforeDestroy:function(){document.removeEventListener("click",this.handleGlobalClick)},methods:{toggleDropdown:function(){this.isDropdownOpen=!this.isDropdownOpen},closeDropdown:function(){this.isDropdownOpen=!1},handleGlobalClick:function(t){this.$el.contains(t.target)||this.closeDropdown()},drag:function(t){this.$emit("drag",JSON.parse(JSON.stringify(t)))},dragend:function(t){t._id="id_".concat(Date.now()),this.$emit("dragend",JSON.parse(JSON.stringify(t))),this.closeDropdown()}}},Ae,[],!1,null,"377b9fae",null);je.options.__file="src/components/componentsPanel.vue";const We=je.exports;var Ge=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"setting-panel"},[n("div",{staticClass:"setting-panel-wrapper",class:{"close-setting-panel":!t.settingPanelShow}},[n("div",{staticClass:"setting-design-panel",style:{height:t.settingPanelShow?"54.5px":"48px"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.selectItem._id&&t.settingPanelShow,expression:"selectItem._id && settingPanelShow"}],staticClass:"change-chart-type-menu",on:{click:t.toggleChartTypeDropdown}},[n("div",{staticClass:"components-item"},[n("div",{class:t.selectItem.className})]),t._v(" "),n("span",[t._v(t._s(t.selectItem.name))]),t._v(" "),n("i",{staticClass:"el-icon-caret-bottom",class:{"is-expanded":t.isChartTypeDropdownOpen}})]),t._v(" "),t.isChartTypeDropdownOpen?n("div",{staticClass:"chart-type-dropdown-overlay",on:{click:t.closeChartTypeDropdown}},[n("div",{staticClass:"chart-type-dropdown-container",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"chart-type-widgets"},t._l(t.availableChartTypes,function(e){return n("div",{key:e.type,staticClass:"chart-type-item",on:{click:function(n){return t.changeChartType(e)}}},[n("div",{staticClass:"chart-type-icon"},[n("div",{class:e.className})]),t._v(" "),n("span",{staticClass:"chart-type-name"},[t._v(t._s(e.name))])])}),0)])]):t._e(),t._v(" "),n("i",{staticClass:"el-icon-s-unfold self-icon",on:{click:t.tabPanelCloseOrOpen}})]),t._v(" "),t.settingPanelShow?[n("div",{staticClass:"ui-schema-antd-tabs"},[n("div",{staticClass:"ui-schema-antd-tabs-top-bar"},[n("div",{staticClass:"ui-schema-antd-tabs-nav-container"},t._l(t.tabList,function(e){return n("div",{key:e.key,staticClass:"ui-schema-antd-tabs-tab",class:{"ui-schema-antd-tabs-tab-active":t.activeTab===e.key},on:{click:function(n){return t.switchTab(e.key)}}},[t._v(t._s(e.label))])}),0)])]),t._v(" "),n("div",{staticClass:"ui-schema-antd-tabs-content"},[t.activeTab===t.TAB_TYPES.FIELD?n("field-tab",{attrs:{fields:t.selectItem.fields||[],selectItem:t.selectItem},on:{updateDashboard:t.updateDashboard}}):t.activeTab===t.TAB_TYPES.STYLE?n("style-tab",{attrs:{"select-item":t.selectItem},on:{styleUpdate:t.handleStyleUpdate}}):t.activeTab===t.TAB_TYPES.ADVANCED?n("div",{staticClass:"tab-content"},[n("p",[t._v("高级配置内容")])]):t._e()],1)]:t._e()],2),t._v(" "),n("data-panel",{attrs:{selectItem:t.selectItem}})],1)};Ge._withStripped=!0;var Ve=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"data-panel-cube-wrapper",class:{"close-setting-panel":!t.settingPanelShow}},[n("div",{staticClass:"data-panel-cube-header"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.settingPanelShow,expression:"settingPanelShow"}]},[t._v("数据")]),t._v(" "),n("i",{staticClass:"el-icon-s-unfold self-icon",on:{click:t.tabPanelCloseOrOpen}})]),t._v(" "),n("div",{staticClass:"tree-wrapper"},[t.selectItem._id&&t.settingPanelShow?[n("cube-query",{on:{change:t.factChange},model:{value:t.selectItem.dataSetId,callback:function(e){t.$set(t.selectItem,"dataSetId",e)},expression:"selectItem.dataSetId"}}),t._v(" "),n("div",{staticClass:"data-panel-dimension-tree"},[t._m(0),t._v(" "),t.selectItem.dataSetId?[t.selectItem.dataSetId?n("el-collapse",{model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},t._l(t.dimensionList,function(e){return n("el-collapse-item",{key:e.name,attrs:{title:e.name,name:e.name}},[n("ul",{staticClass:"ui-schema-antd-tree"},[n("draggable",{attrs:{filter:".isFilter",sort:!1,"data-type":"dimension",group:{name:"any",pull:"clone",put:!1},animation:"300"},model:{value:e.list,callback:function(n){t.$set(e,"list",n)},expression:"el.list"}},t._l(e.list,function(e,r){return n("li",{key:e.id+"_"+r,staticClass:"drag-li",class:{isFilter:t.hasChildren(e)}},[n("div",{staticClass:"field-tree-left"},[n("div",{staticClass:"field-tree-item-warp"},[t.hasChildren(e)?n("i",{staticClass:"el-icon-caret-right",class:{"open-rotate":e.isOpen},on:{click:function(n){return t.setOpenIcon(e)}}}):t._e(),t._v(" "),n("span",{staticClass:"field-tree-text"},[t._v(t._s(e.name))])]),t._v(" "),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.isOpen&&t.hasChildren(e),expression:"i.isOpen && hasChildren(i)"}]},[n("draggable",{attrs:{"data-type":"dimension",sort:!1,group:{name:"any",pull:"clone",put:!1},animation:"300"},model:{value:e.children,callback:function(n){t.$set(e,"children",n)},expression:"i.children"}},t._l(e.children,function(e,r){return n("li",{key:e.id+"_"+r,staticClass:"drag-li"},[n("div",{staticClass:"field-tree-item-warp"},[n("span",{staticClass:"field-tree-text"},[t._v(t._s(e.name))])])])}),0)],1)])])}),0)],1)])}),1):t._e(),t._v(" "),n("ul",{staticClass:"ui-schema-antd-tree"},[n("draggable",{attrs:{filter:".isFilter",sort:!1,"data-type":"dimension",group:{name:"any",pull:"clone",put:!1},animation:"300"},model:{value:t.degenerationList,callback:function(e){t.degenerationList=e},expression:"degenerationList"}},t._l(t.degenerationList,function(e,r){return n("li",{key:e.id+"_"+r,staticClass:"drag-li",class:{isFilter:t.hasChildren(e)}},[n("div",{staticClass:"field-tree-left"},[n("div",{staticClass:"field-tree-item-warp"},[t.hasChildren(e)?n("i",{staticClass:"el-icon-caret-right",class:{"open-rotate":e.isOpen},on:{click:function(n){return t.setOpenIcon(e)}}}):t._e(),t._v(" "),n("span",{staticClass:"field-tree-text"},[t._v(t._s(e.name))])]),t._v(" "),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.isOpen&&t.hasChildren(e),expression:"i.isOpen && hasChildren(i)"}]},[n("draggable",{attrs:{"data-type":"dimension",sort:!1,group:{name:"any",pull:"clone",put:!1},animation:"300"},model:{value:e.children,callback:function(n){t.$set(e,"children",n)},expression:"i.children"}},t._l(e.children,function(e,r){return n("li",{key:e.id+"_"+r,staticClass:"drag-li"},[n("div",{staticClass:"field-tree-item-warp"},[n("span",{staticClass:"field-tree-text"},[t._v(t._s(e.name))])])])}),0)],1)])])}),0)],1)]:t._e()],2),t._v(" "),n("div",{staticClass:"data-panel-dimension-tree"},[t._m(1),t._v(" "),t.selectItem.dataSetId?n("ul",{staticClass:"ui-schema-antd-tree"},[n("draggable",{attrs:{filter:".isFilter","data-type":"measure",sort:!1,group:{name:"any",pull:"clone",put:!1},animation:"300"},model:{value:t.measures,callback:function(e){t.measures=e},expression:"measures"}},t._l(t.measures,function(e){return n("li",{key:e.id,staticClass:"drag-li",class:{isFilter:t.hasChildren(e)}},[n("div",{staticClass:"field-tree-left"},[n("div",{staticClass:"field-tree-item-warp"},[t.hasChildren(e)?n("i",{staticClass:"el-icon-caret-right",class:{"open-rotate":e.isOpen},on:{click:function(n){return t.setOpenIcon(e)}}}):t._e(),t._v(" "),n("span",{staticClass:"field-tree-text"},[t._v(t._s(e.name))])]),t._v(" "),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.isOpen&&t.hasChildren(e),expression:"i.isOpen && hasChildren(i)"}]},[n("draggable",{attrs:{"data-type":"measure",sort:!1,group:{name:"any",pull:"clone",put:!1},animation:"300"},model:{value:e.children,callback:function(n){t.$set(e,"children",n)},expression:"i.children"}},t._l(e.children,function(e){return n("li",{key:e.id,staticClass:"drag-li",attrs:{ghostClass:"measure"}},[n("div",{staticClass:"field-tree-item-warp"},[n("span",{staticClass:"field-tree-text"},[t._v(t._s(e.name))])])])}),0)],1)])])}),0)],1):t._e()])]:t._e()],2)])};Ve._withStripped=!0;var $e=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"cube-query"},[n("div",{staticClass:"J-select-cube"},[n("div",{staticClass:"guid-tip-container"},[n("div",{staticClass:"select"},[n("div",{staticClass:"input",class:{"select-open":t.isOpen},on:{click:t.openMenuClick}},[n("span",{staticClass:"J-current",attrs:{title:t.getSelectName}},[t._v(t._s(t.getSelectName))]),t._v(" "),n("i",{staticClass:"el-icon-caret-bottom"})]),t._v(" "),t.isOpen?n("div",{staticClass:"dropdown-menu"},[n("div",{staticClass:"dropdown-position-wrapper"},[n("div",{staticClass:"dropdown-menu-data"},[n("div",{staticClass:"cube-file-tree"},[n("ul",{staticClass:"ui-schema-antd-tree"},t._l(t.list,function(e){return n("li",{class:{"active-li":e.id===t.value},on:{click:function(n){return t.selectClick(e)}}},[t._v("\n "+t._s(e.label)+"\n ")])}),0)])])]),t._v(" "),n("div",{staticClass:"dropdown-menu-oper"})]):t._e()])])])])};function Ue(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Ye(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ue(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}$e._withStripped=!0;var Xe={code:200,message:"success",data:[{factCode:"SALES_FACT",factName:"销售事实表"},{factCode:"ORDER_FACT",factName:"订单事实表"},{factCode:"USER_BEHAVIOR_FACT",factName:"用户行为事实表"}]},qe=(Xe.data.map(function(t){return Ye(Ye({},t),{},{id:t.factCode,label:t.factName})}),function(){var t=h(f().mark(function t(){var e=arguments;return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,new Promise(function(t){return setTimeout(t,300)});case 1:return t.abrupt("return",{data:Xe.data});case 2:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}());function Ke(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Ze(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ke(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Je=Bt({name:"cubeQuery",props:{value:[String,Number]},data:function(){return{isOpen:!1,list:[]}},computed:{getSelectName:function(){var t,e=this,n=this.list.filter(function(t){return t.id===e.value})[0];return this.value&&this.$emit("change",this.value),null!==(t=null==n?void 0:n.label)&&void 0!==t?t:"请选择数据集"}},created:function(){this.getFactInfos()},methods:{getFactInfos:function(){var t=this;return h(f().mark(function e(){var n,r;return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,qe();case 1:n=e.sent,r=n.data,t.list=(null!=r?r:[]).map(function(t){return Ze(Ze({},t),{},{id:t.factCode,label:t.factName})});case 2:case"end":return e.stop()}},e)}))()},openHandler:function(t){this.isOpen=t},selectClick:function(t){var e=t.id;this.$emit("input",e),this.$emit("change",e),this.openMenuClick(!1)},openMenuClick:function(){this.openHandler(!this.isOpen)}}},$e,[],!1,null,"5c84f79a",null);Je.options.__file="src/components/cubeQuery.vue";const Qe=Je.exports;var tn=o(432),en=o.n(tn),nn=o(8714),rn=o.n(nn);var on={code:200,message:"success",data:{dimInfos:[{unitCode:"time_year",unitName:"年份",belongDimName:null},{unitCode:"time_month",unitName:"月份",belongDimName:null},{unitCode:"time_quarter",unitName:"季度",belongDimName:null},{unitCode:"time_date",unitName:"日期",belongDimName:null},{unitCode:"geo_region",unitName:"地区",belongDimName:null},{unitCode:"geo_city",unitName:"城市",belongDimName:null},{unitCode:"geo_province",unitName:"省份",belongDimName:null},{unitCode:"prod_category",unitName:"产品类别",belongDimName:null},{unitCode:"prod_brand",unitName:"品牌",belongDimName:null},{unitCode:"prod_name",unitName:"产品名称",belongDimName:null},{unitCode:"cust_segment",unitName:"客户细分",belongDimName:null},{unitCode:"cust_type",unitName:"客户类型",belongDimName:null},{unitCode:"order_id",unitName:"订单ID",belongDimName:null},{unitCode:"customer_id",unitName:"客户ID",belongDimName:null},{unitCode:"product_id",unitName:"产品ID",belongDimName:null}],measureInfos:[{unitCode:"sales_amount",unitName:"销售金额",belongDimName:null},{unitCode:"sales_quantity",unitName:"销售数量",belongDimName:null},{unitCode:"profit_amount",unitName:"利润金额",belongDimName:null},{unitCode:"discount_amount",unitName:"折扣金额",belongDimName:null},{unitCode:"order_count",unitName:"订单数量",belongDimName:null},{unitCode:"customer_count",unitName:"客户数量",belongDimName:null}]}},an={code:200,message:"success",data:{dimInfos:[{unitCode:"order_date",unitName:"订单日期",belongDimName:null},{unitCode:"delivery_date",unitName:"交付日期",belongDimName:null},{unitCode:"order_status",unitName:"订单状态",belongDimName:null},{unitCode:"order_type",unitName:"订单类型",belongDimName:null},{unitCode:"payment_method",unitName:"支付方式",belongDimName:null},{unitCode:"customer_level",unitName:"客户等级",belongDimName:null},{unitCode:"customer_source",unitName:"客户来源",belongDimName:null},{unitCode:"order_no",unitName:"订单号",belongDimName:null},{unitCode:"customer_id",unitName:"客户ID",belongDimName:null}],measureInfos:[{unitCode:"order_amount",unitName:"订单金额",belongDimName:null},{unitCode:"order_quantity",unitName:"订单数量",belongDimName:null},{unitCode:"shipping_cost",unitName:"运费",belongDimName:null},{unitCode:"tax_amount",unitName:"税费",belongDimName:null}]}},sn={code:200,message:"success",data:{dimInfos:[{unitCode:"behavior_date",unitName:"行为日期",belongDimName:null},{unitCode:"behavior_hour",unitName:"行为小时",belongDimName:null},{unitCode:"behavior_type",unitName:"行为类型",belongDimName:null},{unitCode:"page_type",unitName:"页面类型",belongDimName:null},{unitCode:"device_type",unitName:"设备类型",belongDimName:null},{unitCode:"user_segment",unitName:"用户细分",belongDimName:null},{unitCode:"user_level",unitName:"用户等级",belongDimName:null},{unitCode:"user_id",unitName:"用户ID",belongDimName:null},{unitCode:"session_id",unitName:"会话ID",belongDimName:null}],measureInfos:[{unitCode:"page_views",unitName:"页面浏览量",belongDimName:null},{unitCode:"click_count",unitName:"点击次数",belongDimName:null},{unitCode:"duration",unitName:"停留时长",belongDimName:null},{unitCode:"bounce_rate",unitName:"跳出率",belongDimName:null}]}},ln=function(t){return{SALES_FACT:on,ORDER_FACT:an,USER_BEHAVIOR_FACT:sn}[t]||on},un=function(){var t=h(f().mark(function t(){var e,n,r,i=arguments;return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},t.next=1,new Promise(function(t){return setTimeout(t,500)});case 1:return n=e.wid,r=ln(n),t.abrupt("return",{data:r.data});case 2:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}();function cn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function hn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?cn(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var dn=o(2543);var fn=Bt({name:"dataPanel",props:{selectItem:{type:Object,default:function(){return{}}}},components:{cubeQuery:Qe,draggable:en()},data:function(){return{activeNames:[],settingPanelShow:!0,dimensions:[],dimensionList:[],degenerationList:[],measures:[]}},computed:hn(hn({},(0,nn.mapState)(["curPanelChart"])),{},{hasChildren:function(){return function(t){var e;return null===(e=t.children)||void 0===e?void 0:e.length}}}),methods:hn(hn({},(0,nn.mapMutations)(["setDashboardDesignerWidth"])),{},{factChange:function(t){var e=this;return h(f().mark(function n(){var r,i,o,a,s,l,u,c,h,d;return f().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=1,un({wid:t});case 1:for(u in r=n.sent,i=r.data,o=i.dimInfos,a=i.measureInfos,(s=function(t,n){e[n]=t.map(function(t){return hn(hn({},t),{},{id:t.unitCode,name:t.unitName})})})(o,"dimensions"),s(a,"measures"),l=dn.groupBy(e.dimensions,function(t){return t.belongDimName}),e.dimensionList=[],e.degenerationList=[],e.activeNames=[],l)(c={}).name=u,c.list=l[u],"null"==u?e.degenerationList=c.list:e.dimensionList.push(c);n.next=3;break;case 2:n.prev=2,d=n.catch(0),h=d.errmsg,e.$message.error(h);case 3:case"end":return n.stop()}},n,null,[[0,2]])}))()},tabPanelCloseOrOpen:function(){this.settingPanelShow=!this.settingPanelShow,this.setDashboardDesignerWidth(this.settingPanelShow?-140:140)},setOpenIcon:function(t){this.$set(t,"isOpen",!t.isOpen)}})},Ve,[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"data-panel-tree-title"},[n("span",[t._v("维度")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"data-panel-tree-title"},[n("span",[t._v("度量")])])}],!1,null,"3eb740cc",null);fn.options.__file="src/components/dataPanel.vue";const pn=fn.exports;var vn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field-tab-content"},[t._l(t.fields,function(e,r){return n("div",{key:r+"h",staticClass:"areas-wrapper"},[n("div",{staticClass:"field-area-wrapper"},[n("div",{staticClass:"field-area-header"},[n("div",{staticClass:"area-name"},[n("i",{directives:[{name:"show",rawName:"v-show",value:e.isMust,expression:"i.isMust"}],staticClass:"require-icon"},[t._v("*")]),t._v(" "),n("span",[t._v(t._s(e.label))])]),t._v(" "),n("div",[e.limitNum?n("span",[t._v(t._s(e.chooseFields.length)+" / "+t._s(e.limitNum)+" ")]):t._e()])]),t._v(" "),n("div",{staticClass:"field-area-body"},[e.chooseFields.length?t._e():n("div",{staticClass:"blank-area-tip"},[t._v("拖动数据字段至此处")]),t._v(" "),n("draggable",{class:{"drag-warp":!e.chooseFields.length},attrs:{filter:".blank-area-tip",group:"any",animation:"300"},on:{add:function(n){return t.handleDragUpdate(n,e,r)}},model:{value:e.chooseFields,callback:function(n){t.$set(e,"chooseFields",n)},expression:"i.chooseFields"}},t._l(t.chooseFieldsHandler(e.chooseFields,r),function(i,o){return n("div",{key:i.id+"_"+r+"_"+o,staticClass:"sort-list-item drag-li",attrs:{"data-type":i.defineType}},[n("div",{staticClass:"field-box-wrapper"},[n("div",{staticClass:"dimension-field-box",class:["any","measure"].includes(i.defineType)?"measure-border":"dimension-border"},[n("div",[n("span",[t._v(t._s(i.name))]),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:i.aggregatorType,expression:"v.aggregatorType"}]},[t._v("("+t._s(t.aggregatorMap[i.aggregatorType])+")")])]),t._v(" "),n("div",{staticClass:"right-icon"},[n("c-dropdown",{model:{value:i.aggregatorType,callback:function(e){t.$set(i,"aggregatorType",e)},expression:"v.aggregatorType"}},[n("i",{directives:[{name:"show",rawName:"v-show",value:"dimension"!==i.defineType,expression:"v.defineType !== 'dimension'"}],staticClass:"el-icon-caret-bottom"})]),t._v(" "),n("i",{staticClass:"el-icon-delete",on:{click:function(n){return t.handleDeleteChooseFields(e,o)}}})],1)])])])}),0)],1)])])}),t._v(" "),n("div",{staticClass:"update-wrapper"},[n("div",{staticClass:"guid-tip-container"},[n("el-button",{attrs:{type:"primary"},on:{click:t.handleUpdateDashboard}},[t._v("更新")])],1)])],2)};vn._withStripped=!0;var gn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dropdown",{attrs:{trigger:"click"}},[n("span",{staticClass:"el-dropdown-link"},[t._t("default")],2),t._v(" "),n("el-dropdown-menu",{staticClass:"c-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.listView,function(e){return n("el-dropdown-item",{key:e.type,class:{"select-item":t.value===e.type},nativeOn:{click:function(n){return t.command(e)}}},[t._v("\n "+t._s(e.name)+"\n ")])}),1)],1)};gn._withStripped=!0;var mn=Bt({name:"cDropdown",props:{list:{type:Array,default:function(){return[]}},value:{type:String,default:""}},data:function(){return{listView:this.list}},created:function(){for(var t in Q)this.listView.push({name:Q[t],type:t})},methods:{command:function(t){this.$emit("input",t.type)}}},gn,[],!1,null,"7c6a7234",null);mn.options.__file="src/components/base/cDropdown.vue";const yn=mn.exports;var bn={code:200,message:"success",data:{describe:"销售数据概览 - 包含销售金额、数量、利润等关键指标",meta:[{field:"number",name:"数量"},{field:"province",name:"省份"},{field:"city",name:"城市"},{field:"type",name:"类别"},{field:"sub_type",name:"子类别"}],data:[{number:7789,province:"浙江省",city:"杭州市",type:"家具",sub_type:"桌子"},{number:2367,province:"浙江省",city:"绍兴市",type:"家具",sub_type:"桌子"},{number:3877,province:"浙江省",city:"宁波市",type:"家具",sub_type:"桌子"},{number:4342,province:"浙江省",city:"舟山市",type:"家具",sub_type:"桌子"},{number:5343,province:"浙江省",city:"杭州市",type:"家具",sub_type:"沙发"},{number:632,province:"浙江省",city:"绍兴市",type:"家具",sub_type:"沙发"},{number:7234,province:"浙江省",city:"宁波市",type:"家具",sub_type:"沙发"},{number:834,province:"浙江省",city:"舟山市",type:"家具",sub_type:"沙发"},{number:945,province:"浙江省",city:"杭州市",type:"办公用品",sub_type:"笔"},{number:1304,province:"浙江省",city:"绍兴市",type:"办公用品",sub_type:"笔"},{number:1145,province:"浙江省",city:"宁波市",type:"办公用品",sub_type:"笔"},{number:1432,province:"浙江省",city:"舟山市",type:"办公用品",sub_type:"笔"},{number:1343,province:"浙江省",city:"杭州市",type:"办公用品",sub_type:"纸张"},{number:1354,province:"浙江省",city:"绍兴市",type:"办公用品",sub_type:"纸张"},{number:1523,province:"浙江省",city:"宁波市",type:"办公用品",sub_type:"纸张"},{number:1634,province:"浙江省",city:"舟山市",type:"办公用品",sub_type:"纸张"},{number:1723,province:"四川省",city:"成都市",type:"家具",sub_type:"桌子"},{number:1822,province:"四川省",city:"绵阳市",type:"家具",sub_type:"桌子"},{number:1943,province:"四川省",city:"南充市",type:"家具",sub_type:"桌子"},{number:2330,province:"四川省",city:"乐山市",type:"家具",sub_type:"桌子"},{number:2451,province:"四川省",city:"成都市",type:"家具",sub_type:"沙发"},{number:2244,province:"四川省",city:"绵阳市",type:"家具",sub_type:"沙发"},{number:2333,province:"四川省",city:"南充市",type:"家具",sub_type:"沙发"},{number:2445,province:"四川省",city:"乐山市",type:"家具",sub_type:"沙发"},{number:2335,province:"四川省",city:"成都市",type:"办公用品",sub_type:"笔"},{number:245,province:"四川省",city:"绵阳市",type:"办公用品",sub_type:"笔"},{number:2457,province:"四川省",city:"南充市",type:"办公用品",sub_type:"笔"},{number:2458,province:"四川省",city:"乐山市",type:"办公用品",sub_type:"笔"},{number:4004,province:"四川省",city:"成都市",type:"办公用品",sub_type:"纸张"},{number:3077,province:"四川省",city:"绵阳市",type:"办公用品",sub_type:"纸张"},{number:3551,province:"四川省",city:"南充市",type:"办公用品",sub_type:"纸张"},{number:352,province:"四川省",city:"乐山市",type:"办公用品",sub_type:"纸张"}],totalData:[{number:26193,type:"家具",sub_type:"桌子"},{number:49709,type:"家具"},{number:23516,type:"家具",sub_type:"沙发"},{number:29159,type:"办公用品"},{number:12321,type:"办公用品",sub_type:"笔"},{number:16838,type:"办公用品",sub_type:"纸张"},{number:18375,province:"浙江省",type:"家具",sub_type:"桌子"},{number:14043,province:"浙江省",type:"家具",sub_type:"沙发"},{number:4826,province:"浙江省",type:"办公用品",sub_type:"笔"},{number:5854,province:"浙江省",type:"办公用品",sub_type:"纸张"},{number:7818,province:"四川省",type:"家具",sub_type:"桌子"},{number:9473,province:"四川省",type:"家具",sub_type:"沙发"},{number:7495,province:"四川省",type:"办公用品",sub_type:"笔"},{number:10984,province:"四川省",type:"办公用品",sub_type:"纸张"},{number:13132,province:"浙江省",city:"杭州市",type:"家具"},{number:2288,province:"浙江省",city:"杭州市",type:"办公用品"},{number:15420,province:"浙江省",city:"杭州市"},{number:2999,province:"浙江省",city:"绍兴市",type:"家具"},{number:2658,province:"浙江省",city:"绍兴市",type:"办公用品"},{number:5657,province:"浙江省",city:"绍兴市"},{number:11111,province:"浙江省",city:"宁波市",type:"家具"},{number:2668,province:"浙江省",city:"宁波市",type:"办公用品"},{number:13779,province:"浙江省",city:"宁波市"},{number:5176,province:"浙江省",city:"舟山市",type:"家具"},{number:3066,province:"浙江省",city:"舟山市",type:"办公用品"},{number:8242,province:"浙江省",city:"舟山市"},{number:4174,province:"四川省",city:"成都市",type:"家具"},{number:6339,province:"四川省",city:"成都市",type:"办公用品"},{number:10513,province:"四川省",city:"成都市"},{number:4066,province:"四川省",city:"绵阳市",type:"家具"},{number:3322,province:"四川省",city:"绵阳市",type:"办公用品"},{number:7388,province:"四川省",city:"绵阳市"},{number:4276,province:"四川省",city:"南充市",type:"家具"},{number:6008,province:"四川省",city:"南充市",type:"办公用品"},{number:10284,province:"四川省",city:"南充市"},{number:4775,province:"四川省",city:"乐山市",type:"家具"},{number:2810,province:"四川省",city:"乐山市",type:"办公用品"},{number:7585,province:"四川省",city:"乐山市"},{number:32418,province:"浙江省",type:"家具"},{number:10680,province:"浙江省",type:"办公用品"},{number:43098,province:"浙江省"},{number:17291,province:"四川省",type:"家具"},{number:18479,province:"四川省",type:"办公用品"},{number:35770,province:"四川省"},{number:78868}]}},wn={code:200,message:"success",data:{describe:"订单数据概览 - 包含订单金额、数量、运费、税费等关键指标",meta:[{field:"order_amount",name:"订单金额"},{field:"order_quantity",name:"订单数量"},{field:"shipping_cost",name:"运费"},{field:"tax_amount",name:"税费"},{field:"order_date",name:"订单日期"},{field:"order_status",name:"订单状态"},{field:"customer_level",name:"客户等级"},{field:"order_type",name:"订单类型"},{field:"payment_method",name:"支付方式"}],data:[{order_amount:2500,order_quantity:5,shipping_cost:50,tax_amount:125,order_date:"2023-01-15",order_status:"已完成",customer_level:"VIP",order_type:"线上订单",payment_method:"支付宝"},{order_amount:1800.5,order_quantity:3,shipping_cost:30,tax_amount:90.03,order_date:"2023-01-16",order_status:"配送中",customer_level:"普通",order_type:"线上订单",payment_method:"微信支付"},{order_amount:3200.75,order_quantity:8,shipping_cost:0,tax_amount:160.04,order_date:"2023-01-17",order_status:"已完成",customer_level:"VIP",order_type:"线下订单",payment_method:"现金"},{order_amount:950.25,order_quantity:2,shipping_cost:25,tax_amount:47.51,order_date:"2023-01-18",order_status:"待发货",customer_level:"普通",order_type:"线上订单",payment_method:"银行卡"},{order_amount:4500.8,order_quantity:12,shipping_cost:80,tax_amount:225.04,order_date:"2023-01-19",order_status:"已完成",customer_level:"高级",order_type:"线上订单",payment_method:"支付宝"}]}},Cn={code:200,message:"success",data:{describe:"用户行为数据概览 - 包含页面浏览量、点击次数、停留时长、跳出率等关键指标",meta:[{field:"page_views",name:"页面浏览量"},{field:"click_count",name:"点击次数"},{field:"duration",name:"停留时长"},{field:"bounce_rate",name:"跳出率"},{field:"behavior_date",name:"行为日期"},{field:"user_segment",name:"用户分群"},{field:"user_level",name:"用户等级"},{field:"behavior_type",name:"行为类型"},{field:"device_type",name:"设备类型"}],data:[{page_views:1250,click_count:320,duration:180.5,bounce_rate:.25,behavior_date:"2023-01-15",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"PC"},{page_views:890,click_count:450,duration:245.8,bounce_rate:.15,behavior_date:"2023-01-16",user_segment:"老用户",user_level:"VIP",behavior_type:"点击",device_type:"移动端"},{page_views:2100,click_count:680,duration:320.2,bounce_rate:.08,behavior_date:"2023-01-17",user_segment:"老用户",user_level:"高级",behavior_type:"购买",device_type:"PC"},{page_views:1560,click_count:420,duration:195.6,bounce_rate:.22,behavior_date:"2023-01-18",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"平板"},{page_views:980,click_count:280,duration:165.3,bounce_rate:.18,behavior_date:"2023-01-19",user_segment:"老用户",user_level:"VIP",behavior_type:"搜索",device_type:"移动端"},{page_views:1350,click_count:380,duration:220.7,bounce_rate:.12,behavior_date:"2023-01-20",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"PC"},{page_views:1680,click_count:520,duration:280.4,bounce_rate:.09,behavior_date:"2023-01-21",user_segment:"老用户",user_level:"高级",behavior_type:"购买",device_type:"移动端"},{page_views:1120,click_count:340,duration:195.2,bounce_rate:.21,behavior_date:"2023-01-22",user_segment:"新用户",user_level:"普通",behavior_type:"点击",device_type:"平板"},{page_views:1980,click_count:620,duration:310.8,bounce_rate:.07,behavior_date:"2023-01-23",user_segment:"老用户",user_level:"VIP",behavior_type:"购买",device_type:"PC"},{page_views:1450,click_count:410,duration:240.6,bounce_rate:.14,behavior_date:"2023-01-24",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"移动端"},{page_views:820,click_count:260,duration:155.9,bounce_rate:.19,behavior_date:"2023-01-25",user_segment:"老用户",user_level:"普通",behavior_type:"搜索",device_type:"平板"},{page_views:1750,click_count:580,duration:295.3,bounce_rate:.11,behavior_date:"2023-01-26",user_segment:"老用户",user_level:"高级",behavior_type:"购买",device_type:"PC"},{page_views:1280,click_count:390,duration:210.5,bounce_rate:.16,behavior_date:"2023-01-27",user_segment:"新用户",user_level:"普通",behavior_type:"点击",device_type:"移动端"},{page_views:920,click_count:290,duration:170.8,bounce_rate:.17,behavior_date:"2023-01-28",user_segment:"老用户",user_level:"VIP",behavior_type:"搜索",device_type:"平板"},{page_views:1620,click_count:510,duration:275.2,bounce_rate:.1,behavior_date:"2023-01-29",user_segment:"老用户",user_level:"高级",behavior_type:"购买",device_type:"PC"},{page_views:1380,click_count:420,duration:225.7,bounce_rate:.13,behavior_date:"2023-01-30",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"移动端"},{page_views:1050,click_count:320,duration:185.4,bounce_rate:.2,behavior_date:"2023-01-31",user_segment:"老用户",user_level:"普通",behavior_type:"点击",device_type:"平板"},{page_views:1890,click_count:600,duration:305.1,bounce_rate:.08,behavior_date:"2023-02-01",user_segment:"老用户",user_level:"VIP",behavior_type:"购买",device_type:"PC"},{page_views:1150,click_count:350,duration:200.3,bounce_rate:.15,behavior_date:"2023-02-02",user_segment:"新用户",user_level:"普通",behavior_type:"浏览",device_type:"移动端"}]}},_n=function(t){return{SALES_FACT:bn,ORDER_FACT:wn,USER_BEHAVIOR_FACT:Cn}[t]||bn},xn=function(){var t=h(f().mark(function t(){var e,n,r,i=arguments;return f().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},t.next=1,new Promise(function(t){return setTimeout(t,800)});case 1:return n=e.faceTableCode,r=_n(n),t.abrupt("return",{data:r.data});case 2:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}();var Sn=Bt({name:"fieldTab",components:{draggable:en(),cDropdown:yn},props:{fields:{type:Array,default:function(){return[]}},selectItem:{type:Object,default:function(){return{}}}},data:function(){return{aggregatorMap:Q}},computed:{chooseFieldsHandler:function(){return function(t,e){return t.forEach(function(t){t.originIdx="originIdx"in t?t.originIdx:e}),t}}},watch:{fields:{handler:function(t,e){var n=this;t&&t.length>0&&t.forEach(function(t){t.chooseFields||n.$set(t,"chooseFields",[])}),this.$forceUpdate()},immediate:!0,deep:!0}},methods:{handleDeleteChooseFields:function(t,e){t.chooseFields.splice(e,1)},handleDragUpdate:function(t,e,n){var r=this,i=function(t){r.fields[n].chooseFields=t};this.$nextTick(function(){var o,a,s,l=e.chooseFields,u=e.type,c=e.alias,h=e.queryType,d=JSON.parse(JSON.stringify(l)),f=t.newIndex<0?0:t.newIndex,p=t.oldIndex<0?0:t.oldIndex,v=!(null===(o=t.from)||void 0===o||!o.getAttribute("data-type")),g=l[f];if(g){var m=null!==(a=null===(s=t.from)||void 0===s?void 0:s.getAttribute("data-type"))&&void 0!==a?a:g.defineType;if("any"!==u&&m!==u)return l.splice(f,1),v||r.$set(r.fields[g.originIdx].chooseFields,p,g),void r.$message.warning("该类型字段不可以拖入~");v||(g.originIdx=n),d[f].aggregatorType="dimension"!==u?"avg":void 0,d[f].defineType=m,d[f].originType=u,d[f].alias=c,d[f].queryType=h,d.forEach(function(t,e){t.id="".concat(t.unitCode,"_").concat(e)}),i(d);var y=0;if(l.forEach(function(t){t.unitCode===g.unitCode&&y++}),"measure"===m){var b=[];if(r.fields.forEach(function(t){var e=t.chooseFields.find(function(t){return"measure"===t.defineType&&["measure","dimension"].includes(t.defineType)&&"filter"!==t.alias});e&&b.push(e)}),b.length>1)return d.splice(f,1),i(d),r.$message.warning("度量必须在同一轴上")}if("any"===u&&"measure"===c){var w=l.findIndex(function(t){return"measure"===t.defineType}),C=l.findIndex(function(t){return"dimension"===t.defineType});if("dimension"===m&&f>=w&&w>-1||"measure"===m&&f<=C&&C>-1)return d.splice(f,1),i(d),r.$message.warning("维度字段必须在度量字段上方~")}var _=r.fields.filter(function(t){return"dimension"===t.type}),x=0;if(_.forEach(function(t){t.chooseFields.forEach(function(t){t.unitCode===g.unitCode&&x++})}),x>1)return d.splice(f,1),i(d),r.$message.warning("已存在该对象 ".concat(g.name));var S=l.length<=e.limitNum||!e.limitNum;"any"!==u&&S&&y<=1||["any","measure"].includes(u)&&S||(d.splice(f,1),i(d))}})},handleUpdateDashboard:function(){var t=this;return h(f().mark(function e(){var n;return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t.fields.find(function(t){return t.isMust&&!t.chooseFields.length}))){e.next=1;break}return e.abrupt("return",t.$message.warning("".concat(n.label,"缺少必填字段")));case 1:t.updateChartData(t.selectItem);case 2:case"end":return e.stop()}},e)}))()},updateChartData:function(t){var e=this;return h(f().mark(function n(){var r,i,o,a,s,l,u;return f().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.dataSetId,i=y(e.fields),o=i.rowsCodes,a=i.columnCodes,n.prev=1,s={faceTableCode:r,rowsCodes:o,columnCodes:a},n.next=2,xn(s);case 2:l=n.sent,u=l.data,e.$set(t,"describe",u.describe),e.$set(t,"describeShow",!1),e.$emit("updateDashboard",t),e.$nextTick(function(){t.data=u,Rt(t),e.$emit("updateDashboard",t)}),n.next=4;break;case 3:n.prev=3,n.catch(1),e.$message.error("更新失败");case 4:case"end":return n.stop()}},n,null,[[1,3]])}))()}}},vn,[],!1,null,"6e48d776",null);Sn.options.__file="src/components/settingPanel/fieldTab.vue";const En=Sn.exports;var On=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"style-tab-content"},[n("div",{staticClass:"style-sections"},[n("common-style-config",{attrs:{"select-item":t.selectItem}})],1)])};On._withStripped=!0;var Tn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"common-style-config"},[n("el-collapse",[n("el-form",{attrs:{size:"mini","label-position":"top",model:t.selectItem.styleConfig,"label-width":"100px"}},[n("el-collapse-item",{attrs:{title:"标题与卡片"}},[n("style-sub-item",{attrs:{title:"标题"}},[n("el-form-item",[n("el-checkbox",{model:{value:t.selectItem.styleConfig.commongConfig.showTitle,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig,"showTitle",e)},expression:"selectItem.styleConfig.commongConfig.showTitle"}},[t._v("显示主标题")]),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("标题")]),t._v(" "),n("el-input",{model:{value:t.selectItem.name,callback:function(e){t.$set(t.selectItem,"name",e)},expression:"selectItem.name"}})],1)],1)],1),t._v(" "),n("style-sub-item",{attrs:{title:"备注"}},[n("el-form-item",[n("el-checkbox",{model:{value:t.selectItem.styleConfig.commongConfig.showRemark,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig,"showRemark",e)},expression:"selectItem.styleConfig.commongConfig.showRemark"}},[t._v("显示备注")]),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("备注")]),t._v(" "),n("el-input",{model:{value:t.selectItem.styleConfig.commongConfig.remark,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig,"remark",e)},expression:"selectItem.styleConfig.commongConfig.remark"}})],1),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("位置")]),t._v(" "),n("el-radio-group",{model:{value:t.selectItem.styleConfig.commongConfig.remarkPosition,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig,"remarkPosition",e)},expression:"selectItem.styleConfig.commongConfig.remarkPosition"}},[n("el-radio",{attrs:{label:t.remarkPositionMap.title}},[t._v("紧跟标题")]),t._v(" "),n("el-radio",{attrs:{label:t.remarkPositionMap.top}},[t._v("图表上方")])],1)],1)],1)],1),t._v(" "),n("style-sub-item",{attrs:{title:"组件容器"}},[n("el-form-item",[n("div",{staticClass:"chart-form-item-warp"},[n("el-checkbox",{staticStyle:{"margin-right":"10px"},model:{value:t.selectItem.styleConfig.commongConfig.customBackgroundColor,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig,"customBackgroundColor",e)},expression:"selectItem.styleConfig.commongConfig.customBackgroundColor"}},[t._v("自定义背景填充")]),t._v(" "),n("el-color-picker",{attrs:{"show-alpha":""},model:{value:t.selectItem.styleConfig.commongConfig.backgroundColor,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig,"backgroundColor",e)},expression:"selectItem.styleConfig.commongConfig.backgroundColor"}})],1)])],1)],1),t._v(" "),n(t.selectItem.styleComp.type,{tag:"component",attrs:{selectItem:t.selectItem}})],1)],1)],1)};Tn._withStripped=!0;var In=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"style-sub-item"},[t.title?n("div",{staticClass:"sub-item-title",on:{click:t.toggleContent}},[n("i",{staticClass:"el-icon-caret-right",class:{"is-expanded":t.isExpanded}}),t._v(" "),n("span",[t._v(t._s(t.title))])]):t._e(),t._v(" "),n("div",{staticClass:"sub-item-content",class:{"is-expanded":!t.title||t.isExpanded},style:{"padding-top":t.title&&t.isExpanded?"12px":"0"}},[t._t("default")],2)])};In._withStripped=!0;var Mn=Bt({name:"styleSubItem",props:{title:{type:String,default:""}},data:function(){return{isExpanded:!1}},methods:{toggleContent:function(){this.isExpanded=!this.isExpanded}}},In,[],!1,null,"635d95c0",null);Mn.options.__file="src/components/base/styleSubItem.vue";const Ln=Mn.exports;var kn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"c-table-style"},[n("el-collapse",[n("el-collapse-item",{attrs:{title:"单元格"}},[n("el-form-item",[n("el-checkbox",{model:{value:t.selectItem.styleConfig.commongConfig.mergeCells,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig,"mergeCells",e)},expression:"selectItem.styleConfig.commongConfig.mergeCells"}},[t._v("合并同类单元格")]),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("分页器")]),t._v(" "),n("el-switch",{model:{value:t.selectItem.styleConfig.commongConfig.pagination,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig,"pagination",e)},expression:"selectItem.styleConfig.commongConfig.pagination"}})],1)],1)],1)],1)],1)};function An(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Rn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?An(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}kn._withStripped=!0;var Dn=Bt({name:"cTableStyle",components:{styleSubItem:Ln},props:{selectItem:{type:Object,default:function(){return{}}}},data:function(){return{styleConfig:{}}},watch:{selectItem:{handler:function(t){t&&t.styleConfig&&(this.styleConfig=Rn(Rn({},this.styleConfig),t.styleConfig))},immediate:!0,deep:!0}},methods:{updateStyle:function(){this.$set(this.selectItem,"styleConfig",Rn({},this.styleConfig)),this.$emit("styleUpdate",this.styleConfig)}}},kn,[],!1,null,"5016c4b7",null);Dn.options.__file="src/components/styleComp/cTableStyle.vue";const Pn=Dn.exports;var Nn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"c-line-style"},[n("el-collapse",[n("el-collapse-item",{attrs:{title:"绘图区域"}},[n("style-sub-item",{attrs:{title:"配色设置"}},[n("el-form-item",[n("div",{staticClass:"c-line-style-themes"},t._l(t.dataList,function(e,r){return n("div",{key:r,staticClass:"c-line-style-theme"},[n("el-color-picker",{on:{change:function(n){return t.handleChange(e)}},model:{value:e[t.customKey+"seriesColor"],callback:function(n){t.$set(e,t.customKey+"seriesColor",n)},expression:"item[customKey + 'seriesColor']"}}),t._v(" "),n("span",[t._v(t._s(e[t.customKey+"text"]))])],1)}),0)])],1),t._v(" "),n("el-form-item",[n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("线条类型")]),t._v(" "),n("el-radio-group",{model:{value:t.selectItem.styleConfig.commongConfig.lineChartConfig.lineType,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig.lineChartConfig,"lineType",e)},expression:"selectItem.styleConfig.commongConfig.lineChartConfig.lineType"}},[n("el-radio",{attrs:{label:t.lineTypeMap.curve}},[t._v("曲线")]),t._v(" "),n("el-radio",{attrs:{label:t.lineTypeMap.line}},[t._v("折线")])],1)],1),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("线条样式")]),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("el-radio-group",{model:{value:t.selectItem.styleConfig.commongConfig.lineChartConfig.lineStyle,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig.lineChartConfig,"lineStyle",e)},expression:"selectItem.styleConfig.commongConfig.lineChartConfig.lineStyle"}},[n("el-radio",{attrs:{label:t.lineStyleMap.sty1}},[t._v("实线")]),t._v(" "),n("el-radio",{attrs:{label:t.lineStyleMap.sty2}},[t._v("虚线")])],1)],1)]),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("线条宽度")]),t._v(" "),n("el-input-number",{attrs:{min:1,max:10,"controls-position":"right",placeholder:"请输入","popper-class":"c-input-style-popper"},scopedSlots:t._u([{key:"append",fn:function(){return[n("span",[t._v("px")])]},proxy:!0}]),model:{value:t.selectItem.styleConfig.commongConfig.lineChartConfig.lineWidth,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig.lineChartConfig,"lineWidth",e)},expression:"selectItem.styleConfig.commongConfig.lineChartConfig.lineWidth"}})],1),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[n("el-checkbox",{model:{value:t.selectItem.styleConfig.commongConfig.lineChartConfig.showPoint,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig.lineChartConfig,"showPoint",e)},expression:"selectItem.styleConfig.commongConfig.lineChartConfig.showPoint"}},[t._v("显示标记点")])],1),t._v(" "),n("el-select",{attrs:{placeholder:"请选择","popper-class":"c-select-style-popper"},model:{value:t.selectItem.styleConfig.commongConfig.lineChartConfig.pointShape,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig.lineChartConfig,"pointShape",e)},expression:"selectItem.styleConfig.commongConfig.lineChartConfig.pointShape"}},[n("el-option",{attrs:{label:"圆形",value:"circle"}}),t._v(" "),n("el-option",{attrs:{label:"方形",value:"square"}}),t._v(" "),n("el-option",{attrs:{label:"菱形",value:"diamond"}}),t._v(" "),n("el-option",{attrs:{label:"六边形",value:"hexagon"}})],1)],1)])],1),t._v(" "),n("legend-style",{attrs:{config:t.selectItem.styleConfig.commongConfig.legendConfig}}),t._v(" "),n("el-collapse-item",{attrs:{title:"数据标签"}},[n("el-form-item",[n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("是否开启")]),t._v(" "),n("el-switch",{model:{value:t.selectItem.styleConfig.commongConfig.labelConfig.show,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig.labelConfig,"show",e)},expression:"selectItem.styleConfig.commongConfig.labelConfig.show"}})],1),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("el-checkbox",{model:{value:t.selectItem.styleConfig.commongConfig.labelConfig.showAll,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig.labelConfig,"showAll",e)},expression:"selectItem.styleConfig.commongConfig.labelConfig.showAll"}},[t._v("全量显示")])],1),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("位置")]),t._v(" "),n("el-select",{attrs:{placeholder:"请选择","popper-class":"c-select-style-popper"},model:{value:t.selectItem.styleConfig.commongConfig.labelConfig.position,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig.labelConfig,"position",e)},expression:"selectItem.styleConfig.commongConfig.labelConfig.position"}},[n("el-option",{attrs:{label:"自动",value:"auto"}}),t._v(" "),n("el-option",{attrs:{label:"顶部",value:"top"}}),t._v(" "),n("el-option",{attrs:{label:"底部",value:"bottom"}}),t._v(" "),n("el-option",{attrs:{label:"中间",value:"middle"}}),t._v(" "),n("el-option",{attrs:{label:"左侧",value:"left"}}),t._v(" "),n("el-option",{attrs:{label:"右侧",value:"right"}})],1)],1),t._v(" "),n("text-style",{attrs:{config:t.selectItem.styleConfig.commongConfig.labelConfig.textConfig}})],1)],1)],1)],1)};Nn._withStripped=!0;var Bn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("style-sub-item",{staticClass:"c-bi-dashboard-text-style",staticStyle:{"margin-top":"12px",padding:"12px"},attrs:{title:"文本样式配置"}},[n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("\n 字体颜色\n ")]),t._v(" "),n("el-color-picker",{model:{value:t.config.color,callback:function(e){t.$set(t.config,"color",e)},expression:"config.color"}})],1),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("\n 字体大小\n ")]),t._v(" "),n("el-input-number",{attrs:{min:12,max:60,step:1,"controls-position":"right"},model:{value:t.config.fontSize,callback:function(e){t.$set(t.config,"fontSize",e)},expression:"config.fontSize"}})],1),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("\n 加粗\n ")]),t._v(" "),n("el-switch",{model:{value:t.config.isBold,callback:function(e){t.$set(t.config,"isBold",e)},expression:"config.isBold"}})],1),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("\n 斜体\n ")]),t._v(" "),n("el-switch",{model:{value:t.config.isItalic,callback:function(e){t.$set(t.config,"isItalic",e)},expression:"config.isItalic"}})],1),t._v(" "),t._t("default")],2)};Bn._withStripped=!0;var zn=Bt({name:"cBiDashboardTextStyle",components:{styleSubItem:Ln},props:{config:{type:Object,default:function(){return{}}}}},Bn,[],!1,null,"ed875454",null);zn.options.__file="src/components/base/textStyle.vue";const Fn=zn.exports;var Hn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-collapse-item",{attrs:{title:"图例"}},[n("el-form-item",[n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("\n 是否开启\n ")]),t._v(" "),n("el-switch",{model:{value:t.config.show,callback:function(e){t.$set(t.config,"show",e)},expression:"config.show"}})],1)]),t._v(" "),n("el-form-item",[n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("\n 位置\n ")]),t._v(" "),n("el-select",{attrs:{placeholder:"请选择","popper-class":"c-select-style-popper"},model:{value:t.config.position,callback:function(e){t.$set(t.config,"position",e)},expression:"config.position"}},t._l(t.positionOptions,function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)],1)])],1)};Hn._withStripped=!0;var jn=Bt({name:"cBiDashboardLegendStyle",props:{config:{type:Object,default:function(){return{}}}},data:function(){return{positionOptions:[{label:"顶部",value:"top"},{label:"顶部左侧",value:"top-left"},{label:"顶部右侧",value:"top-right"},{label:"左侧",value:"left"},{label:"左侧顶部",value:"left-top"},{label:"左侧底部",value:"left-bottom"},{label:"右侧",value:"right"},{label:"右侧顶部",value:"right-top"},{label:"右侧底部",value:"right-bottom"},{label:"底部",value:"bottom"},{label:"底部左侧",value:"bottom-left"},{label:"底部右侧",value:"bottom-right"}]}}},Hn,[],!1,null,"49a90c76",null);jn.options.__file="src/components/base/legendStyle.vue";const Wn=jn.exports;var Gn=Bt({name:"cLineStyle",components:{styleSubItem:Ln,textStyle:Fn,legendStyle:Wn},props:{selectItem:{type:Object,default:function(){return{}}}},data:function(){return{getFieldValueByCustomKey:kt,customKey:ot,lineTypeMap:at,lineStyleMap:st}},computed:{dataList:function(){return Mt(this.selectItem.styleConfig.helperData.fieldMap)}},methods:{handleChange:function(t){this.$set(this.selectItem.styleConfig.helperData.fieldMap[t.key],ot+"seriesColor",t[ot+"seriesColor"])},formatTooltip:function(t){return"".concat(t,"%")}}},Nn,[],!1,null,"f42394ce",null);Gn.options.__file="src/components/styleComp/cLineStyle.vue";const Vn=Gn.exports;var $n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"c-indicator-style"},[n("el-collapse",[n("el-collapse-item",{attrs:{title:"快捷布局"}},[n("el-form-item",[n("div",{staticClass:"carousel-select-item"},[n("div",{staticClass:"arrows left-arrow"},[n("div",{staticClass:"arrow-icon-container",class:{disabled:0===t.currentPage},on:{click:t.prevPage}},[n("i",{staticClass:"el-icon-arrow-left"})])]),t._v(" "),n("div",{ref:"carouselGroup",staticClass:"carousel-select-group"},[n("div",{staticClass:"carousel-content"},t._l(t.currentPageItems,function(e){return n("div",{key:e,staticClass:"carousel-select-group-item",class:{selected:t.selectItem.styleConfig.commongConfig.indicatorStyle===e},on:{click:function(n){return t.selectLayout(e)}}},[n("img",{attrs:{src:o(9454)("./lay"+e+".png"),alt:""}})])}),0)]),t._v(" "),n("div",{staticClass:"arrows right-arrow"},[n("div",{staticClass:"arrow-icon-container",class:{disabled:t.currentPage===t.totalPages-1},on:{click:t.nextPage}},[n("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),n("div",{staticClass:"slick-dots slick-dots-bottom",on:{click:function(t){t.preventDefault(),t.stopPropagation()}}},t._l(t.totalPages,function(e,r){return n("li",{key:r,class:{"slick-active":t.currentPage===r}},[n("button")])}),0)])],1),t._v(" "),n("el-collapse-item",{attrs:{title:"指标内容"}},[n("style-sub-item",[n("el-form-item",[n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("指标修饰")]),t._v(" "),n("el-switch",{model:{value:t.selectItem.styleConfig.commongConfig.indicatorIcon,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig,"indicatorIcon",e)},expression:"selectItem.styleConfig.commongConfig.indicatorIcon"}})],1),t._v(" "),n("div",{staticClass:"c-indicator-item-list"},t._l(t.dataList,function(e,r){return n("div",{key:r,staticClass:"c-indicator-item"},[n("span",[t._v(t._s(e))]),t._v(" "),n("div",{staticClass:"c-dimension-icon",on:{click:function(n){return t.openIconSelector(e)}}},[n("i",{class:t.getIconForItem(e)})])])}),0)])],1)],1)],1),t._v(" "),n("el-dialog",{staticClass:"icon-selector-dialog",attrs:{size:"mini",title:"选择图标",visible:t.iconSelectorVisible,width:"800px","before-close":t.closeIconSelector,"close-on-click-modal":!1,"close-on-press-escape":!1},on:{"update:visible":function(e){t.iconSelectorVisible=e}}},[n("div",{staticClass:"icon-category-list"},t._l(t.iconCategories,function(e,r){return n("div",{key:r,staticClass:"icon-category-wrapper"},[n("div",{staticClass:"icon-category-title"},[t._v(t._s(e.title))]),t._v(" "),n("div",{staticClass:"icon-grid"},t._l(e.icons,function(e){return n("div",{key:e,staticClass:"icon-item",class:{"icon-item-active":t.selectedIcon===e},on:{click:function(n){return t.selectIcon(e)}}},[n("i",{class:e})])}),0)])}),0),t._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("div",{staticClass:"footer-buttons"},[n("el-button",{staticClass:"cancel-btn",attrs:{size:"mini"},on:{click:t.closeIconSelector}},[t._v("取消")]),t._v(" "),n("el-button",{staticClass:"confirm-btn",attrs:{size:"mini",type:"primary"},on:{click:t.confirmIconSelection}},[t._v("确定")])],1)])])],1)};$n._withStripped=!0;const Un=["el-icon-arrow-down","el-icon-arrow-left","el-icon-arrow-right","el-icon-arrow-up","el-icon-attract","el-icon-back","el-icon-bank-card","el-icon-bottom","el-icon-bottom-left","el-icon-bottom-right","el-icon-box","el-icon-brush","el-icon-caret-bottom","el-icon-caret-left","el-icon-caret-right","el-icon-caret-top","el-icon-check","el-icon-circle-close","el-icon-circle-plus","el-icon-circle-plus-outline","el-icon-c-scale-to-original","el-icon-close","el-icon-coin","el-icon-collection","el-icon-collection-tag","el-icon-coordinate","el-icon-d-arrow-left","el-icon-d-arrow-right","el-icon-d-caret","el-icon-data-analysis","el-icon-data-board","el-icon-data-line","el-icon-date","el-icon-document","el-icon-document-add","el-icon-document-checked","el-icon-document-copy","el-icon-document-delete","el-icon-document-remove","el-icon-edit","el-icon-edit-outline","el-icon-error","el-icon-files","el-icon-film","el-icon-finished","el-icon-folder","el-icon-folder-add","el-icon-folder-checked","el-icon-folder-delete","el-icon-folder-opened","el-icon-folder-remove","el-icon-headset","el-icon-house","el-icon-info","el-icon-loading","el-icon-magic-stick","el-icon-menu","el-icon-minus","el-icon-mobile","el-icon-money","el-icon-monitor","el-icon-mouse","el-icon-no-smoking","el-icon-notebook-1","el-icon-notebook-2","el-icon-office-building","el-icon-paperclip","el-icon-pie-chart","el-icon-plus","el-icon-printer","el-icon-question","el-icon-rank","el-icon-reading","el-icon-receiving","el-icon-refresh","el-icon-refresh-left","el-icon-refresh-right","el-icon-remove","el-icon-remove-outline","el-icon-right","el-icon-s-check","el-icon-s-claim","el-icon-s-comment","el-icon-s-custom","el-icon-s-data","el-icon-s-finance","el-icon-s-flag","el-icon-s-fold","el-icon-s-grid","el-icon-s-help","el-icon-s-home","el-icon-s-management","el-icon-s-marketing","el-icon-s-open","el-icon-s-operation","el-icon-s-opportunity","el-icon-s-platform","el-icon-s-promotion","el-icon-s-release","el-icon-s-shop","el-icon-s-ticket","el-icon-s-unfold","el-icon-school","el-icon-scissors","el-icon-search","el-icon-sell","el-icon-share","el-icon-shopping-bag-1","el-icon-shopping-bag-2","el-icon-shopping-cart-1","el-icon-shopping-cart-2","el-icon-shopping-cart-full","el-icon-smoking","el-icon-sold-out","el-icon-sort","el-icon-sort-down","el-icon-sort-up","el-icon-success","el-icon-suitcase","el-icon-suitcase-1","el-icon-table-lamp","el-icon-takeaway-box","el-icon-tickets","el-icon-toilet-paper","el-icon-top","el-icon-top-left","el-icon-top-right","el-icon-umbrella","el-icon-video-pause","el-icon-video-play","el-icon-view","el-icon-wallet","el-icon-warning"],Yn=["el-icon-plus","el-icon-minus","el-icon-edit","el-icon-delete","el-icon-search","el-icon-refresh","el-icon-arrow-left","el-icon-arrow-right","el-icon-arrow-up","el-icon-arrow-down","el-icon-success","el-icon-error","el-icon-warning","el-icon-info","el-icon-close","el-icon-check","el-icon-loading","el-icon-view","el-icon-document","el-icon-folder","el-icon-pie-chart","el-icon-data-line","el-icon-data-board","el-icon-data-analysis","el-icon-menu","el-icon-share","el-icon-date","el-icon-sort","el-icon-rank","el-icon-monitor","el-icon-mobile","el-icon-printer","el-icon-paperclip","el-icon-collection","el-icon-suitcase","el-icon-office-building","el-icon-school","el-icon-house","el-icon-table-lamp","el-icon-money","el-icon-wallet","el-icon-bank-card","el-icon-coin","el-icon-shopping-cart-full","el-icon-sell","el-icon-present","el-icon-box","el-icon-film","el-icon-headset","el-icon-brush","el-icon-mouse","el-icon-coordinate","el-icon-magic-stick","el-icon-reading","el-icon-attract","el-icon-umbrella","el-icon-scissors","el-icon-takeaway-box","el-icon-no-smoking","el-icon-smoking","el-icon-toilet-paper","el-icon-notebook-1","el-icon-notebook-2","el-icon-receiving","el-icon-files","el-icon-tickets","el-icon-sold-out","el-icon-shopping-bag-1","el-icon-shopping-bag-2","el-icon-shopping-cart-1","el-icon-shopping-cart-2","el-icon-suitcase-1","el-icon-video-play","el-icon-video-pause","el-icon-sort-up","el-icon-sort-down","el-icon-refresh-left","el-icon-refresh-right","el-icon-finished","el-icon-remove-outline","el-icon-circle-plus-outline","el-icon-document-add","el-icon-document-remove","el-icon-document-delete","el-icon-document-copy","el-icon-document-checked","el-icon-folder-add","el-icon-folder-remove","el-icon-folder-delete","el-icon-folder-checked","el-icon-folder-opened","el-icon-edit-outline","el-icon-circle-close","el-icon-circle-plus","el-icon-remove","el-icon-question","el-icon-s-help","el-icon-s-operation","el-icon-s-platform","el-icon-s-fold","el-icon-s-unfold","el-icon-s-promotion","el-icon-s-home","el-icon-s-release","el-icon-s-ticket","el-icon-s-management","el-icon-s-open","el-icon-s-shop","el-icon-s-marketing","el-icon-s-flag","el-icon-s-comment","el-icon-s-finance","el-icon-s-claim","el-icon-s-custom","el-icon-s-opportunity","el-icon-s-data","el-icon-s-check","el-icon-s-grid","el-icon-d-arrow-left","el-icon-d-arrow-right","el-icon-d-caret","el-icon-c-scale-to-original"];var Xn=Bt({name:"cIndicatorStyle",components:{styleSubItem:Ln},props:{selectItem:{type:Object,default:function(){return{}}}},data:function(){return{iconList:[].concat(S(Un),S(Yn)),styleConfig:{},currentPage:0,itemsPerPage:6,totalItems:8,selectedLayout:null,isTransitioning:!1,iconSelectorVisible:!1,currentEditingIndex:-1,selectedIcon:"",iconCategories:{basic:{title:"基础图标",icons:["el-icon-info","el-icon-menu","el-icon-share","el-icon-d-caret","el-icon-caret-left","el-icon-caret-right","el-icon-caret-bottom","el-icon-caret-top","el-icon-bottom-left","el-icon-bottom-right","el-icon-back","el-icon-right","el-icon-bottom","el-icon-top","el-icon-top-left","el-icon-top-right","el-icon-s-help","el-icon-s-operation","el-icon-s-platform"]},actions:{title:"操作图标",icons:["el-icon-plus","el-icon-minus","el-icon-edit","el-icon-edit-outline","el-icon-view","el-icon-refresh","el-icon-refresh-right","el-icon-refresh-left","el-icon-finished","el-icon-sort","el-icon-sort-up","el-icon-sort-down","el-icon-rank","el-icon-c-scale-to-original","el-icon-date","el-icon-search","el-icon-monitor","el-icon-attract","el-icon-mobile","el-icon-scissors"]},navigation:{title:"导航图标",icons:["el-icon-arrow-left","el-icon-arrow-right","el-icon-arrow-down","el-icon-arrow-up","el-icon-d-arrow-left","el-icon-d-arrow-right"]},status:{title:"状态图标",icons:["el-icon-success","el-icon-error","el-icon-warning","el-icon-info","el-icon-question","el-icon-loading","el-icon-check","el-icon-close","el-icon-remove","el-icon-circle-plus","el-icon-circle-close","el-icon-remove-outline","el-icon-circle-plus-outline"]},charts:{title:"数据图表",icons:["el-icon-pie-chart","el-icon-data-line","el-icon-data-board","el-icon-data-analysis","el-icon-s-data","el-icon-s-grid","el-icon-s-check","el-icon-s-flag","el-icon-s-marketing","el-icon-s-finance","el-icon-s-opportunity","el-icon-s-claim","el-icon-s-custom","el-icon-s-comment","el-icon-s-ticket","el-icon-s-management","el-icon-s-open","el-icon-s-shop","el-icon-s-promotion","el-icon-s-home"]},files:{title:"文件图标",icons:["el-icon-document","el-icon-document-add","el-icon-document-remove","el-icon-document-delete","el-icon-document-copy","el-icon-document-checked","el-icon-folder","el-icon-folder-opened","el-icon-folder-add","el-icon-folder-remove","el-icon-folder-delete","el-icon-folder-checked","el-icon-files","el-icon-tickets","el-icon-paperclip","el-icon-printer"]}}}},computed:{totalPages:function(){return Math.ceil(this.totalItems/this.itemsPerPage)},currentPageItems:function(){var t=this.currentPage*this.itemsPerPage,e=Math.min(t+this.itemsPerPage,this.totalItems);return Array.from({length:e-t},function(e,n){return t+n+1})},dataList:function(){var t,e=this,n=this.selectItem.data.data;null!==(t=this.selectItem)&&void 0!==t&&null!==(t=t.styleConfig)&&void 0!==t&&null!==(t=t.helperData)&&void 0!==t&&t.indicatorRowIconMap||this.$set(this.selectItem.styleConfig.helperData,"indicatorRowIconMap",{});var r=At(this.selectItem.fields,n).map(function(t){return t.rowValue});return r.forEach(function(t){var n;if(null===(n=e.selectItem)||void 0===n||null===(n=n.styleConfig)||void 0===n||null===(n=n.helperData)||void 0===n||!n.indicatorRowIconMap[t]){var r=Math.floor(Math.random()*e.iconList.length);e.$set(e.selectItem.styleConfig.helperData.indicatorRowIconMap,t,e.iconList[r])}}),r}},methods:{prevPage:function(){this.currentPage>0&&!this.isTransitioning&&this.switchPage(this.currentPage-1)},nextPage:function(){this.currentPage<this.totalPages-1&&!this.isTransitioning&&this.switchPage(this.currentPage+1)},goToPage:function(t){t>=0&&t<this.totalPages&&!this.isTransitioning&&this.switchPage(t)},switchPage:function(t){var e=this;this.isTransitioning=!0,this.currentPage=t,this.$nextTick(function(){setTimeout(function(){e.isTransitioning=!1},50)})},selectLayout:function(t){this.$set(this.selectItem.styleConfig.commongConfig,"indicatorStyle",t),this.$emit("layoutSelect",t)},getIconForItem:function(t){if(this.selectItem.styleConfig.helperData.indicatorRowIconMap[t])return this.selectItem.styleConfig.helperData.indicatorRowIconMap[t];var e=Math.floor(Math.random()*this.iconList.length);return this.iconList[e]},openIconSelector:function(t){this.currentEditingIndex=t,this.selectedIcon=this.selectItem.styleConfig.helperData.indicatorRowIconMap[t]||"",this.iconSelectorVisible=!0},selectIcon:function(t){this.selectedIcon=t},confirmIconSelection:function(){this.$set(this.selectItem.styleConfig.helperData.indicatorRowIconMap,this.currentEditingIndex,this.selectedIcon),this.closeIconSelector()},closeIconSelector:function(){this.iconSelectorVisible=!1,this.currentEditingIndex=-1,this.selectedIcon=""}}},$n,[],!1,null,"3f7d4d96",null);Xn.options.__file="src/components/styleComp/cIndicatorStyle.vue";const qn=Xn.exports;var Kn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"c-column-style"},[n("el-collapse",[n("el-collapse-item",{attrs:{title:"绘图区域"}},[n("style-sub-item",{attrs:{title:"配色设置"}},[n("el-form-item",[n("div",{staticClass:"c-column-style-themes"},t._l(t.dataList,function(e,r){return n("div",{key:r,staticClass:"c-column-style-theme"},[n("el-color-picker",{on:{change:function(n){return t.handleChange(e)}},model:{value:e[t.customKey+"seriesColor"],callback:function(n){t.$set(e,t.customKey+"seriesColor",n)},expression:"item[customKey + 'seriesColor']"}}),t._v(" "),n("span",[t._v(t._s(e[t.customKey+"text"]))])],1)}),0)])],1),t._v(" "),n("el-form-item",[n("div",{staticClass:"chart-form-item-warp",staticStyle:{"margin-top":"0"}},[n("span",{staticClass:"jz-chart-title-label"},[t._v("透明度")]),t._v(" "),n("el-slider",{staticStyle:{flex:"1"},model:{value:t.selectItem.styleConfig.commongConfig.columnBackgroundOpacity,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig,"columnBackgroundOpacity",e)},expression:"selectItem.styleConfig.commongConfig.columnBackgroundOpacity"}})],1),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("开启渐变效果")]),t._v(" "),n("el-switch",{model:{value:t.selectItem.styleConfig.commongConfig.gradientEffect,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig,"gradientEffect",e)},expression:"selectItem.styleConfig.commongConfig.gradientEffect"}})],1),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("\n 柱图宽度\n "),n("el-tooltip",{attrs:{content:"当您配置的柱体宽度超出最大宽度范围时,该配置将不再生效。",placement:"top",effect:"dark"}},[n("i",{staticClass:"el-icon-question",staticStyle:{"margin-left":"4px",color:"#909399",cursor:"help"}})])],1),t._v(" "),n("el-slider",{staticStyle:{flex:"1"},attrs:{"format-tooltip":t.formatTooltip},model:{value:t.selectItem.styleConfig.commongConfig.columnWidthRatio,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig,"columnWidthRatio",e)},expression:"selectItem.styleConfig.commongConfig.columnWidthRatio"}})],1)])],1),t._v(" "),n("legend-style",{attrs:{config:t.selectItem.styleConfig.commongConfig.legendConfig}}),t._v(" "),n("el-collapse-item",{attrs:{title:"数据标签"}},[n("el-form-item",[n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("是否开启")]),t._v(" "),n("el-switch",{model:{value:t.selectItem.styleConfig.commongConfig.labelConfig.show,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig.labelConfig,"show",e)},expression:"selectItem.styleConfig.commongConfig.labelConfig.show"}})],1),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("el-checkbox",{model:{value:t.selectItem.styleConfig.commongConfig.labelConfig.showAll,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig.labelConfig,"showAll",e)},expression:"selectItem.styleConfig.commongConfig.labelConfig.showAll"}},[t._v("全量显示")])],1),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("位置")]),t._v(" "),n("el-select",{attrs:{placeholder:"请选择","popper-class":"c-select-style-popper"},model:{value:t.selectItem.styleConfig.commongConfig.labelConfig.position,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig.labelConfig,"position",e)},expression:"selectItem.styleConfig.commongConfig.labelConfig.position"}},[n("el-option",{attrs:{label:"自动",value:"auto"}}),t._v(" "),n("el-option",{attrs:{label:"顶部",value:"top"}}),t._v(" "),n("el-option",{attrs:{label:"底部",value:"bottom"}}),t._v(" "),n("el-option",{attrs:{label:"中间",value:"middle"}}),t._v(" "),n("el-option",{attrs:{label:"左侧",value:"left"}}),t._v(" "),n("el-option",{attrs:{label:"右侧",value:"right"}})],1)],1),t._v(" "),n("text-style",{attrs:{config:t.selectItem.styleConfig.commongConfig.labelConfig.textConfig}})],1)],1)],1)],1)};Kn._withStripped=!0;var Zn=Bt({name:"cColumnStyle",components:{styleSubItem:Ln,textStyle:Fn,legendStyle:Wn},props:{selectItem:{type:Object,default:function(){return{}}}},data:function(){return{getFieldValueByCustomKey:kt,customKey:ot}},computed:{dataList:function(){return Mt(this.selectItem.styleConfig.helperData.fieldMap)}},methods:{handleChange:function(t){this.$set(this.selectItem.styleConfig.helperData.fieldMap[t.key],ot+"seriesColor",t[ot+"seriesColor"])},formatTooltip:function(t){return"".concat(t,"%")}}},Kn,[],!1,null,"9e391112",null);Zn.options.__file="src/components/styleComp/cColumnStyle.vue";const Jn=Zn.exports;var Qn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"c-pie-style"},[n("el-collapse",[n("el-collapse-item",{attrs:{title:"绘图区域"}},[n("style-sub-item",{attrs:{title:"配色设置"}},[n("el-form-item",[n("div",{staticClass:"c-pie-style-themes"},t._l(t.dataList,function(e,r){return n("div",{key:r,staticClass:"c-pie-style-theme"},[n("el-color-picker",{on:{change:function(n){return t.handleChange(e)}},model:{value:e[t.customKey+"seriesColor"],callback:function(n){t.$set(e,t.customKey+"seriesColor",n)},expression:"item[customKey + 'seriesColor']"}}),t._v(" "),n("span",[t._v(t._s(e[t.customKey+"text"]))])],1)}),0)])],1),t._v(" "),n("el-form-item",[n("div",{staticClass:"chart-form-item-warp",staticStyle:{"margin-top":"0"}},[n("span",{staticClass:"jz-chart-title-label"},[t._v("透明度")]),t._v(" "),n("el-slider",{staticStyle:{flex:"1"},model:{value:t.selectItem.styleConfig.commongConfig.columnBackgroundOpacity,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig,"columnBackgroundOpacity",e)},expression:"selectItem.styleConfig.commongConfig.columnBackgroundOpacity"}})],1)])],1),t._v(" "),n("legend-style",{attrs:{config:t.selectItem.styleConfig.commongConfig.legendConfig}}),t._v(" "),n("el-collapse-item",{attrs:{title:"数据标签"}},[n("el-form-item",[n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("是否开启")]),t._v(" "),n("el-switch",{model:{value:t.selectItem.styleConfig.commongConfig.labelConfig.show,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig.labelConfig,"show",e)},expression:"selectItem.styleConfig.commongConfig.labelConfig.show"}})],1),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("el-checkbox",{model:{value:t.selectItem.styleConfig.commongConfig.labelConfig.showAll,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig.labelConfig,"showAll",e)},expression:"selectItem.styleConfig.commongConfig.labelConfig.showAll"}},[t._v("全量显示")])],1),t._v(" "),n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("位置")]),t._v(" "),n("el-select",{attrs:{placeholder:"请选择","popper-class":"c-select-style-popper"},model:{value:t.selectItem.styleConfig.commongConfig.labelConfig.position,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig.labelConfig,"position",e)},expression:"selectItem.styleConfig.commongConfig.labelConfig.position"}},t._l("Pie"===t.selectItem.type?t.pieLabelPositionOptions:t.labelPositionOptions,function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)],1),t._v(" "),n("text-style",{attrs:{config:t.selectItem.styleConfig.commongConfig.labelConfig.textConfig}},[n("div",{staticClass:"chart-form-item-warp"},[n("span",{staticClass:"jz-chart-title-label"},[t._v("\n 占比小数位数\n ")]),t._v(" "),n("el-select",{attrs:{placeholder:"请选择","popper-class":"c-select-style-popper"},model:{value:t.selectItem.styleConfig.commongConfig.labelConfig.textConfig.decimalPlaces,callback:function(e){t.$set(t.selectItem.styleConfig.commongConfig.labelConfig.textConfig,"decimalPlaces",e)},expression:"selectItem.styleConfig.commongConfig.labelConfig.textConfig.decimalPlaces"}},t._l(t.decimalPlacesOptions,function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)],1)])],1)],1)],1)],1)};Qn._withStripped=!0;var tr=Bt({name:"cColumnStyle",components:{styleSubItem:Ln,textStyle:Fn,legendStyle:Wn},props:{selectItem:{type:Object,default:function(){return{}}}},data:function(){return{getFieldValueByCustomKey:kt,customKey:ot,labelPositionOptions:[{label:"自动",value:"auto"},{label:"顶部",value:"top"},{label:"底部",value:"bottom"},{label:"中间",value:"middle"},{label:"左侧",value:"left"},{label:"右侧",value:"right"}],pieLabelPositionOptions:[{label:"内部",value:"inner"},{label:"外部",value:"outer"},{label:"蜘蛛",value:"spider"}],decimalPlacesOptions:[{label:"0",value:0},{label:"1",value:1},{label:"2",value:2}]}},computed:{dataList:function(){return Mt(this.selectItem.styleConfig.helperData.fieldMap)}},methods:{handleChange:function(t){this.$set(this.selectItem.styleConfig.helperData.fieldMap[t.key],ot+"seriesColor",t[ot+"seriesColor"])},formatTooltip:function(t){return"".concat(t,"%")}}},Qn,[],!1,null,"c24b088e",null);tr.options.__file="src/components/styleComp/cPieStyle.vue";const er=tr.exports;var nr=Bt({name:"commonStyleConfig",props:{selectItem:{type:Object,default:function(){return{}}}},data:function(){return{remarkPositionMap:ht}},components:{styleSubItem:Ln,cTableStyle:Pn,cLineStyle:Vn,cIndicatorStyle:qn,cColumnStyle:Jn,cPieStyle:er}},Tn,[],!1,null,"fc3b5328",null);nr.options.__file="src/components/styleComp/commonConfig.vue";var rr=Bt({name:"styleTab",components:{commonStyleConfig:nr.exports},props:{selectItem:{type:Object,default:function(){return{}}}},data:function(){return{}},methods:{resetStyle:function(){this.$message.success("样式已重置")}}},On,[],!1,null,"94802242",null);rr.options.__file="src/components/settingPanel/styleTab.vue";function ir(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function or(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ir(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}const ar={name:"settingPanel",components:{dataPanel:pn,fieldTab:En,styleTab:rr.exports},props:{selectItem:{type:Object,default:function(){return{}}}},data:function(){return{settingPanelShow:!0,isPut:!0,fields:[],activeTab:rt.FIELD,TAB_TYPES:rt,isChartTypeDropdownOpen:!1}},computed:{tabList:function(){return[{key:rt.FIELD,label:"字段"},{key:rt.STYLE,label:"样式"}]},availableChartTypes:function(){var t=this;return Object.values(bt).filter(function(e){return e.type!==t.selectItem.type})}},mounted:function(){document.addEventListener("click",this.handleGlobalClick),window.addEventListener("resize",this.positionDropdown)},beforeDestroy:function(){document.removeEventListener("click",this.handleGlobalClick),window.removeEventListener("resize",this.positionDropdown)},methods:or(or({},(0,nn.mapMutations)(["setDashboardDesignerWidth"])),{},{tabPanelCloseOrOpen:function(){this.settingPanelShow=!this.settingPanelShow,this.setDashboardDesignerWidth(this.settingPanelShow?-200:200)},switchTab:function(t){Object.values(rt).includes(t)&&(this.activeTab=t)},updateDashboard:function(t){this.$emit("updateDashboard",t)},handleStyleUpdate:function(t){this.$emit("styleUpdate",t)},toggleChartTypeDropdown:function(){var t=this;this.isChartTypeDropdownOpen=!this.isChartTypeDropdownOpen,this.isChartTypeDropdownOpen&&this.$nextTick(function(){t.positionDropdown()})},positionDropdown:function(){var t=this.$el.querySelector(".change-chart-type-menu");if(t){var e=t.getBoundingClientRect(),n=this.$el.querySelector(".chart-type-dropdown-container");n&&(n.style.top="".concat(e.bottom,"px"),n.style.left="".concat(e.left,"px"),n.style.width="".concat(e.width,"px"))}},closeChartTypeDropdown:function(){this.isChartTypeDropdownOpen=!1},changeChartType:function(t){var e=JSON.parse(JSON.stringify(t));if(this.selectItem._id){var n=or(or({},this.selectItem),{},{type:e.type,name:e.name,className:e.className,fields:e.fields,styleComp:e.styleComp}),r={};this.selectItem.fields.forEach(function(t){r[t.queryType]=t.chooseFields}),e.fields.forEach(function(t){t.chooseFields=r[t.queryType]}),n.fields=e.fields,this.$emit("updateDashboard",n),this.closeChartTypeDropdown(),this.$message.success("图表类型已切换为:".concat(t.name))}},handleGlobalClick:function(t){this.$el.contains(t.target)||this.closeChartTypeDropdown()}})};var sr=Bt(ar,Ge,[],!1,null,"48a4e3a4",null);sr.options.__file="src/components/settingPanel.vue";const lr=sr.exports;var ur=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mobile-preview"},[n("div",{staticClass:"mobile-preview-warp"},[n("div",{staticClass:"content"},[t._t("default")],2)])])};ur._withStripped=!0;var cr=Bt({name:"mobilePreview"},ur,[],!1,null,"b6417c34",null);cr.options.__file="src/components/mobilePreview.vue";const hr=cr.exports;function dr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function fr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dr(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dr(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var pr={x:null,y:null},vr={x:null,y:null,w:1,h:1,i:null};var gr=Bt({name:"biDashboard",components:{actionPanel:Ft,canvasPanel:ke,componentsPanel:We,settingPanel:lr,mobilePreview:hr},data:function(){return{wid:"",layoutObj:{layout:[],dashboardName:"未命名"},isPc:!0,selectItem:{},dashboardDesignerWidth:0,previewFlag:!1}},computed:{getDashboardDesignerWidth:function(){return this.dashboardDesignerWidth},getPreviewFlag:function(){return this.previewFlag},dashboardStyle:function(){return{gridTemplateColumns:this.getPreviewFlag?"1fr":"1fr 420px",gridTemplateAreas:this.getPreviewFlag?'"action" "canvas"':'"action action" "components setting" "canvas setting" "components-mode setting"',gridTemplateRows:this.getPreviewFlag?"48px 1fr":"50px 48px 1fr"}},mobileLayout:{get:function(){return JSON.parse(JSON.stringify(this.layoutObj.layout))},set:function(){}}},created:function(){this.wid&&this.getDetail()},mounted:function(){document.addEventListener("dragover",this.dragover,!1),document.addEventListener("keydown",this.onKeydown)},methods:{handleTogglePreview:function(t){this.previewFlag=t},getDetail:function(){var t=this;return h(f().mark(function e(){var n,r,i,o,a,s;return f().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,getDashboardConfigDetail({wid:t.wid});case 1:n=e.sent,r=n.data,i=r.dashboardName,o=r.dashboardUnitInfos,t.layoutObj={dashboardName:i,layout:o.map(function(t){return fr(fr({},JSON.parse(t.unitDefine)),{},{wid:t.wid,describe:t.unitName||"未命名图表"})})},e.next=3;break;case 2:e.prev=2,s=e.catch(0),a=s.errmsg,t.$message.error(a);case 3:case"end":return e.stop()}},e,null,[[0,2]])}))()},getResponsiveGrid:function(t){return"whole"===t?12:6},dragover:function(t){pr.x=t.clientX,pr.y=t.clientY},onKeydown:function(t){var e,n=null===(e=document.activeElement)||void 0===e||null===(e=e.tagName)||void 0===e?void 0:e.toLowerCase(),r=this.layoutObj.layout.findIndex(function(t){return t._select});!r<0||"input"===n||["Backspace","Delete"].includes(t.key)&&this.layoutObj.layout.splice(r,1)},updateDashboard:function(t){if(this.selectItem=fr({},t),t._id){var e=this.layoutObj.layout.findIndex(function(e){return e._id===t._id});if(-1!==e){var n=this.layoutObj.layout[e];this.layoutObj.layout.splice(e,1,fr(fr({},n),{},{type:t.type,name:t.name,className:t.className,fields:t.fields,styleComp:t.styleComp,data:t.data,describe:t.describe}))}}},handleChartSelect:function(t){this.selectItem=t},handleGridResize:function(t){},componentsPanelDrag:function(t){var e=this.$refs.grid.$refs.gridlayout,n=e.$el.getBoundingClientRect(),r=!1;pr.x>n.left&&pr.x<n.right&&pr.y>n.top&&pr.y<n.bottom&&(r=!0),!0===r&&-1===this.layoutObj.layout.findIndex(function(t){return"drop"===t.i})&&this.layoutObj.layout.push({x:2*this.layoutObj.layout.length%(this.colNum||12),y:this.layoutObj.layout.length+(this.colNum||12),w:this.getResponsiveGrid(t.defaultCols),h:t.defaultRows,i:"drop"});var i=this.layoutObj.layout.findIndex(function(t){return"drop"===t.i});if(-1!==i){try{e.$children[this.layoutObj.layout.length].$refs.item.style.display="none"}catch(t){}var o=e.$children[i];o.dragging={top:pr.y-n.top,left:pr.x-n.left};var a=o.calcXY(pr.y-n.top,pr.x-n.left);!0===r&&(e.dragEvent("dragstart","drop",a.x,a.y,t.defaultRows,this.getResponsiveGrid(t.defaultCols)),vr.i=String(i),vr.x=this.layoutObj.layout[i].x,vr.y=this.layoutObj.layout[i].y+1),!1===r&&(e.dragEvent("dragend","drop",a.x,a.y,1,1),this.layoutObj.layout=this.layoutObj.layout.filter(function(t){return"drop"!==t.i}))}},componentsPanelDragend:function(t){var e=this,n=this.$refs.grid.$refs.gridlayout,r=n.$el.getBoundingClientRect(),i=!1;if(pr.x>r.left&&pr.x<r.right&&pr.y>r.top&&pr.y<r.bottom&&(i=!0),!0===i){n.dragEvent("dragend","drop",vr.x,vr.y,1,1),this.layoutObj.layout=this.layoutObj.layout.filter(function(t){return"drop"!==t.i});var o=fr(fr({},t),{},{x:vr.x,y:vr.y,w:this.getResponsiveGrid(t.defaultCols),h:t.defaultRows,i:vr.i,originCol:this.getResponsiveGrid("whole"),originWidth:this.getResponsiveGrid(t.defaultCols)});o.fields&&o.fields.length>0&&o.fields.forEach(function(t){t.chooseFields||e.$set(t,"chooseFields",[])}),Rt(o),this.handleChartSelect(o),this.layoutObj.layout.push(o),Object.assign(this.selectItem,o),n.dragEvent("dragend",vr.i,vr.x,vr.y,1,1);try{n.$children[this.layoutObj.layout.length].$refs.item.style.display="block"}catch(t){}}}},beforeDestroy:function(){document.removeEventListener("dragover",this.dragover),document.removeEventListener("keydown",this.onKeydown)}},i,[],!1,null,"2964abc9",null);gr.options.__file="src/index.vue";const mr=gr.exports;var yr=o(5594);o.n(yr)().use(rn());var br={state:{dashboardDesignerWidth:1200,previewFlag:!1,curPanelChart:null,mainContextHeight:600},getters:{getDashboardDesignerWidth:function(t){return t.dashboardDesignerWidth},getPreviewFlag:function(t){return t.previewFlag},getCurPanelChart:function(t){return t.curPanelChart},getMainContextHeight:function(t){return t.mainContextHeight}},mutations:{setDashboardDesignerWidth:function(t,e){t.dashboardDesignerWidth=e},setPreviewFlag:function(t,e){t.previewFlag=e},setCurPanelChart:function(t,e){t.curPanelChart=e},setMainContextHeight:function(t,e){t.mainContextHeight=e}},actions:{updateDashboardDesignerWidth:function(t,e){(0,t.commit)("setDashboardDesignerWidth",e)},togglePreviewFlag:function(t){(0,t.commit)("setPreviewFlag",!t.state.previewFlag)},updateCurPanelChart:function(t,e){(0,t.commit)("setCurPanelChart",e)},updateMainContextHeight:function(t,e){(0,t.commit)("setMainContextHeight",e)}}};new(rn().Store)(br);const wr={BiDashboard:mr,chartRender:Te,utils:n,panelConfig:e,enumData:t,storeConfig:br,mockData:r};var Cr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.prototype.$store,e.config&&(t.prototype.$cdspBiDashboardConfig=e.config),t.prototype.$cdspBiDashboardStoreConfig=br};"undefined"!=typeof window&&window.Vue&&Cr(window.Vue)})(),a})());
3
+ //# sourceMappingURL=index.js.map