@ni/nimble-components 21.0.3 → 21.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/all-components-bundle.js +215 -111
  2. package/dist/all-components-bundle.js.map +1 -1
  3. package/dist/all-components-bundle.min.js +904 -898
  4. package/dist/all-components-bundle.min.js.map +1 -1
  5. package/dist/esm/rich-text/base/index.d.ts +19 -3
  6. package/dist/esm/rich-text/base/index.js +40 -14
  7. package/dist/esm/rich-text/base/index.js.map +1 -1
  8. package/dist/esm/rich-text/base/types.d.ts +5 -0
  9. package/dist/esm/rich-text/base/types.js +2 -0
  10. package/dist/esm/rich-text/base/types.js.map +1 -0
  11. package/dist/esm/rich-text/editor/index.d.ts +2 -6
  12. package/dist/esm/rich-text/editor/index.js +12 -16
  13. package/dist/esm/rich-text/editor/index.js.map +1 -1
  14. package/dist/esm/rich-text/models/markdown-parser-mention-configuration.d.ts +0 -1
  15. package/dist/esm/rich-text/models/markdown-parser-mention-configuration.js +0 -4
  16. package/dist/esm/rich-text/models/markdown-parser-mention-configuration.js.map +1 -1
  17. package/dist/esm/rich-text/models/mention-extension-configuration.d.ts +0 -1
  18. package/dist/esm/rich-text/models/mention-extension-configuration.js +0 -3
  19. package/dist/esm/rich-text/models/mention-extension-configuration.js.map +1 -1
  20. package/dist/esm/rich-text/models/rich-text-tracker.d.ts +19 -0
  21. package/dist/esm/rich-text/models/rich-text-tracker.js +59 -0
  22. package/dist/esm/rich-text/models/rich-text-tracker.js.map +1 -0
  23. package/dist/esm/rich-text/models/rich-text-validator.d.ts +15 -0
  24. package/dist/esm/rich-text/models/rich-text-validator.js +33 -0
  25. package/dist/esm/rich-text/models/rich-text-validator.js.map +1 -0
  26. package/package.json +2 -2
@@ -8289,48 +8289,51 @@ const i=this.createMappingConfig(t)
8289
8289
  e.set(n,i)})),e}updateMappingConfigs(){this.validator.validate(this.mappingElements,this.pattern),this.mentionInternals.mappingConfigs=this.validator.isValid()?this.getMappingConfigs():void 0}mappingElementsChanged(){this.updateMappingConfigs(),this.observeMappingElements()}patternChanged(){this.validator.validate(this.mappingElements,this.pattern),this.mentionInternals.pattern=this.pattern}buttonLabelChanged(){this.mentionInternals.buttonLabel=this.buttonLabel}removeMappingElementObservers(){this.mappingNotifiers.forEach((e=>{e.unsubscribe(this)})),this.mappingNotifiers=[]}observeMappingElements(){this.removeMappingElementObservers()
8290
8290
  for(const e of this.mappingElements){const t=m.getNotifier(e)
8291
8291
  t.subscribe(this),this.mappingNotifiers.push(t)}}}e([se],$E.prototype,"pattern",void 0),e([se({attribute:"button-label"})],$E.prototype,"buttonLabel",void 0),e([g],$E.prototype,"mappingElements",void 0)
8292
- class ME{constructor(e){this.regexPattern=new RegExp(e.pattern??""),this.mappingConfigs=e.mappingConfigs,this.viewElement=e.viewElement}static isObservedMentionInternalsProperty(e){return"string"==typeof e&&["pattern","mappingConfigs"].includes(e)}isValidMentionHref(e){return this.regexPattern.test(e)}getDisplayName(e){const t=this.mappingConfigs?.get(e),n=this.extractMentionId(e)
8292
+ class ME{constructor(e){this.regexPattern=new RegExp(e.pattern??""),this.mappingConfigs=e.mappingConfigs,this.viewElement=e.viewElement}isValidMentionHref(e){return this.regexPattern.test(e)}getDisplayName(e){const t=this.mappingConfigs?.get(e),n=this.extractMentionId(e)
8293
8293
  return t?.displayName??n}extractMentionId(e){const t=this.regexPattern.exec(e)
8294
- return t?.[1]??void 0}}class _E{constructor(e){this.parserMentionConfig=[],this.isValid=!0,this.isValid=e.every((e=>e.mentionInternals.validConfiguration)),this.parserMentionConfig=this.isValid?e.map((e=>new ME(e.mentionInternals))):[]}}async function EE(e){const t=e.map((async e=>e.matches(":not(:defined)")?customElements.whenDefined(e.localName):Promise.resolve()))
8295
- await Promise.all(t)}class IE extends Lt{constructor(){super(...arguments),this.mentionInternalsNotifiers=[],this.childItems=[]}handleChange(e,t){e instanceof SE&&ME.isObservedMentionInternalsProperty(t)&&(this.configuration=this.createConfig())}mentionElementsChanged(e,t){this.observeMentionInternals(),this.configuration=this.createConfig()}createConfig(){return new _E(this.mentionElements)}childItemsChanged(e,t){this.updateMentionElementsFromChildItems()}async updateMentionElementsFromChildItems(){await EE(this.childItems),this.mentionElements=this.childItems.filter((e=>e instanceof $E))}observeMentionInternals(){this.removeMentionInternalsObservers()
8294
+ return t?.[1]??void 0}}class _E{constructor(e){this.parserMentionConfig=[],this.isValid=!0,this.isValid=e.every((e=>e.mentionInternals.validConfiguration)),this.parserMentionConfig=this.isValid?e.map((e=>new ME(e.mentionInternals))):[]}}class EE{constructor(e){this.trackedItems={},this.trackedItems=e.reduce(((e,t)=>({...e,[t]:!1})),this.trackedItems)}getTrackedItems(){return{...this.trackedItems}}isTracked(e){return this.trackedItems[e]}track(e){this.trackedItems[e]=!0}untrack(e){this.trackedItems[e]=!1}trackAll(){this.setAllKeys(!0)}untrackAll(){this.setAllKeys(!1)}allTracked(){return Object.values(this.trackedItems).every((e=>e))}anyTracked(){return Object.values(this.trackedItems).some((e=>e))}noneTracked(){return Object.values(this.trackedItems).every((e=>!e))}setAllKeys(e){this.trackedItems=Object.keys(this.trackedItems).reduce(((t,n)=>({...t,[n]:e})),this.trackedItems)}}class IE extends EE{}const AE=["pattern","mappingConfigs","buttonLabel"]
8295
+ class OE extends IE{constructor(e){super(AE),this.richText=e,this.updateQueued=!1}get updatePattern(){return this.isTracked("pattern")}get updateMappingConfigs(){return this.isTracked("mappingConfigs")}get updateButtonLabel(){return this.isTracked("buttonLabel")}trackMentionInternalsPropertyChanged(e){switch(e){case"mappingConfigs":this.track("mappingConfigs")
8296
+ break
8297
+ case"pattern":this.track("pattern")
8298
+ break
8299
+ case"buttonLabel":this.track("buttonLabel")}this.queueUpdate()}trackMentionElementsInstancesChanged(){this.track("pattern"),this.track("mappingConfigs"),this.track("buttonLabel"),this.queueUpdate()}queueUpdate(){this.richText.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.richText.createConfig(),this.untrackAll(),this.updateQueued=!1}))))}}class TE{constructor(){this.invalidMentionConfiguration=!1,this.duplicateMentionConfiguration=!1}getValidity(){return{invalidMentionConfiguration:this.invalidMentionConfiguration,duplicateMentionConfiguration:this.duplicateMentionConfiguration}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}validate(e){this.validateDuplicateMentionConfigurations(e),this.validateMentionConfigurations(e)}validateMentionConfigurations(e){return this.invalidMentionConfiguration=e.some((e=>!e.mentionInternals.validConfiguration)),!this.invalidMentionConfiguration}validateDuplicateMentionConfigurations(e){const t=e.map((e=>e.mentionInternals.character))
8300
+ return this.duplicateMentionConfiguration=t.length!==new Set(t).size,!this.duplicateMentionConfiguration}}async function RE(e){const t=e.map((async e=>e.matches(":not(:defined)")?customElements.whenDefined(e.localName):Promise.resolve()))
8301
+ await Promise.all(t)}class DE extends Lt{constructor(){super(...arguments),this.mentionInternalsNotifiers=[],this.childItems=[],this.richTextUpdateTracker=new OE(this),this.richTextValidator=new TE}get validity(){return this.richTextValidator.getValidity()}checkValidity(){return this.richTextValidator.isValid()}handleChange(e,t){e instanceof SE&&"string"==typeof t&&this.richTextUpdateTracker.trackMentionInternalsPropertyChanged(t)}createConfig(){this.validate(),this.richTextValidator.isValid()?(this.richTextUpdateTracker.updateMappingConfigs||this.richTextUpdateTracker.updatePattern)&&(this.configuration=new _E(this.mentionElements)):this.configuration=void 0}validate(){this.richTextValidator.validate(this.mentionElements)}childItemsChanged(e,t){void 0!==e&&this.updateMentionElementsFromChildItems()}async updateMentionElementsFromChildItems(){await RE(this.childItems),this.mentionElements=this.childItems.filter((e=>e instanceof $E)),this.observeMentionInternals(),this.richTextUpdateTracker.trackMentionElementsInstancesChanged()}observeMentionInternals(){this.removeMentionInternalsObservers()
8296
8302
  for(const e of this.mentionElements){const t=m.getNotifier(e.mentionInternals)
8297
- t.subscribe(this),this.mentionInternalsNotifiers.push(t)}}removeMentionInternalsObservers(){this.mentionInternalsNotifiers.forEach((e=>{e.unsubscribe(this)})),this.mentionInternalsNotifiers=[]}}e([g],IE.prototype,"childItems",void 0),e([g],IE.prototype,"mentionElements",void 0),e([g],IE.prototype,"configuration",void 0)
8298
- class AE{constructor(e){AE.instance+=1
8299
- const t=`${l$}${AE.instance}`
8300
- this.name=t,this.key=t,this.viewElement=e.viewElement,this.character=e.character,this.mappingConfigs=e.mappingConfigs,this.iconTemplate=e.iconTemplate,this.buttonLabel=e.buttonLabel??"",this.mentionUpdateEmitter=e.mentionUpdateEmitter}static isObservedMentionInternalsProperty(e){return"string"==typeof e&&["buttonLabel"].includes(e)}}AE.instance=0
8301
- const OE=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,TE=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,RE=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,DE=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,NE=DS.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],renderHTML({HTMLAttributes:e}){return["strong",_C(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[TS({find:OE,type:this.type}),TS({find:RE,type:this.type})]},addPasteRules(){return[PS({find:TE,type:this.type}),PS({find:DE,type:this.type})]}}),PE=NS.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",_C(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),zE=DS.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:e=>!!e.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:e}){return["span",_C(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const n=pS(e,this.type)
8302
- return!!Object.entries(n).some((([,e])=>!!e))||t.unsetMark(this.name)}}}}),LE=/^\s*([-+*])\s$/,FE=NS.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",_C(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(PE.name,this.editor.getAttributes(zE.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=RS({find:LE,type:this.type})
8303
- return(this.options.keepMarks||this.options.keepAttributes)&&(e=RS({find:LE,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(zE.name),editor:this.editor})),[e]}}),VE=NS.create({name:"doc",topNode:!0,content:"block+"})
8304
- var HE=200,BE=function(){}
8305
- BE.prototype.append=function(e){return e.length?(e=BE.from(e),!this.length&&e||e.length<HE&&this.leafAppend(e)||this.length<HE&&e.leafPrepend(this)||this.appendInner(e)):this},BE.prototype.prepend=function(e){return e.length?BE.from(e).append(this):this},BE.prototype.appendInner=function(e){return new jE(this,e)},BE.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?BE.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},BE.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},BE.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},BE.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length)
8303
+ t.subscribe(this),this.mentionInternalsNotifiers.push(t)}}removeMentionInternalsObservers(){this.mentionInternalsNotifiers.forEach((e=>{e.unsubscribe(this)})),this.mentionInternalsNotifiers=[]}}e([g],DE.prototype,"childItems",void 0),e([g],DE.prototype,"configuration",void 0)
8304
+ const NE=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,PE=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,zE=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,LE=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,FE=DS.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],renderHTML({HTMLAttributes:e}){return["strong",_C(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[TS({find:NE,type:this.type}),TS({find:zE,type:this.type})]},addPasteRules(){return[PS({find:PE,type:this.type}),PS({find:LE,type:this.type})]}}),VE=NS.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",_C(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),HE=DS.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:e=>!!e.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:e}){return["span",_C(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const n=pS(e,this.type)
8305
+ return!!Object.entries(n).some((([,e])=>!!e))||t.unsetMark(this.name)}}}}),BE=/^\s*([-+*])\s$/,qE=NS.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:e}){return["ul",_C(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(VE.name,this.editor.getAttributes(HE.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=RS({find:BE,type:this.type})
8306
+ return(this.options.keepMarks||this.options.keepAttributes)&&(e=RS({find:BE,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(HE.name),editor:this.editor})),[e]}}),jE=NS.create({name:"doc",topNode:!0,content:"block+"})
8307
+ var UE=200,WE=function(){}
8308
+ WE.prototype.append=function(e){return e.length?(e=WE.from(e),!this.length&&e||e.length<UE&&this.leafAppend(e)||this.length<UE&&e.leafPrepend(this)||this.appendInner(e)):this},WE.prototype.prepend=function(e){return e.length?WE.from(e).append(this):this},WE.prototype.appendInner=function(e){return new GE(this,e)},WE.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?WE.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},WE.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},WE.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},WE.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length)
8306
8309
  var i=[]
8307
- return this.forEach((function(t,n){return i.push(e(t,n))}),t,n),i},BE.from=function(e){return e instanceof BE?e:e&&e.length?new qE(e):BE.empty}
8308
- var qE=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t
8310
+ return this.forEach((function(t,n){return i.push(e(t,n))}),t,n),i},WE.from=function(e){return e instanceof WE?e:e&&e.length?new ZE(e):WE.empty}
8311
+ var ZE=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t
8309
8312
  var n={length:{configurable:!0},depth:{configurable:!0}}
8310
- return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,i){for(var o=t;o<n;o++)if(!1===e(this.values[o],i+o))return!1},t.prototype.forEachInvertedInner=function(e,t,n,i){for(var o=t-1;o>=n;o--)if(!1===e(this.values[o],i+o))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=HE)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=HE)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(BE)
8311
- BE.empty=new qE([])
8312
- var jE=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,i){var o=this.left.length
8313
+ return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,i){for(var o=t;o<n;o++)if(!1===e(this.values[o],i+o))return!1},t.prototype.forEachInvertedInner=function(e,t,n,i){for(var o=t-1;o>=n;o--)if(!1===e(this.values[o],i+o))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=UE)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=UE)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(WE)
8314
+ WE.empty=new ZE([])
8315
+ var GE=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,i){var o=this.left.length
8313
8316
  return!(t<o&&!1===this.left.forEachInner(e,t,Math.min(n,o),i))&&(!(n>o&&!1===this.right.forEachInner(e,Math.max(t-o,0),Math.min(this.length,n)-o,i+o))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,n,i){var o=this.left.length
8314
8317
  return!(t>o&&!1===this.right.forEachInvertedInner(e,t-o,Math.max(n,o)-o,i+o))&&(!(n<o&&!1===this.left.forEachInvertedInner(e,Math.min(t,o),n,i))&&void 0)},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this
8315
8318
  var n=this.left.length
8316
8319
  return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e)
8317
8320
  if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e)
8318
- if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(BE)
8319
- class UE{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(0==this.eventCount)return null
8321
+ if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(WE)
8322
+ class KE{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(0==this.eventCount)return null
8320
8323
  let n,i,o=this.items.length
8321
8324
  for(;;o--){if(this.items.get(o-1).selection){--o
8322
8325
  break}}t&&(n=this.remapping(o,this.items.length),i=n.maps.length)
8323
8326
  let r,s,a=e.tr,l=[],c=[]
8324
8327
  return this.items.forEach(((e,t)=>{if(!e.step)return n||(n=this.remapping(o,t+1),i=n.maps.length),i--,void c.push(e)
8325
- if(n){c.push(new WE(e.map))
8328
+ if(n){c.push(new JE(e.map))
8326
8329
  let t,o=e.step.map(n.slice(i))
8327
- o&&a.maybeStep(o).doc&&(t=a.mapping.maps[a.mapping.maps.length-1],l.push(new WE(t,void 0,void 0,l.length+c.length))),i--,t&&n.appendMap(t,i)}else a.maybeStep(e.step)
8328
- return e.selection?(r=n?e.selection.map(n.slice(i)):e.selection,s=new UE(this.items.slice(0,o).append(c.reverse().concat(l)),this.eventCount-1),!1):void 0}),this.items.length,0),{remaining:s,transform:a,selection:r}}addTransform(e,t,n,i){let o=[],r=this.eventCount,s=this.items,a=!i&&s.length?s.get(s.length-1):null
8329
- for(let n=0;n<e.steps.length;n++){let l,c=e.steps[n].invert(e.docs[n]),d=new WE(e.mapping.maps[n],c,t);(l=a&&a.merge(d))&&(d=l,n?o.pop():s=s.slice(0,s.length-1)),o.push(d),t&&(r++,t=void 0),i||(a=d)}let l=r-n.depth
8330
- return l>GE&&(s=function(e,t){let n
8331
- return e.forEach(((e,i)=>{if(e.selection&&0==t--)return n=i,!1})),e.slice(n)}(s,l),r-=l),new UE(s.append(o),r)}remapping(e,t){let n=new Fb
8330
+ o&&a.maybeStep(o).doc&&(t=a.mapping.maps[a.mapping.maps.length-1],l.push(new JE(t,void 0,void 0,l.length+c.length))),i--,t&&n.appendMap(t,i)}else a.maybeStep(e.step)
8331
+ return e.selection?(r=n?e.selection.map(n.slice(i)):e.selection,s=new KE(this.items.slice(0,o).append(c.reverse().concat(l)),this.eventCount-1),!1):void 0}),this.items.length,0),{remaining:s,transform:a,selection:r}}addTransform(e,t,n,i){let o=[],r=this.eventCount,s=this.items,a=!i&&s.length?s.get(s.length-1):null
8332
+ for(let n=0;n<e.steps.length;n++){let l,c=e.steps[n].invert(e.docs[n]),d=new JE(e.mapping.maps[n],c,t);(l=a&&a.merge(d))&&(d=l,n?o.pop():s=s.slice(0,s.length-1)),o.push(d),t&&(r++,t=void 0),i||(a=d)}let l=r-n.depth
8333
+ return l>YE&&(s=function(e,t){let n
8334
+ return e.forEach(((e,i)=>{if(e.selection&&0==t--)return n=i,!1})),e.slice(n)}(s,l),r-=l),new KE(s.append(o),r)}remapping(e,t){let n=new Fb
8332
8335
  return this.items.forEach(((t,i)=>{let o=null!=t.mirrorOffset&&i-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0
8333
- n.appendMap(t.map,o)}),e,t),n}addMaps(e){return 0==this.eventCount?this:new UE(this.items.append(e.map((e=>new WE(e)))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this
8336
+ n.appendMap(t.map,o)}),e,t),n}addMaps(e){return 0==this.eventCount?this:new KE(this.items.append(e.map((e=>new JE(e)))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this
8334
8337
  let n=[],i=Math.max(0,this.items.length-t),o=e.mapping,r=e.steps.length,s=this.eventCount
8335
8338
  this.items.forEach((e=>{e.selection&&s--}),i)
8336
8339
  let a=t
@@ -8339,177 +8342,177 @@ if(null==i)return
8339
8342
  r=Math.min(r,i)
8340
8343
  let l=o.maps[i]
8341
8344
  if(t.step){let r=e.steps[i].invert(e.docs[i]),c=t.selection&&t.selection.map(o.slice(a+1,i))
8342
- c&&s++,n.push(new WE(l,r,c))}else n.push(new WE(l))}),i)
8345
+ c&&s++,n.push(new JE(l,r,c))}else n.push(new JE(l))}),i)
8343
8346
  let l=[]
8344
- for(let e=t;e<r;e++)l.push(new WE(o.maps[e]))
8345
- let c=this.items.slice(0,i).append(l).append(n),d=new UE(c,s)
8347
+ for(let e=t;e<r;e++)l.push(new JE(o.maps[e]))
8348
+ let c=this.items.slice(0,i).append(l).append(n),d=new KE(c,s)
8346
8349
  return d.emptyItemCount()>500&&(d=d.compress(this.items.length-n.length)),d}emptyItemCount(){let e=0
8347
8350
  return this.items.forEach((t=>{t.step||e++})),e}compress(e=this.items.length){let t=this.remapping(0,e),n=t.maps.length,i=[],o=0
8348
8351
  return this.items.forEach(((r,s)=>{if(s>=e)i.push(r),r.selection&&o++
8349
8352
  else if(r.step){let e=r.step.map(t.slice(n)),s=e&&e.getMap()
8350
8353
  if(n--,s&&t.appendMap(s,n),e){let a=r.selection&&r.selection.map(t.slice(n))
8351
8354
  a&&o++
8352
- let l,c=new WE(s.invert(),e,a),d=i.length-1;(l=i.length&&i[d].merge(c))?i[d]=l:i.push(c)}}else r.map&&n--}),this.items.length,0),new UE(BE.from(i.reverse()),o)}}UE.empty=new UE(BE.empty,0)
8353
- class WE{constructor(e,t,n,i){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=i}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step)
8354
- if(t)return new WE(t.getMap().invert(),t,this.selection)}}}class ZE{constructor(e,t,n,i,o){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=i,this.prevComposition=o}}const GE=20
8355
- function KE(e){let t=[]
8356
- return e.forEach(((e,n,i,o)=>t.push(i,o))),t}function JE(e,t){if(!e)return null
8355
+ let l,c=new JE(s.invert(),e,a),d=i.length-1;(l=i.length&&i[d].merge(c))?i[d]=l:i.push(c)}}else r.map&&n--}),this.items.length,0),new KE(WE.from(i.reverse()),o)}}KE.empty=new KE(WE.empty,0)
8356
+ class JE{constructor(e,t,n,i){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=i}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step)
8357
+ if(t)return new JE(t.getMap().invert(),t,this.selection)}}}class XE{constructor(e,t,n,i,o){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=i,this.prevComposition=o}}const YE=20
8358
+ function QE(e){let t=[]
8359
+ return e.forEach(((e,n,i,o)=>t.push(i,o))),t}function eI(e,t){if(!e)return null
8357
8360
  let n=[]
8358
8361
  for(let i=0;i<e.length;i+=2){let o=t.map(e[i],1),r=t.map(e[i+1],-1)
8359
- o<=r&&n.push(o,r)}return n}function XE(e,t,n,i){let o=eI(t),r=tI.get(t).spec.config,s=(i?e.undone:e.done).popEvent(t,o)
8362
+ o<=r&&n.push(o,r)}return n}function tI(e,t,n,i){let o=oI(t),r=rI.get(t).spec.config,s=(i?e.undone:e.done).popEvent(t,o)
8360
8363
  if(!s)return
8361
- let a=s.selection.resolve(s.transform.doc),l=(i?e.done:e.undone).addTransform(s.transform,t.selection.getBookmark(),r,o),c=new ZE(i?l:s.remaining,i?s.remaining:l,null,0,-1)
8362
- n(s.transform.setSelection(a).setMeta(tI,{redo:i,historyState:c}).scrollIntoView())}let YE=!1,QE=null
8363
- function eI(e){let t=e.plugins
8364
- if(QE!=t){YE=!1,QE=t
8365
- for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){YE=!0
8366
- break}}return YE}const tI=new Bw("history"),nI=new Bw("closeHistory")
8367
- function iI(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new Fw({key:tI,state:{init:()=>new ZE(UE.empty,UE.empty,null,0,-1),apply:(t,n,i)=>function(e,t,n,i){let o,r=n.getMeta(tI)
8364
+ let a=s.selection.resolve(s.transform.doc),l=(i?e.done:e.undone).addTransform(s.transform,t.selection.getBookmark(),r,o),c=new XE(i?l:s.remaining,i?s.remaining:l,null,0,-1)
8365
+ n(s.transform.setSelection(a).setMeta(rI,{redo:i,historyState:c}).scrollIntoView())}let nI=!1,iI=null
8366
+ function oI(e){let t=e.plugins
8367
+ if(iI!=t){nI=!1,iI=t
8368
+ for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){nI=!0
8369
+ break}}return nI}const rI=new Bw("history"),sI=new Bw("closeHistory")
8370
+ function aI(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new Fw({key:rI,state:{init:()=>new XE(KE.empty,KE.empty,null,0,-1),apply:(t,n,i)=>function(e,t,n,i){let o,r=n.getMeta(rI)
8368
8371
  if(r)return r.historyState
8369
- n.getMeta(nI)&&(e=new ZE(e.done,e.undone,null,0,-1))
8372
+ n.getMeta(sI)&&(e=new XE(e.done,e.undone,null,0,-1))
8370
8373
  let s=n.getMeta("appendedTransaction")
8371
8374
  if(0==n.steps.length)return e
8372
- if(s&&s.getMeta(tI))return s.getMeta(tI).redo?new ZE(e.done.addTransform(n,void 0,i,eI(t)),e.undone,KE(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new ZE(e.done,e.undone.addTransform(n,void 0,i,eI(t)),null,e.prevTime,e.prevComposition)
8373
- if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new ZE(e.done.rebased(n,o),e.undone.rebased(n,o),JE(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new ZE(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),JE(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)
8375
+ if(s&&s.getMeta(rI))return s.getMeta(rI).redo?new XE(e.done.addTransform(n,void 0,i,oI(t)),e.undone,QE(n.mapping.maps[n.steps.length-1]),e.prevTime,e.prevComposition):new XE(e.done,e.undone.addTransform(n,void 0,i,oI(t)),null,e.prevTime,e.prevComposition)
8376
+ if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new XE(e.done.rebased(n,o),e.undone.rebased(n,o),eI(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new XE(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),eI(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)
8374
8377
  {let o=n.getMeta("composition"),r=0==e.prevTime||!s&&e.prevComposition!=o&&(e.prevTime<(n.time||0)-i.newGroupDelay||!function(e,t){if(!t)return!1
8375
8378
  if(!e.docChanged)return!0
8376
8379
  let n=!1
8377
- return e.mapping.maps[0].forEach(((e,i)=>{for(let o=0;o<t.length;o+=2)e<=t[o+1]&&i>=t[o]&&(n=!0)})),n}(n,e.prevRanges)),a=s?JE(e.prevRanges,n.mapping):KE(n.mapping.maps[n.steps.length-1])
8378
- return new ZE(e.done.addTransform(n,r?t.selection.getBookmark():void 0,i,eI(t)),UE.empty,a,n.time,null==o?e.prevComposition:o)}}(n,i,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,i="historyUndo"==n?oI:"historyRedo"==n?rI:null
8379
- return!!i&&(t.preventDefault(),i(e.state,e.dispatch))}}}})}const oI=(e,t)=>{let n=tI.getState(e)
8380
- return!(!n||0==n.done.eventCount)&&(t&&XE(n,e,t,!1),!0)},rI=(e,t)=>{let n=tI.getState(e)
8381
- return!(!n||0==n.undone.eventCount)&&(t&&XE(n,e,t,!0),!0)},sI=ZC.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>oI(e,t),redo:()=>({state:e,dispatch:t})=>rI(e,t)}),addProseMirrorPlugins(){return[iI(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-Z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Shift-Mod-Z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),aI=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,lI=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,cI=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,dI=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,hI=DS.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:e}){return["em",_C(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[TS({find:aI,type:this.type}),TS({find:cI,type:this.type})]},addPasteRules(){return[PS({find:lI,type:this.type}),PS({find:dI,type:this.type})]}}),uI="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",pI="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",fI=(e,t)=>{for(const n in t)e[n]=t[n]
8382
- return e},mI="numeric",gI="ascii",vI="alpha",bI="asciinumeric",wI="alphanumeric",yI="domain",xI="emoji",kI="scheme",CI="slashscheme",SI="whitespace"
8383
- function $I(e,t){return e in t||(t[e]=[]),t[e]}function MI(e,t,n){t[mI]&&(t[bI]=!0,t[wI]=!0),t[gI]&&(t[bI]=!0,t[vI]=!0),t[bI]&&(t[wI]=!0),t[vI]&&(t[wI]=!0),t[wI]&&(t[yI]=!0),t[xI]&&(t[yI]=!0)
8384
- for(const i in t){const t=$I(i,n)
8385
- t.indexOf(e)<0&&t.push(e)}}function _I(e){void 0===e&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}_I.groups={},_I.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e]
8380
+ return e.mapping.maps[0].forEach(((e,i)=>{for(let o=0;o<t.length;o+=2)e<=t[o+1]&&i>=t[o]&&(n=!0)})),n}(n,e.prevRanges)),a=s?eI(e.prevRanges,n.mapping):QE(n.mapping.maps[n.steps.length-1])
8381
+ return new XE(e.done.addTransform(n,r?t.selection.getBookmark():void 0,i,oI(t)),KE.empty,a,n.time,null==o?e.prevComposition:o)}}(n,i,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,i="historyUndo"==n?lI:"historyRedo"==n?cI:null
8382
+ return!!i&&(t.preventDefault(),i(e.state,e.dispatch))}}}})}const lI=(e,t)=>{let n=rI.getState(e)
8383
+ return!(!n||0==n.done.eventCount)&&(t&&tI(n,e,t,!1),!0)},cI=(e,t)=>{let n=rI.getState(e)
8384
+ return!(!n||0==n.undone.eventCount)&&(t&&tI(n,e,t,!0),!0)},dI=ZC.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:e,dispatch:t})=>lI(e,t),redo:()=>({state:e,dispatch:t})=>cI(e,t)}),addProseMirrorPlugins(){return[aI(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-Z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Shift-Mod-Z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),hI=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,uI=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,pI=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,fI=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,mI=DS.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:e}){return["em",_C(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[TS({find:hI,type:this.type}),TS({find:pI,type:this.type})]},addPasteRules(){return[PS({find:uI,type:this.type}),PS({find:fI,type:this.type})]}}),gI="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",vI="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",bI=(e,t)=>{for(const n in t)e[n]=t[n]
8385
+ return e},wI="numeric",yI="ascii",xI="alpha",kI="asciinumeric",CI="alphanumeric",SI="domain",$I="emoji",MI="scheme",_I="slashscheme",EI="whitespace"
8386
+ function II(e,t){return e in t||(t[e]=[]),t[e]}function AI(e,t,n){t[wI]&&(t[kI]=!0,t[CI]=!0),t[yI]&&(t[kI]=!0,t[xI]=!0),t[kI]&&(t[CI]=!0),t[xI]&&(t[CI]=!0),t[CI]&&(t[SI]=!0),t[$I]&&(t[SI]=!0)
8387
+ for(const i in t){const t=II(i,n)
8388
+ t.indexOf(e)<0&&t.push(e)}}function OI(e){void 0===e&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}OI.groups={},OI.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e]
8386
8389
  if(n)return n
8387
8390
  for(let n=0;n<t.jr.length;n++){const i=t.jr[n][0],o=t.jr[n][1]
8388
8391
  if(o&&i.test(e))return o}return t.jd},has(e,t){return void 0===t&&(t=!1),t?e in this.j:!!this.go(e)},ta(e,t,n,i){for(let o=0;o<e.length;o++)this.tt(e[o],t,n,i)},tr(e,t,n,i){let o
8389
- return i=i||_I.groups,t&&t.j?o=t:(o=new _I(t),n&&i&&MI(t,n,i)),this.jr.push([e,o]),o},ts(e,t,n,i){let o=this
8392
+ return i=i||OI.groups,t&&t.j?o=t:(o=new OI(t),n&&i&&AI(t,n,i)),this.jr.push([e,o]),o},ts(e,t,n,i){let o=this
8390
8393
  const r=e.length
8391
8394
  if(!r)return o
8392
8395
  for(let t=0;t<r-1;t++)o=o.tt(e[t])
8393
- return o.tt(e[r-1],t,n,i)},tt(e,t,n,i){i=i||_I.groups
8396
+ return o.tt(e[r-1],t,n,i)},tt(e,t,n,i){i=i||OI.groups
8394
8397
  const o=this
8395
8398
  if(t&&t.j)return o.j[e]=t,t
8396
8399
  const r=t
8397
8400
  let s,a=o.go(e)
8398
- if(a?(s=new _I,fI(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new _I,r){if(i)if(s.t&&"string"==typeof s.t){const e=fI(function(e,t){const n={}
8401
+ if(a?(s=new OI,bI(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new OI,r){if(i)if(s.t&&"string"==typeof s.t){const e=bI(function(e,t){const n={}
8399
8402
  for(const i in t)t[i].indexOf(e)>=0&&(n[i]=!0)
8400
8403
  return n}(s.t,i),n)
8401
- MI(r,e,i)}else n&&MI(r,n,i)
8404
+ AI(r,e,i)}else n&&AI(r,n,i)
8402
8405
  s.t=r}return o.j[e]=s,s}}
8403
- const EI=(e,t,n,i,o)=>e.ta(t,n,i,o),II=(e,t,n,i,o)=>e.tr(t,n,i,o),AI=(e,t,n,i,o)=>e.ts(t,n,i,o),OI=(e,t,n,i,o)=>e.tt(t,n,i,o),TI="WORD",RI="UWORD",DI="LOCALHOST",NI="TLD",PI="UTLD",zI="SCHEME",LI="SLASH_SCHEME",FI="NUM",VI="WS",HI="NL",BI="OPENBRACE",qI="OPENBRACKET",jI="OPENANGLEBRACKET",UI="OPENPAREN",WI="CLOSEBRACE",ZI="CLOSEBRACKET",GI="CLOSEANGLEBRACKET",KI="CLOSEPAREN",JI="AMPERSAND",XI="APOSTROPHE",YI="ASTERISK",QI="AT",eA="BACKSLASH",tA="BACKTICK",nA="CARET",iA="COLON",oA="COMMA",rA="DOLLAR",sA="DOT",aA="EQUALS",lA="EXCLAMATION",cA="HYPHEN",dA="PERCENT",hA="PIPE",uA="PLUS",pA="POUND",fA="QUERY",mA="QUOTE",gA="SEMI",vA="SLASH",bA="TILDE",wA="UNDERSCORE",yA="EMOJI",xA="SYM"
8404
- var kA=Object.freeze({__proto__:null,WORD:TI,UWORD:RI,LOCALHOST:DI,TLD:NI,UTLD:PI,SCHEME:zI,SLASH_SCHEME:LI,NUM:FI,WS:VI,NL:HI,OPENBRACE:BI,OPENBRACKET:qI,OPENANGLEBRACKET:jI,OPENPAREN:UI,CLOSEBRACE:WI,CLOSEBRACKET:ZI,CLOSEANGLEBRACKET:GI,CLOSEPAREN:KI,AMPERSAND:JI,APOSTROPHE:XI,ASTERISK:YI,AT:QI,BACKSLASH:eA,BACKTICK:tA,CARET:nA,COLON:iA,COMMA:oA,DOLLAR:rA,DOT:sA,EQUALS:aA,EXCLAMATION:lA,HYPHEN:cA,PERCENT:dA,PIPE:hA,PLUS:uA,POUND:pA,QUERY:fA,QUOTE:mA,SEMI:gA,SLASH:vA,TILDE:bA,UNDERSCORE:wA,EMOJI:yA,SYM:xA})
8405
- const CA=/[a-z]/,SA=/\p{L}/u,$A=/\p{Emoji}/u,MA=/\d/,_A=/\s/,EA="\n",IA="️",AA="‍"
8406
- let OA=null,TA=null
8407
- function RA(e,t,n,i,o){let r
8406
+ const TI=(e,t,n,i,o)=>e.ta(t,n,i,o),RI=(e,t,n,i,o)=>e.tr(t,n,i,o),DI=(e,t,n,i,o)=>e.ts(t,n,i,o),NI=(e,t,n,i,o)=>e.tt(t,n,i,o),PI="WORD",zI="UWORD",LI="LOCALHOST",FI="TLD",VI="UTLD",HI="SCHEME",BI="SLASH_SCHEME",qI="NUM",jI="WS",UI="NL",WI="OPENBRACE",ZI="OPENBRACKET",GI="OPENANGLEBRACKET",KI="OPENPAREN",JI="CLOSEBRACE",XI="CLOSEBRACKET",YI="CLOSEANGLEBRACKET",QI="CLOSEPAREN",eA="AMPERSAND",tA="APOSTROPHE",nA="ASTERISK",iA="AT",oA="BACKSLASH",rA="BACKTICK",sA="CARET",aA="COLON",lA="COMMA",cA="DOLLAR",dA="DOT",hA="EQUALS",uA="EXCLAMATION",pA="HYPHEN",fA="PERCENT",mA="PIPE",gA="PLUS",vA="POUND",bA="QUERY",wA="QUOTE",yA="SEMI",xA="SLASH",kA="TILDE",CA="UNDERSCORE",SA="EMOJI",$A="SYM"
8407
+ var MA=Object.freeze({__proto__:null,WORD:PI,UWORD:zI,LOCALHOST:LI,TLD:FI,UTLD:VI,SCHEME:HI,SLASH_SCHEME:BI,NUM:qI,WS:jI,NL:UI,OPENBRACE:WI,OPENBRACKET:ZI,OPENANGLEBRACKET:GI,OPENPAREN:KI,CLOSEBRACE:JI,CLOSEBRACKET:XI,CLOSEANGLEBRACKET:YI,CLOSEPAREN:QI,AMPERSAND:eA,APOSTROPHE:tA,ASTERISK:nA,AT:iA,BACKSLASH:oA,BACKTICK:rA,CARET:sA,COLON:aA,COMMA:lA,DOLLAR:cA,DOT:dA,EQUALS:hA,EXCLAMATION:uA,HYPHEN:pA,PERCENT:fA,PIPE:mA,PLUS:gA,POUND:vA,QUERY:bA,QUOTE:wA,SEMI:yA,SLASH:xA,TILDE:kA,UNDERSCORE:CA,EMOJI:SA,SYM:$A})
8408
+ const _A=/[a-z]/,EA=/\p{L}/u,IA=/\p{Emoji}/u,AA=/\d/,OA=/\s/,TA="\n",RA="️",DA="‍"
8409
+ let NA=null,PA=null
8410
+ function zA(e,t,n,i,o){let r
8408
8411
  const s=t.length
8409
8412
  for(let n=0;n<s-1;n++){const s=t[n]
8410
- e.j[s]?r=e.j[s]:(r=new _I(i),r.jr=o.slice(),e.j[s]=r),e=r}return r=new _I(n),r.jr=o.slice(),e.j[t[s-1]]=r,r}function DA(e){const t=[],n=[]
8413
+ e.j[s]?r=e.j[s]:(r=new OI(i),r.jr=o.slice(),e.j[s]=r),e=r}return r=new OI(n),r.jr=o.slice(),e.j[t[s-1]]=r,r}function LA(e){const t=[],n=[]
8411
8414
  let i=0
8412
8415
  for(;i<e.length;){let o=0
8413
8416
  for(;"0123456789".indexOf(e[i+o])>=0;)o++
8414
8417
  if(o>0){t.push(n.join(""))
8415
8418
  for(let t=parseInt(e.substring(i,i+o),10);t>0;t--)n.pop()
8416
- i+=o}else n.push(e[i]),i++}return t}const NA={defaultProtocol:"http",events:null,format:zA,formatHref:zA,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null}
8417
- function PA(e,t){void 0===t&&(t=null)
8418
- let n=fI({},NA)
8419
- e&&(n=fI(n,e instanceof PA?e.o:e))
8419
+ i+=o}else n.push(e[i]),i++}return t}const FA={defaultProtocol:"http",events:null,format:HA,formatHref:HA,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null}
8420
+ function VA(e,t){void 0===t&&(t=null)
8421
+ let n=bI({},FA)
8422
+ e&&(n=bI(n,e instanceof VA?e.o:e))
8420
8423
  const i=n.ignoreTags,o=[]
8421
8424
  for(let e=0;e<i.length;e++)o.push(i[e].toUpperCase())
8422
- this.o=n,t&&(this.defaultRender=t),this.ignoreTags=o}function zA(e){return e}function LA(e,t){this.t="token",this.v=e,this.tk=t}function FA(e,t){class n extends LA{constructor(t,n){super(t,n),this.t=e}}for(const e in t)n.prototype[e]=t[e]
8423
- return n.t=e,n}PA.prototype={o:NA,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const i=null!=t
8425
+ this.o=n,t&&(this.defaultRender=t),this.ignoreTags=o}function HA(e){return e}function BA(e,t){this.t="token",this.v=e,this.tk=t}function qA(e,t){class n extends BA{constructor(t,n){super(t,n),this.t=e}}for(const e in t)n.prototype[e]=t[e]
8426
+ return n.t=e,n}VA.prototype={o:FA,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const i=null!=t
8424
8427
  let o=this.o[e]
8425
- return o?("object"==typeof o?(o=n.t in o?o[n.t]:NA[e],"function"==typeof o&&i&&(o=o(t,n))):"function"==typeof o&&i&&(o=o(t,n.t,n)),o):o},getObj(e,t,n){let i=this.o[e]
8428
+ return o?("object"==typeof o?(o=n.t in o?o[n.t]:FA[e],"function"==typeof o&&i&&(o=o(t,n))):"function"==typeof o&&i&&(o=o(t,n.t,n)),o):o},getObj(e,t,n){let i=this.o[e]
8426
8429
  return"function"==typeof i&&null!=t&&(i=i(t,n.t,n)),i},render(e){const t=e.render(this)
8427
- return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},LA.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),i=e.get("format",t,this)
8428
- return n&&i.length>n?i.substring(0,n)+"…":i},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return void 0===e&&(e=NA.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),i=e.get("formatHref",n,this),o=e.get("tagName",n,t),r=this.toFormattedString(e),s={},a=e.get("className",n,t),l=e.get("target",n,t),c=e.get("rel",n,t),d=e.getObj("attributes",n,t),h=e.getObj("events",n,t)
8429
- return s.href=i,a&&(s.class=a),l&&(s.target=l),c&&(s.rel=c),d&&fI(s,d),{tagName:o,attributes:s,content:r,eventListeners:h}}}
8430
- const VA=FA("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),HA=FA("text"),BA=FA("nl"),qA=FA("url",{isLink:!0,toHref(e){return void 0===e&&(e=NA.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk
8431
- return e.length>=2&&e[0].t!==DI&&e[1].t===iA}}),jA=e=>new _I(e)
8432
- function UA(e,t,n){const i=n[0].s,o=n[n.length-1].e
8433
- return new e(t.slice(i,o),n)}const WA="undefined"!=typeof console&&console&&console.warn||(()=>{}),ZA={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1}
8434
- function GA(e,t){if(void 0===t&&(t=!1),ZA.initialized&&WA(`linkifyjs: already initialized - will not register custom scheme "${e}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error('linkifyjs: incorrect scheme format.\n 1. Must only contain digits, lowercase ASCII letters or "-"\n 2. Cannot start or end with "-"\n 3. "-" cannot repeat')
8435
- ZA.customSchemes.push([e,t])}function KA(){ZA.scanner=function(e){void 0===e&&(e=[])
8430
+ return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},BA.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),i=e.get("format",t,this)
8431
+ return n&&i.length>n?i.substring(0,n)+"…":i},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return void 0===e&&(e=FA.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),i=e.get("formatHref",n,this),o=e.get("tagName",n,t),r=this.toFormattedString(e),s={},a=e.get("className",n,t),l=e.get("target",n,t),c=e.get("rel",n,t),d=e.getObj("attributes",n,t),h=e.getObj("events",n,t)
8432
+ return s.href=i,a&&(s.class=a),l&&(s.target=l),c&&(s.rel=c),d&&bI(s,d),{tagName:o,attributes:s,content:r,eventListeners:h}}}
8433
+ const jA=qA("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),UA=qA("text"),WA=qA("nl"),ZA=qA("url",{isLink:!0,toHref(e){return void 0===e&&(e=FA.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk
8434
+ return e.length>=2&&e[0].t!==LI&&e[1].t===aA}}),GA=e=>new OI(e)
8435
+ function KA(e,t,n){const i=n[0].s,o=n[n.length-1].e
8436
+ return new e(t.slice(i,o),n)}const JA="undefined"!=typeof console&&console&&console.warn||(()=>{}),XA={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1}
8437
+ function YA(e,t){if(void 0===t&&(t=!1),XA.initialized&&JA(`linkifyjs: already initialized - will not register custom scheme "${e}" until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error('linkifyjs: incorrect scheme format.\n 1. Must only contain digits, lowercase ASCII letters or "-"\n 2. Cannot start or end with "-"\n 3. "-" cannot repeat')
8438
+ XA.customSchemes.push([e,t])}function QA(){XA.scanner=function(e){void 0===e&&(e=[])
8436
8439
  const t={}
8437
- _I.groups=t
8438
- const n=new _I
8439
- null==OA&&(OA=DA(uI)),null==TA&&(TA=DA(pI)),OI(n,"'",XI),OI(n,"{",BI),OI(n,"[",qI),OI(n,"<",jI),OI(n,"(",UI),OI(n,"}",WI),OI(n,"]",ZI),OI(n,">",GI),OI(n,")",KI),OI(n,"&",JI),OI(n,"*",YI),OI(n,"@",QI),OI(n,"`",tA),OI(n,"^",nA),OI(n,":",iA),OI(n,",",oA),OI(n,"$",rA),OI(n,".",sA),OI(n,"=",aA),OI(n,"!",lA),OI(n,"-",cA),OI(n,"%",dA),OI(n,"|",hA),OI(n,"+",uA),OI(n,"#",pA),OI(n,"?",fA),OI(n,'"',mA),OI(n,"/",vA),OI(n,";",gA),OI(n,"~",bA),OI(n,"_",wA),OI(n,"\\",eA)
8440
- const i=II(n,MA,FI,{[mI]:!0})
8441
- II(i,MA,i)
8442
- const o=II(n,CA,TI,{[gI]:!0})
8443
- II(o,CA,o)
8444
- const r=II(n,SA,RI,{[vI]:!0})
8445
- II(r,CA),II(r,SA,r)
8446
- const s=II(n,_A,VI,{[SI]:!0})
8447
- OI(n,EA,HI,{[SI]:!0}),OI(s,EA),II(s,_A,s)
8448
- const a=II(n,$A,yA,{[xI]:!0})
8449
- II(a,$A,a),OI(a,IA,a)
8450
- const l=OI(a,AA)
8451
- II(l,$A,a)
8452
- const c=[[CA,o]],d=[[CA,null],[SA,r]]
8453
- for(let e=0;e<OA.length;e++)RA(n,OA[e],NI,TI,c)
8454
- for(let e=0;e<TA.length;e++)RA(n,TA[e],PI,RI,d)
8455
- MI(NI,{tld:!0,ascii:!0},t),MI(PI,{utld:!0,alpha:!0},t),RA(n,"file",zI,TI,c),RA(n,"mailto",zI,TI,c),RA(n,"http",LI,TI,c),RA(n,"https",LI,TI,c),RA(n,"ftp",LI,TI,c),RA(n,"ftps",LI,TI,c),MI(zI,{scheme:!0,ascii:!0},t),MI(LI,{slashscheme:!0,ascii:!0},t),e=e.sort(((e,t)=>e[0]>t[0]?1:-1))
8456
- for(let t=0;t<e.length;t++){const i=e[t][0],o=e[t][1]?{[kI]:!0}:{[CI]:!0}
8457
- i.indexOf("-")>=0?o[yI]=!0:CA.test(i)?MA.test(i)?o[bI]=!0:o[gI]=!0:o[mI]=!0,AI(n,i,i,o)}return AI(n,"localhost",DI,{ascii:!0}),n.jd=new _I(xA),{start:n,tokens:fI({groups:t},kA)}}(ZA.customSchemes)
8458
- for(let e=0;e<ZA.tokenQueue.length;e++)ZA.tokenQueue[e][1]({scanner:ZA.scanner})
8459
- ZA.parser=function(e){let{groups:t}=e
8460
- const n=t.domain.concat([JI,YI,QI,eA,tA,nA,rA,aA,cA,FI,dA,hA,uA,pA,vA,xA,bA,wA]),i=[XI,GI,WI,ZI,KI,iA,oA,sA,lA,jI,BI,qI,UI,fA,mA,gA],o=[JI,XI,YI,eA,tA,nA,WI,rA,aA,cA,BI,dA,hA,uA,pA,fA,vA,xA,bA,wA],r=jA(),s=OI(r,bA)
8461
- EI(s,o,s),EI(s,t.domain,s)
8462
- const a=jA(),l=jA(),c=jA()
8463
- EI(r,t.domain,a),EI(r,t.scheme,l),EI(r,t.slashscheme,c),EI(a,o,s),EI(a,t.domain,a)
8464
- const d=OI(a,QI)
8465
- OI(s,QI,d),OI(l,QI,d),OI(c,QI,d)
8466
- const h=OI(s,sA)
8467
- EI(h,o,s),EI(h,t.domain,s)
8468
- const u=jA()
8469
- EI(d,t.domain,u),EI(u,t.domain,u)
8470
- const p=OI(u,sA)
8471
- EI(p,t.domain,u)
8472
- const f=jA(VA)
8473
- EI(p,t.tld,f),EI(p,t.utld,f),OI(d,DI,f)
8474
- const m=OI(u,cA)
8475
- EI(m,t.domain,u),EI(f,t.domain,u),OI(f,sA,p),OI(f,cA,m)
8476
- const g=OI(f,iA)
8477
- EI(g,t.numeric,VA)
8478
- const v=OI(a,cA),b=OI(a,sA)
8479
- EI(v,t.domain,a),EI(b,o,s),EI(b,t.domain,a)
8480
- const w=jA(qA)
8481
- EI(b,t.tld,w),EI(b,t.utld,w),EI(w,t.domain,a),EI(w,o,s),OI(w,sA,b),OI(w,cA,v),OI(w,QI,d)
8482
- const y=OI(w,iA),x=jA(qA)
8483
- EI(y,t.numeric,x)
8484
- const k=jA(qA),C=jA()
8485
- EI(k,n,k),EI(k,i,C),EI(C,n,k),EI(C,i,C),OI(w,vA,k),OI(x,vA,k)
8486
- const S=OI(l,iA),$=OI(c,iA),M=OI($,vA),_=OI(M,vA)
8487
- EI(l,t.domain,a),OI(l,sA,b),OI(l,cA,v),EI(c,t.domain,a),OI(c,sA,b),OI(c,cA,v),EI(S,t.domain,k),OI(S,vA,k),EI(_,t.domain,k),EI(_,n,k),OI(_,vA,k)
8488
- const E=OI(k,BI),I=OI(k,qI),A=OI(k,jI),O=OI(k,UI)
8489
- OI(C,BI,E),OI(C,qI,I),OI(C,jI,A),OI(C,UI,O),OI(E,WI,k),OI(I,ZI,k),OI(A,GI,k),OI(O,KI,k),OI(E,WI,k)
8490
- const T=jA(qA),R=jA(qA),D=jA(qA),N=jA(qA)
8491
- EI(E,n,T),EI(I,n,R),EI(A,n,D),EI(O,n,N)
8492
- const P=jA(),z=jA(),L=jA(),F=jA()
8493
- return EI(E,i),EI(I,i),EI(A,i),EI(O,i),EI(T,n,T),EI(R,n,R),EI(D,n,D),EI(N,n,N),EI(T,i,T),EI(R,i,R),EI(D,i,D),EI(N,i,N),EI(P,n,P),EI(z,n,R),EI(L,n,D),EI(F,n,N),EI(P,i,P),EI(z,i,z),EI(L,i,L),EI(F,i,F),OI(R,ZI,k),OI(D,GI,k),OI(N,KI,k),OI(T,WI,k),OI(z,ZI,k),OI(L,GI,k),OI(F,KI,k),OI(P,KI,k),OI(r,DI,w),OI(r,HI,BA),{start:r,tokens:kA}}(ZA.scanner.tokens)
8494
- for(let e=0;e<ZA.pluginQueue.length;e++)ZA.pluginQueue[e][1]({scanner:ZA.scanner,parser:ZA.parser})
8495
- ZA.initialized=!0}function JA(e){return ZA.initialized||KA(),function(e,t,n){let i=n.length,o=0,r=[],s=[]
8440
+ OI.groups=t
8441
+ const n=new OI
8442
+ null==NA&&(NA=LA(gI)),null==PA&&(PA=LA(vI)),NI(n,"'",tA),NI(n,"{",WI),NI(n,"[",ZI),NI(n,"<",GI),NI(n,"(",KI),NI(n,"}",JI),NI(n,"]",XI),NI(n,">",YI),NI(n,")",QI),NI(n,"&",eA),NI(n,"*",nA),NI(n,"@",iA),NI(n,"`",rA),NI(n,"^",sA),NI(n,":",aA),NI(n,",",lA),NI(n,"$",cA),NI(n,".",dA),NI(n,"=",hA),NI(n,"!",uA),NI(n,"-",pA),NI(n,"%",fA),NI(n,"|",mA),NI(n,"+",gA),NI(n,"#",vA),NI(n,"?",bA),NI(n,'"',wA),NI(n,"/",xA),NI(n,";",yA),NI(n,"~",kA),NI(n,"_",CA),NI(n,"\\",oA)
8443
+ const i=RI(n,AA,qI,{[wI]:!0})
8444
+ RI(i,AA,i)
8445
+ const o=RI(n,_A,PI,{[yI]:!0})
8446
+ RI(o,_A,o)
8447
+ const r=RI(n,EA,zI,{[xI]:!0})
8448
+ RI(r,_A),RI(r,EA,r)
8449
+ const s=RI(n,OA,jI,{[EI]:!0})
8450
+ NI(n,TA,UI,{[EI]:!0}),NI(s,TA),RI(s,OA,s)
8451
+ const a=RI(n,IA,SA,{[$I]:!0})
8452
+ RI(a,IA,a),NI(a,RA,a)
8453
+ const l=NI(a,DA)
8454
+ RI(l,IA,a)
8455
+ const c=[[_A,o]],d=[[_A,null],[EA,r]]
8456
+ for(let e=0;e<NA.length;e++)zA(n,NA[e],FI,PI,c)
8457
+ for(let e=0;e<PA.length;e++)zA(n,PA[e],VI,zI,d)
8458
+ AI(FI,{tld:!0,ascii:!0},t),AI(VI,{utld:!0,alpha:!0},t),zA(n,"file",HI,PI,c),zA(n,"mailto",HI,PI,c),zA(n,"http",BI,PI,c),zA(n,"https",BI,PI,c),zA(n,"ftp",BI,PI,c),zA(n,"ftps",BI,PI,c),AI(HI,{scheme:!0,ascii:!0},t),AI(BI,{slashscheme:!0,ascii:!0},t),e=e.sort(((e,t)=>e[0]>t[0]?1:-1))
8459
+ for(let t=0;t<e.length;t++){const i=e[t][0],o=e[t][1]?{[MI]:!0}:{[_I]:!0}
8460
+ i.indexOf("-")>=0?o[SI]=!0:_A.test(i)?AA.test(i)?o[kI]=!0:o[yI]=!0:o[wI]=!0,DI(n,i,i,o)}return DI(n,"localhost",LI,{ascii:!0}),n.jd=new OI($A),{start:n,tokens:bI({groups:t},MA)}}(XA.customSchemes)
8461
+ for(let e=0;e<XA.tokenQueue.length;e++)XA.tokenQueue[e][1]({scanner:XA.scanner})
8462
+ XA.parser=function(e){let{groups:t}=e
8463
+ const n=t.domain.concat([eA,nA,iA,oA,rA,sA,cA,hA,pA,qI,fA,mA,gA,vA,xA,$A,kA,CA]),i=[tA,YI,JI,XI,QI,aA,lA,dA,uA,GI,WI,ZI,KI,bA,wA,yA],o=[eA,tA,nA,oA,rA,sA,JI,cA,hA,pA,WI,fA,mA,gA,vA,bA,xA,$A,kA,CA],r=GA(),s=NI(r,kA)
8464
+ TI(s,o,s),TI(s,t.domain,s)
8465
+ const a=GA(),l=GA(),c=GA()
8466
+ TI(r,t.domain,a),TI(r,t.scheme,l),TI(r,t.slashscheme,c),TI(a,o,s),TI(a,t.domain,a)
8467
+ const d=NI(a,iA)
8468
+ NI(s,iA,d),NI(l,iA,d),NI(c,iA,d)
8469
+ const h=NI(s,dA)
8470
+ TI(h,o,s),TI(h,t.domain,s)
8471
+ const u=GA()
8472
+ TI(d,t.domain,u),TI(u,t.domain,u)
8473
+ const p=NI(u,dA)
8474
+ TI(p,t.domain,u)
8475
+ const f=GA(jA)
8476
+ TI(p,t.tld,f),TI(p,t.utld,f),NI(d,LI,f)
8477
+ const m=NI(u,pA)
8478
+ TI(m,t.domain,u),TI(f,t.domain,u),NI(f,dA,p),NI(f,pA,m)
8479
+ const g=NI(f,aA)
8480
+ TI(g,t.numeric,jA)
8481
+ const v=NI(a,pA),b=NI(a,dA)
8482
+ TI(v,t.domain,a),TI(b,o,s),TI(b,t.domain,a)
8483
+ const w=GA(ZA)
8484
+ TI(b,t.tld,w),TI(b,t.utld,w),TI(w,t.domain,a),TI(w,o,s),NI(w,dA,b),NI(w,pA,v),NI(w,iA,d)
8485
+ const y=NI(w,aA),x=GA(ZA)
8486
+ TI(y,t.numeric,x)
8487
+ const k=GA(ZA),C=GA()
8488
+ TI(k,n,k),TI(k,i,C),TI(C,n,k),TI(C,i,C),NI(w,xA,k),NI(x,xA,k)
8489
+ const S=NI(l,aA),$=NI(c,aA),M=NI($,xA),_=NI(M,xA)
8490
+ TI(l,t.domain,a),NI(l,dA,b),NI(l,pA,v),TI(c,t.domain,a),NI(c,dA,b),NI(c,pA,v),TI(S,t.domain,k),NI(S,xA,k),TI(_,t.domain,k),TI(_,n,k),NI(_,xA,k)
8491
+ const E=NI(k,WI),I=NI(k,ZI),A=NI(k,GI),O=NI(k,KI)
8492
+ NI(C,WI,E),NI(C,ZI,I),NI(C,GI,A),NI(C,KI,O),NI(E,JI,k),NI(I,XI,k),NI(A,YI,k),NI(O,QI,k),NI(E,JI,k)
8493
+ const T=GA(ZA),R=GA(ZA),D=GA(ZA),N=GA(ZA)
8494
+ TI(E,n,T),TI(I,n,R),TI(A,n,D),TI(O,n,N)
8495
+ const P=GA(),z=GA(),L=GA(),F=GA()
8496
+ return TI(E,i),TI(I,i),TI(A,i),TI(O,i),TI(T,n,T),TI(R,n,R),TI(D,n,D),TI(N,n,N),TI(T,i,T),TI(R,i,R),TI(D,i,D),TI(N,i,N),TI(P,n,P),TI(z,n,R),TI(L,n,D),TI(F,n,N),TI(P,i,P),TI(z,i,z),TI(L,i,L),TI(F,i,F),NI(R,XI,k),NI(D,YI,k),NI(N,QI,k),NI(T,JI,k),NI(z,XI,k),NI(L,YI,k),NI(F,QI,k),NI(P,QI,k),NI(r,LI,w),NI(r,UI,WA),{start:r,tokens:MA}}(XA.scanner.tokens)
8497
+ for(let e=0;e<XA.pluginQueue.length;e++)XA.pluginQueue[e][1]({scanner:XA.scanner,parser:XA.parser})
8498
+ XA.initialized=!0}function eO(e){return XA.initialized||QA(),function(e,t,n){let i=n.length,o=0,r=[],s=[]
8496
8499
  for(;o<i;){let a=e,l=null,c=null,d=0,h=null,u=-1
8497
8500
  for(;o<i&&!(l=a.go(n[o].t));)s.push(n[o++])
8498
8501
  for(;o<i&&(c=l||a.go(n[o].t));)l=null,a=c,a.accepts()?(u=0,h=a):u>=0&&u++,o++,d++
8499
8502
  if(u<0)o-=d,o<i&&(s.push(n[o]),o++)
8500
- else{s.length>0&&(r.push(UA(HA,t,s)),s=[]),o-=u,d-=u
8503
+ else{s.length>0&&(r.push(KA(UA,t,s)),s=[]),o-=u,d-=u
8501
8504
  const e=h.t,i=n.slice(o-d,o)
8502
- r.push(UA(e,t,i))}}return s.length>0&&r.push(UA(HA,t,s)),r}(ZA.parser.start,e,function(e,t){const n=function(e){const t=[],n=e.length
8505
+ r.push(KA(e,t,i))}}return s.length>0&&r.push(KA(UA,t,s)),r}(XA.parser.start,e,function(e,t){const n=function(e){const t=[],n=e.length
8503
8506
  let i=0
8504
8507
  for(;i<n;){let o,r=e.charCodeAt(i),s=r<55296||r>56319||i+1===n||(o=e.charCodeAt(i+1))<56320||o>57343?e[i]:e.slice(i,i+2)
8505
8508
  t.push(s),i+=s.length}return t}(t.replace(/[A-Z]/g,(e=>e.toLowerCase()))),i=n.length,o=[]
8506
8509
  let r=0,s=0
8507
8510
  for(;s<i;){let a=e,l=null,c=0,d=null,h=-1,u=-1
8508
8511
  for(;s<i&&(l=a.go(n[s]));)a=l,a.accepts()?(h=0,u=0,d=a):h>=0&&(h+=n[s].length,u++),c+=n[s].length,r+=n[s].length,s++
8509
- r-=h,s-=u,c-=h,o.push({t:d.t,v:t.slice(r-c,r),s:r-c,e:r})}return o}(ZA.scanner.start,e))}function XA(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),t&&"object"==typeof t){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`)
8510
- n=t,t=null}const i=new PA(n),o=JA(e),r=[]
8512
+ r-=h,s-=u,c-=h,o.push({t:d.t,v:t.slice(r-c,r),s:r-c,e:r})}return o}(XA.scanner.start,e))}function tO(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),t&&"object"==typeof t){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`)
8513
+ n=t,t=null}const i=new VA(n),o=eO(e),r=[]
8511
8514
  for(let e=0;e<o.length;e++){const n=o[e]
8512
- !n.isLink||t&&n.t!==t||r.push(n.toFormattedObject(i))}return r}function YA(e){return new Fw({key:new Bw("autolink"),appendTransaction:(t,n,i)=>{const o=t.some((e=>e.docChanged))&&!n.doc.eq(i.doc),r=t.some((e=>e.getMeta("preventAutolink")))
8515
+ !n.isLink||t&&n.t!==t||r.push(n.toFormattedObject(i))}return r}function nO(e){return new Fw({key:new Bw("autolink"),appendTransaction:(t,n,i)=>{const o=t.some((e=>e.docChanged))&&!n.doc.eq(i.doc),r=t.some((e=>e.getMeta("preventAutolink")))
8513
8516
  if(!o||r)return
8514
8517
  const{tr:s}=i,a=function(e,t){const n=new bw(e)
8515
8518
  return t.forEach((e=>{e.steps.forEach((e=>{n.step(e)}))})),n}(n.doc,[...t]),l=function(e){const{mapping:t,steps:n}=e,i=[]
@@ -8526,12 +8529,12 @@ if(n.length>1?(o=n[0],r=i.doc.textBetween(o.pos,o.pos+o.node.nodeSize,void 0," "
8526
8529
  if(t.length<=0)return!1
8527
8530
  const n=t[t.length-1],a=o.pos+r.lastIndexOf(n)
8528
8531
  if(!n)return!1
8529
- XA(n).filter((e=>e.isLink)).map((e=>({...e,from:a+e.start+1,to:a+e.end+1}))).filter((e=>!i.schema.marks.code||!i.doc.rangeHasMark(e.from,e.to,i.schema.marks.code))).filter((t=>!e.validate||e.validate(t.value))).forEach((t=>{vS(t.from,t.to,i.doc).some((t=>t.mark.type===e.type))||s.addMark(t.from,t.to,e.type.create({href:t.href}))}))}})),s.steps.length?s:void 0}})}const QA=DS.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach((e=>{"string"!=typeof e?GA(e.scheme,e.optionalSlashes):GA(e)}))},onDestroy(){_I.groups={},ZA.scanner=null,ZA.parser=null,ZA.tokenQueue=[],ZA.pluginQueue=[],ZA.customSchemes=[],ZA.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:e}){var t
8530
- return(null===(t=e.href)||void 0===t?void 0:t.startsWith("javascript:"))?["a",_C(this.options.HTMLAttributes,{...e,href:""}),0]:["a",_C(this.options.HTMLAttributes,e),0]},addCommands(){return{setLink:e=>({chain:t})=>t().setMark(this.name,e).setMeta("preventAutolink",!0).run(),toggleLink:e=>({chain:t})=>t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[PS({find:e=>XA(e).filter((e=>!this.options.validate||this.options.validate(e.value))).filter((e=>e.isLink)).map((e=>({text:e.value,index:e.start,data:e}))),type:this.type,getAttributes:(e,t)=>{var n,i
8532
+ tO(n).filter((e=>e.isLink)).map((e=>({...e,from:a+e.start+1,to:a+e.end+1}))).filter((e=>!i.schema.marks.code||!i.doc.rangeHasMark(e.from,e.to,i.schema.marks.code))).filter((t=>!e.validate||e.validate(t.value))).forEach((t=>{vS(t.from,t.to,i.doc).some((t=>t.mark.type===e.type))||s.addMark(t.from,t.to,e.type.create({href:t.href}))}))}})),s.steps.length?s:void 0}})}const iO=DS.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach((e=>{"string"!=typeof e?YA(e.scheme,e.optionalSlashes):YA(e)}))},onDestroy(){OI.groups={},XA.scanner=null,XA.parser=null,XA.tokenQueue=[],XA.pluginQueue=[],XA.customSchemes=[],XA.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:e}){var t
8533
+ return(null===(t=e.href)||void 0===t?void 0:t.startsWith("javascript:"))?["a",_C(this.options.HTMLAttributes,{...e,href:""}),0]:["a",_C(this.options.HTMLAttributes,e),0]},addCommands(){return{setLink:e=>({chain:t})=>t().setMark(this.name,e).setMeta("preventAutolink",!0).run(),toggleLink:e=>({chain:t})=>t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[PS({find:e=>tO(e).filter((e=>!this.options.validate||this.options.validate(e.value))).filter((e=>e.isLink)).map((e=>({text:e.value,index:e.start,data:e}))),type:this.type,getAttributes:(e,t)=>{var n,i
8531
8534
  const o=null===(n=null==t?void 0:t.clipboardData)||void 0===n?void 0:n.getData("text/html"),r=null==o?void 0:o.match(/href="([^"]*)"/)
8532
8535
  return r?{href:r[1]}:{href:null===(i=e.data)||void 0===i?void 0:i.href}}})]},addProseMirrorPlugins(){const e=[]
8533
8536
  var t
8534
- return this.options.autolink&&e.push(YA({type:this.type,validate:this.options.validate})),this.options.openOnClick&&e.push((t={type:this.type},new Fw({key:new Bw("handleClickLink"),props:{handleClick:(e,n,i)=>{var o,r
8537
+ return this.options.autolink&&e.push(nO({type:this.type,validate:this.options.validate})),this.options.openOnClick&&e.push((t={type:this.type},new Fw({key:new Bw("handleClickLink"),props:{handleClick:(e,n,i)=>{var o,r
8535
8538
  if(0!==i.button)return!1
8536
8539
  if("A"!==i.target.nodeName)return!1
8537
8540
  const s=mS(e.state,t.type.name),a=i.target,l=null!==(o=null==a?void 0:a.href)&&void 0!==o?o:s.href,c=null!==(r=null==a?void 0:a.target)&&void 0!==r?r:s.target
@@ -8540,22 +8543,22 @@ const{state:r}=t,{selection:s}=r,{empty:a}=s
8540
8543
  if(a)return!1
8541
8544
  let l=""
8542
8545
  i.content.forEach((e=>{l+=e.textContent}))
8543
- const c=XA(l).find((e=>e.isLink&&e.value===l))
8546
+ const c=tO(l).find((e=>e.isLink&&e.value===l))
8544
8547
  if(!l||!c)return!1
8545
8548
  const d=null===(o=n.clipboardData)||void 0===o?void 0:o.getData("text/html"),h=null==d?void 0:d.match(/href="([^"]*)"/),u=h?h[1]:c.href
8546
- return e.editor.commands.setMark(e.type,{href:u}),!0}}})}({editor:this.editor,type:this.type})),e}}),eO=NS.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",_C(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),tO=NS.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",_C(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),nO=DS.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:e=>!!e.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:e}){return["span",_C(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const n=pS(e,this.type)
8547
- return!!Object.entries(n).some((([,e])=>!!e))||t.unsetMark(this.name)}}}}),iO=/^(\d+)\.\s$/,oO=NS.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){const{start:t,...n}=e
8548
- return 1===t?["ol",_C(this.options.HTMLAttributes,n),0]:["ol",_C(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(tO.name,this.editor.getAttributes(nO.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=RS({find:iO,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]})
8549
- return(this.options.keepMarks||this.options.keepAttributes)&&(e=RS({find:iO,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(nO.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),rO=NS.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",_C(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),sO=ZC.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new Fw({key:new Bw("placeholder"),props:{decorations:({doc:e,selection:t})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=t,o=[]
8549
+ return e.editor.commands.setMark(e.type,{href:u}),!0}}})}({editor:this.editor,type:this.type})),e}}),oO=NS.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",_C(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),rO=NS.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:e}){return["li",_C(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),sO=DS.create({name:"textStyle",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"span",getAttrs:e=>!!e.hasAttribute("style")&&{}}],renderHTML({HTMLAttributes:e}){return["span",_C(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:e,commands:t})=>{const n=pS(e,this.type)
8550
+ return!!Object.entries(n).some((([,e])=>!!e))||t.unsetMark(this.name)}}}}),aO=/^(\d+)\.\s$/,lO=NS.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:e}){const{start:t,...n}=e
8551
+ return 1===t?["ol",_C(this.options.HTMLAttributes,n),0]:["ol",_C(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(rO.name,this.editor.getAttributes(sO.name)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=RS({find:aO,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]})
8552
+ return(this.options.keepMarks||this.options.keepAttributes)&&(e=RS({find:aO,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(sO.name)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),cO=NS.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",_C(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),dO=ZC.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new Fw({key:new Bw("placeholder"),props:{decorations:({doc:e,selection:t})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=t,o=[]
8550
8553
  if(!n)return null
8551
8554
  const r=e.type.createAndFill(),s=(null==r?void 0:r.sameMarkup(e))&&null===r.content.findDiffStart(e.content)
8552
8555
  return e.descendants(((e,t)=>{const n=i>=t&&i<=t+e.nodeSize,r=!e.isLeaf&&!e.childCount
8553
8556
  if((n||!this.options.showOnlyCurrent)&&r){const i=[this.options.emptyNodeClass]
8554
8557
  s&&i.push(this.options.emptyEditorClass)
8555
8558
  const r=kk.node(t,t+e.nodeSize,{class:i.join(" "),"data-placeholder":"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:e,pos:t,hasAnchor:n}):this.options.placeholder})
8556
- o.push(r)}return this.options.includeChildren})),$k.create(e,o)}}})]}}),aO=NS.create({name:"text",group:"inline"})
8557
- const lO=new Bw("suggestion")
8558
- function cO({pluginKey:e=lO,editor:t,char:n="@",allowSpaces:i=!1,allowedPrefixes:o=[" "],startOfLine:r=!1,decorationTag:s="span",decorationClass:a="suggestion",command:l=(()=>null),items:c=(()=>[]),render:d=(()=>({})),allow:h=(()=>!0)}){let u
8559
+ o.push(r)}return this.options.includeChildren})),$k.create(e,o)}}})]}}),hO=NS.create({name:"text",group:"inline"})
8560
+ const uO=new Bw("suggestion")
8561
+ function pO({pluginKey:e=uO,editor:t,char:n="@",allowSpaces:i=!1,allowedPrefixes:o=[" "],startOfLine:r=!1,decorationTag:s="span",decorationClass:a="suggestion",command:l=(()=>null),items:c=(()=>[]),render:d=(()=>({})),allow:h=(()=>!0)}){let u
8559
8562
  const p=null==d?void 0:d(),f=new Fw({key:e,view(){return{update:async(e,n)=>{var i,o,r,s,a,d,h
8560
8563
  const f=null===(i=this.key)||void 0===i?void 0:i.getState(n),m=null===(o=this.key)||void 0===o?void 0:o.getState(e.state),g=f.active&&m.active&&f.range.from!==m.range.from,v=!f.active&&m.active,b=f.active&&!m.active,w=v||g,y=!v&&!b&&f.query!==m.query&&!g,x=b||g
8561
8564
  if(!w&&!y&&!x)return
@@ -8580,42 +8583,45 @@ return m.active||(m.decorationId=null,m.range={from:0,to:0},m.query=null,m.text=
8580
8583
  const{active:i,range:o}=f.getState(e.state)
8581
8584
  return i&&(null===(n=null==p?void 0:p.onKeyDown)||void 0===n?void 0:n.call(p,{view:e,event:t,range:o}))||!1},decorations(e){const{active:t,range:n,decorationId:i}=f.getState(e)
8582
8585
  return t?$k.create(e.doc,[kk.inline(n.from,n.to,{nodeName:s,class:a,"data-decoration-id":i})]):null}}})
8583
- return f}const dO=new Bw("mention"),hO=NS.create({name:"mention",addOptions(){return{HTMLAttributes:{},renderLabel({options:e,node:t}){var n
8584
- return`${e.suggestion.char}${null!==(n=t.attrs.label)&&void 0!==n?n:t.attrs.id}`},suggestion:{char:"@",pluginKey:dO,command:({editor:e,range:t,props:n})=>{var i,o
8586
+ return f}const fO=new Bw("mention"),mO=NS.create({name:"mention",addOptions(){return{HTMLAttributes:{},renderLabel({options:e,node:t}){var n
8587
+ return`${e.suggestion.char}${null!==(n=t.attrs.label)&&void 0!==n?n:t.attrs.id}`},suggestion:{char:"@",pluginKey:fO,command:({editor:e,range:t,props:n})=>{var i,o
8585
8588
  const r=e.view.state.selection.$to.nodeAfter;(null===(i=null==r?void 0:r.text)||void 0===i?void 0:i.startsWith(" "))&&(t.to+=1),e.chain().focus().insertContentAt(t,[{type:this.name,attrs:n},{type:"text",text:" "}]).run(),null===(o=window.getSelection())||void 0===o||o.collapseToEnd()},allow:({state:e,range:t})=>{const n=e.doc.resolve(t.from),i=e.schema.nodes[this.name]
8586
8589
  return!!n.parent.type.contentMatch.matchType(i)}}}},group:"inline",inline:!0,selectable:!1,atom:!0,addAttributes:()=>({id:{default:null,parseHTML:e=>e.getAttribute("data-id"),renderHTML:e=>e.id?{"data-id":e.id}:{}},label:{default:null,parseHTML:e=>e.getAttribute("data-label"),renderHTML:e=>e.label?{"data-label":e.label}:{}}}),parseHTML(){return[{tag:`span[data-type="${this.name}"]`}]},renderHTML({node:e,HTMLAttributes:t}){return["span",_C({"data-type":this.name},this.options.HTMLAttributes,t),this.options.renderLabel({options:this.options,node:e})]},renderText({node:e}){return this.options.renderLabel({options:this.options,node:e})},addKeyboardShortcuts(){return{Backspace:()=>this.editor.commands.command((({tr:e,state:t})=>{let n=!1
8587
8590
  const{selection:i}=t,{empty:o,anchor:r}=i
8588
- return!!o&&(t.doc.nodesBetween(r-1,r,((t,i)=>{if(t.type.name===this.name)return n=!0,e.insertText(this.options.suggestion.char||"",i,i+t.nodeSize),!1})),n)}))}},addProseMirrorPlugins(){return[cO({editor:this.editor,...this.options.suggestion})]}}),uO=/^https?:\/\//i
8589
- function pO(e,t,n,i,o,r){const s=QA.extend({excludes:"_",inclusive:!1,parseHTML:()=>[{tag:Jd},{tag:"a"}],renderHTML:({HTMLAttributes:e})=>["a",e]}).configure({HTMLAttributes:{rel:"noopener noreferrer",target:null,class:""},autolink:!0,openOnClick:!1,linkOnPaste:!1,validate:e=>uO.test(e)}),a=i.map((n=>function(e,t,n,i){return hO.extend({name:e.name,parseHTML:()=>[{tag:e.viewElement}],addAttributes:()=>({href:{default:null,parseHTML:e=>e.getAttribute("mention-href"),renderHTML:e=>({"mention-href":e.href})},label:{default:null,parseHTML:e=>e.getAttribute("mention-label"),renderHTML:e=>({"mention-label":e.label})},disabled:{default:null,parseHTML:e=>e.getAttribute("disabled"),renderHTML:e=>({disabled:e.disabled})}}),renderHTML({node:t,HTMLAttributes:n}){return[e.viewElement,_C(this.options.HTMLAttributes,n),this.options.renderLabel({options:this.options,node:t})]}}).configure({suggestion:{char:e.character,decorationClass:"nimble-mention-view-edit",pluginKey:new Bw(e.key),allowSpaces:!0,render:()=>{let o=!1
8590
- return{onStart:r=>{null!==r.decorationNode&&(o=!0,e.mentionUpdateEmitter(r.query),t(r.text.slice(0,1)),n(r.command),i?.show({filter:r.query,anchorNode:r.decorationNode}))},onUpdate:t=>{o&&(e.mentionUpdateEmitter(t.query),n(t.command),i?.show({filter:t.query,anchorNode:t.decorationNode}))},onKeyDown:e=>!!o&&(e.event.key===ha&&(o=!1),i?.keydownHandler(e.event)??!1),onExit:()=>{t(""),n(void 0),i?.close()}}}}})}(n,e,t,o))),l=new OS({element:n,enableInputRules:[FE,oO],enablePasteRules:!1,editorProps:{transformPasted:function(e){const t=fO(l,e.content)
8591
- return new Lv(t,e.openStart,e.openEnd)}},extensions:[VE,rO,aO,FE,oO,eO,NE,hI,sI,sO.configure({placeholder:r,showOnlyWhenEditable:!1}),zS,s,...a]})
8592
- return l}function fO(e,t){const n=[]
8591
+ return!!o&&(t.doc.nodesBetween(r-1,r,((t,i)=>{if(t.type.name===this.name)return n=!0,e.insertText(this.options.suggestion.char||"",i,i+t.nodeSize),!1})),n)}))}},addProseMirrorPlugins(){return[pO({editor:this.editor,...this.options.suggestion})]}}),gO=/^https?:\/\//i
8592
+ function vO(e,t,n,i,o,r){const s=iO.extend({excludes:"_",inclusive:!1,parseHTML:()=>[{tag:Jd},{tag:"a"}],renderHTML:({HTMLAttributes:e})=>["a",e]}).configure({HTMLAttributes:{rel:"noopener noreferrer",target:null,class:""},autolink:!0,openOnClick:!1,linkOnPaste:!1,validate:e=>gO.test(e)}),a=i.map((n=>function(e,t,n,i){return mO.extend({name:e.name,parseHTML:()=>[{tag:e.viewElement}],addAttributes:()=>({href:{default:null,parseHTML:e=>e.getAttribute("mention-href"),renderHTML:e=>({"mention-href":e.href})},label:{default:null,parseHTML:e=>e.getAttribute("mention-label"),renderHTML:e=>({"mention-label":e.label})},disabled:{default:null,parseHTML:e=>e.getAttribute("disabled"),renderHTML:e=>({disabled:e.disabled})}}),renderHTML({node:t,HTMLAttributes:n}){return[e.viewElement,_C(this.options.HTMLAttributes,n),this.options.renderLabel({options:this.options,node:t})]}}).configure({suggestion:{char:e.character,decorationClass:"nimble-mention-view-edit",pluginKey:new Bw(e.key),allowSpaces:!0,render:()=>{let o=!1
8593
+ return{onStart:r=>{null!==r.decorationNode&&(o=!0,e.mentionUpdateEmitter(r.query),t(r.text.slice(0,1)),n(r.command),i?.show({filter:r.query,anchorNode:r.decorationNode}))},onUpdate:t=>{o&&(e.mentionUpdateEmitter(t.query),n(t.command),i?.show({filter:t.query,anchorNode:t.decorationNode}))},onKeyDown:e=>!!o&&(e.event.key===ha&&(o=!1),i?.keydownHandler(e.event)??!1),onExit:()=>{t(""),n(void 0),i?.close()}}}}})}(n,e,t,o))),l=new OS({element:n,enableInputRules:[qE,lO],enablePasteRules:!1,editorProps:{transformPasted:function(e){const t=bO(l,e.content)
8594
+ return new Lv(t,e.openStart,e.openEnd)}},extensions:[jE,cO,hO,qE,lO,oO,FE,mI,dI,dO.configure({placeholder:r,showOnlyWhenEditable:!1}),zS,s,...a]})
8595
+ return l}function bO(e,t){const n=[]
8593
8596
  return t.forEach((t=>{if(t.isText&&t.marks.length>0){const i=t.marks.find((e=>"link"===e.type.name&&e.attrs))
8594
- i?uO.test(i.attrs.href)?n.push(e.schema.text(i.attrs.href,t.marks)):n.push(e.schema.text(t.textContent,i.removeFromSet(t.marks))):n.push(t)}else if(t.type.name.startsWith(l$))n.push(e.schema.text(t.attrs.label))
8595
- else{const i=fO(e,t.content)
8596
- n.push(t.copy(i))}})),Tv.fromArray(n)}class mO extends _E{constructor(e){super(e),this.mentionExtensionConfig=this.isValid?e.map((e=>new AE(e.mentionInternals))):[]}}class gO extends IE{constructor(){super(...arguments),this.editor=this.createEditor(),this.tiptapEditor=pO((()=>{}),(()=>{}),this.editor,[],this.mentionListbox,this.placeholder),this.xmlSerializer=new XMLSerializer,this.richTextMarkdownSerializer=new CE([]),this.disabled=!1,this.footerHidden=!1,this.errorVisible=!1,this.scrollbarWidth=-1,this.activeMentionCharacter="",this.updateScrollbarWidthQueued=!1}get empty(){if(""===this.tiptapEditor.state.doc.textContent.trim()){let e=!1
8597
+ i?gO.test(i.attrs.href)?n.push(e.schema.text(i.attrs.href,t.marks)):n.push(e.schema.text(t.textContent,i.removeFromSet(t.marks))):n.push(t)}else if(t.type.name.startsWith(l$))n.push(e.schema.text(t.attrs.label))
8598
+ else{const i=bO(e,t.content)
8599
+ n.push(t.copy(i))}})),Tv.fromArray(n)}class wO{constructor(e){wO.instance+=1
8600
+ const t=`${l$}${wO.instance}`
8601
+ this.name=t,this.key=t,this.viewElement=e.viewElement,this.character=e.character,this.mappingConfigs=e.mappingConfigs,this.iconTemplate=e.iconTemplate,this.buttonLabel=e.buttonLabel??"",this.mentionUpdateEmitter=e.mentionUpdateEmitter}}wO.instance=0
8602
+ class yO extends _E{constructor(e){super(e),this.mentionExtensionConfig=this.isValid?e.map((e=>new wO(e.mentionInternals))):[]}}class xO extends DE{constructor(){super(...arguments),this.editor=this.createEditor(),this.tiptapEditor=vO((()=>{}),(()=>{}),this.editor,[],this.mentionListbox,this.placeholder),this.xmlSerializer=new XMLSerializer,this.richTextMarkdownSerializer=new CE([]),this.disabled=!1,this.footerHidden=!1,this.errorVisible=!1,this.scrollbarWidth=-1,this.activeMentionCharacter="",this.updateScrollbarWidthQueued=!1}get empty(){if(""===this.tiptapEditor.state.doc.textContent.trim()){let e=!1
8597
8603
  return this.tiptapEditor.state.doc.descendants((t=>{t.type.name.startsWith(l$)&&(e=!0)
8598
8604
  return!1===e})),!e}return!1}connectedCallback(){super.connectedCallback(),this.editor.isConnected||this.editorContainer.append(this.editor),this.bindEditorTransactionEvent(),this.bindEditorUpdateEvent(),this.stopNativeInputEventPropagation(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.unbindEditorTransactionEvent(),this.unbindEditorUpdateEvent(),this.unbindNativeInputEvent(),this.resizeObserver?.disconnect()}disabledChanged(){this.disableEditor(),this.disableMentionViewElement()}placeholderChanged(e,t){this.getTipTapExtension("placeholder").options.placeholder=this.placeholder??"",this.tiptapEditor.view.dispatch(this.tiptapEditor.state.tr),this.queueUpdateScrollbarWidth()}ariaLabelChanged(e,t){null!==this.ariaLabel&&void 0!==this.ariaLabel?this.editor.setAttribute("aria-label",this.ariaLabel):this.editor.removeAttribute("aria-label")}configurationChanged(e,t){const n=this.getButtonsState(this.tiptapEditor),{from:i,to:o}=this.tiptapEditor.view.state.selection
8599
8605
  if(this.isMentionExtensionConfigUnchanged(e,t))this.setMarkdown(this.getMarkdown())
8600
8606
  else{const e=this.getMentionExtensionConfig(),t=this.getMarkdown()
8601
8607
  this.richTextMarkdownSerializer=new CE(e.map((e=>e.name))),this.initializeEditor(),this.setMarkdown(t)}this.tiptapEditor.commands.setTextSelection({from:i,to:o}),this.resetEditorButtonsState(n),this.setActiveMappingConfigs()}activeMentionCharacterChanged(){this.setActiveMappingConfigs()}boldButtonClick(){this.tiptapEditor.chain().focus().toggleBold().run()}boldButtonKeyDown(e){return!this.keyActivatesButton(e)||(this.tiptapEditor.chain().focus().toggleBold().run(),!1)}italicsButtonClick(){this.tiptapEditor.chain().focus().toggleItalic().run()}italicsButtonKeyDown(e){return!this.keyActivatesButton(e)||(this.tiptapEditor.chain().focus().toggleItalic().run(),!1)}bulletListButtonClick(){this.tiptapEditor.chain().focus().toggleBulletList().run()}bulletListButtonKeyDown(e){return!this.keyActivatesButton(e)||(this.tiptapEditor.chain().focus().toggleBulletList().run(),!1)}numberedListButtonClick(){this.tiptapEditor.chain().focus().toggleOrderedList().run()}numberedListButtonKeyDown(e){return!this.keyActivatesButton(e)||(this.tiptapEditor.chain().focus().toggleOrderedList().run(),!1)}mentionButtonClick(e){this.tiptapEditor.chain().insertContent(this.shouldInsertSpace()?` ${e}`:e).focus().run()}setMarkdown(e){const t=this.getHtmlContent(e)
8602
8608
  this.tiptapEditor.commands.setContent(t),this.disableMentionViewElement()}getMarkdown(){return this.richTextMarkdownSerializer.serializeDOMToMarkdown(this.tiptapEditor.state.doc)}stopEventPropagation(e){return e.stopPropagation(),!1}getMentionedHrefs(){const e=new Set
8603
- return this.tiptapEditor.state.doc.descendants((t=>{t.type.name.startsWith(l$)&&e.add(t.attrs.href)})),Array.from(e)}getMentionExtensionConfig(){return this.configuration instanceof mO?this.configuration.mentionExtensionConfig:[]}onMentionSelect(e){this.activeMentionCommand&&this.activeMentionCommand({href:e.detail.href,label:e.detail.displayName})}handleChange(e,t){e instanceof SE&&AE.isObservedMentionInternalsProperty(t)?this.configuration=this.createConfig():super.handleChange(e,t)}focusoutHandler(){this.mentionListbox?.open&&this.mentionListbox?.close()}createConfig(){return new mO(this.mentionElements)}isMentionExtensionConfigUnchanged(e,t){const n=e?.mentionExtensionConfig.map((e=>e.character)).sort(((e,t)=>e.localeCompare(t))).toString(),i=t.mentionExtensionConfig.map((e=>e.character)).sort(((e,t)=>e.localeCompare(t))).toString()
8609
+ return this.tiptapEditor.state.doc.descendants((t=>{t.type.name.startsWith(l$)&&e.add(t.attrs.href)})),Array.from(e)}getMentionExtensionConfig(){return this.configuration instanceof yO?this.configuration.mentionExtensionConfig:[]}onMentionSelect(e){this.activeMentionCommand&&this.activeMentionCommand({href:e.detail.href,label:e.detail.displayName})}focusoutHandler(){this.mentionListbox?.open&&this.mentionListbox?.close()}createConfig(){this.validate(),this.richTextValidator.isValid()?(this.richTextUpdateTracker.updateButtonLabel||this.richTextUpdateTracker.updateMappingConfigs||this.richTextUpdateTracker.updatePattern)&&(this.configuration=new yO(this.mentionElements)):this.configuration=void 0}isMentionExtensionConfigUnchanged(e,t){const n=e?.mentionExtensionConfig.map((e=>e.character)).sort(((e,t)=>e.localeCompare(t))).toString(),i=t?.mentionExtensionConfig.map((e=>e.character)).sort(((e,t)=>e.localeCompare(t))).toString()
8604
8610
  return n===i}createEditor(){const e=document.createElement("div")
8605
- return e.className="editor",e.setAttribute("aria-multiline","true"),e.setAttribute("role","textbox"),e.setAttribute("aria-disabled","false"),e}initializeEditor(){this.unbindEditorTransactionEvent(),this.unbindEditorUpdateEvent(),this.unbindNativeInputEvent(),this.tiptapEditor?.destroy(),this.tiptapEditor=pO((e=>{this.activeMentionCharacter=e}),(e=>{this.activeMentionCommand=e}),this.editor,this.configuration instanceof mO?this.configuration.mentionExtensionConfig:[],this.mentionListbox,this.placeholder),this.disableEditor(),this.disableMentionViewElement(),this.bindEditorTransactionEvent(),this.bindEditorUpdateEvent(),this.stopNativeInputEventPropagation()}getHtmlContent(e){const t=kE.parseMarkdownToDOM(e,this.configuration?.parserMentionConfig)
8611
+ return e.className="editor",e.setAttribute("aria-multiline","true"),e.setAttribute("role","textbox"),e.setAttribute("aria-disabled","false"),e}initializeEditor(){this.unbindEditorTransactionEvent(),this.unbindEditorUpdateEvent(),this.unbindNativeInputEvent(),this.tiptapEditor?.destroy(),this.tiptapEditor=vO((e=>{this.activeMentionCharacter=e}),(e=>{this.activeMentionCommand=e}),this.editor,this.configuration instanceof yO?this.configuration.mentionExtensionConfig:[],this.mentionListbox,this.placeholder),this.disableEditor(),this.disableMentionViewElement(),this.bindEditorTransactionEvent(),this.bindEditorUpdateEvent(),this.stopNativeInputEventPropagation()}getHtmlContent(e){const t=kE.parseMarkdownToDOM(e,this.configuration?.parserMentionConfig)
8606
8612
  return this.xmlSerializer.serializeToString(t.fragment)}bindEditorTransactionEvent(){this.tiptapEditor.on("transaction",(()=>{this.updateEditorButtonsState()}))}unbindEditorTransactionEvent(){this.tiptapEditor.off("transaction")}updateEditorButtonsState(){if(!this.$fastController.isConnected)return
8607
8613
  const{extensionManager:e,state:t}=this.tiptapEditor,{extensions:n}=e,{selection:i}=t,o=fS((e=>yS(e.type.name,n)))(i)
8608
8614
  this.boldButton.checked=this.tiptapEditor.isActive("bold"),this.italicsButton.checked=this.tiptapEditor.isActive("italic"),this.bulletListButton.checked=o?.node.type.name===s$,this.numberedListButton.checked=o?.node.type.name===a$}keyActivatesButton(e){switch(e.key){case" ":case da:return!0
8609
8615
  default:return!1}}unbindEditorUpdateEvent(){this.tiptapEditor.off("update")}bindEditorUpdateEvent(){this.tiptapEditor.on("update",(()=>{this.$emit("input"),this.queueUpdateScrollbarWidth()}))}disableEditor(){this.tiptapEditor.setEditable(!this.disabled),this.setEditorTabIndex(),this.editor.setAttribute("aria-disabled",this.disabled?"true":"false"),this.mentionListbox?.close()}disableMentionViewElement(){this.tiptapEditor.state.doc.descendants(((e,t)=>{if(e.type.name.startsWith(l$)){const n={...e.attrs,disabled:this.disabled?"":null},i=this.tiptapEditor.schema.node(e.type.name,n,e.content),o=this.tiptapEditor.state.tr.replaceWith(t,t+e.nodeSize,i)
8610
8616
  this.tiptapEditor.view.dispatch(o)}return!0}))}stopNativeInputEventPropagation(){this.tiptapEditor.view.dom.addEventListener("input",(e=>{e.stopPropagation()}))}unbindNativeInputEvent(){this.tiptapEditor.view.dom.removeEventListener("input",(()=>{}))}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.tiptapEditor.view.dom.offsetWidth-this.tiptapEditor.view.dom.clientWidth}onResize(){this.scrollbarWidth=this.tiptapEditor.view.dom.offsetWidth-this.tiptapEditor.view.dom.clientWidth}getTipTapExtension(e){return this.tiptapEditor.extensionManager.extensions.find((t=>t.name===e))}setEditorTabIndex(){this.tiptapEditor.setOptions({editorProps:{attributes:{tabindex:this.disabled?"-1":"0"}}})}setActiveMappingConfigs(){this.activeMappingConfigs=this.activeMentionCharacter?this.getMentionExtensionConfigFromCharacter(this.activeMentionCharacter)?.mappingConfigs:void 0}shouldInsertSpace(){const{$anchor:e,$head:t}=this.tiptapEditor.view.state.selection,n=0===t.parentOffset||0===e.parentOffset,i=e.pos<t.pos?e.nodeBefore:t.nodeBefore,o=i?.type.name===zS.name,r=i?.textContent.endsWith(" ")
8611
- return!n&&!o&&!r}getMentionExtensionConfigFromCharacter(e){return this.getMentionExtensionConfig().find((t=>t.character===e))}resetEditorButtonsState(e){e?.bold&&!this.tiptapEditor.isActive("bold")&&this.tiptapEditor.chain().focus().toggleBold().run(),e?.italics&&!this.tiptapEditor.isActive("italic")&&this.tiptapEditor.chain().focus().toggleItalic().run()}getButtonsState(e){if(this.$fastController.isConnected)return{bold:e.isActive("bold"),italics:e.isActive("italic")}}}e([se({mode:"boolean"})],gO.prototype,"disabled",void 0),e([se({attribute:"footer-hidden",mode:"boolean"})],gO.prototype,"footerHidden",void 0),e([se({attribute:"error-visible",mode:"boolean"})],gO.prototype,"errorVisible",void 0),e([se({attribute:"error-text"})],gO.prototype,"errorText",void 0),e([se],gO.prototype,"placeholder",void 0),e([g],gO.prototype,"boldButton",void 0),e([g],gO.prototype,"italicsButton",void 0),e([g],gO.prototype,"bulletListButton",void 0),e([g],gO.prototype,"numberedListButton",void 0),e([g],gO.prototype,"scrollbarWidth",void 0),e([g],gO.prototype,"activeMentionCharacter",void 0),e([g],gO.prototype,"activeMappingConfigs",void 0),Ht(gO,un)
8612
- const vO=gO.compose({baseName:"rich-text-editor",template:o$,styles:r$,shadowOptions:{delegatesFocus:!0}})
8613
- bi.getOrCreate().withPrefix("nimble").register(vO())
8614
- const bO=Z`
8617
+ return!n&&!o&&!r}getMentionExtensionConfigFromCharacter(e){return this.getMentionExtensionConfig().find((t=>t.character===e))}resetEditorButtonsState(e){e?.bold&&!this.tiptapEditor.isActive("bold")&&this.tiptapEditor.chain().focus().toggleBold().run(),e?.italics&&!this.tiptapEditor.isActive("italic")&&this.tiptapEditor.chain().focus().toggleItalic().run()}getButtonsState(e){if(this.$fastController.isConnected)return{bold:e.isActive("bold"),italics:e.isActive("italic")}}}e([se({mode:"boolean"})],xO.prototype,"disabled",void 0),e([se({attribute:"footer-hidden",mode:"boolean"})],xO.prototype,"footerHidden",void 0),e([se({attribute:"error-visible",mode:"boolean"})],xO.prototype,"errorVisible",void 0),e([se({attribute:"error-text"})],xO.prototype,"errorText",void 0),e([se],xO.prototype,"placeholder",void 0),e([g],xO.prototype,"boldButton",void 0),e([g],xO.prototype,"italicsButton",void 0),e([g],xO.prototype,"bulletListButton",void 0),e([g],xO.prototype,"numberedListButton",void 0),e([g],xO.prototype,"scrollbarWidth",void 0),e([g],xO.prototype,"activeMentionCharacter",void 0),e([g],xO.prototype,"activeMappingConfigs",void 0),Ht(xO,un)
8618
+ const kO=xO.compose({baseName:"rich-text-editor",template:o$,styles:r$,shadowOptions:{delegatesFocus:!0}})
8619
+ bi.getOrCreate().withPrefix("nimble").register(kO())
8620
+ const CO=Z`
8615
8621
  <template ${Xe({property:"childItems",filter:We()})}>
8616
8622
  <div ${Ne("viewer")} class="viewer"></div>
8617
8623
  </template>
8618
- `,wO=we`
8624
+ `,SO=we`
8619
8625
  ${Oo("flex")}
8620
8626
 
8621
8627
  :host {
@@ -8658,11 +8664,11 @@ const bO=Z`
8658
8664
  color: ${Vl};
8659
8665
  }
8660
8666
  `
8661
- class yO extends IE{constructor(){super(...arguments),this.markdown="",this.mentionedHrefs=[]}connectedCallback(){super.connectedCallback(),this.updateView()}markdownChanged(){this.updateView()}configurationChanged(){this.updateView()}getMentionedHrefs(){return Array.from(this.mentionedHrefs)}updateView(){if(this.$fastController.isConnected)if(this.markdown){const e=kE.parseMarkdownToDOM(this.markdown,this.configuration?.parserMentionConfig)
8662
- this.viewer.replaceChildren(e.fragment),this.mentionedHrefs=e.mentionedHrefs}else this.viewer.innerHTML="",this.mentionedHrefs=[]}}e([g],yO.prototype,"markdown",void 0)
8663
- const xO=yO.compose({baseName:"rich-text-viewer",template:bO,styles:wO})
8664
- bi.getOrCreate().withPrefix("nimble").register(xO())
8665
- const kO=we`
8667
+ class $O extends DE{constructor(){super(...arguments),this.markdown="",this.mentionedHrefs=[]}connectedCallback(){super.connectedCallback(),this.updateView()}markdownChanged(){this.updateView()}configurationChanged(){this.updateView()}getMentionedHrefs(){return Array.from(this.mentionedHrefs)}updateView(){if(this.$fastController.isConnected)if(this.markdown){const e=kE.parseMarkdownToDOM(this.markdown,this.configuration?.parserMentionConfig)
8668
+ this.viewer.replaceChildren(e.fragment),this.mentionedHrefs=e.mentionedHrefs}else this.viewer.innerHTML="",this.mentionedHrefs=[]}}e([g],$O.prototype,"markdown",void 0)
8669
+ const MO=$O.compose({baseName:"rich-text-viewer",template:CO,styles:SO})
8670
+ bi.getOrCreate().withPrefix("nimble").register(MO())
8671
+ const _O=we`
8666
8672
  ${Bm}
8667
8673
  ${qm}
8668
8674
 
@@ -8688,9 +8694,9 @@ const kO=we`
8688
8694
  padding-bottom: 0;
8689
8695
  }
8690
8696
  `))
8691
- class CO extends Ji{constructor(){super(...arguments),this.appearance=Fm,this.errorVisible=!1,this.hasOverflow=!1}setPositioning(){this.$fastController.isConnected&&(super.setPositioning(),this.updateListboxMaxHeightCssVariable())}slottedOptionsChanged(e,t){const n=this.value
8692
- super.slottedOptionsChanged(e,t),n&&(this.value=n)}regionChanged(e,t){this.region&&this.control&&(this.region.anchorElement=this.control)}controlChanged(e,t){this.region&&this.control&&(this.region.anchorElement=this.control)}maxHeightChanged(){this.updateListboxMaxHeightCssVariable()}updateListboxMaxHeightCssVariable(){this.listbox&&this.listbox.style.setProperty("--ni-private-select-max-height",`${this.maxHeight}px`)}}e([se],CO.prototype,"appearance",void 0),e([se({attribute:"error-text"})],CO.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],CO.prototype,"errorVisible",void 0),e([g],CO.prototype,"region",void 0),e([g],CO.prototype,"hasOverflow",void 0)
8693
- const SO=CO.compose({baseName:"select",baseClass:Ji,template:(e,t)=>Z`
8697
+ class EO extends Ji{constructor(){super(...arguments),this.appearance=Fm,this.errorVisible=!1,this.hasOverflow=!1}setPositioning(){this.$fastController.isConnected&&(super.setPositioning(),this.updateListboxMaxHeightCssVariable())}slottedOptionsChanged(e,t){const n=this.value
8698
+ super.slottedOptionsChanged(e,t),n&&(this.value=n)}regionChanged(e,t){this.region&&this.control&&(this.region.anchorElement=this.control)}controlChanged(e,t){this.region&&this.control&&(this.region.anchorElement=this.control)}maxHeightChanged(){this.updateListboxMaxHeightCssVariable()}updateListboxMaxHeightCssVariable(){this.listbox&&this.listbox.style.setProperty("--ni-private-select-max-height",`${this.maxHeight}px`)}}e([se],EO.prototype,"appearance",void 0),e([se({attribute:"error-text"})],EO.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],EO.prototype,"errorVisible",void 0),e([g],EO.prototype,"region",void 0),e([g],EO.prototype,"hasOverflow",void 0)
8699
+ const IO=EO.compose({baseName:"select",baseClass:Ji,template:(e,t)=>Z`
8694
8700
  <template
8695
8701
  class="${e=>[e.collapsible&&"collapsible",e.collapsible&&e.open&&"open",e.disabled&&"disabled",e.collapsible&&e.position].filter(Boolean).join(" ")}"
8696
8702
  aria-activedescendant="${e=>e.ariaActiveDescendant}"
@@ -8754,15 +8760,15 @@ const SO=CO.compose({baseName:"select",baseClass:Ji,template:(e,t)=>Z`
8754
8760
  </div>
8755
8761
  </${$h}>
8756
8762
  </template>
8757
- `,styles:kO,indicator:zh.data,end:Z`
8763
+ `,styles:_O,indicator:zh.data,end:Z`
8758
8764
  <${Yf}
8759
8765
  severity="error"
8760
8766
  class="error-icon"
8761
8767
  ></${Yf}>
8762
8768
  ${Pm}
8763
8769
  `})
8764
- bi.getOrCreate().withPrefix("nimble").register(SO())
8765
- const $O=we`
8770
+ bi.getOrCreate().withPrefix("nimble").register(IO())
8771
+ const AO=we`
8766
8772
  ${Oo("inline-flex")}
8767
8773
 
8768
8774
  :host {
@@ -8914,18 +8920,18 @@ const $O=we`
8914
8920
  :host([appearance='accent']) {
8915
8921
  --ni-private-spinner-bits-background-color: ${pr};
8916
8922
  }
8917
- `)),MO=Z`
8923
+ `)),OO=Z`
8918
8924
  <template role="progressbar">
8919
8925
  <div class="container">
8920
8926
  <div class="bit1"></div>
8921
8927
  <div class="bit2"></div>
8922
8928
  </div>
8923
8929
  </template>
8924
- `,_O={default:void 0,accent:"accent"}
8925
- class EO extends Lt{constructor(){super(...arguments),this.appearance=_O.default}}e([se],EO.prototype,"appearance",void 0)
8926
- const IO=EO.compose({baseName:"spinner",template:MO,styles:$O})
8927
- bi.getOrCreate().withPrefix("nimble").register(IO())
8928
- const AO="nimble-spinner",OO=we`
8930
+ `,TO={default:void 0,accent:"accent"}
8931
+ class RO extends Lt{constructor(){super(...arguments),this.appearance=TO.default}}e([se],RO.prototype,"appearance",void 0)
8932
+ const DO=RO.compose({baseName:"spinner",template:OO,styles:AO})
8933
+ bi.getOrCreate().withPrefix("nimble").register(DO())
8934
+ const NO="nimble-spinner",PO=we`
8929
8935
  ${Oo("inline-flex")}
8930
8936
 
8931
8937
  :host {
@@ -9085,7 +9091,7 @@ const AO="nimble-spinner",OO=we`
9085
9091
  --ni-private-switch-indicator-border-color: ${ir};
9086
9092
  --ni-private-switch-indicator-border-disabled-color: ${Cr(ir,.3)};
9087
9093
  }
9088
- `)),TO=Z`
9094
+ `)),zO=Z`
9089
9095
  <template
9090
9096
  role="switch"
9091
9097
  aria-checked="${e=>e.checked}"
@@ -9120,9 +9126,9 @@ const AO="nimble-spinner",OO=we`
9120
9126
  </div>
9121
9127
  </template>
9122
9128
  `
9123
- const RO=class extends eo{}.compose({baseClass:eo,baseName:"switch",template:TO,styles:OO})
9124
- bi.getOrCreate().withPrefix("nimble").register(RO())
9125
- const DO=we`
9129
+ const LO=class extends eo{}.compose({baseClass:eo,baseName:"switch",template:zO,styles:PO})
9130
+ bi.getOrCreate().withPrefix("nimble").register(LO())
9131
+ const FO=we`
9126
9132
  ${Oo("inline-flex")}
9127
9133
 
9128
9134
  :host {
@@ -9223,13 +9229,13 @@ const DO=we`
9223
9229
  border-bottom-color: rgba(${Va}, 0.3);
9224
9230
  }
9225
9231
  `
9226
- const NO=class extends no{}.compose({baseName:"tab",baseClass:no,template:(e,t)=>Z`
9232
+ const VO=class extends no{}.compose({baseName:"tab",baseClass:no,template:(e,t)=>Z`
9227
9233
  <template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">
9228
9234
  <slot></slot>
9229
9235
  </template>
9230
- `,styles:DO})
9231
- bi.getOrCreate().withPrefix("nimble").register(NO())
9232
- const PO=we`
9236
+ `,styles:FO})
9237
+ bi.getOrCreate().withPrefix("nimble").register(VO())
9238
+ const HO=we`
9233
9239
  ${Oo("block")}
9234
9240
 
9235
9241
  :host {
@@ -9239,11 +9245,11 @@ const PO=we`
9239
9245
  padding-top: ${il};
9240
9246
  }
9241
9247
  `
9242
- const zO=class extends to{}.compose({baseName:"tab-panel",baseClass:to,template:(e,t)=>Z`
9248
+ const BO=class extends to{}.compose({baseName:"tab-panel",baseClass:to,template:(e,t)=>Z`
9243
9249
  <template slot="tabpanel" role="tabpanel">
9244
9250
  <slot></slot>
9245
9251
  </template>
9246
- `,styles:PO})
9252
+ `,styles:HO})
9247
9253
 
9248
9254
  ;/**
9249
9255
  * table-core
@@ -9255,10 +9261,10 @@ const zO=class extends to{}.compose({baseName:"tab-panel",baseClass:to,template:
9255
9261
  *
9256
9262
  * @license MIT
9257
9263
  */
9258
- function LO(e,t){return"function"==typeof e?e(t):e}function FO(e,t){return n=>{t.setState((t=>({...t,[e]:LO(n,t[e])})))}}function VO(e){return e instanceof Function}function HO(e,t){const n=[],i=e=>{e.forEach((e=>{n.push(e)
9264
+ function qO(e,t){return"function"==typeof e?e(t):e}function jO(e,t){return n=>{t.setState((t=>({...t,[e]:qO(n,t[e])})))}}function UO(e){return e instanceof Function}function WO(e,t){const n=[],i=e=>{e.forEach((e=>{n.push(e)
9259
9265
  const o=t(e)
9260
9266
  null!=o&&o.length&&i(o)}))}
9261
- return i(e),n}function BO(e,t,n){let i,o=[]
9267
+ return i(e),n}function ZO(e,t,n){let i,o=[]
9262
9268
  return()=>{let r
9263
9269
  n.key&&n.debug&&(r=Date.now())
9264
9270
  const s=e()
@@ -9266,36 +9272,36 @@ if(!(s.length!==o.length||s.some(((e,t)=>o[t]!==e))))return i
9266
9272
  let a
9267
9273
  if(o=s,n.key&&n.debug&&(a=Date.now()),i=t(...s),null==n||null==n.onChange||n.onChange(i),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-r))/100,t=Math.round(100*(Date.now()-a))/100,i=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e
9268
9274
  return e}
9269
- console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==n?void 0:n.key)}return i}}function qO(e,t,n){var i
9275
+ console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==n?void 0:n.key)}return i}}function GO(e,t,n){var i
9270
9276
  let o={id:null!=(i=n.id)?i:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)}
9271
9277
  return t(o),e},getContext:()=>({table:e,header:o,column:t})}
9272
- return e._features.forEach((t=>{null==t.createHeader||t.createHeader(o,e)})),o}bi.getOrCreate().withPrefix("nimble").register(zO())
9273
- const jO={createTable:e=>{e.getHeaderGroups=BO((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,i,o)=>{var r,s
9278
+ return e._features.forEach((t=>{null==t.createHeader||t.createHeader(o,e)})),o}bi.getOrCreate().withPrefix("nimble").register(BO())
9279
+ const KO={createTable:e=>{e.getHeaderGroups=ZO((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,i,o)=>{var r,s
9274
9280
  const a=null!=(r=null==i?void 0:i.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?r:[],l=null!=(s=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?s:[]
9275
- return UO(t,[...a,...n.filter((e=>!(null!=i&&i.includes(e.id)||null!=o&&o.includes(e.id)))),...l],e)}),{key:!1,debug:()=>{var t
9276
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=BO((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,i,o)=>UO(t,n=n.filter((e=>!(null!=i&&i.includes(e.id)||null!=o&&o.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t
9277
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=BO((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,i)=>{var o
9278
- return UO(t,null!=(o=null==i?void 0:i.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"left")}),{key:!1,debug:()=>{var t
9279
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightHeaderGroups=BO((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,i)=>{var o
9280
- return UO(t,null!=(o=null==i?void 0:i.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"right")}),{key:!1,debug:()=>{var t
9281
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFooterGroups=BO((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
9282
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFooterGroups=BO((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
9283
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFooterGroups=BO((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
9284
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFooterGroups=BO((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
9285
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFlatHeaders=BO((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
9286
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=BO((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
9287
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=BO((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
9288
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFlatHeaders=BO((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
9289
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=BO((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t
9281
+ return JO(t,[...a,...n.filter((e=>!(null!=i&&i.includes(e.id)||null!=o&&o.includes(e.id)))),...l],e)}),{key:!1,debug:()=>{var t
9282
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=ZO((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,i,o)=>JO(t,n=n.filter((e=>!(null!=i&&i.includes(e.id)||null!=o&&o.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t
9283
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=ZO((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,i)=>{var o
9284
+ return JO(t,null!=(o=null==i?void 0:i.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"left")}),{key:!1,debug:()=>{var t
9285
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightHeaderGroups=ZO((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,i)=>{var o
9286
+ return JO(t,null!=(o=null==i?void 0:i.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"right")}),{key:!1,debug:()=>{var t
9287
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFooterGroups=ZO((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
9288
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFooterGroups=ZO((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
9289
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFooterGroups=ZO((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
9290
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFooterGroups=ZO((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
9291
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFlatHeaders=ZO((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
9292
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=ZO((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
9293
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=ZO((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
9294
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFlatHeaders=ZO((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
9295
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=ZO((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t
9290
9296
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
9291
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=BO((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t
9297
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=ZO((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t
9292
9298
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
9293
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightLeafHeaders=BO((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t
9299
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightLeafHeaders=ZO((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t
9294
9300
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
9295
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeafHeaders=BO((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var i,o,r,s,a,l
9301
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeafHeaders=ZO((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var i,o,r,s,a,l
9296
9302
  return[...null!=(i=null==(o=e[0])?void 0:o.headers)?i:[],...null!=(r=null==(s=t[0])?void 0:s.headers)?r:[],...null!=(a=null==(l=n[0])?void 0:l.headers)?a:[]].map((e=>e.getLeafHeaders())).flat()}),{key:!1,debug:()=>{var t
9297
9303
  return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})}}
9298
- function UO(e,t,n,i){var o,r
9304
+ function JO(e,t,n,i){var o,r
9299
9305
  let s=0
9300
9306
  const a=function(e,t){void 0===t&&(t=1),s=Math.max(s,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n
9301
9307
  null!=(n=e.columns)&&n.length&&a(e.columns,t+1)}),0)}
@@ -9305,16 +9311,16 @@ const c=(e,t)=>{const o={depth:t,id:[i,`${t}`].filter(Boolean).join("_"),headers
9305
9311
  e.forEach((e=>{const s=[...r].reverse()[0]
9306
9312
  let a,l=!1
9307
9313
  if(e.column.depth===o.depth&&e.column.parent?a=e.column.parent:(a=e.column,l=!0),s&&(null==s?void 0:s.column)===a)s.subHeaders.push(e)
9308
- else{const o=qO(n,a,{id:[i,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${r.filter((e=>e.column===a)).length}`:void 0,depth:t,index:r.length})
9309
- o.subHeaders.push(e),r.push(o)}o.headers.push(e),e.headerGroup=o})),l.push(o),t>0&&c(r,t-1)},d=t.map(((e,t)=>qO(n,e,{depth:s,index:t})))
9314
+ else{const o=GO(n,a,{id:[i,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:l,placeholderId:l?`${r.filter((e=>e.column===a)).length}`:void 0,depth:t,index:r.length})
9315
+ o.subHeaders.push(e),r.push(o)}o.headers.push(e),e.headerGroup=o})),l.push(o),t>0&&c(r,t-1)},d=t.map(((e,t)=>GO(n,e,{depth:s,index:t})))
9310
9316
  c(d,s-1),l.reverse()
9311
9317
  const h=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,i=[0]
9312
9318
  e.subHeaders&&e.subHeaders.length?(i=[],h(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e
9313
9319
  t+=n,i.push(o)}))):t=1
9314
9320
  return n+=Math.min(...i),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}))
9315
- return h(null!=(o=null==(r=l[0])?void 0:r.headers)?o:[]),l}const WO={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},ZO={getDefaultColumnDef:()=>WO,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:FO("columnSizing",e),onColumnSizingInfoChange:FO("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,i,o
9321
+ return h(null!=(o=null==(r=l[0])?void 0:r.headers)?o:[]),l}const XO={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},YO={getDefaultColumnDef:()=>XO,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:jO("columnSizing",e),onColumnSizingInfoChange:jO("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,i,o
9316
9322
  const r=t.getState().columnSizing[e.id]
9317
- return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:WO.minSize,null!=(i=null!=r?r:e.columnDef.size)?i:WO.size),null!=(o=e.columnDef.maxSize)?o:WO.maxSize)},e.getStart=n=>{const i=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=i.findIndex((t=>t.id===e.id))
9323
+ return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:XO.minSize,null!=(i=null!=r?r:e.columnDef.size)?i:XO.size),null!=(o=e.columnDef.maxSize)?o:XO.maxSize)},e.getStart=n=>{const i=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=i.findIndex((t=>t.id===e.id))
9318
9324
  if(o>0){const e=i[o-1]
9319
9325
  return e.getStart(n)+e.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...i}=t
9320
9326
  return i}))},e.getCanResize=()=>{var n,i
@@ -9324,24 +9330,24 @@ e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(i=e.column.getSize())?i:0}
9324
9330
  return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1]
9325
9331
  return t.getStart()+t.getSize()}return 0},e.getResizeHandler=()=>{const n=t.getColumn(e.column.id),i=null==n?void 0:n.getCanResize()
9326
9332
  return o=>{if(!n||!i)return
9327
- if(null==o.persist||o.persist(),KO(o)&&o.touches&&o.touches.length>1)return
9328
- const r=e.getSize(),s=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[n.id,n.getSize()]],a=KO(o)?Math.round(o.touches[0].clientX):o.clientX,l={},c=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var i,o
9333
+ if(null==o.persist||o.persist(),eT(o)&&o.touches&&o.touches.length>1)return
9334
+ const r=e.getSize(),s=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[n.id,n.getSize()]],a=eT(o)?Math.round(o.touches[0].clientX):o.clientX,l={},c=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var i,o
9329
9335
  const r="rtl"===t.options.columnResizeDirection?-1:1,s=(n-(null!=(i=null==e?void 0:e.startOffset)?i:0))*r,a=Math.max(s/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999)
9330
9336
  return e.columnSizingStart.forEach((e=>{let[t,n]=e
9331
9337
  l[t]=Math.round(100*Math.max(n+n*a,0))/100})),{...e,deltaOffset:s,deltaPercentage:a}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...l}))))},d=e=>c("move",e),h=e=>{c("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},u={moveHandler:e=>d(e.clientX),upHandler:e=>{document.removeEventListener("mousemove",u.moveHandler),document.removeEventListener("mouseup",u.upHandler),h(e.clientX)}},p={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t
9332
- document.removeEventListener("touchmove",p.moveHandler),document.removeEventListener("touchend",p.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),h(null==(t=e.touches[0])?void 0:t.clientX)}},f=!!function(){if("boolean"==typeof GO)return GO
9338
+ document.removeEventListener("touchmove",p.moveHandler),document.removeEventListener("touchend",p.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),h(null==(t=e.touches[0])?void 0:t.clientX)}},f=!!function(){if("boolean"==typeof QO)return QO
9333
9339
  let e=!1
9334
9340
  try{const t={get passive(){return e=!0,!1}},n=()=>{}
9335
- window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return GO=e,GO}()&&{passive:!1}
9336
- KO(o)?(document.addEventListener("touchmove",p.moveHandler,f),document.addEventListener("touchend",p.upHandler,f)):(document.addEventListener("mousemove",u.moveHandler,f),document.addEventListener("mouseup",u.upHandler,f)),t.setColumnSizingInfo((e=>({...e,startOffset:a,startSize:r,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n
9341
+ window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return QO=e,QO}()&&{passive:!1}
9342
+ eT(o)?(document.addEventListener("touchmove",p.moveHandler,f),document.addEventListener("touchend",p.upHandler,f)):(document.addEventListener("mousemove",u.moveHandler,f),document.addEventListener("mouseup",u.upHandler,f)),t.setColumnSizingInfo((e=>({...e,startOffset:a,startSize:r,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n
9337
9343
  e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n
9338
9344
  e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n
9339
9345
  return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n
9340
9346
  return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n
9341
9347
  return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n
9342
9348
  return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}}
9343
- let GO=null
9344
- function KO(e){return"touchstart"===e.type}const JO={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:FO("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1
9349
+ let QO=null
9350
+ function eT(e){return"touchstart"===e.type}const tT={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:jO("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1
9345
9351
  e._autoResetExpanded=()=>{var i,o
9346
9352
  if(t){if(null!=(i=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?i:!e.options.manualExpanding){if(n)return
9347
9353
  n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,i
@@ -9360,57 +9366,57 @@ return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpa
9360
9366
  return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(i=t.options.enableExpanding)||i)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,i=e
9361
9367
  for(;n&&i.parentId;)i=t.getRow(i.parentId,!0),n=i.getIsExpanded()
9362
9368
  return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand()
9363
- return()=>{t&&e.toggleExpanded()}}}},XO=(e,t,n)=>{var i
9369
+ return()=>{t&&e.toggleExpanded()}}}},nT=(e,t,n)=>{var i
9364
9370
  const o=n.toLowerCase()
9365
9371
  return Boolean(null==(i=e.getValue(t))||null==(i=i.toString())||null==(i=i.toLowerCase())?void 0:i.includes(o))}
9366
- XO.autoRemove=e=>aT(e)
9367
- const YO=(e,t,n)=>{var i
9372
+ nT.autoRemove=e=>uT(e)
9373
+ const iT=(e,t,n)=>{var i
9368
9374
  return Boolean(null==(i=e.getValue(t))||null==(i=i.toString())?void 0:i.includes(n))}
9369
- YO.autoRemove=e=>aT(e)
9370
- const QO=(e,t,n)=>{var i
9375
+ iT.autoRemove=e=>uT(e)
9376
+ const oT=(e,t,n)=>{var i
9371
9377
  return(null==(i=e.getValue(t))||null==(i=i.toString())?void 0:i.toLowerCase())===(null==n?void 0:n.toLowerCase())}
9372
- QO.autoRemove=e=>aT(e)
9373
- const eT=(e,t,n)=>{var i
9378
+ oT.autoRemove=e=>uT(e)
9379
+ const rT=(e,t,n)=>{var i
9374
9380
  return null==(i=e.getValue(t))?void 0:i.includes(n)}
9375
- eT.autoRemove=e=>aT(e)||!(null!=e&&e.length)
9376
- const tT=(e,t,n)=>!n.some((n=>{var i
9381
+ rT.autoRemove=e=>uT(e)||!(null!=e&&e.length)
9382
+ const sT=(e,t,n)=>!n.some((n=>{var i
9377
9383
  return!(null!=(i=e.getValue(t))&&i.includes(n))}))
9378
- tT.autoRemove=e=>aT(e)||!(null!=e&&e.length)
9379
- const nT=(e,t,n)=>n.some((n=>{var i
9384
+ sT.autoRemove=e=>uT(e)||!(null!=e&&e.length)
9385
+ const aT=(e,t,n)=>n.some((n=>{var i
9380
9386
  return null==(i=e.getValue(t))?void 0:i.includes(n)}))
9381
- nT.autoRemove=e=>aT(e)||!(null!=e&&e.length)
9382
- const iT=(e,t,n)=>e.getValue(t)===n
9383
- iT.autoRemove=e=>aT(e)
9384
- const oT=(e,t,n)=>e.getValue(t)==n
9385
- oT.autoRemove=e=>aT(e)
9386
- const rT=(e,t,n)=>{let[i,o]=n
9387
+ aT.autoRemove=e=>uT(e)||!(null!=e&&e.length)
9388
+ const lT=(e,t,n)=>e.getValue(t)===n
9389
+ lT.autoRemove=e=>uT(e)
9390
+ const cT=(e,t,n)=>e.getValue(t)==n
9391
+ cT.autoRemove=e=>uT(e)
9392
+ const dT=(e,t,n)=>{let[i,o]=n
9387
9393
  const r=e.getValue(t)
9388
9394
  return r>=i&&r<=o}
9389
- rT.resolveFilterValue=e=>{let[t,n]=e,i="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,r=null===t||Number.isNaN(i)?-1/0:i,s=null===n||Number.isNaN(o)?1/0:o
9395
+ dT.resolveFilterValue=e=>{let[t,n]=e,i="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,r=null===t||Number.isNaN(i)?-1/0:i,s=null===n||Number.isNaN(o)?1/0:o
9390
9396
  if(r>s){const e=r
9391
- r=s,s=e}return[r,s]},rT.autoRemove=e=>aT(e)||aT(e[0])&&aT(e[1])
9392
- const sT={includesString:XO,includesStringSensitive:YO,equalsString:QO,arrIncludes:eT,arrIncludesAll:tT,arrIncludesSome:nT,equals:iT,weakEquals:oT,inNumberRange:rT}
9393
- function aT(e){return null==e||""===e}const lT={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:FO("columnFilters",e),onGlobalFilterChange:FO("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n
9397
+ r=s,s=e}return[r,s]},dT.autoRemove=e=>uT(e)||uT(e[0])&&uT(e[1])
9398
+ const hT={includesString:nT,includesStringSensitive:iT,equalsString:oT,arrIncludes:rT,arrIncludesAll:sT,arrIncludesSome:aT,equals:lT,weakEquals:cT,inNumberRange:dT}
9399
+ function uT(e){return null==e||""===e}const pT={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:jO("columnFilters",e),onGlobalFilterChange:jO("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n
9394
9400
  const i=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue()
9395
9401
  return"string"==typeof i||"number"==typeof i}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],i=null==n?void 0:n.getValue(e.id)
9396
- return"string"==typeof i?sT.includesString:"number"==typeof i?sT.inNumberRange:"boolean"==typeof i||null!==i&&"object"==typeof i?sT.equals:Array.isArray(i)?sT.arrIncludes:sT.weakEquals},e.getFilterFn=()=>{var n,i
9397
- return VO(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(i=t.options.filterFns)?void 0:i[e.columnDef.filterFn])?n:sT[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,i,o
9402
+ return"string"==typeof i?hT.includesString:"number"==typeof i?hT.inNumberRange:"boolean"==typeof i||null!==i&&"object"==typeof i?hT.equals:Array.isArray(i)?hT.arrIncludes:hT.weakEquals},e.getFilterFn=()=>{var n,i
9403
+ return UO(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(i=t.options.filterFns)?void 0:i[e.columnDef.filterFn])?n:hT[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,i,o
9398
9404
  return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(i=t.options.enableColumnFilters)||i)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,i,o,r
9399
9405
  return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(i=t.options.enableGlobalFilter)||i)&&(null==(o=t.options.enableFilters)||o)&&(null==(r=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||r)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n
9400
9406
  return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,i
9401
- return null!=(n=null==(i=t.getState().columnFilters)?void 0:i.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const i=e.getFilterFn(),o=null==t?void 0:t.find((t=>t.id===e.id)),r=LO(n,o?o.value:void 0)
9407
+ return null!=(n=null==(i=t.getState().columnFilters)?void 0:i.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const i=e.getFilterFn(),o=null==t?void 0:t.find((t=>t.id===e.id)),r=qO(n,o?o.value:void 0)
9402
9408
  var s
9403
- if(cT(i,r,e))return null!=(s=null==t?void 0:t.filter((t=>t.id!==e.id)))?s:[]
9409
+ if(fT(i,r,e))return null!=(s=null==t?void 0:t.filter((t=>t.id!==e.id)))?s:[]
9404
9410
  const a={id:e.id,value:r}
9405
9411
  var l
9406
- return o?null!=(l=null==t?void 0:t.map((t=>t.id===e.id?a:t)))?l:[]:null!=t&&t.length?[...t,a]:[a]}))},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>sT.includesString,e.getGlobalFilterFn=()=>{var t,n
9412
+ return o?null!=(l=null==t?void 0:t.map((t=>t.id===e.id?a:t)))?l:[]:null!=t&&t.length?[...t,a]:[a]}))},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>hT.includesString,e.getGlobalFilterFn=()=>{var t,n
9407
9413
  const{globalFilterFn:i}=e.options
9408
- return VO(i)?i:"auto"===i?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[i])?t:sT[i]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns()
9414
+ return UO(i)?i:"auto"===i?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[i])?t:hT[i]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns()
9409
9415
  null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var i
9410
- return null==(i=LO(t,e))?void 0:i.filter((e=>{const t=n.find((t=>t.id===e.id))
9411
- if(t){if(cT(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,i
9416
+ return null==(i=qO(t,e))?void 0:i.filter((e=>{const t=n.find((t=>t.id===e.id))
9417
+ if(t){if(fT(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,i
9412
9418
  e.setColumnFilters(t?[]:null!=(n=null==(i=e.initialState)?void 0:i.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}}
9413
- function cT(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const dT={sum:(e,t,n)=>n.reduce(((t,n)=>{const i=n.getValue(e)
9419
+ function fT(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const mT={sum:(e,t,n)=>n.reduce(((t,n)=>{const i=n.getValue(e)
9414
9420
  return t+("number"==typeof i?i:0)}),0),min:(e,t,n)=>{let i
9415
9421
  return n.forEach((t=>{const n=t.getValue(e)
9416
9422
  null!=n&&(i>n||void 0===i&&n>=n)&&(i=n)})),i},max:(e,t,n)=>{let i
@@ -9425,42 +9431,42 @@ if(i=n,!Array.isArray(i)||!i.every((e=>"number"==typeof e)))return
9425
9431
  var i
9426
9432
  if(1===n.length)return n[0]
9427
9433
  const o=Math.floor(n.length/2),r=n.sort(((e,t)=>e-t))
9428
- return n.length%2!=0?r[o]:(r[o-1]+r[o])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},hT={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n
9429
- return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:FO("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,i,o,r
9434
+ return n.length%2!=0?r[o]:(r[o-1]+r[o])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length},gT={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n
9435
+ return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:jO("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,i,o,r
9430
9436
  return null!=(n=null==(i=null!=(o=null==(r=e.columnDef.enableGrouping)||r)?o:t.options.enableGrouping)||i)?n:!!e.accessorFn},e.getIsGrouped=()=>{var n
9431
9437
  return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n
9432
9438
  return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup()
9433
9439
  return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],i=null==n?void 0:n.getValue(e.id)
9434
- return"number"==typeof i?dT.sum:"[object Date]"===Object.prototype.toString.call(i)?dT.extent:void 0},e.getAggregationFn=()=>{var n,i
9440
+ return"number"==typeof i?mT.sum:"[object Date]"===Object.prototype.toString.call(i)?mT.extent:void 0},e.getAggregationFn=()=>{var n,i
9435
9441
  if(!e)throw new Error
9436
- return VO(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(i=t.options.aggregationFns)?void 0:i[e.columnDef.aggregationFn])?n:dT[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,i
9442
+ return UO(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(i=t.options.aggregationFns)?void 0:i[e.columnDef.aggregationFn])?n:mT[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,i
9437
9443
  e.setGrouping(t?[]:null!=(n=null==(i=e.initialState)?void 0:i.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n]
9438
9444
  const i=t.getColumn(n)
9439
9445
  return null!=i&&i.columnDef.getGroupingValue?(e._groupingValuesCache[n]=i.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,i)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t
9440
9446
  return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}}
9441
- const uT={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:FO("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n
9442
- e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=BO((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>i=>{let o=[]
9447
+ const vT={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:jO("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n
9448
+ e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=ZO((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>i=>{let o=[]
9443
9449
  if(null!=e&&e.length){const t=[...e],n=[...i]
9444
9450
  for(;n.length&&t.length;){const e=t.shift(),i=n.findIndex((t=>t.id===e))
9445
9451
  i>-1&&o.push(n.splice(i,1)[0])}o=[...o,...n]}else o=i
9446
9452
  return function(e,t,n){if(null==t||!t.length||!n)return e
9447
9453
  const i=e.filter((e=>!t.includes(e.id)))
9448
- return"remove"===n?i:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...i]}(o,t,n)}),{key:!1})}},pT={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:FO("pagination",e)}),createTable:e=>{let t=!1,n=!1
9454
+ return"remove"===n?i:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...i]}(o,t,n)}),{key:!1})}},bT={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:jO("pagination",e)}),createTable:e=>{let t=!1,n=!1
9449
9455
  e._autoResetPageIndex=()=>{var i,o
9450
9456
  if(t){if(null!=(i=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?i:!e.options.manualPagination){if(n)return
9451
- n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>LO(t,e))),e.resetPagination=t=>{var n
9452
- e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let i=LO(t,n.pageIndex)
9457
+ n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>qO(t,e))),e.resetPagination=t=>{var n
9458
+ e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let i=qO(t,n.pageIndex)
9453
9459
  const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1
9454
9460
  return i=Math.max(0,Math.min(i,o)),{...n,pageIndex:i}}))},e.resetPageIndex=t=>{var n,i
9455
9461
  e.setPageIndex(t?0:null!=(n=null==(i=e.initialState)||null==(i=i.pagination)?void 0:i.pageIndex)?n:0)},e.resetPageSize=t=>{var n,i
9456
- e.setPageSize(t?10:null!=(n=null==(i=e.initialState)||null==(i=i.pagination)?void 0:i.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,LO(t,e.pageSize)),i=e.pageSize*e.pageIndex,o=Math.floor(i/n)
9462
+ e.setPageSize(t?10:null!=(n=null==(i=e.initialState)||null==(i=i.pagination)?void 0:i.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,qO(t,e.pageSize)),i=e.pageSize*e.pageIndex,o=Math.floor(i/n)
9457
9463
  return{...e,pageIndex:o,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var i
9458
- let o=LO(t,null!=(i=e.options.pageCount)?i:-1)
9459
- return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}})),e.getPageOptions=BO((()=>[e.getPageCount()]),(e=>{let t=[]
9464
+ let o=qO(t,null!=(i=e.options.pageCount)?i:-1)
9465
+ return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}})),e.getPageOptions=ZO((()=>[e.getPageCount()]),(e=>{let t=[]
9460
9466
  return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:!1,debug:()=>{var t
9461
9467
  return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount()
9462
9468
  return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t
9463
- return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},fT={getInitialState:e=>({columnPinning:{left:[],right:[]},rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:FO("columnPinning",e),onRowPinningChange:FO("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const i=e.getLeafColumns().map((e=>e.id)).filter(Boolean)
9469
+ return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},wT={getInitialState:e=>({columnPinning:{left:[],right:[]},rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:jO("columnPinning",e),onRowPinningChange:jO("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const i=e.getLeafColumns().map((e=>e.id)).filter(Boolean)
9464
9470
  t.setColumnPinning((e=>{var t,o,r,s,a,l
9465
9471
  return"right"===n?{left:(null!=(r=null==e?void 0:e.left)?r:[]).filter((e=>!(null!=i&&i.includes(e)))),right:[...(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=i&&i.includes(e)))),...i]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter((e=>!(null!=i&&i.includes(e)))),...i],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter((e=>!(null!=i&&i.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=i&&i.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=i&&i.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,i,o
9466
9472
  return(null==(n=e.columnDef.enablePinning)||n)&&(null==(i=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||i)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:i,right:o}=t.getState().columnPinning,r=n.some((e=>null==i?void 0:i.includes(e))),s=n.some((e=>null==o?void 0:o.includes(e)))
@@ -9478,34 +9484,34 @@ const o=e.getIsPinned()
9478
9484
  if(!o)return-1
9479
9485
  const r=null==(n=t._getPinnedRows(o))?void 0:n.map((e=>{let{id:t}=e
9480
9486
  return t}))
9481
- return null!=(i=null==r?void 0:r.indexOf(e.id))?i:-1},e.getCenterVisibleCells=BO((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const i=[...null!=t?t:[],...null!=n?n:[]]
9487
+ return null!=(i=null==r?void 0:r.indexOf(e.id))?i:-1},e.getCenterVisibleCells=ZO((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const i=[...null!=t?t:[],...null!=n?n:[]]
9482
9488
  return e.filter((e=>!i.includes(e.column.id)))}),{key:!1,debug:()=>{var e
9483
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getLeftVisibleCells=BO((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),{key:!1,debug:()=>{var e
9484
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getRightVisibleCells=BO((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),{key:!1,debug:()=>{var e
9489
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getLeftVisibleCells=ZO((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),{key:!1,debug:()=>{var e
9490
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getRightVisibleCells=ZO((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),{key:!1,debug:()=>{var e
9485
9491
  return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,i
9486
9492
  return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(i=e.initialState)?void 0:i.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n
9487
9493
  const i=e.getState().columnPinning
9488
9494
  var o,r
9489
- return t?Boolean(null==(n=i[t])?void 0:n.length):Boolean((null==(o=i.left)?void 0:o.length)||(null==(r=i.right)?void 0:r.length))},e.getLeftLeafColumns=BO((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t
9490
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getRightLeafColumns=BO((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t
9491
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getCenterLeafColumns=BO((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const i=[...null!=t?t:[],...null!=n?n:[]]
9495
+ return t?Boolean(null==(n=i[t])?void 0:n.length):Boolean((null==(o=i.left)?void 0:o.length)||(null==(r=i.right)?void 0:r.length))},e.getLeftLeafColumns=ZO((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t
9496
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getRightLeafColumns=ZO((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),{key:!1,debug:()=>{var t
9497
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getCenterLeafColumns=ZO((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const i=[...null!=t?t:[],...null!=n?n:[]]
9492
9498
  return e.filter((e=>!i.includes(e.id)))}),{key:!1,debug:()=>{var t
9493
9499
  return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,i
9494
9500
  return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(i=e.initialState)?void 0:i.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n
9495
9501
  const i=e.getState().rowPinning
9496
9502
  var o,r
9497
- return t?Boolean(null==(n=i[t])?void 0:n.length):Boolean((null==(o=i.top)?void 0:o.length)||(null==(r=i.bottom)?void 0:r.length))},e._getPinnedRows=t=>BO((()=>[e.getRowModel().rows,e.getState().rowPinning[t]]),((n,i)=>{var o
9503
+ return t?Boolean(null==(n=i[t])?void 0:n.length):Boolean((null==(o=i.top)?void 0:o.length)||(null==(r=i.bottom)?void 0:r.length))},e._getPinnedRows=t=>ZO((()=>[e.getRowModel().rows,e.getState().rowPinning[t]]),((n,i)=>{var o
9498
9504
  return(null==(o=e.options.keepPinnedRows)||o?(null!=i?i:[]).map((t=>{const n=e.getRow(t,!0)
9499
9505
  return n.getIsAllParentsExpanded()?n:null})):(null!=i?i:[]).map((e=>n.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:t})))}),{key:!1,debug:()=>{var t
9500
- return null!=(t=e.options.debugAll)?t:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=BO((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const i=new Set([...null!=t?t:[],...null!=n?n:[]])
9506
+ return null!=(t=e.options.debugAll)?t:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=ZO((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const i=new Set([...null!=t?t:[],...null!=n?n:[]])
9501
9507
  return e.filter((e=>!i.has(e.id)))}),{key:!1,debug:()=>{var t
9502
- return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}},mT={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:FO("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n
9508
+ return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}},yT={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:jO("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n
9503
9509
  return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=void 0!==t?t:!e.getIsAllRowsSelected()
9504
9510
  const i={...n},o=e.getPreGroupedRowModel().flatRows
9505
9511
  return t?o.forEach((e=>{e.getCanSelect()&&(i[e.id]=!0)})):o.forEach((e=>{delete i[e.id]})),i}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const i=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n}
9506
- return e.getRowModel().rows.forEach((t=>{gT(o,t.id,i,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=BO((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?vT(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t
9507
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=BO((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?vT(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t
9508
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=BO((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?vT(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t
9512
+ return e.getRowModel().rows.forEach((t=>{xT(o,t.id,i,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ZO((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?kT(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t
9513
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=ZO((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?kT(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t
9514
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=ZO((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?kT(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t
9509
9515
  return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState()
9510
9516
  let i=Boolean(t.length&&Object.keys(n).length)
9511
9517
  return i&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(i=!1),i},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState()
@@ -9517,40 +9523,40 @@ return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.
9517
9523
  t.setRowSelection((r=>{var s
9518
9524
  if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return r
9519
9525
  const a={...r}
9520
- return gT(a,e.id,n,null==(s=null==i?void 0:i.selectChildren)||s,t),a}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState()
9521
- return bT(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState()
9522
- return"some"===wT(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState()
9523
- return"all"===wT(e,n)},e.getCanSelect=()=>{var n
9526
+ return xT(a,e.id,n,null==(s=null==i?void 0:i.selectChildren)||s,t),a}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState()
9527
+ return CT(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState()
9528
+ return"some"===ST(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState()
9529
+ return"all"===ST(e,n)},e.getCanSelect=()=>{var n
9524
9530
  return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n
9525
9531
  return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n
9526
9532
  return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect()
9527
9533
  return n=>{var i
9528
- t&&e.toggleSelected(null==(i=n.target)?void 0:i.checked)}}}},gT=(e,t,n,i,o)=>{var r
9534
+ t&&e.toggleSelected(null==(i=n.target)?void 0:i.checked)}}}},xT=(e,t,n,i,o)=>{var r
9529
9535
  const s=o.getRow(t,!0)
9530
- n?(s.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),s.getCanSelect()&&(e[t]=!0)):delete e[t],i&&null!=(r=s.subRows)&&r.length&&s.getCanSelectSubRows()&&s.subRows.forEach((t=>gT(e,t.id,n,i,o)))}
9531
- function vT(e,t){const n=e.getState().rowSelection,i=[],o={},r=function(e,t){return e.map((e=>{var t
9532
- const s=bT(e,n)
9536
+ n?(s.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),s.getCanSelect()&&(e[t]=!0)):delete e[t],i&&null!=(r=s.subRows)&&r.length&&s.getCanSelectSubRows()&&s.subRows.forEach((t=>xT(e,t.id,n,i,o)))}
9537
+ function kT(e,t){const n=e.getState().rowSelection,i=[],o={},r=function(e,t){return e.map((e=>{var t
9538
+ const s=CT(e,n)
9533
9539
  if(s&&(i.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:r(e.subRows)}),s)return e})).filter(Boolean)}
9534
- return{rows:r(t.rows),flatRows:i,rowsById:o}}function bT(e,t){var n
9535
- return null!=(n=t[e.id])&&n}function wT(e,t,n){var i
9540
+ return{rows:r(t.rows),flatRows:i,rowsById:o}}function CT(e,t){var n
9541
+ return null!=(n=t[e.id])&&n}function ST(e,t,n){var i
9536
9542
  if(null==(i=e.subRows)||!i.length)return!1
9537
9543
  let o=!0,r=!1
9538
- return e.subRows.forEach((e=>{if((!r||o)&&(e.getCanSelect()&&(bT(e,t)?r=!0:o=!1),e.subRows&&e.subRows.length)){const n=wT(e,t)
9539
- "all"===n?r=!0:"some"===n?(r=!0,o=!1):o=!1}})),o?"all":!!r&&"some"}const yT=/([0-9]+)/gm
9540
- function xT(e,t){return e===t?0:e>t?1:-1}function kT(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function CT(e,t){const n=e.split(yT).filter(Boolean),i=t.split(yT).filter(Boolean)
9544
+ return e.subRows.forEach((e=>{if((!r||o)&&(e.getCanSelect()&&(CT(e,t)?r=!0:o=!1),e.subRows&&e.subRows.length)){const n=ST(e,t)
9545
+ "all"===n?r=!0:"some"===n?(r=!0,o=!1):o=!1}})),o?"all":!!r&&"some"}const $T=/([0-9]+)/gm
9546
+ function MT(e,t){return e===t?0:e>t?1:-1}function _T(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function ET(e,t){const n=e.split($T).filter(Boolean),i=t.split($T).filter(Boolean)
9541
9547
  for(;n.length&&i.length;){const e=n.shift(),t=i.shift(),o=parseInt(e,10),r=parseInt(t,10),s=[o,r].sort()
9542
9548
  if(isNaN(s[0])){if(e>t)return 1
9543
9549
  if(t>e)return-1}else{if(isNaN(s[1]))return isNaN(o)?-1:1
9544
9550
  if(o>r)return 1
9545
- if(r>o)return-1}}return n.length-i.length}const ST={alphanumeric:(e,t,n)=>CT(kT(e.getValue(n)).toLowerCase(),kT(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>CT(kT(e.getValue(n)),kT(t.getValue(n))),text:(e,t,n)=>xT(kT(e.getValue(n)).toLowerCase(),kT(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>xT(kT(e.getValue(n)),kT(t.getValue(n))),datetime:(e,t,n)=>{const i=e.getValue(n),o=t.getValue(n)
9546
- return i>o?1:i<o?-1:0},basic:(e,t,n)=>xT(e.getValue(n),t.getValue(n))},$T={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:FO("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10)
9551
+ if(r>o)return-1}}return n.length-i.length}const IT={alphanumeric:(e,t,n)=>ET(_T(e.getValue(n)).toLowerCase(),_T(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>ET(_T(e.getValue(n)),_T(t.getValue(n))),text:(e,t,n)=>MT(_T(e.getValue(n)).toLowerCase(),_T(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>MT(_T(e.getValue(n)),_T(t.getValue(n))),datetime:(e,t,n)=>{const i=e.getValue(n),o=t.getValue(n)
9552
+ return i>o?1:i<o?-1:0},basic:(e,t,n)=>MT(e.getValue(n),t.getValue(n))},AT={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:jO("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10)
9547
9553
  let i=!1
9548
9554
  for(const t of n){const n=null==t?void 0:t.getValue(e.id)
9549
- if("[object Date]"===Object.prototype.toString.call(n))return ST.datetime
9550
- if("string"==typeof n&&(i=!0,n.split(yT).length>1))return ST.alphanumeric}return i?ST.text:ST.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0]
9555
+ if("[object Date]"===Object.prototype.toString.call(n))return IT.datetime
9556
+ if("string"==typeof n&&(i=!0,n.split($T).length>1))return IT.alphanumeric}return i?IT.text:IT.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0]
9551
9557
  return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,i
9552
9558
  if(!e)throw new Error
9553
- return VO(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(i=t.options.sortingFns)?void 0:i[e.columnDef.sortingFn])?n:ST[e.columnDef.sortingFn]},e.toggleSorting=(n,i)=>{const o=e.getNextSortingOrder(),r=null!=n
9559
+ return UO(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(i=t.options.sortingFns)?void 0:i[e.columnDef.sortingFn])?n:IT[e.columnDef.sortingFn]},e.toggleSorting=(n,i)=>{const o=e.getNextSortingOrder(),r=null!=n
9554
9560
  t.setSorting((s=>{const a=null==s?void 0:s.find((t=>t.id===e.id)),l=null==s?void 0:s.findIndex((t=>t.id===e.id))
9555
9561
  let c,d=[],h=r?n:"desc"===o
9556
9562
  var u;(c=null!=s&&s.length&&e.getCanMultiSort()&&i?a?"toggle":"add":null!=s&&s.length&&l!==s.length-1?"replace":a?"toggle":"replace","toggle"===c&&(r||o||(c="remove")),"add"===c)?(d=[...s,{id:e.id,desc:h}],d.splice(0,d.length-(null!=(u=t.options.maxMultiSortColCount)?u:Number.MAX_SAFE_INTEGER))):d="toggle"===c?s.map((t=>t.id===e.id?{...t,desc:h}:t)):"remove"===c?s.filter((t=>t.id!==e.id)):[{id:e.id,desc:h}]
@@ -9564,42 +9570,42 @@ const i=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id))
9564
9570
  return!!i&&(i.desc?"desc":"asc")},e.getSortIndex=()=>{var n,i
9565
9571
  return null!=(n=null==(i=t.getState().sorting)?void 0:i.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort()
9566
9572
  return i=>{n&&(null==i.persist||i.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(i))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,i
9567
- e.setSorting(t?[]:null!=(n=null==(i=e.initialState)?void 0:i.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},MT={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:FO("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,i
9573
+ e.setSorting(t?[]:null!=(n=null==(i=e.initialState)?void 0:i.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},OT={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:jO("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,i
9568
9574
  return null==(n=null==(i=t.getState().columnVisibility)?void 0:i[e.id])||n},e.getCanHide=()=>{var n,i
9569
- return(null==(n=e.columnDef.enableHiding)||n)&&(null==(i=t.options.enableHiding)||i)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=BO((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e
9570
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getVisibleCells=BO((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),{key:!1,debug:()=>{var e
9571
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{const t=(t,n)=>BO((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t
9575
+ return(null==(n=e.columnDef.enableHiding)||n)&&(null==(i=t.options.enableHiding)||i)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=ZO((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e
9576
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getVisibleCells=ZO((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),{key:!1,debug:()=>{var e
9577
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{const t=(t,n)=>ZO((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),{key:t,debug:()=>{var t
9572
9578
  return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})
9573
9579
  e.getVisibleFlatColumns=t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n
9574
9580
  e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n
9575
9581
  t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n
9576
- e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},_T=[jO,MT,uT,fT,lT,$T,hT,JO,pT,mT,ZO]
9577
- function ET(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...")
9578
- let n={_features:_T}
9582
+ e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},TT=[KO,OT,vT,wT,pT,AT,gT,tT,bT,yT,YO]
9583
+ function RT(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...")
9584
+ let n={_features:TT}
9579
9585
  const i=n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n))),{})
9580
9586
  let o={...null!=(t=e.initialState)?t:{}}
9581
9587
  n._features.forEach((e=>{var t
9582
9588
  o=null!=(t=null==e.getInitialState?void 0:e.getInitialState(o))?t:o}))
9583
9589
  const r=[]
9584
9590
  let s=!1
9585
- const a={_features:_T,options:{...i,...e},initialState:o,_queue:e=>{r.push(e),s||(s=!0,Promise.resolve().then((()=>{for(;r.length;)r.shift()()
9586
- s=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{const t=LO(e,n.options)
9591
+ const a={_features:TT,options:{...i,...e},initialState:o,_queue:e=>{r.push(e),s||(s=!0,Promise.resolve().then((()=>{for(;r.length;)r.shift()()
9592
+ s=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{const t=qO(e,n.options)
9587
9593
  n.options=(e=>n.options.mergeOptions?n.options.mergeOptions(i,e):{...i,...e})(t)},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,i)=>{var o
9588
9594
  return null!=(o=null==n.options.getRowId?void 0:n.options.getRowId(e,t,i))?o:`${i?[i.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{let i=(t?n.getPrePaginationRowModel():n.getRowModel()).rowsById[e]
9589
9595
  if(!i&&(i=n.getCoreRowModel().rowsById[e],!i))throw new Error
9590
- return i},_getDefaultColumnDef:BO((()=>[n.options.defaultColumn]),(e=>{var t
9596
+ return i},_getDefaultColumnDef:ZO((()=>[n.options.defaultColumn]),(e=>{var t
9591
9597
  return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef
9592
9598
  return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n
9593
9599
  return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),{debug:()=>{var e
9594
- return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:BO((()=>[n._getColumnDefs()]),(e=>{const t=function(e,i,o){return void 0===o&&(o=0),e.map((e=>{const r=function(e,t,n,i){var o,r
9600
+ return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:ZO((()=>[n._getColumnDefs()]),(e=>{const t=function(e,i,o){return void 0===o&&(o=0),e.map((e=>{const r=function(e,t,n,i){var o,r
9595
9601
  const s={...e._getDefaultColumnDef(),...t},a=s.accessorKey
9596
9602
  let l,c=null!=(o=null!=(r=s.id)?r:a?a.replace(".","_"):void 0)?o:"string"==typeof s.header?s.header:void 0
9597
9603
  if(s.accessorFn?l=s.accessorFn:a&&(l=a.includes(".")?e=>{let t=e
9598
9604
  for(const e of a.split(".")){var n
9599
9605
  t=null==(n=t)?void 0:n[e]}return t}:e=>e[s.accessorKey]),!c)throw new Error
9600
- let d={id:`${String(c)}`,accessorFn:l,parent:i,depth:n,columnDef:s,columns:[],getFlatColumns:BO((()=>[!0]),(()=>{var e
9606
+ let d={id:`${String(c)}`,accessorFn:l,parent:i,depth:n,columnDef:s,columns:[],getFlatColumns:ZO((()=>[!0]),(()=>{var e
9601
9607
  return[d,...null==(e=d.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"column.getFlatColumns",debug:()=>{var t
9602
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:BO((()=>[e._getOrderColumnsFn()]),(e=>{var t
9608
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:ZO((()=>[e._getOrderColumnsFn()]),(e=>{var t
9603
9609
  if(null!=(t=d.columns)&&t.length){let t=d.columns.flatMap((e=>e.getLeafColumns()))
9604
9610
  return e(t)}return[d]}),{key:"column.getLeafColumns",debug:()=>{var t
9605
9611
  return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})}
@@ -9607,34 +9613,34 @@ for(const t of e._features)null==t.createColumn||t.createColumn(d,e)
9607
9613
  return d}(n,e,o,i),s=e
9608
9614
  return r.columns=s.columns?t(s.columns,r,o+1):[],r}))}
9609
9615
  return t(e)}),{key:!1,debug:()=>{var e
9610
- return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:BO((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e
9611
- return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:BO((()=>[n.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e
9612
- return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:BO((()=>[n.getAllColumns(),n._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:!1,debug:()=>{var e
9616
+ return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:ZO((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e
9617
+ return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:ZO((()=>[n.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e
9618
+ return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:ZO((()=>[n.getAllColumns(),n._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:!1,debug:()=>{var e
9613
9619
  return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>n._getAllFlatColumnsById()[e]}
9614
9620
  Object.assign(n,a)
9615
9621
  for(let e=0;e<n._features.length;e++){const t=n._features[e]
9616
- null==t||null==t.createTable||t.createTable(n)}return n}const IT=(e,t,n,i,o,r,s)=>{let a={id:t,index:i,original:n,depth:o,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(a._valuesCache.hasOwnProperty(t))return a._valuesCache[t]
9622
+ null==t||null==t.createTable||t.createTable(n)}return n}const DT=(e,t,n,i,o,r,s)=>{let a={id:t,index:i,original:n,depth:o,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(a._valuesCache.hasOwnProperty(t))return a._valuesCache[t]
9617
9623
  const n=e.getColumn(t)
9618
9624
  return null!=n&&n.accessorFn?(a._valuesCache[t]=n.accessorFn(a.original,i),a._valuesCache[t]):void 0},getUniqueValues:t=>{if(a._uniqueValuesCache.hasOwnProperty(t))return a._uniqueValuesCache[t]
9619
9625
  const n=e.getColumn(t)
9620
9626
  return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(a._uniqueValuesCache[t]=n.columnDef.getUniqueValues(a.original,i),a._uniqueValuesCache[t]):(a._uniqueValuesCache[t]=[a.getValue(t)],a._uniqueValuesCache[t]):void 0},renderValue:t=>{var n
9621
- return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=r?r:[],getLeafRows:()=>HO(a.subRows,(e=>e.subRows)),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let e=[],t=a
9627
+ return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=r?r:[],getLeafRows:()=>WO(a.subRows,(e=>e.subRows)),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let e=[],t=a
9622
9628
  for(;;){const n=t.getParentRow()
9623
9629
  if(!n)break
9624
- e.push(n),t=n}return e.reverse()},getAllCells:BO((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,i){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(i),renderValue:()=>{var t
9625
- return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:BO((()=>[e,n,t,o]),((e,t,n,i)=>({table:e,column:t,row:n,cell:i,getValue:i.getValue,renderValue:i.renderValue})),{key:!1,debug:()=>e.options.debugAll})}
9630
+ e.push(n),t=n}return e.reverse()},getAllCells:ZO((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,i){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(i),renderValue:()=>{var t
9631
+ return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:ZO((()=>[e,n,t,o]),((e,t,n,i)=>({table:e,column:t,row:n,cell:i,getValue:i.getValue,renderValue:i.renderValue})),{key:!1,debug:()=>e.options.debugAll})}
9626
9632
  return e._features.forEach((i=>{null==i.createCell||i.createCell(o,n,t,e)}),{}),o}(e,a,t,t.id)))),{key:!1,debug:()=>{var t
9627
- return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:BO((()=>[a.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t
9633
+ return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:ZO((()=>[a.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t
9628
9634
  return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}
9629
9635
  for(let t=0;t<e._features.length;t++){const n=e._features[t]
9630
9636
  null==n||null==n.createRow||n.createRow(a,e)}return a}
9631
- function AT(){return e=>BO((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,n)=>{if(!n.rows.length||!t.length)return n
9637
+ function NT(){return e=>ZO((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,n)=>{if(!n.rows.length||!t.length)return n
9632
9638
  const i=t.filter((t=>e.getColumn(t))),o=[],r={},s=function(t,n,a){if(void 0===n&&(n=0),n>=i.length)return t.map((e=>(e.depth=n,o.push(e),r[e.id]=e,e.subRows&&(e.subRows=s(e.subRows,n+1,e.id)),e)))
9633
9639
  const l=i[n],c=function(e,t){const n=new Map
9634
9640
  return e.reduce(((e,n)=>{const i=`${n.getGroupingValue(t)}`,o=e.get(i)
9635
9641
  return o?o.push(n):e.set(i,[n]),e}),n)}(t,l),d=Array.from(c.entries()).map(((t,c)=>{let[d,h]=t,u=`${l}:${d}`
9636
9642
  u=a?`${a}>${u}`:u
9637
- const p=s(h,n+1,u),f=n?HO(h,(e=>e.subRows)):h,m=IT(e,u,f[0].original,c,n,void 0,a)
9643
+ const p=s(h,n+1,u),f=n?WO(h,(e=>e.subRows)):h,m=DT(e,u,f[0].original,c,n,void 0,a)
9638
9644
  return Object.assign(m,{groupingColumnId:l,groupingValue:d,subRows:p,leafRows:f,getValue:t=>{if(i.includes(t)){if(m._valuesCache.hasOwnProperty(t))return m._valuesCache[t]
9639
9645
  var n
9640
9646
  if(h[0])m._valuesCache[t]=null!=(n=h[0].getValue(t))?n:void 0
@@ -9643,10 +9649,10 @@ const o=e.getColumn(t),r=null==o?void 0:o.getAggregationFn()
9643
9649
  return r?(m._groupingValuesCache[t]=r(t,f,h),m._groupingValuesCache[t]):void 0}}),p.forEach((e=>{o.push(e),r[e.id]=e})),m}))
9644
9650
  return d},a=s(n.rows,0)
9645
9651
  return a.forEach((e=>{o.push(e),r[e.id]=e})),{rows:a,flatRows:o,rowsById:r}}),{key:!1,debug:()=>{var t
9646
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))}})}const OT={none:void 0,ascending:"ascending",descending:"descending"},TT={none:void 0,single:"single",multiple:"multiple"},RT="notSelected",DT="selected",NT="partiallySelected",PT="basic",zT="localeAwareCaseSensitive"
9647
- class LT extends Lt{}e([g],LT.prototype,"groupHeaderValue",void 0),e([g],LT.prototype,"columnConfig",void 0)
9648
- const FT=e=>((e=>{let t
9649
- try{t=document.createElement(e)}catch(e){}if(!(t instanceof LT))throw new Error(`Group header view tag name (${e}) must evaluate to an element extending TableGroupHeaderView`)})(e),Z`
9652
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))}})}const PT={none:void 0,ascending:"ascending",descending:"descending"},zT={none:void 0,single:"single",multiple:"multiple"},LT="notSelected",FT="selected",VT="partiallySelected",HT="basic",BT="localeAwareCaseSensitive"
9653
+ class qT extends Lt{}e([g],qT.prototype,"groupHeaderValue",void 0),e([g],qT.prototype,"columnConfig",void 0)
9654
+ const jT=e=>((e=>{let t
9655
+ try{t=document.createElement(e)}catch(e){}if(!(t instanceof qT))throw new Error(`Group header view tag name (${e}) must evaluate to an element extending TableGroupHeaderView`)})(e),Z`
9650
9656
  <${e}
9651
9657
  :groupHeaderValue="${e=>e.groupRowValue}"
9652
9658
  :columnConfig="${e=>e.groupColumn?.columnInternals.columnConfig}"
@@ -9654,11 +9660,11 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof LT))throw new Error(
9654
9660
  >
9655
9661
  </${e}>
9656
9662
  `)
9657
- class VT extends Lt{constructor(){super(...arguments),this.delegatedEvents=[],this.delegatedEventHandler=()=>{}}focusedRecycleCallback(){}columnChanged(){for(const e of this.delegatedEvents)this.removeEventListener(e,this.delegatedEventHandler)
9663
+ class UT extends Lt{constructor(){super(...arguments),this.delegatedEvents=[],this.delegatedEventHandler=()=>{}}focusedRecycleCallback(){}columnChanged(){for(const e of this.delegatedEvents)this.removeEventListener(e,this.delegatedEventHandler)
9658
9664
  if(this.delegatedEvents=[],this.delegatedEventHandler=()=>{},this.column){this.delegatedEvents=this.column.columnInternals.delegatedEvents,this.delegatedEventHandler=e=>{this.recordId&&this.column?.dispatchEvent(new CustomEvent("delegated-event",{detail:{originalEvent:e,recordId:this.recordId}}))}
9659
- for(const e of this.delegatedEvents)this.addEventListener(e,this.delegatedEventHandler)}}}e([g],VT.prototype,"cellRecord",void 0),e([g],VT.prototype,"columnConfig",void 0),e([g],VT.prototype,"column",void 0),e([g],VT.prototype,"recordId",void 0)
9660
- const HT=e=>((e=>{let t
9661
- try{t=document.createElement(e)}catch(e){}if(!(t instanceof VT))throw new Error(`Cell view tag name (${e}) must evaluate to an element extending TableCellView`)})(e),Z`
9665
+ for(const e of this.delegatedEvents)this.addEventListener(e,this.delegatedEventHandler)}}}e([g],UT.prototype,"cellRecord",void 0),e([g],UT.prototype,"columnConfig",void 0),e([g],UT.prototype,"column",void 0),e([g],UT.prototype,"recordId",void 0)
9666
+ const WT=e=>((e=>{let t
9667
+ try{t=document.createElement(e)}catch(e){}if(!(t instanceof UT))throw new Error(`Cell view tag name (${e}) must evaluate to an element extending TableCellView`)})(e),Z`
9662
9668
  <${e}
9663
9669
  :cellRecord="${e=>e.cellState?.cellRecord}"
9664
9670
  :columnConfig="${e=>e.cellState?.columnConfig}"
@@ -9668,11 +9674,11 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof VT))throw new Error(
9668
9674
  >
9669
9675
  </${e}>
9670
9676
  `)
9671
- class BT{constructor(e){this.uniqueId=ma("table-column-slot"),this.validConfiguration=!0,this.sortOperation=PT,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=1,this.minPixelWidth=117,this.currentFractionalWidth=1,this.currentSortDirection=OT.none,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=HT(e.cellViewTag),this.groupHeaderViewTemplate=FT(e.groupHeaderViewTag),this.delegatedEvents=e.delegatedEvents,this.sortOperation=e.sortOperation??PT}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}function qT(e,...t){for(const n of t)if(e===n)return!0
9672
- return!1}e([g],BT.prototype,"columnConfig",void 0),e([g],BT.prototype,"validConfiguration",void 0),e([g],BT.prototype,"operandDataRecordFieldName",void 0),e([g],BT.prototype,"sortOperation",void 0),e([g],BT.prototype,"dataRecordFieldNames",void 0),e([g],BT.prototype,"groupingDisabled",void 0),e([g],BT.prototype,"groupIndex",void 0),e([g],BT.prototype,"pixelWidth",void 0),e([g],BT.prototype,"fractionalWidth",void 0),e([g],BT.prototype,"minPixelWidth",void 0),e([g],BT.prototype,"currentFractionalWidth",void 0),e([g],BT.prototype,"currentPixelWidth",void 0),e([g],BT.prototype,"currentSortIndex",void 0),e([g],BT.prototype,"currentSortDirection",void 0)
9673
- class jT extends Lt{constructor(){super(...arguments),this.columnInternals=new BT(this.getColumnInternalsOptions()),this.columnHidden=!1,this.sortDirection=OT.none,this.sortingDisabled=!1,this.hasOverflow=!1}checkValidity(){return this.columnInternals.validConfiguration}get validity(){return{}}get headerTextContent(){return this.contentSlot.assignedNodes().map((e=>e.textContent?.trim())).join(" ")}connectedCallback(){super.connectedCallback(),this.setAttribute("slot",this.columnInternals.uniqueId)}sortDirectionChanged(){this.sortingDisabled||(this.columnInternals.currentSortDirection=this.sortDirection)}sortIndexChanged(){this.sortingDisabled||(this.columnInternals.currentSortIndex=this.sortIndex)}sortingDisabledChanged(){this.sortingDisabled?(this.columnInternals.currentSortDirection=OT.none,this.columnInternals.currentSortIndex=void 0):(this.columnInternals.currentSortDirection=this.sortDirection,this.columnInternals.currentSortIndex=this.sortIndex)}}e([se({attribute:"column-id"})],jT.prototype,"columnId",void 0),e([se({attribute:"action-menu-slot"})],jT.prototype,"actionMenuSlot",void 0),e([se({attribute:"action-menu-label"})],jT.prototype,"actionMenuLabel",void 0),e([se({attribute:"column-hidden",mode:"boolean"})],jT.prototype,"columnHidden",void 0),e([se({attribute:"sort-index",converter:oe})],jT.prototype,"sortIndex",void 0),e([se({attribute:"sort-direction"})],jT.prototype,"sortDirection",void 0),e([se({attribute:"sorting-disabled",mode:"boolean"})],jT.prototype,"sortingDisabled",void 0),e([g],jT.prototype,"hasOverflow",void 0)
9674
- class UT{constructor(){this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.duplicateColumnId=!1,this.missingColumnId=!1,this.duplicateSortIndex=!1,this.duplicateGroupIndex=!1,this.idFieldNameNotConfigured=!1,this.invalidColumnConfiguration=!1,this.invalidParentIdConfiguration=!1,this.recordIds=new Set}getValidity(){return{duplicateRecordId:this.duplicateRecordId,missingRecordId:this.missingRecordId,invalidRecordId:this.invalidRecordId,duplicateColumnId:this.duplicateColumnId,missingColumnId:this.missingColumnId,duplicateSortIndex:this.duplicateSortIndex,duplicateGroupIndex:this.duplicateGroupIndex,idFieldNameNotConfigured:this.idFieldNameNotConfigured,invalidColumnConfiguration:this.invalidColumnConfiguration,invalidParentIdConfiguration:this.invalidParentIdConfiguration}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}areRecordIdsValid(){const e=this.getValidity()
9675
- return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateIdFieldConfiguration(e,t,n){const i=e!==TT.none||"string"==typeof n
9677
+ class ZT{constructor(e){this.uniqueId=ma("table-column-slot"),this.validConfiguration=!0,this.sortOperation=HT,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=1,this.minPixelWidth=117,this.currentFractionalWidth=1,this.currentSortDirection=PT.none,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=WT(e.cellViewTag),this.groupHeaderViewTemplate=jT(e.groupHeaderViewTag),this.delegatedEvents=e.delegatedEvents,this.sortOperation=e.sortOperation??HT}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}function GT(e,...t){for(const n of t)if(e===n)return!0
9678
+ return!1}e([g],ZT.prototype,"columnConfig",void 0),e([g],ZT.prototype,"validConfiguration",void 0),e([g],ZT.prototype,"operandDataRecordFieldName",void 0),e([g],ZT.prototype,"sortOperation",void 0),e([g],ZT.prototype,"dataRecordFieldNames",void 0),e([g],ZT.prototype,"groupingDisabled",void 0),e([g],ZT.prototype,"groupIndex",void 0),e([g],ZT.prototype,"pixelWidth",void 0),e([g],ZT.prototype,"fractionalWidth",void 0),e([g],ZT.prototype,"minPixelWidth",void 0),e([g],ZT.prototype,"currentFractionalWidth",void 0),e([g],ZT.prototype,"currentPixelWidth",void 0),e([g],ZT.prototype,"currentSortIndex",void 0),e([g],ZT.prototype,"currentSortDirection",void 0)
9679
+ class KT extends Lt{constructor(){super(...arguments),this.columnInternals=new ZT(this.getColumnInternalsOptions()),this.columnHidden=!1,this.sortDirection=PT.none,this.sortingDisabled=!1,this.hasOverflow=!1}checkValidity(){return this.columnInternals.validConfiguration}get validity(){return{}}get headerTextContent(){return this.contentSlot.assignedNodes().map((e=>e.textContent?.trim())).join(" ")}connectedCallback(){super.connectedCallback(),this.setAttribute("slot",this.columnInternals.uniqueId)}sortDirectionChanged(){this.sortingDisabled||(this.columnInternals.currentSortDirection=this.sortDirection)}sortIndexChanged(){this.sortingDisabled||(this.columnInternals.currentSortIndex=this.sortIndex)}sortingDisabledChanged(){this.sortingDisabled?(this.columnInternals.currentSortDirection=PT.none,this.columnInternals.currentSortIndex=void 0):(this.columnInternals.currentSortDirection=this.sortDirection,this.columnInternals.currentSortIndex=this.sortIndex)}}e([se({attribute:"column-id"})],KT.prototype,"columnId",void 0),e([se({attribute:"action-menu-slot"})],KT.prototype,"actionMenuSlot",void 0),e([se({attribute:"action-menu-label"})],KT.prototype,"actionMenuLabel",void 0),e([se({attribute:"column-hidden",mode:"boolean"})],KT.prototype,"columnHidden",void 0),e([se({attribute:"sort-index",converter:oe})],KT.prototype,"sortIndex",void 0),e([se({attribute:"sort-direction"})],KT.prototype,"sortDirection",void 0),e([se({attribute:"sorting-disabled",mode:"boolean"})],KT.prototype,"sortingDisabled",void 0),e([g],KT.prototype,"hasOverflow",void 0)
9680
+ class JT{constructor(){this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.duplicateColumnId=!1,this.missingColumnId=!1,this.duplicateSortIndex=!1,this.duplicateGroupIndex=!1,this.idFieldNameNotConfigured=!1,this.invalidColumnConfiguration=!1,this.invalidParentIdConfiguration=!1,this.recordIds=new Set}getValidity(){return{duplicateRecordId:this.duplicateRecordId,missingRecordId:this.missingRecordId,invalidRecordId:this.invalidRecordId,duplicateColumnId:this.duplicateColumnId,missingColumnId:this.missingColumnId,duplicateSortIndex:this.duplicateSortIndex,duplicateGroupIndex:this.duplicateGroupIndex,idFieldNameNotConfigured:this.idFieldNameNotConfigured,invalidColumnConfiguration:this.invalidColumnConfiguration,invalidParentIdConfiguration:this.invalidParentIdConfiguration}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}areRecordIdsValid(){const e=this.getValidity()
9681
+ return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateIdFieldConfiguration(e,t,n){const i=e!==zT.none||"string"==typeof n
9676
9682
  return this.idFieldNameNotConfigured=!!i&&"string"!=typeof t,!this.idFieldNameNotConfigured}validateRecordIds(e,t){if(this.duplicateRecordId=!1,this.missingRecordId=!1,this.invalidRecordId=!1,this.recordIds.clear(),"string"!=typeof t)return!0
9677
9683
  for(const n of e){if(!Object.prototype.hasOwnProperty.call(n,t)){this.missingRecordId=!0
9678
9684
  continue}const e=n[t]
@@ -9681,7 +9687,7 @@ const t=e.some((e=>e))
9681
9687
  if(!t)return!0
9682
9688
  const n=new Set
9683
9689
  for(const t of e)t?(n.has(t)&&(this.duplicateColumnId=!0),n.add(t)):this.missingColumnId=!0
9684
- return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e){return this.duplicateSortIndex=!this.validateIndicesAreUnique(e),!this.duplicateSortIndex}validateColumnGroupIndices(e){return this.duplicateGroupIndex=!this.validateIndicesAreUnique(e),!this.duplicateGroupIndex}validateColumnConfigurations(e){return this.invalidColumnConfiguration=e.some((e=>!e.columnInternals.validConfiguration)),!this.invalidColumnConfiguration}getPresentRecordIds(e){return e.filter((e=>this.recordIds.has(e)))}setParentIdConfigurationValidity(e){this.invalidParentIdConfiguration=!e}validateIndicesAreUnique(e){return new Set(e).size===e.length}}const WT=we`
9690
+ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e){return this.duplicateSortIndex=!this.validateIndicesAreUnique(e),!this.duplicateSortIndex}validateColumnGroupIndices(e){return this.duplicateGroupIndex=!this.validateIndicesAreUnique(e),!this.duplicateGroupIndex}validateColumnConfigurations(e){return this.invalidColumnConfiguration=e.some((e=>!e.columnInternals.validConfiguration)),!this.invalidColumnConfiguration}getPresentRecordIds(e){return e.filter((e=>this.recordIds.has(e)))}setParentIdConfigurationValidity(e){this.invalidParentIdConfiguration=!e}validateIndicesAreUnique(e){return new Set(e).size===e.length}}const XT=we`
9685
9691
  ${Oo("flex")}
9686
9692
 
9687
9693
  :host {
@@ -9863,7 +9869,7 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
9863
9869
  background-color: ${Cr(ir,.1)};
9864
9870
  position: absolute;
9865
9871
  }
9866
- `)),ZT=we`
9872
+ `)),YT=we`
9867
9873
  ${Oo("flex")}
9868
9874
 
9869
9875
  :host {
@@ -9882,7 +9888,7 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
9882
9888
  .grouped-indicator {
9883
9889
  flex: 0 0 auto;
9884
9890
  }
9885
- `,GT=Z`
9891
+ `,QT=Z`
9886
9892
  <template role="columnheader"
9887
9893
  aria-sort="${e=>e.ariaSort}"
9888
9894
  ${""}
@@ -9890,14 +9896,14 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
9890
9896
  >
9891
9897
  <slot></slot>
9892
9898
  ${""}
9893
- ${Fe((e=>e.sortDirection===OT.ascending),Z`
9899
+ ${Fe((e=>e.sortDirection===PT.ascending),Z`
9894
9900
  <${lg}
9895
9901
  class="sort-indicator"
9896
9902
  title="${e=>Hg.getValueFor(e)}"
9897
9903
  aria-hidden="true"
9898
9904
  ></${lg}>
9899
9905
  `)}
9900
- ${Fe((e=>e.sortDirection===OT.descending),Z`
9906
+ ${Fe((e=>e.sortDirection===PT.descending),Z`
9901
9907
  <${sg}
9902
9908
  class="sort-indicator"
9903
9909
  title="${e=>Bg.getValueFor(e)}"
@@ -9914,10 +9920,10 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
9914
9920
  `)}
9915
9921
  </template>
9916
9922
  `
9917
- class KT extends Lt{constructor(){super(...arguments),this.sortDirection=OT.none,this.firstSortedColumn=!1,this.isGrouped=!1}sortDirectionChanged(e,t){this.updateAriaSort()}firstSortedColumnChanged(e,t){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==OT.none?this.sortDirection===OT.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}e([se({attribute:"sort-direction"})],KT.prototype,"sortDirection",void 0),e([se({attribute:"first-sorted-column",mode:"boolean"})],KT.prototype,"firstSortedColumn",void 0),e([g],KT.prototype,"isGrouped",void 0)
9918
- const JT=KT.compose({baseName:"table-header",template:GT,styles:ZT})
9919
- bi.getOrCreate().withPrefix("nimble").register(JT())
9920
- const XT="nimble-table-header",YT=we`
9923
+ class eR extends Lt{constructor(){super(...arguments),this.sortDirection=PT.none,this.firstSortedColumn=!1,this.isGrouped=!1}sortDirectionChanged(e,t){this.updateAriaSort()}firstSortedColumnChanged(e,t){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==PT.none?this.sortDirection===PT.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}e([se({attribute:"sort-direction"})],eR.prototype,"sortDirection",void 0),e([se({attribute:"first-sorted-column",mode:"boolean"})],eR.prototype,"firstSortedColumn",void 0),e([g],eR.prototype,"isGrouped",void 0)
9924
+ const tR=eR.compose({baseName:"table-header",template:QT,styles:YT})
9925
+ bi.getOrCreate().withPrefix("nimble").register(tR())
9926
+ const nR="nimble-table-header",iR=we`
9921
9927
  :host .animating {
9922
9928
  transition: ${zd} ease-in;
9923
9929
  }
@@ -9940,8 +9946,8 @@ const XT="nimble-table-header",YT=we`
9940
9946
  transition-duration: 0s;
9941
9947
  }
9942
9948
  }
9943
- `,QT=we`
9944
- ${YT}
9949
+ `,oR=we`
9950
+ ${iR}
9945
9951
  ${Oo("flex")}
9946
9952
 
9947
9953
  :host {
@@ -10045,7 +10051,7 @@ const XT="nimble-table-header",YT=we`
10045
10051
  :host([selected]:hover)::before {
10046
10052
  background-color: ${Cr(ir,.2)};
10047
10053
  }
10048
- `)),eR=we`
10054
+ `)),rR=we`
10049
10055
  ${Oo("flex")}
10050
10056
 
10051
10057
  :host {
@@ -10075,7 +10081,7 @@ const XT="nimble-table-header",YT=we`
10075
10081
  height: ${el};
10076
10082
  align-self: center;
10077
10083
  }
10078
- `,tR=Z`
10084
+ `,sR=Z`
10079
10085
  <template role="cell" style="--ni-private-table-cell-nesting-level: ${e=>e.nestingLevel}">
10080
10086
  ${e=>e.cellViewTemplate}
10081
10087
  ${Fe((e=>e.hasActionMenu),Z`
@@ -10095,10 +10101,10 @@ const XT="nimble-table-header",YT=we`
10095
10101
  `)}
10096
10102
  </template>
10097
10103
  `
10098
- class nR extends Lt{constructor(){super(...arguments),this.hasActionMenu=!1,this.menuOpen=!1,this.nestingLevel=0}onActionMenuBeforeToggle(e){this.$emit("cell-action-menu-beforetoggle",e.detail)}onActionMenuToggle(e){this.menuOpen=e.detail.newState,this.$emit("cell-action-menu-toggle",e.detail)}}e([g],nR.prototype,"cellState",void 0),e([g],nR.prototype,"column",void 0),e([g],nR.prototype,"recordId",void 0),e([se({attribute:"column-id"})],nR.prototype,"columnId",void 0),e([se({attribute:"has-action-menu",mode:"boolean"})],nR.prototype,"hasActionMenu",void 0),e([se({attribute:"menu-open",mode:"boolean"})],nR.prototype,"menuOpen",void 0),e([se({attribute:"action-menu-label"})],nR.prototype,"actionMenuLabel",void 0),e([g],nR.prototype,"cellViewTemplate",void 0),e([g],nR.prototype,"nestingLevel",void 0)
10099
- const iR=nR.compose({baseName:"table-cell",template:tR,styles:eR})
10100
- bi.getOrCreate().withPrefix("nimble").register(iR())
10101
- const oR="nimble-table-cell",rR=Z`
10104
+ class aR extends Lt{constructor(){super(...arguments),this.hasActionMenu=!1,this.menuOpen=!1,this.nestingLevel=0}onActionMenuBeforeToggle(e){this.$emit("cell-action-menu-beforetoggle",e.detail)}onActionMenuToggle(e){this.menuOpen=e.detail.newState,this.$emit("cell-action-menu-toggle",e.detail)}}e([g],aR.prototype,"cellState",void 0),e([g],aR.prototype,"column",void 0),e([g],aR.prototype,"recordId",void 0),e([se({attribute:"column-id"})],aR.prototype,"columnId",void 0),e([se({attribute:"has-action-menu",mode:"boolean"})],aR.prototype,"hasActionMenu",void 0),e([se({attribute:"menu-open",mode:"boolean"})],aR.prototype,"menuOpen",void 0),e([se({attribute:"action-menu-label"})],aR.prototype,"actionMenuLabel",void 0),e([g],aR.prototype,"cellViewTemplate",void 0),e([g],aR.prototype,"nestingLevel",void 0)
10105
+ const lR=aR.compose({baseName:"table-cell",template:sR,styles:rR})
10106
+ bi.getOrCreate().withPrefix("nimble").register(lR())
10107
+ const cR="nimble-table-cell",dR=Z`
10102
10108
  <template
10103
10109
  role="row"
10104
10110
  aria-selected=${e=>e.ariaSelected}
@@ -10140,7 +10146,7 @@ const oR="nimble-table-cell",rR=Z`
10140
10146
  >
10141
10147
  ${Ue((e=>e.columns),Z`
10142
10148
  ${Fe((e=>!e.columnHidden),Z`
10143
- <${oR}
10149
+ <${cR}
10144
10150
  class="cell"
10145
10151
  :cellState="${(e,t)=>t.parent.cellStates[t.index]}"
10146
10152
  :cellViewTemplate="${e=>e.columnInternals.cellViewTemplate}"
@@ -10160,29 +10166,29 @@ const oR="nimble-table-cell",rR=Z`
10160
10166
  slot="cellActionMenu"
10161
10167
  ></slot>
10162
10168
  `)}
10163
- </${oR}>
10169
+ </${cR}>
10164
10170
  `)}
10165
10171
  `,{recycle:!1,positioning:!0})}
10166
10172
  </span>
10167
10173
  </template>
10168
10174
  `
10169
- class sR extends Lt{constructor(){super(...arguments),this.selectable=!1,this.selected=!1,this.hideSelection=!1,this.expanded=!1,this.columnNotifiers=[],this.columns=[],this.nestingLevel=0,this.isParentRow=!1,this.menuOpen=!1,this.rowOperationGridCellHidden=!1,this.cellIndentLevels=[],this.cellStates=[],this.animationClass="",this.ignoreSelectionChangeEvents=!1,this.removeAnimatingClass=()=>{this.animationClass="",this.expandIcon?.removeEventListener("transitionend",this.removeAnimatingClass)}}get isTopLevelParentRow(){return this.isParentRow&&0===this.nestingLevel}get ariaSelected(){return this.selectable?this.selected?"true":"false":null}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
10175
+ class hR extends Lt{constructor(){super(...arguments),this.selectable=!1,this.selected=!1,this.hideSelection=!1,this.expanded=!1,this.columnNotifiers=[],this.columns=[],this.nestingLevel=0,this.isParentRow=!1,this.menuOpen=!1,this.rowOperationGridCellHidden=!1,this.cellIndentLevels=[],this.cellStates=[],this.animationClass="",this.ignoreSelectionChangeEvents=!1,this.removeAnimatingClass=()=>{this.animationClass="",this.expandIcon?.removeEventListener("transitionend",this.removeAnimatingClass)}}get isTopLevelParentRow(){return this.isParentRow&&0===this.nestingLevel}get ariaSelected(){return this.selectable?this.selected?"true":"false":null}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
10170
10176
  const t=e.target.checked
10171
10177
  this.selected=t
10172
10178
  const n={oldState:!t,newState:t}
10173
- this.$emit("row-selection-toggle",n)}onCellActionMenuBeforeToggle(e,t){this.currentActionMenuColumn=t,this.emitActionMenuToggleEvent("row-action-menu-beforetoggle",e.detail,t)}onCellActionMenuToggle(e,t){this.menuOpen=e.detail.newState,this.emitActionMenuToggleEvent("row-action-menu-toggle",e.detail,t)}closeOpenActionMenus(){if(this.menuOpen){const e=Array.from(this.cellContainer.children).find((e=>e instanceof nR&&e.menuOpen))
10174
- e?.actionMenuButton?.open&&e.actionMenuButton.toggleButton.control.click()}}handleChange(e,t){e instanceof BT&&"string"==typeof t&&(qT(t,"columnConfig")||qT(t,"dataRecordFieldNames"))&&this.updateCellStates()}onRowExpandToggle(e){const t={oldState:this.expanded,newState:!this.expanded,recordId:this.recordId}
10179
+ this.$emit("row-selection-toggle",n)}onCellActionMenuBeforeToggle(e,t){this.currentActionMenuColumn=t,this.emitActionMenuToggleEvent("row-action-menu-beforetoggle",e.detail,t)}onCellActionMenuToggle(e,t){this.menuOpen=e.detail.newState,this.emitActionMenuToggleEvent("row-action-menu-toggle",e.detail,t)}closeOpenActionMenus(){if(this.menuOpen){const e=Array.from(this.cellContainer.children).find((e=>e instanceof aR&&e.menuOpen))
10180
+ e?.actionMenuButton?.open&&e.actionMenuButton.toggleButton.control.click()}}handleChange(e,t){e instanceof ZT&&"string"==typeof t&&(GT(t,"columnConfig")||GT(t,"dataRecordFieldNames"))&&this.updateCellStates()}onRowExpandToggle(e){const t={oldState:this.expanded,newState:!this.expanded,recordId:this.recordId}
10175
10181
  this.$emit("row-expand-toggle",t),e.stopImmediatePropagation(),this.animationClass="animating",this.expandIcon?.addEventListener("transitionend",this.removeAnimatingClass)}emitActionMenuToggleEvent(e,t,n){const i={newState:t.newState,oldState:t.oldState,recordIds:[this.recordId],columnId:n.columnId}
10176
10182
  this.$emit(e,i)}columnsChanged(){this.updateCellIndentLevels(),this.updateCellStates(),this.observeColumns()}dataRecordChanged(){this.updateCellStates()}nestingLevelChanged(){this.updateCellIndentLevels()}updateCellIndentLevels(){this.cellIndentLevels=this.columns.map(((e,t)=>0===t?this.nestingLevel:0))}removeColumnObservers(){this.columnNotifiers.forEach((e=>{e.unsubscribe(this)})),this.columnNotifiers=[]}observeColumns(){this.removeColumnObservers(),this.columnNotifiers=this.columns.map((e=>{const t=m.getNotifier(e.columnInternals)
10177
10183
  return t.subscribe(this),t}))}updateCellStates(){this.cellStates=this.columns.map((e=>{const t=e.columnInternals.dataRecordFieldNames
10178
10184
  let n
10179
10185
  if(this.hasValidFieldNames(t)&&this.dataRecord){const i=t.map((e=>this.dataRecord[e]))
10180
- n={cellRecord:Object.fromEntries(e.columnInternals.cellRecordFieldNames.map(((e,t)=>[e,i[t]]))),columnConfig:e.columnInternals.columnConfig}}return n}))}hasValidFieldNames(e){return e.every((e=>void 0!==e))}selectedChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selected,this.ignoreSelectionChangeEvents=!1)}}e([se({attribute:"record-id"})],sR.prototype,"recordId",void 0),e([se({mode:"boolean"})],sR.prototype,"selectable",void 0),e([se({mode:"boolean"})],sR.prototype,"selected",void 0),e([se({attribute:"hide-selection",mode:"boolean"})],sR.prototype,"hideSelection",void 0),e([se({mode:"boolean"})],sR.prototype,"expanded",void 0),e([g],sR.prototype,"dataRecord",void 0),e([g],sR.prototype,"columns",void 0),e([g],sR.prototype,"currentActionMenuColumn",void 0),e([g],sR.prototype,"nestingLevel",void 0),e([se({attribute:"is-parent-row",mode:"boolean"})],sR.prototype,"isParentRow",void 0),e([se({attribute:"menu-open",mode:"boolean"})],sR.prototype,"menuOpen",void 0),e([se({attribute:"row-operation-grid-cell-hidden",mode:"boolean"})],sR.prototype,"rowOperationGridCellHidden",void 0),e([g],sR.prototype,"cellIndentLevels",void 0),e([g],sR.prototype,"cellStates",void 0),e([g],sR.prototype,"selectionCheckbox",void 0),e([g],sR.prototype,"animationClass",void 0),e([v],sR.prototype,"isTopLevelParentRow",null),e([v],sR.prototype,"ariaSelected",null)
10181
- const aR=sR.compose({baseName:"table-row",template:rR,styles:QT})
10182
- bi.getOrCreate().withPrefix("nimble").register(aR())
10183
- const lR="nimble-table-row",cR=we`
10186
+ n={cellRecord:Object.fromEntries(e.columnInternals.cellRecordFieldNames.map(((e,t)=>[e,i[t]]))),columnConfig:e.columnInternals.columnConfig}}return n}))}hasValidFieldNames(e){return e.every((e=>void 0!==e))}selectedChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selected,this.ignoreSelectionChangeEvents=!1)}}e([se({attribute:"record-id"})],hR.prototype,"recordId",void 0),e([se({mode:"boolean"})],hR.prototype,"selectable",void 0),e([se({mode:"boolean"})],hR.prototype,"selected",void 0),e([se({attribute:"hide-selection",mode:"boolean"})],hR.prototype,"hideSelection",void 0),e([se({mode:"boolean"})],hR.prototype,"expanded",void 0),e([g],hR.prototype,"dataRecord",void 0),e([g],hR.prototype,"columns",void 0),e([g],hR.prototype,"currentActionMenuColumn",void 0),e([g],hR.prototype,"nestingLevel",void 0),e([se({attribute:"is-parent-row",mode:"boolean"})],hR.prototype,"isParentRow",void 0),e([se({attribute:"menu-open",mode:"boolean"})],hR.prototype,"menuOpen",void 0),e([se({attribute:"row-operation-grid-cell-hidden",mode:"boolean"})],hR.prototype,"rowOperationGridCellHidden",void 0),e([g],hR.prototype,"cellIndentLevels",void 0),e([g],hR.prototype,"cellStates",void 0),e([g],hR.prototype,"selectionCheckbox",void 0),e([g],hR.prototype,"animationClass",void 0),e([v],hR.prototype,"isTopLevelParentRow",null),e([v],hR.prototype,"ariaSelected",null)
10187
+ const uR=hR.compose({baseName:"table-row",template:dR,styles:oR})
10188
+ bi.getOrCreate().withPrefix("nimble").register(uR())
10189
+ const pR="nimble-table-row",fR=we`
10184
10190
  ${Oo("grid")}
10185
- ${YT}
10191
+ ${iR}
10186
10192
 
10187
10193
  :host {
10188
10194
  align-items: center;
@@ -10265,7 +10271,7 @@ const lR="nimble-table-row",cR=we`
10265
10271
  :host(:hover)::before {
10266
10272
  background-color: ${Cr(ir,.1)};
10267
10273
  }
10268
- `)),dR=Z`
10274
+ `)),mR=Z`
10269
10275
  <template
10270
10276
  role="row"
10271
10277
  @click=${e=>e.onGroupExpandToggle()}
@@ -10305,14 +10311,14 @@ const lR="nimble-table-row",cR=we`
10305
10311
  </div>
10306
10312
  </template>
10307
10313
  `
10308
- class hR extends Lt{constructor(){super(...arguments),this.nestingLevel=0,this.expanded=!1,this.selectable=!1,this.selectionState=RT,this.animationClass="",this.ignoreSelectionChangeEvents=!1,this.removeAnimatingClass=()=>{this.animationClass="",this.expandIcon.removeEventListener("transitionend",this.removeAnimatingClass)}}onGroupExpandToggle(){this.$emit("group-expand-toggle"),this.animationClass="animating",this.expandIcon.addEventListener("transitionend",this.removeAnimatingClass)}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
10314
+ class gR extends Lt{constructor(){super(...arguments),this.nestingLevel=0,this.expanded=!1,this.selectable=!1,this.selectionState=LT,this.animationClass="",this.ignoreSelectionChangeEvents=!1,this.removeAnimatingClass=()=>{this.animationClass="",this.expandIcon.removeEventListener("transitionend",this.removeAnimatingClass)}}onGroupExpandToggle(){this.$emit("group-expand-toggle"),this.animationClass="animating",this.expandIcon.addEventListener("transitionend",this.removeAnimatingClass)}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
10309
10315
  const t=e.target.checked
10310
- this.selectionState=t?DT:RT
10316
+ this.selectionState=t?FT:LT
10311
10317
  const n={oldState:!t,newState:t}
10312
- this.$emit("group-selection-toggle",n)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===DT,this.selectionCheckbox.indeterminate=this.selectionState===NT,this.ignoreSelectionChangeEvents=!1)}}e([g],hR.prototype,"groupRowValue",void 0),e([g],hR.prototype,"nestingLevel",void 0),e([g],hR.prototype,"immediateChildCount",void 0),e([g],hR.prototype,"groupColumn",void 0),e([se({mode:"boolean"})],hR.prototype,"expanded",void 0),e([se({mode:"boolean"})],hR.prototype,"selectable",void 0),e([se({attribute:"selection-state"})],hR.prototype,"selectionState",void 0),e([g],hR.prototype,"selectionCheckbox",void 0),e([g],hR.prototype,"animationClass",void 0)
10313
- const uR=hR.compose({baseName:"table-group-row",template:dR,styles:cR})
10314
- bi.getOrCreate().withPrefix("nimble").register(uR())
10315
- const pR="nimble-table-group-row",fR=Z`
10318
+ this.$emit("group-selection-toggle",n)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===FT,this.selectionCheckbox.indeterminate=this.selectionState===VT,this.ignoreSelectionChangeEvents=!1)}}e([g],gR.prototype,"groupRowValue",void 0),e([g],gR.prototype,"nestingLevel",void 0),e([g],gR.prototype,"immediateChildCount",void 0),e([g],gR.prototype,"groupColumn",void 0),e([se({mode:"boolean"})],gR.prototype,"expanded",void 0),e([se({mode:"boolean"})],gR.prototype,"selectable",void 0),e([se({attribute:"selection-state"})],gR.prototype,"selectionState",void 0),e([g],gR.prototype,"selectionCheckbox",void 0),e([g],gR.prototype,"animationClass",void 0)
10319
+ const vR=gR.compose({baseName:"table-group-row",template:mR,styles:fR})
10320
+ bi.getOrCreate().withPrefix("nimble").register(vR())
10321
+ const bR="nimble-table-group-row",wR=Z`
10316
10322
  <template
10317
10323
  role="treegrid"
10318
10324
  aria-multiselectable="${e=>e.ariaMultiSelectable}"
@@ -10338,7 +10344,7 @@ const pR="nimble-table-group-row",fR=Z`
10338
10344
  ${e=>Wg.getValueFor(e)}
10339
10345
  </span>
10340
10346
  `)}
10341
- ${Fe((e=>e.selectionMode===TT.multiple),Z`
10347
+ ${Fe((e=>e.selectionMode===zT.multiple),Z`
10342
10348
  <span class="checkbox-container">
10343
10349
  <${Om}
10344
10350
  ${Ne("selectionCheckbox")}
@@ -10369,15 +10375,15 @@ const pR="nimble-table-group-row",fR=Z`
10369
10375
  @mousedown="${(e,t)=>t.parent.onLeftDividerMouseDown(t.event,t.index)}">
10370
10376
  </div>
10371
10377
  `)}
10372
- <${XT}
10378
+ <${nR}
10373
10379
  class="header"
10374
- sort-direction="${e=>"number"==typeof e.columnInternals.currentSortIndex?e.columnInternals.currentSortDirection:OT.none}"
10380
+ sort-direction="${e=>"number"==typeof e.columnInternals.currentSortIndex?e.columnInternals.currentSortDirection:PT.none}"
10375
10381
  ?first-sorted-column="${(e,t)=>e===t.parent.firstSortedColumn}"
10376
10382
  @click="${(e,t)=>t.parent.toggleColumnSort(e,t.event.shiftKey)}"
10377
10383
  :isGrouped=${e=>"number"==typeof e.columnInternals.groupIndex&&!e.columnInternals.groupingDisabled}
10378
10384
  >
10379
10385
  <slot name="${e=>e.slot}"></slot>
10380
- </${XT}>
10386
+ </${nR}>
10381
10387
  ${Fe(((e,t)=>t.index<t.length-1),Z`
10382
10388
  <div class="column-divider right ${(e,t)=>""+(t.parent.layoutManager.activeColumnIndex===t.index?"active":"")}"
10383
10389
  @mousedown="${(e,t)=>t.parent.onRightDividerMouseDown(t.event,t.index)}">
@@ -10391,33 +10397,33 @@ const pR="nimble-table-group-row",fR=Z`
10391
10397
  </div>
10392
10398
  <div class="table-viewport" ${Ne("viewport")}>
10393
10399
  <div class="table-scroll"></div>
10394
- <div class="table-row-container" ${Xe({property:"rowElements",filter:We(lR)})}
10400
+ <div class="table-row-container" ${Xe({property:"rowElements",filter:We(pR)})}
10395
10401
  role="rowgroup">
10396
10402
  ${Fe((e=>e.columns.length>0&&e.canRenderRows),Z`
10397
10403
  ${Ue((e=>e.virtualizer.visibleItems),Z`
10398
10404
  ${Fe(((e,t)=>t.parent.tableData[e.index]?.isGroupRow),Z`
10399
- <${pR}
10405
+ <${bR}
10400
10406
  class="group-row"
10401
10407
  :groupRowValue="${(e,t)=>t.parent.tableData[e.index]?.groupRowValue}"
10402
10408
  ?expanded="${(e,t)=>t.parent.tableData[e.index]?.isExpanded}"
10403
10409
  :nestingLevel="${(e,t)=>t.parent.tableData[e.index]?.nestingLevel}"
10404
10410
  :immediateChildCount="${(e,t)=>t.parent.tableData[e.index]?.immediateChildCount}"
10405
10411
  :groupColumn="${(e,t)=>t.parent.tableData[e.index]?.groupColumn}"
10406
- ?selectable="${(e,t)=>t.parent.selectionMode===TT.multiple}"
10412
+ ?selectable="${(e,t)=>t.parent.selectionMode===zT.multiple}"
10407
10413
  selection-state="${(e,t)=>t.parent.tableData[e.index]?.selectionState}"
10408
10414
  @group-selection-toggle="${(e,t)=>t.parent.onRowSelectionToggle(e.index,t.event)}"
10409
10415
  @group-expand-toggle="${(e,t)=>t.parent.handleGroupRowExpanded(e.index,t.event)}"
10410
10416
  >
10411
- </${pR}>
10417
+ </${bR}>
10412
10418
  `)}
10413
10419
  ${Fe(((e,t)=>!t.parent.tableData[e.index]?.isGroupRow),Z`
10414
- <${lR}
10420
+ <${pR}
10415
10421
  class="row"
10416
10422
  record-id="${(e,t)=>t.parent.tableData[e.index]?.id}"
10417
- ?selectable="${(e,t)=>t.parent.selectionMode!==TT.none}"
10418
- ?selected="${(e,t)=>t.parent.tableData[e.index]?.selectionState===DT}"
10423
+ ?selectable="${(e,t)=>t.parent.selectionMode!==zT.none}"
10424
+ ?selected="${(e,t)=>t.parent.tableData[e.index]?.selectionState===FT}"
10419
10425
  ?expanded="${(e,t)=>t.parent.tableData[e.index]?.isExpanded}"
10420
- ?hide-selection="${(e,t)=>t.parent.selectionMode!==TT.multiple}"
10426
+ ?hide-selection="${(e,t)=>t.parent.selectionMode!==zT.multiple}"
10421
10427
  :dataRecord="${(e,t)=>t.parent.tableData[e.index]?.record}"
10422
10428
  :columns="${(e,t)=>t.parent.columns}"
10423
10429
  :isParentRow="${(e,t)=>t.parent.tableData[e.index]?.isParentRow}"
@@ -10438,7 +10444,7 @@ const pR="nimble-table-group-row",fR=Z`
10438
10444
  </slot>
10439
10445
  `)}
10440
10446
  `)}
10441
- </${lR}>
10447
+ </${pR}>
10442
10448
  `)}
10443
10449
  `)}
10444
10450
  `)}
@@ -10458,8 +10464,8 @@ const pR="nimble-table-group-row",fR=Z`
10458
10464
  *
10459
10465
  * @license MIT
10460
10466
  */
10461
- function mR(){return mR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]
10462
- for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},mR.apply(this,arguments)}
10467
+ function yR(){return yR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]
10468
+ for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},yR.apply(this,arguments)}
10463
10469
  /**
10464
10470
  * virtual-core
10465
10471
  *
@@ -10469,53 +10475,53 @@ for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},
10469
10475
  * LICENSE.md file in the root directory of this source tree.
10470
10476
  *
10471
10477
  * @license MIT
10472
- */function gR(e,t,n){var i,o,r=null!=(i=n.initialDeps)?i:[]
10478
+ */function xR(e,t,n){var i,o,r=null!=(i=n.initialDeps)?i:[]
10473
10479
  return function(){var i
10474
10480
  n.key&&null!=n.debug&&n.debug()&&(i=Date.now())
10475
10481
  var s,a=e()
10476
10482
  if(!(a.length!==r.length||a.some((function(e,t){return r[t]!==e}))))return o
10477
10483
  if(r=a,n.key&&null!=n.debug&&n.debug()&&(s=Date.now()),o=t.apply(void 0,a),n.key&&null!=n.debug&&n.debug()){var l=Math.round(100*(Date.now()-i))/100,c=Math.round(100*(Date.now()-s))/100,d=c/16,h=function(e,t){for(e=String(e);e.length<t;)e=" "+e
10478
10484
  return e}
10479
- console.info("%c⏱ "+h(c,5)+" /"+h(l,5)+" ms","\n font-size: .6rem;\n font-weight: bold;\n color: hsl("+Math.max(0,Math.min(120-120*d,120))+"deg 100% 31%);",null==n?void 0:n.key)}return null==n||null==n.onChange||n.onChange(o),o}}function vR(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?": "+t:""))
10480
- return e}var bR=function(e){return e},wR=function(e){for(var t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[],o=t;o<=n;o++)i.push(o)
10481
- return i},yR=function(e,t){var n=e.scrollElement
10485
+ console.info("%c⏱ "+h(c,5)+" /"+h(l,5)+" ms","\n font-size: .6rem;\n font-weight: bold;\n color: hsl("+Math.max(0,Math.min(120-120*d,120))+"deg 100% 31%);",null==n?void 0:n.key)}return null==n||null==n.onChange||n.onChange(o),o}}function kR(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?": "+t:""))
10486
+ return e}var CR=function(e){return e},SR=function(e){for(var t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),i=[],o=t;o<=n;o++)i.push(o)
10487
+ return i},$R=function(e,t){var n=e.scrollElement
10482
10488
  if(n){var i=function(e){var n=e.width,i=e.height
10483
10489
  t({width:Math.round(n),height:Math.round(i)})}
10484
10490
  i(n.getBoundingClientRect())
10485
10491
  var o=new ResizeObserver((function(e){var t=e[0]
10486
10492
  if(null!=t&&t.borderBoxSize){var o=t.borderBoxSize[0]
10487
10493
  if(o)return void i({width:o.inlineSize,height:o.blockSize})}i(n.getBoundingClientRect())}))
10488
- return o.observe(n,{box:"border-box"}),function(){o.unobserve(n)}}},xR=function(e,t){var n=e.scrollElement
10494
+ return o.observe(n,{box:"border-box"}),function(){o.unobserve(n)}}},MR=function(e,t){var n=e.scrollElement
10489
10495
  if(n){var i=function(){t(n[e.options.horizontal?"scrollLeft":"scrollTop"])}
10490
- return i(),n.addEventListener("scroll",i,{passive:!0}),function(){n.removeEventListener("scroll",i)}}},kR=function(e,t,n){if(null!=t&&t.borderBoxSize){var i=t.borderBoxSize[0]
10491
- if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},CR=function(e,t,n){var i,o,r=t.adjustments,s=void 0===r?0:r,a=t.behavior,l=e+s
10492
- null==(i=n.scrollElement)||null==i.scrollTo||i.scrollTo(((o={})[n.options.horizontal?"left":"top"]=l,o.behavior=a,o))},SR=function(e){var t=this
10496
+ return i(),n.addEventListener("scroll",i,{passive:!0}),function(){n.removeEventListener("scroll",i)}}},_R=function(e,t,n){if(null!=t&&t.borderBoxSize){var i=t.borderBoxSize[0]
10497
+ if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},ER=function(e,t,n){var i,o,r=t.adjustments,s=void 0===r?0:r,a=t.behavior,l=e+s
10498
+ null==(i=n.scrollElement)||null==i.scrollTo||i.scrollTo(((o={})[n.options.horizontal?"left":"top"]=l,o.behavior=a,o))},IR=function(e){var t=this
10493
10499
  this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=function(){var e=null,n=function(){return e||("undefined"!=typeof ResizeObserver?e=new ResizeObserver((function(e){e.forEach((function(e){t._measureElement(e.target,e)}))})):null)}
10494
10500
  return{disconnect:function(){var e
10495
10501
  return null==(e=n())?void 0:e.disconnect()},observe:function(e){var t
10496
10502
  return null==(t=n())?void 0:t.observe(e,{box:"border-box"})},unobserve:function(e){var t
10497
10503
  return null==(t=n())?void 0:t.unobserve(e)}}}(),this.range=null,this.setOptions=function(e){Object.entries(e).forEach((function(t){var n=t[0]
10498
- void 0===t[1]&&delete e[n]})),t.options=mR({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:bR,rangeExtractor:wR,onChange:function(){},measureElement:kR,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},e)},this.notify=function(e){null==t.options.onChange||t.options.onChange(t,e)},this.maybeNotify=gR((function(){return t.calculateRange(),[t.isScrolling,t.range?t.range.startIndex:null,t.range?t.range.endIndex:null]}),(function(e){t.notify(e)}),{key:!1,debug:function(){return t.options.debug},initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=function(){t.unsubs.filter(Boolean).forEach((function(e){return e()})),t.unsubs=[],t.scrollElement=null},this._didMount=function(){return t.measureElementCache.forEach(t.observer.observe),function(){t.observer.disconnect(),t.cleanup()}},this._willUpdate=function(){var e=t.options.getScrollElement()
10499
- t.scrollElement!==e&&(t.cleanup(),t.scrollElement=e,t._scrollToOffset(t.scrollOffset,{adjustments:void 0,behavior:void 0}),t.unsubs.push(t.options.observeElementRect(t,(function(e){t.scrollRect=e,t.maybeNotify()}))),t.unsubs.push(t.options.observeElementOffset(t,(function(e){t.scrollAdjustments=0,t.scrollOffset!==e&&(null!==t.isScrollingTimeoutId&&(clearTimeout(t.isScrollingTimeoutId),t.isScrollingTimeoutId=null),t.isScrolling=!0,t.scrollDirection=t.scrollOffset<e?"forward":"backward",t.scrollOffset=e,t.maybeNotify(),t.isScrollingTimeoutId=setTimeout((function(){t.isScrollingTimeoutId=null,t.isScrolling=!1,t.scrollDirection=null,t.maybeNotify()}),t.options.scrollingDelay))}))))},this.getSize=function(){return t.scrollRect[t.options.horizontal?"width":"height"]},this.memoOptions=gR((function(){return[t.options.count,t.options.paddingStart,t.options.scrollMargin,t.options.getItemKey]}),(function(e,n,i,o){return t.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:n,scrollMargin:i,getItemKey:o}}),{key:!1}),this.getFurthestMeasurement=function(e,n){for(var i=new Map,o=new Map,r=n-1;r>=0;r--){var s=e[r]
10504
+ void 0===t[1]&&delete e[n]})),t.options=yR({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:CR,rangeExtractor:SR,onChange:function(){},measureElement:_R,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},e)},this.notify=function(e){null==t.options.onChange||t.options.onChange(t,e)},this.maybeNotify=xR((function(){return t.calculateRange(),[t.isScrolling,t.range?t.range.startIndex:null,t.range?t.range.endIndex:null]}),(function(e){t.notify(e)}),{key:!1,debug:function(){return t.options.debug},initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=function(){t.unsubs.filter(Boolean).forEach((function(e){return e()})),t.unsubs=[],t.scrollElement=null},this._didMount=function(){return t.measureElementCache.forEach(t.observer.observe),function(){t.observer.disconnect(),t.cleanup()}},this._willUpdate=function(){var e=t.options.getScrollElement()
10505
+ t.scrollElement!==e&&(t.cleanup(),t.scrollElement=e,t._scrollToOffset(t.scrollOffset,{adjustments:void 0,behavior:void 0}),t.unsubs.push(t.options.observeElementRect(t,(function(e){t.scrollRect=e,t.maybeNotify()}))),t.unsubs.push(t.options.observeElementOffset(t,(function(e){t.scrollAdjustments=0,t.scrollOffset!==e&&(null!==t.isScrollingTimeoutId&&(clearTimeout(t.isScrollingTimeoutId),t.isScrollingTimeoutId=null),t.isScrolling=!0,t.scrollDirection=t.scrollOffset<e?"forward":"backward",t.scrollOffset=e,t.maybeNotify(),t.isScrollingTimeoutId=setTimeout((function(){t.isScrollingTimeoutId=null,t.isScrolling=!1,t.scrollDirection=null,t.maybeNotify()}),t.options.scrollingDelay))}))))},this.getSize=function(){return t.scrollRect[t.options.horizontal?"width":"height"]},this.memoOptions=xR((function(){return[t.options.count,t.options.paddingStart,t.options.scrollMargin,t.options.getItemKey]}),(function(e,n,i,o){return t.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:n,scrollMargin:i,getItemKey:o}}),{key:!1}),this.getFurthestMeasurement=function(e,n){for(var i=new Map,o=new Map,r=n-1;r>=0;r--){var s=e[r]
10500
10506
  if(!i.has(s.lane)){var a=o.get(s.lane)
10501
- if(null==a||s.end>a.end?o.set(s.lane,s):s.end<a.end&&i.set(s.lane,!0),i.size===t.options.lanes)break}}return o.size===t.options.lanes?Array.from(o.values()).sort((function(e,t){return e.end-t.end}))[0]:void 0},this.getMeasurements=gR((function(){return[t.memoOptions(),t.itemSizeCache]}),(function(e,n){var i=e.count,o=e.paddingStart,r=e.scrollMargin,s=e.getItemKey,a=t.pendingMeasuredCacheIndexes.length>0?Math.min.apply(Math,t.pendingMeasuredCacheIndexes):0
10507
+ if(null==a||s.end>a.end?o.set(s.lane,s):s.end<a.end&&i.set(s.lane,!0),i.size===t.options.lanes)break}}return o.size===t.options.lanes?Array.from(o.values()).sort((function(e,t){return e.end-t.end}))[0]:void 0},this.getMeasurements=xR((function(){return[t.memoOptions(),t.itemSizeCache]}),(function(e,n){var i=e.count,o=e.paddingStart,r=e.scrollMargin,s=e.getItemKey,a=t.pendingMeasuredCacheIndexes.length>0?Math.min.apply(Math,t.pendingMeasuredCacheIndexes):0
10502
10508
  t.pendingMeasuredCacheIndexes=[]
10503
10509
  for(var l=t.measurementsCache.slice(0,a),c=a;c<i;c++){var d=s(c),h=1===t.options.lanes?l[c-1]:t.getFurthestMeasurement(l,c),u=h?h.end:o+r,p=n.get(d),f="number"==typeof p?p:t.options.estimateSize(c),m=u+f,g=h?h.lane:c%t.options.lanes
10504
- l[c]={index:c,start:u,size:f,end:m,key:d,lane:g}}return t.measurementsCache=l,l}),{key:!1,debug:function(){return t.options.debug}}),this.calculateRange=gR((function(){return[t.getMeasurements(),t.getSize(),t.scrollOffset]}),(function(e,n,i){return t.range=e.length>0&&n>0?function(e){var t=e.measurements,n=e.outerSize,i=e.scrollOffset,o=t.length-1,r=function(e){return t[e].start},s=$R(0,o,r,i),a=s
10510
+ l[c]={index:c,start:u,size:f,end:m,key:d,lane:g}}return t.measurementsCache=l,l}),{key:!1,debug:function(){return t.options.debug}}),this.calculateRange=xR((function(){return[t.getMeasurements(),t.getSize(),t.scrollOffset]}),(function(e,n,i){return t.range=e.length>0&&n>0?function(e){var t=e.measurements,n=e.outerSize,i=e.scrollOffset,o=t.length-1,r=function(e){return t[e].start},s=AR(0,o,r,i),a=s
10505
10511
  for(;a<o&&t[a].end<i+n;)a++
10506
- return{startIndex:s,endIndex:a}}({measurements:e,outerSize:n,scrollOffset:i}):null}),{key:!1,debug:function(){return t.options.debug}}),this.getIndexes=gR((function(){return[t.options.rangeExtractor,t.calculateRange(),t.options.overscan,t.options.count]}),(function(e,t,n,i){return null===t?[]:e(mR({},t,{overscan:n,count:i}))}),{key:!1,debug:function(){return t.options.debug}}),this.indexFromElement=function(e){var n=t.options.indexAttribute,i=e.getAttribute(n)
10512
+ return{startIndex:s,endIndex:a}}({measurements:e,outerSize:n,scrollOffset:i}):null}),{key:!1,debug:function(){return t.options.debug}}),this.getIndexes=xR((function(){return[t.options.rangeExtractor,t.calculateRange(),t.options.overscan,t.options.count]}),(function(e,t,n,i){return null===t?[]:e(yR({},t,{overscan:n,count:i}))}),{key:!1,debug:function(){return t.options.debug}}),this.indexFromElement=function(e){var n=t.options.indexAttribute,i=e.getAttribute(n)
10507
10513
  return i?parseInt(i,10):(console.warn("Missing attribute name '"+n+"={index}' on measured element."),-1)},this._measureElement=function(e,n){var i=t.measurementsCache[t.indexFromElement(e)]
10508
10514
  if(i&&e.isConnected){var o=t.measureElementCache.get(i.key)
10509
10515
  o!==e&&(o&&t.observer.unobserve(o),t.observer.observe(e),t.measureElementCache.set(i.key,e))
10510
10516
  var r=t.options.measureElement(e,n,t)
10511
10517
  t.resizeItem(i,r)}else t.measureElementCache.forEach((function(n,i){n===e&&(t.observer.unobserve(e),t.measureElementCache.delete(i))}))},this.resizeItem=function(e,n){var i,o=n-(null!=(i=t.itemSizeCache.get(e.key))?i:e.size)
10512
- 0!==o&&(e.start<t.scrollOffset&&t._scrollToOffset(t.scrollOffset,{adjustments:t.scrollAdjustments+=o,behavior:void 0}),t.pendingMeasuredCacheIndexes.push(e.index),t.itemSizeCache=new Map(t.itemSizeCache.set(e.key,n)),t.notify(!1))},this.measureElement=function(e){e&&t._measureElement(e,void 0)},this.getVirtualItems=gR((function(){return[t.getIndexes(),t.getMeasurements()]}),(function(e,t){for(var n=[],i=0,o=e.length;i<o;i++){var r=t[e[i]]
10518
+ 0!==o&&(e.start<t.scrollOffset&&t._scrollToOffset(t.scrollOffset,{adjustments:t.scrollAdjustments+=o,behavior:void 0}),t.pendingMeasuredCacheIndexes.push(e.index),t.itemSizeCache=new Map(t.itemSizeCache.set(e.key,n)),t.notify(!1))},this.measureElement=function(e){e&&t._measureElement(e,void 0)},this.getVirtualItems=xR((function(){return[t.getIndexes(),t.getMeasurements()]}),(function(e,t){for(var n=[],i=0,o=e.length;i<o;i++){var r=t[e[i]]
10513
10519
  n.push(r)}return n}),{key:!1,debug:function(){return t.options.debug}}),this.getVirtualItemForOffset=function(e){var n=t.getMeasurements()
10514
- return vR(n[$R(0,n.length-1,(function(e){return vR(n[e]).start}),e)])},this.getOffsetForAlignment=function(e,n){var i=t.getSize()
10520
+ return kR(n[AR(0,n.length-1,(function(e){return kR(n[e]).start}),e)])},this.getOffsetForAlignment=function(e,n){var i=t.getSize()
10515
10521
  "auto"===n&&(n=e<=t.scrollOffset?"start":e>=t.scrollOffset+i?"end":"start"),"start"===n||("end"===n?e-=i:"center"===n&&(e-=i/2))
10516
10522
  var o=t.options.horizontal?"scrollWidth":"scrollHeight",r=(t.scrollElement?"document"in t.scrollElement?t.scrollElement.document.documentElement[o]:t.scrollElement[o]:0)-t.getSize()
10517
10523
  return Math.max(Math.min(r,e),0)},this.getOffsetForIndex=function(e,n){void 0===n&&(n="auto"),e=Math.max(0,Math.min(e,t.options.count-1))
10518
- var i=vR(t.getMeasurements()[e])
10524
+ var i=kR(t.getMeasurements()[e])
10519
10525
  if("auto"===n)if(i.end>=t.scrollOffset+t.getSize()-t.options.scrollPaddingEnd)n="end"
10520
10526
  else{if(!(i.start<=t.scrollOffset+t.options.scrollPaddingStart))return[t.scrollOffset,n]
10521
10527
  n="start"}var o="end"===n?i.end+t.options.scrollPaddingEnd:i.start-t.options.scrollPaddingStart
@@ -10528,7 +10534,7 @@ if(t.scrollToIndexTimeoutId=null,t.measureElementCache.has(t.options.getItemKey(
10528
10534
  n=o,i=t.scrollOffset,Math.abs(n-i)<1||t.scrollToIndex(e,{align:c,behavior:s})}else t.scrollToIndex(e,{align:c,behavior:s})})))},this.scrollBy=function(e,n){var i=(void 0===n?{}:n).behavior
10529
10535
  t.cancelScrollToIndex(),"smooth"===i&&t.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),t._scrollToOffset(t.scrollOffset+e,{adjustments:void 0,behavior:i})},this.getTotalSize=function(){var e
10530
10536
  return((null==(e=t.getMeasurements()[t.options.count-1])?void 0:e.end)||t.options.paddingStart)-t.options.scrollMargin+t.options.paddingEnd},this._scrollToOffset=function(e,n){var i=n.adjustments,o=n.behavior
10531
- t.options.scrollToFn(e,{behavior:o,adjustments:i},t)},this.measure=function(){t.itemSizeCache=new Map,t.notify(!1)},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((function(e){t.itemSizeCache.set(e.key,e.size)})),this.maybeNotify()},$R=function(e,t,n,i){for(;e<=t;){var o=(e+t)/2|0,r=n(o)
10537
+ t.options.scrollToFn(e,{behavior:o,adjustments:i},t)},this.measure=function(){t.itemSizeCache=new Map,t.notify(!1)},this.setOptions(e),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((function(e){t.itemSizeCache.set(e.key,e.size)})),this.maybeNotify()},AR=function(e,t,n,i){for(;e<=t;){var o=(e+t)/2|0,r=n(o)
10532
10538
  if(r<i)e=o+1
10533
10539
  else{if(!(r>i))return o
10534
10540
  t=o-1}}return e>0?e-1:0}
@@ -10542,23 +10548,23 @@ t=o-1}}return e>0?e-1:0}
10542
10548
  * LICENSE.md file in the root directory of this source tree.
10543
10549
  *
10544
10550
  * @license MIT
10545
- */class MR{constructor(e,t){this.visibleItems=[],this.scrollHeight=0,this.headerContainerMarginRight=0,this.rowContainerYOffset=0,this.table=e,this.tanStackTable=t,this.viewportResizeObserver=new ResizeObserver((e=>{const t=e[0]?.borderBoxSize[0]
10551
+ */class OR{constructor(e,t){this.visibleItems=[],this.scrollHeight=0,this.headerContainerMarginRight=0,this.rowContainerYOffset=0,this.table=e,this.tanStackTable=t,this.viewportResizeObserver=new ResizeObserver((e=>{const t=e[0]?.borderBoxSize[0]
10546
10552
  if(t){const e=t.inlineSize
10547
10553
  this.headerContainerMarginRight=e-this.table.viewport.clientWidth}}))}connect(){this.viewportResizeObserver.observe(this.table.viewport),this.updateVirtualizer(),this.table.viewport.scrollTo({top:this.virtualizer.scrollOffset})}disconnect(){this.viewportResizeObserver.disconnect()}dataChanged(){this.table.$fastController.isConnected&&this.updateVirtualizer()}updateVirtualizer(){const e=this.createVirtualizerOptions()
10548
- this.virtualizer?this.virtualizer.setOptions(e):this.virtualizer=new SR(e),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const e=parseFloat(Qa.getValueFor(this.table))+2*parseFloat(rl.getValueFor(this.table))
10549
- return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:t=>e,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:CR,observeElementOffset:xR,observeElementRect:yR,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){this.notifyFocusedCellRecycling()
10554
+ this.virtualizer?this.virtualizer.setOptions(e):this.virtualizer=new IR(e),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const e=parseFloat(Qa.getValueFor(this.table))+2*parseFloat(rl.getValueFor(this.table))
10555
+ return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:t=>e,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:ER,observeElementOffset:MR,observeElementRect:$R,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){this.notifyFocusedCellRecycling()
10550
10556
  const e=this.virtualizer
10551
10557
  this.visibleItems=e.getVirtualItems(),this.scrollHeight=e.getTotalSize()
10552
10558
  let t=0
10553
10559
  if(this.visibleItems.length>0){t=this.visibleItems[0].start}this.rowContainerYOffset=t}notifyFocusedCellRecycling(){let e=this.table.shadowRoot.activeElement
10554
- for(;null!==e&&!(e instanceof VT)&&e.shadowRoot;)e=e.shadowRoot.activeElement
10555
- if(e instanceof VT&&e.focusedRecycleCallback(),void 0!==this.table.openActionMenuRecordId){const e=this.table.rowElements.find((e=>e.recordId===this.table.openActionMenuRecordId))
10556
- e?.closeOpenActionMenus()}}}function _R(e){switch(e){case PT:return IR
10557
- case zT:return ER
10558
- default:return IR}}function ER(e,t,n){const i=e.getValue(n),o=t.getValue(n)
10559
- return"string"==typeof i&&"string"==typeof o?i.localeCompare(o):i===o?0:void 0===i||null===i&&void 0!==o?-1:1}function IR(e,t,n){const i=e.getValue(n),o=t.getValue(n)
10560
- return Object.is(i,o)?0:void 0===i?-1:void 0===o?1:null===i?-1:null===o?1:Number.isNaN(i)?-1:Number.isNaN(o)?1:0===i&&0===o?Object.is(i,-0)?-1:1:i>o?1:-1}e([g],MR.prototype,"visibleItems",void 0),e([g],MR.prototype,"scrollHeight",void 0),e([g],MR.prototype,"headerContainerMarginRight",void 0),e([g],MR.prototype,"rowContainerYOffset",void 0)
10561
- class AR{constructor(e){this.table=e,this.isColumnBeingSized=!1,this.visibleColumns=[],this.currentTotalDelta=0,this.dragStart=0,this.initialColumnWidths=[],this.onDividerMouseMove=e=>{const t=e
10560
+ for(;null!==e&&!(e instanceof UT)&&e.shadowRoot;)e=e.shadowRoot.activeElement
10561
+ if(e instanceof UT&&e.focusedRecycleCallback(),void 0!==this.table.openActionMenuRecordId){const e=this.table.rowElements.find((e=>e.recordId===this.table.openActionMenuRecordId))
10562
+ e?.closeOpenActionMenus()}}}function TR(e){switch(e){case HT:return DR
10563
+ case BT:return RR
10564
+ default:return DR}}function RR(e,t,n){const i=e.getValue(n),o=t.getValue(n)
10565
+ return"string"==typeof i&&"string"==typeof o?i.localeCompare(o):i===o?0:void 0===i||null===i&&void 0!==o?-1:1}function DR(e,t,n){const i=e.getValue(n),o=t.getValue(n)
10566
+ return Object.is(i,o)?0:void 0===i?-1:void 0===o?1:null===i?-1:null===o?1:Number.isNaN(i)?-1:Number.isNaN(o)?1:0===i&&0===o?Object.is(i,-0)?-1:1:i>o?1:-1}e([g],OR.prototype,"visibleItems",void 0),e([g],OR.prototype,"scrollHeight",void 0),e([g],OR.prototype,"headerContainerMarginRight",void 0),e([g],OR.prototype,"rowContainerYOffset",void 0)
10567
+ class NR{constructor(e){this.table=e,this.isColumnBeingSized=!1,this.visibleColumns=[],this.currentTotalDelta=0,this.dragStart=0,this.initialColumnWidths=[],this.onDividerMouseMove=e=>{const t=e
10562
10568
  for(let e=0;e<this.visibleColumns.length;e++)this.visibleColumns[e].columnInternals.currentPixelWidth=this.initialColumnWidths[e]?.initialPixelWidth
10563
10569
  this.currentTotalDelta=this.getAllowedSizeDelta(t.clientX-this.dragStart),this.performCascadeSizeLeft(this.leftColumnIndex,this.currentTotalDelta),this.performCascadeSizeRight(this.rightColumnIndex,this.currentTotalDelta)
10564
10570
  const n=this.getTotalColumnFixedWidth()-this.initialColumnTotalWidth
@@ -10582,10 +10588,10 @@ for(const e of this.visibleColumns)this.initialColumnWidths.push({initalColumnFr
10582
10588
  const e=this.gridSizedColumns.reduce(((e,t)=>e+t.columnInternals.currentPixelWidth),0),t=e/this.gridSizedColumns.length
10583
10589
  let n=0
10584
10590
  for(let e=0;e<this.visibleColumns.length&&n<this.gridSizedColumns.length;e++){const i=this.visibleColumns[e]
10585
- i===this.gridSizedColumns[n]&&(n+=1,i.columnInternals.currentFractionalWidth=i.columnInternals.currentPixelWidth/t,i.columnInternals.currentPixelWidth=void 0)}}getVisibleColumns(){return this.table.columns.filter((e=>!e.columnHidden))}getLeftColumnIndexFromDivider(e){return Math.floor(e/2)}}e([g],AR.prototype,"isColumnBeingSized",void 0),e([g],AR.prototype,"activeColumnIndex",void 0)
10586
- class OR{constructor(e){this.trackedItems={},this.trackedItems=e.reduce(((e,t)=>({...e,[t]:!1})),this.trackedItems)}getTrackedItems(){return{...this.trackedItems}}isTracked(e){return this.trackedItems[e]}track(e){this.trackedItems[e]=!0}untrack(e){this.trackedItems[e]=!1}trackAll(){this.setAllKeys(!0)}untrackAll(){this.setAllKeys(!1)}allTracked(){return Object.values(this.trackedItems).every((e=>e))}anyTracked(){return Object.values(this.trackedItems).some((e=>e))}noneTracked(){return Object.values(this.trackedItems).every((e=>!e))}setAllKeys(e){this.trackedItems=Object.keys(this.trackedItems).reduce(((t,n)=>({...t,[n]:e})),this.trackedItems)}}class TR extends OR{}const RR=(e,...t)=>{for(const n of t)if(e===n)return!0
10587
- return!1},DR=["rowIds","rowParentIds","groupRows","columnIds","columnSort","columnWidths","columnDefinition","actionMenuSlots","selectionMode"]
10588
- class NR extends TR{constructor(e){super(DR),this.table=e,this.updateQueued=!1}get updateRowIds(){return this.isTracked("rowIds")}get updateRowParentIds(){return this.isTracked("rowParentIds")}get updateGroupRows(){return this.isTracked("groupRows")}get updateColumnIds(){return this.isTracked("columnIds")}get updateColumnSort(){return this.isTracked("columnSort")}get updateColumnWidths(){return this.isTracked("columnWidths")}get updateColumnDefinition(){return this.isTracked("columnDefinition")}get updateActionMenuSlots(){return this.isTracked("actionMenuSlots")}get updateSelectionMode(){return this.isTracked("selectionMode")}get requiresTanStackUpdate(){return this.isTracked("rowIds")||this.isTracked("rowParentIds")||this.isTracked("columnSort")||this.isTracked("columnDefinition")||this.isTracked("groupRows")||this.isTracked("selectionMode")}get requiresTanStackDataReset(){return this.isTracked("rowIds")||this.isTracked("columnDefinition")||this.isTracked("rowParentIds")}trackAllStateChanged(){this.trackAll(),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(e){RR(e,"columnId")?this.track("columnIds"):qT(e,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):RR(e,"sortingDisabled")||qT(e,"currentSortDirection","currentSortIndex")?this.track("columnSort"):RR(e,"columnHidden")||qT(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth")?this.track("columnWidths"):RR(e,"actionMenuSlot")?this.track("actionMenuSlots"):qT(e,"groupIndex","groupingDisabled")&&this.track("groupRows"),this.queueUpdate()}trackColumnInstancesChanged(){this.track("columnIds"),this.track("columnDefinition"),this.track("columnSort"),this.track("columnWidths"),this.track("actionMenuSlots"),this.track("groupRows"),this.queueUpdate()}trackIdFieldNameChanged(){this.track("rowIds"),this.queueUpdate()}trackParentIdFieldNameChanged(){this.track("rowParentIds"),this.queueUpdate()}trackSelectionModeChanged(){this.track("selectionMode"),this.queueUpdate()}queueUpdate(){this.table.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.table.update(),this.untrackAll(),this.updateQueued=!1}))))}}class PR{constructor(e){this.tanStackTable=e}reset(){}toggleIsRowSelected(e,t){e.isGroupRow&&e.selectionState===DT?this.deselectAllLeafRows(e.id):this.tanStackTable.getRow(e.id).toggleSelected(t,{selectChildren:e.isGroupRow})}selectSingleRow(e){if(e.isGroupRow)throw new Error("function not intended to select grouped rows")
10591
+ i===this.gridSizedColumns[n]&&(n+=1,i.columnInternals.currentFractionalWidth=i.columnInternals.currentPixelWidth/t,i.columnInternals.currentPixelWidth=void 0)}}getVisibleColumns(){return this.table.columns.filter((e=>!e.columnHidden))}getLeftColumnIndexFromDivider(e){return Math.floor(e/2)}}e([g],NR.prototype,"isColumnBeingSized",void 0),e([g],NR.prototype,"activeColumnIndex",void 0)
10592
+ const PR=(e,...t)=>{for(const n of t)if(e===n)return!0
10593
+ return!1},zR=["rowIds","rowParentIds","groupRows","columnIds","columnSort","columnWidths","columnDefinition","actionMenuSlots","selectionMode"]
10594
+ class LR extends IE{constructor(e){super(zR),this.table=e,this.updateQueued=!1}get updateRowIds(){return this.isTracked("rowIds")}get updateRowParentIds(){return this.isTracked("rowParentIds")}get updateGroupRows(){return this.isTracked("groupRows")}get updateColumnIds(){return this.isTracked("columnIds")}get updateColumnSort(){return this.isTracked("columnSort")}get updateColumnWidths(){return this.isTracked("columnWidths")}get updateColumnDefinition(){return this.isTracked("columnDefinition")}get updateActionMenuSlots(){return this.isTracked("actionMenuSlots")}get updateSelectionMode(){return this.isTracked("selectionMode")}get requiresTanStackUpdate(){return this.isTracked("rowIds")||this.isTracked("rowParentIds")||this.isTracked("columnSort")||this.isTracked("columnDefinition")||this.isTracked("groupRows")||this.isTracked("selectionMode")}get requiresTanStackDataReset(){return this.isTracked("rowIds")||this.isTracked("columnDefinition")||this.isTracked("rowParentIds")}trackAllStateChanged(){this.trackAll(),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(e){PR(e,"columnId")?this.track("columnIds"):GT(e,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):PR(e,"sortingDisabled")||GT(e,"currentSortDirection","currentSortIndex")?this.track("columnSort"):PR(e,"columnHidden")||GT(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth")?this.track("columnWidths"):PR(e,"actionMenuSlot")?this.track("actionMenuSlots"):GT(e,"groupIndex","groupingDisabled")&&this.track("groupRows"),this.queueUpdate()}trackColumnInstancesChanged(){this.track("columnIds"),this.track("columnDefinition"),this.track("columnSort"),this.track("columnWidths"),this.track("actionMenuSlots"),this.track("groupRows"),this.queueUpdate()}trackIdFieldNameChanged(){this.track("rowIds"),this.queueUpdate()}trackParentIdFieldNameChanged(){this.track("rowParentIds"),this.queueUpdate()}trackSelectionModeChanged(){this.track("selectionMode"),this.queueUpdate()}queueUpdate(){this.table.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.table.update(),this.untrackAll(),this.updateQueued=!1}))))}}class FR{constructor(e){this.tanStackTable=e}reset(){}toggleIsRowSelected(e,t){e.isGroupRow&&e.selectionState===FT?this.deselectAllLeafRows(e.id):this.tanStackTable.getRow(e.id).toggleSelected(t,{selectChildren:e.isGroupRow})}selectSingleRow(e){if(e.isGroupRow)throw new Error("function not intended to select grouped rows")
10589
10595
  const t=this.tanStackTable.getState().rowSelection,n=[]
10590
10596
  if(Object.entries(t).forEach((([e,t])=>{t&&n.push(e)})),1===n.length&&n[0]===e.id)return!1
10591
10597
  const i={}
@@ -10595,7 +10601,7 @@ this.tanStackTable.setRowSelection(i)}getAllLeafRowIds(e){const t=this.tanStackT
10595
10601
  return t?.getIsGrouped()?t.getLeafRows().filter((e=>!e.getIsGrouped())).map((e=>e.id)):[]}getAllOrderedRows(){const e=this.tanStackTable.getPreExpandedRowModel().rows
10596
10602
  return this.getOrderedRows(e)}getOrderedRows(e){const t=[]
10597
10603
  for(const n of e)t.push(n),n.subRows?.length&&t.push(...this.getOrderedRows(n.subRows))
10598
- return t}}class zR extends PR{handleRowSelectionToggle(e,t,n){return!1}handleRowClick(e,t,n){return!1}handleActionMenuOpening(e){return!1}}class LR extends PR{handleRowSelectionToggle(e,t,n){return n&&this.tryUpdateRangeSelection(e.id)||(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(e,t)),!0}handleRowClick(e,t,n){return n?(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(e),!0):!(!t||!this.tryUpdateRangeSelection(e.id))||(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.selectSingleRow(e))}handleActionMenuOpening(e){return e.selectionState!==DT&&this.selectSingleRow(e)}reset(){this.shiftSelectStartRowId=void 0,this.previousShiftSelectRowEndId=void 0}tryUpdateRangeSelection(e){if(void 0===this.shiftSelectStartRowId)return!1
10604
+ return t}}class VR extends FR{handleRowSelectionToggle(e,t,n){return!1}handleRowClick(e,t,n){return!1}handleActionMenuOpening(e){return!1}}class HR extends FR{handleRowSelectionToggle(e,t,n){return n&&this.tryUpdateRangeSelection(e.id)||(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(e,t)),!0}handleRowClick(e,t,n){return n?(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.toggleIsRowSelected(e),!0):!(!t||!this.tryUpdateRangeSelection(e.id))||(this.shiftSelectStartRowId=e.id,this.previousShiftSelectRowEndId=void 0,this.selectSingleRow(e))}handleActionMenuOpening(e){return e.selectionState!==FT&&this.selectSingleRow(e)}reset(){this.shiftSelectStartRowId=void 0,this.previousShiftSelectRowEndId=void 0}tryUpdateRangeSelection(e){if(void 0===this.shiftSelectStartRowId)return!1
10599
10605
  const t=this.getAllOrderedRows(),n=this.getRowIndexForId(this.shiftSelectStartRowId,t)
10600
10606
  if(-1===n)return!1
10601
10607
  const i=this.tanStackTable.getState().rowSelection
@@ -10605,20 +10611,20 @@ this.updateSelectionStateForRange(e,n,o,i,!0)}updateSelectionStateForRange(e,t,n
10605
10611
  const r=Math.min(t,n),s=Math.max(t,n)
10606
10612
  for(let t=r;t<=s;t++){const n=i[t]
10607
10613
  n.getIsGrouped()||this.updateSelectionStateForRow(e,n.id,o)}const a=i[n]
10608
- a.getIsGrouped()&&this.getAllLeafRowIds(a.id).forEach((t=>this.updateSelectionStateForRow(e,t,o)))}updateSelectionStateForRow(e,t,n){n?e[t]=!0:delete e[t]}getRowIndexForId(e,t){return e?t.findIndex((t=>t.id===e)):-1}}class FR extends PR{handleRowSelectionToggle(e,t,n){return this.toggleIsRowSelected(e,t),!0}handleRowClick(e,t,n){return this.selectSingleRow(e)}handleActionMenuOpening(e){return this.handleRowClick(e,!1,!1)}}class VR{constructor(e,t){this.tanStackTable=e,this.selectionManager=this.createSelectionManager(t)}handleRowSelectionToggle(e,t,n){return!!e&&this.selectionManager.handleRowSelectionToggle(e,t,n)}handleRowClick(e,t,n){return!!e&&this.selectionManager.handleRowClick(e,t,n)}handleActionMenuOpening(e){return!!e&&this.selectionManager.handleActionMenuOpening(e)}handleSelectionModeChanged(e){this.selectionManager=this.createSelectionManager(e)}handleSelectionReset(){this.selectionManager.reset()}getCurrentSelectedRecordIds(){const e=this.tanStackTable.options.state.rowSelection
10614
+ a.getIsGrouped()&&this.getAllLeafRowIds(a.id).forEach((t=>this.updateSelectionStateForRow(e,t,o)))}updateSelectionStateForRow(e,t,n){n?e[t]=!0:delete e[t]}getRowIndexForId(e,t){return e?t.findIndex((t=>t.id===e)):-1}}class BR extends FR{handleRowSelectionToggle(e,t,n){return this.toggleIsRowSelected(e,t),!0}handleRowClick(e,t,n){return this.selectSingleRow(e)}handleActionMenuOpening(e){return this.handleRowClick(e,!1,!1)}}class qR{constructor(e,t){this.tanStackTable=e,this.selectionManager=this.createSelectionManager(t)}handleRowSelectionToggle(e,t,n){return!!e&&this.selectionManager.handleRowSelectionToggle(e,t,n)}handleRowClick(e,t,n){return!!e&&this.selectionManager.handleRowClick(e,t,n)}handleActionMenuOpening(e){return!!e&&this.selectionManager.handleActionMenuOpening(e)}handleSelectionModeChanged(e){this.selectionManager=this.createSelectionManager(e)}handleSelectionReset(){this.selectionManager.reset()}getCurrentSelectedRecordIds(){const e=this.tanStackTable.options.state.rowSelection
10609
10615
  if(!e)return[]
10610
10616
  const t=[]
10611
- return Object.entries(e).forEach((([e,n])=>{n&&t.push(e)})),t}createSelectionManager(e){switch(e){case TT.multiple:return new LR(this.tanStackTable)
10612
- case TT.single:return new FR(this.tanStackTable)
10613
- case TT.none:return new zR(this.tanStackTable)
10614
- default:throw new Error("unknown selection mode found")}}}function HR(e,t){const n=t,i=[],o={},r=new Set
10617
+ return Object.entries(e).forEach((([e,n])=>{n&&t.push(e)})),t}createSelectionManager(e){switch(e){case zT.multiple:return new HR(this.tanStackTable)
10618
+ case zT.single:return new BR(this.tanStackTable)
10619
+ case zT.none:return new VR(this.tanStackTable)
10620
+ default:throw new Error("unknown selection mode found")}}}function jR(e,t){const n=t,i=[],o={},r=new Set
10615
10621
  for(let t=0;t<e.length;t++){const s=e[t],a=s[n.id],l=s[n.parentId]
10616
10622
  Object.prototype.hasOwnProperty.call(o,a)||(o[a]={subRows:[],clientRecord:void 0,originalIndex:void 0}),r&&r.delete(a),o[a].clientRecord=s
10617
10623
  const c=o[a]
10618
10624
  c.originalIndex=t,null==l?i.push(c):(Object.prototype.hasOwnProperty.call(o,l)||(o[l]={subRows:[],clientRecord:void 0,originalIndex:void 0},r&&r.add(l)),o[l].subRows.push(c))}if(r?.size){const e=Array.from(r.values()).join(",")
10619
- throw new Error(`The items array contains orphans that point to the following parentIds: [${e}]. These parentIds do not exist in the items array.`)}if(BR(i)<Object.keys(o).length)throw new Error("The items array contains nodes with a circular parent/child relationship.")
10620
- return i}function BR(e){return e.reduce(((e,t)=>e+1+(t.subRows&&BR(t.subRows))),0)}class qR{constructor(e,t,n){if(this.isDataFlat=!1,"string"==typeof t&&"string"==typeof n)try{this._hierarchicalData=HR(e,{id:t,parentId:n}),this.isDataFlat=!1,this._parentIdConfigurationValid=!0}catch{this.isDataFlat=!0,this._hierarchicalData=e.map(((e,t)=>({clientRecord:{...e},originalIndex:t}))),this._parentIdConfigurationValid=!1}else this.isDataFlat=!0,this._hierarchicalData=e.map(((e,t)=>({clientRecord:{...e},originalIndex:t}))),this._parentIdConfigurationValid=!0}get hierarchicalData(){return this._hierarchicalData}get parentIdConfigurationValid(){return this._parentIdConfigurationValid}getAllRecords(e=!1){const t=[]
10621
- return this.getAllNodes(this._hierarchicalData,t),this.isDataFlat||!e?t.map((e=>e.clientRecord)):t.sort(((e,t)=>e.originalIndex-t.originalIndex)).map((e=>e.clientRecord))}getAllNodes(e,t){for(const n of e)t.push(n),n.subRows&&this.getAllNodes(n.subRows,t)}}class jR{constructor(e){this.tanStackTable=e,this.isInDefaultState=!0,this.collapsedRows=new Set}isRowExpanded(e){return!!this.isRowExpandable(e)&&(this.isInDefaultState||!this.collapsedRows.has(e.id))}toggleRowExpansion(e){if(!this.isRowExpandable(e))return
10625
+ throw new Error(`The items array contains orphans that point to the following parentIds: [${e}]. These parentIds do not exist in the items array.`)}if(UR(i)<Object.keys(o).length)throw new Error("The items array contains nodes with a circular parent/child relationship.")
10626
+ return i}function UR(e){return e.reduce(((e,t)=>e+1+(t.subRows&&UR(t.subRows))),0)}class WR{constructor(e,t,n){if(this.isDataFlat=!1,"string"==typeof t&&"string"==typeof n)try{this._hierarchicalData=jR(e,{id:t,parentId:n}),this.isDataFlat=!1,this._parentIdConfigurationValid=!0}catch{this.isDataFlat=!0,this._hierarchicalData=e.map(((e,t)=>({clientRecord:{...e},originalIndex:t}))),this._parentIdConfigurationValid=!1}else this.isDataFlat=!0,this._hierarchicalData=e.map(((e,t)=>({clientRecord:{...e},originalIndex:t}))),this._parentIdConfigurationValid=!0}get hierarchicalData(){return this._hierarchicalData}get parentIdConfigurationValid(){return this._parentIdConfigurationValid}getAllRecords(e=!1){const t=[]
10627
+ return this.getAllNodes(this._hierarchicalData,t),this.isDataFlat||!e?t.map((e=>e.clientRecord)):t.sort(((e,t)=>e.originalIndex-t.originalIndex)).map((e=>e.clientRecord))}getAllNodes(e,t){for(const n of e)t.push(n),n.subRows&&this.getAllNodes(n.subRows,t)}}class ZR{constructor(e){this.tanStackTable=e,this.isInDefaultState=!0,this.collapsedRows=new Set}isRowExpanded(e){return!!this.isRowExpandable(e)&&(this.isInDefaultState||!this.collapsedRows.has(e.id))}toggleRowExpansion(e){if(!this.isRowExpandable(e))return
10622
10628
  const t=this.isRowExpanded(e)
10623
10629
  this.isInDefaultState=!1,t?this.collapsedRows.add(e.id):this.collapsedRows.delete(e.id),e.toggleExpanded()}collapseAll(){this.reset(),this.isInDefaultState=!1
10624
10630
  const e=this.tanStackTable.getRowModel().flatRows
@@ -10626,15 +10632,15 @@ for(const t of e)this.isRowExpandable(t)&&this.collapsedRows.add(t.id)
10626
10632
  this.tanStackTable.toggleAllRowsExpanded(!1)}reset(){this.collapsedRows.clear(),this.isInDefaultState=!0}processDataUpdate(e){if(this.isInDefaultState)return
10627
10633
  const t=new Set
10628
10634
  for(const n of e){const e=n.id
10629
- this.collapsedRows.has(e)&&t.add(e)}this.collapsedRows=t}isRowExpandable(e){return e.getIsGrouped()||e.subRows.length>0}}class UR extends Lt{constructor(){super(),this.selectionMode=TT.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.actionMenuSlots=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=RT,this.showCollapseAll=!1,this.visibleColumns=[],this.tableScrollableMinWidth=0,this.documentShiftKeyDown=!1,this.tableValidator=new UT,this.tableUpdateTracker=new NR(this),this.columnNotifiers=[],this.isInitialized=!1,this.ignoreSelectionChangeEvents=!1,this.onViewPortScroll=e=>{this.scrollX=e.target.scrollLeft},this.onKeyDown=e=>{e.key===ua&&(this.documentShiftKeyDown=!0)},this.onKeyUp=e=>{e.key===ua&&(this.documentShiftKeyDown=!1)},this.getIsRowExpanded=e=>this.expansionManager.isRowExpanded(e),this.handleRowSelectionChange=e=>{const t=e instanceof Function?e(this.table.getState().rowSelection):e
10635
+ this.collapsedRows.has(e)&&t.add(e)}this.collapsedRows=t}isRowExpandable(e){return e.getIsGrouped()||e.subRows.length>0}}class GR extends Lt{constructor(){super(),this.selectionMode=zT.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.actionMenuSlots=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=LT,this.showCollapseAll=!1,this.visibleColumns=[],this.tableScrollableMinWidth=0,this.documentShiftKeyDown=!1,this.tableValidator=new JT,this.tableUpdateTracker=new LR(this),this.columnNotifiers=[],this.isInitialized=!1,this.ignoreSelectionChangeEvents=!1,this.onViewPortScroll=e=>{this.scrollX=e.target.scrollLeft},this.onKeyDown=e=>{e.key===ua&&(this.documentShiftKeyDown=!0)},this.onKeyUp=e=>{e.key===ua&&(this.documentShiftKeyDown=!1)},this.getIsRowExpanded=e=>this.expansionManager.isRowExpanded(e),this.handleRowSelectionChange=e=>{const t=e instanceof Function?e(this.table.getState().rowSelection):e
10630
10636
  this.updateTableOptions({state:{rowSelection:t}})},this.handleExpandedChange=e=>{const t=e instanceof Function?e(this.table.getState().expanded):e
10631
- this.updateTableOptions({state:{expanded:t}})},this.options={data:[],onStateChange:e=>{},onRowSelectionChange:this.handleRowSelectionChange,onExpandedChange:this.handleExpandedChange,getCoreRowModel:e=>BO((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},i=function(t,o,r){void 0===o&&(o=0)
10637
+ this.updateTableOptions({state:{expanded:t}})},this.options={data:[],onStateChange:e=>{},onRowSelectionChange:this.handleRowSelectionChange,onExpandedChange:this.handleExpandedChange,getCoreRowModel:e=>ZO((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},i=function(t,o,r){void 0===o&&(o=0)
10632
10638
  const s=[]
10633
- for(let l=0;l<t.length;l++){const c=IT(e,e._getRowId(t[l],l,r),t[l],l,o,void 0,null==r?void 0:r.id)
10639
+ for(let l=0;l<t.length;l++){const c=DT(e,e._getRowId(t[l],l,r),t[l],l,o,void 0,null==r?void 0:r.id)
10634
10640
  var a
10635
10641
  n.flatRows.push(c),n.rowsById[c.id]=c,s.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[l],l),null!=(a=c.originalSubRows)&&a.length&&(c.subRows=i(c.originalSubRows,o+1,c)))}return s}
10636
10642
  return n.rows=i(t),n}),{key:!1,debug:()=>{var t
10637
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>BO((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n
10643
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>ZO((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n
10638
10644
  const i=e.getState().sorting,o=[],r=i.filter((t=>{var n
10639
10645
  return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),s={}
10640
10646
  r.forEach((t=>{const n=e.getColumn(t.id)
@@ -10646,20 +10652,20 @@ let c=0
10646
10652
  if(a.sortUndefined){const n=void 0===e.getValue(o.id),i=void 0===t.getValue(o.id);(n||i)&&(c=n&&i?0:n?a.sortUndefined:-a.sortUndefined)}if(0===c&&(c=a.sortingFn(e,t,o.id)),0!==c)return l&&(c*=-1),a.invertSorting&&(c*=-1),c}return e.index-t.index})),t.forEach((e=>{var t
10647
10653
  o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))})),t}
10648
10654
  return{rows:a(n.rows),flatRows:o,rowsById:n.rowsById}}),{key:!1,debug:()=>{var t
10649
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getGroupedRowModel:AT(),getExpandedRowModel:e=>BO((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:n?function(e){const t=[],n=e=>{var i
10655
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getGroupedRowModel:NT(),getExpandedRowModel:e=>ZO((()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows]),((e,t,n)=>!t.rows.length||!0!==e&&!Object.keys(null!=e?e:{}).length?t:n?function(e){const t=[],n=e=>{var i
10650
10656
  t.push(e),null!=(i=e.subRows)&&i.length&&e.getIsExpanded()&&e.subRows.forEach(n)}
10651
10657
  return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}(t):t),{key:!1,debug:()=>{var t
10652
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsRowExpanded:this.getIsRowExpanded,getSubRows:e=>e.subRows,columns:[],state:{rowSelection:{},grouping:[],expanded:!0},enableRowSelection:e=>!e.getIsGrouped(),enableMultiRowSelection:!1,enableSubRowSelection:!1,enableSorting:!0,enableGrouping:!0,renderFallbackValue:null,autoResetAll:!1},this.table=ET(this.options),this.virtualizer=new MR(this,this.table),this.layoutManager=new AR(this),this.layoutManagerNotifier=m.getNotifier(this.layoutManager),this.layoutManagerNotifier.subscribe(this,"isColumnBeingSized"),this.selectionManager=new VR(this.table,this.selectionMode),this.expansionManager=new jR(this.table)}get validity(){return this.tableValidator.getValidity()}get showRowOperationColumn(){return this.selectionMode===TT.multiple||this.showCollapseAll}async setData(e){await this.processPendingUpdates()
10658
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsRowExpanded:this.getIsRowExpanded,getSubRows:e=>e.subRows,columns:[],state:{rowSelection:{},grouping:[],expanded:!0},enableRowSelection:e=>!e.getIsGrouped(),enableMultiRowSelection:!1,enableSubRowSelection:!1,enableSorting:!0,enableGrouping:!0,renderFallbackValue:null,autoResetAll:!1},this.table=RT(this.options),this.virtualizer=new OR(this,this.table),this.layoutManager=new NR(this),this.layoutManagerNotifier=m.getNotifier(this.layoutManager),this.layoutManagerNotifier.subscribe(this,"isColumnBeingSized"),this.selectionManager=new qR(this.table,this.selectionMode),this.expansionManager=new ZR(this.table)}get validity(){return this.tableValidator.getValidity()}get showRowOperationColumn(){return this.selectionMode===zT.multiple||this.showCollapseAll}async setData(e){await this.processPendingUpdates()
10653
10659
  const t=this.calculateTanStackData(e)
10654
- this.updateTableOptions(t)}async getSelectedRecordIds(){return await this.processPendingUpdates(),this.selectionManager.getCurrentSelectedRecordIds()}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==TT.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(e)}})}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connect(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0}),document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp)}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnect(),this.viewport.removeEventListener("scroll",this.onViewPortScroll),document.removeEventListener("keydown",this.onKeyDown),document.removeEventListener("keyup",this.onKeyUp)}checkValidity(){return this.tableValidator.isValid()}handleChange(e,t){(e instanceof jT||e instanceof BT)&&"string"==typeof t?"validConfiguration"===t?this.tableValidator.validateColumnConfigurations(this.columns):this.tableUpdateTracker.trackColumnPropertyChanged(t):e instanceof AR&&"isColumnBeingSized"===t&&!this.layoutManager.isColumnBeingSized&&this.emitColumnConfigurationChangeEvent()}onRowSelectionToggle(e,t){t.stopImmediatePropagation()
10660
+ this.updateTableOptions(t)}async getSelectedRecordIds(){return await this.processPendingUpdates(),this.selectionManager.getCurrentSelectedRecordIds()}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==zT.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(e)}})}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connect(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0}),document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp)}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnect(),this.viewport.removeEventListener("scroll",this.onViewPortScroll),document.removeEventListener("keydown",this.onKeyDown),document.removeEventListener("keyup",this.onKeyUp)}checkValidity(){return this.tableValidator.isValid()}handleChange(e,t){(e instanceof KT||e instanceof ZT)&&"string"==typeof t?"validConfiguration"===t?this.tableValidator.validateColumnConfigurations(this.columns):this.tableUpdateTracker.trackColumnPropertyChanged(t):e instanceof NR&&"isColumnBeingSized"===t&&!this.layoutManager.isColumnBeingSized&&this.emitColumnConfigurationChangeEvent()}onRowSelectionToggle(e,t){t.stopImmediatePropagation()
10655
10661
  this.selectionManager.handleRowSelectionToggle(this.tableData[e],t.detail.newState,this.documentShiftKeyDown)&&this.emitSelectionChangeEvent()}onRowClick(e,t){return this.selectionManager.handleRowClick(this.tableData[e],t.shiftKey,t.ctrlKey||t.metaKey)&&this.emitSelectionChangeEvent(),!0}onAllRowsSelectionChange(e){e.stopPropagation(),this.ignoreSelectionChangeEvents||(this.table.toggleAllRowsSelected(this.selectionCheckbox.checked),this.emitSelectionChangeEvent())}onRowActionMenuBeforeToggle(e,t){t.stopImmediatePropagation(),this.handleActionMenuBeforeToggleEvent(e,t)}onRowActionMenuToggle(e){e.stopImmediatePropagation(),this.handleRowActionMenuToggleEvent(e)}handleCollapseAllRows(){this.expansionManager.collapseAll()}onRightDividerMouseDown(e,t){0===e.button&&this.layoutManager.beginColumnInteractiveSize(e.clientX,2*t)}onLeftDividerMouseDown(e,t){0===e.button&&this.layoutManager.beginColumnInteractiveSize(e.clientX,2*t-1)}handleGroupRowExpanded(e,t){this.toggleRowExpanded(e),t.stopPropagation()}handleRowExpanded(e){this.toggleRowExpanded(e)}toggleColumnSort(e,t){if(e.sortingDisabled)return
10656
10662
  const n=this.getColumnsParticipatingInSorting().sort(((e,t)=>e.columnInternals.currentSortIndex-t.columnInternals.currentSortIndex)),i=n.indexOf(e),o=i>-1,r=e.columnInternals.currentSortDirection
10657
- let s=OT.ascending
10658
- o?r===OT.descending?(n.splice(i,1),s=OT.none,e.columnInternals.currentSortIndex=void 0):s=OT.descending:n.push(e),e.columnInternals.currentSortDirection=s
10663
+ let s=PT.ascending
10664
+ o?r===PT.descending?(n.splice(i,1),s=PT.none,e.columnInternals.currentSortIndex=void 0):s=PT.descending:n.push(e),e.columnInternals.currentSortDirection=s
10659
10665
  for(let i=0;i<n.length;i++){const o=n[i]
10660
- t?n[i].columnInternals.currentSortIndex=i:o===e?o.columnInternals.currentSortIndex=0:(o.columnInternals.currentSortIndex=void 0,o.columnInternals.currentSortDirection=OT.none)}this.emitColumnConfigurationChangeEvent()}update(){this.validate(),this.tableUpdateTracker.requiresTanStackUpdate&&this.updateTanStack(),this.tableUpdateTracker.updateActionMenuSlots&&this.updateActionMenuSlots(),this.tableUpdateTracker.updateColumnWidths&&(this.rowGridColumns=this.layoutManager.getGridTemplateColumns(),this.visibleColumns=this.columns.filter((e=>!e.columnHidden)))}get ariaMultiSelectable(){switch(this.selectionMode){case TT.multiple:return"true"
10661
- case TT.single:return"false"
10662
- default:return null}}getHeaderContainerElements(){return this.columnHeadersContainer.querySelectorAll(".header-container")}calculateTanStackData(e){this.dataHierarchyManager=new qR(e,this.idFieldName,this.parentIdFieldName)
10666
+ t?n[i].columnInternals.currentSortIndex=i:o===e?o.columnInternals.currentSortIndex=0:(o.columnInternals.currentSortIndex=void 0,o.columnInternals.currentSortDirection=PT.none)}this.emitColumnConfigurationChangeEvent()}update(){this.validate(),this.tableUpdateTracker.requiresTanStackUpdate&&this.updateTanStack(),this.tableUpdateTracker.updateActionMenuSlots&&this.updateActionMenuSlots(),this.tableUpdateTracker.updateColumnWidths&&(this.rowGridColumns=this.layoutManager.getGridTemplateColumns(),this.visibleColumns=this.columns.filter((e=>!e.columnHidden)))}get ariaMultiSelectable(){switch(this.selectionMode){case zT.multiple:return"true"
10667
+ case zT.single:return"false"
10668
+ default:return null}}getHeaderContainerElements(){return this.columnHeadersContainer.querySelectorAll(".header-container")}calculateTanStackData(e){this.dataHierarchyManager=new WR(e,this.idFieldName,this.parentIdFieldName)
10663
10669
  const t=this.dataHierarchyManager.hierarchicalData
10664
10670
  this.tableValidator.setParentIdConfigurationValidity(this.dataHierarchyManager.parentIdConfigurationValid)
10665
10671
  const n={data:t}
@@ -10667,41 +10673,41 @@ if(this.validateWithData(e),this.tableValidator.areRecordIdsValid()){const e=thi
10667
10673
  n.state={rowSelection:this.calculateTanStackSelectionState(e),expanded:!0}}return n}selectionModeChanged(e,t){this.$fastController.isConnected&&this.tableUpdateTracker.trackSelectionModeChanged()}idFieldNameChanged(e,t){this.$fastController.isConnected&&this.tableUpdateTracker.trackIdFieldNameChanged()}parentIdFieldNameChanged(e,t){this.$fastController.isConnected&&this.tableUpdateTracker.trackParentIdFieldNameChanged()}columnsChanged(e,t){this.$fastController.isConnected&&(this.observeColumns(),this.tableUpdateTracker.trackColumnInstancesChanged())}async handleActionMenuBeforeToggleEvent(e,t){this.selectionManager.handleActionMenuOpening(this.tableData[e])&&await this.emitSelectionChangeEvent(),this.openActionMenuRecordId=t.detail.recordIds[0]
10668
10674
  const n=await this.getActionMenuToggleEventDetail(t)
10669
10675
  this.$emit("action-menu-beforetoggle",n)}async handleRowActionMenuToggleEvent(e){const t=await this.getActionMenuToggleEventDetail(e)
10670
- this.$emit("action-menu-toggle",t),e.detail.newState||(this.openActionMenuRecordId=void 0)}async getActionMenuToggleEventDetail(e){const t=this.selectionMode===TT.multiple?await this.getSelectedRecordIds():[this.openActionMenuRecordId]
10676
+ this.$emit("action-menu-toggle",t),e.detail.newState||(this.openActionMenuRecordId=void 0)}async getActionMenuToggleEventDetail(e){const t=this.selectionMode===zT.multiple?await this.getSelectedRecordIds():[this.openActionMenuRecordId]
10671
10677
  return{...e.detail,recordIds:t}}removeColumnObservers(){this.columnNotifiers.forEach((e=>{e.unsubscribe(this)})),this.columnNotifiers=[]}initialize(){this.isInitialized||(this.isInitialized=!0,this.$fastController.onConnectedCallback(),this.tableUpdateTracker.trackAllStateChanged(),this.observeColumns())}async processPendingUpdates(){if(this.initialize(),await u.nextUpdate(),this.tableUpdateTracker.hasPendingUpdates)throw new Error("Expected pending updates to be resolved")}observeColumns(){this.removeColumnObservers()
10672
10678
  for(const e of this.columns){const t=m.getNotifier(e)
10673
10679
  t.subscribe(this),this.columnNotifiers.push(t)
10674
10680
  const n=m.getNotifier(e.columnInternals)
10675
- n.subscribe(this),this.columnNotifiers.push(n)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>!e.sortingDisabled&&e.columnInternals.currentSortDirection!==OT.none&&"number"==typeof e.columnInternals.currentSortIndex))}getColumnsParticipatingInGrouping(){return this.columns.filter((e=>!e.columnInternals.groupingDisabled&&"number"==typeof e.columnInternals.groupIndex))}childItemsChanged(){this.updateColumnsFromChildItems()}async updateColumnsFromChildItems(){await EE(this.childItems),this.columns=this.childItems.filter((e=>e instanceof jT))}updateTanStack(){const e={state:{}}
10676
- if(this.tableUpdateTracker.updateColumnSort&&(e.state.sorting=this.calculateTanStackSortState()),this.tableUpdateTracker.updateColumnDefinition&&(e.columns=this.calculateTanStackColumns()),this.tableUpdateTracker.updateRowIds&&(e.getRowId=this.calculateTanStackRowIdFunction(),e.state.rowSelection={},this.selectionManager.handleSelectionReset()),this.tableUpdateTracker.updateSelectionMode&&(e.enableMultiRowSelection=this.selectionMode===TT.multiple,e.enableSubRowSelection=this.selectionMode===TT.multiple,e.state.rowSelection={},this.selectionManager.handleSelectionModeChanged(this.selectionMode)),this.dataHierarchyManager&&this.tableUpdateTracker.requiresTanStackDataReset)if(this.parentIdFieldName||this.tableUpdateTracker.updateRowParentIds){const t=this.dataHierarchyManager.getAllRecords(!0),n=this.calculateTanStackData(t)
10681
+ n.subscribe(this),this.columnNotifiers.push(n)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>!e.sortingDisabled&&e.columnInternals.currentSortDirection!==PT.none&&"number"==typeof e.columnInternals.currentSortIndex))}getColumnsParticipatingInGrouping(){return this.columns.filter((e=>!e.columnInternals.groupingDisabled&&"number"==typeof e.columnInternals.groupIndex))}childItemsChanged(){this.updateColumnsFromChildItems()}async updateColumnsFromChildItems(){await RE(this.childItems),this.columns=this.childItems.filter((e=>e instanceof KT))}updateTanStack(){const e={state:{}}
10682
+ if(this.tableUpdateTracker.updateColumnSort&&(e.state.sorting=this.calculateTanStackSortState()),this.tableUpdateTracker.updateColumnDefinition&&(e.columns=this.calculateTanStackColumns()),this.tableUpdateTracker.updateRowIds&&(e.getRowId=this.calculateTanStackRowIdFunction(),e.state.rowSelection={},this.selectionManager.handleSelectionReset()),this.tableUpdateTracker.updateSelectionMode&&(e.enableMultiRowSelection=this.selectionMode===zT.multiple,e.enableSubRowSelection=this.selectionMode===zT.multiple,e.state.rowSelection={},this.selectionManager.handleSelectionModeChanged(this.selectionMode)),this.dataHierarchyManager&&this.tableUpdateTracker.requiresTanStackDataReset)if(this.parentIdFieldName||this.tableUpdateTracker.updateRowParentIds){const t=this.dataHierarchyManager.getAllRecords(!0),n=this.calculateTanStackData(t)
10677
10683
  n.state&&(e.state.rowSelection=n.state.rowSelection),e.data=n.data}else e.data=[...this.table.options.data]
10678
10684
  this.tableUpdateTracker.updateGroupRows&&(e.state.grouping=this.calculateTanStackGroupingState()),(this.tableUpdateTracker.updateRowIds||this.tableUpdateTracker.updateRowParentIds||this.tableUpdateTracker.updateGroupRows)&&(e.state.expanded=!0,this.expansionManager.reset()),this.updateTableOptions(e)}updateActionMenuSlots(){const e=new Set
10679
10685
  for(const t of this.columns)t.actionMenuSlot&&e.add(t.actionMenuSlot)
10680
10686
  this.actionMenuSlots=Array.from(e)}validate(){this.tableValidator.validateIdFieldConfiguration(this.selectionMode,this.idFieldName,this.parentIdFieldName),this.tableValidator.validateColumnIds(this.columns.map((e=>e.columnId))),this.tableValidator.validateColumnSortIndices(this.getColumnsParticipatingInSorting().map((e=>e.columnInternals.currentSortIndex))),this.tableValidator.validateColumnGroupIndices(this.getColumnsParticipatingInGrouping().map((e=>e.columnInternals.groupIndex))),this.tableValidator.validateColumnConfigurations(this.columns),this.dataHierarchyManager&&this.validateWithData(this.dataHierarchyManager.getAllRecords())}validateWithData(e){this.tableValidator.validateRecordIds(e,this.idFieldName),this.canRenderRows=this.checkValidity()}emitColumnConfigurationChangeEvent(){const e={columns:this.columns.map((e=>({columnId:e.columnId,sortIndex:e.columnInternals.currentSortIndex??void 0,sortDirection:e.columnInternals.currentSortDirection,groupIndex:e.columnInternals.groupIndex,hidden:e.columnHidden,fractionalWidth:e.columnInternals.currentFractionalWidth,pixelWidth:e.columnInternals.currentPixelWidth})))}
10681
10687
  this.$emit("column-configuration-change",e)}async emitSelectionChangeEvent(){const e={selectedRecordIds:await this.getSelectedRecordIds()}
10682
- this.$emit("selection-change",e)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===DT,this.selectionCheckbox.indeterminate=this.selectionState===NT,this.ignoreSelectionChangeEvents=!1)}refreshRows(){this.selectionState=this.getTableSelectionState()
10688
+ this.$emit("selection-change",e)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===FT,this.selectionCheckbox.indeterminate=this.selectionState===VT,this.ignoreSelectionChangeEvents=!1)}refreshRows(){this.selectionState=this.getTableSelectionState()
10683
10689
  let e=!1
10684
10690
  const t=this.table.getRowModel().rows
10685
10691
  this.tableData=t.map((t=>{const n=t.getIsGrouped(),i=!n&&t.getParentRow(),o=void 0!==t.original.subRows&&t.original.subRows.length>0,r=!n&&!o&&!i&&t.depth>0&&!this.parentIdFieldName,s={record:t.original.clientRecord,id:t.id,selectionState:this.getRowSelectionState(t),isGroupRow:n,isExpanded:t.getIsExpanded(),groupRowValue:n?t.getValue(t.groupingColumnId):void 0,nestingLevel:r?t.depth-1:t.depth,isParentRow:o,immediateChildCount:t.subRows.length,groupColumn:this.getGroupRowColumn(t)}
10686
- return e=e||o,s})),this.showCollapseAll=e||this.getColumnsParticipatingInGrouping().length>0,this.virtualizer.dataChanged()}getTableSelectionState(){return this.table.getIsAllRowsSelected()?DT:this.table.getIsSomeRowsSelected()?NT:RT}getRowSelectionState(e){return e.getIsGrouped()?this.getGroupedRowSelectionState(e):e.getIsSelected()?DT:RT}getGroupedRowSelectionState(e){const t=e.getLeafRows()??[]
10692
+ return e=e||o,s})),this.showCollapseAll=e||this.getColumnsParticipatingInGrouping().length>0,this.virtualizer.dataChanged()}getTableSelectionState(){return this.table.getIsAllRowsSelected()?FT:this.table.getIsSomeRowsSelected()?VT:LT}getRowSelectionState(e){return e.getIsGrouped()?this.getGroupedRowSelectionState(e):e.getIsSelected()?FT:LT}getGroupedRowSelectionState(e){const t=e.getLeafRows()??[]
10687
10693
  let n=!1,i=!1
10688
- for(const e of t){if(e.getIsGrouped()){switch(this.getGroupedRowSelectionState(e)){case RT:i=!0
10694
+ for(const e of t){if(e.getIsGrouped()){switch(this.getGroupedRowSelectionState(e)){case LT:i=!0
10689
10695
  break
10690
- case DT:n=!0
10696
+ case FT:n=!0
10691
10697
  break
10692
- default:return NT}}else e.getIsSelected()?n=!0:i=!0
10693
- if(n&&i)return NT}return n?DT:RT}getGroupRowColumn(e){const t=e.groupingColumnId
10698
+ default:return VT}}else e.getIsSelected()?n=!0:i=!0
10699
+ if(n&&i)return VT}return n?FT:LT}getGroupRowColumn(e){const t=e.groupingColumnId
10694
10700
  if(void 0!==t)return this.columns.find((e=>e.columnInternals.uniqueId===t))}updateTableOptions(e){if(this.options={...this.options,...e,state:{...this.options.state,...e.state}},this.table.setOptions(this.options),e.data){const e=this.table.getRowModel().flatRows
10695
10701
  this.expansionManager.processDataUpdate(e)}this.refreshRows()}toggleRowExpanded(e){const t=this.table.getRowModel().rows[e]
10696
10702
  this.expansionManager.toggleRowExpansion(t)}calculateTanStackSortState(){const e=this.getColumnsParticipatingInSorting().sort(((e,t)=>e.columnInternals.currentSortIndex-t.columnInternals.currentSortIndex))
10697
- return this.firstSortedColumn=e.length?e[0]:void 0,e.map((e=>({id:e.columnInternals.uniqueId,desc:e.columnInternals.currentSortDirection===OT.descending})))}calculateTanStackGroupingState(){return this.getColumnsParticipatingInGrouping().sort(((e,t)=>e.columnInternals.groupIndex-t.columnInternals.groupIndex)).map((e=>e.columnInternals.uniqueId))}calculateTanStackRowIdFunction(){return null===this.idFieldName||void 0===this.idFieldName?void 0:e=>e.clientRecord[this.idFieldName]}calculateTanStackColumns(){return this.columns.map((e=>({id:e.columnInternals.uniqueId,accessorFn:t=>{const n=e.columnInternals.operandDataRecordFieldName
10698
- if("string"==typeof n)return t.clientRecord[n]},sortingFn:_R(e.columnInternals.sortOperation),sortUndefined:!1})))}calculateTanStackSelectionState(e){if(this.selectionMode===TT.none)return{}
10703
+ return this.firstSortedColumn=e.length?e[0]:void 0,e.map((e=>({id:e.columnInternals.uniqueId,desc:e.columnInternals.currentSortDirection===PT.descending})))}calculateTanStackGroupingState(){return this.getColumnsParticipatingInGrouping().sort(((e,t)=>e.columnInternals.groupIndex-t.columnInternals.groupIndex)).map((e=>e.columnInternals.uniqueId))}calculateTanStackRowIdFunction(){return null===this.idFieldName||void 0===this.idFieldName?void 0:e=>e.clientRecord[this.idFieldName]}calculateTanStackColumns(){return this.columns.map((e=>({id:e.columnInternals.uniqueId,accessorFn:t=>{const n=e.columnInternals.operandDataRecordFieldName
10704
+ if("string"==typeof n)return t.clientRecord[n]},sortingFn:TR(e.columnInternals.sortOperation),sortUndefined:!1})))}calculateTanStackSelectionState(e){if(this.selectionMode===zT.none)return{}
10699
10705
  const t={},n=this.tableValidator.getPresentRecordIds(e)
10700
- for(const e of n)if(t[e]=!0,this.selectionMode===TT.single)break
10701
- return t}}e([se({attribute:"id-field-name"})],UR.prototype,"idFieldName",void 0),e([se({attribute:"parent-id-field-name"})],UR.prototype,"parentIdFieldName",void 0),e([se({attribute:"selection-mode"})],UR.prototype,"selectionMode",void 0),e([g],UR.prototype,"tableData",void 0),e([g],UR.prototype,"columns",void 0),e([g],UR.prototype,"childItems",void 0),e([g],UR.prototype,"rowElements",void 0),e([g],UR.prototype,"actionMenuSlots",void 0),e([g],UR.prototype,"openActionMenuRecordId",void 0),e([g],UR.prototype,"canRenderRows",void 0),e([g],UR.prototype,"scrollX",void 0),e([g],UR.prototype,"rowGridColumns",void 0),e([g],UR.prototype,"selectionState",void 0),e([g],UR.prototype,"selectionCheckbox",void 0),e([g],UR.prototype,"showCollapseAll",void 0),e([g],UR.prototype,"firstSortedColumn",void 0),e([g],UR.prototype,"visibleColumns",void 0),e([g],UR.prototype,"tableScrollableMinWidth",void 0),e([g],UR.prototype,"documentShiftKeyDown",void 0)
10702
- const WR=UR.compose({baseName:"table",template:fR,styles:WT})
10703
- bi.getOrCreate().withPrefix("nimble").register(WR())
10704
- const ZR=we`
10706
+ for(const e of n)if(t[e]=!0,this.selectionMode===zT.single)break
10707
+ return t}}e([se({attribute:"id-field-name"})],GR.prototype,"idFieldName",void 0),e([se({attribute:"parent-id-field-name"})],GR.prototype,"parentIdFieldName",void 0),e([se({attribute:"selection-mode"})],GR.prototype,"selectionMode",void 0),e([g],GR.prototype,"tableData",void 0),e([g],GR.prototype,"columns",void 0),e([g],GR.prototype,"childItems",void 0),e([g],GR.prototype,"rowElements",void 0),e([g],GR.prototype,"actionMenuSlots",void 0),e([g],GR.prototype,"openActionMenuRecordId",void 0),e([g],GR.prototype,"canRenderRows",void 0),e([g],GR.prototype,"scrollX",void 0),e([g],GR.prototype,"rowGridColumns",void 0),e([g],GR.prototype,"selectionState",void 0),e([g],GR.prototype,"selectionCheckbox",void 0),e([g],GR.prototype,"showCollapseAll",void 0),e([g],GR.prototype,"firstSortedColumn",void 0),e([g],GR.prototype,"visibleColumns",void 0),e([g],GR.prototype,"tableScrollableMinWidth",void 0),e([g],GR.prototype,"documentShiftKeyDown",void 0)
10708
+ const KR=GR.compose({baseName:"table",template:wR,styles:XT})
10709
+ bi.getOrCreate().withPrefix("nimble").register(KR())
10710
+ const JR=we`
10705
10711
  :host {
10706
10712
  display: contents;
10707
10713
  }
@@ -10711,14 +10717,14 @@ const ZR=we`
10711
10717
  overflow: hidden;
10712
10718
  text-overflow: ellipsis;
10713
10719
  }
10714
- `,GR=Z`<span
10720
+ `,XR=Z`<span
10715
10721
  ${Wm("hasOverflow")}
10716
10722
  class="header-content"
10717
10723
  title=${e=>e.hasOverflow&&e.headerTextContent?e.headerTextContent:null}
10718
10724
  >
10719
10725
  <slot ${Ne("contentSlot")}></slot>
10720
10726
  </span>`
10721
- function KR(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.fractionalWidth?this.columnInternals.fractionalWidth=this.fractionalWidth:this.columnInternals.fractionalWidth=1}minPixelWidthChanged(){"number"==typeof this.minPixelWidth?this.columnInternals.minPixelWidth=this.minPixelWidth:this.columnInternals.minPixelWidth=117}}return se({attribute:"fractional-width",converter:oe})(t.prototype,"fractionalWidth"),se({attribute:"min-pixel-width",converter:oe})(t.prototype,"minPixelWidth"),t}function JR(e){class t extends e{constructor(){super(...arguments),this.groupingDisabled=!1,this.groupIndex=null}groupingDisabledChanged(){this.columnInternals.groupingDisabled=this.groupingDisabled}groupIndexChanged(){"number"==typeof this.groupIndex?this.columnInternals.groupIndex=this.groupIndex:this.columnInternals.groupIndex=void 0}}return se({attribute:"grouping-disabled",mode:"boolean"})(t.prototype,"groupingDisabled"),se({attribute:"group-index",converter:oe})(t.prototype,"groupIndex"),t}const XR=we`
10727
+ function YR(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.fractionalWidth?this.columnInternals.fractionalWidth=this.fractionalWidth:this.columnInternals.fractionalWidth=1}minPixelWidthChanged(){"number"==typeof this.minPixelWidth?this.columnInternals.minPixelWidth=this.minPixelWidth:this.columnInternals.minPixelWidth=117}}return se({attribute:"fractional-width",converter:oe})(t.prototype,"fractionalWidth"),se({attribute:"min-pixel-width",converter:oe})(t.prototype,"minPixelWidth"),t}function QR(e){class t extends e{constructor(){super(...arguments),this.groupingDisabled=!1,this.groupIndex=null}groupingDisabledChanged(){this.columnInternals.groupingDisabled=this.groupingDisabled}groupIndexChanged(){"number"==typeof this.groupIndex?this.columnInternals.groupIndex=this.groupIndex:this.columnInternals.groupIndex=void 0}}return se({attribute:"grouping-disabled",mode:"boolean"})(t.prototype,"groupingDisabled"),se({attribute:"group-index",converter:oe})(t.prototype,"groupIndex"),t}const eD=we`
10722
10728
  :host {
10723
10729
  width: fit-content;
10724
10730
  max-width: 100%;
@@ -10739,7 +10745,7 @@ function KR(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.
10739
10745
  overflow: hidden;
10740
10746
  text-overflow: ellipsis;
10741
10747
  }
10742
- `,YR=Z`
10748
+ `,tD=Z`
10743
10749
  <template
10744
10750
  @click="${(e,t)=>("string"==typeof e.cellRecord?.href&&t.event.stopPropagation(),!0)}"
10745
10751
  >
@@ -10770,18 +10776,18 @@ function KR(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.
10770
10776
  </span>`)}
10771
10777
  </template>
10772
10778
  `
10773
- class QR extends VT{constructor(){super(...arguments),this.hasOverflow=!1}get text(){return"string"==typeof this.cellRecord?.label?this.cellRecord.label:"string"==typeof this.cellRecord?.href?this.cellRecord.href:""}focusedRecycleCallback(){this.anchor?.blur()}}e([g],QR.prototype,"hasOverflow",void 0),e([v],QR.prototype,"text",null)
10774
- const eD=QR.compose({baseName:"table-column-anchor-cell-view",template:YR,styles:XR})
10775
- bi.getOrCreate().withPrefix("nimble").register(eD())
10776
- class tD extends LT{constructor(){super(...arguments),this.hasOverflow=!1,this.text=""}}e([g],tD.prototype,"hasOverflow",void 0),e([g],tD.prototype,"text",void 0)
10777
- const nD=Z`
10779
+ class nD extends UT{constructor(){super(...arguments),this.hasOverflow=!1}get text(){return"string"==typeof this.cellRecord?.label?this.cellRecord.label:"string"==typeof this.cellRecord?.href?this.cellRecord.href:""}focusedRecycleCallback(){this.anchor?.blur()}}e([g],nD.prototype,"hasOverflow",void 0),e([v],nD.prototype,"text",null)
10780
+ const iD=nD.compose({baseName:"table-column-anchor-cell-view",template:tD,styles:eD})
10781
+ bi.getOrCreate().withPrefix("nimble").register(iD())
10782
+ class oD extends qT{constructor(){super(...arguments),this.hasOverflow=!1,this.text=""}}e([g],oD.prototype,"hasOverflow",void 0),e([g],oD.prototype,"text",void 0)
10783
+ const rD=Z`
10778
10784
  <span
10779
10785
  ${Wm("hasOverflow")}
10780
10786
  title="${e=>e.hasOverflow&&e.text?e.text:null}"
10781
10787
  >
10782
10788
  ${e=>e.text}
10783
10789
  </span>
10784
- `,iD=we`
10790
+ `,sD=we`
10785
10791
  span {
10786
10792
  font: ${Rc};
10787
10793
  color: ${Dc};
@@ -10790,19 +10796,19 @@ const nD=Z`
10790
10796
  text-overflow: ellipsis;
10791
10797
  }
10792
10798
  `
10793
- const oD=class extends tD{groupHeaderValueChanged(){this.text="string"==typeof this.groupHeaderValue?this.groupHeaderValue:""}}.compose({baseName:"table-column-text-group-header-view",template:nD,styles:iD})
10794
- bi.getOrCreate().withPrefix("nimble").register(oD())
10795
- const rD="nimble-table-column-text-group-header-view"
10796
- class sD extends(JR(KR(jT))){constructor(){super(...arguments),this.underlineHidden=!1}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:"nimble-table-column-anchor-cell-view",groupHeaderViewTag:rD,delegatedEvents:["click"],sortOperation:zT}}labelFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName],this.columnInternals.operandDataRecordFieldName=this.labelFieldName}hrefFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName]}appearanceChanged(){this.updateColumnConfig()}underlineHiddenChanged(){this.updateColumnConfig()}hreflangChanged(){this.updateColumnConfig()}pingChanged(){this.updateColumnConfig()}referrerpolicyChanged(){this.updateColumnConfig()}relChanged(){this.updateColumnConfig()}targetChanged(){this.updateColumnConfig()}typeChanged(){this.updateColumnConfig()}downloadChanged(){this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.columnConfig={appearance:this.appearance,underlineHidden:this.underlineHidden,hreflang:this.hreflang,ping:this.ping,referrerpolicy:this.referrerpolicy,rel:this.rel,target:this.target,type:this.type,download:this.download}}}e([se({attribute:"label-field-name"})],sD.prototype,"labelFieldName",void 0),e([se({attribute:"href-field-name"})],sD.prototype,"hrefFieldName",void 0),e([se],sD.prototype,"appearance",void 0),e([se({attribute:"underline-hidden",mode:"boolean"})],sD.prototype,"underlineHidden",void 0),e([se],sD.prototype,"hreflang",void 0),e([se],sD.prototype,"ping",void 0),e([se],sD.prototype,"referrerpolicy",void 0),e([se],sD.prototype,"rel",void 0),e([se],sD.prototype,"target",void 0),e([se],sD.prototype,"type",void 0),e([se],sD.prototype,"download",void 0)
10797
- const aD=sD.compose({baseName:"table-column-anchor",template:GR,styles:ZR})
10799
+ const aD=class extends oD{groupHeaderValueChanged(){this.text="string"==typeof this.groupHeaderValue?this.groupHeaderValue:""}}.compose({baseName:"table-column-text-group-header-view",template:rD,styles:sD})
10798
10800
  bi.getOrCreate().withPrefix("nimble").register(aD())
10799
- class lD extends(JR(KR(jT))){fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}}function cD(e,t){if("number"!=typeof t)return""
10800
- try{return e.format(t)}catch(e){return""}}e([se({attribute:"field-name"})],lD.prototype,"fieldName",void 0)
10801
- const dD=class extends tD{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.columnConfig?this.text=cD(this.columnConfig.formatter,this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-date-text-group-header-view",template:nD,styles:iD})
10801
+ const lD="nimble-table-column-text-group-header-view"
10802
+ class cD extends(QR(YR(KT))){constructor(){super(...arguments),this.underlineHidden=!1}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:"nimble-table-column-anchor-cell-view",groupHeaderViewTag:lD,delegatedEvents:["click"],sortOperation:BT}}labelFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName],this.columnInternals.operandDataRecordFieldName=this.labelFieldName}hrefFieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.labelFieldName,this.hrefFieldName]}appearanceChanged(){this.updateColumnConfig()}underlineHiddenChanged(){this.updateColumnConfig()}hreflangChanged(){this.updateColumnConfig()}pingChanged(){this.updateColumnConfig()}referrerpolicyChanged(){this.updateColumnConfig()}relChanged(){this.updateColumnConfig()}targetChanged(){this.updateColumnConfig()}typeChanged(){this.updateColumnConfig()}downloadChanged(){this.updateColumnConfig()}updateColumnConfig(){this.columnInternals.columnConfig={appearance:this.appearance,underlineHidden:this.underlineHidden,hreflang:this.hreflang,ping:this.ping,referrerpolicy:this.referrerpolicy,rel:this.rel,target:this.target,type:this.type,download:this.download}}}e([se({attribute:"label-field-name"})],cD.prototype,"labelFieldName",void 0),e([se({attribute:"href-field-name"})],cD.prototype,"hrefFieldName",void 0),e([se],cD.prototype,"appearance",void 0),e([se({attribute:"underline-hidden",mode:"boolean"})],cD.prototype,"underlineHidden",void 0),e([se],cD.prototype,"hreflang",void 0),e([se],cD.prototype,"ping",void 0),e([se],cD.prototype,"referrerpolicy",void 0),e([se],cD.prototype,"rel",void 0),e([se],cD.prototype,"target",void 0),e([se],cD.prototype,"type",void 0),e([se],cD.prototype,"download",void 0)
10803
+ const dD=cD.compose({baseName:"table-column-anchor",template:XR,styles:JR})
10802
10804
  bi.getOrCreate().withPrefix("nimble").register(dD())
10803
- const hD="left",uD="right",pD=Z`
10805
+ class hD extends(QR(YR(KT))){fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}}function uD(e,t){if("number"!=typeof t)return""
10806
+ try{return e.format(t)}catch(e){return""}}e([se({attribute:"field-name"})],hD.prototype,"fieldName",void 0)
10807
+ const pD=class extends oD{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.columnConfig?this.text=uD(this.columnConfig.formatter,this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-date-text-group-header-view",template:rD,styles:sD})
10808
+ bi.getOrCreate().withPrefix("nimble").register(pD())
10809
+ const fD="left",mD="right",gD=Z`
10804
10810
  <template
10805
- class="${e=>e.alignment===uD?"right-align":""}"
10811
+ class="${e=>e.alignment===mD?"right-align":""}"
10806
10812
  >
10807
10813
  <span
10808
10814
  ${Wm("hasOverflow")}
@@ -10811,7 +10817,7 @@ const hD="left",uD="right",pD=Z`
10811
10817
  ${e=>e.text}
10812
10818
  </span>
10813
10819
  </template>
10814
- `,fD=we`
10820
+ `,vD=we`
10815
10821
  :host(.right-align) {
10816
10822
  margin-left: auto;
10817
10823
  }
@@ -10824,22 +10830,22 @@ const hD="left",uD="right",pD=Z`
10824
10830
  text-overflow: ellipsis;
10825
10831
  }
10826
10832
  `
10827
- class mD extends VT{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.alignment=hD}}e([g],mD.prototype,"hasOverflow",void 0),e([g],mD.prototype,"text",void 0),e([g],mD.prototype,"alignment",void 0)
10828
- const gD=class extends mD{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){this.columnConfig?this.text=cD(this.columnConfig.formatter,this.cellRecord?.value):this.text=""}}.compose({baseName:"table-column-date-text-cell-view",template:pD,styles:fD})
10829
- bi.getOrCreate().withPrefix("nimble").register(gD())
10830
- const vD=void 0
10831
- class bD extends OR{isValid(){return this.noneTracked()}getValidationFlags(){return this.getTrackedItems()}}class wD extends bD{constructor(e,t){super(t),this.columnInternals=e}getValidity(){return this.getValidationFlags()}setConditionValue(e,t){t?this.track(e):this.untrack(e),this.updateColumnInternalsFlag()}updateColumnInternalsFlag(){this.columnInternals.validConfiguration=this.isValid()}}const yD=["invalidCustomOptionsCombination"]
10832
- class xD extends wD{constructor(e){super(e,yD)}setCustomOptionsValidity(e){this.setConditionValue("invalidCustomOptionsCombination",!e)}}const kD={toView:e=>"boolean"==typeof e?e.toString():null,fromView:e=>"true"===e||!0===e||"false"!==e&&!1!==e&&void 0}
10833
- class CD extends lD{constructor(){super(...arguments),this.validator=new xD(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),xa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),xa.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-date-text-cell-view",groupHeaderViewTag:"nimble-table-column-date-text-group-header-view",delegatedEvents:[],sortOperation:PT}}formatChanged(){this.updateColumnConfig()}customLocaleMatcherChanged(){this.updateColumnConfig()}customWeekdayChanged(){this.updateColumnConfig()}customEraChanged(){this.updateColumnConfig()}customYearChanged(){this.updateColumnConfig()}customMonthChanged(){this.updateColumnConfig()}customDayChanged(){this.updateColumnConfig()}customHourChanged(){this.updateColumnConfig()}customMinuteChanged(){this.updateColumnConfig()}customSecondChanged(){this.updateColumnConfig()}customTimeZoneNameChanged(){this.updateColumnConfig()}customFormatMatcherChanged(){this.updateColumnConfig()}customHour12Changed(){this.updateColumnConfig()}customTimeZoneChanged(){this.updateColumnConfig()}customCalendarChanged(){this.updateColumnConfig()}customDayPeriodChanged(){this.updateColumnConfig()}customNumberingSystemChanged(){this.updateColumnConfig()}customDateStyleChanged(){this.updateColumnConfig()}customTimeStyleChanged(){this.updateColumnConfig()}customHourCycleChanged(){this.updateColumnConfig()}updateColumnConfig(){const e=this.createFormatter()
10833
+ class bD extends UT{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.alignment=fD}}e([g],bD.prototype,"hasOverflow",void 0),e([g],bD.prototype,"text",void 0),e([g],bD.prototype,"alignment",void 0)
10834
+ const wD=class extends bD{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){this.columnConfig?this.text=uD(this.columnConfig.formatter,this.cellRecord?.value):this.text=""}}.compose({baseName:"table-column-date-text-cell-view",template:gD,styles:vD})
10835
+ bi.getOrCreate().withPrefix("nimble").register(wD())
10836
+ const yD=void 0
10837
+ class xD extends EE{isValid(){return this.noneTracked()}getValidationFlags(){return this.getTrackedItems()}}class kD extends xD{constructor(e,t){super(t),this.columnInternals=e}getValidity(){return this.getValidationFlags()}setConditionValue(e,t){t?this.track(e):this.untrack(e),this.updateColumnInternalsFlag()}updateColumnInternalsFlag(){this.columnInternals.validConfiguration=this.isValid()}}const CD=["invalidCustomOptionsCombination"]
10838
+ class SD extends kD{constructor(e){super(e,CD)}setCustomOptionsValidity(e){this.setConditionValue("invalidCustomOptionsCombination",!e)}}const $D={toView:e=>"boolean"==typeof e?e.toString():null,fromView:e=>"true"===e||!0===e||"false"!==e&&!1!==e&&void 0}
10839
+ class MD extends hD{constructor(){super(...arguments),this.validator=new SD(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),xa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),xa.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-date-text-cell-view",groupHeaderViewTag:"nimble-table-column-date-text-group-header-view",delegatedEvents:[],sortOperation:HT}}formatChanged(){this.updateColumnConfig()}customLocaleMatcherChanged(){this.updateColumnConfig()}customWeekdayChanged(){this.updateColumnConfig()}customEraChanged(){this.updateColumnConfig()}customYearChanged(){this.updateColumnConfig()}customMonthChanged(){this.updateColumnConfig()}customDayChanged(){this.updateColumnConfig()}customHourChanged(){this.updateColumnConfig()}customMinuteChanged(){this.updateColumnConfig()}customSecondChanged(){this.updateColumnConfig()}customTimeZoneNameChanged(){this.updateColumnConfig()}customFormatMatcherChanged(){this.updateColumnConfig()}customHour12Changed(){this.updateColumnConfig()}customTimeZoneChanged(){this.updateColumnConfig()}customCalendarChanged(){this.updateColumnConfig()}customDayPeriodChanged(){this.updateColumnConfig()}customNumberingSystemChanged(){this.updateColumnConfig()}customDateStyleChanged(){this.updateColumnConfig()}customTimeStyleChanged(){this.updateColumnConfig()}customHourCycleChanged(){this.updateColumnConfig()}updateColumnConfig(){const e=this.createFormatter()
10834
10840
  if(e){const t={formatter:e}
10835
10841
  this.columnInternals.columnConfig=t,this.validator.setCustomOptionsValidity(!0)}else this.columnInternals.columnConfig=void 0,this.validator.setCustomOptionsValidity(!1)}createFormatter(){let e
10836
- e=this.format===vD?{dateStyle:"medium",timeStyle:"medium"}:this.getCustomFormattingOptions()
10837
- try{return new Intl.DateTimeFormat(xa.getValueFor(this),e)}catch(e){return}}getCustomFormattingOptions(){return{localeMatcher:this.customLocaleMatcher??void 0,weekday:this.customWeekday??void 0,era:this.customEra??void 0,year:this.customYear??void 0,month:this.customMonth??void 0,day:this.customDay??void 0,hour:this.customHour??void 0,minute:this.customMinute??void 0,second:this.customSecond??void 0,timeZoneName:this.customTimeZoneName??void 0,formatMatcher:this.customFormatMatcher??void 0,hour12:this.customHour12??void 0,timeZone:this.customTimeZone??void 0,calendar:this.customCalendar??void 0,dayPeriod:this.customDayPeriod??void 0,numberingSystem:this.customNumberingSystem??void 0,dateStyle:this.customDateStyle??void 0,timeStyle:this.customTimeStyle??void 0,hourCycle:this.customHourCycle??void 0}}}e([se],CD.prototype,"format",void 0),e([se({attribute:"custom-locale-matcher"})],CD.prototype,"customLocaleMatcher",void 0),e([se({attribute:"custom-weekday"})],CD.prototype,"customWeekday",void 0),e([se({attribute:"custom-era"})],CD.prototype,"customEra",void 0),e([se({attribute:"custom-year"})],CD.prototype,"customYear",void 0),e([se({attribute:"custom-month"})],CD.prototype,"customMonth",void 0),e([se({attribute:"custom-day"})],CD.prototype,"customDay",void 0),e([se({attribute:"custom-hour"})],CD.prototype,"customHour",void 0),e([se({attribute:"custom-minute"})],CD.prototype,"customMinute",void 0),e([se({attribute:"custom-second"})],CD.prototype,"customSecond",void 0),e([se({attribute:"custom-time-zone-name"})],CD.prototype,"customTimeZoneName",void 0),e([se({attribute:"custom-format-matcher"})],CD.prototype,"customFormatMatcher",void 0),e([se({attribute:"custom-hour12",converter:kD})],CD.prototype,"customHour12",void 0),e([se({attribute:"custom-time-zone"})],CD.prototype,"customTimeZone",void 0),e([se({attribute:"custom-calendar"})],CD.prototype,"customCalendar",void 0),e([se({attribute:"custom-day-period"})],CD.prototype,"customDayPeriod",void 0),e([se({attribute:"custom-numbering-system"})],CD.prototype,"customNumberingSystem",void 0),e([se({attribute:"custom-date-style"})],CD.prototype,"customDateStyle",void 0),e([se({attribute:"custom-time-style"})],CD.prototype,"customTimeStyle",void 0),e([se({attribute:"custom-hour-cycle"})],CD.prototype,"customHourCycle",void 0)
10838
- const SD=CD.compose({baseName:"table-column-date-text",template:GR,styles:ZR})
10839
- bi.getOrCreate().withPrefix("nimble").register(SD())
10840
- const $D=class extends mD{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-duration-text-cell-view",template:pD,styles:fD})
10841
- bi.getOrCreate().withPrefix("nimble").register($D())
10842
- class MD{constructor(e){this.lang=e,this.daysFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"day"}),this.hoursFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"hour"}),this.minutesFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"minute"}),this.secondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second"}),this.scientificSecondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second",notation:"scientific",maximumFractionDigits:3})}format(e){if("number"!=typeof e||e<0||!Number.isFinite(e))return""
10842
+ e=this.format===yD?{dateStyle:"medium",timeStyle:"medium"}:this.getCustomFormattingOptions()
10843
+ try{return new Intl.DateTimeFormat(xa.getValueFor(this),e)}catch(e){return}}getCustomFormattingOptions(){return{localeMatcher:this.customLocaleMatcher??void 0,weekday:this.customWeekday??void 0,era:this.customEra??void 0,year:this.customYear??void 0,month:this.customMonth??void 0,day:this.customDay??void 0,hour:this.customHour??void 0,minute:this.customMinute??void 0,second:this.customSecond??void 0,timeZoneName:this.customTimeZoneName??void 0,formatMatcher:this.customFormatMatcher??void 0,hour12:this.customHour12??void 0,timeZone:this.customTimeZone??void 0,calendar:this.customCalendar??void 0,dayPeriod:this.customDayPeriod??void 0,numberingSystem:this.customNumberingSystem??void 0,dateStyle:this.customDateStyle??void 0,timeStyle:this.customTimeStyle??void 0,hourCycle:this.customHourCycle??void 0}}}e([se],MD.prototype,"format",void 0),e([se({attribute:"custom-locale-matcher"})],MD.prototype,"customLocaleMatcher",void 0),e([se({attribute:"custom-weekday"})],MD.prototype,"customWeekday",void 0),e([se({attribute:"custom-era"})],MD.prototype,"customEra",void 0),e([se({attribute:"custom-year"})],MD.prototype,"customYear",void 0),e([se({attribute:"custom-month"})],MD.prototype,"customMonth",void 0),e([se({attribute:"custom-day"})],MD.prototype,"customDay",void 0),e([se({attribute:"custom-hour"})],MD.prototype,"customHour",void 0),e([se({attribute:"custom-minute"})],MD.prototype,"customMinute",void 0),e([se({attribute:"custom-second"})],MD.prototype,"customSecond",void 0),e([se({attribute:"custom-time-zone-name"})],MD.prototype,"customTimeZoneName",void 0),e([se({attribute:"custom-format-matcher"})],MD.prototype,"customFormatMatcher",void 0),e([se({attribute:"custom-hour12",converter:$D})],MD.prototype,"customHour12",void 0),e([se({attribute:"custom-time-zone"})],MD.prototype,"customTimeZone",void 0),e([se({attribute:"custom-calendar"})],MD.prototype,"customCalendar",void 0),e([se({attribute:"custom-day-period"})],MD.prototype,"customDayPeriod",void 0),e([se({attribute:"custom-numbering-system"})],MD.prototype,"customNumberingSystem",void 0),e([se({attribute:"custom-date-style"})],MD.prototype,"customDateStyle",void 0),e([se({attribute:"custom-time-style"})],MD.prototype,"customTimeStyle",void 0),e([se({attribute:"custom-hour-cycle"})],MD.prototype,"customHourCycle",void 0)
10844
+ const _D=MD.compose({baseName:"table-column-date-text",template:XR,styles:JR})
10845
+ bi.getOrCreate().withPrefix("nimble").register(_D())
10846
+ const ED=class extends bD{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-duration-text-cell-view",template:gD,styles:vD})
10847
+ bi.getOrCreate().withPrefix("nimble").register(ED())
10848
+ class ID{constructor(e){this.lang=e,this.daysFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"day"}),this.hoursFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"hour"}),this.minutesFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"minute"}),this.secondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second"}),this.scientificSecondsFormatter=new Intl.NumberFormat(this.lang,{style:"unit",unit:"second",notation:"scientific",maximumFractionDigits:3})}format(e){if("number"!=typeof e||e<0||!Number.isFinite(e))return""
10843
10849
  const t=[],n=1e3,i=6e4,o=36e5,r=864e5,s=e/r
10844
10850
  let a=e
10845
10851
  const l=Math.floor(s)
@@ -10852,50 +10858,50 @@ if(a-=d*i,d){const e=this.minutesFormatter.format(d)
10852
10858
  t.push(e)}const h=a/n,u=0===h?0:h%60
10853
10859
  if(e<1&&0!==h)return this.scientificSecondsFormatter.format(h)
10854
10860
  if(u>=5e-4||0===u&&0===t.length){const e=this.secondsFormatter.format(u)
10855
- t.push(e)}return t.join(", ")}}const _D=class extends tD{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.columnConfig?this.text=this.columnConfig.formatter.format(this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-duration-text-group-header-view",template:nD,styles:iD})
10856
- bi.getOrCreate().withPrefix("nimble").register(_D())
10857
- const ED=class extends lD{constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),xa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),xa.unsubscribe(this.langSubscriber,this)}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-duration-text-cell-view",groupHeaderViewTag:"nimble-table-column-duration-text-group-header-view",delegatedEvents:[],sortOperation:PT}}updateColumnConfig(){const e=new MD(xa.getValueFor(this))
10861
+ t.push(e)}return t.join(", ")}}const AD=class extends oD{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.columnConfig?this.text=this.columnConfig.formatter.format(this.groupHeaderValue):this.text=""}}.compose({baseName:"table-column-duration-text-group-header-view",template:rD,styles:sD})
10862
+ bi.getOrCreate().withPrefix("nimble").register(AD())
10863
+ const OD=class extends hD{constructor(){super(...arguments),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),xa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),xa.unsubscribe(this.langSubscriber,this)}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-duration-text-cell-view",groupHeaderViewTag:"nimble-table-column-duration-text-group-header-view",delegatedEvents:[],sortOperation:HT}}updateColumnConfig(){const e=new ID(xa.getValueFor(this))
10858
10864
  if(e){const t={formatter:e}
10859
- this.columnInternals.columnConfig=t}else this.columnInternals.columnConfig=void 0}}.compose({baseName:"table-column-duration-text",template:GR,styles:ZR})
10860
- bi.getOrCreate().withPrefix("nimble").register(ED())
10861
- const ID=(e,t)=>{if("number"===t){const t=oe.fromView(e)
10865
+ this.columnInternals.columnConfig=t}else this.columnInternals.columnConfig=void 0}}.compose({baseName:"table-column-duration-text",template:XR,styles:JR})
10866
+ bi.getOrCreate().withPrefix("nimble").register(OD())
10867
+ const TD=(e,t)=>{if("number"===t){const t=oe.fromView(e)
10862
10868
  return null===t?void 0:t}return"boolean"===t?!1!==e&&"false"!==e&&(!0===e||"true"===e||void 0):e?.toString()??void 0}
10863
- class AD extends jT{constructor(){super(...arguments),this.validator=this.createValidator(),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(e,t){e instanceof ev&&"string"==typeof t&&this.updateColumnConfig()}updateColumnConfig(){this.validator.validate(this.mappings,this.keyType),this.columnInternals.columnConfig=this.validator.isValid()?this.createColumnConfig(this.getMappingConfigs()):void 0}getMappingConfigs(){const e=new Map
10864
- return this.mappings.forEach((t=>{const n=ID(t.key,this.keyType)
10869
+ class RD extends KT{constructor(){super(...arguments),this.validator=this.createValidator(),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(e,t){e instanceof ev&&"string"==typeof t&&this.updateColumnConfig()}updateColumnConfig(){this.validator.validate(this.mappings,this.keyType),this.columnInternals.columnConfig=this.validator.isValid()?this.createColumnConfig(this.getMappingConfigs()):void 0}getMappingConfigs(){const e=new Map
10870
+ return this.mappings.forEach((t=>{const n=TD(t.key,this.keyType)
10865
10871
  if(void 0===n)throw Error("Key was invalid for type. Validation should have prevented this.")
10866
10872
  const i=this.createMappingConfig(t)
10867
10873
  e.set(n,i)})),e}fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}mappingsChanged(){this.updateColumnConfig(),this.observeMappings()}keyTypeChanged(){this.updateColumnConfig()}removeMappingObservers(){this.mappingNotifiers.forEach((e=>{e.unsubscribe(this)})),this.mappingNotifiers=[]}observeMappings(){this.removeMappingObservers()
10868
10874
  for(const e of this.mappings){const t=m.getNotifier(e)
10869
- t.subscribe(this),this.mappingNotifiers.push(t)}}}e([g],AD.prototype,"mappings",void 0),e([se({attribute:"field-name"})],AD.prototype,"fieldName",void 0),e([se({attribute:"key-type"})],AD.prototype,"keyType",void 0)
10870
- const OD=we`
10871
- ${ZR}
10875
+ t.subscribe(this),this.mappingNotifiers.push(t)}}}e([g],RD.prototype,"mappings",void 0),e([se({attribute:"field-name"})],RD.prototype,"fieldName",void 0),e([se({attribute:"key-type"})],RD.prototype,"keyType",void 0)
10876
+ const DD=we`
10877
+ ${JR}
10872
10878
 
10873
10879
  slot[name='mapping'] {
10874
10880
  display: none;
10875
10881
  }
10876
- `,TD=Z`${GR}<slot ${Ke("mappings")} name="mapping"></slot>`,RD=["invalidMappingKeyValueForType","duplicateMappingKey","missingKeyValue"]
10877
- class DD extends wD{constructor(e,t){super(e,t)}validate(e,t){this.untrackAll()
10882
+ `,ND=Z`${XR}<slot ${Ke("mappings")} name="mapping"></slot>`,PD=["invalidMappingKeyValueForType","duplicateMappingKey","missingKeyValue"]
10883
+ class zD extends kD{constructor(e,t){super(e,t)}validate(e,t){this.untrackAll()
10878
10884
  const n=e.map((e=>e.key))
10879
- this.validateKeyValuesForType(n,t),this.validateUniqueKeys(n,t),this.validateNoMissingKeys(e)}validateKeyValuesForType(e,t){const n=e.some((e=>void 0!==e&&void 0===ID(e,t)))
10880
- this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(e,t){const n=e.map((e=>ID(e,t))),i=new Set(n).size!==n.length
10885
+ this.validateKeyValuesForType(n,t),this.validateUniqueKeys(n,t),this.validateNoMissingKeys(e)}validateKeyValuesForType(e,t){const n=e.some((e=>void 0!==e&&void 0===TD(e,t)))
10886
+ this.setConditionValue("invalidMappingKeyValueForType",n)}validateUniqueKeys(e,t){const n=e.map((e=>TD(e,t))),i=new Set(n).size!==n.length
10881
10887
  this.setConditionValue("duplicateMappingKey",i)}validateNoMissingKeys(e){const t=e.some((e=>void 0===e.key))
10882
- this.setConditionValue("missingKeyValue",t)}}const ND=[...RD,"unsupportedMappingType","missingTextValue"]
10883
- class PD extends DD{constructor(e){super(e,ND)}static isSupportedMappingElement(e){return e instanceof nv}validate(e,t){super.validate(e,t),this.validateMappingTypes(e),this.validateNoMissingText(e)}validateNoMissingText(e){const t=e.filter(PD.isSupportedMappingElement).some((e=>void 0===e.text))
10884
- this.setConditionValue("missingTextValue",t)}validateMappingTypes(e){const t=e.every(PD.isSupportedMappingElement)
10885
- this.setConditionValue("unsupportedMappingType",!t)}}class zD{constructor(e){this.text=e}}class LD extends zD{}const FD=class extends mD{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){const e=this.cellRecord?.value
10888
+ this.setConditionValue("missingKeyValue",t)}}const LD=[...PD,"unsupportedMappingType","missingTextValue"]
10889
+ class FD extends zD{constructor(e){super(e,LD)}static isSupportedMappingElement(e){return e instanceof nv}validate(e,t){super.validate(e,t),this.validateMappingTypes(e),this.validateNoMissingText(e)}validateNoMissingText(e){const t=e.filter(FD.isSupportedMappingElement).some((e=>void 0===e.text))
10890
+ this.setConditionValue("missingTextValue",t)}validateMappingTypes(e){const t=e.every(FD.isSupportedMappingElement)
10891
+ this.setConditionValue("unsupportedMappingType",!t)}}class VD{constructor(e){this.text=e}}class HD extends VD{}const BD=class extends bD{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){const e=this.cellRecord?.value
10886
10892
  if(null==e)return void(this.text="")
10887
10893
  const t=this.columnConfig?.mappingConfigs.get(e)
10888
- this.text=t instanceof LD&&t.text?t.text:""}}.compose({baseName:"table-column-enum-text-cell-view",template:pD,styles:fD})
10889
- bi.getOrCreate().withPrefix("nimble").register(FD())
10890
- const VD=class extends tD{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){const e=this.groupHeaderValue
10894
+ this.text=t instanceof HD&&t.text?t.text:""}}.compose({baseName:"table-column-enum-text-cell-view",template:gD,styles:vD})
10895
+ bi.getOrCreate().withPrefix("nimble").register(BD())
10896
+ const qD=class extends oD{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){const e=this.groupHeaderValue
10891
10897
  if(null==e)return void(this.text="")
10892
10898
  const t=this.columnConfig?.mappingConfigs.get(e)
10893
- this.text=t instanceof LD&&t.text?t.text:""}}.compose({baseName:"table-column-enum-text-group-header-view",template:nD,styles:iD})
10894
- bi.getOrCreate().withPrefix("nimble").register(VD())
10895
- class HD extends(JR(KR(AD))){createValidator(){return new PD(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-enum-text-cell-view",groupHeaderViewTag:"nimble-table-column-enum-text-group-header-view",delegatedEvents:[],sortOperation:PT}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof nv)return new LD(e.text)
10896
- throw new Error("Unsupported mapping")}}const BD=HD.compose({baseName:"table-column-enum-text",template:TD,styles:OD})
10897
- bi.getOrCreate().withPrefix("nimble").register(BD())
10898
- const qD=Z`<span
10899
+ this.text=t instanceof HD&&t.text?t.text:""}}.compose({baseName:"table-column-enum-text-group-header-view",template:rD,styles:sD})
10900
+ bi.getOrCreate().withPrefix("nimble").register(qD())
10901
+ class jD extends(QR(YR(RD))){createValidator(){return new FD(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-enum-text-cell-view",groupHeaderViewTag:"nimble-table-column-enum-text-group-header-view",delegatedEvents:[],sortOperation:HT}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof nv)return new HD(e.text)
10902
+ throw new Error("Unsupported mapping")}}const UD=jD.compose({baseName:"table-column-enum-text",template:ND,styles:DD})
10903
+ bi.getOrCreate().withPrefix("nimble").register(UD())
10904
+ const WD=Z`<span
10899
10905
  ${Wm("hasOverflow")}
10900
10906
  class="header-content"
10901
10907
  title=${e=>e.hasOverflow&&e.headerTextContent?e.headerTextContent:null}
@@ -10903,13 +10909,13 @@ const qD=Z`<span
10903
10909
  <slot ${Ne("contentSlot")}></slot>
10904
10910
  <slot ${Ke({property:"unitElements",filter:We()})} name="unit"></slot>
10905
10911
  </span>`
10906
- const jD=class extends tD{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter?.format(this.groupHeaderValue)??""}}.compose({baseName:"table-column-number-text-group-header-view",template:nD,styles:iD})
10907
- bi.getOrCreate().withPrefix("nimble").register(jD())
10908
- const UD=class extends mD{columnConfigChanged(){this.updateText(),this.alignment=this.columnConfig?.alignment??hD}cellRecordChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:pD,styles:fD})
10909
- bi.getOrCreate().withPrefix("nimble").register(UD())
10910
- const WD="decimal",ZD="left",GD="right"
10911
- class KD{format(e){if("number"!=typeof e)return""
10912
- try{return this.tryFormat(e)}catch{return""}}}class JD{constructor(e){this.locale=e.locale,this.intlNumberFormatOptions=e.intlNumberFormatOptions}}class XD extends JD{constructor(e,t){super(e),this.formatter=new Intl.NumberFormat(this.locale,{...t,...this.intlNumberFormatOptions})}static createFactory(e){return t=>new XD(t,e)}format(e){return this.formatter.format(e)}}class YD{constructor(e,t){this.scaleFactor=e,this.scaledUnitFormatFactory=t}isBase(){return 1===this.scaleFactor}}class QD{constructor(e){this.supportedScaledUnits=e
10912
+ const ZD=class extends oD{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter?.format(this.groupHeaderValue)??""}}.compose({baseName:"table-column-number-text-group-header-view",template:rD,styles:sD})
10913
+ bi.getOrCreate().withPrefix("nimble").register(ZD())
10914
+ const GD=class extends bD{columnConfigChanged(){this.updateText(),this.alignment=this.columnConfig?.alignment??fD}cellRecordChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter?.format(this.cellRecord?.value)??""}}.compose({baseName:"table-column-number-text-cell-view",template:gD,styles:vD})
10915
+ bi.getOrCreate().withPrefix("nimble").register(GD())
10916
+ const KD="decimal",JD="left",XD="right"
10917
+ class YD{format(e){if("number"!=typeof e)return""
10918
+ try{return this.tryFormat(e)}catch{return""}}}class QD{constructor(e){this.locale=e.locale,this.intlNumberFormatOptions=e.intlNumberFormatOptions}}class eN extends QD{constructor(e,t){super(e),this.formatter=new Intl.NumberFormat(this.locale,{...t,...this.intlNumberFormatOptions})}static createFactory(e){return t=>new eN(t,e)}format(e){return this.formatter.format(e)}}class tN{constructor(e,t){this.scaleFactor=e,this.scaledUnitFormatFactory=t}isBase(){return 1===this.scaleFactor}}class nN{constructor(e){this.supportedScaledUnits=e
10913
10919
  const t=e.every(((e,t,n)=>0===t||n[t-1].scaleFactor<e.scaleFactor))
10914
10920
  if(!t)throw new Error("Supported scaled units must have unique and ordered scale factors")
10915
10921
  const n=e.find((e=>e.isBase()))
@@ -10918,8 +10924,8 @@ this.supportedScaledUnits=e,this.baseScaledUnit=n}scaleNumber(e){const t=Math.ab
10918
10924
  if(1===this.supportedScaledUnits.length||0===t||t===1/0||Number.isNaN(t))return{scaledValue:e,scaledUnit:this.baseScaledUnit}
10919
10925
  for(let n=this.supportedScaledUnits.length-1;n>=0;n-=1){const i=this.supportedScaledUnits[n]
10920
10926
  if(t/i.scaleFactor>=1)return{scaledValue:e/i.scaleFactor,scaledUnit:i}}const n=this.supportedScaledUnits[0]
10921
- return{scaledValue:e/n.scaleFactor,scaledUnit:n}}}const eN=new class extends QD{constructor(){super([new YD(1,XD.createFactory({}))])}}
10922
- class tN extends KD{constructor(e,{unitScale:t=eN}={unitScale:eN}){super(),this.defaultIntlNumberFormatOptions={maximumSignificantDigits:tN.maximumDigits,useGrouping:!0},this.defaultScaledUnitFormatters=new Map,this.leadingZeroIntlNumberFormatOptions={maximumFractionDigits:tN.maximumDigits-1,useGrouping:!0},this.leadingZeroScaledUnitFormatters=new Map,this.exponentialIntlNumberFormatOptions={maximumSignificantDigits:tN.maximumDigits,notation:"scientific"}
10927
+ return{scaledValue:e/n.scaleFactor,scaledUnit:n}}}const iN=new class extends nN{constructor(){super([new tN(1,eN.createFactory({}))])}}
10928
+ class oN extends YD{constructor(e,{unitScale:t=iN}={unitScale:iN}){super(),this.defaultIntlNumberFormatOptions={maximumSignificantDigits:oN.maximumDigits,useGrouping:!0},this.defaultScaledUnitFormatters=new Map,this.leadingZeroIntlNumberFormatOptions={maximumFractionDigits:oN.maximumDigits-1,useGrouping:!0},this.leadingZeroScaledUnitFormatters=new Map,this.exponentialIntlNumberFormatOptions={maximumSignificantDigits:oN.maximumDigits,notation:"scientific"}
10923
10929
  for(const n of t.supportedScaledUnits)this.defaultScaledUnitFormatters.set(n.scaleFactor,n.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:this.defaultIntlNumberFormatOptions})),this.leadingZeroScaledUnitFormatters.set(n.scaleFactor,n.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:this.leadingZeroIntlNumberFormatOptions}))
10924
10930
  this.exponentialScaledUnitFormatter=t.baseScaledUnit.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:this.exponentialIntlNumberFormatOptions}),this.unitScale=t}resolvedOptions(){return{unitScale:this.unitScale}}tryFormat(e){const t=0===e?0:e,{scaledValue:n,scaledUnit:i}=this.unitScale.scaleNumber(t)
10925
10931
  switch(this.resolveNumberStyle(n)){case"default":return this.defaultScaledUnitFormatters.get(i.scaleFactor).format(n)
@@ -10927,29 +10933,29 @@ case"leadingZero":return this.leadingZeroScaledUnitFormatters.get(i.scaleFactor)
10927
10933
  case"exponential":return this.exponentialScaledUnitFormatter.format(t)
10928
10934
  default:throw new Error("Unexpected number format style")}}resolveNumberStyle(e){if(0===e)return"default"
10929
10935
  const t=Math.abs(e)
10930
- return t>=tN.exponentialUpperBound||t<tN.exponentialLowerBound?"exponential":t<1?"leadingZero":"default"}}tN.maximumDigits=6,tN.exponentialLowerBound=995e-6,tN.exponentialUpperBound=999999.5
10931
- class nN extends KD{constructor(e,{minimumFractionDigits:t=0,maximumFractionDigits:n=Math.max(3,t),unitScale:i=eN}={minimumFractionDigits:0,maximumFractionDigits:3,unitScale:eN}){super(),this.scaledUnitFormatters=new Map
10936
+ return t>=oN.exponentialUpperBound||t<oN.exponentialLowerBound?"exponential":t<1?"leadingZero":"default"}}oN.maximumDigits=6,oN.exponentialLowerBound=995e-6,oN.exponentialUpperBound=999999.5
10937
+ class rN extends YD{constructor(e,{minimumFractionDigits:t=0,maximumFractionDigits:n=Math.max(3,t),unitScale:i=iN}={minimumFractionDigits:0,maximumFractionDigits:3,unitScale:iN}){super(),this.scaledUnitFormatters=new Map
10932
10938
  const o={maximumFractionDigits:n,minimumFractionDigits:t,useGrouping:!0}
10933
10939
  for(const t of i.supportedScaledUnits)this.scaledUnitFormatters.set(t.scaleFactor,t.scaledUnitFormatFactory({locale:e,intlNumberFormatOptions:o}))
10934
10940
  this.tenPowDecimalDigits=10**n,this.unitScale=i,this.minimumFractionDigits=t,this.maximumFractionDigits=n}resolvedOptions(){return{unitScale:this.unitScale,maximumFractionDigits:this.maximumFractionDigits,minimumFractionDigits:this.minimumFractionDigits}}tryFormat(e){const{scaledValue:t,scaledUnit:n}=this.unitScale.scaleNumber(e),i=this.willRoundToZero(t)?0:t
10935
- return this.scaledUnitFormatters.get(n.scaleFactor).format(i)}willRoundToZero(e){return 0===Math.round(e*this.tenPowDecimalDigits)}}const iN=["invalidDecimalDigits","invalidDecimalMaximumDigits","decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits","moreThanOneUnitSpecified"]
10936
- class oN extends wD{constructor(e){super(e,iN)}validateDecimalDigits(e,t){const n=!!(e===WD&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
10937
- this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(e,t){const n=!!(e===WD&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
10938
- this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(e,t,n){const i=!!(e===WD)&&("number"==typeof t&&"number"==typeof n)
10941
+ return this.scaledUnitFormatters.get(n.scaleFactor).format(i)}willRoundToZero(e){return 0===Math.round(e*this.tenPowDecimalDigits)}}const sN=["invalidDecimalDigits","invalidDecimalMaximumDigits","decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits","moreThanOneUnitSpecified"]
10942
+ class aN extends kD{constructor(e){super(e,sN)}validateDecimalDigits(e,t){const n=!!(e===KD&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
10943
+ this.setConditionValue("invalidDecimalDigits",n)}validateDecimalMaximumDigits(e,t){const n=!!(e===KD&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
10944
+ this.setConditionValue("invalidDecimalMaximumDigits",n)}validateNoMutuallyExclusiveProperties(e,t,n){const i=!!(e===KD)&&("number"==typeof t&&"number"==typeof n)
10939
10945
  this.setConditionValue("decimalDigitsMutuallyExclusiveWithDecimalMaximumDigits",i)}validateAtMostOneUnit(e){const t=e.length>1
10940
- this.setConditionValue("moreThanOneUnitSpecified",t)}isInvalidDecimalDigitsValue(e){return e<0||e>20}}class rN extends Lt{}e([g],rN.prototype,"resolvedUnitScale",void 0)
10941
- class sN extends lD{constructor(){super(...arguments),this.validator=new oN(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}},this.unitSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),xa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),xa.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-number-text-cell-view",groupHeaderViewTag:"nimble-table-column-number-text-group-header-view",delegatedEvents:[],sortOperation:PT}}updateUnitNotifier(){if(this.unitNotifier&&(this.unitNotifier.unsubscribe(this.unitSubscriber),this.unitNotifier=void 0),this.unit){const e=m.getNotifier(this.unit)
10942
- e.subscribe(this.unitSubscriber,"resolvedUnitScale"),this.unitNotifier=e}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}decimalMaximumDigitsChanged(){this.updateColumnConfig()}unitElementsChanged(){this.updateUnit()}async updateUnit(){this.unit=void 0,this.unitElements&&(await EE(this.unitElements),this.unit=this.unitElements.find((e=>e instanceof rN))),this.updateUnitNotifier()}unitChanged(){this.updateColumnConfig()}updateColumnConfig(){if(this.validator.validateDecimalDigits(this.format,this.decimalDigits),this.validator.validateDecimalMaximumDigits(this.format,this.decimalMaximumDigits),this.validator.validateNoMutuallyExclusiveProperties(this.format,this.decimalDigits,this.decimalMaximumDigits),this.validator.validateAtMostOneUnit(this.unitElements??[]),this.validator.isValid()){const e={formatter:this.createFormatter(),alignment:this.determineCellContentAlignment()}
10946
+ this.setConditionValue("moreThanOneUnitSpecified",t)}isInvalidDecimalDigitsValue(e){return e<0||e>20}}class lN extends Lt{}e([g],lN.prototype,"resolvedUnitScale",void 0)
10947
+ class cN extends hD{constructor(){super(...arguments),this.validator=new aN(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}},this.unitSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),xa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),xa.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-number-text-cell-view",groupHeaderViewTag:"nimble-table-column-number-text-group-header-view",delegatedEvents:[],sortOperation:HT}}updateUnitNotifier(){if(this.unitNotifier&&(this.unitNotifier.unsubscribe(this.unitSubscriber),this.unitNotifier=void 0),this.unit){const e=m.getNotifier(this.unit)
10948
+ e.subscribe(this.unitSubscriber,"resolvedUnitScale"),this.unitNotifier=e}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}decimalMaximumDigitsChanged(){this.updateColumnConfig()}unitElementsChanged(){this.updateUnit()}async updateUnit(){this.unit=void 0,this.unitElements&&(await RE(this.unitElements),this.unit=this.unitElements.find((e=>e instanceof lN))),this.updateUnitNotifier()}unitChanged(){this.updateColumnConfig()}updateColumnConfig(){if(this.validator.validateDecimalDigits(this.format,this.decimalDigits),this.validator.validateDecimalMaximumDigits(this.format,this.decimalMaximumDigits),this.validator.validateNoMutuallyExclusiveProperties(this.format,this.decimalDigits,this.decimalMaximumDigits),this.validator.validateAtMostOneUnit(this.unitElements??[]),this.validator.isValid()){const e={formatter:this.createFormatter(),alignment:this.determineCellContentAlignment()}
10943
10949
  this.columnInternals.columnConfig=e}else this.columnInternals.columnConfig=void 0}createFormatter(){const e=this.unit?.resolvedUnitScale
10944
- if(this.format===WD){const t="number"==typeof this.decimalMaximumDigits?0:this.decimalDigits??2,n=this.decimalMaximumDigits??this.decimalDigits??2
10945
- return new nN(xa.getValueFor(this),{minimumFractionDigits:t,maximumFractionDigits:n,unitScale:e})}return new tN(xa.getValueFor(this),{unitScale:e})}determineCellContentAlignment(){return this.alignment===ZD?hD:this.alignment===GD?uD:this.format!==WD||"number"==typeof this.decimalMaximumDigits||this.unit?hD:uD}}e([se],sN.prototype,"format",void 0),e([se],sN.prototype,"alignment",void 0),e([se({attribute:"decimal-digits",converter:oe})],sN.prototype,"decimalDigits",void 0),e([se({attribute:"decimal-maximum-digits",converter:oe})],sN.prototype,"decimalMaximumDigits",void 0),e([g],sN.prototype,"unitElements",void 0),e([g],sN.prototype,"unit",void 0)
10946
- const aN=sN.compose({baseName:"table-column-number-text",template:qD,styles:ZR})
10947
- bi.getOrCreate().withPrefix("nimble").register(aN())
10948
- const lN=[...RD,"unsupportedMappingType","invalidIconName","missingTextValue"]
10949
- class cN extends DD{constructor(e){super(e,lN)}static isIconMappingElement(e){return e instanceof rv}static isSupportedMappingElement(e){return e instanceof rv||e instanceof av}validate(e,t){super.validate(e,t),this.validateMappingTypes(e),this.validateIconNames(e),this.validateNoMissingText(e)}validateIconNames(e){const t=e.filter(cN.isIconMappingElement).some((e=>void 0===e.resolvedIcon))
10950
- this.setConditionValue("invalidIconName",t)}validateNoMissingText(e){const t=e.filter(cN.isSupportedMappingElement).some((e=>void 0===e.text))
10951
- this.setConditionValue("missingTextValue",t)}validateMappingTypes(e){const t=e.every(cN.isSupportedMappingElement)
10952
- this.setConditionValue("unsupportedMappingType",!t)}}const dN=we`
10950
+ if(this.format===KD){const t="number"==typeof this.decimalMaximumDigits?0:this.decimalDigits??2,n=this.decimalMaximumDigits??this.decimalDigits??2
10951
+ return new rN(xa.getValueFor(this),{minimumFractionDigits:t,maximumFractionDigits:n,unitScale:e})}return new oN(xa.getValueFor(this),{unitScale:e})}determineCellContentAlignment(){return this.alignment===JD?fD:this.alignment===XD?mD:this.format!==KD||"number"==typeof this.decimalMaximumDigits||this.unit?fD:mD}}e([se],cN.prototype,"format",void 0),e([se],cN.prototype,"alignment",void 0),e([se({attribute:"decimal-digits",converter:oe})],cN.prototype,"decimalDigits",void 0),e([se({attribute:"decimal-maximum-digits",converter:oe})],cN.prototype,"decimalMaximumDigits",void 0),e([g],cN.prototype,"unitElements",void 0),e([g],cN.prototype,"unit",void 0)
10952
+ const dN=cN.compose({baseName:"table-column-number-text",template:WD,styles:JR})
10953
+ bi.getOrCreate().withPrefix("nimble").register(dN())
10954
+ const hN=[...PD,"unsupportedMappingType","invalidIconName","missingTextValue"]
10955
+ class uN extends zD{constructor(e){super(e,hN)}static isIconMappingElement(e){return e instanceof rv}static isSupportedMappingElement(e){return e instanceof rv||e instanceof av}validate(e,t){super.validate(e,t),this.validateMappingTypes(e),this.validateIconNames(e),this.validateNoMissingText(e)}validateIconNames(e){const t=e.filter(uN.isIconMappingElement).some((e=>void 0===e.resolvedIcon))
10956
+ this.setConditionValue("invalidIconName",t)}validateNoMissingText(e){const t=e.filter(uN.isSupportedMappingElement).some((e=>void 0===e.text))
10957
+ this.setConditionValue("missingTextValue",t)}validateMappingTypes(e){const t=e.every(uN.isSupportedMappingElement)
10958
+ this.setConditionValue("unsupportedMappingType",!t)}}const pN=we`
10953
10959
  ${Oo("inline-flex")}
10954
10960
 
10955
10961
  :host {
@@ -10969,7 +10975,7 @@ this.setConditionValue("unsupportedMappingType",!t)}}const dN=we`
10969
10975
  overflow: hidden;
10970
10976
  text-overflow: ellipsis;
10971
10977
  }
10972
- `,hN=Z`
10978
+ `,fN=Z`
10973
10979
  ${Fe((e=>"icon"===e.visual),Z`
10974
10980
  ${e=>e.iconTemplate}
10975
10981
  <span
@@ -10977,18 +10983,18 @@ this.setConditionValue("unsupportedMappingType",!t)}}const dN=we`
10977
10983
  title="${e=>e.hasOverflow&&e.text?e.text:null}"
10978
10984
  >${e=>e.text}</span>`)}
10979
10985
  ${Fe((e=>"spinner"===e.visual),Z`
10980
- <${AO}
10986
+ <${NO}
10981
10987
  title="${e=>e.text}"
10982
10988
  aria-label="${e=>e.text}"
10983
10989
  class="no-shrink">
10984
- </${AO}>
10990
+ </${NO}>
10985
10991
  <span
10986
10992
  ${Wm("hasOverflow")}
10987
10993
  title="${e=>e.hasOverflow&&e.text?e.text:null}"
10988
10994
  >${e=>e.text}</span>
10989
10995
  `)}
10990
10996
  `
10991
- class uN extends zD{constructor(e,t,n){var i
10997
+ class mN extends VD{constructor(e,t,n){var i
10992
10998
  super(n),this.severity=t,this.iconTemplate=Z`
10993
10999
  <${i=e}
10994
11000
  title="${e=>e.text}"
@@ -10997,39 +11003,39 @@ super(n),this.severity=t,this.iconTemplate=Z`
10997
11003
  severity="${e=>e.severity}"
10998
11004
  class="no-shrink"
10999
11005
  >
11000
- </${i}>`}}class pN extends zD{constructor(e){super(e)}}class fN extends tD{columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig)return
11006
+ </${i}>`}}class gN extends VD{constructor(e){super(e)}}class vN extends oD{columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig)return
11001
11007
  const e=this.groupHeaderValue
11002
11008
  if(null==e)return
11003
11009
  const t=this.columnConfig.mappingConfigs.get(e)
11004
- t instanceof uN?(this.visual="icon",this.severity=t.severity,this.text=t.text??"",this.iconTemplate=t.iconTemplate):t instanceof pN&&(this.visual="spinner",this.text=t.text??"")}}e([g],fN.prototype,"severity",void 0),e([g],fN.prototype,"iconTemplate",void 0),e([g],fN.prototype,"visual",void 0)
11005
- const mN=fN.compose({baseName:"table-column-icon-group-header-view",template:hN,styles:dN})
11006
- bi.getOrCreate().withPrefix("nimble").register(mN())
11007
- const gN=Z`
11010
+ t instanceof mN?(this.visual="icon",this.severity=t.severity,this.text=t.text??"",this.iconTemplate=t.iconTemplate):t instanceof gN&&(this.visual="spinner",this.text=t.text??"")}}e([g],vN.prototype,"severity",void 0),e([g],vN.prototype,"iconTemplate",void 0),e([g],vN.prototype,"visual",void 0)
11011
+ const bN=vN.compose({baseName:"table-column-icon-group-header-view",template:fN,styles:pN})
11012
+ bi.getOrCreate().withPrefix("nimble").register(bN())
11013
+ const wN=Z`
11008
11014
  ${Fe((e=>"icon"===e.visual),(e=>e.iconTemplate))}
11009
11015
  ${Fe((e=>"spinner"===e.visual),Z`
11010
- <${AO}
11016
+ <${NO}
11011
11017
  title="${e=>e.text}"
11012
11018
  aria-label="${e=>e.text}"
11013
11019
  class="no-shrink">
11014
- </${AO}>
11020
+ </${NO}>
11015
11021
  `)}
11016
11022
  `
11017
- class vN extends VT{columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig||!this.cellRecord)return
11023
+ class yN extends UT{columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig||!this.cellRecord)return
11018
11024
  const e=this.cellRecord.value
11019
11025
  if(null==e)return
11020
11026
  const t=this.columnConfig.mappingConfigs.get(e)
11021
- t instanceof uN?(this.visual="icon",this.severity=t.severity,this.text=t.text,this.iconTemplate=t.iconTemplate):t instanceof pN&&(this.visual="spinner",this.text=t.text)}}e([g],vN.prototype,"severity",void 0),e([g],vN.prototype,"text",void 0),e([g],vN.prototype,"iconTemplate",void 0),e([g],vN.prototype,"visual",void 0)
11022
- const bN=vN.compose({baseName:"table-column-icon-cell-view",template:gN})
11023
- bi.getOrCreate().withPrefix("nimble").register(bN())
11024
- class wN extends(JR(KR(AD))){createValidator(){return new cN(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-icon-cell-view",groupHeaderViewTag:"nimble-table-column-icon-group-header-view",delegatedEvents:[],sortOperation:PT}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof rv){if(!e.resolvedIcon)throw Error("Unresolved icon")
11025
- return new uN(e.resolvedIcon,e.severity,e.text)}if(e instanceof av)return new pN(e.text)
11026
- throw new Error("Unsupported mapping")}}const yN=wN.compose({baseName:"table-column-icon",template:TD,styles:OD})
11027
- bi.getOrCreate().withPrefix("nimble").register(yN())
11028
- const xN=class extends mD{cellRecordChanged(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:pD,styles:fD})
11027
+ t instanceof mN?(this.visual="icon",this.severity=t.severity,this.text=t.text,this.iconTemplate=t.iconTemplate):t instanceof gN&&(this.visual="spinner",this.text=t.text)}}e([g],yN.prototype,"severity",void 0),e([g],yN.prototype,"text",void 0),e([g],yN.prototype,"iconTemplate",void 0),e([g],yN.prototype,"visual",void 0)
11028
+ const xN=yN.compose({baseName:"table-column-icon-cell-view",template:wN})
11029
11029
  bi.getOrCreate().withPrefix("nimble").register(xN())
11030
- const kN=class extends lD{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:rD,delegatedEvents:[],sortOperation:zT}}}.compose({baseName:"table-column-text",template:GR,styles:ZR})
11031
- bi.getOrCreate().withPrefix("nimble").register(kN())
11032
- const CN=we`
11030
+ class kN extends(QR(YR(RD))){createValidator(){return new uN(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-icon-cell-view",groupHeaderViewTag:"nimble-table-column-icon-group-header-view",delegatedEvents:[],sortOperation:HT}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof rv){if(!e.resolvedIcon)throw Error("Unresolved icon")
11031
+ return new mN(e.resolvedIcon,e.severity,e.text)}if(e instanceof av)return new gN(e.text)
11032
+ throw new Error("Unsupported mapping")}}const CN=kN.compose({baseName:"table-column-icon",template:ND,styles:DD})
11033
+ bi.getOrCreate().withPrefix("nimble").register(CN())
11034
+ const SN=class extends bD{cellRecordChanged(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}.compose({baseName:"table-column-text-cell-view",template:gD,styles:vD})
11035
+ bi.getOrCreate().withPrefix("nimble").register(SN())
11036
+ const $N=class extends hD{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:"nimble-table-column-text-cell-view",groupHeaderViewTag:lD,delegatedEvents:[],sortOperation:BT}}}.compose({baseName:"table-column-text",template:XR,styles:JR})
11037
+ bi.getOrCreate().withPrefix("nimble").register($N())
11038
+ const MN=we`
11033
11039
  ${Oo("grid")}
11034
11040
 
11035
11041
  :host {
@@ -11057,7 +11063,7 @@ const CN=we`
11057
11063
  overflow: auto;
11058
11064
  }
11059
11065
  `
11060
- const SN=class extends oo{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:oo,template:(e,t)=>Z`
11066
+ const _N=class extends oo{constructor(){super(),this.activeindicator=!1}}.compose({baseName:"tabs",baseClass:oo,template:(e,t)=>Z`
11061
11067
  <template class="${e=>e.orientation}">
11062
11068
  ${et(0,t)}
11063
11069
  <div class="tablist" part="tablist" role="tablist">
@@ -11076,9 +11082,9 @@ const SN=class extends oo{constructor(){super(),this.activeindicator=!1}}.compos
11076
11082
  <slot name="tabpanel" ${Ke("tabpanels")}></slot>
11077
11083
  </div>
11078
11084
  </template>
11079
- `,styles:CN})
11080
- bi.getOrCreate().withPrefix("nimble").register(SN())
11081
- const $N=we`
11085
+ `,styles:MN})
11086
+ bi.getOrCreate().withPrefix("nimble").register(_N())
11087
+ const EN=we`
11082
11088
  ${Oo("flex")}
11083
11089
 
11084
11090
  :host {
@@ -11096,15 +11102,15 @@ const $N=we`
11096
11102
  rgba(${Na}, 0.3);
11097
11103
  margin: ${tl} ${nl};
11098
11104
  }
11099
- `,MN=Z`
11105
+ `,IN=Z`
11100
11106
  <template slot="end">
11101
11107
  <div class="separator"></div>
11102
11108
  <slot></slot>
11103
11109
  </template>
11104
11110
  `
11105
- const _N=class extends Lt{}.compose({baseName:"tabs-toolbar",template:MN,styles:$N})
11106
- bi.getOrCreate().withPrefix("nimble").register(_N())
11107
- const EN="outline",IN="block",AN=we`
11111
+ const AN=class extends Lt{}.compose({baseName:"tabs-toolbar",template:IN,styles:EN})
11112
+ bi.getOrCreate().withPrefix("nimble").register(AN())
11113
+ const ON="outline",TN="block",RN=we`
11108
11114
  ${Oo("inline-flex")}
11109
11115
  ${qm}
11110
11116
 
@@ -11244,12 +11250,12 @@ const EN="outline",IN="block",AN=we`
11244
11250
  top: ${nl};
11245
11251
  right: var(--ni-private-scrollbar-width);
11246
11252
  }
11247
- `.withBehaviors(th(EN,we`
11253
+ `.withBehaviors(th(ON,we`
11248
11254
  .control {
11249
11255
  border-color: rgba(${Na}, 0.3);
11250
11256
  background-color: transparent;
11251
11257
  }
11252
- `),th(IN,we`
11258
+ `),th(TN,we`
11253
11259
  .control {
11254
11260
  background-color: rgba(${Na}, 0.1);
11255
11261
  }
@@ -11267,8 +11273,8 @@ const EN="outline",IN="block",AN=we`
11267
11273
  border-bottom-color: ${Pa};
11268
11274
  }
11269
11275
  `))
11270
- class ON extends lo{constructor(){super(...arguments),this.appearance=EN,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(e,t){super.valueChanged(e,t),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}e([se],ON.prototype,"appearance",void 0),e([se({attribute:"error-text"})],ON.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],ON.prototype,"errorVisible",void 0),e([g],ON.prototype,"scrollbarWidth",void 0)
11271
- const TN=ON.compose({baseName:"text-area",baseClass:lo,template:()=>Z`
11276
+ class DN extends lo{constructor(){super(...arguments),this.appearance=ON,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}onTextAreaInput(){this.handleTextInput(),this.queueUpdateScrollbarWidth()}placeholderChanged(){this.queueUpdateScrollbarWidth()}valueChanged(e,t){super.valueChanged(e,t),this.queueUpdateScrollbarWidth()}onResize(){this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}queueUpdateScrollbarWidth(){this.$fastController.isConnected&&(this.updateScrollbarWidthQueued||(this.updateScrollbarWidthQueued=!0,u.queueUpdate((()=>this.updateScrollbarWidth()))))}updateScrollbarWidth(){this.updateScrollbarWidthQueued=!1,this.scrollbarWidth=this.control.offsetWidth-this.control.clientWidth}}e([se],DN.prototype,"appearance",void 0),e([se({attribute:"error-text"})],DN.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],DN.prototype,"errorVisible",void 0),e([g],DN.prototype,"scrollbarWidth",void 0)
11277
+ const NN=DN.compose({baseName:"text-area",baseClass:lo,template:()=>Z`
11272
11278
  <label
11273
11279
  part="label"
11274
11280
  for="control"
@@ -11325,9 +11331,9 @@ const TN=ON.compose({baseName:"text-area",baseClass:lo,template:()=>Z`
11325
11331
  ></${Yf}>
11326
11332
  ${Pm}
11327
11333
  </div>
11328
- `,styles:AN,shadowOptions:{delegatesFocus:!0}})
11329
- bi.getOrCreate().withPrefix("nimble").register(TN())
11330
- const RN="underline",DN="outline",NN="block",PN="frameless",zN=we`
11334
+ `,styles:RN,shadowOptions:{delegatesFocus:!0}})
11335
+ bi.getOrCreate().withPrefix("nimble").register(NN())
11336
+ const PN="underline",zN="outline",LN="block",FN="frameless",VN=we`
11331
11337
  ${Oo("inline-block")}
11332
11338
  ${qm}
11333
11339
 
@@ -11499,12 +11505,12 @@ const RN="underline",DN="outline",NN="block",PN="frameless",zN=we`
11499
11505
  slot[name='actions']::slotted(*) {
11500
11506
  ${Qa.cssCustomProperty}: 24px;
11501
11507
  }
11502
- `.withBehaviors(th(RN,we`
11508
+ `.withBehaviors(th(PN,we`
11503
11509
  .root {
11504
11510
  border-bottom-width: ${rl};
11505
11511
  padding-bottom: 0;
11506
11512
  }
11507
- `),th(NN,we`
11513
+ `),th(LN,we`
11508
11514
  .root {
11509
11515
  background-color: rgba(${Na}, 0.1);
11510
11516
  }
@@ -11532,12 +11538,12 @@ const RN="underline",DN="outline",NN="block",PN="frameless",zN=we`
11532
11538
  :host([disabled]) .root {
11533
11539
  background-color: rgba(${Na}, 0.07);
11534
11540
  }
11535
- `),th(DN,we`
11541
+ `),th(zN,we`
11536
11542
  .root {
11537
11543
  border-width: ${rl};
11538
11544
  padding: 0;
11539
11545
  }
11540
- `),th(PN,we`
11546
+ `),th(FN,we`
11541
11547
  .control {
11542
11548
  padding-left: ${rl};
11543
11549
  padding-right: ${rl};
@@ -11555,8 +11561,8 @@ const RN="underline",DN="outline",NN="block",PN="frameless",zN=we`
11555
11561
  filter: invert(100%);
11556
11562
  }
11557
11563
  `))
11558
- class LN extends Li{constructor(){super(...arguments),this.appearance=RN,this.errorVisible=!1,this.fullBleed=!1}}e([se],LN.prototype,"appearance",void 0),e([se({attribute:"error-text"})],LN.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],LN.prototype,"errorVisible",void 0),e([se({attribute:"full-bleed",mode:"boolean"})],LN.prototype,"fullBleed",void 0)
11559
- const FN=LN.compose({baseName:"text-field",baseClass:Li,template:(e,t)=>Z`
11564
+ class HN extends Li{constructor(){super(...arguments),this.appearance=PN,this.errorVisible=!1,this.fullBleed=!1}}e([se],HN.prototype,"appearance",void 0),e([se({attribute:"error-text"})],HN.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],HN.prototype,"errorVisible",void 0),e([se({attribute:"full-bleed",mode:"boolean"})],HN.prototype,"fullBleed",void 0)
11565
+ const BN=HN.compose({baseName:"text-field",baseClass:Li,template:(e,t)=>Z`
11560
11566
  <template
11561
11567
  class="
11562
11568
  ${e=>e.readOnly?"readonly":""}
@@ -11616,7 +11622,7 @@ const FN=LN.compose({baseName:"text-field",baseClass:Li,template:(e,t)=>Z`
11616
11622
  ${Qe(0,t)}
11617
11623
  </div>
11618
11624
  </template>
11619
- `,styles:zN,shadowOptions:{delegatesFocus:!0},end:Z`
11625
+ `,styles:VN,shadowOptions:{delegatesFocus:!0},end:Z`
11620
11626
  <${Yf}
11621
11627
  severity="error"
11622
11628
  class="error-icon"
@@ -11626,8 +11632,8 @@ const FN=LN.compose({baseName:"text-field",baseClass:Li,template:(e,t)=>Z`
11626
11632
  </span>
11627
11633
  ${Pm}
11628
11634
  `})
11629
- bi.getOrCreate().withPrefix("nimble").register(FN())
11630
- const VN=we`
11635
+ bi.getOrCreate().withPrefix("nimble").register(BN())
11636
+ const qN=we`
11631
11637
  ${Oo("inline-flex")}
11632
11638
 
11633
11639
  :host {
@@ -11712,7 +11718,7 @@ const VN=we`
11712
11718
  .status-icon {
11713
11719
  opacity: 0.6;
11714
11720
  }
11715
- `)),HN=Z`
11721
+ `)),jN=Z`
11716
11722
  ${Fe((e=>e.tooltipVisible),Z`
11717
11723
  <${$h}
11718
11724
  class="anchored-region"
@@ -11745,11 +11751,11 @@ const VN=we`
11745
11751
  </${$h}>
11746
11752
  `)}
11747
11753
  `
11748
- class BN extends _o{constructor(){super(...arguments),this.iconVisible=!1}}e([se],BN.prototype,"severity",void 0),e([se({attribute:"icon-visible",mode:"boolean"})],BN.prototype,"iconVisible",void 0)
11749
- const qN=BN.compose({baseName:"tooltip",baseClass:_o,template:HN,styles:VN})
11750
- bi.getOrCreate().withPrefix("nimble").register(qN())
11751
- const jN="group-selected",UN="all",WN="leaves-only",ZN="none"
11752
- class GN{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const KN=we`
11754
+ class UN extends _o{constructor(){super(...arguments),this.iconVisible=!1}}e([se],UN.prototype,"severity",void 0),e([se({attribute:"icon-visible",mode:"boolean"})],UN.prototype,"iconVisible",void 0)
11755
+ const WN=UN.compose({baseName:"tooltip",baseClass:_o,template:jN,styles:qN})
11756
+ bi.getOrCreate().withPrefix("nimble").register(WN())
11757
+ const ZN="group-selected",GN="all",KN="leaves-only",JN="none"
11758
+ class XN{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(null!==this.attached&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],null!==this.attached&&this.source.$fastController.addStyles(this.attached))}}const YN=we`
11753
11759
  ${Oo("block")}
11754
11760
 
11755
11761
  :host {
@@ -11770,7 +11776,7 @@ class GN{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
11770
11776
  }
11771
11777
 
11772
11778
  ${""}
11773
- :host([${jN}])::after {
11779
+ :host([${ZN}])::after {
11774
11780
  background: ${Va};
11775
11781
  border-radius: 0px;
11776
11782
  content: '';
@@ -11792,7 +11798,7 @@ class GN{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
11792
11798
  background: ${Ra};
11793
11799
  }
11794
11800
 
11795
- :host([${jN}]) .positioning-region:hover {
11801
+ :host([${ZN}]) .positioning-region:hover {
11796
11802
  background: ${Ta};
11797
11803
  }
11798
11804
 
@@ -11898,7 +11904,7 @@ class GN{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
11898
11904
  display: block;
11899
11905
  }
11900
11906
  `.withBehaviors(new class{constructor(e,t){this.cache=new WeakMap,this.ltr=e,this.rtl=t}bind(e){this.attach(e)}unbind(e){const t=this.cache.get(e)
11901
- t&&ka.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new GN(this.ltr,this.rtl,e),n=ka.getValueFor(e)
11907
+ t&&ka.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new XN(this.ltr,this.rtl,e),n=ka.getValueFor(e)
11902
11908
  ka.subscribe(t),t.attach(n),this.cache.set(e,t)}}(we`
11903
11909
  .expand-collapse-button {
11904
11910
  left: var(
@@ -11930,8 +11936,8 @@ ka.subscribe(t),t.attach(n),this.cache.set(e,t)}}(we`
11930
11936
  transform: rotate(135deg);
11931
11937
  }
11932
11938
  `))
11933
- class JN extends Io{constructor(){super(...arguments),this.groupSelected=!1}}e([se({attribute:"group-selected",mode:"boolean"})],JN.prototype,"groupSelected",void 0)
11934
- const XN=JN.compose({baseName:"tree-item",baseClass:Io,template:(e,t)=>Z`
11939
+ class QN extends Io{constructor(){super(...arguments),this.groupSelected=!1}}e([se({attribute:"group-selected",mode:"boolean"})],QN.prototype,"groupSelected",void 0)
11940
+ const eP=QN.compose({baseName:"tree-item",baseClass:Io,template:(e,t)=>Z`
11935
11941
  <template
11936
11942
  role="treeitem"
11937
11943
  slot="${e=>e.isNestedItem()?"item":void 0}"
@@ -11971,9 +11977,9 @@ const XN=JN.compose({baseName:"tree-item",baseClass:Io,template:(e,t)=>Z`
11971
11977
  </div>
11972
11978
  `)}
11973
11979
  </template>
11974
- `,styles:KN,expandCollapseGlyph:Vh.data})
11975
- bi.getOrCreate().withPrefix("nimble").register(XN())
11976
- const YN=we`
11980
+ `,styles:YN,expandCollapseGlyph:Vh.data})
11981
+ bi.getOrCreate().withPrefix("nimble").register(eP())
11982
+ const tP=we`
11977
11983
  ${Oo("flex")}
11978
11984
 
11979
11985
  :host {
@@ -11985,7 +11991,7 @@ const YN=we`
11985
11991
  :host(${Do}) {
11986
11992
  outline: none;
11987
11993
  }
11988
- `,QN=Z`
11994
+ `,nP=Z`
11989
11995
  <template
11990
11996
  role="tree"
11991
11997
  ${Ne("treeView")}
@@ -11999,246 +12005,246 @@ const YN=we`
11999
12005
  <slot ${Ke("slottedTreeItems")}></slot>
12000
12006
  </template>
12001
12007
  `
12002
- class eP extends Ao{constructor(){super(...arguments),this.selectionMode=UN,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
12008
+ class iP extends Ao{constructor(){super(...arguments),this.selectionMode=GN,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
12003
12009
  if(!(e.target instanceof Element&&Eo(e.target)))return!0
12004
12010
  const t=e.target
12005
- return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case UN:return!0
12006
- case ZN:return!1
12007
- case WN:return!this.itemHasChildren(e)
12008
- default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof JN&&(e.groupSelected=!1)
12011
+ return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case GN:return!0
12012
+ case JN:return!1
12013
+ case KN:return!this.itemHasChildren(e)
12014
+ default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof QN&&(e.groupSelected=!1)
12009
12015
  for(let e of this.selectedItems){for(;null!==e.parentElement&&e.parentElement!==this;)e=e.parentElement
12010
- e instanceof JN&&(e.groupSelected=!0)}}}e([se({attribute:"selection-mode"})],eP.prototype,"selectionMode",void 0),e([g],eP.prototype,"selectedItems",void 0)
12011
- const tP=eP.compose({baseName:"tree-view",baseClass:Ao,template:QN,styles:YN})
12012
- bi.getOrCreate().withPrefix("nimble").register(tP())
12013
- const nP=Z`<template slot="unit"></template>`
12014
- class iP{constructor(e,t,n){this.singular=e,this.plural=t,this.symbol=n}}class oP extends JD{constructor(e,{unitTranslations:t,scaledPrefixText:n}){if(super(e),!t.get("en"))throw new Error('English translations must exist with locale string "en"')
12015
- this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(t,this.locale),this.scaledPrefixText=n}static createFactory(e){return t=>new oP(t,e)}format(e){const t=this.formatter.format(e)
12016
+ e instanceof QN&&(e.groupSelected=!0)}}}e([se({attribute:"selection-mode"})],iP.prototype,"selectionMode",void 0),e([g],iP.prototype,"selectedItems",void 0)
12017
+ const oP=iP.compose({baseName:"tree-view",baseClass:Ao,template:nP,styles:tP})
12018
+ bi.getOrCreate().withPrefix("nimble").register(oP())
12019
+ const rP=Z`<template slot="unit"></template>`
12020
+ class sP{constructor(e,t,n){this.singular=e,this.plural=t,this.symbol=n}}class aP extends QD{constructor(e,{unitTranslations:t,scaledPrefixText:n}){if(super(e),!t.get("en"))throw new Error('English translations must exist with locale string "en"')
12021
+ this.pluralRules=new Intl.PluralRules(this.locale),this.formatter=new Intl.NumberFormat(this.locale,this.intlNumberFormatOptions),this.unitTranslation=this.getTranslationToUse(t,this.locale),this.scaledPrefixText=n}static createFactory(e){return t=>new aP(t,e)}format(e){const t=this.formatter.format(e)
12016
12022
  if(""!==this.scaledPrefixText)return`${t} ${this.scaledPrefixText}${this.unitTranslation.symbol}`
12017
12023
  return`${t} ${"one"===this.pluralRules.select(e)?this.unitTranslation.singular:this.unitTranslation.plural}`}getTranslationToUse(e,t){const n=new Intl.Locale(t??"en"),i=n.language,o=n.region
12018
- return(o?e.get(`${i}-${o}`):void 0)??e.get(i)??e.get("en")}}const rP=new Map([["en",new iP("byte","bytes","B")],["fr",new iP("octet","octets","o")],["de",new iP("Byte","Byte","B")],["ja",new iP("バイト","バイト","B")],["zh",new iP("字节","字节","B")]]),sP=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
12019
- const aP=new class extends QD{constructor(){super(sP.map((([e,t])=>new YD(e,oP.createFactory({unitTranslations:rP,scaledPrefixText:t})))))}},lP=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
12020
- const cP=new class extends QD{constructor(){super(lP.map((([e,t,n])=>new YD(e,XD.createFactory({style:"unit",unit:t,unitDisplay:n})))))}}
12021
- class dP extends rN{constructor(){super(),this.binary=!1,this.resolvedUnitScale=cP}binaryChanged(){this.resolvedUnitScale=this.binary?aP:cP}}e([se({mode:"boolean"})],dP.prototype,"binary",void 0)
12022
- const hP=dP.compose({baseName:"unit-byte",template:nP})
12023
- bi.getOrCreate().withPrefix("nimble").register(hP())
12024
- const uP=[[1e-15,"f"],[1e-12,"p"],[1e-9,"n"],[10**-6,"μ"],[.001,"m"],[.01,"c"],[.1,"d"],[1,""],[1e3,"k"],[10**6,"M"],[10**9,"G"],[10**12,"T"],[10**15,"P"],[10**18,"E"]],pP=new Map([["en",new iP("volt","volts","V")],["fr",new iP("volt","volts","V")],["de",new iP("Volt","Volt","V")],["ja",new iP("ボルト","ボルト","V")],["zh",new iP("伏特","伏特","V")]])
12025
- const fP=new class extends QD{constructor(){super(uP.map((([e,t])=>new YD(e,oP.createFactory({unitTranslations:pP,scaledPrefixText:t})))))}}
12026
- const mP=class extends rN{constructor(){super(),this.resolvedUnitScale=fP}}.compose({baseName:"unit-volt",template:nP})
12027
- bi.getOrCreate().withPrefix("nimble").register(mP())
12028
- var gP={value:()=>{}}
12029
- function vP(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e)
12030
- i[e]=[]}return new bP(i)}function bP(e){this._=e}function wP(e,t){for(var n,i=0,o=e.length;i<o;++i)if((n=e[i]).name===t)return n.value}function yP(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=gP,e=e.slice(0,i).concat(e.slice(i+1))
12031
- break}return null!=n&&e.push({name:t,value:n}),e}bP.prototype=vP.prototype={constructor:bP,on:function(e,t){var n,i,o=this._,r=(i=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
12024
+ return(o?e.get(`${i}-${o}`):void 0)??e.get(i)??e.get("en")}}const lP=new Map([["en",new sP("byte","bytes","B")],["fr",new sP("octet","octets","o")],["de",new sP("Byte","Byte","B")],["ja",new sP("バイト","バイト","B")],["zh",new sP("字节","字节","B")]]),cP=[[1,""],[1024,"Ki"],[1048576,"Mi"],[1024**3,"Gi"],[1024**4,"Ti"],[1024**5,"Pi"]]
12025
+ const dP=new class extends nN{constructor(){super(cP.map((([e,t])=>new tN(e,aP.createFactory({unitTranslations:lP,scaledPrefixText:t})))))}},hP=[[1,"byte","long"],[1e3,"kilobyte","short"],[1e6,"megabyte","short"],[1e3**3,"gigabyte","short"],[1e3**4,"terabyte","short"],[1e3**5,"petabyte","short"]]
12026
+ const uP=new class extends nN{constructor(){super(hP.map((([e,t,n])=>new tN(e,eN.createFactory({style:"unit",unit:t,unitDisplay:n})))))}}
12027
+ class pP extends lN{constructor(){super(),this.binary=!1,this.resolvedUnitScale=uP}binaryChanged(){this.resolvedUnitScale=this.binary?dP:uP}}e([se({mode:"boolean"})],pP.prototype,"binary",void 0)
12028
+ const fP=pP.compose({baseName:"unit-byte",template:rP})
12029
+ bi.getOrCreate().withPrefix("nimble").register(fP())
12030
+ const mP=[[1e-15,"f"],[1e-12,"p"],[1e-9,"n"],[10**-6,"μ"],[.001,"m"],[.01,"c"],[.1,"d"],[1,""],[1e3,"k"],[10**6,"M"],[10**9,"G"],[10**12,"T"],[10**15,"P"],[10**18,"E"]],gP=new Map([["en",new sP("volt","volts","V")],["fr",new sP("volt","volts","V")],["de",new sP("Volt","Volt","V")],["ja",new sP("ボルト","ボルト","V")],["zh",new sP("伏特","伏特","V")]])
12031
+ const vP=new class extends nN{constructor(){super(mP.map((([e,t])=>new tN(e,aP.createFactory({unitTranslations:gP,scaledPrefixText:t})))))}}
12032
+ const bP=class extends lN{constructor(){super(),this.resolvedUnitScale=vP}}.compose({baseName:"unit-volt",template:rP})
12033
+ bi.getOrCreate().withPrefix("nimble").register(bP())
12034
+ var wP={value:()=>{}}
12035
+ function yP(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e)
12036
+ i[e]=[]}return new xP(i)}function xP(e){this._=e}function kP(e,t){for(var n,i=0,o=e.length;i<o;++i)if((n=e[i]).name===t)return n.value}function CP(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=wP,e=e.slice(0,i).concat(e.slice(i+1))
12037
+ break}return null!=n&&e.push({name:t,value:n}),e}xP.prototype=yP.prototype={constructor:xP,on:function(e,t){var n,i,o=this._,r=(i=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
12032
12038
  if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!i.hasOwnProperty(e))throw new Error("unknown type: "+e)
12033
12039
  return{type:e,name:t}}))),s=-1,a=r.length
12034
12040
  if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
12035
- for(;++s<a;)if(n=(e=r[s]).type)o[n]=yP(o[n],e.name,t)
12036
- else if(null==t)for(n in o)o[n]=yP(o[n],e.name,null)
12037
- return this}for(;++s<a;)if((n=(e=r[s]).type)&&(n=wP(o[n],e.name)))return n},copy:function(){var e={},t=this._
12041
+ for(;++s<a;)if(n=(e=r[s]).type)o[n]=CP(o[n],e.name,t)
12042
+ else if(null==t)for(n in o)o[n]=CP(o[n],e.name,null)
12043
+ return this}for(;++s<a;)if((n=(e=r[s]).type)&&(n=kP(o[n],e.name)))return n},copy:function(){var e={},t=this._
12038
12044
  for(var n in t)e[n]=t[n].slice()
12039
- return new bP(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),r=0;r<n;++r)o[r]=arguments[r+2]
12045
+ return new xP(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),r=0;r<n;++r)o[r]=arguments[r+2]
12040
12046
  if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
12041
12047
  for(r=0,n=(i=this._[e]).length;r<n;++r)i[r].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
12042
12048
  for(var i=this._[e],o=0,r=i.length;o<r;++o)i[o].value.apply(t,n)}}
12043
- var xP="http://www.w3.org/1999/xhtml",kP={svg:"http://www.w3.org/2000/svg",xhtml:xP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
12044
- function CP(e){var t=e+="",n=t.indexOf(":")
12045
- return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),kP.hasOwnProperty(t)?{space:kP[t],local:e}:e}function SP(e){return function(){var t=this.ownerDocument,n=this.namespaceURI
12046
- return n===xP&&t.documentElement.namespaceURI===xP?t.createElement(e):t.createElementNS(n,e)}}function $P(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function MP(e){var t=CP(e)
12047
- return(t.local?$P:SP)(t)}function _P(){}function EP(e){return null==e?_P:function(){return this.querySelector(e)}}function IP(){return[]}function AP(e){return null==e?IP:function(){return this.querySelectorAll(e)}}function OP(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t)
12048
- var t}}function TP(e){return function(){return this.matches(e)}}function RP(e){return function(t){return t.matches(e)}}var DP=Array.prototype.find
12049
- function NP(){return this.firstElementChild}var PP=Array.prototype.filter
12050
- function zP(){return Array.from(this.children)}function LP(e){return new Array(e.length)}function FP(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function VP(e,t,n,i,o,r){for(var s,a=0,l=t.length,c=r.length;a<c;++a)(s=t[a])?(s.__data__=r[a],i[a]=s):n[a]=new FP(e,r[a])
12051
- for(;a<l;++a)(s=t[a])&&(o[a]=s)}function HP(e,t,n,i,o,r,s){var a,l,c,d=new Map,h=t.length,u=r.length,p=new Array(h)
12049
+ var SP="http://www.w3.org/1999/xhtml",$P={svg:"http://www.w3.org/2000/svg",xhtml:SP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
12050
+ function MP(e){var t=e+="",n=t.indexOf(":")
12051
+ return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),$P.hasOwnProperty(t)?{space:$P[t],local:e}:e}function _P(e){return function(){var t=this.ownerDocument,n=this.namespaceURI
12052
+ return n===SP&&t.documentElement.namespaceURI===SP?t.createElement(e):t.createElementNS(n,e)}}function EP(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function IP(e){var t=MP(e)
12053
+ return(t.local?EP:_P)(t)}function AP(){}function OP(e){return null==e?AP:function(){return this.querySelector(e)}}function TP(){return[]}function RP(e){return null==e?TP:function(){return this.querySelectorAll(e)}}function DP(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t)
12054
+ var t}}function NP(e){return function(){return this.matches(e)}}function PP(e){return function(t){return t.matches(e)}}var zP=Array.prototype.find
12055
+ function LP(){return this.firstElementChild}var FP=Array.prototype.filter
12056
+ function VP(){return Array.from(this.children)}function HP(e){return new Array(e.length)}function BP(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function qP(e,t,n,i,o,r){for(var s,a=0,l=t.length,c=r.length;a<c;++a)(s=t[a])?(s.__data__=r[a],i[a]=s):n[a]=new BP(e,r[a])
12057
+ for(;a<l;++a)(s=t[a])&&(o[a]=s)}function jP(e,t,n,i,o,r,s){var a,l,c,d=new Map,h=t.length,u=r.length,p=new Array(h)
12052
12058
  for(a=0;a<h;++a)(l=t[a])&&(p[a]=c=s.call(l,l.__data__,a,t)+"",d.has(c)?o[a]=l:d.set(c,l))
12053
- for(a=0;a<u;++a)c=s.call(e,r[a],a,r)+"",(l=d.get(c))?(i[a]=l,l.__data__=r[a],d.delete(c)):n[a]=new FP(e,r[a])
12054
- for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function BP(e){return e.__data__}function qP(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function jP(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function UP(e){return function(){this.removeAttribute(e)}}function WP(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ZP(e,t){return function(){this.setAttribute(e,t)}}function GP(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function KP(e,t){return function(){var n=t.apply(this,arguments)
12055
- null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function JP(e,t){return function(){var n=t.apply(this,arguments)
12056
- null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function XP(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function YP(e){return function(){this.style.removeProperty(e)}}function QP(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ez(e,t,n){return function(){var i=t.apply(this,arguments)
12057
- null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function tz(e,t){return e.style.getPropertyValue(t)||XP(e).getComputedStyle(e,null).getPropertyValue(t)}function nz(e){return function(){delete this[e]}}function iz(e,t){return function(){this[e]=t}}function oz(e,t){return function(){var n=t.apply(this,arguments)
12058
- null==n?delete this[e]:this[e]=n}}function rz(e){return e.trim().split(/^|\s+/)}function sz(e){return e.classList||new az(e)}function az(e){this._node=e,this._names=rz(e.getAttribute("class")||"")}function lz(e,t){for(var n=sz(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function cz(e,t){for(var n=sz(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function dz(e){return function(){lz(this,e)}}function hz(e){return function(){cz(this,e)}}function uz(e,t){return function(){(t.apply(this,arguments)?lz:cz)(this,e)}}function pz(){this.textContent=""}function fz(e){return function(){this.textContent=e}}function mz(e){return function(){var t=e.apply(this,arguments)
12059
- this.textContent=null==t?"":t}}function gz(){this.innerHTML=""}function vz(e){return function(){this.innerHTML=e}}function bz(e){return function(){var t=e.apply(this,arguments)
12060
- this.innerHTML=null==t?"":t}}function wz(){this.nextSibling&&this.parentNode.appendChild(this)}function yz(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function xz(){return null}function kz(){var e=this.parentNode
12061
- e&&e.removeChild(this)}function Cz(){var e=this.cloneNode(!1),t=this.parentNode
12062
- return t?t.insertBefore(e,this.nextSibling):e}function Sz(){var e=this.cloneNode(!0),t=this.parentNode
12063
- return t?t.insertBefore(e,this.nextSibling):e}function $z(e){return function(){var t=this.__on
12064
- if(t){for(var n,i=0,o=-1,r=t.length;i<r;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function Mz(e,t,n){return function(){var i,o=this.__on,r=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
12059
+ for(a=0;a<u;++a)c=s.call(e,r[a],a,r)+"",(l=d.get(c))?(i[a]=l,l.__data__=r[a],d.delete(c)):n[a]=new BP(e,r[a])
12060
+ for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function UP(e){return e.__data__}function WP(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function ZP(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function GP(e){return function(){this.removeAttribute(e)}}function KP(e){return function(){this.removeAttributeNS(e.space,e.local)}}function JP(e,t){return function(){this.setAttribute(e,t)}}function XP(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function YP(e,t){return function(){var n=t.apply(this,arguments)
12061
+ null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function QP(e,t){return function(){var n=t.apply(this,arguments)
12062
+ null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function ez(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function tz(e){return function(){this.style.removeProperty(e)}}function nz(e,t,n){return function(){this.style.setProperty(e,t,n)}}function iz(e,t,n){return function(){var i=t.apply(this,arguments)
12063
+ null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function oz(e,t){return e.style.getPropertyValue(t)||ez(e).getComputedStyle(e,null).getPropertyValue(t)}function rz(e){return function(){delete this[e]}}function sz(e,t){return function(){this[e]=t}}function az(e,t){return function(){var n=t.apply(this,arguments)
12064
+ null==n?delete this[e]:this[e]=n}}function lz(e){return e.trim().split(/^|\s+/)}function cz(e){return e.classList||new dz(e)}function dz(e){this._node=e,this._names=lz(e.getAttribute("class")||"")}function hz(e,t){for(var n=cz(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function uz(e,t){for(var n=cz(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function pz(e){return function(){hz(this,e)}}function fz(e){return function(){uz(this,e)}}function mz(e,t){return function(){(t.apply(this,arguments)?hz:uz)(this,e)}}function gz(){this.textContent=""}function vz(e){return function(){this.textContent=e}}function bz(e){return function(){var t=e.apply(this,arguments)
12065
+ this.textContent=null==t?"":t}}function wz(){this.innerHTML=""}function yz(e){return function(){this.innerHTML=e}}function xz(e){return function(){var t=e.apply(this,arguments)
12066
+ this.innerHTML=null==t?"":t}}function kz(){this.nextSibling&&this.parentNode.appendChild(this)}function Cz(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Sz(){return null}function $z(){var e=this.parentNode
12067
+ e&&e.removeChild(this)}function Mz(){var e=this.cloneNode(!1),t=this.parentNode
12068
+ return t?t.insertBefore(e,this.nextSibling):e}function _z(){var e=this.cloneNode(!0),t=this.parentNode
12069
+ return t?t.insertBefore(e,this.nextSibling):e}function Ez(e){return function(){var t=this.__on
12070
+ if(t){for(var n,i=0,o=-1,r=t.length;i<r;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.options);++o?t.length=o:delete this.__on}}}function Iz(e,t,n){return function(){var i,o=this.__on,r=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
12065
12071
  if(o)for(var s=0,a=o.length;s<a;++s)if((i=o[s]).type===e.type&&i.name===e.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=r,i.options=n),void(i.value=t)
12066
- this.addEventListener(e.type,r,n),i={type:e.type,name:e.name,value:t,listener:r,options:n},o?o.push(i):this.__on=[i]}}function _z(e,t,n){var i=XP(e),o=i.CustomEvent
12067
- "function"==typeof o?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Ez(e,t){return function(){return _z(this,e,t)}}function Iz(e,t){return function(){return _z(this,e,t.apply(this,arguments))}}FP.prototype={constructor:FP,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},az.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e)
12072
+ this.addEventListener(e.type,r,n),i={type:e.type,name:e.name,value:t,listener:r,options:n},o?o.push(i):this.__on=[i]}}function Az(e,t,n){var i=ez(e),o=i.CustomEvent
12073
+ "function"==typeof o?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Oz(e,t){return function(){return Az(this,e,t)}}function Tz(e,t){return function(){return Az(this,e,t.apply(this,arguments))}}BP.prototype={constructor:BP,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},dz.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e)
12068
12074
  t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
12069
- var Az=[null]
12070
- function Oz(e,t){this._groups=e,this._parents=t}function Tz(){return new Oz([[document.documentElement]],Az)}function Rz(e){return"string"==typeof e?new Oz([[document.querySelector(e)]],[document.documentElement]):new Oz([[e]],Az)}function Dz(e,t){if(e=function(e){let t
12075
+ var Rz=[null]
12076
+ function Dz(e,t){this._groups=e,this._parents=t}function Nz(){return new Dz([[document.documentElement]],Rz)}function Pz(e){return"string"==typeof e?new Dz([[document.querySelector(e)]],[document.documentElement]):new Dz([[e]],Rz)}function zz(e,t){if(e=function(e){let t
12071
12077
  for(;t=e.sourceEvent;)e=t
12072
12078
  return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t
12073
12079
  if(n.createSVGPoint){var i=n.createSVGPoint()
12074
12080
  return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect()
12075
- return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}Oz.prototype=Tz.prototype={constructor:Oz,select:function(e){"function"!=typeof e&&(e=EP(e))
12081
+ return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}Dz.prototype=Nz.prototype={constructor:Dz,select:function(e){"function"!=typeof e&&(e=OP(e))
12076
12082
  for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r,s,a=t[o],l=a.length,c=i[o]=new Array(l),d=0;d<l;++d)(r=a[d])&&(s=e.call(r,r.__data__,d,a))&&("__data__"in r&&(s.__data__=r.__data__),c[d]=s)
12077
- return new Oz(i,this._parents)},selectAll:function(e){e="function"==typeof e?OP(e):AP(e)
12083
+ return new Dz(i,this._parents)},selectAll:function(e){e="function"==typeof e?DP(e):RP(e)
12078
12084
  for(var t=this._groups,n=t.length,i=[],o=[],r=0;r<n;++r)for(var s,a=t[r],l=a.length,c=0;c<l;++c)(s=a[c])&&(i.push(e.call(s,s.__data__,c,a)),o.push(s))
12079
- return new Oz(i,o)},selectChild:function(e){return this.select(null==e?NP:function(e){return function(){return DP.call(this.children,e)}}("function"==typeof e?e:RP(e)))},selectChildren:function(e){return this.selectAll(null==e?zP:function(e){return function(){return PP.call(this.children,e)}}("function"==typeof e?e:RP(e)))},filter:function(e){"function"!=typeof e&&(e=TP(e))
12085
+ return new Dz(i,o)},selectChild:function(e){return this.select(null==e?LP:function(e){return function(){return zP.call(this.children,e)}}("function"==typeof e?e:PP(e)))},selectChildren:function(e){return this.selectAll(null==e?VP:function(e){return function(){return FP.call(this.children,e)}}("function"==typeof e?e:PP(e)))},filter:function(e){"function"!=typeof e&&(e=NP(e))
12080
12086
  for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r,s=t[o],a=s.length,l=i[o]=[],c=0;c<a;++c)(r=s[c])&&e.call(r,r.__data__,c,s)&&l.push(r)
12081
- return new Oz(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,BP)
12082
- var n,i=t?HP:VP,o=this._parents,r=this._groups
12087
+ return new Dz(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,UP)
12088
+ var n,i=t?jP:qP,o=this._parents,r=this._groups
12083
12089
  "function"!=typeof e&&(n=e,e=function(){return n})
12084
- for(var s=r.length,a=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var h=o[d],u=r[d],p=u.length,f=qP(e.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
12090
+ for(var s=r.length,a=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var h=o[d],u=r[d],p=u.length,f=WP(e.call(h,h&&h.__data__,d,o)),m=f.length,g=l[d]=new Array(m),v=a[d]=new Array(m)
12085
12091
  i(h,u,g,v,c[d]=new Array(p),f,t)
12086
- for(var b,w,y=0,x=0;y<m;++y)if(b=g[y]){for(y>=x&&(x=y+1);!(w=v[x])&&++x<m;);b._next=w||null}}return(a=new Oz(a,o))._enter=l,a._exit=c,a},enter:function(){return new Oz(this._enter||this._groups.map(LP),this._parents)},exit:function(){return new Oz(this._exit||this._groups.map(LP),this._parents)},join:function(e,t,n){var i=this.enter(),o=this,r=this.exit()
12092
+ for(var b,w,y=0,x=0;y<m;++y)if(b=g[y]){for(y>=x&&(x=y+1);!(w=v[x])&&++x<m;);b._next=w||null}}return(a=new Dz(a,o))._enter=l,a._exit=c,a},enter:function(){return new Dz(this._enter||this._groups.map(HP),this._parents)},exit:function(){return new Dz(this._exit||this._groups.map(HP),this._parents)},join:function(e,t,n){var i=this.enter(),o=this,r=this.exit()
12087
12093
  return"function"==typeof e?(i=e(i))&&(i=i.selection()):i=i.append(e+""),null!=t&&(o=t(o))&&(o=o.selection()),null==n?r.remove():n(r),i&&o?i.merge(o).order():o},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,o=n.length,r=i.length,s=Math.min(o,r),a=new Array(o),l=0;l<s;++l)for(var c,d=n[l],h=i[l],u=d.length,p=a[l]=new Array(u),f=0;f<u;++f)(c=d[f]||h[f])&&(p[f]=c)
12088
12094
  for(;l<o;++l)a[l]=n[l]
12089
- return new Oz(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,o=e[t],r=o.length-1,s=o[r];--r>=0;)(i=o[r])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i)
12090
- return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=jP)
12095
+ return new Dz(a,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,o=e[t],r=o.length-1,s=o[r];--r>=0;)(i=o[r])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i)
12096
+ return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=ZP)
12091
12097
  for(var n=this._groups,i=n.length,o=new Array(i),r=0;r<i;++r){for(var s,a=n[r],l=a.length,c=o[r]=new Array(l),d=0;d<l;++d)(s=a[d])&&(c[d]=s)
12092
- c.sort(t)}return new Oz(o,this._parents).order()},call:function(){var e=arguments[0]
12098
+ c.sort(t)}return new Dz(o,this._parents).order()},call:function(){var e=arguments[0]
12093
12099
  return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,r=i.length;o<r;++o){var s=i[o]
12094
12100
  if(s)return s}return null},size:function(){let e=0
12095
12101
  for(const t of this)++e
12096
12102
  return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o,r=t[n],s=0,a=r.length;s<a;++s)(o=r[s])&&e.call(o,o.__data__,s,r)
12097
- return this},attr:function(e,t){var n=CP(e)
12103
+ return this},attr:function(e,t){var n=MP(e)
12098
12104
  if(arguments.length<2){var i=this.node()
12099
- return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?WP:UP:"function"==typeof t?n.local?JP:KP:n.local?GP:ZP)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?YP:"function"==typeof t?ez:QP)(e,t,null==n?"":n)):tz(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?nz:"function"==typeof t?oz:iz)(e,t)):this.node()[e]},classed:function(e,t){var n=rz(e+"")
12100
- if(arguments.length<2){for(var i=sz(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
12101
- return!0}return this.each(("function"==typeof t?uz:t?dz:hz)(n,t))},text:function(e){return arguments.length?this.each(null==e?pz:("function"==typeof e?mz:fz)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?gz:("function"==typeof e?bz:vz)(e)):this.node().innerHTML},raise:function(){return this.each(wz)},lower:function(){return this.each(yz)},append:function(e){var t="function"==typeof e?e:MP(e)
12102
- return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:MP(e),i=null==t?xz:"function"==typeof t?t:EP(t)
12103
- return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(kz)},clone:function(e){return this.select(e?Sz:Cz)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,o,r=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
12105
+ return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?KP:GP:"function"==typeof t?n.local?QP:YP:n.local?XP:JP)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?tz:"function"==typeof t?iz:nz)(e,t,null==n?"":n)):oz(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?rz:"function"==typeof t?az:sz)(e,t)):this.node()[e]},classed:function(e,t){var n=lz(e+"")
12106
+ if(arguments.length<2){for(var i=cz(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
12107
+ return!0}return this.each(("function"==typeof t?mz:t?pz:fz)(n,t))},text:function(e){return arguments.length?this.each(null==e?gz:("function"==typeof e?bz:vz)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?wz:("function"==typeof e?xz:yz)(e)):this.node().innerHTML},raise:function(){return this.each(kz)},lower:function(){return this.each(Cz)},append:function(e){var t="function"==typeof e?e:IP(e)
12108
+ return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:IP(e),i=null==t?Sz:"function"==typeof t?t:OP(t)
12109
+ return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each($z)},clone:function(e){return this.select(e?_z:Mz)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,o,r=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
12104
12110
  return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),s=r.length
12105
- if(!(arguments.length<2)){for(a=t?Mz:$z,i=0;i<s;++i)this.each(a(r[i],t,n))
12111
+ if(!(arguments.length<2)){for(a=t?Iz:Ez,i=0;i<s;++i)this.each(a(r[i],t,n))
12106
12112
  return this}var a=this.node().__on
12107
- if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<s;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?Iz:Ez)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i,o=e[t],r=0,s=o.length;r<s;++r)(i=o[r])&&(yield i)}}
12108
- const Nz={capture:!0,passive:!1}
12109
- function Pz(e){e.preventDefault(),e.stopImmediatePropagation()}function zz(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Lz(e,t){var n=Object.create(e.prototype)
12113
+ if(a)for(var l,c=0,d=a.length;c<d;++c)for(i=0,l=a[c];i<s;++i)if((o=r[i]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?Tz:Oz)(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i,o=e[t],r=0,s=o.length;r<s;++r)(i=o[r])&&(yield i)}}
12114
+ const Lz={capture:!0,passive:!1}
12115
+ function Fz(e){e.preventDefault(),e.stopImmediatePropagation()}function Vz(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Hz(e,t){var n=Object.create(e.prototype)
12110
12116
  for(var i in t)n[i]=t[i]
12111
- return n}function Fz(){}var Vz=.7,Hz=1/Vz,Bz="\\s*([+-]?\\d+)\\s*",qz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",jz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Uz=/^#([0-9a-f]{3,8})$/,Wz=new RegExp(`^rgb\\(${Bz},${Bz},${Bz}\\)$`),Zz=new RegExp(`^rgb\\(${jz},${jz},${jz}\\)$`),Gz=new RegExp(`^rgba\\(${Bz},${Bz},${Bz},${qz}\\)$`),Kz=new RegExp(`^rgba\\(${jz},${jz},${jz},${qz}\\)$`),Jz=new RegExp(`^hsl\\(${qz},${jz},${jz}\\)$`),Xz=new RegExp(`^hsla\\(${qz},${jz},${jz},${qz}\\)$`),Yz={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074}
12112
- function Qz(){return this.rgb().formatHex()}function eL(){return this.rgb().formatRgb()}function tL(e){var t,n
12113
- return e=(e+"").trim().toLowerCase(),(t=Uz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?nL(t):3===n?new rL(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?iL(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?iL(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Wz.exec(e))?new rL(t[1],t[2],t[3],1):(t=Zz.exec(e))?new rL(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Gz.exec(e))?iL(t[1],t[2],t[3],t[4]):(t=Kz.exec(e))?iL(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Jz.exec(e))?hL(t[1],t[2]/100,t[3]/100,1):(t=Xz.exec(e))?hL(t[1],t[2]/100,t[3]/100,t[4]):Yz.hasOwnProperty(e)?nL(Yz[e]):"transparent"===e?new rL(NaN,NaN,NaN,0):null}function nL(e){return new rL(e>>16&255,e>>8&255,255&e,1)}function iL(e,t,n,i){return i<=0&&(e=t=n=NaN),new rL(e,t,n,i)}function oL(e,t,n,i){return 1===arguments.length?((o=e)instanceof Fz||(o=tL(o)),o?new rL((o=o.rgb()).r,o.g,o.b,o.opacity):new rL):new rL(e,t,n,null==i?1:i)
12114
- var o}function rL(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function sL(){return`#${dL(this.r)}${dL(this.g)}${dL(this.b)}`}function aL(){const e=lL(this.opacity)
12115
- return`${1===e?"rgb(":"rgba("}${cL(this.r)}, ${cL(this.g)}, ${cL(this.b)}${1===e?")":`, ${e})`}`}function lL(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function cL(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function dL(e){return((e=cL(e))<16?"0":"")+e.toString(16)}function hL(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new pL(e,t,n,i)}function uL(e){if(e instanceof pL)return new pL(e.h,e.s,e.l,e.opacity)
12116
- if(e instanceof Fz||(e=tL(e)),!e)return new pL
12117
- if(e instanceof pL)return e
12117
+ return n}function Bz(){}var qz=.7,jz=1/qz,Uz="\\s*([+-]?\\d+)\\s*",Wz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Gz=/^#([0-9a-f]{3,8})$/,Kz=new RegExp(`^rgb\\(${Uz},${Uz},${Uz}\\)$`),Jz=new RegExp(`^rgb\\(${Zz},${Zz},${Zz}\\)$`),Xz=new RegExp(`^rgba\\(${Uz},${Uz},${Uz},${Wz}\\)$`),Yz=new RegExp(`^rgba\\(${Zz},${Zz},${Zz},${Wz}\\)$`),Qz=new RegExp(`^hsl\\(${Wz},${Zz},${Zz}\\)$`),eL=new RegExp(`^hsla\\(${Wz},${Zz},${Zz},${Wz}\\)$`),tL={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074}
12118
+ function nL(){return this.rgb().formatHex()}function iL(){return this.rgb().formatRgb()}function oL(e){var t,n
12119
+ return e=(e+"").trim().toLowerCase(),(t=Gz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?rL(t):3===n?new lL(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?sL(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?sL(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Kz.exec(e))?new lL(t[1],t[2],t[3],1):(t=Jz.exec(e))?new lL(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Xz.exec(e))?sL(t[1],t[2],t[3],t[4]):(t=Yz.exec(e))?sL(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Qz.exec(e))?fL(t[1],t[2]/100,t[3]/100,1):(t=eL.exec(e))?fL(t[1],t[2]/100,t[3]/100,t[4]):tL.hasOwnProperty(e)?rL(tL[e]):"transparent"===e?new lL(NaN,NaN,NaN,0):null}function rL(e){return new lL(e>>16&255,e>>8&255,255&e,1)}function sL(e,t,n,i){return i<=0&&(e=t=n=NaN),new lL(e,t,n,i)}function aL(e,t,n,i){return 1===arguments.length?((o=e)instanceof Bz||(o=oL(o)),o?new lL((o=o.rgb()).r,o.g,o.b,o.opacity):new lL):new lL(e,t,n,null==i?1:i)
12120
+ var o}function lL(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function cL(){return`#${pL(this.r)}${pL(this.g)}${pL(this.b)}`}function dL(){const e=hL(this.opacity)
12121
+ return`${1===e?"rgb(":"rgba("}${uL(this.r)}, ${uL(this.g)}, ${uL(this.b)}${1===e?")":`, ${e})`}`}function hL(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function uL(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function pL(e){return((e=uL(e))<16?"0":"")+e.toString(16)}function fL(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new gL(e,t,n,i)}function mL(e){if(e instanceof gL)return new gL(e.h,e.s,e.l,e.opacity)
12122
+ if(e instanceof Bz||(e=oL(e)),!e)return new gL
12123
+ if(e instanceof gL)return e
12118
12124
  var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),r=Math.max(t,n,i),s=NaN,a=r-o,l=(r+o)/2
12119
- return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new pL(s,a,l,e.opacity)}function pL(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function fL(e){return(e=(e||0)%360)<0?e+360:e}function mL(e){return Math.max(0,Math.min(1,e||0))}function gL(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}zz(Fz,tL,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Qz,formatHex:Qz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return uL(this).formatHsl()},formatRgb:eL,toString:eL}),zz(rL,oL,Lz(Fz,{brighter(e){return e=null==e?Hz:Math.pow(Hz,e),new rL(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Vz:Math.pow(Vz,e),new rL(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new rL(cL(this.r),cL(this.g),cL(this.b),lL(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:sL,formatHex:sL,formatHex8:function(){return`#${dL(this.r)}${dL(this.g)}${dL(this.b)}${dL(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:aL,toString:aL})),zz(pL,(function(e,t,n,i){return 1===arguments.length?uL(e):new pL(e,t,n,null==i?1:i)}),Lz(Fz,{brighter(e){return e=null==e?Hz:Math.pow(Hz,e),new pL(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Vz:Math.pow(Vz,e),new pL(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i
12120
- return new rL(gL(e>=240?e-240:e+120,o,i),gL(e,o,i),gL(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new pL(fL(this.h),mL(this.s),mL(this.l),lL(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=lL(this.opacity)
12121
- return`${1===e?"hsl(":"hsla("}${fL(this.h)}, ${100*mL(this.s)}%, ${100*mL(this.l)}%${1===e?")":`, ${e})`}`}}))
12122
- var vL=e=>()=>e
12123
- function bL(e){return 1==(e=+e)?wL:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):vL(isNaN(t)?n:t)}}function wL(e,t){var n=t-e
12124
- return n?function(e,t){return function(n){return e+n*t}}(e,n):vL(isNaN(e)?t:e)}var yL=function e(t){var n=bL(t)
12125
- function i(e,t){var i=n((e=oL(e)).r,(t=oL(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=wL(e.opacity,t.opacity)
12125
+ return a?(s=t===r?(n-i)/a+6*(n<i):n===r?(i-t)/a+2:(t-n)/a+4,a/=l<.5?r+o:2-r-o,s*=60):a=l>0&&l<1?0:s,new gL(s,a,l,e.opacity)}function gL(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function vL(e){return(e=(e||0)%360)<0?e+360:e}function bL(e){return Math.max(0,Math.min(1,e||0))}function wL(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Vz(Bz,oL,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:nL,formatHex:nL,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return mL(this).formatHsl()},formatRgb:iL,toString:iL}),Vz(lL,aL,Hz(Bz,{brighter(e){return e=null==e?jz:Math.pow(jz,e),new lL(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?qz:Math.pow(qz,e),new lL(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new lL(uL(this.r),uL(this.g),uL(this.b),hL(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cL,formatHex:cL,formatHex8:function(){return`#${pL(this.r)}${pL(this.g)}${pL(this.b)}${pL(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:dL,toString:dL})),Vz(gL,(function(e,t,n,i){return 1===arguments.length?mL(e):new gL(e,t,n,null==i?1:i)}),Hz(Bz,{brighter(e){return e=null==e?jz:Math.pow(jz,e),new gL(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?qz:Math.pow(qz,e),new gL(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i
12126
+ return new lL(wL(e>=240?e-240:e+120,o,i),wL(e,o,i),wL(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new gL(vL(this.h),bL(this.s),bL(this.l),hL(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=hL(this.opacity)
12127
+ return`${1===e?"hsl(":"hsla("}${vL(this.h)}, ${100*bL(this.s)}%, ${100*bL(this.l)}%${1===e?")":`, ${e})`}`}}))
12128
+ var yL=e=>()=>e
12129
+ function xL(e){return 1==(e=+e)?kL:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):yL(isNaN(t)?n:t)}}function kL(e,t){var n=t-e
12130
+ return n?function(e,t){return function(n){return e+n*t}}(e,n):yL(isNaN(e)?t:e)}var CL=function e(t){var n=xL(t)
12131
+ function i(e,t){var i=n((e=aL(e)).r,(t=aL(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=kL(e.opacity,t.opacity)
12126
12132
  return function(t){return e.r=i(t),e.g=o(t),e.b=r(t),e.opacity=s(t),e+""}}return i.gamma=e,i}(1)
12127
- function xL(e,t){t||(t=[])
12133
+ function SL(e,t){t||(t=[])
12128
12134
  var n,i=e?Math.min(t.length,e.length):0,o=t.slice()
12129
12135
  return function(r){for(n=0;n<i;++n)o[n]=e[n]*(1-r)+t[n]*r
12130
- return o}}function kL(e,t){var n,i=t?t.length:0,o=e?Math.min(i,e.length):0,r=new Array(o),s=new Array(i)
12131
- for(n=0;n<o;++n)r[n]=IL(e[n],t[n])
12136
+ return o}}function $L(e,t){var n,i=t?t.length:0,o=e?Math.min(i,e.length):0,r=new Array(o),s=new Array(i)
12137
+ for(n=0;n<o;++n)r[n]=TL(e[n],t[n])
12132
12138
  for(;n<i;++n)s[n]=t[n]
12133
12139
  return function(e){for(n=0;n<o;++n)s[n]=r[n](e)
12134
- return s}}function CL(e,t){var n=new Date
12135
- return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function SL(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function $L(e,t){var n,i={},o={}
12136
- for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=IL(e[n],t[n]):o[n]=t[n]
12140
+ return s}}function ML(e,t){var n=new Date
12141
+ return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function _L(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function EL(e,t){var n,i={},o={}
12142
+ for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=TL(e[n],t[n]):o[n]=t[n]
12137
12143
  return function(e){for(n in i)o[n]=i[n](e)
12138
- return o}}var ML=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_L=new RegExp(ML.source,"g")
12139
- function EL(e,t){var n,i,o,r=ML.lastIndex=_L.lastIndex=0,s=-1,a=[],l=[]
12140
- for(e+="",t+="";(n=ML.exec(e))&&(i=_L.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:SL(n,i)})),r=_L.lastIndex
12144
+ return o}}var IL=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,AL=new RegExp(IL.source,"g")
12145
+ function OL(e,t){var n,i,o,r=IL.lastIndex=AL.lastIndex=0,s=-1,a=[],l=[]
12146
+ for(e+="",t+="";(n=IL.exec(e))&&(i=AL.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:_L(n,i)})),r=AL.lastIndex
12141
12147
  return r<t.length&&(o=t.slice(r),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,i=0;i<t;++i)a[(n=l[i]).i]=n.x(e)
12142
- return a.join("")})}function IL(e,t){var n,i,o=typeof t
12143
- return null==t||"boolean"===o?vL(t):("number"===o?SL:"string"===o?(n=tL(t))?(t=n,yL):EL:t instanceof tL?yL:t instanceof Date?CL:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?kL:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?$L:SL:xL))(e,t)}function AL(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var OL,TL=180/Math.PI,RL={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
12144
- function DL(e,t,n,i,o,r){var s,a,l
12145
- return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(t,e)*TL,skewX:Math.atan(l)*TL,scaleX:s,scaleY:a}}function NL(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}return function(r,s){var a=[],l=[]
12148
+ return a.join("")})}function TL(e,t){var n,i,o=typeof t
12149
+ return null==t||"boolean"===o?yL(t):("number"===o?_L:"string"===o?(n=oL(t))?(t=n,CL):OL:t instanceof oL?CL:t instanceof Date?ML:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?$L:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?EL:_L:SL))(e,t)}function RL(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var DL,NL=180/Math.PI,PL={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
12150
+ function zL(e,t,n,i,o,r){var s,a,l
12151
+ return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),e*i<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(t,e)*NL,skewX:Math.atan(l)*NL,scaleX:s,scaleY:a}}function LL(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}return function(r,s){var a=[],l=[]
12146
12152
  return r=e(r),s=e(s),function(e,i,o,r,s,a){if(e!==o||i!==r){var l=s.push("translate(",null,t,null,n)
12147
- a.push({i:l-4,x:SL(e,o)},{i:l-2,x:SL(i,r)})}else(o||r)&&s.push("translate("+o+t+r+n)}(r.translateX,r.translateY,s.translateX,s.translateY,a,l),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(o(n)+"rotate(",null,i)-2,x:SL(e,t)})):t&&n.push(o(n)+"rotate("+t+i)}(r.rotate,s.rotate,a,l),function(e,t,n,r){e!==t?r.push({i:n.push(o(n)+"skewX(",null,i)-2,x:SL(e,t)}):t&&n.push(o(n)+"skewX("+t+i)}(r.skewX,s.skewX,a,l),function(e,t,n,i,r,s){if(e!==n||t!==i){var a=r.push(o(r)+"scale(",null,",",null,")")
12148
- s.push({i:a-4,x:SL(e,n)},{i:a-2,x:SL(t,i)})}else 1===n&&1===i||r.push(o(r)+"scale("+n+","+i+")")}(r.scaleX,r.scaleY,s.scaleX,s.scaleY,a,l),r=s=null,function(e){for(var t,n=-1,i=l.length;++n<i;)a[(t=l[n]).i]=t.x(e)
12149
- return a.join("")}}}var PL=NL((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
12150
- return t.isIdentity?RL:DL(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),zL=NL((function(e){return null==e?RL:(OL||(OL=document.createElementNS("http://www.w3.org/2000/svg","g")),OL.setAttribute("transform",e),(e=OL.transform.baseVal.consolidate())?DL((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):RL)}),", ",")",")")
12151
- function LL(e){return((e=Math.exp(e))+1/e)/2}var FL,VL,HL=function e(t,n,i){function o(e,o){var r,s,a=e[0],l=e[1],c=e[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
12153
+ a.push({i:l-4,x:_L(e,o)},{i:l-2,x:_L(i,r)})}else(o||r)&&s.push("translate("+o+t+r+n)}(r.translateX,r.translateY,s.translateX,s.translateY,a,l),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(o(n)+"rotate(",null,i)-2,x:_L(e,t)})):t&&n.push(o(n)+"rotate("+t+i)}(r.rotate,s.rotate,a,l),function(e,t,n,r){e!==t?r.push({i:n.push(o(n)+"skewX(",null,i)-2,x:_L(e,t)}):t&&n.push(o(n)+"skewX("+t+i)}(r.skewX,s.skewX,a,l),function(e,t,n,i,r,s){if(e!==n||t!==i){var a=r.push(o(r)+"scale(",null,",",null,")")
12154
+ s.push({i:a-4,x:_L(e,n)},{i:a-2,x:_L(t,i)})}else 1===n&&1===i||r.push(o(r)+"scale("+n+","+i+")")}(r.scaleX,r.scaleY,s.scaleX,s.scaleY,a,l),r=s=null,function(e){for(var t,n=-1,i=l.length;++n<i;)a[(t=l[n]).i]=t.x(e)
12155
+ return a.join("")}}}var FL=LL((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
12156
+ return t.isIdentity?PL:zL(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),VL=LL((function(e){return null==e?PL:(DL||(DL=document.createElementNS("http://www.w3.org/2000/svg","g")),DL.setAttribute("transform",e),(e=DL.transform.baseVal.consolidate())?zL((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):PL)}),", ",")",")")
12157
+ function HL(e){return((e=Math.exp(e))+1/e)/2}var BL,qL,jL=function e(t,n,i){function o(e,o){var r,s,a=e[0],l=e[1],c=e[2],d=o[0],h=o[1],u=o[2],p=d-a,f=h-l,m=p*p+f*f
12152
12158
  if(m<1e-12)s=Math.log(u/c)/t,r=function(e){return[a+e*p,l+e*f,c*Math.exp(t*e*s)]}
12153
12159
  else{var g=Math.sqrt(m),v=(u*u-c*c+i*m)/(2*c*n*g),b=(u*u-c*c-i*m)/(2*u*n*g),w=Math.log(Math.sqrt(v*v+1)-v),y=Math.log(Math.sqrt(b*b+1)-b)
12154
- s=(y-w)/t,r=function(e){var i,o=e*s,r=LL(w),d=c/(n*g)*(r*(i=t*o+w,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
12155
- return[a+d*p,l+d*f,c*r/LL(t*o+w)]}}return r.duration=1e3*s*t/Math.SQRT2,r}return o.rho=function(t){var n=Math.max(.001,+t),i=n*n
12156
- return e(n,i,i*i)},o}(Math.SQRT2,2,4),BL=0,qL=0,jL=0,UL=1e3,WL=0,ZL=0,GL=0,KL="object"==typeof performance&&performance.now?performance:Date,JL="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
12157
- function XL(){return ZL||(JL(YL),ZL=KL.now()+GL)}function YL(){ZL=0}function QL(){this._call=this._time=this._next=null}function eF(e,t,n){var i=new QL
12158
- return i.restart(e,t,n),i}function tF(){ZL=(WL=KL.now())+GL,BL=qL=0
12159
- try{!function(){XL(),++BL
12160
- for(var e,t=FL;t;)(e=ZL-t._time)>=0&&t._call.call(void 0,e),t=t._next;--BL}()}finally{BL=0,function(){var e,t,n=FL,i=1/0
12161
- for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:FL=t)
12162
- VL=e,iF(i)}(),ZL=0}}function nF(){var e=KL.now(),t=e-WL
12163
- t>UL&&(GL-=t,WL=e)}function iF(e){BL||(qL&&(qL=clearTimeout(qL)),e-ZL>24?(e<1/0&&(qL=setTimeout(tF,e-KL.now()-GL)),jL&&(jL=clearInterval(jL))):(jL||(WL=KL.now(),jL=setInterval(nF,UL)),BL=1,JL(tF)))}function oF(e,t,n){var i=new QL
12164
- return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}QL.prototype=eF.prototype={constructor:QL,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function")
12165
- n=(null==n?XL():+n)+(null==t?0:+t),this._next||VL===this||(VL?VL._next=this:FL=this,VL=this),this._call=e,this._time=n,iF()},stop:function(){this._call&&(this._call=null,this._time=1/0,iF())}}
12166
- var rF=vP("start","end","cancel","interrupt"),sF=[],aF=0,lF=1,cF=2,dF=3,hF=4,uF=5,pF=6
12167
- function fF(e,t,n,i,o,r){var s=e.__transition
12160
+ s=(y-w)/t,r=function(e){var i,o=e*s,r=HL(w),d=c/(n*g)*(r*(i=t*o+w,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(w))
12161
+ return[a+d*p,l+d*f,c*r/HL(t*o+w)]}}return r.duration=1e3*s*t/Math.SQRT2,r}return o.rho=function(t){var n=Math.max(.001,+t),i=n*n
12162
+ return e(n,i,i*i)},o}(Math.SQRT2,2,4),UL=0,WL=0,ZL=0,GL=1e3,KL=0,JL=0,XL=0,YL="object"==typeof performance&&performance.now?performance:Date,QL="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
12163
+ function eF(){return JL||(QL(tF),JL=YL.now()+XL)}function tF(){JL=0}function nF(){this._call=this._time=this._next=null}function iF(e,t,n){var i=new nF
12164
+ return i.restart(e,t,n),i}function oF(){JL=(KL=YL.now())+XL,UL=WL=0
12165
+ try{!function(){eF(),++UL
12166
+ for(var e,t=BL;t;)(e=JL-t._time)>=0&&t._call.call(void 0,e),t=t._next;--UL}()}finally{UL=0,function(){var e,t,n=BL,i=1/0
12167
+ for(;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:BL=t)
12168
+ qL=e,sF(i)}(),JL=0}}function rF(){var e=YL.now(),t=e-KL
12169
+ t>GL&&(XL-=t,KL=e)}function sF(e){UL||(WL&&(WL=clearTimeout(WL)),e-JL>24?(e<1/0&&(WL=setTimeout(oF,e-YL.now()-XL)),ZL&&(ZL=clearInterval(ZL))):(ZL||(KL=YL.now(),ZL=setInterval(rF,GL)),UL=1,QL(oF)))}function aF(e,t,n){var i=new nF
12170
+ return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}nF.prototype=iF.prototype={constructor:nF,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function")
12171
+ n=(null==n?eF():+n)+(null==t?0:+t),this._next||qL===this||(qL?qL._next=this:BL=this,qL=this),this._call=e,this._time=n,sF()},stop:function(){this._call&&(this._call=null,this._time=1/0,sF())}}
12172
+ var lF=yP("start","end","cancel","interrupt"),cF=[],dF=0,hF=1,uF=2,pF=3,fF=4,mF=5,gF=6
12173
+ function vF(e,t,n,i,o,r){var s=e.__transition
12168
12174
  if(s){if(n in s)return}else e.__transition={}
12169
12175
  !function(e,t,n){var i,o=e.__transition
12170
- function r(e){n.state=lF,n.timer.restart(s,n.delay,n.time),n.delay<=e&&s(e-n.delay)}function s(r){var c,d,h,u
12171
- if(n.state!==lF)return l()
12172
- for(c in o)if((u=o[c]).name===n.name){if(u.state===dF)return oF(s)
12173
- u.state===hF?(u.state=pF,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=pF,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(oF((function(){n.state===dF&&(n.state=hF,n.timer.restart(a,n.delay,n.time),a(r))})),n.state=cF,n.on.call("start",e,e.__data__,n.index,n.group),n.state===cF){for(n.state=dF,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=u)
12174
- i.length=d+1}}function a(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=uF,1),r=-1,s=i.length;++r<s;)i[r].call(e,o)
12175
- n.state===uF&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=pF,n.timer.stop(),delete o[t],o)return
12176
- delete e.__transition}o[t]=n,n.timer=eF(r,0,n.time)}(e,n,{name:t,index:i,group:o,on:rF,tween:sF,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:aF})}function mF(e,t){var n=vF(e,t)
12177
- if(n.state>aF)throw new Error("too late; already scheduled")
12178
- return n}function gF(e,t){var n=vF(e,t)
12179
- if(n.state>dF)throw new Error("too late; already running")
12180
- return n}function vF(e,t){var n=e.__transition
12176
+ function r(e){n.state=hF,n.timer.restart(s,n.delay,n.time),n.delay<=e&&s(e-n.delay)}function s(r){var c,d,h,u
12177
+ if(n.state!==hF)return l()
12178
+ for(c in o)if((u=o[c]).name===n.name){if(u.state===pF)return aF(s)
12179
+ u.state===fF?(u.state=gF,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=gF,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(aF((function(){n.state===pF&&(n.state=fF,n.timer.restart(a,n.delay,n.time),a(r))})),n.state=uF,n.on.call("start",e,e.__data__,n.index,n.group),n.state===uF){for(n.state=pF,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(u=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=u)
12180
+ i.length=d+1}}function a(t){for(var o=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=mF,1),r=-1,s=i.length;++r<s;)i[r].call(e,o)
12181
+ n.state===mF&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=gF,n.timer.stop(),delete o[t],o)return
12182
+ delete e.__transition}o[t]=n,n.timer=iF(r,0,n.time)}(e,n,{name:t,index:i,group:o,on:lF,tween:cF,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:dF})}function bF(e,t){var n=yF(e,t)
12183
+ if(n.state>dF)throw new Error("too late; already scheduled")
12184
+ return n}function wF(e,t){var n=yF(e,t)
12185
+ if(n.state>pF)throw new Error("too late; already running")
12186
+ return n}function yF(e,t){var n=e.__transition
12181
12187
  if(!n||!(n=n[t]))throw new Error("transition not found")
12182
- return n}function bF(e,t){var n,i,o,r=e.__transition,s=!0
12183
- if(r){for(o in t=null==t?null:t+"",r)(n=r[o]).name===t?(i=n.state>cF&&n.state<uF,n.state=pF,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]):s=!1
12184
- s&&delete e.__transition}}function wF(e,t){var n,i
12185
- return function(){var o=gF(this,e),r=o.tween
12188
+ return n}function xF(e,t){var n,i,o,r=e.__transition,s=!0
12189
+ if(r){for(o in t=null==t?null:t+"",r)(n=r[o]).name===t?(i=n.state>uF&&n.state<mF,n.state=gF,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]):s=!1
12190
+ s&&delete e.__transition}}function kF(e,t){var n,i
12191
+ return function(){var o=wF(this,e),r=o.tween
12186
12192
  if(r!==n)for(var s=0,a=(i=n=r).length;s<a;++s)if(i[s].name===t){(i=i.slice()).splice(s,1)
12187
- break}o.tween=i}}function yF(e,t,n){var i,o
12193
+ break}o.tween=i}}function CF(e,t,n){var i,o
12188
12194
  if("function"!=typeof n)throw new Error
12189
- return function(){var r=gF(this,e),s=r.tween
12195
+ return function(){var r=wF(this,e),s=r.tween
12190
12196
  if(s!==i){o=(i=s).slice()
12191
12197
  for(var a={name:t,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===t){o[l]=a
12192
- break}l===c&&o.push(a)}r.tween=o}}function xF(e,t,n){var i=e._id
12193
- return e.each((function(){var e=gF(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return vF(e,i).value[t]}}function kF(e,t){var n
12194
- return("number"==typeof t?SL:t instanceof tL?yL:(n=tL(t))?(t=n,yL):EL)(e,t)}function CF(e){return function(){this.removeAttribute(e)}}function SF(e){return function(){this.removeAttributeNS(e.space,e.local)}}function $F(e,t,n){var i,o,r=n+""
12198
+ break}l===c&&o.push(a)}r.tween=o}}function SF(e,t,n){var i=e._id
12199
+ return e.each((function(){var e=wF(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return yF(e,i).value[t]}}function $F(e,t){var n
12200
+ return("number"==typeof t?_L:t instanceof oL?CL:(n=oL(t))?(t=n,CL):OL)(e,t)}function MF(e){return function(){this.removeAttribute(e)}}function _F(e){return function(){this.removeAttributeNS(e.space,e.local)}}function EF(e,t,n){var i,o,r=n+""
12195
12201
  return function(){var s=this.getAttribute(e)
12196
- return s===r?null:s===i?o:o=t(i=s,n)}}function MF(e,t,n){var i,o,r=n+""
12202
+ return s===r?null:s===i?o:o=t(i=s,n)}}function IF(e,t,n){var i,o,r=n+""
12197
12203
  return function(){var s=this.getAttributeNS(e.space,e.local)
12198
- return s===r?null:s===i?o:o=t(i=s,n)}}function _F(e,t,n){var i,o,r
12204
+ return s===r?null:s===i?o:o=t(i=s,n)}}function AF(e,t,n){var i,o,r
12199
12205
  return function(){var s,a,l=n(this)
12200
12206
  if(null!=l)return(s=this.getAttribute(e))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=t(i=s,l))
12201
- this.removeAttribute(e)}}function EF(e,t,n){var i,o,r
12207
+ this.removeAttribute(e)}}function OF(e,t,n){var i,o,r
12202
12208
  return function(){var s,a,l=n(this)
12203
12209
  if(null!=l)return(s=this.getAttributeNS(e.space,e.local))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=t(i=s,l))
12204
- this.removeAttributeNS(e.space,e.local)}}function IF(e,t){var n,i
12210
+ this.removeAttributeNS(e.space,e.local)}}function TF(e,t){var n,i
12205
12211
  function o(){var o=t.apply(this,arguments)
12206
- return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function AF(e,t){var n,i
12212
+ return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,o)),n}return o._value=t,o}function RF(e,t){var n,i
12207
12213
  function o(){var o=t.apply(this,arguments)
12208
- return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function OF(e,t){return function(){mF(this,e).delay=+t.apply(this,arguments)}}function TF(e,t){return t=+t,function(){mF(this,e).delay=t}}function RF(e,t){return function(){gF(this,e).duration=+t.apply(this,arguments)}}function DF(e,t){return t=+t,function(){gF(this,e).duration=t}}var NF=Tz.prototype.constructor
12209
- function PF(e){return function(){this.style.removeProperty(e)}}var zF=0
12210
- function LF(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function FF(){return++zF}var VF=Tz.prototype
12211
- LF.prototype={constructor:LF,select:function(e){var t=this._name,n=this._id
12212
- "function"!=typeof e&&(e=EP(e))
12213
- for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a,l,c=i[s],d=c.length,h=r[s]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,fF(h[u],t,n,u,h,vF(a,n)))
12214
- return new LF(r,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
12215
- "function"!=typeof e&&(e=AP(e))
12216
- for(var i=this._groups,o=i.length,r=[],s=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),f=vF(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&fF(u,t,n,m,p,f)
12217
- r.push(p),s.push(l)}return new LF(r,s,t,n)},selectChild:VF.selectChild,selectChildren:VF.selectChildren,filter:function(e){"function"!=typeof e&&(e=TP(e))
12214
+ return o!==i&&(n=(i=o)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,o)),n}return o._value=t,o}function DF(e,t){return function(){bF(this,e).delay=+t.apply(this,arguments)}}function NF(e,t){return t=+t,function(){bF(this,e).delay=t}}function PF(e,t){return function(){wF(this,e).duration=+t.apply(this,arguments)}}function zF(e,t){return t=+t,function(){wF(this,e).duration=t}}var LF=Nz.prototype.constructor
12215
+ function FF(e){return function(){this.style.removeProperty(e)}}var VF=0
12216
+ function HF(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function BF(){return++VF}var qF=Nz.prototype
12217
+ HF.prototype={constructor:HF,select:function(e){var t=this._name,n=this._id
12218
+ "function"!=typeof e&&(e=OP(e))
12219
+ for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a,l,c=i[s],d=c.length,h=r[s]=new Array(d),u=0;u<d;++u)(a=c[u])&&(l=e.call(a,a.__data__,u,c))&&("__data__"in a&&(l.__data__=a.__data__),h[u]=l,vF(h[u],t,n,u,h,yF(a,n)))
12220
+ return new HF(r,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
12221
+ "function"!=typeof e&&(e=RP(e))
12222
+ for(var i=this._groups,o=i.length,r=[],s=[],a=0;a<o;++a)for(var l,c=i[a],d=c.length,h=0;h<d;++h)if(l=c[h]){for(var u,p=e.call(l,l.__data__,h,c),f=yF(l,n),m=0,g=p.length;m<g;++m)(u=p[m])&&vF(u,t,n,m,p,f)
12223
+ r.push(p),s.push(l)}return new HF(r,s,t,n)},selectChild:qF.selectChild,selectChildren:qF.selectChildren,filter:function(e){"function"!=typeof e&&(e=NP(e))
12218
12224
  for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r,s=t[o],a=s.length,l=i[o]=[],c=0;c<a;++c)(r=s[c])&&e.call(r,r.__data__,c,s)&&l.push(r)
12219
- return new LF(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
12225
+ return new HF(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
12220
12226
  for(var t=this._groups,n=e._groups,i=t.length,o=n.length,r=Math.min(i,o),s=new Array(i),a=0;a<r;++a)for(var l,c=t[a],d=n[a],h=c.length,u=s[a]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(u[p]=l)
12221
12227
  for(;a<i;++a)s[a]=t[a]
12222
- return new LF(s,this._parents,this._name,this._id)},selection:function(){return new NF(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=FF(),i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)if(s=a[c]){var d=vF(s,t)
12223
- fF(s,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new LF(i,this._parents,e,n)},call:VF.call,nodes:VF.nodes,node:VF.node,size:VF.size,empty:VF.empty,each:VF.each,on:function(e,t){var n=this._id
12224
- return arguments.length<2?vF(this.node(),n).on.on(e):this.each(function(e,t,n){var i,o,r=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
12225
- return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?mF:gF
12228
+ return new HF(s,this._parents,this._name,this._id)},selection:function(){return new LF(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=BF(),i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)if(s=a[c]){var d=yF(s,t)
12229
+ vF(s,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new HF(i,this._parents,e,n)},call:qF.call,nodes:qF.nodes,node:qF.node,size:qF.size,empty:qF.empty,each:qF.each,on:function(e,t){var n=this._id
12230
+ return arguments.length<2?yF(this.node(),n).on.on(e):this.each(function(e,t,n){var i,o,r=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".")
12231
+ return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?bF:wF
12226
12232
  return function(){var s=r(this,e),a=s.on
12227
- a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}(n,e,t))},attr:function(e,t){var n=CP(e),i="transform"===n?zL:kF
12228
- return this.attrTween(e,"function"==typeof t?(n.local?EF:_F)(n,i,xF(this,"attr."+e,t)):null==t?(n.local?SF:CF)(n):(n.local?MF:$F)(n,i,t))},attrTween:function(e,t){var n="attr."+e
12233
+ a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}(n,e,t))},attr:function(e,t){var n=MP(e),i="transform"===n?VL:$F
12234
+ return this.attrTween(e,"function"==typeof t?(n.local?OF:AF)(n,i,SF(this,"attr."+e,t)):null==t?(n.local?_F:MF)(n):(n.local?IF:EF)(n,i,t))},attrTween:function(e,t){var n="attr."+e
12229
12235
  if(arguments.length<2)return(n=this.tween(n))&&n._value
12230
12236
  if(null==t)return this.tween(n,null)
12231
12237
  if("function"!=typeof t)throw new Error
12232
- var i=CP(e)
12233
- return this.tween(n,(i.local?IF:AF)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?PL:kF
12238
+ var i=MP(e)
12239
+ return this.tween(n,(i.local?TF:RF)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?FL:$F
12234
12240
  return null==t?this.styleTween(e,function(e,t){var n,i,o
12235
- return function(){var r=tz(this,e),s=(this.style.removeProperty(e),tz(this,e))
12236
- return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}(e,i)).on("end.style."+e,PF(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,o,r
12237
- return function(){var s=tz(this,e),a=n(this),l=a+""
12238
- return null==a&&(this.style.removeProperty(e),l=a=tz(this,e)),s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a))}}(e,i,xF(this,"style."+e,t))).each(function(e,t){var n,i,o,r,s="style."+t,a="end."+s
12239
- return function(){var l=gF(this,e),c=l.on,d=null==l.value[s]?r||(r=PF(t)):void 0
12241
+ return function(){var r=oz(this,e),s=(this.style.removeProperty(e),oz(this,e))
12242
+ return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}(e,i)).on("end.style."+e,FF(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,o,r
12243
+ return function(){var s=oz(this,e),a=n(this),l=a+""
12244
+ return null==a&&(this.style.removeProperty(e),l=a=oz(this,e)),s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a))}}(e,i,SF(this,"style."+e,t))).each(function(e,t){var n,i,o,r,s="style."+t,a="end."+s
12245
+ return function(){var l=wF(this,e),c=l.on,d=null==l.value[s]?r||(r=FF(t)):void 0
12240
12246
  c===n&&o===d||(i=(n=c).copy()).on(a,o=d),l.on=i}}(this._id,e)):this.styleTween(e,function(e,t,n){var i,o,r=n+""
12241
- return function(){var s=tz(this,e)
12247
+ return function(){var s=oz(this,e)
12242
12248
  return s===r?null:s===i?o:o=t(i=s,n)}}(e,i,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var i="style."+(e+="")
12243
12249
  if(arguments.length<2)return(i=this.tween(i))&&i._value
12244
12250
  if(null==t)return this.tween(i,null)
@@ -12246,7 +12252,7 @@ if("function"!=typeof t)throw new Error
12246
12252
  return this.tween(i,function(e,t,n){var i,o
12247
12253
  function r(){var r=t.apply(this,arguments)
12248
12254
  return r!==o&&(i=(o=r)&&function(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}(e,r,n)),i}return r._value=t,r}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this)
12249
- this.textContent=null==t?"":t}}(xF(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
12255
+ this.textContent=null==t?"":t}}(SF(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
12250
12256
  if(arguments.length<1)return(t=this.tween(t))&&t._value
12251
12257
  if(null==e)return this.tween(t,null)
12252
12258
  if("function"!=typeof e)throw new Error
@@ -12255,60 +12261,60 @@ function i(){var i=e.apply(this,arguments)
12255
12261
  return i!==n&&(t=(n=i)&&function(e){return function(t){this.textContent=e.call(this,t)}}(i)),t}return i._value=e,i}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode
12256
12262
  for(var n in this.__transition)if(+n!==e)return
12257
12263
  t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id
12258
- if(e+="",arguments.length<2){for(var i,o=vF(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===e)return i.value
12259
- return null}return this.each((null==t?wF:yF)(n,e,t))},delay:function(e){var t=this._id
12260
- return arguments.length?this.each(("function"==typeof e?OF:TF)(t,e)):vF(this.node(),t).delay},duration:function(e){var t=this._id
12261
- return arguments.length?this.each(("function"==typeof e?RF:DF)(t,e)):vF(this.node(),t).duration},ease:function(e){var t=this._id
12264
+ if(e+="",arguments.length<2){for(var i,o=yF(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===e)return i.value
12265
+ return null}return this.each((null==t?kF:CF)(n,e,t))},delay:function(e){var t=this._id
12266
+ return arguments.length?this.each(("function"==typeof e?DF:NF)(t,e)):yF(this.node(),t).delay},duration:function(e){var t=this._id
12267
+ return arguments.length?this.each(("function"==typeof e?PF:zF)(t,e)):yF(this.node(),t).duration},ease:function(e){var t=this._id
12262
12268
  return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error
12263
- return function(){gF(this,e).ease=t}}(t,e)):vF(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
12269
+ return function(){wF(this,e).ease=t}}(t,e)):yF(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
12264
12270
  return this.each(function(e,t){return function(){var n=t.apply(this,arguments)
12265
12271
  if("function"!=typeof n)throw new Error
12266
- gF(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,o=n.size()
12272
+ wF(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,o=n.size()
12267
12273
  return new Promise((function(r,s){var a={value:s},l={value:function(){0==--o&&r()}}
12268
- n.each((function(){var n=gF(this,i),o=n.on
12269
- o!==e&&((t=(e=o).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t})),0===o&&r()}))},[Symbol.iterator]:VF[Symbol.iterator]}
12270
- var HF={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
12271
- function BF(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
12272
- return n}Tz.prototype.interrupt=function(e){return this.each((function(){bF(this,e)}))},Tz.prototype.transition=function(e){var t,n
12273
- e instanceof LF?(t=e._id,e=e._name):(t=FF(),(n=HF).time=XL(),e=null==e?null:e+"")
12274
- for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)(s=a[c])&&fF(s,e,t,c,a,n||BF(s,t))
12275
- return new LF(i,this._parents,e,t)}
12276
- var qF=e=>()=>e
12277
- function jF(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function UF(e,t,n){this.k=e,this.x=t,this.y=n}UF.prototype={constructor:UF,scale:function(e){return 1===e?this:new UF(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new UF(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
12278
- var WF=new UF(1,0,0)
12279
- function ZF(e){for(;!e.__zoom;)if(!(e=e.parentNode))return WF
12280
- return e.__zoom}function GF(e){e.stopImmediatePropagation()}function KF(e){e.preventDefault(),e.stopImmediatePropagation()}function JF(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function XF(){var e=this
12281
- return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function YF(){return this.__zoom||WF}function QF(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function eV(){return navigator.maxTouchPoints||"ontouchstart"in this}function tV(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1]
12282
- return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function nV(){var e,t,n,i=JF,o=XF,r=tV,s=QF,a=eV,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=HL,u=vP("start","zoom","end"),p=500,f=150,m=0,g=10
12283
- function v(e){e.property("__zoom",YF).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new UF(t,e.x,e.y)}function w(e,t,n){var i=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k
12284
- return i===e.x&&o===e.y?e:new UF(e.k,i,o)}function y(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,n,i){e.on("start.zoom",(function(){k(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){k(this,arguments).event(i).end()})).tween("zoom",(function(){var e=this,r=arguments,s=k(e,r).event(i),a=o.apply(e,r),l=null==n?y(a):"function"==typeof n?n.apply(e,r):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=e.__zoom,u="function"==typeof t?t.apply(e,r):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
12274
+ n.each((function(){var n=wF(this,i),o=n.on
12275
+ o!==e&&((t=(e=o).copy())._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),n.on=t})),0===o&&r()}))},[Symbol.iterator]:qF[Symbol.iterator]}
12276
+ var jF={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
12277
+ function UF(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
12278
+ return n}Nz.prototype.interrupt=function(e){return this.each((function(){xF(this,e)}))},Nz.prototype.transition=function(e){var t,n
12279
+ e instanceof HF?(t=e._id,e=e._name):(t=BF(),(n=jF).time=eF(),e=null==e?null:e+"")
12280
+ for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],l=a.length,c=0;c<l;++c)(s=a[c])&&vF(s,e,t,c,a,n||UF(s,t))
12281
+ return new HF(i,this._parents,e,t)}
12282
+ var WF=e=>()=>e
12283
+ function ZF(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function GF(e,t,n){this.k=e,this.x=t,this.y=n}GF.prototype={constructor:GF,scale:function(e){return 1===e?this:new GF(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new GF(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}}
12284
+ var KF=new GF(1,0,0)
12285
+ function JF(e){for(;!e.__zoom;)if(!(e=e.parentNode))return KF
12286
+ return e.__zoom}function XF(e){e.stopImmediatePropagation()}function YF(e){e.preventDefault(),e.stopImmediatePropagation()}function QF(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function eV(){var e=this
12287
+ return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function tV(){return this.__zoom||KF}function nV(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function iV(){return navigator.maxTouchPoints||"ontouchstart"in this}function oV(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1]
12288
+ return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}function rV(){var e,t,n,i=QF,o=eV,r=oV,s=nV,a=iV,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=jL,u=yP("start","zoom","end"),p=500,f=150,m=0,g=10
12289
+ function v(e){e.property("__zoom",tV).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(e,t){return(t=Math.max(l[0],Math.min(l[1],t)))===e.k?e:new GF(t,e.x,e.y)}function w(e,t,n){var i=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k
12290
+ return i===e.x&&o===e.y?e:new GF(e.k,i,o)}function y(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,t,n,i){e.on("start.zoom",(function(){k(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){k(this,arguments).event(i).end()})).tween("zoom",(function(){var e=this,r=arguments,s=k(e,r).event(i),a=o.apply(e,r),l=null==n?y(a):"function"==typeof n?n.apply(e,r):n,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),d=e.__zoom,u="function"==typeof t?t.apply(e,r):t,p=h(d.invert(l).concat(c/d.k),u.invert(l).concat(c/u.k))
12285
12291
  return function(e){if(1===e)e=u
12286
12292
  else{var t=p(e),n=c/t[2]
12287
- e=new UF(n,l[0]-t[0]*n,l[1]-t[1]*n)}s.zoom(null,e)}}))}function k(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function S(e,...t){if(i.apply(this,arguments)){var n=k(this,t).event(e),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,s.apply(this,arguments)))),d=Dz(e)
12293
+ e=new GF(n,l[0]-t[0]*n,l[1]-t[1]*n)}s.zoom(null,e)}}))}function k(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=o.apply(e,t),this.taps=0}function S(e,...t){if(i.apply(this,arguments)){var n=k(this,t).event(e),o=this.__zoom,a=Math.max(l[0],Math.min(l[1],o.k*Math.pow(2,s.apply(this,arguments)))),d=zz(e)
12288
12294
  if(n.wheel)n.mouse[0][0]===d[0]&&n.mouse[0][1]===d[1]||(n.mouse[1]=o.invert(n.mouse[0]=d)),clearTimeout(n.wheel)
12289
12295
  else{if(o.k===a)return
12290
- n.mouse=[d,o.invert(d)],bF(this),n.start()}KF(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",r(w(b(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function $(e,...t){if(!n&&i.apply(this,arguments)){var o=e.currentTarget,s=k(this,t,!0).event(e),a=Rz(e.view).on("mousemove.zoom",(function(e){if(KF(e),!s.moved){var t=e.clientX-d,n=e.clientY-h
12291
- s.moved=t*t+n*n>m}s.event(e).zoom("mouse",r(w(s.that.__zoom,s.mouse[0]=Dz(e,o),s.mouse[1]),s.extent,c))}),!0).on("mouseup.zoom",(function(e){a.on("mousemove.zoom mouseup.zoom",null),function(e,t){var n=e.document.documentElement,i=Rz(e).on("dragstart.drag",null)
12292
- t&&(i.on("click.drag",Pz,Nz),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,s.moved),KF(e),s.event(e).end()}),!0),l=Dz(e,o),d=e.clientX,h=e.clientY
12293
- !function(e){var t=e.document.documentElement,n=Rz(e).on("dragstart.drag",Pz,Nz)
12294
- "onselectstart"in t?n.on("selectstart.drag",Pz,Nz):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),GF(e),s.mouse=[l,this.__zoom.invert(l)],bF(this),s.start()}}function M(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,s=Dz(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(s),l=n.k*(e.shiftKey?.5:2),h=r(w(b(n,l),s,a),o.apply(this,t),c)
12295
- KF(e),d>0?Rz(this).transition().duration(d).call(x,h,s,e):Rz(this).call(v.transform,h,s,e)}}function _(n,...o){if(i.apply(this,arguments)){var r,s,a,l,c=n.touches,d=c.length,h=k(this,o,n.changedTouches.length===d).event(n)
12296
- for(GF(n),s=0;s<d;++s)l=[l=Dz(a=c[s],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,r=!0,h.taps=1+!!e)
12297
- e&&(e=clearTimeout(e)),r&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),bF(this),h.start())}}function E(e,...t){if(this.__zooming){var n,i,o,s,a=k(this,t).event(e),l=e.changedTouches,d=l.length
12298
- for(KF(e),n=0;n<d;++n)o=Dz(i=l[n],this),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=o:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=o)
12296
+ n.mouse=[d,o.invert(d)],xF(this),n.start()}YF(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",r(w(b(o,a),n.mouse[0],n.mouse[1]),n.extent,c))}}function $(e,...t){if(!n&&i.apply(this,arguments)){var o=e.currentTarget,s=k(this,t,!0).event(e),a=Pz(e.view).on("mousemove.zoom",(function(e){if(YF(e),!s.moved){var t=e.clientX-d,n=e.clientY-h
12297
+ s.moved=t*t+n*n>m}s.event(e).zoom("mouse",r(w(s.that.__zoom,s.mouse[0]=zz(e,o),s.mouse[1]),s.extent,c))}),!0).on("mouseup.zoom",(function(e){a.on("mousemove.zoom mouseup.zoom",null),function(e,t){var n=e.document.documentElement,i=Pz(e).on("dragstart.drag",null)
12298
+ t&&(i.on("click.drag",Fz,Lz),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(e.view,s.moved),YF(e),s.event(e).end()}),!0),l=zz(e,o),d=e.clientX,h=e.clientY
12299
+ !function(e){var t=e.document.documentElement,n=Pz(e).on("dragstart.drag",Fz,Lz)
12300
+ "onselectstart"in t?n.on("selectstart.drag",Fz,Lz):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),XF(e),s.mouse=[l,this.__zoom.invert(l)],xF(this),s.start()}}function M(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,s=zz(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(s),l=n.k*(e.shiftKey?.5:2),h=r(w(b(n,l),s,a),o.apply(this,t),c)
12301
+ YF(e),d>0?Pz(this).transition().duration(d).call(x,h,s,e):Pz(this).call(v.transform,h,s,e)}}function _(n,...o){if(i.apply(this,arguments)){var r,s,a,l,c=n.touches,d=c.length,h=k(this,o,n.changedTouches.length===d).event(n)
12302
+ for(XF(n),s=0;s<d;++s)l=[l=zz(a=c[s],this),this.__zoom.invert(l),a.identifier],h.touch0?h.touch1||h.touch0[2]===l[2]||(h.touch1=l,h.taps=0):(h.touch0=l,r=!0,h.taps=1+!!e)
12303
+ e&&(e=clearTimeout(e)),r&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),xF(this),h.start())}}function E(e,...t){if(this.__zooming){var n,i,o,s,a=k(this,t).event(e),l=e.changedTouches,d=l.length
12304
+ for(YF(e),n=0;n<d;++n)o=zz(i=l[n],this),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=o:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=o)
12299
12305
  if(i=a.that.__zoom,a.touch1){var h=a.touch0[0],u=a.touch0[1],p=a.touch1[0],f=a.touch1[1],m=(m=p[0]-h[0])*m+(m=p[1]-h[1])*m,g=(g=f[0]-u[0])*g+(g=f[1]-u[1])*g
12300
12306
  i=b(i,Math.sqrt(m/g)),o=[(h[0]+p[0])/2,(h[1]+p[1])/2],s=[(u[0]+f[0])/2,(u[1]+f[1])/2]}else{if(!a.touch0)return
12301
12307
  o=a.touch0[0],s=a.touch0[1]}a.zoom("touch",r(w(i,o,s),a.extent,c))}}function I(e,...i){if(this.__zooming){var o,r,s=k(this,i).event(e),a=e.changedTouches,l=a.length
12302
- for(GF(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<l;++o)r=a[o],s.touch0&&s.touch0[2]===r.identifier?delete s.touch0:s.touch1&&s.touch1[2]===r.identifier&&delete s.touch1
12308
+ for(XF(e),n&&clearTimeout(n),n=setTimeout((function(){n=null}),p),o=0;o<l;++o)r=a[o],s.touch0&&s.touch0[2]===r.identifier?delete s.touch0:s.touch1&&s.touch1[2]===r.identifier&&delete s.touch1
12303
12309
  if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0])
12304
- else if(s.end(),2===s.taps&&(r=Dz(r,this),Math.hypot(t[0]-r[0],t[1]-r[1])<g)){var c=Rz(this).on("dblclick.zoom")
12310
+ else if(s.end(),2===s.taps&&(r=zz(r,this),Math.hypot(t[0]-r[0],t[1]-r[1])<g)){var c=Pz(this).on("dblclick.zoom")
12305
12311
  c&&c.apply(this,arguments)}}}return v.transform=function(e,t,n,i){var o=e.selection?e.selection():e
12306
- o.property("__zoom",YF),e!==o?x(e,t,n,i):o.interrupt().each((function(){k(this,arguments).event(i).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,i){v.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),n,i)},v.scaleTo=function(e,t,n,i){v.transform(e,(function(){var e=o.apply(this,arguments),i=this.__zoom,s=null==n?y(e):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(s),l="function"==typeof t?t.apply(this,arguments):t
12312
+ o.property("__zoom",tV),e!==o?x(e,t,n,i):o.interrupt().each((function(){k(this,arguments).event(i).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()}))},v.scaleBy=function(e,t,n,i){v.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)}),n,i)},v.scaleTo=function(e,t,n,i){v.transform(e,(function(){var e=o.apply(this,arguments),i=this.__zoom,s=null==n?y(e):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(s),l="function"==typeof t?t.apply(this,arguments):t
12307
12313
  return r(w(b(i,l),s,a),e,c)}),n,i)},v.translateBy=function(e,t,n,i){v.transform(e,(function(){return r(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),o.apply(this,arguments),c)}),null,i)},v.translateTo=function(e,t,n,i,s){v.transform(e,(function(){var e=o.apply(this,arguments),s=this.__zoom,a=null==i?y(e):"function"==typeof i?i.apply(this,arguments):i
12308
- return r(WF.translate(a[0],a[1]).scale(s.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)}),i,s)},C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=Rz(this.that).datum()
12309
- u.call(e,this.that,new jF(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:u}),t)}},v.wheelDelta=function(e){return arguments.length?(s="function"==typeof e?e:qF(+e),v):s},v.filter=function(e){return arguments.length?(i="function"==typeof e?e:qF(!!e),v):i},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:qF(!!e),v):a},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:qF([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):o},v.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],v):[l[0],l[1]]},v.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(r=e,v):r},v.duration=function(e){return arguments.length?(d=+e,v):d},v.interpolate=function(e){return arguments.length?(h=e,v):h},v.on=function(){var e=u.on.apply(u,arguments)
12310
- return e===u?v:e},v.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,v):Math.sqrt(m)},v.tapDistance=function(e){return arguments.length?(g=+e,v):g},v}ZF.prototype=UF.prototype
12311
- const iV=Z`
12314
+ return r(KF.translate(a[0],a[1]).scale(s.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)}),i,s)},C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){var t=Pz(this.that).datum()
12315
+ u.call(e,this.that,new ZF(e,{sourceEvent:this.sourceEvent,target:v,type:e,transform:this.that.__zoom,dispatch:u}),t)}},v.wheelDelta=function(e){return arguments.length?(s="function"==typeof e?e:WF(+e),v):s},v.filter=function(e){return arguments.length?(i="function"==typeof e?e:WF(!!e),v):i},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:WF(!!e),v):a},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:WF([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),v):o},v.scaleExtent=function(e){return arguments.length?(l[0]=+e[0],l[1]=+e[1],v):[l[0],l[1]]},v.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],v):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},v.constrain=function(e){return arguments.length?(r=e,v):r},v.duration=function(e){return arguments.length?(d=+e,v):d},v.interpolate=function(e){return arguments.length?(h=e,v):h},v.on=function(){var e=u.on.apply(u,arguments)
12316
+ return e===u?v:e},v.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,v):Math.sqrt(m)},v.tapDistance=function(e){return arguments.length?(g=+e,v):g},v}JF.prototype=GF.prototype
12317
+ const sV=Z`
12312
12318
  <div class="wafer-map-container">
12313
12319
  <svg class="svg-root">
12314
12320
  <g ${Ne("zoomContainer")} transform=${e=>e.transform.toString()}>
@@ -12338,7 +12344,7 @@ const iV=Z`
12338
12344
  />
12339
12345
  </svg>
12340
12346
  </div>
12341
- `,oV=we`
12347
+ `,aV=we`
12342
12348
  :host {
12343
12349
  display: inline-block;
12344
12350
  width: 500px;
@@ -12422,68 +12428,68 @@ const iV=Z`
12422
12428
  outline-width: 0px;
12423
12429
  }
12424
12430
  `
12425
- function rV(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function sV(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function aV(e){let t,n,i
12431
+ function lV(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function cV(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function dV(e){let t,n,i
12426
12432
  function o(e,i,o=0,r=e.length){if(o<r){if(0!==t(i,i))return r
12427
12433
  do{const t=o+r>>>1
12428
- n(e[t],i)<0?o=t+1:r=t}while(o<r)}return o}return 2!==e.length?(t=rV,n=(t,n)=>rV(e(t),n),i=(t,n)=>e(t)-n):(t=e===rV||e===sV?e:lV,n=e,i=e),{left:o,center:function(e,t,n=0,r=e.length){const s=o(e,t,n,r-1)
12434
+ n(e[t],i)<0?o=t+1:r=t}while(o<r)}return o}return 2!==e.length?(t=lV,n=(t,n)=>lV(e(t),n),i=(t,n)=>e(t)-n):(t=e===lV||e===cV?e:hV,n=e,i=e),{left:o,center:function(e,t,n=0,r=e.length){const s=o(e,t,n,r-1)
12429
12435
  return s>n&&i(e[s-1],t)>-i(e[s],t)?s-1:s},right:function(e,i,o=0,r=e.length){if(o<r){if(0!==t(i,i))return r
12430
12436
  do{const t=o+r>>>1
12431
- n(e[t],i)<=0?o=t+1:r=t}while(o<r)}return o}}}function lV(){return 0}function cV(e){return null===e?NaN:+e}const dV=aV(rV).right
12432
- aV(cV).center
12433
- var hV=dV
12434
- class uV extends Map{constructor(e,t=fV){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(pV(this,e))}has(e){return super.has(pV(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const i=t(n)
12437
+ n(e[t],i)<=0?o=t+1:r=t}while(o<r)}return o}}}function hV(){return 0}function uV(e){return null===e?NaN:+e}const pV=dV(lV).right
12438
+ dV(uV).center
12439
+ var fV=pV
12440
+ class mV extends Map{constructor(e,t=vV){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(gV(this,e))}has(e){return super.has(gV(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const i=t(n)
12435
12441
  return e.has(i)?e.get(i):(e.set(i,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const i=t(n)
12436
12442
  e.has(i)&&(n=e.get(i),e.delete(i))
12437
- return n}(this,e))}}function pV({_intern:e,_key:t},n){const i=t(n)
12438
- return e.has(i)?e.get(i):n}function fV(e){return null!==e&&"object"==typeof e?e.valueOf():e}const mV=Math.sqrt(50),gV=Math.sqrt(10),vV=Math.sqrt(2)
12439
- function bV(e,t,n){const i=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(i)),r=i/Math.pow(10,o),s=r>=mV?10:r>=gV?5:r>=vV?2:1
12443
+ return n}(this,e))}}function gV({_intern:e,_key:t},n){const i=t(n)
12444
+ return e.has(i)?e.get(i):n}function vV(e){return null!==e&&"object"==typeof e?e.valueOf():e}const bV=Math.sqrt(50),wV=Math.sqrt(10),yV=Math.sqrt(2)
12445
+ function xV(e,t,n){const i=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(i)),r=i/Math.pow(10,o),s=r>=bV?10:r>=wV?5:r>=yV?2:1
12440
12446
  let a,l,c
12441
- return o<0?(c=Math.pow(10,-o)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?bV(e,t,2*n):[a,l,c]}function wV(e,t,n){return bV(e=+e,t=+t,n=+n)[2]}function yV(e,t,n=cV){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e)
12447
+ return o<0?(c=Math.pow(10,-o)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=n&&n<2?xV(e,t,2*n):[a,l,c]}function kV(e,t,n){return xV(e=+e,t=+t,n=+n)[2]}function CV(e,t,n=uV){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e)
12442
12448
  if(t>=1)return+n(e[i-1],i-1,e)
12443
12449
  var i,o=(i-1)*t,r=Math.floor(o),s=+n(e[r],r,e)
12444
- return s+(+n(e[r+1],r+1,e)-s)*(o-r)}}function xV(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n
12450
+ return s+(+n(e[r+1],r+1,e)-s)*(o-r)}}function SV(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n
12445
12451
  for(var i=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),r=new Array(o);++i<o;)r[i]=e+i*n
12446
- return r}function kV(e,t){switch(arguments.length){case 0:break
12452
+ return r}function $V(e,t){switch(arguments.length){case 0:break
12447
12453
  case 1:this.range(e)
12448
12454
  break
12449
- default:this.range(t).domain(e)}return this}const CV=Symbol("implicit")
12450
- function SV(){var e=new uV,t=[],n=[],i=CV
12455
+ default:this.range(t).domain(e)}return this}const MV=Symbol("implicit")
12456
+ function _V(){var e=new mV,t=[],n=[],i=MV
12451
12457
  function o(o){let r=e.get(o)
12452
- if(void 0===r){if(i!==CV)return i
12458
+ if(void 0===r){if(i!==MV)return i
12453
12459
  e.set(o,r=t.push(o)-1)}return n[r%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice()
12454
- t=[],e=new uV
12460
+ t=[],e=new mV
12455
12461
  for(const i of n)e.has(i)||e.set(i,t.push(i)-1)
12456
- return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return SV(t,n).unknown(i)},kV.apply(o,arguments),o}function $V(){var e,t,n=SV().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
12462
+ return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(i=e,o):i},o.copy=function(){return _V(t,n).unknown(i)},$V.apply(o,arguments),o}function EV(){var e,t,n=_V().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
12457
12463
  function h(){var n=i().length,h=s<r,u=h?s:r,p=h?r:s
12458
12464
  e=(p-u)/Math.max(1,n-l+2*c),a&&(e=Math.floor(e)),u+=(p-u-e*(n-l))*d,t=e*(1-l),a&&(u=Math.round(u),t=Math.round(t))
12459
- var f=xV(n).map((function(t){return u+e*t}))
12460
- return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),h()):i()},n.range=function(e){return arguments.length?([r,s]=e,r=+r,s=+s,h()):[r,s]},n.rangeRound=function(e){return[r,s]=e,r=+r,s=+s,a=!0,h()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,h()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},n.copy=function(){return $V(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},kV.apply(h(),arguments)}function MV(e){return+e}var _V=[0,1]
12461
- function EV(e){return e}function IV(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})
12462
- var n}function AV(e,t,n){var i=e[0],o=e[1],r=t[0],s=t[1]
12463
- return o<i?(i=IV(o,i),r=n(s,r)):(i=IV(i,o),r=n(r,s)),function(e){return r(i(e))}}function OV(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),r=new Array(i),s=-1
12464
- for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=IV(e[s],e[s+1]),r[s]=n(t[s],t[s+1])
12465
- return function(t){var n=hV(e,t,1,i)-1
12466
- return r[n](o[n](t))}}function TV(){var e,t,n,i,o,r,s=_V,a=_V,l=IL,c=EV
12465
+ var f=SV(n).map((function(t){return u+e*t}))
12466
+ return o(h?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),h()):i()},n.range=function(e){return arguments.length?([r,s]=e,r=+r,s=+s,h()):[r,s]},n.rangeRound=function(e){return[r,s]=e,r=+r,s=+s,a=!0,h()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,h()):a},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),h()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),h()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,h()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},n.copy=function(){return EV(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},$V.apply(h(),arguments)}function IV(e){return+e}var AV=[0,1]
12467
+ function OV(e){return e}function TV(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})
12468
+ var n}function RV(e,t,n){var i=e[0],o=e[1],r=t[0],s=t[1]
12469
+ return o<i?(i=TV(o,i),r=n(s,r)):(i=TV(i,o),r=n(r,s)),function(e){return r(i(e))}}function DV(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),r=new Array(i),s=-1
12470
+ for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=TV(e[s],e[s+1]),r[s]=n(t[s],t[s+1])
12471
+ return function(t){var n=fV(e,t,1,i)-1
12472
+ return r[n](o[n](t))}}function NV(){var e,t,n,i,o,r,s=AV,a=AV,l=TL,c=OV
12467
12473
  function d(){var e,t,n,l=Math.min(s.length,a.length)
12468
- return c!==EV&&(e=s[0],t=s[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),i=l>2?OV:AV,o=r=null,h}function h(t){return null==t||isNaN(t=+t)?n:(o||(o=i(s.map(e),a,l)))(e(c(t)))}return h.invert=function(n){return c(t((r||(r=i(a,s.map(e),SL)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,MV),d()):s.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),d()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),l=AL,d()},h.clamp=function(e){return arguments.length?(c=!!e||EV,d()):c!==EV},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,i){return e=n,t=i,d()}}function RV(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
12474
+ return c!==OV&&(e=s[0],t=s[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),i=l>2?DV:RV,o=r=null,h}function h(t){return null==t||isNaN(t=+t)?n:(o||(o=i(s.map(e),a,l)))(e(c(t)))}return h.invert=function(n){return c(t((r||(r=i(a,s.map(e),_L)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,IV),d()):s.slice()},h.range=function(e){return arguments.length?(a=Array.from(e),d()):a.slice()},h.rangeRound=function(e){return a=Array.from(e),l=RL,d()},h.clamp=function(e){return arguments.length?(c=!!e||OV,d()):c!==OV},h.interpolate=function(e){return arguments.length?(l=e,d()):l},h.unknown=function(e){return arguments.length?(n=e,h):n},function(n,i){return e=n,t=i,d()}}function PV(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
12469
12475
  var n,i=e.slice(0,n)
12470
- return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function DV(e){return(e=RV(Math.abs(e)))?e[1]:NaN}var NV,PV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
12471
- function zV(e){if(!(t=PV.exec(e)))throw new Error("invalid format: "+e)
12476
+ return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function zV(e){return(e=PV(Math.abs(e)))?e[1]:NaN}var LV,FV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
12477
+ function VV(e){if(!(t=FV.exec(e)))throw new Error("invalid format: "+e)
12472
12478
  var t
12473
- return new LV({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function LV(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function FV(e,t){var n=RV(e,t)
12479
+ return new HV({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function HV(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function BV(e,t){var n=PV(e,t)
12474
12480
  if(!n)return e+""
12475
12481
  var i=n[0],o=n[1]
12476
- return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}zV.prototype=LV.prototype,LV.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}
12477
- var VV={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>FV(100*e,t),r:FV,s:function(e,t){var n=RV(e,t)
12482
+ return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}VV.prototype=HV.prototype,HV.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}
12483
+ var qV={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>BV(100*e,t),r:BV,s:function(e,t){var n=PV(e,t)
12478
12484
  if(!n)return e+""
12479
- var i=n[0],o=n[1],r=o-(NV=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
12480
- return r===s?i:r>s?i+new Array(r-s+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+RV(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
12481
- function HV(e){return e}var BV,qV,jV,UV=Array.prototype.map,WV=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
12482
- function ZV(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?HV:(t=UV.call(e.grouping,Number),n=e.thousands+"",function(e,i){for(var o=e.length,r=[],s=0,a=t[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(e.substring(o-=a,o+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length]
12483
- return r.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?HV:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(UV.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+""
12484
- function h(e){var t=(e=zV(e)).fill,n=e.align,h=e.sign,u=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,v=e.trim,b=e.type
12485
- "n"===b?(m=!0,b="g"):VV[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=")
12486
- var w="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===u?r:/[%p]/.test(b)?l:"",x=VV[b],k=/[defgprs%]/.test(b)
12485
+ var i=n[0],o=n[1],r=o-(LV=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
12486
+ return r===s?i:r>s?i+new Array(r-s+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+PV(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
12487
+ function jV(e){return e}var UV,WV,ZV,GV=Array.prototype.map,KV=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
12488
+ function JV(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?jV:(t=GV.call(e.grouping,Number),n=e.thousands+"",function(e,i){for(var o=e.length,r=[],s=0,a=t[0],l=0;o>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),r.push(e.substring(o-=a,o+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length]
12489
+ return r.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?jV:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(GV.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",d=void 0===e.nan?"NaN":e.nan+""
12490
+ function h(e){var t=(e=VV(e)).fill,n=e.align,h=e.sign,u=e.symbol,p=e.zero,f=e.width,m=e.comma,g=e.precision,v=e.trim,b=e.type
12491
+ "n"===b?(m=!0,b="g"):qV[b]||(void 0===g&&(g=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=")
12492
+ var w="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",y="$"===u?r:/[%p]/.test(b)?l:"",x=qV[b],k=/[defgprs%]/.test(b)
12487
12493
  function C(e){var o,r,l,u=w,C=y
12488
12494
  if("c"===b)C=x(e)+C,e=""
12489
12495
  else{var S=(e=+e)<0||1/e<0
@@ -12492,7 +12498,7 @@ break
12492
12498
  case"0":0===o&&(o=i),t=i
12493
12499
  break
12494
12500
  default:if(!+e[i])break e
12495
- o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?WV[8+NV/3]:"")+C+(S&&"("===h?")":""),k)for(o=-1,r=e.length;++o<r;)if(48>(l=e.charCodeAt(o))||l>57){C=(46===l?s+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o)
12501
+ o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==h&&(S=!1),u=(S?"("===h?h:c:"-"===h||"("===h?"":h)+u,C=("s"===b?KV[8+LV/3]:"")+C+(S&&"("===h?")":""),k)for(o=-1,r=e.length;++o<r;)if(48>(l=e.charCodeAt(o))||l>57){C=(46===l?s+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o)
12496
12502
  break}}m&&!p&&(e=i(e,1/0))
12497
12503
  var $=u.length+e.length+C.length,M=$<f?new Array(f-$+1).join(t):""
12498
12504
  switch(m&&p&&(e=i(M+e,M.length?f-C.length:1/0),M=""),n){case"<":e=u+e+C+M
@@ -12501,19 +12507,19 @@ case"=":e=u+M+e+C
12501
12507
  break
12502
12508
  case"^":e=M.slice(0,$=M.length>>1)+u+e+C+M.slice($)
12503
12509
  break
12504
- default:e=M+u+e+C}return a(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var n=h(((e=zV(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(DV(t)/3))),o=Math.pow(10,-i),r=WV[8+i/3]
12505
- return function(e){return n(o*e)+r}}}}function GV(e,t,n,i){var o,r=function(e,t,n){n=+n
12506
- const i=(t=+t)<(e=+e),o=i?wV(t,e,n):wV(e,t,n)
12510
+ default:e=M+u+e+C}return a(e)}return g=void 0===g?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var n=h(((e=VV(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(zV(t)/3))),o=Math.pow(10,-i),r=KV[8+i/3]
12511
+ return function(e){return n(o*e)+r}}}}function XV(e,t,n,i){var o,r=function(e,t,n){n=+n
12512
+ const i=(t=+t)<(e=+e),o=i?kV(t,e,n):kV(e,t,n)
12507
12513
  return(i?-1:1)*(o<0?1/-o:o)}(e,t,n)
12508
- switch((i=zV(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t))
12509
- return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(DV(t)/3)))-DV(Math.abs(e)))}(r,s))||(i.precision=o),jV(i,s)
12510
- case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,DV(t)-DV(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type))
12514
+ switch((i=VV(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t))
12515
+ return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(zV(t)/3)))-zV(Math.abs(e)))}(r,s))||(i.precision=o),ZV(i,s)
12516
+ case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,zV(t)-zV(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type))
12511
12517
  break
12512
- case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-DV(Math.abs(e)))}(r))||(i.precision=o-2*("%"===i.type))}return qV(i)}function KV(e){var t=e.domain
12518
+ case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-zV(Math.abs(e)))}(r))||(i.precision=o-2*("%"===i.type))}return WV(i)}function YV(e){var t=e.domain
12513
12519
  return e.ticks=function(e){var n=t()
12514
12520
  return function(e,t,n){if(!((n=+n)>0))return[]
12515
12521
  if((e=+e)==(t=+t))return[e]
12516
- const i=t<e,[o,r,s]=i?bV(t,e,n):bV(e,t,n)
12522
+ const i=t<e,[o,r,s]=i?xV(t,e,n):xV(e,t,n)
12517
12523
  if(!(r>=o))return[]
12518
12524
  const a=r-o+1,l=new Array(a)
12519
12525
  if(i)if(s<0)for(let e=0;e<a;++e)l[e]=(r-e)/-s
@@ -12521,23 +12527,23 @@ else for(let e=0;e<a;++e)l[e]=(r-e)*s
12521
12527
  else if(s<0)for(let e=0;e<a;++e)l[e]=(o+e)/-s
12522
12528
  else for(let e=0;e<a;++e)l[e]=(o+e)*s
12523
12529
  return l}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var i=t()
12524
- return GV(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10)
12530
+ return XV(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10)
12525
12531
  var i,o,r=t(),s=0,a=r.length-1,l=r[s],c=r[a],d=10
12526
- for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=wV(l,c,n))===i)return r[s]=l,r[a]=c,t(r)
12532
+ for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=kV(l,c,n))===i)return r[s]=l,r[a]=c,t(r)
12527
12533
  if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o
12528
12534
  else{if(!(o<0))break
12529
- l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function JV(){var e=TV()(EV,EV)
12530
- return e.copy=function(){return t=e,JV().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())
12531
- var t},kV.apply(e,arguments),KV(e)}function XV(){var e,t=[],n=[],i=[]
12535
+ l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function QV(){var e=NV()(OV,OV)
12536
+ return e.copy=function(){return t=e,QV().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())
12537
+ var t},$V.apply(e,arguments),YV(e)}function eH(){var e,t=[],n=[],i=[]
12532
12538
  function o(){var e=0,o=Math.max(1,n.length)
12533
- for(i=new Array(o-1);++e<o;)i[e-1]=yV(t,e/o)
12534
- return r}function r(t){return null==t||isNaN(t=+t)?e:n[hV(i,t)]}return r.invertExtent=function(e){var o=n.indexOf(e)
12539
+ for(i=new Array(o-1);++e<o;)i[e-1]=CV(t,e/o)
12540
+ return r}function r(t){return null==t||isNaN(t=+t)?e:n[fV(i,t)]}return r.invertExtent=function(e){var o=n.indexOf(e)
12535
12541
  return o<0?[NaN,NaN]:[o>0?i[o-1]:t[0],o<i.length?i[o]:t[t.length-1]]},r.domain=function(e){if(!arguments.length)return t.slice()
12536
12542
  t=[]
12537
12543
  for(let n of e)null==n||isNaN(n=+n)||t.push(n)
12538
- return t.sort(rV),o()},r.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.quantiles=function(){return i.slice()},r.copy=function(){return XV().domain(t).range(n).unknown(e)},kV.apply(r,arguments)}BV=ZV({thousands:",",grouping:[3],currency:["$",""]}),qV=BV.format,jV=BV.formatPrefix
12539
- const YV="bottom-left",QV="bottom-right",eH="top-left",tH="top",nH="show",iH="hide",oH="linear",rH="ordinal"
12540
- class sH{constructor(e){this.wafermap=e,this.defaultPadding=0,this.baseMarginPercentage=.04}get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get radius(){return this._radius}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get invertedHorizontalScale(){return this._invertedHorizontalScale}get invertedVerticalScale(){return this._invertedVerticalScale}updateContainerDimensions(){const e={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},t=Math.min(e.width,e.height),n={top:(e.height-t)/2,right:(e.width-t)/2,bottom:(e.height-t)/2,left:(e.width-t)/2},i={top:t*this.baseMarginPercentage,right:t*this.baseMarginPercentage,bottom:t*this.baseMarginPercentage,left:t*this.baseMarginPercentage}
12544
+ return t.sort(lV),o()},r.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.quantiles=function(){return i.slice()},r.copy=function(){return eH().domain(t).range(n).unknown(e)},$V.apply(r,arguments)}UV=JV({thousands:",",grouping:[3],currency:["$",""]}),WV=UV.format,ZV=UV.formatPrefix
12545
+ const tH="bottom-left",nH="bottom-right",iH="top-left",oH="top",rH="show",sH="hide",aH="linear",lH="ordinal"
12546
+ class cH{constructor(e){this.wafermap=e,this.defaultPadding=0,this.baseMarginPercentage=.04}get containerDimensions(){return this._containerDimensions}get dieDimensions(){return this._dieDimensions}get radius(){return this._radius}get margin(){return this._margin}get horizontalScale(){return this._horizontalScale}get verticalScale(){return this._verticalScale}get invertedHorizontalScale(){return this._invertedHorizontalScale}get invertedVerticalScale(){return this._invertedVerticalScale}updateContainerDimensions(){const e={width:this.wafermap.canvasWidth,height:this.wafermap.canvasHeight},t=Math.min(e.width,e.height),n={top:(e.height-t)/2,right:(e.width-t)/2,bottom:(e.height-t)/2,left:(e.width-t)/2},i={top:t*this.baseMarginPercentage,right:t*this.baseMarginPercentage,bottom:t*this.baseMarginPercentage,left:t*this.baseMarginPercentage}
12541
12547
  this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(e,this._margin)
12542
12548
  const o=Math.min(this._containerDimensions.width,this._containerDimensions.height)
12543
12549
  this._radius=o/2,this.updateScales()}updateScales(){const e=Math.min(this._containerDimensions.width,this._containerDimensions.height),t=this.gridDimensionsValidAndDefined()?this.calculateGridDimensionsFromBoundingBox():this.calculateGridDimensionsFromDies(this.wafermap.dies),n=this.wafermap.originLocation
@@ -12545,19 +12551,19 @@ this._horizontalScale=this.createHorizontalScale(n,t,e),this._invertedHorizontal
12545
12551
  return"number"==typeof this.wafermap.gridMaxY&&"number"==typeof this.wafermap.gridMinY&&"number"==typeof this.wafermap.gridMaxX&&"number"==typeof this.wafermap.gridMinX&&(e.origin.x=this.wafermap.gridMinX,e.origin.y=this.wafermap.gridMinY,e.rows=this.wafermap.gridMaxY-this.wafermap.gridMinY+1,e.cols=this.wafermap.gridMaxX-this.wafermap.gridMinX+1),e}calculateGridDimensionsFromDies(e){if(0===e.length||void 0===e[0])return{origin:{x:0,y:0},rows:0,cols:0}
12546
12552
  const t={x:e[0].x,y:e[0].y},n={x:e[0].x,y:e[0].y}
12547
12553
  for(const i of e)i.x<t.x&&(t.x=i.x),i.y<t.y&&(t.y=i.y),i.x>n.x&&(n.x=i.x),i.y>n.y&&(n.y=i.y)
12548
- return{origin:t,rows:n.y-t.y+1,cols:n.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,n){const i=$V().domain(xV(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
12549
- return e===YV||e===eH?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(e,t,n){const i=XV().domain([0,n])
12550
- return e===YV||e===eH?i.range(xV(t.origin.x,t.origin.x+t.cols)):i.range(xV(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,n){const i=$V().domain(xV(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
12551
- return e===YV||e===QV?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(e,t,n){const i=XV().domain([0,n])
12552
- return e===YV||e===QV?i.range(xV(t.origin.y,t.origin.y+t.rows).reverse()):i.range(xV(t.origin.y,t.origin.y+t.rows))}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}}class aH{constructor(e,t){this.wafermap=e,this.dataManager=t,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode),this._diesRenderInfo=this.wafermap.dies.map((e=>this.computeDieRenderInfo(e))).filter((e=>null!==e))}computeDieRenderInfo(e){const t=this.dataManager.margin,n=this.dataManager.horizontalScale(e.x),i=this.dataManager.verticalScale(e.y)
12553
- return void 0===n||void 0===i?null:{x:n+t.right,y:i+t.top,fillStyle:this.calculateFillStyle(e.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,e.tags),text:this.buildLabel(e.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?JV().domain(e.values.map((e=>+e))).range(e.colors):SV().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,n,i){if(n||!this.dieHasData(e))return""
12554
+ return{origin:t,rows:n.y-t.y+1,cols:n.x-t.x+1}}calculateContainerDimensions(e,t){return{width:e.width-t.left-t.right,height:e.height-t.top-t.bottom}}createHorizontalScale(e,t,n){const i=EV().domain(SV(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
12555
+ return e===tH||e===iH?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(e,t,n){const i=eH().domain([0,n])
12556
+ return e===tH||e===iH?i.range(SV(t.origin.x,t.origin.x+t.cols)):i.range(SV(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,n){const i=EV().domain(SV(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
12557
+ return e===tH||e===nH?i.range([n,0]):i.range([0,n])}createInvertedVerticalScale(e,t,n){const i=eH().domain([0,n])
12558
+ return e===tH||e===nH?i.range(SV(t.origin.y,t.origin.y+t.rows).reverse()):i.range(SV(t.origin.y,t.origin.y+t.rows))}calculateMarginAddition(e,t){return{top:e.top+t.top,right:e.right+t.right,bottom:e.bottom+t.bottom,left:e.left+t.left}}}class dH{constructor(e,t){this.wafermap=e,this.dataManager=t,this.fontSizeFactor=.8,this.nonHighlightedOpacity=.3,this.emptyDieColor="rgba(218,223,236,1)",this.nanDieColor="rgba(122,122,122,1)"}get labelsFontSize(){return this._labelsFontSize}get diesRenderInfo(){return this._diesRenderInfo}updateLabelsFontSize(){this._labelsFontSize=this.calculateLabelsFontSize(this.dataManager.dieDimensions,this.wafermap.maxCharacters),this.updateDiesRenderInfo()}updateDiesRenderInfo(){this.d3ColorScale=this.createD3ColorScale(this.wafermap.colorScale,this.wafermap.colorScaleMode),this._diesRenderInfo=this.wafermap.dies.map((e=>this.computeDieRenderInfo(e))).filter((e=>null!==e))}computeDieRenderInfo(e){const t=this.dataManager.margin,n=this.dataManager.horizontalScale(e.x),i=this.dataManager.verticalScale(e.y)
12559
+ return void 0===n||void 0===i?null:{x:n+t.right,y:i+t.top,fillStyle:this.calculateFillStyle(e.value,this.wafermap.colorScaleMode,this.wafermap.highlightedTags,e.tags),text:this.buildLabel(e.value,this.wafermap.maxCharacters,this.wafermap.dieLabelsHidden,this.wafermap.dieLabelsSuffix)}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?QV().domain(e.values.map((e=>+e))).range(e.colors):_V().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,n,i){if(n||!this.dieHasData(e))return""
12554
12560
  const o=`${e}${i}`
12555
12561
  return o.length>t?`${o.substring(0,t)}…`:o}calculateOpacity(e,t){if(!t||0===t.length)return 1
12556
12562
  const n=new Set(t)
12557
- return e?.some((e=>n.has(e)))?1:this.nonHighlightedOpacity}isColorScaleLinear(e){return e===oH}isColorScaleOrdinal(e){return e===rH}calculateFillStyle(e,t,n,i){let o=this.emptyDieColor
12563
+ return e?.some((e=>n.has(e)))?1:this.nonHighlightedOpacity}isColorScaleLinear(e){return e===aH}isColorScaleOrdinal(e){return e===lH}calculateFillStyle(e,t,n,i){let o=this.emptyDieColor
12558
12564
  if(this.dieHasData(e)&&(isNaN(+e)?o=this.nanDieColor:this.isColorScaleLinear(t)?o=this.d3ColorScale(+e):this.isColorScaleOrdinal(t)&&(o=this.d3ColorScale(e))),void 0===o)return this.emptyDieColor
12559
12565
  let r=Zo(o)
12560
- return null===r?this.emptyDieColor:(r=new Fo(r.r,r.g,r.b,this.calculateOpacity(i,n)),r.toStringWebRGBA())}}class lH{constructor(e){this.wafermap=e,this.computations=new sH(e),this.prerendering=new aH(e,this)}get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get invertedHorizontalScale(){return this.computations.invertedHorizontalScale}get verticalScale(){return this.computations.verticalScale}get invertedVerticalScale(){return this.computations.invertedVerticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get data(){return this.dataMap}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(e){return this.dataMap.get(`${e.x}_${e.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((e=>[`${e.x}_${e.y}`,e])))}}class cH{constructor(e){this.wafermap=e,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.fillStyle?-1:0)),this.drawWafer()}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.dataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.dataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?iH:nH,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
12566
+ return null===r?this.emptyDieColor:(r=new Fo(r.r,r.g,r.b,this.calculateOpacity(i,n)),r.toStringWebRGBA())}}class hH{constructor(e){this.wafermap=e,this.computations=new cH(e),this.prerendering=new dH(e,this)}get containerDimensions(){return this.computations.containerDimensions}get dieDimensions(){return this.computations.dieDimensions}get radius(){return this.computations.radius}get margin(){return this.computations.margin}get horizontalScale(){return this.computations.horizontalScale}get invertedHorizontalScale(){return this.computations.invertedHorizontalScale}get verticalScale(){return this.computations.verticalScale}get invertedVerticalScale(){return this.computations.invertedVerticalScale}get labelsFontSize(){return this.prerendering.labelsFontSize}get diesRenderInfo(){return this.prerendering.diesRenderInfo}get data(){return this.dataMap}updateContainerDimensions(){this.computations.updateContainerDimensions(),this.updateDataMap(),this.updateLabelsFontSize()}updateScales(){this.computations.updateScales(),this.updateDataMap(),this.updateLabelsFontSize()}updateLabelsFontSize(){this.prerendering.updateLabelsFontSize()}updateDiesRenderInfo(){this.prerendering.updateDiesRenderInfo()}getWaferMapDie(e){return this.dataMap.get(`${e.x}_${e.y}`)}updateDataMap(){this.dataMap=new Map(this.wafermap.dies.map((e=>[`${e.x}_${e.y}`,e])))}}class uH{constructor(e){this.wafermap=e,this.minDieDim=50}updateSortedDiesAndDrawWafer(){this.dies=this.wafermap.dataManager.diesRenderInfo.sort(((e,t)=>e.fillStyle>t.fillStyle?1:t.fillStyle>e.fillStyle?-1:0)),this.drawWafer()}drawWafer(){this.wafermap.canvasContext.save(),this.clearCanvas(),this.scaleCanvas(),this.renderDies(),this.renderText(),this.wafermap.canvasContext.restore(),this.renderHover()}renderHover(){this.wafermap.hoverWidth=this.wafermap.dataManager.dieDimensions.width*this.wafermap.transform.k,this.wafermap.hoverHeight=this.wafermap.dataManager.dieDimensions.height*this.wafermap.transform.k,this.wafermap.hoverOpacity=void 0===this.wafermap.hoverDie?sH:rH,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
12561
12567
  if(void 0===e)return""
12562
12568
  const t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
12563
12569
  if(void 0===t)return""
@@ -12570,19 +12576,19 @@ if(e*t*(this.wafermap.transform.k||1)>=this.minDieDim){const n=this.wafermap.dat
12570
12576
  i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
12571
12577
  const o=i.measureText("M"),r=this.wafermap.transform.invert([0,0]),s=this.wafermap.transform.invert([this.wafermap.canvas.width,this.wafermap.canvas.height])
12572
12578
  r[0]-=e,r[1]-=t
12573
- for(const n of this.dies)this.isDieVisible(n,r,s)&&i.fillText(n.text,n.x+e/2,n.y+t/2+o.width/2,e-e/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(e,t,n){return e.x>=t[0]&&e.x<n[0]&&e.y>=t[1]&&e.y<n[1]}}class dH{constructor(e){this.wafermap=e,this.zoomTransform=WF,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100}createZoomBehavior(){this.zoomBehavior=nV().scaleExtent([1.1,this.getZoomMax(this.wafermap.canvasWidth*this.wafermap.canvasHeight,this.wafermap.dataManager.containerDimensions.width*this.wafermap.dataManager.containerDimensions.height)]).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth+this.extentPadding,this.wafermap.canvasHeight+this.extentPadding]]).filter((e=>ZF(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)})),this.zoomBehavior(Rz(this.wafermap.canvas))}rescale(e){const t=e.transform
12574
- t.k===this.minScale?(this.zoomTransform=WF,this.zoomBehavior.transform(Rz(this.wafermap.canvas),WF)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}getZoomMax(e,t){return Math.ceil(t/e*100)}}class hH{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
12579
+ for(const n of this.dies)this.isDieVisible(n,r,s)&&i.fillText(n.text,n.x+e/2,n.y+t/2+o.width/2,e-e/100*20)}}clearCanvas(){this.wafermap.canvasContext.clearRect(0,0,this.wafermap.canvas.width,this.wafermap.canvas.height)}scaleCanvas(){this.wafermap.canvasContext.translate(this.wafermap.transform.x,this.wafermap.transform.y),this.wafermap.canvasContext.scale(this.wafermap.transform.k,this.wafermap.transform.k)}isDieVisible(e,t,n){return e.x>=t[0]&&e.x<n[0]&&e.y>=t[1]&&e.y<n[1]}}class pH{constructor(e){this.wafermap=e,this.zoomTransform=KF,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100}createZoomBehavior(){this.zoomBehavior=rV().scaleExtent([1.1,this.getZoomMax(this.wafermap.canvasWidth*this.wafermap.canvasHeight,this.wafermap.dataManager.containerDimensions.width*this.wafermap.dataManager.containerDimensions.height)]).translateExtent([this.minExtentPoint,[this.wafermap.canvasWidth+this.extentPadding,this.wafermap.canvasHeight+this.extentPadding]]).filter((e=>JF(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)})),this.zoomBehavior(Pz(this.wafermap.canvas))}rescale(e){const t=e.transform
12580
+ t.k===this.minScale?(this.zoomTransform=KF,this.zoomBehavior.transform(Pz(this.wafermap.canvas),KF)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}getZoomMax(e,t){return Math.ceil(t/e*100)}}class fH{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
12575
12581
  if(!this.hoversOverDie(this.wafermap,t))return void(this.wafermap.hoverDie=void 0)
12576
12582
  const n=this.wafermap.transform.invert([t.x,t.y]),i=this.calculateDieCoordinates(this.wafermap,{x:n[0],y:n[1]})
12577
- this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e,t){const n=e.originLocation,i=n===YV||n===eH?Math.floor:Math.ceil,o=n===YV||n===QV?Math.floor:Math.ceil
12583
+ this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e,t){const n=e.originLocation,i=n===tH||n===iH?Math.floor:Math.ceil,o=n===tH||n===nH?Math.floor:Math.ceil
12578
12584
  return{x:i(e.dataManager.invertedHorizontalScale(t.x-e.dataManager.margin.left)),y:o(e.dataManager.invertedVerticalScale(t.y-e.dataManager.margin.top))}}hoversOverDie(e,t){const n=e.canvasContext.getImageData(t.x,t.y,1,1).data
12579
12585
  let i=0
12580
12586
  for(const e of n)i+=e
12581
- return i>0}}class uH{constructor(e){this.wafermap=e,this.onWheelMove=e=>{e.preventDefault()},this.onMouseMove=e=>{this.hoverHandler.mousemove(e)},this.onMouseOut=()=>{this.hoverHandler.mouseout()},this.zoomHandler=new dH(e),this.hoverHandler=new hH(e)}attachEvents(){this.zoomHandler.createZoomBehavior(),this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.addEventListener("wheel",this.onWheelMove,{passive:!1})}detachEvents(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.removeEventListener("wheel",this.onWheelMove)}}const pH=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
12582
- class fH extends TR{constructor(e){super(pH),this.wafermap=e,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("highlightedTags")||this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresScalesUpdate(){return this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")}get requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresDrawnWaferUpdate(){return this.isTracked("transform")}get requiresRenderHoverUpdate(){return this.isTracked("hoverDie")}queueUpdate(){this.wafermap.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1}))))}}class mH{constructor(e){this.wafermap=e,this.invalidGridDimensions=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}}class gH extends Lt{constructor(){super(...arguments),this.waferMapUpdateTracker=new fH(this),this.originLocation=YV,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=tH,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=oH,this.dataManager=new lH(this),this.renderer=new cH(this),this.renderQueued=!1,this.transform=WF,this.hoverTransform="",this.hoverOpacity=iH,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.eventCoordinator=new uH(this),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new mH(this)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}update(){this.waferMapUpdateTracker.requiresEventsUpdate?(this.eventCoordinator.detachEvents(),this.waferMapValidator.validateGridDimensions(),this.waferMapUpdateTracker.requiresContainerDimensionsUpdate?(this.dataManager.updateContainerDimensions(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresScalesUpdate?(this.dataManager.updateScales(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate?(this.dataManager.updateLabelsFontSize(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.dataManager.updateDiesRenderInfo(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.renderer.drawWafer(),this.eventCoordinator.attachEvents()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}createResizeObserver(){return new ResizeObserver((e=>{const t=e[0]
12587
+ return i>0}}class mH{constructor(e){this.wafermap=e,this.onWheelMove=e=>{e.preventDefault()},this.onMouseMove=e=>{this.hoverHandler.mousemove(e)},this.onMouseOut=()=>{this.hoverHandler.mouseout()},this.zoomHandler=new pH(e),this.hoverHandler=new fH(e)}attachEvents(){this.zoomHandler.createZoomBehavior(),this.wafermap.addEventListener("mousemove",this.onMouseMove),this.wafermap.addEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.addEventListener("wheel",this.onWheelMove,{passive:!1})}detachEvents(){this.wafermap.removeEventListener("mousemove",this.onMouseMove),this.wafermap.removeEventListener("mouseout",this.onMouseOut),this.wafermap.canvas.removeEventListener("wheel",this.onWheelMove)}}const gH=["highlightedTags","canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
12588
+ class vH extends IE{constructor(e){super(gH),this.wafermap=e,this.updateQueued=!1}get requiresEventsUpdate(){return this.isTracked("highlightedTags")||this.isTracked("canvasWidth")||this.isTracked("canvasHeight")||this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")||this.isTracked("maxCharacters")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")||this.isTracked("transform")}get requiresContainerDimensionsUpdate(){return this.isTracked("canvasWidth")||this.isTracked("canvasHeight")}get requiresScalesUpdate(){return this.isTracked("originLocation")||this.isTracked("gridMinX")||this.isTracked("gridMaxX")||this.isTracked("gridMinY")||this.isTracked("gridMaxY")||this.isTracked("dies")}get requiresLabelsFontSizeUpdate(){return this.isTracked("maxCharacters")}get requiresDiesRenderInfoUpdate(){return this.isTracked("highlightedTags")||this.isTracked("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("dieLabelsHidden")||this.isTracked("dieLabelsSuffix")}get requiresDrawnWaferUpdate(){return this.isTracked("transform")}get requiresRenderHoverUpdate(){return this.isTracked("hoverDie")}queueUpdate(){this.wafermap.$fastController.isConnected&&(this.updateQueued||(this.updateQueued=!0,u.queueUpdate((()=>{this.wafermap.update(),this.untrackAll(),this.updateQueued=!1}))))}}class bH{constructor(e){this.wafermap=e,this.invalidGridDimensions=!1}getValidity(){return{invalidGridDimensions:this.invalidGridDimensions}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}validateGridDimensions(){return this.invalidGridDimensions=!1,void 0===this.wafermap.gridMinX&&void 0===this.wafermap.gridMaxX&&void 0===this.wafermap.gridMinY&&void 0===this.wafermap.gridMaxY?this.invalidGridDimensions=!1:("number"!=typeof this.wafermap.gridMinX||"number"!=typeof this.wafermap.gridMaxX||"number"!=typeof this.wafermap.gridMinY||"number"!=typeof this.wafermap.gridMaxY||this.wafermap.gridMaxX<this.wafermap.gridMinX||this.wafermap.gridMaxY<this.wafermap.gridMinY)&&(this.invalidGridDimensions=!0),!this.invalidGridDimensions}}class wH extends Lt{constructor(){super(...arguments),this.waferMapUpdateTracker=new vH(this),this.originLocation=tH,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=oH,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=aH,this.dataManager=new hH(this),this.renderer=new uH(this),this.renderQueued=!1,this.transform=KF,this.hoverTransform="",this.hoverOpacity=sH,this.hoverWidth=0,this.hoverHeight=0,this.highlightedTags=[],this.dies=[],this.colorScale={colors:[],values:[]},this.eventCoordinator=new mH(this),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new bH(this)}get validity(){return this.waferMapValidator.getValidity()}connectedCallback(){super.connectedCallback(),this.canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0}),this.resizeObserver.observe(this),this.waferMapUpdateTracker.trackAll()}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}update(){this.waferMapUpdateTracker.requiresEventsUpdate?(this.eventCoordinator.detachEvents(),this.waferMapValidator.validateGridDimensions(),this.waferMapUpdateTracker.requiresContainerDimensionsUpdate?(this.dataManager.updateContainerDimensions(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresScalesUpdate?(this.dataManager.updateScales(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresLabelsFontSizeUpdate?(this.dataManager.updateLabelsFontSize(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDiesRenderInfoUpdate?(this.dataManager.updateDiesRenderInfo(),this.renderer.updateSortedDiesAndDrawWafer()):this.waferMapUpdateTracker.requiresDrawnWaferUpdate&&this.renderer.drawWafer(),this.eventCoordinator.attachEvents()):this.waferMapUpdateTracker.requiresRenderHoverUpdate&&this.renderer.renderHover()}createResizeObserver(){return new ResizeObserver((e=>{const t=e[0]
12583
12589
  if(void 0===t)return
12584
12590
  const{height:n,width:i}=t.contentRect
12585
- this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}highlightedTagsChanged(){this.waferMapUpdateTracker.track("highlightedTags"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}}e([se({attribute:"origin-location"})],gH.prototype,"originLocation",void 0),e([se({attribute:"grid-min-x",converter:oe})],gH.prototype,"gridMinX",void 0),e([se({attribute:"grid-max-x",converter:oe})],gH.prototype,"gridMaxX",void 0),e([se({attribute:"grid-min-y",converter:oe})],gH.prototype,"gridMinY",void 0),e([se({attribute:"grid-max-y",converter:oe})],gH.prototype,"gridMaxY",void 0),e([se],gH.prototype,"orientation",void 0),e([se({attribute:"max-characters",converter:oe})],gH.prototype,"maxCharacters",void 0),e([se({attribute:"die-labels-hidden",mode:"boolean"})],gH.prototype,"dieLabelsHidden",void 0),e([se({attribute:"die-labels-suffix"})],gH.prototype,"dieLabelsSuffix",void 0),e([se({attribute:"color-scale-mode"})],gH.prototype,"colorScaleMode",void 0),e([g],gH.prototype,"canvasWidth",void 0),e([g],gH.prototype,"canvasHeight",void 0),e([g],gH.prototype,"transform",void 0),e([g],gH.prototype,"hoverTransform",void 0),e([g],gH.prototype,"hoverOpacity",void 0),e([g],gH.prototype,"hoverWidth",void 0),e([g],gH.prototype,"hoverHeight",void 0),e([g],gH.prototype,"hoverDie",void 0),e([g],gH.prototype,"highlightedTags",void 0),e([g],gH.prototype,"dies",void 0),e([g],gH.prototype,"colorScale",void 0)
12586
- const vH=gH.compose({baseName:"wafer-map",template:iV,styles:oV})
12587
- bi.getOrCreate().withPrefix("nimble").register(vH())}()
12591
+ this.canvas.width=i,this.canvas.height=n,this.canvasWidth=i,this.canvasHeight=n}))}originLocationChanged(){this.waferMapUpdateTracker.track("originLocation"),this.waferMapUpdateTracker.queueUpdate()}gridMinXChanged(){this.waferMapUpdateTracker.track("gridMinX"),this.waferMapUpdateTracker.queueUpdate()}gridMaxXChanged(){this.waferMapUpdateTracker.track("gridMaxX"),this.waferMapUpdateTracker.queueUpdate()}gridMinYChanged(){this.waferMapUpdateTracker.track("gridMinY"),this.waferMapUpdateTracker.queueUpdate()}gridMaxYChanged(){this.waferMapUpdateTracker.track("gridMaxY"),this.waferMapUpdateTracker.queueUpdate()}maxCharactersChanged(){this.waferMapUpdateTracker.track("maxCharacters"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsHiddenChanged(){this.waferMapUpdateTracker.track("dieLabelsHidden"),this.waferMapUpdateTracker.queueUpdate()}dieLabelsSuffixChanged(){this.waferMapUpdateTracker.track("dieLabelsSuffix"),this.waferMapUpdateTracker.queueUpdate()}colorScaleModeChanged(){this.waferMapUpdateTracker.track("colorScaleMode"),this.waferMapUpdateTracker.queueUpdate()}highlightedTagsChanged(){this.waferMapUpdateTracker.track("highlightedTags"),this.waferMapUpdateTracker.queueUpdate()}diesChanged(){this.waferMapUpdateTracker.track("dies"),this.waferMapUpdateTracker.queueUpdate()}colorScaleChanged(){this.waferMapUpdateTracker.track("colorScale"),this.waferMapUpdateTracker.queueUpdate()}transformChanged(){this.waferMapUpdateTracker.track("transform"),this.waferMapUpdateTracker.queueUpdate()}canvasWidthChanged(){this.waferMapUpdateTracker.track("canvasWidth"),this.waferMapUpdateTracker.queueUpdate()}canvasHeightChanged(){this.waferMapUpdateTracker.track("canvasHeight"),this.waferMapUpdateTracker.queueUpdate()}hoverDieChanged(){this.$emit("die-hover",{currentDie:this.hoverDie}),this.waferMapUpdateTracker.track("hoverDie"),this.waferMapUpdateTracker.queueUpdate()}}e([se({attribute:"origin-location"})],wH.prototype,"originLocation",void 0),e([se({attribute:"grid-min-x",converter:oe})],wH.prototype,"gridMinX",void 0),e([se({attribute:"grid-max-x",converter:oe})],wH.prototype,"gridMaxX",void 0),e([se({attribute:"grid-min-y",converter:oe})],wH.prototype,"gridMinY",void 0),e([se({attribute:"grid-max-y",converter:oe})],wH.prototype,"gridMaxY",void 0),e([se],wH.prototype,"orientation",void 0),e([se({attribute:"max-characters",converter:oe})],wH.prototype,"maxCharacters",void 0),e([se({attribute:"die-labels-hidden",mode:"boolean"})],wH.prototype,"dieLabelsHidden",void 0),e([se({attribute:"die-labels-suffix"})],wH.prototype,"dieLabelsSuffix",void 0),e([se({attribute:"color-scale-mode"})],wH.prototype,"colorScaleMode",void 0),e([g],wH.prototype,"canvasWidth",void 0),e([g],wH.prototype,"canvasHeight",void 0),e([g],wH.prototype,"transform",void 0),e([g],wH.prototype,"hoverTransform",void 0),e([g],wH.prototype,"hoverOpacity",void 0),e([g],wH.prototype,"hoverWidth",void 0),e([g],wH.prototype,"hoverHeight",void 0),e([g],wH.prototype,"hoverDie",void 0),e([g],wH.prototype,"highlightedTags",void 0),e([g],wH.prototype,"dies",void 0),e([g],wH.prototype,"colorScale",void 0)
12592
+ const yH=wH.compose({baseName:"wafer-map",template:sV,styles:aV})
12593
+ bi.getOrCreate().withPrefix("nimble").register(yH())}()
12588
12594
  //# sourceMappingURL=all-components-bundle.min.js.map