@univerjs/sheets-conditional-formatting 0.4.2 → 0.5.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"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 __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});var __publicField=(obj,key,value)=>__defNormalProp(obj,typeof key!="symbol"?key+"":key,value);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const core=require("@univerjs/core"),rxjs=require("rxjs"),operators=require("rxjs/operators"),sheets=require("@univerjs/sheets"),engineRender=require("@univerjs/engine-render"),engineFormula=require("@univerjs/engine-formula"),SHEET_CONDITIONAL_FORMATTING_PLUGIN="SHEET_CONDITIONAL_FORMATTING_PLUGIN";var CFTextOperator=(CFTextOperator2=>(CFTextOperator2.beginsWith="beginsWith",CFTextOperator2.endsWith="endsWith",CFTextOperator2.containsText="containsText",CFTextOperator2.notContainsText="notContainsText",CFTextOperator2.equal="equal",CFTextOperator2.notEqual="notEqual",CFTextOperator2.containsBlanks="containsBlanks",CFTextOperator2.notContainsBlanks="notContainsBlanks",CFTextOperator2.containsErrors="containsErrors",CFTextOperator2.notContainsErrors="notContainsErrors",CFTextOperator2))(CFTextOperator||{}),CFTimePeriodOperator=(CFTimePeriodOperator2=>(CFTimePeriodOperator2.today="today",CFTimePeriodOperator2.yesterday="yesterday",CFTimePeriodOperator2.tomorrow="tomorrow",CFTimePeriodOperator2.last7Days="last7Days",CFTimePeriodOperator2.thisMonth="thisMonth",CFTimePeriodOperator2.lastMonth="lastMonth",CFTimePeriodOperator2.nextMonth="nextMonth",CFTimePeriodOperator2.thisWeek="thisWeek",CFTimePeriodOperator2.lastWeek="lastWeek",CFTimePeriodOperator2.nextWeek="nextWeek",CFTimePeriodOperator2))(CFTimePeriodOperator||{}),CFNumberOperator=(CFNumberOperator2=>(CFNumberOperator2.greaterThan="greaterThan",CFNumberOperator2.greaterThanOrEqual="greaterThanOrEqual",CFNumberOperator2.lessThan="lessThan",CFNumberOperator2.lessThanOrEqual="lessThanOrEqual",CFNumberOperator2.notBetween="notBetween",CFNumberOperator2.between="between",CFNumberOperator2.equal="equal",CFNumberOperator2.notEqual="notEqual",CFNumberOperator2))(CFNumberOperator||{}),CFRuleType=(CFRuleType2=>(CFRuleType2.highlightCell="highlightCell",CFRuleType2.dataBar="dataBar",CFRuleType2.colorScale="colorScale",CFRuleType2.iconSet="iconSet",CFRuleType2))(CFRuleType||{}),CFSubRuleType=(CFSubRuleType2=>(CFSubRuleType2.uniqueValues="uniqueValues",CFSubRuleType2.duplicateValues="duplicateValues",CFSubRuleType2.rank="rank",CFSubRuleType2.text="text",CFSubRuleType2.timePeriod="timePeriod",CFSubRuleType2.number="number",CFSubRuleType2.average="average",CFSubRuleType2.formula="formula",CFSubRuleType2))(CFSubRuleType||{}),CFValueType=(CFValueType2=>(CFValueType2.num="num",CFValueType2.min="min",CFValueType2.max="max",CFValueType2.percent="percent",CFValueType2.percentile="percentile",CFValueType2.formula="formula",CFValueType2))(CFValueType||{});const DEFAULT_BG_COLOR="#fff",DEFAULT_FONT_COLOR="#000000",createDefaultRule=__name(()=>({cfId:void 0,ranges:[],stopIfTrue:!1,rule:{type:"highlightCell",subType:"text",operator:"containsText"}}),"createDefaultRule"),createDefaultValue=__name((subType,operator)=>{switch(subType){case"text":{if(["beginsWith","containsText","endsWith","equal","notContainsText","notEqual"].includes(operator))return"";break}case"number":return["between","notBetween"].includes(operator)?[10,100]:10}return""},"createDefaultValue"),createDefaultValueByValueType=__name((type,defaultValue)=>{switch(type){case"formula":return"=";case"max":case"min":return"";case"percent":case"percentile":case"num":return defaultValue!==void 0?defaultValue:10}return""},"createDefaultValueByValueType"),createCfId=__name(()=>`${core.Tools.generateRandomId(8)}`,"createCfId"),findIndexByAnchor=__name((anchor,ruleList,get)=>{if(!ruleList)return null;const anchorIndex=ruleList.findIndex(rule=>get(rule)===anchor.id);if(anchorIndex<0)return null;switch(anchor.type){case"after":return anchorIndex+1;case"before":return anchorIndex-1;case"self":return anchorIndex}},"findIndexByAnchor"),moveByAnchor=__name((start,end,ruleList,get)=>{if(!ruleList)return null;const startIndex=findIndexByAnchor(start,ruleList,get);let endIndex=findIndexByAnchor(end,ruleList,get);if(startIndex===null||endIndex===null||startIndex===endIndex)return;const rule=ruleList.splice(startIndex,1)[0];switch(startIndex<endIndex&&(endIndex=findIndexByAnchor(end,ruleList,get)),end.type){case"before":{ruleList.splice(endIndex+1,0,rule);break}case"self":case"after":{ruleList.splice(endIndex,0,rule);break}}},"moveByAnchor"),transformSupportSymmetryAnchor=__name((start,end,ruleList,get)=>{if(start.type==="after"&&["after","before"].includes(end.type))return[start,end];const _start={...start},_end={...end};if(_start.type!=="after"){const index=findIndexByAnchor(_start,ruleList,get);if(index===null)return null;if(index-1<0){const nextItem=ruleList[index+1];if(nextItem)_start.id=get(nextItem),_start.type="before";else return null}else{const id=get(ruleList[index-1]);_start.id=id,_start.type="after"}}if(!["after","before"].includes(_end.type)){const index=findIndexByAnchor(_end,ruleList,get);if(index===null)return null;if(index===0)_end.type="before";else if(index-1>=0){const id=get(ruleList[index-1]);_end.id=id,_end.type="after"}else if(index+1<=ruleList.length-1){const id=get(ruleList[index+1]);_end.id=id,_end.type="before"}else return null}return _start.id===_end.id&&_start.type===_end.type?null:[_start,_end]},"transformSupportSymmetryAnchor"),anchorUndoFactory=__name((start,end)=>{if(["after","before"].includes(end.type)){if(start.type==="after")return[end,start];if(start.type==="before")return[end,{...start,type:"self"}]}return null},"anchorUndoFactory"),isAnchorEqual=__name((anchor1,anchor2)=>anchor1.id===anchor2.id&&anchor1.type===anchor2.type,"isAnchorEqual");var __defProp$3=Object.defineProperty,__getOwnPropDesc$3=Object.getOwnPropertyDescriptor,__decorateClass$3=__name((decorators,target,key,kind)=>{for(var result=kind>1?void 0:kind?__getOwnPropDesc$3(target,key):target,i=decorators.length-1,decorator;i>=0;i--)(decorator=decorators[i])&&(result=(kind?decorator(target,key,result):decorator(result))||result);return kind&&result&&__defProp$3(target,key,result),result},"__decorateClass$3"),__decorateParam$3=__name((index,decorator)=>(target,key)=>decorator(target,key,index),"__decorateParam$3"),_a;exports.ConditionalFormattingRuleModel=(_a=class{constructor(_injector){__publicField(this,"_model",new Map);__publicField(this,"_ruleChange$",new rxjs.Subject);__publicField(this,"$ruleChange",this._ruleChange$.asObservable().pipe(operators.bufferTime(16),operators.filter(list=>!!list.length),source=>new rxjs.Observable(observer=>{source.subscribe({next:__name(ruleList=>{const createKey=__name(item=>`${item.unitId}_${item.subUnitId}_${item.rule.cfId}`,"createKey"),handleCreateAndDelete=__name(list=>{const createIndex=list.findIndex(rule=>rule.type==="add"),deleteIndex=list.findIndex(rule=>rule.type==="delete");createIndex!==-1&&deleteIndex!==-1&&deleteIndex>createIndex&&list.splice(createIndex,deleteIndex-createIndex+1)},"handleCreateAndDelete"),result=ruleList.reduce((a,b,index)=>{const key=createKey(b);return a[key]||(a[key]=[]),a[key].push({...b,_index:index}),a},{});for(const key in result){const list=result[key];list.length>=2&&handleCreateAndDelete(list)}Object.keys(result).reduce((a,key)=>{const list=result[key];return a.push(...list),a},[]).sort((a,b)=>a._index-b._index).map(item=>item).forEach(item=>{observer.next(item)})},"next"),error:__name(err=>observer.error(err),"error"),complete:__name(()=>observer.complete(),"complete")})})));this._injector=_injector}_ensureList(unitId,subUnitId){let list=this.getSubunitRules(unitId,subUnitId);if(!list){list=[];let unitMap=this._model.get(unitId);unitMap||(unitMap=new Map,this._model.set(unitId,unitMap)),unitMap.set(subUnitId,list)}return list}getRule(unitId,subUnitId,cfId){const list=this.getSubunitRules(unitId,subUnitId);return list?list.find(item=>item.cfId===cfId):null}getUnitRules(unitId){return this._model.get(unitId)||null}getSubunitRules(unitId,subUnitId){var _a5;return((_a5=this._model.get(unitId))==null?void 0:_a5.get(subUnitId))||null}deleteRule(unitId,subUnitId,cfId){const list=this.getSubunitRules(unitId,subUnitId);if(list){const index=list.findIndex(e=>e.cfId===cfId),rule=list[index];rule&&(list.splice(index,1),this._ruleChange$.next({rule,subUnitId,unitId,type:"delete"}))}}setRule(unitId,subUnitId,rule,oldCfId){const oldRule=this._ensureList(unitId,subUnitId).find(item=>item.cfId===oldCfId);if(oldRule){const cloneRule=core.Tools.deepClone(oldRule);Object.assign(oldRule,rule),this._ruleChange$.next({rule:oldRule,subUnitId,unitId,type:"set",oldRule:cloneRule})}}addRule(unitId,subUnitId,rule){const list=this._ensureList(unitId,subUnitId);list.find(item2=>item2.cfId===rule.cfId)||list.unshift(rule),this._ruleChange$.next({rule,subUnitId,unitId,type:"add"})}moveRulePriority(unitId,subUnitId,start,end){const list=this._ensureList(unitId,subUnitId),curIndex=findIndexByAnchor(start,list,rule2=>rule2.cfId),targetCfIndex=findIndexByAnchor(end,list,rule2=>rule2.cfId);if(targetCfIndex===null||curIndex===null||targetCfIndex===curIndex)return;const rule=list[curIndex];rule&&(moveByAnchor(start,end,list,rule2=>rule2.cfId),this._ruleChange$.next({rule,subUnitId,unitId,type:"sort"}))}createCfId(_unitId,_subUnitId){return createCfId()}deleteUnitId(unitId){this._model.delete(unitId)}},__name(_a,"ConditionalFormattingRuleModel"),_a);exports.ConditionalFormattingRuleModel=__decorateClass$3([__decorateParam$3(0,core.Inject(core.Injector))],exports.ConditionalFormattingRuleModel);const _ConditionalFormattingViewModel=class _ConditionalFormattingViewModel{constructor(){__publicField(this,"_model",new Map);__publicField(this,"_markDirty$",new rxjs.Subject);__publicField(this,"markDirty$",this._markDirty$.asObservable())}_ensureMatrix(unitId,subUnitId){let _matrix=this.getMatrix(unitId,subUnitId);if(!_matrix){_matrix=new core.ObjectMatrix;let unitModel=this._model.get(unitId);unitModel||(unitModel=new Map,this._model.set(unitId,unitModel)),unitModel.set(subUnitId,_matrix)}return _matrix}getMatrix(unitId,subUnitId){var _a5;return(_a5=this._model.get(unitId))==null?void 0:_a5.get(subUnitId)}getCellCf(unitId,subUnitId,row,col,matrix){const _matrix=matrix!=null?matrix:this.getMatrix(unitId,subUnitId);return _matrix?_matrix.getValue(row,col):null}setCellCfRuleCache(unitId,subUnitId,row,col,cfId,value){const cell2=this._ensureMatrix(unitId,subUnitId).getValue(row,col),item=cell2==null?void 0:cell2.cfList.find(e=>e.cfId===cfId);item&&(item.ruleCache=value,item.isDirty=!1)}deleteCellCf(unitId,subUnitId,row,col,cfId,matrix){const _matrix=matrix!=null?matrix:this.getMatrix(unitId,subUnitId);if(_matrix){const cellItem=_matrix.getValue(row,col);if(cellItem){const cfList=cellItem.cfList,index=cfList.findIndex(item=>item.cfId===cfId);index>-1&&cfList.splice(index,1),cfList.length||_matrix.realDeleteValue(row,col)}}}pushCellCf(unitId,subUnitId,row,col,cfId){const _matrix=this._ensureMatrix(unitId,subUnitId);let cellValue=_matrix.getValue(row,col);if(!cellValue)cellValue={cfList:[{cfId,isDirty:!0}]};else{const cfIdList=cellValue.cfList;if(cfIdList.findIndex(item=>item.cfId===cfId)>-1)return;cfIdList.push({cfId,isDirty:!0})}_matrix.setValue(row,col,cellValue)}sortCellCf(unitId,subUnitId,row,col,cfPriorityMap){const cell2=this.getCellCf(unitId,subUnitId,row,col);if(cell2){const sortResult=cell2.cfList.map(cf=>{const priority=cfPriorityMap.get(cf.cfId);return priority===void 0?null:{...cf,priority}}).filter(item=>!!item).sort((a,b)=>a.priority-b.priority);cell2.cfList=sortResult}}markRuleDirty(unitId,subUnitId,rule,row,col){const handleCell=__name((row2,col2)=>{const cell2=this.getCellCf(unitId,subUnitId,row2,col2);if(cell2){const ruleItem=cell2.cfList.find(item=>item.cfId===rule.cfId);ruleItem&&(ruleItem.isDirty=!0)}},"handleCell");row!==void 0&&col!==void 0?(handleCell(row,col),this._markDirty$.next({rule,unitId,subUnitId})):(rule.ranges.forEach(range=>{core.Range.foreach(range,(row2,col2)=>{handleCell(row2,col2)})}),this._markDirty$.next({rule,unitId,subUnitId}))}};__name(_ConditionalFormattingViewModel,"ConditionalFormattingViewModel");let ConditionalFormattingViewModel=_ConditionalFormattingViewModel;const feedback={mistake:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%227.03704%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.87359%206.87332C6.6146%207.13231%206.6146%207.55221%206.87359%207.8112L9.062%209.99961L6.87356%2012.188C6.61457%2012.447%206.61457%2012.8669%206.87356%2013.1259C7.13255%2013.3849%207.55245%2013.3849%207.81144%2013.1259L9.99987%2010.9375L12.1882%2013.1258C12.4472%2013.3848%2012.8671%2013.3848%2013.1261%2013.1258C13.3851%2012.8669%2013.3851%2012.447%2013.1261%2012.188L10.9378%209.99961L13.1261%207.81127C13.3851%207.55228%2013.3851%207.13238%2013.1261%206.87339C12.8671%206.61441%2012.4472%206.61441%2012.1882%206.87339L9.99987%209.06173L7.81147%206.87332C7.55248%206.61433%207.13257%206.61433%206.87359%206.87332Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A",warn:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%227.03704%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3Cpath%20d%3D%22M9.16817%206.67735C9.16646%206.61745%209.1656%206.5875%209.16653%206.56236C9.18103%206.16817%209.49136%205.84883%209.88497%205.82306C9.91008%205.82141%209.94004%205.82141%209.99996%205.82141V5.82141C10.0599%205.82141%2010.0899%205.82141%2010.115%205.82306C10.5086%205.84883%2010.8189%206.16817%2010.8334%206.56236C10.8343%206.5875%2010.8335%206.61745%2010.8318%206.67735L10.7043%2011.131C10.6934%2011.5121%2010.3812%2011.8154%209.99995%2011.8154V11.8154C9.61866%2011.8154%209.30655%2011.5121%209.29564%2011.131L9.16817%206.67735Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3Crect%20x%3D%229.31488%22%20y%3D%2212.8086%22%20width%3D%221.37006%22%20height%3D%221.37006%22%20rx%3D%220.685032%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A",correct:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M17.037%2010C17.037%2013.8865%2013.8864%2017.0371%209.99999%2017.0371C6.11354%2017.0371%202.96295%2013.8865%202.96295%2010C2.96295%206.1136%206.11354%202.96301%209.99999%202.96301C13.8864%202.96301%2017.037%206.1136%2017.037%2010Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3Cpath%20d%3D%22M13.9239%207.17477C13.6638%206.91472%2013.2422%206.91472%2012.9821%207.17477L8.74433%2011.4126L7.01786%209.6861C6.75781%209.42606%206.33619%209.42606%206.07614%209.6861C5.81609%209.94615%205.81609%2010.3678%206.07614%2010.6278L8.27349%2012.8252C8.53354%2013.0852%208.95516%2013.0852%209.21521%2012.8252L9.2195%2012.8209L13.9239%208.1165C14.1839%207.85645%2014.1839%207.43482%2013.9239%207.17477Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A"},star={starEmpty:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.8451%207.0699%2012.2165%207.33978%2012.6421%207.36863L16.2362%207.61233C16.5693%207.63492%2016.7048%208.05202%2016.4486%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.215%2011.2859%2013.319%2011.6996L14.1979%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6418%2015.5971L10.5908%2013.6817C10.2296%2013.4549%209.77045%2013.4549%209.40924%2013.6817L6.35828%2015.5971C6.07553%2015.7746%205.72072%2015.5168%205.80217%2015.1931L6.68105%2011.6996C6.7851%2011.2859%206.64322%2010.8493%206.31592%2010.5758L3.55145%208.26607C3.29525%208.05202%203.43078%207.63492%203.76386%207.61233L7.358%207.36863C7.78352%207.33978%208.15498%207.0699%208.31391%206.67412L9.65633%203.3312C9.78074%203.0214%2010.2193%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A",starIncomplete:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_177)%22%3E%0A%3Cmask%20id%3D%22mask0_613_177%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%2210%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2220%22%3E%0A%3Crect%20x%3D%2210.3704%22%20y%3D%220.37037%22%20width%3D%229.25926%22%20height%3D%2219.2593%22%20fill%3D%22%23C4C4C4%22%20stroke%3D%22%23F7D564%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fmask%3E%0A%3Cg%20mask%3D%22url(%23mask0_613_177)%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.845%207.0699%2012.2165%207.33978%2012.642%207.36863L16.2361%207.61233C16.5692%207.63492%2016.7047%208.05202%2016.4485%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.2149%2011.2859%2013.3189%2011.6996L14.1978%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6417%2015.5971L10.5908%2013.6817C10.2295%2013.4549%209.77039%2013.4549%209.40918%2013.6817L6.35822%2015.5971C6.07547%2015.7746%205.72066%2015.5168%205.80211%2015.1931L6.68098%2011.6996C6.78504%2011.2859%206.64316%2010.8493%206.31586%2010.5758L3.55139%208.26607C3.29519%208.05202%203.43072%207.63492%203.7638%207.61233L7.35793%207.36863C7.78346%207.33978%208.15491%207.0699%208.31385%206.67412L9.65627%203.3312C9.78068%203.0214%2010.2192%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fg%3E%0A%3Cmask%20id%3D%22mask1_613_177%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2220%22%3E%0A%3Crect%20width%3D%2210%22%20height%3D%2220%22%20fill%3D%22%23C4C4C4%22%2F%3E%0A%3C%2Fmask%3E%0A%3Cg%20mask%3D%22url(%23mask1_613_177)%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.845%207.0699%2012.2165%207.33978%2012.642%207.36863L16.2361%207.61233C16.5692%207.63492%2016.7047%208.05202%2016.4485%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.2149%2011.2859%2013.3189%2011.6996L14.1978%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6417%2015.5971L10.5908%2013.6817C10.2295%2013.4549%209.77039%2013.4549%209.40918%2013.6817L6.35822%2015.5971C6.07547%2015.7746%205.72066%2015.5168%205.80211%2015.1931L6.68098%2011.6996C6.78504%2011.2859%206.64316%2010.8493%206.31586%2010.5758L3.55139%208.26607C3.29519%208.05202%203.43072%207.63492%203.7638%207.61233L7.35793%207.36863C7.78346%207.33978%208.15491%207.0699%208.31385%206.67412L9.65627%203.3312C9.78068%203.0214%2010.2192%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_177%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A",starFull:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.8451%207.0699%2012.2165%207.33978%2012.6421%207.36863L16.2362%207.61233C16.5693%207.63492%2016.7048%208.05202%2016.4486%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.215%2011.2859%2013.319%2011.6996L14.1979%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6418%2015.5971L10.5908%2013.6817C10.2296%2013.4549%209.77045%2013.4549%209.40924%2013.6817L6.35828%2015.5971C6.07553%2015.7746%205.72072%2015.5168%205.80217%2015.1931L6.68105%2011.6996C6.7851%2011.2859%206.64322%2010.8493%206.31592%2010.5758L3.55145%208.26607C3.29525%208.05202%203.43078%207.63492%203.76386%207.61233L7.358%207.36863C7.78352%207.33978%208.15498%207.0699%208.31391%206.67412L9.65633%203.3312C9.78074%203.0214%2010.2193%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A"},progress={progress0:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A",progress25:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M16.2963%209.99991C16.2963%209.17307%2016.1335%208.35432%2015.8171%207.59042C15.5006%206.82652%2015.0369%206.13242%2014.4522%205.54776C13.8675%204.96309%2013.1734%204.49931%2012.4095%204.18289C11.6456%203.86647%2010.8269%203.70361%2010%203.70361L10%209.99991H16.2963Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A",progress50:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M10%2016.2962C11.6699%2016.2962%2013.2714%2015.6328%2014.4522%2014.4521C15.633%2013.2713%2016.2963%2011.6698%2016.2963%209.99991C16.2963%208.33003%2015.633%206.72854%2014.4522%205.54776C13.2714%204.36697%2011.6699%203.70361%2010%203.70361L10%209.99991L10%2016.2962Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A",progress75:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M3.70374%209.99991C3.70374%2011.2452%204.07301%2012.4625%204.76485%2013.4979C5.4567%2014.5334%206.44005%2015.3404%207.59054%2015.8169C8.74104%2016.2935%2010.007%2016.4182%2011.2284%2016.1752C12.4497%2015.9323%2013.5716%2015.3326%2014.4522%2014.4521C15.3327%2013.5715%2015.9324%2012.4496%2016.1753%2011.2283C16.4183%2010.0069%2016.2936%208.74092%2015.8171%207.59042C15.3405%206.43992%2014.5335%205.45658%2013.4981%204.76473C12.4626%204.07288%2011.2453%203.70361%2010%203.70361L10%209.99991L3.70374%209.99991Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A",progress100:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99991%22%20r%3D%226.2963%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A"},signal={signal0:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A",signal25:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A",signal50:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A",signal75:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A",signal100:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93933%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70447%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A"},feeling={guffaw:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M16.887%2010C16.887%2013.8037%2013.8036%2016.8871%209.99999%2016.8871C6.19638%2016.8871%203.11295%2013.8037%203.11295%2010C3.11295%206.19644%206.19638%203.11301%209.99999%203.11301C13.8036%203.11301%2016.887%206.19644%2016.887%2010Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M12.5355%2013.5821C13.0482%2013.1841%2013.3951%2012.6107%2013.5405%2012.0327C13.5934%2011.8226%2013.5051%2011.6349%2013.3518%2011.5331C13.2036%2011.4346%2013.0031%2011.4203%2012.8265%2011.5131C11.0615%2012.4407%208.94609%2012.4427%207.1828%2011.513C7.00629%2011.4199%206.80602%2011.4343%206.65798%2011.5329C6.50518%2011.6346%206.41701%2011.8217%206.46844%2012.0312C6.61029%2012.609%206.95079%2013.1833%207.46449%2013.5821C8.14361%2014.1093%209.05608%2014.3999%2010%2014.3999C10.9439%2014.3999%2011.8564%2014.1093%2012.5355%2013.5821Z%22%20fill%3D%22white%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.4%22%2F%3E%0A%3C%2Fsvg%3E%0A",smile:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2011.8518C7.03705%2011.8518%207.77779%2013.7037%2010%2013.7037C12.2222%2013.7037%2012.963%2011.8518%2012.963%2011.8518%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A",noninductive:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.9259%22%20width%3D%221.48148%22%20height%3D%221.11111%22%20rx%3D%220.555556%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.9259%22%20width%3D%221.48148%22%20height%3D%221.11111%22%20rx%3D%220.555556%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2012.5927C7.03705%2012.5927%208.14816%2012.5927%2010.3704%2012.5927C12.5926%2012.5927%2012.963%2012.5927%2012.963%2012.5927%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A",dissatisfied:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2013.7037C7.03705%2013.7037%207.77779%2011.8519%2010%2011.8519C12.2222%2011.8519%2012.963%2013.7037%2012.963%2013.7037%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A",impatient:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.47573%2011.731C6.96306%2012.129%206.61613%2012.7024%206.47071%2013.2804C6.41784%2013.4905%206.50617%2013.6782%206.65942%2013.78C6.80761%2013.8785%207.00813%2013.8928%207.18477%2013.8C8.9498%2012.8724%2011.0652%2012.8704%2012.8285%2013.8002C13.005%2013.8932%2013.2052%2013.8788%2013.3533%2013.7802C13.5061%2013.6785%2013.5942%2013.4914%2013.5428%2013.2819C13.401%2012.7041%2013.0605%2012.1298%2012.5468%2011.731C11.8676%2011.2038%2010.9552%2010.9132%2010.0112%2010.9132C9.06732%2010.9132%208.15485%2011.2038%207.47573%2011.731Z%22%20fill%3D%22white%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.4%22%2F%3E%0A%3C%2Fsvg%3E%0A"},arrow={"down-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M8.90467%203.99244C8.84611%204.1338%208.84611%204.31301%208.84611%204.67143V13.716L5.92068%2010.7906C5.66724%2010.5371%205.54052%2010.4104%205.39916%2010.3519C5.21067%2010.2738%204.9989%2010.2738%204.81041%2010.3519C4.66905%2010.4104%204.54233%2010.5371%204.28889%2010.7906C4.03545%2011.044%203.90873%2011.1707%203.85018%2011.3121C3.77211%2011.5006%203.77211%2011.7124%203.85018%2011.9008C3.90873%2012.0422%204.03545%2012.1689%204.28889%2012.4224L9.03476%2017.1682C9.07839%2017.2127%209.12737%2017.2617%209.18231%2017.3166L9.18239%2017.3167L9.18241%2017.3167C9.40545%2017.5398%209.53035%2017.6647%209.65346%2017.7313C9.67085%2017.7408%209.6882%2017.7492%209.70577%2017.7564C9.89425%2017.8345%2010.106%2017.8345%2010.2945%2017.7564C10.4359%2017.6979%2010.5626%2017.5712%2010.816%2017.3177C10.8986%2017.2352%2010.9677%2017.1661%2011.0253%2017.1056L15.7095%2012.4214L15.7095%2012.4213C15.963%2012.1679%2016.0897%2012.0412%2016.1482%2011.8998C16.2263%2011.7114%2016.2263%2011.4996%2016.1482%2011.3111C16.0897%2011.1697%2015.963%2011.043%2015.7095%2010.7896C15.4561%2010.5361%2015.3294%2010.4094%2015.188%2010.3509C14.9995%2010.2728%2014.7878%2010.2728%2014.5993%2010.3509C14.4579%2010.4094%2014.3312%2010.5361%2014.0778%2010.7896L14.0777%2010.7896L11.1538%2013.7135V4.67142C11.1538%204.31301%2011.1538%204.1338%2011.0953%203.99244C11.0172%203.80395%2010.8674%203.6542%2010.6789%203.57613C10.5376%203.51758%2010.3584%203.51758%209.99996%203.51758C9.64154%203.51758%209.46233%203.51758%209.32097%203.57613C9.13249%203.6542%208.98274%203.80395%208.90467%203.99244Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A","right-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.32508%2011.7609C3.46644%2011.8194%203.64565%2011.8194%204.00407%2011.8194H13.049L10.1235%2014.745C9.87002%2014.9984%209.7433%2015.1251%209.68475%2015.2665C9.60668%2015.455%209.60668%2015.6668%209.68475%2015.8552C9.7433%2015.9966%209.87002%2016.1233%2010.1235%2016.3768C10.3769%2016.6302%2010.5036%2016.7569%2010.645%2016.8155C10.8335%2016.8935%2011.0452%2016.8935%2011.2337%2016.8155C11.3751%2016.7569%2011.5018%2016.6302%2011.7552%2016.3768L16.5105%2011.6215C16.5524%2011.5803%2016.5983%2011.5344%2016.6493%2011.4834L16.6495%2011.4831C16.8561%2011.2765%2016.9785%2011.1542%2017.0484%2011.0394C17.0648%2011.0128%2017.0782%2010.9866%2017.0893%2010.9599C17.1674%2010.7714%2017.1674%2010.5596%2017.0893%2010.3711C17.0308%2010.2298%2016.904%2010.1031%2016.6506%209.84962C16.5685%209.76752%2016.4997%209.69872%2016.4394%209.64123L11.7542%204.95601C11.5007%204.70257%2011.374%204.57585%2011.2327%204.5173C11.0442%204.43923%2010.8324%204.43923%2010.6439%204.5173C10.5026%204.57585%2010.3758%204.70257%2010.1224%204.95601L10.1224%204.95601C9.86895%205.20945%209.74223%205.33617%209.68368%205.47753C9.60561%205.66601%209.60561%205.87779%209.68368%206.06627C9.74223%206.20764%209.86895%206.33436%2010.1224%206.5878L13.0463%209.51175H4.00407C3.64565%209.51175%203.46644%209.51175%203.32508%209.5703C3.1366%209.64837%202.98685%209.79812%202.90877%209.98661C2.85022%2010.128%202.85022%2010.3072%202.85022%2010.6656C2.85022%2011.024%202.85022%2011.2032%202.90877%2011.3446C2.98685%2011.5331%203.1366%2011.6828%203.32508%2011.7609Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","up-green":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.0936%2017.3406C11.1522%2017.1992%2011.1522%2017.02%2011.1522%2016.6616V7.61701L14.0776%2010.5424C14.3311%2010.7959%2014.4578%2010.9226%2014.5991%2010.9811C14.7876%2011.0592%2014.9994%2011.0592%2015.1879%2010.9811C15.3292%2010.9226%2015.456%2010.7959%2015.7094%2010.5424C15.9628%2010.289%2016.0896%2010.1623%2016.1481%2010.0209C16.2262%209.83243%2016.2262%209.62066%2016.1481%209.43217C16.0896%209.29081%2015.9628%209.16409%2015.7094%208.91065L10.9645%204.16576C10.9207%204.12105%2010.8714%204.07178%2010.8161%204.01648L10.8159%204.0163C10.5916%203.792%2010.4666%203.66696%2010.3428%203.60058C10.3261%203.59154%2010.3094%203.58358%2010.2925%203.57658C10.104%203.49851%209.89226%203.49851%209.70378%203.57658C9.56242%203.63514%209.4357%203.76186%209.18226%204.0153C9.09955%204.09801%209.03034%204.16722%208.97258%204.22785L4.28878%208.91166C4.03534%209.1651%203.90862%209.29182%203.85006%209.43318C3.77199%209.62166%203.77199%209.83344%203.85006%2010.0219C3.90862%2010.1633%204.03534%2010.29%204.28878%2010.5434C4.54221%2010.7969%204.66893%2010.9236%204.8103%2010.9822C4.99878%2011.0602%205.21056%2011.0602%205.39904%2010.9822C5.5404%2010.9236%205.66712%2010.7969%205.92056%2010.5434L5.92056%2010.5434L8.84449%207.61951V16.6616C8.84449%2017.02%208.84449%2017.1992%208.90305%2017.3406C8.98112%2017.5291%209.13087%2017.6788%209.31935%2017.7569C9.46072%2017.8154%209.63992%2017.8154%209.99834%2017.8154C10.3568%2017.8154%2010.536%2017.8154%2010.6773%2017.7569C10.8658%2017.6788%2011.0156%2017.5291%2011.0936%2017.3406Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndDown-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.5062%206.72126C4.56476%206.86262%204.69148%206.98934%204.94492%207.24278L11.3404%2013.6382L7.20313%2013.6382C6.84471%2013.6382%206.66551%2013.6382%206.52414%2013.6968C6.33566%2013.7749%206.18591%2013.9246%206.10784%2014.1131C6.04928%2014.2545%206.04928%2014.4337%206.04928%2014.7921C6.04928%2015.1505%206.04928%2015.3297%206.10784%2015.4711C6.18591%2015.6596%206.33566%2015.8093%206.52414%2015.8874C6.66551%2015.9459%206.84471%2015.9459%207.20313%2015.9459L13.9194%2015.9459C13.9805%2015.9465%2014.0484%2015.9465%2014.1243%2015.9465H14.1243C14.4353%2015.9465%2014.6114%2015.9465%2014.7449%2015.9082C14.7659%2015.9023%2014.7859%2015.8954%2014.8052%2015.8874C14.9937%2015.8093%2015.1434%2015.6596%2015.2215%2015.4711C15.2801%2015.3297%2015.2801%2015.1505%2015.2801%2014.7921C15.2801%2014.6767%2015.2801%2014.5799%2015.2781%2014.497L15.2781%207.86957C15.2781%207.51115%2015.2781%207.33194%2015.2195%207.19058C15.1415%207.0021%2014.9917%206.85235%2014.8032%206.77428C14.6619%206.71572%2014.4827%206.71572%2014.1243%206.71572C13.7658%206.71572%2013.5866%206.71572%2013.4453%206.77428C13.2568%206.85235%2013.107%207.0021%2013.029%207.19058C12.9704%207.33194%2012.9704%207.51115%2012.9704%207.86957L12.9704%2012.0047L6.5767%205.61099C6.32326%205.35755%206.19654%205.23083%206.05518%205.17228C5.8667%205.09421%205.65492%205.09421%205.46644%205.17228C5.32508%205.23083%205.19836%205.35755%204.94492%205.61099C4.69148%205.86443%204.56476%205.99115%204.5062%206.13251C4.42813%206.32099%204.42813%206.53277%204.5062%206.72126Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndUp-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.05431%2016.1597C6.19567%2016.1012%206.32239%2015.9745%206.57583%2015.721L12.9712%209.32568L12.9712%2013.4626C12.9712%2013.821%2012.9712%2014.0002%2013.0297%2014.1416C13.1078%2014.3301%2013.2576%2014.4798%2013.446%2014.5579C13.5874%2014.6164%2013.7666%2014.6164%2014.125%2014.6164C14.4834%2014.6164%2014.6626%2014.6164%2014.804%2014.5579C14.9925%2014.4798%2015.1422%2014.3301%2015.2203%2014.1416C15.2789%2014.0002%2015.2789%2013.821%2015.2789%2013.4626L15.2789%206.75233C15.2795%206.68972%2015.2795%206.62004%2015.2795%206.54182L15.2795%206.54157C15.2795%206.22585%2015.2795%206.04918%2015.2395%205.91495C15.2339%205.89605%2015.2276%205.878%2015.2203%205.86053C15.1422%205.67204%2014.9925%205.52229%2014.804%205.44422C14.6626%205.38567%2014.4834%205.38567%2014.125%205.38567L14.125%205.38567C14.0075%205.38567%2013.9093%205.38567%2013.8254%205.38773L7.20256%205.38773C6.84414%205.38773%206.66493%205.38773%206.52357%205.44628C6.33509%205.52436%206.18534%205.6741%206.10727%205.86259C6.04871%206.00395%206.04871%206.18315%206.04871%206.54156V6.54157L6.04871%206.54159C6.04871%206.9%206.04871%207.0792%206.10727%207.22056C6.18534%207.40905%206.33509%207.55879%206.52357%207.63687C6.66493%207.69542%206.84414%207.69542%207.20256%207.69542H11.3379L4.94405%2014.0892C4.69061%2014.3427%204.56389%2014.4694%204.50533%2014.6108C4.42726%2014.7992%204.42726%2015.011%204.50533%2015.1995C4.56389%2015.3409%204.69061%2015.4676%204.94405%2015.721C5.19749%2015.9745%205.32421%2016.1012%205.46557%2016.1597C5.65405%2016.2378%205.86583%2016.2378%206.05431%2016.1597Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","down-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M8.90467%203.99244C8.84611%204.1338%208.84611%204.31301%208.84611%204.67143V13.716L5.92068%2010.7906C5.66724%2010.5371%205.54052%2010.4104%205.39916%2010.3519C5.21067%2010.2738%204.9989%2010.2738%204.81041%2010.3519C4.66905%2010.4104%204.54233%2010.5371%204.28889%2010.7906C4.03545%2011.044%203.90873%2011.1707%203.85018%2011.3121C3.77211%2011.5006%203.77211%2011.7124%203.85018%2011.9008C3.90873%2012.0422%204.03545%2012.1689%204.28889%2012.4224L9.03476%2017.1682C9.07839%2017.2127%209.12737%2017.2617%209.18231%2017.3166L9.18239%2017.3167L9.18241%2017.3167C9.40545%2017.5398%209.53035%2017.6647%209.65346%2017.7313C9.67085%2017.7408%209.6882%2017.7492%209.70577%2017.7564C9.89425%2017.8345%2010.106%2017.8345%2010.2945%2017.7564C10.4359%2017.6979%2010.5626%2017.5712%2010.816%2017.3177C10.8986%2017.2352%2010.9677%2017.1661%2011.0253%2017.1056L15.7095%2012.4214L15.7095%2012.4213C15.963%2012.1679%2016.0897%2012.0412%2016.1482%2011.8998C16.2263%2011.7114%2016.2263%2011.4996%2016.1482%2011.3111C16.0897%2011.1697%2015.963%2011.043%2015.7095%2010.7896C15.4561%2010.5361%2015.3294%2010.4094%2015.188%2010.3509C14.9995%2010.2728%2014.7878%2010.2728%2014.5993%2010.3509C14.4579%2010.4094%2014.3312%2010.5361%2014.0778%2010.7896L14.0777%2010.7896L11.1538%2013.7135V4.67142C11.1538%204.31301%2011.1538%204.1338%2011.0953%203.99244C11.0172%203.80395%2010.8674%203.6542%2010.6789%203.57613C10.5376%203.51758%2010.3584%203.51758%209.99996%203.51758C9.64154%203.51758%209.46233%203.51758%209.32097%203.57613C9.13249%203.6542%208.98274%203.80395%208.90467%203.99244Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","right-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.32508%2011.7609C3.46644%2011.8194%203.64565%2011.8194%204.00407%2011.8194H13.049L10.1235%2014.745C9.87002%2014.9984%209.7433%2015.1251%209.68475%2015.2665C9.60668%2015.455%209.60668%2015.6668%209.68475%2015.8552C9.7433%2015.9966%209.87002%2016.1233%2010.1235%2016.3768C10.3769%2016.6302%2010.5036%2016.7569%2010.645%2016.8155C10.8335%2016.8935%2011.0452%2016.8935%2011.2337%2016.8155C11.3751%2016.7569%2011.5018%2016.6302%2011.7552%2016.3768L16.5105%2011.6215C16.5524%2011.5803%2016.5983%2011.5344%2016.6493%2011.4834L16.6495%2011.4831C16.8561%2011.2765%2016.9785%2011.1542%2017.0484%2011.0394C17.0648%2011.0128%2017.0782%2010.9866%2017.0893%2010.9599C17.1674%2010.7714%2017.1674%2010.5596%2017.0893%2010.3711C17.0308%2010.2298%2016.904%2010.1031%2016.6506%209.84962C16.5685%209.76752%2016.4997%209.69872%2016.4394%209.64123L11.7542%204.95601C11.5007%204.70257%2011.374%204.57585%2011.2327%204.5173C11.0442%204.43923%2010.8324%204.43923%2010.6439%204.5173C10.5026%204.57585%2010.3758%204.70257%2010.1224%204.95601L10.1224%204.95601C9.86895%205.20945%209.74223%205.33617%209.68368%205.47753C9.60561%205.66601%209.60561%205.87779%209.68368%206.06627C9.74223%206.20764%209.86895%206.33436%2010.1224%206.5878L13.0463%209.51175H4.00407C3.64565%209.51175%203.46644%209.51175%203.32508%209.5703C3.1366%209.64837%202.98685%209.79812%202.90877%209.98661C2.85022%2010.128%202.85022%2010.3072%202.85022%2010.6656C2.85022%2011.024%202.85022%2011.2032%202.90877%2011.3446C2.98685%2011.5331%203.1366%2011.6828%203.32508%2011.7609Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","up-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.0936%2017.3406C11.1522%2017.1992%2011.1522%2017.02%2011.1522%2016.6616V7.61701L14.0776%2010.5424C14.3311%2010.7959%2014.4578%2010.9226%2014.5991%2010.9811C14.7876%2011.0592%2014.9994%2011.0592%2015.1879%2010.9811C15.3292%2010.9226%2015.456%2010.7959%2015.7094%2010.5424C15.9628%2010.289%2016.0896%2010.1623%2016.1481%2010.0209C16.2262%209.83243%2016.2262%209.62066%2016.1481%209.43217C16.0896%209.29081%2015.9628%209.16409%2015.7094%208.91065L10.9645%204.16576C10.9207%204.12105%2010.8714%204.07178%2010.8161%204.01648L10.8159%204.0163C10.5916%203.792%2010.4666%203.66696%2010.3428%203.60058C10.3261%203.59154%2010.3094%203.58358%2010.2925%203.57658C10.104%203.49851%209.89226%203.49851%209.70378%203.57658C9.56242%203.63514%209.4357%203.76186%209.18226%204.0153C9.09955%204.09801%209.03034%204.16722%208.97258%204.22785L4.28878%208.91166C4.03534%209.1651%203.90862%209.29182%203.85006%209.43318C3.77199%209.62166%203.77199%209.83344%203.85006%2010.0219C3.90862%2010.1633%204.03534%2010.29%204.28878%2010.5434C4.54221%2010.7969%204.66893%2010.9236%204.8103%2010.9822C4.99878%2011.0602%205.21056%2011.0602%205.39904%2010.9822C5.5404%2010.9236%205.66712%2010.7969%205.92056%2010.5434L5.92056%2010.5434L8.84449%207.61951V16.6616C8.84449%2017.02%208.84449%2017.1992%208.90305%2017.3406C8.98112%2017.5291%209.13087%2017.6788%209.31935%2017.7569C9.46072%2017.8154%209.63992%2017.8154%209.99834%2017.8154C10.3568%2017.8154%2010.536%2017.8154%2010.6773%2017.7569C10.8658%2017.6788%2011.0156%2017.5291%2011.0936%2017.3406Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndDown-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.5062%206.72126C4.56476%206.86262%204.69148%206.98934%204.94492%207.24278L11.3404%2013.6382L7.20313%2013.6382C6.84471%2013.6382%206.66551%2013.6382%206.52414%2013.6968C6.33566%2013.7749%206.18591%2013.9246%206.10784%2014.1131C6.04928%2014.2545%206.04928%2014.4337%206.04928%2014.7921C6.04928%2015.1505%206.04928%2015.3297%206.10784%2015.4711C6.18591%2015.6596%206.33566%2015.8093%206.52414%2015.8874C6.66551%2015.9459%206.84471%2015.9459%207.20313%2015.9459L13.9194%2015.9459C13.9805%2015.9465%2014.0484%2015.9465%2014.1243%2015.9465H14.1243C14.4353%2015.9465%2014.6114%2015.9465%2014.7449%2015.9082C14.7659%2015.9023%2014.7859%2015.8954%2014.8052%2015.8874C14.9937%2015.8093%2015.1434%2015.6596%2015.2215%2015.4711C15.2801%2015.3297%2015.2801%2015.1505%2015.2801%2014.7921C15.2801%2014.6767%2015.2801%2014.5799%2015.2781%2014.497L15.2781%207.86957C15.2781%207.51115%2015.2781%207.33194%2015.2195%207.19058C15.1415%207.0021%2014.9917%206.85235%2014.8032%206.77428C14.6619%206.71572%2014.4827%206.71572%2014.1243%206.71572C13.7658%206.71572%2013.5866%206.71572%2013.4453%206.77428C13.2568%206.85235%2013.107%207.0021%2013.029%207.19058C12.9704%207.33194%2012.9704%207.51115%2012.9704%207.86957L12.9704%2012.0047L6.5767%205.61099C6.32326%205.35755%206.19654%205.23083%206.05518%205.17228C5.8667%205.09421%205.65492%205.09421%205.46644%205.17228C5.32508%205.23083%205.19836%205.35755%204.94492%205.61099C4.69148%205.86443%204.56476%205.99115%204.5062%206.13251C4.42813%206.32099%204.42813%206.53277%204.5062%206.72126Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndUp-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.05431%2016.1597C6.19567%2016.1012%206.32239%2015.9745%206.57583%2015.721L12.9712%209.32568L12.9712%2013.4626C12.9712%2013.821%2012.9712%2014.0002%2013.0297%2014.1416C13.1078%2014.3301%2013.2576%2014.4798%2013.446%2014.5579C13.5874%2014.6164%2013.7666%2014.6164%2014.125%2014.6164C14.4834%2014.6164%2014.6626%2014.6164%2014.804%2014.5579C14.9925%2014.4798%2015.1422%2014.3301%2015.2203%2014.1416C15.2789%2014.0002%2015.2789%2013.821%2015.2789%2013.4626L15.2789%206.75233C15.2795%206.68972%2015.2795%206.62004%2015.2795%206.54182L15.2795%206.54157C15.2795%206.22585%2015.2795%206.04918%2015.2395%205.91495C15.2339%205.89605%2015.2276%205.878%2015.2203%205.86053C15.1422%205.67204%2014.9925%205.52229%2014.804%205.44422C14.6626%205.38567%2014.4834%205.38567%2014.125%205.38567L14.125%205.38567C14.0075%205.38567%2013.9093%205.38567%2013.8254%205.38773L7.20256%205.38773C6.84414%205.38773%206.66493%205.38773%206.52357%205.44628C6.33509%205.52436%206.18534%205.6741%206.10727%205.86259C6.04871%206.00395%206.04871%206.18315%206.04871%206.54156V6.54157L6.04871%206.54159C6.04871%206.9%206.04871%207.0792%206.10727%207.22056C6.18534%207.40905%206.33509%207.55879%206.52357%207.63687C6.66493%207.69542%206.84414%207.69542%207.20256%207.69542H11.3379L4.94405%2014.0892C4.69061%2014.3427%204.56389%2014.4694%204.50533%2014.6108C4.42726%2014.7992%204.42726%2015.011%204.50533%2015.1995C4.56389%2015.3409%204.69061%2015.4676%204.94405%2015.721C5.19749%2015.9745%205.32421%2016.1012%205.46557%2016.1597C5.65405%2016.2378%205.86583%2016.2378%206.05431%2016.1597Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A"},shape={cross:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%223.70374%22%20y%3D%228.14795%22%20width%3D%2212.5926%22%20height%3D%223.7037%22%20rx%3D%220.740741%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",up:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M9.44533%205.81157C9.74012%205.47858%2010.2598%205.47858%2010.5546%205.81157L16.2868%2012.2867C16.71%2012.7647%2016.3706%2013.5184%2015.7322%2013.5184H4.26776C3.62933%2013.5184%203.28995%2012.7647%203.71313%2012.2867L9.44533%205.81157Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A",down:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.5547%2014.1884C10.2599%2014.5214%209.74019%2014.5214%209.4454%2014.1884L3.71321%207.71335C3.29002%207.23532%203.6294%206.48161%204.26784%206.48161L15.7322%206.48161C16.3707%206.48161%2016.7101%207.23532%2016.2869%207.71335L10.5547%2014.1884Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A","rhomboid-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M2.1415%2011.1984C1.8412%2010.9074%201.8412%2010.4256%202.1415%2010.1346L9.48467%203.01785C9.77196%202.73942%2010.2284%202.73942%2010.5157%203.01786L17.8586%2010.1346C18.1589%2010.4256%2018.1589%2010.9074%2017.8586%2011.1984L10.5157%2018.3151C10.2284%2018.5936%209.77196%2018.5936%209.48467%2018.3152L2.1415%2011.1984Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A","rhomboid-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M2.1415%2011.1984C1.8412%2010.9074%201.8412%2010.4256%202.1415%2010.1346L9.48467%203.01785C9.77196%202.73942%2010.2284%202.73942%2010.5157%203.01786L17.8586%2010.1346C18.1589%2010.4256%2018.1589%2010.9074%2017.8586%2011.1984L10.5157%2018.3151C10.2284%2018.5936%209.77196%2018.5936%209.48467%2018.3152L2.1415%2011.1984Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-greed":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-pink":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FB9D9D%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-black":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22black%22%2F%3E%0A%3C%2Fsvg%3E%0A","triangle-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_237)%22%3E%0A%3Cpath%20d%3D%22M9.32308%204.41301C9.58368%203.82623%2010.4164%203.82623%2010.677%204.413L15.9526%2016.2917C16.1701%2016.7815%2015.8115%2017.3331%2015.2756%2017.3331H4.72454C4.18858%2017.3331%203.83002%2016.7815%204.04756%2016.2917L9.32308%204.41301Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_237%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%20transform%3D%22translate(0%200.666504)%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A","indicate-greed":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A","indicate-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","indicate-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A"},feedback2={mistake2:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.12194%206.33702C4.1805%206.47839%204.30722%206.6051%204.56066%206.85854L8.36822%2010.6661L4.56062%2014.4737C4.30718%2014.7272%204.18046%2014.8539%204.12191%2014.9952C4.04384%2015.1837%204.04384%2015.3955%204.12191%2015.584C4.18046%2015.7253%204.30718%2015.8521%204.56062%2016.1055C4.81406%2016.3589%204.94078%2016.4857%205.08214%2016.5442C5.27062%2016.6223%205.4824%2016.6223%205.67089%2016.5442C5.81225%2016.4857%205.93897%2016.3589%206.19241%2016.1055L10%2012.2979L13.8074%2016.1053C14.0609%2016.3588%2014.1876%2016.4855%2014.329%2016.544C14.5174%2016.6221%2014.7292%2016.6221%2014.9177%2016.544C15.0591%2016.4855%2015.1858%2016.3588%2015.4392%2016.1053L15.4392%2016.1053C15.6927%2015.8519%2015.8194%2015.7252%2015.8779%2015.5838C15.956%2015.3953%2015.956%2015.1835%2015.8779%2014.9951C15.8194%2014.8537%2015.6927%2014.727%2015.4392%2014.4735L15.4392%2014.4735L11.6318%2010.6661L15.4392%206.85872C15.6926%206.60528%2015.8193%206.47856%2015.8779%206.3372C15.956%206.14871%2015.956%205.93694%2015.8779%205.74845C15.8193%205.60709%2015.6926%205.48037%2015.4392%205.22693C15.1857%204.97349%2015.059%204.84677%2014.9177%204.78822C14.7292%204.71015%2014.5174%204.71015%2014.3289%204.78822C14.1876%204.84677%2014.0608%204.97349%2013.8074%205.22693L10%209.03433L6.19244%205.22676C5.939%204.97332%205.81228%204.8466%205.67092%204.78805C5.48244%204.70997%205.27066%204.70997%205.08218%204.78805C4.94082%204.8466%204.8141%204.97332%204.56066%205.22676L4.56066%205.22676C4.30722%205.4802%204.1805%205.60692%204.12194%205.74828C4.04387%205.93676%204.04387%206.14854%204.12194%206.33702Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A",warn2:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M8.49778%205.00963C8.48513%204.56774%208.47881%204.3468%208.56086%204.17746C8.63301%204.02856%208.75124%203.90689%208.89802%203.83052C9.06494%203.74365%209.28597%203.74365%209.72805%203.74365H10.272C10.714%203.74365%2010.9351%203.74365%2011.102%203.83052C11.2488%203.9069%2011.367%204.02856%2011.4392%204.17746C11.5212%204.3468%2011.5149%204.56775%2011.5022%205.00964L11.2644%2013.3173C11.2524%2013.737%2011.2464%2013.9468%2011.1609%2014.1065C11.0857%2014.2471%2010.9687%2014.3609%2010.826%2014.432C10.6639%2014.5129%2010.454%2014.5129%2010.0342%2014.5129H9.96582C9.54601%2014.5129%209.33611%2014.5129%209.17397%2014.432C9.0313%2014.3609%208.91426%2014.2471%208.83904%2014.1065C8.75357%2013.9468%208.74756%2013.737%208.73555%2013.3173L8.49778%205.00963Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3Crect%20x%3D%228.76917%22%20y%3D%2215.2817%22%20width%3D%222.46154%22%20height%3D%222.46154%22%20rx%3D%220.769231%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",correct2:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_248)%22%3E%0A%3Cpath%20d%3D%22M15.689%205.69723C15.5476%205.75578%2015.4209%205.8825%2015.1675%206.13594L7.82436%2013.4791L4.83279%2010.4875C4.57935%2010.2341%204.45263%2010.1073%204.31127%2010.0488C4.12278%209.97071%203.91101%209.97071%203.72252%2010.0488C3.58116%2010.1073%203.45444%2010.2341%203.201%2010.4875C2.94756%2010.7409%202.82084%2010.8676%202.76229%2011.009C2.68422%2011.1975%202.68422%2011.4093%202.76229%2011.5978C2.82084%2011.7391%202.94756%2011.8658%203.201%2012.1193L7.0085%2015.9268C7.26194%2016.1802%207.38866%2016.3069%207.53002%2016.3655C7.7185%2016.4436%207.93028%2016.4436%208.11876%2016.3655C8.26013%2016.3069%208.38685%2016.1802%208.64028%2015.9268C8.66387%2015.9032%208.68636%2015.8807%208.7078%2015.8592L16.7993%207.76772C17.0527%207.51428%2017.1794%207.38756%2017.238%207.2462C17.3161%207.05772%2017.3161%206.84594%2017.238%206.65746C17.1794%206.5161%2017.0527%206.38938%2016.7993%206.13594C16.5458%205.8825%2016.4191%205.75578%2016.2777%205.69723C16.0893%205.61915%2015.8775%205.61915%2015.689%205.69723Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_248%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%20transform%3D%22translate(0%200.666504)%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A"},flag={"flag-green":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A","flag-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","flag-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A"},cell={"cell-0":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A","cell-25":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A","cell-50":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A","cell-75":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A","cell-100":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A"},ICON_MAP={feedback,star,progress,signal,feeling,arrow,shape,feedback2,flag,cell},iconGroup=[{title:"sheet.cf.iconSet.direction",group:[{name:"3Arrows",list:[ICON_MAP.arrow["up-green"],ICON_MAP.arrow["right-gold"],ICON_MAP.arrow["down-red"]]},{name:"3ArrowsGray",list:[ICON_MAP.arrow["up-gray"],ICON_MAP.arrow["right-gray"],ICON_MAP.arrow["down-gray"]]},{name:"4Arrows",list:[ICON_MAP.arrow["up-green"],ICON_MAP.arrow["rightAndUp-gold"],ICON_MAP.arrow["rightAndDown-gold"],ICON_MAP.arrow["down-red"]]},{name:"4ArrowsGray",list:[ICON_MAP.arrow["up-gray"],ICON_MAP.arrow["rightAndUp-gray"],ICON_MAP.arrow["rightAndDown-gray"],ICON_MAP.arrow["down-gray"]]},{name:"5Arrows",list:[ICON_MAP.arrow["up-green"],ICON_MAP.arrow["rightAndUp-gold"],ICON_MAP.arrow["right-gold"],ICON_MAP.arrow["rightAndDown-gold"],ICON_MAP.arrow["down-red"]]},{name:"5ArrowsGray",list:[ICON_MAP.arrow["up-gray"],ICON_MAP.arrow["rightAndUp-gray"],ICON_MAP.arrow["right-gray"],ICON_MAP.arrow["rightAndDown-gray"],ICON_MAP.arrow["down-gray"]]},{name:"3Triangles",list:[ICON_MAP.shape.up,ICON_MAP.shape.cross,ICON_MAP.shape.down]}]},{title:"sheet.cf.iconSet.shape",group:[{name:"3TrafficLights1",list:[ICON_MAP.shape["roundness-greed"],ICON_MAP.shape["roundness-gold"],ICON_MAP.shape["roundness-red"]]},{name:"3Signs",list:[ICON_MAP.shape["roundness-greed"],ICON_MAP.shape["triangle-gold"],ICON_MAP.shape["rhomboid-red"]]},{name:"3TrafficLights2",list:[ICON_MAP.shape["indicate-greed"],ICON_MAP.shape["indicate-gold"],ICON_MAP.shape["indicate-red"]]},{name:"4RedToBlack",list:[ICON_MAP.shape["roundness-red"],ICON_MAP.shape["roundness-pink"],ICON_MAP.shape["roundness-gray"],ICON_MAP.shape["roundness-black"]]},{name:"4TrafficLights",list:[ICON_MAP.shape["roundness-greed"],ICON_MAP.shape["roundness-gold"],ICON_MAP.shape["roundness-red"],ICON_MAP.shape["roundness-black"]]}]},{title:"sheet.cf.iconSet.mark",group:[{name:"3Symbols",list:[ICON_MAP.feedback.correct,ICON_MAP.feedback.warn,ICON_MAP.feedback.mistake]},{name:"3Symbols2",list:[ICON_MAP.feedback2.correct2,ICON_MAP.feedback2.warn2,ICON_MAP.feedback2.mistake2]},{name:"3Flags",list:[ICON_MAP.flag["flag-green"],ICON_MAP.flag["flag-gold"],ICON_MAP.flag["flag-red"]]}]},{title:"sheet.cf.iconSet.rank",group:[{name:"4Rating",list:[ICON_MAP.signal.signal25,ICON_MAP.signal.signal50,ICON_MAP.signal.signal75,ICON_MAP.signal.signal100]},{name:"5Rating",list:[ICON_MAP.signal.signal0,ICON_MAP.signal.signal25,ICON_MAP.signal.signal50,ICON_MAP.signal.signal75,ICON_MAP.signal.signal100]},{name:"5Quarters",list:[ICON_MAP.progress.progress100,ICON_MAP.progress.progress75,ICON_MAP.progress.progress50,ICON_MAP.progress.progress25,ICON_MAP.progress.progress0]},{name:"_5Felling",list:[ICON_MAP.feeling.guffaw,ICON_MAP.feeling.smile,ICON_MAP.feeling.noninductive,ICON_MAP.feeling.dissatisfied,ICON_MAP.feeling.impatient]},{name:"5Boxes",list:[ICON_MAP.cell["cell-100"],ICON_MAP.cell["cell-75"],ICON_MAP.cell["cell-50"],ICON_MAP.cell["cell-25"],ICON_MAP.cell["cell-0"]]},{name:"3Stars",list:[ICON_MAP.star.starFull,ICON_MAP.star.starIncomplete,ICON_MAP.star.starEmpty]}]}],iconMap=iconGroup.reduce((result,cur)=>{const{group}=cur;for(const v of group)result[v.name]=v.list;return result},{});for(const key in iconMap){const v=iconMap[key];Object.freeze(v)}const EMPTY_ICON_TYPE="EMPTY_ICON_TYPE",MoveConditionalRuleMutation={type:core.CommandType.MUTATION,id:"sheet.mutation.move-conditional-rule",handler(accessor,params){if(!params)return!1;const{unitId,subUnitId,start,end}=params;return accessor.get(exports.ConditionalFormattingRuleModel).moveRulePriority(unitId,subUnitId,start,end),!0}},MoveConditionalRuleMutationUndoFactory=__name(param=>{const{unitId,subUnitId}=param,undo=anchorUndoFactory(param.start,param.end);if(!undo)return[];const[start,end]=undo;return[{id:MoveConditionalRuleMutation.id,params:{unitId,subUnitId,start,end}}]},"MoveConditionalRuleMutationUndoFactory"),DeleteConditionalRuleMutationUndoFactory=__name((accessor,param)=>{const conditionalFormattingRuleModel=accessor.get(exports.ConditionalFormattingRuleModel),{unitId,subUnitId,cfId}=param,ruleList=[...conditionalFormattingRuleModel.getSubunitRules(unitId,subUnitId)||[]],index=ruleList.findIndex(item=>item.cfId===cfId),beforeRule=ruleList[index-1];if(index>-1){const rule=ruleList[index],result=[{id:AddConditionalRuleMutation.id,params:{unitId,subUnitId,rule:core.Tools.deepClone(rule)}}];if(ruleList.splice(index,1),index!==0){const firstRule=ruleList[0];if(firstRule){const transformResult=transformSupportSymmetryAnchor({id:firstRule.cfId,type:"before"},{id:beforeRule.cfId,type:"after"},ruleList,rule2=>rule2.cfId);if(!transformResult)return result;const[start,end]=transformResult,params={unitId,subUnitId,start,end};result.push({id:MoveConditionalRuleMutation.id,params})}}return result}return[]},"DeleteConditionalRuleMutationUndoFactory"),DeleteConditionalRuleMutation={type:core.CommandType.MUTATION,id:"sheet.mutation.delete-conditional-rule",handler(accessor,params){if(!params)return!1;const{unitId,subUnitId,cfId}=params;return accessor.get(exports.ConditionalFormattingRuleModel).deleteRule(unitId,subUnitId,cfId),!0}},AddConditionalRuleMutationUndoFactory=__name((accessor,param)=>({id:DeleteConditionalRuleMutation.id,params:{unitId:param.unitId,subUnitId:param.subUnitId,cfId:param.rule.cfId}}),"AddConditionalRuleMutationUndoFactory"),AddConditionalRuleMutation={type:core.CommandType.MUTATION,id:"sheet.mutation.add-conditional-rule",handler(accessor,params){if(!params)return!1;const{unitId,subUnitId,rule}=params;return accessor.get(exports.ConditionalFormattingRuleModel).addRule(unitId,subUnitId,rule),!0}},ConditionalFormattingFormulaMarkDirty={type:core.CommandType.MUTATION,id:"sheet.mutation.conditional-formatting-formula-mark-dirty",handler(){return!0}},SetConditionalRuleMutation={type:core.CommandType.MUTATION,id:"sheet.mutation.set-conditional-rule",handler(accessor,params){if(!params)return!1;const{unitId,subUnitId,rule}=params,cfId=params.cfId||params.rule.cfId;return accessor.get(exports.ConditionalFormattingRuleModel).setRule(unitId,subUnitId,rule,cfId),!0}},setConditionalRuleMutationUndoFactory=__name((accessor,param)=>{const conditionalFormattingRuleModel=accessor.get(exports.ConditionalFormattingRuleModel),{unitId,subUnitId}=param,cfId=param.cfId||param.rule.cfId,rule=conditionalFormattingRuleModel.getRule(unitId,subUnitId,cfId);return rule?[{id:SetConditionalRuleMutation.id,params:{unitId,subUnitId,cfId,rule:core.Tools.deepClone(rule)}}]:[]},"setConditionalRuleMutationUndoFactory"),PLUGIN_CONFIG_KEY="ssheets-conditional-formatting.config",defaultPluginConfig={};var __defProp$2=Object.defineProperty,__getOwnPropDesc$2=Object.getOwnPropertyDescriptor,__decorateClass$2=__name((decorators,target,key,kind)=>{for(var result=kind>1?void 0:kind?__getOwnPropDesc$2(target,key):target,i=decorators.length-1,decorator;i>=0;i--)(decorator=decorators[i])&&(result=(kind?decorator(target,key,result):decorator(result))||result);return kind&&result&&__defProp$2(target,key,result),result},"__decorateClass$2"),__decorateParam$2=__name((index,decorator)=>(target,key)=>decorator(target,key,index),"__decorateParam$2"),FormulaResultStatus=(FormulaResultStatus2=>(FormulaResultStatus2[FormulaResultStatus2.NOT_REGISTER=1]="NOT_REGISTER",FormulaResultStatus2[FormulaResultStatus2.SUCCESS=2]="SUCCESS",FormulaResultStatus2[FormulaResultStatus2.WAIT=3]="WAIT",FormulaResultStatus2[FormulaResultStatus2.ERROR=4]="ERROR",FormulaResultStatus2))(FormulaResultStatus||{});const getResultFromFormula=__name(formulaResult=>{const v=formulaResult&&formulaResult[0]&&formulaResult[0][0];return(v==null?void 0:v.t)===core.CellValueType.BOOLEAN?v.v===core.BooleanNumber.TRUE||v.v===!0:v?v.v:!1},"getResultFromFormula");var _a2;exports.ConditionalFormattingFormulaService=(_a2=class extends core.Disposable{constructor(_commandService,_injector,_activeDirtyManagerService,_conditionalFormattingViewModel,_conditionalFormattingRuleModel){super();__publicField(this,"_formulaMap",new Map);__publicField(this,"_cache",new Map);__publicField(this,"_formulaChange$",new rxjs.Subject);__publicField(this,"formulaChange$",this._formulaChange$.asObservable());this._commandService=_commandService,this._injector=_injector,this._activeDirtyManagerService=_activeDirtyManagerService,this._conditionalFormattingViewModel=_conditionalFormattingViewModel,this._conditionalFormattingRuleModel=_conditionalFormattingRuleModel,this._initFormulaCalculationResultChange(),this._initRuleChange(),this._initCache(),this.disposeWithMe(core.toDisposable(()=>{this._cache.clear(),this._formulaMap.clear()}))}dispose(){this._formulaChange$.complete()}_initCache(){const _conditionalFormattingService=this._injector.get(exports.ConditionalFormattingService);this.disposeWithMe(_conditionalFormattingService.ruleComputeStatus$.subscribe(option=>{const{unitId,subUnitId,status,result,cfId}=option;status==="end"&&result&&this._ensureCacheMap(unitId,subUnitId).set(cfId,result)})),this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.subscribe(option=>{if(option.type==="delete"){const{unitId,subUnitId,rule}=option;this._deleteCache(unitId,subUnitId,rule.cfId)}}))}_initRuleChange(){this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.subscribe(option=>{const{unitId,subUnitId,rule}=option;option.type==="delete"&&this._removeFormulaByCfId(unitId,subUnitId,rule.cfId)}))}_initFormulaCalculationResultChange(){this.disposeWithMe(this._commandService.onCommandExecuted(commandInfo=>{if(commandInfo.id===engineFormula.SetFormulaCalculationResultMutation.id){const params=commandInfo.params;for(const unitId in params.unitOtherData)for(const subUnitId in params.unitOtherData[unitId]){const map2=this.getSubUnitFormulaMap(unitId,subUnitId);if(!map2)continue;const cfIdSet=new Set;for(const formulaId in params.unitOtherData[unitId][subUnitId]){const item=map2.getValue(formulaId,["formulaId"]);if(item){const value=getResultFromFormula(params.unitOtherData[unitId][subUnitId][formulaId]);item.result=value,item.status=2,cfIdSet.add(item.cfId)}}for(const cfId of cfIdSet){const rule=this._conditionalFormattingRuleModel.getRule(unitId,subUnitId,cfId);rule&&this._conditionalFormattingViewModel.markRuleDirty(unitId,subUnitId,rule)}}}})),this._activeDirtyManagerService.register(ConditionalFormattingFormulaMarkDirty.id,{commandId:ConditionalFormattingFormulaMarkDirty.id,getDirtyData(commandInfo){return{dirtyUnitOtherFormulaMap:commandInfo.params}}}),this.formulaChange$.pipe(operators.bufferTime(16),operators.filter(list=>!!list.length),operators.map(list=>list.reduce((result,cur)=>{const{unitId,subUnitId,formulaId,formulaText}=cur;return result[unitId]||(result[unitId]={}),result[unitId][subUnitId]||(result[unitId][subUnitId]={}),result[unitId][subUnitId][formulaId]={f:formulaText},result},{}))).subscribe(result=>{for(const unitId in result)for(const subUnitId in result[unitId]){const value=result[unitId][subUnitId],config={unitId,subUnitId,formulaMap:value};this._commandService.executeCommand(engineFormula.SetOtherFormulaMutation.id,config).then(()=>{this._commandService.executeCommand(ConditionalFormattingFormulaMarkDirty.id,{[unitId]:{[subUnitId]:value}})})}})}_ensureSubunitFormulaMap(unitId,subUnitId){let unitMap=this._formulaMap.get(unitId);unitMap||(unitMap=new Map,this._formulaMap.set(unitId,unitMap));let subUnitMap=unitMap.get(subUnitId);return subUnitMap||(subUnitMap=new core.RefAlias([],["formulaId","formulaText"]),unitMap.set(subUnitId,subUnitMap)),subUnitMap}_ensureCacheMap(unitId,subUnitId){let unitMap=this._cache.get(unitId);unitMap||(unitMap=new Map,this._cache.set(unitId,unitMap));let subUnitMap=unitMap.get(subUnitId);return subUnitMap||(subUnitMap=new Map,unitMap.set(subUnitId,subUnitMap)),subUnitMap}_deleteCache(unitId,subUnitId,cfId){const unitCache=this._cache.get(unitId);if(unitCache){const subUnitCache=unitCache.get(subUnitId);subUnitCache&&(cfId?subUnitCache.delete(cfId):subUnitCache.clear())}}getCache(unitId,subUnitId,cfId){return this._ensureCacheMap(unitId,subUnitId).get(cfId)}getSubUnitFormulaMap(unitId,subUnitId){var _a5;return(_a5=this._formulaMap.get(unitId))==null?void 0:_a5.get(subUnitId)}registerFormula(unitId,subUnitId,cfId,formulaText){const subUnitFormulaMap=this._ensureSubunitFormulaMap(unitId,subUnitId),formulaItem=subUnitFormulaMap.getValue(formulaText,["formulaText"]);if(formulaItem){subUnitFormulaMap.getValues().some(item=>item.cfId===cfId)||formulaItem.count++;return}const formulaId=this._createFormulaId(unitId,subUnitId);subUnitFormulaMap.addValue({formulaId,formulaText,cfId,status:3,count:1}),this._formulaChange$.next({unitId,cfId,subUnitId,formulaText,formulaId})}_removeFormulaByCfId(unitId,subUnitId,cfId){const subUnitFormulaMap=this._ensureSubunitFormulaMap(unitId,subUnitId),reduceCount=__name(formulaText=>{const formulaItem=subUnitFormulaMap.getValue(formulaText,["formulaText"]);formulaItem&&(formulaItem.count--,formulaItem.count<=0&&subUnitFormulaMap.deleteValue(formulaText))},"reduceCount"),values=subUnitFormulaMap.getValues().filter(item=>item.cfId===cfId);values.forEach(item=>{reduceCount(item.formulaText)});const formulaIdList=values.map(item=>item.formulaId);this._commandService.executeCommand(engineFormula.RemoveOtherFormulaMutation.id,{unitId,subUnitId,formulaIdList})}getFormulaResult(unitId,subUnitId,formulaText){const map2=this.getSubUnitFormulaMap(unitId,subUnitId);if(!map2)return{status:1};const item=map2.getValue(formulaText,["formulaText"]);return item?item.status===2?{result:item.result,status:2}:item.status===3?{status:3}:{status:4}:{status:1}}_createFormulaId(unitId,subUnitId){return`sheet.cf_${unitId}_${subUnitId}_${core.Tools.generateRandomId(8)}`}},__name(_a2,"ConditionalFormattingFormulaService"),_a2);exports.ConditionalFormattingFormulaService=__decorateClass$2([__decorateParam$2(0,core.Inject(core.ICommandService)),__decorateParam$2(1,core.Inject(core.Injector)),__decorateParam$2(2,core.Inject(engineFormula.IActiveDirtyManagerService)),__decorateParam$2(3,core.Inject(ConditionalFormattingViewModel)),__decorateParam$2(4,core.Inject(exports.ConditionalFormattingRuleModel))],exports.ConditionalFormattingFormulaService);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}__name(getDefaultExportFromCjs,"getDefaultExportFromCjs");var dayjs_min={exports:{}};(function(module2,exports2){(function(t,e){module2.exports=e()})(commonjsGlobal,function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:__name(function(t2){var e2=["th","st","nd","rd"],n2=t2%100;return"["+t2+(e2[(n2-20)%10]||e2[n2]||e2[0])+"]"},"ordinal")},m=__name(function(t2,e2,n2){var r2=String(t2);return!r2||r2.length>=e2?t2:""+Array(e2+1-r2.length).join(n2)+t2},"m"),v={s:m,z:__name(function(t2){var e2=-t2.utcOffset(),n2=Math.abs(e2),r2=Math.floor(n2/60),i2=n2%60;return(e2<=0?"+":"-")+m(r2,2,"0")+":"+m(i2,2,"0")},"z"),m:__name(function t2(e2,n2){if(e2.date()<n2.date())return-t2(n2,e2);var r2=12*(n2.year()-e2.year())+(n2.month()-e2.month()),i2=e2.clone().add(r2,c),s2=n2-i2<0,u2=e2.clone().add(r2+(s2?-1:1),c);return+(-(r2+(n2-i2)/(s2?i2-u2:u2-i2))||0)},"t"),a:__name(function(t2){return t2<0?Math.ceil(t2)||0:Math.floor(t2)},"a"),p:__name(function(t2){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t2]||String(t2||"").toLowerCase().replace(/s$/,"")},"p"),u:__name(function(t2){return t2===void 0},"u")},g="en",D={};D[g]=M;var p="$isDayjsObject",S=__name(function(t2){return t2 instanceof _||!(!t2||!t2[p])},"S"),w=__name(function t2(e2,n2,r2){var i2;if(!e2)return g;if(typeof e2=="string"){var s2=e2.toLowerCase();D[s2]&&(i2=s2),n2&&(D[s2]=n2,i2=s2);var u2=e2.split("-");if(!i2&&u2.length>1)return t2(u2[0])}else{var a2=e2.name;D[a2]=e2,i2=a2}return!r2&&i2&&(g=i2),i2||!r2&&g},"t"),O=__name(function(t2,e2){if(S(t2))return t2.clone();var n2=typeof e2=="object"?e2:{};return n2.date=t2,n2.args=arguments,new _(n2)},"O"),b=v;b.l=w,b.i=S,b.w=function(t2,e2){return O(t2,{locale:e2.$L,utc:e2.$u,x:e2.$x,$offset:e2.$offset})};var _=function(){function M2(t2){this.$L=w(t2.locale,null,!0),this.parse(t2),this.$x=this.$x||t2.x||{},this[p]=!0}__name(M2,"M");var m2=M2.prototype;return m2.parse=function(t2){this.$d=function(t3){var e2=t3.date,n2=t3.utc;if(e2===null)return new Date(NaN);if(b.u(e2))return new Date;if(e2 instanceof Date)return new Date(e2);if(typeof e2=="string"&&!/Z$/i.test(e2)){var r2=e2.match($);if(r2){var i2=r2[2]-1||0,s2=(r2[7]||"0").substring(0,3);return n2?new Date(Date.UTC(r2[1],i2,r2[3]||1,r2[4]||0,r2[5]||0,r2[6]||0,s2)):new Date(r2[1],i2,r2[3]||1,r2[4]||0,r2[5]||0,r2[6]||0,s2)}}return new Date(e2)}(t2),this.init()},m2.init=function(){var t2=this.$d;this.$y=t2.getFullYear(),this.$M=t2.getMonth(),this.$D=t2.getDate(),this.$W=t2.getDay(),this.$H=t2.getHours(),this.$m=t2.getMinutes(),this.$s=t2.getSeconds(),this.$ms=t2.getMilliseconds()},m2.$utils=function(){return b},m2.isValid=function(){return this.$d.toString()!==l},m2.isSame=function(t2,e2){var n2=O(t2);return this.startOf(e2)<=n2&&n2<=this.endOf(e2)},m2.isAfter=function(t2,e2){return O(t2)<this.startOf(e2)},m2.isBefore=function(t2,e2){return this.endOf(e2)<O(t2)},m2.$g=function(t2,e2,n2){return b.u(t2)?this[e2]:this.set(n2,t2)},m2.unix=function(){return Math.floor(this.valueOf()/1e3)},m2.valueOf=function(){return this.$d.getTime()},m2.startOf=function(t2,e2){var n2=this,r2=!!b.u(e2)||e2,f2=b.p(t2),l2=__name(function(t3,e3){var i2=b.w(n2.$u?Date.UTC(n2.$y,e3,t3):new Date(n2.$y,e3,t3),n2);return r2?i2:i2.endOf(a)},"l"),$2=__name(function(t3,e3){return b.w(n2.toDate()[t3].apply(n2.toDate("s"),(r2?[0,0,0,0]:[23,59,59,999]).slice(e3)),n2)},"$"),y2=this.$W,M3=this.$M,m3=this.$D,v2="set"+(this.$u?"UTC":"");switch(f2){case h:return r2?l2(1,0):l2(31,11);case c:return r2?l2(1,M3):l2(0,M3+1);case o:var g2=this.$locale().weekStart||0,D2=(y2<g2?y2+7:y2)-g2;return l2(r2?m3-D2:m3+(6-D2),M3);case a:case d:return $2(v2+"Hours",0);case u:return $2(v2+"Minutes",1);case s:return $2(v2+"Seconds",2);case i:return $2(v2+"Milliseconds",3);default:return this.clone()}},m2.endOf=function(t2){return this.startOf(t2,!1)},m2.$set=function(t2,e2){var n2,o2=b.p(t2),f2="set"+(this.$u?"UTC":""),l2=(n2={},n2[a]=f2+"Date",n2[d]=f2+"Date",n2[c]=f2+"Month",n2[h]=f2+"FullYear",n2[u]=f2+"Hours",n2[s]=f2+"Minutes",n2[i]=f2+"Seconds",n2[r]=f2+"Milliseconds",n2)[o2],$2=o2===a?this.$D+(e2-this.$W):e2;if(o2===c||o2===h){var y2=this.clone().set(d,1);y2.$d[l2]($2),y2.init(),this.$d=y2.set(d,Math.min(this.$D,y2.daysInMonth())).$d}else l2&&this.$d[l2]($2);return this.init(),this},m2.set=function(t2,e2){return this.clone().$set(t2,e2)},m2.get=function(t2){return this[b.p(t2)]()},m2.add=function(r2,f2){var d2,l2=this;r2=Number(r2);var $2=b.p(f2),y2=__name(function(t2){var e2=O(l2);return b.w(e2.date(e2.date()+Math.round(t2*r2)),l2)},"y");if($2===c)return this.set(c,this.$M+r2);if($2===h)return this.set(h,this.$y+r2);if($2===a)return y2(1);if($2===o)return y2(7);var M3=(d2={},d2[s]=e,d2[u]=n,d2[i]=t,d2)[$2]||1,m3=this.$d.getTime()+r2*M3;return b.w(m3,this)},m2.subtract=function(t2,e2){return this.add(-1*t2,e2)},m2.format=function(t2){var e2=this,n2=this.$locale();if(!this.isValid())return n2.invalidDate||l;var r2=t2||"YYYY-MM-DDTHH:mm:ssZ",i2=b.z(this),s2=this.$H,u2=this.$m,a2=this.$M,o2=n2.weekdays,c2=n2.months,f2=n2.meridiem,h2=__name(function(t3,n3,i3,s3){return t3&&(t3[n3]||t3(e2,r2))||i3[n3].slice(0,s3)},"h"),d2=__name(function(t3){return b.s(s2%12||12,t3,"0")},"d"),$2=f2||function(t3,e3,n3){var r3=t3<12?"AM":"PM";return n3?r3.toLowerCase():r3};return r2.replace(y,function(t3,r3){return r3||function(t4){switch(t4){case"YY":return String(e2.$y).slice(-2);case"YYYY":return b.s(e2.$y,4,"0");case"M":return a2+1;case"MM":return b.s(a2+1,2,"0");case"MMM":return h2(n2.monthsShort,a2,c2,3);case"MMMM":return h2(c2,a2);case"D":return e2.$D;case"DD":return b.s(e2.$D,2,"0");case"d":return String(e2.$W);case"dd":return h2(n2.weekdaysMin,e2.$W,o2,2);case"ddd":return h2(n2.weekdaysShort,e2.$W,o2,3);case"dddd":return o2[e2.$W];case"H":return String(s2);case"HH":return b.s(s2,2,"0");case"h":return d2(1);case"hh":return d2(2);case"a":return $2(s2,u2,!0);case"A":return $2(s2,u2,!1);case"m":return String(u2);case"mm":return b.s(u2,2,"0");case"s":return String(e2.$s);case"ss":return b.s(e2.$s,2,"0");case"SSS":return b.s(e2.$ms,3,"0");case"Z":return i2}return null}(t3)||i2.replace(":","")})},m2.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m2.diff=function(r2,d2,l2){var $2,y2=this,M3=b.p(d2),m3=O(r2),v2=(m3.utcOffset()-this.utcOffset())*e,g2=this-m3,D2=__name(function(){return b.m(y2,m3)},"D");switch(M3){case h:$2=D2()/12;break;case c:$2=D2();break;case f:$2=D2()/3;break;case o:$2=(g2-v2)/6048e5;break;case a:$2=(g2-v2)/864e5;break;case u:$2=g2/n;break;case s:$2=g2/e;break;case i:$2=g2/t;break;default:$2=g2}return l2?$2:b.a($2)},m2.daysInMonth=function(){return this.endOf(c).$D},m2.$locale=function(){return D[this.$L]},m2.locale=function(t2,e2){if(!t2)return this.$L;var n2=this.clone(),r2=w(t2,e2,!0);return r2&&(n2.$L=r2),n2},m2.clone=function(){return b.w(this.$d,this)},m2.toDate=function(){return new Date(this.valueOf())},m2.toJSON=function(){return this.isValid()?this.toISOString():null},m2.toISOString=function(){return this.$d.toISOString()},m2.toString=function(){return this.$d.toUTCString()},M2}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach(function(t2){k[t2[1]]=function(e2){return this.$g(e2,t2[0],t2[1])}}),O.extend=function(t2,e2){return t2.$i||(t2(e2,_,O),t2.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t2){return O(1e3*t2)},O.en=D[g],O.Ls=D,O.p={},O})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs(dayjs_minExports);function isFloatsEqual(a,b){return Math.abs(a-b)<Number.EPSILON}__name(isFloatsEqual,"isFloatsEqual");const isNullable=__name(v=>[void 0,null].includes(v),"isNullable"),getCellValue=__name(cell2=>{var _a5,_b;if(!cell2)return null;if(cell2.t===core.CellValueType.BOOLEAN)return cell2.v===core.BooleanNumber.TRUE?engineFormula.BooleanValue.TRUE:engineFormula.BooleanValue.FALSE;const v=cell2.v,dataStream=(_b=(_a5=cell2.p)==null?void 0:_a5.body)==null?void 0:_b.dataStream.replace(/\r\n$/,"");return isNullable(v)?isNullable(dataStream)?null:dataStream:v},"getCellValue"),DAY_SIZE=86400;function toYMD_1900(ord,leap1900=!0){if(leap1900&&ord>=0){if(ord===0)return[1900,1,0];if(ord===60)return[1900,2,29];if(ord<60)return[1900,ord<32?1:2,(ord-1)%31+1]}let l=ord+68569+2415019;const n=Math.floor(4*l/146097);l=l-Math.floor((146097*n+3)/4);const i=Math.floor(4e3*(l+1)/1461001);l=l-Math.floor(1461*i/4)+31;const j=Math.floor(80*l/2447),nDay=l-Math.floor(2447*j/80);l=Math.floor(j/11);const nMonth=j+2-12*l;return[100*(n-49)+i+l|0,nMonth|0,nDay|0]}__name(toYMD_1900,"toYMD_1900");const serialTimeToTimestamp=__name(value=>{let date=value|0;const t=DAY_SIZE*(value-date);let time=Math.floor(t);t-time>.9999&&(time+=1,time===DAY_SIZE&&(time=0,date+=1));const x=time<0?DAY_SIZE+time:time,[y,m,d]=toYMD_1900(value,!0),hh=Math.floor(x/60/60)%60,mm=Math.floor(x/60)%60,ss=Math.floor(x)%60;return dayjs(`${y}/${m}/${d} ${hh}:${mm}:${ss}`).valueOf()},"serialTimeToTimestamp"),getValueByType=__name((value,matrix,context)=>{switch(value.type){case CFValueType.max:{let max=0;return matrix.forValue((row,col,value2)=>{value2>max&&(max=value2)}),{status:FormulaResultStatus.SUCCESS,result:max}}case CFValueType.min:{let min;return matrix.forValue((row,col,value2)=>{min===void 0&&(min=value2),value2<min&&(min=value2)}),{status:FormulaResultStatus.SUCCESS,result:min}}case CFValueType.percent:{let max,min;matrix.forValue((row,col,value2)=>{(max===void 0||min===void 0)&&(max=value2,min=value2),value2>max&&(max=value2),value2<min&&(min=value2)});const length=(max||0)-(min||0),v=Math.max(Math.min(Number(value.value)||0,100),0);return{status:FormulaResultStatus.SUCCESS,result:length*(v/100)+(min||0)}}case CFValueType.percentile:{const list=matrix.toNativeArray().sort((a,b)=>a-b),v=Math.max(Math.min(Number(value.value)||0,100),0),index=(list.length-1)*v/100,intIndex=Math.floor(index),decimalIndex=index-intIndex,result=list[intIndex]+(list[Math.min(intIndex+1,list.length-1)]-list[intIndex])*decimalIndex;return{status:FormulaResultStatus.SUCCESS,result}}case CFValueType.formula:{const{accessor,unitId,subUnitId,cfId}=context,formulaText=String(value.value),conditionalFormattingFormulaService=accessor.get(exports.ConditionalFormattingFormulaService);return conditionalFormattingFormulaService.registerFormula(unitId,subUnitId,cfId,formulaText),conditionalFormattingFormulaService.getFormulaResult(unitId,subUnitId,formulaText)}case CFValueType.num:{const v=Number(value.value);return{status:FormulaResultStatus.SUCCESS,result:Number.isNaN(v)?0:v}}}},"getValueByType"),getCacheStyleMatrix=__name((unitId,subUnitId,rule,context)=>{const{accessor}=context,conditionalFormattingViewModel=accessor.get(ConditionalFormattingViewModel),matrix=new core.ObjectMatrix;return rule.ranges.forEach(range=>{core.Range.foreach(range,(row,col)=>{const cellCfItem=conditionalFormattingViewModel.getCellCf(unitId,subUnitId,row,col);if(cellCfItem){const item=cellCfItem.cfList.find(item2=>item2.cfId===rule.cfId);item!=null&&item.ruleCache&&matrix.setValue(row,col,item.ruleCache)}})}),matrix},"getCacheStyleMatrix"),compareWithNumber=__name((config,v)=>{switch(config.operator){case CFNumberOperator.between:{if(typeof config.value!="object"||!config.value.length)return;const start=Math.min(...config.value),end=Math.max(...config.value);return v>=start&&v<=end}case CFNumberOperator.notBetween:{if(typeof config.value!="object"||!config.value.length)return;const start=Math.min(...config.value),end=Math.max(...config.value);return!(v>=start&&v<=end)}case CFNumberOperator.equal:{const condition=config.value||0;return isFloatsEqual(condition,v)}case CFNumberOperator.notEqual:{const condition=config.value||0;return!isFloatsEqual(condition,v)}case CFNumberOperator.greaterThan:{const condition=config.value||0;return v>condition}case CFNumberOperator.greaterThanOrEqual:{const condition=config.value||0;return v>=condition}case CFNumberOperator.lessThan:{const condition=config.value||0;return v<condition}case CFNumberOperator.lessThanOrEqual:{const condition=config.value||0;return v<=condition}default:return!1}},"compareWithNumber"),getOppositeOperator=__name(operator=>{switch(operator){case CFNumberOperator.greaterThan:return CFNumberOperator.lessThanOrEqual;case CFNumberOperator.greaterThanOrEqual:return CFNumberOperator.lessThan;case CFNumberOperator.lessThan:return CFNumberOperator.greaterThanOrEqual;case CFNumberOperator.lessThanOrEqual:return CFNumberOperator.greaterThan}return operator},"getOppositeOperator"),getColorScaleFromValue=__name((colorList,value)=>{const prefixRgba=__name(rgb=>rgb.a!==void 0?rgb:{...rgb,a:1},"prefixRgba"),index=colorList.findIndex(item=>item.value>=value),preIndex=index-1;if(index===0)return colorList[0].color.toRgbString();if(preIndex>=0){const minItem=colorList[preIndex],maxItem=colorList[index];if(minItem.color.isValid&&maxItem.color.isValid){const minRgb=prefixRgba(minItem.color.toRgb()),maxRgb=prefixRgba(maxItem.color.toRgb()),length=maxItem.value-minItem.value,v=(value-minItem.value)/length,rgbResult=["r","g","b","a"].reduce((obj,key)=>{const minV=minRgb[key];return obj[key]=(maxRgb[key]-minV)*v+minV,obj},{});return new core.ColorKit(rgbResult).toRgbString()}}else return colorList[colorList.length-1].color.toRgbString()},"getColorScaleFromValue"),filterRange=__name((ranges,maxRow,maxCol)=>ranges.map(range=>{if(range.startColumn>maxCol||range.startRow>maxRow)return null;const _range={...range};return _range.endRow=Math.min(_range.endRow,maxRow),_range.endColumn=Math.min(_range.endColumn,maxCol),_range}).filter(range=>!!range),"filterRange"),emptyStyle="",colorScaleCellCalculateUnit={type:CFRuleType.colorScale,handle:__name(async(rule,context)=>{var _a5;const ruleConfig=rule.rule,conditionalFormattingFormulaService=context.accessor.get(exports.ConditionalFormattingFormulaService),{worksheet}=context,matrix=new core.ObjectMatrix,ranges=filterRange(rule.ranges,worksheet.getMaxRows()-1,worksheet.getMaxColumns()-1);ranges.forEach(range=>{core.Range.foreach(range,(row,col)=>{const cell2=worksheet==null?void 0:worksheet.getCellRaw(row,col),v=cell2&&cell2.v;if(!isNullable(v)&&(cell2==null?void 0:cell2.t)===core.CellValueType.NUMBER){const _value=Number(v);!Number.isNaN(_value)&&matrix.setValue(row,col,_value)}})});const computeResult=new core.ObjectMatrix;ranges.forEach(range=>{core.Range.foreach(range,(row,col)=>{computeResult.setValue(row,col,emptyStyle)})});const _configList=[...ruleConfig.config].sort((a,b)=>a.index-b.index).map(config=>({value:getValueByType(config.value,matrix,{...context,cfId:rule.cfId}),color:new core.ColorKit(config.color)}));if(_configList.some(item=>engineRender.isObject(item.value)?item.value.status!==FormulaResultStatus.SUCCESS:!1))return(_a5=conditionalFormattingFormulaService.getCache(context.unitId,context.subUnitId,rule.cfId))!=null?_a5:computeResult;const colorList=_configList.map(item=>item.color).reduce((result,color,index)=>(result.result.push({color,value:result.sortValue[index]}),result),{result:[],sortValue:_configList.map(item=>item.value.result).sort((a,b)=>a-b)}).result;return colorList.length<=1||matrix.forValue((row,col,value)=>{const color=getColorScaleFromValue(colorList,value);color&&computeResult.setValue(row,col,color)}),computeResult},"handle")},dataBarUKey="sheet-conditional-rule-data-bar",defaultDataBarPositiveColor="#ffbe38",defaultDataBarNativeColor="#abd91a",EXTENSION_Z_INDEX$1=34,_DataBar=class _DataBar extends engineRender.SheetExtension{constructor(){super(...arguments);__publicField(this,"_paddingRightAndLeft",2);__publicField(this,"_paddingTopAndBottom",2);__publicField(this,"uKey",dataBarUKey);__publicField(this,"Z_INDEX",EXTENSION_Z_INDEX$1);__publicField(this,"_radius",1)}draw(ctx,_parentScale,spreadsheetSkeleton,diffRanges){const{worksheet}=spreadsheetSkeleton;if(!worksheet)return!1;ctx.save(),core.Range.foreach(spreadsheetSkeleton.rowColumnSegment,(row,col)=>{if(!worksheet.getRowVisible(row)||!worksheet.getColVisible(col))return;const cellData=worksheet.getCell(row,col);if(cellData&&cellData.dataBar){const{color,value,startPoint,isGradient}=cellData.dataBar,cellInfo=spreadsheetSkeleton.getCellByIndexWithNoHeader(row,col);let{isMerged,isMergedMainCell,mergeInfo,startY,endY,startX,endX}=cellInfo;if(isMerged||(isMergedMainCell&&(startY=mergeInfo.startY,endY=mergeInfo.endY,startX=mergeInfo.startX,endX=mergeInfo.endX),!this.isRenderDiffRangesByCell(mergeInfo,diffRanges)))return;const borderWidth=endX-startX,borderHeight=endY+engineRender.FIX_ONE_PIXEL_BLUR_OFFSET-startY,width=borderWidth-this._paddingRightAndLeft*2,height=borderHeight-this._paddingTopAndBottom*2;if(value>0){const dataBarWidth=Math.max(width*(1-startPoint/100)*value/100,1),x0=startX+this._paddingRightAndLeft+startPoint/100*width,y0=startY+this._paddingTopAndBottom;if(isGradient){const gradient=ctx.createLinearGradient(x0,y0,x0+dataBarWidth,y0);gradient.addColorStop(0,color),gradient.addColorStop(1,"rgb(255 255 255)"),ctx.fillStyle=gradient,ctx.strokeStyle=color,ctx.lineWidth=1}else ctx.fillStyle=color;this._drawRectWithRoundedCorner(ctx,x0,y0,dataBarWidth,height,!1,!0,!0,!1),isGradient&&ctx.stroke()}else{const dataBarWidth=Math.max(width*startPoint/100*Math.abs(value)/100,1),x0=startX+this._paddingRightAndLeft+startPoint/100*width-dataBarWidth,y0=startY+this._paddingTopAndBottom;if(isGradient){const gradient=ctx.createLinearGradient(x0,y0,x0+dataBarWidth,y0);gradient.addColorStop(0,"rgb(255 255 255)"),gradient.addColorStop(1,color),ctx.fillStyle=gradient,ctx.strokeStyle=color,ctx.lineWidth=1}else ctx.fillStyle=color;this._drawRectWithRoundedCorner(ctx,x0,y0,dataBarWidth,height,!0,!1,!1,!0),isGradient&&ctx.stroke()}}}),ctx.restore()}_drawRectWithRoundedCorner(ctx,x,y,width,height,topLeftRadius,topRightRadius,bottomRightRadius,bottomLeftRadius){const radius=this._radius;!height||!width||(ctx.beginPath(),ctx.moveTo(x+radius,y),ctx.lineTo(x+width-radius,y),topRightRadius?ctx.arcTo(x+width,y,x+width,y+radius,radius):ctx.lineTo(x+width,y),ctx.lineTo(x+width,y+height-radius),bottomRightRadius?ctx.arcTo(x+width,y+height,x+width-radius,y+height,radius):ctx.lineTo(x+width,y+height),ctx.lineTo(x+radius,y+height),bottomLeftRadius?ctx.arcTo(x,y+height,x,y+height-radius,radius):ctx.lineTo(x,y+height),ctx.lineTo(x,y+radius),topLeftRadius?ctx.arcTo(x,y,x+radius,y,radius):ctx.lineTo(x,y),ctx.closePath(),ctx.fill())}};__name(_DataBar,"DataBar");let DataBar=_DataBar;engineRender.SpreadsheetExtensionRegistry.add(DataBar);const EMPTY_STYLE={};Object.freeze(EMPTY_STYLE);const dataBarCellCalculateUnit={type:CFRuleType.dataBar,handle:__name(async(rule,context)=>{const ruleConfig=rule.rule,conditionalFormattingFormulaService=context.accessor.get(exports.ConditionalFormattingFormulaService),{worksheet}=context,matrix=new core.ObjectMatrix,ranges=filterRange(rule.ranges,worksheet.getMaxRows()-1,worksheet.getMaxColumns()-1);ranges.forEach(range=>{core.Range.foreach(range,(row,col)=>{const cell2=worksheet==null?void 0:worksheet.getCellRaw(row,col),v=cell2&&cell2.v;if(!isNullable(v)&&(cell2==null?void 0:cell2.t)===core.CellValueType.NUMBER){const _value=Number(v);!Number.isNaN(_value)&&matrix.setValue(row,col,_value)}})});const computeResult=new core.ObjectMatrix;ranges.forEach(range=>{core.Range.foreach(range,(row,col)=>{computeResult.setValue(row,col,EMPTY_STYLE)})});const _min=getValueByType(ruleConfig.config.min,matrix,{...context,cfId:rule.cfId}),_max=getValueByType(ruleConfig.config.max,matrix,{...context,cfId:rule.cfId});let min=0,max=0;if(_min.status===FormulaResultStatus.WAIT)return conditionalFormattingFormulaService.getCache(context.unitId,context.subUnitId,rule.cfId)||computeResult;if(_min.status===FormulaResultStatus.SUCCESS){const v=Number(_min.result);min=Number.isNaN(v)?0:v}else return computeResult;if(_max.status===FormulaResultStatus.WAIT)return conditionalFormattingFormulaService.getCache(context.unitId,context.subUnitId,rule.cfId)||computeResult;if(_max.status===FormulaResultStatus.SUCCESS){const v=Number.isNaN(Number(_max.result))?0:Number(_max.result);max=Math.max(v,min),min=Math.min(v,min)}else return computeResult;const isGradient=ruleConfig.config.isGradient,isShowValue=ruleConfig.isShowValue,getSafeValue=__name(v=>Math.max(Math.min(100,v),0),"getSafeValue");if(!(min===max||max<min)){if(min<0&&max<=0){const length=max-min,startPoint=100;matrix.forValue((row,col,value)=>{if(value>max)return;const v=getSafeValue((max-value)/length*100);computeResult.setValue(row,col,{color:ruleConfig.config.nativeColor||defaultDataBarNativeColor,startPoint,value:-v,isGradient,isShowValue})})}else if(min<0&&max>0){const length=Math.abs(max)+Math.abs(min),startPoint=Math.abs(min)/length*100;matrix.forValue((row,col,value)=>{if(value)if(value>0){const v=getSafeValue(Math.min(value/max,1)*100);computeResult.setValue(row,col,{color:ruleConfig.config.positiveColor,startPoint,value:v,isGradient,isShowValue})}else{const v=getSafeValue(Math.min(Math.abs(value)/Math.abs(min),1)*100);computeResult.setValue(row,col,{color:ruleConfig.config.nativeColor||defaultDataBarNativeColor,startPoint,value:-v,isGradient,isShowValue})}})}else if(min>=0&&max>0){const length=max-min,startPoint=0;matrix.forValue((row,col,value)=>{if(value<min)return;const v=getSafeValue((1-(max-value)/length)*100);computeResult.setValue(row,col,{color:ruleConfig.config.positiveColor||defaultDataBarPositiveColor,startPoint,value:v,isGradient,isShowValue})})}}return computeResult},"handle")},highlightCellCalculateUnit={type:CFRuleType.highlightCell,handle:__name(async(rule,context)=>{const ruleConfig=rule.rule,{worksheet}=context,ranges=filterRange(rule.ranges,worksheet.getMaxRows()-1,worksheet.getMaxColumns()-1),cache=__name(()=>{switch(ruleConfig.subType){case CFSubRuleType.average:{let sum=0,count=0;return ranges.forEach(range=>{core.Range.foreach(range,(row,col)=>{const cell2=worksheet==null?void 0:worksheet.getCellRaw(row,col),v=getCellValue(cell2||void 0);cell2&&cell2.t===core.CellValueType.NUMBER&&v!==void 0&&(sum+=Number(v)||0,count++)})}),{average:sum/count}}case CFSubRuleType.uniqueValues:case CFSubRuleType.duplicateValues:{const cacheMap=new Map;return ranges.forEach(range=>{core.Range.foreach(range,(row,col)=>{const cell2=worksheet==null?void 0:worksheet.getCellRaw(row,col),v=getCellValue(cell2||void 0);if(v!==void 0){const cache2=cacheMap.get(v);cache2?cacheMap.set(v,cache2+1):cacheMap.set(v,1)}})}),{count:cacheMap}}case CFSubRuleType.rank:{const allValue=[];ranges.forEach(range=>{core.Range.foreach(range,(row,col)=>{const cell2=worksheet==null?void 0:worksheet.getCellRaw(row,col),v=getCellValue(cell2||void 0);cell2&&cell2.t===core.CellValueType.NUMBER&&v!==void 0&&allValue.push(Number(v)||0)})}),allValue.sort((a,b)=>b-a);const configRule=rule.rule,targetIndex=configRule.isPercent?Math.floor(Math.max(Math.min(configRule.value,100),0)/100*allValue.length):Math.floor(Math.max(Math.min(configRule.isBottom?configRule.value-1:configRule.value,allValue.length),0));return configRule.isBottom?{rank:allValue[allValue.length-targetIndex-1]}:{rank:allValue[Math.max(targetIndex-1,0)]}}case CFSubRuleType.formula:{const subRuleConfig=ruleConfig,lexerTreeBuilder=context.accessor.get(engineFormula.LexerTreeBuilder),formulaString=subRuleConfig.value,sequenceNodes=lexerTreeBuilder.sequenceNodesBuilder(formulaString);return sequenceNodes?{sequenceNodes}:{sequenceNodes:null}}case CFSubRuleType.timePeriod:switch(ruleConfig.operator){case CFTimePeriodOperator.last7Days:return{timePeriod:{start:dayjs().subtract(7,"day").valueOf(),end:dayjs().valueOf()}};case CFTimePeriodOperator.lastMonth:return{timePeriod:{start:dayjs().startOf("month").subtract(1,"month").valueOf(),end:dayjs().endOf("month").subtract(1,"month").valueOf()}};case CFTimePeriodOperator.lastWeek:return{timePeriod:{start:dayjs().startOf("week").subtract(1,"week").valueOf(),end:dayjs().endOf("week").subtract(1,"week").valueOf()}};case CFTimePeriodOperator.nextMonth:return{timePeriod:{start:dayjs().startOf("month").add(1,"month").valueOf(),end:dayjs().endOf("month").add(1,"month").valueOf()}};case CFTimePeriodOperator.nextWeek:return{timePeriod:{start:dayjs().startOf("week").add(1,"week").valueOf(),end:dayjs().endOf("week").add(1,"week").valueOf()}};case CFTimePeriodOperator.thisMonth:return{timePeriod:{start:dayjs().startOf("month").valueOf(),end:dayjs().endOf("month").valueOf()}};case CFTimePeriodOperator.thisWeek:return{timePeriod:{start:dayjs().startOf("week").valueOf(),end:dayjs().endOf("week").valueOf()}};case CFTimePeriodOperator.today:return{timePeriod:{start:dayjs().startOf("day").valueOf(),end:dayjs().endOf("day").valueOf()}};case CFTimePeriodOperator.tomorrow:return{timePeriod:{start:dayjs().startOf("day").add(1,"day").valueOf(),end:dayjs().endOf("day").add(1,"day").valueOf()}};case CFTimePeriodOperator.yesterday:return{timePeriod:{start:dayjs().startOf("day").subtract(1,"day").valueOf(),end:dayjs().endOf("day").subtract(1,"day").valueOf()}}}}},"getCache")(),check=__name((row,col)=>{const cellValue=worksheet==null?void 0:worksheet.getCellRaw(row,col);switch(ruleConfig.subType){case CFSubRuleType.number:{const v=cellValue&&Number(cellValue.v);if(isNullable(v)||Number.isNaN(v)||(cellValue==null?void 0:cellValue.t)!==core.CellValueType.NUMBER)return!1;const subRuleConfig=ruleConfig;return compareWithNumber({operator:subRuleConfig.operator,value:subRuleConfig.value||0},v||0)}case CFSubRuleType.text:{const subRuleConfig=ruleConfig,value=getCellValue(cellValue),v=value===null?"":String(value),condition=subRuleConfig.value||"";switch(subRuleConfig.operator){case CFTextOperator.beginsWith:return v.startsWith(condition);case CFTextOperator.containsBlanks:return/^\s*$/.test(v);case CFTextOperator.notContainsBlanks:return!/^\s*$/.test(v);case CFTextOperator.containsErrors:return engineFormula.ERROR_TYPE_SET.has(v);case CFTextOperator.notContainsErrors:return!engineFormula.ERROR_TYPE_SET.has(v);case CFTextOperator.containsText:return v.indexOf(condition)>-1;case CFTextOperator.notContainsText:return v.indexOf(condition)===-1;case CFTextOperator.endsWith:return v.endsWith(condition);case CFTextOperator.equal:return v===condition;case CFTextOperator.notEqual:return v!==condition;default:return!1}}case CFSubRuleType.timePeriod:{const value=getCellValue(cellValue);if(isNullable(value)||Number.isNaN(Number(value))||(cellValue==null?void 0:cellValue.t)!==core.CellValueType.NUMBER)return!1;const v=serialTimeToTimestamp(Number(value)),{start,end}=cache.timePeriod;return v>=start&&v<=end}case CFSubRuleType.average:{const value=cellValue&&cellValue.v,v=Number(value);if(isNullable(value)||Number.isNaN(v)||(cellValue==null?void 0:cellValue.t)!==core.CellValueType.NUMBER)return!1;const subRuleConfig=ruleConfig,average=cache==null?void 0:cache.average;switch(subRuleConfig.operator){case CFNumberOperator.greaterThan:return v>average;case CFNumberOperator.greaterThanOrEqual:return v>=average;case CFNumberOperator.lessThan:return v<average;case CFNumberOperator.lessThanOrEqual:return v<=average;case CFNumberOperator.equal:return isFloatsEqual(v,average);case CFNumberOperator.notEqual:return!isFloatsEqual(v,average);default:return!1}}case CFSubRuleType.rank:{const value=getCellValue(cellValue),v=Number(value);if(isNullable(value)||Number.isNaN(v)||(cellValue==null?void 0:cellValue.t)!==core.CellValueType.NUMBER)return!1;const targetValue=cache.rank;return ruleConfig.isBottom?v<=targetValue:v>=targetValue}case CFSubRuleType.uniqueValues:{const value=getCellValue(cellValue);return isNullable(value)?!1:cache.count.get(value)===1}case CFSubRuleType.duplicateValues:{const value=getCellValue(cellValue);return isNullable(value)?!1:cache.count.get(value)!==1}case CFSubRuleType.formula:{if(!(cache!=null&&cache.sequenceNodes))return!1;const{unitId,subUnitId}=context,conditionalFormattingFormulaService=context.accessor.get(exports.ConditionalFormattingFormulaService),getRangeFromCell=__name((row2,col2)=>({startRow:row2,endRow:row2,startColumn:col2,endColumn:col2}),"getRangeFromCell"),originRange=getRangeFromCell(rule.ranges[0].startRow,rule.ranges[0].startColumn),sequenceNodes=core.Tools.deepClone(cache.sequenceNodes),transformSequenceNodes=Array.isArray(sequenceNodes)?sequenceNodes.map(node=>{if(typeof node=="object"&&node.nodeType===engineFormula.sequenceNodeType.REFERENCE){const gridRangeName=engineFormula.deserializeRangeWithSheet(node.token),relativeRange=core.Rectangle.getRelativeRange(gridRangeName.range,originRange),newRange=core.Rectangle.getPositionRange(relativeRange,getRangeFromCell(row,col),gridRangeName.range),newToken=engineFormula.serializeRange(newRange);return{...node,token:newToken}}return node}):sequenceNodes;let formulaString=transformSequenceNodes&&engineFormula.generateStringWithSequence(transformSequenceNodes);if(formulaString){formulaString=`=${formulaString}`,conditionalFormattingFormulaService.registerFormula(unitId,subUnitId,rule.cfId,formulaString);const formulaItem=conditionalFormattingFormulaService.getFormulaResult(unitId,subUnitId,formulaString);if(formulaItem&&formulaItem.status===FormulaResultStatus.SUCCESS)return formulaItem.result===!0;{const cache2=conditionalFormattingFormulaService.getCache(unitId,subUnitId,rule.cfId),style=cache2==null?void 0:cache2.getValue(row,col);return style&&style!==EMPTY_STYLE}}return!1}}},"check"),computeResult=new core.ObjectMatrix;return ranges.forEach(range=>{core.Range.foreach(range,(row,col)=>{check(row,col)?computeResult.setValue(row,col,ruleConfig.style):computeResult.setValue(row,col,EMPTY_STYLE)})}),computeResult},"handle")},iconSetCalculateUnit={type:CFRuleType.iconSet,handle:__name(async(rule,context)=>{var _a5;const ruleConfig=rule.rule,conditionalFormattingFormulaService=context.accessor.get(exports.ConditionalFormattingFormulaService),{worksheet}=context,matrix=new core.ObjectMatrix,ranges=filterRange(rule.ranges,worksheet.getMaxRows()-1,worksheet.getMaxColumns()-1);ranges.forEach(range=>{core.Range.foreach(range,(row,col)=>{const cell2=worksheet==null?void 0:worksheet.getCellRaw(row,col),v=cell2&&cell2.v;if(!isNullable(v)&&(cell2==null?void 0:cell2.t)===core.CellValueType.NUMBER){const _value=Number(v);!Number.isNaN(_value)&&matrix.setValue(row,col,_value)}})});const computeResult=new core.ObjectMatrix;ranges.forEach(range=>{core.Range.foreach(range,(row,col)=>{computeResult.setValue(row,col,EMPTY_STYLE)})});const splitValueResult=ruleConfig.config.map(v=>getValueByType(v.value,matrix,{...context,cfId:rule.cfId}));if(splitValueResult.some(item=>item.status!==FormulaResultStatus.SUCCESS))return(_a5=conditionalFormattingFormulaService.getCache(context.unitId,context.subUnitId,rule.cfId))!=null?_a5:computeResult;const splitValue=splitValueResult.map((item,index)=>({operator:ruleConfig.config[index].operator,value:Number(item.result)||0})).reduce((result,cur,index,list)=>{const item=ruleConfig.config[index];if(!index||index===list.length-1)result.push({...cur,iconId:item.iconId,iconType:item.iconType});else{const pre=list[index-1];compareWithNumber(pre,cur.value)||result.push({...cur,iconId:item.iconId,iconType:item.iconType})}return result},[]),isShowValue=ruleConfig.isShowValue===void 0?!0:!!ruleConfig.isShowValue;return matrix.forValue((row,col,value)=>{for(let index=0;index<splitValue.length;index++){const item=splitValue[index],start={...item},end={...item},{iconId,iconType}=item;if(index===0){if(compareWithNumber(item,value)){computeResult.setValue(row,col,{iconId,iconType,isShowValue});return}}else if(index===splitValue.length-1){computeResult.setValue(row,col,{iconId,iconType,isShowValue});return}else{const pre=splitValue[index-1];if(end.operator=getOppositeOperator(pre.operator),end.value=pre.value,compareWithNumber(start,value)&&compareWithNumber(end,value)){computeResult.setValue(row,col,{iconId,iconType,isShowValue});return}}}}),computeResult},"handle")};var __defProp$1=Object.defineProperty,__getOwnPropDesc$1=Object.getOwnPropertyDescriptor,__decorateClass$1=__name((decorators,target,key,kind)=>{for(var result=kind>1?void 0:kind?__getOwnPropDesc$1(target,key):target,i=decorators.length-1,decorator;i>=0;i--)(decorator=decorators[i])&&(result=(kind?decorator(target,key,result):decorator(result))||result);return kind&&result&&__defProp$1(target,key,result),result},"__decorateClass$1"),__decorateParam$1=__name((index,decorator)=>(target,key)=>decorator(target,key,index),"__decorateParam$1");const beforeUpdateRuleResult=core.createInterceptorKey("conditional-formatting-before-update-rule-result");var _a3;exports.ConditionalFormattingService=(_a3=class extends core.Disposable{constructor(_conditionalFormattingRuleModel,_injector,_conditionalFormattingViewModel,_univerInstanceService,_resourceManagerService,_sheetInterceptorService,_commandService){super();__publicField(this,"_ruleCacheMap",new Map);__publicField(this,"_calculateUnit$",new rxjs.Subject);__publicField(this,"_ruleComputeStatus$",new rxjs.Subject);__publicField(this,"ruleComputeStatus$",this._ruleComputeStatus$.asObservable());__publicField(this,"interceptorManager",new core.InterceptorManager({beforeUpdateRuleResult}));__publicField(this,"_calculationUnitMap",new Map);this._conditionalFormattingRuleModel=_conditionalFormattingRuleModel,this._injector=_injector,this._conditionalFormattingViewModel=_conditionalFormattingViewModel,this._univerInstanceService=_univerInstanceService,this._resourceManagerService=_resourceManagerService,this._sheetInterceptorService=_sheetInterceptorService,this._commandService=_commandService,this._initCellChange(),this._initCacheManager(),this._initRemoteCalculate(),this._initSnapshot(),this._initSheetChange(),this._registerCalculationUnit(dataBarCellCalculateUnit),this._registerCalculationUnit(colorScaleCellCalculateUnit),this._registerCalculationUnit(highlightCellCalculateUnit),this._registerCalculationUnit(iconSetCalculateUnit),this._calculateUnit$.pipe(operators.bufferTime(100),operators.filter(list=>!!list.length),operators.map(list=>{const createKey=__name(config=>`${config.unitId}_${config.subUnitId}_${config.rule.cfId}`,"createKey");return list.reduce((a,b)=>{const key=createKey(b);return a.map[key]||(a.map[key]=b,a.list.push(b)),a},{map:{},list:[]}).list})).subscribe(configList=>{configList.forEach(config=>{this._handleCalculateUnit(config.unitId,config.subUnitId,config.rule)})}),this.disposeWithMe(()=>{this.interceptorManager.dispose()})}composeStyle(unitId,subUnitId,row,col){const cell2=this._conditionalFormattingViewModel.getCellCf(unitId,subUnitId,row,col);if(cell2){const ruleList=cell2.cfList.map(item=>this._conditionalFormattingRuleModel.getRule(unitId,subUnitId,item.cfId)).filter(rule=>!!rule).reverse(),endIndex=ruleList.findIndex(rule=>rule==null?void 0:rule.stopIfTrue);return endIndex>-1&&ruleList.splice(endIndex+1),ruleList.reduce((pre,rule)=>{var _a5;const type=rule.rule.type,ruleCacheItem=cell2.cfList.find(cache=>cache.cfId===rule.cfId);if(ruleCacheItem!=null&&ruleCacheItem.isDirty&&this._calculateUnit$.next({unitId,subUnitId,rule}),type===CFRuleType.highlightCell)ruleCacheItem.ruleCache&&core.Tools.deepMerge(pre,{style:ruleCacheItem.ruleCache});else if(type===CFRuleType.colorScale){const ruleCache=ruleCacheItem==null?void 0:ruleCacheItem.ruleCache;ruleCache&&typeof ruleCache=="string"&&(pre.style={...(_a5=pre.style)!=null?_a5:{},bg:{rgb:ruleCache}})}else if(type===CFRuleType.dataBar){const ruleCache=ruleCacheItem==null?void 0:ruleCacheItem.ruleCache;ruleCache&&ruleCache!==EMPTY_STYLE&&(pre.dataBar=ruleCache,pre.isShowValue=ruleCache.isShowValue)}else if(type===CFRuleType.iconSet){const ruleCache=ruleCacheItem==null?void 0:ruleCacheItem.ruleCache;ruleCache&&ruleCache!==EMPTY_STYLE&&(pre.iconSet=ruleCache,pre.isShowValue=ruleCache.isShowValue)}return pre},{})}return null}_initSnapshot(){const toJson=__name(unitID=>{const map2=this._conditionalFormattingRuleModel.getUnitRules(unitID),resultMap={};return map2?(map2.forEach((v,key)=>{resultMap[key]=v}),JSON.stringify(resultMap)):""},"toJson"),parseJson=__name(json=>{if(!json)return{};try{return JSON.parse(json)}catch{return{}}},"parseJson");this.disposeWithMe(this._resourceManagerService.registerPluginResource({pluginName:SHEET_CONDITIONAL_FORMATTING_PLUGIN,businesses:[core.UniverInstanceType.UNIVER_SHEET],toJson:__name(unitID=>toJson(unitID),"toJson"),parseJson:__name(json=>parseJson(json),"parseJson"),onUnLoad:__name(unitID=>{this._conditionalFormattingRuleModel.deleteUnitId(unitID)},"onUnLoad"),onLoad:__name((unitID,value)=>{Object.keys(value).forEach(subunitId=>{[...value[subunitId]].reverse().forEach(rule=>{this._conditionalFormattingRuleModel.addRule(unitID,subunitId,rule)})})},"onLoad")}))}_initSheetChange(){this.disposeWithMe(this._sheetInterceptorService.interceptCommand({getMutations:__name(commandInfo=>{if(commandInfo.id===sheets.RemoveSheetCommand.id){const params=commandInfo.params,unitId=params.unitId||getUnitId(this._univerInstanceService),subUnitId=params.subUnitId||getSubUnitId(this._univerInstanceService);if(!subUnitId)return{redos:[],undos:[]};const ruleList=this._conditionalFormattingRuleModel.getSubunitRules(unitId,subUnitId);if(!ruleList)return{redos:[],undos:[]};const redos=[],undos=[];return ruleList.forEach(item=>{const params2={unitId,subUnitId,cfId:item.cfId};redos.push({id:DeleteConditionalRuleMutation.id,params:params2}),undos.push(...DeleteConditionalRuleMutationUndoFactory(this._injector,params2))}),{redos,undos}}return{redos:[],undos:[]}},"getMutations")}))}_registerCalculationUnit(unit){this._calculationUnitMap.set(unit.type,unit)}_getComputedCache(unitId,subUnitId,cfId){var _a5,_b;return(_b=(_a5=this._ruleCacheMap.get(unitId))==null?void 0:_a5.get(subUnitId))==null?void 0:_b.get(cfId)}_setComputedCache(unitId,subUnitId,cfId,value){let unitMap=this._ruleCacheMap.get(unitId);unitMap||(unitMap=new Map,this._ruleCacheMap.set(unitId,unitMap));let subUnitMap=unitMap.get(subUnitId);subUnitMap||(subUnitMap=new Map,unitMap.set(subUnitId,subUnitMap)),subUnitMap.set(cfId,value)}_deleteComputeCache(unitId,subUnitId,cfId){const unitCache=this._ruleCacheMap.get(unitId),subUnitCache=unitCache==null?void 0:unitCache.get(subUnitId);subUnitCache&&(subUnitCache.delete(cfId),subUnitCache.size||unitCache==null||unitCache.delete(subUnitId))}_initCacheManager(){this.disposeWithMe(this._conditionalFormattingViewModel.markDirty$.subscribe(item=>{this._deleteComputeCache(item.unitId,item.subUnitId,item.rule.cfId)})),this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.pipe(operators.filter(item=>item.type!=="sort")).subscribe(item=>{const{unitId,subUnitId,rule}=item;this._deleteComputeCache(unitId,subUnitId,rule.cfId)}))}_initCellChange(){this.disposeWithMe(this._commandService.onCommandExecuted(commandInfo=>{const collectRule=__name((unitId,subUnitId,cellData)=>{const ruleIds=new Set;return cellData.forEach(([row,col])=>{const ruleItem=this._conditionalFormattingViewModel.getCellCf(unitId,subUnitId,row,col);ruleItem==null||ruleItem.cfList.forEach(item=>ruleIds.add(item.cfId))}),[...ruleIds].map(cfId=>this._conditionalFormattingRuleModel.getRule(unitId,subUnitId,cfId)).filter(rule=>!!rule)},"collectRule");switch(commandInfo.id){case sheets.SetRangeValuesMutation.id:{const params=commandInfo.params,{subUnitId,unitId,cellValue}=params,cellMatrix=[];new core.ObjectMatrix(cellValue).forValue((row,col,value)=>{value&&Object.keys(value).some(key=>["p","v"].includes(key))&&cellMatrix.push([row,col])}),collectRule(unitId,subUnitId,cellMatrix).forEach(rule=>{this._conditionalFormattingViewModel.markRuleDirty(unitId,subUnitId,rule),this._deleteComputeCache(unitId,subUnitId,rule.cfId)});break}case sheets.InsertColMutation.id:case sheets.RemoveColMutation.id:{const{range,unitId,subUnitId}=commandInfo.params,allRules=this._conditionalFormattingRuleModel.getSubunitRules(unitId,subUnitId),effectRange={...range,endColumn:Number.MAX_SAFE_INTEGER};allRules&&allRules.filter(rule=>rule.ranges.some(ruleRange=>core.Rectangle.intersects(ruleRange,effectRange))).forEach(rule=>{this._conditionalFormattingViewModel.markRuleDirty(unitId,subUnitId,rule),this._deleteComputeCache(unitId,subUnitId,rule.cfId)});break}case sheets.RemoveRowMutation.id:case sheets.InsertRowMutation.id:{const{range,unitId,subUnitId}=commandInfo.params,allRules=this._conditionalFormattingRuleModel.getSubunitRules(unitId,subUnitId),effectRange={...range,endRow:Number.MAX_SAFE_INTEGER};allRules&&allRules.filter(rule=>rule.ranges.some(ruleRange=>core.Rectangle.intersects(ruleRange,effectRange))).forEach(rule=>{this._conditionalFormattingViewModel.markRuleDirty(unitId,subUnitId,rule),this._deleteComputeCache(unitId,subUnitId,rule.cfId)});break}case sheets.MoveRowsMutation.id:{const{sourceRange,targetRange,unitId,subUnitId}=commandInfo.params,allRules=this._conditionalFormattingRuleModel.getSubunitRules(unitId,subUnitId),effectRange={startRow:Math.min(sourceRange.startRow,targetRange.startRow),endRow:Number.MAX_SAFE_INTEGER,startColumn:0,endColumn:Number.MAX_SAFE_INTEGER};allRules&&allRules.filter(rule=>rule.ranges.some(ruleRange=>core.Rectangle.intersects(ruleRange,effectRange))).forEach(rule=>{this._conditionalFormattingViewModel.markRuleDirty(unitId,subUnitId,rule),this._deleteComputeCache(unitId,subUnitId,rule.cfId)});break}case sheets.MoveColsMutation.id:{const{sourceRange,targetRange,unitId,subUnitId}=commandInfo.params,allRules=this._conditionalFormattingRuleModel.getSubunitRules(unitId,subUnitId),effectRange={startRow:0,endRow:Number.MAX_SAFE_INTEGER,startColumn:Math.min(sourceRange.startColumn,targetRange.startColumn),endColumn:Number.MAX_SAFE_INTEGER};allRules&&allRules.filter(rule=>rule.ranges.some(ruleRange=>core.Rectangle.intersects(ruleRange,effectRange))).forEach(rule=>{this._conditionalFormattingViewModel.markRuleDirty(unitId,subUnitId,rule),this._deleteComputeCache(unitId,subUnitId,rule.cfId)});break}case sheets.MoveRangeMutation.id:{const{unitId,to,from}=commandInfo.params,handleSubUnit=__name(value=>{const cellMatrix=[];new core.ObjectMatrix(value.value).forValue((row,col)=>{cellMatrix.push([row,col])}),collectRule(unitId,value.subUnitId,cellMatrix).forEach(rule=>{this._conditionalFormattingViewModel.markRuleDirty(unitId,value.subUnitId,rule),this._deleteComputeCache(unitId,value.subUnitId,rule.cfId)})},"handleSubUnit");handleSubUnit(to),handleSubUnit(from);break}case sheets.ReorderRangeMutation.id:{const{range,unitId,subUnitId}=commandInfo.params,allRules=this._conditionalFormattingRuleModel.getSubunitRules(unitId,subUnitId);allRules&&allRules.filter(rule=>rule.ranges.some(ruleRange=>core.Rectangle.intersects(ruleRange,range))).forEach(rule=>{this._conditionalFormattingViewModel.markRuleDirty(unitId,subUnitId,rule),this._deleteComputeCache(unitId,subUnitId,rule.cfId)});break}}}))}_initRemoteCalculate(){this.disposeWithMe(this._ruleComputeStatus$.subscribe(({status,subUnitId,unitId,cfId,result})=>{const cache=this._getComputedCache(unitId,subUnitId,cfId)||{};cache.status=status,this._setComputedCache(unitId,subUnitId,cfId,cache),status==="end"&&result&&(this.interceptorManager.fetchThroughInterceptors(this.interceptorManager.getInterceptPoints().beforeUpdateRuleResult)({subUnitId,unitId,cfId},void 0),result.forValue((row,col,value)=>{this._conditionalFormattingViewModel.setCellCfRuleCache(unitId,subUnitId,row,col,cfId,value)}))}))}async _handleCalculateUnit(unitId,subUnitId,rule){if(!this._conditionalFormattingRuleModel.getRule(unitId,subUnitId,rule.cfId))return;const workbook=this._univerInstanceService.getUnit(unitId),worksheet=workbook==null?void 0:workbook.getSheetBySheetId(subUnitId);let cache=this._getComputedCache(unitId,subUnitId,rule.cfId);if(cache&&["computing","end"].includes(cache.status))return;cache||(cache={status:"computing"},this._setComputedCache(unitId,subUnitId,rule.cfId,cache));const unit=this._calculationUnitMap.get(rule.rule.type);if(!unit||!worksheet)return;const context={unitId,subUnitId,accessor:this._injector,workbook,worksheet},result=await unit.handle(rule,context);this._ruleComputeStatus$.next({status:"end",unitId,subUnitId,cfId:rule.cfId,result})}},__name(_a3,"ConditionalFormattingService"),_a3);exports.ConditionalFormattingService=__decorateClass$1([__decorateParam$1(0,core.Inject(exports.ConditionalFormattingRuleModel)),__decorateParam$1(1,core.Inject(core.Injector)),__decorateParam$1(2,core.Inject(ConditionalFormattingViewModel)),__decorateParam$1(3,core.Inject(core.IUniverInstanceService)),__decorateParam$1(4,core.Inject(core.IResourceManagerService)),__decorateParam$1(5,core.Inject(sheets.SheetInterceptorService)),__decorateParam$1(6,core.Inject(core.ICommandService))],exports.ConditionalFormattingService);const getUnitId=__name(u=>u.getCurrentUnitForType(core.UniverInstanceType.UNIVER_SHEET).getUnitId(),"getUnitId"),getSubUnitId=__name(u=>{var _a5;return(_a5=u.getCurrentUnitForType(core.UniverInstanceType.UNIVER_SHEET).getActiveSheet())==null?void 0:_a5.getSheetId()},"getSubUnitId");var __defProp2=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__decorateClass=__name((decorators,target,key,kind)=>{for(var result=kind>1?void 0:kind?__getOwnPropDesc(target,key):target,i=decorators.length-1,decorator;i>=0;i--)(decorator=decorators[i])&&(result=(kind?decorator(target,key,result):decorator(result))||result);return kind&&result&&__defProp2(target,key,result),result},"__decorateClass"),__decorateParam=__name((index,decorator)=>(target,key)=>decorator(target,key,index),"__decorateParam"),_a4;exports.UniverSheetsConditionalFormattingPlugin=(_a4=class extends core.Plugin{constructor(_config=defaultPluginConfig,_injector,_commandService,_configService){super(),this._config=_config,this._injector=_injector,this._commandService=_commandService,this._configService=_configService;const{...rest}=this._config;this._configService.setConfig(PLUGIN_CONFIG_KEY,rest),[[exports.ConditionalFormattingService],[exports.ConditionalFormattingFormulaService],[exports.ConditionalFormattingRuleModel],[ConditionalFormattingViewModel]].forEach(dependency=>{this._injector.add(dependency)}),[AddConditionalRuleMutation,DeleteConditionalRuleMutation,SetConditionalRuleMutation,MoveConditionalRuleMutation,ConditionalFormattingFormulaMarkDirty].forEach(m=>{this._commandService.registerCommand(m)})}onStarting(){this._injector.get(exports.ConditionalFormattingService)}},__name(_a4,"UniverSheetsConditionalFormattingPlugin"),__publicField(_a4,"pluginName",SHEET_CONDITIONAL_FORMATTING_PLUGIN),__publicField(_a4,"type",core.UniverInstanceType.UNIVER_SHEET),_a4);exports.UniverSheetsConditionalFormattingPlugin=__decorateClass([__decorateParam(1,core.Inject(core.Injector)),__decorateParam(2,core.Inject(core.ICommandService)),__decorateParam(3,core.IConfigService)],exports.UniverSheetsConditionalFormattingPlugin);const IconUKey="sheet-conditional-rule-icon",EXTENSION_Z_INDEX=35,DEFAULT_WIDTH=15,DEFAULT_PADDING=2,_ConditionalFormattingIcon=class _ConditionalFormattingIcon extends engineRender.SheetExtension{constructor(){super();__publicField(this,"_paddingRightAndLeft",DEFAULT_PADDING);__publicField(this,"_width",DEFAULT_WIDTH);__publicField(this,"_imageMap",new Map);__publicField(this,"uKey",IconUKey);__publicField(this,"Z_INDEX",EXTENSION_Z_INDEX);__publicField(this,"_radius",1);this._init()}draw(ctx,_parentScale,spreadsheetSkeleton,diffRanges){const{worksheet}=spreadsheetSkeleton;if(!worksheet)return!1;ctx.save(),core.Range.foreach(spreadsheetSkeleton.rowColumnSegment,(row,col)=>{if(!worksheet.getRowVisible(row)||!worksheet.getColVisible(col))return;const cellData=worksheet.getCell(row,col);if(cellData!=null&&cellData.iconSet){const{iconType,iconId}=cellData.iconSet;if(iconType===EMPTY_ICON_TYPE)return;const icon=this._imageMap.get(this._createKey(iconType,iconId));if(!icon)return;const cellInfo=spreadsheetSkeleton.getCellByIndexWithNoHeader(row,col);let{isMerged,isMergedMainCell,mergeInfo,startY,endY,startX,endX}=cellInfo;if(isMerged||(isMergedMainCell&&(startY=mergeInfo.startY,endY=mergeInfo.endY,startX=mergeInfo.startX,endX=mergeInfo.endX),!this.isRenderDiffRangesByCell(mergeInfo,diffRanges)))return;const borderWidth=endX-startX,borderHeight=endY-startY;if(this._width>borderHeight||this._width>borderWidth+this._paddingRightAndLeft*2)return;const y=(borderHeight-this._width)/2+startY;ctx.drawImage(icon,startX+this._paddingRightAndLeft,y,this._width,this._width)}}),ctx.restore()}_init(){for(const type in iconMap)iconMap[type].forEach((base64,index)=>{const key=this._createKey(type,String(index)),image=new Image;image.onload=()=>{this._imageMap.set(key,image)},image.src=base64})}_createKey(iconType,iconIndex){return`${iconType}_${iconIndex}`}};__name(_ConditionalFormattingIcon,"ConditionalFormattingIcon");let ConditionalFormattingIcon=_ConditionalFormattingIcon;engineRender.SpreadsheetExtensionRegistry.add(ConditionalFormattingIcon);const isRangesEqual=__name((oldRanges,ranges)=>ranges.length===oldRanges.length&&!oldRanges.some(oldRange=>ranges.some(range=>!core.Rectangle.equals(range,oldRange))),"isRangesEqual");function removeUndefinedAttr(obj){if(typeof obj!="object"||obj===null)return obj;const result={};for(const key in obj)if(obj.hasOwnProperty(key)){const value=removeUndefinedAttr(obj[key]);value!==void 0&&(result[key]=value)}return result}__name(removeUndefinedAttr,"removeUndefinedAttr");exports.AddConditionalRuleMutation=AddConditionalRuleMutation;exports.AddConditionalRuleMutationUndoFactory=AddConditionalRuleMutationUndoFactory;exports.CFNumberOperator=CFNumberOperator;exports.CFRuleType=CFRuleType;exports.CFSubRuleType=CFSubRuleType;exports.CFTextOperator=CFTextOperator;exports.CFTimePeriodOperator=CFTimePeriodOperator;exports.CFValueType=CFValueType;exports.ConditionalFormattingFormulaMarkDirty=ConditionalFormattingFormulaMarkDirty;exports.ConditionalFormattingIcon=ConditionalFormattingIcon;exports.ConditionalFormattingViewModel=ConditionalFormattingViewModel;exports.DEFAULT_BG_COLOR=DEFAULT_BG_COLOR;exports.DEFAULT_FONT_COLOR=DEFAULT_FONT_COLOR;exports.DEFAULT_PADDING=DEFAULT_PADDING;exports.DEFAULT_WIDTH=DEFAULT_WIDTH;exports.DataBar=DataBar;exports.DeleteConditionalRuleMutation=DeleteConditionalRuleMutation;exports.DeleteConditionalRuleMutationUndoFactory=DeleteConditionalRuleMutationUndoFactory;exports.EMPTY_ICON_TYPE=EMPTY_ICON_TYPE;exports.EMPTY_STYLE=EMPTY_STYLE;exports.FormulaResultStatus=FormulaResultStatus;exports.IconUKey=IconUKey;exports.MoveConditionalRuleMutation=MoveConditionalRuleMutation;exports.MoveConditionalRuleMutationUndoFactory=MoveConditionalRuleMutationUndoFactory;exports.SHEET_CONDITIONAL_FORMATTING_PLUGIN=SHEET_CONDITIONAL_FORMATTING_PLUGIN;exports.SetConditionalRuleMutation=SetConditionalRuleMutation;exports.anchorUndoFactory=anchorUndoFactory;exports.compareWithNumber=compareWithNumber;exports.createCfId=createCfId;exports.createDefaultRule=createDefaultRule;exports.createDefaultValue=createDefaultValue;exports.createDefaultValueByValueType=createDefaultValueByValueType;exports.dataBarUKey=dataBarUKey;exports.defaultDataBarNativeColor=defaultDataBarNativeColor;exports.defaultDataBarPositiveColor=defaultDataBarPositiveColor;exports.filterRange=filterRange;exports.findIndexByAnchor=findIndexByAnchor;exports.getCacheStyleMatrix=getCacheStyleMatrix;exports.getCellValue=getCellValue;exports.getColorScaleFromValue=getColorScaleFromValue;exports.getOppositeOperator=getOppositeOperator;exports.getValueByType=getValueByType;exports.iconGroup=iconGroup;exports.iconMap=iconMap;exports.isAnchorEqual=isAnchorEqual;exports.isFloatsEqual=isFloatsEqual;exports.isNullable=isNullable;exports.isRangesEqual=isRangesEqual;exports.moveByAnchor=moveByAnchor;exports.removeUndefinedAttr=removeUndefinedAttr;exports.serialTimeToTimestamp=serialTimeToTimestamp;exports.setConditionalRuleMutationUndoFactory=setConditionalRuleMutationUndoFactory;exports.toYMD_1900=toYMD_1900;exports.transformSupportSymmetryAnchor=transformSupportSymmetryAnchor;
|
|
1
|
+
"use strict";var e0=Object.defineProperty;var t0=(i,a,e)=>a in i?e0(i,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[a]=e;var b=(i,a,e)=>t0(i,typeof a!="symbol"?a+"":a,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("@univerjs/core"),F2=require("rxjs"),d2=require("rxjs/operators"),K=require("@univerjs/sheets"),g2=require("@univerjs/engine-render"),n2=require("@univerjs/engine-formula"),L2="SHEET_CONDITIONAL_FORMATTING_PLUGIN";var H=(i=>(i.beginsWith="beginsWith",i.endsWith="endsWith",i.containsText="containsText",i.notContainsText="notContainsText",i.equal="equal",i.notEqual="notEqual",i.containsBlanks="containsBlanks",i.notContainsBlanks="notContainsBlanks",i.containsErrors="containsErrors",i.notContainsErrors="notContainsErrors",i))(H||{}),G=(i=>(i.today="today",i.yesterday="yesterday",i.tomorrow="tomorrow",i.last7Days="last7Days",i.thisMonth="thisMonth",i.lastMonth="lastMonth",i.nextMonth="nextMonth",i.thisWeek="thisWeek",i.lastWeek="lastWeek",i.nextWeek="nextWeek",i))(G||{}),T=(i=>(i.greaterThan="greaterThan",i.greaterThanOrEqual="greaterThanOrEqual",i.lessThan="lessThan",i.lessThanOrEqual="lessThanOrEqual",i.notBetween="notBetween",i.between="between",i.equal="equal",i.notEqual="notEqual",i))(T||{}),q=(i=>(i.highlightCell="highlightCell",i.dataBar="dataBar",i.colorScale="colorScale",i.iconSet="iconSet",i))(q||{}),V=(i=>(i.uniqueValues="uniqueValues",i.duplicateValues="duplicateValues",i.rank="rank",i.text="text",i.timePeriod="timePeriod",i.number="number",i.average="average",i.formula="formula",i))(V||{}),J=(i=>(i.num="num",i.min="min",i.max="max",i.percent="percent",i.percentile="percentile",i.formula="formula",i))(J||{});const n0="#fff",i0="#000000",r0=()=>({cfId:void 0,ranges:[],stopIfTrue:!1,rule:{type:"highlightCell",subType:"text",operator:"containsText"}}),s0=(i,a)=>{switch(i){case"text":{if(["beginsWith","containsText","endsWith","equal","notContainsText","notEqual"].includes(a))return"";break}case"number":return["between","notBetween"].includes(a)?[10,100]:10}return""},a0=(i,a)=>{switch(i){case"formula":return"=";case"max":case"min":return"";case"percent":case"percentile":case"num":return a!==void 0?a:10}return""},O2=()=>`${C.Tools.generateRandomId(8)}`,i2=(i,a,e)=>{if(!a)return null;const t=a.findIndex(n=>e(n)===i.id);if(t<0)return null;switch(i.type){case"after":return t+1;case"before":return t-1;case"self":return t}},k2=(i,a,e,t)=>{if(!e)return null;const n=i2(i,e,t);let r=i2(a,e,t);if(n===null||r===null||n===r)return;const s=e.splice(n,1)[0];switch(n<r&&(r=i2(a,e,t)),a.type){case"before":{e.splice(r+1,0,s);break}case"self":case"after":{e.splice(r,0,s);break}}},$2=(i,a,e,t)=>{if(i.type==="after"&&["after","before"].includes(a.type))return[i,a];const n={...i},r={...a};if(n.type!=="after"){const s=i2(n,e,t);if(s===null)return null;if(s-1<0){const o=e[s+1];if(o)n.id=t(o),n.type="before";else return null}else{const o=t(e[s-1]);n.id=o,n.type="after"}}if(!["after","before"].includes(r.type)){const s=i2(r,e,t);if(s===null)return null;if(s===0)r.type="before";else if(s-1>=0){const o=t(e[s-1]);r.id=o,r.type="after"}else if(s+1<=e.length-1){const o=t(e[s+1]);r.id=o,r.type="before"}else return null}return n.id===r.id&&n.type===r.type?null:[n,r]},V2=(i,a)=>{if(["after","before"].includes(a.type)){if(i.type==="after")return[a,i];if(i.type==="before")return[a,{...i,type:"self"}]}return null},o0=(i,a)=>i.id===a.id&&i.type===a.type;var l0=Object.defineProperty,c0=Object.getOwnPropertyDescriptor,u0=(i,a,e,t)=>{for(var n=t>1?void 0:t?c0(a,e):a,r=i.length-1,s;r>=0;r--)(s=i[r])&&(n=(t?s(a,e,n):s(n))||n);return t&&n&&l0(a,e,n),n},d0=(i,a)=>(e,t)=>a(e,t,i);exports.ConditionalFormattingRuleModel=class{constructor(a){b(this,"_model",new Map);b(this,"_ruleChange$",new F2.Subject);b(this,"$ruleChange",this._ruleChange$.asObservable().pipe(d2.bufferTime(16),d2.filter(a=>!!a.length),a=>new F2.Observable(e=>{a.subscribe({next:t=>{const n=l=>`${l.unitId}_${l.subUnitId}_${l.rule.cfId}`,r=l=>{const u=l.findIndex(d=>d.type==="add"),c=l.findIndex(d=>d.type==="delete");u!==-1&&c!==-1&&c>u&&l.splice(u,c-u+1)},s=t.reduce((l,u,c)=>{const d=n(u);return l[d]||(l[d]=[]),l[d].push({...u,_index:c}),l},{});for(const l in s){const u=s[l];u.length>=2&&r(u)}Object.keys(s).reduce((l,u)=>{const c=s[u];return l.push(...c),l},[]).sort((l,u)=>l._index-u._index).map(l=>l).forEach(l=>{e.next(l)})},error:t=>e.error(t),complete:()=>e.complete()})})));this._injector=a}_ensureList(a,e){let t=this.getSubunitRules(a,e);if(!t){t=[];let n=this._model.get(a);n||(n=new Map,this._model.set(a,n)),n.set(e,t)}return t}getRule(a,e,t){const n=this.getSubunitRules(a,e);return n?n.find(r=>r.cfId===t):null}getUnitRules(a){return this._model.get(a)||null}getSubunitRules(a,e){var n;return((n=this._model.get(a))==null?void 0:n.get(e))||null}deleteRule(a,e,t){const n=this.getSubunitRules(a,e);if(n){const r=n.findIndex(o=>o.cfId===t),s=n[r];s&&(n.splice(r,1),this._ruleChange$.next({rule:s,subUnitId:e,unitId:a,type:"delete"}))}}setRule(a,e,t,n){const s=this._ensureList(a,e).find(o=>o.cfId===n);if(s){const o=C.Tools.deepClone(s);Object.assign(s,t),this._ruleChange$.next({rule:s,subUnitId:e,unitId:a,type:"set",oldRule:o})}}addRule(a,e,t){const n=this._ensureList(a,e);n.find(s=>s.cfId===t.cfId)||n.unshift(t),this._ruleChange$.next({rule:t,subUnitId:e,unitId:a,type:"add"})}moveRulePriority(a,e,t,n){const r=this._ensureList(a,e),s=i2(t,r,u=>u.cfId),o=i2(n,r,u=>u.cfId);if(o===null||s===null||o===s)return;const l=r[s];l&&(k2(t,n,r,u=>u.cfId),this._ruleChange$.next({rule:l,subUnitId:e,unitId:a,type:"sort"}))}createCfId(a,e){return O2()}deleteUnitId(a){this._model.delete(a)}};exports.ConditionalFormattingRuleModel=u0([d0(0,C.Inject(C.Injector))],exports.ConditionalFormattingRuleModel);class E2{constructor(){b(this,"_model",new Map);b(this,"_markDirty$",new F2.Subject);b(this,"markDirty$",this._markDirty$.asObservable())}_ensureMatrix(a,e){let t=this.getMatrix(a,e);if(!t){t=new C.ObjectMatrix;let n=this._model.get(a);n||(n=new Map,this._model.set(a,n)),n.set(e,t)}return t}getMatrix(a,e){var t;return(t=this._model.get(a))==null?void 0:t.get(e)}getCellCf(a,e,t,n,r){const s=r!=null?r:this.getMatrix(a,e);return s?s.getValue(t,n):null}setCellCfRuleCache(a,e,t,n,r,s){const l=this._ensureMatrix(a,e).getValue(t,n),u=l==null?void 0:l.cfList.find(c=>c.cfId===r);u&&(u.ruleCache=s,u.isDirty=!1)}deleteCellCf(a,e,t,n,r,s){const o=s!=null?s:this.getMatrix(a,e);if(o){const l=o.getValue(t,n);if(l){const u=l.cfList,c=u.findIndex(d=>d.cfId===r);c>-1&&u.splice(c,1),u.length||o.realDeleteValue(t,n)}}}pushCellCf(a,e,t,n,r){const s=this._ensureMatrix(a,e);let o=s.getValue(t,n);if(!o)o={cfList:[{cfId:r,isDirty:!0}]};else{const l=o.cfList;if(l.findIndex(c=>c.cfId===r)>-1)return;l.push({cfId:r,isDirty:!0})}s.setValue(t,n,o)}sortCellCf(a,e,t,n,r){const s=this.getCellCf(a,e,t,n);if(s){const o=s.cfList.map(l=>{const u=r.get(l.cfId);return u===void 0?null:{...l,priority:u}}).filter(l=>!!l).sort((l,u)=>l.priority-u.priority);s.cfList=o}}markRuleDirty(a,e,t,n,r){const s=(o,l)=>{const u=this.getCellCf(a,e,o,l);if(u){const c=u.cfList.find(d=>d.cfId===t.cfId);c&&(c.isDirty=!0)}};n!==void 0&&r!==void 0?(s(n,r),this._markDirty$.next({rule:t,unitId:a,subUnitId:e})):(t.ranges.forEach(o=>{C.Range.foreach(o,(l,u)=>{s(l,u)})}),this._markDirty$.next({rule:t,unitId:a,subUnitId:e}))}}const h0={mistake:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%227.03704%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.87359%206.87332C6.6146%207.13231%206.6146%207.55221%206.87359%207.8112L9.062%209.99961L6.87356%2012.188C6.61457%2012.447%206.61457%2012.8669%206.87356%2013.1259C7.13255%2013.3849%207.55245%2013.3849%207.81144%2013.1259L9.99987%2010.9375L12.1882%2013.1258C12.4472%2013.3848%2012.8671%2013.3848%2013.1261%2013.1258C13.3851%2012.8669%2013.3851%2012.447%2013.1261%2012.188L10.9378%209.99961L13.1261%207.81127C13.3851%207.55228%2013.3851%207.13238%2013.1261%206.87339C12.8671%206.61441%2012.4472%206.61441%2012.1882%206.87339L9.99987%209.06173L7.81147%206.87332C7.55248%206.61433%207.13257%206.61433%206.87359%206.87332Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A",warn:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%227.03704%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3Cpath%20d%3D%22M9.16817%206.67735C9.16646%206.61745%209.1656%206.5875%209.16653%206.56236C9.18103%206.16817%209.49136%205.84883%209.88497%205.82306C9.91008%205.82141%209.94004%205.82141%209.99996%205.82141V5.82141C10.0599%205.82141%2010.0899%205.82141%2010.115%205.82306C10.5086%205.84883%2010.8189%206.16817%2010.8334%206.56236C10.8343%206.5875%2010.8335%206.61745%2010.8318%206.67735L10.7043%2011.131C10.6934%2011.5121%2010.3812%2011.8154%209.99995%2011.8154V11.8154C9.61866%2011.8154%209.30655%2011.5121%209.29564%2011.131L9.16817%206.67735Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3Crect%20x%3D%229.31488%22%20y%3D%2212.8086%22%20width%3D%221.37006%22%20height%3D%221.37006%22%20rx%3D%220.685032%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A",correct:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M17.037%2010C17.037%2013.8865%2013.8864%2017.0371%209.99999%2017.0371C6.11354%2017.0371%202.96295%2013.8865%202.96295%2010C2.96295%206.1136%206.11354%202.96301%209.99999%202.96301C13.8864%202.96301%2017.037%206.1136%2017.037%2010Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3Cpath%20d%3D%22M13.9239%207.17477C13.6638%206.91472%2013.2422%206.91472%2012.9821%207.17477L8.74433%2011.4126L7.01786%209.6861C6.75781%209.42606%206.33619%209.42606%206.07614%209.6861C5.81609%209.94615%205.81609%2010.3678%206.07614%2010.6278L8.27349%2012.8252C8.53354%2013.0852%208.95516%2013.0852%209.21521%2012.8252L9.2195%2012.8209L13.9239%208.1165C14.1839%207.85645%2014.1839%207.43482%2013.9239%207.17477Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A"},g0={starEmpty:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.8451%207.0699%2012.2165%207.33978%2012.6421%207.36863L16.2362%207.61233C16.5693%207.63492%2016.7048%208.05202%2016.4486%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.215%2011.2859%2013.319%2011.6996L14.1979%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6418%2015.5971L10.5908%2013.6817C10.2296%2013.4549%209.77045%2013.4549%209.40924%2013.6817L6.35828%2015.5971C6.07553%2015.7746%205.72072%2015.5168%205.80217%2015.1931L6.68105%2011.6996C6.7851%2011.2859%206.64322%2010.8493%206.31592%2010.5758L3.55145%208.26607C3.29525%208.05202%203.43078%207.63492%203.76386%207.61233L7.358%207.36863C7.78352%207.33978%208.15498%207.0699%208.31391%206.67412L9.65633%203.3312C9.78074%203.0214%2010.2193%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A",starIncomplete:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_177)%22%3E%0A%3Cmask%20id%3D%22mask0_613_177%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%2210%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2220%22%3E%0A%3Crect%20x%3D%2210.3704%22%20y%3D%220.37037%22%20width%3D%229.25926%22%20height%3D%2219.2593%22%20fill%3D%22%23C4C4C4%22%20stroke%3D%22%23F7D564%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fmask%3E%0A%3Cg%20mask%3D%22url(%23mask0_613_177)%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.845%207.0699%2012.2165%207.33978%2012.642%207.36863L16.2361%207.61233C16.5692%207.63492%2016.7047%208.05202%2016.4485%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.2149%2011.2859%2013.3189%2011.6996L14.1978%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6417%2015.5971L10.5908%2013.6817C10.2295%2013.4549%209.77039%2013.4549%209.40918%2013.6817L6.35822%2015.5971C6.07547%2015.7746%205.72066%2015.5168%205.80211%2015.1931L6.68098%2011.6996C6.78504%2011.2859%206.64316%2010.8493%206.31586%2010.5758L3.55139%208.26607C3.29519%208.05202%203.43072%207.63492%203.7638%207.61233L7.35793%207.36863C7.78346%207.33978%208.15491%207.0699%208.31385%206.67412L9.65627%203.3312C9.78068%203.0214%2010.2192%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fg%3E%0A%3Cmask%20id%3D%22mask1_613_177%22%20style%3D%22mask-type%3Aalpha%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2220%22%3E%0A%3Crect%20width%3D%2210%22%20height%3D%2220%22%20fill%3D%22%23C4C4C4%22%2F%3E%0A%3C%2Fmask%3E%0A%3Cg%20mask%3D%22url(%23mask1_613_177)%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.845%207.0699%2012.2165%207.33978%2012.642%207.36863L16.2361%207.61233C16.5692%207.63492%2016.7047%208.05202%2016.4485%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.2149%2011.2859%2013.3189%2011.6996L14.1978%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6417%2015.5971L10.5908%2013.6817C10.2295%2013.4549%209.77039%2013.4549%209.40918%2013.6817L6.35822%2015.5971C6.07547%2015.7746%205.72066%2015.5168%205.80211%2015.1931L6.68098%2011.6996C6.78504%2011.2859%206.64316%2010.8493%206.31586%2010.5758L3.55139%208.26607C3.29519%208.05202%203.43072%207.63492%203.7638%207.61233L7.35793%207.36863C7.78346%207.33978%208.15491%207.0699%208.31385%206.67412L9.65627%203.3312C9.78068%203.0214%2010.2192%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_177%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A",starFull:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.3437%203.3312L11.6861%206.67412C11.8451%207.0699%2012.2165%207.33978%2012.6421%207.36863L16.2362%207.61233C16.5693%207.63492%2016.7048%208.05202%2016.4486%208.26608L13.6841%2010.5758C13.3568%2010.8493%2013.215%2011.2859%2013.319%2011.6996L14.1979%2015.1931C14.2793%2015.5168%2013.9245%2015.7746%2013.6418%2015.5971L10.5908%2013.6817C10.2296%2013.4549%209.77045%2013.4549%209.40924%2013.6817L6.35828%2015.5971C6.07553%2015.7746%205.72072%2015.5168%205.80217%2015.1931L6.68105%2011.6996C6.7851%2011.2859%206.64322%2010.8493%206.31592%2010.5758L3.55145%208.26607C3.29525%208.05202%203.43078%207.63492%203.76386%207.61233L7.358%207.36863C7.78352%207.33978%208.15498%207.0699%208.31391%206.67412L9.65633%203.3312C9.78074%203.0214%2010.2193%203.0214%2010.3437%203.3312Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%23FFBD37%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A"},f0={progress0:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3C%2Fsvg%3E%0A",progress25:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M16.2963%209.99991C16.2963%209.17307%2016.1335%208.35432%2015.8171%207.59042C15.5006%206.82652%2015.0369%206.13242%2014.4522%205.54776C13.8675%204.96309%2013.1734%204.49931%2012.4095%204.18289C11.6456%203.86647%2010.8269%203.70361%2010%203.70361L10%209.99991H16.2963Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A",progress50:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M10%2016.2962C11.6699%2016.2962%2013.2714%2015.6328%2014.4522%2014.4521C15.633%2013.2713%2016.2963%2011.6698%2016.2963%209.99991C16.2963%208.33003%2015.633%206.72854%2014.4522%205.54776C13.2714%204.36697%2011.6699%203.70361%2010%203.70361L10%209.99991L10%2016.2962Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A",progress75:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Cpath%20d%3D%22M3.70374%209.99991C3.70374%2011.2452%204.07301%2012.4625%204.76485%2013.4979C5.4567%2014.5334%206.44005%2015.3404%207.59054%2015.8169C8.74104%2016.2935%2010.007%2016.4182%2011.2284%2016.1752C12.4497%2015.9323%2013.5716%2015.3326%2014.4522%2014.4521C15.3327%2013.5715%2015.9324%2012.4496%2016.1753%2011.2283C16.4183%2010.0069%2016.2936%208.74092%2015.8171%207.59042C15.3405%206.43992%2014.5335%205.45658%2013.4981%204.76473C12.4626%204.07288%2011.2453%203.70361%2010%203.70361L10%209.99991L3.70374%209.99991Z%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A",progress100:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99993%22%20r%3D%226.66667%22%20stroke%3D%22%237A7A7A%22%20stroke-width%3D%220.740741%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%229.99991%22%20r%3D%226.2963%22%20fill%3D%22%237A7A7A%22%2F%3E%0A%3C%2Fsvg%3E%0A"},C0={signal0:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A",signal25:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A",signal50:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A",signal75:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93921%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70435%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A",signal100:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%2214.4764%22%20y%3D%222.98926%22%20width%3D%222.3%22%20height%3D%2214.0597%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%2210.7255%22%20y%3D%225.93933%22%20width%3D%222.3%22%20height%3D%2211.1096%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%226.97455%22%20y%3D%229.70447%22%20width%3D%222.3%22%20height%3D%227.3443%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3Crect%20x%3D%223.22363%22%20y%3D%2213.3302%22%20width%3D%222.3%22%20height%3D%223.71851%22%20rx%3D%220.5%22%20fill%3D%22%230493EE%22%2F%3E%0A%3C%2Fsvg%3E%0A"},D0={guffaw:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M16.887%2010C16.887%2013.8037%2013.8036%2016.8871%209.99999%2016.8871C6.19638%2016.8871%203.11295%2013.8037%203.11295%2010C3.11295%206.19644%206.19638%203.11301%209.99999%203.11301C13.8036%203.11301%2016.887%206.19644%2016.887%2010Z%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M12.5355%2013.5821C13.0482%2013.1841%2013.3951%2012.6107%2013.5405%2012.0327C13.5934%2011.8226%2013.5051%2011.6349%2013.3518%2011.5331C13.2036%2011.4346%2013.0031%2011.4203%2012.8265%2011.5131C11.0615%2012.4407%208.94609%2012.4427%207.1828%2011.513C7.00629%2011.4199%206.80602%2011.4343%206.65798%2011.5329C6.50518%2011.6346%206.41701%2011.8217%206.46844%2012.0312C6.61029%2012.609%206.95079%2013.1833%207.46449%2013.5821C8.14361%2014.1093%209.05608%2014.3999%2010%2014.3999C10.9439%2014.3999%2011.8564%2014.1093%2012.5355%2013.5821Z%22%20fill%3D%22white%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.4%22%2F%3E%0A%3C%2Fsvg%3E%0A",smile:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2011.8518C7.03705%2011.8518%207.77779%2013.7037%2010%2013.7037C12.2222%2013.7037%2012.963%2011.8518%2012.963%2011.8518%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A",noninductive:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.9259%22%20width%3D%221.48148%22%20height%3D%221.11111%22%20rx%3D%220.555556%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.9259%22%20width%3D%221.48148%22%20height%3D%221.11111%22%20rx%3D%220.555556%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2012.5927C7.03705%2012.5927%208.14816%2012.5927%2010.3704%2012.5927C12.5926%2012.5927%2012.963%2012.5927%2012.963%2012.5927%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A",dissatisfied:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.03705%2013.7037C7.03705%2013.7037%207.77779%2011.8519%2010%2011.8519C12.2222%2011.8519%2012.963%2013.7037%2012.963%2013.7037%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.962963%22%20stroke-linecap%3D%22round%22%2F%3E%0A%3C%2Fsvg%3E%0A",impatient:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%229.99999%22%20cy%3D%2210%22%20r%3D%226.88704%22%20fill%3D%22%23FFBD37%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.3%22%2F%3E%0A%3Crect%20x%3D%227.40741%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Crect%20x%3D%2211.1111%22%20y%3D%227.40735%22%20width%3D%221.48148%22%20height%3D%221.48148%22%20rx%3D%220.740741%22%20fill%3D%22%238F5F00%22%2F%3E%0A%3Cpath%20d%3D%22M7.47573%2011.731C6.96306%2012.129%206.61613%2012.7024%206.47071%2013.2804C6.41784%2013.4905%206.50617%2013.6782%206.65942%2013.78C6.80761%2013.8785%207.00813%2013.8928%207.18477%2013.8C8.9498%2012.8724%2011.0652%2012.8704%2012.8285%2013.8002C13.005%2013.8932%2013.2052%2013.8788%2013.3533%2013.7802C13.5061%2013.6785%2013.5942%2013.4914%2013.5428%2013.2819C13.401%2012.7041%2013.0605%2012.1298%2012.5468%2011.731C11.8676%2011.2038%2010.9552%2010.9132%2010.0112%2010.9132C9.06732%2010.9132%208.15485%2011.2038%207.47573%2011.731Z%22%20fill%3D%22white%22%20stroke%3D%22%238F5F00%22%20stroke-width%3D%220.4%22%2F%3E%0A%3C%2Fsvg%3E%0A"},m0={"down-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M8.90467%203.99244C8.84611%204.1338%208.84611%204.31301%208.84611%204.67143V13.716L5.92068%2010.7906C5.66724%2010.5371%205.54052%2010.4104%205.39916%2010.3519C5.21067%2010.2738%204.9989%2010.2738%204.81041%2010.3519C4.66905%2010.4104%204.54233%2010.5371%204.28889%2010.7906C4.03545%2011.044%203.90873%2011.1707%203.85018%2011.3121C3.77211%2011.5006%203.77211%2011.7124%203.85018%2011.9008C3.90873%2012.0422%204.03545%2012.1689%204.28889%2012.4224L9.03476%2017.1682C9.07839%2017.2127%209.12737%2017.2617%209.18231%2017.3166L9.18239%2017.3167L9.18241%2017.3167C9.40545%2017.5398%209.53035%2017.6647%209.65346%2017.7313C9.67085%2017.7408%209.6882%2017.7492%209.70577%2017.7564C9.89425%2017.8345%2010.106%2017.8345%2010.2945%2017.7564C10.4359%2017.6979%2010.5626%2017.5712%2010.816%2017.3177C10.8986%2017.2352%2010.9677%2017.1661%2011.0253%2017.1056L15.7095%2012.4214L15.7095%2012.4213C15.963%2012.1679%2016.0897%2012.0412%2016.1482%2011.8998C16.2263%2011.7114%2016.2263%2011.4996%2016.1482%2011.3111C16.0897%2011.1697%2015.963%2011.043%2015.7095%2010.7896C15.4561%2010.5361%2015.3294%2010.4094%2015.188%2010.3509C14.9995%2010.2728%2014.7878%2010.2728%2014.5993%2010.3509C14.4579%2010.4094%2014.3312%2010.5361%2014.0778%2010.7896L14.0777%2010.7896L11.1538%2013.7135V4.67142C11.1538%204.31301%2011.1538%204.1338%2011.0953%203.99244C11.0172%203.80395%2010.8674%203.6542%2010.6789%203.57613C10.5376%203.51758%2010.3584%203.51758%209.99996%203.51758C9.64154%203.51758%209.46233%203.51758%209.32097%203.57613C9.13249%203.6542%208.98274%203.80395%208.90467%203.99244Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A","right-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.32508%2011.7609C3.46644%2011.8194%203.64565%2011.8194%204.00407%2011.8194H13.049L10.1235%2014.745C9.87002%2014.9984%209.7433%2015.1251%209.68475%2015.2665C9.60668%2015.455%209.60668%2015.6668%209.68475%2015.8552C9.7433%2015.9966%209.87002%2016.1233%2010.1235%2016.3768C10.3769%2016.6302%2010.5036%2016.7569%2010.645%2016.8155C10.8335%2016.8935%2011.0452%2016.8935%2011.2337%2016.8155C11.3751%2016.7569%2011.5018%2016.6302%2011.7552%2016.3768L16.5105%2011.6215C16.5524%2011.5803%2016.5983%2011.5344%2016.6493%2011.4834L16.6495%2011.4831C16.8561%2011.2765%2016.9785%2011.1542%2017.0484%2011.0394C17.0648%2011.0128%2017.0782%2010.9866%2017.0893%2010.9599C17.1674%2010.7714%2017.1674%2010.5596%2017.0893%2010.3711C17.0308%2010.2298%2016.904%2010.1031%2016.6506%209.84962C16.5685%209.76752%2016.4997%209.69872%2016.4394%209.64123L11.7542%204.95601C11.5007%204.70257%2011.374%204.57585%2011.2327%204.5173C11.0442%204.43923%2010.8324%204.43923%2010.6439%204.5173C10.5026%204.57585%2010.3758%204.70257%2010.1224%204.95601L10.1224%204.95601C9.86895%205.20945%209.74223%205.33617%209.68368%205.47753C9.60561%205.66601%209.60561%205.87779%209.68368%206.06627C9.74223%206.20764%209.86895%206.33436%2010.1224%206.5878L13.0463%209.51175H4.00407C3.64565%209.51175%203.46644%209.51175%203.32508%209.5703C3.1366%209.64837%202.98685%209.79812%202.90877%209.98661C2.85022%2010.128%202.85022%2010.3072%202.85022%2010.6656C2.85022%2011.024%202.85022%2011.2032%202.90877%2011.3446C2.98685%2011.5331%203.1366%2011.6828%203.32508%2011.7609Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","up-green":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.0936%2017.3406C11.1522%2017.1992%2011.1522%2017.02%2011.1522%2016.6616V7.61701L14.0776%2010.5424C14.3311%2010.7959%2014.4578%2010.9226%2014.5991%2010.9811C14.7876%2011.0592%2014.9994%2011.0592%2015.1879%2010.9811C15.3292%2010.9226%2015.456%2010.7959%2015.7094%2010.5424C15.9628%2010.289%2016.0896%2010.1623%2016.1481%2010.0209C16.2262%209.83243%2016.2262%209.62066%2016.1481%209.43217C16.0896%209.29081%2015.9628%209.16409%2015.7094%208.91065L10.9645%204.16576C10.9207%204.12105%2010.8714%204.07178%2010.8161%204.01648L10.8159%204.0163C10.5916%203.792%2010.4666%203.66696%2010.3428%203.60058C10.3261%203.59154%2010.3094%203.58358%2010.2925%203.57658C10.104%203.49851%209.89226%203.49851%209.70378%203.57658C9.56242%203.63514%209.4357%203.76186%209.18226%204.0153C9.09955%204.09801%209.03034%204.16722%208.97258%204.22785L4.28878%208.91166C4.03534%209.1651%203.90862%209.29182%203.85006%209.43318C3.77199%209.62166%203.77199%209.83344%203.85006%2010.0219C3.90862%2010.1633%204.03534%2010.29%204.28878%2010.5434C4.54221%2010.7969%204.66893%2010.9236%204.8103%2010.9822C4.99878%2011.0602%205.21056%2011.0602%205.39904%2010.9822C5.5404%2010.9236%205.66712%2010.7969%205.92056%2010.5434L5.92056%2010.5434L8.84449%207.61951V16.6616C8.84449%2017.02%208.84449%2017.1992%208.90305%2017.3406C8.98112%2017.5291%209.13087%2017.6788%209.31935%2017.7569C9.46072%2017.8154%209.63992%2017.8154%209.99834%2017.8154C10.3568%2017.8154%2010.536%2017.8154%2010.6773%2017.7569C10.8658%2017.6788%2011.0156%2017.5291%2011.0936%2017.3406Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndDown-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.5062%206.72126C4.56476%206.86262%204.69148%206.98934%204.94492%207.24278L11.3404%2013.6382L7.20313%2013.6382C6.84471%2013.6382%206.66551%2013.6382%206.52414%2013.6968C6.33566%2013.7749%206.18591%2013.9246%206.10784%2014.1131C6.04928%2014.2545%206.04928%2014.4337%206.04928%2014.7921C6.04928%2015.1505%206.04928%2015.3297%206.10784%2015.4711C6.18591%2015.6596%206.33566%2015.8093%206.52414%2015.8874C6.66551%2015.9459%206.84471%2015.9459%207.20313%2015.9459L13.9194%2015.9459C13.9805%2015.9465%2014.0484%2015.9465%2014.1243%2015.9465H14.1243C14.4353%2015.9465%2014.6114%2015.9465%2014.7449%2015.9082C14.7659%2015.9023%2014.7859%2015.8954%2014.8052%2015.8874C14.9937%2015.8093%2015.1434%2015.6596%2015.2215%2015.4711C15.2801%2015.3297%2015.2801%2015.1505%2015.2801%2014.7921C15.2801%2014.6767%2015.2801%2014.5799%2015.2781%2014.497L15.2781%207.86957C15.2781%207.51115%2015.2781%207.33194%2015.2195%207.19058C15.1415%207.0021%2014.9917%206.85235%2014.8032%206.77428C14.6619%206.71572%2014.4827%206.71572%2014.1243%206.71572C13.7658%206.71572%2013.5866%206.71572%2013.4453%206.77428C13.2568%206.85235%2013.107%207.0021%2013.029%207.19058C12.9704%207.33194%2012.9704%207.51115%2012.9704%207.86957L12.9704%2012.0047L6.5767%205.61099C6.32326%205.35755%206.19654%205.23083%206.05518%205.17228C5.8667%205.09421%205.65492%205.09421%205.46644%205.17228C5.32508%205.23083%205.19836%205.35755%204.94492%205.61099C4.69148%205.86443%204.56476%205.99115%204.5062%206.13251C4.42813%206.32099%204.42813%206.53277%204.5062%206.72126Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndUp-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.05431%2016.1597C6.19567%2016.1012%206.32239%2015.9745%206.57583%2015.721L12.9712%209.32568L12.9712%2013.4626C12.9712%2013.821%2012.9712%2014.0002%2013.0297%2014.1416C13.1078%2014.3301%2013.2576%2014.4798%2013.446%2014.5579C13.5874%2014.6164%2013.7666%2014.6164%2014.125%2014.6164C14.4834%2014.6164%2014.6626%2014.6164%2014.804%2014.5579C14.9925%2014.4798%2015.1422%2014.3301%2015.2203%2014.1416C15.2789%2014.0002%2015.2789%2013.821%2015.2789%2013.4626L15.2789%206.75233C15.2795%206.68972%2015.2795%206.62004%2015.2795%206.54182L15.2795%206.54157C15.2795%206.22585%2015.2795%206.04918%2015.2395%205.91495C15.2339%205.89605%2015.2276%205.878%2015.2203%205.86053C15.1422%205.67204%2014.9925%205.52229%2014.804%205.44422C14.6626%205.38567%2014.4834%205.38567%2014.125%205.38567L14.125%205.38567C14.0075%205.38567%2013.9093%205.38567%2013.8254%205.38773L7.20256%205.38773C6.84414%205.38773%206.66493%205.38773%206.52357%205.44628C6.33509%205.52436%206.18534%205.6741%206.10727%205.86259C6.04871%206.00395%206.04871%206.18315%206.04871%206.54156V6.54157L6.04871%206.54159C6.04871%206.9%206.04871%207.0792%206.10727%207.22056C6.18534%207.40905%206.33509%207.55879%206.52357%207.63687C6.66493%207.69542%206.84414%207.69542%207.20256%207.69542H11.3379L4.94405%2014.0892C4.69061%2014.3427%204.56389%2014.4694%204.50533%2014.6108C4.42726%2014.7992%204.42726%2015.011%204.50533%2015.1995C4.56389%2015.3409%204.69061%2015.4676%204.94405%2015.721C5.19749%2015.9745%205.32421%2016.1012%205.46557%2016.1597C5.65405%2016.2378%205.86583%2016.2378%206.05431%2016.1597Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","down-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M8.90467%203.99244C8.84611%204.1338%208.84611%204.31301%208.84611%204.67143V13.716L5.92068%2010.7906C5.66724%2010.5371%205.54052%2010.4104%205.39916%2010.3519C5.21067%2010.2738%204.9989%2010.2738%204.81041%2010.3519C4.66905%2010.4104%204.54233%2010.5371%204.28889%2010.7906C4.03545%2011.044%203.90873%2011.1707%203.85018%2011.3121C3.77211%2011.5006%203.77211%2011.7124%203.85018%2011.9008C3.90873%2012.0422%204.03545%2012.1689%204.28889%2012.4224L9.03476%2017.1682C9.07839%2017.2127%209.12737%2017.2617%209.18231%2017.3166L9.18239%2017.3167L9.18241%2017.3167C9.40545%2017.5398%209.53035%2017.6647%209.65346%2017.7313C9.67085%2017.7408%209.6882%2017.7492%209.70577%2017.7564C9.89425%2017.8345%2010.106%2017.8345%2010.2945%2017.7564C10.4359%2017.6979%2010.5626%2017.5712%2010.816%2017.3177C10.8986%2017.2352%2010.9677%2017.1661%2011.0253%2017.1056L15.7095%2012.4214L15.7095%2012.4213C15.963%2012.1679%2016.0897%2012.0412%2016.1482%2011.8998C16.2263%2011.7114%2016.2263%2011.4996%2016.1482%2011.3111C16.0897%2011.1697%2015.963%2011.043%2015.7095%2010.7896C15.4561%2010.5361%2015.3294%2010.4094%2015.188%2010.3509C14.9995%2010.2728%2014.7878%2010.2728%2014.5993%2010.3509C14.4579%2010.4094%2014.3312%2010.5361%2014.0778%2010.7896L14.0777%2010.7896L11.1538%2013.7135V4.67142C11.1538%204.31301%2011.1538%204.1338%2011.0953%203.99244C11.0172%203.80395%2010.8674%203.6542%2010.6789%203.57613C10.5376%203.51758%2010.3584%203.51758%209.99996%203.51758C9.64154%203.51758%209.46233%203.51758%209.32097%203.57613C9.13249%203.6542%208.98274%203.80395%208.90467%203.99244Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","right-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3.32508%2011.7609C3.46644%2011.8194%203.64565%2011.8194%204.00407%2011.8194H13.049L10.1235%2014.745C9.87002%2014.9984%209.7433%2015.1251%209.68475%2015.2665C9.60668%2015.455%209.60668%2015.6668%209.68475%2015.8552C9.7433%2015.9966%209.87002%2016.1233%2010.1235%2016.3768C10.3769%2016.6302%2010.5036%2016.7569%2010.645%2016.8155C10.8335%2016.8935%2011.0452%2016.8935%2011.2337%2016.8155C11.3751%2016.7569%2011.5018%2016.6302%2011.7552%2016.3768L16.5105%2011.6215C16.5524%2011.5803%2016.5983%2011.5344%2016.6493%2011.4834L16.6495%2011.4831C16.8561%2011.2765%2016.9785%2011.1542%2017.0484%2011.0394C17.0648%2011.0128%2017.0782%2010.9866%2017.0893%2010.9599C17.1674%2010.7714%2017.1674%2010.5596%2017.0893%2010.3711C17.0308%2010.2298%2016.904%2010.1031%2016.6506%209.84962C16.5685%209.76752%2016.4997%209.69872%2016.4394%209.64123L11.7542%204.95601C11.5007%204.70257%2011.374%204.57585%2011.2327%204.5173C11.0442%204.43923%2010.8324%204.43923%2010.6439%204.5173C10.5026%204.57585%2010.3758%204.70257%2010.1224%204.95601L10.1224%204.95601C9.86895%205.20945%209.74223%205.33617%209.68368%205.47753C9.60561%205.66601%209.60561%205.87779%209.68368%206.06627C9.74223%206.20764%209.86895%206.33436%2010.1224%206.5878L13.0463%209.51175H4.00407C3.64565%209.51175%203.46644%209.51175%203.32508%209.5703C3.1366%209.64837%202.98685%209.79812%202.90877%209.98661C2.85022%2010.128%202.85022%2010.3072%202.85022%2010.6656C2.85022%2011.024%202.85022%2011.2032%202.90877%2011.3446C2.98685%2011.5331%203.1366%2011.6828%203.32508%2011.7609Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","up-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.0936%2017.3406C11.1522%2017.1992%2011.1522%2017.02%2011.1522%2016.6616V7.61701L14.0776%2010.5424C14.3311%2010.7959%2014.4578%2010.9226%2014.5991%2010.9811C14.7876%2011.0592%2014.9994%2011.0592%2015.1879%2010.9811C15.3292%2010.9226%2015.456%2010.7959%2015.7094%2010.5424C15.9628%2010.289%2016.0896%2010.1623%2016.1481%2010.0209C16.2262%209.83243%2016.2262%209.62066%2016.1481%209.43217C16.0896%209.29081%2015.9628%209.16409%2015.7094%208.91065L10.9645%204.16576C10.9207%204.12105%2010.8714%204.07178%2010.8161%204.01648L10.8159%204.0163C10.5916%203.792%2010.4666%203.66696%2010.3428%203.60058C10.3261%203.59154%2010.3094%203.58358%2010.2925%203.57658C10.104%203.49851%209.89226%203.49851%209.70378%203.57658C9.56242%203.63514%209.4357%203.76186%209.18226%204.0153C9.09955%204.09801%209.03034%204.16722%208.97258%204.22785L4.28878%208.91166C4.03534%209.1651%203.90862%209.29182%203.85006%209.43318C3.77199%209.62166%203.77199%209.83344%203.85006%2010.0219C3.90862%2010.1633%204.03534%2010.29%204.28878%2010.5434C4.54221%2010.7969%204.66893%2010.9236%204.8103%2010.9822C4.99878%2011.0602%205.21056%2011.0602%205.39904%2010.9822C5.5404%2010.9236%205.66712%2010.7969%205.92056%2010.5434L5.92056%2010.5434L8.84449%207.61951V16.6616C8.84449%2017.02%208.84449%2017.1992%208.90305%2017.3406C8.98112%2017.5291%209.13087%2017.6788%209.31935%2017.7569C9.46072%2017.8154%209.63992%2017.8154%209.99834%2017.8154C10.3568%2017.8154%2010.536%2017.8154%2010.6773%2017.7569C10.8658%2017.6788%2011.0156%2017.5291%2011.0936%2017.3406Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndDown-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.5062%206.72126C4.56476%206.86262%204.69148%206.98934%204.94492%207.24278L11.3404%2013.6382L7.20313%2013.6382C6.84471%2013.6382%206.66551%2013.6382%206.52414%2013.6968C6.33566%2013.7749%206.18591%2013.9246%206.10784%2014.1131C6.04928%2014.2545%206.04928%2014.4337%206.04928%2014.7921C6.04928%2015.1505%206.04928%2015.3297%206.10784%2015.4711C6.18591%2015.6596%206.33566%2015.8093%206.52414%2015.8874C6.66551%2015.9459%206.84471%2015.9459%207.20313%2015.9459L13.9194%2015.9459C13.9805%2015.9465%2014.0484%2015.9465%2014.1243%2015.9465H14.1243C14.4353%2015.9465%2014.6114%2015.9465%2014.7449%2015.9082C14.7659%2015.9023%2014.7859%2015.8954%2014.8052%2015.8874C14.9937%2015.8093%2015.1434%2015.6596%2015.2215%2015.4711C15.2801%2015.3297%2015.2801%2015.1505%2015.2801%2014.7921C15.2801%2014.6767%2015.2801%2014.5799%2015.2781%2014.497L15.2781%207.86957C15.2781%207.51115%2015.2781%207.33194%2015.2195%207.19058C15.1415%207.0021%2014.9917%206.85235%2014.8032%206.77428C14.6619%206.71572%2014.4827%206.71572%2014.1243%206.71572C13.7658%206.71572%2013.5866%206.71572%2013.4453%206.77428C13.2568%206.85235%2013.107%207.0021%2013.029%207.19058C12.9704%207.33194%2012.9704%207.51115%2012.9704%207.86957L12.9704%2012.0047L6.5767%205.61099C6.32326%205.35755%206.19654%205.23083%206.05518%205.17228C5.8667%205.09421%205.65492%205.09421%205.46644%205.17228C5.32508%205.23083%205.19836%205.35755%204.94492%205.61099C4.69148%205.86443%204.56476%205.99115%204.5062%206.13251C4.42813%206.32099%204.42813%206.53277%204.5062%206.72126Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","rightAndUp-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.05431%2016.1597C6.19567%2016.1012%206.32239%2015.9745%206.57583%2015.721L12.9712%209.32568L12.9712%2013.4626C12.9712%2013.821%2012.9712%2014.0002%2013.0297%2014.1416C13.1078%2014.3301%2013.2576%2014.4798%2013.446%2014.5579C13.5874%2014.6164%2013.7666%2014.6164%2014.125%2014.6164C14.4834%2014.6164%2014.6626%2014.6164%2014.804%2014.5579C14.9925%2014.4798%2015.1422%2014.3301%2015.2203%2014.1416C15.2789%2014.0002%2015.2789%2013.821%2015.2789%2013.4626L15.2789%206.75233C15.2795%206.68972%2015.2795%206.62004%2015.2795%206.54182L15.2795%206.54157C15.2795%206.22585%2015.2795%206.04918%2015.2395%205.91495C15.2339%205.89605%2015.2276%205.878%2015.2203%205.86053C15.1422%205.67204%2014.9925%205.52229%2014.804%205.44422C14.6626%205.38567%2014.4834%205.38567%2014.125%205.38567L14.125%205.38567C14.0075%205.38567%2013.9093%205.38567%2013.8254%205.38773L7.20256%205.38773C6.84414%205.38773%206.66493%205.38773%206.52357%205.44628C6.33509%205.52436%206.18534%205.6741%206.10727%205.86259C6.04871%206.00395%206.04871%206.18315%206.04871%206.54156V6.54157L6.04871%206.54159C6.04871%206.9%206.04871%207.0792%206.10727%207.22056C6.18534%207.40905%206.33509%207.55879%206.52357%207.63687C6.66493%207.69542%206.84414%207.69542%207.20256%207.69542H11.3379L4.94405%2014.0892C4.69061%2014.3427%204.56389%2014.4694%204.50533%2014.6108C4.42726%2014.7992%204.42726%2015.011%204.50533%2015.1995C4.56389%2015.3409%204.69061%2015.4676%204.94405%2015.721C5.19749%2015.9745%205.32421%2016.1012%205.46557%2016.1597C5.65405%2016.2378%205.86583%2016.2378%206.05431%2016.1597Z%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A"},F0={cross:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%223.70374%22%20y%3D%228.14795%22%20width%3D%2212.5926%22%20height%3D%223.7037%22%20rx%3D%220.740741%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",up:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M9.44533%205.81157C9.74012%205.47858%2010.2598%205.47858%2010.5546%205.81157L16.2868%2012.2867C16.71%2012.7647%2016.3706%2013.5184%2015.7322%2013.5184H4.26776C3.62933%2013.5184%203.28995%2012.7647%203.71313%2012.2867L9.44533%205.81157Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A",down:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M10.5547%2014.1884C10.2599%2014.5214%209.74019%2014.5214%209.4454%2014.1884L3.71321%207.71335C3.29002%207.23532%203.6294%206.48161%204.26784%206.48161L15.7322%206.48161C16.3707%206.48161%2016.7101%207.23532%2016.2869%207.71335L10.5547%2014.1884Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A","rhomboid-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M2.1415%2011.1984C1.8412%2010.9074%201.8412%2010.4256%202.1415%2010.1346L9.48467%203.01785C9.77196%202.73942%2010.2284%202.73942%2010.5157%203.01786L17.8586%2010.1346C18.1589%2010.4256%2018.1589%2010.9074%2017.8586%2011.1984L10.5157%2018.3151C10.2284%2018.5936%209.77196%2018.5936%209.48467%2018.3152L2.1415%2011.1984Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A","rhomboid-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M2.1415%2011.1984C1.8412%2010.9074%201.8412%2010.4256%202.1415%2010.1346L9.48467%203.01785C9.77196%202.73942%2010.2284%202.73942%2010.5157%203.01786L17.8586%2010.1346C18.1589%2010.4256%2018.1589%2010.9074%2017.8586%2011.1984L10.5157%2018.3151C10.2284%2018.5936%209.77196%2018.5936%209.48467%2018.3152L2.1415%2011.1984Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-greed":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-pink":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23FB9D9D%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-gray":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22%23999999%22%2F%3E%0A%3C%2Fsvg%3E%0A","roundness-black":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210.6664%22%20r%3D%227.03704%22%20fill%3D%22black%22%2F%3E%0A%3C%2Fsvg%3E%0A","triangle-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_237)%22%3E%0A%3Cpath%20d%3D%22M9.32308%204.41301C9.58368%203.82623%2010.4164%203.82623%2010.677%204.413L15.9526%2016.2917C16.1701%2016.7815%2015.8115%2017.3331%2015.2756%2017.3331H4.72454C4.18858%2017.3331%203.83002%2016.7815%204.04756%2016.2917L9.32308%204.41301Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_237%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%20transform%3D%22translate(0%200.666504)%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A","indicate-greed":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A","indicate-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","indicate-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%222.76941%22%20y%3D%222.76941%22%20width%3D%2214.4612%22%20height%3D%2214.4612%22%20rx%3D%223%22%20fill%3D%22black%22%2F%3E%0A%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%224.5%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A"},w0={mistake2:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.12194%206.33702C4.1805%206.47839%204.30722%206.6051%204.56066%206.85854L8.36822%2010.6661L4.56062%2014.4737C4.30718%2014.7272%204.18046%2014.8539%204.12191%2014.9952C4.04384%2015.1837%204.04384%2015.3955%204.12191%2015.584C4.18046%2015.7253%204.30718%2015.8521%204.56062%2016.1055C4.81406%2016.3589%204.94078%2016.4857%205.08214%2016.5442C5.27062%2016.6223%205.4824%2016.6223%205.67089%2016.5442C5.81225%2016.4857%205.93897%2016.3589%206.19241%2016.1055L10%2012.2979L13.8074%2016.1053C14.0609%2016.3588%2014.1876%2016.4855%2014.329%2016.544C14.5174%2016.6221%2014.7292%2016.6221%2014.9177%2016.544C15.0591%2016.4855%2015.1858%2016.3588%2015.4392%2016.1053L15.4392%2016.1053C15.6927%2015.8519%2015.8194%2015.7252%2015.8779%2015.5838C15.956%2015.3953%2015.956%2015.1835%2015.8779%2014.9951C15.8194%2014.8537%2015.6927%2014.727%2015.4392%2014.4735L15.4392%2014.4735L11.6318%2010.6661L15.4392%206.85872C15.6926%206.60528%2015.8193%206.47856%2015.8779%206.3372C15.956%206.14871%2015.956%205.93694%2015.8779%205.74845C15.8193%205.60709%2015.6926%205.48037%2015.4392%205.22693C15.1857%204.97349%2015.059%204.84677%2014.9177%204.78822C14.7292%204.71015%2014.5174%204.71015%2014.3289%204.78822C14.1876%204.84677%2014.0608%204.97349%2013.8074%205.22693L10%209.03433L6.19244%205.22676C5.939%204.97332%205.81228%204.8466%205.67092%204.78805C5.48244%204.70997%205.27066%204.70997%205.08218%204.78805C4.94082%204.8466%204.8141%204.97332%204.56066%205.22676L4.56066%205.22676C4.30722%205.4802%204.1805%205.60692%204.12194%205.74828C4.04387%205.93676%204.04387%206.14854%204.12194%206.33702Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A",warn2:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M8.49778%205.00963C8.48513%204.56774%208.47881%204.3468%208.56086%204.17746C8.63301%204.02856%208.75124%203.90689%208.89802%203.83052C9.06494%203.74365%209.28597%203.74365%209.72805%203.74365H10.272C10.714%203.74365%2010.9351%203.74365%2011.102%203.83052C11.2488%203.9069%2011.367%204.02856%2011.4392%204.17746C11.5212%204.3468%2011.5149%204.56775%2011.5022%205.00964L11.2644%2013.3173C11.2524%2013.737%2011.2464%2013.9468%2011.1609%2014.1065C11.0857%2014.2471%2010.9687%2014.3609%2010.826%2014.432C10.6639%2014.5129%2010.454%2014.5129%2010.0342%2014.5129H9.96582C9.54601%2014.5129%209.33611%2014.5129%209.17397%2014.432C9.0313%2014.3609%208.91426%2014.2471%208.83904%2014.1065C8.75357%2013.9468%208.74756%2013.737%208.73555%2013.3173L8.49778%205.00963Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3Crect%20x%3D%228.76917%22%20y%3D%2215.2817%22%20width%3D%222.46154%22%20height%3D%222.46154%22%20rx%3D%220.769231%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A",correct2:"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cg%20clip-path%3D%22url(%23clip0_613_248)%22%3E%0A%3Cpath%20d%3D%22M15.689%205.69723C15.5476%205.75578%2015.4209%205.8825%2015.1675%206.13594L7.82436%2013.4791L4.83279%2010.4875C4.57935%2010.2341%204.45263%2010.1073%204.31127%2010.0488C4.12278%209.97071%203.91101%209.97071%203.72252%2010.0488C3.58116%2010.1073%203.45444%2010.2341%203.201%2010.4875C2.94756%2010.7409%202.82084%2010.8676%202.76229%2011.009C2.68422%2011.1975%202.68422%2011.4093%202.76229%2011.5978C2.82084%2011.7391%202.94756%2011.8658%203.201%2012.1193L7.0085%2015.9268C7.26194%2016.1802%207.38866%2016.3069%207.53002%2016.3655C7.7185%2016.4436%207.93028%2016.4436%208.11876%2016.3655C8.26013%2016.3069%208.38685%2016.1802%208.64028%2015.9268C8.66387%2015.9032%208.68636%2015.8807%208.7078%2015.8592L16.7993%207.76772C17.0527%207.51428%2017.1794%207.38756%2017.238%207.2462C17.3161%207.05772%2017.3161%206.84594%2017.238%206.65746C17.1794%206.5161%2017.0527%206.38938%2016.7993%206.13594C16.5458%205.8825%2016.4191%205.75578%2016.2777%205.69723C16.0893%205.61915%2015.8775%205.61915%2015.689%205.69723Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fg%3E%0A%3Cdefs%3E%0A%3CclipPath%20id%3D%22clip0_613_248%22%3E%0A%3Crect%20width%3D%2220%22%20height%3D%2220%22%20fill%3D%22white%22%20transform%3D%22translate(0%200.666504)%22%2F%3E%0A%3C%2FclipPath%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A"},v0={"flag-green":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%2359D01E%22%2F%3E%0A%3C%2Fsvg%3E%0A","flag-gold":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%23FFBD37%22%2F%3E%0A%3C%2Fsvg%3E%0A","flag-red":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2221%22%20viewBox%3D%220%200%2020%2021%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.4274%204.74935C14.0982%205.1012%2013.1363%205.13675%2012.3604%205.03379C11.5776%204.93009%2010.9487%204.68342%2010.2456%204.40416L10.2246%204.39527C9.53411%204.1212%208.76945%203.8175%207.81312%203.69157C6.84279%203.56268%205.71016%203.61898%204.24802%204.0049C4.09343%204.04217%203.95538%204.13393%203.85649%204.26515C3.7576%204.39636%203.70374%204.55925%203.70374%204.72712V17.3197C3.70374%2017.5162%203.79534%2017.7046%203.92654%2017.8435C4.05773%2017.9824%204.25893%2018.0605%204.44448%2018.0605C4.63002%2018.0605%204.84911%2017.9824%204.98031%2017.8435C5.11151%2017.7046%205.18522%2017.5162%205.18522%2017.3197V14.9123V12.5049C6.24649%2012.2738%206.97081%2012.2605%207.63962%2012.3486C8.42246%2012.4523%209.05139%2012.699%209.75448%2012.9782L9.77546%2012.9871C10.466%2013.2612%2011.2306%2013.5649%2012.1869%2013.6908C13.1601%2013.8197%2014.2976%2013.7627%2015.7667%2013.3738C15.8866%2013.3421%2016.0727%2013.2135%2016.1483%2013.111C16.2238%2013.0084%2016.2963%2012.8204%2016.2963%2012.6553V5.46787C16.2963%205.35535%2016.2721%205.24432%2016.2255%205.1432C16.1788%205.04208%2016.1111%204.95353%2016.0274%204.88428C15.9436%204.81502%2015.846%204.76688%2015.7421%204.7435C15.6382%204.72012%2015.494%204.73173%2015.4274%204.74935Z%22%20fill%3D%22%23FE4B4B%22%2F%3E%0A%3C%2Fsvg%3E%0A"},p0={"cell-0":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A","cell-25":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%224.00098%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3C%2Fsvg%3E%0A","cell-50":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A","cell-75":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211%22%20y%3D%2211.001%22%20width%3D%225%22%20height%3D%225%22%20rx%3D%221%22%20fill%3D%22%23E5E5E5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A","cell-100":"data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%2211.251%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%224.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3Crect%20x%3D%2211.25%22%20y%3D%224.25098%22%20width%3D%224.5%22%20height%3D%224.5%22%20rx%3D%220.75%22%20fill%3D%22%230493EE%22%20stroke%3D%22%230493EE%22%20stroke-width%3D%220.5%22%2F%3E%0A%3C%2Fsvg%3E%0A"},F={feedback:h0,star:g0,progress:f0,signal:C0,feeling:D0,arrow:m0,shape:F0,feedback2:w0,flag:v0,cell:p0},U2=[{title:"sheet.cf.iconSet.direction",group:[{name:"3Arrows",list:[F.arrow["up-green"],F.arrow["right-gold"],F.arrow["down-red"]]},{name:"3ArrowsGray",list:[F.arrow["up-gray"],F.arrow["right-gray"],F.arrow["down-gray"]]},{name:"4Arrows",list:[F.arrow["up-green"],F.arrow["rightAndUp-gold"],F.arrow["rightAndDown-gold"],F.arrow["down-red"]]},{name:"4ArrowsGray",list:[F.arrow["up-gray"],F.arrow["rightAndUp-gray"],F.arrow["rightAndDown-gray"],F.arrow["down-gray"]]},{name:"5Arrows",list:[F.arrow["up-green"],F.arrow["rightAndUp-gold"],F.arrow["right-gold"],F.arrow["rightAndDown-gold"],F.arrow["down-red"]]},{name:"5ArrowsGray",list:[F.arrow["up-gray"],F.arrow["rightAndUp-gray"],F.arrow["right-gray"],F.arrow["rightAndDown-gray"],F.arrow["down-gray"]]},{name:"3Triangles",list:[F.shape.up,F.shape.cross,F.shape.down]}]},{title:"sheet.cf.iconSet.shape",group:[{name:"3TrafficLights1",list:[F.shape["roundness-greed"],F.shape["roundness-gold"],F.shape["roundness-red"]]},{name:"3Signs",list:[F.shape["roundness-greed"],F.shape["triangle-gold"],F.shape["rhomboid-red"]]},{name:"3TrafficLights2",list:[F.shape["indicate-greed"],F.shape["indicate-gold"],F.shape["indicate-red"]]},{name:"4RedToBlack",list:[F.shape["roundness-red"],F.shape["roundness-pink"],F.shape["roundness-gray"],F.shape["roundness-black"]]},{name:"4TrafficLights",list:[F.shape["roundness-greed"],F.shape["roundness-gold"],F.shape["roundness-red"],F.shape["roundness-black"]]}]},{title:"sheet.cf.iconSet.mark",group:[{name:"3Symbols",list:[F.feedback.correct,F.feedback.warn,F.feedback.mistake]},{name:"3Symbols2",list:[F.feedback2.correct2,F.feedback2.warn2,F.feedback2.mistake2]},{name:"3Flags",list:[F.flag["flag-green"],F.flag["flag-gold"],F.flag["flag-red"]]}]},{title:"sheet.cf.iconSet.rank",group:[{name:"4Rating",list:[F.signal.signal25,F.signal.signal50,F.signal.signal75,F.signal.signal100]},{name:"5Rating",list:[F.signal.signal0,F.signal.signal25,F.signal.signal50,F.signal.signal75,F.signal.signal100]},{name:"5Quarters",list:[F.progress.progress100,F.progress.progress75,F.progress.progress50,F.progress.progress25,F.progress.progress0]},{name:"_5Felling",list:[F.feeling.guffaw,F.feeling.smile,F.feeling.noninductive,F.feeling.dissatisfied,F.feeling.impatient]},{name:"5Boxes",list:[F.cell["cell-100"],F.cell["cell-75"],F.cell["cell-50"],F.cell["cell-25"],F.cell["cell-0"]]},{name:"3Stars",list:[F.star.starFull,F.star.starIncomplete,F.star.starEmpty]}]}],w2=U2.reduce((i,a)=>{const{group:e}=a;for(const t of e)i[t.name]=t.list;return i},{});for(const i in w2){const a=w2[i];Object.freeze(a)}const N2="EMPTY_ICON_TYPE",_2={type:C.CommandType.MUTATION,id:"sheet.mutation.move-conditional-rule",handler(i,a){if(!a)return!1;const{unitId:e,subUnitId:t,start:n,end:r}=a;return i.get(exports.ConditionalFormattingRuleModel).moveRulePriority(e,t,n,r),!0}},E0=i=>{const{unitId:a,subUnitId:e}=i,t=V2(i.start,i.end);if(!t)return[];const[n,r]=t;return[{id:_2.id,params:{unitId:a,subUnitId:e,start:n,end:r}}]},P2=(i,a)=>{const e=i.get(exports.ConditionalFormattingRuleModel),{unitId:t,subUnitId:n,cfId:r}=a,s=[...e.getSubunitRules(t,n)||[]],o=s.findIndex(u=>u.cfId===r),l=s[o-1];if(o>-1){const u=s[o],c=[{id:B2.id,params:{unitId:t,subUnitId:n,rule:C.Tools.deepClone(u)}}];if(s.splice(o,1),o!==0){const d=s[0];if(d){const f=$2({id:d.cfId,type:"before"},{id:l.cfId,type:"after"},s,m=>m.cfId);if(!f)return c;const[h,D]=f,g={unitId:t,subUnitId:n,start:h,end:D};c.push({id:_2.id,params:g})}}return c}return[]},y2={type:C.CommandType.MUTATION,id:"sheet.mutation.delete-conditional-rule",handler(i,a){if(!a)return!1;const{unitId:e,subUnitId:t,cfId:n}=a;return i.get(exports.ConditionalFormattingRuleModel).deleteRule(e,t,n),!0}},A0=(i,a)=>({id:y2.id,params:{unitId:a.unitId,subUnitId:a.subUnitId,cfId:a.rule.cfId}}),B2={type:C.CommandType.MUTATION,id:"sheet.mutation.add-conditional-rule",handler(i,a){if(!a)return!1;const{unitId:e,subUnitId:t,rule:n}=a;return i.get(exports.ConditionalFormattingRuleModel).addRule(e,t,n),!0}},m2={type:C.CommandType.MUTATION,id:"sheet.mutation.conditional-formatting-formula-mark-dirty",handler(){return!0}},T2={type:C.CommandType.MUTATION,id:"sheet.mutation.set-conditional-rule",handler(i,a){if(!a)return!1;const{unitId:e,subUnitId:t,rule:n}=a,r=a.cfId||a.rule.cfId;return i.get(exports.ConditionalFormattingRuleModel).setRule(e,t,n,r),!0}},M0=(i,a)=>{const e=i.get(exports.ConditionalFormattingRuleModel),{unitId:t,subUnitId:n}=a,r=a.cfId||a.rule.cfId,s=e.getRule(t,n,r);return s?[{id:T2.id,params:{unitId:t,subUnitId:n,cfId:r,rule:C.Tools.deepClone(s)}}]:[]},x0="ssheets-conditional-formatting.config",_0={};var y0=Object.defineProperty,R0=Object.getOwnPropertyDescriptor,S0=(i,a,e,t)=>{for(var n=t>1?void 0:t?R0(a,e):a,r=i.length-1,s;r>=0;r--)(s=i[r])&&(n=(t?s(a,e,n):s(n))||n);return t&&n&&y0(a,e,n),n},D2=(i,a)=>(e,t)=>a(e,t,i),P=(i=>(i[i.NOT_REGISTER=1]="NOT_REGISTER",i[i.SUCCESS=2]="SUCCESS",i[i.WAIT=3]="WAIT",i[i.ERROR=4]="ERROR",i))(P||{});const b0=i=>{const a=i&&i[0]&&i[0][0];return(a==null?void 0:a.t)===C.CellValueType.BOOLEAN?a.v===C.BooleanNumber.TRUE||a.v===!0:a?a.v:!1};exports.ConditionalFormattingFormulaService=class extends C.Disposable{constructor(e,t,n,r,s){super();b(this,"_formulaMap",new Map);b(this,"_cache",new Map);this._commandService=e,this._injector=t,this._activeDirtyManagerService=n,this._conditionalFormattingViewModel=r,this._conditionalFormattingRuleModel=s,this._initFormulaCalculationResultChange(),this._initRuleChange(),this._initCache(),this.disposeWithMe(C.toDisposable(()=>{this._cache.clear(),this._formulaMap.clear()}))}_initCache(){const e=this._injector.get(exports.ConditionalFormattingService);this.disposeWithMe(e.ruleComputeStatus$.subscribe(t=>{const{unitId:n,subUnitId:r,status:s,result:o,cfId:l}=t;s==="end"&&o&&this._ensureCacheMap(n,r).set(l,o)})),this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.subscribe(t=>{if(t.type==="delete"){const{unitId:n,subUnitId:r,rule:s}=t;this._deleteCache(n,r,s.cfId)}}))}_initRuleChange(){const e=t=>{switch(t.type){case q.colorScale:return t.config.some(n=>n.value.type===J.formula);case q.highlightCell:return t.subType===V.formula;case q.dataBar:return[t.config.max,t.config.min].some(n=>n.type===J.formula);case q.iconSet:return t.config.some(n=>n.value.type===J.formula)}};this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.subscribe(t=>{const{unitId:n,subUnitId:r,rule:s,oldRule:o}=t;t.type==="delete"&&this._removeFormulaByCfId(n,r,s.cfId),t.type==="set"&&(e(s.rule)||o&&e(o.rule))&&this._removeFormulaByCfId(n,r,s.cfId)}))}_initFormulaCalculationResultChange(){this.disposeWithMe(this._commandService.onCommandExecuted(e=>{if(e.id===n2.SetFormulaCalculationResultMutation.id){const t=e.params;for(const n in t.unitOtherData)for(const r in t.unitOtherData[n]){const s=new Set;for(const o in t.unitOtherData[n][r]){const l=new C.ObjectMatrix(t.unitOtherData[n][r][o]),u=this._ensureSubunitFormulaMap(n,r).getValue(o,["formulaId"]);if(!u)continue;const c=u.ranges;if(!c)continue;const d=u.result,f=c[0].startRow,h=c[0].startColumn;l.forValue((D,g,m)=>{d.setValue(f+D,h+g,b0(m))}),u.status=2,s.add(u.cfId)}for(const o of s){const l=this._conditionalFormattingRuleModel.getRule(n,r,o);l&&this._conditionalFormattingViewModel.markRuleDirty(n,r,l)}}}})),this._activeDirtyManagerService.register(m2.id,{commandId:m2.id,getDirtyData(e){return{dirtyUnitOtherFormulaMap:e.params}}})}_ensureSubunitFormulaMap(e,t){let n=this._formulaMap.get(e);n||(n=new Map,this._formulaMap.set(e,n));let r=n.get(t);return r||(r=new C.RefAlias([],["formulaId","id"]),n.set(t,r)),r}_ensureCacheMap(e,t){let n=this._cache.get(e);n||(n=new Map,this._cache.set(e,n));let r=n.get(t);return r||(r=new Map,n.set(t,r)),r}_deleteCache(e,t,n){const r=this._cache.get(e);if(r){const s=r.get(t);s&&(n?s.delete(n):s.clear())}}getCache(e,t,n){return this._ensureCacheMap(e,t).get(n)}getSubUnitFormulaMap(e,t){var n;return(n=this._formulaMap.get(e))==null?void 0:n.get(t)}registerFormulaWithRange(e,t,n,r,s=[{startRow:0,endRow:0,startColumn:0,endColumn:0}]){const o=this._ensureSubunitFormulaMap(e,t);if(o.getValue(this.createCFormulaId(n,r),["id"]))return;const l=this._createFormulaId(e,t);o.addValue({formulaText:r,cfId:n,id:this.createCFormulaId(n,r),ranges:s,formulaId:l,status:3,result:new C.ObjectMatrix});const u={unitId:e,subUnitId:t,formulaMap:{[l]:{f:r,ranges:s}}};this._commandService.executeCommand(n2.SetOtherFormulaMutation.id,u).then(()=>{this._commandService.executeCommand(m2.id,{[e]:{[t]:{[l]:!0}}})})}_removeFormulaByCfId(e,t,n){const r=this._ensureSubunitFormulaMap(e,t);r.deleteValue(n);const s=r.getValues().filter(l=>l.cfId===n);s.forEach(l=>{r.deleteValue(l.id,["id"])});const o=s.map(l=>l.formulaId);this._commandService.executeCommand(n2.RemoveOtherFormulaMutation.id,{unitId:e,subUnitId:t,formulaIdList:o})}getFormulaResult(e,t,n,r,s=0,o=0){const l=this.getSubUnitFormulaMap(e,t);if(!l)return{status:1};const u=l.getValue(this.createCFormulaId(n,r),["id"]);return u?u.status===2&&u.result?{result:u.result.getValue(s,o),status:2}:u.status===3?{status:3}:{status:4}:{status:1}}_createFormulaId(e,t){return`sheet.cf_${e}_${t}_${C.Tools.generateRandomId(8)}`}createCFormulaId(e,t){return`${e}_${t}`}};exports.ConditionalFormattingFormulaService=S0([D2(0,C.Inject(C.ICommandService)),D2(1,C.Inject(C.Injector)),D2(2,C.Inject(n2.IActiveDirtyManagerService)),D2(3,C.Inject(E2)),D2(4,C.Inject(exports.ConditionalFormattingRuleModel))],exports.ConditionalFormattingFormulaService);var I0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function L0(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var j2={exports:{}};(function(i,a){(function(e,t){i.exports=t()})(I0,function(){var e=1e3,t=6e4,n=36e5,r="millisecond",s="second",o="minute",l="hour",u="day",c="week",d="month",f="quarter",h="year",D="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(M){var E=["th","st","nd","rd"],w=M%100;return"["+M+(E[(w-20)%10]||E[w]||E[0])+"]"}},S=function(M,E,w){var A=String(M);return!A||A.length>=E?M:""+Array(E+1-A.length).join(w)+M},B={s:S,z:function(M){var E=-M.utcOffset(),w=Math.abs(E),A=Math.floor(w/60),p=w%60;return(E<=0?"+":"-")+S(A,2,"0")+":"+S(p,2,"0")},m:function M(E,w){if(E.date()<w.date())return-M(w,E);var A=12*(w.year()-E.year())+(w.month()-E.month()),p=E.clone().add(A,d),x=w-p<0,_=E.clone().add(A+(x?-1:1),d);return+(-(A+(w-p)/(x?p-_:_-p))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:d,y:h,w:c,d:u,D,h:l,m:o,s,ms:r,Q:f}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},j="en",N={};N[j]=R;var c2="$isDayjsObject",e2=function(M){return M instanceof Z||!(!M||!M[c2])},r2=function M(E,w,A){var p;if(!E)return j;if(typeof E=="string"){var x=E.toLowerCase();N[x]&&(p=x),w&&(N[x]=w,p=x);var _=E.split("-");if(!p&&_.length>1)return M(_[0])}else{var I=E.name;N[I]=E,p=I}return!A&&p&&(j=p),p||!A&&j},L=function(M,E){if(e2(M))return M.clone();var w=typeof E=="object"?E:{};return w.date=M,w.args=arguments,new Z(w)},y=B;y.l=r2,y.i=e2,y.w=function(M,E){return L(M,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var Z=function(){function M(w){this.$L=r2(w.locale,null,!0),this.parse(w),this.$x=this.$x||w.x||{},this[c2]=!0}var E=M.prototype;return E.parse=function(w){this.$d=function(A){var p=A.date,x=A.utc;if(p===null)return new Date(NaN);if(y.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var _=p.match(m);if(_){var I=_[2]-1||0,O=(_[7]||"0").substring(0,3);return x?new Date(Date.UTC(_[1],I,_[3]||1,_[4]||0,_[5]||0,_[6]||0,O)):new Date(_[1],I,_[3]||1,_[4]||0,_[5]||0,_[6]||0,O)}}return new Date(p)}(w),this.init()},E.init=function(){var w=this.$d;this.$y=w.getFullYear(),this.$M=w.getMonth(),this.$D=w.getDate(),this.$W=w.getDay(),this.$H=w.getHours(),this.$m=w.getMinutes(),this.$s=w.getSeconds(),this.$ms=w.getMilliseconds()},E.$utils=function(){return y},E.isValid=function(){return this.$d.toString()!==g},E.isSame=function(w,A){var p=L(w);return this.startOf(A)<=p&&p<=this.endOf(A)},E.isAfter=function(w,A){return L(w)<this.startOf(A)},E.isBefore=function(w,A){return this.endOf(A)<L(w)},E.$g=function(w,A,p){return y.u(w)?this[A]:this.set(p,w)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(w,A){var p=this,x=!!y.u(A)||A,_=y.p(w),I=function(a2,W){var t2=y.w(p.$u?Date.UTC(p.$y,W,a2):new Date(p.$y,W,a2),p);return x?t2:t2.endOf(u)},O=function(a2,W){return y.w(p.toDate()[a2].apply(p.toDate("s"),(x?[0,0,0,0]:[23,59,59,999]).slice(W)),p)},$=this.$W,U=this.$M,Y=this.$D,u2="set"+(this.$u?"UTC":"");switch(_){case h:return x?I(1,0):I(31,11);case d:return x?I(1,U):I(0,U+1);case c:var s2=this.$locale().weekStart||0,f2=($<s2?$+7:$)-s2;return I(x?Y-f2:Y+(6-f2),U);case u:case D:return O(u2+"Hours",0);case l:return O(u2+"Minutes",1);case o:return O(u2+"Seconds",2);case s:return O(u2+"Milliseconds",3);default:return this.clone()}},E.endOf=function(w){return this.startOf(w,!1)},E.$set=function(w,A){var p,x=y.p(w),_="set"+(this.$u?"UTC":""),I=(p={},p[u]=_+"Date",p[D]=_+"Date",p[d]=_+"Month",p[h]=_+"FullYear",p[l]=_+"Hours",p[o]=_+"Minutes",p[s]=_+"Seconds",p[r]=_+"Milliseconds",p)[x],O=x===u?this.$D+(A-this.$W):A;if(x===d||x===h){var $=this.clone().set(D,1);$.$d[I](O),$.init(),this.$d=$.set(D,Math.min(this.$D,$.daysInMonth())).$d}else I&&this.$d[I](O);return this.init(),this},E.set=function(w,A){return this.clone().$set(w,A)},E.get=function(w){return this[y.p(w)]()},E.add=function(w,A){var p,x=this;w=Number(w);var _=y.p(A),I=function(U){var Y=L(x);return y.w(Y.date(Y.date()+Math.round(U*w)),x)};if(_===d)return this.set(d,this.$M+w);if(_===h)return this.set(h,this.$y+w);if(_===u)return I(1);if(_===c)return I(7);var O=(p={},p[o]=t,p[l]=n,p[s]=e,p)[_]||1,$=this.$d.getTime()+w*O;return y.w($,this)},E.subtract=function(w,A){return this.add(-1*w,A)},E.format=function(w){var A=this,p=this.$locale();if(!this.isValid())return p.invalidDate||g;var x=w||"YYYY-MM-DDTHH:mm:ssZ",_=y.z(this),I=this.$H,O=this.$m,$=this.$M,U=p.weekdays,Y=p.months,u2=p.meridiem,s2=function(W,t2,C2,M2){return W&&(W[t2]||W(A,x))||C2[t2].slice(0,M2)},f2=function(W){return y.s(I%12||12,W,"0")},a2=u2||function(W,t2,C2){var M2=W<12?"AM":"PM";return C2?M2.toLowerCase():M2};return x.replace(v,function(W,t2){return t2||function(C2){switch(C2){case"YY":return String(A.$y).slice(-2);case"YYYY":return y.s(A.$y,4,"0");case"M":return $+1;case"MM":return y.s($+1,2,"0");case"MMM":return s2(p.monthsShort,$,Y,3);case"MMMM":return s2(Y,$);case"D":return A.$D;case"DD":return y.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return s2(p.weekdaysMin,A.$W,U,2);case"ddd":return s2(p.weekdaysShort,A.$W,U,3);case"dddd":return U[A.$W];case"H":return String(I);case"HH":return y.s(I,2,"0");case"h":return f2(1);case"hh":return f2(2);case"a":return a2(I,O,!0);case"A":return a2(I,O,!1);case"m":return String(O);case"mm":return y.s(O,2,"0");case"s":return String(A.$s);case"ss":return y.s(A.$s,2,"0");case"SSS":return y.s(A.$ms,3,"0");case"Z":return _}return null}(W)||_.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(w,A,p){var x,_=this,I=y.p(A),O=L(w),$=(O.utcOffset()-this.utcOffset())*t,U=this-O,Y=function(){return y.m(_,O)};switch(I){case h:x=Y()/12;break;case d:x=Y();break;case f:x=Y()/3;break;case c:x=(U-$)/6048e5;break;case u:x=(U-$)/864e5;break;case l:x=U/n;break;case o:x=U/t;break;case s:x=U/e;break;default:x=U}return p?x:y.a(x)},E.daysInMonth=function(){return this.endOf(d).$D},E.$locale=function(){return N[this.$L]},E.locale=function(w,A){if(!w)return this.$L;var p=this.clone(),x=r2(w,A,!0);return x&&(p.$L=x),p},E.clone=function(){return y.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},M}(),z=Z.prototype;return L.prototype=z,[["$ms",r],["$s",s],["$m",o],["$H",l],["$W",u],["$M",d],["$y",h],["$D",D]].forEach(function(M){z[M[1]]=function(E){return this.$g(E,M[0],M[1])}}),L.extend=function(M,E){return M.$i||(M(E,Z,L),M.$i=!0),L},L.locale=r2,L.isDayjs=e2,L.unix=function(M){return L(1e3*M)},L.en=N[j],L.Ls=N,L.p={},L})})(j2);var B0=j2.exports;const k=L0(B0);function v2(i,a){return Math.abs(i-a)<Number.EPSILON}const X=i=>[void 0,null].includes(i),Q=i=>{var t,n;if(!i)return null;if(i.t===C.CellValueType.BOOLEAN)return i.v===C.BooleanNumber.TRUE?n2.BooleanValue.TRUE:n2.BooleanValue.FALSE;const a=i.v,e=(n=(t=i.p)==null?void 0:t.body)==null?void 0:n.dataStream.replace(/\r\n$/,"");return X(a)?X(e)?null:e:a},R2=86400;function W2(i,a=!0){if(a&&i>=0){if(i===0)return[1900,1,0];if(i===60)return[1900,2,29];if(i<60)return[1900,i<32?1:2,(i-1)%31+1]}let e=i+68569+2415019;const t=Math.floor(4*e/146097);e=e-Math.floor((146097*t+3)/4);const n=Math.floor(4e3*(e+1)/1461001);e=e-Math.floor(1461*n/4)+31;const r=Math.floor(80*e/2447),s=e-Math.floor(2447*r/80);e=Math.floor(r/11);const o=r+2-12*e;return[100*(t-49)+n+e|0,o|0,s|0]}const q2=i=>{let a=i|0;const e=R2*(i-a);let t=Math.floor(e);e-t>.9999&&(t+=1,t===R2&&(t=0,a+=1));const n=t<0?R2+t:t,[r,s,o]=W2(i,!0),l=Math.floor(n/60/60)%60,u=Math.floor(n/60)%60,c=Math.floor(n)%60;return k(`${r}/${s}/${o} ${l}:${u}:${c}`).valueOf()},p2=(i,a,e)=>{switch(i.type){case J.max:{let t=0;return a.forValue((n,r,s)=>{s>t&&(t=s)}),{status:P.SUCCESS,result:t}}case J.min:{let t;return a.forValue((n,r,s)=>{t===void 0&&(t=s),s<t&&(t=s)}),{status:P.SUCCESS,result:t}}case J.percent:{let t,n;a.forValue((o,l,u)=>{(t===void 0||n===void 0)&&(t=u,n=u),u>t&&(t=u),u<n&&(n=u)});const r=(t||0)-(n||0),s=Math.max(Math.min(Number(i.value)||0,100),0);return{status:P.SUCCESS,result:r*(s/100)+(n||0)}}case J.percentile:{const t=a.toNativeArray().sort((u,c)=>u-c),n=Math.max(Math.min(Number(i.value)||0,100),0),r=(t.length-1)*n/100,s=Math.floor(r),o=r-s,l=t[s]+(t[Math.min(s+1,t.length-1)]-t[s])*o;return{status:P.SUCCESS,result:l}}case J.formula:{const{accessor:t,unitId:n,subUnitId:r,cfId:s}=e,o=String(i.value),l=t.get(exports.ConditionalFormattingFormulaService);return l.registerFormulaWithRange(n,r,s,o),l.getFormulaResult(n,r,s,o)}case J.num:{const t=Number(i.value);return{status:P.SUCCESS,result:Number.isNaN(t)?0:t}}}},T0=(i,a,e,t)=>{const{accessor:n}=t,r=n.get(E2),s=new C.ObjectMatrix;return e.ranges.forEach(o=>{C.Range.foreach(o,(l,u)=>{const c=r.getCellCf(i,a,l,u);if(c){const d=c.cfList.find(f=>f.cfId===e.cfId);d!=null&&d.ruleCache&&s.setValue(l,u,d.ruleCache)}})}),s},h2=(i,a)=>{switch(i.operator){case T.between:{if(typeof i.value!="object"||!i.value.length)return;const e=Math.min(...i.value),t=Math.max(...i.value);return a>=e&&a<=t}case T.notBetween:{if(typeof i.value!="object"||!i.value.length)return;const e=Math.min(...i.value),t=Math.max(...i.value);return!(a>=e&&a<=t)}case T.equal:{const e=i.value||0;return v2(e,a)}case T.notEqual:{const e=i.value||0;return!v2(e,a)}case T.greaterThan:{const e=i.value||0;return a>e}case T.greaterThanOrEqual:{const e=i.value||0;return a>=e}case T.lessThan:{const e=i.value||0;return a<e}case T.lessThanOrEqual:{const e=i.value||0;return a<=e}default:return!1}},Z2=i=>{switch(i){case T.greaterThan:return T.lessThanOrEqual;case T.greaterThanOrEqual:return T.lessThan;case T.lessThan:return T.greaterThanOrEqual;case T.lessThanOrEqual:return T.greaterThan}return i},Y2=(i,a)=>{const e=r=>r.a!==void 0?r:{...r,a:1},t=i.findIndex(r=>r.value>=a),n=t-1;if(t===0)return i[0].color.toRgbString();if(n>=0){const r=i[n],s=i[t];if(r.color.isValid&&s.color.isValid){const o=e(r.color.toRgb()),l=e(s.color.toRgb()),u=s.value-r.value,c=(a-r.value)/u,d=["r","g","b","a"].reduce((h,D)=>{const g=o[D];return h[D]=(l[D]-g)*c+g,h},{});return new C.ColorKit(d).toRgbString()}}else return i[i.length-1].color.toRgbString()},A2=(i,a,e)=>i.map(t=>{if(t.startColumn>e||t.startRow>a)return null;const n={...t};return n.endRow=Math.min(n.endRow,a),n.endColumn=Math.min(n.endColumn,e),n}).filter(t=>!!t);function O0(i){let a=0;return new C.ObjectMatrix(i).forValue((e,t,n)=>{a=Math.max(Number.isNaN(a)?0:a,Number(n))}),a}const k0="",$0={type:q.colorScale,handle:async(i,a)=>{var d;const e=i.rule,t=a.accessor.get(exports.ConditionalFormattingFormulaService),{worksheet:n}=a,r=new C.ObjectMatrix,s=A2(i.ranges,n.getMaxRows()-1,n.getMaxColumns()-1);s.forEach(f=>{C.Range.foreach(f,(h,D)=>{const g=n==null?void 0:n.getCellRaw(h,D),m=g&&g.v;if(!X(m)&&(g==null?void 0:g.t)===C.CellValueType.NUMBER){const v=Number(m);!Number.isNaN(v)&&r.setValue(h,D,v)}})});const o=new C.ObjectMatrix;s.forEach(f=>{C.Range.foreach(f,(h,D)=>{o.setValue(h,D,k0)})});const l=[...e.config].sort((f,h)=>f.index-h.index).map(f=>({value:p2(f.value,r,{...a,cfId:i.cfId}),color:new C.ColorKit(f.color)}));if(l.some(f=>g2.isObject(f.value)?f.value.status!==P.SUCCESS:!1))return(d=t.getCache(a.unitId,a.subUnitId,i.cfId))!=null?d:o;const c=l.map(f=>f.color).reduce((f,h,D)=>(f.result.push({color:h,value:f.sortValue[D]}),f),{result:[],sortValue:l.map(f=>f.value.result).sort((f,h)=>f-h)}).result;return c.length<=1||r.forValue((f,h,D)=>{const g=Y2(c,D);g&&o.setValue(f,h,g)}),o}},H2="sheet-conditional-rule-data-bar",b2="#ffbe38",I2="#abd91a",V0=34;class G2 extends g2.SheetExtension{constructor(){super(...arguments);b(this,"_paddingRightAndLeft",2);b(this,"_paddingTopAndBottom",2);b(this,"uKey",H2);b(this,"Z_INDEX",V0);b(this,"_radius",1)}draw(e,t,n,r){const{worksheet:s}=n;if(!s)return!1;e.save(),C.Range.foreach(n.rowColumnSegment,(o,l)=>{if(!s.getRowVisible(o)||!s.getColVisible(l))return;const u=s.getCell(o,l);if(u&&u.dataBar){const{color:c,value:d,startPoint:f,isGradient:h}=u.dataBar,D=n.getCellByIndexWithNoHeader(o,l);let{isMerged:g,isMergedMainCell:m,mergeInfo:v,startY:R,endY:S,startX:B,endX:j}=D;if(g||(m&&(R=v.startY,S=v.endY,B=v.startX,j=v.endX),!this.isRenderDiffRangesByCell(v,r)))return;const N=j-B,c2=S+g2.FIX_ONE_PIXEL_BLUR_OFFSET-R,e2=N-this._paddingRightAndLeft*2,r2=c2-this._paddingTopAndBottom*2;if(d>0){const L=Math.max(e2*(1-f/100)*d/100,1),y=B+this._paddingRightAndLeft+f/100*e2,Z=R+this._paddingTopAndBottom;if(h){const z=e.createLinearGradient(y,Z,y+L,Z);z.addColorStop(0,c),z.addColorStop(1,"rgb(255 255 255)"),e.fillStyle=z,e.strokeStyle=c,e.lineWidth=1}else e.fillStyle=c;this._drawRectWithRoundedCorner(e,y,Z,L,r2,!1,!0,!0,!1),h&&e.stroke()}else{const L=Math.max(e2*f/100*Math.abs(d)/100,1),y=B+this._paddingRightAndLeft+f/100*e2-L,Z=R+this._paddingTopAndBottom;if(h){const z=e.createLinearGradient(y,Z,y+L,Z);z.addColorStop(0,"rgb(255 255 255)"),z.addColorStop(1,c),e.fillStyle=z,e.strokeStyle=c,e.lineWidth=1}else e.fillStyle=c;this._drawRectWithRoundedCorner(e,y,Z,L,r2,!0,!1,!1,!0),h&&e.stroke()}}}),e.restore()}_drawRectWithRoundedCorner(e,t,n,r,s,o,l,u,c){const d=this._radius;!s||!r||(e.beginPath(),e.moveTo(t+d,n),e.lineTo(t+r-d,n),l?e.arcTo(t+r,n,t+r,n+d,d):e.lineTo(t+r,n),e.lineTo(t+r,n+s-d),u?e.arcTo(t+r,n+s,t+r-d,n+s,d):e.lineTo(t+r,n+s),e.lineTo(t+d,n+s),c?e.arcTo(t,n+s,t,n+s-d,d):e.lineTo(t,n+s),e.lineTo(t,n+d),o?e.arcTo(t,n,t+d,n,d):e.lineTo(t,n),e.closePath(),e.fill())}}g2.SpreadsheetExtensionRegistry.add(G2);const l2={};Object.freeze(l2);const U0={type:q.dataBar,handle:async(i,a)=>{const e=i.rule,t=a.accessor.get(exports.ConditionalFormattingFormulaService),{worksheet:n}=a,r=new C.ObjectMatrix,s=A2(i.ranges,n.getMaxRows()-1,n.getMaxColumns()-1);s.forEach(g=>{C.Range.foreach(g,(m,v)=>{const R=n==null?void 0:n.getCellRaw(m,v),S=R&&R.v;if(!X(S)&&(R==null?void 0:R.t)===C.CellValueType.NUMBER){const B=Number(S);!Number.isNaN(B)&&r.setValue(m,v,B)}})});const o=new C.ObjectMatrix;s.forEach(g=>{C.Range.foreach(g,(m,v)=>{o.setValue(m,v,l2)})});const l=p2(e.config.min,r,{...a,cfId:i.cfId}),u=p2(e.config.max,r,{...a,cfId:i.cfId});let c=0,d=0;if(l.status===P.WAIT)return t.getCache(a.unitId,a.subUnitId,i.cfId)||o;if(l.status===P.SUCCESS){const g=Number(l.result);c=Number.isNaN(g)?0:g}else return o;if(u.status===P.WAIT)return t.getCache(a.unitId,a.subUnitId,i.cfId)||o;if(u.status===P.SUCCESS){const g=Number(u.result),m=Number.isNaN(g)?0:g;d=Math.max(m,c),c=Math.min(m,c)}else return o;const f=e.config.isGradient,h=e.isShowValue,D=g=>Math.max(Math.min(100,g),0);if(!(c===d||d<c)){if(c<0&&d<=0){const g=d-c,m=100;r.forValue((v,R,S)=>{if(S>d)return;const B=D((d-S)/g*100);o.setValue(v,R,{color:e.config.nativeColor||I2,startPoint:m,value:-B,isGradient:f,isShowValue:h})})}else if(c<0&&d>0){const g=Math.abs(d)+Math.abs(c),m=Math.abs(c)/g*100;r.forValue((v,R,S)=>{if(S)if(S>0){const B=D(Math.min(S/d,1)*100);o.setValue(v,R,{color:e.config.positiveColor||b2,startPoint:m,value:B,isGradient:f,isShowValue:h})}else{const B=D(Math.min(Math.abs(S)/Math.abs(c),1)*100);o.setValue(v,R,{color:e.config.nativeColor||I2,startPoint:m,value:-B,isGradient:f,isShowValue:h})}})}else if(c>=0&&d>0){const g=d-c,m=0;r.forValue((v,R,S)=>{if(S<c)return;const B=D((1-(d-S)/g)*100);o.setValue(v,R,{color:e.config.positiveColor||b2,startPoint:m,value:B,isGradient:f,isShowValue:h})})}}return o}},N0={type:q.highlightCell,handle:async(i,a)=>{const e=i.rule,{worksheet:t,unitId:n,subUnitId:r}=a,s=A2(i.ranges,t.getMaxRows()-1,t.getMaxColumns()-1),l=(()=>{switch(e.subType){case V.average:{let d=0,f=0;return s.forEach(h=>{C.Range.foreach(h,(D,g)=>{const m=t==null?void 0:t.getCellRaw(D,g),v=Q(m||void 0);m&&m.t===C.CellValueType.NUMBER&&v!==void 0&&(d+=Number(v)||0,f++)})}),{average:d/f}}case V.uniqueValues:case V.duplicateValues:{const d=new Map;return s.forEach(f=>{C.Range.foreach(f,(h,D)=>{const g=t==null?void 0:t.getCellRaw(h,D),m=Q(g||void 0);if(m!==void 0){const v=d.get(m);v?d.set(m,v+1):d.set(m,1)}})}),{count:d}}case V.rank:{const d=[];s.forEach(D=>{C.Range.foreach(D,(g,m)=>{const v=t==null?void 0:t.getCellRaw(g,m),R=Q(v||void 0);v&&v.t===C.CellValueType.NUMBER&&R!==void 0&&d.push(Number(R)||0)})}),d.sort((D,g)=>g-D);const f=i.rule,h=f.isPercent?Math.floor(Math.max(Math.min(f.value,100),0)/100*d.length):Math.floor(Math.max(Math.min(f.isBottom?f.value-1:f.value,d.length),0));return f.isBottom?{rank:d[d.length-h-1]}:{rank:d[Math.max(h-1,0)]}}case V.formula:{const d=e;a.accessor.get(exports.ConditionalFormattingFormulaService).registerFormulaWithRange(a.unitId,a.subUnitId,i.cfId,d.value,i.ranges);break}case V.timePeriod:switch(e.operator){case G.last7Days:return{timePeriod:{start:k().subtract(7,"day").valueOf(),end:k().valueOf()}};case G.lastMonth:return{timePeriod:{start:k().startOf("month").subtract(1,"month").valueOf(),end:k().endOf("month").subtract(1,"month").valueOf()}};case G.lastWeek:return{timePeriod:{start:k().startOf("week").subtract(1,"week").valueOf(),end:k().endOf("week").subtract(1,"week").valueOf()}};case G.nextMonth:return{timePeriod:{start:k().startOf("month").add(1,"month").valueOf(),end:k().endOf("month").add(1,"month").valueOf()}};case G.nextWeek:return{timePeriod:{start:k().startOf("week").add(1,"week").valueOf(),end:k().endOf("week").add(1,"week").valueOf()}};case G.thisMonth:return{timePeriod:{start:k().startOf("month").valueOf(),end:k().endOf("month").valueOf()}};case G.thisWeek:return{timePeriod:{start:k().startOf("week").valueOf(),end:k().endOf("week").valueOf()}};case G.today:return{timePeriod:{start:k().startOf("day").valueOf(),end:k().endOf("day").valueOf()}};case G.tomorrow:return{timePeriod:{start:k().startOf("day").add(1,"day").valueOf(),end:k().endOf("day").add(1,"day").valueOf()}};case G.yesterday:return{timePeriod:{start:k().startOf("day").subtract(1,"day").valueOf(),end:k().endOf("day").subtract(1,"day").valueOf()}}}}})(),u=(d,f)=>{const h=t==null?void 0:t.getCellRaw(d,f);switch(e.subType){case V.number:{const D=h&&Number(h.v);if(X(D)||Number.isNaN(D)||(h==null?void 0:h.t)!==C.CellValueType.NUMBER)return!1;const g=e;return h2({operator:g.operator,value:g.value||0},D||0)}case V.text:{const D=e,g=Q(h),m=g===null?"":String(g),v=D.value||"";switch(D.operator){case H.beginsWith:return m.startsWith(v);case H.containsBlanks:return/^\s*$/.test(m);case H.notContainsBlanks:return!/^\s*$/.test(m);case H.containsErrors:return n2.ERROR_TYPE_SET.has(m);case H.notContainsErrors:return!n2.ERROR_TYPE_SET.has(m);case H.containsText:return m.indexOf(v)>-1;case H.notContainsText:return m.indexOf(v)===-1;case H.endsWith:return m.endsWith(v);case H.equal:return m===v;case H.notEqual:return m!==v;default:return!1}}case V.timePeriod:{const D=Q(h);if(X(D)||Number.isNaN(Number(D))||(h==null?void 0:h.t)!==C.CellValueType.NUMBER)return!1;const g=q2(Number(D)),{start:m,end:v}=l.timePeriod;return g>=m&&g<=v}case V.average:{const D=h&&h.v,g=Number(D);if(X(D)||Number.isNaN(g)||(h==null?void 0:h.t)!==C.CellValueType.NUMBER)return!1;const m=e,v=l==null?void 0:l.average;switch(m.operator){case T.greaterThan:return g>v;case T.greaterThanOrEqual:return g>=v;case T.lessThan:return g<v;case T.lessThanOrEqual:return g<=v;case T.equal:return v2(g,v);case T.notEqual:return!v2(g,v);default:return!1}}case V.rank:{const D=Q(h),g=Number(D);if(X(D)||Number.isNaN(g)||(h==null?void 0:h.t)!==C.CellValueType.NUMBER)return!1;const m=l.rank;return e.isBottom?g<=m:g>=m}case V.uniqueValues:{const D=Q(h);return X(D)?!1:l.count.get(D)===1}case V.duplicateValues:{const D=Q(h);return X(D)?!1:l.count.get(D)!==1}case V.formula:{const D=e,m=a.accessor.get(exports.ConditionalFormattingFormulaService).getFormulaResult(n,r,i.cfId,D.value,d,f);return m&&m.status===P.SUCCESS?m.result===!0:!1}}},c=new C.ObjectMatrix;if(e.subType===V.formula){const d=e,f=a.accessor.get(exports.ConditionalFormattingFormulaService),h=f.getSubUnitFormulaMap(n,r),D=h==null?void 0:h.getValue(f.createCFormulaId(i.cfId,d.value),["id"]);if(!D||D.status!==P.SUCCESS)return f.getCache(n,r,i.cfId)||c}return s.forEach(d=>{C.Range.foreach(d,(f,h)=>{u(f,h)?c.setValue(f,h,e.style):c.setValue(f,h,l2)})}),c}},P0={type:q.iconSet,handle:async(i,a)=>{var f;const e=i.rule,t=a.accessor.get(exports.ConditionalFormattingFormulaService),{worksheet:n}=a,r=new C.ObjectMatrix,s=A2(i.ranges,n.getMaxRows()-1,n.getMaxColumns()-1);s.forEach(h=>{C.Range.foreach(h,(D,g)=>{const m=n==null?void 0:n.getCellRaw(D,g),v=m&&m.v;if(!X(v)&&(m==null?void 0:m.t)===C.CellValueType.NUMBER){const R=Number(v);!Number.isNaN(R)&&r.setValue(D,g,R)}})});const o=new C.ObjectMatrix;s.forEach(h=>{C.Range.foreach(h,(D,g)=>{o.setValue(D,g,l2)})});const l=e.config.map(h=>p2(h.value,r,{...a,cfId:i.cfId}));if(l.some(h=>h.status!==P.SUCCESS))return(f=t.getCache(a.unitId,a.subUnitId,i.cfId))!=null?f:o;const c=l.map((h,D)=>({operator:e.config[D].operator,value:Number(h.result)||0})).reduce((h,D,g,m)=>{const v=e.config[g];if(!g||g===m.length-1)h.push({...D,iconId:v.iconId,iconType:v.iconType});else{const R=m[g-1];h2(R,D.value)||h.push({...D,iconId:v.iconId,iconType:v.iconType})}return h},[]),d=e.isShowValue===void 0?!0:!!e.isShowValue;return r.forValue((h,D,g)=>{for(let m=0;m<c.length;m++){const v=c[m],R={...v},S={...v},{iconId:B,iconType:j}=v;if(m===0){if(h2(v,g)){o.setValue(h,D,{iconId:B,iconType:j,isShowValue:d});return}}else if(m===c.length-1){o.setValue(h,D,{iconId:B,iconType:j,isShowValue:d});return}else{const N=c[m-1];if(S.operator=Z2(N.operator),S.value=N.value,h2(R,g)&&h2(S,g)){o.setValue(h,D,{iconId:B,iconType:j,isShowValue:d});return}}}}),o}};var j0=Object.defineProperty,W0=Object.getOwnPropertyDescriptor,q0=(i,a,e,t)=>{for(var n=t>1?void 0:t?W0(a,e):a,r=i.length-1,s;r>=0;r--)(s=i[r])&&(n=(t?s(a,e,n):s(n))||n);return t&&n&&j0(a,e,n),n},o2=(i,a)=>(e,t)=>a(e,t,i);const Z0=C.createInterceptorKey("conditional-formatting-before-update-rule-result");exports.ConditionalFormattingService=class extends C.Disposable{constructor(e,t,n,r,s,o,l){super();b(this,"_ruleCacheMap",new Map);b(this,"_calculateUnit$",new F2.Subject);b(this,"_ruleComputeStatus$",new F2.Subject);b(this,"ruleComputeStatus$",this._ruleComputeStatus$.asObservable());b(this,"interceptorManager",new C.InterceptorManager({beforeUpdateRuleResult:Z0}));b(this,"_calculationUnitMap",new Map);this._conditionalFormattingRuleModel=e,this._injector=t,this._conditionalFormattingViewModel=n,this._univerInstanceService=r,this._resourceManagerService=s,this._sheetInterceptorService=o,this._commandService=l,this._initCellChange(),this._initCacheManager(),this._initRemoteCalculate(),this._initSnapshot(),this._initSheetChange(),this._registerCalculationUnit(U0),this._registerCalculationUnit($0),this._registerCalculationUnit(N0),this._registerCalculationUnit(P0),this._calculateUnit$.pipe(d2.bufferTime(100),d2.filter(u=>!!u.length),d2.map(u=>{const c=f=>`${f.unitId}_${f.subUnitId}_${f.rule.cfId}`;return u.reduce((f,h)=>{const D=c(h);return f.map[D]||(f.map[D]=h,f.list.push(h)),f},{map:{},list:[]}).list})).subscribe(u=>{u.forEach(c=>{this._handleCalculateUnit(c.unitId,c.subUnitId,c.rule)})}),this.disposeWithMe(()=>{this.interceptorManager.dispose()})}composeStyle(e,t,n,r){const s=this._conditionalFormattingViewModel.getCellCf(e,t,n,r);if(s){const o=s.cfList.map(c=>this._conditionalFormattingRuleModel.getRule(e,t,c.cfId)).filter(c=>!!c).reverse(),l=o.findIndex(c=>c==null?void 0:c.stopIfTrue);return l>-1&&o.splice(l+1),o.reduce((c,d)=>{var D;const f=d.rule.type,h=s.cfList.find(g=>g.cfId===d.cfId);if(h!=null&&h.isDirty&&this._calculateUnit$.next({unitId:e,subUnitId:t,rule:d}),f===q.highlightCell)h.ruleCache&&C.Tools.deepMerge(c,{style:h.ruleCache});else if(f===q.colorScale){const g=h==null?void 0:h.ruleCache;g&&typeof g=="string"&&(c.style={...(D=c.style)!=null?D:{},bg:{rgb:g}})}else if(f===q.dataBar){const g=h==null?void 0:h.ruleCache;g&&g!==l2&&(c.dataBar=g,c.isShowValue=g.isShowValue)}else if(f===q.iconSet){const g=h==null?void 0:h.ruleCache;g&&g!==l2&&(c.iconSet=g,c.isShowValue=g.isShowValue)}return c},{})}return null}_initSnapshot(){const e=n=>{const r=this._conditionalFormattingRuleModel.getUnitRules(n),s={};return r?(r.forEach((o,l)=>{s[l]=o}),JSON.stringify(s)):""},t=n=>{if(!n)return{};try{return JSON.parse(n)}catch{return{}}};this.disposeWithMe(this._resourceManagerService.registerPluginResource({pluginName:L2,businesses:[C.UniverInstanceType.UNIVER_SHEET],toJson:n=>e(n),parseJson:n=>t(n),onUnLoad:n=>{this._conditionalFormattingRuleModel.deleteUnitId(n)},onLoad:(n,r)=>{Object.keys(r).forEach(s=>{[...r[s]].reverse().forEach(l=>{this._conditionalFormattingRuleModel.addRule(n,s,l)})})}}))}_initSheetChange(){this.disposeWithMe(this._sheetInterceptorService.interceptCommand({getMutations:e=>{if(e.id===K.RemoveSheetCommand.id){const t=e.params,n=t.unitId||Y0(this._univerInstanceService),r=t.subUnitId||H0(this._univerInstanceService);if(!r)return{redos:[],undos:[]};const s=this._conditionalFormattingRuleModel.getSubunitRules(n,r);if(!s)return{redos:[],undos:[]};const o=[],l=[];return s.forEach(u=>{const c={unitId:n,subUnitId:r,cfId:u.cfId};o.push({id:y2.id,params:c}),l.push(...P2(this._injector,c))}),{redos:o,undos:l}}return{redos:[],undos:[]}}}))}_registerCalculationUnit(e){this._calculationUnitMap.set(e.type,e)}_getComputedCache(e,t,n){var r,s;return(s=(r=this._ruleCacheMap.get(e))==null?void 0:r.get(t))==null?void 0:s.get(n)}_setComputedCache(e,t,n,r){let s=this._ruleCacheMap.get(e);s||(s=new Map,this._ruleCacheMap.set(e,s));let o=s.get(t);o||(o=new Map,s.set(t,o)),o.set(n,r)}_deleteComputeCache(e,t,n){const r=this._ruleCacheMap.get(e),s=r==null?void 0:r.get(t);s&&(s.delete(n),s.size||r==null||r.delete(t))}_initCacheManager(){this.disposeWithMe(this._conditionalFormattingViewModel.markDirty$.subscribe(e=>{this._deleteComputeCache(e.unitId,e.subUnitId,e.rule.cfId)})),this.disposeWithMe(this._conditionalFormattingRuleModel.$ruleChange.pipe(d2.filter(e=>e.type!=="sort")).subscribe(e=>{const{unitId:t,subUnitId:n,rule:r}=e;this._deleteComputeCache(t,n,r.cfId)}))}_initCellChange(){this.disposeWithMe(this._commandService.onCommandExecuted(e=>{const t=(n,r,s)=>{const o=new Set;return s.forEach(([l,u])=>{const c=this._conditionalFormattingViewModel.getCellCf(n,r,l,u);c==null||c.cfList.forEach(d=>o.add(d.cfId))}),[...o].map(l=>this._conditionalFormattingRuleModel.getRule(n,r,l)).filter(l=>!!l)};switch(e.id){case K.SetRangeValuesMutation.id:{const n=e.params,{subUnitId:r,unitId:s,cellValue:o}=n,l=[];new C.ObjectMatrix(o).forValue((c,d,f)=>{f&&Object.keys(f).some(D=>["p","v"].includes(D))&&l.push([c,d])}),t(s,r,l).forEach(c=>{this._conditionalFormattingViewModel.markRuleDirty(s,r,c),this._deleteComputeCache(s,r,c.cfId)});break}case K.InsertColMutation.id:case K.RemoveColMutation.id:{const{range:n,unitId:r,subUnitId:s}=e.params,o=this._conditionalFormattingRuleModel.getSubunitRules(r,s),l={...n,endColumn:Number.MAX_SAFE_INTEGER};o&&o.filter(c=>c.ranges.some(d=>C.Rectangle.intersects(d,l))).forEach(c=>{this._conditionalFormattingViewModel.markRuleDirty(r,s,c),this._deleteComputeCache(r,s,c.cfId)});break}case K.RemoveRowMutation.id:case K.InsertRowMutation.id:{const{range:n,unitId:r,subUnitId:s}=e.params,o=this._conditionalFormattingRuleModel.getSubunitRules(r,s),l={...n,endRow:Number.MAX_SAFE_INTEGER};o&&o.filter(c=>c.ranges.some(d=>C.Rectangle.intersects(d,l))).forEach(c=>{this._conditionalFormattingViewModel.markRuleDirty(r,s,c),this._deleteComputeCache(r,s,c.cfId)});break}case K.MoveRowsMutation.id:{const{sourceRange:n,targetRange:r,unitId:s,subUnitId:o}=e.params,l=this._conditionalFormattingRuleModel.getSubunitRules(s,o),u={startRow:Math.min(n.startRow,r.startRow),endRow:Number.MAX_SAFE_INTEGER,startColumn:0,endColumn:Number.MAX_SAFE_INTEGER};l&&l.filter(d=>d.ranges.some(f=>C.Rectangle.intersects(f,u))).forEach(d=>{this._conditionalFormattingViewModel.markRuleDirty(s,o,d),this._deleteComputeCache(s,o,d.cfId)});break}case K.MoveColsMutation.id:{const{sourceRange:n,targetRange:r,unitId:s,subUnitId:o}=e.params,l=this._conditionalFormattingRuleModel.getSubunitRules(s,o),u={startRow:0,endRow:Number.MAX_SAFE_INTEGER,startColumn:Math.min(n.startColumn,r.startColumn),endColumn:Number.MAX_SAFE_INTEGER};l&&l.filter(d=>d.ranges.some(f=>C.Rectangle.intersects(f,u))).forEach(d=>{this._conditionalFormattingViewModel.markRuleDirty(s,o,d),this._deleteComputeCache(s,o,d.cfId)});break}case K.MoveRangeMutation.id:{const{unitId:n,to:r,from:s}=e.params,o=l=>{const u=[];new C.ObjectMatrix(l.value).forValue((d,f)=>{u.push([d,f])}),t(n,l.subUnitId,u).forEach(d=>{this._conditionalFormattingViewModel.markRuleDirty(n,l.subUnitId,d),this._deleteComputeCache(n,l.subUnitId,d.cfId)})};o(r),o(s);break}case K.ReorderRangeMutation.id:{const{range:n,unitId:r,subUnitId:s}=e.params,o=this._conditionalFormattingRuleModel.getSubunitRules(r,s);o&&o.filter(u=>u.ranges.some(c=>C.Rectangle.intersects(c,n))).forEach(u=>{this._conditionalFormattingViewModel.markRuleDirty(r,s,u),this._deleteComputeCache(r,s,u.cfId)});break}}}))}_initRemoteCalculate(){this.disposeWithMe(this._ruleComputeStatus$.subscribe(({status:e,subUnitId:t,unitId:n,cfId:r,result:s})=>{const o=this._getComputedCache(n,t,r)||{};o.status=e,this._setComputedCache(n,t,r,o),e==="end"&&s&&(this.interceptorManager.fetchThroughInterceptors(this.interceptorManager.getInterceptPoints().beforeUpdateRuleResult)({subUnitId:t,unitId:n,cfId:r},void 0),s.forValue((l,u,c)=>{this._conditionalFormattingViewModel.setCellCfRuleCache(n,t,l,u,r,c)}))}))}async _handleCalculateUnit(e,t,n){if(!this._conditionalFormattingRuleModel.getRule(e,t,n.cfId))return;const r=this._univerInstanceService.getUnit(e),s=r==null?void 0:r.getSheetBySheetId(t);let o=this._getComputedCache(e,t,n.cfId);if(o&&["computing","end"].includes(o.status))return;o||(o={status:"computing"},this._setComputedCache(e,t,n.cfId,o));const l=this._calculationUnitMap.get(n.rule.type);if(!l||!s)return;const u={unitId:e,subUnitId:t,accessor:this._injector,workbook:r,worksheet:s},c=await l.handle(n,u);this._ruleComputeStatus$.next({status:"end",unitId:e,subUnitId:t,cfId:n.cfId,result:c})}};exports.ConditionalFormattingService=q0([o2(0,C.Inject(exports.ConditionalFormattingRuleModel)),o2(1,C.Inject(C.Injector)),o2(2,C.Inject(E2)),o2(3,C.Inject(C.IUniverInstanceService)),o2(4,C.Inject(C.IResourceManagerService)),o2(5,C.Inject(K.SheetInterceptorService)),o2(6,C.Inject(C.ICommandService))],exports.ConditionalFormattingService);const Y0=i=>i.getCurrentUnitForType(C.UniverInstanceType.UNIVER_SHEET).getUnitId(),H0=i=>{var a;return(a=i.getCurrentUnitForType(C.UniverInstanceType.UNIVER_SHEET).getActiveSheet())==null?void 0:a.getSheetId()};var G0=Object.defineProperty,X0=Object.getOwnPropertyDescriptor,K0=(i,a,e,t)=>{for(var n=t>1?void 0:t?X0(a,e):a,r=i.length-1,s;r>=0;r--)(s=i[r])&&(n=(t?s(a,e,n):s(n))||n);return t&&n&&G0(a,e,n),n},S2=(i,a)=>(e,t)=>a(e,t,i),x2;exports.UniverSheetsConditionalFormattingPlugin=(x2=class extends C.Plugin{constructor(a=_0,e,t,n){super(),this._config=a,this._injector=e,this._commandService=t,this._configService=n;const{...r}=this._config;this._configService.setConfig(x0,r),[[exports.ConditionalFormattingService],[exports.ConditionalFormattingFormulaService],[exports.ConditionalFormattingRuleModel],[E2]].forEach(s=>{this._injector.add(s)}),[B2,y2,T2,_2,m2].forEach(s=>{this._commandService.registerCommand(s)})}onStarting(){this._injector.get(exports.ConditionalFormattingService)}},b(x2,"pluginName",L2),b(x2,"type",C.UniverInstanceType.UNIVER_SHEET),x2);exports.UniverSheetsConditionalFormattingPlugin=K0([S2(1,C.Inject(C.Injector)),S2(2,C.Inject(C.ICommandService)),S2(3,C.IConfigService)],exports.UniverSheetsConditionalFormattingPlugin);const X2="sheet-conditional-rule-icon",J0=35,K2=15,J2=2;class z2 extends g2.SheetExtension{constructor(){super();b(this,"_paddingRightAndLeft",J2);b(this,"_width",K2);b(this,"_imageMap",new Map);b(this,"uKey",X2);b(this,"Z_INDEX",J0);b(this,"_radius",1);this._init()}draw(e,t,n,r){const{worksheet:s}=n;if(!s)return!1;e.save(),C.Range.foreach(n.rowColumnSegment,(o,l)=>{if(!s.getRowVisible(o)||!s.getColVisible(l))return;const u=s.getCell(o,l);if(u!=null&&u.iconSet){const{iconType:c,iconId:d}=u.iconSet;if(c===N2)return;const f=this._imageMap.get(this._createKey(c,d));if(!f)return;const h=n.getCellByIndexWithNoHeader(o,l);let{isMerged:D,isMergedMainCell:g,mergeInfo:m,startY:v,endY:R,startX:S,endX:B}=h;if(D||(g&&(v=m.startY,R=m.endY,S=m.startX,B=m.endX),!this.isRenderDiffRangesByCell(m,r)))return;const j=B-S,N=R-v;if(this._width>N||this._width>j+this._paddingRightAndLeft*2)return;const c2=(N-this._width)/2+v;e.drawImage(f,S+this._paddingRightAndLeft,c2,this._width,this._width)}}),e.restore()}_init(){for(const e in w2)w2[e].forEach((n,r)=>{const s=this._createKey(e,String(r)),o=new Image;o.onload=()=>{this._imageMap.set(s,o)},o.src=n})}_createKey(e,t){return`${e}_${t}`}}g2.SpreadsheetExtensionRegistry.add(z2);const z0=(i,a)=>a.length===i.length&&!i.some(e=>a.some(t=>!C.Rectangle.equals(t,e)));function Q2(i){if(typeof i!="object"||i===null)return i;const a={};for(const e in i)if(i.hasOwnProperty(e)){const t=Q2(i[e]);t!==void 0&&(a[e]=t)}return a}exports.AddConditionalRuleMutation=B2;exports.AddConditionalRuleMutationUndoFactory=A0;exports.CFNumberOperator=T;exports.CFRuleType=q;exports.CFSubRuleType=V;exports.CFTextOperator=H;exports.CFTimePeriodOperator=G;exports.CFValueType=J;exports.ConditionalFormattingFormulaMarkDirty=m2;exports.ConditionalFormattingIcon=z2;exports.ConditionalFormattingViewModel=E2;exports.DEFAULT_BG_COLOR=n0;exports.DEFAULT_FONT_COLOR=i0;exports.DEFAULT_PADDING=J2;exports.DEFAULT_WIDTH=K2;exports.DataBar=G2;exports.DeleteConditionalRuleMutation=y2;exports.DeleteConditionalRuleMutationUndoFactory=P2;exports.EMPTY_ICON_TYPE=N2;exports.EMPTY_STYLE=l2;exports.FormulaResultStatus=P;exports.IconUKey=X2;exports.MoveConditionalRuleMutation=_2;exports.MoveConditionalRuleMutationUndoFactory=E0;exports.SHEET_CONDITIONAL_FORMATTING_PLUGIN=L2;exports.SetConditionalRuleMutation=T2;exports.anchorUndoFactory=V2;exports.compareWithNumber=h2;exports.createCfId=O2;exports.createDefaultRule=r0;exports.createDefaultValue=s0;exports.createDefaultValueByValueType=a0;exports.dataBarUKey=H2;exports.defaultDataBarNativeColor=I2;exports.defaultDataBarPositiveColor=b2;exports.filterRange=A2;exports.findIndexByAnchor=i2;exports.getCacheStyleMatrix=T0;exports.getCellValue=Q;exports.getColorScaleFromValue=Y2;exports.getMaxInFormulaResult=O0;exports.getOppositeOperator=Z2;exports.getValueByType=p2;exports.iconGroup=U2;exports.iconMap=w2;exports.isAnchorEqual=o0;exports.isFloatsEqual=v2;exports.isNullable=X;exports.isRangesEqual=z0;exports.moveByAnchor=k2;exports.removeUndefinedAttr=Q2;exports.serialTimeToTimestamp=q2;exports.setConditionalRuleMutationUndoFactory=M0;exports.toYMD_1900=W2;exports.transformSupportSymmetryAnchor=$2;
|