@gkd-kit/inspect 0.0.1740333832069 → 0.0.1740482998257

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 (56) hide show
  1. package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-M9Jd4dkp.js → ActionCard.vue_vue_type_script_setup_true_lang-DacJ-UuI.js} +4 -4
  2. package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-M9Jd4dkp.js.map → ActionCard.vue_vue_type_script_setup_true_lang-DacJ-UuI.js.map} +1 -1
  3. package/dist/assets/DevicePage-DnuVnPW5.js +49 -0
  4. package/dist/assets/{DevicePage-BY8c3kk2.js.map → DevicePage-DnuVnPW5.js.map} +1 -1
  5. package/dist/assets/HomePage-C7CH_Ajg.js +112 -0
  6. package/dist/assets/{HomePage-DYj0zwbp.js.map → HomePage-C7CH_Ajg.js.map} +1 -1
  7. package/dist/assets/ImportPage-BWc_h_CQ.js +2 -0
  8. package/dist/assets/{ImportPage-Dx4dFmFA.js.map → ImportPage-BWc_h_CQ.js.map} +1 -1
  9. package/dist/assets/{Input-BaPhd4Xe.js → Input-CXshwgiN.js} +2 -2
  10. package/dist/assets/{Input-BaPhd4Xe.js.map → Input-CXshwgiN.js.map} +1 -1
  11. package/dist/assets/SelectorPage-BLZCmKya.css +1 -0
  12. package/dist/assets/SelectorPage-DycNBpQf.js +2 -0
  13. package/dist/assets/SelectorPage-DycNBpQf.js.map +1 -0
  14. package/dist/assets/SnapshotPage-CozGdn53.js +272 -0
  15. package/dist/assets/SnapshotPage-CozGdn53.js.map +1 -0
  16. package/dist/assets/{SvgPage--vO-sFJF.js → SvgPage-D3NUkPtO.js} +2 -2
  17. package/dist/assets/{SvgPage--vO-sFJF.js.map → SvgPage-D3NUkPtO.js.map} +1 -1
  18. package/dist/assets/{_404Page-7wWLVOx5.js → _404Page-BE1vUiRw.js} +2 -2
  19. package/dist/assets/{_404Page-7wWLVOx5.js.map → _404Page-BE1vUiRw.js.map} +1 -1
  20. package/dist/assets/chunk-D5zCSjLw.js +3 -0
  21. package/dist/assets/{chunk-ByxVegT1.js.map → chunk-D5zCSjLw.js.map} +1 -1
  22. package/dist/assets/dayjs.min-Bg7KENpr.js +371 -0
  23. package/dist/assets/dayjs.min-Bg7KENpr.js.map +1 -0
  24. package/dist/assets/{error-D3WWUJoU.js → error-BlyahdiG.js} +5 -5
  25. package/dist/assets/{error-D3WWUJoU.js.map → error-BlyahdiG.js.map} +1 -1
  26. package/dist/assets/{import-BNdtZgHc.js → import-Cxh63wVM.js} +2 -2
  27. package/dist/assets/{import-BNdtZgHc.js.map → import-Cxh63wVM.js.map} +1 -1
  28. package/dist/assets/index-BvMJHG7T.js +10 -0
  29. package/dist/assets/index-BvMJHG7T.js.map +1 -0
  30. package/dist/assets/index-CO6qK6ey.css +1 -0
  31. package/dist/assets/{index-BTV8ur8d.js → index-CYASaayu.js} +57 -49
  32. package/dist/assets/index-CYASaayu.js.map +1 -0
  33. package/dist/assets/{jszip.min-lOcGYU14.js → jszip.min-BOS24VEm.js} +2 -2
  34. package/dist/assets/{jszip.min-lOcGYU14.js.map → jszip.min-BOS24VEm.js.map} +1 -1
  35. package/dist/assets/node-CLCaX0fb.js +2 -0
  36. package/dist/assets/node-CLCaX0fb.js.map +1 -0
  37. package/dist/assets/{polyfills-D3OwY3vx.js → polyfills-VJCO8far.js} +2 -2
  38. package/dist/assets/{polyfills-D3OwY3vx.js.map → polyfills-VJCO8far.js.map} +1 -1
  39. package/dist/assets/{snapshot-Dvvnbv-2.js → snapshot-yzw3cyQE.js} +3 -3
  40. package/dist/assets/{snapshot-Dvvnbv-2.js.map → snapshot-yzw3cyQE.js.map} +1 -1
  41. package/dist/assets/{table-DBRGLq9y.js → table-DC8EQEY9.js} +4 -4
  42. package/dist/assets/{table-DBRGLq9y.js.map → table-DC8EQEY9.js.map} +1 -1
  43. package/dist/index.html +3 -3
  44. package/package.json +2 -2
  45. package/dist/assets/DevicePage-BY8c3kk2.js +0 -49
  46. package/dist/assets/HomePage-DYj0zwbp.js +0 -112
  47. package/dist/assets/ImportPage-Dx4dFmFA.js +0 -2
  48. package/dist/assets/SelectorPage-DKTOtPQ2.js +0 -2
  49. package/dist/assets/SelectorPage-DKTOtPQ2.js.map +0 -1
  50. package/dist/assets/SnapshotPage-TZ0BPxvr.js +0 -280
  51. package/dist/assets/SnapshotPage-TZ0BPxvr.js.map +0 -1
  52. package/dist/assets/chunk-ByxVegT1.js +0 -3
  53. package/dist/assets/dayjs.min-BV2cDtR1.js +0 -371
  54. package/dist/assets/dayjs.min-BV2cDtR1.js.map +0 -1
  55. package/dist/assets/index-BTV8ur8d.js.map +0 -1
  56. package/dist/assets/index-DkIJjf93.css +0 -1
@@ -1,280 +0,0 @@
1
- import{h as It,k as U,a as nt,g as Jn,f as ot,e as et,b as Nt,u as ys,Z as qv,$ as bs,a0 as hu,a1 as Rv,d as du,a2 as ul,o as ge,q as Q,p as es,m as Oi,x as vu,a3 as pu,y as Ie,a4 as kf,a5 as Cf,a6 as Sf,a7 as Pv,t as yt,a8 as Ac,a9 as Tv,aa as Ov,ab as He,ac as Li,ad as Lv,ae as $f,af as cr,ag as jv,ah as Mv,ai as zv,c as Bv,aj as Dv,ak as Fv,al as Kv,s as Jo,V as Uv,am as Yo,N as Hv,l as Wv,an as Vv,B as lo,ao as Qv,v as Ef,i as Gv,ap as Xo,aq as Nc,ar as qc,w as Ga,D as Xn,G as Kr,as as ga,A as qt,C as mu,at as Qs,au as _e,J as ct,av as If,I as Oe,M as Ze,O as A,aw as ti,ax as Gs,ay as Jv,R as Ur,K as H,az as Yv,aA as Af,aB as Nf,z as qf,aC as Rf,aD as Rc,aE as Xv,aF as gu,aG as ji,H as wa,L as T,F as O,Q as ws,aH as rs,aI as Yn,T as gt,S as jt,aJ as Zv,aK as Js,aL as t1,aM as e1,U as ya,aN as n1,aO as r1,P as i1,aP as Zo,aQ as Fr,aR as Pc,W as a1,aS as Tc,aT as tl,aU as Oc}from"./index-BTV8ur8d.js";import{h as _a,C as s1,e as o1,V as l1,c as Lc,f as jc,d as u1,i as Mc,g as Gn,u as c1,l as f1,j as h1,k as d1,m as _u,N as Pf,n as v1,b as Tf,o as as,p as ba,q as zc,r as Of,s as p1,t as m1,_ as g1,v as Bc,w as Dc}from"./dayjs.min-BV2cDtR1.js";import{e as _1,f as y1,g as b1,_ as w1}from"./ActionCard.vue_vue_type_script_setup_true_lang-M9Jd4dkp.js";import{a as x1,b as k1,g as C1}from"./snapshot-Dvvnbv-2.js";import{l as Lf,e as Fc,a as S1}from"./error-D3WWUJoU.js";import{_ as jf}from"./Input-BaPhd4Xe.js";import"./chunk-ByxVegT1.js";function Mf(t){return typeof t=="string"?`s-${t}`:`n-${t}`}const $1=It({name:"ChevronLeft",render(){return U("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U("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"}))}}),E1=It({name:"Switcher",render(){return U("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},U("path",{d:"M12 8l10 8l-10 8z"}))}}),Yt="0!important",zf="-1px!important";function va(t){return ot(`${t}-type`,[et("& +",[nt("button",{},[ot(`${t}-type`,[Nt("border",{borderLeftWidth:Yt}),Nt("state-border",{left:zf})])])])])}function pa(t){return ot(`${t}-type`,[et("& +",[nt("button",[ot(`${t}-type`,[Nt("border",{borderTopWidth:Yt}),Nt("state-border",{top:zf})])])])])}const I1=nt("button-group",`
2
- flex-wrap: nowrap;
3
- display: inline-flex;
4
- position: relative;
5
- `,[Jn("vertical",{flexDirection:"row"},[Jn("rtl",[nt("button",[et("&:first-child:not(:last-child)",`
6
- margin-right: ${Yt};
7
- border-top-right-radius: ${Yt};
8
- border-bottom-right-radius: ${Yt};
9
- `),et("&:last-child:not(:first-child)",`
10
- margin-left: ${Yt};
11
- border-top-left-radius: ${Yt};
12
- border-bottom-left-radius: ${Yt};
13
- `),et("&:not(:first-child):not(:last-child)",`
14
- margin-left: ${Yt};
15
- margin-right: ${Yt};
16
- border-radius: ${Yt};
17
- `),va("default"),ot("ghost",[va("primary"),va("info"),va("success"),va("warning"),va("error")])])])]),ot("vertical",{flexDirection:"column"},[nt("button",[et("&:first-child:not(:last-child)",`
18
- margin-bottom: ${Yt};
19
- margin-left: ${Yt};
20
- margin-right: ${Yt};
21
- border-bottom-left-radius: ${Yt};
22
- border-bottom-right-radius: ${Yt};
23
- `),et("&:last-child:not(:first-child)",`
24
- margin-top: ${Yt};
25
- margin-left: ${Yt};
26
- margin-right: ${Yt};
27
- border-top-left-radius: ${Yt};
28
- border-top-right-radius: ${Yt};
29
- `),et("&:not(:first-child):not(:last-child)",`
30
- margin: ${Yt};
31
- border-radius: ${Yt};
32
- `),pa("default"),ot("ghost",[pa("primary"),pa("info"),pa("success"),pa("warning"),pa("error")])])])]),A1={size:{type:String,default:void 0},vertical:Boolean},N1=It({name:"ButtonGroup",props:A1,setup(t){const{mergedClsPrefixRef:e,mergedRtlRef:n}=ys(t);return qv("-button-group",I1,e),hu(Rv,t),{rtlEnabled:bs("ButtonGroup",n,e),mergedClsPrefix:e}},render(){const{mergedClsPrefix:t}=this;return U("div",{class:[`${t}-button-group`,this.rtlEnabled&&`${t}-button-group--rtl`,this.vertical&&`${t}-button-group--vertical`],role:"group"},this.$slots)}});function q1(t){const{fontWeight:e,textColor1:n,textColor2:i,textColorDisabled:a,dividerColor:s,fontSize:o}=t;return{titleFontSize:o,titleFontWeight:e,dividerColor:s,titleTextColor:n,titleTextColorDisabled:a,fontSize:o,textColor:i,arrowColor:i,arrowColorDisabled:a,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const R1={common:du,self:q1},P1=nt("collapse","width: 100%;",[nt("collapse-item",`
33
- font-size: var(--n-font-size);
34
- color: var(--n-text-color);
35
- transition:
36
- color .3s var(--n-bezier),
37
- border-color .3s var(--n-bezier);
38
- margin: var(--n-item-margin);
39
- `,[ot("disabled",[Nt("header","cursor: not-allowed;",[Nt("header-main",`
40
- color: var(--n-title-text-color-disabled);
41
- `),nt("collapse-item-arrow",`
42
- color: var(--n-arrow-color-disabled);
43
- `)])]),nt("collapse-item","margin-left: 32px;"),et("&:first-child","margin-top: 0;"),et("&:first-child >",[Nt("header","padding-top: 0;")]),ot("left-arrow-placement",[Nt("header",[nt("collapse-item-arrow","margin-right: 4px;")])]),ot("right-arrow-placement",[Nt("header",[nt("collapse-item-arrow","margin-left: 4px;")])]),Nt("content-wrapper",[Nt("content-inner","padding-top: 16px;"),ul({duration:"0.15s"})]),ot("active",[Nt("header",[ot("active",[nt("collapse-item-arrow","transform: rotate(90deg);")])])]),et("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),Jn("disabled",[ot("trigger-area-main",[Nt("header",[Nt("header-main","cursor: pointer;"),nt("collapse-item-arrow","cursor: default;")])]),ot("trigger-area-arrow",[Nt("header",[nt("collapse-item-arrow","cursor: pointer;")])]),ot("trigger-area-extra",[Nt("header",[Nt("header-extra","cursor: pointer;")])])]),Nt("header",`
44
- font-size: var(--n-title-font-size);
45
- display: flex;
46
- flex-wrap: nowrap;
47
- align-items: center;
48
- transition: color .3s var(--n-bezier);
49
- position: relative;
50
- padding: var(--n-title-padding);
51
- color: var(--n-title-text-color);
52
- `,[Nt("header-main",`
53
- display: flex;
54
- flex-wrap: nowrap;
55
- align-items: center;
56
- font-weight: var(--n-title-font-weight);
57
- transition: color .3s var(--n-bezier);
58
- flex: 1;
59
- color: var(--n-title-text-color);
60
- `),Nt("header-extra",`
61
- display: flex;
62
- align-items: center;
63
- transition: color .3s var(--n-bezier);
64
- color: var(--n-text-color);
65
- `),nt("collapse-item-arrow",`
66
- display: flex;
67
- transition:
68
- transform .15s var(--n-bezier),
69
- color .3s var(--n-bezier);
70
- font-size: 18px;
71
- color: var(--n-arrow-color);
72
- `)])])]),T1=Object.assign(Object.assign({},Oi.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}}),Bf=pu("n-collapse"),O1=It({name:"Collapse",props:T1,slots:Object,setup(t,{slots:e}){const{mergedClsPrefixRef:n,inlineThemeDisabled:i,mergedRtlRef:a}=ys(t),s=ge(t.defaultExpandedNames),o=Q(()=>t.expandedNames),l=es(o,s),c=Oi("Collapse","-collapse",P1,R1,t,n);function f(b){const{"onUpdate:expandedNames":w,onUpdateExpandedNames:k,onExpandedNamesChange:E}=t;k&&Ie(k,b),w&&Ie(w,b),E&&Ie(E,b),s.value=b}function h(b){const{onItemHeaderClick:w}=t;w&&Ie(w,b)}function d(b,w,k){const{accordion:E}=t,{value:N}=l;if(E)b?(f([w]),h({name:w,expanded:!0,event:k})):(f([]),h({name:w,expanded:!1,event:k}));else if(!Array.isArray(N))f([w]),h({name:w,expanded:!0,event:k});else{const x=N.slice(),m=x.findIndex(C=>w===C);~m?(x.splice(m,1),f(x),h({name:w,expanded:!1,event:k})):(x.push(w),f(x),h({name:w,expanded:!0,event:k}))}}hu(Bf,{props:t,mergedClsPrefixRef:n,expandedNamesRef:l,slots:e,toggleItem:d});const v=bs("Collapse",a,n),g=Q(()=>{const{common:{cubicBezierEaseInOut:b},self:{titleFontWeight:w,dividerColor:k,titlePadding:E,titleTextColor:N,titleTextColorDisabled:x,textColor:m,arrowColor:C,fontSize:q,titleFontSize:I,arrowColorDisabled:F,itemMargin:B}}=c.value;return{"--n-font-size":q,"--n-bezier":b,"--n-text-color":m,"--n-divider-color":k,"--n-title-padding":E,"--n-title-font-size":I,"--n-title-text-color":N,"--n-title-text-color-disabled":x,"--n-title-font-weight":w,"--n-arrow-color":C,"--n-arrow-color-disabled":F,"--n-item-margin":B}}),p=i?vu("collapse",void 0,g,t):void 0;return{rtlEnabled:v,mergedTheme:c,mergedClsPrefix:n,cssVars:i?void 0:g,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender}},render(){var t;return(t=this.onRender)===null||t===void 0||t.call(this),U("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),L1=It({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(t){return{onceTrue:Pv(yt(t,"show"))}},render(){return U(kf,null,{default:()=>{const{show:t,displayDirective:e,onceTrue:n,clsPrefix:i}=this,a=e==="show"&&n,s=U("div",{class:`${i}-collapse-item__content-wrapper`},U("div",{class:`${i}-collapse-item__content-inner`},this.$slots));return a?Cf(s,[[Sf,t]]):t?s:null}})}}),j1={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},M1=It({name:"CollapseItem",props:j1,setup(t){const{mergedRtlRef:e}=ys(t),n=Ov(),i=He(()=>{var d;return(d=t.name)!==null&&d!==void 0?d:n}),a=Li(Bf);a||Lv("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:s,props:o,mergedClsPrefixRef:l,slots:c}=a,f=Q(()=>{const{value:d}=s;if(Array.isArray(d)){const{value:v}=i;return!~d.findIndex(g=>g===v)}else if(d){const{value:v}=i;return v!==d}return!0});return{rtlEnabled:bs("Collapse",e,l),collapseSlots:c,randomName:n,mergedClsPrefix:l,collapsed:f,triggerAreas:yt(o,"triggerAreas"),mergedDisplayDirective:Q(()=>{const{displayDirective:d}=t;return d||o.displayDirective}),arrowPlacement:Q(()=>o.arrowPlacement),handleClick(d){let v="main";_a(d,"arrow")&&(v="arrow"),_a(d,"extra")&&(v="extra"),o.triggerAreas.includes(v)&&a&&!t.disabled&&a.toggleItem(f.value,i.value,d)}}},render(){const{collapseSlots:t,$slots:e,arrowPlacement:n,collapsed:i,mergedDisplayDirective:a,mergedClsPrefix:s,disabled:o,triggerAreas:l}=this,c=Ac(e.header,{collapsed:i},()=>[this.title]),f=e["header-extra"]||t["header-extra"],h=e.arrow||t.arrow;return U("div",{class:[`${s}-collapse-item`,`${s}-collapse-item--${n}-arrow-placement`,o&&`${s}-collapse-item--disabled`,!i&&`${s}-collapse-item--active`,l.map(d=>`${s}-collapse-item--trigger-area-${d}`)]},U("div",{class:[`${s}-collapse-item__header`,!i&&`${s}-collapse-item__header--active`]},U("div",{class:`${s}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&c,U("div",{class:`${s}-collapse-item-arrow`,key:this.rtlEnabled?0:1,"data-arrow":!0},Ac(h,{collapsed:i},()=>[U($f,{clsPrefix:s},{default:()=>this.rtlEnabled?U($1,null):U(s1,null)})])),n==="left"&&c),Tv(f,{collapsed:i},d=>U("div",{class:`${s}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},d))),U(L1,{clsPrefix:s,displayDirective:a,show:!i},e))}}),z1={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function B1(t){const{dividerColor:e,cardColor:n,modalColor:i,popoverColor:a,tableHeaderColor:s,tableColorStriped:o,textColor1:l,textColor2:c,borderRadius:f,fontWeightStrong:h,lineHeight:d,fontSizeSmall:v,fontSizeMedium:g,fontSizeLarge:p}=t;return Object.assign(Object.assign({},z1),{fontSizeSmall:v,fontSizeMedium:g,fontSizeLarge:p,lineHeight:d,borderRadius:f,borderColor:cr(n,e),borderColorModal:cr(i,e),borderColorPopover:cr(a,e),tdColor:n,tdColorModal:i,tdColorPopover:a,tdColorStriped:cr(n,o),tdColorStripedModal:cr(i,o),tdColorStripedPopover:cr(a,o),thColor:cr(n,s),thColorModal:cr(i,s),thColorPopover:cr(a,s),thTextColor:l,tdTextColor:c,thFontWeight:h})}const D1={common:du,self:B1};function F1(t){const{borderRadiusSmall:e,dividerColor:n,hoverColor:i,pressedColor:a,primaryColor:s,textColor3:o,textColor2:l,textColorDisabled:c,fontSize:f}=t;return{fontSize:f,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:e,nodeColorHover:i,nodeColorPressed:a,nodeColorActive:Bv(s,{alpha:.1}),arrowColor:o,nodeTextColor:l,nodeTextColorDisabled:c,loadingColor:s,dropMarkColor:s,lineColor:n}}const K1=jv({name:"Tree",common:du,peers:{Checkbox:zv,Scrollbar:Mv,Empty:o1},self:F1}),U1=Object.assign(Object.assign({},Oi.props),{trigger:String,xScrollable:Boolean,onScroll:Function,contentClass:String,contentStyle:[Object,String],size:Number,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),Df=It({name:"Scrollbar",props:U1,setup(){const t=ge(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var i;(i=t.value)===null||i===void 0||i.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var i;(i=t.value)===null||i===void 0||i.scrollBy(n[0],n[1])}}),{scrollbarInstRef:t})},render(){return U(Dv,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}}),H1=et([nt("table",`
73
- font-size: var(--n-font-size);
74
- font-variant-numeric: tabular-nums;
75
- line-height: var(--n-line-height);
76
- width: 100%;
77
- border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
78
- text-align: left;
79
- border-collapse: separate;
80
- border-spacing: 0;
81
- overflow: hidden;
82
- background-color: var(--n-td-color);
83
- border-color: var(--n-merged-border-color);
84
- transition:
85
- background-color .3s var(--n-bezier),
86
- border-color .3s var(--n-bezier),
87
- color .3s var(--n-bezier);
88
- --n-merged-border-color: var(--n-border-color);
89
- `,[et("th",`
90
- white-space: nowrap;
91
- transition:
92
- background-color .3s var(--n-bezier),
93
- border-color .3s var(--n-bezier),
94
- color .3s var(--n-bezier);
95
- text-align: inherit;
96
- padding: var(--n-th-padding);
97
- vertical-align: inherit;
98
- text-transform: none;
99
- border: 0px solid var(--n-merged-border-color);
100
- font-weight: var(--n-th-font-weight);
101
- color: var(--n-th-text-color);
102
- background-color: var(--n-th-color);
103
- border-bottom: 1px solid var(--n-merged-border-color);
104
- border-right: 1px solid var(--n-merged-border-color);
105
- `,[et("&:last-child",`
106
- border-right: 0px solid var(--n-merged-border-color);
107
- `)]),et("td",`
108
- transition:
109
- background-color .3s var(--n-bezier),
110
- border-color .3s var(--n-bezier),
111
- color .3s var(--n-bezier);
112
- padding: var(--n-td-padding);
113
- color: var(--n-td-text-color);
114
- background-color: var(--n-td-color);
115
- border: 0px solid var(--n-merged-border-color);
116
- border-right: 1px solid var(--n-merged-border-color);
117
- border-bottom: 1px solid var(--n-merged-border-color);
118
- `,[et("&:last-child",`
119
- border-right: 0px solid var(--n-merged-border-color);
120
- `)]),ot("bordered",`
121
- border: 1px solid var(--n-merged-border-color);
122
- border-radius: var(--n-border-radius);
123
- `,[et("tr",[et("&:last-child",[et("td",`
124
- border-bottom: 0 solid var(--n-merged-border-color);
125
- `)])])]),ot("single-line",[et("th",`
126
- border-right: 0px solid var(--n-merged-border-color);
127
- `),et("td",`
128
- border-right: 0px solid var(--n-merged-border-color);
129
- `)]),ot("single-column",[et("tr",[et("&:not(:last-child)",[et("td",`
130
- border-bottom: 0px solid var(--n-merged-border-color);
131
- `)])])]),ot("striped",[et("tr:nth-of-type(even)",[et("td","background-color: var(--n-td-color-striped)")])]),Jn("bottom-bordered",[et("tr",[et("&:last-child",[et("td",`
132
- border-bottom: 0px solid var(--n-merged-border-color);
133
- `)])])])]),Fv(nt("table",`
134
- background-color: var(--n-td-color-modal);
135
- --n-merged-border-color: var(--n-border-color-modal);
136
- `,[et("th",`
137
- background-color: var(--n-th-color-modal);
138
- `),et("td",`
139
- background-color: var(--n-td-color-modal);
140
- `)])),Kv(nt("table",`
141
- background-color: var(--n-td-color-popover);
142
- --n-merged-border-color: var(--n-border-color-popover);
143
- `,[et("th",`
144
- background-color: var(--n-th-color-popover);
145
- `),et("td",`
146
- background-color: var(--n-td-color-popover);
147
- `)]))]),W1=Object.assign(Object.assign({},Oi.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"}}),V1=It({name:"Table",props:W1,setup(t){const{mergedClsPrefixRef:e,inlineThemeDisabled:n,mergedRtlRef:i}=ys(t),a=Oi("Table","-table",H1,D1,t,e),s=bs("Table",i,e),o=Q(()=>{const{size:c}=t,{self:{borderColor:f,tdColor:h,tdColorModal:d,tdColorPopover:v,thColor:g,thColorModal:p,thColorPopover:b,thTextColor:w,tdTextColor:k,borderRadius:E,thFontWeight:N,lineHeight:x,borderColorModal:m,borderColorPopover:C,tdColorStriped:q,tdColorStripedModal:I,tdColorStripedPopover:F,[Jo("fontSize",c)]:B,[Jo("tdPadding",c)]:K,[Jo("thPadding",c)]:lt},common:{cubicBezierEaseInOut:pe}}=a.value;return{"--n-bezier":pe,"--n-td-color":h,"--n-td-color-modal":d,"--n-td-color-popover":v,"--n-td-text-color":k,"--n-border-color":f,"--n-border-color-modal":m,"--n-border-color-popover":C,"--n-border-radius":E,"--n-font-size":B,"--n-th-color":g,"--n-th-color-modal":p,"--n-th-color-popover":b,"--n-th-font-weight":N,"--n-th-text-color":w,"--n-line-height":x,"--n-td-padding":K,"--n-th-padding":lt,"--n-td-color-striped":q,"--n-td-color-striped-modal":I,"--n-td-color-striped-popover":F}}),l=n?vu("table",Q(()=>t.size[0]),o,t):void 0;return{rtlEnabled:s,mergedClsPrefix:e,cssVars:n?void 0:o,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),U("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)}}),Q1=It({name:"Tbody",render(){return U("tbody",null,this.$slots)}}),G1=It({name:"Td",render(){return U("td",null,this.$slots)}}),J1=It({name:"Tr",render(){return U("tr",null,this.$slots)}}),Ff=pu("n-tree-select");function Kc({position:t,offsetLevel:e,indent:n,el:i}){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 s=t==="before"?"top":"bottom";a[s]=0,a.left=`${i.offsetLeft+6-e*n}px`,a.height="2px",a.backgroundColor="var(--n-drop-mark-color)",a.transformOrigin=s,a.borderRadius="1px",a.transform=t==="before"?"translateY(-4px)":"translateY(4px)"}return U("div",{style:a})}function Y1({dropPosition:t,node:e}){return e.isLeaf===!1||e.children?!0:t!=="inside"}const xs=pu("n-tree");function X1({props:t,fNodesRef:e,mergedExpandedKeysRef:n,mergedSelectedKeysRef:i,mergedCheckedKeysRef:a,handleCheck:s,handleSelect:o,handleSwitcherClick:l}){const{value:c}=i,f=Li(Ff,null),h=f?f.pendingNodeKeyRef:ge(c.length?c[c.length-1]:null);function d(v){var g;if(!t.keyboard)return{enterBehavior:null};const{value:p}=h;let b=null;if(p===null){if((v.key==="ArrowDown"||v.key==="ArrowUp")&&v.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(v.key)&&p===null){const{value:w}=e;let k=0;for(;k<w.length;){if(!w[k].disabled){h.value=w[k].key;break}k+=1}}}else{const{value:w}=e;let k=w.findIndex(E=>E.key===p);if(!~k)return{enterBehavior:null};if(v.key==="Enter"){const E=w[k];switch(b=((g=t.overrideDefaultNodeClickBehavior)===null||g===void 0?void 0:g.call(t,{option:E.rawNode}))||null,b){case"toggleCheck":s(E,!a.value.includes(E.key));break;case"toggleSelect":o(E);break;case"toggleExpand":l(E);break;case"none":break;case"default":default:b="default",o(E)}}else if(v.key==="ArrowDown")for(v.preventDefault(),k+=1;k<w.length;){if(!w[k].disabled){h.value=w[k].key;break}k+=1}else if(v.key==="ArrowUp")for(v.preventDefault(),k-=1;k>=0;){if(!w[k].disabled){h.value=w[k].key;break}k-=1}else if(v.key==="ArrowLeft"){const E=w[k];if(E.isLeaf||!n.value.includes(p)){const N=E.getParent();N&&(h.value=N.key)}else l(E)}else if(v.key==="ArrowRight"){const E=w[k];if(E.isLeaf)return{enterBehavior:null};if(!n.value.includes(p))l(E);else for(k+=1;k<w.length;){if(!w[k].disabled){h.value=w[k].key;break}k+=1}}}return{enterBehavior:b}}return{pendingNodeKeyRef:h,handleKeydown:d}}const Z1=It({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=Li(xs);function n(a){const{onCheck:s}=t;s&&s(a)}function i(a){n(a)}return{handleUpdateValue:i,mergedTheme:e.mergedThemeRef}},render(){const{clsPrefix:t,mergedTheme:e,checked:n,indeterminate:i,disabled:a,focusable:s,indent:o,handleUpdateValue:l}=this;return U("span",{class:[`${t}-tree-node-checkbox`,this.right&&`${t}-tree-node-checkbox--right`],style:{width:`${o}px`},"data-checkbox":!0},U(Uv,{focusable:s,disabled:a,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,checked:n,indeterminate:i,onUpdateChecked:l}))}}),tp=It({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:i,labelFieldRef:a}=Li(xs),s=ge(null);function o(c){const{onClick:f}=t;f&&f(c)}function l(c){o(c)}return{selfRef:s,renderLabel:e,renderPrefix:n,renderSuffix:i,labelField:a,handleClick:l}},render(){const{clsPrefix:t,labelField:e,nodeProps:n,checked:i=!1,selected:a=!1,renderLabel:s,renderPrefix:o,renderSuffix:l,handleClick:c,onDragstart:f,tmNode:{rawNode:h,rawNode:{prefix:d,suffix:v,[e]:g}}}=this;return U("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}),o||d?U("div",{class:`${t}-tree-node-content__prefix`},o?o({option:h,selected:a,checked:i}):Yo(d)):null,U("div",{class:`${t}-tree-node-content__text`},s?s({option:h,selected:a,checked:i}):Yo(g)),l||v?U("div",{class:`${t}-tree-node-content__suffix`},l?l({option:h,selected:a,checked:i}):Yo(v)):null)}}),ep=It({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}=Li(xs,null);return()=>{const{clsPrefix:n,expanded:i,hide:a,indent:s,onClick:o}=t;return U("span",{"data-switcher":!0,class:[`${n}-tree-node-switcher`,i&&`${n}-tree-node-switcher--expanded`,a&&`${n}-tree-node-switcher--hide`],style:{width:`${s}px`},onClick:o},U("div",{class:`${n}-tree-node-switcher__icon`},U(Hv,null,{default:()=>{if(t.loading)return U(Wv,{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}):U($f,{clsPrefix:n,key:"switcher"},{default:()=>U(E1,null)})}})))}}});function np(t){return Q(()=>t.leafOnly?"child":t.checkStrategy)}function Dr(t,e){return!!t.rawNode[e]}function Kf(t,e,n,i){t==null||t.forEach(a=>{n(a),Kf(a[e],e,n,i),i(a)})}function rp(t,e,n,i,a){const s=new Set,o=new Set,l=[];return Kf(t,i,c=>{if(l.push(c),a(e,c)){o.add(c[n]);for(let f=l.length-2;f>=0;--f)if(!s.has(l[f][n]))s.add(l[f][n]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(s),highlightKeySet:o}}if(Vv&&Image){const t=new Image;t.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function ip(t,e,n,i,a){const s=new Set,o=new Set,l=new Set,c=[],f=[],h=[];function d(g){g.forEach(p=>{if(h.push(p),e(n,p)){s.add(p[i]),l.add(p[i]);for(let w=h.length-2;w>=0;--w){const k=h[w][i];if(!o.has(k))o.add(k),s.has(k)&&s.delete(k);else break}}const b=p[a];b&&d(b),h.pop()})}d(t);function v(g,p){g.forEach(b=>{const w=b[i],k=s.has(w),E=o.has(w);if(!k&&!E)return;const N=b[a];if(N)if(k)p.push(b);else{c.push(w);const x=Object.assign(Object.assign({},b),{[a]:[]});p.push(x),v(N,x[a])}else p.push(b)})}return v(t,f),{filteredTree:f,highlightKeySet:l,expandedKeys:c}}const Uf=It({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(t){const e=Li(xs),{droppingNodeParentRef:n,droppingMouseNodeRef:i,draggingNodeRef:a,droppingPositionRef:s,droppingOffsetLevelRef:o,nodePropsRef:l,indentRef:c,blockLineRef:f,checkboxPlacementRef:h,checkOnClickRef:d,disabledFieldRef:v,showLineRef:g,renderSwitcherIconRef:p,overrideDefaultNodeClickBehaviorRef:b}=e,w=He(()=>!!t.tmNode.rawNode.checkboxDisabled),k=He(()=>Dr(t.tmNode,v.value)),E=He(()=>e.disabledRef.value||k.value),N=Q(()=>{const{value:D}=l;if(D)return D({option:t.tmNode.rawNode})}),x=ge(null),m={value:null};lo(()=>{m.value=x.value.$el});function C(){const D=()=>{const{tmNode:ht}=t;if(!ht.isLeaf&&!ht.shallowLoaded){if(!e.loadingKeysRef.value.has(ht.key))e.loadingKeysRef.value.add(ht.key);else return;const{onLoadRef:{value:mt}}=e;mt&&mt(ht.rawNode).then(Ft=>{Ft!==!1&&e.handleSwitcherClick(ht)}).finally(()=>{e.loadingKeysRef.value.delete(ht.key)})}else e.handleSwitcherClick(ht)};p.value?setTimeout(D,0):D()}const q=He(()=>!k.value&&e.selectableRef.value&&(e.internalTreeSelect?e.mergedCheckStrategyRef.value!=="child"||e.multipleRef.value&&e.cascadeRef.value||t.tmNode.isLeaf:!0)),I=He(()=>e.checkableRef.value&&(e.cascadeRef.value||e.mergedCheckStrategyRef.value!=="child"||t.tmNode.isLeaf)),F=He(()=>e.displayedCheckedKeysRef.value.includes(t.tmNode.key)),B=He(()=>{const{value:D}=I;if(!D)return!1;const{value:ht}=d,{tmNode:mt}=t;return typeof ht=="boolean"?!mt.disabled&&ht:ht(t.tmNode.rawNode)});function K(D){const{value:ht}=e.expandOnClickRef,{value:mt}=q,{value:Ft}=B;if(!mt&&!ht&&!Ft||_a(D,"checkbox")||_a(D,"switcher"))return;const{tmNode:me}=t;mt&&e.handleSelect(me),ht&&!me.isLeaf&&C(),Ft&&Dt(!F.value)}function lt(D){var ht,mt;if(!(_a(D,"checkbox")||_a(D,"switcher"))){if(!E.value){const Ft=b.value;let me=!1;if(Ft)switch(Ft({option:t.tmNode.rawNode})){case"toggleCheck":me=!0,Dt(!F.value);break;case"toggleSelect":me=!0,e.handleSelect(t.tmNode);break;case"toggleExpand":me=!0,C(),me=!0;break;case"none":me=!0,me=!0;return}me||K(D)}(mt=(ht=N.value)===null||ht===void 0?void 0:ht.onClick)===null||mt===void 0||mt.call(ht,D)}}function pe(D){f.value||lt(D)}function Ot(D){f.value&&lt(D)}function Dt(D){e.handleCheck(t.tmNode,D)}function Gt(D){e.handleDragStart({event:D,node:t.tmNode})}function Lt(D){D.currentTarget===D.target&&e.handleDragEnter({event:D,node:t.tmNode})}function oe(D){D.preventDefault(),e.handleDragOver({event:D,node:t.tmNode})}function at(D){e.handleDragEnd({event:D,node:t.tmNode})}function Ue(D){D.currentTarget===D.target&&e.handleDragLeave({event:D,node:t.tmNode})}function ne(D){D.preventDefault(),s.value!==null&&e.handleDrop({event:D,node:t.tmNode,dropPosition:s.value})}const jn=Q(()=>{const{clsPrefix:D}=t,{value:ht}=c;if(g.value){const mt=[];let Ft=t.tmNode.parent;for(;Ft;)Ft.isLastChild?mt.push(U("div",{class:`${D}-tree-node-indent`},U("div",{style:{width:`${ht}px`}}))):mt.push(U("div",{class:[`${D}-tree-node-indent`,`${D}-tree-node-indent--show-line`]},U("div",{style:{width:`${ht}px`}}))),Ft=Ft.parent;return mt.reverse()}else return Qv(t.tmNode.level,U("div",{class:`${t.clsPrefix}-tree-node-indent`},U("div",{style:{width:`${ht}px`}})))});return{showDropMark:He(()=>{const{value:D}=a;if(!D)return;const{value:ht}=s;if(!ht)return;const{value:mt}=i;if(!mt)return;const{tmNode:Ft}=t;return Ft.key===mt.key}),showDropMarkAsParent:He(()=>{const{value:D}=n;if(!D)return!1;const{tmNode:ht}=t,{value:mt}=s;return mt==="before"||mt==="after"?D.key===ht.key:!1}),pending:He(()=>e.pendingNodeKeyRef.value===t.tmNode.key),loading:He(()=>e.loadingKeysRef.value.has(t.tmNode.key)),highlight:He(()=>{var D;return(D=e.highlightKeySetRef.value)===null||D===void 0?void 0:D.has(t.tmNode.key)}),checked:F,indeterminate:He(()=>e.displayedIndeterminateKeysRef.value.includes(t.tmNode.key)),selected:He(()=>e.mergedSelectedKeysRef.value.includes(t.tmNode.key)),expanded:He(()=>e.mergedExpandedKeysRef.value.includes(t.tmNode.key)),disabled:E,checkable:I,mergedCheckOnClick:B,checkboxDisabled:w,selectable:q,expandOnClick:e.expandOnClickRef,internalScrollable:e.internalScrollableRef,draggable:e.draggableRef,blockLine:f,nodeProps:N,checkboxFocusable:e.internalCheckboxFocusableRef,droppingPosition:s,droppingOffsetLevel:o,indent:c,checkboxPlacement:h,showLine:g,contentInstRef:x,contentElRef:m,indentNodes:jn,handleCheck:Dt,handleDrop:ne,handleDragStart:Gt,handleDragEnter:Lt,handleDragOver:oe,handleDragEnd:at,handleDragLeave:Ue,handleLineClick:Ot,handleContentClick:pe,handleSwitcherClick:C}},render(){const{tmNode:t,clsPrefix:e,checkable:n,expandOnClick:i,selectable:a,selected:s,checked:o,highlight:l,draggable:c,blockLine:f,indent:h,indentNodes:d,disabled:v,pending:g,internalScrollable:p,nodeProps:b,checkboxPlacement:w}=this,k=c&&!v?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,E=p?Mf(t.key):void 0,N=w==="right",x=n?U(Z1,{indent:h,right:N,focusable:this.checkboxFocusable,disabled:v||this.checkboxDisabled,clsPrefix:e,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return U("div",Object.assign({class:`${e}-tree-node-wrapper`},k),U("div",Object.assign({},f?b:void 0,{class:[`${e}-tree-node`,{[`${e}-tree-node--selected`]:s,[`${e}-tree-node--checkable`]:n,[`${e}-tree-node--highlight`]:l,[`${e}-tree-node--pending`]:g,[`${e}-tree-node--disabled`]:v,[`${e}-tree-node--selectable`]:a,[`${e}-tree-node--clickable`]:a||i||this.mergedCheckOnClick},b==null?void 0:b.class],"data-key":E,draggable:c&&f,onClick:this.handleLineClick,onDragstart:c&&f&&!v?this.handleDragStart:void 0}),d,t.isLeaf&&this.showLine?U("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`]},U("div",{style:{width:`${h}px`}})):U(ep,{clsPrefix:e,expanded:this.expanded,selected:s,loading:this.loading,hide:t.isLeaf,tmNode:this.tmNode,indent:h,onClick:this.handleSwitcherClick}),N?null:x,U(tp,{ref:"contentInstRef",clsPrefix:e,checked:o,selected:s,onClick:this.handleContentClick,nodeProps:f?void 0:b,onDragstart:c&&!f&&!v?this.handleDragStart:void 0,tmNode:t}),c?this.showDropMark?Kc({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:h}):this.showDropMarkAsParent?Kc({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:h}):null:null,N?x:null))}}),ap=It({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 U(kf,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode==="collapse"},{default:()=>U("div",{class:[`${t}-tree-motion-wrapper`,`${t}-tree-motion-wrapper--${this.mode}`],style:{height:Ef(this.height)}},this.nodes.map(e=>U(Uf,{clsPrefix:t,tmNode:e})))})}}),el=Gv(),sp=nt("tree",`
148
- font-size: var(--n-font-size);
149
- outline: none;
150
- `,[et("ul, li",`
151
- margin: 0;
152
- padding: 0;
153
- list-style: none;
154
- `),et(">",[nt("tree-node",[et("&:first-child","margin-top: 0;")])]),nt("tree-motion-wrapper",[ot("expand",[ul({duration:"0.2s"})]),ot("collapse",[ul({duration:"0.2s",reverse:!0})])]),nt("tree-node-wrapper",`
155
- box-sizing: border-box;
156
- padding: var(--n-node-wrapper-padding);
157
- `),nt("tree-node",`
158
- transform: translate3d(0,0,0);
159
- position: relative;
160
- display: flex;
161
- border-radius: var(--n-node-border-radius);
162
- transition: background-color .3s var(--n-bezier);
163
- `,[ot("highlight",[nt("tree-node-content",[Nt("text","border-bottom-color: var(--n-node-text-color-disabled);")])]),ot("disabled",[nt("tree-node-content",`
164
- color: var(--n-node-text-color-disabled);
165
- cursor: not-allowed;
166
- `)]),Jn("disabled",[ot("clickable",[nt("tree-node-content",`
167
- cursor: pointer;
168
- `)])])]),ot("block-node",[nt("tree-node-content",`
169
- flex: 1;
170
- min-width: 0;
171
- `)]),Jn("block-line",[nt("tree-node",[Jn("disabled",[nt("tree-node-content",[et("&:hover","background: var(--n-node-color-hover);")]),ot("selectable",[nt("tree-node-content",[et("&:active","background: var(--n-node-color-pressed);")])]),ot("pending",[nt("tree-node-content",`
172
- background: var(--n-node-color-hover);
173
- `)]),ot("selected",[nt("tree-node-content","background: var(--n-node-color-active);")])]),ot("selected",[nt("tree-node-content","background: var(--n-node-color-active);")])])]),ot("block-line",[nt("tree-node",[Jn("disabled",[et("&:hover","background: var(--n-node-color-hover);"),ot("pending",`
174
- background: var(--n-node-color-hover);
175
- `),ot("selectable",[Jn("selected",[et("&:active","background: var(--n-node-color-pressed);")])]),ot("selected","background: var(--n-node-color-active);")]),ot("selected","background: var(--n-node-color-active);"),ot("disabled",`
176
- cursor: not-allowed;
177
- `)])]),nt("tree-node-indent",`
178
- flex-grow: 0;
179
- flex-shrink: 0;
180
- `,[ot("show-line","position: relative",[et("&::before",`
181
- position: absolute;
182
- left: 50%;
183
- border-left: 1px solid var(--n-line-color);
184
- transition: border-color .3s var(--n-bezier);
185
- transform: translate(-50%);
186
- content: "";
187
- top: var(--n-line-offset-top);
188
- bottom: var(--n-line-offset-bottom);
189
- `),ot("last-child",[et("&::before",`
190
- bottom: 50%;
191
- `)]),ot("is-leaf",[et("&::after",`
192
- position: absolute;
193
- content: "";
194
- left: calc(50% + 0.5px);
195
- right: 0;
196
- bottom: 50%;
197
- transition: border-color .3s var(--n-bezier);
198
- border-bottom: 1px solid var(--n-line-color);
199
- `)])]),Jn("show-line","height: 0;")]),nt("tree-node-switcher",`
200
- cursor: pointer;
201
- display: inline-flex;
202
- flex-shrink: 0;
203
- height: var(--n-node-content-height);
204
- align-items: center;
205
- justify-content: center;
206
- transition: transform .15s var(--n-bezier);
207
- vertical-align: bottom;
208
- `,[Nt("icon",`
209
- position: relative;
210
- height: 14px;
211
- width: 14px;
212
- display: flex;
213
- color: var(--n-arrow-color);
214
- transition: color .3s var(--n-bezier);
215
- font-size: 14px;
216
- `,[nt("icon",[el]),nt("base-loading",`
217
- color: var(--n-loading-color);
218
- position: absolute;
219
- left: 0;
220
- top: 0;
221
- right: 0;
222
- bottom: 0;
223
- `,[el]),nt("base-icon",[el])]),ot("hide","visibility: hidden;"),ot("expanded","transform: rotate(90deg);")]),nt("tree-node-checkbox",`
224
- display: inline-flex;
225
- height: var(--n-node-content-height);
226
- vertical-align: bottom;
227
- align-items: center;
228
- justify-content: center;
229
- `),nt("tree-node-content",`
230
- user-select: none;
231
- position: relative;
232
- display: inline-flex;
233
- align-items: center;
234
- min-height: var(--n-node-content-height);
235
- box-sizing: border-box;
236
- line-height: var(--n-line-height);
237
- vertical-align: bottom;
238
- padding: 0 6px 0 4px;
239
- cursor: default;
240
- border-radius: var(--n-node-border-radius);
241
- color: var(--n-node-text-color);
242
- transition:
243
- color .3s var(--n-bezier),
244
- background-color .3s var(--n-bezier),
245
- border-color .3s var(--n-bezier);
246
- `,[et("&:last-child","margin-bottom: 0;"),Nt("prefix",`
247
- display: inline-flex;
248
- margin-right: 8px;
249
- `),Nt("text",`
250
- border-bottom: 1px solid #0000;
251
- transition: border-color .3s var(--n-bezier);
252
- flex-grow: 1;
253
- max-width: 100%;
254
- `),Nt("suffix",`
255
- display: inline-flex;
256
- `)]),Nt("empty","margin: auto;")]);var op=function(t,e,n,i){function a(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(h){try{f(i.next(h))}catch(d){o(d)}}function c(h){try{f(i.throw(h))}catch(d){o(d)}}function f(h){h.done?s(h.value):a(h.value).then(l,c)}f((i=i.apply(t,[])).next())})};function Uc(t,e,n,i){return{getIsGroup(){return!1},getKey(s){return s[t]},getChildren:i||(s=>s[e]),getDisabled(s){return!!(s[n]||s.checkboxDisabled)}}}const lp={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},up=Object.assign(Object.assign(Object.assign(Object.assign({},Oi.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:Y1},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]}),lp),{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}),cp=It({name:"Tree",props:up,slots:Object,setup(t){const{mergedClsPrefixRef:e,inlineThemeDisabled:n,mergedRtlRef:i}=ys(t),a=bs("Tree",i,e),s=Oi("Tree","-tree",sp,K1,t,e),o=ge(null),l=ge(null),c=ge(null);function f(){var _;return(_=c.value)===null||_===void 0?void 0:_.listElRef}function h(){var _;return(_=c.value)===null||_===void 0?void 0:_.itemsElRef}const d=Q(()=>{const{filter:_}=t;if(_)return _;const{labelField:R}=t;return(L,W)=>{if(!L.length)return!0;const V=W[R];return typeof V=="string"?V.toLowerCase().includes(L.toLowerCase()):!1}}),v=Q(()=>{const{pattern:_}=t;return _?!_.length||!d.value?{filteredTree:t.data,highlightKeySet:null,expandedKeys:void 0}:ip(t.data,d.value,_,t.keyField,t.childrenField):{filteredTree:t.data,highlightKeySet:null,expandedKeys:void 0}}),g=Q(()=>Lc(t.showIrrelevantNodes?t.data:v.value.filteredTree,Uc(t.keyField,t.childrenField,t.disabledField,t.getChildren))),p=Li(Ff,null),b=t.internalTreeSelect?p.dataTreeMate:Q(()=>t.showIrrelevantNodes?g.value:Lc(t.data,Uc(t.keyField,t.childrenField,t.disabledField,t.getChildren))),{watchProps:w}=t,k=ge([]);w!=null&&w.includes("defaultCheckedKeys")?Xn(()=>{k.value=t.defaultCheckedKeys}):k.value=t.defaultCheckedKeys;const E=yt(t,"checkedKeys"),N=es(E,k),x=Q(()=>b.value.getCheckedKeys(N.value,{cascade:t.cascade,allowNotLoaded:t.allowCheckingNotLoaded})),m=np(t),C=Q(()=>x.value.checkedKeys),q=Q(()=>{const{indeterminateKeys:_}=t;return _!==void 0?_:x.value.indeterminateKeys}),I=ge([]);w!=null&&w.includes("defaultSelectedKeys")?Xn(()=>{I.value=t.defaultSelectedKeys}):I.value=t.defaultSelectedKeys;const F=yt(t,"selectedKeys"),B=es(F,I),K=ge([]),lt=_=>{K.value=t.defaultExpandAll?b.value.getNonLeafKeys():_===void 0?t.defaultExpandedKeys:_};w!=null&&w.includes("defaultExpandedKeys")?Xn(()=>{lt(void 0)}):Xn(()=>{lt(t.defaultExpandedKeys)});const pe=yt(t,"expandedKeys"),Ot=es(pe,K),Dt=Q(()=>g.value.getFlattenedNodes(Ot.value)),{pendingNodeKeyRef:Gt,handleKeydown:Lt}=X1({props:t,mergedCheckedKeysRef:N,mergedSelectedKeysRef:B,fNodesRef:Dt,mergedExpandedKeysRef:Ot,handleCheck:Vo,handleSelect:Qo,handleSwitcherClick:Cc});let oe=null,at=null;const Ue=ge(new Set),ne=Q(()=>t.internalHighlightKeySet||v.value.highlightKeySet),jn=es(ne,Ue),D=ge(new Set),ht=Q(()=>Ot.value.filter(_=>!D.value.has(_)));let mt=0;const Ft=ge(null),me=ge(null),or=ge(null),lr=ge(null),ur=ge(0),di=Q(()=>{const{value:_}=me;return _?_.parent:null});let Wa=!1;Kr(yt(t,"data"),()=>{Wa=!0,ga(()=>{Wa=!1}),D.value.clear(),Gt.value=null,Qa()},{deep:!1});let Va=!1;const vi=()=>{Va=!0,ga(()=>{Va=!1})};let pi;Kr(yt(t,"pattern"),(_,R)=>{if(t.showIrrelevantNodes)if(pi=void 0,_){const{expandedKeys:L,highlightKeySet:W}=rp(t.data,t.pattern,t.keyField,t.childrenField,d.value);Ue.value=W,vi(),la(L,hn(L),{node:null,action:"filter"})}else Ue.value=new Set;else if(!_.length)pi!==void 0&&(vi(),la(pi,hn(pi),{node:null,action:"filter"}));else{R.length||(pi=Ot.value);const{expandedKeys:L}=v.value;L!==void 0&&(vi(),la(L,hn(L),{node:null,action:"filter"}))}});function Ds(_){return op(this,void 0,void 0,function*(){const{onLoad:R}=t;if(!R){yield Promise.resolve();return}const{value:L}=D;if(!L.has(_.key)){L.add(_.key);try{(yield R(_.rawNode))===!1&&ua()}catch(W){console.error(W),ua()}L.delete(_.key)}})}Xn(()=>{var _;const{value:R}=g;if(!R)return;const{getNode:L}=R;(_=Ot.value)===null||_===void 0||_.forEach(W=>{const V=L(W);V&&!V.shallowLoaded&&Ds(V)})});const Br=ge(!1),Vn=ge([]);Kr(ht,(_,R)=>{if(!t.animated||Va){ga(oa);return}if(Wa)return;const L=Ga(s.value.self.nodeHeight),W=new Set(R);let V=null,Jt=null;for(const $t of _)if(!W.has($t)){if(V!==null)return;V=$t}const rn=new Set(_);for(const $t of R)if(!rn.has($t)){if(Jt!==null)return;Jt=$t}if(V===null&&Jt===null)return;const{virtualScroll:dn}=t,fa=(dn?c.value.listElRef:o.value).offsetHeight,ha=Math.ceil(fa/L)+1;let Sn;if(V!==null&&(Sn=R),Jt!==null&&(Sn===void 0?Sn=_:Sn=Sn.filter($t=>$t!==Jt)),Br.value=!0,Vn.value=g.value.getFlattenedNodes(Sn),V!==null){const $t=Vn.value.findIndex($n=>$n.key===V);if(~$t){const $n=Vn.value[$t].children;if($n){const Mn=jc($n,_);Vn.value.splice($t+1,0,{__motion:!0,mode:"expand",height:dn?Mn.length*L:void 0,nodes:dn?Mn.slice(0,ha):Mn})}}}if(Jt!==null){const $t=Vn.value.findIndex($n=>$n.key===Jt);if(~$t){const $n=Vn.value[$t].children;if(!$n)return;Br.value=!0;const Mn=jc($n,_);Vn.value.splice($t+1,0,{__motion:!0,mode:"collapse",height:dn?Mn.length*L:void 0,nodes:dn?Mn.slice(0,ha):Mn})}}});const Ko=Q(()=>u1(Dt.value)),Uo=Q(()=>Br.value?Vn.value:Dt.value);function oa(){const{value:_}=l;_&&_.sync()}function Ho(){Br.value=!1,t.virtualScroll&&ga(oa)}function hn(_){const{getNode:R}=b.value;return _.map(L=>{var W;return((W=R(L))===null||W===void 0?void 0:W.rawNode)||null})}function la(_,R,L){const{"onUpdate:expandedKeys":W,onUpdateExpandedKeys:V}=t;K.value=_,W&&Ie(W,_,R,L),V&&Ie(V,_,R,L)}function kc(_,R,L){const{"onUpdate:checkedKeys":W,onUpdateCheckedKeys:V}=t;k.value=_,V&&Ie(V,_,R,L),W&&Ie(W,_,R,L)}function cv(_,R){const{"onUpdate:indeterminateKeys":L,onUpdateIndeterminateKeys:W}=t;L&&Ie(L,_,R),W&&Ie(W,_,R)}function Wo(_,R,L){const{"onUpdate:selectedKeys":W,onUpdateSelectedKeys:V}=t;I.value=_,V&&Ie(V,_,R,L),W&&Ie(W,_,R,L)}function fv(_){const{onDragenter:R}=t;R&&Ie(R,_)}function hv(_){const{onDragleave:R}=t;R&&Ie(R,_)}function dv(_){const{onDragend:R}=t;R&&Ie(R,_)}function vv(_){const{onDragstart:R}=t;R&&Ie(R,_)}function pv(_){const{onDragover:R}=t;R&&Ie(R,_)}function mv(_){const{onDrop:R}=t;R&&Ie(R,_)}function Qa(){gv(),mi()}function gv(){Ft.value=null}function mi(){ur.value=0,me.value=null,or.value=null,lr.value=null,ua()}function ua(){oe&&(window.clearTimeout(oe),oe=null),at=null}function Vo(_,R){if(t.disabled||Dr(_,t.disabledField))return;if(t.internalUnifySelectCheck&&!t.multiple){Qo(_);return}const L=R?"check":"uncheck",{checkedKeys:W,indeterminateKeys:V}=b.value[L](_.key,C.value,{cascade:t.cascade,checkStrategy:m.value,allowNotLoaded:t.allowCheckingNotLoaded});kc(W,hn(W),{node:_.rawNode,action:L}),cv(V,hn(V))}function _v(_){if(t.disabled)return;const{key:R}=_,{value:L}=Ot,W=L.findIndex(V=>V===R);if(~W){const V=Array.from(L);V.splice(W,1),la(V,hn(V),{node:_.rawNode,action:"collapse"})}else{const V=g.value.getNode(R);if(!V||V.isLeaf)return;let Jt;if(t.accordion){const rn=new Set(_.siblings.map(({key:dn})=>dn));Jt=L.filter(dn=>!rn.has(dn)),Jt.push(R)}else Jt=L.concat(R);la(Jt,hn(Jt),{node:_.rawNode,action:"expand"})}}function Cc(_){t.disabled||Br.value||_v(_)}function Qo(_){if(!(t.disabled||!t.selectable)){if(Gt.value=_.key,t.internalUnifySelectCheck){const{value:{checkedKeys:R,indeterminateKeys:L}}=x;t.multiple?Vo(_,!(R.includes(_.key)||L.includes(_.key))):kc([_.key],hn([_.key]),{node:_.rawNode,action:"check"})}if(t.multiple){const R=Array.from(B.value),L=R.findIndex(W=>W===_.key);~L?t.cancelable&&R.splice(L,1):~L||R.push(_.key),Wo(R,hn(R),{node:_.rawNode,action:~L?"unselect":"select"})}else B.value.includes(_.key)?t.cancelable&&Wo([],[],{node:_.rawNode,action:"unselect"}):Wo([_.key],hn([_.key]),{node:_.rawNode,action:"select"})}}function yv(_){if(oe&&(window.clearTimeout(oe),oe=null),_.isLeaf)return;at=_.key;const R=()=>{if(at!==_.key)return;const{value:L}=or;if(L&&L.key===_.key&&!Ot.value.includes(_.key)){const W=Ot.value.concat(_.key);la(W,hn(W),{node:_.rawNode,action:"expand"})}oe=null,at=null};_.shallowLoaded?oe=window.setTimeout(()=>{R()},1e3):oe=window.setTimeout(()=>{Ds(_).then(()=>{R()})},1e3)}function bv({event:_,node:R}){!t.draggable||t.disabled||Dr(R,t.disabledField)||(Sc({event:_,node:R},!1),fv({event:_,node:R.rawNode}))}function wv({event:_,node:R}){!t.draggable||t.disabled||Dr(R,t.disabledField)||hv({event:_,node:R.rawNode})}function xv(_){_.target===_.currentTarget&&mi()}function kv({event:_,node:R}){Qa(),!(!t.draggable||t.disabled||Dr(R,t.disabledField))&&dv({event:_,node:R.rawNode})}function Cv({event:_,node:R}){!t.draggable||t.disabled||Dr(R,t.disabledField)||(mt=_.clientX,Ft.value=R,vv({event:_,node:R.rawNode}))}function Sc({event:_,node:R},L=!0){var W;if(!t.draggable||t.disabled||Dr(R,t.disabledField))return;const{value:V}=Ft;if(!V)return;const{allowDrop:Jt,indent:rn}=t;L&&pv({event:_,node:R.rawNode});const dn=_.currentTarget,{height:fa,top:ha}=dn.getBoundingClientRect(),Sn=_.clientY-ha;let $t;Jt({node:R.rawNode,dropPosition:"inside",phase:"drag"})?Sn<=8?$t="before":Sn>=fa-8?$t="after":$t="inside":Sn<=fa/2?$t="before":$t="after";const{value:Mn}=Ko;let kt,Pe;const da=Mn(R.key);if(da===null){mi();return}let Fs=!1;$t==="inside"?(kt=R,Pe="inside"):$t==="before"?R.isFirstChild?(kt=R,Pe="before"):(kt=Dt.value[da-1],Pe="after"):(kt=R,Pe="after"),!kt.isLeaf&&Ot.value.includes(kt.key)&&(Fs=!0,Pe==="after"&&(kt=Dt.value[da+1],kt?Pe="before":(kt=R,Pe="inside")));const Ec=kt;if(or.value=Ec,!Fs&&V.isLastChild&&V.key===kt.key&&(Pe="after"),Pe==="after"){let Ic=mt-_.clientX,Go=0;for(;Ic>=rn/2&&kt.parent!==null&&kt.isLastChild&&Go<1;)Ic-=rn,Go+=1,kt=kt.parent;ur.value=Go}else ur.value=0;if((V.contains(kt)||Pe==="inside"&&((W=V.parent)===null||W===void 0?void 0:W.key)===kt.key)&&!(V.key===Ec.key&&V.key===kt.key)){mi();return}if(!Jt({node:kt.rawNode,dropPosition:Pe,phase:"drag"})){mi();return}if(V.key===kt.key)ua();else if(at!==kt.key)if(Pe==="inside"){if(t.expandOnDragenter){if(yv(kt),!kt.shallowLoaded&&at!==kt.key){Qa();return}}else if(!kt.shallowLoaded){Qa();return}}else ua();else Pe!=="inside"&&ua();lr.value=Pe,me.value=kt}function Sv({event:_,node:R,dropPosition:L}){if(!t.draggable||t.disabled||Dr(R,t.disabledField))return;const{value:W}=Ft,{value:V}=me,{value:Jt}=lr;if(!(!W||!V||!Jt)&&t.allowDrop({node:V.rawNode,dropPosition:Jt,phase:"drag"})&&W.key!==V.key){if(Jt==="before"){const rn=W.getNext({includeDisabled:!0});if(rn&&rn.key===V.key){mi();return}}if(Jt==="after"){const rn=W.getPrev({includeDisabled:!0});if(rn&&rn.key===V.key){mi();return}}mv({event:_,node:V.rawNode,dragNode:W.rawNode,dropPosition:L}),Qa()}}function $v(){oa()}function Ev(){oa()}function Iv(_){var R;if(t.virtualScroll||t.internalScrollable){const{value:L}=l;if(!((R=L==null?void 0:L.containerRef)===null||R===void 0)&&R.contains(_.relatedTarget))return;Gt.value=null}else{const{value:L}=o;if(L!=null&&L.contains(_.relatedTarget))return;Gt.value=null}}Kr(Gt,_=>{var R,L;if(_!==null){if(t.virtualScroll)(R=c.value)===null||R===void 0||R.scrollTo({key:_});else if(t.internalScrollable){const{value:W}=l;if(W===null)return;const V=(L=W.contentRef)===null||L===void 0?void 0:L.querySelector(`[data-key="${Mf(_)}"]`);if(!V)return;W.scrollTo({el:V})}}}),hu(xs,{loadingKeysRef:D,highlightKeySetRef:jn,displayedCheckedKeysRef:C,displayedIndeterminateKeysRef:q,mergedSelectedKeysRef:B,mergedExpandedKeysRef:Ot,mergedThemeRef:s,mergedCheckStrategyRef:m,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:or,droppingNodeParentRef:di,draggingNodeRef:Ft,droppingPositionRef:lr,droppingOffsetLevelRef:ur,fNodesRef:Dt,pendingNodeKeyRef:Gt,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:Cc,handleDragEnd:kv,handleDragEnter:bv,handleDragLeave:wv,handleDragStart:Cv,handleDrop:Sv,handleDragOver:Sc,handleSelect:Qo,handleCheck:Vo});function Av(_,R){var L,W;typeof _=="number"?(L=c.value)===null||L===void 0||L.scrollTo(_,R||0):(W=c.value)===null||W===void 0||W.scrollTo(_)}const Nv={handleKeydown:Lt,scrollTo:Av,getCheckedData:()=>{if(!t.checkable)return{keys:[],options:[]};const{checkedKeys:_}=x.value;return{keys:_,options:hn(_)}},getIndeterminateData:()=>{if(!t.checkable)return{keys:[],options:[]};const{indeterminateKeys:_}=x.value;return{keys:_,options:hn(_)}}},$c=Q(()=>{const{common:{cubicBezierEaseInOut:_},self:{fontSize:R,nodeBorderRadius:L,nodeColorHover:W,nodeColorPressed:V,nodeColorActive:Jt,arrowColor:rn,loadingColor:dn,nodeTextColor:fa,nodeTextColorDisabled:ha,dropMarkColor:Sn,nodeWrapperPadding:$t,nodeHeight:$n,lineHeight:Mn,lineColor:kt}}=s.value,Pe=Xo($t,"top"),da=Xo($t,"bottom"),Fs=Ef(Ga($n)-Ga(Pe)-Ga(da));return{"--n-arrow-color":rn,"--n-loading-color":dn,"--n-bezier":_,"--n-font-size":R,"--n-node-border-radius":L,"--n-node-color-active":Jt,"--n-node-color-hover":W,"--n-node-color-pressed":V,"--n-node-text-color":fa,"--n-node-text-color-disabled":ha,"--n-drop-mark-color":Sn,"--n-node-wrapper-padding":$t,"--n-line-offset-top":`-${Pe}`,"--n-line-offset-bottom":`-${da}`,"--n-node-content-height":Fs,"--n-line-height":Mn,"--n-line-color":kt}}),ca=n?vu("tree",void 0,$c,t):void 0;return Object.assign(Object.assign({},Nv),{mergedClsPrefix:e,mergedTheme:s,rtlEnabled:a,fNodes:Uo,aip:Br,selfElRef:o,virtualListInstRef:c,scrollbarInstRef:l,handleFocusout:Iv,handleDragLeaveTree:xv,handleScroll:$v,getScrollContainer:f,getScrollContent:h,handleAfterEnter:Ho,handleResize:Ev,cssVars:n?void 0:$c,themeClass:ca==null?void 0:ca.themeClass,onRender:ca==null?void 0:ca.onRender})},render(){var t;const{fNodes:e,internalRenderEmpty:n}=this;if(!e.length&&n)return n();const{mergedClsPrefix:i,blockNode:a,blockLine:s,draggable:o,disabled:l,internalFocusable:c,checkable:f,handleKeydown:h,rtlEnabled:d,handleFocusout:v,scrollbarProps:g}=this,p=c&&!l,b=p?"0":void 0,w=[`${i}-tree`,d&&`${i}-tree--rtl`,f&&`${i}-tree--checkable`,(s||a)&&`${i}-tree--block-node`,s&&`${i}-tree--block-line`],k=N=>"__motion"in N?U(ap,{height:N.height,nodes:N.nodes,clsPrefix:i,mode:N.mode,onAfterEnter:this.handleAfterEnter}):U(Uf,{key:N.key,tmNode:N,clsPrefix:i});if(this.virtualScroll){const{mergedTheme:N,internalScrollablePadding:x}=this,m=Xo(x||"0");return U(Nc,Object.assign({},g,{ref:"scrollbarInstRef",onDragleave:o?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:w,theme:N.peers.Scrollbar,themeOverrides:N.peerOverrides.Scrollbar,tabindex:b,onKeydown:p?h:void 0,onFocusout:p?v:void 0}),{default:()=>{var C;return(C=this.onRender)===null||C===void 0||C.call(this),e.length?U(l1,{ref:"virtualListInstRef",items:this.fNodes,itemSize:Ga(N.self.nodeHeight),ignoreItemResize:this.aip,paddingTop:m.top,paddingBottom:m.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:m.left,paddingRight:m.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:q})=>k(q)}):qc(this.$slots.empty,()=>[U(Mc,{class:`${i}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})])}})}const{internalScrollable:E}=this;return w.push(this.themeClass),(t=this.onRender)===null||t===void 0||t.call(this),E?U(Nc,Object.assign({},g,{class:w,tabindex:b,onKeydown:p?h:void 0,onFocusout:p?v:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}}),{default:()=>U("div",{onDragleave:o?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(k))}):U("div",{class:w,tabindex:b,ref:"selfElRef",style:this.cssVars,onKeydown:p?h:void 0,onFocusout:p?v:void 0,onDragleave:o?this.handleDragLeaveTree:void 0},e.length?e.map(k):qc(this.$slots.empty,()=>[U(Mc,{class:`${i}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}}),Hc=t=>{const e=qt(),n={x:0,y:0},i=mu({...n});let a;const s=h=>{a&&h.preventDefault()},o=h=>{a=h,n.x=i.x,n.y=i.y},l=h=>{if(!a||!e.value)return;const d=h.clientX-a.clientX,v=h.clientY-a.clientY;t(d)&&(i.x=n.x+d),i.y=n.y+v},c=()=>{a=void 0},f=()=>{if(!e.value||!a)return;c();const{top:h,bottom:d,left:v,right:g}=e.value.getBoundingClientRect();(g<0||v>window.innerWidth||d<0||h>window.innerHeight)&&(i.x=n.x,i.y=n.y)};return lo(()=>{window.addEventListener("pointermove",l),window.addEventListener("pointerup",f),document.addEventListener("selectstart",s)}),Qs(()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",f),document.removeEventListener("selectstart",s),c()}),Kr(e,(h,d)=>{h&&(h.addEventListener("pointerdown",o),h.addEventListener("pointerup",c)),d&&(d.removeEventListener("pointerdown",o),d.removeEventListener("pointerup",c))}),Qs(()=>{e.value&&(e.value.removeEventListener("pointerdown",o),e.value.removeEventListener("pointerup",c))}),{target:e,offset:i}};let Ja=1e3;const fp=()=>{Ja++;const t=qt(Ja);return{zIndex:t,setTop:()=>{t.value!==Ja&&(Ja++,t.value=Ja)}}},Wc="transition-top,bottom,left,right-500",uo=It({__name:"DraggableCard",props:{initialValue:{default:()=>({})},minWidth:{},sizeDraggable:{type:Boolean},show:{type:Boolean,default:!0},class:{}},setup(t){var m,C;const e=t,n=e.initialValue.left!==void 0,i=e.initialValue.top!==void 0,a={x:(m=n?e.initialValue.left:e.initialValue.right)!=null?m:0,y:(C=i?e.initialValue.top:e.initialValue.bottom)!=null?C:0},s=Hc(q=>{const I=(e.initialValue.width||0)+o.offset.x+-s.offset.x-q;return(e.minWidth||0)<I}),o=Hc(q=>{const I=(e.initialValue.width||0)+o.offset.x+q-s.offset.x;return(e.minWidth||0)<I}),l=mu({...a}),c=Q(()=>{const q=(e.initialValue.width||0)+o.offset.x-s.offset.x,I=e.initialValue.width?`width:${q}px;`:"",F=i?`top:${l.y}px;`:`bottom:${l.y}px;`;return n?`left:${l.x-s.offset.x}px;`+F+I:`right:${l.x-o.offset.x}px;`+F+I});let f;const h=qt(!1),d=q=>{f=q,a.x=l.x,a.y=l.y,h.value=!1},v=q=>{if(!b.value||!f)return;const I=q.clientX-f.clientX,F=q.clientY-f.clientY;l.x=a.x+(n?I:-I),l.y=a.y+(i?F:-F),h.value=!0},g=()=>{f=void 0},p=qt(),b=qt(),w=q=>{f&&q.preventDefault()},k=()=>{if(!b.value||!f)return;g();const{top:q,bottom:I,left:F,right:B}=b.value.getBoundingClientRect();if(B<0||F>window.innerWidth||I<0||q>window.innerHeight){l.x=a.x,l.y=a.y;const K=p.value;K&&(K.classList.add(Wc),setTimeout(()=>{K.classList.remove(Wc)},550))}};lo(()=>{window.addEventListener("pointermove",v),window.addEventListener("pointerup",k),document.addEventListener("selectstart",w)}),Qs(()=>{window.removeEventListener("pointermove",v),window.removeEventListener("pointerup",k),document.removeEventListener("selectstart",w),g()}),Kr(b,(q,I)=>{q&&(q.addEventListener("pointerdown",d),q.addEventListener("pointerup",g)),I&&(I.removeEventListener("pointerdown",d),I.removeEventListener("pointerup",g))}),Qs(()=>{b.value&&(b.value.removeEventListener("pointerdown",d),b.value.removeEventListener("pointerup",g))});const E=q=>{q instanceof HTMLElement?b.value=q:b.value=void 0},{setTop:N,zIndex:x}=fp();return Kr(()=>e.show,()=>{e.show&&N()}),(q,I)=>(ct(),_e(If,{to:"body"},[q.show?(ct(),Oe("div",{key:0,fixed:"",ref_key:"box",ref:p,class:Gs(["DraggableCard",e.class]),style:ti([A(c),{zIndex:A(x)}]),onMousedown:I[0]||(I[0]=(...F)=>A(N)&&A(N)(...F))},[Jv(q.$slots,"default",{onRef:E,moved:A(h)}),q.sizeDraggable?(ct(),Oe(Ur,{key:0},[H("div",{ref:A(s).target,absolute:"","right-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512),H("div",{ref:A(o).target,absolute:"","left-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512)],64)):Ze("",!0)],38)):Ze("",!0)]))}}),hp=async t=>fetch("https://detect.gkd.li/api/getImportId?id="+t).then(e=>e.json()).catch(()=>0),Mi=Yv("snapshot",()=>{const t=Af(),e=Nf(),n=qf(),i=Rf(),{snapshotImportId:a,snapshotImageId:s,importSnapshotId:o}=i,l=qt();Rc(()=>t.params.snapshotId,K=>{l.value=Xv(K)});const c=Q(()=>{if(l.value)return a[l.value]}),f=Q(()=>{if(l.value)return s[l.value]}),h=qt();Xn(()=>{h.value&&(document.title="快照-"+(Gn(h.value).name||h.value.appId))});const d=qt(),v=Q(()=>{if(d.value)return URL.createObjectURL(new Blob([d.value],{type:"image/png"}))}),g=qt(!1),p=c1(async K=>{if(g.value=!1,!K){h.value=void 0,d.value=void 0;return}if(await Promise.all([x1.getItem(K).then(lt=>{h.value=lt||void 0}),k1.getItem(K).then(lt=>{d.value=lt||void 0})]),!h.value){const lt=a[K]||await hp(K);if(lt&&Number.isSafeInteger(lt)){g.value=!0,e.replace({path:"/i/"+lt,query:t.query});return}}}),b=Q(()=>p.loading);Rc(()=>l.value,p.invoke),Xn(()=>{c.value&&i.inited&&!o[c.value]&&l.value&&(o[c.value]=l.value,fetch("https://detect.gkd.li/api/detectSnapshot?importId="+c.value))});const w=Q(()=>C1()&&n.inited&&n.autoUploadImport&&i.inited);Xn(()=>{w.value&&h.value&&!f.value&&_1(h.value),w.value&&h.value&&!c.value&&y1(h.value),w.value&&h.value&&c.value&&b1(h.value.id,c.value)});const k=Q(()=>h.value&&n.inited?h.value.nodes.length<=n.maxShowNodeSize?structuredClone(h.value.nodes):structuredClone(h.value.nodes.slice(0,n.maxShowNodeSize)):[]),E=Q(()=>{if(k.value.length)return f1(k.value)}),N=Q(()=>h.value?h.value.nodes.length-n.maxShowNodeSize:0),x=qt(),m=qt(0),C=qt(),q=qt(),I=async K=>{x.value=K,m.value=Date.now(),await ga(),q.value&&!q.value.includes(K)&&(C.value=void 0,q.value=void 0)};Xn(()=>{E.value&&I(E.value)});const F=K=>{C.value=K;const lt=h1(k.value,C.value);lt.length&&I(lt[0]),lt.length>1&&(q.value=lt)},B=qt();return{snapshotId:l,snapshot:h,rootNode:E,screenshotUrl:v,loading:b,redirected:g,importId:c,imageId:f,focusNode:x,updateFocusNode:I,focusTime:m,overlapNodes:q,missNodeSize:N,focusPosition:C,updatePosition:F,track:B}}),dp={absolute:"","top-0":"","right-0":"","pt-4px":"","pr-8px":""},vp={key:0,flex:"","justify-between":"","items-center":""},pp={flex:"","items-center":"","h-24px":"","px-2px":""},mp={"max-w-500px":""},gp=It({__name:"AttrCard",props:{show:{type:Boolean},onUpdateShow:{type:Function,default:gu}},setup(t){const{focusNode:e}=ji(Mi()),n=Q(()=>{const o=e.value;return o?{_id:{desc:"虚拟属性(真机不可用):生成快照访问节点顺序",type:"info",show:!0},_pid:{desc:"虚拟属性(真机不可用):父节点的 _id",type:"info",show:!0},_selector:{desc:"自动生成的选择器, 点击“_selector”可直接复制内容, 用于定位",type:"info",show:!0},depth:{desc:"使用此属性在某些应用上可能造成无限节点错误",type:"info",show:!0},id:{desc:"可快速查找",type:"quickFind",show:!!((o.quickFind||o.idQf)&&o.attr.id)},vid:{desc:"可快速查找",type:"quickFind",show:!!((o.quickFind||o.idQf)&&o.attr.vid)},text:{desc:"可快速查找",type:"quickFind",show:!!((o.quickFind||o.textQf)&&o.attr.text)}}:{}}),i=["text","desc"],a=Q(()=>e.value?Object.entries(e.value.attr).map(([o,l])=>{var f,h,d;const c={name:o,value:l,desc:JSON.stringify(l),tip:(f=n.value[o])!=null&&f.show?n.value[o]:void 0};return i.includes(o)?[c,{name:o+".length",value:(h=l==null?void 0:l.length)!=null?h:null,desc:JSON.stringify((d=l==null?void 0:l.length)!=null?d:null),tip:void 0}]:c}).flat():[]),s=Q(()=>e.value?d1(e.value):"");return(o,l)=>{const c=wa("SvgIcon"),f=ws,h=Pf,d=_u,v=G1,g=v1,p=J1,b=Q1,w=V1;return ct(),_e(uo,{initialValue:{top:40,right:10},class:"box-shadow-dim",show:o.show&&!!A(e)},{default:T(({onRef:k})=>[H("div",dp,[O(f,{onClick:l[0]||(l[0]=E=>o.onUpdateShow(!o.show)),text:"",title:"最小化"},{icon:T(()=>[O(c,{name:"minus"})]),_:1})]),A(e)?(ct(),_e(w,{key:0,size:"small",striped:"",singleLine:!1,class:"gkd_code",themeOverrides:{thPaddingSmall:"1px 3px",tdPaddingSmall:"0px 3px"}},{default:T(()=>[H("thead",null,[H("tr",{ref:k,"cursor-move":""},l[2]||(l[2]=[H("th",null,"Name",-1),H("th",null,"Value",-1)]),512)]),O(b,null,{default:T(()=>[(ct(!0),Oe(Ur,null,rs(A(a),E=>(ct(),_e(p,{key:E.name},{default:T(()=>[O(v,{onClick:N=>A(Yn)(`${E.name}=${E.desc}`)},{default:T(()=>[E.tip?(ct(),Oe("div",vp,[H("div",null,gt(E.name),1),O(d,null,{trigger:T(()=>[O(h,{size:"16"},{default:T(()=>[E.tip.type=="info"?(ct(),_e(c,{key:0,name:"info"})):E.tip.type=="quickFind"?(ct(),_e(c,{key:1,name:"ok"})):Ze("",!0)]),_:2},1024)]),default:T(()=>[jt(" "+gt(E.tip.desc),1)]),_:2},1024)])):(ct(),Oe(Ur,{key:1},[jt(gt(E.name),1)],64))]),_:2},1032,["onClick"]),O(v,null,{default:T(()=>[O(g,{class:Gs(["w-[calc(var(--gkd-w)*0.12)]",{"text-left direction-rtl":E.name=="id","opacity-50":E.value===null}])},{default:T(()=>[jt(gt(E.desc),1)]),_:2},1032,["class"])]),_:2},1024)]),_:2},1024))),128)),O(p,null,{default:T(()=>[O(v,{colspan:"2"},{default:T(()=>[H("div",pp,[O(d,null,{trigger:T(()=>[O(f,{text:"",onClick:l[1]||(l[1]=E=>A(Yn)(A(s)))},{icon:T(()=>[O(h,{size:"20"},{default:T(()=>[O(c,{name:"path"})]),_:1})]),_:1})]),default:T(()=>[H("div",mp,gt(A(s)),1)]),_:1})])]),_:1})]),_:1})]),_:1})]),_:2},1024)):Ze("",!0)]),_:1},8,["show"])}}}),_p={bg:"#eee","px-2px":""},yp=It({__name:"OverlapCard",setup(t){const e=Mi(),{focusNode:n,overlapNodes:i,focusPosition:a}=ji(e),o=document.documentElement.scrollWidth/100*25.5;return(l,c)=>{const f=ws,h=Tf,d=Zv;return ct(),_e(uo,{initialValue:{top:215,left:o},class:"box-shadow-dim w-420px",show:!!(A(i)&&A(a))},{default:T(({onRef:v})=>[A(i)&&A(a)?(ct(),_e(d,{key:0,size:"small",closable:"",onClose:c[0]||(c[0]=g=>i.value=void 0)},{header:T(()=>[H("div",{ref:v,"cursor-move":""},[c[1]||(c[1]=jt(" 位置 ")),H("span",_p,gt(`${A(a).x.toFixed(0)},${A(a).y.toFixed()}`),1),jt(" 存在 "+gt(A(i).length)+" 个层叠节点 ",1)],512)]),default:T(()=>[O(h,{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"},class:"scrollbar-hidden"},{default:T(()=>[(ct(!0),Oe(Ur,null,rs(A(i),g=>(ct(),_e(f,{key:g.id,onClick:p=>A(e).updateFocusNode(g),size:"small",style:ti(A(as)(g,A(n)))},{default:T(()=>[jt(gt(A(ba)(g)),1)]),_:2},1032,["onClick","style"]))),128))]),_:1})]),_:2},1024)):Ze("",!0)]),_:1},8,["initialValue","show"])}}});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,i=arguments[1],a=i>>0,s=a<0?Math.max(n+a,0):Math.min(a,n),o=arguments[2],l=o===void 0?n:o>>0,c=l<0?Math.max(n+l,0):Math.min(l,n);s<c;)e[s]=t,s++;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 i=n>>>0;return i===0?32:31-(t(i)/e|0)|0}}(Math.log,Math.LN2));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 i=n.indexOf(t,e);return i!==-1&&i===e}});typeof String.prototype.startsWith>"u"&&Object.defineProperty(String.prototype,"startsWith",{value:function(t,e){return e=e||0,this.lastIndexOf(t,e)===e}});var Et=Math.imul,bp=ArrayBuffer.isView,Hf=Math.clz32;Se(bu,"CharSequence");Se(ks,"Comparable");y(Ys,"Number");y(ku);y(Cu);$e(Zf);y(P,"Char",u,u,[ks]);$e(th);Se(Vt,"Collection");function yu(){return om(this)}Se(Fn,"List",u,u,[Vt]);Se(zi,"MutableList",u,u,[Fn,Vt]);Se(Bi,"Set",u,u,[Vt]);Se($s,"Entry");Se(eh,"Map");$e(Gp);y(Tr,"Enum",u,u,[ks]);$e(nh);y(pt,"Long",u,Ys,[Ys,ks]);Se(Kn,"FunctionAdapter");y(fo);y(dl,"JsArrayView",dl,Array);it(Oh,"Digit");Se(Un,"Comparator");it(Tu,"Unit");y(qn,"AbstractCollection",u,u,[Vt]);y(rr,"AbstractMutableCollection",u,qn,[qn,Vt]);y(Fi,"IteratorImpl");y(qa,"ListIteratorImpl",u,Fi);y(Ce,"AbstractMutableList",u,rr,[rr,zi]);y(Mr,"SubList",u,Ce);y(ka,"AbstractMutableSet",u,rr,[rr,Bi,Vt]);$e(zh);y(Bt,"ArrayList",Mt,Ce,[Ce,zi]);y(Bn,"HashSet",lg,ka,[ka,Bi,Vt]);$e(Xh);y(ii,"Itr");y(zu,"KeysItr",u,ii);y(Ns,"EntriesItr",u,ii);y(Ki,"EntryRef",u,u,[$s]);function wp(t){var e;t:{var n;if(X(t,Vt)?n=t.l():n=!1,n){e=!0;break t}for(var i=t.h();i.i();){var a=i.j(),s=a,o;if(s!=null&&X(s,$s)?o=this.p5(s):o=!1,!o){e=!1;break t}}e=!0}return e}Se(Zh,"InternalMap");y(Fe,"InternalHashMap",Vh,u,[Zh]);y(ai,"LinkedHashSet",Bu,Bn,[Bn,Bi,Vt]);Se(Ha,"Continuation");y(cs,"InterceptedCoroutine",u,u,[Ha]);y(he,"CoroutineImpl",u,cs,[cs,Ha]);it(Ra,"CompletedContinuation",u,u,[Ha]);y(Du,u,u,he);y(ar,"Exception",nd,Error);y(Ye,"RuntimeException",ud,ar);y(Ui,"IllegalArgumentException",ad,Ye);y(Pa,"IllegalStateException",od,Ye);y(Ta,"UnsupportedOperationException",qs,Ye);y(Oa,"NoSuchElementException",Ee,Ye);y(La,"Error",fd,Error);y(ja,"IndexOutOfBoundsException",Ku,Ye);y(Ma,"NumberFormatException",hd,Ui);y(za,"ArithmeticException",vd,Ye);y(Ba,"ConcurrentModificationException",Uu,Ye);y(go,"NullPointerException",Hu,Ye);y(_o,"NoWhenBranchMatchedException",Wu,Ye);y(yo,"ClassCastException",Vu,Ye);Se(fs,"KClass");y(kn,"KClassImpl",u,u,[fs]);it(Wi,"NothingKClassImpl",u,kn);y($i,"ErrorKClass",$i,u,[fs]);y(Kt,"PrimitiveKClassImpl",u,kn);y(no,"SimpleKClassImpl",u,kn);Se(Vi,"KProperty1");it(te,"PrimitiveClasses");y(On,"StringBuilder",bo,u,[bu]);$e(kd);y(Rs,"Regex");y(Fa,"sam$kotlin_Comparator$0",u,u,[Un,Kn]);y(cn,"AbstractList",u,qn,[qn,Fn]);y(xo,"SubList",u,cn);y(Ka,"IteratorImpl");y(Qi,"ListIteratorImpl",u,Ka);$e(oi);$e(ko);y(Ji,"ArrayAsCollection",u,u,[Vt]);it(de,"EmptyList",u,u,[Fn]);it(li,"EmptyIterator");y(yi,"IndexedValue");y($o,"IntIterator");y(ui);y(Yi,"ReversedListReadOnly",u,cn);y(Dn,"SequenceScope",u,u,u,[1]);y(Lr,"SequenceBuilderIterator",Lr,Dn,[Dn,Ha],[1]);y(Zu);y(Eo);y(Io,"TransformingSequence");y(Ao);y(tc,"FilteringSequence");y(No);y(ec,"IndexingSequence");Se(ta,"DropTakeSequence");y(qo);y(Ei,"TakeSequence",u,u,[ta]);y(Ro);y(nc,"TakeWhileSequence");y(Po);y(bi,"DropSequence",u,u,[ta]);y(To);y(rc,"DropWhileSequence");it(Ps,"EmptySequence",u,u,[ta]);y(Lo);y(ni,"SubSequence",u,u,[ta]);it(sr,"EmptySet",u,u,[Bi]);it(Td,"Key");Se(V_,"ContinuationInterceptor");it(Os,"EmptyCoroutineContext");y(Ws,"CoroutineSingletons",u,Tr);$e(jd);y(ir,"IntProgression");y(ri,"IntRange",u,ir);y(jo,"IntProgressionIterator",u,$o);$e(ac);y(Ms,"UnsafeLazyImpl");it(Kd,"UNINITIALIZED_VALUE");$e(l0);y(jr,"Failure");y(ql,"NotImplementedError",ql,La);y(pr,"Pair");function bu(){}function ks(){}function Ys(){}function xp(t){return t.length===0?Zi():new ku(t)}function Wf(t,e,n,i,a,s,o){return e=e===u?", ":e,n=n===u?"":n,i=i===u?"":i,a=a===u?-1:a,s=s===u?"...":s,o=o===u?null:o,kp(t,bo(),e,n,i,a,s,o).toString()}function wu(t){switch(t.length){case 0:return Gi();case 1:return mo(t[0]);default:return xu(t)}}function xu(t){return Is(O_(t))}function kp(t,e,n,i,a,s,o,l){n=n===u?", ":n,i=i===u?"":i,a=a===u?"":a,s=s===u?-1:s,o=o===u?"...":o,l=l===u?null:l,e.e(i);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),s<0||c<=s)zd(e,d,l);else break t}return s>=0&&c>s&&e.e(o),e.e(a),e}function Cp(t,e){if(e==null){var n=0,i=t.length-1|0;if(n<=i)do{var a=n;if(n=n+1|0,t[a]==null)return a}while(n<=i)}else{var s=0,o=t.length-1|0;if(s<=o)do{var l=s;if(s=s+1|0,S(e,t[l]))return l}while(s<=o)}return-1}function Sp(t){return t.length-1|0}function $p(t){var e;switch(t.length){case 0:throw Hi("Array is empty.");case 1:e=t[0];break;default:throw ie("Array has more than one element.")}return e}function Ep(t,e){if(e==null){var n=t.length-1|0;if(0<=n)do{var i=n;if(n=n+-1|0,t[i]==null)return i}while(0<=n)}else{var a=t.length-1|0;if(0<=a)do{var s=a;if(a=a+-1|0,S(e,t[s]))return s}while(0<=a)}return-1}function Ip(t,e){for(var n=0,i=t.length;n<i;){var a=t[n];n=n+1|0,e.f(a)}return e}function ku(t){this.g_1=t}r(ku).h=function(){return ih(this.g_1)};function Sa(t,e,n,i,a,s,o){return e=e===u?", ":e,n=n===u?"":n,i=i===u?"":i,a=a===u?-1:a,s=s===u?"...":s,o=o===u?null:o,Ap(t,bo(),e,n,i,a,s,o).toString()}function Ap(t,e,n,i,a,s,o,l){n=n===u?", ":n,i=i===u?"":i,a=a===u?"":a,s=s===u?-1:s,o=o===u?"...":o,l=l===u?null:l,e.e(i);var c=0,f=t.h();t:for(;f.i();){var h=f.j();if(c=c+1|0,c>1&&e.e(n),s<0||c<=s)zd(e,h,l);else break t}return s>=0&&c>s&&e.e(o),e.e(a),e}function Np(t){return Gf(Rp(t))}function qp(t){return new Cu(t)}function Vf(t){return t.l()?null:t.k(0)}function ss(t){return t.l()?null:t.k(t.m()-1|0)}function un(t){if(t.l())throw Hi("List is empty.");return t.k(0)}function Qf(t){var e;switch(t.m()){case 0:throw Hi("List is empty.");case 1:e=t.k(0);break;default:throw ie("List has more than one element.")}return e}function xa(t){if(t.l())throw Hi("List is empty.");return t.k(er(t))}function Cs(t){return Is(t)}function Ss(t,e){if(X(e,Vt)){var n=ei(t.m()+e.m()|0);return n.q(t),n.q(e),n}else{var i=Is(t);return So(i,e),i}}function Gf(t){if(X(t,Vt)){var e;switch(t.m()){case 0:e=Gi();break;case 1:var n;X(t,Fn)?n=t.k(0):n=t.h().j(),e=mo(n);break;default:e=Cs(t);break}return e}return T_(Jf(t))}function Rp(t){var e;return X(t,Vt)?e=Sg(t):e=Xs(t,Bu()),e}function co(t,e){if(X(t,Vt)){if(t.m()<=1)return Gf(t);var n=Hn(t),i=Aa(n)?n:$();return Km(i,e),Ru(i)}var a=Jf(t);return Ym(a,e),a}function Jf(t){return X(t,Vt)?Cs(t):Xs(t,Mt())}function Xs(t,e){for(var n=t.h();n.i();){var i=n.j();e.f(i)}return e}function Pp(t){if(X(t,Vt)){var e;switch(t.m()){case 0:e=ic();break;case 1:var n;X(t,Fn)?n=t.k(0):n=t.h().j(),e=jh(n);break;default:e=Xs(t,Ig(t.m()));break}return e}return W_(Xs(t,Bu()))}function Cu(t){this.r_1=t}r(Cu).h=function(){return this.r_1.h()};function Tp(t,e){return Md.s(t,e,-1)}function Zs(t,e){return t>e?e:t}function to(t,e){return t<e?e:t}function Su(t){return zp(t,Mt())}function $u(t,e){var n=new ec(t),i=new tc(n,!0,Bp(e));return new Io(i,Dp)}function Yf(t,e){if(!(e>=0)){var n="Requested element count "+e+" is less than zero.";throw ie(j(n))}var i;return e===0?i=Zi():X(t,ta)?i=t.t(e):i=new Ei(t,e),i}function Op(t,e){return new nc(t,e)}function Lp(t,e){var n;return X(t,ta)?n=t.u(e):n=new bi(t,e),n}function jp(t,e){return new rc(t,e)}function Xf(t){var e=t.h();return e.i()?e.j():null}function Eu(t){var e=t.h();if(!e.i())return Gi();var n=e.j();if(!e.i())return mo(n);var i=Mt();for(i.f(n);e.i();)i.f(e.j());return i}function Mp(t,e){return new Io(t,e)}function zp(t,e){for(var n=t.h();n.i();){var i=n.j();e.f(i)}return e}function Bp(t){return function(e){return t(e.v_1,e.w_1)}}function Dp(t){return t.w_1}function is(t,e){return 0<=e&&e<=(rt(t)-1|0)?Tt(t,e):null}function Fp(t){return Kp(t,ei(rt(t)))}function Kp(t,e){for(var n=0;n<rt(t);){var i=Tt(t,n);n=n+1|0,e.f(new P(i))}return e}function Up(t){var e=t&65535;return e}function Xe(t,e){return t-e|0}function Hp(t,e){return Xe(t.x_1,e instanceof P?e.x_1:$())}function Ya(t,e){return t-e|0}function tr(t){return t}function nr(t){return String.fromCharCode(t)}function Wp(t,e){return e instanceof P?t===e.x_1:!1}function Vp(t){return t}function Zf(){cl=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 cl;function Qp(){return cl==null&&new Zf,cl}function P(t){Qp(),this.x_1=t}r(P).i1=function(t){return Xe(this.x_1,t)};r(P).d=function(t){return Hp(this,t)};r(P).toString=function(){return nr(this.x_1)};r(P).equals=function(t){return Wp(this.x_1,t)};r(P).hashCode=function(){return Vp(this.x_1)};r(th).fromJsArray=function(t){return um(t)};function th(){}function Fn(){}function Vt(){}function zi(){}function Bi(){}function $s(){}function eh(){}function Gp(){}function Tr(t,e){this.w1_1=t,this.x1_1=e}r(Tr).y1=function(t){return hh(this.x1_1,t.x1_1)};r(Tr).d=function(t){return this.y1(t instanceof Tr?t:$())};r(Tr).equals=function(t){return this===t};r(Tr).hashCode=function(){return mm(this)};r(Tr).toString=function(){return this.w1_1};function re(t){var e=t==null?null:j(t);return e==null?"null":e}function nh(){fl=this,this.z1_1=new pt(0,-2147483648),this.a2_1=new pt(-1,2147483647),this.b2_1=8,this.c2_1=64}var fl;function Jp(){return fl==null&&new nh,fl}function pt(t,e){Jp(),Ys.call(this),this.d2_1=t,this.e2_1=e}r(pt).f2=function(t){return vo(this,t)};r(pt).d=function(t){return this.f2(t instanceof pt?t:$())};r(pt).g2=function(t){return eo(this,t)};r(pt).h2=function(t){return $m(this,t)};r(pt).i2=function(){return this.j2().g2(new pt(1,0))};r(pt).j2=function(){return new pt(~this.d2_1,~this.e2_1)};r(pt).k2=function(){return this.d2_1};r(pt).l2=function(){return ls(this)};r(pt).toString=function(){return pl(this,10)};r(pt).equals=function(t){var e;return t instanceof pt?e=zn(this,t):e=!1,e};r(pt).hashCode=function(){return Am(this)};r(pt).valueOf=function(){return this.l2()};function rh(t){for(var e=1,n=[],i=0,a=t.length;i<a;){var s=t[i];i=i+1|0;var o=e,l=s.prototype.$imask$,c=l==null?s.$imask$:l;c!=null&&(n.push(c),o=c.length);var f=s.$metadata$.iid,h;f==null?h=null:h=Yp(f);var d=h;d!=null&&(n.push(d),o=Math.max(o,d.length)),o>e&&(e=o)}return Xp(e,n)}function Yp(t){var e=t>>5,n=new Int32Array(e+1|0),i=t&31,a=1<<i;return n[e]=n[e]|a,n}function Xp(t,e){for(var n=0,i=new Int32Array(t);n<t;){for(var a=n,s=0,o=0,l=e.length;o<l;){var c=e[o];o=o+1|0,a<c.length&&(s=s|c[a])}i[a]=s,n=n+1|0}return i}function Zp(t,e){var n=e>>5;if(n>t.length)return!1;var i=e&31,a=1<<i;return!!(t[n]&a)}function Kn(){}function fr(t,e){var n=0,i=t.length-1|0;if(n<=i)do{var a=n;n=n+1|0,t[a]=e}while(a!==i);return t}function ih(t){return new fo(t)}function tm(t){var e="CharArray",n=new Uint16Array(t);return n.$type$=e,n}function fo(t){this.o2_1=t,this.n2_1=0}r(fo).i=function(){return this.n2_1!==this.o2_1.length};r(fo).j=function(){var t;if(this.n2_1!==this.o2_1.length){var e=this.n2_1;this.n2_1=e+1|0,t=this.o2_1[e]}else throw Hi(""+this.n2_1);return t};function nl(){return $a(),ah}var ah;function sh(){return $a(),oh}var oh;function hl(){return $a(),lh}var lh;function uh(){return $a(),ch}var ch;function em(){return $a(),fh}var fh;function nm(t){return $a(),(t|0)===t?wh(t):(sh()[0]=t,Et(hl()[em()],31)+hl()[uh()]|0)}var Vc;function $a(){Vc||(Vc=!0,ah=new ArrayBuffer(8),oh=new Float64Array(nl()),new Float32Array(nl()),lh=new Int32Array(nl()),sh()[0]=-1,ch=hl()[0]!==0?1:0,fh=1-uh()|0)}function Tt(t,e){var n;if(Iu(t)){var i=t.charCodeAt(e),a,s=0;if(i<tr(s))a=!0;else{var o=65535;a=i>tr(o)}if(a)throw ie("Invalid Char code: "+i);n=ml(i)}else n=t.b(e);return n}function Iu(t){return typeof t=="string"}function rt(t){var e;return Iu(t)?e=t.length:e=t.a(),e}function In(t,e,n){var i;return Iu(t)?i=t.substring(e,n):i=t.c(e,n),i}function rm(t,e){var n=t,i=e;if(n===i)return!0;if(n==null||i==null||!kh(i)||n.length!=i.length)return!1;var a=0,s=n.length;if(a<s)do{var o=a;if(a=a+1|0,!S(n[o],i[o]))return!1}while(a<s);return!0}function im(t){var e=t;if(e==null)return 0;var n=1,i=0,a=e.length;if(i<a)do{var s=i;i=i+1|0,n=Et(n,31)+G(e[s])|0}while(i<a);return n}function am(t){return Wf(t,", ","[","]",u,u,sm)}function sm(t){return j(t)}function om(t){var e=cm(t),n=fm(t),i=hm(),a=dm(),s=vm();return lm(e,n,i,a,s)}function lm(t,e,n,i,a){var s=new Array,o=Object,l=dl;return o.setPrototypeOf(s,l.prototype),new Proxy(s,{get:function(c,f,h){if(f==="length")return t();var d=typeof f,v=d==="string"||d==="number"?+f:void 0;return isNaN(v)?c[f]:e(v)},has:function(c,f){return!isNaN(f)&&f<t()},set:function(c,f,h){if(f==="length"){var d=t(),v=g==="string"||g==="number"?+f:void 0;if(isNaN(v))throw new RangeError("invalid array length");return v<d?i(d-v):a(v-d),!0}var g=typeof f,p=g==="string"||g==="number"?+f:void 0;return isNaN(p)?!1:(n(p,h),!0)}})}function Au(){throw qs()}function dl(){Array.call(this)}function um(t){var e=t.slice();return new Bt(e).p2()}function cm(t){return function(){return t.m()}}function fm(t){return function(e){return t.k(e)}}function hm(){var t=function(){return Au(),ft};return t.callableName="UNSUPPORTED_OPERATION",t}function dm(){var t=function(){return Au(),ft};return t.callableName="UNSUPPORTED_OPERATION",t}function vm(){var t=function(){return Au(),ft};return t.callableName="UNSUPPORTED_OPERATION",t}function hh(t,e){var n;switch(typeof t){case"number":var i;typeof e=="number"?i=Qc(t,e):e instanceof pt?i=Qc(t,e.l2()):i=Gc(t,e),n=i;break;case"string":case"boolean":n=Gc(t,e);break;default:n=pm(t,e);break}return n}function Qc(t,e){var n;if(t<e)n=-1;else if(t>e)n=1;else if(t===e){var i;if(t!==0)i=0;else{var a=1/t,s;a===1/e?s=0:a<0?s=-1:s=1,i=s}n=i}else t!==t?n=e!==e?0:1:n=-1;return n}function Gc(t,e){return t<e?-1:t>e?1:0}function pm(t,e){return t.d(e)}function mm(t){return vl(t)}function vl(t){if(!("kotlinHashCodeValue$"in t)){var e=dh(),n=new Object;n.value=e,n.enumerable=!1,Object.defineProperty(t,"kotlinHashCodeValue$",n)}return t.kotlinHashCodeValue$}function dh(){return Math.random()*4294967296|0}function S(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 i;if(t!==0)i=!0;else{var a=1/t;i=a===1/e}n=i}else n=!1;return n}return t===e}function G(t){if(t==null)return 0;var e=typeof t,n;switch(e){case"object":n=typeof t.hashCode=="function"?t.hashCode():vl(t);break;case"function":n=vl(t);break;case"number":n=nm(t);break;case"boolean":n=Es(t);break;case"string":n=Cn(String(t));break;case"bigint":n=gm(t);break;case"symbol":n=_m(t);break;default:n=function(){throw new Error("Unexpected typeof `"+e+"`")}();break}return n}function j(t){var e;return t==null?e="null":kh(t)?e="[...]":typeof t.toString!="function"?e=ym(t):e=t.toString(),e}function z(t,e,n,i){return Object.defineProperty(t,e,{configurable:!0,get:n,set:i})}function ut(t){return t=t===u?null:t,Object.create(t)}function Es(t){return t?1231:1237}function Cn(t){var e=0,n=t.length,i=0,a=n-1|0;if(i<=a)do{var s=i;i=i+1|0;var o=t.charCodeAt(s);e=Et(e,31)+o|0}while(s!==a);return e}function gm(t){for(var e=BigInt(32),n=BigInt(4294967295),i=t<0?-t:t,a=0,s=t<0?-1:1;i!=0;){var o=Number(i&n);a=Et(31,a)+o|0,i=i>>e}return Et(a,s)}function _m(t){var e=bm(t)?wm():xm(),n=e.get(t);if(n!==u)return n;var i=dh();return e.set(t,i),i}function ym(t){return Object.prototype.toString.call(t)}function bm(t){return Symbol.keyFor(t)!=u}function wm(){return rl===u&&(rl=new Map),rl}function xm(){return il===u&&(il=new WeakMap),il}var rl,il;function J(t,e){Error.captureStackTrace!=null?Error.captureStackTrace(t,e):t.stack=new Error().stack}function r(t){return t.prototype}function ho(t,e,n){Error.call(t),km(t,e,n)}function km(t,e,n){var i=Ph(Object.getPrototypeOf(t));if(!(i&1)){var a;if(e==null){var s;if(e!==null){var o=null;s=o==null?u:o}else s=u;a=s}else a=e;t.message=a}i&2||(t.cause=n),t.name=Object.getPrototypeOf(t).constructor.name}function en(t){var e;return t==null?Cm():e=t,e}function Cm(){throw Hu()}function vr(){throw Wu()}function $(){throw Vu()}function dr(){return At(),vh}var vh;function Ks(){return At(),ph}var ph;function Jc(){return At(),mh}var mh;function Sm(){return At(),gh}var gh;function Zn(){return At(),_h}var _h;function Yc(){return At(),yh}var yh;function vo(t,e){if(At(),zn(t,e))return 0;var n=En(t),i=En(e);return n&&!i?-1:!n&&i?1:En(os(t,e))?-1:1}function eo(t,e){At();var n=t.e2_1>>>16|0,i=t.e2_1&65535,a=t.d2_1>>>16|0,s=t.d2_1&65535,o=e.e2_1>>>16|0,l=e.e2_1&65535,c=e.d2_1>>>16|0,f=e.d2_1&65535,h=0,d=0,v=0,g=0;return g=g+(s+f|0)|0,v=v+(g>>>16|0)|0,g=g&65535,v=v+(a+c|0)|0,d=d+(v>>>16|0)|0,v=v&65535,d=d+(i+l|0)|0,h=h+(d>>>16|0)|0,d=d&65535,h=h+(n+o|0)|0,h=h&65535,new pt(v<<16|g,h<<16|d)}function os(t,e){return At(),eo(t,e.i2())}function Hr(t,e){if(At(),gi(t))return dr();if(gi(e))return dr();if(zn(t,Zn()))return Xc(e)?Zn():dr();if(zn(e,Zn()))return Xc(t)?Zn():dr();if(En(t)){var n;return En(e)?n=Hr(sn(t),sn(e)):n=sn(Hr(sn(t),e)),n}else if(En(e))return sn(Hr(t,sn(e)));if(Zc(t,Yc())&&Zc(e,Yc()))return us(ls(t)*ls(e));var i=t.e2_1>>>16|0,a=t.e2_1&65535,s=t.d2_1>>>16|0,o=t.d2_1&65535,l=e.e2_1>>>16|0,c=e.e2_1&65535,f=e.d2_1>>>16|0,h=e.d2_1&65535,d=0,v=0,g=0,p=0;return p=p+Et(o,h)|0,g=g+(p>>>16|0)|0,p=p&65535,g=g+Et(s,h)|0,v=v+(g>>>16|0)|0,g=g&65535,g=g+Et(o,f)|0,v=v+(g>>>16|0)|0,g=g&65535,v=v+Et(a,h)|0,d=d+(v>>>16|0)|0,v=v&65535,v=v+Et(s,f)|0,d=d+(v>>>16|0)|0,v=v&65535,v=v+Et(o,c)|0,d=d+(v>>>16|0)|0,v=v&65535,d=d+(((Et(i,h)+Et(a,f)|0)+Et(s,c)|0)+Et(o,l)|0)|0,d=d&65535,new pt(g<<16|p,d<<16|v)}function $m(t,e){if(At(),gi(e))throw rd("division by zero");if(gi(t))return dr();if(zn(t,Zn())){if(zn(e,Ks())||zn(e,Jc()))return Zn();if(zn(e,Zn()))return Ks();var n=Im(t,1),i=Em(n.h2(e),1);if(zn(i,dr()))return En(e)?Ks():Jc();var a=os(t,Hr(e,i));return eo(i,a.h2(e))}else if(zn(e,Zn()))return dr();if(En(t)){var s;return En(e)?s=sn(t).h2(sn(e)):s=sn(sn(t).h2(e)),s}else if(En(e))return sn(t.h2(sn(e)));for(var o=dr(),l=t;qm(l,e);){for(var c=ls(l)/ls(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=us(f),g=Hr(v,e);En(g)||Nm(g,l);)f=f-d,v=us(f),g=Hr(v,e);gi(v)&&(v=Ks()),o=eo(o,v),l=os(l,g)}return o}function Em(t,e){At();var n=e&63;return new pt(t.d2_1<<n,t.e2_1<<n|(t.d2_1>>>(32-n|0)|0))}function Im(t,e){At();var n=e&63;return new pt(t.d2_1>>>n|0|t.e2_1<<(32-n|0),t.e2_1>>n)}function ls(t){return At(),t.e2_1*4294967296+Rm(t)}function pl(t,e){if(At(),gi(t))return"0";if(En(t))if(zn(t,Zn())){var n=ns(e),i=t.h2(n),a=os(Hr(i,n),t).k2(),s=pl(i,e);return s+a.toString(e)}else return"-"+pl(sn(t),e);for(var o=9,l=us(Math.pow(e,o)),c=t,f="";;){var h=c.h2(l),d=os(c,Hr(h,l)).k2(),v=d.toString(e);if(c=h,gi(c))return v+f;for(;v.length<o;)v="0"+v;f=v+f}}function zn(t,e){return At(),t.e2_1===e.e2_1&&t.d2_1===e.d2_1}function Am(t){return At(),t.d2_1^t.e2_1}function ns(t){return At(),new pt(t,t<0?-1:0)}function En(t){return At(),t.e2_1<0}function gi(t){return At(),t.e2_1===0&&t.d2_1===0}function Xc(t){return At(),(t.d2_1&1)===1}function sn(t){return At(),t.i2()}function Zc(t,e){return At(),vo(t,e)<0}function us(t){if(At(),Gm(t))return dr();if(t<=-9223372036854776e3)return Zn();if(t+1>=9223372036854776e3)return Sm();if(t<0)return sn(us(-t));var e=4294967296,n=t%e|0,i=t/e|0;return new pt(n,i)}function Nm(t,e){return At(),vo(t,e)>0}function qm(t,e){return At(),vo(t,e)>=0}function Rm(t){return At(),t.d2_1>=0?t.d2_1:4294967296+t.d2_1}var tf;function At(){tf||(tf=!0,vh=ns(0),ph=ns(1),mh=ns(-1),gh=new pt(-1,2147483647),_h=new pt(0,-2147483648),yh=ns(16777216))}function bh(t,e,n,i,a,s){var o=u,l=t==="interface"?Pm():u;return{kind:t,simpleName:e,associatedObjectKey:i,associatedObjects:a,suspendArity:s,$kClass$:o,defaultConstructor:n,iid:l}}function Pm(){return Xa===u&&(Xa=0),Xa=Xa+1|0,Xa}var Xa;function Nu(t,e,n,i,a,s,o,l,c){a!=null&&(e.prototype=Object.create(a.prototype),e.prototype.constructor=e);var f=bh(t,n,i,l,c,o);if(e.$metadata$=f,s!=null){var h=S(f.iid,u)?e.prototype:e;h.$imask$=rh(s)}}function y(t,e,n,i,a,s,o,l){var c="class";Nu(c,t,e,n,i,a,s,o,l)}function it(t,e,n,i,a,s,o,l){var c="object";Nu(c,t,e,n,i,a,s,o,l)}function Se(t,e,n,i,a,s,o,l){var c="interface";Nu(c,t,e,n,i,a,s,o,l)}function Di(t,e,n,i){y(t,"Lambda",u,e,n,i,u,u)}function $e(t,e,n,i){it(t,"Companion",u,e,n,i,u,u)}function hr(t){var e=t.length,n=Array(e),i=0,a=e-1|0;if(i<=a)do{var s=i;i=i+1|0;var o=t[s];o!=null&&Aa(o)?n[s]=o:n[s]=[].slice.call(o)}while(s!==a);return[].concat.apply([],n)}function wh(t){var e;return t instanceof pt?e=t.k2():e=Tm(t),e}function Tm(t){var e;return t>2147483647?e=2147483647:t<-2147483648?e=-2147483648:e=t|0,e}function Om(t){return t<<16>>16}function ml(t){var e=wh(t),n=Om(e);return Up(n)}function qu(t,e){return new ri(t,e)}function Lm(){return Ia(),xh}var xh;function ma(){return Ia(),bh("class",u,u,u,u,u)}function Ea(t,e,n,i,a){return Ia(),i.get=i,i.set=a,i.callableName=t,jm(i,Mm(e,a),zm(i,n))}function jm(t,e,n){return Ia(),t.$metadata$=e,t.constructor=t,t.$imask$=n,t}function Mm(t,e){return Ia(),Lm()[t][e==null?0:1]}function zm(t,e){Ia();var n=t.$imask$,i;if(n==null){var a=[e];i=rh(a)}else i=n;return i}var ef;function Ia(){if(!ef){ef=!0;var t=[ma(),ma()],e=[ma(),ma()];xh=[t,e,[ma(),ma()]]}}function kh(t){return po(t)||bp(t)}function po(t){return Array.isArray(t)}function X(t,e){return Bm(t,e.$metadata$.iid)}function Bm(t,e){var n=t.$imask$,i;if(n==null)return!1;i=n;var a=i;return Zp(a,e)}function Aa(t){var e;return po(t)?e=!t.$type$:e=!1,e}function Ch(t){var e;return typeof t=="number"?e=!0:e=t instanceof pt,e}function Dm(t){var e=typeof t;return e==="string"||e==="boolean"||Ch(t)||X(t,ks)}function fe(t){return typeof t=="string"||X(t,bu)}function Sh(t){return po(t)&&t.$type$==="BooleanArray"}function $h(t){return t instanceof Int8Array}function Eh(t){return t instanceof Int16Array}function Ih(t){var e;return t instanceof Uint16Array?e=t.$type$==="CharArray":e=!1,e}function Ah(t){return t instanceof Int32Array}function Nh(t){return t instanceof Float32Array}function qh(t){return po(t)&&t.$type$==="LongArray"}function Rh(t){return t instanceof Float64Array}function Ph(t){var e=t.constructor,n=e==null?null:e.$metadata$,i=n==null?null:n.errorInfo;if(i!=null)return i;var a=0;if(nf(t,"message")&&(a=a|1),nf(t,"cause")&&(a=a|2),a!==3){var s=Fm(t);s!=Error.prototype&&(a=a|Ph(s))}return n!=null&&(n.errorInfo=a),a}function nf(t,e){return t.hasOwnProperty(e)}function Fm(t){return Object.getPrototypeOf(t)}var u;function gl(t,e){return rm(t,e)}function _l(t){return im(t)}function Ru(t){return new Bt(t)}function Km(t,e){t.length>1&&Dh(t,e)}function Um(t,e){if(!(e>=0)){var n="Invalid new array size: "+e+".";throw ie(j(n))}return Gg(t,new Int32Array(e))}function Hm(t,e){if(!(e>=0)){var n="Invalid new array size: "+e+".";throw ie(j(n))}return Jg(t,e,null)}function Pu(t){var e=(t.m()/2|0)-1|0;if(e<0)return ft;var n=er(t),i=0;if(i<=e)do{var a=i;i=i+1|0;var s=t.k(a);t.r1(a,t.k(n)),t.r1(n,s),n=n-1|0}while(a!==e)}function Wm(t){return Th(t)>=0}function Th(t){var e=tr(t),n=Vm(rf().q2_1,e),i=e-rf().q2_1[n]|0;return i<10?i:-1}function Vm(t,e){for(var n=0,i=t.length-1|0,a=-1,s=0;n<=i;)if(a=(n+i|0)/2|0,s=t[a],e>s)n=a+1|0;else{if(e===s)return a;i=a-1|0}return a-(e<s?1:0)|0}function Oh(){yl=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 yl;function rf(){return yl==null&&new Oh,yl}function Qm(t){var e=tr(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 Un(){}function Gm(t){return t!==t}function Jm(t){var e;return t===0?e=0:e=1<<(31-Hf(t)|0),e}function Tu(){}r(Tu).toString=function(){return"kotlin.Unit"};var ft;function Lh(t){return N_(t)}function Hn(t){var e;return t.toArray!==void 0?e=t.toArray():e=Lh(t),e}function Na(t){return t<0&&L_(),t}function mo(t){return j_([t])}function Ym(t,e){Xm(t,e)}function jh(t){return U_([t])}function Xm(t,e){if(t.m()<=1)return ft;var n=Hn(t);Dh(n,e);var i=0,a=n.length;if(i<a)do{var s=i;i=i+1|0,t.r1(s,n[s])}while(i<a)}function rr(){qn.call(this)}r(rr).q=function(t){this.r2();for(var e=!1,n=t.h();n.i();){var i=n.j();this.f(i)&&(e=!0)}return e};r(rr).toJSON=function(){return this.toArray()};r(rr).r2=function(){};function Fi(t){this.u2_1=t,this.s2_1=0,this.t2_1=-1}r(Fi).i=function(){return this.s2_1<this.u2_1.m()};r(Fi).j=function(){if(!this.i())throw Ee();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)};r(Fi).v2=function(){if(this.t2_1===-1){var t="Call next() or previous() before removing element from the iterator.";throw An(j(t))}this.u2_1.s1(this.t2_1),this.s2_1=this.t2_1,this.t2_1=-1};function qa(t,e){this.a3_1=t,Fi.call(this,t),Ke.c3(e,this.a3_1.m()),this.s2_1=e}r(qa).d3=function(){return this.s2_1>0};r(qa).e3=function(){return this.s2_1};r(qa).f3=function(){if(!this.d3())throw Ee();var t=this;return this.s2_1=this.s2_1-1|0,t.t2_1=this.s2_1,this.a3_1.k(this.t2_1)};r(qa).g3=function(){return this.s2_1-1|0};function Mr(t,e,n){Ce.call(this),this.i3_1=t,this.j3_1=e,this.k3_1=0,Ke.l3(this.j3_1,n,this.i3_1.m()),this.k3_1=n-this.j3_1|0}r(Mr).m3=function(t,e){Ke.c3(t,this.k3_1),this.i3_1.m3(this.j3_1+t|0,e),this.k3_1=this.k3_1+1|0};r(Mr).k=function(t){return Ke.n3(t,this.k3_1),this.i3_1.k(this.j3_1+t|0)};r(Mr).s1=function(t){Ke.n3(t,this.k3_1);var e=this.i3_1.s1(this.j3_1+t|0);return this.k3_1=this.k3_1-1|0,e};r(Mr).r1=function(t,e){return Ke.n3(t,this.k3_1),this.i3_1.r1(this.j3_1+t|0,e)};r(Mr).o3=function(t,e){this.i3_1.o3(this.j3_1+t|0,this.j3_1+e|0),this.k3_1=this.k3_1-(e-t|0)|0};r(Mr).m=function(){return this.k3_1};r(Mr).r2=function(){return this.i3_1.r2()};function Ce(){rr.call(this),this.w2_1=0}r(Ce).f=function(t){return this.r2(),this.m3(this.m(),t),!0};r(Ce).q1=function(){this.r2(),this.o3(0,this.m())};r(Ce).h=function(){return new Fi(this)};r(Ce).j1=function(t){return this.l1(t)>=0};r(Ce).l1=function(t){var e;t:{for(var n=0,i=this.h();i.i();){var a=i.j();if(S(a,t)){e=n;break t}n=n+1|0}e=-1}return e};r(Ce).m1=function(t){var e;t:{for(var n=this.o1(this.m());n.d3();){var i=n.f3();if(S(i,t)){e=n.e3();break t}}e=-1}return e};r(Ce).n1=function(){return this.o1(0)};r(Ce).o1=function(t){return new qa(this,t)};r(Ce).p1=function(t,e){return new Mr(this,t,e)};r(Ce).o3=function(t,e){var n=this.o1(t),i=e-t|0,a=0;if(a<i)do a=a+1|0,n.j(),n.v2();while(a<i)};r(Ce).equals=function(t){return t===this?!0:t!=null&&X(t,Fn)?Ke.p3(this,t):!1};r(Ce).hashCode=function(){return Ke.q3(this)};function ka(){rr.call(this)}r(ka).equals=function(t){return t===this?!0:t!=null&&X(t,Bi)?Yu.r3(this,t):!1};r(ka).hashCode=function(){return Yu.s3(this)};function Mh(t){if(!(t>=0)){var e="capacity must be non-negative.";throw ie(j(e))}return fr(Array(t),null)}function af(t,e,n){t.fill(null,e,n)}function sf(t,e){return Hm(t,e)}function zh(){bl=this;var t=this,e=ei(0);e.p_1=!0,t.t3_1=e}var bl;function Bh(){return bl==null&&new zh,bl}function Zm(t){var e=[];return Bt.call(t,e),t}function Mt(){return Zm(ut(r(Bt)))}function tg(t,e){var n=[];if(Bt.call(e,n),!(t>=0)){var i="Negative initial capacity: "+t;throw ie(j(i))}return e}function ei(t){return tg(t,ut(r(Bt)))}function eg(t,e){var n=Hn(t);return Bt.call(e,n),e}function Is(t){return eg(t,ut(r(Bt)))}function ng(t,e){var n=t.m();return t.o_1.length=t.m()+e|0,n}function Ou(t,e){return Ke.n3(e,t.m()),e}function rg(t,e){return Ke.c3(e,t.m()),e}function Bt(t){Bh(),Ce.call(this),this.o_1=t,this.p_1=!1}r(Bt).p2=function(){return this.r2(),this.p_1=!0,this.m()>0?this:Bh().t3_1};r(Bt).m=function(){return this.o_1.length};r(Bt).k=function(t){var e=this.o_1[Ou(this,t)];return e==null||e!=null?e:$()};r(Bt).r1=function(t,e){this.r2(),Ou(this,t);var n=this.o_1[t];this.o_1[t]=e;var i=n;return i==null||i!=null?i:$()};r(Bt).f=function(t){return this.r2(),this.o_1.push(t),this.w2_1=this.w2_1+1|0,!0};r(Bt).m3=function(t,e){this.r2(),this.o_1.splice(rg(this,t),0,e),this.w2_1=this.w2_1+1|0};r(Bt).q=function(t){if(this.r2(),t.l())return!1;for(var e=ng(this,t.m()),n=0,i=t.h();i.i();){var a=i.j(),s=n;n=s+1|0;var o=Na(s);this.o_1[e+o|0]=a}return this.w2_1=this.w2_1+1|0,!0};r(Bt).s1=function(t){this.r2(),Ou(this,t),this.w2_1=this.w2_1+1|0;var e;return t===er(this)?e=this.o_1.pop():e=this.o_1.splice(t,1)[0],e};r(Bt).o3=function(t,e){this.r2(),this.w2_1=this.w2_1+1|0,this.o_1.splice(t,e-t|0)};r(Bt).q1=function(){this.r2();var t=this;t.o_1=[],this.w2_1=this.w2_1+1|0};r(Bt).l1=function(t){return Cp(this.o_1,t)};r(Bt).m1=function(t){return Ep(this.o_1,t)};r(Bt).toString=function(){return am(this.o_1)};r(Bt).u3=function(){return[].slice.call(this.o_1)};r(Bt).toArray=function(){return this.u3()};r(Bt).r2=function(){if(this.p_1)throw qs()};var Hs;function Dh(t,e){if(ig()){var n=sg(e);t.sort(n)}else ag(t,0,Sp(t),e)}function ig(){var t=Hs;if(t!=null)return t;Hs=!1;var e=[],n=0;if(n<600)do{var i=n;n=n+1|0,e.push(i)}while(n<600);var a=og;e.sort(a);var s=1,o=e.length;if(s<o)do{var l=s;s=s+1|0;var c=e[l-1|0],f=e[l];if((c&3)===(f&3)&&c>=f)return!1}while(s<o);return Hs=!0,!0}function ag(t,e,n,i){var a=t.length,s=fr(Array(a),null),o=wl(t,s,e,n,i);if(o!==t){var l=e;if(l<=n)do{var c=l;l=l+1|0,t[c]=o[c]}while(c!==n)}}function wl(t,e,n,i,a){if(n===i)return t;var s=(n+i|0)/2|0,o=wl(t,e,n,s,a),l=wl(t,e,s+1|0,i,a),c=o===e?t:e,f=n,h=s+1|0,d=n;if(d<=i)do{var v=d;if(d=d+1|0,f<=s&&h<=i){var g=o[f],p=l[h];a.compare(g,p)<=0?(c[v]=g,f=f+1|0):(c[v]=p,h=h+1|0)}else f<=s?(c[v]=o[f],f=f+1|0):(c[v]=l[h],h=h+1|0)}while(v!==i);return c}function sg(t){return function(e,n){return t.compare(e,n)}}function og(t,e){return(t&3)-(e&3)|0}function Lu(t,e){return ka.call(e),Bn.call(e),e.v3_1=t,e}function Fh(t){return Lu(Vh(),t),t}function lg(){return Fh(ut(r(Bn)))}function ug(t,e){Lu(dg(t.m()),e);for(var n=t.h();n.i();){var i=n.j();e.v3_1.w3(i,!0)}return e}function Kh(t,e,n){return Lu(pg(t,e),n),n}function cg(t,e){return Kh(t,1,e),e}function fg(t){return cg(t,ut(r(Bn)))}r(Bn).f=function(t){return this.v3_1.w3(t,!0)==null};r(Bn).j1=function(t){return this.v3_1.x3(t)};r(Bn).l=function(){return this.v3_1.m()===0};r(Bn).h=function(){return this.v3_1.y3()};r(Bn).m=function(){return this.v3_1.m()};function Bn(){}function Uh(t,e){return Jm(Et(to(e,1),3))}function Hh(t,e){return Hf(e)+1|0}function Wh(t){if(t.j4_1.g4_1!==t.l4_1)throw md("The backing map has been modified after this entry was obtained.")}function hg(t){return ju(8,t),t}function Vh(){return hg(ut(r(Fe)))}function ju(t,e){return Fe.call(e,Mh(t),null,new Int32Array(t),new Int32Array(Uh(As,t)),2,0),e}function dg(t){return ju(t,ut(r(Fe)))}function vg(t,e,n){return ju(t,n),n}function pg(t,e){return vg(t,e,ut(r(Fe)))}function Ca(t){return t.z3_1.length}function _i(t){return t.c4_1.length}function Qh(t){t.g4_1=t.g4_1+1|0}function mg(t,e){gg(t,e)?Gh(t,!0):_g(t,t.e4_1+e|0)}function gg(t,e){var n=Ca(t)-t.e4_1|0,i=t.e4_1-t.m()|0;return n<e&&(i+n|0)>=e&&i>=(Ca(t)/4|0)}function _g(t,e){if(e<0)throw cd("too many elements");if(e>Ca(t)){var n=Ke.m4(Ca(t),e);t.z3_1=sf(t.z3_1,n);var i=t,a=t.a4_1;i.a4_1=a==null?null:sf(a,n),t.b4_1=Um(t.b4_1,n);var s=Uh(As,n);s>_i(t)&&Jh(t,s)}}function yg(t){var e=t.a4_1;if(e!=null)return e;var n=Mh(Ca(t));return t.a4_1=n,n}function Mu(t,e){return e==null?0:Et(G(e),-1640531527)>>>t.f4_1|0}function Gh(t,e){for(var n=0,i=0,a=t.a4_1;n<t.e4_1;){var s=t.b4_1[n];s>=0&&(t.z3_1[i]=t.z3_1[n],a!=null&&(a[i]=a[n]),e&&(t.b4_1[i]=s,t.c4_1[s]=i+1|0),i=i+1|0),n=n+1|0}af(t.z3_1,i,t.e4_1),a==null||af(a,i,t.e4_1),t.e4_1=i}function Jh(t,e){Qh(t),t.e4_1>t.h4_1&&Gh(t,!1),t.c4_1=new Int32Array(e),t.f4_1=Hh(As,e);for(var n=0;n<t.e4_1;){var i=n;if(n=i+1|0,!bg(t,i))throw An("This cannot happen with fixed magic multiplier and grow-only hash array. Have object hashCodes changed?")}}function bg(t,e){for(var n=Mu(t,t.z3_1[e]),i=t.d4_1;;){var a=t.c4_1[n];if(a===0)return t.c4_1[n]=e+1|0,t.b4_1[e]=n,!0;if(i=i-1|0,i<0)return!1;var s=n;n=s-1|0,s===0&&(n=_i(t)-1|0)}}function Yh(t,e){for(var n=Mu(t,e),i=t.d4_1;;){var a=t.c4_1[n];if(a===0)return-1;if(a>0&&S(t.z3_1[a-1|0],e))return a-1|0;if(i=i-1|0,i<0)return-1;var s=n;n=s-1|0,s===0&&(n=_i(t)-1|0)}}function wg(t,e){t.n4();t:for(;;)for(var n=Mu(t,e),i=Zs(Et(t.d4_1,2),_i(t)/2|0),a=0;;){var s=t.c4_1[n];if(s<=0){if(t.e4_1>=Ca(t)){mg(t,1);continue t}var o=t.e4_1;t.e4_1=o+1|0;var l=o;return t.z3_1[l]=e,t.b4_1[l]=n,t.c4_1[n]=l+1|0,t.h4_1=t.h4_1+1|0,Qh(t),a>t.d4_1&&(t.d4_1=a),l}if(S(t.z3_1[s-1|0],e))return-s|0;if(a=a+1|0,a>i){Jh(t,Et(_i(t),2));continue t}var c=n;n=c-1|0,c===0&&(n=_i(t)-1|0)}}function xg(t,e){return t.h4_1===e.m()&&t.o4(e.v1())}function Xh(){this.p4_1=-1640531527,this.q4_1=8,this.r4_1=2,this.s4_1=-1}var As;function ii(t){this.t4_1=t,this.u4_1=0,this.v4_1=-1,this.w4_1=this.t4_1.g4_1,this.x4()}r(ii).x4=function(){for(;this.u4_1<this.t4_1.e4_1&&this.t4_1.b4_1[this.u4_1]<0;)this.u4_1=this.u4_1+1|0};r(ii).i=function(){return this.u4_1<this.t4_1.e4_1};r(ii).y4=function(){if(this.t4_1.g4_1!==this.w4_1)throw Uu()};function zu(t){ii.call(this,t)}r(zu).j=function(){if(this.y4(),this.u4_1>=this.t4_1.e4_1)throw Ee();var t=this,e=this.u4_1;this.u4_1=e+1|0,t.v4_1=e;var n=this.t4_1.z3_1[this.v4_1];return this.x4(),n};function Ns(t){ii.call(this,t)}r(Ns).j=function(){if(this.y4(),this.u4_1>=this.t4_1.e4_1)throw Ee();var t=this,e=this.u4_1;this.u4_1=e+1|0,t.v4_1=e;var n=new Ki(this.t4_1,this.v4_1);return this.x4(),n};r(Ns).h5=function(){if(this.u4_1>=this.t4_1.e4_1)throw Ee();var t=this,e=this.u4_1;this.u4_1=e+1|0,t.v4_1=e;var n=this.t4_1.z3_1[this.v4_1],i=n==null?null:G(n),a=i==null?0:i,s=en(this.t4_1.a4_1)[this.v4_1],o=s==null?null:G(s),l=a^(o==null?0:o);return this.x4(),l};r(Ns).i5=function(t){if(this.u4_1>=this.t4_1.e4_1)throw Ee();var e=this,n=this.u4_1;this.u4_1=n+1|0,e.v4_1=n;var i=this.t4_1.z3_1[this.v4_1];S(i,this.t4_1)?t.l5("(this Map)"):t.k5(i),t.m5(61);var a=en(this.t4_1.a4_1)[this.v4_1];S(a,this.t4_1)?t.l5("(this Map)"):t.k5(a),this.x4()};function Ki(t,e){this.j4_1=t,this.k4_1=e,this.l4_1=this.j4_1.g4_1}r(Ki).t1=function(){return Wh(this),this.j4_1.z3_1[this.k4_1]};r(Ki).u1=function(){return Wh(this),en(this.j4_1.a4_1)[this.k4_1]};r(Ki).equals=function(t){var e,n;return t!=null&&X(t,$s)?n=S(t.t1(),this.t1()):n=!1,n?e=S(t.u1(),this.u1()):e=!1,e};r(Ki).hashCode=function(){var t=this.t1(),e=t==null?null:G(t),n=e==null?0:e,i=this.u1(),a=i==null?null:G(i);return n^(a==null?0:a)};r(Ki).toString=function(){return re(this.t1())+"="+re(this.u1())};function Fe(t,e,n,i,a,s){this.z3_1=t,this.a4_1=e,this.b4_1=n,this.c4_1=i,this.d4_1=a,this.e4_1=s,this.f4_1=Hh(As,_i(this)),this.g4_1=0,this.h4_1=0,this.i4_1=!1}r(Fe).m=function(){return this.h4_1};r(Fe).x3=function(t){return Yh(this,t)>=0};r(Fe).w3=function(t,e){var n=wg(this,t),i=yg(this);if(n<0){var a=i[(-n|0)-1|0];return i[(-n|0)-1|0]=e,a}else return i[n]=e,null};r(Fe).equals=function(t){var e;if(t===this)e=!0;else{var n;t!=null&&X(t,eh)?n=xg(this,t):n=!1,e=n}return e};r(Fe).hashCode=function(){for(var t=0,e=this.n5();e.i();)t=t+e.h5()|0;return t};r(Fe).toString=function(){var t=Gu(2+Et(this.h4_1,3)|0);t.l5("{");for(var e=0,n=this.n5();n.i();)e>0&&t.l5(", "),n.i5(t),e=e+1|0;return t.l5("}"),t.toString()};r(Fe).n4=function(){if(this.i4_1)throw qs()};r(Fe).o5=function(t){var e=Yh(this,t.t1());return e<0?!1:S(en(this.a4_1)[e],t.u1())};r(Fe).p5=function(t){return this.o5(X(t,$s)?t:$())};r(Fe).y3=function(){return new zu(this)};r(Fe).n5=function(){return new Ns(this)};function Zh(){}function kg(t){return Fh(t),ai.call(t),t}function Bu(){return kg(ut(r(ai)))}function Cg(t,e){return ug(t,e),ai.call(e),e}function Sg(t){return Cg(t,ut(r(ai)))}function $g(t,e,n){return Kh(t,e,n),ai.call(n),n}function Eg(t,e){return $g(t,1,e),e}function Ig(t){return Eg(t,ut(r(ai)))}r(ai).r2=function(){return this.v3_1.n4()};function ai(){}function he(t){cs.call(this),this.s5_1=t,this.t5_1=0,this.u5_1=0,this.v5_1=null,this.w5_1=null,this.x5_1=null;var e=this,n=this.s5_1;e.y5_1=n==null?null:n.z5()}r(he).z5=function(){return en(this.y5_1)};r(he).a6=function(t){var e=this,n;if(s0(t))n=null;else{var i=t;n=i==null||i!=null?i:$()}for(var a=n,s=o0(t);;){var o=e;s==null?o.v5_1=a:(o.t5_1=o.u5_1,o.w5_1=s);try{var l=o.b6();if(l===zr())return ft;a=l,s=null}catch(p){var c=p;a=null,s=c}o.d6();var f=en(o.s5_1);if(f instanceof he)e=f;else{if(s!=null){var h=en(s),d=u0(h);f.e6(d)}else{var v=a,g=v;f.e6(g)}return ft}}};r(he).e6=function(t){return this.a6(t)};function Ra(){}r(Ra).z5=function(){var t="This continuation is already complete";throw An(j(t))};r(Ra).a6=function(t){var e="This continuation is already complete";throw An(j(e))};r(Ra).e6=function(t){return this.a6(t)};r(Ra).toString=function(){return"This continuation is already complete"};var td;function cs(){this.c6_1=null}r(cs).d6=function(){var t=this.c6_1;t!=null&&t!==this&&en(this.z5().f6(Od)).g6(t),this.c6_1=td};function Ag(t,e,n){return new Du(n,t,e,n)}function Du(t,e,n,i){this.p6_1=e,this.q6_1=n,this.r6_1=i,he.call(this,X(t,Ha)?t:$())}r(Du).b6=function(){if(this.w5_1!=null)throw this.w5_1;var t=this.p6_1;return typeof t=="function"?t(this.q6_1,this.r6_1):this.p6_1.s6(this.q6_1,this.r6_1)};function ed(t){return ho(t),ar.call(t),t}function nd(){var t=ed(ut(r(ar)));return J(t,nd),t}function Fu(t,e){return ho(e,t),ar.call(e),e}function rd(t){var e=Fu(t,ut(r(ar)));return J(e,rd),e}function ar(){J(this,ar)}function id(t){return Wn(t),Ui.call(t),t}function ad(){var t=id(ut(r(Ui)));return J(t,ad),t}function sd(t,e){return si(t,e),Ui.call(e),e}function ie(t){var e=sd(t,ut(r(Ui)));return J(e,ie),e}function Ui(){J(this,Ui)}function Ng(t){return Wn(t),Pa.call(t),t}function od(){var t=Ng(ut(r(Pa)));return J(t,od),t}function qg(t,e){return si(t,e),Pa.call(e),e}function An(t){var e=qg(t,ut(r(Pa)));return J(e,An),e}function Pa(){J(this,Pa)}function Rg(t){return Wn(t),Ta.call(t),t}function qs(){var t=Rg(ut(r(Ta)));return J(t,qs),t}function Pg(t,e){return si(t,e),Ta.call(e),e}function ld(t){var e=Pg(t,ut(r(Ta)));return J(e,ld),e}function Ta(){J(this,Ta)}function Wn(t){return ed(t),Ye.call(t),t}function ud(){var t=Wn(ut(r(Ye)));return J(t,ud),t}function si(t,e){return Fu(t,e),Ye.call(e),e}function cd(t){var e=si(t,ut(r(Ye)));return J(e,cd),e}function Ye(){J(this,Ye)}function Tg(t){return Wn(t),Oa.call(t),t}function Ee(){var t=Tg(ut(r(Oa)));return J(t,Ee),t}function Og(t,e){return si(t,e),Oa.call(e),e}function Hi(t){var e=Og(t,ut(r(Oa)));return J(e,Hi),e}function Oa(){J(this,Oa)}function Lg(t){return ho(t),La.call(t),t}function fd(){var t=Lg(ut(r(La)));return J(t,fd),t}function jg(t,e){return ho(e,t),La.call(e),e}function La(){J(this,La)}function Mg(t){return Wn(t),ja.call(t),t}function Ku(){var t=Mg(ut(r(ja)));return J(t,Ku),t}function zg(t,e){return si(t,e),ja.call(e),e}function Nn(t){var e=zg(t,ut(r(ja)));return J(e,Nn),e}function ja(){J(this,ja)}function Bg(t){return id(t),Ma.call(t),t}function hd(){var t=Bg(ut(r(Ma)));return J(t,hd),t}function Dg(t,e){return sd(t,e),Ma.call(e),e}function dd(t){var e=Dg(t,ut(r(Ma)));return J(e,dd),e}function Ma(){J(this,Ma)}function Fg(t){return Wn(t),za.call(t),t}function vd(){var t=Fg(ut(r(za)));return J(t,vd),t}function Kg(t,e){return si(t,e),za.call(e),e}function pd(t){var e=Kg(t,ut(r(za)));return J(e,pd),e}function za(){J(this,za)}function Ug(t){return Wn(t),Ba.call(t),t}function Uu(){var t=Ug(ut(r(Ba)));return J(t,Uu),t}function Hg(t,e){return si(t,e),Ba.call(e),e}function md(t){var e=Hg(t,ut(r(Ba)));return J(e,md),e}function Ba(){J(this,Ba)}function Wg(t){return Wn(t),go.call(t),t}function Hu(){var t=Wg(ut(r(go)));return J(t,Hu),t}function go(){J(this,go)}function Vg(t){return Wn(t),_o.call(t),t}function Wu(){var t=Vg(ut(r(_o)));return J(t,Wu),t}function _o(){J(this,_o)}function Qg(t){return Wn(t),yo.call(t),t}function Vu(){var t=Qg(ut(r(yo)));return J(t,Vu),t}function yo(){J(this,yo)}function Da(t){return new Ms(t)}function Gg(t,e){for(var n=t.length,i=e.length,a=0,s=e;a<n&&a<i;){var o=a,l=a;a=l+1|0,s[o]=t[l]}return e}function Jg(t,e,n){var i=t.slice(0,e);t.$type$!==void 0&&(i.$type$=t.$type$);var a=t.length;if(e>a)for(i.length=e;a<e;){var s=a;a=s+1|0,i[s]=n}return i}function fs(){}function kn(t){this.w6_1=t}r(kn).x6=function(){return this.w6_1};r(kn).equals=function(t){var e;return t instanceof Wi||t instanceof $i?e=!1:t instanceof kn?e=S(this.x6(),t.x6()):e=!1,e};r(kn).hashCode=function(){var t=this.v6(),e=t==null?null:Cn(t);return e==null?0:e};r(kn).toString=function(){return"class "+this.v6()};function Wi(){xl=this,kn.call(this,Object),this.z6_1="Nothing"}r(Wi).v6=function(){return this.z6_1};r(Wi).x6=function(){throw ld("There's no native JS class for Nothing type")};r(Wi).equals=function(t){return t===this};r(Wi).hashCode=function(){return 0};var xl;function gd(){return xl==null&&new Wi,xl}function $i(){}r($i).v6=function(){var t="Unknown simpleName for ErrorKClass";throw An(j(t))};r($i).equals=function(t){return t===this};r($i).hashCode=function(){return 0};function Kt(t,e,n){kn.call(this,t),this.b7_1=e,this.c7_1=n}r(Kt).equals=function(t){return t instanceof Kt?r(kn).equals.call(this,t)&&this.b7_1===t.b7_1:!1};r(Kt).v6=function(){return this.b7_1};function no(t){kn.call(this,t);var e=this,n=t.$metadata$;e.e7_1=n==null?null:n.simpleName}r(no).v6=function(){return this.e7_1};function Vi(){}function of(){return g_(),_d}var _d;function Yg(t){return t!=null}function Xg(t){return Ch(t)}function Zg(t){return t!=null?typeof t=="boolean":!1}function t_(t){return t!=null?typeof t=="number":!1}function e_(t){return t!=null?typeof t=="number":!1}function n_(t){return t!=null?typeof t=="number":!1}function r_(t){return t!=null?typeof t=="number":!1}function i_(t){return t!=null?typeof t=="number":!1}function a_(t){return t!=null?Aa(t):!1}function s_(t){return t!=null?typeof t=="string":!1}function o_(t){return t instanceof Error}function l_(t){return t!=null?Sh(t):!1}function u_(t){return t!=null?Ih(t):!1}function c_(t){return t!=null?$h(t):!1}function f_(t){return t!=null?Eh(t):!1}function h_(t){return t!=null?Ah(t):!1}function d_(t){return t!=null?qh(t):!1}function v_(t){return t!=null?Nh(t):!1}function p_(t){return t!=null?Rh(t):!1}function m_(t){return function(e){var n;return typeof e=="function"?n=e.length===t:n=!1,n}}function te(){kl=this;var t=this,e=Object;t.anyClass=new Kt(e,"Any",Yg);var n=this,i=Number;n.numberClass=new Kt(i,"Number",Xg),this.nothingClass=gd();var a=this,s=Boolean;a.booleanClass=new Kt(s,"Boolean",Zg);var o=this,l=Number;o.byteClass=new Kt(l,"Byte",t_);var c=this,f=Number;c.shortClass=new Kt(f,"Short",e_);var h=this,d=Number;h.intClass=new Kt(d,"Int",n_);var v=this,g=Number;v.floatClass=new Kt(g,"Float",r_);var p=this,b=Number;p.doubleClass=new Kt(b,"Double",i_);var w=this,k=Array;w.arrayClass=new Kt(k,"Array",a_);var E=this,N=String;E.stringClass=new Kt(N,"String",s_);var x=this,m=Error;x.throwableClass=new Kt(m,"Throwable",o_);var C=this,q=Array;C.booleanArrayClass=new Kt(q,"BooleanArray",l_);var I=this,F=Uint16Array;I.charArrayClass=new Kt(F,"CharArray",u_);var B=this,K=Int8Array;B.byteArrayClass=new Kt(K,"ByteArray",c_);var lt=this,pe=Int16Array;lt.shortArrayClass=new Kt(pe,"ShortArray",f_);var Ot=this,Dt=Int32Array;Ot.intArrayClass=new Kt(Dt,"IntArray",h_);var Gt=this,Lt=Array;Gt.longArrayClass=new Kt(Lt,"LongArray",d_);var oe=this,at=Float32Array;oe.floatArrayClass=new Kt(at,"FloatArray",v_);var Ue=this,ne=Float64Array;Ue.doubleArrayClass=new Kt(ne,"DoubleArray",p_)}r(te).f7=function(){return this.anyClass};r(te).g7=function(){return this.numberClass};r(te).h7=function(){return this.nothingClass};r(te).i7=function(){return this.booleanClass};r(te).j7=function(){return this.byteClass};r(te).k7=function(){return this.shortClass};r(te).l7=function(){return this.intClass};r(te).m7=function(){return this.floatClass};r(te).n7=function(){return this.doubleClass};r(te).o7=function(){return this.arrayClass};r(te).p7=function(){return this.stringClass};r(te).q7=function(){return this.throwableClass};r(te).r7=function(){return this.booleanArrayClass};r(te).s7=function(){return this.charArrayClass};r(te).t7=function(){return this.byteArrayClass};r(te).u7=function(){return this.shortArrayClass};r(te).v7=function(){return this.intArrayClass};r(te).w7=function(){return this.longArrayClass};r(te).x7=function(){return this.floatArrayClass};r(te).y7=function(){return this.doubleArrayClass};r(te).functionClass=function(t){var e=of()[t],n;if(e==null){var i=Function,a="Function"+t,s=new Kt(i,a,m_(t));of()[t]=s,n=s}else n=e;return n};var kl;function Te(){return kl==null&&new te,kl}var lf;function g_(){lf||(lf=!0,_d=fr(Array(0),null))}function __(t){var e;return Array.isArray(t)?e=y_(t):e=Qu(t),e}function y_(t){var e;switch(t.length){case 1:e=Qu(t[0]);break;case 0:e=gd();break;default:e=new $i;break}return e}function Qu(t){if(t===String)return Te().stringClass;var e=t.$metadata$,n;if(e!=null){var i;if(e.$kClass$==null){var a=new no(t);e.$kClass$=a,i=a}else i=e.$kClass$;n=i}else n=new no(t);return n}function Or(t){var e;switch(typeof t){case"string":e=Te().stringClass;break;case"number":var n;(t|0)===t?n=Te().intClass:n=Te().doubleClass,e=n;break;case"boolean":e=Te().booleanClass;break;case"function":var i=Te();e=i.functionClass(t.length);break;default:var a;if(Sh(t))a=Te().booleanArrayClass;else if(Ih(t))a=Te().charArrayClass;else if($h(t))a=Te().byteArrayClass;else if(Eh(t))a=Te().shortArrayClass;else if(Ah(t))a=Te().intArrayClass;else if(qh(t))a=Te().longArrayClass;else if(Nh(t))a=Te().floatArrayClass;else if(Rh(t))a=Te().doubleArrayClass;else if(X(t,fs))a=__(fs);else if(Aa(t))a=Te().arrayClass;else{var s=Object.getPrototypeOf(t).constructor,o;if(s===Object)o=Te().anyClass;else if(s===Error)o=Te().throwableClass;else{var l=s;o=Qu(l)}a=o}e=a;break}return e}function yd(t){t.lastIndex=0}function b_(t,e){return bd(e),e}function Gu(t){return b_(t,ut(r(On)))}function bd(t){return On.call(t,""),t}function bo(){return bd(ut(r(On)))}function On(t){this.j5_1=t}r(On).a=function(){return this.j5_1.length};r(On).b=function(t){var e=this.j5_1,n;if(0<=t&&t<=(rt(e)-1|0))n=Tt(e,t);else throw Nn("index: "+t+", length: "+this.a()+"}");return n};r(On).c=function(t,e){return this.j5_1.substring(t,e)};r(On).m5=function(t){return this.j5_1=this.j5_1+nr(t),this};r(On).e=function(t){return this.j5_1=this.j5_1+re(t),this};r(On).k5=function(t){return this.j5_1=this.j5_1+re(t),this};r(On).l5=function(t){var e=this,n=this.j5_1;return e.j5_1=n+(t==null?"null":t),this};r(On).toString=function(){return this.j5_1};function uf(t){var e=nr(t).toUpperCase();return e.length>1?t:Tt(e,0)}function wd(t){return Qm(t)}function ro(t){return 48<=t&&t<=57?!0:Xe(t,128)<0?!1:Wm(t)}function xd(t){if(!(2<=t&&t<=36))throw ie("radix "+t+" was not in valid range 2..36");return t}function Cl(t,e){return t.toString(xd(e))}function cf(t,e){var n=oc(t,e),i;return n==null?Z_(t):i=n,i}function w_(t,e){var n=Xe(t,48)>=0&&Xe(t,57)<=0?Ya(t,48):Xe(t,65)>=0&&Xe(t,90)<=0?Ya(t,65)+10|0:Xe(t,97)>=0&&Xe(t,122)<=0?Ya(t,97)+10|0:Xe(t,128)<0?-1:Xe(t,65313)>=0&&Xe(t,65338)<=0?Ya(t,65313)+10|0:Xe(t,65345)>=0&&Xe(t,65370)<=0?Ya(t,65345)+10|0:Th(t);return n>=e?-1:n}function x_(t,e){return Rs.call(e,t,ic()),e}function k_(t){return x_(t,ut(r(Rs)))}function kd(){Sl=this,this.z7_1=new RegExp("[\\\\^$*+?.()|[\\]{}]","g"),this.a8_1=new RegExp("[\\\\$]","g"),this.b8_1=new RegExp("\\$","g")}var Sl;function C_(){return Sl==null&&new kd,Sl}function Rs(t,e){C_(),this.c8_1=t,this.d8_1=Pp(e),this.e8_1=new RegExp(t,S_(e,"gu")),this.f8_1=null,this.g8_1=null}r(Rs).h8=function(t){yd(this.e8_1);var e=this.e8_1.exec(j(t));return e!=null&&e.index===0&&this.e8_1.lastIndex===rt(t)};r(Rs).toString=function(){return this.e8_1.toString()};function S_(t,e){return Sa(t,"",e,u,u,u,$_)}function $_(t){return t.k8_1}function E_(t,e){return a0(t,e)}function Fa(t){this.l8_1=t}r(Fa).m8=function(t,e){return this.l8_1(t,e)};r(Fa).compare=function(t,e){return this.m8(t,e)};r(Fa).m2=function(){return this.l8_1};r(Fa).equals=function(t){var e;if(t!=null&&X(t,Un)){var n;t!=null&&X(t,Kn)?n=S(this.m2(),t.m2()):n=!1,e=n}else e=!1;return e};r(Fa).hashCode=function(){return G(this.m2())};function Ju(t,e,n){return n=n===u?!1:n,n?wo(t,0,e,0,e.length,n):t.startsWith(e,0)}function Cd(t,e,n){return n=n===u?!1:n,n?wo(t,t.length-e.length|0,e,0,e.length,n):t.endsWith(e)}function I_(t,e,n,i){return i=i===u?!1:i,i?wo(t,n,e,0,e.length,i):t.startsWith(e,n)}function wo(t,e,n,i,a,s){return s=s===u?!1:s,js(t,e,n,i,a,s)}function A_(t){return function(e){return e===t?"(this Collection)":re(e)}}function qn(){}r(qn).j1=function(t){var e;t:{var n;if(X(this,Vt)?n=this.l():n=!1,n){e=!1;break t}for(var i=this.h();i.i();){var a=i.j();if(S(a,t)){e=!0;break t}}e=!1}return e};r(qn).k1=function(t){var e;t:{var n;if(X(t,Vt)?n=t.l():n=!1,n){e=!0;break t}for(var i=t.h();i.i();){var a=i.j();if(!this.j1(a)){e=!1;break t}}e=!0}return e};r(qn).l=function(){return this.m()===0};r(qn).toString=function(){return Sa(this,", ","[","]",u,u,A_(this))};r(qn).toArray=function(){return Lh(this)};function xo(t,e,n){cn.call(this),this.n8_1=t,this.o8_1=e,this.p8_1=0,Ke.l3(this.o8_1,n,this.n8_1.m()),this.p8_1=n-this.o8_1|0}r(xo).k=function(t){return Ke.n3(t,this.p8_1),this.n8_1.k(this.o8_1+t|0)};r(xo).m=function(){return this.p8_1};function Ka(t){this.r8_1=t,this.q8_1=0}r(Ka).i=function(){return this.q8_1<this.r8_1.m()};r(Ka).j=function(){if(!this.i())throw Ee();var t=this.q8_1;return this.q8_1=t+1|0,this.r8_1.k(t)};function Qi(t,e){this.u8_1=t,Ka.call(this,t),Ke.c3(e,this.u8_1.m()),this.q8_1=e}r(Qi).d3=function(){return this.q8_1>0};r(Qi).e3=function(){return this.q8_1};r(Qi).f3=function(){if(!this.d3())throw Ee();return this.q8_1=this.q8_1-1|0,this.u8_1.k(this.q8_1)};r(Qi).g3=function(){return this.q8_1-1|0};function oi(){this.b3_1=2147483639}r(oi).n3=function(t,e){if(t<0||t>=e)throw Nn("index: "+t+", size: "+e)};r(oi).c3=function(t,e){if(t<0||t>e)throw Nn("index: "+t+", size: "+e)};r(oi).l3=function(t,e,n){if(t<0||e>n)throw Nn("fromIndex: "+t+", toIndex: "+e+", size: "+n);if(t>e)throw ie("fromIndex: "+t+" > toIndex: "+e)};r(oi).m4=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};r(oi).q3=function(t){for(var e=1,n=t.h();n.i();){var i=n.j(),a=Et(31,e),s=i==null?null:G(i);e=a+(s==null?0:s)|0}return e};r(oi).p3=function(t,e){if(t.m()!==e.m())return!1;for(var n=e.h(),i=t.h();i.i();){var a=i.j(),s=n.j();if(!S(a,s))return!1}return!0};var Ke;function cn(){qn.call(this)}r(cn).h=function(){return new Ka(this)};r(cn).l1=function(t){var e;t:{for(var n=0,i=this.h();i.i();){var a=i.j();if(S(a,t)){e=n;break t}n=n+1|0}e=-1}return e};r(cn).m1=function(t){var e;t:{for(var n=this.o1(this.m());n.d3();){var i=n.f3();if(S(i,t)){e=n.e3();break t}}e=-1}return e};r(cn).n1=function(){return new Qi(this,0)};r(cn).o1=function(t){return new Qi(this,t)};r(cn).p1=function(t,e){return new xo(this,t,e)};r(cn).equals=function(t){return t===this?!0:t!=null&&X(t,Fn)?Ke.p3(this,t):!1};r(cn).hashCode=function(){return Ke.q3(this)};function ko(){}r(ko).s3=function(t){for(var e=0,n=t.h();n.i();){var i=n.j(),a=e,s=i==null?null:G(i);e=a+(s==null?0:s)|0}return e};r(ko).r3=function(t,e){return t.m()!==e.m()?!1:t.k1(e)};var Yu;function N_(t){if(t.l())return[];for(var e=t.m(),n=fr(Array(e),null),i=t.h(),a=0;i.i();){var s=a;a=s+1|0,n[s]=i.j()}return n}function Sd(t){return t.length===0?Mt():Is(new Ji(t,!0))}function er(t){return t.m()-1|0}function Co(t){return t.length>0?Ru(t):Gi()}function q_(t,e,n,i){n=n===u?0:n,i=i===u?t.m():i,R_(t.m(),n,i);for(var a=n,s=i-1|0;a<=s;){var o=(a+s|0)>>>1|0,l=t.k(o),c=Ts(l,e);if(c<0)a=o+1|0;else if(c>0)s=o-1|0;else return o}return-(a+1|0)|0}function Gi(){return P_()}function Ji(t,e){this.v8_1=t,this.w8_1=e}r(Ji).m=function(){return this.v8_1.length};r(Ji).l=function(){return this.v8_1.length===0};r(Ji).h=function(){return ih(this.v8_1)};function R_(t,e,n){if(e>n)throw ie("fromIndex ("+e+") is greater than toIndex ("+n+").");if(e<0)throw Nn("fromIndex ("+e+") is less than zero.");if(n>t)throw Nn("toIndex ("+n+") is greater than size ("+t+").")}function de(){$l=this,this.x8_1=new pt(-1478467534,-1720727600)}r(de).equals=function(t){var e;return t!=null&&X(t,Fn)?e=t.l():e=!1,e};r(de).hashCode=function(){return 1};r(de).toString=function(){return"[]"};r(de).m=function(){return 0};r(de).l=function(){return!0};r(de).y8=function(t){return!1};r(de).j1=function(t){return!1};r(de).z8=function(t){return t.l()};r(de).k1=function(t){return this.z8(t)};r(de).k=function(t){throw Nn("Empty list doesn't contain element at index "+t+".")};r(de).a9=function(t){return-1};r(de).l1=function(t){return-1};r(de).b9=function(t){return-1};r(de).m1=function(t){return-1};r(de).h=function(){return Ua};r(de).n1=function(){return Ua};r(de).o1=function(t){if(t!==0)throw Nn("Index: "+t);return Ua};r(de).p1=function(t,e){if(t===0&&e===0)return this;throw Nn("fromIndex: "+t+", toIndex: "+e)};var $l;function P_(){return $l==null&&new de,$l}function li(){}r(li).i=function(){return!1};r(li).d3=function(){return!1};r(li).e3=function(){return 0};r(li).g3=function(){return-1};r(li).j=function(){throw Ee()};r(li).f3=function(){throw Ee()};var Ua;function T_(t){switch(t.m()){case 0:return Gi();case 1:return mo(t.k(0));default:return t}}function O_(t){return new Ji(t,!1)}function L_(){throw pd("Index overflow has happened.")}function j_(t){return t.length===0?Mt():Is(new Ji(t,!0))}function yi(t,e){this.v_1=t,this.w_1=e}r(yi).toString=function(){return"IndexedValue(index="+this.v_1+", value="+re(this.w_1)+")"};r(yi).hashCode=function(){var t=this.v_1;return t=Et(t,31)+(this.w_1==null?0:G(this.w_1))|0,t};r(yi).equals=function(t){if(this===t)return!0;if(!(t instanceof yi))return!1;var e=t instanceof yi?t:$();return!(this.v_1!==e.v_1||!S(this.w_1,e.w_1))};function io(t,e){var n;return X(t,Vt)?n=t.m():n=e,n}function Xu(t){var e;if(t.l())throw Hi("List is empty.");return e=t.s1(er(t)),e}function M_(t,e){return t.q(Ru(e))}function So(t,e){if(X(e,Vt))return t.q(e);for(var n=!1,i=e.h();i.i();){var a=i.j();t.f(a)&&(n=!0)}return n}function $o(){}r($o).j=function(){return this.c9()};function z_(t){return new Yi(t)}function ui(t,e){this.e9_1=t,this.d9_1=t.f9_1.o1(D_(t,e))}r(ui).i=function(){return this.d9_1.d3()};r(ui).d3=function(){return this.d9_1.i()};r(ui).j=function(){return this.d9_1.f3()};r(ui).e3=function(){return $d(this.e9_1,this.d9_1.g3())};r(ui).f3=function(){return this.d9_1.j()};r(ui).g3=function(){return $d(this.e9_1,this.d9_1.e3())};function Yi(t){cn.call(this),this.f9_1=t}r(Yi).m=function(){return this.f9_1.m()};r(Yi).k=function(t){return this.f9_1.k(B_(this,t))};r(Yi).h=function(){return this.o1(0)};r(Yi).n1=function(){return this.o1(0)};r(Yi).o1=function(t){return new ui(this,t)};function B_(t,e){var n;if(0<=e&&e<=er(t))n=er(t)-e|0;else throw Nn("Element index "+e+" must be in range ["+qu(0,er(t)).toString()+"].");return n}function D_(t,e){var n;if(0<=e&&e<=t.m())n=t.m()-e|0;else throw Nn("Position index "+e+" must be in range ["+qu(0,t.m()).toString()+"].");return n}function $d(t,e){return er(t)-e|0}function Xi(t){return new Zu(t)}function Dn(){}function F_(t){var e=new Lr;return e.k9_1=Ag(t,e,e),e}function K_(t){if(t.i())return t.j();throw Ee()}function Ed(t){switch(t.h9_1){case 4:return Ee();case 5:return An("Iterator has failed.");default:return An("Unexpected state of the iterator: "+t.h9_1)}}function Lr(){Dn.call(this),this.h9_1=0,this.i9_1=null,this.j9_1=null,this.k9_1=null}r(Lr).i=function(){for(;;){switch(this.h9_1){case 0:break;case 1:if(en(this.j9_1).i())return this.h9_1=2,!0;this.j9_1=null;break;case 4:return!1;case 3:case 2:return!0;default:throw Ed(this)}this.h9_1=5;var t=en(this.k9_1);this.k9_1=null;var e=ft;t.e6(e)}};r(Lr).j=function(){switch(this.h9_1){case 0:case 1:return K_(this);case 2:return this.h9_1=1,en(this.j9_1).j();case 3:this.h9_1=0;var t=this.i9_1,e=t==null||t!=null?t:$();return this.i9_1=null,e;default:throw Ed(this)}};r(Lr).g9=function(t,e){return this.i9_1=t,this.h9_1=3,this.k9_1=e,zr()};r(Lr).l9=function(t){c0(t);var e=t;e==null||e!=null||$(),this.h9_1=4};r(Lr).e6=function(t){return this.l9(t)};r(Lr).z5=function(){return Q_()};function Zu(t){this.m9_1=t}r(Zu).h=function(){return F_(this.m9_1)};function Zi(){return Oo}function Eo(t){this.o9_1=t,this.n9_1=t.p9_1.h()}r(Eo).j=function(){return this.o9_1.q9_1(this.n9_1.j())};r(Eo).i=function(){return this.n9_1.i()};function Io(t,e){this.p9_1=t,this.q9_1=e}r(Io).h=function(){return new Eo(this)};function Id(t){for(;t.r9_1.i();){var e=t.r9_1.j();if(t.u9_1.x9_1(e)===t.u9_1.w9_1)return t.t9_1=e,t.s9_1=1,ft}t.s9_1=0}function Ao(t){this.u9_1=t,this.r9_1=t.v9_1.h(),this.s9_1=-1,this.t9_1=null}r(Ao).j=function(){if(this.s9_1===-1&&Id(this),this.s9_1===0)throw Ee();var t=this.t9_1;return this.t9_1=null,this.s9_1=-1,t==null||t!=null?t:$()};r(Ao).i=function(){return this.s9_1===-1&&Id(this),this.s9_1===1};function tc(t,e,n){e=e===u?!0:e,this.v9_1=t,this.w9_1=e,this.x9_1=n}r(tc).h=function(){return new Ao(this)};function No(t){this.y9_1=t.aa_1.h(),this.z9_1=0}r(No).j=function(){var t=this.z9_1;return this.z9_1=t+1|0,new yi(Na(t),this.y9_1.j())};r(No).i=function(){return this.y9_1.i()};function ec(t){this.aa_1=t}r(ec).h=function(){return new No(this)};function ta(){}function qo(t){this.ba_1=t.ea_1,this.ca_1=t.da_1.h()}r(qo).j=function(){if(this.ba_1===0)throw Ee();return this.ba_1=this.ba_1-1|0,this.ca_1.j()};r(qo).i=function(){return this.ba_1>0&&this.ca_1.i()};function Ei(t,e){if(this.da_1=t,this.ea_1=e,!(this.ea_1>=0)){var n="count must be non-negative, but was "+this.ea_1+".";throw ie(j(n))}}r(Ei).u=function(t){return t>=this.ea_1?Zi():new ni(this.da_1,t,this.ea_1)};r(Ei).t=function(t){return t>=this.ea_1?this:new Ei(this.da_1,t)};r(Ei).h=function(){return new qo(this)};function Ad(t){if(t.fa_1.i()){var e=t.fa_1.j();if(t.ia_1.ka_1(e))return t.ga_1=1,t.ha_1=e,ft}t.ga_1=0}function Ro(t){this.ia_1=t,this.fa_1=t.ja_1.h(),this.ga_1=-1,this.ha_1=null}r(Ro).j=function(){if(this.ga_1===-1&&Ad(this),this.ga_1===0)throw Ee();var t=this.ha_1,e=t==null||t!=null?t:$();return this.ha_1=null,this.ga_1=-1,e};r(Ro).i=function(){return this.ga_1===-1&&Ad(this),this.ga_1===1};function nc(t,e){this.ja_1=t,this.ka_1=e}r(nc).h=function(){return new Ro(this)};function Nd(t){for(;t.ma_1>0&&t.la_1.i();)t.la_1.j(),t.ma_1=t.ma_1-1|0}function Po(t){this.la_1=t.na_1.h(),this.ma_1=t.oa_1}r(Po).j=function(){return Nd(this),this.la_1.j()};r(Po).i=function(){return Nd(this),this.la_1.i()};function bi(t,e){if(this.na_1=t,this.oa_1=e,!(this.oa_1>=0)){var n="count must be non-negative, but was "+this.oa_1+".";throw ie(j(n))}}r(bi).u=function(t){var e=this.oa_1+t|0;return e<0?new bi(this,t):new bi(this.na_1,e)};r(bi).t=function(t){var e=this.oa_1+t|0;return e<0?new Ei(this,t):new ni(this.na_1,this.oa_1,e)};r(bi).h=function(){return new Po(this)};function qd(t){for(;t.pa_1.i();){var e=t.pa_1.j();if(!t.sa_1.ua_1(e))return t.ra_1=e,t.qa_1=1,ft}t.qa_1=0}function To(t){this.sa_1=t,this.pa_1=t.ta_1.h(),this.qa_1=-1,this.ra_1=null}r(To).j=function(){if(this.qa_1===-1&&qd(this),this.qa_1===1){var t=this.ra_1,e=t==null||t!=null?t:$();return this.ra_1=null,this.qa_1=0,e}return this.pa_1.j()};r(To).i=function(){return this.qa_1===-1&&qd(this),this.qa_1===1||this.pa_1.i()};function rc(t,e){this.ta_1=t,this.ua_1=e}r(rc).h=function(){return new To(this)};function Ps(){}r(Ps).h=function(){return Ua};r(Ps).u=function(t){return Oo};r(Ps).t=function(t){return Oo};var Oo;function Rd(t){for(;t.wa_1<t.xa_1.za_1&&t.va_1.i();)t.va_1.j(),t.wa_1=t.wa_1+1|0}function Pd(t){return t.ab_1-t.za_1|0}function Lo(t){this.xa_1=t,this.va_1=t.ya_1.h(),this.wa_1=0}r(Lo).i=function(){return Rd(this),this.wa_1<this.xa_1.ab_1&&this.va_1.i()};r(Lo).j=function(){if(Rd(this),this.wa_1>=this.xa_1.ab_1)throw Ee();return this.wa_1=this.wa_1+1|0,this.va_1.j()};function ni(t,e,n){if(this.ya_1=t,this.za_1=e,this.ab_1=n,!(this.za_1>=0)){var i="startIndex should be non-negative, but is "+this.za_1;throw ie(j(i))}if(!(this.ab_1>=0)){var a="endIndex should be non-negative, but is "+this.ab_1;throw ie(j(a))}if(!(this.ab_1>=this.za_1)){var s="endIndex should be not less than startIndex, but was "+this.ab_1+" < "+this.za_1;throw ie(j(s))}}r(ni).u=function(t){return t>=Pd(this)?Zi():new ni(this.ya_1,this.za_1+t|0,this.ab_1)};r(ni).t=function(t){return t>=Pd(this)?this:new ni(this.ya_1,this.za_1,this.za_1+t|0)};r(ni).h=function(){return new Lo(this)};function ic(){return H_()}function U_(t){return Ip(t,fg(t.length))}function sr(){El=this,this.bb_1=new pt(1993859828,793161749)}r(sr).equals=function(t){var e;return t!=null&&X(t,Bi)?e=t.l():e=!1,e};r(sr).hashCode=function(){return 0};r(sr).toString=function(){return"[]"};r(sr).m=function(){return 0};r(sr).l=function(){return!0};r(sr).z8=function(t){return t.l()};r(sr).k1=function(t){return this.z8(t)};r(sr).h=function(){return Ua};var El;function H_(){return El==null&&new sr,El}function W_(t){switch(t.m()){case 0:return ic();case 1:return jh(t.h().j());default:return t}}function Ts(t,e){return t===e?0:t==null?-1:e==null?1:hh(t!=null&&Dm(t)?t:$(),e)}function Ha(){}function Td(){}var Od;function V_(){}function Os(){Il=this,this.cb_1=new pt(0,0)}r(Os).f6=function(t){return null};r(Os).hashCode=function(){return 0};r(Os).toString=function(){return"EmptyCoroutineContext"};var Il;function Q_(){return Il==null&&new Os,Il}function zr(){return J_()}var Ld,ff;function G_(){if(ff)return ft;ff=!0,Ld=new Ws("COROUTINE_SUSPENDED",0),new Ws("UNDECIDED",1),new Ws("RESUMED",2)}function Ws(t,e){Tr.call(this,t,e)}function J_(){return G_(),Ld}function Y_(t,e,n){var i;if(n>0)i=t>=e?e:e-hf(e,t,n)|0;else if(n<0)i=t<=e?e:e+hf(t,e,-n|0)|0;else throw ie("Step is zero.");return i}function hf(t,e,n){return al(al(t,n)-al(e,n)|0,n)}function al(t,e){var n=t%e|0;return n>=0?n:n+e|0}function jd(){Al=this,this.db_1=new ri(1,0)}var Al;function X_(){return Al==null&&new jd,Al}function ri(t,e){X_(),ir.call(this,t,e,1)}r(ri).l=function(){return this.hb_1>this.ib_1};r(ri).equals=function(t){var e;return t instanceof ri?e=this.l()&&t.l()||this.hb_1===t.hb_1&&this.ib_1===t.ib_1:e=!1,e};r(ri).hashCode=function(){return this.l()?-1:Et(31,this.hb_1)+this.ib_1|0};r(ri).toString=function(){return""+this.hb_1+".."+this.ib_1};function jo(t,e,n){$o.call(this),this.kb_1=n,this.lb_1=e,this.mb_1=this.kb_1>0?t<=e:t>=e,this.nb_1=this.mb_1?t:this.lb_1}r(jo).i=function(){return this.mb_1};r(jo).c9=function(){var t=this.nb_1;if(t===this.lb_1){if(!this.mb_1)throw Ee();this.mb_1=!1}else this.nb_1=this.nb_1+this.kb_1|0;return t};function ac(){}r(ac).s=function(t,e,n){return new ir(t,e,n)};var Md;function ir(t,e,n){if(n===0)throw ie("Step must be non-zero.");if(n===-2147483648)throw ie("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.hb_1=t,this.ib_1=Y_(t,e,n),this.jb_1=n}r(ir).h=function(){return new jo(this.hb_1,this.ib_1,this.jb_1)};r(ir).l=function(){return this.jb_1>0?this.hb_1>this.ib_1:this.hb_1<this.ib_1};r(ir).equals=function(t){var e;return t instanceof ir?e=this.l()&&t.l()||this.hb_1===t.hb_1&&this.ib_1===t.ib_1&&this.jb_1===t.jb_1:e=!1,e};r(ir).hashCode=function(){return this.l()?-1:Et(31,Et(31,this.hb_1)+this.ib_1|0)+this.jb_1|0};r(ir).toString=function(){return this.jb_1>0?""+this.hb_1+".."+this.ib_1+" step "+this.jb_1:""+this.hb_1+" downTo "+this.ib_1+" step "+(-this.jb_1|0)};function zd(t,e,n){n!=null?t.e(n(e)):e==null||fe(e)?t.e(e):e instanceof P?t.m5(e.x_1):t.e(j(e))}function Bd(t,e,n){if(n=n===u?!1:n,t===e)return!0;if(!n)return!1;var i=uf(t),a=uf(e),s;if(i===a)s=!0;else{var o=nr(i).toLowerCase(),l=Tt(o,0),c=nr(a).toLowerCase();s=l===Tt(c,0)}return s}function sc(t){return oc(t,10)}function oc(t,e){xd(e);var n=t.length;if(n===0)return null;var i,a,s,o=Tt(t,0);if(Xe(o,48)<0){if(n===1)return null;if(i=1,o===45)a=!0,s=-2147483648;else if(o===43)a=!1,s=-2147483647;else return null}else i=0,a=!1,s=-2147483647;var l=-59652323,c=l,f=0,h=i;if(h<n)do{var d=h;h=h+1|0;var v=w_(Tt(t,d),e);if(v<0)return null;if(f<c)if(c===l){if(c=s/e|0,f<c)return null}else return null;if(f=Et(f,e),f<(s+v|0))return null;f=f-v|0}while(h<n);return a?f:-f|0}function Z_(t){throw dd("Invalid number format: '"+t+"'")}function t0(t,e,n){return n=n===u?32:n,j(n0(fe(t)?t:$(),e,n))}function ea(t,e,n){return n=n===u?!1:n,r0(t,e,u,n)>=0}function Ls(t,e,n,i){i=i===u?!1:i;var a,s;return i?s=!1:s=typeof t=="string",s?a=typeof e=="string":a=!1,a?I_(t,e,n):js(t,n,e,0,rt(e),i)}function lc(t,e,n){n=n===u?!1:n;var i,a;return n?a=!1:a=typeof t=="string",a?i=typeof e=="string":i=!1,i?Ju(t,e):js(t,0,e,0,rt(e),n)}function uc(t,e,n){n=n===u?!1:n;var i;return typeof e=="string"?i=Nl(t,e,u,n)>=0:i=Dd(t,e,0,rt(t),n)>=0,i}function Mo(t,e,n){n=n===u?!1:n;var i,a;return n?a=!1:a=typeof t=="string",a?i=typeof e=="string":i=!1,i?Cd(t,e):js(t,rt(t)-rt(e)|0,e,0,rt(e),n)}function Nl(t,e,n,i){n=n===u?0:n,i=i===u?!1:i;var a,s;return i?s=!0:s=typeof t!="string",s?a=Dd(t,e,n,rt(t),i):a=t.indexOf(e,n),a}function e0(t){var e=0,n=rt(t)-1|0,i=!1;t:for(;e<=n;){var a=i?n:e,s=Tt(t,a),o=wd(s);if(!i)o?e=e+1|0:i=!0;else if(o)n=n-1|0;else break t}return In(t,e,n+1|0)}function n0(t,e,n){if(n=n===u?32:n,e<=rt(t))return In(t,0,rt(t));var i=Gu(e),a=1,s=e-rt(t)|0;if(a<=s)do{var o=a;a=a+1|0,i.m5(n)}while(o!==s);return i.e(t),i}function r0(t,e,n,i){n=n===u?0:n,i=i===u?!1:i;var a,s;if(i?s=!0:s=typeof t!="string",s){var o=tm([e]);a=i0(t,o,n,i)}else{var l=nr(e);a=t.indexOf(l,n)}return a}function js(t,e,n,i,a,s){if(i<0||e<0||e>(rt(t)-a|0)||i>(rt(n)-a|0))return!1;var o=0;if(o<a)do{var l=o;if(o=o+1|0,!Bd(Tt(t,e+l|0),Tt(n,i+l|0),s))return!1}while(o<a);return!0}function Dd(t,e,n,i,a,s){s=s===u?!1:s;var o=s?Tp(Zs(n,Fd(t)),to(i,0)):qu(to(n,0),Zs(i,rt(t))),l;if(typeof t=="string"?l=typeof e=="string":l=!1,l){var c=o.hb_1,f=o.ib_1,h=o.jb_1;if(h>0&&c<=f||h<0&&f<=c)do{var d=c;if(c=c+h|0,wo(e,0,t,d,e.length,a))return d}while(d!==f)}else{var v=o.hb_1,g=o.ib_1,p=o.jb_1;if(p>0&&v<=g||p<0&&g<=v)do{var b=v;if(v=v+p|0,js(e,0,t,b,rt(e),a))return b}while(b!==g)}return-1}function i0(t,e,n,i){n=n===u?0:n,i=i===u?!1:i;var a;if(!i&&e.length===1?a=typeof t=="string":a=!1,a){var s=$p(e),o=nr(s);return t.indexOf(o,n)}var l=to(n,0),c=Fd(t);if(l<=c)do{var f=l;l=l+1|0;var h=Tt(t,f),d;t:{for(var v=0,g=e.length;v<g;){var p=e[v];if(v=v+1|0,Bd(p,h,i)){d=!0;break t}}d=!1}if(d)return f}while(f!==c);return-1}function Fd(t){return rt(t)-1|0}function a0(t,e){var n;if(t!=null&&typeof t=="string"?n=e!=null?typeof e=="string":!1:n=!1,n)return S(t,e);if(t===e)return!0;if(t==null||e==null||rt(t)!==rt(e))return!1;var i=0,a=rt(t);if(i<a)do{var s=i;if(i=i+1|0,Tt(t,s)!==Tt(e,s))return!1}while(i<a);return!0}function Ms(t){this.ob_1=t,this.pb_1=zo}r(Ms).u1=function(){this.pb_1===zo&&(this.pb_1=en(this.ob_1)(),this.ob_1=null);var t=this.pb_1;return t==null||t!=null?t:$()};r(Ms).qb=function(){return this.pb_1!==zo};r(Ms).toString=function(){return this.qb()?re(this.u1()):"Lazy value not initialized yet."};function Kd(){}var zo;function s0(t){var e=t;return e instanceof jr}function o0(t){var e;return t instanceof jr?e=t.rb_1:e=null,e}function l0(){}function jr(t){this.rb_1=t}r(jr).equals=function(t){var e;return t instanceof jr?e=S(this.rb_1,t.rb_1):e=!1,e};r(jr).hashCode=function(){return G(this.rb_1)};r(jr).toString=function(){return"Failure("+this.rb_1.toString()+")"};function u0(t){return new jr(t)}function c0(t){var e=t;if(e instanceof jr)throw t.rb_1}function ql(t){t=t===u?"An operation is not implemented.":t,jg(t,this),J(this,ql)}function pr(t,e){this.sb_1=t,this.tb_1=e}r(pr).toString=function(){return"("+re(this.sb_1)+", "+re(this.tb_1)+")"};r(pr).ub=function(){return this.sb_1};r(pr).vb=function(){return this.tb_1};r(pr).hashCode=function(){var t=this.sb_1==null?0:G(this.sb_1);return t=Et(t,31)+(this.tb_1==null?0:G(this.tb_1))|0,t};r(pr).equals=function(t){if(this===t)return!0;if(!(t instanceof pr))return!1;var e=t instanceof pr?t:$();return!(!S(this.sb_1,e.sb_1)||!S(this.tb_1,e.tb_1))};function df(t,e){return new pr(t,e)}r(Ce).asJsReadonlyArrayView=yu;r(Fe).o4=wp;r(cn).asJsReadonlyArrayView=yu;r(de).asJsReadonlyArrayView=yu;ft=new Tu;Hs=null;As=new Xh;td=new Ra;Ke=new oi;Yu=new ko;Ua=new li;Oo=new Ps;Od=new Td;Md=new ac;zo=new Kd;var Y=Math.imul;y(Rn,"GkdException",u,ar);y(Ve,"SyntaxException",u,Rn);y(ee,"TypeException",u,Rn);y(vn,"UnknownIdentifierException",u,ee);y(pn,"UnknownMemberException",u,ee);y(on,"UnknownIdentifierMethodException",u,ee);y(mn,"UnknownIdentifierMethodParamsException",u,ee);y(ln,"UnknownMemberMethodException",u,ee);y(gn,"UnknownMemberMethodParamsException",u,ee);y(ye,"MismatchParamTypeException",u,ee);y(Le,"MismatchExpressionTypeException",u,ee);y(_n,"MismatchOperatorTypeException",u,ee);y(Qe,"FastQuery");y(yn,"Id",u,Qe);y(bn,"Vid",u,Qe);y(wn,"Text",u,Qe);$e(cc);y(tn,"MatchOption",tn);y(wt,"QueryContext");y(xe,"QueryResult");y(Ne,"UnitResult",u,xe);y(le,"AndResult",u,xe);y(ue,"OrResult",u,xe);y(be,"NotResult",u,xe);$e(zs);y(Ln,"Selector");$e(fc);Di(Ii,he,u,[1]);Di(Ai,he,u,[1]);Di(Ni,he,u,[1]);Di(qi,he,u,[1]);Di(Ri,he,u,[1]);y(xt,"Transform");y(fn,"PrimitiveType");it(wi,"BooleanType",u,fn);it(xi,"IntType",u,fn);it(ki,"StringType",u,fn);y(Ge,"ObjectType",u,fn);y(tt,"MethodInfo");y(st,"PropInfo");y(Xt,"TypeInfo");y(na,"ConnectExpression");y(ra,"sam$kotlin_Comparator$0",u,u,[Un,Kn]);Di(Pi,he,u,[1]);$e(ps);y(se,"ConnectOperator");it(Wr,"BeforeBrother",u,se);it(Vr,"AfterBrother",u,se);it(Qr,"Ancestor",u,se);it(Gr,"Child",u,se);it(Jr,"Descendant",u,se);it(Yr,"Previous",u,se);y(we,"ConnectSegment",we);y(je,"ConnectWrapper");y(zt,"PolynomialExpression",zt,na);y(Me,"TupleExpression",u,na);y(vt,"AstNode");y(mr,"AstContext",mr);function f0(){return is(this.wm(),this.yl())}function h0(){for(;ke(this.jn(),` \r
257
- `);){var t=this.yl();this.in(t+1|0)}}function d0(){for(;ea(` \r
258
- `,Tt(this.wm(),this.yl()-1|0));){var t=this.yl();this.in(t-1|0)}}function v0(){var t=this.yl();qe(this,"0123456789","digit");var e=this.jn();if(S(e==null?null:new P(e),new P(48))){var n=this.yl();this.in(n+1|0);var i=this.jn(),a,s=i;return(s==null?null:new P(s))==null?a=null:a=ro(i),a===!0&&(this.in(t),Ct(this,"no zero start int")),0}else{var o=this.yl();this.in(o+1|0)}t:for(;;){var l=this.jn(),c,f=l;if((f==null?null:new P(f))==null?c=null:c=ro(l),c!==!0)break t;var h=this.yl();this.in(h+1|0)}var d=this.wm(),v=this.yl(),g=j(In(d,t,v)),p=sc(g);return p==null&&(this.in(t),Ct(this,"legal range int")),p}function p0(){var t=this.yl(),e=this.jn();if(S(e==null?null:new P(e),new P(45))){var n=this.yl();this.in(n+1|0)}qe(this,"0123456789","digit");var i=this.jn();if(S(i==null?null:new P(i),new P(48))){var a=this.yl();this.in(a+1|0);var s=this.jn(),o,l=s;return(l==null?null:new P(l))==null?o=null:o=ro(s),o===!0&&(this.in(t),Ct(this,"no zero start int")),0}else{var c=this.yl();this.in(c+1|0)}t:for(;;){var f=this.jn(),h,d=f;if((d==null?null:new P(d))==null?h=null:h=ro(f),h!==!0)break t;var v=this.yl();this.in(v+1|0)}var g=this.wm(),p=this.yl(),b=j(In(g,t,p)),w=sc(b);return w==null&&(this.in(t),Ct(this,"legal range int")),w}function m0(){var t=qe(this,"`'\""),e=this.yl();this.in(e+1|0);var n=bo();t:for(;;){var i=this.jn(),a,s=i;(s==null?null:new P(s))==null?Ct(this,nr(t)):a=i;var o=a,l=tr(o);if(0<=l&&l<=31)Ct(this,"no control character");else if(o===t){var c=this.yl();this.in(c+1|0);break t}else if(o===92){var f=this.yl();this.in(f+1|0);var h=this.jn(),d,v=h;if(S(v==null?null:new P(v),new P(92)))d=92;else{var g=h;if(S(g==null?null:new P(g),new P(39)))d=39;else{var p=h;if(S(p==null?null:new P(p),new P(34)))d=34;else{var b=h;if(S(b==null?null:new P(b),new P(96)))d=96;else{var w=h;if(S(w==null?null:new P(w),new P(110)))d=10;else{var k=h;if(S(k==null?null:new P(k),new P(114)))d=13;else{var E=h;if(S(E==null?null:new P(E),new P(116)))d=9;else{var N=h;if(S(N==null?null:new P(N),new P(98)))d=8;else{var x=h;if(S(x==null?null:new P(x),new P(120))){var m=0;if(m<2)do{m=m+1|0;var C=this.yl();this.in(C+1|0),qe(this,"abcdefABCDEF0123456789","hex digit")}while(m<2);var q=this.wm(),I=(this.yl()+1|0)-2|0,F=this.yl()+1|0,B=j(In(q,I,F));d=ml(cf(B,16))}else{var K=h;if(S(K==null?null:new P(K),new P(117))){var lt=0;if(lt<4)do{lt=lt+1|0;var pe=this.yl();this.in(pe+1|0),qe(this,"abcdefABCDEF0123456789","hex digit")}while(lt<4);var Ot=this.wm(),Dt=(this.yl()+1|0)-4|0,Gt=this.yl()+1|0,Lt=j(In(Ot,Dt,Gt));d=ml(cf(Lt,16))}else Ct(this,"escape char")}}}}}}}}}var oe=d;n.m5(oe);var at=this.yl();this.in(at+1|0)}else{n.m5(o);var Ue=this.yl();this.in(Ue+1|0)}}return n.toString()}function g0(t){return Ls(this.wm(),t,this.yl())&&!ke(is(this.wm(),this.yl()+t.length|0),"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789")?(this.in(this.yl()+t.length|0),!0):!1}function _0(t){ze(this,40);var e=this.yl();this.in(e+1|0),this.kn();var n=t();this.kn(),ze(this,41);var i=this.yl();return this.in(i+1|0),n}Se(dc,"BaseParser");function y0(){var t=_c().allSubClasses,e;t:{for(var n=t.h();n.i();){var i=n.j();if(Ls(this.wm(),i.key,this.yl())){e=i;break t}}e=null}var a=e;return a==null&&Ct(this,"logical operator"),this.in(this.yl()+a.key.length|0),a}function b0(){var t=vc().allSubClasses,e;t:{for(var n=0,i=t.length;n<i;){var a=t[n];if(n=n+1|0,Ls(this.wm(),a.key,this.yl())){e=a;break t}}e=null}var s=e;return s==null&&Ct(this,"compare operator"),this.in(this.yl()+s.key.length|0),s}function w0(){var t=this.yl();qe(this,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_","VAR_START_CHAR");var e=this.yl();for(this.in(e+1|0);ke(this.jn(),"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789");){var n=this.yl();this.in(n+1|0)}var i=this.wm(),a=this.yl(),s=j(In(i,t,a));switch(s){case"null":case"false":case"true":this.in(t),Ct(this,"no keyword variable");break}return s}function x0(t){}function k0(t){}function C0(t){}function S0(){if(qe(this,"(-0123456789`'\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_","VAL_START_CHAR"),this.xm("null"))return av();if(this.xm("false"))return new Je(!1);if(this.xm("true"))return new Je(!0);if(ke(this.jn(),"-0123456789"))return new Be(this.em());if(ke(this.jn(),"`'\""))return new Pt(this.nm());var t=null;t:for(;;){this.kn();var e=this.jn(),n,i=e;if((i==null?null:new P(i))==null)break t;n=e;var a=n;if(ke(a,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_")){t!=null&&Ct(this,"Variable End");var s=new Ht(this.am());this.cn(s),t=s}else if(a===46){t instanceof De||Ct(this,"Variable End");var o=this.yl();this.in(o+1|0),this.kn();var l=new Rt(t,this.am());this.dn(l),t=l}else if(a===40){var c=this.yl();if(this.in(c+1|0),this.kn(),t!=null){t instanceof Zt&&Ct(this,"Variable");for(var f=Mt();ke(this.jn(),"(-0123456789`'\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_");){f.f(this.pm());var h=this.jn();if(S(h==null?null:new P(h),new P(44))){var d=this.yl();this.in(d+1|0),this.kn()}}this.kn(),ze(this,41);var v=this.yl();this.in(v+1|0);var g=new Zt(t,f);this.en(g),t=g}else{var p=this.pm();this.kn(),ze(this,41);var b=this.yl();return this.in(b+1|0),p}}else break t}return t==null&&Ct(this,"Variable"),this.ln(),t}function $0(){var t=this.pm();this.kn();var e=this.dm();this.kn();var n=this.yl(),i=this.pm(),a,s;if(i instanceof Pt?s=S(e,Do())||S(e,gc()):s=!1,s){var o;try{o=Ab(i.sn_1)}catch(h){var l;if(h instanceof ar)this.in(n),Ct(this,"valid regex string");else throw h;o=l}var c=o;a=i.copy$default(u,c)}else a=i;var f=a;return new _t(t,e,f)}function E0(){ze(this,33);var t=this.yl();this.in(t+1|0),ze(this,40);var e=this.yl();this.in(e+1|0),this.kn();var n=new Re(this.cm());this.kn(),ze(this,41);var i=this.yl();return this.in(i+1|0),n}function I0(t){}function A0(){qe(this,"!((-0123456789`'\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_","EXP_START_CHAR");var t=Mt();t:for(;;){var e=ss(t);e instanceof Pn&&qe(this,"!((-0123456789`'\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_","EXP_START_CHAR");var n=this.jn(),i=n;if((i==null?null:new P(i))==null)if(t.l())Ct(this,"EXP_START_CHAR");else break t;var a,s=ss(t);if(s instanceof an){var o;if(ea("&|",n))o=this.gm();else break t;a=o}else{var l=n;if(S(l==null?null:new P(l),new P(40)))a=this.zl(Yy(this));else{var c=n;S(c==null?null:new P(c),new P(33))?a=this.hm():a=this.bm()}}var f=a;t.f(f),this.kn()}if(this.ln(),t.m()===1){var h=un(t);return h instanceof an?h:$()}for(var d=0;d<t.m();){var v=t.k(d);if(v===yc()){var g=t.k(d-1|0),p=g instanceof an?g:$(),b=t.k(d+1|0),w=b instanceof an?b:$(),k=d,E=new bt(p,v,w);this.an(E),t.r1(k,E),t.s1(d-1|0),t.s1((d+1|0)-1|0)}else d=d+1|0}for(;t.m()>1;){var N=t.k(0),x=N instanceof an?N:$(),m=t.k(1),C=m instanceof Pn?m:$(),q=t.k(2),I=q instanceof an?q:$(),F=new bt(x,C,I);this.an(F),t.r1(1,F),t.s1(0),t.s1(1)}var B=un(t);return B instanceof an?B:$()}function N0(){var t=this.yl(),e=this.jn();if(S(e==null?null:new P(e),new P(42))){var n=this.yl();return this.in(n+1|0),"*"}qe(this,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_","VAR_START_CHAR");var i=this.yl();this.in(i+1|0);t:for(;;){var a=this.jn(),s,o=a;if((o==null?null:new P(o))==null)break t;s=a;var l=s;if(l===46){var c=this.yl();this.in(c+1|0),qe(this,"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_","VAR_START_CHAR");var f=this.yl();this.in(f+1|0)}else if(ea("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789",l)){var h=this.yl();this.in(h+1|0)}else break t}var d=this.wm(),v=this.yl();return j(In(d,t,v))}function q0(){ze(this,91);var t=this.yl();this.in(t+1|0),this.kn();var e=new xn(this.cm());this.kn(),ze(this,93);var n=this.yl();return this.in(n+1|0),e}function R0(){var t=this.jn(),e=S(t==null?null:new P(t),new P(64));if(e){var n=this.yl();this.in(n+1|0)}var i,a=this.jn();S(a==null?null:new P(a),new P(91))?i="":i=this.jm();var s=i;rt(s)===0&&ze(this,91);var o=Mt();t:for(;;){var l=this.jn();if(!S(l==null?null:new P(l),new P(91)))break t;o.f(this.lm())}return new ae(e,s,o)}Se(Yd,"PropertyParser",u,u,[dc]);function P0(){var t=hc().allSubClasses,e;t:{for(var n=t.h();n.i();){var i=n.j();if(Ls(this.wm(),i.key,this.yl())){e=i;break t}}e=null}var a=e;return a==null&&Ct(this,"connect operator"),this.in(this.yl()+a.key.length|0),a}function T0(){qe(this,"+-n0123456789","MONOMIAL_START_CHAR");var t=this.jn(),e,n=t;if(S(n==null?null:new P(n),new P(43))){var i=this.yl();this.in(i+1|0),e=1}else{var a=t;if(S(a==null?null:new P(a),new P(45))){var s=this.yl();this.in(s+1|0),e=-1}else e=1}var o=e;this.kn(),qe(this,"1234567890n","Monomial");var l;ke(this.jn(),"0123456789")?l=this.fm():l=1;var c=Y(o,l),f,h=this.jn();if(S(h==null?null:new P(h),new P(110))){var d=this.yl();this.in(d+1|0),f=1}else f=0;var v=f;return new Ci(c,v)}function O0(){ze(this,40);var t=this.yl();this.in(t+1|0),this.kn();var e=Mt();for(qe(this,"123456789","POSITIVE_DIGIT_CHAR");ke(this.jn(),"123456789");){var n=this.yl(),i=this.fm();e.l()||xa(e)>=i&&(this.in(n),Ct(this,"increasing int")),e.f(i),this.kn();var a=this.jn();if(S(a==null?null:new P(a),new P(44))){var s=this.yl();this.in(s+1|0),this.kn()}}ze(this,41);var o=this.yl();return this.in(o+1|0),new Me(e)}function L0(){qe(this,"(n0123456789","CONNECT_EXP_START_CHAR");var t=this.yl(),e=Mt(),n=this.jn();if(S(n==null?null:new P(n),new P(40))){var i=this.yl();this.in(i+1|0),this.kn();t:for(;;){e.l()||qe(this,"+-","+-"),e.m()>=2&&Ct(this,"only support tow monomial");var a=this.yl(),s=this.tm(),o;e:{var l;if(X(e,Vt)?l=e.l():l=!1,l){o=!1;break e}for(var c=e.h();c.i();){var f=c.j();if(f.nn_1===s.nn_1){o=!0;break e}}o=!1}if(o&&(this.in(a),Ct(this,"duplicated monomial power")),e.f(s),this.kn(),!ke(this.jn(),"+-"))break t}ze(this,41);var h=this.yl();this.in(h+1|0)}else e.f(this.tm());try{var d;t:{for(var v=e.h();v.i();){var g=v.j();if(g.nn_1===1){d=g;break t}}d=null}var p=d,b=p==null?null:p.mn_1,w=b==null?0:b,k;t:{for(var E=e.h();E.i();){var N=E.j();if(N.nn_1===0){k=N;break t}}k=null}var x=k,m=x==null?null:x.mn_1;return new zt(w,m==null?0:m)}catch(C){if(C instanceof Ve)this.in(t),Ct(this,"valid an+b polynomial");else throw C}}function j0(){var t;return Jy(this)?t=this.vm():t=this.um(),t}function M0(){var t=this.rm(),e;ke(this.jn(),"(n0123456789")?e=this.qm():e=new zt;var n=e;return new we(t,n)}Se(Jd,"ConnectParser",u,u,[dc]);y(M,"SelectorParser",u,u,[Yd,Jd]);y(dt,"AstParser",u,M);y(Ci,"Monomial");y(an,"Expression");y(_t,"BinaryExpression",u,an);y(ia,"sam$kotlin_Comparator$0",u,u,[Un,Kn]);$e(ms);y(Z,"CompareOperator");it(gr,"Equal",u,Z);it(_r,"NotEqual",u,Z);it(yr,"Start",u,Z);it(br,"NotStart",u,Z);it(wr,"Include",u,Z);it(xr,"NotInclude",u,Z);it(kr,"End",u,Z);it(Cr,"NotEnd",u,Z);it(Sr,"Less",u,Z);it($r,"LessEqual",u,Z);it(Er,"More",u,Z);it(Ir,"MoreEqual",u,Z);it(Ar,"Matches",u,Z);it(Nr,"NotMatches",u,Z);y(bt,"LogicalExpression",u,an);y(aa,"sam$kotlin_Comparator$0",u,u,[Un,Kn]);$e(gs);y(Pn,"LogicalOperator");it(Xr,"AndOperator",u,Pn);it(Zr,"OrOperator",u,Pn);y(Re,"NotExpression",u,an);y(ae,"PropertySegment");y(xn,"PropertyUnit");y(Ut,"PropertyWrapper");y(ve,"ValueExpression");y(De,"Variable",u,ve);y(Ht,"Identifier",u,De);y(Rt,"MemberExpression",u,De);y(Zt,"CallExpression",u,De);y(nn,"LiteralExpression",u,ve);it(qr,"NullLiteral",u,nn);y(Je,"BooleanLiteral",u,nn);y(Be,"IntLiteral",u,nn);y(Pt,"StringLiteral",u,nn);y(Ae,"SelectorExpression");y(St,"LogicalSelectorExpression",u,Ae);y(ce,"NotSelectorExpression",u,Ae);y(sa,"sam$kotlin_Comparator$0",u,u,[Un,Kn]);$e(_s);y(Tn,"SelectorLogicalOperator");it(Rr,"AndOperator",u,Tn);it(Pr,"OrOperator",u,Tn);Di(Ti,he,u,[1]);y(Wt,"UnitSelectorExpression",u,Ae);y(hi,"DefaultTypeInfo");function Rn(t){Fu(t,this),J(this,Rn),this.wb_1=t}r(Rn).t6=function(){return this.wb_1};r(Rn).xb=function(){return this.t6()};function Ve(t){Rn.call(this,t),J(this,Ve),this.zb_1=t}r(Ve).t6=function(){return this.zb_1};r(Ve).ub=function(){return this.zb_1};r(Ve).ac=function(t){return new Ve(t)};r(Ve).copy=function(t,e){return t=t===u?this.zb_1:t,this.ac(t)};r(Ve).toString=function(){return"SyntaxException(message="+this.zb_1+")"};r(Ve).hashCode=function(){return Cn(this.zb_1)};r(Ve).equals=function(t){if(this===t)return!0;if(!(t instanceof Ve))return!1;var e=t instanceof Ve?t:$();return this.zb_1===e.zb_1};function ee(t){Rn.call(this,t),J(this,ee),this.cc_1=t}r(ee).t6=function(){return this.cc_1};function vn(t){ee.call(this,"Unknown Identifier: "+t.fc()),J(this,vn),this.value=t}r(vn).u1=function(){return this.value};r(vn).ub=function(){return this.value};r(vn).ic=function(t){return new vn(t)};r(vn).copy=function(t,e){return t=t===u?this.value:t,this.ic(t)};r(vn).toString=function(){return"UnknownIdentifierException(value="+this.value.toString()+")"};r(vn).hashCode=function(){return this.value.hashCode()};r(vn).equals=function(t){if(this===t)return!0;if(!(t instanceof vn))return!1;var e=t instanceof vn?t:$();return!!this.value.equals(e.value)};function pn(t){ee.call(this,"Unknown Member: "+t.fc()),J(this,pn),this.value=t}r(pn).u1=function(){return this.value};r(pn).ub=function(){return this.value};r(pn).lc=function(t){return new pn(t)};r(pn).copy=function(t,e){return t=t===u?this.value:t,this.lc(t)};r(pn).toString=function(){return"UnknownMemberException(value="+this.value.toString()+")"};r(pn).hashCode=function(){return this.value.hashCode()};r(pn).equals=function(t){if(this===t)return!0;if(!(t instanceof pn))return!1;var e=t instanceof pn?t:$();return!!this.value.equals(e.value)};function on(t){ee.call(this,"Unknown Identifier Method: "+t.fc()),J(this,on),this.value=t}r(on).u1=function(){return this.value};r(on).ub=function(){return this.value};r(on).ic=function(t){return new on(t)};r(on).copy=function(t,e){return t=t===u?this.value:t,this.ic(t)};r(on).toString=function(){return"UnknownIdentifierMethodException(value="+this.value.toString()+")"};r(on).hashCode=function(){return this.value.hashCode()};r(on).equals=function(t){if(this===t)return!0;if(!(t instanceof on))return!1;var e=t instanceof on?t:$();return!!this.value.equals(e.value)};function mn(t){ee.call(this,"Unknown Identifier Method Params: "+t.fc()),J(this,mn),this.value=t}r(mn).u1=function(){return this.value};r(mn).ub=function(){return this.value};r(mn).qc=function(t){return new mn(t)};r(mn).copy=function(t,e){return t=t===u?this.value:t,this.qc(t)};r(mn).toString=function(){return"UnknownIdentifierMethodParamsException(value="+this.value.toString()+")"};r(mn).hashCode=function(){return this.value.hashCode()};r(mn).equals=function(t){if(this===t)return!0;if(!(t instanceof mn))return!1;var e=t instanceof mn?t:$();return!!this.value.equals(e.value)};function ln(t){ee.call(this,"Unknown Member Method: "+t.fc()),J(this,ln),this.value=t}r(ln).u1=function(){return this.value};r(ln).ub=function(){return this.value};r(ln).lc=function(t){return new ln(t)};r(ln).copy=function(t,e){return t=t===u?this.value:t,this.lc(t)};r(ln).toString=function(){return"UnknownMemberMethodException(value="+this.value.toString()+")"};r(ln).hashCode=function(){return this.value.hashCode()};r(ln).equals=function(t){if(this===t)return!0;if(!(t instanceof ln))return!1;var e=t instanceof ln?t:$();return!!this.value.equals(e.value)};function gn(t){ee.call(this,"Unknown Member Method Params: "+t.fc()),J(this,gn),this.value=t}r(gn).u1=function(){return this.value};r(gn).ub=function(){return this.value};r(gn).qc=function(t){return new gn(t)};r(gn).copy=function(t,e){return t=t===u?this.value:t,this.qc(t)};r(gn).toString=function(){return"UnknownMemberMethodParamsException(value="+this.value.toString()+")"};r(gn).hashCode=function(){return this.value.hashCode()};r(gn).equals=function(t){if(this===t)return!0;if(!(t instanceof gn))return!1;var e=t instanceof gn?t:$();return!!this.value.equals(e.value)};function ye(t,e,n){ee.call(this,"Mismatch Param Type: "+e.fc()+" should be "+n.key),J(this,ye),this.call=t,this.argument=e,this.type=n}r(ye).xc=function(){return this.call};r(ye).yc=function(){return this.argument};r(ye).zc=function(){return this.type};r(ye).ub=function(){return this.call};r(ye).vb=function(){return this.argument};r(ye).ad=function(){return this.type};r(ye).bd=function(t,e,n){return new ye(t,e,n)};r(ye).copy=function(t,e,n,i){return t=t===u?this.call:t,e=e===u?this.argument:e,n=n===u?this.type:n,this.bd(t,e,n)};r(ye).toString=function(){return"MismatchParamTypeException(call="+this.call.toString()+", argument="+j(this.argument)+", type="+j(this.type)+")"};r(ye).hashCode=function(){var t=this.call.hashCode();return t=Y(t,31)+G(this.argument)|0,t=Y(t,31)+G(this.type)|0,t};r(ye).equals=function(t){if(this===t)return!0;if(!(t instanceof ye))return!1;var e=t instanceof ye?t:$();return!(!this.call.equals(e.call)||!S(this.argument,e.argument)||!S(this.type,e.type))};function Le(t,e,n){ee.call(this,"Mismatch Expression Type: "+t.fc()),J(this,Le),this.exception=t,this.leftType=e,this.rightType=n}r(Le).ed=function(){return this.exception};r(Le).fd=function(){return this.leftType};r(Le).gd=function(){return this.rightType};r(Le).ub=function(){return this.exception};r(Le).vb=function(){return this.leftType};r(Le).ad=function(){return this.rightType};r(Le).hd=function(t,e,n){return new Le(t,e,n)};r(Le).copy=function(t,e,n,i){return t=t===u?this.exception:t,e=e===u?this.leftType:e,n=n===u?this.rightType:n,this.hd(t,e,n)};r(Le).toString=function(){return"MismatchExpressionTypeException(exception="+this.exception.toString()+", leftType="+j(this.leftType)+", rightType="+j(this.rightType)+")"};r(Le).hashCode=function(){var t=this.exception.hashCode();return t=Y(t,31)+G(this.leftType)|0,t=Y(t,31)+G(this.rightType)|0,t};r(Le).equals=function(t){if(this===t)return!0;if(!(t instanceof Le))return!1;var e=t instanceof Le?t:$();return!(!this.exception.equals(e.exception)||!S(this.leftType,e.leftType)||!S(this.rightType,e.rightType))};function _n(t){ee.call(this,"Mismatch Operator Type: "+t.fc()),J(this,_n),this.exception=t}r(_n).ed=function(){return this.exception};r(_n).ub=function(){return this.exception};r(_n).kd=function(t){return new _n(t)};r(_n).copy=function(t,e){return t=t===u?this.exception:t,this.kd(t)};r(_n).toString=function(){return"MismatchOperatorTypeException(exception="+this.exception.toString()+")"};r(_n).hashCode=function(){return this.exception.hashCode()};r(_n).equals=function(t){if(this===t)return!0;if(!(t instanceof _n))return!1;var e=t instanceof _n?t:$();return!!this.exception.equals(e.exception)};function yn(t){Qe.call(this,t),this.md_1=t}r(yn).u1=function(){return this.md_1};r(yn).ub=function(){return this.md_1};r(yn).ac=function(t){return new yn(t)};r(yn).copy=function(t,e){return t=t===u?this.md_1:t,this.ac(t)};r(yn).toString=function(){return"Id(value="+this.md_1+")"};r(yn).hashCode=function(){return Cn(this.md_1)};r(yn).equals=function(t){if(this===t)return!0;if(!(t instanceof yn))return!1;var e=t instanceof yn?t:$();return this.md_1===e.md_1};function bn(t){Qe.call(this,t),this.pd_1=t}r(bn).u1=function(){return this.pd_1};r(bn).ub=function(){return this.pd_1};r(bn).ac=function(t){return new bn(t)};r(bn).copy=function(t,e){return t=t===u?this.pd_1:t,this.ac(t)};r(bn).toString=function(){return"Vid(value="+this.pd_1+")"};r(bn).hashCode=function(){return Cn(this.pd_1)};r(bn).equals=function(t){if(this===t)return!0;if(!(t instanceof bn))return!1;var e=t instanceof bn?t:$();return this.pd_1===e.pd_1};function wn(t){Qe.call(this,t),this.rd_1=t}r(wn).u1=function(){return this.rd_1};r(wn).ub=function(){return this.rd_1};r(wn).ac=function(t){return new wn(t)};r(wn).copy=function(t,e){return t=t===u?this.rd_1:t,this.ac(t)};r(wn).toString=function(){return"Text(value="+this.rd_1+")"};r(wn).hashCode=function(){return Cn(this.rd_1)};r(wn).equals=function(t){if(this===t)return!0;if(!(t instanceof wn))return!1;var e=t instanceof wn?t:$();return this.rd_1===e.rd_1};function Qe(t){this.nd_1=t}r(Qe).u1=function(){return this.nd_1};r(Qe).fc=function(){return this.value};function cc(){Rl=this,this.default=new tn}r(cc).sd=function(){return this.default};var Rl;function ci(){return Rl==null&&new cc,Rl}function tn(t){ci(),t=t===u?!1:t,this.fastQuery=t}r(tn).td=function(){return this.fastQuery};r(tn).ub=function(){return this.fastQuery};r(tn).ud=function(t){return new tn(t)};r(tn).copy=function(t,e){return t=t===u?this.fastQuery:t,this.ud(t)};r(tn).toString=function(){return"MatchOption(fastQuery="+this.fastQuery+")"};r(tn).hashCode=function(){return Es(this.fastQuery)};r(tn).equals=function(t){if(this===t)return!0;if(!(t instanceof tn))return!1;var e=t instanceof tn?t:$();return this.fastQuery===e.fastQuery};function wt(t,e,n){e=e===u?null:e,n=n===u?!0:n,this.current=t,this.prev=e,this.matched=n}r(wt).vd=function(){return this.current};r(wt).wd=function(){return this.prev};r(wt).xd=function(){return this.matched};r(wt).yd=function(){for(var t=this;t.prev!=null;)t=t.prev;return t};r(wt).getPrev=function(t){if(t<0)return null;var e=this.prev,n;if(e==null)return null;n=e;var i=n,a=0;if(a<t)do{a=a+1|0;var s=i.prev,o;if(s==null)return null;o=s,i=o}while(a<t);return i};r(wt).get=function(t){if(t===0)return this;var e=this.getPrev(t-1|0),n;if(e==null)throw Ku();return n=e,n};r(wt).toList=function(){for(var t=Sd([this.current]),e=this.prev;e!=null;)t.f(e.current),e=e.prev;return t};r(wt).toArray=function(){var t=this.toList(),e=X(t,Fn)?t:$(),n=Hn(e);return Aa(n)?n:$()};r(wt).next=function(t){return new wt(t,this)};r(wt).mismatch=function(){return this.copy(u,u,!1)};r(wt).ub=function(){return this.current};r(wt).vb=function(){return this.prev};r(wt).ad=function(){return this.matched};r(wt).zd=function(t,e,n){return new wt(t,e,n)};r(wt).copy=function(t,e,n,i){return t=t===u?this.current:t,e=e===u?this.prev:e,n=n===u?this.matched:n,this.zd(t,e,n)};r(wt).toString=function(){return"QueryContext(current="+re(this.current)+", prev="+re(this.prev)+", matched="+this.matched+")"};r(wt).hashCode=function(){var t=this.current==null?0:G(this.current);return t=Y(t,31)+(this.prev==null?0:this.prev.hashCode())|0,t=Y(t,31)+Es(this.matched)|0,t};r(wt).equals=function(t){if(this===t)return!0;if(!(t instanceof wt))return!1;var e=t instanceof wt?t:$();return!(!S(this.current,e.current)||!S(this.prev,e.prev)||this.matched!==e.matched)};function Ne(t,e,n){xe.call(this),this.ae_1=t,this.be_1=e,this.ce_1=n}r(Ne).z5=function(){return this.ae_1};r(Ne).de=function(){return this.be_1};r(Ne).ee=function(){return this.ce_1};r(Ne).xd=function(){return this.ae_1.matched};r(Ne).ub=function(){return this.ae_1};r(Ne).vb=function(){return this.be_1};r(Ne).ad=function(){return this.ce_1};r(Ne).fe=function(t,e,n){return new Ne(t,e,n)};r(Ne).copy=function(t,e,n,i){return t=t===u?this.ae_1:t,e=e===u?this.be_1:e,n=n===u?this.ce_1:n,this.fe(t,e,n)};r(Ne).toString=function(){return"UnitResult(context="+this.ae_1.toString()+", expression="+this.be_1.toString()+", targetIndex="+this.ce_1+")"};r(Ne).hashCode=function(){var t=this.ae_1.hashCode();return t=Y(t,31)+this.be_1.hashCode()|0,t=Y(t,31)+this.ce_1|0,t};r(Ne).equals=function(t){if(this===t)return!0;if(!(t instanceof Ne))return!1;var e=t instanceof Ne?t:$();return!(!this.ae_1.equals(e.ae_1)||!this.be_1.equals(e.be_1)||this.ce_1!==e.ce_1)};function le(t,e,n){n=n===u?null:n,xe.call(this),this.he_1=t,this.left=e,this.right=n}r(le).de=function(){return this.he_1};r(le).ie=function(){return this.left};r(le).je=function(){return this.right};r(le).xd=function(){var t;if(this.left.matched){var e=this.right;t=(e==null?null:e.matched)===!0}else t=!1;return t};r(le).z5=function(){var t=this.right,e=t==null?null:t.context,n;if(e==null){var i="No matched result";throw An(j(i))}else n=e;return n};r(le).ee=function(){var t=this.right,e=t==null?null:t.targetIndex,n;if(e==null){var i="No matched result";throw An(j(i))}else n=e;return n};r(le).ub=function(){return this.he_1};r(le).vb=function(){return this.left};r(le).ad=function(){return this.right};r(le).ke=function(t,e,n){return new le(t,e,n)};r(le).copy=function(t,e,n,i){return t=t===u?this.he_1:t,e=e===u?this.left:e,n=n===u?this.right:n,this.ke(t,e,n)};r(le).toString=function(){return"AndResult(expression="+this.he_1.toString()+", left="+j(this.left)+", right="+re(this.right)+")"};r(le).hashCode=function(){var t=this.he_1.hashCode();return t=Y(t,31)+G(this.left)|0,t=Y(t,31)+(this.right==null?0:G(this.right))|0,t};r(le).equals=function(t){if(this===t)return!0;if(!(t instanceof le))return!1;var e=t instanceof le?t:$();return!(!this.he_1.equals(e.he_1)||!S(this.left,e.left)||!S(this.right,e.right))};function ue(t,e,n){n=n===u?null:n,xe.call(this),this.le_1=t,this.left=e,this.right=n}r(ue).de=function(){return this.le_1};r(ue).ie=function(){return this.left};r(ue).je=function(){return this.right};r(ue).xd=function(){var t;if(this.left.matched)t=!0;else{var e=this.right;t=(e==null?null:e.matched)===!0}return t};r(ue).z5=function(){var t=this.left.matched?this.left:this.right,e=t==null?null:t.context,n;if(e==null){var i="No matched result";throw An(j(i))}else n=e;return n};r(ue).ee=function(){var t=this.left.matched?this.left:this.right,e=t==null?null:t.targetIndex,n;if(e==null){var i="No matched result";throw An(j(i))}else n=e;return n};r(ue).ub=function(){return this.le_1};r(ue).vb=function(){return this.left};r(ue).ad=function(){return this.right};r(ue).ke=function(t,e,n){return new ue(t,e,n)};r(ue).copy=function(t,e,n,i){return t=t===u?this.le_1:t,e=e===u?this.left:e,n=n===u?this.right:n,this.ke(t,e,n)};r(ue).toString=function(){return"OrResult(expression="+this.le_1.toString()+", left="+j(this.left)+", right="+re(this.right)+")"};r(ue).hashCode=function(){var t=this.le_1.hashCode();return t=Y(t,31)+G(this.left)|0,t=Y(t,31)+(this.right==null?0:G(this.right))|0,t};r(ue).equals=function(t){if(this===t)return!0;if(!(t instanceof ue))return!1;var e=t instanceof ue?t:$();return!(!this.le_1.equals(e.le_1)||!S(this.left,e.left)||!S(this.right,e.right))};function be(t,e,n){xe.call(this),this.me_1=t,this.originalContext=e,this.result=n}r(be).de=function(){return this.me_1};r(be).yd=function(){return this.originalContext};r(be).ne=function(){return this.result};r(be).xd=function(){return!this.result.matched};r(be).z5=function(){return this.originalContext};r(be).ee=function(){return 0};r(be).ub=function(){return this.me_1};r(be).vb=function(){return this.originalContext};r(be).ad=function(){return this.result};r(be).oe=function(t,e,n){return new be(t,e,n)};r(be).copy=function(t,e,n,i){return t=t===u?this.me_1:t,e=e===u?this.originalContext:e,n=n===u?this.result:n,this.oe(t,e,n)};r(be).toString=function(){return"NotResult(expression="+this.me_1.toString()+", originalContext="+this.originalContext.toString()+", result="+j(this.result)+")"};r(be).hashCode=function(){var t=this.me_1.hashCode();return t=Y(t,31)+this.originalContext.hashCode()|0,t=Y(t,31)+G(this.result)|0,t};r(be).equals=function(t){if(this===t)return!0;if(!(t instanceof be))return!1;var e=t instanceof be?t:$();return!(!this.me_1.equals(e.me_1)||!this.originalContext.equals(e.originalContext)||!S(this.result,e.result))};function xe(){}r(xe).ge=function(){return this.context.get(this.targetIndex).current};function zs(){}r(zs).parse=function(t){return new M(t).re()};r(zs).parseOrNull=function(t){var e;try{e=new M(t).re()}catch(i){var n;if(i instanceof ar)n=null;else throw i;e=n}return e};r(zs).parseAst=function(t){return new dt(t).we()};var Ud;function z0(){return Ud}function Ln(t){this.expression=t,this.fastQueryList=Np(this.expression.fastQueryList),this.isMatchRoot=this.expression.isMatchRoot}r(Ln).de=function(){return this.expression};r(Ln).toString=function(){return this.expression.fc()};r(Ln).matchContext=function(t,e,n){return this.expression.matchContext(new wt(t),e,n)};r(Ln).match=function(t,e,n){return this.expression.match(new wt(t),e,n)};r(Ln).xe=function(){return this.fastQueryList};r(Ln).ye=function(){return this.isMatchRoot};r(Ln).isSlow=function(t){return this.expression.isSlow(t)};r(Ln).checkType=function(t){return this.expression.checkType(t)};function B0(t){return function(e,n,i){return t(e,n,i)}}function D0(t){return function(e){return xp(t(e))}}function fc(){}r(fc).multiplatformBuild=function(t,e,n,i,a){var s=B0(e);return new xt(t,s,n,D0(i),a)};var Hd;function F0(){return Hd}function K0(t,e,n){return null}function U0(t){return function(e){for(var n=t(e);n!=null;)n=t(n);return n}}function Ii(t,e,n){this.hf_1=t,this.if_1=e,he.call(this,n)}r(Ii).nf=function(t,e){var n=this.of(t,e);return n.v5_1=ft,n.w5_1=null,n.b6()};r(Ii).s6=function(t,e){return this.nf(t instanceof Dn?t:$(),e)};r(Ii).b6=function(){var t=this.v5_1;t:do try{var e=this.t5_1;switch(e){case 0:if(this.u5_1=4,this.kf_1=Su(this.hf_1(this.if_1)),this.kf_1.l())return ft;Pu(this.kf_1);var n=this;n.lf_1=Mt(),this.t5_1=1;continue t;case 1:if(this.mf_1=this.kf_1.s1(er(this.kf_1)),this.t5_1=2,t=this.jf_1.g9(this.mf_1,this),t===zr())return t;continue t;case 2:for(var i=this.hf_1(this.mf_1).h();i.i();){var a=i.j();this.lf_1.f(a)}if(!this.lf_1.l()){var s=this.lf_1.m()-1|0;if(0<=s)do{var o=s;s=s+-1|0,this.kf_1.f(this.lf_1.k(o))}while(0<=s);this.lf_1.q1()}if(!this.kf_1.l()){this.t5_1=1;continue t}this.t5_1=3;continue t;case 3:return ft;case 4:throw this.w5_1}}catch(c){var l=c;if(this.u5_1===4)throw l;this.t5_1=this.u5_1,this.w5_1=l}while(!0)};r(Ii).of=function(t,e){var n=new Ii(this.hf_1,this.if_1,e);return n.jf_1=t,n};function H0(t,e,n){var i=new Ii(t,e,n),a=function(s,o){return i.nf(s,o)};return a.$arity=1,a}function W0(t){return function(e){return Xi(H0(t,e,null))}}function V0(t){return function(e,n){return t.checkOffset(e)}}function Q0(t){return function(e,n){var i=t(e),a;n.maxOffset!=null?a=Yf(i,en(n.maxOffset)+1|0):a=i;var s=a;return $u(s,V0(n))}}function Ai(t,e,n,i){this.xf_1=t,this.yf_1=e,this.zf_1=n,he.call(this,i)}r(Ai).nf=function(t,e){var n=this.of(t,e);return n.v5_1=ft,n.w5_1=null,n.b6()};r(Ai).s6=function(t,e){return this.nf(t instanceof Dn?t:$(),e)};r(Ai).b6=function(){var t=this.v5_1;t:do try{var e=this.t5_1;switch(e){case 0:this.u5_1=5;var n=this,i=this.xf_1(this.yf_1),a;if(i==null)return ft;a=i,n.bg_1=a,this.cg_1=0,this.t5_1=1;continue t;case 1:if(this.bg_1==null){this.t5_1=4;continue t}var s=this;s.dg_1=this.bg_1,this.eg_1=this.dg_1;var o=this;if(o.fg_1=this.eg_1,this.gg_1=this.fg_1,this.zf_1.checkOffset(this.cg_1)){if(this.t5_1=2,t=this.ag_1.g9(this.gg_1,this),t===zr())return t;continue t}else{this.t5_1=3;continue t}case 2:this.t5_1=3;continue t;case 3:this.cg_1=this.cg_1+1|0;var l=this.zf_1.maxOffset;if(l!=null){if(this.cg_1>l)return ft}this.bg_1=this.xf_1(this.gg_1),this.t5_1=1;continue t;case 4:return ft;case 5:throw this.w5_1}}catch(f){var c=f;if(this.u5_1===5)throw c;this.t5_1=this.u5_1,this.w5_1=c}while(!0)};r(Ai).of=function(t,e){var n=new Ai(this.xf_1,this.yf_1,this.zf_1,e);return n.ag_1=t,n};function G0(t,e,n,i){var a=new Ai(t,e,n,i),s=function(o,l){return a.nf(o,l)};return s.$arity=1,s}function J0(t){return function(e,n){return Xi(G0(t,e,n,null))}}function Y0(t){return function(e){return!S(e,t)}}function X0(t){return function(e,n){return t.checkOffset(e)}}function Z0(t,e){return function(n,i){var a=t(n),s;if(a!=null){var o=e(a),l=Su(Op(o,Y0(n)));Pu(l);var c=qp(l);s=$u(c,X0(i))}else s=Zi();return s}}function ty(t){return function(e){return!S(e,t)}}function ey(t){return function(e,n){return t.checkOffset(e)}}function ny(t,e){return function(n,i){var a=t(n),s;if(a!=null){var o=e(a),l=Lp(jp(o,ty(n)),1),c;i.maxOffset!=null?c=Yf(l,en(i.maxOffset)+1|0):c=l;var f=c;s=$u(f,ey(i))}else s=Zi();return s}}function Ni(t,e,n,i){this.pg_1=t,this.qg_1=e,this.rg_1=n,he.call(this,i)}r(Ni).nf=function(t,e){var n=this.of(t,e);return n.v5_1=ft,n.w5_1=null,n.b6()};r(Ni).s6=function(t,e){return this.nf(t instanceof Dn?t:$(),e)};r(Ni).b6=function(){var t=this.v5_1;t:do try{var e=this.t5_1;switch(e){case 0:if(this.u5_1=5,this.tg_1=Su(this.pg_1(this.qg_1)),this.tg_1.l())return ft;Pu(this.tg_1);var n=this;n.ug_1=Mt(),this.vg_1=0,this.t5_1=1;continue t;case 1:if(this.wg_1=this.tg_1.s1(er(this.tg_1)),this.rg_1.checkOffset(this.vg_1)){if(this.t5_1=2,t=this.sg_1.g9(this.wg_1,this),t===zr())return t;continue t}else{this.t5_1=3;continue t}case 2:this.t5_1=3;continue t;case 3:this.vg_1=this.vg_1+1|0;var i=this.rg_1.maxOffset;if(i!=null){if(this.vg_1>i)return ft}for(var a=this.pg_1(this.wg_1).h();a.i();){var s=a.j();this.ug_1.f(s)}if(!this.ug_1.l()){var o=this.ug_1.m()-1|0;if(0<=o)do{var l=o;o=o+-1|0,this.tg_1.f(this.ug_1.k(l))}while(0<=o);this.ug_1.q1()}if(!this.tg_1.l()){this.t5_1=1;continue t}this.t5_1=4;continue t;case 4:return ft;case 5:throw this.w5_1}}catch(f){var c=f;if(this.u5_1===5)throw c;this.t5_1=this.u5_1,this.w5_1=c}while(!0)};r(Ni).of=function(t,e){var n=new Ni(this.pg_1,this.qg_1,this.rg_1,e);return n.sg_1=t,n};function ry(t,e,n,i){var a=new Ni(t,e,n,i),s=function(o,l){return a.nf(o,l)};return s.$arity=1,s}function iy(t){return function(e,n){return Xi(ry(t,e,n,null))}}function ay(t,e){return Zi()}function qi(t,e,n,i,a){this.fh_1=t,this.gh_1=e,this.hh_1=n,this.ih_1=i,he.call(this,a)}r(qi).nf=function(t,e){var n=this.of(t,e);return n.v5_1=ft,n.w5_1=null,n.b6()};r(qi).s6=function(t,e){return this.nf(t instanceof Dn?t:$(),e)};r(qi).b6=function(){var t=this.v5_1;t:do try{var e=this.t5_1;switch(e){case 0:this.u5_1=5;var n=this,i,a;this.fh_1.fastQuery?a=!this.gh_1.fastQueryList.l():a=!1,a?i=this.hh_1.traverseFastQueryDescendants(this.ih_1,this.gh_1.fastQueryList):i=this.hh_1.getDescendants(this.ih_1),n.kh_1=i,this.lh_1=this.kh_1,this.mh_1=this.lh_1.h(),this.t5_1=1;continue t;case 1:if(!this.mh_1.i()){this.t5_1=4;continue t}this.nh_1=this.mh_1.j();var s=this;if(s.oh_1=this.nh_1,this.ph_1=this.oh_1,this.qh_1=this.gh_1.match(this.ph_1,this.hh_1,this.fh_1),this.qh_1==null){this.rh_1=null,this.t5_1=3;continue t}else{var o=this;o.sh_1=this.qh_1,this.th_1=this.sh_1;var l=this;if(l.uh_1=this.th_1,this.vh_1=this.uh_1,this.t5_1=2,t=this.jh_1.g9(this.vh_1,this),t===zr())return t;continue t}case 2:var c=this;c.rh_1=ft,this.t5_1=3;continue t;case 3:this.t5_1=1;continue t;case 4:return ft;case 5:throw this.w5_1}}catch(h){var f=h;if(this.u5_1===5)throw f;this.t5_1=this.u5_1,this.w5_1=f}while(!0)};r(qi).of=function(t,e){var n=new qi(this.fh_1,this.gh_1,this.hh_1,this.ih_1,e);return n.jh_1=t,n};function sy(t,e,n,i,a){var s=new qi(t,e,n,i,a),o=function(l,c){return s.nf(l,c)};return o.$arity=1,o}function Ri(t,e,n,i,a){this.ei_1=t,this.fi_1=e,this.gi_1=n,this.hi_1=i,he.call(this,a)}r(Ri).ti=function(t,e){var n=this.ui(t,e);return n.v5_1=ft,n.w5_1=null,n.b6()};r(Ri).s6=function(t,e){return this.ti(t instanceof Dn?t:$(),e)};r(Ri).b6=function(){var t=this.v5_1;t:do try{var e=this.t5_1;switch(e){case 0:this.u5_1=5;var n=this;n.ji_1=this.ei_1.getDescendants(this.fi_1),this.ki_1=this.ji_1,this.li_1=this.ki_1.h(),this.t5_1=1;continue t;case 1:if(!this.li_1.i()){this.t5_1=4;continue t}this.mi_1=this.li_1.j();var i=this;i.ni_1=this.mi_1,this.oi_1=this.ni_1;var a=this;a.pi_1=this.gi_1.matchContext(this.oi_1,this.ei_1,this.hi_1),this.qi_1=this.pi_1;var s=this;if(s.ri_1=this.qi_1,this.si_1=this.ri_1,this.si_1.context.matched){if(this.t5_1=2,t=this.ii_1.g9(this.si_1,this),t===zr())return t;continue t}else{this.t5_1=3;continue t}case 2:this.t5_1=3;continue t;case 3:this.t5_1=1;continue t;case 4:return ft;case 5:throw this.w5_1}}catch(l){var o=l;if(this.u5_1===5)throw o;this.t5_1=this.u5_1,this.w5_1=o}while(!0)};r(Ri).ui=function(t,e){var n=new Ri(this.ei_1,this.fi_1,this.gi_1,this.hi_1,e);return n.ii_1=t,n};function oy(t,e,n,i,a){var s=new Ri(t,e,n,i,a),o=function(l,c){return s.ti(l,c)};return o.$arity=1,o}function xt(t,e,n,i,a,s,o,l,c,f,h,d,v){var g;e===u?g=K0:g=e,e=g;var p;s===u?p=U0(a):p=s,s=p;var b;o===u?b=W0(i):b=o,o=b;var w;l===u?w=Q0(i):w=l,l=w;var k;c===u?k=J0(a):k=c,c=k;var E;f===u?E=Z0(a,i):E=f,f=E;var N;h===u?N=ny(a,i):N=h,h=N;var x;d===u?x=iy(i):x=d,d=x;var m;v===u?m=ay:m=v,v=m,this.getAttr=t,this.getInvoke=e,this.getName=n,this.getChildren=i,this.getParent=a,this.getRoot=s,this.getDescendants=o,this.traverseChildren=l,this.traverseAncestors=c,this.traverseBeforeBrothers=f,this.traverseAfterBrothers=h,this.traverseDescendants=d,this.traverseFastQueryDescendants=v}r(xt).vi=function(){return this.getAttr};r(xt).wi=function(){return this.getInvoke};r(xt).xi=function(){return this.getName};r(xt).yi=function(){return this.getChildren};r(xt).zi=function(){return this.getParent};r(xt).aj=function(){return this.getRoot};r(xt).bj=function(){return this.getDescendants};r(xt).cj=function(){return this.traverseChildren};r(xt).dj=function(){return this.traverseAncestors};r(xt).ej=function(){return this.traverseBeforeBrothers};r(xt).fj=function(){return this.traverseAfterBrothers};r(xt).gj=function(){return this.traverseDescendants};r(xt).hj=function(){return this.traverseFastQueryDescendants};r(xt).ij=function(t,e,n){return Xi(sy(n,e,this,t,null))};r(xt).querySelectorAll$default=function(t,e,n,i){return n=n===u?ci().default:n,i===u?this.ij(t,e,n):i.ij.call(this,t,e,n)};r(xt).jj=function(t,e,n){return Xf(this.ij(t,e,n))};r(xt).querySelector=function(t,e,n,i){return n=n===u?ci().default:n,this.jj(t,e,n)};r(xt).kj=function(t,e,n){return Xi(oy(this,t,e,n,null))};r(xt).querySelectorAllContext$default=function(t,e,n,i){return n=n===u?ci().default:n,i===u?this.kj(t,e,n):i.kj.call(this,t,e,n)};r(xt).lj=function(t,e,n){return Xf(this.kj(t,e,n))};r(xt).querySelectorContext=function(t,e,n,i){return n=n===u?ci().default:n,this.lj(t,e,n)};r(xt).mj=function(t,e,n){var i=Eu(this.ij(t,e,n)),a=X(i,Fn)?i:$(),s=Hn(a);return Aa(s)?s:$()};r(xt).querySelectorAllArray=function(t,e,n,i){return n=n===u?ci().default:n,this.mj(t,e,n)};r(xt).nj=function(t,e,n){var i=Eu(this.kj(t,e,n));return Hn(i)};r(xt).querySelectorAllContextArray=function(t,e,n,i){return n=n===u?ci().default:n,this.nj(t,e,n)};function wi(){Pl=this,fn.call(this,"boolean")}r(wi).toString=function(){return"BooleanType"};r(wi).hashCode=function(){return 1452179029};r(wi).equals=function(t){return this===t?!0:t instanceof wi?(t instanceof wi||$(),!0):!1};var Pl;function hs(){return Pl==null&&new wi,Pl}function xi(){Tl=this,fn.call(this,"int")}r(xi).toString=function(){return"IntType"};r(xi).hashCode=function(){return-1601449956};r(xi).equals=function(t){return this===t?!0:t instanceof xi?(t instanceof xi||$(),!0):!1};var Tl;function ds(){return Tl==null&&new xi,Tl}function ki(){Ol=this,fn.call(this,"string")}r(ki).toString=function(){return"StringType"};r(ki).hashCode=function(){return 1719560632};r(ki).equals=function(t){return this===t?!0:t instanceof ki?(t instanceof ki||$(),!0):!1};var Ol;function vs(){return Ol==null&&new ki,Ol}function Ge(t){fn.call(this,"object"),this.name=t}r(Ge).oj=function(){return this.name};r(Ge).ub=function(){return this.name};r(Ge).ac=function(t){return new Ge(t)};r(Ge).copy=function(t,e){return t=t===u?this.name:t,this.ac(t)};r(Ge).toString=function(){return"ObjectType(name="+this.name+")"};r(Ge).hashCode=function(){return Cn(this.name)};r(Ge).equals=function(t){if(this===t)return!0;if(!(t instanceof Ge))return!1;var e=t instanceof Ge?t:$();return this.name===e.name};function fn(t){this.key=t}r(fn).t1=function(){return this.key};function ly(t){return t.fc()}function tt(t,e,n){var i;n===u?i=[]:i=n,n=i,this.name=t,this.returnType=e,this.params=n}r(tt).oj=function(){return this.name};r(tt).pj=function(){return this.returnType};r(tt).qj=function(){return this.params};r(tt).fc=function(){return this.name+"("+Wf(this.params,", ",u,u,u,u,ly)+"): "+this.returnType.fc()};r(tt).equals=function(t){return this===t?!0:!(t==null||!Or(this).equals(Or(t))||(t instanceof tt||$(),this.name!==t.name)||!this.returnType.equals(t.returnType)||!gl(this.params,t.params))};r(tt).hashCode=function(){var t=Cn(this.name);return t=Y(31,t)+this.returnType.hashCode()|0,t=Y(31,t)+_l(this.params)|0,t};r(tt).ub=function(){return this.name};r(tt).vb=function(){return this.returnType};r(tt).ad=function(){return this.params};r(tt).rj=function(t,e,n){return new tt(t,e,n)};r(tt).copy=function(t,e,n,i){return t=t===u?this.name:t,e=e===u?this.returnType:e,n=n===u?this.params:n,this.rj(t,e,n)};r(tt).toString=function(){return"MethodInfo(name="+this.name+", returnType="+this.returnType.toString()+", params="+j(this.params)+")"};function st(t,e){this.name=t,this.type=e}r(st).oj=function(){return this.name};r(st).zc=function(){return this.type};r(st).ub=function(){return this.name};r(st).vb=function(){return this.type};r(st).sj=function(t,e){return new st(t,e)};r(st).copy=function(t,e,n){return t=t===u?this.name:t,e=e===u?this.type:e,this.sj(t,e)};r(st).toString=function(){return"PropInfo(name="+this.name+", type="+this.type.toString()+")"};r(st).hashCode=function(){var t=Cn(this.name);return t=Y(t,31)+this.type.hashCode()|0,t};r(st).equals=function(t){if(this===t)return!0;if(!(t instanceof st))return!1;var e=t instanceof st?t:$();return!(this.name!==e.name||!this.type.equals(e.type))};function Xt(t,e,n){var i;e===u?i=[]:i=e,e=i;var a;n===u?a=[]:a=n,n=a,this.type=t,this.props=e,this.methods=n}r(Xt).zc=function(){return this.type};r(Xt).tj=function(t){this.props=t};r(Xt).uj=function(){return this.props};r(Xt).vj=function(t){this.methods=t};r(Xt).wj=function(){return this.methods};r(Xt).fc=function(){var t,e=this.type;return e instanceof Ge?t=this.type.name:t=this.type.key,t};r(Xt).equals=function(t){return this===t?!0:!(t==null||!Or(this).equals(Or(t))||(t instanceof Xt||$(),!S(this.type,t.type))||!gl(this.props,t.props)||!gl(this.methods,t.methods))};r(Xt).hashCode=function(){var t=G(this.type);return t=Y(31,t)+_l(this.props)|0,t=Y(31,t)+_l(this.methods)|0,t};r(Xt).ub=function(){return this.type};r(Xt).vb=function(){return this.props};r(Xt).ad=function(){return this.methods};r(Xt).xj=function(t,e,n){return new Xt(t,e,n)};r(Xt).copy=function(t,e,n,i){return t=t===u?this.type:t,e=e===u?this.props:e,n=n===u?this.methods:n,this.xj(t,e,n)};r(Xt).toString=function(){return"TypeInfo(type="+j(this.type)+", props="+j(this.props)+", methods="+j(this.methods)+")"};function na(){}function ra(t){this.ak_1=t}r(ra).m8=function(t,e){return this.ak_1(t,e)};r(ra).compare=function(t,e){return this.m8(t,e)};r(ra).m2=function(){return this.ak_1};r(ra).equals=function(t){var e;if(t!=null&&X(t,Un)){var n;t!=null&&X(t,Kn)?n=S(this.m2(),t.m2()):n=!1,e=n}else e=!1;return e};r(ra).hashCode=function(){return G(this.m2())};function uy(){var t=Co([Wd(),Vd(),ao(),Qd(),Bo(),Gd()]),e=cy,n=new ra(e);return co(t,n)}function cy(t,e){var n=-t.key.length|0,i=-e.key.length|0;return Ts(n,i)}function Pi(t,e,n){this.jk_1=t,this.kk_1=e,he.call(this,n)}r(Pi).nf=function(t,e){var n=this.of(t,e);return n.v5_1=ft,n.w5_1=null,n.b6()};r(Pi).s6=function(t,e){return this.nf(t instanceof Dn?t:$(),e)};r(Pi).b6=function(){var t=this.v5_1;t:do try{var e=this.t5_1;switch(e){case 0:this.u5_1=6,this.mk_1=this.jk_1.getPrev(this.kk_1.minOffset),this.nk_1=this.kk_1.minOffset,this.t5_1=1;continue t;case 1:if(this.mk_1==null){this.t5_1=5;continue t}if(this.kk_1.checkOffset(this.nk_1)){if(this.t5_1=2,t=this.lk_1.g9(this.mk_1.current,this),t===zr())return t;continue t}else{this.t5_1=3;continue t}case 2:this.t5_1=3;continue t;case 3:this.mk_1=this.mk_1.prev,this.nk_1=this.nk_1+1|0;var n=this.kk_1.maxOffset,i;if(n==null?i=null:i=this.nk_1>n,i===!0){this.t5_1=5;continue t}else{this.t5_1=4;continue t}case 4:this.t5_1=1;continue t;case 5:return ft;case 6:throw this.w5_1}}catch(s){var a=s;if(this.u5_1===6)throw a;this.t5_1=this.u5_1,this.w5_1=a}while(!0)};r(Pi).of=function(t,e){var n=new Pi(this.jk_1,this.kk_1,e);return n.lk_1=t,n};function fy(t,e,n){var i=new Pi(t,e,n),a=function(s,o){return i.nf(s,o)};return a.$arity=1,a}function ps(){Ll=this;var t=this;t.ok_1=Da(uy)}r(ps).pk=function(){var t=this.ok_1;return hy(),t.u1()};var Ll;function hc(){return Ll==null&&new ps,Ll}function Wr(){jl=this,se.call(this,"+")}r(Wr).qk=function(t,e,n){return e.traverseBeforeBrothers(t.current,n)};r(Wr).toString=function(){return"BeforeBrother"};r(Wr).hashCode=function(){return 896229501};r(Wr).equals=function(t){return this===t?!0:t instanceof Wr?(t instanceof Wr||$(),!0):!1};var jl;function Wd(){return jl==null&&new Wr,jl}function Vr(){Ml=this,se.call(this,"-")}r(Vr).qk=function(t,e,n){return e.traverseAfterBrothers(t.current,n)};r(Vr).toString=function(){return"AfterBrother"};r(Vr).hashCode=function(){return 499396488};r(Vr).equals=function(t){return this===t?!0:t instanceof Vr?(t instanceof Vr||$(),!0):!1};var Ml;function Vd(){return Ml==null&&new Vr,Ml}function Qr(){zl=this,se.call(this,">")}r(Qr).qk=function(t,e,n){return e.traverseAncestors(t.current,n)};r(Qr).toString=function(){return"Ancestor"};r(Qr).hashCode=function(){return-1992469481};r(Qr).equals=function(t){return this===t?!0:t instanceof Qr?(t instanceof Qr||$(),!0):!1};var zl;function ao(){return zl==null&&new Qr,zl}function Gr(){Bl=this,se.call(this,"<")}r(Gr).qk=function(t,e,n){return e.traverseChildren(t.current,n)};r(Gr).toString=function(){return"Child"};r(Gr).hashCode=function(){return 2030367064};r(Gr).equals=function(t){return this===t?!0:t instanceof Gr?(t instanceof Gr||$(),!0):!1};var Bl;function Qd(){return Bl==null&&new Gr,Bl}function Jr(){Dl=this,se.call(this,"<<")}r(Jr).qk=function(t,e,n){return e.traverseDescendants(t.current,n)};r(Jr).toString=function(){return"Descendant"};r(Jr).hashCode=function(){return-776612287};r(Jr).equals=function(t){return this===t?!0:t instanceof Jr?(t instanceof Jr||$(),!0):!1};var Dl;function Bo(){return Dl==null&&new Jr,Dl}function Yr(){Fl=this,se.call(this,"->")}r(Yr).qk=function(t,e,n){return Xi(fy(t,n,null))};r(Yr).toString=function(){return"Previous"};r(Yr).hashCode=function(){return 2002552123};r(Yr).equals=function(t){return this===t?!0:t instanceof Yr?(t instanceof Yr||$(),!0):!1};var Fl;function Gd(){return Fl==null&&new Yr,Fl}function se(t){hc(),this.key=t}r(se).t1=function(){return this.key};r(se).fc=function(){return this.key};function hy(){return Ea("allSubClasses",1,Vi,function(t){return t.allSubClasses},null)}function we(t,e){t=t===u?ao():t,e=e===u?new zt:e,this.operator=t,this.connectExpression=e;var n=this,i,a,s;if(S(this.operator,ao())){var o=this.connectExpression;s=o instanceof zt}else s=!1;s?a=this.connectExpression.a===1:a=!1,a?i=this.connectExpression.b===0:i=!1,n.isMatchAnyAncestor=i;var l=this,c,f,h;if(S(this.operator,Bo())){var d=this.connectExpression;h=d instanceof zt}else h=!1;h?f=this.connectExpression.a===1:f=!1,f?c=this.connectExpression.b===0:c=!1,l.isMatchAnyDescendant=c}r(we).vk=function(){return this.operator};r(we).wk=function(){return this.connectExpression};r(we).fc=function(){return this.isMatchAnyAncestor?"":this.operator.fc()+this.connectExpression.fc()};r(we).xk=function(t,e){return this.operator.qk(t,e,this.connectExpression)};r(we).yk=function(){return this.isMatchAnyAncestor};r(we).zk=function(){return this.isMatchAnyDescendant};r(we).ub=function(){return this.operator};r(we).vb=function(){return this.connectExpression};r(we).al=function(t,e){return new we(t,e)};r(we).copy=function(t,e,n){return t=t===u?this.operator:t,e=e===u?this.connectExpression:e,this.al(t,e)};r(we).toString=function(){return"ConnectSegment(operator="+j(this.operator)+", connectExpression="+j(this.connectExpression)+")"};r(we).hashCode=function(){var t=G(this.operator);return t=Y(t,31)+G(this.connectExpression)|0,t};r(we).equals=function(t){if(this===t)return!0;if(!(t instanceof we))return!1;var e=t instanceof we?t:$();return!(!S(this.operator,e.operator)||!S(this.connectExpression,e.connectExpression))};function je(t,e){this.segment=t,this.to=e,this.bl_1=this.segment.isMatchAnyAncestor&&this.to.isMatchRoot;var n=this,i;this.segment.isMatchAnyDescendant?i=!this.to.fastQueryList.l():i=!1,n.canFq=i}r(je).dl=function(){return this.segment};r(je).el=function(){return this.to};r(je).fc=function(){var t=this.to.fc()+" "+this.segment.fc();return j(e0(fe(t)?t:$()))};r(je).matchContext=function(t,e,n){if(this.bl_1){var i=e.getRoot(t.current),a;if(i==null)return t.mismatch();a=i;var s=a;return this.to.matchContext(t.next(s),e,n)}if(this.canFq&&n.fastQuery)for(var o=e.traverseFastQueryDescendants(t.current,this.to.fastQueryList).h();o.i();){var l=o.j(),c=this.to.matchContext(t.next(l),e,n);if(c.matched)return c}else for(var f=this.segment.xk(t,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.matched)return d}}return t.mismatch()};r(je).fl=function(){return this.canFq};r(je).ub=function(){return this.segment};r(je).vb=function(){return this.to};r(je).gl=function(t,e){return new je(t,e)};r(je).copy=function(t,e,n){return t=t===u?this.segment:t,e=e===u?this.to:e,this.gl(t,e)};r(je).toString=function(){return"ConnectWrapper(segment="+this.segment.toString()+", to="+this.to.toString()+")"};r(je).hashCode=function(){var t=this.segment.hashCode();return t=Y(t,31)+this.to.hashCode()|0,t};r(je).equals=function(t){if(this===t)return!0;if(!(t instanceof je))return!1;var e=t instanceof je?t:$();return!(!this.segment.equals(e.segment)||!this.to.equals(e.to))};function Qn(t){throw new Ve("invalid Polynomial: a="+t.a+", b="+t.b)}function dy(t){return function(e){return Y(t.a,e)+t.b|0}}function vy(t){return function(e){return Y(t.a,e)+t.b|0}}function py(t,e){return function(n){return Y(t.a,e+n|0)+t.b|0}}function my(t){return function(e){return e!==0&&Qn(t),t.b}}function gy(t,e){return function(n){return Y(t.a,e-n|0)+t.b|0}}function zt(t,e){t=t===u?0:t,e=e===u?1:e,na.call(this),this.a=t,this.b=e;var n=this,i;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 s=((-this.b|0)/this.a|0)+1|0;a=Y(this.a,s)+this.b|0}i=a}else{var o;if(this.a===0){var l;this.b>0?l=this.b:Qn(this),o=l}else{var c;if(this.b>0){var f;if(this.b<=(-this.a|0))Qn(this);else{var h=((-this.b|0)/this.a|0)-(this.b%this.a|0?0:1)|0;f=Y(this.a,h)+this.b|0}c=f}else Qn(this);o=c}i=o-1|0}n.rk_1=i;var d=this,v;if(this.a>0)v=null;else{var g;if(this.a===0){var p;this.b>0?p=this.b:Qn(this),g=p}else{var b;if(this.b>0){var w;this.b<=(-this.a|0)?Qn(this):w=this.a+this.b|0,b=w}else Qn(this);g=b}v=g-1|0}d.sk_1=v,this.tk_1=this.rk_1===this.sk_1;var k=this,E;if(this.a>0){var N;if(this.b>0)N=dy(this);else if(this.b===0)N=vy(this);else{var x=((-this.b|0)/this.a|0)+1|0;N=py(this,x)}E=N}else if(this.a===0){var m;this.b>0?m=my(this):Qn(this),E=m}else{var C;if(this.b>0){var q;if(this.b<=(-this.a|0))Qn(this);else{var I=((-this.b|0)/this.a|0)-(this.b%this.a|0?0:1)|0;q=gy(this,I)}C=q}else Qn(this);E=C}k.uk_1=E}r(zt).hl=function(){return this.a};r(zt).il=function(){return this.b};r(zt).fc=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+")"};r(zt).yj=function(){return this.rk_1};r(zt).zj=function(){return this.sk_1};r(zt).checkOffset=function(t){if(this.tk_1)return t===this.rk_1;var e=(t+1|0)-this.b|0;return(e%this.a|0)===0&&(e/this.a|0)>=1};r(zt).getOffset=function(t){return this.uk_1(t)-1|0};r(zt).ub=function(){return this.a};r(zt).vb=function(){return this.b};r(zt).jl=function(t,e){return new zt(t,e)};r(zt).copy=function(t,e,n){return t=t===u?this.a:t,e=e===u?this.b:e,this.jl(t,e)};r(zt).toString=function(){return"PolynomialExpression(a="+this.a+", b="+this.b+")"};r(zt).hashCode=function(){var t=this.a;return t=Y(t,31)+this.b|0,t};r(zt).equals=function(t){if(this===t)return!0;if(!(t instanceof zt))return!1;var e=t instanceof zt?t:$();return!(this.a!==e.a||this.b!==e.b)};function Me(t){na.call(this),this.numbers=t;var e=this,n=Vf(this.numbers);e.kl_1=(n==null?1:n)-1|0,this.ll_1=ss(this.numbers);for(var i=this,a=this.numbers,s=ei(io(a,10)),o=a.h();o.i();){var l=o.j(),c=l-1|0;s.f(c)}i.ml_1=s}r(Me).nl=function(){return this.numbers};r(Me).yj=function(){return this.kl_1};r(Me).zj=function(){return this.ll_1};r(Me).checkOffset=function(t){return q_(this.ml_1,t)>=0};r(Me).getOffset=function(t){return this.numbers.k(t)};r(Me).fc=function(){if(this.numbers.m()===1){var t;return un(this.numbers)===1?t="":t=un(this.numbers).toString(),t}return"("+Sa(this.numbers,",")+")"};r(Me).ub=function(){return this.numbers};r(Me).ol=function(t){return new Me(t)};r(Me).copy=function(t,e){return t=t===u?this.numbers:t,this.ol(t)};r(Me).toString=function(){return"TupleExpression(numbers="+j(this.numbers)+")"};r(Me).hashCode=function(){return G(this.numbers)};r(Me).equals=function(t){if(this===t)return!0;if(!(t instanceof Me))return!1;var e=t instanceof Me?t:$();return!!S(this.numbers,e.numbers)};function _y(t){return function(){var e=t.children;return Hn(e)}}function vt(t,e,n,i){this.start=t,this.end=e,this.value=n,this.children=i;var a=this;a.pl_1=Da(_y(this))}r(vt).ql=function(){return this.start};r(vt).rl=function(){return this.end};r(vt).u1=function(){return this.value};r(vt).sl=function(){return this.children};r(vt).tl=function(){var t=this.pl_1;return yy(),t.u1()};r(vt).oj=function(){var t=this.value,e=Or(t).v6();return re(e)};r(vt).fc=function(){if(this.children.l())return'{name:"'+this.name+'", range:['+this.start+", "+this.end+"]}";for(var t=this.name,e=this.children,n=ei(io(e,10)),i=e.h();i.i();){var a=i.j(),s=a.fc();n.f(s)}return'{name:"'+t+'", range:['+this.start+", "+this.end+"], children:"+j(n)+"}"};r(vt).sameRange=function(t){return this.start===t.start&&this.end===t.end};r(vt).ub=function(){return this.start};r(vt).vb=function(){return this.end};r(vt).ad=function(){return this.value};r(vt).ul=function(){return this.children};r(vt).vl=function(t,e,n,i){return new vt(t,e,n,i)};r(vt).copy=function(t,e,n,i,a){return t=t===u?this.start:t,e=e===u?this.end:e,n=n===u?this.value:n,i=i===u?this.children:i,this.vl(t,e,n,i)};r(vt).toString=function(){return"AstNode(start="+this.start+", end="+this.end+", value="+j(this.value)+", children="+j(this.children)+")"};r(vt).hashCode=function(){var t=this.start;return t=Y(t,31)+this.end|0,t=Y(t,31)+G(this.value)|0,t=Y(t,31)+G(this.children)|0,t};r(vt).equals=function(t){if(this===t)return!0;if(!(t instanceof vt))return!1;var e=t instanceof vt?t:$();return!(this.start!==e.start||this.end!==e.end||!S(this.value,e.value)||!S(this.children,e.children))};function yy(){return Ea("outChildren",1,Vi,function(t){return t.outChildren},null)}function mr(t,e){t=t===u?null:t;var n;e===u?n=Mt():n=e,e=n,this.wl_1=t,this.xl_1=e}r(mr).toString=function(){return"AstContext(parent="+re(this.wl_1)+", children="+j(this.xl_1)+")"};r(mr).hashCode=function(){var t=this.wl_1==null?0:this.wl_1.hashCode();return t=Y(t,31)+G(this.xl_1)|0,t};r(mr).equals=function(t){if(this===t)return!0;if(!(t instanceof mr))return!1;var e=t instanceof mr?t:$();return!(!S(this.wl_1,e.wl_1)||!S(this.xl_1,e.xl_1))};function Qt(t,e){t.ve_1=new mr(t.ve_1);var n=t.yl(),i=e(),a=t.yl(),s=i,o=t.ve_1.wl_1;return o==null||(o.xl_1.f(new vt(n,a,s,t.ve_1.xl_1)),t.ve_1=o),i}function Us(t,e){var n=Sd([Qf(t.ve_1.xl_1)]);do{do{var i=Xu(n);e(i),n.q(z_(i.children))}while(!1);var a=!n.l()}while(a)}function by(t){var e={_v:!1};return Us(t,wy(e)),Us(t,xy(e)),Us(t,ky(t,e)),Us(t,Cy(t,e)),e._v}function wy(t){return function(e){var n=e.children,i=X(n,zi)?n:$();if(i.m()===1){var a=un(i);if(a.children.l()&&a.start===e.start&&a.end===e.end){var s,o,l=a.value;if(typeof l=="string")o=!0;else{var c=a.value;o=typeof c=="boolean"}if(o)s=!0;else{var f=a.value;s=typeof f=="number"}s&&(i.q1(),t._v=!0)}}return ft}}function xy(t){return function(e){for(var n=e.children,i=X(n,zi)?n:$(),a=0,s=i.h();s.i();){var o=s.j(),l=a;a=l+1|0;var c=Na(l);if(o.children.m()===1){var f=un(o.children),h=o.value===f.value||Or(o.value).equals(Or(f.value));h&&o.sameRange(f)&&(i.r1(c,f),t._v=!0)}}return ft}}function ky(t,e){return function(n){for(var i=n.children,a=X(i,zi)?i:$(),s=0,o=a.h();o.i();){var l=o.j(),c=s;s=c+1|0;var f=Na(c);if(l.children.m()===1){var h=un(l.children),d=l.value===h.value||Or(l.value).equals(Or(h.value));d&&Tt(t.ue_1,l.start)===40&&Tt(t.ue_1,l.end-1|0)===41&&(a.r1(f,new vt(l.start,l.end,l.value,h.children)),e._v=!0)}}return ft}}function Cy(t,e){return function(n){for(var i=n.children,a=X(i,zi)?i:$(),s=0,o=a.h();o.i();){var l=o.j(),c=s;s=c+1|0;var f=Na(c),h,d,v,g;l.children.l()?g=!1:g=Tt(t.ue_1,l.start)===40,g?v=Tt(t.ue_1,l.end-1|0)===41:v=!1,v?d=un(l.children).start>l.start:d=!1,d?h=xa(l.children).end<l.end:h=!1,h&&(a.r1(f,new vt(un(l.children).start,xa(l.children).end,l.value,l.children)),e._v=!0)}return ft}}function Sy(t,e){return function(){return r(M).zl.call(t,e)}}function $y(t){return function(){return r(M).am.call(t)}}function Ey(t){return function(){return r(M).bm.call(t)}}function Iy(t){return function(){return r(M).re.call(t)}}function Ay(t){return function(){return r(M).cm.call(t)}}function Ny(t){return function(){return r(M).dm.call(t)}}function qy(t){return function(){return r(M).em.call(t)}}function Ry(t){return function(){return r(M).fm.call(t)}}function Py(t){return function(){return r(M).gm.call(t)}}function Ty(t){return function(){return r(M).hm.call(t)}}function Oy(t){return function(){return r(M).im.call(t)}}function Ly(t){return function(){return r(M).jm.call(t)}}function jy(t){return function(){return r(M).km.call(t)}}function My(t){return function(){return r(M).lm.call(t)}}function zy(t){return function(){return r(M).mm.call(t)}}function By(t){return function(){return r(M).nm.call(t)}}function Dy(t){return function(){return r(M).om.call(t)}}function Fy(t){return function(){return r(M).pm.call(t)}}function Ky(t){return function(){return r(M).qm.call(t)}}function Uy(t){return function(){return r(M).rm.call(t)}}function Hy(t){return function(){return r(M).sm.call(t)}}function Wy(t){return function(){return r(M).tm.call(t)}}function Vy(t){return function(){return r(M).um.call(t)}}function Qy(t){return function(){return r(M).vm.call(t)}}function dt(t){M.call(this,t),this.ue_1=t,this.ve_1=new mr}r(dt).wm=function(){return this.ue_1};r(dt).we=function(){for(this.re();by(this););var t=Qf(this.ve_1.xl_1);return t instanceof vt?t:$()};r(dt).xm=function(t){return r(M).xm.call(this,t)};r(dt).ym=function(){return r(M).ym.call(this)};r(dt).zm=function(t,e){var n=Cs(this.ve_1.xl_1.p1(e,e+3|0));this.ve_1.xl_1.r1(e,new vt(un(n).start,xa(n).end,t,n));var i=n.m()-1|0,a=0;if(a<i)do a=a+1|0,this.ve_1.xl_1.s1(e+1|0);while(a<i)};r(dt).an=function(t){var e=this.ve_1.xl_1,n;t:{for(var i=0,a=e.h();a.i();){var s=a.j();if(s.value===t.left){n=i;break t}i=i+1|0}n=-1}var o=n;this.zm(t,o)};r(dt).bn=function(t){var e=this.ve_1.xl_1,n;t:{for(var i=0,a=e.h();a.i();){var s=a.j();if(s.value===t.left){n=i;break t}i=i+1|0}n=-1}var o=n;this.zm(t,o)};r(dt).cn=function(t){var e=xa(this.ve_1.xl_1),n=e.value;if(typeof n=="string"){var i=this.ve_1.xl_1,a=this.ve_1.xl_1.m()-1|0,s=e.start,o=e.end,l=e.children;i.r1(a,new vt(s,o,t,l))}};r(dt).dn=function(t){var e=Cs(this.ve_1.xl_1.p1(this.ve_1.xl_1.m()-2|0,this.ve_1.xl_1.m())),n=e.m(),i=0;if(i<n)do i=i+1|0,Xu(this.ve_1.xl_1);while(i<n);var a=this.ve_1.xl_1,s=un(e).start,o=xa(e).end;a.f(new vt(s,o,t,e))};r(dt).en=function(t){Tt(this.ue_1,this.yl()-1|0)!==41&&Ct(this,"CallExpression End");var e=Cs(this.ve_1.xl_1.p1((this.ve_1.xl_1.m()-t.arguments.m()|0)-1|0,this.ve_1.xl_1.m())),n=e.m(),i=0;if(i<n)do i=i+1|0,Xu(this.ve_1.xl_1);while(i<n);var a=this.ve_1.xl_1,s=un(e).start,o=this.yl();a.f(new vt(s,o,t,e))};r(dt).zl=function(t){return Qt(this,Sy(this,t))};r(dt).am=function(){return Qt(this,$y(this))};r(dt).bm=function(){return Qt(this,Ey(this))};r(dt).re=function(){return Qt(this,Iy(this))};r(dt).cm=function(){return Qt(this,Ay(this))};r(dt).dm=function(){return Qt(this,Ny(this))};r(dt).em=function(){return Qt(this,qy(this))};r(dt).fm=function(){return Qt(this,Ry(this))};r(dt).gm=function(){return Qt(this,Py(this))};r(dt).hm=function(){return Qt(this,Ty(this))};r(dt).im=function(){return Qt(this,Oy(this))};r(dt).jm=function(){return Qt(this,Ly(this))};r(dt).km=function(){return Qt(this,jy(this))};r(dt).lm=function(){return Qt(this,My(this))};r(dt).mm=function(){return Qt(this,zy(this))};r(dt).nm=function(){return Qt(this,By(this))};r(dt).om=function(){return Qt(this,Dy(this))};r(dt).pm=function(){return Qt(this,Fy(this))};r(dt).qm=function(){return Qt(this,Ky(this))};r(dt).rm=function(){return Qt(this,Uy(this))};r(dt).sm=function(){return Qt(this,Hy(this))};r(dt).tm=function(){return Qt(this,Wy(this))};r(dt).um=function(){return Qt(this,Vy(this))};r(dt).vm=function(){return Qt(this,Qy(this))};function Ci(t,e){this.mn_1=t,this.nn_1=e}r(Ci).toString=function(){return"Monomial(coefficient="+this.mn_1+", power="+this.nn_1+")"};r(Ci).hashCode=function(){var t=this.mn_1;return t=Y(t,31)+this.nn_1|0,t};r(Ci).equals=function(t){if(this===t)return!0;if(!(t instanceof Ci))return!1;var e=t instanceof Ci?t:$();return!(this.mn_1!==e.mn_1||this.nn_1!==e.nn_1)};function Gy(t){var e=t;if((e==null?null:new P(e))==null)return"EOF";var n,i=t;if(S(i==null?null:new P(i),new P(10)))n="\\n";else{var a=t;if(S(a==null?null:new P(a),new P(13)))n="\\r";else{var s=t;if(S(s==null?null:new P(s),new P(9)))n="\\t";else{var o=t;S(o==null?null:new P(o),new P(8))?n="\\b":n=null}}}var l=n;if(l!=null)return l;var c,f=tr(t);if(0<=f&&f<=31?c=!0:c=wd(t),c){var h=tr(t);return"\\u"+t0(Cl(h,16),4,48)}return nr(t)}function ke(t,e){var n,i=t;return(i==null?null:new P(i))!=null?n=ea(e,t):n=!1,n}function dc(){}function Ct(t,e){throw new Ve("Expect "+e+", got "+Gy(t.jn())+" at index "+t.yl())}function qe(t,e,n){n=n===u?null:n;var i=t.jn(),a,s=i;return(s==null?null:new P(s))==null?a=!0:a=!ea(e,i),a&&(n!=null?Ct(t,n):Ct(t,"one of string "+e)),i}function ze(t,e){var n=t.jn();return S(new P(e),n==null?null:new P(n))||Ct(t,"char "+nr(e)),e}function Jy(t){var e=t.yl();try{var n=t.jn();if(S(n==null?null:new P(n),new P(40))){var i=t.yl();for(t.in(i+1|0);ke(t.jn(),` \r
259
- `);){var a=t.yl();t.in(a+1|0)}if(ke(t.jn(),"0123456789")){var s=t.yl();for(t.in(s+1|0);ke(t.jn(),"0123456789");){var o=t.yl();t.in(o+1|0)}for(;ke(t.jn(),` \r
260
- `);){var l=t.yl();t.in(l+1|0)}var c=t.jn();if(S(c==null?null:new P(c),new P(44)))return!0}}return!1}finally{t.in(e)}}function Jd(){}function Yy(t){return function(){return t.cm()}}function Yd(){}function M(t){this.pe_1=t,this.qe_1=0}r(M).wm=function(){return this.pe_1};r(M).in=function(t){this.qe_1=t};r(M).yl=function(){return this.qe_1};r(M).om=function(){var t=this.km(),e=Mt();t:for(;ke(this.jn(),` \r
261
- `);)if(this.kn(),ke(this.jn(),"+-<>")){var n=this.sm();qe(this,` \r
262
- `,"WHITESPACE"),this.kn();var i=this.km();e.f(df(n,i))}else if(ke(this.jn(),"@[*abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_")){var a=new we(u,new zt(1,0)),s=this.km();e.f(df(a,s))}else break t;for(var o=new Ut(t),l=e.h();l.i();){var c=l.j(),f=c.ub(),h=c.vb();o=new Ut(h,new je(f,o))}return new Wt(o)};r(M).im=function(){ze(this,33);var t=this.yl();this.in(t+1|0),ze(this,40);var e=this.yl();this.in(e+1|0),this.kn();var n=new ce(this.ym());this.kn(),ze(this,41);var i=this.yl();return this.in(i+1|0),n};r(M).mm=function(){var t=wc().allSubClasses,e;t:{for(var n=t.h();n.i();){var i=n.j();if(Ls(this.wm(),i.key,this.yl())){e=i;break t}}e=null}var a=e;return a==null&&Ct(this,"selector logical operator"),this.in(this.yl()+a.key.length|0),a};r(M).bn=function(t){};r(M).ym=function(){var t=Mt();t:for(;;){var e=ss(t);e instanceof Tn&&qe(this,"!(","selector");var n=this.jn(),i=n;if((i==null?null:new P(i))==null)if(t.l())Ct(this,"selector");else break t;var a,s=ss(t);if(s instanceof Ae){var o;if(ea("&|",n))o=this.mm();else break t;a=o}else{var l=n;if(S(l==null?null:new P(l),new P(40))){var c=this.yl();this.in(c+1|0),this.kn();var f=this.ym();this.kn(),ze(this,41);var h=this.yl();this.in(h+1|0),a=f}else{var d=n;if(S(d==null?null:new P(d),new P(33)))a=this.im();else if(ke(n,"@[*abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_"))a=this.om();else break t}}var v=a;t.f(v),this.kn()}if(t.m()===1){var g=un(t);return g instanceof Ae?g:$()}for(var p=0;p<t.m();){var b=t.k(p);if(b===Fo()){var w=t.k(p-1|0),k=w instanceof Ae?w:$(),E=t.k(p+1|0),N=E instanceof Ae?E:$(),x=p,m=new St(k,b,N);this.bn(m),t.r1(x,m),t.s1(p-1|0),t.s1((p+1|0)-1|0)}else p=p+1|0}for(;t.m()>1;){var C=t.k(0),q=C instanceof Ae?C:$(),I=t.k(1),F=I instanceof Tn?I:$(),B=t.k(2),K=B instanceof Ae?B:$(),lt=new St(q,F,K);this.bn(lt),t.r1(1,lt),t.s1(0),t.s1(1)}var pe=un(t);return pe instanceof Ae?pe:$()};r(M).re=function(){this.kn();var t=new Ln(this.ym());this.kn();var e=this.jn();return(e==null?null:new P(e))!=null&&Ct(this,"EOF"),t};function _t(t,e,n){an.call(this),this.left=t,this.operator=e,this.right=n}r(_t).ie=function(){return this.left};r(_t).vk=function(){return this.operator};r(_t).je=function(){return this.right};r(_t).match=function(t,e){return this.operator.compare(t,e,this.left,this.right)};r(_t).getBinaryExpressionList=function(){return[this]};r(_t).fc=function(){return this.left.fc()+this.operator.fc()+this.right.fc()};r(_t).vn=function(){return hr([this.left.properties,this.right.properties])};r(_t).wj=function(){return hr([this.left.methods,this.right.methods])};r(_t).ub=function(){return this.left};r(_t).vb=function(){return this.operator};r(_t).ad=function(){return this.right};r(_t).wn=function(t,e,n){return new _t(t,e,n)};r(_t).copy=function(t,e,n,i){return t=t===u?this.left:t,e=e===u?this.operator:e,n=n===u?this.right:n,this.wn(t,e,n)};r(_t).toString=function(){return"BinaryExpression(left="+j(this.left)+", operator="+j(this.operator)+", right="+j(this.right)+")"};r(_t).hashCode=function(){var t=G(this.left);return t=Y(t,31)+G(this.operator)|0,t=Y(t,31)+G(this.right)|0,t};r(_t).equals=function(t){if(this===t)return!0;if(!(t instanceof _t))return!1;var e=t instanceof _t?t:$();return!(!S(this.left,e.left)||!S(this.operator,e.operator)||!S(this.right,e.right))};function ia(t){this.xn_1=t}r(ia).m8=function(t,e){return this.xn_1(t,e)};r(ia).compare=function(t,e){return this.m8(t,e)};r(ia).m2=function(){return this.xn_1};r(ia).equals=function(t){var e;if(t!=null&&X(t,Un)){var n;t!=null&&X(t,Kn)?n=S(this.m2(),t.m2()):n=!1,e=n}else e=!1;return e};r(ia).hashCode=function(){return G(this.m2())};function Xy(){var t=Co([Si(),Xd(),fi(),Zd(),pc(),tv(),mc(),ev(),Bs(),nv(),rv(),iv(),Do(),gc()]),e=Zy,n=new ia(e),i=co(t,n);return Hn(i)}function Zy(t,e){var n=-t.key.length|0,i=-e.key.length|0;return Ts(n,i)}function ms(){Kl=this;var t=this;t.yn_1=Da(Xy)}r(ms).pk=function(){var t=this.yn_1;return tb(),t.u1()};var Kl;function vc(){return Kl==null&&new ms,Kl}function gr(){Ul=this,Z.call(this,"=")}r(gr).compare=function(t,e,n,i){var a=n.zn(t,e),s=i.zn(t,e);return fu(a,s)};r(gr).ao=function(t,e){return!0};r(gr).toString=function(){return"Equal"};r(gr).hashCode=function(){return-849932970};r(gr).equals=function(t){return this===t?!0:t instanceof gr?(t instanceof gr||$(),!0):!1};var Ul;function Si(){return Ul==null&&new gr,Ul}function _r(){Hl=this,Z.call(this,"!=")}r(_r).compare=function(t,e,n,i){return!Si().compare(t,e,n,i)};r(_r).ao=function(t,e){return!0};r(_r).toString=function(){return"NotEqual"};r(_r).hashCode=function(){return-549738817};r(_r).equals=function(t){return this===t?!0:t instanceof _r?(t instanceof _r||$(),!0):!1};var Hl;function Xd(){return Hl==null&&new _r,Hl}function yr(){Wl=this,Z.call(this,"^=")}r(yr).compare=function(t,e,n,i){var a=n.zn(t,e),s=i.zn(t,e),o,l;return a!=null&&fe(a)?l=s!=null?fe(s):!1:l=!1,l?o=lc(a,s):o=!1,o};r(yr).ao=function(t,e){var n,i;if(t instanceof Pt?i=!0:i=t instanceof De,i){var a;e instanceof Pt?a=!0:a=e instanceof De,n=a}else n=!1;return n};r(yr).toString=function(){return"Start"};r(yr).hashCode=function(){return-836932988};r(yr).equals=function(t){return this===t?!0:t instanceof yr?(t instanceof yr||$(),!0):!1};var Wl;function fi(){return Wl==null&&new yr,Wl}function br(){Vl=this,Z.call(this,"!^=")}r(br).compare=function(t,e,n,i){var a=n.zn(t,e),s=i.zn(t,e),o,l;return a!=null&&fe(a)?l=s!=null?fe(s):!1:l=!1,l?o=!lc(a,s):o=!1,o};r(br).ao=function(t,e){return fi().ao(t,e)};r(br).toString=function(){return"NotStart"};r(br).hashCode=function(){return-536738835};r(br).equals=function(t){return this===t?!0:t instanceof br?(t instanceof br||$(),!0):!1};var Vl;function Zd(){return Vl==null&&new br,Vl}function wr(){Ql=this,Z.call(this,"*=")}r(wr).compare=function(t,e,n,i){var a=n.zn(t,e),s=i.zn(t,e),o,l;return a!=null&&fe(a)?l=s!=null?fe(s):!1:l=!1,l?o=uc(a,s):o=!1,o};r(wr).ao=function(t,e){return fi().ao(t,e)};r(wr).toString=function(){return"Include"};r(wr).hashCode=function(){return-1588921782};r(wr).equals=function(t){return this===t?!0:t instanceof wr?(t instanceof wr||$(),!0):!1};var Ql;function pc(){return Ql==null&&new wr,Ql}function xr(){Gl=this,Z.call(this,"!*=")}r(xr).compare=function(t,e,n,i){var a=n.zn(t,e),s=i.zn(t,e),o,l;return a!=null&&fe(a)?l=s!=null?fe(s):!1:l=!1,l?o=!uc(a,s):o=!1,o};r(xr).ao=function(t,e){return fi().ao(t,e)};r(xr).toString=function(){return"NotInclude"};r(xr).hashCode=function(){return-865149581};r(xr).equals=function(t){return this===t?!0:t instanceof xr?(t instanceof xr||$(),!0):!1};var Gl;function tv(){return Gl==null&&new xr,Gl}function kr(){Jl=this,Z.call(this,"$=")}r(kr).compare=function(t,e,n,i){var a=n.zn(t,e),s=i.zn(t,e),o,l;return a!=null&&fe(a)?l=s!=null?fe(s):!1:l=!1,l?o=Mo(a,s):o=!1,o};r(kr).ao=function(t,e){return fi().ao(t,e)};r(kr).toString=function(){return"End"};r(kr).hashCode=function(){return-622112899};r(kr).equals=function(t){return this===t?!0:t instanceof kr?(t instanceof kr||$(),!0):!1};var Jl;function mc(){return Jl==null&&new kr,Jl}function Cr(){Yl=this,Z.call(this,"!$=")}r(Cr).compare=function(t,e,n,i){var a=n.zn(t,e),s=i.zn(t,e),o,l;return a!=null&&fe(a)?l=s!=null?fe(s):!1:l=!1,l?o=!Mo(a,s):o=!1,o};r(Cr).ao=function(t,e){return fi().ao(t,e)};r(Cr).toString=function(){return"NotEnd"};r(Cr).hashCode=function(){return-322359514};r(Cr).equals=function(t){return this===t?!0:t instanceof Cr?(t instanceof Cr||$(),!0):!1};var Yl;function ev(){return Yl==null&&new Cr,Yl}function Sr(){Xl=this,Z.call(this,"<")}r(Sr).compare=function(t,e,n,i){var a=n.zn(t,e),s=i.zn(t,e),o,l;return a!=null&&typeof a=="number"?l=s!=null?typeof s=="number":!1:l=!1,l?o=a<s:o=!1,o};r(Sr).ao=function(t,e){var n,i;if(t instanceof De?i=!0:i=t instanceof Be,i){var a;e instanceof Be?a=!0:a=e instanceof De,n=a}else n=!1;return n};r(Sr).toString=function(){return"Less"};r(Sr).hashCode=function(){return-2105430217};r(Sr).equals=function(t){return this===t?!0:t instanceof Sr?(t instanceof Sr||$(),!0):!1};var Xl;function Bs(){return Xl==null&&new Sr,Xl}function $r(){Zl=this,Z.call(this,"<=")}r($r).compare=function(t,e,n,i){var a=n.zn(t,e),s=i.zn(t,e),o,l;return a!=null&&typeof a=="number"?l=s!=null?typeof s=="number":!1:l=!1,l?o=a<=s:o=!1,o};r($r).ao=function(t,e){return Bs().ao(t,e)};r($r).toString=function(){return"LessEqual"};r($r).hashCode=function(){return-401624515};r($r).equals=function(t){return this===t?!0:t instanceof $r?(t instanceof $r||$(),!0):!1};var Zl;function nv(){return Zl==null&&new $r,Zl}function Er(){tu=this,Z.call(this,">")}r(Er).compare=function(t,e,n,i){var a=n.zn(t,e),s=i.zn(t,e),o,l;return a!=null&&typeof a=="number"?l=s!=null?typeof s=="number":!1:l=!1,l?o=a>s:o=!1,o};r(Er).ao=function(t,e){return Bs().ao(t,e)};r(Er).toString=function(){return"More"};r(Er).hashCode=function(){return-2105390861};r(Er).equals=function(t){return this===t?!0:t instanceof Er?(t instanceof Er||$(),!0):!1};var tu;function rv(){return tu==null&&new Er,tu}function Ir(){eu=this,Z.call(this,">=")}r(Ir).compare=function(t,e,n,i){var a=n.zn(t,e),s=i.zn(t,e),o,l;return a!=null&&typeof a=="number"?l=s!=null?typeof s=="number":!1:l=!1,l?o=a>=s:o=!1,o};r(Ir).ao=function(t,e){return Bs().ao(t,e)};r(Ir).toString=function(){return"MoreEqual"};r(Ir).hashCode=function(){return 1045810689};r(Ir).equals=function(t){return this===t?!0:t instanceof Ir?(t instanceof Ir||$(),!0):!1};var eu;function iv(){return eu==null&&new Ir,eu}function Ar(){nu=this,Z.call(this,"~=")}r(Ar).compare=function(t,e,n,i){var a=n.zn(t,e),s,o;return a!=null&&fe(a)?o=i instanceof Pt:o=!1,o?s=i.un_1(a):s=!1,s};r(Ar).ao=function(t,e){var n;if(t instanceof De){var i;e instanceof Pt?i=e.tn_1!=null:i=!1,n=i}else n=!1;return n};r(Ar).toString=function(){return"Matches"};r(Ar).hashCode=function(){return 1604333269};r(Ar).equals=function(t){return this===t?!0:t instanceof Ar?(t instanceof Ar||$(),!0):!1};var nu;function Do(){return nu==null&&new Ar,nu}function Nr(){ru=this,Z.call(this,"!~=")}r(Nr).compare=function(t,e,n,i){var a=n.zn(t,e),s,o;return a!=null&&fe(a)?o=i instanceof Pt:o=!1,o?s=!i.un_1(a):s=!1,s};r(Nr).ao=function(t,e){return Do().ao(t,e)};r(Nr).toString=function(){return"NotMatches"};r(Nr).hashCode=function(){return-1966861826};r(Nr).equals=function(t){return this===t?!0:t instanceof Nr?(t instanceof Nr||$(),!0):!1};var ru;function gc(){return ru==null&&new Nr,ru}function Z(t){vc(),this.key=t}r(Z).t1=function(){return this.key};r(Z).fc=function(){return this.key};function tb(){return Ea("allSubClasses",1,Vi,function(t){return t.allSubClasses},null)}function an(){}function bt(t,e,n){an.call(this),this.left=t,this.operator=e,this.right=n}r(bt).ie=function(){return this.left};r(bt).vk=function(){return this.operator};r(bt).je=function(){return this.right};r(bt).match=function(t,e){return this.operator.compare(t,e,this.left,this.right)};r(bt).getBinaryExpressionList=function(){var t=this.left.getBinaryExpressionList(),e=this.right.getBinaryExpressionList();return t.concat(e)};r(bt).fc=function(){var t,e,n=this.left;n instanceof bt?e=!S(this.left.operator,this.operator):e=!1,e?t="("+this.left.fc()+")":t=this.left.fc();var i=t,a,s,o=this.right;o instanceof bt?s=!S(this.right.operator,this.operator):s=!1,s?a="("+this.right.fc()+")":a=this.right.fc();var l=a;return i+" "+this.operator.fc()+" "+l};r(bt).getSameExpressionArray=function(){var t,e=this.left;if(e instanceof bt?t=!S(this.left.operator,this.operator):t=!1,t)return null;var n,i=this.right;if(i instanceof bt?n=!S(this.right.operator,this.operator):n=!1,n)return null;var a=this.left,s;if(a instanceof _t){var o=this.right,l;if(o instanceof _t)l=[this.left,this.right];else if(o instanceof bt){var c=[this.left],f=this.right.getSameExpressionArray(),h;if(f==null)return null;h=f;var d=h;l=c.concat(d)}else o instanceof Re?l=null:vr();s=l}else if(a instanceof bt){var v=this.left.getSameExpressionArray(),g;if(v==null)return null;g=v;var p=g,b=this.right,w;if(b instanceof _t){var k=[this.right];w=p.concat(k)}else if(b instanceof bt){var E=this.right.getSameExpressionArray(),N;if(E==null)return null;N=E;var x=N;return p.concat(x)}else b instanceof Re?w=null:vr();s=w}else a instanceof Re?s=null:vr();return s};r(bt).ub=function(){return this.left};r(bt).vb=function(){return this.operator};r(bt).ad=function(){return this.right};r(bt).bo=function(t,e,n){return new bt(t,e,n)};r(bt).copy=function(t,e,n,i){return t=t===u?this.left:t,e=e===u?this.operator:e,n=n===u?this.right:n,this.bo(t,e,n)};r(bt).toString=function(){return"LogicalExpression(left="+j(this.left)+", operator="+j(this.operator)+", right="+j(this.right)+")"};r(bt).hashCode=function(){var t=G(this.left);return t=Y(t,31)+G(this.operator)|0,t=Y(t,31)+G(this.right)|0,t};r(bt).equals=function(t){if(this===t)return!0;if(!(t instanceof bt))return!1;var e=t instanceof bt?t:$();return!(!S(this.left,e.left)||!S(this.operator,e.operator)||!S(this.right,e.right))};function aa(t){this.co_1=t}r(aa).m8=function(t,e){return this.co_1(t,e)};r(aa).compare=function(t,e){return this.m8(t,e)};r(aa).m2=function(){return this.co_1};r(aa).equals=function(t){var e;if(t!=null&&X(t,Un)){var n;t!=null&&X(t,Kn)?n=S(this.m2(),t.m2()):n=!1,e=n}else e=!1;return e};r(aa).hashCode=function(){return G(this.m2())};function eb(){var t=Co([yc(),bc()]),e=nb,n=new aa(e);return co(t,n)}function nb(t,e){var n=-t.key.length|0,i=-e.key.length|0;return Ts(n,i)}function gs(){iu=this;var t=this;t.do_1=Da(eb)}r(gs).pk=function(){var t=this.do_1;return rb(),t.u1()};var iu;function _c(){return iu==null&&new gs,iu}function Xr(){au=this,Pn.call(this,"&&")}r(Xr).compare=function(t,e,n,i){return n.match(t,e)&&i.match(t,e)};r(Xr).toString=function(){return"AndOperator"};r(Xr).hashCode=function(){return-630871711};r(Xr).equals=function(t){return this===t?!0:t instanceof Xr?(t instanceof Xr||$(),!0):!1};var au;function yc(){return au==null&&new Xr,au}function Zr(){su=this,Pn.call(this,"||")}r(Zr).compare=function(t,e,n,i){return n.match(t,e)||i.match(t,e)};r(Zr).toString=function(){return"OrOperator"};r(Zr).hashCode=function(){return 672091425};r(Zr).equals=function(t){return this===t?!0:t instanceof Zr?(t instanceof Zr||$(),!0):!1};var su;function bc(){return su==null&&new Zr,su}function Pn(t){_c(),this.key=t}r(Pn).t1=function(){return this.key};r(Pn).fc=function(){return this.key};function rb(){return Ea("allSubClasses",1,Vi,function(t){return t.allSubClasses},null)}function Re(t){an.call(this),this.expression=t}r(Re).de=function(){return this.expression};r(Re).match=function(t,e){return!this.expression.match(t,e)};r(Re).getBinaryExpressionList=function(){return this.expression.getBinaryExpressionList()};r(Re).fc=function(){return"!("+this.expression.fc()+")"};r(Re).ub=function(){return this.expression};r(Re).eo=function(t){return new Re(t)};r(Re).copy=function(t,e){return t=t===u?this.expression:t,this.eo(t)};r(Re).toString=function(){return"NotExpression(expression="+j(this.expression)+")"};r(Re).hashCode=function(){return G(this.expression)};r(Re).equals=function(t){if(this===t)return!0;if(!(t instanceof Re))return!1;var e=t instanceof Re?t:$();return!!S(this.expression,e.expression)};function ib(t,e,n){if(t.fo_1)return!0;var i=n.getName(e),a;if(i==null)return!1;a=i;var s=a;return rt(s)===t.name.length?E_(s,t.name):rt(s)>t.name.length?Tt(s,(rt(s)-t.name.length|0)-1|0)===46&&Mo(s,t.name):!1}function ab(t){return t.fc()}function ae(t,e,n){this.at=t,this.name=e,this.units=n;var i=this,a,s=this.name;rt(s)===0?a=!0:a=this.name==="*",i.fo_1=a}r(ae).go=function(){return this.at};r(ae).oj=function(){return this.name};r(ae).ho=function(){return this.units};r(ae).getBinaryExpressionList=function(){for(var t=this.units,e=Mt(),n=t.h();n.i();){var i=n.j(),a=wu(i.expression.getBinaryExpressionList());So(e,a)}return Hn(e)};r(ae).fc=function(){var t=this.at?"@":"",e=t+this.name;return e+Sa(this.units,"",u,u,u,u,ab)};r(ae).match=function(t,e){var n;if(ib(this,t.current,e)){var i=this.units,a;t:{var s;if(X(i,Vt)?s=i.l():s=!1,s){a=!0;break t}for(var o=i.h();o.i();){var l=o.j();if(!l.expression.match(t,e)){a=!1;break t}}a=!0}n=a}else n=!1;return n};r(ae).xe=function(){var t=Vf(this.units),e=t==null?null:t.expression,n;if(e==null)return null;n=e;var i=n;if(i instanceof bt){if(!S(i.operator,bc()))return null;var a=i.getSameExpressionArray(),s;if(a==null)return null;s=a;for(var o=s,l=Mt(),c=0,f=o.length;c<f;){var h=o[c];c=c+1|0;var d=vf(h),v;if(d==null)return null;v=d;var g=v;l.f(g)}return l}if(i instanceof _t){var p=vf(i),b;if(p==null)return null;b=p;var w=b,k=ei(1),E=0;if(E<1)do E=E+1|0,k.f(w);while(E<1);return k}return null};r(ae).ub=function(){return this.at};r(ae).vb=function(){return this.name};r(ae).ad=function(){return this.units};r(ae).io=function(t,e,n){return new ae(t,e,n)};r(ae).copy=function(t,e,n,i){return t=t===u?this.at:t,e=e===u?this.name:e,n=n===u?this.units:n,this.io(t,e,n)};r(ae).toString=function(){return"PropertySegment(at="+this.at+", name="+this.name+", units="+j(this.units)+")"};r(ae).hashCode=function(){var t=Es(this.at);return t=Y(t,31)+Cn(this.name)|0,t=Y(t,31)+G(this.units)|0,t};r(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||!S(this.units,e.units))};function vf(t){var e=t.left;if(!(e instanceof Ht))return null;var n=t.right;if(!(n instanceof Pt))return null;var i=t.right.sn_1;return rt(i)===0?null:t.left.value==="id"&&S(t.operator,Si())?new yn(t.right.sn_1):t.left.value==="vid"&&S(t.operator,Si())?new bn(t.right.sn_1):t.left.value==="text"&&(S(t.operator,Si())||S(t.operator,fi())||S(t.operator,pc())||S(t.operator,mc()))?new wn(t.right.sn_1):null}function xn(t){this.expression=t}r(xn).de=function(){return this.expression};r(xn).fc=function(){return"["+this.expression.fc()+"]"};r(xn).ub=function(){return this.expression};r(xn).eo=function(t){return new xn(t)};r(xn).copy=function(t,e){return t=t===u?this.expression:t,this.eo(t)};r(xn).toString=function(){return"PropertyUnit(expression="+j(this.expression)+")"};r(xn).hashCode=function(){return G(this.expression)};r(xn).equals=function(t){if(this===t)return!0;if(!(t instanceof xn))return!1;var e=t instanceof xn?t:$();return!!S(this.expression,e.expression)};function sb(t){return function(){var e=t.segment.fastQueryList;return e==null?Gi():e}}function Ut(t,e){e=e===u?null:e,this.segment=t,this.to=e;var n=this,i=this.segment.units,a;t:{var s;if(X(i,Vt)?s=i.l():s=!1,s){a=!1;break t}for(var o=i.h();o.i();){var l=o.j(),c=l.expression,f,h,d;if(c instanceof _t?d=S(c.operator,Si()):d=!1,d?h=S(c.left.value,"parent"):h=!1,h?f=S(c.right.value,"null"):f=!1,f){a=!0;break t}}a=!1}n.isMatchRoot=a;var v=this;v.cl_1=Da(sb(this))}r(Ut).dl=function(){return this.segment};r(Ut).el=function(){return this.to};r(Ut).fc=function(){var t;return this.to!=null?t=this.to.fc()+" ":t="",t+this.segment.fc()};r(Ut).matchContext=function(t,e,n){return this.segment.match(t,e)?this.to==null?t:this.to.matchContext(t,e,n):t.mismatch()};r(Ut).ye=function(){return this.isMatchRoot};r(Ut).xe=function(){var t=this.cl_1;return ob(),t.u1()};r(Ut).a=function(){return this.to==null?1:this.to.to.length+1|0};r(Ut).ub=function(){return this.segment};r(Ut).vb=function(){return this.to};r(Ut).jo=function(t,e){return new Ut(t,e)};r(Ut).copy=function(t,e,n){return t=t===u?this.segment:t,e=e===u?this.to:e,this.jo(t,e)};r(Ut).toString=function(){return"PropertyWrapper(segment="+this.segment.toString()+", to="+re(this.to)+")"};r(Ut).hashCode=function(){var t=this.segment.hashCode();return t=Y(t,31)+(this.to==null?0:this.to.hashCode())|0,t};r(Ut).equals=function(t){if(this===t)return!0;if(!(t instanceof Ut))return!1;var e=t instanceof Ut?t:$();return!(!this.segment.equals(e.segment)||!S(this.to,e.to))};function ob(){return Ea("fastQueryList",1,Vi,function(t){return t.fastQueryList},null)}function lb(t){return t.fc()}function ub(t){return!1}function De(t){ve.call(this,t,"var"),this.mo_1=t}r(De).u1=function(){return this.mo_1};function Ht(t){De.call(this,t),this.name=t,this.isEqual=this.name==="equal",this.isNotEqual=this.name==="notEqual"}r(Ht).oj=function(){return this.name};r(Ht).zn=function(t,e){return e.getAttr(t,this.value)};r(Ht).vn=function(){return[this.value]};r(Ht).wj=function(){return[]};r(Ht).qo=function(){return this.isEqual};r(Ht).ro=function(){return this.isNotEqual};r(Ht).ub=function(){return this.name};r(Ht).ac=function(t){return new Ht(t)};r(Ht).copy=function(t,e){return t=t===u?this.name:t,this.ac(t)};r(Ht).toString=function(){return"Identifier(name="+this.name+")"};r(Ht).hashCode=function(){return Cn(this.name)};r(Ht).equals=function(t){if(this===t)return!0;if(!(t instanceof Ht))return!1;var e=t instanceof Ht?t:$();return this.name===e.name};function Rt(t,e){De.call(this,t.fc()+"."+e),this.object0=t,this.property=e,this.isPropertyOr=this.property==="or",this.isPropertyAnd=this.property==="and",this.isPropertyIfElse=this.property==="ifElse"}r(Rt).wo=function(){return this.object0};r(Rt).xo=function(){return this.property};r(Rt).zn=function(t,e){var n=this.object0.zn(t,e);return n==null?null:e.getAttr(n,this.property)};r(Rt).vn=function(){return hr([this.object0.properties,[this.property]])};r(Rt).wj=function(){return this.object0.methods};r(Rt).yo=function(){return this.isPropertyOr};r(Rt).zo=function(){return this.isPropertyAnd};r(Rt).ap=function(){return this.isPropertyIfElse};r(Rt).ub=function(){return this.object0};r(Rt).vb=function(){return this.property};r(Rt).bp=function(t,e){return new Rt(t,e)};r(Rt).copy=function(t,e,n){return t=t===u?this.object0:t,e=e===u?this.property:e,this.bp(t,e)};r(Rt).toString=function(){return"MemberExpression(object0="+j(this.object0)+", property="+this.property+")"};r(Rt).hashCode=function(){var t=G(this.object0);return t=Y(t,31)+Cn(this.property)|0,t};r(Rt).equals=function(t){if(this===t)return!0;if(!(t instanceof Rt))return!1;var e=t instanceof Rt?t:$();return!(!S(this.object0,e.object0)||this.property!==e.property)};function Zt(t,e){var n=t.fc();De.call(this,n+"("+Sa(e,",",u,u,u,u,lb)+")"),this.callee=t,this.arguments=e}r(Zt).cp=function(){return this.callee};r(Zt).dp=function(){return this.arguments};r(Zt).zn=function(t,e){var n=this.callee,i;if(n instanceof Zt)i=null;else if(n instanceof Ht){var a;if(this.callee.isEqual)a=fu(this.arguments.k(0).zn(t,e),this.arguments.k(1).zn(t,e));else if(this.callee.isNotEqual)a=!fu(this.arguments.k(0).zn(t,e),this.arguments.k(1).zn(t,e));else{for(var s=this.arguments,o=ei(io(s,10)),l=s.h();l.i();){var c=l.j(),f=c.zn(t,e);if(f==null)return null;o.f(f)}a=e.getInvoke(t,this.callee.name,o)}i=a}else if(n instanceof Rt){var h=this.callee.object0.zn(t,e);if(h==null)return null;var d=h,v;if(this.callee.isPropertyOr){var g;if(typeof d=="boolean"?d:$())g=!0;else{var p=this.arguments.k(0).zn(t,e);if(p==null)return null;var b=p;g=typeof b=="boolean"?b:$()}v=g}else if(this.callee.isPropertyAnd){var w;if(typeof d=="boolean"?d:$()){var k=this.arguments.k(0).zn(t,e);if(k==null)return null;var E=k;w=typeof E=="boolean"?E:$()}else w=!1;v=w}else if(this.callee.isPropertyIfElse){var N;(typeof d=="boolean"?d:$())?N=this.arguments.k(0).zn(t,e):N=this.arguments.k(1).zn(t,e),v=N}else{for(var x=this.arguments,m=ei(io(x,10)),C=x.h();C.i();){var q=C.j(),I=q.zn(t,e);if(I==null)return null;m.f(I)}v=e.getInvoke(d,this.callee.property,m)}i=v}else vr();return i};r(Zt).vn=function(){for(var t=xu(this.callee.properties),e=this.arguments,n=Mt(),i=e.h();i.i();){var a=i.j(),s=wu(a.properties);So(n,s)}var o=Ss(t,n);return Hn(o)};r(Zt).wj=function(){var t=this.callee,e;t instanceof Zt?e=this.callee.methods:t instanceof Ht?e=[this.callee.name]:t instanceof Rt?e=hr([this.callee.object0.methods,[this.callee.property]]):vr();for(var n=xu(e),i=this.arguments,a=Mt(),s=i.h();s.i();){var o=s.j(),l=wu(o.methods);So(a,l)}var c=Ss(n,a);return Hn(c)};r(Zt).ub=function(){return this.callee};r(Zt).vb=function(){return this.arguments};r(Zt).ep=function(t,e){return new Zt(t,e)};r(Zt).copy=function(t,e,n){return t=t===u?this.callee:t,e=e===u?this.arguments:e,this.ep(t,e)};r(Zt).toString=function(){return"CallExpression(callee="+j(this.callee)+", arguments="+j(this.arguments)+")"};r(Zt).hashCode=function(){var t=G(this.callee);return t=Y(t,31)+G(this.arguments)|0,t};r(Zt).equals=function(t){if(this===t)return!0;if(!(t instanceof Zt))return!1;var e=t instanceof Zt?t:$();return!(!S(this.callee,e.callee)||!S(this.arguments,e.arguments))};function nn(t,e){ve.call(this,t,e),this.hp_1=t,this.ip_1=e}r(nn).u1=function(){return this.hp_1};r(nn).zc=function(){return this.ip_1};r(nn).zn=function(t,e){return this.value};r(nn).vn=function(){return[]};r(nn).wj=function(){return[]};function qr(){ou=this,nn.call(this,null,"null")}r(qr).toString=function(){return"NullLiteral"};r(qr).hashCode=function(){return 538522634};r(qr).equals=function(t){return this===t?!0:t instanceof qr?(t instanceof qr||$(),!0):!1};var ou;function av(){return ou==null&&new qr,ou}function Je(t){nn.call(this,t,"boolean"),this.np_1=t}r(Je).u1=function(){return this.np_1};r(Je).ub=function(){return this.np_1};r(Je).ud=function(t){return new Je(t)};r(Je).copy=function(t,e){return t=t===u?this.np_1:t,this.ud(t)};r(Je).toString=function(){return"BooleanLiteral(value="+this.np_1+")"};r(Je).hashCode=function(){return Es(this.np_1)};r(Je).equals=function(t){if(this===t)return!0;if(!(t instanceof Je))return!1;var e=t instanceof Je?t:$();return this.np_1===e.np_1};function Be(t){nn.call(this,t,"int"),this.sp_1=t}r(Be).u1=function(){return this.sp_1};r(Be).ub=function(){return this.sp_1};r(Be).tp=function(t){return new Be(t)};r(Be).copy=function(t,e){return t=t===u?this.sp_1:t,this.tp(t)};r(Be).toString=function(){return"IntLiteral(value="+this.sp_1+")"};r(Be).hashCode=function(){return this.sp_1};r(Be).equals=function(t){if(this===t)return!0;if(!(t instanceof Be))return!1;var e=t instanceof Be?t:$();return this.sp_1===e.sp_1};function Pt(t,e){e=e===u?null:e,nn.call(this,t,"string"),this.sn_1=t,this.tn_1=e;var n=this,i=this.tn_1,a;if(i==null)a=null;else{var s=xb(this.sn_1);a=s==null?i:s}var o=a,l;o==null?l=ub:l=o,n.un_1=l}r(Pt).u1=function(){return this.sn_1};r(Pt).up=function(){return this.tn_1};r(Pt).fc=function(){return wb(this.sn_1)};r(Pt).vp=function(){return this.un_1};r(Pt).ub=function(){return this.sn_1};r(Pt).wp=function(){return this.tn_1};r(Pt).xp=function(t,e){return new Pt(t,e)};r(Pt).copy$default=function(t,e,n){return t=t===u?this.sn_1:t,e=e===u?this.tn_1:e,n===u?this.xp(t,e):n.xp.call(this,t,e)};r(Pt).toString=function(){return"StringLiteral(value="+this.sn_1+", matches="+re(this.tn_1)+")"};r(Pt).hashCode=function(){var t=Cn(this.sn_1);return t=Y(t,31)+(this.tn_1==null?0:G(this.tn_1))|0,t};r(Pt).equals=function(t){if(this===t)return!0;if(!(t instanceof Pt))return!1;var e=t instanceof Pt?t:$();return!(this.sn_1!==e.sn_1||!S(this.tn_1,e.tn_1))};function ve(t,e){this.dc_1=t,this.ec_1=e}r(ve).u1=function(){return this.dc_1};r(ve).zc=function(){return this.ec_1};r(ve).fc=function(){return re(this.value)};function cb(t){Nb(t)}function St(t,e,n){Ae.call(this),this.left=t,this.operator=e,this.right=n}r(St).ie=function(){return this.left};r(St).vk=function(){return this.operator};r(St).je=function(){return this.right};r(St).fc=function(){var t,e,n=this.left;if(n instanceof Wt)e=!0;else{var i,a=this.left;a instanceof St?i=!S(this.left.operator,this.operator):i=!1,e=i}e?t="("+this.left.fc()+")":t=this.left.fc();var s=t,o,l,c=this.right;if(c instanceof Wt)l=!0;else{var f,h=this.right;h instanceof St?f=!S(this.right.operator,this.operator):f=!1,l=f}l?o="("+this.right.fc()+")":o=this.right.fc();var d=o;return s+" "+this.operator.fc()+" "+d};r(St).match=function(t,e,n){return this.operator.match(t,e,n,this)};r(St).matchContext=function(t,e,n){return this.operator.matchContext(t,e,n,this)};r(St).isSlow=function(t){return this.left.isSlow(t)||this.right.isSlow(t)};r(St).checkType=function(t){this.left.checkType(t),this.right.checkType(t)};r(St).ye=function(){return this.left.isMatchRoot&&S(this.operator,Fo())};r(St).xe=function(){return Ss(this.left.fastQueryList,this.right.fastQueryList)};r(St).yp=function(){return Ss(this.left.binaryExpressionList,this.right.binaryExpressionList)};r(St).zp=function(){return Ss(this.left.connectSegmentList,this.right.connectSegmentList)};r(St).ub=function(){return this.left};r(St).vb=function(){return this.operator};r(St).ad=function(){return this.right};r(St).aq=function(t,e,n){return new St(t,e,n)};r(St).copy=function(t,e,n,i){return t=t===u?this.left:t,e=e===u?this.operator:e,n=n===u?this.right:n,this.aq(t,e,n)};r(St).toString=function(){return"LogicalSelectorExpression(left="+j(this.left)+", operator="+j(this.operator)+", right="+j(this.right)+")"};r(St).hashCode=function(){var t=G(this.left);return t=Y(t,31)+G(this.operator)|0,t=Y(t,31)+G(this.right)|0,t};r(St).equals=function(t){if(this===t)return!0;if(!(t instanceof St))return!1;var e=t instanceof St?t:$();return!(!S(this.left,e.left)||!S(this.operator,e.operator)||!S(this.right,e.right))};function ce(t){Ae.call(this),this.expression=t}r(ce).de=function(){return this.expression};r(ce).fc=function(){return"!("+this.expression.fc()+")"};r(ce).match=function(t,e,n){var i=this.expression.match(t,e,n);return i!=null?null:t.current};r(ce).matchContext=function(t,e,n){return new be(this,t,this.expression.matchContext(t,e,n))};r(ce).isSlow=function(t){return this.expression.isSlow(t)};r(ce).checkType=function(t){return this.expression.checkType(t)};r(ce).ye=function(){return!1};r(ce).xe=function(){return Gi()};r(ce).yp=function(){return this.expression.binaryExpressionList};r(ce).zp=function(){return this.expression.connectSegmentList};r(ce).ub=function(){return this.expression};r(ce).bq=function(t){return new ce(t)};r(ce).copy=function(t,e){return t=t===u?this.expression:t,this.bq(t)};r(ce).toString=function(){return"NotSelectorExpression(expression="+j(this.expression)+")"};r(ce).hashCode=function(){return G(this.expression)};r(ce).equals=function(t){if(this===t)return!0;if(!(t instanceof ce))return!1;var e=t instanceof ce?t:$();return!!S(this.expression,e.expression)};function Ae(){}function sa(t){this.cq_1=t}r(sa).m8=function(t,e){return this.cq_1(t,e)};r(sa).compare=function(t,e){return this.m8(t,e)};r(sa).m2=function(){return this.cq_1};r(sa).equals=function(t){var e;if(t!=null&&X(t,Un)){var n;t!=null&&X(t,Kn)?n=S(this.m2(),t.m2()):n=!1,e=n}else e=!1;return e};r(sa).hashCode=function(){return G(this.m2())};function fb(){var t=Co([Fo(),sv()]),e=hb,n=new sa(e);return co(t,n)}function hb(t,e){var n=-t.key.length|0,i=-e.key.length|0;return Ts(n,i)}function _s(){lu=this;var t=this;t.dq_1=Da(fb)}r(_s).pk=function(){var t=this.dq_1;return db(),t.u1()};var lu;function wc(){return lu==null&&new _s,lu}function Rr(){uu=this,Tn.call(this,"&&")}r(Rr).match=function(t,e,n,i){var a=i.left.match(t,e,n);return a==null?null:i.right.match(t,e,n)};r(Rr).matchContext=function(t,e,n,i){var a=i.left.matchContext(t,e,n);return a.matched?new le(i,a,i.right.matchContext(t,e,n)):new le(i,a)};r(Rr).toString=function(){return"AndOperator"};r(Rr).hashCode=function(){return-500276431};r(Rr).equals=function(t){return this===t?!0:t instanceof Rr?(t instanceof Rr||$(),!0):!1};var uu;function Fo(){return uu==null&&new Rr,uu}function Pr(){cu=this,Tn.call(this,"||")}r(Pr).match=function(t,e,n,i){var a=i.left.match(t,e,n);return a!=null?a:i.right.match(t,e,n)};r(Pr).matchContext=function(t,e,n,i){var a=i.left.matchContext(t,e,n);return a.context.matched?new ue(i,a):new ue(i,a,i.right.matchContext(t,e,n))};r(Pr).toString=function(){return"OrOperator"};r(Pr).hashCode=function(){return 1784682833};r(Pr).equals=function(t){return this===t?!0:t instanceof Pr?(t instanceof Pr||$(),!0):!1};var cu;function sv(){return cu==null&&new Pr,cu}function Tn(t){wc(),this.key=t}r(Tn).t1=function(){return this.key};r(Tn).fc=function(){return this.key};function db(){return Ea("allSubClasses",1,Vi,function(t){return t.allSubClasses},null)}function ov(t){return Xi(vb(t,null))}function Ti(t,e){this.mq_1=t,he.call(this,e)}r(Ti).pq=function(t,e){var n=this.qq(t,e);return n.v5_1=ft,n.w5_1=null,n.b6()};r(Ti).s6=function(t,e){return this.pq(t instanceof Dn?t:$(),e)};r(Ti).b6=function(){var t=this.v5_1;t:do try{var e=this.t5_1;switch(e){case 0:this.u5_1=4,this.oq_1=this.mq_1.propertyWrapper.to,this.t5_1=1;continue t;case 1:if(this.oq_1==null){this.t5_1=3;continue t}if(this.t5_1=2,t=this.nq_1.g9(this.oq_1,this),t===zr())return t;continue t;case 2:this.oq_1=this.oq_1.to.to,this.t5_1=1;continue t;case 3:return ft;case 4:throw this.w5_1}}catch(i){var n=i;if(this.u5_1===4)throw n;this.t5_1=this.u5_1,this.w5_1=n}while(!0)};r(Ti).qq=function(t,e){var n=new Ti(this.mq_1,e);return n.nq_1=t,n};function vb(t,e){var n=new Ti(t,e),i=function(a,s){return n.pq(a,s)};return i.$arity=1,i}function pb(t){return t.segment}function Wt(t){Ae.call(this),this.propertyWrapper=t;var e=this,n;t:{for(var i=this.propertyWrapper.length,a=0,s=this.propertyWrapper;s!=null;){if(s.segment.at){n=(i-1|0)-a|0;break t}var o=s.to;s=o==null?null:o.to,a=a+1|0}n=i-1|0}e.targetIndex=n,this.rq_1=this.propertyWrapper.fastQueryList,this.sq_1=this.propertyWrapper.isMatchRoot}r(Wt).tq=function(){return this.propertyWrapper};r(Wt).fc=function(){return this.propertyWrapper.fc()};r(Wt).match=function(t,e,n){var i=this.propertyWrapper.matchContext(t,e,n);return i.matched?i.get(this.targetIndex).current:null};r(Wt).matchContext=function(t,e,n){return new Ne(this.propertyWrapper.matchContext(t,e,n),this,this.targetIndex)};r(Wt).ee=function(){return this.targetIndex};r(Wt).xe=function(){return this.rq_1};r(Wt).ye=function(){return this.sq_1};r(Wt).yp=function(){for(var t=this.propertyWrapper,e=Mt();t!=null;){var n=t.segment;M_(e,n.getBinaryExpressionList());var i=t.to;t=i==null?null:i.to}return e};r(Wt).zp=function(){var t=ov(this);return Eu(Mp(t,pb))};r(Wt).isSlow=function(t){if((!t.fastQuery||this.propertyWrapper.fastQueryList.l())&&!this.sq_1)return!0;var e=ov(this),n;t:{for(var i=e.h();i.i();){var a=i.j();if(S(a.segment.operator,Bo())&&!(a.canFq&&t.fastQuery)){n=!0;break t}}n=!1}return!!n};r(Wt).checkType=function(t){for(var e=this.binaryExpressionList.h();e.i();){var n=e.j();if(!n.operator.ao(n.left,n.right))throw new _n(n);var i=pf(n.left,t),a=pf(n.right,t);if(i!=null&&a!=null&&!S(i,a))throw new Le(n,i,a)}};r(Wt).ub=function(){return this.propertyWrapper};r(Wt).uq=function(t){return new Wt(t)};r(Wt).copy=function(t,e){return t=t===u?this.propertyWrapper:t,this.uq(t)};r(Wt).toString=function(){return"UnitSelectorExpression(propertyWrapper="+this.propertyWrapper.toString()+")"};r(Wt).hashCode=function(){return this.propertyWrapper.hashCode()};r(Wt).equals=function(t){if(this===t)return!0;if(!(t instanceof Wt))return!1;var e=t instanceof Wt?t:$();return!!this.propertyWrapper.equals(e.propertyWrapper)};function pf(t,e){var n;return t instanceof qr?n=null:t instanceof Je?n=hs():t instanceof Be?n=ds():t instanceof Pt?n=vs():t instanceof De?n=so(t,e,e).type:vr(),n}function mf(t,e,n){for(var i=0,a=t.params,s=0,o=a.length;s<o;){var l=a[s];s=s+1|0;var c=i;i=c+1|0;var f=e.arguments.k(c);if(!(f instanceof qr))if(f instanceof Je){if(!S(l.type,hs()))throw new ye(e,f,hs())}else if(f instanceof Be){if(!S(l.type,ds()))throw new ye(e,f,ds())}else if(f instanceof Pt){if(!S(l.type,vs()))throw new ye(e,f,vs())}else if(f instanceof De){var h=so(f,l,n);if(!S(h.type,l.type))throw new ye(e,f,h.type)}else vr()}return t.returnType}function so(t,e,n){var i;if(t instanceof Zt){var a=t.callee,s;if(a instanceof Zt)throw ie("Unsupported nested call");if(a instanceof Ht){for(var o=n.methods,l=Mt(),c=0,f=o.length;c<f;){var h=o[c];c=c+1|0,h.name===t.callee.value&&l.f(h)}if(l.l())throw new on(t.callee);for(var d=Mt(),v=l.h();v.i();){var g=v.j();g.params.length===t.arguments.m()&&d.f(g)}if(d.l())throw new mn(t);s=d}else if(a instanceof Rt){for(var p=so(t.callee.object0,e,n).methods,b=Mt(),w=0,k=p.length;w<k;){var E=p[w];w=w+1|0,E.name===t.callee.property&&b.f(E)}if(b.l())throw new ln(t.callee);for(var N=Mt(),x=b.h();x.i();){var m=x.j();m.params.length===t.arguments.m()&&N.f(m)}if(N.l())throw new gn(t);s=N}else vr();var C=s;if(C.m()===1)return mf(C.k(0),t,n),C.k(0).returnType;for(var q=0,I=C.h();I.i();){var F=I.j(),B=q;q=B+1|0;var K=Na(B);try{return mf(F,t,n),F.returnType}catch(di){if(di instanceof ee){var lt=di;if(K===(C.m()-1|0))throw lt}else throw di}}var pe=t.callee;if(pe instanceof Ht)throw new on(t.callee);var Ot=t.callee;throw Ot instanceof Rt?new ln(t.callee):ie("Unsupported nested call")}else if(t instanceof Ht){var Dt=n.props,Gt;t:{for(var Lt=0,oe=Dt.length;Lt<oe;){var at=Dt[Lt];if(Lt=Lt+1|0,at.name===t.value){Gt=at;break t}}Gt=null}var Ue=Gt,ne=Ue==null?null:Ue.type,jn;if(ne==null)throw new vn(t);jn=ne,i=jn}else if(t instanceof Rt){var D=so(t.object0,e,n).props,ht;t:{for(var mt=0,Ft=D.length;mt<Ft;){var me=D[mt];if(mt=mt+1|0,me.name===t.property){ht=me;break t}}ht=null}var or=ht,lr=or==null?null:or.type,ur;if(lr==null)throw new pn(t);ur=lr,i=ur}else vr();return i}function hi(t,e,n,i,a,s){this.booleanType=t,this.intType=e,this.stringType=n,this.contextType=i,this.nodeType=a,this.globalType=s}r(hi).vq=function(){return this.booleanType};r(hi).wq=function(){return this.intType};r(hi).xq=function(){return this.stringType};r(hi).yq=function(){return this.contextType};r(hi).zq=function(){return this.nodeType};r(hi).ar=function(){return this.globalType};function mb(t){t=t===u?!1:t;var e=new Xt(hs()),n=new Xt(ds()),i=new Xt(vs()),a=new Xt(new Ge("node")),s=new Xt(new Ge("context")),o=new Xt(new Ge("global")),l=e,c=new tt("toInt",n),f=[e],h=new tt("or",e,f),d=[e];l.methods=hr([[c,h,new tt("and",e,d),new tt("not",e)],ol(e,n,i,a,s,"ifElse",e,2)]);var v=n,g=new tt("toString",i),p=[n],b=new tt("toString",i,p),w=[n],k=new tt("plus",n,w),E=[n],N=new tt("minus",n,E),x=[n],m=new tt("times",n,x),C=[n],q=new tt("div",n,C),I=[n],F=new tt("rem",n,I),B=[n],K=new tt("more",e,B),lt=[n],pe=new tt("moreEqual",e,lt),Ot=[n],Dt=new tt("less",e,Ot),Gt=[n];v.methods=[g,b,k,N,m,q,F,K,pe,Dt,new tt("lessEqual",e,Gt)];var Lt=i;Lt.props=[new st("length",n)];var oe=i,at=[n],Ue=new tt("get",i,at),ne=[n],jn=new tt("at",i,ne),D=[n],ht=new tt("substring",i,D),mt=[n,n],Ft=new tt("substring",i,mt),me=new tt("toInt",n),or=[n],lr=new tt("toInt",n,or),ur=[i],di=new tt("indexOf",n,ur),Wa=[i,n];oe.methods=[Ue,jn,ht,Ft,me,lr,di,new tt("indexOf",n,Wa)];var Va=a,vi;t?vi=[new st("_id",n),new st("_pid",n)]:vi=[],Va.props=hr([vi,[new st("id",i),new st("vid",i),new st("name",i),new st("text",i),new st("desc",i),new st("clickable",e),new st("focusable",e),new st("checkable",e),new st("checked",e),new st("editable",e),new st("longClickable",e),new st("visibleToUser",e),new st("left",n),new st("top",n),new st("right",n),new st("bottom",n),new st("width",n),new st("height",n),new st("childCount",n),new st("index",n),new st("depth",n),new st("parent",a)]]);var pi=a,Ds=[n];pi.methods=[new tt("getChild",a,Ds)];var Br=s,Vn=a.methods,Ko=[n];Br.methods=hr([Vn,[new tt("getPrev",s,Ko)]]);var Uo=s;Uo.props=hr([a.props,[new st("prev",s),new st("current",a)]]);var oa=o;oa.methods=hr([s.methods,ol(e,n,i,a,s,"equal",e,2),ol(e,n,i,a,s,"notEqual",e,2)]);var Ho=o;return Ho.props=s.props.slice(),new hi(e,n,i,s,a,o)}function gb(t,e,n){var i;switch(e){case"plus":i=t+We(n)|0;break;case"minus":i=t-We(n)|0;break;case"times":i=Y(t,We(n));break;case"div":var a=We(n);if(a===0)return null;i=t/a|0;break;case"rem":var s=We(n);if(s===0)return null;i=t%s|0;break;case"more":i=t>We(n);break;case"moreEqual":i=t>=We(n);break;case"less":i=t<We(n);break;case"lessEqual":i=t<=We(n);break;default:i=null;break}return i}function _b(t,e,n){return kb(t,e,n)}function yb(t,e,n){switch(e){case"toInt":return t?1:0;case"not":return!t;default:return null}}function bb(t,e){return Cb(t,e)}function wb(t,e){e=e===u?34:e;var n=Gu(t.length+2|0);n.m5(e);for(var i=0;i<rt(t);){var a=Tt(t,i);i=i+1|0;var s=a===e?e:a===10?110:a===13?114:a===9?116:a===8?98:a===92?92:null,o=s;if((o==null?null:new P(o))!=null){var l=s;n.l5("\\"+re(l==null?null:new P(l)))}else{var c=tr(a);if(0<=c&&c<=15){var f=tr(a);n.l5("\\x0"+Cl(f,16))}else if(16<=c&&c<=31){var h=tr(a);n.l5("\\x"+Cl(h,16))}else n.m5(a)}}return n.m5(e),n.toString()}function sl(t,e,n){if(Ju(t,e)&&Cd(t,n)&&t.length>=(e.length+n.length|0)){var i=e.length,a=t.length-n.length|0;if(i<a)do{var s=i;if(i=i+1|0,ea("\\^$.?*|+()[]{}",Tt(t,s)))return null}while(i<a);return j(In(t,e.length,t.length-n.length|0))}return null}function xb(t){var e=sl(t,"(?is)",".*");if(e!=null)return $b(e);var n=sl(t,"(?is).*",".*");if(n!=null)return Eb(n);var i=sl(t,"(?is).*","");return i!=null?Ib(i):null}function We(t,e){e=e===u?0:e;var n=t.k(e);return typeof n=="number"?n:$()}function kb(t,e,n){var i;switch(e){case"get":var a=is(t,We(n));i=re(a==null?null:new P(a));break;case"at":var s=We(n),o;if(s<0){var l=is(t,rt(t)+s|0);o=re(l==null?null:new P(l))}else{var c=is(t,s);o=re(c==null?null:new P(c))}i=o;break;case"substring":var f;switch(n.m()){case 1:var h=We(n);if(h<0)return null;if(h>=rt(t))return"";var d=rt(t);f=j(In(t,h,d));break;case 2:var v=We(n);if(v<0)return null;if(v>=rt(t))return"";var g=We(n,1);if(g<v)return null;var p=Zs(g,rt(t));f=j(In(t,v,p));break;default:f=null;break}i=f;break;case"toInt":var b;switch(n.m()){case 0:b=sc(j(t));break;case 1:var w=We(n);if(!(2<=w&&w<=36))return null;b=oc(j(t),w);break;default:b=null;break}i=b;break;case"indexOf":var k;switch(n.m()){case 1:var E=n.k(0),N=fe(E)?E:null,x;if(N==null)return null;x=N;var m=x;k=Nl(t,j(m));break;case 2:var C=n.k(0),q=fe(C)?C:null,I;if(q==null)return null;I=q;var F=I,B=We(n,1);k=Nl(t,j(F),B);break;default:k=null;break}i=k;break;default:i=null;break}return i}function Cb(t,e){return e==="length"?rt(t):null}function Sb(t,e){if(t===e)return!0;if(rt(t)!==rt(e))return!1;var n=rt(t)-1|0;if(0<=n)do{var i=n;if(n=n+-1|0,Tt(t,i)!==Tt(e,i))return!1}while(0<=n);return!0}function fu(t,e){var n,i;return t!=null&&fe(t)?i=e!=null?fe(e):!1:i=!1,i?n=Sb(t,e):n=S(t,e),n}function ol(t,e,n,i,a,s,o,l){for(var c=0,f=fr(Array(l),null);c<l;)f[c]=t,c=c+1|0;for(var h=new tt(s,o,f),d=0,v=fr(Array(l),null);d<l;)v[d]=e,d=d+1|0;for(var g=new tt(s,o,v),p=0,b=fr(Array(l),null);p<l;)b[p]=n,p=p+1|0;for(var w=new tt(s,o,b),k=0,E=fr(Array(l),null);k<l;)E[k]=i,k=k+1|0;for(var N=new tt(s,o,E),x=0,m=fr(Array(l),null);x<l;)m[x]=a,x=x+1|0;return[h,g,w,N,new tt(s,o,m)]}function $b(t){return function(e){return lc(e,t,!0)}}function Eb(t){return function(e){return uc(e,t,!0)}}function Ib(t){return function(e){return Mo(e,t,!0)}}var oo;function Ab(t){if(oo!==null){var e=en(oo)(t);return qb(e)}if(t.length>=4&&Ju(t,"(?")){var n=2,i=t.length;if(n<i)t:do{var a=n;n=n+1|0;var s=Tt(t,a);if(!(97<=s&&s<=122)&&!(65<=s&&s<=90))if(s===41){var o=Fp(In(t,2,a));o.f(new P(103)),o.f(new P(117));var l=Sa(o,""),c=a+1|0,f=t.substring(c),h=new RegExp(f,l);return Rb(h)}else break t}while(n<i)}var d=k_(t);return Pb(d)}function Nb(t){oo=t}function qb(t){return function(e){return t(j(e))}}function Rb(t){return function(e){yd(t);var n=t.exec(j(e));return n!=null&&n.index===0&&t.lastIndex===rt(e)}}function Pb(t){return function(e){return t.h8(e)}}z(r(Rn),"message",function(){return this.t6()});z(r(Rn),"outMessage",r(Rn).xb);z(r(Ve),"message",function(){return this.t6()});z(r(ee),"message",function(){return this.t6()});z(r(Qe),"value",function(){return this.u1()});z(r(wt),"originalContext",r(wt).yd);z(r(xe),"context",function(){return this.z5()});z(r(xe),"expression",function(){return this.de()});z(r(xe),"targetIndex",function(){return this.ee()});z(r(xe),"matched",function(){return this.xd()});z(r(xe),"target",r(xe).ge);z(r(na),"minOffset",function(){return this.yj()});z(r(na),"maxOffset",function(){return this.zj()});z(r(ps),"allSubClasses",r(ps).pk);z(r(vt),"outChildren",r(vt).tl);z(r(vt),"name",r(vt).oj);r(M).gm=y0;r(M).dm=b0;r(M).am=w0;r(M).cn=x0;r(M).dn=k0;r(M).en=C0;r(M).pm=S0;r(M).bm=$0;r(M).hm=E0;r(M).an=I0;r(M).cm=A0;r(M).jm=N0;r(M).lm=q0;r(M).km=R0;r(M).jn=f0;r(M).kn=h0;r(M).ln=d0;r(M).fm=v0;r(M).em=p0;r(M).nm=m0;r(M).xm=g0;r(M).zl=_0;r(M).rm=P0;r(M).tm=T0;r(M).vm=O0;r(M).um=L0;r(M).qm=j0;r(M).sm=M0;z(r(_t),"properties",r(_t).vn);z(r(_t),"methods",r(_t).wj);z(r(ms),"allSubClasses",r(ms).pk);z(r(gs),"allSubClasses",r(gs).pk);z(r(ae),"fastQueryList",r(ae).xe);z(r(Ut),"fastQueryList",r(Ut).xe);z(r(Ut),"length",r(Ut).a);z(r(ve),"value",function(){return this.u1()});z(r(ve),"type",function(){return this.zc()});z(r(ve),"properties",function(){return this.vn()});z(r(ve),"methods",function(){return this.wj()});z(r(Ae),"isMatchRoot",function(){return this.ye()});z(r(Ae),"fastQueryList",function(){return this.xe()});z(r(Ae),"binaryExpressionList",function(){return this.yp()});z(r(Ae),"connectSegmentList",function(){return this.zp()});z(r(_s),"allSubClasses",r(_s).pk);Ud=new zs;Hd=new fc;oo=null;Qe.Id=yn;Qe.Vid=bn;Qe.Text=wn;z(tn,"Companion",ci);xe.UnitResult=Ne;xe.AndResult=le;xe.OrResult=ue;xe.NotResult=be;z(Ln,"Companion",z0);z(xt,"Companion",F0);z(fn,"BooleanType",hs);z(fn,"IntType",ds);z(fn,"StringType",vs);fn.ObjectType=Ge;z(se,"Companion",hc);z(se,"BeforeBrother",Wd);z(se,"AfterBrother",Vd);z(se,"Ancestor",ao);z(se,"Child",Qd);z(se,"Descendant",Bo);z(se,"Previous",Gd);z(Z,"Companion",vc);z(Z,"Equal",Si);z(Z,"NotEqual",Xd);z(Z,"Start",fi);z(Z,"NotStart",Zd);z(Z,"Include",pc);z(Z,"NotInclude",tv);z(Z,"End",mc);z(Z,"NotEnd",ev);z(Z,"Less",Bs);z(Z,"LessEqual",nv);z(Z,"More",rv);z(Z,"MoreEqual",iv);z(Z,"Matches",Do);z(Z,"NotMatches",gc);z(Pn,"Companion",_c);z(Pn,"AndOperator",yc);z(Pn,"OrOperator",bc);ve.Variable=De;ve.Identifier=Ht;ve.MemberExpression=Rt;ve.CallExpression=Zt;ve.LiteralExpression=nn;z(ve,"NullLiteral",av);ve.BooleanLiteral=Je;ve.IntLiteral=Be;ve.StringLiteral=Pt;z(Tn,"Companion",wc);z(Tn,"AndOperator",Fo);z(Tn,"OrOperator",sv);async function Tb(t){t instanceof Promise&&(t=await t);const e={"kotlin.captureStackTrace":()=>new Error().stack,"kotlin.wasm.internal.throwJsError":(s,o,l)=>{const c=new Error;throw c.message=s,c.name=o,c.stack=l,c},"kotlin.wasm.internal.stringLength":s=>s.length,"kotlin.wasm.internal.jsExportStringToWasm":(s,o,l,c)=>{const f=new Uint16Array(i.memory.buffer,c,l);let h=0,d=o;for(;h<l;)f.set([s.charCodeAt(d)],h),d++,h++},"kotlin.wasm.internal.importStringFromWasm":(s,o,l)=>{const c=new Uint16Array(i.memory.buffer,s,o),f=String.fromCharCode.apply(null,c);return l==null?f:l+f},"kotlin.wasm.internal.getJsEmptyString":()=>"","kotlin.wasm.internal.isNullish":s=>s==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)":s=>o=>i["__callFunction_((String)->Boolean)"](s,o)};let n,i;const a={js_code:e};try{if(t instanceof Response)n=(await WebAssembly.instantiateStreaming(t,a)).instance;else{const s=new WebAssembly.Module(t);n=new WebAssembly.Instance(s,a)}}catch(s){throw s instanceof WebAssembly.CompileError&&console.error(`Please make sure that your runtime environment supports the latest version of Wasm GC and Exception-Handling proposals.
263
- For more information, see https://kotl.in/wasm-help
264
- `),s}return i=n.exports,i._initialize(),{instance:n,exports:i}}const Ob="https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1740333832069/files/dist/assets/mod-BHC4TAjm.wasm",Lb=Tb(fetch(Ob)).then(t=>{const e=t.exports.toMatches;cb(e),Js().wasmSupported=!0,console.log("use wasm matches")}).catch(t=>{Js().wasmSupported=!1,console.error(t),console.log("use js matches")}),gf=(t,e)=>{var n,i;return e=="_id"?t.id:e=="_pid"?t.pid:e=="parent"?(n=t.parent)!=null?n:null:(i=Reflect.get(t.attr,e))!=null?i:null},_f=(t,e,n)=>{var i;if(e==="getChild"){const a=n.asJsReadonlyArrayView()[0];return(i=t.children[a])!=null?i:null}return null},ll=xt.Companion.multiplatformBuild((t,e)=>typeof t=="string"?bb(t,e):t instanceof wt?e==="prev"?t.prev:e==="current"?t.current:gf(t.current,e):zc(t)?gf(t,e):null,(t,e,n)=>{if(typeof t=="number")return gb(t,e,n);if(typeof t=="boolean")return yb(t,e);if(typeof t=="string")return _b(t,e,n);if(t instanceof wt){if(e==="getPrev"){const i=n.asJsReadonlyArrayView()[0];return Number.isSafeInteger(i)?t.getPrev(i):null}return _f(t.current,e,n)}return zc(t)?_f(t,e,n):null},t=>t.attr.name,t=>t.children,t=>t.parent),jb=mb(!0).globalType,Mb=new tn(!1),Vs=t=>{const e=Ln.Companion.parse(t);e.checkType(jb);const n=e.expression.binaryExpressionList.asJsReadonlyArrayView(),i=e.expression.fastQueryList.asJsReadonlyArrayView(),a=e.expression.connectSegmentList.asJsReadonlyArrayView(),s={value:e,connectKeys:a.map(o=>o.operator.key),canCopy:!n.some(o=>o.properties.some(l=>l.startsWith("_"))),canQf:i.length>0,fastQueryList:i,toString(){return e.toString()},match(o){var l;return(l=e.match(o,ll,Mb))!=null?l:void 0},querySelectorAll(o){return o?ll.querySelectorAllArray(o,e):[]},querySelectorAllContext(o){return o?ll.querySelectorAllContextArray(o,e):[]}};for(const o of n)if(o.operator.key=="~="&&!Js().wasmSupported&&!qf().ignoreWasmWarn){Js().wasmErrorDlgVisible=!0;break}return s},xc=t1(),lv=Q(()=>xc.width.value/100),uv=Q(()=>Math.max(1200,xc.width.value));Q(()=>Math.max(700,xc.height.value));const zb={"bg-white":"","b-1px":"","b-solid":"","b-gray-200":"","rounded-4px":"","p-8px":""},Bb={flex:"","m-b-4px":"","pr-4px":""},Db={"min-h-24px":""},Fb={key:0,"color-red":"","whitespace-pre":""},Kb=It({__name:"RuleCard",props:{show:{type:Boolean},onUpdateShow:{type:Function,default:gu}},setup(t){const e=Mi(),n=ji(e),{rootNode:i,focusNode:a}=n,s=n.snapshot,o=qt(""),l=e1(o,500),c=p=>{if(p==null)return[];if(typeof p=="string")return[p];if(Array.isArray(p)&&p.every(b=>typeof b=="string"))return p},f=p=>{const b=c(p.matches);if(!b)return"非法格式: matches";const w=c(p.anyMatches);if(!w)return"非法格式: anyMatches";const k=c(p.excludeMatches);if(!k)return"非法格式: excludeMatches";const E=[];for(let I=0;I<b.length;I++){const F=b[I];try{E.push(Vs(F))}catch(B){const K=B instanceof Error?B.message:String(B);return`非法选择器: matches[${I}]
265
- 错误: ${K}`}}const N=E.map(I=>I.querySelectorAll(i.value));if(E.length){const I=N.findIndex(F=>F.length===0);if(I>=0)return`无法匹配: matches[${I}] 查找结果为空`}const x=[];for(let I=0;I<w.length;I++){const F=w[I];try{x.push(Vs(F))}catch(B){const K=B instanceof Error?B.message:String(B);return`非法选择器: anyMatches[${I}]
266
- 错误: ${K}`}}const m=x.map(I=>I.querySelectorAll(i.value));if(x.length&&m.every(I=>I.length===0))return"无法匹配: anyMatches 查找结果为空";if(!b.length&&!w.length)return"非法规则: matches 和 anyMatches 至少存在一个";const C=[];for(let I=0;I<k.length;I++){const F=k[I];try{C.push(Vs(F))}catch(B){const K=B instanceof Error?B.message:String(B);return`非法选择器: excludeMatches[${I}]
267
- 错误: ${K}`}}const q=C.map(I=>I.querySelectorAll(i.value));if(C.length){const I=q.findIndex(F=>F.length!==0);if(I>=0)return`无法匹配: excludeMatches[${I}] 查找结果不为空`}return N.length?N.at(-1)[0]:m[0][0]},h=p=>typeof p=="object"&&p!==null&&!Array.isArray(p),d=Q(()=>{if(!l.value)return"";const p=(()=>{try{return Lf.parse(l.value)}catch(b){return b}})();if(p instanceof Error)return`非法格式: ${p.message}`;if(!h(p))return"非法格式: 请使用对象格式";if(typeof p.id=="string"){if(p.id!==s.value.appId)return"非法格式: id 不匹配 appId";if(!Array.isArray(p.groups))return"非法格式: groups 不是数组";if(p.groups.length!==1)return"非法格式: groups 长度不为 1";const b=p.groups[0];if(!(b!=null&&b.rules))return"非法格式: groups[0].rules 非法";const w=Array.isArray(b.rules)?b.rules:[b.rules];if(w.length!==1)return"非法格式: groups[0].rules 长度不为 1";const k=typeof w[0]=="string"?{matches:w[0]}:w[0];return h(k)?f(k):"非法格式: rules[0] 非法"}if(p.rules){const b=Array.isArray(p.rules)?p.rules:[p.rules];if(b.length!==1)return"非法格式: rules 长度不为 1";const w=typeof b[0]=="string"?{matches:b[0]}:b[0];return h(w)?f(w):"非法格式: rules[0] 非法"}return f(p)}),v=Q(()=>o.value&&l.value&&typeof d.value=="string"?d.value:""),g=Q(()=>typeof d.value=="string"?null:d.value);return(p,b)=>{const w=wa("SvgIcon"),k=ws,E=jf;return ct(),_e(uo,{initialValue:{top:40,right:Math.max(315,12*A(lv)+135),width:Math.max(480,A(uv)*.3)},minWidth:300,sizeDraggable:"",class:"box-shadow-dim",show:p.show},{default:T(({onRef:N})=>[H("div",zb,[H("div",Bb,[b[3]||(b[3]=H("div",null,"测试规则",-1)),H("div",{"flex-1":"","cursor-move":"",ref:N},null,512),O(k,{onClick:b[0]||(b[0]=x=>p.onUpdateShow(!p.show)),text:"",title:"最小化"},{icon:T(()=>[O(w,{name:"minus"})]),_:1})]),O(E,{value:A(o),"onUpdate:value":b[1]||(b[1]=x=>ya(o)?o.value=x:null),type:"textarea",placeholder:"请输入单个规则测试",size:"small",class:"gkd_code m-b-4px",autosize:{minRows:10,maxRows:20}},null,8,["value"]),H("div",Db,[A(v)?(ct(),Oe("div",Fb,gt(A(v)),1)):A(g)?(ct(),_e(k,{key:1,onClick:b[2]||(b[2]=x=>A(e).updateFocusNode(A(g))),size:"small",style:ti(A(as)(A(g),A(a)))},{default:T(()=>[jt(gt(A(ba)(A(g))),1)]),_:1},8,["style"])):Ze("",!0)])])]),_:1},8,["initialValue","show"])}}}),Ub=["src"],Hb={absolute:"","left-2px":"","top-2px":"","p-1px":"","z-1":"","text-13px":"",class:"leading-[1] bg-[rgba(256,256,256,0.7)]"},Wb={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":""},Vb={key:1,absolute:"","right-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":""},Qb=It({__name:"MiniHoverImg",props:{imgRef:{},imgHover:{type:Boolean},screenshotUrl:{},hoverPosition:{},hoverPositionStyle:{},boxHoverPosition:{},boxHoverPerPosition:{}},setup(t){const e=t,n=n1(Q(()=>e.imgRef));return(i,a)=>(ct(),_e(If,{to:"body"},[Cf(H("div",{style:ti({left:A(n).right.value+4+"px",top:A(n).top.value+"px"}),"pointer-events-none":"",fixed:"","overflow-hidden":"","z-2":"","bg-white":"","h-200px":"","w-200px":"","border-1px":"","border-indigo-600":"","border-dashed":""},[H("img",{src:i.screenshotUrl,"object-contain":"",absolute:"","left-0":"","top-0":"",style:ti(i.hoverPositionStyle),"w-1000px":""},null,12,Ub),H("div",Hb,gt(`${i.hoverPosition.ox.toFixed(0)},${i.hoverPosition.oy.toFixed(0)}`),1),i.boxHoverPosition?(ct(),Oe("div",Wb,[H("div",null,gt(i.boxHoverPosition.top.toFixed(0)),1),H("div",null,gt(i.boxHoverPosition.left.toFixed(0)+","+i.boxHoverPosition.right.toFixed(0)),1),H("div",null,gt(i.boxHoverPosition.bottom.toFixed(0)),1)])):Ze("",!0),i.boxHoverPerPosition?(ct(),Oe("div",Vb,[H("div",null,gt(i.boxHoverPerPosition.top),1),H("div",null,gt(i.boxHoverPerPosition.left+","+i.boxHoverPerPosition.right),1),H("div",null,gt(i.boxHoverPerPosition.bottom),1)])):Ze("",!0),a[0]||(a[0]=H("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(
268
- to left,
269
- transparent 0%,
270
- transparent 50%,
271
- #fff 50%,
272
- #fff 100%
273
- )`,"background-position-x":"1.5px"}},null,-1)),a[1]||(a[1]=H("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(
274
- to top,
275
- transparent 0%,
276
- transparent 50%,
277
- #fff 50%,
278
- #fff 100%
279
- )`,"background-position-y":"1.5px"}},null,-1))],4),[[Sf,i.imgHover]])]))}}),Gb={key:0,flex:"","flex-col":"",relative:"","h-full":"","p-2px":"","box-border":"","overflow-hidden":""},Jb=["src"],Yb={"pointer-events-none":"",absolute:"","left-2px":"","top-2px":"",size:"[calc(100%-4px)]"},Xb={absolute:"","z-4":"","pointer-events-none":"","left-0":"","top-0":"","text-12px":"",leading:"100%",flex:"","gap-4px":""},Zb={"p-1px":"",bg:"#ffffff70"},tw={"p-1px":"",bg:"#ffffff70"},ew=It({__name:"ScreenshotCard",setup(t){const e=Mi(),{updatePosition:n}=e,i=ji(e),{focusNode:a,screenshotUrl:s}=i,o=Q(()=>e.snapshot),l=qt(),c=qt(!1),f=N=>{const x=l.value;if(!x)return;const m=x.getBoundingClientRect(),C=m.width/x.naturalWidth*x.naturalHeight,q=(m.height-C)/2,I=(N.clientX-m.left)/m.width*x.naturalWidth,F=(N.clientY-m.top-q)/C*x.naturalHeight;n({x:I,y:F})},h=N=>`${N*100}%`,d=r1(l),v=Q(()=>{var I;const N=l.value,x=(I=a.value)==null?void 0:I.attr;if(!a.value||!N||!x||!c.value)return"";const m=d.width.value,C=d.height.value,q=m/N.naturalWidth*N.naturalHeight;return{left:`calc(${h(x.left/N.naturalWidth)} - 2px)`,width:`calc(${h((x.right-x.left)/N.naturalWidth)} + 2px)`,top:`calc(${h((x.top/N.naturalHeight*q+(C-q)/2)/C)} - 2px)`,height:`calc(${h((x.bottom-x.top)/N.naturalHeight*q/C)} + 2px)`}}),g=qt(!1),p=qt({ox:0,oy:0}),b=Q(()=>{var C;const N=(C=a.value)==null?void 0:C.attr;if(!N)return;const{ox:x,oy:m}=p.value;return{left:x-N.left,right:N.right-x,top:m-N.top,bottom:N.bottom-m}}),w=Q(()=>{var I;if(!((I=a.value)==null?void 0:I.attr)||!b.value)return;const{bottom:x,left:m,right:C,top:q}=b.value;return{left:(m/(C+m)).toFixed(3),right:(C/(C+m)).toFixed(3),top:(q/(q+x)).toFixed(3),bottom:(x/(q+x)).toFixed(3)}}),k=qt({left:"0",top:"0"}),E=N=>{const x=l.value;if(!x)return;const m=x.getBoundingClientRect(),C=m.width/x.naturalWidth*x.naturalHeight,q=(m.height-C)/2,I=(N.clientX-m.left)/m.width*x.naturalWidth,F=(N.clientY-m.top-q)/C*x.naturalHeight;p.value={ox:I,oy:F},k.value={left:-(I-.1*x.naturalWidth)/x.naturalWidth*1e3+"px",top:-(F-.1*x.naturalWidth)/x.naturalWidth*1e3+"px"}};return(N,x)=>A(s)?(ct(),Oe("div",Gb,[H("img",{ref_key:"imgRef",ref:l,src:A(s),onClick:f,"cursor-crosshair":"","object-contain":"","h-full":"",class:"max-w-[calc(var(--gkd-w)*0.35)]",onMouseover:x[0]||(x[0]=m=>g.value=!0),onMouseleave:x[1]||(x[1]=m=>g.value=!1),onMousemove:E,onLoad:x[2]||(x[2]=m=>c.value=!0)},null,40,Jb),H("div",Yb,[H("div",{style:ti(A(v)),absolute:"","transition-all-300":"","b-1px":"","b-blue":"","b-solid":""},x[3]||(x[3]=[H("div",{absolute:"","left-0":"","top-0":"","bottom-0":"","right-0":"","b-solid":"","b-1px":"","b-red":""},null,-1)]),4)]),H("div",Xb,[H("div",Zb,gt(`${A(o).screenWidth}x${A(o).screenHeight}`),1),H("div",tw,gt(A(Of)(A(o).id).format("YYYY-MM-DD HH:mm:ss")),1)]),A(l)?(ct(),_e(Qb,{key:0,imgHover:A(g),imgRef:A(l),boxHoverPerPosition:A(w),boxHoverPosition:A(b),hoverPositionStyle:A(k),hoverPosition:A(p),screenshotUrl:A(s)},null,8,["imgHover","imgRef","boxHoverPerPosition","boxHoverPosition","hoverPositionStyle","hoverPosition","screenshotUrl"])):Ze("",!0)])):Ze("",!0)}});var Za={},ts={},yf;function nw(){if(yf)return ts;yf=1,Object.defineProperty(ts,"__esModule",{value:!0});function t(a){return String.fromCharCode(parseInt(a.slice(1),16))}function e(a){return btoa(encodeURIComponent(a).replace(/%[0-9A-F]{2}/g,t))}ts.encode=e;function n(a){return`%${`00${a.charCodeAt(0).toString(16)}`.slice(-2)}`}function i(a){return decodeURIComponent(Array.from(atob(a),n).join(""))}return ts.decode=i,ts}var bf;function rw(){if(bf)return Za;bf=1,Object.defineProperty(Za,"__esModule",{value:!0});const t=nw();function e(i){return t.decode(i.replace(/\-/g,"+").replace(/_/g,"/"))}Za.decode=e;function n(i){return t.encode(i).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,"")}return Za.encode=n,Za}var wf=rw();const iw={"bg-white":"","b-1px":"","b-solid":"","b-gray-200":"","rounded-4px":"","p-8px":""},aw={flex:"","m-b-4px":"","pr-4px":""},sw={key:0,underline:"","leading-20px":"","decoration-1":"","m-r-4px":"",title:"查询数量"},ow=["title"],lw={flex:"","gap-8px":"","flex-wrap":""},uw=It({__name:"SearchCard",props:{show:{type:Boolean},onUpdateShow:{type:Function,default:gu}},setup(t){const e=Af(),{snapshotImportId:n,snapshotImageId:i}=Rf(),a=Mi(),{updateFocusNode:s}=a,o=ji(a),l=o.snapshot,c=o.rootNode,{focusNode:f}=o,h=qt(""),d=mu([]),v=qt([]),g=m=>{const C=S1(()=>Vs(m),I=>typeof I=="string"?I:I instanceof Rn?"非法选择器:"+I.outMessage:"非法选择器:"+(I instanceof Error?I.message:I));if(d.find(I=>typeof I.selector=="object"&&I.selector.toString()==C.toString())){Fr.warning("不可重复选择");return}const q=C.querySelectorAll(c.value);if(q.length==0){Fr.success("没有选择到节点");return}return Fr.success(`选择到 ${q.length} 个节点`),d.unshift({selector:C,nodes:q,key:Date.now()}),q.length},p=m=>{if(d.find(I=>typeof I.selector=="string"&&I.selector.toString()==m)){Fr.warning("不可重复搜索");return}const C=[],q=[c.value];for(;q.length>0;){const I=q.pop();ba(I).includes(m)&&C.push(I),q.push(...[...I.children].reverse())}if(C.length==0){Fr.success("没有搜索到节点");return}return Fr.success(`搜索到 ${C.length} 个节点`),d.unshift({selector:m,nodes:C,key:Date.now()}),C.length},b=()=>{const m=d[0],C=m.nodes[0];Array.isArray(C)?typeof m.selector=="object"&&s(C):s(C);const q=new Set(d.map(F=>F.key)),I=v.value.filter(F=>q.has(F));I.push(m.key),v.value=I},w=Fc(()=>{const m=h.value.trim();if(m){if(E.value){if(!g(m))return}else if(!p(m))return;b()}});lo(async()=>{await Lb;let m=0;e.query.gkd&&(m+=g(wf.decode(e.query.gkd))||0),e.query.str&&(m+=p(e.query.str)||0),m>0&&b()});const k=Fc(async m=>{var Ot,Dt,Gt;const C=i[l.value.id],q=n[l.value.id],I=q?Pc(q):void 0,F=C?a1(C):void 0,B=m.selector,K=m.nodes[0],lt=[((Ot=K.quickFind)!=null?Ot:K.idQf)&&K.attr.id&&B.fastQueryList.some(Lt=>Lt instanceof Qe.Id&&Lt.value===K.attr.id),((Dt=K.quickFind)!=null?Dt:K.idQf)&&K.attr.vid&&B.fastQueryList.some(Lt=>Lt instanceof Qe.Vid&&Lt.value===K.attr.vid),((Gt=K.quickFind)!=null?Gt:K.textQf)&&K.attr.text&&B.fastQueryList.some(Lt=>Lt instanceof Qe.Text&&Lt.value===K.attr.text)].some(Boolean),pe={id:l.value.appId,name:Gn(l.value).name,groups:[{key:1,name:`[ChangeMe]规则名称-${Of().format("YYYY-MM-DD HH:mm:ss")}`,desc:"[ChangeMe]本规则由GKD网页端审查工具生成",rules:[{fastQuery:lt||void 0,activityIds:l.value.activityId,matches:B.toString(),exampleUrls:F,snapshotUrls:I}]}]};Yn(Lf.stringify(pe,void 0,2))}),E=qt(!0),N=Q(()=>n[l.value.id]),x=m=>{if(!N.value)return;const C=new URL(Pc(n[l.value.id]));typeof m.selector=="object"?C.searchParams.set("gkd",wf.encode(m.selector.toString())):C.searchParams.set("str",m.selector.toString()),Yn(C.toString())};return(m,C)=>{const q=m1,I=Tf,F=p1,B=wa("SvgIcon"),K=ws,lt=jf,pe=g1,Ot=N1,Dt=Df,Gt=M1,Lt=O1;return ct(),_e(uo,{initialValue:{top:40,right:Math.max(315,12*A(lv)+135),width:Math.max(480,A(uv)*.3)},minWidth:300,sizeDraggable:"",class:"box-shadow-dim",show:m.show},{default:T(({onRef:oe})=>[H("div",iw,[H("div",aw,[O(F,{value:A(E),"onUpdate:value":C[0]||(C[0]=at=>ya(E)?E.value=at:null)},{default:T(()=>[O(I,null,{default:T(()=>[O(q,{value:!1},{default:T(()=>C[4]||(C[4]=[jt(" 字符搜索 ")])),_:1}),O(q,{value:!0},{default:T(()=>C[5]||(C[5]=[jt(" 选择器查询 ")])),_:1})]),_:1})]),_:1},8,["value"]),H("div",{"flex-1":"","cursor-move":"",ref:oe},null,512),O(K,{onClick:C[1]||(C[1]=at=>m.onUpdateShow(!m.show)),text:"",title:"最小化"},{icon:T(()=>[O(B,{name:"minus"})]),_:1})]),O(pe,null,{default:T(()=>[O(lt,{value:A(h),"onUpdate:value":C[2]||(C[2]=at=>ya(h)?h.value=at:null),placeholder:A(E)?"请输入选择器":"请输入字符",onKeyup:i1(A(w),["enter"]),inputProps:{class:"gkd_code"}},null,8,["value","placeholder","onKeyup"]),O(K,{onClick:A(w)},{icon:T(()=>[O(B,{name:"search"})]),_:1},8,["onClick"])]),_:1}),C[9]||(C[9]=H("div",{"p-5px":""},null,-1)),O(Lt,{expandedNames:A(v),"onUpdate:expandedNames":C[3]||(C[3]=at=>ya(v)?v.value=at:null)},{default:T(()=>[(ct(!0),Oe(Ur,null,rs(A(d),(at,Ue)=>(ct(),_e(Gt,{key:at.key,name:at.key},{header:T(()=>[at.nodes.length>1?(ct(),Oe("span",sw,gt(at.nodes.length),1)):Ze("",!0),H("span",{"break-all":"","px-4px":"","leading-20px":"",bg:"#eee",title:typeof at.selector=="object"?"选择器":"搜索字符"},gt(at.selector.toString()),9,ow)]),"header-extra":T(()=>[typeof at.selector=="object"&&at.selector.canCopy?(ct(),_e(K,{key:0,size:"small",onClick:Zo(ne=>A(k)(at),["stop"]),title:"复制规则"},{icon:T(()=>[O(B,{name:"copy"})]),_:2},1032,["onClick"])):Ze("",!0),C[6]||(C[6]=H("div",{"p-l-4px":""},null,-1)),A(N)?(ct(),_e(K,{key:1,size:"small",title:typeof at.selector=="object"?"复制查询链接":"复制搜索链接",onClick:Zo(ne=>x(at),["stop"])},{icon:T(()=>[O(B,{name:"share"})]),_:2},1032,["title","onClick"])):Ze("",!0),C[7]||(C[7]=H("div",{"p-l-4px":""},null,-1)),O(K,{size:"small",onClick:Zo(ne=>A(d).splice(Ue,1),["stop"]),title:"删除记录"},{icon:T(()=>[O(B,{name:"delete"})]),_:2},1032,["onClick"])]),default:T(()=>[O(Dt,{xScrollable:"",style:{"max-height":"400px"}},{default:T(()=>[H("div",lw,[typeof at.selector=="string"||at.selector.connectKeys.length===0?(ct(!0),Oe(Ur,{key:0},rs(at.nodes,ne=>(ct(),_e(K,{key:ne.id,onClick:jn=>A(s)(ne),size:"small",style:ti(A(as)(ne,A(f)))},{default:T(()=>[jt(gt(A(ba)(ne)),1)]),_:2},1032,["onClick","style"]))),128)):(ct(!0),Oe(Ur,{key:1},rs(at.nodes,(ne,jn)=>(ct(),_e(Ot,{key:jn},{default:T(()=>[O(K,{onClick:D=>A(s)(ne),size:"small",style:ti(A(as)(ne,A(f)))},{default:T(()=>[jt(gt(A(ba)(ne)),1)]),_:2},1032,["onClick","style"])]),_:2},1024))),128))]),C[8]||(C[8]=H("div",{un:"h-10px"},null,-1))]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["expandedNames"])])]),_:1},8,["initialValue","show"])}}}),xf=[],cw=It((t,e)=>{const n=Q(()=>t.tag||"div");return()=>{var s,o,l,c;const i=(((o=(s=e.slots).default)==null?void 0:o.call(s))||xf).filter(f=>typeof f.type!="symbol"),a=[];if(i.length>0&&a.push(i[0]),i.length>1)for(let f=1;f<i.length;f++){const h=((c=(l=e.slots).gap)==null?void 0:c.call(l,{index:f-1}))||xf;a.push(...h),a.push(i[f])}return t.virtual?a:U(n.value,t,a)}},{props:["tag","virtual"]}),fw={flex:"","flex-col":"","overflow-hidden":""},hw={flex:"","items-center":"","px-8px":""},dw={flex:"","items-center":"","gap-2px":"","max-w-120px":""},vw=It({__name:"WindowCard",setup(t){const e=Nf(),n=Mi(),{updateFocusNode:i}=n,a=ji(n),s=a.snapshot,o=a.rootNode,{focusNode:l,focusTime:c}=a;let f=Number.NaN;const h=qt([]),d=qt([]);Kr([()=>l.value,()=>c.value],async()=>{if(!l.value)return;const x=l.value.id;ga().then(async()=>{var q;if(await Tc(300),x===((q=l.value)==null?void 0:q.id)){if(f===x){f=Number.NaN;return}const I=document.querySelector(`[data-node-id="${x}"]`);if(!I)return;d.value=[x],I.scrollIntoView({behavior:"smooth",block:"center"})}});let m=l.value.parent;if(!m)return;const C=new Set(h.value);for(;m;)C.add(m.id),m=m.parent;C.size==h.value.length&&h.value.every(q=>C.has(q))||(h.value=[...C])});const v=qt(),g=(x,m)=>{var C;return m.id===((C=l.value)==null?void 0:C.id)},p=x=>{const m=as(x.option,l.value);return{onClick:()=>{f=x.option.id,i(x.option)},style:{"--n-node-text-color":m.color,...m},class:"whitespace-nowrap","data-node-id":String(x.option.id)}},b=x=>ba(x.option),w=Q(()=>`${Bc(s.value).manufacturer} Android ${Bc(s.value).release||""}`),k=Q(()=>Gn(s.value).isSystem),E=Q(()=>{const x=s.value.activityId,m=s.value.appId;return!x||!m?"":x.startsWith(m)&&x[m.length]==="."?x.substring(m.length):x}),N=async()=>{Fr.success("删除成功,即将回到首页"),await Tc(2e3),e.replace({path:"/"})};return(x,m)=>{const C=_u,q=wa("SvgIcon"),I=cp,F=Df;return ct(),Oe("div",fw,[H("div",hw,[O(A(cw),{flex:"","flex-wrap":"","items-center":"","gap-8px":"",gkd_code:""},{gap:T(()=>m[8]||(m[8]=[H("div",{"w-1px":"","bg-gray":"","h-12px":""},null,-1)])),default:T(()=>[O(C,null,{trigger:T(()=>[H("div",{onClick:m[0]||(m[0]=B=>A(Yn)(A(w)))},gt(A(w)),1)]),default:T(()=>[m[9]||(m[9]=jt(" 设备名称 "))]),_:1}),O(C,null,{trigger:T(()=>[H("div",{class:Gs({"opacity-50":!A(Dc)(A(s)).versionName})},gt(A(Dc)(A(s)).versionName||"null"),3)]),default:T(()=>[m[10]||(m[10]=jt(" GKD 版本 "))]),_:1}),H("div",dw,[A(k)?(ct(),_e(C,{key:0},{trigger:T(()=>[O(q,{name:"system"})]),default:T(()=>[jt(" "+gt(`${A(Gn)(A(s)).name} 是一个系统应用`),1)]),_:1})):Ze("",!0),O(C,null,{trigger:T(()=>[H("div",{onClick:m[1]||(m[1]=B=>A(Yn)(A(Gn)(A(s)).name))},gt(A(Gn)(A(s)).name),1)]),default:T(()=>[m[11]||(m[11]=jt(" 应用名称 "))]),_:1})]),O(C,null,{trigger:T(()=>[H("div",{onClick:m[2]||(m[2]=B=>A(Yn)(A(Gn)(A(s)).versionName))},gt(A(Gn)(A(s)).versionName),1)]),default:T(()=>[m[12]||(m[12]=jt(" 版本名称 "))]),_:1}),O(C,null,{trigger:T(()=>[H("div",{onClick:m[3]||(m[3]=B=>A(Yn)(A(Gn)(A(s)).versionCode.toString()))},gt(A(Gn)(A(s)).versionCode),1)]),default:T(()=>[m[13]||(m[13]=jt(" 版本代码 "))]),_:1}),O(C,null,{trigger:T(()=>[H("div",{onClick:m[4]||(m[4]=B=>A(Yn)(A(s).appId))},gt(A(s).appId),1)]),default:T(()=>[m[14]||(m[14]=jt(" 应用ID "))]),_:1}),O(C,null,{trigger:T(()=>[H("div",{onClick:m[5]||(m[5]=B=>A(Yn)(A(E))),class:Gs({"opacity-50":!A(E)})},gt(A(E)||"null"),3)]),default:T(()=>[m[15]||(m[15]=jt(" 界面ID "))]),_:1})]),_:1}),m[16]||(m[16]=H("div",{"flex-1":""},null,-1)),O(w1,{class:"ml-8px",snapshot:A(s),onDelete:N,showPreview:!1},null,8,["snapshot"])]),m[17]||(m[17]=H("div",{"h-1px":"","mt-4px":"",bg:"#efeff5"},null,-1)),O(F,{xScrollable:"",class:"flex-1"},{default:T(()=>[O(I,{class:"mb-24px mr-24px",ref_key:"treeRef",ref:v,virtualScroll:"",showLine:"",blockLine:"",keyField:"id",expandedKeys:A(h),"onUpdate:expandedKeys":m[6]||(m[6]=B=>ya(h)?h.value=B:null),selectedKeys:A(d),"onUpdate:selectedKeys":m[7]||(m[7]=B=>ya(d)?d.value=B:null),data:[A(o)],filter:g,nodeProps:p,renderLabel:b},null,8,["expandedKeys","selectedKeys","data","filter","nodeProps","renderLabel"])]),_:1})])}}}),pw={"h-full":"",flex:"","gap-5px":""},mw={"w-28px":"","py-8px":"",flex:"","flex-col":"","gap-16px":""},gw={flex:"","justify-center":"",href:"https://gkd.li/guide/snapshot#share-note",target:"_blank",rel:"noopener noreferrer"},_w={key:1,flex:"","justify-center":"","pt-80px":""},$w=It({__name:"SnapshotPage",setup(t){const e=Mi(),n=ji(e),{snapshot:i,rootNode:a,loading:s,redirected:o}=n;Xn(()=>{s.value?Oc.start():Oc.finish()});const l=tl("searchShow",!0,sessionStorage),c=tl("ruleShow",!1,sessionStorage),f=tl("attrShow",!0,sessionStorage),h=()=>{Fr.info("暂未实现")};return(d,v)=>{const g=wa("SvgIcon"),p=Pf,b=wa("RouterLink"),w=ws,k=_u;return A(i)&&A(a)?(ct(),Oe(Ur,{key:0},[H("div",pw,[H("div",mw,[O(k,{placement:"right"},{trigger:T(()=>[O(w,{text:""},{icon:T(()=>[O(b,{to:"/",title:"",color:"inherit"},{default:T(()=>[O(p,{size:"24"},{default:T(()=>[O(g,{name:"home"})]),_:1})]),_:1})]),_:1})]),default:T(()=>[v[6]||(v[6]=jt(" 回到首页 "))]),_:1}),O(k,{placement:"right"},{trigger:T(()=>[O(w,{onClick:h,text:""},{icon:T(()=>[O(p,{size:"24"},{default:T(()=>[O(g,{name:"settings"})]),_:1})]),_:1})]),default:T(()=>[v[7]||(v[7]=jt(" 设置 "))]),_:1}),v[12]||(v[12]=H("div",null,null,-1)),O(k,{placement:"right"},{trigger:T(()=>[O(w,{text:"",onClick:v[0]||(v[0]=E=>l.value=!A(l))},{icon:T(()=>[O(p,{size:"24"},{default:T(()=>[O(g,{name:"search-list"})]),_:1})]),_:1})]),default:T(()=>[v[8]||(v[8]=jt(" 搜索面板 "))]),_:1}),O(k,{placement:"right"},{trigger:T(()=>[O(w,{onClick:v[1]||(v[1]=E=>f.value=!A(f)),text:""},{icon:T(()=>[O(p,{size:"24"},{default:T(()=>[O(g,{name:"prop"})]),_:1})]),_:1})]),default:T(()=>[v[9]||(v[9]=jt(" 属性面板 "))]),_:1}),O(k,{placement:"right"},{trigger:T(()=>[O(w,{onClick:v[2]||(v[2]=E=>c.value=!A(c)),text:""},{icon:T(()=>[O(p,{size:"24"},{default:T(()=>[O(g,{name:"test"})]),_:1})]),_:1})]),default:T(()=>[v[10]||(v[10]=jt(" 测试规则 "))]),_:1}),v[13]||(v[13]=H("div",null,null,-1)),O(k,{placement:"right"},{trigger:T(()=>[H("a",gw,[O(w,{text:""},{icon:T(()=>[O(p,{size:"24"},{default:T(()=>[O(g,{name:"warn"})]),_:1})]),_:1})])]),default:T(()=>[v[11]||(v[11]=jt(" 分享须知 "))]),_:1})]),O(ew),O(vw,{class:"flex-1"})]),O(uw,{show:A(l),onUpdateShow:v[3]||(v[3]=E=>l.value=E)},null,8,["show"]),O(Kb,{show:A(c),onUpdateShow:v[4]||(v[4]=E=>c.value=E)},null,8,["show"]),O(gp,{show:A(f),onUpdateShow:v[5]||(v[5]=E=>f.value=E)},null,8,["show"]),O(yp)],64)):!A(s)&&!A(o)?(ct(),Oe("div",_w,v[14]||(v[14]=[H("div",null,"快照数据缺失",-1)]))):Ze("",!0)}}});export{$w as default};
280
- //# sourceMappingURL=SnapshotPage-TZ0BPxvr.js.map