@sisense/sdk-ui 2.16.0 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/ai.cjs +54 -54
  2. package/dist/ai.js +779 -741
  3. package/dist/analytics-composer/node.cjs +1 -1
  4. package/dist/analytics-composer/node.js +421 -384
  5. package/dist/analytics-composer.cjs +1 -1
  6. package/dist/analytics-composer.js +6 -6
  7. package/dist/{derive-chart-family-d7eaC45K.cjs → derive-chart-family-B_cR1yhw.cjs} +3 -3
  8. package/dist/{derive-chart-family-DLwnWblo.js → derive-chart-family-DkuTQGOE.js} +333 -333
  9. package/dist/{dimensions-BUWtZxix.cjs → dimensions-DI9h9IJH.cjs} +1 -1
  10. package/dist/{dimensions-DvDgZ8RW.js → dimensions-Gma5tFmd.js} +1 -1
  11. package/dist/execute-query-CdhSHTTA.cjs +1 -0
  12. package/dist/{execute-query-CFK2R_1S.js → execute-query-l7jejslh.js} +867 -865
  13. package/dist/index.cjs +970 -246
  14. package/dist/index.js +70584 -18085
  15. package/dist/index.umd.js +1269 -1267
  16. package/dist/packages/sdk-ui/src/ai/get-nlg-insights-from-widget.d.ts +46 -0
  17. package/dist/packages/sdk-ui/src/ai/index.d.ts +1 -0
  18. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/common.d.ts +2 -1
  19. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/process-function/filter-processors.d.ts +0 -9
  20. package/dist/packages/sdk-ui/src/analytics-composer/nlq-v3-translator/types.d.ts +1 -1
  21. package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +2 -2
  22. package/dist/packages/sdk-ui/src/api/rest-api.d.ts +1 -1
  23. package/dist/packages/sdk-ui/src/app/client-application.d.ts +5 -5
  24. package/dist/packages/sdk-ui/src/chart-options-processor/data-points.d.ts +3 -4
  25. package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd.d.ts +1 -2
  26. package/dist/packages/sdk-ui/src/data-source-dimensional-model/hooks/use-get-data-source-dimensions.d.ts +78 -0
  27. package/dist/packages/sdk-ui/src/data-source-dimensional-model/hooks/use-get-data-source-fields.d.ts +23 -0
  28. package/dist/packages/sdk-ui/src/data-source-dimensional-model/index.d.ts +2 -0
  29. package/dist/packages/sdk-ui/src/index.d.ts +1 -1
  30. package/dist/packages/sdk-ui/src/models/widget/widget-model-translator/widget-model-translator.d.ts +4 -1
  31. package/dist/packages/sdk-ui/src/pivot-table/formatters/data-cell-formatters/data-cell-color-formatter.d.ts +2 -1
  32. package/dist/packages/sdk-ui/src/pivot-table/formatters/formatter-utils.d.ts +2 -1
  33. package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-totals-formatter.d.ts +1 -1
  34. package/dist/packages/sdk-ui/src/pivot-table/formatters/types.d.ts +2 -1
  35. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-formatting.d.ts +1 -1
  36. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-get-pivot-table-query.d.ts +1 -1
  37. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-builder.d.ts +1 -1
  38. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-client.d.ts +8 -0
  39. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-data-loading.d.ts +2 -1
  40. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-pivot-data-service.d.ts +2 -1
  41. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +1 -1
  42. package/dist/packages/sdk-ui/src/pivot-table/pivot-table.d.ts +32 -2
  43. package/dist/packages/sdk-ui/src/pivot-table/sorting-utils.d.ts +1 -1
  44. package/dist/packages/sdk-ui/src/props.d.ts +11 -0
  45. package/dist/packages/sdk-ui/src/query-execution/use-execute-pivot-query.d.ts +0 -1
  46. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +1 -1
  47. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +2 -2
  48. package/dist/packages/sdk-ui/src/types.d.ts +40 -25
  49. package/dist/packages/sdk-ui/src/widgets/pivot-table-widget.d.ts +19 -1
  50. package/dist/{types-Clbnx4mQ.cjs → types-Hki4GrUY.cjs} +1 -1
  51. package/dist/{types-D1mqt0Mg.js → types-ofTjqFFK.js} +1 -1
  52. package/dist/use-common-filters-Bh4KYWy_.cjs +604 -0
  53. package/dist/use-common-filters-D5yiZCTg.js +56547 -0
  54. package/dist/{widget-composer-Dhl_nmhq.js → widget-composer-By61s921.js} +3 -3
  55. package/dist/{widget-composer-BaOTPn5w.cjs → widget-composer-BzzTf8UH.cjs} +1 -1
  56. package/package.json +8 -7
  57. package/dist/execute-query-CB4XfUng.cjs +0 -1
  58. package/dist/packages/sdk-ui/src/common/hooks/fusion-endpoints/use-get-data-source-fields.d.ts +0 -17
  59. package/dist/use-common-filters-CkQznSEt.cjs +0 -1325
  60. package/dist/use-common-filters-CxoO7TzT.js +0 -103390
