@nebula.js/sn-org-chart 1.4.2 → 1.7.0

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.
@@ -1,7 +1,7 @@
1
- define((function(){"use strict";var e={FONT_COLOR_TYPE:"auto",FONT_COLOR_DARK:{index:-1,color:"#484848"},BACKGROUND_COLOR_TYPE:"colorPicker",BACKGROUND_COLOR:{index:-1,color:"#ffffff"},BORDER_COLOR_TYPE:"auto",BORDER_COLOR:{index:-1,color:"#737373"},BORDER_FULL:!0,BORDER_TOP:!0,FONT_COLOR_USE_EXPRESSION:!1,BACKGROUND_USE_EXPRESSION:!1,BORDER_USE_EXPRESSION:!1,IMAGE_LOCATION:"both",IMAGE_ALIGNMENT:"left",IMAGE_SHAPE:"rectangle",IMAGE_CLIP:!0};var t={getValue:function(e,t,r){const o=t.split(".");let n;if(void 0===e)return r;let a=e;for(n=0;n<o.length;++n){if(void 0===a[o[n]])return r;a=a[o[n]]}return a}};
1
+ define(function(){"use strict";var e={FONT_COLOR_TYPE:"auto",FONT_COLOR_DARK:{index:-1,color:"#484848"},BACKGROUND_COLOR_TYPE:"colorPicker",BACKGROUND_COLOR:{index:-1,color:"#ffffff"},BORDER_COLOR_TYPE:"auto",BORDER_COLOR:{index:-1,color:"#737373"},BORDER_FULL:!0,BORDER_TOP:!0,FONT_COLOR_USE_EXPRESSION:!1,BACKGROUND_USE_EXPRESSION:!1,BORDER_USE_EXPRESSION:!1,IMAGE_LOCATION:"both",IMAGE_ALIGNMENT:"left",IMAGE_SHAPE:"rectangle",IMAGE_CLIP:!0};var t={getValue:function(e,t,r){const o=t.split(".");let n;if(void 0===e)return r;let a=e;for(n=0;n<o.length;++n){if(void 0===a[o[n]])return r;a=a[o[n]]}return a}};
2
2
  /*
3
- * qlik-chart-modules v0.100.0
3
+ * qlik-chart-modules v0.103.0
4
4
  * Copyright (c) 2026 QlikTech International AB
5
5
  * Released under the MIT license.
6
6
  */
7
- function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}}(e)||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.")}()}var a,i="top",l="top-right",s="right",u="bottom-right",c="bottom",p="bottom-left",d="left",f="top-left";o(o(o(o(o(o(o(o(o(o(a={},"equal-equal",[i,c]),"equal-higher",[c,u]),"equal-lower",[i,l]),"equal-void",[i,c]),"higher-equal",[d,p,i,l]),"higher-higher-acute",[c,p,d,l]),"higher-higher-obtuse",[c,i]),"higher-lower-negative",[i,l,s]),"higher-lower-positive",[c,p,d]),"higher-void",[i]),o(o(o(o(o(o(o(o(o(o(a,"lower-equal",[i]),"lower-higher-negative",[i,f]),"lower-higher-positive",[u]),"lower-lower-acute",[i,f,d,l,s]),"lower-lower-obtuse",[i,c]),"lower-void",[i]),"void-equal",[i]),"void-higher",[i,c]),"void-lower",[i,c,d]),"void-void",[i]),o(a,"unclassified",[i,c,s,d,l,u,p,f]);var h=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],m=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var g=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function b(e){var t=e.theme,r=e.translator,o=e.defaultValue,a=e.flags,i=[],l=t.getStyle("","","fontFamilies");return Array.isArray(l)&&l.length?i.push.apply(i,n(new Set([o].concat(n(l.map((function(e){return e.split(",").map((function(e){return e.trim()})).map((function(e){return e.replace(/\s+/g," ").trim()})).filter(Boolean).join(", ")}))))))):i.push(o),[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0}].concat(n(i.map((function(e){return g(e)}))),[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0}],n(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?m:h}(a).map((function(e){return g(e)}))))}function y(e){var t=e.theme,r=e.translator,o=e.id,n=e.path,a=e.flags,i=function(){return t.getStyle(o,n,"fontFamily")};return{getDefaultValue:function(){return i()},getOptions:function(){return b({theme:t,translator:r,defaultValue:i(),flags:a})}}}var v=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],O=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function w(e){var t=e.theme,r=e.translator,o=e.id,a=e.path,i=function(){return t.getStyle(o,a,"fontSize")};return{getDefaultValue:function(){return i()},getOptions:function(){return function(e){var t=e.translator,r=e.defaultValue,o=[],a=e.theme.getStyle("","","fontSizes");return Array.isArray(a)&&a.length?o.push.apply(o,n(new Set([r].concat(n(a))))):o.push(r),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(n(o.map((function(e){return O(e)}))),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],n(v.map((function(e){return O(e)}))))}({theme:t,translator:r,defaultValue:i()})}}}function x(e){var t=e.theme,r=e.translator,o=e.id,n=e.path;return{fontFamily:y({theme:t,translator:r,id:o,path:n,flags:e.flags}),fontSize:w({theme:t,translator:r,id:o,path:n})}}var C,E,k=["__proto__","constructor"],_=function(e){if(k.some((function(t){return e.includes(t)})))throw new Error("font-resolver: Forbidden property.")};var R,N=function(){if(E)return C;E=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,n=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},a=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var o,n=e.call(r,"constructor"),a=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!n&&!a)return!1;for(o in r);return void 0===o||e.call(r,o)},i=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(o)return o(t,r).value}return t[r]};return C=function e(){var t,r,o,s,u,c,p=arguments[0],d=1,f=arguments.length,h=!1;for("boolean"==typeof p&&(h=p,p=arguments[1]||{},d=2),(null==p||"object"!=typeof p&&"function"!=typeof p)&&(p={});d<f;++d)if(null!=(t=arguments[d]))for(r in t)o=l(p,r),p!==(s=l(t,r))&&(h&&s&&(a(s)||(u=n(s)))?(u?(u=!1,c=o&&n(o)?o:[]):c=o&&a(o)?o:{},i(p,{name:r,newValue:e(h,c,s)})):void 0!==s&&i(p,{name:r,newValue:s}));return p},C}();function S(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function T(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function A(){}(R=N)&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")&&R.default;var V=1/.7,M="\\s*([+-]?\\d+)\\s*",I="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",L="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$=/^#([0-9a-f]{3,8})$/,j=new RegExp(`^rgb\\(${M},${M},${M}\\)$`),B=new RegExp(`^rgb\\(${L},${L},${L}\\)$`),P=new RegExp(`^rgba\\(${M},${M},${M},${I}\\)$`),D=new RegExp(`^rgba\\(${L},${L},${L},${I}\\)$`),G=new RegExp(`^hsl\\(${I},${L},${L}\\)$`),H=new RegExp(`^hsla\\(${I},${L},${L},${I}\\)$`),q={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 F(){return this.rgb().formatHex()}function U(){return this.rgb().formatRgb()}function Y(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=$.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?z(t):3===r?new Z(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?K(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?K(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=j.exec(e))?new Z(t[1],t[2],t[3],1):(t=B.exec(e))?new Z(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=P.exec(e))?K(t[1],t[2],t[3],t[4]):(t=D.exec(e))?K(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=G.exec(e))?oe(t[1],t[2]/100,t[3]/100,1):(t=H.exec(e))?oe(t[1],t[2]/100,t[3]/100,t[4]):q.hasOwnProperty(e)?z(q[e]):"transparent"===e?new Z(NaN,NaN,NaN,0):null}function z(e){return new Z(e>>16&255,e>>8&255,255&e,1)}function K(e,t,r,o){return o<=0&&(e=t=r=NaN),new Z(e,t,r,o)}function X(e){return e instanceof A||(e=Y(e)),e?new Z((e=e.rgb()).r,e.g,e.b,e.opacity):new Z}function W(e,t,r,o){return 1===arguments.length?X(e):new Z(e,t,r,null==o?1:o)}function Z(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}function Q(){return`#${re(this.r)}${re(this.g)}${re(this.b)}`}function J(){const e=ee(this.opacity);return`${1===e?"rgb(":"rgba("}${te(this.r)}, ${te(this.g)}, ${te(this.b)}${1===e?")":`, ${e})`}`}function ee(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function te(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function re(e){return((e=te(e))<16?"0":"")+e.toString(16)}function oe(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ae(e,t,r,o)}function ne(e){if(e instanceof ae)return new ae(e.h,e.s,e.l,e.opacity);if(e instanceof A||(e=Y(e)),!e)return new ae;if(e instanceof ae)return e;var t=(e=e.rgb()).r/255,r=e.g/255,o=e.b/255,n=Math.min(t,r,o),a=Math.max(t,r,o),i=NaN,l=a-n,s=(a+n)/2;return l?(i=t===a?(r-o)/l+6*(r<o):r===a?(o-t)/l+2:(t-r)/l+4,l/=s<.5?a+n:2-a-n,i*=60):l=s>0&&s<1?0:i,new ae(i,l,s,e.opacity)}function ae(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}function ie(e){return(e=(e||0)%360)<0?e+360:e}function le(e){return Math.max(0,Math.min(1,e||0))}function se(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}S(A,Y,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:F,formatHex:F,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ne(this).formatHsl()},formatRgb:U,toString:U}),S(Z,W,T(A,{brighter(e){return e=null==e?V:Math.pow(V,e),new Z(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Z(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Z(te(this.r),te(this.g),te(this.b),ee(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:Q,formatHex:Q,formatHex8:function(){return`#${re(this.r)}${re(this.g)}${re(this.b)}${re(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:J,toString:J})),S(ae,(function(e,t,r,o){return 1===arguments.length?ne(e):new ae(e,t,r,null==o?1:o)}),T(A,{brighter(e){return e=null==e?V:Math.pow(V,e),new ae(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ae(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,n=2*r-o;return new Z(se(e>=240?e-240:e+120,n,o),se(e,n,o),se(e<120?e+240:e-120,n,o),this.opacity)},clamp(){return new ae(ie(this.h),le(this.s),le(this.l),ee(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 e=ee(this.opacity);return`${1===e?"hsl(":"hsla("}${ie(this.h)}, ${100*le(this.s)}%, ${100*le(this.l)}%${1===e?")":`, ${e})`}`}}));const ue=Math.PI/180,ce=180/Math.PI,pe=4/29,de=6/29,fe=3*de*de;function he(e){if(e instanceof me)return new me(e.l,e.a,e.b,e.opacity);if(e instanceof Oe)return we(e);e instanceof Z||(e=X(e));var t,r,o=ve(e.r),n=ve(e.g),a=ve(e.b),i=ge((.2225045*o+.7168786*n+.0606169*a)/1);return o===n&&n===a?t=r=i:(t=ge((.4360747*o+.3850649*n+.1430804*a)/.96422),r=ge((.0139322*o+.0971045*n+.7141733*a)/.82521)),new me(116*i-16,500*(t-i),200*(i-r),e.opacity)}function me(e,t,r,o){this.l=+e,this.a=+t,this.b=+r,this.opacity=+o}function ge(e){return e>.008856451679035631?Math.pow(e,1/3):e/fe+pe}function be(e){return e>de?e*e*e:fe*(e-pe)}function ye(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ve(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Oe(e,t,r,o){this.h=+e,this.c=+t,this.l=+r,this.opacity=+o}function we(e){if(isNaN(e.h))return new me(e.l,0,0,e.opacity);var t=e.h*ue;return new me(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}S(me,(function(e,t,r,o){return 1===arguments.length?he(e):new me(e,t,r,null==o?1:o)}),T(A,{brighter(e){return new me(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new me(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new Z(ye(3.1338561*(t=.96422*be(t))-1.6168667*(e=1*be(e))-.4906146*(r=.82521*be(r))),ye(-.9787684*t+1.9161415*e+.033454*r),ye(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),S(Oe,(function(e,t,r,o){return 1===arguments.length?function(e){if(e instanceof Oe)return new Oe(e.h,e.c,e.l,e.opacity);if(e instanceof me||(e=he(e)),0===e.a&&0===e.b)return new Oe(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ce;return new Oe(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Oe(e,t,r,null==o?1:o)}),T(A,{brighter(e){return new Oe(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Oe(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return we(this).rgb()}}));var xe=e=>()=>e;function Ce(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):xe(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Ce:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}(t,r,e):xe(isNaN(t)?r:t)}}(t);function o(e,t){var o=r((e=W(e)).r,(t=W(t)).r),n=r(e.g,t.g),a=r(e.b,t.b),i=Ce(e.opacity,t.opacity);return function(t){return e.r=o(t),e.g=n(t),e.b=a(t),e.opacity=i(t),e+""}}return o.gamma=e,o}(1);var Ee,ke="center",_e="bottom";function Re(e){var t=0,r=e.children,o=r&&r.length;if(o)for(;--o>=0;)t+=r[o].value;else t=1;e.value=t}function Ne(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Te)):void 0===t&&(t=Se);for(var r,o,n,a,i,l=new Me(e),s=[l];r=s.pop();)if((n=t(r.data))&&(i=(n=Array.from(n)).length))for(r.children=n,a=i-1;a>=0;--a)s.push(o=n[a]=new Me(n[a])),o.parent=r,o.depth=r.depth+1;return l.eachBefore(Ve)}function Se(e){return e.children}function Te(e){return Array.isArray(e)?e[1]:null}function Ae(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Ve(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Me(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:ke,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:ke,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:ke,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:ke},{key:"DataRangeIncludingZero",alignment:_e},{key:"LimitedData",alignment:_e},{key:"NegativeOrZeroValues",alignment:_e}].reduce((function(e,t){return e[t.key]=t,e}),{}),Me.prototype=Ne.prototype={constructor:Me,count:function(){return this.eachAfter(Re)},each:function(e,t){let r=-1;for(const o of this)e.call(t,o,++r,this);return this},eachAfter:function(e,t){for(var r,o,n,a=this,i=[a],l=[],s=-1;a=i.pop();)if(l.push(a),r=a.children)for(o=0,n=r.length;o<n;++o)i.push(r[o]);for(;a=l.pop();)e.call(t,a,++s,this);return this},eachBefore:function(e,t){for(var r,o,n=this,a=[n],i=-1;n=a.pop();)if(e.call(t,n,++i,this),r=n.children)for(o=r.length-1;o>=0;--o)a.push(r[o]);return this},find:function(e,t){let r=-1;for(const o of this)if(e.call(t,o,++r,this))return o},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,o=t.children,n=o&&o.length;--n>=0;)r+=o[n].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),o=t.ancestors(),n=null;for(e=r.pop(),t=o.pop();e===t;)n=e,e=r.pop(),t=o.pop();return n}(t,e),o=[t];t!==r;)t=t.parent,o.push(t);for(var n=o.length;e!==r;)o.splice(n,0,e),e=e.parent;return o},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return Ne(this).eachBefore(Ae)},[Symbol.iterator]:function*(){var e,t,r,o,n=this,a=[n];do{for(e=a.reverse(),a=[];n=e.pop();)if(yield n,t=n.children)for(r=0,o=t.length;r<o;++r)a.push(t[r])}while(a.length)}},Ee=function(e){e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,o,n,a,i,l,s,u,c,p,d=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=d-g,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),O=g>0?e.substring(v,d):"";if(r=(t="-"===(e=e.substring(f,v)).charAt(0)?-t:+t)<0?t=-t:0,n=(o=e.match(/[^\d\-\+#]/g))&&o[o.length-1]||".",a=o&&o[1]&&o[0]||",",e=e.split(n),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(a),e[0]=c.join(""),(i=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-i;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(m="",b=(p=t[0]).length%s,d=p.length,v=0;v<d;v++)m+=p.charAt(v),!((v-b+1)%s)&&v<d-s&&(m+=a);t[0]=m}return t[1]=e[1]&&t[1]?n+t[1]:"","0"!==(o=t.join(""))&&""!==o||(r=!1),h+(r?"-":"")+o+O}},Ee({exports:{}});const Ie=[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],Le=e=>{var t;return null===(t=e.contrastTextColor)||void 0===t||t};function $e(t,r,o){const n=`${t}.${r}`,a=`${n}.fontFamily`,i=`${n}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:a,options:()=>o.getOptions(`card.${a}`),defaultValue:()=>o.getDefaultValue(`card.${a}`)},fontSizeItem:{component:"dropdown",ref:i,options:()=>o.getOptions(`card.${i}`),defaultValue:()=>o.getDefaultValue(`card.${i}`)},fontColorWrapperItem:{component:"inline-wrapper",items:{useColorExpression:{ref:`${n}.useColorExpression`,width:!0,component:"dropdown",defaultValue:e.FONT_COLOR_USE_EXPRESSION,options:Ie,show:e=>!Le(e)},colorPicker:{component:"color-picker",ref:`${n}.color`,width:!1,dualOutput:!0,defaultValue:e.FONT_COLOR_DARK,show:e=>{var o;return!(Le(e)||null!==(o=e[t])&&void 0!==o&&null!==(o=o[r])&&void 0!==o&&o.useColorExpression)}}}},colorExpression:{component:"input-field-expression",type:"string",ref:`${n}.colorExpression`,width:!0,expression:"optional",defaultValue:"",show:e=>{var o;return!Le(e)&&(null===(o=e[t])||void 0===o||null===(o=o[r])||void 0===o?void 0:o.useColorExpression)}}}}const je=[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],Be=[{value:"card",translation:"Card only"},{value:"tooltip",translation:"Tooltip only"},{value:"both",translation:"Card and tooltip"}],Pe=[{value:"left",translation:"Left"},{value:"right",translation:"Right"},{value:"top",translation:"Top"},{value:"bottom",translation:"Bottom"}],De=[{value:"rectangle",translation:"Rectangle"},{value:"round",translation:"Round"}];function Ge(t,r,o){const n=function(e){var t=e.theme,r=e.translator,o=e.config,n=void 0===o?{}:o,a=e.flags,i=function(e){var t=e.config,r=void 0===t?{}:t,o=r.id,n=r.paths;return{id:void 0===o?"object":"".concat("object",".").concat(o),paths:Array.isArray(n)?n:[]}}({config:n}),l=i.id,s=i.paths,u={};s.forEach((function(e){var o=e.split(".");_(o);for(var n=u,i=0;i<o.length;i++){var s=o[i];i===o.length-1?n[s]=x({theme:t,translator:r,id:l,path:e,flags:a}):void 0===n[s]&&(n[s]={}),n=n[s]}}));var c=function(e){var t=e.split(".");_(t);for(var r=u,o=0;o<t.length;o++){var n=t[o];if(void 0===r[n])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));r=r[n]}return r};return u.getDefaultValue=function(e){return c(e).getDefaultValue()},u.getOptions=function(e){return c(e).getOptions()},u}({theme:t,translator:o,flags:r,config:{id:"orgChart",paths:["card.title.main","card.title.subTitle","card.label.description","card.label.measureLabel","card.label.measureValue"]}}),a=t=>{var r,o,n,a;return(null!==(r=null===(o=t.border)||void 0===o?void 0:o.topBar)&&void 0!==r?r:e.BORDER_TOP)||(null!==(n=null===(a=t.border)||void 0===a?void 0:a.fullBorder)&&void 0!==n?n:e.BORDER_FULL)},i=e=>{var t,r;return null===(t=null===(r=e.border)||void 0===r?void 0:r.contrastColor)||void 0===t||t};return{component:"styling-panel",show:!0,chartType:"orgchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.OrgChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{contrastTextColorSection:{translation:"Object.OrgChart.Card.TextColor",component:"panel-section",items:{contrastTextColorItems:{component:"items",ref:"components",key:"card",items:{useContrast:{component:"checkbox",type:"boolean",ref:"contrastTextColor",translation:"Object.OrgChart.Card.Contrast",defaultValue:!0}}}}},titleSection:{translation:"Object.OrgChart.Card.Title",component:"panel-section",items:{titleItems:{component:"items",ref:"components",key:"card",items:$e("title","main",n)}}},subtitleSection:{translation:"Object.OrgChart.Card.Subtitle",component:"panel-section",items:{subtitleItems:{component:"items",ref:"components",key:"card",items:$e("title","subTitle",n)}}},descriptionSection:{translation:"Object.OrgChart.Card.Description",component:"panel-section",items:{descriptionItems:{component:"items",ref:"components",key:"card",items:$e("label","description",n)}}},measureLabelSection:{translation:"Object.OrgChart.Card.MeasureLabel",component:"panel-section",items:{measureLabelItems:{component:"items",ref:"components",key:"card",items:$e("label","measureLabel",n)}}},measureValueSection:{translation:"Object.OrgChart.Card.MeasureValue",component:"panel-section",items:{measureValueItems:{component:"items",ref:"components",key:"card",items:$e("label","measureValue",n)}}},backgroundColorSection:{component:"panel-section",translation:"Object.OrgChart.ColorLabelExpression",items:{backgroundColorItems:{component:"items",ref:"components",key:"card",items:{fontColorWrapperItem:{component:"inline-wrapper",items:{useColorExpression:{ref:"background.useColorExpression",width:9,component:"dropdown",defaultValue:e.BACKGROUND_USE_EXPRESSION,options:je},colorPicker:{component:"color-picker",type:"object",ref:"background.color",width:3,dualOutput:!0,defaultValue:e.BACKGROUND_COLOR,showAlpha:null==r?void 0:r.isEnabled("IM_3964_BG_OPACITY"),show:e=>{var t;return!(null!==(t=e.background)&&void 0!==t&&t.useColorExpression)}},colorExpression:{component:"input-field-expression",type:"string",ref:"background.colorExpression",expression:"optional",defaultValue:"",show:e=>{var t;return null===(t=e.background)||void 0===t?void 0:t.useColorExpression}}}}}}}},cardBorderSection:{component:"panel-section",translation:"Object.OrgChart.CardAppearance",items:{cardBorderItems:{component:"items",ref:"components",key:"card",items:{topBar:{component:"checkbox",ref:"border.topBar",translation:"Object.OrgChart.TopBar",defaultValue:e.BORDER_TOP},fullBorder:{component:"checkbox",ref:"border.fullBorder",translation:"properties.border",defaultValue:e.BORDER_FULL},contrastBorderColorSection:{component:"checkbox",type:"boolean",key:"card",ref:"border.contrastColor",translation:"Object.OrgChart.Card.Contrast",defaultValue:!0,show:e=>a(e)},borderColorWrapperItem:{component:"inline-wrapper",items:{useColorExpression:{component:"dropdown",ref:"border.useColorExpression",width:9,translation:"properties.border.color",defaultValue:e.BORDER_USE_EXPRESSION,options:je,show:e=>a(e)&&!i(e)},colorPicker:{component:"color-picker",ref:"border.color",width:3,dualOutput:!0,defaultValue:e.BORDER_COLOR,show:e=>{var t;return a(e)&&!i(e)&&!(null!==(t=e.border)&&void 0!==t&&t.useColorExpression)}},colorExpression:{component:"input-field-expression",type:"string",ref:"border.colorExpression",expression:"optional",defaultValue:"",show:e=>{var t;return a(e)&&!i(e)&&(null===(t=e.border)||void 0===t?void 0:t.useColorExpression)}}}}}}}},...(null==r?void 0:r.isEnabled("IM_5036_ORGCHART_STYLING_IMAGE"))&&{imageSection:{component:"panel-section",translation:"Object.OrgChart.ImageOptions",items:{imageItems:{component:"items",ref:"components",key:"card",items:{location:{component:"dropdown",ref:"image.location",translation:"Object.OrgChart.ImageLocation",options:Be,defaultValue:e.IMAGE_LOCATION},alignment:{component:"dropdown",ref:"image.alignment",translation:"Object.OrgChart.ImageAlignment",options:Pe,defaultValue:e.IMAGE_ALIGNMENT},shape:{component:"dropdown",ref:"image.shape",translation:"Object.OrgChart.ImageShape",options:De,defaultValue:e.IMAGE_SHAPE},clip:{component:"checkbox",ref:"image.clip",translation:"Object.OrgChart.ImageFit",defaultValue:e.IMAGE_CLIP,show:t=>{var r,o;return"rectangle"===(null!==(r=null===(o=t.image)||void 0===o?void 0:o.shape)&&void 0!==r?r:e.IMAGE_SHAPE)}}}}}}}}}}const He=[{value:"auto",translation:"Common.Auto"},{value:"colorPicker",translation:"properties.colorMode.primary"},{value:"byExpression",translation:"properties.colorMode.byExpression"}],qe=[{value:"free",translation:"Object.OrgChart.FreeMode"},{value:"expandAll",translation:"Object.OrgChart.ExpandAll"}],Fe=e=>t.getValue(e,"style.border.top")||t.getValue(e,"style.border.fullBorder"),Ue=e=>({uses:"data",items:{measures:{disabledRef:""},dimensions:{disabledRef:"",items:{dimensionLimits:{show:!1},attributes:{component:"attribute-expression-reference",defaultValue:[],show:(e,t)=>t.getDimensions()[0]===e,ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",translation:"Object.OrgChart.LabelExpression",defaultValue:"",id:"labelExpression",tid:"labelExpression"},{component:"expression",ref:"qExpression",translation:"Object.OrgChart.SubLabelExpression",defaultValue:"",id:"subLabelExpression",tid:"subLabelExpression"},{component:"expression",ref:"qExpression",translation:"Object.OrgChart.ExtraLabelExpression",defaultValue:"",id:"extraLabelExpression",tid:"extraLabelExpression"},...null!=e&&e.isEnabled("IM_5036_ORGCHART_STYLING")&&null!=e&&e.isEnabled("IM_5036_ORGCHART_STYLING_IMAGE")?[{component:"expression",ref:"qExpression",translation:"Object.OrgChart.ImageUrl",defaultValue:"",id:"imageExpression",tid:"imageExpression"}]:[],{component:"expression",ref:"qExpression",translation:"Object.OrgChart.ColorLabelExpression",defaultValue:"",id:"colorByExpression",tid:"nodeColorByExpression"}]},desc:{show:(e,t)=>t.getDimensions()[0]===e,component:"text",translation:"Object.OrgChart.ExtraLabelDesc",style:"hint"}}}}}),Ye={uses:"sorting"},ze={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"},rowLimit:{type:"integer",translation:"$RowLimit",ref:"rowLimit",defaultValue:3e4,min:5e3,max:1e5,show:!1}}}}},Ke=(r,o,n)=>{var a;const i=null==n||null===(a=n.sense)||void 0===a?void 0:a.theme,l={uses:"settings",items:{styling:{grouped:!0,translation:"properties.presentation",type:"items",items:{...(null==o?void 0:o.isEnabled("IM_5036_ORGCHART_STYLING"))&&{orgChartStyling:Ge(i,o,r)},navigation:{type:"items",items:{navigationMode:{ref:"navigationMode",type:"string",translation:"Object.OrgChart.NavigationMode",component:"dropdown",defaultValue:"free",options:qe},resizeOnExpand:{ref:"resizeOnExpand",type:"boolean",defaultValue:!1,translation:"Object.OrgChart.resizeOnExpand",show:e=>"expandAll"!==t.getValue(e,"navigationMode")}}},backgroundColor:{},fontColor:{},border:{}}}}};return null!=o&&o.isEnabled("IM_5036_ORGCHART_STYLING")||(l.items.styling.items.backgroundColor={type:"items",items:{useColorExpression:{ref:"style.backgroundColor.colorType",type:"string",translation:"Object.OrgChart.BackgroundColor",component:"dropdown",defaultValue:e.BACKGROUND_COLOR_TYPE,options:He},colorPicker:{component:"color-picker",type:"object",ref:"style.backgroundColor.color",translation:"properties.color",dualOutput:!0,defaultValue:e.BACKGROUND_COLOR,show:e=>"colorPicker"===t.getValue(e,"style.backgroundColor.colorType")},colorExpression:{component:"string",type:"string",ref:"style.backgroundColor.colorExpression",translation:"Common.Expression",expression:"optional",defaultValue:"",show:e=>"byExpression"===t.getValue(e,"style.backgroundColor.colorType")}}},l.items.styling.items.fontColor={type:"items",items:{useColorExpression:{ref:"style.fontColor.colorType",type:"string",translation:"Object.OrgChart.FontColor",component:"dropdown",defaultValue:e.FONT_COLOR_TYPE,options:He},colorPicker:{component:"color-picker",type:"object",ref:"style.fontColor.color",translation:"properties.color",dualOutput:!0,defaultValue:e.FONT_COLOR_DARK,show:e=>"colorPicker"===t.getValue(e,"style.fontColor.colorType")},colorExpression:{component:"string",type:"string",ref:"style.fontColor.colorExpression",translation:"Common.Expression",expression:"optional",defaultValue:"",show:e=>"byExpression"===t.getValue(e,"style.fontColor.colorType")}}},l.items.styling.items.border={type:"items",items:{appearanceHeader:{component:"text",translation:"Object.OrgChart.CardAppearance",style:"pp-nm-hcd__list-header"},topBar:{type:"boolean",ref:"style.border.top",translation:"Object.OrgChart.TopBar",defaultValue:e.BORDER_TOP},fullBorder:{type:"boolean",ref:"style.border.fullBorder",translation:"properties.border",defaultValue:e.BORDER_FULL},colorType:{component:"dropdown",type:"string",ref:"style.border.colorType",translation:"properties.border.color",defaultValue:e.BORDER_COLOR_TYPE,options:He,show:e=>Fe(e)},colorPicker:{component:"color-picker",type:"object",ref:"style.border.color",translation:"properties.color",dualOutput:!0,defaultValue:e.BORDER_COLOR,show:e=>Fe(e)&&"colorPicker"===t.getValue(e,"style.border.colorType")},colorExpression:{component:"string",type:"string",ref:"style.border.colorExpression",translation:"Common.Expression",expression:"optional",defaultValue:"",show:e=>Fe(e)&&"byExpression"===t.getValue(e,"style.border.colorType")}}}),l};return function({translator:e,flags:t,anything:r}){return{definition:{type:"items",component:"accordion",items:{data:Ue(t),sorting:Ye,addOns:ze,settings:Ke(e,t,r)}},support:{export:!0,exportData:!0,snapshot:!0,viewData:!0},migrate:{properties:e=>null!=t&&t.isEnabled("IM_5036_ORGCHART_STYLING")?function(e){var t,r,o,n,a,i,l,s,u,c,p,d;if((null===(t=e.components)||void 0===t?void 0:t.length)>0)return e;function f(e){return{useColorExpression:"byExpression"===e.colorType,color:e.color,colorExpression:e.colorExpression,colorType:e.colorType}}function h(e){return"auto"===e.colorType}const m={key:"card",title:{main:{...f(null===(r=e.style)||void 0===r?void 0:r.fontColor)},subTitle:{...f(null===(o=e.style)||void 0===o?void 0:o.fontColor)}},label:{description:{...f(null===(n=e.style)||void 0===n?void 0:n.fontColor)},measureLabel:{...f(null===(a=e.style)||void 0===a?void 0:a.fontColor)},measureValue:{...f(null===(i=e.style)||void 0===i?void 0:i.fontColor)}},contrastTextColor:h(null===(l=e.style)||void 0===l?void 0:l.fontColor),background:{...f(null===(s=e.style)||void 0===s?void 0:s.backgroundColor)},border:{...f(null===(u=e.style)||void 0===u?void 0:u.border),fullBorder:null===(c=e.style)||void 0===c||null===(c=c.border)||void 0===c?void 0:c.fullBorder,topBar:null===(p=e.style)||void 0===p||null===(p=p.border)||void 0===p?void 0:p.top,contrastColor:h(null===(d=e.style)||void 0===d?void 0:d.border)}};return e.components=[m],e}(e):e}}}}));
7
+ function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}}(e)||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.")}()}var a,i="top",l="top-right",s="right",u="bottom-right",c="bottom",p="bottom-left",d="left",f="top-left";o(o(o(o(o(o(o(o(o(o(a={},"equal-equal",[i,c]),"equal-higher",[c,u]),"equal-lower",[i,l]),"equal-void",[i,c]),"higher-equal",[d,p,i,l]),"higher-higher-acute",[c,p,d,l]),"higher-higher-obtuse",[c,i]),"higher-lower-negative",[i,l,s]),"higher-lower-positive",[c,p,d]),"higher-void",[i]),o(o(o(o(o(o(o(o(o(o(a,"lower-equal",[i]),"lower-higher-negative",[i,f]),"lower-higher-positive",[u]),"lower-lower-acute",[i,f,d,l,s]),"lower-lower-obtuse",[i,c]),"lower-void",[i]),"void-equal",[i]),"void-higher",[i,c]),"void-lower",[i,c,d]),"void-void",[i]),o(a,"unclassified",[i,c,s,d,l,u,p,f]);var h="object",m=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],g=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var b=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function y(e){var t=e.theme,r=e.translator,o=e.defaultValue,a=e.flags,i=[],l=t.getStyle("","","fontFamilies");return Array.isArray(l)&&l.length?i.push.apply(i,n(new Set([o].concat(n(l.map(function(e){return e.split(",").map(function(e){return e.trim()}).map(function(e){return e.replace(/\s+/g," ").trim()}).filter(Boolean).join(", ")})))))):i.push(o),[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0}].concat(n(i.map(function(e){return b(e)})),[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0}],n(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?g:m}(a).map(function(e){return b(e)})))}function v(e){var t=e.theme,r=e.translator,o=e.id,n=e.path,a=e.flags,i=function(){return t.getStyle(o,n,"fontFamily")};return{getDefaultValue:function(){return i()},getOptions:function(){return y({theme:t,translator:r,defaultValue:i(),flags:a})}}}var O=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],w=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function x(e){var t=e.theme,r=e.translator,o=e.id,a=e.path,i=function(){return t.getStyle(o,a,"fontSize")};return{getDefaultValue:function(){return i()},getOptions:function(){return function(e){var t=e.translator,r=e.defaultValue,o=[],a=e.theme.getStyle("","","fontSizes");return Array.isArray(a)&&a.length?o.push.apply(o,n(new Set([r].concat(n(a))))):o.push(r),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(n(o.map(function(e){return w(e)})),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],n(O.map(function(e){return w(e)})))}({theme:t,translator:r,defaultValue:i()})}}}function C(e){var t=e.theme,r=e.translator,o=e.id,n=e.path;return{fontFamily:v({theme:t,translator:r,id:o,path:n,flags:e.flags}),fontSize:x({theme:t,translator:r,id:o,path:n})}}var E,k,_=["__proto__","constructor"],R=function(e){if(_.some(function(t){return e.includes(t)}))throw new Error("font-resolver: Forbidden property.")};var N,S=function(){if(k)return E;k=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,n=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},a=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var o,n=e.call(r,"constructor"),a=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!n&&!a)return!1;for(o in r);return void 0===o||e.call(r,o)},i=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(o)return o(t,r).value}return t[r]};return E=function e(){var t,r,o,s,u,c,p=arguments[0],d=1,f=arguments.length,h=!1;for("boolean"==typeof p&&(h=p,p=arguments[1]||{},d=2),(null==p||"object"!=typeof p&&"function"!=typeof p)&&(p={});d<f;++d)if(null!=(t=arguments[d]))for(r in t)o=l(p,r),p!==(s=l(t,r))&&(h&&s&&(a(s)||(u=n(s)))?(u?(u=!1,c=o&&n(o)?o:[]):c=o&&a(o)?o:{},i(p,{name:r,newValue:e(h,c,s)})):void 0!==s&&i(p,{name:r,newValue:s}));return p},E}();function T(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function A(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function V(){}(N=S)&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")&&N.default;var M=.7,I=1/M,L="\\s*([+-]?\\d+)\\s*",$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",B="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",j=/^#([0-9a-f]{3,8})$/,P=new RegExp(`^rgb\\(${L},${L},${L}\\)$`),D=new RegExp(`^rgb\\(${B},${B},${B}\\)$`),G=new RegExp(`^rgba\\(${L},${L},${L},${$}\\)$`),H=new RegExp(`^rgba\\(${B},${B},${B},${$}\\)$`),q=new RegExp(`^hsl\\(${$},${B},${B}\\)$`),F=new RegExp(`^hsla\\(${$},${B},${B},${$}\\)$`),U={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 Y(){return this.rgb().formatHex()}function z(){return this.rgb().formatRgb()}function K(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=j.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?X(t):3===r?new J(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?W(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?W(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=P.exec(e))?new J(t[1],t[2],t[3],1):(t=D.exec(e))?new J(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=G.exec(e))?W(t[1],t[2],t[3],t[4]):(t=H.exec(e))?W(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=q.exec(e))?ae(t[1],t[2]/100,t[3]/100,1):(t=F.exec(e))?ae(t[1],t[2]/100,t[3]/100,t[4]):U.hasOwnProperty(e)?X(U[e]):"transparent"===e?new J(NaN,NaN,NaN,0):null}function X(e){return new J(e>>16&255,e>>8&255,255&e,1)}function W(e,t,r,o){return o<=0&&(e=t=r=NaN),new J(e,t,r,o)}function Z(e){return e instanceof V||(e=K(e)),e?new J((e=e.rgb()).r,e.g,e.b,e.opacity):new J}function Q(e,t,r,o){return 1===arguments.length?Z(e):new J(e,t,r,null==o?1:o)}function J(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}function ee(){return`#${ne(this.r)}${ne(this.g)}${ne(this.b)}`}function te(){const e=re(this.opacity);return`${1===e?"rgb(":"rgba("}${oe(this.r)}, ${oe(this.g)}, ${oe(this.b)}${1===e?")":`, ${e})`}`}function re(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ne(e){return((e=oe(e))<16?"0":"")+e.toString(16)}function ae(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new le(e,t,r,o)}function ie(e){if(e instanceof le)return new le(e.h,e.s,e.l,e.opacity);if(e instanceof V||(e=K(e)),!e)return new le;if(e instanceof le)return e;var t=(e=e.rgb()).r/255,r=e.g/255,o=e.b/255,n=Math.min(t,r,o),a=Math.max(t,r,o),i=NaN,l=a-n,s=(a+n)/2;return l?(i=t===a?(r-o)/l+6*(r<o):r===a?(o-t)/l+2:(t-r)/l+4,l/=s<.5?a+n:2-a-n,i*=60):l=s>0&&s<1?0:i,new le(i,l,s,e.opacity)}function le(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}function se(e){return(e=(e||0)%360)<0?e+360:e}function ue(e){return Math.max(0,Math.min(1,e||0))}function ce(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}T(V,K,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Y,formatHex:Y,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ie(this).formatHsl()},formatRgb:z,toString:z}),T(J,Q,A(V,{brighter(e){return e=null==e?I:Math.pow(I,e),new J(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?M:Math.pow(M,e),new J(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new J(oe(this.r),oe(this.g),oe(this.b),re(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:ee,formatHex:ee,formatHex8:function(){return`#${ne(this.r)}${ne(this.g)}${ne(this.b)}${ne(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:te,toString:te})),T(le,function(e,t,r,o){return 1===arguments.length?ie(e):new le(e,t,r,null==o?1:o)},A(V,{brighter(e){return e=null==e?I:Math.pow(I,e),new le(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?M:Math.pow(M,e),new le(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,n=2*r-o;return new J(ce(e>=240?e-240:e+120,n,o),ce(e,n,o),ce(e<120?e+240:e-120,n,o),this.opacity)},clamp(){return new le(se(this.h),ue(this.s),ue(this.l),re(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 e=re(this.opacity);return`${1===e?"hsl(":"hsla("}${se(this.h)}, ${100*ue(this.s)}%, ${100*ue(this.l)}%${1===e?")":`, ${e})`}`}}));const pe=Math.PI/180,de=180/Math.PI,fe=.96422,he=.82521,me=4/29,ge=6/29,be=3*ge*ge,ye=ge*ge*ge;function ve(e){if(e instanceof Oe)return new Oe(e.l,e.a,e.b,e.opacity);if(e instanceof ke)return _e(e);e instanceof J||(e=Z(e));var t,r,o=Ee(e.r),n=Ee(e.g),a=Ee(e.b),i=we((.2225045*o+.7168786*n+.0606169*a)/1);return o===n&&n===a?t=r=i:(t=we((.4360747*o+.3850649*n+.1430804*a)/fe),r=we((.0139322*o+.0971045*n+.7141733*a)/he)),new Oe(116*i-16,500*(t-i),200*(i-r),e.opacity)}function Oe(e,t,r,o){this.l=+e,this.a=+t,this.b=+r,this.opacity=+o}function we(e){return e>ye?Math.pow(e,1/3):e/be+me}function xe(e){return e>ge?e*e*e:be*(e-me)}function Ce(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ee(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ke(e,t,r,o){this.h=+e,this.c=+t,this.l=+r,this.opacity=+o}function _e(e){if(isNaN(e.h))return new Oe(e.l,0,0,e.opacity);var t=e.h*pe;return new Oe(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}T(Oe,function(e,t,r,o){return 1===arguments.length?ve(e):new Oe(e,t,r,null==o?1:o)},A(V,{brighter(e){return new Oe(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Oe(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new J(Ce(3.1338561*(t=fe*xe(t))-1.6168667*(e=1*xe(e))-.4906146*(r=he*xe(r))),Ce(-.9787684*t+1.9161415*e+.033454*r),Ce(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),T(ke,function(e,t,r,o){return 1===arguments.length?function(e){if(e instanceof ke)return new ke(e.h,e.c,e.l,e.opacity);if(e instanceof Oe||(e=ve(e)),0===e.a&&0===e.b)return new ke(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*de;return new ke(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ke(e,t,r,null==o?1:o)},A(V,{brighter(e){return new ke(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ke(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return _e(this).rgb()}}));var Re=e=>()=>e;function Ne(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Re(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1===(e=+e)?Ne:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}(t,r,e):Re(isNaN(t)?r:t)}}(t);function o(e,t){var o=r((e=Q(e)).r,(t=Q(t)).r),n=r(e.g,t.g),a=r(e.b,t.b),i=Ne(e.opacity,t.opacity);return function(t){return e.r=o(t),e.g=n(t),e.b=a(t),e.opacity=i(t),e+""}}return o.gamma=e,o}(1);var Se,Te="center",Ae="bottom";function Ve(e){var t=0,r=e.children,o=r&&r.length;if(o)for(;--o>=0;)t+=r[o].value;else t=1;e.value=t}function Me(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Le)):void 0===t&&(t=Ie);for(var r,o,n,a,i,l=new je(e),s=[l];r=s.pop();)if((n=t(r.data))&&(i=(n=Array.from(n)).length))for(r.children=n,a=i-1;a>=0;--a)s.push(o=n[a]=new je(n[a])),o.parent=r,o.depth=r.depth+1;return l.eachBefore(Be)}function Ie(e){return e.children}function Le(e){return Array.isArray(e)?e[1]:null}function $e(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Be(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function je(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:Te,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Te,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Te,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Te},{key:"DataRangeIncludingZero",alignment:Ae},{key:"LimitedData",alignment:Ae},{key:"NegativeOrZeroValues",alignment:Ae}].reduce(function(e,t){return e[t.key]=t,e},{}),je.prototype=Me.prototype={constructor:je,count:function(){return this.eachAfter(Ve)},each:function(e,t){let r=-1;for(const o of this)e.call(t,o,++r,this);return this},eachAfter:function(e,t){for(var r,o,n,a=this,i=[a],l=[],s=-1;a=i.pop();)if(l.push(a),r=a.children)for(o=0,n=r.length;o<n;++o)i.push(r[o]);for(;a=l.pop();)e.call(t,a,++s,this);return this},eachBefore:function(e,t){for(var r,o,n=this,a=[n],i=-1;n=a.pop();)if(e.call(t,n,++i,this),r=n.children)for(o=r.length-1;o>=0;--o)a.push(r[o]);return this},find:function(e,t){let r=-1;for(const o of this)if(e.call(t,o,++r,this))return o},sum:function(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,o=t.children,n=o&&o.length;--n>=0;)r+=o[n].value;t.value=r})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),o=t.ancestors(),n=null;for(e=r.pop(),t=o.pop();e===t;)n=e,e=r.pop(),t=o.pop();return n}(t,e),o=[t];t!==r;)t=t.parent,o.push(t);for(var n=o.length;e!==r;)o.splice(n,0,e),e=e.parent;return o},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t},copy:function(){return Me(this).eachBefore($e)},[Symbol.iterator]:function*(){var e,t,r,o,n=this,a=[n];do{for(e=a.reverse(),a=[];n=e.pop();)if(yield n,t=n.children)for(r=0,o=t.length;r<o;++r)a.push(t[r])}while(a.length)}},Se=function(e){e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,o,n,a,i,l,s,u,c,p,d=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=d-g,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),O=g>0?e.substring(v,d):"";if(r=(t="-"===(e=e.substring(f,v)).charAt(0)?-t:+t)<0?t=-t:0,n=(o=e.match(/[^\d\-\+#]/g))&&o[o.length-1]||".",a=o&&o[1]&&o[0]||",",e=e.split(n),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(a),e[0]=c.join(""),(i=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-i;)u[0]="0"+u[0];else 0===+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(m="",b=(p=t[0]).length%s,d=p.length,v=0;v<d;v++)m+=p.charAt(v),!((v-b+1)%s)&&v<d-s&&(m+=a);t[0]=m}return t[1]=e[1]&&t[1]?n+t[1]:"","0"!==(o=t.join(""))&&""!==o||(r=!1),h+(r?"-":"")+o+O}},Se({exports:{}});const Pe=[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],De=e=>{var t;return null===(t=e.contrastTextColor)||void 0===t||t};function Ge(t,r,o){const n=`${t}.${r}`,a=`${n}.fontFamily`,i=`${n}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:a,options:()=>o.getOptions(`card.${a}`),defaultValue:()=>o.getDefaultValue(`card.${a}`)},fontSizeItem:{component:"dropdown",ref:i,options:()=>o.getOptions(`card.${i}`),defaultValue:()=>o.getDefaultValue(`card.${i}`)},fontColorWrapperItem:{component:"inline-wrapper",items:{useColorExpression:{ref:`${n}.useColorExpression`,width:!0,component:"dropdown",defaultValue:e.FONT_COLOR_USE_EXPRESSION,options:Pe,show:e=>!De(e)},colorPicker:{component:"color-picker",ref:`${n}.color`,width:!1,dualOutput:!0,defaultValue:e.FONT_COLOR_DARK,show:e=>{var o;return!(De(e)||null!==(o=e[t])&&void 0!==o&&null!==(o=o[r])&&void 0!==o&&o.useColorExpression)}}}},colorExpression:{component:"input-field-expression",type:"string",ref:`${n}.colorExpression`,width:!0,expression:"optional",defaultValue:"",show:e=>{var o;return!De(e)&&(null===(o=e[t])||void 0===o||null===(o=o[r])||void 0===o?void 0:o.useColorExpression)}}}}const He=[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],qe=[{value:"card",translation:"Card only"},{value:"tooltip",translation:"Tooltip only"},{value:"both",translation:"Card and tooltip"}],Fe=[{value:"left",translation:"Left"},{value:"right",translation:"Right"},{value:"top",translation:"Top"},{value:"bottom",translation:"Bottom"}],Ue=[{value:"rectangle",translation:"Rectangle"},{value:"round",translation:"Round"}];function Ye(t,r,o){const n=function(e){var t=e.theme,r=e.translator,o=e.config,n=void 0===o?{}:o,a=e.flags,i=function(e){var t=e.config,r=void 0===t?{}:t,o=r.id,n=r.paths;return{id:void 0===o?h:"".concat(h,".").concat(o),paths:Array.isArray(n)?n:[]}}({config:n}),l=i.id,s=i.paths,u={};s.forEach(function(e){var o=e.split(".");R(o);for(var n=u,i=0;i<o.length;i++){var s=o[i];i===o.length-1?n[s]=C({theme:t,translator:r,id:l,path:e,flags:a}):void 0===n[s]&&(n[s]={}),n=n[s]}});var c=function(e){var t=e.split(".");R(t);for(var r=u,o=0;o<t.length;o++){var n=t[o];if(void 0===r[n])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));r=r[n]}return r};return u.getDefaultValue=function(e){return c(e).getDefaultValue()},u.getOptions=function(e){return c(e).getOptions()},u}({theme:t,translator:o,flags:r,config:{id:"orgChart",paths:["card.title.main","card.title.subTitle","card.label.description","card.label.measureLabel","card.label.measureValue"]}}),a=t=>{var r,o,n,a;return(null!==(r=null===(o=t.border)||void 0===o?void 0:o.topBar)&&void 0!==r?r:e.BORDER_TOP)||(null!==(n=null===(a=t.border)||void 0===a?void 0:a.fullBorder)&&void 0!==n?n:e.BORDER_FULL)},i=e=>{var t,r;return null===(t=null===(r=e.border)||void 0===r?void 0:r.contrastColor)||void 0===t||t};return{component:"styling-panel",show:!0,chartType:"orgchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.OrgChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{contrastTextColorSection:{translation:"Object.OrgChart.Card.TextColor",component:"panel-section",items:{contrastTextColorItems:{component:"items",ref:"components",key:"card",items:{useContrast:{component:"checkbox",type:"boolean",ref:"contrastTextColor",translation:"Object.OrgChart.Card.Contrast",defaultValue:!0}}}}},titleSection:{translation:"Object.OrgChart.Card.Title",component:"panel-section",items:{titleItems:{component:"items",ref:"components",key:"card",items:Ge("title","main",n)}}},subtitleSection:{translation:"Object.OrgChart.Card.Subtitle",component:"panel-section",items:{subtitleItems:{component:"items",ref:"components",key:"card",items:Ge("title","subTitle",n)}}},descriptionSection:{translation:"Object.OrgChart.Card.Description",component:"panel-section",items:{descriptionItems:{component:"items",ref:"components",key:"card",items:Ge("label","description",n)}}},measureLabelSection:{translation:"Object.OrgChart.Card.MeasureLabel",component:"panel-section",items:{measureLabelItems:{component:"items",ref:"components",key:"card",items:Ge("label","measureLabel",n)}}},measureValueSection:{translation:"Object.OrgChart.Card.MeasureValue",component:"panel-section",items:{measureValueItems:{component:"items",ref:"components",key:"card",items:Ge("label","measureValue",n)}}},backgroundColorSection:{component:"panel-section",translation:"Object.OrgChart.ColorLabelExpression",items:{backgroundColorItems:{component:"items",ref:"components",key:"card",items:{fontColorWrapperItem:{component:"inline-wrapper",items:{useColorExpression:{ref:"background.useColorExpression",width:9,component:"dropdown",defaultValue:e.BACKGROUND_USE_EXPRESSION,options:He},colorPicker:{component:"color-picker",type:"object",ref:"background.color",width:3,dualOutput:!0,defaultValue:e.BACKGROUND_COLOR,showAlpha:null==r?void 0:r.isEnabled("IM_3964_BG_OPACITY"),show:e=>{var t;return!(null!==(t=e.background)&&void 0!==t&&t.useColorExpression)}},colorExpression:{component:"input-field-expression",type:"string",ref:"background.colorExpression",expression:"optional",defaultValue:"",show:e=>{var t;return null===(t=e.background)||void 0===t?void 0:t.useColorExpression}}}}}}}},cardBorderSection:{component:"panel-section",translation:"Object.OrgChart.CardAppearance",items:{cardBorderItems:{component:"items",ref:"components",key:"card",items:{topBar:{component:"checkbox",ref:"border.topBar",translation:"Object.OrgChart.TopBar",defaultValue:e.BORDER_TOP},fullBorder:{component:"checkbox",ref:"border.fullBorder",translation:"properties.border",defaultValue:e.BORDER_FULL},contrastBorderColorSection:{component:"checkbox",type:"boolean",key:"card",ref:"border.contrastColor",translation:"Object.OrgChart.Card.Contrast",defaultValue:!0,show:e=>a(e)},borderColorWrapperItem:{component:"inline-wrapper",items:{useColorExpression:{component:"dropdown",ref:"border.useColorExpression",width:9,translation:"properties.border.color",defaultValue:e.BORDER_USE_EXPRESSION,options:He,show:e=>a(e)&&!i(e)},colorPicker:{component:"color-picker",ref:"border.color",width:3,dualOutput:!0,defaultValue:e.BORDER_COLOR,show:e=>{var t;return a(e)&&!i(e)&&!(null!==(t=e.border)&&void 0!==t&&t.useColorExpression)}},colorExpression:{component:"input-field-expression",type:"string",ref:"border.colorExpression",expression:"optional",defaultValue:"",show:e=>{var t;return a(e)&&!i(e)&&(null===(t=e.border)||void 0===t?void 0:t.useColorExpression)}}}}}}}},...(null==r?void 0:r.isEnabled("IM_5036_ORGCHART_STYLING_IMAGE"))&&{imageSection:{component:"panel-section",translation:"Object.OrgChart.ImageOptions",items:{imageItems:{component:"items",ref:"components",key:"card",items:{location:{component:"dropdown",ref:"image.location",translation:"Object.OrgChart.ImageLocation",options:qe,defaultValue:e.IMAGE_LOCATION},alignment:{component:"dropdown",ref:"image.alignment",translation:"Object.OrgChart.ImageAlignment",options:Fe,defaultValue:e.IMAGE_ALIGNMENT},shape:{component:"dropdown",ref:"image.shape",translation:"Object.OrgChart.ImageShape",options:Ue,defaultValue:e.IMAGE_SHAPE},clip:{component:"checkbox",ref:"image.clip",translation:"Object.OrgChart.ImageFit",defaultValue:e.IMAGE_CLIP,show:t=>{var r,o;return"rectangle"===(null!==(r=null===(o=t.image)||void 0===o?void 0:o.shape)&&void 0!==r?r:e.IMAGE_SHAPE)}}}}}}}}}}const ze=[{value:"auto",translation:"Common.Auto"},{value:"colorPicker",translation:"properties.colorMode.primary"},{value:"byExpression",translation:"properties.colorMode.byExpression"}],Ke=[{value:"free",translation:"Object.OrgChart.FreeMode"},{value:"expandAll",translation:"Object.OrgChart.ExpandAll"}],Xe=e=>t.getValue(e,"style.border.top")||t.getValue(e,"style.border.fullBorder"),We=e=>({uses:"data",items:{measures:{disabledRef:""},dimensions:{disabledRef:"",items:{dimensionLimits:{show:!1},attributes:{component:"attribute-expression-reference",defaultValue:[],show:(e,t)=>t.getDimensions()[0]===e,ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",translation:"Object.OrgChart.LabelExpression",defaultValue:"",id:"labelExpression",tid:"labelExpression"},{component:"expression",ref:"qExpression",translation:"Object.OrgChart.SubLabelExpression",defaultValue:"",id:"subLabelExpression",tid:"subLabelExpression"},{component:"expression",ref:"qExpression",translation:"Object.OrgChart.ExtraLabelExpression",defaultValue:"",id:"extraLabelExpression",tid:"extraLabelExpression"},...null!=e&&e.isEnabled("IM_5036_ORGCHART_STYLING")&&null!=e&&e.isEnabled("IM_5036_ORGCHART_STYLING_IMAGE")?[{component:"expression",ref:"qExpression",translation:"Object.OrgChart.ImageUrl",defaultValue:"",id:"imageExpression",tid:"imageExpression"}]:[],{component:"expression",ref:"qExpression",translation:"Object.OrgChart.ColorLabelExpression",defaultValue:"",id:"colorByExpression",tid:"nodeColorByExpression"}]},desc:{show:(e,t)=>t.getDimensions()[0]===e,component:"text",translation:"Object.OrgChart.ExtraLabelDesc",style:"hint"}}}}}),Ze={uses:"sorting"},Qe={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"},rowLimit:{type:"integer",translation:"$RowLimit",ref:"rowLimit",defaultValue:3e4,min:5e3,max:1e5,show:!1}}}}},Je=(r,o,n)=>{var a;const i=null==n||null===(a=n.sense)||void 0===a?void 0:a.theme,l={uses:"settings",items:{styling:{grouped:!0,translation:"properties.presentation",type:"items",items:{...(null==o?void 0:o.isEnabled("IM_5036_ORGCHART_STYLING"))&&{orgChartStyling:Ye(i,o,r)},navigation:{type:"items",items:{navigationMode:{ref:"navigationMode",type:"string",translation:"Object.OrgChart.NavigationMode",component:"dropdown",defaultValue:"free",options:Ke},resizeOnExpand:{ref:"resizeOnExpand",type:"boolean",defaultValue:!1,translation:"Object.OrgChart.resizeOnExpand",show:e=>"expandAll"!==t.getValue(e,"navigationMode")}}},backgroundColor:{},fontColor:{},border:{}}}}};return null!=o&&o.isEnabled("IM_5036_ORGCHART_STYLING")||(l.items.styling.items.backgroundColor={type:"items",items:{useColorExpression:{ref:"style.backgroundColor.colorType",type:"string",translation:"Object.OrgChart.BackgroundColor",component:"dropdown",defaultValue:e.BACKGROUND_COLOR_TYPE,options:ze},colorPicker:{component:"color-picker",type:"object",ref:"style.backgroundColor.color",translation:"properties.color",dualOutput:!0,defaultValue:e.BACKGROUND_COLOR,show:e=>"colorPicker"===t.getValue(e,"style.backgroundColor.colorType")},colorExpression:{component:"string",type:"string",ref:"style.backgroundColor.colorExpression",translation:"Common.Expression",expression:"optional",defaultValue:"",show:e=>"byExpression"===t.getValue(e,"style.backgroundColor.colorType")}}},l.items.styling.items.fontColor={type:"items",items:{useColorExpression:{ref:"style.fontColor.colorType",type:"string",translation:"Object.OrgChart.FontColor",component:"dropdown",defaultValue:e.FONT_COLOR_TYPE,options:ze},colorPicker:{component:"color-picker",type:"object",ref:"style.fontColor.color",translation:"properties.color",dualOutput:!0,defaultValue:e.FONT_COLOR_DARK,show:e=>"colorPicker"===t.getValue(e,"style.fontColor.colorType")},colorExpression:{component:"string",type:"string",ref:"style.fontColor.colorExpression",translation:"Common.Expression",expression:"optional",defaultValue:"",show:e=>"byExpression"===t.getValue(e,"style.fontColor.colorType")}}},l.items.styling.items.border={type:"items",items:{appearanceHeader:{component:"text",translation:"Object.OrgChart.CardAppearance",style:"pp-nm-hcd__list-header"},topBar:{type:"boolean",ref:"style.border.top",translation:"Object.OrgChart.TopBar",defaultValue:e.BORDER_TOP},fullBorder:{type:"boolean",ref:"style.border.fullBorder",translation:"properties.border",defaultValue:e.BORDER_FULL},colorType:{component:"dropdown",type:"string",ref:"style.border.colorType",translation:"properties.border.color",defaultValue:e.BORDER_COLOR_TYPE,options:ze,show:e=>Xe(e)},colorPicker:{component:"color-picker",type:"object",ref:"style.border.color",translation:"properties.color",dualOutput:!0,defaultValue:e.BORDER_COLOR,show:e=>Xe(e)&&"colorPicker"===t.getValue(e,"style.border.colorType")},colorExpression:{component:"string",type:"string",ref:"style.border.colorExpression",translation:"Common.Expression",expression:"optional",defaultValue:"",show:e=>Xe(e)&&"byExpression"===t.getValue(e,"style.border.colorType")}}}),l};return function({translator:e,flags:t,anything:r}){return{definition:{type:"items",component:"accordion",items:{data:We(t),sorting:Ze,addOns:Qe,settings:Je(e,t,r)}},support:{export:!0,exportData:!0,snapshot:!0,viewData:!0},migrate:{properties:e=>null!=t&&t.isEnabled("IM_5036_ORGCHART_STYLING")?function(e){var t,r,o,n,a,i,l,s,u,c,p,d;if((null===(t=e.components)||void 0===t?void 0:t.length)>0)return e;function f(e){return{useColorExpression:"byExpression"===e.colorType,color:e.color,colorExpression:e.colorExpression,colorType:e.colorType}}function h(e){return"auto"===e.colorType}const m={key:"card",title:{main:{...f(null===(r=e.style)||void 0===r?void 0:r.fontColor)},subTitle:{...f(null===(o=e.style)||void 0===o?void 0:o.fontColor)}},label:{description:{...f(null===(n=e.style)||void 0===n?void 0:n.fontColor)},measureLabel:{...f(null===(a=e.style)||void 0===a?void 0:a.fontColor)},measureValue:{...f(null===(i=e.style)||void 0===i?void 0:i.fontColor)}},contrastTextColor:h(null===(l=e.style)||void 0===l?void 0:l.fontColor),background:{...f(null===(s=e.style)||void 0===s?void 0:s.backgroundColor)},border:{...f(null===(u=e.style)||void 0===u?void 0:u.border),fullBorder:null===(c=e.style)||void 0===c||null===(c=c.border)||void 0===c?void 0:c.fullBorder,topBar:null===(p=e.style)||void 0===p||null===(p=p.border)||void 0===p?void 0:p.top,contrastColor:h(null===(d=e.style)||void 0===d?void 0:d.border)}};return e.components=[m],e}(e):e}}}});
@@ -1 +1,12 @@
1
- define(['./dist/sn-org-chart'], (supernova) => supernova);
1
+ define(['./dist/sn-org-chart', './ext'], (supernova, ext) =>
2
+ function supernovaExtension(env) {
3
+ var v = supernova(env);
4
+ var extDef = ext;
5
+ /* eslint no-underscore-dangle:0 */
6
+ if (ext.__esmodule === true) {
7
+ // Handles es modules with multiple exports
8
+ extDef = ext.default;
9
+ }
10
+ v.ext = typeof extDef === 'function' ? extDef(env) : extDef;
11
+ return v;
12
+ });
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "Org chart",
3
- "version": "1.4.2",
3
+ "version": "1.7.0",
4
4
  "description": "Org chart supernova",
5
5
  "author": "QlikTech International AB",
6
- "icon": "org-chart",
7
- "preview": "assets/preview.png",
6
+ "icon": "network",
7
+ "preview": "preview.png",
8
8
  "type": "visualization",
9
9
  "supernova": true
10
10
  }