@bino-bi/bn-template-engine 1.0.0-next.53 → 1.0.0-next.55

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 (112) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-3379df20.entry.js +1 -0
  3. package/dist/bn-template-engine/{p-9a24e486.entry.js → p-471ea1b2.entry.js} +1 -1
  4. package/dist/bn-template-engine/{p-fdf42a77.entry.js → p-776e091f.entry.js} +1 -1
  5. package/dist/bn-template-engine/p-B6SpWzpW.js +1 -0
  6. package/dist/bn-template-engine/{p-NxJ6P79y.js → p-BXkVoFbt.js} +1 -1
  7. package/dist/bn-template-engine/{p-BL07yV8P.js → p-CZmA8CIL.js} +1 -1
  8. package/dist/bn-template-engine/{p-Dvlw60RF.js → p-CzzF-PBk.js} +1 -1
  9. package/dist/bn-template-engine/{p-Bvunba5p.js → p-DBRtHV59.js} +1 -1
  10. package/dist/bn-template-engine/{p-b75a4b52.entry.js → p-e905e4ee.entry.js} +1 -1
  11. package/dist/bn-template-engine/{p-150bdb68.entry.js → p-ef63af53.entry.js} +1 -1
  12. package/dist/bn-template-engine/{p-ddc1b2a9.entry.js → p-f62c59b0.entry.js} +1 -1
  13. package/dist/cjs/bn-annotation-layer_30.cjs.entry.js +34 -19
  14. package/dist/cjs/bn-grid.cjs.entry.js +3 -3
  15. package/dist/cjs/bn-image.cjs.entry.js +2 -2
  16. package/dist/cjs/bn-internationalization.cjs.entry.js +2 -2
  17. package/dist/cjs/bn-ruleset.cjs.entry.js +2 -2
  18. package/dist/cjs/bn-text.cjs.entry.js +3 -3
  19. package/dist/cjs/{localFrame-C4RBw_zT.js → localFrame-J1QUlhHH.js} +1 -1
  20. package/dist/cjs/{withBodyObserver-CIGVLQEB.js → withBodyObserver-DhrwVmn_.js} +1 -1
  21. package/dist/cjs/{withHasError-CZFrIJw0.js → withHasError-DOXAxUCF.js} +2 -0
  22. package/dist/cjs/{withStyled-BISQLGLe.js → withStyled-CHR4d8Hl.js} +1 -1
  23. package/dist/cjs/{withTranslation-B7T30EVU.js → withTranslation-Vuxqw9J7.js} +2 -2
  24. package/dist/collection/components/bn-annotation-layer/bn-annotation-layer.js +6 -2
  25. package/dist/collection/components/bn-annotation-layer/utils/marks.js +7 -4
  26. package/dist/collection/components/bn-annotation-list/bn-annotation-list.js +6 -2
  27. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +2 -1
  28. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +1 -0
  29. package/dist/collection/components/bn-chart-structure/utils/elements/Axis.js +1 -1
  30. package/dist/collection/components/bn-chart-structure/utils/model/styles/StructureChartStyle.js +2 -0
  31. package/dist/collection/stores/componentStyles.js +2 -0
  32. package/dist/collection/utils/layoutState/svgChartElements.js +4 -4
  33. package/dist/components/bn-annotation-layer.js +1 -1
  34. package/dist/components/bn-annotation-list.js +1 -1
  35. package/dist/components/bn-asset.js +1 -1
  36. package/dist/components/bn-body.js +1 -1
  37. package/dist/components/bn-card.js +1 -1
  38. package/dist/components/bn-chart-bubble-renderer.js +1 -1
  39. package/dist/components/bn-chart-bubble.js +1 -1
  40. package/dist/components/bn-chart-bullet-renderer.js +1 -1
  41. package/dist/components/bn-chart-bullet.js +1 -1
  42. package/dist/components/bn-chart-scatter-renderer.js +1 -1
  43. package/dist/components/bn-chart-scatter.js +1 -1
  44. package/dist/components/bn-chart-structure-renderer.js +1 -1
  45. package/dist/components/bn-chart-structure.js +1 -1
  46. package/dist/components/bn-chart-time-renderer.js +1 -1
  47. package/dist/components/bn-chart-time.js +1 -1
  48. package/dist/components/bn-component-style.js +1 -1
  49. package/dist/components/bn-context.js +1 -1
  50. package/dist/components/bn-dataset.js +1 -1
  51. package/dist/components/bn-datasource.js +1 -1
  52. package/dist/components/bn-footer.js +1 -1
  53. package/dist/components/bn-grid.js +1 -1
  54. package/dist/components/bn-image.js +1 -1
  55. package/dist/components/bn-internationalization.js +1 -1
  56. package/dist/components/bn-layout-card.js +1 -1
  57. package/dist/components/bn-layout-page.js +1 -1
  58. package/dist/components/bn-message.js +1 -1
  59. package/dist/components/bn-page.js +1 -1
  60. package/dist/components/bn-ruleset.js +1 -1
  61. package/dist/components/bn-scaling-group.js +1 -1
  62. package/dist/components/bn-table-renderer.js +1 -1
  63. package/dist/components/bn-table.js +1 -1
  64. package/dist/components/bn-text.js +1 -1
  65. package/dist/components/bn-title.js +1 -1
  66. package/dist/components/bn-tree.js +1 -1
  67. package/dist/components/p-5LbdDgZ5.js +1 -0
  68. package/dist/components/{p-dSUX43yf.js → p-BAvpRnjI.js} +1 -1
  69. package/dist/components/{p-DRU71K0s.js → p-BCTmWVaW.js} +1 -1
  70. package/dist/components/{p-Bp5Xj4-s.js → p-BPvwrhvq.js} +1 -1
  71. package/dist/components/{p-CZSp0rSS.js → p-BQD7EWUn.js} +1 -1
  72. package/dist/components/p-BY1Y1Ipv.js +1 -0
  73. package/dist/components/{p-DdvG1D18.js → p-Bmb0YBzz.js} +1 -1
  74. package/dist/components/{p-CiljAoC5.js → p-BpyLanO3.js} +1 -1
  75. package/dist/components/p-CFF7b9FT.js +1 -0
  76. package/dist/components/p-CFY-zEXs.js +1 -0
  77. package/dist/components/{p-DMAaBt7n.js → p-CTX2pUU7.js} +1 -1
  78. package/dist/components/{p-DKcw-1ot.js → p-CThV2et_.js} +1 -1
  79. package/dist/components/{p-CHJ6WE0l.js → p-CWSjn_DC.js} +1 -1
  80. package/dist/components/{p-jEqo8YD5.js → p-ChMe_jnA.js} +1 -1
  81. package/dist/components/p-ClFDt6Bk.js +1 -0
  82. package/dist/components/{p-LHIKI9Dp.js → p-D7pKezNW.js} +1 -1
  83. package/dist/components/{p-NdDdfez6.js → p-Dmsa7xm_.js} +1 -1
  84. package/dist/components/{p-BOwmXBm-.js → p-LB2R8XbL.js} +1 -1
  85. package/dist/components/{p-JG4Sx1lE.js → p-NkLVO7n9.js} +1 -1
  86. package/dist/components/{p-D65TnLS9.js → p-OR6uR6gy.js} +1 -1
  87. package/dist/components/{p-2t-lysdb.js → p-YuXVqXS_.js} +1 -1
  88. package/dist/components/{p-4xaxuPVU.js → p-tz4QGm3s.js} +1 -1
  89. package/dist/esm/bn-annotation-layer_30.entry.js +34 -19
  90. package/dist/esm/bn-grid.entry.js +3 -3
  91. package/dist/esm/bn-image.entry.js +2 -2
  92. package/dist/esm/bn-internationalization.entry.js +2 -2
  93. package/dist/esm/bn-ruleset.entry.js +2 -2
  94. package/dist/esm/bn-text.entry.js +3 -3
  95. package/dist/esm/{localFrame-WNu1bAPm.js → localFrame-wBZfmzjd.js} +1 -1
  96. package/dist/esm/{withBodyObserver-wJgSN1Pj.js → withBodyObserver-DgAvBnkB.js} +1 -1
  97. package/dist/esm/{withHasError-BDWEBrrb.js → withHasError-CRNW6htv.js} +2 -0
  98. package/dist/esm/{withStyled-CrTxIZ0Q.js → withStyled-BBzg5lxJ.js} +1 -1
  99. package/dist/esm/{withTranslation-BtSJmx1J.js → withTranslation-D1H_U5az.js} +2 -2
  100. package/dist/schemas/theme.schema.json +12 -0
  101. package/dist/types/components/bn-annotation-layer/utils/marks.d.ts +1 -1
  102. package/dist/types/components/bn-chart-structure/utils/model/styles/StructureChartStyle.d.ts +1 -0
  103. package/dist/types/stores/componentStyles.d.ts +4 -0
  104. package/dist/types/utils/annotations.d.ts +2 -0
  105. package/package.json +1 -1
  106. package/dist/bn-template-engine/p-0d8eade3.entry.js +0 -1
  107. package/dist/bn-template-engine/p-7pLJBHT2.js +0 -1
  108. package/dist/components/p-6242qMx1.js +0 -1
  109. package/dist/components/p-9a9XB5Y8.js +0 -1
  110. package/dist/components/p-BXP6aagM.js +0 -1
  111. package/dist/components/p-Bs5V6Ibu.js +0 -1
  112. package/dist/components/p-CZzlLTQc.js +0 -1
