@ni/nimble-components 20.3.1 → 20.3.2

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.
@@ -7109,7 +7109,11 @@ return e.descendants(((e,t)=>{const n=i>=t&&i<=t+e.nodeSize,r=!e.isLeaf&&!e.chil
7109
7109
  if((n||!this.options.showOnlyCurrent)&&r){const i=[this.options.emptyNodeClass]
7110
7110
  s&&i.push(this.options.emptyEditorClass)
7111
7111
  const r=lS.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})
7112
- o.push(r)}return this.options.includeChildren})),hS.create(e,o)}}})]}}),QA=xM.create({name:"text",group:"inline"}),eE=ye`
7112
+ o.push(r)}return this.options.includeChildren})),hS.create(e,o)}}})]}}),QA=xM.create({name:"text",group:"inline"}),eE=xM.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:e}){return["br",p$(this.options.HTMLAttributes,e)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:i})=>e.first([()=>e.exitCode(),()=>e.command((()=>{const{selection:e,storedMarks:o}=n
7113
+ if(e.$from.parent.type.spec.isolating)return!1
7114
+ const{keepMarks:r}=this.options,{splittableMarks:s}=i.extensionManager,a=o||e.$to.parentOffset&&e.$from.marks()
7115
+ return t().insertContent({type:this.name}).command((({tr:e,dispatch:t})=>{if(t&&a&&r){const t=a.filter((e=>s.includes(e.type.name)))
7116
+ e.ensureMarks(t)}return!0})).run()}))])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),tE=ye`
7113
7117
  .positioning-region {
7114
7118
  display: flex;
7115
7119
  padding: ${Na} ${Pa};
@@ -7134,7 +7138,7 @@ o.push(r)}return this.options.includeChildren})),hS.create(e,o)}}})]}}),QA=xM.cr
7134
7138
  margin-left: auto;
7135
7139
  }
7136
7140
  `
7137
- class tE extends lo{}const nE=tE.compose({baseName:"toolbar",baseClass:lo,template:(e,t)=>W`
7141
+ class nE extends lo{}const iE=nE.compose({baseName:"toolbar",baseClass:lo,template:(e,t)=>W`
7138
7142
  <template
7139
7143
  aria-label="${e=>e.ariaLabel}"
7140
7144
  aria-labelledby="${e=>e.ariaLabelledby}"
@@ -7155,9 +7159,9 @@ class tE extends lo{}const nE=tE.compose({baseName:"toolbar",baseClass:lo,templa
7155
7159
  ${Ye(0,t)}
7156
7160
  </div>
7157
7161
  </template>
7158
- `,styles:eE,shadowOptions:{delegatesFocus:!0}})
7159
- mi.getOrCreate().withPrefix("nimble").register(nE())
7160
- const iE=mi.tagFor(tE),oE="Bold",rE="Italics",sE="Bulleted List",aE="Numbered List",lE=di.create({name:"rich-text-toggle-bold-label",cssCustomPropertyName:null}).withDefault(oE),cE=di.create({name:"rich-text-toggle-italics-label",cssCustomPropertyName:null}).withDefault(rE),dE=di.create({name:"rich-text-toggle-bulleted-list-label",cssCustomPropertyName:null}).withDefault(sE),hE=di.create({name:"rich-text-toggle-numbered-list-label",cssCustomPropertyName:null}).withDefault(aE),uE=W`
7162
+ `,styles:tE,shadowOptions:{delegatesFocus:!0}})
7163
+ mi.getOrCreate().withPrefix("nimble").register(iE())
7164
+ const oE=mi.tagFor(nE),rE="Bold",sE="Italics",aE="Bulleted List",lE="Numbered List",cE=di.create({name:"rich-text-toggle-bold-label",cssCustomPropertyName:null}).withDefault(rE),dE=di.create({name:"rich-text-toggle-italics-label",cssCustomPropertyName:null}).withDefault(sE),hE=di.create({name:"rich-text-toggle-bulleted-list-label",cssCustomPropertyName:null}).withDefault(aE),uE=di.create({name:"rich-text-toggle-numbered-list-label",cssCustomPropertyName:null}).withDefault(lE),pE=W`
7161
7165
  <template>
7162
7166
  <div class="container">
7163
7167
  <section ${De("editorContainer")} class="editor-container">
@@ -7168,19 +7172,19 @@ const iE=mi.tagFor(tE),oE="Bold",rE="Italics",sE="Bulleted List",aE="Numbered Li
7168
7172
  style="--ni-private-rich-text-editor-scrollbar-width: ${e=>e.scrollbarWidth}px;"
7169
7173
  ></${af}>
7170
7174
  <section class="footer-section">
7171
- <${iE}>
7175
+ <${oE}>
7172
7176
  <${Vf}
7173
7177
  ${De("boldButton")}
7174
7178
  appearance="ghost"
7175
7179
  content-hidden
7176
7180
  ?disabled="${e=>e.disabled}"
7177
7181
  slot="start"
7178
- title=${e=>lE.getValueFor(e)}
7182
+ title=${e=>cE.getValueFor(e)}
7179
7183
  @click=${e=>e.boldButtonClick()}
7180
7184
  @change=${(e,t)=>e.stopEventPropagation(t.event)}
7181
7185
  @keydown=${(e,t)=>e.boldButtonKeyDown(t.event)}
7182
7186
  >
7183
- ${e=>lE.getValueFor(e)}
7187
+ ${e=>cE.getValueFor(e)}
7184
7188
  <${Fg} slot="start"></${Fg}>
7185
7189
  </${Vf}>
7186
7190
  <${Vf}
@@ -7189,12 +7193,12 @@ const iE=mi.tagFor(tE),oE="Bold",rE="Italics",sE="Bulleted List",aE="Numbered Li
7189
7193
  content-hidden
7190
7194
  ?disabled="${e=>e.disabled}"
7191
7195
  slot="start"
7192
- title=${e=>cE.getValueFor(e)}
7196
+ title=${e=>dE.getValueFor(e)}
7193
7197
  @click=${e=>e.italicsButtonClick()}
7194
7198
  @change=${(e,t)=>e.stopEventPropagation(t.event)}
7195
7199
  @keydown=${(e,t)=>e.italicsButtonKeyDown(t.event)}
7196
7200
  >
7197
- ${e=>cE.getValueFor(e)}
7201
+ ${e=>dE.getValueFor(e)}
7198
7202
  <${tv} slot="start"></${tv}>
7199
7203
  </${Vf}>
7200
7204
  <${Vf}
@@ -7203,12 +7207,12 @@ const iE=mi.tagFor(tE),oE="Bold",rE="Italics",sE="Bulleted List",aE="Numbered Li
7203
7207
  content-hidden
7204
7208
  ?disabled="${e=>e.disabled}"
7205
7209
  slot="start"
7206
- title=${e=>dE.getValueFor(e)}
7210
+ title=${e=>hE.getValueFor(e)}
7207
7211
  @click=${e=>e.bulletListButtonClick()}
7208
7212
  @change=${(e,t)=>e.stopEventPropagation(t.event)}
7209
7213
  @keydown=${(e,t)=>e.bulletListButtonKeyDown(t.event)}
7210
7214
  >
7211
- ${e=>dE.getValueFor(e)}
7215
+ ${e=>hE.getValueFor(e)}
7212
7216
  <${cv} slot="start"></${cv}>
7213
7217
  </${Vf}>
7214
7218
  <${Vf}
@@ -7217,15 +7221,15 @@ const iE=mi.tagFor(tE),oE="Bold",rE="Italics",sE="Bulleted List",aE="Numbered Li
7217
7221
  content-hidden
7218
7222
  ?disabled="${e=>e.disabled}"
7219
7223
  slot="start"
7220
- title=${e=>hE.getValueFor(e)}
7224
+ title=${e=>uE.getValueFor(e)}
7221
7225
  @click=${e=>e.numberedListButtonClick()}
7222
7226
  @change=${(e,t)=>e.stopEventPropagation(t.event)}
7223
7227
  @keydown=${(e,t)=>e.numberedListButtonKeyDown(t.event)}
7224
7228
  >
7225
- ${e=>hE.getValueFor(e)}
7229
+ ${e=>uE.getValueFor(e)}
7226
7230
  <${xv} slot="start"></${xv}>
7227
7231
  </${Vf}>
7228
- </${iE}>
7232
+ </${oE}>
7229
7233
  <span class="footer-actions" part="footer-actions">
7230
7234
  <slot name="footer-actions"></slot>
7231
7235
  </span>
@@ -7233,7 +7237,7 @@ const iE=mi.tagFor(tE),oE="Bold",rE="Italics",sE="Bulleted List",aE="Numbered Li
7233
7237
  ${Hf}
7234
7238
  </div>
7235
7239
  </template>
7236
- `,pE=ye`
7240
+ `,fE=ye`
7237
7241
  ${Eo("inline-flex")}
7238
7242
  ${Kf}
7239
7243
 
@@ -7448,203 +7452,203 @@ const iE=mi.tagFor(tE),oE="Bold",rE="Italics",sE="Bulleted List",aE="Numbered Li
7448
7452
  top: calc(${Pa} / 2);
7449
7453
  right: var(--ni-private-rich-text-editor-scrollbar-width);
7450
7454
  }
7451
- `,fE="bulletList",gE="orderedList"
7452
- function mE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vE(e){if(e.__esModule)return e
7455
+ `,gE="bulletList",mE="orderedList"
7456
+ function vE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function bE(e){if(e.__esModule)return e
7453
7457
  var t=e.default
7454
7458
  if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null]
7455
7459
  return n.push.apply(n,arguments),new(Function.bind.apply(t,n))}return t.apply(this,arguments)}
7456
7460
  n.prototype=t.prototype}else n={}
7457
7461
  return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var i=Object.getOwnPropertyDescriptor(e,t)
7458
- Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})})),n}var bE={},yE={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},wE=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,xE={},kE={}
7459
- function CE(e,t,n){var i,o,r,s,a,l=""
7460
- for("string"!=typeof t&&(n=t,t=CE.defaultChars),void 0===n&&(n=!0),a=function(e){var t,n,i=kE[e]
7462
+ Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})})),n}var yE={},wE={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},xE=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,kE={},CE={}
7463
+ function SE(e,t,n){var i,o,r,s,a,l=""
7464
+ for("string"!=typeof t&&(n=t,t=SE.defaultChars),void 0===n&&(n=!0),a=function(e){var t,n,i=CE[e]
7461
7465
  if(i)return i
7462
- for(i=kE[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2))
7466
+ for(i=CE[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2))
7463
7467
  for(t=0;t<e.length;t++)i[e.charCodeAt(t)]=e[t]
7464
7468
  return i}(t),i=0,o=e.length;i<o;i++)if(r=e.charCodeAt(i),n&&37===r&&i+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(i+1,i+3)))l+=e.slice(i,i+3),i+=2
7465
7469
  else if(r<128)l+=a[r]
7466
7470
  else if(r>=55296&&r<=57343){if(r>=55296&&r<=56319&&i+1<o&&(s=e.charCodeAt(i+1))>=56320&&s<=57343){l+=encodeURIComponent(e[i]+e[i+1]),i++
7467
7471
  continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[i])
7468
- return l}CE.defaultChars=";/?:@&=+$,-_.!~*'()#",CE.componentChars="-_.!~*'()"
7469
- var SE=CE,$E={}
7470
- function ME(e,t){var n
7471
- return"string"!=typeof t&&(t=ME.defaultChars),n=function(e){var t,n,i=$E[e]
7472
+ return l}SE.defaultChars=";/?:@&=+$,-_.!~*'()#",SE.componentChars="-_.!~*'()"
7473
+ var $E=SE,ME={}
7474
+ function _E(e,t){var n
7475
+ return"string"!=typeof t&&(t=_E.defaultChars),n=function(e){var t,n,i=ME[e]
7472
7476
  if(i)return i
7473
- for(i=$E[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),i.push(n)
7477
+ for(i=ME[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),i.push(n)
7474
7478
  for(t=0;t<e.length;t++)i[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2)
7475
7479
  return i}(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,i,o,r,s,a,l,c=""
7476
7480
  for(t=0,i=e.length;t<i;t+=3)(o=parseInt(e.slice(t+1,t+3),16))<128?c+=n[o]:192==(224&o)&&t+3<i&&128==(192&(r=parseInt(e.slice(t+4,t+6),16)))?(c+=(l=o<<6&1984|63&r)<128?"��":String.fromCharCode(l),t+=3):224==(240&o)&&t+6<i&&(r=parseInt(e.slice(t+4,t+6),16),s=parseInt(e.slice(t+7,t+9),16),128==(192&r)&&128==(192&s))?(c+=(l=o<<12&61440|r<<6&4032|63&s)<2048||l>=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&o)&&t+9<i&&(r=parseInt(e.slice(t+4,t+6),16),s=parseInt(e.slice(t+7,t+9),16),a=parseInt(e.slice(t+10,t+12),16),128==(192&r)&&128==(192&s)&&128==(192&a))?((l=o<<18&1835008|r<<12&258048|s<<6&4032|63&a)<65536||l>1114111?c+="����":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):c+="�"
7477
- return c}))}ME.defaultChars=";/?:@&=+$,#",ME.componentChars=""
7478
- var _E=ME
7479
- function AE(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var EE=/^([a-z0-9.+-]+:)/i,IE=/:[0-9]*$/,OE=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,TE=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),RE=["'"].concat(TE),DE=["%","/","?",";","#"].concat(RE),FE=["/","?","#"],LE=/^[+a-z0-9A-Z_-]{0,63}$/,NE=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,PE={javascript:!0,"javascript:":!0},zE={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0}
7480
- AE.prototype.parse=function(e,t){var n,i,o,r,s,a=e
7481
- if(a=a.trim(),!t&&1===e.split("#").length){var l=OE.exec(a)
7482
- if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=EE.exec(a)
7483
- if(c&&(o=(c=c[0]).toLowerCase(),this.protocol=c,a=a.substr(c.length)),(t||c||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(s="//"===a.substr(0,2))||c&&PE[c]||(a=a.substr(2),this.slashes=!0)),!PE[c]&&(s||c&&!zE[c])){var d,h,u=-1
7484
- for(n=0;n<FE.length;n++)-1!==(r=a.indexOf(FE[n]))&&(-1===u||r<u)&&(u=r)
7485
- for(-1!==(h=-1===u?a.lastIndexOf("@"):a.lastIndexOf("@",u))&&(d=a.slice(0,h),a=a.slice(h+1),this.auth=d),u=-1,n=0;n<DE.length;n++)-1!==(r=a.indexOf(DE[n]))&&(-1===u||r<u)&&(u=r);-1===u&&(u=a.length),":"===a[u-1]&&u--
7481
+ return c}))}_E.defaultChars=";/?:@&=+$,#",_E.componentChars=""
7482
+ var AE=_E
7483
+ function EE(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var IE=/^([a-z0-9.+-]+:)/i,OE=/:[0-9]*$/,TE=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,RE=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),DE=["'"].concat(RE),FE=["%","/","?",";","#"].concat(DE),LE=["/","?","#"],NE=/^[+a-z0-9A-Z_-]{0,63}$/,PE=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,zE={javascript:!0,"javascript:":!0},VE={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0}
7484
+ EE.prototype.parse=function(e,t){var n,i,o,r,s,a=e
7485
+ if(a=a.trim(),!t&&1===e.split("#").length){var l=TE.exec(a)
7486
+ if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=IE.exec(a)
7487
+ if(c&&(o=(c=c[0]).toLowerCase(),this.protocol=c,a=a.substr(c.length)),(t||c||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(s="//"===a.substr(0,2))||c&&zE[c]||(a=a.substr(2),this.slashes=!0)),!zE[c]&&(s||c&&!VE[c])){var d,h,u=-1
7488
+ for(n=0;n<LE.length;n++)-1!==(r=a.indexOf(LE[n]))&&(-1===u||r<u)&&(u=r)
7489
+ for(-1!==(h=-1===u?a.lastIndexOf("@"):a.lastIndexOf("@",u))&&(d=a.slice(0,h),a=a.slice(h+1),this.auth=d),u=-1,n=0;n<FE.length;n++)-1!==(r=a.indexOf(FE[n]))&&(-1===u||r<u)&&(u=r);-1===u&&(u=a.length),":"===a[u-1]&&u--
7486
7490
  var p=a.slice(0,u)
7487
7491
  a=a.slice(u),this.parseHost(p),this.hostname=this.hostname||""
7488
7492
  var f="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1]
7489
7493
  if(!f){var g=this.hostname.split(/\./)
7490
7494
  for(n=0,i=g.length;n<i;n++){var m=g[n]
7491
- if(m&&!m.match(LE)){for(var v="",b=0,y=m.length;b<y;b++)m.charCodeAt(b)>127?v+="x":v+=m[b]
7492
- if(!v.match(LE)){var w=g.slice(0,n),x=g.slice(n+1),k=m.match(NE)
7495
+ if(m&&!m.match(NE)){for(var v="",b=0,y=m.length;b<y;b++)m.charCodeAt(b)>127?v+="x":v+=m[b]
7496
+ if(!v.match(NE)){var w=g.slice(0,n),x=g.slice(n+1),k=m.match(PE)
7493
7497
  k&&(w.push(k[1]),x.unshift(k[2])),x.length&&(a=x.join(".")+a),this.hostname=w.join(".")
7494
7498
  break}}}}this.hostname.length>255&&(this.hostname=""),f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var C=a.indexOf("#");-1!==C&&(this.hash=a.substr(C),a=a.slice(0,C))
7495
7499
  var S=a.indexOf("?")
7496
- return-1!==S&&(this.search=a.substr(S),a=a.slice(0,S)),a&&(this.pathname=a),zE[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},AE.prototype.parseHost=function(e){var t=IE.exec(e)
7500
+ return-1!==S&&(this.search=a.substr(S),a=a.slice(0,S)),a&&(this.pathname=a),VE[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},EE.prototype.parseHost=function(e){var t=OE.exec(e)
7497
7501
  t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}
7498
- var VE=function(e,t){if(e&&e instanceof AE)return e
7499
- var n=new AE
7502
+ var HE=function(e,t){if(e&&e instanceof EE)return e
7503
+ var n=new EE
7500
7504
  return n.parse(e,t),n}
7501
- xE.encode=SE,xE.decode=_E,xE.format=function(e){var t=""
7502
- return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""},xE.parse=VE
7503
- var HE,BE,qE,ZE,jE,UE,WE,GE,KE,JE={}
7504
- function XE(){return BE?HE:(BE=1,HE=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)}function YE(){return ZE?qE:(ZE=1,qE=/[\0-\x1F\x7F-\x9F]/)}function QE(){return GE?WE:(GE=1,WE=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/)}function eI(){return KE||(KE=1,JE.Any=XE(),JE.Cc=YE(),JE.Cf=UE?jE:(UE=1,jE=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),JE.P=wE,JE.Z=QE()),JE}!function(e){var t=Object.prototype.hasOwnProperty
7505
+ kE.encode=$E,kE.decode=AE,kE.format=function(e){var t=""
7506
+ return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""},kE.parse=HE
7507
+ var BE,qE,ZE,jE,UE,WE,GE,KE,JE,XE={}
7508
+ function YE(){return qE?BE:(qE=1,BE=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)}function QE(){return jE?ZE:(jE=1,ZE=/[\0-\x1F\x7F-\x9F]/)}function eI(){return KE?GE:(KE=1,GE=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/)}function tI(){return JE||(JE=1,XE.Any=YE(),XE.Cc=QE(),XE.Cf=WE?UE:(WE=1,UE=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),XE.P=xE,XE.Z=eI()),XE}!function(e){var t=Object.prototype.hasOwnProperty
7505
7509
  function n(e,n){return t.call(e,n)}function i(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function o(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e)
7506
- return String.fromCharCode(t,n)}return String.fromCharCode(e)}var r=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,s=new RegExp(r.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),a=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,l=yE
7510
+ return String.fromCharCode(t,n)}return String.fromCharCode(e)}var r=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,s=new RegExp(r.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),a=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,l=wE
7507
7511
  var c=/[&<>"]/,d=/[&<>"]/g,h={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"}
7508
7512
  function u(e){return h[e]}var p=/[.?*+^$[\]\\(){}|-]/g
7509
- var f=wE
7510
- e.lib={},e.lib.mdurl=xE,e.lib.ucmicro=eI(),e.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object")
7513
+ var f=xE
7514
+ e.lib={},e.lib.mdurl=kE,e.lib.ucmicro=tI(),e.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object")
7511
7515
  Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},e.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},e.has=n,e.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(r,"$1")},e.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(s,(function(e,t,r){return t||function(e,t){var r=0
7512
7516
  return n(l,t)?l[t]:35===t.charCodeAt(0)&&a.test(t)&&i(r="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?o(r):e}(e,r)}))},e.isValidEntityCode=i,e.fromCodePoint=o,e.escapeHtml=function(e){return c.test(e)?e.replace(d,u):e},e.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},e.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},e.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0
7513
7517
  switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},e.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0
7514
- default:return!1}},e.isPunctChar=function(e){return f.test(e)},e.escapeRE=function(e){return e.replace(p,"\\$&")},e.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}}(bE)
7515
- var tI={},nI=bE.unescapeAll,iI=bE.unescapeAll
7516
- tI.parseLinkLabel=function(e,t,n){var i,o,r,s,a=-1,l=e.posMax,c=e.pos
7518
+ default:return!1}},e.isPunctChar=function(e){return f.test(e)},e.escapeRE=function(e){return e.replace(p,"\\$&")},e.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}}(yE)
7519
+ var nI={},iI=yE.unescapeAll,oI=yE.unescapeAll
7520
+ nI.parseLinkLabel=function(e,t,n){var i,o,r,s,a=-1,l=e.posMax,c=e.pos
7517
7521
  for(e.pos=t+1,i=1;e.pos<l;){if(93===(r=e.src.charCodeAt(e.pos))&&0===--i){o=!0
7518
7522
  break}if(s=e.pos,e.md.inline.skipToken(e),91===r)if(s===e.pos-1)i++
7519
- else if(n)return e.pos=c,-1}return o&&(a=e.pos),e.pos=c,a},tI.parseLinkDestination=function(e,t,n){var i,o,r=t,s={ok:!1,pos:0,lines:0,str:""}
7523
+ else if(n)return e.pos=c,-1}return o&&(a=e.pos),e.pos=c,a},nI.parseLinkDestination=function(e,t,n){var i,o,r=t,s={ok:!1,pos:0,lines:0,str:""}
7520
7524
  if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(i=e.charCodeAt(t)))return s
7521
7525
  if(60===i)return s
7522
- if(62===i)return s.pos=t+1,s.str=nI(e.slice(r+1,t)),s.ok=!0,s
7526
+ if(62===i)return s.pos=t+1,s.str=iI(e.slice(r+1,t)),s.ok=!0,s
7523
7527
  92===i&&t+1<n?t+=2:t++}return s}for(o=0;t<n&&32!==(i=e.charCodeAt(t))&&!(i<32||127===i);)if(92===i&&t+1<n){if(32===e.charCodeAt(t+1))break
7524
7528
  t+=2}else{if(40===i&&++o>32)return s
7525
7529
  if(41===i){if(0===o)break
7526
- o--}t++}return r===t||0!==o||(s.str=nI(e.slice(r,t)),s.lines=0,s.pos=t,s.ok=!0),s},tI.parseLinkTitle=function(e,t,n){var i,o,r=0,s=t,a={ok:!1,pos:0,lines:0,str:""}
7530
+ o--}t++}return r===t||0!==o||(s.str=iI(e.slice(r,t)),s.lines=0,s.pos=t,s.ok=!0),s},nI.parseLinkTitle=function(e,t,n){var i,o,r=0,s=t,a={ok:!1,pos:0,lines:0,str:""}
7527
7531
  if(t>=n)return a
7528
7532
  if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return a
7529
- for(t++,40===o&&(o=41);t<n;){if((i=e.charCodeAt(t))===o)return a.pos=t+1,a.lines=r,a.str=iI(e.slice(s+1,t)),a.ok=!0,a
7533
+ for(t++,40===o&&(o=41);t<n;){if((i=e.charCodeAt(t))===o)return a.pos=t+1,a.lines=r,a.str=oI(e.slice(s+1,t)),a.ok=!0,a
7530
7534
  if(40===i&&41===o)return a
7531
7535
  10===i?r++:92===i&&t+1<n&&(t++,10===e.charCodeAt(t)&&r++),t++}return a}
7532
- var oI=bE.assign,rI=bE.unescapeAll,sI=bE.escapeHtml,aI={}
7533
- function lI(){this.rules=oI({},aI)}aI.code_inline=function(e,t,n,i,o){var r=e[t]
7534
- return"<code"+o.renderAttrs(r)+">"+sI(e[t].content)+"</code>"},aI.code_block=function(e,t,n,i,o){var r=e[t]
7535
- return"<pre"+o.renderAttrs(r)+"><code>"+sI(e[t].content)+"</code></pre>\n"},aI.fence=function(e,t,n,i,o){var r,s,a,l,c,d=e[t],h=d.info?rI(d.info).trim():"",u="",p=""
7536
- return h&&(u=(a=h.split(/(\s+)/g))[0],p=a.slice(2).join("")),0===(r=n.highlight&&n.highlight(d.content,u,p)||sI(d.content)).indexOf("<pre")?r+"\n":h?(s=d.attrIndex("class"),l=d.attrs?d.attrs.slice():[],s<0?l.push(["class",n.langPrefix+u]):(l[s]=l[s].slice(),l[s][1]+=" "+n.langPrefix+u),c={attrs:l},"<pre><code"+o.renderAttrs(c)+">"+r+"</code></pre>\n"):"<pre><code"+o.renderAttrs(d)+">"+r+"</code></pre>\n"},aI.image=function(e,t,n,i,o){var r=e[t]
7537
- return r.attrs[r.attrIndex("alt")][1]=o.renderInlineAsText(r.children,n,i),o.renderToken(e,t,n)},aI.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},aI.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},aI.text=function(e,t){return sI(e[t].content)},aI.html_block=function(e,t){return e[t].content},aI.html_inline=function(e,t){return e[t].content},lI.prototype.renderAttrs=function(e){var t,n,i
7536
+ var rI=yE.assign,sI=yE.unescapeAll,aI=yE.escapeHtml,lI={}
7537
+ function cI(){this.rules=rI({},lI)}lI.code_inline=function(e,t,n,i,o){var r=e[t]
7538
+ return"<code"+o.renderAttrs(r)+">"+aI(e[t].content)+"</code>"},lI.code_block=function(e,t,n,i,o){var r=e[t]
7539
+ return"<pre"+o.renderAttrs(r)+"><code>"+aI(e[t].content)+"</code></pre>\n"},lI.fence=function(e,t,n,i,o){var r,s,a,l,c,d=e[t],h=d.info?sI(d.info).trim():"",u="",p=""
7540
+ return h&&(u=(a=h.split(/(\s+)/g))[0],p=a.slice(2).join("")),0===(r=n.highlight&&n.highlight(d.content,u,p)||aI(d.content)).indexOf("<pre")?r+"\n":h?(s=d.attrIndex("class"),l=d.attrs?d.attrs.slice():[],s<0?l.push(["class",n.langPrefix+u]):(l[s]=l[s].slice(),l[s][1]+=" "+n.langPrefix+u),c={attrs:l},"<pre><code"+o.renderAttrs(c)+">"+r+"</code></pre>\n"):"<pre><code"+o.renderAttrs(d)+">"+r+"</code></pre>\n"},lI.image=function(e,t,n,i,o){var r=e[t]
7541
+ return r.attrs[r.attrIndex("alt")][1]=o.renderInlineAsText(r.children,n,i),o.renderToken(e,t,n)},lI.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},lI.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},lI.text=function(e,t){return aI(e[t].content)},lI.html_block=function(e,t){return e[t].content},lI.html_inline=function(e,t){return e[t].content},cI.prototype.renderAttrs=function(e){var t,n,i
7538
7542
  if(!e.attrs)return""
7539
- for(i="",t=0,n=e.attrs.length;t<n;t++)i+=" "+sI(e.attrs[t][0])+'="'+sI(e.attrs[t][1])+'"'
7540
- return i},lI.prototype.renderToken=function(e,t,n){var i,o="",r=!1,s=e[t]
7541
- return s.hidden?"":(s.block&&-1!==s.nesting&&t&&e[t-1].hidden&&(o+="\n"),o+=(-1===s.nesting?"</":"<")+s.tag,o+=this.renderAttrs(s),0===s.nesting&&n.xhtmlOut&&(o+=" /"),s.block&&(r=!0,1===s.nesting&&t+1<e.length&&("inline"===(i=e[t+1]).type||i.hidden||-1===i.nesting&&i.tag===s.tag)&&(r=!1)),o+=r?">\n":">")},lI.prototype.renderInline=function(e,t,n){for(var i,o="",r=this.rules,s=0,a=e.length;s<a;s++)void 0!==r[i=e[s].type]?o+=r[i](e,s,t,n,this):o+=this.renderToken(e,s,t)
7542
- return o},lI.prototype.renderInlineAsText=function(e,t,n){for(var i="",o=0,r=e.length;o<r;o++)"text"===e[o].type?i+=e[o].content:"image"===e[o].type?i+=this.renderInlineAsText(e[o].children,t,n):"softbreak"===e[o].type&&(i+="\n")
7543
- return i},lI.prototype.render=function(e,t,n){var i,o,r,s="",a=this.rules
7543
+ for(i="",t=0,n=e.attrs.length;t<n;t++)i+=" "+aI(e.attrs[t][0])+'="'+aI(e.attrs[t][1])+'"'
7544
+ return i},cI.prototype.renderToken=function(e,t,n){var i,o="",r=!1,s=e[t]
7545
+ return s.hidden?"":(s.block&&-1!==s.nesting&&t&&e[t-1].hidden&&(o+="\n"),o+=(-1===s.nesting?"</":"<")+s.tag,o+=this.renderAttrs(s),0===s.nesting&&n.xhtmlOut&&(o+=" /"),s.block&&(r=!0,1===s.nesting&&t+1<e.length&&("inline"===(i=e[t+1]).type||i.hidden||-1===i.nesting&&i.tag===s.tag)&&(r=!1)),o+=r?">\n":">")},cI.prototype.renderInline=function(e,t,n){for(var i,o="",r=this.rules,s=0,a=e.length;s<a;s++)void 0!==r[i=e[s].type]?o+=r[i](e,s,t,n,this):o+=this.renderToken(e,s,t)
7546
+ return o},cI.prototype.renderInlineAsText=function(e,t,n){for(var i="",o=0,r=e.length;o<r;o++)"text"===e[o].type?i+=e[o].content:"image"===e[o].type?i+=this.renderInlineAsText(e[o].children,t,n):"softbreak"===e[o].type&&(i+="\n")
7547
+ return i},cI.prototype.render=function(e,t,n){var i,o,r,s="",a=this.rules
7544
7548
  for(i=0,o=e.length;i<o;i++)"inline"===(r=e[i].type)?s+=this.renderInline(e[i].children,t,n):void 0!==a[r]?s+=a[e[i].type](e,i,t,n,this):s+=this.renderToken(e,i,t,n)
7545
7549
  return s}
7546
- var cI=lI
7547
- function dI(){this.__rules__=[],this.__cache__=null}dI.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t
7548
- return-1},dI.prototype.__compile__=function(){var e=this,t=[""]
7549
- e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},dI.prototype.at=function(e,t,n){var i=this.__find__(e),o=n||{}
7550
+ var dI=cI
7551
+ function hI(){this.__rules__=[],this.__cache__=null}hI.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t
7552
+ return-1},hI.prototype.__compile__=function(){var e=this,t=[""]
7553
+ e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},hI.prototype.at=function(e,t,n){var i=this.__find__(e),o=n||{}
7550
7554
  if(-1===i)throw new Error("Parser rule not found: "+e)
7551
- this.__rules__[i].fn=t,this.__rules__[i].alt=o.alt||[],this.__cache__=null},dI.prototype.before=function(e,t,n,i){var o=this.__find__(e),r=i||{}
7555
+ this.__rules__[i].fn=t,this.__rules__[i].alt=o.alt||[],this.__cache__=null},hI.prototype.before=function(e,t,n,i){var o=this.__find__(e),r=i||{}
7552
7556
  if(-1===o)throw new Error("Parser rule not found: "+e)
7553
- this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null},dI.prototype.after=function(e,t,n,i){var o=this.__find__(e),r=i||{}
7557
+ this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null},hI.prototype.after=function(e,t,n,i){var o=this.__find__(e),r=i||{}
7554
7558
  if(-1===o)throw new Error("Parser rule not found: "+e)
7555
- this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null},dI.prototype.push=function(e,t,n){var i=n||{}
7556
- this.__rules__.push({name:e,enabled:!0,fn:t,alt:i.alt||[]}),this.__cache__=null},dI.prototype.enable=function(e,t){Array.isArray(e)||(e=[e])
7559
+ this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:r.alt||[]}),this.__cache__=null},hI.prototype.push=function(e,t,n){var i=n||{}
7560
+ this.__rules__.push({name:e,enabled:!0,fn:t,alt:i.alt||[]}),this.__cache__=null},hI.prototype.enable=function(e,t){Array.isArray(e)||(e=[e])
7557
7561
  var n=[]
7558
7562
  return e.forEach((function(e){var i=this.__find__(e)
7559
7563
  if(i<0){if(t)return
7560
- throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[i].enabled=!0,n.push(e)}),this),this.__cache__=null,n},dI.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},dI.prototype.disable=function(e,t){Array.isArray(e)||(e=[e])
7564
+ throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[i].enabled=!0,n.push(e)}),this),this.__cache__=null,n},hI.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},hI.prototype.disable=function(e,t){Array.isArray(e)||(e=[e])
7561
7565
  var n=[]
7562
7566
  return e.forEach((function(e){var i=this.__find__(e)
7563
7567
  if(i<0){if(t)return
7564
- throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[i].enabled=!1,n.push(e)}),this),this.__cache__=null,n},dI.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]}
7565
- var hI=dI,uI=/\r\n?|\n/g,pI=/\0/g,fI=bE.arrayReplaceAt
7566
- function gI(e){return/^<\/a\s*>/i.test(e)}var mI=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,vI=/\((c|tm|r)\)/i,bI=/\((c|tm|r)\)/gi,yI={c:"©",r:"®",tm:"™"}
7567
- function wI(e,t){return yI[t.toLowerCase()]}function xI(e){var t,n,i=0
7568
- for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||(n.content=n.content.replace(bI,wI)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function kI(e){var t,n,i=0
7569
- for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||mI.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}var CI=bE.isWhiteSpace,SI=bE.isPunctChar,$I=bE.isMdAsciiPunct,MI=/['"]/,_I=/['"]/g
7570
- function AI(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function EI(e,t){var n,i,o,r,s,a,l,c,d,h,u,p,f,g,m,v,b,y,w,x,k
7568
+ throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[i].enabled=!1,n.push(e)}),this),this.__cache__=null,n},hI.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]}
7569
+ var uI=hI,pI=/\r\n?|\n/g,fI=/\0/g,gI=yE.arrayReplaceAt
7570
+ function mI(e){return/^<\/a\s*>/i.test(e)}var vI=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,bI=/\((c|tm|r)\)/i,yI=/\((c|tm|r)\)/gi,wI={c:"©",r:"®",tm:"™"}
7571
+ function xI(e,t){return wI[t.toLowerCase()]}function kI(e){var t,n,i=0
7572
+ for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||(n.content=n.content.replace(yI,xI)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function CI(e){var t,n,i=0
7573
+ for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||vI.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}var SI=yE.isWhiteSpace,$I=yE.isPunctChar,MI=yE.isMdAsciiPunct,_I=/['"]/,AI=/['"]/g
7574
+ function EI(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function II(e,t){var n,i,o,r,s,a,l,c,d,h,u,p,f,g,m,v,b,y,w,x,k
7571
7575
  for(w=[],n=0;n<e.length;n++){for(i=e[n],l=e[n].level,b=w.length-1;b>=0&&!(w[b].level<=l);b--);if(w.length=b+1,"text"===i.type){s=0,a=(o=i.content).length
7572
- e:for(;s<a&&(_I.lastIndex=s,r=_I.exec(o));){if(m=v=!0,s=r.index+1,y="'"===r[0],d=32,r.index-1>=0)d=o.charCodeAt(r.index-1)
7576
+ e:for(;s<a&&(AI.lastIndex=s,r=AI.exec(o));){if(m=v=!0,s=r.index+1,y="'"===r[0],d=32,r.index-1>=0)d=o.charCodeAt(r.index-1)
7573
7577
  else for(b=n-1;b>=0&&("softbreak"!==e[b].type&&"hardbreak"!==e[b].type);b--)if(e[b].content){d=e[b].content.charCodeAt(e[b].content.length-1)
7574
7578
  break}if(h=32,s<a)h=o.charCodeAt(s)
7575
7579
  else for(b=n+1;b<e.length&&("softbreak"!==e[b].type&&"hardbreak"!==e[b].type);b++)if(e[b].content){h=e[b].content.charCodeAt(0)
7576
- break}if(u=$I(d)||SI(String.fromCharCode(d)),p=$I(h)||SI(String.fromCharCode(h)),f=CI(d),(g=CI(h))?m=!1:p&&(f||u||(m=!1)),f?v=!1:u&&(g||p||(v=!1)),34===h&&'"'===r[0]&&d>=48&&d<=57&&(v=m=!1),m&&v&&(m=u,v=p),m||v){if(v)for(b=w.length-1;b>=0&&(c=w[b],!(w[b].level<l));b--)if(c.single===y&&w[b].level===l){c=w[b],y?(x=t.md.options.quotes[2],k=t.md.options.quotes[3]):(x=t.md.options.quotes[0],k=t.md.options.quotes[1]),i.content=AI(i.content,r.index,k),e[c.token].content=AI(e[c.token].content,c.pos,x),s+=k.length-1,c.token===n&&(s+=x.length-1),a=(o=i.content).length,w.length=b
7577
- continue e}m?w.push({token:n,pos:r.index,single:y,level:l}):v&&y&&(i.content=AI(i.content,r.index,"’"))}else y&&(i.content=AI(i.content,r.index,"’"))}}}}function II(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}II.prototype.attrIndex=function(e){var t,n,i
7580
+ break}if(u=MI(d)||$I(String.fromCharCode(d)),p=MI(h)||$I(String.fromCharCode(h)),f=SI(d),(g=SI(h))?m=!1:p&&(f||u||(m=!1)),f?v=!1:u&&(g||p||(v=!1)),34===h&&'"'===r[0]&&d>=48&&d<=57&&(v=m=!1),m&&v&&(m=u,v=p),m||v){if(v)for(b=w.length-1;b>=0&&(c=w[b],!(w[b].level<l));b--)if(c.single===y&&w[b].level===l){c=w[b],y?(x=t.md.options.quotes[2],k=t.md.options.quotes[3]):(x=t.md.options.quotes[0],k=t.md.options.quotes[1]),i.content=EI(i.content,r.index,k),e[c.token].content=EI(e[c.token].content,c.pos,x),s+=k.length-1,c.token===n&&(s+=x.length-1),a=(o=i.content).length,w.length=b
7581
+ continue e}m?w.push({token:n,pos:r.index,single:y,level:l}):v&&y&&(i.content=EI(i.content,r.index,"’"))}else y&&(i.content=EI(i.content,r.index,"’"))}}}}function OI(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}OI.prototype.attrIndex=function(e){var t,n,i
7578
7582
  if(!this.attrs)return-1
7579
7583
  for(n=0,i=(t=this.attrs).length;n<i;n++)if(t[n][0]===e)return n
7580
- return-1},II.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},II.prototype.attrSet=function(e,t){var n=this.attrIndex(e),i=[e,t]
7581
- n<0?this.attrPush(i):this.attrs[n]=i},II.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null
7582
- return t>=0&&(n=this.attrs[t][1]),n},II.prototype.attrJoin=function(e,t){var n=this.attrIndex(e)
7584
+ return-1},OI.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},OI.prototype.attrSet=function(e,t){var n=this.attrIndex(e),i=[e,t]
7585
+ n<0?this.attrPush(i):this.attrs[n]=i},OI.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null
7586
+ return t>=0&&(n=this.attrs[t][1]),n},OI.prototype.attrJoin=function(e,t){var n=this.attrIndex(e)
7583
7587
  n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t}
7584
- var OI=II,TI=OI
7585
- function RI(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}RI.prototype.Token=TI
7586
- var DI=RI,FI=hI,LI=[["normalize",function(e){var t
7587
- t=(t=e.src.replace(uI,"\n")).replace(pI,"�"),e.src=t}],["block",function(e){var t
7588
+ var TI=OI,RI=TI
7589
+ function DI(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}DI.prototype.Token=RI
7590
+ var FI=DI,LI=uI,NI=[["normalize",function(e){var t
7591
+ t=(t=e.src.replace(pI,"\n")).replace(fI,"�"),e.src=t}],["block",function(e){var t
7588
7592
  e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){var t,n,i,o=e.tokens
7589
7593
  for(n=0,i=o.length;n<i;n++)"inline"===(t=o[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}],["linkify",function(e){var t,n,i,o,r,s,a,l,c,d,h,u,p,f,g,m,v,b,y=e.tokens
7590
- if(e.md.options.linkify)for(n=0,i=y.length;n<i;n++)if("inline"===y[n].type&&e.md.linkify.pretest(y[n].content))for(p=0,t=(o=y[n].children).length-1;t>=0;t--)if("link_close"!==(s=o[t]).type){if("html_inline"===s.type&&(b=s.content,/^<a[>\s]/i.test(b)&&p>0&&p--,gI(s.content)&&p++),!(p>0)&&"text"===s.type&&e.md.linkify.test(s.content)){for(c=s.content,v=e.md.linkify.match(c),a=[],u=s.level,h=0,v.length>0&&0===v[0].index&&t>0&&"text_special"===o[t-1].type&&(v=v.slice(1)),l=0;l<v.length;l++)f=v[l].url,g=e.md.normalizeLink(f),e.md.validateLink(g)&&(m=v[l].text,m=v[l].schema?"mailto:"!==v[l].schema||/^mailto:/i.test(m)?e.md.normalizeLinkText(m):e.md.normalizeLinkText("mailto:"+m).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+m).replace(/^http:\/\//,""),(d=v[l].index)>h&&((r=new e.Token("text","",0)).content=c.slice(h,d),r.level=u,a.push(r)),(r=new e.Token("link_open","a",1)).attrs=[["href",g]],r.level=u++,r.markup="linkify",r.info="auto",a.push(r),(r=new e.Token("text","",0)).content=m,r.level=u,a.push(r),(r=new e.Token("link_close","a",-1)).level=--u,r.markup="linkify",r.info="auto",a.push(r),h=v[l].lastIndex)
7591
- h<c.length&&((r=new e.Token("text","",0)).content=c.slice(h),r.level=u,a.push(r)),y[n].children=o=fI(o,t,a)}}else for(t--;o[t].level!==s.level&&"link_open"!==o[t].type;)t--}],["replacements",function(e){var t
7592
- if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(vI.test(e.tokens[t].content)&&xI(e.tokens[t].children),mI.test(e.tokens[t].content)&&kI(e.tokens[t].children))}],["smartquotes",function(e){var t
7593
- if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&MI.test(e.tokens[t].content)&&EI(e.tokens[t].children,e)}],["text_join",function(e){var t,n,i,o,r,s,a=e.tokens
7594
+ if(e.md.options.linkify)for(n=0,i=y.length;n<i;n++)if("inline"===y[n].type&&e.md.linkify.pretest(y[n].content))for(p=0,t=(o=y[n].children).length-1;t>=0;t--)if("link_close"!==(s=o[t]).type){if("html_inline"===s.type&&(b=s.content,/^<a[>\s]/i.test(b)&&p>0&&p--,mI(s.content)&&p++),!(p>0)&&"text"===s.type&&e.md.linkify.test(s.content)){for(c=s.content,v=e.md.linkify.match(c),a=[],u=s.level,h=0,v.length>0&&0===v[0].index&&t>0&&"text_special"===o[t-1].type&&(v=v.slice(1)),l=0;l<v.length;l++)f=v[l].url,g=e.md.normalizeLink(f),e.md.validateLink(g)&&(m=v[l].text,m=v[l].schema?"mailto:"!==v[l].schema||/^mailto:/i.test(m)?e.md.normalizeLinkText(m):e.md.normalizeLinkText("mailto:"+m).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+m).replace(/^http:\/\//,""),(d=v[l].index)>h&&((r=new e.Token("text","",0)).content=c.slice(h,d),r.level=u,a.push(r)),(r=new e.Token("link_open","a",1)).attrs=[["href",g]],r.level=u++,r.markup="linkify",r.info="auto",a.push(r),(r=new e.Token("text","",0)).content=m,r.level=u,a.push(r),(r=new e.Token("link_close","a",-1)).level=--u,r.markup="linkify",r.info="auto",a.push(r),h=v[l].lastIndex)
7595
+ h<c.length&&((r=new e.Token("text","",0)).content=c.slice(h),r.level=u,a.push(r)),y[n].children=o=gI(o,t,a)}}else for(t--;o[t].level!==s.level&&"link_open"!==o[t].type;)t--}],["replacements",function(e){var t
7596
+ if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(bI.test(e.tokens[t].content)&&kI(e.tokens[t].children),vI.test(e.tokens[t].content)&&CI(e.tokens[t].children))}],["smartquotes",function(e){var t
7597
+ if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&_I.test(e.tokens[t].content)&&II(e.tokens[t].children,e)}],["text_join",function(e){var t,n,i,o,r,s,a=e.tokens
7594
7598
  for(t=0,n=a.length;t<n;t++)if("inline"===a[t].type){for(r=(i=a[t].children).length,o=0;o<r;o++)"text_special"===i[o].type&&(i[o].type="text")
7595
7599
  for(o=s=0;o<r;o++)"text"===i[o].type&&o+1<r&&"text"===i[o+1].type?i[o+1].content=i[o].content+i[o+1].content:(o!==s&&(i[s]=i[o]),s++)
7596
7600
  o!==s&&(i.length=s)}}]]
7597
- function NI(){this.ruler=new FI
7598
- for(var e=0;e<LI.length;e++)this.ruler.push(LI[e][0],LI[e][1])}NI.prototype.process=function(e){var t,n,i
7599
- for(t=0,n=(i=this.ruler.getRules("")).length;t<n;t++)i[t](e)},NI.prototype.State=DI
7600
- var PI=NI,zI=bE.isSpace
7601
- function VI(e,t){var n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t]
7602
- return e.src.slice(n,i)}function HI(e){var t,n=[],i=0,o=e.length,r=!1,s=0,a=""
7601
+ function PI(){this.ruler=new LI
7602
+ for(var e=0;e<NI.length;e++)this.ruler.push(NI[e][0],NI[e][1])}PI.prototype.process=function(e){var t,n,i
7603
+ for(t=0,n=(i=this.ruler.getRules("")).length;t<n;t++)i[t](e)},PI.prototype.State=FI
7604
+ var zI=PI,VI=yE.isSpace
7605
+ function HI(e,t){var n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t]
7606
+ return e.src.slice(n,i)}function BI(e){var t,n=[],i=0,o=e.length,r=!1,s=0,a=""
7603
7607
  for(t=e.charCodeAt(i);i<o;)124===t&&(r?(a+=e.substring(s,i-1),s=i):(n.push(a+e.substring(s,i)),a="",s=i+1)),r=92===t,i++,t=e.charCodeAt(i)
7604
- return n.push(a+e.substring(s)),n}var BI=bE.isSpace,qI=bE.isSpace,ZI=bE.isSpace
7605
- function jI(e,t){var n,i,o,r
7606
- return i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],42!==(n=e.src.charCodeAt(i++))&&45!==n&&43!==n||i<o&&(r=e.src.charCodeAt(i),!ZI(r))?-1:i}function UI(e,t){var n,i=e.bMarks[t]+e.tShift[t],o=i,r=e.eMarks[t]
7608
+ return n.push(a+e.substring(s)),n}var qI=yE.isSpace,ZI=yE.isSpace,jI=yE.isSpace
7609
+ function UI(e,t){var n,i,o,r
7610
+ return i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],42!==(n=e.src.charCodeAt(i++))&&45!==n&&43!==n||i<o&&(r=e.src.charCodeAt(i),!jI(r))?-1:i}function WI(e,t){var n,i=e.bMarks[t]+e.tShift[t],o=i,r=e.eMarks[t]
7607
7611
  if(o+1>=r)return-1
7608
7612
  if((n=e.src.charCodeAt(o++))<48||n>57)return-1
7609
7613
  for(;;){if(o>=r)return-1
7610
7614
  if(!((n=e.src.charCodeAt(o++))>=48&&n<=57)){if(41===n||46===n)break
7611
- return-1}if(o-i>=10)return-1}return o<r&&(n=e.src.charCodeAt(o),!ZI(n))?-1:o}var WI=bE.normalizeReference,GI=bE.isSpace,KI={},JI="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",XI="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",YI=new RegExp("^(?:"+JI+"|"+XI+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),QI=new RegExp("^(?:"+JI+"|"+XI+")")
7612
- KI.HTML_TAG_RE=YI,KI.HTML_OPEN_CLOSE_TAG_RE=QI
7613
- var eO=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],tO=KI.HTML_OPEN_CLOSE_TAG_RE,nO=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+eO.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(tO.source+"\\s*$"),/^$/,!1]],iO=bE.isSpace,oO=OI,rO=bE.isSpace
7614
- function sO(e,t,n,i){var o,r,s,a,l,c,d,h
7615
- for(this.src=e,this.md=t,this.env=n,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",h=!1,s=a=c=d=0,l=(r=this.src).length;a<l;a++){if(o=r.charCodeAt(a),!h){if(rO(o)){c++,9===o?d+=4-d%4:d++
7616
- continue}h=!0}10!==o&&a!==l-1||(10!==o&&a++,this.bMarks.push(s),this.eMarks.push(a),this.tShift.push(c),this.sCount.push(d),this.bsCount.push(0),h=!1,c=0,d=0,s=a+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}sO.prototype.push=function(e,t,n){var i=new oO(e,t,n)
7617
- return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},sO.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},sO.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},sO.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),rO(t));e++);return e},sO.prototype.skipSpacesBack=function(e,t){if(e<=t)return e
7618
- for(;e>t;)if(!rO(this.src.charCodeAt(--e)))return e+1
7619
- return e},sO.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},sO.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e
7615
+ return-1}if(o-i>=10)return-1}return o<r&&(n=e.src.charCodeAt(o),!jI(n))?-1:o}var GI=yE.normalizeReference,KI=yE.isSpace,JI={},XI="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",YI="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",QI=new RegExp("^(?:"+XI+"|"+YI+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),eO=new RegExp("^(?:"+XI+"|"+YI+")")
7616
+ JI.HTML_TAG_RE=QI,JI.HTML_OPEN_CLOSE_TAG_RE=eO
7617
+ var tO=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],nO=JI.HTML_OPEN_CLOSE_TAG_RE,iO=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+tO.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(nO.source+"\\s*$"),/^$/,!1]],oO=yE.isSpace,rO=TI,sO=yE.isSpace
7618
+ function aO(e,t,n,i){var o,r,s,a,l,c,d,h
7619
+ for(this.src=e,this.md=t,this.env=n,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",h=!1,s=a=c=d=0,l=(r=this.src).length;a<l;a++){if(o=r.charCodeAt(a),!h){if(sO(o)){c++,9===o?d+=4-d%4:d++
7620
+ continue}h=!0}10!==o&&a!==l-1||(10!==o&&a++,this.bMarks.push(s),this.eMarks.push(a),this.tShift.push(c),this.sCount.push(d),this.bsCount.push(0),h=!1,c=0,d=0,s=a+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}aO.prototype.push=function(e,t,n){var i=new rO(e,t,n)
7621
+ return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},aO.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},aO.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},aO.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),sO(t));e++);return e},aO.prototype.skipSpacesBack=function(e,t){if(e<=t)return e
7622
+ for(;e>t;)if(!sO(this.src.charCodeAt(--e)))return e+1
7623
+ return e},aO.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},aO.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e
7620
7624
  for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1
7621
- return e},sO.prototype.getLines=function(e,t,n,i){var o,r,s,a,l,c,d,h=e
7625
+ return e},aO.prototype.getLines=function(e,t,n,i){var o,r,s,a,l,c,d,h=e
7622
7626
  if(e>=t)return""
7623
- for(c=new Array(t-e),o=0;h<t;h++,o++){for(r=0,d=a=this.bMarks[h],l=h+1<t||i?this.eMarks[h]+1:this.eMarks[h];a<l&&r<n;){if(s=this.src.charCodeAt(a),rO(s))9===s?r+=4-(r+this.bsCount[h])%4:r++
7627
+ for(c=new Array(t-e),o=0;h<t;h++,o++){for(r=0,d=a=this.bMarks[h],l=h+1<t||i?this.eMarks[h]+1:this.eMarks[h];a<l&&r<n;){if(s=this.src.charCodeAt(a),sO(s))9===s?r+=4-(r+this.bsCount[h])%4:r++
7624
7628
  else{if(!(a-d<this.tShift[h]))break
7625
- r++}a++}c[o]=r>n?new Array(r-n+1).join(" ")+this.src.slice(a,l):this.src.slice(a,l)}return c.join("")},sO.prototype.Token=oO
7626
- var aO=sO,lO=hI,cO=[["table",function(e,t,n,i){var o,r,s,a,l,c,d,h,u,p,f,g,m,v,b,y,w,x
7629
+ r++}a++}c[o]=r>n?new Array(r-n+1).join(" ")+this.src.slice(a,l):this.src.slice(a,l)}return c.join("")},aO.prototype.Token=rO
7630
+ var lO=aO,cO=uI,dO=[["table",function(e,t,n,i){var o,r,s,a,l,c,d,h,u,p,f,g,m,v,b,y,w,x
7627
7631
  if(t+2>n)return!1
7628
7632
  if(c=t+1,e.sCount[c]<e.blkIndent)return!1
7629
7633
  if(e.sCount[c]-e.blkIndent>=4)return!1
7630
7634
  if((s=e.bMarks[c]+e.tShift[c])>=e.eMarks[c])return!1
7631
7635
  if(124!==(w=e.src.charCodeAt(s++))&&45!==w&&58!==w)return!1
7632
7636
  if(s>=e.eMarks[c])return!1
7633
- if(124!==(x=e.src.charCodeAt(s++))&&45!==x&&58!==x&&!zI(x))return!1
7634
- if(45===w&&zI(x))return!1
7635
- for(;s<e.eMarks[c];){if(124!==(o=e.src.charCodeAt(s))&&45!==o&&58!==o&&!zI(o))return!1
7636
- s++}for(d=(r=VI(e,t+1)).split("|"),p=[],a=0;a<d.length;a++){if(!(f=d[a].trim())){if(0===a||a===d.length-1)continue
7637
+ if(124!==(x=e.src.charCodeAt(s++))&&45!==x&&58!==x&&!VI(x))return!1
7638
+ if(45===w&&VI(x))return!1
7639
+ for(;s<e.eMarks[c];){if(124!==(o=e.src.charCodeAt(s))&&45!==o&&58!==o&&!VI(o))return!1
7640
+ s++}for(d=(r=HI(e,t+1)).split("|"),p=[],a=0;a<d.length;a++){if(!(f=d[a].trim())){if(0===a||a===d.length-1)continue
7637
7641
  return!1}if(!/^:?-+:?$/.test(f))return!1
7638
- 58===f.charCodeAt(f.length-1)?p.push(58===f.charCodeAt(0)?"center":"right"):58===f.charCodeAt(0)?p.push("left"):p.push("")}if(-1===(r=VI(e,t).trim()).indexOf("|"))return!1
7642
+ 58===f.charCodeAt(f.length-1)?p.push(58===f.charCodeAt(0)?"center":"right"):58===f.charCodeAt(0)?p.push("left"):p.push("")}if(-1===(r=HI(e,t).trim()).indexOf("|"))return!1
7639
7643
  if(e.sCount[t]-e.blkIndent>=4)return!1
7640
- if((d=HI(r)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),0===(h=d.length)||h!==p.length)return!1
7644
+ if((d=BI(r)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),0===(h=d.length)||h!==p.length)return!1
7641
7645
  if(i)return!0
7642
7646
  for(v=e.parentType,e.parentType="table",y=e.md.block.ruler.getRules("blockquote"),(u=e.push("table_open","table",1)).map=g=[t,0],(u=e.push("thead_open","thead",1)).map=[t,t+1],(u=e.push("tr_open","tr",1)).map=[t,t+1],a=0;a<d.length;a++)u=e.push("th_open","th",1),p[a]&&(u.attrs=[["style","text-align:"+p[a]]]),(u=e.push("inline","",0)).content=d[a].trim(),u.children=[],u=e.push("th_close","th",-1)
7643
7647
  for(u=e.push("tr_close","tr",-1),u=e.push("thead_close","thead",-1),c=t+2;c<n&&!(e.sCount[c]<e.blkIndent);c++){for(b=!1,a=0,l=y.length;a<l;a++)if(y[a](e,c,n,!0)){b=!0
7644
7648
  break}if(b)break
7645
- if(!(r=VI(e,c).trim()))break
7649
+ if(!(r=HI(e,c).trim()))break
7646
7650
  if(e.sCount[c]-e.blkIndent>=4)break
7647
- for((d=HI(r)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),c===t+2&&((u=e.push("tbody_open","tbody",1)).map=m=[t+2,0]),(u=e.push("tr_open","tr",1)).map=[c,c+1],a=0;a<h;a++)u=e.push("td_open","td",1),p[a]&&(u.attrs=[["style","text-align:"+p[a]]]),(u=e.push("inline","",0)).content=d[a]?d[a].trim():"",u.children=[],u=e.push("td_close","td",-1)
7651
+ for((d=BI(r)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),c===t+2&&((u=e.push("tbody_open","tbody",1)).map=m=[t+2,0]),(u=e.push("tr_open","tr",1)).map=[c,c+1],a=0;a<h;a++)u=e.push("td_open","td",1),p[a]&&(u.attrs=[["style","text-align:"+p[a]]]),(u=e.push("inline","",0)).content=d[a]?d[a].trim():"",u.children=[],u=e.push("td_close","td",-1)
7648
7652
  u=e.push("tr_close","tr",-1)}return m&&(u=e.push("tbody_close","tbody",-1),m[1]=c),u=e.push("table_close","table",-1),g[1]=c,e.parentType=v,e.line=c,!0},["paragraph","reference"]],["code",function(e,t,n){var i,o,r
7649
7653
  if(e.sCount[t]-e.blkIndent<4)return!1
7650
7654
  for(o=i=t+1;i<n;)if(e.isEmpty(i))i++
@@ -7661,20 +7665,20 @@ break}return r=e.sCount[t],e.line=a+(h?1:0),(c=e.push("fence","code",0)).info=s,
7661
7665
  if(e.sCount[t]-e.blkIndent>=4)return!1
7662
7666
  if(62!==e.src.charCodeAt($++))return!1
7663
7667
  if(i)return!0
7664
- for(a=u=e.sCount[t]+1,32===e.src.charCodeAt($)?($++,a++,u++,o=!1,y=!0):9===e.src.charCodeAt($)?(y=!0,(e.bsCount[t]+u)%4==3?($++,a++,u++,o=!1):o=!0):y=!1,p=[e.bMarks[t]],e.bMarks[t]=$;$<M&&(r=e.src.charCodeAt($),BI(r));)9===r?u+=4-(u+e.bsCount[t]+(o?1:0))%4:u++,$++
7668
+ for(a=u=e.sCount[t]+1,32===e.src.charCodeAt($)?($++,a++,u++,o=!1,y=!0):9===e.src.charCodeAt($)?(y=!0,(e.bsCount[t]+u)%4==3?($++,a++,u++,o=!1):o=!0):y=!1,p=[e.bMarks[t]],e.bMarks[t]=$;$<M&&(r=e.src.charCodeAt($),qI(r));)9===r?u+=4-(u+e.bsCount[t]+(o?1:0))%4:u++,$++
7665
7669
  for(f=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(y?1:0),c=$>=M,v=[e.sCount[t]],e.sCount[t]=u-a,b=[e.tShift[t]],e.tShift[t]=$-e.bMarks[t],x=e.md.block.ruler.getRules("blockquote"),m=e.parentType,e.parentType="blockquote",h=t+1;h<n&&(C=e.sCount[h]<e.blkIndent,!(($=e.bMarks[h]+e.tShift[h])>=(M=e.eMarks[h])));h++)if(62!==e.src.charCodeAt($++)||C){if(c)break
7666
7670
  for(w=!1,s=0,l=x.length;s<l;s++)if(x[s](e,h,n,!0)){w=!0
7667
7671
  break}if(w){e.lineMax=h,0!==e.blkIndent&&(p.push(e.bMarks[h]),f.push(e.bsCount[h]),b.push(e.tShift[h]),v.push(e.sCount[h]),e.sCount[h]-=e.blkIndent)
7668
- break}p.push(e.bMarks[h]),f.push(e.bsCount[h]),b.push(e.tShift[h]),v.push(e.sCount[h]),e.sCount[h]=-1}else{for(a=u=e.sCount[h]+1,32===e.src.charCodeAt($)?($++,a++,u++,o=!1,y=!0):9===e.src.charCodeAt($)?(y=!0,(e.bsCount[h]+u)%4==3?($++,a++,u++,o=!1):o=!0):y=!1,p.push(e.bMarks[h]),e.bMarks[h]=$;$<M&&(r=e.src.charCodeAt($),BI(r));)9===r?u+=4-(u+e.bsCount[h]+(o?1:0))%4:u++,$++
7672
+ break}p.push(e.bMarks[h]),f.push(e.bsCount[h]),b.push(e.tShift[h]),v.push(e.sCount[h]),e.sCount[h]=-1}else{for(a=u=e.sCount[h]+1,32===e.src.charCodeAt($)?($++,a++,u++,o=!1,y=!0):9===e.src.charCodeAt($)?(y=!0,(e.bsCount[h]+u)%4==3?($++,a++,u++,o=!1):o=!0):y=!1,p.push(e.bMarks[h]),e.bMarks[h]=$;$<M&&(r=e.src.charCodeAt($),qI(r));)9===r?u+=4-(u+e.bsCount[h]+(o?1:0))%4:u++,$++
7669
7673
  c=$>=M,f.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(y?1:0),v.push(e.sCount[h]),e.sCount[h]=u-a,b.push(e.tShift[h]),e.tShift[h]=$-e.bMarks[h]}for(g=e.blkIndent,e.blkIndent=0,(k=e.push("blockquote_open","blockquote",1)).markup=">",k.map=d=[t,0],e.md.block.tokenize(e,t,h),(k=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=S,e.parentType=m,d[1]=e.line,s=0;s<b.length;s++)e.bMarks[s+t]=p[s],e.tShift[s+t]=b[s],e.sCount[s+t]=v[s],e.bsCount[s+t]=f[s]
7670
7674
  return e.blkIndent=g,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,i){var o,r,s,a,l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t]
7671
7675
  if(e.sCount[t]-e.blkIndent>=4)return!1
7672
7676
  if(42!==(o=e.src.charCodeAt(l++))&&45!==o&&95!==o)return!1
7673
- for(r=1;l<c;){if((s=e.src.charCodeAt(l++))!==o&&!qI(s))return!1
7677
+ for(r=1;l<c;){if((s=e.src.charCodeAt(l++))!==o&&!ZI(s))return!1
7674
7678
  s===o&&r++}return!(r<3)&&(i||(e.line=t+1,(a=e.push("hr","hr",0)).map=[t,e.line],a.markup=Array(r+1).join(String.fromCharCode(o))),!0)},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,i){var o,r,s,a,l,c,d,h,u,p,f,g,m,v,b,y,w,x,k,C,S,$,M,_,A,E,I,O,T=!1,R=!0
7675
7679
  if(e.sCount[t]-e.blkIndent>=4)return!1
7676
7680
  if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1
7677
- if(i&&"paragraph"===e.parentType&&e.sCount[t]>=e.blkIndent&&(T=!0),(M=UI(e,t))>=0){if(d=!0,A=e.bMarks[t]+e.tShift[t],m=Number(e.src.slice(A,M-1)),T&&1!==m)return!1}else{if(!((M=jI(e,t))>=0))return!1
7681
+ if(i&&"paragraph"===e.parentType&&e.sCount[t]>=e.blkIndent&&(T=!0),(M=WI(e,t))>=0){if(d=!0,A=e.bMarks[t]+e.tShift[t],m=Number(e.src.slice(A,M-1)),T&&1!==m)return!1}else{if(!((M=UI(e,t))>=0))return!1
7678
7682
  d=!1}if(T&&e.skipSpaces(M)>=e.eMarks[t])return!1
7679
7683
  if(g=e.src.charCodeAt(M-1),i)return!0
7680
7684
  for(f=e.tokens.length,d?(O=e.push("ordered_list_open","ol",1),1!==m&&(O.attrs=[["start",m]])):O=e.push("bullet_list_open","ul",1),O.map=p=[t,0],O.markup=String.fromCharCode(g),b=t,_=!1,I=e.md.block.ruler.getRules("list"),x=e.parentType,e.parentType="list";b<n;){for($=M,v=e.eMarks[b],c=y=e.sCount[b]+M-(e.bMarks[t]+e.tShift[t]);$<v;){if(9===(o=e.src.charCodeAt($)))y+=4-(y+e.bsCount[b])%4
@@ -7684,8 +7688,8 @@ if(e.sCount[b]<e.blkIndent)break
7684
7688
  if(e.sCount[t]-e.blkIndent>=4)break
7685
7689
  for(E=!1,s=0,u=I.length;s<u;s++)if(I[s](e,b,n,!0)){E=!0
7686
7690
  break}if(E)break
7687
- if(d){if((M=UI(e,b))<0)break
7688
- A=e.bMarks[b]+e.tShift[b]}else if((M=jI(e,b))<0)break
7691
+ if(d){if((M=WI(e,b))<0)break
7692
+ A=e.bMarks[b]+e.tShift[b]}else if((M=UI(e,b))<0)break
7689
7693
  if(g!==e.src.charCodeAt(M-1))break}return(O=d?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(g),p[1]=b,e.line=b,e.parentType=x,R&&function(e,t){var n,i,o=e.level+2
7690
7694
  for(n=t+2,i=e.tokens.length-2;n<i;n++)e.tokens[n].level===o&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,f),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,i){var o,r,s,a,l,c,d,h,u,p,f,g,m,v,b,y,w=0,x=e.bMarks[t]+e.tShift[t],k=e.eMarks[t],C=t+1
7691
7695
  if(e.sCount[t]-e.blkIndent>=4)return!1
@@ -7697,196 +7701,196 @@ break}if(v)break}for(k=(m=e.getLines(t,C,e.blkIndent,!1).trim()).length,x=1;x<k;
7697
7701
  if(93===o){u=x
7698
7702
  break}(10===o||92===o&&++x<k&&10===m.charCodeAt(x))&&w++}if(u<0||58!==m.charCodeAt(u+1))return!1
7699
7703
  for(x=u+2;x<k;x++)if(10===(o=m.charCodeAt(x)))w++
7700
- else if(!GI(o))break
7704
+ else if(!KI(o))break
7701
7705
  if(!(f=e.md.helpers.parseLinkDestination(m,x,k)).ok)return!1
7702
7706
  if(l=e.md.normalizeLink(f.str),!e.md.validateLink(l))return!1
7703
7707
  for(r=x=f.pos,s=w+=f.lines,g=x;x<k;x++)if(10===(o=m.charCodeAt(x)))w++
7704
- else if(!GI(o))break
7705
- for(f=e.md.helpers.parseLinkTitle(m,x,k),x<k&&g!==x&&f.ok?(y=f.str,x=f.pos,w+=f.lines):(y="",x=r,w=s);x<k&&(o=m.charCodeAt(x),GI(o));)x++
7706
- if(x<k&&10!==m.charCodeAt(x)&&y)for(y="",x=r,w=s;x<k&&(o=m.charCodeAt(x),GI(o));)x++
7707
- return!(x<k&&10!==m.charCodeAt(x))&&(!!(h=WI(m.slice(1,u)))&&(i||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[h]&&(e.env.references[h]={title:y,href:l}),e.parentType=p,e.line=t+w+1),!0))}],["html_block",function(e,t,n,i){var o,r,s,a,l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t]
7708
+ else if(!KI(o))break
7709
+ for(f=e.md.helpers.parseLinkTitle(m,x,k),x<k&&g!==x&&f.ok?(y=f.str,x=f.pos,w+=f.lines):(y="",x=r,w=s);x<k&&(o=m.charCodeAt(x),KI(o));)x++
7710
+ if(x<k&&10!==m.charCodeAt(x)&&y)for(y="",x=r,w=s;x<k&&(o=m.charCodeAt(x),KI(o));)x++
7711
+ return!(x<k&&10!==m.charCodeAt(x))&&(!!(h=GI(m.slice(1,u)))&&(i||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[h]&&(e.env.references[h]={title:y,href:l}),e.parentType=p,e.line=t+w+1),!0))}],["html_block",function(e,t,n,i){var o,r,s,a,l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t]
7708
7712
  if(e.sCount[t]-e.blkIndent>=4)return!1
7709
7713
  if(!e.md.options.html)return!1
7710
7714
  if(60!==e.src.charCodeAt(l))return!1
7711
- for(a=e.src.slice(l,c),o=0;o<nO.length&&!nO[o][0].test(a);o++);if(o===nO.length)return!1
7712
- if(i)return nO[o][2]
7713
- if(r=t+1,!nO[o][1].test(a))for(;r<n&&!(e.sCount[r]<e.blkIndent);r++)if(l=e.bMarks[r]+e.tShift[r],c=e.eMarks[r],a=e.src.slice(l,c),nO[o][1].test(a)){0!==a.length&&r++
7715
+ for(a=e.src.slice(l,c),o=0;o<iO.length&&!iO[o][0].test(a);o++);if(o===iO.length)return!1
7716
+ if(i)return iO[o][2]
7717
+ if(r=t+1,!iO[o][1].test(a))for(;r<n&&!(e.sCount[r]<e.blkIndent);r++)if(l=e.bMarks[r]+e.tShift[r],c=e.eMarks[r],a=e.src.slice(l,c),iO[o][1].test(a)){0!==a.length&&r++
7714
7718
  break}return e.line=r,(s=e.push("html_block","",0)).map=[t,r],s.content=e.getLines(t,r,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,i){var o,r,s,a,l=e.bMarks[t]+e.tShift[t],c=e.eMarks[t]
7715
7719
  if(e.sCount[t]-e.blkIndent>=4)return!1
7716
7720
  if(35!==(o=e.src.charCodeAt(l))||l>=c)return!1
7717
7721
  for(r=1,o=e.src.charCodeAt(++l);35===o&&l<c&&r<=6;)r++,o=e.src.charCodeAt(++l)
7718
- return!(r>6||l<c&&!iO(o))&&(i||(c=e.skipSpacesBack(c,l),(s=e.skipCharsBack(c,35,l))>l&&iO(e.src.charCodeAt(s-1))&&(c=s),e.line=t+1,(a=e.push("heading_open","h"+String(r),1)).markup="########".slice(0,r),a.map=[t,e.line],(a=e.push("inline","",0)).content=e.src.slice(l,c).trim(),a.map=[t,e.line],a.children=[],(a=e.push("heading_close","h"+String(r),-1)).markup="########".slice(0,r)),!0)},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){var i,o,r,s,a,l,c,d,h,u,p=t+1,f=e.md.block.ruler.getRules("paragraph")
7722
+ return!(r>6||l<c&&!oO(o))&&(i||(c=e.skipSpacesBack(c,l),(s=e.skipCharsBack(c,35,l))>l&&oO(e.src.charCodeAt(s-1))&&(c=s),e.line=t+1,(a=e.push("heading_open","h"+String(r),1)).markup="########".slice(0,r),a.map=[t,e.line],(a=e.push("inline","",0)).content=e.src.slice(l,c).trim(),a.map=[t,e.line],a.children=[],(a=e.push("heading_close","h"+String(r),-1)).markup="########".slice(0,r)),!0)},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){var i,o,r,s,a,l,c,d,h,u,p=t+1,f=e.md.block.ruler.getRules("paragraph")
7719
7723
  if(e.sCount[t]-e.blkIndent>=4)return!1
7720
7724
  for(u=e.parentType,e.parentType="paragraph";p<n&&!e.isEmpty(p);p++)if(!(e.sCount[p]-e.blkIndent>3)){if(e.sCount[p]>=e.blkIndent&&(l=e.bMarks[p]+e.tShift[p])<(c=e.eMarks[p])&&(45===(h=e.src.charCodeAt(l))||61===h)&&(l=e.skipChars(l,h),(l=e.skipSpaces(l))>=c)){d=61===h?1:2
7721
7725
  break}if(!(e.sCount[p]<0)){for(o=!1,r=0,s=f.length;r<s;r++)if(f[r](e,p,n,!0)){o=!0
7722
7726
  break}if(o)break}}return!!d&&(i=e.getLines(t,p,e.blkIndent,!1).trim(),e.line=p+1,(a=e.push("heading_open","h"+String(d),1)).markup=String.fromCharCode(h),a.map=[t,e.line],(a=e.push("inline","",0)).content=i,a.map=[t,e.line-1],a.children=[],(a=e.push("heading_close","h"+String(d),-1)).markup=String.fromCharCode(h),e.parentType=u,!0)}],["paragraph",function(e,t){var n,i,o,r,s,a,l=t+1,c=e.md.block.ruler.getRules("paragraph"),d=e.lineMax
7723
7727
  for(a=e.parentType,e.parentType="paragraph";l<d&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3||e.sCount[l]<0)){for(i=!1,o=0,r=c.length;o<r;o++)if(c[o](e,l,d,!0)){i=!0
7724
7728
  break}if(i)break}return n=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,(s=e.push("paragraph_open","p",1)).map=[t,e.line],(s=e.push("inline","",0)).content=n,s.map=[t,e.line],s.children=[],s=e.push("paragraph_close","p",-1),e.parentType=a,!0}]]
7725
- function dO(){this.ruler=new lO
7726
- for(var e=0;e<cO.length;e++)this.ruler.push(cO[e][0],cO[e][1],{alt:(cO[e][2]||[]).slice()})}dO.prototype.tokenize=function(e,t,n){for(var i,o=this.ruler.getRules(""),r=o.length,s=t,a=!1,l=e.md.options.maxNesting;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n))&&!(e.sCount[s]<e.blkIndent);){if(e.level>=l){e.line=n
7727
- break}for(i=0;i<r&&!o[i](e,s,n,!1);i++);e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),(s=e.line)<n&&e.isEmpty(s)&&(a=!0,s++,e.line=s)}},dO.prototype.parse=function(e,t,n,i){var o
7728
- e&&(o=new this.State(e,t,n,i),this.tokenize(o,o.line,o.lineMax))},dO.prototype.State=aO
7729
- var hO=dO
7730
- function uO(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0
7731
- default:return!1}}for(var pO=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,fO=bE.isSpace,gO=bE.isSpace,mO=[],vO=0;vO<256;vO++)mO.push(0)
7732
- "\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){mO[e.charCodeAt(0)]=1}))
7733
- var bO={}
7734
- function yO(e,t){var n,i,o,r,s,a=[],l=t.length
7729
+ function hO(){this.ruler=new cO
7730
+ for(var e=0;e<dO.length;e++)this.ruler.push(dO[e][0],dO[e][1],{alt:(dO[e][2]||[]).slice()})}hO.prototype.tokenize=function(e,t,n){for(var i,o=this.ruler.getRules(""),r=o.length,s=t,a=!1,l=e.md.options.maxNesting;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n))&&!(e.sCount[s]<e.blkIndent);){if(e.level>=l){e.line=n
7731
+ break}for(i=0;i<r&&!o[i](e,s,n,!1);i++);e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),(s=e.line)<n&&e.isEmpty(s)&&(a=!0,s++,e.line=s)}},hO.prototype.parse=function(e,t,n,i){var o
7732
+ e&&(o=new this.State(e,t,n,i),this.tokenize(o,o.line,o.lineMax))},hO.prototype.State=lO
7733
+ var uO=hO
7734
+ function pO(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0
7735
+ default:return!1}}for(var fO=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,gO=yE.isSpace,mO=yE.isSpace,vO=[],bO=0;bO<256;bO++)vO.push(0)
7736
+ "\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){vO[e.charCodeAt(0)]=1}))
7737
+ var yO={}
7738
+ function wO(e,t){var n,i,o,r,s,a=[],l=t.length
7735
7739
  for(n=0;n<l;n++)126===(o=t[n]).marker&&-1!==o.end&&(r=t[o.end],(s=e.tokens[o.token]).type="s_open",s.tag="s",s.nesting=1,s.markup="~~",s.content="",(s=e.tokens[r.token]).type="s_close",s.tag="s",s.nesting=-1,s.markup="~~",s.content="","text"===e.tokens[r.token-1].type&&"~"===e.tokens[r.token-1].content&&a.push(r.token-1))
7736
7740
  for(;a.length;){for(i=(n=a.pop())+1;i<e.tokens.length&&"s_close"===e.tokens[i].type;)i++
7737
- n!==--i&&(s=e.tokens[i],e.tokens[i]=e.tokens[n],e.tokens[n]=s)}}bO.tokenize=function(e,t){var n,i,o,r,s=e.pos,a=e.src.charCodeAt(s)
7741
+ n!==--i&&(s=e.tokens[i],e.tokens[i]=e.tokens[n],e.tokens[n]=s)}}yO.tokenize=function(e,t){var n,i,o,r,s=e.pos,a=e.src.charCodeAt(s)
7738
7742
  if(t)return!1
7739
7743
  if(126!==a)return!1
7740
7744
  if(o=(i=e.scanDelims(e.pos,!0)).length,r=String.fromCharCode(a),o<2)return!1
7741
7745
  for(o%2&&(e.push("text","",0).content=r,o--),n=0;n<o;n+=2)e.push("text","",0).content=r+r,e.delimiters.push({marker:a,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})
7742
- return e.pos+=i.length,!0},bO.postProcess=function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length
7743
- for(yO(e,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&yO(e,n[t].delimiters)}
7744
- var wO={}
7745
- function xO(e,t){var n,i,o,r,s,a
7746
- for(n=t.length-1;n>=0;n--)95!==(i=t[n]).marker&&42!==i.marker||-1!==i.end&&(o=t[i.end],a=n>0&&t[n-1].end===i.end+1&&t[n-1].marker===i.marker&&t[n-1].token===i.token-1&&t[i.end+1].token===o.token+1,s=String.fromCharCode(i.marker),(r=e.tokens[i.token]).type=a?"strong_open":"em_open",r.tag=a?"strong":"em",r.nesting=1,r.markup=a?s+s:s,r.content="",(r=e.tokens[o.token]).type=a?"strong_close":"em_close",r.tag=a?"strong":"em",r.nesting=-1,r.markup=a?s+s:s,r.content="",a&&(e.tokens[t[n-1].token].content="",e.tokens[t[i.end+1].token].content="",n--))}wO.tokenize=function(e,t){var n,i,o=e.pos,r=e.src.charCodeAt(o)
7746
+ return e.pos+=i.length,!0},yO.postProcess=function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length
7747
+ for(wO(e,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&wO(e,n[t].delimiters)}
7748
+ var xO={}
7749
+ function kO(e,t){var n,i,o,r,s,a
7750
+ for(n=t.length-1;n>=0;n--)95!==(i=t[n]).marker&&42!==i.marker||-1!==i.end&&(o=t[i.end],a=n>0&&t[n-1].end===i.end+1&&t[n-1].marker===i.marker&&t[n-1].token===i.token-1&&t[i.end+1].token===o.token+1,s=String.fromCharCode(i.marker),(r=e.tokens[i.token]).type=a?"strong_open":"em_open",r.tag=a?"strong":"em",r.nesting=1,r.markup=a?s+s:s,r.content="",(r=e.tokens[o.token]).type=a?"strong_close":"em_close",r.tag=a?"strong":"em",r.nesting=-1,r.markup=a?s+s:s,r.content="",a&&(e.tokens[t[n-1].token].content="",e.tokens[t[i.end+1].token].content="",n--))}xO.tokenize=function(e,t){var n,i,o=e.pos,r=e.src.charCodeAt(o)
7747
7751
  if(t)return!1
7748
7752
  if(95!==r&&42!==r)return!1
7749
7753
  for(i=e.scanDelims(e.pos,42===r),n=0;n<i.length;n++)e.push("text","",0).content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})
7750
- return e.pos+=i.length,!0},wO.postProcess=function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length
7751
- for(xO(e,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&xO(e,n[t].delimiters)}
7752
- var kO=bE.normalizeReference,CO=bE.isSpace,SO=bE.normalizeReference,$O=bE.isSpace,MO=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,_O=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,AO=KI.HTML_TAG_RE
7753
- var EO=yE,IO=bE.has,OO=bE.isValidEntityCode,TO=bE.fromCodePoint,RO=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,DO=/^&([a-z][a-z0-9]{1,31});/i
7754
- function FO(e,t){var n,i,o,r,s,a,l,c,d={},h=t.length
7754
+ return e.pos+=i.length,!0},xO.postProcess=function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length
7755
+ for(kO(e,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&kO(e,n[t].delimiters)}
7756
+ var CO=yE.normalizeReference,SO=yE.isSpace,$O=yE.normalizeReference,MO=yE.isSpace,_O=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,AO=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,EO=JI.HTML_TAG_RE
7757
+ var IO=wE,OO=yE.has,TO=yE.isValidEntityCode,RO=yE.fromCodePoint,DO=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,FO=/^&([a-z][a-z0-9]{1,31});/i
7758
+ function LO(e,t){var n,i,o,r,s,a,l,c,d={},h=t.length
7755
7759
  if(h){var u=0,p=-2,f=[]
7756
7760
  for(n=0;n<h;n++)if(o=t[n],f.push(0),t[u].marker===o.marker&&p===o.token-1||(u=n),p=o.token,o.length=o.length||0,o.close){for(d.hasOwnProperty(o.marker)||(d[o.marker]=[-1,-1,-1,-1,-1,-1]),s=d[o.marker][(o.open?3:0)+o.length%3],a=i=u-f[u]-1;i>s;i-=f[i]+1)if((r=t[i]).marker===o.marker&&r.open&&r.end<0&&(l=!1,(r.close||o.open)&&(r.length+o.length)%3==0&&(r.length%3==0&&o.length%3==0||(l=!0)),!l)){c=i>0&&!t[i-1].open?f[i-1]+1:0,f[n]=n-i+c,f[i]=c,o.open=!1,r.end=n,r.close=!1,a=-1,p=-2
7757
- break}-1!==a&&(d[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var LO=OI,NO=bE.isWhiteSpace,PO=bE.isPunctChar,zO=bE.isMdAsciiPunct
7758
- function VO(e,t,n,i){this.src=e,this.env=n,this.md=t,this.tokens=i,this.tokens_meta=Array(i.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}VO.prototype.pushPending=function(){var e=new LO("text","",0)
7759
- return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},VO.prototype.push=function(e,t,n){this.pending&&this.pushPending()
7760
- var i=new LO(e,t,n),o=null
7761
- return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},VO.prototype.scanDelims=function(e,t){var n,i,o,r,s,a,l,c,d,h=e,u=!0,p=!0,f=this.posMax,g=this.src.charCodeAt(e)
7761
+ break}-1!==a&&(d[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}var NO=TI,PO=yE.isWhiteSpace,zO=yE.isPunctChar,VO=yE.isMdAsciiPunct
7762
+ function HO(e,t,n,i){this.src=e,this.env=n,this.md=t,this.tokens=i,this.tokens_meta=Array(i.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}HO.prototype.pushPending=function(){var e=new NO("text","",0)
7763
+ return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},HO.prototype.push=function(e,t,n){this.pending&&this.pushPending()
7764
+ var i=new NO(e,t,n),o=null
7765
+ return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},HO.prototype.scanDelims=function(e,t){var n,i,o,r,s,a,l,c,d,h=e,u=!0,p=!0,f=this.posMax,g=this.src.charCodeAt(e)
7762
7766
  for(n=e>0?this.src.charCodeAt(e-1):32;h<f&&this.src.charCodeAt(h)===g;)h++
7763
- return o=h-e,i=h<f?this.src.charCodeAt(h):32,l=zO(n)||PO(String.fromCharCode(n)),d=zO(i)||PO(String.fromCharCode(i)),a=NO(n),(c=NO(i))?u=!1:d&&(a||l||(u=!1)),a?p=!1:l&&(c||d||(p=!1)),t?(r=u,s=p):(r=u&&(!p||l),s=p&&(!u||d)),{can_open:r,can_close:s,length:o}},VO.prototype.Token=LO
7764
- var HO=VO,BO=hI,qO=[["text",function(e,t){for(var n=e.pos;n<e.posMax&&!uO(e.src.charCodeAt(n));)n++
7767
+ return o=h-e,i=h<f?this.src.charCodeAt(h):32,l=VO(n)||zO(String.fromCharCode(n)),d=VO(i)||zO(String.fromCharCode(i)),a=PO(n),(c=PO(i))?u=!1:d&&(a||l||(u=!1)),a?p=!1:l&&(c||d||(p=!1)),t?(r=u,s=p):(r=u&&(!p||l),s=p&&(!u||d)),{can_open:r,can_close:s,length:o}},HO.prototype.Token=NO
7768
+ var BO=HO,qO=uI,ZO=[["text",function(e,t){for(var n=e.pos;n<e.posMax&&!pO(e.src.charCodeAt(n));)n++
7765
7769
  return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){var n,i,o,r,s,a,l
7766
- return!!e.md.options.linkify&&(!(e.linkLevel>0)&&(!((n=e.pos)+3>e.posMax)&&(58===e.src.charCodeAt(n)&&(47===e.src.charCodeAt(n+1)&&(47===e.src.charCodeAt(n+2)&&(!!(i=e.pending.match(pO))&&(o=i[1],!!(r=e.md.linkify.matchAtStart(e.src.slice(n-o.length)))&&(s=(s=r.url).replace(/\*+$/,""),a=e.md.normalizeLink(s),!!e.md.validateLink(a)&&(t||(e.pending=e.pending.slice(0,-o.length),(l=e.push("link_open","a",1)).attrs=[["href",a]],l.markup="linkify",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(s),(l=e.push("link_close","a",-1)).markup="linkify",l.info="auto"),e.pos+=s.length-o.length,!0)))))))))}],["newline",function(e,t){var n,i,o,r=e.pos
7770
+ return!!e.md.options.linkify&&(!(e.linkLevel>0)&&(!((n=e.pos)+3>e.posMax)&&(58===e.src.charCodeAt(n)&&(47===e.src.charCodeAt(n+1)&&(47===e.src.charCodeAt(n+2)&&(!!(i=e.pending.match(fO))&&(o=i[1],!!(r=e.md.linkify.matchAtStart(e.src.slice(n-o.length)))&&(s=(s=r.url).replace(/\*+$/,""),a=e.md.normalizeLink(s),!!e.md.validateLink(a)&&(t||(e.pending=e.pending.slice(0,-o.length),(l=e.push("link_open","a",1)).attrs=[["href",a]],l.markup="linkify",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(s),(l=e.push("link_close","a",-1)).markup="linkify",l.info="auto"),e.pos+=s.length-o.length,!0)))))))))}],["newline",function(e,t){var n,i,o,r=e.pos
7767
7771
  if(10!==e.src.charCodeAt(r))return!1
7768
7772
  if(n=e.pending.length-1,i=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(o=n-1;o>=1&&32===e.pending.charCodeAt(o-1);)o--
7769
7773
  e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)
7770
7774
  else e.push("softbreak","br",0)
7771
- for(r++;r<i&&fO(e.src.charCodeAt(r));)r++
7775
+ for(r++;r<i&&gO(e.src.charCodeAt(r));)r++
7772
7776
  return e.pos=r,!0}],["escape",function(e,t){var n,i,o,r,s,a=e.pos,l=e.posMax
7773
7777
  if(92!==e.src.charCodeAt(a))return!1
7774
7778
  if(++a>=l)return!1
7775
- if(10===(n=e.src.charCodeAt(a))){for(t||e.push("hardbreak","br",0),a++;a<l&&(n=e.src.charCodeAt(a),gO(n));)a++
7776
- return e.pos=a,!0}return r=e.src[a],n>=55296&&n<=56319&&a+1<l&&(i=e.src.charCodeAt(a+1))>=56320&&i<=57343&&(r+=e.src[a+1],a++),o="\\"+r,t||(s=e.push("text_special","",0),n<256&&0!==mO[n]?s.content=r:s.content=o,s.markup=o,s.info="escape"),e.pos=a+1,!0}],["backticks",function(e,t){var n,i,o,r,s,a,l,c,d=e.pos
7779
+ if(10===(n=e.src.charCodeAt(a))){for(t||e.push("hardbreak","br",0),a++;a<l&&(n=e.src.charCodeAt(a),mO(n));)a++
7780
+ return e.pos=a,!0}return r=e.src[a],n>=55296&&n<=56319&&a+1<l&&(i=e.src.charCodeAt(a+1))>=56320&&i<=57343&&(r+=e.src[a+1],a++),o="\\"+r,t||(s=e.push("text_special","",0),n<256&&0!==vO[n]?s.content=r:s.content=o,s.markup=o,s.info="escape"),e.pos=a+1,!0}],["backticks",function(e,t){var n,i,o,r,s,a,l,c,d=e.pos
7777
7781
  if(96!==e.src.charCodeAt(d))return!1
7778
7782
  for(n=d,d++,i=e.posMax;d<i&&96===e.src.charCodeAt(d);)d++
7779
7783
  if(l=(o=e.src.slice(n,d)).length,e.backticksScanned&&(e.backticks[l]||0)<=n)return t||(e.pending+=o),e.pos+=l,!0
7780
7784
  for(s=a=d;-1!==(s=e.src.indexOf("`",a));){for(a=s+1;a<i&&96===e.src.charCodeAt(a);)a++
7781
7785
  if((c=a-s)===l)return t||((r=e.push("code_inline","code",0)).markup=o,r.content=e.src.slice(d,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=a,!0
7782
- e.backticks[c]=s}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=l,!0}],["strikethrough",bO.tokenize],["emphasis",wO.tokenize],["link",function(e,t){var n,i,o,r,s,a,l,c,d="",h="",u=e.pos,p=e.posMax,f=e.pos,g=!0
7786
+ e.backticks[c]=s}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=l,!0}],["strikethrough",yO.tokenize],["emphasis",xO.tokenize],["link",function(e,t){var n,i,o,r,s,a,l,c,d="",h="",u=e.pos,p=e.posMax,f=e.pos,g=!0
7783
7787
  if(91!==e.src.charCodeAt(e.pos))return!1
7784
7788
  if(s=e.pos+1,(r=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1
7785
- if((a=r+1)<p&&40===e.src.charCodeAt(a)){for(g=!1,a++;a<p&&(i=e.src.charCodeAt(a),CO(i)||10===i);a++);if(a>=p)return!1
7786
- if(f=a,(l=e.md.helpers.parseLinkDestination(e.src,a,e.posMax)).ok){for(d=e.md.normalizeLink(l.str),e.md.validateLink(d)?a=l.pos:d="",f=a;a<p&&(i=e.src.charCodeAt(a),CO(i)||10===i);a++);if(l=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<p&&f!==a&&l.ok)for(h=l.str,a=l.pos;a<p&&(i=e.src.charCodeAt(a),CO(i)||10===i);a++);}(a>=p||41!==e.src.charCodeAt(a))&&(g=!0),a++}if(g){if(void 0===e.env.references)return!1
7787
- if(a<p&&91===e.src.charCodeAt(a)?(f=a+1,(a=e.md.helpers.parseLinkLabel(e,a))>=0?o=e.src.slice(f,a++):a=r+1):a=r+1,o||(o=e.src.slice(s,r)),!(c=e.env.references[kO(o)]))return e.pos=u,!1
7789
+ if((a=r+1)<p&&40===e.src.charCodeAt(a)){for(g=!1,a++;a<p&&(i=e.src.charCodeAt(a),SO(i)||10===i);a++);if(a>=p)return!1
7790
+ if(f=a,(l=e.md.helpers.parseLinkDestination(e.src,a,e.posMax)).ok){for(d=e.md.normalizeLink(l.str),e.md.validateLink(d)?a=l.pos:d="",f=a;a<p&&(i=e.src.charCodeAt(a),SO(i)||10===i);a++);if(l=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<p&&f!==a&&l.ok)for(h=l.str,a=l.pos;a<p&&(i=e.src.charCodeAt(a),SO(i)||10===i);a++);}(a>=p||41!==e.src.charCodeAt(a))&&(g=!0),a++}if(g){if(void 0===e.env.references)return!1
7791
+ if(a<p&&91===e.src.charCodeAt(a)?(f=a+1,(a=e.md.helpers.parseLinkLabel(e,a))>=0?o=e.src.slice(f,a++):a=r+1):a=r+1,o||(o=e.src.slice(s,r)),!(c=e.env.references[CO(o)]))return e.pos=u,!1
7788
7792
  d=c.href,h=c.title}return t||(e.pos=s,e.posMax=r,e.push("link_open","a",1).attrs=n=[["href",d]],h&&n.push(["title",h]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)),e.pos=a,e.posMax=p,!0}],["image",function(e,t){var n,i,o,r,s,a,l,c,d,h,u,p,f,g="",m=e.pos,v=e.posMax
7789
7793
  if(33!==e.src.charCodeAt(e.pos))return!1
7790
7794
  if(91!==e.src.charCodeAt(e.pos+1))return!1
7791
7795
  if(a=e.pos+2,(s=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1
7792
- if((l=s+1)<v&&40===e.src.charCodeAt(l)){for(l++;l<v&&(i=e.src.charCodeAt(l),$O(i)||10===i);l++);if(l>=v)return!1
7793
- for(f=l,(d=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(g=e.md.normalizeLink(d.str),e.md.validateLink(g)?l=d.pos:g=""),f=l;l<v&&(i=e.src.charCodeAt(l),$O(i)||10===i);l++);if(d=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<v&&f!==l&&d.ok)for(h=d.str,l=d.pos;l<v&&(i=e.src.charCodeAt(l),$O(i)||10===i);l++);else h=""
7796
+ if((l=s+1)<v&&40===e.src.charCodeAt(l)){for(l++;l<v&&(i=e.src.charCodeAt(l),MO(i)||10===i);l++);if(l>=v)return!1
7797
+ for(f=l,(d=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok&&(g=e.md.normalizeLink(d.str),e.md.validateLink(g)?l=d.pos:g=""),f=l;l<v&&(i=e.src.charCodeAt(l),MO(i)||10===i);l++);if(d=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<v&&f!==l&&d.ok)for(h=d.str,l=d.pos;l<v&&(i=e.src.charCodeAt(l),MO(i)||10===i);l++);else h=""
7794
7798
  if(l>=v||41!==e.src.charCodeAt(l))return e.pos=m,!1
7795
7799
  l++}else{if(void 0===e.env.references)return!1
7796
- if(l<v&&91===e.src.charCodeAt(l)?(f=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?r=e.src.slice(f,l++):l=s+1):l=s+1,r||(r=e.src.slice(a,s)),!(c=e.env.references[SO(r)]))return e.pos=m,!1
7800
+ if(l<v&&91===e.src.charCodeAt(l)?(f=l+1,(l=e.md.helpers.parseLinkLabel(e,l))>=0?r=e.src.slice(f,l++):l=s+1):l=s+1,r||(r=e.src.slice(a,s)),!(c=e.env.references[$O(r)]))return e.pos=m,!1
7797
7801
  g=c.href,h=c.title}return t||(o=e.src.slice(a,s),e.md.inline.parse(o,e.md,e.env,p=[]),(u=e.push("image","img",0)).attrs=n=[["src",g],["alt",""]],u.children=p,u.content=o,h&&n.push(["title",h])),e.pos=l,e.posMax=v,!0}],["autolink",function(e,t){var n,i,o,r,s,a,l=e.pos
7798
7802
  if(60!==e.src.charCodeAt(l))return!1
7799
7803
  for(s=e.pos,a=e.posMax;;){if(++l>=a)return!1
7800
7804
  if(60===(r=e.src.charCodeAt(l)))return!1
7801
- if(62===r)break}return n=e.src.slice(s+1,l),_O.test(n)?(i=e.md.normalizeLink(n),!!e.md.validateLink(i)&&(t||((o=e.push("link_open","a",1)).attrs=[["href",i]],o.markup="autolink",o.info="auto",(o=e.push("text","",0)).content=e.md.normalizeLinkText(n),(o=e.push("link_close","a",-1)).markup="autolink",o.info="auto"),e.pos+=n.length+2,!0)):!!MO.test(n)&&(i=e.md.normalizeLink("mailto:"+n),!!e.md.validateLink(i)&&(t||((o=e.push("link_open","a",1)).attrs=[["href",i]],o.markup="autolink",o.info="auto",(o=e.push("text","",0)).content=e.md.normalizeLinkText(n),(o=e.push("link_close","a",-1)).markup="autolink",o.info="auto"),e.pos+=n.length+2,!0))}],["html_inline",function(e,t){var n,i,o,r,s,a=e.pos
7805
+ if(62===r)break}return n=e.src.slice(s+1,l),AO.test(n)?(i=e.md.normalizeLink(n),!!e.md.validateLink(i)&&(t||((o=e.push("link_open","a",1)).attrs=[["href",i]],o.markup="autolink",o.info="auto",(o=e.push("text","",0)).content=e.md.normalizeLinkText(n),(o=e.push("link_close","a",-1)).markup="autolink",o.info="auto"),e.pos+=n.length+2,!0)):!!_O.test(n)&&(i=e.md.normalizeLink("mailto:"+n),!!e.md.validateLink(i)&&(t||((o=e.push("link_open","a",1)).attrs=[["href",i]],o.markup="autolink",o.info="auto",(o=e.push("text","",0)).content=e.md.normalizeLinkText(n),(o=e.push("link_close","a",-1)).markup="autolink",o.info="auto"),e.pos+=n.length+2,!0))}],["html_inline",function(e,t){var n,i,o,r,s,a=e.pos
7802
7806
  return!!e.md.options.html&&(o=e.posMax,!(60!==e.src.charCodeAt(a)||a+2>=o)&&(!(33!==(n=e.src.charCodeAt(a+1))&&63!==n&&47!==n&&!function(e){var t=32|e
7803
- return t>=97&&t<=122}(n))&&(!!(i=e.src.slice(a).match(AO))&&(t||((r=e.push("html_inline","",0)).content=e.src.slice(a,a+i[0].length),s=r.content,/^<a[>\s]/i.test(s)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(r.content)&&e.linkLevel--),e.pos+=i[0].length,!0))))}],["entity",function(e,t){var n,i,o,r=e.pos,s=e.posMax
7807
+ return t>=97&&t<=122}(n))&&(!!(i=e.src.slice(a).match(EO))&&(t||((r=e.push("html_inline","",0)).content=e.src.slice(a,a+i[0].length),s=r.content,/^<a[>\s]/i.test(s)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(r.content)&&e.linkLevel--),e.pos+=i[0].length,!0))))}],["entity",function(e,t){var n,i,o,r=e.pos,s=e.posMax
7804
7808
  if(38!==e.src.charCodeAt(r))return!1
7805
7809
  if(r+1>=s)return!1
7806
- if(35===e.src.charCodeAt(r+1)){if(i=e.src.slice(r).match(RO))return t||(n="x"===i[1][0].toLowerCase()?parseInt(i[1].slice(1),16):parseInt(i[1],10),(o=e.push("text_special","",0)).content=OO(n)?TO(n):TO(65533),o.markup=i[0],o.info="entity"),e.pos+=i[0].length,!0}else if((i=e.src.slice(r).match(DO))&&IO(EO,i[1]))return t||((o=e.push("text_special","",0)).content=EO[i[1]],o.markup=i[0],o.info="entity"),e.pos+=i[0].length,!0
7807
- return!1}]],ZO=[["balance_pairs",function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length
7808
- for(FO(0,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&FO(0,n[t].delimiters)}],["strikethrough",bO.postProcess],["emphasis",wO.postProcess],["fragments_join",function(e){var t,n,i=0,o=e.tokens,r=e.tokens.length
7810
+ if(35===e.src.charCodeAt(r+1)){if(i=e.src.slice(r).match(DO))return t||(n="x"===i[1][0].toLowerCase()?parseInt(i[1].slice(1),16):parseInt(i[1],10),(o=e.push("text_special","",0)).content=TO(n)?RO(n):RO(65533),o.markup=i[0],o.info="entity"),e.pos+=i[0].length,!0}else if((i=e.src.slice(r).match(FO))&&OO(IO,i[1]))return t||((o=e.push("text_special","",0)).content=IO[i[1]],o.markup=i[0],o.info="entity"),e.pos+=i[0].length,!0
7811
+ return!1}]],jO=[["balance_pairs",function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length
7812
+ for(LO(0,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&LO(0,n[t].delimiters)}],["strikethrough",yO.postProcess],["emphasis",xO.postProcess],["fragments_join",function(e){var t,n,i=0,o=e.tokens,r=e.tokens.length
7809
7813
  for(t=n=0;t<r;t++)o[t].nesting<0&&i--,o[t].level=i,o[t].nesting>0&&i++,"text"===o[t].type&&t+1<r&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++)
7810
7814
  t!==n&&(o.length=n)}]]
7811
- function jO(){var e
7812
- for(this.ruler=new BO,e=0;e<qO.length;e++)this.ruler.push(qO[e][0],qO[e][1])
7813
- for(this.ruler2=new BO,e=0;e<ZO.length;e++)this.ruler2.push(ZO[e][0],ZO[e][1])}jO.prototype.skipToken=function(e){var t,n,i=e.pos,o=this.ruler.getRules(""),r=o.length,s=e.md.options.maxNesting,a=e.cache
7815
+ function UO(){var e
7816
+ for(this.ruler=new qO,e=0;e<ZO.length;e++)this.ruler.push(ZO[e][0],ZO[e][1])
7817
+ for(this.ruler2=new qO,e=0;e<jO.length;e++)this.ruler2.push(jO[e][0],jO[e][1])}UO.prototype.skipToken=function(e){var t,n,i=e.pos,o=this.ruler.getRules(""),r=o.length,s=e.md.options.maxNesting,a=e.cache
7814
7818
  if(void 0===a[i]){if(e.level<s)for(n=0;n<r&&(e.level++,t=o[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax
7815
- t||e.pos++,a[i]=e.pos}else e.pos=a[i]},jO.prototype.tokenize=function(e){for(var t,n,i=this.ruler.getRules(""),o=i.length,r=e.posMax,s=e.md.options.maxNesting;e.pos<r;){if(e.level<s)for(n=0;n<o&&!(t=i[n](e,!1));n++);if(t){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},jO.prototype.parse=function(e,t,n,i){var o,r,s,a=new this.State(e,t,n,i)
7816
- for(this.tokenize(a),s=(r=this.ruler2.getRules("")).length,o=0;o<s;o++)r[o](a)},jO.prototype.State=HO
7817
- var UO,WO,GO=jO
7818
- function KO(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function JO(e){return Object.prototype.toString.call(e)}function XO(e){return"[object Function]"===JO(e)}function YO(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var QO={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1}
7819
- var eT={"http:":{validate:function(e,t,n){var i=e.slice(t)
7819
+ t||e.pos++,a[i]=e.pos}else e.pos=a[i]},UO.prototype.tokenize=function(e){for(var t,n,i=this.ruler.getRules(""),o=i.length,r=e.posMax,s=e.md.options.maxNesting;e.pos<r;){if(e.level<s)for(n=0;n<o&&!(t=i[n](e,!1));n++);if(t){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},UO.prototype.parse=function(e,t,n,i){var o,r,s,a=new this.State(e,t,n,i)
7820
+ for(this.tokenize(a),s=(r=this.ruler2.getRules("")).length,o=0;o<s;o++)r[o](a)},UO.prototype.State=BO
7821
+ var WO,GO,KO=UO
7822
+ function JO(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function XO(e){return Object.prototype.toString.call(e)}function YO(e){return"[object Function]"===XO(e)}function QO(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var eT={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1}
7823
+ var tT={"http:":{validate:function(e,t,n){var i=e.slice(t)
7820
7824
  return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(i)?i.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var i=e.slice(t)
7821
7825
  return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(i)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var i=e.slice(t)
7822
- return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(i)?i.match(n.re.mailto)[0].length:0}}},tT="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",nT="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|")
7823
- function iT(e){var t=e.re=(WO||(WO=1,UO=function(e){var t={}
7824
- e=e||{},t.src_Any=XE().source,t.src_Cc=YE().source,t.src_Z=QE().source,t.src_P=wE.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|")
7826
+ return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(i)?i.match(n.re.mailto)[0].length:0}}},nT="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",iT="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|")
7827
+ function oT(e){var t=e.re=(GO||(GO=1,WO=function(e){var t={}
7828
+ e=e||{},t.src_Any=YE().source,t.src_Cc=QE().source,t.src_Z=eI().source,t.src_P=xE.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|")
7825
7829
  var n="[><|]"
7826
- return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),UO)(e.__opts__),n=e.__tlds__.slice()
7827
- function i(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push(tT),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(i(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(i(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(i(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(i(t.tpl_host_fuzzy_test),"i")
7830
+ return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}),WO)(e.__opts__),n=e.__tlds__.slice()
7831
+ function i(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push(nT),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(i(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(i(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(i(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(i(t.tpl_host_fuzzy_test),"i")
7828
7832
  var o=[]
7829
7833
  function r(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t]
7830
7834
  if(null!==n){var i={validate:null,link:null}
7831
- if(e.__compiled__[t]=i,"[object Object]"===JO(n))return!function(e){return"[object RegExp]"===JO(e)}(n.validate)?XO(n.validate)?i.validate=n.validate:r(t,n):i.validate=function(e){return function(t,n){var i=t.slice(n)
7832
- return e.test(i)?i.match(e)[0].length:0}}(n.validate),void(XO(n.normalize)?i.normalize=n.normalize:n.normalize?r(t,n):i.normalize=function(e,t){t.normalize(e)})
7833
- !function(e){return"[object String]"===JO(e)}(n)?r(t,n):o.push(t)}})),o.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}}
7834
- var s=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(YO).join("|")
7835
- e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function oT(e,t){var n=e.__index__,i=e.__last_index__,o=e.__text_cache__.slice(n,i)
7836
- this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=i+t,this.raw=o,this.text=o,this.url=o}function rT(e,t){var n=new oT(e,t)
7837
- return e.__compiled__[n.schema].normalize(n,e),n}function sT(e,t){if(!(this instanceof sT))return new sT(e,t)
7835
+ if(e.__compiled__[t]=i,"[object Object]"===XO(n))return!function(e){return"[object RegExp]"===XO(e)}(n.validate)?YO(n.validate)?i.validate=n.validate:r(t,n):i.validate=function(e){return function(t,n){var i=t.slice(n)
7836
+ return e.test(i)?i.match(e)[0].length:0}}(n.validate),void(YO(n.normalize)?i.normalize=n.normalize:n.normalize?r(t,n):i.normalize=function(e,t){t.normalize(e)})
7837
+ !function(e){return"[object String]"===XO(e)}(n)?r(t,n):o.push(t)}})),o.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}}
7838
+ var s=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(QO).join("|")
7839
+ e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+s+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function rT(e,t){var n=e.__index__,i=e.__last_index__,o=e.__text_cache__.slice(n,i)
7840
+ this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=i+t,this.raw=o,this.text=o,this.url=o}function sT(e,t){var n=new rT(e,t)
7841
+ return e.__compiled__[n.schema].normalize(n,e),n}function aT(e,t){if(!(this instanceof aT))return new aT(e,t)
7838
7842
  var n
7839
- t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||QO.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=KO({},QO,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=KO({},eT,e),this.__compiled__={},this.__tlds__=nT,this.__tlds_replaced__=!1,this.re={},iT(this)}sT.prototype.add=function(e,t){return this.__schemas__[e]=t,iT(this),this},sT.prototype.set=function(e){return this.__opts__=KO(this.__opts__,e),this},sT.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1
7843
+ t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||eT.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=JO({},eT,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=JO({},tT,e),this.__compiled__={},this.__tlds__=iT,this.__tlds_replaced__=!1,this.re={},oT(this)}aT.prototype.add=function(e,t){return this.__schemas__[e]=t,oT(this),this},aT.prototype.set=function(e){return this.__opts__=JO(this.__opts__,e),this},aT.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1
7840
7844
  var t,n,i,o,r,s,a,l
7841
7845
  if(this.re.schema_test.test(e))for((a=this.re.schema_search).lastIndex=0;null!==(t=a.exec(e));)if(o=this.testSchemaAt(e,t[2],a.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o
7842
- break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(r=n.index+n[1].length,(this.__index__<0||r<this.__index__)&&(this.__schema__="",this.__index__=r,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(i=e.match(this.re.email_fuzzy))&&(r=i.index+i[1].length,s=i.index+i[0].length,(this.__index__<0||r<this.__index__||r===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=r,this.__last_index__=s)),this.__index__>=0},sT.prototype.pretest=function(e){return this.re.pretest.test(e)},sT.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},sT.prototype.match=function(e){var t=0,n=[]
7843
- this.__index__>=0&&this.__text_cache__===e&&(n.push(rT(this,t)),t=this.__last_index__)
7844
- for(var i=t?e.slice(t):e;this.test(i);)n.push(rT(this,t)),i=i.slice(this.__last_index__),t+=this.__last_index__
7845
- return n.length?n:null},sT.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null
7846
+ break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(r=n.index+n[1].length,(this.__index__<0||r<this.__index__)&&(this.__schema__="",this.__index__=r,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(i=e.match(this.re.email_fuzzy))&&(r=i.index+i[1].length,s=i.index+i[0].length,(this.__index__<0||r<this.__index__||r===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=r,this.__last_index__=s)),this.__index__>=0},aT.prototype.pretest=function(e){return this.re.pretest.test(e)},aT.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},aT.prototype.match=function(e){var t=0,n=[]
7847
+ this.__index__>=0&&this.__text_cache__===e&&(n.push(sT(this,t)),t=this.__last_index__)
7848
+ for(var i=t?e.slice(t):e;this.test(i);)n.push(sT(this,t)),i=i.slice(this.__last_index__),t+=this.__last_index__
7849
+ return n.length?n:null},aT.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null
7846
7850
  var t=this.re.schema_at_start.exec(e)
7847
7851
  if(!t)return null
7848
7852
  var n=this.testSchemaAt(e,t[2],t[0].length)
7849
- return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,rT(this,0)):null},sT.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),iT(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,iT(this),this)},sT.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},sT.prototype.onCompile=function(){}
7850
- var aT=sT,lT=2147483647,cT=36,dT=1,hT=26,uT=38,pT=700,fT=72,gT=128,mT="-",vT=/^xn--/,bT=/[^\x20-\x7E]/,yT=/[\x2E\u3002\uFF0E\uFF61]/g,wT={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},xT=cT-dT,kT=Math.floor,CT=String.fromCharCode
7851
-
7852
- ;/*! https://mths.be/punycode v1.4.1 by @mathias */function ST(e){throw new RangeError(wT[e])}function $T(e,t){for(var n=e.length,i=[];n--;)i[n]=t(e[n])
7853
- return i}function MT(e,t){var n=e.split("@"),i=""
7854
- return n.length>1&&(i=n[0]+"@",e=n[1]),i+$T((e=e.replace(yT,".")).split("."),t).join(".")}function _T(e){for(var t,n,i=[],o=0,r=e.length;o<r;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<r?56320==(64512&(n=e.charCodeAt(o++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),o--):i.push(t)
7855
- return i}function AT(e){return $T(e,(function(e){var t=""
7856
- return e>65535&&(t+=CT((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=CT(e)})).join("")}function ET(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function IT(e,t,n){var i=0
7857
- for(e=n?kT(e/pT):e>>1,e+=kT(e/t);e>xT*hT>>1;i+=cT)e=kT(e/xT)
7858
- return kT(i+(xT+1)*e/(e+uT))}function OT(e){var t,n,i,o,r,s,a,l,c,d,h,u=[],p=e.length,f=0,g=gT,m=fT
7859
- for((n=e.lastIndexOf(mT))<0&&(n=0),i=0;i<n;++i)e.charCodeAt(i)>=128&&ST("not-basic"),u.push(e.charCodeAt(i))
7860
- for(o=n>0?n+1:0;o<p;){for(r=f,s=1,a=cT;o>=p&&ST("invalid-input"),((l=(h=e.charCodeAt(o++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:cT)>=cT||l>kT((lT-f)/s))&&ST("overflow"),f+=l*s,!(l<(c=a<=m?dT:a>=m+hT?hT:a-m));a+=cT)s>kT(lT/(d=cT-c))&&ST("overflow"),s*=d
7861
- m=IT(f-r,t=u.length+1,0==r),kT(f/t)>lT-g&&ST("overflow"),g+=kT(f/t),f%=t,u.splice(f++,0,g)}return AT(u)}function TT(e){var t,n,i,o,r,s,a,l,c,d,h,u,p,f,g,m=[]
7862
- for(u=(e=_T(e)).length,t=gT,n=0,r=fT,s=0;s<u;++s)(h=e[s])<128&&m.push(CT(h))
7863
- for(i=o=m.length,o&&m.push(mT);i<u;){for(a=lT,s=0;s<u;++s)(h=e[s])>=t&&h<a&&(a=h)
7864
- for(a-t>kT((lT-n)/(p=i+1))&&ST("overflow"),n+=(a-t)*p,t=a,s=0;s<u;++s)if((h=e[s])<t&&++n>lT&&ST("overflow"),h==t){for(l=n,c=cT;!(l<(d=c<=r?dT:c>=r+hT?hT:c-r));c+=cT)g=l-d,f=cT-d,m.push(CT(ET(d+g%f,0))),l=kT(g/f)
7865
- m.push(CT(ET(l,0))),r=IT(n,p,i==o),n=0,++i}++n,++t}return m.join("")}function RT(e){return MT(e,(function(e){return vT.test(e)?OT(e.slice(4).toLowerCase()):e}))}function DT(e){return MT(e,(function(e){return bT.test(e)?"xn--"+TT(e):e}))}var FT="1.4.1",LT={decode:_T,encode:AT},NT={version:FT,ucs2:LT,toASCII:DT,toUnicode:RT,encode:TT,decode:OT},PT=bE,zT=tI,VT=cI,HT=PI,BT=hO,qT=GO,ZT=aT,jT=xE,UT=vE(Object.freeze({__proto__:null,decode:OT,default:NT,encode:TT,toASCII:DT,toUnicode:RT,ucs2:LT,version:FT})),WT={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},GT=/^(vbscript|javascript|file|data):/,KT=/^data:image\/(gif|png|jpeg|webp);/
7866
- function JT(e){var t=e.trim().toLowerCase()
7867
- return!GT.test(t)||!!KT.test(t)}var XT=["http:","https:","mailto:"]
7868
- function YT(e){var t=jT.parse(e,!0)
7869
- if(t.hostname&&(!t.protocol||XT.indexOf(t.protocol)>=0))try{t.hostname=UT.toASCII(t.hostname)}catch(e){}return jT.encode(jT.format(t))}function QT(e){var t=jT.parse(e,!0)
7870
- if(t.hostname&&(!t.protocol||XT.indexOf(t.protocol)>=0))try{t.hostname=UT.toUnicode(t.hostname)}catch(e){}return jT.decode(jT.format(t),jT.decode.defaultChars+"%")}function eR(e,t){if(!(this instanceof eR))return new eR(e,t)
7871
- t||PT.isString(e)||(t=e||{},e="default"),this.inline=new qT,this.block=new BT,this.core=new HT,this.renderer=new VT,this.linkify=new ZT,this.validateLink=JT,this.normalizeLink=YT,this.normalizeLinkText=QT,this.utils=PT,this.helpers=PT.assign({},zT),this.options={},this.configure(e),t&&this.set(t)}eR.prototype.set=function(e){return PT.assign(this.options,e),this},eR.prototype.configure=function(e){var t,n=this
7872
- if(PT.isString(e)&&!(e=WT[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')
7853
+ return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,sT(this,0)):null},aT.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),oT(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,oT(this),this)},aT.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},aT.prototype.onCompile=function(){}
7854
+ var lT=aT,cT=2147483647,dT=36,hT=1,uT=26,pT=38,fT=700,gT=72,mT=128,vT="-",bT=/^xn--/,yT=/[^\x20-\x7E]/,wT=/[\x2E\u3002\uFF0E\uFF61]/g,xT={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},kT=dT-hT,CT=Math.floor,ST=String.fromCharCode
7855
+
7856
+ ;/*! https://mths.be/punycode v1.4.1 by @mathias */function $T(e){throw new RangeError(xT[e])}function MT(e,t){for(var n=e.length,i=[];n--;)i[n]=t(e[n])
7857
+ return i}function _T(e,t){var n=e.split("@"),i=""
7858
+ return n.length>1&&(i=n[0]+"@",e=n[1]),i+MT((e=e.replace(wT,".")).split("."),t).join(".")}function AT(e){for(var t,n,i=[],o=0,r=e.length;o<r;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<r?56320==(64512&(n=e.charCodeAt(o++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),o--):i.push(t)
7859
+ return i}function ET(e){return MT(e,(function(e){var t=""
7860
+ return e>65535&&(t+=ST((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=ST(e)})).join("")}function IT(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function OT(e,t,n){var i=0
7861
+ for(e=n?CT(e/fT):e>>1,e+=CT(e/t);e>kT*uT>>1;i+=dT)e=CT(e/kT)
7862
+ return CT(i+(kT+1)*e/(e+pT))}function TT(e){var t,n,i,o,r,s,a,l,c,d,h,u=[],p=e.length,f=0,g=mT,m=gT
7863
+ for((n=e.lastIndexOf(vT))<0&&(n=0),i=0;i<n;++i)e.charCodeAt(i)>=128&&$T("not-basic"),u.push(e.charCodeAt(i))
7864
+ for(o=n>0?n+1:0;o<p;){for(r=f,s=1,a=dT;o>=p&&$T("invalid-input"),((l=(h=e.charCodeAt(o++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:dT)>=dT||l>CT((cT-f)/s))&&$T("overflow"),f+=l*s,!(l<(c=a<=m?hT:a>=m+uT?uT:a-m));a+=dT)s>CT(cT/(d=dT-c))&&$T("overflow"),s*=d
7865
+ m=OT(f-r,t=u.length+1,0==r),CT(f/t)>cT-g&&$T("overflow"),g+=CT(f/t),f%=t,u.splice(f++,0,g)}return ET(u)}function RT(e){var t,n,i,o,r,s,a,l,c,d,h,u,p,f,g,m=[]
7866
+ for(u=(e=AT(e)).length,t=mT,n=0,r=gT,s=0;s<u;++s)(h=e[s])<128&&m.push(ST(h))
7867
+ for(i=o=m.length,o&&m.push(vT);i<u;){for(a=cT,s=0;s<u;++s)(h=e[s])>=t&&h<a&&(a=h)
7868
+ for(a-t>CT((cT-n)/(p=i+1))&&$T("overflow"),n+=(a-t)*p,t=a,s=0;s<u;++s)if((h=e[s])<t&&++n>cT&&$T("overflow"),h==t){for(l=n,c=dT;!(l<(d=c<=r?hT:c>=r+uT?uT:c-r));c+=dT)g=l-d,f=dT-d,m.push(ST(IT(d+g%f,0))),l=CT(g/f)
7869
+ m.push(ST(IT(l,0))),r=OT(n,p,i==o),n=0,++i}++n,++t}return m.join("")}function DT(e){return _T(e,(function(e){return bT.test(e)?TT(e.slice(4).toLowerCase()):e}))}function FT(e){return _T(e,(function(e){return yT.test(e)?"xn--"+RT(e):e}))}var LT="1.4.1",NT={decode:AT,encode:ET},PT={version:LT,ucs2:NT,toASCII:FT,toUnicode:DT,encode:RT,decode:TT},zT=yE,VT=nI,HT=dI,BT=zI,qT=uO,ZT=KO,jT=lT,UT=kE,WT=bE(Object.freeze({__proto__:null,decode:TT,default:PT,encode:RT,toASCII:FT,toUnicode:DT,ucs2:NT,version:LT})),GT={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},KT=/^(vbscript|javascript|file|data):/,JT=/^data:image\/(gif|png|jpeg|webp);/
7870
+ function XT(e){var t=e.trim().toLowerCase()
7871
+ return!KT.test(t)||!!JT.test(t)}var YT=["http:","https:","mailto:"]
7872
+ function QT(e){var t=UT.parse(e,!0)
7873
+ if(t.hostname&&(!t.protocol||YT.indexOf(t.protocol)>=0))try{t.hostname=WT.toASCII(t.hostname)}catch(e){}return UT.encode(UT.format(t))}function eR(e){var t=UT.parse(e,!0)
7874
+ if(t.hostname&&(!t.protocol||YT.indexOf(t.protocol)>=0))try{t.hostname=WT.toUnicode(t.hostname)}catch(e){}return UT.decode(UT.format(t),UT.decode.defaultChars+"%")}function tR(e,t){if(!(this instanceof tR))return new tR(e,t)
7875
+ t||zT.isString(e)||(t=e||{},e="default"),this.inline=new ZT,this.block=new qT,this.core=new BT,this.renderer=new HT,this.linkify=new jT,this.validateLink=XT,this.normalizeLink=QT,this.normalizeLinkText=eR,this.utils=zT,this.helpers=zT.assign({},VT),this.options={},this.configure(e),t&&this.set(t)}tR.prototype.set=function(e){return zT.assign(this.options,e),this},tR.prototype.configure=function(e){var t,n=this
7876
+ if(zT.isString(e)&&!(e=GT[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')
7873
7877
  if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty")
7874
- return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},eR.prototype.enable=function(e,t){var n=[]
7878
+ return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},tR.prototype.enable=function(e,t){var n=[]
7875
7879
  Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0))
7876
7880
  var i=e.filter((function(e){return n.indexOf(e)<0}))
7877
7881
  if(i.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i)
7878
- return this},eR.prototype.disable=function(e,t){var n=[]
7882
+ return this},tR.prototype.disable=function(e,t){var n=[]
7879
7883
  Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0))
7880
7884
  var i=e.filter((function(e){return n.indexOf(e)<0}))
7881
7885
  if(i.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i)
7882
- return this},eR.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1))
7883
- return e.apply(e,t),this},eR.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String")
7886
+ return this},tR.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1))
7887
+ return e.apply(e,t),this},tR.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String")
7884
7888
  var n=new this.core.State(e,this,t)
7885
- return this.core.process(n),n.tokens},eR.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},eR.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t)
7886
- return n.inlineMode=!0,this.core.process(n),n.tokens},eR.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)}
7887
- var tR=mE(eR)
7888
- const nR=new sw({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:()=>["p",0]},blockquote:{content:"block+",group:"block",parseDOM:[{tag:"blockquote"}],toDOM:()=>["blockquote",0]},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>["div",["hr"]]},heading:{attrs:{level:{default:1}},content:"(text | image)*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM:e=>["h"+e.attrs.level,0]},code_block:{content:"text*",group:"block",code:!0,defining:!0,marks:"",attrs:{params:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:e=>({params:e.getAttribute("data-params")||""})}],toDOM:e=>["pre",e.attrs.params?{"data-params":e.attrs.params}:{},["code",0]]},ordered_list:{content:"list_item+",group:"block",attrs:{order:{default:1},tight:{default:!1}},parseDOM:[{tag:"ol",getAttrs:e=>({order:e.hasAttribute("start")?+e.getAttribute("start"):1,tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ol",{start:1==e.attrs.order?null:e.attrs.order,"data-tight":e.attrs.tight?"true":null},0]},bullet_list:{content:"list_item+",group:"block",attrs:{tight:{default:!1}},parseDOM:[{tag:"ul",getAttrs:e=>({tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ul",{"data-tight":e.attrs.tight?"true":null},0]},list_item:{content:"block+",defining:!0,parseDOM:[{tag:"li"}],toDOM:()=>["li",0]},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs:e=>({src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")})}],toDOM:e=>["img",e.attrs]},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]}},marks:{em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>"em"==e.type.name}],toDOM:()=>["em"]},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!=e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>"strong"==e.type.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM:()=>["strong"]},link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>({href:e.getAttribute("href"),title:e.getAttribute("title")})}],toDOM:e=>["a",e.attrs]},code:{parseDOM:[{tag:"code"}],toDOM:()=>["code"]}}})
7889
- class iR{constructor(e,t){this.schema=e,this.tokenHandlers=t,this.stack=[{type:e.topNodeType,attrs:null,content:[],marks:ky.none}]}top(){return this.stack[this.stack.length-1]}push(e){this.stack.length&&this.top().content.push(e)}addText(e){if(!e)return
7889
+ return this.core.process(n),n.tokens},tR.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},tR.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t)
7890
+ return n.inlineMode=!0,this.core.process(n),n.tokens},tR.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)}
7891
+ var nR=vE(tR)
7892
+ const iR=new sw({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:()=>["p",0]},blockquote:{content:"block+",group:"block",parseDOM:[{tag:"blockquote"}],toDOM:()=>["blockquote",0]},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>["div",["hr"]]},heading:{attrs:{level:{default:1}},content:"(text | image)*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM:e=>["h"+e.attrs.level,0]},code_block:{content:"text*",group:"block",code:!0,defining:!0,marks:"",attrs:{params:{default:""}},parseDOM:[{tag:"pre",preserveWhitespace:"full",getAttrs:e=>({params:e.getAttribute("data-params")||""})}],toDOM:e=>["pre",e.attrs.params?{"data-params":e.attrs.params}:{},["code",0]]},ordered_list:{content:"list_item+",group:"block",attrs:{order:{default:1},tight:{default:!1}},parseDOM:[{tag:"ol",getAttrs:e=>({order:e.hasAttribute("start")?+e.getAttribute("start"):1,tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ol",{start:1==e.attrs.order?null:e.attrs.order,"data-tight":e.attrs.tight?"true":null},0]},bullet_list:{content:"list_item+",group:"block",attrs:{tight:{default:!1}},parseDOM:[{tag:"ul",getAttrs:e=>({tight:e.hasAttribute("data-tight")})}],toDOM:e=>["ul",{"data-tight":e.attrs.tight?"true":null},0]},list_item:{content:"block+",defining:!0,parseDOM:[{tag:"li"}],toDOM:()=>["li",0]},text:{group:"inline"},image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs:e=>({src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")})}],toDOM:e=>["img",e.attrs]},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]}},marks:{em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>"em"==e.type.name}],toDOM:()=>["em"]},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!=e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>"strong"==e.type.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM:()=>["strong"]},link:{attrs:{href:{},title:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>({href:e.getAttribute("href"),title:e.getAttribute("title")})}],toDOM:e=>["a",e.attrs]},code:{parseDOM:[{tag:"code"}],toDOM:()=>["code"]}}})
7893
+ class oR{constructor(e,t){this.schema=e,this.tokenHandlers=t,this.stack=[{type:e.topNodeType,attrs:null,content:[],marks:ky.none}]}top(){return this.stack[this.stack.length-1]}push(e){this.stack.length&&this.top().content.push(e)}addText(e){if(!e)return
7890
7894
  let t,n=this.top(),i=n.content,o=i[i.length-1],r=this.schema.text(e,n.marks)
7891
7895
  o&&(t=function(e,t){if(e.isText&&t.isText&&ky.sameSet(e.marks,t.marks))return e.withText(e.text+t.text)}(o,r))?i[i.length-1]=t:i.push(r)}openMark(e){let t=this.top()
7892
7896
  t.marks=e.addToSet(t.marks)}closeMark(e){let t=this.top()
@@ -7894,31 +7898,31 @@ t.marks=e.removeFromSet(t.marks)}parseTokens(e){for(let t=0;t<e.length;t++){let
7894
7898
  if(!i)throw new Error("Token type `"+n.type+"` not supported by Markdown parser")
7895
7899
  i(this,n,e,t)}}addNode(e,t,n){let i=this.top(),o=e.createAndFill(t,n,i?i.marks:[])
7896
7900
  return o?(this.push(o),o):null}openNode(e,t){this.stack.push({type:e,attrs:t,content:[],marks:ky.none})}closeNode(){let e=this.stack.pop()
7897
- return this.addNode(e.type,e.attrs,e.content)}}function oR(e,t,n,i){return e.getAttrs?e.getAttrs(t,n,i):e.attrs instanceof Function?e.attrs(t):e.attrs}function rR(e,t){return e.noCloseToken||"code_inline"==t||"code_block"==t||"fence"==t}function sR(e){return"\n"==e[e.length-1]?e.slice(0,e.length-1):e}function aR(){}class lR{constructor(e,t,n){this.schema=e,this.tokenizer=t,this.tokens=n,this.tokenHandlers=function(e,t){let n=Object.create(null)
7901
+ return this.addNode(e.type,e.attrs,e.content)}}function rR(e,t,n,i){return e.getAttrs?e.getAttrs(t,n,i):e.attrs instanceof Function?e.attrs(t):e.attrs}function sR(e,t){return e.noCloseToken||"code_inline"==t||"code_block"==t||"fence"==t}function aR(e){return"\n"==e[e.length-1]?e.slice(0,e.length-1):e}function lR(){}class cR{constructor(e,t,n){this.schema=e,this.tokenizer=t,this.tokens=n,this.tokenHandlers=function(e,t){let n=Object.create(null)
7898
7902
  for(let i in t){let o=t[i]
7899
7903
  if(o.block){let t=e.nodeType(o.block)
7900
- rR(o,i)?n[i]=(e,n,i,r)=>{e.openNode(t,oR(o,n,i,r)),e.addText(sR(n.content)),e.closeNode()}:(n[i+"_open"]=(e,n,i,r)=>e.openNode(t,oR(o,n,i,r)),n[i+"_close"]=e=>e.closeNode())}else if(o.node){let t=e.nodeType(o.node)
7901
- n[i]=(e,n,i,r)=>e.addNode(t,oR(o,n,i,r))}else if(o.mark){let t=e.marks[o.mark]
7902
- rR(o,i)?n[i]=(e,n,i,r)=>{e.openMark(t.create(oR(o,n,i,r))),e.addText(sR(n.content)),e.closeMark(t)}:(n[i+"_open"]=(e,n,i,r)=>e.openMark(t.create(oR(o,n,i,r))),n[i+"_close"]=e=>e.closeMark(t))}else{if(!o.ignore)throw new RangeError("Unrecognized parsing spec "+JSON.stringify(o))
7903
- rR(o,i)?n[i]=aR:(n[i+"_open"]=aR,n[i+"_close"]=aR)}}return n.text=(e,t)=>e.addText(t.content),n.inline=(e,t)=>e.parseTokens(t.children),n.softbreak=n.softbreak||(e=>e.addText(" ")),n}(e,n)}parse(e,t={}){let n,i=new iR(this.schema,this.tokenHandlers)
7904
+ sR(o,i)?n[i]=(e,n,i,r)=>{e.openNode(t,rR(o,n,i,r)),e.addText(aR(n.content)),e.closeNode()}:(n[i+"_open"]=(e,n,i,r)=>e.openNode(t,rR(o,n,i,r)),n[i+"_close"]=e=>e.closeNode())}else if(o.node){let t=e.nodeType(o.node)
7905
+ n[i]=(e,n,i,r)=>e.addNode(t,rR(o,n,i,r))}else if(o.mark){let t=e.marks[o.mark]
7906
+ sR(o,i)?n[i]=(e,n,i,r)=>{e.openMark(t.create(rR(o,n,i,r))),e.addText(aR(n.content)),e.closeMark(t)}:(n[i+"_open"]=(e,n,i,r)=>e.openMark(t.create(rR(o,n,i,r))),n[i+"_close"]=e=>e.closeMark(t))}else{if(!o.ignore)throw new RangeError("Unrecognized parsing spec "+JSON.stringify(o))
7907
+ sR(o,i)?n[i]=lR:(n[i+"_open"]=lR,n[i+"_close"]=lR)}}return n.text=(e,t)=>e.addText(t.content),n.inline=(e,t)=>e.parseTokens(t.children),n.softbreak=n.softbreak||(e=>e.addText(" ")),n}(e,n)}parse(e,t={}){let n,i=new oR(this.schema,this.tokenHandlers)
7904
7908
  i.parseTokens(this.tokenizer.parse(e,t))
7905
7909
  do{n=i.closeNode()}while(i.stack.length)
7906
- return n||this.schema.topNodeType.createAndFill()}}function cR(e,t){for(;++t<e.length;)if("list_item_open"!=e[t].type)return e[t].hidden
7907
- return!1}const dR=new lR(nR,tR("commonmark",{html:!1}),{blockquote:{block:"blockquote"},paragraph:{block:"paragraph"},list_item:{block:"list_item"},bullet_list:{block:"bullet_list",getAttrs:(e,t,n)=>({tight:cR(t,n)})},ordered_list:{block:"ordered_list",getAttrs:(e,t,n)=>({order:+e.attrGet("start")||1,tight:cR(t,n)})},heading:{block:"heading",getAttrs:e=>({level:+e.tag.slice(1)})},code_block:{block:"code_block",noCloseToken:!0},fence:{block:"code_block",getAttrs:e=>({params:e.info||""}),noCloseToken:!0},hr:{node:"horizontal_rule"},image:{node:"image",getAttrs:e=>({src:e.attrGet("src"),title:e.attrGet("title")||null,alt:e.children[0]&&e.children[0].content||null})},hardbreak:{node:"hard_break"},em:{mark:"em"},strong:{mark:"strong"},link:{mark:"link",getAttrs:e=>({href:e.attrGet("href"),title:e.attrGet("title")||null})},code_inline:{mark:"code",noCloseToken:!0}})
7908
- class hR{constructor(e,t,n={}){this.nodes=e,this.marks=t,this.options=n}serialize(e,t={}){t=Object.assign({},this.options,t)
7909
- let n=new fR(this.nodes,this.marks,t)
7910
- return n.renderContent(e),n.out}}const uR=new hR({blockquote(e,t){e.wrapBlock("> ",null,t,(()=>e.renderContent(t)))},code_block(e,t){const n=t.textContent.match(/`{3,}/gm),i=n?n.sort().slice(-1)[0]+"`":"```"
7910
+ return n||this.schema.topNodeType.createAndFill()}}function dR(e,t){for(;++t<e.length;)if("list_item_open"!=e[t].type)return e[t].hidden
7911
+ return!1}const hR=new cR(iR,nR("commonmark",{html:!1}),{blockquote:{block:"blockquote"},paragraph:{block:"paragraph"},list_item:{block:"list_item"},bullet_list:{block:"bullet_list",getAttrs:(e,t,n)=>({tight:dR(t,n)})},ordered_list:{block:"ordered_list",getAttrs:(e,t,n)=>({order:+e.attrGet("start")||1,tight:dR(t,n)})},heading:{block:"heading",getAttrs:e=>({level:+e.tag.slice(1)})},code_block:{block:"code_block",noCloseToken:!0},fence:{block:"code_block",getAttrs:e=>({params:e.info||""}),noCloseToken:!0},hr:{node:"horizontal_rule"},image:{node:"image",getAttrs:e=>({src:e.attrGet("src"),title:e.attrGet("title")||null,alt:e.children[0]&&e.children[0].content||null})},hardbreak:{node:"hard_break"},em:{mark:"em"},strong:{mark:"strong"},link:{mark:"link",getAttrs:e=>({href:e.attrGet("href"),title:e.attrGet("title")||null})},code_inline:{mark:"code",noCloseToken:!0}})
7912
+ class uR{constructor(e,t,n={}){this.nodes=e,this.marks=t,this.options=n}serialize(e,t={}){t=Object.assign({},this.options,t)
7913
+ let n=new gR(this.nodes,this.marks,t)
7914
+ return n.renderContent(e),n.out}}const pR=new uR({blockquote(e,t){e.wrapBlock("> ",null,t,(()=>e.renderContent(t)))},code_block(e,t){const n=t.textContent.match(/`{3,}/gm),i=n?n.sort().slice(-1)[0]+"`":"```"
7911
7915
  e.write(i+(t.attrs.params||"")+"\n"),e.text(t.textContent,!1),e.write("\n"),e.write(i),e.closeBlock(t)},heading(e,t){e.write(e.repeat("#",t.attrs.level)+" "),e.renderInline(t),e.closeBlock(t)},horizontal_rule(e,t){e.write(t.attrs.markup||"---"),e.closeBlock(t)},bullet_list(e,t){e.renderList(t," ",(()=>(t.attrs.bullet||"*")+" "))},ordered_list(e,t){let n=t.attrs.order||1,i=String(n+t.childCount-1).length,o=e.repeat(" ",i+2)
7912
7916
  e.renderList(t,o,(t=>{let o=String(n+t)
7913
7917
  return e.repeat(" ",i-o.length)+o+". "}))},list_item(e,t){e.renderContent(t)},paragraph(e,t){e.renderInline(t),e.closeBlock(t)},image(e,t){e.write("!["+e.esc(t.attrs.alt||"")+"]("+t.attrs.src.replace(/[\(\)]/g,"\\$&")+(t.attrs.title?' "'+t.attrs.title.replace(/"/g,'\\"')+'"':"")+")")},hard_break(e,t,n,i){for(let o=i+1;o<n.childCount;o++)if(n.child(o).type!=t.type)return void e.write("\\\n")},text(e,t){e.text(t.text,!e.inAutolink)}},{em:{open:"*",close:"*",mixable:!0,expelEnclosingWhitespace:!0},strong:{open:"**",close:"**",mixable:!0,expelEnclosingWhitespace:!0},link:{open:(e,t,n,i)=>(e.inAutolink=function(e,t,n){if(e.attrs.title||!/^\w+:/.test(e.attrs.href))return!1
7914
7918
  let i=t.child(n)
7915
7919
  return!(!i.isText||i.text!=e.attrs.href||i.marks[i.marks.length-1]!=e)&&(n==t.childCount-1||!e.isInSet(t.child(n+1).marks))}(t,n,i),e.inAutolink?"<":"["),close(e,t,n,i){let{inAutolink:o}=e
7916
- return e.inAutolink=void 0,o?">":"]("+t.attrs.href.replace(/[\(\)"]/g,"\\$&")+(t.attrs.title?` "${t.attrs.title.replace(/"/g,'\\"')}"`:"")+")"},mixable:!0},code:{open:(e,t,n,i)=>pR(n.child(i),-1),close:(e,t,n,i)=>pR(n.child(i-1),1),escape:!1}})
7917
- function pR(e,t){let n,i=/`+/g,o=0
7920
+ return e.inAutolink=void 0,o?">":"]("+t.attrs.href.replace(/[\(\)"]/g,"\\$&")+(t.attrs.title?` "${t.attrs.title.replace(/"/g,'\\"')}"`:"")+")"},mixable:!0},code:{open:(e,t,n,i)=>fR(n.child(i),-1),close:(e,t,n,i)=>fR(n.child(i-1),1),escape:!1}})
7921
+ function fR(e,t){let n,i=/`+/g,o=0
7918
7922
  if(e.isText)for(;n=i.exec(e.text);)o=Math.max(o,n[0].length)
7919
7923
  let r=o>0&&t>0?" `":"`"
7920
7924
  for(let e=0;e<o;e++)r+="`"
7921
- return o>0&&t<0&&(r+=" "),r}class fR{constructor(e,t,n){this.nodes=e,this.marks=t,this.options=n,this.delim="",this.out="",this.closed=null,this.inAutolink=void 0,this.atBlockStart=!1,this.inTightList=!1,void 0===this.options.tightLists&&(this.options.tightLists=!1),void 0===this.options.hardBreakNodeName&&(this.options.hardBreakNodeName="hard_break")}flushClose(e=2){if(this.closed){if(this.atBlank()||(this.out+="\n"),e>1){let t=this.delim,n=/\s+$/.exec(t)
7925
+ return o>0&&t<0&&(r+=" "),r}class gR{constructor(e,t,n){this.nodes=e,this.marks=t,this.options=n,this.delim="",this.out="",this.closed=null,this.inAutolink=void 0,this.atBlockStart=!1,this.inTightList=!1,void 0===this.options.tightLists&&(this.options.tightLists=!1),void 0===this.options.hardBreakNodeName&&(this.options.hardBreakNodeName="hard_break")}flushClose(e=2){if(this.closed){if(this.atBlank()||(this.out+="\n"),e>1){let t=this.delim,n=/\s+$/.exec(t)
7922
7926
  n&&(t=t.slice(0,t.length-n[0].length))
7923
7927
  for(let n=1;n<e;n++)this.out+=t+"\n"}this.closed=null}}wrapBlock(e,t,n,i){let o=this.delim
7924
7928
  this.write(null!=t?t:e),this.delim+=e,i(),this.delim=o,this.closeBlock(n)}atBlank(){return/(^|\n)$/.test(this.out)}ensureNewLine(){this.atBlank()||(this.out+="\n")}write(e){this.flushClose(),this.delim&&this.atBlank()&&(this.out+=this.delim),e&&(this.out+=e)}closeBlock(e){this.closed=e}text(e,t=!0){let n=e.split("\n")
@@ -7951,26 +7955,26 @@ this.inTightList=i,e.forEach(((o,r,s)=>{s&&i&&this.flushClose(1),this.wrapBlock(
7951
7955
  return t[0]+e+t[1]}repeat(e,t){let n=""
7952
7956
  for(let i=0;i<t;i++)n+=e
7953
7957
  return n}markString(e,t,n,i){let o=this.marks[e.type.name],r=t?o.open:o.close
7954
- return"string"==typeof r?r:r(this,e,n,i)}getEnclosingWhitespace(e){return{leading:(e.match(/^(\s+)/)||[void 0])[0],trailing:(e.match(/(\s+)$/)||[void 0])[0]}}}var gR,mR
7955
- class vR{static parseMarkdownToDOM(e){const t=this.markdownParser.parse(e)
7956
- return null===t?document.createDocumentFragment():this.domSerializer.serializeFragment(t.content)}static initializeMarkdownParser(){const e=dR.tokenizer.configure("zero").enable(["emphasis","list","autolink","escape"])
7957
- return e.validateLink=e=>/^https?:\/\//i.test(e),e.normalizeLinkText=e=>e,new lR(this.updatedSchema,e,dR.tokens)}static getSchemaWithLinkConfiguration(){return new sw({nodes:nR.spec.nodes,marks:{link:{attrs:{href:{},rel:{default:"noopener noreferrer"}},inclusive:!1,excludes:"_",toDOM:e=>[bd,{href:e.attrs.href,rel:e.attrs.rel}]},em:nR.spec.marks.get("em"),strong:nR.spec.marks.get("strong")}})}}gR=vR,vR.updatedSchema=gR.getSchemaWithLinkConfiguration(),vR.markdownParser=gR.initializeMarkdownParser(),vR.domSerializer=bw.fromSchema(gR.updatedSchema)
7958
- class bR{static serializeDOMToMarkdown(e){return this.markdownSerializer.serialize(e)}static initializeMarkdownSerializerForTipTap(){const e={bulletList:uR.nodes.bullet_list,listItem:uR.nodes.list_item,orderedList:function(e,t){const n=t.attrs.start||1,i=String(n+t.childCount-1).length,o=e.repeat(" ",i+2)
7958
+ return"string"==typeof r?r:r(this,e,n,i)}getEnclosingWhitespace(e){return{leading:(e.match(/^(\s+)/)||[void 0])[0],trailing:(e.match(/(\s+)$/)||[void 0])[0]}}}var mR,vR
7959
+ class bR{static parseMarkdownToDOM(e){const t=this.markdownParser.parse(e)
7960
+ return null===t?document.createDocumentFragment():this.domSerializer.serializeFragment(t.content)}static initializeMarkdownParser(){const e=hR.tokenizer.configure("zero").enable(["emphasis","list","escape","autolink","newline"])
7961
+ return e.validateLink=e=>/^https?:\/\//i.test(e),e.normalizeLinkText=e=>e,new cR(this.updatedSchema,e,hR.tokens)}static getSchemaWithLinkConfiguration(){return new sw({nodes:iR.spec.nodes,marks:{link:{attrs:{href:{},rel:{default:"noopener noreferrer"}},inclusive:!1,excludes:"_",toDOM:e=>[bd,{href:e.attrs.href,rel:e.attrs.rel}]},em:iR.spec.marks.get("em"),strong:iR.spec.marks.get("strong")}})}}mR=bR,bR.updatedSchema=mR.getSchemaWithLinkConfiguration(),bR.markdownParser=mR.initializeMarkdownParser(),bR.domSerializer=bw.fromSchema(mR.updatedSchema)
7962
+ class yR{static serializeDOMToMarkdown(e){return this.markdownSerializer.serialize(e)}static initializeMarkdownSerializerForTipTap(){const e={bulletList:pR.nodes.bullet_list,listItem:pR.nodes.list_item,orderedList:function(e,t){const n=t.attrs.start||1,i=String(n+t.childCount-1).length,o=e.repeat(" ",i+2)
7959
7963
  e.renderList(t,o,(t=>{const o=String(n+t)
7960
- return`${e.repeat(" ",i-o.length)+o}. `}))},doc:uR.nodes.doc,paragraph:uR.nodes.paragraph,text:uR.nodes.text},t={italic:uR.marks.em,bold:uR.marks.strong,link:{open:"<",close:">",escape:!1,expelEnclosingWhitespace:!0}}
7961
- return new hR(e,t)}}mR=bR,bR.markdownSerializer=mR.initializeMarkdownSerializerForTipTap()
7962
- class yR extends Nt{constructor(){super(...arguments),this.editor=this.createEditor(),this.tiptapEditor=this.createTiptapEditor(),this.disabled=!1,this.footerHidden=!1,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1,this.xmlSerializer=new XMLSerializer}get empty(){return 0===this.tiptapEditor.state.doc.textContent.trim().length}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.tiptapEditor.setEditable(!this.disabled),this.setEditorTabIndex(),this.editor.setAttribute("aria-disabled",this.disabled?"true":"false")}placeholderChanged(){this.getTipTapExtension("placeholder").options.placeholder=this.placeholder??"",this.tiptapEditor.view.dispatch(this.tiptapEditor.state.tr),this.queueUpdateScrollbarWidth()}ariaLabelChanged(){null!==this.ariaLabel&&void 0!==this.ariaLabel?this.editor.setAttribute("aria-label",this.ariaLabel):this.editor.removeAttribute("aria-label")}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)}setMarkdown(e){const t=this.getHtmlContent(e)
7963
- this.tiptapEditor.commands.setContent(t)}getMarkdown(){return bR.serializeDOMToMarkdown(this.tiptapEditor.state.doc)}stopEventPropagation(e){return e.stopPropagation(),!1}createEditor(){const e=document.createElement("div")
7964
+ return`${e.repeat(" ",i-o.length)+o}. `}))},doc:pR.nodes.doc,paragraph:pR.nodes.paragraph,text:pR.nodes.text,hardBreak:pR.nodes.hard_break},t={italic:pR.marks.em,bold:pR.marks.strong,link:{open:"<",close:">",escape:!1,expelEnclosingWhitespace:!0}}
7965
+ return new uR(e,t)}}vR=yR,yR.markdownSerializer=vR.initializeMarkdownSerializerForTipTap()
7966
+ class wR extends Nt{constructor(){super(...arguments),this.editor=this.createEditor(),this.tiptapEditor=this.createTiptapEditor(),this.disabled=!1,this.footerHidden=!1,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1,this.xmlSerializer=new XMLSerializer}get empty(){return 0===this.tiptapEditor.state.doc.textContent.trim().length}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.tiptapEditor.setEditable(!this.disabled),this.setEditorTabIndex(),this.editor.setAttribute("aria-disabled",this.disabled?"true":"false")}placeholderChanged(){this.getTipTapExtension("placeholder").options.placeholder=this.placeholder??"",this.tiptapEditor.view.dispatch(this.tiptapEditor.state.tr),this.queueUpdateScrollbarWidth()}ariaLabelChanged(){null!==this.ariaLabel&&void 0!==this.ariaLabel?this.editor.setAttribute("aria-label",this.ariaLabel):this.editor.removeAttribute("aria-label")}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)}setMarkdown(e){const t=this.getHtmlContent(e)
7967
+ this.tiptapEditor.commands.setContent(t)}getMarkdown(){return yR.serializeDOMToMarkdown(this.tiptapEditor.state.doc)}stopEventPropagation(e){return e.stopPropagation(),!1}createEditor(){const e=document.createElement("div")
7964
7968
  return e.className="editor",e.setAttribute("aria-multiline","true"),e.setAttribute("role","textbox"),e.setAttribute("aria-disabled","false"),e}createTiptapEditor(){const e=this.getCustomLinkExtension()
7965
- return new vM({element:this.editor,extensions:[TM,XA,QA,OM,JA,UA,_M,i_,YM,YA.configure({placeholder:"",showOnlyWhenEditable:!1}),e.configure({HTMLAttributes:{rel:"noopener noreferrer",target:null},autolink:!0,openOnClick:!1,linkOnPaste:!1,validate:e=>/^https?:\/\//i.test(e)})]})}getCustomLinkExtension(){return jA.extend({excludes:"_",inclusive:!1,parseHTML:()=>[{tag:bd}],renderHTML:({HTMLAttributes:e})=>["a",e]})}getHtmlContent(e){const t=vR.parseMarkdownToDOM(e)
7969
+ return new vM({element:this.editor,extensions:[TM,XA,QA,OM,JA,UA,_M,i_,YM,YA.configure({placeholder:"",showOnlyWhenEditable:!1}),eE,e.configure({HTMLAttributes:{rel:"noopener noreferrer",target:null},autolink:!0,openOnClick:!1,linkOnPaste:!1,validate:e=>/^https?:\/\//i.test(e)})]})}getCustomLinkExtension(){return jA.extend({excludes:"_",inclusive:!1,parseHTML:()=>[{tag:bd}],renderHTML:({HTMLAttributes:e})=>["a",e]})}getHtmlContent(e){const t=bR.parseMarkdownToDOM(e)
7966
7970
  return this.xmlSerializer.serializeToString(t)}bindEditorTransactionEvent(){this.tiptapEditor.on("transaction",(()=>{this.updateEditorButtonsState()}))}unbindEditorTransactionEvent(){this.tiptapEditor.off("transaction")}updateEditorButtonsState(){const{extensionManager:e,state:t}=this.tiptapEditor,{extensions:n}=e,{selection:i}=t,o=eM((e=>sM(e.type.name,n)))(i)
7967
- this.boldButton.checked=this.tiptapEditor.isActive("bold"),this.italicsButton.checked=this.tiptapEditor.isActive("italic"),this.bulletListButton.checked=o?.node.type.name===fE,this.numberedListButton.checked=o?.node.type.name===gE}keyActivatesButton(e){switch(e.key){case" ":case Gs:return!0
7968
- default:return!1}}unbindEditorUpdateEvent(){this.tiptapEditor.off("update")}bindEditorUpdateEvent(){this.tiptapEditor.on("update",(()=>{this.$emit("input"),this.queueUpdateScrollbarWidth()}))}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"}}})}}e([se({mode:"boolean"})],yR.prototype,"disabled",void 0),e([se({attribute:"footer-hidden",mode:"boolean"})],yR.prototype,"footerHidden",void 0),e([se({attribute:"error-visible",mode:"boolean"})],yR.prototype,"errorVisible",void 0),e([se({attribute:"error-text"})],yR.prototype,"errorText",void 0),e([se],yR.prototype,"placeholder",void 0),e([m],yR.prototype,"boldButton",void 0),e([m],yR.prototype,"italicsButton",void 0),e([m],yR.prototype,"bulletListButton",void 0),e([m],yR.prototype,"numberedListButton",void 0),e([m],yR.prototype,"scrollbarWidth",void 0),Vt(yR,hn)
7969
- const wR=yR.compose({baseName:"rich-text-editor",template:uE,styles:pE})
7970
- mi.getOrCreate().withPrefix("nimble").register(wR()),mi.tagFor(yR)
7971
- const xR=W`
7971
+ this.boldButton.checked=this.tiptapEditor.isActive("bold"),this.italicsButton.checked=this.tiptapEditor.isActive("italic"),this.bulletListButton.checked=o?.node.type.name===gE,this.numberedListButton.checked=o?.node.type.name===mE}keyActivatesButton(e){switch(e.key){case" ":case Gs:return!0
7972
+ default:return!1}}unbindEditorUpdateEvent(){this.tiptapEditor.off("update")}bindEditorUpdateEvent(){this.tiptapEditor.on("update",(()=>{this.$emit("input"),this.queueUpdateScrollbarWidth()}))}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"}}})}}e([se({mode:"boolean"})],wR.prototype,"disabled",void 0),e([se({attribute:"footer-hidden",mode:"boolean"})],wR.prototype,"footerHidden",void 0),e([se({attribute:"error-visible",mode:"boolean"})],wR.prototype,"errorVisible",void 0),e([se({attribute:"error-text"})],wR.prototype,"errorText",void 0),e([se],wR.prototype,"placeholder",void 0),e([m],wR.prototype,"boldButton",void 0),e([m],wR.prototype,"italicsButton",void 0),e([m],wR.prototype,"bulletListButton",void 0),e([m],wR.prototype,"numberedListButton",void 0),e([m],wR.prototype,"scrollbarWidth",void 0),Vt(wR,hn)
7973
+ const xR=wR.compose({baseName:"rich-text-editor",template:pE,styles:fE})
7974
+ mi.getOrCreate().withPrefix("nimble").register(xR()),mi.tagFor(wR)
7975
+ const kR=W`
7972
7976
  <div ${De("viewer")} class="viewer"></div>
7973
- `,kR=ye`
7977
+ `,CR=ye`
7974
7978
  ${Eo("flex")}
7975
7979
 
7976
7980
  :host {
@@ -8008,11 +8012,11 @@ const xR=W`
8008
8012
  display: none;
8009
8013
  }
8010
8014
  `
8011
- class CR extends Nt{constructor(){super(...arguments),this.markdown=""}connectedCallback(){super.connectedCallback(),this.updateView()}markdownChanged(){this.$fastController.isConnected&&this.updateView()}updateView(){if(this.markdown){const e=vR.parseMarkdownToDOM(this.markdown)
8012
- this.viewer.replaceChildren(e)}else this.viewer.innerHTML=""}}e([m],CR.prototype,"markdown",void 0)
8013
- const SR=CR.compose({baseName:"rich-text-viewer",template:xR,styles:kR})
8014
- mi.getOrCreate().withPrefix("nimble").register(SR()),mi.tagFor(CR)
8015
- const $R=ye`
8015
+ class SR extends Nt{constructor(){super(...arguments),this.markdown=""}connectedCallback(){super.connectedCallback(),this.updateView()}markdownChanged(){this.$fastController.isConnected&&this.updateView()}updateView(){if(this.markdown){const e=bR.parseMarkdownToDOM(this.markdown)
8016
+ this.viewer.replaceChildren(e)}else this.viewer.innerHTML=""}}e([m],SR.prototype,"markdown",void 0)
8017
+ const $R=SR.compose({baseName:"rich-text-viewer",template:kR,styles:CR})
8018
+ mi.getOrCreate().withPrefix("nimble").register($R()),mi.tagFor(SR)
8019
+ const MR=ye`
8016
8020
  ${Gf}
8017
8021
  ${Kf}
8018
8022
 
@@ -8038,9 +8042,9 @@ const $R=ye`
8038
8042
  padding-bottom: 0;
8039
8043
  }
8040
8044
  `))
8041
- class MR extends Gi{constructor(){super(...arguments),this.appearance=jf,this.errorVisible=!1}setPositioning(){this.$fastController.isConnected&&(super.setPositioning(),this.updateListboxMaxHeightCssVariable())}slottedOptionsChanged(e,t){const n=this.value
8042
- 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],MR.prototype,"appearance",void 0),e([se({attribute:"error-text"})],MR.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],MR.prototype,"errorVisible",void 0),e([m],MR.prototype,"region",void 0)
8043
- const _R=MR.compose({baseName:"select",baseClass:Gi,template:(e,t)=>W`
8045
+ class _R extends Gi{constructor(){super(...arguments),this.appearance=jf,this.errorVisible=!1}setPositioning(){this.$fastController.isConnected&&(super.setPositioning(),this.updateListboxMaxHeightCssVariable())}slottedOptionsChanged(e,t){const n=this.value
8046
+ 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],_R.prototype,"appearance",void 0),e([se({attribute:"error-text"})],_R.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],_R.prototype,"errorVisible",void 0),e([m],_R.prototype,"region",void 0)
8047
+ const AR=_R.compose({baseName:"select",baseClass:Gi,template:(e,t)=>W`
8044
8048
  <template
8045
8049
  class="${e=>[e.collapsible&&"collapsible",e.collapsible&&e.open&&"open",e.disabled&&"disabled",e.collapsible&&e.position].filter(Boolean).join(" ")}"
8046
8050
  aria-activedescendant="${e=>e.ariaActiveDescendant}"
@@ -8104,15 +8108,15 @@ const _R=MR.compose({baseName:"select",baseClass:Gi,template:(e,t)=>W`
8104
8108
  </div>
8105
8109
  </${Ud}>
8106
8110
  </template>
8107
- `,styles:$R,indicator:oh.data,end:W`
8111
+ `,styles:MR,indicator:oh.data,end:W`
8108
8112
  <${af}
8109
8113
  severity="error"
8110
8114
  class="error-icon"
8111
8115
  ></${af}>
8112
8116
  ${Hf}
8113
8117
  `})
8114
- mi.getOrCreate().withPrefix("nimble").register(_R()),mi.tagFor(MR)
8115
- const AR=ye`
8118
+ mi.getOrCreate().withPrefix("nimble").register(AR()),mi.tagFor(_R)
8119
+ const ER=ye`
8116
8120
  ${Eo("inline-flex")}
8117
8121
 
8118
8122
  :host {
@@ -8264,18 +8268,18 @@ const AR=ye`
8264
8268
  :host([appearance='accent']) {
8265
8269
  --ni-private-spinner-bits-background-color: ${hr};
8266
8270
  }
8267
- `)),ER=W`
8271
+ `)),IR=W`
8268
8272
  <template role="progressbar">
8269
8273
  <div class="container">
8270
8274
  <div class="bit1"></div>
8271
8275
  <div class="bit2"></div>
8272
8276
  </div>
8273
8277
  </template>
8274
- `,IR={default:void 0,accent:"accent"}
8275
- class OR extends Nt{constructor(){super(...arguments),this.appearance=IR.default}}e([se],OR.prototype,"appearance",void 0)
8276
- const TR=OR.compose({baseName:"spinner",template:ER,styles:AR})
8277
- mi.getOrCreate().withPrefix("nimble").register(TR())
8278
- const RR=mi.tagFor(OR),DR=ye`
8278
+ `,OR={default:void 0,accent:"accent"}
8279
+ class TR extends Nt{constructor(){super(...arguments),this.appearance=OR.default}}e([se],TR.prototype,"appearance",void 0)
8280
+ const RR=TR.compose({baseName:"spinner",template:IR,styles:ER})
8281
+ mi.getOrCreate().withPrefix("nimble").register(RR())
8282
+ const DR=mi.tagFor(TR),FR=ye`
8279
8283
  ${Eo("inline-flex")}
8280
8284
 
8281
8285
  :host {
@@ -8435,7 +8439,7 @@ const RR=mi.tagFor(OR),DR=ye`
8435
8439
  --ni-private-switch-indicator-border-color: ${tr};
8436
8440
  --ni-private-switch-indicator-border-disabled-color: ${br(tr,.3)};
8437
8441
  }
8438
- `)),FR=W`
8442
+ `)),LR=W`
8439
8443
  <template
8440
8444
  role="switch"
8441
8445
  aria-checked="${e=>e.checked}"
@@ -8470,9 +8474,9 @@ const RR=mi.tagFor(OR),DR=ye`
8470
8474
  </div>
8471
8475
  </template>
8472
8476
  `
8473
- class LR extends Yi{}const NR=LR.compose({baseClass:Yi,baseName:"switch",template:FR,styles:DR})
8474
- mi.getOrCreate().withPrefix("nimble").register(NR()),mi.tagFor(LR)
8475
- const PR=ye`
8477
+ class NR extends Yi{}const PR=NR.compose({baseClass:Yi,baseName:"switch",template:LR,styles:FR})
8478
+ mi.getOrCreate().withPrefix("nimble").register(PR()),mi.tagFor(NR)
8479
+ const zR=ye`
8476
8480
  ${Eo("inline-flex")}
8477
8481
 
8478
8482
  :host {
@@ -8573,13 +8577,13 @@ const PR=ye`
8573
8577
  border-bottom-color: rgba(${Ca}, 0.3);
8574
8578
  }
8575
8579
  `
8576
- class zR extends eo{}const VR=zR.compose({baseName:"tab",baseClass:eo,template:(e,t)=>W`
8580
+ class VR extends eo{}const HR=VR.compose({baseName:"tab",baseClass:eo,template:(e,t)=>W`
8577
8581
  <template slot="tab" role="tab" aria-disabled="${e=>e.disabled}">
8578
8582
  <slot></slot>
8579
8583
  </template>
8580
- `,styles:PR})
8581
- mi.getOrCreate().withPrefix("nimble").register(VR()),mi.tagFor(zR)
8582
- const HR=ye`
8584
+ `,styles:zR})
8585
+ mi.getOrCreate().withPrefix("nimble").register(HR()),mi.tagFor(VR)
8586
+ const BR=ye`
8583
8587
  ${Eo("block")}
8584
8588
 
8585
8589
  :host {
@@ -8589,11 +8593,11 @@ const HR=ye`
8589
8593
  padding-top: ${Pa};
8590
8594
  }
8591
8595
  `
8592
- class BR extends Qi{}const qR=BR.compose({baseName:"tab-panel",baseClass:Qi,template:(e,t)=>W`
8596
+ class qR extends Qi{}const ZR=qR.compose({baseName:"tab-panel",baseClass:Qi,template:(e,t)=>W`
8593
8597
  <template slot="tabpanel" role="tabpanel">
8594
8598
  <slot></slot>
8595
8599
  </template>
8596
- `,styles:HR})
8600
+ `,styles:BR})
8597
8601
 
8598
8602
  ;/**
8599
8603
  * table-core
@@ -8605,10 +8609,10 @@ class BR extends Qi{}const qR=BR.compose({baseName:"tab-panel",baseClass:Qi,temp
8605
8609
  *
8606
8610
  * @license MIT
8607
8611
  */
8608
- function ZR(e,t){return"function"==typeof e?e(t):e}function jR(e,t){return n=>{t.setState((t=>({...t,[e]:ZR(n,t[e])})))}}function UR(e){return e instanceof Function}function WR(e,t){const n=[],i=e=>{e.forEach((e=>{n.push(e)
8612
+ function jR(e,t){return"function"==typeof e?e(t):e}function UR(e,t){return n=>{t.setState((t=>({...t,[e]:jR(n,t[e])})))}}function WR(e){return e instanceof Function}function GR(e,t){const n=[],i=e=>{e.forEach((e=>{n.push(e)
8609
8613
  const o=t(e)
8610
8614
  null!=o&&o.length&&i(o)}))}
8611
- return i(e),n}function GR(e,t,n){let i,o=[]
8615
+ return i(e),n}function KR(e,t,n){let i,o=[]
8612
8616
  return()=>{let r
8613
8617
  n.key&&n.debug&&(r=Date.now())
8614
8618
  const s=e()
@@ -8616,36 +8620,36 @@ if(!(s.length!==o.length||s.some(((e,t)=>o[t]!==e))))return i
8616
8620
  let a
8617
8621
  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
8618
8622
  return e}
8619
- 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 KR(e,t,n){var i
8623
+ 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 JR(e,t,n){var i
8620
8624
  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)}
8621
8625
  return t(o),e},getContext:()=>({table:e,header:o,column:t})}
8622
- return e._features.forEach((t=>{Object.assign(o,null==t.createHeader?void 0:t.createHeader(o,e))})),o}mi.getOrCreate().withPrefix("nimble").register(qR()),mi.tagFor(BR)
8623
- const JR={createTable:e=>({getHeaderGroups:GR((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,i,o)=>{var r,s
8626
+ return e._features.forEach((t=>{Object.assign(o,null==t.createHeader?void 0:t.createHeader(o,e))})),o}mi.getOrCreate().withPrefix("nimble").register(ZR()),mi.tagFor(qR)
8627
+ const XR={createTable:e=>({getHeaderGroups:KR((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,i,o)=>{var r,s
8624
8628
  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:[]
8625
- return XR(t,[...a,...n.filter((e=>!(null!=i&&i.includes(e.id)||null!=o&&o.includes(e.id)))),...l],e)}),{key:!1,debug:()=>{var t
8626
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:GR((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,i,o)=>XR(t,n=n.filter((e=>!(null!=i&&i.includes(e.id)||null!=o&&o.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t
8627
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:GR((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,i)=>{var o
8628
- return XR(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
8629
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:GR((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,i)=>{var o
8630
- return XR(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
8631
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:GR((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
8632
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:GR((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
8633
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:GR((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
8634
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:GR((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
8635
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:GR((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
8636
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:GR((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
8637
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:GR((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
8638
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:GR((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
8639
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:GR((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t
8629
+ return YR(t,[...a,...n.filter((e=>!(null!=i&&i.includes(e.id)||null!=o&&o.includes(e.id)))),...l],e)}),{key:!1,debug:()=>{var t
8630
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterHeaderGroups:KR((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,i,o)=>YR(t,n=n.filter((e=>!(null!=i&&i.includes(e.id)||null!=o&&o.includes(e.id)))),e,"center")),{key:!1,debug:()=>{var t
8631
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftHeaderGroups:KR((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,i)=>{var o
8632
+ return YR(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
8633
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightHeaderGroups:KR((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,i)=>{var o
8634
+ return YR(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
8635
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFooterGroups:KR((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
8636
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFooterGroups:KR((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
8637
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFooterGroups:KR((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
8638
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFooterGroups:KR((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),{key:!1,debug:()=>{var t
8639
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getFlatHeaders:KR((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
8640
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftFlatHeaders:KR((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
8641
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterFlatHeaders:KR((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
8642
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightFlatHeaders:KR((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),{key:!1,debug:()=>{var t
8643
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getCenterLeafHeaders:KR((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t
8640
8644
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
8641
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:GR((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t
8645
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeftLeafHeaders:KR((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t
8642
8646
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
8643
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:GR((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t
8647
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getRightLeafHeaders:KR((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t
8644
8648
  return!(null!=(t=e.subHeaders)&&t.length)}))),{key:!1,debug:()=>{var t
8645
- return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:GR((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var i,o,r,s,a,l
8649
+ return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),getLeafHeaders:KR((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var i,o,r,s,a,l
8646
8650
  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
8647
8651
  return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})})}
8648
- function XR(e,t,n,i){var o,r
8652
+ function YR(e,t,n,i){var o,r
8649
8653
  let s=0
8650
8654
  const a=function(e,t){void 0===t&&(t=1),s=Math.max(s,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n
8651
8655
  null!=(n=e.columns)&&n.length&&a(e.columns,t+1)}),0)}
@@ -8655,16 +8659,16 @@ const c=(e,t)=>{const o={depth:t,id:[i,`${t}`].filter(Boolean).join("_"),headers
8655
8659
  e.forEach((e=>{const s=[...r].reverse()[0]
8656
8660
  let a,l=!1
8657
8661
  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)
8658
- else{const o=KR(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})
8659
- 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)=>KR(n,e,{depth:s,index:t})))
8662
+ else{const o=JR(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})
8663
+ 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)=>JR(n,e,{depth:s,index:t})))
8660
8664
  c(d,s-1),l.reverse()
8661
8665
  const h=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,i=[0]
8662
8666
  e.subHeaders&&e.subHeaders.length?(i=[],h(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e
8663
8667
  t+=n,i.push(o)}))):t=1
8664
8668
  return n+=Math.min(...i),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}))
8665
- return h(null!=(o=null==(r=l[0])?void 0:r.headers)?o:[]),l}const YR={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},QR={getDefaultColumnDef:()=>YR,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:jR("columnSizing",e),onColumnSizingInfoChange:jR("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var n,i,o
8669
+ return h(null!=(o=null==(r=l[0])?void 0:r.headers)?o:[]),l}const QR={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},eD={getDefaultColumnDef:()=>QR,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:UR("columnSizing",e),onColumnSizingInfoChange:UR("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var n,i,o
8666
8670
  const r=t.getState().columnSizing[e.id]
8667
- return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:YR.minSize,null!=(i=null!=r?r:e.columnDef.size)?i:YR.size),null!=(o=e.columnDef.maxSize)?o:YR.maxSize)},getStart:n=>{const i=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=i.findIndex((t=>t.id===e.id))
8671
+ return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:QR.minSize,null!=(i=null!=r?r:e.columnDef.size)?i:QR.size),null!=(o=e.columnDef.maxSize)?o:QR.maxSize)},getStart:n=>{const i=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=i.findIndex((t=>t.id===e.id))
8668
8672
  if(o>0){const e=i[o-1]
8669
8673
  return e.getStart(n)+e.getSize()}return 0},resetSize:()=>{t.setColumnSizing((t=>{let{[e.id]:n,...i}=t
8670
8674
  return i}))},getCanResize:()=>{var n,i
@@ -8674,24 +8678,24 @@ e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(i=e.column.getSize())?i:0}
8674
8678
  return n(e),t},getStart:()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1]
8675
8679
  return t.getStart()+t.getSize()}return 0},getResizeHandler:()=>{const n=t.getColumn(e.column.id),i=null==n?void 0:n.getCanResize()
8676
8680
  return o=>{if(!n||!i)return
8677
- if(null==o.persist||o.persist(),tD(o)&&o.touches&&o.touches.length>1)return
8678
- const r=e.getSize(),s=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[n.id,n.getSize()]],a=tD(o)?Math.round(o.touches[0].clientX):o.clientX,l={},c=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var t,i
8681
+ if(null==o.persist||o.persist(),nD(o)&&o.touches&&o.touches.length>1)return
8682
+ const r=e.getSize(),s=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[n.id,n.getSize()]],a=nD(o)?Math.round(o.touches[0].clientX):o.clientX,l={},c=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var t,i
8679
8683
  const o=n-(null!=(t=null==e?void 0:e.startOffset)?t:0),r=Math.max(o/(null!=(i=null==e?void 0:e.startSize)?i:0),-.999999)
8680
8684
  return e.columnSizingStart.forEach((e=>{let[t,n]=e
8681
8685
  l[t]=Math.round(100*Math.max(n+n*r,0))/100})),{...e,deltaOffset:o,deltaPercentage:r}})),"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
8682
- 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 eD)return eD
8686
+ 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 tD)return tD
8683
8687
  let e=!1
8684
8688
  try{const t={get passive(){return e=!0,!1}},n=()=>{}
8685
- window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return eD=e,eD}()&&{passive:!1}
8686
- tD(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=>({setColumnSizing:t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var n
8689
+ window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return tD=e,tD}()&&{passive:!1}
8690
+ nD(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=>({setColumnSizing:t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var n
8687
8691
  e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},resetHeaderSizeInfo:t=>{var n
8688
8692
  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:[]})},getTotalSize:()=>{var t,n
8689
8693
  return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},getLeftTotalSize:()=>{var t,n
8690
8694
  return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},getCenterTotalSize:()=>{var t,n
8691
8695
  return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},getRightTotalSize:()=>{var t,n
8692
8696
  return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}})}
8693
- let eD=null
8694
- function tD(e){return"touchstart"===e.type}const nD={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:jR("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1
8697
+ let tD=null
8698
+ function nD(e){return"touchstart"===e.type}const iD={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:UR("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1
8695
8699
  return{_autoResetExpanded:()=>{var i,o
8696
8700
  if(t){if(null!=(i=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?i:!e.options.manualExpanding){if(n)return
8697
8701
  n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},setExpanded:t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),toggleAllRowsExpanded:t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},resetExpanded:t=>{var n,i
@@ -8708,57 +8712,57 @@ return n}return i}))},getIsExpanded:()=>{var n
8708
8712
  const i=t.getState().expanded
8709
8713
  return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===i||(null==i?void 0:i[e.id]))},getCanExpand:()=>{var n,i,o
8710
8714
  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)},getToggleExpandedHandler:()=>{const t=e.getCanExpand()
8711
- return()=>{t&&e.toggleExpanded()}}})},iD=(e,t,n)=>{var i,o,r
8715
+ return()=>{t&&e.toggleExpanded()}}})},oD=(e,t,n)=>{var i,o,r
8712
8716
  const s=n.toLowerCase()
8713
8717
  return Boolean(null==(i=e.getValue(t))||null==(o=i.toString())||null==(r=o.toLowerCase())?void 0:r.includes(s))}
8714
- iD.autoRemove=e=>pD(e)
8715
- const oD=(e,t,n)=>{var i,o
8716
- return Boolean(null==(i=e.getValue(t))||null==(o=i.toString())?void 0:o.includes(n))}
8717
- oD.autoRemove=e=>pD(e)
8718
+ oD.autoRemove=e=>fD(e)
8718
8719
  const rD=(e,t,n)=>{var i,o
8720
+ return Boolean(null==(i=e.getValue(t))||null==(o=i.toString())?void 0:o.includes(n))}
8721
+ rD.autoRemove=e=>fD(e)
8722
+ const sD=(e,t,n)=>{var i,o
8719
8723
  return(null==(i=e.getValue(t))||null==(o=i.toString())?void 0:o.toLowerCase())===(null==n?void 0:n.toLowerCase())}
8720
- rD.autoRemove=e=>pD(e)
8721
- const sD=(e,t,n)=>{var i
8724
+ sD.autoRemove=e=>fD(e)
8725
+ const aD=(e,t,n)=>{var i
8722
8726
  return null==(i=e.getValue(t))?void 0:i.includes(n)}
8723
- sD.autoRemove=e=>pD(e)||!(null!=e&&e.length)
8724
- const aD=(e,t,n)=>!n.some((n=>{var i
8727
+ aD.autoRemove=e=>fD(e)||!(null!=e&&e.length)
8728
+ const lD=(e,t,n)=>!n.some((n=>{var i
8725
8729
  return!(null!=(i=e.getValue(t))&&i.includes(n))}))
8726
- aD.autoRemove=e=>pD(e)||!(null!=e&&e.length)
8727
- const lD=(e,t,n)=>n.some((n=>{var i
8730
+ lD.autoRemove=e=>fD(e)||!(null!=e&&e.length)
8731
+ const cD=(e,t,n)=>n.some((n=>{var i
8728
8732
  return null==(i=e.getValue(t))?void 0:i.includes(n)}))
8729
- lD.autoRemove=e=>pD(e)||!(null!=e&&e.length)
8730
- const cD=(e,t,n)=>e.getValue(t)===n
8731
- cD.autoRemove=e=>pD(e)
8732
- const dD=(e,t,n)=>e.getValue(t)==n
8733
- dD.autoRemove=e=>pD(e)
8734
- const hD=(e,t,n)=>{let[i,o]=n
8733
+ cD.autoRemove=e=>fD(e)||!(null!=e&&e.length)
8734
+ const dD=(e,t,n)=>e.getValue(t)===n
8735
+ dD.autoRemove=e=>fD(e)
8736
+ const hD=(e,t,n)=>e.getValue(t)==n
8737
+ hD.autoRemove=e=>fD(e)
8738
+ const uD=(e,t,n)=>{let[i,o]=n
8735
8739
  const r=e.getValue(t)
8736
8740
  return r>=i&&r<=o}
8737
- hD.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
8741
+ uD.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
8738
8742
  if(r>s){const e=r
8739
- r=s,s=e}return[r,s]},hD.autoRemove=e=>pD(e)||pD(e[0])&&pD(e[1])
8740
- const uD={includesString:iD,includesStringSensitive:oD,equalsString:rD,arrIncludes:sD,arrIncludesAll:aD,arrIncludesSome:lD,equals:cD,weakEquals:dD,inNumberRange:hD}
8741
- function pD(e){return null==e||""===e}const fD={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:jR("columnFilters",e),onGlobalFilterChange:jR("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n,i
8743
+ r=s,s=e}return[r,s]},uD.autoRemove=e=>fD(e)||fD(e[0])&&fD(e[1])
8744
+ const pD={includesString:oD,includesStringSensitive:rD,equalsString:sD,arrIncludes:aD,arrIncludesAll:lD,arrIncludesSome:cD,equals:dD,weakEquals:hD,inNumberRange:uD}
8745
+ function fD(e){return null==e||""===e}const gD={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:UR("columnFilters",e),onGlobalFilterChange:UR("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n,i
8742
8746
  const o=null==(n=e.getCoreRowModel().flatRows[0])||null==(i=n._getAllCellsByColumnId()[t.id])?void 0:i.getValue()
8743
8747
  return"string"==typeof o||"number"==typeof o}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{const n=t.getCoreRowModel().flatRows[0],i=null==n?void 0:n.getValue(e.id)
8744
- return"string"==typeof i?uD.includesString:"number"==typeof i?uD.inNumberRange:"boolean"==typeof i||null!==i&&"object"==typeof i?uD.equals:Array.isArray(i)?uD.arrIncludes:uD.weakEquals},getFilterFn:()=>{var n,i
8745
- return UR(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:uD[e.columnDef.filterFn]},getCanFilter:()=>{var n,i,o
8748
+ return"string"==typeof i?pD.includesString:"number"==typeof i?pD.inNumberRange:"boolean"==typeof i||null!==i&&"object"==typeof i?pD.equals:Array.isArray(i)?pD.arrIncludes:pD.weakEquals},getFilterFn:()=>{var n,i
8749
+ return WR(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:pD[e.columnDef.filterFn]},getCanFilter:()=>{var n,i,o
8746
8750
  return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(i=t.options.enableColumnFilters)||i)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},getCanGlobalFilter:()=>{var n,i,o,r
8747
8751
  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},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var n,i
8748
8752
  return null==(n=t.getState().columnFilters)||null==(i=n.find((t=>t.id===e.id)))?void 0:i.value},getFilterIndex:()=>{var n,i
8749
- return null!=(n=null==(i=t.getState().columnFilters)?void 0:i.findIndex((t=>t.id===e.id)))?n:-1},setFilterValue:n=>{t.setColumnFilters((t=>{const i=e.getFilterFn(),o=null==t?void 0:t.find((t=>t.id===e.id)),r=ZR(n,o?o.value:void 0)
8753
+ return null!=(n=null==(i=t.getState().columnFilters)?void 0:i.findIndex((t=>t.id===e.id)))?n:-1},setFilterValue:n=>{t.setColumnFilters((t=>{const i=e.getFilterFn(),o=null==t?void 0:t.find((t=>t.id===e.id)),r=jR(n,o?o.value:void 0)
8750
8754
  var s
8751
- if(gD(i,r,e))return null!=(s=null==t?void 0:t.filter((t=>t.id!==e.id)))?s:[]
8755
+ if(mD(i,r,e))return null!=(s=null==t?void 0:t.filter((t=>t.id!==e.id)))?s:[]
8752
8756
  const a={id:e.id,value:r}
8753
8757
  var l
8754
- 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]}))},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>uD.includesString,getGlobalFilterFn:()=>{var t,n
8758
+ 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]}))},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>pD.includesString,getGlobalFilterFn:()=>{var t,n
8755
8759
  const{globalFilterFn:i}=e.options
8756
- return UR(i)?i:"auto"===i?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[i])?t:uD[i]},setColumnFilters:t=>{const n=e.getAllLeafColumns()
8760
+ return WR(i)?i:"auto"===i?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[i])?t:pD[i]},setColumnFilters:t=>{const n=e.getAllLeafColumns()
8757
8761
  null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var i
8758
- return null==(i=ZR(t,e))?void 0:i.filter((e=>{const t=n.find((t=>t.id===e.id))
8759
- if(t){if(gD(t.getFilterFn(),e.value,t))return!1}return!0}))}))},setGlobalFilter:t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var n,i
8762
+ return null==(i=jR(t,e))?void 0:i.filter((e=>{const t=n.find((t=>t.id===e.id))
8763
+ if(t){if(mD(t.getFilterFn(),e.value,t))return!1}return!0}))}))},setGlobalFilter:t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var n,i
8760
8764
  e.setColumnFilters(t?[]:null!=(n=null==(i=e.initialState)?void 0:i.columnFilters)?n:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})}
8761
- function gD(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const mD={sum:(e,t,n)=>n.reduce(((t,n)=>{const i=n.getValue(e)
8765
+ function mD(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const vD={sum:(e,t,n)=>n.reduce(((t,n)=>{const i=n.getValue(e)
8762
8766
  return t+("number"==typeof i?i:0)}),0),min:(e,t,n)=>{let i
8763
8767
  return n.forEach((t=>{const n=t.getValue(e)
8764
8768
  null!=n&&(i>n||void 0===i&&n>=n)&&(i=n)})),i},max:(e,t,n)=>{let i
@@ -8773,66 +8777,66 @@ if(i=n,!Array.isArray(i)||!i.every((e=>"number"==typeof e)))return
8773
8777
  var i
8774
8778
  if(1===n.length)return n[0]
8775
8779
  const o=Math.floor(n.length/2),r=n.sort(((e,t)=>e-t))
8776
- 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},vD={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n
8777
- 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:jR("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},getCanGroup:()=>{var n,i,o,r
8780
+ 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},bD={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n
8781
+ 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:UR("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},getCanGroup:()=>{var n,i,o,r
8778
8782
  return null!=(n=null==(i=null!=(o=null==(r=e.columnDef.enableGrouping)||r)?o:t.options.enableGrouping)||i)?n:!!e.accessorFn},getIsGrouped:()=>{var n
8779
8783
  return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},getGroupedIndex:()=>{var n
8780
8784
  return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},getToggleGroupingHandler:()=>{const t=e.getCanGroup()
8781
8785
  return()=>{t&&e.toggleGrouping()}},getAutoAggregationFn:()=>{const n=t.getCoreRowModel().flatRows[0],i=null==n?void 0:n.getValue(e.id)
8782
- return"number"==typeof i?mD.sum:"[object Date]"===Object.prototype.toString.call(i)?mD.extent:void 0},getAggregationFn:()=>{var n,i
8786
+ return"number"==typeof i?vD.sum:"[object Date]"===Object.prototype.toString.call(i)?vD.extent:void 0},getAggregationFn:()=>{var n,i
8783
8787
  if(!e)throw new Error
8784
- return UR(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:mD[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var n,i
8788
+ return WR(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:vD[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var n,i
8785
8789
  e.setGrouping(t?[]:null!=(n=null==(i=e.initialState)?void 0:i.grouping)?n:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())}),createRow:(e,t)=>({getIsGrouped:()=>!!e.groupingColumnId,getGroupingValue:n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n]
8786
8790
  const i=t.getColumn(n)
8787
8791
  return null!=i&&i.columnDef.getGroupingValue?(e._groupingValuesCache[n]=i.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},_groupingValuesCache:{}}),createCell:(e,t,n,i)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===n.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var t
8788
8792
  return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}})}
8789
- const bD={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:jR("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var n
8790
- e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},_getOrderColumnsFn:GR((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>i=>{let o=[]
8793
+ const yD={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:UR("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var n
8794
+ e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},_getOrderColumnsFn:KR((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>i=>{let o=[]
8791
8795
  if(null!=e&&e.length){const t=[...e],n=[...i]
8792
8796
  for(;n.length&&t.length;){const e=t.shift(),i=n.findIndex((t=>t.id===e))
8793
8797
  i>-1&&o.push(n.splice(i,1)[0])}o=[...o,...n]}else o=i
8794
8798
  return function(e,t,n){if(null==t||!t.length||!n)return e
8795
8799
  const i=e.filter((e=>!t.includes(e.id)))
8796
- return"remove"===n?i:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...i]}(o,t,n)}),{key:!1})})},yD={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:jR("pagination",e)}),createTable:e=>{let t=!1,n=!1
8800
+ return"remove"===n?i:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...i]}(o,t,n)}),{key:!1})})},wD={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:UR("pagination",e)}),createTable:e=>{let t=!1,n=!1
8797
8801
  return{_autoResetPageIndex:()=>{var i,o
8798
8802
  if(t){if(null!=(i=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?i:!e.options.manualPagination){if(n)return
8799
- n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},setPagination:t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>ZR(t,e))),resetPagination:t=>{var n
8800
- e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},setPageIndex:t=>{e.setPagination((n=>{let i=ZR(t,n.pageIndex)
8803
+ n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},setPagination:t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>jR(t,e))),resetPagination:t=>{var n
8804
+ e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},setPageIndex:t=>{e.setPagination((n=>{let i=jR(t,n.pageIndex)
8801
8805
  const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1
8802
8806
  return i=Math.max(0,Math.min(i,o)),{...n,pageIndex:i}}))},resetPageIndex:t=>{var n,i,o
8803
8807
  e.setPageIndex(t?0:null!=(n=null==(i=e.initialState)||null==(o=i.pagination)?void 0:o.pageIndex)?n:0)},resetPageSize:t=>{var n,i,o
8804
- e.setPageSize(t?10:null!=(n=null==(i=e.initialState)||null==(o=i.pagination)?void 0:o.pageSize)?n:10)},setPageSize:t=>{e.setPagination((e=>{const n=Math.max(1,ZR(t,e.pageSize)),i=e.pageSize*e.pageIndex,o=Math.floor(i/n)
8808
+ e.setPageSize(t?10:null!=(n=null==(i=e.initialState)||null==(o=i.pagination)?void 0:o.pageSize)?n:10)},setPageSize:t=>{e.setPagination((e=>{const n=Math.max(1,jR(t,e.pageSize)),i=e.pageSize*e.pageIndex,o=Math.floor(i/n)
8805
8809
  return{...e,pageIndex:o,pageSize:n}}))},setPageCount:t=>e.setPagination((n=>{var i
8806
- let o=ZR(t,null!=(i=e.options.pageCount)?i:-1)
8807
- return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}})),getPageOptions:GR((()=>[e.getPageCount()]),(e=>{let t=[]
8810
+ let o=jR(t,null!=(i=e.options.pageCount)?i:-1)
8811
+ return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}})),getPageOptions:KR((()=>[e.getPageCount()]),(e=>{let t=[]
8808
8812
  return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),{key:!1,debug:()=>{var t
8809
8813
  return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount()
8810
8814
  return-1===n||0!==n&&t<n-1},previousPage:()=>e.setPageIndex((e=>e-1)),nextPage:()=>e.setPageIndex((e=>e+1)),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),getPageCount:()=>{var t
8811
- return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},wD={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:jR("columnPinning",e)}),createColumn:(e,t)=>({pin:n=>{const i=e.getLeafColumns().map((e=>e.id)).filter(Boolean)
8815
+ return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},xD={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:UR("columnPinning",e)}),createColumn:(e,t)=>({pin:n=>{const i=e.getLeafColumns().map((e=>e.id)).filter(Boolean)
8812
8816
  t.setColumnPinning((e=>{var t,o,r,s,a,l
8813
8817
  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))))}}))},getCanPin:()=>e.getLeafColumns().some((e=>{var n,i
8814
8818
  return(null==(n=e.columnDef.enablePinning)||n)&&(null==(i=t.options.enablePinning)||i)})),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)))
8815
8819
  return r?"left":!!s&&"right"},getPinnedIndex:()=>{var n,i,o
8816
8820
  const r=e.getIsPinned()
8817
- return r?null!=(n=null==(i=t.getState().columnPinning)||null==(o=i[r])?void 0:o.indexOf(e.id))?n:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:GR((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const i=[...null!=t?t:[],...null!=n?n:[]]
8821
+ return r?null!=(n=null==(i=t.getState().columnPinning)||null==(o=i[r])?void 0:o.indexOf(e.id))?n:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:KR((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const i=[...null!=t?t:[],...null!=n?n:[]]
8818
8822
  return e.filter((e=>!i.includes(e.column.id)))}),{key:"row.getCenterVisibleCells",debug:()=>{var e
8819
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:GR((()=>[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:"row.getLeftVisibleCells",debug:()=>{var e
8820
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:GR((()=>[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:"row.getRightVisibleCells",debug:()=>{var e
8823
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getLeftVisibleCells:KR((()=>[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:"row.getLeftVisibleCells",debug:()=>{var e
8824
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getRightVisibleCells:KR((()=>[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:"row.getRightVisibleCells",debug:()=>{var e
8821
8825
  return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var n,i
8822
8826
  return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(i=e.initialState)?void 0:i.columnPinning)?n:{left:[],right:[]})},getIsSomeColumnsPinned:t=>{var n
8823
8827
  const i=e.getState().columnPinning
8824
8828
  var o,r
8825
- 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))},getLeftLeafColumns:GR((()=>[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
8826
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:GR((()=>[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
8827
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:GR((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const i=[...null!=t?t:[],...null!=n?n:[]]
8829
+ 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))},getLeftLeafColumns:KR((()=>[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
8830
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getRightLeafColumns:KR((()=>[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
8831
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getCenterLeafColumns:KR((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const i=[...null!=t?t:[],...null!=n?n:[]]
8828
8832
  return e.filter((e=>!i.includes(e.id)))}),{key:!1,debug:()=>{var t
8829
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})},xD={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:jR("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var n
8833
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})})},kD={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:UR("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var n
8830
8834
  return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},toggleAllRowsSelected:t=>{e.setRowSelection((n=>{t=void 0!==t?t:!e.getIsAllRowsSelected()
8831
8835
  const i={...n},o=e.getPreGroupedRowModel().flatRows
8832
8836
  return t?o.forEach((e=>{e.getCanSelect()&&(i[e.id]=!0)})):o.forEach((e=>{delete i[e.id]})),i}))},toggleAllPageRowsSelected:t=>e.setRowSelection((n=>{const i=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n}
8833
- return e.getRowModel().rows.forEach((t=>{kD(o,t.id,i,e)})),o})),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:GR((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?CD(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t
8834
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:GR((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?CD(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t
8835
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:GR((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?CD(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t
8837
+ return e.getRowModel().rows.forEach((t=>{CD(o,t.id,i,e)})),o})),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:KR((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?SD(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:!1,debug:()=>{var t
8838
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getFilteredSelectedRowModel:KR((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?SD(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getFilteredSelectedRowModel",debug:()=>{var t
8839
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getGroupedSelectedRowModel:KR((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?SD(e,n):{rows:[],flatRows:[],rowsById:{}}),{key:"getGroupedSelectedRowModel",debug:()=>{var t
8836
8840
  return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState()
8837
8841
  let i=Boolean(t.length&&Object.keys(n).length)
8838
8842
  return i&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(i=!1),i},getIsAllPageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState()
@@ -8843,37 +8847,37 @@ return n>0&&n<e.getFilteredRowModel().flatRows.length},getIsSomePageRowsSelected
8843
8847
  return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:n=>{const i=e.getIsSelected()
8844
8848
  t.setRowSelection((o=>{if(i===(n=void 0!==n?n:!i))return o
8845
8849
  const r={...o}
8846
- return kD(r,e.id,n,t),r}))},getIsSelected:()=>{const{rowSelection:n}=t.getState()
8847
- return SD(e,n)},getIsSomeSelected:()=>{const{rowSelection:n}=t.getState()
8848
- return"some"===$D(e,n)},getIsAllSubRowsSelected:()=>{const{rowSelection:n}=t.getState()
8849
- return"all"===$D(e,n)},getCanSelect:()=>{var n
8850
+ return CD(r,e.id,n,t),r}))},getIsSelected:()=>{const{rowSelection:n}=t.getState()
8851
+ return $D(e,n)},getIsSomeSelected:()=>{const{rowSelection:n}=t.getState()
8852
+ return"some"===MD(e,n)},getIsAllSubRowsSelected:()=>{const{rowSelection:n}=t.getState()
8853
+ return"all"===MD(e,n)},getCanSelect:()=>{var n
8850
8854
  return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},getCanSelectSubRows:()=>{var n
8851
8855
  return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},getCanMultiSelect:()=>{var n
8852
8856
  return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},getToggleSelectedHandler:()=>{const t=e.getCanSelect()
8853
8857
  return n=>{var i
8854
- t&&e.toggleSelected(null==(i=n.target)?void 0:i.checked)}}})},kD=(e,t,n,i)=>{var o
8858
+ t&&e.toggleSelected(null==(i=n.target)?void 0:i.checked)}}})},CD=(e,t,n,i)=>{var o
8855
8859
  const r=i.getRow(t)
8856
- n?(r.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),r.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(o=r.subRows)&&o.length&&r.getCanSelectSubRows()&&r.subRows.forEach((t=>kD(e,t.id,n,i)))}
8857
- function CD(e,t){const n=e.getState().rowSelection,i=[],o={},r=function(e,t){return e.map((e=>{var t
8858
- const s=SD(e,n)
8860
+ n?(r.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),r.getCanSelect()&&(e[t]=!0)):delete e[t],null!=(o=r.subRows)&&o.length&&r.getCanSelectSubRows()&&r.subRows.forEach((t=>CD(e,t.id,n,i)))}
8861
+ function SD(e,t){const n=e.getState().rowSelection,i=[],o={},r=function(e,t){return e.map((e=>{var t
8862
+ const s=$D(e,n)
8859
8863
  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)}
8860
- return{rows:r(t.rows),flatRows:i,rowsById:o}}function SD(e,t){var n
8861
- return null!=(n=t[e.id])&&n}function $D(e,t,n){if(e.subRows&&e.subRows.length){let n=!0,i=!1
8862
- return e.subRows.forEach((e=>{i&&!n||(SD(e,t)?i=!0:n=!1)})),n?"all":!!i&&"some"}return!1}const MD=/([0-9]+)/gm
8863
- function _D(e,t){return e===t?0:e>t?1:-1}function AD(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function ED(e,t){const n=e.split(MD).filter(Boolean),i=t.split(MD).filter(Boolean)
8864
+ return{rows:r(t.rows),flatRows:i,rowsById:o}}function $D(e,t){var n
8865
+ return null!=(n=t[e.id])&&n}function MD(e,t,n){if(e.subRows&&e.subRows.length){let n=!0,i=!1
8866
+ return e.subRows.forEach((e=>{i&&!n||($D(e,t)?i=!0:n=!1)})),n?"all":!!i&&"some"}return!1}const _D=/([0-9]+)/gm
8867
+ function AD(e,t){return e===t?0:e>t?1:-1}function ED(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function ID(e,t){const n=e.split(_D).filter(Boolean),i=t.split(_D).filter(Boolean)
8864
8868
  for(;n.length&&i.length;){const e=n.shift(),t=i.shift(),o=parseInt(e,10),r=parseInt(t,10),s=[o,r].sort()
8865
8869
  if(isNaN(s[0])){if(e>t)return 1
8866
8870
  if(t>e)return-1}else{if(isNaN(s[1]))return isNaN(o)?-1:1
8867
8871
  if(o>r)return 1
8868
- if(r>o)return-1}}return n.length-i.length}const ID={alphanumeric:(e,t,n)=>ED(AD(e.getValue(n)).toLowerCase(),AD(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>ED(AD(e.getValue(n)),AD(t.getValue(n))),text:(e,t,n)=>_D(AD(e.getValue(n)).toLowerCase(),AD(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>_D(AD(e.getValue(n)),AD(t.getValue(n))),datetime:(e,t,n)=>{const i=e.getValue(n),o=t.getValue(n)
8869
- return i>o?1:i<o?-1:0},basic:(e,t,n)=>_D(e.getValue(n),t.getValue(n))},OD={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:jR("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const n=t.getFilteredRowModel().flatRows.slice(10)
8872
+ if(r>o)return-1}}return n.length-i.length}const OD={alphanumeric:(e,t,n)=>ID(ED(e.getValue(n)).toLowerCase(),ED(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>ID(ED(e.getValue(n)),ED(t.getValue(n))),text:(e,t,n)=>AD(ED(e.getValue(n)).toLowerCase(),ED(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>AD(ED(e.getValue(n)),ED(t.getValue(n))),datetime:(e,t,n)=>{const i=e.getValue(n),o=t.getValue(n)
8873
+ return i>o?1:i<o?-1:0},basic:(e,t,n)=>AD(e.getValue(n),t.getValue(n))},TD={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:UR("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const n=t.getFilteredRowModel().flatRows.slice(10)
8870
8874
  let i=!1
8871
8875
  for(const t of n){const n=null==t?void 0:t.getValue(e.id)
8872
- if("[object Date]"===Object.prototype.toString.call(n))return ID.datetime
8873
- if("string"==typeof n&&(i=!0,n.split(MD).length>1))return ID.alphanumeric}return i?ID.text:ID.basic},getAutoSortDir:()=>{const n=t.getFilteredRowModel().flatRows[0]
8876
+ if("[object Date]"===Object.prototype.toString.call(n))return OD.datetime
8877
+ if("string"==typeof n&&(i=!0,n.split(_D).length>1))return OD.alphanumeric}return i?OD.text:OD.basic},getAutoSortDir:()=>{const n=t.getFilteredRowModel().flatRows[0]
8874
8878
  return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},getSortingFn:()=>{var n,i
8875
8879
  if(!e)throw new Error
8876
- return UR(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:ID[e.columnDef.sortingFn]},toggleSorting:(n,i)=>{const o=e.getNextSortingOrder(),r=null!=n
8880
+ return WR(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:OD[e.columnDef.sortingFn]},toggleSorting:(n,i)=>{const o=e.getNextSortingOrder(),r=null!=n
8877
8881
  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))
8878
8882
  let c,d=[],h=r?n:"desc"===o
8879
8883
  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}]
@@ -8887,74 +8891,74 @@ const i=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id))
8887
8891
  return!!i&&(i.desc?"desc":"asc")},getSortIndex:()=>{var n,i
8888
8892
  return null!=(n=null==(i=t.getState().sorting)?void 0:i.findIndex((t=>t.id===e.id)))?n:-1},clearSorting:()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},getToggleSortingHandler:()=>{const n=e.getCanSort()
8889
8893
  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=>({setSorting:t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),resetSorting:t=>{var n,i
8890
- e.setSorting(t?[]:null!=(n=null==(i=e.initialState)?void 0:i.sorting)?n:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())})},TD={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:jR("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},getIsVisible:()=>{var n,i
8894
+ e.setSorting(t?[]:null!=(n=null==(i=e.initialState)?void 0:i.sorting)?n:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())})},RD={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:UR("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},getIsVisible:()=>{var n,i
8891
8895
  return null==(n=null==(i=t.getState().columnVisibility)?void 0:i[e.id])||n},getCanHide:()=>{var n,i
8892
- return(null==(n=e.columnDef.enableHiding)||n)&&(null==(i=t.options.enableHiding)||i)},getToggleVisibilityHandler:()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:GR((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e
8893
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:GR((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),{key:!1,debug:()=>{var e
8894
- return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{const t=(t,n)=>GR((()=>[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
8896
+ return(null==(n=e.columnDef.enableHiding)||n)&&(null==(i=t.options.enableHiding)||i)},getToggleVisibilityHandler:()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:KR((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),{key:"row._getAllVisibleCells",debug:()=>{var e
8897
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),getVisibleCells:KR((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),{key:!1,debug:()=>{var e
8898
+ return null!=(e=t.options.debugAll)?e:t.options.debugRows}})}),createTable:e=>{const t=(t,n)=>KR((()=>[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
8895
8899
  return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})
8896
8900
  return{getVisibleFlatColumns:t("getVisibleFlatColumns",(()=>e.getAllFlatColumns())),getVisibleLeafColumns:t("getVisibleLeafColumns",(()=>e.getAllLeafColumns())),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",(()=>e.getLeftLeafColumns())),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",(()=>e.getRightLeafColumns())),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",(()=>e.getCenterLeafColumns())),setColumnVisibility:t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),resetColumnVisibility:t=>{var n
8897
8901
  e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},toggleAllColumnsVisible:t=>{var n
8898
8902
  t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),getToggleAllColumnsVisibilityHandler:()=>t=>{var n
8899
- e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}}},RD=[JR,TD,bD,wD,fD,OD,vD,nD,yD,xD,QR]
8900
- function DD(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...")
8901
- let n={_features:RD}
8903
+ e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}}},DD=[XR,RD,yD,xD,gD,TD,bD,iD,wD,kD,eD]
8904
+ function FD(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...")
8905
+ let n={_features:DD}
8902
8906
  const i=n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n))),{})
8903
8907
  let o={...null!=(t=e.initialState)?t:{}}
8904
8908
  n._features.forEach((e=>{var t
8905
8909
  o=null!=(t=null==e.getInitialState?void 0:e.getInitialState(o))?t:o}))
8906
8910
  const r=[]
8907
8911
  let s=!1
8908
- const a={_features:RD,options:{...i,...e},initialState:o,_queue:e=>{r.push(e),s||(s=!0,Promise.resolve().then((()=>{for(;r.length;)r.shift()()
8909
- s=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{const t=ZR(e,n.options)
8912
+ const a={_features:DD,options:{...i,...e},initialState:o,_queue:e=>{r.push(e),s||(s=!0,Promise.resolve().then((()=>{for(;r.length;)r.shift()()
8913
+ s=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{const t=jR(e,n.options)
8910
8914
  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
8911
8915
  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=>{const t=n.getRowModel().rowsById[e]
8912
8916
  if(!t)throw new Error
8913
- return t},_getDefaultColumnDef:GR((()=>[n.options.defaultColumn]),(e=>{var t
8917
+ return t},_getDefaultColumnDef:KR((()=>[n.options.defaultColumn]),(e=>{var t
8914
8918
  return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef
8915
8919
  return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n
8916
8920
  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
8917
- return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:GR((()=>[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
8921
+ return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:KR((()=>[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
8918
8922
  const s={...e._getDefaultColumnDef(),...t},a=s.accessorKey
8919
8923
  let l,c=null!=(o=null!=(r=s.id)?r:a?a.replace(".","_"):void 0)?o:"string"==typeof s.header?s.header:void 0
8920
8924
  if(s.accessorFn?l=s.accessorFn:a&&(l=a.includes(".")?e=>{let t=e
8921
8925
  for(const e of a.split(".")){var n
8922
8926
  t=null==(n=t)?void 0:n[e]}return t}:e=>e[s.accessorKey]),!c)throw new Error
8923
- let d={id:`${String(c)}`,accessorFn:l,parent:i,depth:n,columnDef:s,columns:[],getFlatColumns:GR((()=>[!0]),(()=>{var e
8927
+ let d={id:`${String(c)}`,accessorFn:l,parent:i,depth:n,columnDef:s,columns:[],getFlatColumns:KR((()=>[!0]),(()=>{var e
8924
8928
  return[d,...null==(e=d.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),{key:"column.getFlatColumns",debug:()=>{var t
8925
- return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:GR((()=>[e._getOrderColumnsFn()]),(e=>{var t
8929
+ return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:KR((()=>[e._getOrderColumnsFn()]),(e=>{var t
8926
8930
  if(null!=(t=d.columns)&&t.length){let t=d.columns.flatMap((e=>e.getLeafColumns()))
8927
8931
  return e(t)}return[d]}),{key:"column.getLeafColumns",debug:()=>{var t
8928
8932
  return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})}
8929
8933
  return d=e._features.reduce(((t,n)=>Object.assign(t,null==n.createColumn?void 0:n.createColumn(d,e))),d),d}(n,e,o,i),s=e
8930
8934
  return r.columns=s.columns?t(s.columns,r,o+1):[],r}))}
8931
8935
  return t(e)}),{key:!1,debug:()=>{var e
8932
- return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:GR((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e
8933
- return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:GR((()=>[n.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e
8934
- return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:GR((()=>[n.getAllColumns(),n._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:!1,debug:()=>{var e
8936
+ return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:KR((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),{key:!1,debug:()=>{var e
8937
+ return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:KR((()=>[n.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),{key:!1,debug:()=>{var e
8938
+ return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:KR((()=>[n.getAllColumns(),n._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),{key:!1,debug:()=>{var e
8935
8939
  return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>n._getAllFlatColumnsById()[e]}
8936
- return Object.assign(n,a),n._features.forEach((e=>Object.assign(n,null==e.createTable?void 0:e.createTable(n)))),n}const FD=(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]
8940
+ return Object.assign(n,a),n._features.forEach((e=>Object.assign(n,null==e.createTable?void 0:e.createTable(n)))),n}const LD=(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]
8937
8941
  const n=e.getColumn(t)
8938
8942
  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]
8939
8943
  const n=e.getColumn(t)
8940
8944
  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
8941
- return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=r?r:[],getLeafRows:()=>WR(a.subRows,(e=>e.subRows)),getParentRow:()=>a.parentId?e.getRow(a.parentId):void 0,getParentRows:()=>{let e=[],t=a
8945
+ return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=r?r:[],getLeafRows:()=>GR(a.subRows,(e=>e.subRows)),getParentRow:()=>a.parentId?e.getRow(a.parentId):void 0,getParentRows:()=>{let e=[],t=a
8942
8946
  for(;;){const n=t.getParentRow()
8943
8947
  if(!n)break
8944
- e.push(n),t=n}return e.reverse()},getAllCells:GR((()=>[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
8945
- return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:GR((()=>[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})}
8948
+ e.push(n),t=n}return e.reverse()},getAllCells:KR((()=>[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
8949
+ return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:KR((()=>[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})}
8946
8950
  return e._features.forEach((i=>{Object.assign(o,null==i.createCell?void 0:i.createCell(o,n,t,e))}),{}),o}(e,a,t,t.id)))),{key:!1,debug:()=>{var t
8947
- return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:GR((()=>[a.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t
8951
+ return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:KR((()=>[a.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),{key:"row.getAllCellsByColumnId",debug:()=>{var t
8948
8952
  return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}
8949
8953
  for(let t=0;t<e._features.length;t++){const n=e._features[t]
8950
8954
  Object.assign(a,null==n||null==n.createRow?void 0:n.createRow(a,e))}return a}
8951
- function LD(){return e=>GR((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,n)=>{if(!n.rows.length||!t.length)return n
8955
+ function ND(){return e=>KR((()=>[e.getState().grouping,e.getPreGroupedRowModel()]),((t,n)=>{if(!n.rows.length||!t.length)return n
8952
8956
  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)))
8953
8957
  const l=i[n],c=function(e,t){const n=new Map
8954
8958
  return e.reduce(((e,n)=>{const i=`${n.getGroupingValue(t)}`,o=e.get(i)
8955
8959
  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}`
8956
8960
  u=a?`${a}>${u}`:u
8957
- const p=s(h,n+1,u),f=n?WR(h,(e=>e.subRows)):h,g=FD(e,u,f[0].original,c,n,void 0,a)
8961
+ const p=s(h,n+1,u),f=n?GR(h,(e=>e.subRows)):h,g=LD(e,u,f[0].original,c,n,void 0,a)
8958
8962
  return Object.assign(g,{groupingColumnId:l,groupingValue:d,subRows:p,leafRows:f,getValue:t=>{if(i.includes(t)){if(g._valuesCache.hasOwnProperty(t))return g._valuesCache[t]
8959
8963
  var n
8960
8964
  if(h[0])g._valuesCache[t]=null!=(n=h[0].getValue(t))?n:void 0
@@ -8963,10 +8967,10 @@ const o=e.getColumn(t),r=null==o?void 0:o.getAggregationFn()
8963
8967
  return r?(g._groupingValuesCache[t]=r(t,f,h),g._groupingValuesCache[t]):void 0}}),p.forEach((e=>{o.push(e),r[e.id]=e})),g}))
8964
8968
  return d},a=s(n.rows,0)
8965
8969
  return a.forEach((e=>{o.push(e),r[e.id]=e})),{rows:a,flatRows:o,rowsById:r}}),{key:!1,debug:()=>{var t
8966
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))}})}const ND={none:void 0,ascending:"ascending",descending:"descending"},PD={none:void 0,single:"single",multiple:"multiple"},zD="notSelected",VD="selected",HD="partiallySelected",BD="basic",qD="localeAwareCaseSensitive"
8967
- class ZD extends Nt{}e([m],ZD.prototype,"groupHeaderValue",void 0),e([m],ZD.prototype,"columnConfig",void 0)
8968
- const jD=e=>((e=>{let t
8969
- try{t=document.createElement(e)}catch(e){}if(!(t instanceof ZD))throw new Error(`Group header view tag name (${e}) must evaluate to an element extending TableGroupHeaderView`)})(e),W`
8970
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._queue((()=>{e._autoResetExpanded(),e._autoResetPageIndex()}))}})}const PD={none:void 0,ascending:"ascending",descending:"descending"},zD={none:void 0,single:"single",multiple:"multiple"},VD="notSelected",HD="selected",BD="partiallySelected",qD="basic",ZD="localeAwareCaseSensitive"
8971
+ class jD extends Nt{}e([m],jD.prototype,"groupHeaderValue",void 0),e([m],jD.prototype,"columnConfig",void 0)
8972
+ const UD=e=>((e=>{let t
8973
+ try{t=document.createElement(e)}catch(e){}if(!(t instanceof jD))throw new Error(`Group header view tag name (${e}) must evaluate to an element extending TableGroupHeaderView`)})(e),W`
8970
8974
  <${e}
8971
8975
  :groupHeaderValue="${e=>e.groupRowValue}"
8972
8976
  :columnConfig="${e=>e.groupColumn?.columnInternals.columnConfig}"
@@ -8974,11 +8978,11 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof ZD))throw new Error(
8974
8978
  >
8975
8979
  </${e}>
8976
8980
  `)
8977
- class UD extends Nt{constructor(){super(...arguments),this.delegatedEvents=[],this.delegatedEventHandler=()=>{}}focusedRecycleCallback(){}columnChanged(){for(const e of this.delegatedEvents)this.removeEventListener(e,this.delegatedEventHandler)
8981
+ class WD extends Nt{constructor(){super(...arguments),this.delegatedEvents=[],this.delegatedEventHandler=()=>{}}focusedRecycleCallback(){}columnChanged(){for(const e of this.delegatedEvents)this.removeEventListener(e,this.delegatedEventHandler)
8978
8982
  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}}))}
8979
- for(const e of this.delegatedEvents)this.addEventListener(e,this.delegatedEventHandler)}}}e([m],UD.prototype,"cellRecord",void 0),e([m],UD.prototype,"columnConfig",void 0),e([m],UD.prototype,"column",void 0),e([m],UD.prototype,"recordId",void 0)
8980
- const WD=e=>((e=>{let t
8981
- try{t=document.createElement(e)}catch(e){}if(!(t instanceof UD))throw new Error(`Cell view tag name (${e}) must evaluate to an element extending TableCellView`)})(e),W`
8983
+ for(const e of this.delegatedEvents)this.addEventListener(e,this.delegatedEventHandler)}}}e([m],WD.prototype,"cellRecord",void 0),e([m],WD.prototype,"columnConfig",void 0),e([m],WD.prototype,"column",void 0),e([m],WD.prototype,"recordId",void 0)
8984
+ const GD=e=>((e=>{let t
8985
+ try{t=document.createElement(e)}catch(e){}if(!(t instanceof WD))throw new Error(`Cell view tag name (${e}) must evaluate to an element extending TableCellView`)})(e),W`
8982
8986
  <${e}
8983
8987
  :cellRecord="${e=>e.cellState?.cellRecord}"
8984
8988
  :columnConfig="${e=>e.cellState?.columnConfig}"
@@ -8988,10 +8992,10 @@ try{t=document.createElement(e)}catch(e){}if(!(t instanceof UD))throw new Error(
8988
8992
  >
8989
8993
  </${e}>
8990
8994
  `)
8991
- class GD{constructor(e){this.uniqueId=Ys("table-column-slot"),this.validConfiguration=!0,this.sortOperation=BD,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=1,this.minPixelWidth=117,this.currentFractionalWidth=1,this.currentSortDirection=ND.none,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=WD(e.cellViewTag),this.groupHeaderViewTemplate=jD(e.groupHeaderViewTag),this.delegatedEvents=e.delegatedEvents,this.sortOperation=e.sortOperation??BD}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}e([m],GD.prototype,"columnConfig",void 0),e([m],GD.prototype,"validConfiguration",void 0),e([m],GD.prototype,"operandDataRecordFieldName",void 0),e([m],GD.prototype,"sortOperation",void 0),e([m],GD.prototype,"dataRecordFieldNames",void 0),e([m],GD.prototype,"groupingDisabled",void 0),e([m],GD.prototype,"groupIndex",void 0),e([m],GD.prototype,"pixelWidth",void 0),e([m],GD.prototype,"fractionalWidth",void 0),e([m],GD.prototype,"minPixelWidth",void 0),e([m],GD.prototype,"currentFractionalWidth",void 0),e([m],GD.prototype,"currentPixelWidth",void 0),e([m],GD.prototype,"currentSortIndex",void 0),e([m],GD.prototype,"currentSortDirection",void 0)
8992
- class KD extends Nt{constructor(){super(...arguments),this.columnInternals=new GD(this.getColumnInternalsOptions()),this.columnHidden=!1,this.sortDirection=ND.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=ND.none,this.columnInternals.currentSortIndex=void 0):(this.columnInternals.currentSortDirection=this.sortDirection,this.columnInternals.currentSortIndex=this.sortIndex)}}e([se({attribute:"column-id"})],KD.prototype,"columnId",void 0),e([se({attribute:"action-menu-slot"})],KD.prototype,"actionMenuSlot",void 0),e([se({attribute:"action-menu-label"})],KD.prototype,"actionMenuLabel",void 0),e([se({attribute:"column-hidden",mode:"boolean"})],KD.prototype,"columnHidden",void 0),e([se({attribute:"sort-index",converter:oe})],KD.prototype,"sortIndex",void 0),e([se({attribute:"sort-direction"})],KD.prototype,"sortDirection",void 0),e([se({attribute:"sorting-disabled",mode:"boolean"})],KD.prototype,"sortingDisabled",void 0),e([m],KD.prototype,"hasOverflow",void 0)
8993
- class JD{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.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}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}areRecordIdsValid(){const e=this.getValidity()
8994
- return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateSelectionMode(e,t){return this.idFieldNameNotConfigured=e!==PD.none&&"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
8995
+ class KD{constructor(e){this.uniqueId=Ys("table-column-slot"),this.validConfiguration=!0,this.sortOperation=qD,this.dataRecordFieldNames=[],this.groupingDisabled=!1,this.fractionalWidth=1,this.minPixelWidth=117,this.currentFractionalWidth=1,this.currentSortDirection=PD.none,this.cellRecordFieldNames=e.cellRecordFieldNames,this.cellViewTemplate=GD(e.cellViewTag),this.groupHeaderViewTemplate=UD(e.groupHeaderViewTag),this.delegatedEvents=e.delegatedEvents,this.sortOperation=e.sortOperation??qD}fractionalWidthChanged(){this.currentFractionalWidth=this.fractionalWidth}pixelWidthChanged(){this.currentPixelWidth=this.pixelWidth}}e([m],KD.prototype,"columnConfig",void 0),e([m],KD.prototype,"validConfiguration",void 0),e([m],KD.prototype,"operandDataRecordFieldName",void 0),e([m],KD.prototype,"sortOperation",void 0),e([m],KD.prototype,"dataRecordFieldNames",void 0),e([m],KD.prototype,"groupingDisabled",void 0),e([m],KD.prototype,"groupIndex",void 0),e([m],KD.prototype,"pixelWidth",void 0),e([m],KD.prototype,"fractionalWidth",void 0),e([m],KD.prototype,"minPixelWidth",void 0),e([m],KD.prototype,"currentFractionalWidth",void 0),e([m],KD.prototype,"currentPixelWidth",void 0),e([m],KD.prototype,"currentSortIndex",void 0),e([m],KD.prototype,"currentSortDirection",void 0)
8996
+ class JD extends Nt{constructor(){super(...arguments),this.columnInternals=new KD(this.getColumnInternalsOptions()),this.columnHidden=!1,this.sortDirection=PD.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=PD.none,this.columnInternals.currentSortIndex=void 0):(this.columnInternals.currentSortDirection=this.sortDirection,this.columnInternals.currentSortIndex=this.sortIndex)}}e([se({attribute:"column-id"})],JD.prototype,"columnId",void 0),e([se({attribute:"action-menu-slot"})],JD.prototype,"actionMenuSlot",void 0),e([se({attribute:"action-menu-label"})],JD.prototype,"actionMenuLabel",void 0),e([se({attribute:"column-hidden",mode:"boolean"})],JD.prototype,"columnHidden",void 0),e([se({attribute:"sort-index",converter:oe})],JD.prototype,"sortIndex",void 0),e([se({attribute:"sort-direction"})],JD.prototype,"sortDirection",void 0),e([se({attribute:"sorting-disabled",mode:"boolean"})],JD.prototype,"sortingDisabled",void 0),e([m],JD.prototype,"hasOverflow",void 0)
8997
+ class XD{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.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}}isValid(){return Object.values(this.getValidity()).every((e=>!1===e))}areRecordIdsValid(){const e=this.getValidity()
8998
+ return!e.duplicateRecordId&&!e.missingRecordId&&!e.invalidRecordId}validateSelectionMode(e,t){return this.idFieldNameNotConfigured=e!==zD.none&&"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
8995
8999
  for(const n of e){if(!Object.prototype.hasOwnProperty.call(n,t)){this.missingRecordId=!0
8996
9000
  continue}const e=n[t]
8997
9001
  "string"==typeof e?(this.recordIds.has(e)&&(this.duplicateRecordId=!0),this.recordIds.add(e)):this.invalidRecordId=!0}return!this.missingRecordId&&!this.invalidRecordId&&!this.duplicateRecordId}validateColumnIds(e){this.missingColumnId=!1,this.duplicateColumnId=!1
@@ -8999,7 +9003,7 @@ const t=e.some((e=>e))
8999
9003
  if(!t)return!0
9000
9004
  const n=new Set
9001
9005
  for(const t of e)t?(n.has(t)&&(this.duplicateColumnId=!0),n.add(t)):this.missingColumnId=!0
9002
- 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)))}validateIndicesAreUnique(e){return new Set(e).size===e.length}}const XD=ye`
9006
+ 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)))}validateIndicesAreUnique(e){return new Set(e).size===e.length}}const YD=ye`
9003
9007
  ${Eo("flex")}
9004
9008
 
9005
9009
  :host {
@@ -9177,7 +9181,7 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
9177
9181
  background-color: ${br(tr,.1)};
9178
9182
  position: absolute;
9179
9183
  }
9180
- `)),YD=ye`
9184
+ `)),QD=ye`
9181
9185
  ${Eo("flex")}
9182
9186
 
9183
9187
  :host {
@@ -9196,7 +9200,7 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
9196
9200
  .grouped-indicator {
9197
9201
  flex: 0 0 auto;
9198
9202
  }
9199
- `,QD=W`
9203
+ `,eF=W`
9200
9204
  <template role="columnheader"
9201
9205
  aria-sort="${e=>e.ariaSort}"
9202
9206
  ${""}
@@ -9204,10 +9208,10 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
9204
9208
  >
9205
9209
  <slot></slot>
9206
9210
  ${""}
9207
- ${Pe((e=>e.sortDirection===ND.ascending),W`
9211
+ ${Pe((e=>e.sortDirection===PD.ascending),W`
9208
9212
  <${Sg} class="sort-indicator" aria-hidden="true"></${Sg}>
9209
9213
  `)}
9210
- ${Pe((e=>e.sortDirection===ND.descending),W`
9214
+ ${Pe((e=>e.sortDirection===PD.descending),W`
9211
9215
  <${ug} class="sort-indicator" aria-hidden="true"></${ug}>
9212
9216
  `)}
9213
9217
  ${Pe((e=>e.isGrouped),W`
@@ -9215,10 +9219,10 @@ return!this.missingColumnId&&!this.duplicateColumnId}validateColumnSortIndices(e
9215
9219
  `)}
9216
9220
  </template>
9217
9221
  `
9218
- class eF extends Nt{constructor(){super(...arguments),this.sortDirection=ND.none,this.firstSortedColumn=!1,this.isGrouped=!1}sortDirectionChanged(e,t){this.updateAriaSort()}firstSortedColumnChanged(e,t){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==ND.none?this.sortDirection===ND.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}e([se({attribute:"sort-direction"})],eF.prototype,"sortDirection",void 0),e([se({attribute:"first-sorted-column",mode:"boolean"})],eF.prototype,"firstSortedColumn",void 0),e([m],eF.prototype,"isGrouped",void 0)
9219
- const tF=eF.compose({baseName:"table-header",template:QD,styles:YD})
9220
- mi.getOrCreate().withPrefix("nimble").register(tF())
9221
- const nF=mi.tagFor(eF),iF=ye`
9222
+ class tF extends Nt{constructor(){super(...arguments),this.sortDirection=PD.none,this.firstSortedColumn=!1,this.isGrouped=!1}sortDirectionChanged(e,t){this.updateAriaSort()}firstSortedColumnChanged(e,t){this.updateAriaSort()}updateAriaSort(){this.firstSortedColumn&&this.sortDirection!==PD.none?this.sortDirection===PD.ascending?this.ariaSort="ascending":this.ariaSort="descending":this.ariaSort=null}}e([se({attribute:"sort-direction"})],tF.prototype,"sortDirection",void 0),e([se({attribute:"first-sorted-column",mode:"boolean"})],tF.prototype,"firstSortedColumn",void 0),e([m],tF.prototype,"isGrouped",void 0)
9223
+ const nF=tF.compose({baseName:"table-header",template:eF,styles:QD})
9224
+ mi.getOrCreate().withPrefix("nimble").register(nF())
9225
+ const iF=mi.tagFor(tF),oF=ye`
9222
9226
  ${Eo("flex")}
9223
9227
 
9224
9228
  :host {
@@ -9305,7 +9309,7 @@ const nF=mi.tagFor(eF),iF=ye`
9305
9309
  :host([selected]:hover)::before {
9306
9310
  background-color: ${br(tr,.2)};
9307
9311
  }
9308
- `)),oF=ye`
9312
+ `)),rF=ye`
9309
9313
  ${Eo("flex")}
9310
9314
 
9311
9315
  :host {
@@ -9335,7 +9339,7 @@ const nF=mi.tagFor(eF),iF=ye`
9335
9339
  height: ${La};
9336
9340
  align-self: center;
9337
9341
  }
9338
- `,rF=W`
9342
+ `,sF=W`
9339
9343
  <template role="cell" style="--ni-private-table-cell-nesting-level: ${e=>e.nestingLevel}">
9340
9344
  ${e=>e.cellViewTemplate}
9341
9345
  ${Pe((e=>e.hasActionMenu),W`
@@ -9354,10 +9358,10 @@ const nF=mi.tagFor(eF),iF=ye`
9354
9358
  `)}
9355
9359
  </template>
9356
9360
  `
9357
- class sF extends Nt{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([m],sF.prototype,"cellState",void 0),e([m],sF.prototype,"column",void 0),e([m],sF.prototype,"recordId",void 0),e([se({attribute:"column-id"})],sF.prototype,"columnId",void 0),e([se({attribute:"has-action-menu",mode:"boolean"})],sF.prototype,"hasActionMenu",void 0),e([se({attribute:"menu-open",mode:"boolean"})],sF.prototype,"menuOpen",void 0),e([se({attribute:"action-menu-label"})],sF.prototype,"actionMenuLabel",void 0),e([m],sF.prototype,"cellViewTemplate",void 0),e([m],sF.prototype,"nestingLevel",void 0)
9358
- const aF=sF.compose({baseName:"table-cell",template:rF,styles:oF})
9359
- mi.getOrCreate().withPrefix("nimble").register(aF())
9360
- const lF=mi.tagFor(sF),cF=W`
9361
+ class aF extends Nt{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([m],aF.prototype,"cellState",void 0),e([m],aF.prototype,"column",void 0),e([m],aF.prototype,"recordId",void 0),e([se({attribute:"column-id"})],aF.prototype,"columnId",void 0),e([se({attribute:"has-action-menu",mode:"boolean"})],aF.prototype,"hasActionMenu",void 0),e([se({attribute:"menu-open",mode:"boolean"})],aF.prototype,"menuOpen",void 0),e([se({attribute:"action-menu-label"})],aF.prototype,"actionMenuLabel",void 0),e([m],aF.prototype,"cellViewTemplate",void 0),e([m],aF.prototype,"nestingLevel",void 0)
9362
+ const lF=aF.compose({baseName:"table-cell",template:sF,styles:rF})
9363
+ mi.getOrCreate().withPrefix("nimble").register(lF())
9364
+ const cF=mi.tagFor(aF),dF=W`
9361
9365
  <template role="row" aria-selected=${e=>e.ariaSelected}>
9362
9366
  ${Pe((e=>e.selectable&&!e.hideSelection),W`
9363
9367
  <span role="gridcell" class="checkbox-container">
@@ -9376,7 +9380,7 @@ const lF=mi.tagFor(sF),cF=W`
9376
9380
  <span ${De("cellContainer")} class="cell-container">
9377
9381
  ${Ze((e=>e.columnStates),W`
9378
9382
  ${Pe((e=>!e.column.columnHidden),W`
9379
- <${lF}
9383
+ <${cF}
9380
9384
  class="cell"
9381
9385
  :cellState="${e=>e.cellState}"
9382
9386
  :cellViewTemplate="${e=>e.column.columnInternals.cellViewTemplate}"
@@ -9396,25 +9400,25 @@ const lF=mi.tagFor(sF),cF=W`
9396
9400
  slot="cellActionMenu"
9397
9401
  ></slot>
9398
9402
  `)}
9399
- </${lF}>
9403
+ </${cF}>
9400
9404
  `)}
9401
9405
  `)}
9402
9406
  </span>
9403
9407
  </template>
9404
9408
  `
9405
- class dF extends Nt{constructor(){super(...arguments),this.selectable=!1,this.selected=!1,this.hideSelection=!1,this.columns=[],this.nestingLevel=0,this.menuOpen=!1,this.ignoreSelectionChangeEvents=!1}get columnStates(){return this.columns.map(((e,t)=>{const n=e.columnInternals.dataRecordFieldNames
9409
+ class hF extends Nt{constructor(){super(...arguments),this.selectable=!1,this.selected=!1,this.hideSelection=!1,this.columns=[],this.nestingLevel=0,this.menuOpen=!1,this.ignoreSelectionChangeEvents=!1}get columnStates(){return this.columns.map(((e,t)=>{const n=e.columnInternals.dataRecordFieldNames
9406
9410
  let i
9407
9411
  if(this.hasValidFieldNames(n)&&this.dataRecord){const t=n.map((e=>this.dataRecord[e]))
9408
9412
  i={cellRecord:Object.fromEntries(e.columnInternals.cellRecordFieldNames.map(((e,n)=>[e,t[n]]))),columnConfig:e.columnInternals.columnConfig}}return{column:e,cellState:i,cellIndentLevel:0===t&&this.nestingLevel>0?this.nestingLevel-1:0}}))}get ariaSelected(){return this.selectable?this.selected?"true":"false":null}onSelectionChange(e){if(this.ignoreSelectionChangeEvents)return
9409
9413
  const t=e.target.checked
9410
9414
  this.selected=t
9411
9415
  const n={oldState:!t,newState:t}
9412
- 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 sF&&e.menuOpen))
9416
+ 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 aF&&e.menuOpen))
9413
9417
  e?.actionMenuButton?.open&&e.actionMenuButton.toggleButton.control.click()}}emitActionMenuToggleEvent(e,t,n){const i={newState:t.newState,oldState:t.oldState,recordIds:[this.recordId],columnId:n.columnId}
9414
- this.$emit(e,i)}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"})],dF.prototype,"recordId",void 0),e([se({mode:"boolean"})],dF.prototype,"selectable",void 0),e([se({mode:"boolean"})],dF.prototype,"selected",void 0),e([se({attribute:"hide-selection",mode:"boolean"})],dF.prototype,"hideSelection",void 0),e([m],dF.prototype,"dataRecord",void 0),e([m],dF.prototype,"columns",void 0),e([m],dF.prototype,"currentActionMenuColumn",void 0),e([m],dF.prototype,"nestingLevel",void 0),e([se({attribute:"menu-open",mode:"boolean"})],dF.prototype,"menuOpen",void 0),e([m],dF.prototype,"selectionCheckbox",void 0),e([v],dF.prototype,"columnStates",null),e([v],dF.prototype,"ariaSelected",null)
9415
- const hF=dF.compose({baseName:"table-row",template:cF,styles:iF})
9416
- mi.getOrCreate().withPrefix("nimble").register(hF())
9417
- const uF=mi.tagFor(dF),pF=ye`
9418
+ this.$emit(e,i)}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"})],hF.prototype,"recordId",void 0),e([se({mode:"boolean"})],hF.prototype,"selectable",void 0),e([se({mode:"boolean"})],hF.prototype,"selected",void 0),e([se({attribute:"hide-selection",mode:"boolean"})],hF.prototype,"hideSelection",void 0),e([m],hF.prototype,"dataRecord",void 0),e([m],hF.prototype,"columns",void 0),e([m],hF.prototype,"currentActionMenuColumn",void 0),e([m],hF.prototype,"nestingLevel",void 0),e([se({attribute:"menu-open",mode:"boolean"})],hF.prototype,"menuOpen",void 0),e([m],hF.prototype,"selectionCheckbox",void 0),e([v],hF.prototype,"columnStates",null),e([v],hF.prototype,"ariaSelected",null)
9419
+ const uF=hF.compose({baseName:"table-row",template:dF,styles:oF})
9420
+ mi.getOrCreate().withPrefix("nimble").register(uF())
9421
+ const pF=mi.tagFor(hF),fF=ye`
9418
9422
  ${Eo("grid")}
9419
9423
 
9420
9424
  :host {
@@ -9519,7 +9523,7 @@ const uF=mi.tagFor(dF),pF=ye`
9519
9523
  :host(:hover)::before {
9520
9524
  background-color: ${br(tr,.1)};
9521
9525
  }
9522
- `)),fF=W`
9526
+ `)),gF=W`
9523
9527
  <template
9524
9528
  role="row"
9525
9529
  @click=${e=>e.onGroupExpandToggle()}
@@ -9555,14 +9559,14 @@ const uF=mi.tagFor(dF),pF=ye`
9555
9559
  </div>
9556
9560
  </template>
9557
9561
  `
9558
- class gF extends Nt{constructor(){super(...arguments),this.nestingLevel=0,this.expanded=!1,this.selectable=!1,this.selectionState=zD,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
9562
+ class mF extends Nt{constructor(){super(...arguments),this.nestingLevel=0,this.expanded=!1,this.selectable=!1,this.selectionState=VD,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
9559
9563
  const t=e.target.checked
9560
- this.selectionState=t?VD:zD
9564
+ this.selectionState=t?HD:VD
9561
9565
  const n={oldState:!t,newState:t}
9562
- this.$emit("group-selection-toggle",n)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===VD,this.selectionCheckbox.indeterminate=this.selectionState===HD,this.ignoreSelectionChangeEvents=!1)}}e([m],gF.prototype,"groupRowValue",void 0),e([m],gF.prototype,"nestingLevel",void 0),e([m],gF.prototype,"leafItemCount",void 0),e([m],gF.prototype,"groupColumn",void 0),e([se({mode:"boolean"})],gF.prototype,"expanded",void 0),e([se({mode:"boolean"})],gF.prototype,"selectable",void 0),e([se({attribute:"selection-state"})],gF.prototype,"selectionState",void 0),e([m],gF.prototype,"selectionCheckbox",void 0),e([m],gF.prototype,"animationClass",void 0)
9563
- const mF=gF.compose({baseName:"table-group-row",template:fF,styles:pF})
9564
- mi.getOrCreate().withPrefix("nimble").register(mF())
9565
- const vF=mi.tagFor(gF),bF=W`
9566
+ this.$emit("group-selection-toggle",n)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===HD,this.selectionCheckbox.indeterminate=this.selectionState===BD,this.ignoreSelectionChangeEvents=!1)}}e([m],mF.prototype,"groupRowValue",void 0),e([m],mF.prototype,"nestingLevel",void 0),e([m],mF.prototype,"leafItemCount",void 0),e([m],mF.prototype,"groupColumn",void 0),e([se({mode:"boolean"})],mF.prototype,"expanded",void 0),e([se({mode:"boolean"})],mF.prototype,"selectable",void 0),e([se({attribute:"selection-state"})],mF.prototype,"selectionState",void 0),e([m],mF.prototype,"selectionCheckbox",void 0),e([m],mF.prototype,"animationClass",void 0)
9567
+ const vF=mF.compose({baseName:"table-group-row",template:gF,styles:fF})
9568
+ mi.getOrCreate().withPrefix("nimble").register(vF())
9569
+ const bF=mi.tagFor(mF),yF=W`
9566
9570
  <template
9567
9571
  role="grid"
9568
9572
  aria-multiselectable="${e=>e.ariaMultiSelectable}"
@@ -9583,7 +9587,7 @@ const vF=mi.tagFor(gF),bF=W`
9583
9587
  <div role="rowgroup" class="header-row-container">
9584
9588
  <div class="header-row" role="row">
9585
9589
  <span class="header-row-action-container" ${De("headerRowActionContainer")}>
9586
- ${Pe((e=>e.selectionMode===PD.multiple),W`
9590
+ ${Pe((e=>e.selectionMode===zD.multiple),W`
9587
9591
  <span role="columnheader" class="checkbox-container">
9588
9592
  <${Lf}
9589
9593
  ${De("selectionCheckbox")}
@@ -9614,15 +9618,15 @@ const vF=mi.tagFor(gF),bF=W`
9614
9618
  @mousedown="${(e,t)=>t.parent.onLeftDividerMouseDown(t.event,t.index)}">
9615
9619
  </div>
9616
9620
  `)}
9617
- <${nF}
9621
+ <${iF}
9618
9622
  class="header"
9619
- sort-direction="${e=>"number"==typeof e.columnInternals.currentSortIndex?e.columnInternals.currentSortDirection:ND.none}"
9623
+ sort-direction="${e=>"number"==typeof e.columnInternals.currentSortIndex?e.columnInternals.currentSortDirection:PD.none}"
9620
9624
  ?first-sorted-column="${(e,t)=>e===t.parent.firstSortedColumn}"
9621
9625
  @click="${(e,t)=>t.parent.toggleColumnSort(e,t.event.shiftKey)}"
9622
9626
  :isGrouped=${e=>"number"==typeof e.columnInternals.groupIndex&&!e.columnInternals.groupingDisabled}
9623
9627
  >
9624
9628
  <slot name="${e=>e.slot}"></slot>
9625
- </${nF}>
9629
+ </${iF}>
9626
9630
  ${Pe(((e,t)=>t.index<t.length-1),W`
9627
9631
  <div class="column-divider right ${(e,t)=>""+(t.parent.layoutManager.activeColumnIndex===t.index?"active":"")}"
9628
9632
  @mousedown="${(e,t)=>t.parent.onRightDividerMouseDown(t.event,t.index)}">
@@ -9636,32 +9640,32 @@ const vF=mi.tagFor(gF),bF=W`
9636
9640
  </div>
9637
9641
  <div class="table-viewport" ${De("viewport")}>
9638
9642
  <div class="table-scroll"></div>
9639
- <div class="table-row-container" ${Je({property:"rowElements",filter:je(uF)})}
9643
+ <div class="table-row-container" ${Je({property:"rowElements",filter:je(pF)})}
9640
9644
  role="rowgroup">
9641
9645
  ${Pe((e=>e.columns.length>0&&e.canRenderRows),W`
9642
9646
  ${Ze((e=>e.virtualizer.visibleItems),W`
9643
9647
  ${Pe(((e,t)=>t.parent.tableData[e.index]?.isGrouped),W`
9644
- <${vF}
9648
+ <${bF}
9645
9649
  class="group-row"
9646
9650
  :groupRowValue="${(e,t)=>t.parent.tableData[e.index]?.groupRowValue}"
9647
9651
  ?expanded="${(e,t)=>t.parent.tableData[e.index]?.isExpanded}"
9648
9652
  :nestingLevel="${(e,t)=>t.parent.tableData[e.index]?.nestingLevel}"
9649
9653
  :leafItemCount="${(e,t)=>t.parent.tableData[e.index]?.leafItemCount}"
9650
9654
  :groupColumn="${(e,t)=>t.parent.tableData[e.index]?.groupColumn}"
9651
- ?selectable="${(e,t)=>t.parent.selectionMode===PD.multiple}"
9655
+ ?selectable="${(e,t)=>t.parent.selectionMode===zD.multiple}"
9652
9656
  selection-state="${(e,t)=>t.parent.tableData[e.index]?.selectionState}"
9653
9657
  @group-selection-toggle="${(e,t)=>t.parent.onRowSelectionToggle(e.index,t.event)}"
9654
9658
  @group-expand-toggle="${(e,t)=>t.parent.handleGroupRowExpanded(e.index,t.event)}"
9655
9659
  >
9656
- </${vF}>
9660
+ </${bF}>
9657
9661
  `)}
9658
9662
  ${Pe(((e,t)=>!t.parent.tableData[e.index]?.isGrouped),W`
9659
- <${uF}
9663
+ <${pF}
9660
9664
  class="row"
9661
9665
  record-id="${(e,t)=>t.parent.tableData[e.index]?.id}"
9662
- ?selectable="${(e,t)=>t.parent.selectionMode!==PD.none}"
9663
- ?selected="${(e,t)=>t.parent.tableData[e.index]?.selectionState===VD}"
9664
- ?hide-selection="${(e,t)=>t.parent.selectionMode!==PD.multiple}"
9666
+ ?selectable="${(e,t)=>t.parent.selectionMode!==zD.none}"
9667
+ ?selected="${(e,t)=>t.parent.tableData[e.index]?.selectionState===HD}"
9668
+ ?hide-selection="${(e,t)=>t.parent.selectionMode!==zD.multiple}"
9665
9669
  :dataRecord="${(e,t)=>t.parent.tableData[e.index]?.record}"
9666
9670
  :columns="${(e,t)=>t.parent.columns}"
9667
9671
  :nestingLevel="${(e,t)=>t.parent.tableData[e.index]?.nestingLevel}"
@@ -9678,7 +9682,7 @@ const vF=mi.tagFor(gF),bF=W`
9678
9682
  </slot>
9679
9683
  `)}
9680
9684
  `)}
9681
- </${uF}>
9685
+ </${pF}>
9682
9686
  `)}
9683
9687
  `)}
9684
9688
  `)}
@@ -9698,8 +9702,8 @@ const vF=mi.tagFor(gF),bF=W`
9698
9702
  *
9699
9703
  * @license MIT
9700
9704
  */
9701
- function yF(){return yF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]
9702
- for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},yF.apply(this,arguments)}
9705
+ function wF(){return wF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]
9706
+ for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},wF.apply(this,arguments)}
9703
9707
  /**
9704
9708
  * virtual-core
9705
9709
  *
@@ -9709,55 +9713,55 @@ for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},
9709
9713
  * LICENSE.md file in the root directory of this source tree.
9710
9714
  *
9711
9715
  * @license MIT
9712
- */function wF(e,t,n){var i,o,r=null!=(i=n.initialDeps)?i:[]
9716
+ */function xF(e,t,n){var i,o,r=null!=(i=n.initialDeps)?i:[]
9713
9717
  return function(){var i
9714
9718
  n.key&&null!=n.debug&&n.debug()&&(i=Date.now())
9715
9719
  var s,a=e()
9716
9720
  if(!(a.length!==r.length||a.some((function(e,t){return r[t]!==e}))))return o
9717
9721
  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
9718
9722
  return e}
9719
- 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 xF(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?": "+t:""))
9720
- return e}var kF=function(e){return e},CF=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)
9721
- return i},SF=function(e,t){var n=e.scrollElement
9723
+ 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 kF(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?": "+t:""))
9724
+ return e}var CF=function(e){return e},SF=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)
9725
+ return i},$F=function(e,t){var n=e.scrollElement
9722
9726
  if(n){var i=function(e){var n=e.width,i=e.height
9723
9727
  t({width:Math.round(n),height:Math.round(i)})}
9724
9728
  i(n.getBoundingClientRect())
9725
9729
  var o=new ResizeObserver((function(e){var t=e[0]
9726
9730
  if(null!=t&&t.borderBoxSize){var o=t.borderBoxSize[0]
9727
9731
  if(o)return void i({width:o.inlineSize,height:o.blockSize})}i(n.getBoundingClientRect())}))
9728
- return o.observe(n,{box:"border-box"}),function(){o.unobserve(n)}}},$F=function(e,t){var n=e.scrollElement
9732
+ return o.observe(n,{box:"border-box"}),function(){o.unobserve(n)}}},MF=function(e,t){var n=e.scrollElement
9729
9733
  if(n){var i=function(){t(n[e.options.horizontal?"scrollLeft":"scrollTop"])}
9730
- return i(),n.addEventListener("scroll",i,{passive:!0}),function(){n.removeEventListener("scroll",i)}}},MF=function(e,t,n){if(null!=t&&t.borderBoxSize){var i=t.borderBoxSize[0]
9731
- if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},_F=function(e,t,n){var i,o,r=t.adjustments,s=void 0===r?0:r,a=t.behavior,l=e+s
9732
- null==(i=n.scrollElement)||null==i.scrollTo||i.scrollTo(((o={})[n.options.horizontal?"left":"top"]=l,o.behavior=a,o))},AF=function(e){var t=this
9734
+ return i(),n.addEventListener("scroll",i,{passive:!0}),function(){n.removeEventListener("scroll",i)}}},_F=function(e,t,n){if(null!=t&&t.borderBoxSize){var i=t.borderBoxSize[0]
9735
+ if(i)return Math.round(i[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},AF=function(e,t,n){var i,o,r=t.adjustments,s=void 0===r?0:r,a=t.behavior,l=e+s
9736
+ null==(i=n.scrollElement)||null==i.scrollTo||i.scrollTo(((o={})[n.options.horizontal?"left":"top"]=l,o.behavior=a,o))},EF=function(e){var t=this
9733
9737
  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)}
9734
9738
  return{disconnect:function(){var e
9735
9739
  return null==(e=n())?void 0:e.disconnect()},observe:function(e){var t
9736
9740
  return null==(t=n())?void 0:t.observe(e,{box:"border-box"})},unobserve:function(e){var t
9737
9741
  return null==(t=n())?void 0:t.unobserve(e)}}}(),this.range={startIndex:0,endIndex:0},this.setOptions=function(e){Object.entries(e).forEach((function(t){var n=t[0]
9738
- void 0===t[1]&&delete e[n]})),t.options=yF({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:kF,rangeExtractor:CF,onChange:function(){},measureElement:MF,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},e)},this.notify=function(){null==t.options.onChange||t.options.onChange(t)},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()
9742
+ void 0===t[1]&&delete e[n]})),t.options=wF({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:CF,rangeExtractor:SF,onChange:function(){},measureElement:_F,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},e)},this.notify=function(){null==t.options.onChange||t.options.onChange(t)},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()
9739
9743
  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){var n=t.scrollRect
9740
- t.scrollRect=e,(t.options.horizontal?e.width!==n.width:e.height!==n.height)&&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=wF((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]
9744
+ t.scrollRect=e,(t.options.horizontal?e.width!==n.width:e.height!==n.height)&&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=xF((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]
9741
9745
  if(!i.has(s.lane)){var a=o.get(s.lane)
9742
- 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=wF((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
9746
+ 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=xF((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
9743
9747
  t.pendingMeasuredCacheIndexes=[]
9744
9748
  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),g=u+f,m=h?h.lane:c%t.options.lanes
9745
- l[c]={index:c,start:u,size:f,end:g,key:d,lane:m}}return t.measurementsCache=l,l}),{key:!1,debug:function(){return t.options.debug}}),this.calculateRange=wF((function(){return[t.getMeasurements(),t.getSize(),t.scrollOffset]}),(function(e,n,i){return t.range=function(e){var t=e.measurements,n=e.outerSize,i=e.scrollOffset,o=t.length-1,r=function(e){return t[e].start},s=EF(0,o,r,i),a=s
9749
+ l[c]={index:c,start:u,size:f,end:g,key:d,lane:m}}return t.measurementsCache=l,l}),{key:!1,debug:function(){return t.options.debug}}),this.calculateRange=xF((function(){return[t.getMeasurements(),t.getSize(),t.scrollOffset]}),(function(e,n,i){return t.range=function(e){var t=e.measurements,n=e.outerSize,i=e.scrollOffset,o=t.length-1,r=function(e){return t[e].start},s=IF(0,o,r,i),a=s
9746
9750
  for(;a<o&&t[a].end<i+n;)a++
9747
- return{startIndex:s,endIndex:a}}({measurements:e,outerSize:n,scrollOffset:i})}),{key:!1,debug:function(){return t.options.debug}}),this.maybeNotify=wF((function(){var e=t.calculateRange()
9748
- return[e.startIndex,e.endIndex,t.isScrolling]}),(function(){t.notify()}),{key:!1,debug:function(){return t.options.debug},initialDeps:[this.range.startIndex,this.range.endIndex,this.isScrolling]}),this.getIndexes=wF((function(){return[t.options.rangeExtractor,t.calculateRange(),t.options.overscan,t.options.count]}),(function(e,t,n,i){return e(yF({},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)
9751
+ return{startIndex:s,endIndex:a}}({measurements:e,outerSize:n,scrollOffset:i})}),{key:!1,debug:function(){return t.options.debug}}),this.maybeNotify=xF((function(){var e=t.calculateRange()
9752
+ return[e.startIndex,e.endIndex,t.isScrolling]}),(function(){t.notify()}),{key:!1,debug:function(){return t.options.debug},initialDeps:[this.range.startIndex,this.range.endIndex,this.isScrolling]}),this.getIndexes=xF((function(){return[t.options.rangeExtractor,t.calculateRange(),t.options.overscan,t.options.count]}),(function(e,t,n,i){return e(wF({},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)
9749
9753
  return i?parseInt(i,10):(console.warn("Missing attribute name '"+n+"={index}' on measured element."),-1)},this._measureElement=function(e,n){var i,o=t.indexFromElement(e),r=t.measurementsCache[o]
9750
9754
  if(r){var s=t.measureElementCache.get(r.key)
9751
9755
  if(!e.isConnected)return t.observer.unobserve(e),void(e===s&&t.measureElementCache.delete(r.key))
9752
9756
  s!==e&&(s&&t.observer.unobserve(s),t.observer.observe(e),t.measureElementCache.set(r.key,e))
9753
9757
  var a=t.options.measureElement(e,n,t),l=a-(null!=(i=t.itemSizeCache.get(r.key))?i:r.size)
9754
- 0!==l&&(r.start<t.scrollOffset&&t._scrollToOffset(t.scrollOffset,{adjustments:t.scrollAdjustments+=l,behavior:void 0}),t.pendingMeasuredCacheIndexes.push(o),t.itemSizeCache=new Map(t.itemSizeCache.set(r.key,a)),t.notify())}},this.measureElement=function(e){e&&t._measureElement(e,void 0)},this.getVirtualItems=wF((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]]
9758
+ 0!==l&&(r.start<t.scrollOffset&&t._scrollToOffset(t.scrollOffset,{adjustments:t.scrollAdjustments+=l,behavior:void 0}),t.pendingMeasuredCacheIndexes.push(o),t.itemSizeCache=new Map(t.itemSizeCache.set(r.key,a)),t.notify())}},this.measureElement=function(e){e&&t._measureElement(e,void 0)},this.getVirtualItems=xF((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]]
9755
9759
  n.push(r)}return n}),{key:!1,debug:function(){return t.options.debug}}),this.getVirtualItemForOffset=function(e){var n=t.getMeasurements()
9756
- return xF(n[EF(0,n.length-1,(function(e){return xF(n[e]).start}),e)])},this.getOffsetForAlignment=function(e,n){var i=t.getSize()
9760
+ return kF(n[IF(0,n.length-1,(function(e){return kF(n[e]).start}),e)])},this.getOffsetForAlignment=function(e,n){var i=t.getSize()
9757
9761
  "auto"===n&&(n=e<=t.scrollOffset?"start":e>=t.scrollOffset+i?"end":"start"),"start"===n||("end"===n?e-=i:"center"===n&&(e-=i/2))
9758
9762
  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()
9759
9763
  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))
9760
- var i=xF(t.getMeasurements()[e])
9764
+ var i=kF(t.getMeasurements()[e])
9761
9765
  if("auto"===n)if(i.end>=t.scrollOffset+t.getSize()-t.options.scrollPaddingEnd)n="end"
9762
9766
  else{if(!(i.start<=t.scrollOffset+t.options.scrollPaddingStart))return[t.scrollOffset,n]
9763
9767
  n="start"}var o="end"===n?i.end+t.options.scrollPaddingEnd:i.start-t.options.scrollPaddingStart
@@ -9770,7 +9774,7 @@ if(t.scrollToIndexTimeoutId=null,t.measureElementCache.has(t.options.getItemKey(
9770
9774
  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
9771
9775
  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
9772
9776
  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
9773
- t.options.scrollToFn(e,{behavior:o,adjustments:i},t)},this.measure=function(){t.itemSizeCache=new Map,t.notify()},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()},EF=function(e,t,n,i){for(;e<=t;){var o=(e+t)/2|0,r=n(o)
9777
+ t.options.scrollToFn(e,{behavior:o,adjustments:i},t)},this.measure=function(){t.itemSizeCache=new Map,t.notify()},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()},IF=function(e,t,n,i){for(;e<=t;){var o=(e+t)/2|0,r=n(o)
9774
9778
  if(r<i)e=o+1
9775
9779
  else{if(!(r>i))return o
9776
9780
  t=o-1}}return e>0?e-1:0}
@@ -9784,22 +9788,22 @@ t=o-1}}return e>0?e-1:0}
9784
9788
  * LICENSE.md file in the root directory of this source tree.
9785
9789
  *
9786
9790
  * @license MIT
9787
- */class IF{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]
9791
+ */class OF{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]
9788
9792
  if(t){const e=t.inlineSize
9789
9793
  this.headerContainerMarginRight=e-this.table.viewport.clientWidth}}))}connectedCallback(){this.viewportResizeObserver.observe(this.table.viewport),this.updateVirtualizer()}disconnectedCallback(){this.viewportResizeObserver.disconnect()}dataChanged(){this.table.$fastController.isConnected&&this.updateVirtualizer()}updateVirtualizer(){const e=this.createVirtualizerOptions()
9790
- this.virtualizer?this.virtualizer.setOptions(e):this.virtualizer=new AF(e),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const e=parseFloat(Fa.getValueFor(this.table))+2*parseFloat(za.getValueFor(this.table))
9791
- return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:t=>e,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:_F,observeElementOffset:$F,observeElementRect:SF,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){this.notifyFocusedCellRecycling()
9794
+ this.virtualizer?this.virtualizer.setOptions(e):this.virtualizer=new EF(e),this.virtualizer._willUpdate(),this.handleVirtualizerChange()}createVirtualizerOptions(){const e=parseFloat(Fa.getValueFor(this.table))+2*parseFloat(za.getValueFor(this.table))
9795
+ return{count:this.tanStackTable.getRowModel().rows.length,getScrollElement:()=>this.table.viewport,estimateSize:t=>e,enableSmoothScroll:!0,overscan:3,scrollingDelay:5,scrollToFn:AF,observeElementOffset:MF,observeElementRect:$F,onChange:()=>this.handleVirtualizerChange()}}handleVirtualizerChange(){this.notifyFocusedCellRecycling()
9792
9796
  const e=this.virtualizer
9793
9797
  this.visibleItems=e.getVirtualItems(),this.scrollHeight=e.getTotalSize()
9794
9798
  let t=0
9795
9799
  if(this.visibleItems.length>0){t=this.visibleItems[0].start}this.rowContainerYOffset=t}notifyFocusedCellRecycling(){let e=this.table.shadowRoot.activeElement
9796
- for(;null!==e&&!(e instanceof UD)&&e.shadowRoot;)e=e.shadowRoot.activeElement
9797
- if(e instanceof UD&&e.focusedRecycleCallback(),void 0!==this.table.openActionMenuRecordId){const e=this.table.rowElements.find((e=>e.recordId===this.table.openActionMenuRecordId))
9798
- e?.closeOpenActionMenus()}}}function OF(e){switch(e){case BD:return ID.basic
9799
- case qD:return TF
9800
- default:return ID.basic}}function TF(e,t,n){const i=e.getValue(n),o=t.getValue(n)
9801
- return"string"==typeof i&&"string"==typeof o?i.localeCompare(o):i===o?0:void 0===i||null===i&&void 0!==o?-1:1}e([m],IF.prototype,"visibleItems",void 0),e([m],IF.prototype,"scrollHeight",void 0),e([m],IF.prototype,"headerContainerMarginRight",void 0),e([m],IF.prototype,"rowContainerYOffset",void 0)
9802
- class RF{constructor(e){this.table=e,this.isColumnBeingSized=!1,this.visibleColumns=[],this.currentTotalDelta=0,this.dragStart=0,this.initialColumnWidths=[],this.onDividerMouseMove=e=>{const t=e
9800
+ for(;null!==e&&!(e instanceof WD)&&e.shadowRoot;)e=e.shadowRoot.activeElement
9801
+ if(e instanceof WD&&e.focusedRecycleCallback(),void 0!==this.table.openActionMenuRecordId){const e=this.table.rowElements.find((e=>e.recordId===this.table.openActionMenuRecordId))
9802
+ e?.closeOpenActionMenus()}}}function TF(e){switch(e){case qD:return OD.basic
9803
+ case ZD:return RF
9804
+ default:return OD.basic}}function RF(e,t,n){const i=e.getValue(n),o=t.getValue(n)
9805
+ return"string"==typeof i&&"string"==typeof o?i.localeCompare(o):i===o?0:void 0===i||null===i&&void 0!==o?-1:1}e([m],OF.prototype,"visibleItems",void 0),e([m],OF.prototype,"scrollHeight",void 0),e([m],OF.prototype,"headerContainerMarginRight",void 0),e([m],OF.prototype,"rowContainerYOffset",void 0)
9806
+ class DF{constructor(e){this.table=e,this.isColumnBeingSized=!1,this.visibleColumns=[],this.currentTotalDelta=0,this.dragStart=0,this.initialColumnWidths=[],this.onDividerMouseMove=e=>{const t=e
9803
9807
  for(let e=0;e<this.visibleColumns.length;e++)this.visibleColumns[e].columnInternals.currentPixelWidth=this.initialColumnWidths[e]?.initialPixelWidth
9804
9808
  this.currentTotalDelta=this.getAllowedSizeDelta(t.clientX-this.dragStart),this.performCascadeSizeLeft(this.leftColumnIndex,this.currentTotalDelta),this.performCascadeSizeRight(this.rightColumnIndex,this.currentTotalDelta)
9805
9809
  const n=this.getTotalColumnFixedWidth()-this.initialColumnTotalWidth
@@ -9822,11 +9826,11 @@ for(const e of this.visibleColumns)void 0===e.columnInternals.currentPixelWidth&
9822
9826
  for(const e of this.visibleColumns)this.initialColumnWidths.push({initalColumnFractionalWidth:e.columnInternals.currentFractionalWidth,initialPixelWidth:e.columnInternals.currentPixelWidth,minPixelWidth:e.columnInternals.minPixelWidth})}resetGridSizedColumns(){if(!this.gridSizedColumns)return
9823
9827
  let e=0
9824
9828
  for(let t=0;t<this.visibleColumns.length&&e<this.gridSizedColumns.length;t++){const n=this.visibleColumns[t]
9825
- n===this.gridSizedColumns[e]&&(e+=1,n.columnInternals.currentFractionalWidth=n.columnInternals.currentPixelWidth/this.initialColumnWidths[t].initialPixelWidth*this.initialColumnWidths[t].initalColumnFractionalWidth,n.columnInternals.currentPixelWidth=void 0)}}getVisibleColumns(){return this.table.columns.filter((e=>!e.columnHidden))}getLeftColumnIndexFromDivider(e){return Math.floor(e/2)}}e([m],RF.prototype,"isColumnBeingSized",void 0),e([m],RF.prototype,"activeColumnIndex",void 0)
9826
- class DF{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 FF extends DF{}const LF=(e,...t)=>{for(const n of t)if(e===n)return!0
9827
- return!1},NF=(e,...t)=>{for(const n of t)if(e===n)return!0
9828
- return!1},PF=["rowIds","groupRows","columnIds","columnSort","columnWidths","columnDefinition","actionMenuSlots","selectionMode"]
9829
- class zF extends FF{constructor(e){super(PF),this.table=e,this.updateQueued=!1}get updateRowIds(){return this.isTracked("rowIds")}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("columnSort")||this.isTracked("columnDefinition")||this.isTracked("groupRows")||this.isTracked("selectionMode")}get requiresTanStackDataReset(){return this.isTracked("rowIds")||this.isTracked("columnDefinition")}trackAllStateChanged(){this.trackAll(),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(e){LF(e,"columnId")?this.track("columnIds"):NF(e,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):LF(e,"sortingDisabled")||NF(e,"currentSortDirection","currentSortIndex")?this.track("columnSort"):LF(e,"columnHidden")||NF(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth")?this.track("columnWidths"):LF(e,"actionMenuSlot")?this.track("actionMenuSlots"):NF(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()}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 VF{constructor(e){this.tanStackTable=e}reset(){}toggleIsRowSelected(e,t){e.isGrouped&&e.selectionState===VD?this.deselectAllLeafRows(e.id):this.tanStackTable.getRow(e.id).toggleSelected(t)}selectSingleRow(e){if(e.isGrouped)throw new Error("function not intended to select grouped rows")
9829
+ n===this.gridSizedColumns[e]&&(e+=1,n.columnInternals.currentFractionalWidth=n.columnInternals.currentPixelWidth/this.initialColumnWidths[t].initialPixelWidth*this.initialColumnWidths[t].initalColumnFractionalWidth,n.columnInternals.currentPixelWidth=void 0)}}getVisibleColumns(){return this.table.columns.filter((e=>!e.columnHidden))}getLeftColumnIndexFromDivider(e){return Math.floor(e/2)}}e([m],DF.prototype,"isColumnBeingSized",void 0),e([m],DF.prototype,"activeColumnIndex",void 0)
9830
+ class FF{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 LF extends FF{}const NF=(e,...t)=>{for(const n of t)if(e===n)return!0
9831
+ return!1},PF=(e,...t)=>{for(const n of t)if(e===n)return!0
9832
+ return!1},zF=["rowIds","groupRows","columnIds","columnSort","columnWidths","columnDefinition","actionMenuSlots","selectionMode"]
9833
+ class VF extends LF{constructor(e){super(zF),this.table=e,this.updateQueued=!1}get updateRowIds(){return this.isTracked("rowIds")}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("columnSort")||this.isTracked("columnDefinition")||this.isTracked("groupRows")||this.isTracked("selectionMode")}get requiresTanStackDataReset(){return this.isTracked("rowIds")||this.isTracked("columnDefinition")}trackAllStateChanged(){this.trackAll(),this.queueUpdate()}get hasPendingUpdates(){return this.updateQueued}trackColumnPropertyChanged(e){NF(e,"columnId")?this.track("columnIds"):PF(e,"operandDataRecordFieldName","sortOperation")?this.track("columnDefinition"):NF(e,"sortingDisabled")||PF(e,"currentSortDirection","currentSortIndex")?this.track("columnSort"):NF(e,"columnHidden")||PF(e,"currentFractionalWidth","currentPixelWidth","minPixelWidth")?this.track("columnWidths"):NF(e,"actionMenuSlot")?this.track("actionMenuSlots"):PF(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()}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 HF{constructor(e){this.tanStackTable=e}reset(){}toggleIsRowSelected(e,t){e.isGrouped&&e.selectionState===HD?this.deselectAllLeafRows(e.id):this.tanStackTable.getRow(e.id).toggleSelected(t)}selectSingleRow(e){if(e.isGrouped)throw new Error("function not intended to select grouped rows")
9830
9834
  const t=this.tanStackTable.getState().rowSelection,n=[]
9831
9835
  if(Object.entries(t).forEach((([e,t])=>{t&&n.push(e)})),1===n.length&&n[0]===e.id)return!1
9832
9836
  const i={}
@@ -9836,7 +9840,7 @@ this.tanStackTable.setRowSelection(i)}getAllLeafRowIds(e){const t=this.tanStackT
9836
9840
  return t?.getIsGrouped()?t.getLeafRows().filter((e=>0===e.getLeafRows().length)).map((e=>e.id)):[]}getAllOrderedRows(){const e=this.tanStackTable.getPreExpandedRowModel().rows
9837
9841
  return this.getOrderedRows(e)}getOrderedRows(e){const t=[]
9838
9842
  for(const n of e)t.push(n),n.subRows?.length&&t.push(...this.getOrderedRows(n.subRows))
9839
- return t}}class HF extends VF{handleRowSelectionToggle(e,t,n){return!1}handleRowClick(e,t,n){return!1}handleActionMenuOpening(e){return!1}}class BF extends VF{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!==VD&&this.selectSingleRow(e)}reset(){this.shiftSelectStartRowId=void 0,this.previousShiftSelectRowEndId=void 0}tryUpdateRangeSelection(e){if(void 0===this.shiftSelectStartRowId)return!1
9843
+ return t}}class BF extends HF{handleRowSelectionToggle(e,t,n){return!1}handleRowClick(e,t,n){return!1}handleActionMenuOpening(e){return!1}}class qF extends HF{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!==HD&&this.selectSingleRow(e)}reset(){this.shiftSelectStartRowId=void 0,this.previousShiftSelectRowEndId=void 0}tryUpdateRangeSelection(e){if(void 0===this.shiftSelectStartRowId)return!1
9840
9844
  const t=this.getAllOrderedRows(),n=this.getRowIndexForId(this.shiftSelectStartRowId,t)
9841
9845
  if(-1===n)return!1
9842
9846
  const i=this.tanStackTable.getState().rowSelection
@@ -9846,20 +9850,20 @@ this.updateSelectionStateForRange(e,n,o,i,!0)}updateSelectionStateForRange(e,t,n
9846
9850
  const r=Math.min(t,n),s=Math.max(t,n)
9847
9851
  for(let t=r;t<=s;t++){const n=i[t]
9848
9852
  n.getIsGrouped()||this.updateSelectionStateForRow(e,n.id,o)}const a=i[n]
9849
- 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 qF extends VF{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 ZF{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()}createSelectionManager(e){switch(e){case PD.multiple:return new BF(this.tanStackTable)
9850
- case PD.single:return new qF(this.tanStackTable)
9851
- case PD.none:return new HF(this.tanStackTable)
9852
- default:throw new Error("unknown selection mode found")}}}class jF extends Nt{constructor(){super(),this.selectionMode=PD.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.actionMenuSlots=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=zD,this.showCollapseAll=!1,this.visibleColumns=[],this.tableScrollableMinWidth=0,this.documentShiftKeyDown=!1,this.tableValidator=new JD,this.tableUpdateTracker=new zF(this),this.columnNotifiers=[],this.isInitialized=!1,this.collapsedRows=new Set,this.ignoreSelectionChangeEvents=!1,this.onViewPortScroll=e=>{this.scrollX=e.target.scrollLeft},this.onKeyDown=e=>{e.key===Ks&&(this.documentShiftKeyDown=!0)},this.onKeyUp=e=>{e.key===Ks&&(this.documentShiftKeyDown=!1)},this.getIsRowExpanded=e=>{if(!e.getIsGrouped())return!1
9853
+ 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 ZF extends HF{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 jF{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()}createSelectionManager(e){switch(e){case zD.multiple:return new qF(this.tanStackTable)
9854
+ case zD.single:return new ZF(this.tanStackTable)
9855
+ case zD.none:return new BF(this.tanStackTable)
9856
+ default:throw new Error("unknown selection mode found")}}}class UF extends Nt{constructor(){super(),this.selectionMode=zD.none,this.tableData=[],this.columns=[],this.childItems=[],this.rowElements=[],this.actionMenuSlots=[],this.canRenderRows=!0,this.scrollX=0,this.selectionState=VD,this.showCollapseAll=!1,this.visibleColumns=[],this.tableScrollableMinWidth=0,this.documentShiftKeyDown=!1,this.tableValidator=new XD,this.tableUpdateTracker=new VF(this),this.columnNotifiers=[],this.isInitialized=!1,this.collapsedRows=new Set,this.ignoreSelectionChangeEvents=!1,this.onViewPortScroll=e=>{this.scrollX=e.target.scrollLeft},this.onKeyDown=e=>{e.key===Ks&&(this.documentShiftKeyDown=!0)},this.onKeyUp=e=>{e.key===Ks&&(this.documentShiftKeyDown=!1)},this.getIsRowExpanded=e=>{if(!e.getIsGrouped())return!1
9853
9857
  const t=this.table.options.state.expanded
9854
9858
  return!0===t||(Object.keys(t??{}).includes(e.id)?t[e.id]:!this.collapsedRows.has(e.id))},this.handleRowSelectionChange=e=>{const t=e instanceof Function?e(this.table.getState().rowSelection):e
9855
9859
  this.updateTableOptions({state:{rowSelection:t}})},this.handleExpandedChange=e=>{const t=e instanceof Function?e(this.table.getState().expanded):e
9856
- this.updateTableOptions({state:{expanded:t}})},this.options={data:[],onStateChange:e=>{},onRowSelectionChange:this.handleRowSelectionChange,onExpandedChange:this.handleExpandedChange,getCoreRowModel:e=>GR((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},i=function(t,o,r){void 0===o&&(o=0)
9860
+ this.updateTableOptions({state:{expanded:t}})},this.options={data:[],onStateChange:e=>{},onRowSelectionChange:this.handleRowSelectionChange,onExpandedChange:this.handleExpandedChange,getCoreRowModel:e=>KR((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},i=function(t,o,r){void 0===o&&(o=0)
9857
9861
  const s=[]
9858
- for(let l=0;l<t.length;l++){const c=FD(e,e._getRowId(t[l],l,r),t[l],l,o,void 0,null==r?void 0:r.id)
9862
+ for(let l=0;l<t.length;l++){const c=LD(e,e._getRowId(t[l],l,r),t[l],l,o,void 0,null==r?void 0:r.id)
9859
9863
  var a
9860
9864
  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}
9861
9865
  return n.rows=i(t),n}),{key:!1,debug:()=>{var t
9862
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>GR((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n
9866
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getSortedRowModel:e=>KR((()=>[e.getState().sorting,e.getPreSortedRowModel()]),((t,n)=>{if(!n.rows.length||null==t||!t.length)return n
9863
9867
  const i=e.getState().sorting,o=[],r=i.filter((t=>{var n
9864
9868
  return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()})),s={}
9865
9869
  r.forEach((t=>{const n=e.getColumn(t.id)
@@ -9871,57 +9875,57 @@ let c=0
9871
9875
  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
9872
9876
  o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))})),t}
9873
9877
  return{rows:a(n.rows),flatRows:o,rowsById:n.rowsById}}),{key:!1,debug:()=>{var t
9874
- return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getGroupedRowModel:LD(),getExpandedRowModel:e=>GR((()=>[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
9878
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}}),getGroupedRowModel:ND(),getExpandedRowModel:e=>KR((()=>[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
9875
9879
  t.push(e),null!=(i=e.subRows)&&i.length&&e.getIsExpanded()&&e.subRows.forEach(n)}
9876
9880
  return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}(t):t),{key:!1,debug:()=>{var t
9877
- return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsRowExpanded:this.getIsRowExpanded,columns:[],state:{rowSelection:{},grouping:[],expanded:!0},enableRowSelection:e=>!e.getIsGrouped(),enableMultiRowSelection:!1,enableSubRowSelection:!1,enableSorting:!0,enableGrouping:!0,renderFallbackValue:null,autoResetAll:!1},this.table=DD(this.options),this.virtualizer=new IF(this,this.table),this.layoutManager=new RF(this),this.layoutManagerNotifier=g.getNotifier(this.layoutManager),this.layoutManagerNotifier.subscribe(this,"isColumnBeingSized"),this.selectionManager=new ZF(this.table,this.selectionMode)}get validity(){return this.tableValidator.getValidity()}async setData(e){await this.processPendingUpdates()
9881
+ return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),getIsRowExpanded:this.getIsRowExpanded,columns:[],state:{rowSelection:{},grouping:[],expanded:!0},enableRowSelection:e=>!e.getIsGrouped(),enableMultiRowSelection:!1,enableSubRowSelection:!1,enableSorting:!0,enableGrouping:!0,renderFallbackValue:null,autoResetAll:!1},this.table=FD(this.options),this.virtualizer=new OF(this,this.table),this.layoutManager=new DF(this),this.layoutManagerNotifier=g.getNotifier(this.layoutManager),this.layoutManagerNotifier.subscribe(this,"isColumnBeingSized"),this.selectionManager=new jF(this.table,this.selectionMode)}get validity(){return this.tableValidator.getValidity()}async setData(e){await this.processPendingUpdates()
9878
9882
  const t=e.map((e=>({...e}))),n={data:t}
9879
9883
  if(this.validateWithData(t),this.tableValidator.areRecordIdsValid()){const e=await this.getSelectedRecordIds()
9880
9884
  n.state={rowSelection:this.calculateTanStackSelectionState(e)}}this.updateTableOptions(n)}async getSelectedRecordIds(){await this.processPendingUpdates()
9881
9885
  const e=this.options.state.rowSelection
9882
9886
  if(!e)return[]
9883
9887
  const t=[]
9884
- return Object.entries(e).forEach((([e,n])=>{n&&t.push(e)})),t}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==PD.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(e)}})}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connectedCallback(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0}),document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp)}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnectedCallback(),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 KD||e instanceof GD)&&"string"==typeof t?"validConfiguration"===t?this.tableValidator.validateColumnConfigurations(this.columns):this.tableUpdateTracker.trackColumnPropertyChanged(t):e instanceof RF&&"isColumnBeingSized"===t&&!this.layoutManager.isColumnBeingSized&&this.emitColumnConfigurationChangeEvent()}onRowSelectionToggle(e,t){t.stopImmediatePropagation()
9888
+ return Object.entries(e).forEach((([e,n])=>{n&&t.push(e)})),t}async setSelectedRecordIds(e){await this.processPendingUpdates(),this.selectionMode!==zD.none&&this.updateTableOptions({state:{rowSelection:this.calculateTanStackSelectionState(e)}})}connectedCallback(){super.connectedCallback(),this.initialize(),this.virtualizer.connectedCallback(),this.viewport.addEventListener("scroll",this.onViewPortScroll,{passive:!0}),document.addEventListener("keydown",this.onKeyDown),document.addEventListener("keyup",this.onKeyUp)}disconnectedCallback(){super.disconnectedCallback(),this.virtualizer.disconnectedCallback(),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 JD||e instanceof KD)&&"string"==typeof t?"validConfiguration"===t?this.tableValidator.validateColumnConfigurations(this.columns):this.tableUpdateTracker.trackColumnPropertyChanged(t):e instanceof DF&&"isColumnBeingSized"===t&&!this.layoutManager.isColumnBeingSized&&this.emitColumnConfigurationChangeEvent()}onRowSelectionToggle(e,t){t.stopImmediatePropagation()
9885
9889
  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)}handleCollapseAllGroupRows(){this.collapsedRows.clear(),this.table.getRowModel().flatRows.filter((e=>e.getIsGrouped())).forEach((e=>this.collapsedRows.add(e.id))),this.table.toggleAllRowsExpanded(!1)}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.toggleGroupExpanded(e),t.stopPropagation()}toggleColumnSort(e,t){if(e.sortingDisabled)return
9886
9890
  const n=this.getColumnsParticipatingInSorting().sort(((e,t)=>e.columnInternals.currentSortIndex-t.columnInternals.currentSortIndex)),i=n.indexOf(e),o=i>-1,r=e.columnInternals.currentSortDirection
9887
- let s=ND.ascending
9888
- o?r===ND.descending?(n.splice(i,1),s=ND.none,e.columnInternals.currentSortIndex=void 0):s=ND.descending:n.push(e),e.columnInternals.currentSortDirection=s
9891
+ let s=PD.ascending
9892
+ o?r===PD.descending?(n.splice(i,1),s=PD.none,e.columnInternals.currentSortIndex=void 0):s=PD.descending:n.push(e),e.columnInternals.currentSortDirection=s
9889
9893
  for(let i=0;i<n.length;i++){const o=n[i]
9890
- t?n[i].columnInternals.currentSortIndex=i:o===e?o.columnInternals.currentSortIndex=0:(o.columnInternals.currentSortIndex=void 0,o.columnInternals.currentSortDirection=ND.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))),this.tableUpdateTracker.updateGroupRows&&(this.showCollapseAll=this.getColumnsParticipatingInGrouping().length>0)}get ariaMultiSelectable(){switch(this.selectionMode){case PD.multiple:return"true"
9891
- case PD.single:return"false"
9894
+ t?n[i].columnInternals.currentSortIndex=i:o===e?o.columnInternals.currentSortIndex=0:(o.columnInternals.currentSortIndex=void 0,o.columnInternals.currentSortDirection=PD.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))),this.tableUpdateTracker.updateGroupRows&&(this.showCollapseAll=this.getColumnsParticipatingInGrouping().length>0)}get ariaMultiSelectable(){switch(this.selectionMode){case zD.multiple:return"true"
9895
+ case zD.single:return"false"
9892
9896
  default:return null}}getHeaderContainerElements(){return this.columnHeadersContainer.querySelectorAll(".header-container")}selectionModeChanged(e,t){this.$fastController.isConnected&&this.tableUpdateTracker.trackSelectionModeChanged()}idFieldNameChanged(e,t){this.$fastController.isConnected&&this.tableUpdateTracker.trackIdFieldNameChanged()}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]
9893
9897
  const n=await this.getActionMenuToggleEventDetail(t)
9894
9898
  this.$emit("action-menu-beforetoggle",n)}async handleRowActionMenuToggleEvent(e){const t=await this.getActionMenuToggleEventDetail(e)
9895
- this.$emit("action-menu-toggle",t),e.detail.newState||(this.openActionMenuRecordId=void 0)}async getActionMenuToggleEventDetail(e){const t=this.selectionMode===PD.multiple?await this.getSelectedRecordIds():[this.openActionMenuRecordId]
9899
+ this.$emit("action-menu-toggle",t),e.detail.newState||(this.openActionMenuRecordId=void 0)}async getActionMenuToggleEventDetail(e){const t=this.selectionMode===zD.multiple?await this.getSelectedRecordIds():[this.openActionMenuRecordId]
9896
9900
  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()
9897
9901
  for(const e of this.columns){const t=g.getNotifier(e)
9898
9902
  t.subscribe(this),this.columnNotifiers.push(t)
9899
- g.getNotifier(e.columnInternals).subscribe(this),this.columnNotifiers.push(t)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>!e.sortingDisabled&&e.columnInternals.currentSortDirection!==ND.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(){const e=this.childItems.map((async e=>e.matches(":not(:defined)")?customElements.whenDefined(e.localName):Promise.resolve()))
9900
- await Promise.all(e),this.columns=this.childItems.filter((e=>e instanceof KD))}updateTanStack(){const e={state:{}}
9901
- 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===PD.multiple,e.enableSubRowSelection=this.selectionMode===PD.multiple,e.state.rowSelection={},this.selectionManager.handleSelectionModeChanged(this.selectionMode)),this.tableUpdateTracker.requiresTanStackDataReset&&(e.data=[...this.table.options.data]),this.tableUpdateTracker.updateGroupRows&&(e.state.grouping=this.calculateTanStackGroupingState(),e.state.expanded=!0,this.collapsedRows.clear()),this.updateTableOptions(e)}updateActionMenuSlots(){const e=new Set
9903
+ g.getNotifier(e.columnInternals).subscribe(this),this.columnNotifiers.push(t)}}getColumnsParticipatingInSorting(){return this.columns.filter((e=>!e.sortingDisabled&&e.columnInternals.currentSortDirection!==PD.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(){const e=this.childItems.map((async e=>e.matches(":not(:defined)")?customElements.whenDefined(e.localName):Promise.resolve()))
9904
+ await Promise.all(e),this.columns=this.childItems.filter((e=>e instanceof JD))}updateTanStack(){const e={state:{}}
9905
+ 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===zD.multiple,e.enableSubRowSelection=this.selectionMode===zD.multiple,e.state.rowSelection={},this.selectionManager.handleSelectionModeChanged(this.selectionMode)),this.tableUpdateTracker.requiresTanStackDataReset&&(e.data=[...this.table.options.data]),this.tableUpdateTracker.updateGroupRows&&(e.state.grouping=this.calculateTanStackGroupingState(),e.state.expanded=!0,this.collapsedRows.clear()),this.updateTableOptions(e)}updateActionMenuSlots(){const e=new Set
9902
9906
  for(const t of this.columns)t.actionMenuSlot&&e.add(t.actionMenuSlot)
9903
9907
  this.actionMenuSlots=Array.from(e)}validate(){this.tableValidator.validateSelectionMode(this.selectionMode,this.idFieldName),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.validateWithData(this.table.options.data)}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})))}
9904
9908
  this.$emit("column-configuration-change",e)}async emitSelectionChangeEvent(){const e={selectedRecordIds:await this.getSelectedRecordIds()}
9905
- this.$emit("selection-change",e)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===VD,this.selectionCheckbox.indeterminate=this.selectionState===HD,this.ignoreSelectionChangeEvents=!1)}refreshRows(){this.selectionState=this.getTableSelectionState()
9909
+ this.$emit("selection-change",e)}selectionStateChanged(){this.setSelectionCheckboxState()}selectionCheckboxChanged(){this.setSelectionCheckboxState()}setSelectionCheckboxState(){this.selectionCheckbox&&(this.ignoreSelectionChangeEvents=!0,this.selectionCheckbox.checked=this.selectionState===HD,this.selectionCheckbox.indeterminate=this.selectionState===BD,this.ignoreSelectionChangeEvents=!1)}refreshRows(){this.selectionState=this.getTableSelectionState()
9906
9910
  const e=this.table.getRowModel().rows
9907
- this.tableData=e.map((e=>({record:e.original,id:e.id,selectionState:this.getRowSelectionState(e),isGrouped:e.getIsGrouped(),isExpanded:e.getIsExpanded(),groupRowValue:e.getIsGrouped()?e.getValue(e.groupingColumnId):void 0,nestingLevel:e.depth,leafItemCount:e.getLeafRows().filter((e=>0===e.getLeafRows().length)).length,groupColumn:this.getGroupRowColumn(e)}))),this.virtualizer.dataChanged()}getTableSelectionState(){return this.table.getIsAllRowsSelected()?VD:this.table.getIsSomeRowsSelected()?HD:zD}getRowSelectionState(e){return e.getIsGrouped()?this.getGroupedRowSelectionState(e):e.getIsSelected()?VD:zD}getGroupedRowSelectionState(e){const t=e.subRows??[]
9911
+ this.tableData=e.map((e=>({record:e.original,id:e.id,selectionState:this.getRowSelectionState(e),isGrouped:e.getIsGrouped(),isExpanded:e.getIsExpanded(),groupRowValue:e.getIsGrouped()?e.getValue(e.groupingColumnId):void 0,nestingLevel:e.depth,leafItemCount:e.getLeafRows().filter((e=>0===e.getLeafRows().length)).length,groupColumn:this.getGroupRowColumn(e)}))),this.virtualizer.dataChanged()}getTableSelectionState(){return this.table.getIsAllRowsSelected()?HD:this.table.getIsSomeRowsSelected()?BD:VD}getRowSelectionState(e){return e.getIsGrouped()?this.getGroupedRowSelectionState(e):e.getIsSelected()?HD:VD}getGroupedRowSelectionState(e){const t=e.subRows??[]
9908
9912
  let n=!1,i=!1
9909
- for(const e of t){if(e.getIsGrouped()){switch(this.getGroupedRowSelectionState(e)){case zD:i=!0
9913
+ for(const e of t){if(e.getIsGrouped()){switch(this.getGroupedRowSelectionState(e)){case VD:i=!0
9910
9914
  break
9911
- case VD:n=!0
9915
+ case HD:n=!0
9912
9916
  break
9913
- default:return HD}}else e.getIsSelected()?n=!0:i=!0
9914
- if(n&&i)return HD}return n?VD:zD}getGroupRowColumn(e){const t=e.groupingColumnId
9917
+ default:return BD}}else e.getIsSelected()?n=!0:i=!0
9918
+ if(n&&i)return BD}return n?HD:VD}getGroupRowColumn(e){const t=e.groupingColumnId
9915
9919
  if(void 0!==t)return this.columns.find((e=>e.columnInternals.uniqueId===t))}updateTableOptions(e){this.options={...this.options,...e,state:{...this.options.state,...e.state}},this.table.setOptions(this.options),this.refreshRows()}toggleGroupExpanded(e){const t=this.table.getRowModel().rows[e]
9916
9920
  t.getIsExpanded()?this.collapsedRows.add(t.id):this.collapsedRows.delete(t.id),t.toggleExpanded()}calculateTanStackSortState(){const e=this.getColumnsParticipatingInSorting().sort(((e,t)=>e.columnInternals.currentSortIndex-t.columnInternals.currentSortIndex))
9917
- return this.firstSortedColumn=e.length?e[0]:void 0,e.map((e=>({id:e.columnInternals.uniqueId,desc:e.columnInternals.currentSortDirection===ND.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[this.idFieldName]}calculateTanStackColumns(){return this.columns.map((e=>({id:e.columnInternals.uniqueId,accessorFn:t=>{const n=e.columnInternals.operandDataRecordFieldName
9918
- if("string"==typeof n)return t[n]},sortingFn:OF(e.columnInternals.sortOperation),sortUndefined:!1})))}calculateTanStackSelectionState(e){if(this.selectionMode===PD.none)return{}
9921
+ return this.firstSortedColumn=e.length?e[0]:void 0,e.map((e=>({id:e.columnInternals.uniqueId,desc:e.columnInternals.currentSortDirection===PD.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[this.idFieldName]}calculateTanStackColumns(){return this.columns.map((e=>({id:e.columnInternals.uniqueId,accessorFn:t=>{const n=e.columnInternals.operandDataRecordFieldName
9922
+ if("string"==typeof n)return t[n]},sortingFn:TF(e.columnInternals.sortOperation),sortUndefined:!1})))}calculateTanStackSelectionState(e){if(this.selectionMode===zD.none)return{}
9919
9923
  const t={},n=this.tableValidator.getPresentRecordIds(e)
9920
- for(const e of n)if(t[e]=!0,this.selectionMode===PD.single)break
9921
- return t}}e([se({attribute:"id-field-name"})],jF.prototype,"idFieldName",void 0),e([se({attribute:"selection-mode"})],jF.prototype,"selectionMode",void 0),e([m],jF.prototype,"tableData",void 0),e([m],jF.prototype,"columns",void 0),e([m],jF.prototype,"childItems",void 0),e([m],jF.prototype,"rowElements",void 0),e([m],jF.prototype,"actionMenuSlots",void 0),e([m],jF.prototype,"openActionMenuRecordId",void 0),e([m],jF.prototype,"canRenderRows",void 0),e([m],jF.prototype,"scrollX",void 0),e([m],jF.prototype,"rowGridColumns",void 0),e([m],jF.prototype,"selectionState",void 0),e([m],jF.prototype,"selectionCheckbox",void 0),e([m],jF.prototype,"showCollapseAll",void 0),e([m],jF.prototype,"firstSortedColumn",void 0),e([m],jF.prototype,"visibleColumns",void 0),e([m],jF.prototype,"tableScrollableMinWidth",void 0),e([m],jF.prototype,"documentShiftKeyDown",void 0)
9922
- const UF=jF.compose({baseName:"table",template:bF,styles:XD})
9923
- mi.getOrCreate().withPrefix("nimble").register(UF()),mi.tagFor(jF)
9924
- const WF=ye`
9924
+ for(const e of n)if(t[e]=!0,this.selectionMode===zD.single)break
9925
+ return t}}e([se({attribute:"id-field-name"})],UF.prototype,"idFieldName",void 0),e([se({attribute:"selection-mode"})],UF.prototype,"selectionMode",void 0),e([m],UF.prototype,"tableData",void 0),e([m],UF.prototype,"columns",void 0),e([m],UF.prototype,"childItems",void 0),e([m],UF.prototype,"rowElements",void 0),e([m],UF.prototype,"actionMenuSlots",void 0),e([m],UF.prototype,"openActionMenuRecordId",void 0),e([m],UF.prototype,"canRenderRows",void 0),e([m],UF.prototype,"scrollX",void 0),e([m],UF.prototype,"rowGridColumns",void 0),e([m],UF.prototype,"selectionState",void 0),e([m],UF.prototype,"selectionCheckbox",void 0),e([m],UF.prototype,"showCollapseAll",void 0),e([m],UF.prototype,"firstSortedColumn",void 0),e([m],UF.prototype,"visibleColumns",void 0),e([m],UF.prototype,"tableScrollableMinWidth",void 0),e([m],UF.prototype,"documentShiftKeyDown",void 0)
9926
+ const WF=UF.compose({baseName:"table",template:yF,styles:YD})
9927
+ mi.getOrCreate().withPrefix("nimble").register(WF()),mi.tagFor(UF)
9928
+ const GF=ye`
9925
9929
  :host {
9926
9930
  display: contents;
9927
9931
  }
@@ -9932,15 +9936,15 @@ const WF=ye`
9932
9936
  text-overflow: ellipsis;
9933
9937
  }
9934
9938
  `
9935
- class GF{constructor(e,t){this.target=e,this.propertyName=t}bind(e){this.source=e,this.setSourceValue(!1),this.mouseOverHandler=()=>{const e=this.target.offsetWidth<this.target.scrollWidth
9936
- this.setSourceValue(e)},this.mouseOutHandler=()=>{this.setSourceValue(!1)},this.target.addEventListener("mouseover",this.mouseOverHandler),this.target.addEventListener("mouseout",this.mouseOutHandler)}unbind(){this.source=void 0,this.target.removeEventListener("mouseover",this.mouseOverHandler),this.target.removeEventListener("mouseout",this.mouseOutHandler)}setSourceValue(e){this.source[this.propertyName]=e}}function KF(e){return new C("nimble-overflow",GF,e)}const JF=W`<span
9937
- ${KF("hasOverflow")}
9939
+ class KF{constructor(e,t){this.target=e,this.propertyName=t}bind(e){this.source=e,this.setSourceValue(!1),this.mouseOverHandler=()=>{const e=this.target.offsetWidth<this.target.scrollWidth
9940
+ this.setSourceValue(e)},this.mouseOutHandler=()=>{this.setSourceValue(!1)},this.target.addEventListener("mouseover",this.mouseOverHandler),this.target.addEventListener("mouseout",this.mouseOutHandler)}unbind(){this.source=void 0,this.target.removeEventListener("mouseover",this.mouseOverHandler),this.target.removeEventListener("mouseout",this.mouseOutHandler)}setSourceValue(e){this.source[this.propertyName]=e}}function JF(e){return new C("nimble-overflow",KF,e)}const XF=W`<span
9941
+ ${JF("hasOverflow")}
9938
9942
  class="header-content"
9939
9943
  title=${e=>e.hasOverflow&&e.headerTextContent?e.headerTextContent:null}
9940
9944
  >
9941
9945
  <slot ${De("contentSlot")}></slot>
9942
9946
  </span>`
9943
- function XF(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 YF(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 QF=ye`
9947
+ function YF(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 QF(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 eL=ye`
9944
9948
  :host {
9945
9949
  width: fit-content;
9946
9950
  max-width: 100%;
@@ -9961,14 +9965,14 @@ function XF(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.
9961
9965
  overflow: hidden;
9962
9966
  text-overflow: ellipsis;
9963
9967
  }
9964
- `,eL=W`
9968
+ `,tL=W`
9965
9969
  <template
9966
9970
  @click="${(e,t)=>("string"==typeof e.cellRecord?.href&&t.event.stopPropagation(),!0)}"
9967
9971
  >
9968
9972
  ${Pe((e=>"string"==typeof e.cellRecord?.href),W`
9969
9973
  <${bd}
9970
9974
  ${De("anchor")}
9971
- ${KF("hasOverflow")}
9975
+ ${JF("hasOverflow")}
9972
9976
  href="${e=>e.cellRecord?.href}"
9973
9977
  hreflang="${e=>e.columnConfig?.hreflang}"
9974
9978
  ping="${e=>e.columnConfig?.ping}"
@@ -9985,26 +9989,26 @@ function XF(e){class t extends e{fractionalWidthChanged(){"number"==typeof this.
9985
9989
  </${bd}>`)}
9986
9990
  ${Pe((e=>"string"!=typeof e.cellRecord?.href),W`
9987
9991
  <span
9988
- ${KF("hasOverflow")}
9992
+ ${JF("hasOverflow")}
9989
9993
  title=${e=>e.hasOverflow?e.text:null}
9990
9994
  >
9991
9995
  ${e=>e.text}
9992
9996
  </span>`)}
9993
9997
  </template>
9994
9998
  `
9995
- class tL extends UD{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([m],tL.prototype,"hasOverflow",void 0),e([v],tL.prototype,"text",null)
9996
- const nL=tL.compose({baseName:"table-column-anchor-cell-view",template:eL,styles:QF})
9997
- mi.getOrCreate().withPrefix("nimble").register(nL())
9998
- const iL=mi.tagFor(tL)
9999
- class oL extends ZD{constructor(){super(...arguments),this.hasOverflow=!1,this.text=""}}e([m],oL.prototype,"hasOverflow",void 0),e([m],oL.prototype,"text",void 0)
10000
- const rL=W`
9999
+ class nL extends WD{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([m],nL.prototype,"hasOverflow",void 0),e([v],nL.prototype,"text",null)
10000
+ const iL=nL.compose({baseName:"table-column-anchor-cell-view",template:tL,styles:eL})
10001
+ mi.getOrCreate().withPrefix("nimble").register(iL())
10002
+ const oL=mi.tagFor(nL)
10003
+ class rL extends jD{constructor(){super(...arguments),this.hasOverflow=!1,this.text=""}}e([m],rL.prototype,"hasOverflow",void 0),e([m],rL.prototype,"text",void 0)
10004
+ const sL=W`
10001
10005
  <span
10002
- ${KF("hasOverflow")}
10006
+ ${JF("hasOverflow")}
10003
10007
  title="${e=>e.hasOverflow&&e.text?e.text:null}"
10004
10008
  >
10005
10009
  ${e=>e.text}
10006
10010
  </span>
10007
- `,sL=ye`
10011
+ `,aL=ye`
10008
10012
  span {
10009
10013
  font: ${tc};
10010
10014
  color: ${nc};
@@ -10013,28 +10017,28 @@ const rL=W`
10013
10017
  text-overflow: ellipsis;
10014
10018
  }
10015
10019
  `
10016
- class aL extends oL{groupHeaderValueChanged(){this.text="string"==typeof this.groupHeaderValue?this.groupHeaderValue:""}}const lL=aL.compose({baseName:"table-column-text-group-header-view",template:rL,styles:sL})
10017
- mi.getOrCreate().withPrefix("nimble").register(lL())
10018
- const cL=mi.tagFor(aL)
10019
- class dL extends(YF(XF(KD))){constructor(){super(...arguments),this.underlineHidden=!1}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:iL,groupHeaderViewTag:cL,delegatedEvents:["click"],sortOperation:qD}}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"})],dL.prototype,"labelFieldName",void 0),e([se({attribute:"href-field-name"})],dL.prototype,"hrefFieldName",void 0),e([se],dL.prototype,"appearance",void 0),e([se({attribute:"underline-hidden",mode:"boolean"})],dL.prototype,"underlineHidden",void 0),e([se],dL.prototype,"hreflang",void 0),e([se],dL.prototype,"ping",void 0),e([se],dL.prototype,"referrerpolicy",void 0),e([se],dL.prototype,"rel",void 0),e([se],dL.prototype,"target",void 0),e([se],dL.prototype,"type",void 0),e([se],dL.prototype,"download",void 0)
10020
- const hL=dL.compose({baseName:"table-column-anchor",template:JF,styles:WF})
10021
- mi.getOrCreate().withPrefix("nimble").register(hL()),mi.tagFor(dL)
10022
- class uL extends(YF(XF(KD))){fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}}function pL(e,t){if("number"!=typeof t)return""
10023
- try{return e.format(t)}catch(e){return""}}e([se({attribute:"field-name"})],uL.prototype,"fieldName",void 0)
10024
- class fL extends oL{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.columnConfig?this.text=pL(this.columnConfig.formatter,this.groupHeaderValue):this.text=""}}const gL=fL.compose({baseName:"table-column-date-text-group-header-view",template:rL,styles:sL})
10025
- mi.getOrCreate().withPrefix("nimble").register(gL())
10026
- const mL=mi.tagFor(fL),vL="left",bL="right",yL=W`
10020
+ class lL extends rL{groupHeaderValueChanged(){this.text="string"==typeof this.groupHeaderValue?this.groupHeaderValue:""}}const cL=lL.compose({baseName:"table-column-text-group-header-view",template:sL,styles:aL})
10021
+ mi.getOrCreate().withPrefix("nimble").register(cL())
10022
+ const dL=mi.tagFor(lL)
10023
+ class hL extends(QF(YF(JD))){constructor(){super(...arguments),this.underlineHidden=!1}getColumnInternalsOptions(){return{cellRecordFieldNames:["label","href"],cellViewTag:oL,groupHeaderViewTag:dL,delegatedEvents:["click"],sortOperation:ZD}}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"})],hL.prototype,"labelFieldName",void 0),e([se({attribute:"href-field-name"})],hL.prototype,"hrefFieldName",void 0),e([se],hL.prototype,"appearance",void 0),e([se({attribute:"underline-hidden",mode:"boolean"})],hL.prototype,"underlineHidden",void 0),e([se],hL.prototype,"hreflang",void 0),e([se],hL.prototype,"ping",void 0),e([se],hL.prototype,"referrerpolicy",void 0),e([se],hL.prototype,"rel",void 0),e([se],hL.prototype,"target",void 0),e([se],hL.prototype,"type",void 0),e([se],hL.prototype,"download",void 0)
10024
+ const uL=hL.compose({baseName:"table-column-anchor",template:XF,styles:GF})
10025
+ mi.getOrCreate().withPrefix("nimble").register(uL()),mi.tagFor(hL)
10026
+ class pL extends(QF(YF(JD))){fieldNameChanged(){this.columnInternals.dataRecordFieldNames=[this.fieldName],this.columnInternals.operandDataRecordFieldName=this.fieldName}}function fL(e,t){if("number"!=typeof t)return""
10027
+ try{return e.format(t)}catch(e){return""}}e([se({attribute:"field-name"})],pL.prototype,"fieldName",void 0)
10028
+ class gL extends rL{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.columnConfig?this.text=fL(this.columnConfig.formatter,this.groupHeaderValue):this.text=""}}const mL=gL.compose({baseName:"table-column-date-text-group-header-view",template:sL,styles:aL})
10029
+ mi.getOrCreate().withPrefix("nimble").register(mL())
10030
+ const vL=mi.tagFor(gL),bL="left",yL="right",wL=W`
10027
10031
  <template
10028
- class="${e=>e.alignment===bL?"right-align":""}"
10032
+ class="${e=>e.alignment===yL?"right-align":""}"
10029
10033
  >
10030
10034
  <span
10031
- ${KF("hasOverflow")}
10035
+ ${JF("hasOverflow")}
10032
10036
  title=${e=>e.hasOverflow&&e.text?e.text:null}
10033
10037
  >
10034
10038
  ${e=>e.text}
10035
10039
  </span>
10036
10040
  </template>
10037
- `,wL=ye`
10041
+ `,xL=ye`
10038
10042
  :host(.right-align) {
10039
10043
  margin-left: auto;
10040
10044
  }
@@ -10047,79 +10051,79 @@ const mL=mi.tagFor(fL),vL="left",bL="right",yL=W`
10047
10051
  text-overflow: ellipsis;
10048
10052
  }
10049
10053
  `
10050
- class xL extends UD{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.alignment=vL}}e([m],xL.prototype,"hasOverflow",void 0),e([m],xL.prototype,"text",void 0),e([m],xL.prototype,"alignment",void 0)
10051
- class kL extends xL{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){this.columnConfig?this.text=pL(this.columnConfig.formatter,this.cellRecord?.value):this.text=""}}const CL=kL.compose({baseName:"table-column-date-text-cell-view",template:yL,styles:wL})
10052
- mi.getOrCreate().withPrefix("nimble").register(CL())
10053
- const SL=mi.tagFor(kL),$L=void 0
10054
- class ML extends DF{isValid(){return this.noneTracked()}getValidationFlags(){return this.getTrackedItems()}}class _L extends ML{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 AL=["invalidCustomOptionsCombination"]
10055
- class EL extends _L{constructor(e){super(e,AL)}setCustomOptionsValidity(e){this.setConditionValue("invalidCustomOptionsCombination",!e)}}const IL={toView:e=>"boolean"==typeof e?e.toString():null,fromView:e=>"true"===e||!0===e||"false"!==e&&!1!==e&&void 0}
10056
- class OL extends uL{constructor(){super(...arguments),this.validator=new EL(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),oa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),oa.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:SL,groupHeaderViewTag:mL,delegatedEvents:[],sortOperation:BD}}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()
10054
+ class kL extends WD{constructor(){super(...arguments),this.hasOverflow=!1,this.text="",this.alignment=bL}}e([m],kL.prototype,"hasOverflow",void 0),e([m],kL.prototype,"text",void 0),e([m],kL.prototype,"alignment",void 0)
10055
+ class CL extends kL{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){this.columnConfig?this.text=fL(this.columnConfig.formatter,this.cellRecord?.value):this.text=""}}const SL=CL.compose({baseName:"table-column-date-text-cell-view",template:wL,styles:xL})
10056
+ mi.getOrCreate().withPrefix("nimble").register(SL())
10057
+ const $L=mi.tagFor(CL),ML=void 0
10058
+ class _L extends FF{isValid(){return this.noneTracked()}getValidationFlags(){return this.getTrackedItems()}}class AL extends _L{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 EL=["invalidCustomOptionsCombination"]
10059
+ class IL extends AL{constructor(e){super(e,EL)}setCustomOptionsValidity(e){this.setConditionValue("invalidCustomOptionsCombination",!e)}}const OL={toView:e=>"boolean"==typeof e?e.toString():null,fromView:e=>"true"===e||!0===e||"false"!==e&&!1!==e&&void 0}
10060
+ class TL extends pL{constructor(){super(...arguments),this.validator=new IL(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),oa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),oa.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:$L,groupHeaderViewTag:vL,delegatedEvents:[],sortOperation:qD}}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()
10057
10061
  if(e){const t={formatter:e}
10058
10062
  this.columnInternals.columnConfig=t,this.validator.setCustomOptionsValidity(!0)}else this.columnInternals.columnConfig=void 0,this.validator.setCustomOptionsValidity(!1)}createFormatter(){let e
10059
- e=this.format===$L?{dateStyle:"medium",timeStyle:"medium"}:this.getCustomFormattingOptions()
10060
- try{return new Intl.DateTimeFormat(oa.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],OL.prototype,"format",void 0),e([se({attribute:"custom-locale-matcher"})],OL.prototype,"customLocaleMatcher",void 0),e([se({attribute:"custom-weekday"})],OL.prototype,"customWeekday",void 0),e([se({attribute:"custom-era"})],OL.prototype,"customEra",void 0),e([se({attribute:"custom-year"})],OL.prototype,"customYear",void 0),e([se({attribute:"custom-month"})],OL.prototype,"customMonth",void 0),e([se({attribute:"custom-day"})],OL.prototype,"customDay",void 0),e([se({attribute:"custom-hour"})],OL.prototype,"customHour",void 0),e([se({attribute:"custom-minute"})],OL.prototype,"customMinute",void 0),e([se({attribute:"custom-second"})],OL.prototype,"customSecond",void 0),e([se({attribute:"custom-time-zone-name"})],OL.prototype,"customTimeZoneName",void 0),e([se({attribute:"custom-format-matcher"})],OL.prototype,"customFormatMatcher",void 0),e([se({attribute:"custom-hour12",converter:IL})],OL.prototype,"customHour12",void 0),e([se({attribute:"custom-time-zone"})],OL.prototype,"customTimeZone",void 0),e([se({attribute:"custom-calendar"})],OL.prototype,"customCalendar",void 0),e([se({attribute:"custom-day-period"})],OL.prototype,"customDayPeriod",void 0),e([se({attribute:"custom-numbering-system"})],OL.prototype,"customNumberingSystem",void 0),e([se({attribute:"custom-date-style"})],OL.prototype,"customDateStyle",void 0),e([se({attribute:"custom-time-style"})],OL.prototype,"customTimeStyle",void 0),e([se({attribute:"custom-hour-cycle"})],OL.prototype,"customHourCycle",void 0)
10061
- const TL=OL.compose({baseName:"table-column-date-text",template:JF,styles:WF})
10062
- mi.getOrCreate().withPrefix("nimble").register(TL()),mi.tagFor(OL)
10063
- const RL=(e,t)=>{if("number"===t){const t=oe.fromView(e)
10063
+ e=this.format===ML?{dateStyle:"medium",timeStyle:"medium"}:this.getCustomFormattingOptions()
10064
+ try{return new Intl.DateTimeFormat(oa.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],TL.prototype,"format",void 0),e([se({attribute:"custom-locale-matcher"})],TL.prototype,"customLocaleMatcher",void 0),e([se({attribute:"custom-weekday"})],TL.prototype,"customWeekday",void 0),e([se({attribute:"custom-era"})],TL.prototype,"customEra",void 0),e([se({attribute:"custom-year"})],TL.prototype,"customYear",void 0),e([se({attribute:"custom-month"})],TL.prototype,"customMonth",void 0),e([se({attribute:"custom-day"})],TL.prototype,"customDay",void 0),e([se({attribute:"custom-hour"})],TL.prototype,"customHour",void 0),e([se({attribute:"custom-minute"})],TL.prototype,"customMinute",void 0),e([se({attribute:"custom-second"})],TL.prototype,"customSecond",void 0),e([se({attribute:"custom-time-zone-name"})],TL.prototype,"customTimeZoneName",void 0),e([se({attribute:"custom-format-matcher"})],TL.prototype,"customFormatMatcher",void 0),e([se({attribute:"custom-hour12",converter:OL})],TL.prototype,"customHour12",void 0),e([se({attribute:"custom-time-zone"})],TL.prototype,"customTimeZone",void 0),e([se({attribute:"custom-calendar"})],TL.prototype,"customCalendar",void 0),e([se({attribute:"custom-day-period"})],TL.prototype,"customDayPeriod",void 0),e([se({attribute:"custom-numbering-system"})],TL.prototype,"customNumberingSystem",void 0),e([se({attribute:"custom-date-style"})],TL.prototype,"customDateStyle",void 0),e([se({attribute:"custom-time-style"})],TL.prototype,"customTimeStyle",void 0),e([se({attribute:"custom-hour-cycle"})],TL.prototype,"customHourCycle",void 0)
10065
+ const RL=TL.compose({baseName:"table-column-date-text",template:XF,styles:GF})
10066
+ mi.getOrCreate().withPrefix("nimble").register(RL()),mi.tagFor(TL)
10067
+ const DL=(e,t)=>{if("number"===t){const t=oe.fromView(e)
10064
10068
  return null===t?void 0:t}return"boolean"===t?!1!==e&&"false"!==e&&(!0===e||"true"===e||void 0):e?.toString()??void 0}
10065
- class DL extends KD{constructor(){super(...arguments),this.validator=this.createValidator(),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(e,t){e instanceof Lb&&"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
10066
- return this.mappings.forEach((t=>{const n=RL(t.key,this.keyType)
10069
+ class FL extends JD{constructor(){super(...arguments),this.validator=this.createValidator(),this.mappingNotifiers=[],this.mappings=[],this.keyType="string"}handleChange(e,t){e instanceof Lb&&"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
10070
+ return this.mappings.forEach((t=>{const n=DL(t.key,this.keyType)
10067
10071
  if(void 0===n)throw Error("Key was invalid for type. Validation should have prevented this.")
10068
10072
  const i=this.createMappingConfig(t)
10069
10073
  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()
10070
10074
  for(const e of this.mappings){const t=g.getNotifier(e)
10071
- t.subscribe(this),this.mappingNotifiers.push(t)}}}e([m],DL.prototype,"mappings",void 0),e([se({attribute:"field-name"})],DL.prototype,"fieldName",void 0),e([se({attribute:"key-type"})],DL.prototype,"keyType",void 0)
10072
- const FL=ye`
10073
- ${WF}
10075
+ t.subscribe(this),this.mappingNotifiers.push(t)}}}e([m],FL.prototype,"mappings",void 0),e([se({attribute:"field-name"})],FL.prototype,"fieldName",void 0),e([se({attribute:"key-type"})],FL.prototype,"keyType",void 0)
10076
+ const LL=ye`
10077
+ ${GF}
10074
10078
 
10075
10079
  slot[name='mapping'] {
10076
10080
  display: none;
10077
10081
  }
10078
- `,LL=W`${JF}<slot ${Ge("mappings")} name="mapping"></slot>`,NL=["invalidMappingKeyValueForType","unsupportedMappingType","duplicateMappingKey","missingKeyValue","missingTextValue"]
10079
- class PL extends _L{constructor(e,t,n){super(e,t),this.supportedMappingElements=n}validate(e,t){this.untrackAll()
10082
+ `,NL=W`${XF}<slot ${Ge("mappings")} name="mapping"></slot>`,PL=["invalidMappingKeyValueForType","unsupportedMappingType","duplicateMappingKey","missingKeyValue","missingTextValue"]
10083
+ class zL extends AL{constructor(e,t,n){super(e,t),this.supportedMappingElements=n}validate(e,t){this.untrackAll()
10080
10084
  const n=e.map((e=>e.key))
10081
- this.validateKeyValuesForType(n,t),this.validateMappingTypes(e),this.validateUniqueKeys(n,t),this.validateNoMissingKeys(e),this.validateNoMissingText(e)}validateKeyValuesForType(e,t){const n=e.some((e=>void 0!==e&&void 0===RL(e,t)))
10085
+ this.validateKeyValuesForType(n,t),this.validateMappingTypes(e),this.validateUniqueKeys(n,t),this.validateNoMissingKeys(e),this.validateNoMissingText(e)}validateKeyValuesForType(e,t){const n=e.some((e=>void 0!==e&&void 0===DL(e,t)))
10082
10086
  this.setConditionValue("invalidMappingKeyValueForType",n)}validateMappingTypes(e){const t=e.every((e=>this.supportedMappingElements.some((t=>e instanceof t))))
10083
- this.setConditionValue("unsupportedMappingType",!t)}validateUniqueKeys(e,t){const n=e.map((e=>RL(e,t))),i=new Set(n).size!==n.length
10087
+ this.setConditionValue("unsupportedMappingType",!t)}validateUniqueKeys(e,t){const n=e.map((e=>DL(e,t))),i=new Set(n).size!==n.length
10084
10088
  this.setConditionValue("duplicateMappingKey",i)}validateNoMissingKeys(e){const t=e.some((e=>void 0===e.key))
10085
10089
  this.setConditionValue("missingKeyValue",t)}validateNoMissingText(e){const t=e.some((e=>void 0===e.text))
10086
- this.setConditionValue("missingTextValue",t)}}const zL=[...NL]
10087
- class VL extends PL{constructor(e){super(e,zL,[Pb])}}class HL{constructor(e){this.text=e}}class BL extends HL{}class qL extends xL{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){const e=this.cellRecord?.value
10090
+ this.setConditionValue("missingTextValue",t)}}const VL=[...PL]
10091
+ class HL extends zL{constructor(e){super(e,VL,[Pb])}}class BL{constructor(e){this.text=e}}class qL extends BL{}class ZL extends kL{columnConfigChanged(){this.updateText()}cellRecordChanged(){this.updateText()}updateText(){const e=this.cellRecord?.value
10088
10092
  if(null==e)return void(this.text="")
10089
10093
  const t=this.columnConfig?.mappingConfigs.get(e)
10090
- this.text=t instanceof BL&&t.text?t.text:""}}const ZL=qL.compose({baseName:"table-column-enum-text-cell-view",template:yL,styles:wL})
10091
- mi.getOrCreate().withPrefix("nimble").register(ZL())
10092
- const jL=mi.tagFor(qL)
10093
- class UL extends oL{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){const e=this.groupHeaderValue
10094
+ this.text=t instanceof qL&&t.text?t.text:""}}const jL=ZL.compose({baseName:"table-column-enum-text-cell-view",template:wL,styles:xL})
10095
+ mi.getOrCreate().withPrefix("nimble").register(jL())
10096
+ const UL=mi.tagFor(ZL)
10097
+ class WL extends rL{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){const e=this.groupHeaderValue
10094
10098
  if(null==e)return void(this.text="")
10095
10099
  const t=this.columnConfig?.mappingConfigs.get(e)
10096
- this.text=t instanceof BL&&t.text?t.text:""}}const WL=UL.compose({baseName:"table-column-enum-text-group-header-view",template:rL,styles:sL})
10097
- mi.getOrCreate().withPrefix("nimble").register(WL())
10098
- const GL=mi.tagFor(UL)
10099
- class KL extends(YF(XF(DL))){createValidator(){return new VL(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:jL,groupHeaderViewTag:GL,delegatedEvents:[],sortOperation:BD}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof Pb)return new BL(e.text)
10100
- throw new Error("Unsupported mapping")}}const JL=KL.compose({baseName:"table-column-enum-text",template:LL,styles:FL})
10101
- mi.getOrCreate().withPrefix("nimble").register(JL()),mi.tagFor(KL)
10102
- class XL extends oL{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter?.formatValue(this.groupHeaderValue)??""}}const YL=XL.compose({baseName:"table-column-number-text-group-header-view",template:rL,styles:sL})
10103
- mi.getOrCreate().withPrefix("nimble").register(YL())
10104
- const QL=mi.tagFor(XL)
10105
- class eN extends xL{columnConfigChanged(){this.updateText(),this.alignment=this.columnConfig?.alignment??vL}cellRecordChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter?.formatValue(this.cellRecord?.value)??""}}const tN=eN.compose({baseName:"table-column-number-text-cell-view",template:yL,styles:wL})
10106
- mi.getOrCreate().withPrefix("nimble").register(tN())
10107
- const nN=mi.tagFor(eN),iN="decimal",oN="left",rN="right"
10108
- class sN{formatValue(e){if("number"!=typeof e)return""
10109
- try{return this.format(e)}catch{return""}}}class aN extends sN{constructor(e){super(),this.defaultFormatter=new Intl.NumberFormat(e,{maximumSignificantDigits:aN.maximumDigits,useGrouping:!0}),this.leadingZeroFormatter=new Intl.NumberFormat(e,{maximumFractionDigits:aN.maximumDigits-1,useGrouping:!0}),this.exponentialFormatter=new Intl.NumberFormat(e,{maximumSignificantDigits:aN.maximumDigits,notation:"scientific"})}format(e){const t=0===e?0:e
10100
+ this.text=t instanceof qL&&t.text?t.text:""}}const GL=WL.compose({baseName:"table-column-enum-text-group-header-view",template:sL,styles:aL})
10101
+ mi.getOrCreate().withPrefix("nimble").register(GL())
10102
+ const KL=mi.tagFor(WL)
10103
+ class JL extends(QF(YF(FL))){createValidator(){return new HL(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:UL,groupHeaderViewTag:KL,delegatedEvents:[],sortOperation:qD}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof Pb)return new qL(e.text)
10104
+ throw new Error("Unsupported mapping")}}const XL=JL.compose({baseName:"table-column-enum-text",template:NL,styles:LL})
10105
+ mi.getOrCreate().withPrefix("nimble").register(XL()),mi.tagFor(JL)
10106
+ class YL extends rL{columnConfigChanged(){this.updateText()}groupHeaderValueChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter?.formatValue(this.groupHeaderValue)??""}}const QL=YL.compose({baseName:"table-column-number-text-group-header-view",template:sL,styles:aL})
10107
+ mi.getOrCreate().withPrefix("nimble").register(QL())
10108
+ const eN=mi.tagFor(YL)
10109
+ class tN extends kL{columnConfigChanged(){this.updateText(),this.alignment=this.columnConfig?.alignment??bL}cellRecordChanged(){this.updateText()}updateText(){this.text=this.columnConfig?.formatter?.formatValue(this.cellRecord?.value)??""}}const nN=tN.compose({baseName:"table-column-number-text-cell-view",template:wL,styles:xL})
10110
+ mi.getOrCreate().withPrefix("nimble").register(nN())
10111
+ const iN=mi.tagFor(tN),oN="decimal",rN="left",sN="right"
10112
+ class aN{formatValue(e){if("number"!=typeof e)return""
10113
+ try{return this.format(e)}catch{return""}}}class lN extends aN{constructor(e){super(),this.defaultFormatter=new Intl.NumberFormat(e,{maximumSignificantDigits:lN.maximumDigits,useGrouping:!0}),this.leadingZeroFormatter=new Intl.NumberFormat(e,{maximumFractionDigits:lN.maximumDigits-1,useGrouping:!0}),this.exponentialFormatter=new Intl.NumberFormat(e,{maximumSignificantDigits:lN.maximumDigits,notation:"scientific"})}format(e){const t=0===e?0:e
10110
10114
  return this.getFormatterForNumber(t).format(t)}getFormatterForNumber(e){if(0===e)return this.defaultFormatter
10111
10115
  const t=Math.abs(e)
10112
- return t>=aN.exponentialUpperBound||t<aN.exponentialLowerBound?this.exponentialFormatter:t<1?this.leadingZeroFormatter:this.defaultFormatter}}aN.maximumDigits=6,aN.exponentialLowerBound=995e-6,aN.exponentialUpperBound=999999.5
10113
- class lN extends sN{constructor(e,t){super(),this.formatter=new Intl.NumberFormat(e,{maximumFractionDigits:t,minimumFractionDigits:t,useGrouping:!0}),this.tenPowDecimalDigits=10**t}format(e){const t=this.willRoundToZero(e)?0:e
10114
- return this.formatter.format(t)}willRoundToZero(e){return 0===Math.round(e*this.tenPowDecimalDigits)}}const cN=["invalidDecimalDigits"]
10115
- class dN extends _L{constructor(e){super(e,cN)}validateDecimalDigits(e,t){const n=!!(e===iN&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
10116
- this.setConditionValue("invalidDecimalDigits",n)}isInvalidDecimalDigitsValue(e){return e<0||e>20}}class hN extends uL{constructor(){super(...arguments),this.validator=new dN(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),oa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),oa.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:nN,groupHeaderViewTag:QL,delegatedEvents:[],sortOperation:BD}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}updateColumnConfig(){if(this.validator.validateDecimalDigits(this.format,this.decimalDigits),this.validator.isValid()){const e={formatter:this.createFormatter(),alignment:this.determineCellContentAlignment()}
10117
- this.columnInternals.columnConfig=e}else this.columnInternals.columnConfig=void 0}createFormatter(){return this.format===iN?new lN(oa.getValueFor(this),this.decimalDigits??2):new aN(oa.getValueFor(this))}determineCellContentAlignment(){return this.alignment===oN?vL:this.alignment===rN||this.format===iN?bL:vL}}e([se],hN.prototype,"format",void 0),e([se],hN.prototype,"alignment",void 0),e([se({attribute:"decimal-digits",converter:oe})],hN.prototype,"decimalDigits",void 0)
10118
- const uN=hN.compose({baseName:"table-column-number-text",template:JF,styles:WF})
10119
- mi.getOrCreate().withPrefix("nimble").register(uN()),mi.tagFor(hN)
10120
- const pN=[...NL,"invalidIconName"]
10121
- class fN extends PL{constructor(e){super(e,pN,[Hb,qb])}validate(e,t){super.validate(e,t),this.validateIconNames(e)}validateIconNames(e){const t=e.filter((e=>e instanceof Hb)).some((e=>void 0===e.resolvedIcon))
10122
- this.setConditionValue("invalidIconName",t)}}const gN=ye`
10116
+ return t>=lN.exponentialUpperBound||t<lN.exponentialLowerBound?this.exponentialFormatter:t<1?this.leadingZeroFormatter:this.defaultFormatter}}lN.maximumDigits=6,lN.exponentialLowerBound=995e-6,lN.exponentialUpperBound=999999.5
10117
+ class cN extends aN{constructor(e,t){super(),this.formatter=new Intl.NumberFormat(e,{maximumFractionDigits:t,minimumFractionDigits:t,useGrouping:!0}),this.tenPowDecimalDigits=10**t}format(e){const t=this.willRoundToZero(e)?0:e
10118
+ return this.formatter.format(t)}willRoundToZero(e){return 0===Math.round(e*this.tenPowDecimalDigits)}}const dN=["invalidDecimalDigits"]
10119
+ class hN extends AL{constructor(e){super(e,dN)}validateDecimalDigits(e,t){const n=!!(e===oN&&"number"==typeof t)&&this.isInvalidDecimalDigitsValue(t)
10120
+ this.setConditionValue("invalidDecimalDigits",n)}isInvalidDecimalDigitsValue(e){return e<0||e>20}}class uN extends pL{constructor(){super(...arguments),this.validator=new hN(this.columnInternals),this.langSubscriber={handleChange:()=>{this.updateColumnConfig()}}}connectedCallback(){super.connectedCallback(),oa.subscribe(this.langSubscriber,this),this.updateColumnConfig()}disconnectedCallback(){super.disconnectedCallback(),oa.unsubscribe(this.langSubscriber,this)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:iN,groupHeaderViewTag:eN,delegatedEvents:[],sortOperation:qD}}formatChanged(){this.updateColumnConfig()}alignmentChanged(){this.updateColumnConfig()}decimalDigitsChanged(){this.updateColumnConfig()}updateColumnConfig(){if(this.validator.validateDecimalDigits(this.format,this.decimalDigits),this.validator.isValid()){const e={formatter:this.createFormatter(),alignment:this.determineCellContentAlignment()}
10121
+ this.columnInternals.columnConfig=e}else this.columnInternals.columnConfig=void 0}createFormatter(){return this.format===oN?new cN(oa.getValueFor(this),this.decimalDigits??2):new lN(oa.getValueFor(this))}determineCellContentAlignment(){return this.alignment===rN?bL:this.alignment===sN||this.format===oN?yL:bL}}e([se],uN.prototype,"format",void 0),e([se],uN.prototype,"alignment",void 0),e([se({attribute:"decimal-digits",converter:oe})],uN.prototype,"decimalDigits",void 0)
10122
+ const pN=uN.compose({baseName:"table-column-number-text",template:XF,styles:GF})
10123
+ mi.getOrCreate().withPrefix("nimble").register(pN()),mi.tagFor(uN)
10124
+ const fN=[...PL,"invalidIconName"]
10125
+ class gN extends zL{constructor(e){super(e,fN,[Hb,qb])}validate(e,t){super.validate(e,t),this.validateIconNames(e)}validateIconNames(e){const t=e.filter((e=>e instanceof Hb)).some((e=>void 0===e.resolvedIcon))
10126
+ this.setConditionValue("invalidIconName",t)}}const mN=ye`
10123
10127
  ${Eo("inline-flex")}
10124
10128
 
10125
10129
  :host {
@@ -10139,26 +10143,26 @@ this.setConditionValue("invalidIconName",t)}}const gN=ye`
10139
10143
  overflow: hidden;
10140
10144
  text-overflow: ellipsis;
10141
10145
  }
10142
- `,mN=W`
10146
+ `,vN=W`
10143
10147
  ${Pe((e=>"icon"===e.visual),W`
10144
10148
  ${e=>e.iconTemplate}
10145
10149
  <span
10146
- ${KF("hasOverflow")}
10150
+ ${JF("hasOverflow")}
10147
10151
  title="${e=>e.hasOverflow&&e.text?e.text:null}"
10148
10152
  >${e=>e.text}</span>`)}
10149
10153
  ${Pe((e=>"spinner"===e.visual),W`
10150
- <${RR}
10154
+ <${DR}
10151
10155
  title="${e=>e.text}"
10152
10156
  aria-label="${e=>e.text}"
10153
10157
  class="no-shrink">
10154
- </${RR}>
10158
+ </${DR}>
10155
10159
  <span
10156
- ${KF("hasOverflow")}
10160
+ ${JF("hasOverflow")}
10157
10161
  title="${e=>e.hasOverflow&&e.text?e.text:null}"
10158
10162
  >${e=>e.text}</span>
10159
10163
  `)}
10160
10164
  `
10161
- class vN extends HL{constructor(e,t,n){var i
10165
+ class bN extends BL{constructor(e,t,n){var i
10162
10166
  super(n),this.severity=t,this.iconTemplate=W`
10163
10167
  <${i=e}
10164
10168
  title="${e=>e.text}"
@@ -10166,41 +10170,41 @@ super(n),this.severity=t,this.iconTemplate=W`
10166
10170
  severity="${e=>e.severity}"
10167
10171
  class="no-shrink"
10168
10172
  >
10169
- </${i}>`}}class bN extends HL{constructor(e){super(e)}}class yN extends oL{columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig)return
10173
+ </${i}>`}}class yN extends BL{constructor(e){super(e)}}class wN extends rL{columnConfigChanged(){this.updateState()}groupHeaderValueChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig)return
10170
10174
  const e=this.groupHeaderValue
10171
10175
  if(null==e)return
10172
10176
  const t=this.columnConfig.mappingConfigs.get(e)
10173
- t instanceof vN?(this.visual="icon",this.severity=t.severity,this.text=t.text??"",this.iconTemplate=t.iconTemplate):t instanceof bN&&(this.visual="spinner",this.text=t.text??"")}}e([m],yN.prototype,"severity",void 0),e([m],yN.prototype,"iconTemplate",void 0),e([m],yN.prototype,"visual",void 0)
10174
- const wN=yN.compose({baseName:"table-column-icon-group-header-view",template:mN,styles:gN})
10175
- mi.getOrCreate().withPrefix("nimble").register(wN())
10176
- const xN=mi.tagFor(yN),kN=W`
10177
+ t instanceof bN?(this.visual="icon",this.severity=t.severity,this.text=t.text??"",this.iconTemplate=t.iconTemplate):t instanceof yN&&(this.visual="spinner",this.text=t.text??"")}}e([m],wN.prototype,"severity",void 0),e([m],wN.prototype,"iconTemplate",void 0),e([m],wN.prototype,"visual",void 0)
10178
+ const xN=wN.compose({baseName:"table-column-icon-group-header-view",template:vN,styles:mN})
10179
+ mi.getOrCreate().withPrefix("nimble").register(xN())
10180
+ const kN=mi.tagFor(wN),CN=W`
10177
10181
  ${Pe((e=>"icon"===e.visual),(e=>e.iconTemplate))}
10178
10182
  ${Pe((e=>"spinner"===e.visual),W`
10179
- <${RR}
10183
+ <${DR}
10180
10184
  title="${e=>e.text}"
10181
10185
  aria-label="${e=>e.text}"
10182
10186
  class="no-shrink">
10183
- </${RR}>
10187
+ </${DR}>
10184
10188
  `)}
10185
10189
  `
10186
- class CN extends UD{columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig||!this.cellRecord)return
10190
+ class SN extends WD{columnConfigChanged(){this.updateState()}cellRecordChanged(){this.updateState()}updateState(){if(this.visual=void 0,!this.columnConfig||!this.cellRecord)return
10187
10191
  const e=this.cellRecord.value
10188
10192
  if(null==e)return
10189
10193
  const t=this.columnConfig.mappingConfigs.get(e)
10190
- t instanceof vN?(this.visual="icon",this.severity=t.severity,this.text=t.text,this.iconTemplate=t.iconTemplate):t instanceof bN&&(this.visual="spinner",this.text=t.text)}}e([m],CN.prototype,"severity",void 0),e([m],CN.prototype,"text",void 0),e([m],CN.prototype,"iconTemplate",void 0),e([m],CN.prototype,"visual",void 0)
10191
- const SN=CN.compose({baseName:"table-column-icon-cell-view",template:kN})
10192
- mi.getOrCreate().withPrefix("nimble").register(SN())
10193
- const $N=mi.tagFor(CN)
10194
- class MN extends(YF(XF(DL))){createValidator(){return new fN(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:$N,groupHeaderViewTag:xN,delegatedEvents:[],sortOperation:BD}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof Hb){if(!e.resolvedIcon)throw Error("Unresolved icon")
10195
- return new vN(e.resolvedIcon,e.severity,e.text)}if(e instanceof qb)return new bN(e.text)
10196
- throw new Error("Unsupported mapping")}}const _N=MN.compose({baseName:"table-column-icon",template:LL,styles:FL})
10197
- mi.getOrCreate().withPrefix("nimble").register(_N()),mi.tagFor(MN)
10198
- class AN extends xL{cellRecordChanged(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}const EN=AN.compose({baseName:"table-column-text-cell-view",template:yL,styles:wL})
10199
- mi.getOrCreate().withPrefix("nimble").register(EN())
10200
- const IN=mi.tagFor(AN)
10201
- class ON extends uL{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:IN,groupHeaderViewTag:cL,delegatedEvents:[],sortOperation:qD}}}const TN=ON.compose({baseName:"table-column-text",template:JF,styles:WF})
10202
- mi.getOrCreate().withPrefix("nimble").register(TN()),mi.tagFor(ON)
10203
- const RN=ye`
10194
+ t instanceof bN?(this.visual="icon",this.severity=t.severity,this.text=t.text,this.iconTemplate=t.iconTemplate):t instanceof yN&&(this.visual="spinner",this.text=t.text)}}e([m],SN.prototype,"severity",void 0),e([m],SN.prototype,"text",void 0),e([m],SN.prototype,"iconTemplate",void 0),e([m],SN.prototype,"visual",void 0)
10195
+ const $N=SN.compose({baseName:"table-column-icon-cell-view",template:CN})
10196
+ mi.getOrCreate().withPrefix("nimble").register($N())
10197
+ const MN=mi.tagFor(SN)
10198
+ class _N extends(QF(YF(FL))){createValidator(){return new gN(this.columnInternals)}get validity(){return this.validator.getValidity()}getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:MN,groupHeaderViewTag:kN,delegatedEvents:[],sortOperation:qD}}createColumnConfig(e){return{mappingConfigs:e}}createMappingConfig(e){if(e instanceof Hb){if(!e.resolvedIcon)throw Error("Unresolved icon")
10199
+ return new bN(e.resolvedIcon,e.severity,e.text)}if(e instanceof qb)return new yN(e.text)
10200
+ throw new Error("Unsupported mapping")}}const AN=_N.compose({baseName:"table-column-icon",template:NL,styles:LL})
10201
+ mi.getOrCreate().withPrefix("nimble").register(AN()),mi.tagFor(_N)
10202
+ class EN extends kL{cellRecordChanged(){this.text="string"==typeof this.cellRecord?.value?this.cellRecord.value:""}}const IN=EN.compose({baseName:"table-column-text-cell-view",template:wL,styles:xL})
10203
+ mi.getOrCreate().withPrefix("nimble").register(IN())
10204
+ const ON=mi.tagFor(EN)
10205
+ class TN extends pL{getColumnInternalsOptions(){return{cellRecordFieldNames:["value"],cellViewTag:ON,groupHeaderViewTag:dL,delegatedEvents:[],sortOperation:ZD}}}const RN=TN.compose({baseName:"table-column-text",template:XF,styles:GF})
10206
+ mi.getOrCreate().withPrefix("nimble").register(RN()),mi.tagFor(TN)
10207
+ const DN=ye`
10204
10208
  ${Eo("grid")}
10205
10209
 
10206
10210
  :host {
@@ -10228,7 +10232,7 @@ const RN=ye`
10228
10232
  overflow: auto;
10229
10233
  }
10230
10234
  `
10231
- class DN extends no{constructor(){super(),this.activeindicator=!1}}const FN=DN.compose({baseName:"tabs",baseClass:no,template:(e,t)=>W`
10235
+ class FN extends no{constructor(){super(),this.activeindicator=!1}}const LN=FN.compose({baseName:"tabs",baseClass:no,template:(e,t)=>W`
10232
10236
  <template class="${e=>e.orientation}">
10233
10237
  ${Qe(0,t)}
10234
10238
  <div class="tablist" part="tablist" role="tablist">
@@ -10247,9 +10251,9 @@ class DN extends no{constructor(){super(),this.activeindicator=!1}}const FN=DN.c
10247
10251
  <slot name="tabpanel" ${Ge("tabpanels")}></slot>
10248
10252
  </div>
10249
10253
  </template>
10250
- `,styles:RN})
10251
- mi.getOrCreate().withPrefix("nimble").register(FN()),mi.tagFor(DN)
10252
- const LN=ye`
10254
+ `,styles:DN})
10255
+ mi.getOrCreate().withPrefix("nimble").register(LN()),mi.tagFor(FN)
10256
+ const NN=ye`
10253
10257
  ${Eo("flex")}
10254
10258
 
10255
10259
  :host {
@@ -10267,15 +10271,15 @@ const LN=ye`
10267
10271
  rgba(${ba}, 0.3);
10268
10272
  margin: calc(${Pa} / 4) calc(${Pa} / 2);
10269
10273
  }
10270
- `,NN=W`
10274
+ `,PN=W`
10271
10275
  <template slot="end">
10272
10276
  <div class="separator"></div>
10273
10277
  <slot></slot>
10274
10278
  </template>
10275
10279
  `
10276
- class PN extends Nt{}const zN=PN.compose({baseName:"tabs-toolbar",template:NN,styles:LN})
10277
- mi.getOrCreate().withPrefix("nimble").register(zN()),mi.tagFor(PN)
10278
- const VN="outline",HN="block",BN=ye`
10280
+ class zN extends Nt{}const VN=zN.compose({baseName:"tabs-toolbar",template:PN,styles:NN})
10281
+ mi.getOrCreate().withPrefix("nimble").register(VN()),mi.tagFor(zN)
10282
+ const HN="outline",BN="block",qN=ye`
10279
10283
  ${Eo("inline-flex")}
10280
10284
  ${Kf}
10281
10285
 
@@ -10415,12 +10419,12 @@ const VN="outline",HN="block",BN=ye`
10415
10419
  top: calc(${Pa} / 2);
10416
10420
  right: var(--ni-private-scrollbar-width);
10417
10421
  }
10418
- `.withBehaviors(Cd(VN,ye`
10422
+ `.withBehaviors(Cd(HN,ye`
10419
10423
  .control {
10420
10424
  border-color: rgba(${ba}, 0.3);
10421
10425
  background-color: transparent;
10422
10426
  }
10423
- `),Cd(HN,ye`
10427
+ `),Cd(BN,ye`
10424
10428
  .control {
10425
10429
  background-color: rgba(${ba}, 0.1);
10426
10430
  }
@@ -10438,8 +10442,8 @@ const VN="outline",HN="block",BN=ye`
10438
10442
  border-bottom-color: ${ya};
10439
10443
  }
10440
10444
  `))
10441
- class qN extends so{constructor(){super(...arguments),this.appearance=VN,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}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],qN.prototype,"appearance",void 0),e([se({attribute:"error-text"})],qN.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],qN.prototype,"errorVisible",void 0),e([m],qN.prototype,"scrollbarWidth",void 0)
10442
- const ZN=qN.compose({baseName:"text-area",baseClass:so,template:()=>W`
10445
+ class ZN extends so{constructor(){super(...arguments),this.appearance=HN,this.errorVisible=!1,this.scrollbarWidth=-1,this.updateScrollbarWidthQueued=!1}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>this.onResize())),this.resizeObserver.observe(this)}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],ZN.prototype,"appearance",void 0),e([se({attribute:"error-text"})],ZN.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],ZN.prototype,"errorVisible",void 0),e([m],ZN.prototype,"scrollbarWidth",void 0)
10446
+ const jN=ZN.compose({baseName:"text-area",baseClass:so,template:()=>W`
10443
10447
  <label
10444
10448
  part="label"
10445
10449
  for="control"
@@ -10496,9 +10500,9 @@ const ZN=qN.compose({baseName:"text-area",baseClass:so,template:()=>W`
10496
10500
  ></${af}>
10497
10501
  ${Hf}
10498
10502
  </div>
10499
- `,styles:BN,shadowOptions:{delegatesFocus:!0}})
10500
- mi.getOrCreate().withPrefix("nimble").register(ZN()),mi.tagFor(qN)
10501
- const jN="underline",UN="outline",WN="block",GN="frameless",KN=ye`
10503
+ `,styles:qN,shadowOptions:{delegatesFocus:!0}})
10504
+ mi.getOrCreate().withPrefix("nimble").register(jN()),mi.tagFor(ZN)
10505
+ const UN="underline",WN="outline",GN="block",KN="frameless",JN=ye`
10502
10506
  ${Eo("inline-block")}
10503
10507
  ${Kf}
10504
10508
 
@@ -10670,12 +10674,12 @@ const jN="underline",UN="outline",WN="block",GN="frameless",KN=ye`
10670
10674
  slot[name='actions']::slotted(*) {
10671
10675
  ${Fa.cssCustomProperty}: 24px;
10672
10676
  }
10673
- `.withBehaviors(Cd(jN,ye`
10677
+ `.withBehaviors(Cd(UN,ye`
10674
10678
  .root {
10675
10679
  border-bottom-width: ${za};
10676
10680
  padding-bottom: 0;
10677
10681
  }
10678
- `),Cd(WN,ye`
10682
+ `),Cd(GN,ye`
10679
10683
  .root {
10680
10684
  background-color: rgba(${ba}, 0.1);
10681
10685
  }
@@ -10703,12 +10707,12 @@ const jN="underline",UN="outline",WN="block",GN="frameless",KN=ye`
10703
10707
  :host([disabled]) .root {
10704
10708
  background-color: rgba(${ba}, 0.07);
10705
10709
  }
10706
- `),Cd(UN,ye`
10710
+ `),Cd(WN,ye`
10707
10711
  .root {
10708
10712
  border-width: ${za};
10709
10713
  padding: 0;
10710
10714
  }
10711
- `),Cd(GN,ye`
10715
+ `),Cd(KN,ye`
10712
10716
  .control {
10713
10717
  padding-left: ${za};
10714
10718
  padding-right: ${za};
@@ -10726,8 +10730,8 @@ const jN="underline",UN="outline",WN="block",GN="frameless",KN=ye`
10726
10730
  filter: invert(100%);
10727
10731
  }
10728
10732
  `))
10729
- class JN extends Li{constructor(){super(...arguments),this.appearance=jN,this.errorVisible=!1,this.fullBleed=!1}}e([se],JN.prototype,"appearance",void 0),e([se({attribute:"error-text"})],JN.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],JN.prototype,"errorVisible",void 0),e([se({attribute:"full-bleed",mode:"boolean"})],JN.prototype,"fullBleed",void 0)
10730
- const XN=JN.compose({baseName:"text-field",baseClass:Li,template:(e,t)=>W`
10733
+ class XN extends Li{constructor(){super(...arguments),this.appearance=UN,this.errorVisible=!1,this.fullBleed=!1}}e([se],XN.prototype,"appearance",void 0),e([se({attribute:"error-text"})],XN.prototype,"errorText",void 0),e([se({attribute:"error-visible",mode:"boolean"})],XN.prototype,"errorVisible",void 0),e([se({attribute:"full-bleed",mode:"boolean"})],XN.prototype,"fullBleed",void 0)
10734
+ const YN=XN.compose({baseName:"text-field",baseClass:Li,template:(e,t)=>W`
10731
10735
  <template
10732
10736
  class="
10733
10737
  ${e=>e.readOnly?"readonly":""}
@@ -10787,7 +10791,7 @@ const XN=JN.compose({baseName:"text-field",baseClass:Li,template:(e,t)=>W`
10787
10791
  ${Ye(0,t)}
10788
10792
  </div>
10789
10793
  </template>
10790
- `,styles:KN,shadowOptions:{delegatesFocus:!0},end:W`
10794
+ `,styles:JN,shadowOptions:{delegatesFocus:!0},end:W`
10791
10795
  <${af}
10792
10796
  severity="error"
10793
10797
  class="error-icon"
@@ -10797,8 +10801,8 @@ const XN=JN.compose({baseName:"text-field",baseClass:Li,template:(e,t)=>W`
10797
10801
  </span>
10798
10802
  ${Hf}
10799
10803
  `})
10800
- mi.getOrCreate().withPrefix("nimble").register(XN()),mi.tagFor(JN)
10801
- const YN=ye`
10804
+ mi.getOrCreate().withPrefix("nimble").register(YN()),mi.tagFor(XN)
10805
+ const QN=ye`
10802
10806
  ${Eo("inline-flex")}
10803
10807
 
10804
10808
  :host {
@@ -10883,7 +10887,7 @@ const YN=ye`
10883
10887
  .status-icon {
10884
10888
  opacity: 0.6;
10885
10889
  }
10886
- `)),QN=W`
10890
+ `)),eP=W`
10887
10891
  ${Pe((e=>e.tooltipVisible),W`
10888
10892
  <${Ud}
10889
10893
  class="anchored-region"
@@ -10916,11 +10920,11 @@ const YN=ye`
10916
10920
  </${Ud}>
10917
10921
  `)}
10918
10922
  `
10919
- class eP extends $o{constructor(){super(...arguments),this.iconVisible=!1}}e([se],eP.prototype,"severity",void 0),e([se({attribute:"icon-visible",mode:"boolean"})],eP.prototype,"iconVisible",void 0)
10920
- const tP=eP.compose({baseName:"tooltip",baseClass:$o,template:QN,styles:YN})
10921
- mi.getOrCreate().withPrefix("nimble").register(tP()),mi.tagFor(eP)
10922
- const nP="group-selected",iP="all",oP="leaves-only",rP="none"
10923
- class sP{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 aP=ye`
10923
+ class tP extends $o{constructor(){super(...arguments),this.iconVisible=!1}}e([se],tP.prototype,"severity",void 0),e([se({attribute:"icon-visible",mode:"boolean"})],tP.prototype,"iconVisible",void 0)
10924
+ const nP=tP.compose({baseName:"tooltip",baseClass:$o,template:eP,styles:QN})
10925
+ mi.getOrCreate().withPrefix("nimble").register(nP()),mi.tagFor(tP)
10926
+ const iP="group-selected",oP="all",rP="leaves-only",sP="none"
10927
+ class aP{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 lP=ye`
10924
10928
  ${Eo("block")}
10925
10929
 
10926
10930
  :host {
@@ -10936,7 +10940,7 @@ class sP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
10936
10940
  }
10937
10941
 
10938
10942
  ${""}
10939
- :host([${nP}])::after {
10943
+ :host([${iP}])::after {
10940
10944
  background: ${Ca};
10941
10945
  border-radius: 0px;
10942
10946
  content: '';
@@ -10958,7 +10962,7 @@ class sP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
10958
10962
  background: ${ma};
10959
10963
  }
10960
10964
 
10961
- :host([${nP}]) .positioning-region:hover {
10965
+ :host([${iP}]) .positioning-region:hover {
10962
10966
  background: ${ga};
10963
10967
  }
10964
10968
 
@@ -11066,7 +11070,7 @@ class sP{constructor(e,t,n){this.ltr=e,this.rtl=t,this.source=n,this.attached=nu
11066
11070
  display: block;
11067
11071
  }
11068
11072
  `.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)
11069
- t&&ra.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new sP(this.ltr,this.rtl,e),n=ra.getValueFor(e)
11073
+ t&&ra.unsubscribe(t)}attach(e){const t=this.cache.get(e)||new aP(this.ltr,this.rtl,e),n=ra.getValueFor(e)
11070
11074
  ra.subscribe(t),t.attach(n),this.cache.set(e,t)}}(ye`
11071
11075
  .expand-collapse-button {
11072
11076
  left: var(
@@ -11098,8 +11102,8 @@ ra.subscribe(t),t.attach(n),this.cache.set(e,t)}}(ye`
11098
11102
  transform: rotate(135deg);
11099
11103
  }
11100
11104
  `))
11101
- class lP extends _o{constructor(){super(...arguments),this.groupSelected=!1}}e([se({attribute:"group-selected",mode:"boolean"})],lP.prototype,"groupSelected",void 0)
11102
- const cP=lP.compose({baseName:"tree-item",baseClass:_o,template:(e,t)=>W`
11105
+ class cP extends _o{constructor(){super(...arguments),this.groupSelected=!1}}e([se({attribute:"group-selected",mode:"boolean"})],cP.prototype,"groupSelected",void 0)
11106
+ const dP=cP.compose({baseName:"tree-item",baseClass:_o,template:(e,t)=>W`
11103
11107
  <template
11104
11108
  role="treeitem"
11105
11109
  slot="${e=>e.isNestedItem()?"item":void 0}"
@@ -11139,9 +11143,9 @@ const cP=lP.compose({baseName:"tree-item",baseClass:_o,template:(e,t)=>W`
11139
11143
  </div>
11140
11144
  `)}
11141
11145
  </template>
11142
- `,styles:aP,expandCollapseGlyph:ah.data})
11143
- mi.getOrCreate().withPrefix("nimble").register(cP()),mi.tagFor(lP)
11144
- const dP=ye`
11146
+ `,styles:lP,expandCollapseGlyph:ah.data})
11147
+ mi.getOrCreate().withPrefix("nimble").register(dP()),mi.tagFor(cP)
11148
+ const hP=ye`
11145
11149
  ${Eo("flex")}
11146
11150
 
11147
11151
  :host {
@@ -11153,7 +11157,7 @@ const dP=ye`
11153
11157
  :host(${To}) {
11154
11158
  outline: none;
11155
11159
  }
11156
- `,hP=W`
11160
+ `,uP=W`
11157
11161
  <template
11158
11162
  role="tree"
11159
11163
  ${De("treeView")}
@@ -11167,231 +11171,231 @@ const dP=ye`
11167
11171
  <slot ${Ge("slottedTreeItems")}></slot>
11168
11172
  </template>
11169
11173
  `
11170
- class uP extends Ao{constructor(){super(...arguments),this.selectionMode=iP,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
11174
+ class pP extends Ao{constructor(){super(...arguments),this.selectionMode=oP,this.selectedItems=[]}handleClick(e){if(e.defaultPrevented)return!1
11171
11175
  if(!(e.target instanceof Element&&Mo(e.target)))return!0
11172
11176
  const t=e.target
11173
- return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case iP:return!0
11174
- case rP:return!1
11175
- case oP:return!this.itemHasChildren(e)
11176
- default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof lP&&(e.groupSelected=!1)
11177
+ return!t.disabled&&(this.canSelect(t)?t.selected=!0:this.itemHasChildren(t)&&(t.expanded=!t.expanded),!0)}canSelect(e){switch(this.selectionMode){case oP:return!0
11178
+ case sP:return!1
11179
+ case rP:return!this.itemHasChildren(e)
11180
+ default:return!0}}itemHasChildren(e){return null!==e.querySelector('[role="treeitem"]')}selectedItemsChanged(){for(const e of Array.from(this.children))e instanceof cP&&(e.groupSelected=!1)
11177
11181
  for(let e of this.selectedItems){for(;null!==e.parentElement&&e.parentElement!==this;)e=e.parentElement
11178
- e instanceof lP&&(e.groupSelected=!0)}}}e([se({attribute:"selection-mode"})],uP.prototype,"selectionMode",void 0),e([m],uP.prototype,"selectedItems",void 0)
11179
- const pP=uP.compose({baseName:"tree-view",baseClass:Ao,template:hP,styles:dP})
11180
- mi.getOrCreate().withPrefix("nimble").register(pP()),mi.tagFor(uP)
11181
- var fP={value:()=>{}}
11182
- function gP(){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)
11183
- i[e]=[]}return new mP(i)}function mP(e){this._=e}function vP(e,t){for(var n,i=0,o=e.length;i<o;++i)if((n=e[i]).name===t)return n.value}function bP(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=fP,e=e.slice(0,i).concat(e.slice(i+1))
11184
- break}return null!=n&&e.push({name:t,value:n}),e}mP.prototype=gP.prototype={constructor:mP,on:function(e,t){var n,i,o=this._,r=(i=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
11182
+ e instanceof cP&&(e.groupSelected=!0)}}}e([se({attribute:"selection-mode"})],pP.prototype,"selectionMode",void 0),e([m],pP.prototype,"selectedItems",void 0)
11183
+ const fP=pP.compose({baseName:"tree-view",baseClass:Ao,template:uP,styles:hP})
11184
+ mi.getOrCreate().withPrefix("nimble").register(fP()),mi.tagFor(pP)
11185
+ var gP={value:()=>{}}
11186
+ function mP(){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)
11187
+ i[e]=[]}return new vP(i)}function vP(e){this._=e}function bP(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))
11188
+ break}return null!=n&&e.push({name:t,value:n}),e}vP.prototype=mP.prototype={constructor:vP,on:function(e,t){var n,i,o=this._,r=(i=o,(e+"").trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".")
11185
11189
  if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!i.hasOwnProperty(e))throw new Error("unknown type: "+e)
11186
11190
  return{type:e,name:t}}))),s=-1,a=r.length
11187
11191
  if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t)
11188
- for(;++s<a;)if(n=(e=r[s]).type)o[n]=bP(o[n],e.name,t)
11189
- else if(null==t)for(n in o)o[n]=bP(o[n],e.name,null)
11190
- return this}for(;++s<a;)if((n=(e=r[s]).type)&&(n=vP(o[n],e.name)))return n},copy:function(){var e={},t=this._
11192
+ for(;++s<a;)if(n=(e=r[s]).type)o[n]=yP(o[n],e.name,t)
11193
+ else if(null==t)for(n in o)o[n]=yP(o[n],e.name,null)
11194
+ return this}for(;++s<a;)if((n=(e=r[s]).type)&&(n=bP(o[n],e.name)))return n},copy:function(){var e={},t=this._
11191
11195
  for(var n in t)e[n]=t[n].slice()
11192
- return new mP(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]
11196
+ return new vP(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]
11193
11197
  if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e)
11194
11198
  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)
11195
11199
  for(var i=this._[e],o=0,r=i.length;o<r;++o)i[o].value.apply(t,n)}}
11196
- var yP="http://www.w3.org/1999/xhtml",wP={svg:"http://www.w3.org/2000/svg",xhtml:yP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
11197
- function xP(e){var t=e+="",n=t.indexOf(":")
11198
- return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),wP.hasOwnProperty(t)?{space:wP[t],local:e}:e}function kP(e){return function(){var t=this.ownerDocument,n=this.namespaceURI
11199
- return n===yP&&t.documentElement.namespaceURI===yP?t.createElement(e):t.createElementNS(n,e)}}function CP(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function SP(e){var t=xP(e)
11200
- return(t.local?CP:kP)(t)}function $P(){}function MP(e){return null==e?$P:function(){return this.querySelector(e)}}function _P(){return[]}function AP(e){return null==e?_P:function(){return this.querySelectorAll(e)}}function EP(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t)
11201
- var t}}function IP(e){return function(){return this.matches(e)}}function OP(e){return function(t){return t.matches(e)}}var TP=Array.prototype.find
11202
- function RP(){return this.firstElementChild}var DP=Array.prototype.filter
11203
- function FP(){return Array.from(this.children)}function LP(e){return new Array(e.length)}function NP(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function PP(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 NP(e,r[a])
11204
- for(;a<l;++a)(s=t[a])&&(o[a]=s)}function zP(e,t,n,i,o,r,s){var a,l,c,d=new Map,h=t.length,u=r.length,p=new Array(h)
11200
+ var wP="http://www.w3.org/1999/xhtml",xP={svg:"http://www.w3.org/2000/svg",xhtml:wP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}
11201
+ function kP(e){var t=e+="",n=t.indexOf(":")
11202
+ return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),xP.hasOwnProperty(t)?{space:xP[t],local:e}:e}function CP(e){return function(){var t=this.ownerDocument,n=this.namespaceURI
11203
+ return n===wP&&t.documentElement.namespaceURI===wP?t.createElement(e):t.createElementNS(n,e)}}function SP(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function $P(e){var t=kP(e)
11204
+ return(t.local?SP:CP)(t)}function MP(){}function _P(e){return null==e?MP:function(){return this.querySelector(e)}}function AP(){return[]}function EP(e){return null==e?AP:function(){return this.querySelectorAll(e)}}function IP(e){return function(){return null==(t=e.apply(this,arguments))?[]:Array.isArray(t)?t:Array.from(t)
11205
+ var t}}function OP(e){return function(){return this.matches(e)}}function TP(e){return function(t){return t.matches(e)}}var RP=Array.prototype.find
11206
+ function DP(){return this.firstElementChild}var FP=Array.prototype.filter
11207
+ function LP(){return Array.from(this.children)}function NP(e){return new Array(e.length)}function PP(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function zP(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 PP(e,r[a])
11208
+ for(;a<l;++a)(s=t[a])&&(o[a]=s)}function VP(e,t,n,i,o,r,s){var a,l,c,d=new Map,h=t.length,u=r.length,p=new Array(h)
11205
11209
  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))
11206
- 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 NP(e,r[a])
11207
- for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function VP(e){return e.__data__}function HP(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function BP(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function qP(e){return function(){this.removeAttribute(e)}}function ZP(e){return function(){this.removeAttributeNS(e.space,e.local)}}function jP(e,t){return function(){this.setAttribute(e,t)}}function UP(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function WP(e,t){return function(){var n=t.apply(this,arguments)
11208
- null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function GP(e,t){return function(){var n=t.apply(this,arguments)
11209
- null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function KP(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function JP(e){return function(){this.style.removeProperty(e)}}function XP(e,t,n){return function(){this.style.setProperty(e,t,n)}}function YP(e,t,n){return function(){var i=t.apply(this,arguments)
11210
- null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function QP(e,t){return e.style.getPropertyValue(t)||KP(e).getComputedStyle(e,null).getPropertyValue(t)}function ez(e){return function(){delete this[e]}}function tz(e,t){return function(){this[e]=t}}function nz(e,t){return function(){var n=t.apply(this,arguments)
11211
- null==n?delete this[e]:this[e]=n}}function iz(e){return e.trim().split(/^|\s+/)}function oz(e){return e.classList||new rz(e)}function rz(e){this._node=e,this._names=iz(e.getAttribute("class")||"")}function sz(e,t){for(var n=oz(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function az(e,t){for(var n=oz(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function lz(e){return function(){sz(this,e)}}function cz(e){return function(){az(this,e)}}function dz(e,t){return function(){(t.apply(this,arguments)?sz:az)(this,e)}}function hz(){this.textContent=""}function uz(e){return function(){this.textContent=e}}function pz(e){return function(){var t=e.apply(this,arguments)
11212
- this.textContent=null==t?"":t}}function fz(){this.innerHTML=""}function gz(e){return function(){this.innerHTML=e}}function mz(e){return function(){var t=e.apply(this,arguments)
11213
- this.innerHTML=null==t?"":t}}function vz(){this.nextSibling&&this.parentNode.appendChild(this)}function bz(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function yz(){return null}function wz(){var e=this.parentNode
11214
- e&&e.removeChild(this)}function xz(){var e=this.cloneNode(!1),t=this.parentNode
11215
- return t?t.insertBefore(e,this.nextSibling):e}function kz(){var e=this.cloneNode(!0),t=this.parentNode
11216
- return t?t.insertBefore(e,this.nextSibling):e}function Cz(e){return function(){var t=this.__on
11217
- 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 Sz(e,t,n){return function(){var i,o=this.__on,r=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
11210
+ 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 PP(e,r[a])
11211
+ for(a=0;a<h;++a)(l=t[a])&&d.get(p[a])===l&&(o[a]=l)}function HP(e){return e.__data__}function BP(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function qP(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ZP(e){return function(){this.removeAttribute(e)}}function jP(e){return function(){this.removeAttributeNS(e.space,e.local)}}function UP(e,t){return function(){this.setAttribute(e,t)}}function WP(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function GP(e,t){return function(){var n=t.apply(this,arguments)
11212
+ null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function KP(e,t){return function(){var n=t.apply(this,arguments)
11213
+ null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function JP(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function XP(e){return function(){this.style.removeProperty(e)}}function YP(e,t,n){return function(){this.style.setProperty(e,t,n)}}function QP(e,t,n){return function(){var i=t.apply(this,arguments)
11214
+ null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function ez(e,t){return e.style.getPropertyValue(t)||JP(e).getComputedStyle(e,null).getPropertyValue(t)}function tz(e){return function(){delete this[e]}}function nz(e,t){return function(){this[e]=t}}function iz(e,t){return function(){var n=t.apply(this,arguments)
11215
+ null==n?delete this[e]:this[e]=n}}function oz(e){return e.trim().split(/^|\s+/)}function rz(e){return e.classList||new sz(e)}function sz(e){this._node=e,this._names=oz(e.getAttribute("class")||"")}function az(e,t){for(var n=rz(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function lz(e,t){for(var n=rz(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function cz(e){return function(){az(this,e)}}function dz(e){return function(){lz(this,e)}}function hz(e,t){return function(){(t.apply(this,arguments)?az:lz)(this,e)}}function uz(){this.textContent=""}function pz(e){return function(){this.textContent=e}}function fz(e){return function(){var t=e.apply(this,arguments)
11216
+ this.textContent=null==t?"":t}}function gz(){this.innerHTML=""}function mz(e){return function(){this.innerHTML=e}}function vz(e){return function(){var t=e.apply(this,arguments)
11217
+ this.innerHTML=null==t?"":t}}function bz(){this.nextSibling&&this.parentNode.appendChild(this)}function yz(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wz(){return null}function xz(){var e=this.parentNode
11218
+ e&&e.removeChild(this)}function kz(){var e=this.cloneNode(!1),t=this.parentNode
11219
+ return t?t.insertBefore(e,this.nextSibling):e}function Cz(){var e=this.cloneNode(!0),t=this.parentNode
11220
+ return t?t.insertBefore(e,this.nextSibling):e}function Sz(e){return function(){var t=this.__on
11221
+ 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 $z(e,t,n){return function(){var i,o=this.__on,r=function(e){return function(t){e.call(this,t,this.__data__)}}(t)
11218
11222
  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)
11219
- 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=KP(e),o=i.CustomEvent
11220
- "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 Mz(e,t){return function(){return $z(this,e,t)}}function _z(e,t){return function(){return $z(this,e,t.apply(this,arguments))}}NP.prototype={constructor:NP,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)}},rz.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)
11223
+ 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 Mz(e,t,n){var i=JP(e),o=i.CustomEvent
11224
+ "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 _z(e,t){return function(){return Mz(this,e,t)}}function Az(e,t){return function(){return Mz(this,e,t.apply(this,arguments))}}PP.prototype={constructor:PP,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)}},sz.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)
11221
11225
  t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}}
11222
- var Az=[null]
11223
- function Ez(e,t){this._groups=e,this._parents=t}function Iz(){return new Ez([[document.documentElement]],Az)}function Oz(e){return"string"==typeof e?new Ez([[document.querySelector(e)]],[document.documentElement]):new Ez([[e]],Az)}function Tz(e,t){if(e=function(e){let t
11226
+ var Ez=[null]
11227
+ function Iz(e,t){this._groups=e,this._parents=t}function Oz(){return new Iz([[document.documentElement]],Ez)}function Tz(e){return"string"==typeof e?new Iz([[document.querySelector(e)]],[document.documentElement]):new Iz([[e]],Ez)}function Rz(e,t){if(e=function(e){let t
11224
11228
  for(;t=e.sourceEvent;)e=t
11225
11229
  return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t
11226
11230
  if(n.createSVGPoint){var i=n.createSVGPoint()
11227
11231
  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()
11228
- return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}Ez.prototype=Iz.prototype={constructor:Ez,select:function(e){"function"!=typeof e&&(e=MP(e))
11232
+ return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}Iz.prototype=Oz.prototype={constructor:Iz,select:function(e){"function"!=typeof e&&(e=_P(e))
11229
11233
  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)
11230
- return new Ez(i,this._parents)},selectAll:function(e){e="function"==typeof e?EP(e):AP(e)
11234
+ return new Iz(i,this._parents)},selectAll:function(e){e="function"==typeof e?IP(e):EP(e)
11231
11235
  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))
11232
- return new Ez(i,o)},selectChild:function(e){return this.select(null==e?RP:function(e){return function(){return TP.call(this.children,e)}}("function"==typeof e?e:OP(e)))},selectChildren:function(e){return this.selectAll(null==e?FP:function(e){return function(){return DP.call(this.children,e)}}("function"==typeof e?e:OP(e)))},filter:function(e){"function"!=typeof e&&(e=IP(e))
11236
+ return new Iz(i,o)},selectChild:function(e){return this.select(null==e?DP:function(e){return function(){return RP.call(this.children,e)}}("function"==typeof e?e:TP(e)))},selectChildren:function(e){return this.selectAll(null==e?LP:function(e){return function(){return FP.call(this.children,e)}}("function"==typeof e?e:TP(e)))},filter:function(e){"function"!=typeof e&&(e=OP(e))
11233
11237
  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)
11234
- return new Ez(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,VP)
11235
- var n,i=t?zP:PP,o=this._parents,r=this._groups
11238
+ return new Iz(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,HP)
11239
+ var n,i=t?VP:zP,o=this._parents,r=this._groups
11236
11240
  "function"!=typeof e&&(n=e,e=function(){return n})
11237
- 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=HP(e.call(h,h&&h.__data__,d,o)),g=f.length,m=l[d]=new Array(g),v=a[d]=new Array(g)
11241
+ 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=BP(e.call(h,h&&h.__data__,d,o)),g=f.length,m=l[d]=new Array(g),v=a[d]=new Array(g)
11238
11242
  i(h,u,m,v,c[d]=new Array(p),f,t)
11239
- for(var b,y,w=0,x=0;w<g;++w)if(b=m[w]){for(w>=x&&(x=w+1);!(y=v[x])&&++x<g;);b._next=y||null}}return(a=new Ez(a,o))._enter=l,a._exit=c,a},enter:function(){return new Ez(this._enter||this._groups.map(LP),this._parents)},exit:function(){return new Ez(this._exit||this._groups.map(LP),this._parents)},join:function(e,t,n){var i=this.enter(),o=this,r=this.exit()
11243
+ for(var b,y,w=0,x=0;w<g;++w)if(b=m[w]){for(w>=x&&(x=w+1);!(y=v[x])&&++x<g;);b._next=y||null}}return(a=new Iz(a,o))._enter=l,a._exit=c,a},enter:function(){return new Iz(this._enter||this._groups.map(NP),this._parents)},exit:function(){return new Iz(this._exit||this._groups.map(NP),this._parents)},join:function(e,t,n){var i=this.enter(),o=this,r=this.exit()
11240
11244
  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)
11241
11245
  for(;l<o;++l)a[l]=n[l]
11242
- return new Ez(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)
11243
- return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=BP)
11246
+ return new Iz(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)
11247
+ return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=qP)
11244
11248
  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)
11245
- c.sort(t)}return new Ez(o,this._parents).order()},call:function(){var e=arguments[0]
11249
+ c.sort(t)}return new Iz(o,this._parents).order()},call:function(){var e=arguments[0]
11246
11250
  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]
11247
11251
  if(s)return s}return null},size:function(){let e=0
11248
11252
  for(const t of this)++e
11249
11253
  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)
11250
- return this},attr:function(e,t){var n=xP(e)
11254
+ return this},attr:function(e,t){var n=kP(e)
11251
11255
  if(arguments.length<2){var i=this.node()
11252
- return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?ZP:qP:"function"==typeof t?n.local?GP:WP:n.local?UP:jP)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?JP:"function"==typeof t?YP:XP)(e,t,null==n?"":n)):QP(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?ez:"function"==typeof t?nz:tz)(e,t)):this.node()[e]},classed:function(e,t){var n=iz(e+"")
11253
- if(arguments.length<2){for(var i=oz(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
11254
- return!0}return this.each(("function"==typeof t?dz:t?lz:cz)(n,t))},text:function(e){return arguments.length?this.each(null==e?hz:("function"==typeof e?pz:uz)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?fz:("function"==typeof e?mz:gz)(e)):this.node().innerHTML},raise:function(){return this.each(vz)},lower:function(){return this.each(bz)},append:function(e){var t="function"==typeof e?e:SP(e)
11255
- return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:SP(e),i=null==t?yz:"function"==typeof t?t:MP(t)
11256
- return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(wz)},clone:function(e){return this.select(e?kz:xz)},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(".")
11256
+ return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?jP:ZP:"function"==typeof t?n.local?KP:GP:n.local?WP:UP)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?XP:"function"==typeof t?QP:YP)(e,t,null==n?"":n)):ez(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?tz:"function"==typeof t?iz:nz)(e,t)):this.node()[e]},classed:function(e,t){var n=oz(e+"")
11257
+ if(arguments.length<2){for(var i=rz(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1
11258
+ return!0}return this.each(("function"==typeof t?hz:t?cz:dz)(n,t))},text:function(e){return arguments.length?this.each(null==e?uz:("function"==typeof e?fz:pz)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?gz:("function"==typeof e?vz:mz)(e)):this.node().innerHTML},raise:function(){return this.each(bz)},lower:function(){return this.each(yz)},append:function(e){var t="function"==typeof e?e:$P(e)
11259
+ return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:$P(e),i=null==t?wz:"function"==typeof t?t:_P(t)
11260
+ return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(xz)},clone:function(e){return this.select(e?Cz:kz)},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(".")
11257
11261
  return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),s=r.length
11258
- if(!(arguments.length<2)){for(a=t?Sz:Cz,i=0;i<s;++i)this.each(a(r[i],t,n))
11262
+ if(!(arguments.length<2)){for(a=t?$z:Sz,i=0;i<s;++i)this.each(a(r[i],t,n))
11259
11263
  return this}var a=this.node().__on
11260
- 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?_z:Mz)(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)}}
11261
- const Rz={capture:!0,passive:!1}
11262
- function Dz(e){e.preventDefault(),e.stopImmediatePropagation()}function Fz(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Lz(e,t){var n=Object.create(e.prototype)
11264
+ 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?Az:_z)(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)}}
11265
+ const Dz={capture:!0,passive:!1}
11266
+ function Fz(e){e.preventDefault(),e.stopImmediatePropagation()}function Lz(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Nz(e,t){var n=Object.create(e.prototype)
11263
11267
  for(var i in t)n[i]=t[i]
11264
- return n}function Nz(){}var Pz=.7,zz=1/Pz,Vz="\\s*([+-]?\\d+)\\s*",Hz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Bz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qz=/^#([0-9a-f]{3,8})$/,Zz=new RegExp(`^rgb\\(${Vz},${Vz},${Vz}\\)$`),jz=new RegExp(`^rgb\\(${Bz},${Bz},${Bz}\\)$`),Uz=new RegExp(`^rgba\\(${Vz},${Vz},${Vz},${Hz}\\)$`),Wz=new RegExp(`^rgba\\(${Bz},${Bz},${Bz},${Hz}\\)$`),Gz=new RegExp(`^hsl\\(${Hz},${Bz},${Bz}\\)$`),Kz=new RegExp(`^hsla\\(${Hz},${Bz},${Bz},${Hz}\\)$`),Jz={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}
11265
- function Xz(){return this.rgb().formatHex()}function Yz(){return this.rgb().formatRgb()}function Qz(e){var t,n
11266
- return e=(e+"").trim().toLowerCase(),(t=qz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?eV(t):3===n?new iV(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?tV(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?tV(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=Zz.exec(e))?new iV(t[1],t[2],t[3],1):(t=jz.exec(e))?new iV(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Uz.exec(e))?tV(t[1],t[2],t[3],t[4]):(t=Wz.exec(e))?tV(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Gz.exec(e))?cV(t[1],t[2]/100,t[3]/100,1):(t=Kz.exec(e))?cV(t[1],t[2]/100,t[3]/100,t[4]):Jz.hasOwnProperty(e)?eV(Jz[e]):"transparent"===e?new iV(NaN,NaN,NaN,0):null}function eV(e){return new iV(e>>16&255,e>>8&255,255&e,1)}function tV(e,t,n,i){return i<=0&&(e=t=n=NaN),new iV(e,t,n,i)}function nV(e,t,n,i){return 1===arguments.length?((o=e)instanceof Nz||(o=Qz(o)),o?new iV((o=o.rgb()).r,o.g,o.b,o.opacity):new iV):new iV(e,t,n,null==i?1:i)
11267
- var o}function iV(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function oV(){return`#${lV(this.r)}${lV(this.g)}${lV(this.b)}`}function rV(){const e=sV(this.opacity)
11268
- return`${1===e?"rgb(":"rgba("}${aV(this.r)}, ${aV(this.g)}, ${aV(this.b)}${1===e?")":`, ${e})`}`}function sV(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function aV(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function lV(e){return((e=aV(e))<16?"0":"")+e.toString(16)}function cV(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new hV(e,t,n,i)}function dV(e){if(e instanceof hV)return new hV(e.h,e.s,e.l,e.opacity)
11269
- if(e instanceof Nz||(e=Qz(e)),!e)return new hV
11270
- if(e instanceof hV)return e
11268
+ return n}function Pz(){}var zz=.7,Vz=1/zz,Hz="\\s*([+-]?\\d+)\\s*",Bz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qz="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Zz=/^#([0-9a-f]{3,8})$/,jz=new RegExp(`^rgb\\(${Hz},${Hz},${Hz}\\)$`),Uz=new RegExp(`^rgb\\(${qz},${qz},${qz}\\)$`),Wz=new RegExp(`^rgba\\(${Hz},${Hz},${Hz},${Bz}\\)$`),Gz=new RegExp(`^rgba\\(${qz},${qz},${qz},${Bz}\\)$`),Kz=new RegExp(`^hsl\\(${Bz},${qz},${qz}\\)$`),Jz=new RegExp(`^hsla\\(${Bz},${qz},${qz},${Bz}\\)$`),Xz={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}
11269
+ function Yz(){return this.rgb().formatHex()}function Qz(){return this.rgb().formatRgb()}function eV(e){var t,n
11270
+ return e=(e+"").trim().toLowerCase(),(t=Zz.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?tV(t):3===n?new oV(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?nV(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?nV(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=jz.exec(e))?new oV(t[1],t[2],t[3],1):(t=Uz.exec(e))?new oV(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Wz.exec(e))?nV(t[1],t[2],t[3],t[4]):(t=Gz.exec(e))?nV(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Kz.exec(e))?dV(t[1],t[2]/100,t[3]/100,1):(t=Jz.exec(e))?dV(t[1],t[2]/100,t[3]/100,t[4]):Xz.hasOwnProperty(e)?tV(Xz[e]):"transparent"===e?new oV(NaN,NaN,NaN,0):null}function tV(e){return new oV(e>>16&255,e>>8&255,255&e,1)}function nV(e,t,n,i){return i<=0&&(e=t=n=NaN),new oV(e,t,n,i)}function iV(e,t,n,i){return 1===arguments.length?((o=e)instanceof Pz||(o=eV(o)),o?new oV((o=o.rgb()).r,o.g,o.b,o.opacity):new oV):new oV(e,t,n,null==i?1:i)
11271
+ var o}function oV(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function rV(){return`#${cV(this.r)}${cV(this.g)}${cV(this.b)}`}function sV(){const e=aV(this.opacity)
11272
+ return`${1===e?"rgb(":"rgba("}${lV(this.r)}, ${lV(this.g)}, ${lV(this.b)}${1===e?")":`, ${e})`}`}function aV(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function lV(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function cV(e){return((e=lV(e))<16?"0":"")+e.toString(16)}function dV(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new uV(e,t,n,i)}function hV(e){if(e instanceof uV)return new uV(e.h,e.s,e.l,e.opacity)
11273
+ if(e instanceof Pz||(e=eV(e)),!e)return new uV
11274
+ if(e instanceof uV)return e
11271
11275
  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
11272
- 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 hV(s,a,l,e.opacity)}function hV(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function uV(e){return(e=(e||0)%360)<0?e+360:e}function pV(e){return Math.max(0,Math.min(1,e||0))}function fV(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Fz(Nz,Qz,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Xz,formatHex:Xz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return dV(this).formatHsl()},formatRgb:Yz,toString:Yz}),Fz(iV,nV,Lz(Nz,{brighter(e){return e=null==e?zz:Math.pow(zz,e),new iV(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Pz:Math.pow(Pz,e),new iV(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new iV(aV(this.r),aV(this.g),aV(this.b),sV(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:oV,formatHex:oV,formatHex8:function(){return`#${lV(this.r)}${lV(this.g)}${lV(this.b)}${lV(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:rV,toString:rV})),Fz(hV,(function(e,t,n,i){return 1===arguments.length?dV(e):new hV(e,t,n,null==i?1:i)}),Lz(Nz,{brighter(e){return e=null==e?zz:Math.pow(zz,e),new hV(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Pz:Math.pow(Pz,e),new hV(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
11273
- return new iV(fV(e>=240?e-240:e+120,o,i),fV(e,o,i),fV(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new hV(uV(this.h),pV(this.s),pV(this.l),sV(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=sV(this.opacity)
11274
- return`${1===e?"hsl(":"hsla("}${uV(this.h)}, ${100*pV(this.s)}%, ${100*pV(this.l)}%${1===e?")":`, ${e})`}`}}))
11275
- var gV=e=>()=>e
11276
- function mV(e){return 1==(e=+e)?vV: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):gV(isNaN(t)?n:t)}}function vV(e,t){var n=t-e
11277
- return n?function(e,t){return function(n){return e+n*t}}(e,n):gV(isNaN(e)?t:e)}var bV=function e(t){var n=mV(t)
11278
- function i(e,t){var i=n((e=nV(e)).r,(t=nV(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=vV(e.opacity,t.opacity)
11276
+ 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 uV(s,a,l,e.opacity)}function uV(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function pV(e){return(e=(e||0)%360)<0?e+360:e}function fV(e){return Math.max(0,Math.min(1,e||0))}function gV(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Lz(Pz,eV,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Yz,formatHex:Yz,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return hV(this).formatHsl()},formatRgb:Qz,toString:Qz}),Lz(oV,iV,Nz(Pz,{brighter(e){return e=null==e?Vz:Math.pow(Vz,e),new oV(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?zz:Math.pow(zz,e),new oV(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new oV(lV(this.r),lV(this.g),lV(this.b),aV(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:rV,formatHex:rV,formatHex8:function(){return`#${cV(this.r)}${cV(this.g)}${cV(this.b)}${cV(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:sV,toString:sV})),Lz(uV,(function(e,t,n,i){return 1===arguments.length?hV(e):new uV(e,t,n,null==i?1:i)}),Nz(Pz,{brighter(e){return e=null==e?Vz:Math.pow(Vz,e),new uV(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?zz:Math.pow(zz,e),new uV(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
11277
+ return new oV(gV(e>=240?e-240:e+120,o,i),gV(e,o,i),gV(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new uV(pV(this.h),fV(this.s),fV(this.l),aV(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=aV(this.opacity)
11278
+ return`${1===e?"hsl(":"hsla("}${pV(this.h)}, ${100*fV(this.s)}%, ${100*fV(this.l)}%${1===e?")":`, ${e})`}`}}))
11279
+ var mV=e=>()=>e
11280
+ function vV(e){return 1==(e=+e)?bV: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):mV(isNaN(t)?n:t)}}function bV(e,t){var n=t-e
11281
+ return n?function(e,t){return function(n){return e+n*t}}(e,n):mV(isNaN(e)?t:e)}var yV=function e(t){var n=vV(t)
11282
+ function i(e,t){var i=n((e=iV(e)).r,(t=iV(t)).r),o=n(e.g,t.g),r=n(e.b,t.b),s=bV(e.opacity,t.opacity)
11279
11283
  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)
11280
- function yV(e,t){t||(t=[])
11284
+ function wV(e,t){t||(t=[])
11281
11285
  var n,i=e?Math.min(t.length,e.length):0,o=t.slice()
11282
11286
  return function(r){for(n=0;n<i;++n)o[n]=e[n]*(1-r)+t[n]*r
11283
- return o}}function wV(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)
11284
- for(n=0;n<o;++n)r[n]=_V(e[n],t[n])
11287
+ return o}}function xV(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)
11288
+ for(n=0;n<o;++n)r[n]=AV(e[n],t[n])
11285
11289
  for(;n<i;++n)s[n]=t[n]
11286
11290
  return function(e){for(n=0;n<o;++n)s[n]=r[n](e)
11287
- return s}}function xV(e,t){var n=new Date
11288
- return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function kV(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function CV(e,t){var n,i={},o={}
11289
- for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=_V(e[n],t[n]):o[n]=t[n]
11291
+ return s}}function kV(e,t){var n=new Date
11292
+ return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function CV(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function SV(e,t){var n,i={},o={}
11293
+ for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=AV(e[n],t[n]):o[n]=t[n]
11290
11294
  return function(e){for(n in i)o[n]=i[n](e)
11291
- return o}}var SV=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$V=new RegExp(SV.source,"g")
11292
- function MV(e,t){var n,i,o,r=SV.lastIndex=$V.lastIndex=0,s=-1,a=[],l=[]
11293
- for(e+="",t+="";(n=SV.exec(e))&&(i=$V.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:kV(n,i)})),r=$V.lastIndex
11295
+ return o}}var $V=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,MV=new RegExp($V.source,"g")
11296
+ function _V(e,t){var n,i,o,r=$V.lastIndex=MV.lastIndex=0,s=-1,a=[],l=[]
11297
+ for(e+="",t+="";(n=$V.exec(e))&&(i=MV.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:CV(n,i)})),r=MV.lastIndex
11294
11298
  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)
11295
- return a.join("")})}function _V(e,t){var n,i,o=typeof t
11296
- return null==t||"boolean"===o?gV(t):("number"===o?kV:"string"===o?(n=Qz(t))?(t=n,bV):MV:t instanceof Qz?bV:t instanceof Date?xV:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?wV:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?CV:kV:yV))(e,t)}function AV(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var EV,IV=180/Math.PI,OV={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
11297
- function TV(e,t,n,i,o,r){var s,a,l
11298
- 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)*IV,skewX:Math.atan(l)*IV,scaleX:s,scaleY:a}}function RV(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}return function(r,s){var a=[],l=[]
11299
+ return a.join("")})}function AV(e,t){var n,i,o=typeof t
11300
+ return null==t||"boolean"===o?mV(t):("number"===o?CV:"string"===o?(n=eV(t))?(t=n,yV):_V:t instanceof eV?yV:t instanceof Date?kV:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?xV:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?SV:CV:wV))(e,t)}function EV(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var IV,OV=180/Math.PI,TV={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}
11301
+ function RV(e,t,n,i,o,r){var s,a,l
11302
+ 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)*OV,skewX:Math.atan(l)*OV,scaleX:s,scaleY:a}}function DV(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}return function(r,s){var a=[],l=[]
11299
11303
  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)
11300
- a.push({i:l-4,x:kV(e,o)},{i:l-2,x:kV(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:kV(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:kV(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,")")
11301
- s.push({i:a-4,x:kV(e,n)},{i:a-2,x:kV(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)
11302
- return a.join("")}}}var DV=RV((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
11303
- return t.isIdentity?OV:TV(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),FV=RV((function(e){return null==e?OV:(EV||(EV=document.createElementNS("http://www.w3.org/2000/svg","g")),EV.setAttribute("transform",e),(e=EV.transform.baseVal.consolidate())?TV((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):OV)}),", ",")",")")
11304
- function LV(e){return((e=Math.exp(e))+1/e)/2}var NV,PV,zV=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,g=p*p+f*f
11304
+ a.push({i:l-4,x:CV(e,o)},{i:l-2,x:CV(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:CV(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:CV(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,")")
11305
+ s.push({i:a-4,x:CV(e,n)},{i:a-2,x:CV(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)
11306
+ return a.join("")}}}var FV=DV((function(e){const t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"")
11307
+ return t.isIdentity?TV:RV(t.a,t.b,t.c,t.d,t.e,t.f)}),"px, ","px)","deg)"),LV=DV((function(e){return null==e?TV:(IV||(IV=document.createElementNS("http://www.w3.org/2000/svg","g")),IV.setAttribute("transform",e),(e=IV.transform.baseVal.consolidate())?RV((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):TV)}),", ",")",")")
11308
+ function NV(e){return((e=Math.exp(e))+1/e)/2}var PV,zV,VV=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,g=p*p+f*f
11305
11309
  if(g<1e-12)s=Math.log(u/c)/t,r=function(e){return[a+e*p,l+e*f,c*Math.exp(t*e*s)]}
11306
11310
  else{var m=Math.sqrt(g),v=(u*u-c*c+i*g)/(2*c*n*m),b=(u*u-c*c-i*g)/(2*u*n*m),y=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(b*b+1)-b)
11307
- s=(w-y)/t,r=function(e){var i,o=e*s,r=LV(y),d=c/(n*m)*(r*(i=t*o+y,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(y))
11308
- return[a+d*p,l+d*f,c*r/LV(t*o+y)]}}return r.duration=1e3*s*t/Math.SQRT2,r}return o.rho=function(t){var n=Math.max(.001,+t),i=n*n
11309
- return e(n,i,i*i)},o}(Math.SQRT2,2,4),VV=0,HV=0,BV=0,qV=1e3,ZV=0,jV=0,UV=0,WV="object"==typeof performance&&performance.now?performance:Date,GV="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
11310
- function KV(){return jV||(GV(JV),jV=WV.now()+UV)}function JV(){jV=0}function XV(){this._call=this._time=this._next=null}function YV(e,t,n){var i=new XV
11311
- return i.restart(e,t,n),i}function QV(){jV=(ZV=WV.now())+UV,VV=HV=0
11312
- try{!function(){KV(),++VV
11313
- for(var e,t=NV;t;)(e=jV-t._time)>=0&&t._call.call(void 0,e),t=t._next;--VV}()}finally{VV=0,function(){var e,t,n=NV,i=1/0
11314
- 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:NV=t)
11315
- PV=e,tH(i)}(),jV=0}}function eH(){var e=WV.now(),t=e-ZV
11316
- t>qV&&(UV-=t,ZV=e)}function tH(e){VV||(HV&&(HV=clearTimeout(HV)),e-jV>24?(e<1/0&&(HV=setTimeout(QV,e-WV.now()-UV)),BV&&(BV=clearInterval(BV))):(BV||(ZV=WV.now(),BV=setInterval(eH,qV)),VV=1,GV(QV)))}function nH(e,t,n){var i=new XV
11317
- return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}XV.prototype=YV.prototype={constructor:XV,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function")
11318
- n=(null==n?KV():+n)+(null==t?0:+t),this._next||PV===this||(PV?PV._next=this:NV=this,PV=this),this._call=e,this._time=n,tH()},stop:function(){this._call&&(this._call=null,this._time=1/0,tH())}}
11319
- var iH=gP("start","end","cancel","interrupt"),oH=[],rH=0,sH=1,aH=2,lH=3,cH=4,dH=5,hH=6
11320
- function uH(e,t,n,i,o,r){var s=e.__transition
11311
+ s=(w-y)/t,r=function(e){var i,o=e*s,r=NV(y),d=c/(n*m)*(r*(i=t*o+y,((i=Math.exp(2*i))-1)/(i+1))-function(e){return((e=Math.exp(e))-1/e)/2}(y))
11312
+ return[a+d*p,l+d*f,c*r/NV(t*o+y)]}}return r.duration=1e3*s*t/Math.SQRT2,r}return o.rho=function(t){var n=Math.max(.001,+t),i=n*n
11313
+ return e(n,i,i*i)},o}(Math.SQRT2,2,4),HV=0,BV=0,qV=0,ZV=1e3,jV=0,UV=0,WV=0,GV="object"==typeof performance&&performance.now?performance:Date,KV="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)}
11314
+ function JV(){return UV||(KV(XV),UV=GV.now()+WV)}function XV(){UV=0}function YV(){this._call=this._time=this._next=null}function QV(e,t,n){var i=new YV
11315
+ return i.restart(e,t,n),i}function eH(){UV=(jV=GV.now())+WV,HV=BV=0
11316
+ try{!function(){JV(),++HV
11317
+ for(var e,t=PV;t;)(e=UV-t._time)>=0&&t._call.call(void 0,e),t=t._next;--HV}()}finally{HV=0,function(){var e,t,n=PV,i=1/0
11318
+ 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:PV=t)
11319
+ zV=e,nH(i)}(),UV=0}}function tH(){var e=GV.now(),t=e-jV
11320
+ t>ZV&&(WV-=t,jV=e)}function nH(e){HV||(BV&&(BV=clearTimeout(BV)),e-UV>24?(e<1/0&&(BV=setTimeout(eH,e-GV.now()-WV)),qV&&(qV=clearInterval(qV))):(qV||(jV=GV.now(),qV=setInterval(tH,ZV)),HV=1,KV(eH)))}function iH(e,t,n){var i=new YV
11321
+ return t=null==t?0:+t,i.restart((n=>{i.stop(),e(n+t)}),t,n),i}YV.prototype=QV.prototype={constructor:YV,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function")
11322
+ n=(null==n?JV():+n)+(null==t?0:+t),this._next||zV===this||(zV?zV._next=this:PV=this,zV=this),this._call=e,this._time=n,nH()},stop:function(){this._call&&(this._call=null,this._time=1/0,nH())}}
11323
+ var oH=mP("start","end","cancel","interrupt"),rH=[],sH=0,aH=1,lH=2,cH=3,dH=4,hH=5,uH=6
11324
+ function pH(e,t,n,i,o,r){var s=e.__transition
11321
11325
  if(s){if(n in s)return}else e.__transition={}
11322
11326
  !function(e,t,n){var i,o=e.__transition
11323
- function r(e){n.state=sH,n.timer.restart(s,n.delay,n.time),n.delay<=e&&s(e-n.delay)}function s(r){var c,d,h,u
11324
- if(n.state!==sH)return l()
11325
- for(c in o)if((u=o[c]).name===n.name){if(u.state===lH)return nH(s)
11326
- u.state===cH?(u.state=hH,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=hH,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(nH((function(){n.state===lH&&(n.state=cH,n.timer.restart(a,n.delay,n.time),a(r))})),n.state=aH,n.on.call("start",e,e.__data__,n.index,n.group),n.state===aH){for(n.state=lH,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)
11327
- 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=dH,1),r=-1,s=i.length;++r<s;)i[r].call(e,o)
11328
- n.state===dH&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=hH,n.timer.stop(),delete o[t],o)return
11329
- delete e.__transition}o[t]=n,n.timer=YV(r,0,n.time)}(e,n,{name:t,index:i,group:o,on:iH,tween:oH,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:rH})}function pH(e,t){var n=gH(e,t)
11330
- if(n.state>rH)throw new Error("too late; already scheduled")
11331
- return n}function fH(e,t){var n=gH(e,t)
11332
- if(n.state>lH)throw new Error("too late; already running")
11333
- return n}function gH(e,t){var n=e.__transition
11327
+ function r(e){n.state=aH,n.timer.restart(s,n.delay,n.time),n.delay<=e&&s(e-n.delay)}function s(r){var c,d,h,u
11328
+ if(n.state!==aH)return l()
11329
+ for(c in o)if((u=o[c]).name===n.name){if(u.state===cH)return iH(s)
11330
+ u.state===dH?(u.state=uH,u.timer.stop(),u.on.call("interrupt",e,e.__data__,u.index,u.group),delete o[c]):+c<t&&(u.state=uH,u.timer.stop(),u.on.call("cancel",e,e.__data__,u.index,u.group),delete o[c])}if(iH((function(){n.state===cH&&(n.state=dH,n.timer.restart(a,n.delay,n.time),a(r))})),n.state=lH,n.on.call("start",e,e.__data__,n.index,n.group),n.state===lH){for(n.state=cH,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)
11331
+ 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=hH,1),r=-1,s=i.length;++r<s;)i[r].call(e,o)
11332
+ n.state===hH&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=uH,n.timer.stop(),delete o[t],o)return
11333
+ delete e.__transition}o[t]=n,n.timer=QV(r,0,n.time)}(e,n,{name:t,index:i,group:o,on:oH,tween:rH,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:sH})}function fH(e,t){var n=mH(e,t)
11334
+ if(n.state>sH)throw new Error("too late; already scheduled")
11335
+ return n}function gH(e,t){var n=mH(e,t)
11336
+ if(n.state>cH)throw new Error("too late; already running")
11337
+ return n}function mH(e,t){var n=e.__transition
11334
11338
  if(!n||!(n=n[t]))throw new Error("transition not found")
11335
- return n}function mH(e,t){var n,i,o,r=e.__transition,s=!0
11336
- if(r){for(o in t=null==t?null:t+"",r)(n=r[o]).name===t?(i=n.state>aH&&n.state<dH,n.state=hH,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]):s=!1
11337
- s&&delete e.__transition}}function vH(e,t){var n,i
11338
- return function(){var o=fH(this,e),r=o.tween
11339
+ return n}function vH(e,t){var n,i,o,r=e.__transition,s=!0
11340
+ if(r){for(o in t=null==t?null:t+"",r)(n=r[o]).name===t?(i=n.state>lH&&n.state<hH,n.state=uH,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]):s=!1
11341
+ s&&delete e.__transition}}function bH(e,t){var n,i
11342
+ return function(){var o=gH(this,e),r=o.tween
11339
11343
  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)
11340
- break}o.tween=i}}function bH(e,t,n){var i,o
11344
+ break}o.tween=i}}function yH(e,t,n){var i,o
11341
11345
  if("function"!=typeof n)throw new Error
11342
- return function(){var r=fH(this,e),s=r.tween
11346
+ return function(){var r=gH(this,e),s=r.tween
11343
11347
  if(s!==i){o=(i=s).slice()
11344
11348
  for(var a={name:t,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===t){o[l]=a
11345
- break}l===c&&o.push(a)}r.tween=o}}function yH(e,t,n){var i=e._id
11346
- return e.each((function(){var e=fH(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return gH(e,i).value[t]}}function wH(e,t){var n
11347
- return("number"==typeof t?kV:t instanceof Qz?bV:(n=Qz(t))?(t=n,bV):MV)(e,t)}function xH(e){return function(){this.removeAttribute(e)}}function kH(e){return function(){this.removeAttributeNS(e.space,e.local)}}function CH(e,t,n){var i,o,r=n+""
11349
+ break}l===c&&o.push(a)}r.tween=o}}function wH(e,t,n){var i=e._id
11350
+ return e.each((function(){var e=gH(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return mH(e,i).value[t]}}function xH(e,t){var n
11351
+ return("number"==typeof t?CV:t instanceof eV?yV:(n=eV(t))?(t=n,yV):_V)(e,t)}function kH(e){return function(){this.removeAttribute(e)}}function CH(e){return function(){this.removeAttributeNS(e.space,e.local)}}function SH(e,t,n){var i,o,r=n+""
11348
11352
  return function(){var s=this.getAttribute(e)
11349
- return s===r?null:s===i?o:o=t(i=s,n)}}function SH(e,t,n){var i,o,r=n+""
11353
+ return s===r?null:s===i?o:o=t(i=s,n)}}function $H(e,t,n){var i,o,r=n+""
11350
11354
  return function(){var s=this.getAttributeNS(e.space,e.local)
11351
- return s===r?null:s===i?o:o=t(i=s,n)}}function $H(e,t,n){var i,o,r
11355
+ return s===r?null:s===i?o:o=t(i=s,n)}}function MH(e,t,n){var i,o,r
11352
11356
  return function(){var s,a,l=n(this)
11353
11357
  if(null!=l)return(s=this.getAttribute(e))===(a=l+"")?null:s===i&&a===o?r:(o=a,r=t(i=s,l))
11354
- this.removeAttribute(e)}}function MH(e,t,n){var i,o,r
11358
+ this.removeAttribute(e)}}function _H(e,t,n){var i,o,r
11355
11359
  return function(){var s,a,l=n(this)
11356
11360
  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))
11357
- this.removeAttributeNS(e.space,e.local)}}function _H(e,t){var n,i
11361
+ this.removeAttributeNS(e.space,e.local)}}function AH(e,t){var n,i
11358
11362
  function o(){var o=t.apply(this,arguments)
11359
- 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 AH(e,t){var n,i
11363
+ 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 EH(e,t){var n,i
11360
11364
  function o(){var o=t.apply(this,arguments)
11361
- 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 EH(e,t){return function(){pH(this,e).delay=+t.apply(this,arguments)}}function IH(e,t){return t=+t,function(){pH(this,e).delay=t}}function OH(e,t){return function(){fH(this,e).duration=+t.apply(this,arguments)}}function TH(e,t){return t=+t,function(){fH(this,e).duration=t}}var RH=Iz.prototype.constructor
11362
- function DH(e){return function(){this.style.removeProperty(e)}}var FH=0
11363
- function LH(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function NH(){return++FH}var PH=Iz.prototype
11364
- LH.prototype={constructor:LH,select:function(e){var t=this._name,n=this._id
11365
- "function"!=typeof e&&(e=MP(e))
11366
- 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,uH(h[u],t,n,u,h,gH(a,n)))
11367
- return new LH(r,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
11368
- "function"!=typeof e&&(e=AP(e))
11369
- 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=gH(l,n),g=0,m=p.length;g<m;++g)(u=p[g])&&uH(u,t,n,g,p,f)
11370
- r.push(p),s.push(l)}return new LH(r,s,t,n)},selectChild:PH.selectChild,selectChildren:PH.selectChildren,filter:function(e){"function"!=typeof e&&(e=IP(e))
11365
+ 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 IH(e,t){return function(){fH(this,e).delay=+t.apply(this,arguments)}}function OH(e,t){return t=+t,function(){fH(this,e).delay=t}}function TH(e,t){return function(){gH(this,e).duration=+t.apply(this,arguments)}}function RH(e,t){return t=+t,function(){gH(this,e).duration=t}}var DH=Oz.prototype.constructor
11366
+ function FH(e){return function(){this.style.removeProperty(e)}}var LH=0
11367
+ function NH(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function PH(){return++LH}var zH=Oz.prototype
11368
+ NH.prototype={constructor:NH,select:function(e){var t=this._name,n=this._id
11369
+ "function"!=typeof e&&(e=_P(e))
11370
+ 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,pH(h[u],t,n,u,h,mH(a,n)))
11371
+ return new NH(r,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id
11372
+ "function"!=typeof e&&(e=EP(e))
11373
+ 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=mH(l,n),g=0,m=p.length;g<m;++g)(u=p[g])&&pH(u,t,n,g,p,f)
11374
+ r.push(p),s.push(l)}return new NH(r,s,t,n)},selectChild:zH.selectChild,selectChildren:zH.selectChildren,filter:function(e){"function"!=typeof e&&(e=OP(e))
11371
11375
  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)
11372
- return new LH(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
11376
+ return new NH(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error
11373
11377
  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)
11374
11378
  for(;a<i;++a)s[a]=t[a]
11375
- return new LH(s,this._parents,this._name,this._id)},selection:function(){return new RH(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=NH(),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=gH(s,t)
11376
- uH(s,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new LH(i,this._parents,e,n)},call:PH.call,nodes:PH.nodes,node:PH.node,size:PH.size,empty:PH.empty,each:PH.each,on:function(e,t){var n=this._id
11377
- return arguments.length<2?gH(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(".")
11378
- return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?pH:fH
11379
+ return new NH(s,this._parents,this._name,this._id)},selection:function(){return new DH(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=PH(),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=mH(s,t)
11380
+ pH(s,e,n,c,a,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new NH(i,this._parents,e,n)},call:zH.call,nodes:zH.nodes,node:zH.node,size:zH.size,empty:zH.empty,each:zH.each,on:function(e,t){var n=this._id
11381
+ return arguments.length<2?mH(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(".")
11382
+ return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?fH:gH
11379
11383
  return function(){var s=r(this,e),a=s.on
11380
- a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}(n,e,t))},attr:function(e,t){var n=xP(e),i="transform"===n?FV:wH
11381
- return this.attrTween(e,"function"==typeof t?(n.local?MH:$H)(n,i,yH(this,"attr."+e,t)):null==t?(n.local?kH:xH)(n):(n.local?SH:CH)(n,i,t))},attrTween:function(e,t){var n="attr."+e
11384
+ a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}(n,e,t))},attr:function(e,t){var n=kP(e),i="transform"===n?LV:xH
11385
+ return this.attrTween(e,"function"==typeof t?(n.local?_H:MH)(n,i,wH(this,"attr."+e,t)):null==t?(n.local?CH:kH)(n):(n.local?$H:SH)(n,i,t))},attrTween:function(e,t){var n="attr."+e
11382
11386
  if(arguments.length<2)return(n=this.tween(n))&&n._value
11383
11387
  if(null==t)return this.tween(n,null)
11384
11388
  if("function"!=typeof t)throw new Error
11385
- var i=xP(e)
11386
- return this.tween(n,(i.local?_H:AH)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?DV:wH
11389
+ var i=kP(e)
11390
+ return this.tween(n,(i.local?AH:EH)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?FV:xH
11387
11391
  return null==t?this.styleTween(e,function(e,t){var n,i,o
11388
- return function(){var r=QP(this,e),s=(this.style.removeProperty(e),QP(this,e))
11389
- return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}(e,i)).on("end.style."+e,DH(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,o,r
11390
- return function(){var s=QP(this,e),a=n(this),l=a+""
11391
- return null==a&&(this.style.removeProperty(e),l=a=QP(this,e)),s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a))}}(e,i,yH(this,"style."+e,t))).each(function(e,t){var n,i,o,r,s="style."+t,a="end."+s
11392
- return function(){var l=fH(this,e),c=l.on,d=null==l.value[s]?r||(r=DH(t)):void 0
11392
+ return function(){var r=ez(this,e),s=(this.style.removeProperty(e),ez(this,e))
11393
+ return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}(e,i)).on("end.style."+e,FH(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var i,o,r
11394
+ return function(){var s=ez(this,e),a=n(this),l=a+""
11395
+ return null==a&&(this.style.removeProperty(e),l=a=ez(this,e)),s===l?null:s===i&&l===o?r:(o=l,r=t(i=s,a))}}(e,i,wH(this,"style."+e,t))).each(function(e,t){var n,i,o,r,s="style."+t,a="end."+s
11396
+ return function(){var l=gH(this,e),c=l.on,d=null==l.value[s]?r||(r=FH(t)):void 0
11393
11397
  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+""
11394
- return function(){var s=QP(this,e)
11398
+ return function(){var s=ez(this,e)
11395
11399
  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+="")
11396
11400
  if(arguments.length<2)return(i=this.tween(i))&&i._value
11397
11401
  if(null==t)return this.tween(i,null)
@@ -11399,7 +11403,7 @@ if("function"!=typeof t)throw new Error
11399
11403
  return this.tween(i,function(e,t,n){var i,o
11400
11404
  function r(){var r=t.apply(this,arguments)
11401
11405
  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)
11402
- this.textContent=null==t?"":t}}(yH(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
11406
+ this.textContent=null==t?"":t}}(wH(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text"
11403
11407
  if(arguments.length<1)return(t=this.tween(t))&&t._value
11404
11408
  if(null==e)return this.tween(t,null)
11405
11409
  if("function"!=typeof e)throw new Error
@@ -11408,60 +11412,60 @@ function i(){var i=e.apply(this,arguments)
11408
11412
  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
11409
11413
  for(var n in this.__transition)if(+n!==e)return
11410
11414
  t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id
11411
- if(e+="",arguments.length<2){for(var i,o=gH(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===e)return i.value
11412
- return null}return this.each((null==t?vH:bH)(n,e,t))},delay:function(e){var t=this._id
11413
- return arguments.length?this.each(("function"==typeof e?EH:IH)(t,e)):gH(this.node(),t).delay},duration:function(e){var t=this._id
11414
- return arguments.length?this.each(("function"==typeof e?OH:TH)(t,e)):gH(this.node(),t).duration},ease:function(e){var t=this._id
11415
+ if(e+="",arguments.length<2){for(var i,o=mH(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===e)return i.value
11416
+ return null}return this.each((null==t?bH:yH)(n,e,t))},delay:function(e){var t=this._id
11417
+ return arguments.length?this.each(("function"==typeof e?IH:OH)(t,e)):mH(this.node(),t).delay},duration:function(e){var t=this._id
11418
+ return arguments.length?this.each(("function"==typeof e?TH:RH)(t,e)):mH(this.node(),t).duration},ease:function(e){var t=this._id
11415
11419
  return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error
11416
- return function(){fH(this,e).ease=t}}(t,e)):gH(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
11420
+ return function(){gH(this,e).ease=t}}(t,e)):mH(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error
11417
11421
  return this.each(function(e,t){return function(){var n=t.apply(this,arguments)
11418
11422
  if("function"!=typeof n)throw new Error
11419
- fH(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,o=n.size()
11423
+ gH(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,i=n._id,o=n.size()
11420
11424
  return new Promise((function(r,s){var a={value:s},l={value:function(){0==--o&&r()}}
11421
- n.each((function(){var n=fH(this,i),o=n.on
11422
- 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]:PH[Symbol.iterator]}
11423
- var zH={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
11424
- function VH(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
11425
- return n}Iz.prototype.interrupt=function(e){return this.each((function(){mH(this,e)}))},Iz.prototype.transition=function(e){var t,n
11426
- e instanceof LH?(t=e._id,e=e._name):(t=NH(),(n=zH).time=KV(),e=null==e?null:e+"")
11427
- 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])&&uH(s,e,t,c,a,n||VH(s,t))
11428
- return new LH(i,this._parents,e,t)}
11429
- var HH=e=>()=>e
11430
- function BH(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 qH(e,t,n){this.k=e,this.x=t,this.y=n}qH.prototype={constructor:qH,scale:function(e){return 1===e?this:new qH(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new qH(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+")"}}
11431
- var ZH=new qH(1,0,0)
11432
- function jH(e){for(;!e.__zoom;)if(!(e=e.parentNode))return ZH
11433
- return e.__zoom}function UH(e){e.stopImmediatePropagation()}function WH(e){e.preventDefault(),e.stopImmediatePropagation()}function GH(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function KH(){var e=this
11434
- 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 JH(){return this.__zoom||ZH}function XH(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function YH(){return navigator.maxTouchPoints||"ontouchstart"in this}function QH(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]
11435
- 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 eB(){var e,t,n,i=GH,o=KH,r=QH,s=XH,a=YH,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=zV,u=gP("start","zoom","end"),p=500,f=150,g=0,m=10
11436
- function v(e){e.property("__zoom",JH).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",E).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 qH(t,e.x,e.y)}function y(e,t,n){var i=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k
11437
- return i===e.x&&o===e.y?e:new qH(e.k,i,o)}function w(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?w(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))
11425
+ n.each((function(){var n=gH(this,i),o=n.on
11426
+ 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]:zH[Symbol.iterator]}
11427
+ var VH={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}}
11428
+ function HH(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`)
11429
+ return n}Oz.prototype.interrupt=function(e){return this.each((function(){vH(this,e)}))},Oz.prototype.transition=function(e){var t,n
11430
+ e instanceof NH?(t=e._id,e=e._name):(t=PH(),(n=VH).time=JV(),e=null==e?null:e+"")
11431
+ 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])&&pH(s,e,t,c,a,n||HH(s,t))
11432
+ return new NH(i,this._parents,e,t)}
11433
+ var BH=e=>()=>e
11434
+ function qH(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 ZH(e,t,n){this.k=e,this.x=t,this.y=n}ZH.prototype={constructor:ZH,scale:function(e){return 1===e?this:new ZH(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new ZH(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+")"}}
11435
+ var jH=new ZH(1,0,0)
11436
+ function UH(e){for(;!e.__zoom;)if(!(e=e.parentNode))return jH
11437
+ return e.__zoom}function WH(e){e.stopImmediatePropagation()}function GH(e){e.preventDefault(),e.stopImmediatePropagation()}function KH(e){return!(e.ctrlKey&&"wheel"!==e.type||e.button)}function JH(){var e=this
11438
+ 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 XH(){return this.__zoom||jH}function YH(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function QH(){return navigator.maxTouchPoints||"ontouchstart"in this}function eB(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]
11439
+ 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 tB(){var e,t,n,i=KH,o=JH,r=eB,s=YH,a=QH,l=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,h=VV,u=mP("start","zoom","end"),p=500,f=150,g=0,m=10
11440
+ function v(e){e.property("__zoom",XH).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).filter(a).on("touchstart.zoom",_).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",E).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 ZH(t,e.x,e.y)}function y(e,t,n){var i=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k
11441
+ return i===e.x&&o===e.y?e:new ZH(e.k,i,o)}function w(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?w(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))
11438
11442
  return function(e){if(1===e)e=u
11439
11443
  else{var t=p(e),n=c/t[2]
11440
- e=new qH(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=Tz(e)
11444
+ e=new ZH(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=Rz(e)
11441
11445
  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)
11442
11446
  else{if(o.k===a)return
11443
- n.mouse=[d,o.invert(d)],mH(this),n.start()}WH(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",r(y(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=Oz(e.view).on("mousemove.zoom",(function(e){if(WH(e),!s.moved){var t=e.clientX-d,n=e.clientY-h
11444
- s.moved=t*t+n*n>g}s.event(e).zoom("mouse",r(y(s.that.__zoom,s.mouse[0]=Tz(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=Oz(e).on("dragstart.drag",null)
11445
- t&&(i.on("click.drag",Dz,Rz),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),WH(e),s.event(e).end()}),!0),l=Tz(e,o),d=e.clientX,h=e.clientY
11446
- !function(e){var t=e.document.documentElement,n=Oz(e).on("dragstart.drag",Dz,Rz)
11447
- "onselectstart"in t?n.on("selectstart.drag",Dz,Rz):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),UH(e),s.mouse=[l,this.__zoom.invert(l)],mH(this),s.start()}}function M(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,s=Tz(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(s),l=n.k*(e.shiftKey?.5:2),h=r(y(b(n,l),s,a),o.apply(this,t),c)
11448
- WH(e),d>0?Oz(this).transition().duration(d).call(x,h,s,e):Oz(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)
11449
- for(UH(n),s=0;s<d;++s)l=[l=Tz(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)
11450
- e&&(e=clearTimeout(e)),r&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),mH(this),h.start())}}function A(e,...t){if(this.__zooming){var n,i,o,s,a=k(this,t).event(e),l=e.changedTouches,d=l.length
11451
- for(WH(e),n=0;n<d;++n)o=Tz(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)
11447
+ n.mouse=[d,o.invert(d)],vH(this),n.start()}GH(e),n.wheel=setTimeout((function(){n.wheel=null,n.end()}),f),n.zoom("mouse",r(y(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=Tz(e.view).on("mousemove.zoom",(function(e){if(GH(e),!s.moved){var t=e.clientX-d,n=e.clientY-h
11448
+ s.moved=t*t+n*n>g}s.event(e).zoom("mouse",r(y(s.that.__zoom,s.mouse[0]=Rz(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=Tz(e).on("dragstart.drag",null)
11449
+ t&&(i.on("click.drag",Fz,Dz),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),GH(e),s.event(e).end()}),!0),l=Rz(e,o),d=e.clientX,h=e.clientY
11450
+ !function(e){var t=e.document.documentElement,n=Tz(e).on("dragstart.drag",Fz,Dz)
11451
+ "onselectstart"in t?n.on("selectstart.drag",Fz,Dz):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}(e.view),WH(e),s.mouse=[l,this.__zoom.invert(l)],vH(this),s.start()}}function M(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,s=Rz(e.changedTouches?e.changedTouches[0]:e,this),a=n.invert(s),l=n.k*(e.shiftKey?.5:2),h=r(y(b(n,l),s,a),o.apply(this,t),c)
11452
+ GH(e),d>0?Tz(this).transition().duration(d).call(x,h,s,e):Tz(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)
11453
+ for(WH(n),s=0;s<d;++s)l=[l=Rz(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)
11454
+ e&&(e=clearTimeout(e)),r&&(h.taps<2&&(t=l[0],e=setTimeout((function(){e=null}),p)),vH(this),h.start())}}function A(e,...t){if(this.__zooming){var n,i,o,s,a=k(this,t).event(e),l=e.changedTouches,d=l.length
11455
+ for(GH(e),n=0;n<d;++n)o=Rz(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)
11452
11456
  if(i=a.that.__zoom,a.touch1){var h=a.touch0[0],u=a.touch0[1],p=a.touch1[0],f=a.touch1[1],g=(g=p[0]-h[0])*g+(g=p[1]-h[1])*g,m=(m=f[0]-u[0])*m+(m=f[1]-u[1])*m
11453
11457
  i=b(i,Math.sqrt(g/m)),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
11454
11458
  o=a.touch0[0],s=a.touch0[1]}a.zoom("touch",r(y(i,o,s),a.extent,c))}}function E(e,...i){if(this.__zooming){var o,r,s=k(this,i).event(e),a=e.changedTouches,l=a.length
11455
- for(UH(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
11459
+ for(WH(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
11456
11460
  if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0])
11457
- else if(s.end(),2===s.taps&&(r=Tz(r,this),Math.hypot(t[0]-r[0],t[1]-r[1])<m)){var c=Oz(this).on("dblclick.zoom")
11461
+ else if(s.end(),2===s.taps&&(r=Rz(r,this),Math.hypot(t[0]-r[0],t[1]-r[1])<m)){var c=Tz(this).on("dblclick.zoom")
11458
11462
  c&&c.apply(this,arguments)}}}return v.transform=function(e,t,n,i){var o=e.selection?e.selection():e
11459
- o.property("__zoom",JH),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?w(e):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(s),l="function"==typeof t?t.apply(this,arguments):t
11463
+ o.property("__zoom",XH),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?w(e):"function"==typeof n?n.apply(this,arguments):n,a=i.invert(s),l="function"==typeof t?t.apply(this,arguments):t
11460
11464
  return r(y(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?w(e):"function"==typeof i?i.apply(this,arguments):i
11461
- return r(ZH.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=Oz(this.that).datum()
11462
- u.call(e,this.that,new BH(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:HH(+e),v):s},v.filter=function(e){return arguments.length?(i="function"==typeof e?e:HH(!!e),v):i},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:HH(!!e),v):a},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:HH([[+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)
11463
- return e===u?v:e},v.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,v):Math.sqrt(g)},v.tapDistance=function(e){return arguments.length?(m=+e,v):m},v}jH.prototype=qH.prototype
11464
- const tB=W`
11465
+ return r(jH.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=Tz(this.that).datum()
11466
+ u.call(e,this.that,new qH(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:BH(+e),v):s},v.filter=function(e){return arguments.length?(i="function"==typeof e?e:BH(!!e),v):i},v.touchable=function(e){return arguments.length?(a="function"==typeof e?e:BH(!!e),v):a},v.extent=function(e){return arguments.length?(o="function"==typeof e?e:BH([[+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)
11467
+ return e===u?v:e},v.clickDistance=function(e){return arguments.length?(g=(e=+e)*e,v):Math.sqrt(g)},v.tapDistance=function(e){return arguments.length?(m=+e,v):m},v}UH.prototype=ZH.prototype
11468
+ const nB=W`
11465
11469
  <div class="wafer-map-container">
11466
11470
  <svg class="svg-root">
11467
11471
  <g ${De("zoomContainer")} transform=${e=>e.transform.toString()}>
@@ -11491,7 +11495,7 @@ const tB=W`
11491
11495
  />
11492
11496
  </svg>
11493
11497
  </div>
11494
- `,nB=ye`
11498
+ `,iB=ye`
11495
11499
  :host {
11496
11500
  display: inline-block;
11497
11501
  width: 500px;
@@ -11575,68 +11579,68 @@ const tB=W`
11575
11579
  outline-width: 0px;
11576
11580
  }
11577
11581
  `
11578
- function iB(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function oB(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function rB(e){let t,n,i
11582
+ function oB(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rB(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function sB(e){let t,n,i
11579
11583
  function o(e,i,o=0,r=e.length){if(o<r){if(0!==t(i,i))return r
11580
11584
  do{const t=o+r>>>1
11581
- n(e[t],i)<0?o=t+1:r=t}while(o<r)}return o}return 2!==e.length?(t=iB,n=(t,n)=>iB(e(t),n),i=(t,n)=>e(t)-n):(t=e===iB||e===oB?e:sB,n=e,i=e),{left:o,center:function(e,t,n=0,r=e.length){const s=o(e,t,n,r-1)
11585
+ n(e[t],i)<0?o=t+1:r=t}while(o<r)}return o}return 2!==e.length?(t=oB,n=(t,n)=>oB(e(t),n),i=(t,n)=>e(t)-n):(t=e===oB||e===rB?e:aB,n=e,i=e),{left:o,center:function(e,t,n=0,r=e.length){const s=o(e,t,n,r-1)
11582
11586
  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
11583
11587
  do{const t=o+r>>>1
11584
- n(e[t],i)<=0?o=t+1:r=t}while(o<r)}return o}}}function sB(){return 0}function aB(e){return null===e?NaN:+e}const lB=rB(iB).right
11585
- rB(aB).center
11586
- var cB=lB
11587
- class dB extends Map{constructor(e,t=uB){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(hB(this,e))}has(e){return super.has(hB(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const i=t(n)
11588
+ n(e[t],i)<=0?o=t+1:r=t}while(o<r)}return o}}}function aB(){return 0}function lB(e){return null===e?NaN:+e}const cB=sB(oB).right
11589
+ sB(lB).center
11590
+ var dB=cB
11591
+ class hB extends Map{constructor(e,t=pB){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(uB(this,e))}has(e){return super.has(uB(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const i=t(n)
11588
11592
  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)
11589
11593
  e.has(i)&&(n=e.get(i),e.delete(i))
11590
- return n}(this,e))}}function hB({_intern:e,_key:t},n){const i=t(n)
11591
- return e.has(i)?e.get(i):n}function uB(e){return null!==e&&"object"==typeof e?e.valueOf():e}const pB=Math.sqrt(50),fB=Math.sqrt(10),gB=Math.sqrt(2)
11592
- function mB(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>=pB?10:r>=fB?5:r>=gB?2:1
11594
+ return n}(this,e))}}function uB({_intern:e,_key:t},n){const i=t(n)
11595
+ return e.has(i)?e.get(i):n}function pB(e){return null!==e&&"object"==typeof e?e.valueOf():e}const fB=Math.sqrt(50),gB=Math.sqrt(10),mB=Math.sqrt(2)
11596
+ function vB(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>=fB?10:r>=gB?5:r>=mB?2:1
11593
11597
  let a,l,c
11594
- 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?mB(e,t,2*n):[a,l,c]}function vB(e,t,n){return mB(e=+e,t=+t,n=+n)[2]}function bB(e,t,n=aB){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e)
11598
+ 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?vB(e,t,2*n):[a,l,c]}function bB(e,t,n){return vB(e=+e,t=+t,n=+n)[2]}function yB(e,t,n=lB){if((i=e.length)&&!isNaN(t=+t)){if(t<=0||i<2)return+n(e[0],0,e)
11595
11599
  if(t>=1)return+n(e[i-1],i-1,e)
11596
11600
  var i,o=(i-1)*t,r=Math.floor(o),s=+n(e[r],r,e)
11597
- return s+(+n(e[r+1],r+1,e)-s)*(o-r)}}function yB(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n
11601
+ return s+(+n(e[r+1],r+1,e)-s)*(o-r)}}function wB(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n
11598
11602
  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
11599
- return r}function wB(e,t){switch(arguments.length){case 0:break
11603
+ return r}function xB(e,t){switch(arguments.length){case 0:break
11600
11604
  case 1:this.range(e)
11601
11605
  break
11602
- default:this.range(t).domain(e)}return this}const xB=Symbol("implicit")
11603
- function kB(){var e=new dB,t=[],n=[],i=xB
11606
+ default:this.range(t).domain(e)}return this}const kB=Symbol("implicit")
11607
+ function CB(){var e=new hB,t=[],n=[],i=kB
11604
11608
  function o(o){let r=e.get(o)
11605
- if(void 0===r){if(i!==xB)return i
11609
+ if(void 0===r){if(i!==kB)return i
11606
11610
  e.set(o,r=t.push(o)-1)}return n[r%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice()
11607
- t=[],e=new dB
11611
+ t=[],e=new hB
11608
11612
  for(const i of n)e.has(i)||e.set(i,t.push(i)-1)
11609
- 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 kB(t,n).unknown(i)},wB.apply(o,arguments),o}function CB(){var e,t,n=kB().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
11613
+ 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 CB(t,n).unknown(i)},xB.apply(o,arguments),o}function SB(){var e,t,n=CB().unknown(void 0),i=n.domain,o=n.range,r=0,s=1,a=!1,l=0,c=0,d=.5
11610
11614
  function h(){var n=i().length,h=s<r,u=h?s:r,p=h?r:s
11611
11615
  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))
11612
- var f=yB(n).map((function(t){return u+e*t}))
11613
- 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 CB(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},wB.apply(h(),arguments)}function SB(e){return+e}var $B=[0,1]
11614
- function MB(e){return e}function _B(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})
11615
- var n}function AB(e,t,n){var i=e[0],o=e[1],r=t[0],s=t[1]
11616
- return o<i?(i=_B(o,i),r=n(s,r)):(i=_B(i,o),r=n(r,s)),function(e){return r(i(e))}}function EB(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),r=new Array(i),s=-1
11617
- for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=_B(e[s],e[s+1]),r[s]=n(t[s],t[s+1])
11618
- return function(t){var n=cB(e,t,1,i)-1
11619
- return r[n](o[n](t))}}function IB(){var e,t,n,i,o,r,s=$B,a=$B,l=_V,c=MB
11616
+ var f=wB(n).map((function(t){return u+e*t}))
11617
+ 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 SB(i(),[r,s]).round(a).paddingInner(l).paddingOuter(c).align(d)},xB.apply(h(),arguments)}function $B(e){return+e}var MB=[0,1]
11618
+ function _B(e){return e}function AB(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})
11619
+ var n}function EB(e,t,n){var i=e[0],o=e[1],r=t[0],s=t[1]
11620
+ return o<i?(i=AB(o,i),r=n(s,r)):(i=AB(i,o),r=n(r,s)),function(e){return r(i(e))}}function IB(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),r=new Array(i),s=-1
11621
+ for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=AB(e[s],e[s+1]),r[s]=n(t[s],t[s+1])
11622
+ return function(t){var n=dB(e,t,1,i)-1
11623
+ return r[n](o[n](t))}}function OB(){var e,t,n,i,o,r,s=MB,a=MB,l=AV,c=_B
11620
11624
  function d(){var e,t,n,l=Math.min(s.length,a.length)
11621
- return c!==MB&&(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?EB:AB,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),kV)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,SB),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=AV,d()},h.clamp=function(e){return arguments.length?(c=!!e||MB,d()):c!==MB},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 OB(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
11625
+ return c!==_B&&(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?IB:EB,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),CV)))(n)))},h.domain=function(e){return arguments.length?(s=Array.from(e,$B),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=EV,d()},h.clamp=function(e){return arguments.length?(c=!!e||_B,d()):c!==_B},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 TB(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null
11622
11626
  var n,i=e.slice(0,n)
11623
- return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function TB(e){return(e=OB(Math.abs(e)))?e[1]:NaN}var RB,DB=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
11624
- function FB(e){if(!(t=DB.exec(e)))throw new Error("invalid format: "+e)
11627
+ return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function RB(e){return(e=TB(Math.abs(e)))?e[1]:NaN}var DB,FB=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i
11628
+ function LB(e){if(!(t=FB.exec(e)))throw new Error("invalid format: "+e)
11625
11629
  var t
11626
- return new LB({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 LB(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 NB(e,t){var n=OB(e,t)
11630
+ return new NB({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 NB(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 PB(e,t){var n=TB(e,t)
11627
11631
  if(!n)return e+""
11628
11632
  var i=n[0],o=n[1]
11629
- 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")}FB.prototype=LB.prototype,LB.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}
11630
- var PB={"%":(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)=>NB(100*e,t),r:NB,s:function(e,t){var n=OB(e,t)
11633
+ 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")}LB.prototype=NB.prototype,NB.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}
11634
+ var zB={"%":(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)=>PB(100*e,t),r:PB,s:function(e,t){var n=TB(e,t)
11631
11635
  if(!n)return e+""
11632
- var i=n[0],o=n[1],r=o-(RB=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
11633
- 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")+OB(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
11634
- function zB(e){return e}var VB,HB,BB,qB=Array.prototype.map,ZB=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
11635
- function jB(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?zB:(t=qB.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]
11636
- 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?zB:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(qB.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+""
11637
- function h(e){var t=(e=FB(e)).fill,n=e.align,h=e.sign,u=e.symbol,p=e.zero,f=e.width,g=e.comma,m=e.precision,v=e.trim,b=e.type
11638
- "n"===b?(g=!0,b="g"):PB[b]||(void 0===m&&(m=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=")
11639
- var y="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?r:/[%p]/.test(b)?l:"",x=PB[b],k=/[defgprs%]/.test(b)
11636
+ var i=n[0],o=n[1],r=o-(DB=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length
11637
+ 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")+TB(e,Math.max(0,t+r-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}
11638
+ function VB(e){return e}var HB,BB,qB,ZB=Array.prototype.map,jB=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]
11639
+ function UB(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?VB:(t=ZB.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]
11640
+ 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?VB:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(ZB.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+""
11641
+ function h(e){var t=(e=LB(e)).fill,n=e.align,h=e.sign,u=e.symbol,p=e.zero,f=e.width,g=e.comma,m=e.precision,v=e.trim,b=e.type
11642
+ "n"===b?(g=!0,b="g"):zB[b]||(void 0===m&&(m=12),v=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=")
11643
+ var y="$"===u?o:"#"===u&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===u?r:/[%p]/.test(b)?l:"",x=zB[b],k=/[defgprs%]/.test(b)
11640
11644
  function C(e){var o,r,l,u=y,C=w
11641
11645
  if("c"===b)C=x(e)+C,e=""
11642
11646
  else{var S=(e=+e)<0||1/e<0
@@ -11645,7 +11649,7 @@ break
11645
11649
  case"0":0===o&&(o=i),t=i
11646
11650
  break
11647
11651
  default:if(!+e[i])break e
11648
- 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?ZB[8+RB/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)
11652
+ 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?jB[8+DB/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)
11649
11653
  break}}g&&!p&&(e=i(e,1/0))
11650
11654
  var $=u.length+e.length+C.length,M=$<f?new Array(f-$+1).join(t):""
11651
11655
  switch(g&&p&&(e=i(M+e,M.length?f-C.length:1/0),M=""),n){case"<":e=u+e+C+M
@@ -11654,19 +11658,19 @@ case"=":e=u+M+e+C
11654
11658
  break
11655
11659
  case"^":e=M.slice(0,$=M.length>>1)+u+e+C+M.slice($)
11656
11660
  break
11657
- default:e=M+u+e+C}return a(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var n=h(((e=FB(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(TB(t)/3))),o=Math.pow(10,-i),r=ZB[8+i/3]
11658
- return function(e){return n(o*e)+r}}}}function UB(e,t,n,i){var o,r=function(e,t,n){n=+n
11659
- const i=(t=+t)<(e=+e),o=i?vB(t,e,n):vB(e,t,n)
11661
+ default:e=M+u+e+C}return a(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var n=h(((e=LB(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(RB(t)/3))),o=Math.pow(10,-i),r=jB[8+i/3]
11662
+ return function(e){return n(o*e)+r}}}}function WB(e,t,n,i){var o,r=function(e,t,n){n=+n
11663
+ const i=(t=+t)<(e=+e),o=i?bB(t,e,n):bB(e,t,n)
11660
11664
  return(i?-1:1)*(o<0?1/-o:o)}(e,t,n)
11661
- switch((i=FB(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t))
11662
- return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(TB(t)/3)))-TB(Math.abs(e)))}(r,s))||(i.precision=o),BB(i,s)
11663
- 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,TB(t)-TB(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type))
11665
+ switch((i=LB(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t))
11666
+ return null!=i.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(RB(t)/3)))-RB(Math.abs(e)))}(r,s))||(i.precision=o),qB(i,s)
11667
+ 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,RB(t)-RB(e))+1}(r,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type))
11664
11668
  break
11665
- case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-TB(Math.abs(e)))}(r))||(i.precision=o-2*("%"===i.type))}return HB(i)}function WB(e){var t=e.domain
11669
+ case"f":case"%":null!=i.precision||isNaN(o=function(e){return Math.max(0,-RB(Math.abs(e)))}(r))||(i.precision=o-2*("%"===i.type))}return BB(i)}function GB(e){var t=e.domain
11666
11670
  return e.ticks=function(e){var n=t()
11667
11671
  return function(e,t,n){if(!((n=+n)>0))return[]
11668
11672
  if((e=+e)==(t=+t))return[e]
11669
- const i=t<e,[o,r,s]=i?mB(t,e,n):mB(e,t,n)
11673
+ const i=t<e,[o,r,s]=i?vB(t,e,n):vB(e,t,n)
11670
11674
  if(!(r>=o))return[]
11671
11675
  const a=r-o+1,l=new Array(a)
11672
11676
  if(i)if(s<0)for(let e=0;e<a;++e)l[e]=(r-e)/-s
@@ -11674,22 +11678,22 @@ else for(let e=0;e<a;++e)l[e]=(r-e)*s
11674
11678
  else if(s<0)for(let e=0;e<a;++e)l[e]=(o+e)/-s
11675
11679
  else for(let e=0;e<a;++e)l[e]=(o+e)*s
11676
11680
  return l}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var i=t()
11677
- return UB(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10)
11681
+ return WB(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10)
11678
11682
  var i,o,r=t(),s=0,a=r.length-1,l=r[s],c=r[a],d=10
11679
- for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=vB(l,c,n))===i)return r[s]=l,r[a]=c,t(r)
11683
+ for(c<l&&(o=l,l=c,c=o,o=s,s=a,a=o);d-- >0;){if((o=bB(l,c,n))===i)return r[s]=l,r[a]=c,t(r)
11680
11684
  if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o
11681
11685
  else{if(!(o<0))break
11682
- l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function GB(){var e=IB()(MB,MB)
11683
- return e.copy=function(){return function(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}(e,GB())},wB.apply(e,arguments),WB(e)}function KB(){var e,t=[],n=[],i=[]
11686
+ l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}i=o}return e},e}function KB(){var e=OB()(_B,_B)
11687
+ return e.copy=function(){return function(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}(e,KB())},xB.apply(e,arguments),GB(e)}function JB(){var e,t=[],n=[],i=[]
11684
11688
  function o(){var e=0,o=Math.max(1,n.length)
11685
- for(i=new Array(o-1);++e<o;)i[e-1]=bB(t,e/o)
11686
- return r}function r(t){return null==t||isNaN(t=+t)?e:n[cB(i,t)]}return r.invertExtent=function(e){var o=n.indexOf(e)
11689
+ for(i=new Array(o-1);++e<o;)i[e-1]=yB(t,e/o)
11690
+ return r}function r(t){return null==t||isNaN(t=+t)?e:n[dB(i,t)]}return r.invertExtent=function(e){var o=n.indexOf(e)
11687
11691
  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()
11688
11692
  t=[]
11689
11693
  for(let n of e)null==n||isNaN(n=+n)||t.push(n)
11690
- return t.sort(iB),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 KB().domain(t).range(n).unknown(e)},wB.apply(r,arguments)}VB=jB({thousands:",",grouping:[3],currency:["$",""]}),HB=VB.format,BB=VB.formatPrefix
11691
- const JB="bottom-left",XB="bottom-right",YB="top-left",QB="top",eq="show",tq="hide",nq="linear",iq="ordinal"
11692
- class oq{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}
11694
+ return t.sort(oB),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 JB().domain(t).range(n).unknown(e)},xB.apply(r,arguments)}HB=UB({thousands:",",grouping:[3],currency:["$",""]}),BB=HB.format,qB=HB.formatPrefix
11695
+ const XB="bottom-left",YB="bottom-right",QB="top-left",eq="top",tq="show",nq="hide",iq="linear",oq="ordinal"
11696
+ class rq{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}
11693
11697
  this._margin=this.calculateMarginAddition(i,n),this._containerDimensions=this.calculateContainerDimensions(e,this._margin)
11694
11698
  const o=Math.min(this._containerDimensions.width,this._containerDimensions.height)
11695
11699
  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
@@ -11697,22 +11701,22 @@ this._horizontalScale=this.createHorizontalScale(n,t,e),this._invertedHorizontal
11697
11701
  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}
11698
11702
  const t={x:e[0].x,y:e[0].y},n={x:e[0].x,y:e[0].y}
11699
11703
  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)
11700
- 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=CB().domain(yB(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
11701
- return e===JB||e===YB?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(e,t,n){const i=KB().domain([0,n])
11702
- return e===JB||e===YB?i.range(yB(t.origin.x,t.origin.x+t.cols)):i.range(yB(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,n){const i=CB().domain(yB(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
11703
- return e===JB||e===XB?i.range([0,n]):i.range([n,0])}createInvertedVerticalScale(e,t,n){const i=KB().domain([0,n])
11704
- return e===JB||e===XB?i.range(yB(t.origin.y,t.origin.y+t.rows)):i.range(yB(t.origin.y,t.origin.y+t.rows).reverse())}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 rq{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)
11704
+ 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=SB().domain(wB(t.origin.x,t.origin.x+t.cols)).paddingInner(0).paddingOuter(0).align(0).round(!1)
11705
+ return e===XB||e===QB?i.range([0,n]):i.range([n,0])}createInvertedHorizontalScale(e,t,n){const i=JB().domain([0,n])
11706
+ return e===XB||e===QB?i.range(wB(t.origin.x,t.origin.x+t.cols)):i.range(wB(t.origin.x,t.origin.x+t.cols).reverse())}createVerticalScale(e,t,n){const i=SB().domain(wB(t.origin.y,t.origin.y+t.rows)).paddingInner(this.defaultPadding).paddingOuter(0).align(0).round(!1)
11707
+ return e===XB||e===YB?i.range([0,n]):i.range([n,0])}createInvertedVerticalScale(e,t,n){const i=JB().domain([0,n])
11708
+ return e===XB||e===YB?i.range(wB(t.origin.y,t.origin.y+t.rows)):i.range(wB(t.origin.y,t.origin.y+t.rows).reverse())}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 sq{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)
11705
11709
  const e=this.dataManager.margin,t=this.dataManager.horizontalScale,n=this.dataManager.verticalScale,i=this.wafermap.colorScaleMode,o=this.wafermap.highlightedValues,r=this.wafermap.maxCharacters,s=this.wafermap.dieLabelsHidden,a=this.wafermap.dieLabelsSuffix
11706
11710
  this._diesRenderInfo=[]
11707
11711
  for(const l of this.wafermap.dies){const c=t(l.x)
11708
11712
  if(void 0===c)continue
11709
11713
  const d=n(l.y)
11710
- void 0!==d&&this._diesRenderInfo.push({x:c+e.right,y:d+e.top,fillStyle:this.calculateFillStyle(l.value,i,o),text:this.buildLabel(l.value,r,s,a)})}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?GB().domain(e.values.map((e=>+e))).range(e.colors):kB().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,n,i){if(n||!this.dieHasData(e))return""
11714
+ void 0!==d&&this._diesRenderInfo.push({x:c+e.right,y:d+e.top,fillStyle:this.calculateFillStyle(l.value,i,o),text:this.buildLabel(l.value,r,s,a)})}}calculateLabelsFontSize(e,t){return Math.min(e.height,e.width/(.5*Math.max(2,t))*this.fontSizeFactor)}createD3ColorScale(e,t){return this.isColorScaleLinear(t)?KB().domain(e.values.map((e=>+e))).range(e.colors):CB().domain(e.values).range(e.colors)}dieHasData(e){return null!=e&&""!==e}buildLabel(e,t,n,i){if(n||!this.dieHasData(e))return""
11711
11715
  const o=`${e}${i}`
11712
- return o.length>t?`${o.substring(0,t)}…`:o}calculateOpacity(e,t){return t.length>0&&!t.some((t=>t===e))?this.nonHighlightedOpacity:1}isColorScaleLinear(e){return e===nq}isColorScaleOrdinal(e){return e===iq}calculateFillStyle(e,t,n){let i=this.emptyDieColor
11716
+ return o.length>t?`${o.substring(0,t)}…`:o}calculateOpacity(e,t){return t.length>0&&!t.some((t=>t===e))?this.nonHighlightedOpacity:1}isColorScaleLinear(e){return e===iq}isColorScaleOrdinal(e){return e===oq}calculateFillStyle(e,t,n){let i=this.emptyDieColor
11713
11717
  if(this.dieHasData(e)&&(isNaN(+e)?i=this.nanDieColor:this.isColorScaleLinear(t)?i=this.d3ColorScale(+e):this.isColorScaleOrdinal(t)&&(i=this.d3ColorScale(e))),void 0===i)return this.emptyDieColor
11714
11718
  let o=jo(i)
11715
- return null===o?this.emptyDieColor:(o=new No(o.r,o.g,o.b,this.calculateOpacity(e,n)),o.toStringWebRGBA())}}class sq{constructor(e){this.wafermap=e,this.computations=new oq(e),this.prerendering=new rq(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 aq{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?tq:eq,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
11719
+ return null===o?this.emptyDieColor:(o=new No(o.r,o.g,o.b,this.calculateOpacity(e,n)),o.toStringWebRGBA())}}class aq{constructor(e){this.wafermap=e,this.computations=new rq(e),this.prerendering=new sq(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 lq{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?nq:tq,this.wafermap.hoverTransform=this.calculateHoverTransform()}calculateHoverTransform(){if(void 0!==this.wafermap.hoverDie){const e=this.wafermap.dataManager.horizontalScale(this.wafermap.hoverDie.x)
11716
11720
  if(void 0===e)return""
11717
11721
  const t=this.wafermap.dataManager.verticalScale(this.wafermap.hoverDie.y)
11718
11722
  if(void 0===t)return""
@@ -11725,19 +11729,19 @@ if(e*t*(this.wafermap.transform.k||1)>=this.minDieDim){const n=this.wafermap.dat
11725
11729
  i.font=`${n.toString()}px sans-serif`,i.fillStyle="#ffffff",i.textAlign="center",i.lineCap="butt"
11726
11730
  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])
11727
11731
  r[0]-=e,r[1]-=t
11728
- 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 lq{constructor(e){this.wafermap=e,this.zoomTransform=ZH,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100}createZoomBehavior(){this.zoomBehavior=eB().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=>jH(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)})),this.zoomBehavior(Oz(this.wafermap.canvas))}rescale(e){const t=e.transform
11729
- t.k===this.minScale?(this.zoomTransform=ZH,this.zoomBehavior.transform(Oz(this.wafermap.canvas),ZH)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}getZoomMax(e,t){return Math.ceil(t/e*100)}}class cq{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
11732
+ 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 cq{constructor(e){this.wafermap=e,this.zoomTransform=jH,this.minScale=1.1,this.minExtentPoint=[-100,-100],this.extentPadding=100}createZoomBehavior(){this.zoomBehavior=tB().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=>UH(this.wafermap.canvas).k>=this.minScale||"wheel"===e.type)).on("zoom",(e=>{this.rescale(e)})),this.zoomBehavior(Tz(this.wafermap.canvas))}rescale(e){const t=e.transform
11733
+ t.k===this.minScale?(this.zoomTransform=jH,this.zoomBehavior.transform(Tz(this.wafermap.canvas),jH)):this.zoomTransform=t,this.wafermap.transform=this.zoomTransform}getZoomMax(e,t){return Math.ceil(t/e*100)}}class dq{constructor(e){this.wafermap=e}mousemove(e){const t={x:e.offsetX,y:e.offsetY}
11730
11734
  if(!this.hoversOverDie(this.wafermap,t))return void(this.wafermap.hoverDie=void 0)
11731
11735
  const n=this.wafermap.transform.invert([t.x,t.y]),i=this.calculateDieCoordinates(this.wafermap,{x:n[0],y:n[1]})
11732
- this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e,t){const n=e.originLocation,i=n===JB||n===YB?Math.floor:Math.ceil,o=n===JB||n===XB?Math.floor:Math.ceil
11736
+ this.wafermap.hoverDie=this.wafermap.dataManager.getWaferMapDie(i)}mouseout(){this.wafermap.hoverDie=void 0}calculateDieCoordinates(e,t){const n=e.originLocation,i=n===XB||n===QB?Math.floor:Math.ceil,o=n===XB||n===YB?Math.floor:Math.ceil
11733
11737
  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
11734
11738
  let i=0
11735
11739
  for(const e of n)i+=e
11736
- return i>0}}class dq{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 lq(e),this.hoverHandler=new cq(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 hq=["canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","highlightedValues","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
11737
- class uq extends FF{constructor(e){super(hq),this.wafermap=e,this.updateQueued=!1}get requiresEventsUpdate(){return 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("highlightedValues")||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("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("highlightedValues")||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 pq{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 fq extends Nt{constructor(){super(...arguments),this.waferMapUpdateTracker=new uq(this),this.originLocation=JB,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=QB,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=nq,this.dataManager=new sq(this),this.renderer=new aq(this),this.renderQueued=!1,this.transform=ZH,this.hoverTransform="",this.hoverOpacity=tq,this.hoverWidth=0,this.hoverHeight=0,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]},this.eventCoordinator=new dq(this),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new pq(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]
11740
+ return i>0}}class hq{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 cq(e),this.hoverHandler=new dq(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 uq=["canvasWidth","canvasHeight","originLocation","gridMinX","gridMaxX","gridMinY","gridMaxY","dies","maxCharacters","colorScale","colorScaleMode","highlightedValues","dieLabelsHidden","dieLabelsSuffix","transform","hoverDie"]
11741
+ class pq extends LF{constructor(e){super(uq),this.wafermap=e,this.updateQueued=!1}get requiresEventsUpdate(){return 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("highlightedValues")||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("colorScale")||this.isTracked("colorScaleMode")||this.isTracked("highlightedValues")||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 fq{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 gq extends Nt{constructor(){super(...arguments),this.waferMapUpdateTracker=new pq(this),this.originLocation=XB,this.gridMinX=void 0,this.gridMaxX=void 0,this.gridMinY=void 0,this.gridMaxY=void 0,this.orientation=eq,this.maxCharacters=4,this.dieLabelsHidden=!1,this.dieLabelsSuffix="",this.colorScaleMode=iq,this.dataManager=new aq(this),this.renderer=new lq(this),this.renderQueued=!1,this.transform=jH,this.hoverTransform="",this.hoverOpacity=nq,this.hoverWidth=0,this.hoverHeight=0,this.highlightedValues=[],this.dies=[],this.colorScale={colors:[],values:[]},this.eventCoordinator=new hq(this),this.resizeObserver=this.createResizeObserver(),this.waferMapValidator=new fq(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]
11738
11742
  if(void 0===t)return
11739
11743
  const{height:n,width:i}=t.contentRect
11740
- 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()}highlightedValuesChanged(){this.waferMapUpdateTracker.track("highlightedValues"),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"})],fq.prototype,"originLocation",void 0),e([se({attribute:"grid-min-x",converter:oe})],fq.prototype,"gridMinX",void 0),e([se({attribute:"grid-max-x",converter:oe})],fq.prototype,"gridMaxX",void 0),e([se({attribute:"grid-min-y",converter:oe})],fq.prototype,"gridMinY",void 0),e([se({attribute:"grid-max-y",converter:oe})],fq.prototype,"gridMaxY",void 0),e([se],fq.prototype,"orientation",void 0),e([se({attribute:"max-characters",converter:oe})],fq.prototype,"maxCharacters",void 0),e([se({attribute:"die-labels-hidden",mode:"boolean"})],fq.prototype,"dieLabelsHidden",void 0),e([se({attribute:"die-labels-suffix"})],fq.prototype,"dieLabelsSuffix",void 0),e([se({attribute:"color-scale-mode"})],fq.prototype,"colorScaleMode",void 0),e([m],fq.prototype,"canvasWidth",void 0),e([m],fq.prototype,"canvasHeight",void 0),e([m],fq.prototype,"transform",void 0),e([m],fq.prototype,"hoverTransform",void 0),e([m],fq.prototype,"hoverOpacity",void 0),e([m],fq.prototype,"hoverWidth",void 0),e([m],fq.prototype,"hoverHeight",void 0),e([m],fq.prototype,"hoverDie",void 0),e([m],fq.prototype,"highlightedValues",void 0),e([m],fq.prototype,"dies",void 0),e([m],fq.prototype,"colorScale",void 0)
11741
- const gq=fq.compose({baseName:"wafer-map",template:tB,styles:nB})
11742
- mi.getOrCreate().withPrefix("nimble").register(gq()),mi.tagFor(fq)}()
11744
+ 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()}highlightedValuesChanged(){this.waferMapUpdateTracker.track("highlightedValues"),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"})],gq.prototype,"originLocation",void 0),e([se({attribute:"grid-min-x",converter:oe})],gq.prototype,"gridMinX",void 0),e([se({attribute:"grid-max-x",converter:oe})],gq.prototype,"gridMaxX",void 0),e([se({attribute:"grid-min-y",converter:oe})],gq.prototype,"gridMinY",void 0),e([se({attribute:"grid-max-y",converter:oe})],gq.prototype,"gridMaxY",void 0),e([se],gq.prototype,"orientation",void 0),e([se({attribute:"max-characters",converter:oe})],gq.prototype,"maxCharacters",void 0),e([se({attribute:"die-labels-hidden",mode:"boolean"})],gq.prototype,"dieLabelsHidden",void 0),e([se({attribute:"die-labels-suffix"})],gq.prototype,"dieLabelsSuffix",void 0),e([se({attribute:"color-scale-mode"})],gq.prototype,"colorScaleMode",void 0),e([m],gq.prototype,"canvasWidth",void 0),e([m],gq.prototype,"canvasHeight",void 0),e([m],gq.prototype,"transform",void 0),e([m],gq.prototype,"hoverTransform",void 0),e([m],gq.prototype,"hoverOpacity",void 0),e([m],gq.prototype,"hoverWidth",void 0),e([m],gq.prototype,"hoverHeight",void 0),e([m],gq.prototype,"hoverDie",void 0),e([m],gq.prototype,"highlightedValues",void 0),e([m],gq.prototype,"dies",void 0),e([m],gq.prototype,"colorScale",void 0)
11745
+ const mq=gq.compose({baseName:"wafer-map",template:nB,styles:iB})
11746
+ mi.getOrCreate().withPrefix("nimble").register(mq()),mi.tagFor(gq)}()
11743
11747
  //# sourceMappingURL=all-components-bundle.min.js.map