@@ -1,4 +1,4 @@
1
- "use strict";var Gs=Object.defineProperty,Hs=Object.defineProperties;var xs=Object.getOwnPropertyDescriptors;var ve=Object.getOwnPropertySymbols;var Rt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable;var at=(s,e)=>(e=Symbol[s])?e:Symbol.for("Symbol."+s),zs=s=>{throw TypeError(s)};var ct=(s,e,t)=>e in s?Gs(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,U=(s,e)=>{for(var t in e||(e={}))Rt.call(e,t)&&ct(s,t,e[t]);if(ve)for(var t of ve(e))Ut.call(e,t)&&ct(s,t,e[t]);return s},H=(s,e)=>Hs(s,xs(e));var Vt=(s,e)=>{var t={};for(var n in s)Rt.call(s,n)&&e.indexOf(n)<0&&(t[n]=s[n]);if(s!=null&&ve)for(var n of ve(s))e.indexOf(n)<0&&Ut.call(s,n)&&(t[n]=s[n]);return t};var ft=(s,e,t)=>ct(s,typeof e!="symbol"?e+"":e,t);var ut=(s,e,t)=>new Promise((n,i)=>{var r=a=>{try{l(t.next(a))}catch(c){i(c)}},o=a=>{try{l(t.throw(a))}catch(c){i(c)}},l=a=>a.done?n(a.value):Promise.resolve(a.value).then(r,o);l((t=t.apply(s,e)).next())}),Xs=function(s,e){this[0]=s,this[1]=e};var d=s=>{var e=s[at("asyncIterator")],t=!1,n,i={};return e==null?(e=s[at("iterator")](),n=r=>i[r]=o=>e[r](o)):(e=e.call(s),n=r=>i[r]=o=>{if(t){if(t=!1,r==="throw")throw o;return o}return t=!0,{done:!1,value:new Xs(new Promise(l=>{var a=e[r](o);a instanceof Object||zs("Object expected"),l(a)}),1)}}),i[at("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=r=>{throw r},"return"in e&&n("return"),i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./types-Clbnx4mQ.cjs"),T=require("./widget-composer-BaOTPn5w.cjs"),Ve=require("./derive-chart-family-d7eaC45K.cjs"),Et=require("./analytics-composer/node.cjs"),Pe=require("./execute-query-CB4XfUng.cjs"),It=Symbol.for("yaml.alias"),wt=Symbol.for("yaml.document"),x=Symbol.for("yaml.map"),ss=Symbol.for("yaml.pair"),G=Symbol.for("yaml.scalar"),ge=Symbol.for("yaml.seq"),R=Symbol.for("yaml.node.type"),re=s=>!!s&&typeof s=="object"&&s[R]===It,be=s=>!!s&&typeof s=="object"&&s[R]===wt,we=s=>!!s&&typeof s=="object"&&s[R]===x,C=s=>!!s&&typeof s=="object"&&s[R]===ss,A=s=>!!s&&typeof s=="object"&&s[R]===G,Se=s=>!!s&&typeof s=="object"&&s[R]===ge;function _(s){if(s&&typeof s=="object")switch(s[R]){case x:case ge:return!0}return!1}function v(s){if(s&&typeof s=="object")switch(s[R]){case It:case x:case G:case ge:return!0}return!1}const Zs=s=>(A(s)||_(s))&&!!s.anchor,q=Symbol("break visit"),ns=Symbol("skip children"),Q=Symbol("remove node");function z(s,e){const t=is(e);be(s)?ce(null,s.contents,t,Object.freeze([s]))===Q&&(s.contents=null):ce(null,s,t,Object.freeze([]))}z.BREAK=q;z.SKIP=ns;z.REMOVE=Q;function ce(s,e,t,n){const i=rs(s,e,t,n);if(v(i)||C(i))return os(s,n,i),ce(s,i,t,n);if(typeof i!="symbol"){if(_(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){const o=ce(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===q)return q;o===Q&&(e.items.splice(r,1),r-=1)}}}else if(C(e)){n=Object.freeze(n.concat(e));const r=ce("key",e.key,t,n);if(r===q)return q;r===Q&&(e.key=null);const o=ce("value",e.value,t,n);if(o===q)return q;o===Q&&(e.value=null)}}return i}function Ge(s,e){return ut(this,null,function*(){const t=is(e);be(s)?(yield fe(null,s.contents,t,Object.freeze([s])))===Q&&(s.contents=null):yield fe(null,s,t,Object.freeze([]))})}Ge.BREAK=q;Ge.SKIP=ns;Ge.REMOVE=Q;function fe(s,e,t,n){return ut(this,null,function*(){const i=yield rs(s,e,t,n);if(v(i)||C(i))return os(s,n,i),fe(s,i,t,n);if(typeof i!="symbol"){if(_(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){const o=yield fe(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===q)return q;o===Q&&(e.items.splice(r,1),r-=1)}}}else if(C(e)){n=Object.freeze(n.concat(e));const r=yield fe("key",e.key,t,n);if(r===q)return q;r===Q&&(e.key=null);const o=yield fe("value",e.value,t,n);if(o===q)return q;o===Q&&(e.value=null)}}return i})}function is(s){return typeof s=="object"&&(s.Collection||s.Node||s.Value)?Object.assign({Alias:s.Node,Map:s.Node,Scalar:s.Node,Seq:s.Node},s.Value&&{Map:s.Value,Scalar:s.Value,Seq:s.Value},s.Collection&&{Map:s.Collection,Seq:s.Collection},s):s}function rs(s,e,t,n){var i,r,o,l,a;if(typeof t=="function")return t(s,e,n);if(we(e))return(i=t.Map)==null?void 0:i.call(t,s,e,n);if(Se(e))return(r=t.Seq)==null?void 0:r.call(t,s,e,n);if(C(e))return(o=t.Pair)==null?void 0:o.call(t,s,e,n);if(A(e))return(l=t.Scalar)==null?void 0:l.call(t,s,e,n);if(re(e))return(a=t.Alias)==null?void 0:a.call(t,s,e,n)}function os(s,e,t){const n=e[e.length-1];if(_(n))n.items[s]=t;else if(C(n))s==="key"?n.key=t:n.value=t;else if(be(n))n.contents=t;else{const i=re(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const en={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},tn=s=>s.replace(/[!,[\]{}]/g,e=>en[e]);class j{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},j.defaultYaml,e),this.tags=Object.assign({},j.defaultTags,t)}clone(){const e=new j(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new j(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:j.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},j.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:j.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},j.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),i=n.shift();switch(i){case"%TAG":{if(n.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[r,o]=n;return this.tags[r]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;const[r]=n;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{const o=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,o),!1}}default:return t(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),o)}const[,n,i]=e.match(new RegExp("^(.*!)([^!]*)$","s"));i||t(`The ${e} tag has no suffix`);const r=this.tags[n];if(r)try{return r+decodeURIComponent(i)}catch(o){return t(String(o)),null}return n==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+tn(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let i;if(e&&n.length>0&&v(e.contents)){const r={};z(e.contents,(o,l)=>{v(l)&&l.tag&&(r[l.tag]=!0)}),i=Object.keys(r)}else i=[];for(const[r,o]of n)r==="!!"&&o==="tag:yaml.org,2002:"||(!e||i.some(l=>l.startsWith(o)))&&t.push(`%TAG ${r} ${o}`);return t.join(`
1
+ "use strict";var Gs=Object.defineProperty,Hs=Object.defineProperties;var xs=Object.getOwnPropertyDescriptors;var ve=Object.getOwnPropertySymbols;var Rt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable;var at=(s,e)=>(e=Symbol[s])?e:Symbol.for("Symbol."+s),zs=s=>{throw TypeError(s)};var ct=(s,e,t)=>e in s?Gs(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,U=(s,e)=>{for(var t in e||(e={}))Rt.call(e,t)&&ct(s,t,e[t]);if(ve)for(var t of ve(e))Ut.call(e,t)&&ct(s,t,e[t]);return s},H=(s,e)=>Hs(s,xs(e));var Vt=(s,e)=>{var t={};for(var n in s)Rt.call(s,n)&&e.indexOf(n)<0&&(t[n]=s[n]);if(s!=null&&ve)for(var n of ve(s))e.indexOf(n)<0&&Ut.call(s,n)&&(t[n]=s[n]);return t};var ft=(s,e,t)=>ct(s,typeof e!="symbol"?e+"":e,t);var ut=(s,e,t)=>new Promise((n,i)=>{var r=a=>{try{l(t.next(a))}catch(c){i(c)}},o=a=>{try{l(t.throw(a))}catch(c){i(c)}},l=a=>a.done?n(a.value):Promise.resolve(a.value).then(r,o);l((t=t.apply(s,e)).next())}),Xs=function(s,e){this[0]=s,this[1]=e};var d=s=>{var e=s[at("asyncIterator")],t=!1,n,i={};return e==null?(e=s[at("iterator")](),n=r=>i[r]=o=>e[r](o)):(e=e.call(s),n=r=>i[r]=o=>{if(t){if(t=!1,r==="throw")throw o;return o}return t=!0,{done:!1,value:new Xs(new Promise(l=>{var a=e[r](o);a instanceof Object||zs("Object expected"),l(a)}),1)}}),i[at("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=r=>{throw r},"return"in e&&n("return"),i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./types-Hki4GrUY.cjs"),T=require("./widget-composer-BzzTf8UH.cjs"),Ve=require("./derive-chart-family-B_cR1yhw.cjs"),Et=require("./analytics-composer/node.cjs"),Pe=require("./execute-query-CdhSHTTA.cjs"),It=Symbol.for("yaml.alias"),wt=Symbol.for("yaml.document"),x=Symbol.for("yaml.map"),ss=Symbol.for("yaml.pair"),G=Symbol.for("yaml.scalar"),ge=Symbol.for("yaml.seq"),R=Symbol.for("yaml.node.type"),re=s=>!!s&&typeof s=="object"&&s[R]===It,be=s=>!!s&&typeof s=="object"&&s[R]===wt,we=s=>!!s&&typeof s=="object"&&s[R]===x,C=s=>!!s&&typeof s=="object"&&s[R]===ss,A=s=>!!s&&typeof s=="object"&&s[R]===G,Se=s=>!!s&&typeof s=="object"&&s[R]===ge;function _(s){if(s&&typeof s=="object")switch(s[R]){case x:case ge:return!0}return!1}function v(s){if(s&&typeof s=="object")switch(s[R]){case It:case x:case G:case ge:return!0}return!1}const Zs=s=>(A(s)||_(s))&&!!s.anchor,q=Symbol("break visit"),ns=Symbol("skip children"),Q=Symbol("remove node");function z(s,e){const t=is(e);be(s)?ce(null,s.contents,t,Object.freeze([s]))===Q&&(s.contents=null):ce(null,s,t,Object.freeze([]))}z.BREAK=q;z.SKIP=ns;z.REMOVE=Q;function ce(s,e,t,n){const i=rs(s,e,t,n);if(v(i)||C(i))return os(s,n,i),ce(s,i,t,n);if(typeof i!="symbol"){if(_(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){const o=ce(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===q)return q;o===Q&&(e.items.splice(r,1),r-=1)}}}else if(C(e)){n=Object.freeze(n.concat(e));const r=ce("key",e.key,t,n);if(r===q)return q;r===Q&&(e.key=null);const o=ce("value",e.value,t,n);if(o===q)return q;o===Q&&(e.value=null)}}return i}function Ge(s,e){return ut(this,null,function*(){const t=is(e);be(s)?(yield fe(null,s.contents,t,Object.freeze([s])))===Q&&(s.contents=null):yield fe(null,s,t,Object.freeze([]))})}Ge.BREAK=q;Ge.SKIP=ns;Ge.REMOVE=Q;function fe(s,e,t,n){return ut(this,null,function*(){const i=yield rs(s,e,t,n);if(v(i)||C(i))return os(s,n,i),fe(s,i,t,n);if(typeof i!="symbol"){if(_(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){const o=yield fe(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===q)return q;o===Q&&(e.items.splice(r,1),r-=1)}}}else if(C(e)){n=Object.freeze(n.concat(e));const r=yield fe("key",e.key,t,n);if(r===q)return q;r===Q&&(e.key=null);const o=yield fe("value",e.value,t,n);if(o===q)return q;o===Q&&(e.value=null)}}return i})}function is(s){return typeof s=="object"&&(s.Collection||s.Node||s.Value)?Object.assign({Alias:s.Node,Map:s.Node,Scalar:s.Node,Seq:s.Node},s.Value&&{Map:s.Value,Scalar:s.Value,Seq:s.Value},s.Collection&&{Map:s.Collection,Seq:s.Collection},s):s}function rs(s,e,t,n){var i,r,o,l,a;if(typeof t=="function")return t(s,e,n);if(we(e))return(i=t.Map)==null?void 0:i.call(t,s,e,n);if(Se(e))return(r=t.Seq)==null?void 0:r.call(t,s,e,n);if(C(e))return(o=t.Pair)==null?void 0:o.call(t,s,e,n);if(A(e))return(l=t.Scalar)==null?void 0:l.call(t,s,e,n);if(re(e))return(a=t.Alias)==null?void 0:a.call(t,s,e,n)}function os(s,e,t){const n=e[e.length-1];if(_(n))n.items[s]=t;else if(C(n))s==="key"?n.key=t:n.value=t;else if(be(n))n.contents=t;else{const i=re(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const en={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},tn=s=>s.replace(/[!,[\]{}]/g,e=>en[e]);class j{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},j.defaultYaml,e),this.tags=Object.assign({},j.defaultTags,t)}clone(){const e=new j(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new j(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:j.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},j.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:j.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},j.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),i=n.shift();switch(i){case"%TAG":{if(n.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[r,o]=n;return this.tags[r]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;const[r]=n;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{const o=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,o),!1}}default:return t(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),o)}const[,n,i]=e.match(new RegExp("^(.*!)([^!]*)$","s"));i||t(`The ${e} tag has no suffix`);const r=this.tags[n];if(r)try{return r+decodeURIComponent(i)}catch(o){return t(String(o)),null}return n==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+tn(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let i;if(e&&n.length>0&&v(e.contents)){const r={};z(e.contents,(o,l)=>{v(l)&&l.tag&&(r[l.tag]=!0)}),i=Object.keys(r)}else i=[];for(const[r,o]of n)r==="!!"&&o==="tag:yaml.org,2002:"||(!e||i.some(l=>l.startsWith(o)))&&t.push(`%TAG ${r} ${o}`);return t.join(`
2
2
  `)}}j.defaultYaml={explicit:!1,version:"1.2"};j.defaultTags={"!!":"tag:yaml.org,2002:"};function ls(s){if(/[\x00-\x19\s,[\]{}]/.test(s)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;throw new Error(t)}return!0}function as(s){const e=new Set;return z(s,{Value(t,n){n.anchor&&e.add(n.anchor)}}),e}function cs(s,e){for(let t=1;;++t){const n=`${s}${t}`;if(!e.has(n))return n}}function sn(s,e){const t=[],n=new Map;let i=null;return{onAnchor:r=>{t.push(r),i||(i=as(s));const o=cs(e,i);return i.add(o),o},setAnchors:()=>{for(const r of t){const o=n.get(r);if(typeof o=="object"&&o.anchor&&(A(o.node)||_(o.node)))o.node.anchor=o.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=r,l}}},sourceObjects:n}}function ue(s,e,t,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let i=0,r=n.length;i<r;++i){const o=n[i],l=ue(s,n,String(i),o);l===void 0?delete n[i]:l!==o&&(n[i]=l)}else if(n instanceof Map)for(const i of Array.from(n.keys())){const r=n.get(i),o=ue(s,n,i,r);o===void 0?n.delete(i):o!==r&&n.set(i,o)}else if(n instanceof Set)for(const i of Array.from(n)){const r=ue(s,n,i,i);r===void 0?n.delete(i):r!==i&&(n.delete(i),n.add(r))}else for(const[i,r]of Object.entries(n)){const o=ue(s,n,i,r);o===void 0?delete n[i]:o!==r&&(n[i]=o)}return s.call(e,t,n)}function F(s,e,t){if(Array.isArray(s))return s.map((n,i)=>F(n,String(i),t));if(s&&typeof s.toJSON=="function"){if(!t||!Zs(s))return s.toJSON(e,t);const n={aliasCount:0,count:1,res:void 0};t.anchors.set(s,n),t.onCreate=r=>{n.res=r,delete t.onCreate};const i=s.toJSON(e,t);return t.onCreate&&t.onCreate(i),i}return typeof s=="bigint"&&!(t!=null&&t.keep)?Number(s):s}class At{constructor(e){Object.defineProperty(this,R,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:i,reviver:r}={}){if(!be(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},l=F(this,"",o);if(typeof i=="function")for(const{count:a,res:c}of o.anchors.values())i(c,a);return typeof r=="function"?ue(r,{"":l},"",l):l}}class He extends At{constructor(e){super(It),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return z(e,{Node:(n,i)=>{if(i===this)return z.BREAK;i.anchor===this.source&&(t=i)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:i,maxAliasCount:r}=t,o=this.resolve(i);if(!o){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(a)}let l=n.get(o);if(l||(F(o,null,t),l=n.get(o)),!l||l.res===void 0){const a="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(a)}if(r>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=Ke(i,o,n)),l.count*l.aliasCount>r)){const a="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(a)}return l.res}toString(e,t,n){const i=`*${this.source}`;if(e){if(ls(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return`${i} `}return i}}function Ke(s,e,t){if(re(e)){const n=e.resolve(s),i=t&&n&&t.get(n);return i?i.count*i.aliasCount:0}else if(_(e)){let n=0;for(const i of e.items){const r=Ke(s,i,t);r>n&&(n=r)}return n}else if(C(e)){const n=Ke(s,e.key,t),i=Ke(s,e.value,t);return Math.max(n,i)}return 1}const fs=s=>!s||typeof s!="function"&&typeof s!="object";class O extends At{constructor(e){super(G),this.value=e}toJSON(e,t){return t!=null&&t.keep?this.value:F(this.value,e,t)}toString(){return String(this.value)}}O.BLOCK_FOLDED="BLOCK_FOLDED";O.BLOCK_LITERAL="BLOCK_LITERAL";O.PLAIN="PLAIN";O.QUOTE_DOUBLE="QUOTE_DOUBLE";O.QUOTE_SINGLE="QUOTE_SINGLE";const nn="tag:yaml.org,2002:";function rn(s,e,t){var n;if(e){const i=t.filter(o=>o.tag===e),r=(n=i.find(o=>!o.format))!=null?n:i[0];if(!r)throw new Error(`Tag ${e} not found`);return r}return t.find(i=>{var r;return((r=i.identify)==null?void 0:r.call(i,s))&&!i.format})}function Ae(s,e,t){var f,p,m;if(be(s)&&(s=s.contents),v(s))return s;if(C(s)){const y=(p=(f=t.schema[x]).createNode)==null?void 0:p.call(f,t.schema,null,t);return y.items.push(s),y}(s instanceof String||s instanceof Number||s instanceof Boolean||typeof BigInt!="undefined"&&s instanceof BigInt)&&(s=s.valueOf());const{aliasDuplicateObjects:n,onAnchor:i,onTagObj:r,schema:o,sourceObjects:l}=t;let a;if(n&&s&&typeof s=="object"){if(a=l.get(s),a)return a.anchor||(a.anchor=i(s)),new He(a.anchor);a={anchor:null,node:null},l.set(s,a)}e!=null&&e.startsWith("!!")&&(e=nn+e.slice(2));let c=rn(s,e,o.tags);if(!c){if(s&&typeof s.toJSON=="function"&&(s=s.toJSON()),!s||typeof s!="object"){const y=new O(s);return a&&(a.node=y),y}c=s instanceof Map?o[x]:Symbol.iterator in Object(s)?o[ge]:o[x]}r&&(r(c),delete t.onTagObj);const h=c!=null&&c.createNode?c.createNode(t.schema,s,t):typeof((m=c==null?void 0:c.nodeClass)==null?void 0:m.from)=="function"?c.nodeClass.from(t.schema,s,t):new O(s);return e?h.tag=e:c.default||(h.tag=c.tag),a&&(a.node=h),h}function Je(s,e,t){let n=t;for(let i=e.length-1;i>=0;--i){const r=e[i];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){const o=[];o[r]=n,n=o}else n=new Map([[r,n]])}return Ae(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:s,sourceObjects:new Map})}const Ee=s=>s==null||typeof s=="object"&&!!s[Symbol.iterator]().next().done;class us extends At{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(n=>v(n)||C(n)?n.clone(e):n),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Ee(e))this.add(t);else{const[n,...i]=e,r=this.get(n,!0);if(_(r))r.addIn(i,t);else if(r===void 0&&this.schema)this.set(n,Je(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}deleteIn(e){const[t,...n]=e;if(n.length===0)return this.delete(t);const i=this.get(t,!0);if(_(i))return i.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...i]=e,r=this.get(n,!0);return i.length===0?!t&&A(r)?r.value:r:_(r)?r.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!C(t))return!1;const n=t.value;return n==null||e&&A(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){const[t,...n]=e;if(n.length===0)return this.has(t);const i=this.get(t,!0);return _(i)?i.hasIn(n):!1}setIn(e,t){const[n,...i]=e;if(i.length===0)this.set(n,t);else{const r=this.get(n,!0);if(_(r))r.setIn(i,t);else if(r===void 0&&this.schema)this.set(n,Je(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}}const on=s=>s.replace(/^(?!$)(?: $)?/gm,"#");function Y(s,e){return/^\n+$/.test(s)?s.substring(1):e?s.replace(/^(?! *$)/gm,e):s}const te=(s,e,t)=>s.endsWith(`
3
3
  `)?Y(t,e):t.includes(`
4
4
  `)?`
@@ -59,13 +59,13 @@ var d = (s) => {
59
59
  throw r;
60
60
  }, "return" in e && n("return"), i;
61
61
  };
62
- import { E as Yt, a as nn } from "./types-D1mqt0Mg.js";
63
- import { b as xi, i as zi, e as Xi, d as Zi } from "./types-D1mqt0Mg.js";
64
- import { s as rn, c as on, p as ln, v as an, g as cn, a as Ye, b as Tt, d as It, e as At, f as Et, h as Q, C as ve } from "./widget-composer-Dhl_nmhq.js";
65
- import { k as tr, m as sr, j as nr, l as ir, i as rr, w as or } from "./widget-composer-Dhl_nmhq.js";
66
- import { n as fn, d as un, i as hn, a as dn } from "./derive-chart-family-DLwnWblo.js";
62
+ import { E as Yt, a as nn } from "./types-ofTjqFFK.js";
63
+ import { b as xi, i as zi, e as Xi, d as Zi } from "./types-ofTjqFFK.js";
64
+ import { s as rn, c as on, p as ln, v as an, g as cn, a as Ye, b as Tt, d as It, e as At, f as Et, h as Q, C as ve } from "./widget-composer-By61s921.js";
65
+ import { k as tr, m as sr, j as nr, l as ir, i as rr, w as or } from "./widget-composer-By61s921.js";
66
+ import { n as fn, d as un, i as hn, a as dn } from "./derive-chart-family-DkuTQGOE.js";
67
67
  import { CustomSuperJSON as ar, translateQueryJSON as cr, translateQueryToJaql as fr } from "./analytics-composer/node.js";
68
- import { l as pn, m as Wt, A as mn } from "./execute-query-CFK2R_1S.js";
68
+ import { l as pn, m as Wt, A as mn } from "./execute-query-l7jejslh.js";
69
69
  const Lt = Symbol.for("yaml.alias"), bt = Symbol.for("yaml.document"), H = Symbol.for("yaml.map"), os = Symbol.for("yaml.pair"), W = Symbol.for("yaml.scalar"), ye = Symbol.for("yaml.seq"), F = Symbol.for("yaml.node.type"), ie = (s) => !!s && typeof s == "object" && s[F] === Lt, ge = (s) => !!s && typeof s == "object" && s[F] === bt, be = (s) => !!s && typeof s == "object" && s[F] === H, E = (s) => !!s && typeof s == "object" && s[F] === os, A = (s) => !!s && typeof s == "object" && s[F] === W, we = (s) => !!s && typeof s == "object" && s[F] === ye;
70
70
  function C(s) {
71
71
  if (s && typeof s == "object")