@gkd-kit/inspect 0.0.1724939132543 → 0.0.1726227642140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-Dr-v-0_y.js +17 -0
- package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-Dr-v-0_y.js.map +1 -0
- package/dist/assets/DevicePage-99_3J34X.js +49 -0
- package/dist/assets/{DevicePage-DLHOFccW.js.map → DevicePage-99_3J34X.js.map} +1 -1
- package/dist/assets/HomePage-9rLah5Wp.js +119 -0
- package/dist/assets/HomePage-9rLah5Wp.js.map +1 -0
- package/dist/assets/ImportPage-Dk5VjEU_.js +2 -0
- package/dist/assets/{ImportPage-gMpnvfZI.js.map → ImportPage-Dk5VjEU_.js.map} +1 -1
- package/dist/assets/PreviewSharePage-2K9o878c.js +2 -0
- package/dist/assets/{PreviewSharePage-Deko6lrO.js.map → PreviewSharePage-2K9o878c.js.map} +1 -1
- package/dist/assets/SelectorPage-B_7oLClp.js +2 -0
- package/dist/assets/SelectorPage-B_7oLClp.js.map +1 -0
- package/dist/assets/SnapshotPage-Bg4c8Oph.js +279 -0
- package/dist/assets/SnapshotPage-Bg4c8Oph.js.map +1 -0
- package/dist/assets/{TrackGraph-CHeOoYTg.js → TrackGraph-DjnqLrXm.js} +2 -2
- package/dist/assets/{TrackGraph-CHeOoYTg.js.map → TrackGraph-DjnqLrXm.js.map} +1 -1
- package/dist/assets/_404Page-B2M4OTwT.js +2 -0
- package/dist/assets/_404Page-B2M4OTwT.js.map +1 -0
- package/dist/assets/{dayjs.min-LhczAOpU.js → dayjs.min-BS9GBYxP.js} +27 -27
- package/dist/assets/dayjs.min-BS9GBYxP.js.map +1 -0
- package/dist/assets/{error-BYB57NEs.js → error-CMGw743e.js} +2 -2
- package/dist/assets/{error-BYB57NEs.js.map → error-CMGw743e.js.map} +1 -1
- package/dist/assets/{export-CIlUfZHW.js → export-_87gDXL6.js} +2 -2
- package/dist/assets/{export-CIlUfZHW.js.map → export-_87gDXL6.js.map} +1 -1
- package/dist/assets/{fetch-C2zNU7qy.js → fetch-BmeNEwPq.js} +2 -2
- package/dist/assets/fetch-BmeNEwPq.js.map +1 -0
- package/dist/assets/{import-DfEWUxfp.js → import-DIf6n_TM.js} +2 -2
- package/dist/assets/{import-DfEWUxfp.js.map → import-DIf6n_TM.js.map} +1 -1
- package/dist/assets/{index-BV9z1P1k.js → index-BhB6U9Pt.js} +2 -2
- package/dist/assets/index-BhB6U9Pt.js.map +1 -0
- package/dist/assets/index-CYOhDK3x.js +561 -0
- package/dist/assets/index-CYOhDK3x.js.map +1 -0
- package/dist/assets/{index-Xe8rbuNP.js → index-D52JPXbN.js} +11 -11
- package/dist/assets/index-D52JPXbN.js.map +1 -0
- package/dist/assets/polyfills-qB0P6p8B.js +1 -0
- package/dist/assets/{table-bzmBkVJL.js → table-CAKFQsKO.js} +21 -21
- package/dist/assets/table-CAKFQsKO.js.map +1 -0
- package/dist/index.html +3 -3
- package/package.json +14 -15
- package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-Df2iJOjy.js +0 -17
- package/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-Df2iJOjy.js.map +0 -1
- package/dist/assets/DevicePage-DLHOFccW.js +0 -49
- package/dist/assets/HomePage-BeCxcFEe.js +0 -119
- package/dist/assets/HomePage-BeCxcFEe.js.map +0 -1
- package/dist/assets/ImportPage-gMpnvfZI.js +0 -2
- package/dist/assets/PreviewSharePage-Deko6lrO.js +0 -2
- package/dist/assets/SelectorPage-C7ee-UE1.js +0 -2
- package/dist/assets/SelectorPage-C7ee-UE1.js.map +0 -1
- package/dist/assets/SnapshotPage-CNdcl2gK.js +0 -279
- package/dist/assets/SnapshotPage-CNdcl2gK.js.map +0 -1
- package/dist/assets/_404Page-DukTdgke.js +0 -2
- package/dist/assets/_404Page-DukTdgke.js.map +0 -1
- package/dist/assets/dayjs.min-LhczAOpU.js.map +0 -1
- package/dist/assets/fetch-C2zNU7qy.js.map +0 -1
- package/dist/assets/index-BV9z1P1k.js.map +0 -1
- package/dist/assets/index-BiTh0rHq.js +0 -561
- package/dist/assets/index-BiTh0rHq.js.map +0 -1
- package/dist/assets/index-Xe8rbuNP.js.map +0 -1
- package/dist/assets/polyfills-DUcgW2kq.js +0 -1
- package/dist/assets/table-bzmBkVJL.js.map +0 -1
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724939132543/files/dist/assets/TrackGraph-CHeOoYTg.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724939132543/files/dist/assets/index-BiTh0rHq.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724939132543/files/dist/assets/index-DlhjoJf3.css","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724939132543/files/dist/assets/dayjs.min-LhczAOpU.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724939132543/files/dist/assets/index-Xe8rbuNP.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724939132543/files/dist/assets/fetch-C2zNU7qy.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{h as Rt,v as L,a as tt,g as jn,e as X,f as it,b as It,u as Oa,a0 as r1,a1 as Pl,a2 as i1,a3 as ja,d as Rl,r as me,m as Z,l as ma,j as Ji,q as Ll,a4 as Ol,y as Ce,a5 as a1,t as wt,a6 as Hc,a7 as Vc,a8 as Qc,a9 as o1,aa as Le,ab as mi,ac as s1,ad as Ju,ae as Gc,af as l1,ag as Zn,ah as u1,ai as c1,aj as f1,c as h1,ak as d1,al as v1,n as bs,N as p1,x as _1,$ as m1,am as ks,an as g1,Q as za,ao as y1,p as Jc,i as w1,B as Fi,T as Pr,ap as Cs,o as va,aq as Yu,ar as Xu,as as ga,A as At,R as jl,at as po,C as et,au as de,D as ae,av as Yc,G as E,I as zn,K as A,O as ge,aw as Ps,ax as Kr,ay as b1,F as q,E as B,az as wa,M as Tt,L as ye,aA as k1,P as Eo,aB as _o,W as Xc,aC as Bi,aD as Zc,H as Ki,V as C1,aE as xs,aF as x1,Z as S1,aG as Zu,aH as $1,Y as tc,aI as E1,aJ as N1,J as I1,_ as q1}from"./index-BiTh0rHq.js";import{_ as A1}from"./ActionCard.vue_vue_type_script_setup_true_lang-Df2iJOjy.js";import{f as Rs,c as er,b as ci,m as En,a as tf,l as ec,g as T1}from"./fetch-C2zNU7qy.js";import{e as M1,f as P1,g as R1}from"./export-CIlUfZHW.js";import{h as Di,C as L1,e as O1,c as nc,d as j1,V as z1,f as rc,N as ic,i as ef,j as F1,_ as nf,k as Ui,l as D1,m as ac,n as B1,o as K1,b as U1,g as tr,p as W1,q as oc,r as sc,s as H1}from"./dayjs.min-LhczAOpU.js";import{N as Fa,r as rf,_ as af,l as of}from"./index-Xe8rbuNP.js";import{u as sf,a as V1}from"./index-BV9z1P1k.js";import{e as Q1,a as lc}from"./error-BYB57NEs.js";import"./index-CE_5kTG8.js";function lf(t){return typeof t=="string"?`s-${t}`:`n-${t}`}const G1=Rt({name:"ChevronLeft",render(){return L("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},L("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"}))}}),J1=Rt({name:"Switcher",render(){return L("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},L("path",{d:"M12 8l10 8l-10 8z"}))}}),Ut="0!important",uf="-1px!important";function Oi(t){return it(`${t}-type`,[X("& +",[tt("button",{},[it(`${t}-type`,[It("border",{borderLeftWidth:Ut}),It("state-border",{left:uf})])])])])}function ji(t){return it(`${t}-type`,[X("& +",[tt("button",[it(`${t}-type`,[It("border",{borderTopWidth:Ut}),It("state-border",{top:uf})])])])])}const Y1=tt("button-group",`
|
|
3
|
-
flex-wrap: nowrap;
|
|
4
|
-
display: inline-flex;
|
|
5
|
-
position: relative;
|
|
6
|
-
`,[jn("vertical",{flexDirection:"row"},[jn("rtl",[tt("button",[X("&:first-child:not(:last-child)",`
|
|
7
|
-
margin-right: ${Ut};
|
|
8
|
-
border-top-right-radius: ${Ut};
|
|
9
|
-
border-bottom-right-radius: ${Ut};
|
|
10
|
-
`),X("&:last-child:not(:first-child)",`
|
|
11
|
-
margin-left: ${Ut};
|
|
12
|
-
border-top-left-radius: ${Ut};
|
|
13
|
-
border-bottom-left-radius: ${Ut};
|
|
14
|
-
`),X("&:not(:first-child):not(:last-child)",`
|
|
15
|
-
margin-left: ${Ut};
|
|
16
|
-
margin-right: ${Ut};
|
|
17
|
-
border-radius: ${Ut};
|
|
18
|
-
`),Oi("default"),it("ghost",[Oi("primary"),Oi("info"),Oi("success"),Oi("warning"),Oi("error")])])])]),it("vertical",{flexDirection:"column"},[tt("button",[X("&:first-child:not(:last-child)",`
|
|
19
|
-
margin-bottom: ${Ut};
|
|
20
|
-
margin-left: ${Ut};
|
|
21
|
-
margin-right: ${Ut};
|
|
22
|
-
border-bottom-left-radius: ${Ut};
|
|
23
|
-
border-bottom-right-radius: ${Ut};
|
|
24
|
-
`),X("&:last-child:not(:first-child)",`
|
|
25
|
-
margin-top: ${Ut};
|
|
26
|
-
margin-left: ${Ut};
|
|
27
|
-
margin-right: ${Ut};
|
|
28
|
-
border-top-left-radius: ${Ut};
|
|
29
|
-
border-top-right-radius: ${Ut};
|
|
30
|
-
`),X("&:not(:first-child):not(:last-child)",`
|
|
31
|
-
margin: ${Ut};
|
|
32
|
-
border-radius: ${Ut};
|
|
33
|
-
`),ji("default"),it("ghost",[ji("primary"),ji("info"),ji("success"),ji("warning"),ji("error")])])])]),X1={size:{type:String,default:void 0},vertical:Boolean},Z1=Rt({name:"ButtonGroup",props:X1,setup(t){const{mergedClsPrefixRef:e,mergedRtlRef:n}=Oa(t);return r1("-button-group",Y1,e),Pl(i1,t),{rtlEnabled:ja("ButtonGroup",n,e),mergedClsPrefix:e}},render(){const{mergedClsPrefix:t}=this;return L("div",{class:[`${t}-button-group`,this.rtlEnabled&&`${t}-button-group--rtl`,this.vertical&&`${t}-button-group--vertical`],role:"group"},this.$slots)}});function tv(t){const{fontWeight:e,textColor1:n,textColor2:r,textColorDisabled:a,dividerColor:o,fontSize:s}=t;return{titleFontSize:s,titleFontWeight:e,dividerColor:o,titleTextColor:n,titleTextColorDisabled:a,fontSize:s,textColor:r,arrowColor:r,arrowColorDisabled:a,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const ev={name:"Collapse",common:Rl,self:tv},nv=tt("collapse","width: 100%;",[tt("collapse-item",`
|
|
34
|
-
font-size: var(--n-font-size);
|
|
35
|
-
color: var(--n-text-color);
|
|
36
|
-
transition:
|
|
37
|
-
color .3s var(--n-bezier),
|
|
38
|
-
border-color .3s var(--n-bezier);
|
|
39
|
-
margin: var(--n-item-margin);
|
|
40
|
-
`,[it("disabled",[It("header","cursor: not-allowed;",[It("header-main",`
|
|
41
|
-
color: var(--n-title-text-color-disabled);
|
|
42
|
-
`),tt("collapse-item-arrow",`
|
|
43
|
-
color: var(--n-arrow-color-disabled);
|
|
44
|
-
`)])]),tt("collapse-item","margin-left: 32px;"),X("&:first-child","margin-top: 0;"),X("&:first-child >",[It("header","padding-top: 0;")]),it("left-arrow-placement",[It("header",[tt("collapse-item-arrow","margin-right: 4px;")])]),it("right-arrow-placement",[It("header",[tt("collapse-item-arrow","margin-left: 4px;")])]),It("content-wrapper",[It("content-inner","padding-top: 16px;"),Rs({duration:"0.15s"})]),it("active",[It("header",[it("active",[tt("collapse-item-arrow","transform: rotate(90deg);")])])]),X("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),jn("disabled",[it("trigger-area-main",[It("header",[It("header-main","cursor: pointer;"),tt("collapse-item-arrow","cursor: default;")])]),it("trigger-area-arrow",[It("header",[tt("collapse-item-arrow","cursor: pointer;")])]),it("trigger-area-extra",[It("header",[It("header-extra","cursor: pointer;")])])]),It("header",`
|
|
45
|
-
font-size: var(--n-title-font-size);
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-wrap: nowrap;
|
|
48
|
-
align-items: center;
|
|
49
|
-
transition: color .3s var(--n-bezier);
|
|
50
|
-
position: relative;
|
|
51
|
-
padding: var(--n-title-padding);
|
|
52
|
-
color: var(--n-title-text-color);
|
|
53
|
-
`,[It("header-main",`
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-wrap: nowrap;
|
|
56
|
-
align-items: center;
|
|
57
|
-
font-weight: var(--n-title-font-weight);
|
|
58
|
-
transition: color .3s var(--n-bezier);
|
|
59
|
-
flex: 1;
|
|
60
|
-
color: var(--n-title-text-color);
|
|
61
|
-
`),It("header-extra",`
|
|
62
|
-
display: flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
transition: color .3s var(--n-bezier);
|
|
65
|
-
color: var(--n-text-color);
|
|
66
|
-
`),tt("collapse-item-arrow",`
|
|
67
|
-
display: flex;
|
|
68
|
-
transition:
|
|
69
|
-
transform .15s var(--n-bezier),
|
|
70
|
-
color .3s var(--n-bezier);
|
|
71
|
-
font-size: 18px;
|
|
72
|
-
color: var(--n-arrow-color);
|
|
73
|
-
`)])])]),rv=Object.assign(Object.assign({},Ji.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},triggerAreas:{type:Array,default:()=>["main","extra","arrow"]},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),cf=Ol("n-collapse"),iv=Rt({name:"Collapse",props:rv,setup(t,{slots:e}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:a}=Oa(t),o=me(t.defaultExpandedNames),s=Z(()=>t.expandedNames),l=ma(s,o),f=Ji("Collapse","-collapse",nv,ev,t,n);function c(p){const{"onUpdate:expandedNames":_,onUpdateExpandedNames:y,onExpandedNamesChange:C}=t;y&&Ce(y,p),_&&Ce(_,p),C&&Ce(C,p),o.value=p}function h(p){const{onItemHeaderClick:_}=t;_&&Ce(_,p)}function d(p,_,y){const{accordion:C}=t,{value:b}=l;if(C)p?(c([_]),h({name:_,expanded:!0,event:y})):(c([]),h({name:_,expanded:!1,event:y}));else if(!Array.isArray(b))c([_]),h({name:_,expanded:!0,event:y});else{const x=b.slice(),S=x.findIndex(T=>_===T);~S?(x.splice(S,1),c(x),h({name:_,expanded:!1,event:y})):(x.push(_),c(x),h({name:_,expanded:!0,event:y}))}}Pl(cf,{props:t,mergedClsPrefixRef:n,expandedNamesRef:l,slots:e,toggleItem:d});const v=ja("Collapse",a,n),g=Z(()=>{const{common:{cubicBezierEaseInOut:p},self:{titleFontWeight:_,dividerColor:y,titlePadding:C,titleTextColor:b,titleTextColorDisabled:x,textColor:S,arrowColor:T,fontSize:U,titleFontSize:G,arrowColorDisabled:Y,itemMargin:vt}}=f.value;return{"--n-font-size":U,"--n-bezier":p,"--n-text-color":S,"--n-divider-color":y,"--n-title-padding":C,"--n-title-font-size":G,"--n-title-text-color":b,"--n-title-text-color-disabled":x,"--n-title-font-weight":_,"--n-arrow-color":T,"--n-arrow-color-disabled":Y,"--n-item-margin":vt}}),m=r?Ll("collapse",void 0,g,t):void 0;return{rtlEnabled:v,mergedTheme:f,mergedClsPrefix:n,cssVars:r?void 0:g,themeClass:m==null?void 0:m.themeClass,onRender:m==null?void 0:m.onRender}},render(){var t;return(t=this.onRender)===null||t===void 0||t.call(this),L("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),av=Rt({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(t){return{onceTrue:a1(wt(t,"show"))}},render(){return L(Qc,null,{default:()=>{const{show:t,displayDirective:e,onceTrue:n,clsPrefix:r}=this,a=e==="show"&&n,o=L("div",{class:`${r}-collapse-item__content-wrapper`},L("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return a?Hc(o,[[Vc,t]]):t?o:null}})}}),ov={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},sv=Rt({name:"CollapseItem",props:ov,setup(t){const{mergedRtlRef:e}=Oa(t),n=o1(),r=Le(()=>{var d;return(d=t.name)!==null&&d!==void 0?d:n}),a=mi(cf);a||s1("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:o,props:s,mergedClsPrefixRef:l,slots:f}=a,c=Z(()=>{const{value:d}=o;if(Array.isArray(d)){const{value:v}=r;return!~d.findIndex(g=>g===v)}else if(d){const{value:v}=r;return v!==d}return!0});return{rtlEnabled:ja("Collapse",e,l),collapseSlots:f,randomName:n,mergedClsPrefix:l,collapsed:c,triggerAreas:wt(s,"triggerAreas"),mergedDisplayDirective:Z(()=>{const{displayDirective:d}=t;return d||s.displayDirective}),arrowPlacement:Z(()=>s.arrowPlacement),handleClick(d){let v="main";Di(d,"arrow")&&(v="arrow"),Di(d,"extra")&&(v="extra"),s.triggerAreas.includes(v)&&a&&!t.disabled&&a.toggleItem(c.value,r.value,d)}}},render(){const{collapseSlots:t,$slots:e,arrowPlacement:n,collapsed:r,mergedDisplayDirective:a,mergedClsPrefix:o,disabled:s,triggerAreas:l}=this,f=Ju(e.header,{collapsed:r},()=>[this.title]),c=e["header-extra"]||t["header-extra"],h=e.arrow||t.arrow;return L("div",{class:[`${o}-collapse-item`,`${o}-collapse-item--${n}-arrow-placement`,s&&`${o}-collapse-item--disabled`,!r&&`${o}-collapse-item--active`,l.map(d=>`${o}-collapse-item--trigger-area-${d}`)]},L("div",{class:[`${o}-collapse-item__header`,!r&&`${o}-collapse-item__header--active`]},L("div",{class:`${o}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&f,L("div",{class:`${o}-collapse-item-arrow`,key:this.rtlEnabled?0:1,"data-arrow":!0},Ju(h,{collapsed:r},()=>{var d;return[L(Gc,{clsPrefix:o},{default:(d=t.expandIcon)!==null&&d!==void 0?d:()=>this.rtlEnabled?L(G1,null):L(L1,null)})]})),n==="left"&&f),l1(c,{collapsed:r},d=>L("div",{class:`${o}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},d))),L(av,{clsPrefix:o,displayDirective:a,show:!r},e))}}),lv={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function uv(t){const{dividerColor:e,cardColor:n,modalColor:r,popoverColor:a,tableHeaderColor:o,tableColorStriped:s,textColor1:l,textColor2:f,borderRadius:c,fontWeightStrong:h,lineHeight:d,fontSizeSmall:v,fontSizeMedium:g,fontSizeLarge:m}=t;return Object.assign(Object.assign({},lv),{fontSizeSmall:v,fontSizeMedium:g,fontSizeLarge:m,lineHeight:d,borderRadius:c,borderColor:Zn(n,e),borderColorModal:Zn(r,e),borderColorPopover:Zn(a,e),tdColor:n,tdColorModal:r,tdColorPopover:a,tdColorStriped:Zn(n,s),tdColorStripedModal:Zn(r,s),tdColorStripedPopover:Zn(a,s),thColor:Zn(n,o),thColorModal:Zn(r,o),thColorPopover:Zn(a,o),thTextColor:l,tdTextColor:f,thFontWeight:h})}const cv={name:"Table",common:Rl,self:uv};function fv(t){const{borderRadiusSmall:e,dividerColor:n,hoverColor:r,pressedColor:a,primaryColor:o,textColor3:s,textColor2:l,textColorDisabled:f,fontSize:c}=t;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:e,nodeColorHover:r,nodeColorPressed:a,nodeColorActive:h1(o,{alpha:.1}),arrowColor:s,nodeTextColor:l,nodeTextColorDisabled:f,loadingColor:o,dropMarkColor:o,lineColor:n}}const hv=u1({name:"Tree",common:Rl,peers:{Checkbox:c1,Scrollbar:f1,Empty:O1},self:fv}),dv=X([tt("table",`
|
|
74
|
-
font-size: var(--n-font-size);
|
|
75
|
-
font-variant-numeric: tabular-nums;
|
|
76
|
-
line-height: var(--n-line-height);
|
|
77
|
-
width: 100%;
|
|
78
|
-
border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
|
|
79
|
-
text-align: left;
|
|
80
|
-
border-collapse: separate;
|
|
81
|
-
border-spacing: 0;
|
|
82
|
-
overflow: hidden;
|
|
83
|
-
background-color: var(--n-td-color);
|
|
84
|
-
border-color: var(--n-merged-border-color);
|
|
85
|
-
transition:
|
|
86
|
-
background-color .3s var(--n-bezier),
|
|
87
|
-
border-color .3s var(--n-bezier),
|
|
88
|
-
color .3s var(--n-bezier);
|
|
89
|
-
--n-merged-border-color: var(--n-border-color);
|
|
90
|
-
`,[X("th",`
|
|
91
|
-
white-space: nowrap;
|
|
92
|
-
transition:
|
|
93
|
-
background-color .3s var(--n-bezier),
|
|
94
|
-
border-color .3s var(--n-bezier),
|
|
95
|
-
color .3s var(--n-bezier);
|
|
96
|
-
text-align: inherit;
|
|
97
|
-
padding: var(--n-th-padding);
|
|
98
|
-
vertical-align: inherit;
|
|
99
|
-
text-transform: none;
|
|
100
|
-
border: 0px solid var(--n-merged-border-color);
|
|
101
|
-
font-weight: var(--n-th-font-weight);
|
|
102
|
-
color: var(--n-th-text-color);
|
|
103
|
-
background-color: var(--n-th-color);
|
|
104
|
-
border-bottom: 1px solid var(--n-merged-border-color);
|
|
105
|
-
border-right: 1px solid var(--n-merged-border-color);
|
|
106
|
-
`,[X("&:last-child",`
|
|
107
|
-
border-right: 0px solid var(--n-merged-border-color);
|
|
108
|
-
`)]),X("td",`
|
|
109
|
-
transition:
|
|
110
|
-
background-color .3s var(--n-bezier),
|
|
111
|
-
border-color .3s var(--n-bezier),
|
|
112
|
-
color .3s var(--n-bezier);
|
|
113
|
-
padding: var(--n-td-padding);
|
|
114
|
-
color: var(--n-td-text-color);
|
|
115
|
-
background-color: var(--n-td-color);
|
|
116
|
-
border: 0px solid var(--n-merged-border-color);
|
|
117
|
-
border-right: 1px solid var(--n-merged-border-color);
|
|
118
|
-
border-bottom: 1px solid var(--n-merged-border-color);
|
|
119
|
-
`,[X("&:last-child",`
|
|
120
|
-
border-right: 0px solid var(--n-merged-border-color);
|
|
121
|
-
`)]),it("bordered",`
|
|
122
|
-
border: 1px solid var(--n-merged-border-color);
|
|
123
|
-
border-radius: var(--n-border-radius);
|
|
124
|
-
`,[X("tr",[X("&:last-child",[X("td",`
|
|
125
|
-
border-bottom: 0 solid var(--n-merged-border-color);
|
|
126
|
-
`)])])]),it("single-line",[X("th",`
|
|
127
|
-
border-right: 0px solid var(--n-merged-border-color);
|
|
128
|
-
`),X("td",`
|
|
129
|
-
border-right: 0px solid var(--n-merged-border-color);
|
|
130
|
-
`)]),it("single-column",[X("tr",[X("&:not(:last-child)",[X("td",`
|
|
131
|
-
border-bottom: 0px solid var(--n-merged-border-color);
|
|
132
|
-
`)])])]),it("striped",[X("tr:nth-of-type(even)",[X("td","background-color: var(--n-td-color-striped)")])]),jn("bottom-bordered",[X("tr",[X("&:last-child",[X("td",`
|
|
133
|
-
border-bottom: 0px solid var(--n-merged-border-color);
|
|
134
|
-
`)])])])]),d1(tt("table",`
|
|
135
|
-
background-color: var(--n-td-color-modal);
|
|
136
|
-
--n-merged-border-color: var(--n-border-color-modal);
|
|
137
|
-
`,[X("th",`
|
|
138
|
-
background-color: var(--n-th-color-modal);
|
|
139
|
-
`),X("td",`
|
|
140
|
-
background-color: var(--n-td-color-modal);
|
|
141
|
-
`)])),v1(tt("table",`
|
|
142
|
-
background-color: var(--n-td-color-popover);
|
|
143
|
-
--n-merged-border-color: var(--n-border-color-popover);
|
|
144
|
-
`,[X("th",`
|
|
145
|
-
background-color: var(--n-th-color-popover);
|
|
146
|
-
`),X("td",`
|
|
147
|
-
background-color: var(--n-td-color-popover);
|
|
148
|
-
`)]))]),vv=Object.assign(Object.assign({},Ji.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),pv=Rt({name:"Table",props:vv,setup(t){const{mergedClsPrefixRef:e,inlineThemeDisabled:n,mergedRtlRef:r}=Oa(t),a=Ji("Table","-table",dv,cv,t,e),o=ja("Table",r,e),s=Z(()=>{const{size:f}=t,{self:{borderColor:c,tdColor:h,tdColorModal:d,tdColorPopover:v,thColor:g,thColorModal:m,thColorPopover:p,thTextColor:_,tdTextColor:y,borderRadius:C,thFontWeight:b,lineHeight:x,borderColorModal:S,borderColorPopover:T,tdColorStriped:U,tdColorStripedModal:G,tdColorStripedPopover:Y,[bs("fontSize",f)]:vt,[bs("tdPadding",f)]:Ot,[bs("thPadding",f)]:K},common:{cubicBezierEaseInOut:Zt}}=a.value;return{"--n-bezier":Zt,"--n-td-color":h,"--n-td-color-modal":d,"--n-td-color-popover":v,"--n-td-text-color":y,"--n-border-color":c,"--n-border-color-modal":S,"--n-border-color-popover":T,"--n-border-radius":C,"--n-font-size":vt,"--n-th-color":g,"--n-th-color-modal":m,"--n-th-color-popover":p,"--n-th-font-weight":b,"--n-th-text-color":_,"--n-line-height":x,"--n-td-padding":Ot,"--n-th-padding":K,"--n-td-color-striped":U,"--n-td-color-striped-modal":G,"--n-td-color-striped-popover":Y}}),l=n?Ll("table",Z(()=>t.size[0]),s,t):void 0;return{rtlEnabled:o,mergedClsPrefix:e,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t;const{mergedClsPrefix:e}=this;return(t=this.onRender)===null||t===void 0||t.call(this),L("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)}}),_v=Rt({name:"Tr",render(){return L("tr",null,this.$slots)}}),mv=Rt({name:"Td",render(){return L("td",null,this.$slots)}}),gv=Rt({name:"Tbody",render(){return L("tbody",null,this.$slots)}}),ff=Ol("n-tree-select"),Da=Ol("n-tree"),yv=Rt({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}=mi(Da,null);return()=>{const{clsPrefix:n,expanded:r,hide:a,indent:o,onClick:s}=t;return L("span",{"data-switcher":!0,class:[`${n}-tree-node-switcher`,r&&`${n}-tree-node-switcher--expanded`,a&&`${n}-tree-node-switcher--hide`],style:{width:`${o}px`},onClick:s},L("div",{class:`${n}-tree-node-switcher__icon`},L(p1,null,{default:()=>{if(t.loading)return L(_1,{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}):L(Gc,{clsPrefix:n,key:"switcher"},{default:()=>L(J1,null)})}})))}}}),wv=Rt({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=mi(Da);function n(a){const{onCheck:o}=t;o&&o(a)}function r(a){n(a)}return{handleUpdateValue:r,mergedTheme:e.mergedThemeRef}},render(){const{clsPrefix:t,mergedTheme:e,checked:n,indeterminate:r,disabled:a,focusable:o,indent:s,handleUpdateValue:l}=this;return L("span",{class:[`${t}-tree-node-checkbox`,this.right&&`${t}-tree-node-checkbox--right`],style:{width:`${s}px`},"data-checkbox":!0},L(m1,{focusable:o,disabled:a,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,checked:n,indeterminate:r,onUpdateChecked:l}))}}),bv=Rt({name:"TreeNodeContent",props:{clsPrefix:{type:String,required:!0},disabled:Boolean,checked:Boolean,selected:Boolean,onClick:Function,onDragstart:Function,tmNode:{type:Object,required:!0},nodeProps:Object},setup(t){const{renderLabelRef:e,renderPrefixRef:n,renderSuffixRef:r,labelFieldRef:a}=mi(Da),o=me(null);function s(f){const{onClick:c}=t;c&&c(f)}function l(f){s(f)}return{selfRef:o,renderLabel:e,renderPrefix:n,renderSuffix:r,labelField:a,handleClick:l}},render(){const{clsPrefix:t,labelField:e,nodeProps:n,checked:r=!1,selected:a=!1,renderLabel:o,renderPrefix:s,renderSuffix:l,handleClick:f,onDragstart:c,tmNode:{rawNode:h,rawNode:{prefix:d,suffix:v,[e]:g}}}=this;return L("span",Object.assign({},n,{ref:"selfRef",class:[`${t}-tree-node-content`,n==null?void 0:n.class],onClick:f,draggable:c===void 0?void 0:!0,onDragstart:c}),s||d?L("div",{class:`${t}-tree-node-content__prefix`},s?s({option:h,selected:a,checked:r}):ks(d)):null,L("div",{class:`${t}-tree-node-content__text`},o?o({option:h,selected:a,checked:r}):ks(g)),l||v?L("div",{class:`${t}-tree-node-content__suffix`},l?l({option:h,selected:a,checked:r}):ks(v)):null)}});function uc({position:t,offsetLevel:e,indent:n,el:r}){const a={position:"absolute",boxSizing:"border-box",right:0};if(t==="inside")a.left=0,a.top=0,a.bottom=0,a.borderRadius="inherit",a.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const o=t==="before"?"top":"bottom";a[o]=0,a.left=`${r.offsetLeft+6-e*n}px`,a.height="2px",a.backgroundColor="var(--n-drop-mark-color)",a.transformOrigin=o,a.borderRadius="1px",a.transform=t==="before"?"translateY(-4px)":"translateY(4px)"}return L("div",{style:a})}function kv({dropPosition:t,node:e}){return e.isLeaf===!1||e.children?!0:t!=="inside"}function Cv(t){return Z(()=>t.leafOnly?"child":t.checkStrategy)}function Mr(t,e){return!!t.rawNode[e]}function hf(t,e,n,r){t==null||t.forEach(a=>{n(a),hf(a[e],e,n,r),r(a)})}function xv(t,e,n,r,a){const o=new Set,s=new Set,l=[];return hf(t,r,f=>{if(l.push(f),a(e,f)){s.add(f[n]);for(let c=l.length-2;c>=0;--c)if(!o.has(l[c][n]))o.add(l[c][n]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(o),highlightKeySet:s}}if(g1&&Image){const t=new Image;t.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function Sv(t,e,n,r,a){const o=new Set,s=new Set,l=new Set,f=[],c=[],h=[];function d(g){g.forEach(m=>{if(h.push(m),e(n,m)){o.add(m[r]),l.add(m[r]);for(let _=h.length-2;_>=0;--_){const y=h[_][r];if(!s.has(y))s.add(y),o.has(y)&&o.delete(y);else break}}const p=m[a];p&&d(p),h.pop()})}d(t);function v(g,m){g.forEach(p=>{const _=p[r],y=o.has(_),C=s.has(_);if(!y&&!C)return;const b=p[a];if(b)if(y)m.push(p);else{f.push(_);const x=Object.assign(Object.assign({},p),{[a]:[]});m.push(x),v(b,x[a])}else m.push(p)})}return v(t,c),{filteredTree:c,highlightKeySet:l,expandedKeys:f}}const df=Rt({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(t){const e=mi(Da),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:a,droppingPositionRef:o,droppingOffsetLevelRef:s,nodePropsRef:l,indentRef:f,blockLineRef:c,checkboxPlacementRef:h,checkOnClickRef:d,disabledFieldRef:v,showLineRef:g,renderSwitcherIconRef:m,overrideDefaultNodeClickBehaviorRef:p}=e,_=Le(()=>!!t.tmNode.rawNode.checkboxDisabled),y=Le(()=>Mr(t.tmNode,v.value)),C=Le(()=>e.disabledRef.value||y.value),b=Z(()=>{const{value:R}=l;if(R)return R({option:t.tmNode.rawNode})}),x=me(null),S={value:null};za(()=>{S.value=x.value.$el});function T(){const R=()=>{const{tmNode:ut}=t;if(!ut.isLeaf&&!ut.shallowLoaded){if(!e.loadingKeysRef.value.has(ut.key))e.loadingKeysRef.value.add(ut.key);else return;const{onLoadRef:{value:_t}}=e;_t&&_t(ut.rawNode).then(zt=>{zt!==!1&&e.handleSwitcherClick(ut)}).finally(()=>{e.loadingKeysRef.value.delete(ut.key)})}else e.handleSwitcherClick(ut)};m.value?setTimeout(R,0):R()}const U=Le(()=>!y.value&&e.selectableRef.value&&(e.internalTreeSelect?e.mergedCheckStrategyRef.value!=="child"||e.multipleRef.value&&e.cascadeRef.value||t.tmNode.isLeaf:!0)),G=Le(()=>e.checkableRef.value&&(e.cascadeRef.value||e.mergedCheckStrategyRef.value!=="child"||t.tmNode.isLeaf)),Y=Le(()=>e.displayedCheckedKeysRef.value.includes(t.tmNode.key)),vt=Le(()=>{const{value:R}=G;if(!R)return!1;const{value:ut}=d,{tmNode:_t}=t;return typeof ut=="boolean"?!_t.disabled&&ut:ut(t.tmNode.rawNode)});function Ot(R){const{value:ut}=e.expandOnClickRef,{value:_t}=U,{value:zt}=vt;if(!_t&&!ut&&!zt||Di(R,"checkbox")||Di(R,"switcher"))return;const{tmNode:he}=t;_t&&e.handleSelect(he),ut&&!he.isLeaf&&T(),zt&&jt(!Y.value)}function K(R){var ut,_t;if(!(Di(R,"checkbox")||Di(R,"switcher"))){if(!C.value){const zt=p.value;let he=!1;if(zt)switch(zt({option:t.tmNode.rawNode})){case"toggleCheck":he=!0,jt(!Y.value);break;case"toggleSelect":he=!0,e.handleSelect(t.tmNode);break;case"toggleExpand":he=!0,T(),he=!0;break;case"none":he=!0,he=!0;return}he||Ot(R)}(_t=(ut=b.value)===null||ut===void 0?void 0:ut.onClick)===null||_t===void 0||_t.call(ut,R)}}function Zt(R){c.value||K(R)}function W(R){c.value&&K(R)}function jt(R){e.handleCheck(t.tmNode,R)}function Bt(R){e.handleDragStart({event:R,node:t.tmNode})}function Ue(R){R.currentTarget===R.target&&e.handleDragEnter({event:R,node:t.tmNode})}function fe(R){R.preventDefault(),e.handleDragOver({event:R,node:t.tmNode})}function We(R){e.handleDragEnd({event:R,node:t.tmNode})}function mn(R){R.currentTarget===R.target&&e.handleDragLeave({event:R,node:t.tmNode})}function Rn(R){R.preventDefault(),o.value!==null&&e.handleDrop({event:R,node:t.tmNode,dropPosition:o.value})}const Ar=Z(()=>{const{clsPrefix:R}=t,{value:ut}=f;if(g.value){const _t=[];let zt=t.tmNode.parent;for(;zt;)zt.isLastChild?_t.push(L("div",{class:`${R}-tree-node-indent`},L("div",{style:{width:`${ut}px`}}))):_t.push(L("div",{class:[`${R}-tree-node-indent`,`${R}-tree-node-indent--show-line`]},L("div",{style:{width:`${ut}px`}}))),zt=zt.parent;return _t.reverse()}else return y1(t.tmNode.level,L("div",{class:`${t.clsPrefix}-tree-node-indent`},L("div",{style:{width:`${ut}px`}})))});return{showDropMark:Le(()=>{const{value:R}=a;if(!R)return;const{value:ut}=o;if(!ut)return;const{value:_t}=r;if(!_t)return;const{tmNode:zt}=t;return zt.key===_t.key}),showDropMarkAsParent:Le(()=>{const{value:R}=n;if(!R)return!1;const{tmNode:ut}=t,{value:_t}=o;return _t==="before"||_t==="after"?R.key===ut.key:!1}),pending:Le(()=>e.pendingNodeKeyRef.value===t.tmNode.key),loading:Le(()=>e.loadingKeysRef.value.has(t.tmNode.key)),highlight:Le(()=>{var R;return(R=e.highlightKeySetRef.value)===null||R===void 0?void 0:R.has(t.tmNode.key)}),checked:Y,indeterminate:Le(()=>e.displayedIndeterminateKeysRef.value.includes(t.tmNode.key)),selected:Le(()=>e.mergedSelectedKeysRef.value.includes(t.tmNode.key)),expanded:Le(()=>e.mergedExpandedKeysRef.value.includes(t.tmNode.key)),disabled:C,checkable:G,mergedCheckOnClick:vt,checkboxDisabled:_,selectable:U,expandOnClick:e.expandOnClickRef,internalScrollable:e.internalScrollableRef,draggable:e.draggableRef,blockLine:c,nodeProps:b,checkboxFocusable:e.internalCheckboxFocusableRef,droppingPosition:o,droppingOffsetLevel:s,indent:f,checkboxPlacement:h,showLine:g,contentInstRef:x,contentElRef:S,indentNodes:Ar,handleCheck:jt,handleDrop:Rn,handleDragStart:Bt,handleDragEnter:Ue,handleDragOver:fe,handleDragEnd:We,handleDragLeave:mn,handleLineClick:W,handleContentClick:Zt,handleSwitcherClick:T}},render(){const{tmNode:t,clsPrefix:e,checkable:n,expandOnClick:r,selectable:a,selected:o,checked:s,highlight:l,draggable:f,blockLine:c,indent:h,indentNodes:d,disabled:v,pending:g,internalScrollable:m,nodeProps:p,checkboxPlacement:_}=this,y=f&&!v?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,C=m?lf(t.key):void 0,b=_==="right",x=n?L(wv,{indent:h,right:b,focusable:this.checkboxFocusable,disabled:v||this.checkboxDisabled,clsPrefix:e,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return L("div",Object.assign({class:`${e}-tree-node-wrapper`},y),L("div",Object.assign({},c?p:void 0,{class:[`${e}-tree-node`,{[`${e}-tree-node--selected`]:o,[`${e}-tree-node--checkable`]:n,[`${e}-tree-node--highlight`]:l,[`${e}-tree-node--pending`]:g,[`${e}-tree-node--disabled`]:v,[`${e}-tree-node--selectable`]:a,[`${e}-tree-node--clickable`]:a||r||this.mergedCheckOnClick},p==null?void 0:p.class],"data-key":C,draggable:f&&c,onClick:this.handleLineClick,onDragstart:f&&c&&!v?this.handleDragStart:void 0}),d,t.isLeaf&&this.showLine?L("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`]},L("div",{style:{width:`${h}px`}})):L(yv,{clsPrefix:e,expanded:this.expanded,selected:o,loading:this.loading,hide:t.isLeaf,tmNode:this.tmNode,indent:h,onClick:this.handleSwitcherClick}),b?null:x,L(bv,{ref:"contentInstRef",clsPrefix:e,checked:s,selected:o,onClick:this.handleContentClick,nodeProps:c?void 0:p,onDragstart:f&&!c&&!v?this.handleDragStart:void 0,tmNode:t}),f?this.showDropMark?uc({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:h}):this.showDropMarkAsParent?uc({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:h}):null:null,b?x:null))}});function $v({props:t,fNodesRef:e,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,mergedCheckedKeysRef:a,handleCheck:o,handleSelect:s,handleSwitcherClick:l}){const{value:f}=r,c=mi(ff,null),h=c?c.pendingNodeKeyRef:me(f.length?f[f.length-1]:null);function d(v){var g;if(!t.keyboard)return{enterBehavior:null};const{value:m}=h;let p=null;if(m===null){if((v.key==="ArrowDown"||v.key==="ArrowUp")&&v.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(v.key)&&m===null){const{value:_}=e;let y=0;for(;y<_.length;){if(!_[y].disabled){h.value=_[y].key;break}y+=1}}}else{const{value:_}=e;let y=_.findIndex(C=>C.key===m);if(!~y)return{enterBehavior:null};if(v.key==="Enter"){const C=_[y];switch(p=((g=t.overrideDefaultNodeClickBehavior)===null||g===void 0?void 0:g.call(t,{option:C.rawNode}))||null,p){case"toggleCheck":o(C,!a.value.includes(C.key));break;case"toggleSelect":s(C);break;case"toggleExpand":l(C);break;case"none":break;case"default":default:p="default",s(C)}}else if(v.key==="ArrowDown")for(v.preventDefault(),y+=1;y<_.length;){if(!_[y].disabled){h.value=_[y].key;break}y+=1}else if(v.key==="ArrowUp")for(v.preventDefault(),y-=1;y>=0;){if(!_[y].disabled){h.value=_[y].key;break}y-=1}else if(v.key==="ArrowLeft"){const C=_[y];if(C.isLeaf||!n.value.includes(m)){const b=C.getParent();b&&(h.value=b.key)}else l(C)}else if(v.key==="ArrowRight"){const C=_[y];if(C.isLeaf)return{enterBehavior:null};if(!n.value.includes(m))l(C);else for(y+=1;y<_.length;){if(!_[y].disabled){h.value=_[y].key;break}y+=1}}}return{enterBehavior:p}}return{pendingNodeKeyRef:h,handleKeydown:d}}const Ev=Rt({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 L(Qc,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode==="collapse"},{default:()=>L("div",{class:[`${t}-tree-motion-wrapper`,`${t}-tree-motion-wrapper--${this.mode}`],style:{height:Jc(this.height)}},this.nodes.map(e=>L(df,{clsPrefix:t,tmNode:e})))})}}),Ss=w1(),Nv=tt("tree",`
|
|
149
|
-
font-size: var(--n-font-size);
|
|
150
|
-
outline: none;
|
|
151
|
-
`,[X("ul, li",`
|
|
152
|
-
margin: 0;
|
|
153
|
-
padding: 0;
|
|
154
|
-
list-style: none;
|
|
155
|
-
`),X(">",[tt("tree-node",[X("&:first-child","margin-top: 0;")])]),tt("tree-motion-wrapper",[it("expand",[Rs({duration:"0.2s"})]),it("collapse",[Rs({duration:"0.2s",reverse:!0})])]),tt("tree-node-wrapper",`
|
|
156
|
-
box-sizing: border-box;
|
|
157
|
-
padding: var(--n-node-wrapper-padding);
|
|
158
|
-
`),tt("tree-node",`
|
|
159
|
-
transform: translate3d(0,0,0);
|
|
160
|
-
position: relative;
|
|
161
|
-
display: flex;
|
|
162
|
-
border-radius: var(--n-node-border-radius);
|
|
163
|
-
transition: background-color .3s var(--n-bezier);
|
|
164
|
-
`,[it("highlight",[tt("tree-node-content",[It("text","border-bottom-color: var(--n-node-text-color-disabled);")])]),it("disabled",[tt("tree-node-content",`
|
|
165
|
-
color: var(--n-node-text-color-disabled);
|
|
166
|
-
cursor: not-allowed;
|
|
167
|
-
`)]),jn("disabled",[it("clickable",[tt("tree-node-content",`
|
|
168
|
-
cursor: pointer;
|
|
169
|
-
`)])])]),it("block-node",[tt("tree-node-content",`
|
|
170
|
-
flex: 1;
|
|
171
|
-
min-width: 0;
|
|
172
|
-
`)]),jn("block-line",[tt("tree-node",[jn("disabled",[tt("tree-node-content",[X("&:hover","background: var(--n-node-color-hover);")]),it("selectable",[tt("tree-node-content",[X("&:active","background: var(--n-node-color-pressed);")])]),it("pending",[tt("tree-node-content",`
|
|
173
|
-
background: var(--n-node-color-hover);
|
|
174
|
-
`)]),it("selected",[tt("tree-node-content","background: var(--n-node-color-active);")])]),it("selected",[tt("tree-node-content","background: var(--n-node-color-active);")])])]),it("block-line",[tt("tree-node",[jn("disabled",[X("&:hover","background: var(--n-node-color-hover);"),it("pending",`
|
|
175
|
-
background: var(--n-node-color-hover);
|
|
176
|
-
`),it("selectable",[jn("selected",[X("&:active","background: var(--n-node-color-pressed);")])]),it("selected","background: var(--n-node-color-active);")]),it("selected","background: var(--n-node-color-active);"),it("disabled",`
|
|
177
|
-
cursor: not-allowed;
|
|
178
|
-
`)])]),tt("tree-node-indent",`
|
|
179
|
-
flex-grow: 0;
|
|
180
|
-
flex-shrink: 0;
|
|
181
|
-
`,[it("show-line","position: relative",[X("&::before",`
|
|
182
|
-
position: absolute;
|
|
183
|
-
left: 50%;
|
|
184
|
-
border-left: 1px solid var(--n-line-color);
|
|
185
|
-
transition: border-color .3s var(--n-bezier);
|
|
186
|
-
transform: translate(-50%);
|
|
187
|
-
content: "";
|
|
188
|
-
top: var(--n-line-offset-top);
|
|
189
|
-
bottom: var(--n-line-offset-bottom);
|
|
190
|
-
`),it("last-child",[X("&::before",`
|
|
191
|
-
bottom: 50%;
|
|
192
|
-
`)]),it("is-leaf",[X("&::after",`
|
|
193
|
-
position: absolute;
|
|
194
|
-
content: "";
|
|
195
|
-
left: calc(50% + 0.5px);
|
|
196
|
-
right: 0;
|
|
197
|
-
bottom: 50%;
|
|
198
|
-
transition: border-color .3s var(--n-bezier);
|
|
199
|
-
border-bottom: 1px solid var(--n-line-color);
|
|
200
|
-
`)])]),jn("show-line","height: 0;")]),tt("tree-node-switcher",`
|
|
201
|
-
cursor: pointer;
|
|
202
|
-
display: inline-flex;
|
|
203
|
-
flex-shrink: 0;
|
|
204
|
-
height: var(--n-node-content-height);
|
|
205
|
-
align-items: center;
|
|
206
|
-
justify-content: center;
|
|
207
|
-
transition: transform .15s var(--n-bezier);
|
|
208
|
-
vertical-align: bottom;
|
|
209
|
-
`,[It("icon",`
|
|
210
|
-
position: relative;
|
|
211
|
-
height: 14px;
|
|
212
|
-
width: 14px;
|
|
213
|
-
display: flex;
|
|
214
|
-
color: var(--n-arrow-color);
|
|
215
|
-
transition: color .3s var(--n-bezier);
|
|
216
|
-
font-size: 14px;
|
|
217
|
-
`,[tt("icon",[Ss]),tt("base-loading",`
|
|
218
|
-
color: var(--n-loading-color);
|
|
219
|
-
position: absolute;
|
|
220
|
-
left: 0;
|
|
221
|
-
top: 0;
|
|
222
|
-
right: 0;
|
|
223
|
-
bottom: 0;
|
|
224
|
-
`,[Ss]),tt("base-icon",[Ss])]),it("hide","visibility: hidden;"),it("expanded","transform: rotate(90deg);")]),tt("tree-node-checkbox",`
|
|
225
|
-
display: inline-flex;
|
|
226
|
-
height: var(--n-node-content-height);
|
|
227
|
-
vertical-align: bottom;
|
|
228
|
-
align-items: center;
|
|
229
|
-
justify-content: center;
|
|
230
|
-
`),tt("tree-node-content",`
|
|
231
|
-
user-select: none;
|
|
232
|
-
position: relative;
|
|
233
|
-
display: inline-flex;
|
|
234
|
-
align-items: center;
|
|
235
|
-
min-height: var(--n-node-content-height);
|
|
236
|
-
box-sizing: border-box;
|
|
237
|
-
line-height: var(--n-line-height);
|
|
238
|
-
vertical-align: bottom;
|
|
239
|
-
padding: 0 6px 0 4px;
|
|
240
|
-
cursor: default;
|
|
241
|
-
border-radius: var(--n-node-border-radius);
|
|
242
|
-
color: var(--n-node-text-color);
|
|
243
|
-
transition:
|
|
244
|
-
color .3s var(--n-bezier),
|
|
245
|
-
background-color .3s var(--n-bezier),
|
|
246
|
-
border-color .3s var(--n-bezier);
|
|
247
|
-
`,[X("&:last-child","margin-bottom: 0;"),It("prefix",`
|
|
248
|
-
display: inline-flex;
|
|
249
|
-
margin-right: 8px;
|
|
250
|
-
`),It("text",`
|
|
251
|
-
border-bottom: 1px solid #0000;
|
|
252
|
-
transition: border-color .3s var(--n-bezier);
|
|
253
|
-
flex-grow: 1;
|
|
254
|
-
max-width: 100%;
|
|
255
|
-
`),It("suffix",`
|
|
256
|
-
display: inline-flex;
|
|
257
|
-
`)]),It("empty","margin: auto;")]);var Iv=function(t,e,n,r){function a(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(h){try{c(r.next(h))}catch(d){s(d)}}function f(h){try{c(r.throw(h))}catch(d){s(d)}}function c(h){h.done?o(h.value):a(h.value).then(l,f)}c((r=r.apply(t,[])).next())})};function cc(t,e,n,r){return{getIsGroup(){return!1},getKey(o){return o[t]},getChildren:r||(o=>o[e]),getDisabled(o){return!!(o[n]||o.checkboxDisabled)}}}const qv={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},Av=Object.assign(Object.assign(Object.assign(Object.assign({},Ji.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,showLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},scrollbarProps:Object,indent:{type:Number,default:24},allowDrop:{type:Function,default:kv},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]}),qv),{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}),Tv=Rt({name:"Tree",props:Av,setup(t){const{mergedClsPrefixRef:e,inlineThemeDisabled:n,mergedRtlRef:r}=Oa(t),a=ja("Tree",r,e),o=Ji("Tree","-tree",Nv,hv,t,e),s=me(null),l=me(null),f=me(null);function c(){var w;return(w=f.value)===null||w===void 0?void 0:w.listElRef}function h(){var w;return(w=f.value)===null||w===void 0?void 0:w.itemsElRef}const d=Z(()=>{const{filter:w}=t;if(w)return w;const{labelField:N}=t;return(M,j)=>{if(!M.length)return!0;const F=j[N];return typeof F=="string"?F.toLowerCase().includes(M.toLowerCase()):!1}}),v=Z(()=>{const{pattern:w}=t;return w?!w.length||!d.value?{filteredTree:t.data,highlightKeySet:null,expandedKeys:void 0}:Sv(t.data,d.value,w,t.keyField,t.childrenField):{filteredTree:t.data,highlightKeySet:null,expandedKeys:void 0}}),g=Z(()=>nc(t.showIrrelevantNodes?t.data:v.value.filteredTree,cc(t.keyField,t.childrenField,t.disabledField,t.getChildren))),m=mi(ff,null),p=t.internalTreeSelect?m.dataTreeMate:Z(()=>t.showIrrelevantNodes?g.value:nc(t.data,cc(t.keyField,t.childrenField,t.disabledField,t.getChildren))),{watchProps:_}=t,y=me([]);_!=null&&_.includes("defaultCheckedKeys")?Fi(()=>{y.value=t.defaultCheckedKeys}):y.value=t.defaultCheckedKeys;const C=wt(t,"checkedKeys"),b=ma(C,y),x=Z(()=>p.value.getCheckedKeys(b.value,{cascade:t.cascade,allowNotLoaded:t.allowCheckingNotLoaded})),S=Cv(t),T=Z(()=>x.value.checkedKeys),U=Z(()=>{const{indeterminateKeys:w}=t;return w!==void 0?w:x.value.indeterminateKeys}),G=me([]);_!=null&&_.includes("defaultSelectedKeys")?Fi(()=>{G.value=t.defaultSelectedKeys}):G.value=t.defaultSelectedKeys;const Y=wt(t,"selectedKeys"),vt=ma(Y,G),Ot=me([]),K=w=>{Ot.value=t.defaultExpandAll?p.value.getNonLeafKeys():w===void 0?t.defaultExpandedKeys:w};_!=null&&_.includes("defaultExpandedKeys")?Fi(()=>{K(void 0)}):Fi(()=>{K(t.defaultExpandedKeys)});const Zt=wt(t,"expandedKeys"),W=ma(Zt,Ot),jt=Z(()=>g.value.getFlattenedNodes(W.value)),{pendingNodeKeyRef:Bt,handleKeydown:Ue}=$v({props:t,mergedCheckedKeysRef:b,mergedSelectedKeysRef:vt,fNodesRef:jt,mergedExpandedKeysRef:W,handleCheck:gs,handleSelect:ys,handleSwitcherClick:Wu});let fe=null,We=null;const mn=me(new Set),Rn=Z(()=>t.internalHighlightKeySet||v.value.highlightKeySet),Ar=ma(Rn,mn),R=me(new Set),ut=Z(()=>W.value.filter(w=>!R.value.has(w)));let _t=0;const zt=me(null),he=me(null),Jn=me(null),Yn=me(null),Xn=me(0),Zr=Z(()=>{const{value:w}=he;return w?w.parent:null});let fa=!1;Pr(wt(t,"data"),()=>{fa=!0,ga(()=>{fa=!1}),R.value.clear(),Bt.value=null,da()},{deep:!1});let ha=!1;const ti=()=>{ha=!0,ga(()=>{ha=!1})};let ei;Pr(wt(t,"pattern"),(w,N)=>{if(t.showIrrelevantNodes)if(ei=void 0,w){const{expandedKeys:M,highlightKeySet:j}=xv(t.data,t.pattern,t.keyField,t.childrenField,d.value);mn.value=j,ti(),Ai(M,un(M),{node:null,action:"filter"})}else mn.value=new Set;else if(!w.length)ei!==void 0&&(ti(),Ai(ei,un(ei),{node:null,action:"filter"}));else{N.length||(ei=W.value);const{expandedKeys:M}=v.value;M!==void 0&&(ti(),Ai(M,un(M),{node:null,action:"filter"}))}});function lo(w){return Iv(this,void 0,void 0,function*(){const{onLoad:N}=t;if(!N){yield Promise.resolve();return}const{value:M}=R;if(!M.has(w.key)){M.add(w.key);try{(yield N(w.rawNode))===!1&&Ti()}catch(j){console.error(j),Ti()}M.delete(w.key)}})}Fi(()=>{var w;const{value:N}=g;if(!N)return;const{getNode:M}=N;(w=W.value)===null||w===void 0||w.forEach(j=>{const F=M(j);F&&!F.shallowLoaded&&lo(F)})});const Tr=me(!1),Ln=me([]);Pr(ut,(w,N)=>{if(!t.animated||ha){ga(qi);return}if(fa)return;const M=va(o.value.self.nodeHeight),j=new Set(N);let F=null,Kt=null;for(const $t of w)if(!j.has($t)){if(F!==null)return;F=$t}const Xe=new Set(w);for(const $t of N)if(!Xe.has($t)){if(Kt!==null)return;Kt=$t}if(F===null&&Kt===null)return;const{virtualScroll:cn}=t,Pi=(cn?f.value.listElRef:s.value).offsetHeight,Ri=Math.ceil(Pi/M)+1;let gn;if(F!==null&&(gn=N),Kt!==null&&(gn===void 0?gn=w:gn=gn.filter($t=>$t!==Kt)),Tr.value=!0,Ln.value=g.value.getFlattenedNodes(gn),F!==null){const $t=Ln.value.findIndex(yn=>yn.key===F);if(~$t){const yn=Ln.value[$t].children;if(yn){const $n=rc(yn,w);Ln.value.splice($t+1,0,{__motion:!0,mode:"expand",height:cn?$n.length*M:void 0,nodes:cn?$n.slice(0,Ri):$n})}}}if(Kt!==null){const $t=Ln.value.findIndex(yn=>yn.key===Kt);if(~$t){const yn=Ln.value[$t].children;if(!yn)return;Tr.value=!0;const $n=rc(yn,w);Ln.value.splice($t+1,0,{__motion:!0,mode:"collapse",height:cn?$n.length*M:void 0,nodes:cn?$n.slice(0,Ri):$n})}}});const vs=Z(()=>j1(jt.value)),ps=Z(()=>Tr.value?Ln.value:jt.value);function qi(){const{value:w}=l;w&&w.sync()}function _s(){Tr.value=!1,t.virtualScroll&&ga(qi)}function un(w){const{getNode:N}=p.value;return w.map(M=>{var j;return((j=N(M))===null||j===void 0?void 0:j.rawNode)||null})}function Ai(w,N,M){const{"onUpdate:expandedKeys":j,onUpdateExpandedKeys:F}=t;Ot.value=w,j&&Ce(j,w,N,M),F&&Ce(F,w,N,M)}function Uu(w,N,M){const{"onUpdate:checkedKeys":j,onUpdateCheckedKeys:F}=t;y.value=w,F&&Ce(F,w,N,M),j&&Ce(j,w,N,M)}function Ld(w,N){const{"onUpdate:indeterminateKeys":M,onUpdateIndeterminateKeys:j}=t;M&&Ce(M,w,N),j&&Ce(j,w,N)}function ms(w,N,M){const{"onUpdate:selectedKeys":j,onUpdateSelectedKeys:F}=t;G.value=w,F&&Ce(F,w,N,M),j&&Ce(j,w,N,M)}function Od(w){const{onDragenter:N}=t;N&&Ce(N,w)}function jd(w){const{onDragleave:N}=t;N&&Ce(N,w)}function zd(w){const{onDragend:N}=t;N&&Ce(N,w)}function Fd(w){const{onDragstart:N}=t;N&&Ce(N,w)}function Dd(w){const{onDragover:N}=t;N&&Ce(N,w)}function Bd(w){const{onDrop:N}=t;N&&Ce(N,w)}function da(){Kd(),ni()}function Kd(){zt.value=null}function ni(){Xn.value=0,he.value=null,Jn.value=null,Yn.value=null,Ti()}function Ti(){fe&&(window.clearTimeout(fe),fe=null),We=null}function gs(w,N){if(t.disabled||Mr(w,t.disabledField))return;if(t.internalUnifySelectCheck&&!t.multiple){ys(w);return}const M=N?"check":"uncheck",{checkedKeys:j,indeterminateKeys:F}=p.value[M](w.key,T.value,{cascade:t.cascade,checkStrategy:S.value,allowNotLoaded:t.allowCheckingNotLoaded});Uu(j,un(j),{node:w.rawNode,action:M}),Ld(F,un(F))}function Ud(w){if(t.disabled)return;const{key:N}=w,{value:M}=W,j=M.findIndex(F=>F===N);if(~j){const F=Array.from(M);F.splice(j,1),Ai(F,un(F),{node:w.rawNode,action:"collapse"})}else{const F=g.value.getNode(N);if(!F||F.isLeaf)return;let Kt;if(t.accordion){const Xe=new Set(w.siblings.map(({key:cn})=>cn));Kt=M.filter(cn=>!Xe.has(cn)),Kt.push(N)}else Kt=M.concat(N);Ai(Kt,un(Kt),{node:w.rawNode,action:"expand"})}}function Wu(w){t.disabled||Tr.value||Ud(w)}function ys(w){if(!(t.disabled||!t.selectable)){if(Bt.value=w.key,t.internalUnifySelectCheck){const{value:{checkedKeys:N,indeterminateKeys:M}}=x;t.multiple?gs(w,!(N.includes(w.key)||M.includes(w.key))):Uu([w.key],un([w.key]),{node:w.rawNode,action:"check"})}if(t.multiple){const N=Array.from(vt.value),M=N.findIndex(j=>j===w.key);~M?t.cancelable&&N.splice(M,1):~M||N.push(w.key),ms(N,un(N),{node:w.rawNode,action:~M?"unselect":"select"})}else vt.value.includes(w.key)?t.cancelable&&ms([],[],{node:w.rawNode,action:"unselect"}):ms([w.key],un([w.key]),{node:w.rawNode,action:"select"})}}function Wd(w){if(fe&&(window.clearTimeout(fe),fe=null),w.isLeaf)return;We=w.key;const N=()=>{if(We!==w.key)return;const{value:M}=Jn;if(M&&M.key===w.key&&!W.value.includes(w.key)){const j=W.value.concat(w.key);Ai(j,un(j),{node:w.rawNode,action:"expand"})}fe=null,We=null};w.shallowLoaded?fe=window.setTimeout(()=>{N()},1e3):fe=window.setTimeout(()=>{lo(w).then(()=>{N()})},1e3)}function Hd({event:w,node:N}){!t.draggable||t.disabled||Mr(N,t.disabledField)||(Hu({event:w,node:N},!1),Od({event:w,node:N.rawNode}))}function Vd({event:w,node:N}){!t.draggable||t.disabled||Mr(N,t.disabledField)||jd({event:w,node:N.rawNode})}function Qd(w){w.target===w.currentTarget&&ni()}function Gd({event:w,node:N}){da(),!(!t.draggable||t.disabled||Mr(N,t.disabledField))&&zd({event:w,node:N.rawNode})}function Jd({event:w,node:N}){!t.draggable||t.disabled||Mr(N,t.disabledField)||(_t=w.clientX,zt.value=N,Fd({event:w,node:N.rawNode}))}function Hu({event:w,node:N},M=!0){var j;if(!t.draggable||t.disabled||Mr(N,t.disabledField))return;const{value:F}=zt;if(!F)return;const{allowDrop:Kt,indent:Xe}=t;M&&Dd({event:w,node:N.rawNode});const cn=w.currentTarget,{height:Pi,top:Ri}=cn.getBoundingClientRect(),gn=w.clientY-Ri;let $t;Kt({node:N.rawNode,dropPosition:"inside",phase:"drag"})?gn<=8?$t="before":gn>=Pi-8?$t="after":$t="inside":gn<=Pi/2?$t="before":$t="after";const{value:$n}=vs;let Ct,Ne;const Li=$n(N.key);if(Li===null){ni();return}let uo=!1;$t==="inside"?(Ct=N,Ne="inside"):$t==="before"?N.isFirstChild?(Ct=N,Ne="before"):(Ct=jt.value[Li-1],Ne="after"):(Ct=N,Ne="after"),!Ct.isLeaf&&W.value.includes(Ct.key)&&(uo=!0,Ne==="after"&&(Ct=jt.value[Li+1],Ct?Ne="before":(Ct=N,Ne="inside")));const Qu=Ct;if(Jn.value=Qu,!uo&&F.isLastChild&&F.key===Ct.key&&(Ne="after"),Ne==="after"){let Gu=_t-w.clientX,ws=0;for(;Gu>=Xe/2&&Ct.parent!==null&&Ct.isLastChild&&ws<1;)Gu-=Xe,ws+=1,Ct=Ct.parent;Xn.value=ws}else Xn.value=0;if((F.contains(Ct)||Ne==="inside"&&((j=F.parent)===null||j===void 0?void 0:j.key)===Ct.key)&&!(F.key===Qu.key&&F.key===Ct.key)){ni();return}if(!Kt({node:Ct.rawNode,dropPosition:Ne,phase:"drag"})){ni();return}if(F.key===Ct.key)Ti();else if(We!==Ct.key)if(Ne==="inside"){if(t.expandOnDragenter){if(Wd(Ct),!Ct.shallowLoaded&&We!==Ct.key){da();return}}else if(!Ct.shallowLoaded){da();return}}else Ti();else Ne!=="inside"&&Ti();Yn.value=Ne,he.value=Ct}function Yd({event:w,node:N,dropPosition:M}){if(!t.draggable||t.disabled||Mr(N,t.disabledField))return;const{value:j}=zt,{value:F}=he,{value:Kt}=Yn;if(!(!j||!F||!Kt)&&t.allowDrop({node:F.rawNode,dropPosition:Kt,phase:"drag"})&&j.key!==F.key){if(Kt==="before"){const Xe=j.getNext({includeDisabled:!0});if(Xe&&Xe.key===F.key){ni();return}}if(Kt==="after"){const Xe=j.getPrev({includeDisabled:!0});if(Xe&&Xe.key===F.key){ni();return}}Bd({event:w,node:F.rawNode,dragNode:j.rawNode,dropPosition:M}),da()}}function Xd(){qi()}function Zd(){qi()}function t1(w){var N;if(t.virtualScroll||t.internalScrollable){const{value:M}=l;if(!((N=M==null?void 0:M.containerRef)===null||N===void 0)&&N.contains(w.relatedTarget))return;Bt.value=null}else{const{value:M}=s;if(M!=null&&M.contains(w.relatedTarget))return;Bt.value=null}}Pr(Bt,w=>{var N,M;if(w!==null){if(t.virtualScroll)(N=f.value)===null||N===void 0||N.scrollTo({key:w});else if(t.internalScrollable){const{value:j}=l;if(j===null)return;const F=(M=j.contentRef)===null||M===void 0?void 0:M.querySelector(`[data-key="${lf(w)}"]`);if(!F)return;j.scrollTo({el:F})}}}),Pl(Da,{loadingKeysRef:R,highlightKeySetRef:Ar,displayedCheckedKeysRef:T,displayedIndeterminateKeysRef:U,mergedSelectedKeysRef:vt,mergedExpandedKeysRef:W,mergedThemeRef:o,mergedCheckStrategyRef:S,nodePropsRef:wt(t,"nodeProps"),disabledRef:wt(t,"disabled"),checkableRef:wt(t,"checkable"),selectableRef:wt(t,"selectable"),expandOnClickRef:wt(t,"expandOnClick"),onLoadRef:wt(t,"onLoad"),draggableRef:wt(t,"draggable"),blockLineRef:wt(t,"blockLine"),indentRef:wt(t,"indent"),cascadeRef:wt(t,"cascade"),checkOnClickRef:wt(t,"checkOnClick"),checkboxPlacementRef:t.checkboxPlacement,droppingMouseNodeRef:Jn,droppingNodeParentRef:Zr,draggingNodeRef:zt,droppingPositionRef:Yn,droppingOffsetLevelRef:Xn,fNodesRef:jt,pendingNodeKeyRef:Bt,showLineRef:wt(t,"showLine"),disabledFieldRef:wt(t,"disabledField"),internalScrollableRef:wt(t,"internalScrollable"),internalCheckboxFocusableRef:wt(t,"internalCheckboxFocusable"),internalTreeSelect:t.internalTreeSelect,renderLabelRef:wt(t,"renderLabel"),renderPrefixRef:wt(t,"renderPrefix"),renderSuffixRef:wt(t,"renderSuffix"),renderSwitcherIconRef:wt(t,"renderSwitcherIcon"),labelFieldRef:wt(t,"labelField"),multipleRef:wt(t,"multiple"),overrideDefaultNodeClickBehaviorRef:wt(t,"overrideDefaultNodeClickBehavior"),handleSwitcherClick:Wu,handleDragEnd:Gd,handleDragEnter:Hd,handleDragLeave:Vd,handleDragStart:Jd,handleDrop:Yd,handleDragOver:Hu,handleSelect:ys,handleCheck:gs});function e1(w,N){var M,j;typeof w=="number"?(M=f.value)===null||M===void 0||M.scrollTo(w,N||0):(j=f.value)===null||j===void 0||j.scrollTo(w)}const n1={handleKeydown:Ue,scrollTo:e1,getCheckedData:()=>{if(!t.checkable)return{keys:[],options:[]};const{checkedKeys:w}=x.value;return{keys:w,options:un(w)}},getIndeterminateData:()=>{if(!t.checkable)return{keys:[],options:[]};const{indeterminateKeys:w}=x.value;return{keys:w,options:un(w)}}},Vu=Z(()=>{const{common:{cubicBezierEaseInOut:w},self:{fontSize:N,nodeBorderRadius:M,nodeColorHover:j,nodeColorPressed:F,nodeColorActive:Kt,arrowColor:Xe,loadingColor:cn,nodeTextColor:Pi,nodeTextColorDisabled:Ri,dropMarkColor:gn,nodeWrapperPadding:$t,nodeHeight:yn,lineHeight:$n,lineColor:Ct}}=o.value,Ne=Cs($t,"top"),Li=Cs($t,"bottom"),uo=Jc(va(yn)-va(Ne)-va(Li));return{"--n-arrow-color":Xe,"--n-loading-color":cn,"--n-bezier":w,"--n-font-size":N,"--n-node-border-radius":M,"--n-node-color-active":Kt,"--n-node-color-hover":j,"--n-node-color-pressed":F,"--n-node-text-color":Pi,"--n-node-text-color-disabled":Ri,"--n-drop-mark-color":gn,"--n-node-wrapper-padding":$t,"--n-line-offset-top":`-${Ne}`,"--n-line-offset-bottom":`-${Li}`,"--n-node-content-height":uo,"--n-line-height":$n,"--n-line-color":Ct}}),Mi=n?Ll("tree",void 0,Vu,t):void 0;return Object.assign(Object.assign({},n1),{mergedClsPrefix:e,mergedTheme:o,rtlEnabled:a,fNodes:ps,aip:Tr,selfElRef:s,virtualListInstRef:f,scrollbarInstRef:l,handleFocusout:t1,handleDragLeaveTree:Qd,handleScroll:Xd,getScrollContainer:c,getScrollContent:h,handleAfterEnter:_s,handleResize:Zd,cssVars:n?void 0:Vu,themeClass:Mi==null?void 0:Mi.themeClass,onRender:Mi==null?void 0:Mi.onRender})},render(){var t;const{fNodes:e,internalRenderEmpty:n}=this;if(!e.length&&n)return n();const{mergedClsPrefix:r,blockNode:a,blockLine:o,draggable:s,disabled:l,internalFocusable:f,checkable:c,handleKeydown:h,rtlEnabled:d,handleFocusout:v,scrollbarProps:g}=this,m=f&&!l,p=m?"0":void 0,_=[`${r}-tree`,d&&`${r}-tree--rtl`,c&&`${r}-tree--checkable`,(o||a)&&`${r}-tree--block-node`,o&&`${r}-tree--block-line`],y=b=>"__motion"in b?L(Ev,{height:b.height,nodes:b.nodes,clsPrefix:r,mode:b.mode,onAfterEnter:this.handleAfterEnter}):L(df,{key:b.key,tmNode:b,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:b,internalScrollablePadding:x}=this,S=Cs(x||"0");return L(Xu,Object.assign({},g,{ref:"scrollbarInstRef",onDragleave:s?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:_,theme:b.peers.Scrollbar,themeOverrides:b.peerOverrides.Scrollbar,tabindex:p,onKeydown:m?h:void 0,onFocusout:m?v:void 0}),{default:()=>{var T;return(T=this.onRender)===null||T===void 0||T.call(this),e.length?L(z1,{ref:"virtualListInstRef",items:this.fNodes,itemSize:va(b.self.nodeHeight),ignoreItemResize:this.aip,paddingTop:S.top,paddingBottom:S.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:S.left,paddingRight:S.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:U})=>y(U)}):Yu(this.$slots.empty,()=>[L(ic,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})])}})}const{internalScrollable:C}=this;return _.push(this.themeClass),(t=this.onRender)===null||t===void 0||t.call(this),C?L(Xu,Object.assign({},g,{class:_,tabindex:p,onKeydown:m?h:void 0,onFocusout:m?v:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}}),{default:()=>L("div",{onDragleave:s?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(y))}):L("div",{class:_,tabindex:p,ref:"selfElRef",style:this.cssVars,onKeydown:m?h:void 0,onFocusout:m?v:void 0,onDragleave:s?this.handleDragLeaveTree:void 0},e.length?e.map(y):Yu(this.$slots.empty,()=>[L(ic,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}}),fc=t=>{const e=At(),n={x:0,y:0},r=jl({...n});let a;const o=h=>{a&&h.preventDefault()},s=h=>{a=h,n.x=r.x,n.y=r.y},l=h=>{if(!a||!e.value)return;const d=h.clientX-a.clientX,v=h.clientY-a.clientY;t(d)&&(r.x=n.x+d),r.y=n.y+v},f=()=>{a=void 0},c=()=>{if(!e.value||!a)return;f();const{top:h,bottom:d,left:v,right:g}=e.value.getBoundingClientRect();(g<0||v>window.innerWidth||d<0||h>window.innerHeight)&&(r.x=n.x,r.y=n.y)};return za(()=>{window.addEventListener("pointermove",l),window.addEventListener("pointerup",c),document.addEventListener("selectstart",o)}),po(()=>{window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",c),document.removeEventListener("selectstart",o),f()}),Pr(e,(h,d)=>{h&&(h.addEventListener("pointerdown",s),h.addEventListener("pointerup",f)),d&&(d.removeEventListener("pointerdown",s),d.removeEventListener("pointerup",f))}),po(()=>{e.value&&(e.value.removeEventListener("pointerdown",s),e.value.removeEventListener("pointerup",f))}),{target:e,offset:r}},hc="transition-top,bottom,left,right-500",Wi=Rt({__name:"DraggableCard",props:{initialValue:{default:()=>({})},minWidth:{},sizeDraggable:{type:Boolean},show:{type:Boolean,default:!0}},setup(t){var b,x;const e=t,n=e.initialValue.left!==void 0,r=e.initialValue.top!==void 0,a={x:(b=n?e.initialValue.left:e.initialValue.right)!=null?b:0,y:(x=r?e.initialValue.top:e.initialValue.bottom)!=null?x:0},o=fc(S=>{const T=(e.initialValue.width||0)+s.offset.x+-o.offset.x-S;return(e.minWidth||0)<T}),s=fc(S=>{const T=(e.initialValue.width||0)+s.offset.x+S-o.offset.x;return(e.minWidth||0)<T}),l=jl({...a}),f=Z(()=>{const S=(e.initialValue.width||0)+s.offset.x-o.offset.x,T=e.initialValue.width?`width:${S}px;`:"",U=r?`top:${l.y}px;`:`bottom:${l.y}px;`;return n?`left:${l.x-o.offset.x}px;`+U+T:`right:${l.x-s.offset.x}px;`+U+T});let c;const h=At(!1),d=S=>{c=S,a.x=l.x,a.y=l.y,h.value=!1},v=S=>{if(!p.value||!c)return;const T=S.clientX-c.clientX,U=S.clientY-c.clientY;l.x=a.x+(n?T:-T),l.y=a.y+(r?U:-U),h.value=!0},g=()=>{c=void 0},m=At(),p=At(),_=S=>{c&&S.preventDefault()},y=()=>{if(!p.value||!c)return;g();const{top:S,bottom:T,left:U,right:G}=p.value.getBoundingClientRect();if(G<0||U>window.innerWidth||T<0||S>window.innerHeight){l.x=a.x,l.y=a.y;const Y=m.value;Y&&(Y.classList.add(hc),setTimeout(()=>{Y.classList.remove(hc)},550))}};za(()=>{window.addEventListener("pointermove",v),window.addEventListener("pointerup",y),document.addEventListener("selectstart",_)}),po(()=>{window.removeEventListener("pointermove",v),window.removeEventListener("pointerup",y),document.removeEventListener("selectstart",_),g()}),Pr(p,(S,T)=>{S&&(S.addEventListener("pointerdown",d),S.addEventListener("pointerup",g)),T&&(T.removeEventListener("pointerdown",d),T.removeEventListener("pointerup",g))}),po(()=>{p.value&&(p.value.removeEventListener("pointerdown",d),p.value.removeEventListener("pointerup",g))});const C=S=>{S instanceof HTMLElement?p.value=S:p.value=void 0};return(S,T)=>(et(),de(b1,{to:"#app"},[S.show?(et(),ae("div",{key:0,fixed:"",ref_key:"box",ref:m,style:Ps([S.$attrs.style,E(f)]),class:Kr(S.$attrs.class)},[Yc(S.$slots,"default",{onRef:C,moved:E(h)}),S.sizeDraggable?(et(),ae(zn,{key:0},[A("div",{ref:E(o).target,absolute:"","right-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512),A("div",{ref:E(s).target,absolute:"","left-full":"","top-0":"","bottom-0":"","w-5px":"","cursor-ew-resize":""},null,512)],64)):ge("",!0)],6)):ge("",!0)]))}}),Mv=A("th",null,"Name",-1),Pv=A("th",null,"Value",-1),Rv=[Mv,Pv],Lv={key:0,flex:"","justify-between":"","items-center":""},Ov={key:0,viewBox:"0 0 28 28"},jv=A("path",{d:"M15 8a1 1 0 1 1-2 0a1 1 0 0 1 2 0zm-1.75 3.75v7.5a.75.75 0 0 0 1.5 0v-7.5a.75.75 0 0 0-1.5 0zM2 14C2 7.373 7.373 2 14 2s12 5.373 12 12s-5.373 12-12 12S2 20.627 2 14zM14 3.5C8.201 3.5 3.5 8.201 3.5 14S8.201 24.5 14 24.5S24.5 19.799 24.5 14S19.799 3.5 14 3.5z",fill:"currentColor"},null,-1),zv=[jv],Fv={key:1,viewBox:"0 0 1024 1024"},Dv=A("path",{d:"M722.500267 330.888533l-273.408 273.408-147.729067-147.729066a42.018133 42.018133 0 1 0-59.426133 59.426133l177.425066 177.493333a41.984 41.984 0 0 0 59.426134 0L781.9264 390.314667a42.001067 42.001067 0 0 0-59.392-59.426134h-0.034133zM78.506667 783.496533a508.279467 508.279467 0 0 0 319.0784 226.986667C530.773333 1041.066667 667.886933 1017.924267 783.701333 945.390933a508.279467 508.279467 0 0 0 226.986667-319.0784 508.279467 508.279467 0 0 0-65.058133-386.116266C848.554667 85.367467 681.710933 0.341333 511.214933 0.341333a508.6208 508.6208 0 0 0-270.813866 77.960534A36.864 36.864 0 0 0 279.552 140.629333C484.113067 12.288 755.029333 74.581333 883.268267 279.278933a434.9952 434.9952 0 0 1 55.739733 330.5472 435.029333 435.029333 0 0 1-194.3552 273.134934 435.746133 435.746133 0 0 1-330.581333 55.773866A435.165867 435.165867 0 0 1 140.936533 744.379733a436.770133 436.770133 0 0 1-5.666133-456.055466 36.829867 36.829867 0 0 0-63.317333-37.546667A510.1568 510.1568 0 0 0 78.506667 783.530667v-0.034134z",fill:"currentColor"},null,-1),Bv=[Dv],Kv=Rt({__name:"AttrCard",props:{focusNode:{}},setup(t){const e=t,n={_id:{desc:"虚拟属性(真机不可用):生成快照访问节点顺序",type:"info"},_pid:{desc:"虚拟属性(真机不可用):父节点的 _id",type:"info"},depth:{desc:"使用此属性在某些应用上可能造成无限节点错误",type:"info"},id:{desc:"可快速查找",type:"quickFind",show(){return(e.focusNode.quickFind||e.focusNode.idQf)&&e.focusNode.attr.id}},vid:{desc:"可快速查找",type:"quickFind",show(){return(e.focusNode.quickFind||e.focusNode.idQf)&&e.focusNode.attr.vid}},text:{desc:"可快速查找",type:"quickFind",show(){return(e.focusNode.quickFind||e.focusNode.textQf)&&e.focusNode.attr.text}}},r=["text","desc"],a=Z(()=>Object.entries(e.focusNode.attr).map(([o,s])=>{var c,h,d;const l=(c=n[o])==null?void 0:c.show,f={name:o,value:s,desc:JSON.stringify(s),tip:!l||l()?n[o]:void 0};return r.includes(o)?[f,{name:o+".length",value:(h=s==null?void 0:s.length)!=null?h:null,desc:JSON.stringify((d=s==null?void 0:s.length)!=null?d:null),tip:void 0}]:f}).flat());return(o,s)=>{const l=Fa,f=ef,c=mv,h=F1,d=_v,v=gv,g=pv;return et(),de(Wi,{initialValue:{top:40,right:10},class:"box-shadow-dim"},{default:q(({onRef:m})=>[B(g,{size:"small",striped:"",singleLine:!1,class:"gkd_code",themeOverrides:{thPaddingSmall:"1px 3px",tdPaddingSmall:"1px 3px"}},{default:q(()=>[A("thead",null,[A("tr",{ref:m,"cursor-move":""},Rv,512)]),B(v,null,{default:q(()=>[(et(!0),ae(zn,null,wa(E(a),p=>(et(),de(d,{key:p.name},{default:q(()=>[B(c,{onClick:_=>E(er)(`${p.name}=${p.desc}`)},{default:q(()=>[p.tip?(et(),ae("div",Lv,[A("div",null,Tt(p.name),1),B(f,null,{trigger:q(()=>[B(l,{size:"16"},{default:q(()=>[p.tip.type=="info"?(et(),ae("svg",Ov,zv)):p.tip.type=="quickFind"?(et(),ae("svg",Fv,Bv)):ge("",!0)]),_:2},1024)]),default:q(()=>[ye(" "+Tt(p.tip.desc),1)]),_:2},1024)])):(et(),ae(zn,{key:1},[ye(Tt(p.name),1)],64))]),_:2},1032,["onClick"]),B(c,null,{default:q(()=>[B(h,{class:Kr(["w-[calc(var(--gkd-width)*0.12)]",{"text-left direction-rtl":p.name=="id","opacity-50":p.value===null}])},{default:q(()=>[ye(Tt(p.desc),1)]),_:2},1032,["class"])]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:2},1024)]),_:1})}}}),Uv={bg:"#eee","px-2px":""},Wv=Rt({__name:"MultiFocusCard",props:{focusNode:{},focusNodes:{},onUpdateFocusNode:{type:Function,default:ci},onClose:{type:Function,default:ci}},setup(t){const n=document.documentElement.scrollWidth/100*25.5;return(r,a)=>{const o=Eo,s=nf,l=k1;return et(),de(Wi,{initialValue:{top:215,left:n},class:"z-2 box-shadow-dim w-420px",show:!!r.focusNodes},{default:q(({onRef:f})=>[r.focusNodes?(et(),de(l,{key:0,size:"small",closable:"",onClose:r.onClose},{header:q(()=>[A("div",{ref:f,"cursor-move":""},[ye(" 位置 "),A("span",Uv,Tt(`${r.focusNodes.position.x.toFixed(0)},${r.focusNodes.position.y.toFixed()}`),1),ye(" 存在 "+Tt(r.focusNodes.nodes.length)+" 个层叠节点 ",1)],512)]),default:q(()=>[B(s,{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"}},{default:q(()=>[(et(!0),ae(zn,null,wa(r.focusNodes.nodes,c=>(et(),de(o,{key:c.id,onClick:h=>r.onUpdateFocusNode(c),size:"small",class:Kr({"color-[#00F]":c===r.focusNode})},{default:q(()=>[ye(Tt(E(Ui)(c)),1)]),_:2},1032,["onClick","class"]))),128))]),_:1})]),_:2},1032,["onClose"])):ge("",!0)]),_:1},8,["initialValue","show"])}}}),Hv={flex:"","flex-col":"",relative:"","h-full":""},Vv=["src"],Qv=A("div",{absolute:"","left-0":"","top-0":"","bottom-0":"","right-0":"","b-solid":"","b-1px":"","b-red":""},null,-1),Gv=[Qv],Jv={class:"left-[calc(100%+4px)]",absolute:"","top-0":"","overflow-hidden":"","z-1":"","bg-white":"","h-200px":"","w-200px":"","border-1px":"","border-indigo-600":"","border-dashed":""},Yv=["src"],Xv={absolute:"","left-2px":"","top-2px":"","p-1px":"","z-1":"","text-13px":"",class:"leading-[1] bg-[rgba(256,256,256,0.7)]"},Zv={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":""},tp=A("div",{class:"top-[calc(50%-1px)] bg-[length:10px_1px]",absolute:"","left-0":"","right-0":"","h-1px":"","bg-repeat-x":"","mix-blend-difference":"",style:{"background-image":`linear-gradient(
|
|
258
|
-
to left,
|
|
259
|
-
transparent 0%,
|
|
260
|
-
transparent 50%,
|
|
261
|
-
#fff 50%,
|
|
262
|
-
#fff 100%
|
|
263
|
-
)`,"background-position-x":"1.5px"}},null,-1),ep=A("div",{class:"left-[calc(50%-1px)] bg-[length:1px_10px]",absolute:"","top-0":"","bottom-0":"","w-1px":"","bg-repeat-y":"","mix-blend-difference":"",style:{"background-image":`linear-gradient(
|
|
264
|
-
to top,
|
|
265
|
-
transparent 0%,
|
|
266
|
-
transparent 50%,
|
|
267
|
-
#fff 50%,
|
|
268
|
-
#fff 100%
|
|
269
|
-
)`,"background-position-y":"1.5px"}},null,-1),np=Rt({__name:"ScreenshotCard",props:{url:{},snapshot:{},rootNode:{},focusNode:{},onUpdateFocusNode:{type:Function,default:ci},onUpdateFocusNodes:{type:Function,default:ci}},setup(t){const e=t,n=sf(),r=rf(Z(()=>(n.width.value,n.height.value,Math.random())),300),a=At(),o=At(0),s=m=>{if(!e.rootNode)return;const p=a.value;if(!p)return;const _=p.getBoundingClientRect(),y=_.width/p.naturalWidth*p.naturalHeight,C=(_.height-y)/2,b=(m.clientX-_.left)/_.width*p.naturalWidth,x=(m.clientY-_.top-C)/y*p.naturalHeight,S=D1(e.snapshot.nodes,b,x);S.length!==0&&(S.length===1?e.onUpdateFocusNode(S[0]):(e.onUpdateFocusNode(S[0]),e.onUpdateFocusNodes({nodes:S,position:{x:b,y:x}})))},l=m=>`${m*100}%`,f=Z(()=>{var C;r.value,o.value;const m=a.value,p=(C=e.focusNode)==null?void 0:C.attr;if(!e.focusNode||!m||!p)return"";const _=m.getBoundingClientRect(),y=_.width/m.naturalWidth*m.naturalHeight;return{left:`calc(${l(p.left/m.naturalWidth)} - 2px)`,width:`calc(${l((p.right-p.left)/m.naturalWidth)} + 2px)`,top:`calc(${l((p.top/m.naturalHeight*y+(_.height-y)/2)/_.height)} - 2px)`,height:`calc(${l((p.bottom-p.top)/m.naturalHeight*y/_.height)} + 2px)`}}),c=At(!1),h=At({ox:0,oy:0}),d=Z(()=>{var y;const m=(y=e.focusNode)==null?void 0:y.attr;if(!m)return;const{ox:p,oy:_}=h.value;return{left:p-m.left,right:m.right-p,top:_-m.top,bottom:m.bottom-_}}),v=m=>{const p=a.value;if(!p)return;const _=p.getBoundingClientRect(),y=_.width/p.naturalWidth*p.naturalHeight,C=(_.height-y)/2,b=(m.clientX-_.left)/_.width*p.naturalWidth,x=(m.clientY-_.top-C)/y*p.naturalHeight;h.value={ox:b,oy:x},g.value={left:-(b-.1*p.naturalWidth)/p.naturalWidth*1e3+"px",top:-(x-.1*p.naturalWidth)/p.naturalWidth*1e3+"px"}},g=At({left:"0",top:"0"});return(m,p)=>(et(),ae("div",Hv,[A("img",{ref_key:"imgRef",ref:a,src:m.url,onClick:s,"cursor-crosshair":"","h-full":"","object-contain":"",class:"max-w-[calc(var(--gkd-width)*0.35)]",onMouseover:p[0]||(p[0]=_=>c.value=!0),onMouseleave:p[1]||(p[1]=_=>c.value=!1),onMousemove:v,onLoad:p[2]||(p[2]=_=>o.value=Date.now())},null,40,Vv),A("div",{style:Ps(E(f)),absolute:"","pointer-events-none":"","transition-all-300":"","b-1px":"","b-blue":"","b-solid":""},Gv,4),Hc(A("div",Jv,[A("img",{src:m.url,"object-contain":"",absolute:"","left-0":"","top-0":"",style:Ps(E(g)),"w-1000px":""},null,12,Yv),A("div",Xv,Tt(`${E(h).ox.toFixed(0)},${E(h).oy.toFixed(0)}`),1),E(d)?(et(),ae("div",Zv,[A("div",null,Tt(E(d).top.toFixed(0)),1),A("div",null,Tt(E(d).left.toFixed(0)+","+E(d).right.toFixed(0)),1),A("div",null,Tt(E(d).bottom.toFixed(0)),1)])):ge("",!0),tp,ep],512),[[Vc,E(c)]])]))}});typeof Math.imul>"u"&&(Math.imul=function(e,n){return(e&4294901760)*(n&65535)+(e&65535)*(n|0)|0});typeof ArrayBuffer.isView>"u"&&(ArrayBuffer.isView=function(t){return t!=null&&t.__proto__!=null&&t.__proto__.__proto__===Int8Array.prototype.__proto__});typeof Array.prototype.fill>"u"&&Object.defineProperty(Array.prototype,"fill",{value:function(t){if(this==null)throw new TypeError("this is null or not defined");for(var e=Object(this),n=e.length>>>0,r=arguments[1],a=r>>0,o=a<0?Math.max(n+a,0):Math.min(a,n),s=arguments[2],l=s===void 0?n:s>>0,f=l<0?Math.max(n+l,0):Math.min(l,n);o<f;)e[o]=t,o++;return e}});[Int8Array,Int16Array,Uint16Array,Int32Array,Float32Array,Float64Array].forEach(function(t){typeof t.prototype.fill>"u"&&Object.defineProperty(t.prototype,"fill",{value:Array.prototype.fill})});typeof Math.clz32>"u"&&(Math.clz32=function(t,e){return function(n){var r=n>>>0;return r===0?32:31-(t(r)/e|0)|0}}(Math.log,Math.LN2));typeof String.prototype.startsWith>"u"&&Object.defineProperty(String.prototype,"startsWith",{value:function(t,e){return e=e||0,this.lastIndexOf(t,e)===e}});typeof String.prototype.endsWith>"u"&&Object.defineProperty(String.prototype,"endsWith",{value:function(t,e){var n=this.toString();(e===void 0||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return r!==-1&&r===e}});var yt=Math.imul,rp=ArrayBuffer.isView,vf=Math.clz32;Be(zl,"CharSequence");Be(Ba,"Comparable");k(mo,"Number");lt(Fl,"Unit");k(Kl);k(Hl);be(Sf);k(st,"Char",u,u,[Ba]);Be(Et,"Collection");function pf(){return Kp(this)}Be(Vn,"List",u,u,[Et]);Be(yr,"Entry");Be(wr,"Map");Be(Vr,"Set",u,u,[Et]);be(Ap);k(br,"Enum",u,u,[Ba]);be($f);k(pt,"Long",u,mo,[mo,Ba]);k(No);k(Fs,"JsArrayView",Fs,Array);lt(ih,"Digit");k(Cr,"AbstractCollection",u,u,[Et]);k(Kn,"AbstractMutableCollection",u,Cr,[Cr,Et]);k(gi,"IteratorImpl");k(Ha,"ListIteratorImpl",u,gi);k(we,"AbstractMutableList",u,Kn,[Kn,Vn,Et]);k(qr,"SubList",u,we);k(kn,"AbstractMap",u,u,[wr]);k(bo,"AbstractMutableMap",u,kn,[kn,wr]);k(kr,"AbstractMutableSet",u,Kn,[Kn,Vr,Et]);be(lh);k(Yt,"ArrayList",qt,we,[we,Vn,Et]);k(Un,"HashMap",V_,bo,[bo,wr]);k(Cn,"HashMapEntrySetBase",u,kr,[Vr,Et,kr]);k(eu,"HashMapEntrySet",u,Cn);k(Tn,"HashSet",J_,kr,[kr,Vr,Et]);be(gh);k(Qr,"Itr");k(lu,"KeysItr",u,Qr);k(Ga,"EntriesItr",u,Qr);k(yi,"EntryRef",u,u,[yr]);function ip(t){var e;t:{var n;if(ot(t,Et)?n=t.l():n=!1,n){e=!0;break t}for(var r=t.h();r.i();){var a=r.j(),o=a,s;if(o!=null&&ot(o,yr)?s=this.e6(o):s=!1,!s){e=!1;break t}}e=!0}return e}Be(yh,"InternalMap");k(Se,"InternalHashMap",ru,u,[yh]);k(Ja,"LinkedHashMap",wh,Un,[Un,wr]);k(Gr,"LinkedHashSet",uu,Tn,[Tn,Vr,Et]);Be(ua,"Continuation");k(Na,"InterceptedCoroutine",u,u,[ua]);k(Pe,"CoroutineImpl",u,Na,[Na,ua]);lt(ta,"CompletedContinuation",u,u,[ua]);k(cu,u,u,Pe);k(xn,"Exception",Ch,Error);k(Ke,"RuntimeException",qh,xn);k(wi,"IllegalArgumentException",$h,Ke);k(ea,"IndexOutOfBoundsException",fu,Ke);k(na,"IllegalStateException",Nh,Ke);k(ra,"UnsupportedOperationException",bi,Ke);k(ia,"NoSuchElementException",$e,Ke);k(aa,"Error",Th,Error);k(Ci,"NumberFormatException",Mh,wi);k(oa,"ArithmeticException",Rh,Ke);k(Po,"ConcurrentModificationException",hu,Ke);k(Ro,"NullPointerException",du,Ke);k(Lo,"NoWhenBranchMatchedException",vu,Ke);k(Oo,"ClassCastException",pu,Ke);Be(qa,"KClass");k(pn,"KClassImpl",u,u,[qa]);lt(xi,"NothingKClassImpl",u,pn);k(Gi,"ErrorKClass",Gi,u,[qa]);k(Ft,"PrimitiveKClassImpl",u,pn);k(ko,"SimpleKClassImpl",u,pn);Be(jo,"KProperty1");Be(_u,"KProperty0");lt(Xt,"PrimitiveClasses");k(Sn,"StringBuilder",gu,u,[zl]);be(Uh);k(Xa,"Regex");k(yu,"sam$kotlin_Comparator$0");be(Jr);be(bm);be(Fo);k(Qn,"ArrayAsCollection",u,u,[Et]);lt(ce,"EmptyList",u,u,[Vn]);lt(Si,"EmptyIterator");k(ai,"IndexedValue");k(Bo,"IntIterator");k(to,"CharIterator");k(xr,"SequenceScope",u,u,u,[1]);k(Sr,"SequenceBuilderIterator",Sr,xr,[xr,ua],[1]);k(Cu);k(Ko);k(xu,"TransformingSequence");k(Uo);k(Su,"FilteringSequence");k(Wo);k($u,"IndexingSequence");Be(Ei,"DropTakeSequence");k(Ho);k(fi,"TakeSequence",u,u,[Ei]);k(Vo);k(Eu,"TakeWhileSequence");k(Qo);k(oi,"DropSequence",u,u,[Ei]);k(Go);k(Nu,"DropWhileSequence");lt(no,"EmptySequence",u,u,[Ei]);k(Yo);k(Wr,"SubSequence",u,u,[Ei]);lt(Gn,"EmptySet",u,u,[Vr]);lt(ed,"Key");Be(Om,"ContinuationInterceptor");lt(ro,"EmptyCoroutineContext");k(ho,"CoroutineSingletons",u,br);be(ad);k(Hn,"IntProgression");k(Hr,"IntRange",u,Hn);be(od);k(Nr,"CharProgression");k(Er,"CharRange",u,Nr);k(Zo,"IntProgressionIterator",u,Bo);k(ts,"CharProgressionIterator",u,to);be(qu);be(Km);k(ao,"UnsafeLazyImpl");lt(vd,"UNINITIALIZED_VALUE");be(Ym);k(Ir,"Failure");k(il,"NotImplementedError",il,aa);k(An,"Pair");function zl(){}function Ba(){}function mo(){}function Fl(){}i(Fl).toString=function(){return"kotlin.Unit"};var ft;function Dl(t){switch(t.length){case 0:return sa();case 1:return Wa(t[0]);default:return Bl(t)}}function Ls(t,e){return mf(t,e)>=0}function ap(t){return t.length===0?$i():new Kl(t)}function _f(t,e,n,r,a,o,s){return e=e===u?", ":e,n=n===u?"":n,r=r===u?"":r,a=a===u?-1:a,o=o===u?"...":o,s=s===u?null:s,sp(t,gu(),e,n,r,a,o,s).toString()}function Bl(t){return Va(Im(t))}function op(t){var e;switch(t.length){case 0:throw Ya("Array is empty.");case 1:e=t[0];break;default:throw Dt("Array has more than one element.")}return e}function mf(t,e){if(e==null){var n=0,r=t.length-1|0;if(n<=r)do{var a=n;if(n=n+1|0,t[a]==null)return a}while(n<=r)}else{var o=0,s=t.length-1|0;if(o<=s)do{var l=o;if(o=o+1|0,I(e,t[l]))return l}while(o<=s)}return-1}function sp(t,e,n,r,a,o,s,l){n=n===u?", ":n,r=r===u?"":r,a=a===u?"":a,o=o===u?-1:o,s=s===u?"...":s,l=l===u?null:l,e.e(r);var f=0,c=0,h=t.length;t:for(;c<h;){var d=t[c];if(c=c+1|0,f=f+1|0,f>1&&e.e(n),o<0||f<=o)ld(e,d,l);else break t}return o>=0&&f>o&&e.e(s),e.e(a),e}function lp(t){return t.length-1|0}function up(t,e){if(e==null){var n=t.length-1|0;if(0<=n)do{var r=n;if(n=n+-1|0,t[r]==null)return r}while(0<=n)}else{var a=t.length-1|0;if(0<=a)do{var o=a;if(a=a+-1|0,I(e,t[o]))return o}while(0<=a)}return-1}function cp(t,e){for(var n=0,r=t.length;n<r;){var a=t[n];n=n+1|0,e.f(a)}return e}function Kl(t){this.g_1=t}i(Kl).h=function(){return Nf(this.g_1)};function In(t,e,n,r,a,o,s){return e=e===u?", ":e,n=n===u?"":n,r=r===u?"":r,a=a===u?-1:a,o=o===u?"...":o,s=s===u?null:s,fp(t,gu(),e,n,r,a,o,s).toString()}function fp(t,e,n,r,a,o,s,l){n=n===u?", ":n,r=r===u?"":r,a=a===u?"":a,o=o===u?-1:o,s=s===u?"...":s,l=l===u?null:l,e.e(r);var f=0,c=t.h();t:for(;c.i();){var h=c.j();if(f=f+1|0,f>1&&e.e(n),o<0||f<=o)ld(e,h,l);else break t}return o>=0&&f>o&&e.e(s),e.e(a),e}function gf(t){return t.l()?null:t.k(0)}function Hi(t){if(t.l())throw Ya("List is empty.");return t.k(0)}function hp(t){return wf(pp(t))}function dp(t){return new Hl(t)}function vp(t){return t.l()?null:t.k(t.m()-1|0)}function yf(t,e){if(ot(e,Et)){var n=Vi(t.m()+e.m()|0);return n.q(t),n.q(e),n}else{var r=Va(t);return Do(r,e),r}}function ba(t){if(t.l())throw Ya("List is empty.");return t.k(Za(t))}function Ul(t){return Va(t)}function Wl(t,e){if(ot(t,Et)){if(t.m()<=1)return wf(t);var n=bn(t),r=Zi(n)?n:$();return E_(r,e),Xl(r)}var a=bf(t);return R_(a,e),a}function wf(t){if(ot(t,Et)){var e;switch(t.m()){case 0:e=sa();break;case 1:var n;ot(t,Vn)?n=t.k(0):n=t.h().j(),e=Wa(n);break;default:e=Ul(t);break}return e}return $m(bf(t))}function pp(t){var e;return ot(t,Et)?e=_0(t):e=go(t,uu()),e}function bf(t){return ot(t,Et)?Ul(t):go(t,qt())}function go(t,e){for(var n=t.h();n.i();){var r=n.j();e.f(r)}return e}function _p(t){if(ot(t,Et)){var e;switch(t.m()){case 0:e=Iu();break;case 1:var n;ot(t,Vn)?n=t.k(0):n=t.h().j(),e=oh(n);break;default:e=go(t,y0(t.m()));break}return e}return Rm(go(t,uu()))}function Hl(t){this.r_1=t}i(Hl).h=function(){return this.r_1.h()};function mp(t,e){return sd.s(t,e,-1)}function ka(t,e){return t>e?e:t}function yo(t,e){return t<e?e:t}function Vl(t){return bp(t,qt())}function Ql(t,e){var n=new $u(t),r=new Su(n,!0,kp(e));return new xu(r,Cp)}function kf(t,e){if(!(e>=0)){var n="Requested element count "+e+" is less than zero.";throw Dt(z(n))}var r;return e===0?r=$i():ot(t,Ei)?r=t.t(e):r=new fi(t,e),r}function gp(t,e){return new Eu(t,e)}function yp(t,e){var n;return ot(t,Ei)?n=t.u(e):n=new oi(t,e),n}function wp(t,e){return new Nu(t,e)}function Cf(t){var e=t.h();return e.i()?e.j():null}function xf(t){var e=t.h();if(!e.i())return sa();var n=e.j();if(!e.i())return Wa(n);var r=qt();for(r.f(n);e.i();)r.f(e.j());return r}function bp(t,e){for(var n=t.h();n.i();){var r=n.j();e.f(r)}return e}function kp(t){return function(e){return t(e.v_1,e.w_1)}}function Cp(t){return t.w_1}function tn(t,e){return 0<=e&&e<=(P(t)-1|0)?O(t,e):null}function dc(t,e){if(!(e>=0)){var n="Requested character count "+e+" is less than zero.";throw Dt(z(n))}return fn(t,ka(e,P(t)),P(t))}function xp(t){return Sp(t,Vi(P(t)))}function Sp(t,e){for(var n=0;n<P(t);){var r=O(t,n);n=n+1|0,e.f(new st(r))}return e}function $p(t){var e=t&65535;return e}function ie(t,e){return t-e|0}function Ep(t,e){return ie(t.x_1,e instanceof st?e.x_1:$())}function pa(t,e){return t-e|0}function ri(t,e){return new Er(t,e)}function je(t){return t}function Vt(t){return String.fromCharCode(t)}function Np(t,e){return e instanceof st?t===e.x_1:!1}function Ip(t){return t}function Sf(){Os=this,this.y_1=0,this.z_1=65535,this.a1_1=55296,this.b1_1=56319,this.c1_1=56320,this.d1_1=57343,this.e1_1=55296,this.f1_1=57343,this.g1_1=2,this.h1_1=16}var Os;function qp(){return Os==null&&new Sf,Os}function st(t){qp(),this.x_1=t}i(st).i1=function(t){return ie(this.x_1,t)};i(st).d=function(t){return Ep(this,t)};i(st).toString=function(){return Vt(this.x_1)};i(st).equals=function(t){return Np(this.x_1,t)};i(st).hashCode=function(){return Ip(this.x_1)};function Vn(){}function Et(){}function yr(){}function wr(){}function Vr(){}function Ap(){}function br(t,e){this.v1_1=t,this.w1_1=e}i(br).x1=function(t){return Lf(this.w1_1,t.w1_1)};i(br).d=function(t){return this.x1(t instanceof br?t:$())};i(br).equals=function(t){return this===t};i(br).hashCode=function(){return Yp(this)};i(br).toString=function(){return this.v1_1};function Gt(t){var e=t==null?null:z(t);return e==null?"null":e}function $f(){js=this,this.y1_1=new pt(0,-2147483648),this.z1_1=new pt(-1,2147483647),this.a2_1=8,this.b2_1=64}var js;function Tp(){return js==null&&new $f,js}function pt(t,e){Tp(),mo.call(this),this.c2_1=t,this.d2_1=e}i(pt).e2=function(t){return qo(this,t)};i(pt).d=function(t){return this.e2(t instanceof pt?t:$())};i(pt).f2=function(t){return wo(this,t)};i(pt).g2=function(t){return s_(this,t)};i(pt).h2=function(){return this.i2().f2(new pt(1,0))};i(pt).i2=function(){return new pt(~this.c2_1,~this.d2_1)};i(pt).j2=function(){return this.c2_1};i(pt).k2=function(){return Sa(this)};i(pt).toString=function(){return Bs(this,10)};i(pt).equals=function(t){var e;return t instanceof pt?e=Nn(this,t):e=!1,e};i(pt).hashCode=function(){return c_(this)};i(pt).valueOf=function(){return this.k2()};function Ef(t){for(var e=1,n=[],r=0,a=t.length;r<a;){var o=t[r];r=r+1|0;var s=e,l=o.prototype.$imask$,f=l==null?o.$imask$:l;f!=null&&(n.push(f),s=f.length);var c=o.$metadata$.iid,h;c==null?h=null:h=Mp(c);var d=h;d!=null&&(n.push(d),s=Math.max(s,d.length)),s>e&&(e=s)}return Pp(e,n)}function Mp(t){var e=t>>5,n=new Int32Array(e+1|0),r=t&31,a=1<<r;return n[e]=n[e]|a,n}function Pp(t,e){for(var n=0,r=new Int32Array(t);n<t;){for(var a=n,o=0,s=0,l=e.length;s<l;){var f=e[s];s=s+1|0,a<f.length&&(o=o|f[a])}r[a]=o,n=n+1|0}return r}function Rp(t,e){var n=e>>5;if(n>t.length)return!1;var r=e&31,a=1<<r;return!!(t[n]&a)}function nr(t,e){var n=0,r=t.length-1|0;if(n<=r)do{var a=n;n=n+1|0,t[a]=e}while(a!==r);return t}function Nf(t){return new No(t)}function Lp(t){var e="CharArray",n=new Uint16Array(t);return n.$type$=e,n}function No(t){this.m2_1=t,this.l2_1=0}i(No).i=function(){return this.l2_1!==this.m2_1.length};i(No).j=function(){var t;if(this.l2_1!==this.m2_1.length){var e=this.l2_1;this.l2_1=e+1|0,t=this.m2_1[e]}else throw Ya(""+this.l2_1);return t};function $s(){return Yi(),If}var If;function qf(){return Yi(),Af}var Af;function zs(){return Yi(),Tf}var Tf;function Mf(){return Yi(),Pf}var Pf;function Op(){return Yi(),Rf}var Rf;function jp(t){return Yi(),(t|0)===t?Wf(t):(qf()[0]=t,yt(zs()[Op()],31)+zs()[Mf()]|0)}var vc;function Yi(){vc||(vc=!0,If=new ArrayBuffer(8),Af=new Float64Array($s()),new Float32Array($s()),Tf=new Int32Array($s()),qf()[0]=-1,Pf=zs()[0]!==0?1:0,Rf=1-Mf()|0)}function O(t,e){var n;if(Gl(t)){var r=t.charCodeAt(e),a,o=0;if(r<je(o))a=!0;else{var s=65535;a=r>je(s)}if(a)throw Dt("Invalid Char code: "+r);n=Ea(r)}else n=t.b(e);return n}function Gl(t){return typeof t=="string"}function P(t){var e;return Gl(t)?e=t.length:e=t.a(),e}function fn(t,e,n){var r;return Gl(t)?r=t.substring(e,n):r=t.c(e,n),r}function zp(t,e){var n=t,r=e;if(n===r)return!0;if(n==null||r==null||!Vf(r)||n.length!=r.length)return!1;var a=0,o=n.length;if(a<o)do{var s=a;if(a=a+1|0,!I(n[s],r[s]))return!1}while(a<o);return!0}function Fp(t){var e=t;if(e==null)return 0;var n=1,r=0,a=e.length;if(r<a)do{var o=r;r=r+1|0,n=yt(n,31)+ct(e[o])|0}while(r<a);return n}function Dp(t){return _f(t,", ","[","]",u,u,Bp)}function Bp(t){return z(t)}function Kp(t){var e=Wp(t),n=Hp(t),r=Vp(),a=Qp(),o=Gp();return Up(e,n,r,a,o)}function Up(t,e,n,r,a){var o=nt(i(Fs));return new Proxy(o,{get:function(s,l,f){if(l==="length")return t();var c=typeof l,h=c==="string"||c==="number"?+l:void 0;return isNaN(h)?s[l]:e(h)},has:function(s,l){return!isNaN(l)&&l<t()},set:function(s,l,f){if(l==="length"){var c=t(),h=d==="string"||d==="number"?+l:void 0;if(isNaN(h))throw new RangeError("invalid array length");return h<c?r(c-h):a(h-c),!0}var d=typeof l,v=d==="string"||d==="number"?+l:void 0;return isNaN(v)?!1:(n(v,f),!0)}})}function Jl(){throw bi()}function Fs(){Array.call(this)}function Wp(t){return function(){return t.m()}}function Hp(t){return function(e){return t.k(e)}}function Vp(){var t=function(){return Jl(),ft};return t.callableName="UNSUPPORTED_OPERATION",t}function Qp(){var t=function(){return Jl(),ft};return t.callableName="UNSUPPORTED_OPERATION",t}function Gp(){var t=function(){return Jl(),ft};return t.callableName="UNSUPPORTED_OPERATION",t}function Lf(t,e){var n;switch(typeof t){case"number":var r;typeof e=="number"?r=pc(t,e):e instanceof pt?r=pc(t,e.k2()):r=_c(t,e),n=r;break;case"string":case"boolean":n=_c(t,e);break;default:n=Jp(t,e);break}return n}function pc(t,e){var n;if(t<e)n=-1;else if(t>e)n=1;else if(t===e){var r;if(t!==0)r=0;else{var a=1/t,o;a===1/e?o=0:a<0?o=-1:o=1,r=o}n=r}else t!==t?n=e!==e?0:1:n=-1;return n}function _c(t,e){return t<e?-1:t>e?1:0}function Jp(t,e){return t.d(e)}function Yp(t){return Ds(t)}function Ds(t){if(!("kotlinHashCodeValue$"in t)){var e=Of(),n=new Object;n.value=e,n.enumerable=!1,Object.defineProperty(t,"kotlinHashCodeValue$",n)}return t.kotlinHashCodeValue$}function Of(){return Math.random()*4294967296|0}function nt(t){return t=t===u?null:t,Object.create(t)}function V(t,e,n,r){return Object.defineProperty(t,e,{configurable:!0,get:n,set:r})}function I(t,e){if(t==null)return e==null;if(e==null)return!1;if(typeof t=="object"&&typeof t.equals=="function")return t.equals(e);if(t!==t)return e!==e;if(typeof t=="number"&&typeof e=="number"){var n;if(t===e){var r;if(t!==0)r=!0;else{var a=1/t;r=a===1/e}n=r}else n=!1;return n}return t===e}function ct(t){if(t==null)return 0;var e=typeof t,n;switch(e){case"object":n=typeof t.hashCode=="function"?t.hashCode():Ds(t);break;case"function":n=Ds(t);break;case"number":n=jp(t);break;case"boolean":n=Ca(t);break;case"string":n=Ge(String(t));break;case"bigint":n=Xp(t);break;case"symbol":n=Zp(t);break;default:n=function(){throw new Error("Unexpected typeof `"+e+"`")}();break}return n}function z(t){var e;return t==null?e="null":Vf(t)?e="[...]":typeof t.toString!="function"?e=t_(t):e=t.toString(),e}function Ca(t){return t?1231:1237}function Ge(t){var e=0,n=t.length,r=0,a=n-1|0;if(r<=a)do{var o=r;r=r+1|0;var s=t.charCodeAt(o);e=yt(e,31)+s|0}while(o!==a);return e}function Xp(t){for(var e=BigInt(32),n=BigInt(4294967295),r=t<0?-t:t,a=0,o=t<0?-1:1;r!=0;){var s=Number(r&n);a=yt(31,a)+s|0,r=r>>e}return yt(a,o)}function Zp(t){var e=e_(t)?n_():r_(),n=e.get(t);if(n!==u)return n;var r=Of();return e.set(t,r),r}function t_(t){return Object.prototype.toString.call(t)}function e_(t){return Symbol.keyFor(t)!=u}function n_(){return Es===u&&(Es=new Map),Es}function r_(){return Ns===u&&(Ns=new WeakMap),Ns}var Es,Ns;function H(t,e){Error.captureStackTrace!=null?Error.captureStackTrace(t,e):t.stack=new Error().stack}function i(t){return t.prototype}function Io(t,e,n){Error.call(t),i_(t,e,n)}function i_(t,e,n){var r=rh(Object.getPrototypeOf(t));if(!(r&1)){var a;if(e==null){var o;if(e!==null){var s=null;o=s==null?u:s}else o=u;a=o}else a=e;t.message=a}r&2||(t.cause=n),t.name=Object.getPrototypeOf(t).constructor.name}function Me(t){var e;return t==null?a_():e=t,e}function a_(){throw du()}function qn(){throw vu()}function $(){throw pu()}function ir(){return Nt(),jf}var jf;function co(){return Nt(),zf}var zf;function mc(){return Nt(),Ff}var Ff;function o_(){return Nt(),Df}var Df;function Fn(){return Nt(),Bf}var Bf;function gc(){return Nt(),Kf}var Kf;function qo(t,e){if(Nt(),Nn(t,e))return 0;var n=wn(t),r=wn(e);return n&&!r?-1:!n&&r?1:wn(xa(t,e))?-1:1}function wo(t,e){Nt();var n=t.d2_1>>>16|0,r=t.d2_1&65535,a=t.c2_1>>>16|0,o=t.c2_1&65535,s=e.d2_1>>>16|0,l=e.d2_1&65535,f=e.c2_1>>>16|0,c=e.c2_1&65535,h=0,d=0,v=0,g=0;return g=g+(o+c|0)|0,v=v+(g>>>16|0)|0,g=g&65535,v=v+(a+f|0)|0,d=d+(v>>>16|0)|0,v=v&65535,d=d+(r+l|0)|0,h=h+(d>>>16|0)|0,d=d&65535,h=h+(n+s|0)|0,h=h&65535,new pt(v<<16|g,h<<16|d)}function xa(t,e){return Nt(),wo(t,e.h2())}function Rr(t,e){if(Nt(),ii(t))return ir();if(ii(e))return ir();if(Nn(t,Fn()))return yc(e)?Fn():ir();if(Nn(e,Fn()))return yc(t)?Fn():ir();if(wn(t)){var n;return wn(e)?n=Rr(Ze(t),Ze(e)):n=Ze(Rr(Ze(t),e)),n}else if(wn(e))return Ze(Rr(t,Ze(e)));if(wc(t,gc())&&wc(e,gc()))return $a(Sa(t)*Sa(e));var r=t.d2_1>>>16|0,a=t.d2_1&65535,o=t.c2_1>>>16|0,s=t.c2_1&65535,l=e.d2_1>>>16|0,f=e.d2_1&65535,c=e.c2_1>>>16|0,h=e.c2_1&65535,d=0,v=0,g=0,m=0;return m=m+yt(s,h)|0,g=g+(m>>>16|0)|0,m=m&65535,g=g+yt(o,h)|0,v=v+(g>>>16|0)|0,g=g&65535,g=g+yt(s,c)|0,v=v+(g>>>16|0)|0,g=g&65535,v=v+yt(a,h)|0,d=d+(v>>>16|0)|0,v=v&65535,v=v+yt(o,c)|0,d=d+(v>>>16|0)|0,v=v&65535,v=v+yt(s,f)|0,d=d+(v>>>16|0)|0,v=v&65535,d=d+(((yt(r,h)+yt(a,c)|0)+yt(o,f)|0)+yt(s,l)|0)|0,d=d&65535,new pt(g<<16|m,d<<16|v)}function s_(t,e){if(Nt(),ii(e))throw xh("division by zero");if(ii(t))return ir();if(Nn(t,Fn())){if(Nn(e,co())||Nn(e,mc()))return Fn();if(Nn(e,Fn()))return co();var n=u_(t,1),r=l_(n.g2(e),1);if(Nn(r,ir()))return wn(e)?co():mc();var a=xa(t,Rr(e,r));return wo(r,a.g2(e))}else if(Nn(e,Fn()))return ir();if(wn(t)){var o;return wn(e)?o=Ze(t).g2(Ze(e)):o=Ze(Ze(t).g2(e)),o}else if(wn(e))return Ze(t.g2(Ze(e)));for(var s=ir(),l=t;h_(l,e);){for(var f=Sa(l)/Sa(e),c=Math.max(1,Math.floor(f)),h=Math.ceil(Math.log(c)/Math.LN2),d=h<=48?1:Math.pow(2,h-48),v=$a(c),g=Rr(v,e);wn(g)||f_(g,l);)c=c-d,v=$a(c),g=Rr(v,e);ii(v)&&(v=co()),s=wo(s,v),l=xa(l,g)}return s}function l_(t,e){Nt();var n=e&63;return new pt(t.c2_1<<n,t.d2_1<<n|(t.c2_1>>>(32-n|0)|0))}function u_(t,e){Nt();var n=e&63;return new pt(t.c2_1>>>n|0|t.d2_1<<(32-n|0),t.d2_1>>n)}function Sa(t){return Nt(),t.d2_1*4294967296+d_(t)}function Bs(t,e){if(Nt(),ii(t))return"0";if(wn(t))if(Nn(t,Fn())){var n=ya(e),r=t.g2(n),a=xa(Rr(r,n),t).j2(),o=Bs(r,e);return o+a.toString(e)}else return"-"+Bs(Ze(t),e);for(var s=9,l=$a(Math.pow(e,s)),f=t,c="";;){var h=f.g2(l),d=xa(f,Rr(h,l)).j2(),v=d.toString(e);if(f=h,ii(f))return v+c;for(;v.length<s;)v="0"+v;c=v+c}}function Nn(t,e){return Nt(),t.d2_1===e.d2_1&&t.c2_1===e.c2_1}function c_(t){return Nt(),t.c2_1^t.d2_1}function ya(t){return Nt(),new pt(t,t<0?-1:0)}function wn(t){return Nt(),t.d2_1<0}function ii(t){return Nt(),t.d2_1===0&&t.c2_1===0}function yc(t){return Nt(),(t.c2_1&1)===1}function Ze(t){return Nt(),t.h2()}function wc(t,e){return Nt(),qo(t,e)<0}function $a(t){if(Nt(),M_(t))return ir();if(t<=-9223372036854776e3)return Fn();if(t+1>=9223372036854776e3)return o_();if(t<0)return Ze($a(-t));var e=4294967296,n=t%e|0,r=t/e|0;return new pt(n,r)}function f_(t,e){return Nt(),qo(t,e)>0}function h_(t,e){return Nt(),qo(t,e)>=0}function d_(t){return Nt(),t.c2_1>=0?t.c2_1:4294967296+t.c2_1}var bc;function Nt(){bc||(bc=!0,jf=ya(0),zf=ya(1),Ff=ya(-1),Df=new pt(-1,2147483647),Bf=new pt(0,-2147483648),Kf=ya(16777216))}function Uf(t,e,n,r,a,o){var s=u,l=t==="interface"?v_():u;return{kind:t,simpleName:e,associatedObjectKey:r,associatedObjects:a,suspendArity:o,$kClass$:s,defaultConstructor:n,iid:l}}function v_(){return _a===u&&(_a=0),_a=_a+1|0,_a}var _a;function Yl(t,e,n,r,a,o,s,l,f){a!=null&&(e.prototype=Object.create(a.prototype),e.prototype.constructor=e);var c=Uf(t,n,r,l,f,s);if(e.$metadata$=c,o!=null){var h=I(c.iid,u)?e.prototype:e;h.$imask$=Ef(o)}}function k(t,e,n,r,a,o,s,l){var f="class";Yl(f,t,e,n,r,a,o,s,l)}function lt(t,e,n,r,a,o,s,l){var f="object";Yl(f,t,e,n,r,a,o,s,l)}function Be(t,e,n,r,a,o,s,l){var f="interface";Yl(f,t,e,n,r,a,o,s,l)}function Ka(t,e,n,r){k(t,"Lambda",u,e,n,r,u,u)}function be(t,e,n,r){lt(t,"Companion",u,e,n,r,u,u)}function p_(t,e,n,r,a){return Uf("class",t,e,n,r,a)}function rr(t){var e=t.length,n=Array(e),r=0,a=e-1|0;if(r<=a)do{var o=r;r=r+1|0;var s=t[o];s!=null&&Zi(s)?n[o]=s:n[o]=[].slice.call(s)}while(o!==a);return[].concat.apply([],n)}function Wf(t){var e;return t instanceof pt?e=t.j2():e=__(t),e}function __(t){var e;return t>2147483647?e=2147483647:t<-2147483648?e=-2147483648:e=t|0,e}function m_(t){return t<<16>>16}function Ea(t){var e=Wf(t),n=m_(e);return $p(n)}function g_(t,e){return new Hr(t,e)}function y_(){return Xi(),Hf}var Hf;function zi(){return Xi(),p_(u,u,u,u,u)}function Ua(t,e,n,r,a){return Xi(),r.get=r,r.set=a,r.callableName=t,w_(r,b_(e,a),k_(r,n))}function w_(t,e,n){return Xi(),t.$metadata$=e,t.constructor=t,t.$imask$=n,t}function b_(t,e){return Xi(),y_()[t][e==null?0:1]}function k_(t,e){Xi();var n=t.$imask$,r;if(n==null){var a=[e];r=Ef(a)}else r=n;return r}var kc;function Xi(){if(!kc){kc=!0;var t=[zi(),zi()],e=[zi(),zi()];Hf=[t,e,[zi(),zi()]]}}function Vf(t){return Ao(t)||rp(t)}function Ao(t){return Array.isArray(t)}function ot(t,e){return C_(t,e.$metadata$.iid)}function C_(t,e){var n=t.$imask$,r;if(n==null)return!1;r=n;var a=r;return Rp(a,e)}function Zi(t){var e;return Ao(t)?e=!t.$type$:e=!1,e}function Qf(t){var e;return typeof t=="number"?e=!0:e=t instanceof pt,e}function x_(t){var e=typeof t;return e==="string"||e==="boolean"||Qf(t)||ot(t,Ba)}function _e(t){return typeof t=="string"||ot(t,zl)}function Gf(t){return Ao(t)&&t.$type$==="BooleanArray"}function Jf(t){return t instanceof Int8Array}function Yf(t){return t instanceof Int16Array}function Xf(t){var e;return t instanceof Uint16Array?e=t.$type$==="CharArray":e=!1,e}function Zf(t){return t instanceof Int32Array}function th(t){return t instanceof Float32Array}function eh(t){return Ao(t)&&t.$type$==="LongArray"}function nh(t){return t instanceof Float64Array}function rh(t){var e=t.constructor,n=e==null?null:e.$metadata$,r=n==null?null:n.errorInfo;if(r!=null)return r;var a=0;if(Cc(t,"message")&&(a=a|1),Cc(t,"cause")&&(a=a|2),a!==3){var o=S_(t);o!=Error.prototype&&(a=a|rh(o))}return n!=null&&(n.errorInfo=a),a}function Cc(t,e){return t.hasOwnProperty(e)}function S_(t){return Object.getPrototypeOf(t)}var u;function $_(t,e,n,r){n=n===u?0:n,r=r===u?t.length:r,_n.o2(n,r,t.length),t.fill(e,n,r)}function Ks(t,e){return zp(t,e)}function Us(t){return Fp(t)}function Xl(t){return new Yt(t)}function E_(t,e){t.length>1&&uh(t,e)}function N_(t,e){if(!(e>=0)){var n="Invalid new array size: "+e+".";throw Dt(z(n))}return z0(t,new Int32Array(e))}function I_(t,e){if(!(e>=0)){var n="Invalid new array size: "+e+".";throw Dt(z(n))}return F0(t,e,null)}function Zl(t){var e=(t.m()/2|0)-1|0;if(e<0)return ft;var n=Za(t),r=0;if(r<=e)do{var a=r;r=r+1|0;var o=t.k(a);t.p2(a,t.k(n)),t.p2(n,o),n=n-1|0}while(a!==e)}function q_(t){var e=je(t),n=A_(xc().q2_1,e),r=e-xc().q2_1[n]|0;return r<10?r:-1}function A_(t,e){for(var n=0,r=t.length-1|0,a=-1,o=0;n<=r;)if(a=(n+r|0)/2|0,o=t[a],e>o)n=a+1|0;else{if(e===o)return a;r=a-1|0}return a-(e<o?1:0)|0}function ih(){Ws=this;var t=this;t.q2_1=new Int32Array([48,1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,42528,43216,43264,43472,43504,43600,44016,65296])}var Ws;function xc(){return Ws==null&&new ih,Ws}function T_(t){var e=je(t);return(9<=e?e<=13:!1)||(28<=e?e<=32:!1)||e===160||e>4096&&(e===5760||(8192<=e?e<=8202:!1)||e===8232||e===8233||e===8239||e===8287||e===12288)}function M_(t){return t!==t}function P_(t){var e;return t===0?e=0:e=1<<(31-vf(t)|0),e}function ah(t){return Cm(t)}function Wa(t){return Sm([t])}function bn(t){var e;return t.toArray!==void 0?e=t.toArray():e=ah(t),e}function To(t){return t<0&&qm(),t}function R_(t,e){L_(t,e)}function oh(t){return Pm([t])}function L_(t,e){if(t.m()<=1)return ft;var n=bn(t);uh(n,e);var r=0,a=n.length;if(r<a)do{var o=r;r=r+1|0,t.p2(o,n[o])}while(r<a)}function Kn(){Cr.call(this)}i(Kn).q=function(t){this.r2();for(var e=!1,n=t.h();n.i();){var r=n.j();this.f(r)&&(e=!0)}return e};i(Kn).toJSON=function(){return this.toArray()};i(Kn).r2=function(){};function gi(t){this.u2_1=t,this.s2_1=0,this.t2_1=-1}i(gi).i=function(){return this.s2_1<this.u2_1.m()};i(gi).j=function(){if(!this.i())throw $e();var t=this,e=this.s2_1;return this.s2_1=e+1|0,t.t2_1=e,this.u2_1.k(this.t2_1)};i(gi).v2=function(){if(this.t2_1===-1){var t="Call next() or previous() before removing element from the iterator.";throw Ur(z(t))}this.u2_1.x2(this.t2_1),this.s2_1=this.t2_1,this.t2_1=-1};function Ha(t,e){this.b3_1=t,gi.call(this,t),_n.c3(e,this.b3_1.m()),this.s2_1=e}i(Ha).d3=function(){return this.s2_1>0};i(Ha).e3=function(){return this.s2_1};i(Ha).f3=function(){if(!this.d3())throw $e();var t=this;return this.s2_1=this.s2_1-1|0,t.t2_1=this.s2_1,this.b3_1.k(this.t2_1)};function qr(t,e,n){we.call(this),this.h3_1=t,this.i3_1=e,this.j3_1=0,_n.o2(this.i3_1,n,this.h3_1.m()),this.j3_1=n-this.i3_1|0}i(qr).k3=function(t,e){_n.c3(t,this.j3_1),this.h3_1.k3(this.i3_1+t|0,e),this.j3_1=this.j3_1+1|0};i(qr).k=function(t){return _n.l3(t,this.j3_1),this.h3_1.k(this.i3_1+t|0)};i(qr).x2=function(t){_n.l3(t,this.j3_1);var e=this.h3_1.x2(this.i3_1+t|0);return this.j3_1=this.j3_1-1|0,e};i(qr).p2=function(t,e){return _n.l3(t,this.j3_1),this.h3_1.p2(this.i3_1+t|0,e)};i(qr).m3=function(t,e){this.h3_1.m3(this.i3_1+t|0,this.i3_1+e|0),this.j3_1=this.j3_1-(e-t|0)|0};i(qr).m=function(){return this.j3_1};i(qr).r2=function(){return this.h3_1.r2()};function we(){Kn.call(this),this.w2_1=0}i(we).f=function(t){return this.r2(),this.k3(this.m(),t),!0};i(we).n3=function(){this.r2(),this.m3(0,this.m())};i(we).h=function(){return new gi(this)};i(we).j1=function(t){return this.l1(t)>=0};i(we).l1=function(t){var e;t:{for(var n=0,r=this.h();r.i();){var a=r.j();if(I(a,t)){e=n;break t}n=n+1|0}e=-1}return e};i(we).m1=function(t){var e;t:{for(var n=this.o1(this.m());n.d3();){var r=n.f3();if(I(r,t)){e=n.e3();break t}}e=-1}return e};i(we).n1=function(){return this.o1(0)};i(we).o1=function(t){return new Ha(this,t)};i(we).p1=function(t,e){return new qr(this,t,e)};i(we).m3=function(t,e){var n=this.o1(t),r=e-t|0,a=0;if(a<r)do a=a+1|0,n.j(),n.v2();while(a<r)};i(we).equals=function(t){return t===this?!0:t!=null&&ot(t,Vn)?_n.o3(this,t):!1};i(we).hashCode=function(){return _n.p3(this)};function bo(){kn.call(this),this.s3_1=null,this.t3_1=null}function kr(){Kn.call(this)}i(kr).equals=function(t){return t===this?!0:t!=null&&ot(t,Vr)?bu.y3(this,t):!1};i(kr).hashCode=function(){return bu.z3(this)};function sh(t){if(!(t>=0)){var e="capacity must be non-negative.";throw Dt(z(e))}return nr(Array(t),null)}function Sc(t,e,n){t.fill(null,e,n)}function $c(t,e){return I_(t,e)}function lh(){Hs=this;var t=this,e=Vi(0);e.p_1=!0,t.a4_1=e}var Hs;function O_(){return Hs==null&&new lh,Hs}function j_(t){var e=[];return Yt.call(t,e),t}function qt(){return j_(nt(i(Yt)))}function z_(t,e){var n=[];if(Yt.call(e,n),!(t>=0)){var r="Negative initial capacity: "+t;throw Dt(z(r))}return e}function Vi(t){return z_(t,nt(i(Yt)))}function F_(t,e){var n=bn(t);return Yt.call(e,n),e}function Va(t){return F_(t,nt(i(Yt)))}function D_(t,e){var n=t.m();return t.o_1.length=t.m()+e|0,n}function tu(t,e){return _n.l3(e,t.m()),e}function B_(t,e){return _n.c3(e,t.m()),e}function Yt(t){O_(),we.call(this),this.o_1=t,this.p_1=!1}i(Yt).m=function(){return this.o_1.length};i(Yt).k=function(t){var e=this.o_1[tu(this,t)];return e==null||e!=null?e:$()};i(Yt).p2=function(t,e){this.r2(),tu(this,t);var n=this.o_1[t];this.o_1[t]=e;var r=n;return r==null||r!=null?r:$()};i(Yt).f=function(t){return this.r2(),this.o_1.push(t),this.w2_1=this.w2_1+1|0,!0};i(Yt).k3=function(t,e){this.r2(),this.o_1.splice(B_(this,t),0,e),this.w2_1=this.w2_1+1|0};i(Yt).q=function(t){if(this.r2(),t.l())return!1;for(var e=D_(this,t.m()),n=0,r=t.h();r.i();){var a=r.j(),o=n;n=o+1|0;var s=To(o);this.o_1[e+s|0]=a}return this.w2_1=this.w2_1+1|0,!0};i(Yt).x2=function(t){this.r2(),tu(this,t),this.w2_1=this.w2_1+1|0;var e;return t===Za(this)?e=this.o_1.pop():e=this.o_1.splice(t,1)[0],e};i(Yt).m3=function(t,e){this.r2(),this.w2_1=this.w2_1+1|0,this.o_1.splice(t,e-t|0)};i(Yt).n3=function(){this.r2();var t=this;t.o_1=[],this.w2_1=this.w2_1+1|0};i(Yt).l1=function(t){return mf(this.o_1,t)};i(Yt).m1=function(t){return up(this.o_1,t)};i(Yt).toString=function(){return Dp(this.o_1)};i(Yt).b4=function(){return[].slice.call(this.o_1)};i(Yt).toArray=function(){return this.b4()};i(Yt).r2=function(){if(this.p_1)throw bi()};var fo;function uh(t,e){if(K_()){var n=W_(e);t.sort(n)}else U_(t,0,lp(t),e)}function K_(){var t=fo;if(t!=null)return t;fo=!1;var e=[],n=0;if(n<600)do{var r=n;n=n+1|0,e.push(r)}while(n<600);var a=H_;e.sort(a);var o=1,s=e.length;if(o<s)do{var l=o;o=o+1|0;var f=e[l-1|0],c=e[l];if((f&3)===(c&3)&&f>=c)return!1}while(o<s);return fo=!0,!0}function U_(t,e,n,r){var a=t.length,o=nr(Array(a),null),s=Vs(t,o,e,n,r);if(s!==t){var l=e;if(l<=n)do{var f=l;l=l+1|0,t[f]=s[f]}while(f!==n)}}function Vs(t,e,n,r,a){if(n===r)return t;var o=(n+r|0)/2|0,s=Vs(t,e,n,o,a),l=Vs(t,e,o+1|0,r,a),f=s===e?t:e,c=n,h=o+1|0,d=n;if(d<=r)do{var v=d;if(d=d+1|0,c<=o&&h<=r){var g=s[c],m=l[h];a.compare(g,m)<=0?(f[v]=g,c=c+1|0):(f[v]=m,h=h+1|0)}else c<=o?(f[v]=s[c],c=c+1|0):(f[v]=l[h],h=h+1|0)}while(v!==r);return f}function W_(t){return function(e,n){return t.compare(e,n)}}function H_(t,e){return(t&3)-(e&3)|0}function ch(t,e){return bo.call(e),Un.call(e),e.g4_1=t,e}function fh(t){return ch(ru(),t),t}function V_(){return fh(nt(i(Un)))}function Q_(t,e,n){return ch(_h(t,e),n),n}function G_(t,e){return Q_(t,1,e),e}i(Un).s1=function(t){return this.g4_1.i4(t)};i(Un).u1=function(){var t=this.h4_1,e;if(t==null){var n=new eu(this.g4_1);this.h4_1=n,e=n}else e=t;return e};i(Un).t1=function(t){return this.g4_1.t1(t)};i(Un).u3=function(t,e){return this.g4_1.u3(t,e)};i(Un).m=function(){return this.g4_1.m()};function Un(){this.h4_1=null}function eu(t){Cn.call(this,t)}i(eu).h=function(){return this.k4_1.l4()};function Cn(t){kr.call(this),this.k4_1=t}i(Cn).m=function(){return this.k4_1.m()};i(Cn).l=function(){return this.k4_1.m()===0};i(Cn).m4=function(t){return this.k4_1.o4(t)};i(Cn).j1=function(t){return t!=null&&ot(t,yr)?this.m4(t!=null&&ot(t,yr)?t:$()):!1};i(Cn).n4=function(t){throw bi()};i(Cn).f=function(t){return this.n4(t!=null&&ot(t,yr)?t:$())};i(Cn).q=function(t){throw bi()};i(Cn).k1=function(t){return this.k4_1.p4(t)};i(Cn).r2=function(){return this.k4_1.q4()};function nu(t,e){return kr.call(e),Tn.call(e),e.r4_1=t,e}function hh(t){return nu(ru(),t),t}function J_(){return hh(nt(i(Tn)))}function Y_(t,e){nu(e0(t.m()),e);for(var n=t.h();n.i();){var r=n.j();e.r4_1.u3(r,!0)}return e}function dh(t,e,n){return nu(_h(t,e),n),n}function X_(t,e){return dh(t,1,e),e}function Z_(t){return X_(t,nt(i(Tn)))}i(Tn).f=function(t){return this.r4_1.u3(t,!0)==null};i(Tn).j1=function(t){return this.r4_1.i4(t)};i(Tn).l=function(){return this.r4_1.m()===0};i(Tn).h=function(){return this.r4_1.s4()};i(Tn).m=function(){return this.r4_1.m()};function Tn(){}function vh(t,e){return P_(yt(yo(e,1),3))}function ph(t,e){return vf(e)+1|0}function t0(t){return iu(8,t),t}function ru(){return t0(nt(i(Se)))}function iu(t,e){return Se.call(e,sh(t),null,new Int32Array(t),new Int32Array(vh(Qa,t)),2,0),e}function e0(t){return iu(t,nt(i(Se)))}function n0(t,e,n){return iu(t,n),n}function _h(t,e){return n0(t,e,nt(i(Se)))}function Qi(t){return t.t4_1.length}function Dn(t){return t.w4_1.length}function mh(t){t.a5_1=t.a5_1+1|0}function r0(t,e){i0(t,e)?ou(t,Dn(t)):a0(t,t.y4_1+e|0)}function i0(t,e){var n=Qi(t)-t.y4_1|0,r=t.y4_1-t.m()|0;return n<e&&(r+n|0)>=e&&r>=(Qi(t)/4|0)}function a0(t,e){if(e<0)throw Ah("too many elements");if(e>Qi(t)){var n=_n.d5(Qi(t),e);t.t4_1=$c(t.t4_1,n);var r=t,a=t.u4_1;r.u4_1=a==null?null:$c(a,n),t.v4_1=N_(t.v4_1,n);var o=vh(Qa,n);o>Dn(t)&&ou(t,o)}}function o0(t){var e=t.u4_1;if(e!=null)return e;var n=sh(Qi(t));return t.u4_1=n,n}function au(t,e){return e==null?0:yt(ct(e),-1640531527)>>>t.z4_1|0}function s0(t){for(var e=0,n=0,r=t.u4_1;e<t.y4_1;)t.v4_1[e]>=0&&(t.t4_1[n]=t.t4_1[e],r!=null&&(r[n]=r[e]),n=n+1|0),e=e+1|0;Sc(t.t4_1,n,t.y4_1),r==null||Sc(r,n,t.y4_1),t.y4_1=n}function ou(t,e){mh(t),t.y4_1>t.b5_1&&s0(t),e!==Dn(t)?(t.w4_1=new Int32Array(e),t.z4_1=ph(Qa,e)):$_(t.w4_1,0,0,Dn(t));for(var n=0;n<t.y4_1;){var r=n;if(n=r+1|0,!l0(t,r))throw Ur("This cannot happen with fixed magic multiplier and grow-only hash array. Have object hashCodes changed?")}}function l0(t,e){for(var n=au(t,t.t4_1[e]),r=t.x4_1;;){var a=t.w4_1[n];if(a===0)return t.w4_1[n]=e+1|0,t.v4_1[e]=n,!0;if(r=r-1|0,r<0)return!1;var o=n;n=o-1|0,o===0&&(n=Dn(t)-1|0)}}function su(t,e){for(var n=au(t,e),r=t.x4_1;;){var a=t.w4_1[n];if(a===0)return-1;if(a>0&&I(t.t4_1[a-1|0],e))return a-1|0;if(r=r-1|0,r<0)return-1;var o=n;n=o-1|0,o===0&&(n=Dn(t)-1|0)}}function u0(t,e){t.q4();t:for(;;)for(var n=au(t,e),r=ka(yt(t.x4_1,2),Dn(t)/2|0),a=0;;){var o=t.w4_1[n];if(o<=0){if(t.y4_1>=Qi(t)){r0(t,1);continue t}var s=t.y4_1;t.y4_1=s+1|0;var l=s;return t.t4_1[l]=e,t.v4_1[l]=n,t.w4_1[n]=l+1|0,t.b5_1=t.b5_1+1|0,mh(t),a>t.x4_1&&(t.x4_1=a),l}if(I(t.t4_1[o-1|0],e))return-o|0;if(a=a+1|0,a>r){ou(t,yt(Dn(t),2));continue t}var f=n;n=f-1|0,f===0&&(n=Dn(t)-1|0)}}function c0(t,e){return t.b5_1===e.m()&&t.p4(e.u1())}function gh(){this.e5_1=-1640531527,this.f5_1=8,this.g5_1=2,this.h5_1=-1}var Qa;function Qr(t){this.i5_1=t,this.j5_1=0,this.k5_1=-1,this.l5_1=this.i5_1.a5_1,this.m5()}i(Qr).m5=function(){for(;this.j5_1<this.i5_1.y4_1&&this.i5_1.v4_1[this.j5_1]<0;)this.j5_1=this.j5_1+1|0};i(Qr).i=function(){return this.j5_1<this.i5_1.y4_1};i(Qr).n5=function(){if(this.i5_1.a5_1!==this.l5_1)throw hu()};function lu(t){Qr.call(this,t)}i(lu).j=function(){if(this.n5(),this.j5_1>=this.i5_1.y4_1)throw $e();var t=this,e=this.j5_1;this.j5_1=e+1|0,t.k5_1=e;var n=this.i5_1.t4_1[this.k5_1];return this.m5(),n};function Ga(t){Qr.call(this,t)}i(Ga).j=function(){if(this.n5(),this.j5_1>=this.i5_1.y4_1)throw $e();var t=this,e=this.j5_1;this.j5_1=e+1|0,t.k5_1=e;var n=new yi(this.i5_1,this.k5_1);return this.m5(),n};i(Ga).w5=function(){if(this.j5_1>=this.i5_1.y4_1)throw $e();var t=this,e=this.j5_1;this.j5_1=e+1|0,t.k5_1=e;var n=this.i5_1.t4_1[this.k5_1],r=n==null?null:ct(n),a=r==null?0:r,o=Me(this.i5_1.u4_1)[this.k5_1],s=o==null?null:ct(o),l=a^(s==null?0:s);return this.m5(),l};i(Ga).x5=function(t){if(this.j5_1>=this.i5_1.y4_1)throw $e();var e=this,n=this.j5_1;this.j5_1=n+1|0,e.k5_1=n;var r=this.i5_1.t4_1[this.k5_1];I(r,this.i5_1)?t.a6("(this Map)"):t.z5(r),t.b6(61);var a=Me(this.i5_1.u4_1)[this.k5_1];I(a,this.i5_1)?t.a6("(this Map)"):t.z5(a),this.m5()};function yi(t,e){this.c6_1=t,this.d6_1=e}i(yi).q1=function(){return this.c6_1.t4_1[this.d6_1]};i(yi).r1=function(){return Me(this.c6_1.u4_1)[this.d6_1]};i(yi).equals=function(t){var e,n;return t!=null&&ot(t,yr)?n=I(t.q1(),this.q1()):n=!1,n?e=I(t.r1(),this.r1()):e=!1,e};i(yi).hashCode=function(){var t=this.q1(),e=t==null?null:ct(t),n=e==null?0:e,r=this.r1(),a=r==null?null:ct(r);return n^(a==null?0:a)};i(yi).toString=function(){return Gt(this.q1())+"="+Gt(this.r1())};function Se(t,e,n,r,a,o){this.t4_1=t,this.u4_1=e,this.v4_1=n,this.w4_1=r,this.x4_1=a,this.y4_1=o,this.z4_1=ph(Qa,Dn(this)),this.a5_1=0,this.b5_1=0,this.c5_1=!1}i(Se).m=function(){return this.b5_1};i(Se).t1=function(t){var e=su(this,t);return e<0?null:Me(this.u4_1)[e]};i(Se).i4=function(t){return su(this,t)>=0};i(Se).u3=function(t,e){var n=u0(this,t),r=o0(this);if(n<0){var a=r[(-n|0)-1|0];return r[(-n|0)-1|0]=e,a}else return r[n]=e,null};i(Se).equals=function(t){var e;if(t===this)e=!0;else{var n;t!=null&&ot(t,wr)?n=c0(this,t):n=!1,e=n}return e};i(Se).hashCode=function(){for(var t=0,e=this.l4();e.i();)t=t+e.w5()|0;return t};i(Se).toString=function(){var t=Fh(2+yt(this.b5_1,3)|0);t.a6("{");for(var e=0,n=this.l4();n.i();)e>0&&t.a6(", "),n.x5(t),e=e+1|0;return t.a6("}"),t.toString()};i(Se).q4=function(){if(this.c5_1)throw bi()};i(Se).o4=function(t){var e=su(this,t.q1());return e<0?!1:I(Me(this.u4_1)[e],t.r1())};i(Se).e6=function(t){return this.o4(ot(t,yr)?t:$())};i(Se).s4=function(){return new lu(this)};i(Se).l4=function(){return new Ga(this)};function yh(){}function f0(t){return fh(t),Ja.call(t),t}function wh(){return f0(nt(i(Ja)))}function h0(t,e){return G_(t,e),Ja.call(e),e}function d0(t){return h0(t,nt(i(Ja)))}function Ja(){}function v0(t){return hh(t),Gr.call(t),t}function uu(){return v0(nt(i(Gr)))}function p0(t,e){return Y_(t,e),Gr.call(e),e}function _0(t){return p0(t,nt(i(Gr)))}function m0(t,e,n){return dh(t,e,n),Gr.call(n),n}function g0(t,e){return m0(t,1,e),e}function y0(t){return g0(t,nt(i(Gr)))}i(Gr).r2=function(){return this.r4_1.q4()};function Gr(){}function Pe(t){Na.call(this),this.h6_1=t,this.i6_1=0,this.j6_1=0,this.k6_1=null,this.l6_1=null,this.m6_1=null;var e=this,n=this.h6_1;e.n6_1=n==null?null:n.o6()}i(Pe).o6=function(){return Me(this.n6_1)};i(Pe).p6=function(t){var e=this,n;if(Gm(t))n=null;else{var r=t;n=r==null||r!=null?r:$()}for(var a=n,o=Jm(t);;){var s=e;o==null?s.k6_1=a:(s.i6_1=s.j6_1,s.l6_1=o);try{var l=s.q6();if(l===$r())return ft;a=l,o=null}catch(m){var f=m;a=null,o=f}s.s6();var c=Me(s.h6_1);if(c instanceof Pe)e=c;else{if(o!=null){var h=Me(o),d=Xm(h);c.t6(d)}else{var v=a,g=v;c.t6(g)}return ft}}};i(Pe).t6=function(t){return this.p6(t)};function ta(){}i(ta).o6=function(){var t="This continuation is already complete";throw Ur(z(t))};i(ta).p6=function(t){var e="This continuation is already complete";throw Ur(z(e))};i(ta).t6=function(t){return this.p6(t)};i(ta).toString=function(){return"This continuation is already complete"};var bh;function Na(){this.r6_1=null}i(Na).s6=function(){var t=this.r6_1;t!=null&&t!==this&&Me(this.o6().u6(nd)).v6(t),this.r6_1=bh};function w0(t,e,n){return new cu(n,t,e,n)}function cu(t,e,n,r){this.e7_1=e,this.f7_1=n,this.g7_1=r,Pe.call(this,ot(t,ua)?t:$())}i(cu).q6=function(){if(this.l6_1!=null)throw this.l6_1;var t=this.e7_1;return typeof t=="function"?t(this.f7_1,this.g7_1):this.e7_1.h7(this.f7_1,this.g7_1)};function kh(t){return Io(t),xn.call(t),t}function Ch(){var t=kh(nt(i(xn)));return H(t,Ch),t}function Mo(t,e){return Io(e,t),xn.call(e),e}function xh(t){var e=Mo(t,nt(i(xn)));return H(e,xh),e}function xn(){H(this,xn)}function Sh(t){return Mn(t),wi.call(t),t}function $h(){var t=Sh(nt(i(wi)));return H(t,$h),t}function Eh(t,e){return ki(t,e),wi.call(e),e}function Dt(t){var e=Eh(t,nt(i(wi)));return H(e,Dt),e}function wi(){H(this,wi)}function b0(t){return Mn(t),ea.call(t),t}function fu(){var t=b0(nt(i(ea)));return H(t,fu),t}function k0(t,e){return ki(t,e),ea.call(e),e}function Wn(t){var e=k0(t,nt(i(ea)));return H(e,Wn),e}function ea(){H(this,ea)}function C0(t){return Mn(t),na.call(t),t}function Nh(){var t=C0(nt(i(na)));return H(t,Nh),t}function x0(t,e){return ki(t,e),na.call(e),e}function Ur(t){var e=x0(t,nt(i(na)));return H(e,Ur),e}function na(){H(this,na)}function S0(t){return Mn(t),ra.call(t),t}function bi(){var t=S0(nt(i(ra)));return H(t,bi),t}function $0(t,e){return ki(t,e),ra.call(e),e}function Ih(t){var e=$0(t,nt(i(ra)));return H(e,Ih),e}function ra(){H(this,ra)}function Mn(t){return kh(t),Ke.call(t),t}function qh(){var t=Mn(nt(i(Ke)));return H(t,qh),t}function ki(t,e){return Mo(t,e),Ke.call(e),e}function Ah(t){var e=ki(t,nt(i(Ke)));return H(e,Ah),e}function Ke(){H(this,Ke)}function E0(t){return Mn(t),ia.call(t),t}function $e(){var t=E0(nt(i(ia)));return H(t,$e),t}function N0(t,e){return ki(t,e),ia.call(e),e}function Ya(t){var e=N0(t,nt(i(ia)));return H(e,Ya),e}function ia(){H(this,ia)}function I0(t){return Io(t),aa.call(t),t}function Th(){var t=I0(nt(i(aa)));return H(t,Th),t}function q0(t,e){return Io(e,t),aa.call(e),e}function aa(){H(this,aa)}function A0(t){return Sh(t),Ci.call(t),t}function Mh(){var t=A0(nt(i(Ci)));return H(t,Mh),t}function T0(t,e){return Eh(t,e),Ci.call(e),e}function Ph(t){var e=T0(t,nt(i(Ci)));return H(e,Ph),e}function Ci(){H(this,Ci)}function M0(t){return Mn(t),oa.call(t),t}function Rh(){var t=M0(nt(i(oa)));return H(t,Rh),t}function P0(t,e){return ki(t,e),oa.call(e),e}function Lh(t){var e=P0(t,nt(i(oa)));return H(e,Lh),e}function oa(){H(this,oa)}function R0(t){return Mn(t),Po.call(t),t}function hu(){var t=R0(nt(i(Po)));return H(t,hu),t}function Po(){H(this,Po)}function L0(t){return Mn(t),Ro.call(t),t}function du(){var t=L0(nt(i(Ro)));return H(t,du),t}function Ro(){H(this,Ro)}function O0(t){return Mn(t),Lo.call(t),t}function vu(){var t=O0(nt(i(Lo)));return H(t,vu),t}function Lo(){H(this,Lo)}function j0(t){return Mn(t),Oo.call(t),t}function pu(){var t=j0(nt(i(Oo)));return H(t,pu),t}function Oo(){H(this,Oo)}function Ia(t){return new ao(t)}function z0(t,e){for(var n=t.length,r=e.length,a=0,o=e;a<n&&a<r;){var s=a,l=a;a=l+1|0,o[s]=t[l]}return e}function F0(t,e,n){var r=t.slice(0,e);t.$type$!==void 0&&(r.$type$=t.$type$);var a=t.length;if(e>a)for(r.length=e;a<e;){var o=a;a=o+1|0,r[o]=n}return r}function qa(){}function pn(t){this.l7_1=t}i(pn).m7=function(){return this.l7_1};i(pn).equals=function(t){var e;return t instanceof xi||t instanceof Gi?e=!1:t instanceof pn?e=I(this.m7(),t.m7()):e=!1,e};i(pn).hashCode=function(){var t=this.k7(),e=t==null?null:Ge(t);return e==null?0:e};i(pn).toString=function(){return"class "+this.k7()};function xi(){Qs=this,pn.call(this,Object),this.o7_1="Nothing"}i(xi).k7=function(){return this.o7_1};i(xi).m7=function(){throw Ih("There's no native JS class for Nothing type")};i(xi).equals=function(t){return t===this};i(xi).hashCode=function(){return 0};var Qs;function Oh(){return Qs==null&&new xi,Qs}function Gi(){}i(Gi).equals=function(t){return t===this};i(Gi).hashCode=function(){return 0};function Ft(t,e,n){pn.call(this,t),this.q7_1=e,this.r7_1=n}i(Ft).equals=function(t){return t instanceof Ft?i(pn).equals.call(this,t)&&this.q7_1===t.q7_1:!1};i(Ft).k7=function(){return this.q7_1};function ko(t){pn.call(this,t);var e=this,n=t.$metadata$;e.t7_1=n==null?null:n.simpleName}i(ko).k7=function(){return this.t7_1};function jo(){}function _u(){}function Ec(){return sm(),jh}var jh;function D0(t){return t!=null}function B0(t){return Qf(t)}function K0(t){return t!=null?typeof t=="boolean":!1}function U0(t){return t!=null?typeof t=="number":!1}function W0(t){return t!=null?typeof t=="number":!1}function H0(t){return t!=null?typeof t=="number":!1}function V0(t){return t!=null?typeof t=="number":!1}function Q0(t){return t!=null?typeof t=="number":!1}function G0(t){return t!=null?Zi(t):!1}function J0(t){return t!=null?typeof t=="string":!1}function Y0(t){return t instanceof Error}function X0(t){return t!=null?Gf(t):!1}function Z0(t){return t!=null?Xf(t):!1}function tm(t){return t!=null?Jf(t):!1}function em(t){return t!=null?Yf(t):!1}function nm(t){return t!=null?Zf(t):!1}function rm(t){return t!=null?eh(t):!1}function im(t){return t!=null?th(t):!1}function am(t){return t!=null?nh(t):!1}function om(t){return function(e){var n;return typeof e=="function"?n=e.length===t:n=!1,n}}function Xt(){Gs=this;var t=this,e=Object;t.anyClass=new Ft(e,"Any",D0);var n=this,r=Number;n.numberClass=new Ft(r,"Number",B0),this.nothingClass=Oh();var a=this,o=Boolean;a.booleanClass=new Ft(o,"Boolean",K0);var s=this,l=Number;s.byteClass=new Ft(l,"Byte",U0);var f=this,c=Number;f.shortClass=new Ft(c,"Short",W0);var h=this,d=Number;h.intClass=new Ft(d,"Int",H0);var v=this,g=Number;v.floatClass=new Ft(g,"Float",V0);var m=this,p=Number;m.doubleClass=new Ft(p,"Double",Q0);var _=this,y=Array;_.arrayClass=new Ft(y,"Array",G0);var C=this,b=String;C.stringClass=new Ft(b,"String",J0);var x=this,S=Error;x.throwableClass=new Ft(S,"Throwable",Y0);var T=this,U=Array;T.booleanArrayClass=new Ft(U,"BooleanArray",X0);var G=this,Y=Uint16Array;G.charArrayClass=new Ft(Y,"CharArray",Z0);var vt=this,Ot=Int8Array;vt.byteArrayClass=new Ft(Ot,"ByteArray",tm);var K=this,Zt=Int16Array;K.shortArrayClass=new Ft(Zt,"ShortArray",em);var W=this,jt=Int32Array;W.intArrayClass=new Ft(jt,"IntArray",nm);var Bt=this,Ue=Array;Bt.longArrayClass=new Ft(Ue,"LongArray",rm);var fe=this,We=Float32Array;fe.floatArrayClass=new Ft(We,"FloatArray",im);var mn=this,Rn=Float64Array;mn.doubleArrayClass=new Ft(Rn,"DoubleArray",am)}i(Xt).u7=function(){return this.anyClass};i(Xt).v7=function(){return this.numberClass};i(Xt).w7=function(){return this.nothingClass};i(Xt).x7=function(){return this.booleanClass};i(Xt).y7=function(){return this.byteClass};i(Xt).z7=function(){return this.shortClass};i(Xt).a8=function(){return this.intClass};i(Xt).b8=function(){return this.floatClass};i(Xt).c8=function(){return this.doubleClass};i(Xt).d8=function(){return this.arrayClass};i(Xt).e8=function(){return this.stringClass};i(Xt).f8=function(){return this.throwableClass};i(Xt).g8=function(){return this.booleanArrayClass};i(Xt).h8=function(){return this.charArrayClass};i(Xt).i8=function(){return this.byteArrayClass};i(Xt).j8=function(){return this.shortArrayClass};i(Xt).k8=function(){return this.intArrayClass};i(Xt).l8=function(){return this.longArrayClass};i(Xt).m8=function(){return this.floatArrayClass};i(Xt).n8=function(){return this.doubleArrayClass};i(Xt).functionClass=function(t){var e=Ec()[t],n;if(e==null){var r=Function,a="Function"+t,o=new Ft(r,a,om(t));Ec()[t]=o,n=o}else n=e;return n};var Gs;function Ie(){return Gs==null&&new Xt,Gs}var Nc;function sm(){Nc||(Nc=!0,jh=nr(Array(0),null))}function lm(t){var e;return Array.isArray(t)?e=um(t):e=mu(t),e}function um(t){var e;switch(t.length){case 1:e=mu(t[0]);break;case 0:e=Oh();break;default:e=new Gi;break}return e}function mu(t){if(t===String)return Ie().stringClass;var e=t.$metadata$,n;if(e!=null){var r;if(e.$kClass$==null){var a=new ko(t);e.$kClass$=a,r=a}else r=e.$kClass$;n=r}else n=new ko(t);return n}function Co(t){var e;switch(typeof t){case"string":e=Ie().stringClass;break;case"number":var n;(t|0)===t?n=Ie().intClass:n=Ie().doubleClass,e=n;break;case"boolean":e=Ie().booleanClass;break;case"function":var r=Ie();e=r.functionClass(t.length);break;default:var a;if(Gf(t))a=Ie().booleanArrayClass;else if(Xf(t))a=Ie().charArrayClass;else if(Jf(t))a=Ie().byteArrayClass;else if(Yf(t))a=Ie().shortArrayClass;else if(Zf(t))a=Ie().intArrayClass;else if(eh(t))a=Ie().longArrayClass;else if(th(t))a=Ie().floatArrayClass;else if(nh(t))a=Ie().doubleArrayClass;else if(ot(t,qa))a=lm(qa);else if(Zi(t))a=Ie().arrayClass;else{var o=Object.getPrototypeOf(t).constructor,s;if(o===Object)s=Ie().anyClass;else if(o===Error)s=Ie().throwableClass;else{var l=o;s=mu(l)}a=s}e=a;break}return e}function zh(t){t.lastIndex=0}function cm(t,e){return Dh(e),e}function Fh(t){return cm(t,nt(i(Sn)))}function Dh(t){return Sn.call(t,""),t}function gu(){return Dh(nt(i(Sn)))}function Sn(t){this.y5_1=t!==void 0?t:""}i(Sn).a=function(){return this.y5_1.length};i(Sn).b=function(t){var e=this.y5_1,n;if(0<=t&&t<=(P(e)-1|0))n=O(e,t);else throw Wn("index: "+t+", length: "+this.a()+"}");return n};i(Sn).c=function(t,e){return this.y5_1.substring(t,e)};i(Sn).b6=function(t){return this.y5_1=this.y5_1+Vt(t),this};i(Sn).e=function(t){return this.y5_1=this.y5_1+Gt(t),this};i(Sn).z5=function(t){return this.y5_1=this.y5_1+Gt(t),this};i(Sn).a6=function(t){var e=this,n=this.y5_1;return e.y5_1=n+(t==null?"null":t),this};i(Sn).toString=function(){return this.y5_1};function Ic(t){var e=Vt(t).toUpperCase();return e.length>1?t:O(e,0)}function Bh(t){return T_(t)}function qc(t,e){return t.toString(Kh(e))}function Kh(t){if(!(2<=t&&t<=36))throw Dt("radix "+t+" was not in valid range 2..36");return t}function fm(t){var e=cd(t),n;return e==null?fd(t):n=e,n}function Ac(t,e){var n=Au(t,e),r;return n==null?fd(t):r=n,r}function hm(t,e){var n=ie(t,48)>=0&&ie(t,57)<=0?pa(t,48):ie(t,65)>=0&&ie(t,90)<=0?pa(t,65)+10|0:ie(t,97)>=0&&ie(t,122)<=0?pa(t,97)+10|0:ie(t,128)<0?-1:ie(t,65313)>=0&&ie(t,65338)<=0?pa(t,65313)+10|0:ie(t,65345)>=0&&ie(t,65370)<=0?pa(t,65345)+10|0:q_(t);return n>=e?-1:n}function dm(t,e){return Xa.call(e,t,Iu()),e}function vm(t){return dm(t,nt(i(Xa)))}function Uh(){Js=this,this.o8_1=new RegExp("[\\\\^$*+?.()|[\\]{}]","g"),this.p8_1=new RegExp("[\\\\$]","g"),this.q8_1=new RegExp("\\$","g")}var Js;function pm(){return Js==null&&new Uh,Js}function Xa(t,e){pm(),this.r8_1=t,this.s8_1=_p(e),this.t8_1=new RegExp(t,_m(e,"gu")),this.u8_1=null,this.v8_1=null}i(Xa).w8=function(t){zh(this.t8_1);var e=this.t8_1.exec(z(t));return e!=null&&e.index===0&&this.t8_1.lastIndex===P(t)};i(Xa).toString=function(){return this.t8_1.toString()};function _m(t,e){return In(t,"",e,u,u,u,mm)}function mm(t){return t.z8_1}function gm(t,e){return Qm(t,e)}function yu(t){this.a9_1=t}i(yu).b9=function(t,e){return this.a9_1(t,e)};i(yu).compare=function(t,e){return this.b9(t,e)};function wu(t,e,n){return n=n===u?!1:n,n?zo(t,0,e,0,e.length,n):t.startsWith(e,0)}function Wh(t,e,n){return n=n===u?!1:n,n?zo(t,t.length-e.length|0,e,0,e.length,n):t.endsWith(e)}function ym(t,e,n,r){return r=r===u?!1:r,r?zo(t,n,e,0,e.length,r):t.startsWith(e,n)}function zo(t,e,n,r,a,o){return o=o===u?!1:o,io(t,e,n,r,a,o)}function wm(t){return function(e){return e===t?"(this Collection)":Gt(e)}}function Cr(){}i(Cr).j1=function(t){var e;t:{var n;if(ot(this,Et)?n=this.l():n=!1,n){e=!1;break t}for(var r=this.h();r.i();){var a=r.j();if(I(a,t)){e=!0;break t}}e=!1}return e};i(Cr).k1=function(t){var e;t:{var n;if(ot(t,Et)?n=t.l():n=!1,n){e=!0;break t}for(var r=t.h();r.i();){var a=r.j();if(!this.j1(a)){e=!1;break t}}e=!0}return e};i(Cr).l=function(){return this.m()===0};i(Cr).toString=function(){return In(this,", ","[","]",u,u,wm(this))};i(Cr).toArray=function(){return ah(this)};function Jr(){this.n2_1=2147483639}i(Jr).l3=function(t,e){if(t<0||t>=e)throw Wn("index: "+t+", size: "+e)};i(Jr).c3=function(t,e){if(t<0||t>e)throw Wn("index: "+t+", size: "+e)};i(Jr).o2=function(t,e,n){if(t<0||e>n)throw Wn("fromIndex: "+t+", toIndex: "+e+", size: "+n);if(t>e)throw Dt("fromIndex: "+t+" > toIndex: "+e)};i(Jr).d5=function(t,e){var n=t+(t>>1)|0;return(n-e|0)<0&&(n=e),(n-2147483639|0)>0&&(n=e>2147483639?2147483647:2147483639),n};i(Jr).p3=function(t){for(var e=1,n=t.h();n.i();){var r=n.j(),a=yt(31,e),o=r==null?null:ct(r);e=a+(o==null?0:o)|0}return e};i(Jr).o3=function(t,e){if(t.m()!==e.m())return!1;for(var n=e.h(),r=t.h();r.i();){var a=r.j(),o=n.j();if(!I(a,o))return!1}return!0};var _n;function Tc(t,e){return e===t?"(this Map)":Gt(e)}function Hh(t,e){var n;t:{for(var r=t.u1().h();r.i();){var a=r.j();if(I(a.q1(),e)){n=a;break t}}n=null}return n}function bm(){}function km(t){return function(e){return t.c9(e)}}function kn(){this.v3_1=null,this.w3_1=null}i(kn).s1=function(t){return Hh(this,t)!=null};i(kn).x3=function(t){if(!(t!=null&&ot(t,yr)))return!1;var e=t.q1(),n=t.r1(),r=(ot(this,wr)?this:$()).t1(e);if(!I(n,r))return!1;var a;return r==null?a=!(ot(this,wr)?this:$()).s1(e):a=!1,!a};i(kn).equals=function(t){if(t===this)return!0;if(!(t!=null&&ot(t,wr))||this.m()!==t.m())return!1;var e;t:{var n=t.u1(),r;if(ot(n,Et)?r=n.l():r=!1,r){e=!0;break t}for(var a=n.h();a.i();){var o=a.j();if(!this.x3(o)){e=!1;break t}}e=!0}return e};i(kn).t1=function(t){var e=Hh(this,t);return e==null?null:e.r1()};i(kn).hashCode=function(){return ct(this.u1())};i(kn).m=function(){return this.u1().m()};i(kn).toString=function(){var t=this.u1();return In(t,", ","{","}",u,u,km(this))};i(kn).c9=function(t){return Tc(this,t.q1())+"="+Tc(this,t.r1())};function Fo(){}i(Fo).z3=function(t){for(var e=0,n=t.h();n.i();){var r=n.j(),a=e,o=r==null?null:ct(r);e=a+(o==null?0:o)|0}return e};i(Fo).y3=function(t,e){return t.m()!==e.m()?!1:t.k1(e)};var bu;function Cm(t){if(t.l())return[];for(var e=t.m(),n=nr(Array(e),null),r=t.h(),a=0;r.i();){var o=a;a=o+1|0,n[o]=r.j()}return n}function ku(t){return t.length>0?Xl(t):sa()}function Vh(t){return t.length===0?qt():Va(new Qn(t,!0))}function sa(){return Em()}function Za(t){return t.m()-1|0}function xm(t,e,n,r){n=n===u?0:n,r=r===u?t.m():r,Nm(t.m(),n,r);for(var a=n,o=r-1|0;a<=o;){var s=(a+o|0)>>>1|0,l=t.k(s),f=Xo(l,e);if(f<0)a=s+1|0;else if(f>0)o=s-1|0;else return s}return-(a+1|0)|0}function Sm(t){return t.length===0?qt():Va(new Qn(t,!0))}function $m(t){switch(t.m()){case 0:return sa();case 1:return Wa(t.k(0));default:return t}}function Qn(t,e){this.d9_1=t,this.e9_1=e}i(Qn).m=function(){return this.d9_1.length};i(Qn).l=function(){return this.d9_1.length===0};i(Qn).f9=function(t){return Ls(this.d9_1,t)};i(Qn).g9=function(t){var e;t:{var n;if(ot(t,Et)?n=t.l():n=!1,n){e=!0;break t}for(var r=t.h();r.i();){var a=r.j();if(!this.f9(a)){e=!1;break t}}e=!0}return e};i(Qn).k1=function(t){return this.g9(t)};i(Qn).h=function(){return Nf(this.d9_1)};function ce(){Ys=this,this.h9_1=new pt(-1478467534,-1720727600)}i(ce).equals=function(t){var e;return t!=null&&ot(t,Vn)?e=t.l():e=!1,e};i(ce).hashCode=function(){return 1};i(ce).toString=function(){return"[]"};i(ce).m=function(){return 0};i(ce).l=function(){return!0};i(ce).i9=function(t){return!1};i(ce).j1=function(t){return!1};i(ce).j9=function(t){return t.l()};i(ce).k1=function(t){return this.j9(t)};i(ce).k=function(t){throw Wn("Empty list doesn't contain element at index "+t+".")};i(ce).k9=function(t){return-1};i(ce).l1=function(t){return-1};i(ce).l9=function(t){return-1};i(ce).m1=function(t){return-1};i(ce).h=function(){return la};i(ce).n1=function(){return la};i(ce).o1=function(t){if(t!==0)throw Wn("Index: "+t);return la};i(ce).p1=function(t,e){if(t===0&&e===0)return this;throw Wn("fromIndex: "+t+", toIndex: "+e)};var Ys;function Em(){return Ys==null&&new ce,Ys}function Nm(t,e,n){if(e>n)throw Dt("fromIndex ("+e+") is greater than toIndex ("+n+").");if(e<0)throw Wn("fromIndex ("+e+") is less than zero.");if(n>t)throw Wn("toIndex ("+n+") is greater than size ("+t+").")}function Si(){}i(Si).i=function(){return!1};i(Si).d3=function(){return!1};i(Si).e3=function(){return 0};i(Si).j=function(){throw $e()};i(Si).f3=function(){throw $e()};var la;function Im(t){return new Qn(t,!1)}function qm(){throw Lh("Index overflow has happened.")}function ai(t,e){this.v_1=t,this.w_1=e}i(ai).toString=function(){return"IndexedValue(index="+this.v_1+", value="+Gt(this.w_1)+")"};i(ai).hashCode=function(){var t=this.v_1;return t=yt(t,31)+(this.w_1==null?0:ct(this.w_1))|0,t};i(ai).equals=function(t){if(this===t)return!0;if(!(t instanceof ai))return!1;var e=t instanceof ai?t:$();return!(this.v_1!==e.v_1||!I(this.w_1,e.w_1))};function Xs(t,e){var n;return ot(t,Et)?n=t.m():n=e,n}function Am(t,e){return t.q(Xl(e))}function Do(t,e){if(ot(e,Et))return t.q(e);for(var n=!1,r=e.h();r.i();){var a=r.j();t.f(a)&&(n=!0)}return n}function Bo(){}i(Bo).j=function(){return this.m9()};function to(){}i(to).n9=function(){return this.o9()};i(to).j=function(){return new st(this.n9())};function eo(t){return new Cu(t)}function xr(){}function Tm(t){var e=new Sr;return e.t9_1=w0(t,e,e),e}function Mm(t){if(t.i())return t.j();throw $e()}function Qh(t){switch(t.q9_1){case 4:return $e();case 5:return Ur("Iterator has failed.");default:return Ur("Unexpected state of the iterator: "+t.q9_1)}}function Sr(){xr.call(this),this.q9_1=0,this.r9_1=null,this.s9_1=null,this.t9_1=null}i(Sr).i=function(){for(;;){switch(this.q9_1){case 0:break;case 1:if(Me(this.s9_1).i())return this.q9_1=2,!0;this.s9_1=null;break;case 4:return!1;case 3:case 2:return!0;default:throw Qh(this)}this.q9_1=5;var t=Me(this.t9_1);this.t9_1=null;var e=ft;t.t6(e)}};i(Sr).j=function(){switch(this.q9_1){case 0:case 1:return Mm(this);case 2:return this.q9_1=1,Me(this.s9_1).j();case 3:this.q9_1=0;var t=this.r9_1,e=t==null||t!=null?t:$();return this.r9_1=null,e;default:throw Qh(this)}};i(Sr).p9=function(t,e){return this.r9_1=t,this.q9_1=3,this.t9_1=e,$r()};i(Sr).u9=function(t){Zm(t);var e=t;e==null||e!=null||$(),this.q9_1=4};i(Sr).t6=function(t){return this.u9(t)};i(Sr).o6=function(){return jm()};function Cu(t){this.v9_1=t}i(Cu).h=function(){return Tm(this.v9_1)};function $i(){return Jo}function Ko(t){this.x9_1=t,this.w9_1=t.y9_1.h()}i(Ko).j=function(){return this.x9_1.z9_1(this.w9_1.j())};i(Ko).i=function(){return this.w9_1.i()};function xu(t,e){this.y9_1=t,this.z9_1=e}i(xu).h=function(){return new Ko(this)};function Gh(t){for(;t.aa_1.i();){var e=t.aa_1.j();if(t.da_1.ga_1(e)===t.da_1.fa_1)return t.ca_1=e,t.ba_1=1,ft}t.ba_1=0}function Uo(t){this.da_1=t,this.aa_1=t.ea_1.h(),this.ba_1=-1,this.ca_1=null}i(Uo).j=function(){if(this.ba_1===-1&&Gh(this),this.ba_1===0)throw $e();var t=this.ca_1;return this.ca_1=null,this.ba_1=-1,t==null||t!=null?t:$()};i(Uo).i=function(){return this.ba_1===-1&&Gh(this),this.ba_1===1};function Su(t,e,n){e=e===u?!0:e,this.ea_1=t,this.fa_1=e,this.ga_1=n}i(Su).h=function(){return new Uo(this)};function Wo(t){this.ha_1=t.ja_1.h(),this.ia_1=0}i(Wo).j=function(){var t=this.ia_1;return this.ia_1=t+1|0,new ai(To(t),this.ha_1.j())};i(Wo).i=function(){return this.ha_1.i()};function $u(t){this.ja_1=t}i($u).h=function(){return new Wo(this)};function Ei(){}function Ho(t){this.ka_1=t.na_1,this.la_1=t.ma_1.h()}i(Ho).j=function(){if(this.ka_1===0)throw $e();return this.ka_1=this.ka_1-1|0,this.la_1.j()};i(Ho).i=function(){return this.ka_1>0&&this.la_1.i()};function fi(t,e){if(this.ma_1=t,this.na_1=e,!(this.na_1>=0)){var n="count must be non-negative, but was "+this.na_1+".";throw Dt(z(n))}}i(fi).u=function(t){return t>=this.na_1?$i():new Wr(this.ma_1,t,this.na_1)};i(fi).t=function(t){return t>=this.na_1?this:new fi(this.ma_1,t)};i(fi).h=function(){return new Ho(this)};function Jh(t){if(t.oa_1.i()){var e=t.oa_1.j();if(t.ra_1.ta_1(e))return t.pa_1=1,t.qa_1=e,ft}t.pa_1=0}function Vo(t){this.ra_1=t,this.oa_1=t.sa_1.h(),this.pa_1=-1,this.qa_1=null}i(Vo).j=function(){if(this.pa_1===-1&&Jh(this),this.pa_1===0)throw $e();var t=this.qa_1,e=t==null||t!=null?t:$();return this.qa_1=null,this.pa_1=-1,e};i(Vo).i=function(){return this.pa_1===-1&&Jh(this),this.pa_1===1};function Eu(t,e){this.sa_1=t,this.ta_1=e}i(Eu).h=function(){return new Vo(this)};function Yh(t){for(;t.va_1>0&&t.ua_1.i();)t.ua_1.j(),t.va_1=t.va_1-1|0}function Qo(t){this.ua_1=t.wa_1.h(),this.va_1=t.xa_1}i(Qo).j=function(){return Yh(this),this.ua_1.j()};i(Qo).i=function(){return Yh(this),this.ua_1.i()};function oi(t,e){if(this.wa_1=t,this.xa_1=e,!(this.xa_1>=0)){var n="count must be non-negative, but was "+this.xa_1+".";throw Dt(z(n))}}i(oi).u=function(t){var e=this.xa_1+t|0;return e<0?new oi(this,t):new oi(this.wa_1,e)};i(oi).t=function(t){var e=this.xa_1+t|0;return e<0?new fi(this,t):new Wr(this.wa_1,this.xa_1,e)};i(oi).h=function(){return new Qo(this)};function Xh(t){for(;t.ya_1.i();){var e=t.ya_1.j();if(!t.bb_1.db_1(e))return t.ab_1=e,t.za_1=1,ft}t.za_1=0}function Go(t){this.bb_1=t,this.ya_1=t.cb_1.h(),this.za_1=-1,this.ab_1=null}i(Go).j=function(){if(this.za_1===-1&&Xh(this),this.za_1===1){var t=this.ab_1,e=t==null||t!=null?t:$();return this.ab_1=null,this.za_1=0,e}return this.ya_1.j()};i(Go).i=function(){return this.za_1===-1&&Xh(this),this.za_1===1||this.ya_1.i()};function Nu(t,e){this.cb_1=t,this.db_1=e}i(Nu).h=function(){return new Go(this)};function no(){}i(no).h=function(){return la};i(no).u=function(t){return Jo};i(no).t=function(t){return Jo};var Jo;function Zh(t){for(;t.fb_1<t.gb_1.ib_1&&t.eb_1.i();)t.eb_1.j(),t.fb_1=t.fb_1+1|0}function td(t){return t.jb_1-t.ib_1|0}function Yo(t){this.gb_1=t,this.eb_1=t.hb_1.h(),this.fb_1=0}i(Yo).i=function(){return Zh(this),this.fb_1<this.gb_1.jb_1&&this.eb_1.i()};i(Yo).j=function(){if(Zh(this),this.fb_1>=this.gb_1.jb_1)throw $e();return this.fb_1=this.fb_1+1|0,this.eb_1.j()};function Wr(t,e,n){if(this.hb_1=t,this.ib_1=e,this.jb_1=n,!(this.ib_1>=0)){var r="startIndex should be non-negative, but is "+this.ib_1;throw Dt(z(r))}if(!(this.jb_1>=0)){var a="endIndex should be non-negative, but is "+this.jb_1;throw Dt(z(a))}if(!(this.jb_1>=this.ib_1)){var o="endIndex should be not less than startIndex, but was "+this.jb_1+" < "+this.ib_1;throw Dt(z(o))}}i(Wr).u=function(t){return t>=td(this)?$i():new Wr(this.hb_1,this.ib_1+t|0,this.jb_1)};i(Wr).t=function(t){return t>=td(this)?this:new Wr(this.hb_1,this.ib_1,this.ib_1+t|0)};i(Wr).h=function(){return new Yo(this)};function Iu(){return Lm()}function Pm(t){return cp(t,Z_(t.length))}function Rm(t){switch(t.m()){case 0:return Iu();case 1:return oh(t.h().j());default:return t}}function Gn(){Zs=this,this.kb_1=new pt(1993859828,793161749)}i(Gn).equals=function(t){var e;return t!=null&&ot(t,Vr)?e=t.l():e=!1,e};i(Gn).hashCode=function(){return 0};i(Gn).toString=function(){return"[]"};i(Gn).m=function(){return 0};i(Gn).l=function(){return!0};i(Gn).j9=function(t){return t.l()};i(Gn).k1=function(t){return this.j9(t)};i(Gn).h=function(){return la};var Zs;function Lm(){return Zs==null&&new Gn,Zs}function Xo(t,e){return t===e?0:t==null?-1:e==null?1:Lf(t!=null&&x_(t)?t:$(),e)}function ua(){}function ed(){}var nd;function Om(){}function ro(){tl=this,this.lb_1=new pt(0,0)}i(ro).u6=function(t){return null};i(ro).hashCode=function(){return 0};i(ro).toString=function(){return"EmptyCoroutineContext"};var tl;function jm(){return tl==null&&new ro,tl}function $r(){return Fm()}var rd,Mc;function zm(){if(Mc)return ft;Mc=!0,rd=new ho("COROUTINE_SUSPENDED",0),new ho("UNDECIDED",1),new ho("RESUMED",2)}function ho(t,e){br.call(this,t,e)}function Fm(){return zm(),rd}function id(t,e,n){var r;if(n>0)r=t>=e?e:e-Pc(e,t,n)|0;else if(n<0)r=t<=e?e:e+Pc(t,e,-n|0)|0;else throw Dt("Step is zero.");return r}function Pc(t,e,n){return Is(Is(t,n)-Is(e,n)|0,n)}function Is(t,e){var n=t%e|0;return n>=0?n:n+e|0}function ad(){el=this,this.mb_1=new Hr(1,0)}var el;function Dm(){return el==null&&new ad,el}function Hr(t,e){Dm(),Hn.call(this,t,e,1)}i(Hr).l=function(){return this.qb_1>this.rb_1};i(Hr).equals=function(t){var e;return t instanceof Hr?e=this.l()&&t.l()||this.qb_1===t.qb_1&&this.rb_1===t.rb_1:e=!1,e};i(Hr).hashCode=function(){return this.l()?-1:yt(31,this.qb_1)+this.rb_1|0};i(Hr).toString=function(){return""+this.qb_1+".."+this.rb_1};function od(){nl=this,this.tb_1=new Er(1,0)}var nl;function Bm(){return nl==null&&new od,nl}function Er(t,e){Bm(),Nr.call(this,t,e,1)}i(Er).xb=function(t){return ie(this.yb_1,t)<=0&&ie(t,this.zb_1)<=0};i(Er).l=function(){return ie(this.yb_1,this.zb_1)>0};i(Er).equals=function(t){var e;return t instanceof Er?e=this.l()&&t.l()||this.yb_1===t.yb_1&&this.zb_1===t.zb_1:e=!1,e};i(Er).hashCode=function(){var t;if(this.l())t=-1;else{var e=this.yb_1,n=je(e),r=yt(31,n),a=this.zb_1;t=r+je(a)|0}return t};i(Er).toString=function(){return Vt(this.yb_1)+".."+Vt(this.zb_1)};function Zo(t,e,n){Bo.call(this),this.bc_1=n,this.cc_1=e,this.dc_1=this.bc_1>0?t<=e:t>=e,this.ec_1=this.dc_1?t:this.cc_1}i(Zo).i=function(){return this.dc_1};i(Zo).m9=function(){var t=this.ec_1;if(t===this.cc_1){if(!this.dc_1)throw $e();this.dc_1=!1}else this.ec_1=this.ec_1+this.bc_1|0;return t};function ts(t,e,n){to.call(this),this.fc_1=n;var r=this;r.gc_1=je(e),this.hc_1=this.fc_1>0?ie(t,e)<=0:ie(t,e)>=0;var a=this,o;this.hc_1?o=je(t):o=this.gc_1,a.ic_1=o}i(ts).i=function(){return this.hc_1};i(ts).o9=function(){var t=this.ic_1;if(t===this.gc_1){if(!this.hc_1)throw $e();this.hc_1=!1}else this.ic_1=this.ic_1+this.fc_1|0;return Ea(t)};function qu(){}i(qu).s=function(t,e,n){return new Hn(t,e,n)};var sd;function Hn(t,e,n){if(n===0)throw Dt("Step must be non-zero.");if(n===-2147483648)throw Dt("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.qb_1=t,this.rb_1=id(t,e,n),this.sb_1=n}i(Hn).h=function(){return new Zo(this.qb_1,this.rb_1,this.sb_1)};i(Hn).l=function(){return this.sb_1>0?this.qb_1>this.rb_1:this.qb_1<this.rb_1};i(Hn).equals=function(t){var e;return t instanceof Hn?e=this.l()&&t.l()||this.qb_1===t.qb_1&&this.rb_1===t.rb_1&&this.sb_1===t.sb_1:e=!1,e};i(Hn).hashCode=function(){return this.l()?-1:yt(31,yt(31,this.qb_1)+this.rb_1|0)+this.sb_1|0};i(Hn).toString=function(){return this.sb_1>0?""+this.qb_1+".."+this.rb_1+" step "+this.sb_1:""+this.qb_1+" downTo "+this.rb_1+" step "+(-this.sb_1|0)};function Km(){}function Nr(t,e,n){if(n===0)throw Dt("Step must be non-zero.");if(n===-2147483648)throw Dt("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.yb_1=t;var r=this,a=je(t),o=je(e);r.zb_1=Ea(id(a,o,n)),this.ac_1=n}i(Nr).h=function(){return new ts(this.yb_1,this.zb_1,this.ac_1)};i(Nr).l=function(){return this.ac_1>0?ie(this.yb_1,this.zb_1)>0:ie(this.yb_1,this.zb_1)<0};i(Nr).equals=function(t){var e;return t instanceof Nr?e=this.l()&&t.l()||this.yb_1===t.yb_1&&this.zb_1===t.zb_1&&this.ac_1===t.ac_1:e=!1,e};i(Nr).hashCode=function(){var t;if(this.l())t=-1;else{var e=this.yb_1,n=je(e),r=yt(31,n),a=this.zb_1,o=je(a);t=yt(31,r+o|0)+this.ac_1|0}return t};i(Nr).toString=function(){return this.ac_1>0?Vt(this.yb_1)+".."+Vt(this.zb_1)+" step "+this.ac_1:Vt(this.yb_1)+" downTo "+Vt(this.zb_1)+" step "+(-this.ac_1|0)};function ld(t,e,n){n!=null?t.e(n(e)):e==null||_e(e)?t.e(e):e instanceof st?t.b6(e.x_1):t.e(Gt(e))}function ud(t,e,n){if(n=n===u?!1:n,t===e)return!0;if(!n)return!1;var r=Ic(t),a=Ic(e),o;if(r===a)o=!0;else{var s=Vt(r).toLowerCase(),l=O(s,0),f=Vt(a).toLowerCase();o=l===O(f,0)}return o}function cd(t){return Au(t,10)}function Au(t,e){Kh(e);var n=t.length;if(n===0)return null;var r,a,o,s=O(t,0);if(ie(s,48)<0){if(n===1)return null;if(r=1,s===45)a=!0,o=-2147483648;else if(s===43)a=!1,o=-2147483647;else return null}else r=0,a=!1,o=-2147483647;var l=-59652323,f=l,c=0,h=r;if(h<n)do{var d=h;h=h+1|0;var v=hm(O(t,d),e);if(v<0)return null;if(c<f)if(f===l){if(f=o/e|0,c<f)return null}else return null;if(c=yt(c,e),c<(o+v|0))return null;c=c-v|0}while(h<n);return a?c:-c|0}function fd(t){throw Ph("Invalid number format: '"+t+"'")}function Tu(t,e,n){n=n===u?!1:n;var r,a;return n?a=!1:a=typeof t=="string",a?r=typeof e=="string":r=!1,r?wu(t,e):io(t,0,e,0,P(e),n)}function Mu(t,e,n){n=n===u?!1:n;var r;return typeof e=="string"?r=rl(t,e,u,n)>=0:r=hd(t,e,0,P(t),n)>=0,r}function es(t,e,n){n=n===u?!1:n;var r,a;return n?a=!1:a=typeof t=="string",a?r=typeof e=="string":r=!1,r?Wh(t,e):io(t,P(t)-P(e)|0,e,0,P(e),n)}function Um(t){var e;t:{for(var n=0;n<P(t);){var r=O(t,n);if(n=n+1|0,!Bh(r)){e=!1;break t}}e=!0}return e}function Je(t,e,n){return n=n===u?!1:n,Hm(t,e,u,n)>=0}function ns(t,e,n,r){r=r===u?!1:r;var a,o;return r?o=!1:o=typeof t=="string",o?a=typeof e=="string":a=!1,a?ym(t,e,n):io(t,n,e,0,P(e),r)}function rl(t,e,n,r){n=n===u?0:n,r=r===u?!1:r;var a,o;return r?o=!0:o=typeof t!="string",o?a=hd(t,e,n,P(t),r):a=t.indexOf(e,n),a}function io(t,e,n,r,a,o){if(r<0||e<0||e>(P(t)-a|0)||r>(P(n)-a|0))return!1;var s=0;if(s<a)do{var l=s;if(s=s+1|0,!ud(O(t,e+l|0),O(n,r+l|0),o))return!1}while(s<a);return!0}function hd(t,e,n,r,a,o){o=o===u?!1:o;var s=o?mp(ka(n,dd(t)),yo(r,0)):g_(yo(n,0),ka(r,P(t))),l;if(typeof t=="string"?l=typeof e=="string":l=!1,l){var f=s.qb_1,c=s.rb_1,h=s.sb_1;if(h>0&&f<=c||h<0&&c<=f)do{var d=f;if(f=f+h|0,zo(e,0,t,d,P(e),a))return d}while(d!==c)}else{var v=s.qb_1,g=s.rb_1,m=s.sb_1;if(m>0&&v<=g||m<0&&g<=v)do{var p=v;if(v=v+m|0,io(e,0,t,p,P(e),a))return p}while(p!==g)}return-1}function Wm(t){var e=0,n=P(t)-1|0,r=!1;t:for(;e<=n;){var a=r?n:e,o=Bh(O(t,a));if(!r)o?e=e+1|0:r=!0;else if(o)n=n-1|0;else break t}return fn(t,e,n+1|0)}function Hm(t,e,n,r){n=n===u?0:n,r=r===u?!1:r;var a,o;if(r?o=!0:o=typeof t!="string",o){var s=Lp([e]);a=Vm(t,s,n,r)}else{var l=Vt(e);a=t.indexOf(l,n)}return a}function dd(t){return P(t)-1|0}function Vm(t,e,n,r){n=n===u?0:n,r=r===u?!1:r;var a;if(!r&&e.length===1?a=typeof t=="string":a=!1,a){var o=op(e),s=Vt(o);return t.indexOf(s,n)}var l=yo(n,0),f=dd(t);if(l<=f)do{var c=l;l=l+1|0;var h=O(t,c),d;t:{for(var v=0,g=e.length;v<g;){var m=e[v];if(v=v+1|0,ud(m,h,r)){d=!0;break t}}d=!1}if(d)return c}while(c!==f);return-1}function Qm(t,e){var n;if(t!=null&&typeof t=="string"?n=e!=null?typeof e=="string":!1:n=!1,n)return I(t,e);if(t===e)return!0;if(t==null||e==null||P(t)!==P(e))return!1;var r=0,a=P(t);if(r<a)do{var o=r;if(r=r+1|0,O(t,o)!==O(e,o))return!1}while(r<a);return!0}function ao(t){this.jc_1=t,this.kc_1=rs}i(ao).r1=function(){this.kc_1===rs&&(this.kc_1=Me(this.jc_1)(),this.jc_1=null);var t=this.kc_1;return t==null||t!=null?t:$()};i(ao).lc=function(){return this.kc_1!==rs};i(ao).toString=function(){return this.lc()?Gt(this.r1()):"Lazy value not initialized yet."};function vd(){}var rs;function Gm(t){var e=t;return e instanceof Ir}function Jm(t){var e;return t instanceof Ir?e=t.mc_1:e=null,e}function Ym(){}function Ir(t){this.mc_1=t}i(Ir).equals=function(t){var e;return t instanceof Ir?e=I(this.mc_1,t.mc_1):e=!1,e};i(Ir).hashCode=function(){return ct(this.mc_1)};i(Ir).toString=function(){return"Failure("+this.mc_1.toString()+")"};function Xm(t){return new Ir(t)}function Zm(t){var e=t;if(e instanceof Ir)throw t.mc_1}function il(t){t=t===u?"An operation is not implemented.":t,q0(t,this),H(this,il)}function An(t,e){this.nc_1=t,this.oc_1=e}i(An).toString=function(){return"("+Gt(this.nc_1)+", "+Gt(this.oc_1)+")"};i(An).pc=function(){return this.nc_1};i(An).qc=function(){return this.oc_1};i(An).hashCode=function(){var t=this.nc_1==null?0:ct(this.nc_1);return t=yt(t,31)+(this.oc_1==null?0:ct(this.oc_1))|0,t};i(An).equals=function(t){if(this===t)return!0;if(!(t instanceof An))return!1;var e=t instanceof An?t:$();return!(!I(this.nc_1,e.nc_1)||!I(this.oc_1,e.oc_1))};function Rc(t,e){return new An(t,e)}i(we).asJsReadonlyArrayView=pf;i(Se).p4=ip;i(ce).asJsReadonlyArrayView=pf;ft=new Fl;fo=null;Qa=new gh;bh=new ta;_n=new Jr;bu=new Fo;la=new Si;Jo=new no;nd=new ed;sd=new qu;rs=new vd;var D=Math.imul;Be(sn,"Stringify");function Pu(){return this.uc()-this.tc()|0}Be(fs,"Position",u,u,[sn]);k(He,"Expression",u,u,[fs]);k(ht,"BinaryExpression",u,He);k(is,"sam$kotlin_Comparator$0");be(Aa);k(Q,"CompareOperator",u,u,[sn]);lt(Bn,"Equal",u,Q);lt(or,"NotEqual",u,Q);lt(sr,"Start",u,Q);lt(lr,"NotStart",u,Q);lt(ur,"Include",u,Q);lt(cr,"NotInclude",u,Q);lt(fr,"End",u,Q);lt(hr,"NotEnd",u,Q);lt(dr,"Less",u,Q);lt(vr,"LessEqual",u,Q);lt(pr,"More",u,Q);lt(_r,"MoreEqual",u,Q);lt(mr,"Matches",u,Q);lt(gr,"NotMatches",u,Q);k(Ni,"ConnectExpression",u,u,[sn]);k(ss,"sam$kotlin_Comparator$0");be(Ta);k(ke,"ConnectOperator",u,u,[sn]);lt(Lr,"BeforeBrother",u,ke);lt(Or,"AfterBrother",u,ke);lt(jr,"Ancestor",u,ke);lt(zr,"Child",u,ke);lt(Fr,"Descendant",u,ke);k(ve,"ConnectSegment",ve,u,[sn]);k(qe,"ConnectWrapper",u,u,[sn]);k(te,"Context");k(Lt,"SelectorCheckException",u,xn);k(en,"UnknownIdentifierException",u,Lt);k(nn,"UnknownMemberException",u,Lt);k(Ve,"UnknownIdentifierMethodException",u,Lt);k(rn,"UnknownIdentifierMethodParamsException",u,Lt);k(Qe,"UnknownMemberMethodException",u,Lt);k(an,"UnknownMemberMethodParamsException",u,Lt);k(se,"MismatchParamTypeException",u,Lt);k(xe,"MismatchExpressionTypeException",u,Lt);k(on,"MismatchOperatorTypeException",u,Lt);k(ze,"FastQuery",u,u,[sn]);k(hn,"Id",u,ze);k(dn,"Vid",u,ze);k(vn,"Text",u,ze);k(dt,"LogicalExpression",u,He);k(cs,"sam$kotlin_Comparator$0");be(Ma);k(Pn,"LogicalOperator",u,u,[sn]);lt(Dr,"AndOperator",u,Pn);lt(Br,"OrOperator",u,Pn);k(Fe,"MatchOption",Fe);k(ee,"NotExpression",u,He);k(Mt,"PolynomialExpression",Mt,Ni);k(Qt,"PositionImpl",u,u,[fs]);k(le,"PropertySegment",u,u,[sn]);k(ne,"PropertyWrapper",u,u,[sn]);be(hs);k(Ee,"Selector",u,u,[sn]);k(ue,"SyntaxError",u,xn);be(Du);Ka(hi,Pe,u,[1]);Ka(di,Pe,u,[1]);Ka(vi,Pe,u,[1]);Ka(pi,Pe,u,[1]);Ka(_i,Pe,u,[1]);k(kt,"Transform");k(Ae,"TupleExpression",u,Ni);k(ln,"PrimitiveType");lt(si,"BooleanType",u,ln);lt(li,"IntType",u,ln);lt(ui,"StringType",u,ln);k(De,"ObjectType",u,ln);k(J,"MethodInfo",u,u,[sn]);k(rt,"PropInfo");k(Ht,"TypeInfo",u,u,[sn]);k(re,"ValueExpression",u,u,[fs]);k(Re,"Variable",u,re);k(xt,"Identifier",u,Re);k(mt,"MemberExpression",u,Re);k(St,"CallExpression",u,Re);k(Ye,"LiteralExpression",u,re);k(Te,"NullLiteral",u,Ye);k(pe,"BooleanLiteral",u,Ye);k(Jt,"IntLiteral",u,Ye);k(gt,"StringLiteral",u,Ye);k(Wt,"Parser");k(Pt,"ParserResult");lt(so,"ParserSet");k(Xr,"DefaultTypeInfo");function ht(t,e,n,r,a){He.call(this),this.rc_1=t,this.sc_1=e,this.left=n,this.operator=r,this.right=a}i(ht).tc=function(){return this.rc_1};i(ht).uc=function(){return this.sc_1};i(ht).vc=function(){return this.left};i(ht).wc=function(){return this.operator};i(ht).xc=function(){return this.right};i(ht).match=function(t,e){return this.operator.value.ad(t,e,this.left,this.right)};i(ht).bd=function(){return[this]};i(ht).stringify=function(){return this.left.stringify()+this.operator.stringify()+this.right.stringify()};i(ht).cd=function(){return rr([this.left.properties,this.right.properties])};i(ht).dd=function(){return rr([this.left.methods,this.right.methods])};i(ht).pc=function(){return this.rc_1};i(ht).qc=function(){return this.sc_1};i(ht).ed=function(){return this.left};i(ht).fd=function(){return this.operator};i(ht).gd=function(){return this.right};i(ht).hd=function(t,e,n,r,a){return new ht(t,e,n,r,a)};i(ht).copy=function(t,e,n,r,a,o){return t=t===u?this.rc_1:t,e=e===u?this.sc_1:e,n=n===u?this.left:n,r=r===u?this.operator:r,a=a===u?this.right:a,this.hd(t,e,n,r,a)};i(ht).toString=function(){return"BinaryExpression(start="+this.rc_1+", end="+this.sc_1+", left="+z(this.left)+", operator="+this.operator.toString()+", right="+z(this.right)+")"};i(ht).hashCode=function(){var t=this.rc_1;return t=D(t,31)+this.sc_1|0,t=D(t,31)+ct(this.left)|0,t=D(t,31)+this.operator.hashCode()|0,t=D(t,31)+ct(this.right)|0,t};i(ht).equals=function(t){if(this===t)return!0;if(!(t instanceof ht))return!1;var e=t instanceof ht?t:$();return!(this.rc_1!==e.rc_1||this.sc_1!==e.sc_1||!I(this.left,e.left)||!this.operator.equals(e.operator)||!I(this.right,e.right))};function tg(t,e,n){if(t===n)return!0;if(P(t)!==P(n))return!1;var r=P(t)-1|0;if(0<=r)do{var a=r;if(r=r+-1|0,O(t,a)!==O(n,a))return!1}while(0<=r);return!0}function is(t){this.id_1=t}i(is).b9=function(t,e){return this.id_1(t,e)};i(is).compare=function(t,e){return this.b9(t,e)};function eg(){var t=ku([ar(),pd(),Yr(),_d(),Ru(),md(),Lu(),gd(),oo(),yd(),wd(),bd(),os(),Ou()]),e=ng,n=new is(e),r=Wl(t,n);return bn(r)}function ng(t,e){var n=-t.key.length|0,r=-e.key.length|0;return Xo(n,r)}function Aa(){al=this;var t=this;t.jd_1=Ia(eg)}i(Aa).kd=function(){var t=this.jd_1;return rg(),t.r1()};var al;function as(){return al==null&&new Aa,al}function Bn(){ol=this,Q.call(this,"=")}i(Bn).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e);return this.compare(a,o)};i(Bn).od=function(t,e){return!0};i(Bn).compare=function(t,e){var n,r;return t!=null&&_e(t)?r=e!=null?_e(e):!1:r=!1,r?n=tg(t,as(),e):n=I(t,e),n};i(Bn).toString=function(){return"Equal"};i(Bn).hashCode=function(){return 717536815};i(Bn).equals=function(t){return this===t?!0:t instanceof Bn?(t instanceof Bn||$(),!0):!1};var ol;function ar(){return ol==null&&new Bn,ol}function or(){sl=this,Q.call(this,"!=")}i(or).ad=function(t,e,n,r){return!ar().ad(t,e,n,r)};i(or).od=function(t,e){return!0};i(or).toString=function(){return"NotEqual"};i(or).hashCode=function(){return 1058184006};i(or).equals=function(t){return this===t?!0:t instanceof or?(t instanceof or||$(),!0):!1};var sl;function pd(){return sl==null&&new or,sl}function sr(){ll=this,Q.call(this,"^=")}i(sr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&_e(a)?l=o!=null?_e(o):!1:l=!1,l?s=Tu(a,o):s=!1,s};i(sr).od=function(t,e){var n,r;if(t instanceof gt?r=!0:r=t instanceof Re,r){var a;e instanceof gt?a=!0:a=e instanceof Re,n=a}else n=!1;return n};i(sr).toString=function(){return"Start"};i(sr).hashCode=function(){return 730536797};i(sr).equals=function(t){return this===t?!0:t instanceof sr?(t instanceof sr||$(),!0):!1};var ll;function Yr(){return ll==null&&new sr,ll}function lr(){ul=this,Q.call(this,"!^=")}i(lr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&_e(a)?l=o!=null?_e(o):!1:l=!1,l?s=!Tu(a,o):s=!1,s};i(lr).od=function(t,e){return Yr().od(t,e)};i(lr).toString=function(){return"NotStart"};i(lr).hashCode=function(){return 1071183988};i(lr).equals=function(t){return this===t?!0:t instanceof lr?(t instanceof lr||$(),!0):!1};var ul;function _d(){return ul==null&&new lr,ul}function ur(){cl=this,Q.call(this,"*=")}i(ur).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&_e(a)?l=o!=null?_e(o):!1:l=!1,l?s=Mu(a,o):s=!1,s};i(ur).od=function(t,e){return Yr().od(t,e)};i(ur).toString=function(){return"Include"};i(ur).hashCode=function(){return 1510988003};i(ur).equals=function(t){return this===t?!0:t instanceof ur?(t instanceof ur||$(),!0):!1};var cl;function Ru(){return cl==null&&new ur,cl}function cr(){fl=this,Q.call(this,"!*=")}i(cr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&_e(a)?l=o!=null?_e(o):!1:l=!1,l?s=!Mu(a,o):s=!1,s};i(cr).od=function(t,e){return Yr().od(t,e)};i(cr).toString=function(){return"NotInclude"};i(cr).hashCode=function(){return-1839543238};i(cr).equals=function(t){return this===t?!0:t instanceof cr?(t instanceof cr||$(),!0):!1};var fl;function md(){return fl==null&&new cr,fl}function fr(){hl=this,Q.call(this,"$=")}i(fr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&_e(a)?l=o!=null?_e(o):!1:l=!1,l?s=es(a,o):s=!1,s};i(fr).od=function(t,e){return Yr().od(t,e)};i(fr).toString=function(){return"End"};i(fr).hashCode=function(){return 1234264726};i(fr).equals=function(t){return this===t?!0:t instanceof fr?(t instanceof fr||$(),!0):!1};var hl;function Lu(){return hl==null&&new fr,hl}function hr(){dl=this,Q.call(this,"!$=")}i(hr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&_e(a)?l=o!=null?_e(o):!1:l=!1,l?s=!es(a,o):s=!1,s};i(hr).od=function(t,e){return Yr().od(t,e)};i(hr).toString=function(){return"NotEnd"};i(hr).hashCode=function(){return 1024563565};i(hr).equals=function(t){return this===t?!0:t instanceof hr?(t instanceof hr||$(),!0):!1};var dl;function gd(){return dl==null&&new hr,dl}function dr(){vl=this,Q.call(this,"<")}i(dr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a<o:s=!1,s};i(dr).od=function(t,e){var n,r;if(t instanceof Re?r=!0:r=t instanceof Jt,r){var a;e instanceof Jt?a=!0:a=e instanceof Re,n=a}else n=!1;return n};i(dr).toString=function(){return"Less"};i(dr).hashCode=function(){return-392298690};i(dr).equals=function(t){return this===t?!0:t instanceof dr?(t instanceof dr||$(),!0):!1};var vl;function oo(){return vl==null&&new dr,vl}function vr(){pl=this,Q.call(this,"<=")}i(vr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a<=o:s=!1,s};i(vr).od=function(t,e){return oo().od(t,e)};i(vr).toString=function(){return"LessEqual"};i(vr).hashCode=function(){return-2095624554};i(vr).equals=function(t){return this===t?!0:t instanceof vr?(t instanceof vr||$(),!0):!1};var pl;function yd(){return pl==null&&new vr,pl}function pr(){_l=this,Q.call(this,">")}i(pr).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a>o:s=!1,s};i(pr).od=function(t,e){return oo().od(t,e)};i(pr).toString=function(){return"More"};i(pr).hashCode=function(){return-392259334};i(pr).equals=function(t){return this===t?!0:t instanceof pr?(t instanceof pr||$(),!0):!1};var _l;function wd(){return _l==null&&new pr,_l}function _r(){ml=this,Q.call(this,">=")}i(_r).ad=function(t,e,n,r){var a=n.nd(t,e),o=r.nd(t,e),s,l;return a!=null&&typeof a=="number"?l=o!=null?typeof o=="number":!1:l=!1,l?s=a>=o:s=!1,s};i(_r).od=function(t,e){return oo().od(t,e)};i(_r).toString=function(){return"MoreEqual"};i(_r).hashCode=function(){return-648189350};i(_r).equals=function(t){return this===t?!0:t instanceof _r?(t instanceof _r||$(),!0):!1};var ml;function bd(){return ml==null&&new _r,ml}function mr(){gl=this,Q.call(this,"~=")}i(mr).ad=function(t,e,n,r){var a=n.nd(t,e),o,s;return a!=null&&_e(a)?s=r instanceof gt:s=!1,s?o=r.xd_1(a):o=!1,o};i(mr).od=function(t,e){var n;if(t instanceof Re){var r;e instanceof gt?r=e.wd_1!=null:r=!1,n=r}else n=!1;return n};i(mr).toString=function(){return"Matches"};i(mr).hashCode=function(){return 409275758};i(mr).equals=function(t){return this===t?!0:t instanceof mr?(t instanceof mr||$(),!0):!1};var gl;function os(){return gl==null&&new mr,gl}function gr(){yl=this,Q.call(this,"!~=")}i(gr).ad=function(t,e,n,r){var a=n.nd(t,e),o,s;return a!=null&&_e(a)?s=r instanceof gt:s=!1,s?o=!r.xd_1(a):o=!1,o};i(gr).od=function(t,e){return os().od(t,e)};i(gr).toString=function(){return"NotMatches"};i(gr).hashCode=function(){return 1353711813};i(gr).equals=function(t){return this===t?!0:t instanceof gr?(t instanceof gr||$(),!0):!1};var yl;function Ou(){return yl==null&&new gr,yl}function Q(t){as(),this.key=t}i(Q).q1=function(){return this.key};i(Q).stringify=function(){return this.key};function rg(){return Ua("allSubClasses",1,jo,function(t){return t.allSubClasses},null)}function Ni(){}function ss(t){this.ae_1=t}i(ss).b9=function(t,e){return this.ae_1(t,e)};i(ss).compare=function(t,e){return this.b9(t,e)};function ig(){var t=ku([kd(),Cd(),xo(),xd(),us()]),e=ag,n=new ss(e);return Wl(t,n)}function ag(t,e){var n=-t.key.length|0,r=-e.key.length|0;return Xo(n,r)}function Ta(){wl=this;var t=this;t.be_1=Ia(ig)}i(Ta).kd=function(){var t=this.be_1;return og(),t.r1()};var wl;function ls(){return wl==null&&new Ta,wl}function Lr(){bl=this,ke.call(this,"+")}i(Lr).ce=function(t,e,n){return e.traverseBeforeBrothers(t,n)};i(Lr).toString=function(){return"BeforeBrother"};i(Lr).hashCode=function(){return 1632618113};i(Lr).equals=function(t){return this===t?!0:t instanceof Lr?(t instanceof Lr||$(),!0):!1};var bl;function kd(){return bl==null&&new Lr,bl}function Or(){kl=this,ke.call(this,"-")}i(Or).ce=function(t,e,n){return e.traverseAfterBrothers(t,n)};i(Or).toString=function(){return"AfterBrother"};i(Or).hashCode=function(){return 1215887620};i(Or).equals=function(t){return this===t?!0:t instanceof Or?(t instanceof Or||$(),!0):!1};var kl;function Cd(){return kl==null&&new Or,kl}function jr(){Cl=this,ke.call(this,">")}i(jr).ce=function(t,e,n){return e.traverseAncestors(t,n)};i(jr).toString=function(){return"Ancestor"};i(jr).hashCode=function(){return 736770963};i(jr).equals=function(t){return this===t?!0:t instanceof jr?(t instanceof jr||$(),!0):!1};var Cl;function xo(){return Cl==null&&new jr,Cl}function zr(){xl=this,ke.call(this,"<")}i(zr).ce=function(t,e,n){return e.traverseChildren(t,n)};i(zr).toString=function(){return"Child"};i(zr).hashCode=function(){return-1105093796};i(zr).equals=function(t){return this===t?!0:t instanceof zr?(t instanceof zr||$(),!0):!1};var xl;function xd(){return xl==null&&new zr,xl}function Fr(){Sl=this,ke.call(this,"<<")}i(Fr).ce=function(t,e,n){return e.traverseDescendants(t,n)};i(Fr).toString=function(){return"Descendant"};i(Fr).hashCode=function(){return 2093403837};i(Fr).equals=function(t){return this===t?!0:t instanceof Fr?(t instanceof Fr||$(),!0):!1};var Sl;function us(){return Sl==null&&new Fr,Sl}function ke(t){ls(),this.key=t}i(ke).q1=function(){return this.key};i(ke).stringify=function(){return this.key};function og(){return Ua("allSubClasses",1,jo,function(t){return t.allSubClasses},null)}function ve(t,e){t=t===u?xo():t,e=e===u?new Mt:e,this.operator=t,this.connectExpression=e;var n=this,r,a,o;if(I(this.operator,xo())){var s=this.connectExpression;o=s instanceof Mt}else o=!1;o?a=this.connectExpression.a===1:a=!1,a?r=this.connectExpression.b===0:r=!1,n.isMatchAnyAncestor=r;var l=this,f,c,h;if(I(this.operator,us())){var d=this.connectExpression;h=d instanceof Mt}else h=!1;h?c=this.connectExpression.a===1:c=!1,c?f=this.connectExpression.b===0:f=!1,l.isMatchAnyDescendant=f}i(ve).wc=function(){return this.operator};i(ve).he=function(){return this.connectExpression};i(ve).stringify=function(){return this.isMatchAnyAncestor?"":this.operator.stringify()+this.connectExpression.stringify()};i(ve).ie=function(t,e){return this.operator.ce(t,e,this.connectExpression)};i(ve).je=function(){return this.isMatchAnyAncestor};i(ve).ke=function(){return this.isMatchAnyDescendant};i(ve).pc=function(){return this.operator};i(ve).qc=function(){return this.connectExpression};i(ve).le=function(t,e){return new ve(t,e)};i(ve).copy=function(t,e,n){return t=t===u?this.operator:t,e=e===u?this.connectExpression:e,this.le(t,e)};i(ve).toString=function(){return"ConnectSegment(operator="+z(this.operator)+", connectExpression="+z(this.connectExpression)+")"};i(ve).hashCode=function(){var t=ct(this.operator);return t=D(t,31)+ct(this.connectExpression)|0,t};i(ve).equals=function(t){if(this===t)return!0;if(!(t instanceof ve))return!1;var e=t instanceof ve?t:$();return!(!I(this.operator,e.operator)||!I(this.connectExpression,e.connectExpression))};function qe(t,e){this.segment=t,this.to=e,this.me_1=this.to.isMatchRoot&&this.segment.isMatchAnyAncestor;var n=this,r;this.segment.isMatchAnyDescendant?r=!this.to.fastQueryList.l():r=!1,n.canFq=r}i(qe).ne=function(){return this.segment};i(qe).oe=function(){return this.to};i(qe).stringify=function(){var t=this.to.stringify()+" "+this.segment.stringify();return z(Wm(_e(t)?t:$()))};i(qe).matchContext=function(t,e,n){if(this.me_1){var r=e.getRoot(t.current),a;if(r==null)return null;a=r;var o=a;return this.to.matchContext(t.next(o),e,n)}if(this.canFq&&n.fastQuery)for(var s=e.traverseFastQueryDescendants(t.current,this.to.fastQueryList).h();s.i();){var l=s.j(),f=this.to.matchContext(t.next(l),e,n);if(f!=null)return f}else for(var c=this.segment.ie(t.current,e).h();c.i();){var h=c.j();t:{if(h==null)break t;var d=this.to.matchContext(t.next(h),e,n);if(d!=null)return d}}return null};i(qe).pe=function(){return this.canFq};i(qe).pc=function(){return this.segment};i(qe).qc=function(){return this.to};i(qe).qe=function(t,e){return new qe(t,e)};i(qe).copy=function(t,e,n){return t=t===u?this.segment:t,e=e===u?this.to:e,this.qe(t,e)};i(qe).toString=function(){return"ConnectWrapper(segment="+this.segment.toString()+", to="+this.to.toString()+")"};i(qe).hashCode=function(){var t=this.segment.hashCode();return t=D(t,31)+this.to.hashCode()|0,t};i(qe).equals=function(t){if(this===t)return!0;if(!(t instanceof qe))return!1;var e=t instanceof qe?t:$();return!(!this.segment.equals(e.segment)||!this.to.equals(e.to))};function te(t,e){e=e===u?null:e,this.current=t,this.prev=e}i(te).re=function(){return this.current};i(te).se=function(){return this.prev};i(te).getPrev=function(t){if(t<0)return null;var e=this.prev,n;if(e==null)return null;n=e;var r=n,a=0;if(a<t)do{a=a+1|0;var o=r.prev,s;if(o==null)return null;s=o,r=s}while(a<t);return r};i(te).get=function(t){if(t===0)return this;var e=this.getPrev(t-1|0),n;if(e==null)throw fu();return n=e,n};i(te).toList=function(){for(var t=Vh([this.current]),e=this.prev;e!=null;)t.f(e.current),e=e.prev;return t};i(te).toArray=function(){var t=this.toList(),e=ot(t,Vn)?t:$(),n=bn(e);return Zi(n)?n:$()};i(te).next=function(t){return new te(t,this)};i(te).pc=function(){return this.current};i(te).qc=function(){return this.prev};i(te).te=function(t,e){return new te(t,e)};i(te).copy=function(t,e,n){return t=t===u?this.current:t,e=e===u?this.prev:e,this.te(t,e)};i(te).toString=function(){return"Context(current="+Gt(this.current)+", prev="+Gt(this.prev)+")"};i(te).hashCode=function(){var t=this.current==null?0:ct(this.current);return t=D(t,31)+(this.prev==null?0:this.prev.hashCode())|0,t};i(te).equals=function(t){if(this===t)return!0;if(!(t instanceof te))return!1;var e=t instanceof te?t:$();return!(!I(this.current,e.current)||!I(this.prev,e.prev))};function Lt(t){Mo(t,this),H(this,Lt),this.ue_1=t}i(Lt).i7=function(){return this.ue_1};function en(t){Lt.call(this,"Unknown Identifier: "+t.stringify()),H(this,en),this.value=t}i(en).r1=function(){return this.value};i(en).pc=function(){return this.value};i(en).we=function(t){return new en(t)};i(en).copy=function(t,e){return t=t===u?this.value:t,this.we(t)};i(en).toString=function(){return"UnknownIdentifierException(value="+this.value.toString()+")"};i(en).hashCode=function(){return this.value.hashCode()};i(en).equals=function(t){if(this===t)return!0;if(!(t instanceof en))return!1;var e=t instanceof en?t:$();return!!this.value.equals(e.value)};function nn(t){Lt.call(this,"Unknown Member: "+t.stringify()),H(this,nn),this.value=t}i(nn).r1=function(){return this.value};i(nn).pc=function(){return this.value};i(nn).ye=function(t){return new nn(t)};i(nn).copy=function(t,e){return t=t===u?this.value:t,this.ye(t)};i(nn).toString=function(){return"UnknownMemberException(value="+this.value.toString()+")"};i(nn).hashCode=function(){return this.value.hashCode()};i(nn).equals=function(t){if(this===t)return!0;if(!(t instanceof nn))return!1;var e=t instanceof nn?t:$();return!!this.value.equals(e.value)};function Ve(t){Lt.call(this,"Unknown Identifier Method: "+t.stringify()),H(this,Ve),this.value=t}i(Ve).r1=function(){return this.value};i(Ve).pc=function(){return this.value};i(Ve).we=function(t){return new Ve(t)};i(Ve).copy=function(t,e){return t=t===u?this.value:t,this.we(t)};i(Ve).toString=function(){return"UnknownIdentifierMethodException(value="+this.value.toString()+")"};i(Ve).hashCode=function(){return this.value.hashCode()};i(Ve).equals=function(t){if(this===t)return!0;if(!(t instanceof Ve))return!1;var e=t instanceof Ve?t:$();return!!this.value.equals(e.value)};function rn(t){Lt.call(this,"Unknown Identifier Method Params: "+t.stringify()),H(this,rn),this.value=t}i(rn).r1=function(){return this.value};i(rn).pc=function(){return this.value};i(rn).bf=function(t){return new rn(t)};i(rn).copy=function(t,e){return t=t===u?this.value:t,this.bf(t)};i(rn).toString=function(){return"UnknownIdentifierMethodParamsException(value="+this.value.toString()+")"};i(rn).hashCode=function(){return this.value.hashCode()};i(rn).equals=function(t){if(this===t)return!0;if(!(t instanceof rn))return!1;var e=t instanceof rn?t:$();return!!this.value.equals(e.value)};function Qe(t){Lt.call(this,"Unknown Member Method: "+t.stringify()),H(this,Qe),this.value=t}i(Qe).r1=function(){return this.value};i(Qe).pc=function(){return this.value};i(Qe).ye=function(t){return new Qe(t)};i(Qe).copy=function(t,e){return t=t===u?this.value:t,this.ye(t)};i(Qe).toString=function(){return"UnknownMemberMethodException(value="+this.value.toString()+")"};i(Qe).hashCode=function(){return this.value.hashCode()};i(Qe).equals=function(t){if(this===t)return!0;if(!(t instanceof Qe))return!1;var e=t instanceof Qe?t:$();return!!this.value.equals(e.value)};function an(t){Lt.call(this,"Unknown Member Method Params: "+t.stringify()),H(this,an),this.value=t}i(an).r1=function(){return this.value};i(an).pc=function(){return this.value};i(an).bf=function(t){return new an(t)};i(an).copy=function(t,e){return t=t===u?this.value:t,this.bf(t)};i(an).toString=function(){return"UnknownMemberMethodParamsException(value="+this.value.toString()+")"};i(an).hashCode=function(){return this.value.hashCode()};i(an).equals=function(t){if(this===t)return!0;if(!(t instanceof an))return!1;var e=t instanceof an?t:$();return!!this.value.equals(e.value)};function se(t,e,n){Lt.call(this,"Mismatch Param Type: "+e.stringify()+" should be "+n.key),H(this,se),this.call=t,this.argument=e,this.type=n}i(se).ff=function(){return this.call};i(se).gf=function(){return this.argument};i(se).hf=function(){return this.type};i(se).pc=function(){return this.call};i(se).qc=function(){return this.argument};i(se).ed=function(){return this.type};i(se).if=function(t,e,n){return new se(t,e,n)};i(se).copy=function(t,e,n,r){return t=t===u?this.call:t,e=e===u?this.argument:e,n=n===u?this.type:n,this.if(t,e,n)};i(se).toString=function(){return"MismatchParamTypeException(call="+this.call.toString()+", argument="+z(this.argument)+", type="+z(this.type)+")"};i(se).hashCode=function(){var t=this.call.hashCode();return t=D(t,31)+ct(this.argument)|0,t=D(t,31)+ct(this.type)|0,t};i(se).equals=function(t){if(this===t)return!0;if(!(t instanceof se))return!1;var e=t instanceof se?t:$();return!(!this.call.equals(e.call)||!I(this.argument,e.argument)||!I(this.type,e.type))};function xe(t,e,n){Lt.call(this,"Mismatch Expression Type: "+t.stringify()),H(this,xe),this.exception=t,this.leftType=e,this.rightType=n}i(xe).kf=function(){return this.exception};i(xe).lf=function(){return this.leftType};i(xe).mf=function(){return this.rightType};i(xe).pc=function(){return this.exception};i(xe).qc=function(){return this.leftType};i(xe).ed=function(){return this.rightType};i(xe).nf=function(t,e,n){return new xe(t,e,n)};i(xe).copy=function(t,e,n,r){return t=t===u?this.exception:t,e=e===u?this.leftType:e,n=n===u?this.rightType:n,this.nf(t,e,n)};i(xe).toString=function(){return"MismatchExpressionTypeException(exception="+this.exception.toString()+", leftType="+z(this.leftType)+", rightType="+z(this.rightType)+")"};i(xe).hashCode=function(){var t=this.exception.hashCode();return t=D(t,31)+ct(this.leftType)|0,t=D(t,31)+ct(this.rightType)|0,t};i(xe).equals=function(t){if(this===t)return!0;if(!(t instanceof xe))return!1;var e=t instanceof xe?t:$();return!(!this.exception.equals(e.exception)||!I(this.leftType,e.leftType)||!I(this.rightType,e.rightType))};function on(t){Lt.call(this,"Mismatch Operator Type: "+t.stringify()),H(this,on),this.exception=t}i(on).kf=function(){return this.exception};i(on).pc=function(){return this.exception};i(on).pf=function(t){return new on(t)};i(on).copy=function(t,e){return t=t===u?this.exception:t,this.pf(t)};i(on).toString=function(){return"MismatchOperatorTypeException(exception="+this.exception.toString()+")"};i(on).hashCode=function(){return this.exception.hashCode()};i(on).equals=function(t){if(this===t)return!0;if(!(t instanceof on))return!1;var e=t instanceof on?t:$();return!!this.exception.equals(e.exception)};function He(){}function hn(t){ze.call(this,t),this.rf_1=t}i(hn).r1=function(){return this.rf_1};i(hn).pc=function(){return this.rf_1};i(hn).sf=function(t){return new hn(t)};i(hn).copy=function(t,e){return t=t===u?this.rf_1:t,this.sf(t)};i(hn).toString=function(){return"Id(value="+this.rf_1+")"};i(hn).hashCode=function(){return Ge(this.rf_1)};i(hn).equals=function(t){if(this===t)return!0;if(!(t instanceof hn))return!1;var e=t instanceof hn?t:$();return this.rf_1===e.rf_1};function dn(t){ze.call(this,t),this.uf_1=t}i(dn).r1=function(){return this.uf_1};i(dn).pc=function(){return this.uf_1};i(dn).sf=function(t){return new dn(t)};i(dn).copy=function(t,e){return t=t===u?this.uf_1:t,this.sf(t)};i(dn).toString=function(){return"Vid(value="+this.uf_1+")"};i(dn).hashCode=function(){return Ge(this.uf_1)};i(dn).equals=function(t){if(this===t)return!0;if(!(t instanceof dn))return!1;var e=t instanceof dn?t:$();return this.uf_1===e.uf_1};function vn(t){ze.call(this,t),this.wf_1=t}i(vn).r1=function(){return this.wf_1};i(vn).pc=function(){return this.wf_1};i(vn).sf=function(t){return new vn(t)};i(vn).copy=function(t,e){return t=t===u?this.wf_1:t,this.sf(t)};i(vn).toString=function(){return"Text(value="+this.wf_1+")"};i(vn).hashCode=function(){return Ge(this.wf_1)};i(vn).equals=function(t){if(this===t)return!0;if(!(t instanceof vn))return!1;var e=t instanceof vn?t:$();return this.wf_1===e.wf_1};function ze(t){this.xf_1=t}i(ze).r1=function(){return this.xf_1};i(ze).stringify=function(){return this.value};function sg(t){var e=gf(t.expressions),n;if(e==null)return null;n=e;var r=n;if(r instanceof dt){if(!I(r.operator.value,Fu()))return null;var a=r.getSameExpressionArray(),o;if(a==null)return null;o=a;for(var s=o,l=qt(),f=0,c=s.length;f<c;){var h=s[f];f=f+1|0;var d=Lc(h),v;if(d==null)return null;v=d;var g=v;l.f(g)}return l}if(r instanceof ht){var m=Lc(r),p;if(m==null)return null;p=m;var _=p;return Wa(_)}return null}function Lc(t){var e=t.left;if(!(e instanceof xt))return null;var n=t.right;if(!(n instanceof gt))return null;var r=t.right.vd_1;return P(r)===0?null:t.left.value==="id"&&I(t.operator.value,ar())?new hn(t.right.vd_1):t.left.value==="vid"&&I(t.operator.value,ar())?new dn(t.right.vd_1):t.left.value==="text"&&(I(t.operator.value,ar())||I(t.operator.value,Yr())||I(t.operator.value,Ru())||I(t.operator.value,Lu()))?new vn(t.right.vd_1):null}function dt(t,e,n,r,a){He.call(this),this.zf_1=t,this.ag_1=e,this.left=n,this.operator=r,this.right=a}i(dt).tc=function(){return this.zf_1};i(dt).uc=function(){return this.ag_1};i(dt).vc=function(){return this.left};i(dt).wc=function(){return this.operator};i(dt).xc=function(){return this.right};i(dt).match=function(t,e){return this.operator.value.compare(t,e,this.left,this.right)};i(dt).bd=function(){var t=this.left.binaryExpressions,e=this.right.binaryExpressions;return t.concat(e)};i(dt).stringify=function(){var t,e,n=this.left;n instanceof dt?e=!I(this.left.operator.value,this.operator.value):e=!1,e?t="("+this.left.stringify()+")":t=this.left.stringify();var r=t,a,o,s=this.right;s instanceof dt?o=!I(this.right.operator.value,this.operator.value):o=!1,o?a="("+this.right.stringify()+")":a=this.right.stringify();var l=a;return r+" "+this.operator.stringify()+" "+l};i(dt).getSameExpressionArray=function(){var t,e=this.left;if(e instanceof dt?t=!I(this.left.operator.value,this.operator.value):t=!1,t)return null;var n,r=this.right;if(r instanceof dt?n=!I(this.right.operator.value,this.operator.value):n=!1,n)return null;var a=this.left,o;if(a instanceof ht){var s=this.right,l;if(s instanceof ht)l=[this.left,this.right];else if(s instanceof dt){var f=[this.left],c=this.right.getSameExpressionArray(),h;if(c==null)return null;h=c;var d=h;l=f.concat(d)}else s instanceof ee?l=null:qn();o=l}else if(a instanceof dt){var v=this.left.getSameExpressionArray(),g;if(v==null)return null;g=v;var m=g,p=this.right,_;if(p instanceof ht){var y=[this.right];_=m.concat(y)}else if(p instanceof dt){var C=this.right.getSameExpressionArray(),b;if(C==null)return null;b=C;var x=b;return m.concat(x)}else p instanceof ee?_=null:qn();o=_}else a instanceof ee?o=null:qn();return o};i(dt).pc=function(){return this.zf_1};i(dt).qc=function(){return this.ag_1};i(dt).ed=function(){return this.left};i(dt).fd=function(){return this.operator};i(dt).gd=function(){return this.right};i(dt).bg=function(t,e,n,r,a){return new dt(t,e,n,r,a)};i(dt).copy=function(t,e,n,r,a,o){return t=t===u?this.zf_1:t,e=e===u?this.ag_1:e,n=n===u?this.left:n,r=r===u?this.operator:r,a=a===u?this.right:a,this.bg(t,e,n,r,a)};i(dt).toString=function(){return"LogicalExpression(start="+this.zf_1+", end="+this.ag_1+", left="+z(this.left)+", operator="+this.operator.toString()+", right="+z(this.right)+")"};i(dt).hashCode=function(){var t=this.zf_1;return t=D(t,31)+this.ag_1|0,t=D(t,31)+ct(this.left)|0,t=D(t,31)+this.operator.hashCode()|0,t=D(t,31)+ct(this.right)|0,t};i(dt).equals=function(t){if(this===t)return!0;if(!(t instanceof dt))return!1;var e=t instanceof dt?t:$();return!(this.zf_1!==e.zf_1||this.ag_1!==e.ag_1||!I(this.left,e.left)||!this.operator.equals(e.operator)||!I(this.right,e.right))};function cs(t){this.cg_1=t}i(cs).b9=function(t,e){return this.cg_1(t,e)};i(cs).compare=function(t,e){return this.b9(t,e)};function lg(){var t=ku([zu(),Fu()]),e=ug,n=new cs(e);return Wl(t,n)}function ug(t,e){var n=-t.key.length|0,r=-e.key.length|0;return Xo(n,r)}function Ma(){$l=this;var t=this;t.dg_1=Ia(lg)}i(Ma).kd=function(){var t=this.dg_1;return cg(),t.r1()};var $l;function ju(){return $l==null&&new Ma,$l}function Dr(){El=this,Pn.call(this,"&&")}i(Dr).compare=function(t,e,n,r){return n.match(t,e)&&r.match(t,e)};i(Dr).toString=function(){return"AndOperator"};i(Dr).hashCode=function(){return-772304006};i(Dr).equals=function(t){return this===t?!0:t instanceof Dr?(t instanceof Dr||$(),!0):!1};var El;function zu(){return El==null&&new Dr,El}function Br(){Nl=this,Pn.call(this,"||")}i(Br).compare=function(t,e,n,r){return n.match(t,e)||r.match(t,e)};i(Br).toString=function(){return"OrOperator"};i(Br).hashCode=function(){return-302302232};i(Br).equals=function(t){return this===t?!0:t instanceof Br?(t instanceof Br||$(),!0):!1};var Nl;function Fu(){return Nl==null&&new Br,Nl}function Pn(t){ju(),this.key=t}i(Pn).q1=function(){return this.key};i(Pn).stringify=function(){return this.key};function cg(){return Ua("allSubClasses",1,jo,function(t){return t.allSubClasses},null)}function ca(){return fg(),Sd}var Sd;function Fe(t,e){t=t===u?!1:t,e=e===u?!1:e,this.quickFind=t,this.fastQuery=e}i(Fe).eg=function(){return this.quickFind};i(Fe).fg=function(){return this.fastQuery};i(Fe).pc=function(){return this.quickFind};i(Fe).qc=function(){return this.fastQuery};i(Fe).gg=function(t,e){return new Fe(t,e)};i(Fe).copy=function(t,e,n){return t=t===u?this.quickFind:t,e=e===u?this.fastQuery:e,this.gg(t,e)};i(Fe).toString=function(){return"MatchOption(quickFind="+this.quickFind+", fastQuery="+this.fastQuery+")"};i(Fe).hashCode=function(){var t=Ca(this.quickFind);return t=D(t,31)+Ca(this.fastQuery)|0,t};i(Fe).equals=function(t){if(this===t)return!0;if(!(t instanceof Fe))return!1;var e=t instanceof Fe?t:$();return!(this.quickFind!==e.quickFind||this.fastQuery!==e.fastQuery)};var Oc;function fg(){Oc||(Oc=!0,Sd=new Fe)}function ee(t,e){He.call(this),this.hg_1=t,this.expression=e}i(ee).tc=function(){return this.hg_1};i(ee).ig=function(){return this.expression};i(ee).uc=function(){return this.expression.uc()};i(ee).match=function(t,e){return!this.expression.match(t,e)};i(ee).bd=function(){return this.expression.binaryExpressions};i(ee).stringify=function(){return"!("+this.expression.stringify()+")"};i(ee).pc=function(){return this.hg_1};i(ee).qc=function(){return this.expression};i(ee).jg=function(t,e){return new ee(t,e)};i(ee).copy=function(t,e,n){return t=t===u?this.hg_1:t,e=e===u?this.expression:e,this.jg(t,e)};i(ee).toString=function(){return"NotExpression(start="+this.hg_1+", expression="+z(this.expression)+")"};i(ee).hashCode=function(){var t=this.hg_1;return t=D(t,31)+ct(this.expression)|0,t};i(ee).equals=function(t){if(this===t)return!0;if(!(t instanceof ee))return!1;var e=t instanceof ee?t:$();return!(this.hg_1!==e.hg_1||!I(this.expression,e.expression))};function On(t){var e="invalid PolynomialExpression: a="+t.a+", b="+t.b;throw Ur(z(e))}function hg(t){return function(e){return D(t.a,e)+t.b|0}}function dg(t){return function(e){return D(t.a,e)+t.b|0}}function vg(t,e){return function(n){return D(t.a,e+n|0)+t.b|0}}function pg(t){return function(e){return e!==0&&On(t),t.b}}function _g(t,e){return function(n){return D(t.a,e-n|0)+t.b|0}}function Mt(t,e){t=t===u?0:t,e=e===u?1:e,Ni.call(this),this.a=t,this.b=e;var n=this,r;if(this.a>0){var a;if(this.b>0)a=this.a+this.b|0;else if(this.b===0)a=this.a;else{var o=((-this.b|0)/this.a|0)+1|0;a=D(this.a,o)+this.b|0}r=a}else{var s;if(this.a===0){var l;this.b>0?l=this.b:On(this),s=l}else{var f;if(this.b>0){var c;if(this.b<=(-this.a|0))On(this);else{var h=((-this.b|0)/this.a|0)-(this.b%this.a|0?0:1)|0;c=D(this.a,h)+this.b|0}f=c}else On(this);s=f}r=s-1|0}n.de_1=r;var d=this,v;if(this.a>0)v=null;else{var g;if(this.a===0){var m;this.b>0?m=this.b:On(this),g=m}else{var p;if(this.b>0){var _;this.b<=(-this.a|0)?On(this):_=this.a+this.b|0,p=_}else On(this);g=p}v=g-1|0}d.ee_1=v,this.fe_1=this.de_1===this.ee_1;var y=this,C;if(this.a>0){var b;if(this.b>0)b=hg(this);else if(this.b===0)b=dg(this);else{var x=((-this.b|0)/this.a|0)+1|0;b=vg(this,x)}C=b}else if(this.a===0){var S;this.b>0?S=pg(this):On(this),C=S}else{var T;if(this.b>0){var U;if(this.b<=(-this.a|0))On(this);else{var G=((-this.b|0)/this.a|0)-(this.b%this.a|0?0:1)|0;U=_g(this,G)}T=U}else On(this);C=T}y.ge_1=C}i(Mt).kg=function(){return this.a};i(Mt).lg=function(){return this.b};i(Mt).stringify=function(){if(this.a>0&&this.b>0)return this.a===1?"(n+"+this.b+")":"("+this.a+"n+"+this.b+")";if(this.a<0&&this.b>0)return this.a===-1?"("+this.b+"-n)":"("+this.b+this.a+"n)";if(this.b===0){if(this.a===1)return"n";var t;return this.a>0?t=""+this.a+"n":t="("+this.a+"n)",t}if(this.a===0){if(this.b===1)return"";var e;return this.b>0?e=this.b.toString():e="("+this.b+")",e}var n=this.b>=0?"+":"";return"("+this.a+"n"+n+this.b+")"};i(Mt).yd=function(){return this.de_1};i(Mt).zd=function(){return this.ee_1};i(Mt).checkOffset=function(t){if(this.fe_1)return t===this.de_1;var e=(t+1|0)-this.b|0;return(e%this.a|0)===0&&(e/this.a|0)>=1};i(Mt).getOffset=function(t){return this.ge_1(t)-1|0};i(Mt).pc=function(){return this.a};i(Mt).qc=function(){return this.b};i(Mt).mg=function(t,e){return new Mt(t,e)};i(Mt).copy=function(t,e,n){return t=t===u?this.a:t,e=e===u?this.b:e,this.mg(t,e)};i(Mt).toString=function(){return"PolynomialExpression(a="+this.a+", b="+this.b+")"};i(Mt).hashCode=function(){var t=this.a;return t=D(t,31)+this.b|0,t};i(Mt).equals=function(t){if(this===t)return!0;if(!(t instanceof Mt))return!1;var e=t instanceof Mt?t:$();return!(this.a!==e.a||this.b!==e.b)};function sn(){}function Qt(t,e,n){this.yc_1=t,this.zc_1=e,this.value=n}i(Qt).tc=function(){return this.yc_1};i(Qt).uc=function(){return this.zc_1};i(Qt).r1=function(){return this.value};i(Qt).stringify=function(){return this.value.stringify()};i(Qt).pc=function(){return this.yc_1};i(Qt).qc=function(){return this.zc_1};i(Qt).ed=function(){return this.value};i(Qt).ng=function(t,e,n){return new Qt(t,e,n)};i(Qt).copy=function(t,e,n,r){return t=t===u?this.yc_1:t,e=e===u?this.zc_1:e,n=n===u?this.value:n,this.ng(t,e,n)};i(Qt).toString=function(){return"PositionImpl(start="+this.yc_1+", end="+this.zc_1+", value="+z(this.value)+")"};i(Qt).hashCode=function(){var t=this.yc_1;return t=D(t,31)+this.zc_1|0,t=D(t,31)+ct(this.value)|0,t};i(Qt).equals=function(t){if(this===t)return!0;if(!(t instanceof Qt))return!1;var e=t instanceof Qt?t:$();return!(this.yc_1!==e.yc_1||this.zc_1!==e.zc_1||!I(this.value,e.value))};function fs(){}function mg(t,e,n){if(t.yf_1)return!0;var r=n.getName(e),a;if(r==null)return!1;a=r;var o=a;return P(o)===t.name.length?gm(o,t.name):P(o)>t.name.length?O(o,(P(o)-t.name.length|0)-1|0)===46&&es(o,t.name):!1}function gg(t){return"["+t.stringify()+"]"}function le(t,e,n){this.at=t,this.name=e,this.expressions=n,this.yf_1=Um(this.name)||this.name==="*"}i(le).og=function(){return this.at};i(le).pg=function(){return this.name};i(le).qg=function(){return this.expressions};i(le).bd=function(){for(var t=this.expressions,e=qt(),n=t.h();n.i();){var r=n.j(),a=Dl(r.binaryExpressions);Do(e,a)}return bn(e)};i(le).stringify=function(){var t=this.at?"@":"",e=t+this.name;return e+In(this.expressions,"",u,u,u,u,gg)};i(le).match=function(t,e){var n;if(mg(this,t.current,e)){var r;t:{var a=this.expressions,o;if(ot(a,Et)?o=a.l():o=!1,o){r=!0;break t}for(var s=a.h();s.i();){var l=s.j();if(!l.match(t,e)){r=!1;break t}}r=!0}n=r}else n=!1;return n};i(le).pc=function(){return this.at};i(le).qc=function(){return this.name};i(le).ed=function(){return this.expressions};i(le).rg=function(t,e,n){return new le(t,e,n)};i(le).copy=function(t,e,n,r){return t=t===u?this.at:t,e=e===u?this.name:e,n=n===u?this.expressions:n,this.rg(t,e,n)};i(le).toString=function(){return"PropertySegment(at="+this.at+", name="+this.name+", expressions="+z(this.expressions)+")"};i(le).hashCode=function(){var t=Ca(this.at);return t=D(t,31)+Ge(this.name)|0,t=D(t,31)+ct(this.expressions)|0,t};i(le).equals=function(t){if(this===t)return!0;if(!(t instanceof le))return!1;var e=t instanceof le?t:$();return!(this.at!==e.at||this.name!==e.name||!I(this.expressions,e.expressions))};function ne(t,e){e=e===u?null:e,this.segment=t,this.to=e;var n=this,r;t:{var a=this.segment.expressions,o;if(ot(a,Et)?o=a.l():o=!1,o){r=!1;break t}for(var s=a.h();s.i();){var l=s.j(),f,c,h;if(l instanceof ht?h=I(l.operator.value,ar()):h=!1,h?c=I(l.left.value,"parent"):c=!1,c?f=I(l.right.value,"null"):f=!1,f){r=!0;break t}}r=!1}n.isMatchRoot=r;var d=this,v=sg(this.segment);d.fastQueryList=v==null?sa():v}i(ne).ne=function(){return this.segment};i(ne).oe=function(){return this.to};i(ne).stringify=function(){var t;return this.to!=null?t=this.to.stringify()+" ":t="",t+this.segment.stringify()};i(ne).matchContext=function(t,e,n){return this.segment.match(t,e)?this.to==null?t:this.to.matchContext(t,e,n):null};i(ne).sg=function(){return this.isMatchRoot};i(ne).tg=function(){return this.fastQueryList};i(ne).a=function(){return this.to==null?1:this.to.to.length+1|0};i(ne).pc=function(){return this.segment};i(ne).qc=function(){return this.to};i(ne).ug=function(t,e){return new ne(t,e)};i(ne).copy=function(t,e,n){return t=t===u?this.segment:t,e=e===u?this.to:e,this.ug(t,e)};i(ne).toString=function(){return"PropertyWrapper(segment="+this.segment.toString()+", to="+Gt(this.to)+")"};i(ne).hashCode=function(){var t=this.segment.hashCode();return t=D(t,31)+(this.to==null?0:this.to.hashCode())|0,t};i(ne).equals=function(t){if(this===t)return!0;if(!(t instanceof ne))return!1;var e=t instanceof ne?t:$();return!(!this.segment.equals(e.segment)||!I(this.to,e.to))};function $d(){Ii();var t=Ed;return kg(),t.r1()}var Ed;function Nd(){Ii();var t=Id;return Cg(),t.r1()}var Id;function hs(){}i(hs).parse=function(t){return Td(t)};i(hs).parseOrNull=function(t){var e;try{e=Td(t)}catch(r){var n;if(r instanceof xn)n=null;else throw r;e=n}return e};var qd;function yg(){return qd}function Ee(t,e){this.source=t,this.propertyWrapper=e;var n=this,r;t:{for(var a=this.propertyWrapper.length,o=0,s=this.propertyWrapper;s!=null;){if(s.segment.at){r=(a-1|0)-o|0;break t}var l=s.to;s=l==null?null:l.to,o=o+1|0}r=a-1|0}n.targetIndex=r,this.fastQueryList=this.propertyWrapper.fastQueryList,this.quickFindValue=this.fastQueryList.m()===1?Hi(this.fastQueryList):null,this.isMatchRoot=this.propertyWrapper.isMatchRoot;for(var f=this,c=this.propertyWrapper.to,h=qt();c!=null;)h.f(c),c=c.to.to;f.connectWrappers=bn(h);for(var d=this,v=this.propertyWrapper,g=qt();v!=null;){var m=v.segment;Am(g,m.binaryExpressions);var p=v.to;v=p==null?null:p.to}var _=hp(g);d.binaryExpressions=bn(_);var y=this,C;t:{if(this.connectWrappers.length!==0){C=!0;break t}for(var b=this.binaryExpressions,x=0,S=b.length;x<S;){var T=b[x];x=x+1|0;var U;e:{for(var G=T.properties,Y=0,vt=G.length;Y<vt;){var Ot=G[Y];if(Y=Y+1|0,Ls($d(),Ot)){U=!0;break e}}U=!1}if(U){C=!0;break t}var K;e:{for(var Zt=T.methods,W=0,jt=Zt.length;W<jt;){var Bt=Zt[W];if(W=W+1|0,Ls(Nd(),Bt)){K=!0;break e}}K=!1}if(K){C=!0;break t}}C=!1}y.useCache=C}i(Ee).vg=function(){return this.source};i(Ee).wg=function(){return this.propertyWrapper};i(Ee).stringify=function(){return this.propertyWrapper.stringify()};i(Ee).xg=function(){return this.targetIndex};i(Ee).matchContext=function(t,e,n){return this.propertyWrapper.matchContext(new te(t),e,n)};i(Ee).match=function(t,e,n){var r=this.matchContext(t,e,n),a;if(r==null)return null;a=r;var o=a;return o.get(this.targetIndex).current};i(Ee).tg=function(){return this.fastQueryList};i(Ee).yg=function(){return this.quickFindValue};i(Ee).sg=function(){return this.isMatchRoot};i(Ee).zg=function(){return this.connectWrappers};i(Ee).bd=function(){return this.binaryExpressions};i(Ee).ah=function(){return this.useCache};i(Ee).isSlow=function(t){if(t.quickFind&&this.quickFindValue==null&&!this.isMatchRoot||(!t.fastQuery||this.propertyWrapper.fastQueryList.l())&&!this.isMatchRoot)return!0;var e;t:{for(var n=this.connectWrappers,r=0,a=n.length;r<a;){var o=n[r];if(r=r+1|0,I(o.segment.operator,us())&&!(o.canFq&&t.fastQuery)){e=!0;break t}}e=!1}return!!e};i(Ee).checkType=function(t){try{for(var e=this.binaryExpressions,n=0,r=e.length;n<r;){var a=e[n];if(n=n+1|0,!a.operator.value.od(a.left,a.right))throw new on(a);var o=jc(a.left,t),s=jc(a.right,t);if(o!=null&&s!=null&&!I(o,s))throw new xe(a,o,s)}}catch(f){if(f instanceof Lt){var l=f;return l}else throw f}return null};function jc(t,e){Ii();var n;return t instanceof Te?n=null:t instanceof pe?n=Pa():t instanceof Jt?n=Ra():t instanceof gt?n=La():t instanceof Re?n=So(t,e,e).type:qn(),n}function zc(t,e,n){Ii();for(var r=0,a=t.params,o=0,s=a.length;o<s;){var l=a[o];o=o+1|0;var f=r;r=f+1|0;var c=e.arguments.k(f);if(!(c instanceof Te))if(c instanceof pe){if(!I(l.type,Pa()))throw new se(e,c,Pa())}else if(c instanceof Jt){if(!I(l.type,Ra()))throw new se(e,c,Ra())}else if(c instanceof gt){if(!I(l.type,La()))throw new se(e,c,La())}else if(c instanceof Re){var h=So(c,l,n);if(!I(h.type,l.type))throw new se(e,c,h.type)}else qn()}return t.returnType}function So(t,e,n){Ii();var r;if(t instanceof St){var a=t.callee,o;if(a instanceof St)throw Dt("Unsupported nested call");if(a instanceof xt){for(var s=n.methods,l=qt(),f=0,c=s.length;f<c;){var h=s[f];f=f+1|0,h.name===t.callee.value&&l.f(h)}if(l.l())throw new Ve(t.callee);for(var d=qt(),v=l.h();v.i();){var g=v.j();g.params.length===t.arguments.m()&&d.f(g)}if(d.l())throw new rn(t);o=d}else if(a instanceof mt){for(var m=So(t.callee.object0,e,n).methods,p=qt(),_=0,y=m.length;_<y;){var C=m[_];_=_+1|0,C.name===t.callee.property&&p.f(C)}if(p.l())throw new Qe(t.callee);for(var b=qt(),x=p.h();x.i();){var S=x.j();S.params.length===t.arguments.m()&&b.f(S)}if(b.l())throw new an(t);o=b}else qn();var T=o;if(T.m()===1)return zc(T.k(0),t,n),T.k(0).returnType;for(var U=0,G=T.h();G.i();){var Y=G.j(),vt=U;U=vt+1|0;var Ot=To(vt);try{return zc(Y,t,n),Y.returnType}catch(Zr){if(Zr instanceof Lt){var K=Zr;if(Ot===(T.m()-1|0))throw K}else throw Zr}}var Zt=t.callee;if(Zt instanceof xt)throw new Ve(t.callee);var W=t.callee;throw W instanceof mt?new Qe(t.callee):Dt("Unsupported nested call")}else if(t instanceof xt){var jt=n.props,Bt;t:{for(var Ue=0,fe=jt.length;Ue<fe;){var We=jt[Ue];if(Ue=Ue+1|0,We.name===t.value){Bt=We;break t}}Bt=null}var mn=Bt,Rn=mn==null?null:mn.type,Ar;if(Rn==null)throw new en(t);Ar=Rn,r=Ar}else if(t instanceof mt){var R=So(t.object0,e,n).props,ut;t:{for(var _t=0,zt=R.length;_t<zt;){var he=R[_t];if(_t=_t+1|0,he.name===t.property){ut=he;break t}}ut=null}var Jn=ut,Yn=Jn==null?null:Jn.type,Xn;if(Yn==null)throw new nn(t);Xn=Yn,r=Xn}else qn();return r}function wg(){return Ii(),["index","parent","depth"]}function bg(){return Ii(),["getChild"]}function kg(){return Ua("useCacheProperties",0,_u,function(){return $d()},null)}function Cg(){return Ua("useCacheMethods",0,_u,function(){return Nd()},null)}var Fc;function Ii(){Fc||(Fc=!0,Ed=Ia(wg),Id=Ia(bg))}function ue(t,e,n,r){r=r===u?null:r;var a=tn(n,e);Mo("expected "+t+" in selector at position "+e+", but got "+Gt(a==null?null:new st(a)),this),H(this,ue),this.expectedValue=t,this.position=e,this.source=n,this.lh_1=r}i(ue).mh=function(){return this.expectedValue};i(ue).nh=function(){return this.position};i(ue).vg=function(){return this.source};i(ue).j7=function(){return this.lh_1};i(ue).pc=function(){return this.expectedValue};i(ue).qc=function(){return this.position};i(ue).ed=function(){return this.source};i(ue).fd=function(){return this.lh_1};i(ue).oh=function(t,e,n,r){return new ue(t,e,n,r)};i(ue).copy=function(t,e,n,r,a){return t=t===u?this.expectedValue:t,e=e===u?this.position:e,n=n===u?this.source:n,r=r===u?this.lh_1:r,this.oh(t,e,n,r)};i(ue).toString=function(){return"SyntaxError(expectedValue="+this.expectedValue+", position="+this.position+", source="+this.source+", cause="+Gt(this.lh_1)+")"};i(ue).hashCode=function(){var t=Ge(this.expectedValue);return t=D(t,31)+this.position|0,t=D(t,31)+Ge(this.source)|0,t=D(t,31)+(this.lh_1==null?0:ct(this.lh_1))|0,t};i(ue).equals=function(t){if(this===t)return!0;if(!(t instanceof ue))return!1;var e=t instanceof ue?t:$();return!(this.expectedValue!==e.expectedValue||this.position!==e.position||this.source!==e.source||!I(this.lh_1,e.lh_1))};function bt(t,e,n,r){n=n===u?"":n,r=r===u?null:r;var a;if(e>=P(t))a=!0;else{var o;P(n)>0?o=!Je(n,O(t,e)):o=!1,a=o}if(a)throw new ue(r==null?n:r,e,z(t))}function oe(t,e,n,r){throw n=n===u?"":n,r=r===u?null:r,new ue(n,e,z(t),r)}function xg(t){return function(e,n,r){return t(e,n,r)}}function Sg(t){return function(e){return ap(t(e))}}function Du(){}i(Du).multiplatformBuild=function(t,e,n,r,a){var o=xg(e);return new kt(t,o,n,Sg(r),a)};var Ad;function $g(){return Ad}function Eg(t,e,n){return null}function Ng(t){return function(e){for(var n=t(e);n!=null;)n=t(Me(n));return n}}function hi(t,e,n){this.xh_1=t,this.yh_1=e,Pe.call(this,n)}i(hi).di=function(t,e){var n=this.ei(t,e);return n.k6_1=ft,n.l6_1=null,n.q6()};i(hi).h7=function(t,e){return this.di(t instanceof xr?t:$(),e)};i(hi).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=4,this.ai_1=Vl(this.xh_1(this.yh_1)),this.ai_1.l())return ft;Zl(this.ai_1);var n=this;n.bi_1=qt(),this.i6_1=1;continue t;case 1:if(this.ci_1=this.ai_1.x2(Za(this.ai_1)),this.i6_1=2,t=this.zh_1.p9(this.ci_1,this),t===$r())return t;continue t;case 2:for(var r=this.xh_1(this.ci_1).h();r.i();){var a=r.j();this.bi_1.f(a)}if(!this.bi_1.l()){var o=this.bi_1.m()-1|0;if(0<=o)do{var s=o;o=o+-1|0,this.ai_1.f(this.bi_1.k(s))}while(0<=o);this.bi_1.n3()}if(!this.ai_1.l()){this.i6_1=1;continue t}this.i6_1=3;continue t;case 3:return ft;case 4:throw this.l6_1}}catch(f){var l=f;if(this.j6_1===4)throw l;this.i6_1=this.j6_1,this.l6_1=l}while(!0)};i(hi).ei=function(t,e){var n=new hi(this.xh_1,this.yh_1,e);return n.zh_1=t,n};function Ig(t,e,n){var r=new hi(t,e,n),a=function(o,s){return r.di(o,s)};return a.$arity=1,a}function qg(t){return function(e){return eo(Ig(t,e,null))}}function Ag(t){return function(e,n){return t.checkOffset(e)}}function Tg(t){return function(e,n){var r=t(e),a;n.maxOffset!=null?a=kf(r,Me(n.maxOffset)+1|0):a=r;var o=a;return Ql(o,Ag(n))}}function di(t,e,n,r){this.ni_1=t,this.oi_1=e,this.pi_1=n,Pe.call(this,r)}i(di).di=function(t,e){var n=this.ei(t,e);return n.k6_1=ft,n.l6_1=null,n.q6()};i(di).h7=function(t,e){return this.di(t instanceof xr?t:$(),e)};i(di).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:this.j6_1=6;var n=this,r=this.ni_1(this.oi_1),a;if(r==null)return ft;a=r,n.ri_1=a,this.si_1=0,this.i6_1=1;continue t;case 1:if(this.ri_1==null){this.i6_1=5;continue t}if(this.ti_1=this.ri_1,this.ti_1==null){this.ui_1=null,this.i6_1=4;continue t}else{var o=this;o.vi_1=this.ti_1;var s=this;if(s.wi_1=this.vi_1,this.pi_1.checkOffset(this.si_1)){if(this.i6_1=2,t=this.qi_1.p9(this.wi_1,this),t===$r())return t;continue t}else{this.i6_1=3;continue t}}case 2:this.i6_1=3;continue t;case 3:this.si_1=this.si_1+1|0;var l=this.pi_1.maxOffset;if(l!=null){if(this.si_1>l)return ft}var f=this;this.ri_1=this.ni_1(this.wi_1),f.ui_1=ft,this.i6_1=4;continue t;case 4:this.i6_1=1;continue t;case 5:return ft;case 6:throw this.l6_1}}catch(h){var c=h;if(this.j6_1===6)throw c;this.i6_1=this.j6_1,this.l6_1=c}while(!0)};i(di).ei=function(t,e){var n=new di(this.ni_1,this.oi_1,this.pi_1,e);return n.qi_1=t,n};function Mg(t,e,n,r){var a=new di(t,e,n,r),o=function(s,l){return a.di(s,l)};return o.$arity=1,o}function Pg(t){return function(e,n){return eo(Mg(t,e,n,null))}}function Rg(t){return function(e){return!I(e,t)}}function Lg(t){return function(e,n){return t.checkOffset(e)}}function Og(t,e){return function(n,r){var a=t(n),o;if(a!=null){var s=e(a),l=Vl(gp(s,Rg(n)));Zl(l);var f=dp(l);o=Ql(f,Lg(r))}else o=$i();return o}}function jg(t){return function(e){return!I(e,t)}}function zg(t){return function(e,n){return t.checkOffset(e)}}function Fg(t,e){return function(n,r){var a=t(n),o;if(a!=null){var s=e(a),l=yp(wp(s,jg(n)),1),f;r.maxOffset!=null?f=kf(l,Me(r.maxOffset)+1|0):f=l;var c=f;o=Ql(c,zg(r))}else o=$i();return o}}function vi(t,e,n,r){this.fj_1=t,this.gj_1=e,this.hj_1=n,Pe.call(this,r)}i(vi).di=function(t,e){var n=this.ei(t,e);return n.k6_1=ft,n.l6_1=null,n.q6()};i(vi).h7=function(t,e){return this.di(t instanceof xr?t:$(),e)};i(vi).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=5,this.jj_1=Vl(this.fj_1(this.gj_1)),this.jj_1.l())return ft;Zl(this.jj_1);var n=this;n.kj_1=qt(),this.lj_1=0,this.i6_1=1;continue t;case 1:if(this.mj_1=this.jj_1.x2(Za(this.jj_1)),this.hj_1.checkOffset(this.lj_1)){if(this.i6_1=2,t=this.ij_1.p9(this.mj_1,this),t===$r())return t;continue t}else{this.i6_1=3;continue t}case 2:this.i6_1=3;continue t;case 3:this.lj_1=this.lj_1+1|0;var r=this.hj_1.maxOffset;if(r!=null){if(this.lj_1>r)return ft}for(var a=this.fj_1(this.mj_1).h();a.i();){var o=a.j();this.kj_1.f(o)}if(!this.kj_1.l()){var s=this.kj_1.m()-1|0;if(0<=s)do{var l=s;s=s+-1|0,this.jj_1.f(this.kj_1.k(l))}while(0<=s);this.kj_1.n3()}if(!this.jj_1.l()){this.i6_1=1;continue t}this.i6_1=4;continue t;case 4:return ft;case 5:throw this.l6_1}}catch(c){var f=c;if(this.j6_1===5)throw f;this.i6_1=this.j6_1,this.l6_1=f}while(!0)};i(vi).ei=function(t,e){var n=new vi(this.fj_1,this.gj_1,this.hj_1,e);return n.ij_1=t,n};function Dg(t,e,n,r){var a=new vi(t,e,n,r),o=function(s,l){return a.di(s,l)};return o.$arity=1,o}function Bg(t){return function(e,n){return eo(Dg(t,e,n,null))}}function Kg(t,e){return $i()}function pi(t,e,n,r,a){this.vj_1=t,this.wj_1=e,this.xj_1=n,this.yj_1=r,Pe.call(this,a)}i(pi).di=function(t,e){var n=this.ei(t,e);return n.k6_1=ft,n.l6_1=null,n.q6()};i(pi).h7=function(t,e){return this.di(t instanceof xr?t:$(),e)};i(pi).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=7,this.ak_1=this.vj_1.match(this.wj_1,this.xj_1,this.yj_1),this.ak_1==null){this.bk_1=null,this.i6_1=2;continue t}else{var n=this;n.ck_1=this.ak_1;var r=this;if(r.dk_1=this.ck_1,this.i6_1=1,t=this.zj_1.p9(this.dk_1,this),t===$r())return t;continue t}case 1:var a=this;a.bk_1=ft,this.i6_1=2;continue t;case 2:var o=this;o.ek_1=this.xj_1.getDescendants(this.wj_1),this.fk_1=this.ek_1.h(),this.i6_1=3;continue t;case 3:if(!this.fk_1.i()){this.i6_1=6;continue t}this.gk_1=this.fk_1.j();var s=this;if(s.hk_1=this.gk_1,this.ik_1=this.vj_1.match(this.hk_1,this.xj_1,this.yj_1),this.ik_1==null){this.jk_1=null,this.i6_1=5;continue t}else{var l=this;l.kk_1=this.ik_1;var f=this;if(f.lk_1=this.kk_1,this.i6_1=4,t=this.zj_1.p9(this.lk_1,this),t===$r())return t;continue t}case 4:var c=this;c.jk_1=ft,this.i6_1=5;continue t;case 5:this.i6_1=3;continue t;case 6:return ft;case 7:throw this.l6_1}}catch(d){var h=d;if(this.j6_1===7)throw h;this.i6_1=this.j6_1,this.l6_1=h}while(!0)};i(pi).ei=function(t,e){var n=new pi(this.vj_1,this.wj_1,this.xj_1,this.yj_1,e);return n.zj_1=t,n};function Ug(t,e,n,r,a){var o=new pi(t,e,n,r,a),s=function(l,f){return o.di(l,f)};return s.$arity=1,s}function _i(t,e,n,r,a){this.uk_1=t,this.vk_1=e,this.wk_1=n,this.xk_1=r,Pe.call(this,a)}i(_i).ll=function(t,e){var n=this.ml(t,e);return n.k6_1=ft,n.l6_1=null,n.q6()};i(_i).h7=function(t,e){return this.ll(t instanceof xr?t:$(),e)};i(_i).q6=function(){var t=this.k6_1;t:do try{var e=this.i6_1;switch(e){case 0:if(this.j6_1=7,this.zk_1=this.uk_1.matchContext(this.vk_1,this.wk_1,this.xk_1),this.zk_1==null){this.al_1=null,this.i6_1=2;continue t}else{var n=this;n.bl_1=this.zk_1;var r=this;if(r.cl_1=this.bl_1,this.i6_1=1,t=this.yk_1.p9(this.cl_1,this),t===$r())return t;continue t}case 1:var a=this;a.al_1=ft,this.i6_1=2;continue t;case 2:var o=this;o.dl_1=this.wk_1.getDescendants(this.vk_1),this.el_1=this.dl_1.h(),this.i6_1=3;continue t;case 3:if(!this.el_1.i()){this.i6_1=6;continue t}this.fl_1=this.el_1.j();var s=this;if(s.gl_1=this.fl_1,this.hl_1=this.uk_1.matchContext(this.gl_1,this.wk_1,this.xk_1),this.hl_1==null){this.il_1=null,this.i6_1=5;continue t}else{var l=this;l.jl_1=this.hl_1;var f=this;if(f.kl_1=this.jl_1,this.i6_1=4,t=this.yk_1.p9(this.kl_1,this),t===$r())return t;continue t}case 4:var c=this;c.il_1=ft,this.i6_1=5;continue t;case 5:this.i6_1=3;continue t;case 6:return ft;case 7:throw this.l6_1}}catch(d){var h=d;if(this.j6_1===7)throw h;this.i6_1=this.j6_1,this.l6_1=h}while(!0)};i(_i).ml=function(t,e){var n=new _i(this.uk_1,this.vk_1,this.wk_1,this.xk_1,e);return n.yk_1=t,n};function Wg(t,e,n,r,a){var o=new _i(t,e,n,r,a),s=function(l,f){return o.ll(l,f)};return s.$arity=1,s}function kt(t,e,n,r,a,o,s,l,f,c,h,d,v){var g;e===u?g=Eg:g=e,e=g;var m;o===u?m=Ng(a):m=o,o=m;var p;s===u?p=qg(r):p=s,s=p;var _;l===u?_=Tg(r):_=l,l=_;var y;f===u?y=Pg(a):y=f,f=y;var C;c===u?C=Og(a,r):C=c,c=C;var b;h===u?b=Fg(a,r):b=h,h=b;var x;d===u?x=Bg(r):x=d,d=x;var S;v===u?S=Kg:S=v,v=S,this.getAttr=t,this.getInvoke=e,this.getName=n,this.getChildren=r,this.getParent=a,this.getRoot=o,this.getDescendants=s,this.traverseChildren=l,this.traverseAncestors=f,this.traverseBeforeBrothers=c,this.traverseAfterBrothers=h,this.traverseDescendants=d,this.traverseFastQueryDescendants=v}i(kt).nl=function(){return this.getAttr};i(kt).ol=function(){return this.getInvoke};i(kt).pl=function(){return this.getName};i(kt).ql=function(){return this.getChildren};i(kt).rl=function(){return this.getParent};i(kt).sl=function(){return this.getRoot};i(kt).tl=function(){return this.getDescendants};i(kt).ul=function(){return this.traverseChildren};i(kt).vl=function(){return this.traverseAncestors};i(kt).wl=function(){return this.traverseBeforeBrothers};i(kt).xl=function(){return this.traverseAfterBrothers};i(kt).yl=function(){return this.traverseDescendants};i(kt).zl=function(){return this.traverseFastQueryDescendants};i(kt).am=function(t,e,n){return eo(Ug(e,t,this,n,null))};i(kt).querySelectorAll$default=function(t,e,n,r){return n=n===u?ca():n,r===u?this.am(t,e,n):r.am.call(this,t,e,n)};i(kt).bm=function(t,e,n){return Cf(this.am(t,e,n))};i(kt).querySelector=function(t,e,n,r){return n=n===u?ca():n,this.bm(t,e,n)};i(kt).cm=function(t,e,n){return eo(Wg(e,t,this,n,null))};i(kt).querySelectorAllContext$default=function(t,e,n,r){return n=n===u?ca():n,r===u?this.cm(t,e,n):r.cm.call(this,t,e,n)};i(kt).dm=function(t,e,n){return Cf(this.cm(t,e,n))};i(kt).querySelectorContext=function(t,e,n,r){return n=n===u?ca():n,this.dm(t,e,n)};i(kt).em=function(t,e,n){var r=xf(this.am(t,e,n)),a=ot(r,Vn)?r:$(),o=bn(a);return Zi(o)?o:$()};i(kt).querySelectorAllArray=function(t,e,n,r){return n=n===u?ca():n,this.em(t,e,n)};i(kt).fm=function(t,e,n){var r=xf(this.cm(t,e,n));return bn(r)};i(kt).querySelectorAllContextArray=function(t,e,n,r){return n=n===u?ca():n,this.fm(t,e,n)};function Ae(t){Ni.call(this),this.numbers=t;var e=this,n=gf(this.numbers);e.gm_1=(n==null?1:n)-1|0,this.hm_1=vp(this.numbers);for(var r=this,a=this.numbers,o=Vi(Xs(a,10)),s=a.h();s.i();){var l=s.j(),f=l-1|0;o.f(f)}r.im_1=o}i(Ae).jm=function(){return this.numbers};i(Ae).yd=function(){return this.gm_1};i(Ae).zd=function(){return this.hm_1};i(Ae).checkOffset=function(t){return xm(this.im_1,t)>=0};i(Ae).getOffset=function(t){return this.numbers.k(t)};i(Ae).stringify=function(){if(this.numbers.m()===1){var t;return Hi(this.numbers)===1?t="":t=Hi(this.numbers).toString(),t}return"("+In(this.numbers,",")+")"};i(Ae).pc=function(){return this.numbers};i(Ae).km=function(t){return new Ae(t)};i(Ae).copy=function(t,e){return t=t===u?this.numbers:t,this.km(t)};i(Ae).toString=function(){return"TupleExpression(numbers="+z(this.numbers)+")"};i(Ae).hashCode=function(){return ct(this.numbers)};i(Ae).equals=function(t){if(this===t)return!0;if(!(t instanceof Ae))return!1;var e=t instanceof Ae?t:$();return!!I(this.numbers,e.numbers)};function si(){Il=this,ln.call(this,"boolean")}i(si).toString=function(){return"BooleanType"};i(si).hashCode=function(){return 1452179029};i(si).equals=function(t){return this===t?!0:t instanceof si?(t instanceof si||$(),!0):!1};var Il;function Pa(){return Il==null&&new si,Il}function li(){ql=this,ln.call(this,"int")}i(li).toString=function(){return"IntType"};i(li).hashCode=function(){return-1601449956};i(li).equals=function(t){return this===t?!0:t instanceof li?(t instanceof li||$(),!0):!1};var ql;function Ra(){return ql==null&&new li,ql}function ui(){Al=this,ln.call(this,"string")}i(ui).toString=function(){return"StringType"};i(ui).hashCode=function(){return 1719560632};i(ui).equals=function(t){return this===t?!0:t instanceof ui?(t instanceof ui||$(),!0):!1};var Al;function La(){return Al==null&&new ui,Al}function De(t){ln.call(this,"object"),this.name=t}i(De).pg=function(){return this.name};i(De).pc=function(){return this.name};i(De).sf=function(t){return new De(t)};i(De).copy=function(t,e){return t=t===u?this.name:t,this.sf(t)};i(De).toString=function(){return"ObjectType(name="+this.name+")"};i(De).hashCode=function(){return Ge(this.name)};i(De).equals=function(t){if(this===t)return!0;if(!(t instanceof De))return!1;var e=t instanceof De?t:$();return this.name===e.name};function ln(t){this.key=t}i(ln).q1=function(){return this.key};function Hg(t){return t.stringify()}function J(t,e,n){var r;n===u?r=[]:r=n,n=r,this.name=t,this.returnType=e,this.params=n}i(J).pg=function(){return this.name};i(J).lm=function(){return this.returnType};i(J).mm=function(){return this.params};i(J).stringify=function(){return this.name+"("+_f(this.params,", ",u,u,u,u,Hg)+"): "+this.returnType.stringify()};i(J).equals=function(t){return this===t?!0:!(t==null||!Co(this).equals(Co(t))||(t instanceof J||$(),this.name!==t.name)||!this.returnType.equals(t.returnType)||!Ks(this.params,t.params))};i(J).hashCode=function(){var t=Ge(this.name);return t=D(31,t)+this.returnType.hashCode()|0,t=D(31,t)+Us(this.params)|0,t};i(J).pc=function(){return this.name};i(J).qc=function(){return this.returnType};i(J).ed=function(){return this.params};i(J).nm=function(t,e,n){return new J(t,e,n)};i(J).copy=function(t,e,n,r){return t=t===u?this.name:t,e=e===u?this.returnType:e,n=n===u?this.params:n,this.nm(t,e,n)};i(J).toString=function(){return"MethodInfo(name="+this.name+", returnType="+this.returnType.toString()+", params="+z(this.params)+")"};function rt(t,e){this.name=t,this.type=e}i(rt).pg=function(){return this.name};i(rt).hf=function(){return this.type};i(rt).pc=function(){return this.name};i(rt).qc=function(){return this.type};i(rt).om=function(t,e){return new rt(t,e)};i(rt).copy=function(t,e,n){return t=t===u?this.name:t,e=e===u?this.type:e,this.om(t,e)};i(rt).toString=function(){return"PropInfo(name="+this.name+", type="+this.type.toString()+")"};i(rt).hashCode=function(){var t=Ge(this.name);return t=D(t,31)+this.type.hashCode()|0,t};i(rt).equals=function(t){if(this===t)return!0;if(!(t instanceof rt))return!1;var e=t instanceof rt?t:$();return!(this.name!==e.name||!this.type.equals(e.type))};function Ht(t,e,n){var r;e===u?r=[]:r=e,e=r;var a;n===u?a=[]:a=n,n=a,this.type=t,this.props=e,this.methods=n}i(Ht).hf=function(){return this.type};i(Ht).pm=function(t){this.props=t};i(Ht).qm=function(){return this.props};i(Ht).rm=function(t){this.methods=t};i(Ht).dd=function(){return this.methods};i(Ht).stringify=function(){var t,e=this.type;return e instanceof De?t=this.type.name:t=this.type.key,t};i(Ht).equals=function(t){return this===t?!0:!(t==null||!Co(this).equals(Co(t))||(t instanceof Ht||$(),!I(this.type,t.type))||!Ks(this.props,t.props)||!Ks(this.methods,t.methods))};i(Ht).hashCode=function(){var t=ct(this.type);return t=D(31,t)+Us(this.props)|0,t=D(31,t)+Us(this.methods)|0,t};i(Ht).pc=function(){return this.type};i(Ht).qc=function(){return this.props};i(Ht).ed=function(){return this.methods};i(Ht).sm=function(t,e,n){return new Ht(t,e,n)};i(Ht).copy=function(t,e,n,r){return t=t===u?this.type:t,e=e===u?this.props:e,n=n===u?this.methods:n,this.sm(t,e,n)};i(Ht).toString=function(){return"TypeInfo(type="+z(this.type)+", props="+z(this.props)+", methods="+z(this.methods)+")"};function Vg(t){return t.stringify()}function Qg(t){return!1}function Re(t){re.call(this,t,"var"),this.vm_1=t}i(Re).r1=function(){return this.vm_1};function xt(t,e){Re.call(this,e),this.zm_1=t,this.name=e,this.an_1=this.zm_1+this.value.length|0,this.isEqual=this.name==="equal",this.isNotEqual=this.name==="notEqual"}i(xt).tc=function(){return this.zm_1};i(xt).pg=function(){return this.name};i(xt).uc=function(){return this.an_1};i(xt).nd=function(t,e){return e.getAttr(t,this.value)};i(xt).cd=function(){return[this.value]};i(xt).dd=function(){return[]};i(xt).bn=function(){return this.isEqual};i(xt).cn=function(){return this.isNotEqual};i(xt).pc=function(){return this.zm_1};i(xt).qc=function(){return this.name};i(xt).dn=function(t,e){return new xt(t,e)};i(xt).copy=function(t,e,n){return t=t===u?this.zm_1:t,e=e===u?this.name:e,this.dn(t,e)};i(xt).toString=function(){return"Identifier(start="+this.zm_1+", name="+this.name+")"};i(xt).hashCode=function(){var t=this.zm_1;return t=D(t,31)+Ge(this.name)|0,t};i(xt).equals=function(t){if(this===t)return!0;if(!(t instanceof xt))return!1;var e=t instanceof xt?t:$();return!(this.zm_1!==e.zm_1||this.name!==e.name)};function mt(t,e,n,r){Re.call(this,n.stringify()+"."+r),this.jh_1=t,this.kh_1=e,this.object0=n,this.property=r,this.isPropertyOr=this.property==="or",this.isPropertyAnd=this.property==="and",this.isPropertyIfElse=this.property==="ifElse"}i(mt).tc=function(){return this.jh_1};i(mt).uc=function(){return this.kh_1};i(mt).en=function(){return this.object0};i(mt).fn=function(){return this.property};i(mt).nd=function(t,e){var n=this.object0.nd(t,e);return n==null?null:e.getAttr(n,this.property)};i(mt).cd=function(){return rr([this.object0.properties,[this.property]])};i(mt).dd=function(){return this.object0.methods};i(mt).gn=function(){return this.isPropertyOr};i(mt).hn=function(){return this.isPropertyAnd};i(mt).in=function(){return this.isPropertyIfElse};i(mt).pc=function(){return this.jh_1};i(mt).qc=function(){return this.kh_1};i(mt).ed=function(){return this.object0};i(mt).fd=function(){return this.property};i(mt).jn=function(t,e,n,r){return new mt(t,e,n,r)};i(mt).copy=function(t,e,n,r,a){return t=t===u?this.jh_1:t,e=e===u?this.kh_1:e,n=n===u?this.object0:n,r=r===u?this.property:r,this.jn(t,e,n,r)};i(mt).toString=function(){return"MemberExpression(start="+this.jh_1+", end="+this.kh_1+", object0="+z(this.object0)+", property="+this.property+")"};i(mt).hashCode=function(){var t=this.jh_1;return t=D(t,31)+this.kh_1|0,t=D(t,31)+ct(this.object0)|0,t=D(t,31)+Ge(this.property)|0,t};i(mt).equals=function(t){if(this===t)return!0;if(!(t instanceof mt))return!1;var e=t instanceof mt?t:$();return!(this.jh_1!==e.jh_1||this.kh_1!==e.kh_1||!I(this.object0,e.object0)||this.property!==e.property)};function St(t,e,n,r){var a=n.stringify();Re.call(this,a+"("+In(r,",",u,u,u,u,Vg)+")"),this.eh_1=t,this.fh_1=e,this.callee=n,this.arguments=r}i(St).tc=function(){return this.eh_1};i(St).uc=function(){return this.fh_1};i(St).kn=function(){return this.callee};i(St).ln=function(){return this.arguments};i(St).nd=function(t,e){var n=this.callee,r;if(n instanceof St)r=null;else if(n instanceof xt){var a;if(this.callee.isEqual)a=ar().compare(this.arguments.k(0).nd(t,e),this.arguments.k(1).nd(t,e));else if(this.callee.isNotEqual)a=!ar().compare(this.arguments.k(0).nd(t,e),this.arguments.k(1).nd(t,e));else{for(var o=this.arguments,s=Vi(Xs(o,10)),l=o.h();l.i();){var f=l.j(),c=f.nd(t,e);if(c==null)return null;s.f(c)}a=e.getInvoke(t,this.callee.name,s)}r=a}else if(n instanceof mt){var h=this.callee.object0.nd(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 m=this.arguments.k(0).nd(t,e);if(m==null)return null;var p=m;g=typeof p=="boolean"?p:$()}v=g}else if(this.callee.isPropertyAnd){var _;if(typeof d=="boolean"?d:$()){var y=this.arguments.k(0).nd(t,e);if(y==null)return null;var C=y;_=typeof C=="boolean"?C:$()}else _=!1;v=_}else if(this.callee.isPropertyIfElse){var b;(typeof d=="boolean"?d:$())?b=this.arguments.k(0).nd(t,e):b=this.arguments.k(1).nd(t,e),v=b}else{for(var x=this.arguments,S=Vi(Xs(x,10)),T=x.h();T.i();){var U=T.j(),G=U.nd(t,e);if(G==null)return null;S.f(G)}v=e.getInvoke(d,this.callee.property,S)}r=v}else qn();return r};i(St).cd=function(){for(var t=Bl(this.callee.properties),e=this.arguments,n=qt(),r=e.h();r.i();){var a=r.j(),o=Dl(a.properties);Do(n,o)}var s=yf(t,n);return bn(s)};i(St).dd=function(){var t=this.callee,e;t instanceof St?e=this.callee.methods:t instanceof xt?e=[this.callee.name]:t instanceof mt?e=rr([this.callee.object0.methods,[this.callee.property]]):qn();for(var n=Bl(e),r=this.arguments,a=qt(),o=r.h();o.i();){var s=o.j(),l=Dl(s.methods);Do(a,l)}var f=yf(n,a);return bn(f)};i(St).pc=function(){return this.eh_1};i(St).qc=function(){return this.fh_1};i(St).ed=function(){return this.callee};i(St).fd=function(){return this.arguments};i(St).mn=function(t,e,n,r){return new St(t,e,n,r)};i(St).copy=function(t,e,n,r,a){return t=t===u?this.eh_1:t,e=e===u?this.fh_1:e,n=n===u?this.callee:n,r=r===u?this.arguments:r,this.mn(t,e,n,r)};i(St).toString=function(){return"CallExpression(start="+this.eh_1+", end="+this.fh_1+", callee="+z(this.callee)+", arguments="+z(this.arguments)+")"};i(St).hashCode=function(){var t=this.eh_1;return t=D(t,31)+this.fh_1|0,t=D(t,31)+ct(this.callee)|0,t=D(t,31)+ct(this.arguments)|0,t};i(St).equals=function(t){if(this===t)return!0;if(!(t instanceof St))return!1;var e=t instanceof St?t:$();return!(this.eh_1!==e.eh_1||this.fh_1!==e.fh_1||!I(this.callee,e.callee)||!I(this.arguments,e.arguments))};function Ye(t,e){re.call(this,t,e),this.pn_1=t,this.qn_1=e}i(Ye).r1=function(){return this.pn_1};i(Ye).hf=function(){return this.qn_1};i(Ye).nd=function(t,e){return this.value};i(Ye).cd=function(){return[]};i(Ye).dd=function(){return[]};function Te(t){Ye.call(this,null,"null"),this.vn_1=t,this.wn_1=this.vn_1+4|0}i(Te).tc=function(){return this.vn_1};i(Te).uc=function(){return this.wn_1};i(Te).pc=function(){return this.vn_1};i(Te).xn=function(t){return new Te(t)};i(Te).copy=function(t,e){return t=t===u?this.vn_1:t,this.xn(t)};i(Te).toString=function(){return"NullLiteral(start="+this.vn_1+")"};i(Te).hashCode=function(){return this.vn_1};i(Te).equals=function(t){if(this===t)return!0;if(!(t instanceof Te))return!1;var e=t instanceof Te?t:$();return this.vn_1===e.vn_1};function pe(t,e){Ye.call(this,e,"boolean"),this.co_1=t,this.do_1=e,this.eo_1=this.co_1+(this.do_1?4:5)|0}i(pe).tc=function(){return this.co_1};i(pe).r1=function(){return this.do_1};i(pe).uc=function(){return this.eo_1};i(pe).pc=function(){return this.co_1};i(pe).qc=function(){return this.do_1};i(pe).fo=function(t,e){return new pe(t,e)};i(pe).copy=function(t,e,n){return t=t===u?this.co_1:t,e=e===u?this.do_1:e,this.fo(t,e)};i(pe).toString=function(){return"BooleanLiteral(start="+this.co_1+", value="+this.do_1+")"};i(pe).hashCode=function(){var t=this.co_1;return t=D(t,31)+Ca(this.do_1)|0,t};i(pe).equals=function(t){if(this===t)return!0;if(!(t instanceof pe))return!1;var e=t instanceof pe?t:$();return!(this.co_1!==e.co_1||this.do_1!==e.do_1)};function Jt(t,e,n){Ye.call(this,n,"int"),this.ko_1=t,this.lo_1=e,this.mo_1=n}i(Jt).tc=function(){return this.ko_1};i(Jt).uc=function(){return this.lo_1};i(Jt).r1=function(){return this.mo_1};i(Jt).pc=function(){return this.ko_1};i(Jt).qc=function(){return this.lo_1};i(Jt).ed=function(){return this.mo_1};i(Jt).no=function(t,e,n){return new Jt(t,e,n)};i(Jt).copy=function(t,e,n,r){return t=t===u?this.ko_1:t,e=e===u?this.lo_1:e,n=n===u?this.mo_1:n,this.no(t,e,n)};i(Jt).toString=function(){return"IntLiteral(start="+this.ko_1+", end="+this.lo_1+", value="+this.mo_1+")"};i(Jt).hashCode=function(){var t=this.ko_1;return t=D(t,31)+this.lo_1|0,t=D(t,31)+this.mo_1|0,t};i(Jt).equals=function(t){if(this===t)return!0;if(!(t instanceof Jt))return!1;var e=t instanceof Jt?t:$();return!(this.ko_1!==e.ko_1||this.lo_1!==e.lo_1||this.mo_1!==e.mo_1)};function gt(t,e,n,r){r=r===u?null:r,Ye.call(this,n,"string"),this.td_1=t,this.ud_1=e,this.vd_1=n,this.wd_1=r;var a=this,o=this.wd_1,s;if(o==null)s=null;else{var l=xy(this.vd_1);s=l==null?o:l}var f=s,c;f==null?c=Qg:c=f,a.xd_1=c}i(gt).tc=function(){return this.td_1};i(gt).uc=function(){return this.ud_1};i(gt).r1=function(){return this.vd_1};i(gt).oo=function(){return this.wd_1};i(gt).stringify=function(){return Cy(this.vd_1)};i(gt).po=function(){return this.xd_1};i(gt).pc=function(){return this.td_1};i(gt).qc=function(){return this.ud_1};i(gt).ed=function(){return this.vd_1};i(gt).qo=function(){return this.wd_1};i(gt).ro=function(t,e,n,r){return new gt(t,e,n,r)};i(gt).copy=function(t,e,n,r,a){return t=t===u?this.td_1:t,e=e===u?this.ud_1:e,n=n===u?this.vd_1:n,r=r===u?this.wd_1:r,this.ro(t,e,n,r)};i(gt).toString=function(){return"StringLiteral(start="+this.td_1+", end="+this.ud_1+", value="+this.vd_1+", matches="+Gt(this.wd_1)+")"};i(gt).hashCode=function(){var t=this.td_1;return t=D(t,31)+this.ud_1|0,t=D(t,31)+Ge(this.vd_1)|0,t=D(t,31)+(this.wd_1==null?0:ct(this.wd_1))|0,t};i(gt).equals=function(t){if(this===t)return!0;if(!(t instanceof gt))return!1;var e=t instanceof gt?t:$();return!(this.td_1!==e.td_1||this.ud_1!==e.ud_1||this.vd_1!==e.vd_1||!I(this.wd_1,e.wd_1))};function re(t,e){this.ld_1=t,this.md_1=e}i(re).r1=function(){return this.ld_1};i(re).hf=function(){return this.md_1};i(re).stringify=function(){return Gt(this.value)};function Wt(t,e){t=t===u?"":t,this.so_1=t,this.uo_1=e}i(Wt).vo=function(t,e){return this.uo_1(t,e,this.so_1)};i(Wt).toString=function(){return"Parser(prefix="+this.so_1+", temp="+z(this.uo_1)+")"};i(Wt).hashCode=function(){var t=Ge(this.so_1);return t=D(t,31)+ct(this.uo_1)|0,t};i(Wt).equals=function(t){if(this===t)return!0;if(!(t instanceof Wt))return!1;var e=t instanceof Wt?t:$();return!(this.so_1!==e.so_1||!I(this.uo_1,e.uo_1))};function Pt(t,e){e=e===u?0:e,this.wo_1=t,this.xo_1=e}i(Pt).toString=function(){return"ParserResult(data="+Gt(this.wo_1)+", length="+this.xo_1+")"};i(Pt).hashCode=function(){var t=this.wo_1==null?0:ct(this.wo_1);return t=D(t,31)+this.xo_1|0,t};i(Pt).equals=function(t){if(this===t)return!0;if(!(t instanceof Pt))return!1;var e=t instanceof Pt?t:$();return!(!I(this.wo_1,e.wo_1)||this.xo_1!==e.xo_1)};function Gg(t,e){var n=0,r=tn(e,n);if(!I(r==null?null:new st(r),new st(40)))return!1;n=n+1|0,n=n+t.yo_1.vo(e,n).xo_1|0;var a=ri(48,57),o=tn(e,n),s,l=o;if((l==null?null:new st(l))!=null?s=a.xb(o):s=!1,!s)return!1;n=n+t.cp_1.vo(e,n).xo_1|0,n=n+t.yo_1.vo(e,n).xo_1|0;var f=tn(e,n);return I(f==null?null:new st(f),new st(44))}function Jg(t,e,n){var r=as().allSubClasses,a;t:{for(var o=0,s=r.length;o<s;){var l=r[o];if(o=o+1|0,ns(e,l.key,n)){a=l;break t}}a=null}var f=a,c;f==null?oe(e,n,"CompareOperator"):c=f;var h=c;return new Qt(n,n+h.key.length|0,h)}function Tl(t,e,n){var r=e;if((r==null?null:new st(r))==null)return!1;var a,o,s,l=e;return I(l==null?null:new st(l),new st(95))?s=!0:s=ri(97,122).xb(e),s?o=!0:o=ri(65,90).xb(e),o?a=!0:a=!n&&ri(48,57).xb(e),a}function Dc(t,e,n,r){return n=n===u?!1:n,Tl(t,e,n)}function qs(t,e,n,r){if(ns(e,r,n)){var a=tn(e,n+r.length|0),o,s=a;if((s==null?null:new st(s))==null)return!0;o=a;var l=o;return!(l===95||97<=l&&l<=122||65<=l&&l<=90||48<=l&&l<=57)}return!1}function Bc(t,e,n){var r="tfn-"+t.ip_1.so_1+t.cp_1.so_1+t.jp_1;bt(e,n,r);var a=t.qp(e,n);return a}function Yg(t,e,n){var r=n,a=Bc(t,e,r);r=r+a.a()|0,r=r+t.yo_1.vo(e,r).xo_1|0;var o=Jg(t,e,r);r=r+o.a()|0,r=r+t.yo_1.vo(e,r).xo_1|0;var s=Bc(t,e,r),l,f;if(I(o.value,os())||I(o.value,Ou())?f=s instanceof gt:f=!1,f){var c;try{c=qy(s.vd_1)}catch(m){var h;if(m instanceof xn){var d=m;oe(e,r,"valid primitive string regex",d)}else throw m;c=h}var v=c;l=s.copy(u,u,u,v)}else l=s;var g=l;return r=r+g.a()|0,new ht(n,r,a,o,g)}function Xg(t,e,n){var r=n;r=r+t.yo_1.vo(e,r).xo_1|0;var a=ju().allSubClasses,o;t:{for(var s=a.h();s.i();){var l=s.j();if(ns(e,l.key,n)){o=l;break t}}o=null}var f=o,c;f==null?oe(e,n,"LogicalOperator"):c=f;var h=c;return new Qt(r,r+h.key.length|0,h)}function Zg(t,e,n){var r=n;r=r+t.yo_1.vo(e,r).xo_1|0,bt(e,r,"!");var a=r;r=r+1|0,bt(e,r,"(");var o=t.rp(e,r,!0);return r=r+o.a()|0,new ee(a,o)}function ty(t,e,n){for(var r=e,a="";r<P(t)&&Je(n,O(t,r));)a=a+Vt(O(t,r)),r=r+1|0;return new Pt(a,r-e|0)}function ey(t,e,n){return bt(t,e,n,"whitespace"),at().yo_1.vo(t,e)}function ny(t,e,n){var r=e,a=tn(t,r),o,s=a;if((s==null?null:new st(s))!=null?o=!Je(n,a):o=!1,o)return new Pt("");bt(t,r,n,"*0-9a-zA-Z_");var l=Vt(O(t,r));if(r=r+1|0,l==="*")return new Pt(l,r-e|0);var f="1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_.";t:for(;r<P(t);){if(O(l,(r-e|0)-1|0)===46&&bt(t,r,n,"[0-9a-zA-Z_]"),Je(f,O(t,r)))l=l+Vt(O(t,r));else break t;r=r+1|0}return new Pt(l,r-e|0)}function ry(t){return t.key}function iy(t,e,n){var r=ls().allSubClasses,a;t:{for(var o=r.h();o.i();){var s=o.j();if(ns(t,s.key,e)){a=s;break t}}a=null}var l=a,f;l==null?oe(t,e,"ConnectOperator"):f=l;var c=f;return new Pt(c,c.key.length)}function ay(t,e,n){var r=e;bt(t,r,n,"number");for(var a="";r<P(t)&&Je(n,O(t,r));)a=a+Vt(O(t,r)),r=r+1|0;var o;try{o=fm(a)}catch(l){var s;if(l instanceof Ci)oe(t,e,"valid format number");else throw l;o=s}return new Pt(o,r-e|0)}function oy(t,e,n){var r=e;bt(t,r,n);var a=O(t,r),o;a===43?(r=r+1|0,o=1):a===45?(r=r+1|0,o=-1):o=1;var s=o;r=r+at().yo_1.vo(t,r).xo_1|0,bt(t,r,at().cp_1.so_1+"n");var l;if(Je(at().cp_1.so_1,O(t,r))){var f=at().cp_1.vo(t,r);r=r+f.xo_1|0,l=f.wo_1}else l=1;var c=D(l,s);return r<P(t)&&O(t,r)===110?(r=r+1|0,new Pt(new An(1,c),r-e|0)):new Pt(new An(0,c),r-e|0)}function sy(t,e,n){var r=e;bt(t,r,n);var a=qt();if(O(t,r)===40){for(r=r+1|0,r=r+at().yo_1.vo(t,r).xo_1|0,bt(t,r,at().dp_1.so_1);O(t,r)!==41;){a.m()>0&&bt(t,r,"+-");var o=at().dp_1.vo(t,r);a.f(o),r=r+o.xo_1|0,r=r+at().yo_1.vo(t,r).xo_1|0,r>=P(t)&&bt(t,r,")")}r=r+1|0}else{var s=at().dp_1.vo(t,r);a.f(s),r=r+s.xo_1|0}for(var l=wh(),f=a.h();f.i();){var c=f.j(),h=c.wo_1,d=h.pc(),v=h.qc(),g=l.t1(d),m=(g==null?0:g)+v|0;l.u3(d,m)}for(var p=d0(l.m()),_=l.u1().h();_.i();){var y=_.j();y.q1()>1&&oe(t,e,"power must be 0 or 1");var C=y.r1();p.u3(ft,C)}var b;try{var x=l.t1(1),S=x==null?0:x,T=l.t1(0);b=new Mt(S,T==null?0:T)}catch(Y){var U;if(Y instanceof xn)oe(t,e,"valid polynomialExpression");else throw Y;b=U}var G=b;return new Pt(G,r-e|0)}function ly(t,e,n){var r=e;bt(t,r,"("),r=r+1|0;for(var a=qt();r<P(t)&&O(t,r)!==41;){r=r+at().yo_1.vo(t,r).xo_1|0;var o=at().cp_1.vo(t,r);a.l()?o.wo_1<=0&&oe(t,r,"positive integer"):o.wo_1<=ba(a)&&oe(t,r,">"+ba(a)),r=r+o.xo_1|0,a.f(o.wo_1),r=r+at().yo_1.vo(t,r).xo_1|0;var s=tn(t,r);I(s==null?null:new st(s),new st(44))&&(r=r+1|0,r=r+at().yo_1.vo(t,r).xo_1|0,bt(t,r,at().cp_1.so_1+")"))}return bt(t,r,")"),r=r+1|0,new Pt(new Ae(a),r-e|0)}function uy(t,e,n){var r=e,a;if(Gg(at(),fn(t,e,P(t)))){var o=at().fp_1.vo(t,r);r=r+o.xo_1|0,a=new Pt(o.wo_1,r-e|0)}else{var s=at().ep_1.vo(t,e);r=r+s.xo_1|0,a=new Pt(s.wo_1,r-e|0)}return a}function cy(t,e,n){var r=e,a=at().bp_1.vo(t,r);r=r+a.xo_1|0;var o=null;r<P(t)&&Je(at().gp_1.so_1,O(t,r))&&(o=at().gp_1.vo(t,r),r=r+o.xo_1|0);var s=o,l=s==null?null:s.wo_1;return new Pt(new ve(a.wo_1,l==null?new Mt:l),r-e|0)}function fy(t,e,n){var r=e;bt(t,r,n);var a=O(t,r);r=r+1|0,r>=P(t)&&oe(t,r,"any char");var o="";t:for(;O(t,r)!==a;){if(r>=(P(t)-1|0)){bt(t,r,Vt(a));break t}var s=O(t,r),l=je(s);if(0<=l&&l<=31&&oe(t,r,"0-1f escape char"),O(t,r)===92){r=r+1|0,bt(t,r);var f=o,c=O(t,r),h;if(c===92)h=92;else if(c===39)h=39;else if(c===34)h=34;else if(c===96)h=96;else if(c===110)h=10;else if(c===114)h=13;else if(c===116)h=9;else if(c===98)h=8;else if(c===120){var d=0;if(d<2)do d=d+1|0,r=r+1|0,bt(t,r,"0123456789abcdefABCDEF");while(d<2);var v=(r-2|0)+1|0,g=r+1|0,m=z(fn(t,v,g));h=Ea(Ac(m,16))}else if(c===117){var p=0;if(p<4)do p=p+1|0,r=r+1|0,bt(t,r,"0123456789abcdefABCDEF");while(p<4);var _=(r-4|0)+1|0,y=r+1|0,C=z(fn(t,_,y));h=Ea(Ac(C,16))}else oe(t,r,"escape char");o=f+Vt(h)}else o=o+Vt(O(t,r));r=r+1|0}return r=r+1|0,new Pt(o,r-e|0)}function hy(t,e,n){var r=e;bt(t,r,n);var a=Vt(O(t,r));for(r=r+1|0;r<P(t)&&Je(at().kp_1,O(t,r));)O(t,r)===46&&bt(t,r+1|0,n),a=a+Vt(O(t,r)),r=r+1|0;return new Pt(a,r-e|0)}function dy(t,e,n){var r=e;bt(t,r,n),r=r+1|0,r=r+at().yo_1.vo(t,r).xo_1|0;var a=at().sp(t,r);return r=r+a.a()|0,bt(t,r,"]"),r=r+1|0,new Pt(a,r-e|0)}function vy(t,e,n){var r=e,a=!1,o=tn(t,r);I(o==null?null:new st(o),new st(64))&&(a=!0,r=r+1|0);var s=at().ap_1.vo(t,r);r=r+s.xo_1|0;for(var l=qt();r<P(t)&&O(t,r)===91;){var f=at().mp_1.vo(t,r);r=r+f.xo_1|0,l.f(f.wo_1)}return s.xo_1===0&&l.m()===0&&oe(t,r,"["),new Pt(new le(a,s.wo_1,l),r-e|0)}function py(t,e,n){var r=e;r=r+at().yo_1.vo(t,r).xo_1|0;var a=at().np_1.vo(t,r);r=r+a.xo_1|0;var o=qt();t:for(;r<P(t)&&Je(at().yo_1.so_1,O(t,r));){if(r=r+at().zo_1.vo(t,r).xo_1|0,r>=P(t))break t;var s;if(Je(at().hp_1.so_1,O(t,r))){var l=at().hp_1.vo(t,r);r=r+l.xo_1|0,r=r+at().zo_1.vo(t,r).xo_1|0,s=l.wo_1}else s=new ve(u,new Mt(1,0));var f=s,c=at().np_1.vo(t,r);r=r+c.xo_1|0,o.f(Rc(f,c.wo_1))}return new Pt(Rc(a.wo_1,o),r-e|0)}function _y(t,e,n){return e!==P(t)&&oe(t,e,"EOF"),new Pt(ft,0)}function so(){Ml=this;var t=this;t.yo_1=new Wt(` \r
|
|
270
|
-
`,ty);var e=this;e.zo_1=new Wt(` \r
|
|
271
|
-
`,ey);var n=this;n.ap_1=new Wt("*1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_",ny);var r=this,a=ls().allSubClasses,o=In(a,"",u,u,u,u,ry);r.bp_1=new Wt(o,iy);var s=this;s.cp_1=new Wt("1234567890",ay);var l=this;l.dp_1=new Wt("+-1234567890n",oy);var f=this;f.ep_1=new Wt("(0123456789n",sy);var c=this;c.fp_1=new Wt(u,ly);var h=this;h.gp_1=new Wt(this.ep_1.so_1,uy);var d=this;d.hp_1=new Wt(this.bp_1.so_1,cy);var v=this;v.ip_1=new Wt("`'\"",fy),this.jp_1="_"+In(ri(97,122),"")+In(ri(65,90),""),this.kp_1=this.jp_1+Vt(46)+In(ri(48,57),"");var g=this;g.lp_1=new Wt(this.jp_1,hy);var m=this;m.mp_1=new Wt("[",dy);var p=this;p.np_1=new Wt(u,vy);var _=this;_.op_1=new Wt(u,py);var y=this;y.pp_1=new Wt(u,_y)}i(so).qp=function(t,e){var n=e;if(n=n+this.yo_1.vo(t,n).xo_1|0,n>=P(t)&&oe(t,n,"Variable"),qs(this,t,n,"true"))return new pe(n,!0);if(qs(this,t,n,"false"))return new pe(n,!1);if(qs(this,t,n,"null"))return new Te(n);if(Je(this.ip_1.so_1,O(t,n))){var r=this.ip_1.vo(t,n);return n=n+r.xo_1|0,new gt(n-r.xo_1|0,n,r.wo_1)}if(O(t,n)===45){n=n+1|0;var a=this.cp_1.vo(t,n);return n=n+a.xo_1|0,new Jt((n-a.xo_1|0)-1|0,n,-a.wo_1|0)}if(Je(this.cp_1.so_1,O(t,n))){var o=this.cp_1.vo(t,n);return n=n+o.xo_1|0,new Jt(n-o.xo_1|0,n,o.wo_1)}var s=null;t:for(;n<P(t);){n=n+this.yo_1.vo(t,n).xo_1|0;var l=tn(t,n),f=l;if(I(f==null?null:new st(f),new st(40))){var c=n;if(n=n+1|0,n=n+this.yo_1.vo(t,n).xo_1|0,s!=null){s instanceof St&&oe(t,n,"Variable");for(var h=qt();n<P(t)&&O(t,n)!==41;){var d=this.qp(t,n);h.f(d),n=n+d.a()|0;var v=tn(t,n);I(v==null?null:new st(v),new st(44))&&(n=n+1|0,n=n+this.yo_1.vo(t,n).xo_1|0)}n=n+this.yo_1.vo(t,n).xo_1|0,bt(t,n,")"),n=n+1|0,s=new St(s.tc(),n,s,h)}else{var g=this.qp(t,n);n=n+g.a()|0,n=n+this.yo_1.vo(t,n).xo_1|0,bt(t,n,")"),n=n+1|0;var m=n,p;return g instanceof pe?p=g.copy(c):g instanceof Jt?p=g.copy(c,m):g instanceof Te?p=g.copy(c):g instanceof gt||g instanceof St?p=g.copy(c,m):g instanceof xt?p=g.copy(c):g instanceof mt?p=g.copy(c,m):qn(),p}}else{var _=l;if(I(_==null?null:new st(_),new st(46))){n=n+1|0,s instanceof Re||oe(t,n,"Variable"),Tl(this,tn(t,n),!0)||oe(t,n,"Variable");var y;e:{var C=dc(t,n),b=0,x=P(C);if(b<x)do{var S=b;b=b+1|0;var T=O(C,S);if(!Tl(at(),T,!1)){y=fn(C,0,S);break e}}while(b<x);y=fn(C,0,P(C))}var U=z(y);s=new mt(s.tc(),n+U.length|0,s,U),n=n+U.length|0}else if(Dc(this,l)){var G;e:{var Y=dc(t,n),vt=0,Ot=P(Y);if(vt<Ot)do{var K=vt;vt=vt+1|0;var Zt=O(Y,K);if(!Dc(at(),Zt)){G=fn(Y,0,K);break e}}while(vt<Ot);G=fn(Y,0,P(Y))}var W=z(G);s=new xt(n,W),n=n+W.length|0}else break t}}return s==null&&oe(t,n,"Variable"),s};i(so).rp=function(t,e,n){var r=e;r=r+this.yo_1.vo(t,r).xo_1|0;var a=qt();t:for(;r<P(t)&&O(t,r)!==93&&O(t,r)!==41;){var o=O(t,r);if(o===40){var s=r;if(!a.l()){var l=ba(a),f;if(l instanceof Qt){var c=l.value;f=c instanceof Pn}else f=!1;if(!f){for(var h=0;(r-1|0)>=h&&Je(this.yo_1.so_1,O(t,(r-1|0)-h|0));)h=h+1|0;oe(t,(r-h|0)-l.a()|0,"LogicalOperator")}}r=r+1|0;var d=this.sp(t,r);r=r+d.a()|0;var v=d;bt(t,r,")"),r=r+1|0;var g=r,m;if(v instanceof ht||v instanceof dt?m=v.copy(s,g):v instanceof ee?m=v.copy(s):qn(),a.f(m),n)break t}else if(Je("|&",o)){var p=Xg(this,t,r);r=r+p.a()|0,a.f(p),r=r+this.yo_1.vo(t,r).xo_1|0,bt(t,r,"(!"+this.lp_1.so_1)}else if(o===33){var _=Zg(this,t,r);r=r+_.a()|0,a.f(_),r=r+this.yo_1.vo(t,r).xo_1|0}else{var y=Yg(this,t,r);r=r+y.a()|0,a.f(y)}r=r+this.yo_1.vo(t,r).xo_1|0}if(a.l()&&oe(t,r-e|0,"Expression"),a.m()===1){var C=Hi(a);return C instanceof He?C:$()}for(var b=Ul(a),x=0;x<b.m();){var S=b.k(x),T;if(S instanceof Qt?T=I(S.value,zu()):T=!1,T){var U=b.k(x-1|0),G=U instanceof He?U:$(),Y=b.k(x+1|0),vt=Y instanceof He?Y:$(),Ot=S instanceof Qt?S:$();b.p2(x,new dt(G.tc(),vt.uc(),G,Ot,vt)),b.x2(x-1|0),b.x2((x+1|0)-1|0)}else x=x+1|0}for(;b.m()>1;){var K=b.k(0),Zt=K instanceof He?K:$(),W=b.k(1),jt=W instanceof Qt?W:$(),Bt=b.k(2),Ue=Bt instanceof He?Bt:$();b.p2(1,new dt(Zt.tc(),Ue.uc(),Zt,jt,Ue)),b.x2(0),b.x2(1)}var fe=Hi(b);return fe instanceof He?fe:$()};i(so).sp=function(t,e,n,r){return n=n===u?!1:n,r===u?this.rp(t,e,n):r.rp.call(this,t,e,n)};var Ml;function at(){return Ml==null&&new so,Ml}function Td(t){var e=0;e=e+at().yo_1.vo(t,e).xo_1|0;var n=at().op_1.vo(t,e);e=e+n.xo_1|0,e=e+at().yo_1.vo(t,e).xo_1|0,e=e+at().pp_1.vo(t,e).xo_1|0;var r=n.wo_1,a=qt(),o=qt();a.f(r.nc_1);for(var s=r.oc_1.h();s.i();){var l=s.j();a.f(l.oc_1),o.f(l.nc_1)}for(var f=Vh([new ne(Hi(a))]),c=0,h=o.h();h.i();){var d=h.j(),v=c;c=v+1|0;var g=To(v),m=new qe(d,ba(f)),p=new ne(a.k(g+1|0),m);f.f(p)}return new Ee(t,ba(f))}function my(t){Ay(t)}function Xr(t,e,n,r,a,o){this.booleanType=t,this.intType=e,this.stringType=n,this.contextType=r,this.nodeType=a,this.globalType=o}i(Xr).tp=function(){return this.booleanType};i(Xr).up=function(){return this.intType};i(Xr).vp=function(){return this.stringType};i(Xr).wp=function(){return this.contextType};i(Xr).xp=function(){return this.nodeType};i(Xr).yp=function(){return this.globalType};function gy(t){t=t===u?!1:t;var e=new Ht(Pa()),n=new Ht(Ra()),r=new Ht(La()),a=new Ht(new De("node")),o=new Ht(new De("context")),s=new Ht(new De("global")),l=e,f=new J("toInt",n),c=[e],h=new J("or",e,c),d=[e];l.methods=rr([[f,h,new J("and",e,d),new J("not",e)],Ts(e,n,r,a,o,"ifElse",e,2)]);var v=n,g=new J("toString",r),m=[n],p=new J("toString",r,m),_=[n],y=new J("plus",n,_),C=[n],b=new J("minus",n,C),x=[n],S=new J("times",n,x),T=[n],U=new J("div",n,T),G=[n],Y=new J("rem",n,G),vt=[n],Ot=new J("more",e,vt),K=[n],Zt=new J("moreEqual",e,K),W=[n],jt=new J("less",e,W),Bt=[n];v.methods=[g,p,y,b,S,U,Y,Ot,Zt,jt,new J("lessEqual",e,Bt)];var Ue=r;Ue.props=[new rt("length",n)];var fe=r,We=[n],mn=new J("get",r,We),Rn=[n],Ar=new J("at",r,Rn),R=[n],ut=new J("substring",r,R),_t=[n,n],zt=new J("substring",r,_t),he=new J("toInt",n),Jn=[n],Yn=new J("toInt",n,Jn),Xn=[r],Zr=new J("indexOf",n,Xn),fa=[r,n];fe.methods=[mn,Ar,ut,zt,he,Yn,Zr,new J("indexOf",n,fa)];var ha=a,ti;t?ti=[new rt("_id",n),new rt("_pid",n)]:ti=[],ha.props=rr([ti,[new rt("id",r),new rt("vid",r),new rt("name",r),new rt("text",r),new rt("desc",r),new rt("clickable",e),new rt("focusable",e),new rt("checkable",e),new rt("checked",e),new rt("editable",e),new rt("longClickable",e),new rt("visibleToUser",e),new rt("left",n),new rt("top",n),new rt("right",n),new rt("bottom",n),new rt("width",n),new rt("height",n),new rt("childCount",n),new rt("index",n),new rt("depth",n),new rt("parent",a)]]);var ei=a,lo=[n];ei.methods=[new J("getChild",a,lo)];var Tr=o,Ln=a.methods,vs=[n];Tr.methods=rr([Ln,[new J("getPrev",o,vs)]]);var ps=o;ps.props=rr([a.props,[new rt("prev",o),new rt("current",a)]]);var qi=s;qi.methods=rr([o.methods,Ts(e,n,r,a,o,"equal",e,2),Ts(e,n,r,a,o,"notEqual",e,2)]);var _s=s;return _s.props=o.props.slice(),new Xr(e,n,r,o,a,s)}function yy(t,e,n){var r;switch(e){case"plus":r=t+Oe(n)|0;break;case"minus":r=t-Oe(n)|0;break;case"times":r=D(t,Oe(n));break;case"div":var a=Oe(n);if(a===0)return null;r=t/a|0;break;case"rem":var o=Oe(n);if(o===0)return null;r=t%o|0;break;case"more":r=t>Oe(n);break;case"moreEqual":r=t>=Oe(n);break;case"less":r=t<Oe(n);break;case"lessEqual":r=t<=Oe(n);break;default:r=null;break}return r}function wy(t,e,n){return Sy(t,e,n)}function by(t,e,n){switch(e){case"toInt":return t?1:0;case"not":return!t;default:return null}}function ky(t,e){return $y(t,e)}function Cy(t,e){e=e===u?34:e;var n=Fh(t.length+2|0);n.b6(e);for(var r=0;r<P(t);){var a=O(t,r);r=r+1|0;var o=a===e?e:a===10?110:a===13?114:a===9?116:a===8?98:a===92?92:null,s=o;if((s==null?null:new st(s))!=null){var l=o;n.a6("\\"+Gt(l==null?null:new st(l)))}else{var f=je(a);if(0<=f&&f<=15){var c=je(a);n.a6("\\x0"+qc(c,16))}else if(16<=f&&f<=31){var h=je(a);n.a6("\\x"+qc(h,16))}else n.b6(a)}}return n.b6(e),n.toString()}function As(t,e,n){if(wu(t,e)&&Wh(t,n)&&t.length>=(e.length+n.length|0)){var r=e.length,a=t.length-n.length|0;if(r<a)do{var o=r;if(r=r+1|0,Je("\\^$.?*|+()[]{}",O(t,o)))return null}while(r<a);return z(fn(t,e.length,t.length-n.length|0))}return null}function xy(t){var e=As(t,"(?is)",".*");if(e!=null)return Ey(e);var n=As(t,"(?is).*",".*");if(n!=null)return Ny(n);var r=As(t,"(?is).*","");return r!=null?Iy(r):null}function Oe(t,e){e=e===u?0:e;var n=t.k(e);return typeof n=="number"?n:$()}function Sy(t,e,n){var r;switch(e){case"get":var a=tn(t,Oe(n));r=Gt(a==null?null:new st(a));break;case"at":var o=Oe(n),s;if(o<0){var l=tn(t,P(t)+o|0);s=Gt(l==null?null:new st(l))}else{var f=tn(t,o);s=Gt(f==null?null:new st(f))}r=s;break;case"substring":var c;switch(n.m()){case 1:var h=Oe(n);if(h<0)return null;if(h>=P(t))return"";var d=P(t);c=z(fn(t,h,d));break;case 2:var v=Oe(n);if(v<0)return null;if(v>=P(t))return"";var g=Oe(n,1);if(g<v)return null;var m=ka(g,P(t));c=z(fn(t,v,m));break;default:c=null;break}r=c;break;case"toInt":var p;switch(n.m()){case 0:p=cd(z(t));break;case 1:var _=Oe(n);if(!(2<=_&&_<=36))return null;p=Au(z(t),_);break;default:p=null;break}r=p;break;case"indexOf":var y;switch(n.m()){case 1:var C=n.k(0),b=_e(C)?C:null,x;if(b==null)return null;x=b;var S=x;y=rl(t,z(S));break;case 2:var T=n.k(0),U=_e(T)?T:null,G;if(U==null)return null;G=U;var Y=G,vt=Oe(n,1);y=rl(t,z(Y),vt);break;default:y=null;break}r=y;break;default:r=null;break}return r}function $y(t,e){return e==="length"?P(t):null}function Ts(t,e,n,r,a,o,s,l){for(var f=0,c=nr(Array(l),null);f<l;)c[f]=t,f=f+1|0;for(var h=new J(o,s,c),d=0,v=nr(Array(l),null);d<l;)v[d]=e,d=d+1|0;for(var g=new J(o,s,v),m=0,p=nr(Array(l),null);m<l;)p[m]=n,m=m+1|0;for(var _=new J(o,s,p),y=0,C=nr(Array(l),null);y<l;)C[y]=r,y=y+1|0;for(var b=new J(o,s,C),x=0,S=nr(Array(l),null);x<l;)S[x]=a,x=x+1|0;return[h,g,_,b,new J(o,s,S)]}function Ey(t){return function(e){return Tu(e,t,!0)}}function Ny(t){return function(e){return Mu(e,t,!0)}}function Iy(t){return function(e){return es(e,t,!0)}}var $o;function qy(t){if($o!==null){var e=Me($o)(t);return Ty(e)}if(t.length>=4&&wu(t,"(?")){var n=2,r=t.length;if(n<r)t:do{var a=n;n=n+1|0;var o=O(t,a);if(!(97<=o&&o<=122)&&!(65<=o&&o<=90))if(o===41){var s=xp(fn(t,2,a));s.f(new st(103)),s.f(new st(117));var l=In(s,""),f=a+1|0,c=t.substring(f),h=new RegExp(c,l);return My(h)}else break t}while(n<r)}var d=vm(t);return Py(d)}function Ay(t){$o=t}function Ty(t){return function(e){return t(z(e))}}function My(t){return function(e){zh(t);var n=t.exec(z(e));return n!=null&&n.index===0&&t.lastIndex===P(e)}}function Py(t){return function(e){return t.w8(e)}}i(He).a=Pu;V(i(He),"binaryExpressions",function(){return this.bd()});V(i(ht),"properties",i(ht).cd);V(i(ht),"methods",i(ht).dd);V(i(Aa),"allSubClasses",i(Aa).kd);V(i(Ni),"minOffset",function(){return this.yd()});V(i(Ni),"maxOffset",function(){return this.zd()});V(i(Ta),"allSubClasses",i(Ta).kd);V(i(Lt),"message",function(){return this.i7()});V(i(ze),"value",function(){return this.r1()});V(i(Ma),"allSubClasses",i(Ma).kd);i(Qt).a=Pu;V(i(le),"binaryExpressions",i(le).bd);V(i(ne),"length",i(ne).a);V(i(ue),"cause",function(){return this.j7()});i(re).a=Pu;V(i(re),"value",function(){return this.r1()});V(i(re),"type",function(){return this.hf()});V(i(re),"properties",function(){return this.cd()});V(i(re),"methods",function(){return this.dd()});qd=new hs;Ad=new Du;$o=null;V(Q,"Companion",as);V(Q,"Equal",ar);V(Q,"NotEqual",pd);V(Q,"Start",Yr);V(Q,"NotStart",_d);V(Q,"Include",Ru);V(Q,"NotInclude",md);V(Q,"End",Lu);V(Q,"NotEnd",gd);V(Q,"Less",oo);V(Q,"LessEqual",yd);V(Q,"More",wd);V(Q,"MoreEqual",bd);V(Q,"Matches",os);V(Q,"NotMatches",Ou);V(ke,"Companion",ls);V(ke,"BeforeBrother",kd);V(ke,"AfterBrother",Cd);V(ke,"Ancestor",xo);V(ke,"Child",xd);V(ke,"Descendant",us);ze.Id=hn;ze.Vid=dn;ze.Text=vn;V(Pn,"Companion",ju);V(Pn,"AndOperator",zu);V(Pn,"OrOperator",Fu);V(Ee,"Companion",yg);V(kt,"Companion",$g);V(ln,"BooleanType",Pa);V(ln,"IntType",Ra);V(ln,"StringType",La);ln.ObjectType=De;re.Variable=Re;re.Identifier=xt;re.MemberExpression=mt;re.CallExpression=St;re.LiteralExpression=Ye;re.NullLiteral=Te;re.BooleanLiteral=pe;re.IntLiteral=Jt;re.StringLiteral=gt;async function Ry(t){t instanceof Promise&&(t=await t);const e={"kotlin.captureStackTrace":()=>new Error().stack,"kotlin.wasm.internal.throwJsError":(o,s,l)=>{const f=new Error;throw f.message=o,f.name=s,f.stack=l,f},"kotlin.wasm.internal.stringLength":o=>o.length,"kotlin.wasm.internal.jsExportStringToWasm":(o,s,l,f)=>{const c=new Uint16Array(r.memory.buffer,f,l);let h=0,d=s;for(;h<l;)c.set([o.charCodeAt(d)],h),d++,h++},"kotlin.wasm.internal.importStringFromWasm":(o,s,l)=>{const f=new Uint16Array(r.memory.buffer,o,s),c=String.fromCharCode.apply(null,f);return l==null?c:l+c},"kotlin.wasm.internal.getJsEmptyString":()=>"","kotlin.wasm.internal.isNullish":o=>o==null,"kotlin.wasm.internal.getJsTrue":()=>!0,"kotlin.wasm.internal.getJsFalse":()=>!1,"kotlin.random.initialSeed":()=>Math.random()*Math.pow(2,32)|0,"li.songe.matches.__convertKotlinClosureToJsClosure_((String)->Boolean)":o=>s=>r["__callFunction_((String)->Boolean)"](o,s)};let n,r;const a={js_code:e};try{if(t instanceof Response)n=(await WebAssembly.instantiateStreaming(t,a)).instance;else{const o=new WebAssembly.Module(t);n=new WebAssembly.Instance(o,a)}}catch(o){throw o instanceof WebAssembly.CompileError&&console.error(`Please make sure that your runtime environment supports the latest version of Wasm GC and Exception-Handling proposals.
|
|
272
|
-
For more information, see https://kotl.in/wasm-help
|
|
273
|
-
`),o}return r=n.exports,r._initialize(),{instance:n,exports:r}}const Ly="https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724939132543/files/dist/assets/mod-BHC4TAjm.wasm",Oy=Ry(fetch(Ly)).then(t=>{const e=t.exports.toMatches;my(e),_o.wasmSupported=!0,console.log("use wasm matches")}).catch(t=>{_o.wasmSupported=!1,console.error(t),console.log("use js matches")}),Kc=(t,e)=>{var n,r;return e=="_id"?t.id:e=="_pid"?t.pid:e=="parent"?(n=t.parent)!=null?n:null:(r=Reflect.get(t.attr,e))!=null?r:null},Uc=(t,e,n)=>{var r;if(e==="getChild"){const a=n.asJsReadonlyArrayView()[0];return(r=t.children[a])!=null?r:null}return null},Ms=kt.Companion.multiplatformBuild((t,e)=>typeof t=="string"?ky(t,e):t instanceof te?e==="prev"?t.prev:e==="current"?t.current:Kc(t.current,e):ac(t)?Kc(t,e):null,(t,e,n)=>{if(typeof t=="number")return yy(t,e,n);if(typeof t=="boolean")return by(t,e);if(typeof t=="string")return wy(t,e,n);if(t instanceof te){if(e==="getPrev"){const r=n.asJsReadonlyArrayView()[0];return Number.isSafeInteger(r)?t.getPrev(r):null}return Uc(t.current,e,n)}return ac(t)?Uc(t,e,n):null},t=>t.attr.name,t=>t.children,t=>t.parent),jy=gy(!0).globalType,zy=new Fe(!1,!1),vo=t=>{var r;const e=Ee.Companion.parse(t);for(const a of e.binaryExpressions)if(a.operator.value.key=="~="&&!_o.wasmSupported&&!Xc.ignoreWasmWarn){_o.wasmErrorDlgVisible=!0;break}return Fy(e),{s:e,targetIndex:e.targetIndex,connectKeys:e.connectWrappers.map(a=>a.segment.operator.key),canQf:!!((r=e.quickFindValue)!=null&&r.value),qfIdValue:e.quickFindValue instanceof ze.Id?e.quickFindValue.value:null,qfVidValue:e.quickFindValue instanceof ze.Vid?e.quickFindValue.value:null,qfTextValue:e.quickFindValue instanceof ze.Text?e.quickFindValue.value:null,canCopy:!e.binaryExpressions.some(a=>a.properties.some(o=>o.startsWith("_"))),toString:()=>e.stringify(),match:a=>{var o;return(o=e.match(a,Ms,zy))!=null?o:void 0},querySelectorAll:a=>Ms.querySelectorAllArray(a,e),querySelectorTrackAll:a=>Ms.querySelectorAllContextArray(a,e).map(o=>o.toArray())}},Fy=t=>{const e=t.checkType(jy);if(e!=null)throw e instanceof xe?new Error("不匹配表达式类型:"+e.exception.stringify(),{cause:e}):e instanceof on?new Error("不匹配操作符类型:"+e.exception.stringify(),{cause:e}):e instanceof se?new Error("不匹配参数类型:"+e.call.stringify(),{cause:e}):e instanceof en?new Error("未知属性:"+e.value.stringify(),{cause:e}):e instanceof Ve?new Error("未知方法:"+e.value.stringify(),{cause:e}):e instanceof nn?new Error("未知属性:"+e.value.stringify(),{cause:e}):e instanceof Qe?new Error("未知方法:"+e.value.property,{cause:e}):e instanceof rn?new Error("未知方法参数:"+e.value.stringify(),{cause:e}):e instanceof an?new Error("未知方法参数:"+e.value.stringify(),{cause:e}):new Error("未知错误:"+e.message,{cause:e})};var Bu={},ds={};Object.defineProperty(ds,"__esModule",{value:!0});function Dy(t){return String.fromCharCode(parseInt(t.slice(1),16))}function By(t){return btoa(encodeURIComponent(t).replace(/%[0-9A-F]{2}/g,Dy))}ds.encode=By;function Ky(t){return`%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`}function Uy(t){return decodeURIComponent(Array.from(atob(t),Ky).join(""))}ds.decode=Uy;Object.defineProperty(Bu,"__esModule",{value:!0});const Md=ds;function Wy(t){return Md.decode(t.replace(/\-/g,"+").replace(/_/g,"/"))}var Hy=Bu.decode=Wy;function Vy(t){return Md.encode(t).replace(/\//g,"_").replace(/\+/g,"-").replace(/=+$/,"")}var Qy=Bu.encode=Vy;const Ku=sf(),Pd=Z(()=>Ku.width.value/100),Rd=Z(()=>Math.max(1200,Ku.width.value));Z(()=>Math.max(700,Ku.height.value));const Gy={"bg-white":"","b-1px":"","b-solid":"","b-gray-200":"","rounded-4px":"","p-8px":""},Jy={flex:"","m-b-4px":"","pr-4px":""},Yy=A("svg",{viewBox:"0 0 24 24"},[A("path",{fill:"currentColor",d:"M6 13v-2h12v2z"})],-1),Xy=A("svg",{viewBox:"0 0 32 32"},[A("path",{d:"M29 27.586l-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29zM4 13a9 9 0 1 1 9 9a9.01 9.01 0 0 1-9-9z",fill:"currentColor"})],-1),Zy=A("div",{"p-5px":""},null,-1),tw={key:0,underline:"","decoration-1":"","m-r-4px":"",title:"查询数量"},ew=["title"],nw=A("svg",{viewBox:"0 0 24 24"},[A("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z",fill:"currentColor"})],-1),rw=A("div",{"p-l-4px":""},null,-1),iw=A("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[A("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81c1.66 0 3-1.34 3-3s-1.34-3-3-3s-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65c0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z",fill:"currentColor"})],-1),aw=A("div",{"p-l-4px":""},null,-1),ow=A("svg",{viewBox:"0 0 24 24"},[A("g",{fill:"none"},[A("path",{d:"M12 1.75a3.25 3.25 0 0 1 3.245 3.066L15.25 5h5.25a.75.75 0 0 1 .102 1.493L20.5 6.5h-.796l-1.28 13.02a2.75 2.75 0 0 1-2.561 2.474l-.176.006H8.313a2.75 2.75 0 0 1-2.714-2.307l-.023-.174L4.295 6.5H3.5a.75.75 0 0 1-.743-.648L2.75 5.75a.75.75 0 0 1 .648-.743L3.5 5h5.25A3.25 3.25 0 0 1 12 1.75zm6.197 4.75H5.802l1.267 12.872a1.25 1.25 0 0 0 1.117 1.122l.127.006h7.374c.6 0 1.109-.425 1.225-1.002l.02-.126L18.196 6.5zM13.75 9.25a.75.75 0 0 1 .743.648L14.5 10v7a.75.75 0 0 1-1.493.102L13 17v-7a.75.75 0 0 1 .75-.75zm-3.5 0a.75.75 0 0 1 .743.648L11 10v7a.75.75 0 0 1-1.493.102L9.5 17v-7a.75.75 0 0 1 .75-.75zm1.75-6a1.75 1.75 0 0 0-1.744 1.606L10.25 5h3.5A1.75 1.75 0 0 0 12 3.25z",fill:"currentColor"})])],-1),sw=A("svg",{viewBox:"0 0 24 24"},[A("path",{fill:"currentColor",d:"M5 21V8.825Q4.125 8.5 3.563 7.738T3 6q0-1.25.875-2.125T6 3q1.25 0 2.125.875T9 6q0 .975-.562 1.738T7 8.825V19h4V3h8v12.175q.875.325 1.438 1.088T21 18q0 1.25-.875 2.125T18 21q-1.25 0-2.125-.875T15 18q0-.975.563-1.75T17 15.175V5h-4v16zM6 7q.425 0 .713-.288T7 6q0-.425-.288-.712T6 5q-.425 0-.712.288T5 6q0 .425.288.713T6 7m12 12q.425 0 .713-.288T19 18q0-.425-.288-.712T18 17q-.425 0-.712.288T17 18q0 .425.288.713T18 19m0-1"})],-1),lw=A("svg",{viewBox:"0 0 24 24"},[A("path",{fill:"currentColor",d:"M2 19v-2h10v2zm0-5v-2h5v2zm0-5V7h5v2zm18.6 10l-3.85-3.85q-.6.425-1.312.638T14 16q-2.075 0-3.537-1.463T9 11t1.463-3.537T14 6t3.538 1.463T19 11q0 .725-.213 1.438t-.637 1.312L22 17.6zM14 14q1.25 0 2.125-.875T17 11t-.875-2.125T14 8t-2.125.875T11 11t.875 2.125T14 14"})],-1),uw=Rt({__name:"SearchCard",props:{snapshot:{},rootNode:{},focusNode:{},onUpdateFocusNode:{type:Function,default:ci},onUpdateTrack:{type:Function,default:ci}},setup(t){const e=Zc(),n=t,r=At(""),a=jl([]),o=At([]),s=p=>{const _=Q1(()=>vo(p),C=>typeof C=="string"?C:C instanceof Error&&C.cause instanceof Lt?C.message:"非法选择器");if(a.find(C=>typeof C.selector=="object"&&C.selector.toString()==_.toString())){En.warning("不可重复选择");return}const y=_.querySelectorTrackAll(n.rootNode);if(y.length==0){En.success("没有选择到节点");return}return En.success(`选择到 ${y.length} 个节点`),a.unshift({selector:_,nodes:y,key:Date.now()}),y.length},l=p=>{if(a.find(C=>typeof C.selector=="string"&&C.selector.toString()==p)){En.warning("不可重复搜索");return}const _=[],y=[n.rootNode];for(;y.length>0;){const C=y.pop();Ui(C).includes(p)&&_.push(C),y.push(...[...C.children].reverse())}if(_.length==0){En.success("没有搜索到节点");return}return En.success(`搜索到 ${_.length} 个节点`),a.unshift({selector:p,nodes:_,key:Date.now()}),_.length},f=()=>{const p=a[0],_=p.nodes[0];Array.isArray(_)?typeof p.selector=="object"&&Array.isArray(_)&&n.onUpdateFocusNode(_[p.selector.targetIndex]):n.onUpdateFocusNode(_);const y=new Set(a.map(b=>b.key)),C=o.value.filter(b=>y.has(b));C.push(p.key),o.value=C},c=lc(()=>{const p=r.value.trim();if(p){if(d.value){if(!s(p))return}else if(!l(p))return;f()}});za(async()=>{await Oy;let p=0;e.query.gkd&&(p+=s(Hy(e.query.gkd))||0),e.query.str&&(p+=l(e.query.str)||0),p>0&&f()});const h=lc(async p=>{var U,G,Y;let _=x1[n.snapshot.id];_&&(_=S1(_));const y=Bi[n.snapshot.id],C=y?Zu(y):void 0,b=p.selector,x=p.nodes[0].at(-1),S=[((U=x.quickFind)!=null?U:x.idQf)&&x.attr.id&&b.qfIdValue,((G=x.quickFind)!=null?G:x.idQf)&&x.attr.vid&&b.qfVidValue,((Y=x.quickFind)!=null?Y:x.textQf)&&x.attr.text&&b.qfTextValue].some(Boolean),T={id:n.snapshot.appId,name:tr(n.snapshot).name,groups:[{key:1,name:`[ChangeMe]规则名称-${W1().format("YYYY-MM-DD HH:mm:ss")}`,desc:"[ChangeMe]本规则由GKD网页端审查工具生成",rules:[{quickFind:S||void 0,activityIds:n.snapshot.activityId,matches:b.toString(),exampleUrls:_,snapshotUrls:C}]}]};er(of.stringify(T,void 0,2))}),d=At(!0),v=Z(()=>Bi[n.snapshot.id]),g=p=>{if(!v.value)return;const _=new URL(Zu(Bi[n.snapshot.id]));typeof p.selector=="object"?_.searchParams.set("gkd",Qy(p.selector.toString())):_.searchParams.set("str",p.selector.toString()),er(_.toString())},m=At(!0);return(p,_)=>{const y=B1,C=nf,b=K1,x=Fa,S=Eo,T=af,U=U1,G=Z1,Y=sv,vt=iv;return et(),ae(zn,null,[B(Wi,{initialValue:{top:40,right:Math.max(315,12*E(Pd)+135),width:Math.max(480,E(Rd)*.3)},minWidth:300,sizeDraggable:"",class:"z-1 box-shadow-dim",show:E(m)},{default:q(({onRef:Ot})=>[A("div",Gy,[A("div",Jy,[B(b,{value:E(d),"onUpdate:value":_[0]||(_[0]=K=>Ki(d)?d.value=K:null)},{default:q(()=>[B(C,null,{default:q(()=>[B(y,{value:!1},{default:q(()=>[ye(" 字符搜索 ")]),_:1}),B(y,{value:!0},{default:q(()=>[ye(" 选择器查询 ")]),_:1})]),_:1})]),_:1},8,["value"]),A("div",{"flex-1":"","cursor-move":"",ref:Ot},null,512),B(S,{onClick:_[1]||(_[1]=K=>m.value=!E(m)),text:"",title:"最小化"},{icon:q(()=>[B(x,null,{default:q(()=>[Yy]),_:1})]),_:1})]),B(U,null,{default:q(()=>[B(T,{value:E(r),"onUpdate:value":_[2]||(_[2]=K=>Ki(r)?r.value=K:null),placeholder:E(d)?"请输入选择器":"请输入字符",onKeyup:C1(E(c),["enter"]),inputProps:{class:"gkd_code"}},null,8,["value","placeholder","onKeyup"]),B(S,{onClick:E(c)},{icon:q(()=>[B(x,null,{default:q(()=>[Xy]),_:1})]),_:1},8,["onClick"])]),_:1}),Zy,B(vt,{expandedNames:E(o),"onUpdate:expandedNames":_[3]||(_[3]=K=>Ki(o)?o.value=K:null)},{default:q(()=>[(et(!0),ae(zn,null,wa(E(a),(K,Zt)=>(et(),de(Y,{key:K.key,name:K.key},{header:q(()=>[K.nodes.length>1?(et(),ae("span",tw,Tt(K.nodes.length),1)):ge("",!0),A("span",{"break-all":"",title:typeof K.selector=="object"?"选择器":"搜索字符"},Tt(K.selector.toString()),9,ew)]),"header-extra":q(()=>[typeof K.selector=="object"&&K.selector.canCopy?(et(),de(S,{key:0,size:"small",onClick:xs(W=>E(h)(K),["stop"]),title:"复制规则"},{icon:q(()=>[B(x,null,{default:q(()=>[nw]),_:1})]),_:2},1032,["onClick"])):ge("",!0),rw,E(v)?(et(),de(S,{key:1,size:"small",title:typeof K.selector=="object"?"复制查询链接":"复制搜索链接",onClick:xs(W=>g(K),["stop"])},{icon:q(()=>[B(x,null,{default:q(()=>[iw]),_:1})]),_:2},1032,["title","onClick"])):ge("",!0),aw,B(S,{size:"small",onClick:xs(W=>E(a).splice(Zt,1),["stop"]),title:"删除记录"},{icon:q(()=>[B(x,null,{default:q(()=>[ow]),_:1})]),_:2},1032,["onClick"])]),default:q(()=>[B(C,{style:{"max-height":"400px","overflow-y":"scroll","padding-bottom":"10px"}},{default:q(()=>[typeof K.selector=="string"||K.selector.connectKeys.length===0?(et(!0),ae(zn,{key:0},wa(K.nodes.map(W=>Array.isArray(W)?W[0]:W),W=>(et(),de(S,{key:W.id,onClick:jt=>p.onUpdateFocusNode(W),size:"small",class:Kr({"color-[#00F]":W===p.focusNode})},{default:q(()=>[ye(Tt(E(Ui)(W)),1)]),_:2},1032,["onClick","class"]))),128)):(et(!0),ae(zn,{key:1},wa(K.nodes.map(W=>Array.isArray(W)?W:[W]),(W,jt)=>(et(),de(G,{key:jt},{default:q(()=>[B(S,{size:"small",onClick:Bt=>p.onUpdateTrack({nodes:W,selector:K.selector})},{default:q(()=>[B(x,null,{default:q(()=>[sw]),_:1})]),_:2},1032,["onClick"]),B(S,{onClick:Bt=>p.onUpdateFocusNode(W[K.selector.targetIndex]),size:"small",class:Kr({"color-[#00F]":W[K.selector.targetIndex]===p.focusNode})},{default:q(()=>[ye(Tt(E(Ui)(W[K.selector.targetIndex])),1)]),_:2},1032,["onClick","class"])]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["name"]))),128))]),_:1},8,["expandedNames"])])]),_:1},8,["initialValue","show"]),B(Wi,{initialValue:{bottom:8,right:16},minWidth:300,class:"z-1 box-shadow-dim rounded-1/2 bg-white",show:!E(m)},{default:q(({onRef:Ot,moved:K})=>[A("div",{ref:Ot},[B(S,{onClick:Zt=>{K||(m.value=!E(m))},circle:"",size:"large",title:"搜索面板"},{icon:q(()=>[B(x,null,{default:q(()=>[lw]),_:1})]),_:2},1032,["onClick"])],512)]),_:1},8,["show"])],64)}}}),Wc=[],cw=Rt((t,e)=>{const n=Z(()=>t.tag||"div");return()=>{var o,s,l,f;const r=(((s=(o=e.slots).default)==null?void 0:s.call(o))||Wc).filter(c=>typeof c.type!="symbol"),a=[];if(r.length>0&&a.push(r[0]),r.length>1)for(let c=1;c<r.length;c++){const h=((f=(l=e.slots).gap)==null?void 0:f.call(l,{index:c-1}))||Wc;a.push(...h),a.push(r[c])}return t.virtual?a:L(n.value,t,a)}},{props:["tag","virtual"]}),fw={flex:"","flex-col":""},hw={flex:"","items-center":"","px-8px":""},dw={key:0,"w-1px":"","bg-gray":"","h-12px":""},vw={href:"/",flex:"",title:"首页","mr-4px":""},pw=A("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[A("path",{d:"M16.612 2.214a1.01 1.01 0 0 0-1.242 0L1 13.419l1.243 1.572L4 13.621V26a2.004 2.004 0 0 0 2 2h20a2.004 2.004 0 0 0 2-2V13.63L29.757 15L31 13.428zM18 26h-4v-8h4zm2 0v-8a2.002 2.002 0 0 0-2-2h-4a2.002 2.002 0 0 0-2 2v8H6V12.062l10-7.79l10 7.8V26z",fill:"currentColor"})],-1),_w={flex:"","items-center":"","gap-2px":"","max-w-120px":""},mw=A("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},[A("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98c0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46a.5.5 0 0 0-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65A.488.488 0 0 0 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1a.566.566 0 0 0-.18-.03c-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98c0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46a.5.5 0 0 0 .61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03c.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73c0 .21-.02.43-.05.73l-.14 1.13l.89.7l1.08.84l-.7 1.21l-1.27-.51l-1.04-.42l-.9.68c-.43.32-.84.56-1.25.73l-1.06.43l-.16 1.13l-.2 1.35h-1.4l-.19-1.35l-.16-1.13l-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7l-1.06.43l-1.27.51l-.7-1.21l1.08-.84l.89-.7l-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13l-.89-.7l-1.08-.84l.7-1.21l1.27.51l1.04.42l.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43l.16-1.13l.2-1.35h1.39l.19 1.35l.16 1.13l1.06.43c.43.18.83.41 1.23.71l.91.7l1.06-.43l1.27-.51l.7 1.21l-1.07.85l-.89.7l.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4s4-1.79 4-4s-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2s2 .9 2 2s-.9 2-2 2z",fill:"currentColor"})],-1),gw=A("div",{"flex-1":""},null,-1),yw={"ml-8px":""},ww=A("div",{"h-1px":"","mt-4px":"",bg:"#efeff5"},null,-1),bw=Rt({__name:"WindowCard",props:{snapshot:{},rootNode:{},focusNode:{},focusCount:{},onUpdateFocusNode:{type:Function,default:ci}},setup(t){const e=t,n=At([]);Pr([()=>e.focusNode,()=>e.focusCount],async()=>{if(!e.focusNode)return;const h=e.focusNode.id;ga().then(async()=>{var g,m;await tf(100),h===((g=e.focusNode)==null?void 0:g.id)&&((m=r.value)==null||m.scrollTo({key:h,behavior:"smooth",debounce:!0}))});let d=e.focusNode.parent;if(!d)return;const v=new Set(n.value);for(;d;)v.add(d.id),d=d.parent;v.size==n.value.length&&n.value.every(g=>v.has(g))||(n.value=[...v])});const r=At(),a=(h,d)=>{var v;return d.id===((v=e.focusNode)==null?void 0:v.id)},o=h=>{var v;const d=h.option.idQf||h.option.textQf||h.option.quickFind;return{onClick:()=>{e.onUpdateFocusNode(h.option)},style:{color:h.option.id==((v=e.focusNode)==null?void 0:v.id)?"#00F":void 0,fontWeight:d?"bold":void 0}}},s=h=>Ui(h.option),l=Z(()=>`${oc(e.snapshot).manufacturer} Android ${oc(e.snapshot).release||""}`),f=Z(()=>tr(e.snapshot).isSystem),c=Z(()=>!e.snapshot.activityId||!e.snapshot.appId?"":e.snapshot.activityId.startsWith(e.snapshot.appId)&&e.snapshot.activityId.length>e.snapshot.appId.length?e.snapshot.activityId.substring(e.snapshot.appId.length):e.snapshot.activityId);return(h,d)=>{const v=Fa,g=Eo,m=ef,p=Tv;return et(),ae("div",fw,[A("div",hw,[B(E(cw),{flex:"","flex-wrap":"","items-center":"","gap-8px":"",gkd_code:""},{gap:q(({index:_})=>[_>0?(et(),ae("div",dw)):ge("",!0)]),default:q(()=>[A("a",vw,[B(g,{text:""},{icon:q(()=>[B(v,null,{default:q(()=>[pw]),_:1})]),_:1})]),B(m,null,{trigger:q(()=>[A("div",{onClick:d[0]||(d[0]=_=>E(er)(E(l)))},Tt(E(l)),1)]),default:q(()=>[ye(" 设备名称 ")]),_:1}),B(m,null,{trigger:q(()=>[A("div",{class:Kr({"opacity-50":!E(sc)(h.snapshot).versionName})},Tt(E(sc)(h.snapshot).versionName||"null"),3)]),default:q(()=>[ye(" GKD 版本 ")]),_:1}),A("div",_w,[E(f)?(et(),de(m,{key:0},{trigger:q(()=>[B(v,{size:14},{default:q(()=>[mw]),_:1})]),default:q(()=>[ye(" 系统应用 ")]),_:1})):ge("",!0),B(m,null,{trigger:q(()=>[A("div",{onClick:d[1]||(d[1]=_=>E(er)(E(tr)(h.snapshot).name))},Tt(E(tr)(h.snapshot).name),1)]),default:q(()=>[ye(" 应用名称 ")]),_:1})]),B(m,null,{trigger:q(()=>[A("div",{onClick:d[2]||(d[2]=_=>E(er)(E(tr)(h.snapshot).versionName))},Tt(E(tr)(h.snapshot).versionName),1)]),default:q(()=>[ye(" 版本名称 ")]),_:1}),B(m,null,{trigger:q(()=>[A("div",{onClick:d[3]||(d[3]=_=>E(er)(E(tr)(h.snapshot).versionCode.toString()))},Tt(E(tr)(h.snapshot).versionCode),1)]),default:q(()=>[ye(" 版本代码 ")]),_:1}),B(m,null,{trigger:q(()=>[A("div",{onClick:d[4]||(d[4]=_=>E(er)(h.snapshot.appId))},Tt(h.snapshot.appId),1)]),default:q(()=>[ye(" 应用ID ")]),_:1}),B(m,null,{trigger:q(()=>[A("div",{onClick:d[5]||(d[5]=_=>E(er)(E(c))),class:Kr({"opacity-50":!E(c)})},Tt(E(c)||"null"),3)]),default:q(()=>[ye(" 界面ID ")]),_:1})]),_:1}),gw,A("div",yw,[Yc(h.$slots,"default")])]),ww,B(p,{ref_key:"treeRef",ref:r,virtualScroll:"",showLine:"",keyField:"id",expandedKeys:E(n),"onUpdate:expandedKeys":d[6]||(d[6]=_=>Ki(n)?n.value=_:null),data:[h.rootNode],filter:a,nodeProps:o,renderLabel:s},null,8,["expandedKeys","data","filter","nodeProps","renderLabel"])])}}}),kw={"bg-white":"","b-1px":"","b-solid":"","b-gray-200":"","rounded-4px":"","p-8px":""},Cw={flex:"","m-b-4px":"","pr-4px":""},xw=A("div",null,"测试规则",-1),Sw=A("svg",{viewBox:"0 0 24 24"},[A("path",{fill:"currentColor",d:"M6 13v-2h12v2z"})],-1),$w={"min-h-24px":""},Ew={key:0,"color-red":"","whitespace-pre":""},Nw=A("svg",{viewBox:"0 0 24 24"},[A("path",{fill:"currentColor",d:"M14.4 20L13 18.6l2.6-2.6l-2.6-2.6l1.4-1.4l2.6 2.6l2.6-2.6l1.4 1.4l-2.6 2.6l2.6 2.6l-1.4 1.4l-2.6-2.6zm1.975-9l-3.55-3.55l1.4-1.4l2.125 2.125l4.25-4.25L22 5.35zM2 17v-2h9v2zm0-8V7h9v2z"})],-1),Iw=Rt({__name:"RuleCard",props:{root:{},focusNode:{},onUpdateFocusNode:{}},setup(t){const e=t,n=At(!1),r=At(""),a=rf(r,500),o=c=>{if(c==null)return[];if(typeof c=="string")return[c];if(Array.isArray(c)&&c.every(h=>typeof h=="string"))return c},s=Z(()=>{if(!a.value)return"";const c=(()=>{try{return of.parse(a.value)}catch(b){return b}})();if(c instanceof Error)return`非法格式: ${c.message}`;if(typeof c!="object"&&c!==null)return"非法格式: 请使用对象格式";const h=o(c.matches);if(!h)return"非法格式: matches";const d=o(c.anyMatches);if(!d)return"非法格式: anyMatches";const v=o(c.excludeMatches);if(!v)return"非法格式: excludeMatches";const g=[];for(let b=0;b<h.length;b++){const x=h[b];try{g.push(vo(x))}catch(S){const T=S instanceof Error?S.message:String(S);return`非法选择器: matches[${b}]
|
|
274
|
-
错误: ${T}`}}const m=g.map(b=>b.querySelectorAll(e.root));if(g.length){const b=m.findIndex(x=>x.length===0);if(b>=0)return`无法匹配: matches[${b}] 查找结果为空`}const p=[];for(let b=0;b<d.length;b++){const x=d[b];try{p.push(vo(x))}catch(S){const T=S instanceof Error?S.message:String(S);return`非法选择器: anyMatches[${b}]
|
|
275
|
-
错误: ${T}`}}const _=p.map(b=>b.querySelectorAll(e.root));if(p.length&&_.every(b=>b.length===0))return"无法匹配: anyMatches 查找结果为空";if(!h.length&&!d.length)return"非法规则: matches 和 anyMatches 至少存在一个";const y=[];for(let b=0;b<v.length;b++){const x=v[b];try{y.push(vo(x))}catch(S){const T=S instanceof Error?S.message:String(S);return`非法选择器: excludeMatches[${b}]
|
|
276
|
-
错误: ${T}`}}const C=y.map(b=>b.querySelectorAll(e.root));if(y.length){const b=C.findIndex(x=>x.length!==0);if(b>=0)return`无法匹配: excludeMatches[${b}] 查找结果不为空`}return m.length?m.at(-1)[0]:_[0][0]}),l=Z(()=>r.value&&a.value&&typeof s.value=="string"?s.value:""),f=Z(()=>typeof s.value=="string"?null:s.value);return(c,h)=>{const d=Fa,v=Eo,g=af;return et(),ae(zn,null,[B(Wi,{initialValue:{top:40,right:Math.max(315,12*E(Pd)+135),width:Math.max(480,E(Rd)*.3)},minWidth:300,sizeDraggable:"",class:"z-2 box-shadow-dim",show:E(n)},{default:q(({onRef:m})=>[A("div",kw,[A("div",Cw,[xw,A("div",{"flex-1":"","cursor-move":"",ref:m},null,512),B(v,{onClick:h[0]||(h[0]=p=>n.value=!E(n)),text:"",title:"最小化"},{icon:q(()=>[B(d,null,{default:q(()=>[Sw]),_:1})]),_:1})]),B(g,{value:E(r),"onUpdate:value":h[1]||(h[1]=p=>Ki(r)?r.value=p:null),type:"textarea",placeholder:"请输入单个规则测试",size:"small",class:"gkd_code m-b-4px",autosize:{minRows:10,maxRows:20}},null,8,["value"]),A("div",$w,[E(l)?(et(),ae("div",Ew,Tt(E(l)),1)):E(f)?(et(),de(v,{key:1,onClick:h[2]||(h[2]=p=>{var _;return(_=c.onUpdateFocusNode)==null?void 0:_.call(c,E(f))}),size:"small",class:Kr({"color-[#00F]":E(f)===c.focusNode})},{default:q(()=>[ye(Tt(E(Ui)(E(f))),1)]),_:1},8,["class"])):ge("",!0)])])]),_:1},8,["initialValue","show"]),B(Wi,{initialValue:{bottom:56,right:16},minWidth:300,class:"z-1 box-shadow-dim rounded-1/2 bg-white",show:!E(n)},{default:q(({onRef:m,moved:p})=>[A("div",{ref:m},[B(v,{onClick:_=>{p||(n.value=!E(n))},circle:"",size:"large",title:"测试规则"},{icon:q(()=>[B(d,null,{default:q(()=>[Nw]),_:1})]),_:2},1032,["onClick"])],512)]),_:1},8,["show"])],64)}}}),qw={"h-full":"",flex:"","gap-5px":"","p-5px":"","box-border":""},Aw=A("svg",{viewBox:"0 0 24 24"},[A("path",{fill:"currentColor",d:"M5 21V8.825Q4.125 8.5 3.563 7.738T3 6q0-1.25.875-2.125T6 3q1.25 0 2.125.875T9 6q0 .975-.562 1.738T7 8.825V19h4V3h8v12.175q.875.325 1.438 1.088T21 18q0 1.25-.875 2.125T18 21q-1.25 0-2.125-.875T15 18q0-.975.563-1.75T17 15.175V5h-4v16zM6 7q.425 0 .713-.288T7 6q0-.425-.288-.712T6 5q-.425 0-.712.288T5 6q0 .425.288.713T6 7m12 12q.425 0 .713-.288T19 18q0-.425-.288-.712T18 17q-.425 0-.712.288T17 18q0 .425.288.713T18 19m0-1"})],-1),Tw={key:0,class:"gkd_code py-2px px-4px rounded-2px bg-[#eee]"},Mw=A("div",{"opacity-75":"","text-12px":""},"*为简化视图已隐藏部分节点",-1),Kw=Rt({__name:"SnapshotPage",setup(t){const e=(()=>{const _=()=>N1(()=>import("./TrackGraph-CHeOoYTg.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url);return setTimeout(_,3e3),$1(_)})(),n=Zc(),r=I1(),a=V1(),o=Z(()=>String(n.params.snapshotId||"")),s=Z(()=>{const _=Number(n.query.showSize||"");return!Number.isSafeInteger(_)||_<=0?2e3:_}),l=At(""),f=At();za(async()=>{if(!Number.isSafeInteger(+o.value)){En.error("非法快照ID");return}const _=await tc.getItem(o.value);if(!_){ec.start();try{const C=Bi[o.value]||await fetch("https://detect.gkd.li/api/getImportId?id="+o.value).then(b=>b.json());if(C&&Number.isSafeInteger(C)){r.replace({path:"/i/"+C,query:n.query});return}}finally{ec.finish()}En.error("快照数据缺失");return}setTimeout(()=>{const C=Bi[_.id];C&&M1(C)},1e3),T1()&&Xc.autoUploadImport&&setTimeout(async()=>{P1(_),Bi[_.id]||R1(await tc.getItem(o.value))},1e3),_.nodes.length>s.value&&(En.warning(`当前展示节点数量为${s.value}
|
|
277
|
-
之后的${_.nodes.length-s.value}个节点将被丢弃
|
|
278
|
-
使用showSize查询参数可以修改展示数量`),_.nodes=_.nodes.slice(0,s.value));const y=await E1.getItem(o.value);if(!y){En.create("截屏数据缺失");return}l.value=URL.createObjectURL(new Blob([y],{type:"image/png"})),f.value=_,c.value=H1(_.nodes),a.value="快照-"+tr(_).name||_.appId,h.value||(h.value=c.value)});const c=At(),h=At(),d=At(0),v=async()=>{En.success("删除成功,即将回到首页"),await tf(2e3),r.replace({path:"/"})},g=At(),m=At(!1);Fi(()=>{g.value&&(m.value=!0)});const p=At();return Pr(()=>h.value,_=>{var C;const y=(C=p.value)==null?void 0:C.nodes;y&&(!_||!y.includes(_))&&(p.value=void 0)}),(_,y)=>{const C=Fa,b=q1;return et(),ae(zn,null,[A("div",qw,[E(l)&&E(f)?(et(),de(np,{key:0,url:E(l),snapshot:E(f),rootNode:E(c),focusNode:E(h),onUpdateFocusNode:y[0]||(y[0]=x=>{h.value=x,d.value++}),onUpdateFocusNodes:y[1]||(y[1]=x=>p.value=x)},null,8,["url","snapshot","rootNode","focusNode"])):ge("",!0),E(f)&&E(c)?(et(),de(bw,{key:1,rootNode:E(c),snapshot:E(f),focusNode:E(h),onUpdateFocusNode:y[2]||(y[2]=x=>h.value=x),focusCount:E(d),class:"flex-1"},{default:q(()=>[E(f)?(et(),de(A1,{key:0,snapshot:E(f),onDelete:v,showPreview:!1},null,8,["snapshot"])):ge("",!0)]),_:1},8,["rootNode","snapshot","focusNode","focusCount"])):ge("",!0)]),E(h)?(et(),de(Kv,{key:0,focusNode:E(h)},null,8,["focusNode"])):ge("",!0),E(c)&&E(f)?(et(),de(uw,{key:1,snapshot:E(f),rootNode:E(c),focusNode:E(h),onUpdateFocusNode:y[3]||(y[3]=x=>{h.value=x,d.value++}),onUpdateTrack:y[4]||(y[4]=x=>g.value=x)},null,8,["snapshot","rootNode","focusNode"])):ge("",!0),B(Wv,{focusNode:E(h),focusNodes:E(p),onUpdateFocusNode:y[5]||(y[5]=x=>{h.value=x,d.value++}),onClose:y[6]||(y[6]=x=>p.value=void 0)},null,8,["focusNode","focusNodes"]),E(c)?(et(),de(Iw,{key:2,root:E(c),focusNode:E(h),onUpdateFocusNode:y[7]||(y[7]=x=>{h.value=x,d.value++})},null,8,["root","focusNode"])):ge("",!0),B(b,{show:E(m),"onUpdate:show":y[8]||(y[8]=x=>Ki(m)?m.value=x:null),preset:"dialog",title:"选择器路径视图",class:"min-w-[calc(var(--gkd-width)*0.4)]",onAfterLeave:y[9]||(y[9]=x=>g.value=void 0)},{icon:q(()=>[B(C,null,{default:q(()=>[Aw]),_:1})]),default:q(()=>[E(g)?(et(),ae("div",Tw,Tt(E(g).selector.toString()),1)):ge("",!0),E(g)?(et(),de(E(e),{key:1,track:E(g)},null,8,["track"])):ge("",!0),Mw]),_:1},8,["show"])],64)}}});export{Kw as default};
|
|
279
|
-
//# sourceMappingURL=SnapshotPage-CNdcl2gK.js.map
|