@@ -1 +1 @@
1
- import{g as t,f as e}from"./p-GstO_GU5.js";import{g as n,r,c as s,D as a}from"./p-7pLJBHT2.js";const i=t=>{if("object"==typeof t&&null!==t){if("function"==typeof Object.getPrototypeOf){const e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}return"[object Object]"===Object.prototype.toString.call(t)}return!1},o=(t,e)=>e,u=(t,e)=>[...new Set([...t,...e])],c=(t,e)=>{const n=(t=>{return{arrayMergeType:"combine",arrayMerge:(e=t?t.arrayMergeType:"combine","overwrite"===e?o:u),...t};var e})(e);return t.reduce(((t,e)=>(Object.keys(e).forEach((r=>{Array.isArray(t[r])&&Array.isArray(e[r])?n&&n.arrayMerge&&(t[r]=n.arrayMerge(t[r],e[r])):t[r]=i(t[r])&&i(e[r])?c([t[r],e[r]],n):e[r]})),t)),{})},l=(t,e)=>c([t._system||{},t._default||{},void 0!==e&&t[e]||{}],{arrayMergeType:"overwrite"}),f=a=>{let i,o,u,c;const f=()=>{c=l(o.componentStyles.state,u)},d=a.connectedCallback;a.connectedCallback=()=>{const s=t(a);o=n(s),c=o.componentStyles.state._system,u=a.selectedStyle,f(),i=o.componentStyles.on("set",(n=>{n!==u&&"_default"!==n||(u=a.selectedStyle,f(),e(t(a)))})),r(d,a)};const h=a.disconnectedCallback;return a.disconnectedCallback=()=>{r(i),s(t(a)),r(h,a)},t=>(void 0!==o&&a.selectedStyle!==u&&(u=a.selectedStyle,f()),t(c))};var d,h,m,y,p,b,v,g;!function(t){t.ALL="all",t.META="meta"}(d||(d={})),function(t){t.CURRENCY="currency",t.VOLUME="volume"}(h||(h={})),function(t){t.AC1="ac1",t.AC2="ac2",t.AC3="ac3",t.AC4="ac4",t.PP1="pp1",t.PP2="pp2",t.PP3="pp3",t.PP4="pp4",t.FC1="fc1",t.FC2="fc2",t.FC3="fc3",t.FC4="fc4",t.PL1="pl1",t.PL2="pl2",t.PL3="pl3",t.PL4="pl4"}(m||(m={})),function(t){t.POS="pos",t.NEG="neg",t.NEU="neu",t.OP="op",t.OPINV="opinv"}(y||(y={})),function(t){t.DECIMAL="decimal",t.PERCENT="percent"}(p||(p={})),function(t){t.LIST="list",t.SUM="sum",t.SUMNOTOTAL="sumnototal",t.OPT="opt",t.OPTNOTOTAL="optnototal"}(b||(b={})),function(t){t.INF="inf",t.W100="w100",t.W50="w50",t.W25="w25",t.W20="w20",t.W15="w15",t.W10="w10",t.W5="w5"}(v||(v={})),function(t){t.W5="w5",t.W10="w10",t.W15="w15",t.W20="w20",t.W25="w25",t.W30="w30",t.W40="w40",t.W60="w60",t.W80="w80",t.W100="w100"}(g||(g={}));const w={[g.W5]:5,[g.W10]:10,[g.W15]:15,[g.W20]:20,[g.W25]:25,[g.W30]:30,[g.W40]:40,[g.W60]:60,[g.W80]:80,[g.W100]:100};var N,k,S,O,D,T;!function(t){t.ROWGROUP="rowGroup",t.ROWGROUPINDEX="rowGroupIndex",t.CATEGORY="category",t.CATEGORYINDEX="categoryIndex",t.SUBCATEGORY="subCategory",t.SUBCATEGORYINDEX="subCategoryIndex"}(N||(N={})),function(t){t.SMART="smart",t.LONG="long",t.SHORT="short",t.TWO_ROW="two-row"}(k||(k={})),function(t){t.COLUMN="column",t.LINE="line",t.WATERFALL="waterfall"}(S||(S={})),function(t){t.BAR="bar",t.LINE="line",t.AUTO="auto"}(O||(O={})),function(t){t.SCENARIOS="scenarios",t.DIMENSIONS="dimensions"}(D||(D={})),function(t){t.ABSOLUTE="absolute",t.RELATIVE="relative",t.ABSOLUTE_RELATIVE="absolute-relative"}(T||(T={}));const A=100;var M,E,j,$,J,L,F;!function(t){t.ASC="asc",t.DESC="desc",t.DATASET="dataset"}(M||(M={})),function(t){t[t.ALL=-1]="ALL"}(E||(E={})),function(t){t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.DIRTY=1]="DIRTY"}(j||(j={})),function(t){t.LIST="list",t.SUM="sum",t.SUMNOTOTAL="sumnototal",t.OPT="opt",t.OPTNOTOTAL="optnototal"}($||($={})),function(t){t.BELOW="below",t.ABOVE="above"}(J||(J={})),function(t){t.ASC="asc",t.DESC="desc"}(L||(L={})),function(t){t.HEADER="HEADER",t.GROUPHEAD="GROUPHEAD",t.SEPERATORLINE="SEPERATORLINE",t.SUM="SUM",t.GROUPSUM="GROUP_SUM",t.DRILLELEMENT="DRILLELEMENT",t.STANDARD="STANDARD",t.PARTELEMENT="PARTELEMENT",t.ENTRY="ENTRY"}(F||(F={}));const _=/^\s*(set|first|last|min|max|avg|sum|lit)\(\s*(.*?)\s*\)\s*$/,I=/^[A-Za-z_][A-Za-z0-9_]*$/,x=["min","max","avg","sum"];class W{constructor(t,e,n,r){this.label=t,this.alias=e,this.fn=n,this.arg=r}get isNumeric(){return x.includes(this.fn)}}function G(t){if("string"!=typeof t)return!1;const e=_.exec(t);if(!e)return!1;const[,n,r]=e;return"lit"===n?r.length>0:I.test(r)}function q(t,e,n){if(!G(n))return null;const[,r,s]=_.exec(n);return new W(t,e,r,s)}var R,z,C,P;!function(t){t.YEAR="year",t.QUARTER="quarter",t.MONTH="month",t.WEEK="week",t.DAY="day",t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.MILLISECOND="millisecond",t.NONE="fallback",t.AUTO="auto"}(R||(R={})),function(t){t.AVG="avg",t.INTERVAL="interval",t.START="start",t.END="end",t.YTD="ytd",t.YTG="ytg",t.CUM="cum",t.MAT="mat",t.NONE="none",t.AUTO="auto"}(z||(z={}));class U{constructor(){this._dateFormat={year:"yyyy",quarter:"q'Q' yyyy",month:"LLL yyyy",week:"'KW'WW kkkk",day:"dd.MM.yyyy",hour:"TT",minute:"TT",second:"TT",millisecond:"TT:SSS",fallback:"dd.MM.yyyy"},this._dateFormatShort={year:"yy",quarter:"q'Q'",month:"LLL",week:"'KW'WW",day:"dd",hour:"hh'h'",minute:"mm'm'",second:"ss's'",millisecond:"SSS'ms'",fallback:"dd.MM.yyyy"},this._dateLinkFormat={avg:"Ø[LINK]",interval:"[DATE]..[DATE2]",start:".[DATE]",end:"[DATE].",ytd:"_[DATE]",ytg:"[DATE]_",cum:"[DATE]_[DATE2]",mat:"~[DATE]",none:"[DATE]"},this.locale="de",this.dateFormatPinned=!1,this.dateFormatShortPinned=!1,this.dateFormat=this._dateFormat,this.dateLinkFormat=this._dateLinkFormat,this.dateFormatShort=this._dateFormatShort}setDateLinkFormat(t){this.dateLinkFormat=t}setDateFormat(t){this.dateFormat=t,this.dateFormatPinned=!0}setDateFormatShort(t){this.dateFormatShort=t,this.dateFormatShortPinned=!0}patchDateFormatShort(t){this.dateFormatShort=Object.assign(Object.assign({},this.dateFormatShort),t)}setLocale(t){this.locale=t,this.dateFormatPinned||(this.dateFormat=Object.assign(Object.assign({},this._dateFormat),U.LOCALE_DATE_FORMAT[t]||{})),this.dateFormatShortPinned||(this.dateFormatShort=Object.assign(Object.assign({},this._dateFormatShort),U.LOCALE_DATE_FORMAT_SHORT[t]||{}))}getDateString(t,e){return t.setLocale(this.locale).toFormat(this.dateFormat[e]||this.dateFormat.fallback)}getSmartDateString(t,e){switch(e){case R.DAY:return this.getFormatedDayDate(t);case R.MONTH:return this.getFormatedMonthDate(t);case R.QUARTER:return this.getFormatedQuarterDate(t);case R.WEEK:return this.getFormatedWeekDate(t);case R.HOUR:return this.getFormatedHourDate(t);case R.MINUTE:return this.getFormatedMinuteDate(t);case R.SECOND:return this.getFormatedSecondDate(t);case R.MILLISECOND:return this.getFormatedMilliSecondDate(t);default:return this.getDateString(t,e)}}calculateDistanceType(t,e,n=32){if(null==e)return R.DAY;const r="number"==typeof t?a.fromMillis(t):t,s="number"==typeof e?a.fromMillis(e):e;return 0===s.diff(r).as("milliseconds")?R.DAY:s.diff(r).as("milliseconds")<n?R.MILLISECOND:s.diff(r).as("seconds")<n?R.SECOND:s.diff(r).as("minutes")<n?R.MINUTE:s.diff(r).as("hours")<n?R.HOUR:s.diff(r).as("days")<n?R.DAY:s.diff(r).as("weeks")<n?R.WEEK:s.diff(r).as("months")<n?R.MONTH:s.diff(r).as("quarters")<n?R.QUARTER:R.YEAR}datesBetween(t,e,n){const r=this.convertDateDistanceToMomentunitOfTime(n),s=t.startOf(r),a=e.endOf(r),i=[];let o=s;do{i.push(o),o=o.plus(this.createDiratonLike(r,1))}while(o<=a);return i}countBetween(t,e,n){const r=this.convertDateDistanceToMomentunitOfTime(n);return Math.floor(e.startOf(r).diff(t.startOf(r),r).as(r))+1}getDateLinkString(t,e,n,r,s){if(null==t&&null==e)return"";if(null==t&&n!==z.END&&n!==z.YTD)return"";if(null==e&&(z.INTERVAL===n||z.CUM===n||z.END===n||z.YTD===n))return"";const i=t||a.now(),o=e;r===R.AUTO&&(r=this.calculateDistanceType(i,o,s));let u=this.getDateString(i,r),c="",l=z.NONE;return null!=o&&(c=this.getDateString(o,r),l=z.INTERVAL,u===c&&n===z.INTERVAL&&(n=z.NONE),u===c&&n===z.AVG&&(l=z.NONE),z.END!==n&&z.YTD!==n||(u=c),n!==z.INTERVAL&&n!==z.CUM&&n!==z.AVG||(r===R.QUARTER?i.quarter===o.quarter&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,"")):r===R.MONTH?i.month===o.month&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,"")):r===R.WEEK&&(i.weekNumber===o.weekNumber&&i.weekYear===o.weekYear?c=c.replace(" "+o.weekYear,""):i.weekYear===o.weekYear&&(u=u.replace(" "+i.weekYear,""))))),this.dateLinkFormat[n].replace("[LINK]",this.dateLinkFormat[l]).replace("[DATE]",u).replace("[DATE2]",c)}getShortDateString(t,e){return t.setLocale(this.locale).toFormat(this.dateFormatShort[e]||this.dateFormatShort.fallback)}getFormatedDayDate(t){let e=this.dateFormatShort.day;return this.isFirstInMonth(t)&&(e+=" "+this.dateFormatShort.month),this.isJanuary(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedMonthDate(t){let e=this.dateFormatShort.month;return this.isJanuary(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedQuarterDate(t){let e=this.dateFormatShort.quarter;return this.isFirstQuarter(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedWeekDate(t){let e=this.dateFormatShort.week;return this.isFirstWeek(t)&&(e+=" kk"),t.setLocale(this.locale).toFormat(e)}getFormatedHourDate(t){let e=this.dateFormatShort.hour;return this.isFirstHour(t)&&(e+=" "+this.dateFormatShort.day),t.setLocale(this.locale).toFormat(e)}getFormatedMinuteDate(t){let e=this.dateFormatShort.minute;return this.isFirstMinute(t)&&(e=this.dateFormatShort.hour+":"+e),t.setLocale(this.locale).toFormat(e)}getFormatedSecondDate(t){let e=this.dateFormatShort.second;return this.isFirstSecond(t)&&(e=this.dateFormatShort.minute+":"+e),t.setLocale(this.locale).toFormat(e)}getFormatedMilliSecondDate(t){let e=this.dateFormatShort.millisecond;return this.isFirstMilliSecond(t)&&(e=this.dateFormatShort.second+":"+e),t.setLocale(this.locale).toFormat(e)}isSmartBoundary(t,e){switch(e){case R.DAY:return this.isFirstInMonth(t);case R.WEEK:return this.isFirstWeek(t);case R.MONTH:return this.isJanuary(t);case R.QUARTER:return this.isFirstQuarter(t);default:return!1}}isFirstInMonth(t){return 1===t.day}isJanuary(t){return 1===t.month}isFirstQuarter(t){return 1===t.quarter}isFirstWeek(t){return 1===t.weekNumber}isFirstHour(t){return 0===t.hour}isFirstMinute(t){return 0===t.minute}isFirstSecond(t){return 0===t.second}isFirstMilliSecond(t){return 0===t.millisecond}convertDateDistanceToMomentunitOfTime(t){let e;switch(t){case R.YEAR:e="year";break;case R.MONTH:e="month";break;case R.QUARTER:e="quarter";break;case R.WEEK:e="week";break;case R.DAY:e="day";break;case R.HOUR:e="hour";break;case R.MINUTE:e="minute";break;case R.SECOND:e="second";break;case R.MILLISECOND:e="millisecond";break;default:e="day"}return e}createDiratonLike(t,e){switch(t){case"year":return{years:e};case"month":return{months:e};case"quarter":return{quarters:e};case"week":return{weeks:e};case"day":default:return{days:e};case"hour":return{hours:e};case"minute":return{minutes:e};case"second":return{seconds:e};case"millisecond":return{milliseconds:e}}}}U.LOCALE_DATE_FORMAT={en:{week:"'W'WW kkkk",day:"MM/dd/yyyy",fallback:"MM/dd/yyyy"}},U.LOCALE_DATE_FORMAT_SHORT={en:{week:"'W'WW",fallback:"MM/dd/yyyy"}};class B{static isExisting(t){return null!=t}static isString(t){return"string"==typeof t}static isNumber(t){return"number"==typeof t&&!Number.isNaN(t)}static isBoolean(t){return"boolean"==typeof t}static isArray(t){return Array.isArray(t)}static isObject(t){return"object"==typeof t&&null!==t}static isOperator(t){return"+"===t||"-"===t}static isDate(t){return t instanceof a&&t.isValid}}class H{static adaptDefaultString(t){return B.isString(t)?t.trim():""}static adaptArray(t,e){const n=[];return B.isArray(t)&&t.forEach((t=>{n.push(e.adapt(t))})),n}}!function(t){t.ASC="asc",t.DESC="desc"}(C||(C={})),function(t){t.ROWGROUP="rowGroup",t.ROWGROUPINDEX="rowGroupIndex",t.CATEGORY="category",t.CATEGORYINDEX="categoryIndex",t.SUBCATEGORY="subCategory",t.SUBCATEGORYINDEX="subCategoryIndex",t.AC1="ac1",t.AC2="ac2",t.AC3="ac3",t.AC4="ac4",t.PP1="pp1",t.PP2="pp2",t.PP3="pp3",t.PP4="pp4",t.FC1="fc1",t.FC2="fc2",t.FC3="fc3",t.FC4="fc4",t.PL1="pl1",t.PL2="pl2",t.PL3="pl3",t.PL4="pl4"}(P||(P={}));class K{constructor(t=["category"],e=C.ASC){this.hierarchy=t,this.direction=e}}const Q=[P.ROWGROUP,P.ROWGROUPINDEX,P.CATEGORY,P.CATEGORYINDEX,P.SUBCATEGORY,P.SUBCATEGORYINDEX],Y=/^(?:ac|fc|pp|pl)[1-4]$/,Z=/^(dr|d)((?:ac|fc|pp|pl)[1-4])_((?:ac|fc|pp|pl)[1-4])(?:_(?:pos|neg|neu|opinv|op))?$/;function V(t){if(null==t)return;const e=t.indexOf("@"),n=(e<0?t:t.slice(0,e)).trim().toLowerCase(),r=e<0?void 0:t.slice(e+1).trim();if(""===r)return;const s=P[n.toUpperCase()];if(null!=s&&Q.includes(s))return void 0===r?{kind:"dim",column:s}:void 0;if(Y.test(n))return{kind:"scenario",column:n,bucket:r};const a=Z.exec(n);if(null!=a){const[,t,e,n]=a;return{kind:"variance",column:`${t}${e}_${n}`,type:t,base:e,delta:n,bucket:r}}}function X(t){const e=V(t);if(null!=e)return void 0===e.bucket?e.column:`${e.column}@${e.bucket}`}class tt{constructor(t,e=!1){this.stringAdapter=t,this.allowMeasures=e}adapt(t){var e;const n=H.adaptArray(t.hierarchy,this.stringAdapter),r=C[null===(e=t.direction)||void 0===e?void 0:e.toUpperCase()]||C.ASC;return new K(n.map((t=>(this.allowMeasures?X(t):P[t.toUpperCase()])||P.CATEGORY)),r)}default(){return new K(["category"],C.ASC)}}const et="n/a";function nt(t,e){if(!(Math.abs(e)<=1e-9*Math.abs(t)))return t/Math.abs(e)}const rt=/^(dr|d)((?:ac|pp|fc|pl)[1-4])_((?:ac|pp|fc|pl)[1-4])(?:_(pos|neg|neu|op|opinv))?$/;class st{constructor(t,e,n){this.type=t,this.base=e,this.delta=n}static parse(t){const e=rt.exec(t);return null===e?null:new st(e[1],e[2],e[3])}compute(t,e){var n;return null==t||null==e?null:"dr"===this.type?0===e?null:null!==(n=nt(t-e,e))&&void 0!==n?n:null:t-e}}function at(t){const e=t.trim();if(Object.values(m).includes(e))return{kind:"scenario",slot:e};const n=st.parse(e);return null!==n?{kind:"variance",measure:n}:null}function it(t){return t.replace(/\d+$/,"")}function ot(t){return t.replace(/^[a-z]+/,"")}function ut(t){var e;return"dr"===(null===(e=st.parse(t.trim()))||void 0===e?void 0:e.type)}function ct(t){if(!ut(t.measure))return t;const e=t=>void 0===t?void 0:t/100;return Object.assign(Object.assign({},t),{min:e(t.min),max:e(t.max),refLine:e(t.refLine),highlight:t.highlight&&{from:e(t.highlight.from),to:e(t.highlight.to)}})}function lt(t){return null==t||""===t||"null"===t}function ft(t){return"string"==typeof t&&"none"===t.trim().toLowerCase()}function dt(t){return lt(t)||"auto"===t.trim().toLowerCase()?[]:ht((null==t?void 0:t.split(",").filter((t=>!(t.toUpperCase().trim()in m)))).toString())}function ht(t){return lt(t)?[]:t.replace(";",",").split(",").filter((t=>{var e,n,r;const s=t.split("_"),a=null===(e=s[0])||void 0===e?void 0:e.replace(/^dr|^d/,"").toUpperCase().trim(),i=null===(n=s[1])||void 0===n?void 0:n.toUpperCase().trim(),o=null===(r=s[2])||void 0===r?void 0:r.toUpperCase().trim();return 3!==s.length||!(a in m)||!(i in m)||!(o in y)}))}function mt(t){return lt(t)?[]:ht(t.split(",").filter((t=>!(t.toUpperCase().trim()in m))).toString())}function yt(t){return lt(t)||"auto"===t.trim().toLowerCase()?[]:ht(t.split(",").filter((t=>!(t.toUpperCase()in P))).toString())}function pt(t){return lt(t)||"auto"===t.trim().toLowerCase()?[]:t.split(",").filter((t=>void 0===V(t)))}function bt(t){return!lt(t)&&Number.isInteger(Number(t))}function vt(t){return!lt(t)&&!Number.isNaN(Number(t))}function gt(t){return!lt(t)&&(null==t?void 0:t.toUpperCase())in C}function wt(t){return"auto"===(null==t?void 0:t.toLowerCase())||(null==t?void 0:t.toUpperCase())in N}function Nt(t){if(lt(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("name")&&t.hasOwnProperty("unit"))))}catch(t){console.error("validateMeasureList: failed to parse JSON",t)}return["Invalid JSON structure"]}function kt(t){const e=Date.parse(t);return Number.isInteger(e)}function St(t){return(null==t?void 0:t.toUpperCase())in z}function Ot(t){return(null==t?void 0:t.toUpperCase())in R}function Dt(t){return(null==t?void 0:t.toUpperCase().replace("-","_"))in k}function Tt(t){return!lt(t)&&(null==t?void 0:t.toUpperCase())in p}function At(t){return!lt(t)&&(null==t?void 0:t.toUpperCase())in b}function Mt(t){return(null==t?void 0:t.toUpperCase())in J}function Et(t){if(lt(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category")&&t.hasOwnProperty("subCategory"))))}catch(t){console.error("validateThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function jt(t){if(lt(t))return[];try{const e=JSON.parse(t);if(null!==e&&"object"==typeof e&&!(e instanceof Array))return Object.entries(e).filter((([,t])=>"string"!=typeof t||!G(t))).map((([t,e])=>`${t}: ${e}`))}catch(t){console.error("validateAttributesJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function $t(t){if(lt(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category"))))}catch(t){console.error("validatePartOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function Jt(t){return(null==t?void 0:t.trim().toUpperCase())in h}function Lt(t){return["_","k","M","G","T","P","E","Z","Y","m","my","μ","n","p","f","a","z","y"].includes(null==t?void 0:t.trim())||["GREATEST","LEAST"].includes(null==t?void 0:t.trim().toUpperCase())}function Ft(t){return(null==t?void 0:t.toUpperCase().trim())in v}function _t(t){return(null==t?void 0:t.toUpperCase().trim())in g}function It(t){if(lt(t))return[];try{return JSON.parse(t).filter((t=>!(t.hasOwnProperty("scenario")&&t.hasOwnProperty("name")&&t.hasOwnProperty("subGroups"))))}catch(t){console.error("validateColumnThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function xt(t){if(lt(t))return[];try{const e=JSON.parse(t);if("object"!=typeof e||null===e||Array.isArray(e))return["stack: must be a JSON object"];const n=[];if(e.hasOwnProperty("by")){const t=["scenarios","dimensions"];t.includes(e.by)||n.push(`stack: 'by' must be one of: ${t.join(", ")}`)}else n.push("stack: 'by' is required");if(e.hasOwnProperty("mode")){const t=["absolute","relative","absolute-relative"];t.includes(e.mode)||n.push(`stack: 'mode' must be one of: ${t.join(", ")}`)}if(e.hasOwnProperty("order")){const t=["asc","desc","dataset"];t.includes(e.order)||n.push(`stack: 'order' must be one of: ${t.join(", ")}`)}if(e.hasOwnProperty("notation")){const t=["none","scenario"];t.includes(e.notation)||n.push(`stack: 'notation' must be one of: ${t.join(", ")}`)}if(e.hasOwnProperty("legend")){const t=["left","right","both","none"];t.includes(e.legend)||n.push(`stack: 'legend' must be one of: ${t.join(", ")}`)}return e.hasOwnProperty("percentMark")&&"boolean"!=typeof e.percentMark&&n.push("stack: 'percentMark' must be true or false"),e.hasOwnProperty("labels")&&!["share","value"].includes(e.labels)&&n.push("stack: 'labels' must be one of: share, value"),e.hasOwnProperty("totalTitle")&&"string"!=typeof e.totalTitle&&n.push("stack: 'totalTitle' must be a text"),e.hasOwnProperty("thickness")&&!["equal","total"].includes(e.thickness)&&n.push("stack: 'thickness' must be one of: equal, total"),n}catch(t){return["stack: invalid JSON"]}}function Wt(t){return!lt(t)&&null!==at(t)}class Gt{constructor(){this.cache=new Map,this.tag=Gt.makeStyleTag()}static makeStyleTag(){const t=document.createElement("style");return t.type="text/css",t.setAttribute("data-bn-computed-style",""),t.append(document.createTextNode("")),(document.head||document.querySelector("head")).append(t),t}apply(t){t.forEach((t=>this.cache.set(t.className,t.style))),this.tag.textContent=Array.from(this.cache.values()).map((t=>t)).join("\n")}}const qt=new Gt;function Rt(t){for(var e,n=0,r=0,s=t.length;s>=4;++r,s-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(s){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}const zt=t=>vt(t)?`${t}px`:t,Ct={width:{className:"w",cssName:"width",attrName:"width",transform:zt},height:{className:"h",cssName:"height",attrName:"height",transform:zt},position:{className:"pst",cssName:"position",attrName:"position"},top:{className:"top",cssName:"top",attrName:"top",transform:zt},right:{className:"rgt",cssName:"right",attrName:"right",transform:zt},bottom:{className:"btm",cssName:"bottom",attrName:"bottom",transform:zt},left:{className:"lft",cssName:"left",attrName:"left",transform:zt},"font-size":{className:"fts",cssName:"font-size",attrName:"font-size",transform:zt},"grid-column":{className:"gdc",cssName:"grid-column",attrName:"grid-column"},"grid-row":{className:"gdr",cssName:"grid-row",attrName:"grid-row"}},Pt=Object.keys(Ct);function Ut(t,e,n){return`.${e} {${t.cssName}: ${n};}`}function Bt(t,e){const n=document.createElement("div").style;n.setProperty(t.cssName,e);const r=n.getPropertyValue(t.cssName);if(n.cssText=`${t.cssName}:${r};--bn-end:1`,!r||r.includes("<")||"1"!==n.getPropertyValue("--bn-end"))return;const s=function(t,e){const n=Rt(e);return`bn-c-${t.className}_${n}`}(t,e);return{className:s,style:Ut(t,s,r)}}const Ht=t=>{const e=new Map;return Pt.forEach((n=>{const r=t.getAttribute(n);if(r){["top","left","right","bottom"].includes(n)&&e.set("position",Bt(Ct.position,"absolute"));const t=Bt(Ct[n],(Ct[n].transform||function(t){return t})(r));t&&e.set(n,t)}})),e},Kt=new MutationObserver((t=>{for(const n of t){const t=n.target,r=Ht(t);qt.apply(r);const s=Array.from(r.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...s).join(" "),e(t)}})),Qt=e=>{const n=e.connectedCallback,s=e.disconnectedCallback;e.connectedCallback=()=>{const s=t(e);if(!s)throw new Error("Can't find element field in component undefined");(t=>{const e=Ht(t);qt.apply(e);const n=Array.from(e.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...n).join(" "),Kt.observe(t,{attributes:!0,attributeFilter:Pt,childList:!1,subtree:!1})})(s),r(n,e)},e.disconnectedCallback=()=>{r(s,e)}};export{p as $,N as A,vt as B,B as C,Ot as D,Dt as E,R as F,k as G,O as H,U as I,l as J,Rt as K,mt as L,_t as M,et as N,C as O,Tt as P,At as Q,A as R,D as S,Et as T,Mt as U,$t as V,pt as W,Jt as X,Ft as Y,It as Z,jt as _,f as a,J as a0,$ as a1,X as a2,d as a3,v as a4,h as a5,q as a6,w as a7,g as a8,F as a9,I as aa,V as ab,m as ac,L as ad,j as ae,Nt as af,kt as ag,St as ah,z as ai,bt as b,Wt as c,ot as d,ct as e,ut as f,gt as g,K as h,lt as i,P as j,ft as k,dt as l,c as m,ht as n,wt as o,Lt as p,xt as q,at as r,it as s,M as t,T as u,yt as v,Qt as w,H as x,tt as y,nt as z}
1
+ import{g as t,f as e}from"./p-GstO_GU5.js";import{g as n,r,c as s,D as a}from"./p-B6SpWzpW.js";const i=t=>{if("object"==typeof t&&null!==t){if("function"==typeof Object.getPrototypeOf){const e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}return"[object Object]"===Object.prototype.toString.call(t)}return!1},o=(t,e)=>e,u=(t,e)=>[...new Set([...t,...e])],c=(t,e)=>{const n=(t=>{return{arrayMergeType:"combine",arrayMerge:(e=t?t.arrayMergeType:"combine","overwrite"===e?o:u),...t};var e})(e);return t.reduce(((t,e)=>(Object.keys(e).forEach((r=>{Array.isArray(t[r])&&Array.isArray(e[r])?n&&n.arrayMerge&&(t[r]=n.arrayMerge(t[r],e[r])):t[r]=i(t[r])&&i(e[r])?c([t[r],e[r]],n):e[r]})),t)),{})},l=(t,e)=>c([t._system||{},t._default||{},void 0!==e&&t[e]||{}],{arrayMergeType:"overwrite"}),f=a=>{let i,o,u,c;const f=()=>{c=l(o.componentStyles.state,u)},d=a.connectedCallback;a.connectedCallback=()=>{const s=t(a);o=n(s),c=o.componentStyles.state._system,u=a.selectedStyle,f(),i=o.componentStyles.on("set",(n=>{n!==u&&"_default"!==n||(u=a.selectedStyle,f(),e(t(a)))})),r(d,a)};const h=a.disconnectedCallback;return a.disconnectedCallback=()=>{r(i),s(t(a)),r(h,a)},t=>(void 0!==o&&a.selectedStyle!==u&&(u=a.selectedStyle,f()),t(c))};var d,h,m,y,p,b,v,g;!function(t){t.ALL="all",t.META="meta"}(d||(d={})),function(t){t.CURRENCY="currency",t.VOLUME="volume"}(h||(h={})),function(t){t.AC1="ac1",t.AC2="ac2",t.AC3="ac3",t.AC4="ac4",t.PP1="pp1",t.PP2="pp2",t.PP3="pp3",t.PP4="pp4",t.FC1="fc1",t.FC2="fc2",t.FC3="fc3",t.FC4="fc4",t.PL1="pl1",t.PL2="pl2",t.PL3="pl3",t.PL4="pl4"}(m||(m={})),function(t){t.POS="pos",t.NEG="neg",t.NEU="neu",t.OP="op",t.OPINV="opinv"}(y||(y={})),function(t){t.DECIMAL="decimal",t.PERCENT="percent"}(p||(p={})),function(t){t.LIST="list",t.SUM="sum",t.SUMNOTOTAL="sumnototal",t.OPT="opt",t.OPTNOTOTAL="optnototal"}(b||(b={})),function(t){t.INF="inf",t.W100="w100",t.W50="w50",t.W25="w25",t.W20="w20",t.W15="w15",t.W10="w10",t.W5="w5"}(v||(v={})),function(t){t.W5="w5",t.W10="w10",t.W15="w15",t.W20="w20",t.W25="w25",t.W30="w30",t.W40="w40",t.W60="w60",t.W80="w80",t.W100="w100"}(g||(g={}));const w={[g.W5]:5,[g.W10]:10,[g.W15]:15,[g.W20]:20,[g.W25]:25,[g.W30]:30,[g.W40]:40,[g.W60]:60,[g.W80]:80,[g.W100]:100};var N,k,S,O,D,T;!function(t){t.ROWGROUP="rowGroup",t.ROWGROUPINDEX="rowGroupIndex",t.CATEGORY="category",t.CATEGORYINDEX="categoryIndex",t.SUBCATEGORY="subCategory",t.SUBCATEGORYINDEX="subCategoryIndex"}(N||(N={})),function(t){t.SMART="smart",t.LONG="long",t.SHORT="short",t.TWO_ROW="two-row"}(k||(k={})),function(t){t.COLUMN="column",t.LINE="line",t.WATERFALL="waterfall"}(S||(S={})),function(t){t.BAR="bar",t.LINE="line",t.AUTO="auto"}(O||(O={})),function(t){t.SCENARIOS="scenarios",t.DIMENSIONS="dimensions"}(D||(D={})),function(t){t.ABSOLUTE="absolute",t.RELATIVE="relative",t.ABSOLUTE_RELATIVE="absolute-relative"}(T||(T={}));const A=100;var M,E,j,$,J,L,F;!function(t){t.ASC="asc",t.DESC="desc",t.DATASET="dataset"}(M||(M={})),function(t){t[t.ALL=-1]="ALL"}(E||(E={})),function(t){t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.DIRTY=1]="DIRTY"}(j||(j={})),function(t){t.LIST="list",t.SUM="sum",t.SUMNOTOTAL="sumnototal",t.OPT="opt",t.OPTNOTOTAL="optnototal"}($||($={})),function(t){t.BELOW="below",t.ABOVE="above"}(J||(J={})),function(t){t.ASC="asc",t.DESC="desc"}(L||(L={})),function(t){t.HEADER="HEADER",t.GROUPHEAD="GROUPHEAD",t.SEPERATORLINE="SEPERATORLINE",t.SUM="SUM",t.GROUPSUM="GROUP_SUM",t.DRILLELEMENT="DRILLELEMENT",t.STANDARD="STANDARD",t.PARTELEMENT="PARTELEMENT",t.ENTRY="ENTRY"}(F||(F={}));const _=/^\s*(set|first|last|min|max|avg|sum|lit)\(\s*(.*?)\s*\)\s*$/,I=/^[A-Za-z_][A-Za-z0-9_]*$/,W=["min","max","avg","sum"];class x{constructor(t,e,n,r){this.label=t,this.alias=e,this.fn=n,this.arg=r}get isNumeric(){return W.includes(this.fn)}}function G(t){if("string"!=typeof t)return!1;const e=_.exec(t);if(!e)return!1;const[,n,r]=e;return"lit"===n?r.length>0:I.test(r)}function q(t,e,n){if(!G(n))return null;const[,r,s]=_.exec(n);return new x(t,e,r,s)}var R,z,C,P;!function(t){t.YEAR="year",t.QUARTER="quarter",t.MONTH="month",t.WEEK="week",t.DAY="day",t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.MILLISECOND="millisecond",t.NONE="fallback",t.AUTO="auto"}(R||(R={})),function(t){t.AVG="avg",t.INTERVAL="interval",t.START="start",t.END="end",t.YTD="ytd",t.YTG="ytg",t.CUM="cum",t.MAT="mat",t.NONE="none",t.AUTO="auto"}(z||(z={}));class U{constructor(){this._dateFormat={year:"yyyy",quarter:"q'Q' yyyy",month:"LLL yyyy",week:"'KW'WW kkkk",day:"dd.MM.yyyy",hour:"TT",minute:"TT",second:"TT",millisecond:"TT:SSS",fallback:"dd.MM.yyyy"},this._dateFormatShort={year:"yy",quarter:"q'Q'",month:"LLL",week:"'KW'WW",day:"dd",hour:"hh'h'",minute:"mm'm'",second:"ss's'",millisecond:"SSS'ms'",fallback:"dd.MM.yyyy"},this._dateLinkFormat={avg:"Ø[LINK]",interval:"[DATE]..[DATE2]",start:".[DATE]",end:"[DATE].",ytd:"_[DATE]",ytg:"[DATE]_",cum:"[DATE]_[DATE2]",mat:"~[DATE]",none:"[DATE]"},this.locale="de",this.dateFormatPinned=!1,this.dateFormatShortPinned=!1,this.dateFormat=this._dateFormat,this.dateLinkFormat=this._dateLinkFormat,this.dateFormatShort=this._dateFormatShort}setDateLinkFormat(t){this.dateLinkFormat=t}setDateFormat(t){this.dateFormat=t,this.dateFormatPinned=!0}setDateFormatShort(t){this.dateFormatShort=t,this.dateFormatShortPinned=!0}patchDateFormatShort(t){this.dateFormatShort=Object.assign(Object.assign({},this.dateFormatShort),t)}setLocale(t){this.locale=t,this.dateFormatPinned||(this.dateFormat=Object.assign(Object.assign({},this._dateFormat),U.LOCALE_DATE_FORMAT[t]||{})),this.dateFormatShortPinned||(this.dateFormatShort=Object.assign(Object.assign({},this._dateFormatShort),U.LOCALE_DATE_FORMAT_SHORT[t]||{}))}getDateString(t,e){return t.setLocale(this.locale).toFormat(this.dateFormat[e]||this.dateFormat.fallback)}getSmartDateString(t,e){switch(e){case R.DAY:return this.getFormatedDayDate(t);case R.MONTH:return this.getFormatedMonthDate(t);case R.QUARTER:return this.getFormatedQuarterDate(t);case R.WEEK:return this.getFormatedWeekDate(t);case R.HOUR:return this.getFormatedHourDate(t);case R.MINUTE:return this.getFormatedMinuteDate(t);case R.SECOND:return this.getFormatedSecondDate(t);case R.MILLISECOND:return this.getFormatedMilliSecondDate(t);default:return this.getDateString(t,e)}}calculateDistanceType(t,e,n=32){if(null==e)return R.DAY;const r="number"==typeof t?a.fromMillis(t):t,s="number"==typeof e?a.fromMillis(e):e;return 0===s.diff(r).as("milliseconds")?R.DAY:s.diff(r).as("milliseconds")<n?R.MILLISECOND:s.diff(r).as("seconds")<n?R.SECOND:s.diff(r).as("minutes")<n?R.MINUTE:s.diff(r).as("hours")<n?R.HOUR:s.diff(r).as("days")<n?R.DAY:s.diff(r).as("weeks")<n?R.WEEK:s.diff(r).as("months")<n?R.MONTH:s.diff(r).as("quarters")<n?R.QUARTER:R.YEAR}datesBetween(t,e,n){const r=this.convertDateDistanceToMomentunitOfTime(n),s=t.startOf(r),a=e.endOf(r),i=[];let o=s;do{i.push(o),o=o.plus(this.createDiratonLike(r,1))}while(o<=a);return i}countBetween(t,e,n){const r=this.convertDateDistanceToMomentunitOfTime(n);return Math.floor(e.startOf(r).diff(t.startOf(r),r).as(r))+1}getDateLinkString(t,e,n,r,s){if(null==t&&null==e)return"";if(null==t&&n!==z.END&&n!==z.YTD)return"";if(null==e&&(z.INTERVAL===n||z.CUM===n||z.END===n||z.YTD===n))return"";const i=t||a.now(),o=e;r===R.AUTO&&(r=this.calculateDistanceType(i,o,s));let u=this.getDateString(i,r),c="",l=z.NONE;return null!=o&&(c=this.getDateString(o,r),l=z.INTERVAL,u===c&&n===z.INTERVAL&&(n=z.NONE),u===c&&n===z.AVG&&(l=z.NONE),z.END!==n&&z.YTD!==n||(u=c),n!==z.INTERVAL&&n!==z.CUM&&n!==z.AVG||(r===R.QUARTER?i.quarter===o.quarter&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,"")):r===R.MONTH?i.month===o.month&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,"")):r===R.WEEK&&(i.weekNumber===o.weekNumber&&i.weekYear===o.weekYear?c=c.replace(" "+o.weekYear,""):i.weekYear===o.weekYear&&(u=u.replace(" "+i.weekYear,""))))),this.dateLinkFormat[n].replace("[LINK]",this.dateLinkFormat[l]).replace("[DATE]",u).replace("[DATE2]",c)}getShortDateString(t,e){return t.setLocale(this.locale).toFormat(this.dateFormatShort[e]||this.dateFormatShort.fallback)}getFormatedDayDate(t){let e=this.dateFormatShort.day;return this.isFirstInMonth(t)&&(e+=" "+this.dateFormatShort.month),this.isJanuary(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedMonthDate(t){let e=this.dateFormatShort.month;return this.isJanuary(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedQuarterDate(t){let e=this.dateFormatShort.quarter;return this.isFirstQuarter(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedWeekDate(t){let e=this.dateFormatShort.week;return this.isFirstWeek(t)&&(e+=" kk"),t.setLocale(this.locale).toFormat(e)}getFormatedHourDate(t){let e=this.dateFormatShort.hour;return this.isFirstHour(t)&&(e+=" "+this.dateFormatShort.day),t.setLocale(this.locale).toFormat(e)}getFormatedMinuteDate(t){let e=this.dateFormatShort.minute;return this.isFirstMinute(t)&&(e=this.dateFormatShort.hour+":"+e),t.setLocale(this.locale).toFormat(e)}getFormatedSecondDate(t){let e=this.dateFormatShort.second;return this.isFirstSecond(t)&&(e=this.dateFormatShort.minute+":"+e),t.setLocale(this.locale).toFormat(e)}getFormatedMilliSecondDate(t){let e=this.dateFormatShort.millisecond;return this.isFirstMilliSecond(t)&&(e=this.dateFormatShort.second+":"+e),t.setLocale(this.locale).toFormat(e)}isSmartBoundary(t,e){switch(e){case R.DAY:return this.isFirstInMonth(t);case R.WEEK:return this.isFirstWeek(t);case R.MONTH:return this.isJanuary(t);case R.QUARTER:return this.isFirstQuarter(t);default:return!1}}isFirstInMonth(t){return 1===t.day}isJanuary(t){return 1===t.month}isFirstQuarter(t){return 1===t.quarter}isFirstWeek(t){return 1===t.weekNumber}isFirstHour(t){return 0===t.hour}isFirstMinute(t){return 0===t.minute}isFirstSecond(t){return 0===t.second}isFirstMilliSecond(t){return 0===t.millisecond}convertDateDistanceToMomentunitOfTime(t){let e;switch(t){case R.YEAR:e="year";break;case R.MONTH:e="month";break;case R.QUARTER:e="quarter";break;case R.WEEK:e="week";break;case R.DAY:e="day";break;case R.HOUR:e="hour";break;case R.MINUTE:e="minute";break;case R.SECOND:e="second";break;case R.MILLISECOND:e="millisecond";break;default:e="day"}return e}createDiratonLike(t,e){switch(t){case"year":return{years:e};case"month":return{months:e};case"quarter":return{quarters:e};case"week":return{weeks:e};case"day":default:return{days:e};case"hour":return{hours:e};case"minute":return{minutes:e};case"second":return{seconds:e};case"millisecond":return{milliseconds:e}}}}U.LOCALE_DATE_FORMAT={en:{week:"'W'WW kkkk",day:"MM/dd/yyyy",fallback:"MM/dd/yyyy"}},U.LOCALE_DATE_FORMAT_SHORT={en:{week:"'W'WW",fallback:"MM/dd/yyyy"}};class B{static isExisting(t){return null!=t}static isString(t){return"string"==typeof t}static isNumber(t){return"number"==typeof t&&!Number.isNaN(t)}static isBoolean(t){return"boolean"==typeof t}static isArray(t){return Array.isArray(t)}static isObject(t){return"object"==typeof t&&null!==t}static isOperator(t){return"+"===t||"-"===t}static isDate(t){return t instanceof a&&t.isValid}}class H{static adaptDefaultString(t){return B.isString(t)?t.trim():""}static adaptArray(t,e){const n=[];return B.isArray(t)&&t.forEach((t=>{n.push(e.adapt(t))})),n}}!function(t){t.ASC="asc",t.DESC="desc"}(C||(C={})),function(t){t.ROWGROUP="rowGroup",t.ROWGROUPINDEX="rowGroupIndex",t.CATEGORY="category",t.CATEGORYINDEX="categoryIndex",t.SUBCATEGORY="subCategory",t.SUBCATEGORYINDEX="subCategoryIndex",t.AC1="ac1",t.AC2="ac2",t.AC3="ac3",t.AC4="ac4",t.PP1="pp1",t.PP2="pp2",t.PP3="pp3",t.PP4="pp4",t.FC1="fc1",t.FC2="fc2",t.FC3="fc3",t.FC4="fc4",t.PL1="pl1",t.PL2="pl2",t.PL3="pl3",t.PL4="pl4"}(P||(P={}));class K{constructor(t=["category"],e=C.ASC){this.hierarchy=t,this.direction=e}}const Q=[P.ROWGROUP,P.ROWGROUPINDEX,P.CATEGORY,P.CATEGORYINDEX,P.SUBCATEGORY,P.SUBCATEGORYINDEX],Y=/^(?:ac|fc|pp|pl)[1-4]$/,Z=/^(dr|d)((?:ac|fc|pp|pl)[1-4])_((?:ac|fc|pp|pl)[1-4])(?:_(?:pos|neg|neu|opinv|op))?$/;function V(t){if(null==t)return;const e=t.indexOf("@"),n=(e<0?t:t.slice(0,e)).trim().toLowerCase(),r=e<0?void 0:t.slice(e+1).trim();if(""===r)return;const s=P[n.toUpperCase()];if(null!=s&&Q.includes(s))return void 0===r?{kind:"dim",column:s}:void 0;if(Y.test(n))return{kind:"scenario",column:n,bucket:r};const a=Z.exec(n);if(null!=a){const[,t,e,n]=a;return{kind:"variance",column:`${t}${e}_${n}`,type:t,base:e,delta:n,bucket:r}}}function X(t){const e=V(t);if(null!=e)return void 0===e.bucket?e.column:`${e.column}@${e.bucket}`}class tt{constructor(t,e=!1){this.stringAdapter=t,this.allowMeasures=e}adapt(t){var e;const n=H.adaptArray(t.hierarchy,this.stringAdapter),r=C[null===(e=t.direction)||void 0===e?void 0:e.toUpperCase()]||C.ASC;return new K(n.map((t=>(this.allowMeasures?X(t):P[t.toUpperCase()])||P.CATEGORY)),r)}default(){return new K(["category"],C.ASC)}}const et="n/a";function nt(t,e){if(!(Math.abs(e)<=1e-9*Math.abs(t)))return t/Math.abs(e)}const rt=/^(dr|d)((?:ac|pp|fc|pl)[1-4])_((?:ac|pp|fc|pl)[1-4])(?:_(pos|neg|neu|op|opinv))?$/;class st{constructor(t,e,n){this.type=t,this.base=e,this.delta=n}static parse(t){const e=rt.exec(t);return null===e?null:new st(e[1],e[2],e[3])}compute(t,e){var n;return null==t||null==e?null:"dr"===this.type?0===e?null:null!==(n=nt(t-e,e))&&void 0!==n?n:null:t-e}}function at(t){const e=t.trim();if(Object.values(m).includes(e))return{kind:"scenario",slot:e};const n=st.parse(e);return null!==n?{kind:"variance",measure:n}:null}function it(t){return t.replace(/\d+$/,"")}function ot(t){return t.replace(/^[a-z]+/,"")}function ut(t){var e;return"dr"===(null===(e=st.parse(t.trim()))||void 0===e?void 0:e.type)}function ct(t){if(!ut(t.measure))return t;const e=t=>void 0===t?void 0:t/100;return Object.assign(Object.assign({},t),{min:e(t.min),max:e(t.max),refLine:e(t.refLine),highlight:t.highlight&&{from:e(t.highlight.from),to:e(t.highlight.to)}})}function lt(t){return null==t||""===t||"null"===t}function ft(t){return"string"==typeof t&&"none"===t.trim().toLowerCase()}function dt(t){return lt(t)||"auto"===t.trim().toLowerCase()?[]:ht((null==t?void 0:t.split(",").filter((t=>!(t.toUpperCase().trim()in m)))).toString())}function ht(t){return lt(t)?[]:t.replace(";",",").split(",").filter((t=>{var e,n,r;const s=t.split("_"),a=null===(e=s[0])||void 0===e?void 0:e.replace(/^dr|^d/,"").toUpperCase().trim(),i=null===(n=s[1])||void 0===n?void 0:n.toUpperCase().trim(),o=null===(r=s[2])||void 0===r?void 0:r.toUpperCase().trim();return 3!==s.length||!(a in m)||!(i in m)||!(o in y)}))}function mt(t){return lt(t)?[]:ht(t.split(",").filter((t=>!(t.toUpperCase().trim()in m))).toString())}function yt(t){return lt(t)||"auto"===t.trim().toLowerCase()?[]:ht(t.split(",").filter((t=>!(t.toUpperCase()in P))).toString())}function pt(t){return lt(t)||"auto"===t.trim().toLowerCase()?[]:t.split(",").filter((t=>void 0===V(t)))}function bt(t){return!lt(t)&&Number.isInteger(Number(t))}function vt(t){return!lt(t)&&!Number.isNaN(Number(t))}function gt(t){return!lt(t)&&(null==t?void 0:t.toUpperCase())in C}function wt(t){return"auto"===(null==t?void 0:t.toLowerCase())||(null==t?void 0:t.toUpperCase())in N}function Nt(t){if(lt(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("name")&&t.hasOwnProperty("unit"))))}catch(t){console.error("validateMeasureList: failed to parse JSON",t)}return["Invalid JSON structure"]}function kt(t){const e=Date.parse(t);return Number.isInteger(e)}function St(t){return(null==t?void 0:t.toUpperCase())in z}function Ot(t){return(null==t?void 0:t.toUpperCase())in R}function Dt(t){return(null==t?void 0:t.toUpperCase().replace("-","_"))in k}function Tt(t){return!lt(t)&&(null==t?void 0:t.toUpperCase())in p}function At(t){return!lt(t)&&(null==t?void 0:t.toUpperCase())in b}function Mt(t){return(null==t?void 0:t.toUpperCase())in J}function Et(t){if(lt(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category")&&t.hasOwnProperty("subCategory"))))}catch(t){console.error("validateThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function jt(t){if(lt(t))return[];try{const e=JSON.parse(t);if(null!==e&&"object"==typeof e&&!(e instanceof Array))return Object.entries(e).filter((([,t])=>"string"!=typeof t||!G(t))).map((([t,e])=>`${t}: ${e}`))}catch(t){console.error("validateAttributesJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function $t(t){if(lt(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category"))))}catch(t){console.error("validatePartOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function Jt(t){return(null==t?void 0:t.trim().toUpperCase())in h}function Lt(t){return["_","k","M","G","T","P","E","Z","Y","m","my","μ","n","p","f","a","z","y"].includes(null==t?void 0:t.trim())||["GREATEST","LEAST"].includes(null==t?void 0:t.trim().toUpperCase())}function Ft(t){return(null==t?void 0:t.toUpperCase().trim())in v}function _t(t){return(null==t?void 0:t.toUpperCase().trim())in g}function It(t){if(lt(t))return[];try{return JSON.parse(t).filter((t=>!(t.hasOwnProperty("scenario")&&t.hasOwnProperty("name")&&t.hasOwnProperty("subGroups"))))}catch(t){console.error("validateColumnThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function Wt(t){if(lt(t))return[];try{const e=JSON.parse(t);if("object"!=typeof e||null===e||Array.isArray(e))return["stack: must be a JSON object"];const n=[];if(e.hasOwnProperty("by")){const t=["scenarios","dimensions"];t.includes(e.by)||n.push(`stack: 'by' must be one of: ${t.join(", ")}`)}else n.push("stack: 'by' is required");if(e.hasOwnProperty("mode")){const t=["absolute","relative","absolute-relative"];t.includes(e.mode)||n.push(`stack: 'mode' must be one of: ${t.join(", ")}`)}if(e.hasOwnProperty("order")){const t=["asc","desc","dataset"];t.includes(e.order)||n.push(`stack: 'order' must be one of: ${t.join(", ")}`)}if(e.hasOwnProperty("notation")){const t=["none","scenario"];t.includes(e.notation)||n.push(`stack: 'notation' must be one of: ${t.join(", ")}`)}if(e.hasOwnProperty("legend")){const t=["left","right","both","none"];t.includes(e.legend)||n.push(`stack: 'legend' must be one of: ${t.join(", ")}`)}return e.hasOwnProperty("percentMark")&&"boolean"!=typeof e.percentMark&&n.push("stack: 'percentMark' must be true or false"),e.hasOwnProperty("labels")&&!["share","value"].includes(e.labels)&&n.push("stack: 'labels' must be one of: share, value"),e.hasOwnProperty("totalTitle")&&"string"!=typeof e.totalTitle&&n.push("stack: 'totalTitle' must be a text"),e.hasOwnProperty("thickness")&&!["equal","total"].includes(e.thickness)&&n.push("stack: 'thickness' must be one of: equal, total"),n}catch(t){return["stack: invalid JSON"]}}function xt(t){return!lt(t)&&null!==at(t)}class Gt{constructor(){this.cache=new Map,this.tag=Gt.makeStyleTag()}static makeStyleTag(){const t=document.createElement("style");return t.type="text/css",t.setAttribute("data-bn-computed-style",""),t.append(document.createTextNode("")),(document.head||document.querySelector("head")).append(t),t}apply(t){t.forEach((t=>this.cache.set(t.className,t.style))),this.tag.textContent=Array.from(this.cache.values()).map((t=>t)).join("\n")}}const qt=new Gt;function Rt(t){for(var e,n=0,r=0,s=t.length;s>=4;++r,s-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(s){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}const zt=t=>vt(t)?`${t}px`:t,Ct={width:{className:"w",cssName:"width",attrName:"width",transform:zt},height:{className:"h",cssName:"height",attrName:"height",transform:zt},position:{className:"pst",cssName:"position",attrName:"position"},top:{className:"top",cssName:"top",attrName:"top",transform:zt},right:{className:"rgt",cssName:"right",attrName:"right",transform:zt},bottom:{className:"btm",cssName:"bottom",attrName:"bottom",transform:zt},left:{className:"lft",cssName:"left",attrName:"left",transform:zt},"font-size":{className:"fts",cssName:"font-size",attrName:"font-size",transform:zt},"grid-column":{className:"gdc",cssName:"grid-column",attrName:"grid-column"},"grid-row":{className:"gdr",cssName:"grid-row",attrName:"grid-row"}},Pt=Object.keys(Ct);function Ut(t,e,n){return`.${e} {${t.cssName}: ${n};}`}function Bt(t,e){const n=document.createElement("div").style;n.setProperty(t.cssName,e);const r=n.getPropertyValue(t.cssName);if(n.cssText=`${t.cssName}:${r};--bn-end:1`,!r||r.includes("<")||"1"!==n.getPropertyValue("--bn-end"))return;const s=function(t,e){const n=Rt(e);return`bn-c-${t.className}_${n}`}(t,e);return{className:s,style:Ut(t,s,r)}}const Ht=t=>{const e=new Map;return Pt.forEach((n=>{const r=t.getAttribute(n);if(r){["top","left","right","bottom"].includes(n)&&e.set("position",Bt(Ct.position,"absolute"));const t=Bt(Ct[n],(Ct[n].transform||function(t){return t})(r));t&&e.set(n,t)}})),e},Kt=new MutationObserver((t=>{for(const n of t){const t=n.target,r=Ht(t);qt.apply(r);const s=Array.from(r.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...s).join(" "),e(t)}})),Qt=e=>{const n=e.connectedCallback,s=e.disconnectedCallback;e.connectedCallback=()=>{const s=t(e);if(!s)throw new Error("Can't find element field in component undefined");(t=>{const e=Ht(t);qt.apply(e);const n=Array.from(e.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...n).join(" "),Kt.observe(t,{attributes:!0,attributeFilter:Pt,childList:!1,subtree:!1})})(s),r(n,e)},e.disconnectedCallback=()=>{r(s,e)}};export{p as $,N as A,vt as B,B as C,Ot as D,Dt as E,R as F,k as G,O as H,U as I,l as J,Rt as K,mt as L,_t as M,et as N,C as O,Tt as P,At as Q,A as R,D as S,Et as T,Mt as U,$t as V,pt as W,Jt as X,Ft as Y,It as Z,jt as _,f as a,J as a0,$ as a1,X as a2,d as a3,v as a4,h as a5,q as a6,w as a7,g as a8,F as a9,I as aa,V as ab,m as ac,L as ad,j as ae,Nt as af,kt as ag,St as ah,z as ai,bt as b,xt as c,ot as d,ct as e,ut as f,gt as g,K as h,lt as i,P as j,ft as k,dt as l,c as m,ht as n,wt as o,Lt as p,Wt as q,at as r,it as s,M as t,T as u,yt as v,Qt as w,H as x,tt as y,nt as z}
@@ -1 +1 @@
1
- import{g as t}from"./p-GstO_GU5.js";import{r}from"./p-7pLJBHT2.js";const s=(s,o)=>{let a;const e=new MutationObserver((()=>{var t;a&&o(null!==(t=a.textContent)&&void 0!==t?t:"")})),i=s.connectedCallback;s.connectedCallback=()=>{var n;a=t(s),e.observe(a,{childList:!0,subtree:!0,characterData:!0}),o(null!==(n=a.textContent)&&void 0!==n?n:""),r(i,s)};const n=s.disconnectedCallback;s.disconnectedCallback=()=>{e.disconnect(),r(n,s)}};export{s as w}
1
+ import{g as t}from"./p-GstO_GU5.js";import{r}from"./p-B6SpWzpW.js";const s=(s,o)=>{let a;const e=new MutationObserver((()=>{var t;a&&o(null!==(t=a.textContent)&&void 0!==t?t:"")})),i=s.connectedCallback;s.connectedCallback=()=>{var n;a=t(s),e.observe(a,{childList:!0,subtree:!0,characterData:!0}),o(null!==(n=a.textContent)&&void 0!==n?n:""),r(i,s)};const n=s.disconnectedCallback;s.disconnectedCallback=()=>{e.disconnect(),r(n,s)}};export{s as w}
@@ -1 +1 @@
1
- import{b as t}from"./p-7pLJBHT2.js";const n=t=>Math.round(100*t)/100;function o(t){return{x:n(t.left),y:n(t.top),width:n(t.width),height:n(t.height)}}function r(t,o){const r=n(t.width),e=n(t.height);return{context:{x:n(t.left-o.context.x),y:n(t.top-o.context.y),width:r,height:e},component:{x:n(t.left-o.component.x),y:n(t.top-o.component.y),width:r,height:e}}}function e(t,n){return r(t.getBoundingClientRect(),n)}function i(t){const n=getComputedStyle(t,"::before").content;if(!n||"none"===n||"normal"===n)return 0;const o=t.ownerDocument.createElement("canvas").getContext("2d");if(!o)return 0;const{fontStyle:r,fontWeight:e,fontSize:i,fontFamily:u}=getComputedStyle(t);return o.font=`${r} ${e} ${i} ${u}`,o.measureText(n.replace(/^"|"$/g,"")).width}function u(t,n){var o,e;const i=null===(e=null===(o=t.ownerDocument)||void 0===o?void 0:o.createRange)||void 0===e?void 0:e.call(o);if(!i)return;const u=t.getBoundingClientRect(),c=t.querySelector("svg text");let a;if(c)a=c.getBoundingClientRect();else{i.selectNodeContents(t);const n=t.querySelector(".prefix-second");n&&i.setStartAfter(n),a=i.getBoundingClientRect()}const l=Math.max(a.left,u.left),s=Math.max(a.top,u.top),f=Math.min(a.right,u.right)-l,h=Math.min(a.bottom,u.bottom)-s;return f>0&&h>0?r({left:l,top:s,width:f,height:h},n):void 0}function c(n){const o=n.getBoundingClientRect(),r=t(n),e=r?r.getBoundingClientRect():o;return{context:{x:e.left,y:e.top},component:{x:o.left,y:o.top}}}function a(t){var n,o;return null!==(o=null!==(n=t.getAttribute("id"))&&void 0!==n?n:t.getAttribute("name"))&&void 0!==o?o:void 0}function l(t){var n;return null!==(n=a(t))&&void 0!==n?n:t.localName}function s(t){const n=new Map;return t.map((({tag:t,explicitId:o})=>{var r;const e=null!==(r=n.get(t))&&void 0!==r?r:0;return n.set(t,e+1),null!=o?o:`${t}[${e}]`}))}function f(t){const n=t.getAttribute("has-error");if(!n)return[];try{const t=JSON.parse(n);return Array.isArray(t)?t:[]}catch(t){return[]}}const h=[1,0,0,1],d=([t,n,o,r],[e,i,u,c])=>[t*e+o*i,n*e+r*i,t*u+o*c,n*u+r*c];function v(t){if("function"!=typeof getComputedStyle||"function"!=typeof DOMMatrix)return h;const n=getComputedStyle(t).transform;if(!n||"none"===n)return h;try{const{a:t,b:o,c:r,d:e}=new DOMMatrix(n);return[t,o,r,e]}catch(t){return h}}function y(t){var n,o,r;return null!==(r=null!==(o=null!==(n=t.assignedSlot)&&void 0!==n?n:t.parentElement)&&void 0!==o?o:t.getRootNode().host)&&void 0!==r?r:null}function x(t){var n,o;const[r,e,i,u]=function(t){let n=h;for(let o=t;o;o=y(o))n=d(v(o),n);return n}(t),c=r*u-e*i;if(0===c){const n=t.getBoundingClientRect();return{toLocal:t=>({x:t.left-n.left,y:t.top-n.top,width:t.width,height:t.height})}}const a=(t,n)=>({x:r*t+i*n,y:e*t+u*n}),l=t,s=t.getBoundingClientRect(),f=null!==(n=l.offsetWidth)&&void 0!==n?n:s.width,x=null!==(o=l.offsetHeight)&&void 0!==o?o:s.height,p=[a(0,0),a(f,0),a(0,x),a(f,x)],M=s.left-Math.min(...p.map((t=>t.x))),g=s.top-Math.min(...p.map((t=>t.y))),m=(t,n)=>{const o=t-M,a=n-g;return{x:(u*o-i*a)/c,y:(-e*o+r*a)/c}};return{toLocal:t=>{const n=[m(t.left,t.top),m(t.left+t.width,t.top),m(t.left,t.top+t.height),m(t.left+t.width,t.top+t.height)],o=Math.min(...n.map((t=>t.x))),r=Math.min(...n.map((t=>t.y)));return{x:o,y:r,width:Math.max(...n.map((t=>t.x)))-o,height:Math.max(...n.map((t=>t.y)))-r}}}}export{l as a,s as b,a as c,u as d,i as e,x as l,e as m,c as o,f as r,o as t}
1
+ import{b as t}from"./p-B6SpWzpW.js";const n=t=>Math.round(100*t)/100;function o(t){return{x:n(t.left),y:n(t.top),width:n(t.width),height:n(t.height)}}function r(t,o){const r=n(t.width),e=n(t.height);return{context:{x:n(t.left-o.context.x),y:n(t.top-o.context.y),width:r,height:e},component:{x:n(t.left-o.component.x),y:n(t.top-o.component.y),width:r,height:e}}}function e(t,n){return r(t.getBoundingClientRect(),n)}function i(t){const n=getComputedStyle(t,"::before").content;if(!n||"none"===n||"normal"===n)return 0;const o=t.ownerDocument.createElement("canvas").getContext("2d");if(!o)return 0;const{fontStyle:r,fontWeight:e,fontSize:i,fontFamily:u}=getComputedStyle(t);return o.font=`${r} ${e} ${i} ${u}`,o.measureText(n.replace(/^"|"$/g,"")).width}function u(t,n){var o,e;const i=null===(e=null===(o=t.ownerDocument)||void 0===o?void 0:o.createRange)||void 0===e?void 0:e.call(o);if(!i)return;const u=t.getBoundingClientRect(),c=t.querySelector("svg text");let a;if(c)a=c.getBoundingClientRect();else{i.selectNodeContents(t);const n=t.querySelector(".prefix-second");n&&i.setStartAfter(n),a=i.getBoundingClientRect()}const l=Math.max(a.left,u.left),s=Math.max(a.top,u.top),f=Math.min(a.right,u.right)-l,h=Math.min(a.bottom,u.bottom)-s;return f>0&&h>0?r({left:l,top:s,width:f,height:h},n):void 0}function c(n){const o=n.getBoundingClientRect(),r=t(n),e=r?r.getBoundingClientRect():o;return{context:{x:e.left,y:e.top},component:{x:o.left,y:o.top}}}function a(t){var n,o;return null!==(o=null!==(n=t.getAttribute("id"))&&void 0!==n?n:t.getAttribute("name"))&&void 0!==o?o:void 0}function l(t){var n;return null!==(n=a(t))&&void 0!==n?n:t.localName}function s(t){const n=new Map;return t.map((({tag:t,explicitId:o})=>{var r;const e=null!==(r=n.get(t))&&void 0!==r?r:0;return n.set(t,e+1),null!=o?o:`${t}[${e}]`}))}function f(t){const n=t.getAttribute("has-error");if(!n)return[];try{const t=JSON.parse(n);return Array.isArray(t)?t:[]}catch(t){return[]}}const h=[1,0,0,1],d=([t,n,o,r],[e,i,u,c])=>[t*e+o*i,n*e+r*i,t*u+o*c,n*u+r*c];function v(t){if("function"!=typeof getComputedStyle||"function"!=typeof DOMMatrix)return h;const n=getComputedStyle(t).transform;if(!n||"none"===n)return h;try{const{a:t,b:o,c:r,d:e}=new DOMMatrix(n);return[t,o,r,e]}catch(t){return h}}function y(t){var n,o,r;return null!==(r=null!==(o=null!==(n=t.assignedSlot)&&void 0!==n?n:t.parentElement)&&void 0!==o?o:t.getRootNode().host)&&void 0!==r?r:null}function p(t){var n,o;const[r,e,i,u]=function(t){let n=h;for(let o=t;o;o=y(o))n=d(v(o),n);return n}(t),c=r*u-e*i;if(0===c){const n=t.getBoundingClientRect();return{toLocal:t=>({x:t.left-n.left,y:t.top-n.top,width:t.width,height:t.height})}}const a=(t,n)=>({x:r*t+i*n,y:e*t+u*n}),l=t,s=t.getBoundingClientRect(),f=null!==(n=l.offsetWidth)&&void 0!==n?n:s.width,p=null!==(o=l.offsetHeight)&&void 0!==o?o:s.height,x=[a(0,0),a(f,0),a(0,p),a(f,p)],M=s.left-Math.min(...x.map((t=>t.x))),g=s.top-Math.min(...x.map((t=>t.y))),m=(t,n)=>{const o=t-M,a=n-g;return{x:(u*o-i*a)/c,y:(-e*o+r*a)/c}};return{toLocal:t=>{const n=[m(t.left,t.top),m(t.left+t.width,t.top),m(t.left,t.top+t.height),m(t.left+t.width,t.top+t.height)],o=Math.min(...n.map((t=>t.x))),r=Math.min(...n.map((t=>t.y)));return{x:o,y:r,width:Math.max(...n.map((t=>t.x)))-o,height:Math.max(...n.map((t=>t.y)))-r}}}}export{l as a,s as b,a as c,u as d,i as e,p as l,e as m,c as o,f as r,o as t}
@@ -1 +1 @@
1
- import{g as t,r as n,c as e,R as o}from"./p-7pLJBHT2.js";import{g as r,f as i}from"./p-GstO_GU5.js";import{i as s}from"./p-NxJ6P79y.js";const a=new Set(["br","b","i","strong","em","span","p","div","table","tr","td","th","thead","tbody","tfoot","ul","ol","li","h1","h2","h3","h4","h5","h6","sub","sup","small","hr","a","img","code","pre","blockquote","del"]),l=new Set(["class","style","colspan","rowspan","href","title","src","alt","width","height"]),u=new Set(["http:","https:","mailto:"]),c=/^\s*text-align:\s*(left|center|right)\s*;?\s*$/i;function d(t){if(!t)return"";const n=(new DOMParser).parseFromString(t,"text/html").body;return f(n),n.innerHTML}function f(t){for(const n of Array.from(t.childNodes)){if(n.nodeType===Node.TEXT_NODE)continue;const e=n;if(n.nodeType!==Node.ELEMENT_NODE||!a.has(e.localName)){t.removeChild(n);continue}for(const t of Array.from(e.attributes)){const n=t.name.toLowerCase();l.has(n)&&("href"!==n&&"src"!==n||v(n,t.value))||e.removeAttribute(t.name)}const o=e.getAttribute("style");null===o||c.test(o)||e.removeAttribute("style"),f(e)}}function v(t,n){try{const{protocol:e}=new URL(n,"http://a");return u.has(e)||"src"===t&&"data:"===e}catch(t){return!1}}function h(t,n=!1){const e=p(t);if(!e)return n&&console.log("[parentDims] no layout parent found for",t.tagName),{width:0,height:0};const o=getComputedStyle(e),r=e.clientWidth-parseFloat(o.paddingLeft)-parseFloat(o.paddingRight),i=function(t,n=!1){let e=p(t),o=0,r=null,i=1;for(;e;){if(e.hasAttribute("data-bn-fit-content")){n&&console.log(`[height:${o}]`,e.tagName,"fit-content region → discarding inner candidate"),r=null;const t=parseInt(e.getAttribute("data-bn-fit-content"),10);!isNaN(t)&&t>1&&(i*=t),e=m(e),o++;continue}const t=getComputedStyle(e),s=t.overflowY;if(n&&console.log(`[height:${o}]`,e.tagName,e.className||"(no class)",`overflow=${s} clientH=${e.clientHeight} h=${t.height}`),null===r)if("hidden"===s||"scroll"===s||"auto"===s)r=e.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom),n&&console.log(`[height] candidate at depth ${o}: ${Math.round(r)}px`);else if("none"!==t.maxHeight){const n=parseFloat(t.maxHeight);!isNaN(n)&&n>0&&(r=Math.min(n,e.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)))}e=m(e),o++}return null!==r?r/i:(n&&console.log("[height] NO constrained ancestor → viewport fallback"),"undefined"!=typeof window?window.innerHeight/i:0)}(t,n);return n&&console.log("[parentDims]",t.tagName,"→ layoutParent:",e.tagName,e.className||"(no class)",`clientW=${e.clientWidth} → w=${Math.round(r)}, h=${Math.round(i)}`,"overflow:",o.overflow),{width:Math.max(0,r),height:Math.max(0,i)}}function p(t){var n;const e=t.parentElement;return(null===(n=null==e?void 0:e.assignedSlot)||void 0===n?void 0:n.parentElement)?e.assignedSlot.parentElement:e}function m(t){var n;if(null===(n=t.assignedSlot)||void 0===n?void 0:n.parentElement)return t.assignedSlot.parentElement;if(t.parentElement)return t.parentElement;const e=t.getRootNode();return e instanceof ShadowRoot?e.host:null}function b(t,n){const e=t.getBoundingClientRect(),o=t.offsetHeight>0?e.height/t.offsetHeight:0;if(!(o>0)||Math.abs(o-(t.offsetWidth>0?e.width/t.offsetWidth:0))>.01*o)return 0;const r=e.top+n*o;let i=0;for(let n=t;n;n=m(n)){const t=getComputedStyle(n).overflowY;if("hidden"===t||"clip"===t)i=Math.max(i,r-n.getBoundingClientRect().bottom);else if(("auto"===t||"scroll"===t)&&n.scrollHeight>n.clientHeight+1)break}return i/o}const g=(t,n)=>Math.round(t*n*100)/100;function w(t){if(null==t||""===t)return{mode:"empty"};if("none"===t)return{mode:"none"};if("auto"===t)return{mode:"auto"};const n=Number(t);return!isNaN(n)&&n>0?{mode:"factor",factor:n}:{mode:"empty"}}const y={k:1e3,K:1e3,M:1e6,G:1e9,T:1e12},$=/^(\d+(?:\.\d+)?|\.\d+)\s*([kKMGT])?$/;function M(t){var n;if("number"==typeof t)return Number.isFinite(t)&&t>0?{kind:"number",value:t}:{kind:"invalid",raw:String(t)};const e=null!==(n=null==t?void 0:t.toString().trim())&&void 0!==n?n:"";if("auto"===e.toLowerCase())return{kind:"auto"};const o=$.exec(e);if(o){const t=Number(o[1])*(o[2]?y[o[2]]:1);if(Number.isFinite(t)&&t>0)return{kind:"number",value:t}}return{kind:"invalid",raw:e}}function k(t,n){const e=M(t);if("auto"===e.kind)return{kind:"auto"};if("string"==typeof t){const e=t.trim();if(n.has(e))return{kind:"value",value:n.get(e)}}return"number"===e.kind?{kind:"value",value:e.value}:{kind:"invalid",raw:e.raw}}const N=[[1e12,"T"],[1e9,"G"],[1e6,"M"],[1e3,"k"]];function S(t){if(!Number.isFinite(t)||t<=0)return String(t);const n=t=>String(Number(t.toPrecision(3)));for(const[e,o]of N)if(t>=e)return`${n(t/e)}${o}`;return n(t)}const F="WARN_datasets",O=(o,i,s)=>{let a,l,u=[],c=[],d=[],f="";const v=()=>{const t=f;f=o.datasets||"",""!==t&&t!==f&&i("",[]),[d,c]=((t,n)=>{const e=[],o=[];for(const t of n)(r=t,r.startsWith("$")?e:o).push(t);var r;return[e,o]})(0,f.split(",")),((t,n)=>{const e=t.errors;if(e)if(n.length>0){const t=n.map((t=>t.substring(1))).join(", ");e.addOrReplace({id:F,type:"warning",message:`Using datasource(s) "${t}" directly. Prefer using a dataset (bn-dataset) for query support and metadata.`})}else e.remove(F)})(o,d),p()},h=(t,n)=>{const e=n?t.substring(1):t;let o;try{o=l.db.db.exec(`SELECT * FROM \`${e}\``)}catch(t){o=[]}i(t,o)},p=()=>{u.forEach((t=>t())),u=[],c.forEach((t=>{t&&(u.push(l.db.subscribe(t,(()=>h(t,!1)))),h(t,!1),(t=>{if(s){const n=l.datasetsMeta.get(t);n&&s(t,n)}})(t))})),d.forEach((t=>{t&&(u.push(l.db.subscribe(t.substring(1),(()=>h(t,!0)))),h(t,!0))}))},m=new MutationObserver((t=>{t.forEach((t=>{"datasets"===t.attributeName&&(o.datasets||"")!==f&&v()}))})),b=o.connectedCallback;o.connectedCallback=()=>{const e=r(o);l=t(e),v(),m.observe(e,{attributes:!0,attributeFilter:["datasets"]}),s&&(a=l.datasetsMeta.on("set",((t,n)=>{c.includes(t)&&s(t,n)}))),n(b,o)};const g=o.disconnectedCallback;return o.disconnectedCallback=()=>{m.disconnect(),u.forEach((t=>t())),u=[],n(a),e(r(o)),n(g,o)},t=>{c=t,p()}},R="inherited-page",T="bn-layout-page";function j(t){return"inherited-closest"===t||t===R}function x(t,n){const e=[];let o=t.parentNode;for(;o;){const t=o.nodeName.toLowerCase();if(t===T){e.push(o);break}if("bn-layout-card"===t&&n!==R&&e.push(o),o.parentNode)o=o.parentNode;else{if(!(o instanceof ShadowRoot))break;o=o.host}}return e}function G(t,n){var e;const o=t=>{const e=t.getAttribute(n),o=null==e?void 0:e.trim();return s(o)||j(o)?void 0:e};for(const r of t){if((null===(e=r.getAttribute(n))||void 0===e?void 0:e.trim())===R){const n=t.find((t=>t.nodeName.toLowerCase()===T)),e=n&&o(n);if(void 0!==e)return e;continue}const i=o(r);if(void 0!==i)return i}}const _=(t,e,o)=>{const s=new Map,a=new Map;let l=null;const u=()=>{var n;const o=r(t);s.clear(),a.clear(),l&&(l.disconnect(),l=null);const c=new Map;for(const r of e){const e=t[r.propName];if("string"!=typeof e||!j(e))continue;a.set(r.propName,e);const i=x(o,e),l=G(i,r.ancestorAttr);void 0!==l&&s.set(r.propName,l);for(const t of i)c.set(t,[...null!==(n=c.get(t))&&void 0!==n?n:[],r.ancestorAttr])}if(c.size>0){l=new MutationObserver((()=>{u(),i(t)}));for(const[t,n]of c)l.observe(t,{attributes:!0,attributeFilter:n})}},c=t.connectedCallback;t.connectedCallback=()=>{u(),n(c,t)};const d=t.disconnectedCallback;t.disconnectedCallback=()=>{l&&(l.disconnect(),l=null),s.clear(),a.clear(),n(d,t)};const f=t=>{var n;return null===(n=e.find((n=>n.propName===t)))||void 0===n?void 0:n.ancestorAttr.replace(/-(\w)/g,((t,n)=>n.toUpperCase()))};return(t,n,e)=>{const r=`WARN_inherited_${t}`,i=j(n);i&&a.get(t)!==n&&u();const l=i?s.get(t):void 0;return i&&void 0===l?(null==o||o.addOrReplace({id:r,type:"warning",message:`${t}: '${n}' could not be resolved, no surrounding ${n===R?"page":"card or page"} sets ${f(t)}`}),{value:e,inherited:!1,unresolved:!0}):(null==o||o.remove(r),{value:null!=l?l:n,inherited:void 0!==l,unresolved:!1})}},A=s=>{let a,l,u,c,d=null;const f=()=>{const t=r(s);if(d&&(d.disconnect(),d=null),u=s.i18nNamespace,l=u,null!=l)return;const n=function(t){let n=t.parentNode;for(;n;){if(n instanceof HTMLElement&&n.hasAttribute("i18n-namespace"))return n;if(n.parentNode)n=n.parentNode;else{if(!(n instanceof ShadowRoot))break;n=n.host}}}(t);n&&(l=n.getAttribute("i18n-namespace"),d=new MutationObserver((()=>{f(),i(s)})),d.observe(n,{attributes:!0,attributeFilter:["i18n-namespace"]}))},v=s.connectedCallback;s.connectedCallback=()=>{const e=r(s);c=t(e),f(),a=c.internationalization.on("set",(t=>{t!==l&&"_system"!==t||i(s)})),n(v,s)};const h=s.disconnectedCallback;return s.disconnectedCallback=()=>{d&&(d.disconnect(),d=null),n(a),e(r(s)),n(h,s)},{t:(t,n)=>{var e,i,a,d,v;void 0!==c&&s.i18nNamespace!==u&&f(),t.startsWith(".")&&(t=r(s).localName+t),Object.prototype.hasOwnProperty.call(o,t)&&(t=o[t]);const h=c.internationalization.state,p=c.context.state.locale,m=null!==(a=null===(i=null===(e=h[l])||void 0===e?void 0:e[p])||void 0===i?void 0:i[t])&&void 0!==a?a:null===(v=null===(d=h._system)||void 0===d?void 0:d[p])||void 0===v?void 0:v[t];return null==m?t:m.replace(/{{([\s\S]+?)}}/g,((t,e)=>{var o;return null!==(o=null==n?void 0:n[e.trim()])&&void 0!==o?o:""}))}}};export{O as a,b,g as c,k as d,S as e,x as f,h as g,_ as h,j as i,M as j,w as p,G as r,d as s,A as w}
1
+ import{g as t,r as n,c as e,R as o}from"./p-B6SpWzpW.js";import{g as r,f as i}from"./p-GstO_GU5.js";import{i as s}from"./p-BXkVoFbt.js";const a=new Set(["br","b","i","strong","em","span","p","div","table","tr","td","th","thead","tbody","tfoot","ul","ol","li","h1","h2","h3","h4","h5","h6","sub","sup","small","hr","a","img","code","pre","blockquote","del"]),l=new Set(["class","style","colspan","rowspan","href","title","src","alt","width","height"]),u=new Set(["http:","https:","mailto:"]),c=/^\s*text-align:\s*(left|center|right)\s*;?\s*$/i;function d(t){if(!t)return"";const n=(new DOMParser).parseFromString(t,"text/html").body;return f(n),n.innerHTML}function f(t){for(const n of Array.from(t.childNodes)){if(n.nodeType===Node.TEXT_NODE)continue;const e=n;if(n.nodeType!==Node.ELEMENT_NODE||!a.has(e.localName)){t.removeChild(n);continue}for(const t of Array.from(e.attributes)){const n=t.name.toLowerCase();l.has(n)&&("href"!==n&&"src"!==n||v(n,t.value))||e.removeAttribute(t.name)}const o=e.getAttribute("style");null===o||c.test(o)||e.removeAttribute("style"),f(e)}}function v(t,n){try{const{protocol:e}=new URL(n,"http://a");return u.has(e)||"src"===t&&"data:"===e}catch(t){return!1}}function h(t,n=!1){const e=p(t);if(!e)return n&&console.log("[parentDims] no layout parent found for",t.tagName),{width:0,height:0};const o=getComputedStyle(e),r=e.clientWidth-parseFloat(o.paddingLeft)-parseFloat(o.paddingRight),i=function(t,n=!1){let e=p(t),o=0,r=null,i=1;for(;e;){if(e.hasAttribute("data-bn-fit-content")){n&&console.log(`[height:${o}]`,e.tagName,"fit-content region → discarding inner candidate"),r=null;const t=parseInt(e.getAttribute("data-bn-fit-content"),10);!isNaN(t)&&t>1&&(i*=t),e=m(e),o++;continue}const t=getComputedStyle(e),s=t.overflowY;if(n&&console.log(`[height:${o}]`,e.tagName,e.className||"(no class)",`overflow=${s} clientH=${e.clientHeight} h=${t.height}`),null===r)if("hidden"===s||"scroll"===s||"auto"===s)r=e.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom),n&&console.log(`[height] candidate at depth ${o}: ${Math.round(r)}px`);else if("none"!==t.maxHeight){const n=parseFloat(t.maxHeight);!isNaN(n)&&n>0&&(r=Math.min(n,e.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)))}e=m(e),o++}return null!==r?r/i:(n&&console.log("[height] NO constrained ancestor → viewport fallback"),"undefined"!=typeof window?window.innerHeight/i:0)}(t,n);return n&&console.log("[parentDims]",t.tagName,"→ layoutParent:",e.tagName,e.className||"(no class)",`clientW=${e.clientWidth} → w=${Math.round(r)}, h=${Math.round(i)}`,"overflow:",o.overflow),{width:Math.max(0,r),height:Math.max(0,i)}}function p(t){var n;const e=t.parentElement;return(null===(n=null==e?void 0:e.assignedSlot)||void 0===n?void 0:n.parentElement)?e.assignedSlot.parentElement:e}function m(t){var n;if(null===(n=t.assignedSlot)||void 0===n?void 0:n.parentElement)return t.assignedSlot.parentElement;if(t.parentElement)return t.parentElement;const e=t.getRootNode();return e instanceof ShadowRoot?e.host:null}function b(t,n){const e=t.getBoundingClientRect(),o=t.offsetHeight>0?e.height/t.offsetHeight:0;if(!(o>0)||Math.abs(o-(t.offsetWidth>0?e.width/t.offsetWidth:0))>.01*o)return 0;const r=e.top+n*o;let i=0;for(let n=t;n;n=m(n)){const t=getComputedStyle(n).overflowY;if("hidden"===t||"clip"===t)i=Math.max(i,r-n.getBoundingClientRect().bottom);else if(("auto"===t||"scroll"===t)&&n.scrollHeight>n.clientHeight+1)break}return i/o}const g=(t,n)=>Math.round(t*n*100)/100;function w(t){if(null==t||""===t)return{mode:"empty"};if("none"===t)return{mode:"none"};if("auto"===t)return{mode:"auto"};const n=Number(t);return!isNaN(n)&&n>0?{mode:"factor",factor:n}:{mode:"empty"}}const y={k:1e3,K:1e3,M:1e6,G:1e9,T:1e12},$=/^(\d+(?:\.\d+)?|\.\d+)\s*([kKMGT])?$/;function M(t){var n;if("number"==typeof t)return Number.isFinite(t)&&t>0?{kind:"number",value:t}:{kind:"invalid",raw:String(t)};const e=null!==(n=null==t?void 0:t.toString().trim())&&void 0!==n?n:"";if("auto"===e.toLowerCase())return{kind:"auto"};const o=$.exec(e);if(o){const t=Number(o[1])*(o[2]?y[o[2]]:1);if(Number.isFinite(t)&&t>0)return{kind:"number",value:t}}return{kind:"invalid",raw:e}}function k(t,n){const e=M(t);if("auto"===e.kind)return{kind:"auto"};if("string"==typeof t){const e=t.trim();if(n.has(e))return{kind:"value",value:n.get(e)}}return"number"===e.kind?{kind:"value",value:e.value}:{kind:"invalid",raw:e.raw}}const N=[[1e12,"T"],[1e9,"G"],[1e6,"M"],[1e3,"k"]];function S(t){if(!Number.isFinite(t)||t<=0)return String(t);const n=t=>String(Number(t.toPrecision(3)));for(const[e,o]of N)if(t>=e)return`${n(t/e)}${o}`;return n(t)}const F="WARN_datasets",O=(o,i,s)=>{let a,l,u=[],c=[],d=[],f="";const v=()=>{const t=f;f=o.datasets||"",""!==t&&t!==f&&i("",[]),[d,c]=((t,n)=>{const e=[],o=[];for(const t of n)(r=t,r.startsWith("$")?e:o).push(t);var r;return[e,o]})(0,f.split(",")),((t,n)=>{const e=t.errors;if(e)if(n.length>0){const t=n.map((t=>t.substring(1))).join(", ");e.addOrReplace({id:F,type:"warning",message:`Using datasource(s) "${t}" directly. Prefer using a dataset (bn-dataset) for query support and metadata.`})}else e.remove(F)})(o,d),p()},h=(t,n)=>{const e=n?t.substring(1):t;let o;try{o=l.db.db.exec(`SELECT * FROM \`${e}\``)}catch(t){o=[]}i(t,o)},p=()=>{u.forEach((t=>t())),u=[],c.forEach((t=>{t&&(u.push(l.db.subscribe(t,(()=>h(t,!1)))),h(t,!1),(t=>{if(s){const n=l.datasetsMeta.get(t);n&&s(t,n)}})(t))})),d.forEach((t=>{t&&(u.push(l.db.subscribe(t.substring(1),(()=>h(t,!0)))),h(t,!0))}))},m=new MutationObserver((t=>{t.forEach((t=>{"datasets"===t.attributeName&&(o.datasets||"")!==f&&v()}))})),b=o.connectedCallback;o.connectedCallback=()=>{const e=r(o);l=t(e),v(),m.observe(e,{attributes:!0,attributeFilter:["datasets"]}),s&&(a=l.datasetsMeta.on("set",((t,n)=>{c.includes(t)&&s(t,n)}))),n(b,o)};const g=o.disconnectedCallback;return o.disconnectedCallback=()=>{m.disconnect(),u.forEach((t=>t())),u=[],n(a),e(r(o)),n(g,o)},t=>{c=t,p()}},R="inherited-page",j="bn-layout-page";function G(t){return"inherited-closest"===t||t===R}function T(t,n){const e=[];let o=t.parentNode;for(;o;){const t=o.nodeName.toLowerCase();if(t===j){e.push(o);break}if("bn-layout-card"===t&&n!==R&&e.push(o),o.parentNode)o=o.parentNode;else{if(!(o instanceof ShadowRoot))break;o=o.host}}return e}function W(t,n){var e;const o=t=>{const e=t.getAttribute(n),o=null==e?void 0:e.trim();return s(o)||G(o)?void 0:e};for(const r of t){if((null===(e=r.getAttribute(n))||void 0===e?void 0:e.trim())===R){const n=t.find((t=>t.nodeName.toLowerCase()===j)),e=n&&o(n);if(void 0!==e)return e;continue}const i=o(r);if(void 0!==i)return i}}const _=(t,e,o)=>{const s=new Map,a=new Map;let l=null;const u=()=>{var n;const o=r(t);s.clear(),a.clear(),l&&(l.disconnect(),l=null);const c=new Map;for(const r of e){const e=t[r.propName];if("string"!=typeof e||!G(e))continue;a.set(r.propName,e);const i=T(o,e),l=W(i,r.ancestorAttr);void 0!==l&&s.set(r.propName,l);for(const t of i)c.set(t,[...null!==(n=c.get(t))&&void 0!==n?n:[],r.ancestorAttr])}if(c.size>0){l=new MutationObserver((()=>{u(),i(t)}));for(const[t,n]of c)l.observe(t,{attributes:!0,attributeFilter:n})}},c=t.connectedCallback;t.connectedCallback=()=>{u(),n(c,t)};const d=t.disconnectedCallback;t.disconnectedCallback=()=>{l&&(l.disconnect(),l=null),s.clear(),a.clear(),n(d,t)};const f=t=>{var n;return null===(n=e.find((n=>n.propName===t)))||void 0===n?void 0:n.ancestorAttr.replace(/-(\w)/g,((t,n)=>n.toUpperCase()))};return(t,n,e)=>{const r=`WARN_inherited_${t}`,i=G(n);i&&a.get(t)!==n&&u();const l=i?s.get(t):void 0;return i&&void 0===l?(null==o||o.addOrReplace({id:r,type:"warning",message:`${t}: '${n}' could not be resolved, no surrounding ${n===R?"page":"card or page"} sets ${f(t)}`}),{value:e,inherited:!1,unresolved:!0}):(null==o||o.remove(r),{value:null!=l?l:n,inherited:void 0!==l,unresolved:!1})}},x=s=>{let a,l,u,c,d=null;const f=()=>{const t=r(s);if(d&&(d.disconnect(),d=null),u=s.i18nNamespace,l=u,null!=l)return;const n=function(t){let n=t.parentNode;for(;n;){if(n instanceof HTMLElement&&n.hasAttribute("i18n-namespace"))return n;if(n.parentNode)n=n.parentNode;else{if(!(n instanceof ShadowRoot))break;n=n.host}}}(t);n&&(l=n.getAttribute("i18n-namespace"),d=new MutationObserver((()=>{f(),i(s)})),d.observe(n,{attributes:!0,attributeFilter:["i18n-namespace"]}))},v=s.connectedCallback;s.connectedCallback=()=>{const e=r(s);c=t(e),f(),a=c.internationalization.on("set",(t=>{t!==l&&"_system"!==t||i(s)})),n(v,s)};const h=s.disconnectedCallback;return s.disconnectedCallback=()=>{d&&(d.disconnect(),d=null),n(a),e(r(s)),n(h,s)},{t:(t,n)=>{var e,i,a,d,v;void 0!==c&&s.i18nNamespace!==u&&f(),t.startsWith(".")&&(t=r(s).localName+t),Object.prototype.hasOwnProperty.call(o,t)&&(t=o[t]);const h=c.internationalization.state,p=c.context.state.locale,m=null!==(a=null===(i=null===(e=h[l])||void 0===e?void 0:e[p])||void 0===i?void 0:i[t])&&void 0!==a?a:null===(v=null===(d=h._system)||void 0===d?void 0:d[p])||void 0===v?void 0:v[t];return null==m?t:m.replace(/{{([\s\S]+?)}}/g,((t,e)=>{var o;return null!==(o=null==n?void 0:n[e.trim()])&&void 0!==o?o:""}))}}};export{O as a,b,g as c,k as d,S as e,T as f,h as g,_ as h,G as i,M as j,w as p,W as r,d as s,x as w}
@@ -1 +1 @@
1
- import{r as t,f as n,h as i,a as o,g as s}from"./p-GstO_GU5.js";import{w as e,a,g as l,p as r,s as d}from"./p-Bvunba5p.js";import{w as u,a as c}from"./p-7pLJBHT2.js";import{w as v,a as f}from"./p-NxJ6P79y.js";const h="[A-Za-z_$\\u00C0-\\uFFFF][\\w$\\u00C0-\\uFFFF]*",p="'[^'\\\\]*'|\"[^\"\\\\]*\"",b=`(?:this\\.)?data(?:\\.(${h})|\\[\\s*(${p})\\s*\\])\\[\\s*(\\d+)\\s*\\]\\.(${h})`,g=new RegExp(`\\$\\{\\s*(?:${b}|t\\(\\s*(${p})\\s*(?:,\\s*\\{([^{}]*)\\}\\s*)?\\))\\s*\\}`,"g"),m=new RegExp(`\\s*(?:(${h})|(${p}))\\s*:\\s*(?:(${p})|(-?\\d+(?:\\.\\d+)?)|(${b}))\\s*(?:,|$)`,"y"),$=t=>String(t).replace(/[&<>"'\t\n\f\r ]/g,(t=>`&#${t.charCodeAt(0)};`)),w=(t,n)=>"object"==typeof t&&null!==t&&Object.prototype.hasOwnProperty.call(t,n)?t[n]:void 0,y=t=>t.slice(1,-1);const N=class{constructor(i){t(this,i),this.refit=()=>{n(this)},this.data={},v(this),u(this),this.errors=c(this),this.t=e(this).t,a(this,((t,n)=>{this.data=""===t?{}:Object.assign(Object.assign({},this.data),{[t]:n})})),this.componentStyle=f(this)}connectedCallback(){var t;null===(t=document.fonts)||void 0===t||t.addEventListener("loadingdone",this.refit)}disconnectedCallback(){var t;null===(t=document.fonts)||void 0===t||t.removeEventListener("loadingdone",this.refit)}validateValue(t){"string"!=typeof t||""===t?this.errors.addOrReplace({id:"WARN_value",type:"warning",message:"Empty value"}):this.errors.remove("WARN_value")}validateScaling(t){if(null==t||""===t||"none"===t||"auto"===t)return void this.errors.remove("WARN_scale");const n=Number(t);isNaN(n)||n<=0?this.errors.addOrReplace({id:"WARN_scale",type:"warning",message:`Invalid scale value: "${t}". Use "none", "auto", or a positive number.`}):this.errors.remove("WARN_scale")}componentWillLoad(){this.validateValue(this.value),this.validateScaling(this.scale)}prepareStyle(){return this.componentStyle((t=>{var n,i,o,s,e,a,l,r,d,u,c,v,f,h,p,b,g,m,$,w,y,N;return{fontStyles:{font:`${null!==(s=null!==(i=null===(n=t["bn-text"])||void 0===n?void 0:n.fontSizePx)&&void 0!==i?i:null===(o=t.global)||void 0===o?void 0:o.fontSizePx)&&void 0!==s?s:13.3333}px ${null!==(r=null!==(a=null===(e=t["bn-text"])||void 0===e?void 0:e.fontFamily)&&void 0!==a?a:null===(l=t.global)||void 0===l?void 0:l.fontFamily)&&void 0!==r?r:"'Noto Sans', sans-serif"}`,size:null!==(v=null!==(u=null===(d=t["bn-text"])||void 0===d?void 0:d.fontSizePx)&&void 0!==u?u:null===(c=t.global)||void 0===c?void 0:c.fontSizePx)&&void 0!==v?v:13.3333,color:null!==(b=null!==(h=null===(f=t["bn-text"])||void 0===f?void 0:f.fontColor)&&void 0!==h?h:null===(p=t.global)||void 0===p?void 0:p.fontColor)&&void 0!==b?b:"#000000",background:null!==(w=null!==(m=null===(g=t["bn-text"])||void 0===g?void 0:g.fontBackgroundColor)&&void 0!==m?m:null===($=t.global)||void 0===$?void 0:$.fontBackgroundColor)&&void 0!==w?w:"#ffffff",leading:null!==(N=null===(y=t["bn-text"])||void 0===y?void 0:y.leading)&&void 0!==N?N:1.8}}}))}applyScaling(t){const n=this.element,{mode:i,factor:o}=r(this.scale),{width:s,height:e}=l(n),a=n.scrollHeight>n.clientHeight+1?n.clientHeight:e,d=s,u=d>0&&n.scrollWidth>d+1,c=a>0&&n.scrollHeight>a+1,v=u||c;if(d<=0&&a<=0)return;if("none"===i){if(v){const t=[];u&&t.push(`w:${n.scrollWidth}>${Math.round(d)}`),c&&t.push(`h:${n.scrollHeight}>${Math.round(a)}`),this.errors.addOrReplace({id:"WARN_overflow",type:"warning",message:`Content overflows container (${t.join(", ")})`})}else this.errors.remove("WARN_overflow");return}if("factor"===i){if(v){const t=[];u&&t.push(`w:${n.scrollWidth}>${Math.round(d)}`),c&&t.push(`h:${n.scrollHeight}>${Math.round(a)}`),this.errors.addOrReplace({id:"WARN_overflow",type:"warning",message:`Content overflows with factor ${o} (${t.join(", ")})`})}else this.errors.remove("WARN_overflow");return}n.style.setProperty("--bn-font-size",`${t}px`);const f=n.scrollWidth,h=n.scrollHeight,p=n.clientHeight,b=h>p+1?p:e,g=d<=0||f<=d+1,m=b<=0||h<=b+1;if(g&&m)return void this.errors.remove("AUTO_scale");const $=Math.min(1,!g&&d>0?d/f:1,!m&&b>0?b/h:1);n.style.setProperty("--bn-font-size",t*$+"px"),"empty"===i?this.errors.addOrReplace({id:"AUTO_scale",type:"warning",message:`Auto-scaled font by factor ${$.toFixed(3)}`}):this.errors.remove("AUTO_scale")}componentDidRender(){var t;const{html:n,unknown:i}=function(t,n,i){const o=[],s=t=>{o.includes(t)||o.push(t)},e=(t,i,o,e,a)=>{const l=w(w(w(n,null!=i?i:y(o)),String(Number(e))),a);return void 0===l&&s(t),l};return{html:t.replace(g,((t,n,o,a,l,r,d)=>{const u=t.slice(2,-1).trim();try{if(void 0===r){const t=e(u,n,o,a,l);return null==t?"":$(t)}const s=void 0===d?void 0:(t=>{const n={};for(m.lastIndex=0;""!==t.slice(m.lastIndex).trim();){const i=m.exec(t);if(!i)return null;const[,o,s,a,l,r,d,u,c,v]=i;n[null!=o?o:y(s)]=void 0!==a?y(a):void 0!==l?Number(l):e(r,d,u,c,v)}return n})(d);return null===s?t:$(i(y(r),s))}catch(t){return s(u),""}})),unknown:o}}(null!==(t=this.value)&&void 0!==t?t:"",this.data,this.t);i.length>0?this.errors.addOrReplace({id:"WARN_value_path",type:"warning",message:`Unknown template path: ${i.join(", ")}`}):this.errors.remove("WARN_value_path"),this.container.innerHTML=d(n),this.applyScaling(this.prepareStyle().fontStyles.size)}render(){const{fontStyles:t}=this.prepareStyle(),{mode:n,factor:s}=r(this.scale),e="factor"===n?t.size*s+"px":`${t.size}px`,a={"--bn-font-family":t.font.substring(t.font.indexOf("px ")+3),"--bn-font-size":e,"--bn-font-color":t.color,"--bn-font-background":t.background};return i(o,{key:"47eaf1468ffc8b8de7e77f2b0aff4b927f8b0471",style:a},i("div",{key:"1f592c2fd0a4af77047c56ee043f6bdd84dfb2d2"},i("span",{key:"ecad3e6ea36dfa495ef78183fc6c3979eb9d5be2",class:"container",ref:t=>{this.container=t}})))}get element(){return s(this)}static get watchers(){return{value:[{validateValue:0}],scale:[{validateScaling:0}]}}};N.style=':host{padding:0.5em;display:inline-block;position:relative;overflow:hidden;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000);background-color:var(--bn-font-background, white)}span.container p{margin:0}';export{N as bn_text}
1
+ import{r as t,f as n,h as i,a as o,g as s}from"./p-GstO_GU5.js";import{w as e,a,g as l,p as r,s as d}from"./p-DBRtHV59.js";import{w as u,a as c}from"./p-B6SpWzpW.js";import{w as f,a as v}from"./p-BXkVoFbt.js";const h="[A-Za-z_$\\u00C0-\\uFFFF][\\w$\\u00C0-\\uFFFF]*",p="'[^'\\\\]*'|\"[^\"\\\\]*\"",b=`(?:this\\.)?data(?:\\.(${h})|\\[\\s*(${p})\\s*\\])\\[\\s*(\\d+)\\s*\\]\\.(${h})`,g=new RegExp(`\\$\\{\\s*(?:${b}|t\\(\\s*(${p})\\s*(?:,\\s*\\{([^{}]*)\\}\\s*)?\\))\\s*\\}`,"g"),m=new RegExp(`\\s*(?:(${h})|(${p}))\\s*:\\s*(?:(${p})|(-?\\d+(?:\\.\\d+)?)|(${b}))\\s*(?:,|$)`,"y"),$=t=>String(t).replace(/[&<>"'\t\n\f\r ]/g,(t=>`&#${t.charCodeAt(0)};`)),w=(t,n)=>"object"==typeof t&&null!==t&&Object.prototype.hasOwnProperty.call(t,n)?t[n]:void 0,y=t=>t.slice(1,-1);const _=class{constructor(i){t(this,i),this.refit=()=>{n(this)},this.data={},f(this),u(this),this.errors=c(this),this.t=e(this).t,a(this,((t,n)=>{this.data=""===t?{}:Object.assign(Object.assign({},this.data),{[t]:n})})),this.componentStyle=v(this)}connectedCallback(){var t;null===(t=document.fonts)||void 0===t||t.addEventListener("loadingdone",this.refit)}disconnectedCallback(){var t;null===(t=document.fonts)||void 0===t||t.removeEventListener("loadingdone",this.refit)}validateValue(t){"string"!=typeof t||""===t?this.errors.addOrReplace({id:"WARN_value",type:"warning",message:"Empty value"}):this.errors.remove("WARN_value")}validateScaling(t){if(null==t||""===t||"none"===t||"auto"===t)return void this.errors.remove("WARN_scale");const n=Number(t);isNaN(n)||n<=0?this.errors.addOrReplace({id:"WARN_scale",type:"warning",message:`Invalid scale value: "${t}". Use "none", "auto", or a positive number.`}):this.errors.remove("WARN_scale")}componentWillLoad(){this.validateValue(this.value),this.validateScaling(this.scale)}prepareStyle(){return this.componentStyle((t=>{var n,i,o,s,e,a,l,r,d,u,c,f,v,h,p,b,g,m,$,w,y,_;return{fontStyles:{font:`${null!==(s=null!==(i=null===(n=t["bn-text"])||void 0===n?void 0:n.fontSizePx)&&void 0!==i?i:null===(o=t.global)||void 0===o?void 0:o.fontSizePx)&&void 0!==s?s:13.3333}px ${null!==(r=null!==(a=null===(e=t["bn-text"])||void 0===e?void 0:e.fontFamily)&&void 0!==a?a:null===(l=t.global)||void 0===l?void 0:l.fontFamily)&&void 0!==r?r:"'Noto Sans', sans-serif"}`,size:null!==(f=null!==(u=null===(d=t["bn-text"])||void 0===d?void 0:d.fontSizePx)&&void 0!==u?u:null===(c=t.global)||void 0===c?void 0:c.fontSizePx)&&void 0!==f?f:13.3333,color:null!==(b=null!==(h=null===(v=t["bn-text"])||void 0===v?void 0:v.fontColor)&&void 0!==h?h:null===(p=t.global)||void 0===p?void 0:p.fontColor)&&void 0!==b?b:"#000000",background:null!==(w=null!==(m=null===(g=t["bn-text"])||void 0===g?void 0:g.fontBackgroundColor)&&void 0!==m?m:null===($=t.global)||void 0===$?void 0:$.fontBackgroundColor)&&void 0!==w?w:"#ffffff",leading:null!==(_=null===(y=t["bn-text"])||void 0===y?void 0:y.leading)&&void 0!==_?_:1.8}}}))}applyScaling(t){const n=this.element,{mode:i,factor:o}=r(this.scale),{width:s,height:e}=l(n),a=n.scrollHeight>n.clientHeight+1?n.clientHeight:e,d=s,u=d>0&&n.scrollWidth>d+1,c=a>0&&n.scrollHeight>a+1,f=u||c;if(d<=0&&a<=0)return;if("none"===i){if(f){const t=[];u&&t.push(`w:${n.scrollWidth}>${Math.round(d)}`),c&&t.push(`h:${n.scrollHeight}>${Math.round(a)}`),this.errors.addOrReplace({id:"WARN_overflow",type:"warning",message:`Content overflows container (${t.join(", ")})`})}else this.errors.remove("WARN_overflow");return}if("factor"===i){if(f){const t=[];u&&t.push(`w:${n.scrollWidth}>${Math.round(d)}`),c&&t.push(`h:${n.scrollHeight}>${Math.round(a)}`),this.errors.addOrReplace({id:"WARN_overflow",type:"warning",message:`Content overflows with factor ${o} (${t.join(", ")})`})}else this.errors.remove("WARN_overflow");return}n.style.setProperty("--bn-font-size",`${t}px`);const v=n.scrollWidth,h=n.scrollHeight,p=n.clientHeight,b=h>p+1?p:e,g=d<=0||v<=d+1,m=b<=0||h<=b+1;if(g&&m)return void this.errors.remove("AUTO_scale");const $=Math.min(1,!g&&d>0?d/v:1,!m&&b>0?b/h:1);n.style.setProperty("--bn-font-size",t*$+"px"),"empty"===i?this.errors.addOrReplace({id:"AUTO_scale",type:"warning",message:`Auto-scaled font by factor ${$.toFixed(3)}`}):this.errors.remove("AUTO_scale")}componentDidRender(){var t;const{html:n,unknown:i}=function(t,n,i){const o=[],s=t=>{o.includes(t)||o.push(t)},e=(t,i,o,e,a)=>{const l=w(w(w(n,null!=i?i:y(o)),String(Number(e))),a);return void 0===l&&s(t),l};return{html:t.replace(g,((t,n,o,a,l,r,d)=>{const u=t.slice(2,-1).trim();try{if(void 0===r){const t=e(u,n,o,a,l);return null==t?"":$(t)}const s=void 0===d?void 0:(t=>{const n={};for(m.lastIndex=0;""!==t.slice(m.lastIndex).trim();){const i=m.exec(t);if(!i)return null;const[,o,s,a,l,r,d,u,c,f]=i;n[null!=o?o:y(s)]=void 0!==a?y(a):void 0!==l?Number(l):e(r,d,u,c,f)}return n})(d);return null===s?t:$(i(y(r),s))}catch(t){return s(u),""}})),unknown:o}}(null!==(t=this.value)&&void 0!==t?t:"",this.data,this.t);i.length>0?this.errors.addOrReplace({id:"WARN_value_path",type:"warning",message:`Unknown template path: ${i.join(", ")}`}):this.errors.remove("WARN_value_path"),this.container.innerHTML=d(n),this.applyScaling(this.prepareStyle().fontStyles.size)}render(){const{fontStyles:t}=this.prepareStyle(),{mode:n,factor:s}=r(this.scale),e="factor"===n?t.size*s+"px":`${t.size}px`,a={"--bn-font-family":t.font.substring(t.font.indexOf("px ")+3),"--bn-font-size":e,"--bn-font-color":t.color,"--bn-font-background":t.background};return i(o,{key:"47eaf1468ffc8b8de7e77f2b0aff4b927f8b0471",style:a},i("div",{key:"1f592c2fd0a4af77047c56ee043f6bdd84dfb2d2"},i("span",{key:"ecad3e6ea36dfa495ef78183fc6c3979eb9d5be2",class:"container",ref:t=>{this.container=t}})))}get element(){return s(this)}static get watchers(){return{value:[{validateValue:0}],scale:[{validateScaling:0}]}}};_.style=':host{padding:0.5em;display:inline-block;position:relative;overflow:hidden;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000);background-color:var(--bn-font-background, white)}span.container p{margin:0}';export{_ as bn_text}
@@ -1 +1 @@
1
- import{r as t,h as s,a as i,g as o}from"./p-GstO_GU5.js";import{w as n,a as e}from"./p-NxJ6P79y.js";import{w as r,a,g as l}from"./p-7pLJBHT2.js";const h=class{constructor(s){t(this,s),n(this),r(this),this.errors=a(this),this.componentStyle=e(this)}connectedCallback(){this.stores=l(this.element)}getFontStyles(){return this.componentStyle((t=>{var s,i,o,n;return{"--bn-font-family":(null===(s=t.global)||void 0===s?void 0:s.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(i=t.global)||void 0===i?void 0:i.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(o=t.global)||void 0===o?void 0:o.fontColor)||"#000000","--bn-font-background":(null===(n=t.global)||void 0===n?void 0:n.fontBackgroundColor)||"#ffffff"}}))}prepareAssetUrl(t){if(null==t||""===t)return"";const s=this.stores.assets.state;return t.startsWith("asset:")?s[t.substring(6)]:s[t]||t}render(){return s(i,{key:"b303581057c183cc27eb13cfdc389c6b008e9172",style:this.getFontStyles()},null!=this.source&&""!==this.source?s("img",{src:this.prepareAssetUrl(this.source)}):"")}get element(){return o(this)}};h.style=":host{display:inline-block;position:relative;overflow:hidden}img{max-width:100%;height:auto}";export{h as bn_image}
1
+ import{r as t,h as s,a as i,g as o}from"./p-GstO_GU5.js";import{w as n,a as e}from"./p-BXkVoFbt.js";import{w as r,a,g as l}from"./p-B6SpWzpW.js";const h=class{constructor(s){t(this,s),n(this),r(this),this.errors=a(this),this.componentStyle=e(this)}connectedCallback(){this.stores=l(this.element)}getFontStyles(){return this.componentStyle((t=>{var s,i,o,n;return{"--bn-font-family":(null===(s=t.global)||void 0===s?void 0:s.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(i=t.global)||void 0===i?void 0:i.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(o=t.global)||void 0===o?void 0:o.fontColor)||"#000000","--bn-font-background":(null===(n=t.global)||void 0===n?void 0:n.fontBackgroundColor)||"#ffffff"}}))}prepareAssetUrl(t){if(null==t||""===t)return"";const s=this.stores.assets.state;return t.startsWith("asset:")?s[t.substring(6)]:s[t]||t}render(){return s(i,{key:"b303581057c183cc27eb13cfdc389c6b008e9172",style:this.getFontStyles()},null!=this.source&&""!==this.source?s("img",{src:this.prepareAssetUrl(this.source)}):"")}get element(){return o(this)}};h.style=":host{display:inline-block;position:relative;overflow:hidden}img{max-width:100%;height:auto}";export{h as bn_image}
@@ -1 +1 @@
1
- import{r as s,h as t,a as e,g as r}from"./p-GstO_GU5.js";import{w as i}from"./p-BL07yV8P.js";import{w as o,a,g as h}from"./p-7pLJBHT2.js";const c=class{constructor(t){s(this,t),this.name="_default",o(this),this.errors=a(this),i(this,(s=>{this.stores||(this.stores=h(this.element));try{const t=JSON.parse(s);this.stores.ruleSets.set(this.name,t),this.errors.remove("ERR_body")}catch(s){this.errors.addOrReplace({id:"ERR_body",type:"error",message:`bn-ruleset: Failed to parse JSON body - ${s.message}`}),console.error(s)}}))}render(){return t(e,{key:"de03c25692178ed0f97c1e0d914396cba7c53cc3"})}get element(){return r(this)}};c.style="bn-ruleset{display:none}";export{c as bn_ruleset}
1
+ import{r as s,h as t,a as e,g as r}from"./p-GstO_GU5.js";import{w as i}from"./p-CZmA8CIL.js";import{w as o,a,g as h}from"./p-B6SpWzpW.js";const c=class{constructor(t){s(this,t),this.name="_default",o(this),this.errors=a(this),i(this,(s=>{this.stores||(this.stores=h(this.element));try{const t=JSON.parse(s);this.stores.ruleSets.set(this.name,t),this.errors.remove("ERR_body")}catch(s){this.errors.addOrReplace({id:"ERR_body",type:"error",message:`bn-ruleset: Failed to parse JSON body - ${s.message}`}),console.error(s)}}))}render(){return t(e,{key:"de03c25692178ed0f97c1e0d914396cba7c53cc3"})}get element(){return r(this)}};c.style="bn-ruleset{display:none}";export{c as bn_ruleset}
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DwBbheYB.js');
4
- var withHasError = require('./withHasError-CZFrIJw0.js');
5
- var withStyled = require('./withStyled-BISQLGLe.js');
6
- var withTranslation = require('./withTranslation-B7T30EVU.js');
7
- var withBodyObserver = require('./withBodyObserver-CIGVLQEB.js');
8
- var localFrame = require('./localFrame-C4RBw_zT.js');
4
+ var withHasError = require('./withHasError-DOXAxUCF.js');
5
+ var withStyled = require('./withStyled-CHR4d8Hl.js');
6
+ var withTranslation = require('./withTranslation-Vuxqw9J7.js');
7
+ var withBodyObserver = require('./withBodyObserver-DhrwVmn_.js');
8
+ var localFrame = require('./localFrame-J1QUlhHH.js');
9
9
  var types = require('./types-BngAWYMW.js');
10
10
  var queryError = require('./queryError-BZjnIW_w.js');
11
11
  var index$1 = require('./index-CM6022qm.js');
@@ -252,8 +252,10 @@ function buildMark(item, box, toBox, em, options = {}) {
252
252
  const caption = item.text == null || whole
253
253
  ? undefined
254
254
  : options.label
255
- ? // right of a value label, so both can be read
256
- { x: box.x + box.width + 0.7 * em + textWidth(item.text, em) / 2, y: box.y + box.height / 2 }
255
+ ? item.textPosition === "above"
256
+ ? { x: box.x + box.width / 2 + 0.5 * em, y: box.y - 0.8 * em }
257
+ : // right of a value label, so both can be read
258
+ { x: box.x + box.width + 0.7 * em + textWidth(item.text, em) / 2, y: box.y + box.height / 2 }
257
259
  : { x: box.x + box.width / 2, y: box.y + Math.min(box.height / 2, Math.max(0.9 * em, 0.3 * box.height)) };
258
260
  const captionBox = caption && {
259
261
  x: caption.x - textWidth(item.text, em) / 2,
@@ -407,7 +409,7 @@ function buildPointer(item, at, em) {
407
409
  * A bracket around a range of rows of a chart with bars from left to right. A line
408
410
  * runs below the last row from `left` to the end of its bar, and from there up to the
409
411
  * end of the bar of the first row. `ends` are the x of the two values. `text` stands
410
- * in a frame at the left, above the first row.
412
+ * in a frame at the left, at half the height of the rows.
411
413
  */
412
414
  function buildBracket(item, first, last, ends, left, text, em) {
413
415
  const firstIsUpper = first.y <= last.y;
@@ -420,7 +422,8 @@ function buildBracket(item, first, last, ends, left, text, em) {
420
422
  [upperEnd, upper.y - 0.1 * em],
421
423
  ];
422
424
  const width = text ? textWidth(text, em) : 0;
423
- const captionY = upper.y - 0.9 * em;
425
+ // beside the rows, at half their height
426
+ const captionY = (upper.y + lower.y + lower.height) / 2;
424
427
  const caption = text ? { x: left + 0.5 * em + width / 2, y: captionY, text } : undefined;
425
428
  // the number stands behind the text, or in its place
426
429
  const badgeX = caption ? caption.x + width / 2 + 1.2 * em : left + 0.65 * em;
@@ -963,9 +966,13 @@ const AnnotationLayer = class {
963
966
  }
964
967
  }
965
968
  renderBadge(badge, color) {
969
+ var _a;
966
970
  if (!badge)
967
971
  return null;
968
- return (index.h("g", null, index.h("circle", { cx: badge.cx, cy: badge.cy, r: badge.r, style: { fill: color } }), badge.label != null ? (index.h("text", { class: "badge-text", x: badge.cx, y: badge.cy, style: { fontSize: `${badge.r * 1.1}px` } }, badge.label)) : null));
972
+ const outlined = ((_a = this.componentStyle(($) => $["bn-annotation"])) === null || _a === void 0 ? void 0 : _a.markerStyle) === "outlined";
973
+ // the ring lies inside the radius, so both styles take the same room
974
+ const circle = outlined ? (index.h("circle", { cx: badge.cx, cy: badge.cy, r: badge.r - 0.75, style: { fill: "#ffffff", stroke: color, strokeWidth: "1.5" } })) : (index.h("circle", { cx: badge.cx, cy: badge.cy, r: badge.r, style: { fill: color } }));
975
+ return (index.h("g", null, circle, badge.label != null ? (index.h("text", { class: "badge-text", x: badge.cx, y: badge.cy, style: Object.assign({ fontSize: `${badge.r * 1.1}px` }, (outlined ? { fill: color } : {})) }, badge.label)) : null));
969
976
  }
970
977
  renderMark(mark) {
971
978
  var _a, _b, _e, _f, _g;
@@ -989,7 +996,7 @@ const AnnotationLayer = class {
989
996
  return (index.h("g", { class: "mark arrow", "data-label": (_g = mark.badge) === null || _g === void 0 ? void 0 : _g.label }, index.h("line", { x1: mark.x1, y1: mark.y1, x2: mark.x2, y2: mark.y2, style: { stroke: color, strokeWidth: "1.5" } }), index.h("polygon", { points: mark.head, style: { fill: color } }), this.renderBadge(mark.badge, color)));
990
997
  }
991
998
  render() {
992
- return (index.h(index.Host, { key: '3b82cff435bdbabe51cdb7581afef428a16716b0' }, index.h("svg", { key: '0613bd3ecb59150c6959c9f96322b0f3eafc6164', ref: (el) => (this.svg = el) }, this.marks.map((mark) => this.renderMark(mark)))));
999
+ return (index.h(index.Host, { key: '370b2e099f2316d584f40b02b417576ecc541291' }, index.h("svg", { key: 'ba77a53b8fe0b9dbabe25d070a87a1841ed19998', ref: (el) => (this.svg = el) }, this.marks.map((mark) => this.renderMark(mark)))));
993
1000
  }
994
1001
  get element() { return index.getElement(this); }
995
1002
  static get watchers() { return {
@@ -1033,9 +1040,13 @@ const AnnotationList = class {
1033
1040
  else {
1034
1041
  this.errors.addOrReplace({ id: "ERR_items", type: "error", message: "items: not a JSON array of objects." });
1035
1042
  }
1036
- const color = annotationColor(undefined, this.componentStyle(($) => $["bn-annotation"]));
1043
+ const style = this.componentStyle(($) => $["bn-annotation"]);
1044
+ const color = annotationColor(undefined, style);
1045
+ const badgeStyle = (style === null || style === void 0 ? void 0 : style.markerStyle) === "outlined"
1046
+ ? { background: "#ffffff", color, boxShadow: `inset 0 0 0 1.5px ${color}` }
1047
+ : { background: color };
1037
1048
  const unplaced = (_b = (_a = this.stores) === null || _a === void 0 ? void 0 : _a.annotationsUnplaced.state[this.pageKey]) !== null && _b !== void 0 ? _b : [];
1038
- return (index.h(index.Host, { key: '69a1cb7ec4623dd722328638b93fa2ac05775dcf' }, index.h("ol", { key: 'cc7925db54a9015cd774242487967e25d0eb1dc0' }, (items !== null && items !== void 0 ? items : []).map((item) => (index.h("li", null, item.label != null && !unplaced.includes(item.label) ? (index.h("div", { class: "badge", style: { background: color } }, index.h("span", null, item.label))) : item.label != null ? (
1049
+ return (index.h(index.Host, { key: 'ec249c8259923180f4bd30b8c712c0614a758911' }, index.h("ol", { key: '6e8cbbe5a5841c8707081f9452b11c3971cecd03' }, (items !== null && items !== void 0 ? items : []).map((item) => (index.h("li", null, item.label != null && !unplaced.includes(item.label) ? (index.h("div", { class: "badge", style: badgeStyle }, index.h("span", null, item.label))) : item.label != null ? (
1039
1050
  // keeps the room of the circle: a list that changes its height can move the marked element, and with it the answer
1040
1051
  index.h("div", { class: "badge-space" })) : null, index.h("div", { class: "text" }, item.title ? index.h("span", { class: "title" }, item.title, " ") : null, item.html ? index.h("span", { innerHTML: withTranslation.sanitizeHtml(item.html) }) : null)))))));
1041
1052
  }
@@ -1403,7 +1414,7 @@ function collectChartSegmentElements(svgRoot, segment, origins) {
1403
1414
  });
1404
1415
  ["DATA", "SCENARIO"].forEach((prefix) => {
1405
1416
  svgRoot.querySelectorAll(`g[id$="_${prefix}_Label"]`).forEach((group, walkIndex) => {
1406
- var _a, _b, _c;
1417
+ var _a, _b, _c, _d;
1407
1418
  if (hasClass$1(group, "hide"))
1408
1419
  return;
1409
1420
  const text = (_b = (_a = group.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : "";
@@ -1417,14 +1428,14 @@ function collectChartSegmentElements(svgRoot, segment, origins) {
1417
1428
  text,
1418
1429
  segment,
1419
1430
  index: (_c = indexOfGroup(group.id)) !== null && _c !== void 0 ? _c : walkIndex,
1420
- rect: localFrame.measure(group, origins),
1431
+ rect: localFrame.measure((_d = group.querySelector("text")) !== null && _d !== void 0 ? _d : group, origins),
1421
1432
  point: readLayoutPoint(group),
1422
1433
  };
1423
1434
  elements.push(label);
1424
1435
  });
1425
1436
  });
1426
1437
  svgRoot.querySelectorAll("[data-bn-part]").forEach((el, walkIndex) => {
1427
- var _a, _b, _c;
1438
+ var _a, _b, _c, _d;
1428
1439
  if (collected.has(el))
1429
1440
  return;
1430
1441
  const point = readLayoutPoint(el);
@@ -1447,7 +1458,7 @@ function collectChartSegmentElements(svgRoot, segment, origins) {
1447
1458
  text: (_c = (_b = el.textContent) === null || _b === void 0 ? void 0 : _b.trim()) !== null && _c !== void 0 ? _c : "",
1448
1459
  segment,
1449
1460
  index,
1450
- rect: localFrame.measure(el, origins),
1461
+ rect: localFrame.measure((_d = el.querySelector("text")) !== null && _d !== void 0 ? _d : el, origins),
1451
1462
  point,
1452
1463
  };
1453
1464
  elements.push(label);
@@ -15523,6 +15534,7 @@ const Chart$1 = class Chart {
15523
15534
  barStyles: $["bn-chart-structure"]["barStyles"],
15524
15535
  varianceStyles: $["bn-chart-structure"]["varianceStyles"],
15525
15536
  stackColors: $["bn-chart-structure"]["stackColors"],
15537
+ titleBold: $["bn-chart-structure"]["titleBold"],
15526
15538
  padding: $["bn-chart-structure"]["padding"],
15527
15539
  pattern: null,
15528
15540
  };
@@ -15794,7 +15806,7 @@ const Chart$1 = class Chart {
15794
15806
  this.errors.remove("WARN_scenarios_none");
15795
15807
  }
15796
15808
  const fontStyles = this.getFontStyles();
15797
- return (index.h(index.Host, { key: '02236359d67ec2095ac560152cc6feaa8661834a', style: fontStyles }, index.h("div", { key: '5eb4e74f27fb0c4c5ffd286ee266ceb51eae68bf', class: "container" }, scenariosArray.map(this.chartTemplate))));
15809
+ return (index.h(index.Host, { key: 'edc57c044c2e0f55c3491a96ca102731de2baaab', style: fontStyles }, index.h("div", { key: 'a653beef4add78d3fef7673003c18a548b58fec1', class: "container" }, scenariosArray.map(this.chartTemplate))));
15798
15810
  }
15799
15811
  get element() { return index.getElement(this); }
15800
15812
  static get watchers() { return {
@@ -16751,6 +16763,7 @@ class StructureChartStyle {
16751
16763
  this.padding = padding;
16752
16764
  this.pattern = new Map();
16753
16765
  this.stackColors = ["#000000", "#c0c0c0", "#808080"];
16766
+ this.titleBold = false;
16754
16767
  /** Locale for number labels. */
16755
16768
  this.locale = "de";
16756
16769
  }
@@ -16788,6 +16801,7 @@ class StructureChartStylesAdapter {
16788
16801
  if (Array.isArray(data.stackColors) && data.stackColors.length > 0) {
16789
16802
  styles.stackColors = data.stackColors;
16790
16803
  }
16804
+ styles.titleBold = data.titleBold === true;
16791
16805
  styles.pattern = new MarkerPattern$1(styles.fontStyles.size).createPatternMapForStructureBar();
16792
16806
  }
16793
16807
  return styles;
@@ -17123,7 +17137,7 @@ let Axis$1 = class Axis {
17123
17137
  this.labelText = axis.labelText || null;
17124
17138
  this.position = position;
17125
17139
  this.style = style;
17126
- this.label = new Label(svgParentGroup, this.position.getAxisTitlePositionX(), this.position.getAxisTitlePositionY(), this.ID_AXIS_TITLE, this.labelText, this.style, HookLocation.Bottom, HookLocation.Center);
17140
+ this.label = new Label(svgParentGroup, this.position.getAxisTitlePositionX(), this.position.getAxisTitlePositionY(), this.ID_AXIS_TITLE, this.labelText, this.style, HookLocation.Bottom, HookLocation.Center).setEmphasis(this.style.titleBold, false);
17127
17141
  this.svgGroup = svgParentGroup.group().id(this.ID_AXIS);
17128
17142
  }
17129
17143
  draw() {
@@ -18464,6 +18478,7 @@ class StructureChart {
18464
18478
  const width = CalculateSize(this.title.length > tmpTitle.length ? this.title : tmpTitle, {
18465
18479
  font: this.styles.fontStyles.font,
18466
18480
  fontSize: this.styles.fontStyles.size + "px",
18481
+ fontWeight: this.styles.titleBold ? "bold" : "normal",
18467
18482
  }).width;
18468
18483
  if (width < minWidth) {
18469
18484
  return minWidth;
@@ -2,9 +2,9 @@
2
2
 
3
3
  var index = require('./index-DwBbheYB.js');
4
4
  var types = require('./types-BngAWYMW.js');
5
- var localFrame = require('./localFrame-C4RBw_zT.js');
6
- var withHasError = require('./withHasError-CZFrIJw0.js');
7
- var withStyled = require('./withStyled-BISQLGLe.js');
5
+ var localFrame = require('./localFrame-J1QUlhHH.js');
6
+ var withHasError = require('./withHasError-DOXAxUCF.js');
7
+ var withStyled = require('./withStyled-CHR4d8Hl.js');
8
8
 
9
9
  /**
10
10
  * Header configuration types and parsing utilities for bn-grid component.
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DwBbheYB.js');
4
- var withStyled = require('./withStyled-BISQLGLe.js');
5
- var withHasError = require('./withHasError-CZFrIJw0.js');
4
+ var withStyled = require('./withStyled-CHR4d8Hl.js');
5
+ var withHasError = require('./withHasError-DOXAxUCF.js');
6
6
 
7
7
  const bnImageCss = () => `:host{display:inline-block;position:relative;overflow:hidden}img{max-width:100%;height:auto}`;
8
8
 
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DwBbheYB.js');
4
- var withBodyObserver = require('./withBodyObserver-CIGVLQEB.js');
5
- var withHasError = require('./withHasError-CZFrIJw0.js');
4
+ var withBodyObserver = require('./withBodyObserver-DhrwVmn_.js');
5
+ var withHasError = require('./withHasError-DOXAxUCF.js');
6
6
  var queryError = require('./queryError-BZjnIW_w.js');
7
7
 
8
8
  const bnInternationalizationCss = () => `bn-internationalization{display:none}`;
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DwBbheYB.js');
4
- var withBodyObserver = require('./withBodyObserver-CIGVLQEB.js');
5
- var withHasError = require('./withHasError-CZFrIJw0.js');
4
+ var withBodyObserver = require('./withBodyObserver-DhrwVmn_.js');
5
+ var withHasError = require('./withHasError-DOXAxUCF.js');
6
6
 
7
7
  const bnRulesetCss = () => `bn-ruleset{display:none}`;
8
8
 
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DwBbheYB.js');
4
- var withTranslation = require('./withTranslation-B7T30EVU.js');
5
- var withHasError = require('./withHasError-CZFrIJw0.js');
6
- var withStyled = require('./withStyled-BISQLGLe.js');
4
+ var withTranslation = require('./withTranslation-Vuxqw9J7.js');
5
+ var withHasError = require('./withHasError-DOXAxUCF.js');
6
+ var withStyled = require('./withStyled-CHR4d8Hl.js');
7
7
 
8
8
  const NAME = "[A-Za-z_$\\u00C0-\\uFFFF][\\w$\\u00C0-\\uFFFF]*";
9
9
  const STRING = `'[^'\\\\]*'|"[^"\\\\]*"`;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var withHasError = require('./withHasError-CZFrIJw0.js');
3
+ var withHasError = require('./withHasError-DOXAxUCF.js');
4
4
 
5
5
  const round2 = (value) => Math.round(value * 100) / 100;
6
6
  /** Converts a viewport rect into a rounded {@link LayoutRect}. */
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DwBbheYB.js');
4
- var withHasError = require('./withHasError-CZFrIJw0.js');
4
+ var withHasError = require('./withHasError-DOXAxUCF.js');
5
5
 
6
6
  /**
7
7
  * Mixin that observes changes to a component's text content.
@@ -471,6 +471,7 @@ const SYSTEM_STYLE_DEFAULTS = {
471
471
  neu: { stroke: "#808080", fill: "#808080", width: 0.1 },
472
472
  },
473
473
  stackColors: ["#000000", "#c0c0c0", "#808080"],
474
+ titleBold: false,
474
475
  padding: {
475
476
  top: 10,
476
477
  left: 10,
@@ -540,6 +541,7 @@ const SYSTEM_STYLE_DEFAULTS = {
540
541
  "bn-annotation": {
541
542
  color: "#0070c0",
542
543
  colors: { negative: "#ff0000", positive: "#008f96" },
544
+ markerStyle: "filled",
543
545
  },
544
546
  };
545
547
  /** Keys that are optional, so the defaults do not list them. */
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DwBbheYB.js');
4
- var withHasError = require('./withHasError-CZFrIJw0.js');
4
+ var withHasError = require('./withHasError-DOXAxUCF.js');
5
5
 
6
6
  const isObject = (obj) => {
7
7
  if (typeof obj === 'object' && obj !== null) {
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var withHasError = require('./withHasError-CZFrIJw0.js');
3
+ var withHasError = require('./withHasError-DOXAxUCF.js');
4
4
  var index = require('./index-DwBbheYB.js');
5
- var withStyled = require('./withStyled-BISQLGLe.js');
5
+ var withStyled = require('./withStyled-CHR4d8Hl.js');
6
6
 
7
7
  const ALLOWED_TAGS = new Set([
8
8
  "br",
@@ -519,9 +519,13 @@ export class AnnotationLayer {
519
519
  }
520
520
  }
521
521
  renderBadge(badge, color) {
522
+ var _a;
522
523
  if (!badge)
523
524
  return null;
524
- return (h("g", null, h("circle", { cx: badge.cx, cy: badge.cy, r: badge.r, style: { fill: color } }), badge.label != null ? (h("text", { class: "badge-text", x: badge.cx, y: badge.cy, style: { fontSize: `${badge.r * 1.1}px` } }, badge.label)) : null));
525
+ const outlined = ((_a = this.componentStyle(($) => $["bn-annotation"])) === null || _a === void 0 ? void 0 : _a.markerStyle) === "outlined";
526
+ // the ring lies inside the radius, so both styles take the same room
527
+ const circle = outlined ? (h("circle", { cx: badge.cx, cy: badge.cy, r: badge.r - 0.75, style: { fill: "#ffffff", stroke: color, strokeWidth: "1.5" } })) : (h("circle", { cx: badge.cx, cy: badge.cy, r: badge.r, style: { fill: color } }));
528
+ return (h("g", null, circle, badge.label != null ? (h("text", { class: "badge-text", x: badge.cx, y: badge.cy, style: Object.assign({ fontSize: `${badge.r * 1.1}px` }, (outlined ? { fill: color } : {})) }, badge.label)) : null));
525
529
  }
526
530
  renderMark(mark) {
527
531
  var _a, _b, _e, _f, _g;
@@ -545,7 +549,7 @@ export class AnnotationLayer {
545
549
  return (h("g", { class: "mark arrow", "data-label": (_g = mark.badge) === null || _g === void 0 ? void 0 : _g.label }, h("line", { x1: mark.x1, y1: mark.y1, x2: mark.x2, y2: mark.y2, style: { stroke: color, strokeWidth: "1.5" } }), h("polygon", { points: mark.head, style: { fill: color } }), this.renderBadge(mark.badge, color)));
546
550
  }
547
551
  render() {
548
- return (h(Host, { key: '3b82cff435bdbabe51cdb7581afef428a16716b0' }, h("svg", { key: '0613bd3ecb59150c6959c9f96322b0f3eafc6164', ref: (el) => (this.svg = el) }, this.marks.map((mark) => this.renderMark(mark)))));
552
+ return (h(Host, { key: '370b2e099f2316d584f40b02b417576ecc541291' }, h("svg", { key: 'ba77a53b8fe0b9dbabe25d070a87a1841ed19998', ref: (el) => (this.svg = el) }, this.marks.map((mark) => this.renderMark(mark)))));
549
553
  }
550
554
  static get is() { return "bn-annotation-layer"; }
551
555
  static get encapsulation() { return "shadow"; }