@hpcc-js/other 3.2.9 → 3.2.10
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.
- package/dist/index.js +3106 -1190
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2 -5
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +6 -6
package/dist/index.umd.cjs
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
(function(global,factory){typeof exports=="object"&&typeof module<"u"?factory(exports,require("@hpcc-js/common"),require("@hpcc-js/layout")):typeof define=="function"&&define.amd?define(["exports","@hpcc-js/common","@hpcc-js/layout"],factory):(global=typeof globalThis<"u"?globalThis:global||self,factory(global["@hpcc-js/other"]={},global["@hpcc-js/common"],global["@hpcc-js/layout"]))})(this,function(exports2,common,layout){"use strict";var __defProp=Object.defineProperty;var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value;var __publicField=(obj,key,value)=>__defNormalProp(obj,typeof key!="symbol"?key+"":key,value);function _mergeNamespaces(n,m){for(var i=0;i<m.length;i++){const e=m[i];if(typeof e!="string"&&!Array.isArray(e)){for(const k in e)if(k!=="default"&&!(k in n)){const d=Object.getOwnPropertyDescriptor(e,k);d&&Object.defineProperty(n,k,d.get?d:{enumerable:!0,get:()=>e[k]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}const PKG_NAME="@hpcc-js/other",PKG_VERSION="3.1.1",BUILD_VERSION="3.2.1";var frame=0,timeout=0,interval=0,pokeDelay=1e3,taskHead,taskTail,clockLast=0,clockNow=0,clockSkew=0,clock=typeof performance=="object"&&performance.now?performance:Date,setFrame=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(f){setTimeout(f,17)};function now(){return clockNow||(setFrame(clearNow),clockNow=clock.now()+clockSkew)}function clearNow(){clockNow=0}function Timer(){this._call=this._time=this._next=null}Timer.prototype=timer.prototype={constructor:Timer,restart:function(callback,delay,time){if(typeof callback!="function")throw new TypeError("callback is not a function");time=(time==null?now():+time)+(delay==null?0:+delay),!this._next&&taskTail!==this&&(taskTail?taskTail._next=this:taskHead=this,taskTail=this),this._call=callback,this._time=time,sleep()},stop:function(){this._call&&(this._call=null,this._time=1/0,sleep())}};function timer(callback,delay,time){var t=new Timer;return t.restart(callback,delay,time),t}function timerFlush(){now(),++frame;for(var t=taskHead,e;t;)(e=clockNow-t._time)>=0&&t._call.call(null,e),t=t._next;--frame}function wake(){clockNow=(clockLast=clock.now())+clockSkew,frame=timeout=0;try{timerFlush()}finally{frame=0,nap(),clockNow=0}}function poke(){var now2=clock.now(),delay=now2-clockLast;delay>pokeDelay&&(clockSkew-=delay,clockLast=now2)}function nap(){for(var t02,t12=taskHead,t2,time=1/0;t12;)t12._call?(time>t12._time&&(time=t12._time),t02=t12,t12=t12._next):(t2=t12._next,t12._next=null,t12=t02?t02._next=t2:taskHead=t2);taskTail=t02,sleep(time)}function sleep(time){if(!frame){timeout&&(timeout=clearTimeout(timeout));var delay=time-clockNow;delay>24?(time<1/0&&(timeout=setTimeout(wake,time-clock.now()-clockSkew)),interval&&(interval=clearInterval(interval))):(interval||(clockLast=clock.now(),interval=setInterval(poke,pokeDelay)),frame=1,setFrame(wake))}}class Audio extends common.HTMLWidget{constructor(){super();__publicField(this,"_sections");this._tag="audio",this._sections={}}section(label,offset,beatLength,beatCount){return arguments.length?arguments.length===1?this._sections[label]:(this._sections[label]={label,offset,beatLength,beatCount,endOffset:offset+beatCount*beatLength},this):this._sections}getType(fileExt){switch(fileExt){case"mp3":return"audio/mpeg; codecs='mp3'";case"ogg":return"audio/ogg; codecs='vorbis'"}return""}enter(domNode,element){const context=this;element.on("play",function(d){context.onPlay(d)})}update(domNode,element){element.selectAll("source").data(this.source(),function(d){return d}).enter().append("source").attr("src",function(d){return d})}createTimer(params,startTime,beat){const context=this;timer(function(){return context.onTick(params.label,beat,params),!0},beat*params.beatLength,startTime+params.offset)}onTick(label,beat,params){}onPlay(d){const startTime=Date.now();for(const key in this._sections){const section=this._sections[key];for(let i=0;i<section.beatCount;++i)this.createTimer(section,startTime,i)}}play(d){const context=this;this._element.on("canplaythrough",function(d2){context.node().play()}),this.node().load()}}Audio.prototype._class+=" other_Audio",Audio.prototype.publish("source","","string","Audio Source");function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var autoComplete={exports:{}};(function(module2){var autoComplete2=function(){function autoComplete3(options){if(!document.querySelector)return;function hasClass(el,className){return el.classList?el.classList.contains(className):new RegExp("\\b"+className+"\\b").test(el.className)}function addEvent(el,type,handler){el.attachEvent?el.attachEvent("on"+type,handler):el.addEventListener(type,handler)}function removeEvent(el,type,handler){el.detachEvent?el.detachEvent("on"+type,handler):el.removeEventListener(type,handler)}function live(elClass,event,cb,context){addEvent(context||document,event,function(e){for(var found,el=e.target||e.srcElement;el&&!(found=hasClass(el,elClass));)el=el.parentElement;found&&cb.call(el,e)})}var o={selector:0,source:0,minChars:3,delay:150,offsetLeft:0,offsetTop:1,cache:1,menuClass:"",renderItem:function(item,search){search=search.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var re=new RegExp("("+search.split(" ").join("|")+")","gi");return'<div class="autocomplete-suggestion" data-val="'+item+'">'+item.replace(re,"<b>$1</b>")+"</div>"},onSelect:function(e,term,item){}};for(var k in options)options.hasOwnProperty(k)&&(o[k]=options[k]);for(var elems=typeof o.selector=="object"?[o.selector]:document.querySelectorAll(o.selector),i=0;i<elems.length;i++){var that=elems[i];that.sc=document.createElement("div"),that.sc.className="autocomplete-suggestions "+o.menuClass,that.autocompleteAttr=that.getAttribute("autocomplete"),that.setAttribute("autocomplete","off"),that.cache={},that.last_val="",that.updateSC=function(resize,next){var rect=that.getBoundingClientRect();if(that.sc.style.left=Math.round(rect.left+(window.pageXOffset||document.documentElement.scrollLeft)+o.offsetLeft)+"px",that.sc.style.top=Math.round(rect.bottom+(window.pageYOffset||document.documentElement.scrollTop)+o.offsetTop)+"px",that.sc.style.width=Math.round(rect.right-rect.left)+"px",!resize&&(that.sc.style.display="block",that.sc.classList.remove("hide"),that.sc.maxHeight||(that.sc.maxHeight=parseInt((window.getComputedStyle?getComputedStyle(that.sc,null):that.sc.currentStyle).maxHeight)),that.sc.suggestionHeight||(that.sc.suggestionHeight=that.sc.querySelector(".autocomplete-suggestion").offsetHeight),that.sc.suggestionHeight))if(!next)that.sc.scrollTop=0;else{var scrTop=that.sc.scrollTop,selTop=next.getBoundingClientRect().top-that.sc.getBoundingClientRect().top;selTop+that.sc.suggestionHeight-that.sc.maxHeight>0?that.sc.scrollTop=selTop+that.sc.suggestionHeight+scrTop-that.sc.maxHeight:selTop<0&&(that.sc.scrollTop=selTop+scrTop)}},addEvent(window,"resize",that.updateSC),document.body.appendChild(that.sc),live("autocomplete-suggestion","mouseleave",function(e){var sel=that.sc.querySelector(".autocomplete-suggestion.selected");sel&&setTimeout(function(){sel.className=sel.className.replace("selected","")},20)},that.sc),live("autocomplete-suggestion","mouseover",function(e){var sel=that.sc.querySelector(".autocomplete-suggestion.selected");sel&&(sel.className=sel.className.replace("selected","")),this.className+=" selected"},that.sc),live("autocomplete-suggestion","mousedown",function(e){if(hasClass(this,"autocomplete-suggestion")){var v=this.getAttribute("data-val");that.value=v,o.onSelect(e,v,this),that.sc.style.display="none",that.sc.classList.add("hide")}},that.sc),that.blurHandler=function(){try{var over_sb=document.querySelector(".autocomplete-suggestions:hover")}catch{var over_sb=0}over_sb?that!==document.activeElement&&setTimeout(function(){that.focus()},20):(that.last_val=that.value,that.sc.style.display="none",that.sc.classList.add("hide"),setTimeout(function(){that.sc.style.display="none",that.sc.classList.add("hide")},350))},addEvent(that,"blur",that.blurHandler);var suggest=function(data,val){if(!val)var val=that.value;if(that.cache[val]=data,data.length&&val.length>=o.minChars){for(var s="",i2=0;i2<data.length;i2++)s+=o.renderItem(data[i2],val);that.sc.innerHTML=s,that.updateSC(0)}else that.sc.style.display="none",that.sc.classList.add("hide")};that.keydownHandler=function(e){var key=window.event?e.keyCode:e.which;if((key==40||key==38)&&that.sc.innerHTML){var next,sel=that.sc.querySelector(".autocomplete-suggestion.selected");return sel?(next=key==40?sel.nextSibling:sel.previousSibling,next?(sel.className=sel.className.replace("selected",""),next.className+=" selected",that.value=next.getAttribute("data-val")):(sel.className=sel.className.replace("selected",""),that.value=that.last_val,next=0)):(next=key==40?that.sc.querySelector(".autocomplete-suggestion"):that.sc.childNodes[that.sc.childNodes.length-1],next.className+=" selected",that.value=next.getAttribute("data-val")),that.updateSC(0,next),!1}else if(key==27)that.value=that.last_val,that.sc.style.display="none",that.sc.classList.add("hide");else if(key==13||key==9){that.sc.style.display!=="none"&&e.preventDefault();var sel=that.sc.querySelector(".autocomplete-suggestion.selected");sel&&that.sc.style.display!="none"&&(o.onSelect(e,sel.getAttribute("data-val"),sel),setTimeout(function(){that.sc.style.display="none",that.sc.classList.add("hide")},20))}},addEvent(that,"keydown",that.keydownHandler),that.keyupHandler=function(e){var key=window.event?e.keyCode:e.which;if(!key||(key<35||key>40)&&key!=13&&key!=27){var val=that.value;if(val.length>=o.minChars){if(val!=that.last_val){if(that.last_val=val,clearTimeout(that.timer),o.cache){if(val in that.cache){suggest(that.cache[val]);return}for(var i2=1;i2<val.length-o.minChars;i2++){var part=val.slice(0,val.length-i2);if(part in that.cache&&!that.cache[part].length){suggest([]);return}}}that.timer=setTimeout(function(){o.source(val,suggest)},o.delay)}}else that.last_val=val,that.sc.style.display="none",that.sc.classList.add("hide")}},addEvent(that,"keyup",that.keyupHandler),that.focusHandler=function(e){that.last_val=`
|
|
2
|
-
`,that.keyupHandler(e)},o.minChars||addEvent(that,"focus",that.focusHandler)}this.destroy=function(){for(var i2=0;i2<elems.length;i2++){var that2=elems[i2];removeEvent(window,"resize",that2.updateSC),removeEvent(that2,"blur",that2.blurHandler),removeEvent(that2,"focus",that2.focusHandler),removeEvent(that2,"keydown",that2.keydownHandler),removeEvent(that2,"keyup",that2.keyupHandler),that2.autocompleteAttr?that2.setAttribute("autocomplete",that2.autocompleteAttr):that2.removeAttribute("autocomplete"),document.body.removeChild(that2.sc),that2=null}}}return autoComplete3}();(function(){module2.exports?module2.exports=autoComplete2:window.autoComplete=autoComplete2})()})(autoComplete);var autoCompleteExports=autoComplete.exports;const AutoComplete=getDefaultExportFromCjs(autoCompleteExports);class AutoCompleteText extends common.HTMLWidget{constructor(){super();__publicField(this,"_span");__publicField(this,"_prompt");__publicField(this,"_input");__publicField(this,"_prevMinCharsText");__publicField(this,"_autoComplete");this._tag="div"}autoCompleteTextData(){return this.data().length===0?[]:this._db.rollupView([this.textColumn(),this.valueColumn()]).entries().map(function(row,idx){return{idx,text:row.key,value:row.values.length?row.values[0].key:"",origRow:row.values.length&&row.values[0].value.length?row.values[0].value[0]:[]}},this)}enter(domNode,element){super.enter(domNode,element),this._span=element.append("span"),this._prompt=this._span.append("label").attr("for",this.id()+"_input"),this._input=this._span.append("input").attr("id",this.id()+"_input").attr("name",this.id()+"_input_name").attr("type","text").attr("placeholder",this.placeholder())}update(domNode,element){if(super.update(domNode,element),this._prompt.text(this.label()),this._input.style("width",this.textboxWidth_exists()?this.textboxWidth()+"px":null),this._prevMinCharsText!==this.minCharsText()){this._prevMinCharsText=this.minCharsText(),this._autoComplete&&this._autoComplete.destroy();const context=this;this._autoComplete=new AutoComplete({selector:"#"+this.id()+"_input",minChars:this.minCharsText(),delay:150,offsetLeft:0,offsetTop:1,source:(term,suggest)=>{const field=context._db.fieldByLabel(context.textColumn());if(field){term=term.toLowerCase();const suggestions=context.autoCompleteTextData().filter(function(row){return row.origRow[field.idx].toLowerCase().indexOf(term)>=0}).map(function(row){return{text:row.origRow[field.idx],rowIdx:row.idx}});suggest(suggestions)}},renderItem:(item,search)=>{search=search.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");const re=new RegExp("("+search.split(" ").join("|")+")","gi");return'<div class="autocomplete-suggestion" data-val="'+item.text+'" data-row-idx="'+item.rowIdx+'">'+item.text.replace(re,"<b>$1</b>")+"</div>"},onSelect:(e,term,item)=>{const rowIdx=+item.getAttribute("data-row-idx"),row=context.autoCompleteTextData()[rowIdx];context.click(context.rowToObj(row.origRow),context.valueColumn(),!0)}})}}exit(domNode,element){this._autoComplete&&this._autoComplete.destroy(),this._span.remove(),super.exit(domNode,element)}click(row,column,selected){}}AutoCompleteText.prototype._class+=" other_AutoCompleteText",AutoCompleteText.prototype.publish("label","Label: ","string","Label for AutoCompleteText"),AutoCompleteText.prototype.publish("textboxWidth",null,"number","width of textbox",null,{optional:!0}),AutoCompleteText.prototype.publish("placeholder","Search...","string","Placeholder for AutoCompleteText"),AutoCompleteText.prototype.publish("valueColumn",null,"set","Select column for autocomplete",function(){return this.columns()},{optional:!0}),AutoCompleteText.prototype.publish("textColumn",null,"set","Select value(s)",function(){return this.columns()},{optional:!0}),AutoCompleteText.prototype.publish("minCharsText",1,"number","Size of multiAutoCompleteText box");var t0=new Date,t1=new Date;function newInterval(floori,offseti,count,field){function interval2(date){return floori(date=arguments.length===0?new Date:new Date(+date)),date}return interval2.floor=function(date){return floori(date=new Date(+date)),date},interval2.ceil=function(date){return floori(date=new Date(date-1)),offseti(date,1),floori(date),date},interval2.round=function(date){var d0=interval2(date),d1=interval2.ceil(date);return date-d0<d1-date?d0:d1},interval2.offset=function(date,step){return offseti(date=new Date(+date),step==null?1:Math.floor(step)),date},interval2.range=function(start,stop,step){var range=[],previous;if(start=interval2.ceil(start),step=step==null?1:Math.floor(step),!(start<stop)||!(step>0))return range;do range.push(previous=new Date(+start)),offseti(start,step),floori(start);while(previous<start&&start<stop);return range},interval2.filter=function(test){return newInterval(function(date){if(date>=date)for(;floori(date),!test(date);)date.setTime(date-1)},function(date,step){if(date>=date)if(step<0)for(;++step<=0;)for(;offseti(date,-1),!test(date););else for(;--step>=0;)for(;offseti(date,1),!test(date););})},count&&(interval2.count=function(start,end){return t0.setTime(+start),t1.setTime(+end),floori(t0),floori(t1),Math.floor(count(t0,t1))},interval2.every=function(step){return step=Math.floor(step),!isFinite(step)||!(step>0)?null:step>1?interval2.filter(field?function(d){return field(d)%step===0}:function(d){return interval2.count(0,d)%step===0}):interval2}),interval2}var durationMinute=6e4,durationDay=864e5,durationWeek=6048e5,day=newInterval(function(date){date.setHours(0,0,0,0)},function(date,step){date.setDate(date.getDate()+step)},function(start,end){return(end-start-(end.getTimezoneOffset()-start.getTimezoneOffset())*durationMinute)/durationDay},function(date){return date.getDate()-1}),days=day.range;function weekday(i){return newInterval(function(date){date.setDate(date.getDate()-(date.getDay()+7-i)%7),date.setHours(0,0,0,0)},function(date,step){date.setDate(date.getDate()+step*7)},function(start,end){return(end-start-(end.getTimezoneOffset()-start.getTimezoneOffset())*durationMinute)/durationWeek})}var sunday=weekday(0),monday=weekday(1),tuesday=weekday(2),wednesday=weekday(3),thursday=weekday(4),friday=weekday(5),saturday=weekday(6);sunday.range,monday.range,tuesday.range,wednesday.range,thursday.range,friday.range,saturday.range;var month=newInterval(function(date){date.setDate(1),date.setHours(0,0,0,0)},function(date,step){date.setMonth(date.getMonth()+step)},function(start,end){return end.getMonth()-start.getMonth()+(end.getFullYear()-start.getFullYear())*12},function(date){return date.getMonth()}),months=month.range,year=newInterval(function(date){date.setMonth(0,1),date.setHours(0,0,0,0)},function(date,step){date.setFullYear(date.getFullYear()+step)},function(start,end){return end.getFullYear()-start.getFullYear()},function(date){return date.getFullYear()});year.every=function(k){return!isFinite(k=Math.floor(k))||!(k>0)?null:newInterval(function(date){date.setFullYear(Math.floor(date.getFullYear()/k)*k),date.setMonth(0,1),date.setHours(0,0,0,0)},function(date,step){date.setFullYear(date.getFullYear()+step*k)})},year.range;class CalendarHeatMap extends common.HTMLWidget{constructor(){super();__publicField(this,"_prevDateColumn");__publicField(this,"_prevAggrType");__publicField(this,"_prevAggrColumn");__publicField(this,"_prevAggrDeltaColumn");__publicField(this,"_view");__publicField(this,"_parentNode");common.Utility.SimpleSelectionMixin.call(this)}calendarData(){if(this.fields().length===0||this.data().length===0)return[];const dateParser=common.timeParse(this.datePattern()),valueFormatter=this.aggrDeltaColumn()?common.format(".1%"):common.format("s");return(this._prevDateColumn!==this.dateColumn()||this._prevAggrType!==this.aggrType()||this._prevAggrColumn!==this.aggrColumn()||this._prevAggrDeltaColumn!==this.aggrDeltaColumn())&&(this._prevDateColumn=this.dateColumn(),this._prevAggrType=this.aggrType(),this._prevAggrColumn=this.aggrColumn(),this._prevAggrDeltaColumn=this.aggrDeltaColumn(),this._view=this._db.aggregateView([this.dateColumn()],this.aggrType(),this.aggrColumn(),this.aggrDeltaColumn())),this._view.entries().map(function(row){return row.dateKey=dateParser(row.key),row.formattedValues=valueFormatter(row.value.aggregate),row.origRows=row.value,row})}calcDelta(row){return(row.Close-row.Open)/row.Open}enter(domNode,element){super.enter(domNode,element),common.select(domNode.parentNode).style("overflow-y","scroll").style("overflow-x","hidden").style("height","100%").style("width","100%"),this._selection.widgetElement(element)}update(domNode,element){super.update(domNode,element),this._palette=this._palette.switch(this.paletteID());const width=this.width(),cellSize=width/12/5,height=cellSize*8,data=this.calendarData(),mappedData=common.map(data,function(d){return d.dateKey}),dateExtent=common.extent(data,function(d){return d.dateKey.getFullYear()}),context=this,svg=element.selectAll("svg").data(common.range(+dateExtent[0],+dateExtent[1]+1)),svgUpdate=svg.enter().append("svg").each(function(d){const g=common.select(this).append("g");g.append("text").style("text-anchor","middle"),g.append("g").attr("class","days");const _d3TimeMonths=months(new Date(d,0,1),new Date(d+1,0,1)),_months=g.append("g").attr("class","months");_d3TimeMonths.forEach(function(_m){_months.append("path").attr("class","month").attr("d",calcMonthPath(_m)).style("stroke",context.monthStrokeColor()).style("stroke-width",context.monthStrokeWidth())})}).merge(svg).attr("width",width).attr("height",height);svgUpdate.select("g").attr("transform","translate("+(width-cellSize*53)/2+","+(height-cellSize*7-1)+")"),svgUpdate.select("text").attr("transform","translate(-6,"+cellSize*3.5+")rotate(-90)").text(d=>d),svg.exit().remove();let dataExtent=common.extent(data,function(d){return d.value.aggregate});if(this.aggrDeltaColumn()){const max=Math.max(Math.abs(+dataExtent[0]),Math.abs(+dataExtent[1]));dataExtent=[-max,max]}const dayRect=svgUpdate.select(".days").selectAll(".day").data(function(d){return days(new Date(d,0,1),new Date(d+1,0,1))}),dayRectUpdate=dayRect.enter().append("rect").attr("class","day").call(this._selection.enter.bind(this._selection)).on("click",function(d){const data2=mappedData.get(d);data2&&data2.value&&data2.value&&data2.value.length&&context.click(context.rowToObj(data2.value[0]),context.dateColumn(),context._selection.selected(this))}).on("dblclick",function(d){const data2=mappedData.get(d);data2&&data2.value&&data2.value&&data2.value.length&&context.dblclick(context.rowToObj(data2.value[0]),context.dateColumn(),context._selection.selected(this))}).each(function(d){common.select(this).append("title")}).merge(dayRect).attr("x",function(d){return sunday.count(year(d),d)*cellSize}).attr("y",function(d){return d.getDay()*cellSize}).attr("width",cellSize).attr("height",cellSize).style("stroke",this.dayStrokeColor()).style("stroke-width",this.dayStrokeWidth()).style("fill",null);dayRectUpdate.select("title").text(d=>d),dayRectUpdate.filter(function(d){return mappedData.has(d)}).style("fill",function(d){const row=mappedData.get(d);return!row||!row.value||!row.value.aggregate?null:context._palette(row.value.aggregate,dataExtent[0],dataExtent[1])}).select("title").text(function(d){const data2=mappedData.get(d);return data2.key+": "+data2.formattedValues}),dayRect.exit().remove();const monthPath=svg.select(".months").selectAll(".month").data(function(d){return months(new Date(d,0,1),new Date(d+1,0,1))});monthPath.enter().append("path").attr("class","month").merge(monthPath).attr("d",calcMonthPath).style("stroke",this.monthStrokeColor()).style("stroke-width",this.monthStrokeWidth()),monthPath.exit().remove();function calcMonthPath(t02){const t12=new Date(t02.getFullYear(),t02.getMonth()+1,0),d0=t02.getDay(),w0=sunday.count(year(t02),t02),d1=t12.getDay(),w1=sunday.count(year(t12),t12);return"M"+(w0+1)*cellSize+","+d0*cellSize+"H"+w0*cellSize+"V"+7*cellSize+"H"+w1*cellSize+"V"+(d1+1)*cellSize+"H"+(w1+1)*cellSize+"V0H"+(w0+1)*cellSize+"Z"}}exit(domNode,element){super.exit(domNode,element)}click(row,column,selected){}dblclick(row,column,selected){}}CalendarHeatMap.prototype._class+=" other_CalendarHeatMap",CalendarHeatMap.prototype.mixin(common.Utility.SimpleSelectionMixin),CalendarHeatMap.prototype._palette=common.Palette.rainbow("default"),CalendarHeatMap.prototype.publish("paletteID","YlOrRd","set","Color palette for this widget",CalendarHeatMap.prototype._palette.switch(),{tags:["Basic","Shared"]}),CalendarHeatMap.prototype.publish("dayStrokeColor","#ccc","html-color","Color of day border"),CalendarHeatMap.prototype.publish("monthStrokeColor","#000","html-color","Color of month border"),CalendarHeatMap.prototype.publish("dayStrokeWidth",1,"number","Pixel width of day border"),CalendarHeatMap.prototype.publish("monthStrokeWidth",2,"number","Pixel width of month border"),CalendarHeatMap.prototype.publish("dateColumn",null,"set","Date Column",function(){return this.columns()},{optional:!0}),CalendarHeatMap.prototype.publish("datePattern","%Y-%m-%d","string","Date Pattern"),CalendarHeatMap.prototype.publish("aggrType",null,"set","Aggregation Type",[null,"mean","median","sum","min","max"],{optional:!0}),CalendarHeatMap.prototype.publish("aggrColumn",null,"set","Aggregation Field",function(){return this.columns()},{optional:!0,disable:w=>!w.aggrType()}),CalendarHeatMap.prototype.publish("aggrDeltaColumn",null,"set","Aggregation Field",function(){return this.columns()},{optional:!0,disable:w=>!w.aggrType()});const TIMEOUT_DEFAULT=60;function espValFix(val){if(val==null)return null;if(!val.trim)return val.Row?espRowFix(val.Row):val;const retVal=val.trim();return retVal!==""&&!isNaN(retVal)&&(retVal.length<=1||retVal[0]!=="0"||retVal[1]===".")?Number(retVal):retVal}function espRowFix(row){for(const key in row)row[key]=espValFix(row[key]);return row}class ESPUrl{constructor(){__publicField(this,"_protocol","http:");__publicField(this,"_hostname","localhost");__publicField(this,"_url");__publicField(this,"_port");__publicField(this,"_search");__publicField(this,"_pathname");__publicField(this,"_params");__publicField(this,"_hash");__publicField(this,"_host")}url(_){if(!arguments.length)return this._url;this._url=_;const parser=document.createElement("a");parser.href=this._url;const params={};if(parser.search.length){let tmp=parser.search;tmp[0]==="?"&&(tmp=tmp.substring(1)),tmp=tmp.split("&"),tmp.map(function(item){const tmpItem=item.split("=");params[decodeURIComponent(tmpItem[0])]=decodeURIComponent(tmpItem[1])})}for(this._protocol=parser.protocol,this._hostname=parser.hostname,this._port=parser.port,this._pathname=parser.pathname;this._pathname.length&&this._pathname[0]==="/";)this._pathname=this._pathname.substring(1);return this._search=parser.search,this._params=params,this._hash=parser.hash,this._host=parser.host,this}protocol(_){return arguments.length?(this._protocol=_,this):this._protocol}hostname(_){return arguments.length?(this._hostname=_,this):this._hostname}port(_){return arguments.length?(this._port=_,this):this._port}search(_){return arguments.length?(this._search=_,this):this._search}pathname(_){return arguments.length?(this._pathname=_,this):this._pathname}hash(_){return arguments.length?(this._hash=_,this):this._hash}host(_){return arguments.length?(this._host=_,this):this._host}params(_){return arguments.length?(this._params=_,this):this._params}param(key){return this._params[key]}isWsWorkunits(){return this._pathname.toLowerCase().indexOf("wsworkunits")>=0||this._params.Wuid}isWorkunitResult(){return this.isWsWorkunits()&&(this._params.Sequence||this._params.ResultName)}isWsEcl(){return this._pathname.toLowerCase().indexOf("wsecl")>=0||this._params.QuerySetId&&this._params.Id}isWsWorkunits_GetStats(){return this._pathname.toLowerCase().indexOf("wsworkunits/wugetstats")>=0&&this._params.WUID}getUrl(overrides){return overrides=overrides||{},(overrides.protocol!==void 0?overrides.protocol:this._protocol)+"//"+(overrides.hostname!==void 0?overrides.hostname:this._hostname)+":"+(overrides.port!==void 0?overrides.port:this._port)+"/"+(overrides.pathname!==void 0?overrides.pathname:this._pathname)}}function ESPMappings(mappings){this._mappings=mappings,this._reverseMappings={};for(const resultName in this._mappings){this._reverseMappings[resultName]={};for(const key in this._mappings[resultName])this._reverseMappings[resultName][this._mappings[resultName][key]]=key}}ESPMappings.prototype.contains=function(resultName,origField){return common.Utility.exists(resultName+"."+origField,this._mappings)},ESPMappings.prototype.mapResult=function(response,resultName){const mapping=this._mappings[resultName];mapping&&(response[resultName]=response[resultName].map(function(item){let row=[];if(mapping.x&&mapping.x instanceof Array){row=[];for(let i=0;i<mapping.x.length;++i)row.push(item[mapping.y[i]])}else for(const key in mapping)mapping[key]==="label"?row[0]=item[key]:mapping[key]==="weight"&&(row[1]=item[key]);return row},this))},ESPMappings.prototype.mapResponse=function(response){for(const key in response)this.mapResult(response,key)};const serialize$1=function(obj){const str=[];for(const key in obj)if(obj.hasOwnProperty(key)){const val=obj[key];val!=null&&str.push(encodeURIComponent(key)+"="+encodeURIComponent(val))}return str.join("&")};let jsonp=function(url,request,timeout2){return new Promise(function(resolve,reject){let respondedTimeout=timeout2*1e3;const respondedTick=5e3,callbackName="jsonp_callback_"+Math.round(Math.random()*999999);window[callbackName]=function(response){respondedTimeout=0,doCallback(),resolve(response)};const script=document.createElement("script");script.src=url+(url.indexOf("?")>=0?"&":"?")+"jsonp="+callbackName+"&"+serialize$1(request),document.body.appendChild(script);const progress=setInterval(function(){respondedTimeout<=0?clearInterval(progress):(respondedTimeout-=respondedTick,respondedTimeout<=0&&(clearInterval(progress),doCallback(),reject(Error("Request timeout: "+script.src))))},respondedTick);function doCallback(){delete window[callbackName],document.body.removeChild(script)}})};class Comms extends ESPUrl{constructor(){super();__publicField(this,"_proxyMappings");__publicField(this,"_mappings");__publicField(this,"_timeout");__publicField(this,"_hipieResults");__publicField(this,"_hipieResultsLength");this._proxyMappings={},this._mappings=new ESPMappings({}),this._timeout=TIMEOUT_DEFAULT,this._hipieResults={}}hipieResults(_){if(!arguments.length)return this._hipieResults;this._hipieResultsLength=0,this._hipieResults={};const context=this;return _.forEach(function(item){context._hipieResultsLength++,context._hipieResults[item.id]=item}),this}jsonp(url,request){for(const key in this._proxyMappings){const newUrlParts=url.split(key),newUrl=newUrlParts[0];if(newUrlParts.length>1){const espUrl=new ESPUrl().url(url);url=newUrl+this._proxyMappings[key],request.IP=espUrl.hostname(),request.PORT=espUrl.port(),newUrlParts.length>0&&(request.PATH=newUrlParts[1]);break}}return jsonp(url,request,this.timeout())}ajax(method,url,request){return new Promise(function(resolve,reject){let uri=url;method==="GET"&&request&&(uri+="?"+serialize$1(request));const xhr=new XMLHttpRequest;xhr.onload=function(e){this.status>=200&&this.status<300?resolve(JSON.parse(this.response)):reject(Error(this.statusText))},xhr.onerror=function(){reject(Error(this.statusText))},xhr.open(method,uri),xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),method==="GET"?xhr.send():(xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),xhr.send(serialize$1(request)))})}get(url,request){return this.ajax("GET",url,request)}post(url,request){return this.ajax("POST",url,request)}mappings(_){return arguments.length?(this._mappings=new ESPMappings(_),this):this._mappings}proxyMappings(_){return arguments.length?(this._proxyMappings=_,this):this._proxyMappings}timeout(_){return arguments.length?(this._timeout=_||TIMEOUT_DEFAULT,this):this._timeout}}class Basic extends Comms{constructor(){super();__publicField(this,"_cacheCalls")}cacheCalls(_){return arguments.length?(this._cacheCalls=_,this):this._cacheCalls}call(request,callback){const url=this._url+(this._url.indexOf("?")>=0?"&":"?")+serialize$1(request);if(this._cacheCalls){const context=this;return new Promise(function(resolve,reject){const response=JSON.parse(localStorage.getItem("hpcc.viz."+url));if(!response)throw Error("not cached");callback&&(console.error("Deprecated: callback, use promise (Basic.prototype.call)"),callback(response)),resolve(response)}).catch(function(response){return context.get(url).then(function(response2){return localStorage.setItem("hpcc.viz."+url,JSON.stringify(response2)),callback&&(console.error("Deprecated: callback, use promise (Basic.prototype.call)"),callback(response2)),response2})})}else return localStorage.removeItem("hpcc.viz."+url),this.get(url).then(function(response){return callback&&(console.error("Deprecated: callback, use promise (Basic.prototype.call)"),callback(response)),response})}}function locateRoxieResponse$1(response){for(const key in response){if(response[key].Row&&response[key].Row instanceof Array)return response;let retVal;if(typeof response[key]!="string"&&(retVal=locateRoxieResponse$1(response[key])),retVal)return retVal}return null}function locateRoxieException(response){for(const key in response){if(response[key].Exception&&response[key].Exception instanceof Array)return response[key];const retVal=locateRoxieException(response[key]);if(retVal)return retVal}return null}class WsECL extends Comms{constructor(){super();__publicField(this,"_target");__publicField(this,"_query");this._port="8002",this._target="",this._query=""}url(_){const retVal=super.url.apply(this,arguments);if(arguments.length){this._port=this._port==="8010"?"8002":this._port;for(const key in this._params)switch(key){case"QuerySetId":this.target(this._params[key]);break;case"Id":this.query(this._params[key]);break}let pathParts,queryParts;(!this._target||!this._query)&&(pathParts=this._pathname.split("/query/"),pathParts.length>=2&&(queryParts=pathParts[1].split("/"),queryParts.length>=2&&(this.target(queryParts[0]),this.query(queryParts[1]))))}return retVal}target(_){return arguments.length?(this._target=_,this):this._target}query(_){return arguments.length?(this._query=_,this):this._query}constructUrl(){return Comms.prototype.getUrl.call(this,{pathname:"WsEcl/submit/query/"+this._target+"/"+this._query+"/json"})}call(target,request,callback){target=target||{},target.target=target.target||this._target,target.query=target.query||this._query;const context=this,url=this.getUrl({pathname:"WsEcl/submit/query/"+target.target+"/"+target.query+"/json"});return this.jsonp(url,request).then(function(response){let _response=locateRoxieResponse$1(response);if(_response||(_response=locateRoxieException(response)),response=_response,response.Exception)throw Error(response.Exception.reduce(function(previousValue,exception,index,array){return previousValue.length&&(previousValue+=`
|
|
3
|
-
`),previousValue+exception.Source+" "+exception.Code+": "+exception.Message},""));for(const key in response)response[key].Row&&(response[key]=response[key].Row.map(espRowFix));return context._mappings.mapResponse(response),callback&&(console.error("Deprecated: callback, use promise (WsECL.prototype.call)"),callback(response)),response})}send(request,callback){return this.call({target:this._target,query:this._query},request,callback)}}let WsWorkunits$1=class extends Comms{constructor(){super();__publicField(this,"_wuid","");__publicField(this,"_jobname","");__publicField(this,"_sequence",null);__publicField(this,"_resultName",null);__publicField(this,"_fetchResultNamesPromise",null);__publicField(this,"_fetchResultPromise",{});__publicField(this,"_resultNameCache",{});__publicField(this,"_resultNameCacheCount",0);__publicField(this,"_total");this._port="8010"}url(_){const retVal=Comms.prototype.url.apply(this,arguments);if(arguments.length){for(const key in this._params)switch(key){case"Wuid":this.wuid(this._params[key]);break;case"ResultName":this.resultName(this._params[key]);break;case"Sequence":this.sequence(this._params[key]);break}if(!this._wuid){const urlParts=this._url.split("/res/");if(urlParts.length>=2){const urlParts2=urlParts[1].split("/");this.wuid(urlParts2[0])}}}return retVal}wuid(_){return arguments.length?(this._wuid=_,this):this._wuid}jobname(_){return arguments.length?(this._jobname=_,this):this._jobname}sequence(_){return arguments.length?(this._sequence=_,this):this._sequence}resultName(_){return arguments.length?(this._resultName=_,this):this._resultName}appendParam(label,value,params){return value?(params&&(params+="&"),params+label+"="+value):params}constructUrl(){const url=Comms.prototype.getUrl.call(this,{pathname:"WsWorkunits/res/"+this._wuid+"/"});let params="";return params=this.appendParam("ResultName",this._resultName,params),url+(params?"?"+params:"")}_fetchResult(target,callback,skipMapping){if(target=target||{},!this._fetchResultPromise[target.resultname]){target._start=target._start||0,target._count=target._count||-1;const url=this.getUrl({pathname:"WsWorkunits/WUResult.json"}),request={Wuid:target.wuid,ResultName:target.resultname,SuppressXmlSchema:!0,Start:target._start,Count:target._count};this._resultNameCache[target.resultname]={};const context=this;this._fetchResultPromise[target.resultname]=this.jsonp(url,request).then(function(response){for(const key in response){if(!response[key].Result)throw new Error("No result found.");context._total=response[key].Total,response=response[key].Result;for(const responseKey in response){response=response[responseKey].Row.map(espRowFix);break}break}return context._resultNameCache[target.resultname]=response,skipMapping||context._mappings.mapResult(context._resultNameCache,target.resultname),callback&&(console.error("Deprecated: callback, use promise (WsWorkunits.prototype._fetchResult)"),callback(context._resultNameCache[target.resultname])),context._resultNameCache[target.resultname]})}return this._fetchResultPromise[target.resultname]}fetchResult(target,callback,skipMapping){if(target.wuid)return this._fetchResult(target,callback,skipMapping);if(target.jobname){const context=this;return this.WUQuery(target,function(response){return target.wuid=response[0].Wuid,context._fetchResult(target,callback,skipMapping)})}}WUQuery(_request,callback){const url=this.getUrl({pathname:"WsWorkunits/WUQuery.json"}),request={Jobname:_request.jobname,Count:1};return this._resultNameCache={},this._resultNameCacheCount=0,this.jsonp(url,request).then(function(response){if(!common.Utility.exists("WUQueryResponse.Workunits.ECLWorkunit",response))throw Error("No workunit found.");return response=response.WUQueryResponse.Workunits.ECLWorkunit,callback&&(console.error("Deprecated: callback, use promise (WsWorkunits.prototype.WUQuery)"),callback(response)),response})}fetchResultNames(callback){if(!this._fetchResultNamesPromise){const url=this.getUrl({pathname:"WsWorkunits/WUInfo.json"}),request={Wuid:this._wuid,TruncateEclTo64k:!0,IncludeExceptions:!1,IncludeGraphs:!1,IncludeSourceFiles:!1,IncludeResults:!0,IncludeResultsViewNames:!1,IncludeVariables:!1,IncludeTimers:!1,IncludeResourceURLs:!1,IncludeDebugValues:!1,IncludeApplicationValues:!1,IncludeWorkflows:!1,IncludeXmlSchemas:!1,SuppressResultSchemas:!0};this._resultNameCache={},this._resultNameCacheCount=0;const context=this;this._fetchResultNamesPromise=this.jsonp(url,request).then(function(response){return common.Utility.exists("WUInfoResponse.Workunit.Archived",response)&&response.WUInfoResponse.Workunit.Archived&&console.warn("WU is archived: "+url+" "+JSON.stringify(request)),common.Utility.exists("WUInfoResponse.Workunit.Results.ECLResult",response)&&response.WUInfoResponse.Workunit.Results.ECLResult.map(function(item){context._resultNameCache[item.Name]=[],++context._resultNameCacheCount}),callback&&(console.error("Deprecated: callback, use promise (WsWorkunits.prototype.fetchResultNames)"),callback(context._resultNameCache)),context._resultNameCache})}return this._fetchResultNamesPromise}fetchResults(callback,skipMapping){const context=this;return this.fetchResultNames().then(function(response){const fetchArray=[];for(const key in context._resultNameCache)fetchArray.push(context.fetchResult({wuid:context._wuid,resultname:key},null,skipMapping));return Promise.all(fetchArray).then(function(responseArray){return callback&&(console.error("Deprecated: callback, use promise (WsWorkunits.prototype.fetchResults)"),callback(context._resultNameCache)),context._resultNameCache})})}postFilter(request,response){const retVal={};for(const key in response)retVal[key]=response[key].filter(function(row,idx){for(const request_key in request)if(row[request_key]!==void 0&&request[request_key]!==void 0&&row[request_key]!=request[request_key])return!1;return!0});return this._mappings.mapResponse(retVal),retVal}send(request,callback){const context=this;this._resultNameCacheCount?callback(context.postFilter(request,this._resultNameCache)):this.fetchResults(function(response){callback(context.postFilter(request,response))},!0)}};function WsWorkunits_GetStats(){Comms.call(this),this._port="8010",this._wuid=null}WsWorkunits_GetStats.prototype=Object.create(Comms.prototype),WsWorkunits_GetStats.prototype.url=function(_){const retVal=Comms.prototype.url.apply(this,arguments);if(arguments.length)for(const key in this._params)switch(key){case"WUID":this.wuid(this._params[key]);break}return retVal},WsWorkunits_GetStats.prototype.wuid=function(_){return arguments.length?(this._wuid=_,this):this._wuid},WsWorkunits_GetStats.prototype.constructUrl=function(){return Comms.prototype.getUrl.call(this,{pathname:"WsWorkunits/WUGetStats?WUID="+this._wuid})},WsWorkunits_GetStats.prototype.send=function(request,callback){const url=this.getUrl({pathname:"WsWorkunits/WUGetStats.json?WUID="+this._wuid});return this.jsonp(url,request).then(function(response){return common.Utility.exists("WUGetStatsResponse.Statistics.WUStatisticItem",response)?(callback&&(console.error("Deprecated: callback, use promise (WsWorkunits_GetStats.prototype.send)"),callback(response.WUGetStatsResponse.Statistics.WUStatisticItem)),response.WUGetStatsResponse.Statistics.WUStatisticItem):(callback&&(console.error("Deprecated: callback, use promise (WsWorkunits_GetStats.prototype.send)"),callback([])),[])})};function HIPIERoxie(){Comms.call(this)}HIPIERoxie.prototype=Object.create(Comms.prototype),HIPIERoxie.prototype.fetchResults=function(request,callback){const url=this.getUrl({});this._resultNameCache={},this._resultNameCacheCount=0;const context=this;return this.jsonp(url,request).then(function(response){let _response=locateRoxieResponse$1(response);if(_response||(_response=locateRoxieException(response)),response=_response,response.Exception)throw Error(response.Exception.reduce(function(previousValue,exception,index,array){return previousValue.length&&(previousValue+=`
|
|
4
|
-
`),previousValue+exception.Source+" "+exception.Code+": "+exception.Message},""));for(const key in response)response[key].Row&&(context._resultNameCache[key]=response[key].Row.map(espRowFix),++context._resultNameCacheCount);return callback&&(console.error("Deprecated: callback, use promise (HIPIERoxie.prototype.fetchResults)"),callback(context._resultNameCache)),context._resultNameCache})},HIPIERoxie.prototype.fetchResult=function(name,callback){const context=this;return new Promise(function(resolve,reject){callback&&(console.error("Deprecated: callback, use promise (HIPIERoxie.prototype.fetchResult)"),callback(context._resultNameCache[name])),resolve(context._resultNameCache[name])})},HIPIERoxie.prototype.call=function(request,callback){const context=this;return this.fetchResults(request,callback).then(function(response){const retVal={};for(const hipieKey in context._hipieResults){const item=context._hipieResults[hipieKey];retVal[item.id]=response[item.from]}return retVal})};function HIPIEWorkunit(){WsWorkunits$1.call(this)}HIPIEWorkunit.prototype=Object.create(WsWorkunits$1.prototype),HIPIEWorkunit.prototype.fetchResults=function(callback){const context=this;return WsWorkunits$1.prototype.fetchResultNames.call(this).then(function(response){const fetchArray=[];for(const key in context._hipieResults){const item=context._hipieResults[key];fetchArray.push(context.fetchResult(item.from))}return Promise.all(fetchArray).then(function(response2){return callback&&(console.error("Deprecated: callback, use promise (HIPIEWorkunit.prototype.fetchResults)"),callback(context._resultNameCache)),context._resultNameCache})})},HIPIEWorkunit.prototype.fetchResult=function(name,callback){return WsWorkunits$1.prototype.fetchResult.call(this,{wuid:this._wuid,resultname:name}).then(function(response){return callback&&(console.error("Deprecated: callback, use promise (HIPIEWorkunit.prototype.fetchResult)"),callback(response)),response})},HIPIEWorkunit.prototype.call=function(request,callback){const context=this;if(request.refresh||!this._resultNameCache||!this._resultNameCacheCount)return this.fetchResults(callback).then(function(response){return filterResults(request)});return new Promise(function(resolve,reject){resolve(filterResults(request))});function filterResults(request2){const changedFilter={};for(const key in request2)request2[key+"_changed"]!==void 0&&(changedFilter[key]={value:request2[key]});const retVal={};for(const hipieKey in context._hipieResults){const hipieResult=context._hipieResults[hipieKey],outputFilter={};for(let i=0;i<hipieResult.filters.length;++i){const filter=hipieResult.filters[i];filter.isRange()||(outputFilter[filter.fieldid]=changedFilter[filter.fieldid]||{value:void 0},outputFilter[filter.fieldid].filter=filter)}retVal[hipieResult.id]=context._resultNameCache[hipieResult.from].filter(function(row){for(const key2 in outputFilter)if(!outputFilter[key2].filter.matches(row,outputFilter[key2].value))return!1;return!0})}return retVal}};function HIPIEDatabomb(){HIPIEWorkunit.call(this)}HIPIEDatabomb.prototype=Object.create(HIPIEWorkunit.prototype),HIPIEDatabomb.prototype.databomb=function(_){return arguments.length?(this._databomb=_,this):this._databomb},HIPIEDatabomb.prototype.databombOutput=function(from,id){if(arguments.length)return this._resultNameCacheCount++,this._databomb instanceof Array?this._resultNameCache[from]=this._databomb.map(espRowFix):this._resultNameCache[from]=this._databomb[from].map(espRowFix),this},HIPIEDatabomb.prototype.fetchResults=function(callback){const context=this;return new Promise(function(resolve,reject){callback&&(console.error("Deprecated: callback, use promise (HIPIEDatabomb.prototype.fetchResults)"),callback(context._resultNameCache)),resolve(context._resultNameCache)})};function createESPConnection(url){url=url||document.URL;const testURL=new ESPUrl().url(url);return testURL.isWsWorkunits_GetStats()?new WsWorkunits_GetStats().url(url):testURL.isWsWorkunits()?new WsWorkunits$1().url(url):testURL.isWsEcl()?new WsECL().url(url):null}function hookJsonp(func){jsonp=func}const Comms$1=Object.freeze(Object.defineProperty({__proto__:null,Basic,Comms,ESPMappings,ESPUrl,HIPIEDatabomb,HIPIERoxie,HIPIEWorkunit,WsECL,WsWorkunits:WsWorkunits$1,createESPConnection,hookJsonp},Symbol.toStringTag,{value:"Module"}));function nestedRowFix(row){if(row.Row&&row.Row instanceof Array)return row.Row.map(nestedRowFix);if(row instanceof Object)for(const key in row)row[key]=nestedRowFix(row[key]);return row}let enableBasicCommsCache=!1,basicCommsCache={};function BasicComms(){Basic.call(this)}BasicComms.prototype=Object.create(Basic.prototype),BasicComms.prototype.jsonp=function(url,request){const requestStr=JSON.stringify(request);return enableBasicCommsCache&&basicCommsCache[url]&&basicCommsCache[url][requestStr]?Promise.resolve(basicCommsCache[url][requestStr]):Basic.prototype.jsonp.apply(this,arguments).then(function(response){return enableBasicCommsCache&&(basicCommsCache[url]||(basicCommsCache[url]={}),basicCommsCache[url][requestStr]=response),response})};function WsWorkunits(baseUrl){BasicComms.call(this),this.url(baseUrl+"WsWorkunits/")}WsWorkunits.prototype=Object.create(BasicComms.prototype),WsWorkunits.prototype.wuQuery=function(options){const url=this.getUrl({pathname:"WsWorkunits/WUQuery.json"}),request={Wuid:"",Type:"",Cluster:"",RoxieCluster:"",Owner:"",State:"",StartDate:"",EndDate:"",ECL:"",Jobname:"",LogicalFile:"",LogicalFileSearchType:"",After:"",Before:"",Count:"",PageSize:100,PageStartFrom:0,PageEndAt:"",LastNDays:"",Sortby:"",Descending:0,CacheHint:""};for(const key in options)request[key]=options[key];return this.jsonp(url,request).then(function(response){return response.WUQueryResponse&&response.WUQueryResponse.Workunits?response.WUQueryResponse.Workunits.ECLWorkunit:[]})};function Workunit(baseUrl,wuid){BasicComms.call(this),this.url(baseUrl+"WsWorkunits/"),this._wuid=wuid}Workunit.prototype=Object.create(BasicComms.prototype),Workunit.prototype.wuInfo=function(options){const url=this.getUrl({pathname:"WsWorkunits/WUInfo.json"}),request={Wuid:this._wuid,TruncateEclTo64k:!0,IncludeExceptions:!1,IncludeGraphs:!1,IncludeSourceFiles:!1,IncludeResults:!1,IncludeResultsViewNames:!1,IncludeVariables:!1,IncludeTimers:!1,IncludeResourceURLs:!1,IncludeDebugValues:!1,IncludeApplicationValues:!1,IncludeWorkflows:!1,IncludeXmlSchemas:!1,SuppressResultSchemas:!0};for(const key in options)request[key]=options[key];return this.jsonp(url,request).then(function(response){if(enableBasicCommsCache){const retVal={WUInfoResponse:{Workunit:{}}};for(const key in options){const includeKey=key.substring(7);retVal.WUInfoResponse.Workunit[includeKey]=response.WUInfoResponse.Workunit[includeKey]}basicCommsCache[url][JSON.stringify(request)]=retVal}return response})},Workunit.prototype.wuUpdate=function(options){const url=this.getUrl({pathname:"WsWorkunits/WUUpdate.json"}),request={Wuid:this._wuid};for(const key in options)request[key]=options[key];return this.post(url,request)},Workunit.prototype.appData=function(appID,key,_){if(arguments.length===2)return this.wuInfo({IncludeApplicationValues:!0}).then(function(response){let persistString;return response.WUInfoResponse&&response.WUInfoResponse.Workunit&&response.WUInfoResponse.Workunit.ApplicationValues&&response.WUInfoResponse.Workunit.ApplicationValues.ApplicationValue&&response.WUInfoResponse.Workunit.ApplicationValues.ApplicationValue.filter(function(row){return row.Application===appID&&row.Name===key}).forEach(function(row){persistString=row.Value}),persistString});if(arguments.length===3)return this.wuUpdate({"ApplicationValues.ApplicationValue.0.Application":appID,"ApplicationValues.ApplicationValue.0.Name":key,"ApplicationValues.ApplicationValue.0.Value":_,"ApplicationValues.ApplicationValue.itemcount":1})},Workunit.prototype.results=function(){const context=this;return this.wuInfo({IncludeResults:!0}).then(function(response){let retVal=[];return common.Utility.exists("WUInfoResponse.Workunit.Results.ECLResult",response)&&(retVal=response.WUInfoResponse.Workunit.Results.ECLResult.map(function(result){return new WUResult(context.getUrl({pathname:"WsWorkunits/"}),context._wuid,result.Name)})),retVal})},Workunit.prototype.result=function(dataSource,resultName){return dataSource=dataSource||this._wuid,createResult(dataSource,resultName)};function WUResult(baseUrl,wuid,name){BasicComms.call(this),this.url(baseUrl+"WUResult.json"),this._wuid=wuid,this._name=name,this._xmlSchema=null}WUResult.prototype=Object.create(BasicComms.prototype),WUResult.prototype.wuid=function(_){return arguments.length?(this._wuid=_,this):this._wuid},WUResult.prototype.name=function(_){return arguments.length?(this._name=_,this):this._name},WUResult.prototype.query=function(options,filter){options=options||{},filter=filter||{};const request={Wuid:this._wuid,ResultName:this._name,SuppressXmlSchema:!0,Start:0,Count:-1};for(const key in options)request[key]=options[key];let filterIdx=0;for(const fKey in filter)request["FilterBy.NamedValue."+filterIdx+".Name"]=fKey,request["FilterBy.NamedValue."+filterIdx+".Value"]=filter[fKey],++filterIdx;filterIdx&&(request["FilterBy.NamedValue.itemcount"]=filterIdx);const context=this;return this.jsonp(this.url(),request).then(function(response){return response.WUResultResponse&&response.WUResultResponse.Result&&response.WUResultResponse.Result[context._name]?(enableBasicCommsCache&&(basicCommsCache[context.url()][JSON.stringify(request)]={WUResultResponse:{Result:response.WUResultResponse.Result}}),context._xmlSchema=response.WUResultResponse.Result.XmlSchema,nestedRowFix(response.WUResultResponse.Result[context._name])):[]})};function LogicalFile(baseUrl,logicalName){BasicComms.call(this),this.url(baseUrl+"WUResult.json"),this._logicalName=logicalName,this._xmlSchema=null}LogicalFile.prototype=Object.create(BasicComms.prototype),LogicalFile.prototype.query=function(options,filter){options=options||{},filter=filter||{};const request={Cluster:"hthor",LogicalName:this._logicalName,SuppressXmlSchema:this._xmlSchema!==null,Start:0,Count:-1};for(const key in options)request[key]=options[key];let filterIdx=0;for(const fKey in filter)request["FilterBy.NamedValue."+filterIdx+".Name"]=fKey,request["FilterBy.NamedValue."+filterIdx+".Value"]=filter[fKey],++filterIdx;filterIdx&&(request["FilterBy.NamedValue.itemcount"]=filterIdx);const context=this;return this.jsonp(this.url(),request).then(function(response){return response.WUResultResponse&&response.WUResultResponse.Result&&response.WUResultResponse.Result.Row?(context._xmlSchema=response.WUResultResponse.Result.XmlSchema,nestedRowFix(response.WUResultResponse.Result.Row)):[]})};function RoxieQuery(baseUrl,resultName){BasicComms.call(this);const urlParts=baseUrl.split("/");let queryName=urlParts.pop();queryName.toLowerCase()==="json"&&(queryName=urlParts.pop()),this._queryName=queryName,this._resultName=resultName,this.url(urlParts.join("/")+"/"+queryName+"/json")}RoxieQuery.prototype=Object.create(BasicComms.prototype);function trimRight(str){return str&&str.replace?str.replace(/ +$/,""):str}function postFilter(results,filter){return results.filter(function(row){for(const key in filter)if(row[key]!==void 0&&trimRight(filter[key])!==trimRight(row[key]))return!1;return!0})}function locateRoxieResponse(response){for(const key in response){if(response[key].Row&&response[key].Row instanceof Array)return response;const retVal=locateRoxieResponse(response[key]);if(retVal)return retVal}return null}RoxieQuery.prototype.query=function(options,filter){options=options||{},filter=filter||{};const request={};for(const key in options)request[key]=options[key];for(const fKey in filter)request[fKey]=filter[fKey];const context=this;return this.jsonp(this.url(),request).then(function(response){if(response=locateRoxieResponse(response),response){if(context._resultName){if(response&&response[context._resultName]&&response[context._resultName].Row)return nestedRowFix(postFilter(response[context._resultName].Row,filter))}else for(const key in response)if(response[key].Row)return nestedRowFix(postFilter(response[key].Row,filter))}return[]})};function createResult(_espUrl,dataSource,resultName){const espUrl=new ESPUrl().url(_espUrl);return dataSource.indexOf("http")===0?new RoxieQuery(dataSource,resultName):dataSource.indexOf("~")===0||dataSource.indexOf("::")>=0?new LogicalFile(espUrl.getUrl({pathname:"WsWorkunits/"}),dataSource):dataSource?new WUResult(espUrl.getUrl({pathname:"WsWorkunits/"}),dataSource,resultName):null}function enableCache(_){if(!arguments.length)return enableBasicCommsCache;enableBasicCommsCache=_,_||(basicCommsCache={})}function cache(_){if(!arguments.length)return basicCommsCache;basicCommsCache=_}function createConnection(url){if(url=url||document.URL,new ESPUrl().url(url).isWsWorkunits()){const espConnection=createESPConnection(url);if(espConnection instanceof WsWorkunits$1&&espConnection.wuid())return new Workunit(espConnection.getUrl({pathname:""}),espConnection.wuid()).url(url)}return null}function flattenResult(result,mappings){const retVal={columns:[],data:[]};if(result&&result.length){const colIdx={};if(mappings&&mappings.length)mappings.forEach(function(mapping){colIdx[mapping.value.toLowerCase()]=retVal.columns.length,retVal.columns.push(mapping.key)});else for(const key in result[0])colIdx[key.toLowerCase()]=retVal.columns.length,retVal.columns.push(key);result.forEach(function(row,rowIdx){const rowArr=[];for(const key in row)colIdx[key.toLowerCase()]!==void 0&&(rowArr[colIdx[key.toLowerCase()]]=row[key]);retVal.data.push(rowArr)})}return retVal}var simpleheat$2={exports:{}};(function(module2){module2.exports=simpleheat2;function simpleheat2(canvas){if(!(this instanceof simpleheat2))return new simpleheat2(canvas);this._canvas=canvas=typeof canvas=="string"?document.getElementById(canvas):canvas,this._ctx=canvas.getContext("2d"),this._width=canvas.width,this._height=canvas.height,this._max=1,this._data=[]}simpleheat2.prototype={defaultRadius:25,defaultGradient:{.4:"blue",.6:"cyan",.7:"lime",.8:"yellow",1:"red"},data:function(data){return this._data=data,this},max:function(max){return this._max=max,this},add:function(point){return this._data.push(point),this},clear:function(){return this._data=[],this},radius:function(r,blur){blur=blur===void 0?15:blur;var circle=this._circle=this._createCanvas(),ctx=circle.getContext("2d"),r2=this._r=r+blur;return circle.width=circle.height=r2*2,ctx.shadowOffsetX=ctx.shadowOffsetY=r2*2,ctx.shadowBlur=blur,ctx.shadowColor="black",ctx.beginPath(),ctx.arc(-r2,-r2,r,0,Math.PI*2,!0),ctx.closePath(),ctx.fill(),this},resize:function(){this._width=this._canvas.width,this._height=this._canvas.height},gradient:function(grad){var canvas=this._createCanvas(),ctx=canvas.getContext("2d"),gradient=ctx.createLinearGradient(0,0,0,256);canvas.width=1,canvas.height=256;for(var i in grad)gradient.addColorStop(+i,grad[i]);return ctx.fillStyle=gradient,ctx.fillRect(0,0,1,256),this._grad=ctx.getImageData(0,0,1,256).data,this},draw:function(minOpacity){this._circle||this.radius(this.defaultRadius),this._grad||this.gradient(this.defaultGradient);var ctx=this._ctx;ctx.clearRect(0,0,this._width,this._height);for(var i=0,len=this._data.length,p;i<len;i++)p=this._data[i],ctx.globalAlpha=Math.max(p[2]/this._max,minOpacity===void 0?.05:minOpacity),ctx.drawImage(this._circle,p[0]-this._r,p[1]-this._r);var colored=ctx.getImageData(0,0,this._width,this._height);return this._colorize(colored.data,this._grad),ctx.putImageData(colored,0,0),this},_colorize:function(pixels,gradient){for(var i=0,len=pixels.length,j;i<len;i+=4)j=pixels[i+3]*4,j&&(pixels[i]=gradient[j],pixels[i+1]=gradient[j+1],pixels[i+2]=gradient[j+2])},_createCanvas:function(){return typeof document<"u"?document.createElement("canvas"):new this._canvas.constructor}}})(simpleheat$2);var simpleheatExports=simpleheat$2.exports;const simpleheat$1=getDefaultExportFromCjs(simpleheatExports),_simpleheat=_mergeNamespaces({__proto__:null,default:simpleheat$1},[simpleheatExports]),simpleheat=window.simpleheat||_simpleheat&&simpleheat$1||_simpleheat;class HeatMap extends common.CanvasWidget{constructor(){super();__publicField(this,"_heat")}enter(domNode,element){super.enter(domNode,element),this.resize(this._size),this._heat=simpleheat(domNode)}update(domNode,element){if(super.update(domNode,element),this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id())),this.topLeftX_exists()&&this.topLeftY_exists()&&this.bottomRightX_exists()&&this.bottomRightY_exists()?this._heat.data(this.skewedData()):this._heat.data(this.data()),this.radius()&&this._heat.radius(this.radius(),this.blur()),this.usePalette()){const grad={};for(let idx=1;idx<=this.colorCount();idx++){const value=idx/this.colorCount();grad[value]=this._palette(idx,1,this.colorCount())}this._heat.defaultGradient=grad,this._heat.gradient(grad)}else this.gradient()&&(this._heat.defaultGradient=this.gradient(),this._heat.gradient(this.gradient()));this._heat.draw()}exit(domNode,element){delete this._heat,super.exit(domNode,element)}resize(size){const retVal=common.CanvasWidget.prototype.resize.apply(this,arguments);return this._heat!==void 0&&this._heat.resize(),retVal}skewedData(){const context=this,retArr=[],arr=this.data(),box=this.size(),coordsWidth=this.bottomRightX()-this.topLeftX(),coordsHeight=this.bottomRightY()-this.topLeftY(),pixelValueX=coordsWidth/box.width,pixelValueY=coordsHeight/box.height;return arr.forEach(function(n){const left=Math.abs(n[0]-context.topLeftX()),top=Math.abs(n[1]-context.topLeftY()),newX=left/pixelValueX,newY=top/pixelValueY;retArr.push([newX,newY,n[2]])}),retArr}}HeatMap.prototype._class+=" other_HeatMap",HeatMap.prototype._palette=common.Palette.rainbow("default"),HeatMap.prototype.publish("radius",15,"number","Set point radius",null,{tags:["Basic"]}),HeatMap.prototype.publish("blur",15,"number","Set point blur",null,{tags:["Basic"]}),HeatMap.prototype.publish("max",1,"number","Set max data value",null,{tags:["Basic"]}),HeatMap.prototype.publish("gradient",{.4:"blue",.6:"cyan",.7:"lime",.8:"yellow",1:"red"},"object","Set gradient colors",null,{tags:["Basic"]}),HeatMap.prototype.publish("usePalette",!1,"boolean","If true, uses paletteID and colorCount to determine gradient",null,{tags:["Basic"]}),HeatMap.prototype.publish("colorCount",10,"number","Top left x-value",null,{tags:["Basic"]}),HeatMap.prototype.publish("paletteID","default","set","Color palette for this widget",HeatMap.prototype._palette.switch(),{tags:["Basic"]}),HeatMap.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]}),HeatMap.prototype.publish("topLeftX",null,"number","Top left x-value",null,{tags:["Basic"],optional:!0}),HeatMap.prototype.publish("topLeftY",null,"number","Top left y-value",null,{tags:["Basic"],optional:!0}),HeatMap.prototype.publish("bottomRightX",null,"number","Bottom right x-value",null,{tags:["Basic"],optional:!0}),HeatMap.prototype.publish("bottomRightY",null,"number","Bottom right y-value",null,{tags:["Basic"],optional:!0});class HPCCBadge extends common.SVGWidget{constructor(){super();__publicField(this,"root");__publicField(this,"logo");__publicField(this,"logo_accent");__publicField(this,"logo_circles");__publicField(this,"line");__publicField(this,"circle_1");__publicField(this,"circle_2");__publicField(this,"circle_3");__publicField(this,"circle_4");__publicField(this,"circle_5");__publicField(this,"circle_6");__publicField(this,"circle_7");__publicField(this,"circle_8");__publicField(this,"circle_accent");__publicField(this,"text");__publicField(this,"text_hpccsystems");__publicField(this,"text_r");__publicField(this,"text_tm")}testData(domNode,element){return this}enter(domNode,element){super.enter(domNode,element),this.root=element.append("g"),this.logo=this.root.append("g"),this.logo_accent=this.root.append("g"),this.line=this.logo_accent.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","m 189.38849,364.55373 c 191.6,3.8 0,0 191.6,3.8 l 0.1,-4.2 c -191.7,0.4 0,0 -191.7,0.4 z"),this.circle_accent=this.logo_accent.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#6E6E73").attr("d","M421.3,354.2c6.9,6.9,3.1,18.7-8.6,26.1c-11.8,7.4-26.3,6.9-32.1-0.6c-5.5-7.2-1.1-18.2,9.6-25C401,348,414.7,347.6,421.3,354.2z"),this.logo_circles=this.logo.append("g"),this.circle_1=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","m 258.9815,363.84947 c 1.3,-3 1.5,-5.9 0.4,-8.1 -2.6,-5.4 -11.8,-5.1 -20.6,0.4 -3.5,2.2 -6.5,4.9 -8.7,7.8 -0.11933,0.35821 -0.39477,0.60735 -0.6,0.9 -2.9,4.1 -4.2,8.3 -3,11.6 2.1,6 11.4,6.3 20.9,0.4 5,-3.2 8.9,-7.3 11,-11.4 -0.59813,0.54778 0.47385,-1.28911 0.6,-1.6 z"),this.circle_2=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M291.3,349.3c9.5-5.9,14.1-15,10.5-20c-3.5-4.8-13.3-4.2-22.1,1.3c-8.8,5.5-13.7,14.1-10.9,19.3C271.7,355.4,281.9,355.2,291.3,349.3z"),this.circle_3=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M335.3,321.7c9.5-5.9,13.3-14.5,8.9-19c-4.3-4.3-14.8-3.2-23.6,2.3c-8.8,5.5-13.1,13.7-9.4,18.4C315,328.3,325.9,327.7,335.3,321.7z"),this.circle_4=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M273.2,384c-3.2-6.5-13.5-6.7-23.2-0.7c-9.7,6-15.6,16.4-13.2,23.4c2.5,7.3,13.1,8.2,23.6,1.7 C270.8,401.9,276.5,390.8,273.2,384z"),this.circle_5=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","m 320.84499,363.83119 c 1,-3.4 0.8,-6.6 -1,-9.1 -4.2,-5.9 -15.3,-5.6 -25,0.5 -3.89999,2.4 -7.09999,5.5 -9.19999,8.7 -1.18854,2.2092 -0.0404,-0.09 -1.2,2.2 -2.2,4.1 -2.7,8.3 -0.9,11.5 3.6,6.7 15.09999,7 25.59999,0.5 5,-3.2 8.7,-7.2 10.7,-11.3 0.95557,-2.97582 0.0423,0.0306 1,-3 z"),this.circle_6=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M330.4,348.2c4.6,6,17,5.8,27.5-0.8c10.5-6.6,14.3-16.5,8.9-22c-5.2-5.3-17.1-4.4-26.8,1.6C330.3,333.1,325.9,342.4,330.4,348.2z"),this.circle_7=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M264.1,417.4c-10.8,6.7-17.2,19-14.2,27.8c3.2,9.2,15.4,11.1,27.2,3.7c11.8-7.4,17.8-20.6,13.6-29.2C286.6,411.6,274.8,410.7,264.1,417.4z"),this.circle_8=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M314.2,386.1c-10.8,6.7-16.2,18.4-11.9,26.4c4.5,8.4,17.8,9.5,29.6,2.2c11.8-7.4,16.6-19.9,11.1-27.7C337.7,379.6,324.9,379.3,314.2,386.1z"),this.text=this.root.append("g"),this.text_hpccsystems=this.text.append("path").attr("fill","#6E6E73").attr("d","M224.2,476.3c0.1-1.3,0.1-2.7,0.2-4.1c-0.3,0-0.5,0.1-0.8,0.1c-0.3,0-0.5,0-0.8,0c-0.3,0-0.5,0-0.8,0c-0.3,0-0.5-0.1-0.8-0.1c0.1,1.4,0.1,2.8,0.2,4.1c0.1,1.3,0.1,2.7,0.1,4.1v1.1c-1.1,0-2.3,0-3.3,0.1c-1.1,0-2.2,0-3.3,0c-1.1,0-2.3,0-3.3,0c-1.1,0-2.2,0-3.3-0.1v-1.1c0-1.4,0-2.8,0.1-4.1c0.1-1.3,0.1-2.7,0.2-4.1c-0.3,0-0.5,0.1-0.8,0.1c-0.3,0-0.5,0-0.8,0c-0.3,0-0.5,0-0.8,0c-0.3,0-0.5-0.1-0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-0.1-0.4-0.1c-0.1,0-0.2,0-0.4,0.1c0-0.5,0.1-1,0.1-1.5V475z M432.2,475.7c0.1,0,0.3,0,0.5,0c0.7,0,1.4-0.3,1.4-1.1c0-0.6-0.4-0.9-1-0.9c-0.3,0-0.5,0-0.8,0.1c0,0.3-0.1,0.7-0.1,1V475.7z"),this.text_tm=this.text.append("path").attr("fill","#6E6E73").attr("d","M376.1,322.1c0-0.6,0-1.2,0-1.9c-0.6,0-1.4,0-1.9,0.1c0-0.1,0-0.2,0-0.3c0-0.1,0-0.2,0-0.3c0.8,0,1.5,0,2.3,0s1.5,0,2.3,0c0,0.1,0,0.2,0,0.3c0,0.1,0,0.2,0,0.3c-0.5-0.1-1.3-0.1-1.9-0.1c0,0.6,0,1.2,0,1.9v1.5c0,0.8,0,1.6,0.1,2.3c-0.2,0-0.3,0-0.4,0c-0.1,0-0.3,0-0.4,0c0-0.8,0.1-1.6,0.1-2.3V322.1zM380.5,319.7c0.8,1.7,1.7,3.3,2.6,5c0.4-0.7,1.8-3.3,2.7-5h0.1c0.3,2.3,0.5,4.3,0.7,6.3c-0.1,0-0.3,0-0.4,0c-0.1,0-0.3,0-0.4,0c-0.1-1.6-0.3-3.1-0.4-4.6h0c-0.8,1.5-1.6,3-2.4,4.6h-0.1c-0.7-1.5-1.5-3-2.3-4.6h0c-0.2,1.5-0.4,3.6-0.4,4.6c-0.1,0-0.2,0-0.3,0c-0.1,0-0.2,0-0.3,0c0.3-2,0.7-4.4,0.9-6.3H380.5z");const bbox=this.root.node().getBBox(),centerX=bbox.x+bbox.width/2,centerY=bbox.y+bbox.height/2,scale=Math.min(this.width(),this.height())/Math.max(bbox.width,bbox.height);this.root.attr("transform","translate("+-centerX*scale+","+-centerY*scale+")scale("+scale+")")}update(domNode,element){switch(super.update(domNode,element),this.animation()){case"none":break;case"accentInOut":this.logo.attr("opacity",0),this.logo_accent.attr("transform","translate(-400, 0)"),this.text.attr("opacity",0),this.logo.transition().duration(1e3).attr("opacity",1),this.logo_accent.transition().delay(500).duration(1500).attr("transform","translate(0, 0)"),this.text.transition().delay(100).duration(1e3).attr("opacity",1),this.logo_accent.transition().ease("back").delay(7e3).duration(1500).attr("transform","translate(400, 0)"),this.text.transition().delay(8400).duration(1e3).attr("opacity",0),this.logo_accent.transition().delay(8500).duration(1e3).attr("opacity",0),this.logo.transition().delay(8500).duration(1e3).attr("opacity",0);break;case"accentIn":this.logo.attr("opacity",0),this.logo_accent.attr("transform","translate(-400, 0)"),this.text.attr("opacity",0),this.logo.transition().duration(1e3).attr("opacity",1),this.logo_accent.transition().delay(500).duration(1500).attr("transform","translate(0, 0)"),this.text.transition().delay(100).duration(1e3).attr("opacity",1);break;case"fade_in":this.logo.attr("opacity",0),this.logo_accent.attr("opacity",0),this.text.attr("opacity",0),this.logo.transition().duration(1e3).attr("opacity",1),this.logo_accent.transition().duration(1e3).attr("opacity",1),this.text.transition().delay(100).duration(1e3).attr("opacity",1);break}}}HPCCBadge.prototype._class+=" other_HPCCBadge",HPCCBadge.prototype.publish("animation","none","set","Animation Style",["none","accentInOut","accentIn","fade_in"]);class Html extends common.HTMLWidget{constructor(){super(),this._tag="div"}enter(domNode,element){super.enter(domNode,element)}update(domNode,element){super.update(domNode,element),element.style("overflow-x",this.overflowX_exists()?this.overflowX():"").style("overflow-y",this.overflowY_exists()?this.overflowY():"");const html=element.selectAll(".htmlWrapper").data(this.data().length>0?this.data():[this.html()]);html.enter().append("div").attr("class","htmlWrapper").merge(html).html(function(d){return d}),html.exit().remove()}}Html.prototype._class+=" other_Html",Html.prototype.publish("html","","string","Html to render",null,{tags:["Basic"]}),Html.prototype.publish("overflowX",null,"set","CSS overflow-x",["","visible","hidden","scroll","auto","initial","inherit"],{tags:["Basic"],optional:!0}),Html.prototype.publish("overflowY",null,"set","CSS overflow-y",["","visible","hidden","scroll","auto","initial","inherit"],{tags:["Basic"],optional:!0});class IconList extends common.HTMLWidget{constructor(){super();__publicField(this,"_list");__publicField(this,"_entity_list",[]);__publicField(this,"_content_list",[]);this._list=new layout.HorizontalList().orientation_default("horizontal").flexWrap_default("nowrap")}enter(domNode,element){super.enter(domNode,element),element.style("height","100%").style("width","100%"),common.select(domNode.parentElement).style("height","100%").style("width","100%"),this._list.target(domNode)}update(domNode,element){super.update(domNode,element);const listWidgets=this._list.widgets();this.data().forEach((row,idx)=>{listWidgets[idx]?(listWidgets[idx]=this.updateListProperties(listWidgets[idx],idx),this.updateEntityProperties(listWidgets[idx].widgets()[0],idx),listWidgets[idx].widgets()[1].html(this.data()[idx][this.htmlColumnIndex_exists()?this.htmlColumnIndex():1])):listWidgets[idx]=this.updateListProperties(new layout.VerticalList,idx).widgets([this.updateEntityProperties(new common.Entity,idx),new Html().html(this.data()[idx][this.htmlColumnIndex_exists()?this.htmlColumnIndex():1])])}),this._list.widgets(listWidgets.slice(0,this.data().length)),this._list.resize().render()}updateListProperties(list,idx){return list.disableScroll(!0).widgetsFlexBasis([this.iconSize()+"px",`calc(100% - ${this.iconSize()}px)`])}updateEntityProperties(entity,idx){return entity.icon(this.iconColumnIndex_exists()?this.data()[idx][this.iconColumnIndex()]:"?").iconColor(this.iconColorColumnIndex_exists()?this.data()[idx][this.iconColorColumnIndex()]:"#000").iconDiameter(this.iconSize()).iconPaddingPercent(0)}}IconList.prototype._class+=" other_IconList",IconList.prototype.publish("iconSize",72,"number","Size of icon (pixels)"),IconList.prototype.publish("iconColumnIndex",0,"number","Index of column containing icon character"),IconList.prototype.publish("iconColorColumnIndex",1,"number","Index of column containing icon color"),IconList.prototype.publish("htmlColumnIndex",2,"number","Index of column containing html string");class Paginator extends common.HTMLWidget{constructor(){super();__publicField(this,"_tNumPages");__publicField(this,"_numList");__publicField(this,"paginator");__publicField(this,"side");__publicField(this,"_onSelect");this._tag="div",this._tNumPages=1,this._numList=[]}postUpdate(domNode,element){}enter(domNode,element){super.enter(domNode,element);const context=this;this.paginator=element.append("ul").attr("class","paginator pagination pagination-sm"),this.side=element.append("div").attr("class","paginator pagination side"),this.side.append("span").classed("side",!0).text("Page "),this.side.append("input").attr("type","number").attr("class","currentPageNumber").property("value",1).attr("min",1).on("change",function(){context.pageNumber(this.value),context._onSelect(this.value)}),this.side.append("span").classed("side total",!0).text(" of 1")}update(domNode,element){const context=this;if(element.style("bottom",this.bottom()+"px").style("right",this.right()+"px"),this._tNumPages=Math.ceil(this.numItems()/this.itemsPerPage())||1,this.pageNumber()>this._tNumPages&&this.pageNumber(1),this._numList=[],this.numItems()){this._numList.push("first");for(let x=-this.adjacentPages();x<=this.adjacentPages();x++)this.pageNumber()+x>0&&this.pageNumber()+x<=this._tNumPages&&this._numList.push(this.pageNumber()+x);this._numList.push("last")}this.side.select(".total").text(" of "+this._tNumPages),this.side.select(".currentPageNumber").property("value",this.pageNumber()),this.side.select(".currentPageNumber").attr("max",this._tNumPages);const page=this.paginator.selectAll("li").data(this._numList,function(d){return d});page.enter().append(function(d){const li=document.createElement("li");if(d!==context.pageNumber()){const a=document.createElement("a"),linkText=document.createTextNode(d);return a.appendChild(linkText),a.href="#",li.appendChild(a),li}else{const span=document.createElement("span");return span.innerHTML=d,li.appendChild(span),li}}).on("click",function(d,i){switch(common.d3Event().preventDefault(),context.side.select(".currentPageNumber").property("value",context.pageNumber()),d){case"first":context.pageNumber()!==1&&(context.pageNumber(1),context._onSelect(1,"previous"));break;case"last":context.pageNumber()!==context._tNumPages&&(context.pageNumber(context._tNumPages),context._onSelect(context._tNumPages,"previous"));break;default:context.pageNumber(d),context._onSelect(d)}}),page.classed("active",function(e,j){return e===context.pageNumber()}).select("a").text(function(d){return d}),page.exit().remove(),page.order(),this.numItems()===0&&common.select(domNode).remove()}exit(domNode,element){super.exit(domNode,element)}}Paginator.prototype._class+=" other_Paginator",Paginator.prototype.publish("itemsPerPage",2,"number","Pagination items per page",null,{tags:["Private"]}),Paginator.prototype.publish("numItems",10,"number","Pagination total number of items",null,{tags:["Private"]}),Paginator.prototype.publish("pageNumber",1,"number","Pagination set or get the page number",null,{tags:["Private"]}),Paginator.prototype.publish("adjacentPages",2,"number","Number of page indexes either side of current one",null,{tags:["Private"]}),Paginator.prototype.publish("bottom",20,"number","Pagination bottom offset",null,{tags:["Private"]}),Paginator.prototype.publish("right",20,"number","Pagination right offset",null,{tags:["Private"]});class Table extends common.HTMLWidget{constructor(){super();__publicField(this,"_paginator");__publicField(this,"_selectionBag");__publicField(this,"_selectionPrevClick");__publicField(this,"_paginatorTableSpacing");__publicField(this,"tableDiv");__publicField(this,"thead");__publicField(this,"table");__publicField(this,"fixedHead");__publicField(this,"fixedHeadTable");__publicField(this,"fixedThead");__publicField(this,"unfixedThead");__publicField(this,"tbody");__publicField(this,"tfoot");__publicField(this,"fixedCol");__publicField(this,"fixedColTable");__publicField(this,"fixedColHead");__publicField(this,"fixedColHeadRow");__publicField(this,"fixedColBody");__publicField(this,"fixedColFoot");__publicField(this,"fixedColFootRow");__publicField(this,"_prevDescending");__publicField(this,"_prevSortByFieldIndex");__publicField(this,"_hasChildWidgets");__publicField(this,"_tNumPages");__publicField(this,"_empty_col_idx_arr");this._tag="div",this.columns([]),this._paginator=new Paginator,this._selectionBag=new common.Utility.Selection(this),this._selectionPrevClick=null,this._paginatorTableSpacing=4}size(_){const retVal=super.size.apply(this,arguments);if(arguments.length&&this.tableDiv){const topMargin=this.showHeader()&&this.fixedHeader()?this.thead.property("offsetHeight"):0;this.tableDiv.style("width",this._size.width+"px").style("height",this._size.height-topMargin+"px"),this._element.style("width",this._size.width+"px").style("height",this._size.height+"px")}return retVal}isHidden(colIdx){if(this.pivot())return!1;if(this.hiddenColumns().indexOf(colIdx)!==-1)return!0;const fields=this.fields();return!!(fields&&fields[colIdx]&&(fields[colIdx].type()==="hidden"||this._empty_col_idx_arr.indexOf(colIdx)!==-1))}tableColumns(_){const retVal=this.columns.apply(this,arguments);return!arguments.length&&this.pivot()?this._db.column(0):retVal}tableData(_){const retVal=this.data.apply(this,arguments);return!arguments.length&&this.pivot()?this._db.columns().filter(function(col,idx){return idx>0}):retVal}field(rowIdx,colIdx){const noTransform={transform:d=>d};return this.pivot()?colIdx===0?noTransform:this.fields()[rowIdx+1]:rowIdx===-1?noTransform:this.fields()[colIdx]}calcFieldsIndex(colIdx){let i=-1,offset=0;const colLen=this.columns().length;let visibleCount=0;for(;i<colLen&&visibleCount<=colIdx;)i++,this.isHidden(i)?offset++:visibleCount++;return colIdx+offset}getEmptyColumnIdxArr(columns,data){const ret_arr=[];if(this.hideEmptyColumns())for(let col_idx=0;col_idx<columns.length;col_idx++){let column_is_empty=!0;for(let row_idx=0;row_idx<data.length;row_idx++)if(["",null,void 0].indexOf(data[row_idx][col_idx])===-1){column_is_empty=!1;break}column_is_empty&&ret_arr.push(col_idx)}return ret_arr}enter(domNode,element){super.enter(domNode,element),this._placeholderElement.style("overflow","hidden"),this.tableDiv=element.append("div").attr("class","tableDiv"),this.table=this.tableDiv.append("table"),this.fixedHead=element.append("div").classed("header-wrapper",!0),this.fixedHeadTable=this.fixedHead.append("table"),this.fixedThead=this.fixedHeadTable.append("thead").append("tr"),this.unfixedThead=this.table.append("thead").append("tr"),this.tbody=this.table.append("tbody"),this.tfoot=this.table.append("tfoot").append("tr"),this.fixedCol=element.append("div").classed("rows-wrapper",!0),this.fixedColTable=this.fixedCol.append("table"),this.fixedColHead=this.fixedColTable.append("thead"),this.fixedColHeadRow=this.fixedColHead.append("tr"),this.fixedColBody=this.fixedColTable.append("tbody"),this.fixedColFoot=this.fixedColTable.append("tfoot"),this.fixedColFootRow=this.fixedColFoot.append("tr"),this.tableDiv.style("overflow","auto")}update(domNode,element){super.update(domNode,element);const context=this,columns=context.tableColumns(),data=context.tableData(),scrollLeft=this.tableDiv.node().scrollLeft;this._empty_col_idx_arr=this.getEmptyColumnIdxArr(columns,data),this.element().selectAll("table,tbody,th,td").style("width",null),this.sortByFieldIndex_exists()&&(this._prevSortByFieldIndex!==this.sortByFieldIndex()||this._prevDescending!==this.descending())&&(common.Utility.multiSort(data,[{idx:this.sortByFieldIndex(),reverse:this.descending()}]),this._prevSortByFieldIndex=this.sortByFieldIndex(),this._prevDescending=this.descending()),this._hasChildWidgets=!1,this.fixedHeader()?this.thead=this.fixedThead:this.thead=this.unfixedThead,this.fixedHead.style("display",this.fixedHeader()?"table-row":"none"),this.unfixedThead.style("display",this.fixedHeader()?"none":"table-row");const thSel=this.thead.selectAll("th").data(this.showHeader()?columns.filter(function(col,idx){return!context.isHidden(idx)&&context._empty_col_idx_arr.indexOf(idx)===-1}):[]),thUpdate=thSel.enter().append("th").each(function(d){const element2=common.select(this);element2.append("span").attr("class","thText"),element2.append("span").attr("class","thIcon")}).on("click",function(column,idx){context.headerClick(column,idx)}).merge(thSel).style("background-color",this.theadRowBackgroundColor()).style("border-color",this.theadCellBorderColor()).style("color",this.theadFontColor()).style("font-size",this.theadFontSize());if(thUpdate.select(".thText").style("font-family",this.theadFontFamily()).text(function(column,idx){const fieldsIdx=context.calcFieldsIndex(idx);return context.field(-1,fieldsIdx).transform(column)}),thUpdate.select(".thIcon").text(function(column,idx){return context.descending()?context.sortByFieldIndex()===idx?"":"":context.sortByFieldIndex()===idx?"":""}),thSel.exit().remove(),thUpdate.order(),this.paginationLimit()&&this.pagination(data.length>=parseInt(this.paginationLimit())),this.pagination()){this._paginator.target()===null&&this._paginator.target(element.node());const ipp=this._calcRowsPerPage(thUpdate);this.itemsPerPage(ipp),this._paginator.numItems(data.length),this._tNumPages=Math.ceil(this._paginator.numItems()/this.itemsPerPage())||1,(this.pageNumber()>this._tNumPages||this.pageNumber()<=0)&&this.pageNumber(1),this._paginator._onSelect=function(p,d){context.pageNumber(p),context.render()}}else this._paginator.numItems(0);const startIndex=this.pageNumber()-1,itemsOnPage=this.itemsPerPage(),start=startIndex*itemsOnPage,end=startIndex*parseInt(itemsOnPage)+parseInt(itemsOnPage);let tData=null;this.topN()?tData=data.slice(0,this.topN()):this.pagination()?tData=data.slice(start,end):tData=data;const totalRow=[this.totalledLabel()?this.totalledLabel():null];if(this.totalledColumns().length!==0){for(let i=0;i<this.totalledColumns().length;i++)this.totalledColumns()[i]=+this.totalledColumns()[i];for(let j=1;j<columns.length;j++){let sum=0;if(this.totalledColumns().indexOf(j)!==-1){for(let k=0;k<tData.length;k++)sum=sum+tData[k][j];totalRow.push(sum)}else totalRow.push("")}const tfSel=this.tfoot.selectAll("td").data(totalRow);tfSel.enter().append("td").merge(tfSel).style("background-color",this.tfootRowBackgroundColor()).style("border-color",this.tfootCellBorderColor()).style("color",this.tfootFontColor()).style("font-size",this.tfootFontSize())[this.renderHtmlDataCells()?"html":"text"](function(d,idx){return context.fields()[idx].transform(d)}),tfSel.exit().remove()}const rowsSel=this.tbody.selectAll("tr.tr_"+this.id()).data(tData.map(function(d,idx){for(let i=0;i<d.length;++i)d[i]===void 0&&(d[i]=null);return{rowIdx:idx,row:d}})),rowsUpdate=rowsSel.enter().append("tr").attr("class","tr_"+this.id()).on("click.selectionBag",function(_d){if(_d.row){const d=_d.row,i=_d.rowIdx;context.selectionBagClick(d,i),context.applyRowStyles(context.getBodyRow(i)),context.applyFirstColRowStyles(context.getFixedRow(i))}},!0).on("mouseover",function(_d){if(_d.row){const i=_d.rowIdx,fixedLeftRows=context.getFixedRow(i);fixedLeftRows.empty()||fixedLeftRows.classed("hover",!0);const tbodyRows=context.getBodyRow(i);tbodyRows.classed("hover",!0),context.applyStyleToRows(tbodyRows),context.applyFirstColRowStyles(fixedLeftRows)}}).on("mouseout",function(_d){if(_d.row){const i=_d.rowIdx,fixedLeftRows=context.getFixedRow(i);fixedLeftRows.classed("hover",!1);const tbodyRows=context.getBodyRow(i);tbodyRows.classed("hover",!1),context.applyStyleToRows(tbodyRows),context.applyFirstColRowStyles(fixedLeftRows)}}).merge(rowsSel).classed("selected",function(_d){const d=_d.row;return context._selectionBag.isSelected(context._createSelectionObject(d))}).classed("trId"+this._id,!0);rowsSel.exit().remove(),this.applyStyleToRows(rowsUpdate);const cellsSel=rowsUpdate.selectAll(".td_"+this.id()).data(function(_d,_trIdx){return _d.row.filter(function(cell,idx){return idx<columns.length&&!context.isHidden(idx)&&context._empty_col_idx_arr.indexOf(idx)===-1}).map(function(cell,idx){return{rowInfo:_d,colIdx:idx,cell}})});cellsSel.enter().append("td").attr("class","td_"+this.id()).on("click",function(tdContents){tdContents.rowInfo&&context.click(context.rowToObj(tdContents.rowInfo.row),context.columns()[tdContents.colIdx],context._selectionBag.isSelected(context._createSelectionObject(tdContents.rowInfo.row)))}).on("dblclick",function(tdContents,idx){tdContents.rowInfo&&context.dblclick(context.rowToObj(tdContents.rowInfo.row),context.columns()[tdContents.colIdx],context._selectionBag.isSelected(context._createSelectionObject(tdContents.rowInfo.row)))}).each(function(tdContents,tdIdx){const alignment=context.getColumnAlignment(tdContents.rowInfo.rowIdx,tdContents.colIdx,tdContents.cell);common.select(this).style("height",null).style("text-align",alignment).style("vertical-align",context.verticalAlign()).classed("tr-"+tdContents.rowInfo.rowIdx+"-td-"+tdIdx,!0)}).merge(cellsSel).each(function(tdContents){const el=common.select(this);if(tdContents.cell instanceof common.Widget){el[context.renderHtmlDataCells()?"html":"text"](null);const widgetDiv=el.selectAll(".div_"+context.id()).data([tdContents.cell],function(d){return d.id()});widgetDiv.exit().each(function(d){d.target(null)}).remove(),widgetDiv.enter().append("div").attr("class","div_"+context.id()).style("width",context.minWidgetWidth()+"px").style("height",context.minWidgetHeight()+"px").each(function(d){const widgetDiv2=common.select(this);d._parentWidget=context,d._class.indexOf("childWidget")<0&&(d._class="childWidget "+d._class),d.target(null).target(widgetDiv2.node())}).merge(widgetDiv).each(function(d){d.resize().lazyRender(),context._hasChildWidgets=!0})}else{el.selectAll(".div_"+context.id()).remove();const fieldsIdx=context.calcFieldsIndex(tdContents.colIdx);el[context.renderHtmlDataCells()?"html":"text"](context.field(tdContents.rowInfo.rowIdx,fieldsIdx).transform(tdContents.cell))}}),cellsSel.exit().remove();const tableMarginHeight=parseInt(this.thead.node().offsetHeight);this.pagination()&&this._hasChildWidgets?(this.tableDiv.style("overflow-y","auto"),this.table.style("margin-bottom","50px"),console.warn("Warning: displaying another widget in the table may cause problems with pagination")):(this.tableDiv.style("overflow-y",null),this.table.style("margin-bottom",null)),this.size(this._size);let fixedColWidth=0;const fixedColThSel=this.fixedColHeadRow.selectAll("th").data(this.fixedColumn()&&this.showHeader()?[columns[0]]:[]),fixedColThUpdate=fixedColThSel.enter().append("th").each(function(d){const element2=common.select(this);element2.append("span").attr("class","thText"),element2.append("span").attr("class","thIcon")}).on("click",function(column,idx){context.headerClick(column,idx)}).merge(fixedColThSel).style("background-color",this.theadRowBackgroundColor()).style("border-color",this.theadCellBorderColor()).style("color",this.theadFontColor()).style("font-size",this.theadFontSize());fixedColThUpdate.select(".thText").style("font-family",this.theadFontFamily()).text(function(column){return column}),fixedColThUpdate.select(".thIcon").text(function(column,idx){return context.descending()?context.sortByFieldIndex()===idx?"":"":context.sortByFieldIndex()===idx?"":""}),fixedColThSel.exit().remove();const fixedColTrSel=this.fixedColBody.selectAll("tr").data(this.fixedColumn()?tData:[]),fixedColTrUpdate=fixedColTrSel.enter().append("tr").attr("class",function(){return"trId"+context._id}).merge(fixedColTrSel).on("click",function(d,i){common.select(rowsUpdate[0][i]).on("click.selectionBag")(rowsUpdate.data()[i],i)}).on("mouseover",function(d,i){common.select(rowsUpdate[0][i]).on("mouseover")(rowsUpdate.data()[i],i)}).on("mouseout",function(d,i){common.select(rowsUpdate[0][i]).on("mouseout")(rowsUpdate.data()[i],i)}).classed("selected",function(d){return context._selectionBag.isSelected(context._createSelectionObject(d))});fixedColTrSel.exit().remove();const fixedColTdSel=fixedColTrUpdate.selectAll("td").data(function(d,i){return[d[0]]}),fixedColTdUpdate=fixedColTdSel.enter().append("td").merge(fixedColTdSel)[this.renderHtmlDataCells()?"html":"text"](function(d){return typeof d=="string"?d.trim():typeof d=="number"?d:""});fixedColTdSel.exit().remove();const fixedColFootTdSel=this.fixedColFootRow.selectAll("td").data(this.fixedColumn()&&this.totalledLabel()?[this.totalledLabel()]:[]),fixedColFootTdUpdate=fixedColFootTdSel.enter().append("td").merge(fixedColFootTdSel)[this.renderHtmlDataCells()?"html":"text"](function(d){return typeof d=="string"?d.trim():typeof d=="number"?d:""});fixedColFootTdSel.exit().remove(),this.fixedColumn()&&!this.fixedSize()&&fixedColFootTdUpdate.length&&(this.showHeader()?fixedColWidth=(fixedColFootTdUpdate.property("offsetWidth")>fixedColFootTdUpdate.property("offsetWidth"),fixedColFootTdUpdate.property("offsetWidth")):fixedColWidth=fixedColFootTdUpdate.property("offsetWidth"),this.fixedCol.style("position","absolute").style("margin-top",-this.tableDiv.property("scrollTop")+tableMarginHeight+"px"),fixedColTdUpdate.style("width",fixedColWidth+"px"),this.fixedColHead.style("position","absolute").style("margin-top",(this.fixedHeader()?this.tableDiv.property("scrollTop"):0)-tableMarginHeight+"px"),fixedColThUpdate.style("width",fixedColWidth+"px"),rowsUpdate.each(function(d,i){const height=common.select(this).select("td").property("offsetHeight");common.select(fixedColTdUpdate[i][0]).style("height",height+"px")})),this.table.style("margin-left",-fixedColWidth+"px"),this.tableDiv.style("margin-left",fixedColWidth+"px").style("width",this.width()-fixedColWidth+"px"),rowsUpdate.empty()||this.setColumnWidths(rowsUpdate);let box;if(this.fixedSize()){const node=common.select(".tableDiv > table").node();if(node){box=node.getBoundingClientRect();let newTableHeight2,finalWidth2;box.width!==0&&box.height!==0?(calcWidth(),calcHeight()):(box.height-tableMarginHeight<=context.tableDiv.property("offsetHeight")?calcHeight():context.fixedHeader()?(newTableHeight2=context.tableDiv.property("offsetHeight"),newTableHeight2=newTableHeight2+"px"):newTableHeight2="100%",box.width-fixedColWidth<context.tableDiv.property("offsetWidth")?calcWidth():context.fixedColumn()?(finalWidth2=context.tableDiv.property("offsetWidth")-fixedColWidth,finalWidth2=finalWidth2+"px"):finalWidth2="100%"),element.classed("childWidget")&&(context._placeholderElement.style("width",finalWidth2+"px").style("height",newTableHeight2+"px"),context.tableDiv.style("overflow","hidden")),context.size({width:finalWidth2,height:newTableHeight2})}}this.setOnScrollEvents(this.tableDiv.node(),tableMarginHeight);function calcWidth(){box.width,context.tbody.property("offsetWidth")+1}function calcHeight(){context.tbody.property("offsetHeight")+tableMarginHeight}this._paginator.render(),setTimeout(function(){context._paginator.right((context.hasVScroll(element)?common.Platform.getScrollbarWidth():0)+context._paginatorTableSpacing).bottom((context.hasHScroll(element)?common.Platform.getScrollbarWidth():0)+context._paginatorTableSpacing).render(function(){context.tableDiv.node().scrollLeft=scrollLeft})},0)}exit(domNode,element){this._paginator.target(null),super.exit(domNode,element)}setColumnWidths(rows){const context=this,firstRow=rows.filter(function(d,i){return i===0});let tds=common.select(null);firstRow.each(function(d){tds=common.selectAll(this.childNodes)});const tableMarginHeight=this.fixedHeader()?this.thead.property("offsetHeight"):0;let totalWidth=1;const tdWidths={};tds.each(function(d,i){tdWidths[i]=this.offsetWidth}),this.thead.selectAll("th").each(function(d,i){const thwidth=this.offsetWidth,tdwidth=tds.empty()?0:tdWidths[i],usewidth=thwidth>=tdwidth?thwidth:tdwidth;this.style.width=usewidth+"px",tds.filter((_d,idx)=>idx===0).each(function(){common.select(this).style("width",usewidth+"px")}),totalWidth+=usewidth}),this.thead.style("position",this.fixedHeader()?"absolute":"relative").style("width",totalWidth+"px").style("margin-top","0px"),this.table.style("width",totalWidth+"px"),this.tableDiv.style("margin-top",(context.fixedHeader()?tableMarginHeight:0)+"px"),this.tbody.style("width",totalWidth+"px")}getBodyRow(i){return this.table.selectAll("tbody tr.trId"+this._id).filter(function(d,idx){return idx===i})}getFixedRow(i){return this._element.selectAll(".rows-wrapper tbody tr").filter(function(d,idx){return idx===i})}setOnScrollEvents(scrollNode,margHeight){const context=this;scrollNode.onscroll=function(e){const topDelta=e.target.scrollTop,leftDelta=e.target.scrollLeft;context.fixedHeader()&&context.thead.style("margin-left",-leftDelta+"px"),context.fixedColumn()&&(context.fixedCol.style("margin-top",-topDelta+margHeight+"px"),context.fixedHeader()&&context.fixedColHead.style("margin-top",topDelta-margHeight+"px"))}}_generateTempRow(){const trow=this.tbody.append("tr");return trow.append("td").text("QQQ"),trow}_createSelectionObject(d){const context=this;return{_id:d,element:()=>context.tbody?context.tbody.selectAll("tr").filter(function(d2){return d2===d}):common.select(null)}}_calcRowsPerPage(th){this._paginator.numItems()===0&&(this._paginator.numItems(1),this.itemsPerPage(1)),this._paginator.render();const thHeight=this.thead.selectAll("th").node()?this.thead.selectAll("th").node().clientHeight:0,tfootHeight=this.tfoot.selectAll("td").node()?this.tfoot.selectAll("td").node().clientHeight:0,tmpRow=this._generateTempRow(),tcellHeight=tmpRow.node().clientHeight;tmpRow.remove();const paginatorHeight=this.calcHeight(this._paginator.element());let ipp=Math.floor((this.height()-thHeight-tfootHeight-paginatorHeight-(this.table.style("width")>=this.table.style("width")?common.Platform.getScrollbarWidth():0)-this._paginatorTableSpacing*2)/tcellHeight)||1;return this.totalledColumns().length!==0&&(ipp-=1),ipp}sort(idx){return this.sortByFieldIndex()!==idx?this.descending(!1):this.descending(!this.descending()),this.sortByFieldIndex(idx),this}selection(_){return arguments.length?(this._selectionBag.set(_.map(function(row){return this._createSelectionObject(row)},this)),this):this._selectionBag.get().map(function(d){return d._id})}selectionBagClick(d,i){if(this.multiSelect()&&common.d3Event().shiftKey&&this._selectionPrevClick){let inRange=!1;const selection=this.tableData().filter(function(row,i2){let lastInRangeRow=!1;return(row===d||row===this._selectionPrevClick)&&(inRange&&(lastInRangeRow=!0),inRange=!inRange),inRange||lastInRangeRow},this);this.selection(selection)}else if(this.multiSelect())this._selectionBag.click(this._createSelectionObject(d),common.d3Event),this._selectionPrevClick=d;else{const selObj=this._createSelectionObject(d);this._selectionBag.click(selObj,{ctrlKey:this._selectionBag.isSelected(selObj)}),this._selectionPrevClick=d}this.render()}applyHoverRowStyles(row){const context=this;row.style("color",context.tbodyHoverRowFontColor()).style("background-color",context.tbodyHoverRowBackgroundColor())}applySelectedRowStyles(row){const context=this;row.style("color",context.tbodySelectedRowFontColor()).style("background-color",context.tbodySelectedRowBackgroundColor())}applyRowStyles(row,isFirstCol=!1){const dataRow=row.datum().row;row.style("color",isFirstCol?this.tbodyFirstColFontColor():this.tbodyFontColor()).style("background-color",isFirstCol?this.tbodyFirstColBackgroundColor():this.tableZebraColor_exists()&&this.tableData().indexOf(dataRow)%2?this.tbodyRowBackgroundColor():this.tableZebraColor())}applyFirstColRowStyles(rows){this.applyStyleToRows(rows,!0)}applyStyleToRows(rows,isFirstCol=!1){isFirstCol=typeof isFirstCol<"u"?isFirstCol:!1;const context=this;rows.each(function(){const tr=common.select(this);tr.classed("hover")?context.applyHoverRowStyles(tr):tr.classed("selected")?context.applySelectedRowStyles(tr):context.applyRowStyles(tr,isFirstCol)})}getColumnAlignment(rowIdx,colIdx,cell){const fieldsIdx=this.calcFieldsIndex(colIdx);switch(this.field(rowIdx,fieldsIdx).__prop_type){case"string":return this.stringAlign();case"number":return this.numberAlign();case"":case void 0:switch(typeof cell){case"string":return this.stringAlign();case"number":return this.numberAlign()}}return null}serializeState(){return{selection:this._selectionBag.get().map(function(d){return d._id}),data:this.data()}}deserializeState(state){if(state){if(state.selection){const context=this;this._selectionBag.set(state.selection.map(function(d){return context._createSelectionObject(d)}))}state.data&&this.data(state.data)}return this}click(row,column,selected){}dblclick(row,column,selected){}headerClick(column,idx){this.sort(idx).render()}}Table.prototype._class+=" other_Table",Table.prototype.publish("renderHtmlDataCells",!1,"boolean","enable or disable HTML within cells",null,{tags:["Private"]}),Table.prototype.publish("pagination",!0,"boolean","Enable or disable pagination",null,{tags:["Private"]}),Table.prototype.publish("paginationLimit",null,"number","Maximum number of rows allowed before pagination defaults to on",null,{tags:["Private"]}),Table.prototype.publishProxy("itemsPerPage","_paginator"),Table.prototype.publishProxy("pageNumber","_paginator","pageNumber",1),Table.prototype.publishProxy("adjacentPages","_paginator"),Table.prototype.publish("topN",null,"number","Total number or rows of data to be displayed in the table",null,{tags:["Private"]}),Table.prototype.publish("pivot",!1,"boolean","Pivot Table"),Table.prototype.publish("showHeader",!0,"boolean","Show or hide the table header",null,{tags:["Private"]}),Table.prototype.publish("fixedHeader",!0,"boolean","Enable or disable fixed table header",null,{tags:["Private"]}),Table.prototype.publish("fixedColumn",!1,"boolean","Enable or disable fixed first column",null,{tags:["Private"]}),Table.prototype.publish("multiSelect",!1,"boolean","Multiple Selection",null,{tags:["Basic"]}),Table.prototype.publish("fixedSize",!1,"boolean","Fix Size to Min Width/Height"),Table.prototype.publish("hideEmptyColumns",!1,"boolean","Hide columns with all empty cells"),Table.prototype.publish("theadFontSize",null,"string","Table head font size",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("tbodyFontSize",null,"string","Table body font size",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("tfootFontSize",null,"string","Table body font size",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("theadFontColor",null,"html-color","Table head font color",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("tbodyFontColor",null,"html-color","Table body font color",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("tfootFontColor",null,"html-color","Table body font color",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("theadFontFamily",null,"string","Table head font family",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("tbodyFontFamily",null,"string","Table body font family",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("tfootFontFamily",null,"string","Table body font family",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("theadCellBorderColor",null,"html-color","Table head cell border color",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("tfootCellBorderColor",null,"html-color","Table head cell border color",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("theadRowBackgroundColor",null,"html-color","Table head row color",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("tfootRowBackgroundColor",null,"html-color","Table head row color",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("tbodyCellBorderColor",null,"html-color","Table body cell border color",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("tbodyRowBackgroundColor",null,"html-color","Table body row color",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("tbodyFirstColFontColor",null,"html-color","Table body first column font color",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("tbodyFirstColBackgroundColor",null,"html-color","Table body first column background color",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("tbodyHoverRowFontColor",null,"html-color","Table body hover row font color",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("tbodyHoverRowBackgroundColor",null,"html-color","Table body hover row background color",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("tbodySelectedRowFontColor",null,"html-color","Table body selected row color",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("tbodySelectedRowBackgroundColor",null,"html-color","Table body selected row color",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("tableZebraColor",null,"html-color","Table zebra row color",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("totalledColumns",[],"array","Array of indices of the columns to be totalled",null,{tags:["Basic"],optional:!0,disable:w=>w.pivot()}),Table.prototype.publish("totalledLabel",null,"string","Adds a label to the first column of the 'Totalled' row",null,{tags:["Basic"],optional:!0,disable:w=>w.pivot()}),Table.prototype.publish("hiddenColumns",[],"array","Array of indices of the columns to be hidden",null,{tags:["Basic"],optional:!0,disable:w=>w.pivot()}),Table.prototype.publish("stringAlign","left","set","Cell alignment for strings",["left","right","center"],{tags:["Basic"],optional:!0}),Table.prototype.publish("numberAlign","right","set","Cell alignment for numbers",["left","right","center"],{tags:["Basic"],optional:!0}),Table.prototype.publish("verticalAlign",null,"set","Cell vertical alignment",[null,"middle","top","bottom"],{tags:["Basic"],optional:!0}),Table.prototype.publish("minWidgetWidth",320,"number","Minimum width of a child widget",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("minWidgetHeight",240,"number","Minimum height of a child widget",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("sortByFieldIndex",null,"number","Index for the field/column to sort the data",null,{tags:["Basic"],optional:!0}),Table.prototype.publish("descending",!1,"boolean","Direction for sorting the data: ascending (true) or descending (false)",null,{tags:["Basic"],optional:!0});function _htmlColorBlock(hexColor){return'<div class="colorBlock" style="background-color:'+hexColor+';"></div>'}class Legend extends Table{constructor(){super();__publicField(this,"_targetWidget");__publicField(this,"_targetWidgetMonitor");this.showHeader(!1),this.pagination(!1)}isRainbow(){const widget=this.getWidget();return widget&&widget._palette&&widget._palette.type()==="rainbow"}targetWidget(_){if(!arguments.length)return this._targetWidget;this._targetWidget=_,this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor);const context=this;return this._targetWidgetMonitor=this._targetWidget.monitor(function(key,newProp,oldProp,source){switch(key){case"chart":case"columns":case"data":case"paletteID":context.lazyRender();break}}),this}getWidget(){if(this._targetWidget)switch(this._targetWidget.classID()){case"chart_MultiChart":return this._targetWidget.chart()}return this._targetWidget}getPalette(){const widget=this.getWidget();if(widget&&widget._palette)switch(widget._palette.type()){case"ordinal":return common.Palette.ordinal(widget._palette.id());case"rainbow":return common.Palette.rainbow(widget._palette.id())}return common.Palette.ordinal("default")}enter(domNode,element){super.enter(domNode,element),common.select(domNode.parentNode).style("overflow-y","auto"),this.renderHtmlDataCells(!0),this.fixedHeader(!1),this.fixedSize(!0),element.classed("other_Legend",!0)}update(domNode,element){const colArr=["Key","Label"];let dataArr=[];if(this._targetWidget){const _palette=this.getPalette();switch(_palette.type()){case"ordinal":const oPalette=_palette;switch(this.dataFamily()){case"2D":dataArr=this._targetWidget.data().map(function(n){return[_htmlColorBlock(oPalette(n[0])),n[0]]},this);break;case"ND":dataArr=this._targetWidget.columns().filter(function(n,i){return i>0}).map(function(n){return[_htmlColorBlock(oPalette(n)),n]},this);break}break;case"rainbow":const rPalette=_palette,format=common.format(this.rainbowFormat()),widget=this.getWidget(),steps=this.rainbowBins(),weightMin=widget._dataMinWeight,weightMax=widget._dataMaxWeight,stepWeightDiff=(weightMax-weightMin)/(steps-1);dataArr.push([_htmlColorBlock(rPalette(weightMin,weightMin,weightMax)),format(weightMin)]);for(let x=1;x<steps-1;++x){const mid=stepWeightDiff*x;dataArr.push([_htmlColorBlock(rPalette(mid,weightMin,weightMax)),format(Math.floor(mid))])}dataArr.push([_htmlColorBlock(rPalette(weightMax,weightMin,weightMax)),format(weightMax)]);break}}this.columns(colArr),this.data(dataArr),super.update(domNode,element),element.classed("horiz-legend",this.orientation()==="horizontal");const table=element.select(".tableDiv > table"),tableRect=table.node().getBoundingClientRect(),elementRect=this._placeholderElement.node().getBoundingClientRect();element.select(".tableDiv").style("overflow","visible");const top=elementRect.height/2-tableRect.height/2,left=elementRect.width/2-tableRect.width/2;table.style("position","absolute").style("top",top+"px").style("left",left+"px");const startIndex=this.pageNumber()-1,itemsOnPage=this.itemsPerPage(),start=startIndex*itemsOnPage,end=startIndex*parseInt(itemsOnPage)+parseInt(itemsOnPage);let tData=null;this.pagination()?tData=this.data().slice(start,end):tData=this.data();const rows=this.tbody.selectAll("tr").data(tData),context=this;rows.on("click",function(d,i){context.onClick(d,i)}).on("dblclick",function(d,i){context.onDblClick(d,i)}).on("mouseover",function(d,i){context.onMouseOver(d,i)})}exit(domNode,element){this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor),super.exit(domNode,element)}onClick(rowData,rowIdx){}onDblClick(rowData,rowIdx){}onMouseOver(rowData,rowIdx){}}Legend.prototype._class+=" other_Legend",Legend.prototype.publish("dataFamily","ND","set","Type of data",["1D","2D","ND","map","any","other"],{tags:["Private"]}),Legend.prototype.publish("orientation","vertical","set","Orientation of Legend rows",["vertical","horizontal"],{tags:["Private"]}),Legend.prototype.publish("rainbowFormat",",","string","Rainbow number formatting",null,{tags:["Private"],optional:!0,disable:w=>!w.isRainbow()}),Legend.prototype.publish("rainbowBins",8,"number","Number of rainbow bins",null,{tags:["Private"],disable:w=>!w.isRainbow()});const origGetBBox=Table.prototype.getBBox;Legend.prototype.getBBox=function(refresh,round){const retVal=origGetBBox.apply(this,arguments),table=this.element().select(".tableDiv > table");if(!table.empty()){const tableRect=table.node().getBoundingClientRect(),width=tableRect.width+8+(this.hasVScroll(this._placeholderElement)?common.Platform.getScrollbarWidth():0),height=tableRect.height+8+(this.hasHScroll(this._placeholderElement)?common.Platform.getScrollbarWidth():0);return{x:retVal.x,y:retVal.y,width:(round?Math.round(width):width)*this._scale,height:(round?Math.round(height):height)*this._scale}}return retVal};class MorphText extends common.SVGWidget{constructor(){super();__publicField(this,"_fontWidth");__publicField(this,"_textElement")}enter(domNode,element){if(!this.fontSize()){const style=window.getComputedStyle(domNode,null);this.fontSize(parseInt(style.fontSize))}this._fontWidth=this.fontSize()*32/48,this._textElement=element.append("g")}dateTime(){const d=new Date,seconds=d.getSeconds().toString().length===1?"0"+d.getSeconds():d.getSeconds(),minutes=d.getMinutes().toString().length===1?"0"+d.getMinutes():d.getMinutes(),hours=d.getHours().toString().length===1?"0"+d.getHours():d.getHours(),ampm=d.getHours()>=12?"pm":"am",months2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][d.getDay()]+" "+months2[d.getMonth()]+" "+d.getDate()+" "+d.getFullYear()+" "+hours+":"+minutes+":"+seconds+ampm}update(domNode,element){const context=this,text=this._textElement.selectAll("text").data(this.data(),function(d){return d.id});text.attr("class","update"),this.transition.apply(text).attr("x",function(d,i){return(-context.data().length/2+i)*context._fontWidth+context._fontWidth/2});const newText=text.enter().append("text").attr("class","enter").attr("font-size",this.fontSize()).attr("dy",".35em").attr("y",(this.reverse()?1:-1)*this._fontWidth*2).attr("x",function(d,i){return(-context.data().length/2+i)*context._fontWidth+context._fontWidth/2}).style("fill-opacity",1e-6).style("text-anchor",this.anchor()).text(function(d){return d.text});this.transition.apply(newText).attr("y",0).style("fill-opacity",1),text.exit().attr("class","exit"),this.transition.apply(text.exit()).attr("y",(this.reverse()?-1:1)*this._fontWidth*2).style("fill-opacity",1e-6).remove()}}MorphText.prototype._class+=" other_MorphText",MorphText.prototype.publish("anchor","middle","set","Sets anchor point",["middle"],{tags:["Basic"]}),MorphText.prototype.publish("fontSize",14,"number","Sets fontsize",null,{tags:["Basic"]}),MorphText.prototype.publish("reverse",!1,"boolean","Reverse Animation",null,{tags:["Basic"]}),MorphText.prototype.publish("text","","string","Sets text/data of widget",null,{tags:["Basic"]});const _origText=MorphText.prototype.text;MorphText.prototype.text=function(_){const retVal=_origText.apply(this,arguments);if(arguments.length){const usedChars={},chars=_.split("");this.data(chars.map(function(d){const id="_"+d;return usedChars[id]===void 0&&(usedChars[id]=0),usedChars[id]++,{text:d,id:d.charCodeAt(0)+1024*usedChars[id]}}))}return retVal};class NestedTable extends Table{constructor(){super(),this.minWidgetHeight(240),this.minWidgetWidth(360)}}NestedTable.prototype._class+=" other_NestedTable";const origColumns=NestedTable.prototype.columns;NestedTable.prototype.columns=function(_){return arguments.length?(this._columns=_,origColumns.call(this,_.map(function(col){return typeof col=="object"?col.label:col}))):origColumns.apply(this,arguments)};const origData=NestedTable.prototype.data;NestedTable.prototype.data=function(_){if(arguments.length){const context=this;return origData.call(this,_.map(function(row){return row.map(function(cell,idx){if(cell instanceof Array){let columns=[];if(typeof context._columns[idx]=="object"&&context._columns[idx].columns)columns=context._columns[idx].columns;else for(let i=0;i<cell.length;++i)columns.push(context._columns[idx]+"."+i);return new Table().columns(columns).data(cell)}return cell})}))}return origData.apply(this,arguments)};class Column extends common.PropertyExt{constructor(){super();__publicField(this,"_owner")}owner(_){return arguments.length?(this._owner=_,this):this._owner}valid(){return!!this.headerLabel()}}Column.prototype._class+=" other_Opportunity.Column",Column.prototype.publish("headerLabel",null,"string","Header value of a table",function(){return this._owner?this._owner.columns():[]},{tags:["Basic"],optional:!0});class MouseHoverColumn extends common.PropertyExt{constructor(){super();__publicField(this,"_owner")}owner(_){return arguments.length?(this._owner=_,this):this._owner}valid(){return!!this.hoverValue()&&!!this.hoverList()}}MouseHoverColumn.prototype._class+=" other_Opportunity.MouseHoverColumn",MouseHoverColumn.prototype.publish("hoverValue",null,"string","Hover value of a table",function(){return this._owner?this._owner.columns():[]},{tags:["Basic"],optional:!0}),MouseHoverColumn.prototype.publish("hoverList",null,"set","Hover value of a table",function(){return this._owner?this._owner.getIds():[]},{tags:["Basic"],optional:!0});class ColumnDropdown extends common.PropertyExt{constructor(){super();__publicField(this,"_owner")}owner(_){return arguments.length?(this._owner=_,this):this._owner}valid(){return!!this.columnIndex()&&!!this.ColumnDropdownList()}}ColumnDropdown.prototype._class+=" other_Opportunity.ColumnDropdown",ColumnDropdown.prototype.publish("columnIndex",null,"number","Column index for display context data based on column dropdown list selction",{},{tags:["Basic","Shared"]}),ColumnDropdown.prototype.publish("ColumnDropdownList",null,"set","column value of a table",function(){return this._owner?this._owner.getIds():[]},{tags:["Basic"],optional:!0});class Opportunity extends common.SVGWidget{constructor(){super();__publicField(this,"groupCount");__publicField(this,"svg");__publicField(this,"tooltipdiv");__publicField(this,"Column");__publicField(this,"MouseHoverColumn");__publicField(this,"ColumnDropdown");this._drawStartPos="origin",this.groupCount=7}enter(domNode,element){super.enter(domNode,element);const h=(this.data().length+1)*(14+10+1)+30;this.svg=element.append("g").attr("width",this.groupCount*100+1).attr("height",h),this.svg.append("defs").append("marker").classed("arrowhead",!0).attr("id","end-arrow").attr("viewBox","0 -5 10 10").attr("refX",6).attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("svg:path").attr("d","M0,-5L10,0L0,5").attr("fill","rgb(100,100,100)"),this.tooltipdiv=common.select("body").append("div").attr("class","other_Opportunity-tooltip tooltip").style("opacity",0)}update(domNode,element){super.update(domNode,element);const context=this,data=this.data(),dropDownOption=this.opportunityId();data.sort(function(a,b){return a.cur_group>b.cur_group?1:a.cur_group<b.cur_group?-1:0});const groups=[];for(let i=1;i<=context.groupCount;i++)groups.push(i);const paddingTop=30,nodeRectHeight=14,verticalPadding=10,h=(data.length+1)*(nodeRectHeight+verticalPadding+1)+paddingTop,w=this.width(),nodeRectWidthPadding=30,nodeRectWidth=w/context.groupCount-nodeRectWidthPadding,group=this.svg.selectAll(".group").data(groups);group.enter().append("rect").attr("class","group"),group.attr("x",function(d,i){return i*w/context.groupCount+1}).attr("y",paddingTop).attr("width",w/this.groupCount).attr("height",h-paddingTop),group.exit().remove();const groupHeadings=this.svg.selectAll(".group_headings").data(groups);if(groupHeadings.enter().append("text").attr("class","group_headings").attr("y",20),groupHeadings.attr("x",function(d,i){return i*w/context.groupCount+w/context.groupCount/context.groupCount}).text(function(d,i){return context.headerLabels().length>0&&context.headerLabels()[i]&&context.headerLabels()[i].headerLabel()?context.headerLabels()[i].headerLabel():""}),groupHeadings.exit().remove(),this.previousGroup()==="prev_group"&&this.currentGroup()==="cur_group"){const node_date_change=this.svg.selectAll(".node_date_change").data(data);node_date_change.enter().append("g").attr("class","node_date_change update").on("mouseover",function(d){context.tooltipdiv.transition().duration(200).style("opacity",.9);let htmlInput="<span style='font-weight:bolder'>Close Date Change </span><br/>";context.mouseHover().forEach(function(obj,index){obj.hoverValue()!==void 0&&(htmlInput=htmlInput+"<span style='font-weight:bold'>"+obj.hoverValue()+": </span>"+d[obj.hoverList()]+"<br/>")});let prevDate=d.prevdate+"";prevDate=prevDate.replace(/(\d\d\d\d)(\d\d)(\d\d)/g,"$3-$2-$1");let fromDate=d.curdate+"";fromDate=fromDate.replace(/(\d\d\d\d)(\d\d)(\d\d)/g,"$3-$2-$1"),htmlInput=htmlInput+"<span style='font-weight:bold'>From: </span>"+prevDate+"<br/><span style='font-weight:bold'>To: </span>"+fromDate+"<br/>";const event=common.d3Event();context.tooltipdiv.html(htmlInput).style("left",event.pageX+"px").style("top",event.pageY-50+"px")}).on("mouseout",function(d){context.tooltipdiv.transition().duration(500).style("opacity",0)}).each(function(d){common.select(this).append("rect").attr("class","node_date_change_rect").attr("width",5).attr("height",nodeRectHeight).attr("rx",6).attr("ry",6)}),node_date_change.attr("transform",function(d,i){return"translate("+(9*w/context.groupCount+nodeRectWidthPadding-80)+","+(i+i*(nodeRectHeight+verticalPadding)+12+paddingTop)+")"}),node_date_change.exit().remove();const node_prev_group=this.svg.selectAll(".node_prev_group").data(data);node_prev_group.enter().append("g").attr("class","node_prev_group").on("mouseover",function(d,i){context.tooltipdiv.transition().duration(200).style("opacity",.9);let tooltipHtml="";context.mouseHover().forEach(function(obj,index){obj.hoverValue()!==void 0&&(tooltipHtml=tooltipHtml+"<span style='font-weight:bold'>"+obj.hoverValue()+": </span>"+d[obj.hoverList()]+"<br/>")});const event=common.d3Event();context.tooltipdiv.html(tooltipHtml).style("left",event.pageX+"px").style("top",event.pageY-100+"px")}).on("mouseout",function(d){context.tooltipdiv.transition().duration(500).style("opacity",0)}).each(function(d){const element2=common.select(this);element2.append("rect").attr("class","node_prev_rect").attr("rx",6).attr("ry",6),element2.append("text").attr("class","node_prev_text")}),node_prev_group.classed("update",!0).classed("changed",function(d){return d.delta!==0}).attr("transform",function(d,i){return"translate("+((d.prev_group-1)*w/context.groupCount+nodeRectWidthPadding/2)+","+(i+i*(nodeRectHeight+verticalPadding)+10+paddingTop)+")"}).each(function(d){const changeLines=common.select(this).selectAll(".arrow").data(d.delta!==0?[d]:[]);changeLines.enter().append("line").attr("class","arrow update"),changeLines.attr("x1",function(d2){return d2.delta>0?nodeRectWidth:0}).attr("y1",nodeRectHeight/2).attr("x2",function(d2){return d2.delta>0?nodeRectWidth+nodeRectWidthPadding-4+(Math.abs(d2.delta)-1)*(w/context.groupCount):-nodeRectWidthPadding-(Math.abs(d2.delta)-1)*(w/context.groupCount)+4}).attr("y2",nodeRectHeight/2).style("stroke-dasharray","3, 3").style("stroke","rgb(100,100,100)").style("marker-end","url(#end-arrow)").style("opacity","1"),changeLines.exit().remove()}),node_prev_group.select(".node_prev_rect").attr("width",nodeRectWidth).attr("height",nodeRectHeight),node_prev_group.select(".node_prev_text").attr("dy",nodeRectHeight/2+3).attr("dx",nodeRectWidth/4).text(function(d){return typeof d[dropDownOption]=="number"?d[dropDownOption]:d[dropDownOption].substring(0,14)}),node_prev_group.exit().remove();const node_cur_group=this.svg.selectAll(".node_cur_group").data(data);node_cur_group.enter().append("g").attr("class","node_cur_group").attr("transform",function(d,i){return"translate("+((d.prev_group-1)*w/context.groupCount+nodeRectWidthPadding/2)+","+(i+i*(nodeRectHeight+verticalPadding)+10+paddingTop)+")"}).on("mouseover",function(d,i){context.tooltipdiv.transition().duration(200).style("opacity",.9);let tooltipHtml="";context.mouseHover().forEach(function(obj,index){obj.hoverValue()!==void 0&&(tooltipHtml=tooltipHtml+"<span style='font-weight:bold'>"+obj.hoverValue()+": </span>"+d[obj.hoverList()]+"<br/>")});const event=common.d3Event();context.tooltipdiv.html(tooltipHtml).style("left",event.pageX+"px").style("top",event.pageY-100+"px")}).on("mouseout",function(d){context.tooltipdiv.transition().duration(500).style("opacity",0)}).each(function(d){const element2=common.select(this);element2.append("rect").attr("class","node_cur_rect").attr("fill",function(d2){let color;return d2.delta<0||d2.cur_group===7?color="#F78181":color="#A9F5A9",color}).attr("rx",6).attr("ry",6),element2.append("a").append("text").attr("class","node_cur_text")}),node_cur_group.classed("update",!0).classed("changed",function(d){return d.delta!==0}).transition().duration(800).ease("linear").attr("transform",function(d,i){return"translate("+((d.cur_group-1)*w/context.groupCount+nodeRectWidthPadding/2)+","+(i+i*(nodeRectHeight+verticalPadding)+10+paddingTop)+")"}).each("end",function(){common.selectAll(".arrow").style("opacity","1")}),node_cur_group.select(".node_cur_group a").classed("update",!0).attr("xlink:href",function(d){return context.url()+d.id}).attr("xlink:show","new"),node_cur_group.select(".node_cur_rect").attr("width",nodeRectWidth).attr("height",nodeRectHeight),node_cur_group.select(".node_cur_text").classed("update",!0).attr("dy",nodeRectHeight/2+3).attr("dx",nodeRectWidth/4).style("fill","blue").text(function(d){return typeof d[dropDownOption]=="number"?d[dropDownOption]:d[dropDownOption].substring(0,14)}),node_cur_group.exit().remove()}for(let colIndex=0;colIndex<context.columnData().length;colIndex++)if(context.columnData()[colIndex]&&context.columnData()[colIndex].ColumnDropdownList()){const columnData=this.svg.selectAll(".columnDataText_"+colIndex).data(data);columnData.enter().append("g").attr("class","columnDataText_"+colIndex+" update").each(function(d){common.select(this).append("text")}),columnData.attr("transform",function(d,i){return"translate("+(context.columnData()[colIndex].columnIndex()*w/context.groupCount+nodeRectWidthPadding/2)+","+(i+i*(nodeRectHeight+verticalPadding)+12+paddingTop)+")"}).attr("width",5).attr("height",nodeRectHeight).attr("rx",6).attr("ry",6),columnData.select("text").attr("y",-6).attr("dy",nodeRectHeight+14).attr("dx",0).attr("height",20).attr("width",29).text(function(d,i){return d[context.columnData()[colIndex].ColumnDropdownList()]}),columnData.exit().remove()}}exit(domNode,element){super.exit(domNode,element)}getIds(){const dropdownList=this.columns();return dropdownList.unshift("default"),dropdownList}}Opportunity.prototype._class+=" other_Opportunity",Opportunity.prototype.Column=Column,Opportunity.prototype.MouseHoverColumn=MouseHoverColumn,Opportunity.prototype.ColumnDropdown=ColumnDropdown,Opportunity.prototype.publish("previousGroup","","set","label in Opportunity",function(){return this.getIds()},{tags:["Basic","Shared"]}),Opportunity.prototype.publish("currentGroup","","set","label in Opportunity",function(){return this.getIds()},{tags:["Basic","Shared"]}),Opportunity.prototype.publish("opportunityId","id","set","Id for label in Opportunity",function(){return this.getIds()},{tags:["Basic","Shared"]}),Opportunity.prototype.publish("url",null,"string","URL in Opportunity",{},{tags:["Basic","Shared"]}),Opportunity.prototype.publish("width",1100,"number","label in Opportunity",{},{tags:["Basic","Shared"]}),Opportunity.prototype.publish("addColumn",null,"string","number of columns in a table",{},{tags:["Basic","Shared"],editor_input:(context,widget,cell,param)=>{cell.append("button").attr("id",context.id()+"_addColumn"+param.id).classed("property-input custom-editor-input addColumn update",!0).text("AddColumn").on("click",function(){widget.groupCount=widget.groupCount+1,context.setProperty(widget,param.id,"Added a new column")})}}),Opportunity.prototype.publish("removeColumn",null,"string","number of columns in a table",function(){return this.columns()},{tags:["Basic","Shared"],editor_input:(context,widget,cell,param)=>{cell.append("button").attr("id",context.id()+"_removeColumn"+param.id).classed("property-input custom-editor-input removeColumn update",!0).text("RemoveColumn").on("click",function(){widget.groupCount=widget.groupCount-1,context.setProperty(widget,param.id,"Removed a column")})}}),Opportunity.prototype.publish("headerLabels",[],"propertyArray","Source Columns",null,{autoExpand:Column}),Opportunity.prototype.publish("mouseHover",[],"propertyArray","mouse hover options",null,{autoExpand:MouseHoverColumn}),Opportunity.prototype.publish("columnData",[],"propertyArray","column data",null,{autoExpand:ColumnDropdown});function discover(widget){return widget.publishedProperties(!1,!0)}function widgetArrayWalker(widgets,visitor){widgets&&widgets.forEach(function(widget){widget.widgetWalker(visitor)})}function widgetPropertyWalker(widget2,visitor,filter){widget2.widgetWalker(function(widget){widget.propertyWalker(visitor,filter)})}function serializeTheme(widget,filter){return JSON.stringify(serializeThemeToObject(widget,filter))}function serializeThemeToObject(widget2,filter){filter=filter||["surface","Color","Font","palette"];const propObj={};widgetPropertyWalker(widget2,null,function(widget,item){if((widget[item.id+"_modified"]()||widget.publishedProperty(item.id).origDefaultValue!==widget.publishedProperty(item.id).defaultValue)&&_isFilterMatch(item.id,filter)){const classParts=widget._class.trim().split(" ");for(const i in classParts)if(classParts.HasOwnProperty(i)){if(propObj[classParts[i]]===void 0&&(propObj[classParts[i]]={}),propObj[classParts[i]][item.id]===void 0){propObj[classParts[i]][item.id]=widget[item.id]();break}else if(propObj[classParts[i]][item.id]===widget[item.id]())break}}});function _isFilterMatch(str,arr){let ret=!1;for(const i in arr)if(str.indexOf(arr[i])!==-1){ret=!0;break}return ret}return propObj}function removeTheme(widget2,callback){widgetPropertyWalker(widget2,null,function(widget,item){widget.publishedProperty(item.id).defaultValue=widget.publishedProperty(item.id).origDefaultValue}),typeof callback=="function"&&callback.call(this)}function applyTheme(widget2,themeObj,callback){const context=this;widgetPropertyWalker(widget2,null,function(widget3,item){switch(item.type){case"widget":return context.applyTheme(widget3[item.id](),themeObj),!0;case"widgetArray":return widget3[item.id]().forEach(function(widget){context.applyTheme(widget,themeObj)},this),!0;default:widget3.applyTheme(themeObj);break}}),typeof callback=="function"&&callback.call(this)}function serializeToObject(widget,filter,includeData,includeState){const retVal={__class:widget.classID()};if(widget._id.indexOf(widget._idSeed)!==0&&(retVal.__id=widget._id),widget.version&&(retVal.__version=widget.version()),retVal.__properties={},widget.propertyWalker((childWwidget2,item)=>{if(childWwidget2[item.id+"_modified"]())switch(item.type){case"widget":return retVal.__properties[item.id]=serializeToObject(childWwidget2[item.id](),null,includeData,includeState&&!widget.serializeState),!0;case"widgetArray":case"propertyArray":return retVal.__properties[item.id]=[],childWwidget2[item.id]().forEach(childWwidget=>{retVal.__properties[item.id].push(serializeToObject(childWwidget,null,includeData,includeState&&!widget.serializeState))}),!0;default:retVal.__properties[item.id]=childWwidget2[item.id]();break}},filter),widget.classID()==="marshaller_Graph"){const vertices=widget.data().vertices;vertices&&(this.__vertices=vertices.map(item=>serializeToObject(item,null,includeData,includeState&&!widget.serializeState)))}return includeData&&widget.data&&(retVal.__data||(retVal.__data={}),retVal.__data.data=widget.data()),includeState&&(widget.serializeState?retVal.__state=widget.serializeState():widget.data&&(retVal.__state={data:widget.data()})),retVal}function serialize(widget,filter,includeData,includeState){return JSON.stringify(serializeToObject(widget,filter,includeData,includeState))}const Persist=Object.freeze(Object.defineProperty({__proto__:null,applyTheme,discover,removeTheme,serialize,serializeTheme,serializeThemeToObject,serializeToObject,widgetArrayWalker,widgetPropertyWalker},Symbol.toStringTag,{value:"Module"}));function hasProperties(type){switch(type){case"widget":case"widgetArray":case"propertyArray":return!0}return!1}class PropertyEditor extends common.HTMLWidget{constructor(){super();__publicField(this,"_widgetOrig");__publicField(this,"_parentPropertyEditor");__publicField(this,"_show_settings");__publicField(this,"_selectedItems");__publicField(this,"__meta_sorting");__publicField(this,"_watch");__publicField(this,"_childPE",common.local());__publicField(this,"_show_header",!0);__publicField(this,"watchDepth",0);this._parentPropertyEditor=null,this._tag="div",this._show_settings=!1}parentPropertyEditor(_){return arguments.length?(this._parentPropertyEditor=_,this):this._parentPropertyEditor}depth(){let retVal=0,parent=this.parentPropertyEditor();for(;parent;)++retVal,parent=parent.parentPropertyEditor();return retVal}show_header(_){return arguments.length?(this._show_header=_,this):this._show_header}show_settings(_){return arguments.length?(this._show_settings=_,this):this._show_settings}rootWidgets(){return this._selectedItems&&this._selectedItems.length?this._selectedItems:this.show_settings()?[this]:this.widget()?[this.widget()]:[]}update(domNode,element){super.update(domNode,element);const context=this,rootWidgets=this.rootWidgets().filter(function(w){return!(w._owningWidget&&w._owningWidget.excludeObjs instanceof Array&&w._owningWidget.excludeObjs.indexOf(w.classID())!==-1)}),table=element.selectAll(`table.property-table.table-${this.depth()}`).data(rootWidgets,function(d){return typeof d.id!="function"?`meta-${d.id}`:d.id()});table.enter().append("table").attr("class",`property-table table-${this.depth()}`).each(function(){const tableElement=common.select(this);context._show_header&&context.parentPropertyEditor()===null&&tableElement.append("thead").append("tr").append("th").attr("colspan","2").each(function(){context.enterHeader(common.select(this))}),tableElement.append("tbody")}).merge(table).each(function(tableData){const tableElement=common.select(this);context._show_header&&context.parentPropertyEditor()===null&&context.updateHeader(tableElement.select("thead > tr > th")),context.renderInputs(tableElement.select("tbody"),tableData)}),table.exit().each(function(){context.renderInputs(element.select("tbody"),null)}).remove()}exit(domNode,element){super.exit(domNode,element),this.watchWidget(null)}watchWidget(widget){if(this._watch&&(window.__hpcc_debug&&(--this.watchDepth,console.info("watchDepth: "+this.watchDepth)),this._watch.remove(),delete this._watch),widget){const context=this;this._watch=widget.monitor(function(_paramId,newVal,oldVal){oldVal!==newVal&&(context.parentPropertyEditor()||context).lazyRender()}),window.__hpcc_debug&&(++this.watchDepth,console.info("watchDepth: "+this.watchDepth))}}enterHeader(th){const context=this;th.append("span"),th.append("i").attr("class","expandIcon fa").on("click",function(){switch(context.peInputIcon()){case"fa-caret-up":case"fa-caret-right":context.element().selectAll(`.table-${context.depth()} > tbody > tr > .headerRow > .peInput > .property-table-collapsed`).classed("property-table-collapsed",!1),context.element().selectAll(`.table-${context.depth()} > tbody > tr > .headerRow > .peInput > i`).classed("fa-minus-square-o",!0).classed("fa-plus-square-o",!1);break;case"fa-caret-down":context.element().selectAll(`.table-${context.depth()} > tbody > tr > .headerRow > .peInput > div`).classed("property-table-collapsed",!0),context.element().selectAll(`.table-${context.depth()} > tbody > tr > .headerRow > .peInput > i`).classed("fa-minus-square-o",!1).classed("fa-plus-square-o",!0);break}context.refreshExpandIcon()});const sortIcon=th.append("i").attr("class","sortIcon fa").on("click",function(){context.refreshSortIcon(sortIcon,!0)});th.append("i").attr("class","hideParamsIcon fa").on("click",function(){context.hideNonWidgets(!context.hideNonWidgets()).render()})}updateHeader(th){const widget=this.widget();let spanText="";widget&&(widget.label&&(spanText+=widget.label()),widget.classID&&(spanText&&(spanText+=" - "),spanText+=widget.classID())),th.select("span").text(spanText),this.refreshExpandIcon(),this.refreshSortIcon(th.select(".sortIcon")),this.refreshHideParamsIcon(th.select(".hideParamsIcon"))}peInputCount(){return this.element().selectAll(`.table-${this.depth()} > tbody > tr > .headerRow > .peInput > div`).size()}peInputCollapsedCount(){return this.element().selectAll(`.table-${this.depth()} > tbody > tr > .headerRow > .peInput > div.property-table-collapsed`).size()}peInputIcon(){const collapsed=this.peInputCollapsedCount();return collapsed===0?"fa-caret-down":collapsed===this.peInputCount()?"fa-caret-up":"fa-caret-right"}refreshExpandIcon(){const newIcon=this.peInputIcon();this.element().select(`.table-${this.depth()} > thead > tr > th > .expandIcon`).classed("fa-caret-up",!1).classed("fa-caret-right",!1).classed("fa-caret-down",!1).classed(newIcon,!0)}refreshSortIcon(sortIcon,increment=!1){const sort=this.sorting(),types=this.sorting_options(),icons=this.__meta_sorting.ext.icons;increment?(sortIcon.classed(icons[types.indexOf(sort)],!1),this.sorting(types[(types.indexOf(sort)+1)%types.length]).render()):sortIcon.classed(icons[types.indexOf(sort)%types.length],!0).attr("title",sort)}refreshHideParamsIcon(hideParamsIcon){hideParamsIcon.classed("fa-eye",!this.hideNonWidgets()).classed("fa-eye-slash",this.hideNonWidgets())}gatherDataTree(widget){if(!widget)return null;const retVal={label:widget.id()+" ("+widget.classID()+")",children:[]};return discover(widget).forEach(function(prop){const node={label:prop.id,children:[]};switch(prop.type){case"widget":node.children.push(this.gatherDataTree(widget[prop.id]()));break;case"widgetArray":case"propertyArray":const arr=widget[prop.id]();arr&&arr.forEach(function(item){node.children.push(this.gatherDataTree(item))},this);break}retVal.children.push(node)},this),retVal}getDataTree(){return this.gatherDataTree(this.widget())}_rowSorting(paramArr){if(this.sorting()==="type"){const typeOrder=["boolean","number","string","html-color","array","object","widget","widgetArray","propertyArray"];paramArr.sort(function(a,b){return a.type===b.type?a.id<b.id?-1:1:typeOrder.indexOf(a.type)<typeOrder.indexOf(b.type)?-1:1})}else this.sorting()==="A-Z"?paramArr.sort(function(a,b){return a.id<b.id?-1:1}):this.sorting()==="Z-A"&¶mArr.sort(function(a,b){return a.id>b.id?-1:1})}filterInputs(d){const discArr=discover(d);if((this.filterTags()||this.excludeTags().length>0||this.excludeParams.length>0)&&!(d instanceof PropertyEditor)){const context=this;return discArr.filter(function(param,_idx){if(d[param.id+"_hidden"]&&d[param.id+"_hidden"]())return!1;for(const excludeParamItem of context.excludeParams()){const arr=excludeParamItem.split(".");let widgetName,excludeParam;if(arr.length>2?(widgetName=arr[0],excludeParam=arr[2]):(widgetName=arr[0],excludeParam=arr[1]),d.class().indexOf(widgetName)!==-1)return param.id!==excludeParam}return context.excludeTags().length>0&¶m.ext&¶m.ext.tags&¶m.ext.tags.some(function(item){return context.excludeTags().indexOf(item)>-1})?!1:!!(context.filterTags()&¶m.ext&¶m.ext.tags&¶m.ext.tags.indexOf(context.filterTags())!==-1||!context.filterTags())})}return discArr}renderInputs(element,d){const context=this;let discArr=[];const showFields=!this.show_settings()&&this.showFields();d&&(discArr=this.filterInputs(d).filter(function(prop){return prop.id!=="fields"?!0:showFields}),!this.show_settings()&&this.showData()&&d.data&&discArr.push({id:"data",type:"array"}),this.hideNonWidgets()&&(discArr=discArr.filter(function(n){return hasProperties(n.type)})),this._rowSorting(discArr));const rows=element.selectAll("tr.prop"+this.id()).data(discArr,function(d2){return d2.id});rows.enter().append("tr").attr("class","property-wrapper prop"+this.id()).each(function(param){const tr=common.select(this);if(hasProperties(param.type))tr.classed("property-widget-wrapper",!0),tr.append("td").attr("colspan","2");else{tr.classed("property-input-wrapper",!0),tr.append("td").classed("property-label",!0).text(param.id);const inputCell=tr.append("td").classed("property-input-cell",!0);context.enterInputs(d,inputCell,param)}}).merge(rows).each(function(param){const tr=common.select(this);tr.classed("disabled",d[param.id+"_disabled"]&&d[param.id+"_disabled"]()),tr.classed("invalid",d[param.id+"_valid"]&&!d[param.id+"_valid"]()),tr.attr("title",param.description),hasProperties(param.type)?context.updateWidgetRow(d,tr.select("td"),param):context.updateInputs(d,param)}),rows.exit().each(function(param){const tr=common.select(this);hasProperties(param.type)&&context.updateWidgetRow(d,tr.select("td"),null)}).remove(),rows.order()}updateWidgetRow(widget,element,param){let tmpWidget=[];widget&¶m&&(tmpWidget=widget[param.id]()||[]);let widgetArr=tmpWidget instanceof Array?tmpWidget:[tmpWidget];if(param&¶m.ext&¶m.ext.autoExpand){let lastModified=!0;const noEmpties=widgetArr.filter(function(row,idx){return lastModified=row.valid(),row._owner=widget,lastModified||idx===widgetArr.length-1},this),widgetDisabled=widget[param.id+"_disabled"]&&widget[param.id+"_disabled"]();let changed=!!(widgetArr.length-noEmpties.length);if(lastModified&&!widgetDisabled){changed=!0;const autoExpandWidget=new param.ext.autoExpand().owner(widget);noEmpties.push(autoExpandWidget)}changed&&(widget[param.id](noEmpties),widgetArr=noEmpties)}const context=this;element.classed("headerRow",!0);const peInput=element.selectAll(`div.peInput-${this.depth()}`).data(widgetArr,function(d){return d.id()});peInput.enter().append("div").attr("class",`peInput peInput-${this.depth()}`).each(function(w){const peInputElement=common.select(this);peInputElement.append("span"),peInputElement.append("i").attr("class","fa").on("click",function(d){const clickTarget=peInputElement.select("div");clickTarget.classed("property-table-collapsed",!clickTarget.classed("property-table-collapsed")),common.select(this).classed("fa-minus-square-o",!clickTarget.classed("property-table-collapsed")).classed("fa-plus-square-o",clickTarget.classed("property-table-collapsed")),context.refreshExpandIcon()});const peDiv=peInputElement.append("div");context._childPE.set(this,new PropertyEditor().label(param.id).target(peDiv.node()))}).merge(peInput).each(function(w){const clickTarget=common.select(this).select("div");common.select(this).select("span").text(`${param.id}`),common.select(this).select("i").classed("fa-minus-square-o",!clickTarget.classed("property-table-collapsed")).classed("fa-plus-square-o",clickTarget.classed("property-table-collapsed")),context._childPE.get(this).parentPropertyEditor(context).showFields(context.showFields()).showData(context.showData()).sorting(context.sorting()).filterTags(context.filterTags()).excludeTags(context.excludeTags()).excludeParams(context.excludeParams()).hideNonWidgets(context.hideNonWidgets()&&w._class.indexOf("layout_")>=0).widget(w).render()}),peInput.exit().each(function(w){context._childPE.get(this).widget(null).render().target(null),context._childPE.remove(this)}).remove()}setProperty(widget,id,value){let topWidget,topPropEditor,propEditor=this,oldValue;for(;propEditor&&widget;){if(propEditor===this&&(oldValue=widget[id](),widget[id](value)),propEditor){topPropEditor=propEditor;const w=propEditor.widget();w instanceof common.Widget&&(topWidget=w)}propEditor=propEditor.parentPropertyEditor()}topWidget&&topWidget.render(),topPropEditor&&topPropEditor.broadcast(id,value,oldValue,widget)}enterInputs(widget,cell,param){cell.classed(param.type+"-cell",!0);const context=this;switch(typeof param.ext.editor_input=="function"&¶m.ext.editor_input(this,widget,cell,param),param.type){case"boolean":cell.append("input").attr("id",this.id()+"_"+param.id).classed("property-input",!0).attr("type","checkbox").on("change",function(){context.setProperty(widget,param.id,this.checked)});break;case"set":cell.append("select").attr("id",this.id()+"_"+param.id).classed("property-input",!0).on("change",function(){context.setProperty(widget,param.id,this.value)});break;case"array":case"object":cell.append("textarea").attr("id",this.id()+"_"+param.id).classed("property-input",!0).attr("autocomplete","off").attr("autocorrect","off").attr("autocapitalize","off").attr("spellcheck","false").on("change",function(){let value;try{value=JSON.parse(this.value)}catch{value=this.value}context.setProperty(widget,param.id,value)});break;default:param.ext&¶m.ext.range?(cell.append("span").classed("property-input-span",!0).attr("id",this.id()+"_"+param.id+"_currentVal").text(param.defaultValue),cell.append("input").attr("type","range").attr("step",param.ext.range.step).attr("min",param.ext.range.min).attr("max",param.ext.range.max).attr("id",this.id()+"_"+param.id).classed("property-input",!0).on("input",function(){context.setProperty(widget,param.id,this.value),common.select("#"+this.id+"_currentVal").text("Current Value: "+this.value)}).on("change",function(){context.setProperty(widget,param.id,this.value),common.select("#"+this.id+"_currentVal").text("Current Value: "+this.value)})):(cell.append(param.ext&¶m.ext.multiline?"textarea":"input").attr("id",this.id()+"_"+param.id).classed("property-input",!0).attr("autocomplete","off").attr("autocorrect","off").attr("autocapitalize","off").attr("spellcheck","false").on("change",function(){context.setProperty(widget,param.id,this.value)}),param.type==="html-color"&&!common.Platform.isIE&&cell.append("input").attr("id",this.id()+"_"+param.id+"_2").classed("property-input",!0).attr("type","color").on("change",function(){context.setProperty(widget,param.id,this.value)}));break}}updateInputs(widget,param){const element=common.selectAll("#"+this.id()+"_"+param.id+", #"+this.id()+"_"+param.id+"_2"),val=widget?widget[param.id]():"";switch(element.property("disabled",widget[param.id+"_disabled"]&&widget[param.id+"_disabled"]()),element.property("invalid",widget[param.id+"_valid"]&&!widget[param.id+"_valid"]()),param.type){case"boolean":element.property("checked",val);break;case"set":const options=element.selectAll("option").data(widget[param.id+"_options"]());options.enter().append("option").merge(options).attr("value",d=>d&&d.value!==void 0?d.value:d).text(d=>d&&d.text!==void 0?d.text:d),options.exit().remove(),element.property("value",val);break;case"array":case"object":element.property("value",JSON.stringify(val,function(_key,value){return value instanceof common.Widget?serialize(value):value}," "));break;default:param.ext&¶m.ext.range&&common.select("#"+this.id()+"_"+param.id+"_currentVal").text("Current Value: "+val),element.property("value",val&&val.length&&val.length>1e5?"...too big to display...":val);break}}}PropertyEditor.prototype._class+=" other_PropertyEditor",PropertyEditor.prototype.publish("showFields",!1,"boolean","If true, widget.fields() will display as if it was a publish parameter.",null,{tags:["Basic"]}),PropertyEditor.prototype.publish("showData",!1,"boolean","If true, widget.data() will display as if it was a publish parameter.",null,{tags:["Basic"]}),PropertyEditor.prototype.publish("sorting","none","set","Specify the sorting type",["none","A-Z","Z-A","type"],{tags:["Basic"],icons:["fa-sort","fa-sort-alpha-asc","fa-sort-alpha-desc","fa-sort-amount-asc"]}),PropertyEditor.prototype.publish("hideNonWidgets",!1,"boolean","Hides non-widget params (at this tier only)",null,{tags:["Basic"]}),PropertyEditor.prototype.publish("label","","string","Label to display in header of property editor table",null,{tags:["Basic"]}),PropertyEditor.prototype.publish("filterTags","","set","Only show Publish Params of this type",["Basic","Intermediate","Advance",""],{}),PropertyEditor.prototype.publish("excludeTags",["Private"],"array","Exclude this array of tags",null,{}),PropertyEditor.prototype.publish("excludeParams",[],"array","Exclude this array of params (widget.param)",null,{}),PropertyEditor.prototype.publish("widget",null,"widget","Widget",null,{tags:["Basic"],render:!1});const _widgetOrig=PropertyEditor.prototype.widget;PropertyEditor.prototype.widget=function(_){if(arguments.length&&_widgetOrig.call(this)===_)return this;const retVal=_widgetOrig.apply(this,arguments);if(arguments.length&&(this.watchWidget(_),_ instanceof layout.Grid)){const context=this;_.postSelectionChange=function(){context._selectedItems=_._selectionBag.get().map(function(item){return item.widget}),context.lazyRender()}}return retVal};class RadioCheckbox extends common.HTMLWidget{constructor(){super();__publicField(this,"_span");__publicField(this,"_label");__publicField(this,"_Checkbox")}rcData(){if(this.data().length===0)return[];const view=this._db.rollupView([this.textColumn(),this.valueColumn()]);let retVal=[];if(retVal=retVal.concat(view.entries().map(function(row){return{text:row.key,value:row.values.length?row.values[0].key:"",origRow:row.values.length&&row.values[0].values.length?row.values[0].values[0]:[]}},this)),this.sort_exists()){const descending=this.sort()==="descending";retVal.sort(function(l,r){return l.text<r.text?descending?1:-1:l.text>r.text?descending?-1:1:0})}return retVal}enter(domNode,element){super.enter(domNode,element),this._span=element.append("span"),this._label=this._span.append("label").attr("for",this.id()+"_radioCheckbox"),this._Checkbox=this._span.append("div").attr("id",this.id()+"_radioCheckbox")}update(domNode,element){super.update(domNode,element);const context=this;this._label.text(this.label());const radioCheckbox=this._Checkbox.selectAll(".dataRow").data(this.rcData());radioCheckbox.enter().append("div").attr("class","dataRow").each(function(row,idx){const checkboxDiv=common.select(this),id=context.id()+"_checkbox_"+idx;checkboxDiv.append("input").attr("id",id).attr("name",context.id()+"_radioCheckbox").on("change",function(selectedData){context.handleClick()}),checkboxDiv.append("label").attr("for",id)}),radioCheckbox.each(function(row,idx){const rcDiv=common.select(this);rcDiv.select("input").attr("type",context.multiple()?"checkbox":"radio").attr("value",row.value),rcDiv.select("label").text(row.text)}),radioCheckbox.exit().remove(),radioCheckbox.order()}exit(domNode,element){this._span.remove(),super.exit(domNode,element)}handleClick(){const options=[];this._Checkbox.selectAll(".dataRow > input").each(function(row,idx){common.select(this).property("checked")&&row&&row.origRow&&options.push(row.origRow)}),options.length?this.click(this.rowToObj(options[0]),this.valueColumn(),!0):this.click([],this.valueColumn(),!1)}click(row,column,selected){}}RadioCheckbox.prototype._class+=" other_RadioCheckbox",RadioCheckbox.prototype.publish("label",null,"string","Label for RadioCheckbox"),RadioCheckbox.prototype.publish("valueColumn",null,"set","RadioCheckbox display value",function(){return this.columns()},{optional:!0}),RadioCheckbox.prototype.publish("textColumn",null,"set","RadioCheckbox value(s)",function(){return this.columns()},{optional:!0}),RadioCheckbox.prototype.publish("sort",null,"set","Sort contents",["","ascending","descending"],{optional:!0}),RadioCheckbox.prototype.publish("multiple",!1,"boolean","Multiple selection");class Select extends common.HTMLWidget{constructor(){super();__publicField(this,"_span");__publicField(this,"_prompt");__publicField(this,"_select")}selectData(){if(this.data().length===0)return[];const view=this._db.rollupView([this.textColumn(),this.valueColumn()]);let retVal=[];if(retVal=retVal.concat(view.entries().map(function(row){return{text:row.key,value:row.values.length?row.values[0].key:"",origRow:row.values.length&&row.values[0].value.length?row.values[0].value[0]:[]}},this)),this.sort_exists()){const descending=this.sort()==="descending";retVal.sort(function(l,r){return l.text<r.text?descending?1:-1:l.text>r.text?descending?-1:1:0})}return this.optional()&&retVal.unshift({value:"",text:""}),retVal}enter(domNode,element){super.enter(domNode,element),this._span=element.append("span"),this._prompt=this._span.append("label").attr("for",this.id()+"_select");const context=this;this._select=this._span.append("select").attr("id",this.id()+"_select").on("change",function(d){const options=[],options_dom_node=context._select.node().options;for(let i=0;i<options_dom_node.length;++i){const optionNode=options_dom_node[i];optionNode.selected&&options.push(common.select(optionNode).datum().origRow)}options.length?context.click(context.rowToObj(options[0]),context.valueColumn(),!0):context.click([],context.valueColumn(),!1)})}update(domNode,element){super.update(domNode,element),this._prompt.text(this.label()),this._select.attr("multiple",this.multiple()?this.multiple():null).attr("size",this.multiple()&&this.selectSize()?this.selectSize():null);const option=this._select.selectAll(".dataRow").data(this.selectData()),optionUpdate=option.enter().append("option").attr("class","dataRow").merge(option).attr("value",function(row){return row.value}).text(function(row){return row.text});option.exit().remove(),optionUpdate.order()}exit(domNode,element){this._span.remove(),super.exit(domNode,element)}click(row,column,selected){}}Select.prototype._class+=" other_Select",Select.prototype.publish("label",null,"string","Label for select"),Select.prototype.publish("valueColumn",null,"set","Select display value",function(){return this.columns()},{optional:!0}),Select.prototype.publish("textColumn",null,"set","Select value(s)",function(){return this.columns()},{optional:!0}),Select.prototype.publish("optional",!0,"boolean","Optional Select"),Select.prototype.publish("sort",null,"set","Sort contents",["","ascending","descending"],{optional:!0}),Select.prototype.publish("multiple",!1,"boolean","Multiple selection"),Select.prototype.publish("selectSize",5,"number","Size of multiselect box",null,{disable:w=>!w.multiple()});function hasLocalStorage(){const mod="@hpcc-js/other";try{return localStorage.setItem(mod,mod),localStorage.removeItem(mod),!0}catch{return!1}}const _localStorage=hasLocalStorage()?localStorage:{getItem(id){}},getThemes=function(idx){return typeof window.g_defaultThemes=="function"&&window.g_defaultThemes(idx),JSON.parse(_localStorage.getItem("themeEditorThemes")||"{}")},getSerials=function(idx){return typeof window.g_defaultSerials=="function"&&window.g_defaultSerials(idx),JSON.parse(_localStorage.getItem("themeEditorSerials")||"{}")},getThemeNames=function(idx){const loadedThemes=getThemes();let themes=[];for(const themeName in loadedThemes)themes.push(themeName);return typeof idx<"u"&&typeof themes[idx]<"u"&&(themes=themes[idx]),themes},getSerialNames=function(idx){const loadedSerials=getSerials();let serials=[];for(const serialName in loadedSerials)serials.push(serialName);return typeof idx<"u"&&typeof serials[idx]<"u"&&(serials=serials[idx]),serials},tableNeedsRedraw=function(context){let needsRedraw=!1;return typeof context._current_grouping>"u"?context._current_grouping=context._group_params_by:context._current_grouping!==context._group_params_by&&(needsRedraw=!0),typeof context._showing_columns>"u"?context._showing_columns=context.showColumns():context._showing_columns!==context.showColumns()&&(needsRedraw=!0),typeof context._showing_data>"u"?context._showing_data=context.showData():context._showing_data!==context.showData()&&(needsRedraw=!0),needsRedraw},camelizeString=function(str){return str.split(/(?=[0-9A-Z])/).map(function(n){return n.length>1?n+" ":n}).join("").replace(/(?:^|\s)\S/g,function(a){return a.toUpperCase()})},tableInputHtml=function(rowObj,value,widgetArr,idSuffix){let inputHtml="",id="te-input-"+rowObj.id+"-"+idSuffix,inputType;typeof rowObj.ext<"u"&&typeof rowObj.ext.inputType<"u"&&(inputType=rowObj.ext.inputType),typeof rowObj.inputID<"u"&&(id=rowObj.inputID);const dataWIDs="data-paramid='"+rowObj.id+"' data-wids='"+widgetArr.map(function(w){return typeof w.widget=="object"?w.widget._id:w}).join(",")+"'";switch(rowObj.type){case"boolean":const checked=value?" checked":"";inputHtml="<input id='"+id+"' "+dataWIDs+" type='checkbox' class='te-checkbox te-input'"+checked+">";break;case"number":typeof inputType<"u"?inputType==="textarea"?inputHtml="<textarea id='"+id+"' class='te-textarea te-input' "+dataWIDs+">"+value+"</textarea>":inputType==="range"&&(inputHtml="<input id='"+id+"' class='te-input' type='range' "+dataWIDs+" value='"+value+"' min='"+rowObj.ext.min+"' max='"+rowObj.ext.max+"' step='"+rowObj.ext.step+"'>"):inputHtml="<input id='"+id+"' type='text' class='te-text te-input' "+dataWIDs+" value='"+value+"'>";break;case"string":typeof inputType<"u"?inputType==="textarea"&&(inputHtml="<textarea id='"+id+"' class='te-textarea te-input' "+dataWIDs+">"+value+"</textarea>"):inputHtml="<input id='"+id+"' type='text' class='te-text te-input' value='"+value+"' "+dataWIDs+">";break;case"html-color":const valueAttr=value===""?"":" value='"+value+"'";inputHtml="<input id='"+id+"' type='text' class='te-html-color-input te-input' "+dataWIDs+" "+valueAttr+">",inputHtml+="<input type='color' class='te-html-color-button te-input' "+dataWIDs+" "+valueAttr+">";break;case"set":const options=_options(rowObj,value);inputHtml="<select id='"+id+"' class='te-select te-input'"+dataWIDs+">"+options+"</select>";break;case"array":inputHtml="<textarea id='"+id+"' class='te-textarea te-input' data-type='array' "+dataWIDs+">"+value+"</textarea>";break}return typeof rowObj.ext.saveButton<"u"&&(inputHtml+="<button id='"+rowObj.ext.saveButtonID+"'>"+rowObj.ext.saveButton+"</button>"),inputHtml;function _options(obj,val){let options="";return obj.set.forEach(function(s){const selected=s===val?" selected":"";options+="<option value='"+s+"'"+selected+">"+s+"</option>"}),options}};class ThemeEditor extends common.HTMLWidget{constructor(){super();__publicField(this,"_current_grouping");__publicField(this,"_showing_columns");__publicField(this,"_showing_data");__publicField(this,"_contentEditors");__publicField(this,"_showSettings");__publicField(this,"_defaultThemes");__publicField(this,"_widgetObjsById");__publicField(this,"_sharedProperties");__publicField(this,"getThemes");__publicField(this,"getSerials");__publicField(this,"getDefaultThemes");__publicField(this,"getDefaultSerials");this._tag="div",this._current_grouping=void 0,this._showing_columns=void 0,this._showing_data=void 0,this.columns(["Key","Value"]),this._contentEditors=[],this._showSettings=!0,this._defaultThemes=[],this._widgetObjsById={}}showSettings(_){return arguments.length?(this._showSettings=_,this):this._showSettings}onChange(widget,propID){}enter(domNode,element){super.enter(domNode,element),this._placeholderElement.style("overflow","auto")}widgetProperty(widget,propID,_){return _===void 0?widget[propID]():widget[propID](_)}load(elmValue){}save(themeName){}needsPropTableRedraw(){return document.getElementById("te-themeEditorOptions")===null}update(domNode,element){if(super.update(domNode,element),tableNeedsRedraw(this)&&element.selectAll("#"+this._id+" > table").remove(),this._current_grouping=this.paramGrouping(),this._widgetObjsById[this._id]=this,this._sharedProperties=this.findSharedProperties(this.data()),this.needsPropTableRedraw()&&this.showSettings()){const teParams=discover(this);for(const i in teParams)if(teParams[i].ext.tags.indexOf(this.editorComplexity())!==-1){const teParamVal=this[teParams[i].id]();(teParams[i].id==="loadedTheme"||teParams[i].id==="loadedSerial")&&(teParams[i].inputID="te-load-theme"),teParams[i].input=tableInputHtml(teParams[i],teParamVal,[this._id],this._id)}else delete teParams[i];domNode.innerHTML=this.propertiesTableHtml(teParams);const evt=document.createEvent("Events");evt.initEvent("TE Properties Ready",!0,!0),document.dispatchEvent(evt)}this.buildTableObjects(domNode,this._sharedProperties),this.initFunctionality(domNode)}exit(domNode,element){super.exit(domNode,element)}click(d){}propertiesTableHtml(editorParams){const tableObj={id:"te-themeEditorOptions",label:"Editor Options",rowArr:[]},modeTableObj={id:"te-tableModeOptions",label:this.themeMode()?"Save/Load Theme":"Save/Load Serial",rowArr:[]};for(const i in editorParams)this.themeMode()?editorParams[i].ext.tags.indexOf("Theme")===-1&&editorParams[i].ext.tags.indexOf("Serial")===-1?tableObj.rowArr.push({th:camelizeString(editorParams[i].id),td:editorParams[i].input,trClass:"propertyRow"}):editorParams[i].ext.tags.indexOf("Theme")!==-1&&modeTableObj.rowArr.push({th:camelizeString(editorParams[i].id),td:editorParams[i].input,trClass:"propertyRow"}):editorParams[i].ext.tags.indexOf("Serial")===-1&&editorParams[i].ext.tags.indexOf("Theme")===-1?tableObj.rowArr.push({th:camelizeString(editorParams[i].id),td:editorParams[i].input,trClass:"propertyRow"}):editorParams[i].ext.tags.indexOf("Serial")!==-1&&modeTableObj.rowArr.push({th:camelizeString(editorParams[i].id),td:editorParams[i].input,trClass:"propertyRow"});let html="";return tableObj.rowArr.length>0&&(html+=this.tableObjHtml(tableObj)),modeTableObj.rowArr.length>0&&(html+=this.tableObjHtml(modeTableObj)),html}buildTableObjects(targetElement,propObjs){let sectionObjs={};this.themeMode()?sectionObjs={chartColorSection:{id:"te-colorOptions",label:"Chart Colors",rowObjArr:[]},surfaceSection:{id:"te-containerOptions",label:"Container Styles/Colors",rowObjArr:[]},fontSection:{id:"te-fontOptions",label:"Font Styles/Colors",rowObjArr:[]}}:sectionObjs={nonSurfaceSection:{id:"te-chartOptions",label:"Chart Properties",rowObjArr:[]}};for(const p in propObjs)this.themeMode()?p.toUpperCase().indexOf("FONT")!==-1&&!(propObjs[p].arr[0].widget._class.indexOf("layout_Surface")!==-1&&p.toUpperCase().indexOf("COLOR")!==-1)?sectionObjs.fontSection.rowObjArr.push(propObjs[p]):p==="paletteID"?sectionObjs.chartColorSection.rowObjArr.push(propObjs[p]):propObjs[p].arr[0].widget._class.indexOf("layout_Surface")!==-1&§ionObjs.surfaceSection.rowObjArr.push(propObjs[p]):propObjs[p].arr[0].widget._class.indexOf("layout_Surface")===-1&§ionObjs.nonSurfaceSection.rowObjArr.push(propObjs[p]);let html="";for(const i in sectionObjs)html+=this.sharedPropertyTableHtml(sectionObjs[i]);targetElement.innerHTML+=html}initFunctionality(elm){const context=this;_expandCollapse(elm),_inputOnChange(elm),_inputOnClick();function _inputOnClick(elm2){if(context.showSettings()){const saveBtn=document.getElementById("te-save-button");saveBtn.onclick=function(e){const clickedElm=e.target,themeName=clickedElm.previousSibling.value;if(themeName.length>1){const loadSelect=document.getElementById("te-load-theme"),loadOptions=loadSelect.getElementsByTagName("option");let saveExists=!1;for(const i in loadOptions)loadOptions[i].value===themeName&&(saveExists=!0);saveExists||(loadSelect.innerHTML+="<option value='"+themeName+"'>"+themeName+"</option>"),clickedElm.previousSibling.value="",loadSelect.value=themeName}else alert("Save Name cannot be empty.")}}}function _inputOnChange(elm2){const teInputs=elm2.getElementsByClassName("te-input");for(const i in teInputs){if(isNaN(parseInt(i)))break;const inputElm=teInputs[i],inputID=inputElm.getAttribute("id");inputID==="te-load-theme"?inputElm.onchange=function(e){const elm3=e.srcElement;context.load(elm3.value)}:inputID!==null&&inputID.indexOf("te-input-themeMode")!==-1?inputElm.onchange=function(e){const elm3=e.srcElement;context.themeMode(elm3.checked);const name=document.getElementById("te-load-theme"),nameToLoad=name!==null?name.value:"Default";context.load(nameToLoad)}:(inputElm.tagName==="INPUT"||inputElm.tagName==="SELECT"||inputElm.tagName==="TEXTAREA")&&(inputElm.onchange=function(e){const elm3=e.srcElement;let id=elm3.getAttribute("id");elm3.className.split(" ").indexOf("te-html-color-button")!==-1&&(id=elm3.previousSibling.getAttribute("id"),elm3.previousSibling.value=elm3.value);const elmType=elm3.getAttribute("type"),splitId=id.split("-"),genericId=splitId.slice(0,splitId.length-1).join("-")+"-",widsStr=elm3.getAttribute("data-wids"),paramId=elm3.getAttribute("data-paramid");widsStr.split(",").forEach(function(wid){const individualId=genericId+wid,indElm=document.getElementById(individualId);if(elmType==="checkbox")indElm.checked=elm3.checked,context._widgetObjsById[wid][paramId](elm3.checked);else if(elm3.getAttribute("data-type")==="array"){indElm.value=elm3.value;try{context._widgetObjsById[wid][paramId](JSON.parse(elm3.value))}catch{}}else indElm.value=elm3.value,context._widgetObjsById[wid][paramId](elm3.value),indElm.className.split(" ").indexOf("te-html-color-input")!==-1?indElm.nextSibling.value=elm3.value:indElm.className.split(" ").indexOf("te-html-color-button")!==-1&&(indElm.previousSibling.value=elm3.value)}),context.data().forEach(function(d){d.render()})})}}function _expandCollapse(elm2){const tableArr=elm2.getElementsByClassName("te-section-table");for(const i in tableArr)if(typeof tableArr[i].getElementsByTagName=="function"){const thead=tableArr[i].getElementsByTagName("thead");thead[0].onclick=function(e){let elm3=e.toElement;elm3.tagName==="TH"&&(elm3=elm3.parentElement.parentElement);const parent=elm3.parentElement;let tbodyClass="";parent.className.split(" ").indexOf("expanded")===-1?(parent.className="te-section-table expanded",tbodyClass="shown"):(parent.className="te-section-table collapsed",tbodyClass="hidden");const tbody=parent.getElementsByTagName("tbody");tbody[0].className=tbodyClass}}const sharedRowArr=elm2.getElementsByClassName("sharedPropertyRow");for(const n in sharedRowArr)if(typeof sharedRowArr[n].getElementsByClassName=="function"){const label=sharedRowArr[n].getElementsByClassName("te-label");label[0].onclick=function(e){const parent=e.toElement.parentElement;let subRowClass="";parent.className.split(" ").indexOf("expanded")===-1?(parent.className="sharedPropertyRow expanded",subRowClass="shown"):(parent.className="sharedPropertyRow collapsed",subRowClass="hidden");let nextSib=parent.nextSibling;for(;nextSib!==null;)nextSib.className.split(" ").indexOf("sharedPropertyRow")===-1?(nextSib.className="propertyRow "+subRowClass,nextSib=nextSib.nextSibling):nextSib=null}}}}sharedPropertyTableHtml(sectionObj){const tableObj={id:sectionObj.id,label:sectionObj.label,rowArr:[]};return sectionObj.rowObjArr.forEach(function(rowObj){rowObj.arr.forEach(function(widgetObj,widgetIdx){widgetIdx===0&&tableObj.rowArr.push({th:_sharedPropertyLabel(rowObj),td:_sharedPropertyInput(rowObj),trClass:"sharedPropertyRow collapsed"}),tableObj.rowArr.push({th:_propertyLabel(widgetObj),td:_propertyInput(rowObj,widgetIdx),trClass:"propertyRow hidden"})})}),this.tableObjHtml(tableObj);function _propertyLabel(widgetObj){return widgetObj.widget.classID().split("_").join("/")+" <i>["+widgetObj.widget._id+"]</i>"}function _sharedPropertyLabel(rowObj){return camelizeString(rowObj.id)}function _propertyInput(rowObj,idx){const value=_value(rowObj,idx);return tableInputHtml(rowObj,value,[rowObj.arr[idx]],rowObj.arr[idx].widget._id);function _value(rowObj2,idx2){const value2=rowObj2.arr[idx2].widget[rowObj2.id]();return value2!==null?value2:""}}function _sharedPropertyInput(rowObj){const value=_sharedValue(rowObj);return tableInputHtml(rowObj,value,rowObj.arr,"shared");function _sharedValue(rowObj2){const value2=rowObj2.arr[0].widget[rowObj2.id]();return rowObj2.arr.forEach(function(w,i){if(value2!==w.widget[w.id]())return""}),value2!==null?rowObj2.type==="array"?JSON.stringify(value2):value2:""}}}tableObjHtml(tableObj){let html="<table id='"+tableObj.id+"' class='te-section-table expanded'>";return html+="<thead><tr><th colspan='2'>"+tableObj.label+"</th></tr></thead>",html+="<tbody>",tableObj.rowArr.forEach(function(rowObj){html+=this.tableRowObjHtml(rowObj)},this),html+="</tbody>",html+"</table>"}tableRowObjHtml(rowObj){let html=typeof rowObj.trClass<"u"?"<tr class='"+rowObj.trClass+"'>":"<tr>";return html+="<th class='te-label'>"+rowObj.th+"</th>",html+="<td>"+rowObj.td+"</td>",html+"</tr>"}setWidgetObjsById(widgetProp){const context=this,val=widgetProp.widget[widgetProp.id]();widgetProp.type==="widgetArray"?val.forEach(function(widget){context._widgetObjsById[widget._id]=widget}):widgetProp.type==="widget"&&val!==null&&(this._widgetObjsById[val._id]=val)}checkTagFilter(tagArr){const allowTags=["Basic"];let ret=!1;return tagArr.forEach(function(tag){allowTags.indexOf(tag)!==-1&&(ret=!0)}),ret}findSharedProperties(data){const context=this;let propsByID;if(typeof data<"u"&&data.length>0){let allProps=[];propsByID={};const surfacePropsByID={},nonSurfacePropsByID={};data.forEach(function(widget){const gpResponse=_getParams(widget);allProps=allProps.concat(gpResponse)}),allProps.forEach(function(prop){if(["widget","widgetArray"].indexOf(prop.type)!==-1)context.setWidgetObjsById(prop);else if(context.checkTagFilter(prop.ext.tags)){const tempIdx=prop.id;prop.widget._class.indexOf("Surface")!==-1?(typeof surfacePropsByID[tempIdx]>"u"&&(surfacePropsByID[tempIdx]={arr:[]}),surfacePropsByID[tempIdx].id=prop.id,surfacePropsByID[tempIdx].description=prop.description,surfacePropsByID[tempIdx].type=prop.type,surfacePropsByID[tempIdx].set=prop.set,surfacePropsByID[tempIdx].ext=prop.ext,surfacePropsByID[tempIdx].arr.push(prop)):(typeof nonSurfacePropsByID[tempIdx]>"u"&&(nonSurfacePropsByID[tempIdx]={arr:[]}),nonSurfacePropsByID[tempIdx].id=prop.id,nonSurfacePropsByID[tempIdx].description=prop.description,nonSurfacePropsByID[tempIdx].type=prop.type,nonSurfacePropsByID[tempIdx].set=prop.set,nonSurfacePropsByID[tempIdx].ext=prop.ext,nonSurfacePropsByID[tempIdx].arr.push(prop)),typeof propsByID[tempIdx]>"u"&&(propsByID[tempIdx]={arr:[]}),propsByID[tempIdx].id=prop.id,propsByID[tempIdx].description=prop.description,propsByID[tempIdx].type=prop.type,propsByID[tempIdx].set=prop.set,propsByID[tempIdx].ext=prop.ext,propsByID[tempIdx].arr.push(prop)}})}return propsByID;function _getParams(widgetObj,depth){let retArr=[];return widgetObj!==null&&discover(widgetObj).forEach(function(param,i1){if(typeof param.ext.tags<"u"&&retArr.push({id:param.id,type:param.type,description:param.description,set:param.set,ext:param.ext,widget:widgetObj}),param.type==="widgetArray")context.widgetProperty(widgetObj,param.id).forEach(function(childWidget){const cwArr=_getParams(childWidget);retArr=retArr.concat(cwArr)});else if(param.type==="widget"){const childWidget=context.widgetProperty(widgetObj,param.id),temp=_getParams(childWidget);retArr=retArr.concat(temp)}}),retArr}}}ThemeEditor.prototype._class+=" other_ThemeEditor",ThemeEditor.prototype.publish("themeMode",!0,"boolean","Edit default values",null,{tags:["Basic"]}),ThemeEditor.prototype.publish("saveTheme","","string","Save Theme",null,{tags:["Basic","Theme"],saveButton:"Save",saveButtonID:"te-save-button"}),ThemeEditor.prototype.publish("loadedTheme",getThemeNames(1),"set","Loaded Theme",getThemeNames(),{tags:["Basic","Theme"]}),ThemeEditor.prototype.publish("saveSerial","","string","Save Serial",null,{tags:["Basic","Serial"],saveButton:"Save",saveButtonID:"te-save-button"}),ThemeEditor.prototype.publish("loadedSerial",getSerialNames(0),"set","Loaded Serial",getSerialNames(),{tags:["Basic","Serial"]}),ThemeEditor.prototype.publish("showColumns",!0,"boolean","Show Columns",null,{tags:["Intermediate"]}),ThemeEditor.prototype.publish("showData",!0,"boolean","Show Data",null,{tags:["Intermediate"]}),ThemeEditor.prototype.publish("shareCountMin",1,"number","Share Count Min",null,{tags:["Private"]}),ThemeEditor.prototype.publish("paramGrouping","By Param","set","Param Grouping",["By Param","By Widget"],{tags:["Private"]}),ThemeEditor.prototype.publish("editorComplexity","Basic","set","Choose what publish properties to display within the editor.",["Basic","Intermediate","Advanced","Private"],{tags:["Private"]}),ThemeEditor.prototype.publish("sectionTitle","","string","Section Title",null,{tags:["Private"]}),ThemeEditor.prototype.publish("collapsibleSections",!0,"boolean","Collapsible Sections",null,{tags:["Intermediate"]}),ThemeEditor.prototype.getThemes=getThemes,ThemeEditor.prototype.getSerials=getSerials,ThemeEditor.prototype.getDefaultThemes=getThemeNames,ThemeEditor.prototype.getDefaultSerials=getSerialNames,exports2.Audio=Audio,exports2.AutoCompleteText=AutoCompleteText,exports2.BUILD_VERSION=BUILD_VERSION,exports2.CalendarHeatMap=CalendarHeatMap,exports2.Column=Column,exports2.ColumnDropdown=ColumnDropdown,exports2.Comms=Comms$1,exports2.HPCCBadge=HPCCBadge,exports2.HeatMap=HeatMap,exports2.Html=Html,exports2.IconList=IconList,exports2.Legend=Legend,exports2.MorphText=MorphText,exports2.MouseHoverColumn=MouseHoverColumn,exports2.NestedTable=NestedTable,exports2.Opportunity=Opportunity,exports2.PKG_NAME=PKG_NAME,exports2.PKG_VERSION=PKG_VERSION,exports2.Paginator=Paginator,exports2.Persist=Persist,exports2.PropertyEditor=PropertyEditor,exports2.RadioCheckbox=RadioCheckbox,exports2.Select=Select,exports2.Table=Table,exports2.ThemeEditor=ThemeEditor,exports2.cache=cache,exports2.createConnection=createConnection,exports2.createResult=createResult,exports2.enableCache=enableCache,exports2.flattenResult=flattenResult,Object.defineProperty(exports2,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@hpcc-js/common"),require("@hpcc-js/layout")):"function"==typeof define&&define.amd?define(["exports","@hpcc-js/common","@hpcc-js/layout"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self)["@hpcc-js/other"]={},t["@hpcc-js/common"],t["@hpcc-js/layout"])}(this,function(t,e,s){"use strict";var i,o=Object.defineProperty,n=(t,e)=>o(t,"name",{value:e,configurable:!0}),r=(t,e,s)=>((t,e,s)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s)(t,"symbol"!=typeof e?e+"":e,s);function a(t,e){for(var s=0;s<e.length;s++){const i=e[s];if("string"!=typeof i&&!Array.isArray(i))for(const e in i)if("default"!==e&&!(e in t)){const s=Object.getOwnPropertyDescriptor(i,e);s&&Object.defineProperty(t,e,s.get?s:{enumerable:!0,get:n(()=>i[e],"get")})}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}n(a,"_mergeNamespaces");var l,c,u=0,h=0,p=0,d=0,g=0,f=0,m="object"==typeof performance&&performance.now?performance:Date,y="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function _(){return g||(y(b),g=m.now()+f)}function b(){g=0}function w(){this._call=this._time=this._next=null}function x(t,e,s){var i=new w;return i.restart(t,e,s),i}function v(){_(),++u;for(var t,e=l;e;)(t=g-e._time)>=0&&e._call.call(null,t),e=e._next;--u}function C(){g=(d=m.now())+f,u=h=0;try{v()}finally{u=0,R(),g=0}}function S(){var t=m.now(),e=t-d;e>1e3&&(f-=e,d=t)}function R(){for(var t,e,s=l,i=1/0;s;)s._call?(i>s._time&&(i=s._time),t=s,s=s._next):(e=s._next,s._next=null,s=t?t._next=e:l=e);c=t,I(i)}function I(t){u||(h&&(h=clearTimeout(h)),t-g>24?(t<1/0&&(h=setTimeout(C,t-m.now()-f)),p&&(p=clearInterval(p))):(p||(d=m.now(),p=setInterval(S,1e3)),u=1,y(C)))}n(_,"now"),n(b,"clearNow"),n(w,"Timer"),w.prototype=x.prototype={constructor:w,restart:n(function(t,e,s){if("function"!=typeof t)throw new TypeError("callback is not a function");s=(null==s?_():+s)+(null==e?0:+e),this._next||c===this||(c?c._next=this:l=this,c=this),this._call=t,this._time=s,I()},"restart"),stop:n(function(){this._call&&(this._call=null,this._time=1/0,I())},"stop")},n(x,"timer"),n(v,"timerFlush"),n(C,"wake"),n(S,"poke"),n(R,"nap"),n(I,"sleep");const W=class _Audio extends e.HTMLWidget{constructor(){super(),r(this,"_sections"),this._tag="audio",this._sections={}}section(t,e,s,i){return arguments.length?1===arguments.length?this._sections[t]:(this._sections[t]={label:t,offset:e,beatLength:s,beatCount:i,endOffset:e+i*s},this):this._sections}getType(t){switch(t){case"mp3":return"audio/mpeg; codecs='mp3'";case"ogg":return"audio/ogg; codecs='vorbis'"}return""}enter(t,e){const s=this;e.on("play",function(t){s.onPlay(t)})}update(t,e){e.selectAll("source").data(this.source(),function(t){return t}).enter().append("source").attr("src",function(t){return t})}createTimer(t,e,s){const i=this;x(function(){return i.onTick(t.label,s,t),!0},s*t.beatLength,e+t.offset)}onTick(t,e,s){}onPlay(t){const e=Date.now();for(const s in this._sections){const t=this._sections[s];for(let s=0;s<t.beatCount;++s)this.createTimer(t,e,s)}}play(t){const e=this;this._element.on("canplaythrough",function(t){e.node().play()}),this.node().load()}};n(W,"Audio");let k=W;function T(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}k.prototype._class+=" other_Audio",k.prototype.publish("source","","string","Audio Source"),n(T,"getDefaultExportFromCjs");var P,E,B={exports:{}};P=B,E=function(){function t(t){if(document.querySelector){n(l,"hasClass"),n(c,"addEvent"),n(u,"removeEvent"),n(h,"live");var e={selector:0,source:0,minChars:3,delay:150,offsetLeft:0,offsetTop:1,cache:1,menuClass:"",renderItem:n(function(t,e){e=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var s=new RegExp("("+e.split(" ").join("|")+")","gi");return'<div class="autocomplete-suggestion" data-val="'+t+'">'+t.replace(s,"<b>$1</b>")+"</div>"},"renderItem"),onSelect:n(function(t,e,s){},"onSelect")};for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s]);for(var i="object"==typeof e.selector?[e.selector]:document.querySelectorAll(e.selector),o=0;o<i.length;o++){var r=i[o];r.sc=document.createElement("div"),r.sc.className="autocomplete-suggestions "+e.menuClass,r.autocompleteAttr=r.getAttribute("autocomplete"),r.setAttribute("autocomplete","off"),r.cache={},r.last_val="",r.updateSC=function(t,s){var i=r.getBoundingClientRect();if(r.sc.style.left=Math.round(i.left+(window.pageXOffset||document.documentElement.scrollLeft)+e.offsetLeft)+"px",r.sc.style.top=Math.round(i.bottom+(window.pageYOffset||document.documentElement.scrollTop)+e.offsetTop)+"px",r.sc.style.width=Math.round(i.right-i.left)+"px",!t&&(r.sc.style.display="block",r.sc.classList.remove("hide"),r.sc.maxHeight||(r.sc.maxHeight=parseInt((window.getComputedStyle?getComputedStyle(r.sc,null):r.sc.currentStyle).maxHeight)),r.sc.suggestionHeight||(r.sc.suggestionHeight=r.sc.querySelector(".autocomplete-suggestion").offsetHeight),r.sc.suggestionHeight))if(s){var o=r.sc.scrollTop,n=s.getBoundingClientRect().top-r.sc.getBoundingClientRect().top;n+r.sc.suggestionHeight-r.sc.maxHeight>0?r.sc.scrollTop=n+r.sc.suggestionHeight+o-r.sc.maxHeight:n<0&&(r.sc.scrollTop=n+o)}else r.sc.scrollTop=0},c(window,"resize",r.updateSC),document.body.appendChild(r.sc),h("autocomplete-suggestion","mouseleave",function(t){var e=r.sc.querySelector(".autocomplete-suggestion.selected");e&&setTimeout(function(){e.className=e.className.replace("selected","")},20)},r.sc),h("autocomplete-suggestion","mouseover",function(t){var e=r.sc.querySelector(".autocomplete-suggestion.selected");e&&(e.className=e.className.replace("selected","")),this.className+=" selected"},r.sc),h("autocomplete-suggestion","mousedown",function(t){if(l(this,"autocomplete-suggestion")){var s=this.getAttribute("data-val");r.value=s,e.onSelect(t,s,this),r.sc.style.display="none",r.sc.classList.add("hide")}},r.sc),r.blurHandler=function(){try{var t=document.querySelector(".autocomplete-suggestions:hover")}catch(e){t=0}t?r!==document.activeElement&&setTimeout(function(){r.focus()},20):(r.last_val=r.value,r.sc.style.display="none",r.sc.classList.add("hide"),setTimeout(function(){r.sc.style.display="none",r.sc.classList.add("hide")},350))},c(r,"blur",r.blurHandler);var a=n(function(t,s){if(s||(s=r.value),r.cache[s]=t,t.length&&s.length>=e.minChars){for(var i="",o=0;o<t.length;o++)i+=e.renderItem(t[o],s);r.sc.innerHTML=i,r.updateSC(0)}else r.sc.style.display="none",r.sc.classList.add("hide")},"suggest");r.keydownHandler=function(t){var s,i=window.event?t.keyCode:t.which;if((40==i||38==i)&&r.sc.innerHTML)return(o=r.sc.querySelector(".autocomplete-suggestion.selected"))?(s=40==i?o.nextSibling:o.previousSibling)?(o.className=o.className.replace("selected",""),s.className+=" selected",r.value=s.getAttribute("data-val")):(o.className=o.className.replace("selected",""),r.value=r.last_val,s=0):((s=40==i?r.sc.querySelector(".autocomplete-suggestion"):r.sc.childNodes[r.sc.childNodes.length-1]).className+=" selected",r.value=s.getAttribute("data-val")),r.updateSC(0,s),!1;if(27==i)r.value=r.last_val,r.sc.style.display="none",r.sc.classList.add("hide");else if(13==i||9==i){var o;"none"!==r.sc.style.display&&t.preventDefault(),(o=r.sc.querySelector(".autocomplete-suggestion.selected"))&&"none"!=r.sc.style.display&&(e.onSelect(t,o.getAttribute("data-val"),o),setTimeout(function(){r.sc.style.display="none",r.sc.classList.add("hide")},20))}},c(r,"keydown",r.keydownHandler),r.keyupHandler=function(t){var s=window.event?t.keyCode:t.which;if(!s||(s<35||s>40)&&13!=s&&27!=s){var i=r.value;if(i.length>=e.minChars){if(i!=r.last_val){if(r.last_val=i,clearTimeout(r.timer),e.cache){if(i in r.cache)return void a(r.cache[i]);for(var o=1;o<i.length-e.minChars;o++){var n=i.slice(0,i.length-o);if(n in r.cache&&!r.cache[n].length)return void a([])}}r.timer=setTimeout(function(){e.source(i,a)},e.delay)}}else r.last_val=i,r.sc.style.display="none",r.sc.classList.add("hide")}},c(r,"keyup",r.keyupHandler),r.focusHandler=function(t){r.last_val="\n",r.keyupHandler(t)},e.minChars||c(r,"focus",r.focusHandler)}this.destroy=function(){for(var t=0;t<i.length;t++){var e=i[t];u(window,"resize",e.updateSC),u(e,"blur",e.blurHandler),u(e,"focus",e.focusHandler),u(e,"keydown",e.keydownHandler),u(e,"keyup",e.keyupHandler),e.autocompleteAttr?e.setAttribute("autocomplete",e.autocompleteAttr):e.removeAttribute("autocomplete"),document.body.removeChild(e.sc),e=null}}}function l(t,e){return t.classList?t.classList.contains(e):new RegExp("\\b"+e+"\\b").test(t.className)}function c(t,e,s){t.attachEvent?t.attachEvent("on"+e,s):t.addEventListener(e,s)}function u(t,e,s){t.detachEvent?t.detachEvent("on"+e,s):t.removeEventListener(e,s)}function h(t,e,s,i){c(i||document,e,function(e){for(var i,o=e.target||e.srcElement;o&&!(i=l(o,t));)o=o.parentElement;i&&s.call(o,e)})}}return n(t,"autoComplete"),t}(),P.exports?P.exports=E:window.autoComplete=E;const D=T(B.exports),N=class _AutoCompleteText extends e.HTMLWidget{constructor(){super(),r(this,"_span"),r(this,"_prompt"),r(this,"_input"),r(this,"_prevMinCharsText"),r(this,"_autoComplete"),this._tag="div"}autoCompleteTextData(){if(0===this.data().length)return[];return this._db.rollupView([this.textColumn(),this.valueColumn()]).entries().map(function(t,e){return{idx:e,text:t.key,value:t.values.length?t.values[0].key:"",origRow:t.values.length&&t.values[0].value.length?t.values[0].value[0]:[]}},this)}enter(t,e){super.enter(t,e),this._span=e.append("span"),this._prompt=this._span.append("label").attr("for",this.id()+"_input"),this._input=this._span.append("input").attr("id",this.id()+"_input").attr("name",this.id()+"_input_name").attr("type","text").attr("placeholder",this.placeholder())}update(t,e){if(super.update(t,e),this._prompt.text(this.label()),this._input.style("width",this.textboxWidth_exists()?this.textboxWidth()+"px":null),this._prevMinCharsText!==this.minCharsText()){this._prevMinCharsText=this.minCharsText(),this._autoComplete&&this._autoComplete.destroy();const t=this;this._autoComplete=new D({selector:"#"+this.id()+"_input",minChars:this.minCharsText(),delay:150,offsetLeft:0,offsetTop:1,source:n((e,s)=>{const i=t._db.fieldByLabel(t.textColumn());if(i){e=e.toLowerCase();s(t.autoCompleteTextData().filter(function(t){return t.origRow[i.idx].toLowerCase().indexOf(e)>=0}).map(function(t){return{text:t.origRow[i.idx],rowIdx:t.idx}}))}},"source"),renderItem:n((t,e)=>{e=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");const s=new RegExp("("+e.split(" ").join("|")+")","gi");return'<div class="autocomplete-suggestion" data-val="'+t.text+'" data-row-idx="'+t.rowIdx+'">'+t.text.replace(s,"<b>$1</b>")+"</div>"},"renderItem"),onSelect:n((e,s,i)=>{const o=+i.getAttribute("data-row-idx"),n=t.autoCompleteTextData()[o];t.click(t.rowToObj(n.origRow),t.valueColumn(),!0)},"onSelect")})}}exit(t,e){this._autoComplete&&this._autoComplete.destroy(),this._span.remove(),super.exit(t,e)}click(t,e,s){}};n(N,"AutoCompleteText");let A=N;A.prototype._class+=" other_AutoCompleteText",A.prototype.publish("label","Label: ","string","Label for AutoCompleteText"),A.prototype.publish("textboxWidth",null,"number","width of textbox",null,{optional:!0}),A.prototype.publish("placeholder","Search...","string","Placeholder for AutoCompleteText"),A.prototype.publish("valueColumn",null,"set","Select column for autocomplete",function(){return this.columns()},{optional:!0}),A.prototype.publish("textColumn",null,"set","Select value(s)",function(){return this.columns()},{optional:!0}),A.prototype.publish("minCharsText",1,"number","Size of multiAutoCompleteText box");var O=new Date,H=new Date;function M(t,e,s,i){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return n(o,"interval"),o.floor=function(e){return t(e=new Date(+e)),e},o.ceil=function(s){return t(s=new Date(s-1)),e(s,1),t(s),s},o.round=function(t){var e=o(t),s=o.ceil(t);return t-e<s-t?e:s},o.offset=function(t,s){return e(t=new Date(+t),null==s?1:Math.floor(s)),t},o.range=function(s,i,n){var r,a=[];if(s=o.ceil(s),n=null==n?1:Math.floor(n),!(s<i&&n>0))return a;do{a.push(r=new Date(+s)),e(s,n),t(s)}while(r<s&&s<i);return a},o.filter=function(s){return M(function(e){if(e>=e)for(;t(e),!s(e);)e.setTime(e-1)},function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!s(t););else for(;--i>=0;)for(;e(t,1),!s(t););})},s&&(o.count=function(e,i){return O.setTime(+e),H.setTime(+i),t(O),t(H),Math.floor(s(O,H))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(i?function(e){return i(e)%t===0}:function(e){return o.count(0,e)%t===0}):o:null}),o}n(M,"newInterval");var L=M(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5},function(t){return t.getDate()-1}).range;function j(t){return M(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5})}n(j,"weekday");var z=j(0),F=j(1),U=j(2),V=j(3),q=j(4),G=j(5),Y=j(6);z.range,F.range,U.range,V.range,q.range,G.range,Y.range;var $=M(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()}).range,X=M(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});X.every=function(t){return isFinite(t=Math.floor(t))&&t>0?M(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,s){e.setFullYear(e.getFullYear()+s*t)}):null},X.range;const J=class _CalendarHeatMap extends e.HTMLWidget{constructor(){super(),r(this,"_prevDateColumn"),r(this,"_prevAggrType"),r(this,"_prevAggrColumn"),r(this,"_prevAggrDeltaColumn"),r(this,"_view"),r(this,"_parentNode"),e.Utility.SimpleSelectionMixin.call(this)}calendarData(){if(0===this.fields().length||0===this.data().length)return[];const t=e.timeParse(this.datePattern()),s=this.aggrDeltaColumn()?e.format(".1%"):e.format("s");return this._prevDateColumn===this.dateColumn()&&this._prevAggrType===this.aggrType()&&this._prevAggrColumn===this.aggrColumn()&&this._prevAggrDeltaColumn===this.aggrDeltaColumn()||(this._prevDateColumn=this.dateColumn(),this._prevAggrType=this.aggrType(),this._prevAggrColumn=this.aggrColumn(),this._prevAggrDeltaColumn=this.aggrDeltaColumn(),this._view=this._db.aggregateView([this.dateColumn()],this.aggrType(),this.aggrColumn(),this.aggrDeltaColumn())),this._view.entries().map(function(e){return e.dateKey=t(e.key),e.formattedValues=s(e.value.aggregate),e.origRows=e.value,e})}calcDelta(t){return(t.Close-t.Open)/t.Open}enter(t,s){super.enter(t,s),e.select(t.parentNode).style("overflow-y","scroll").style("overflow-x","hidden").style("height","100%").style("width","100%"),this._selection.widgetElement(s)}update(t,s){super.update(t,s),this._palette=this._palette.switch(this.paletteID());const i=this.width(),o=i/12/5,r=8*o,a=this.calendarData(),l=e.map(a,function(t){return t.dateKey}),c=e.extent(a,function(t){return t.dateKey.getFullYear()}),u=this,h=s.selectAll("svg").data(e.range(+c[0],+c[1]+1)),p=h.enter().append("svg").each(function(t){const s=e.select(this).append("g");s.append("text").style("text-anchor","middle"),s.append("g").attr("class","days");const i=$(new Date(t,0,1),new Date(t+1,0,1)),o=s.append("g").attr("class","months");i.forEach(function(t){o.append("path").attr("class","month").attr("d",y(t)).style("stroke",u.monthStrokeColor()).style("stroke-width",u.monthStrokeWidth())})}).merge(h).attr("width",i).attr("height",r);p.select("g").attr("transform","translate("+(i-53*o)/2+","+(r-7*o-1)+")"),p.select("text").attr("transform","translate(-6,"+3.5*o+")rotate(-90)").text(t=>t),h.exit().remove();let d=e.extent(a,function(t){return t.value.aggregate});if(this.aggrDeltaColumn()){const t=Math.max(Math.abs(+d[0]),Math.abs(+d[1]));d=[-t,t]}const g=p.select(".days").selectAll(".day").data(function(t){return L(new Date(t,0,1),new Date(t+1,0,1))}),f=g.enter().append("rect").attr("class","day").call(this._selection.enter.bind(this._selection)).on("click",function(t){const e=l.get(t);e&&e.value&&e.value&&e.value.length&&u.click(u.rowToObj(e.value[0]),u.dateColumn(),u._selection.selected(this))}).on("dblclick",function(t){const e=l.get(t);e&&e.value&&e.value&&e.value.length&&u.dblclick(u.rowToObj(e.value[0]),u.dateColumn(),u._selection.selected(this))}).each(function(t){e.select(this).append("title")}).merge(g).attr("x",function(t){return z.count(X(t),t)*o}).attr("y",function(t){return t.getDay()*o}).attr("width",o).attr("height",o).style("stroke",this.dayStrokeColor()).style("stroke-width",this.dayStrokeWidth()).style("fill",null);f.select("title").text(t=>t),f.filter(function(t){return l.has(t)}).style("fill",function(t){const e=l.get(t);return e&&e.value&&e.value.aggregate?u._palette(e.value.aggregate,d[0],d[1]):null}).select("title").text(function(t){const e=l.get(t);return e.key+": "+e.formattedValues}),g.exit().remove();const m=h.select(".months").selectAll(".month").data(function(t){return $(new Date(t,0,1),new Date(t+1,0,1))});function y(t){const e=new Date(t.getFullYear(),t.getMonth()+1,0),s=t.getDay(),i=z.count(X(t),t),n=e.getDay(),r=z.count(X(e),e);return"M"+(i+1)*o+","+s*o+"H"+i*o+"V"+7*o+"H"+r*o+"V"+(n+1)*o+"H"+(r+1)*o+"V0H"+(i+1)*o+"Z"}m.enter().append("path").attr("class","month").merge(m).attr("d",y).style("stroke",this.monthStrokeColor()).style("stroke-width",this.monthStrokeWidth()),m.exit().remove(),n(y,"calcMonthPath")}exit(t,e){super.exit(t,e)}click(t,e,s){}dblclick(t,e,s){}};n(J,"CalendarHeatMap");let Q=J;Q.prototype._class+=" other_CalendarHeatMap",Q.prototype.mixin(e.Utility.SimpleSelectionMixin),Q.prototype._palette=e.Palette.rainbow("default"),Q.prototype.publish("paletteID","YlOrRd","set","Color palette for this widget",Q.prototype._palette.switch(),{tags:["Basic","Shared"]}),Q.prototype.publish("dayStrokeColor","#ccc","html-color","Color of day border"),Q.prototype.publish("monthStrokeColor","#000","html-color","Color of month border"),Q.prototype.publish("dayStrokeWidth",1,"number","Pixel width of day border"),Q.prototype.publish("monthStrokeWidth",2,"number","Pixel width of month border"),Q.prototype.publish("dateColumn",null,"set","Date Column",function(){return this.columns()},{optional:!0}),Q.prototype.publish("datePattern","%Y-%m-%d","string","Date Pattern"),Q.prototype.publish("aggrType",null,"set","Aggregation Type",[null,"mean","median","sum","min","max"],{optional:!0}),Q.prototype.publish("aggrColumn",null,"set","Aggregation Field",function(){return this.columns()},{optional:!0,disable:n(t=>!t.aggrType(),"disable")}),Q.prototype.publish("aggrDeltaColumn",null,"set","Aggregation Field",function(){return this.columns()},{optional:!0,disable:n(t=>!t.aggrType(),"disable")});function K(t){if(null==t)return null;if(!t.trim)return t.Row?Z(t.Row):t;const e=t.trim();return""!==e&&!isNaN(e)&&(e.length<=1||"0"!==e[0]||"."===e[1])?Number(e):e}function Z(t){for(const e in t)t[e]=K(t[e]);return t}n(K,"espValFix"),n(Z,"espRowFix");const tt=class _ESPUrl{constructor(){r(this,"_protocol","http:"),r(this,"_hostname","localhost"),r(this,"_url"),r(this,"_port"),r(this,"_search"),r(this,"_pathname"),r(this,"_params"),r(this,"_hash"),r(this,"_host")}url(t){if(!arguments.length)return this._url;this._url=t;const e=document.createElement("a");e.href=this._url;const s={};if(e.search.length){let t=e.search;"?"===t[0]&&(t=t.substring(1)),t=t.split("&"),t.map(function(t){const e=t.split("=");s[decodeURIComponent(e[0])]=decodeURIComponent(e[1])})}for(this._protocol=e.protocol,this._hostname=e.hostname,this._port=e.port,this._pathname=e.pathname;this._pathname.length&&"/"===this._pathname[0];)this._pathname=this._pathname.substring(1);return this._search=e.search,this._params=s,this._hash=e.hash,this._host=e.host,this}protocol(t){return arguments.length?(this._protocol=t,this):this._protocol}hostname(t){return arguments.length?(this._hostname=t,this):this._hostname}port(t){return arguments.length?(this._port=t,this):this._port}search(t){return arguments.length?(this._search=t,this):this._search}pathname(t){return arguments.length?(this._pathname=t,this):this._pathname}hash(t){return arguments.length?(this._hash=t,this):this._hash}host(t){return arguments.length?(this._host=t,this):this._host}params(t){return arguments.length?(this._params=t,this):this._params}param(t){return this._params[t]}isWsWorkunits(){return this._pathname.toLowerCase().indexOf("wsworkunits")>=0||this._params.Wuid}isWorkunitResult(){return this.isWsWorkunits()&&(this._params.Sequence||this._params.ResultName)}isWsEcl(){return this._pathname.toLowerCase().indexOf("wsecl")>=0||this._params.QuerySetId&&this._params.Id}isWsWorkunits_GetStats(){return this._pathname.toLowerCase().indexOf("wsworkunits/wugetstats")>=0&&this._params.WUID}getUrl(t){return(void 0!==(t=t||{}).protocol?t.protocol:this._protocol)+"//"+(void 0!==t.hostname?t.hostname:this._hostname)+":"+(void 0!==t.port?t.port:this._port)+"/"+(void 0!==t.pathname?t.pathname:this._pathname)}};n(tt,"ESPUrl");let et=tt;function st(t){this._mappings=t,this._reverseMappings={};for(const e in this._mappings){this._reverseMappings[e]={};for(const t in this._mappings[e])this._reverseMappings[e][this._mappings[e][t]]=t}}n(st,"ESPMappings"),st.prototype.contains=function(t,s){return e.Utility.exists(t+"."+s,this._mappings)},st.prototype.mapResult=function(t,e){const s=this._mappings[e];s&&(t[e]=t[e].map(function(t){let e=[];if(s.x&&s.x instanceof Array){e=[];for(let i=0;i<s.x.length;++i)e.push(t[s.y[i]])}else for(const i in s)"label"===s[i]?e[0]=t[i]:"weight"===s[i]&&(e[1]=t[i]);return e},this))},st.prototype.mapResponse=function(t){for(const e in t)this.mapResult(t,e)};const it=n(function(t){const e=[];for(const s in t)if(t.hasOwnProperty(s)){const i=t[s];null!=i&&e.push(encodeURIComponent(s)+"="+encodeURIComponent(i))}return e.join("&")},"serialize$1");let ot=n(function(t,e,s){return new Promise(function(i,o){let r=1e3*s;const a="jsonp_callback_"+Math.round(999999*Math.random());window[a]=function(t){r=0,u(),i(t)};const l=document.createElement("script");l.src=t+(t.indexOf("?")>=0?"&":"?")+"jsonp="+a+"&"+it(e),document.body.appendChild(l);const c=setInterval(function(){r<=0?clearInterval(c):(r-=5e3,r<=0&&(clearInterval(c),u(),o(Error("Request timeout: "+l.src))))},5e3);function u(){delete window[a],document.body.removeChild(l)}n(u,"doCallback")})},"jsonp");const nt=class _Comms extends et{constructor(){super(),r(this,"_proxyMappings"),r(this,"_mappings"),r(this,"_timeout"),r(this,"_hipieResults"),r(this,"_hipieResultsLength"),this._proxyMappings={},this._mappings=new st({}),this._timeout=60,this._hipieResults={}}hipieResults(t){if(!arguments.length)return this._hipieResults;this._hipieResultsLength=0,this._hipieResults={};const e=this;return t.forEach(function(t){e._hipieResultsLength++,e._hipieResults[t.id]=t}),this}jsonp(t,e){for(const s in this._proxyMappings){const i=t.split(s),o=i[0];if(i.length>1){const n=(new et).url(t);t=o+this._proxyMappings[s],e.IP=n.hostname(),e.PORT=n.port(),i.length>0&&(e.PATH=i[1]);break}}return ot(t,e,this.timeout())}ajax(t,e,s){return new Promise(function(i,o){let n=e;"GET"===t&&s&&(n+="?"+it(s));const r=new XMLHttpRequest;r.onload=function(t){this.status>=200&&this.status<300?i(JSON.parse(this.response)):o(Error(this.statusText))},r.onerror=function(){o(Error(this.statusText))},r.open(t,n),r.setRequestHeader("X-Requested-With","XMLHttpRequest"),"GET"===t?r.send():(r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.send(it(s)))})}get(t,e){return this.ajax("GET",t,e)}post(t,e){return this.ajax("POST",t,e)}mappings(t){return arguments.length?(this._mappings=new st(t),this):this._mappings}proxyMappings(t){return arguments.length?(this._proxyMappings=t,this):this._proxyMappings}timeout(t){return arguments.length?(this._timeout=t||60,this):this._timeout}};n(nt,"Comms");let rt=nt;const at=class _Basic extends rt{constructor(){super(),r(this,"_cacheCalls")}cacheCalls(t){return arguments.length?(this._cacheCalls=t,this):this._cacheCalls}call(t,e){const s=this._url+(this._url.indexOf("?")>=0?"&":"?")+it(t);if(this._cacheCalls){const t=this;return new Promise(function(t,i){const o=JSON.parse(localStorage.getItem("hpcc.viz."+s));if(!o)throw Error("not cached");e&&(console.error("Deprecated: callback, use promise (Basic.prototype.call)"),e(o)),t(o)}).catch(function(i){return t.get(s).then(function(t){return localStorage.setItem("hpcc.viz."+s,JSON.stringify(t)),e&&(console.error("Deprecated: callback, use promise (Basic.prototype.call)"),e(t)),t})})}return localStorage.removeItem("hpcc.viz."+s),this.get(s).then(function(t){return e&&(console.error("Deprecated: callback, use promise (Basic.prototype.call)"),e(t)),t})}};n(at,"Basic");let lt=at;function ct(t){for(const e in t){if(t[e].Row&&t[e].Row instanceof Array)return t;let s;if("string"!=typeof t[e]&&(s=ct(t[e])),s)return s}return null}function ut(t){for(const e in t){if(t[e].Exception&&t[e].Exception instanceof Array)return t[e];const s=ut(t[e]);if(s)return s}return null}n(ct,"locateRoxieResponse$1"),n(ut,"locateRoxieException");const ht=class _WsECL extends rt{constructor(){super(),r(this,"_target"),r(this,"_query"),this._port="8002",this._target="",this._query=""}url(t){const e=super.url.apply(this,arguments);if(arguments.length){this._port="8010"===this._port?"8002":this._port;for(const s in this._params)switch(s){case"QuerySetId":this.target(this._params[s]);break;case"Id":this.query(this._params[s])}let t,e;this._target&&this._query||(t=this._pathname.split("/query/"),t.length>=2&&(e=t[1].split("/"),e.length>=2&&(this.target(e[0]),this.query(e[1]))))}return e}target(t){return arguments.length?(this._target=t,this):this._target}query(t){return arguments.length?(this._query=t,this):this._query}constructUrl(){return rt.prototype.getUrl.call(this,{pathname:"WsEcl/submit/query/"+this._target+"/"+this._query+"/json"})}call(t,e,s){(t=t||{}).target=t.target||this._target,t.query=t.query||this._query;const i=this,o=this.getUrl({pathname:"WsEcl/submit/query/"+t.target+"/"+t.query+"/json"});return this.jsonp(o,e).then(function(t){let e=ct(t);if(e||(e=ut(t)),(t=e).Exception)throw Error(t.Exception.reduce(function(t,e,s,i){return t.length&&(t+="\n"),t+e.Source+" "+e.Code+": "+e.Message},""));for(const s in t)t[s].Row&&(t[s]=t[s].Row.map(Z));return i._mappings.mapResponse(t),s&&(console.error("Deprecated: callback, use promise (WsECL.prototype.call)"),s(t)),t})}send(t,e){return this.call({target:this._target,query:this._query},t,e)}};n(ht,"WsECL");let pt=ht,dt=(i=class extends rt{constructor(){super(),r(this,"_wuid",""),r(this,"_jobname",""),r(this,"_sequence",null),r(this,"_resultName",null),r(this,"_fetchResultNamesPromise",null),r(this,"_fetchResultPromise",{}),r(this,"_resultNameCache",{}),r(this,"_resultNameCacheCount",0),r(this,"_total"),this._port="8010"}url(t){const e=rt.prototype.url.apply(this,arguments);if(arguments.length){for(const t in this._params)switch(t){case"Wuid":this.wuid(this._params[t]);break;case"ResultName":this.resultName(this._params[t]);break;case"Sequence":this.sequence(this._params[t])}if(!this._wuid){const t=this._url.split("/res/");if(t.length>=2){const e=t[1].split("/");this.wuid(e[0])}}}return e}wuid(t){return arguments.length?(this._wuid=t,this):this._wuid}jobname(t){return arguments.length?(this._jobname=t,this):this._jobname}sequence(t){return arguments.length?(this._sequence=t,this):this._sequence}resultName(t){return arguments.length?(this._resultName=t,this):this._resultName}appendParam(t,e,s){return e?(s&&(s+="&"),s+t+"="+e):s}constructUrl(){const t=rt.prototype.getUrl.call(this,{pathname:"WsWorkunits/res/"+this._wuid+"/"});let e="";return e=this.appendParam("ResultName",this._resultName,e),t+(e?"?"+e:"")}_fetchResult(t,e,s){if(t=t||{},!this._fetchResultPromise[t.resultname]){t._start=t._start||0,t._count=t._count||-1;const i=this.getUrl({pathname:"WsWorkunits/WUResult.json"}),o={Wuid:t.wuid,ResultName:t.resultname,SuppressXmlSchema:!0,Start:t._start,Count:t._count};this._resultNameCache[t.resultname]={};const n=this;this._fetchResultPromise[t.resultname]=this.jsonp(i,o).then(function(i){for(const t in i){if(!i[t].Result)throw new Error("No result found.");n._total=i[t].Total,i=i[t].Result;for(const t in i){i=i[t].Row.map(Z);break}break}return n._resultNameCache[t.resultname]=i,s||n._mappings.mapResult(n._resultNameCache,t.resultname),e&&(console.error("Deprecated: callback, use promise (WsWorkunits.prototype._fetchResult)"),e(n._resultNameCache[t.resultname])),n._resultNameCache[t.resultname]})}return this._fetchResultPromise[t.resultname]}fetchResult(t,e,s){if(t.wuid)return this._fetchResult(t,e,s);if(t.jobname){const i=this;return this.WUQuery(t,function(o){return t.wuid=o[0].Wuid,i._fetchResult(t,e,s)})}}WUQuery(t,s){const i=this.getUrl({pathname:"WsWorkunits/WUQuery.json"}),o={Jobname:t.jobname,Count:1};return this._resultNameCache={},this._resultNameCacheCount=0,this.jsonp(i,o).then(function(t){if(!e.Utility.exists("WUQueryResponse.Workunits.ECLWorkunit",t))throw Error("No workunit found.");return t=t.WUQueryResponse.Workunits.ECLWorkunit,s&&(console.error("Deprecated: callback, use promise (WsWorkunits.prototype.WUQuery)"),s(t)),t})}fetchResultNames(t){if(!this._fetchResultNamesPromise){const s=this.getUrl({pathname:"WsWorkunits/WUInfo.json"}),i={Wuid:this._wuid,TruncateEclTo64k:!0,IncludeExceptions:!1,IncludeGraphs:!1,IncludeSourceFiles:!1,IncludeResults:!0,IncludeResultsViewNames:!1,IncludeVariables:!1,IncludeTimers:!1,IncludeResourceURLs:!1,IncludeDebugValues:!1,IncludeApplicationValues:!1,IncludeWorkflows:!1,IncludeXmlSchemas:!1,SuppressResultSchemas:!0};this._resultNameCache={},this._resultNameCacheCount=0;const o=this;this._fetchResultNamesPromise=this.jsonp(s,i).then(function(n){return e.Utility.exists("WUInfoResponse.Workunit.Archived",n)&&n.WUInfoResponse.Workunit.Archived&&console.warn("WU is archived: "+s+" "+JSON.stringify(i)),e.Utility.exists("WUInfoResponse.Workunit.Results.ECLResult",n)&&n.WUInfoResponse.Workunit.Results.ECLResult.map(function(t){o._resultNameCache[t.Name]=[],++o._resultNameCacheCount}),t&&(console.error("Deprecated: callback, use promise (WsWorkunits.prototype.fetchResultNames)"),t(o._resultNameCache)),o._resultNameCache})}return this._fetchResultNamesPromise}fetchResults(t,e){const s=this;return this.fetchResultNames().then(function(i){const o=[];for(const t in s._resultNameCache)o.push(s.fetchResult({wuid:s._wuid,resultname:t},null,e));return Promise.all(o).then(function(e){return t&&(console.error("Deprecated: callback, use promise (WsWorkunits.prototype.fetchResults)"),t(s._resultNameCache)),s._resultNameCache})})}postFilter(t,e){const s={};for(const i in e)s[i]=e[i].filter(function(e,s){for(const i in t)if(void 0!==e[i]&&void 0!==t[i]&&e[i]!=t[i])return!1;return!0});return this._mappings.mapResponse(s),s}send(t,e){const s=this;this._resultNameCacheCount?e(s.postFilter(t,this._resultNameCache)):this.fetchResults(function(i){e(s.postFilter(t,i))},!0)}},n(i,"WsWorkunits"),i);function gt(){rt.call(this),this._port="8010",this._wuid=null}function ft(){rt.call(this)}function mt(){dt.call(this)}function yt(){mt.call(this)}function _t(t){t=t||document.URL;const e=(new et).url(t);return e.isWsWorkunits_GetStats()?(new gt).url(t):e.isWsWorkunits()?(new dt).url(t):e.isWsEcl()?(new pt).url(t):null}function bt(t){ot=t}n(gt,"WsWorkunits_GetStats"),gt.prototype=Object.create(rt.prototype),gt.prototype.url=function(t){const e=rt.prototype.url.apply(this,arguments);if(arguments.length)for(const s in this._params)if("WUID"===s)this.wuid(this._params[s]);return e},gt.prototype.wuid=function(t){return arguments.length?(this._wuid=t,this):this._wuid},gt.prototype.constructUrl=function(){return rt.prototype.getUrl.call(this,{pathname:"WsWorkunits/WUGetStats?WUID="+this._wuid})},gt.prototype.send=function(t,s){const i=this.getUrl({pathname:"WsWorkunits/WUGetStats.json?WUID="+this._wuid});return this.jsonp(i,t).then(function(t){return e.Utility.exists("WUGetStatsResponse.Statistics.WUStatisticItem",t)?(s&&(console.error("Deprecated: callback, use promise (WsWorkunits_GetStats.prototype.send)"),s(t.WUGetStatsResponse.Statistics.WUStatisticItem)),t.WUGetStatsResponse.Statistics.WUStatisticItem):(s&&(console.error("Deprecated: callback, use promise (WsWorkunits_GetStats.prototype.send)"),s([])),[])})},n(ft,"HIPIERoxie"),ft.prototype=Object.create(rt.prototype),ft.prototype.fetchResults=function(t,e){const s=this.getUrl({});this._resultNameCache={},this._resultNameCacheCount=0;const i=this;return this.jsonp(s,t).then(function(t){let s=ct(t);if(s||(s=ut(t)),(t=s).Exception)throw Error(t.Exception.reduce(function(t,e,s,i){return t.length&&(t+="\n"),t+e.Source+" "+e.Code+": "+e.Message},""));for(const e in t)t[e].Row&&(i._resultNameCache[e]=t[e].Row.map(Z),++i._resultNameCacheCount);return e&&(console.error("Deprecated: callback, use promise (HIPIERoxie.prototype.fetchResults)"),e(i._resultNameCache)),i._resultNameCache})},ft.prototype.fetchResult=function(t,e){const s=this;return new Promise(function(i,o){e&&(console.error("Deprecated: callback, use promise (HIPIERoxie.prototype.fetchResult)"),e(s._resultNameCache[t])),i(s._resultNameCache[t])})},ft.prototype.call=function(t,e){const s=this;return this.fetchResults(t,e).then(function(t){const e={};for(const i in s._hipieResults){const o=s._hipieResults[i];e[o.id]=t[o.from]}return e})},n(mt,"HIPIEWorkunit"),mt.prototype=Object.create(dt.prototype),mt.prototype.fetchResults=function(t){const e=this;return dt.prototype.fetchResultNames.call(this).then(function(s){const i=[];for(const t in e._hipieResults){const s=e._hipieResults[t];i.push(e.fetchResult(s.from))}return Promise.all(i).then(function(s){return t&&(console.error("Deprecated: callback, use promise (HIPIEWorkunit.prototype.fetchResults)"),t(e._resultNameCache)),e._resultNameCache})})},mt.prototype.fetchResult=function(t,e){return dt.prototype.fetchResult.call(this,{wuid:this._wuid,resultname:t}).then(function(t){return e&&(console.error("Deprecated: callback, use promise (HIPIEWorkunit.prototype.fetchResult)"),e(t)),t})},mt.prototype.call=function(t,e){const s=this;return!t.refresh&&this._resultNameCache&&this._resultNameCacheCount?new Promise(function(e,s){e(i(t))}):this.fetchResults(e).then(function(e){return i(t)});function i(t){const e={};for(const s in t)void 0!==t[s+"_changed"]&&(e[s]={value:t[s]});const i={};for(const o in s._hipieResults){const t=s._hipieResults[o],n={};for(let s=0;s<t.filters.length;++s){const i=t.filters[s];i.isRange()||(n[i.fieldid]=e[i.fieldid]||{value:void 0},n[i.fieldid].filter=i)}i[t.id]=s._resultNameCache[t.from].filter(function(t){for(const e in n)if(!n[e].filter.matches(t,n[e].value))return!1;return!0})}return i}},n(yt,"HIPIEDatabomb"),yt.prototype=Object.create(mt.prototype),yt.prototype.databomb=function(t){return arguments.length?(this._databomb=t,this):this._databomb},yt.prototype.databombOutput=function(t,e){if(arguments.length)return this._resultNameCacheCount++,this._databomb instanceof Array?this._resultNameCache[t]=this._databomb.map(Z):this._resultNameCache[t]=this._databomb[t].map(Z),this},yt.prototype.fetchResults=function(t){const e=this;return new Promise(function(s,i){t&&(console.error("Deprecated: callback, use promise (HIPIEDatabomb.prototype.fetchResults)"),t(e._resultNameCache)),s(e._resultNameCache)})},n(_t,"createESPConnection"),n(bt,"hookJsonp");const wt=Object.freeze(Object.defineProperty({__proto__:null,Basic:lt,Comms:rt,ESPMappings:st,ESPUrl:et,HIPIEDatabomb:yt,HIPIERoxie:ft,HIPIEWorkunit:mt,WsECL:pt,WsWorkunits:dt,createESPConnection:_t,hookJsonp:bt},Symbol.toStringTag,{value:"Module"}));function xt(t){if(t.Row&&t.Row instanceof Array)return t.Row.map(xt);if(t instanceof Object)for(const e in t)t[e]=xt(t[e]);return t}n(xt,"nestedRowFix");let vt=!1,Ct={};function St(){lt.call(this)}function Rt(t){St.call(this),this.url(t+"WsWorkunits/")}function It(t,e){St.call(this),this.url(t+"WsWorkunits/"),this._wuid=e}function Wt(t,e,s){St.call(this),this.url(t+"WUResult.json"),this._wuid=e,this._name=s,this._xmlSchema=null}function kt(t,e){St.call(this),this.url(t+"WUResult.json"),this._logicalName=e,this._xmlSchema=null}function Tt(t,e){St.call(this);const s=t.split("/");let i=s.pop();"json"===i.toLowerCase()&&(i=s.pop()),this._queryName=i,this._resultName=e,this.url(s.join("/")+"/"+i+"/json")}function Pt(t){return t&&t.replace?t.replace(/ +$/,""):t}function Et(t,e){return t.filter(function(t){for(const s in e)if(void 0!==t[s]&&Pt(e[s])!==Pt(t[s]))return!1;return!0})}function Bt(t){for(const e in t){if(t[e].Row&&t[e].Row instanceof Array)return t;const s=Bt(t[e]);if(s)return s}return null}function Dt(t,e,s){const i=(new et).url(t);return 0===e.indexOf("http")?new Tt(e,s):0===e.indexOf("~")||e.indexOf("::")>=0?new kt(i.getUrl({pathname:"WsWorkunits/"}),e):e?new Wt(i.getUrl({pathname:"WsWorkunits/"}),e,s):null}function Nt(t){if(!arguments.length)return vt;vt=t,t||(Ct={})}function At(t){if(!arguments.length)return Ct;Ct=t}function Ot(t){t=t||document.URL;if((new et).url(t).isWsWorkunits()){const e=_t(t);if(e instanceof dt&&e.wuid())return new It(e.getUrl({pathname:""}),e.wuid()).url(t)}return null}function Ht(t,e){const s={columns:[],data:[]};if(t&&t.length){const i={};if(e&&e.length)e.forEach(function(t){i[t.value.toLowerCase()]=s.columns.length,s.columns.push(t.key)});else for(const e in t[0])i[e.toLowerCase()]=s.columns.length,s.columns.push(e);t.forEach(function(t,e){const o=[];for(const s in t)void 0!==i[s.toLowerCase()]&&(o[i[s.toLowerCase()]]=t[s]);s.data.push(o)})}return s}n(St,"BasicComms"),St.prototype=Object.create(lt.prototype),St.prototype.jsonp=function(t,e){const s=JSON.stringify(e);return vt&&Ct[t]&&Ct[t][s]?Promise.resolve(Ct[t][s]):lt.prototype.jsonp.apply(this,arguments).then(function(e){return vt&&(Ct[t]||(Ct[t]={}),Ct[t][s]=e),e})},n(Rt,"WsWorkunits"),Rt.prototype=Object.create(St.prototype),Rt.prototype.wuQuery=function(t){const e=this.getUrl({pathname:"WsWorkunits/WUQuery.json"}),s={Wuid:"",Type:"",Cluster:"",RoxieCluster:"",Owner:"",State:"",StartDate:"",EndDate:"",ECL:"",Jobname:"",LogicalFile:"",LogicalFileSearchType:"",After:"",Before:"",Count:"",PageSize:100,PageStartFrom:0,PageEndAt:"",LastNDays:"",Sortby:"",Descending:0,CacheHint:""};for(const i in t)s[i]=t[i];return this.jsonp(e,s).then(function(t){return t.WUQueryResponse&&t.WUQueryResponse.Workunits?t.WUQueryResponse.Workunits.ECLWorkunit:[]})},n(It,"Workunit"),It.prototype=Object.create(St.prototype),It.prototype.wuInfo=function(t){const e=this.getUrl({pathname:"WsWorkunits/WUInfo.json"}),s={Wuid:this._wuid,TruncateEclTo64k:!0,IncludeExceptions:!1,IncludeGraphs:!1,IncludeSourceFiles:!1,IncludeResults:!1,IncludeResultsViewNames:!1,IncludeVariables:!1,IncludeTimers:!1,IncludeResourceURLs:!1,IncludeDebugValues:!1,IncludeApplicationValues:!1,IncludeWorkflows:!1,IncludeXmlSchemas:!1,SuppressResultSchemas:!0};for(const i in t)s[i]=t[i];return this.jsonp(e,s).then(function(i){if(vt){const o={WUInfoResponse:{Workunit:{}}};for(const e in t){const t=e.substring(7);o.WUInfoResponse.Workunit[t]=i.WUInfoResponse.Workunit[t]}Ct[e][JSON.stringify(s)]=o}return i})},It.prototype.wuUpdate=function(t){const e=this.getUrl({pathname:"WsWorkunits/WUUpdate.json"}),s={Wuid:this._wuid};for(const i in t)s[i]=t[i];return this.post(e,s)},It.prototype.appData=function(t,e,s){return 2===arguments.length?this.wuInfo({IncludeApplicationValues:!0}).then(function(s){let i;return s.WUInfoResponse&&s.WUInfoResponse.Workunit&&s.WUInfoResponse.Workunit.ApplicationValues&&s.WUInfoResponse.Workunit.ApplicationValues.ApplicationValue&&s.WUInfoResponse.Workunit.ApplicationValues.ApplicationValue.filter(function(s){return s.Application===t&&s.Name===e}).forEach(function(t){i=t.Value}),i}):3===arguments.length?this.wuUpdate({"ApplicationValues.ApplicationValue.0.Application":t,"ApplicationValues.ApplicationValue.0.Name":e,"ApplicationValues.ApplicationValue.0.Value":s,"ApplicationValues.ApplicationValue.itemcount":1}):void 0},It.prototype.results=function(){const t=this;return this.wuInfo({IncludeResults:!0}).then(function(s){let i=[];return e.Utility.exists("WUInfoResponse.Workunit.Results.ECLResult",s)&&(i=s.WUInfoResponse.Workunit.Results.ECLResult.map(function(e){return new Wt(t.getUrl({pathname:"WsWorkunits/"}),t._wuid,e.Name)})),i})},It.prototype.result=function(t,e){return Dt(t=t||this._wuid,e)},n(Wt,"WUResult"),Wt.prototype=Object.create(St.prototype),Wt.prototype.wuid=function(t){return arguments.length?(this._wuid=t,this):this._wuid},Wt.prototype.name=function(t){return arguments.length?(this._name=t,this):this._name},Wt.prototype.query=function(t,e){t=t||{},e=e||{};const s={Wuid:this._wuid,ResultName:this._name,SuppressXmlSchema:!0,Start:0,Count:-1};for(const n in t)s[n]=t[n];let i=0;for(const n in e)s["FilterBy.NamedValue."+i+".Name"]=n,s["FilterBy.NamedValue."+i+".Value"]=e[n],++i;i&&(s["FilterBy.NamedValue.itemcount"]=i);const o=this;return this.jsonp(this.url(),s).then(function(t){return t.WUResultResponse&&t.WUResultResponse.Result&&t.WUResultResponse.Result[o._name]?(vt&&(Ct[o.url()][JSON.stringify(s)]={WUResultResponse:{Result:t.WUResultResponse.Result}}),o._xmlSchema=t.WUResultResponse.Result.XmlSchema,xt(t.WUResultResponse.Result[o._name])):[]})},n(kt,"LogicalFile"),kt.prototype=Object.create(St.prototype),kt.prototype.query=function(t,e){t=t||{},e=e||{};const s={Cluster:"hthor",LogicalName:this._logicalName,SuppressXmlSchema:null!==this._xmlSchema,Start:0,Count:-1};for(const n in t)s[n]=t[n];let i=0;for(const n in e)s["FilterBy.NamedValue."+i+".Name"]=n,s["FilterBy.NamedValue."+i+".Value"]=e[n],++i;i&&(s["FilterBy.NamedValue.itemcount"]=i);const o=this;return this.jsonp(this.url(),s).then(function(t){return t.WUResultResponse&&t.WUResultResponse.Result&&t.WUResultResponse.Result.Row?(o._xmlSchema=t.WUResultResponse.Result.XmlSchema,xt(t.WUResultResponse.Result.Row)):[]})},n(Tt,"RoxieQuery"),Tt.prototype=Object.create(St.prototype),n(Pt,"trimRight"),n(Et,"postFilter"),n(Bt,"locateRoxieResponse"),Tt.prototype.query=function(t,e){t=t||{},e=e||{};const s={};for(const o in t)s[o]=t[o];for(const o in e)s[o]=e[o];const i=this;return this.jsonp(this.url(),s).then(function(t){if(t=Bt(t))if(i._resultName){if(t&&t[i._resultName]&&t[i._resultName].Row)return xt(Et(t[i._resultName].Row,e))}else for(const s in t)if(t[s].Row)return xt(Et(t[s].Row,e));return[]})},n(Dt,"createResult"),n(Nt,"enableCache"),n(At,"cache"),n(Ot,"createConnection"),n(Ht,"flattenResult");var Mt={exports:{}};!function(t){function e(t){if(!(this instanceof e))return new e(t);this._canvas=t="string"==typeof t?document.getElementById(t):t,this._ctx=t.getContext("2d"),this._width=t.width,this._height=t.height,this._max=1,this._data=[]}t.exports=e,n(e,"simpleheat"),e.prototype={defaultRadius:25,defaultGradient:{.4:"blue",.6:"cyan",.7:"lime",.8:"yellow",1:"red"},data:n(function(t){return this._data=t,this},"data"),max:n(function(t){return this._max=t,this},"max"),add:n(function(t){return this._data.push(t),this},"add"),clear:n(function(){return this._data=[],this},"clear"),radius:n(function(t,e){e=void 0===e?15:e;var s=this._circle=this._createCanvas(),i=s.getContext("2d"),o=this._r=t+e;return s.width=s.height=2*o,i.shadowOffsetX=i.shadowOffsetY=2*o,i.shadowBlur=e,i.shadowColor="black",i.beginPath(),i.arc(-o,-o,t,0,2*Math.PI,!0),i.closePath(),i.fill(),this},"radius"),resize:n(function(){this._width=this._canvas.width,this._height=this._canvas.height},"resize"),gradient:n(function(t){var e=this._createCanvas(),s=e.getContext("2d"),i=s.createLinearGradient(0,0,0,256);for(var o in e.width=1,e.height=256,t)i.addColorStop(+o,t[o]);return s.fillStyle=i,s.fillRect(0,0,1,256),this._grad=s.getImageData(0,0,1,256).data,this},"gradient"),draw:n(function(t){this._circle||this.radius(this.defaultRadius),this._grad||this.gradient(this.defaultGradient);var e=this._ctx;e.clearRect(0,0,this._width,this._height);for(var s,i=0,o=this._data.length;i<o;i++)s=this._data[i],e.globalAlpha=Math.max(s[2]/this._max,void 0===t?.05:t),e.drawImage(this._circle,s[0]-this._r,s[1]-this._r);var n=e.getImageData(0,0,this._width,this._height);return this._colorize(n.data,this._grad),e.putImageData(n,0,0),this},"draw"),_colorize:n(function(t,e){for(var s,i=0,o=t.length;i<o;i+=4)(s=4*t[i+3])&&(t[i]=e[s],t[i+1]=e[s+1],t[i+2]=e[s+2])},"_colorize"),_createCanvas:n(function(){return"undefined"!=typeof document?document.createElement("canvas"):new this._canvas.constructor},"_createCanvas")}}(Mt);var Lt=Mt.exports;const jt=T(Lt),zt=a({__proto__:null,default:jt},[Lt]),Ft=window.simpleheat||zt&&jt||zt,Ut=class _HeatMap extends e.CanvasWidget{constructor(){super(),r(this,"_heat")}enter(t,e){super.enter(t,e),this.resize(this._size),this._heat=Ft(t)}update(t,e){if(super.update(t,e),this._palette=this._palette.switch(this.paletteID()),this.useClonedPalette()&&(this._palette=this._palette.cloneNotExists(this.paletteID()+"_"+this.id())),this.topLeftX_exists()&&this.topLeftY_exists()&&this.bottomRightX_exists()&&this.bottomRightY_exists()?this._heat.data(this.skewedData()):this._heat.data(this.data()),this.radius()&&this._heat.radius(this.radius(),this.blur()),this.usePalette()){const t={};for(let e=1;e<=this.colorCount();e++){t[e/this.colorCount()]=this._palette(e,1,this.colorCount())}this._heat.defaultGradient=t,this._heat.gradient(t)}else this.gradient()&&(this._heat.defaultGradient=this.gradient(),this._heat.gradient(this.gradient()));this._heat.draw()}exit(t,e){delete this._heat,super.exit(t,e)}resize(t){const s=e.CanvasWidget.prototype.resize.apply(this,arguments);return void 0!==this._heat&&this._heat.resize(),s}skewedData(){const t=this,e=[],s=this.data(),i=this.size(),o=this.bottomRightX()-this.topLeftX(),n=this.bottomRightY()-this.topLeftY(),r=o/i.width,a=n/i.height;return s.forEach(function(s){const i=Math.abs(s[0]-t.topLeftX()),o=Math.abs(s[1]-t.topLeftY()),n=i/r,l=o/a;e.push([n,l,s[2]])}),e}};n(Ut,"HeatMap");let Vt=Ut;Vt.prototype._class+=" other_HeatMap",Vt.prototype._palette=e.Palette.rainbow("default"),Vt.prototype.publish("radius",15,"number","Set point radius",null,{tags:["Basic"]}),Vt.prototype.publish("blur",15,"number","Set point blur",null,{tags:["Basic"]}),Vt.prototype.publish("max",1,"number","Set max data value",null,{tags:["Basic"]}),Vt.prototype.publish("gradient",{.4:"blue",.6:"cyan",.7:"lime",.8:"yellow",1:"red"},"object","Set gradient colors",null,{tags:["Basic"]}),Vt.prototype.publish("usePalette",!1,"boolean","If true, uses paletteID and colorCount to determine gradient",null,{tags:["Basic"]}),Vt.prototype.publish("colorCount",10,"number","Top left x-value",null,{tags:["Basic"]}),Vt.prototype.publish("paletteID","default","set","Color palette for this widget",Vt.prototype._palette.switch(),{tags:["Basic"]}),Vt.prototype.publish("useClonedPalette",!1,"boolean","Enable or disable using a cloned palette",null,{tags:["Intermediate","Shared"]}),Vt.prototype.publish("topLeftX",null,"number","Top left x-value",null,{tags:["Basic"],optional:!0}),Vt.prototype.publish("topLeftY",null,"number","Top left y-value",null,{tags:["Basic"],optional:!0}),Vt.prototype.publish("bottomRightX",null,"number","Bottom right x-value",null,{tags:["Basic"],optional:!0}),Vt.prototype.publish("bottomRightY",null,"number","Bottom right y-value",null,{tags:["Basic"],optional:!0});const qt=class _HPCCBadge extends e.SVGWidget{constructor(){super(),r(this,"root"),r(this,"logo"),r(this,"logo_accent"),r(this,"logo_circles"),r(this,"line"),r(this,"circle_1"),r(this,"circle_2"),r(this,"circle_3"),r(this,"circle_4"),r(this,"circle_5"),r(this,"circle_6"),r(this,"circle_7"),r(this,"circle_8"),r(this,"circle_accent"),r(this,"text"),r(this,"text_hpccsystems"),r(this,"text_r"),r(this,"text_tm")}testData(t,e){return this}enter(t,e){super.enter(t,e),this.root=e.append("g"),this.logo=this.root.append("g"),this.logo_accent=this.root.append("g"),this.line=this.logo_accent.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","m 189.38849,364.55373 c 191.6,3.8 0,0 191.6,3.8 l 0.1,-4.2 c -191.7,0.4 0,0 -191.7,0.4 z"),this.circle_accent=this.logo_accent.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#6E6E73").attr("d","M421.3,354.2c6.9,6.9,3.1,18.7-8.6,26.1c-11.8,7.4-26.3,6.9-32.1-0.6c-5.5-7.2-1.1-18.2,9.6-25C401,348,414.7,347.6,421.3,354.2z"),this.logo_circles=this.logo.append("g"),this.circle_1=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","m 258.9815,363.84947 c 1.3,-3 1.5,-5.9 0.4,-8.1 -2.6,-5.4 -11.8,-5.1 -20.6,0.4 -3.5,2.2 -6.5,4.9 -8.7,7.8 -0.11933,0.35821 -0.39477,0.60735 -0.6,0.9 -2.9,4.1 -4.2,8.3 -3,11.6 2.1,6 11.4,6.3 20.9,0.4 5,-3.2 8.9,-7.3 11,-11.4 -0.59813,0.54778 0.47385,-1.28911 0.6,-1.6 z"),this.circle_2=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M291.3,349.3c9.5-5.9,14.1-15,10.5-20c-3.5-4.8-13.3-4.2-22.1,1.3c-8.8,5.5-13.7,14.1-10.9,19.3C271.7,355.4,281.9,355.2,291.3,349.3z"),this.circle_3=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M335.3,321.7c9.5-5.9,13.3-14.5,8.9-19c-4.3-4.3-14.8-3.2-23.6,2.3c-8.8,5.5-13.1,13.7-9.4,18.4C315,328.3,325.9,327.7,335.3,321.7z"),this.circle_4=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M273.2,384c-3.2-6.5-13.5-6.7-23.2-0.7c-9.7,6-15.6,16.4-13.2,23.4c2.5,7.3,13.1,8.2,23.6,1.7 C270.8,401.9,276.5,390.8,273.2,384z"),this.circle_5=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","m 320.84499,363.83119 c 1,-3.4 0.8,-6.6 -1,-9.1 -4.2,-5.9 -15.3,-5.6 -25,0.5 -3.89999,2.4 -7.09999,5.5 -9.19999,8.7 -1.18854,2.2092 -0.0404,-0.09 -1.2,2.2 -2.2,4.1 -2.7,8.3 -0.9,11.5 3.6,6.7 15.09999,7 25.59999,0.5 5,-3.2 8.7,-7.2 10.7,-11.3 0.95557,-2.97582 0.0423,0.0306 1,-3 z"),this.circle_6=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M330.4,348.2c4.6,6,17,5.8,27.5-0.8c10.5-6.6,14.3-16.5,8.9-22c-5.2-5.3-17.1-4.4-26.8,1.6C330.3,333.1,325.9,342.4,330.4,348.2z"),this.circle_7=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M264.1,417.4c-10.8,6.7-17.2,19-14.2,27.8c3.2,9.2,15.4,11.1,27.2,3.7c11.8-7.4,17.8-20.6,13.6-29.2C286.6,411.6,274.8,410.7,264.1,417.4z"),this.circle_8=this.logo_circles.append("path").attr("fill-rule","evenodd").attr("clip-rule","evenodd").attr("fill","#179BD7").attr("d","M314.2,386.1c-10.8,6.7-16.2,18.4-11.9,26.4c4.5,8.4,17.8,9.5,29.6,2.2c11.8-7.4,16.6-19.9,11.1-27.7C337.7,379.6,324.9,379.3,314.2,386.1z"),this.text=this.root.append("g"),this.text_hpccsystems=this.text.append("path").attr("fill","#6E6E73").attr("d","M224.2,476.3c0.1-1.3,0.1-2.7,0.2-4.1c-0.3,0-0.5,0.1-0.8,0.1c-0.3,0-0.5,0-0.8,0c-0.3,0-0.5,0-0.8,0c-0.3,0-0.5-0.1-0.8-0.1c0.1,1.4,0.1,2.8,0.2,4.1c0.1,1.3,0.1,2.7,0.1,4.1v1.1c-1.1,0-2.3,0-3.3,0.1c-1.1,0-2.2,0-3.3,0c-1.1,0-2.3,0-3.3,0c-1.1,0-2.2,0-3.3-0.1v-1.1c0-1.4,0-2.8,0.1-4.1c0.1-1.3,0.1-2.7,0.2-4.1c-0.3,0-0.5,0.1-0.8,0.1c-0.3,0-0.5,0-0.8,0c-0.3,0-0.5,0-0.8,0c-0.3,0-0.5-0.1-0.8-0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-0.4-0.1c-0.1,0-0.2,0-0.4,0.1c0-0.5,0.1-1,0.1-1.5V475z M432.2,475.7c0.1,0,0.3,0,0.5,0c0.7,0,1.4-0.3,1.4-1.1c0-0.6-0.4-0.9-1-0.9c-0.3,0-0.5,0-0.8,0.1c0,0.3-0.1,0.7-0.1,1V475.7z"),this.text_tm=this.text.append("path").attr("fill","#6E6E73").attr("d","M376.1,322.1c0-0.6,0-1.2,0-1.9c-0.6,0-1.4,0-1.9,0.1c0-0.1,0-0.2,0-0.3c0-0.1,0-0.2,0-0.3c0.8,0,1.5,0,2.3,0s1.5,0,2.3,0c0,0.1,0,0.2,0,0.3c0,0.1,0,0.2,0,0.3c-0.5-0.1-1.3-0.1-1.9-0.1c0,0.6,0,1.2,0,1.9v1.5c0,0.8,0,1.6,0.1,2.3c-0.2,0-0.3,0-0.4,0c-0.1,0-0.3,0-0.4,0c0-0.8,0.1-1.6,0.1-2.3V322.1zM380.5,319.7c0.8,1.7,1.7,3.3,2.6,5c0.4-0.7,1.8-3.3,2.7-5h0.1c0.3,2.3,0.5,4.3,0.7,6.3c-0.1,0-0.3,0-0.4,0c-0.1,0-0.3,0-0.4,0c-0.1-1.6-0.3-3.1-0.4-4.6h0c-0.8,1.5-1.6,3-2.4,4.6h-0.1c-0.7-1.5-1.5-3-2.3-4.6h0c-0.2,1.5-0.4,3.6-0.4,4.6c-0.1,0-0.2,0-0.3,0c-0.1,0-0.2,0-0.3,0c0.3-2,0.7-4.4,0.9-6.3H380.5z");const s=this.root.node().getBBox(),i=s.x+s.width/2,o=s.y+s.height/2,n=Math.min(this.width(),this.height())/Math.max(s.width,s.height);this.root.attr("transform","translate("+-i*n+","+-o*n+")scale("+n+")")}update(t,e){switch(super.update(t,e),this.animation()){case"none":break;case"accentInOut":this.logo.attr("opacity",0),this.logo_accent.attr("transform","translate(-400, 0)"),this.text.attr("opacity",0),this.logo.transition().duration(1e3).attr("opacity",1),this.logo_accent.transition().delay(500).duration(1500).attr("transform","translate(0, 0)"),this.text.transition().delay(100).duration(1e3).attr("opacity",1),this.logo_accent.transition().ease("back").delay(7e3).duration(1500).attr("transform","translate(400, 0)"),this.text.transition().delay(8400).duration(1e3).attr("opacity",0),this.logo_accent.transition().delay(8500).duration(1e3).attr("opacity",0),this.logo.transition().delay(8500).duration(1e3).attr("opacity",0);break;case"accentIn":this.logo.attr("opacity",0),this.logo_accent.attr("transform","translate(-400, 0)"),this.text.attr("opacity",0),this.logo.transition().duration(1e3).attr("opacity",1),this.logo_accent.transition().delay(500).duration(1500).attr("transform","translate(0, 0)"),this.text.transition().delay(100).duration(1e3).attr("opacity",1);break;case"fade_in":this.logo.attr("opacity",0),this.logo_accent.attr("opacity",0),this.text.attr("opacity",0),this.logo.transition().duration(1e3).attr("opacity",1),this.logo_accent.transition().duration(1e3).attr("opacity",1),this.text.transition().delay(100).duration(1e3).attr("opacity",1)}}};n(qt,"HPCCBadge");let Gt=qt;Gt.prototype._class+=" other_HPCCBadge",Gt.prototype.publish("animation","none","set","Animation Style",["none","accentInOut","accentIn","fade_in"]);const Yt=class _Html extends e.HTMLWidget{constructor(){super(),this._tag="div"}enter(t,e){super.enter(t,e)}update(t,e){super.update(t,e),e.style("overflow-x",this.overflowX_exists()?this.overflowX():"").style("overflow-y",this.overflowY_exists()?this.overflowY():"");const s=e.selectAll(".htmlWrapper").data(this.data().length>0?this.data():[this.html()]);s.enter().append("div").attr("class","htmlWrapper").merge(s).html(function(t){return t}),s.exit().remove()}};n(Yt,"Html");let $t=Yt;$t.prototype._class+=" other_Html",$t.prototype.publish("html","","string","Html to render",null,{tags:["Basic"]}),$t.prototype.publish("overflowX",null,"set","CSS overflow-x",["","visible","hidden","scroll","auto","initial","inherit"],{tags:["Basic"],optional:!0}),$t.prototype.publish("overflowY",null,"set","CSS overflow-y",["","visible","hidden","scroll","auto","initial","inherit"],{tags:["Basic"],optional:!0});const Xt=class _IconList extends e.HTMLWidget{constructor(){super(),r(this,"_list"),r(this,"_entity_list",[]),r(this,"_content_list",[]),this._list=(new s.HorizontalList).orientation_default("horizontal").flexWrap_default("nowrap")}enter(t,s){super.enter(t,s),s.style("height","100%").style("width","100%"),e.select(t.parentElement).style("height","100%").style("width","100%"),this._list.target(t)}update(t,i){super.update(t,i);const o=this._list.widgets();this.data().forEach((t,i)=>{o[i]?(o[i]=this.updateListProperties(o[i],i),this.updateEntityProperties(o[i].widgets()[0],i),o[i].widgets()[1].html(this.data()[i][this.htmlColumnIndex_exists()?this.htmlColumnIndex():1])):o[i]=this.updateListProperties(new s.VerticalList,i).widgets([this.updateEntityProperties(new e.Entity,i),(new $t).html(this.data()[i][this.htmlColumnIndex_exists()?this.htmlColumnIndex():1])])}),this._list.widgets(o.slice(0,this.data().length)),this._list.resize().render()}updateListProperties(t,e){return t.disableScroll(!0).widgetsFlexBasis([this.iconSize()+"px",`calc(100% - ${this.iconSize()}px)`])}updateEntityProperties(t,e){return t.icon(this.iconColumnIndex_exists()?this.data()[e][this.iconColumnIndex()]:"?").iconColor(this.iconColorColumnIndex_exists()?this.data()[e][this.iconColorColumnIndex()]:"#000").iconDiameter(this.iconSize()).iconPaddingPercent(0)}};n(Xt,"IconList");let Jt=Xt;Jt.prototype._class+=" other_IconList",Jt.prototype.publish("iconSize",72,"number","Size of icon (pixels)"),Jt.prototype.publish("iconColumnIndex",0,"number","Index of column containing icon character"),Jt.prototype.publish("iconColorColumnIndex",1,"number","Index of column containing icon color"),Jt.prototype.publish("htmlColumnIndex",2,"number","Index of column containing html string");const Qt=class _Paginator extends e.HTMLWidget{constructor(){super(),r(this,"_tNumPages"),r(this,"_numList"),r(this,"paginator"),r(this,"side"),r(this,"_onSelect"),this._tag="div",this._tNumPages=1,this._numList=[]}postUpdate(t,e){}enter(t,e){super.enter(t,e);const s=this;this.paginator=e.append("ul").attr("class","paginator pagination pagination-sm"),this.side=e.append("div").attr("class","paginator pagination side"),this.side.append("span").classed("side",!0).text("Page "),this.side.append("input").attr("type","number").attr("class","currentPageNumber").property("value",1).attr("min",1).on("change",function(){s.pageNumber(this.value),s._onSelect(this.value)}),this.side.append("span").classed("side total",!0).text(" of 1")}update(t,s){const i=this;if(s.style("bottom",this.bottom()+"px").style("right",this.right()+"px"),this._tNumPages=Math.ceil(this.numItems()/this.itemsPerPage())||1,this.pageNumber()>this._tNumPages&&this.pageNumber(1),this._numList=[],this.numItems()){this._numList.push("first");for(let t=-this.adjacentPages();t<=this.adjacentPages();t++)this.pageNumber()+t>0&&this.pageNumber()+t<=this._tNumPages&&this._numList.push(this.pageNumber()+t);this._numList.push("last")}this.side.select(".total").text(" of "+this._tNumPages),this.side.select(".currentPageNumber").property("value",this.pageNumber()),this.side.select(".currentPageNumber").attr("max",this._tNumPages);const o=this.paginator.selectAll("li").data(this._numList,function(t){return t});o.enter().append(function(t){const e=document.createElement("li");if(t!==i.pageNumber()){const s=document.createElement("a"),i=document.createTextNode(t);return s.appendChild(i),s.href="#",e.appendChild(s),e}{const s=document.createElement("span");return s.innerHTML=t,e.appendChild(s),e}}).on("click",function(t,s){switch(e.d3Event().preventDefault(),i.side.select(".currentPageNumber").property("value",i.pageNumber()),t){case"first":1!==i.pageNumber()&&(i.pageNumber(1),i._onSelect(1,"previous"));break;case"last":i.pageNumber()!==i._tNumPages&&(i.pageNumber(i._tNumPages),i._onSelect(i._tNumPages,"previous"));break;default:i.pageNumber(t),i._onSelect(t)}}),o.classed("active",function(t,e){return t===i.pageNumber()}).select("a").text(function(t){return t}),o.exit().remove(),o.order(),0===this.numItems()&&e.select(t).remove()}exit(t,e){super.exit(t,e)}};n(Qt,"Paginator");let Kt=Qt;Kt.prototype._class+=" other_Paginator",Kt.prototype.publish("itemsPerPage",2,"number","Pagination items per page",null,{tags:["Private"]}),Kt.prototype.publish("numItems",10,"number","Pagination total number of items",null,{tags:["Private"]}),Kt.prototype.publish("pageNumber",1,"number","Pagination set or get the page number",null,{tags:["Private"]}),Kt.prototype.publish("adjacentPages",2,"number","Number of page indexes either side of current one",null,{tags:["Private"]}),Kt.prototype.publish("bottom",20,"number","Pagination bottom offset",null,{tags:["Private"]}),Kt.prototype.publish("right",20,"number","Pagination right offset",null,{tags:["Private"]});const Zt=class _Table extends e.HTMLWidget{constructor(){super(),r(this,"_paginator"),r(this,"_selectionBag"),r(this,"_selectionPrevClick"),r(this,"_paginatorTableSpacing"),r(this,"tableDiv"),r(this,"thead"),r(this,"table"),r(this,"fixedHead"),r(this,"fixedHeadTable"),r(this,"fixedThead"),r(this,"unfixedThead"),r(this,"tbody"),r(this,"tfoot"),r(this,"fixedCol"),r(this,"fixedColTable"),r(this,"fixedColHead"),r(this,"fixedColHeadRow"),r(this,"fixedColBody"),r(this,"fixedColFoot"),r(this,"fixedColFootRow"),r(this,"_prevDescending"),r(this,"_prevSortByFieldIndex"),r(this,"_hasChildWidgets"),r(this,"_tNumPages"),r(this,"_empty_col_idx_arr"),this._tag="div",this.columns([]),this._paginator=new Kt,this._selectionBag=new e.Utility.Selection(this),this._selectionPrevClick=null,this._paginatorTableSpacing=4}size(t){const e=super.size.apply(this,arguments);if(arguments.length&&this.tableDiv){const t=this.showHeader()&&this.fixedHeader()?this.thead.property("offsetHeight"):0;this.tableDiv.style("width",this._size.width+"px").style("height",this._size.height-t+"px"),this._element.style("width",this._size.width+"px").style("height",this._size.height+"px")}return e}isHidden(t){if(this.pivot())return!1;if(-1!==this.hiddenColumns().indexOf(t))return!0;const e=this.fields();return!(!e||!e[t]||"hidden"!==e[t].type()&&-1===this._empty_col_idx_arr.indexOf(t))}tableColumns(t){const e=this.columns.apply(this,arguments);return!arguments.length&&this.pivot()?this._db.column(0):e}tableData(t){const e=this.data.apply(this,arguments);return!arguments.length&&this.pivot()?this._db.columns().filter(function(t,e){return e>0}):e}field(t,e){const s={transform:n(t=>t,"transform")};return this.pivot()?0===e?s:this.fields()[t+1]:-1===t?s:this.fields()[e]}calcFieldsIndex(t){let e=-1,s=0;const i=this.columns().length;let o=0;for(;e<i&&o<=t;)e++,this.isHidden(e)?s++:o++;return t+s}getEmptyColumnIdxArr(t,e){const s=[];if(this.hideEmptyColumns())for(let i=0;i<t.length;i++){let t=!0;for(let s=0;s<e.length;s++)if(-1===["",null,void 0].indexOf(e[s][i])){t=!1;break}t&&s.push(i)}return s}enter(t,e){super.enter(t,e),this._placeholderElement.style("overflow","hidden"),this.tableDiv=e.append("div").attr("class","tableDiv"),this.table=this.tableDiv.append("table"),this.fixedHead=e.append("div").classed("header-wrapper",!0),this.fixedHeadTable=this.fixedHead.append("table"),this.fixedThead=this.fixedHeadTable.append("thead").append("tr"),this.unfixedThead=this.table.append("thead").append("tr"),this.tbody=this.table.append("tbody"),this.tfoot=this.table.append("tfoot").append("tr"),this.fixedCol=e.append("div").classed("rows-wrapper",!0),this.fixedColTable=this.fixedCol.append("table"),this.fixedColHead=this.fixedColTable.append("thead"),this.fixedColHeadRow=this.fixedColHead.append("tr"),this.fixedColBody=this.fixedColTable.append("tbody"),this.fixedColFoot=this.fixedColTable.append("tfoot"),this.fixedColFootRow=this.fixedColFoot.append("tr"),this.tableDiv.style("overflow","auto")}update(t,s){super.update(t,s);const i=this,o=i.tableColumns(),r=i.tableData(),a=this.tableDiv.node().scrollLeft;this._empty_col_idx_arr=this.getEmptyColumnIdxArr(o,r),this.element().selectAll("table,tbody,th,td").style("width",null),!this.sortByFieldIndex_exists()||this._prevSortByFieldIndex===this.sortByFieldIndex()&&this._prevDescending===this.descending()||(e.Utility.multiSort(r,[{idx:this.sortByFieldIndex(),reverse:this.descending()}]),this._prevSortByFieldIndex=this.sortByFieldIndex(),this._prevDescending=this.descending()),this._hasChildWidgets=!1,this.fixedHeader()?this.thead=this.fixedThead:this.thead=this.unfixedThead,this.fixedHead.style("display",this.fixedHeader()?"table-row":"none"),this.unfixedThead.style("display",this.fixedHeader()?"none":"table-row");const l=this.thead.selectAll("th").data(this.showHeader()?o.filter(function(t,e){return!i.isHidden(e)&&-1===i._empty_col_idx_arr.indexOf(e)}):[]),c=l.enter().append("th").each(function(t){const s=e.select(this);s.append("span").attr("class","thText"),s.append("span").attr("class","thIcon")}).on("click",function(t,e){i.headerClick(t,e)}).merge(l).style("background-color",this.theadRowBackgroundColor()).style("border-color",this.theadCellBorderColor()).style("color",this.theadFontColor()).style("font-size",this.theadFontSize());if(c.select(".thText").style("font-family",this.theadFontFamily()).text(function(t,e){const s=i.calcFieldsIndex(e);return i.field(-1,s).transform(t)}),c.select(".thIcon").text(function(t,e){return i.descending()?i.sortByFieldIndex()===e?"":"":i.sortByFieldIndex()===e?"":""}),l.exit().remove(),c.order(),this.paginationLimit()&&this.pagination(r.length>=parseInt(this.paginationLimit())),this.pagination()){null===this._paginator.target()&&this._paginator.target(s.node());const t=this._calcRowsPerPage(c);this.itemsPerPage(t),this._paginator.numItems(r.length),this._tNumPages=Math.ceil(this._paginator.numItems()/this.itemsPerPage())||1,(this.pageNumber()>this._tNumPages||this.pageNumber()<=0)&&this.pageNumber(1),this._paginator._onSelect=function(t,e){i.pageNumber(t),i.render()}}else this._paginator.numItems(0);const u=this.pageNumber()-1,h=this.itemsPerPage(),p=u*h,d=u*parseInt(h)+parseInt(h);let g=null;g=this.topN()?r.slice(0,this.topN()):this.pagination()?r.slice(p,d):r;const f=[this.totalledLabel()?this.totalledLabel():null];if(0!==this.totalledColumns().length){for(let e=0;e<this.totalledColumns().length;e++)this.totalledColumns()[e]=+this.totalledColumns()[e];for(let e=1;e<o.length;e++){let t=0;if(-1!==this.totalledColumns().indexOf(e)){for(let s=0;s<g.length;s++)t+=g[s][e];f.push(t)}else f.push("")}const t=this.tfoot.selectAll("td").data(f);t.enter().append("td").merge(t).style("background-color",this.tfootRowBackgroundColor()).style("border-color",this.tfootCellBorderColor()).style("color",this.tfootFontColor()).style("font-size",this.tfootFontSize())[this.renderHtmlDataCells()?"html":"text"](function(t,e){return i.fields()[e].transform(t)}),t.exit().remove()}const m=this.tbody.selectAll("tr.tr_"+this.id()).data(g.map(function(t,e){for(let s=0;s<t.length;++s)void 0===t[s]&&(t[s]=null);return{rowIdx:e,row:t}})),y=m.enter().append("tr").attr("class","tr_"+this.id()).on("click.selectionBag",function(t){if(t.row){const e=t.row,s=t.rowIdx;i.selectionBagClick(e,s),i.applyRowStyles(i.getBodyRow(s)),i.applyFirstColRowStyles(i.getFixedRow(s))}},!0).on("mouseover",function(t){if(t.row){const e=t.rowIdx,s=i.getFixedRow(e);s.empty()||s.classed("hover",!0);const o=i.getBodyRow(e);o.classed("hover",!0),i.applyStyleToRows(o),i.applyFirstColRowStyles(s)}}).on("mouseout",function(t){if(t.row){const e=t.rowIdx,s=i.getFixedRow(e);s.classed("hover",!1);const o=i.getBodyRow(e);o.classed("hover",!1),i.applyStyleToRows(o),i.applyFirstColRowStyles(s)}}).merge(m).classed("selected",function(t){const e=t.row;return i._selectionBag.isSelected(i._createSelectionObject(e))}).classed("trId"+this._id,!0);m.exit().remove(),this.applyStyleToRows(y);const _=y.selectAll(".td_"+this.id()).data(function(t,e){return t.row.filter(function(t,e){return e<o.length&&!i.isHidden(e)&&-1===i._empty_col_idx_arr.indexOf(e)}).map(function(e,s){return{rowInfo:t,colIdx:s,cell:e}})});_.enter().append("td").attr("class","td_"+this.id()).on("click",function(t){t.rowInfo&&i.click(i.rowToObj(t.rowInfo.row),i.columns()[t.colIdx],i._selectionBag.isSelected(i._createSelectionObject(t.rowInfo.row)))}).on("dblclick",function(t,e){t.rowInfo&&i.dblclick(i.rowToObj(t.rowInfo.row),i.columns()[t.colIdx],i._selectionBag.isSelected(i._createSelectionObject(t.rowInfo.row)))}).each(function(t,s){const o=i.getColumnAlignment(t.rowInfo.rowIdx,t.colIdx,t.cell);e.select(this).style("height",null).style("text-align",o).style("vertical-align",i.verticalAlign()).classed("tr-"+t.rowInfo.rowIdx+"-td-"+s,!0)}).merge(_).each(function(t){const s=e.select(this);if(t.cell instanceof e.Widget){s[i.renderHtmlDataCells()?"html":"text"](null);const o=s.selectAll(".div_"+i.id()).data([t.cell],function(t){return t.id()});o.exit().each(function(t){t.target(null)}).remove(),o.enter().append("div").attr("class","div_"+i.id()).style("width",i.minWidgetWidth()+"px").style("height",i.minWidgetHeight()+"px").each(function(t){const s=e.select(this);t._parentWidget=i,t._class.indexOf("childWidget")<0&&(t._class="childWidget "+t._class),t.target(null).target(s.node())}).merge(o).each(function(t){t.resize().lazyRender(),i._hasChildWidgets=!0})}else{s.selectAll(".div_"+i.id()).remove();const e=i.calcFieldsIndex(t.colIdx);s[i.renderHtmlDataCells()?"html":"text"](i.field(t.rowInfo.rowIdx,e).transform(t.cell))}}),_.exit().remove();const b=parseInt(this.thead.node().offsetHeight);this.pagination()&&this._hasChildWidgets?(this.tableDiv.style("overflow-y","auto"),this.table.style("margin-bottom","50px"),console.warn("Warning: displaying another widget in the table may cause problems with pagination")):(this.tableDiv.style("overflow-y",null),this.table.style("margin-bottom",null)),this.size(this._size);let w=0;const x=this.fixedColHeadRow.selectAll("th").data(this.fixedColumn()&&this.showHeader()?[o[0]]:[]),v=x.enter().append("th").each(function(t){const s=e.select(this);s.append("span").attr("class","thText"),s.append("span").attr("class","thIcon")}).on("click",function(t,e){i.headerClick(t,e)}).merge(x).style("background-color",this.theadRowBackgroundColor()).style("border-color",this.theadCellBorderColor()).style("color",this.theadFontColor()).style("font-size",this.theadFontSize());v.select(".thText").style("font-family",this.theadFontFamily()).text(function(t){return t}),v.select(".thIcon").text(function(t,e){return i.descending()?i.sortByFieldIndex()===e?"":"":i.sortByFieldIndex()===e?"":""}),x.exit().remove();const C=this.fixedColBody.selectAll("tr").data(this.fixedColumn()?g:[]),S=C.enter().append("tr").attr("class",function(){return"trId"+i._id}).merge(C).on("click",function(t,s){e.select(y[0][s]).on("click.selectionBag")(y.data()[s],s)}).on("mouseover",function(t,s){e.select(y[0][s]).on("mouseover")(y.data()[s],s)}).on("mouseout",function(t,s){e.select(y[0][s]).on("mouseout")(y.data()[s],s)}).classed("selected",function(t){return i._selectionBag.isSelected(i._createSelectionObject(t))});C.exit().remove();const R=S.selectAll("td").data(function(t,e){return[t[0]]}),I=R.enter().append("td").merge(R)[this.renderHtmlDataCells()?"html":"text"](function(t){return"string"==typeof t?t.trim():"number"==typeof t?t:""});R.exit().remove();const W=this.fixedColFootRow.selectAll("td").data(this.fixedColumn()&&this.totalledLabel()?[this.totalledLabel()]:[]),k=W.enter().append("td").merge(W)[this.renderHtmlDataCells()?"html":"text"](function(t){return"string"==typeof t?t.trim():"number"==typeof t?t:""});let T;if(W.exit().remove(),this.fixedColumn()&&!this.fixedSize()&&k.length&&(this.showHeader()?(k.property("offsetWidth"),k.property("offsetWidth"),w=k.property("offsetWidth")):w=k.property("offsetWidth"),this.fixedCol.style("position","absolute").style("margin-top",-this.tableDiv.property("scrollTop")+b+"px"),I.style("width",w+"px"),this.fixedColHead.style("position","absolute").style("margin-top",(this.fixedHeader()?this.tableDiv.property("scrollTop"):0)-b+"px"),v.style("width",w+"px"),y.each(function(t,s){const i=e.select(this).select("td").property("offsetHeight");e.select(I[s][0]).style("height",i+"px")})),this.table.style("margin-left",-w+"px"),this.tableDiv.style("margin-left",w+"px").style("width",this.width()-w+"px"),y.empty()||this.setColumnWidths(y),this.fixedSize()){const t=e.select(".tableDiv > table").node();if(t){let e,o;T=t.getBoundingClientRect(),0!==T.width&&0!==T.height?(P(),E()):(T.height-b<=i.tableDiv.property("offsetHeight")?E():i.fixedHeader()?(e=i.tableDiv.property("offsetHeight"),e+="px"):e="100%",T.width-w<i.tableDiv.property("offsetWidth")?P():i.fixedColumn()?(o=i.tableDiv.property("offsetWidth")-w,o+="px"):o="100%"),s.classed("childWidget")&&(i._placeholderElement.style("width",o+"px").style("height",e+"px"),i.tableDiv.style("overflow","hidden")),i.size({width:o,height:e})}}function P(){T.width,i.tbody.property("offsetWidth")}function E(){i.tbody.property("offsetHeight")}this.setOnScrollEvents(this.tableDiv.node(),b),n(P,"calcWidth"),n(E,"calcHeight"),this._paginator.render(),setTimeout(function(){i._paginator.right((i.hasVScroll(s)?e.Platform.getScrollbarWidth():0)+i._paginatorTableSpacing).bottom((i.hasHScroll(s)?e.Platform.getScrollbarWidth():0)+i._paginatorTableSpacing).render(function(){i.tableDiv.node().scrollLeft=a})},0)}exit(t,e){this._paginator.target(null),super.exit(t,e)}setColumnWidths(t){const s=t.filter(function(t,e){return 0===e});let i=e.select(null);s.each(function(t){i=e.selectAll(this.childNodes)});const o=this.fixedHeader()?this.thead.property("offsetHeight"):0;let n=1;const r={};i.each(function(t,e){r[e]=this.offsetWidth});this.thead.selectAll("th").each(function(t,s){const o=this.offsetWidth,a=i.empty()?0:r[s],l=o>=a?o:a;this.style.width=l+"px",i.filter((t,e)=>0===e).each(function(){e.select(this).style("width",l+"px")}),n+=l}),this.thead.style("position",this.fixedHeader()?"absolute":"relative").style("width",n+"px").style("margin-top","0px"),this.table.style("width",n+"px"),this.tableDiv.style("margin-top",(this.fixedHeader()?o:0)+"px"),this.tbody.style("width",n+"px")}getBodyRow(t){return this.table.selectAll("tbody tr.trId"+this._id).filter(function(e,s){return s===t})}getFixedRow(t){return this._element.selectAll(".rows-wrapper tbody tr").filter(function(e,s){return s===t})}setOnScrollEvents(t,e){const s=this;t.onscroll=function(t){const i=t.target.scrollTop,o=t.target.scrollLeft;s.fixedHeader()&&s.thead.style("margin-left",-o+"px"),s.fixedColumn()&&(s.fixedCol.style("margin-top",-i+e+"px"),s.fixedHeader()&&s.fixedColHead.style("margin-top",i-e+"px"))}}_generateTempRow(){const t=this.tbody.append("tr");return t.append("td").text("QQQ"),t}_createSelectionObject(t){const s=this;return{_id:t,element:n(()=>s.tbody?s.tbody.selectAll("tr").filter(function(e){return e===t}):e.select(null),"element")}}_calcRowsPerPage(t){0===this._paginator.numItems()&&(this._paginator.numItems(1),this.itemsPerPage(1)),this._paginator.render();const s=this.thead.selectAll("th").node()?this.thead.selectAll("th").node().clientHeight:0,i=this.tfoot.selectAll("td").node()?this.tfoot.selectAll("td").node().clientHeight:0,o=this._generateTempRow(),n=o.node().clientHeight;o.remove();const r=this.calcHeight(this._paginator.element());let a=Math.floor((this.height()-s-i-r-(this.table.style("width")>=this.table.style("width")?e.Platform.getScrollbarWidth():0)-2*this._paginatorTableSpacing)/n)||1;return 0!==this.totalledColumns().length&&(a-=1),a}sort(t){return this.sortByFieldIndex()!==t?this.descending(!1):this.descending(!this.descending()),this.sortByFieldIndex(t),this}selection(t){return arguments.length?(this._selectionBag.set(t.map(function(t){return this._createSelectionObject(t)},this)),this):this._selectionBag.get().map(function(t){return t._id})}selectionBagClick(t,s){if(this.multiSelect()&&e.d3Event().shiftKey&&this._selectionPrevClick){let e=!1;const s=this.tableData().filter(function(s,i){let o=!1;return s!==t&&s!==this._selectionPrevClick||(e&&(o=!0),e=!e),e||o},this);this.selection(s)}else if(this.multiSelect())this._selectionBag.click(this._createSelectionObject(t),e.d3Event),this._selectionPrevClick=t;else{const e=this._createSelectionObject(t);this._selectionBag.click(e,{ctrlKey:this._selectionBag.isSelected(e)}),this._selectionPrevClick=t}this.render()}applyHoverRowStyles(t){t.style("color",this.tbodyHoverRowFontColor()).style("background-color",this.tbodyHoverRowBackgroundColor())}applySelectedRowStyles(t){t.style("color",this.tbodySelectedRowFontColor()).style("background-color",this.tbodySelectedRowBackgroundColor())}applyRowStyles(t,e=!1){const s=t.datum().row;t.style("color",e?this.tbodyFirstColFontColor():this.tbodyFontColor()).style("background-color",e?this.tbodyFirstColBackgroundColor():this.tableZebraColor_exists()&&this.tableData().indexOf(s)%2?this.tbodyRowBackgroundColor():this.tableZebraColor())}applyFirstColRowStyles(t){this.applyStyleToRows(t,!0)}applyStyleToRows(t,s=!1){s=void 0!==s&&s;const i=this;t.each(function(){const t=e.select(this);t.classed("hover")?i.applyHoverRowStyles(t):t.classed("selected")?i.applySelectedRowStyles(t):i.applyRowStyles(t,s)})}getColumnAlignment(t,e,s){const i=this.calcFieldsIndex(e);switch(this.field(t,i).__prop_type){case"string":return this.stringAlign();case"number":return this.numberAlign();case"":case void 0:switch(typeof s){case"string":return this.stringAlign();case"number":return this.numberAlign()}}return null}serializeState(){return{selection:this._selectionBag.get().map(function(t){return t._id}),data:this.data()}}deserializeState(t){if(t){if(t.selection){const e=this;this._selectionBag.set(t.selection.map(function(t){return e._createSelectionObject(t)}))}t.data&&this.data(t.data)}return this}click(t,e,s){}dblclick(t,e,s){}headerClick(t,e){this.sort(e).render()}};n(Zt,"Table");let te=Zt;function ee(t){return'<div class="colorBlock" style="background-color:'+t+';"></div>'}te.prototype._class+=" other_Table",te.prototype.publish("renderHtmlDataCells",!1,"boolean","enable or disable HTML within cells",null,{tags:["Private"]}),te.prototype.publish("pagination",!0,"boolean","Enable or disable pagination",null,{tags:["Private"]}),te.prototype.publish("paginationLimit",null,"number","Maximum number of rows allowed before pagination defaults to on",null,{tags:["Private"]}),te.prototype.publishProxy("itemsPerPage","_paginator"),te.prototype.publishProxy("pageNumber","_paginator","pageNumber",1),te.prototype.publishProxy("adjacentPages","_paginator"),te.prototype.publish("topN",null,"number","Total number or rows of data to be displayed in the table",null,{tags:["Private"]}),te.prototype.publish("pivot",!1,"boolean","Pivot Table"),te.prototype.publish("showHeader",!0,"boolean","Show or hide the table header",null,{tags:["Private"]}),te.prototype.publish("fixedHeader",!0,"boolean","Enable or disable fixed table header",null,{tags:["Private"]}),te.prototype.publish("fixedColumn",!1,"boolean","Enable or disable fixed first column",null,{tags:["Private"]}),te.prototype.publish("multiSelect",!1,"boolean","Multiple Selection",null,{tags:["Basic"]}),te.prototype.publish("fixedSize",!1,"boolean","Fix Size to Min Width/Height"),te.prototype.publish("hideEmptyColumns",!1,"boolean","Hide columns with all empty cells"),te.prototype.publish("theadFontSize",null,"string","Table head font size",null,{tags:["Basic"],optional:!0}),te.prototype.publish("tbodyFontSize",null,"string","Table body font size",null,{tags:["Basic"],optional:!0}),te.prototype.publish("tfootFontSize",null,"string","Table body font size",null,{tags:["Basic"],optional:!0}),te.prototype.publish("theadFontColor",null,"html-color","Table head font color",null,{tags:["Basic"],optional:!0}),te.prototype.publish("tbodyFontColor",null,"html-color","Table body font color",null,{tags:["Basic"],optional:!0}),te.prototype.publish("tfootFontColor",null,"html-color","Table body font color",null,{tags:["Basic"],optional:!0}),te.prototype.publish("theadFontFamily",null,"string","Table head font family",null,{tags:["Basic"],optional:!0}),te.prototype.publish("tbodyFontFamily",null,"string","Table body font family",null,{tags:["Basic"],optional:!0}),te.prototype.publish("tfootFontFamily",null,"string","Table body font family",null,{tags:["Basic"],optional:!0}),te.prototype.publish("theadCellBorderColor",null,"html-color","Table head cell border color",null,{tags:["Basic"],optional:!0}),te.prototype.publish("tfootCellBorderColor",null,"html-color","Table head cell border color",null,{tags:["Basic"],optional:!0}),te.prototype.publish("theadRowBackgroundColor",null,"html-color","Table head row color",null,{tags:["Basic"],optional:!0}),te.prototype.publish("tfootRowBackgroundColor",null,"html-color","Table head row color",null,{tags:["Basic"],optional:!0}),te.prototype.publish("tbodyCellBorderColor",null,"html-color","Table body cell border color",null,{tags:["Basic"],optional:!0}),te.prototype.publish("tbodyRowBackgroundColor",null,"html-color","Table body row color",null,{tags:["Basic"],optional:!0}),te.prototype.publish("tbodyFirstColFontColor",null,"html-color","Table body first column font color",null,{tags:["Basic"],optional:!0}),te.prototype.publish("tbodyFirstColBackgroundColor",null,"html-color","Table body first column background color",null,{tags:["Basic"],optional:!0}),te.prototype.publish("tbodyHoverRowFontColor",null,"html-color","Table body hover row font color",null,{tags:["Basic"],optional:!0}),te.prototype.publish("tbodyHoverRowBackgroundColor",null,"html-color","Table body hover row background color",null,{tags:["Basic"],optional:!0}),te.prototype.publish("tbodySelectedRowFontColor",null,"html-color","Table body selected row color",null,{tags:["Basic"],optional:!0}),te.prototype.publish("tbodySelectedRowBackgroundColor",null,"html-color","Table body selected row color",null,{tags:["Basic"],optional:!0}),te.prototype.publish("tableZebraColor",null,"html-color","Table zebra row color",null,{tags:["Basic"],optional:!0}),te.prototype.publish("totalledColumns",[],"array","Array of indices of the columns to be totalled",null,{tags:["Basic"],optional:!0,disable:n(t=>t.pivot(),"disable")}),te.prototype.publish("totalledLabel",null,"string","Adds a label to the first column of the 'Totalled' row",null,{tags:["Basic"],optional:!0,disable:n(t=>t.pivot(),"disable")}),te.prototype.publish("hiddenColumns",[],"array","Array of indices of the columns to be hidden",null,{tags:["Basic"],optional:!0,disable:n(t=>t.pivot(),"disable")}),te.prototype.publish("stringAlign","left","set","Cell alignment for strings",["left","right","center"],{tags:["Basic"],optional:!0}),te.prototype.publish("numberAlign","right","set","Cell alignment for numbers",["left","right","center"],{tags:["Basic"],optional:!0}),te.prototype.publish("verticalAlign",null,"set","Cell vertical alignment",[null,"middle","top","bottom"],{tags:["Basic"],optional:!0}),te.prototype.publish("minWidgetWidth",320,"number","Minimum width of a child widget",null,{tags:["Basic"],optional:!0}),te.prototype.publish("minWidgetHeight",240,"number","Minimum height of a child widget",null,{tags:["Basic"],optional:!0}),te.prototype.publish("sortByFieldIndex",null,"number","Index for the field/column to sort the data",null,{tags:["Basic"],optional:!0}),te.prototype.publish("descending",!1,"boolean","Direction for sorting the data: ascending (true) or descending (false)",null,{tags:["Basic"],optional:!0}),n(ee,"_htmlColorBlock");const se=class _Legend extends te{constructor(){super(),r(this,"_targetWidget"),r(this,"_targetWidgetMonitor"),this.showHeader(!1),this.pagination(!1)}isRainbow(){const t=this.getWidget();return t&&t._palette&&"rainbow"===t._palette.type()}targetWidget(t){if(!arguments.length)return this._targetWidget;this._targetWidget=t,this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor);const e=this;return this._targetWidgetMonitor=this._targetWidget.monitor(function(t,s,i,o){switch(t){case"chart":case"columns":case"data":case"paletteID":e.lazyRender()}}),this}getWidget(){return this._targetWidget&&"chart_MultiChart"===this._targetWidget.classID()?this._targetWidget.chart():this._targetWidget}getPalette(){const t=this.getWidget();if(t&&t._palette)switch(t._palette.type()){case"ordinal":return e.Palette.ordinal(t._palette.id());case"rainbow":return e.Palette.rainbow(t._palette.id())}return e.Palette.ordinal("default")}enter(t,s){super.enter(t,s),e.select(t.parentNode).style("overflow-y","auto"),this.renderHtmlDataCells(!0),this.fixedHeader(!1),this.fixedSize(!0),s.classed("other_Legend",!0)}update(t,s){let i=[];if(this._targetWidget){const t=this.getPalette();switch(t.type()){case"ordinal":const s=t;switch(this.dataFamily()){case"2D":i=this._targetWidget.data().map(function(t){return[ee(s(t[0])),t[0]]},this);break;case"ND":i=this._targetWidget.columns().filter(function(t,e){return e>0}).map(function(t){return[ee(s(t)),t]},this)}break;case"rainbow":const o=t,n=e.format(this.rainbowFormat()),r=this.getWidget(),a=this.rainbowBins(),l=r._dataMinWeight,c=r._dataMaxWeight,u=(c-l)/(a-1);i.push([ee(o(l,l,c)),n(l)]);for(let t=1;t<a-1;++t){const e=u*t;i.push([ee(o(e,l,c)),n(Math.floor(e))])}i.push([ee(o(c,l,c)),n(c)])}}this.columns(["Key","Label"]),this.data(i),super.update(t,s),s.classed("horiz-legend","horizontal"===this.orientation());const o=s.select(".tableDiv > table"),n=o.node().getBoundingClientRect(),r=this._placeholderElement.node().getBoundingClientRect();s.select(".tableDiv").style("overflow","visible");const a=r.height/2-n.height/2,l=r.width/2-n.width/2;o.style("position","absolute").style("top",a+"px").style("left",l+"px");const c=this.pageNumber()-1,u=this.itemsPerPage(),h=c*u,p=c*parseInt(u)+parseInt(u);let d=null;d=this.pagination()?this.data().slice(h,p):this.data();const g=this.tbody.selectAll("tr").data(d),f=this;g.on("click",function(t,e){f.onClick(t,e)}).on("dblclick",function(t,e){f.onDblClick(t,e)}).on("mouseover",function(t,e){f.onMouseOver(t,e)})}exit(t,e){this._targetWidgetMonitor&&(this._targetWidgetMonitor.remove(),delete this._targetWidgetMonitor),super.exit(t,e)}onClick(t,e){}onDblClick(t,e){}onMouseOver(t,e){}};n(se,"Legend");let ie=se;ie.prototype._class+=" other_Legend",ie.prototype.publish("dataFamily","ND","set","Type of data",["1D","2D","ND","map","any","other"],{tags:["Private"]}),ie.prototype.publish("orientation","vertical","set","Orientation of Legend rows",["vertical","horizontal"],{tags:["Private"]}),ie.prototype.publish("rainbowFormat",",","string","Rainbow number formatting",null,{tags:["Private"],optional:!0,disable:n(t=>!t.isRainbow(),"disable")}),ie.prototype.publish("rainbowBins",8,"number","Number of rainbow bins",null,{tags:["Private"],disable:n(t=>!t.isRainbow(),"disable")});const oe=te.prototype.getBBox;ie.prototype.getBBox=function(t,s){const i=oe.apply(this,arguments),o=this.element().select(".tableDiv > table");if(!o.empty()){const t=o.node().getBoundingClientRect(),n=t.width+8+(this.hasVScroll(this._placeholderElement)?e.Platform.getScrollbarWidth():0),r=t.height+8+(this.hasHScroll(this._placeholderElement)?e.Platform.getScrollbarWidth():0);return{x:i.x,y:i.y,width:(s?Math.round(n):n)*this._scale,height:(s?Math.round(r):r)*this._scale}}return i};const ne=class _MorphText extends e.SVGWidget{constructor(){super(),r(this,"_fontWidth"),r(this,"_textElement")}enter(t,e){if(!this.fontSize()){const e=window.getComputedStyle(t,null);this.fontSize(parseInt(e.fontSize))}this._fontWidth=32*this.fontSize()/48,this._textElement=e.append("g")}dateTime(){const t=new Date,e=1===t.getSeconds().toString().length?"0"+t.getSeconds():t.getSeconds(),s=1===t.getMinutes().toString().length?"0"+t.getMinutes():t.getMinutes(),i=1===t.getHours().toString().length?"0"+t.getHours():t.getHours(),o=t.getHours()>=12?"pm":"am";return["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][t.getDay()]+" "+["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()]+" "+t.getDate()+" "+t.getFullYear()+" "+i+":"+s+":"+e+o}update(t,e){const s=this,i=this._textElement.selectAll("text").data(this.data(),function(t){return t.id});i.attr("class","update"),this.transition.apply(i).attr("x",function(t,e){return(-s.data().length/2+e)*s._fontWidth+s._fontWidth/2});const o=i.enter().append("text").attr("class","enter").attr("font-size",this.fontSize()).attr("dy",".35em").attr("y",(this.reverse()?1:-1)*this._fontWidth*2).attr("x",function(t,e){return(-s.data().length/2+e)*s._fontWidth+s._fontWidth/2}).style("fill-opacity",1e-6).style("text-anchor",this.anchor()).text(function(t){return t.text});this.transition.apply(o).attr("y",0).style("fill-opacity",1),i.exit().attr("class","exit"),this.transition.apply(i.exit()).attr("y",(this.reverse()?-1:1)*this._fontWidth*2).style("fill-opacity",1e-6).remove()}};n(ne,"MorphText");let re=ne;re.prototype._class+=" other_MorphText",re.prototype.publish("anchor","middle","set","Sets anchor point",["middle"],{tags:["Basic"]}),re.prototype.publish("fontSize",14,"number","Sets fontsize",null,{tags:["Basic"]}),re.prototype.publish("reverse",!1,"boolean","Reverse Animation",null,{tags:["Basic"]}),re.prototype.publish("text","","string","Sets text/data of widget",null,{tags:["Basic"]});const ae=re.prototype.text;re.prototype.text=function(t){const e=ae.apply(this,arguments);if(arguments.length){const e={},s=t.split("");this.data(s.map(function(t){const s="_"+t;return void 0===e[s]&&(e[s]=0),e[s]++,{text:t,id:t.charCodeAt(0)+1024*e[s]}}))}return e};const le=class _NestedTable extends te{constructor(){super(),this.minWidgetHeight(240),this.minWidgetWidth(360)}};n(le,"NestedTable");let ce=le;ce.prototype._class+=" other_NestedTable";const ue=ce.prototype.columns;ce.prototype.columns=function(t){return arguments.length?(this._columns=t,ue.call(this,t.map(function(t){return"object"==typeof t?t.label:t}))):ue.apply(this,arguments)};const he=ce.prototype.data;ce.prototype.data=function(t){if(arguments.length){const e=this;return he.call(this,t.map(function(t){return t.map(function(t,s){if(t instanceof Array){let i=[];if("object"==typeof e._columns[s]&&e._columns[s].columns)i=e._columns[s].columns;else for(let o=0;o<t.length;++o)i.push(e._columns[s]+"."+o);return(new te).columns(i).data(t)}return t})}))}return he.apply(this,arguments)};const pe=class _Column extends e.PropertyExt{constructor(){super(),r(this,"_owner")}owner(t){return arguments.length?(this._owner=t,this):this._owner}valid(){return!!this.headerLabel()}};n(pe,"Column");let de=pe;de.prototype._class+=" other_Opportunity.Column",de.prototype.publish("headerLabel",null,"string","Header value of a table",function(){return this._owner?this._owner.columns():[]},{tags:["Basic"],optional:!0});const ge=class _MouseHoverColumn extends e.PropertyExt{constructor(){super(),r(this,"_owner")}owner(t){return arguments.length?(this._owner=t,this):this._owner}valid(){return!!this.hoverValue()&&!!this.hoverList()}};n(ge,"MouseHoverColumn");let fe=ge;fe.prototype._class+=" other_Opportunity.MouseHoverColumn",fe.prototype.publish("hoverValue",null,"string","Hover value of a table",function(){return this._owner?this._owner.columns():[]},{tags:["Basic"],optional:!0}),fe.prototype.publish("hoverList",null,"set","Hover value of a table",function(){return this._owner?this._owner.getIds():[]},{tags:["Basic"],optional:!0});const me=class _ColumnDropdown extends e.PropertyExt{constructor(){super(),r(this,"_owner")}owner(t){return arguments.length?(this._owner=t,this):this._owner}valid(){return!!this.columnIndex()&&!!this.ColumnDropdownList()}};n(me,"ColumnDropdown");let ye=me;ye.prototype._class+=" other_Opportunity.ColumnDropdown",ye.prototype.publish("columnIndex",null,"number","Column index for display context data based on column dropdown list selction",{},{tags:["Basic","Shared"]}),ye.prototype.publish("ColumnDropdownList",null,"set","column value of a table",function(){return this._owner?this._owner.getIds():[]},{tags:["Basic"],optional:!0});const _e=class _Opportunity extends e.SVGWidget{constructor(){super(),r(this,"groupCount"),r(this,"svg"),r(this,"tooltipdiv"),r(this,"Column"),r(this,"MouseHoverColumn"),r(this,"ColumnDropdown"),this._drawStartPos="origin",this.groupCount=7}enter(t,s){super.enter(t,s);const i=25*(this.data().length+1)+30;this.svg=s.append("g").attr("width",100*this.groupCount+1).attr("height",i),this.svg.append("defs").append("marker").classed("arrowhead",!0).attr("id","end-arrow").attr("viewBox","0 -5 10 10").attr("refX",6).attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("svg:path").attr("d","M0,-5L10,0L0,5").attr("fill","rgb(100,100,100)"),this.tooltipdiv=e.select("body").append("div").attr("class","other_Opportunity-tooltip tooltip").style("opacity",0)}update(t,s){super.update(t,s);const i=this,o=this.data(),n=this.opportunityId();o.sort(function(t,e){return t.cur_group>e.cur_group?1:t.cur_group<e.cur_group?-1:0});const r=[];for(let e=1;e<=i.groupCount;e++)r.push(e);const a=30,l=14,c=25*(o.length+1)+a,u=this.width(),h=30,p=u/i.groupCount-h,d=this.svg.selectAll(".group").data(r);d.enter().append("rect").attr("class","group"),d.attr("x",function(t,e){return e*u/i.groupCount+1}).attr("y",a).attr("width",u/this.groupCount).attr("height",c-a),d.exit().remove();const g=this.svg.selectAll(".group_headings").data(r);if(g.enter().append("text").attr("class","group_headings").attr("y",20),g.attr("x",function(t,e){return e*u/i.groupCount+u/i.groupCount/i.groupCount}).text(function(t,e){return i.headerLabels().length>0&&i.headerLabels()[e]&&i.headerLabels()[e].headerLabel()?i.headerLabels()[e].headerLabel():""}),g.exit().remove(),"prev_group"===this.previousGroup()&&"cur_group"===this.currentGroup()){const t=this.svg.selectAll(".node_date_change").data(o);t.enter().append("g").attr("class","node_date_change update").on("mouseover",function(t){i.tooltipdiv.transition().duration(200).style("opacity",.9);let s="<span style='font-weight:bolder'>Close Date Change </span><br/>";i.mouseHover().forEach(function(e,i){void 0!==e.hoverValue()&&(s=s+"<span style='font-weight:bold'>"+e.hoverValue()+": </span>"+t[e.hoverList()]+"<br/>")});let o=t.prevdate+"";o=o.replace(/(\d\d\d\d)(\d\d)(\d\d)/g,"$3-$2-$1");let n=t.curdate+"";n=n.replace(/(\d\d\d\d)(\d\d)(\d\d)/g,"$3-$2-$1"),s=s+"<span style='font-weight:bold'>From: </span>"+o+"<br/><span style='font-weight:bold'>To: </span>"+n+"<br/>";const r=e.d3Event();i.tooltipdiv.html(s).style("left",r.pageX+"px").style("top",r.pageY-50+"px")}).on("mouseout",function(t){i.tooltipdiv.transition().duration(500).style("opacity",0)}).each(function(t){e.select(this).append("rect").attr("class","node_date_change_rect").attr("width",5).attr("height",l).attr("rx",6).attr("ry",6)}),t.attr("transform",function(t,e){return"translate("+(9*u/i.groupCount+h-80)+","+(e+24*e+12+a)+")"}),t.exit().remove();const s=this.svg.selectAll(".node_prev_group").data(o);s.enter().append("g").attr("class","node_prev_group").on("mouseover",function(t,s){i.tooltipdiv.transition().duration(200).style("opacity",.9);let o="";i.mouseHover().forEach(function(e,s){void 0!==e.hoverValue()&&(o=o+"<span style='font-weight:bold'>"+e.hoverValue()+": </span>"+t[e.hoverList()]+"<br/>")});const n=e.d3Event();i.tooltipdiv.html(o).style("left",n.pageX+"px").style("top",n.pageY-100+"px")}).on("mouseout",function(t){i.tooltipdiv.transition().duration(500).style("opacity",0)}).each(function(t){const s=e.select(this);s.append("rect").attr("class","node_prev_rect").attr("rx",6).attr("ry",6),s.append("text").attr("class","node_prev_text")}),s.classed("update",!0).classed("changed",function(t){return 0!==t.delta}).attr("transform",function(t,e){return"translate("+((t.prev_group-1)*u/i.groupCount+15)+","+(e+24*e+10+a)+")"}).each(function(t){const s=e.select(this).selectAll(".arrow").data(0!==t.delta?[t]:[]);s.enter().append("line").attr("class","arrow update"),s.attr("x1",function(t){return t.delta>0?p:0}).attr("y1",7).attr("x2",function(t){return t.delta>0?p+h-4+(Math.abs(t.delta)-1)*(u/i.groupCount):-30-(Math.abs(t.delta)-1)*(u/i.groupCount)+4}).attr("y2",7).style("stroke-dasharray","3, 3").style("stroke","rgb(100,100,100)").style("marker-end","url(#end-arrow)").style("opacity","1"),s.exit().remove()});s.select(".node_prev_rect").attr("width",p).attr("height",l);s.select(".node_prev_text").attr("dy",10).attr("dx",p/4).text(function(t){return"number"==typeof t[n]?t[n]:t[n].substring(0,14)}),s.exit().remove();const r=this.svg.selectAll(".node_cur_group").data(o);r.enter().append("g").attr("class","node_cur_group").attr("transform",function(t,e){return"translate("+((t.prev_group-1)*u/i.groupCount+15)+","+(e+24*e+10+a)+")"}).on("mouseover",function(t,s){i.tooltipdiv.transition().duration(200).style("opacity",.9);let o="";i.mouseHover().forEach(function(e,s){void 0!==e.hoverValue()&&(o=o+"<span style='font-weight:bold'>"+e.hoverValue()+": </span>"+t[e.hoverList()]+"<br/>")});const n=e.d3Event();i.tooltipdiv.html(o).style("left",n.pageX+"px").style("top",n.pageY-100+"px")}).on("mouseout",function(t){i.tooltipdiv.transition().duration(500).style("opacity",0)}).each(function(t){const s=e.select(this);s.append("rect").attr("class","node_cur_rect").attr("fill",function(t){let e;return e=t.delta<0||7===t.cur_group?"#F78181":"#A9F5A9",e}).attr("rx",6).attr("ry",6),s.append("a").append("text").attr("class","node_cur_text")}),r.classed("update",!0).classed("changed",function(t){return 0!==t.delta}).transition().duration(800).ease("linear").attr("transform",function(t,e){return"translate("+((t.cur_group-1)*u/i.groupCount+15)+","+(e+24*e+10+a)+")"}).each("end",function(){e.selectAll(".arrow").style("opacity","1")});r.select(".node_cur_group a").classed("update",!0).attr("xlink:href",function(t){return i.url()+t.id}).attr("xlink:show","new");r.select(".node_cur_rect").attr("width",p).attr("height",l);r.select(".node_cur_text").classed("update",!0).attr("dy",10).attr("dx",p/4).style("fill","blue").text(function(t){return"number"==typeof t[n]?t[n]:t[n].substring(0,14)}),r.exit().remove()}for(let f=0;f<i.columnData().length;f++)if(i.columnData()[f]&&i.columnData()[f].ColumnDropdownList()){const t=this.svg.selectAll(".columnDataText_"+f).data(o);t.enter().append("g").attr("class","columnDataText_"+f+" update").each(function(t){e.select(this).append("text")}),t.attr("transform",function(t,e){return"translate("+(i.columnData()[f].columnIndex()*u/i.groupCount+15)+","+(e+24*e+12+a)+")"}).attr("width",5).attr("height",l).attr("rx",6).attr("ry",6);t.select("text").attr("y",-6).attr("dy",28).attr("dx",0).attr("height",20).attr("width",29).text(function(t,e){return t[i.columnData()[f].ColumnDropdownList()]}),t.exit().remove()}}exit(t,e){super.exit(t,e)}getIds(){const t=this.columns();return t.unshift("default"),t}};n(_e,"Opportunity");let be=_e;function we(t){return t.publishedProperties(!1,!0)}function xe(t,e){t&&t.forEach(function(t){t.widgetWalker(e)})}function ve(t,e,s){t.widgetWalker(function(t){t.propertyWalker(e,s)})}function Ce(t,e){return JSON.stringify(Se(t,e))}function Se(t,e){e=e||["surface","Color","Font","palette"];const s={};function i(t,e){let s=!1;for(const i in e)if(-1!==t.indexOf(e[i])){s=!0;break}return s}return ve(t,null,function(t,o){if((t[o.id+"_modified"]()||t.publishedProperty(o.id).origDefaultValue!==t.publishedProperty(o.id).defaultValue)&&i(o.id,e)){const e=t._class.trim().split(" ");for(const i in e)if(e.HasOwnProperty(i)){if(void 0===s[e[i]]&&(s[e[i]]={}),void 0===s[e[i]][o.id]){s[e[i]][o.id]=t[o.id]();break}if(s[e[i]][o.id]===t[o.id]())break}}}),n(i,"_isFilterMatch"),s}function Re(t,e){ve(t,null,function(t,e){t.publishedProperty(e.id).defaultValue=t.publishedProperty(e.id).origDefaultValue}),"function"==typeof e&&e.call(this)}function Ie(t,e,s){const i=this;ve(t,null,function(t,s){switch(s.type){case"widget":return i.applyTheme(t[s.id](),e),!0;case"widgetArray":return t[s.id]().forEach(function(t){i.applyTheme(t,e)},this),!0;default:t.applyTheme(e)}}),"function"==typeof s&&s.call(this)}function We(t,e,s,i){const o={__class:t.classID()};if(0!==t._id.indexOf(t._idSeed)&&(o.__id=t._id),t.version&&(o.__version=t.version()),o.__properties={},t.propertyWalker((e,n)=>{if(e[n.id+"_modified"]())switch(n.type){case"widget":return o.__properties[n.id]=We(e[n.id](),null,s,i&&!t.serializeState),!0;case"widgetArray":case"propertyArray":o.__properties[n.id]=[];return e[n.id]().forEach(e=>{o.__properties[n.id].push(We(e,null,s,i&&!t.serializeState))}),!0;default:o.__properties[n.id]=e[n.id]()}},e),"marshaller_Graph"===t.classID()){const e=t.data().vertices;e&&(this.__vertices=e.map(e=>We(e,null,s,i&&!t.serializeState)))}return s&&t.data&&(o.__data||(o.__data={}),o.__data.data=t.data()),i&&(t.serializeState?o.__state=t.serializeState():t.data&&(o.__state={data:t.data()})),o}function ke(t,e,s,i){return JSON.stringify(We(t,e,s,i))}be.prototype._class+=" other_Opportunity",be.prototype.Column=de,be.prototype.MouseHoverColumn=fe,be.prototype.ColumnDropdown=ye,be.prototype.publish("previousGroup","","set","label in Opportunity",function(){return this.getIds()},{tags:["Basic","Shared"]}),be.prototype.publish("currentGroup","","set","label in Opportunity",function(){return this.getIds()},{tags:["Basic","Shared"]}),be.prototype.publish("opportunityId","id","set","Id for label in Opportunity",function(){return this.getIds()},{tags:["Basic","Shared"]}),be.prototype.publish("url",null,"string","URL in Opportunity",{},{tags:["Basic","Shared"]}),be.prototype.publish("width",1100,"number","label in Opportunity",{},{tags:["Basic","Shared"]}),be.prototype.publish("addColumn",null,"string","number of columns in a table",{},{tags:["Basic","Shared"],editor_input:n((t,e,s,i)=>{s.append("button").attr("id",t.id()+"_addColumn"+i.id).classed("property-input custom-editor-input addColumn update",!0).text("AddColumn").on("click",function(){e.groupCount=e.groupCount+1;t.setProperty(e,i.id,"Added a new column")})},"editor_input")}),be.prototype.publish("removeColumn",null,"string","number of columns in a table",function(){return this.columns()},{tags:["Basic","Shared"],editor_input:n((t,e,s,i)=>{s.append("button").attr("id",t.id()+"_removeColumn"+i.id).classed("property-input custom-editor-input removeColumn update",!0).text("RemoveColumn").on("click",function(){e.groupCount=e.groupCount-1;t.setProperty(e,i.id,"Removed a column")})},"editor_input")}),be.prototype.publish("headerLabels",[],"propertyArray","Source Columns",null,{autoExpand:de}),be.prototype.publish("mouseHover",[],"propertyArray","mouse hover options",null,{autoExpand:fe}),be.prototype.publish("columnData",[],"propertyArray","column data",null,{autoExpand:ye}),n(we,"discover"),n(xe,"widgetArrayWalker"),n(ve,"widgetPropertyWalker"),n(Ce,"serializeTheme"),n(Se,"serializeThemeToObject"),n(Re,"removeTheme"),n(Ie,"applyTheme"),n(We,"serializeToObject"),n(ke,"serialize");const Te=Object.freeze(Object.defineProperty({__proto__:null,applyTheme:Ie,discover:we,removeTheme:Re,serialize:ke,serializeTheme:Ce,serializeThemeToObject:Se,serializeToObject:We,widgetArrayWalker:xe,widgetPropertyWalker:ve},Symbol.toStringTag,{value:"Module"}));function Pe(t){switch(t){case"widget":case"widgetArray":case"propertyArray":return!0}return!1}n(Pe,"hasProperties");const Ee=class _PropertyEditor extends e.HTMLWidget{constructor(){super(),r(this,"_widgetOrig"),r(this,"_parentPropertyEditor"),r(this,"_show_settings"),r(this,"_selectedItems"),r(this,"__meta_sorting"),r(this,"_watch"),r(this,"_childPE",e.local()),r(this,"_show_header",!0),r(this,"watchDepth",0),this._parentPropertyEditor=null,this._tag="div",this._show_settings=!1}parentPropertyEditor(t){return arguments.length?(this._parentPropertyEditor=t,this):this._parentPropertyEditor}depth(){let t=0,e=this.parentPropertyEditor();for(;e;)++t,e=e.parentPropertyEditor();return t}show_header(t){return arguments.length?(this._show_header=t,this):this._show_header}show_settings(t){return arguments.length?(this._show_settings=t,this):this._show_settings}rootWidgets(){return this._selectedItems&&this._selectedItems.length?this._selectedItems:this.show_settings()?[this]:this.widget()?[this.widget()]:[]}update(t,s){super.update(t,s);const i=this,o=this.rootWidgets().filter(function(t){return!(t._owningWidget&&t._owningWidget.excludeObjs instanceof Array&&-1!==t._owningWidget.excludeObjs.indexOf(t.classID()))}),n=s.selectAll(`table.property-table.table-${this.depth()}`).data(o,function(t){return"function"!=typeof t.id?`meta-${t.id}`:t.id()});n.enter().append("table").attr("class",`property-table table-${this.depth()}`).each(function(){const t=e.select(this);i._show_header&&null===i.parentPropertyEditor()&&t.append("thead").append("tr").append("th").attr("colspan","2").each(function(){i.enterHeader(e.select(this))}),t.append("tbody")}).merge(n).each(function(t){const s=e.select(this);i._show_header&&null===i.parentPropertyEditor()&&i.updateHeader(s.select("thead > tr > th")),i.renderInputs(s.select("tbody"),t)}),n.exit().each(function(){i.renderInputs(s.select("tbody"),null)}).remove()}exit(t,e){super.exit(t,e),this.watchWidget(null)}watchWidget(t){if(this._watch&&(window.__hpcc_debug&&(--this.watchDepth,console.info("watchDepth: "+this.watchDepth)),this._watch.remove(),delete this._watch),t){const e=this;this._watch=t.monitor(function(t,s,i){if(i!==s){(e.parentPropertyEditor()||e).lazyRender()}}),window.__hpcc_debug&&(++this.watchDepth,console.info("watchDepth: "+this.watchDepth))}}enterHeader(t){const e=this;t.append("span"),t.append("i").attr("class","expandIcon fa").on("click",function(){switch(e.peInputIcon()){case"fa-caret-up":case"fa-caret-right":e.element().selectAll(`.table-${e.depth()} > tbody > tr > .headerRow > .peInput > .property-table-collapsed`).classed("property-table-collapsed",!1),e.element().selectAll(`.table-${e.depth()} > tbody > tr > .headerRow > .peInput > i`).classed("fa-minus-square-o",!0).classed("fa-plus-square-o",!1);break;case"fa-caret-down":e.element().selectAll(`.table-${e.depth()} > tbody > tr > .headerRow > .peInput > div`).classed("property-table-collapsed",!0),e.element().selectAll(`.table-${e.depth()} > tbody > tr > .headerRow > .peInput > i`).classed("fa-minus-square-o",!1).classed("fa-plus-square-o",!0)}e.refreshExpandIcon()});const s=t.append("i").attr("class","sortIcon fa").on("click",function(){e.refreshSortIcon(s,!0)});t.append("i").attr("class","hideParamsIcon fa").on("click",function(){e.hideNonWidgets(!e.hideNonWidgets()).render()})}updateHeader(t){const e=this.widget();let s="";e&&(e.label&&(s+=e.label()),e.classID&&(s&&(s+=" - "),s+=e.classID())),t.select("span").text(s),this.refreshExpandIcon(),this.refreshSortIcon(t.select(".sortIcon")),this.refreshHideParamsIcon(t.select(".hideParamsIcon"))}peInputCount(){return this.element().selectAll(`.table-${this.depth()} > tbody > tr > .headerRow > .peInput > div`).size()}peInputCollapsedCount(){return this.element().selectAll(`.table-${this.depth()} > tbody > tr > .headerRow > .peInput > div.property-table-collapsed`).size()}peInputIcon(){const t=this.peInputCollapsedCount();return 0===t?"fa-caret-down":t===this.peInputCount()?"fa-caret-up":"fa-caret-right"}refreshExpandIcon(){const t=this.peInputIcon();this.element().select(`.table-${this.depth()} > thead > tr > th > .expandIcon`).classed("fa-caret-up",!1).classed("fa-caret-right",!1).classed("fa-caret-down",!1).classed(t,!0)}refreshSortIcon(t,e=!1){const s=this.sorting(),i=this.sorting_options(),o=this.__meta_sorting.ext.icons;e?(t.classed(o[i.indexOf(s)],!1),this.sorting(i[(i.indexOf(s)+1)%i.length]).render()):t.classed(o[i.indexOf(s)%i.length],!0).attr("title",s)}refreshHideParamsIcon(t){t.classed("fa-eye",!this.hideNonWidgets()).classed("fa-eye-slash",this.hideNonWidgets())}gatherDataTree(t){if(!t)return null;const e={label:t.id()+" ("+t.classID()+")",children:[]};return we(t).forEach(function(s){const i={label:s.id,children:[]};switch(s.type){case"widget":i.children.push(this.gatherDataTree(t[s.id]()));break;case"widgetArray":case"propertyArray":const e=t[s.id]();e&&e.forEach(function(t){i.children.push(this.gatherDataTree(t))},this)}e.children.push(i)},this),e}getDataTree(){return this.gatherDataTree(this.widget())}_rowSorting(t){if("type"===this.sorting()){const e=["boolean","number","string","html-color","array","object","widget","widgetArray","propertyArray"];t.sort(function(t,s){return t.type===s.type?t.id<s.id?-1:1:e.indexOf(t.type)<e.indexOf(s.type)?-1:1})}else"A-Z"===this.sorting()?t.sort(function(t,e){return t.id<e.id?-1:1}):"Z-A"===this.sorting()&&t.sort(function(t,e){return t.id>e.id?-1:1})}filterInputs(t){const e=we(t);if((this.filterTags()||this.excludeTags().length>0||this.excludeParams.length>0)&&t instanceof _PropertyEditor==!1){const s=this;return e.filter(function(e,i){if(t[e.id+"_hidden"]&&t[e.id+"_hidden"]())return!1;for(const o of s.excludeParams()){const s=o.split(".");let i,n;if(s.length>2?(i=s[0],n=s[2]):(i=s[0],n=s[1]),-1!==t.class().indexOf(i))return e.id!==n}return!(s.excludeTags().length>0&&e.ext&&e.ext.tags&&e.ext.tags.some(function(t){return s.excludeTags().indexOf(t)>-1}))&&!(!(s.filterTags()&&e.ext&&e.ext.tags&&-1!==e.ext.tags.indexOf(s.filterTags()))&&s.filterTags())})}return e}renderInputs(t,s){const i=this;let o=[];const n=!this.show_settings()&&this.showFields();s&&(o=this.filterInputs(s).filter(function(t){return"fields"!==t.id||n}),!this.show_settings()&&this.showData()&&s.data&&o.push({id:"data",type:"array"}),this.hideNonWidgets()&&(o=o.filter(function(t){return Pe(t.type)})),this._rowSorting(o));const r=t.selectAll("tr.prop"+this.id()).data(o,function(t){return t.id});r.enter().append("tr").attr("class","property-wrapper prop"+this.id()).each(function(t){const o=e.select(this);if(Pe(t.type))o.classed("property-widget-wrapper",!0),o.append("td").attr("colspan","2");else{o.classed("property-input-wrapper",!0),o.append("td").classed("property-label",!0).text(t.id);const e=o.append("td").classed("property-input-cell",!0);i.enterInputs(s,e,t)}}).merge(r).each(function(t){const o=e.select(this);o.classed("disabled",s[t.id+"_disabled"]&&s[t.id+"_disabled"]()),o.classed("invalid",s[t.id+"_valid"]&&!s[t.id+"_valid"]()),o.attr("title",t.description),Pe(t.type)?i.updateWidgetRow(s,o.select("td"),t):i.updateInputs(s,t)}),r.exit().each(function(t){const o=e.select(this);Pe(t.type)&&i.updateWidgetRow(s,o.select("td"),null)}).remove(),r.order()}updateWidgetRow(t,s,i){let o=[];t&&i&&(o=t[i.id]()||[]);let n=o instanceof Array?o:[o];if(i&&i.ext&&i.ext.autoExpand){let e=!0;const s=n.filter(function(s,i){return e=s.valid(),s._owner=t,e||i===n.length-1},this),o=t[i.id+"_disabled"]&&t[i.id+"_disabled"]();let r=!!(n.length-s.length);if(e&&!o){r=!0;const e=(new i.ext.autoExpand).owner(t);s.push(e)}r&&(t[i.id](s),n=s)}const r=this;s.classed("headerRow",!0);const a=s.selectAll(`div.peInput-${this.depth()}`).data(n,function(t){return t.id()});a.enter().append("div").attr("class",`peInput peInput-${this.depth()}`).each(function(t){const s=e.select(this);s.append("span"),s.append("i").attr("class","fa").on("click",function(t){const i=s.select("div");i.classed("property-table-collapsed",!i.classed("property-table-collapsed")),e.select(this).classed("fa-minus-square-o",!i.classed("property-table-collapsed")).classed("fa-plus-square-o",i.classed("property-table-collapsed")),r.refreshExpandIcon()});const o=s.append("div");r._childPE.set(this,(new _PropertyEditor).label(i.id).target(o.node()))}).merge(a).each(function(t){const s=e.select(this).select("div");e.select(this).select("span").text(`${i.id}`),e.select(this).select("i").classed("fa-minus-square-o",!s.classed("property-table-collapsed")).classed("fa-plus-square-o",s.classed("property-table-collapsed")),r._childPE.get(this).parentPropertyEditor(r).showFields(r.showFields()).showData(r.showData()).sorting(r.sorting()).filterTags(r.filterTags()).excludeTags(r.excludeTags()).excludeParams(r.excludeParams()).hideNonWidgets(r.hideNonWidgets()&&t._class.indexOf("layout_")>=0).widget(t).render()}),a.exit().each(function(t){r._childPE.get(this).widget(null).render().target(null),r._childPE.remove(this)}).remove()}setProperty(t,s,i){let o,n,r,a=this;for(;a&&t;){if(a===this&&(r=t[s](),t[s](i)),a){n=a;const t=a.widget();t instanceof e.Widget&&(o=t)}a=a.parentPropertyEditor()}o&&o.render(),n&&n.broadcast(s,i,r,t)}enterInputs(t,s,i){s.classed(i.type+"-cell",!0);const o=this;switch("function"==typeof i.ext.editor_input&&i.ext.editor_input(this,t,s,i),i.type){case"boolean":s.append("input").attr("id",this.id()+"_"+i.id).classed("property-input",!0).attr("type","checkbox").on("change",function(){o.setProperty(t,i.id,this.checked)});break;case"set":s.append("select").attr("id",this.id()+"_"+i.id).classed("property-input",!0).on("change",function(){o.setProperty(t,i.id,this.value)});break;case"array":case"object":s.append("textarea").attr("id",this.id()+"_"+i.id).classed("property-input",!0).attr("autocomplete","off").attr("autocorrect","off").attr("autocapitalize","off").attr("spellcheck","false").on("change",function(){let e;try{e=JSON.parse(this.value)}catch(s){e=this.value}o.setProperty(t,i.id,e)});break;default:i.ext&&i.ext.range?(s.append("span").classed("property-input-span",!0).attr("id",this.id()+"_"+i.id+"_currentVal").text(i.defaultValue),s.append("input").attr("type","range").attr("step",i.ext.range.step).attr("min",i.ext.range.min).attr("max",i.ext.range.max).attr("id",this.id()+"_"+i.id).classed("property-input",!0).on("input",function(){o.setProperty(t,i.id,this.value),e.select("#"+this.id+"_currentVal").text("Current Value: "+this.value)}).on("change",function(){o.setProperty(t,i.id,this.value),e.select("#"+this.id+"_currentVal").text("Current Value: "+this.value)})):(s.append(i.ext&&i.ext.multiline?"textarea":"input").attr("id",this.id()+"_"+i.id).classed("property-input",!0).attr("autocomplete","off").attr("autocorrect","off").attr("autocapitalize","off").attr("spellcheck","false").on("change",function(){o.setProperty(t,i.id,this.value)}),"html-color"!==i.type||e.Platform.isIE||s.append("input").attr("id",this.id()+"_"+i.id+"_2").classed("property-input",!0).attr("type","color").on("change",function(){o.setProperty(t,i.id,this.value)}))}}updateInputs(t,s){const i=e.selectAll("#"+this.id()+"_"+s.id+", #"+this.id()+"_"+s.id+"_2"),o=t?t[s.id]():"";switch(i.property("disabled",t[s.id+"_disabled"]&&t[s.id+"_disabled"]()),i.property("invalid",t[s.id+"_valid"]&&!t[s.id+"_valid"]()),s.type){case"boolean":i.property("checked",o);break;case"set":const r=i.selectAll("option").data(t[s.id+"_options"]());r.enter().append("option").merge(r).attr("value",t=>t&&void 0!==t.value?t.value:t).text(t=>t&&void 0!==t.text?t.text:t),r.exit().remove(),i.property("value",o);break;case"array":case"object":i.property("value",JSON.stringify(o,n(function(t,s){return s instanceof e.Widget?ke(s):s},"replacer")," "));break;default:s.ext&&s.ext.range&&e.select("#"+this.id()+"_"+s.id+"_currentVal").text("Current Value: "+o),i.property("value",o&&o.length&&o.length>1e5?"...too big to display...":o)}}};n(Ee,"PropertyEditor");let Be=Ee;Be.prototype._class+=" other_PropertyEditor",Be.prototype.publish("showFields",!1,"boolean","If true, widget.fields() will display as if it was a publish parameter.",null,{tags:["Basic"]}),Be.prototype.publish("showData",!1,"boolean","If true, widget.data() will display as if it was a publish parameter.",null,{tags:["Basic"]}),Be.prototype.publish("sorting","none","set","Specify the sorting type",["none","A-Z","Z-A","type"],{tags:["Basic"],icons:["fa-sort","fa-sort-alpha-asc","fa-sort-alpha-desc","fa-sort-amount-asc"]}),Be.prototype.publish("hideNonWidgets",!1,"boolean","Hides non-widget params (at this tier only)",null,{tags:["Basic"]}),Be.prototype.publish("label","","string","Label to display in header of property editor table",null,{tags:["Basic"]}),Be.prototype.publish("filterTags","","set","Only show Publish Params of this type",["Basic","Intermediate","Advance",""],{}),Be.prototype.publish("excludeTags",["Private"],"array","Exclude this array of tags",null,{}),Be.prototype.publish("excludeParams",[],"array","Exclude this array of params (widget.param)",null,{}),Be.prototype.publish("widget",null,"widget","Widget",null,{tags:["Basic"],render:!1});const De=Be.prototype.widget;Be.prototype.widget=function(t){if(arguments.length&&De.call(this)===t)return this;const e=De.apply(this,arguments);if(arguments.length&&(this.watchWidget(t),t instanceof s.Grid)){const e=this;t.postSelectionChange=function(){e._selectedItems=t._selectionBag.get().map(function(t){return t.widget}),e.lazyRender()}}return e};const Ne=class _RadioCheckbox extends e.HTMLWidget{constructor(){super(),r(this,"_span"),r(this,"_label"),r(this,"_Checkbox")}rcData(){if(0===this.data().length)return[];const t=this._db.rollupView([this.textColumn(),this.valueColumn()]);let e=[];if(e=e.concat(t.entries().map(function(t){return{text:t.key,value:t.values.length?t.values[0].key:"",origRow:t.values.length&&t.values[0].values.length?t.values[0].values[0]:[]}},this)),this.sort_exists()){const t="descending"===this.sort();e.sort(function(e,s){return e.text<s.text?t?1:-1:e.text>s.text?t?-1:1:0})}return e}enter(t,e){super.enter(t,e),this._span=e.append("span"),this._label=this._span.append("label").attr("for",this.id()+"_radioCheckbox"),this._Checkbox=this._span.append("div").attr("id",this.id()+"_radioCheckbox")}update(t,s){super.update(t,s);const i=this;this._label.text(this.label());const o=this._Checkbox.selectAll(".dataRow").data(this.rcData());o.enter().append("div").attr("class","dataRow").each(function(t,s){const o=e.select(this),n=i.id()+"_checkbox_"+s;o.append("input").attr("id",n).attr("name",i.id()+"_radioCheckbox").on("change",function(t){i.handleClick()}),o.append("label").attr("for",n)}),o.each(function(t,s){const o=e.select(this);o.select("input").attr("type",i.multiple()?"checkbox":"radio").attr("value",t.value),o.select("label").text(t.text)}),o.exit().remove(),o.order()}exit(t,e){this._span.remove(),super.exit(t,e)}handleClick(){const t=[];this._Checkbox.selectAll(".dataRow > input").each(function(s,i){e.select(this).property("checked")&&s&&s.origRow&&t.push(s.origRow)}),t.length?this.click(this.rowToObj(t[0]),this.valueColumn(),!0):this.click([],this.valueColumn(),!1)}click(t,e,s){}};n(Ne,"RadioCheckbox");let Ae=Ne;Ae.prototype._class+=" other_RadioCheckbox",Ae.prototype.publish("label",null,"string","Label for RadioCheckbox"),Ae.prototype.publish("valueColumn",null,"set","RadioCheckbox display value",function(){return this.columns()},{optional:!0}),Ae.prototype.publish("textColumn",null,"set","RadioCheckbox value(s)",function(){return this.columns()},{optional:!0}),Ae.prototype.publish("sort",null,"set","Sort contents",["","ascending","descending"],{optional:!0}),Ae.prototype.publish("multiple",!1,"boolean","Multiple selection");const Oe=class _Select extends e.HTMLWidget{constructor(){super(),r(this,"_span"),r(this,"_prompt"),r(this,"_select")}selectData(){if(0===this.data().length)return[];const t=this._db.rollupView([this.textColumn(),this.valueColumn()]);let e=[];if(e=e.concat(t.entries().map(function(t){return{text:t.key,value:t.values.length?t.values[0].key:"",origRow:t.values.length&&t.values[0].value.length?t.values[0].value[0]:[]}},this)),this.sort_exists()){const t="descending"===this.sort();e.sort(function(e,s){return e.text<s.text?t?1:-1:e.text>s.text?t?-1:1:0})}return this.optional()&&e.unshift({value:"",text:""}),e}enter(t,s){super.enter(t,s),this._span=s.append("span"),this._prompt=this._span.append("label").attr("for",this.id()+"_select");const i=this;this._select=this._span.append("select").attr("id",this.id()+"_select").on("change",function(t){const s=[],o=i._select.node().options;for(let i=0;i<o.length;++i){const t=o[i];t.selected&&s.push(e.select(t).datum().origRow)}s.length?i.click(i.rowToObj(s[0]),i.valueColumn(),!0):i.click([],i.valueColumn(),!1)})}update(t,e){super.update(t,e),this._prompt.text(this.label()),this._select.attr("multiple",this.multiple()?this.multiple():null).attr("size",this.multiple()&&this.selectSize()?this.selectSize():null);const s=this._select.selectAll(".dataRow").data(this.selectData()),i=s.enter().append("option").attr("class","dataRow").merge(s).attr("value",function(t){return t.value}).text(function(t){return t.text});s.exit().remove(),i.order()}exit(t,e){this._span.remove(),super.exit(t,e)}click(t,e,s){}};n(Oe,"Select");let He=Oe;function Me(){const t="@hpcc-js/other";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(e){return!1}}He.prototype._class+=" other_Select",He.prototype.publish("label",null,"string","Label for select"),He.prototype.publish("valueColumn",null,"set","Select display value",function(){return this.columns()},{optional:!0}),He.prototype.publish("textColumn",null,"set","Select value(s)",function(){return this.columns()},{optional:!0}),He.prototype.publish("optional",!0,"boolean","Optional Select"),He.prototype.publish("sort",null,"set","Sort contents",["","ascending","descending"],{optional:!0}),He.prototype.publish("multiple",!1,"boolean","Multiple selection"),He.prototype.publish("selectSize",5,"number","Size of multiselect box",null,{disable:n(t=>!t.multiple(),"disable")}),n(Me,"hasLocalStorage");const Le=Me()?localStorage:{getItem(t){}},je=n(function(t){return"function"==typeof window.g_defaultThemes&&window.g_defaultThemes(t),JSON.parse(Le.getItem("themeEditorThemes")||"{}")},"getThemes"),ze=n(function(t){return"function"==typeof window.g_defaultSerials&&window.g_defaultSerials(t),JSON.parse(Le.getItem("themeEditorSerials")||"{}")},"getSerials"),Fe=n(function(t){const e=je();let s=[];for(const i in e)s.push(i);return void 0!==t&&void 0!==s[t]&&(s=s[t]),s},"getThemeNames"),Ue=n(function(t){const e=ze();let s=[];for(const i in e)s.push(i);return void 0!==t&&void 0!==s[t]&&(s=s[t]),s},"getSerialNames"),Ve=n(function(t){let e=!1;return void 0===t._current_grouping?t._current_grouping=t._group_params_by:t._current_grouping!==t._group_params_by&&(e=!0),void 0===t._showing_columns?t._showing_columns=t.showColumns():t._showing_columns!==t.showColumns()&&(e=!0),void 0===t._showing_data?t._showing_data=t.showData():t._showing_data!==t.showData()&&(e=!0),e},"tableNeedsRedraw"),qe=n(function(t){return t.split(/(?=[0-9A-Z])/).map(function(t){return t.length>1?t+" ":t}).join("").replace(/(?:^|\s)\S/g,function(t){return t.toUpperCase()})},"camelizeString"),Ge=n(function(t,e,s,i){let o,n="",r="te-input-"+t.id+"-"+i;void 0!==t.ext&&void 0!==t.ext.inputType&&(o=t.ext.inputType),void 0!==t.inputID&&(r=t.inputID);const a="data-paramid='"+t.id+"' data-wids='"+s.map(function(t){return"object"==typeof t.widget?t.widget._id:t}).join(",")+"'";switch(t.type){case"boolean":n="<input id='"+r+"' "+a+" type='checkbox' class='te-checkbox te-input'"+(e?" checked":"")+">";break;case"number":void 0!==o?"textarea"===o?n="<textarea id='"+r+"' class='te-textarea te-input' "+a+">"+e+"</textarea>":"range"===o&&(n="<input id='"+r+"' class='te-input' type='range' "+a+" value='"+e+"' min='"+t.ext.min+"' max='"+t.ext.max+"' step='"+t.ext.step+"'>"):n="<input id='"+r+"' type='text' class='te-text te-input' "+a+" value='"+e+"'>";break;case"string":void 0!==o?"textarea"===o&&(n="<textarea id='"+r+"' class='te-textarea te-input' "+a+">"+e+"</textarea>"):n="<input id='"+r+"' type='text' class='te-text te-input' value='"+e+"' "+a+">";break;case"html-color":const s=""===e?"":" value='"+e+"'";n="<input id='"+r+"' type='text' class='te-html-color-input te-input' "+a+" "+s+">",n+="<input type='color' class='te-html-color-button te-input' "+a+" "+s+">";break;case"set":n="<select id='"+r+"' class='te-select te-input'"+a+">"+l(t,e)+"</select>";break;case"array":n="<textarea id='"+r+"' class='te-textarea te-input' data-type='array' "+a+">"+e+"</textarea>"}return void 0!==t.ext.saveButton&&(n+="<button id='"+t.ext.saveButtonID+"'>"+t.ext.saveButton+"</button>"),n;function l(t,e){let s="";return t.set.forEach(function(t){s+="<option value='"+t+"'"+(t===e?" selected":"")+">"+t+"</option>"}),s}},"tableInputHtml"),Ye=class _ThemeEditor extends e.HTMLWidget{constructor(){super(),r(this,"_current_grouping"),r(this,"_showing_columns"),r(this,"_showing_data"),r(this,"_contentEditors"),r(this,"_showSettings"),r(this,"_defaultThemes"),r(this,"_widgetObjsById"),r(this,"_sharedProperties"),r(this,"getThemes"),r(this,"getSerials"),r(this,"getDefaultThemes"),r(this,"getDefaultSerials"),this._tag="div",this._current_grouping=void 0,this._showing_columns=void 0,this._showing_data=void 0,this.columns(["Key","Value"]),this._contentEditors=[],this._showSettings=!0,this._defaultThemes=[],this._widgetObjsById={}}showSettings(t){return arguments.length?(this._showSettings=t,this):this._showSettings}onChange(t,e){}enter(t,e){super.enter(t,e),this._placeholderElement.style("overflow","auto")}widgetProperty(t,e,s){return void 0===s?t[e]():t[e](s)}load(t){}save(t){}needsPropTableRedraw(){return null===document.getElementById("te-themeEditorOptions")}update(t,e){super.update(t,e),Ve(this)&&e.selectAll("#"+this._id+" > table").remove(),this._current_grouping=this.paramGrouping(),this._widgetObjsById[this._id]=this,this._sharedProperties=this.findSharedProperties(this.data());if(this.needsPropTableRedraw()&&this.showSettings()){const e=we(this);for(const t in e)if(-1!==e[t].ext.tags.indexOf(this.editorComplexity())){const s=this[e[t].id]();"loadedTheme"!==e[t].id&&"loadedSerial"!==e[t].id||(e[t].inputID="te-load-theme"),e[t].input=Ge(e[t],s,[this._id],this._id)}else delete e[t];t.innerHTML=this.propertiesTableHtml(e);const s=document.createEvent("Events");s.initEvent("TE Properties Ready",!0,!0),document.dispatchEvent(s)}this.buildTableObjects(t,this._sharedProperties),this.initFunctionality(t)}exit(t,e){super.exit(t,e)}click(t){}propertiesTableHtml(t){const e={id:"te-themeEditorOptions",label:"Editor Options",rowArr:[]},s={id:"te-tableModeOptions",label:this.themeMode()?"Save/Load Theme":"Save/Load Serial",rowArr:[]};for(const o in t)this.themeMode()?-1===t[o].ext.tags.indexOf("Theme")&&-1===t[o].ext.tags.indexOf("Serial")?e.rowArr.push({th:qe(t[o].id),td:t[o].input,trClass:"propertyRow"}):-1!==t[o].ext.tags.indexOf("Theme")&&s.rowArr.push({th:qe(t[o].id),td:t[o].input,trClass:"propertyRow"}):-1===t[o].ext.tags.indexOf("Serial")&&-1===t[o].ext.tags.indexOf("Theme")?e.rowArr.push({th:qe(t[o].id),td:t[o].input,trClass:"propertyRow"}):-1!==t[o].ext.tags.indexOf("Serial")&&s.rowArr.push({th:qe(t[o].id),td:t[o].input,trClass:"propertyRow"});let i="";return e.rowArr.length>0&&(i+=this.tableObjHtml(e)),s.rowArr.length>0&&(i+=this.tableObjHtml(s)),i}buildTableObjects(t,e){let s={};s=this.themeMode()?{chartColorSection:{id:"te-colorOptions",label:"Chart Colors",rowObjArr:[]},surfaceSection:{id:"te-containerOptions",label:"Container Styles/Colors",rowObjArr:[]},fontSection:{id:"te-fontOptions",label:"Font Styles/Colors",rowObjArr:[]}}:{nonSurfaceSection:{id:"te-chartOptions",label:"Chart Properties",rowObjArr:[]}};for(const o in e)this.themeMode()?-1===o.toUpperCase().indexOf("FONT")||-1!==e[o].arr[0].widget._class.indexOf("layout_Surface")&&-1!==o.toUpperCase().indexOf("COLOR")?"paletteID"===o?s.chartColorSection.rowObjArr.push(e[o]):-1!==e[o].arr[0].widget._class.indexOf("layout_Surface")&&s.surfaceSection.rowObjArr.push(e[o]):s.fontSection.rowObjArr.push(e[o]):-1===e[o].arr[0].widget._class.indexOf("layout_Surface")&&s.nonSurfaceSection.rowObjArr.push(e[o]);let i="";for(const o in s)i+=this.sharedPropertyTableHtml(s[o]);t.innerHTML+=i}initFunctionality(t){const e=this;function s(t){if(e.showSettings()){document.getElementById("te-save-button").onclick=function(t){const e=t.target,s=e.previousSibling.value;if(s.length>1){const t=document.getElementById("te-load-theme"),i=t.getElementsByTagName("option");let o=!1;for(const e in i){i[e].value===s&&(o=!0)}o||(t.innerHTML+="<option value='"+s+"'>"+s+"</option>"),e.previousSibling.value="",t.value=s}else alert("Save Name cannot be empty.")}}}function i(t){const s=t.getElementsByClassName("te-input");for(const i in s){if(isNaN(parseInt(i)))break;const t=s[i],o=t.getAttribute("id");"te-load-theme"===o?t.onchange=function(t){const s=t.srcElement;e.load(s.value)}:null!==o&&-1!==o.indexOf("te-input-themeMode")?t.onchange=function(t){const s=t.srcElement;e.themeMode(s.checked);const i=document.getElementById("te-load-theme"),o=null!==i?i.value:"Default";e.load(o)}:"INPUT"!==t.tagName&&"SELECT"!==t.tagName&&"TEXTAREA"!==t.tagName||(t.onchange=function(t){const s=t.srcElement;let i=s.getAttribute("id");-1!==s.className.split(" ").indexOf("te-html-color-button")&&(i=s.previousSibling.getAttribute("id"),s.previousSibling.value=s.value);const o=s.getAttribute("type"),n=i.split("-"),r=n.slice(0,n.length-1).join("-")+"-",a=s.getAttribute("data-wids"),l=s.getAttribute("data-paramid");a.split(",").forEach(function(t){const i=r+t,n=document.getElementById(i);if("checkbox"===o)n.checked=s.checked,e._widgetObjsById[t][l](s.checked);else if("array"===s.getAttribute("data-type")){n.value=s.value;try{e._widgetObjsById[t][l](JSON.parse(s.value))}catch(a){}}else n.value=s.value,e._widgetObjsById[t][l](s.value),-1!==n.className.split(" ").indexOf("te-html-color-input")?n.nextSibling.value=s.value:-1!==n.className.split(" ").indexOf("te-html-color-button")&&(n.previousSibling.value=s.value)}),e.data().forEach(function(t){t.render()})})}}function o(t){const e=t.getElementsByClassName("te-section-table");for(const i in e)if("function"==typeof e[i].getElementsByTagName){e[i].getElementsByTagName("thead")[0].onclick=function(t){let e=t.toElement;"TH"===e.tagName&&(e=e.parentElement.parentElement);const s=e.parentElement;let i="";-1===s.className.split(" ").indexOf("expanded")?(s.className="te-section-table expanded",i="shown"):(s.className="te-section-table collapsed",i="hidden");s.getElementsByTagName("tbody")[0].className=i}}const s=t.getElementsByClassName("sharedPropertyRow");for(const i in s)if("function"==typeof s[i].getElementsByClassName){s[i].getElementsByClassName("te-label")[0].onclick=function(t){const e=t.toElement.parentElement;let s="";-1===e.className.split(" ").indexOf("expanded")?(e.className="sharedPropertyRow expanded",s="shown"):(e.className="sharedPropertyRow collapsed",s="hidden");let i=e.nextSibling;for(;null!==i;)-1===i.className.split(" ").indexOf("sharedPropertyRow")?(i.className="propertyRow "+s,i=i.nextSibling):i=null}}}o(t),i(t),s(),n(s,"_inputOnClick"),n(i,"_inputOnChange"),n(o,"_expandCollapse")}sharedPropertyTableHtml(t){const e={id:t.id,label:t.label,rowArr:[]};return t.rowObjArr.forEach(function(t){t.arr.forEach(function(r,a){0===a&&e.rowArr.push({th:i(t),td:n(t),trClass:"sharedPropertyRow collapsed"}),e.rowArr.push({th:s(r),td:o(t,a),trClass:"propertyRow hidden"})})}),this.tableObjHtml(e);function s(t){return t.widget.classID().split("_").join("/")+" <i>["+t.widget._id+"]</i>"}function i(t){return qe(t.id)}function o(t,e){const s=i(t,e);return Ge(t,s,[t.arr[e]],t.arr[e].widget._id);function i(t,e){const s=t.arr[e].widget[t.id]();return null!==s?s:""}}function n(t){const e=s(t);return Ge(t,e,t.arr,"shared");function s(t){const e=t.arr[0].widget[t.id]();return t.arr.forEach(function(t,s){if(e!==t.widget[t.id]())return""}),null!==e?"array"===t.type?JSON.stringify(e):e:""}}}tableObjHtml(t){let e="<table id='"+t.id+"' class='te-section-table expanded'>";return e+="<thead><tr><th colspan='2'>"+t.label+"</th></tr></thead>",e+="<tbody>",t.rowArr.forEach(function(t){e+=this.tableRowObjHtml(t)},this),e+="</tbody>",e+"</table>"}tableRowObjHtml(t){let e=void 0!==t.trClass?"<tr class='"+t.trClass+"'>":"<tr>";return e+="<th class='te-label'>"+t.th+"</th>",e+="<td>"+t.td+"</td>",e+"</tr>"}setWidgetObjsById(t){const e=this,s=t.widget[t.id]();"widgetArray"===t.type?s.forEach(function(t){e._widgetObjsById[t._id]=t}):"widget"===t.type&&null!==s&&(this._widgetObjsById[s._id]=s)}checkTagFilter(t){const e=["Basic"];let s=!1;return t.forEach(function(t){-1!==e.indexOf(t)&&(s=!0)}),s}findSharedProperties(t){const e=this;let s;if(void 0!==t&&t.length>0){let o=[];s={};const n={},r={};t.forEach(function(t){const e=i(t);o=o.concat(e)}),o.forEach(function(t){if(-1!==["widget","widgetArray"].indexOf(t.type))e.setWidgetObjsById(t);else if(e.checkTagFilter(t.ext.tags)){const e=t.id;-1!==t.widget._class.indexOf("Surface")?(void 0===n[e]&&(n[e]={arr:[]}),n[e].id=t.id,n[e].description=t.description,n[e].type=t.type,n[e].set=t.set,n[e].ext=t.ext,n[e].arr.push(t)):(void 0===r[e]&&(r[e]={arr:[]}),r[e].id=t.id,r[e].description=t.description,r[e].type=t.type,r[e].set=t.set,r[e].ext=t.ext,r[e].arr.push(t)),void 0===s[e]&&(s[e]={arr:[]}),s[e].id=t.id,s[e].description=t.description,s[e].type=t.type,s[e].set=t.set,s[e].ext=t.ext,s[e].arr.push(t)}})}return s;function i(t,s){let o=[];if(null!==t){we(t).forEach(function(s,n){if(void 0!==s.ext.tags&&o.push({id:s.id,type:s.type,description:s.description,set:s.set,ext:s.ext,widget:t}),"widgetArray"===s.type){e.widgetProperty(t,s.id).forEach(function(t){const e=i(t);o=o.concat(e)})}else if("widget"===s.type){const n=i(e.widgetProperty(t,s.id));o=o.concat(n)}})}return o}}};n(Ye,"ThemeEditor");let $e=Ye;$e.prototype._class+=" other_ThemeEditor",$e.prototype.publish("themeMode",!0,"boolean","Edit default values",null,{tags:["Basic"]}),$e.prototype.publish("saveTheme","","string","Save Theme",null,{tags:["Basic","Theme"],saveButton:"Save",saveButtonID:"te-save-button"}),$e.prototype.publish("loadedTheme",Fe(1),"set","Loaded Theme",Fe(),{tags:["Basic","Theme"]}),$e.prototype.publish("saveSerial","","string","Save Serial",null,{tags:["Basic","Serial"],saveButton:"Save",saveButtonID:"te-save-button"}),$e.prototype.publish("loadedSerial",Ue(0),"set","Loaded Serial",Ue(),{tags:["Basic","Serial"]}),$e.prototype.publish("showColumns",!0,"boolean","Show Columns",null,{tags:["Intermediate"]}),$e.prototype.publish("showData",!0,"boolean","Show Data",null,{tags:["Intermediate"]}),$e.prototype.publish("shareCountMin",1,"number","Share Count Min",null,{tags:["Private"]}),$e.prototype.publish("paramGrouping","By Param","set","Param Grouping",["By Param","By Widget"],{tags:["Private"]}),$e.prototype.publish("editorComplexity","Basic","set","Choose what publish properties to display within the editor.",["Basic","Intermediate","Advanced","Private"],{tags:["Private"]}),$e.prototype.publish("sectionTitle","","string","Section Title",null,{tags:["Private"]}),$e.prototype.publish("collapsibleSections",!0,"boolean","Collapsible Sections",null,{tags:["Intermediate"]}),$e.prototype.getThemes=je,$e.prototype.getSerials=ze,$e.prototype.getDefaultThemes=Fe,$e.prototype.getDefaultSerials=Ue,t.Audio=k,t.AutoCompleteText=A,t.BUILD_VERSION="3.2.1",t.CalendarHeatMap=Q,t.Column=de,t.ColumnDropdown=ye,t.Comms=wt,t.HPCCBadge=Gt,t.HeatMap=Vt,t.Html=$t,t.IconList=Jt,t.Legend=ie,t.MorphText=re,t.MouseHoverColumn=fe,t.NestedTable=ce,t.Opportunity=be,t.PKG_NAME="@hpcc-js/other",t.PKG_VERSION="3.1.1",t.Paginator=Kt,t.Persist=Te,t.PropertyEditor=Be,t.RadioCheckbox=Ae,t.Select=He,t.Table=te,t.ThemeEditor=$e,t.cache=At,t.createConnection=Ot,t.createResult=Dt,t.enableCache=Nt,t.flattenResult=Ht,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
|
|
5
2
|
//# sourceMappingURL=index.umd.cjs.map
|
|
6
|
-
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.other_autoCompleteText label{display:inline-block;vertical-align:top}.other_autoCompleteText input{width:100%;max-width:600px;outline:0;border-radius:100}.autocomplete-suggestions{text-align:left;cursor:default;border:1px solid #ccc;border-top:0;background:#fff;box-shadow:-1px 1px 3px #0000001a;position:absolute;display:none;z-index:9999;max-height:254px;overflow:hidden;overflow-y:auto;box-sizing:border-box}.autocomplete-suggestion{position:relative;padding:0 .6em;line-height:23px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:1.02em;color:#333}.autocomplete-suggestion b{font-weight:400;color:#1f8dd6}.autocomplete-suggestion.selected{background:#f0f0f0}.other_CalendarHeatMap{shape-rendering:crispEdges}.other_CalendarHeatMap .day{fill:#fff;stroke:#ccc}.other_CalendarHeatMap .day.selected{stroke:red}.other_CalendarHeatMap .day.over{stroke:orange}.other_CalendarHeatMap .day.selected.over{stroke:red}.other_CalendarHeatMap .month{fill:none;stroke:#000;stroke-width:2px}.other_Html{height:100%;width:100%;overflow-x:auto;overflow-y:scroll}.other_IconList .other_Html{overflow-x:hidden;overflow-y:hidden}.other_Paginator{display:block;position:absolute;white-space:nowrap}.other_Paginator .pagination{display:inline-block;white-space:nowrap;margin:0;padding:0}.other_Paginator .pagination>li{display:inline}.other_Paginator input[type=number].currentPageNumber{border:1px solid #ddd;outline:0 none;position:relative;width:37px;text-align:center}.other_Paginator div.side{padding-top:5px;padding-left:8px;vertical-align:top}.other_Paginator span.side{position:relative;color:#337ab7}.other_Paginator .pagination>li>a,.other_Paginator .pagination>div,.other_Paginator .pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.other_Paginator .pagination>li:first-child>a,.other_Paginator .pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.other_Paginator .pagination>li:last-child>a,.other_Paginator .pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.other_Paginator .pagination>li>a:hover,.other_Paginator .pagination>li>span:hover,.other_Paginator .pagination>li>a:focus,.other_Paginator .pagination>li>span:focus{color:#23527c;background-color:#eee;border-color:#ddd}.other_Paginator .pagination>.active>a,.other_Paginator .pagination>.active>span,.other_Paginator .pagination>.active>a:hover,.other_Paginator .pagination>.active>span:hover,.other_Paginator .pagination>.active>a:focus,.other_Paginator .pagination>.active>span:focus{z-index:2;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.other_Paginator .pagination>.disabled>span,.other_Paginator .pagination>.disabled>span:hover,.other_Paginator .pagination>.disabled>span:focus,.other_Paginator .pagination>.disabled>a,.other_Paginator .pagination>.disabled>a:hover,.other_Paginator .pagination>.disabled>a:focus{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.other_Paginator .pagination-lg>li>a,.other_Paginator .pagination-lg>li>span{padding:10px 16px;font-size:18px}.other_Paginator .pagination-lg>li:first-child>a,.other_Paginator .pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.other_Paginator .pagination-lg>li:last-child>a,.other_Paginator .pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.other_Paginator .pagination-sm>li>a,.other_Paginator .pagination-sm>li>span{padding:5px 10px;font-size:12px}.other_Paginator .pagination-sm>li:first-child>a,.other_Paginator .pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.other_Paginator .pagination-sm>li:last-child>a,.other_Paginator .pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.other_Table{color:#333;border-width:1px;border-color:#999}.other_Table table{border-collapse:collapse;border-spacing:0}.other_Table .tableDiv{position:absolute}.other_Table th,.labels-wrapper th{padding:5px 10px;border-width:1px;border-style:solid;border-color:#a9c6c9;color:#fff;white-space:nowrap;cursor:pointer;box-sizing:border-box}.other_Table thead>tr,.cols-wrapper tr{background-color:#1f77b4}.other_Table .thIcon,.labels-wrapper .thIcon{font-family:FontAwesome;padding-left:8px}.other_Table .tableDiv tbody>tr:nth-child(odd){background-color:#f3faff;color:#000}.other_Table .tableDiv tbody>tr:nth-child(2n){background-color:#fff;color:#000}.other_Table .tableDiv tbody>tr.selected{background-color:#f48a00;color:#fff}.other_Table .rows-wrapper table>tbody>tr{background-color:#bce1fb;color:#000}.other_Table .rows-wrapper .labels-wrapper{width:100%}.other_Table table tbody>tr.selected{background-color:#f48a00;color:#fff}.other_Table .tableDiv tbody>tr:hover,.other_Table .tableDiv tbody>tr.hover,.rows-wrapper table tbody tr.hover{background-color:#bfd7e7;color:#fff}.other_Table .tableDiv tbody>tr.selected:hover,.other_Table .tableDiv tbody>tr.selected.hover{background-color:#5ea8db;color:#fff}.other_Table .rows-wrapper tbody tr.hover.selected,.other_Table tr.selected:hover,.other_Table tr.selected.hover{background-color:#5ea8db;color:#fff}.other_Table td,.rows-wrapper td{border-width:1px;padding:2px 5px;border-style:solid;border-color:#a9c6c9;white-space:nowrap;box-sizing:border-box;vertical-align:middle}.other_Table tfoot td,.rows-wrapper tfoot td{background-color:#addff3;font-weight:700}.other_Legend .colorBlock{width:10px;height:10px}.other_Legend>table,.other_Legend>table td,.other_Legend>table th{border-collapse:collapse;border-spacing:0px}.other_Table.other_Legend table{border-spacing:0}.other_Table.other_Legend th,.labels-wrapper th{padding:2px 5px;background-color:transparent;border-width:1px;border-style:solid;border-color:transparent;color:#333;white-space:nowrap;cursor:default;font-weight:400;text-align:left}.other_Table.other_Legend tr{background-color:transparent;color:#333}.other_Table.other_Legend .tableDiv tbody>tr:nth-child(odd){background-color:unset;color:#000}.other_Table.other_Legend .tableDiv tbody>tr:hover,.other_Table.other_Legend .tableDiv tbody>tr.hover,.rows-wrapper table tbody tr.hover{background-color:#bfd7e7;color:#fff}.other_Table.other_Legend thead>tr:hover{background-color:transparent}.other_Table.other_Legend tbody>tr:hover,.other_Table.other_Legend tbody>tr.hover,.rows-wrapper tbody tr.hover{background-color:#eee}.other_Table.other_Legend td,.rows-wrapper td{border-width:0px;padding:2px 5px;white-space:nowrap;box-sizing:border-box}.other_Legend>.tableDiv>table>tbody>tr:hover{cursor:pointer;color:#000;background-color:#ddd}.other_Legend.horiz-legend .tableDiv{width:100%!important;text-align:left}.other_Legend.horiz-legend .tableDiv>table{display:inline-block;width:100%!important;top:0!important;left:0!important}.other_Legend.horiz-legend thead,.other_Legend.horiz-legend tbody,.other_Legend.horiz-legend tr{display:inline-block}.other_Legend.horiz-legend td,.other_Legend.horiz-legend td>div{display:inline-block;white-space:nowrap}.other_Legend.horiz-legend tr{white-space:nowrap}.other_Legend.horiz-legend tbody{display:inline-block;width:100%!important;text-align:center}.other_MorphText .enter{fill:green}.other_MorphText .update{fill:#333}.other_MorphText .exit{fill:brown}.graph_Opportunity{transform:translate(20px,20px)scale(1)!important}.graph_Opportunity .group{stroke-width:1;stroke:#555;fill:#fefefe}.graph_Opportunity .group_headings{font-family:Helvetica,Arial,sans-serif;font-size:14px;font-weight:700;line-height:20px}.graph_Opportunity .node_prev_rect{fill:#fff;stroke-width:2;stroke:#000;stroke-dasharray:3,3;opacity:.6}.graph_Opportunity .node_rev_change{fill:#fff}.graph_Opportunity .node_rev_change_text{font-size:18px;font-family:Arial;color:#000;font-weight:700}.graph_Opportunity .node_date_change{fill:#fff}.graph_Opportunity .node_date_change_text{font-size:18px;font-family:Arial;color:#000;font-weight:700}.graph_Opportunity .node_prev_text{font-size:9px;font-family:Arial;opacity:.6}.graph_Opportunity .node_cur_rect{stroke-width:2;stroke:#000}.graph_Opportunity .node_cur_text{font-size:9px;font-family:Arial;text-decoration:underline}.graph_Opportunity .arrowhead{refX:6}.graph_Opportunity-tooltip.tooltip{position:absolute;text-align:left;width:350px;height:135px;padding:15px 10px 10px;font:14px arial;background:#bdbdbd;border:0px;border-radius:8px;pointer-events:none;z-index:1}.other_PropertyEditor{overflow-y:scroll;height:100%;width:100%}.other_PropertyEditor .other_PropertyEditor{overflow:hidden}.other_PropertyEditor .property-table{width:100%;border:1px solid #ddd;border-width:0 0 0 1px}.other_PropertyEditor thead>tr>th{background-color:#333}.other_PropertyEditor .other_PropertyEditor th{background-color:#444}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor th{background-color:#555}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor th{background-color:#666}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor th{background-color:#777}.other_PropertyEditor .headerRow{background-color:#eee}.other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#ddd}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#ccc}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#bbb}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#aaa}.other_PropertyEditor .fa{font-size:14px;width:14px}.other_PropertyEditor div.property-table-collapsed{display:none}.other_PropertyEditor .headerRow>.peInput{padding-top:2px}.other_PropertyEditor .headerRow>.peInput>span{font-weight:700;padding-left:2px}.other_PropertyEditor .headerRow>.peInput>i{float:right;padding-top:2px;padding-bottom:2px}.other_PropertyEditor .headerRow>span>i:hover{background-color:#555;cursor:pointer}.other_PropertyEditor .property-table thead>tr>th{text-align:left;background-color:#333;color:#fff;padding-top:2px;padding-left:4px}.other_PropertyEditor .property-table thead>tr>th>i{float:right;padding-top:2px;padding-right:4px;padding-bottom:2px}.other_PropertyEditor .property-table thead>tr>th>i:hover{background-color:#555;cursor:pointer}.other_PropertyEditor .property-table tbody>tr:nth-child(2n){background-color:#f9f9f9}.other_PropertyEditor .property-table tbody>tr:nth-child(odd){background-color:#fff}.other_PropertyEditor .property-table tbody>tr>td{text-align:left;color:#333;padding:0 0 0 2px}.other_PropertyEditor .property-table tbody>tr.disabled>td{color:gray}.other_PropertyEditor .property-table tbody>tr.invalid>td{color:red}.other_PropertyEditor .property-input-cell>div{padding-left:8px}.other_PropertyEditor .property-label{padding-right:4px;box-sizing:border-box;height:20px}.other_PropertyEditor td.property-input-cell{text-align:left;height:20px;padding:1px 0;width:80%}.other_PropertyEditor .property-input-cell>input,.other_PropertyEditor .property-input-cell>textarea{width:100%;box-sizing:border-box}.other_PropertyEditor .property-input-cell>input{height:20px}.other_PropertyEditor .property-input-cell>textarea{height:120px}.other_PropertyEditor .property-input-cell.boolean-cell{width:auto;margin:0;position:relative}.other_PropertyEditor .property-input-cell>input[type=checkbox]{width:auto;margin:0;position:absolute;top:0}.other_PropertyEditor .html-color-cell>input{width:80%}.other_PropertyEditor .html-color-cell>input[type=color]{width:20%;position:relative;top:-1px}.other_RadioCheckbox span,.other_RadioCheckbox label,.other_Select span,.other_Select label{vertical-align:top}.other_ThemeEditor *{box-sizing:border-box}.other_ThemeEditor table{width:100%;margin-bottom:4px}.other_ThemeEditor table:last-child{margin-bottom:0}.other_ThemeEditor thead>tr>th{text-align:left}.other_ThemeEditor thead>tr>th>b{font-weight:700}.other_ThemeEditor thead>tr>th{background-color:#fafafa}.other_ThemeEditor tbody>tr>th,.other_ThemeEditor tbody>tr>td{font-weight:400;background-color:#fafafa}.other_ThemeEditor thead>tr:first-child>th{background-color:#e5e5e5}.other_ThemeEditor thead>tr.mm-content>th{padding:0 4px;font-size:12px}.other_ThemeEditor th,.other_ThemeEditor td{padding:4px;white-space:nowrap}.other_ThemeEditor thead.mm-label>tr:first-child>th{position:relative;padding-left:29px}.other_ThemeEditor thead.mm-label>tr:first-child>th:before{content:"[+]";position:absolute;left:3px;top:3px;color:#404040;height:15px;width:15px;font-family:monospace}.other_ThemeEditor thead.mm-label.max>tr:first-child>th:before{content:"[-]"}.other_ThemeEditor tr.sharedPropertyRow>td.label:after{content:"[+]";position:absolute;right:10px;top:3px;color:#404040;height:15px;width:15px;font-family:monospace}.other_ThemeEditor tr.sharedPropertyRow>td.label.expanded:after{content:"[-]"}.other_ThemeEditor tr.sharedPropertyRow>td.label{position:relative;padding-right:30px;text-decoration:underline}.other_ThemeEditor tr.sharedPropertyRow>td.label:hover{text-decoration:none;cursor:pointer}.other_ThemeEditor tr.propertyRow>th,.other_ThemeEditor tr.propertyRow>td{background-color:#f4f4f4}.other_ThemeEditor tr.propertyRow>td.label{padding-left:24px}.other_ThemeEditor table,.other_ThemeEditor th,.other_ThemeEditor td{border:1px solid #e5e5e5}.other_ThemeEditor .mm-label.min .mm-content,.other_ThemeEditor .mm-label.min+.mm-content{display:none}.mm-label:hover{cursor:pointer}.other_ThemeEditor .sharedPropertyRow>.te-label{cursor:pointer}.other_ThemeEditor .sharedPropertyRow>.te-label:hover{text-decoration:none}.other_ThemeEditor .propertyRow.shown>.te-label{padding-left:15px}.other_ThemeEditor .propertyRow>td{background-color:#f4f4f4}.other_ThemeEditor input,.other_ThemeEditor textarea,.other_ThemeEditor select{height:30px;float:left}.other_ThemeEditor input,.other_ThemeEditor select{width:150px}.other_ThemeEditor .te-checkbox{width:20px;height:20px;margin:0}.other_ThemeEditor .te-html-color-input{height:30px;width:120px}.other_ThemeEditor .te-html-color-button{width:30px}.other_ThemeEditor button,.other_ThemeEditor .te-html-color-button{background-color:#ccc;border:1px solid #A9A9A9;border-left:0;height:30px;float:left;padding:4px}.other_ThemeEditor button,.other_ThemeEditor .te-html-color-button,.other_ThemeEditor .te-section-table thead{cursor:pointer}.other_ThemeEditor button:hover,.other_ThemeEditor .te-html-color-button:hover{background-color:#bbb}.other_ThemeEditor button:active,.other_ThemeEditor .te-html-color-button:active{background-color:#aaa}.other_ThemeEditor .te-label{white-space:nowrap;width:1%;vertical-align:top}.other_ThemeEditor .te-section-table>tbody>tr:hover{background-color:#f8ff98}.te-section-table thead th{font-weight:700}.te-section-table.expanded>thead>tr>th:after{font: 14px/1 FontAwesome;content:"";float:right;margin-right:6px;margin-top:4px}.te-section-table.collapsed>thead>tr>th:after{font: 14px/1 FontAwesome;content:"";float:right;margin-right:6px;margin-top:4px}#te-tableModeOptions thead>tr>th,#te-themeEditorOptions thead>tr>th{border:1px solid #6E6E73;background-color:#6e6e73;color:#fafafa}')),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
3
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('.other_autoCompleteText label{display:inline-block;vertical-align:top}.other_autoCompleteText input{width:100%;max-width:600px;outline:0;border-radius:100}.autocomplete-suggestions{text-align:left;cursor:default;border:1px solid #ccc;border-top:0;background:#fff;box-shadow:-1px 1px 3px #0000001a;position:absolute;display:none;z-index:9999;max-height:254px;overflow:hidden;overflow-y:auto;box-sizing:border-box}.autocomplete-suggestion{position:relative;padding:0 .6em;line-height:23px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:1.02em;color:#333}.autocomplete-suggestion b{font-weight:400;color:#1f8dd6}.autocomplete-suggestion.selected{background:#f0f0f0}.other_CalendarHeatMap{shape-rendering:crispEdges}.other_CalendarHeatMap .day{fill:#fff;stroke:#ccc}.other_CalendarHeatMap .day.selected{stroke:red}.other_CalendarHeatMap .day.over{stroke:orange}.other_CalendarHeatMap .day.selected.over{stroke:red}.other_CalendarHeatMap .month{fill:none;stroke:#000;stroke-width:2px}.other_Html{height:100%;width:100%;overflow-x:auto;overflow-y:scroll}.other_IconList .other_Html{overflow-x:hidden;overflow-y:hidden}.other_Paginator{display:block;position:absolute;white-space:nowrap}.other_Paginator .pagination{display:inline-block;white-space:nowrap;margin:0;padding:0}.other_Paginator .pagination>li{display:inline}.other_Paginator input[type=number].currentPageNumber{border:1px solid #ddd;outline:0 none;position:relative;width:37px;text-align:center}.other_Paginator div.side{padding-top:5px;padding-left:8px;vertical-align:top}.other_Paginator span.side{position:relative;color:#337ab7}.other_Paginator .pagination>li>a,.other_Paginator .pagination>div,.other_Paginator .pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.other_Paginator .pagination>li:first-child>a,.other_Paginator .pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.other_Paginator .pagination>li:last-child>a,.other_Paginator .pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.other_Paginator .pagination>li>a:hover,.other_Paginator .pagination>li>span:hover,.other_Paginator .pagination>li>a:focus,.other_Paginator .pagination>li>span:focus{color:#23527c;background-color:#eee;border-color:#ddd}.other_Paginator .pagination>.active>a,.other_Paginator .pagination>.active>span,.other_Paginator .pagination>.active>a:hover,.other_Paginator .pagination>.active>span:hover,.other_Paginator .pagination>.active>a:focus,.other_Paginator .pagination>.active>span:focus{z-index:2;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.other_Paginator .pagination>.disabled>span,.other_Paginator .pagination>.disabled>span:hover,.other_Paginator .pagination>.disabled>span:focus,.other_Paginator .pagination>.disabled>a,.other_Paginator .pagination>.disabled>a:hover,.other_Paginator .pagination>.disabled>a:focus{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.other_Paginator .pagination-lg>li>a,.other_Paginator .pagination-lg>li>span{padding:10px 16px;font-size:18px}.other_Paginator .pagination-lg>li:first-child>a,.other_Paginator .pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.other_Paginator .pagination-lg>li:last-child>a,.other_Paginator .pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.other_Paginator .pagination-sm>li>a,.other_Paginator .pagination-sm>li>span{padding:5px 10px;font-size:12px}.other_Paginator .pagination-sm>li:first-child>a,.other_Paginator .pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.other_Paginator .pagination-sm>li:last-child>a,.other_Paginator .pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.other_Table{color:#333;border-width:1px;border-color:#999}.other_Table table{border-collapse:collapse;border-spacing:0}.other_Table .tableDiv{position:absolute}.other_Table th,.labels-wrapper th{padding:5px 10px;border-width:1px;border-style:solid;border-color:#a9c6c9;color:#fff;white-space:nowrap;cursor:pointer;box-sizing:border-box}.other_Table thead>tr,.cols-wrapper tr{background-color:#1f77b4}.other_Table .thIcon,.labels-wrapper .thIcon{font-family:FontAwesome;padding-left:8px}.other_Table .tableDiv tbody>tr:nth-child(odd){background-color:#f3faff;color:#000}.other_Table .tableDiv tbody>tr:nth-child(2n){background-color:#fff;color:#000}.other_Table .tableDiv tbody>tr.selected{background-color:#f48a00;color:#fff}.other_Table .rows-wrapper table>tbody>tr{background-color:#bce1fb;color:#000}.other_Table .rows-wrapper .labels-wrapper{width:100%}.other_Table table tbody>tr.selected{background-color:#f48a00;color:#fff}.other_Table .tableDiv tbody>tr:hover,.other_Table .tableDiv tbody>tr.hover,.rows-wrapper table tbody tr.hover{background-color:#bfd7e7;color:#fff}.other_Table .tableDiv tbody>tr.selected:hover,.other_Table .tableDiv tbody>tr.selected.hover{background-color:#5ea8db;color:#fff}.other_Table .rows-wrapper tbody tr.hover.selected,.other_Table tr.selected:hover,.other_Table tr.selected.hover{background-color:#5ea8db;color:#fff}.other_Table td,.rows-wrapper td{border-width:1px;padding:2px 5px;border-style:solid;border-color:#a9c6c9;white-space:nowrap;box-sizing:border-box;vertical-align:middle}.other_Table tfoot td,.rows-wrapper tfoot td{background-color:#addff3;font-weight:700}.other_Legend .colorBlock{width:10px;height:10px}.other_Legend>table,.other_Legend>table td,.other_Legend>table th{border-collapse:collapse;border-spacing:0px}.other_Table.other_Legend table{border-spacing:0}.other_Table.other_Legend th,.labels-wrapper th{padding:2px 5px;background-color:transparent;border-width:1px;border-style:solid;border-color:transparent;color:#333;white-space:nowrap;cursor:default;font-weight:400;text-align:left}.other_Table.other_Legend tr{background-color:transparent;color:#333}.other_Table.other_Legend .tableDiv tbody>tr:nth-child(odd){background-color:unset;color:#000}.other_Table.other_Legend .tableDiv tbody>tr:hover,.other_Table.other_Legend .tableDiv tbody>tr.hover,.rows-wrapper table tbody tr.hover{background-color:#bfd7e7;color:#fff}.other_Table.other_Legend thead>tr:hover{background-color:transparent}.other_Table.other_Legend tbody>tr:hover,.other_Table.other_Legend tbody>tr.hover,.rows-wrapper tbody tr.hover{background-color:#eee}.other_Table.other_Legend td,.rows-wrapper td{border-width:0px;padding:2px 5px;white-space:nowrap;box-sizing:border-box}.other_Legend>.tableDiv>table>tbody>tr:hover{cursor:pointer;color:#000;background-color:#ddd}.other_Legend.horiz-legend .tableDiv{width:100%!important;text-align:left}.other_Legend.horiz-legend .tableDiv>table{display:inline-block;width:100%!important;top:0!important;left:0!important}.other_Legend.horiz-legend thead,.other_Legend.horiz-legend tbody,.other_Legend.horiz-legend tr{display:inline-block}.other_Legend.horiz-legend td,.other_Legend.horiz-legend td>div{display:inline-block;white-space:nowrap}.other_Legend.horiz-legend tr{white-space:nowrap}.other_Legend.horiz-legend tbody{display:inline-block;width:100%!important;text-align:center}.other_MorphText .enter{fill:green}.other_MorphText .update{fill:#333}.other_MorphText .exit{fill:brown}.graph_Opportunity{transform:translate(20px,20px)scale(1)!important}.graph_Opportunity .group{stroke-width:1;stroke:#555;fill:#fefefe}.graph_Opportunity .group_headings{font-family:Helvetica,Arial,sans-serif;font-size:14px;font-weight:700;line-height:20px}.graph_Opportunity .node_prev_rect{fill:#fff;stroke-width:2;stroke:#000;stroke-dasharray:3,3;opacity:.6}.graph_Opportunity .node_rev_change{fill:#fff}.graph_Opportunity .node_rev_change_text{font-size:18px;font-family:Arial;color:#000;font-weight:700}.graph_Opportunity .node_date_change{fill:#fff}.graph_Opportunity .node_date_change_text{font-size:18px;font-family:Arial;color:#000;font-weight:700}.graph_Opportunity .node_prev_text{font-size:9px;font-family:Arial;opacity:.6}.graph_Opportunity .node_cur_rect{stroke-width:2;stroke:#000}.graph_Opportunity .node_cur_text{font-size:9px;font-family:Arial;text-decoration:underline}.graph_Opportunity .arrowhead{refX:6}.graph_Opportunity-tooltip.tooltip{position:absolute;text-align:left;width:350px;height:135px;padding:15px 10px 10px;font:14px arial;background:#bdbdbd;border:0px;border-radius:8px;pointer-events:none;z-index:1}.other_PropertyEditor{overflow-y:scroll;height:100%;width:100%}.other_PropertyEditor .other_PropertyEditor{overflow:hidden}.other_PropertyEditor .property-table{width:100%;border:1px solid #ddd;border-width:0 0 0 1px}.other_PropertyEditor thead>tr>th{background-color:#333}.other_PropertyEditor .other_PropertyEditor th{background-color:#444}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor th{background-color:#555}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor th{background-color:#666}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor th{background-color:#777}.other_PropertyEditor .headerRow{background-color:#eee}.other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#ddd}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#ccc}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#bbb}.other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .other_PropertyEditor .headerRow{background-color:#aaa}.other_PropertyEditor .fa{font-size:14px;width:14px}.other_PropertyEditor div.property-table-collapsed{display:none}.other_PropertyEditor .headerRow>.peInput{padding-top:2px}.other_PropertyEditor .headerRow>.peInput>span{font-weight:700;padding-left:2px}.other_PropertyEditor .headerRow>.peInput>i{float:right;padding-top:2px;padding-bottom:2px}.other_PropertyEditor .headerRow>span>i:hover{background-color:#555;cursor:pointer}.other_PropertyEditor .property-table thead>tr>th{text-align:left;background-color:#333;color:#fff;padding-top:2px;padding-left:4px}.other_PropertyEditor .property-table thead>tr>th>i{float:right;padding-top:2px;padding-right:4px;padding-bottom:2px}.other_PropertyEditor .property-table thead>tr>th>i:hover{background-color:#555;cursor:pointer}.other_PropertyEditor .property-table tbody>tr:nth-child(2n){background-color:#f9f9f9}.other_PropertyEditor .property-table tbody>tr:nth-child(odd){background-color:#fff}.other_PropertyEditor .property-table tbody>tr>td{text-align:left;color:#333;padding:0 0 0 2px}.other_PropertyEditor .property-table tbody>tr.disabled>td{color:gray}.other_PropertyEditor .property-table tbody>tr.invalid>td{color:red}.other_PropertyEditor .property-input-cell>div{padding-left:8px}.other_PropertyEditor .property-label{padding-right:4px;box-sizing:border-box;height:20px}.other_PropertyEditor td.property-input-cell{text-align:left;height:20px;padding:1px 0;width:80%}.other_PropertyEditor .property-input-cell>input,.other_PropertyEditor .property-input-cell>textarea{width:100%;box-sizing:border-box}.other_PropertyEditor .property-input-cell>input{height:20px}.other_PropertyEditor .property-input-cell>textarea{height:120px}.other_PropertyEditor .property-input-cell.boolean-cell{width:auto;margin:0;position:relative}.other_PropertyEditor .property-input-cell>input[type=checkbox]{width:auto;margin:0;position:absolute;top:0}.other_PropertyEditor .html-color-cell>input{width:80%}.other_PropertyEditor .html-color-cell>input[type=color]{width:20%;position:relative;top:-1px}.other_RadioCheckbox span,.other_RadioCheckbox label,.other_Select span,.other_Select label{vertical-align:top}.other_ThemeEditor *{box-sizing:border-box}.other_ThemeEditor table{width:100%;margin-bottom:4px}.other_ThemeEditor table:last-child{margin-bottom:0}.other_ThemeEditor thead>tr>th{text-align:left}.other_ThemeEditor thead>tr>th>b{font-weight:700}.other_ThemeEditor thead>tr>th{background-color:#fafafa}.other_ThemeEditor tbody>tr>th,.other_ThemeEditor tbody>tr>td{font-weight:400;background-color:#fafafa}.other_ThemeEditor thead>tr:first-child>th{background-color:#e5e5e5}.other_ThemeEditor thead>tr.mm-content>th{padding:0 4px;font-size:12px}.other_ThemeEditor th,.other_ThemeEditor td{padding:4px;white-space:nowrap}.other_ThemeEditor thead.mm-label>tr:first-child>th{position:relative;padding-left:29px}.other_ThemeEditor thead.mm-label>tr:first-child>th:before{content:"[+]";position:absolute;left:3px;top:3px;color:#404040;height:15px;width:15px;font-family:monospace}.other_ThemeEditor thead.mm-label.max>tr:first-child>th:before{content:"[-]"}.other_ThemeEditor tr.sharedPropertyRow>td.label:after{content:"[+]";position:absolute;right:10px;top:3px;color:#404040;height:15px;width:15px;font-family:monospace}.other_ThemeEditor tr.sharedPropertyRow>td.label.expanded:after{content:"[-]"}.other_ThemeEditor tr.sharedPropertyRow>td.label{position:relative;padding-right:30px;text-decoration:underline}.other_ThemeEditor tr.sharedPropertyRow>td.label:hover{text-decoration:none;cursor:pointer}.other_ThemeEditor tr.propertyRow>th,.other_ThemeEditor tr.propertyRow>td{background-color:#f4f4f4}.other_ThemeEditor tr.propertyRow>td.label{padding-left:24px}.other_ThemeEditor table,.other_ThemeEditor th,.other_ThemeEditor td{border:1px solid #e5e5e5}.other_ThemeEditor .mm-label.min .mm-content,.other_ThemeEditor .mm-label.min+.mm-content{display:none}.mm-label:hover{cursor:pointer}.other_ThemeEditor .sharedPropertyRow>.te-label{cursor:pointer}.other_ThemeEditor .sharedPropertyRow>.te-label:hover{text-decoration:none}.other_ThemeEditor .propertyRow.shown>.te-label{padding-left:15px}.other_ThemeEditor .propertyRow>td{background-color:#f4f4f4}.other_ThemeEditor input,.other_ThemeEditor textarea,.other_ThemeEditor select{height:30px;float:left}.other_ThemeEditor input,.other_ThemeEditor select{width:150px}.other_ThemeEditor .te-checkbox{width:20px;height:20px;margin:0}.other_ThemeEditor .te-html-color-input{height:30px;width:120px}.other_ThemeEditor .te-html-color-button{width:30px}.other_ThemeEditor button,.other_ThemeEditor .te-html-color-button{background-color:#ccc;border:1px solid #A9A9A9;border-left:0;height:30px;float:left;padding:4px}.other_ThemeEditor button,.other_ThemeEditor .te-html-color-button,.other_ThemeEditor .te-section-table thead{cursor:pointer}.other_ThemeEditor button:hover,.other_ThemeEditor .te-html-color-button:hover{background-color:#bbb}.other_ThemeEditor button:active,.other_ThemeEditor .te-html-color-button:active{background-color:#aaa}.other_ThemeEditor .te-label{white-space:nowrap;width:1%;vertical-align:top}.other_ThemeEditor .te-section-table>tbody>tr:hover{background-color:#f8ff98}.te-section-table thead th{font-weight:700}.te-section-table.expanded>thead>tr>th:after{font: 14px/1 FontAwesome;content:"";float:right;margin-right:6px;margin-top:4px}.te-section-table.collapsed>thead>tr>th:after{font: 14px/1 FontAwesome;content:"";float:right;margin-right:6px;margin-top:4px}#te-tableModeOptions thead>tr>th,#te-themeEditorOptions thead>tr>th{border:1px solid #6E6E73;background-color:#6e6e73;color:#fafafa}')),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
|