@gkd-kit/inspect 0.0.1721662707331 → 0.0.1722398445606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-z9yy5QAX.js → ActionCard.vue_vue_type_script_setup_true_lang-BUNNAoSP.js} +3 -3
  2. package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-BUNNAoSP.js.map +1 -0
  3. package/dist/assets/DevicePage-7K7QSUev.js +49 -0
  4. package/dist/assets/DevicePage-7K7QSUev.js.map +1 -0
  5. package/dist/assets/HomePage-CmdVsII9.js +119 -0
  6. package/dist/assets/HomePage-CmdVsII9.js.map +1 -0
  7. package/dist/assets/ImportPage-CBnzeCIR.js +2 -0
  8. package/dist/assets/ImportPage-CBnzeCIR.js.map +1 -0
  9. package/dist/assets/PreviewSharePage-DxXY60XW.js +2 -0
  10. package/dist/assets/PreviewSharePage-DxXY60XW.js.map +1 -0
  11. package/dist/assets/SelectorPage-gzPzkCEn.js +2 -0
  12. package/dist/assets/SelectorPage-gzPzkCEn.js.map +1 -0
  13. package/dist/assets/SnapshotPage-C3-fhmBU.js +276 -0
  14. package/dist/assets/SnapshotPage-C3-fhmBU.js.map +1 -0
  15. package/dist/assets/{TrackGraph-4OjNujBe.js → TrackGraph-bvX9IAqr.js} +2 -2
  16. package/dist/assets/{TrackGraph-4OjNujBe.js.map → TrackGraph-bvX9IAqr.js.map} +1 -1
  17. package/dist/assets/_404Page-BOClj7dn.js +2 -0
  18. package/dist/assets/_404Page-BOClj7dn.js.map +1 -0
  19. package/dist/assets/dayjs.min-C8gqYQL2.js +362 -0
  20. package/dist/assets/dayjs.min-C8gqYQL2.js.map +1 -0
  21. package/dist/assets/{error-CZBl6FmP.js → error-qg3zJMs8.js} +2 -2
  22. package/dist/assets/{error-CZBl6FmP.js.map → error-qg3zJMs8.js.map} +1 -1
  23. package/dist/assets/{export-B7OHz6Tz.js → export-DKzCnEI8.js} +2 -2
  24. package/dist/assets/{export-B7OHz6Tz.js.map → export-DKzCnEI8.js.map} +1 -1
  25. package/dist/assets/{fetch-San3MKem.js → fetch-D6e5uSxW.js} +9 -9
  26. package/dist/assets/fetch-D6e5uSxW.js.map +1 -0
  27. package/dist/assets/{import-2o8Zrpqb.js → import-BY8QKaVt.js} +2 -2
  28. package/dist/assets/{import-2o8Zrpqb.js.map → import-BY8QKaVt.js.map} +1 -1
  29. package/dist/assets/index-BQPWUQxY.js +281 -0
  30. package/dist/assets/index-BQPWUQxY.js.map +1 -0
  31. package/dist/assets/index-BS5g-smu.js +579 -0
  32. package/dist/assets/index-BS5g-smu.js.map +1 -0
  33. package/dist/assets/{index-BiLoGqVH.js → index-Bh9Fxz-K.js} +2 -2
  34. package/dist/assets/{index-BiLoGqVH.js.map → index-Bh9Fxz-K.js.map} +1 -1
  35. package/dist/assets/index-tKFed6DR.css +1 -0
  36. package/dist/assets/table-DOc2KouP.js +979 -0
  37. package/dist/assets/table-DOc2KouP.js.map +1 -0
  38. package/dist/index.html +3 -3
  39. package/package.json +18 -16
  40. package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-z9yy5QAX.js.map +0 -1
  41. package/dist/assets/DevicePage-Bb7CESPL.js +0 -49
  42. package/dist/assets/DevicePage-Bb7CESPL.js.map +0 -1
  43. package/dist/assets/HomePage-BrCtg4eZ.js +0 -119
  44. package/dist/assets/HomePage-BrCtg4eZ.js.map +0 -1
  45. package/dist/assets/ImportPage-DE9bvvtg.js +0 -2
  46. package/dist/assets/ImportPage-DE9bvvtg.js.map +0 -1
  47. package/dist/assets/PreviewSharePage-CJlbvKoC.js +0 -2
  48. package/dist/assets/PreviewSharePage-CJlbvKoC.js.map +0 -1
  49. package/dist/assets/SnapshotPage-Di7Av_Yl.js +0 -276
  50. package/dist/assets/SnapshotPage-Di7Av_Yl.js.map +0 -1
  51. package/dist/assets/_404Page-BEsifbc2.js +0 -2
  52. package/dist/assets/_404Page-BEsifbc2.js.map +0 -1
  53. package/dist/assets/dayjs.min-5mDxtwl2.js +0 -362
  54. package/dist/assets/dayjs.min-5mDxtwl2.js.map +0 -1
  55. package/dist/assets/fetch-San3MKem.js.map +0 -1
  56. package/dist/assets/index-8cdB5Umv.js +0 -579
  57. package/dist/assets/index-8cdB5Umv.js.map +0 -1
  58. package/dist/assets/index-CxUtCrvD.js +0 -281
  59. package/dist/assets/index-CxUtCrvD.js.map +0 -1
  60. package/dist/assets/index-DEAqsSIR.css +0 -1
  61. package/dist/assets/table-Dv6j_ltQ.js +0 -970
  62. package/dist/assets/table-Dv6j_ltQ.js.map +0 -1
@@ -0,0 +1,276 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1722398445606/files/dist/assets/TrackGraph-bvX9IAqr.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1722398445606/files/dist/assets/index-BS5g-smu.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1722398445606/files/dist/assets/index-tKFed6DR.css","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1722398445606/files/dist/assets/dayjs.min-C8gqYQL2.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1722398445606/files/dist/assets/index-BQPWUQxY.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1722398445606/files/dist/assets/fetch-D6e5uSxW.js"])))=>i.map(i=>d[i]);
2
+ import{h as Lt,v as R,a as G,g as jn,e as V,f as X,b as Nt,u as Fa,a0 as t1,a1 as Ml,a2 as e1,a3 as za,d as Rl,r as pe,m as nt,l as ma,j as Ji,q as Ll,a4 as Ol,y as we,a5 as n1,t as yt,a6 as Gc,a7 as Jc,a8 as Yc,a9 as r1,aa as Re,ab as wi,ac as i1,ad as Yu,ae as Xc,af as a1,ag as Xn,ah as o1,ai as s1,aj as l1,c as u1,ak as c1,al as f1,n as ws,N as h1,x as d1,X as v1,am as bs,an as p1,R as Da,ao as _1,p as Zc,i as m1,B as Ki,U as Lr,ap as ks,o as va,aq as Xu,ar as Zu,as as ga,A as ne,S as jl,at as po,C as ot,au as _e,L as M,av as tf,D as Ne,G as x,I as Or,Q as Oe,aw as Ps,ax as hi,ay as g1,F as T,E as Z,az as wa,P as Dt,O as be,aA as y1,M as tr,aB as _o,Y as ef,aC as Wi,J as nf,aD as rf,H as ba,W as w1,aE as Cs,aF as b1,$ as k1,aG as tc,aH as C1,_ as ec,aI as x1,aJ as S1,K as $1}from"./index-BS5g-smu.js";import{_ as E1}from"./ActionCard.vue_vue_type_script_setup_true_lang-BUNNAoSP.js";import{f as Ms,c as nr,b as di,m as En,a as af,l as nc,g as N1}from"./fetch-D6e5uSxW.js";import{e as I1,f as q1,g as A1}from"./export-DKzCnEI8.js";import{h as Ui,C as T1,e as P1,c as rc,d as M1,V as R1,f as ic,i as ac,j as Zn,k as L1,b as Rs,l as ka,m as O1,n as oc,o as sc,p as j1,N as F1,g as er,q as z1,r as lc,s as uc,t as D1}from"./dayjs.min-C8gqYQL2.js";import{a as rr,r as B1,N as K1,l as U1}from"./index-BQPWUQxY.js";import{u as of,a as W1}from"./index-Bh9Fxz-K.js";import{e as H1,a as cc}from"./error-qg3zJMs8.js";import"./index-CE_5kTG8.js";function sf(t){return typeof t=="string"?`s-${t}`:`n-${t}`}const V1=Lt({name:"ChevronLeft",render(){return R("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},R("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),Q1=Lt({name:"Switcher",render(){return R("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},R("path",{d:"M12 8l10 8l-10 8z"}))}}),Ft="0!important",lf="-1px!important";function zi(t){return X(`${t}-type`,[V("& +",[G("button",{},[X(`${t}-type`,[Nt("border",{borderLeftWidth:Ft}),Nt("state-border",{left:lf})])])])])}function Di(t){return X(`${t}-type`,[V("& +",[G("button",[X(`${t}-type`,[Nt("border",{borderTopWidth:Ft}),Nt("state-border",{top:lf})])])])])}const G1=G("button-group",`
3
+ flex-wrap: nowrap;
4
+ display: inline-flex;
5
+ position: relative;
6
+ `,[jn("vertical",{flexDirection:"row"},[jn("rtl",[G("button",[V("&:first-child:not(:last-child)",`
7
+ margin-right: ${Ft};
8
+ border-top-right-radius: ${Ft};
9
+ border-bottom-right-radius: ${Ft};
10
+ `),V("&:last-child:not(:first-child)",`
11
+ margin-left: ${Ft};
12
+ border-top-left-radius: ${Ft};
13
+ border-bottom-left-radius: ${Ft};
14
+ `),V("&:not(:first-child):not(:last-child)",`
15
+ margin-left: ${Ft};
16
+ margin-right: ${Ft};
17
+ border-radius: ${Ft};
18
+ `),zi("default"),X("ghost",[zi("primary"),zi("info"),zi("success"),zi("warning"),zi("error")])])])]),X("vertical",{flexDirection:"column"},[G("button",[V("&:first-child:not(:last-child)",`
19
+ margin-bottom: ${Ft};
20
+ margin-left: ${Ft};
21
+ margin-right: ${Ft};
22
+ border-bottom-left-radius: ${Ft};
23
+ border-bottom-right-radius: ${Ft};
24
+ `),V("&:last-child:not(:first-child)",`
25
+ margin-top: ${Ft};
26
+ margin-left: ${Ft};
27
+ margin-right: ${Ft};
28
+ border-top-left-radius: ${Ft};
29
+ border-top-right-radius: ${Ft};
30
+ `),V("&:not(:first-child):not(:last-child)",`
31
+ margin: ${Ft};
32
+ border-radius: ${Ft};
33
+ `),Di("default"),X("ghost",[Di("primary"),Di("info"),Di("success"),Di("warning"),Di("error")])])])]),J1={size:{type:String,default:void 0},vertical:Boolean},Y1=Lt({name:"ButtonGroup",props:J1,setup(t){const{mergedClsPrefixRef:e,mergedRtlRef:n}=Fa(t);return t1("-button-group",G1,e),Ml(e1,t),{rtlEnabled:za("ButtonGroup",n,e),mergedClsPrefix:e}},render(){const{mergedClsPrefix:t}=this;return R("div",{class:[`${t}-button-group`,this.rtlEnabled&&`${t}-button-group--rtl`,this.vertical&&`${t}-button-group--vertical`],role:"group"},this.$slots)}});function X1(t){const{fontWeight:e,textColor1:n,textColor2:r,textColorDisabled:a,dividerColor:o,fontSize:s}=t;return{titleFontSize:s,titleFontWeight:e,dividerColor:o,titleTextColor:n,titleTextColorDisabled:a,fontSize:s,textColor:r,arrowColor:r,arrowColorDisabled:a,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const Z1={name:"Collapse",common:Rl,self:X1},tv=G("collapse","width: 100%;",[G("collapse-item",`
34
+ font-size: var(--n-font-size);
35
+ color: var(--n-text-color);
36
+ transition:
37
+ color .3s var(--n-bezier),
38
+ border-color .3s var(--n-bezier);
39
+ margin: var(--n-item-margin);
40
+ `,[X("disabled",[Nt("header","cursor: not-allowed;",[Nt("header-main",`
41
+ color: var(--n-title-text-color-disabled);
42
+ `),G("collapse-item-arrow",`
43
+ color: var(--n-arrow-color-disabled);
44
+ `)])]),G("collapse-item","margin-left: 32px;"),V("&:first-child","margin-top: 0;"),V("&:first-child >",[Nt("header","padding-top: 0;")]),X("left-arrow-placement",[Nt("header",[G("collapse-item-arrow","margin-right: 4px;")])]),X("right-arrow-placement",[Nt("header",[G("collapse-item-arrow","margin-left: 4px;")])]),Nt("content-wrapper",[Nt("content-inner","padding-top: 16px;"),Ms({duration:"0.15s"})]),X("active",[Nt("header",[X("active",[G("collapse-item-arrow","transform: rotate(90deg);")])])]),V("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),jn("disabled",[X("trigger-area-main",[Nt("header",[Nt("header-main","cursor: pointer;"),G("collapse-item-arrow","cursor: default;")])]),X("trigger-area-arrow",[Nt("header",[G("collapse-item-arrow","cursor: pointer;")])]),X("trigger-area-extra",[Nt("header",[Nt("header-extra","cursor: pointer;")])])]),Nt("header",`
45
+ font-size: var(--n-title-font-size);
46
+ display: flex;
47
+ flex-wrap: nowrap;
48
+ align-items: center;
49
+ transition: color .3s var(--n-bezier);
50
+ position: relative;
51
+ padding: var(--n-title-padding);
52
+ color: var(--n-title-text-color);
53
+ `,[Nt("header-main",`
54
+ display: flex;
55
+ flex-wrap: nowrap;
56
+ align-items: center;
57
+ font-weight: var(--n-title-font-weight);
58
+ transition: color .3s var(--n-bezier);
59
+ flex: 1;
60
+ color: var(--n-title-text-color);
61
+ `),Nt("header-extra",`
62
+ display: flex;
63
+ align-items: center;
64
+ transition: color .3s var(--n-bezier);
65
+ color: var(--n-text-color);
66
+ `),G("collapse-item-arrow",`
67
+ display: flex;
68
+ transition:
69
+ transform .15s var(--n-bezier),
70
+ color .3s var(--n-bezier);
71
+ font-size: 18px;
72
+ color: var(--n-arrow-color);
73
+ `)])])]),ev=Object.assign(Object.assign({},Ji.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},triggerAreas:{type:Array,default:()=>["main","extra","arrow"]},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),uf=Ol("n-collapse"),nv=Lt({name:"Collapse",props:ev,setup(t,{slots:e}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:a}=Fa(t),o=pe(t.defaultExpandedNames),s=nt(()=>t.expandedNames),l=ma(s,o),c=Ji("Collapse","-collapse",tv,Z1,t,n);function f(m){const{"onUpdate:expandedNames":g,onUpdateExpandedNames:p,onExpandedNamesChange:C}=t;p&&we(p,m),g&&we(g,m),C&&we(C,m),o.value=m}function h(m){const{onItemHeaderClick:g}=t;g&&we(g,m)}function d(m,g,p){const{accordion:C}=t,{value:k}=l;if(C)m?(f([g]),h({name:g,expanded:!0,event:p})):(f([]),h({name:g,expanded:!1,event:p}));else if(!Array.isArray(k))f([g]),h({name:g,expanded:!0,event:p});else{const S=k.slice(),I=S.findIndex(O=>g===O);~I?(S.splice(I,1),f(S),h({name:g,expanded:!1,event:p})):(S.push(g),f(S),h({name:g,expanded:!0,event:p}))}}Ml(uf,{props:t,mergedClsPrefixRef:n,expandedNamesRef:l,slots:e,toggleItem:d});const v=za("Collapse",a,n),y=nt(()=>{const{common:{cubicBezierEaseInOut:m},self:{titleFontWeight:g,dividerColor:p,titlePadding:C,titleTextColor:k,titleTextColorDisabled:S,textColor:I,arrowColor:O,fontSize:Q,titleFontSize:W,arrowColorDisabled:lt,itemMargin:dt}}=c.value;return{"--n-font-size":Q,"--n-bezier":m,"--n-text-color":I,"--n-divider-color":p,"--n-title-padding":C,"--n-title-font-size":W,"--n-title-text-color":k,"--n-title-text-color-disabled":S,"--n-title-font-weight":g,"--n-arrow-color":O,"--n-arrow-color-disabled":lt,"--n-item-margin":dt}}),_=r?Ll("collapse",void 0,y,t):void 0;return{rtlEnabled:v,mergedTheme:c,mergedClsPrefix:n,cssVars:r?void 0:y,themeClass:_==null?void 0:_.themeClass,onRender:_==null?void 0:_.onRender}},render(){var t;return(t=this.onRender)===null||t===void 0||t.call(this),R("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),rv=Lt({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(t){return{onceTrue:n1(yt(t,"show"))}},render(){return R(Yc,null,{default:()=>{const{show:t,displayDirective:e,onceTrue:n,clsPrefix:r}=this,a=e==="show"&&n,o=R("div",{class:`${r}-collapse-item__content-wrapper`},R("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return a?Gc(o,[[Jc,t]]):t?o:null}})}}),iv={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},av=Lt({name:"CollapseItem",props:iv,setup(t){const{mergedRtlRef:e}=Fa(t),n=r1(),r=Re(()=>{var d;return(d=t.name)!==null&&d!==void 0?d:n}),a=wi(uf);a||i1("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:o,props:s,mergedClsPrefixRef:l,slots:c}=a,f=nt(()=>{const{value:d}=o;if(Array.isArray(d)){const{value:v}=r;return!~d.findIndex(y=>y===v)}else if(d){const{value:v}=r;return v!==d}return!0});return{rtlEnabled:za("Collapse",e,l),collapseSlots:c,randomName:n,mergedClsPrefix:l,collapsed:f,triggerAreas:yt(s,"triggerAreas"),mergedDisplayDirective:nt(()=>{const{displayDirective:d}=t;return d||s.displayDirective}),arrowPlacement:nt(()=>s.arrowPlacement),handleClick(d){let v="main";Ui(d,"arrow")&&(v="arrow"),Ui(d,"extra")&&(v="extra"),s.triggerAreas.includes(v)&&a&&!t.disabled&&a.toggleItem(f.value,r.value,d)}}},render(){const{collapseSlots:t,$slots:e,arrowPlacement:n,collapsed:r,mergedDisplayDirective:a,mergedClsPrefix:o,disabled:s,triggerAreas:l}=this,c=Yu(e.header,{collapsed:r},()=>[this.title]),f=e["header-extra"]||t["header-extra"],h=e.arrow||t.arrow;return R("div",{class:[`${o}-collapse-item`,`${o}-collapse-item--${n}-arrow-placement`,s&&`${o}-collapse-item--disabled`,!r&&`${o}-collapse-item--active`,l.map(d=>`${o}-collapse-item--trigger-area-${d}`)]},R("div",{class:[`${o}-collapse-item__header`,!r&&`${o}-collapse-item__header--active`]},R("div",{class:`${o}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&c,R("div",{class:`${o}-collapse-item-arrow`,key:this.rtlEnabled?0:1,"data-arrow":!0},Yu(h,{collapsed:r},()=>{var d;return[R(Xc,{clsPrefix:o},{default:(d=t.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?R(V1,null):R(T1,null)})]})),n==="left"&&c),a1(f,{collapsed:r},d=>R("div",{class:`${o}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},d))),R(rv,{clsPrefix:o,displayDirective:a,show:!r},e))}}),ov={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function sv(t){const{dividerColor:e,cardColor:n,modalColor:r,popoverColor:a,tableHeaderColor:o,tableColorStriped:s,textColor1:l,textColor2:c,borderRadius:f,fontWeightStrong:h,lineHeight:d,fontSizeSmall:v,fontSizeMedium:y,fontSizeLarge:_}=t;return Object.assign(Object.assign({},ov),{fontSizeSmall:v,fontSizeMedium:y,fontSizeLarge:_,lineHeight:d,borderRadius:f,borderColor:Xn(n,e),borderColorModal:Xn(r,e),borderColorPopover:Xn(a,e),tdColor:n,tdColorModal:r,tdColorPopover:a,tdColorStriped:Xn(n,s),tdColorStripedModal:Xn(r,s),tdColorStripedPopover:Xn(a,s),thColor:Xn(n,o),thColorModal:Xn(r,o),thColorPopover:Xn(a,o),thTextColor:l,tdTextColor:c,thFontWeight:h})}const lv={name:"Table",common:Rl,self:sv};function uv(t){const{borderRadiusSmall:e,dividerColor:n,hoverColor:r,pressedColor:a,primaryColor:o,textColor3:s,textColor2:l,textColorDisabled:c,fontSize:f}=t;return{fontSize:f,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:e,nodeColorHover:r,nodeColorPressed:a,nodeColorActive:u1(o,{alpha:.1}),arrowColor:s,nodeTextColor:l,nodeTextColorDisabled:c,loadingColor:o,dropMarkColor:o,lineColor:n}}const cv=o1({name:"Tree",common:Rl,peers:{Checkbox:s1,Scrollbar:l1,Empty:P1},self:uv}),fv=V([G("table",`
74
+ font-size: var(--n-font-size);
75
+ font-variant-numeric: tabular-nums;
76
+ line-height: var(--n-line-height);
77
+ width: 100%;
78
+ border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
79
+ text-align: left;
80
+ border-collapse: separate;
81
+ border-spacing: 0;
82
+ overflow: hidden;
83
+ background-color: var(--n-td-color);
84
+ border-color: var(--n-merged-border-color);
85
+ transition:
86
+ background-color .3s var(--n-bezier),
87
+ border-color .3s var(--n-bezier),
88
+ color .3s var(--n-bezier);
89
+ --n-merged-border-color: var(--n-border-color);
90
+ `,[V("th",`
91
+ white-space: nowrap;
92
+ transition:
93
+ background-color .3s var(--n-bezier),
94
+ border-color .3s var(--n-bezier),
95
+ color .3s var(--n-bezier);
96
+ text-align: inherit;
97
+ padding: var(--n-th-padding);
98
+ vertical-align: inherit;
99
+ text-transform: none;
100
+ border: 0px solid var(--n-merged-border-color);
101
+ font-weight: var(--n-th-font-weight);
102
+ color: var(--n-th-text-color);
103
+ background-color: var(--n-th-color);
104
+ border-bottom: 1px solid var(--n-merged-border-color);
105
+ border-right: 1px solid var(--n-merged-border-color);
106
+ `,[V("&:last-child",`
107
+ border-right: 0px solid var(--n-merged-border-color);
108
+ `)]),V("td",`
109
+ transition:
110
+ background-color .3s var(--n-bezier),
111
+ border-color .3s var(--n-bezier),
112
+ color .3s var(--n-bezier);
113
+ padding: var(--n-td-padding);
114
+ color: var(--n-td-text-color);
115
+ background-color: var(--n-td-color);
116
+ border: 0px solid var(--n-merged-border-color);
117
+ border-right: 1px solid var(--n-merged-border-color);
118
+ border-bottom: 1px solid var(--n-merged-border-color);
119
+ `,[V("&:last-child",`
120
+ border-right: 0px solid var(--n-merged-border-color);
121
+ `)]),X("bordered",`
122
+ border: 1px solid var(--n-merged-border-color);
123
+ border-radius: var(--n-border-radius);
124
+ `,[V("tr",[V("&:last-child",[V("td",`
125
+ border-bottom: 0 solid var(--n-merged-border-color);
126
+ `)])])]),X("single-line",[V("th",`
127
+ border-right: 0px solid var(--n-merged-border-color);
128
+ `),V("td",`
129
+ border-right: 0px solid var(--n-merged-border-color);
130
+ `)]),X("single-column",[V("tr",[V("&:not(:last-child)",[V("td",`
131
+ border-bottom: 0px solid var(--n-merged-border-color);
132
+ `)])])]),X("striped",[V("tr:nth-of-type(even)",[V("td","background-color: var(--n-td-color-striped)")])]),jn("bottom-bordered",[V("tr",[V("&:last-child",[V("td",`
133
+ border-bottom: 0px solid var(--n-merged-border-color);
134
+ `)])])])]),c1(G("table",`
135
+ background-color: var(--n-td-color-modal);
136
+ --n-merged-border-color: var(--n-border-color-modal);
137
+ `,[V("th",`
138
+ background-color: var(--n-th-color-modal);
139
+ `),V("td",`
140
+ background-color: var(--n-td-color-modal);
141
+ `)])),f1(G("table",`
142
+ background-color: var(--n-td-color-popover);
143
+ --n-merged-border-color: var(--n-border-color-popover);
144
+ `,[V("th",`
145
+ background-color: var(--n-th-color-popover);
146
+ `),V("td",`
147
+ background-color: var(--n-td-color-popover);
148
+ `)]))]),hv=Object.assign(Object.assign({},Ji.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),dv=Lt({name:"Table",props:hv,setup(t){const{mergedClsPrefixRef:e,inlineThemeDisabled:n,mergedRtlRef:r}=Fa(t),a=Ji("Table","-table",fv,lv,t,e),o=za("Table",r,e),s=nt(()=>{const{size:c}=t,{self:{borderColor:f,tdColor:h,tdColorModal:d,tdColorPopover:v,thColor:y,thColorModal:_,thColorPopover:m,thTextColor:g,tdTextColor:p,borderRadius:C,thFontWeight:k,lineHeight:S,borderColorModal:I,borderColorPopover:O,tdColorStriped:Q,tdColorStripedModal:W,tdColorStripedPopover:lt,[ws("fontSize",c)]:dt,[ws("tdPadding",c)]:le,[ws("thPadding",c)]:Ot},common:{cubicBezierEaseInOut:ve}}=a.value;return{"--n-bezier":ve,"--n-td-color":h,"--n-td-color-modal":d,"--n-td-color-popover":v,"--n-td-text-color":p,"--n-border-color":f,"--n-border-color-modal":I,"--n-border-color-popover":O,"--n-border-radius":C,"--n-font-size":dt,"--n-th-color":y,"--n-th-color-modal":_,"--n-th-color-popover":m,"--n-th-font-weight":k,"--n-th-text-color":g,"--n-line-height":S,"--n-td-padding":le,"--n-th-padding":Ot,"--n-td-color-striped":Q,"--n-td-color-striped-modal":W,"--n-td-color-striped-popover":lt}}),l=n?Ll("table",nt(()=>t.size[0]),s,t):void 0;return{rtlEnabled:o,mergedClsPrefix:e,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t;const{mergedClsPrefix:e}=this;return(t=this.onRender)===null||t===void 0||t.call(this),R("table",{class:[`${e}-table`,this.themeClass,{[`${e}-table--rtl`]:this.rtlEnabled,[`${e}-table--bottom-bordered`]:this.bottomBordered,[`${e}-table--bordered`]:this.bordered,[`${e}-table--single-line`]:this.singleLine,[`${e}-table--single-column`]:this.singleColumn,[`${e}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),vv=Lt({name:"Tr",render(){return R("tr",null,this.$slots)}}),fc=Lt({name:"Td",render(){return R("td",null,this.$slots)}}),pv=Lt({name:"Tbody",render(){return R("tbody",null,this.$slots)}}),cf=Ol("n-tree-select"),Ba=Ol("n-tree"),_v=Lt({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},indent:{type:Number,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function,tmNode:{type:Object,required:!0}},setup(t){const{renderSwitcherIconRef:e}=wi(Ba,null);return()=>{const{clsPrefix:n,expanded:r,hide:a,indent:o,onClick:s}=t;return R("span",{"data-switcher":!0,class:[`${n}-tree-node-switcher`,r&&`${n}-tree-node-switcher--expanded`,a&&`${n}-tree-node-switcher--hide`],style:{width:`${o}px`},onClick:s},R("div",{class:`${n}-tree-node-switcher__icon`},R(h1,null,{default:()=>{if(t.loading)return R(d1,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:l}=e;return l?l({expanded:t.expanded,selected:t.selected,option:t.tmNode.rawNode}):R(Xc,{clsPrefix:n,key:"switcher"},{default:()=>R(Q1,null)})}})))}}}),mv=Lt({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},indent:{type:Number,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(t){const e=wi(Ba);function n(a){const{onCheck:o}=t;o&&o(a)}function r(a){n(a)}return{handleUpdateValue:r,mergedTheme:e.mergedThemeRef}},render(){const{clsPrefix:t,mergedTheme:e,checked:n,indeterminate:r,disabled:a,focusable:o,indent:s,handleUpdateValue:l}=this;return R("span",{class:[`${t}-tree-node-checkbox`,this.right&&`${t}-tree-node-checkbox--right`],style:{width:`${s}px`},"data-checkbox":!0},R(v1,{focusable:o,disabled:a,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:l}))}}),gv=Lt({name:"TreeNodeContent",props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(t){const{renderLabelRef:e,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:a}=wi(Ba),o=pe(null);function s(c){const{onClick:f}=t;f&&f(c)}function l(c){s(c)}return{selfRef:o,renderLabel:e,renderPrefix:n,renderSuffix:r,labelField:a,handleClick:l}},render(){const{clsPrefix:t,labelField:e,nodeProps:n,checked:r=!1,selected:a=!1,renderLabel:o,renderPrefix:s,renderSuffix:l,handleClick:c,onDragstart:f,tmNode:{rawNode:h,rawNode:{prefix:d,suffix:v,[e]:y}}}=this;return R("span",Object.assign({},n,{ref:"selfRef",class:[`${t}-tree-node-content`,n==null?void 0:n.class],onClick:c,draggable:f===void 0?void 0:!0,onDragstart:f}),s||d?R("div",{class:`${t}-tree-node-content__prefix`},s?s({option:h,selected:a,checked:r}):bs(d)):null,R("div",{class:`${t}-tree-node-content__text`},o?o({option:h,selected:a,checked:r}):bs(y)),l||v?R("div",{class:`${t}-tree-node-content__suffix`},l?l({option:h,selected:a,checked:r}):bs(v)):null)}});function hc({position:t,offsetLevel:e,indent:n,el:r}){const a={position:"absolute",boxSizing:"border-box",right:0};if(t==="inside")a.left=0,a.top=0,a.bottom=0,a.borderRadius="inherit",a.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const o=t==="before"?"top":"bottom";a[o]=0,a.left=`${r.offsetLeft+6-e*n}px`,a.height="2px",a.backgroundColor="var(--n-drop-mark-color)",a.transformOrigin=o,a.borderRadius="1px",a.transform=t==="before"?"translateY(-4px)":"translateY(4px)"}return R("div",{style:a})}function yv({dropPosition:t,node:e}){return e.isLeaf===!1||e.children?!0:t!=="inside"}function wv(t){return nt(()=>t.leafOnly?"child":t.checkStrategy)}function Rr(t,e){return!!t.rawNode[e]}function ff(t,e,n,r){t==null||t.forEach(a=>{n(a),ff(a[e],e,n,r),r(a)})}function bv(t,e,n,r,a){const o=new Set,s=new Set,l=[];return ff(t,r,c=>{if(l.push(c),a(e,c)){s.add(c[n]);for(let f=l.length-2;f>=0;--f)if(!o.has(l[f][n]))o.add(l[f][n]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(o),highlightKeySet:s}}if(p1&&Image){const t=new Image;t.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function kv(t,e,n,r,a){const o=new Set,s=new Set,l=new Set,c=[],f=[],h=[];function d(y){y.forEach(_=>{if(h.push(_),e(n,_)){o.add(_[r]),l.add(_[r]);for(let g=h.length-2;g>=0;--g){const p=h[g][r];if(!s.has(p))s.add(p),o.has(p)&&o.delete(p);else break}}const m=_[a];m&&d(m),h.pop()})}d(t);function v(y,_){y.forEach(m=>{const g=m[r],p=o.has(g),C=s.has(g);if(!p&&!C)return;const k=m[a];if(k)if(p)_.push(m);else{c.push(g);const S=Object.assign(Object.assign({},m),{[a]:[]});_.push(S),v(k,S[a])}else _.push(m)})}return v(t,f),{filteredTree:f,highlightKeySet:l,expandedKeys:c}}const hf=Lt({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(t){const e=wi(Ba),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:a,droppingPositionRef:o,droppingOffsetLevelRef:s,nodePropsRef:l,indentRef:c,blockLineRef:f,checkboxPlacementRef:h,checkOnClickRef:d,disabledFieldRef:v,showLineRef:y,renderSwitcherIconRef:_,overrideDefaultNodeClickBehaviorRef:m}=e,g=Re(()=>!!t.tmNode.rawNode.checkboxDisabled),p=Re(()=>Rr(t.tmNode,v.value)),C=Re(()=>e.disabledRef.value||p.value),k=nt(()=>{const{value:P}=l;if(P)return P({option:t.tmNode.rawNode})}),S=pe(null),I={value:null};Da(()=>{I.value=S.value.$el});function O(){const P=()=>{const{tmNode:at}=t;if(!at.isLeaf&&!at.shallowLoaded){if(!e.loadingKeysRef.value.has(at.key))e.loadingKeysRef.value.add(at.key);else return;const{onLoadRef:{value:vt}}=e;vt&&vt(at.rawNode).then(Pt=>{Pt!==!1&&e.handleSwitcherClick(at)}).finally(()=>{e.loadingKeysRef.value.delete(at.key)})}else e.handleSwitcherClick(at)};_.value?setTimeout(P,0):P()}const Q=Re(()=>!p.value&&e.selectableRef.value&&(e.internalTreeSelect?e.mergedCheckStrategyRef.value!=="child"||e.multipleRef.value&&e.cascadeRef.value||t.tmNode.isLeaf:!0)),W=Re(()=>e.checkableRef.value&&(e.cascadeRef.value||e.mergedCheckStrategyRef.value!=="child"||t.tmNode.isLeaf)),lt=Re(()=>e.displayedCheckedKeysRef.value.includes(t.tmNode.key)),dt=Re(()=>{const{value:P}=W;if(!P)return!1;const{value:at}=d,{tmNode:vt}=t;return typeof at=="boolean"?!vt.disabled&&at:at(t.tmNode.rawNode)});function le(P){const{value:at}=e.expandOnClickRef,{value:vt}=Q,{value:Pt}=dt;if(!vt&&!at&&!Pt||Ui(P,"checkbox")||Ui(P,"switcher"))return;const{tmNode:ce}=t;vt&&e.handleSelect(ce),at&&!ce.isLeaf&&O(),Pt&&Zt(!lt.value)}function Ot(P){var at,vt;if(!(Ui(P,"checkbox")||Ui(P,"switcher"))){if(!C.value){const Pt=m.value;let ce=!1;if(Pt)switch(Pt({option:t.tmNode.rawNode})){case"toggleCheck":ce=!0,Zt(!lt.value);break;case"toggleSelect":ce=!0,e.handleSelect(t.tmNode);break;case"toggleExpand":ce=!0,O(),ce=!0;break;case"none":ce=!0,ce=!0;return}ce||le(P)}(vt=(at=k.value)===null||at===void 0?void 0:at.onClick)===null||vt===void 0||vt.call(at,P)}}function ve(P){f.value||Ot(P)}function gt(P){f.value&&Ot(P)}function Zt(P){e.handleCheck(t.tmNode,P)}function te(P){e.handleDragStart({event:P,node:t.tmNode})}function Ue(P){P.currentTarget===P.target&&e.handleDragEnter({event:P,node:t.tmNode})}function ue(P){P.preventDefault(),e.handleDragOver({event:P,node:t.tmNode})}function We(P){e.handleDragEnd({event:P,node:t.tmNode})}function mn(P){P.currentTarget===P.target&&e.handleDragLeave({event:P,node:t.tmNode})}function Rn(P){P.preventDefault(),o.value!==null&&e.handleDrop({event:P,node:t.tmNode,dropPosition:o.value})}const Pr=nt(()=>{const{clsPrefix:P}=t,{value:at}=c;if(y.value){const vt=[];let Pt=t.tmNode.parent;for(;Pt;)Pt.isLastChild?vt.push(R("div",{class:`${P}-tree-node-indent`},R("div",{style:{width:`${at}px`}}))):vt.push(R("div",{class:[`${P}-tree-node-indent`,`${P}-tree-node-indent--show-line`]},R("div",{style:{width:`${at}px`}}))),Pt=Pt.parent;return vt.reverse()}else return _1(t.tmNode.level,R("div",{class:`${t.clsPrefix}-tree-node-indent`},R("div",{style:{width:`${at}px`}})))});return{showDropMark:Re(()=>{const{value:P}=a;if(!P)return;const{value:at}=o;if(!at)return;const{value:vt}=r;if(!vt)return;const{tmNode:Pt}=t;return Pt.key===vt.key}),showDropMarkAsParent:Re(()=>{const{value:P}=n;if(!P)return!1;const{tmNode:at}=t,{value:vt}=o;return vt==="before"||vt==="after"?P.key===at.key:!1}),pending:Re(()=>e.pendingNodeKeyRef.value===t.tmNode.key),loading:Re(()=>e.loadingKeysRef.value.has(t.tmNode.key)),highlight:Re(()=>{var P;return(P=e.highlightKeySetRef.value)===null||P===void 0?void 0:P.has(t.tmNode.key)}),checked:lt,indeterminate:Re(()=>e.displayedIndeterminateKeysRef.value.includes(t.tmNode.key)),selected:Re(()=>e.mergedSelectedKeysRef.value.includes(t.tmNode.key)),expanded:Re(()=>e.mergedExpandedKeysRef.value.includes(t.tmNode.key)),disabled:C,checkable:W,mergedCheckOnClick:dt,checkboxDisabled:g,selectable:Q,expandOnClick:e.expandOnClickRef,internalScrollable:e.internalScrollableRef,draggable:e.draggableRef,blockLine:f,nodeProps:k,checkboxFocusable:e.internalCheckboxFocusableRef,droppingPosition:o,droppingOffsetLevel:s,indent:c,checkboxPlacement:h,showLine:y,contentInstRef:S,contentElRef:I,indentNodes:Pr,handleCheck:Zt,handleDrop:Rn,handleDragStart:te,handleDragEnter:Ue,handleDragOver:ue,handleDragEnd:We,handleDragLeave:mn,handleLineClick:gt,handleContentClick:ve,handleSwitcherClick:O}},render(){const{tmNode:t,clsPrefix:e,checkable:n,expandOnClick:r,selectable:a,selected:o,checked:s,highlight:l,draggable:c,blockLine:f,indent:h,indentNodes:d,disabled:v,pending:y,internalScrollable:_,nodeProps:m,checkboxPlacement:g}=this,p=c&&!v?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,C=_?sf(t.key):void 0,k=g==="right",S=n?R(mv,{indent:h,right:k,focusable:this.checkboxFocusable,disabled:v||this.checkboxDisabled,clsPrefix:e,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return R("div",Object.assign({class:`${e}-tree-node-wrapper`},p),R("div",Object.assign({},f?m:void 0,{class:[`${e}-tree-node`,{[`${e}-tree-node--selected`]:o,[`${e}-tree-node--checkable`]:n,[`${e}-tree-node--highlight`]:l,[`${e}-tree-node--pending`]:y,[`${e}-tree-node--disabled`]:v,[`${e}-tree-node--selectable`]:a,[`${e}-tree-node--clickable`]:a||r||this.mergedCheckOnClick},m==null?void 0:m.class],"data-key":C,draggable:c&&f,onClick:this.handleLineClick,onDragstart:c&&f&&!v?this.handleDragStart:void 0}),d,t.isLeaf&&this.showLine?R("div",{class:[`${e}-tree-node-indent`,`${e}-tree-node-indent--show-line`,t.isLeaf&&`${e}-tree-node-indent--is-leaf`,t.isLastChild&&`${e}-tree-node-indent--last-child`]},R("div",{style:{width:`${h}px`}})):R(_v,{clsPrefix:e,expanded:this.expanded,selected:o,loading:this.loading,hide:t.isLeaf,tmNode:this.tmNode,indent:h,onClick:this.handleSwitcherClick}),k?null:S,R(gv,{ref:"contentInstRef",clsPrefix:e,checked:s,selected:o,onClick:this.handleContentClick,nodeProps:f?void 0:m,onDragstart:c&&!f&&!v?this.handleDragStart:void 0,tmNode:t}),c?this.showDropMark?hc({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:h}):this.showDropMarkAsParent?hc({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:h}):null:null,k?S:null))}});function Cv({props:t,fNodesRef:e,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,mergedCheckedKeysRef:a,handleCheck:o,handleSelect:s,handleSwitcherClick:l}){const{value:c}=r,f=wi(cf,null),h=f?f.pendingNodeKeyRef:pe(c.length?c[c.length-1]:null);function d(v){var y;if(!t.keyboard)return{enterBehavior:null};const{value:_}=h;let m=null;if(_===null){if((v.key==="ArrowDown"||v.key==="ArrowUp")&&v.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(v.key)&&_===null){const{value:g}=e;let p=0;for(;p<g.length;){if(!g[p].disabled){h.value=g[p].key;break}p+=1}}}else{const{value:g}=e;let p=g.findIndex(C=>C.key===_);if(!~p)return{enterBehavior:null};if(v.key==="Enter"){const C=g[p];switch(m=((y=t.overrideDefaultNodeClickBehavior)===null||y===void 0?void 0:y.call(t,{option:C.rawNode}))||null,m){case"toggleCheck":o(C,!a.value.includes(C.key));break;case"toggleSelect":s(C);break;case"toggleExpand":l(C);break;case"none":break;case"default":default:m="default",s(C)}}else if(v.key==="ArrowDown")for(v.preventDefault(),p+=1;p<g.length;){if(!g[p].disabled){h.value=g[p].key;break}p+=1}else if(v.key==="ArrowUp")for(v.preventDefault(),p-=1;p>=0;){if(!g[p].disabled){h.value=g[p].key;break}p-=1}else if(v.key==="ArrowLeft"){const C=g[p];if(C.isLeaf||!n.value.includes(_)){const k=C.getParent();k&&(h.value=k.key)}else l(C)}else if(v.key==="ArrowRight"){const C=g[p];if(C.isLeaf)return{enterBehavior:null};if(!n.value.includes(_))l(C);else for(p+=1;p<g.length;){if(!g[p].disabled){h.value=g[p].key;break}p+=1}}}return{enterBehavior:m}}return{pendingNodeKeyRef:h,handleKeydown:d}}const xv=Lt({name:"TreeMotionWrapper",props:{clsPrefix:{type:String,required:!0},height:Number,nodes:{type:Array,required:!0},mode:{type:String,required:!0},onAfterEnter:{type:Function,required:!0}},render(){const{clsPrefix:t}=this;return R(Yc,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode==="collapse"},{default:()=>R("div",{class:[`${t}-tree-motion-wrapper`,`${t}-tree-motion-wrapper--${this.mode}`],style:{height:Zc(this.height)}},this.nodes.map(e=>R(hf,{clsPrefix:t,tmNode:e})))})}}),xs=m1(),Sv=G("tree",`
149
+ font-size: var(--n-font-size);
150
+ outline: none;
151
+ `,[V("ul, li",`
152
+ margin: 0;
153
+ padding: 0;
154
+ list-style: none;
155
+ `),V(">",[G("tree-node",[V("&:first-child","margin-top: 0;")])]),G("tree-motion-wrapper",[X("expand",[Ms({duration:"0.2s"})]),X("collapse",[Ms({duration:"0.2s",reverse:!0})])]),G("tree-node-wrapper",`
156
+ box-sizing: border-box;
157
+ padding: var(--n-node-wrapper-padding);
158
+ `),G("tree-node",`
159
+ transform: translate3d(0,0,0);
160
+ position: relative;
161
+ display: flex;
162
+ border-radius: var(--n-node-border-radius);
163
+ transition: background-color .3s var(--n-bezier);
164
+ `,[X("highlight",[G("tree-node-content",[Nt("text","border-bottom-color: var(--n-node-text-color-disabled);")])]),X("disabled",[G("tree-node-content",`
165
+ color: var(--n-node-text-color-disabled);
166
+ cursor: not-allowed;
167
+ `)]),jn("disabled",[X("clickable",[G("tree-node-content",`
168
+ cursor: pointer;
169
+ `)])])]),X("block-node",[G("tree-node-content",`
170
+ flex: 1;
171
+ min-width: 0;
172
+ `)]),jn("block-line",[G("tree-node",[jn("disabled",[G("tree-node-content",[V("&:hover","background: var(--n-node-color-hover);")]),X("selectable",[G("tree-node-content",[V("&:active","background: var(--n-node-color-pressed);")])]),X("pending",[G("tree-node-content",`
173
+ background: var(--n-node-color-hover);
174
+ `)]),X("selected",[G("tree-node-content","background: var(--n-node-color-active);")])]),X("selected",[G("tree-node-content","background: var(--n-node-color-active);")])])]),X("block-line",[G("tree-node",[jn("disabled",[V("&:hover","background: var(--n-node-color-hover);"),X("pending",`
175
+ background: var(--n-node-color-hover);
176
+ `),X("selectable",[jn("selected",[V("&:active","background: var(--n-node-color-pressed);")])]),X("selected","background: var(--n-node-color-active);")]),X("selected","background: var(--n-node-color-active);"),X("disabled",`
177
+ cursor: not-allowed;
178
+ `)])]),G("tree-node-indent",`
179
+ flex-grow: 0;
180
+ flex-shrink: 0;
181
+ `,[X("show-line","position: relative",[V("&::before",`
182
+ position: absolute;
183
+ left: 50%;
184
+ border-left: 1px solid var(--n-line-color);
185
+ transition: border-color .3s var(--n-bezier);
186
+ transform: translate(-50%);
187
+ content: "";
188
+ top: var(--n-line-offset-top);
189
+ bottom: var(--n-line-offset-bottom);
190
+ `),X("last-child",[V("&::before",`
191
+ bottom: 50%;
192
+ `)]),X("is-leaf",[V("&::after",`
193
+ position: absolute;
194
+ content: "";
195
+ left: calc(50% + 0.5px);
196
+ right: 0;
197
+ bottom: 50%;
198
+ transition: border-color .3s var(--n-bezier);
199
+ border-bottom: 1px solid var(--n-line-color);
200
+ `)])]),jn("show-line","height: 0;")]),G("tree-node-switcher",`
201
+ cursor: pointer;
202
+ display: inline-flex;
203
+ flex-shrink: 0;
204
+ height: var(--n-node-content-height);
205
+ align-items: center;
206
+ justify-content: center;
207
+ transition: transform .15s var(--n-bezier);
208
+ vertical-align: bottom;
209
+ `,[Nt("icon",`
210
+ position: relative;
211
+ height: 14px;
212
+ width: 14px;
213
+ display: flex;
214
+ color: var(--n-arrow-color);
215
+ transition: color .3s var(--n-bezier);
216
+ font-size: 14px;
217
+ `,[G("icon",[xs]),G("base-loading",`
218
+ color: var(--n-loading-color);
219
+ position: absolute;
220
+ left: 0;
221
+ top: 0;
222
+ right: 0;
223
+ bottom: 0;
224
+ `,[xs]),G("base-icon",[xs])]),X("hide","visibility: hidden;"),X("expanded","transform: rotate(90deg);")]),G("tree-node-checkbox",`
225
+ display: inline-flex;
226
+ height: var(--n-node-content-height);
227
+ vertical-align: bottom;
228
+ align-items: center;
229
+ justify-content: center;
230
+ `),G("tree-node-content",`
231
+ user-select: none;
232
+ position: relative;
233
+ display: inline-flex;
234
+ align-items: center;
235
+ min-height: var(--n-node-content-height);
236
+ box-sizing: border-box;
237
+ line-height: var(--n-line-height);
238
+ vertical-align: bottom;
239
+ padding: 0 6px 0 4px;
240
+ cursor: default;
241
+ border-radius: var(--n-node-border-radius);
242
+ color: var(--n-node-text-color);
243
+ transition:
244
+ color .3s var(--n-bezier),
245
+ background-color .3s var(--n-bezier),
246
+ border-color .3s var(--n-bezier);
247
+ `,[V("&:last-child","margin-bottom: 0;"),Nt("prefix",`
248
+ display: inline-flex;
249
+ margin-right: 8px;
250
+ `),Nt("text",`
251
+ border-bottom: 1px solid #0000;
252
+ transition: border-color .3s var(--n-bezier);
253
+ flex-grow: 1;
254
+ max-width: 100%;
255
+ `),Nt("suffix",`
256
+ display: inline-flex;
257
+ `)]),Nt("empty","margin: auto;")]);var $v=function(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(h){try{f(r.next(h))}catch(d){s(d)}}function c(h){try{f(r.throw(h))}catch(d){s(d)}}function f(h){h.done?o(h.value):a(h.value).then(l,c)}f((r=r.apply(t,[])).next())})};function dc(t,e,n,r){return{getIsGroup(){return!1},getKey(o){return o[t]},getChildren:r||(o=>o[e]),getDisabled(o){return!!(o[n]||o.checkboxDisabled)}}}const Ev={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array],overrideDefaultNodeClickBehavior:Function},Nv=Object.assign(Object.assign(Object.assign(Object.assign({},Ji.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,showLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},scrollbarProps:Object,indent:{type:Number,default:24},allowDrop:{type:Function,default:yv},animated:{type:Boolean,default:!0},checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),Ev),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean}),Iv=Lt({name:"Tree",props:Nv,setup(t){const{mergedClsPrefixRef:e,inlineThemeDisabled:n,mergedRtlRef:r}=Fa(t),a=za("Tree",r,e),o=Ji("Tree","-tree",Sv,cv,t,e),s=pe(null),l=pe(null),c=pe(null);function f(){var w;return(w=c.value)===null||w===void 0?void 0:w.listElRef}function h(){var w;return(w=c.value)===null||w===void 0?void 0:w.itemsElRef}const d=nt(()=>{const{filter:w}=t;if(w)return w;const{labelField:E}=t;return(q,j)=>{if(!q.length)return!0;const z=j[E];return typeof z=="string"?z.toLowerCase().includes(q.toLowerCase()):!1}}),v=nt(()=>{const{pattern:w}=t;return w?!w.length||!d.value?{filteredTree:t.data,highlightKeySet:null,expandedKeys:void 0}:kv(t.data,d.value,w,t.keyField,t.childrenField):{filteredTree:t.data,highlightKeySet:null,expandedKeys:void 0}}),y=nt(()=>rc(t.showIrrelevantNodes?t.data:v.value.filteredTree,dc(t.keyField,t.childrenField,t.disabledField,t.getChildren))),_=wi(cf,null),m=t.internalTreeSelect?_.dataTreeMate:nt(()=>t.showIrrelevantNodes?y.value:rc(t.data,dc(t.keyField,t.childrenField,t.disabledField,t.getChildren))),{watchProps:g}=t,p=pe([]);g!=null&&g.includes("defaultCheckedKeys")?Ki(()=>{p.value=t.defaultCheckedKeys}):p.value=t.defaultCheckedKeys;const C=yt(t,"checkedKeys"),k=ma(C,p),S=nt(()=>m.value.getCheckedKeys(k.value,{cascade:t.cascade,allowNotLoaded:t.allowCheckingNotLoaded})),I=wv(t),O=nt(()=>S.value.checkedKeys),Q=nt(()=>{const{indeterminateKeys:w}=t;return w!==void 0?w:S.value.indeterminateKeys}),W=pe([]);g!=null&&g.includes("defaultSelectedKeys")?Ki(()=>{W.value=t.defaultSelectedKeys}):W.value=t.defaultSelectedKeys;const lt=yt(t,"selectedKeys"),dt=ma(lt,W),le=pe([]),Ot=w=>{le.value=t.defaultExpandAll?m.value.getNonLeafKeys():w===void 0?t.defaultExpandedKeys:w};g!=null&&g.includes("defaultExpandedKeys")?Ki(()=>{Ot(void 0)}):Ki(()=>{Ot(t.defaultExpandedKeys)});const ve=yt(t,"expandedKeys"),gt=ma(ve,le),Zt=nt(()=>y.value.getFlattenedNodes(gt.value)),{pendingNodeKeyRef:te,handleKeydown:Ue}=Cv({props:t,mergedCheckedKeysRef:k,mergedSelectedKeysRef:dt,fNodesRef:Zt,mergedExpandedKeysRef:gt,handleCheck:ms,handleSelect:gs,handleSwitcherClick:Hu});let ue=null,We=null;const mn=pe(new Set),Rn=nt(()=>t.internalHighlightKeySet||v.value.highlightKeySet),Pr=ma(Rn,mn),P=pe(new Set),at=nt(()=>gt.value.filter(w=>!P.value.has(w)));let vt=0;const Pt=pe(null),ce=pe(null),Gn=pe(null),Jn=pe(null),Yn=pe(0),ei=nt(()=>{const{value:w}=ce;return w?w.parent:null});let fa=!1;Lr(yt(t,"data"),()=>{fa=!0,ga(()=>{fa=!1}),P.value.clear(),te.value=null,da()},{deep:!1});let ha=!1;const ni=()=>{ha=!0,ga(()=>{ha=!1})};let ri;Lr(yt(t,"pattern"),(w,E)=>{if(t.showIrrelevantNodes)if(ri=void 0,w){const{expandedKeys:q,highlightKeySet:j}=bv(t.data,t.pattern,t.keyField,t.childrenField,d.value);mn.value=j,ni(),Mi(q,un(q),{node:null,action:"filter"})}else mn.value=new Set;else if(!w.length)ri!==void 0&&(ni(),Mi(ri,un(ri),{node:null,action:"filter"}));else{E.length||(ri=gt.value);const{expandedKeys:q}=v.value;q!==void 0&&(ni(),Mi(q,un(q),{node:null,action:"filter"}))}});function uo(w){return $v(this,void 0,void 0,function*(){const{onLoad:E}=t;if(!E){yield Promise.resolve();return}const{value:q}=P;if(!q.has(w.key)){q.add(w.key);try{(yield E(w.rawNode))===!1&&Ri()}catch(j){console.error(j),Ri()}q.delete(w.key)}})}Ki(()=>{var w;const{value:E}=y;if(!E)return;const{getNode:q}=E;(w=gt.value)===null||w===void 0||w.forEach(j=>{const z=q(j);z&&!z.shallowLoaded&&uo(z)})});const Mr=pe(!1),Ln=pe([]);Lr(at,(w,E)=>{if(!t.animated||ha){ga(Pi);return}if(fa)return;const q=va(o.value.self.nodeHeight),j=new Set(E);let z=null,jt=null;for(const St of w)if(!j.has(St)){if(z!==null)return;z=St}const Xe=new Set(w);for(const St of E)if(!Xe.has(St)){if(jt!==null)return;jt=St}if(z===null&&jt===null)return;const{virtualScroll:cn}=t,Oi=(cn?c.value.listElRef:s.value).offsetHeight,ji=Math.ceil(Oi/q)+1;let gn;if(z!==null&&(gn=E),jt!==null&&(gn===void 0?gn=w:gn=gn.filter(St=>St!==jt)),Mr.value=!0,Ln.value=y.value.getFlattenedNodes(gn),z!==null){const St=Ln.value.findIndex(yn=>yn.key===z);if(~St){const yn=Ln.value[St].children;if(yn){const $n=ic(yn,w);Ln.value.splice(St+1,0,{__motion:!0,mode:"expand",height:cn?$n.length*q:void 0,nodes:cn?$n.slice(0,ji):$n})}}}if(jt!==null){const St=Ln.value.findIndex(yn=>yn.key===jt);if(~St){const yn=Ln.value[St].children;if(!yn)return;Mr.value=!0;const $n=ic(yn,w);Ln.value.splice(St+1,0,{__motion:!0,mode:"collapse",height:cn?$n.length*q:void 0,nodes:cn?$n.slice(0,ji):$n})}}});const ds=nt(()=>M1(Zt.value)),vs=nt(()=>Mr.value?Ln.value:Zt.value);function Pi(){const{value:w}=l;w&&w.sync()}function ps(){Mr.value=!1,t.virtualScroll&&ga(Pi)}function un(w){const{getNode:E}=m.value;return w.map(q=>{var j;return((j=E(q))===null||j===void 0?void 0:j.rawNode)||null})}function Mi(w,E,q){const{"onUpdate:expandedKeys":j,onUpdateExpandedKeys:z}=t;le.value=w,j&&we(j,w,E,q),z&&we(z,w,E,q)}function Wu(w,E,q){const{"onUpdate:checkedKeys":j,onUpdateCheckedKeys:z}=t;p.value=w,z&&we(z,w,E,q),j&&we(j,w,E,q)}function Pd(w,E){const{"onUpdate:indeterminateKeys":q,onUpdateIndeterminateKeys:j}=t;q&&we(q,w,E),j&&we(j,w,E)}function _s(w,E,q){const{"onUpdate:selectedKeys":j,onUpdateSelectedKeys:z}=t;W.value=w,z&&we(z,w,E,q),j&&we(j,w,E,q)}function Md(w){const{onDragenter:E}=t;E&&we(E,w)}function Rd(w){const{onDragleave:E}=t;E&&we(E,w)}function Ld(w){const{onDragend:E}=t;E&&we(E,w)}function Od(w){const{onDragstart:E}=t;E&&we(E,w)}function jd(w){const{onDragover:E}=t;E&&we(E,w)}function Fd(w){const{onDrop:E}=t;E&&we(E,w)}function da(){zd(),ii()}function zd(){Pt.value=null}function ii(){Yn.value=0,ce.value=null,Gn.value=null,Jn.value=null,Ri()}function Ri(){ue&&(window.clearTimeout(ue),ue=null),We=null}function ms(w,E){if(t.disabled||Rr(w,t.disabledField))return;if(t.internalUnifySelectCheck&&!t.multiple){gs(w);return}const q=E?"check":"uncheck",{checkedKeys:j,indeterminateKeys:z}=m.value[q](w.key,O.value,{cascade:t.cascade,checkStrategy:I.value,allowNotLoaded:t.allowCheckingNotLoaded});Wu(j,un(j),{node:w.rawNode,action:q}),Pd(z,un(z))}function Dd(w){if(t.disabled)return;const{key:E}=w,{value:q}=gt,j=q.findIndex(z=>z===E);if(~j){const z=Array.from(q);z.splice(j,1),Mi(z,un(z),{node:w.rawNode,action:"collapse"})}else{const z=y.value.getNode(E);if(!z||z.isLeaf)return;let jt;if(t.accordion){const Xe=new Set(w.siblings.map(({key:cn})=>cn));jt=q.filter(cn=>!Xe.has(cn)),jt.push(E)}else jt=q.concat(E);Mi(jt,un(jt),{node:w.rawNode,action:"expand"})}}function Hu(w){t.disabled||Mr.value||Dd(w)}function gs(w){if(!(t.disabled||!t.selectable)){if(te.value=w.key,t.internalUnifySelectCheck){const{value:{checkedKeys:E,indeterminateKeys:q}}=S;t.multiple?ms(w,!(E.includes(w.key)||q.includes(w.key))):Wu([w.key],un([w.key]),{node:w.rawNode,action:"check"})}if(t.multiple){const E=Array.from(dt.value),q=E.findIndex(j=>j===w.key);~q?t.cancelable&&E.splice(q,1):~q||E.push(w.key),_s(E,un(E),{node:w.rawNode,action:~q?"unselect":"select"})}else dt.value.includes(w.key)?t.cancelable&&_s([],[],{node:w.rawNode,action:"unselect"}):_s([w.key],un([w.key]),{node:w.rawNode,action:"select"})}}function Bd(w){if(ue&&(window.clearTimeout(ue),ue=null),w.isLeaf)return;We=w.key;const E=()=>{if(We!==w.key)return;const{value:q}=Gn;if(q&&q.key===w.key&&!gt.value.includes(w.key)){const j=gt.value.concat(w.key);Mi(j,un(j),{node:w.rawNode,action:"expand"})}ue=null,We=null};w.shallowLoaded?ue=window.setTimeout(()=>{E()},1e3):ue=window.setTimeout(()=>{uo(w).then(()=>{E()})},1e3)}function Kd({event:w,node:E}){!t.draggable||t.disabled||Rr(E,t.disabledField)||(Vu({event:w,node:E},!1),Md({event:w,node:E.rawNode}))}function Ud({event:w,node:E}){!t.draggable||t.disabled||Rr(E,t.disabledField)||Rd({event:w,node:E.rawNode})}function Wd(w){w.target===w.currentTarget&&ii()}function Hd({event:w,node:E}){da(),!(!t.draggable||t.disabled||Rr(E,t.disabledField))&&Ld({event:w,node:E.rawNode})}function Vd({event:w,node:E}){!t.draggable||t.disabled||Rr(E,t.disabledField)||(vt=w.clientX,Pt.value=E,Od({event:w,node:E.rawNode}))}function Vu({event:w,node:E},q=!0){var j;if(!t.draggable||t.disabled||Rr(E,t.disabledField))return;const{value:z}=Pt;if(!z)return;const{allowDrop:jt,indent:Xe}=t;q&&jd({event:w,node:E.rawNode});const cn=w.currentTarget,{height:Oi,top:ji}=cn.getBoundingClientRect(),gn=w.clientY-ji;let St;jt({node:E.rawNode,dropPosition:"inside",phase:"drag"})?gn<=8?St="before":gn>=Oi-8?St="after":St="inside":gn<=Oi/2?St="before":St="after";const{value:$n}=ds;let kt,$e;const Fi=$n(E.key);if(Fi===null){ii();return}let co=!1;St==="inside"?(kt=E,$e="inside"):St==="before"?E.isFirstChild?(kt=E,$e="before"):(kt=Zt.value[Fi-1],$e="after"):(kt=E,$e="after"),!kt.isLeaf&&gt.value.includes(kt.key)&&(co=!0,$e==="after"&&(kt=Zt.value[Fi+1],kt?$e="before":(kt=E,$e="inside")));const Gu=kt;if(Gn.value=Gu,!co&&z.isLastChild&&z.key===kt.key&&($e="after"),$e==="after"){let Ju=vt-w.clientX,ys=0;for(;Ju>=Xe/2&&kt.parent!==null&&kt.isLastChild&&ys<1;)Ju-=Xe,ys+=1,kt=kt.parent;Yn.value=ys}else Yn.value=0;if((z.contains(kt)||$e==="inside"&&((j=z.parent)===null||j===void 0?void 0:j.key)===kt.key)&&!(z.key===Gu.key&&z.key===kt.key)){ii();return}if(!jt({node:kt.rawNode,dropPosition:$e,phase:"drag"})){ii();return}if(z.key===kt.key)Ri();else if(We!==kt.key)if($e==="inside"){if(t.expandOnDragenter){if(Bd(kt),!kt.shallowLoaded&&We!==kt.key){da();return}}else if(!kt.shallowLoaded){da();return}}else Ri();else $e!=="inside"&&Ri();Jn.value=$e,ce.value=kt}function Qd({event:w,node:E,dropPosition:q}){if(!t.draggable||t.disabled||Rr(E,t.disabledField))return;const{value:j}=Pt,{value:z}=ce,{value:jt}=Jn;if(!(!j||!z||!jt)&&t.allowDrop({node:z.rawNode,dropPosition:jt,phase:"drag"})&&j.key!==z.key){if(jt==="before"){const Xe=j.getNext({includeDisabled:!0});if(Xe&&Xe.key===z.key){ii();return}}if(jt==="after"){const Xe=j.getPrev({includeDisabled:!0});if(Xe&&Xe.key===z.key){ii();return}}Fd({event:w,node:z.rawNode,dragNode:j.rawNode,dropPosition:q}),da()}}function Gd(){Pi()}function Jd(){Pi()}function Yd(w){var E;if(t.virtualScroll||t.internalScrollable){const{value:q}=l;if(!((E=q==null?void 0:q.containerRef)===null||E===void 0)&&E.contains(w.relatedTarget))return;te.value=null}else{const{value:q}=s;if(q!=null&&q.contains(w.relatedTarget))return;te.value=null}}Lr(te,w=>{var E,q;if(w!==null){if(t.virtualScroll)(E=c.value)===null||E===void 0||E.scrollTo({key:w});else if(t.internalScrollable){const{value:j}=l;if(j===null)return;const z=(q=j.contentRef)===null||q===void 0?void 0:q.querySelector(`[data-key="${sf(w)}"]`);if(!z)return;j.scrollTo({el:z})}}}),Ml(Ba,{loadingKeysRef:P,highlightKeySetRef:Pr,displayedCheckedKeysRef:O,displayedIndeterminateKeysRef:Q,mergedSelectedKeysRef:dt,mergedExpandedKeysRef:gt,mergedThemeRef:o,mergedCheckStrategyRef:I,nodePropsRef:yt(t,"nodeProps"),disabledRef:yt(t,"disabled"),checkableRef:yt(t,"checkable"),selectableRef:yt(t,"selectable"),expandOnClickRef:yt(t,"expandOnClick"),onLoadRef:yt(t,"onLoad"),draggableRef:yt(t,"draggable"),blockLineRef:yt(t,"blockLine"),indentRef:yt(t,"indent"),cascadeRef:yt(t,"cascade"),checkOnClickRef:yt(t,"checkOnClick"),checkboxPlacementRef:t.checkboxPlacement,droppingMouseNodeRef:Gn,droppingNodeParentRef:ei,draggingNodeRef:Pt,droppingPositionRef:Jn,droppingOffsetLevelRef:Yn,fNodesRef:Zt,pendingNodeKeyRef:te,showLineRef:yt(t,"showLine"),disabledFieldRef:yt(t,"disabledField"),internalScrollableRef:yt(t,"internalScrollable"),internalCheckboxFocusableRef:yt(t,"internalCheckboxFocusable"),internalTreeSelect:t.internalTreeSelect,renderLabelRef:yt(t,"renderLabel"),renderPrefixRef:yt(t,"renderPrefix"),renderSuffixRef:yt(t,"renderSuffix"),renderSwitcherIconRef:yt(t,"renderSwitcherIcon"),labelFieldRef:yt(t,"labelField"),multipleRef:yt(t,"multiple"),overrideDefaultNodeClickBehaviorRef:yt(t,"overrideDefaultNodeClickBehavior"),handleSwitcherClick:Hu,handleDragEnd:Hd,handleDragEnter:Kd,handleDragLeave:Ud,handleDragStart:Vd,handleDrop:Qd,handleDragOver:Vu,handleSelect:gs,handleCheck:ms});function Xd(w,E){var q,j;typeof w=="number"?(q=c.value)===null||q===void 0||q.scrollTo(w,E||0):(j=c.value)===null||j===void 0||j.scrollTo(w)}const Zd={handleKeydown:Ue,scrollTo:Xd,getCheckedData:()=>{if(!t.checkable)return{keys:[],options:[]};const{checkedKeys:w}=S.value;return{keys:w,options:un(w)}},getIndeterminateData:()=>{if(!t.checkable)return{keys:[],options:[]};const{indeterminateKeys:w}=S.value;return{keys:w,options:un(w)}}},Qu=nt(()=>{const{common:{cubicBezierEaseInOut:w},self:{fontSize:E,nodeBorderRadius:q,nodeColorHover:j,nodeColorPressed:z,nodeColorActive:jt,arrowColor:Xe,loadingColor:cn,nodeTextColor:Oi,nodeTextColorDisabled:ji,dropMarkColor:gn,nodeWrapperPadding:St,nodeHeight:yn,lineHeight:$n,lineColor:kt}}=o.value,$e=ks(St,"top"),Fi=ks(St,"bottom"),co=Zc(va(yn)-va($e)-va(Fi));return{"--n-arrow-color":Xe,"--n-loading-color":cn,"--n-bezier":w,"--n-font-size":E,"--n-node-border-radius":q,"--n-node-color-active":jt,"--n-node-color-hover":j,"--n-node-color-pressed":z,"--n-node-text-color":Oi,"--n-node-text-color-disabled":ji,"--n-drop-mark-color":gn,"--n-node-wrapper-padding":St,"--n-line-offset-top":`-${$e}`,"--n-line-offset-bottom":`-${Fi}`,"--n-node-content-height":co,"--n-line-height":$n,"--n-line-color":kt}}),Li=n?Ll("tree",void 0,Qu,t):void 0;return Object.assign(Object.assign({},Zd),{mergedClsPrefix:e,mergedTheme:o,rtlEnabled:a,fNodes:vs,aip:Mr,selfElRef:s,virtualListInstRef:c,scrollbarInstRef:l,handleFocusout:Yd,handleDragLeaveTree:Wd,handleScroll:Gd,getScrollContainer:f,getScrollContent:h,handleAfterEnter:ps,handleResize:Jd,cssVars:n?void 0:Qu,themeClass:Li==null?void 0:Li.themeClass,onRender:Li==null?void 0:Li.onRender})},render(){var t;const{fNodes:e,internalRenderEmpty:n}=this;if(!e.length&&n)return n();const{mergedClsPrefix:r,blockNode:a,blockLine:o,draggable:s,disabled:l,internalFocusable:c,checkable:f,handleKeydown:h,rtlEnabled:d,handleFocusout:v,scrollbarProps:y}=this,_=c&&!l,m=_?"0":void 0,g=[`${r}-tree`,d&&`${r}-tree--rtl`,f&&`${r}-tree--checkable`,(o||a)&&`${r}-tree--block-node`,o&&`${r}-tree--block-line`],p=k=>"__motion"in k?R(xv,{height:k.height,nodes:k.nodes,clsPrefix:r,mode:k.mode,onAfterEnter:this.handleAfterEnter}):R(hf,{key:k.key,tmNode:k,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:k,internalScrollablePadding:S}=this,I=ks(S||"0");return R(Zu,Object.assign({},y,{ref:"scrollbarInstRef",onDragleave:s?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:g,theme:k.peers.Scrollbar,themeOverrides:k.peerOverrides.Scrollbar,tabindex:m,onKeydown:_?h:void 0,onFocusout:_?v:void 0}),{default:()=>{var O;return(O=this.onRender)===null||O===void 0||O.call(this),e.length?R(R1,{ref:"virtualListInstRef",items:this.fNodes,itemSize:va(k.self.nodeHeight),ignoreItemResize:this.aip,paddingTop:I.top,paddingBottom:I.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:I.left,paddingRight:I.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:Q})=>p(Q)}):Xu(this.$slots.empty,()=>[R(ac,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})])}})}const{internalScrollable:C}=this;return g.push(this.themeClass),(t=this.onRender)===null||t===void 0||t.call(this),C?R(Zu,Object.assign({},y,{class:g,tabindex:m,onKeydown:_?h:void 0,onFocusout:_?v:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}}),{default:()=>R("div",{onDragleave:s?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(p))}):R("div",{class:g,tabindex:m,ref:"selfElRef",style:this.cssVars,onKeydown:_?h:void 0,onFocusout:_?v:void 0,onDragleave:s?this.handleDragLeaveTree:void 0},e.length?e.map(p):Xu(this.$slots.empty,()=>[R(ac,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}}),vc=t=>{const e=ne(),n={x:0,y:0},r=jl({...n});let a;const o=h=>{a&&h.preventDefault()},s=h=>{a=h,n.x=r.x,n.y=r.y},l=h=>{if(!a||!e.value)return;const d=h.clientX-a.clientX,v=h.clientY-a.clientY;t(d)&&(r.x=n.x+d),r.y=n.y+v},c=()=>{a=void 0},f=()=>{if(!e.value||!a)return;c();const{top:h,bottom:d,left:v,right:y}=e.value.getBoundingClientRect();(y<0||v>window.innerWidth||d<0||h>window.innerHeight)&&(r.x=n.x,r.y=n.y)};return Da(()=>{window.addEventListener("pointermove",l),window.addEventListener("pointerup",f),document.addEventListener("selectstart",o)}),po(()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",f),document.removeEventListener("selectstart",o),c()}),Lr(e,(h,d)=>{h&&(h.addEventListener("pointerdown",s),h.addEventListener("pointerup",c)),d&&(d.removeEventListener("pointerdown",s),d.removeEventListener("pointerup",c))}),po(()=>{e.value&&(e.value.removeEventListener("pointerdown",s),e.value.removeEventListener("pointerup",c))}),{target:e,offset:r}},pc="transition-top,bottom,left,right-500",Fl=Lt({__name:"DraggableCard",props:{initialValue:{default:()=>({})},minWidth:{},sizeDraggable:{type:Boolean},disabled:{type:Boolean}},setup(t){var C,k;const e=t,n=e.initialValue.left!==void 0,r=e.initialValue.top!==void 0,a={x:(C=n?e.initialValue.left:e.initialValue.right)!=null?C:0,y:(k=r?e.initialValue.top:e.initialValue.bottom)!=null?k:0},o=vc(S=>{const I=(e.initialValue.width||0)+s.offset.x+-o.offset.x-S;return(e.minWidth||0)<I}),s=vc(S=>{const I=(e.initialValue.width||0)+s.offset.x+S-o.offset.x;return(e.minWidth||0)<I}),l=jl({...a}),c=nt(()=>{const S=(e.initialValue.width||0)+s.offset.x-o.offset.x,I=e.initialValue.width?`width:${S}px;`:"",O=r?`top:${l.y}px;`:`bottom:${l.y}px;`;return n?`left:${l.x-o.offset.x}px;`+O+I:`right:${l.x-s.offset.x}px;`+O+I});let f;const h=S=>{f=S,a.x=l.x,a.y=l.y},d=S=>{if(!_.value||!f)return;const I=S.clientX-f.clientX,O=S.clientY-f.clientY;l.x=a.x+(n?I:-I),l.y=a.y+(r?O:-O)},v=()=>{f=void 0},y=ne(),_=ne(),m=S=>{f&&S.preventDefault()},g=()=>{if(!_.value||!f)return;v();const{top:S,bottom:I,left:O,right:Q}=_.value.getBoundingClientRect();if(Q<0||O>window.innerWidth||I<0||S>window.innerHeight){l.x=a.x,l.y=a.y;const W=y.value;W&&(W.classList.add(pc),setTimeout(()=>{W.classList.remove(pc)},550))}};Da(()=>{window.addEventListener("pointermove",d),window.addEventListener("pointerup",g),document.addEventListener("selectstart",m)}),po(()=>{window.removeEventListener("pointermove",d),window.removeEventListener("pointerup",g),document.removeEventListener("selectstart",m),v()}),Lr(_,(S,I)=>{S&&(S.addEventListener("pointerdown",h),S.addEventListener("pointerup",v)),I&&(I.removeEventListener("pointerdown",h),I.removeEventListener("pointerup",v))}),po(()=>{_.value&&(_.value.removeEventListener("pointerdown",h),_.value.removeEventListener("pointerup",v))});const p=S=>{S instanceof HTMLElement?_.value=S:_.value=void 0};return(S,I)=>(ot(),_e(g1,{to:"#app",disabled:S.disabled},[M("div",{fixed:"",ref_key:"box",ref:y,style:Ps([S.$attrs.style,x(c)]),class:hi(S.$attrs.class)},[tf(S.$slots,"default",{onRef:p}),S.sizeDraggable?(ot(),Ne(Or,{key:0},[M("div",{ref:x(o).target,absolute:"","right-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512),M("div",{ref:x(s).target,absolute:"","left-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512)],64)):Oe("",!0)],6)],8,["disabled"]))}}),qv=M("th",null,"Name",-1),Av=M("th",null,"Value",-1),Tv=[qv,Av],Pv={key:0,flex:"","justify-between":"","items-center":""},Mv={key:0,viewBox:"0 0 28 28"},Rv=M("path",{d:"M15 8a1 1 0 1 1-2 0a1 1 0 0 1 2 0zm-1.75 3.75v7.5a.75.75 0 0 0 1.5 0v-7.5a.75.75 0 0 0-1.5 0zM2 14C2 7.373 7.373 2 14 2s12 5.373 12 12s-5.373 12-12 12S2 20.627 2 14zM14 3.5C8.201 3.5 3.5 8.201 3.5 14S8.201 24.5 14 24.5S24.5 19.799 24.5 14S19.799 3.5 14 3.5z",fill:"currentColor"},null,-1),Lv=[Rv],Ov={key:1,viewBox:"0 0 1024 1024"},jv=M("path",{d:"M722.500267 330.888533l-273.408 273.408-147.729067-147.729066a42.018133 42.018133 0 1 0-59.426133 59.426133l177.425066 177.493333a41.984 41.984 0 0 0 59.426134 0L781.9264 390.314667a42.001067 42.001067 0 0 0-59.392-59.426134h-0.034133zM78.506667 783.496533a508.279467 508.279467 0 0 0 319.0784 226.986667C530.773333 1041.066667 667.886933 1017.924267 783.701333 945.390933a508.279467 508.279467 0 0 0 226.986667-319.0784 508.279467 508.279467 0 0 0-65.058133-386.116266C848.554667 85.367467 681.710933 0.341333 511.214933 0.341333a508.6208 508.6208 0 0 0-270.813866 77.960534A36.864 36.864 0 0 0 279.552 140.629333C484.113067 12.288 755.029333 74.581333 883.268267 279.278933a434.9952 434.9952 0 0 1 55.739733 330.5472 435.029333 435.029333 0 0 1-194.3552 273.134934 435.746133 435.746133 0 0 1-330.581333 55.773866A435.165867 435.165867 0 0 1 140.936533 744.379733a436.770133 436.770133 0 0 1-5.666133-456.055466 36.829867 36.829867 0 0 0-63.317333-37.546667A510.1568 510.1568 0 0 0 78.506667 783.530667v-0.034134z",fill:"currentColor"},null,-1),Fv=[jv],zv=Lt({__name:"AttrCard",props:{focusNode:{}},setup(t){const e=t,n={_id:{desc:"虚拟属性(真机不可用):生成快照访问节点顺序",type:"info"},_pid:{desc:"虚拟属性(真机不可用):父节点的 _id",type:"info"},depth:{desc:"使用此属性在某些应用上可能造成无限节点错误",type:"info"},id:{desc:"可快速查找",type:"quickFind",show(){return(e.focusNode.quickFind||e.focusNode.idQf)&&e.focusNode.attr.id}},vid:{desc:"可快速查找",type:"quickFind",show(){return(e.focusNode.quickFind||e.focusNode.idQf)&&e.focusNode.attr.vid}},text:{desc:"可快速查找",type:"quickFind",show(){return(e.focusNode.quickFind||e.focusNode.textQf)&&e.focusNode.attr.text}}},r=["text","desc"],a=nt(()=>Object.entries(e.focusNode.attr).map(([o,s])=>{var f,h,d;const l=(f=n[o])==null?void 0:f.show,c={name:o,value:s,desc:JSON.stringify(s),tip:!l||l()?n[o]:void 0};return r.includes(o)?[c,{name:o+".length",value:(h=s==null?void 0:s.length)!=null?h:null,desc:JSON.stringify((d=s==null?void 0:s.length)!=null?d:null),tip:void 0}]:c}).flat());return(o,s)=>(ot(),_e(Fl,{initialValue:{top:40,right:10},class:"box-shadow-dim"},{default:T(({onRef:l})=>[Z(x(dv),{size:"small",striped:"",singleLine:!1,class:"gkd_code",themeOverrides:{thPaddingSmall:"1px 3px",tdPaddingSmall:"1px 3px"}},{default:T(()=>[M("thead",null,[M("tr",{ref:l,"cursor-move":""},Tv,512)]),Z(x(pv),null,{default:T(()=>[(ot(!0),Ne(Or,null,wa(x(a),c=>(ot(),_e(x(vv),{key:c.name},{default:T(()=>[Z(x(fc),{onClick:f=>x(nr)(`${c.name}=${c.desc}`)},{default:T(()=>[c.tip?(ot(),Ne("div",Pv,[M("div",null,Dt(c.name),1),Z(x(Zn),null,{trigger:T(()=>[Z(x(rr),{size:"16"},{default:T(()=>[c.tip.type=="info"?(ot(),Ne("svg",Mv,Lv)):c.tip.type=="quickFind"?(ot(),Ne("svg",Ov,Fv)):Oe("",!0)]),_:2},1024)]),default:T(()=>[be(" "+Dt(c.tip.desc),1)]),_:2},1024)])):(ot(),Ne(Or,{key:1},[be(Dt(c.name),1)],64))]),_:2},1032,["onClick"]),Z(x(fc),null,{default:T(()=>[Z(x(L1),{class:hi(["w-[calc(var(--gkd-width)*0.12)]",{"text-left direction-rtl":c.name=="id","opacity-50":c.value===null}])},{default:T(()=>[be(Dt(c.desc),1)]),_:2},1032,["class"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:2},1024)]),_:1}))}}),Dv={bg:"#eee","px-2px":""},Bv=Lt({__name:"MultiFocusCard",props:{focusNode:{},focusNodes:{},onUpdateFocusNode:{type:Function,default:di},onClose:{type:Function,default:di}},setup(t){const n=document.documentElement.scrollWidth/100*25.5;return(r,a)=>(ot(),_e(Fl,{initialValue:{top:215,left:n},class:"z-2 box-shadow-dim w-420px",disabled:!r.focusNodes},{default:T(({onRef:o})=>[r.focusNodes?(ot(),_e(x(y1),{key:0,size:"small",closable:"",onClose:r.onClose},{header:T(()=>[M("div",{ref:o,"cursor-move":""},[be(" 位置 "),M("span",Dv,Dt(`${r.focusNodes.position.x.toFixed(0)},${r.focusNodes.position.y.toFixed()}`),1),be(" 存在 "+Dt(r.focusNodes.nodes.length)+" 个层叠节点 ",1)],512)]),default:T(()=>[Z(x(Rs),{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"}},{default:T(()=>[(ot(!0),Ne(Or,null,wa(r.focusNodes.nodes,s=>(ot(),_e(x(tr),{key:s.id,onClick:l=>r.onUpdateFocusNode(s),size:"small",class:hi({"color-[#00F]":s===r.focusNode})},{default:T(()=>[be(Dt(x(ka)(s)),1)]),_:2},1032,["onClick","class"]))),128))]),_:1})]),_:2},1032,["onClose"])):Oe("",!0)]),_:1},8,["initialValue","disabled"]))}}),Kv={flex:"","flex-col":"",relative:"","h-full":""},Uv=["src"],Wv=M("div",{absolute:"","left-0":"","top-0":"","bottom-0":"","right-0":"","b-solid":"","b-1px":"","b-red":""},null,-1),Hv=[Wv],Vv={class:"left-[calc(100%+4px)]",absolute:"","top-0":"","overflow-hidden":"","z-1":"","bg-white":"","h-200px":"","w-200px":"","border-1px":"","border-indigo-600":"","border-dashed":""},Qv=["src"],Gv={absolute:"","left-2px":"","top-2px":"","p-1px":"","z-1":"","text-13px":"",class:"leading-[1] bg-[rgba(256,256,256,0.7)]"},Jv={key:0,absolute:"","left-2px":"","bottom-2px":"","p-1px":"","z-1":"","text-12px":"",class:"leading-[1] bg-[rgba(256,256,256,0.7)]",flex:"","flex-col":"","flex-items-center":""},Yv=M("div",{class:"top-[calc(50%-1px)] bg-[length:10px_1px]",absolute:"","left-0":"","right-0":"","h-1px":"","bg-repeat-x":"","mix-blend-difference":"",style:{"background-image":`linear-gradient(
258
+ to left,
259
+ transparent 0%,
260
+ transparent 50%,
261
+ #fff 50%,
262
+ #fff 100%
263
+ )`,"background-position-x":"1.5px"}},null,-1),Xv=M("div",{class:"left-[calc(50%-1px)] bg-[length:1px_10px]",absolute:"","top-0":"","bottom-0":"","w-1px":"","bg-repeat-y":"","mix-blend-difference":"",style:{"background-image":`linear-gradient(
264
+ to top,
265
+ transparent 0%,
266
+ transparent 50%,
267
+ #fff 50%,
268
+ #fff 100%
269
+ )`,"background-position-y":"1.5px"}},null,-1),Zv=Lt({__name:"ScreenshotCard",props:{url:{},snapshot:{},rootNode:{},focusNode:{},onUpdateFocusNode:{type:Function,default:di},onUpdateFocusNodes:{type:Function,default:di}},setup(t){const e=t,n=of(),r=B1(nt(()=>(n.width.value,n.height.value,Math.random())),300),a=ne(),o=ne(0),s=_=>{if(!e.rootNode)return;const m=a.value;if(!m)return;const g=m.getBoundingClientRect(),p=g.width/m.naturalWidth*m.naturalHeight,C=(g.height-p)/2,k=(_.clientX-g.left)/g.width*m.naturalWidth,S=(_.clientY-g.top-C)/p*m.naturalHeight,I=O1(e.snapshot.nodes,k,S);I.length!==0&&(I.length===1?e.onUpdateFocusNode(I[0]):(e.onUpdateFocusNode(I[0]),e.onUpdateFocusNodes({nodes:I,position:{x:k,y:S}})))},l=_=>`${_*100}%`,c=nt(()=>{var C;r.value,o.value;const _=a.value,m=(C=e.focusNode)==null?void 0:C.attr;if(!e.focusNode||!_||!m)return"";const g=_.getBoundingClientRect(),p=g.width/_.naturalWidth*_.naturalHeight;return{left:`calc(${l(m.left/_.naturalWidth)} - 2px)`,width:`calc(${l((m.right-m.left)/_.naturalWidth)} + 2px)`,top:`calc(${l((m.top/_.naturalHeight*p+(g.height-p)/2)/g.height)} - 2px)`,height:`calc(${l((m.bottom-m.top)/_.naturalHeight*p/g.height)} + 2px)`}}),f=ne(!1),h=ne({ox:0,oy:0}),d=nt(()=>{var p;const _=(p=e.focusNode)==null?void 0:p.attr;if(!_)return;const{ox:m,oy:g}=h.value;return{left:m-_.left,right:_.right-m,top:g-_.top,bottom:_.bottom-g}}),v=_=>{const m=a.value;if(!m)return;const g=m.getBoundingClientRect(),p=g.width/m.naturalWidth*m.naturalHeight,C=(g.height-p)/2,k=(_.clientX-g.left)/g.width*m.naturalWidth,S=(_.clientY-g.top-C)/p*m.naturalHeight;h.value={ox:k,oy:S},y.value={left:-(k-.1*m.naturalWidth)/m.naturalWidth*1e3+"px",top:-(S-.1*m.naturalWidth)/m.naturalWidth*1e3+"px"}},y=ne({left:"0",top:"0"});return(_,m)=>(ot(),Ne("div",Kv,[M("img",{ref_key:"imgRef",ref:a,src:_.url,onClick:s,"cursor-crosshair":"","h-full":"","object-contain":"",class:"max-w-[calc(var(--gkd-width)*0.35)]",onMouseover:m[0]||(m[0]=g=>f.value=!0),onMouseleave:m[1]||(m[1]=g=>f.value=!1),onMousemove:v,onLoad:m[2]||(m[2]=g=>o.value=Date.now())},null,40,Uv),M("div",{style:Ps(x(c)),absolute:"","pointer-events-none":"","transition-all-300":"","b-1px":"","b-blue":"","b-solid":""},Hv,4),Gc(M("div",Vv,[M("img",{src:_.url,"object-contain":"",absolute:"","left-0":"","top-0":"",style:Ps(x(y)),"w-1000px":""},null,12,Qv),M("div",Gv,Dt(`${x(h).ox.toFixed(0)},${x(h).oy.toFixed(0)}`),1),x(d)?(ot(),Ne("div",Jv,[M("div",null,Dt(x(d).top.toFixed(0)),1),M("div",null,Dt(x(d).left.toFixed(0)+","+x(d).right.toFixed(0)),1),M("div",null,Dt(x(d).bottom.toFixed(0)),1)])):Oe("",!0),Yv,Xv],512),[[Jc,x(f)]])]))}});typeof Math.imul>"u"&&(Math.imul=function(e,n){return(e&4294901760)*(n&65535)+(e&65535)*(n|0)|0});typeof ArrayBuffer.isView>"u"&&(ArrayBuffer.isView=function(t){return t!=null&&t.__proto__!=null&&t.__proto__.__proto__===Int8Array.prototype.__proto__});typeof Array.prototype.fill>"u"&&Object.defineProperty(Array.prototype,"fill",{value:function(t){if(this==null)throw new TypeError("this is null or not defined");for(var e=Object(this),n=e.length>>>0,r=arguments[1],a=r>>0,o=a<0?Math.max(n+a,0):Math.min(a,n),s=arguments[2],l=s===void 0?n:s>>0,c=l<0?Math.max(n+l,0):Math.min(l,n);o<c;)e[o]=t,o++;return e}});[Int8Array,Int16Array,Uint16Array,Int32Array,Float32Array,Float64Array].forEach(function(t){typeof t.prototype.fill>"u"&&Object.defineProperty(t.prototype,"fill",{value:Array.prototype.fill})});typeof Math.clz32>"u"&&(Math.clz32=function(t,e){return function(n){var r=n>>>0;return r===0?32:31-(t(r)/e|0)|0}}(Math.log,Math.LN2));typeof String.prototype.startsWith>"u"&&Object.defineProperty(String.prototype,"startsWith",{value:function(t,e){return e=e||0,this.lastIndexOf(t,e)===e}});typeof String.prototype.endsWith>"u"&&Object.defineProperty(String.prototype,"endsWith",{value:function(t,e){var n=this.toString();(e===void 0||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return r!==-1&&r===e}});var mt=Math.imul,tp=ArrayBuffer.isView,df=Math.clz32;Be(zl,"CharSequence");Be(Ka,"Comparable");b(mo,"Number");it(Dl,"Unit");b(Ul);b(Vl);ge(xf);b(rt,"Char",u,u,[Ka]);Be($t,"Collection");function vf(){return zp(this)}Be(Hn,"List",u,u,[$t]);Be(br,"Entry");Be(kr,"Map");Be(Gr,"Set",u,u,[$t]);ge(Np);b(Cr,"Enum",u,u,[Ka]);ge(Sf);b(ht,"Long",u,mo,[mo,Ka]);b(Eo);b(zs,"JsArrayView",zs,Array);it(rh,"Digit");b(Sr,"AbstractCollection",u,u,[$t]);b(Bn,"AbstractMutableCollection",u,Sr,[Sr,$t]);b(bi,"IteratorImpl");b(Va,"ListIteratorImpl",u,bi);b(me,"AbstractMutableList",u,Bn,[Bn,Hn,$t]);b(Tr,"SubList",u,me);b(kn,"AbstractMap",u,u,[kr]);b(bo,"AbstractMutableMap",u,kn,[kn,kr]);b(xr,"AbstractMutableSet",u,Bn,[Bn,Gr,$t]);ge(sh);b(Vt,"ArrayList",It,me,[me,Hn,$t]);b(Kn,"HashMap",U_,bo,[bo,kr]);b(Cn,"HashMapEntrySetBase",u,xr,[Gr,$t,xr]);b(nu,"HashMapEntrySet",u,Cn);b(Tn,"HashSet",V_,xr,[xr,Gr,$t]);ge(mh);b(Jr,"Itr");b(uu,"KeysItr",u,Jr);b(Ja,"EntriesItr",u,Jr);b(ki,"EntryRef",u,u,[br]);function ep(t){var e;t:{var n;if(et(t,$t)?n=t.l():n=!1,n){e=!0;break t}for(var r=t.h();r.i();){var a=r.j(),o=a,s;if(o!=null&&et(o,br)?s=this.e6(o):s=!1,!s){e=!1;break t}}e=!0}return e}Be(gh,"InternalMap");b(Ce,"InternalHashMap",iu,u,[gh]);b(Ya,"LinkedHashMap",yh,Kn,[Kn,kr]);b(Yr,"LinkedHashSet",cu,Tn,[Tn,Gr,$t]);Be(ua,"Continuation");b(qa,"InterceptedCoroutine",u,u,[ua]);b(Pe,"CoroutineImpl",u,qa,[qa,ua]);it(ta,"CompletedContinuation",u,u,[ua]);b(fu,u,u,Pe);b(xn,"Exception",kh,Error);b(Ke,"RuntimeException",Ih,xn);b(Ci,"IllegalArgumentException",Sh,Ke);b(ea,"IndexOutOfBoundsException",hu,Ke);b(na,"IllegalStateException",Eh,Ke);b(ra,"UnsupportedOperationException",xi,Ke);b(ia,"NoSuchElementException",xe,Ke);b(aa,"Error",Ah,Error);b($i,"NumberFormatException",Th,Ci);b(oa,"ArithmeticException",Mh,Ke);b(Po,"ConcurrentModificationException",du,Ke);b(Mo,"NullPointerException",vu,Ke);b(Ro,"NoWhenBranchMatchedException",pu,Ke);b(Lo,"ClassCastException",_u,Ke);Be(Ta,"KClass");b(pn,"KClassImpl",u,u,[Ta]);it(Ei,"NothingKClassImpl",u,pn);b(Gi,"ErrorKClass",Gi,u,[Ta]);b(Mt,"PrimitiveKClassImpl",u,pn);b(ko,"SimpleKClassImpl",u,pn);Be(Oo,"KProperty1");Be(mu,"KProperty0");it(Qt,"PrimitiveClasses");b(Sn,"StringBuilder",yu,u,[zl]);ge(Kh);b(Za,"Regex");b(wu,"sam$kotlin_Comparator$0");ge(Xr);ge(gm);ge(Fo);b(Vn,"ArrayAsCollection",u,u,[$t]);it(se,"EmptyList",u,u,[Hn]);it(Ni,"EmptyIterator");b(si,"IndexedValue");b(Do,"IntIterator");b(eo,"CharIterator");b($r,"SequenceScope",u,u,u,[1]);b(Er,"SequenceBuilderIterator",Er,$r,[$r,ua],[1]);b(xu);b(Bo);b(Su,"TransformingSequence");b(Ko);b($u,"FilteringSequence");b(Uo);b(Eu,"IndexingSequence");Be(qi,"DropTakeSequence");b(Wo);b(vi,"TakeSequence",u,u,[qi]);b(Ho);b(Nu,"TakeWhileSequence");b(Vo);b(li,"DropSequence",u,u,[qi]);b(Qo);b(Iu,"DropWhileSequence");it(ro,"EmptySequence",u,u,[qi]);b(Jo);b(Vr,"SubSequence",u,u,[qi]);it(Qn,"EmptySet",u,u,[Gr]);it(td,"Key");Be(Mm,"ContinuationInterceptor");it(io,"EmptyCoroutineContext");b(vo,"CoroutineSingletons",u,Cr);ge(id);b(Wn,"IntProgression");b(Qr,"IntRange",u,Wn);ge(ad);b(qr,"CharProgression");b(Ir,"CharRange",u,qr);b(Xo,"IntProgressionIterator",u,Do);b(Zo,"CharProgressionIterator",u,eo);ge(Au);ge(zm);b(oo,"UnsafeLazyImpl");it(dd,"UNINITIALIZED_VALUE");ge(Qm);b(Ar,"Failure");b(il,"NotImplementedError",il,aa);b(An,"Pair");function zl(){}function Ka(){}function mo(){}function Dl(){}i(Dl).toString=function(){return"kotlin.Unit"};var ut;function Bl(t){switch(t.length){case 0:return sa();case 1:return Ha(t[0]);default:return Kl(t)}}function Ls(t,e){return _f(t,e)>=0}function np(t){return t.length===0?Ii():new Ul(t)}function pf(t,e,n,r,a,o,s){return e=e===u?", ":e,n=n===u?"":n,r=r===u?"":r,a=a===u?-1:a,o=o===u?"...":o,s=s===u?null:s,ip(t,yu(),e,n,r,a,o,s).toString()}function Kl(t){return Qa($m(t))}function rp(t){var e;switch(t.length){case 0:throw Xa("Array is empty.");case 1:e=t[0];break;default:throw Rt("Array has more than one element.")}return e}function _f(t,e){if(e==null){var n=0,r=t.length-1|0;if(n<=r)do{var a=n;if(n=n+1|0,t[a]==null)return a}while(n<=r)}else{var o=0,s=t.length-1|0;if(o<=s)do{var l=o;if(o=o+1|0,N(e,t[l]))return l}while(o<=s)}return-1}function ip(t,e,n,r,a,o,s,l){n=n===u?", ":n,r=r===u?"":r,a=a===u?"":a,o=o===u?-1:o,s=s===u?"...":s,l=l===u?null:l,e.e(r);var c=0,f=0,h=t.length;t:for(;f<h;){var d=t[f];if(f=f+1|0,c=c+1|0,c>1&&e.e(n),o<0||c<=o)sd(e,d,l);else break t}return o>=0&&c>o&&e.e(s),e.e(a),e}function ap(t){return t.length-1|0}function op(t,e){if(e==null){var n=t.length-1|0;if(0<=n)do{var r=n;if(n=n+-1|0,t[r]==null)return r}while(0<=n)}else{var a=t.length-1|0;if(0<=a)do{var o=a;if(a=a+-1|0,N(e,t[o]))return o}while(0<=a)}return-1}function sp(t,e){for(var n=0,r=t.length;n<r;){var a=t[n];n=n+1|0,e.f(a)}return e}function Ul(t){this.g_1=t}i(Ul).h=function(){return Ef(this.g_1)};function In(t,e,n,r,a,o,s){return e=e===u?", ":e,n=n===u?"":n,r=r===u?"":r,a=a===u?-1:a,o=o===u?"...":o,s=s===u?null:s,lp(t,yu(),e,n,r,a,o,s).toString()}function lp(t,e,n,r,a,o,s,l){n=n===u?", ":n,r=r===u?"":r,a=a===u?"":a,o=o===u?-1:o,s=s===u?"...":s,l=l===u?null:l,e.e(r);var c=0,f=t.h();t:for(;f.i();){var h=f.j();if(c=c+1|0,c>1&&e.e(n),o<0||c<=o)sd(e,h,l);else break t}return o>=0&&c>o&&e.e(s),e.e(a),e}function mf(t){return t.l()?null:t.k(0)}function Hi(t){if(t.l())throw Xa("List is empty.");return t.k(0)}function up(t){return yf(hp(t))}function cp(t){return new Vl(t)}function fp(t){return t.l()?null:t.k(t.m()-1|0)}function gf(t,e){if(et(e,$t)){var n=Vi(t.m()+e.m()|0);return n.q(t),n.q(e),n}else{var r=Qa(t);return zo(r,e),r}}function Ca(t){if(t.l())throw Xa("List is empty.");return t.k(to(t))}function Wl(t){return Qa(t)}function Hl(t,e){if(et(t,$t)){if(t.m()<=1)return yf(t);var n=bn(t),r=Zi(n)?n:$();return x_(r,e),Zl(r)}var a=wf(t);return T_(a,e),a}function yf(t){if(et(t,$t)){var e;switch(t.m()){case 0:e=sa();break;case 1:var n;et(t,Hn)?n=t.k(0):n=t.h().j(),e=Ha(n);break;default:e=Wl(t);break}return e}return Cm(wf(t))}function hp(t){var e;return et(t,$t)?e=d0(t):e=go(t,cu()),e}function wf(t){return et(t,$t)?Wl(t):go(t,It())}function go(t,e){for(var n=t.h();n.i();){var r=n.j();e.f(r)}return e}function dp(t){if(et(t,$t)){var e;switch(t.m()){case 0:e=qu();break;case 1:var n;et(t,Hn)?n=t.k(0):n=t.h().j(),e=ah(n);break;default:e=go(t,_0(t.m()));break}return e}return Tm(go(t,cu()))}function Vl(t){this.r_1=t}i(Vl).h=function(){return this.r_1.h()};function vp(t,e){return od.s(t,e,-1)}function xa(t,e){return t>e?e:t}function yo(t,e){return t<e?e:t}function Ql(t){return gp(t,It())}function Gl(t,e){var n=new Eu(t),r=new $u(n,!0,yp(e));return new Su(r,wp)}function bf(t,e){if(!(e>=0)){var n="Requested element count "+e+" is less than zero.";throw Rt(F(n))}var r;return e===0?r=Ii():et(t,qi)?r=t.t(e):r=new vi(t,e),r}function pp(t,e){return new Nu(t,e)}function _p(t,e){var n;return et(t,qi)?n=t.u(e):n=new li(t,e),n}function mp(t,e){return new Iu(t,e)}function kf(t){var e=t.h();return e.i()?e.j():null}function Cf(t){var e=t.h();if(!e.i())return sa();var n=e.j();if(!e.i())return Ha(n);var r=It();for(r.f(n);e.i();)r.f(e.j());return r}function gp(t,e){for(var n=t.h();n.i();){var r=n.j();e.f(r)}return e}function yp(t){return function(e){return t(e.v_1,e.w_1)}}function wp(t){return t.w_1}function tn(t,e){return 0<=e&&e<=(A(t)-1|0)?L(t,e):null}function _c(t,e){if(!(e>=0)){var n="Requested character count "+e+" is less than zero.";throw Rt(F(n))}return fn(t,xa(e,A(t)),A(t))}function bp(t){return kp(t,Vi(A(t)))}function kp(t,e){for(var n=0;n<A(t);){var r=L(t,n);n=n+1|0,e.f(new rt(r))}return e}function Cp(t){var e=t&65535;return e}function ee(t,e){return t-e|0}function xp(t,e){return ee(t.x_1,e instanceof rt?e.x_1:$())}function pa(t,e){return t-e|0}function ai(t,e){return new Ir(t,e)}function je(t){return t}function Kt(t){return String.fromCharCode(t)}function Sp(t,e){return e instanceof rt?t===e.x_1:!1}function $p(t){return t}function xf(){Os=this,this.y_1=0,this.z_1=65535,this.a1_1=55296,this.b1_1=56319,this.c1_1=56320,this.d1_1=57343,this.e1_1=55296,this.f1_1=57343,this.g1_1=2,this.h1_1=16}var Os;function Ep(){return Os==null&&new xf,Os}function rt(t){Ep(),this.x_1=t}i(rt).i1=function(t){return ee(this.x_1,t)};i(rt).d=function(t){return xp(this,t)};i(rt).toString=function(){return Kt(this.x_1)};i(rt).equals=function(t){return Sp(this.x_1,t)};i(rt).hashCode=function(){return $p(this.x_1)};function Hn(){}function $t(){}function br(){}function kr(){}function Gr(){}function Np(){}function Cr(t,e){this.v1_1=t,this.w1_1=e}i(Cr).x1=function(t){return Rf(this.w1_1,t.w1_1)};i(Cr).d=function(t){return this.x1(t instanceof Cr?t:$())};i(Cr).equals=function(t){return this===t};i(Cr).hashCode=function(){return Qp(this)};i(Cr).toString=function(){return this.v1_1};function Wt(t){var e=t==null?null:F(t);return e==null?"null":e}function Sf(){js=this,this.y1_1=new ht(0,-2147483648),this.z1_1=new ht(-1,2147483647),this.a2_1=8,this.b2_1=64}var js;function Ip(){return js==null&&new Sf,js}function ht(t,e){Ip(),mo.call(this),this.c2_1=t,this.d2_1=e}i(ht).e2=function(t){return Io(this,t)};i(ht).d=function(t){return this.e2(t instanceof ht?t:$())};i(ht).f2=function(t){return wo(this,t)};i(ht).g2=function(t){return i_(this,t)};i(ht).h2=function(){return this.i2().f2(new ht(1,0))};i(ht).i2=function(){return new ht(~this.c2_1,~this.d2_1)};i(ht).j2=function(){return this.c2_1};i(ht).k2=function(){return Ea(this)};i(ht).toString=function(){return Bs(this,10)};i(ht).equals=function(t){var e;return t instanceof ht?e=Nn(this,t):e=!1,e};i(ht).hashCode=function(){return s_(this)};i(ht).valueOf=function(){return this.k2()};function $f(t){for(var e=1,n=[],r=0,a=t.length;r<a;){var o=t[r];r=r+1|0;var s=e,l=o.prototype.$imask$,c=l==null?o.$imask$:l;c!=null&&(n.push(c),s=c.length);var f=o.$metadata$.iid,h;f==null?h=null:h=qp(f);var d=h;d!=null&&(n.push(d),s=Math.max(s,d.length)),s>e&&(e=s)}return Ap(e,n)}function qp(t){var e=t>>5,n=new Int32Array(e+1|0),r=t&31,a=1<<r;return n[e]=n[e]|a,n}function Ap(t,e){for(var n=0,r=new Int32Array(t);n<t;){for(var a=n,o=0,s=0,l=e.length;s<l;){var c=e[s];s=s+1|0,a<c.length&&(o=o|c[a])}r[a]=o,n=n+1|0}return r}function Tp(t,e){var n=e>>5;if(n>t.length)return!1;var r=e&31,a=1<<r;return!!(t[n]&a)}function ir(t,e){var n=0,r=t.length-1|0;if(n<=r)do{var a=n;n=n+1|0,t[a]=e}while(a!==r);return t}function Ef(t){return new Eo(t)}function Pp(t){var e="CharArray",n=new Uint16Array(t);return n.$type$=e,n}function Eo(t){this.m2_1=t,this.l2_1=0}i(Eo).i=function(){return this.l2_1!==this.m2_1.length};i(Eo).j=function(){var t;if(this.l2_1!==this.m2_1.length){var e=this.l2_1;this.l2_1=e+1|0,t=this.m2_1[e]}else throw Xa(""+this.l2_1);return t};function Ss(){return Yi(),Nf}var Nf;function If(){return Yi(),qf}var qf;function Fs(){return Yi(),Af}var Af;function Tf(){return Yi(),Pf}var Pf;function Mp(){return Yi(),Mf}var Mf;function Rp(t){return Yi(),(t|0)===t?Uf(t):(If()[0]=t,mt(Fs()[Mp()],31)+Fs()[Tf()]|0)}var mc;function Yi(){mc||(mc=!0,Nf=new ArrayBuffer(8),qf=new Float64Array(Ss()),new Float32Array(Ss()),Af=new Int32Array(Ss()),If()[0]=-1,Pf=Fs()[0]!==0?1:0,Mf=1-Tf()|0)}function L(t,e){var n;if(Jl(t)){var r=t.charCodeAt(e),a,o=0;if(r<je(o))a=!0;else{var s=65535;a=r>je(s)}if(a)throw Rt("Invalid Char code: "+r);n=Ia(r)}else n=t.b(e);return n}function Jl(t){return typeof t=="string"}function A(t){var e;return Jl(t)?e=t.length:e=t.a(),e}function fn(t,e,n){var r;return Jl(t)?r=t.substring(e,n):r=t.c(e,n),r}function Lp(t,e){var n=t,r=e;if(n===r)return!0;if(n==null||r==null||!Hf(r)||n.length!=r.length)return!1;var a=0,o=n.length;if(a<o)do{var s=a;if(a=a+1|0,!N(n[s],r[s]))return!1}while(a<o);return!0}function Op(t){var e=t;if(e==null)return 0;var n=1,r=0,a=e.length;if(r<a)do{var o=r;r=r+1|0,n=mt(n,31)+st(e[o])|0}while(r<a);return n}function jp(t){return pf(t,", ","[","]",u,u,Fp)}function Fp(t){return F(t)}function zp(t){var e=Bp(t),n=Kp(t),r=Up(),a=Wp(),o=Hp();return Dp(e,n,r,a,o)}function Dp(t,e,n,r,a){var o=J(i(zs));return new Proxy(o,{get:function(s,l,c){if(l==="length")return t();var f=typeof l,h=f==="string"||f==="number"?+l:void 0;return isNaN(h)?s[l]:e(h)},has:function(s,l){return!isNaN(l)&&l<t()},set:function(s,l,c){if(l==="length"){var f=t(),h=d==="string"||d==="number"?+l:void 0;if(isNaN(h))throw new RangeError("invalid array length");return h<f?r(f-h):a(h-f),!0}var d=typeof l,v=d==="string"||d==="number"?+l:void 0;return isNaN(v)?!1:(n(v,c),!0)}})}function Yl(){throw xi()}function zs(){Array.call(this)}function Bp(t){return function(){return t.m()}}function Kp(t){return function(e){return t.k(e)}}function Up(){var t=function(){return Yl(),ut};return t.callableName="UNSUPPORTED_OPERATION",t}function Wp(){var t=function(){return Yl(),ut};return t.callableName="UNSUPPORTED_OPERATION",t}function Hp(){var t=function(){return Yl(),ut};return t.callableName="UNSUPPORTED_OPERATION",t}function Rf(t,e){var n;switch(typeof t){case"number":var r;typeof e=="number"?r=gc(t,e):e instanceof ht?r=gc(t,e.k2()):r=yc(t,e),n=r;break;case"string":case"boolean":n=yc(t,e);break;default:n=Vp(t,e);break}return n}function gc(t,e){var n;if(t<e)n=-1;else if(t>e)n=1;else if(t===e){var r;if(t!==0)r=0;else{var a=1/t,o;a===1/e?o=0:a<0?o=-1:o=1,r=o}n=r}else t!==t?n=e!==e?0:1:n=-1;return n}function yc(t,e){return t<e?-1:t>e?1:0}function Vp(t,e){return t.d(e)}function Qp(t){return Ds(t)}function Ds(t){if(!("kotlinHashCodeValue$"in t)){var e=Lf(),n=new Object;n.value=e,n.enumerable=!1,Object.defineProperty(t,"kotlinHashCodeValue$",n)}return t.kotlinHashCodeValue$}function Lf(){return Math.random()*4294967296|0}function J(t){return t=t===u?null:t,Object.create(t)}function K(t,e,n,r){return Object.defineProperty(t,e,{configurable:!0,get:n,set:r})}function N(t,e){if(t==null)return e==null;if(e==null)return!1;if(typeof t=="object"&&typeof t.equals=="function")return t.equals(e);if(t!==t)return e!==e;if(typeof t=="number"&&typeof e=="number"){var n;if(t===e){var r;if(t!==0)r=!0;else{var a=1/t;r=a===1/e}n=r}else n=!1;return n}return t===e}function st(t){if(t==null)return 0;var e=typeof t,n;switch(e){case"object":n=typeof t.hashCode=="function"?t.hashCode():Ds(t);break;case"function":n=Ds(t);break;case"number":n=Rp(t);break;case"boolean":n=Sa(t);break;case"string":n=Ge(String(t));break;case"bigint":n=Gp(t);break;case"symbol":n=Jp(t);break;default:n=function(){throw new Error("Unexpected typeof `"+e+"`")}();break}return n}function F(t){var e;return t==null?e="null":Hf(t)?e="[...]":typeof t.toString!="function"?e=Yp(t):e=t.toString(),e}function Sa(t){return t?1231:1237}function Ge(t){var e=0,n=t.length,r=0,a=n-1|0;if(r<=a)do{var o=r;r=r+1|0;var s=t.charCodeAt(o);e=mt(e,31)+s|0}while(o!==a);return e}function Gp(t){for(var e=BigInt(32),n=BigInt(4294967295),r=t<0?-t:t,a=0,o=t<0?-1:1;r!=0;){var s=Number(r&n);a=mt(31,a)+s|0,r=r>>e}return mt(a,o)}function Jp(t){var e=Xp(t)?Zp():t_(),n=e.get(t);if(n!==u)return n;var r=Lf();return e.set(t,r),r}function Yp(t){return Object.prototype.toString.call(t)}function Xp(t){return Symbol.keyFor(t)!=u}function Zp(){return $s===u&&($s=new Map),$s}function t_(){return Es===u&&(Es=new WeakMap),Es}var $s,Es;function B(t,e){Error.captureStackTrace!=null?Error.captureStackTrace(t,e):t.stack=new Error().stack}function i(t){return t.prototype}function No(t,e,n){Error.call(t),e_(t,e,n)}function e_(t,e,n){var r=nh(Object.getPrototypeOf(t));if(!(r&1)){var a;if(e==null){var o;if(e!==null){var s=null;o=s==null?u:s}else o=u;a=o}else a=e;t.message=a}r&2||(t.cause=n),t.name=Object.getPrototypeOf(t).constructor.name}function Te(t){var e;return t==null?n_():e=t,e}function n_(){throw vu()}function qn(){throw pu()}function $(){throw _u()}function or(){return Et(),Of}var Of;function fo(){return Et(),jf}var jf;function wc(){return Et(),Ff}var Ff;function r_(){return Et(),zf}var zf;function Fn(){return Et(),Df}var Df;function bc(){return Et(),Bf}var Bf;function Io(t,e){if(Et(),Nn(t,e))return 0;var n=wn(t),r=wn(e);return n&&!r?-1:!n&&r?1:wn($a(t,e))?-1:1}function wo(t,e){Et();var n=t.d2_1>>>16|0,r=t.d2_1&65535,a=t.c2_1>>>16|0,o=t.c2_1&65535,s=e.d2_1>>>16|0,l=e.d2_1&65535,c=e.c2_1>>>16|0,f=e.c2_1&65535,h=0,d=0,v=0,y=0;return y=y+(o+f|0)|0,v=v+(y>>>16|0)|0,y=y&65535,v=v+(a+c|0)|0,d=d+(v>>>16|0)|0,v=v&65535,d=d+(r+l|0)|0,h=h+(d>>>16|0)|0,d=d&65535,h=h+(n+s|0)|0,h=h&65535,new ht(v<<16|y,h<<16|d)}function $a(t,e){return Et(),wo(t,e.h2())}function jr(t,e){if(Et(),oi(t))return or();if(oi(e))return or();if(Nn(t,Fn()))return kc(e)?Fn():or();if(Nn(e,Fn()))return kc(t)?Fn():or();if(wn(t)){var n;return wn(e)?n=jr(Ze(t),Ze(e)):n=Ze(jr(Ze(t),e)),n}else if(wn(e))return Ze(jr(t,Ze(e)));if(Cc(t,bc())&&Cc(e,bc()))return Na(Ea(t)*Ea(e));var r=t.d2_1>>>16|0,a=t.d2_1&65535,o=t.c2_1>>>16|0,s=t.c2_1&65535,l=e.d2_1>>>16|0,c=e.d2_1&65535,f=e.c2_1>>>16|0,h=e.c2_1&65535,d=0,v=0,y=0,_=0;return _=_+mt(s,h)|0,y=y+(_>>>16|0)|0,_=_&65535,y=y+mt(o,h)|0,v=v+(y>>>16|0)|0,y=y&65535,y=y+mt(s,f)|0,v=v+(y>>>16|0)|0,y=y&65535,v=v+mt(a,h)|0,d=d+(v>>>16|0)|0,v=v&65535,v=v+mt(o,f)|0,d=d+(v>>>16|0)|0,v=v&65535,v=v+mt(s,c)|0,d=d+(v>>>16|0)|0,v=v&65535,d=d+(((mt(r,h)+mt(a,f)|0)+mt(o,c)|0)+mt(s,l)|0)|0,d=d&65535,new ht(y<<16|_,d<<16|v)}function i_(t,e){if(Et(),oi(e))throw Ch("division by zero");if(oi(t))return or();if(Nn(t,Fn())){if(Nn(e,fo())||Nn(e,wc()))return Fn();if(Nn(e,Fn()))return fo();var n=o_(t,1),r=a_(n.g2(e),1);if(Nn(r,or()))return wn(e)?fo():wc();var a=$a(t,jr(e,r));return wo(r,a.g2(e))}else if(Nn(e,Fn()))return or();if(wn(t)){var o;return wn(e)?o=Ze(t).g2(Ze(e)):o=Ze(Ze(t).g2(e)),o}else if(wn(e))return Ze(t.g2(Ze(e)));for(var s=or(),l=t;u_(l,e);){for(var c=Ea(l)/Ea(e),f=Math.max(1,Math.floor(c)),h=Math.ceil(Math.log(f)/Math.LN2),d=h<=48?1:Math.pow(2,h-48),v=Na(f),y=jr(v,e);wn(y)||l_(y,l);)f=f-d,v=Na(f),y=jr(v,e);oi(v)&&(v=fo()),s=wo(s,v),l=$a(l,y)}return s}function a_(t,e){Et();var n=e&63;return new ht(t.c2_1<<n,t.d2_1<<n|(t.c2_1>>>(32-n|0)|0))}function o_(t,e){Et();var n=e&63;return new ht(t.c2_1>>>n|0|t.d2_1<<(32-n|0),t.d2_1>>n)}function Ea(t){return Et(),t.d2_1*4294967296+c_(t)}function Bs(t,e){if(Et(),oi(t))return"0";if(wn(t))if(Nn(t,Fn())){var n=ya(e),r=t.g2(n),a=$a(jr(r,n),t).j2(),o=Bs(r,e);return o+a.toString(e)}else return"-"+Bs(Ze(t),e);for(var s=9,l=Na(Math.pow(e,s)),c=t,f="";;){var h=c.g2(l),d=$a(c,jr(h,l)).j2(),v=d.toString(e);if(c=h,oi(c))return v+f;for(;v.length<s;)v="0"+v;f=v+f}}function Nn(t,e){return Et(),t.d2_1===e.d2_1&&t.c2_1===e.c2_1}function s_(t){return Et(),t.c2_1^t.d2_1}function ya(t){return Et(),new ht(t,t<0?-1:0)}function wn(t){return Et(),t.d2_1<0}function oi(t){return Et(),t.d2_1===0&&t.c2_1===0}function kc(t){return Et(),(t.c2_1&1)===1}function Ze(t){return Et(),t.h2()}function Cc(t,e){return Et(),Io(t,e)<0}function Na(t){if(Et(),q_(t))return or();if(t<=-9223372036854776e3)return Fn();if(t+1>=9223372036854776e3)return r_();if(t<0)return Ze(Na(-t));var e=4294967296,n=t%e|0,r=t/e|0;return new ht(n,r)}function l_(t,e){return Et(),Io(t,e)>0}function u_(t,e){return Et(),Io(t,e)>=0}function c_(t){return Et(),t.c2_1>=0?t.c2_1:4294967296+t.c2_1}var xc;function Et(){xc||(xc=!0,Of=ya(0),jf=ya(1),Ff=ya(-1),zf=new ht(-1,2147483647),Df=new ht(0,-2147483648),Bf=ya(16777216))}function Kf(t,e,n,r,a,o){var s=u,l=t==="interface"?f_():u;return{kind:t,simpleName:e,associatedObjectKey:r,associatedObjects:a,suspendArity:o,$kClass$:s,defaultConstructor:n,iid:l}}function f_(){return _a===u&&(_a=0),_a=_a+1|0,_a}var _a;function Xl(t,e,n,r,a,o,s,l,c){a!=null&&(e.prototype=Object.create(a.prototype),e.prototype.constructor=e);var f=Kf(t,n,r,l,c,s);if(e.$metadata$=f,o!=null){var h=N(f.iid,u)?e.prototype:e;h.$imask$=$f(o)}}function b(t,e,n,r,a,o,s,l){var c="class";Xl(c,t,e,n,r,a,o,s,l)}function it(t,e,n,r,a,o,s,l){var c="object";Xl(c,t,e,n,r,a,o,s,l)}function Be(t,e,n,r,a,o,s,l){var c="interface";Xl(c,t,e,n,r,a,o,s,l)}function Ua(t,e,n,r){b(t,"Lambda",u,e,n,r,u,u)}function ge(t,e,n,r){it(t,"Companion",u,e,n,r,u,u)}function h_(t,e,n,r,a){return Kf("class",t,e,n,r,a)}function ar(t){var e=t.length,n=Array(e),r=0,a=e-1|0;if(r<=a)do{var o=r;r=r+1|0;var s=t[o];s!=null&&Zi(s)?n[o]=s:n[o]=[].slice.call(s)}while(o!==a);return[].concat.apply([],n)}function Uf(t){var e;return t instanceof ht?e=t.j2():e=d_(t),e}function d_(t){var e;return t>2147483647?e=2147483647:t<-2147483648?e=-2147483648:e=t|0,e}function v_(t){return t<<16>>16}function Ia(t){var e=Uf(t),n=v_(e);return Cp(n)}function p_(t,e){return new Qr(t,e)}function __(){return Xi(),Wf}var Wf;function Bi(){return Xi(),h_(u,u,u,u,u)}function Wa(t,e,n,r,a){return Xi(),r.get=r,r.set=a,r.callableName=t,m_(r,g_(e,a),y_(r,n))}function m_(t,e,n){return Xi(),t.$metadata$=e,t.constructor=t,t.$imask$=n,t}function g_(t,e){return Xi(),__()[t][e==null?0:1]}function y_(t,e){Xi();var n=t.$imask$,r;if(n==null){var a=[e];r=$f(a)}else r=n;return r}var Sc;function Xi(){if(!Sc){Sc=!0;var t=[Bi(),Bi()],e=[Bi(),Bi()];Wf=[t,e,[Bi(),Bi()]]}}function Hf(t){return qo(t)||tp(t)}function qo(t){return Array.isArray(t)}function et(t,e){return w_(t,e.$metadata$.iid)}function w_(t,e){var n=t.$imask$,r;if(n==null)return!1;r=n;var a=r;return Tp(a,e)}function Zi(t){var e;return qo(t)?e=!t.$type$:e=!1,e}function Vf(t){var e;return typeof t=="number"?e=!0:e=t instanceof ht,e}function b_(t){var e=typeof t;return e==="string"||e==="boolean"||Vf(t)||et(t,Ka)}function de(t){return typeof t=="string"||et(t,zl)}function Qf(t){return qo(t)&&t.$type$==="BooleanArray"}function Gf(t){return t instanceof Int8Array}function Jf(t){return t instanceof Int16Array}function Yf(t){var e;return t instanceof Uint16Array?e=t.$type$==="CharArray":e=!1,e}function Xf(t){return t instanceof Int32Array}function Zf(t){return t instanceof Float32Array}function th(t){return qo(t)&&t.$type$==="LongArray"}function eh(t){return t instanceof Float64Array}function nh(t){var e=t.constructor,n=e==null?null:e.$metadata$,r=n==null?null:n.errorInfo;if(r!=null)return r;var a=0;if($c(t,"message")&&(a=a|1),$c(t,"cause")&&(a=a|2),a!==3){var o=k_(t);o!=Error.prototype&&(a=a|nh(o))}return n!=null&&(n.errorInfo=a),a}function $c(t,e){return t.hasOwnProperty(e)}function k_(t){return Object.getPrototypeOf(t)}var u;function C_(t,e,n,r){n=n===u?0:n,r=r===u?t.length:r,_n.o2(n,r,t.length),t.fill(e,n,r)}function Ks(t,e){return Lp(t,e)}function Us(t){return Op(t)}function Zl(t){return new Vt(t)}function x_(t,e){t.length>1&&lh(t,e)}function S_(t,e){if(!(e>=0)){var n="Invalid new array size: "+e+".";throw Rt(F(n))}return L0(t,new Int32Array(e))}function $_(t,e){if(!(e>=0)){var n="Invalid new array size: "+e+".";throw Rt(F(n))}return O0(t,e,null)}function tu(t){var e=(t.m()/2|0)-1|0;if(e<0)return ut;var n=to(t),r=0;if(r<=e)do{var a=r;r=r+1|0;var o=t.k(a);t.p2(a,t.k(n)),t.p2(n,o),n=n-1|0}while(a!==e)}function E_(t){var e=je(t),n=N_(Ec().q2_1,e),r=e-Ec().q2_1[n]|0;return r<10?r:-1}function N_(t,e){for(var n=0,r=t.length-1|0,a=-1,o=0;n<=r;)if(a=(n+r|0)/2|0,o=t[a],e>o)n=a+1|0;else{if(e===o)return a;r=a-1|0}return a-(e<o?1:0)|0}function rh(){Ws=this;var t=this;t.q2_1=new Int32Array([48,1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,42528,43216,43264,43472,43504,43600,44016,65296])}var Ws;function Ec(){return Ws==null&&new rh,Ws}function I_(t){var e=je(t);return(9<=e?e<=13:!1)||(28<=e?e<=32:!1)||e===160||e>4096&&(e===5760||(8192<=e?e<=8202:!1)||e===8232||e===8233||e===8239||e===8287||e===12288)}function q_(t){return t!==t}function A_(t){var e;return t===0?e=0:e=1<<(31-df(t)|0),e}function ih(t){return wm(t)}function Ha(t){return km([t])}function bn(t){var e;return t.toArray!==void 0?e=t.toArray():e=ih(t),e}function Ao(t){return t<0&&Em(),t}function T_(t,e){P_(t,e)}function ah(t){return Am([t])}function P_(t,e){if(t.m()<=1)return ut;var n=bn(t);lh(n,e);var r=0,a=n.length;if(r<a)do{var o=r;r=r+1|0,t.p2(o,n[o])}while(r<a)}function Bn(){Sr.call(this)}i(Bn).q=function(t){this.r2();for(var e=!1,n=t.h();n.i();){var r=n.j();this.f(r)&&(e=!0)}return e};i(Bn).toJSON=function(){return this.toArray()};i(Bn).r2=function(){};function bi(t){this.u2_1=t,this.s2_1=0,this.t2_1=-1}i(bi).i=function(){return this.s2_1<this.u2_1.m()};i(bi).j=function(){if(!this.i())throw xe();var t=this,e=this.s2_1;return this.s2_1=e+1|0,t.t2_1=e,this.u2_1.k(this.t2_1)};i(bi).v2=function(){if(this.t2_1===-1){var t="Call next() or previous() before removing element from the iterator.";throw Hr(F(t))}this.u2_1.x2(this.t2_1),this.s2_1=this.t2_1,this.t2_1=-1};function Va(t,e){this.b3_1=t,bi.call(this,t),_n.c3(e,this.b3_1.m()),this.s2_1=e}i(Va).d3=function(){return this.s2_1>0};i(Va).e3=function(){return this.s2_1};i(Va).f3=function(){if(!this.d3())throw xe();var t=this;return this.s2_1=this.s2_1-1|0,t.t2_1=this.s2_1,this.b3_1.k(this.t2_1)};function Tr(t,e,n){me.call(this),this.h3_1=t,this.i3_1=e,this.j3_1=0,_n.o2(this.i3_1,n,this.h3_1.m()),this.j3_1=n-this.i3_1|0}i(Tr).k3=function(t,e){_n.c3(t,this.j3_1),this.h3_1.k3(this.i3_1+t|0,e),this.j3_1=this.j3_1+1|0};i(Tr).k=function(t){return _n.l3(t,this.j3_1),this.h3_1.k(this.i3_1+t|0)};i(Tr).x2=function(t){_n.l3(t,this.j3_1);var e=this.h3_1.x2(this.i3_1+t|0);return this.j3_1=this.j3_1-1|0,e};i(Tr).p2=function(t,e){return _n.l3(t,this.j3_1),this.h3_1.p2(this.i3_1+t|0,e)};i(Tr).m3=function(t,e){this.h3_1.m3(this.i3_1+t|0,this.i3_1+e|0),this.j3_1=this.j3_1-(e-t|0)|0};i(Tr).m=function(){return this.j3_1};i(Tr).r2=function(){return this.h3_1.r2()};function me(){Bn.call(this),this.w2_1=0}i(me).f=function(t){return this.r2(),this.k3(this.m(),t),!0};i(me).n3=function(){this.r2(),this.m3(0,this.m())};i(me).h=function(){return new bi(this)};i(me).j1=function(t){return this.l1(t)>=0};i(me).l1=function(t){var e;t:{for(var n=0,r=this.h();r.i();){var a=r.j();if(N(a,t)){e=n;break t}n=n+1|0}e=-1}return e};i(me).m1=function(t){var e;t:{for(var n=this.o1(this.m());n.d3();){var r=n.f3();if(N(r,t)){e=n.e3();break t}}e=-1}return e};i(me).n1=function(){return this.o1(0)};i(me).o1=function(t){return new Va(this,t)};i(me).p1=function(t,e){return new Tr(this,t,e)};i(me).m3=function(t,e){var n=this.o1(t),r=e-t|0,a=0;if(a<r)do a=a+1|0,n.j(),n.v2();while(a<r)};i(me).equals=function(t){return t===this?!0:t!=null&&et(t,Hn)?_n.o3(this,t):!1};i(me).hashCode=function(){return _n.p3(this)};function bo(){kn.call(this),this.s3_1=null,this.t3_1=null}function xr(){Bn.call(this)}i(xr).equals=function(t){return t===this?!0:t!=null&&et(t,Gr)?ku.y3(this,t):!1};i(xr).hashCode=function(){return ku.z3(this)};function oh(t){if(!(t>=0)){var e="capacity must be non-negative.";throw Rt(F(e))}return ir(Array(t),null)}function Nc(t,e,n){t.fill(null,e,n)}function Ic(t,e){return $_(t,e)}function sh(){Hs=this;var t=this,e=Vi(0);e.p_1=!0,t.a4_1=e}var Hs;function M_(){return Hs==null&&new sh,Hs}function R_(t){var e=[];return Vt.call(t,e),t}function It(){return R_(J(i(Vt)))}function L_(t,e){var n=[];if(Vt.call(e,n),!(t>=0)){var r="Negative initial capacity: "+t;throw Rt(F(r))}return e}function Vi(t){return L_(t,J(i(Vt)))}function O_(t,e){var n=bn(t);return Vt.call(e,n),e}function Qa(t){return O_(t,J(i(Vt)))}function j_(t,e){var n=t.m();return t.o_1.length=t.m()+e|0,n}function eu(t,e){return _n.l3(e,t.m()),e}function F_(t,e){return _n.c3(e,t.m()),e}function Vt(t){M_(),me.call(this),this.o_1=t,this.p_1=!1}i(Vt).m=function(){return this.o_1.length};i(Vt).k=function(t){var e=this.o_1[eu(this,t)];return e==null||e!=null?e:$()};i(Vt).p2=function(t,e){this.r2(),eu(this,t);var n=this.o_1[t];this.o_1[t]=e;var r=n;return r==null||r!=null?r:$()};i(Vt).f=function(t){return this.r2(),this.o_1.push(t),this.w2_1=this.w2_1+1|0,!0};i(Vt).k3=function(t,e){this.r2(),this.o_1.splice(F_(this,t),0,e),this.w2_1=this.w2_1+1|0};i(Vt).q=function(t){if(this.r2(),t.l())return!1;for(var e=j_(this,t.m()),n=0,r=t.h();r.i();){var a=r.j(),o=n;n=o+1|0;var s=Ao(o);this.o_1[e+s|0]=a}return this.w2_1=this.w2_1+1|0,!0};i(Vt).x2=function(t){this.r2(),eu(this,t),this.w2_1=this.w2_1+1|0;var e;return t===to(this)?e=this.o_1.pop():e=this.o_1.splice(t,1)[0],e};i(Vt).m3=function(t,e){this.r2(),this.w2_1=this.w2_1+1|0,this.o_1.splice(t,e-t|0)};i(Vt).n3=function(){this.r2();var t=this;t.o_1=[],this.w2_1=this.w2_1+1|0};i(Vt).l1=function(t){return _f(this.o_1,t)};i(Vt).m1=function(t){return op(this.o_1,t)};i(Vt).toString=function(){return jp(this.o_1)};i(Vt).b4=function(){return[].slice.call(this.o_1)};i(Vt).toArray=function(){return this.b4()};i(Vt).r2=function(){if(this.p_1)throw xi()};var ho;function lh(t,e){if(z_()){var n=B_(e);t.sort(n)}else D_(t,0,ap(t),e)}function z_(){var t=ho;if(t!=null)return t;ho=!1;var e=[],n=0;if(n<600)do{var r=n;n=n+1|0,e.push(r)}while(n<600);var a=K_;e.sort(a);var o=1,s=e.length;if(o<s)do{var l=o;o=o+1|0;var c=e[l-1|0],f=e[l];if((c&3)===(f&3)&&c>=f)return!1}while(o<s);return ho=!0,!0}function D_(t,e,n,r){var a=t.length,o=ir(Array(a),null),s=Vs(t,o,e,n,r);if(s!==t){var l=e;if(l<=n)do{var c=l;l=l+1|0,t[c]=s[c]}while(c!==n)}}function Vs(t,e,n,r,a){if(n===r)return t;var o=(n+r|0)/2|0,s=Vs(t,e,n,o,a),l=Vs(t,e,o+1|0,r,a),c=s===e?t:e,f=n,h=o+1|0,d=n;if(d<=r)do{var v=d;if(d=d+1|0,f<=o&&h<=r){var y=s[f],_=l[h];a.compare(y,_)<=0?(c[v]=y,f=f+1|0):(c[v]=_,h=h+1|0)}else f<=o?(c[v]=s[f],f=f+1|0):(c[v]=l[h],h=h+1|0)}while(v!==r);return c}function B_(t){return function(e,n){return t.compare(e,n)}}function K_(t,e){return(t&3)-(e&3)|0}function uh(t,e){return bo.call(e),Kn.call(e),e.g4_1=t,e}function ch(t){return uh(iu(),t),t}function U_(){return ch(J(i(Kn)))}function W_(t,e,n){return uh(ph(t,e),n),n}function H_(t,e){return W_(t,1,e),e}i(Kn).s1=function(t){return this.g4_1.i4(t)};i(Kn).u1=function(){var t=this.h4_1,e;if(t==null){var n=new nu(this.g4_1);this.h4_1=n,e=n}else e=t;return e};i(Kn).t1=function(t){return this.g4_1.t1(t)};i(Kn).u3=function(t,e){return this.g4_1.u3(t,e)};i(Kn).m=function(){return this.g4_1.m()};function Kn(){this.h4_1=null}function nu(t){Cn.call(this,t)}i(nu).h=function(){return this.k4_1.l4()};function Cn(t){xr.call(this),this.k4_1=t}i(Cn).m=function(){return this.k4_1.m()};i(Cn).l=function(){return this.k4_1.m()===0};i(Cn).m4=function(t){return this.k4_1.o4(t)};i(Cn).j1=function(t){return t!=null&&et(t,br)?this.m4(t!=null&&et(t,br)?t:$()):!1};i(Cn).n4=function(t){throw xi()};i(Cn).f=function(t){return this.n4(t!=null&&et(t,br)?t:$())};i(Cn).q=function(t){throw xi()};i(Cn).k1=function(t){return this.k4_1.p4(t)};i(Cn).r2=function(){return this.k4_1.q4()};function ru(t,e){return xr.call(e),Tn.call(e),e.r4_1=t,e}function fh(t){return ru(iu(),t),t}function V_(){return fh(J(i(Tn)))}function Q_(t,e){ru(X_(t.m()),e);for(var n=t.h();n.i();){var r=n.j();e.r4_1.u3(r,!0)}return e}function hh(t,e,n){return ru(ph(t,e),n),n}function G_(t,e){return hh(t,1,e),e}function J_(t){return G_(t,J(i(Tn)))}i(Tn).f=function(t){return this.r4_1.u3(t,!0)==null};i(Tn).j1=function(t){return this.r4_1.i4(t)};i(Tn).l=function(){return this.r4_1.m()===0};i(Tn).h=function(){return this.r4_1.s4()};i(Tn).m=function(){return this.r4_1.m()};function Tn(){}function dh(t,e){return A_(mt(yo(e,1),3))}function vh(t,e){return df(e)+1|0}function Y_(t){return au(8,t),t}function iu(){return Y_(J(i(Ce)))}function au(t,e){return Ce.call(e,oh(t),null,new Int32Array(t),new Int32Array(dh(Ga,t)),2,0),e}function X_(t){return au(t,J(i(Ce)))}function Z_(t,e,n){return au(t,n),n}function ph(t,e){return Z_(t,e,J(i(Ce)))}function Qi(t){return t.t4_1.length}function zn(t){return t.w4_1.length}function _h(t){t.a5_1=t.a5_1+1|0}function t0(t,e){e0(t,e)?su(t,zn(t)):n0(t,t.y4_1+e|0)}function e0(t,e){var n=Qi(t)-t.y4_1|0,r=t.y4_1-t.m()|0;return n<e&&(r+n|0)>=e&&r>=(Qi(t)/4|0)}function n0(t,e){if(e<0)throw qh("too many elements");if(e>Qi(t)){var n=_n.d5(Qi(t),e);t.t4_1=Ic(t.t4_1,n);var r=t,a=t.u4_1;r.u4_1=a==null?null:Ic(a,n),t.v4_1=S_(t.v4_1,n);var o=dh(Ga,n);o>zn(t)&&su(t,o)}}function r0(t){var e=t.u4_1;if(e!=null)return e;var n=oh(Qi(t));return t.u4_1=n,n}function ou(t,e){return e==null?0:mt(st(e),-1640531527)>>>t.z4_1|0}function i0(t){for(var e=0,n=0,r=t.u4_1;e<t.y4_1;)t.v4_1[e]>=0&&(t.t4_1[n]=t.t4_1[e],r!=null&&(r[n]=r[e]),n=n+1|0),e=e+1|0;Nc(t.t4_1,n,t.y4_1),r==null||Nc(r,n,t.y4_1),t.y4_1=n}function su(t,e){_h(t),t.y4_1>t.b5_1&&i0(t),e!==zn(t)?(t.w4_1=new Int32Array(e),t.z4_1=vh(Ga,e)):C_(t.w4_1,0,0,zn(t));for(var n=0;n<t.y4_1;){var r=n;if(n=r+1|0,!a0(t,r))throw Hr("This cannot happen with fixed magic multiplier and grow-only hash array. Have object hashCodes changed?")}}function a0(t,e){for(var n=ou(t,t.t4_1[e]),r=t.x4_1;;){var a=t.w4_1[n];if(a===0)return t.w4_1[n]=e+1|0,t.v4_1[e]=n,!0;if(r=r-1|0,r<0)return!1;var o=n;n=o-1|0,o===0&&(n=zn(t)-1|0)}}function lu(t,e){for(var n=ou(t,e),r=t.x4_1;;){var a=t.w4_1[n];if(a===0)return-1;if(a>0&&N(t.t4_1[a-1|0],e))return a-1|0;if(r=r-1|0,r<0)return-1;var o=n;n=o-1|0,o===0&&(n=zn(t)-1|0)}}function o0(t,e){t.q4();t:for(;;)for(var n=ou(t,e),r=xa(mt(t.x4_1,2),zn(t)/2|0),a=0;;){var o=t.w4_1[n];if(o<=0){if(t.y4_1>=Qi(t)){t0(t,1);continue t}var s=t.y4_1;t.y4_1=s+1|0;var l=s;return t.t4_1[l]=e,t.v4_1[l]=n,t.w4_1[n]=l+1|0,t.b5_1=t.b5_1+1|0,_h(t),a>t.x4_1&&(t.x4_1=a),l}if(N(t.t4_1[o-1|0],e))return-o|0;if(a=a+1|0,a>r){su(t,mt(zn(t),2));continue t}var c=n;n=c-1|0,c===0&&(n=zn(t)-1|0)}}function s0(t,e){return t.b5_1===e.m()&&t.p4(e.u1())}function mh(){this.e5_1=-1640531527,this.f5_1=8,this.g5_1=2,this.h5_1=-1}var Ga;function Jr(t){this.i5_1=t,this.j5_1=0,this.k5_1=-1,this.l5_1=this.i5_1.a5_1,this.m5()}i(Jr).m5=function(){for(;this.j5_1<this.i5_1.y4_1&&this.i5_1.v4_1[this.j5_1]<0;)this.j5_1=this.j5_1+1|0};i(Jr).i=function(){return this.j5_1<this.i5_1.y4_1};i(Jr).n5=function(){if(this.i5_1.a5_1!==this.l5_1)throw du()};function uu(t){Jr.call(this,t)}i(uu).j=function(){if(this.n5(),this.j5_1>=this.i5_1.y4_1)throw xe();var t=this,e=this.j5_1;this.j5_1=e+1|0,t.k5_1=e;var n=this.i5_1.t4_1[this.k5_1];return this.m5(),n};function Ja(t){Jr.call(this,t)}i(Ja).j=function(){if(this.n5(),this.j5_1>=this.i5_1.y4_1)throw xe();var t=this,e=this.j5_1;this.j5_1=e+1|0,t.k5_1=e;var n=new ki(this.i5_1,this.k5_1);return this.m5(),n};i(Ja).w5=function(){if(this.j5_1>=this.i5_1.y4_1)throw xe();var t=this,e=this.j5_1;this.j5_1=e+1|0,t.k5_1=e;var n=this.i5_1.t4_1[this.k5_1],r=n==null?null:st(n),a=r==null?0:r,o=Te(this.i5_1.u4_1)[this.k5_1],s=o==null?null:st(o),l=a^(s==null?0:s);return this.m5(),l};i(Ja).x5=function(t){if(this.j5_1>=this.i5_1.y4_1)throw xe();var e=this,n=this.j5_1;this.j5_1=n+1|0,e.k5_1=n;var r=this.i5_1.t4_1[this.k5_1];N(r,this.i5_1)?t.a6("(this Map)"):t.z5(r),t.b6(61);var a=Te(this.i5_1.u4_1)[this.k5_1];N(a,this.i5_1)?t.a6("(this Map)"):t.z5(a),this.m5()};function ki(t,e){this.c6_1=t,this.d6_1=e}i(ki).q1=function(){return this.c6_1.t4_1[this.d6_1]};i(ki).r1=function(){return Te(this.c6_1.u4_1)[this.d6_1]};i(ki).equals=function(t){var e,n;return t!=null&&et(t,br)?n=N(t.q1(),this.q1()):n=!1,n?e=N(t.r1(),this.r1()):e=!1,e};i(ki).hashCode=function(){var t=this.q1(),e=t==null?null:st(t),n=e==null?0:e,r=this.r1(),a=r==null?null:st(r);return n^(a==null?0:a)};i(ki).toString=function(){return Wt(this.q1())+"="+Wt(this.r1())};function Ce(t,e,n,r,a,o){this.t4_1=t,this.u4_1=e,this.v4_1=n,this.w4_1=r,this.x4_1=a,this.y4_1=o,this.z4_1=vh(Ga,zn(this)),this.a5_1=0,this.b5_1=0,this.c5_1=!1}i(Ce).m=function(){return this.b5_1};i(Ce).t1=function(t){var e=lu(this,t);return e<0?null:Te(this.u4_1)[e]};i(Ce).i4=function(t){return lu(this,t)>=0};i(Ce).u3=function(t,e){var n=o0(this,t),r=r0(this);if(n<0){var a=r[(-n|0)-1|0];return r[(-n|0)-1|0]=e,a}else return r[n]=e,null};i(Ce).equals=function(t){var e;if(t===this)e=!0;else{var n;t!=null&&et(t,kr)?n=s0(this,t):n=!1,e=n}return e};i(Ce).hashCode=function(){for(var t=0,e=this.l4();e.i();)t=t+e.w5()|0;return t};i(Ce).toString=function(){var t=Fh(2+mt(this.b5_1,3)|0);t.a6("{");for(var e=0,n=this.l4();n.i();)e>0&&t.a6(", "),n.x5(t),e=e+1|0;return t.a6("}"),t.toString()};i(Ce).q4=function(){if(this.c5_1)throw xi()};i(Ce).o4=function(t){var e=lu(this,t.q1());return e<0?!1:N(Te(this.u4_1)[e],t.r1())};i(Ce).e6=function(t){return this.o4(et(t,br)?t:$())};i(Ce).s4=function(){return new uu(this)};i(Ce).l4=function(){return new Ja(this)};function gh(){}function l0(t){return ch(t),Ya.call(t),t}function yh(){return l0(J(i(Ya)))}function u0(t,e){return H_(t,e),Ya.call(e),e}function c0(t){return u0(t,J(i(Ya)))}function Ya(){}function f0(t){return fh(t),Yr.call(t),t}function cu(){return f0(J(i(Yr)))}function h0(t,e){return Q_(t,e),Yr.call(e),e}function d0(t){return h0(t,J(i(Yr)))}function v0(t,e,n){return hh(t,e,n),Yr.call(n),n}function p0(t,e){return v0(t,1,e),e}function _0(t){return p0(t,J(i(Yr)))}i(Yr).r2=function(){return this.r4_1.q4()};function Yr(){}function Pe(t){qa.call(this),this.h6_1=t,this.i6_1=0,this.j6_1=0,this.k6_1=null,this.l6_1=null,this.m6_1=null;var e=this,n=this.h6_1;e.n6_1=n==null?null:n.o6()}i(Pe).o6=function(){return Te(this.n6_1)};i(Pe).p6=function(t){var e=this,n;if(Hm(t))n=null;else{var r=t;n=r==null||r!=null?r:$()}for(var a=n,o=Vm(t);;){var s=e;o==null?s.k6_1=a:(s.i6_1=s.j6_1,s.l6_1=o);try{var l=s.q6();if(l===Nr())return ut;a=l,o=null}catch(_){var c=_;a=null,o=c}s.s6();var f=Te(s.h6_1);if(f instanceof Pe)e=f;else{if(o!=null){var h=Te(o),d=Gm(h);f.t6(d)}else{var v=a,y=v;f.t6(y)}return ut}}};i(Pe).t6=function(t){return this.p6(t)};function ta(){}i(ta).o6=function(){var t="This continuation is already complete";throw Hr(F(t))};i(ta).p6=function(t){var e="This continuation is already complete";throw Hr(F(e))};i(ta).t6=function(t){return this.p6(t)};i(ta).toString=function(){return"This continuation is already complete"};var wh;function qa(){this.r6_1=null}i(qa).s6=function(){var t=this.r6_1;t!=null&&t!==this&&Te(this.o6().u6(ed)).v6(t),this.r6_1=wh};function m0(t,e,n){return new fu(n,t,e,n)}function fu(t,e,n,r){this.e7_1=e,this.f7_1=n,this.g7_1=r,Pe.call(this,et(t,ua)?t:$())}i(fu).q6=function(){if(this.l6_1!=null)throw this.l6_1;var t=this.e7_1;return typeof t=="function"?t(this.f7_1,this.g7_1):this.e7_1.h7(this.f7_1,this.g7_1)};function bh(t){return No(t),xn.call(t),t}function kh(){var t=bh(J(i(xn)));return B(t,kh),t}function To(t,e){return No(e,t),xn.call(e),e}function Ch(t){var e=To(t,J(i(xn)));return B(e,Ch),e}function xn(){B(this,xn)}function xh(t){return Pn(t),Ci.call(t),t}function Sh(){var t=xh(J(i(Ci)));return B(t,Sh),t}function $h(t,e){return Si(t,e),Ci.call(e),e}function Rt(t){var e=$h(t,J(i(Ci)));return B(e,Rt),e}function Ci(){B(this,Ci)}function g0(t){return Pn(t),ea.call(t),t}function hu(){var t=g0(J(i(ea)));return B(t,hu),t}function y0(t,e){return Si(t,e),ea.call(e),e}function Un(t){var e=y0(t,J(i(ea)));return B(e,Un),e}function ea(){B(this,ea)}function w0(t){return Pn(t),na.call(t),t}function Eh(){var t=w0(J(i(na)));return B(t,Eh),t}function b0(t,e){return Si(t,e),na.call(e),e}function Hr(t){var e=b0(t,J(i(na)));return B(e,Hr),e}function na(){B(this,na)}function k0(t){return Pn(t),ra.call(t),t}function xi(){var t=k0(J(i(ra)));return B(t,xi),t}function C0(t,e){return Si(t,e),ra.call(e),e}function Nh(t){var e=C0(t,J(i(ra)));return B(e,Nh),e}function ra(){B(this,ra)}function Pn(t){return bh(t),Ke.call(t),t}function Ih(){var t=Pn(J(i(Ke)));return B(t,Ih),t}function Si(t,e){return To(t,e),Ke.call(e),e}function qh(t){var e=Si(t,J(i(Ke)));return B(e,qh),e}function Ke(){B(this,Ke)}function x0(t){return Pn(t),ia.call(t),t}function xe(){var t=x0(J(i(ia)));return B(t,xe),t}function S0(t,e){return Si(t,e),ia.call(e),e}function Xa(t){var e=S0(t,J(i(ia)));return B(e,Xa),e}function ia(){B(this,ia)}function $0(t){return No(t),aa.call(t),t}function Ah(){var t=$0(J(i(aa)));return B(t,Ah),t}function E0(t,e){return No(e,t),aa.call(e),e}function aa(){B(this,aa)}function N0(t){return xh(t),$i.call(t),t}function Th(){var t=N0(J(i($i)));return B(t,Th),t}function I0(t,e){return $h(t,e),$i.call(e),e}function Ph(t){var e=I0(t,J(i($i)));return B(e,Ph),e}function $i(){B(this,$i)}function q0(t){return Pn(t),oa.call(t),t}function Mh(){var t=q0(J(i(oa)));return B(t,Mh),t}function A0(t,e){return Si(t,e),oa.call(e),e}function Rh(t){var e=A0(t,J(i(oa)));return B(e,Rh),e}function oa(){B(this,oa)}function T0(t){return Pn(t),Po.call(t),t}function du(){var t=T0(J(i(Po)));return B(t,du),t}function Po(){B(this,Po)}function P0(t){return Pn(t),Mo.call(t),t}function vu(){var t=P0(J(i(Mo)));return B(t,vu),t}function Mo(){B(this,Mo)}function M0(t){return Pn(t),Ro.call(t),t}function pu(){var t=M0(J(i(Ro)));return B(t,pu),t}function Ro(){B(this,Ro)}function R0(t){return Pn(t),Lo.call(t),t}function _u(){var t=R0(J(i(Lo)));return B(t,_u),t}function Lo(){B(this,Lo)}function Aa(t){return new oo(t)}function L0(t,e){for(var n=t.length,r=e.length,a=0,o=e;a<n&&a<r;){var s=a,l=a;a=l+1|0,o[s]=t[l]}return e}function O0(t,e,n){var r=t.slice(0,e);t.$type$!==void 0&&(r.$type$=t.$type$);var a=t.length;if(e>a)for(r.length=e;a<e;){var o=a;a=o+1|0,r[o]=n}return r}function Ta(){}function pn(t){this.l7_1=t}i(pn).m7=function(){return this.l7_1};i(pn).equals=function(t){var e;return t instanceof Ei||t instanceof Gi?e=!1:t instanceof pn?e=N(this.m7(),t.m7()):e=!1,e};i(pn).hashCode=function(){var t=this.k7(),e=t==null?null:Ge(t);return e==null?0:e};i(pn).toString=function(){return"class "+this.k7()};function Ei(){Qs=this,pn.call(this,Object),this.o7_1="Nothing"}i(Ei).k7=function(){return this.o7_1};i(Ei).m7=function(){throw Nh("There's no native JS class for Nothing type")};i(Ei).equals=function(t){return t===this};i(Ei).hashCode=function(){return 0};var Qs;function Lh(){return Qs==null&&new Ei,Qs}function Gi(){}i(Gi).equals=function(t){return t===this};i(Gi).hashCode=function(){return 0};function Mt(t,e,n){pn.call(this,t),this.q7_1=e,this.r7_1=n}i(Mt).equals=function(t){return t instanceof Mt?i(pn).equals.call(this,t)&&this.q7_1===t.q7_1:!1};i(Mt).k7=function(){return this.q7_1};function ko(t){pn.call(this,t);var e=this,n=t.$metadata$;e.t7_1=n==null?null:n.simpleName}i(ko).k7=function(){return this.t7_1};function Oo(){}function mu(){}function qc(){return im(),Oh}var Oh;function j0(t){return t!=null}function F0(t){return Vf(t)}function z0(t){return t!=null?typeof t=="boolean":!1}function D0(t){return t!=null?typeof t=="number":!1}function B0(t){return t!=null?typeof t=="number":!1}function K0(t){return t!=null?typeof t=="number":!1}function U0(t){return t!=null?typeof t=="number":!1}function W0(t){return t!=null?typeof t=="number":!1}function H0(t){return t!=null?Zi(t):!1}function V0(t){return t!=null?typeof t=="string":!1}function Q0(t){return t instanceof Error}function G0(t){return t!=null?Qf(t):!1}function J0(t){return t!=null?Yf(t):!1}function Y0(t){return t!=null?Gf(t):!1}function X0(t){return t!=null?Jf(t):!1}function Z0(t){return t!=null?Xf(t):!1}function tm(t){return t!=null?th(t):!1}function em(t){return t!=null?Zf(t):!1}function nm(t){return t!=null?eh(t):!1}function rm(t){return function(e){var n;return typeof e=="function"?n=e.length===t:n=!1,n}}function Qt(){Gs=this;var t=this,e=Object;t.anyClass=new Mt(e,"Any",j0);var n=this,r=Number;n.numberClass=new Mt(r,"Number",F0),this.nothingClass=Lh();var a=this,o=Boolean;a.booleanClass=new Mt(o,"Boolean",z0);var s=this,l=Number;s.byteClass=new Mt(l,"Byte",D0);var c=this,f=Number;c.shortClass=new Mt(f,"Short",B0);var h=this,d=Number;h.intClass=new Mt(d,"Int",K0);var v=this,y=Number;v.floatClass=new Mt(y,"Float",U0);var _=this,m=Number;_.doubleClass=new Mt(m,"Double",W0);var g=this,p=Array;g.arrayClass=new Mt(p,"Array",H0);var C=this,k=String;C.stringClass=new Mt(k,"String",V0);var S=this,I=Error;S.throwableClass=new Mt(I,"Throwable",Q0);var O=this,Q=Array;O.booleanArrayClass=new Mt(Q,"BooleanArray",G0);var W=this,lt=Uint16Array;W.charArrayClass=new Mt(lt,"CharArray",J0);var dt=this,le=Int8Array;dt.byteArrayClass=new Mt(le,"ByteArray",Y0);var Ot=this,ve=Int16Array;Ot.shortArrayClass=new Mt(ve,"ShortArray",X0);var gt=this,Zt=Int32Array;gt.intArrayClass=new Mt(Zt,"IntArray",Z0);var te=this,Ue=Array;te.longArrayClass=new Mt(Ue,"LongArray",tm);var ue=this,We=Float32Array;ue.floatArrayClass=new Mt(We,"FloatArray",em);var mn=this,Rn=Float64Array;mn.doubleArrayClass=new Mt(Rn,"DoubleArray",nm)}i(Qt).u7=function(){return this.anyClass};i(Qt).v7=function(){return this.numberClass};i(Qt).w7=function(){return this.nothingClass};i(Qt).x7=function(){return this.booleanClass};i(Qt).y7=function(){return this.byteClass};i(Qt).z7=function(){return this.shortClass};i(Qt).a8=function(){return this.intClass};i(Qt).b8=function(){return this.floatClass};i(Qt).c8=function(){return this.doubleClass};i(Qt).d8=function(){return this.arrayClass};i(Qt).e8=function(){return this.stringClass};i(Qt).f8=function(){return this.throwableClass};i(Qt).g8=function(){return this.booleanArrayClass};i(Qt).h8=function(){return this.charArrayClass};i(Qt).i8=function(){return this.byteArrayClass};i(Qt).j8=function(){return this.shortArrayClass};i(Qt).k8=function(){return this.intArrayClass};i(Qt).l8=function(){return this.longArrayClass};i(Qt).m8=function(){return this.floatArrayClass};i(Qt).n8=function(){return this.doubleArrayClass};i(Qt).functionClass=function(t){var e=qc()[t],n;if(e==null){var r=Function,a="Function"+t,o=new Mt(r,a,rm(t));qc()[t]=o,n=o}else n=e;return n};var Gs;function Ee(){return Gs==null&&new Qt,Gs}var Ac;function im(){Ac||(Ac=!0,Oh=ir(Array(0),null))}function am(t){var e;return Array.isArray(t)?e=om(t):e=gu(t),e}function om(t){var e;switch(t.length){case 1:e=gu(t[0]);break;case 0:e=Lh();break;default:e=new Gi;break}return e}function gu(t){if(t===String)return Ee().stringClass;var e=t.$metadata$,n;if(e!=null){var r;if(e.$kClass$==null){var a=new ko(t);e.$kClass$=a,r=a}else r=e.$kClass$;n=r}else n=new ko(t);return n}function Co(t){var e;switch(typeof t){case"string":e=Ee().stringClass;break;case"number":var n;(t|0)===t?n=Ee().intClass:n=Ee().doubleClass,e=n;break;case"boolean":e=Ee().booleanClass;break;case"function":var r=Ee();e=r.functionClass(t.length);break;default:var a;if(Qf(t))a=Ee().booleanArrayClass;else if(Yf(t))a=Ee().charArrayClass;else if(Gf(t))a=Ee().byteArrayClass;else if(Jf(t))a=Ee().shortArrayClass;else if(Xf(t))a=Ee().intArrayClass;else if(th(t))a=Ee().longArrayClass;else if(Zf(t))a=Ee().floatArrayClass;else if(eh(t))a=Ee().doubleArrayClass;else if(et(t,Ta))a=am(Ta);else if(Zi(t))a=Ee().arrayClass;else{var o=Object.getPrototypeOf(t).constructor,s;if(o===Object)s=Ee().anyClass;else if(o===Error)s=Ee().throwableClass;else{var l=o;s=gu(l)}a=s}e=a;break}return e}function jh(t){t.lastIndex=0}function sm(t,e){return zh(e),e}function Fh(t){return sm(t,J(i(Sn)))}function zh(t){return Sn.call(t,""),t}function yu(){return zh(J(i(Sn)))}function Sn(t){this.y5_1=t!==void 0?t:""}i(Sn).a=function(){return this.y5_1.length};i(Sn).b=function(t){var e=this.y5_1,n;if(0<=t&&t<=(A(e)-1|0))n=L(e,t);else throw Un("index: "+t+", length: "+this.a()+"}");return n};i(Sn).c=function(t,e){return this.y5_1.substring(t,e)};i(Sn).b6=function(t){return this.y5_1=this.y5_1+Kt(t),this};i(Sn).e=function(t){return this.y5_1=this.y5_1+Wt(t),this};i(Sn).z5=function(t){return this.y5_1=this.y5_1+Wt(t),this};i(Sn).a6=function(t){var e=this,n=this.y5_1;return e.y5_1=n+(t==null?"null":t),this};i(Sn).toString=function(){return this.y5_1};function Tc(t){var e=Kt(t).toUpperCase();return e.length>1?t:L(e,0)}function Dh(t){return I_(t)}function Pc(t,e){return t.toString(Bh(e))}function Bh(t){if(!(2<=t&&t<=36))throw Rt("radix "+t+" was not in valid range 2..36");return t}function lm(t){var e=ud(t),n;return e==null?cd(t):n=e,n}function Mc(t,e){var n=Tu(t,e),r;return n==null?cd(t):r=n,r}function um(t,e){var n=ee(t,48)>=0&&ee(t,57)<=0?pa(t,48):ee(t,65)>=0&&ee(t,90)<=0?pa(t,65)+10|0:ee(t,97)>=0&&ee(t,122)<=0?pa(t,97)+10|0:ee(t,128)<0?-1:ee(t,65313)>=0&&ee(t,65338)<=0?pa(t,65313)+10|0:ee(t,65345)>=0&&ee(t,65370)<=0?pa(t,65345)+10|0:E_(t);return n>=e?-1:n}function cm(t,e){return Za.call(e,t,qu()),e}function fm(t){return cm(t,J(i(Za)))}function Kh(){Js=this,this.o8_1=new RegExp("[\\\\^$*+?.()|[\\]{}]","g"),this.p8_1=new RegExp("[\\\\$]","g"),this.q8_1=new RegExp("\\$","g")}var Js;function hm(){return Js==null&&new Kh,Js}function Za(t,e){hm(),this.r8_1=t,this.s8_1=dp(e),this.t8_1=new RegExp(t,dm(e,"gu")),this.u8_1=null,this.v8_1=null}i(Za).w8=function(t){jh(this.t8_1);var e=this.t8_1.exec(F(t));return e!=null&&e.index===0&&this.t8_1.lastIndex===A(t)};i(Za).toString=function(){return this.t8_1.toString()};function dm(t,e){return In(t,"",e,u,u,u,vm)}function vm(t){return t.z8_1}function pm(t,e){return Wm(t,e)}function wu(t){this.a9_1=t}i(wu).b9=function(t,e){return this.a9_1(t,e)};i(wu).compare=function(t,e){return this.b9(t,e)};function bu(t,e,n){return n=n===u?!1:n,n?jo(t,0,e,0,e.length,n):t.startsWith(e,0)}function Uh(t,e,n){return n=n===u?!1:n,n?jo(t,t.length-e.length|0,e,0,e.length,n):t.endsWith(e)}function _m(t,e,n,r){return r=r===u?!1:r,r?jo(t,n,e,0,e.length,r):t.startsWith(e,n)}function jo(t,e,n,r,a,o){return o=o===u?!1:o,ao(t,e,n,r,a,o)}function mm(t){return function(e){return e===t?"(this Collection)":Wt(e)}}function Sr(){}i(Sr).j1=function(t){var e;t:{var n;if(et(this,$t)?n=this.l():n=!1,n){e=!1;break t}for(var r=this.h();r.i();){var a=r.j();if(N(a,t)){e=!0;break t}}e=!1}return e};i(Sr).k1=function(t){var e;t:{var n;if(et(t,$t)?n=t.l():n=!1,n){e=!0;break t}for(var r=t.h();r.i();){var a=r.j();if(!this.j1(a)){e=!1;break t}}e=!0}return e};i(Sr).l=function(){return this.m()===0};i(Sr).toString=function(){return In(this,", ","[","]",u,u,mm(this))};i(Sr).toArray=function(){return ih(this)};function Xr(){this.n2_1=2147483639}i(Xr).l3=function(t,e){if(t<0||t>=e)throw Un("index: "+t+", size: "+e)};i(Xr).c3=function(t,e){if(t<0||t>e)throw Un("index: "+t+", size: "+e)};i(Xr).o2=function(t,e,n){if(t<0||e>n)throw Un("fromIndex: "+t+", toIndex: "+e+", size: "+n);if(t>e)throw Rt("fromIndex: "+t+" > toIndex: "+e)};i(Xr).d5=function(t,e){var n=t+(t>>1)|0;return(n-e|0)<0&&(n=e),(n-2147483639|0)>0&&(n=e>2147483639?2147483647:2147483639),n};i(Xr).p3=function(t){for(var e=1,n=t.h();n.i();){var r=n.j(),a=mt(31,e),o=r==null?null:st(r);e=a+(o==null?0:o)|0}return e};i(Xr).o3=function(t,e){if(t.m()!==e.m())return!1;for(var n=e.h(),r=t.h();r.i();){var a=r.j(),o=n.j();if(!N(a,o))return!1}return!0};var _n;function Rc(t,e){return e===t?"(this Map)":Wt(e)}function Wh(t,e){var n;t:{for(var r=t.u1().h();r.i();){var a=r.j();if(N(a.q1(),e)){n=a;break t}}n=null}return n}function gm(){}function ym(t){return function(e){return t.c9(e)}}function kn(){this.v3_1=null,this.w3_1=null}i(kn).s1=function(t){return Wh(this,t)!=null};i(kn).x3=function(t){if(!(t!=null&&et(t,br)))return!1;var e=t.q1(),n=t.r1(),r=(et(this,kr)?this:$()).t1(e);if(!N(n,r))return!1;var a;return r==null?a=!(et(this,kr)?this:$()).s1(e):a=!1,!a};i(kn).equals=function(t){if(t===this)return!0;if(!(t!=null&&et(t,kr))||this.m()!==t.m())return!1;var e;t:{var n=t.u1(),r;if(et(n,$t)?r=n.l():r=!1,r){e=!0;break t}for(var a=n.h();a.i();){var o=a.j();if(!this.x3(o)){e=!1;break t}}e=!0}return e};i(kn).t1=function(t){var e=Wh(this,t);return e==null?null:e.r1()};i(kn).hashCode=function(){return st(this.u1())};i(kn).m=function(){return this.u1().m()};i(kn).toString=function(){var t=this.u1();return In(t,", ","{","}",u,u,ym(this))};i(kn).c9=function(t){return Rc(this,t.q1())+"="+Rc(this,t.r1())};function Fo(){}i(Fo).z3=function(t){for(var e=0,n=t.h();n.i();){var r=n.j(),a=e,o=r==null?null:st(r);e=a+(o==null?0:o)|0}return e};i(Fo).y3=function(t,e){return t.m()!==e.m()?!1:t.k1(e)};var ku;function wm(t){if(t.l())return[];for(var e=t.m(),n=ir(Array(e),null),r=t.h(),a=0;r.i();){var o=a;a=o+1|0,n[o]=r.j()}return n}function Cu(t){return t.length>0?Zl(t):sa()}function Hh(t){return t.length===0?It():Qa(new Vn(t,!0))}function sa(){return xm()}function to(t){return t.m()-1|0}function bm(t,e,n,r){n=n===u?0:n,r=r===u?t.m():r,Sm(t.m(),n,r);for(var a=n,o=r-1|0;a<=o;){var s=(a+o|0)>>>1|0,l=t.k(s),c=Yo(l,e);if(c<0)a=s+1|0;else if(c>0)o=s-1|0;else return s}return-(a+1|0)|0}function km(t){return t.length===0?It():Qa(new Vn(t,!0))}function Cm(t){switch(t.m()){case 0:return sa();case 1:return Ha(t.k(0));default:return t}}function Vn(t,e){this.d9_1=t,this.e9_1=e}i(Vn).m=function(){return this.d9_1.length};i(Vn).l=function(){return this.d9_1.length===0};i(Vn).f9=function(t){return Ls(this.d9_1,t)};i(Vn).g9=function(t){var e;t:{var n;if(et(t,$t)?n=t.l():n=!1,n){e=!0;break t}for(var r=t.h();r.i();){var a=r.j();if(!this.f9(a)){e=!1;break t}}e=!0}return e};i(Vn).k1=function(t){return this.g9(t)};i(Vn).h=function(){return Ef(this.d9_1)};function se(){Ys=this,this.h9_1=new ht(-1478467534,-1720727600)}i(se).equals=function(t){var e;return t!=null&&et(t,Hn)?e=t.l():e=!1,e};i(se).hashCode=function(){return 1};i(se).toString=function(){return"[]"};i(se).m=function(){return 0};i(se).l=function(){return!0};i(se).i9=function(t){return!1};i(se).j1=function(t){return!1};i(se).j9=function(t){return t.l()};i(se).k1=function(t){return this.j9(t)};i(se).k=function(t){throw Un("Empty list doesn't contain element at index "+t+".")};i(se).k9=function(t){return-1};i(se).l1=function(t){return-1};i(se).l9=function(t){return-1};i(se).m1=function(t){return-1};i(se).h=function(){return la};i(se).n1=function(){return la};i(se).o1=function(t){if(t!==0)throw Un("Index: "+t);return la};i(se).p1=function(t,e){if(t===0&&e===0)return this;throw Un("fromIndex: "+t+", toIndex: "+e)};var Ys;function xm(){return Ys==null&&new se,Ys}function Sm(t,e,n){if(e>n)throw Rt("fromIndex ("+e+") is greater than toIndex ("+n+").");if(e<0)throw Un("fromIndex ("+e+") is less than zero.");if(n>t)throw Un("toIndex ("+n+") is greater than size ("+t+").")}function Ni(){}i(Ni).i=function(){return!1};i(Ni).d3=function(){return!1};i(Ni).e3=function(){return 0};i(Ni).j=function(){throw xe()};i(Ni).f3=function(){throw xe()};var la;function $m(t){return new Vn(t,!1)}function Em(){throw Rh("Index overflow has happened.")}function si(t,e){this.v_1=t,this.w_1=e}i(si).toString=function(){return"IndexedValue(index="+this.v_1+", value="+Wt(this.w_1)+")"};i(si).hashCode=function(){var t=this.v_1;return t=mt(t,31)+(this.w_1==null?0:st(this.w_1))|0,t};i(si).equals=function(t){if(this===t)return!0;if(!(t instanceof si))return!1;var e=t instanceof si?t:$();return!(this.v_1!==e.v_1||!N(this.w_1,e.w_1))};function Xs(t,e){var n;return et(t,$t)?n=t.m():n=e,n}function Nm(t,e){return t.q(Zl(e))}function zo(t,e){if(et(e,$t))return t.q(e);for(var n=!1,r=e.h();r.i();){var a=r.j();t.f(a)&&(n=!0)}return n}function Do(){}i(Do).j=function(){return this.m9()};function eo(){}i(eo).n9=function(){return this.o9()};i(eo).j=function(){return new rt(this.n9())};function no(t){return new xu(t)}function $r(){}function Im(t){var e=new Er;return e.t9_1=m0(t,e,e),e}function qm(t){if(t.i())return t.j();throw xe()}function Vh(t){switch(t.q9_1){case 4:return xe();case 5:return Hr("Iterator has failed.");default:return Hr("Unexpected state of the iterator: "+t.q9_1)}}function Er(){$r.call(this),this.q9_1=0,this.r9_1=null,this.s9_1=null,this.t9_1=null}i(Er).i=function(){for(;;){switch(this.q9_1){case 0:break;case 1:if(Te(this.s9_1).i())return this.q9_1=2,!0;this.s9_1=null;break;case 4:return!1;case 3:case 2:return!0;default:throw Vh(this)}this.q9_1=5;var t=Te(this.t9_1);this.t9_1=null;var e=ut;t.t6(e)}};i(Er).j=function(){switch(this.q9_1){case 0:case 1:return qm(this);case 2:return this.q9_1=1,Te(this.s9_1).j();case 3:this.q9_1=0;var t=this.r9_1,e=t==null||t!=null?t:$();return this.r9_1=null,e;default:throw Vh(this)}};i(Er).p9=function(t,e){return this.r9_1=t,this.q9_1=3,this.t9_1=e,Nr()};i(Er).u9=function(t){Jm(t);var e=t;e==null||e!=null||$(),this.q9_1=4};i(Er).t6=function(t){return this.u9(t)};i(Er).o6=function(){return Rm()};function xu(t){this.v9_1=t}i(xu).h=function(){return Im(this.v9_1)};function Ii(){return Go}function Bo(t){this.x9_1=t,this.w9_1=t.y9_1.h()}i(Bo).j=function(){return this.x9_1.z9_1(this.w9_1.j())};i(Bo).i=function(){return this.w9_1.i()};function Su(t,e){this.y9_1=t,this.z9_1=e}i(Su).h=function(){return new Bo(this)};function Qh(t){for(;t.aa_1.i();){var e=t.aa_1.j();if(t.da_1.ga_1(e)===t.da_1.fa_1)return t.ca_1=e,t.ba_1=1,ut}t.ba_1=0}function Ko(t){this.da_1=t,this.aa_1=t.ea_1.h(),this.ba_1=-1,this.ca_1=null}i(Ko).j=function(){if(this.ba_1===-1&&Qh(this),this.ba_1===0)throw xe();var t=this.ca_1;return this.ca_1=null,this.ba_1=-1,t==null||t!=null?t:$()};i(Ko).i=function(){return this.ba_1===-1&&Qh(this),this.ba_1===1};function $u(t,e,n){e=e===u?!0:e,this.ea_1=t,this.fa_1=e,this.ga_1=n}i($u).h=function(){return new Ko(this)};function Uo(t){this.ha_1=t.ja_1.h(),this.ia_1=0}i(Uo).j=function(){var t=this.ia_1;return this.ia_1=t+1|0,new si(Ao(t),this.ha_1.j())};i(Uo).i=function(){return this.ha_1.i()};function Eu(t){this.ja_1=t}i(Eu).h=function(){return new Uo(this)};function qi(){}function Wo(t){this.ka_1=t.na_1,this.la_1=t.ma_1.h()}i(Wo).j=function(){if(this.ka_1===0)throw xe();return this.ka_1=this.ka_1-1|0,this.la_1.j()};i(Wo).i=function(){return this.ka_1>0&&this.la_1.i()};function vi(t,e){if(this.ma_1=t,this.na_1=e,!(this.na_1>=0)){var n="count must be non-negative, but was "+this.na_1+".";throw Rt(F(n))}}i(vi).u=function(t){return t>=this.na_1?Ii():new Vr(this.ma_1,t,this.na_1)};i(vi).t=function(t){return t>=this.na_1?this:new vi(this.ma_1,t)};i(vi).h=function(){return new Wo(this)};function Gh(t){if(t.oa_1.i()){var e=t.oa_1.j();if(t.ra_1.ta_1(e))return t.pa_1=1,t.qa_1=e,ut}t.pa_1=0}function Ho(t){this.ra_1=t,this.oa_1=t.sa_1.h(),this.pa_1=-1,this.qa_1=null}i(Ho).j=function(){if(this.pa_1===-1&&Gh(this),this.pa_1===0)throw xe();var t=this.qa_1,e=t==null||t!=null?t:$();return this.qa_1=null,this.pa_1=-1,e};i(Ho).i=function(){return this.pa_1===-1&&Gh(this),this.pa_1===1};function Nu(t,e){this.sa_1=t,this.ta_1=e}i(Nu).h=function(){return new Ho(this)};function Jh(t){for(;t.va_1>0&&t.ua_1.i();)t.ua_1.j(),t.va_1=t.va_1-1|0}function Vo(t){this.ua_1=t.wa_1.h(),this.va_1=t.xa_1}i(Vo).j=function(){return Jh(this),this.ua_1.j()};i(Vo).i=function(){return Jh(this),this.ua_1.i()};function li(t,e){if(this.wa_1=t,this.xa_1=e,!(this.xa_1>=0)){var n="count must be non-negative, but was "+this.xa_1+".";throw Rt(F(n))}}i(li).u=function(t){var e=this.xa_1+t|0;return e<0?new li(this,t):new li(this.wa_1,e)};i(li).t=function(t){var e=this.xa_1+t|0;return e<0?new vi(this,t):new Vr(this.wa_1,this.xa_1,e)};i(li).h=function(){return new Vo(this)};function Yh(t){for(;t.ya_1.i();){var e=t.ya_1.j();if(!t.bb_1.db_1(e))return t.ab_1=e,t.za_1=1,ut}t.za_1=0}function Qo(t){this.bb_1=t,this.ya_1=t.cb_1.h(),this.za_1=-1,this.ab_1=null}i(Qo).j=function(){if(this.za_1===-1&&Yh(this),this.za_1===1){var t=this.ab_1,e=t==null||t!=null?t:$();return this.ab_1=null,this.za_1=0,e}return this.ya_1.j()};i(Qo).i=function(){return this.za_1===-1&&Yh(this),this.za_1===1||this.ya_1.i()};function Iu(t,e){this.cb_1=t,this.db_1=e}i(Iu).h=function(){return new Qo(this)};function ro(){}i(ro).h=function(){return la};i(ro).u=function(t){return Go};i(ro).t=function(t){return Go};var Go;function Xh(t){for(;t.fb_1<t.gb_1.ib_1&&t.eb_1.i();)t.eb_1.j(),t.fb_1=t.fb_1+1|0}function Zh(t){return t.jb_1-t.ib_1|0}function Jo(t){this.gb_1=t,this.eb_1=t.hb_1.h(),this.fb_1=0}i(Jo).i=function(){return Xh(this),this.fb_1<this.gb_1.jb_1&&this.eb_1.i()};i(Jo).j=function(){if(Xh(this),this.fb_1>=this.gb_1.jb_1)throw xe();return this.fb_1=this.fb_1+1|0,this.eb_1.j()};function Vr(t,e,n){if(this.hb_1=t,this.ib_1=e,this.jb_1=n,!(this.ib_1>=0)){var r="startIndex should be non-negative, but is "+this.ib_1;throw Rt(F(r))}if(!(this.jb_1>=0)){var a="endIndex should be non-negative, but is "+this.jb_1;throw Rt(F(a))}if(!(this.jb_1>=this.ib_1)){var o="endIndex should be not less than startIndex, but was "+this.jb_1+" < "+this.ib_1;throw Rt(F(o))}}i(Vr).u=function(t){return t>=Zh(this)?Ii():new Vr(this.hb_1,this.ib_1+t|0,this.jb_1)};i(Vr).t=function(t){return t>=Zh(this)?this:new Vr(this.hb_1,this.ib_1,this.ib_1+t|0)};i(Vr).h=function(){return new Jo(this)};function qu(){return Pm()}function Am(t){return sp(t,J_(t.length))}function Tm(t){switch(t.m()){case 0:return qu();case 1:return ah(t.h().j());default:return t}}function Qn(){Zs=this,this.kb_1=new ht(1993859828,793161749)}i(Qn).equals=function(t){var e;return t!=null&&et(t,Gr)?e=t.l():e=!1,e};i(Qn).hashCode=function(){return 0};i(Qn).toString=function(){return"[]"};i(Qn).m=function(){return 0};i(Qn).l=function(){return!0};i(Qn).j9=function(t){return t.l()};i(Qn).k1=function(t){return this.j9(t)};i(Qn).h=function(){return la};var Zs;function Pm(){return Zs==null&&new Qn,Zs}function Yo(t,e){return t===e?0:t==null?-1:e==null?1:Rf(t!=null&&b_(t)?t:$(),e)}function ua(){}function td(){}var ed;function Mm(){}function io(){tl=this,this.lb_1=new ht(0,0)}i(io).u6=function(t){return null};i(io).hashCode=function(){return 0};i(io).toString=function(){return"EmptyCoroutineContext"};var tl;function Rm(){return tl==null&&new io,tl}function Nr(){return Om()}var nd,Lc;function Lm(){if(Lc)return ut;Lc=!0,nd=new vo("COROUTINE_SUSPENDED",0),new vo("UNDECIDED",1),new vo("RESUMED",2)}function vo(t,e){Cr.call(this,t,e)}function Om(){return Lm(),nd}function rd(t,e,n){var r;if(n>0)r=t>=e?e:e-Oc(e,t,n)|0;else if(n<0)r=t<=e?e:e+Oc(t,e,-n|0)|0;else throw Rt("Step is zero.");return r}function Oc(t,e,n){return Ns(Ns(t,n)-Ns(e,n)|0,n)}function Ns(t,e){var n=t%e|0;return n>=0?n:n+e|0}function id(){el=this,this.mb_1=new Qr(1,0)}var el;function jm(){return el==null&&new id,el}function Qr(t,e){jm(),Wn.call(this,t,e,1)}i(Qr).l=function(){return this.qb_1>this.rb_1};i(Qr).equals=function(t){var e;return t instanceof Qr?e=this.l()&&t.l()||this.qb_1===t.qb_1&&this.rb_1===t.rb_1:e=!1,e};i(Qr).hashCode=function(){return this.l()?-1:mt(31,this.qb_1)+this.rb_1|0};i(Qr).toString=function(){return""+this.qb_1+".."+this.rb_1};function ad(){nl=this,this.tb_1=new Ir(1,0)}var nl;function Fm(){return nl==null&&new ad,nl}function Ir(t,e){Fm(),qr.call(this,t,e,1)}i(Ir).xb=function(t){return ee(this.yb_1,t)<=0&&ee(t,this.zb_1)<=0};i(Ir).l=function(){return ee(this.yb_1,this.zb_1)>0};i(Ir).equals=function(t){var e;return t instanceof Ir?e=this.l()&&t.l()||this.yb_1===t.yb_1&&this.zb_1===t.zb_1:e=!1,e};i(Ir).hashCode=function(){var t;if(this.l())t=-1;else{var e=this.yb_1,n=je(e),r=mt(31,n),a=this.zb_1;t=r+je(a)|0}return t};i(Ir).toString=function(){return Kt(this.yb_1)+".."+Kt(this.zb_1)};function Xo(t,e,n){Do.call(this),this.bc_1=n,this.cc_1=e,this.dc_1=this.bc_1>0?t<=e:t>=e,this.ec_1=this.dc_1?t:this.cc_1}i(Xo).i=function(){return this.dc_1};i(Xo).m9=function(){var t=this.ec_1;if(t===this.cc_1){if(!this.dc_1)throw xe();this.dc_1=!1}else this.ec_1=this.ec_1+this.bc_1|0;return t};function Zo(t,e,n){eo.call(this),this.fc_1=n;var r=this;r.gc_1=je(e),this.hc_1=this.fc_1>0?ee(t,e)<=0:ee(t,e)>=0;var a=this,o;this.hc_1?o=je(t):o=this.gc_1,a.ic_1=o}i(Zo).i=function(){return this.hc_1};i(Zo).o9=function(){var t=this.ic_1;if(t===this.gc_1){if(!this.hc_1)throw xe();this.hc_1=!1}else this.ic_1=this.ic_1+this.fc_1|0;return Ia(t)};function Au(){}i(Au).s=function(t,e,n){return new Wn(t,e,n)};var od;function Wn(t,e,n){if(n===0)throw Rt("Step must be non-zero.");if(n===-2147483648)throw Rt("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.qb_1=t,this.rb_1=rd(t,e,n),this.sb_1=n}i(Wn).h=function(){return new Xo(this.qb_1,this.rb_1,this.sb_1)};i(Wn).l=function(){return this.sb_1>0?this.qb_1>this.rb_1:this.qb_1<this.rb_1};i(Wn).equals=function(t){var e;return t instanceof Wn?e=this.l()&&t.l()||this.qb_1===t.qb_1&&this.rb_1===t.rb_1&&this.sb_1===t.sb_1:e=!1,e};i(Wn).hashCode=function(){return this.l()?-1:mt(31,mt(31,this.qb_1)+this.rb_1|0)+this.sb_1|0};i(Wn).toString=function(){return this.sb_1>0?""+this.qb_1+".."+this.rb_1+" step "+this.sb_1:""+this.qb_1+" downTo "+this.rb_1+" step "+(-this.sb_1|0)};function zm(){}function qr(t,e,n){if(n===0)throw Rt("Step must be non-zero.");if(n===-2147483648)throw Rt("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.yb_1=t;var r=this,a=je(t),o=je(e);r.zb_1=Ia(rd(a,o,n)),this.ac_1=n}i(qr).h=function(){return new Zo(this.yb_1,this.zb_1,this.ac_1)};i(qr).l=function(){return this.ac_1>0?ee(this.yb_1,this.zb_1)>0:ee(this.yb_1,this.zb_1)<0};i(qr).equals=function(t){var e;return t instanceof qr?e=this.l()&&t.l()||this.yb_1===t.yb_1&&this.zb_1===t.zb_1&&this.ac_1===t.ac_1:e=!1,e};i(qr).hashCode=function(){var t;if(this.l())t=-1;else{var e=this.yb_1,n=je(e),r=mt(31,n),a=this.zb_1,o=je(a);t=mt(31,r+o|0)+this.ac_1|0}return t};i(qr).toString=function(){return this.ac_1>0?Kt(this.yb_1)+".."+Kt(this.zb_1)+" step "+this.ac_1:Kt(this.yb_1)+" downTo "+Kt(this.zb_1)+" step "+(-this.ac_1|0)};function sd(t,e,n){n!=null?t.e(n(e)):e==null||de(e)?t.e(e):e instanceof rt?t.b6(e.x_1):t.e(Wt(e))}function ld(t,e,n){if(n=n===u?!1:n,t===e)return!0;if(!n)return!1;var r=Tc(t),a=Tc(e),o;if(r===a)o=!0;else{var s=Kt(r).toLowerCase(),l=L(s,0),c=Kt(a).toLowerCase();o=l===L(c,0)}return o}function ud(t){return Tu(t,10)}function Tu(t,e){Bh(e);var n=t.length;if(n===0)return null;var r,a,o,s=L(t,0);if(ee(s,48)<0){if(n===1)return null;if(r=1,s===45)a=!0,o=-2147483648;else if(s===43)a=!1,o=-2147483647;else return null}else r=0,a=!1,o=-2147483647;var l=-59652323,c=l,f=0,h=r;if(h<n)do{var d=h;h=h+1|0;var v=um(L(t,d),e);if(v<0)return null;if(f<c)if(c===l){if(c=o/e|0,f<c)return null}else return null;if(f=mt(f,e),f<(o+v|0))return null;f=f-v|0}while(h<n);return a?f:-f|0}function cd(t){throw Ph("Invalid number format: '"+t+"'")}function Pu(t,e,n){n=n===u?!1:n;var r,a;return n?a=!1:a=typeof t=="string",a?r=typeof e=="string":r=!1,r?bu(t,e):ao(t,0,e,0,A(e),n)}function Mu(t,e,n){n=n===u?!1:n;var r;return typeof e=="string"?r=rl(t,e,u,n)>=0:r=fd(t,e,0,A(t),n)>=0,r}function ts(t,e,n){n=n===u?!1:n;var r,a;return n?a=!1:a=typeof t=="string",a?r=typeof e=="string":r=!1,r?Uh(t,e):ao(t,A(t)-A(e)|0,e,0,A(e),n)}function Dm(t){var e;t:{for(var n=0;n<A(t);){var r=L(t,n);if(n=n+1|0,!Dh(r)){e=!1;break t}}e=!0}return e}function Je(t,e,n){return n=n===u?!1:n,Km(t,e,u,n)>=0}function es(t,e,n,r){r=r===u?!1:r;var a,o;return r?o=!1:o=typeof t=="string",o?a=typeof e=="string":a=!1,a?_m(t,e,n):ao(t,n,e,0,A(e),r)}function rl(t,e,n,r){n=n===u?0:n,r=r===u?!1:r;var a,o;return r?o=!0:o=typeof t!="string",o?a=fd(t,e,n,A(t),r):a=t.indexOf(e,n),a}function ao(t,e,n,r,a,o){if(r<0||e<0||e>(A(t)-a|0)||r>(A(n)-a|0))return!1;var s=0;if(s<a)do{var l=s;if(s=s+1|0,!ld(L(t,e+l|0),L(n,r+l|0),o))return!1}while(s<a);return!0}function fd(t,e,n,r,a,o){o=o===u?!1:o;var s=o?vp(xa(n,hd(t)),yo(r,0)):p_(yo(n,0),xa(r,A(t))),l;if(typeof t=="string"?l=typeof e=="string":l=!1,l){var c=s.qb_1,f=s.rb_1,h=s.sb_1;if(h>0&&c<=f||h<0&&f<=c)do{var d=c;if(c=c+h|0,jo(e,0,t,d,A(e),a))return d}while(d!==f)}else{var v=s.qb_1,y=s.rb_1,_=s.sb_1;if(_>0&&v<=y||_<0&&y<=v)do{var m=v;if(v=v+_|0,ao(e,0,t,m,A(e),a))return m}while(m!==y)}return-1}function Bm(t){var e=0,n=A(t)-1|0,r=!1;t:for(;e<=n;){var a=r?n:e,o=Dh(L(t,a));if(!r)o?e=e+1|0:r=!0;else if(o)n=n-1|0;else break t}return fn(t,e,n+1|0)}function Km(t,e,n,r){n=n===u?0:n,r=r===u?!1:r;var a,o;if(r?o=!0:o=typeof t!="string",o){var s=Pp([e]);a=Um(t,s,n,r)}else{var l=Kt(e);a=t.indexOf(l,n)}return a}function hd(t){return A(t)-1|0}function Um(t,e,n,r){n=n===u?0:n,r=r===u?!1:r;var a;if(!r&&e.length===1?a=typeof t=="string":a=!1,a){var o=rp(e),s=Kt(o);return t.indexOf(s,n)}var l=yo(n,0),c=hd(t);if(l<=c)do{var f=l;l=l+1|0;var h=L(t,f),d;t:{for(var v=0,y=e.length;v<y;){var _=e[v];if(v=v+1|0,ld(_,h,r)){d=!0;break t}}d=!1}if(d)return f}while(f!==c);return-1}function Wm(t,e){var n;if(t!=null&&typeof t=="string"?n=e!=null?typeof e=="string":!1:n=!1,n)return N(t,e);if(t===e)return!0;if(t==null||e==null||A(t)!==A(e))return!1;var r=0,a=A(t);if(r<a)do{var o=r;if(r=r+1|0,L(t,o)!==L(e,o))return!1}while(r<a);return!0}function oo(t){this.jc_1=t,this.kc_1=ns}i(oo).r1=function(){this.kc_1===ns&&(this.kc_1=Te(this.jc_1)(),this.jc_1=null);var t=this.kc_1;return t==null||t!=null?t:$()};i(oo).lc=function(){return this.kc_1!==ns};i(oo).toString=function(){return this.lc()?Wt(this.r1()):"Lazy value not initialized yet."};function dd(){}var ns;function Hm(t){var e=t;return e instanceof Ar}function Vm(t){var e;return t instanceof Ar?e=t.mc_1:e=null,e}function Qm(){}function Ar(t){this.mc_1=t}i(Ar).equals=function(t){var e;return t instanceof Ar?e=N(this.mc_1,t.mc_1):e=!1,e};i(Ar).hashCode=function(){return st(this.mc_1)};i(Ar).toString=function(){return"Failure("+this.mc_1.toString()+")"};function Gm(t){return new Ar(t)}function Jm(t){var e=t;if(e instanceof Ar)throw t.mc_1}function il(t){t=t===u?"An operation is not implemented.":t,E0(t,this),B(this,il)}function An(t,e){this.nc_1=t,this.oc_1=e}i(An).toString=function(){return"("+Wt(this.nc_1)+", "+Wt(this.oc_1)+")"};i(An).pc=function(){return this.nc_1};i(An).qc=function(){return this.oc_1};i(An).hashCode=function(){var t=this.nc_1==null?0:st(this.nc_1);return t=mt(t,31)+(this.oc_1==null?0:st(this.oc_1))|0,t};i(An).equals=function(t){if(this===t)return!0;if(!(t instanceof An))return!1;var e=t instanceof An?t:$();return!(!N(this.nc_1,e.nc_1)||!N(this.oc_1,e.oc_1))};function jc(t,e){return new An(t,e)}i(me).asJsReadonlyArrayView=vf;i(Ce).p4=ep;i(se).asJsReadonlyArrayView=vf;ut=new Dl;ho=null;Ga=new mh;wh=new ta;_n=new Xr;ku=new Fo;la=new Ni;Go=new ro;ed=new td;od=new Au;ns=new dd;var D=Math.imul;Be(sn,"Stringify");function Ru(){return this.uc()-this.tc()|0}Be(cs,"Position",u,u,[sn]);b(He,"Expression",u,u,[cs]);b(ct,"BinaryExpression",u,He);b(rs,"sam$kotlin_Comparator$0");ge(Pa);b(U,"CompareOperator",u,u,[sn]);it(Dn,"Equal",u,U);it(lr,"NotEqual",u,U);it(ur,"Start",u,U);it(cr,"NotStart",u,U);it(fr,"Include",u,U);it(hr,"NotInclude",u,U);it(dr,"End",u,U);it(vr,"NotEnd",u,U);it(pr,"Less",u,U);it(_r,"LessEqual",u,U);it(mr,"More",u,U);it(gr,"MoreEqual",u,U);it(yr,"Matches",u,U);it(wr,"NotMatches",u,U);b(Ai,"ConnectExpression",u,u,[sn]);b(os,"sam$kotlin_Comparator$0");ge(Ma);b(ye,"ConnectOperator",u,u,[sn]);it(Fr,"BeforeBrother",u,ye);it(zr,"AfterBrother",u,ye);it(Dr,"Ancestor",u,ye);it(Br,"Child",u,ye);it(Kr,"Descendant",u,ye);b(fe,"ConnectSegment",fe,u,[sn]);b(Ie,"ConnectWrapper",u,u,[sn]);b(Gt,"Context");b(Tt,"SelectorCheckException",u,xn);b(en,"UnknownIdentifierException",u,Tt);b(nn,"UnknownMemberException",u,Tt);b(Ve,"UnknownIdentifierMethodException",u,Tt);b(rn,"UnknownIdentifierMethodParamsException",u,Tt);b(Qe,"UnknownMemberMethodException",u,Tt);b(an,"UnknownMemberMethodParamsException",u,Tt);b(ie,"MismatchParamTypeException",u,Tt);b(ke,"MismatchExpressionTypeException",u,Tt);b(on,"MismatchOperatorTypeException",u,Tt);b(Fe,"FastQuery",u,u,[sn]);b(hn,"Id",u,Fe);b(dn,"Vid",u,Fe);b(vn,"Text",u,Fe);b(ft,"LogicalExpression",u,He);b(us,"sam$kotlin_Comparator$0");ge(Ra);b(Mn,"LogicalOperator",u,u,[sn]);it(Ur,"AndOperator",u,Mn);it(Wr,"OrOperator",u,Mn);b(ze,"MatchOption",ze);b(Jt,"NotExpression",u,He);b(qt,"PolynomialExpression",qt,Ai);b(Ut,"PositionImpl",u,u,[cs]);b(ae,"PropertySegment",u,u,[sn]);b(Yt,"PropertyWrapper",u,u,[sn]);ge(fs);b(Se,"Selector",u,u,[sn]);b(oe,"SyntaxError",u,xn);ge(Bu);Ua(pi,Pe,u,[1]);Ua(_i,Pe,u,[1]);Ua(mi,Pe,u,[1]);Ua(gi,Pe,u,[1]);Ua(yi,Pe,u,[1]);b(bt,"Transform");b(qe,"TupleExpression",u,Ai);b(ln,"PrimitiveType");it(ui,"BooleanType",u,ln);it(ci,"IntType",u,ln);it(fi,"StringType",u,ln);b(De,"ObjectType",u,ln);b(H,"MethodInfo",u,u,[sn]);b(Y,"PropInfo");b(Bt,"TypeInfo",u,u,[sn]);b(Xt,"ValueExpression",u,u,[cs]);b(Me,"Variable",u,Xt);b(Ct,"Identifier",u,Me);b(pt,"MemberExpression",u,Me);b(xt,"CallExpression",u,Me);b(Ye,"LiteralExpression",u,Xt);b(Ae,"NullLiteral",u,Ye);b(he,"BooleanLiteral",u,Ye);b(Ht,"IntLiteral",u,Ye);b(_t,"StringLiteral",u,Ye);b(zt,"Parser");b(At,"ParserResult");it(lo,"ParserSet");b(ti,"DefaultTypeInfo");function ct(t,e,n,r,a){He.call(this),this.rc_1=t,this.sc_1=e,this.left=n,this.operator=r,this.right=a}i(ct).tc=function(){return this.rc_1};i(ct).uc=function(){return this.sc_1};i(ct).vc=function(){return this.left};i(ct).wc=function(){return this.operator};i(ct).xc=function(){return this.right};i(ct).match=function(t,e){return this.operator.value.ad(t,e,this.left,this.right)};i(ct).bd=function(){return[this]};i(ct).stringify=function(){return this.left.stringify()+this.operator.stringify()+this.right.stringify()};i(ct).cd=function(){return ar([this.left.properties,this.right.properties])};i(ct).dd=function(){return ar([this.left.methods,this.right.methods])};i(ct).pc=function(){return this.rc_1};i(ct).qc=function(){return this.sc_1};i(ct).ed=function(){return this.left};i(ct).fd=function(){return this.operator};i(ct).gd=function(){return this.right};i(ct).hd=function(t,e,n,r,a){return new ct(t,e,n,r,a)};i(ct).copy=function(t,e,n,r,a,o){return t=t===u?this.rc_1:t,e=e===u?this.sc_1:e,n=n===u?this.left:n,r=r===u?this.operator:r,a=a===u?this.right:a,this.hd(t,e,n,r,a)};i(ct).toString=function(){return"BinaryExpression(start="+this.rc_1+", end="+this.sc_1+", left="+F(this.left)+", operator="+this.operator.toString()+", right="+F(this.right)+")"};i(ct).hashCode=function(){var t=this.rc_1;return t=D(t,31)+this.sc_1|0,t=D(t,31)+st(this.left)|0,t=D(t,31)+this.operator.hashCode()|0,t=D(t,31)+st(this.right)|0,t};i(ct).equals=function(t){if(this===t)return!0;if(!(t instanceof ct))return!1;var e=t instanceof ct?t:$();return!(this.rc_1!==e.rc_1||this.sc_1!==e.sc_1||!N(this.left,e.left)||!this.operator.equals(e.operator)||!N(this.right,e.right))};function Ym(t,e,n){if(t===n)return!0;if(A(t)!==A(n))return!1;var r=A(t)-1|0;if(0<=r)do{var a=r;if(r=r+-1|0,L(t,a)!==L(n,a))return!1}while(0<=r);return!0}function rs(t){this.id_1=t}i(rs).b9=function(t,e){return this.id_1(t,e)};i(rs).compare=function(t,e){return this.b9(t,e)};function Xm(){var t=Cu([sr(),vd(),Zr(),pd(),Lu(),_d(),Ou(),md(),so(),gd(),yd(),wd(),as(),ju()]),e=Zm,n=new rs(e),r=Hl(t,n);return bn(r)}function Zm(t,e){var n=-t.key.length|0,r=-e.key.length|0;return Yo(n,r)}function Pa(){al=this;var t=this;t.jd_1=Aa(Xm)}i(Pa).kd=function(){var t=this.jd_1;return tg(),t.r1()};var al;function is(){return al==null&&new Pa,al}function Dn(){ol=this,U.call(this,"=")}i(Dn).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e);return this.compare(a,o)};i(Dn).od=function(t,e){return!0};i(Dn).compare=function(t,e){var n,r;return t!=null&&de(t)?r=e!=null?de(e):!1:r=!1,r?n=Ym(t,is(),e):n=N(t,e),n};i(Dn).toString=function(){return"Equal"};i(Dn).hashCode=function(){return 717536815};i(Dn).equals=function(t){return this===t?!0:t instanceof Dn?(t instanceof Dn||$(),!0):!1};var ol;function sr(){return ol==null&&new Dn,ol}function lr(){sl=this,U.call(this,"!=")}i(lr).ad=function(t,e,n,r){return!sr().ad(t,e,n,r)};i(lr).od=function(t,e){return!0};i(lr).toString=function(){return"NotEqual"};i(lr).hashCode=function(){return 1058184006};i(lr).equals=function(t){return this===t?!0:t instanceof lr?(t instanceof lr||$(),!0):!1};var sl;function vd(){return sl==null&&new lr,sl}function ur(){ll=this,U.call(this,"^=")}i(ur).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&de(a)?l=o!=null?de(o):!1:l=!1,l?s=Pu(a,o):s=!1,s};i(ur).od=function(t,e){var n,r;if(t instanceof _t?r=!0:r=t instanceof Me,r){var a;e instanceof _t?a=!0:a=e instanceof Me,n=a}else n=!1;return n};i(ur).toString=function(){return"Start"};i(ur).hashCode=function(){return 730536797};i(ur).equals=function(t){return this===t?!0:t instanceof ur?(t instanceof ur||$(),!0):!1};var ll;function Zr(){return ll==null&&new ur,ll}function cr(){ul=this,U.call(this,"!^=")}i(cr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&de(a)?l=o!=null?de(o):!1:l=!1,l?s=!Pu(a,o):s=!1,s};i(cr).od=function(t,e){return Zr().od(t,e)};i(cr).toString=function(){return"NotStart"};i(cr).hashCode=function(){return 1071183988};i(cr).equals=function(t){return this===t?!0:t instanceof cr?(t instanceof cr||$(),!0):!1};var ul;function pd(){return ul==null&&new cr,ul}function fr(){cl=this,U.call(this,"*=")}i(fr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&de(a)?l=o!=null?de(o):!1:l=!1,l?s=Mu(a,o):s=!1,s};i(fr).od=function(t,e){return Zr().od(t,e)};i(fr).toString=function(){return"Include"};i(fr).hashCode=function(){return 1510988003};i(fr).equals=function(t){return this===t?!0:t instanceof fr?(t instanceof fr||$(),!0):!1};var cl;function Lu(){return cl==null&&new fr,cl}function hr(){fl=this,U.call(this,"!*=")}i(hr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&de(a)?l=o!=null?de(o):!1:l=!1,l?s=!Mu(a,o):s=!1,s};i(hr).od=function(t,e){return Zr().od(t,e)};i(hr).toString=function(){return"NotInclude"};i(hr).hashCode=function(){return-1839543238};i(hr).equals=function(t){return this===t?!0:t instanceof hr?(t instanceof hr||$(),!0):!1};var fl;function _d(){return fl==null&&new hr,fl}function dr(){hl=this,U.call(this,"$=")}i(dr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&de(a)?l=o!=null?de(o):!1:l=!1,l?s=ts(a,o):s=!1,s};i(dr).od=function(t,e){return Zr().od(t,e)};i(dr).toString=function(){return"End"};i(dr).hashCode=function(){return 1234264726};i(dr).equals=function(t){return this===t?!0:t instanceof dr?(t instanceof dr||$(),!0):!1};var hl;function Ou(){return hl==null&&new dr,hl}function vr(){dl=this,U.call(this,"!$=")}i(vr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&de(a)?l=o!=null?de(o):!1:l=!1,l?s=!ts(a,o):s=!1,s};i(vr).od=function(t,e){return Zr().od(t,e)};i(vr).toString=function(){return"NotEnd"};i(vr).hashCode=function(){return 1024563565};i(vr).equals=function(t){return this===t?!0:t instanceof vr?(t instanceof vr||$(),!0):!1};var dl;function md(){return dl==null&&new vr,dl}function pr(){vl=this,U.call(this,"<")}i(pr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a<o:s=!1,s};i(pr).od=function(t,e){var n,r;if(t instanceof Me?r=!0:r=t instanceof Ht,r){var a;e instanceof Ht?a=!0:a=e instanceof Me,n=a}else n=!1;return n};i(pr).toString=function(){return"Less"};i(pr).hashCode=function(){return-392298690};i(pr).equals=function(t){return this===t?!0:t instanceof pr?(t instanceof pr||$(),!0):!1};var vl;function so(){return vl==null&&new pr,vl}function _r(){pl=this,U.call(this,"<=")}i(_r).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a<=o:s=!1,s};i(_r).od=function(t,e){return so().od(t,e)};i(_r).toString=function(){return"LessEqual"};i(_r).hashCode=function(){return-2095624554};i(_r).equals=function(t){return this===t?!0:t instanceof _r?(t instanceof _r||$(),!0):!1};var pl;function gd(){return pl==null&&new _r,pl}function mr(){_l=this,U.call(this,">")}i(mr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a>o:s=!1,s};i(mr).od=function(t,e){return so().od(t,e)};i(mr).toString=function(){return"More"};i(mr).hashCode=function(){return-392259334};i(mr).equals=function(t){return this===t?!0:t instanceof mr?(t instanceof mr||$(),!0):!1};var _l;function yd(){return _l==null&&new mr,_l}function gr(){ml=this,U.call(this,">=")}i(gr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a>=o:s=!1,s};i(gr).od=function(t,e){return so().od(t,e)};i(gr).toString=function(){return"MoreEqual"};i(gr).hashCode=function(){return-648189350};i(gr).equals=function(t){return this===t?!0:t instanceof gr?(t instanceof gr||$(),!0):!1};var ml;function wd(){return ml==null&&new gr,ml}function yr(){gl=this,U.call(this,"~=")}i(yr).ad=function(t,e,n,r){var a=n.nd(t,e),o,s;return a!=null&&de(a)?s=r instanceof _t:s=!1,s?o=r.xd_1(a):o=!1,o};i(yr).od=function(t,e){var n;if(t instanceof Me){var r;e instanceof _t?r=e.wd_1!=null:r=!1,n=r}else n=!1;return n};i(yr).toString=function(){return"Matches"};i(yr).hashCode=function(){return 409275758};i(yr).equals=function(t){return this===t?!0:t instanceof yr?(t instanceof yr||$(),!0):!1};var gl;function as(){return gl==null&&new yr,gl}function wr(){yl=this,U.call(this,"!~=")}i(wr).ad=function(t,e,n,r){var a=n.nd(t,e),o,s;return a!=null&&de(a)?s=r instanceof _t:s=!1,s?o=!r.xd_1(a):o=!1,o};i(wr).od=function(t,e){return as().od(t,e)};i(wr).toString=function(){return"NotMatches"};i(wr).hashCode=function(){return 1353711813};i(wr).equals=function(t){return this===t?!0:t instanceof wr?(t instanceof wr||$(),!0):!1};var yl;function ju(){return yl==null&&new wr,yl}function U(t){is(),this.key=t}i(U).q1=function(){return this.key};i(U).stringify=function(){return this.key};function tg(){return Wa("allSubClasses",1,Oo,function(t){return t.allSubClasses},null)}function Ai(){}function os(t){this.ae_1=t}i(os).b9=function(t,e){return this.ae_1(t,e)};i(os).compare=function(t,e){return this.b9(t,e)};function eg(){var t=Cu([bd(),kd(),xo(),Cd(),ls()]),e=ng,n=new os(e);return Hl(t,n)}function ng(t,e){var n=-t.key.length|0,r=-e.key.length|0;return Yo(n,r)}function Ma(){wl=this;var t=this;t.be_1=Aa(eg)}i(Ma).kd=function(){var t=this.be_1;return rg(),t.r1()};var wl;function ss(){return wl==null&&new Ma,wl}function Fr(){bl=this,ye.call(this,"+")}i(Fr).ce=function(t,e,n){return e.traverseBeforeBrothers(t,n)};i(Fr).toString=function(){return"BeforeBrother"};i(Fr).hashCode=function(){return 1632618113};i(Fr).equals=function(t){return this===t?!0:t instanceof Fr?(t instanceof Fr||$(),!0):!1};var bl;function bd(){return bl==null&&new Fr,bl}function zr(){kl=this,ye.call(this,"-")}i(zr).ce=function(t,e,n){return e.traverseAfterBrothers(t,n)};i(zr).toString=function(){return"AfterBrother"};i(zr).hashCode=function(){return 1215887620};i(zr).equals=function(t){return this===t?!0:t instanceof zr?(t instanceof zr||$(),!0):!1};var kl;function kd(){return kl==null&&new zr,kl}function Dr(){Cl=this,ye.call(this,">")}i(Dr).ce=function(t,e,n){return e.traverseAncestors(t,n)};i(Dr).toString=function(){return"Ancestor"};i(Dr).hashCode=function(){return 736770963};i(Dr).equals=function(t){return this===t?!0:t instanceof Dr?(t instanceof Dr||$(),!0):!1};var Cl;function xo(){return Cl==null&&new Dr,Cl}function Br(){xl=this,ye.call(this,"<")}i(Br).ce=function(t,e,n){return e.traverseChildren(t,n)};i(Br).toString=function(){return"Child"};i(Br).hashCode=function(){return-1105093796};i(Br).equals=function(t){return this===t?!0:t instanceof Br?(t instanceof Br||$(),!0):!1};var xl;function Cd(){return xl==null&&new Br,xl}function Kr(){Sl=this,ye.call(this,"<<")}i(Kr).ce=function(t,e,n){return e.traverseDescendants(t,n)};i(Kr).toString=function(){return"Descendant"};i(Kr).hashCode=function(){return 2093403837};i(Kr).equals=function(t){return this===t?!0:t instanceof Kr?(t instanceof Kr||$(),!0):!1};var Sl;function ls(){return Sl==null&&new Kr,Sl}function ye(t){ss(),this.key=t}i(ye).q1=function(){return this.key};i(ye).stringify=function(){return this.key};function rg(){return Wa("allSubClasses",1,Oo,function(t){return t.allSubClasses},null)}function fe(t,e){t=t===u?xo():t,e=e===u?new qt:e,this.operator=t,this.connectExpression=e;var n=this,r,a,o;if(N(this.operator,xo())){var s=this.connectExpression;o=s instanceof qt}else o=!1;o?a=this.connectExpression.a===1:a=!1,a?r=this.connectExpression.b===0:r=!1,n.isMatchAnyAncestor=r;var l=this,c,f,h;if(N(this.operator,ls())){var d=this.connectExpression;h=d instanceof qt}else h=!1;h?f=this.connectExpression.a===1:f=!1,f?c=this.connectExpression.b===0:c=!1,l.isMatchAnyDescendant=c}i(fe).wc=function(){return this.operator};i(fe).he=function(){return this.connectExpression};i(fe).stringify=function(){return this.isMatchAnyAncestor?"":this.operator.stringify()+this.connectExpression.stringify()};i(fe).ie=function(t,e){return this.operator.ce(t,e,this.connectExpression)};i(fe).je=function(){return this.isMatchAnyAncestor};i(fe).ke=function(){return this.isMatchAnyDescendant};i(fe).pc=function(){return this.operator};i(fe).qc=function(){return this.connectExpression};i(fe).le=function(t,e){return new fe(t,e)};i(fe).copy=function(t,e,n){return t=t===u?this.operator:t,e=e===u?this.connectExpression:e,this.le(t,e)};i(fe).toString=function(){return"ConnectSegment(operator="+F(this.operator)+", connectExpression="+F(this.connectExpression)+")"};i(fe).hashCode=function(){var t=st(this.operator);return t=D(t,31)+st(this.connectExpression)|0,t};i(fe).equals=function(t){if(this===t)return!0;if(!(t instanceof fe))return!1;var e=t instanceof fe?t:$();return!(!N(this.operator,e.operator)||!N(this.connectExpression,e.connectExpression))};function Ie(t,e){this.segment=t,this.to=e,this.me_1=this.to.isMatchRoot&&this.segment.isMatchAnyAncestor;var n=this,r;this.segment.isMatchAnyDescendant?r=!this.to.fastQueryList.l():r=!1,n.canFq=r}i(Ie).ne=function(){return this.segment};i(Ie).oe=function(){return this.to};i(Ie).stringify=function(){var t=this.to.stringify()+" "+this.segment.stringify();return F(Bm(de(t)?t:$()))};i(Ie).matchContext=function(t,e,n){if(this.me_1){var r=e.getRoot(t.current),a;if(r==null)return null;a=r;var o=a;return this.to.matchContext(t.next(o),e,n)}if(this.canFq&&n.fastQuery)for(var s=e.traverseFastQueryDescendants(t.current,this.to.fastQueryList).h();s.i();){var l=s.j(),c=this.to.matchContext(t.next(l),e,n);if(c!=null)return c}else for(var f=this.segment.ie(t.current,e).h();f.i();){var h=f.j();t:{if(h==null)break t;var d=this.to.matchContext(t.next(h),e,n);if(d!=null)return d}}return null};i(Ie).pe=function(){return this.canFq};i(Ie).pc=function(){return this.segment};i(Ie).qc=function(){return this.to};i(Ie).qe=function(t,e){return new Ie(t,e)};i(Ie).copy=function(t,e,n){return t=t===u?this.segment:t,e=e===u?this.to:e,this.qe(t,e)};i(Ie).toString=function(){return"ConnectWrapper(segment="+this.segment.toString()+", to="+this.to.toString()+")"};i(Ie).hashCode=function(){var t=this.segment.hashCode();return t=D(t,31)+this.to.hashCode()|0,t};i(Ie).equals=function(t){if(this===t)return!0;if(!(t instanceof Ie))return!1;var e=t instanceof Ie?t:$();return!(!this.segment.equals(e.segment)||!this.to.equals(e.to))};function Gt(t,e){e=e===u?null:e,this.current=t,this.prev=e}i(Gt).re=function(){return this.current};i(Gt).se=function(){return this.prev};i(Gt).getPrev=function(t){if(t<0)return null;var e=this.prev,n;if(e==null)return null;n=e;var r=n,a=0;if(a<t)do{a=a+1|0;var o=r.prev,s;if(o==null)return null;s=o,r=s}while(a<t);return r};i(Gt).get=function(t){if(t===0)return this;var e=this.getPrev(t-1|0),n;if(e==null)throw hu();return n=e,n};i(Gt).toList=function(){for(var t=Hh([this.current]),e=this.prev;e!=null;)t.f(e.current),e=e.prev;return t};i(Gt).toArray=function(){var t=this.toList(),e=et(t,Hn)?t:$(),n=bn(e);return Zi(n)?n:$()};i(Gt).next=function(t){return new Gt(t,this)};i(Gt).pc=function(){return this.current};i(Gt).qc=function(){return this.prev};i(Gt).te=function(t,e){return new Gt(t,e)};i(Gt).copy=function(t,e,n){return t=t===u?this.current:t,e=e===u?this.prev:e,this.te(t,e)};i(Gt).toString=function(){return"Context(current="+Wt(this.current)+", prev="+Wt(this.prev)+")"};i(Gt).hashCode=function(){var t=this.current==null?0:st(this.current);return t=D(t,31)+(this.prev==null?0:this.prev.hashCode())|0,t};i(Gt).equals=function(t){if(this===t)return!0;if(!(t instanceof Gt))return!1;var e=t instanceof Gt?t:$();return!(!N(this.current,e.current)||!N(this.prev,e.prev))};function Tt(t){To(t,this),B(this,Tt),this.ue_1=t}i(Tt).i7=function(){return this.ue_1};function en(t){Tt.call(this,"Unknown Identifier: "+t.stringify()),B(this,en),this.value=t}i(en).r1=function(){return this.value};i(en).pc=function(){return this.value};i(en).we=function(t){return new en(t)};i(en).copy=function(t,e){return t=t===u?this.value:t,this.we(t)};i(en).toString=function(){return"UnknownIdentifierException(value="+this.value.toString()+")"};i(en).hashCode=function(){return this.value.hashCode()};i(en).equals=function(t){if(this===t)return!0;if(!(t instanceof en))return!1;var e=t instanceof en?t:$();return!!this.value.equals(e.value)};function nn(t){Tt.call(this,"Unknown Member: "+t.stringify()),B(this,nn),this.value=t}i(nn).r1=function(){return this.value};i(nn).pc=function(){return this.value};i(nn).ye=function(t){return new nn(t)};i(nn).copy=function(t,e){return t=t===u?this.value:t,this.ye(t)};i(nn).toString=function(){return"UnknownMemberException(value="+this.value.toString()+")"};i(nn).hashCode=function(){return this.value.hashCode()};i(nn).equals=function(t){if(this===t)return!0;if(!(t instanceof nn))return!1;var e=t instanceof nn?t:$();return!!this.value.equals(e.value)};function Ve(t){Tt.call(this,"Unknown Identifier Method: "+t.stringify()),B(this,Ve),this.value=t}i(Ve).r1=function(){return this.value};i(Ve).pc=function(){return this.value};i(Ve).we=function(t){return new Ve(t)};i(Ve).copy=function(t,e){return t=t===u?this.value:t,this.we(t)};i(Ve).toString=function(){return"UnknownIdentifierMethodException(value="+this.value.toString()+")"};i(Ve).hashCode=function(){return this.value.hashCode()};i(Ve).equals=function(t){if(this===t)return!0;if(!(t instanceof Ve))return!1;var e=t instanceof Ve?t:$();return!!this.value.equals(e.value)};function rn(t){Tt.call(this,"Unknown Identifier Method Params: "+t.stringify()),B(this,rn),this.value=t}i(rn).r1=function(){return this.value};i(rn).pc=function(){return this.value};i(rn).bf=function(t){return new rn(t)};i(rn).copy=function(t,e){return t=t===u?this.value:t,this.bf(t)};i(rn).toString=function(){return"UnknownIdentifierMethodParamsException(value="+this.value.toString()+")"};i(rn).hashCode=function(){return this.value.hashCode()};i(rn).equals=function(t){if(this===t)return!0;if(!(t instanceof rn))return!1;var e=t instanceof rn?t:$();return!!this.value.equals(e.value)};function Qe(t){Tt.call(this,"Unknown Member Method: "+t.stringify()),B(this,Qe),this.value=t}i(Qe).r1=function(){return this.value};i(Qe).pc=function(){return this.value};i(Qe).ye=function(t){return new Qe(t)};i(Qe).copy=function(t,e){return t=t===u?this.value:t,this.ye(t)};i(Qe).toString=function(){return"UnknownMemberMethodException(value="+this.value.toString()+")"};i(Qe).hashCode=function(){return this.value.hashCode()};i(Qe).equals=function(t){if(this===t)return!0;if(!(t instanceof Qe))return!1;var e=t instanceof Qe?t:$();return!!this.value.equals(e.value)};function an(t){Tt.call(this,"Unknown Member Method Params: "+t.stringify()),B(this,an),this.value=t}i(an).r1=function(){return this.value};i(an).pc=function(){return this.value};i(an).bf=function(t){return new an(t)};i(an).copy=function(t,e){return t=t===u?this.value:t,this.bf(t)};i(an).toString=function(){return"UnknownMemberMethodParamsException(value="+this.value.toString()+")"};i(an).hashCode=function(){return this.value.hashCode()};i(an).equals=function(t){if(this===t)return!0;if(!(t instanceof an))return!1;var e=t instanceof an?t:$();return!!this.value.equals(e.value)};function ie(t,e,n){Tt.call(this,"Mismatch Param Type: "+e.stringify()+" should be "+n.key),B(this,ie),this.call=t,this.argument=e,this.type=n}i(ie).ff=function(){return this.call};i(ie).gf=function(){return this.argument};i(ie).hf=function(){return this.type};i(ie).pc=function(){return this.call};i(ie).qc=function(){return this.argument};i(ie).ed=function(){return this.type};i(ie).if=function(t,e,n){return new ie(t,e,n)};i(ie).copy=function(t,e,n,r){return t=t===u?this.call:t,e=e===u?this.argument:e,n=n===u?this.type:n,this.if(t,e,n)};i(ie).toString=function(){return"MismatchParamTypeException(call="+this.call.toString()+", argument="+F(this.argument)+", type="+F(this.type)+")"};i(ie).hashCode=function(){var t=this.call.hashCode();return t=D(t,31)+st(this.argument)|0,t=D(t,31)+st(this.type)|0,t};i(ie).equals=function(t){if(this===t)return!0;if(!(t instanceof ie))return!1;var e=t instanceof ie?t:$();return!(!this.call.equals(e.call)||!N(this.argument,e.argument)||!N(this.type,e.type))};function ke(t,e,n){Tt.call(this,"Mismatch Expression Type: "+t.stringify()),B(this,ke),this.exception=t,this.leftType=e,this.rightType=n}i(ke).kf=function(){return this.exception};i(ke).lf=function(){return this.leftType};i(ke).mf=function(){return this.rightType};i(ke).pc=function(){return this.exception};i(ke).qc=function(){return this.leftType};i(ke).ed=function(){return this.rightType};i(ke).nf=function(t,e,n){return new ke(t,e,n)};i(ke).copy=function(t,e,n,r){return t=t===u?this.exception:t,e=e===u?this.leftType:e,n=n===u?this.rightType:n,this.nf(t,e,n)};i(ke).toString=function(){return"MismatchExpressionTypeException(exception="+this.exception.toString()+", leftType="+F(this.leftType)+", rightType="+F(this.rightType)+")"};i(ke).hashCode=function(){var t=this.exception.hashCode();return t=D(t,31)+st(this.leftType)|0,t=D(t,31)+st(this.rightType)|0,t};i(ke).equals=function(t){if(this===t)return!0;if(!(t instanceof ke))return!1;var e=t instanceof ke?t:$();return!(!this.exception.equals(e.exception)||!N(this.leftType,e.leftType)||!N(this.rightType,e.rightType))};function on(t){Tt.call(this,"Mismatch Operator Type: "+t.stringify()),B(this,on),this.exception=t}i(on).kf=function(){return this.exception};i(on).pc=function(){return this.exception};i(on).pf=function(t){return new on(t)};i(on).copy=function(t,e){return t=t===u?this.exception:t,this.pf(t)};i(on).toString=function(){return"MismatchOperatorTypeException(exception="+this.exception.toString()+")"};i(on).hashCode=function(){return this.exception.hashCode()};i(on).equals=function(t){if(this===t)return!0;if(!(t instanceof on))return!1;var e=t instanceof on?t:$();return!!this.exception.equals(e.exception)};function He(){}function hn(t){Fe.call(this,t),this.rf_1=t}i(hn).r1=function(){return this.rf_1};i(hn).pc=function(){return this.rf_1};i(hn).sf=function(t){return new hn(t)};i(hn).copy=function(t,e){return t=t===u?this.rf_1:t,this.sf(t)};i(hn).toString=function(){return"Id(value="+this.rf_1+")"};i(hn).hashCode=function(){return Ge(this.rf_1)};i(hn).equals=function(t){if(this===t)return!0;if(!(t instanceof hn))return!1;var e=t instanceof hn?t:$();return this.rf_1===e.rf_1};function dn(t){Fe.call(this,t),this.uf_1=t}i(dn).r1=function(){return this.uf_1};i(dn).pc=function(){return this.uf_1};i(dn).sf=function(t){return new dn(t)};i(dn).copy=function(t,e){return t=t===u?this.uf_1:t,this.sf(t)};i(dn).toString=function(){return"Vid(value="+this.uf_1+")"};i(dn).hashCode=function(){return Ge(this.uf_1)};i(dn).equals=function(t){if(this===t)return!0;if(!(t instanceof dn))return!1;var e=t instanceof dn?t:$();return this.uf_1===e.uf_1};function vn(t){Fe.call(this,t),this.wf_1=t}i(vn).r1=function(){return this.wf_1};i(vn).pc=function(){return this.wf_1};i(vn).sf=function(t){return new vn(t)};i(vn).copy=function(t,e){return t=t===u?this.wf_1:t,this.sf(t)};i(vn).toString=function(){return"Text(value="+this.wf_1+")"};i(vn).hashCode=function(){return Ge(this.wf_1)};i(vn).equals=function(t){if(this===t)return!0;if(!(t instanceof vn))return!1;var e=t instanceof vn?t:$();return this.wf_1===e.wf_1};function Fe(t){this.xf_1=t}i(Fe).r1=function(){return this.xf_1};i(Fe).stringify=function(){return this.value};function ig(t){var e=mf(t.expressions),n;if(e==null)return null;n=e;var r=n;if(r instanceof ft){if(!N(r.operator.value,Du()))return null;var a=r.getSameExpressionArray(),o;if(a==null)return null;o=a;for(var s=o,l=It(),c=0,f=s.length;c<f;){var h=s[c];c=c+1|0;var d=Fc(h),v;if(d==null)return null;v=d;var y=v;l.f(y)}return l}if(r instanceof ct){var _=Fc(r),m;if(_==null)return null;m=_;var g=m;return Ha(g)}return null}function Fc(t){var e=t.left;if(!(e instanceof Ct))return null;var n=t.right;if(!(n instanceof _t))return null;var r=t.right.vd_1;return A(r)===0?null:t.left.value==="id"&&N(t.operator.value,sr())?new hn(t.right.vd_1):t.left.value==="vid"&&N(t.operator.value,sr())?new dn(t.right.vd_1):t.left.value==="text"&&(N(t.operator.value,sr())||N(t.operator.value,Zr())||N(t.operator.value,Lu())||N(t.operator.value,Ou()))?new vn(t.right.vd_1):null}function ft(t,e,n,r,a){He.call(this),this.zf_1=t,this.ag_1=e,this.left=n,this.operator=r,this.right=a}i(ft).tc=function(){return this.zf_1};i(ft).uc=function(){return this.ag_1};i(ft).vc=function(){return this.left};i(ft).wc=function(){return this.operator};i(ft).xc=function(){return this.right};i(ft).match=function(t,e){return this.operator.value.compare(t,e,this.left,this.right)};i(ft).bd=function(){var t=this.left.binaryExpressions,e=this.right.binaryExpressions;return t.concat(e)};i(ft).stringify=function(){var t,e,n=this.left;n instanceof ft?e=!N(this.left.operator.value,this.operator.value):e=!1,e?t="("+this.left.stringify()+")":t=this.left.stringify();var r=t,a,o,s=this.right;s instanceof ft?o=!N(this.right.operator.value,this.operator.value):o=!1,o?a="("+this.right.stringify()+")":a=this.right.stringify();var l=a;return r+" "+this.operator.stringify()+" "+l};i(ft).getSameExpressionArray=function(){var t,e=this.left;if(e instanceof ft?t=!N(this.left.operator.value,this.operator.value):t=!1,t)return null;var n,r=this.right;if(r instanceof ft?n=!N(this.right.operator.value,this.operator.value):n=!1,n)return null;var a=this.left,o;if(a instanceof ct){var s=this.right,l;if(s instanceof ct)l=[this.left,this.right];else if(s instanceof ft){var c=[this.left],f=this.right.getSameExpressionArray(),h;if(f==null)return null;h=f;var d=h;l=c.concat(d)}else s instanceof Jt?l=null:qn();o=l}else if(a instanceof ft){var v=this.left.getSameExpressionArray(),y;if(v==null)return null;y=v;var _=y,m=this.right,g;if(m instanceof ct){var p=[this.right];g=_.concat(p)}else if(m instanceof ft){var C=this.right.getSameExpressionArray(),k;if(C==null)return null;k=C;var S=k;return _.concat(S)}else m instanceof Jt?g=null:qn();o=g}else a instanceof Jt?o=null:qn();return o};i(ft).pc=function(){return this.zf_1};i(ft).qc=function(){return this.ag_1};i(ft).ed=function(){return this.left};i(ft).fd=function(){return this.operator};i(ft).gd=function(){return this.right};i(ft).bg=function(t,e,n,r,a){return new ft(t,e,n,r,a)};i(ft).copy=function(t,e,n,r,a,o){return t=t===u?this.zf_1:t,e=e===u?this.ag_1:e,n=n===u?this.left:n,r=r===u?this.operator:r,a=a===u?this.right:a,this.bg(t,e,n,r,a)};i(ft).toString=function(){return"LogicalExpression(start="+this.zf_1+", end="+this.ag_1+", left="+F(this.left)+", operator="+this.operator.toString()+", right="+F(this.right)+")"};i(ft).hashCode=function(){var t=this.zf_1;return t=D(t,31)+this.ag_1|0,t=D(t,31)+st(this.left)|0,t=D(t,31)+this.operator.hashCode()|0,t=D(t,31)+st(this.right)|0,t};i(ft).equals=function(t){if(this===t)return!0;if(!(t instanceof ft))return!1;var e=t instanceof ft?t:$();return!(this.zf_1!==e.zf_1||this.ag_1!==e.ag_1||!N(this.left,e.left)||!this.operator.equals(e.operator)||!N(this.right,e.right))};function us(t){this.cg_1=t}i(us).b9=function(t,e){return this.cg_1(t,e)};i(us).compare=function(t,e){return this.b9(t,e)};function ag(){var t=Cu([zu(),Du()]),e=og,n=new us(e);return Hl(t,n)}function og(t,e){var n=-t.key.length|0,r=-e.key.length|0;return Yo(n,r)}function Ra(){$l=this;var t=this;t.dg_1=Aa(ag)}i(Ra).kd=function(){var t=this.dg_1;return sg(),t.r1()};var $l;function Fu(){return $l==null&&new Ra,$l}function Ur(){El=this,Mn.call(this,"&&")}i(Ur).compare=function(t,e,n,r){return n.match(t,e)&&r.match(t,e)};i(Ur).toString=function(){return"AndOperator"};i(Ur).hashCode=function(){return-772304006};i(Ur).equals=function(t){return this===t?!0:t instanceof Ur?(t instanceof Ur||$(),!0):!1};var El;function zu(){return El==null&&new Ur,El}function Wr(){Nl=this,Mn.call(this,"||")}i(Wr).compare=function(t,e,n,r){return n.match(t,e)||r.match(t,e)};i(Wr).toString=function(){return"OrOperator"};i(Wr).hashCode=function(){return-302302232};i(Wr).equals=function(t){return this===t?!0:t instanceof Wr?(t instanceof Wr||$(),!0):!1};var Nl;function Du(){return Nl==null&&new Wr,Nl}function Mn(t){Fu(),this.key=t}i(Mn).q1=function(){return this.key};i(Mn).stringify=function(){return this.key};function sg(){return Wa("allSubClasses",1,Oo,function(t){return t.allSubClasses},null)}function ca(){return lg(),xd}var xd;function ze(t,e){t=t===u?!1:t,e=e===u?!1:e,this.quickFind=t,this.fastQuery=e}i(ze).eg=function(){return this.quickFind};i(ze).fg=function(){return this.fastQuery};i(ze).pc=function(){return this.quickFind};i(ze).qc=function(){return this.fastQuery};i(ze).gg=function(t,e){return new ze(t,e)};i(ze).copy=function(t,e,n){return t=t===u?this.quickFind:t,e=e===u?this.fastQuery:e,this.gg(t,e)};i(ze).toString=function(){return"MatchOption(quickFind="+this.quickFind+", fastQuery="+this.fastQuery+")"};i(ze).hashCode=function(){var t=Sa(this.quickFind);return t=D(t,31)+Sa(this.fastQuery)|0,t};i(ze).equals=function(t){if(this===t)return!0;if(!(t instanceof ze))return!1;var e=t instanceof ze?t:$();return!(this.quickFind!==e.quickFind||this.fastQuery!==e.fastQuery)};var zc;function lg(){zc||(zc=!0,xd=new ze)}function Jt(t,e){He.call(this),this.hg_1=t,this.expression=e}i(Jt).tc=function(){return this.hg_1};i(Jt).ig=function(){return this.expression};i(Jt).uc=function(){return this.expression.uc()};i(Jt).match=function(t,e){return!this.expression.match(t,e)};i(Jt).bd=function(){return this.expression.binaryExpressions};i(Jt).stringify=function(){return"!("+this.expression.stringify()+")"};i(Jt).pc=function(){return this.hg_1};i(Jt).qc=function(){return this.expression};i(Jt).jg=function(t,e){return new Jt(t,e)};i(Jt).copy=function(t,e,n){return t=t===u?this.hg_1:t,e=e===u?this.expression:e,this.jg(t,e)};i(Jt).toString=function(){return"NotExpression(start="+this.hg_1+", expression="+F(this.expression)+")"};i(Jt).hashCode=function(){var t=this.hg_1;return t=D(t,31)+st(this.expression)|0,t};i(Jt).equals=function(t){if(this===t)return!0;if(!(t instanceof Jt))return!1;var e=t instanceof Jt?t:$();return!(this.hg_1!==e.hg_1||!N(this.expression,e.expression))};function On(t){var e="invalid PolynomialExpression: a="+t.a+", b="+t.b;throw Hr(F(e))}function ug(t){return function(e){return D(t.a,e)+t.b|0}}function cg(t){return function(e){return D(t.a,e)+t.b|0}}function fg(t,e){return function(n){return D(t.a,e+n|0)+t.b|0}}function hg(t){return function(e){return e!==0&&On(t),t.b}}function dg(t,e){return function(n){return D(t.a,e-n|0)+t.b|0}}function qt(t,e){t=t===u?0:t,e=e===u?1:e,Ai.call(this),this.a=t,this.b=e;var n=this,r;if(this.a>0){var a;if(this.b>0)a=this.a+this.b|0;else if(this.b===0)a=this.a;else{var o=((-this.b|0)/this.a|0)+1|0;a=D(this.a,o)+this.b|0}r=a}else{var s;if(this.a===0){var l;this.b>0?l=this.b:On(this),s=l}else{var c;if(this.b>0){var f;if(this.b<=(-this.a|0))On(this);else{var h=((-this.b|0)/this.a|0)-(this.b%this.a|0?0:1)|0;f=D(this.a,h)+this.b|0}c=f}else On(this);s=c}r=s-1|0}n.de_1=r;var d=this,v;if(this.a>0)v=null;else{var y;if(this.a===0){var _;this.b>0?_=this.b:On(this),y=_}else{var m;if(this.b>0){var g;this.b<=(-this.a|0)?On(this):g=this.a+this.b|0,m=g}else On(this);y=m}v=y-1|0}d.ee_1=v,this.fe_1=this.de_1===this.ee_1;var p=this,C;if(this.a>0){var k;if(this.b>0)k=ug(this);else if(this.b===0)k=cg(this);else{var S=((-this.b|0)/this.a|0)+1|0;k=fg(this,S)}C=k}else if(this.a===0){var I;this.b>0?I=hg(this):On(this),C=I}else{var O;if(this.b>0){var Q;if(this.b<=(-this.a|0))On(this);else{var W=((-this.b|0)/this.a|0)-(this.b%this.a|0?0:1)|0;Q=dg(this,W)}O=Q}else On(this);C=O}p.ge_1=C}i(qt).kg=function(){return this.a};i(qt).lg=function(){return this.b};i(qt).stringify=function(){if(this.a>0&&this.b>0)return this.a===1?"(n+"+this.b+")":"("+this.a+"n+"+this.b+")";if(this.a<0&&this.b>0)return this.a===-1?"("+this.b+"-n)":"("+this.b+this.a+"n)";if(this.b===0){if(this.a===1)return"n";var t;return this.a>0?t=""+this.a+"n":t="("+this.a+"n)",t}if(this.a===0){if(this.b===1)return"";var e;return this.b>0?e=this.b.toString():e="("+this.b+")",e}var n=this.b>=0?"+":"";return"("+this.a+"n"+n+this.b+")"};i(qt).yd=function(){return this.de_1};i(qt).zd=function(){return this.ee_1};i(qt).checkOffset=function(t){if(this.fe_1)return t===this.de_1;var e=(t+1|0)-this.b|0;return(e%this.a|0)===0&&(e/this.a|0)>=1};i(qt).getOffset=function(t){return this.ge_1(t)-1|0};i(qt).pc=function(){return this.a};i(qt).qc=function(){return this.b};i(qt).mg=function(t,e){return new qt(t,e)};i(qt).copy=function(t,e,n){return t=t===u?this.a:t,e=e===u?this.b:e,this.mg(t,e)};i(qt).toString=function(){return"PolynomialExpression(a="+this.a+", b="+this.b+")"};i(qt).hashCode=function(){var t=this.a;return t=D(t,31)+this.b|0,t};i(qt).equals=function(t){if(this===t)return!0;if(!(t instanceof qt))return!1;var e=t instanceof qt?t:$();return!(this.a!==e.a||this.b!==e.b)};function sn(){}function Ut(t,e,n){this.yc_1=t,this.zc_1=e,this.value=n}i(Ut).tc=function(){return this.yc_1};i(Ut).uc=function(){return this.zc_1};i(Ut).r1=function(){return this.value};i(Ut).stringify=function(){return this.value.stringify()};i(Ut).pc=function(){return this.yc_1};i(Ut).qc=function(){return this.zc_1};i(Ut).ed=function(){return this.value};i(Ut).ng=function(t,e,n){return new Ut(t,e,n)};i(Ut).copy=function(t,e,n,r){return t=t===u?this.yc_1:t,e=e===u?this.zc_1:e,n=n===u?this.value:n,this.ng(t,e,n)};i(Ut).toString=function(){return"PositionImpl(start="+this.yc_1+", end="+this.zc_1+", value="+F(this.value)+")"};i(Ut).hashCode=function(){var t=this.yc_1;return t=D(t,31)+this.zc_1|0,t=D(t,31)+st(this.value)|0,t};i(Ut).equals=function(t){if(this===t)return!0;if(!(t instanceof Ut))return!1;var e=t instanceof Ut?t:$();return!(this.yc_1!==e.yc_1||this.zc_1!==e.zc_1||!N(this.value,e.value))};function cs(){}function vg(t,e,n){if(t.yf_1)return!0;var r=n.getName(e),a;if(r==null)return!1;a=r;var o=a;return A(o)===t.name.length?pm(o,t.name):A(o)>t.name.length?L(o,(A(o)-t.name.length|0)-1|0)===46&&ts(o,t.name):!1}function pg(t){return"["+t.stringify()+"]"}function ae(t,e,n){this.at=t,this.name=e,this.expressions=n,this.yf_1=Dm(this.name)||this.name==="*"}i(ae).og=function(){return this.at};i(ae).pg=function(){return this.name};i(ae).qg=function(){return this.expressions};i(ae).bd=function(){for(var t=this.expressions,e=It(),n=t.h();n.i();){var r=n.j(),a=Bl(r.binaryExpressions);zo(e,a)}return bn(e)};i(ae).stringify=function(){var t=this.at?"@":"",e=t+this.name;return e+In(this.expressions,"",u,u,u,u,pg)};i(ae).match=function(t,e){var n;if(vg(this,t.current,e)){var r;t:{var a=this.expressions,o;if(et(a,$t)?o=a.l():o=!1,o){r=!0;break t}for(var s=a.h();s.i();){var l=s.j();if(!l.match(t,e)){r=!1;break t}}r=!0}n=r}else n=!1;return n};i(ae).pc=function(){return this.at};i(ae).qc=function(){return this.name};i(ae).ed=function(){return this.expressions};i(ae).rg=function(t,e,n){return new ae(t,e,n)};i(ae).copy=function(t,e,n,r){return t=t===u?this.at:t,e=e===u?this.name:e,n=n===u?this.expressions:n,this.rg(t,e,n)};i(ae).toString=function(){return"PropertySegment(at="+this.at+", name="+this.name+", expressions="+F(this.expressions)+")"};i(ae).hashCode=function(){var t=Sa(this.at);return t=D(t,31)+Ge(this.name)|0,t=D(t,31)+st(this.expressions)|0,t};i(ae).equals=function(t){if(this===t)return!0;if(!(t instanceof ae))return!1;var e=t instanceof ae?t:$();return!(this.at!==e.at||this.name!==e.name||!N(this.expressions,e.expressions))};function Yt(t,e){e=e===u?null:e,this.segment=t,this.to=e;var n=this,r;t:{var a=this.segment.expressions,o;if(et(a,$t)?o=a.l():o=!1,o){r=!1;break t}for(var s=a.h();s.i();){var l=s.j(),c,f,h;if(l instanceof ct?h=N(l.operator.value,sr()):h=!1,h?f=N(l.left.value,"parent"):f=!1,f?c=N(l.right.value,"null"):c=!1,c){r=!0;break t}}r=!1}n.isMatchRoot=r;var d=this,v=ig(this.segment);d.fastQueryList=v==null?sa():v}i(Yt).ne=function(){return this.segment};i(Yt).oe=function(){return this.to};i(Yt).stringify=function(){var t;return this.to!=null?t=this.to.stringify()+" ":t="",t+this.segment.stringify()};i(Yt).matchContext=function(t,e,n){return this.segment.match(t,e)?this.to==null?t:this.to.matchContext(t,e,n):null};i(Yt).sg=function(){return this.isMatchRoot};i(Yt).tg=function(){return this.fastQueryList};i(Yt).a=function(){return this.to==null?1:this.to.to.length+1|0};i(Yt).pc=function(){return this.segment};i(Yt).qc=function(){return this.to};i(Yt).ug=function(t,e){return new Yt(t,e)};i(Yt).copy=function(t,e,n){return t=t===u?this.segment:t,e=e===u?this.to:e,this.ug(t,e)};i(Yt).toString=function(){return"PropertyWrapper(segment="+this.segment.toString()+", to="+Wt(this.to)+")"};i(Yt).hashCode=function(){var t=this.segment.hashCode();return t=D(t,31)+(this.to==null?0:this.to.hashCode())|0,t};i(Yt).equals=function(t){if(this===t)return!0;if(!(t instanceof Yt))return!1;var e=t instanceof Yt?t:$();return!(!this.segment.equals(e.segment)||!N(this.to,e.to))};function Sd(){Ti();var t=$d;return yg(),t.r1()}var $d;function Ed(){Ti();var t=Nd;return wg(),t.r1()}var Nd;function fs(){}i(fs).parse=function(t){return Ad(t)};i(fs).parseOrNull=function(t){var e;try{e=Ad(t)}catch(r){var n;if(r instanceof xn)n=null;else throw r;e=n}return e};var Id;function _g(){return Id}function Se(t,e){this.source=t,this.propertyWrapper=e;var n=this,r;t:{for(var a=this.propertyWrapper.length,o=0,s=this.propertyWrapper;s!=null;){if(s.segment.at){r=(a-1|0)-o|0;break t}var l=s.to;s=l==null?null:l.to,o=o+1|0}r=a-1|0}n.targetIndex=r,this.fastQueryList=this.propertyWrapper.fastQueryList,this.quickFindValue=this.fastQueryList.m()===1?Hi(this.fastQueryList):null,this.isMatchRoot=this.propertyWrapper.isMatchRoot;for(var c=this,f=this.propertyWrapper.to,h=It();f!=null;)h.f(f),f=f.to.to;c.connectWrappers=bn(h);for(var d=this,v=this.propertyWrapper,y=It();v!=null;){var _=v.segment;Nm(y,_.binaryExpressions);var m=v.to;v=m==null?null:m.to}var g=up(y);d.binaryExpressions=bn(g);var p=this,C;t:{if(this.connectWrappers.length!==0){C=!0;break t}for(var k=this.binaryExpressions,S=0,I=k.length;S<I;){var O=k[S];S=S+1|0;var Q;e:{for(var W=O.properties,lt=0,dt=W.length;lt<dt;){var le=W[lt];if(lt=lt+1|0,Ls(Sd(),le)){Q=!0;break e}}Q=!1}if(Q){C=!0;break t}var Ot;e:{for(var ve=O.methods,gt=0,Zt=ve.length;gt<Zt;){var te=ve[gt];if(gt=gt+1|0,Ls(Ed(),te)){Ot=!0;break e}}Ot=!1}if(Ot){C=!0;break t}}C=!1}p.useCache=C}i(Se).vg=function(){return this.source};i(Se).wg=function(){return this.propertyWrapper};i(Se).stringify=function(){return this.propertyWrapper.stringify()};i(Se).xg=function(){return this.targetIndex};i(Se).matchContext=function(t,e,n){return this.propertyWrapper.matchContext(new Gt(t),e,n)};i(Se).match=function(t,e,n){var r=this.matchContext(t,e,n),a;if(r==null)return null;a=r;var o=a;return o.get(this.targetIndex).current};i(Se).tg=function(){return this.fastQueryList};i(Se).yg=function(){return this.quickFindValue};i(Se).sg=function(){return this.isMatchRoot};i(Se).zg=function(){return this.connectWrappers};i(Se).bd=function(){return this.binaryExpressions};i(Se).ah=function(){return this.useCache};i(Se).isSlow=function(t){if(t.quickFind&&this.quickFindValue==null&&!this.isMatchRoot||(!t.fastQuery||this.propertyWrapper.fastQueryList.l())&&!this.isMatchRoot)return!0;var e;t:{for(var n=this.connectWrappers,r=0,a=n.length;r<a;){var o=n[r];if(r=r+1|0,N(o.segment.operator,ls())&&!(o.canFq&&t.fastQuery)){e=!0;break t}}e=!1}return!!e};i(Se).checkType=function(t){try{for(var e=this.binaryExpressions,n=0,r=e.length;n<r;){var a=e[n];if(n=n+1|0,!a.operator.value.od(a.left,a.right))throw new on(a);var o=Dc(a.left,t),s=Dc(a.right,t);if(o!=null&&s!=null&&!N(o,s))throw new ke(a,o,s)}}catch(c){if(c instanceof Tt){var l=c;return l}else throw c}return null};function Dc(t,e){Ti();var n;return t instanceof Ae?n=null:t instanceof he?n=La():t instanceof Ht?n=Oa():t instanceof _t?n=ja():t instanceof Me?n=So(t,e,e).type:qn(),n}function Bc(t,e,n){Ti();for(var r=0,a=t.params,o=0,s=a.length;o<s;){var l=a[o];o=o+1|0;var c=r;r=c+1|0;var f=e.arguments.k(c);if(!(f instanceof Ae))if(f instanceof he){if(!N(l.type,La()))throw new ie(e,f,La())}else if(f instanceof Ht){if(!N(l.type,Oa()))throw new ie(e,f,Oa())}else if(f instanceof _t){if(!N(l.type,ja()))throw new ie(e,f,ja())}else if(f instanceof Me){var h=So(f,l,n);if(!N(h.type,l.type))throw new ie(e,f,h.type)}else qn()}return t.returnType}function So(t,e,n){Ti();var r;if(t instanceof xt){var a=t.callee,o;if(a instanceof xt)throw Rt("Unsupported nested call");if(a instanceof Ct){for(var s=n.methods,l=It(),c=0,f=s.length;c<f;){var h=s[c];c=c+1|0,h.name===t.callee.value&&l.f(h)}if(l.l())throw new Ve(t.callee);for(var d=It(),v=l.h();v.i();){var y=v.j();y.params.length===t.arguments.m()&&d.f(y)}if(d.l())throw new rn(t);o=d}else if(a instanceof pt){for(var _=So(t.callee.object0,e,n).methods,m=It(),g=0,p=_.length;g<p;){var C=_[g];g=g+1|0,C.name===t.callee.property&&m.f(C)}if(m.l())throw new Qe(t.callee);for(var k=It(),S=m.h();S.i();){var I=S.j();I.params.length===t.arguments.m()&&k.f(I)}if(k.l())throw new an(t);o=k}else qn();var O=o;if(O.m()===1)return Bc(O.k(0),t,n),O.k(0).returnType;for(var Q=0,W=O.h();W.i();){var lt=W.j(),dt=Q;Q=dt+1|0;var le=Ao(dt);try{return Bc(lt,t,n),lt.returnType}catch(ei){if(ei instanceof Tt){var Ot=ei;if(le===(O.m()-1|0))throw Ot}else throw ei}}var ve=t.callee;if(ve instanceof Ct)throw new Ve(t.callee);var gt=t.callee;throw gt instanceof pt?new Qe(t.callee):Rt("Unsupported nested call")}else if(t instanceof Ct){var Zt=n.props,te;t:{for(var Ue=0,ue=Zt.length;Ue<ue;){var We=Zt[Ue];if(Ue=Ue+1|0,We.name===t.value){te=We;break t}}te=null}var mn=te,Rn=mn==null?null:mn.type,Pr;if(Rn==null)throw new en(t);Pr=Rn,r=Pr}else if(t instanceof pt){var P=So(t.object0,e,n).props,at;t:{for(var vt=0,Pt=P.length;vt<Pt;){var ce=P[vt];if(vt=vt+1|0,ce.name===t.property){at=ce;break t}}at=null}var Gn=at,Jn=Gn==null?null:Gn.type,Yn;if(Jn==null)throw new nn(t);Yn=Jn,r=Yn}else qn();return r}function mg(){return Ti(),["index","parent","depth"]}function gg(){return Ti(),["getChild"]}function yg(){return Wa("useCacheProperties",0,mu,function(){return Sd()},null)}function wg(){return Wa("useCacheMethods",0,mu,function(){return Ed()},null)}var Kc;function Ti(){Kc||(Kc=!0,$d=Aa(mg),Nd=Aa(gg))}function oe(t,e,n,r){r=r===u?null:r;var a=tn(n,e);To("expected "+t+" in selector at position "+e+", but got "+Wt(a==null?null:new rt(a)),this),B(this,oe),this.expectedValue=t,this.position=e,this.source=n,this.lh_1=r}i(oe).mh=function(){return this.expectedValue};i(oe).nh=function(){return this.position};i(oe).vg=function(){return this.source};i(oe).j7=function(){return this.lh_1};i(oe).pc=function(){return this.expectedValue};i(oe).qc=function(){return this.position};i(oe).ed=function(){return this.source};i(oe).fd=function(){return this.lh_1};i(oe).oh=function(t,e,n,r){return new oe(t,e,n,r)};i(oe).copy=function(t,e,n,r,a){return t=t===u?this.expectedValue:t,e=e===u?this.position:e,n=n===u?this.source:n,r=r===u?this.lh_1:r,this.oh(t,e,n,r)};i(oe).toString=function(){return"SyntaxError(expectedValue="+this.expectedValue+", position="+this.position+", source="+this.source+", cause="+Wt(this.lh_1)+")"};i(oe).hashCode=function(){var t=Ge(this.expectedValue);return t=D(t,31)+this.position|0,t=D(t,31)+Ge(this.source)|0,t=D(t,31)+(this.lh_1==null?0:st(this.lh_1))|0,t};i(oe).equals=function(t){if(this===t)return!0;if(!(t instanceof oe))return!1;var e=t instanceof oe?t:$();return!(this.expectedValue!==e.expectedValue||this.position!==e.position||this.source!==e.source||!N(this.lh_1,e.lh_1))};function wt(t,e,n,r){n=n===u?"":n,r=r===u?null:r;var a;if(e>=A(t))a=!0;else{var o;A(n)>0?o=!Je(n,L(t,e)):o=!1,a=o}if(a)throw new oe(r==null?n:r,e,F(t))}function re(t,e,n,r){throw n=n===u?"":n,r=r===u?null:r,new oe(n,e,F(t),r)}function bg(t){return function(e,n,r){return t(e,n,r)}}function kg(t){return function(e){return np(t(e))}}function Bu(){}i(Bu).multiplatformBuild=function(t,e,n,r,a){var o=bg(e);return new bt(t,o,n,kg(r),a)};var qd;function Cg(){return qd}function xg(t,e,n){return null}function Sg(t){return function(e){for(var n=t(e);n!=null;)n=t(Te(n));return n}}function pi(t,e,n){this.xh_1=t,this.yh_1=e,Pe.call(this,n)}i(pi).di=function(t,e){var n=this.ei(t,e);return n.k6_1=ut,n.l6_1=null,n.q6()};i(pi).h7=function(t,e){return this.di(t instanceof $r?t:$(),e)};i(pi).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=4,this.ai_1=Ql(this.xh_1(this.yh_1)),this.ai_1.l())return ut;tu(this.ai_1);var n=this;n.bi_1=It(),this.i6_1=1;continue t;case 1:if(this.ci_1=this.ai_1.x2(to(this.ai_1)),this.i6_1=2,t=this.zh_1.p9(this.ci_1,this),t===Nr())return t;continue t;case 2:for(var r=this.xh_1(this.ci_1).h();r.i();){var a=r.j();this.bi_1.f(a)}if(!this.bi_1.l()){var o=this.bi_1.m()-1|0;if(0<=o)do{var s=o;o=o+-1|0,this.ai_1.f(this.bi_1.k(s))}while(0<=o);this.bi_1.n3()}if(!this.ai_1.l()){this.i6_1=1;continue t}this.i6_1=3;continue t;case 3:return ut;case 4:throw this.l6_1}}catch(c){var l=c;if(this.j6_1===4)throw l;this.i6_1=this.j6_1,this.l6_1=l}while(!0)};i(pi).ei=function(t,e){var n=new pi(this.xh_1,this.yh_1,e);return n.zh_1=t,n};function $g(t,e,n){var r=new pi(t,e,n),a=function(o,s){return r.di(o,s)};return a.$arity=1,a}function Eg(t){return function(e){return no($g(t,e,null))}}function Ng(t){return function(e,n){return t.checkOffset(e)}}function Ig(t){return function(e,n){var r=t(e),a;n.maxOffset!=null?a=bf(r,Te(n.maxOffset)+1|0):a=r;var o=a;return Gl(o,Ng(n))}}function _i(t,e,n,r){this.ni_1=t,this.oi_1=e,this.pi_1=n,Pe.call(this,r)}i(_i).di=function(t,e){var n=this.ei(t,e);return n.k6_1=ut,n.l6_1=null,n.q6()};i(_i).h7=function(t,e){return this.di(t instanceof $r?t:$(),e)};i(_i).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:this.j6_1=6;var n=this,r=this.ni_1(this.oi_1),a;if(r==null)return ut;a=r,n.ri_1=a,this.si_1=0,this.i6_1=1;continue t;case 1:if(this.ri_1==null){this.i6_1=5;continue t}if(this.ti_1=this.ri_1,this.ti_1==null){this.ui_1=null,this.i6_1=4;continue t}else{var o=this;o.vi_1=this.ti_1;var s=this;if(s.wi_1=this.vi_1,this.pi_1.checkOffset(this.si_1)){if(this.i6_1=2,t=this.qi_1.p9(this.wi_1,this),t===Nr())return t;continue t}else{this.i6_1=3;continue t}}case 2:this.i6_1=3;continue t;case 3:this.si_1=this.si_1+1|0;var l=this.pi_1.maxOffset;if(l!=null){if(this.si_1>l)return ut}var c=this;this.ri_1=this.ni_1(this.wi_1),c.ui_1=ut,this.i6_1=4;continue t;case 4:this.i6_1=1;continue t;case 5:return ut;case 6:throw this.l6_1}}catch(h){var f=h;if(this.j6_1===6)throw f;this.i6_1=this.j6_1,this.l6_1=f}while(!0)};i(_i).ei=function(t,e){var n=new _i(this.ni_1,this.oi_1,this.pi_1,e);return n.qi_1=t,n};function qg(t,e,n,r){var a=new _i(t,e,n,r),o=function(s,l){return a.di(s,l)};return o.$arity=1,o}function Ag(t){return function(e,n){return no(qg(t,e,n,null))}}function Tg(t){return function(e){return!N(e,t)}}function Pg(t){return function(e,n){return t.checkOffset(e)}}function Mg(t,e){return function(n,r){var a=t(n),o;if(a!=null){var s=e(a),l=Ql(pp(s,Tg(n)));tu(l);var c=cp(l);o=Gl(c,Pg(r))}else o=Ii();return o}}function Rg(t){return function(e){return!N(e,t)}}function Lg(t){return function(e,n){return t.checkOffset(e)}}function Og(t,e){return function(n,r){var a=t(n),o;if(a!=null){var s=e(a),l=_p(mp(s,Rg(n)),1),c;r.maxOffset!=null?c=bf(l,Te(r.maxOffset)+1|0):c=l;var f=c;o=Gl(f,Lg(r))}else o=Ii();return o}}function mi(t,e,n,r){this.fj_1=t,this.gj_1=e,this.hj_1=n,Pe.call(this,r)}i(mi).di=function(t,e){var n=this.ei(t,e);return n.k6_1=ut,n.l6_1=null,n.q6()};i(mi).h7=function(t,e){return this.di(t instanceof $r?t:$(),e)};i(mi).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=5,this.jj_1=Ql(this.fj_1(this.gj_1)),this.jj_1.l())return ut;tu(this.jj_1);var n=this;n.kj_1=It(),this.lj_1=0,this.i6_1=1;continue t;case 1:if(this.mj_1=this.jj_1.x2(to(this.jj_1)),this.hj_1.checkOffset(this.lj_1)){if(this.i6_1=2,t=this.ij_1.p9(this.mj_1,this),t===Nr())return t;continue t}else{this.i6_1=3;continue t}case 2:this.i6_1=3;continue t;case 3:this.lj_1=this.lj_1+1|0;var r=this.hj_1.maxOffset;if(r!=null){if(this.lj_1>r)return ut}for(var a=this.fj_1(this.mj_1).h();a.i();){var o=a.j();this.kj_1.f(o)}if(!this.kj_1.l()){var s=this.kj_1.m()-1|0;if(0<=s)do{var l=s;s=s+-1|0,this.jj_1.f(this.kj_1.k(l))}while(0<=s);this.kj_1.n3()}if(!this.jj_1.l()){this.i6_1=1;continue t}this.i6_1=4;continue t;case 4:return ut;case 5:throw this.l6_1}}catch(f){var c=f;if(this.j6_1===5)throw c;this.i6_1=this.j6_1,this.l6_1=c}while(!0)};i(mi).ei=function(t,e){var n=new mi(this.fj_1,this.gj_1,this.hj_1,e);return n.ij_1=t,n};function jg(t,e,n,r){var a=new mi(t,e,n,r),o=function(s,l){return a.di(s,l)};return o.$arity=1,o}function Fg(t){return function(e,n){return no(jg(t,e,n,null))}}function zg(t,e){return Ii()}function gi(t,e,n,r,a){this.vj_1=t,this.wj_1=e,this.xj_1=n,this.yj_1=r,Pe.call(this,a)}i(gi).di=function(t,e){var n=this.ei(t,e);return n.k6_1=ut,n.l6_1=null,n.q6()};i(gi).h7=function(t,e){return this.di(t instanceof $r?t:$(),e)};i(gi).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=7,this.ak_1=this.vj_1.match(this.wj_1,this.xj_1,this.yj_1),this.ak_1==null){this.bk_1=null,this.i6_1=2;continue t}else{var n=this;n.ck_1=this.ak_1;var r=this;if(r.dk_1=this.ck_1,this.i6_1=1,t=this.zj_1.p9(this.dk_1,this),t===Nr())return t;continue t}case 1:var a=this;a.bk_1=ut,this.i6_1=2;continue t;case 2:var o=this;o.ek_1=this.xj_1.getDescendants(this.wj_1),this.fk_1=this.ek_1.h(),this.i6_1=3;continue t;case 3:if(!this.fk_1.i()){this.i6_1=6;continue t}this.gk_1=this.fk_1.j();var s=this;if(s.hk_1=this.gk_1,this.ik_1=this.vj_1.match(this.hk_1,this.xj_1,this.yj_1),this.ik_1==null){this.jk_1=null,this.i6_1=5;continue t}else{var l=this;l.kk_1=this.ik_1;var c=this;if(c.lk_1=this.kk_1,this.i6_1=4,t=this.zj_1.p9(this.lk_1,this),t===Nr())return t;continue t}case 4:var f=this;f.jk_1=ut,this.i6_1=5;continue t;case 5:this.i6_1=3;continue t;case 6:return ut;case 7:throw this.l6_1}}catch(d){var h=d;if(this.j6_1===7)throw h;this.i6_1=this.j6_1,this.l6_1=h}while(!0)};i(gi).ei=function(t,e){var n=new gi(this.vj_1,this.wj_1,this.xj_1,this.yj_1,e);return n.zj_1=t,n};function Dg(t,e,n,r,a){var o=new gi(t,e,n,r,a),s=function(l,c){return o.di(l,c)};return s.$arity=1,s}function yi(t,e,n,r,a){this.uk_1=t,this.vk_1=e,this.wk_1=n,this.xk_1=r,Pe.call(this,a)}i(yi).ll=function(t,e){var n=this.ml(t,e);return n.k6_1=ut,n.l6_1=null,n.q6()};i(yi).h7=function(t,e){return this.ll(t instanceof $r?t:$(),e)};i(yi).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=7,this.zk_1=this.uk_1.matchContext(this.vk_1,this.wk_1,this.xk_1),this.zk_1==null){this.al_1=null,this.i6_1=2;continue t}else{var n=this;n.bl_1=this.zk_1;var r=this;if(r.cl_1=this.bl_1,this.i6_1=1,t=this.yk_1.p9(this.cl_1,this),t===Nr())return t;continue t}case 1:var a=this;a.al_1=ut,this.i6_1=2;continue t;case 2:var o=this;o.dl_1=this.wk_1.getDescendants(this.vk_1),this.el_1=this.dl_1.h(),this.i6_1=3;continue t;case 3:if(!this.el_1.i()){this.i6_1=6;continue t}this.fl_1=this.el_1.j();var s=this;if(s.gl_1=this.fl_1,this.hl_1=this.uk_1.matchContext(this.gl_1,this.wk_1,this.xk_1),this.hl_1==null){this.il_1=null,this.i6_1=5;continue t}else{var l=this;l.jl_1=this.hl_1;var c=this;if(c.kl_1=this.jl_1,this.i6_1=4,t=this.yk_1.p9(this.kl_1,this),t===Nr())return t;continue t}case 4:var f=this;f.il_1=ut,this.i6_1=5;continue t;case 5:this.i6_1=3;continue t;case 6:return ut;case 7:throw this.l6_1}}catch(d){var h=d;if(this.j6_1===7)throw h;this.i6_1=this.j6_1,this.l6_1=h}while(!0)};i(yi).ml=function(t,e){var n=new yi(this.uk_1,this.vk_1,this.wk_1,this.xk_1,e);return n.yk_1=t,n};function Bg(t,e,n,r,a){var o=new yi(t,e,n,r,a),s=function(l,c){return o.ll(l,c)};return s.$arity=1,s}function bt(t,e,n,r,a,o,s,l,c,f,h,d,v){var y;e===u?y=xg:y=e,e=y;var _;o===u?_=Sg(a):_=o,o=_;var m;s===u?m=Eg(r):m=s,s=m;var g;l===u?g=Ig(r):g=l,l=g;var p;c===u?p=Ag(a):p=c,c=p;var C;f===u?C=Mg(a,r):C=f,f=C;var k;h===u?k=Og(a,r):k=h,h=k;var S;d===u?S=Fg(r):S=d,d=S;var I;v===u?I=zg:I=v,v=I,this.getAttr=t,this.getInvoke=e,this.getName=n,this.getChildren=r,this.getParent=a,this.getRoot=o,this.getDescendants=s,this.traverseChildren=l,this.traverseAncestors=c,this.traverseBeforeBrothers=f,this.traverseAfterBrothers=h,this.traverseDescendants=d,this.traverseFastQueryDescendants=v}i(bt).nl=function(){return this.getAttr};i(bt).ol=function(){return this.getInvoke};i(bt).pl=function(){return this.getName};i(bt).ql=function(){return this.getChildren};i(bt).rl=function(){return this.getParent};i(bt).sl=function(){return this.getRoot};i(bt).tl=function(){return this.getDescendants};i(bt).ul=function(){return this.traverseChildren};i(bt).vl=function(){return this.traverseAncestors};i(bt).wl=function(){return this.traverseBeforeBrothers};i(bt).xl=function(){return this.traverseAfterBrothers};i(bt).yl=function(){return this.traverseDescendants};i(bt).zl=function(){return this.traverseFastQueryDescendants};i(bt).am=function(t,e,n){return no(Dg(e,t,this,n,null))};i(bt).querySelectorAll$default=function(t,e,n,r){return n=n===u?ca():n,r===u?this.am(t,e,n):r.am.call(this,t,e,n)};i(bt).bm=function(t,e,n){return kf(this.am(t,e,n))};i(bt).querySelector=function(t,e,n,r){return n=n===u?ca():n,this.bm(t,e,n)};i(bt).cm=function(t,e,n){return no(Bg(e,t,this,n,null))};i(bt).querySelectorAllContext$default=function(t,e,n,r){return n=n===u?ca():n,r===u?this.cm(t,e,n):r.cm.call(this,t,e,n)};i(bt).dm=function(t,e,n){return kf(this.cm(t,e,n))};i(bt).querySelectorContext=function(t,e,n,r){return n=n===u?ca():n,this.dm(t,e,n)};i(bt).em=function(t,e,n){var r=Cf(this.am(t,e,n)),a=et(r,Hn)?r:$(),o=bn(a);return Zi(o)?o:$()};i(bt).querySelectorAllArray=function(t,e,n,r){return n=n===u?ca():n,this.em(t,e,n)};i(bt).fm=function(t,e,n){var r=Cf(this.cm(t,e,n));return bn(r)};i(bt).querySelectorAllContextArray=function(t,e,n,r){return n=n===u?ca():n,this.fm(t,e,n)};function qe(t){Ai.call(this),this.numbers=t;var e=this,n=mf(this.numbers);e.gm_1=(n==null?1:n)-1|0,this.hm_1=fp(this.numbers);for(var r=this,a=this.numbers,o=Vi(Xs(a,10)),s=a.h();s.i();){var l=s.j(),c=l-1|0;o.f(c)}r.im_1=o}i(qe).jm=function(){return this.numbers};i(qe).yd=function(){return this.gm_1};i(qe).zd=function(){return this.hm_1};i(qe).checkOffset=function(t){return bm(this.im_1,t)>=0};i(qe).getOffset=function(t){return this.numbers.k(t)};i(qe).stringify=function(){if(this.numbers.m()===1){var t;return Hi(this.numbers)===1?t="":t=Hi(this.numbers).toString(),t}return"("+In(this.numbers,",")+")"};i(qe).pc=function(){return this.numbers};i(qe).km=function(t){return new qe(t)};i(qe).copy=function(t,e){return t=t===u?this.numbers:t,this.km(t)};i(qe).toString=function(){return"TupleExpression(numbers="+F(this.numbers)+")"};i(qe).hashCode=function(){return st(this.numbers)};i(qe).equals=function(t){if(this===t)return!0;if(!(t instanceof qe))return!1;var e=t instanceof qe?t:$();return!!N(this.numbers,e.numbers)};function ui(){Il=this,ln.call(this,"boolean")}i(ui).toString=function(){return"BooleanType"};i(ui).hashCode=function(){return 1452179029};i(ui).equals=function(t){return this===t?!0:t instanceof ui?(t instanceof ui||$(),!0):!1};var Il;function La(){return Il==null&&new ui,Il}function ci(){ql=this,ln.call(this,"int")}i(ci).toString=function(){return"IntType"};i(ci).hashCode=function(){return-1601449956};i(ci).equals=function(t){return this===t?!0:t instanceof ci?(t instanceof ci||$(),!0):!1};var ql;function Oa(){return ql==null&&new ci,ql}function fi(){Al=this,ln.call(this,"string")}i(fi).toString=function(){return"StringType"};i(fi).hashCode=function(){return 1719560632};i(fi).equals=function(t){return this===t?!0:t instanceof fi?(t instanceof fi||$(),!0):!1};var Al;function ja(){return Al==null&&new fi,Al}function De(t){ln.call(this,"object"),this.name=t}i(De).pg=function(){return this.name};i(De).pc=function(){return this.name};i(De).sf=function(t){return new De(t)};i(De).copy=function(t,e){return t=t===u?this.name:t,this.sf(t)};i(De).toString=function(){return"ObjectType(name="+this.name+")"};i(De).hashCode=function(){return Ge(this.name)};i(De).equals=function(t){if(this===t)return!0;if(!(t instanceof De))return!1;var e=t instanceof De?t:$();return this.name===e.name};function ln(t){this.key=t}i(ln).q1=function(){return this.key};function Kg(t){return t.stringify()}function H(t,e,n){var r;n===u?r=[]:r=n,n=r,this.name=t,this.returnType=e,this.params=n}i(H).pg=function(){return this.name};i(H).lm=function(){return this.returnType};i(H).mm=function(){return this.params};i(H).stringify=function(){return this.name+"("+pf(this.params,", ",u,u,u,u,Kg)+"): "+this.returnType.stringify()};i(H).equals=function(t){return this===t?!0:!(t==null||!Co(this).equals(Co(t))||(t instanceof H||$(),this.name!==t.name)||!this.returnType.equals(t.returnType)||!Ks(this.params,t.params))};i(H).hashCode=function(){var t=Ge(this.name);return t=D(31,t)+this.returnType.hashCode()|0,t=D(31,t)+Us(this.params)|0,t};i(H).pc=function(){return this.name};i(H).qc=function(){return this.returnType};i(H).ed=function(){return this.params};i(H).nm=function(t,e,n){return new H(t,e,n)};i(H).copy=function(t,e,n,r){return t=t===u?this.name:t,e=e===u?this.returnType:e,n=n===u?this.params:n,this.nm(t,e,n)};i(H).toString=function(){return"MethodInfo(name="+this.name+", returnType="+this.returnType.toString()+", params="+F(this.params)+")"};function Y(t,e){this.name=t,this.type=e}i(Y).pg=function(){return this.name};i(Y).hf=function(){return this.type};i(Y).pc=function(){return this.name};i(Y).qc=function(){return this.type};i(Y).om=function(t,e){return new Y(t,e)};i(Y).copy=function(t,e,n){return t=t===u?this.name:t,e=e===u?this.type:e,this.om(t,e)};i(Y).toString=function(){return"PropInfo(name="+this.name+", type="+this.type.toString()+")"};i(Y).hashCode=function(){var t=Ge(this.name);return t=D(t,31)+this.type.hashCode()|0,t};i(Y).equals=function(t){if(this===t)return!0;if(!(t instanceof Y))return!1;var e=t instanceof Y?t:$();return!(this.name!==e.name||!this.type.equals(e.type))};function Bt(t,e,n){var r;e===u?r=[]:r=e,e=r;var a;n===u?a=[]:a=n,n=a,this.type=t,this.props=e,this.methods=n}i(Bt).hf=function(){return this.type};i(Bt).pm=function(t){this.props=t};i(Bt).qm=function(){return this.props};i(Bt).rm=function(t){this.methods=t};i(Bt).dd=function(){return this.methods};i(Bt).stringify=function(){var t,e=this.type;return e instanceof De?t=this.type.name:t=this.type.key,t};i(Bt).equals=function(t){return this===t?!0:!(t==null||!Co(this).equals(Co(t))||(t instanceof Bt||$(),!N(this.type,t.type))||!Ks(this.props,t.props)||!Ks(this.methods,t.methods))};i(Bt).hashCode=function(){var t=st(this.type);return t=D(31,t)+Us(this.props)|0,t=D(31,t)+Us(this.methods)|0,t};i(Bt).pc=function(){return this.type};i(Bt).qc=function(){return this.props};i(Bt).ed=function(){return this.methods};i(Bt).sm=function(t,e,n){return new Bt(t,e,n)};i(Bt).copy=function(t,e,n,r){return t=t===u?this.type:t,e=e===u?this.props:e,n=n===u?this.methods:n,this.sm(t,e,n)};i(Bt).toString=function(){return"TypeInfo(type="+F(this.type)+", props="+F(this.props)+", methods="+F(this.methods)+")"};function Ug(t){return t.stringify()}function Wg(t){return!1}function Me(t){Xt.call(this,t,"var"),this.vm_1=t}i(Me).r1=function(){return this.vm_1};function Ct(t,e){Me.call(this,e),this.zm_1=t,this.name=e,this.an_1=this.zm_1+this.value.length|0,this.isEqual=this.name==="equal",this.isNotEqual=this.name==="notEqual"}i(Ct).tc=function(){return this.zm_1};i(Ct).pg=function(){return this.name};i(Ct).uc=function(){return this.an_1};i(Ct).nd=function(t,e){return e.getAttr(t,this.value)};i(Ct).cd=function(){return[this.value]};i(Ct).dd=function(){return[]};i(Ct).bn=function(){return this.isEqual};i(Ct).cn=function(){return this.isNotEqual};i(Ct).pc=function(){return this.zm_1};i(Ct).qc=function(){return this.name};i(Ct).dn=function(t,e){return new Ct(t,e)};i(Ct).copy=function(t,e,n){return t=t===u?this.zm_1:t,e=e===u?this.name:e,this.dn(t,e)};i(Ct).toString=function(){return"Identifier(start="+this.zm_1+", name="+this.name+")"};i(Ct).hashCode=function(){var t=this.zm_1;return t=D(t,31)+Ge(this.name)|0,t};i(Ct).equals=function(t){if(this===t)return!0;if(!(t instanceof Ct))return!1;var e=t instanceof Ct?t:$();return!(this.zm_1!==e.zm_1||this.name!==e.name)};function pt(t,e,n,r){Me.call(this,n.stringify()+"."+r),this.jh_1=t,this.kh_1=e,this.object0=n,this.property=r,this.isPropertyOr=this.property==="or",this.isPropertyAnd=this.property==="and",this.isPropertyIfElse=this.property==="ifElse"}i(pt).tc=function(){return this.jh_1};i(pt).uc=function(){return this.kh_1};i(pt).en=function(){return this.object0};i(pt).fn=function(){return this.property};i(pt).nd=function(t,e){var n=this.object0.nd(t,e);return n==null?null:e.getAttr(n,this.property)};i(pt).cd=function(){return ar([this.object0.properties,[this.property]])};i(pt).dd=function(){return this.object0.methods};i(pt).gn=function(){return this.isPropertyOr};i(pt).hn=function(){return this.isPropertyAnd};i(pt).in=function(){return this.isPropertyIfElse};i(pt).pc=function(){return this.jh_1};i(pt).qc=function(){return this.kh_1};i(pt).ed=function(){return this.object0};i(pt).fd=function(){return this.property};i(pt).jn=function(t,e,n,r){return new pt(t,e,n,r)};i(pt).copy=function(t,e,n,r,a){return t=t===u?this.jh_1:t,e=e===u?this.kh_1:e,n=n===u?this.object0:n,r=r===u?this.property:r,this.jn(t,e,n,r)};i(pt).toString=function(){return"MemberExpression(start="+this.jh_1+", end="+this.kh_1+", object0="+F(this.object0)+", property="+this.property+")"};i(pt).hashCode=function(){var t=this.jh_1;return t=D(t,31)+this.kh_1|0,t=D(t,31)+st(this.object0)|0,t=D(t,31)+Ge(this.property)|0,t};i(pt).equals=function(t){if(this===t)return!0;if(!(t instanceof pt))return!1;var e=t instanceof pt?t:$();return!(this.jh_1!==e.jh_1||this.kh_1!==e.kh_1||!N(this.object0,e.object0)||this.property!==e.property)};function xt(t,e,n,r){var a=n.stringify();Me.call(this,a+"("+In(r,",",u,u,u,u,Ug)+")"),this.eh_1=t,this.fh_1=e,this.callee=n,this.arguments=r}i(xt).tc=function(){return this.eh_1};i(xt).uc=function(){return this.fh_1};i(xt).kn=function(){return this.callee};i(xt).ln=function(){return this.arguments};i(xt).nd=function(t,e){var n=this.callee,r;if(n instanceof xt)r=null;else if(n instanceof Ct){var a;if(this.callee.isEqual)a=sr().compare(this.arguments.k(0).nd(t,e),this.arguments.k(1).nd(t,e));else if(this.callee.isNotEqual)a=!sr().compare(this.arguments.k(0).nd(t,e),this.arguments.k(1).nd(t,e));else{for(var o=this.arguments,s=Vi(Xs(o,10)),l=o.h();l.i();){var c=l.j(),f=c.nd(t,e);if(f==null)return null;s.f(f)}a=e.getInvoke(t,this.callee.name,s)}r=a}else if(n instanceof pt){var h=this.callee.object0.nd(t,e);if(h==null)return null;var d=h,v;if(this.callee.isPropertyOr){var y;if(typeof d=="boolean"?d:$())y=!0;else{var _=this.arguments.k(0).nd(t,e);if(_==null)return null;var m=_;y=typeof m=="boolean"?m:$()}v=y}else if(this.callee.isPropertyAnd){var g;if(typeof d=="boolean"?d:$()){var p=this.arguments.k(0).nd(t,e);if(p==null)return null;var C=p;g=typeof C=="boolean"?C:$()}else g=!1;v=g}else if(this.callee.isPropertyIfElse){var k;(typeof d=="boolean"?d:$())?k=this.arguments.k(0).nd(t,e):k=this.arguments.k(1).nd(t,e),v=k}else{for(var S=this.arguments,I=Vi(Xs(S,10)),O=S.h();O.i();){var Q=O.j(),W=Q.nd(t,e);if(W==null)return null;I.f(W)}v=e.getInvoke(d,this.callee.property,I)}r=v}else qn();return r};i(xt).cd=function(){for(var t=Kl(this.callee.properties),e=this.arguments,n=It(),r=e.h();r.i();){var a=r.j(),o=Bl(a.properties);zo(n,o)}var s=gf(t,n);return bn(s)};i(xt).dd=function(){var t=this.callee,e;t instanceof xt?e=this.callee.methods:t instanceof Ct?e=[this.callee.name]:t instanceof pt?e=ar([this.callee.object0.methods,[this.callee.property]]):qn();for(var n=Kl(e),r=this.arguments,a=It(),o=r.h();o.i();){var s=o.j(),l=Bl(s.methods);zo(a,l)}var c=gf(n,a);return bn(c)};i(xt).pc=function(){return this.eh_1};i(xt).qc=function(){return this.fh_1};i(xt).ed=function(){return this.callee};i(xt).fd=function(){return this.arguments};i(xt).mn=function(t,e,n,r){return new xt(t,e,n,r)};i(xt).copy=function(t,e,n,r,a){return t=t===u?this.eh_1:t,e=e===u?this.fh_1:e,n=n===u?this.callee:n,r=r===u?this.arguments:r,this.mn(t,e,n,r)};i(xt).toString=function(){return"CallExpression(start="+this.eh_1+", end="+this.fh_1+", callee="+F(this.callee)+", arguments="+F(this.arguments)+")"};i(xt).hashCode=function(){var t=this.eh_1;return t=D(t,31)+this.fh_1|0,t=D(t,31)+st(this.callee)|0,t=D(t,31)+st(this.arguments)|0,t};i(xt).equals=function(t){if(this===t)return!0;if(!(t instanceof xt))return!1;var e=t instanceof xt?t:$();return!(this.eh_1!==e.eh_1||this.fh_1!==e.fh_1||!N(this.callee,e.callee)||!N(this.arguments,e.arguments))};function Ye(t,e){Xt.call(this,t,e),this.pn_1=t,this.qn_1=e}i(Ye).r1=function(){return this.pn_1};i(Ye).hf=function(){return this.qn_1};i(Ye).nd=function(t,e){return this.value};i(Ye).cd=function(){return[]};i(Ye).dd=function(){return[]};function Ae(t){Ye.call(this,null,"null"),this.vn_1=t,this.wn_1=this.vn_1+4|0}i(Ae).tc=function(){return this.vn_1};i(Ae).uc=function(){return this.wn_1};i(Ae).pc=function(){return this.vn_1};i(Ae).xn=function(t){return new Ae(t)};i(Ae).copy=function(t,e){return t=t===u?this.vn_1:t,this.xn(t)};i(Ae).toString=function(){return"NullLiteral(start="+this.vn_1+")"};i(Ae).hashCode=function(){return this.vn_1};i(Ae).equals=function(t){if(this===t)return!0;if(!(t instanceof Ae))return!1;var e=t instanceof Ae?t:$();return this.vn_1===e.vn_1};function he(t,e){Ye.call(this,e,"boolean"),this.co_1=t,this.do_1=e,this.eo_1=this.co_1+(this.do_1?4:5)|0}i(he).tc=function(){return this.co_1};i(he).r1=function(){return this.do_1};i(he).uc=function(){return this.eo_1};i(he).pc=function(){return this.co_1};i(he).qc=function(){return this.do_1};i(he).fo=function(t,e){return new he(t,e)};i(he).copy=function(t,e,n){return t=t===u?this.co_1:t,e=e===u?this.do_1:e,this.fo(t,e)};i(he).toString=function(){return"BooleanLiteral(start="+this.co_1+", value="+this.do_1+")"};i(he).hashCode=function(){var t=this.co_1;return t=D(t,31)+Sa(this.do_1)|0,t};i(he).equals=function(t){if(this===t)return!0;if(!(t instanceof he))return!1;var e=t instanceof he?t:$();return!(this.co_1!==e.co_1||this.do_1!==e.do_1)};function Ht(t,e,n){Ye.call(this,n,"int"),this.ko_1=t,this.lo_1=e,this.mo_1=n}i(Ht).tc=function(){return this.ko_1};i(Ht).uc=function(){return this.lo_1};i(Ht).r1=function(){return this.mo_1};i(Ht).pc=function(){return this.ko_1};i(Ht).qc=function(){return this.lo_1};i(Ht).ed=function(){return this.mo_1};i(Ht).no=function(t,e,n){return new Ht(t,e,n)};i(Ht).copy=function(t,e,n,r){return t=t===u?this.ko_1:t,e=e===u?this.lo_1:e,n=n===u?this.mo_1:n,this.no(t,e,n)};i(Ht).toString=function(){return"IntLiteral(start="+this.ko_1+", end="+this.lo_1+", value="+this.mo_1+")"};i(Ht).hashCode=function(){var t=this.ko_1;return t=D(t,31)+this.lo_1|0,t=D(t,31)+this.mo_1|0,t};i(Ht).equals=function(t){if(this===t)return!0;if(!(t instanceof Ht))return!1;var e=t instanceof Ht?t:$();return!(this.ko_1!==e.ko_1||this.lo_1!==e.lo_1||this.mo_1!==e.mo_1)};function _t(t,e,n,r){r=r===u?null:r,Ye.call(this,n,"string"),this.td_1=t,this.ud_1=e,this.vd_1=n,this.wd_1=r;var a=this,o=this.wd_1,s;if(o==null)s=null;else{var l=by(this.vd_1);s=l==null?o:l}var c=s,f;c==null?f=Wg:f=c,a.xd_1=f}i(_t).tc=function(){return this.td_1};i(_t).uc=function(){return this.ud_1};i(_t).r1=function(){return this.vd_1};i(_t).oo=function(){return this.wd_1};i(_t).stringify=function(){return wy(this.vd_1)};i(_t).po=function(){return this.xd_1};i(_t).pc=function(){return this.td_1};i(_t).qc=function(){return this.ud_1};i(_t).ed=function(){return this.vd_1};i(_t).qo=function(){return this.wd_1};i(_t).ro=function(t,e,n,r){return new _t(t,e,n,r)};i(_t).copy=function(t,e,n,r,a){return t=t===u?this.td_1:t,e=e===u?this.ud_1:e,n=n===u?this.vd_1:n,r=r===u?this.wd_1:r,this.ro(t,e,n,r)};i(_t).toString=function(){return"StringLiteral(start="+this.td_1+", end="+this.ud_1+", value="+this.vd_1+", matches="+Wt(this.wd_1)+")"};i(_t).hashCode=function(){var t=this.td_1;return t=D(t,31)+this.ud_1|0,t=D(t,31)+Ge(this.vd_1)|0,t=D(t,31)+(this.wd_1==null?0:st(this.wd_1))|0,t};i(_t).equals=function(t){if(this===t)return!0;if(!(t instanceof _t))return!1;var e=t instanceof _t?t:$();return!(this.td_1!==e.td_1||this.ud_1!==e.ud_1||this.vd_1!==e.vd_1||!N(this.wd_1,e.wd_1))};function Xt(t,e){this.ld_1=t,this.md_1=e}i(Xt).r1=function(){return this.ld_1};i(Xt).hf=function(){return this.md_1};i(Xt).stringify=function(){return Wt(this.value)};function zt(t,e){t=t===u?"":t,this.so_1=t,this.uo_1=e}i(zt).vo=function(t,e){return this.uo_1(t,e,this.so_1)};i(zt).toString=function(){return"Parser(prefix="+this.so_1+", temp="+F(this.uo_1)+")"};i(zt).hashCode=function(){var t=Ge(this.so_1);return t=D(t,31)+st(this.uo_1)|0,t};i(zt).equals=function(t){if(this===t)return!0;if(!(t instanceof zt))return!1;var e=t instanceof zt?t:$();return!(this.so_1!==e.so_1||!N(this.uo_1,e.uo_1))};function At(t,e){e=e===u?0:e,this.wo_1=t,this.xo_1=e}i(At).toString=function(){return"ParserResult(data="+Wt(this.wo_1)+", length="+this.xo_1+")"};i(At).hashCode=function(){var t=this.wo_1==null?0:st(this.wo_1);return t=D(t,31)+this.xo_1|0,t};i(At).equals=function(t){if(this===t)return!0;if(!(t instanceof At))return!1;var e=t instanceof At?t:$();return!(!N(this.wo_1,e.wo_1)||this.xo_1!==e.xo_1)};function Hg(t,e){var n=0,r=tn(e,n);if(!N(r==null?null:new rt(r),new rt(40)))return!1;n=n+1|0,n=n+t.yo_1.vo(e,n).xo_1|0;var a=ai(48,57),o=tn(e,n),s,l=o;if((l==null?null:new rt(l))!=null?s=a.xb(o):s=!1,!s)return!1;n=n+t.cp_1.vo(e,n).xo_1|0,n=n+t.yo_1.vo(e,n).xo_1|0;var c=tn(e,n);return N(c==null?null:new rt(c),new rt(44))}function Vg(t,e,n){var r=is().allSubClasses,a;t:{for(var o=0,s=r.length;o<s;){var l=r[o];if(o=o+1|0,es(e,l.key,n)){a=l;break t}}a=null}var c=a,f;c==null?re(e,n,"CompareOperator"):f=c;var h=f;return new Ut(n,n+h.key.length|0,h)}function Tl(t,e,n){var r=e;if((r==null?null:new rt(r))==null)return!1;var a,o,s,l=e;return N(l==null?null:new rt(l),new rt(95))?s=!0:s=ai(97,122).xb(e),s?o=!0:o=ai(65,90).xb(e),o?a=!0:a=!n&&ai(48,57).xb(e),a}function Uc(t,e,n,r){return n=n===u?!1:n,Tl(t,e,n)}function Is(t,e,n,r){if(es(e,r,n)){var a=tn(e,n+r.length|0),o,s=a;if((s==null?null:new rt(s))==null)return!0;o=a;var l=o;return!(l===95||97<=l&&l<=122||65<=l&&l<=90||48<=l&&l<=57)}return!1}function Wc(t,e,n){var r="tfn-"+t.ip_1.so_1+t.cp_1.so_1+t.jp_1;wt(e,n,r);var a=t.qp(e,n);return a}function Qg(t,e,n){var r=n,a=Wc(t,e,r);r=r+a.a()|0,r=r+t.yo_1.vo(e,r).xo_1|0;var o=Vg(t,e,r);r=r+o.a()|0,r=r+t.yo_1.vo(e,r).xo_1|0;var s=Wc(t,e,r),l,c;if(N(o.value,as())||N(o.value,ju())?c=s instanceof _t:c=!1,c){var f;try{f=Ey(s.vd_1)}catch(_){var h;if(_ instanceof xn){var d=_;re(e,r,"valid primitive string regex",d)}else throw _;f=h}var v=f;l=s.copy(u,u,u,v)}else l=s;var y=l;return r=r+y.a()|0,new ct(n,r,a,o,y)}function Gg(t,e,n){var r=n;r=r+t.yo_1.vo(e,r).xo_1|0;var a=Fu().allSubClasses,o;t:{for(var s=a.h();s.i();){var l=s.j();if(es(e,l.key,n)){o=l;break t}}o=null}var c=o,f;c==null?re(e,n,"LogicalOperator"):f=c;var h=f;return new Ut(r,r+h.key.length|0,h)}function Jg(t,e,n){var r=n;r=r+t.yo_1.vo(e,r).xo_1|0,wt(e,r,"!");var a=r;r=r+1|0,wt(e,r,"(");var o=t.rp(e,r,!0);return r=r+o.a()|0,new Jt(a,o)}function Yg(t,e,n){for(var r=e,a="";r<A(t)&&Je(n,L(t,r));)a=a+Kt(L(t,r)),r=r+1|0;return new At(a,r-e|0)}function Xg(t,e,n){return wt(t,e,n,"whitespace"),tt().yo_1.vo(t,e)}function Zg(t,e,n){var r=e,a=tn(t,r),o,s=a;if((s==null?null:new rt(s))!=null?o=!Je(n,a):o=!1,o)return new At("");wt(t,r,n,"*0-9a-zA-Z_");var l=Kt(L(t,r));if(r=r+1|0,l==="*")return new At(l,r-e|0);var c="1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_.";t:for(;r<A(t);){if(L(l,(r-e|0)-1|0)===46&&wt(t,r,n,"[0-9a-zA-Z_]"),Je(c,L(t,r)))l=l+Kt(L(t,r));else break t;r=r+1|0}return new At(l,r-e|0)}function ty(t){return t.key}function ey(t,e,n){var r=ss().allSubClasses,a;t:{for(var o=r.h();o.i();){var s=o.j();if(es(t,s.key,e)){a=s;break t}}a=null}var l=a,c;l==null?re(t,e,"ConnectOperator"):c=l;var f=c;return new At(f,f.key.length)}function ny(t,e,n){var r=e;wt(t,r,n,"number");for(var a="";r<A(t)&&Je(n,L(t,r));)a=a+Kt(L(t,r)),r=r+1|0;var o;try{o=lm(a)}catch(l){var s;if(l instanceof $i)re(t,e,"valid format number");else throw l;o=s}return new At(o,r-e|0)}function ry(t,e,n){var r=e;wt(t,r,n);var a=L(t,r),o;a===43?(r=r+1|0,o=1):a===45?(r=r+1|0,o=-1):o=1;var s=o;r=r+tt().yo_1.vo(t,r).xo_1|0,wt(t,r,tt().cp_1.so_1+"n");var l;if(Je(tt().cp_1.so_1,L(t,r))){var c=tt().cp_1.vo(t,r);r=r+c.xo_1|0,l=c.wo_1}else l=1;var f=D(l,s);return r<A(t)&&L(t,r)===110?(r=r+1|0,new At(new An(1,f),r-e|0)):new At(new An(0,f),r-e|0)}function iy(t,e,n){var r=e;wt(t,r,n);var a=It();if(L(t,r)===40){for(r=r+1|0,r=r+tt().yo_1.vo(t,r).xo_1|0,wt(t,r,tt().dp_1.so_1);L(t,r)!==41;){a.m()>0&&wt(t,r,"+-");var o=tt().dp_1.vo(t,r);a.f(o),r=r+o.xo_1|0,r=r+tt().yo_1.vo(t,r).xo_1|0,r>=A(t)&&wt(t,r,")")}r=r+1|0}else{var s=tt().dp_1.vo(t,r);a.f(s),r=r+s.xo_1|0}for(var l=yh(),c=a.h();c.i();){var f=c.j(),h=f.wo_1,d=h.pc(),v=h.qc(),y=l.t1(d),_=(y==null?0:y)+v|0;l.u3(d,_)}for(var m=c0(l.m()),g=l.u1().h();g.i();){var p=g.j();p.q1()>1&&re(t,e,"power must be 0 or 1");var C=p.r1();m.u3(ut,C)}var k;try{var S=l.t1(1),I=S==null?0:S,O=l.t1(0);k=new qt(I,O==null?0:O)}catch(lt){var Q;if(lt instanceof xn)re(t,e,"valid polynomialExpression");else throw lt;k=Q}var W=k;return new At(W,r-e|0)}function ay(t,e,n){var r=e;wt(t,r,"("),r=r+1|0;for(var a=It();r<A(t)&&L(t,r)!==41;){r=r+tt().yo_1.vo(t,r).xo_1|0;var o=tt().cp_1.vo(t,r);a.l()?o.wo_1<=0&&re(t,r,"positive integer"):o.wo_1<=Ca(a)&&re(t,r,">"+Ca(a)),r=r+o.xo_1|0,a.f(o.wo_1),r=r+tt().yo_1.vo(t,r).xo_1|0;var s=tn(t,r);N(s==null?null:new rt(s),new rt(44))&&(r=r+1|0,r=r+tt().yo_1.vo(t,r).xo_1|0,wt(t,r,tt().cp_1.so_1+")"))}return wt(t,r,")"),r=r+1|0,new At(new qe(a),r-e|0)}function oy(t,e,n){var r=e,a;if(Hg(tt(),fn(t,e,A(t)))){var o=tt().fp_1.vo(t,r);r=r+o.xo_1|0,a=new At(o.wo_1,r-e|0)}else{var s=tt().ep_1.vo(t,e);r=r+s.xo_1|0,a=new At(s.wo_1,r-e|0)}return a}function sy(t,e,n){var r=e,a=tt().bp_1.vo(t,r);r=r+a.xo_1|0;var o=null;r<A(t)&&Je(tt().gp_1.so_1,L(t,r))&&(o=tt().gp_1.vo(t,r),r=r+o.xo_1|0);var s=o,l=s==null?null:s.wo_1;return new At(new fe(a.wo_1,l==null?new qt:l),r-e|0)}function ly(t,e,n){var r=e;wt(t,r,n);var a=L(t,r);r=r+1|0,r>=A(t)&&re(t,r,"any char");var o="";t:for(;L(t,r)!==a;){if(r>=(A(t)-1|0)){wt(t,r,Kt(a));break t}var s=L(t,r),l=je(s);if(0<=l&&l<=31&&re(t,r,"0-1f escape char"),L(t,r)===92){r=r+1|0,wt(t,r);var c=o,f=L(t,r),h;if(f===92)h=92;else if(f===39)h=39;else if(f===34)h=34;else if(f===96)h=96;else if(f===110)h=10;else if(f===114)h=13;else if(f===116)h=9;else if(f===98)h=8;else if(f===120){var d=0;if(d<2)do d=d+1|0,r=r+1|0,wt(t,r,"0123456789abcdefABCDEF");while(d<2);var v=(r-2|0)+1|0,y=r+1|0,_=F(fn(t,v,y));h=Ia(Mc(_,16))}else if(f===117){var m=0;if(m<4)do m=m+1|0,r=r+1|0,wt(t,r,"0123456789abcdefABCDEF");while(m<4);var g=(r-4|0)+1|0,p=r+1|0,C=F(fn(t,g,p));h=Ia(Mc(C,16))}else re(t,r,"escape char");o=c+Kt(h)}else o=o+Kt(L(t,r));r=r+1|0}return r=r+1|0,new At(o,r-e|0)}function uy(t,e,n){var r=e;wt(t,r,n);var a=Kt(L(t,r));for(r=r+1|0;r<A(t)&&Je(tt().kp_1,L(t,r));)L(t,r)===46&&wt(t,r+1|0,n),a=a+Kt(L(t,r)),r=r+1|0;return new At(a,r-e|0)}function cy(t,e,n){var r=e;wt(t,r,n),r=r+1|0,r=r+tt().yo_1.vo(t,r).xo_1|0;var a=tt().sp(t,r);return r=r+a.a()|0,wt(t,r,"]"),r=r+1|0,new At(a,r-e|0)}function fy(t,e,n){var r=e,a=!1,o=tn(t,r);N(o==null?null:new rt(o),new rt(64))&&(a=!0,r=r+1|0);var s=tt().ap_1.vo(t,r);r=r+s.xo_1|0;for(var l=It();r<A(t)&&L(t,r)===91;){var c=tt().mp_1.vo(t,r);r=r+c.xo_1|0,l.f(c.wo_1)}return s.xo_1===0&&l.m()===0&&re(t,r,"["),new At(new ae(a,s.wo_1,l),r-e|0)}function hy(t,e,n){var r=e;r=r+tt().yo_1.vo(t,r).xo_1|0;var a=tt().np_1.vo(t,r);r=r+a.xo_1|0;var o=It();t:for(;r<A(t)&&Je(tt().yo_1.so_1,L(t,r));){if(r=r+tt().zo_1.vo(t,r).xo_1|0,r>=A(t))break t;var s;if(Je(tt().hp_1.so_1,L(t,r))){var l=tt().hp_1.vo(t,r);r=r+l.xo_1|0,r=r+tt().zo_1.vo(t,r).xo_1|0,s=l.wo_1}else s=new fe(u,new qt(1,0));var c=s,f=tt().np_1.vo(t,r);r=r+f.xo_1|0,o.f(jc(c,f.wo_1))}return new At(jc(a.wo_1,o),r-e|0)}function dy(t,e,n){return e!==A(t)&&re(t,e,"EOF"),new At(ut,0)}function lo(){Pl=this;var t=this;t.yo_1=new zt(` \r
270
+ `,Yg);var e=this;e.zo_1=new zt(` \r
271
+ `,Xg);var n=this;n.ap_1=new zt("*1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_",Zg);var r=this,a=ss().allSubClasses,o=In(a,"",u,u,u,u,ty);r.bp_1=new zt(o,ey);var s=this;s.cp_1=new zt("1234567890",ny);var l=this;l.dp_1=new zt("+-1234567890n",ry);var c=this;c.ep_1=new zt("(0123456789n",iy);var f=this;f.fp_1=new zt(u,ay);var h=this;h.gp_1=new zt(this.ep_1.so_1,oy);var d=this;d.hp_1=new zt(this.bp_1.so_1,sy);var v=this;v.ip_1=new zt("`'\"",ly),this.jp_1="_"+In(ai(97,122),"")+In(ai(65,90),""),this.kp_1=this.jp_1+Kt(46)+In(ai(48,57),"");var y=this;y.lp_1=new zt(this.jp_1,uy);var _=this;_.mp_1=new zt("[",cy);var m=this;m.np_1=new zt(u,fy);var g=this;g.op_1=new zt(u,hy);var p=this;p.pp_1=new zt(u,dy)}i(lo).qp=function(t,e){var n=e;if(n=n+this.yo_1.vo(t,n).xo_1|0,n>=A(t)&&re(t,n,"Variable"),Is(this,t,n,"true"))return new he(n,!0);if(Is(this,t,n,"false"))return new he(n,!1);if(Is(this,t,n,"null"))return new Ae(n);if(Je(this.ip_1.so_1,L(t,n))){var r=this.ip_1.vo(t,n);return n=n+r.xo_1|0,new _t(n-r.xo_1|0,n,r.wo_1)}if(L(t,n)===45){n=n+1|0;var a=this.cp_1.vo(t,n);return n=n+a.xo_1|0,new Ht((n-a.xo_1|0)-1|0,n,-a.wo_1|0)}if(Je(this.cp_1.so_1,L(t,n))){var o=this.cp_1.vo(t,n);return n=n+o.xo_1|0,new Ht(n-o.xo_1|0,n,o.wo_1)}var s=null;t:for(;n<A(t);){n=n+this.yo_1.vo(t,n).xo_1|0;var l=tn(t,n),c=l;if(N(c==null?null:new rt(c),new rt(40))){var f=n;if(n=n+1|0,n=n+this.yo_1.vo(t,n).xo_1|0,s!=null){s instanceof xt&&re(t,n,"Variable");for(var h=It();n<A(t)&&L(t,n)!==41;){var d=this.qp(t,n);h.f(d),n=n+d.a()|0;var v=tn(t,n);N(v==null?null:new rt(v),new rt(44))&&(n=n+1|0,n=n+this.yo_1.vo(t,n).xo_1|0)}n=n+this.yo_1.vo(t,n).xo_1|0,wt(t,n,")"),n=n+1|0,s=new xt(s.tc(),n,s,h)}else{var y=this.qp(t,n);n=n+y.a()|0,n=n+this.yo_1.vo(t,n).xo_1|0,wt(t,n,")"),n=n+1|0;var _=n,m;return y instanceof he?m=y.copy(f):y instanceof Ht?m=y.copy(f,_):y instanceof Ae?m=y.copy(f):y instanceof _t||y instanceof xt?m=y.copy(f,_):y instanceof Ct?m=y.copy(f):y instanceof pt?m=y.copy(f,_):qn(),m}}else{var g=l;if(N(g==null?null:new rt(g),new rt(46))){n=n+1|0,s instanceof Me||re(t,n,"Variable"),Tl(this,tn(t,n),!0)||re(t,n,"Variable");var p;e:{var C=_c(t,n),k=0,S=A(C);if(k<S)do{var I=k;k=k+1|0;var O=L(C,I);if(!Tl(tt(),O,!1)){p=fn(C,0,I);break e}}while(k<S);p=fn(C,0,A(C))}var Q=F(p);s=new pt(s.tc(),n+Q.length|0,s,Q),n=n+Q.length|0}else if(Uc(this,l)){var W;e:{var lt=_c(t,n),dt=0,le=A(lt);if(dt<le)do{var Ot=dt;dt=dt+1|0;var ve=L(lt,Ot);if(!Uc(tt(),ve)){W=fn(lt,0,Ot);break e}}while(dt<le);W=fn(lt,0,A(lt))}var gt=F(W);s=new Ct(n,gt),n=n+gt.length|0}else break t}}return s==null&&re(t,n,"Variable"),s};i(lo).rp=function(t,e,n){var r=e;r=r+this.yo_1.vo(t,r).xo_1|0;var a=It();t:for(;r<A(t)&&L(t,r)!==93&&L(t,r)!==41;){var o=L(t,r);if(o===40){var s=r;if(!a.l()){var l=Ca(a),c;if(l instanceof Ut){var f=l.value;c=f instanceof Mn}else c=!1;if(!c){for(var h=0;(r-1|0)>=h&&Je(this.yo_1.so_1,L(t,(r-1|0)-h|0));)h=h+1|0;re(t,(r-h|0)-l.a()|0,"LogicalOperator")}}r=r+1|0;var d=this.sp(t,r);r=r+d.a()|0;var v=d;wt(t,r,")"),r=r+1|0;var y=r,_;if(v instanceof ct||v instanceof ft?_=v.copy(s,y):v instanceof Jt?_=v.copy(s):qn(),a.f(_),n)break t}else if(Je("|&",o)){var m=Gg(this,t,r);r=r+m.a()|0,a.f(m),r=r+this.yo_1.vo(t,r).xo_1|0,wt(t,r,"(!"+this.lp_1.so_1)}else if(o===33){var g=Jg(this,t,r);r=r+g.a()|0,a.f(g),r=r+this.yo_1.vo(t,r).xo_1|0}else{var p=Qg(this,t,r);r=r+p.a()|0,a.f(p)}r=r+this.yo_1.vo(t,r).xo_1|0}if(a.l()&&re(t,r-e|0,"Expression"),a.m()===1){var C=Hi(a);return C instanceof He?C:$()}for(var k=Wl(a),S=0;S<k.m();){var I=k.k(S),O;if(I instanceof Ut?O=N(I.value,zu()):O=!1,O){var Q=k.k(S-1|0),W=Q instanceof He?Q:$(),lt=k.k(S+1|0),dt=lt instanceof He?lt:$(),le=I instanceof Ut?I:$();k.p2(S,new ft(W.tc(),dt.uc(),W,le,dt)),k.x2(S-1|0),k.x2((S+1|0)-1|0)}else S=S+1|0}for(;k.m()>1;){var Ot=k.k(0),ve=Ot instanceof He?Ot:$(),gt=k.k(1),Zt=gt instanceof Ut?gt:$(),te=k.k(2),Ue=te instanceof He?te:$();k.p2(1,new ft(ve.tc(),Ue.uc(),ve,Zt,Ue)),k.x2(0),k.x2(1)}var ue=Hi(k);return ue instanceof He?ue:$()};i(lo).sp=function(t,e,n,r){return n=n===u?!1:n,r===u?this.rp(t,e,n):r.rp.call(this,t,e,n)};var Pl;function tt(){return Pl==null&&new lo,Pl}function Ad(t){var e=0;e=e+tt().yo_1.vo(t,e).xo_1|0;var n=tt().op_1.vo(t,e);e=e+n.xo_1|0,e=e+tt().yo_1.vo(t,e).xo_1|0,e=e+tt().pp_1.vo(t,e).xo_1|0;var r=n.wo_1,a=It(),o=It();a.f(r.nc_1);for(var s=r.oc_1.h();s.i();){var l=s.j();a.f(l.oc_1),o.f(l.nc_1)}for(var c=Hh([new Yt(Hi(a))]),f=0,h=o.h();h.i();){var d=h.j(),v=f;f=v+1|0;var y=Ao(v),_=new Ie(d,Ca(c)),m=new Yt(a.k(y+1|0),_);c.f(m)}return new Se(t,Ca(c))}function vy(t){Ny(t)}function ti(t,e,n,r,a,o){this.booleanType=t,this.intType=e,this.stringType=n,this.contextType=r,this.nodeType=a,this.globalType=o}i(ti).tp=function(){return this.booleanType};i(ti).up=function(){return this.intType};i(ti).vp=function(){return this.stringType};i(ti).wp=function(){return this.contextType};i(ti).xp=function(){return this.nodeType};i(ti).yp=function(){return this.globalType};function py(t){t=t===u?!1:t;var e=new Bt(La()),n=new Bt(Oa()),r=new Bt(ja()),a=new Bt(new De("node")),o=new Bt(new De("context")),s=new Bt(new De("global")),l=e,c=new H("toInt",n),f=[e],h=new H("or",e,f),d=[e];l.methods=ar([[c,h,new H("and",e,d),new H("not",e)],As(e,n,r,a,o,"ifElse",e,2)]);var v=n,y=new H("toString",r),_=[n],m=new H("toString",r,_),g=[n],p=new H("plus",n,g),C=[n],k=new H("minus",n,C),S=[n],I=new H("times",n,S),O=[n],Q=new H("div",n,O),W=[n],lt=new H("rem",n,W),dt=[n],le=new H("more",e,dt),Ot=[n],ve=new H("moreEqual",e,Ot),gt=[n],Zt=new H("less",e,gt),te=[n];v.methods=[y,m,p,k,I,Q,lt,le,ve,Zt,new H("lessEqual",e,te)];var Ue=r;Ue.props=[new Y("length",n)];var ue=r,We=[n],mn=new H("get",r,We),Rn=[n],Pr=new H("at",r,Rn),P=[n],at=new H("substring",r,P),vt=[n,n],Pt=new H("substring",r,vt),ce=new H("toInt",n),Gn=[n],Jn=new H("toInt",n,Gn),Yn=[r],ei=new H("indexOf",n,Yn),fa=[r,n];ue.methods=[mn,Pr,at,Pt,ce,Jn,ei,new H("indexOf",n,fa)];var ha=a,ni;t?ni=[new Y("_id",n),new Y("_pid",n)]:ni=[],ha.props=ar([ni,[new Y("id",r),new Y("vid",r),new Y("name",r),new Y("text",r),new Y("desc",r),new Y("clickable",e),new Y("focusable",e),new Y("checkable",e),new Y("checked",e),new Y("editable",e),new Y("longClickable",e),new Y("visibleToUser",e),new Y("left",n),new Y("top",n),new Y("right",n),new Y("bottom",n),new Y("width",n),new Y("height",n),new Y("childCount",n),new Y("index",n),new Y("depth",n),new Y("parent",a)]]);var ri=a,uo=[n];ri.methods=[new H("getChild",a,uo)];var Mr=o,Ln=a.methods,ds=[n];Mr.methods=ar([Ln,[new H("getPrev",o,ds)]]);var vs=o;vs.props=ar([a.props,[new Y("prev",o),new Y("current",a)]]);var Pi=s;Pi.methods=ar([o.methods,As(e,n,r,a,o,"equal",e,2),As(e,n,r,a,o,"notEqual",e,2)]);var ps=s;return ps.props=o.props.slice(),new ti(e,n,r,o,a,s)}function _y(t,e,n){var r;switch(e){case"plus":r=t+Le(n)|0;break;case"minus":r=t-Le(n)|0;break;case"times":r=D(t,Le(n));break;case"div":var a=Le(n);if(a===0)return null;r=t/a|0;break;case"rem":var o=Le(n);if(o===0)return null;r=t%o|0;break;case"more":r=t>Le(n);break;case"moreEqual":r=t>=Le(n);break;case"less":r=t<Le(n);break;case"lessEqual":r=t<=Le(n);break;default:r=null;break}return r}function my(t,e,n){return ky(t,e,n)}function gy(t,e,n){switch(e){case"toInt":return t?1:0;case"not":return!t;default:return null}}function yy(t,e){return Cy(t,e)}function wy(t,e){e=e===u?34:e;var n=Fh(t.length+2|0);n.b6(e);for(var r=0;r<A(t);){var a=L(t,r);r=r+1|0;var o=a===e?e:a===10?110:a===13?114:a===9?116:a===8?98:a===92?92:null,s=o;if((s==null?null:new rt(s))!=null){var l=o;n.a6("\\"+Wt(l==null?null:new rt(l)))}else{var c=je(a);if(0<=c&&c<=15){var f=je(a);n.a6("\\x0"+Pc(f,16))}else if(16<=c&&c<=31){var h=je(a);n.a6("\\x"+Pc(h,16))}else n.b6(a)}}return n.b6(e),n.toString()}function qs(t,e,n){if(bu(t,e)&&Uh(t,n)&&t.length>=(e.length+n.length|0)){var r=e.length,a=t.length-n.length|0;if(r<a)do{var o=r;if(r=r+1|0,Je("\\^$.?*|+()[]{}",L(t,o)))return null}while(r<a);return F(fn(t,e.length,t.length-n.length|0))}return null}function by(t){var e=qs(t,"(?is)",".*");if(e!=null)return xy(e);var n=qs(t,"(?is).*",".*");if(n!=null)return Sy(n);var r=qs(t,"(?is).*","");return r!=null?$y(r):null}function Le(t,e){e=e===u?0:e;var n=t.k(e);return typeof n=="number"?n:$()}function ky(t,e,n){var r;switch(e){case"get":var a=tn(t,Le(n));r=Wt(a==null?null:new rt(a));break;case"at":var o=Le(n),s;if(o<0){var l=tn(t,A(t)+o|0);s=Wt(l==null?null:new rt(l))}else{var c=tn(t,o);s=Wt(c==null?null:new rt(c))}r=s;break;case"substring":var f;switch(n.m()){case 1:var h=Le(n);if(h<0)return null;if(h>=A(t))return"";var d=A(t);f=F(fn(t,h,d));break;case 2:var v=Le(n);if(v<0)return null;if(v>=A(t))return"";var y=Le(n,1);if(y<v)return null;var _=xa(y,A(t));f=F(fn(t,v,_));break;default:f=null;break}r=f;break;case"toInt":var m;switch(n.m()){case 0:m=ud(F(t));break;case 1:var g=Le(n);if(!(2<=g&&g<=36))return null;m=Tu(F(t),g);break;default:m=null;break}r=m;break;case"indexOf":var p;switch(n.m()){case 1:var C=n.k(0),k=de(C)?C:null,S;if(k==null)return null;S=k;var I=S;p=rl(t,F(I));break;case 2:var O=n.k(0),Q=de(O)?O:null,W;if(Q==null)return null;W=Q;var lt=W,dt=Le(n,1);p=rl(t,F(lt),dt);break;default:p=null;break}r=p;break;default:r=null;break}return r}function Cy(t,e){return e==="length"?A(t):null}function As(t,e,n,r,a,o,s,l){for(var c=0,f=ir(Array(l),null);c<l;)f[c]=t,c=c+1|0;for(var h=new H(o,s,f),d=0,v=ir(Array(l),null);d<l;)v[d]=e,d=d+1|0;for(var y=new H(o,s,v),_=0,m=ir(Array(l),null);_<l;)m[_]=n,_=_+1|0;for(var g=new H(o,s,m),p=0,C=ir(Array(l),null);p<l;)C[p]=r,p=p+1|0;for(var k=new H(o,s,C),S=0,I=ir(Array(l),null);S<l;)I[S]=a,S=S+1|0;return[h,y,g,k,new H(o,s,I)]}function xy(t){return function(e){return Pu(e,t,!0)}}function Sy(t){return function(e){return Mu(e,t,!0)}}function $y(t){return function(e){return ts(e,t,!0)}}var $o;function Ey(t){if($o!==null){var e=Te($o)(t);return Iy(e)}if(t.length>=4&&bu(t,"(?")){var n=2,r=t.length;if(n<r)t:do{var a=n;n=n+1|0;var o=L(t,a);if(!(97<=o&&o<=122)&&!(65<=o&&o<=90))if(o===41){var s=bp(fn(t,2,a));s.f(new rt(103)),s.f(new rt(117));var l=In(s,""),c=a+1|0,f=t.substring(c),h=new RegExp(f,l);return qy(h)}else break t}while(n<r)}var d=fm(t);return Ay(d)}function Ny(t){$o=t}function Iy(t){return function(e){return t(F(e))}}function qy(t){return function(e){jh(t);var n=t.exec(F(e));return n!=null&&n.index===0&&t.lastIndex===A(e)}}function Ay(t){return function(e){return t.w8(e)}}i(He).a=Ru;K(i(He),"binaryExpressions",function(){return this.bd()});K(i(ct),"properties",i(ct).cd);K(i(ct),"methods",i(ct).dd);K(i(Pa),"allSubClasses",i(Pa).kd);K(i(Ai),"minOffset",function(){return this.yd()});K(i(Ai),"maxOffset",function(){return this.zd()});K(i(Ma),"allSubClasses",i(Ma).kd);K(i(Tt),"message",function(){return this.i7()});K(i(Fe),"value",function(){return this.r1()});K(i(Ra),"allSubClasses",i(Ra).kd);i(Ut).a=Ru;K(i(ae),"binaryExpressions",i(ae).bd);K(i(Yt),"length",i(Yt).a);K(i(oe),"cause",function(){return this.j7()});i(Xt).a=Ru;K(i(Xt),"value",function(){return this.r1()});K(i(Xt),"type",function(){return this.hf()});K(i(Xt),"properties",function(){return this.cd()});K(i(Xt),"methods",function(){return this.dd()});Id=new fs;qd=new Bu;$o=null;K(U,"Companion",is);K(U,"Equal",sr);K(U,"NotEqual",vd);K(U,"Start",Zr);K(U,"NotStart",pd);K(U,"Include",Lu);K(U,"NotInclude",_d);K(U,"End",Ou);K(U,"NotEnd",md);K(U,"Less",so);K(U,"LessEqual",gd);K(U,"More",yd);K(U,"MoreEqual",wd);K(U,"Matches",as);K(U,"NotMatches",ju);K(ye,"Companion",ss);K(ye,"BeforeBrother",bd);K(ye,"AfterBrother",kd);K(ye,"Ancestor",xo);K(ye,"Child",Cd);K(ye,"Descendant",ls);Fe.Id=hn;Fe.Vid=dn;Fe.Text=vn;K(Mn,"Companion",Fu);K(Mn,"AndOperator",zu);K(Mn,"OrOperator",Du);K(Se,"Companion",_g);K(bt,"Companion",Cg);K(ln,"BooleanType",La);K(ln,"IntType",Oa);K(ln,"StringType",ja);ln.ObjectType=De;Xt.Variable=Me;Xt.Identifier=Ct;Xt.MemberExpression=pt;Xt.CallExpression=xt;Xt.LiteralExpression=Ye;Xt.NullLiteral=Ae;Xt.BooleanLiteral=he;Xt.IntLiteral=Ht;Xt.StringLiteral=_t;async function Ty(t){t instanceof Promise&&(t=await t);const e={"kotlin.captureStackTrace":()=>new Error().stack,"kotlin.wasm.internal.throwJsError":(o,s,l)=>{const c=new Error;throw c.message=o,c.name=s,c.stack=l,c},"kotlin.wasm.internal.stringLength":o=>o.length,"kotlin.wasm.internal.jsExportStringToWasm":(o,s,l,c)=>{const f=new Uint16Array(r.memory.buffer,c,l);let h=0,d=s;for(;h<l;)f.set([o.charCodeAt(d)],h),d++,h++},"kotlin.wasm.internal.importStringFromWasm":(o,s,l)=>{const c=new Uint16Array(r.memory.buffer,o,s),f=String.fromCharCode.apply(null,c);return l==null?f:l+f},"kotlin.wasm.internal.getJsEmptyString":()=>"","kotlin.wasm.internal.isNullish":o=>o==null,"kotlin.wasm.internal.getJsTrue":()=>!0,"kotlin.wasm.internal.getJsFalse":()=>!1,"kotlin.random.initialSeed":()=>Math.random()*Math.pow(2,32)|0,"li.songe.matches.__convertKotlinClosureToJsClosure_((String)->Boolean)":o=>s=>r["__callFunction_((String)->Boolean)"](o,s)};let n,r;const a={js_code:e};try{if(t instanceof Response)n=(await WebAssembly.instantiateStreaming(t,a)).instance;else{const o=new WebAssembly.Module(t);n=new WebAssembly.Instance(o,a)}}catch(o){throw o instanceof WebAssembly.CompileError&&console.error(`Please make sure that your runtime environment supports the latest version of Wasm GC and Exception-Handling proposals.
272
+ For more information, see https://kotl.in/wasm-help
273
+ `),o}return r=n.exports,r._initialize(),{instance:n,exports:r}}const Py="https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1722398445606/files/dist/assets/mod-BHC4TAjm.wasm",My=Ty(fetch(Py)).then(t=>{const e=t.exports.toMatches;vy(e),_o.wasmSupported=!0,console.log("use wasm matches")}).catch(t=>{_o.wasmSupported=!1,console.error(t),console.log("use js matches")}),Hc=(t,e)=>{var n,r;return e=="_id"?t.id:e=="_pid"?t.pid:e=="parent"?(n=t.parent)!=null?n:null:(r=Reflect.get(t.attr,e))!=null?r:null},Vc=(t,e,n)=>{var r;if(e==="getChild"){const a=n.asJsReadonlyArrayView()[0];return(r=t.children[a])!=null?r:null}return null},Ts=bt.Companion.multiplatformBuild((t,e)=>typeof t=="string"?yy(t,e):t instanceof Gt?e==="prev"?t.prev:e==="current"?t.current:Hc(t.current,e):oc(t)?Hc(t,e):null,(t,e,n)=>{if(typeof t=="number")return _y(t,e,n);if(typeof t=="boolean")return gy(t,e);if(typeof t=="string")return my(t,e,n);if(t instanceof Gt){if(e==="getPrev"){const r=n.asJsReadonlyArrayView()[0];return Number.isSafeInteger(r)?t.getPrev(r):null}return Vc(t.current,e,n)}return oc(t)?Vc(t,e,n):null},t=>t.attr.name,t=>t.children,t=>t.parent),Ry=py(!0).globalType,Ly=new ze(!1,!1),Oy=t=>{var r;const e=Se.Companion.parse(t);for(const a of e.binaryExpressions)if(a.operator.value.key=="~="&&!_o.wasmSupported&&!ef.ignoreWasmWarn){_o.wasmErrorDlgVisible=!0;break}return jy(e),{s:e,targetIndex:e.targetIndex,connectKeys:e.connectWrappers.map(a=>a.segment.operator.key),canQf:!!((r=e.quickFindValue)!=null&&r.value),qfIdValue:e.quickFindValue instanceof Fe.Id?e.quickFindValue.value:null,qfVidValue:e.quickFindValue instanceof Fe.Vid?e.quickFindValue.value:null,qfTextValue:e.quickFindValue instanceof Fe.Text?e.quickFindValue.value:null,canCopy:!e.binaryExpressions.some(a=>a.properties.some(o=>o.startsWith("_"))),toString:()=>e.stringify(),match:a=>{var o;return(o=e.match(a,Ts,Ly))!=null?o:void 0},querySelectorAll:a=>Ts.querySelectorAllArray(a,e),querySelectorTrackAll:a=>Ts.querySelectorAllContextArray(a,e).map(o=>o.toArray())}},jy=t=>{const e=t.checkType(Ry);if(e!=null)throw e instanceof ke?new Error("不匹配表达式类型:"+e.exception.stringify(),{cause:e}):e instanceof on?new Error("不匹配操作符类型:"+e.exception.stringify(),{cause:e}):e instanceof ie?new Error("不匹配参数类型:"+e.call.stringify(),{cause:e}):e instanceof en?new Error("未知属性:"+e.value.stringify(),{cause:e}):e instanceof Ve?new Error("未知方法:"+e.value.stringify(),{cause:e}):e instanceof nn?new Error("未知属性:"+e.value.stringify(),{cause:e}):e instanceof Qe?new Error("未知方法:"+e.value.property,{cause:e}):e instanceof rn?new Error("未知方法参数:"+e.value.stringify(),{cause:e}):e instanceof an?new Error("未知方法参数:"+e.value.stringify(),{cause:e}):new Error("未知错误:"+e.message,{cause:e})};var Ku={},hs={};Object.defineProperty(hs,"__esModule",{value:!0});function Fy(t){return String.fromCharCode(parseInt(t.slice(1),16))}function zy(t){return btoa(encodeURIComponent(t).replace(/%[0-9A-F]{2}/g,Fy))}hs.encode=zy;function Dy(t){return`%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`}function By(t){return decodeURIComponent(Array.from(atob(t),Dy).join(""))}hs.decode=By;Object.defineProperty(Ku,"__esModule",{value:!0});const Td=hs;function Ky(t){return Td.decode(t.replace(/\-/g,"+").replace(/_/g,"/"))}var Uy=Ku.decode=Ky;function Wy(t){return Td.encode(t).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,"")}var Hy=Ku.encode=Wy;const Uu=of(),Vy=nt(()=>Uu.width.value/100),Qy=nt(()=>Math.max(1200,Uu.width.value));nt(()=>Math.max(700,Uu.height.value));const Gy={"bg-white":"","b-1px":"","b-solid":"","b-gray-200":"","rounded-4px":"","p-8px":""},Jy={flex:"","m-b-4px":""},Yy=M("svg",{viewBox:"0 0 32 32"},[M("path",{d:"M29 27.586l-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29zM4 13a9 9 0 1 1 9 9a9.01 9.01 0 0 1-9-9z",fill:"currentColor"})],-1),Xy=M("div",{"p-5px":""},null,-1),Zy={key:0,underline:"","decoration-1":"","m-r-4px":"",title:"查询数量"},tw=["title"],ew=M("svg",{viewBox:"0 0 24 24"},[M("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",fill:"currentColor"})],-1),nw=M("div",{"p-l-4px":""},null,-1),rw=M("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[M("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81c1.66 0 3-1.34 3-3s-1.34-3-3-3s-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65c0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z",fill:"currentColor"})],-1),iw=M("div",{"p-l-4px":""},null,-1),aw=M("svg",{viewBox:"0 0 24 24"},[M("g",{fill:"none"},[M("path",{d:"M12 1.75a3.25 3.25 0 0 1 3.245 3.066L15.25 5h5.25a.75.75 0 0 1 .102 1.493L20.5 6.5h-.796l-1.28 13.02a2.75 2.75 0 0 1-2.561 2.474l-.176.006H8.313a2.75 2.75 0 0 1-2.714-2.307l-.023-.174L4.295 6.5H3.5a.75.75 0 0 1-.743-.648L2.75 5.75a.75.75 0 0 1 .648-.743L3.5 5h5.25A3.25 3.25 0 0 1 12 1.75zm6.197 4.75H5.802l1.267 12.872a1.25 1.25 0 0 0 1.117 1.122l.127.006h7.374c.6 0 1.109-.425 1.225-1.002l.02-.126L18.196 6.5zM13.75 9.25a.75.75 0 0 1 .743.648L14.5 10v7a.75.75 0 0 1-1.493.102L13 17v-7a.75.75 0 0 1 .75-.75zm-3.5 0a.75.75 0 0 1 .743.648L11 10v7a.75.75 0 0 1-1.493.102L9.5 17v-7a.75.75 0 0 1 .75-.75zm1.75-6a1.75 1.75 0 0 0-1.744 1.606L10.25 5h3.5A1.75 1.75 0 0 0 12 3.25z",fill:"currentColor"})])],-1),ow=M("svg",{viewBox:"0 0 24 24"},[M("path",{fill:"currentColor",d:"M5 21V8.825Q4.125 8.5 3.563 7.738T3 6q0-1.25.875-2.125T6 3q1.25 0 2.125.875T9 6q0 .975-.562 1.738T7 8.825V19h4V3h8v12.175q.875.325 1.438 1.088T21 18q0 1.25-.875 2.125T18 21q-1.25 0-2.125-.875T15 18q0-.975.563-1.75T17 15.175V5h-4v16zM6 7q.425 0 .713-.288T7 6q0-.425-.288-.712T6 5q-.425 0-.712.288T5 6q0 .425.288.713T6 7m12 12q.425 0 .713-.288T19 18q0-.425-.288-.712T18 17q-.425 0-.712.288T17 18q0 .425.288.713T18 19m0-1"})],-1),sw=Lt({__name:"SearchCard",props:{snapshot:{},rootNode:{},focusNode:{},onUpdateFocusNode:{type:Function,default:di},onUpdateTrack:{type:Function,default:di}},setup(t){nf();const e=rf(),n=t,r=ne(""),a=jl([]),o=ne([]),s=_=>{const m=H1(()=>Oy(_),p=>typeof p=="string"?p:p instanceof Error&&p.cause instanceof Tt?p.message:"非法选择器");if(a.find(p=>typeof p.selector=="object"&&p.selector.toString()==m.toString())){En.warning("不可重复选择");return}const g=m.querySelectorTrackAll(n.rootNode);if(g.length==0){En.success("没有选择到节点");return}return En.success(`选择到 ${g.length} 个节点`),a.unshift({selector:m,nodes:g,key:Date.now()}),g.length},l=_=>{if(a.find(p=>typeof p.selector=="string"&&p.selector.toString()==_)){En.warning("不可重复搜索");return}const m=[],g=[n.rootNode];for(;g.length>0;){const p=g.pop();ka(p).includes(_)&&m.push(p),g.push(...[...p.children].reverse())}if(m.length==0){En.success("没有搜索到节点");return}return En.success(`搜索到 ${m.length} 个节点`),a.unshift({selector:_,nodes:m,key:Date.now()}),m.length},c=()=>{const _=a[0],m=_.nodes[0];Array.isArray(m)?typeof _.selector=="object"&&Array.isArray(m)&&n.onUpdateFocusNode(m[_.selector.targetIndex]):n.onUpdateFocusNode(m);const g=new Set(a.map(C=>C.key)),p=o.value.filter(C=>g.has(C));p.push(_.key),o.value=p},f=cc(()=>{const _=r.value.trim();if(_){if(d.value){if(!s(_))return}else if(!l(_))return;c()}});Da(async()=>{await My;let _=0;e.query.gkd&&(_+=s(Uy(e.query.gkd))||0),e.query.str&&(_+=l(e.query.str)||0),_>0&&c()});const h=cc(async _=>{var O,Q,W;let m=b1[n.snapshot.id];m&&(m=k1(m));const g=Wi[n.snapshot.id],p=g?tc(g):void 0,C=_.selector,k=_.nodes[0].at(-1),S=[((O=k.quickFind)!=null?O:k.idQf)&&k.attr.id&&C.qfIdValue,((Q=k.quickFind)!=null?Q:k.idQf)&&k.attr.vid&&C.qfVidValue,((W=k.quickFind)!=null?W:k.textQf)&&k.attr.text&&C.qfTextValue].some(Boolean),I={id:n.snapshot.appId,name:er(n.snapshot).name,groups:[{key:1,name:`[ChangeMe]规则名称-${z1().format("YYYY-MM-DD HH:mm:ss")}`,desc:"[ChangeMe]本规则由GKD网页端审查工具生成",rules:[{quickFind:S||void 0,activityIds:n.snapshot.activityId,matches:C.toString(),exampleUrls:m,snapshotUrls:p}]}]};nr(U1.stringify(I,void 0,2))}),d=ne(!0),v=nt(()=>Wi[n.snapshot.id]),y=_=>{if(!v.value)return;const m=new URL(tc(Wi[n.snapshot.id]));typeof _.selector=="object"?m.searchParams.set("gkd",Hy(_.selector.toString())):m.searchParams.set("str",_.selector.toString()),nr(m.toString())};return(_,m)=>(ot(),_e(Fl,{initialValue:{top:40,right:Math.max(315,12*x(Vy)+135),width:Math.max(480,x(Qy)*.3)},minWidth:300,sizeDraggable:"",class:"z-1 box-shadow-dim"},{default:T(({onRef:g})=>[M("div",Gy,[M("div",Jy,[Z(x(j1),{value:x(d),"onUpdate:value":m[0]||(m[0]=p=>ba(d)?d.value=p:null)},{default:T(()=>[Z(x(Rs),null,{default:T(()=>[Z(x(sc),{value:!1},{default:T(()=>[be(" 字符搜索 ")]),_:1}),Z(x(sc),{value:!0},{default:T(()=>[be(" 选择器查询 ")]),_:1})]),_:1})]),_:1},8,["value"]),M("div",{"flex-1":"","cursor-move":"",ref:g},null,512)]),Z(x(F1),null,{default:T(()=>[Z(x(K1),{value:x(r),"onUpdate:value":m[1]||(m[1]=p=>ba(r)?r.value=p:null),placeholder:x(d)?"请输入选择器":"请输入字符",onKeyup:w1(x(f),["enter"]),inputProps:{class:"gkd_code"}},null,8,["value","placeholder","onKeyup"]),Z(x(tr),{onClick:x(f)},{icon:T(()=>[Z(x(rr),null,{default:T(()=>[Yy]),_:1})]),_:1},8,["onClick"])]),_:1}),Xy,Z(x(nv),{expandedNames:x(o),"onUpdate:expandedNames":m[2]||(m[2]=p=>ba(o)?o.value=p:null)},{default:T(()=>[(ot(!0),Ne(Or,null,wa(x(a),(p,C)=>(ot(),_e(x(av),{key:p.key,name:p.key},{header:T(()=>[p.nodes.length>1?(ot(),Ne("span",Zy,Dt(p.nodes.length),1)):Oe("",!0),M("span",{"break-all":"",title:typeof p.selector=="object"?"选择器":"搜索字符"},Dt(p.selector.toString()),9,tw)]),"header-extra":T(()=>[typeof p.selector=="object"&&p.selector.canCopy?(ot(),_e(x(tr),{key:0,size:"small",onClick:Cs(k=>x(h)(p),["stop"]),title:"复制规则"},{icon:T(()=>[Z(x(rr),null,{default:T(()=>[ew]),_:1})]),_:2},1032,["onClick"])):Oe("",!0),nw,x(v)?(ot(),_e(x(tr),{key:1,size:"small",title:typeof p.selector=="object"?"复制查询链接":"复制搜索链接",onClick:Cs(k=>y(p),["stop"])},{icon:T(()=>[Z(x(rr),null,{default:T(()=>[rw]),_:1})]),_:2},1032,["title","onClick"])):Oe("",!0),iw,Z(x(tr),{size:"small",onClick:Cs(k=>x(a).splice(C,1),["stop"]),title:"删除记录"},{icon:T(()=>[Z(x(rr),null,{default:T(()=>[aw]),_:1})]),_:2},1032,["onClick"])]),default:T(()=>[Z(x(Rs),{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"}},{default:T(()=>[typeof p.selector=="string"||p.selector.connectKeys.length===0?(ot(!0),Ne(Or,{key:0},wa(p.nodes.map(k=>Array.isArray(k)?k[0]:k),k=>(ot(),_e(x(tr),{key:k.id,onClick:S=>_.onUpdateFocusNode(k),size:"small",class:hi({"color-[#00F]":k===_.focusNode})},{default:T(()=>[be(Dt(x(ka)(k)),1)]),_:2},1032,["onClick","class"]))),128)):(ot(!0),Ne(Or,{key:1},wa(p.nodes.map(k=>Array.isArray(k)?k:[k]),(k,S)=>(ot(),_e(x(Y1),{key:S},{default:T(()=>[Z(x(tr),{size:"small",onClick:I=>_.onUpdateTrack({nodes:k,selector:p.selector})},{default:T(()=>[Z(x(rr),null,{default:T(()=>[ow]),_:1})]),_:2},1032,["onClick"]),Z(x(tr),{onClick:I=>_.onUpdateFocusNode(k[p.selector.targetIndex]),size:"small",class:hi({"color-[#00F]":k[p.selector.targetIndex]===_.focusNode})},{default:T(()=>[be(Dt(x(ka)(k[p.selector.targetIndex])),1)]),_:2},1032,["onClick","class"])]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["expandedNames"])])]),_:1},8,["initialValue"]))}}),Qc=[],lw=Lt((t,e)=>{const n=nt(()=>t.tag||"div");return()=>{var o,s,l,c;const r=((s=(o=e.slots).default)==null?void 0:s.call(o))||Qc,a=[];if(r.length>0&&a.push(r[0]),r.length>1)for(let f=1;f<r.length;f++){const h=((c=(l=e.slots).gap)==null?void 0:c.call(l,{index:f-1}))||Qc;a.push(...h),a.push(r[f])}return t.virtual?a:R(n.value,t,a)}},{props:["tag","virtual"]}),uw={flex:"","flex-col":""},cw={flex:"","items-center":"","px-8px":""},fw={key:0,"w-1px":"","bg-gray":"","h-12px":""},hw={href:"/",flex:"",title:"首页","mr-4px":""},dw=M("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[M("path",{d:"M16.612 2.214a1.01 1.01 0 0 0-1.242 0L1 13.419l1.243 1.572L4 13.621V26a2.004 2.004 0 0 0 2 2h20a2.004 2.004 0 0 0 2-2V13.63L29.757 15L31 13.428zM18 26h-4v-8h4zm2 0v-8a2.002 2.002 0 0 0-2-2h-4a2.002 2.002 0 0 0-2 2v8H6V12.062l10-7.79l10 7.8V26z",fill:"currentColor"})],-1),vw={flex:"","items-center":"","gap-2px":"","max-w-120px":""},pw=M("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[M("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98c0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46a.5.5 0 0 0-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.488.488 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1a.566.566 0 0 0-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98c0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46a.5.5 0 0 0 .61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73c0 .21-.02.43-.05.73l-.14 1.13l.89.7l1.08.84l-.7 1.21l-1.27-.51l-1.04-.42l-.9.68c-.43.32-.84.56-1.25.73l-1.06.43l-.16 1.13l-.2 1.35h-1.4l-.19-1.35l-.16-1.13l-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7l-1.06.43l-1.27.51l-.7-1.21l1.08-.84l.89-.7l-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13l-.89-.7l-1.08-.84l.7-1.21l1.27.51l1.04.42l.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43l.16-1.13l.2-1.35h1.39l.19 1.35l.16 1.13l1.06.43c.43.18.83.41 1.23.71l.91.7l1.06-.43l1.27-.51l.7 1.21l-1.07.85l-.89.7l.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4s4-1.79 4-4s-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2s2 .9 2 2s-.9 2-2 2z",fill:"currentColor"})],-1),_w=M("div",{"flex-1":""},null,-1),mw={"ml-8px":""},gw=M("div",{"h-1px":"","mt-4px":"",bg:"#efeff5"},null,-1),yw=Lt({__name:"WindowCard",props:{snapshot:{},rootNode:{},focusNode:{},focusCount:{},onUpdateFocusNode:{type:Function,default:di}},setup(t){const e=t,n=ne([]);Lr([()=>e.focusNode,()=>e.focusCount],async()=>{if(!e.focusNode)return;const h=e.focusNode.id;ga().then(async()=>{var y,_;await af(100),h===((y=e.focusNode)==null?void 0:y.id)&&((_=r.value)==null||_.scrollTo({key:h,behavior:"smooth",debounce:!0}))});let d=e.focusNode.parent;if(!d)return;const v=new Set(n.value);for(;d;)v.add(d.id),d=d.parent;v.size==n.value.length&&n.value.every(y=>v.has(y))||(n.value=[...v])});const r=ne(),a=(h,d)=>{var v;return d.id===((v=e.focusNode)==null?void 0:v.id)},o=h=>{var v;const d=h.option.idQf||h.option.textQf||h.option.quickFind;return{onClick:()=>{e.onUpdateFocusNode(h.option)},style:{color:h.option.id==((v=e.focusNode)==null?void 0:v.id)?"#00F":void 0,fontWeight:d?"bold":void 0}}},s=h=>ka(h.option),l=nt(()=>`${lc(e.snapshot).manufacturer} Android ${lc(e.snapshot).release||""}`),c=nt(()=>er(e.snapshot).isSystem),f=nt(()=>!e.snapshot.activityId||!e.snapshot.appId?"":e.snapshot.activityId.startsWith(e.snapshot.appId)&&e.snapshot.activityId.length>e.snapshot.appId.length?e.snapshot.activityId.substring(e.snapshot.appId.length):e.snapshot.activityId);return(h,d)=>(ot(),Ne("div",uw,[M("div",cw,[Z(x(lw),{flex:"","flex-wrap":"","items-center":"","gap-8px":"",gkd_code:""},{gap:T(({index:v})=>[v>0?(ot(),Ne("div",fw)):Oe("",!0)]),default:T(()=>[M("a",hw,[Z(x(tr),{text:""},{icon:T(()=>[Z(x(rr),null,{default:T(()=>[dw]),_:1})]),_:1})]),Z(x(Zn),null,{trigger:T(()=>[M("div",{onClick:d[0]||(d[0]=v=>x(nr)(x(l)))},Dt(x(l)),1)]),default:T(()=>[be(" 设备名称 ")]),_:1}),Z(x(Zn),null,{trigger:T(()=>[M("div",{class:hi({"opacity-50":!x(uc)(h.snapshot).versionName})},Dt(x(uc)(h.snapshot).versionName||"null"),3)]),default:T(()=>[be(" GKD 版本 ")]),_:1}),M("div",vw,[x(c)?(ot(),_e(x(Zn),{key:0},{trigger:T(()=>[Z(x(rr),{size:14},{default:T(()=>[pw]),_:1})]),default:T(()=>[be(" 系统应用 ")]),_:1})):Oe("",!0),Z(x(Zn),null,{trigger:T(()=>[M("div",{onClick:d[1]||(d[1]=v=>x(nr)(x(er)(h.snapshot).name))},Dt(x(er)(h.snapshot).name),1)]),default:T(()=>[be(" 应用名称 ")]),_:1})]),Z(x(Zn),null,{trigger:T(()=>[M("div",{onClick:d[2]||(d[2]=v=>x(nr)(x(er)(h.snapshot).versionName))},Dt(x(er)(h.snapshot).versionName),1)]),default:T(()=>[be(" 版本名称 ")]),_:1}),Z(x(Zn),null,{trigger:T(()=>[M("div",{onClick:d[3]||(d[3]=v=>x(nr)(x(er)(h.snapshot).versionCode.toString()))},Dt(x(er)(h.snapshot).versionCode),1)]),default:T(()=>[be(" 版本代码 ")]),_:1}),Z(x(Zn),null,{trigger:T(()=>[M("div",{onClick:d[4]||(d[4]=v=>x(nr)(h.snapshot.appId))},Dt(h.snapshot.appId),1)]),default:T(()=>[be(" 应用ID ")]),_:1}),Z(x(Zn),null,{trigger:T(()=>[M("div",{onClick:d[5]||(d[5]=v=>x(nr)(x(f))),class:hi({"opacity-50":!x(f)})},Dt(x(f)||"null"),3)]),default:T(()=>[be(" 界面ID ")]),_:1})]),_:1}),_w,M("div",mw,[tf(h.$slots,"default")])]),gw,Z(x(Iv),{ref_key:"treeRef",ref:r,virtualScroll:"",showLine:"",keyField:"id",expandedKeys:x(n),"onUpdate:expandedKeys":d[6]||(d[6]=v=>ba(n)?n.value=v:null),data:[h.rootNode],filter:a,nodeProps:o,renderLabel:s},null,8,["expandedKeys","data","filter","nodeProps","renderLabel"])]))}}),ww={"h-full":"",flex:"","gap-5px":"","p-5px":"","box-border":""},bw=M("svg",{viewBox:"0 0 24 24"},[M("path",{fill:"currentColor",d:"M5 21V8.825Q4.125 8.5 3.563 7.738T3 6q0-1.25.875-2.125T6 3q1.25 0 2.125.875T9 6q0 .975-.562 1.738T7 8.825V19h4V3h8v12.175q.875.325 1.438 1.088T21 18q0 1.25-.875 2.125T18 21q-1.25 0-2.125-.875T15 18q0-.975.563-1.75T17 15.175V5h-4v16zM6 7q.425 0 .713-.288T7 6q0-.425-.288-.712T6 5q-.425 0-.712.288T5 6q0 .425.288.713T6 7m12 12q.425 0 .713-.288T19 18q0-.425-.288-.712T18 17q-.425 0-.712.288T17 18q0 .425.288.713T18 19m0-1"})],-1),kw={key:0,class:"gkd_code py-2px px-4px rounded-2px bg-[#eee]"},Cw=M("div",{"opacity-75":"","text-12px":""},"*为简化视图已隐藏部分节点",-1),Pw=Lt({__name:"SnapshotPage",setup(t){const e=(()=>{const g=()=>S1(()=>import("./TrackGraph-bvX9IAqr.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return setTimeout(g,3e3),C1(g)})(),n=rf(),r=nf(),a=W1(),o=nt(()=>String(n.params.snapshotId||"")),s=nt(()=>{const g=Number(n.query.showSize||"");return!Number.isSafeInteger(g)||g<=0?2e3:g}),l=ne(""),c=ne();Da(async()=>{if(!Number.isSafeInteger(+o.value)){En.error("非法快照ID");return}const g=await ec.getItem(o.value);if(!g){nc.start();try{const C=Wi[o.value]||await fetch("https://detect.gkd.li/api/getImportId?id="+o.value).then(k=>k.json());if(C&&Number.isSafeInteger(C)){r.replace({path:"/i/"+C,query:n.query});return}}finally{nc.finish()}En.error("快照数据缺失");return}setTimeout(()=>{const C=Wi[g.id];C&&I1(C)},1e3),N1()&&ef.autoUploadImport&&setTimeout(async()=>{q1(g),Wi[g.id]||A1(await ec.getItem(o.value))},1e3),g.nodes.length>s.value&&(En.warning(`当前展示节点数量为${s.value}
274
+ 之后的${g.nodes.length-s.value}个节点将被丢弃
275
+ 使用showSize查询参数可以修改展示数量`),g.nodes=g.nodes.slice(0,s.value));const p=await x1.getItem(o.value);if(!p){En.create("截屏数据缺失");return}l.value=URL.createObjectURL(new Blob([p],{type:"image/png"})),c.value=g,f.value=D1(g.nodes),a.value="快照-"+er(g).name||g.appId,h.value||(h.value=f.value)});const f=ne(),h=ne(),d=ne(0),v=async()=>{En.success("删除成功,即将回到首页"),await af(2e3),r.replace({path:"/"})},y=ne(),_=ne(!1);Ki(()=>{y.value&&(_.value=!0)});const m=ne();return Lr(()=>h.value,g=>{var C;const p=(C=m.value)==null?void 0:C.nodes;p&&(!g||!p.includes(g))&&(m.value=void 0)}),(g,p)=>(ot(),Ne(Or,null,[M("div",ww,[x(l)&&x(c)?(ot(),_e(Zv,{key:0,url:x(l),snapshot:x(c),rootNode:x(f),focusNode:x(h),onUpdateFocusNode:p[0]||(p[0]=C=>{h.value=C,d.value++}),onUpdateFocusNodes:p[1]||(p[1]=C=>m.value=C)},null,8,["url","snapshot","rootNode","focusNode"])):Oe("",!0),x(c)&&x(f)?(ot(),_e(yw,{key:1,rootNode:x(f),snapshot:x(c),focusNode:x(h),onUpdateFocusNode:p[2]||(p[2]=C=>h.value=C),focusCount:x(d),class:"flex-1"},{default:T(()=>[x(c)?(ot(),_e(E1,{key:0,snapshot:x(c),onDelete:v,showPreview:!1},null,8,["snapshot"])):Oe("",!0)]),_:1},8,["rootNode","snapshot","focusNode","focusCount"])):Oe("",!0)]),x(h)?(ot(),_e(zv,{key:0,focusNode:x(h)},null,8,["focusNode"])):Oe("",!0),x(f)&&x(c)?(ot(),_e(sw,{key:1,snapshot:x(c),rootNode:x(f),focusNode:x(h),onUpdateFocusNode:p[3]||(p[3]=C=>{h.value=C,d.value++}),onUpdateTrack:p[4]||(p[4]=C=>y.value=C)},null,8,["snapshot","rootNode","focusNode"])):Oe("",!0),Z(Bv,{focusNode:x(h),focusNodes:x(m),onUpdateFocusNode:p[5]||(p[5]=C=>{h.value=C,d.value++}),onClose:p[6]||(p[6]=C=>m.value=void 0)},null,8,["focusNode","focusNodes"]),Z(x($1),{show:x(_),"onUpdate:show":p[7]||(p[7]=C=>ba(_)?_.value=C:null),preset:"dialog",title:"选择器路径视图",class:"min-w-[calc(var(--gkd-width)*0.4)]",onAfterLeave:p[8]||(p[8]=C=>y.value=void 0)},{icon:T(()=>[Z(x(rr),null,{default:T(()=>[bw]),_:1})]),default:T(()=>[x(y)?(ot(),Ne("div",kw,Dt(x(y).selector.toString()),1)):Oe("",!0),x(y)?(ot(),_e(x(e),{key:1,track:x(y)},null,8,["track"])):Oe("",!0),Cw]),_:1},8,["show"])],64))}});export{Pw as default};
276
+ //# sourceMappingURL=SnapshotPage-C3-fhmBU.js.map