@10yun/cv-pc-ui 0.3.22 → 0.3.24

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/lib/cv-ui.cjs CHANGED
@@ -1,44 +1,57 @@
1
- "use strict";/*! cvPcUI v0.3.21 */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("element-plus"),uo=require("https://10ui.cn/jsoneditor/vanilla-jsoneditor@0.22.0/standalone.js"),p=(t,o)=>{const n=t.__vccOpts||t;for(const[i,l]of o)n[i]=l;return n},ho={name:"cvRow",props:{gutter:{type:[Number,String],default:0},type:{type:[String],default:""},justify:{type:[String],default:"start"},align:{type:[String],default:"top"},tag:{type:[String],default:"div"}},data(){return{}},methods:{}};function po(t,o,n,i,l,a){const s=e.resolveComponent("el-row");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-row"},{type:n.type,justify:n.justify,align:n.align,tag:n.tag},{gutter:parseInt(n.gutter)}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["gutter"])}const H=p(ho,[["render",po],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/layout/src/row.vue"]]),mo={name:"cvCol",props:{span:{type:[Number,String],default:24},offset:{type:[Number,String],default:0}},data(){return{}},methods:{}};function fo(t,o,n,i,l,a){const s=e.resolveComponent("el-col");return e.openBlock(),e.createBlock(s,{class:"cv-col",span:parseInt(n.span),offset:parseInt(n.offset)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["span","offset"])}const q=p(mo,[["render",fo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/layout/src/col.vue"]]);H.install=function(t){t.component(H.name,H)};q.install=function(t){t.component(q.name,q)};const go={name:"cvBtnBase",emits:["click"],props:{...g.ElButton.props,autoLoading:{type:Boolean,default:!1}},data(){return{loadingStatus:!1}},created(){},methods:{handleClick(){this.autoLoading&&(this.loadingStatus=!0),this.$emit("click",()=>{this.loadingStatus=!1})}}};function vo(t,o,n,i,l,a){const s=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-btn"},t.$props,{loading:l.loadingStatus,onClick:a.handleClick}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["loading","onClick"])}const W=p(go,[["render",vo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/button/src/base.vue"]]),_o={name:"cvBtnText",emits:["click"],props:{...g.ElButton.props,autoLoading:{type:Boolean,default:!1}},data(){return{loadingStatus:!1}},methods:{handleClick(){this.autoLoading&&(this.loadingStatus=!0),this.$emit("click",()=>{this.loadingStatus=!1})}}};function yo(t,o,n,i,l,a){const s=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-btn"},t.$props,{link:"",loading:l.loadingStatus,onClick:a.handleClick}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["loading","onClick"])}const K=p(_o,[["render",yo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/button/src/text.vue"]]);W.install=function(t){t.component(W.name,W)};K.install=function(t){t.component(K.name,K)};const Co={name:"cvAutocompleteBase",props:{...g.ElAutocomplete.props},data(){return{localVal:"",loadingStatus:!1}},created(){}};function wo(t,o,n,i,l,a){const s=e.resolveComponent("el-autocomplete");return e.openBlock(),e.createBlock(s,e.mergeProps({modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>l.localVal=r)},t.$props),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["modelValue"])}const G=p(Co,[["render",wo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/autocomplete/src/base.vue"]]),yt={props:{compConfig:{},dataParse:{type:[Function],default:()=>null}},data(){return{searchData:{},loadDataLoading:!1,loadDataList:[],loadDataTotal:0,loadPageCurr:1,loadPageLimit:10,loadConfigSetting:{},loadConfigDef:{pageCurr:1,pageLimit:10,isSkip:!1,url:null,apiFunc:null,mockData:null,where:{},response:{statusName:"status",statusCode:200,msgName:"msg",countName:"total",dataName:"data"},request:{pageName:"page",limitName:"pagesize"}}}},methods:{loadEnding(){this.loadDataLoading=!1,this.$nextTick(()=>{this.loadDataLoading=!1})},loadGetData(){if(this.loadDataLoading=!0,this.loadConfigSetting.apiFunc&&typeof this.loadConfigSetting.apiFunc=="function"){const t=this.loadConfigSetting;let o={...t.where};o[t.request.pageName]=this.loadPageCurr,o[t.request.limitName]=this.loadPageLimit,o=Object.assign(o,this.searchData),this.loadConfigSetting.apiFunc(o).then(n=>{this.loadPageCurr=o[t.request.pageName],this.loadEnding();let i=this.sortOutData(n);if(i.status!=t.response.statusCode){ExtendMessage({message:i.msg,type:"error",duration:1300});return}if(i.data.length===0){ExtendMessage({message:"没有更多数据了",type:"warning",duration:1300});return}let l=i[t.response.dataName]||[];this.dataParse&&typeof this.dataParse=="function"&&(l=this.dataParse.call(null,l)),this.loadDataList.push(...l),this.loadDataTotal=i[t.response.countName]||0}).catch(n=>{this.loadEnding()})}else this.loadDataList.length>0&&(this.loadDataTotal=this.loadDataList.length),this.loadEnding()},sortOutData(t){let o=this.loadConfigSetting.response,n={},i=[],l=[];n.status=t[o.statusName],n.msg=t[o.msgName],n.total=t[o.countName],i=t[o.dataName];for(let a in i)l[a]=i[a];return n.data=l,n}}},ko={name:"cvAutocompleteLoad",mixins:[yt],emits:["update:modelValue","input"],props:{...g.ElAutocomplete.props,modelValue:null,placeholder:{type:[String],default:"请输入内容"},popperClass:{type:[String],default:"cv-autocomplete"},clearable:{type:[Boolean],default:!0},triggerOnFocus:!1,debounce:500,refID:{type:[String],required:!1,default(){return"cvAutocompleteLoad-"+ +new Date+((Math.random()/1e4).toFixed(0)+"")}},compConfig:{type:[Object],default:()=>({})}},data(){return{localVal:"",searchList:[],compConfigDef:{searchField:["value"]},timeout:null}},directives:{autoScrollLoad:{created(t,o,n){let i=t.querySelector(".el-autocomplete-suggestion__wrap"),l=t.querySelector(".el-autocomplete-suggestion__wrap .el-autocomplete-suggestion__list");i.addEventListener("scroll",a=>{i.offsetHeight+i.scrollTop+10-l.offsetHeight>0&&!n.context.loading&&o.value()},!1)}},loadmore:{mount(t,o){function n(l){l.target.clientHeight+l.target.scrollTop==l.target.scrollHeight&&o.value()}let i=t.querySelector(".el-autocomplete-suggestion__wrap");t.__handleScroll__=n,t.__wrapDom__=i,i.addEventListener("scroll",n,!1)},unbind(t,o,n){t.__wrapDom__.removeEventListener("scroll",t.__handleScroll__,!1)}}},created(){this.initConfAll(),this.getData()},methods:{initConfAll(){let t={};Object.assign(t,this.loadConfigDef,this.compConfigDef,this.compConfig),this.loadPageCurr=t.pageCurr||1,this.loadPageLimit=t.pageLimit||10,Object.assign(t.where,this.searchData),this.loadConfigSetting=t},getMoreData(){conosle.log("加载更多"),this.loadPageCurr++,this.loadGetData()},getData(){this.loadDataList=[],this.loadGetData()},async querySearchAsync(t,o){this.loadPageCurr=1,this.loadDataLoading=!0;var n=this.loadDataList||[];let i=[];const l=this.loadConfigSetting.searchField||["value"];if(t=t.toLowerCase(),i=t?n.filter(this.createFilter(t,l)):n,i.length>0){const a=i.map(s=>({...s,is_last_tip:!1}));o(a),this.lookFlag=!0}else try{this.loadPageCurr++,this.searchData.keyword=t,this.loadDataList=[],await this.loadGetData();const a=this.loadDataList.map(s=>({...s,is_last_tip:!1}));a.push({is_last_tip:!0}),o(a)}catch{}finally{this.lookFlag=!0}},createFilter(t,o){return n=>o.some(i=>(n[i]+"").toLowerCase().indexOf(t)!==-1)},selectLoadMore(){},handleChange(t){},handleSelect(t){this.$emit("update:modelValue",t)}}};function bo(t,o,n,i,l,a){const s=e.resolveComponent("cv-icons"),r=e.resolveComponent("el-autocomplete"),d=e.resolveDirective("loadmore");return e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[e.createVNode(r,e.mergeProps(t.$props,{modelValue:l.localVal,"onUpdate:modelValue":o[1]||(o[1]=c=>l.localVal=c),"fetch-suggestions":a.querySearchAsync,onChange:a.handleChange,onSelect:a.handleSelect}),{default:e.withCtx(({item:c})=>[c.is_last_tip?e.createCommentVNode("",!0):e.renderSlot(t.$slots,"default",e.normalizeProps(e.mergeProps({key:0},{item:c}))),c.is_last_tip?(e.openBlock(),e.createElementBlock("div",{key:1,class:"cv-autocomolete-nodata",onClick:o[0]||(o[0]=(...u)=>a.getData&&a.getData(...u)),disabled:""},[e.createTextVNode(" 没有更多数据了 "),e.createVNode(s,{type:"refresh-left"}),e.createTextVNode(" 刷新按钮 ")])):e.createCommentVNode("",!0)]),_:3},16,["modelValue","fetch-suggestions","onChange","onSelect"])])),[[d,a.getMoreData]])}const Z=p(ko,[["render",bo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/autocomplete/src/load.vue"]]);G.install=function(t){t.component(G.name,G)};Z.install=function(t){t.component(Z.name,Z)};const Vo={...g.ElForm,name:"cvFormBase",extends:g.ElForm,provide(){return{elForm:this}},props:{...g.ElForm.props},watch:{model(){}},data(){return{}}};function So(t,o,n,i,l,a){const s=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-form-base"},{...t.$props,...t.$attrs},e.toHandlers(t.$attrs)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const Q=p(Vo,[["render",So],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/form/src/base.vue"]]),No={name:"cvFormInline",provide(){return{elForm:this}},props:{...g.ElForm.props},watch:{model(){}},data(){return{form:{}}}};function Bo(t,o,n,i,l,a){const s=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-form-base"},t.$props,e.toHandlers(t.$attrs),{inline:!0}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const Y=p(No,[["render",Bo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/form/src/inline.vue"]]),Eo={name:"cvFormItem",extends:g.ElFormItem,props:{},data(){return{localLabelWidth:"",localError:""}},created(){},methods:{}},xo={key:0,class:"cv-form-item__tip"};function $o(t,o,n,i,l,a){const s=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default"),t.$slots.tip?(e.openBlock(),e.createElementBlock("div",xo,[e.renderSlot(t.$slots,"tip")])):e.createCommentVNode("",!0)]),_:3},16)}const J=p(Eo,[["render",$o],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/form/src/item.vue"]]);Q.install=function(t){t.component(Q.name,Q)};Y.install=function(t){t.component(Y.name,Y)};J.install=function(t){t.component(J.name,J)};const $={extends:g.ElInput,emits:["update:modelValue","change"],props:{...g.ElInput.props,modelValue:{type:[Number,String],default:""},placeholder:{type:[Number,String],default:""},disabled:{type:Boolean,default:!1}},watch:{modelValue(t){this.localVal=t},localVal(){this.handleChange(),this.handleInput()}},data(){return{localVal:this.modelValue,localRules:[]}},created(){},methods:{handleChange(){this.$emit("change",this.localVal)},handleInput(){this.$emit("update:modelValue",this.localVal)},handleBlur(){this._isCheckValue()},_showError(t){this.localError=t||"请输入正确的"+this.label},_diyValidate(){},_isCheckValue(){const o=this==null?void 0:this.rules.split("|");this.localError="";for(let n in o){let l=o[n].split(":"),a=l[0]||"",s=l[1]||"";switch(a){case"require":if(this.localVal==""){this._showError(this.label+"不能为空");return}break;case"max":if(this.localVal.length>s){this._showError(this.label+"最大长度不超过"+s);return}break;case"min":if(this.localVal.length<s){this._showError(this.label+"最小长度不小于"+s);return}break;default:this._diyValidate(a);break}}}}},To={name:"cvInputText",mixins:[$],props:{},data(){return{}},methods:{_diyValidate(t){switch(t){case"zh":if(!/[\u2E80-\u2EFF\u2F00-\u2FDF\u3000-\u303F\u31C0-\u31EF\u3200-\u32FF\u3300-\u33FF\u3400-\u4DBF\u4DC0-\u4DFF\u4E00-\u9FBF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF]+/g.test(this.localVal)){this._showError("必须全是中文");return}break;case"en":if(!/^[a-zA-Z]+$/.test(this.localVal)){this._showError("必须全是英文");return}break;case"username":if(/[1-9]\d*/.test(this.localVal.charAt(0))){this._showError("不能以数字开头");return}let l=/^[A-Za-z0-9_\-\u4e00-\u9fa5]+$/;this.rules.indexOf("username")!==-1&&!l.test(this.localVal)&&this._showError("只能是中英文数字下划线");break;case"ennum":/^[A-Za-z0-9]+$/.test(this.localVal)||this._showError("必须是字母和数字");break}}}},Do={slot:"prepend"},Lo={slot:"append"};function Io(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"text"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入",clearable:""}),{default:e.withCtx(()=>[e.createElementVNode("template",Do,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Lo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const Fo=p(To,[["render",Io],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/text.vue"]]),zo={name:"cvInputMobile",mixins:[$],components:{},props:{},data(){return{}},methods:{_diyValidate(){let t=/^[1][3,4,5,7,8][0-9]{9}$/;this.rules.indexOf("mobile")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},jo=e.createElementVNode("template",{slot:"prepend"},[e.createTextVNode("+86")],-1),Oo={slot:"append"};function Po(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"number",oninput:"if(value.length>11)value=value.slice(0,11)"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入11位大陆手机号",clearable:""}),{default:e.withCtx(()=>[jo,e.createElementVNode("template",Oo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const X=p(zo,[["render",Po],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/mobile.vue"]]),Ao={name:"cvInputEmail",mixins:[$],components:{},props:{},data(){return{}},methods:{_diyValidate(){let t=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;this.rules.indexOf("email")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},Uo={slot:"prepend"},Ro={slot:"append"};function Mo(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"text"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入邮箱",clearable:""}),{default:e.withCtx(()=>[e.createElementVNode("template",Uo,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Ro,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const ee=p(Ao,[["render",Mo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/email.vue"]]),Ho={name:"cvInputPassword",mixins:[$],components:{},props:{showPassword:{type:Boolean,default:!1}},data(){return{}},methods:{_diyValidate(){let t=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;this.rules.indexOf("password")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},qo={slot:"prepend"},Wo={slot:"append"};function Ko(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"password"},{disabled:t.disabled,showPassword:n.showPassword},{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入密码",clearable:""}),{default:e.withCtx(()=>[e.createElementVNode("template",qo,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Wo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const te=p(Ho,[["render",Ko],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/password.vue"]]),Go={name:"cvInputNumber",mixins:[$],props:{},data(){return{}},methods:{_diyValidate(){let t=/^[0-9]*$/;this.rules.indexOf("number")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},Zo={slot:"prepend"},Qo={slot:"append"};function Yo(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-number",type:"number"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入整数",clearable:""}),{default:e.withCtx(()=>[e.createElementVNode("template",Zo,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",Qo,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const oe=p(Go,[["render",Yo],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/number.vue"]]),Jo={name:"cvInputIdcard",mixins:[$],components:{},props:{},data(){return{}},methods:{_diyValidate(){let t=/^[1-9][0-9]{5}([1][9][0-9]{2}|[2][0][0|1][0-9])([0][1-9]|[1][0|1|2])([0][1-9]|[1|2][0-9]|[3][0|1])[0-9]{3}([0-9]|[X])$/;this.rules.indexOf("idcard")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},Xo={slot:"prepend"},en={slot:"append"};function tn(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"text",oninput:"if(value.length>18)value=value.slice(0,18)"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入身份证",clearable:"",maxlength:"18"}),{default:e.withCtx(()=>[e.createElementVNode("template",Xo,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",en,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const ne=p(Jo,[["render",tn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/idcard.vue"]]),on={name:"cvInputDigit",mixins:[$],components:{},props:{},data(){return{}},methods:{_diyValidate(){let t=/^(([0-9])|([1-9]([0-9]+)))(.[0-9]+)?$/;this.rules.indexOf("digit")!==-1&&!t.test(this.localVal)&&(this._showError="请输入正确的"+this.label)}}},nn={slot:"prepend"},ln={slot:"append"};function an(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"number"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入",clearable:""}),{default:e.withCtx(()=>[e.createElementVNode("template",nn,[e.renderSlot(t.$slots,"prepend")]),e.createElementVNode("template",ln,[e.renderSlot(t.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const le=p(on,[["render",an],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/digit.vue"]]),sn={name:"cvTextarea",mixins:[$],props:{rows:{type:[Number,String],default:3},autosize:{type:[Boolean,Object],default:!1}},data(){return{}},methods:{onSubmit(){this.$emit("btnClick",this.localVal)},_diyValidate(){let t=/^.*$/;this.rules.indexOf("textarea")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}};function rn(t,o,n,i,l,a){const s=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(s,e.mergeProps({type:"textarea"},{disabled:t.disabled,rows:n.rows,autosize:n.autosize},{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入内容",clearable:""}),null,16,["modelValue","onInput","placeholder"])}const ae=p(sn,[["render",rn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/textarea.vue"]]),cn={name:"cvTextareaBtn",mixins:[$],components:{},props:{rows:{type:[Number,String],default:3},btnText:{type:[Number,String],default:""},btnIcon:{type:[String],default:""},autosize:{type:[Boolean,Object],default:!1}},data(){return{}},methods:{onSubmit(){this.$emit("btnClick",this.localVal)},_diyValidate(){let t=/^.*$/;this.rules.indexOf("textarea")!==-1&&!t.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},dn={class:"cv-textab-group"},un={class:"cv-textab-group__append"},hn={class:"cv-textab_slot-wrap"};function pn(t,o,n,i,l,a){const s=e.resolveComponent("el-input"),r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",dn,[e.createVNode(s,e.mergeProps({type:"textarea"},{disabled:t.disabled,rows:n.rows,autosize:n.autosize},{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=d=>t.localVal=d),onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入内容",clearable:""}),null,16,["modelValue","onInput","placeholder"]),e.createElementVNode("div",un,[e.createElementVNode("div",hn,[e.renderSlot(t.$slots,"default",{},()=>[e.createVNode(r,{class:"cv-textab_slotbtn",type:"primary",size:t.size,onClick:a.onSubmit},{default:e.withCtx(()=>[n.btnIcon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(n.btnIcon),style:{"margin-right":"5px"}},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(n.btnText),1)]),_:1},8,["size","onClick"])])])])])}const ie=p(cn,[["render",pn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/textareabtn.vue"]]),mn={name:"cvInputBtn",mixins:[$],emits:["btnClick"],components:{},props:{btnText:{type:[Number,String],default:"确定"},btnIcon:{type:[String],default:""}},data(){return{}},methods:{onSubmit(){this.$emit("btnClick",this.localVal)}}},fn={class:"cv-input-group"},gn={class:"cv-input-group__append"};function vn(t,o,n,i,l,a){const s=e.resolveComponent("el-input"),r=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock("div",fn,[e.createVNode(s,e.mergeProps({type:"text"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=d=>t.localVal=d),onChange:t.handleChange,onInput:t.handleInput,placeholder:t.placeholder?t.placeholder:"请输入",clearable:""}),null,16,["modelValue","onChange","onInput","placeholder"]),e.createElementVNode("div",gn,[e.renderSlot(t.$slots,"default",{},()=>[e.createVNode(r,{class:"cv-input-btn__slotbtn",type:"primary",size:t.size,onClick:a.onSubmit},{default:e.withCtx(()=>[n.btnIcon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(n.btnIcon),style:{"margin-right":"5px"}},null,2)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(n.btnText),1)]),_:1},8,["size","onClick"])])])])}const se=p(mn,[["render",vn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/btn.vue"]]);X.install=function(t){t.component(X.name,X)};ee.install=function(t){t.component(ee.name,ee)};te.install=function(t){t.component(te.name,te)};oe.install=function(t){t.component(oe.name,oe)};ne.install=function(t){t.component(ne.name,ne)};le.install=function(t){t.component(le.name,le)};ae.install=function(t){t.component(ae.name,ae)};ie.install=function(t){t.component(ie.name,ie)};se.install=function(t){t.component(se.name,se)};const _n={name:"cvInputCounter",extends:g.ElInputNumber,props:{},watch:{modelValue(){this.localVal=this.modelValue}},data(){return{localVal:0}},created(){},methods:{handleChange(t){this.$emit("update:modelValue",this.localVal)}}};function yn(t,o,n,i,l,a){const s=e.resolveComponent("el-input-number");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>l.localVal=r),onChange:a.handleChange,step:t.step}),null,16,["modelValue","onChange","step"])}const re=p(_n,[["render",yn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input-counter/src/base.vue"]]);re.install=function(t){t.component(re.name,re)};const Cn={name:"cvShowText",mixins:[],components:{},props:{text:{type:[Number,String,Object],default:""}},data(){return{}},created(){},methods:{}},wn={class:"cv-show-text"},kn=["innerHTML"];function bn(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",wn,[n.text?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:n.text},null,8,kn)):e.createCommentVNode("",!0),n.text?e.createCommentVNode("",!0):e.renderSlot(t.$slots,"default",{key:1})])}const ce=p(Cn,[["render",bn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/show-text.vue"]]),Vn={name:"cvShowImage",mixins:[],components:{},props:{url:{type:[String,Array,Object],default:""},width:{type:[String],default:"100px"},height:{type:[String],default:"100px"}},data(){return{localUrl:""}},watch:{url:{handler(){this.localUrl=typeof this.url=="string"?[this.url]:this.url},immediate:!0,deep:!0}},created(){},methods:{}},Sn={class:"cv-show-image"};function Nn(t,o,n,i,l,a){const s=e.resolveComponent("el-image");return e.openBlock(),e.createElementBlock("div",Sn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.localUrl,(r,d)=>(e.openBlock(),e.createBlock(s,{style:e.normalizeStyle("width:"+n.width+"; height:"+n.height+"; margin-right:10px"),key:d,src:r,"preview-src-list":l.localUrl},null,8,["style","src","preview-src-list"]))),128))])}const de=p(Vn,[["render",Nn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/show-image.vue"]]),Bn={name:"cvShowTip",props:{borderColor:{type:[String],default:"#50bfff"},bgColor:{type:[String],default:"#ecf8ff"}},data(){return{backgroundColor:"#ecf8ff",borderLeft:"5px solid #50bfff"}},created(){this.borderLeft=`5px solid ${this.borderColor}`,this.backgroundColor=`${this.bgColor}`},methods:{}};function En(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",{class:"cv-show-tip",style:e.normalizeStyle({backgroundColor:this.backgroundColor,borderLeft:this.borderLeft})},[e.renderSlot(t.$slots,"default")],4)}const ue=p(Bn,[["render",En],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/show-tip.vue"]]),xn={name:"cv-gallery-dialog",props:{type:String,title:String,sources:Array,sliceSingle:{type:Boolean,default:!1},carouselAttrs:Object},data(){return{isShowCarousel:!1,sourceTitle:"",initialIndex:0,isShowPreview:!1}},methods:{startPreview(t){this.isShowPreview=!0,this.initialIndex=t,this.sourceTitle=this.sources[t].title},handleCarouselChange(t){this.sources[t]&&this.sources[t].title?this.sourceTitle=this.sources[t].title:this.sourceTitle=""}}},$n={slot:"title"},Tn=["src"],Dn={key:0,class:"cv-gallery-iframe embed-responsive embed-responsive-16by9"},Ln=["src"],In=["src"],Fn=["src"];function zn(t,o,n,i,l,a){const s=e.resolveComponent("el-carousel-item"),r=e.resolveComponent("el-carousel"),d=e.resolveComponent("el-dialog");return e.openBlock(),e.createBlock(d,{visible:l.isShowPreview,"append-to-body":"",onOpen:o[0]||(o[0]=c=>l.isShowCarousel=!0),onClosed:o[1]||(o[1]=c=>l.isShowCarousel=!1),style:{"text-align":"center"}},{default:e.withCtx(()=>[e.createElementVNode("div",$n,e.toDisplayString(l.sourceTitle||n.title),1),n.type==="video"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.isShowPreview?(e.openBlock(),e.createElementBlock("video",{key:0,src:n.sources[l.initialIndex].src,autoplay:"autoplay",class:"cv-gallery-video",controls:"controls",width:"100%"},null,8,Tn)):e.createCommentVNode("",!0)],64)):n.type==="iframe"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.isShowPreview?(e.openBlock(),e.createElementBlock("div",Dn,[e.createElementVNode("iframe",{src:n.sources[l.initialIndex].src,allowfullscreen:"true",border:"0",frameborder:"no",framespacing:"0",scrolling:"no"},null,8,Ln)])):e.createCommentVNode("",!0)],64)):n.type==="image"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[n.sliceSingle&&n.sources[l.initialIndex]||n.sources.length===1?(e.openBlock(),e.createElementBlock("img",{key:0,src:n.sources[l.initialIndex].src,class:"cv-gallery-image"},null,8,In)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.isShowCarousel?(e.openBlock(),e.createBlock(r,e.mergeProps({key:0,"initial-index":l.initialIndex,onChange:a.handleCarouselChange,"indicator-position":"outside"},n.carouselAttrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.sources,(c,u)=>(e.openBlock(),e.createBlock(s,{key:u},{default:e.withCtx(()=>[e.createElementVNode("img",{src:c.src,class:"cv-gallery-image"},null,8,Fn)]),_:2},1024))),128))]),_:1},16,["initial-index","onChange"])):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0)]),_:1},8,["visible"])}const jn=p(xn,[["render",zn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/gallery-dialog.vue"]]),On={name:"gallery",components:{GalleryDialog:jn},props:{type:{type:String,default:"image",validator(t){return["image","video","iframe"].includes(t)}},size:Number,width:Number,height:Number,lazy:{type:Boolean,default:!1},source:[String,Array,Object],thumbSuffix:String,thumbStyle:Object,carouselAttrs:Object,removeFn:Function,title:String,sliceSingle:{type:Boolean,default:!1}},data(){return{}},computed:{viewIconClass(){return this.type==="video"||this.type==="iframe"?"VideoPlay":"ZoomIn"},computedStyle(){let t=this.width||this.size,o=this.height||this.size;return this.type==="image"?(t=t?t+"px":"150px",o=o?o+"px":"150px"):(this.type==="video"||this.type==="iframe")&&(t=t?t+"px":"360px",o=o?o+"px":"auto"),Object.assign({},{width:t,height:o,display:"block"},this.thumbStyle)},thumbs(){return this.computedSources.map(t=>t.thumb)},computedSources(){const t=this.source;if(typeof t=="string")return[this.getStringSource(t)];if(t instanceof Array){const o=[];return t.forEach(n=>{n instanceof Object?o.push(this.getObjectSource(n)):typeof n=="string"&&o.push(this.getStringSource(n))}),o}else return t instanceof Object?[this.getObjectSource(t)]:[]}},methods:{handlePreview(t){this.$refs.dialog.startPreview(t)},handleRemove(t){this.removeFn(t)},getStringSource(t){let o=t;return this.type==="image"&&this.thumbSuffix&&(o+=this.thumbSuffix),{type:this.type,src:t,thumb:o}},getObjectSource(t){return t.type=t.thumb?"image":this.type,t.thumb=t.thumb||t.src,t}}},Pn={key:0,class:"cv-gallery"},An={class:"el-upload-list el-upload-list--picture-card"},Un=["src"],Rn=["src"],Mn={class:"el-upload-list__item-actions"},Hn=["onClick"],qn=["onClick"];function Wn(t,o,n,i,l,a){const s=e.resolveComponent("el-image"),r=e.resolveComponent("el-icon"),d=e.resolveComponent("Delete"),c=e.resolveComponent("GalleryDialog");return n.source?(e.openBlock(),e.createElementBlock("div",Pn,[e.createElementVNode("div",An,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.computedSources,(u,h)=>(e.openBlock(),e.createElementBlock("li",{key:h,class:"el-upload-list__item"},[e.renderSlot(t.$slots,"default",e.normalizeProps(e.guardReactiveProps({source:u,index:h})),()=>[u.type==="image"?(e.openBlock(),e.createBlock(s,{key:0,lazy:n.lazy,src:u.thumb,style:e.normalizeStyle(a.computedStyle),fit:"cover"},null,8,["lazy","src","style"])):u.type==="video"?(e.openBlock(),e.createElementBlock("video",{key:1,src:u.thumb,style:e.normalizeStyle(a.computedStyle)},null,12,Un)):u.type==="iframe"?(e.openBlock(),e.createElementBlock("div",{key:2,style:e.normalizeStyle(a.computedStyle),class:"cv-gallery-iframe embed-responsive embed-responsive-16by9"},[e.createElementVNode("iframe",{src:u.thumb,allowfullscreen:"true",border:"0",frameborder:"no",framespacing:"0",scrolling:"no"},null,8,Rn)],4)):e.createCommentVNode("",!0)]),e.createElementVNode("span",Mn,[e.createElementVNode("span",{onClick:m=>a.handlePreview(h,u)},[e.createVNode(r,null,{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.viewIconClass)))]),_:1})],8,Hn),n.removeFn?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:m=>a.handleRemove(h)},[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(d)]),_:1})],8,qn)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"action",e.normalizeProps(e.guardReactiveProps({source:u,index:h})))])]))),128))]),e.createVNode(c,{carouselAttrs:n.carouselAttrs,sliceSingle:n.sliceSingle,sources:a.computedSources,title:n.title,type:n.type,ref:"dialog"},null,8,["carouselAttrs","sliceSingle","sources","title","type"])])):e.createCommentVNode("",!0)}const he=p(On,[["render",Wn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/gallery.vue"]]);ce.install=function(t){t.component(ce.name,ce)};de.install=function(t){t.component(de.name,de)};ue.install=function(t){t.component(ue.name,ue)};he.install=function(t){t.component(he.name,he)};const Kn={name:"cvRadioOptBase"};function Gn(t,o,n,i,l,a){const s=e.resolveComponent("el-radio");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const pe=p(Kn,[["render",Gn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/radio/src/option-base.vue"]]),Zn={name:"cvRadioOptBtn"};function Qn(t,o,n,i,l,a){const s=e.resolveComponent("el-radio-button");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const me=p(Zn,[["render",Qn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/radio/src/option-button.vue"]]),Yn={name:"cvRadioGroup",props:{...g.ElRadioGroup.props,modelValue:{default:""},type:{type:[String],default:"base"},dataLists:{type:Array,default(){return[]}},dataField:{type:[Object],default(){return{}}},disabled:{type:Boolean,default:!1}},watch:{modelValue(t){this.localVal=t},localVal(){this.handleChange()},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0}},data(){return{localText:[],localVal:this.modelValue,localOpt:[]}},created(){this._parseLocalOpt()},methods:{handleChange(){this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let t=[];if(this.dataLists&&this.dataLists.length!==0)if(typeof this.dataLists[0]=="string")this.dataLists.map(i=>{t.push({label:i,value:i})}),this.localOpt=t;else{var o=this.dataField&&this.dataField.label||"label",n=this.dataField&&this.dataField.value||"value";this.dataLists.map(i=>{let l=i[o]===0?0:i[o]||"",a=i[n]===0?0:i[n]||"";a=a===0?0:a||l,t.push({label:l,value:a,disabled:i.disabled&&!0||!1}),(i.checked=="true"||i.checked==!0)&&(typeof this.localVal=="string"?this.localVal=a:(typeof this.localVal=="array"||typeof this.localVal=="object")&&this.localVal.push(a))}),this.localOpt=t}}}};function Jn(t,o,n,i,l,a){const s=e.resolveComponent("el-radio"),r=e.resolveComponent("el-radio-button"),d=e.resolveComponent("el-radio-group");return e.openBlock(),e.createBlock(d,{class:"cv-radio-group",modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=c=>l.localVal=c)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[n.type=="base"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.localOpt,(c,u)=>(e.openBlock(),e.createBlock(s,{label:c.label,value:c.value,key:u,disabled:n.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","value","disabled"]))),128)):e.createCommentVNode("",!0),n.type=="button"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(l.localOpt,(c,u)=>(e.openBlock(),e.createBlock(r,{label:c.label,value:c.value,key:u,disabled:n.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","value","disabled"]))),128)):e.createCommentVNode("",!0)])]),_:3},8,["modelValue"])}const fe=p(Yn,[["render",Jn],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/radio/src/group.vue"]]);pe.install=function(t){t.component(pe.name,pe)};me.install=function(t){t.component(me.name,me)};fe.install=function(t){t.component(fe.name,fe)};const Xn={name:"cvCheckboxOptBase",extends:g.ElCheckbox};function el(t,o,n,i,l,a){const s=e.resolveComponent("el-checkbox");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const ge=p(Xn,[["render",el],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/option-base.vue"]]),tl={name:"cvCheckboxOptBtn",extends:g.ElCheckboxButton,props:{}};function ol(t,o,n,i,l,a){const s=e.resolveComponent("el-checkbox-button");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)}const ve=p(tl,[["render",ol],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/option-button.vue"]]),Pt={props:{...g.ElCheckboxGroup.props,modelValue:{type:[Array],default(){return[]}},dataLists:{type:Array,default(){return[]}},dataField:{type:[Object],default(){return{}}},disabled:{type:Boolean,default:!1}},watch:{modelValue(){this.localVal=this.modelValue},localVal(){this.handleChange()},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0}},data(){return{localVal:this.modelValue,localOpt:[]}},created(){this.handleChange(),this._parseLocalOpt()},methods:{handleChange(){this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let t=[];if(this.dataLists&&this.dataLists.length!==0)if(typeof this.dataLists[0]=="string")this.dataLists.map(i=>{t.push({label:i,value:i})}),this.localOpt=t;else{var o=this.dataField&&this.dataField.label||"label",n=this.dataField&&this.dataField.value||"value";this.dataLists.map(i=>{let l=i[o]===0?0:i[o]||"",a=i[n]===0?0:i[n]||"";a=a===0?0:a||l,t.push({label:l,value:a,disabled:i.disabled&&!0||!1}),(i.checked=="true"||i.checked==!0)&&(typeof this.localVal=="string"?this.localVal=a:(typeof this.localVal=="array"||typeof this.localVal=="object")&&this.localVal.push(a))}),this.localOpt=t}this._parseLocalOptDiy()},_parseLocalOptDiy(){}}},nl={name:"cvCheckboxAll",mixins:[Pt],components:{},data(){return{checkAll:!1,isIndeterminate:!0,localOptAll:[]}},methods:{handleCheckAllChange(t){this.localVal=t?this.localOptAll:[],this.isIndeterminate=!1,this.handleChange()},handleCheckedCitiesChange(t){let o=t.length;this.checkAll=o===this.localOptAll.length,this.isIndeterminate=o>0&&o<this.localOptAll.length},_parseLocalOptDiy(){this.localOpt&&this.localOpt.length!==0&&this.localOpt.map(t=>{t.disabled||this.localOptAll.push(t.label)})}}},ll={class:"cv-checkbox-all"},al=e.createElementVNode("div",{style:{margin:"15px 0"}},null,-1);function il(t,o,n,i,l,a){const s=e.resolveComponent("el-checkbox"),r=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createElementBlock("div",ll,[e.createVNode(s,{indeterminate:l.isIndeterminate,modelValue:l.checkAll,"onUpdate:modelValue":o[0]||(o[0]=d=>l.checkAll=d),onChange:a.handleCheckAllChange},{default:e.withCtx(()=>[e.createTextVNode("全选")]),_:1},8,["indeterminate","modelValue","onChange"]),al,e.createVNode(r,{modelValue:t.localVal,"onUpdate:modelValue":o[1]||(o[1]=d=>t.localVal=d),onChange:a.handleCheckedCitiesChange},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.localOpt,(d,c)=>(e.openBlock(),e.createBlock(s,{label:d.label,value:d.value,key:c,onChange:t.handleChange,disabled:t.disabled||d.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.label),1)]),_:2},1032,["label","value","onChange","disabled"]))),128))])]),_:3},8,["modelValue","onChange"])])}const _e=p(nl,[["render",il],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/checkAll.vue"]]),sl={name:"cvCheckboxGroup",mixins:[Pt],components:{},props:{type:{type:[String],default:"base"}},data(){return{}}};function rl(t,o,n,i,l,a){const s=e.resolveComponent("el-checkbox"),r=e.resolveComponent("el-checkbox-button"),d=e.resolveComponent("el-checkbox-group");return e.openBlock(),e.createBlock(d,e.mergeProps(t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=c=>t.localVal=c)}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[n.type=="base"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.localOpt,(c,u)=>(e.openBlock(),e.createBlock(s,{label:c.label,value:c.value,key:u,onChange:t.handleChange,disabled:t.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","value","onChange","disabled"]))),128)):e.createCommentVNode("",!0),n.type=="button"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.localOpt,(c,u)=>(e.openBlock(),e.createBlock(r,{label:c.label,value:c.value,key:u,onChange:t.handleChange,disabled:t.disabled||c.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["label","value","onChange","disabled"]))),128)):e.createCommentVNode("",!0)])]),_:3},16,["modelValue"])}const ye=p(sl,[["render",rl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/group.vue"]]);ge.install=function(t){t.component(ge.name,ge)};ve.install=function(t){t.component(ve.name,ve)};ye.install=function(t){t.component(ye.name,ye)};_e.install=function(t){t.component(_e.name,_e)};function cl(t,o,n){var i=n||{},l=i.noTrailing,a=l===void 0?!1:l,s=i.noLeading,r=s===void 0?!1:s,d=i.debounceMode,c=d===void 0?void 0:d,u,h=!1,m=0;function f(){u&&clearTimeout(u)}function k(C){var y=C||{},_=y.upcomingOnly,w=_===void 0?!1:_;f(),h=!w}function v(){for(var C=arguments.length,y=new Array(C),_=0;_<C;_++)y[_]=arguments[_];var w=this,S=Date.now()-m;if(h)return;function B(){m=Date.now(),o.apply(w,y)}function T(){u=void 0}!r&&c&&!u&&B(),f(),c===void 0&&S>t?r?(m=Date.now(),a||(u=setTimeout(c?T:B,t))):B():a!==!0&&(u=setTimeout(c?T:B,c===void 0?t-S:t))}return v.cancel=k,v}function dl(t,o,n){var i=n||{},l=i.atBegin,a=l===void 0?!1:l;return cl(t,o,{debounceMode:a!==!1})}function P(t,o=!1){let n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),n.setAttribute("id",t),o?n.setAttribute("href",t+"?t="+new Date().getTime()):n.setAttribute("href",t),document.getElementById(t)||document.head.appendChild(n)}function N(t,o=!1,n=!0){return new Promise((i,l)=>{const a=document.createElement("script");t=t.replace(/([^:]\/)\/+/g,"$1"),a.src=t,a.id=t,a.type="text/javascript",o?a.src=t+"?t="+new Date().getTime():a.src=t,document.getElementById(t)&&n?i():(document.body.appendChild(a),a.onload=()=>{i()})})}function ul(t){const o=t,n=document.createElement("textarea");n.value=o,document.body.appendChild(n),n.select(),document.execCommand("Copy"),g.ElMessage({message:"复制成功",type:"success"}),n.remove()}const hl={name:"cvGeoCity",mixins:[],components:{},props:{modelValue:{type:[String,Array,Number],default(){return[]}},cityHide:{type:Boolean,default:!1},districtHide:{type:Boolean,default:!1},initChoose:{type:[String,Array,Number],default(){return[]}},initStr:{type:[String,Array,Number],default(){return[]}}},watch:{modelValue(t){},initChoose:{deep:!0,immediate:!0,handler(t){this.initProvince(t)}}},data(){return{provinceCdnList:{},cityCdnList:{},districtCdnList:{},isCdnLoading:!0,provinceList:[],cityList:[],districtList:[],provinceCode:"",cityCode:"",districtCode:"",provinceFlag:!1,cityFlag:!1,districtFlag:!1,activeSelectArr:{}}},async mounted(){await N(this.CDN_URL_UI+"/dict/dict-area/area-province.js"),await N(this.CDN_URL_UI+"/dict/dict-area/area-city.js"),await N(this.CDN_URL_UI+"/dict/dict-area/area-district.js").then(()=>{this.initLoad()})},methods:{initLoad(){setTimeout(()=>{this.provinceCdnList=window.cdn__DictAreaProvince,this.cityCdnList=window.cdn__DictAreaCity,this.districtCdnList=window.cdn__DictAreaDistrict,this.provinceFlag=!1,this.isCdnLoading=!1,this.getProvinces()},200)},initProvince(t){this.getProvinces();let o=t[0]||"";if(o!=""){let n=parseInt(o);this.provinceList.some((i,l)=>{if((isNaN(n)?i.provinceName:i.provinceCode)==o)return this.provinceCode=i.provinceCode,this.handleChoose("provinceCode",i,l),!0})}this.changeProvince(this.provinceCode),this.initCity(t)},initCity(t){let o=t[1]||"";if(o!=""){let n=parseInt(o);this.cityList.some((i,l)=>{if((isNaN(n)?i.cityName:i.cityCode)==o)return this.cityCode=i.cityCode,this.handleChoose("cityCode",i,l),!0})}this.changeCity(this.cityCode),this.initDistrict(t)},initDistrict(t){let o=t[2]||"";if(o!=""){let n=parseInt(o);this.districtList.some((i,l)=>{if((isNaN(n)?i.districtName:i.districtCode)==o)return this.districtCode=i.districtCode,this.handleChoose("districtCode",i,l),!0})}this.changeDistrict(this.districtCode)},handleChoose(t,o,n){switch(o.index=n,t){case"provinceCode":delete this.activeSelectArr.city,delete this.activeSelectArr.district,Object.assign(this.activeSelectArr,{province:{text:o.provinceName,value:o.provinceCode,index:o.index}}),this._getNeedDistrict();break;case"cityCode":delete this.activeSelectArr.district,Object.assign(this.activeSelectArr,{city:{text:o.cityName,value:o.cityCode,index:o.index}});break;case"districtCode":Object.assign(this.activeSelectArr,{district:{text:o.districtName,value:o.districtCode,index:o.index}});break}this.$emit("onChoose",this.activeSelectArr)},getProvinces(){if(!this.provinceFlag&&typeof this.provinceCdnList=="object"){let t=[];for(let o in this.provinceCdnList)t.push({provinceCode:o,provinceName:this.provinceCdnList[o]});this.provinceList=t,this.provinceFlag=!0}},changeProvince(t){this._getNeedCity(),this.cityFlag=!0,this.cityCode="",this.districtCode="";let o;this.provinceList.map(n=>{n.provinceCode==t&&(o=n.provinceName)}),this.$emit("addressSelect",[t,o])},_getNeedCity(){let t=[],o=this.provinceCode;for(let n in this.cityCdnList)n.substring(0,2)==o.substring(0,2)&&t.push({cityCode:n,cityName:this.cityCdnList[n]});this.cityList=t},getCities(){this.cityFlag||this.provinceCode&&(this._getNeedCity(),this.cityFlag=!0)},changeCity(t){this._getNeedDistrict(),this.districtFlag=!0,this.districtCode="";let o;this.cityList.map(n=>{n.cityCode==t&&(o=n.cityName)}),this.$emit("addressSelect",[t,o])},_getNeedDistrict(){let t=[],o=this.cityCode;for(let n in this.districtCdnList)n.substring(0,4)==o.substring(0,4)&&t.push({districtCode:n,districtName:this.districtCdnList[n]});this.districtList=t},getDistrict(){this.districtFlag||this.cityCode&&this._getNeedDistrict()},changeDistrict(t){let o;this.districtList.map(n=>{n.districtCode==t&&(o=n.districtName)}),this.$emit("addressSelect",[t,o])}}},pl={class:"cv-geo-city"},ml={key:0},fl={key:1};function gl(t,o,n,i,l,a){const s=e.resolveComponent("el-option"),r=e.resolveComponent("el-select"),d=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",pl,[e.createElementVNode("div",null,[e.createVNode(r,{modelValue:l.provinceCode,"onUpdate:modelValue":o[0]||(o[0]=c=>l.provinceCode=c),onFocus:a.getProvinces,onChange:a.changeProvince,placeholder:"省",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.provinceList,(c,u)=>(e.openBlock(),e.createBlock(s,{onClick:h=>a.handleChoose("provinceCode",c,u),key:c.provinceCode,label:c.provinceName,value:c.provinceCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])]),n.cityHide?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ml,[e.createVNode(r,{modelValue:l.cityCode,"onUpdate:modelValue":o[1]||(o[1]=c=>l.cityCode=c),onFocus:a.getCities,onChange:a.changeCity,placeholder:"市",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.cityList,(c,u)=>(e.openBlock(),e.createBlock(s,{onClick:h=>a.handleChoose("cityCode",c,u),key:c.cityCode,label:c.cityName,value:c.cityCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])])),!n.cityHide&&!n.districtHide?(e.openBlock(),e.createElementBlock("div",fl,[e.createVNode(r,{modelValue:l.districtCode,"onUpdate:modelValue":o[2]||(o[2]=c=>l.districtCode=c),onFocus:a.getDistrict,onChange:a.changeDistrict,placeholder:"区/县",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.districtList,(c,u)=>(e.openBlock(),e.createBlock(s,{onClick:h=>a.handleChoose("districtCode",c,u),key:c.districtCode,label:c.districtName,value:c.districtCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])])):e.createCommentVNode("",!0)])),[[d,l.isCdnLoading]])}const Ce=p(hl,[["render",gl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/geo/src/geo-city.vue"]]),vl={name:"cvGeoCity2",mixins:[],components:{},props:{modelValue:{type:[String,Array,Number],default(){return[]}},cityHide:{type:Boolean,default:!1},districtHide:{type:Boolean,default:!1},initChoose:{type:[String,Array,Number],default(){return[]}},initStr:{type:[String,Array,Number],default(){return[]}}},watch:{initChoose:{deep:!0,immediate:!0,handler(t){this.initProvince(t)}}},data(){return{provinceCdnList:{},cityCdnList:{},districtCdnList:{},isCdnLoading:!0,provinceList:[],cityList:[],districtList:[],provinceCode:"",cityCode:"",districtCode:"",hideMunicipality:!1,municipalities:["110000","120000","310000","500000","北京市","天津市","上海市","重庆市"],provinceFlag:!1,cityFlag:!1,districtFlag:!1,activeSelectArr:{}}},async mounted(){await N(this.CDN_URL_UI+"/dict/dict-area/area-province.js"),await N(this.CDN_URL_UI+"/dict/dict-area/area-city.js"),await N(this.CDN_URL_UI+"/dict/dict-area/area-district.js").then(()=>{this.initLoad()})},methods:{initLoad(){setTimeout(()=>{this.provinceCdnList=window.cdn__DictAreaProvince,this.cityCdnList=window.cdn__DictAreaCity,this.districtCdnList=window.cdn__DictAreaDistrict,this.provinceFlag=!1,this.isCdnLoading=!1,this.getProvinces()},200)},initProvince(t){this.getProvinces();let o=t[0]||"";if(o!=""){let n=parseInt(o);this.provinceList.some((i,l)=>{if((isNaN(n)?i.provinceName:i.provinceCode)==o)return this.provinceCode=i.provinceCode,this.handleChoose("provinceCode",i,l),!0})}this.changeProvince(this.provinceCode),this.initCity(t)},initCity(t){let o=t[1]||"";if(o!=""){let n=parseInt(o);this.cityList.some((i,l)=>{if((isNaN(n)?i.cityName:i.cityCode)==o)return this.cityCode=i.cityCode,this.handleChoose("cityCode",i,l),!0})}this.changeCity(this.cityCode),this.initDistrict(t)},initDistrict(t){let o=t[2]||"";if(o!=""){let n=parseInt(o);this.districtList.some((i,l)=>{if((isNaN(n)?i.districtName:i.districtCode)==o)return this.districtCode=i.districtCode,this.handleChoose("districtCode",i,l),!0})}this.changeDistrict(this.districtCode)},handleChoose(t,o,n){switch(o.index=n,t){case"provinceCode":if(delete this.activeSelectArr.city,delete this.activeSelectArr.district,Object.assign(this.activeSelectArr,{province:{text:o.provinceName,value:o.provinceCode,index:o.index}}),this._getNeedDistrict(),this.municipalities.indexOf(o.provinceCode)>-1){this.cityList.length==0&&this._getNeedCity();const i=this.cityList[0];this.cityCode=i.cityCode,this.changeCity(i.cityCode),this.handleChoose("cityCode",i,0);break}break;case"cityCode":delete this.activeSelectArr.district,Object.assign(this.activeSelectArr,{city:{text:o.cityName,value:o.cityCode,index:o.index}});break;case"districtCode":Object.assign(this.activeSelectArr,{district:{text:o.districtName,value:o.districtCode,index:o.index}});break}this.$emit("onChoose",this.activeSelectArr)},getProvinces(){if(!this.provinceFlag&&typeof this.provinceCdnList=="object"){let t=[];for(let o in this.provinceCdnList)t.push({provinceCode:o,provinceName:this.provinceCdnList[o]});this.provinceList=t,this.provinceFlag=!0}},changeProvince(t){this._getNeedCity(),this.cityFlag=!0,this.cityCode="",this.districtCode="";let o;this.provinceList.map(n=>{n.provinceCode==t&&(o=n.provinceName)}),this.hideMunicipality=this.municipalities.indexOf(this.provinceCode)>-1,this.$emit("addressSelect",[t,o])},_getNeedCity(){let t=[],o=this.provinceCode;for(let n in this.cityCdnList)n.substring(0,2)==o.substring(0,2)&&t.push({cityCode:n,cityName:this.cityCdnList[n]});this.cityList=t},getCities(){this.cityFlag||this.provinceCode&&(this._getNeedCity(),this.cityFlag=!0)},changeCity(t){this._getNeedDistrict(),this.districtFlag=!0,this.districtCode="";let o;this.cityList.map(n=>{n.cityCode==t&&(o=n.cityName)}),this.$emit("addressSelect",[t,o])},_getNeedDistrict(){let t=[],o=this.cityCode;for(let n in this.districtCdnList)n.substring(0,4)==o.substring(0,4)&&t.push({districtCode:n,districtName:this.districtCdnList[n]}),o=="500100"&&n.substring(0,4)=="5002"&&t.push({districtCode:n,districtName:this.districtCdnList[n]});this.districtList=t},getDistrict(){this.districtFlag||this.cityCode&&this._getNeedDistrict()},changeDistrict(t){let o;this.districtList.map(n=>{n.districtCode==t&&(o=n.districtName)}),this.$emit("addressSelect",[t,o])}}},_l={class:"cv-geo-city"},yl=["hidden"],Cl={key:1};function wl(t,o,n,i,l,a){const s=e.resolveComponent("el-option"),r=e.resolveComponent("el-select"),d=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",_l,[e.createElementVNode("div",null,[e.createVNode(r,{modelValue:l.provinceCode,"onUpdate:modelValue":o[0]||(o[0]=c=>l.provinceCode=c),onFocus:a.getProvinces,onChange:a.changeProvince,placeholder:"省",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.provinceList,(c,u)=>(e.openBlock(),e.createBlock(s,{onClick:h=>a.handleChoose("provinceCode",c,u),key:c.provinceCode,label:c.provinceName,value:c.provinceCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])]),n.cityHide?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,hidden:l.hideMunicipality},[e.createVNode(r,{modelValue:l.cityCode,"onUpdate:modelValue":o[1]||(o[1]=c=>l.cityCode=c),onFocus:a.getCities,onChange:a.changeCity,placeholder:"市",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.cityList,(c,u)=>(e.openBlock(),e.createBlock(s,{onClick:h=>a.handleChoose("cityCode",c,u),key:c.cityCode,label:c.cityName,value:c.cityCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])],8,yl)),!n.cityHide&&!n.districtHide?(e.openBlock(),e.createElementBlock("div",Cl,[e.createVNode(r,{modelValue:l.districtCode,"onUpdate:modelValue":o[2]||(o[2]=c=>l.districtCode=c),onFocus:a.getDistrict,onChange:a.changeDistrict,placeholder:"区/县",filterable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.districtList,(c,u)=>(e.openBlock(),e.createBlock(s,{onClick:h=>a.handleChoose("districtCode",c,u),key:c.districtCode,label:c.districtName,value:c.districtCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])])):e.createCommentVNode("",!0)])),[[d,l.isCdnLoading]])}const we=p(vl,[["render",wl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/geo/src/geo-city2.vue"]]);Ce.install=function(t){t.component(Ce.name,Ce)};we.install=function(t){t.component(we.name,we)};const kl={...g.ElOption,extends:g.ElOption,name:"cvSelectOpt"},ke=p(kl,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/option.vue"]]),bl={name:"cvSelectBase",emits:["onChoose","change","update:modelValue"],props:{...g.ElSelect.props,modelValue:{type:[String,Array,Number],default(){return""}},dataLists:{type:[Array],default(){return[]}},dataField:{type:[Object],default(){return{}}},dataDisabled:{type:[Array],default(){return[]}},disabled:{type:Boolean,default:!1},placeholder:{type:[String,Number],default:"请选择"}},watch:{modelValue(t){this.localVal=t},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0},localVal(t){this.handleChange()}},data(){return{localVal:this.modelValue,localOpt:[]}},methods:{handleChoose(t,o){this.$emit("onChoose",t,o)},handleChange(){this.$emit("change",this.localVal),this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let t=[];if(this.dataLists&&this.dataLists.length!==0)if(typeof this.dataLists[0]=="string")this.dataLists.map(i=>{t.push({label:i,value:i})}),this.localOpt=t;else{var o=this.dataField&&this.dataField.label||"label",n=this.dataField&&this.dataField.value||"value";this.dataLists.map(i=>{let l=i[o]===0?0:i[o]||"",a=i[n]===0?0:i[n]||"";if(a=a===0?0:a||l,this.dataDisabled.length>0)for(let s in this.dataDisabled)this.dataDisabled[s][n]==a&&(i.disabled=!0);t.push({label:l,value:a,disabled:i.disabled&&!0||!1}),(i.checked=="true"||i.checked==!0)&&(typeof this.localVal=="string"?this.localVal=a:(typeof this.localVal=="array"||typeof this.localVal=="object")&&this.localVal.push(a))}),this.localOpt=t}}}};function Vl(t,o,n,i,l,a){const s=e.resolveComponent("el-option"),r=e.resolveComponent("el-select");return e.openBlock(),e.createBlock(r,e.mergeProps({class:"cv-select-base"},t.$props,{modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=d=>l.localVal=d),size:t.size,filterable:"",clearable:""}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.localOpt,(d,c)=>(e.openBlock(),e.createBlock(s,{onClick:u=>a.handleChoose(d,c),disabled:d.disabled,label:d.label,value:d.value,key:c},null,8,["onClick","disabled","label","value"]))),128))])]),_:3},16,["modelValue","size"])}const be=p(bl,[["render",Vl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/select-base.vue"]]),Sl={name:"cvSelectTree",emits:["update:modelValue","change"],props:{...g.ElSelect.props,modelValue:{type:[String,Array,Number],default(){return""}},dataLists:{type:[Array],default(){return[]}},dataField:{type:[Object],default:()=>({value:"id",label:"title",children:"children"})},clearable:{type:Boolean,default:!0},accordion:{type:Boolean,default:!1},defaultExpandAll:{type:Boolean,default:!0},dataDisabled:{type:[Array],default(){return[]}},disabled:{type:Boolean,default:!1},placeholder:{type:[String,Number],default:"请选择"},showAllLevels:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},emitPath:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},refID:{type:[String],required:!1,default(){return"cvSelectTree-"+ +new Date+((Math.random()/1e4).toFixed(0)+"")}}},watch:{modelValue(){this.localVal=this.modelValue,this.initHandle()},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0},localVal(){this.handleChange()}},data(){return{localVal:"",localOpt:[],localTitle:"",defaultExpandedKey:[]}},computed:{props2(){return Object.assign(this.dataField,{emitPath:this.emitPath},{multiple:this.multiple})}},created(){},mounted(){this.localVal=this.modelValue,this.initHandle()},methods:{initHandle(){if(this.localVal){var t=this.$refs[this.refID+"tree"].getNode(this.localVal);t&&(this.localTitle=t.data[this.dataField.label],this.$refs[this.refID+"tree"].setCurrentKey(this.localVal),this.defaultExpandedKey=[this.localVal])}else this.clearHandle();this.initScroll()},initScroll(){this.$nextTick(()=>{let t=document.querySelectorAll(".cv-select-tree .el-scrollbar .el-select-dropdown__wrap")[0],o=document.querySelectorAll(".cv-select-tree .el-scrollbar .el-scrollbar__bar");t.style.cssText="margin: 0px; max-height: none; overflow: hidden;",o.forEach(n=>n.style.width=0)})},handleNodeClick(t,o,n){t.disabled||(this.localTitle=t[this.dataField.label],this.localVal=t[this.dataField.value],this.defaultExpandedKey=[],this.$refs[this.refID].blur())},clearHandle(){this.localTitle="",this.localVal="",this.defaultExpandedKey=[],this.clearSelected()},clearSelected(){document.querySelectorAll(`#${this.refID}tree .el-tree-node`).forEach(o=>o.classList.remove("is-current"))},handleChange(){this.$emit("change",this.localVal),this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let t=this.dataLists;this.dataField&&this.dataField.label;let o=this.dataField&&this.dataField.value||"value",n=this.dataField&&this.dataField.children||"children",i=this.dataDisabled;l(t);function l(a){for(let s in a)i.map(r=>{a[s][o]==r[o]&&(a[s].disabled=!0)}),a[s][n]&&l(a[s][n])}this.localOpt=t}}};function Nl(t,o,n,i,l,a){const s=e.resolveComponent("el-tree"),r=e.resolveComponent("el-option"),d=e.resolveComponent("el-select");return e.openBlock(),e.createBlock(d,e.mergeProps(t.$props,{ref:n.refID,"popper-class":"cv-select-tree",modelValue:l.localTitle,onClear:a.clearHandle}),{default:e.withCtx(()=>[e.createVNode(r,{value:l.localTitle,label:l.localTitle,class:"options"},{default:e.withCtx(()=>[e.createVNode(s,{"highlight-current":"",id:n.refID+"tree",ref:n.refID+"tree",accordion:n.accordion,showCheckbox:n.showCheckbox,data:l.localOpt,props:n.dataField,"node-key":n.dataField.value,onNodeClick:a.handleNodeClick,"default-expand-all":n.defaultExpandAll},null,8,["id","accordion","showCheckbox","data","props","node-key","onNodeClick","default-expand-all"])]),_:1},8,["value","label"])]),_:1},16,["modelValue","onClear"])}const Ve=p(Sl,[["render",Nl],["__scopeId","data-v-604c350d"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/select-tree.vue"]]);ke.install=function(t){t.component(ke.name,ke)};be.install=function(t){t.component(be.name,be)};Ve.install=function(t){t.component(Ve.name,Ve)};const Bl={name:"cvCascaderBase",components:{},props:{...g.ElCascader.props,modelValue:{type:[String,Array,Number],default(){}},dataLists:{type:[Array],default(){return[]}},dataDisabled:{type:[Array],default(){return[]}},disabled:{type:Boolean,default:!1},placeholder:{type:[String,Number],default:"请选择"},showAllLevels:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},dataField:{type:[Object],default(){return{}}},emitPath:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1}},watch:{modelValue(){this.localVal=this.modelValue},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0},localVal(){this.handleChange(),this.handleInput()}},data(){return{localVal:this.modelValue,localOpt:[]}},computed:{props2(){return Object.assign(this.dataField,{emitPath:this.emitPath},{multiple:this.multiple})}},created(){},methods:{handleChange(){this.$emit("change",this.localVal)},handleInput(){this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let t=this.dataLists,o=this.dataField&&this.dataField.value||"value",n=this.dataDisabled;i(t);function i(l){for(let a in l)n.map(s=>{l[a][o]==s[o]&&(l[a].disabled=!0)}),l[a].children&&i(l[a].children)}this.localOpt=t},getCheckedNodes(){}}},El={class:"cv-cascader-base block"};function xl(t,o,n,i,l,a){const s=e.resolveComponent("el-cascader");return e.openBlock(),e.createElementBlock("div",El,[e.createVNode(s,e.mergeProps(t.$props,{props:a.props2,modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>l.localVal=r),options:l.localOpt,onChange:a.handleChange,onGetCheckedNodes:a.getCheckedNodes}),null,16,["props","modelValue","options","onChange","onGetCheckedNodes"])])}const Se=p(Bl,[["render",xl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/cascader/src/base.vue"]]);Se.install=function(t){t.component(Se.name,Se)};const At={props:{...g.ElTimePicker.props,modelValue:{type:[String,Array,Number,Object,Date],default:null}},watch:{modelValue:{handler(){if(this.valueFormat=="timestamp"){if(Array.isArray(this.modelValue)){var t;if(t=this.modelValue.map(o=>{if(!isNaN(o)&&o.toString().length==10)return o*1e3}),this.localVal&&this.localVal[0]==t[0]&&this.localVal[1]==t[1])return;this.localVal=t}else this.modelValue&&this.modelValue.toString().length==10&&this.localVal!=this.modelValue*1e3&&(this.localVal=this.modelValue*1e3);return}this.localVal=this.modelValue},immediate:!0,deep:!0},localVal(){if(this.valueFormat=="timestamp"){var t;if(Array.isArray(this.localVal)){if(t=this.localVal.map(o=>{if(!isNaN(o)&&o.toString().length==13)return parseInt(o/1e3)}),this.modelValue&&t[0]==this.modelValue[0]&&t[1]==this.modelValue[1])return;this.$emit("update:modelValue",t)}else!isNaN(this.localVal)&&this.localVal.toString().length==13&&(t=parseInt(this.localVal/1e3),this.modelValue!=t&&this.$emit("update:modelValue",t));return}this.$emit("update:modelValue",this.localVal)}},data(){return{localVal:""}},created(){},methods:{}},$l={name:"cvTimeBase",mixins:[At],props:{format:{type:String,default:"HH:mm:ss"},valueFormat:{type:String,default:"HH:mm:ss"},placeholder:{type:[String,Number],default:"选择时间"}}};function Tl(t,o,n,i,l,a){const s=e.resolveComponent("el-time-picker");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-timePicker-base"},t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),format:n.format,"picker-options":{}}),null,16,["modelValue","format"])}const Ne=p($l,[["render",Tl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/time-base.vue"]]),Dl={name:"cvTimeRange",mixins:[At],props:{format:{type:String,default:"HH:mm:ss"},valueFormat:{type:String,default:"HH:mm:ss"},startPlaceholder:{type:[String,Number],default:"开始时间"},rangeSeparator:{type:[String,Number],default:"至"},endPlaceholder:{type:[String,Number],default:"结束时间"}}};function Ll(t,o,n,i,l,a){const s=e.resolveComponent("el-time-picker");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-timePicker-range"},t.$props,{"is-range":"",modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),format:n.format,"range-separator":n.rangeSeparator,"start-placeholder":n.startPlaceholder,"end-placeholder":n.endPlaceholder}),null,16,["modelValue","format","range-separator","start-placeholder","end-placeholder"])}const Be=p(Dl,[["render",Ll],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/time-range.vue"]]),Il={name:"cvTimeSelect"};function Fl(t,o,n,i,l,a){const s=e.resolveComponent("el-time-select");return e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-time-select"},t.$props),null,16)}const Ee=p(Il,[["render",Fl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/time-select.vue"]]),Ct={props:{...g.ElDatePicker.props,modelValue:{type:[String,Array,Number,Object,Date],default:null},pickerOptions:{type:Boolean,default:!1}},watch:{modelValue:{handler(){if(this.valueFormat=="timestamp"){if(Array.isArray(this.modelValue)){var t;if(t=this.modelValue.map(o=>{if(!isNaN(o)&&o.toString().length==10)return o*1e3}),this.localVal&&this.localVal[0]==t[0]&&this.localVal[1]==t[1])return;this.localVal=t}else this.modelValue&&this.modelValue.toString().length==10&&this.localVal!=this.modelValue*1e3&&(this.localVal=this.modelValue*1e3);return}this.localVal=this.modelValue},immediate:!0,deep:!0},localVal(){if(this.valueFormat=="timestamp"){var t;if(Array.isArray(this.localVal)){if(t=this.localVal.map(o=>{if(!isNaN(o)&&o.toString().length==13)return parseInt(o/1e3)}),this.modelValue&&t[0]==this.modelValue[0]&&t[1]==this.modelValue[1])return;this.$emit("update:modelValue",t)}else!isNaN(this.localVal)&&this.localVal.toString().length==13&&(t=parseInt(this.localVal/1e3),this.modelValue!=t&&this.$emit("update:modelValue",t));return}this.$emit("update:modelValue",this.localVal)}},data(){return{localVal:""}}},zl={name:"cvDateBase",mixins:[Ct],props:{format:{type:String,default:"YYYY-MM-DD"},valueFormat:{type:String,default:"YYYY-MM-DD"},placeholder:{type:[String,Number],default:"选择日期"}},data(){return{localPickerOptions:{disabledDate(t){return t.getTime()>Date.now()},shortcuts:[{text:"今天",onClick(t){t.$emit("pick",new Date)}},{text:"昨天",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24),t.$emit("pick",o)}},{text:"一周前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*7),t.$emit("pick",o)}},{text:"一个月前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*30),t.$emit("pick",o)}},{text:"三个月前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*90),t.$emit("pick",o)}},{text:"六个月前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*180),t.$emit("pick",o)}},{text:"一年前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*365),t.$emit("pick",o)}}]}}}};function jl(t,o,n,i,l,a){const s=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),type:"date","value-format":n.valueFormat,placeholder:n.placeholder,"picker-options":t.pickerOptions&&l.localPickerOptions}),null,16,["modelValue","value-format","placeholder","picker-options"])}const xe=p(zl,[["render",jl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/date-base.vue"]]),Ol={name:"cvDateRange",mixins:[Ct],props:{valueFormat:{type:String,default:"yyyy-MM-dd"},startPlaceholder:{type:[String,Number],default:"开始日期"},rangeSeparator:{type:[String,Number],default:"至"},endPlaceholder:{type:[String,Number],default:"结束日期"}},data(){return{localPickerOptions:{shortcuts:[{text:"今天",onClick(t){const o=new Date,n=new Date;t.$emit("pick",[n,o])}},{text:"昨天",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24),o.setTime(o.getTime()-3600*1e3*24),t.$emit("pick",[n,o])}},{text:"最近一周",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*7),t.$emit("pick",[n,o])}},{text:"最近一个月",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*30),t.$emit("pick",[n,o])}},{text:"最近三个月",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*90),t.$emit("pick",[n,o])}},{text:"最近六个月",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*180),t.$emit("pick",[n,o])}},{text:"最近一年",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*365),t.$emit("pick",[n,o])}}]}}}};function Pl(t,o,n,i,l,a){const s=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),type:"daterange","value-format":n.valueFormat,"range-separator":n.rangeSeparator,"start-placeholder":n.startPlaceholder,"end-placeholder":n.endPlaceholder,"picker-options":t.pickerOptions&&l.localPickerOptions}),null,16,["modelValue","value-format","range-separator","start-placeholder","end-placeholder","picker-options"])}const $e=p(Ol,[["render",Pl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/date-range.vue"]]),Al={name:"cvDatetimeBase",mixins:[Ct],props:{format:{type:String,default:"YYYY-MM-DD HH:mm:ss"},valueFormat:{type:String,default:"YYYY-MM-DD HH:mm:ss"},placeholder:{type:[String,Number],default:"选择日期时间"}},data(){return{localPickerOptions:{disabledDate(t){return t.getTime()>Date.now()},shortcuts:[{text:"今天",onClick(t){t.$emit("pick",new Date)}},{text:"昨天",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24),t.$emit("pick",o)}},{text:"一周前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*7),t.$emit("pick",o)}},{text:"一个月前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*30),t.$emit("pick",o)}},{text:"三个月前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*90),t.$emit("pick",o)}},{text:"六个月前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*180),t.$emit("pick",o)}},{text:"一年前",onClick(t){const o=new Date;o.setTime(o.getTime()-3600*1e3*24*365),t.$emit("pick",o)}}]}}}};function Ul(t,o,n,i,l,a){const s=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),type:"datetime","value-format":n.valueFormat,placeholder:n.placeholder,"picker-options":t.pickerOptions&&l.localPickerOptions}),null,16,["modelValue","value-format","placeholder","picker-options"])}const Te=p(Al,[["render",Ul],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/datetime-base.vue"]]),Rl={name:"cvDatetimeRange",mixins:[Ct],props:{valueFormat:{type:String,default:"YYYY-MM-DD HH:mm:ss"},startPlaceholder:{type:[String,Number],default:"开始日期"},rangeSeparator:{type:[String,Number],default:"至"},endPlaceholder:{type:[String,Number],default:"结束日期"}},data(){return{localPickerOptions:{shortcuts:[{text:"今天",onClick(t){const o=new Date,n=new Date;t.$emit("pick",[n,o])}},{text:"昨天",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24),o.setTime(o.getTime()-3600*1e3*24),t.$emit("pick",[n,o])}},{text:"最近一周",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*7),t.$emit("pick",[n,o])}},{text:"最近一个月",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*30),t.$emit("pick",[n,o])}},{text:"最近三个月",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*90),t.$emit("pick",[n,o])}},{text:"最近六个月",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*180),t.$emit("pick",[n,o])}},{text:"最近一年",onClick(t){const o=new Date,n=new Date;n.setTime(n.getTime()-3600*1e3*24*365),t.$emit("pick",[n,o])}}]}}}};function Ml(t,o,n,i,l,a){const s=e.resolveComponent("el-date-picker");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{modelValue:t.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>t.localVal=r),type:"datetimerange","value-format":n.valueFormat,"range-separator":n.rangeSeparator,"start-placeholder":n.startPlaceholder,"end-placeholder":n.endPlaceholder,align:"right","picker-options":t.pickerOptions&&l.localPickerOptions}),null,16,["modelValue","value-format","range-separator","start-placeholder","end-placeholder","picker-options"])}const De=p(Rl,[["render",Ml],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/datetime-range.vue"]]);Ne.install=function(t){t.component(Ne.name,Ne)};Be.install=function(t){t.component(Be.name,Be)};Ee.install=function(t){t.component(Ee.name,Ee)};xe.install=function(t){t.component(xe.name,xe)};$e.install=function(t){t.component($e.name,$e)};Te.install=function(t){t.component(Te.name,Te)};De.install=function(t){t.component(De.name,De)};const Hl={name:"cvSwitchBase",props:{...g.ElSwitch.props,activeColor:{type:[String],default:""},inactiveColor:{type:[String],default:""},disabled:{type:Boolean,default:!1}},watch:{modelValue(){this.localVal=this.modelValue},localVal(){this.$emit("update:modelValue",this.localVal)}},data(){return{localVal:this.modelValue}},created(){this.localVal=this.modelValue},methods:{}};function ql(t,o,n,i,l,a){const s=e.resolveComponent("el-switch");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=r=>l.localVal=r)}),null,16,["modelValue"])}const Le=p(Hl,[["render",ql],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/switch/src/base.vue"]]);Le.install=function(t){t.component(Le.name,Le)};const Wl={name:"cvCodeSms",mixins:[],components:{},props:{...g.ElInput.props,modelValue:{type:[Number,String],default:""},placeholder:{type:[Number,String],default:"请输入验证码"},disabled:{type:Boolean,default:!1},mobile:{type:[Number,String],default:""},mobileParam:{type:String,default:"mobile"},codeUrl:{type:String,default:""},codeSign:{type:Boolean,default:!1},codeApiFunc:{type:Function,default:null},waitTime:{type:[Number,String],default:60}},watch:{mobile(t){this.localMobile=t},modelValue(t){this.localVal=t}},data(){return{localVal:this.modelValue,localMobile:"",nextTime:0,diyPlaceholder:"短信验证码",btnDisabled:!1,btnText:"获取验证码",btnIntervalObj:null}},created(){this.localMobile=this.mobile},methods:{showDiyMsg(t){this.$message(t)},getSmsCode(){if(!this.localMobile){this.showDiyMsg("手机号不正确"),this.$emit("onGetSms",!1);return}if(!/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(this.localMobile)){this.showDiyMsg("手机号格式不正确"),this.$emit("onGetSms",!1);return}if(!this.codeUrl&&!this.codeApiFunc){this.showDiyMsg("短信接口地址不能为空");return}this.btnDisabled=!0,!this.btnIntervalObj&&this.btnDisabled&&(this.btnText="请稍后...",this.codeApiFunc?this.codeApiFunc({postType:"sendSms",cto_sms_type:"alterMobile",sendCode:"发送验证码",[this.mobileParam]:this.localMobile}).then(o=>{let n=o;n.status==200?(this.showDiyMsg("发送成功!"),setTimeout(()=>{if(this.codeSign){let i=n.data&&n.data.sign||"";this.diyPlaceholder="识别码:"+i}this.smsCodeWaitTime()},500)):(this.showDiyMsg("短信获取失败,请检查网络"),this.btnDisabled=!1,this.btnText="获取验证码")}).catch(o=>{this.btnDisabled=!1,this.btnText="获取验证码"}):(this.btnDisabled=!1,this.btnText="重新获取验证码"))},smsCodeWaitTime(){this.nextTime=Date.parse(new Date)/1e3+parseInt(this.waitTime),this.btnIntervalObj=setInterval(()=>{let t=this.nextTime-Date.parse(new Date)/1e3;t<=0?(clearInterval(this.btnIntervalObj),this.btnText="重新获取验证码",this.btnIntervalObj=0,this.btnDisabled=!1):(this.btnDisabled=!0,this.btnText=t.toString()+"s")},100)},updateInput(t){this.$emit("update:modelValue",this.localVal)}}};function Kl(t,o,n,i,l,a){const s=e.resolveComponent("el-button"),r=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(r,e.mergeProps(t.$props,{modelValue:l.localVal,"onUpdate:modelValue":o[0]||(o[0]=d=>l.localVal=d),clearable:"",placeholder:l.diyPlaceholder,onInput:a.updateInput}),{append:e.withCtx(()=>[e.createVNode(s,{onClick:a.getSmsCode,disabled:l.btnDisabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.btnText),1)]),_:1},8,["onClick","disabled"])]),_:1},16,["modelValue","placeholder","onInput"])}const Ie=p(Wl,[["render",Kl],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/code/src/code-sms.vue"]]);Ie.install=function(t){t.component(Ie.name,Ie)};function Gl(t,o,n){let i;n.response?i=`${n.response.error||n.response}`:n.responseText?i=`${n.responseText}`:i=`fail to post ${t} ${n.status}`;const l=new Error(i);return l.status=n.status,l.method="post",l.url=t,l}function Zl(t){const o=t.responseText||t.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}function Ql(t){if(typeof XMLHttpRequest>"u")return;const o=new XMLHttpRequest,n=t.action;o.upload&&(o.upload.onprogress=function(s){s.total>0&&(s.percent=s.loaded/s.total*100),t.onProgress(s)});const i=new FormData;t.data&&Object.keys(t.data).forEach(a=>{i.append(a,t.data[a])}),i.append(t.filename,t.file,t.file.name),o.onerror=function(s){t.onError(s)},o.onload=function(){if(o.status<200||o.status>=300)return t.onError(Gl(n,t,o));t.onSuccess(Zl(o))},o.open("post",n,!0),t.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const l=t.headers||{};for(const a in l)Object.prototype.hasOwnProperty.call(l,a)&&l[a]!==null&&o.setRequestHeader(a,l[a]);return o.send(i),o}const wt={inheritAttrs:!1,props:{valInit:{type:[String,Array],default:()=>""},drag:{type:Boolean,default:!1},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},httpRequest:Function,accept:String,beforeRemove:Function,upResponseFn:Function},data(){return{}},computed:{upAction(){return this.mergeAttrs.upAction||""},upHeaders(){return this.mergeAttrs.upHeaders||{}},upData(){return this.mergeAttrs.upData||{}},upName(){return this.mergeAttrs.upName||"file"},componentName(){return this.$options.name},mergeAttrs(){let t=this.$cvUiParams||{},o=t.upload||{},n=Object.assign({},o,t[this.componentName]);return Object.assign({},n,this.$attrs)}},methods:{handleImageUpload(t,o){const n=this.mergeAttrs;if(!t){this.$message.error("文件不存在");return}if(n.fileSize&&!(t.size/1024/1024<n.fileSize)){this.$message.error(`上传文件大小 ${n.fileSize} MB!`);return}if(!t.type.includes("image")){this.$message.error("上传类型错误");return}if(!n.upAction){this.$message.error("上传地址错误");return}Ql({action:n.upAction,file:t,headers:n.upHeaders,filename:n.upName,data:n.upData,onProgress(){return!1},onSuccess:l=>{n.upResponseFn&&(t.url=URL.createObjectURL(t),l=n.upResponseFn(l,t)),o(l)},onError:l=>{this.$message.error("上传错误")}})},beforeRemove2(){return new Promise((t,o)=>{this.$confirm("提示",{title:"确定删除??",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{t(!0)}).catch(()=>{o(!1)})})},uploadRequestFn(t){let o=new FormData;o.append("file",t.file);let n="";t.file.type==="image/png"?n="png":n="jpg",axios({url:"http://api.10.com/v1sdk/ctofile.file_img_opt",methods:"post",data:o,headers:{"Content-Type":"multipart/form-data",...this.headers}}).then(i=>{})}}},Yl={name:"cvUploadAvatar",mixins:[wt],components:{},props:{fileSize:{type:[Number],default:1},src:{type:[String],default:""}},data(){return{imageUrl:""}},mounted(){this.imageUrl=this.src||""},methods:{upAvatarBefore(t){var o=new Array;o=t.name.split(".");const n=o[o.length-1]==="jpg",i=o[o.length-1]==="png",l=o[o.length-1]==="gif",a=o[o.length-1]==="jpeg";if(!n&&!i&&!a&&l)return this.$message.error("只能上传jpg/png/gif/jpeg格式图片!"),!1;const s=t.size/1024/1024<this.fileSize;return s||this.$message.error(`上传头像图片大小不能超过 ${this.fileSize}MB!`),n||i||l||a&&s},upAvatarSuccess(t,o){this.imageUrl=URL.createObjectURL(o.raw)}}},Jl={class:"cv-upload-avatar"},Xl=["src"];function ea(t,o,n,i,l,a){const s=e.resolveComponent("Plus"),r=e.resolveComponent("el-icon"),d=e.resolveComponent("el-upload");return e.openBlock(),e.createElementBlock("div",Jl,[e.createVNode(d,e.mergeProps({action:t.upAction,withCredentials:t.withCredentials,showFileList:!1},{"before-upload":a.upAvatarBefore,"on-success":a.upAvatarSuccess}),{default:e.withCtx(()=>[l.imageUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:l.imageUrl,class:"cv-upload-avatar__img"},null,8,Xl)):(e.openBlock(),e.createBlock(r,{key:1,class:"cv-upload-avatar__icon"},{default:e.withCtx(()=>[e.createVNode(s)]),_:1}))]),_:1},16,["before-upload","on-success"])])}const Fe=p(Yl,[["render",ea],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-avatar.vue"]]),ta={name:"cvUploadImage",mixins:[wt],components:{ShowGallery:he},props:{modelValue:{type:[String,Array,Object],default(){return[]}},galleryLabel:{type:String,default:""},fileSize:{type:Number,default:2},fileType:{type:Array,default:()=>["png","jpg","jpeg","gif"]},isShowSuccessTip:{type:Boolean,default:!0},thumbSuffix:{type:String,default:""},showSize:{type:Number,default:150},showTipState:{type:Boolean,default:!0},lazy:{type:Boolean,default:!1},drag:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},upAccept:{type:String,default:"image/*"}},mounted(){this.initShowList()},data(){return{existFileList:[],existShowList:[],imageUrl:"",uploading:!1,dialogVisibleImg:!1,ImgName:"",dialogImageUrl:""}},computed:{showStyle(){return{width:this.showSize+"px",height:this.showSize+"px",lineHeight:this.showSize+"px"}},limit(){return this.multiple==!1?1:5},showTipLastState(){return this.showTipState&&(this.fileType.length||this.fileSize)},computedValues(){return this.modelValue?typeof this.modelValue=="string"?[this.modelValue]:Object.prototype.toString.call(this.modelValue)==="[object Object]"?[]:[...this.modelValue]:[]},isShowUpload(){return this.multiple?!0:this.computedValues.length===0},successFiles(){return this.fileList.filter(t=>t.status==="success")}},watch:{valInit(t){this.initShowList()}},methods:{getFileInfo(t){let o=t.lastIndexOf("/"),n=t.substring(o+1,t.length),i="";return n.lastIndexOf(".")>-1&&(i=n.slice(n.lastIndexOf(".")+1),i="image/"+i),{name:n,url:t,type:i}},initShowList(){if(this.valInit){const t=this.valInit;let o=[];if(typeof t=="string")this.imageUrl=t;else if(Object.prototype.toString.call(t)==="[object Object]")t.name&&t.url&&o.push(t);else if(Object.prototype.toString.call(t)==="[object Array]")for(let n in t){let i=t[n];typeof i=="string"?o.push(this.getFileInfo(i)):Object.prototype.toString.call(i)==="[object Object]"&&i.name&&i.url&&o.push(i)}this.existFileList=o,this.existFileList=o}else return[]},upImageBefore(t){let o=!1;if(this.fileType.length){let n="";t.name.lastIndexOf(".")>-1&&(n=t.name.slice(t.name.lastIndexOf(".")+1)),o=this.fileType.some(i=>!!(t.type.indexOf(i)>-1||n&&n.indexOf(i)>-1))}else o=t.type.indexOf("image")>-1;return o?this.fileSize&&!(t.size/1024/1024<this.fileSize)?(this.$message.error(`上传图片大小不能超过 ${this.fileSize} MB!`),!1):(this.uploading=!0,!0):(this.$message.error(`文件格式不正确, 请上传${this.fileType.join("/")}图片格式文件!`),!1)},upImageChange(t,o){this.uploading=!1,this.existFileList=o},upImageExceed(){this.$message.error(`最多上传${this.limit}张图片`)},upImageError(t){this.uploading=!1,this.$message.error("上传失败, 请重试"),this.$emit("error",t)},upImageSuccess(t,o,n){let i=t;this.uploading=!1,this.isShowSuccessTip&&this.$message.success("上传成功");const l=this.mergeAttrs;let a=null;l&&typeof l.upResponseFn=="function"&&(a=l.upResponseFn(t,o)),this.upResponseFn&&(a=this.upResponseFn(t,o,this.successFiles)),Object.prototype.toString.call(a)==="[object String]"?i=a:Object.prototype.toString.call(a)==="[object Object]"&&(i=a.value||""),this.multiple?Array.isArray(this.modelValue)?this.$emit("update:modelValue",[...this.modelValue,i]):this.$emit("update:modelValue",[i]):this.$emit("update:modelValue",i)},handlePictureCardPreview(t){var i,l,a;let o=t.raw||t,n="";o.type?n=o.type.split("/")[0]:n=(a=(l=(i=t==null?void 0:t.response)==null?void 0:i.body)==null?void 0:l.type)==null?void 0:a.split("/")[0],n=="image"?(this.dialogImageUrl=t.url,this.dialogVisibleImg=!0,this.ImgName=t.name):window.open(t.url)},doRemove(t){if(this.multiple){const o=[...this.computedValues];o.splice(t,1),this.$emit("update:modelValue",o||[])}else this.existFileList=[],this.$emit("update:modelValue","")},handleRemoveDiy(t){if(!this.beforeRemove)this.doRemove(t);else if(typeof this.beforeRemove=="function"){const o=this.multiple?this.computedValues[t]:this.computedValues,n=this.beforeRemove(o,this.computedValues);n&&n.then?n.then(()=>{this.doRemove(t)},()=>{}):n!==!1&&this.doRemove(t)}},handleRemove(t,o){if(this.existFileList.length>0&&this.multiple)for(let n in this.existFileList)this.existFileList[n].uid==t.uid&&this.handleRemoveDiy(n);else this.handleRemoveDiy(t);this.existFileList=o||[]}}},oa={class:"cv-upload-image"},na=e.createElementVNode("div",{class:"el-upload__text"},[e.createTextVNode(" 将文件拖到此处,或 "),e.createElementVNode("em",null,"点击上传")],-1),la=["src"],aa={class:"el-upload__tip"},ia={style:{color:"#f56c6c"}},sa={style:{color:"#f56c6c"}},ra={style:{color:"#f56c6c"}},ca=["src"];function da(t,o,n,i,l,a){const s=e.resolveComponent("Upload"),r=e.resolveComponent("el-icon"),d=e.resolveComponent("Plus"),c=e.resolveComponent("el-upload"),u=e.resolveComponent("el-dialog"),h=e.resolveComponent("ShowGallery"),m=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",oa,[e.withDirectives(e.createVNode(c,e.mergeProps({ref:"upload",style:{marginBottom:n.multiple&&a.computedValues.length?"20px":"0px"}},{action:t.upAction,headers:t.upHeaders,data:t.upData,name:t.upName,accept:n.upAccept,withCredentials:t.withCredentials,limit:a.limit,multiple:n.multiple,drag:!!n.drag,listType:n.drag?"picture":"picture-card",disabled:l.uploading,showFileList:!0},{"file-list":l.existFileList,"before-upload":a.upImageBefore,"on-change":a.upImageChange,"on-exceed":a.upImageExceed,"on-error":a.upImageError,"on-success":a.upImageSuccess,"http-request":t.httpRequest,"on-remove":a.handleRemove,"on-preview":a.handlePictureCardPreview}),{tip:e.withCtx(()=>[e.createElementVNode("div",aa,[e.createTextVNode(" 请上传 "),e.createElementVNode("b",ia,e.toDisplayString(n.fileType.length?n.fileType.join("/"):"图片"),1),e.createTextVNode(" 格式文件 "),n.fileSize?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" ,且大小不超过 "),e.createElementVNode("b",sa,e.toDisplayString(n.fileSize)+"MB",1)],64)):e.createCommentVNode("",!0),n.multiple?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" ,多图上传默认 "),e.createElementVNode("b",ra,e.toDisplayString(a.limit)+"张",1)],64)):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",null,[n.drag?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(s)]),_:1}),na],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.imageUrl?(e.openBlock(),e.createElementBlock("img",{key:0,src:l.imageUrl,class:"cv-upload-img__perview",style:e.normalizeStyle(a.showStyle)},null,12,la)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"cv-upload-img__plusicon",style:e.normalizeStyle(a.showStyle)},[e.createVNode(r,{size:n.showSize/3},{default:e.withCtx(()=>[e.createVNode(d)]),_:1},8,["size"])],4))],64))])),[[m,l.uploading]])]),_:1},16,["style","file-list","before-upload","on-change","on-exceed","on-error","on-success","http-request","on-remove","on-preview"]),[[e.vShow,a.isShowUpload]]),e.createVNode(u,{modelValue:l.dialogVisibleImg,"onUpdate:modelValue":o[0]||(o[0]=f=>l.dialogVisibleImg=f),title:l.ImgName,"append-to-body":!0,style:{"text-align":"center"}},{default:e.withCtx(()=>[e.createElementVNode("img",{width:"100%",src:l.dialogImageUrl,alt:"",style:{"max-width":"300px"}},null,8,ca)]),_:1},8,["modelValue","title"]),e.renderSlot(t.$slots,"gallery"),a.isShowUpload?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(h,{key:0,lazy:n.lazy,"remove-fn":a.handleRemove,size:n.showSize,sliceSingle:!0,source:l.existShowList,thumbSuffix:n.thumbSuffix,title:n.galleryLabel},null,8,["lazy","remove-fn","size","source","thumbSuffix","title"]))])}const ze=p(ta,[["render",da],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-image.vue"]]),ua={mdb:"access",accdb:"access",ai:"ai",html:"html",htm:"html",asp:"web",pdf:"pdf",psd:"photoshop",psb:"photoshop",mpo:"photoshop",eps:"photoshop",avi:"video",wmv:"video",rm:"video",rmvb:"video",mp4:"video","3gp":"video",asf:"video",mov:"video",m4v:"video",flv:"video",f4v:"video",mkv:"video",mts:"video",swf:"flash",ts:"video",mp3:"audio",wav:"audio",wma:"audio",ape:"audio",aac:"audio",zip:"zip",rar:"zip",gz:"zip","7z":"zip",z:"zip",bmp:"image",jpg:"image",jpeg:"image",png:"image",gif:"image",webp:"image",svg:"image",txt:"txt",rtf:"txt",xls:"excel",xlsx:"excel",xlsm:"excel",xltx:"excel",doc:"word",docx:"word",docm:"word",wps:"word",dotx:"word",dotm:"word",ppt:"powerpoint",pptx:"powerpoint",mdf:"db",db:"db",dbf:"db",wdb:"db",vue:"vue",php:"php",jar:"jar",ini:"ini",bat:"bat",config:"config",fla:"fla",eot:"font",otf:"font",fon:"font",font:"font",ttf:"font",ttc:"font",woff:"font",woff2:"font",js:"js",md:"markdown",one:"onenote",jsx:"reactjs",xfl:"xfl",file:"file",css:"css"};function bt(t){return`https://10ui.cn/icon_ext/${ua[t]}.svg`}const ha={name:"uploadList",props:{files:{type:Array,default(){return[]}},isShowDeleteConfim:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},isCanDownload:{type:Boolean,default:!0},isCanDelete:{type:Boolean,default:!0}},methods:{getExtension(t){if(t.lastIndexOf(".")>-1){const o=t.slice(t.lastIndexOf(".")+1).toLowerCase();return bt[o]||bt.file}else return bt.file},getSize(t){return t&&!isNaN(Number(t))?t:""},parsePercentage(t){return parseInt(t,10)},handleDownload(t){t.url},handleDelete(t,o){this.isShowDeleteConfim?this.$confirm("确认删除该文件吗? ").then(()=>{this.$emit("remove",t,o)}).catch(()=>{}):this.$emit("remove",t,o)}}},pa=["src"],ma={class:"cv-upload-list__item-content-action"};function fa(t,o,n,i,l,a){const s=e.resolveComponent("el-link");return e.openBlock(),e.createBlock(e.TransitionGroup,{class:"cv-upload-file-list el-upload-list el-upload-list--text",name:"el-list",tag:"ul"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.files,(r,d)=>(e.openBlock(),e.createElementBlock("li",{key:r.uid,class:"el-upload-list__item cv-upload-list__item-content"},[e.createVNode(s,{href:r.url,underline:!1,target:"_blank"},{default:e.withCtx(()=>[e.createElementVNode("img",{src:a.getExtension(r.name),class:"el-upload-list__item-content-name-icon"},null,8,pa),e.createElementVNode("span",null,e.toDisplayString(r.name),1)]),_:2},1032,["href"]),e.createElementVNode("div",ma,[e.createVNode(s,{underline:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.getSize(r.size)),1)]),_:2},1024),n.isCanDownload?(e.openBlock(),e.createBlock(s,{key:0,underline:!1,onClick:c=>a.handleDownload(r)},{default:e.withCtx(()=>[e.createTextVNode("下载")]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),!n.disabled&&n.isCanDelete?(e.openBlock(),e.createBlock(s,{key:1,underline:!1,onClick:c=>a.handleDelete(d,r),type:"danger"},{default:e.withCtx(()=>[e.createTextVNode(" 删除 ")]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)])]))),128))]),_:1})}const ga=p(ha,[["render",fa],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/comp/UploadList.vue"]]),va={inheritAttrs:!1,name:"cvUploadFile",mixins:[wt],components:{uploadList:ga},props:{modelValue:[String,Object,Array],fileSize:{type:Number,default:5},fileType:Array,placeholder:String,disabled:Boolean,isCanDownload:{type:Boolean,default:!0},isCanDelete:{type:Boolean,default:!0},isShowDeleteConfim:{type:Boolean,default:!0},isCanUploadSame:{type:Boolean,default:!0},isShowTip:{type:Boolean,default:!0},isShowSuccessTip:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},limit:Number},data(){return{fileList:[]}},computed:{btnText(){return this.placeholder?this.placeholder:this.multiple?"上传文件":"上传单个文件"},showTip(){return this.isShowTip&&(this.fileType||this.fileSize)},list(){let t=1;return this.modelValue?(Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]).map(n=>(typeof n=="string"&&(n={name:n,url:n}),n.uid=n.uid||new Date().getTime()+t++,n)):[]}},methods:{upFileChange(t,o){this.fileList=o},upFileBefore(t){if(this.fileType){let o="";if(t.name.lastIndexOf(".")>-1&&(o=t.name.slice(t.name.lastIndexOf(".")+1)),!this.fileType.some(i=>!!(t.type.indexOf(i)>-1||o&&o.indexOf(i)>-1)))return this.$message.error(`文件格式不正确, 请上传${this.fileType.join("/")}格式文件!`),!1}return this.fileSize&&!(t.size/1024/1024<this.fileSize)?(this.$message.error(`上传文件大小不能超过 ${this.fileSize} MB!`),!1):!this.isCanUploadSame&&this.list.some(n=>n.name+n.size===t.name+t.size)?(this.$message.error("此文件已上传!"),!1):!0},upFileExceed(){this.$message.error(`最多上传${this.limit}个文件`)},upFileError(t){this.$message.error("上传失败, 请重试"),this.$emit("error",t)},upFileSuccess(t,o){this.isShowSuccessTip&&this.$message.success("上传成功"),this.upResponseFn&&(t=this.upResponseFn(t,o,this.list)),this.multiple?this.$emit("update:modelValue",[...this.list,t]):this.$emit("update:modelValue",t),this.$emit("success",t,this.list)},handleRemove(t){if(!this.beforeRemove)this.doRemove(t);else if(typeof this.beforeRemove=="function"){const o=this.beforeRemove(this.list[t],this.list);o&&o.then?o.then(()=>{this.doRemove(t)},()=>{}):o!==!1&&this.doRemove(t)}},doRemove(t){if(this.$emit("remove",this.list[t],this.list),this.fileList.splice(t,1),this.multiple){const o=[...this.list];o.splice(t,1),this.$emit("update:modelValue",o||[])}else this.$emit("update:modelValue",null)}},created(){this.fileList=this.list}},_a={class:"cv-upload-file"},ya={key:0,class:"el-upload__tip"},Ca={style:{color:"#f56c6c"}},wa={style:{color:"#f56c6c"}};function ka(t,o,n,i,l,a){const s=e.resolveComponent("el-button"),r=e.resolveComponent("el-upload"),d=e.resolveComponent("upload-list");return e.openBlock(),e.createElementBlock("div",_a,[n.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(r,e.mergeProps({key:0,class:"cv-upload-file-uploader",ref:"upload"},{action:t.upAction,headers:t.upHeaders,data:t.upData,name:t.upName,drag:!1,limit:n.limit,multiple:n.multiple,showFileList:!0,fileList:l.fileList},{"before-upload":a.upFileBefore,"on-change":a.upFileChange,"on-exceed":a.upFileExceed,"on-error":a.upFileError,"on-success":a.upFileSuccess}),{tip:e.withCtx(()=>[a.showTip?(e.openBlock(),e.createElementBlock("div",ya,[e.createTextVNode(" 请上传 "),n.fileSize?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" 大小不超过 "),e.createElementVNode("b",Ca,e.toDisplayString(n.fileSize)+"MB",1)],64)):e.createCommentVNode("",!0),n.fileType?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" 格式为 "),e.createElementVNode("b",wa,e.toDisplayString(n.fileType.join("/")),1)],64)):e.createCommentVNode("",!0),e.createTextVNode(" 的文件 ")])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(s,{type:"primary",icon:"el-icon-upload"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.btnText),1)]),_:1})]),_:1},16,["before-upload","on-change","on-exceed","on-error","on-success"])),e.createVNode(d,{disabled:n.disabled,files:a.list,isCanDelete:n.isCanDelete,isCanDownload:n.isCanDownload,isShowDeleteConfim:n.isShowDeleteConfim,onRemove:a.handleRemove},null,8,["disabled","files","isCanDelete","isCanDownload","isShowDeleteConfim","onRemove"])])}const je=p(va,[["render",ka],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-file.vue"]]),ba={name:"cvUploadVideo",mixins:[wt],components:{},props:{modelValue:{type:String},fileSize:{type:Number,default:10},fileType:{type:Array},width:{type:Number,default:360},height:{type:Number},isShowTip:{type:Boolean,default:!0},isShowSuccessTip:{type:Boolean,default:!0},upAccept:{type:String,default:"image/*"}},data(){return{isShowVideo:!1,videoUploadPercent:0}},computed:{showTip(){return this.isShowTip&&(this.fileType||this.fileSize)}},methods:{upVideoBefore(t){let o=!1;if(Array.isArray(this.fileType)){const n=t.type.split("/");o=n[0]==="video"&&this.fileType.includes(n[1])}else o=t.type.includes("video");return o?this.fileSize&&!(t.size/1024/1024<this.fileSize)?(this.$message.error(`上传视频大小不能超过${this.fileSize}MB哦!`),!1):!0:(this.$message.error(`${t.name}格式不正确, 请上传格式正确的视频`),!1)},upVideoProcess(t,o){this.videoUploadPercent=Number(o.percentage.toFixed(0))},upVideoSuccess(t,o){this.videoUploadPercent=0,this.isShowSuccessTip&&this.$message.success("上传成功!"),this.upResponseFn?this.$emit("update:modelValue",this.upResponseFn(t,o)):this.$emit("update:modelValue",t)},upVideoError(t,o,n){this.$message.error("上传失败, 请重试!"),this.videoUploadPercent=0,this.$emit("error",t,o,n)},doRemove(){this.$emit("delete"),this.$emit("update:modelValue",null)},handleRemove(){if(!this.beforeRemove)this.doRemove();else if(typeof this.beforeRemove=="function"){const t=this.beforeRemove(this.modelValue);t&&t.then?t.then(()=>{this.doRemove()},()=>{}):t!==!1&&this.doRemove()}},handlePlayerVideo(){this.isShowVideo=!0},handleHoverClick(){this.$emit("click")}}},Va={class:"cv-upload-video"},Sa=e.createElementVNode("div",{class:"el-upload__text"},[e.createTextVNode(" 将视频拖到此处,或 "),e.createElementVNode("em",null,"点击上传")],-1),Na={key:0,class:"el-upload__tip"},Ba={style:{color:"#f56c6c"}},Ea={style:{color:"#f56c6c"}},xa={key:1,class:"vue-hover-mask"},$a=["src"],Ta=["src"];function Da(t,o,n,i,l,a){const s=e.resolveComponent("el-progress"),r=e.resolveComponent("Upload"),d=e.resolveComponent("el-icon"),c=e.resolveComponent("el-upload"),u=e.resolveComponent("ZoomIn"),h=e.resolveComponent("Delete"),m=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",Va,[n.modelValue?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(c,e.mergeProps({key:0},{action:t.upAction,headers:t.upHeaders,data:t.upData,name:t.upName,accept:n.upAccept,drag:!0,disabled:l.videoUploadPercent>0&&l.videoUploadPercent<100,showFileList:!1,withCredentials:t.withCredentials},{"before-upload":a.upVideoBefore,"on-error":a.upVideoError,"on-progress":a.upVideoProcess,"on-success":a.upVideoSuccess,httpRequest:t.httpRequest}),{default:e.withCtx(()=>[l.videoUploadPercent>0?(e.openBlock(),e.createBlock(s,{key:0,percentage:l.videoUploadPercent,style:{"margin-top":"20px"},type:"circle"},null,8,["percentage"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(d,null,{default:e.withCtx(()=>[e.createVNode(r)]),_:1}),Sa,a.showTip?(e.openBlock(),e.createElementBlock("div",Na,[e.createTextVNode(" 请上传 "),e.createElementVNode("span",Ba," "+e.toDisplayString(this.fileType?this.fileType.join("/"):"视频")+" ",1),e.createTextVNode(" 格式文件 "),n.fileSize?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" ,且文件大小不超过 "),e.createElementVNode("span",Ea,e.toDisplayString(n.fileSize),1),e.createTextVNode("  MB ")],64)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],64))]),_:1},16,["before-upload","on-error","on-progress","on-success","httpRequest"])),n.modelValue?(e.openBlock(),e.createElementBlock("div",xa,[e.createElementVNode("video",{autoplay:!1,src:n.modelValue,style:e.normalizeStyle({width:n.width+"px",height:n.height?n.height+"px":"auto"})}," 您的浏览器不支持视频播放 ",12,$a),e.createElementVNode("span",{onClick:o[2]||(o[2]=(...f)=>a.handleHoverClick&&a.handleHoverClick(...f)),class:"vue-hover-mask_actions"},[e.createElementVNode("span",{onClick:o[0]||(o[0]=(...f)=>a.handlePlayerVideo&&a.handlePlayerVideo(...f)),class:"cv-upload-video_mask__item"},[e.createVNode(d,null,{default:e.withCtx(()=>[e.createVNode(u)]),_:1})]),e.createElementVNode("span",{onClick:o[1]||(o[1]=(...f)=>a.handleRemove&&a.handleRemove(...f)),class:"cv-upload-video_mask__item"},[e.createVNode(d,null,{default:e.withCtx(()=>[e.createVNode(h)]),_:1})])])])):e.createCommentVNode("",!0),e.createVNode(m,{visible:l.isShowVideo,"append-to-body":""},{default:e.withCtx(()=>[l.isShowVideo?(e.openBlock(),e.createElementBlock("video",{key:0,autoplay:!0,src:n.modelValue,controls:"controls",style:{width:"100%"}}," 您的浏览器不支持视频播放 ",8,Ta)):e.createCommentVNode("",!0)]),_:1},8,["visible"])])}const Oe=p(ba,[["render",Da],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-video.vue"]]);Fe.install=function(t){t.component(Fe.name,Fe)};ze.install=function(t){t.component(ze.name,ze)};je.install=function(t){t.component(je.name,je)};Oe.install=function(t){t.component(Oe.name,Oe)};const La={name:"cvTabsJump",props:{tabPosition:{type:String,default:"top"}},provide(){return{addChildComponents:t=>{this.childComponents.push(t)},clearChildClass:()=>{this.childComponents.map(t=>{t.className=null})}}},data(){return{childComponents:[]}},computed:{tabPositionClass(){return this.tabPosition=="left"?"left":this.tabPosition=="right"?"right":this.tabPosition=="bottom"?"bottom":"top"}},created(){},mounted(){}},Ia={class:"tabs-header"};function Fa(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cv-tabs-jump",a.tabPositionClass])},[e.createElementVNode("div",Ia,[e.renderSlot(t.$slots,"default")])],2)}const Pe=p(La,[["render",Fa],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/tabs/src/tabs.vue"]]),za={name:"cvTabPane",emits:["click"],inject:["addChildComponents","clearChildClass"],data(){return{isshow:!0,className:null}},props:{label:{type:String,default:""},current:{type:Boolean,default:!1},name:{type:String}},mounted(){this.addChildComponents(this),this.initCurrent()},methods:{initCurrent(){this.current&&this.handleClick()},handleClick(){this.clearChildClass(),this.className="active",this.$emit("click")}}},ja={key:1};function Oa(t,o,n,i,l,a){return e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cv-tab-pane",l.className]),onClick:o[0]||(o[0]=(...s)=>a.handleClick&&a.handleClick(...s))},[t.$slots.label?e.renderSlot(t.$slots,"label",{key:0}):(e.openBlock(),e.createElementBlock("span",ja,e.toDisplayString(n.label),1))],2)),[[e.vShow,l.isshow]])}const Ae=p(za,[["render",Oa],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/tabs/src/tab-pane.vue"]]);Pe.install=function(t){t.component(Pe.name,Pe)};Ae.install=function(t){t.component(Ae.name,Ae)};const Pa={name:"cvDrawCaptcha",props:{modelValue:{type:[String,Number],default:"1234"},baseCode:{type:String,default:"1234567890ABCDEFGHGKMNPQRSTUVWXY"},fontSizeMin:{type:Number,default:25},fontSizeMax:{type:Number,default:30},backgroundColorMin:{type:Number,default:255},backgroundColorMax:{type:Number,default:255},colorMin:{type:Number,default:0},colorMax:{type:Number,default:160},lineColorMin:{type:Number,default:100},lineColorMax:{type:Number,default:255},dotColorMin:{type:Number,default:0},dotColorMax:{type:Number,default:255},contentWidth:{type:Number,default:112},contentHeight:{type:Number,default:31},refreshNum:{type:Number,default:1}},data(){return{localCode:""}},watch:{modelValue(t){this.localCode=t,this.drawPic()},refreshNum(){this.refreshCode(),this.drawPic()}},mounted(){this.modelValue==""&&(this.refreshCode(),this.drawPic())},created(){this.localCode=this.modelValue},methods:{refreshCode(){this.localCode="",this.makeCode(this.baseCode,4),this.$emit("update:modelValue",this.localCode)},makeCode(t,o){for(let n=0;n<o;n++)this.localCode+=this.baseCode[this.randomNum(0,this.baseCode.length)]},randomNum(t,o){return Math.floor(Math.random()*(o-t)+t)},randomColor(t,o){let n=this.randomNum(t,o),i=this.randomNum(t,o),l=this.randomNum(t,o);return"rgb("+n+","+i+","+l+")"},drawPic(){let o=document.getElementById("cv-draw-captcha").getContext("2d");o.textBaseline="bottom",o.fillStyle=this.randomColor(this.backgroundColorMin,this.backgroundColorMax),o.fillRect(0,0,this.contentWidth,this.contentHeight);for(let n=0;n<this.localCode.length;n++)this.drawText(o,this.localCode[n],n);this.drawLine(o),this.drawDot(o)},drawText(t,o,n){t.fillStyle=this.randomColor(this.colorMin,this.colorMax),t.font=this.randomNum(this.fontSizeMin,this.fontSizeMax)+"px SimHei";let i=(n+1)*(this.contentWidth/(this.localCode.length+1)),l=this.randomNum(this.fontSizeMax,this.contentHeight-5);var a=this.randomNum(-45,45);t.translate(i,l),t.rotate(a*Math.PI/180),t.fillText(o,0,0),t.rotate(-a*Math.PI/180),t.translate(-i,-l)},drawLine(t){for(let o=0;o<5;o++)t.strokeStyle=this.randomColor(this.lineColorMin,this.lineColorMax),t.beginPath(),t.moveTo(this.randomNum(0,this.contentWidth),this.randomNum(0,this.contentHeight)),t.lineTo(this.randomNum(0,this.contentWidth),this.randomNum(0,this.contentHeight)),t.stroke()},drawDot(t){for(let o=0;o<80;o++)t.fillStyle=this.randomColor(0,255),t.beginPath(),t.arc(this.randomNum(0,this.contentWidth),this.randomNum(0,this.contentHeight),1,0,2*Math.PI),t.fill()}}},Aa={class:"cv-draw-captcha"},Ua=["width","height"];function Ra(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",Aa,[e.createElementVNode("canvas",{id:"cv-draw-captcha",width:n.contentWidth,height:n.contentHeight,onClick:o[0]||(o[0]=(...s)=>a.refreshCode&&a.refreshCode(...s))},null,8,Ua)])}const Ue=p(Pa,[["render",Ra],["__scopeId","data-v-14994255"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/draw/src/captcha.vue"]]),Ma={name:"cvDrawQrcode",data(){return{}}};function Ha(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",null,"二维码")}const Re=p(Ma,[["render",Ha],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/draw/src/qrcode.vue"]]);Ue.install=function(t){t.component(Ue.name,Ue)};Re.install=function(t){t.component(Re.name,Re)};const qa={name:"cvTagBase",mixins:[],components:{},props:{...g.ElTag.props,modelValue:{type:Array,default:null},closable:{type:Boolean,default:!1},disableTransitions:{type:Boolean,default:!1},effect:{type:String,default:"light"},color:{type:String,default:""},hit:{type:Boolean,default:!1}},watch:{modelValue(){this.localVal=this.modelValue},localVal(){this.$emit("update:modelValue",this.localVal)}},data(){return{localVal:this.modelValue}},created(){},methods:{addTag(){this.localVal.push("新标签"),this.$nextTick(()=>{let t=this.localVal.length,o=this.$refs[`newTag${t-1}`][0],n=document.createRange();n.selectNodeContents(o),window.getSelection().removeAllRanges(),window.getSelection().addRange(n)})},checkTag(t){let o=this.$refs[`newTag${t}`][0].innerText.trim();o.length==0?this.localVal.pop():this.localVal[t]=o},removeTag(t){this.localVal.splice(t,1)}}},Wa={class:"cv-tag-base"},Ka=["onBlur"];function Ga(t,o,n,i,l,a){const s=e.resolveComponent("el-tag"),r=e.resolveComponent("CirclePlus"),d=e.resolveComponent("el-icon");return e.openBlock(),e.createElementBlock("div",Wa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.localVal,(c,u)=>(e.openBlock(),e.createBlock(s,e.mergeProps({class:"cv-tag-content"},{closable:n.closable,disableTransitions:n.disableTransitions,effect:n.effect,type:t.type,color:n.color,hit:n.hit,size:t.size},{onClose:h=>a.removeTag(u),key:u}),{default:e.withCtx(()=>[e.createElementVNode("div",{contenteditable:"plaintext-only",ref_for:!0,ref:`newTag${u}`,onBlur:h=>a.checkTag(u)},e.toDisplayString(c),41,Ka)]),_:2},1040,["onClose"]))),128)),e.createVNode(d,{onClick:o[0]||(o[0]=c=>a.addTag())},{default:e.withCtx(()=>[e.createVNode(r)]),_:1})])}const Me=p(qa,[["render",Ga],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/tag/src/base.vue"]]);Me.install=function(t){t.component(Me.name,Me)};const Za={name:"cvTransferTable",props:{modelValue:{type:[Array],default(){return[]}},showQuery:{type:Boolean,default:!1},showPagination:{type:Boolean,default:!1},paginationCallBack:{type:Function,default:function(){return new Promise((t,o)=>{try{t({total:0,data:null})}catch{o()}})}},titleTexts:{type:Array,default(){return["待选项","已选项"]}},buttonTexts:{type:Array,default(){return[]}},queryTexts:{type:Array,default(){return["查询","筛选"]}},leftColumns:{type:Array,default(){return[]}},rightColumns:{type:Array,default(){}},minHeight:{type:String,default:"300px"},maxHeight:{type:String,default:"500px"},tableRowKey:{type:Function,default(t){return t&&t&&t.id}}},data(){return{leftTableData:[],rightTableData:[],pageIndex:1,pageSize:20,totalSize:0,leftSelection:[],rightSelection:[],leftQueryCondition:{},rightQueryCondition:{},rightConditionTemp:void 0}},watch:{modelValue(t){this.rightTableData=t}},created(){this.rightTableData=this.modelValue,this.handlePaginationCallBack()},computed:{hasButtonTexts(){return this.buttonTexts.length===2},buttonClasses(){return["transfer-button",{"is-with-texts":this.hasButtonTexts}]},disabledLeftButton(){return!this.leftSelection.some(t=>!this.rightTableData.some(o=>this.checkObjectIsEqual(t,o)))},calcRightTableData(){if(this.showQuery&&this.rightConditionTemp){const t=Object.keys(this.rightConditionTemp);return this.rightTableData.filter(o=>t.some(n=>{const i=o[n],l=this.rightConditionTemp[n].trim();return i?String(i).indexOf(l)>-1:!0}))}return this.rightTableData}},methods:{handleLeftSelectionChange(t){this.leftSelection=t},handleRightSelectionChange(t){this.rightSelection=t},handleLeftRowClick(t){this.rightTableData.some(o=>this.checkObjectIsEqual(o,t))||this.$refs.leftTable.toggleRowSelection(t)},handleRightRowClick(t){this.$refs.rightTable.toggleRowSelection(t)},handleSizeChange(t){this.pageSize=t,this.handlePaginationCallBack()},handleCurrentChange(t){this.pageIndex=t,this.handlePaginationCallBack()},handlePaginationCallBack(){if(this.showPagination&&this.paginationCallBack){const t={pageIndex:this.pageIndex,pageSize:this.pageSize,...this.leftQueryCondition};this.paginationCallBack.call(null,t).then(o=>{o&&Array.isArray(o.data)&&(this.leftTableData=o.data,this.totalSize=o.total),this.$nextTick(()=>{this.leftTableData.forEach(n=>{const i=this.rightTableData.some(l=>this.checkObjectIsEqual(l,n));this.$refs.leftTable.toggleRowSelection(n,i)})})})}},handleRowStyle({row:t}){return this.rightTableData.some(o=>this.checkObjectIsEqual(o,t))?{color:"blue"}:{}},handleSelectable(t){return!this.rightTableData.some(o=>this.checkObjectIsEqual(o,t))},addToRight(){for(const t of this.leftSelection)this.rightTableData.some(n=>this.checkObjectIsEqual(n,t))||this.rightTableData.push(t);this.$emit("update:modelValue",this.rightTableData)},addToLeft(){this.rightSelection.forEach(t=>{const o=this.rightTableData.findIndex(n=>this.checkObjectIsEqual(n,t));if(o!==-1){this.rightTableData.splice(o,1);const n=this.leftTableData.find(i=>this.checkObjectIsEqual(i,t));n&&this.$refs.leftTable.toggleRowSelection(n,!1)}}),this.$emit("update:modelValue",this.rightTableData)},onLeftQuerySubmit(){this.handlePaginationCallBack()},onRightQuerySubmit(){this.rightConditionTemp=JSON.parse(JSON.stringify(this.rightQueryCondition))},checkObjectIsEqual(t,o){return this.tableRowKey(t)===this.tableRowKey(o)},clear(){this.rightTableData=[],this.$refs.leftTable.clearSelection();for(const t in this.leftQueryCondition)this.leftQueryCondition[t]=void 0;for(const t in this.rightQueryCondition)this.rightQueryCondition[t]=void 0;this.pageIndex=1,this.handlePaginationCallBack()}}},Qa={class:"cv-transfer-table"},Ya={class:"transfer-panel"},Ja={class:"transfer-panel-header"},Xa={key:0},ei={style:{padding:"5px"}},ti={class:"transfer-buttons"},oi={key:0,class:"button-text"},ni={key:0,class:"button-text"},li={class:"transfer-panel"},ai={class:"transfer-panel-header"},ii={key:0},si={style:{padding:"5px"}};function ri(t,o,n,i,l,a){const s=e.resolveComponent("el-button"),r=e.resolveComponent("el-form-item"),d=e.resolveComponent("el-form"),c=e.resolveComponent("el-table-column"),u=e.resolveComponent("el-table"),h=e.resolveComponent("el-pagination"),m=e.resolveComponent("ArrowRight"),f=e.resolveComponent("el-icon"),k=e.resolveComponent("ArrowLeft");return e.openBlock(),e.createElementBlock("div",Qa,[e.createElementVNode("div",Ya,[e.createElementVNode("p",Ja,[e.createElementVNode("span",null,e.toDisplayString(n.titleTexts&&n.titleTexts[0]),1),e.createElementVNode("span",null,e.toDisplayString(l.leftSelection.length)+"/"+e.toDisplayString(l.leftTableData.length),1)]),n.showQuery?(e.openBlock(),e.createElementBlock("div",Xa,[e.createVNode(d,{inline:!0,model:l.leftQueryCondition,class:"cv-transfer-form"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"leftCondition",{scope:l.leftQueryCondition},void 0,!0),e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(s,{type:"primary",onClick:o[0]||(o[0]=v=>a.onLeftQuerySubmit())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.queryTexts[0]),1)]),_:1})]),_:1})]),_:3},8,["model"])])):e.createCommentVNode("",!0),e.createVNode(u,{ref:"leftTable","max-height":n.maxHeight,height:n.minHeight,data:l.leftTableData,"row-key":n.tableRowKey,"row-style":a.handleRowStyle,onRowClick:a.handleLeftRowClick,onSelectionChange:a.handleLeftSelectionChange,border:"",stripe:""},{default:e.withCtx(()=>[e.createVNode(c,{width:"40px",type:"selection",selectable:a.handleSelectable},null,8,["selectable"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.leftColumns,v=>(e.openBlock(),e.createBlock(c,{prop:v.id,key:v.id,label:v.label,width:v.width},{default:e.withCtx(C=>[e.renderSlot(t.$slots,"default",{scope:{row:C.row,col:v}},()=>[e.createElementVNode("span",null,e.toDisplayString(C.row[v.id]),1)],!0)]),_:2},1032,["prop","label","width"]))),128))]),_:3},8,["max-height","height","data","row-key","row-style","onRowClick","onSelectionChange"]),e.createElementVNode("div",ei,[n.showPagination?(e.openBlock(),e.createBlock(h,{key:0,onSizeChange:a.handleSizeChange,onCurrentChange:a.handleCurrentChange,"current-page":l.pageIndex,"page-sizes":[10,20,50,100],"page-size":l.pageSize,"pager-count":5,total:l.totalSize,layout:"total, sizes, prev, pager, next"},null,8,["onSizeChange","onCurrentChange","current-page","page-size","total"])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",ti,[e.createVNode(s,{type:"primary",class:e.normalizeClass(a.buttonClasses),disabled:a.disabledLeftButton,onClick:a.addToRight},{default:e.withCtx(()=>[n.buttonTexts[0]!==void 0?(e.openBlock(),e.createElementBlock("span",oi,e.toDisplayString(n.buttonTexts[0]),1)):e.createCommentVNode("",!0),e.createVNode(f,null,{default:e.withCtx(()=>[e.createVNode(m)]),_:1})]),_:1},8,["class","disabled","onClick"]),e.createVNode(s,{type:"primary",class:e.normalizeClass(a.buttonClasses),disabled:l.rightSelection.length===0,onClick:a.addToLeft},{default:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[e.createVNode(k)]),_:1}),n.buttonTexts[1]!==void 0?(e.openBlock(),e.createElementBlock("span",ni,e.toDisplayString(n.buttonTexts[1]),1)):e.createCommentVNode("",!0)]),_:1},8,["class","disabled","onClick"])]),e.createElementVNode("div",li,[e.createElementVNode("p",ai,[e.createElementVNode("span",null,e.toDisplayString(n.titleTexts&&n.titleTexts[1]),1),e.createElementVNode("span",null,e.toDisplayString(l.rightSelection.length)+"/"+e.toDisplayString(l.rightTableData.length),1)]),n.showQuery?(e.openBlock(),e.createElementBlock("div",ii,[e.createVNode(d,{inline:!0,model:l.rightQueryCondition,class:"cv-transfer-form"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"rightCondition",{scope:l.rightQueryCondition},void 0,!0),e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(s,{type:"primary",onClick:o[1]||(o[1]=v=>a.onRightQuerySubmit())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.queryTexts[1]),1)]),_:1})]),_:1})]),_:3},8,["model"])])):e.createCommentVNode("",!0),e.createVNode(u,{ref:"rightTable","max-height":n.maxHeight,height:n.minHeight,data:a.calcRightTableData,"row-key":n.tableRowKey,onRowClick:a.handleRightRowClick,onSelectionChange:a.handleRightSelectionChange,border:"",stripe:""},{default:e.withCtx(()=>[e.createVNode(c,{width:"40px",type:"selection"}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.rightColumns||n.leftColumns,v=>(e.openBlock(),e.createBlock(c,{prop:v.id,key:v.id,label:v.label,width:v.width},{default:e.withCtx(C=>[e.renderSlot(t.$slots,"default",{scope:{row:C.row,col:v}},()=>[e.createElementVNode("span",null,e.toDisplayString(C.row[v.id]),1)],!0)]),_:2},1032,["prop","label","width"]))),128))]),_:3},8,["max-height","height","data","row-key","onRowClick","onSelectionChange"]),e.createElementVNode("div",si,[n.showPagination?(e.openBlock(),e.createBlock(h,{key:0,total:l.rightTableData.length,layout:"total"},null,8,["total"])):e.createCommentVNode("",!0)])])])}const He=p(Za,[["render",ri],["__scopeId","data-v-d01ca678"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/transfer/src/table.vue"]]);He.install=function(t){t.component(He.name,He)};const Et={provide(){return{pageCurr:this.loadConfigSetting.pageCurr||1,pageLimit:this.loadConfigSetting.pageLimit||10}},props:{...g.ElTable.props,modelValue:{type:[Array,Object],default(){return[]}},headerCellStyle:{type:[Function,Object],default:()=>({})}},data(){return{loadDataList:[]}},watch:{modelValue(t){this.loadDataList=t},loadDataList(t){this.$emit("update:modelValue",t)}},created(){this.loadDataList=this.modelValue},methods:{_getPageCurr(){return this.loadPageCurr},_getPageSize(){return this.loadPageLimit},handleCurrentChange(t){this.loadPageCurr=t,this.getData()},handleSizeChange(t){this.loadPageLimit=t,this.getData()}}},ci={name:"cvTableBase",mixins:[yt,Et],props:{align:{type:String,default:"left"},showPagebreak:{type:[Boolean,String],default:!0},tablePagin:{type:Object,default(){return{}}},tableConfig:{type:Object,default(){return{}}},tableRefresh:{type:Number,default(){return 0}}},data(){return{paginationGroup:[10,20,30,50,100,200],paginationCount:7,searchData:{},tableConfDef:{}}},watch:{tableRefresh(t,o){this.initConfAll(),this.refresh()}},updated(){},created(){this.initConfAll(),this.getData()},mounted(){},methods:{getData(){this.loadDataList=[],this.loadGetData()},handleSelectionChange(t){this.$emit("selection-change",t)},initConfAll(){let t={};Object.assign(t,this.loadConfigDef,this.tableConfDef,this.tableConfig),this.loadPageCurr=t.pageCurr||1,this.loadPageLimit=t.pageLimit||this.paginationGroup[0],Object.assign(t.where,this.searchData),this.loadConfigSetting=t},searchSubmit(t){if(this.searchData=t||{},this.loadConfigSetting.isSkip){({...this.searchData});return}this.page=1,this.getData()},searchReset(t){this.searchData={},this.page=1,this.getData()},refresh(t){this.getData()}}},di={class:"cv-table-list"},ui={key:0,class:"cv-tablie-list-page page"};function hi(t,o,n,i,l,a){const s=e.resolveComponent("el-table"),r=e.resolveComponent("cv-icons"),d=e.resolveComponent("el-button"),c=e.resolveComponent("el-pagination"),u=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",di,[e.withDirectives((e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{data:t.loadDataList,style:{width:"100%"},onSelectionChange:a.handleSelectionChange}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["data","onSelectionChange"])),[[u,t.loadDataLoading]]),n.showPagebreak?e.withDirectives((e.openBlock(),e.createElementBlock("div",ui,[e.createVNode(d,{onClick:a.refresh,style:{float:"left",margin:"0 10px 0 0",padding:"5px 10px"}},{default:e.withCtx(()=>[e.createVNode(r,{type:"refresh",size:"14"})]),_:1},8,["onClick"]),e.createVNode(c,{background:"",onSizeChange:t.handleSizeChange,onCurrentChange:t.handleCurrentChange,"pager-count":l.paginationCount,"page-sizes":l.paginationGroup,"current-page":t.loadPageCurr,"page-size":t.loadPageLimit,layout:"total, sizes, prev, pager, next, jumper",total:t.loadDataTotal},null,8,["onSizeChange","onCurrentChange","pager-count","page-sizes","current-page","page-size","total"])],512)),[[e.vShow,t.loadDataLoading===!1]]):e.createCommentVNode("",!0)])}const qe=p(ci,[["render",hi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/table-base.vue"]]),pi={name:"cvTableTree",mixins:[yt,Et],props:{tableConfig:{type:Object,default(){return{}}},tableRefresh:{type:Number,default(){return 0}}},data(){return{searchData:{},tableConfDef:{tablePrimary:"",childName:"children"},pager_count:7,page:1}},watch:{tableRefresh(t,o){this.refresh()}},created(){this.initConfAll(),this.getData()},mounted(){},methods:{getData(){this.loadDataList=[],this.loadGetData()},handleSelectionChange(t){this.$emit("selection-change",t)},initConfAll(){let t={};Object.assign(t,this.loadConfigDef,this.tableConfDef,this.tableConfig),Object.assign(t.where,this.searchData),this.loadConfigSetting=t},searchSubmit(t){if(this.searchData=t||{},this.loadConfigSetting.isSkip){({...this.searchData});return}this.page=1,this.getData()},searchReset(t){this.searchData={},this.page=1,this.getData()},refresh(t){this.getData()}}},mi={class:"cv-table-tree"};function fi(t,o,n,i,l,a){const s=e.resolveComponent("el-table"),r=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",mi,[e.withDirectives((e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{data:t.loadDataList,style:{width:"100%"},onSelectionChange:a.handleSelectionChange,"row-key":t.loadConfigSetting.tablePrimary,"tree-props":{children:t.loadConfigSetting.childName,hasChildren:"hasChildren"}}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["data","onSelectionChange","row-key","tree-props"])),[[r,t.loadDataLoading]])])}const We=p(pi,[["render",fi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/table-tree.vue"]]),gi={name:"cvTableEditor",mixins:[yt,Et],props:{border:{type:[Boolean],default:!0},tableConfig:{type:[Array,Object],default(){return{}}}},data(){return{mergeRules:{},apiFunc:null,tableConfDef:{},cell_click_index:null,cell_click_label:""}},watch:{},created(){this.loadConfigSetting=Object.assign({},this.tableConfDef,this.tableConfig)},mounted(){},methods:{cell_click(t,o,n,i){switch(this.cell_click_index=t.index,this.cell_click_label=o.label,o.label){case"taskid":this.cell_click_index=t.index,this.cell_click_label=o.label;break;case"taskname":this.cell_click_index=t.index,this.cell_click_label=o.label;break;default:return}},handleChangeTData(t){}}},vi={class:"cv-table-editor"};function _i(t,o,n,i,l,a){const s=e.resolveComponent("el-table"),r=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",vi,[e.withDirectives((e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{data:t.loadDataList,style:{width:"100%"},"row-class-name":"cv-tbed-tr"}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["data"])),[[r,t.loadDataLoading]])])}const Ke=p(gi,[["render",_i],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/table-editor.vue"]]),yi={name:"cvTbColumnIndex",inject:{pageCurr:{default:1},pageLimit:{default:10}},props:{...g.ElTableColumn.props,fixed:{type:[String],default:"left"},align:{type:String,default:"center"},width:{type:[String,Number],default:55},continuity:{type:[Boolean,String],default:!1}},data(){return{}},created(){},methods:{indexMethod(t){return this.continuity&&this.pageCurr&&this.pageLimit?t+1+(this.pageCurr-1)*this.pageLimit:t+1}}};function Ci(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{type:"index",index:a.indexMethod}),null,16,["index"])}const Ge=p(yi,[["render",Ci],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-index.vue"]]),wi={name:"cvTbColumnCheck",props:{...g.ElTableColumn.props,fixed:{type:[String],default:"left"},align:{type:[String],default:"center"},width:{type:[String,Number],default:55}},data(){return{}},created(){}};function ki(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{type:"selection"}),null,16)}const Ze=p(wi,[["render",ki],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-check.vue"]]),bi={name:"cvTbColumnText",props:{...g.ElTableColumn.props},data(){return{}},created(){},methods:{getContentText(t){let o=t.row[this.prop];return this.formatter&&(o=this.formatter(t.row,t.column)),o}}},Vi={style:{display:"contents"}};function Si(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(r=>[e.createElementVNode("div",Vi,e.toDisplayString(r.row[t.prop]),1)]),_:1},16)}const Qe=p(bi,[["render",Si],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-text.vue"]]),Ni={name:"cvTbColumnImg",props:{...g.ElTableColumn.props,imgWidth:{type:[String,Number],default:null},imgHeight:{type:[String,Number],default:null}},data(){return{localImgWidth:"50px",localImgHeight:"50px",localImgArr:[],localImgOne:""}},created(){this.imgWidth&&(this.localImgWidth=this.imgWidth.indexOf("px")!==-1?this.imgWidth:this.imgWidth+"px"),this.imgHeight&&(this.localImgHeight=this.imgHeight.indexOf("px")!==-1?this.imgHeight:this.imgHeight+"px")},methods:{handleImgOne(t){let o=t[this.prop]||null;if(o){if(Object.prototype.toString.call(o)==="[object Array]")return o[0];if(Object.prototype.toString.call(o)==="[object String]")return o}},handleImgArr(t){let o=t[this.prop]||null;if(o){if(Object.prototype.toString.call(o)==="[object Array]")return o;if(Object.prototype.toString.call(o)==="[object String]")return[o]}},handleImgLeng(t){let o=t[this.prop]||null;if(o){if(Object.prototype.toString.call(o)==="[object Array]")return o.length;if(Object.prototype.toString.call(o)==="[object String]")return 1}else return 0}}},Bi=e.createElementVNode("span",{class:"el-image__error cv-table-column-img-err",slot:"error"},[e.createTextVNode(" 暂无 "),e.createElementVNode("br"),e.createTextVNode(" 图片 ")],-1),Ei={key:0,class:"cv-table-column-img-mark"},xi={class:"cv-table-column-img-text"};function $i(t,o,n,i,l,a){const s=e.resolveComponent("el-image"),r=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(r,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(d=>[e.createElementVNode("div",{class:"cv-table-column-img-box",style:e.normalizeStyle({width:l.localImgWidth,height:l.localImgHeight})},[e.createVNode(s,{style:e.normalizeStyle({width:l.localImgWidth,height:l.localImgHeight}),fit:"scale-down",lazy:"",src:a.handleImgOne(d.row),"preview-src-list":a.handleImgArr(d.row)},{default:e.withCtx(()=>[Bi]),_:2},1032,["style","src","preview-src-list"]),a.handleImgLeng(d.row)>1?(e.openBlock(),e.createElementBlock("p",Ei,[e.createElementVNode("span",xi,e.toDisplayString(a.handleImgLeng(d.row))+"张",1)])):e.createCommentVNode("",!0)],4)]),_:1},16)}const Ye=p(Ni,[["render",$i],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-img.vue"]]),Ti={name:"cvTbColumnOpt",props:{...g.ElTableColumn.props,fixed:{type:[String],default:"right"},label:{type:[String],default:"操作"}},data(){return{}},created(){}};function Di(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(r=>[e.renderSlot(t.$slots,"default",e.normalizeProps(e.guardReactiveProps({row:r.row,$index:r.$index,scope:r})))]),_:3},16)}const Je=p(Ti,[["render",Di],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-opt.vue"]]),Li={name:"cvTbColumnBase",props:{...g.ElTableColumn.props,width:{type:[String,Number],default:""}},data(){return{}},created(){}};function Ii(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(r=>[e.renderSlot(t.$slots,"default",e.normalizeProps(e.guardReactiveProps({row:r.row,$index:r.$index,scope:r})))]),_:3},16)}const Xe=p(Li,[["render",Ii],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-base.vue"]]),Fi={name:"cvTbColumnExpand",props:{...g.ElTableColumn.props},data(){return{}},created(){}};function zi(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.mergeProps(t.$props,{type:"expand"}),{default:e.withCtx(r=>[e.renderSlot(t.$slots,"default",e.normalizeProps(e.guardReactiveProps({row:r.row,$index:r.$index,props:r})))]),_:3},16)}const et=p(Fi,[["render",zi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-expand.vue"]]),ji={name:"cvTbColumnEnum",props:{...g.ElTableColumn.props,dataLists:{type:[Object,Array],default:()=>({})}},data(){return{}},created(){},methods:{dealTypeEnum(t){let o=Object.keys(this.dataLists);return t[this.prop]?this.dataLists[t[this.prop]]||"":this.dataLists[o[0]]||""}}};function Oi(t,o,n,i,l,a){const s=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(r=>[e.createElementVNode("span",null,e.toDisplayString(a.dealTypeEnum(r.row)),1)]),_:1},16)}const tt=p(ji,[["render",Oi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-enum.vue"]]),Pi={name:"cvTbEditSearch",props:{...g.ElTableColumn.props,modelValue:{type:[String],default:""},align:{type:[String],default:"left"}},data(){return{isEditIndex:null,localVal:"",autocompleteAttr:{debounce:0},searchSett:{searchFunc:null,searchParam:{},searchMockData:null,searchField:{}},searchResList:[],searchCurrClass:"",searchCurrTbIndex:0,searchIsSelect:!1}},watch:{modelValue(t){},localVal(t){this.$emit("update:modelValue",t)}},directives:{edfocus:{mounted:t=>{}}},created(){},methods:{searchEdit(t,o){this.isEditIndex=o,this.$nextTick(()=>{this.$refs[`cv-tbce-autocomplete${o}`].focus()})},searchSave(t,o){this.isEditIndex=null},searchSelect(t,o,n){this.searchIsSelect=!0,this.localTableData[n]=Object.assign(this.localTableData[n],t),this.localTableData[n].row_num=1,t.row_attr?this.localTableData[n].row_name=t.row_name+`<br><span class="cv-tbce-showtext-attr">[ ${t.row_attr} ]</span>`:this.localTableData[n].row_name=t.row_name},searchFocus(t,o){this.searchCurrClass="cvtegac"+t,this.searchCurrTbIndex=t},searchBlur(t,o){this.searchIsSelect||(this.isEditIndex=null)},searchQuery(t,o){this.searchIsSelect=!1,this.searchResList=[];const n=this.searchSett;if(n.searchMockData!=null&&n.searchMockData){if(!(typeof n.searchMockData!="Array"&&typeof n.searchMockData!="object")){const i=this.sortOutData(n.searchMockData);this.tableData=i,this.$message({message:i.msg||"",type:"warning",duration:1300})}this.$nextTick(()=>{this.tableLoading=!1})}else n.searchFunc&&typeof n.searchFunc=="function"&&n.searchFunc({page:1,pagesize:20,keyword:t,...n.searchParam}).then(i=>{this.searchResList=[...i.data],this.searchParseData(t,o)})},searchParseData(t,o){var n=[],i=[];const l=this.searchSett;if(this.searchResList.length>0){for(let a in this.searchResList){let s=this.searchResList[a];const r=l.searchField.row_price;s.row_price=s[r];const d=l.searchField.row_stock;s.row_stock=s[d];const c=l.searchField.row_attr;s.row_attr=s[c];const u=l.searchField.row_name;s.row_name=s[u];const h=l.searchField.row_unit;s.row_unit=s[h];const m=l.searchField.row_id;s.row_id=s[m],s.value=s.row_name,i.push(s)}n=i}clearTimeout(this.timeout),this.timeout=setTimeout(()=>{o(n)},600)},inputSearchFilter(t){return o=>o.value.toLowerCase().indexOf(t.toLowerCase())===0},searchIconClick(){this.isEditIndex=null}}},Ai={class:"name"},Ui={class:"addr"},Ri={class:"addr"},Mi={class:"droplist-item"},Hi={class:"name"},qi={key:0,class:"attr"},Wi={class:"price"},Ki={class:"rest"},Gi=["onClick"];function Zi(t,o,n,i,l,a){const s=e.resolveComponent("CircleClose"),r=e.resolveComponent("el-icon"),d=e.resolveComponent("el-autocomplete"),c=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(c,e.mergeProps(t.$props,{"class-name":"cv-table-editor-search-column"}),{default:e.withCtx(u=>[l.isEditIndex==u.$index?(e.openBlock(),e.createBlock(d,e.mergeProps({key:0,ref:`cv-tbce-autocomplete${u.$index}`},l.autocompleteAttr,{modelValue:u.row[t.prop],"onUpdate:modelValue":h=>u.row[t.prop]=h,"popper-class":`cv-tbce-autocomplete cvtegac${u.$index}`,"fetch-suggestions":a.searchQuery,onSelect:h=>a.searchSelect(h,u.row,u.$index),onFocus:h=>a.searchFocus(u.$index,h),onBlur:h=>a.searchBlur(u.row,u.$index)}),{suffix:e.withCtx(()=>[e.createVNode(r,{onClick:h=>a.searchIconClick(u.row,u.$index)},{default:e.withCtx(()=>[e.createVNode(s)]),_:2},1032,["onClick"])]),default:e.withCtx(({item:h})=>[e.renderSlot(t.$slots,"default",{item:h},()=>[e.createElementVNode("div",Ai,e.toDisplayString(h.row_name),1),e.createElementVNode("span",Ui,"价格:"+e.toDisplayString(h.row_price),1),e.createElementVNode("span",Ri,e.toDisplayString(h.row_rest),1),e.createElementVNode("div",Mi,[e.createElementVNode("div",Hi,[e.createTextVNode(e.toDisplayString(h.row_name)+" ",1),h.row_attr?(e.openBlock(),e.createElementBlock("div",qi,"[ "+e.toDisplayString(h.row_attr)+"]",1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Wi,"¥ "+e.toDisplayString(h.row_price),1),e.createElementVNode("div",Ki,e.toDisplayString(h.attr_stock),1)])])]),_:2},1040,["modelValue","onUpdate:modelValue","popper-class","fetch-suggestions","onSelect","onFocus","onBlur"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:"showtext",onClick:h=>a.searchEdit(u.row,u.$index)},e.toDisplayString(u.row[t.prop]),9,Gi))]),_:3},16)}const ot=p(Pi,[["render",Zi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-search.vue"]]),Qi={name:"cvTbEditOpt",props:{tableData:{type:[Array],default:()=>[]},...g.ElTableColumn.props,label:{type:[String],default:"操作"},align:{type:[String],default:"center"},width:{type:[String],default:"100"},fixed:{type:[String],default:"left"},btnAdd:{type:[Boolean,String],default:!0},btnDel:{type:[Boolean,String],default:!0}},data(){return{localTbData:[]}},watch:{tableData(t){this.localTbData=t}},created(){this.localTbData=this.tableData},methods:{optHdDelete(t,o){this.localTbData.splice(t,1),this.localTbData.length<1&&this.optHdAdd()},optHdAdd(){this.localTbData.push({})}}};function Yi(t,o,n,i,l,a){const s=e.resolveComponent("Plus"),r=e.resolveComponent("el-icon"),d=e.resolveComponent("el-button"),c=e.resolveComponent("Close"),u=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(u,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(h=>[n.btnAdd?(e.openBlock(),e.createBlock(d,{key:0,plain:"",style:{padding:"5px",width:"26px",height:"26px"},onClick:o[0]||(o[0]=m=>a.optHdAdd())},{default:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(s)]),_:1})]),_:1})):e.createCommentVNode("",!0),n.btnDel?(e.openBlock(),e.createBlock(d,{key:1,plain:"",style:{padding:"5px",width:"26px",height:"26px"},onClick:m=>a.optHdDelete(h.$index,h.row)},{default:e.withCtx(()=>[e.createVNode(r,null,{default:e.withCtx(()=>[e.createVNode(c)]),_:1})]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)]),_:1},16)}const nt=p(Qi,[["render",Yi],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-opt.vue"]]),Ji={name:"cvTbEditText",props:{...g.ElTableColumn.props,width:{type:[String,Number],default:""},editAttr:{type:[Object],default:()=>({placeholder:"请输入"})},editClearable:{type:[Boolean],default:!0},editStyle:{type:[Object],default:()=>({"--el-input-border":0,"--el-input-border-radius":0,"--el-input-height":"36px"})},editClass:{type:[Object],default:()=>({})},editChange:{type:[Function],default:()=>{}},editFormatter:{type:[Function],default:()=>{}},toFixed:{type:[String,Number],default:""}},data(){return{currValue:"",isEditIndex:null,isErrIndex:[]}},directives:{edfocus:{mounted:t=>{t.querySelector("input").focus()},inserted:function(t){t.querySelector("input").focus()}}},created(){},methods:{textIsError(t){return this.isErrIndex&&this.isErrIndex[t]&&this.isErrIndex[t][this.prop]},textHdEdit(t,o){this.isEditIndex=o},textHdClear(t,o){},textHdSave(t,o){this.isEditIndex=null;let n=t[this.prop];if(this.toFixed!=""){let i=parseInt(this.toFixed);isNaN(n)||(t[this.prop]=parseFloat(n).toFixed(i))}else t[this.prop]=n}},render22(t,o){let n=this;return t("el-table-column",{props:{...this.$props},scopedSlots:{default:i=>{this.currValue=i.row[this.prop];let l=i.$index;return this.isEditIndex==l?t("el-input",{props:{style:this.editStyle,class:this.editClass},domProps:{value:this.currValue},props:{placeholder:this.placeholder,value:this.param},nativeOn:{keyup:a=>{a.keyCode===13&&(this.$emit("update:param",a.target.value),this.callback&&this.callback())}},on:{blur:a=>{this.$emit("update:param",a.target.value),this.callback&&this.callback()},input:function(a){n.currValue=a||a.target.value},blur:a=>{this.isEditIndex=null,n.currValue=a||a.target.value}}},this.currValue):t("span",{class:{showtext:!0},on:{click:()=>{this.isEditIndex=l}}},this.currValue)}}})}},Xi=["onClick"];function es(t,o,n,i,l,a){const s=e.resolveComponent("el-input"),r=e.resolveComponent("el-table-column"),d=e.resolveDirective("edfocus");return e.openBlock(),e.createBlock(r,e.mergeProps(t.$props,{"class-name":"cv-table-editor-text-column"}),{default:e.withCtx(c=>[l.isEditIndex==c.$index&&!n.editAttr.disabled?e.withDirectives((e.openBlock(),e.createBlock(s,e.mergeProps({key:0},n.editAttr,{clearable:n.editClearable,style:n.editStyle,class:n.editClass,modelValue:c.row[t.prop],"onUpdate:modelValue":u=>c.row[t.prop]=u,onBlur:e.withModifiers(u=>a.textHdSave(c.row,c.$index),["prevent"]),onClear:u=>a.textHdClear(c.row,c.$index)}),null,16,["clearable","style","class","modelValue","onUpdate:modelValue","onBlur","onClear"])),[[d]]):(e.openBlock(),e.createElementBlock("span",{key:1,class:"showtext",onClick:u=>a.textHdEdit(c.row,c.$index)},e.toDisplayString(c.row[t.prop]),9,Xi))]),_:1},16)}const lt=p(Ji,[["render",es],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-text.vue"]]),ts={name:"cvTbEditRadio",props:{...g.ElTableColumn.props,editAttr:{type:[Object],default:()=>({})},editStyle:{type:[Object],default:()=>({})},editClass:{type:[Object],default:()=>({})},dataLists:{type:[Object,Array],default:()=>({})},dataField:{type:Object,default:()=>({label:"label",value:"value"})},editChange:{type:[Function],default:()=>{}},editFormatter:{type:[Function],default:()=>{}}},data(){return{}},created(){}};function os(t,o,n,i,l,a){const s=e.resolveComponent("el-radio"),r=e.resolveComponent("el-radio-group"),d=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(d,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(c=>[e.createVNode(r,e.mergeProps({style:n.editStyle,class:n.editClass,modelValue:c.row[t.prop],"onUpdate:modelValue":u=>c.row[t.prop]=u},n.editAttr),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.dataLists,(u,h)=>(e.openBlock(),e.createBlock(s,{key:h,label:u[n.dataField.label],value:u[n.dataField.value]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u[n.dataField.label]),1)]),_:2},1032,["label","value"]))),128))]),_:2},1040,["style","class","modelValue","onUpdate:modelValue"])]),_:1},16)}const at=p(ts,[["render",os],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-radio.vue"]]),ns={name:"cvTbEditCheckbox",props:{...g.ElTableColumn.props,editAttr:{type:[Object],default:()=>({})},editStyle:{type:[Object],default:()=>({})},editClass:{type:[Object],default:()=>({})},dataLists:{type:[Object,Array],default:()=>({})},dataField:{type:Object,default:()=>({label:"label",value:"value"})},editChange:{type:[Function],default:()=>{}},editFormatter:{type:[Function],default:()=>{}}},data(){return{localVal:[]}},created(){},methods:{handleParseValue(t){this.localVal=[]}}};function ls(t,o,n,i,l,a){const s=e.resolveComponent("el-checkbox"),r=e.resolveComponent("el-checkbox-group"),d=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(d,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(c=>[c.row[t.prop]?(e.openBlock(),e.createBlock(r,e.mergeProps({key:0,style:n.editStyle,class:n.editClass,modelValue:c.row[t.prop],"onUpdate:modelValue":u=>c.row[t.prop]=u},n.editAttr),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.dataLists,(u,h)=>(e.openBlock(),e.createBlock(s,{key:h,label:u[n.dataField.label],value:u[n.dataField.value]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u[n.dataField.label]),1)]),_:2},1032,["label","value"]))),128))]),_:2},1040,["style","class","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0)]),_:1},16)}const it=p(ns,[["render",ls],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-checkbox.vue"]]),as={name:"cvTbEditSelect",props:{...g.ElTableColumn.props,editAttr:{type:[Object],default:()=>({})},editStyle:{type:[Object],default:()=>({})},editClass:{type:[Object],default:()=>({})},dataLists:{type:[Object,Array],default:()=>({})},dataField:{type:Object,default:()=>({label:"label",value:"value"})},editChange:{type:[Function],default:()=>{}},editFormatter:{type:[Function],default:()=>{}}},data(){return{}},created(){}};function is(t,o,n,i,l,a){const s=e.resolveComponent("el-option"),r=e.resolveComponent("el-select"),d=e.resolveComponent("el-table-column");return e.openBlock(),e.createBlock(d,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(c=>[e.createVNode(r,e.mergeProps({style:n.editStyle,class:n.editClass,modelValue:c.row[t.prop],"onUpdate:modelValue":u=>c.row[t.prop]=u},n.editAttr),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.dataLists,(u,h)=>(e.openBlock(),e.createBlock(s,{key:h,label:u[n.dataField.label],value:u[n.dataField.value]},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u[n.dataField.label]),1)]),_:2},1032,["label","value"]))),128))]),_:2},1040,["style","class","modelValue","onUpdate:modelValue"])]),_:1},16)}const st=p(as,[["render",is],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-select.vue"]]);qe.install=function(t){t.component(qe.name,qe)};We.install=function(t){t.component(We.name,We)};Ke.install=function(t){t.component(Ke.name,Ke)};Ge.install=function(t){t.component(Ge.name,Ge)};Ze.install=function(t){t.component(Ze.name,Ze)};Qe.install=function(t){t.component(Qe.name,Qe)};Ye.install=function(t){t.component(Ye.name,Ye)};Je.install=function(t){t.component(Je.name,Je)};Xe.install=function(t){t.component(Xe.name,Xe)};et.install=function(t){t.component(et.name,et)};tt.install=function(t){t.component(tt.name,tt)};ot.install=function(t){t.component(ot.name,ot)};nt.install=function(t){t.component(nt.name,nt)};lt.install=function(t){t.component(lt.name,lt)};at.install=function(t){t.component(at.name,at)};it.install=function(t){t.component(it.name,it)};st.install=function(t){t.component(st.name,st)};function ss(t){return typeof Array.isArray=="function"?Array.isArray(t):Object.prototype.toString.call(t)==="[object Array]"}function rs(t){return Object.prototype.toString.call(t)==="[object Object]"}function z(t){return ss(t)?t.length===0:rs(t)?Object.keys(t).length===0:t===""||t===void 0||t===null}const O=(t,o)=>z(t)?o:t,cs=(t,o=200,n=!1)=>{let i=!1,l=null;const a=(...s)=>new Promise((r,d)=>{if(l&&clearTimeout(l),n&&!i){const c=t.apply(void 0,s);r(c),i=!0}else l=setTimeout(()=>{const c=t.apply(void 0,s);r(c),i=!1,l=null},o)});return a.cancel=()=>{l&&clearTimeout(l),i=!1},a};function I(t){return t==null?"":String(t)}function ds(t){let o=["png","jpg","jpeg","gif","webp","svg"],n=t.lastIndexOf("."),i=t.substring(n+1);return o.indexOf(i.toLowerCase())!=-1}function us(t){return window.URL?window.URL.createObjectURL(t):window.webkitURL?window.webkitURL.createObjectURL(t):""}function hs(t){var o=new Date,n=new Date(t),i=o-n,l=Math.floor(i/1e3),a=Math.floor(l/60),s=Math.floor(a/60);if(a<1)var r=l+"秒前";else if(s<1)var r=a+"分钟前";else if(s<24)var r=s+"小时前";else var r=n.toLocaleString();return r}const ps={},ms={width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fs=e.createElementVNode("rect",{width:"12",height:"12",rx:"2",fill:"#86909C"},null,-1),gs=e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.98095 5.49307L8.22012 3.25389C8.28521 3.18881 8.39074 3.18881 8.45582 3.25389L8.69153 3.4896C8.75661 3.55468 8.75661 3.66021 8.69153 3.7253L6.45235 5.96447L8.69153 8.20364C8.75661 8.26873 8.75661 8.37426 8.69153 8.43934L8.45582 8.67505C8.39074 8.74013 8.28521 8.74013 8.22012 8.67505L5.98095 6.43587L3.74178 8.67505C3.67669 8.74013 3.57116 8.74013 3.50608 8.67505L3.27037 8.43934C3.20529 8.37426 3.20529 8.26873 3.27037 8.20364L5.50954 5.96447L3.27037 3.7253C3.20529 3.66021 3.20529 3.55468 3.27037 3.4896L3.50608 3.25389C3.57116 3.18881 3.67669 3.18881 3.74178 3.25389L5.98095 5.49307Z",fill:"white"},null,-1),vs=[fs,gs];function _s(t,o){return e.openBlock(),e.createElementBlock("svg",ms,[...vs])}const ys=p(ps,[["render",_s],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-clear.vue"]]),Cs={},ws={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon"},ks=e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00002 0.666504C12.0501 0.666504 15.3334 3.94975 15.3334 7.99984C15.3334 12.0499 12.0501 15.3332 8.00002 15.3332C3.94993 15.3332 0.666687 12.0499 0.666687 7.99984C0.666687 3.94975 3.94993 0.666504 8.00002 0.666504ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM10.6667 5.66667V7.66667H9.33333V5.66667H10.6667ZM6.66667 5.66667V7.66667H5.33333V5.66667H6.66667ZM10.0767 9.33333H11.0495C11.1804 9.33333 11.2866 9.43951 11.2866 9.57048C11.2866 9.60754 11.2779 9.64409 11.2612 9.67718L11.244 9.71053C10.6294 10.8739 9.40726 11.6667 7.99998 11.6667C6.61523 11.6667 5.40977 10.8991 4.7859 9.76612L4.73786 9.67593C4.67845 9.56052 4.72385 9.4188 4.83926 9.35939C4.87253 9.34226 4.90941 9.33333 4.94683 9.33333H5.92347C6.02396 9.33332 6.11908 9.37865 6.18238 9.4567C6.26207 9.55496 6.32833 9.62955 6.38117 9.68046C6.80074 10.0847 7.37133 10.3333 7.99998 10.3333C8.63289 10.3333 9.20694 10.0814 9.62728 9.67224C9.67791 9.62296 9.74135 9.55121 9.8176 9.45698C9.88089 9.37877 9.97611 9.33333 10.0767 9.33333Z"},null,-1),bs=[ks];function Vs(t,o){return e.openBlock(),e.createElementBlock("svg",ws,[...bs])}const Ss=p(Cs,[["render",Vs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-emoji.vue"]]),Ns={},Bs={class:"comment-common-icon"},Es=e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:""},[e.createElementVNode("path",{d:"M4.88933 0.613974C4.92947 0.616946 4.96831 0.629568 5.00253 0.650767C6.67348 1.68589 7.55141 3.13884 7.63632 5.00962C7.947 5.00962 8.2245 4.65999 8.46882 3.96072L8.49487 3.88447C8.53862 3.75351 8.68025 3.68282 8.8112 3.72656C8.83398 3.73417 8.85554 3.74502 8.87522 3.75878C9.96316 4.5193 10.5048 5.50231 10.5 6.70782C10.4999 6.73762 10.4982 6.76675 10.495 6.7952C10.4985 6.86294 10.5 6.93131 10.5 7.00005C10.5 9.48533 8.48528 11.5 6 11.5C3.51472 11.5 1.5 9.48533 1.5 7.00005C1.5 6.90255 1.5031 6.80578 1.50921 6.70983C1.5062 6.70917 1.5031 6.70849 1.5 6.70782C1.50864 6.60849 1.52139 6.50994 1.53824 6.41219C1.54515 6.35775 1.55321 6.30373 1.56222 6.25003L1.57017 6.24983C1.7622 5.3813 2.28426 4.57601 3.13635 3.83394C4.00892 3.07405 4.50079 2.11523 4.61198 0.957499L4.62156 0.844839C4.63175 0.707146 4.75163 0.603784 4.88933 0.613974Z"})],-1),xs=[Es];function $s(t,o){return e.openBlock(),e.createElementBlock("i",Bs,[...xs])}const Ts=p(Ns,[["render",$s],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-hot.vue"]]),Ds={},Ls={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon"},Is=e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 1.3335C14.3514 1.3335 14.6394 1.60546 14.6648 1.95041L14.6666 2.00016V14.0002C14.6666 14.3516 14.3947 14.6396 14.0497 14.665L14 14.6668H1.99998C1.64853 14.6668 1.36059 14.3949 1.33514 14.0499L1.33331 14.0002V2.00016C1.33331 1.64871 1.60527 1.36077 1.95023 1.33532L1.99998 1.3335H14ZM13.3333 2.66618H2.66664V13.3328H13.3333V2.66618ZM11.9219 6.7879C11.9719 6.83791 12 6.90574 12 6.97647V11.7993C12 11.9098 11.9104 11.9993 11.8 11.9993H6.81615C6.7975 11.9993 6.77945 11.9968 6.76232 11.992L3.91042 11.9847C3.79996 11.9844 3.71063 11.8947 3.7109 11.7842C3.71102 11.7313 3.73209 11.6807 3.76948 11.6433L6.52468 8.88807C6.62882 8.78393 6.79766 8.78393 6.9018 8.88807L8.17297 10.1593L11.5447 6.7879C11.6489 6.68376 11.8177 6.68376 11.9219 6.7879ZM5.99997 3.99951V5.99951H3.99997V3.99951H5.99997Z"},null,-1),Fs=[Is];function zs(t,o){return e.openBlock(),e.createElementBlock("svg",Ls,[...Fs])}const js=p(Ds,[["render",zs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-image.vue"]]),Os={},Ps={class:"comment-common-icon"},As=e.createElementVNode("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M586.624 234.624a74.624 74.624 0 1 1-149.184 0 74.624 74.624 0 0 1 149.12 0z m0 554.624a74.624 74.624 0 1 1-149.248 0 74.624 74.624 0 0 1 149.248 0zM512 586.624a74.624 74.624 0 1 0 0-149.248 74.624 74.624 0 0 0 0 149.248z",fill:"currentColor"})],-1),Us=[As];function Rs(t,o){return e.openBlock(),e.createElementBlock("i",Ps,[...Us])}const Ms=p(Os,[["render",Rs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-itemopt.vue"]]),Hs={},qs={class:"comment-common-icon",style:{color:"#1e80ff"}},Ws=e.createElementVNode("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1534"},[e.createElementVNode("path",{d:"M668.928 166.912c-20.48-53.504-47.9744-84.7872-82.0224-94.9248-33.5872-10.0352-61.952 4.096-76.032 13.9776-27.5456 19.3536-41.216 49.664-50.0224 74.1376-3.3792 9.3184-6.4512 19.0976-9.216 27.9552l-2.6624 8.3968a227.8912 227.8912 0 0 1-10.3936 27.9552c-25.344 52.9408-47.4112 84.5312-66.7648 104.96-18.944 19.968-36.4544 30.464-55.1936 39.7824a45.3632 45.3632 0 0 0-25.088 40.5504l-0.1024 480.7168c0 24.9344 20.2752 45.2096 45.2096 45.2096h423.0656c21.7088 0 38.144-6.912 50.0224-16.9984a72.192 72.192 0 0 0 14.4896-16.896l0.2048-0.2048 0.0512-0.1536 0.8192-1.024 1.2288-1.8944c39.424-63.7952 66.7648-114.688 88.2176-175.616 24.4224-69.4784 36.8128-129.6896 42.0352-176.64 5.12-45.6704 3.7888-81.664-1.5872-101.376a77.9776 77.9776 0 0 0-45.568-52.3264 116.5824 116.5824 0 0 0-45.4144-8.6016l-192.8192-2.6624c28.1088-115.0976 10.0864-181.6064-2.4576-214.3744zM64.0512 413.9008a45.2096 45.2096 0 0 1 45.1584-47.36H176.128c24.9344 0 45.2096 20.2752 45.2096 45.2096v480.6144a45.2096 45.2096 0 0 1-45.2096 45.2096h-44.288a45.2096 45.2096 0 0 1-45.1584-43.0592L64 413.952z","p-id":"1535"})],-1),Ks=[Ws];function Gs(t,o){return e.openBlock(),e.createElementBlock("i",qs,[...Ks])}const Zs=p(Hs,[["render",Gs],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-like-on.vue"]]),Qs={},Ys={class:"comment-common-icon"},Js=e.createElementVNode("svg",{t:"1650360973068",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1168",width:"200",height:"200"},[e.createElementVNode("path",{d:"M547.968 138.88c6.656-4.672 14.08-6.976 20.48-5.056 6.08 1.792 22.848 10.752 40.192 56.128 8.576 22.4 27.264 81.536-5.632 197.504a45.44 45.44 0 0 0 42.88 57.984l217.6 3.008h0.448a53.12 53.12 0 0 1 20.096 3.328 16.256 16.256 0 0 1 5.568 3.648 14.464 14.464 0 0 1 3.264 6.4c2.176 7.808 4.608 33.984-0.256 77.248-4.672 41.984-15.936 97.408-38.784 162.368-19.136 54.336-43.52 100.48-81.472 161.792a56.384 56.384 0 0 0-1.664 2.496l-0.128 0.128-1.408 2.112a7.872 7.872 0 0 1-1.28 1.472 3.84 3.84 0 0 1-1.28 0.64 20.48 20.48 0 0 1-6.848 0.96H356.032V421.44c19.712-10.624 40.704-24.576 62.592-47.616 25.472-26.88 51.008-64.768 78.208-121.6 5.568-11.584 9.856-24.384 13.632-36.032l3.072-9.856c2.688-8.448 5.184-16.384 8.064-24.32 8.064-22.4 16.128-36.032 26.368-43.136z m120.96 27.968c-20.48-53.44-48-84.736-81.984-94.912-33.6-9.984-61.952 4.16-76.032 14.08-27.584 19.264-41.28 49.6-50.048 74.048-3.392 9.344-6.464 19.2-9.216 27.968l-2.688 8.448a227.84 227.84 0 0 1-10.432 27.904c-25.28 52.928-47.36 84.544-66.752 104.96-18.944 19.968-36.48 30.464-55.168 39.808a45.376 45.376 0 0 0-25.088 40.576l-0.064 480.64c0 24.96 20.224 45.248 45.184 45.248h423.04c21.76 0 38.144-6.912 50.048-16.96a71.808 71.808 0 0 0 14.528-16.896l0.128-0.256 0.128-0.128 0.832-0.96 1.152-1.92c39.424-63.872 66.816-114.688 88.256-175.68a810.24 810.24 0 0 0 42.048-176.64c5.12-45.632 3.776-81.664-1.6-101.376a77.952 77.952 0 0 0-45.568-52.288 116.544 116.544 0 0 0-45.44-8.64l-192.768-2.688c28.096-115.072 10.048-181.568-2.496-214.336z m-604.864 247.04a45.184 45.184 0 0 1 45.12-47.296h67.008c24.96 0 45.184 20.288 45.184 45.248v480.64c0 24.96-20.224 45.12-45.184 45.12H131.84a45.184 45.184 0 0 1-45.12-43.072l-22.656-480.64z","p-id":"1169"})],-1),Xs=[Js];function er(t,o){return e.openBlock(),e.createElementBlock("i",Ys,[...Xs])}const tr=p(Qs,[["render",er],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-like-off.vue"]]),or={},nr={width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:""},lr=e.createElementVNode("path",{"data-v-d6f79dbc":"","fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.99976 7.93206L10.0656 3.86619C10.1633 3.76856 10.3215 3.76856 10.4192 3.86619L10.7727 4.21975C10.8704 4.31738 10.8704 4.47567 10.7727 4.5733L6.35331 8.99272C6.15805 9.18798 5.84147 9.18798 5.6462 8.99272L1.22679 4.5733C1.12916 4.47567 1.12916 4.31738 1.22679 4.21975L1.58034 3.86619C1.67797 3.76856 1.83626 3.76856 1.93389 3.86619L5.99976 7.93206Z"},null,-1),ar=[lr];function ir(t,o){return e.openBlock(),e.createElementBlock("svg",nr,[...ar])}const sr=p(or,[["render",ir],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-look.vue"]]),rr={},cr={class:"comment-common-icon"},dr=e.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:""},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.99951 0.5C9.03708 0.5 11.4995 2.96243 11.4995 6C11.4995 9.03757 9.03708 11.5 5.99951 11.5C2.96195 11.5 0.499512 9.03757 0.499512 6C0.499512 2.96243 2.96195 0.5 5.99951 0.5ZM6.25 3.49988C6.38807 3.49988 6.5 3.61181 6.5 3.74988V5.49988H8.25C8.38807 5.49988 8.5 5.61181 8.5 5.74988V6.24988C8.5 6.38795 8.38807 6.49988 8.25 6.49988H5.75C5.61193 6.49988 5.5 6.38795 5.5 6.24988V3.74988C5.5 3.61181 5.61193 3.49988 5.75 3.49988H6.25Z"})],-1),ur=[dr];function hr(t,o){return e.openBlock(),e.createElementBlock("i",cr,[...ur])}const pr=p(rr,[["render",hr],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-new.vue"]]),mr={},fr={class:"comment-common-icon"},gr=e.createElementVNode("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1320",width:"200",height:"200"},[e.createElementVNode("path",{d:"M147.264 647.296V220.928c0-49.536 40.128-89.728 89.6-89.728H793.6c49.536 0 89.728 40.192 89.728 89.728v426.368c0 49.536-40.128 89.728-89.6 89.728h-145.216a47.04 47.04 0 0 0-28.16 9.408l-194.56 145.792a3.392 3.392 0 0 1-5.12-1.984l-26.752-116.672a47.04 47.04 0 0 0-45.824-36.544H236.992a89.728 89.728 0 0 1-89.728-89.728zM236.864 64A156.928 156.928 0 0 0 80 220.928l0.064 426.368a156.928 156.928 0 0 0 156.928 156.928h94.976l23.232 101.312 0.064 0.448a70.592 70.592 0 0 0 109.696 40.832l190.208-142.592H793.6a156.928 156.928 0 0 0 156.928-156.928l-0.064-426.368A156.928 156.928 0 0 0 793.536 64H236.928z m69.44 442.496a65.344 65.344 0 1 0 0-130.752 65.344 65.344 0 0 0 0 130.752z m268.8-65.344a65.344 65.344 0 1 1-130.752 0 65.344 65.344 0 0 1 130.752 0z m138.368 65.344a65.344 65.344 0 1 0 0-130.752 65.344 65.344 0 0 0 0 130.752z","p-id":"1321"})],-1),vr=[gr];function _r(t,o){return e.openBlock(),e.createElementBlock("i",fr,[...vr])}const yr=p(mr,[["render",_r],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-reply.vue"]]),Cr=t=>(e.pushScopeId("data-v-60eb8f0b"),t=t(),e.popScopeId(),t),wr={class:"cv-comment-emoji"},kr={class:"face-tooltip-head select-none"},br=["onClick"],Vr=["src"],Sr={class:"emoji-body select-none"},Nr={style:{padding:"0 5px"}},Br=["onClick"],Er={class:"emoji-btn select-none"},xr={key:0},$r=Cr(()=>e.createElementVNode("span",null,"表情",-1)),Tr=Object.assign({name:"CompInputEmoji"},{__name:"input-emoji",props:{emoji:{faceList:[],emojiList:[],allEmoji:{}},placement:"bottom"},emits:["addEmoji"],setup(t,{emit:o}){const n=t,i=e.ref(0),l=e.ref(0),a=e.ref(new Array(2)),{emojiList:s,faceList:r}=n.emoji;function d(u){switch(i.value=u,u){case 0:l.value=0;break;case 1:l.value=-50,a.value[1]=s[1];break}}function c(){a.value[0]=s[0]}return(u,h)=>(e.openBlock(),e.createElementBlock("div",wr,[e.createVNode(e.unref(g.ElPopover),{placement:t.placement,"popper-class":"emoji-popover",width:250,trigger:"click",onBeforeEnter:c},{reference:e.withCtx(()=>[e.createElementVNode("div",Er,[u.$slots.default?e.renderSlot(u.$slots,"default",{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",xr,[e.createVNode(e.unref(Ss)),$r]))])]),default:e.withCtx(()=>[e.createElementVNode("div",kr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(m,f)=>(e.openBlock(),e.createElementBlock("label",{key:f,class:e.normalizeClass(i.value==f?"active":""),onClick:k=>d(f)},[e.createElementVNode("img",{src:m,alt:""},null,8,Vr)],10,br))),128))]),e.createElementVNode("div",Sr,[e.createElementVNode("div",{class:"emjio-container",style:e.normalizeStyle({transform:`translateX(${l.value}%)`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(m,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"emoji-wrapper"},[e.createVNode(e.unref(g.ElScrollbar),null,{default:e.withCtx(()=>[e.createElementVNode("div",Nr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(k,v)=>(e.openBlock(),e.createElementBlock("span",{key:v,class:"emoji-item",onClick:C=>u.$emit("addEmoji",v)},[e.createVNode(e.unref(g.ElImage),{src:k,title:String(v),class:"emoji",style:{width:"24px",height:"24px",margin:"5px"},lazy:""},null,8,["src","title"])],8,Br))),128))])]),_:2},1024)]))),128))],4)])]),_:3},8,["placement"])]))}}),Dr=p(Tr,[["__scopeId","data-v-60eb8f0b"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/input-emoji.vue"]]),Ut=t=>(e.pushScopeId("data-v-cb6d934c"),t=t(),e.popScopeId(),t),Lr={class:"cv-comment-editor"},Ir=["placeholder","innerHTML"],Fr=["src"],zr=["onClick"],jr={key:0,class:"cv-comment-editor__action"},Or=Ut(()=>e.createElementVNode("span",null,"图片",-1)),Pr=Ut(()=>e.createElementVNode("span",{style:{"margin-right":"10px"}},[e.createTextVNode(" 文明上网理性发言,请遵守 "),e.createElementVNode("a",{href:"###",target:"_blank"},"《新闻评论服务协议》")],-1)),Ar={__name:"input-box",props:{placeholder:"",contentBtn:"",parentId:"",reply:""},emits:["hide","close"],setup(t,{expose:o,emit:n}){const i=t,l=e.ref(""),a=e.ref(),s=e.ref(!1),r=e.ref(!1),d=e.ref(),c=e.ref(!0),u=e.ref(),h=e.ref(),m=e.ref([]),f=e.ref([]),k=e.reactive({imgLength:0}),v={minHeight:64},C=e.ref(),y=e.ref(!1),_=e.ref(),w=e.computed(()=>v.minHeight+"px"),S=e.computed(()=>"8px 12px"),B=n,{upload:T,submit:D,focus:A}=e.inject("InjectInputBox"),U=e.inject("InjectionEmojiApi");e.watch(()=>l.value,V=>{y.value||(a.value=V)});function Tt(){D({content:i.reply?`回复 <span style="color: var(--cv-color-success-dark-2);">@${i.reply.user.username}:</span> ${l.value}`:l.value,parentId:O(i.parentId,null),reply:i.reply,files:f.value,clear:()=>{so(),B("close")}})}function Xt(V){z(l.value)&&!k.imgLength&&(r.value=!1,B("hide",V))}function eo(V){y.value=!0,s.value=!0,r.value=!0,e.nextTick(()=>{u.value=document.querySelector("div[id^='el-popper-container']")}),A()}function to(V){var b,E;C.value=(b=window.getSelection())==null?void 0:b.getRangeAt(0),(E=d.value)!=null&&E.innerHTML||(s.value=!1),y.value=!1}function oo(V){const{innerHTML:b}=(V==null?void 0:V.target)||V;l.value=b||"",z(l.value.replace(/&nbsp;|<br>| /g,""))?c.value=!0:c.value=!1}function no(V){var E;let b=window.getSelection();b&&(b.removeAllRanges(),C.value||(Dt(),C.value=b.getRangeAt(0)),C.value.deleteContents(),C.value.insertNode(C.value.createContextualFragment(V)),C.value.collapse(!1),b.addRange(C.value),l.value=((E=d==null?void 0:d.value)==null?void 0:E.innerHTML)||"",z(l.value.replace(/&nbsp;|<br>| /g,""))?c.value=!0:c.value=!1)}function lo(){d.value&&(d.value.innerHTML="",l.value=d.value.innerHTML,s.value=!1)}function Dt(){e.nextTick(()=>{var V;(V=d.value)==null||V.focus()})}function ao(V){V.ctrlKey&&V.key=="Enter"&&(z(l.value.replace(/&nbsp;|<br>| /g,""))?g.ElMessage({message:"内容不能为空",type:"info"}):Tt())}function io(V){var E;m.value.length=0,f.value.length=0;const b=(E=h.value)==null?void 0:E.files;if(k.imgLength=O(b==null?void 0:b.length,0),b)for(let x=0;x<b.length;x++){let j=b[x].name,co=us(b[x]);f.value.push(b[x]),ds(j)?m.value.push(co):g.ElMessage({type:"warn",message:"请选择图片类型文件!",duration:2500})}}function so(){lo(),m.value.length=0,f.value=[],c.value=!0}function ro(V){var b;(b=m==null?void 0:m.value)==null||b.splice(V,1)}return e.onMounted(()=>{var V;(V=d.value)==null||V.addEventListener("keyup",b=>{const E=b.target;E.innerHTML=="<br>"&&(E.innerHTML="")})}),o({focus:()=>Dt()}),(V,b)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",Lr,[e.createElementVNode("div",{class:e.normalizeClass(["cv-comment-editor__box",{active:s.value,"input-active":r.value}])},[e.createElementVNode("div",{ref_key:"editorRef",ref:d,class:"rich-input",contenteditable:"true",placeholder:i.placeholder,onFocus:eo,onInput:oo,onBlur:to,onKeydown:e.withKeys(ao,["enter"]),innerHTML:a.value,style:e.normalizeStyle({minHeight:w.value,padding:S.value})},null,44,Ir),e.createElementVNode("div",{ref_key:"imageRef",ref:_,class:"image-preview-box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(E,x)=>(e.openBlock(),e.createElementBlock("div",{key:x,class:"image-preview"},[e.createElementVNode("img",{src:E,alt:""},null,8,Fr),e.createElementVNode("div",{class:"clean-btn",onClick:j=>ro(x)},[e.createVNode(e.unref(ys))],8,zr)]))),128))],512)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",jr,[e.createElementVNode("div",null,[e.createVNode(Dr,{emoji:e.unref(U),onAddEmoji:b[0]||(b[0]=E=>no(E))},null,8,["emoji"]),e.createElementVNode("div",{class:"picture",onClick:b[1]||(b[1]=(...E)=>{var x,j;return((x=h.value)==null?void 0:x.click)&&((j=h.value)==null?void 0:j.click(...E))})},[e.createVNode(e.unref(js)),Or,e.createElementVNode("input",{id:"comment-upload",ref_key:"inputRef",ref:h,type:"file",multiple:"",onChange:io},null,544)])]),e.createElementVNode("div",null,[Pr,e.createVNode(e.unref(g.ElButton),{type:"primary",disabled:c.value,onClick:Tt},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.contentBtn),1)]),_:1},8,["disabled"])])])):e.createCommentVNode("",!0)]),_:1})])),[[e.unref(g.ClickOutside),Xt,u.value]])}},Rt=p(Ar,[["__scopeId","data-v-cb6d934c"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/input-box.vue"]]),Ur={class:"u-fold"},Rr={class:"action-box select-none"},Mr=Object.assign({name:"UFold"},{__name:"fold",props:{line:{type:[Number,String],default:5}},setup(t){e.useCssVars(r=>({"11c6ae4f-line":n.value}));const o=t,n=e.computed(()=>{let r=Math.trunc(Number(o.line));return r>0?r:1}),i=e.ref(!0),l=e.ref(!1),a=e.ref();let s;return e.onMounted(()=>{s=new ResizeObserver(r=>{i.value&&a.value&&(l.value=a.value.offsetHeight<a.value.scrollHeight)}),s.observe(a.value)}),e.onUnmounted(()=>{s.disconnect()}),(r,d)=>(e.openBlock(),e.createElementBlock("div",Ur,[e.createElementVNode("div",{class:e.normalizeClass(["txt-box",{"over-hidden":i.value}])},[e.createElementVNode("div",{ref_key:"divBox",ref:a},[e.renderSlot(r.$slots,"default",{},void 0,!0)],512)],2),e.createElementVNode("div",Rr,[l.value&&r.unfold?(e.openBlock(),e.createElementBlock("div",{key:0,class:"expand-btn",onClick:d[0]||(d[0]=c=>i.value=!i.value)},e.toDisplayString(i.value?"展开":"收起"),1)):e.createCommentVNode("",!0)])]))}}),Hr=p(Mr,[["__scopeId","data-v-11c6ae4f"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/fold.vue"]]),qr={__name:"user-card",props:{uid:""},setup(t){const o=e.ref({}),{showInfo:n}=e.inject("InjectContentBox"),i=e.inject("InjectSlots"),l=()=>e.h("div",i.card(o.value));return(a,s)=>e.unref(i).card?(e.openBlock(),e.createBlock(e.unref(g.ElPopover),{key:0,placement:"top",width:300,"show-after":300,onBeforeEnter:s[0]||(s[0]=()=>e.unref(n)(t.uid,r=>o.value=r))},{reference:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),default:e.withCtx(()=>[e.createVNode(l)]),_:3})):e.renderSlot(a.$slots,"default",{key:1})}},Lt=p(qr,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/user-card.vue"]]);function Mt(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function kt(t){return typeof t=="function"?t():e.unref(t)}const xt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Wr=Object.prototype.toString,Kr=t=>Wr.call(t)==="[object Object]",Gr=()=>{};function Zr(t){let o;function n(){return o||(o=t()),o}return n.reset=async()=>{const i=o;o=void 0,i&&await i},n}function Qr(t,o,n={}){const{immediate:i=!0}=n,l=e.ref(!1);let a=null;function s(){a&&(clearTimeout(a),a=null)}function r(){l.value=!1,s()}function d(...c){s(),l.value=!0,a=setTimeout(()=>{l.value=!1,a=null,t(...c)},kt(o))}return i&&(l.value=!0,xt&&d()),Mt(r),{isPending:e.readonly(l),start:d,stop:r}}function Yr(t){var o;const n=kt(t);return(o=n==null?void 0:n.$el)!=null?o:n}const Jr=xt?window:void 0,Ht=xt?window.navigator:void 0;function qt(...t){let o,n,i,l;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,i,l]=t,o=Jr):[o,n,i,l]=t,!o)return Gr;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],s=()=>{a.forEach(u=>u()),a.length=0},r=(u,h,m,f)=>(u.addEventListener(h,m,f),()=>u.removeEventListener(h,m,f)),d=e.watch(()=>[Yr(o),kt(l)],([u,h])=>{if(s(),!u)return;const m=Kr(h)?{...h}:h;a.push(...n.flatMap(f=>i.map(k=>r(u,f,k,m))))},{immediate:!0,flush:"post"}),c=()=>{d(),s()};return Mt(c),c}function Xr(){const t=e.ref(!1),o=e.getCurrentInstance();return o&&e.onMounted(()=>{t.value=!0},o),t}function Wt(t){const o=Xr();return e.computed(()=>(o.value,!!t()))}function It(t,o={}){const{controls:n=!1,navigator:i=Ht}=o,l=Wt(()=>i&&"permissions"in i);let a;const s=typeof t=="string"?{name:t}:t,r=e.ref(),d=()=>{a&&(r.value=a.state)},c=Zr(async()=>{if(l.value){if(!a)try{a=await i.permissions.query(s),qt(a,"change",d),d()}catch{r.value="prompt"}return a}});return c(),n?{state:r,isSupported:l,query:c}:r}function ec(t={}){const{navigator:o=Ht,read:n=!1,source:i,copiedDuring:l=1500,legacy:a=!1}=t,s=Wt(()=>o&&"clipboard"in o),r=It("clipboard-read"),d=It("clipboard-write"),c=e.computed(()=>s.value||a),u=e.ref(""),h=e.ref(!1),m=Qr(()=>h.value=!1,l);function f(){s.value&&y(r.value)?o.clipboard.readText().then(_=>{u.value=_}):u.value=C()}c.value&&n&&qt(["copy","cut"],f);async function k(_=kt(i)){c.value&&_!=null&&(s.value&&y(d.value)?await o.clipboard.writeText(_):v(_),u.value=_,h.value=!0,m.start())}function v(_){const w=document.createElement("textarea");w.value=_??"",w.style.position="absolute",w.style.opacity="0",document.body.appendChild(w),w.select(),document.execCommand("copy"),w.remove()}function C(){var _,w,S;return(S=(w=(_=document==null?void 0:document.getSelection)==null?void 0:_.call(document))==null?void 0:w.toString())!=null?S:""}function y(_){return _==="granted"||_==="prompt"}return{isSupported:c,text:u,copied:h,copy:k}}const tc={class:"comment-list-actbox__right"},oc={class:"operation-warp"},nc={class:"dialog-footer"},lc={__name:"comment-operate",props:{data:{type:[Object],default:()=>({})}},setup(t){const{copy:o}=ec(),n=e.ref(!1),i=e.ref({report_type:"",report_content:""}),l=t;function a(){let r=l.data||{};n.value=!1,g.ElMessage({type:"info",message:"举报成功: "+r.id})}function s(r){let d=l.data||{};switch(r){case"remove":setTimeout(()=>{var c;(c=commentRef.value)==null||c.remove(d)},200);break;case"report":n.value=!0;break;case"copy":o(d.content),g.ElMessage({type:"info",message:"复制成功"})}}return(r,d)=>{const c=e.resolveComponent("el-dropdown-item"),u=e.resolveComponent("el-dropdown-menu"),h=e.resolveComponent("el-dropdown"),m=e.resolveComponent("el-radio"),f=e.resolveComponent("el-radio-group"),k=e.resolveComponent("el-form-item"),v=e.resolveComponent("el-input"),C=e.resolveComponent("el-form"),y=e.resolveComponent("el-button"),_=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",tc,[e.createVNode(h,{trigger:"click",onCommand:d[0]||(d[0]=w=>s(w))},{dropdown:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(c,{command:"report"},{default:e.withCtx(()=>[e.createTextVNode("举报")]),_:1}),e.createVNode(c,{command:"remove"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:1}),e.createVNode(c,{divided:"",command:"copy"},{default:e.withCtx(()=>[e.createTextVNode("复制")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",oc,[e.createVNode(e.unref(Ms))])]),_:1}),e.createVNode(_,{title:"举报",modelValue:n.value,"onUpdate:modelValue":d[4]||(d[4]=w=>n.value=w),width:"400px",style:{width:"90%","max-width":"400px"}},{footer:e.withCtx(()=>[e.createElementVNode("span",nc,[e.createVNode(y,{onClick:d[3]||(d[3]=w=>n.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(y,{type:"primary",onClick:a},{default:e.withCtx(()=>[e.createTextVNode("提交")]),_:1})])]),default:e.withCtx(()=>[e.createVNode(C,{"label-position":"top"},{default:e.withCtx(()=>[e.createVNode(k,{label:"您为什么要举报此信息?"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:i.value.report_type,"onUpdate:modelValue":d[1]||(d[1]=w=>i.value.report_type=w)},{default:e.withCtx(()=>[e.createVNode(m,{value:"色情淫秽"},{default:e.withCtx(()=>[e.createTextVNode("色情淫秽")]),_:1}),e.createVNode(m,{value:"骚扰谩骂"},{default:e.withCtx(()=>[e.createTextVNode("骚扰谩骂")]),_:1}),e.createVNode(m,{value:"广告欺诈"},{default:e.withCtx(()=>[e.createTextVNode("广告欺诈")]),_:1}),e.createVNode(m,{value:"反动"},{default:e.withCtx(()=>[e.createTextVNode("反动")]),_:1}),e.createVNode(m,{value:"其他"},{default:e.withCtx(()=>[e.createTextVNode("其他")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(k,{label:"举报说明(可选):"},{default:e.withCtx(()=>[e.createVNode(v,{type:"textarea",modelValue:i.value.report_content,"onUpdate:modelValue":d[2]||(d[2]=w=>i.value.report_content=w),maxlength:"200",placeholder:"描述恶意行为",rows:"3"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}},ac=p(lc,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-operate.vue"]]),ic=t=>(e.pushScopeId("data-v-1d5332e1"),t=t(),e.popScopeId(),t),sc={class:"comment-sub"},rc=["href"],cc=ic(()=>e.createElementVNode("img",{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"},null,-1)),dc={class:"comment-primary"},uc={class:"comment-main"},hc={key:1,class:"user-info"},pc=["href"],mc={class:"username"},fc={class:"name",style:{"max-width":"10em"}},gc={blank:"true",class:"rank"},vc=["innerHTML"],_c={class:"address",style:{color:"#939393","font-size":"12px"}},yc={class:"time"},Cc={class:"content"},wc=["innerHTML"],kc={class:"imgbox",style:{display:"flex"}},bc={class:"comment-list-actbox select-none"},Vc={class:"comment-list-actbox__left"},Sc={key:2},Nc={class:"comment-list-actbox__right"},Bc={key:2},Ec={__name:"content-box",props:{reply:{type:[Boolean],default:!1},data:{type:[Object],default:()=>({})},id:{type:[String],default:""}},setup(t){const o=t,n=e.reactive({active:!1}),i=e.ref(),l=e.ref(),a=e.computed(()=>{let y=o.data.contentImg;return z(y)?[]:y==null?void 0:y.split("||")}),{allEmoji:s}=e.inject("InjectionEmojiApi"),{like:r,user:d,relativeTime:c}=e.inject("InjectContentBox");function u(){n.active=!n.active,n.active&&e.nextTick(()=>{var y;(y=i.value)==null||y.focus()})}function h(y){var w;const _=y.target;(w=l.value)!=null&&w.contains(_)||(n.active=!1)}const m=e.inject("InjectSlots"),f=()=>e.h("div",m.info(o.data)),k=(y,_)=>{const w=/\[.+?\]/g;return _=_.replace(w,S=>{const B=y[S];return B?['<img src="',B,'" width="20" height="20" alt="',S,'" title="',S,'" style="margin: 0 1px; vertical-align: text-bottom"',"/>"].join(""):S}),_},v=e.computed(()=>k(s,o.data.content)),C=y=>{switch(y){case 1:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="831"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#8CDBF4" p-id="832"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="833"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m950.857143-365.714285l73.142857-73.142858v146.285715h-73.142857z m73.142857-73.142858h146.285715v146.285715h-146.285715z m0 146.285715h146.285715v438.857143h-146.285715z" fill="#FFFFFF"></path></svg>';case 2:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="765"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#6ECEFF" p-id="766"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="767"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m877.714286-438.857143h365.714286v146.285715h-365.714286z m219.428572 146.285715h146.285714v146.285714h-146.285714z m-219.428572 292.571428V512h146.285714v146.285714z" fill="#FFFFFF" p-id="768"></path><path d="M1097.142857 585.142857V438.857143h365.714286v146.285714z m0 73.142857h365.714286v146.285715h-365.714286z" fill="#FFFFFF"></path></svg>';case 3:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="799"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#599DFF" p-id="800"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="801"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m877.714286-438.857143h365.714286v146.285715h-365.714286z m219.428572 146.285715h146.285714v73.142857h-146.285714z m0 219.428571h146.285714v73.142857h-146.285714z m-146.285715-146.285714h292.571429v146.285714h-292.571429z m-73.142857 219.428571h365.714286v146.285715h-365.714286z" fill="#FFFFFF"></path></svg>';case 4:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="815"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#34D19B" p-id="816"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="817"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m975.213715-365.714285L1243.428571 219.428571v219.428572h-146.285714zM1097.142857 438.857143h146.285714v292.571428h-146.285714z m146.285714 146.285714h73.142858v146.285714h-73.142858z m0-365.714286h73.142858v146.285715h-73.142858z m73.142858 0h146.285714v585.142858h-146.285714z" fill="#FFFFFF"></path></svg>';case 5:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="782"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#FFA000" p-id="783"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="784"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m1097.142858-73.142857h146.285714v219.428572h-146.285714z m-219.428572-365.714286h365.714286v146.285715h-365.714286z m0 438.857143h219.428572v146.285715h-219.428572z m73.142857-219.428571h219.428572v146.285714h-219.428572z" fill="#FFFFFF" p-id="785"></path><path d="M1316.571429 438.857143h146.285714v146.285714h-146.285714z m-219.428572-73.142857h146.285714v219.428571h-146.285714z" fill="#FFFFFF"></path></svg>';case 6:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="748"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#F36262" p-id="749"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="750"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m1097.142858-146.285714h146.285714v292.571429h-146.285714z m-73.142858-292.571429h146.285715v146.285715h-146.285715z m-146.285714 146.285715h146.285714v438.857143h-146.285714z" fill="#FFFFFF" p-id="751"></path><path d="M1243.428571 438.857143h219.428572v146.285714h-219.428572z m-48.786285-170.642286L1243.428571 219.428571v146.285715h-146.285714zM1243.428571 658.285714h146.285715v146.285715h-146.285715z" fill="#FFFFFF"></path></svg>';default:return""}};return(y,_)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["comment",{reply:o.reply}])},[e.createElementVNode("div",sc,[e.createVNode(Lt,{uid:e.unref(I)(t.data.uid)},{default:e.withCtx(()=>[e.createElementVNode("a",{href:t.data.user.homeLink,target:"_blank",class:"no-underline",style:{display:"block"}},[e.createVNode(e.unref(g.ElAvatar),{style:{"margin-top":"5px"},size:40,fit:"cover",src:t.data.user.avatar},{default:e.withCtx(()=>[cc]),_:1},8,["src"])],8,rc)]),_:1},8,["uid"])]),e.createElementVNode("div",dc,[e.createElementVNode("div",uc,[e.unref(m).info?(e.openBlock(),e.createBlock(f,{key:0})):(e.openBlock(),e.createElementBlock("div",hc,[e.createVNode(Lt,{uid:e.unref(I)(t.data.uid)},{default:e.withCtx(()=>[e.createElementVNode("a",{href:t.data.user.homeLink,target:"_blank",class:"no-underline",style:{display:"block"}},[e.createElementVNode("div",mc,[e.createElementVNode("span",fc,e.toDisplayString(t.data.user.username),1),e.createElementVNode("span",gc,[e.createElementVNode("i",{class:"comment-common-icon",style:{"font-size":"24px"},innerHTML:C(t.data.user.level)},null,8,vc)])])],8,pc)]),_:1},8,["uid"]),e.createElementVNode("span",_c,"  "+e.toDisplayString(t.data.address),1),e.createElementVNode("time",yc,e.toDisplayString(e.unref(c)?e.unref(hs)(t.data.createTime):t.data.createTime),1)])),e.createElementVNode("div",Cc,[e.createVNode(Hr,{unfold:""},{default:e.withCtx(()=>[e.createElementVNode("div",{innerHTML:v.value},null,8,wc),e.createElementVNode("div",kc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(w,S)=>(e.openBlock(),e.createBlock(e.unref(g.ElImage),{key:S,src:w,style:{height:"72px",padding:"8px 4px"},lazy:"","preview-src-list":a.value,"initial-index":S},null,8,["src","preview-src-list","initial-index"]))),128))])]),_:1})]),e.createElementVNode("div",bc,[e.createElementVNode("div",Vc,[e.createElementVNode("div",{"data-tip":"点赞",class:"item",onClick:_[0]||(_[0]=w=>e.unref(r)(e.unref(I)(t.data.id)))},[e.unref(d).likeIds.map(String).indexOf(e.unref(I)(t.data.id))==-1?(e.openBlock(),e.createBlock(e.unref(tr),{key:0})):(e.openBlock(),e.createBlock(e.unref(Zs),{key:1})),t.data.likes!=0?(e.openBlock(),e.createElementBlock("span",Sc,e.toDisplayString(t.data.likes),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{"data-tip":"回复",ref_key:"btnRef",ref:l,class:e.normalizeClass(["item",{active:n.active}]),onClick:u},[e.createVNode(e.unref(yr)),e.createElementVNode("span",null,e.toDisplayString(n.active?"取消回复":"回复"),1)],2)]),e.createElementVNode("div",Nc,[e.renderSlot(y.$slots,"operate",{},()=>[e.createVNode(ac,{data:o.data},null,8,["data"])],!0)])]),n.active?(e.openBlock(),e.createElementBlock("div",Bc,[e.createVNode(Rt,{ref_key:"commentRef",ref:i,"parent-id":e.unref(I)(t.id),placeholder:`回复 @${t.data.user.username}...`,reply:t.data,"content-btn":"发布",style:{"margin-top":"12px"},onHide:h,onClose:_[1]||(_[1]=w=>n.active=!1)},null,8,["parent-id","placeholder","reply"])])):e.createCommentVNode("",!0)]),e.renderSlot(y.$slots,"default",{},void 0,!0)])],2))}},Kt=p(Ec,[["__scopeId","data-v-1d5332e1"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/content-box.vue"]]),xc={key:0,class:"reply-box"},$c={class:"reply-list"},Tc={key:0,class:"fetch-more"},Dc={key:0},Lc={key:1},Ic={key:0},Fc={key:1,class:"fetch-more"},zc={__name:"reply-box",props:{data:{type:[Array,Object],default:()=>null},id:{type:[String],default:""}},setup(t){const o=t,n=e.reactive({loading:!1,over:!1,pageNum:1,pageSize:5}),{replyPage:i,replyShowSize:l,comments:a,page:s}=e.inject("InjectReplyBox"),r=e.computed(()=>{let m={total:0,length:0,list:[]};if(o.data){let f=o.data.list.length;m={total:o.data.total,length:f,list:o.data.list}}if(!n.over){let f=m.list.slice(0,l);m.list=f}return s&&(m.list=m.list.slice(0,5)),m}),d=()=>{n.over=!0},c=m=>{a.value.forEach(f=>{f.id==o.id&&f.reply&&(f.reply=m)})},u=m=>{n.pageNum=m,i(o.id,m,n.pageSize,f=>c(f))},h=m=>{n.pageSize=m,i(o.id,n.pageNum,m,f=>c(f))};return(m,f)=>r.value.length>0?(e.openBlock(),e.createElementBlock("div",xc,[e.createElementVNode("div",$c,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.list,(k,v)=>(e.openBlock(),e.createBlock(Kt,{id:t.id,key:v,data:k,reply:""},null,8,["id","data"]))),128)),r.value.length>e.unref(l)?(e.openBlock(),e.createElementBlock("div",Tc,[n.loading?(e.openBlock(),e.createElementBlock("span",Dc,"加载中...")):(e.openBlock(),e.createElementBlock("div",Lc,[n.over?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ic,[e.createTextVNode(" 共"+e.toDisplayString(r.value.total)+"条回复, ",1),e.createElementVNode("span",{class:"fetch-more-comment select-none",onClick:d},[e.createTextVNode(" 点击查看 "),e.createVNode(e.unref(sr))])]))]))])):e.createCommentVNode("",!0),n.over&&e.unref(s)?(e.openBlock(),e.createElementBlock("div",Fc,[e.createVNode(e.unref(g.ElPagination),{small:"","hide-on-single-page":"",layout:"total, prev, pager, next",total:r.value.total,"page-size":n.pageSize,onCurrentChange:u,onSizeChange:h},null,8,["total","page-size"])])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)}},jc=p(zc,[["__scopeId","data-v-dd890122"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/reply-box.vue"]]),Oc={key:0,class:"comment-list"},Pc={__name:"comment-list",props:{data:{type:[Array,Object],default:()=>[]},total:{type:[Number],default:0},showSize:{type:[Number],default:0}},setup(t){return(o,n)=>t.data?(e.openBlock(),e.createElementBlock("div",Oc,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,(i,l)=>(e.openBlock(),e.createBlock(Kt,{id:e.unref(I)(i.id),key:l,data:i},{default:e.withCtx(()=>[e.createVNode(jc,{id:e.unref(I)(i.id),data:i.reply},null,8,["id","data"])]),_:2},1032,["id","data"]))),128))])):e.createCommentVNode("",!0)}},Ac=p(Pc,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-list.vue"]]),Uc={class:"cv-comment-base"},Rc={class:"cv-comment-form"},Mc=e.createElementVNode("div",{class:"cv-comment-form__header"},[e.createElementVNode("span",{class:"cv-comment-form__hdtitle"},"评论")],-1),Hc={class:"cv-comment-form__content"},qc={class:"cv-comment-form__avatar"},Wc=e.createElementVNode("img",{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"},null,-1),Kc=e.createElementVNode("div",{class:"title"},"全部评论",-1),Gc={class:"cv-comment-list-wrapper"},Zc=Object.assign({name:"cvCommentBase"},{__name:"comment",props:{config:{},page:!1,upload:!1,relativeTime:!1},emits:["submit","like","replyPage","showInfo","focus"],setup(t,{expose:o,emit:n}){const i=t,{user:l,comments:a,showSize:s,replyShowSize:r,total:d}=e.toRefs(i.config),c=n,u=({content:v,parentId:C,reply:y,files:_,clear:w})=>{c("submit",{content:v,parentId:C,reply:y,files:_,finish:B=>{if(w(),C){let T=a.value.find(D=>D.id==C);if(T){let D=T.reply;D?(D.list.unshift(B),D.total++):T.reply={total:1,list:[B]}}}else a.value.unshift(B)}})},h={upload:i.upload,submit:u,focus:()=>c("focus")};e.provide("InjectInputBox",h);const m=(v,C)=>{let y=null;a.value.forEach(_=>{var w;_.id==v?y=_:y=(w=_.reply)==null?void 0:w.list.find(S=>S.id==v),y&&(y.likes+=C)})},f=v=>{const C=i.config.user.likeIds;c("like",v,()=>{if(C.findIndex(y=>y==v)==-1)C.push(v),m(v,1);else{let y=C.findIndex(_=>_==v);y!=-1&&(C.splice(y,1),m(v,-1))}})};e.provide("InjectContentBox",{user:l,like:f,relativeTime:O(i.relativeTime,!1),showInfo:(v,C)=>c("showInfo",v,C)}),e.provide("InjectReplyBox",{page:i.page,replyPage:(v,C,y,_)=>{c("replyPage",{parentId:v,pageNum:C,pageSize:y,finish:_})},replyShowSize:O(r,3),comments:a});const k=v=>{const{parentId:C,id:y}=v;if(C){let _=a.value.find(S=>S.id==C),w=_==null?void 0:_.reply;if(w){let S=w.list.findIndex(B=>B.id==y);S!=-1&&(w.list.splice(S,1),w.total--)}}else{let _=a.value.findIndex(w=>w.id==y);_!=-1&&a.value.splice(_,1)}};return e.provide("InjectionEmojiApi",i.config.emoji),e.provide("InjectSlots",e.useSlots()),o({remove:k}),(v,C)=>{const y=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock("div",Uc,[e.createElementVNode("div",Rc,[Mc,e.createElementVNode("div",Hc,[e.createElementVNode("div",qc,[e.createVNode(y,{size:40,src:t.config.user.avatar},{default:e.withCtx(()=>[Wc]),_:1},8,["src"])]),e.createVNode(Rt,{placeholder:"输入评论(Enter换行,Ctrl + Enter发送)","content-btn":"发表评论"})])]),e.renderSlot(v.$slots,"default",{},()=>[Kc]),e.createElementVNode("div",Gc,[e.createVNode(Ac,{data:e.unref(a),total:e.unref(d),"show-size":e.unref(O)(e.unref(s),5)},null,8,["data","total","show-size"])])])}}}),rt=p(Zc,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment.vue"]]),Qc={class:"comment-scroll"},Yc=["infinite-scroll-disabled"],Jc={class:"scroll-btn"},Xc={key:1},ed={key:2},td=Object.assign({name:"cvCommentScroll"},{__name:"comment-scroll",props:{disable:{type:[Boolean],default:!1},show:{type:[Boolean],default:!1}},emits:["more"],setup(t,{emit:o}){const n=t,i=e.ref(!1),l=e.ref(!1),a=o,s=e.computed(()=>l.value&&n.disable),r=e.computed(()=>!l.value||i.value||s.value),d=cs(()=>{a("more"),i.value=!1},500),c=()=>{i.value=!0,d()};return(u,h)=>{const m=e.resolveComponent("el-link"),f=e.resolveDirective("infinite-scroll");return e.openBlock(),e.createElementBlock("div",Qc,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{"infinite-scroll-disabled":r.value,"infinite-scroll-distance":"2"},[e.renderSlot(u.$slots,"default"),e.createElementVNode("div",Jc,[l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0,type:"primary",underline:!1,onClick:h[0]||(h[0]=k=>l.value=!l.value)},{default:e.withCtx(()=>[e.createTextVNode("加载更多")]),_:1})),i.value?(e.openBlock(),e.createElementBlock("p",Xc,"加载中...")):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("p",ed,"没有更多了")):e.createCommentVNode("",!0)])],8,Yc)),[[f,c]])])}}}),ct=p(td,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-scroll.vue"]]),od={class:"cv-comment-nav-wrap"},nd=e.createElementVNode("span",{class:"cv-comment-nav__title"},"全部评论",-1),ld={class:"cv-comment-nav__sort"},ad=Object.assign({name:"cvCommentNav"},{__name:"comment-nav",props:{modelValue:!1},emits:["update:modelValue","sorted"],setup(t,{emit:o}){const n=t,i=o,l=e.computed({get(){return n.modelValue},set(a){i("update:modelValue",a),i("sorted",a)}});return(a,s)=>(e.openBlock(),e.createElementBlock("div",od,[nd,e.createElementVNode("div",ld,[e.createElementVNode("div",{class:e.normalizeClass(["item select-none",{active:l.value}]),onClick:s[0]||(s[0]=r=>l.value=!0)},[e.createVNode(e.unref(pr)),e.createTextVNode(" 最新 ")],2),e.createElementVNode("div",{class:e.normalizeClass(["item select-none",{active:!l.value}]),onClick:s[1]||(s[1]=r=>l.value=!1)},[e.createVNode(e.unref(Ts)),e.createTextVNode(" 最热 ")],2)])]))}}),dt=p(ad,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-nav.vue"]]);rt.install=function(t){t.component(rt.name,rt)};ct.install=function(t){t.component(ct.name,ct)};dt.install=function(t){t.component(dt.name,dt)};const id={name:"cvIcons",props:{...g.ElIcon.prop,type:{type:[String],default:""},size:{type:[String,Number],default:12},name:{type:[String],default:""}},data(){return{}},computed:{style(){return{fontSize:isNaN(Number(this.size))?this.size+"px":this.size,color:props.color}}},created(){},methods:{}},sd={key:0,"aria-hidden":"true"},rd=["xlink:href"];function cd(t,o,n,i,l,a){const s=e.resolveComponent("el-icon");return e.openBlock(),e.createBlock(s,e.normalizeProps(e.guardReactiveProps(t.$props)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.type)))]),n.name?(e.openBlock(),e.createElementBlock("svg",sd,[e.createElementVNode("use",{"xlink:href":n.name},null,8,rd)])):e.createCommentVNode("",!0)]),_:3},16)}const ut=p(id,[["render",cd],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/icons/src/index.vue"]]);ut.install=function(t){t.component(ut.name,ut)};const Gt=t=>(e.pushScopeId("data-v-cbcaef8c"),t=t(),e.popScopeId(),t),dd={class:"u-emoji"},ud={class:"face-tooltip-head select-none"},hd=["onClick"],pd=["src"],md={class:"emoji-body select-none"},fd={style:{padding:"0 5px"}},gd=["onClick"],vd={class:"emoji-btn select-none"},_d={key:0},yd=Gt(()=>e.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00002 0.666504C12.0501 0.666504 15.3334 3.94975 15.3334 7.99984C15.3334 12.0499 12.0501 15.3332 8.00002 15.3332C3.94993 15.3332 0.666687 12.0499 0.666687 7.99984C0.666687 3.94975 3.94993 0.666504 8.00002 0.666504ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM10.6667 5.66667V7.66667H9.33333V5.66667H10.6667ZM6.66667 5.66667V7.66667H5.33333V5.66667H6.66667ZM10.0767 9.33333H11.0495C11.1804 9.33333 11.2866 9.43951 11.2866 9.57048C11.2866 9.60754 11.2779 9.64409 11.2612 9.67718L11.244 9.71053C10.6294 10.8739 9.40726 11.6667 7.99998 11.6667C6.61523 11.6667 5.40977 10.8991 4.7859 9.76612L4.73786 9.67593C4.67845 9.56052 4.72385 9.4188 4.83926 9.35939C4.87253 9.34226 4.90941 9.33333 4.94683 9.33333H5.92347C6.02396 9.33332 6.11908 9.37865 6.18238 9.4567C6.26207 9.55496 6.32833 9.62955 6.38117 9.68046C6.80074 10.0847 7.37133 10.3333 7.99998 10.3333C8.63289 10.3333 9.20694 10.0814 9.62728 9.67224C9.67791 9.62296 9.74135 9.55121 9.8176 9.45698C9.88089 9.37877 9.97611 9.33333 10.0767 9.33333Z"})],-1)),Cd=Gt(()=>e.createElementVNode("span",null,"表情",-1)),wd=[yd,Cd],kd=Object.assign({name:"cvEmoji"},{__name:"emoji",props:{emoji:{faceList:[],emojiList:[],allEmoji:{}},placement:"bottom"},emits:["addEmoji"],setup(t,{emit:o}){const n=t,i=e.ref(0),l=e.ref(0),a=e.ref(new Array(2)),{emojiList:s,faceList:r}=n.emoji;function d(u){switch(i.value=u,u){case 0:l.value=0;break;case 1:l.value=-50,a.value[1]=s[1];break}}function c(){a.value[0]=s[0]}return(u,h)=>(e.openBlock(),e.createElementBlock("div",dd,[e.createVNode(e.unref(g.ElPopover),{placement:t.placement,"popper-class":"emoji-popover",width:250,trigger:"click",onBeforeEnter:c},{reference:e.withCtx(()=>[e.createElementVNode("div",vd,[u.$slots.default?e.renderSlot(u.$slots,"default",{key:1},void 0,!0):(e.openBlock(),e.createElementBlock("div",_d,[...wd]))])]),default:e.withCtx(()=>[e.createElementVNode("div",ud,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(m,f)=>(e.openBlock(),e.createElementBlock("label",{key:f,class:e.normalizeClass(i.value==f?"active":""),onClick:k=>d(f)},[e.createElementVNode("img",{src:m,alt:""},null,8,pd)],10,hd))),128))]),e.createElementVNode("div",md,[e.createElementVNode("div",{class:"emjio-container",style:e.normalizeStyle({transform:`translateX(${l.value}%)`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(m,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"emoji-wrapper"},[e.createVNode(e.unref(g.ElScrollbar),null,{default:e.withCtx(()=>[e.createElementVNode("div",fd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(k,v)=>(e.openBlock(),e.createElementBlock("span",{key:v,class:"emoji-item",onClick:C=>u.$emit("addEmoji",v)},[e.createVNode(e.unref(g.ElImage),{src:k,title:String(v),class:"emoji",style:{width:"24px",height:"24px",margin:"5px"},lazy:""},null,8,["src","title"])],8,gd))),128))])]),_:2},1024)]))),128))],4)])]),_:3},8,["placement"])]))}}),bd=p(kd,[["__scopeId","data-v-cbcaef8c"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/chat/comp/emoji.vue"]]),Vd={class:"cv-chat-message"},Sd={class:"chat-list"},Nd=e.createElementVNode("img",{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"},null,-1),Bd={class:"content"},Ed={key:0,class:"username"},xd=["innerHTML"],$d=e.createElementVNode("div",{class:"date"},null,-1),Td={__name:"message",props:{data:{type:[Array],default:()=>[]},userId:{type:[Number],default:0}},setup(t,{expose:o}){const{allEmoji:n}=e.inject("InjectionEmojiApi"),i=e.ref();o({scroll:()=>{e.nextTick(()=>{const s=document.querySelector(".chat-item:last-child");i.value.setScrollTop(s.offsetTop)})}});const a=(s,r)=>{const d=/\[.+?\]/g;return r=r.replace(d,c=>{const u=s[c];return u?['<img src="',u,'" width="20" height="20" alt="',c,'" title="',c,'" style="margin: 0 1px; vertical-align: text-bottom"',"/>"].join(""):c}),r};return(s,r)=>(e.openBlock(),e.createElementBlock("div",Vd,[e.createVNode(e.unref(g.ElScrollbar),{ref_key:"scrollbarRef",ref:i},{default:e.withCtx(()=>[e.createElementVNode("div",Sd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,(d,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:e.normalizeClass([{self:t.userId==d.id},"chat-item"])},[e.createElementVNode("div",null,[e.createVNode(e.unref(g.ElAvatar),null,{default:e.withCtx(()=>[Nd]),_:1})]),e.createElementVNode("div",Bd,[t.userId!=d.id?(e.openBlock(),e.createElementBlock("div",Ed,e.toDisplayString(d.username),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"card-box",innerHTML:a(e.unref(n),d.content)},null,8,xd)]),$d],2))),128))])]),_:1},512)]))}},Dd=p(Td,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/chat/src/message.vue"]]),Ld={class:"cv-chat-wrap"},Id={class:"header"},Fd=e.createElementVNode("svg",{viewBox:"0 0 1318 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M1318.502489 432.779052c0-231.790522-209.29842-419.704826-467.458992-419.704826s-467.56979 188.357498-467.56979 419.704826 209.409219 419.704826 467.56979 419.704826a512.110799 512.110799 0 0 0 183.482363-33.239559l93.292361 93.292361a25.816057 25.816057 0 0 0 44.319412-19.168145L1165.822116 742.350141C1259.336074 665.56676 1318.502489 555.433023 1318.502489 432.779052z",fill:"#612273","p-id":"10993"}),e.createElementVNode("path",{d:"M1034.304263 745.784895a509.673231 509.673231 0 0 1-183.482363 33.239559c-244.532352 0-445.077689-168.524562-465.353819-383.25211-1.107985 12.07704-1.883575 24.264878-1.883575 36.563514 0 231.790522 209.409219 419.704826 467.56979 419.704826a512.110799 512.110799 0 0 0 183.482363-33.239559l93.292361 93.292361a25.816057 25.816057 0 0 0 44.319411-19.168145 25.262064 25.262064 0 0 0-7.5343-17.284571zM1165.822116 669.223112l2.769964 70.689461C1260.44406 663.239991 1318.502489 553.992642 1318.502489 432.779052a366.632331 366.632331 0 0 0-1.883575-36.785111 403.971435 403.971435 0 0 1-150.796798 273.229171z",fill:"#612273",opacity:".2","p-id":"10994"}),e.createElementVNode("path",{d:"M383.25211 432.779052a383.141311 383.141311 0 0 1 41.881844-172.956503c-12.298637-0.997187-24.81887-1.661978-37.449903-1.661978C173.510496 258.160571 0 413.943302 0 606.178749c0 101.713049 48.97295 193.011037 126.421121 256.609392l-5.761524 148.470028a12.187838 12.187838 0 0 0 20.830124 9.08548l94.06795-93.957153A425.577148 425.577148 0 0 0 387.79485 954.196927a404.636226 404.636226 0 0 0 300.37481-128.304696c-177.831638-59.388011-304.91755-212.733175-304.91755-393.113179z",fill:"#EB3D72","p-id":"10995"}),e.createElementVNode("path",{d:"M342.256654 391.672798c0 117.557239 53.958883 223.59143 140.714132 299.71002a391.008007 391.008007 0 0 1-99.718676-258.603766 383.141311 383.141311 0 0 1 41.881844-172.956503c-12.298637-0.997187-24.81887-1.661978-37.449903-1.661978-7.091106 0-14.071413 0-21.05172 0.553993a375.939407 375.939407 0 0 0-24.375677 132.958234zM630.111231 802.181346a407.627786 407.627786 0 0 1-283.533434 110.798528 424.136767 424.136767 0 0 1-152.12638-27.699632l-71.686647 71.686648-2.105173 54.291279a12.187838 12.187838 0 0 0 20.830124 9.08548l94.06795-93.957153A425.577148 425.577148 0 0 0 387.79485 954.196927a404.636226 404.636226 0 0 0 300.37481-128.304696 486.294741 486.294741 0 0 1-58.058429-23.710885zM85.425665 821.792686l-5.761523-4.985934c1.883575 2.215971 3.656351 4.431941 5.650725 6.647911z",fill:"#EB3D72",opacity:".5","p-id":"10996"}),e.createElementVNode("path",{d:"M833.426531 332.395585c64.263147-10.193465 64.041549-66.479117 62.601169-75.342999s-15.400995-54.291279-59.942004-47.200173S799.078987 254.836615 799.078987 254.836615a28.475222 28.475222 0 1 0 56.174854-8.97468s6.315516 3.323956 8.30989 20.27613-11.966241 29.029214-35.455529 33.239559-88.638823-19.943735-104.039819-115.452067C709.110582 96.39472 781.57282 28.253625 838.966457 13.185025a55.399264 55.399264 0 0 0-64.041549-5.318329c-56.064055 35.123134-97.170309 109.579745-85.536464 182.817571 14.957801 93.846354 79.664142 151.904783 144.038087 141.711318zM203.980091 573.825579a53.072495 53.072495 0 0 0 33.90435-67.919498c-2.659165-6.537113-21.162519-38.225492-53.51569-25.040467a30.026401 30.026401 0 0 0-19.832936 40.773858 22.159706 22.159706 0 1 0 40.773858-16.619779s5.318329 1.329582 9.861069 13.739017-3.988747 24.043281-21.05172 31.023588-70.02467 0.553993-98.832288-68.695087C68.916685 417.599654 110.798528 353.558104 151.904783 332.395585a42.879031 42.879031 0 0 0-48.97295 7.423502 146.918849 146.918849 0 0 0-32.574767 152.458775c27.810431 68.141095 86.866046 100.605064 133.623025 81.547717z",fill:"#FED150","p-id":"10997"})],-1),zd=e.createElementVNode("div",{style:{"margin-left":"12px"}},[e.createElementVNode("div",null,"聊天室"),e.createElementVNode("div",{style:{"font-size":"12px"}},"当前2人在线")],-1),jd={id:"chat-footer",class:"footer"},Od=e.createElementVNode("svg",{width:"22",height:"22",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7186"},[e.createElementVNode("path",{d:"M510.944 960c-247.04 0-448-200.96-448-448s200.992-448 448-448c247.008 0 448 200.96 448 448S757.984 960 510.944 960zM510.944 128c-211.744 0-384 172.256-384 384 0 211.744 172.256 384 384 384 211.744 0 384-172.256 384-384C894.944 300.256 722.688 128 510.944 128zM512 773.344c-89.184 0-171.904-40.32-226.912-110.624-10.88-13.92-8.448-34.016 5.472-44.896 13.888-10.912 34.016-8.48 44.928 5.472 42.784 54.688 107.136 86.048 176.512 86.048 70.112 0 134.88-31.904 177.664-87.552 10.784-14.016 30.848-16.672 44.864-5.888 14.016 10.784 16.672 30.88 5.888 44.864C685.408 732.32 602.144 773.344 512 773.344zM368 515.2c-26.528 0-48-21.472-48-48l0-64c0-26.528 21.472-48 48-48s48 21.472 48 48l0 64C416 493.696 394.496 515.2 368 515.2zM656 515.2c-26.496 0-48-21.472-48-48l0-64c0-26.528 21.504-48 48-48s48 21.472 48 48l0 64C704 493.696 682.496 515.2 656 515.2z","p-id":"7187"})],-1),Pd=e.createElementVNode("svg",{viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15072"},[e.createElementVNode("path",{d:"M1008.00076 6.285714q18.857143 13.714286 15.428571 36.571429l-146.285714 877.714286q-2.857143 16.571429-18.285714 25.714286-8 4.571429-17.714286 4.571429-6.285714 0-13.714286-2.857143l-258.857143-105.714286-138.285714 168.571429q-10.285714 13.142857-28 13.142857-7.428571 0-12.571429-2.285714-10.857143-4-17.428571-13.428571t-6.571429-20.857143l0-199.428571 493.714286-605.142857-610.857143 528.571429-225.714286-92.571429q-21.142857-8-22.857143-31.428571-1.142857-22.857143 18.285714-33.714286l950.857143-548.571429q8.571429-5.142857 18.285714-5.142857 11.428571 0 20.571429 6.285714z","p-id":"15073"})],-1),Ad=Object.assign({name:"cvChat"},{__name:"chat",props:{data:{type:[Array],default:()=>[]},userId:{type:[Number],default:0},emoji:{type:[Object],default:()=>({})}},emits:["submit"],setup(t,{emit:o}){const n=t,i=e.ref(!1),l=e.ref(""),a=e.ref(),{data:s}=n,r=o,d=m=>{const{ctrlKey:f,key:k}=m;f&&k=="Enter"&&u()},c=()=>{l.value="",a.value.scroll()},u=()=>{let m=l.value;m.trim()?(m=m.replace(/\n/g,"<br/>"),r("submit",{clear:c,content:m})):g.ElMessage({type:"error",message:"内容不能为空"})},h=m=>{let f=document.getElementById("emojiInput"),k=f.selectionStart,v=f.selectionEnd,C=f.value;if(k===null||v===null)return;let y=C.substring(0,k)+m+C.substring(v);f.value=y,f.focus(),f.selectionStart=k+m.length,f.selectionEnd=k+m.length,l.value=y};return e.provide("InjectionEmojiApi",n.emoji),(m,f)=>{const k=e.resolveComponent("cvIcons");return e.openBlock(),e.createElementBlock("div",Ld,[e.createElementVNode("div",{class:e.normalizeClass([{active:i.value},"chat-container translate"])},[e.createElementVNode("div",Id,[e.createVNode(k,{size:"32"},{default:e.withCtx(()=>[Fd]),_:1}),zd]),e.createVNode(Dd,{ref_key:"messageRef",ref:a,data:e.unref(s),"user-id":t.userId},null,8,["data","user-id"]),e.createElementVNode("div",jd,[e.createVNode(e.unref(g.ElInput),{id:"emojiInput",modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=v=>l.value=v),type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"请输入内容",onKeydown:e.withKeys(d,["enter"])},null,8,["modelValue"]),e.createVNode(bd,{style:{margin:"0 8px 0"},emoji:t.emoji,placement:"top-end",onAddEmoji:h},{default:e.withCtx(()=>[Od]),_:1},8,["emoji"]),e.createVNode(k,{size:"18",class:e.normalizeClass([{".cv-chat-wrap submit-btn":l.value.trim()!=""},"select-none cursor-pointer"]),style:{"padding-bottom":"5px"},onClick:u},{default:e.withCtx(()=>[Pd]),_:1},8,["class"])])],2),e.createVNode(e.unref(g.ElButton),{class:"chat-btn",onClick:f[1]||(f[1]=v=>i.value=!i.value)},{default:e.withCtx(()=>[e.createTextVNode("chat")]),_:1})])}}}),ht=p(Ad,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/chat/src/chat.vue"]]);ht.install=function(t){t.component(ht.name,ht)};const Ud={key:0},Rd=Object.assign({name:"cvNoticeBar"},{__name:"notice-bar",props:{data:{type:[String,Array],default:()=>[]},vertical:{type:[Boolean],default:!1},suffixIcon:{type:[String],default:""},prefixIcon:{type:[String],default:""},size:{type:[Number],default:14},height:{type:[Number],default:40},delay:{type:[Number],default:1e3},spped:{type:[Number],default:100},color:{type:[String],default:"--color-warning"},background:{type:[String],default:"var(--color-warning-light-9)"}},setup(t){const o=t,{data:n,vertical:i,suffixIcon:l,prefixIcon:a,size:s,height:r,delay:d,spped:c,color:u,background:h}=o,m=e.reactive({boxWidth:0,textWidth:0,oneTime:0,twoTime:0,order:1}),f=e.ref({}),k=e.ref({}),v=e.computed(()=>o.delay>2e3?o.delay:2e3),C=()=>{e.nextTick(()=>{m.boxWidth=f.value.offsetWidth,m.textWidth=k.value.offsetWidth,document.styleSheets[0].insertRule(`@keyframes oneAnimation {0% {left: 0px;} 100% {left: -${m.textWidth}px;}}`),document.styleSheets[0].insertRule(`@keyframes twoAnimation {0% {left: ${m.boxWidth}px;} 100% {left: -${m.textWidth}px;}}`),y(),setTimeout(()=>{_()},o.delay)})},y=()=>{m.oneTime=m.textWidth/o.spped,m.twoTime=(m.textWidth+m.boxWidth)/o.spped},_=()=>{m.order===1?(k.value.style.cssText=`animation: oneAnimation ${m.oneTime}s linear; opactity: 1;}`,m.order=2):k.value.style.cssText=`animation: twoAnimation ${m.twoTime}s linear infinite; opacity: 1;`},w=()=>{k.value.addEventListener("animationend",()=>{_()},!1)};return e.onMounted(()=>{o.vertical||(C(),w())}),(S,B)=>{const T=e.resolveComponent("el-carousel-item"),D=e.resolveComponent("el-carousel"),A=e.resolveComponent("cvIcons");return e.openBlock(),e.createElementBlock("div",{class:"cv-notice-bar",style:e.normalizeStyle({background:e.unref(h),height:`${e.unref(r)}px`})},[e.unref(i)?(e.openBlock(),e.createElementBlock("div",Ud,[e.createVNode(D,{height:"40px",direction:"vertical",autoplay:!0,"indicator-position":"none",interval:v.value},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n),U=>(e.openBlock(),e.createBlock(T,{key:U},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(U),1)]),_:2},1024))),128))]),_:1},8,["interval"])])):(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle({color:e.unref(u),fontSize:`${e.unref(s)}px`}),class:"cv-notice-bar-wrap"},[e.unref(a)?(e.openBlock(),e.createBlock(A,{key:0,name:e.unref(a)},null,8,["name"])):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"boxRef",ref:f,class:"text-box"},[e.createElementVNode("div",{ref_key:"textRef",ref:k,class:"text"},e.toDisplayString(e.unref(n)),513)],512),e.unref(l)?(e.openBlock(),e.createBlock(A,{key:1,name:e.unref(l)},null,8,["name"])):e.createCommentVNode("",!0)],4))],4)}}}),pt=p(Rd,[["__scopeId","data-v-f2fc7608"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/notice-bar/src/notice-bar.vue"]]);pt.install=function(t){t.component(pt.name,pt)};const Md={name:"cvEditorCode",props:{options:{type:[Object],default:()=>({autoRefresh:!0,autofocus:!1,lineNumbers:!0,tabSize:4,indentUnit:2,line:!0,styleActiveLine:!0})},modelValue:{type:[String],default:""},toolbars:{type:[Array],default:()=>["copy"]},theme:{type:[String],default:"juejin"},language:{type:[String],default:"Plain Text"},readOnly:{type:[Boolean],default:!1},id:{type:[String],required:!1,default(){return"myCvEditorCode-"+ +new Date+((Math.random()*1e3).toFixed(0)+"")}}},watch:{modelValue(t){this.localVal=t,this.currPoint==null&&this.editorInstance.setValue(t)}},data(){return{isCdnLoading:!0,localToolbar:{copy:!0},localToolNum:0,localOption:{},localVal:"",localMode:"",currPoint:null,editorId:this.id,editorInstance:null}},created(){this.localVal=this.modelValue,this.localToolNum=this.toolbars.length,this.localToolbar=this.toolbars.reduce((t,o)=>(t[o]=!0,t),{})},async mounted(){await P(this.CDN_URL_UI+"/codemirror/@5.65.15/lib/codemirror.css"),await P(this.CDN_URL_UI+`/codemirror/@5.65.15/theme/${this.theme}.css`),await N(this.CDN_URL_UI+"/codemirror/@5.65.15/lib/codemirror.js").then(()=>{setTimeout(()=>{N(this.CDN_URL_UI+"/codemirror/@5.65.15/addon/display/autorefresh.js").then(()=>{this.isCdnLoading=!1,setTimeout(()=>{this.$nextTick(()=>{this.initEditor()})},250)})},250)})},methods:{initEditor(){const t=window.CodeMirror||CodeMirror;this.editorInstance=t(this.$refs[this.editorId],{value:this.localVal,readOnly:this.readOnly,mode:this.localMode,theme:this.theme,...this.options}),this.editorInstance.setValue(this.value||this.localVal),this.editorInstance.on("change",(o,n)=>{this.localVal=o.getValue(),n.origin=="+input"&&(this.currPoint=n.to||null),n.origin=="setValue"&&(this.currPoint=null),this.$emit("update:modelValue",this.localVal)}),N(this.CDN_URL_UI+"/codemirror/@5.65.15/mode/meta-cvjs.js").then(()=>{setTimeout(()=>{this.$nextTick(()=>{}),this._getLanguageToMode()},250)})},async _getLanguageToMode(t){t=t||this.language,window.CodeMirror||CodeMirror;const o=CodeMirror.findModeByName(t),n=o.mode||"",i=o.addonMode||"";this.localMode=o.mime||"",i!="null"&&i!=""&&await N(this.CDN_URL_UI+`/codemirror/@5.65.15/addon/mode/${i}.js`),n!="null"&&n!=""&&await N(this.CDN_URL_UI+`/codemirror/@5.65.15/mode/${n}/${n}.js`),this.editorInstance.setOption("mode",this.localMode)},changeMode(t){this.editorInstance.setOption("mode",`text/${t}`),this._getLanguage(t).label.toLowerCase()},handleCopy(){this.$cvCopy(this.localVal)},handleChange(t){}}},Hd={class:"cv-editor-code-wrap cv-editor-vars"},qd={key:0,class:"cv-editor-toolbars"},Wd=e.createElementVNode("li",{class:"empty"},null,-1),Kd=e.createElementVNode("span",{class:"iconfont icon-save"},null,-1),Gd=[Kd],Zd={class:"cv-editor-mainbox"};function Qd(t,o,n,i,l,a){const s=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",Hd,[l.localToolNum>0?(e.openBlock(),e.createElementBlock("ul",qd,[Wd,l.localToolbar.copy?(e.openBlock(),e.createElementBlock("li",{key:0,name:"复制",onClick:o[0]||(o[0]=(...r)=>a.handleCopy&&a.handleCopy(...r))},[...Gd])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Zd,[e.createElementVNode("div",{class:"cv-editor-container",ref:l.editorId},null,512)])])),[[s,l.isCdnLoading]])}const mt=p(Md,[["render",Qd],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/code.vue"]]),Yd={name:"cvEditorJson",components:{},props:{mode:{type:[String],default:"text"},readOnly:{type:[Boolean],default:!1},options:{type:[Object],default:()=>({mode:"text"})},modelValue:[Object,Array,Number,String,Boolean],height:{type:String},plus:{type:Boolean,default:!0}},data(){return{editor:null,style:{},max:!1,internalChange:!1,localVal:""}},watch:{max(t){this.$nextTick(()=>{this.initJsoneditor()})},options:{handler(t){this.options&&this.options.mode&&this.editor},deep:!0}},computed:{getHeight(){return this.height&&!this.max?{height:this.height}:{}}},async mounted(){this.initJsoneditor()},updated(){this.editor.updateProps({mode:this.mode,readOnly:this.readOnly})},beforeUnmount(){this.destroyView()},beforeDestroy(){this.destroyView()},methods:{onChange(){let t=null,o={};try{o=this.editor.get()}catch(n){t=n}t?this.$emit("error",t):this.editor&&(this.internalChange=!0,this.$emit("update:modelValue",o),this.$nextTick(()=>{this.internalChange=!1}))},initJsoneditor(){this.editor||(this.editor=new uo.JSONEditor({target:this.$refs.jsoneditor,props:{value:this.modelValue,mode:this.mode,readOnly:this.readOnly,...this.options,onChange:this.onChange}}),this.updateVal(this.modelValue))},updateVal(t){this.editor&&t!==void 0&&!this.internalChange&&this.editor.update({json:t})},isJSON(t){try{return JSON.parse(t),!0}catch{return!1}},destroyView(){this.editor&&(this.editor.destroy(),this.editor=null)},handleChange(t){this.emitData||(this.emitData=dl(400,o=>{this.$emit("update:modelValue",o)})),this.emitData(t)}}},Jd={ref:"jsoneditor",class:"jsoneditor-box"};function Xd(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cv-editor-json",{"max-box":l.max,"min-box":!l.max}]),style:e.normalizeStyle(a.getHeight)},[e.createElementVNode("div",Jd,null,512),e.createElementVNode("a",{onClick:o[0]||(o[0]=s=>l.max=!l.max),class:"max-btn"})],6)}const ft=p(Yd,[["render",Xd],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/json.vue"]]);function Zt(t){if(typeof t=="function"&&(t={highlight:t}),!t||typeof t.highlight!="function")throw new Error("Must provide highlight function");return typeof t.langPrefix!="string"&&(t.langPrefix="language-"),{async:!!t.async,walkTokens(o){if(o.type!=="code")return;const n=eu(o);if(t.async)return Promise.resolve(t.highlight(o.text,n)).then(Ft(o));const i=t.highlight(o.text,n);if(i instanceof Promise)throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");Ft(o)(i)},renderer:{code(o,n,i){const l=(n||"").match(/\S*/)[0],a=l?` class="${t.langPrefix}${jt(l)}"`:"";return o=o.replace(/\n$/,""),`<pre><code${a}>${i?o:jt(o,!0)}
2
- </code></pre>`}}}}function eu(t){return(t.lang||"").match(/\S*/)[0]}function Ft(t){return o=>{typeof o=="string"&&o!==t.text&&(t.escaped=!0,t.text=o)}}const Qt=/[&<>"']/,tu=new RegExp(Qt.source,"g"),Yt=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ou=new RegExp(Yt.source,"g"),nu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zt=t=>nu[t];function jt(t,o){if(o){if(Qt.test(t))return t.replace(tu,zt)}else if(Yt.test(t))return t.replace(ou,zt);return t}function lu(t,o){var n=document.createElement("a");if(n.setAttribute("href","data:text/plain;charset=UTF-8,"+encodeURIComponent(t)),n.setAttribute("download",o),n.style.display="none",document.createEvent){const i=document.createEvent("MouseEvents");i.initEvent("click",!0,!0),n.dispatchEvent(i)}else n.click()}const au={methods:{insertLink(){this.insertContent(`
3
- [link](href)`)},insertImage(){this.insertContent(`
4
- ![image](imgUrl)`)},insertTable(){this.insertContent(`
5
- header 1 | header 2
6
- ---|---
7
- row 1 col 1 | row 1 col 2
8
- row 2 col 1 | row 2 col 2
9
-
10
- `)},insertItalic(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent("*"+o+"*"):(this.insertContent("**"),this.setCursor(t.line,t.ch+1))},insertStrong(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent("**"+o+"**"):(this.insertContent("****"),this.setCursor(t.line,t.ch+2))},insertBg(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent("=="+o+"=="):(this.insertContent("===="),this.setCursor(t.line,t.ch+1))},insertUnderline(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent("<u>"+o+"</u>"):(this.insertContent("<u></u>"),this.setCursor(t.line,t.ch+3))},insertOverline(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent("~~"+o+"~~"):(this.insertContent("~~~~"),this.setCursor(t.line,t.ch+2))},insertTitle(t){const o={1:"# ",2:"## ",3:"### ",4:"#### ",5:"##### ",6:"###### "},n=this.getLastPoint(),i=this.getSelectionText();if(i)this.insertContent(`
11
- `+o[t]+i+`
12
- `);else{const l=o[t];this.editor.isClean()?(this.insertContent(l),this.setCursor(0,l.length)):(this.insertContent(`
13
- `+l),this.setCursor(n.line+1,l.length))}},insertLine(){this.editor.isClean()?this.insertContent(`----
14
- `):this.insertContent(`
1
+ "use strict";/*! cvPcUI v0.3.23 */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),T=require("element-plus"),uO=require("https://10ui.cn/jsoneditor/vanilla-jsoneditor@0.22.0/standalone.js"),x=(i,e)=>{const t=i.__vccOpts||i;for(const[n,s]of e)t[n]=s;return t},dO={name:"cvRow",props:{gutter:{type:[Number,String],default:0},type:{type:[String],default:""},justify:{type:[String],default:"start"},align:{type:[String],default:"top"},tag:{type:[String],default:"div"}},data(){return{}},methods:{}};function fO(i,e,t,n,s,r){const o=l.resolveComponent("el-row");return l.openBlock(),l.createBlock(o,l.mergeProps({class:"cv-row"},{type:t.type,justify:t.justify,align:t.align,tag:t.tag},{gutter:parseInt(t.gutter)}),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},16,["gutter"])}const Cs=x(dO,[["render",fO],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/layout/src/row.vue"]]),pO={name:"cvCol",props:{span:{type:[Number,String],default:24},offset:{type:[Number,String],default:0}},data(){return{}},methods:{}};function mO(i,e,t,n,s,r){const o=l.resolveComponent("el-col");return l.openBlock(),l.createBlock(o,{class:"cv-col",span:parseInt(t.span),offset:parseInt(t.offset)},{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},8,["span","offset"])}const xs=x(pO,[["render",mO],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/layout/src/col.vue"]]);Cs.install=function(i){i.component(Cs.name,Cs)};xs.install=function(i){i.component(xs.name,xs)};const gO={name:"cvBtnBase",emits:["click"],props:{...T.ElButton.props,autoLoading:{type:Boolean,default:!1}},data(){return{loadingStatus:!1}},created(){},methods:{handleClick(){this.autoLoading&&(this.loadingStatus=!0),this.$emit("click",()=>{this.loadingStatus=!1})}}};function OO(i,e,t,n,s,r){const o=l.resolveComponent("el-button");return l.openBlock(),l.createBlock(o,l.mergeProps({class:"cv-btn"},i.$props,{loading:s.loadingStatus,onClick:r.handleClick}),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},16,["loading","onClick"])}const $s=x(gO,[["render",OO],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/button/src/base.vue"]]),yO={name:"cvBtnText",emits:["click"],props:{...T.ElButton.props,autoLoading:{type:Boolean,default:!1}},data(){return{loadingStatus:!1}},methods:{handleClick(){this.autoLoading&&(this.loadingStatus=!0),this.$emit("click",()=>{this.loadingStatus=!1})}}};function bO(i,e,t,n,s,r){const o=l.resolveComponent("el-button");return l.openBlock(),l.createBlock(o,l.mergeProps({class:"cv-btn"},i.$props,{link:"",loading:s.loadingStatus,onClick:r.handleClick}),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},16,["loading","onClick"])}const _s=x(yO,[["render",bO],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/button/src/text.vue"]]);$s.install=function(i){i.component($s.name,$s)};_s.install=function(i){i.component(_s.name,_s)};const kO={name:"cvAutocompleteBase",props:{...T.ElAutocomplete.props},data(){return{localVal:"",loadingStatus:!1}},created(){}};function wO(i,e,t,n,s,r){const o=l.resolveComponent("el-autocomplete");return l.openBlock(),l.createBlock(o,l.mergeProps({modelValue:s.localVal,"onUpdate:modelValue":e[0]||(e[0]=a=>s.localVal=a)},i.$props),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},16,["modelValue"])}const Ps=x(kO,[["render",wO],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/autocomplete/src/base.vue"]]),Xo={props:{compConfig:{},dataParse:{type:[Function],default:()=>null}},data(){return{searchData:{},loadDataLoading:!1,loadDataList:[],loadDataTotal:0,loadPageCurr:1,loadPageLimit:10,loadConfigSetting:{},loadConfigDef:{pageCurr:1,pageLimit:10,isSkip:!1,url:null,apiFunc:null,mockData:null,where:{},response:{statusName:"status",statusCode:200,msgName:"msg",countName:"total",dataName:"data"},request:{pageName:"page",limitName:"pagesize"}}}},methods:{loadEnding(){this.loadDataLoading=!1,this.$nextTick(()=>{this.loadDataLoading=!1})},loadGetData(){if(this.loadDataLoading=!0,this.loadConfigSetting.apiFunc&&typeof this.loadConfigSetting.apiFunc=="function"){const i=this.loadConfigSetting;let e={...i.where};e[i.request.pageName]=this.loadPageCurr,e[i.request.limitName]=this.loadPageLimit,e=Object.assign(e,this.searchData),this.loadConfigSetting.apiFunc(e).then(t=>{this.loadPageCurr=e[i.request.pageName],this.loadEnding();let n=this.sortOutData(t);if(n.status!=i.response.statusCode){ExtendMessage({message:n.msg,type:"error",duration:1300});return}if(n.data.length===0){ExtendMessage({message:"没有更多数据了",type:"warning",duration:1300});return}let s=n[i.response.dataName]||[];this.dataParse&&typeof this.dataParse=="function"&&(s=this.dataParse.call(null,s)),this.loadDataList.push(...s),this.loadDataTotal=n[i.response.countName]||0}).catch(t=>{this.loadEnding()})}else this.loadDataList.length>0&&(this.loadDataTotal=this.loadDataList.length),this.loadEnding()},sortOutData(i){let e=this.loadConfigSetting.response,t={},n=[],s=[];t.status=i[e.statusName],t.msg=i[e.msgName],t.total=i[e.countName],n=i[e.dataName];for(let r in n)s[r]=n[r];return t.data=s,t}}},vO={name:"cvAutocompleteLoad",mixins:[Xo],emits:["update:modelValue","input"],props:{...T.ElAutocomplete.props,modelValue:null,placeholder:{type:[String],default:"请输入内容"},popperClass:{type:[String],default:"cv-autocomplete"},clearable:{type:[Boolean],default:!0},triggerOnFocus:!1,debounce:500,refID:{type:[String],required:!1,default(){return"cvAutocompleteLoad-"+ +new Date+((Math.random()/1e4).toFixed(0)+"")}},compConfig:{type:[Object],default:()=>({})}},data(){return{localVal:"",searchList:[],compConfigDef:{searchField:["value"]},timeout:null}},directives:{autoScrollLoad:{created(i,e,t){let n=i.querySelector(".el-autocomplete-suggestion__wrap"),s=i.querySelector(".el-autocomplete-suggestion__wrap .el-autocomplete-suggestion__list");n.addEventListener("scroll",r=>{n.offsetHeight+n.scrollTop+10-s.offsetHeight>0&&!t.context.loading&&e.value()},!1)}},loadmore:{mount(i,e){function t(s){s.target.clientHeight+s.target.scrollTop==s.target.scrollHeight&&e.value()}let n=i.querySelector(".el-autocomplete-suggestion__wrap");i.__handleScroll__=t,i.__wrapDom__=n,n.addEventListener("scroll",t,!1)},unbind(i,e,t){i.__wrapDom__.removeEventListener("scroll",i.__handleScroll__,!1)}}},created(){this.initConfAll(),this.getData()},methods:{initConfAll(){let i={};Object.assign(i,this.loadConfigDef,this.compConfigDef,this.compConfig),this.loadPageCurr=i.pageCurr||1,this.loadPageLimit=i.pageLimit||10,Object.assign(i.where,this.searchData),this.loadConfigSetting=i},getMoreData(){conosle.log("加载更多"),this.loadPageCurr++,this.loadGetData()},getData(){this.loadDataList=[],this.loadGetData()},async querySearchAsync(i,e){this.loadPageCurr=1,this.loadDataLoading=!0;var t=this.loadDataList||[];let n=[];const s=this.loadConfigSetting.searchField||["value"];if(i=i.toLowerCase(),n=i?t.filter(this.createFilter(i,s)):t,n.length>0){const r=n.map(o=>({...o,is_last_tip:!1}));e(r),this.lookFlag=!0}else try{this.loadPageCurr++,this.searchData.keyword=i,this.loadDataList=[],await this.loadGetData();const r=this.loadDataList.map(o=>({...o,is_last_tip:!1}));r.push({is_last_tip:!0}),e(r)}catch{}finally{this.lookFlag=!0}},createFilter(i,e){return t=>e.some(n=>(t[n]+"").toLowerCase().indexOf(i)!==-1)},selectLoadMore(){},handleChange(i){},handleSelect(i){this.$emit("update:modelValue",i)}}};function SO(i,e,t,n,s,r){const o=l.resolveComponent("cv-icons"),a=l.resolveComponent("el-autocomplete"),c=l.resolveDirective("loadmore");return l.withDirectives((l.openBlock(),l.createElementBlock("div",null,[l.createVNode(a,l.mergeProps(i.$props,{modelValue:s.localVal,"onUpdate:modelValue":e[1]||(e[1]=h=>s.localVal=h),"fetch-suggestions":r.querySearchAsync,onChange:r.handleChange,onSelect:r.handleSelect}),{default:l.withCtx(({item:h})=>[h.is_last_tip?l.createCommentVNode("",!0):l.renderSlot(i.$slots,"default",l.normalizeProps(l.mergeProps({key:0},{item:h}))),h.is_last_tip?(l.openBlock(),l.createElementBlock("div",{key:1,class:"cv-autocomolete-nodata",onClick:e[0]||(e[0]=(...u)=>r.getData&&r.getData(...u)),disabled:""},[l.createTextVNode(" 没有更多数据了 "),l.createVNode(o,{type:"refresh-left"}),l.createTextVNode(" 刷新按钮 ")])):l.createCommentVNode("",!0)]),_:3},16,["modelValue","fetch-suggestions","onChange","onSelect"])])),[[c,r.getMoreData]])}const Qs=x(vO,[["render",SO],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/autocomplete/src/load.vue"]]);Ps.install=function(i){i.component(Ps.name,Ps)};Qs.install=function(i){i.component(Qs.name,Qs)};const CO={...T.ElForm,name:"cvFormBase",extends:T.ElForm,provide(){return{elForm:this}},props:{...T.ElForm.props},watch:{model(){}},data(){return{}}};function xO(i,e,t,n,s,r){const o=l.resolveComponent("el-form");return l.openBlock(),l.createBlock(o,l.mergeProps({class:"cv-form-base"},{...i.$props,...i.$attrs},l.toHandlers(i.$attrs)),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},16)}const Vs=x(CO,[["render",xO],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/form/src/base.vue"]]),$O={name:"cvFormInline",provide(){return{elForm:this}},props:{...T.ElForm.props},watch:{model(){}},data(){return{form:{}}}};function _O(i,e,t,n,s,r){const o=l.resolveComponent("el-form");return l.openBlock(),l.createBlock(o,l.mergeProps({class:"cv-form-base"},i.$props,l.toHandlers(i.$attrs),{inline:!0}),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},16)}const Ts=x($O,[["render",_O],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/form/src/inline.vue"]]),PO={name:"cvFormItem",extends:T.ElFormItem,props:{},data(){return{localLabelWidth:"",localError:""}},created(){},methods:{}},QO={key:0,class:"cv-form-item__tip"};function VO(i,e,t,n,s,r){const o=l.resolveComponent("el-form-item");return l.openBlock(),l.createBlock(o,l.normalizeProps(l.guardReactiveProps(i.$props)),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default"),i.$slots.tip?(l.openBlock(),l.createElementBlock("div",QO,[l.renderSlot(i.$slots,"tip")])):l.createCommentVNode("",!0)]),_:3},16)}const Es=x(PO,[["render",VO],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/form/src/item.vue"]]);Vs.install=function(i){i.component(Vs.name,Vs)};Ts.install=function(i){i.component(Ts.name,Ts)};Es.install=function(i){i.component(Es.name,Es)};const wt={extends:T.ElInput,emits:["update:modelValue","change"],props:{...T.ElInput.props,modelValue:{type:[Number,String],default:""},placeholder:{type:[Number,String],default:""},disabled:{type:Boolean,default:!1}},watch:{modelValue(i){this.localVal=i},localVal(){this.handleChange(),this.handleInput()}},data(){return{localVal:this.modelValue,localRules:[]}},created(){},methods:{handleChange(){this.$emit("change",this.localVal)},handleInput(){this.$emit("update:modelValue",this.localVal)},handleBlur(){this._isCheckValue()},_showError(i){this.localError=i||"请输入正确的"+this.label},_diyValidate(){},_isCheckValue(){const e=this==null?void 0:this.rules.split("|");this.localError="";for(let t in e){let s=e[t].split(":"),r=s[0]||"",o=s[1]||"";switch(r){case"require":if(this.localVal==""){this._showError(this.label+"不能为空");return}break;case"max":if(this.localVal.length>o){this._showError(this.label+"最大长度不超过"+o);return}break;case"min":if(this.localVal.length<o){this._showError(this.label+"最小长度不小于"+o);return}break;default:this._diyValidate(r);break}}}}},TO={name:"cvInputText",mixins:[wt],props:{},data(){return{}},methods:{_diyValidate(i){switch(i){case"zh":if(!/[\u2E80-\u2EFF\u2F00-\u2FDF\u3000-\u303F\u31C0-\u31EF\u3200-\u32FF\u3300-\u33FF\u3400-\u4DBF\u4DC0-\u4DFF\u4E00-\u9FBF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF]+/g.test(this.localVal)){this._showError("必须全是中文");return}break;case"en":if(!/^[a-zA-Z]+$/.test(this.localVal)){this._showError("必须全是英文");return}break;case"username":if(/[1-9]\d*/.test(this.localVal.charAt(0))){this._showError("不能以数字开头");return}let s=/^[A-Za-z0-9_\-\u4e00-\u9fa5]+$/;this.rules.indexOf("username")!==-1&&!s.test(this.localVal)&&this._showError("只能是中英文数字下划线");break;case"ennum":/^[A-Za-z0-9]+$/.test(this.localVal)||this._showError("必须是字母和数字");break}}}},EO={slot:"prepend"},ZO={slot:"append"};function AO(i,e,t,n,s,r){const o=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(o,l.mergeProps({type:"text"},i.$props,{modelValue:i.localVal,"onUpdate:modelValue":e[0]||(e[0]=a=>i.localVal=a),onChange:i.handleChange,onInput:i.handleInput,placeholder:i.placeholder?i.placeholder:"请输入",clearable:""}),{default:l.withCtx(()=>[l.createElementVNode("template",EO,[l.renderSlot(i.$slots,"prepend")]),l.createElementVNode("template",ZO,[l.renderSlot(i.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const BO=x(TO,[["render",AO],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/text.vue"]]),DO={name:"cvInputMobile",mixins:[wt],components:{},props:{},data(){return{}},methods:{_diyValidate(){let i=/^[1][3,4,5,7,8][0-9]{9}$/;this.rules.indexOf("mobile")!==-1&&!i.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},NO=l.createElementVNode("template",{slot:"prepend"},[l.createTextVNode("+86")],-1),RO={slot:"append"};function IO(i,e,t,n,s,r){const o=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(o,l.mergeProps({type:"number",oninput:"if(value.length>11)value=value.slice(0,11)"},i.$props,{modelValue:i.localVal,"onUpdate:modelValue":e[0]||(e[0]=a=>i.localVal=a),onChange:i.handleChange,onInput:i.handleInput,placeholder:i.placeholder?i.placeholder:"请输入11位大陆手机号",clearable:""}),{default:l.withCtx(()=>[NO,l.createElementVNode("template",RO,[l.renderSlot(i.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const Zs=x(DO,[["render",IO],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/mobile.vue"]]),LO={name:"cvInputEmail",mixins:[wt],components:{},props:{},data(){return{}},methods:{_diyValidate(){let i=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;this.rules.indexOf("email")!==-1&&!i.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},MO={slot:"prepend"},XO={slot:"append"};function jO(i,e,t,n,s,r){const o=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(o,l.mergeProps({type:"text"},i.$props,{modelValue:i.localVal,"onUpdate:modelValue":e[0]||(e[0]=a=>i.localVal=a),onChange:i.handleChange,onInput:i.handleInput,placeholder:i.placeholder?i.placeholder:"请输入邮箱",clearable:""}),{default:l.withCtx(()=>[l.createElementVNode("template",MO,[l.renderSlot(i.$slots,"prepend")]),l.createElementVNode("template",XO,[l.renderSlot(i.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const As=x(LO,[["render",jO],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/email.vue"]]),zO={name:"cvInputPassword",mixins:[wt],components:{},props:{showPassword:{type:Boolean,default:!1}},data(){return{}},methods:{_diyValidate(){let i=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;this.rules.indexOf("password")!==-1&&!i.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},WO={slot:"prepend"},YO={slot:"append"};function FO(i,e,t,n,s,r){const o=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(o,l.mergeProps({type:"password"},{disabled:i.disabled,showPassword:t.showPassword},{modelValue:i.localVal,"onUpdate:modelValue":e[0]||(e[0]=a=>i.localVal=a),onChange:i.handleChange,onInput:i.handleInput,placeholder:i.placeholder?i.placeholder:"请输入密码",clearable:""}),{default:l.withCtx(()=>[l.createElementVNode("template",WO,[l.renderSlot(i.$slots,"prepend")]),l.createElementVNode("template",YO,[l.renderSlot(i.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const Bs=x(zO,[["render",FO],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/password.vue"]]),qO={name:"cvInputNumber",mixins:[wt],props:{},data(){return{}},methods:{_diyValidate(){let i=/^[0-9]*$/;this.rules.indexOf("number")!==-1&&!i.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},UO={slot:"prepend"},GO={slot:"append"};function HO(i,e,t,n,s,r){const o=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(o,l.mergeProps({class:"cv-number",type:"number"},i.$props,{modelValue:i.localVal,"onUpdate:modelValue":e[0]||(e[0]=a=>i.localVal=a),onChange:i.handleChange,onInput:i.handleInput,placeholder:i.placeholder?i.placeholder:"请输入整数",clearable:""}),{default:l.withCtx(()=>[l.createElementVNode("template",UO,[l.renderSlot(i.$slots,"prepend")]),l.createElementVNode("template",GO,[l.renderSlot(i.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const Ds=x(qO,[["render",HO],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/number.vue"]]),KO={name:"cvInputIdcard",mixins:[wt],components:{},props:{},data(){return{}},methods:{_diyValidate(){let i=/^[1-9][0-9]{5}([1][9][0-9]{2}|[2][0][0|1][0-9])([0][1-9]|[1][0|1|2])([0][1-9]|[1|2][0-9]|[3][0|1])[0-9]{3}([0-9]|[X])$/;this.rules.indexOf("idcard")!==-1&&!i.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},JO={slot:"prepend"},e1={slot:"append"};function t1(i,e,t,n,s,r){const o=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(o,l.mergeProps({type:"text",oninput:"if(value.length>18)value=value.slice(0,18)"},i.$props,{modelValue:i.localVal,"onUpdate:modelValue":e[0]||(e[0]=a=>i.localVal=a),onChange:i.handleChange,onInput:i.handleInput,placeholder:i.placeholder?i.placeholder:"请输入身份证",clearable:"",maxlength:"18"}),{default:l.withCtx(()=>[l.createElementVNode("template",JO,[l.renderSlot(i.$slots,"prepend")]),l.createElementVNode("template",e1,[l.renderSlot(i.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const Ns=x(KO,[["render",t1],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/idcard.vue"]]),i1={name:"cvInputDigit",mixins:[wt],components:{},props:{},data(){return{}},methods:{_diyValidate(){let i=/^(([0-9])|([1-9]([0-9]+)))(.[0-9]+)?$/;this.rules.indexOf("digit")!==-1&&!i.test(this.localVal)&&(this._showError="请输入正确的"+this.label)}}},n1={slot:"prepend"},s1={slot:"append"};function r1(i,e,t,n,s,r){const o=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(o,l.mergeProps({type:"number"},i.$props,{modelValue:i.localVal,"onUpdate:modelValue":e[0]||(e[0]=a=>i.localVal=a),onChange:i.handleChange,onInput:i.handleInput,placeholder:i.placeholder?i.placeholder:"请输入",clearable:""}),{default:l.withCtx(()=>[l.createElementVNode("template",n1,[l.renderSlot(i.$slots,"prepend")]),l.createElementVNode("template",s1,[l.renderSlot(i.$slots,"append")])]),_:3},16,["modelValue","onChange","onInput","placeholder"])}const Rs=x(i1,[["render",r1],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/digit.vue"]]),o1={name:"cvTextarea",mixins:[wt],props:{rows:{type:[Number,String],default:3},autosize:{type:[Boolean,Object],default:!1}},data(){return{}},methods:{onSubmit(){this.$emit("btnClick",this.localVal)},_diyValidate(){let i=/^.*$/;this.rules.indexOf("textarea")!==-1&&!i.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}};function l1(i,e,t,n,s,r){const o=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(o,l.mergeProps({type:"textarea"},{disabled:i.disabled,rows:t.rows,autosize:t.autosize},{modelValue:i.localVal,"onUpdate:modelValue":e[0]||(e[0]=a=>i.localVal=a),onInput:i.handleInput,placeholder:i.placeholder?i.placeholder:"请输入内容",clearable:""}),null,16,["modelValue","onInput","placeholder"])}const Is=x(o1,[["render",l1],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/textarea.vue"]]),a1={name:"cvTextareaBtn",mixins:[wt],components:{},props:{rows:{type:[Number,String],default:3},btnText:{type:[Number,String],default:""},btnIcon:{type:[String],default:""},autosize:{type:[Boolean,Object],default:!1}},data(){return{}},methods:{onSubmit(){this.$emit("btnClick",this.localVal)},_diyValidate(){let i=/^.*$/;this.rules.indexOf("textarea")!==-1&&!i.test(this.localVal)&&this._showError("请输入正确的"+this.label)}}},c1={class:"cv-textab-group"},h1={class:"cv-textab-group__append"},u1={class:"cv-textab_slot-wrap"};function d1(i,e,t,n,s,r){const o=l.resolveComponent("el-input"),a=l.resolveComponent("el-button");return l.openBlock(),l.createElementBlock("div",c1,[l.createVNode(o,l.mergeProps({type:"textarea"},{disabled:i.disabled,rows:t.rows,autosize:t.autosize},{modelValue:i.localVal,"onUpdate:modelValue":e[0]||(e[0]=c=>i.localVal=c),onInput:i.handleInput,placeholder:i.placeholder?i.placeholder:"请输入内容",clearable:""}),null,16,["modelValue","onInput","placeholder"]),l.createElementVNode("div",h1,[l.createElementVNode("div",u1,[l.renderSlot(i.$slots,"default",{},()=>[l.createVNode(a,{class:"cv-textab_slotbtn",type:"primary",size:i.size,onClick:r.onSubmit},{default:l.withCtx(()=>[t.btnIcon?(l.openBlock(),l.createElementBlock("i",{key:0,class:l.normalizeClass(t.btnIcon),style:{"margin-right":"5px"}},null,2)):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(t.btnText),1)]),_:1},8,["size","onClick"])])])])])}const Ls=x(a1,[["render",d1],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/textareabtn.vue"]]),f1={name:"cvInputBtn",mixins:[wt],emits:["btnClick"],components:{},props:{btnText:{type:[Number,String],default:"确定"},btnIcon:{type:[String],default:""}},data(){return{}},methods:{onSubmit(){this.$emit("btnClick",this.localVal)}}},p1={class:"cv-input-group"},m1={class:"cv-input-group__append"};function g1(i,e,t,n,s,r){const o=l.resolveComponent("el-input"),a=l.resolveComponent("el-button");return l.openBlock(),l.createElementBlock("div",p1,[l.createVNode(o,l.mergeProps({type:"text"},i.$props,{modelValue:i.localVal,"onUpdate:modelValue":e[0]||(e[0]=c=>i.localVal=c),onChange:i.handleChange,onInput:i.handleInput,placeholder:i.placeholder?i.placeholder:"请输入",clearable:""}),null,16,["modelValue","onChange","onInput","placeholder"]),l.createElementVNode("div",m1,[l.renderSlot(i.$slots,"default",{},()=>[l.createVNode(a,{class:"cv-input-btn__slotbtn",type:"primary",size:i.size,onClick:r.onSubmit},{default:l.withCtx(()=>[t.btnIcon?(l.openBlock(),l.createElementBlock("i",{key:0,class:l.normalizeClass(t.btnIcon),style:{"margin-right":"5px"}},null,2)):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(t.btnText),1)]),_:1},8,["size","onClick"])])])])}const Ms=x(f1,[["render",g1],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input/src/btn.vue"]]);Zs.install=function(i){i.component(Zs.name,Zs)};As.install=function(i){i.component(As.name,As)};Bs.install=function(i){i.component(Bs.name,Bs)};Ds.install=function(i){i.component(Ds.name,Ds)};Ns.install=function(i){i.component(Ns.name,Ns)};Rs.install=function(i){i.component(Rs.name,Rs)};Is.install=function(i){i.component(Is.name,Is)};Ls.install=function(i){i.component(Ls.name,Ls)};Ms.install=function(i){i.component(Ms.name,Ms)};const O1={name:"cvInputCounter",extends:T.ElInputNumber,props:{},watch:{modelValue(){this.localVal=this.modelValue}},data(){return{localVal:0}},created(){},methods:{handleChange(i){this.$emit("update:modelValue",this.localVal)}}};function y1(i,e,t,n,s,r){const o=l.resolveComponent("el-input-number");return l.openBlock(),l.createBlock(o,l.mergeProps(i.$props,{modelValue:s.localVal,"onUpdate:modelValue":e[0]||(e[0]=a=>s.localVal=a),onChange:r.handleChange,step:i.step}),null,16,["modelValue","onChange","step"])}const Xs=x(O1,[["render",y1],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/input-counter/src/base.vue"]]);Xs.install=function(i){i.component(Xs.name,Xs)};const b1={name:"cvShowText",mixins:[],components:{},props:{text:{type:[Number,String,Object],default:""}},data(){return{}},created(){},methods:{}},k1={class:"cv-show-text"},w1=["innerHTML"];function v1(i,e,t,n,s,r){return l.openBlock(),l.createElementBlock("div",k1,[t.text?(l.openBlock(),l.createElementBlock("div",{key:0,innerHTML:t.text},null,8,w1)):l.createCommentVNode("",!0),t.text?l.createCommentVNode("",!0):l.renderSlot(i.$slots,"default",{key:1})])}const js=x(b1,[["render",v1],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/show-text.vue"]]),S1={name:"cvShowImage",mixins:[],components:{},props:{url:{type:[String,Array,Object],default:""},width:{type:[String],default:"100px"},height:{type:[String],default:"100px"}},data(){return{localUrl:""}},watch:{url:{handler(){this.localUrl=typeof this.url=="string"?[this.url]:this.url},immediate:!0,deep:!0}},created(){},methods:{}},C1={class:"cv-show-image"};function x1(i,e,t,n,s,r){const o=l.resolveComponent("el-image");return l.openBlock(),l.createElementBlock("div",C1,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.localUrl,(a,c)=>(l.openBlock(),l.createBlock(o,{style:l.normalizeStyle("width:"+t.width+"; height:"+t.height+"; margin-right:10px"),key:c,src:a,"preview-src-list":s.localUrl},null,8,["style","src","preview-src-list"]))),128))])}const zs=x(S1,[["render",x1],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/show-image.vue"]]),$1={name:"cvShowTip",props:{borderColor:{type:[String],default:"#50bfff"},bgColor:{type:[String],default:"#ecf8ff"}},data(){return{backgroundColor:"#ecf8ff",borderLeft:"5px solid #50bfff"}},created(){this.borderLeft=`5px solid ${this.borderColor}`,this.backgroundColor=`${this.bgColor}`},methods:{}};function _1(i,e,t,n,s,r){return l.openBlock(),l.createElementBlock("div",{class:"cv-show-tip",style:l.normalizeStyle({backgroundColor:this.backgroundColor,borderLeft:this.borderLeft})},[l.renderSlot(i.$slots,"default")],4)}const Ws=x($1,[["render",_1],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/show-tip.vue"]]),P1={name:"cv-gallery-dialog",props:{type:String,title:String,sources:Array,sliceSingle:{type:Boolean,default:!1},carouselAttrs:Object},data(){return{isShowCarousel:!1,sourceTitle:"",initialIndex:0,isShowPreview:!1}},methods:{startPreview(i){this.isShowPreview=!0,this.initialIndex=i,this.sourceTitle=this.sources[i].title},handleCarouselChange(i){this.sources[i]&&this.sources[i].title?this.sourceTitle=this.sources[i].title:this.sourceTitle=""}}},Q1={slot:"title"},V1=["src"],T1={key:0,class:"cv-gallery-iframe embed-responsive embed-responsive-16by9"},E1=["src"],Z1=["src"],A1=["src"];function B1(i,e,t,n,s,r){const o=l.resolveComponent("el-carousel-item"),a=l.resolveComponent("el-carousel"),c=l.resolveComponent("el-dialog");return l.openBlock(),l.createBlock(c,{visible:s.isShowPreview,"append-to-body":"",onOpen:e[0]||(e[0]=h=>s.isShowCarousel=!0),onClosed:e[1]||(e[1]=h=>s.isShowCarousel=!1),style:{"text-align":"center"}},{default:l.withCtx(()=>[l.createElementVNode("div",Q1,l.toDisplayString(s.sourceTitle||t.title),1),t.type==="video"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[s.isShowPreview?(l.openBlock(),l.createElementBlock("video",{key:0,src:t.sources[s.initialIndex].src,autoplay:"autoplay",class:"cv-gallery-video",controls:"controls",width:"100%"},null,8,V1)):l.createCommentVNode("",!0)],64)):t.type==="iframe"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[s.isShowPreview?(l.openBlock(),l.createElementBlock("div",T1,[l.createElementVNode("iframe",{src:t.sources[s.initialIndex].src,allowfullscreen:"true",border:"0",frameborder:"no",framespacing:"0",scrolling:"no"},null,8,E1)])):l.createCommentVNode("",!0)],64)):t.type==="image"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[t.sliceSingle&&t.sources[s.initialIndex]||t.sources.length===1?(l.openBlock(),l.createElementBlock("img",{key:0,src:t.sources[s.initialIndex].src,class:"cv-gallery-image"},null,8,Z1)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[s.isShowCarousel?(l.openBlock(),l.createBlock(a,l.mergeProps({key:0,"initial-index":s.initialIndex,onChange:r.handleCarouselChange,"indicator-position":"outside"},t.carouselAttrs),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.sources,(h,u)=>(l.openBlock(),l.createBlock(o,{key:u},{default:l.withCtx(()=>[l.createElementVNode("img",{src:h.src,class:"cv-gallery-image"},null,8,A1)]),_:2},1024))),128))]),_:1},16,["initial-index","onChange"])):l.createCommentVNode("",!0)],64))],64)):l.createCommentVNode("",!0)]),_:1},8,["visible"])}const D1=x(P1,[["render",B1],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/gallery-dialog.vue"]]),N1={name:"gallery",components:{GalleryDialog:D1},props:{type:{type:String,default:"image",validator(i){return["image","video","iframe"].includes(i)}},size:Number,width:Number,height:Number,lazy:{type:Boolean,default:!1},source:[String,Array,Object],thumbSuffix:String,thumbStyle:Object,carouselAttrs:Object,removeFn:Function,title:String,sliceSingle:{type:Boolean,default:!1}},data(){return{}},computed:{viewIconClass(){return this.type==="video"||this.type==="iframe"?"VideoPlay":"ZoomIn"},computedStyle(){let i=this.width||this.size,e=this.height||this.size;return this.type==="image"?(i=i?i+"px":"150px",e=e?e+"px":"150px"):(this.type==="video"||this.type==="iframe")&&(i=i?i+"px":"360px",e=e?e+"px":"auto"),Object.assign({},{width:i,height:e,display:"block"},this.thumbStyle)},thumbs(){return this.computedSources.map(i=>i.thumb)},computedSources(){const i=this.source;if(typeof i=="string")return[this.getStringSource(i)];if(i instanceof Array){const e=[];return i.forEach(t=>{t instanceof Object?e.push(this.getObjectSource(t)):typeof t=="string"&&e.push(this.getStringSource(t))}),e}else return i instanceof Object?[this.getObjectSource(i)]:[]}},methods:{handlePreview(i){this.$refs.dialog.startPreview(i)},handleRemove(i){this.removeFn(i)},getStringSource(i){let e=i;return this.type==="image"&&this.thumbSuffix&&(e+=this.thumbSuffix),{type:this.type,src:i,thumb:e}},getObjectSource(i){return i.type=i.thumb?"image":this.type,i.thumb=i.thumb||i.src,i}}},R1={key:0,class:"cv-gallery"},I1={class:"el-upload-list el-upload-list--picture-card"},L1=["src"],M1=["src"],X1={class:"el-upload-list__item-actions"},j1=["onClick"],z1=["onClick"];function W1(i,e,t,n,s,r){const o=l.resolveComponent("el-image"),a=l.resolveComponent("el-icon"),c=l.resolveComponent("Delete"),h=l.resolveComponent("GalleryDialog");return t.source?(l.openBlock(),l.createElementBlock("div",R1,[l.createElementVNode("div",I1,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.computedSources,(u,d)=>(l.openBlock(),l.createElementBlock("li",{key:d,class:"el-upload-list__item"},[l.renderSlot(i.$slots,"default",l.normalizeProps(l.guardReactiveProps({source:u,index:d})),()=>[u.type==="image"?(l.openBlock(),l.createBlock(o,{key:0,lazy:t.lazy,src:u.thumb,style:l.normalizeStyle(r.computedStyle),fit:"cover"},null,8,["lazy","src","style"])):u.type==="video"?(l.openBlock(),l.createElementBlock("video",{key:1,src:u.thumb,style:l.normalizeStyle(r.computedStyle)},null,12,L1)):u.type==="iframe"?(l.openBlock(),l.createElementBlock("div",{key:2,style:l.normalizeStyle(r.computedStyle),class:"cv-gallery-iframe embed-responsive embed-responsive-16by9"},[l.createElementVNode("iframe",{src:u.thumb,allowfullscreen:"true",border:"0",frameborder:"no",framespacing:"0",scrolling:"no"},null,8,M1)],4)):l.createCommentVNode("",!0)]),l.createElementVNode("span",X1,[l.createElementVNode("span",{onClick:f=>r.handlePreview(d,u)},[l.createVNode(a,null,{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(r.viewIconClass)))]),_:1})],8,j1),t.removeFn?(l.openBlock(),l.createElementBlock("span",{key:0,onClick:f=>r.handleRemove(d)},[l.createVNode(a,null,{default:l.withCtx(()=>[l.createVNode(c)]),_:1})],8,z1)):l.createCommentVNode("",!0),l.renderSlot(i.$slots,"action",l.normalizeProps(l.guardReactiveProps({source:u,index:d})))])]))),128))]),l.createVNode(h,{carouselAttrs:t.carouselAttrs,sliceSingle:t.sliceSingle,sources:r.computedSources,title:t.title,type:t.type,ref:"dialog"},null,8,["carouselAttrs","sliceSingle","sources","title","type"])])):l.createCommentVNode("",!0)}const Ys=x(N1,[["render",W1],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/show/src/gallery.vue"]]);js.install=function(i){i.component(js.name,js)};zs.install=function(i){i.component(zs.name,zs)};Ws.install=function(i){i.component(Ws.name,Ws)};Ys.install=function(i){i.component(Ys.name,Ys)};const Y1={name:"cvRadioOptBase"};function F1(i,e,t,n,s,r){const o=l.resolveComponent("el-radio");return l.openBlock(),l.createBlock(o,l.normalizeProps(l.guardReactiveProps(i.$props)),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},16)}const Fs=x(Y1,[["render",F1],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/radio/src/option-base.vue"]]),q1={name:"cvRadioOptBtn"};function U1(i,e,t,n,s,r){const o=l.resolveComponent("el-radio-button");return l.openBlock(),l.createBlock(o,l.normalizeProps(l.guardReactiveProps(i.$props)),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},16)}const qs=x(q1,[["render",U1],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/radio/src/option-button.vue"]]),G1={name:"cvRadioGroup",props:{...T.ElRadioGroup.props,modelValue:{default:""},type:{type:[String],default:"base"},dataLists:{type:Array,default(){return[]}},dataField:{type:[Object],default(){return{}}},disabled:{type:Boolean,default:!1}},watch:{modelValue(i){this.localVal=i},localVal(){this.handleChange()},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0}},data(){return{localText:[],localVal:this.modelValue,localOpt:[]}},created(){this._parseLocalOpt()},methods:{handleChange(){this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let i=[];if(this.dataLists&&this.dataLists.length!==0)if(typeof this.dataLists[0]=="string")this.dataLists.map(n=>{i.push({label:n,value:n})}),this.localOpt=i;else{var e=this.dataField&&this.dataField.label||"label",t=this.dataField&&this.dataField.value||"value";this.dataLists.map(n=>{let s=n[e]===0?0:n[e]||"",r=n[t]===0?0:n[t]||"";r=r===0?0:r||s,i.push({label:s,value:r,disabled:n.disabled&&!0||!1}),(n.checked=="true"||n.checked==!0)&&(typeof this.localVal=="string"?this.localVal=r:(typeof this.localVal=="array"||typeof this.localVal=="object")&&this.localVal.push(r))}),this.localOpt=i}}}};function H1(i,e,t,n,s,r){const o=l.resolveComponent("el-radio"),a=l.resolveComponent("el-radio-button"),c=l.resolveComponent("el-radio-group");return l.openBlock(),l.createBlock(c,{class:"cv-radio-group",modelValue:s.localVal,"onUpdate:modelValue":e[0]||(e[0]=h=>s.localVal=h)},{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default",{},()=>[t.type=="base"?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(s.localOpt,(h,u)=>(l.openBlock(),l.createBlock(o,{label:h.label,value:h.value,key:u,disabled:t.disabled||h.disabled},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.label),1)]),_:2},1032,["label","value","disabled"]))),128)):l.createCommentVNode("",!0),t.type=="button"?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(s.localOpt,(h,u)=>(l.openBlock(),l.createBlock(a,{label:h.label,value:h.value,key:u,disabled:t.disabled||h.disabled},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.label),1)]),_:2},1032,["label","value","disabled"]))),128)):l.createCommentVNode("",!0)])]),_:3},8,["modelValue"])}const Us=x(G1,[["render",H1],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/radio/src/group.vue"]]);Fs.install=function(i){i.component(Fs.name,Fs)};qs.install=function(i){i.component(qs.name,qs)};Us.install=function(i){i.component(Us.name,Us)};const K1={name:"cvCheckboxOptBase",extends:T.ElCheckbox};function J1(i,e,t,n,s,r){const o=l.resolveComponent("el-checkbox");return l.openBlock(),l.createBlock(o,l.normalizeProps(l.guardReactiveProps(i.$props)),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},16)}const Gs=x(K1,[["render",J1],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/option-base.vue"]]),e0={name:"cvCheckboxOptBtn",extends:T.ElCheckboxButton,props:{}};function t0(i,e,t,n,s,r){const o=l.resolveComponent("el-checkbox-button");return l.openBlock(),l.createBlock(o,l.normalizeProps(l.guardReactiveProps(i.$props)),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},16)}const Hs=x(e0,[["render",t0],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/option-button.vue"]]),Rd={props:{...T.ElCheckboxGroup.props,modelValue:{type:[Array],default(){return[]}},dataLists:{type:Array,default(){return[]}},dataField:{type:[Object],default(){return{}}},disabled:{type:Boolean,default:!1}},watch:{modelValue(){this.localVal=this.modelValue},localVal(){this.handleChange()},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0}},data(){return{localVal:this.modelValue,localOpt:[]}},created(){this.handleChange(),this._parseLocalOpt()},methods:{handleChange(){this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let i=[];if(this.dataLists&&this.dataLists.length!==0)if(typeof this.dataLists[0]=="string")this.dataLists.map(n=>{i.push({label:n,value:n})}),this.localOpt=i;else{var e=this.dataField&&this.dataField.label||"label",t=this.dataField&&this.dataField.value||"value";this.dataLists.map(n=>{let s=n[e]===0?0:n[e]||"",r=n[t]===0?0:n[t]||"";r=r===0?0:r||s,i.push({label:s,value:r,disabled:n.disabled&&!0||!1}),(n.checked=="true"||n.checked==!0)&&(typeof this.localVal=="string"?this.localVal=r:(typeof this.localVal=="array"||typeof this.localVal=="object")&&this.localVal.push(r))}),this.localOpt=i}this._parseLocalOptDiy()},_parseLocalOptDiy(){}}},i0={name:"cvCheckboxAll",mixins:[Rd],components:{},data(){return{checkAll:!1,isIndeterminate:!0,localOptAll:[]}},methods:{handleCheckAllChange(i){this.localVal=i?this.localOptAll:[],this.isIndeterminate=!1,this.handleChange()},handleCheckedCitiesChange(i){let e=i.length;this.checkAll=e===this.localOptAll.length,this.isIndeterminate=e>0&&e<this.localOptAll.length},_parseLocalOptDiy(){this.localOpt&&this.localOpt.length!==0&&this.localOpt.map(i=>{i.disabled||this.localOptAll.push(i.label)})}}},n0={class:"cv-checkbox-all"},s0=l.createElementVNode("div",{style:{margin:"15px 0"}},null,-1);function r0(i,e,t,n,s,r){const o=l.resolveComponent("el-checkbox"),a=l.resolveComponent("el-checkbox-group");return l.openBlock(),l.createElementBlock("div",n0,[l.createVNode(o,{indeterminate:s.isIndeterminate,modelValue:s.checkAll,"onUpdate:modelValue":e[0]||(e[0]=c=>s.checkAll=c),onChange:r.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode("全选")]),_:1},8,["indeterminate","modelValue","onChange"]),s0,l.createVNode(a,{modelValue:i.localVal,"onUpdate:modelValue":e[1]||(e[1]=c=>i.localVal=c),onChange:r.handleCheckedCitiesChange},{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default",{},()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.localOpt,(c,h)=>(l.openBlock(),l.createBlock(o,{label:c.label,value:c.value,key:h,onChange:i.handleChange,disabled:i.disabled||c.disabled},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(c.label),1)]),_:2},1032,["label","value","onChange","disabled"]))),128))])]),_:3},8,["modelValue","onChange"])])}const Ks=x(i0,[["render",r0],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/checkAll.vue"]]),o0={name:"cvCheckboxGroup",mixins:[Rd],components:{},props:{type:{type:[String],default:"base"}},data(){return{}}};function l0(i,e,t,n,s,r){const o=l.resolveComponent("el-checkbox"),a=l.resolveComponent("el-checkbox-button"),c=l.resolveComponent("el-checkbox-group");return l.openBlock(),l.createBlock(c,l.mergeProps(i.$props,{modelValue:i.localVal,"onUpdate:modelValue":e[0]||(e[0]=h=>i.localVal=h)}),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default",{},()=>[t.type=="base"?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(i.localOpt,(h,u)=>(l.openBlock(),l.createBlock(o,{label:h.label,value:h.value,key:u,onChange:i.handleChange,disabled:i.disabled||h.disabled},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.label),1)]),_:2},1032,["label","value","onChange","disabled"]))),128)):l.createCommentVNode("",!0),t.type=="button"?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(i.localOpt,(h,u)=>(l.openBlock(),l.createBlock(a,{label:h.label,value:h.value,key:u,onChange:i.handleChange,disabled:i.disabled||h.disabled},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.label),1)]),_:2},1032,["label","value","onChange","disabled"]))),128)):l.createCommentVNode("",!0)])]),_:3},16,["modelValue"])}const Js=x(o0,[["render",l0],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/checkbox/src/group.vue"]]);Gs.install=function(i){i.component(Gs.name,Gs)};Hs.install=function(i){i.component(Hs.name,Hs)};Js.install=function(i){i.component(Js.name,Js)};Ks.install=function(i){i.component(Ks.name,Ks)};function a0(i,e,t){var n=t||{},s=n.noTrailing,r=s===void 0?!1:s,o=n.noLeading,a=o===void 0?!1:o,c=n.debounceMode,h=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(y){var b=y||{},k=b.upcomingOnly,w=k===void 0?!1:k;p(),d=!w}function g(){for(var y=arguments.length,b=new Array(y),k=0;k<y;k++)b[k]=arguments[k];var w=this,S=Date.now()-f;if(d)return;function v(){f=Date.now(),e.apply(w,b)}function P(){u=void 0}!a&&h&&!u&&v(),p(),h===void 0&&S>i?a?(f=Date.now(),r||(u=setTimeout(h?P:v,i))):v():r!==!0&&(u=setTimeout(h?P:v,h===void 0?i-S:i))}return g.cancel=m,g}function c0(i,e,t){var n=t||{},s=n.atBegin,r=s===void 0?!1:s;return a0(i,e,{debounceMode:r!==!1})}function Gl(i,e=!1){let t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("id",i),e?t.setAttribute("href",i+"?t="+new Date().getTime()):t.setAttribute("href",i),document.getElementById(i)||document.head.appendChild(t)}function ze(i,e=!1,t=!0){return new Promise((n,s)=>{const r=document.createElement("script");i=i.replace(/([^:]\/)\/+/g,"$1"),r.src=i,r.id=i,r.type="text/javascript",e?r.src=i+"?t="+new Date().getTime():r.src=i,document.getElementById(i)&&t?n():(document.body.appendChild(r),r.onload=()=>{n()})})}function h0(i){const e=i,t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("Copy"),T.ElMessage({message:"复制成功",type:"success"}),t.remove()}const u0={name:"cvGeoCity",mixins:[],components:{},props:{modelValue:{type:[String,Array,Number],default(){return[]}},cityHide:{type:Boolean,default:!1},districtHide:{type:Boolean,default:!1},initChoose:{type:[String,Array,Number],default(){return[]}},initStr:{type:[String,Array,Number],default(){return[]}}},watch:{modelValue(i){},initChoose:{deep:!0,immediate:!0,handler(i){this.initProvince(i)}}},data(){return{provinceCdnList:{},cityCdnList:{},districtCdnList:{},isCdnLoading:!0,provinceList:[],cityList:[],districtList:[],provinceCode:"",cityCode:"",districtCode:"",provinceFlag:!1,cityFlag:!1,districtFlag:!1,activeSelectArr:{}}},async mounted(){await ze(this.CDN_URL_UI+"/dict/dict-area/area-province.js"),await ze(this.CDN_URL_UI+"/dict/dict-area/area-city.js"),await ze(this.CDN_URL_UI+"/dict/dict-area/area-district.js").then(()=>{this.initLoad()})},methods:{initLoad(){setTimeout(()=>{this.provinceCdnList=window.cdn__DictAreaProvince,this.cityCdnList=window.cdn__DictAreaCity,this.districtCdnList=window.cdn__DictAreaDistrict,this.provinceFlag=!1,this.isCdnLoading=!1,this.getProvinces()},200)},initProvince(i){this.getProvinces();let e=i[0]||"";if(e!=""){let t=parseInt(e);this.provinceList.some((n,s)=>{if((isNaN(t)?n.provinceName:n.provinceCode)==e)return this.provinceCode=n.provinceCode,this.handleChoose("provinceCode",n,s),!0})}this.changeProvince(this.provinceCode),this.initCity(i)},initCity(i){let e=i[1]||"";if(e!=""){let t=parseInt(e);this.cityList.some((n,s)=>{if((isNaN(t)?n.cityName:n.cityCode)==e)return this.cityCode=n.cityCode,this.handleChoose("cityCode",n,s),!0})}this.changeCity(this.cityCode),this.initDistrict(i)},initDistrict(i){let e=i[2]||"";if(e!=""){let t=parseInt(e);this.districtList.some((n,s)=>{if((isNaN(t)?n.districtName:n.districtCode)==e)return this.districtCode=n.districtCode,this.handleChoose("districtCode",n,s),!0})}this.changeDistrict(this.districtCode)},handleChoose(i,e,t){switch(e.index=t,i){case"provinceCode":delete this.activeSelectArr.city,delete this.activeSelectArr.district,Object.assign(this.activeSelectArr,{province:{text:e.provinceName,value:e.provinceCode,index:e.index}}),this._getNeedDistrict();break;case"cityCode":delete this.activeSelectArr.district,Object.assign(this.activeSelectArr,{city:{text:e.cityName,value:e.cityCode,index:e.index}});break;case"districtCode":Object.assign(this.activeSelectArr,{district:{text:e.districtName,value:e.districtCode,index:e.index}});break}this.$emit("onChoose",this.activeSelectArr)},getProvinces(){if(!this.provinceFlag&&typeof this.provinceCdnList=="object"){let i=[];for(let e in this.provinceCdnList)i.push({provinceCode:e,provinceName:this.provinceCdnList[e]});this.provinceList=i,this.provinceFlag=!0}},changeProvince(i){this._getNeedCity(),this.cityFlag=!0,this.cityCode="",this.districtCode="";let e;this.provinceList.map(t=>{t.provinceCode==i&&(e=t.provinceName)}),this.$emit("addressSelect",[i,e])},_getNeedCity(){let i=[],e=this.provinceCode;for(let t in this.cityCdnList)t.substring(0,2)==e.substring(0,2)&&i.push({cityCode:t,cityName:this.cityCdnList[t]});this.cityList=i},getCities(){this.cityFlag||this.provinceCode&&(this._getNeedCity(),this.cityFlag=!0)},changeCity(i){this._getNeedDistrict(),this.districtFlag=!0,this.districtCode="";let e;this.cityList.map(t=>{t.cityCode==i&&(e=t.cityName)}),this.$emit("addressSelect",[i,e])},_getNeedDistrict(){let i=[],e=this.cityCode;for(let t in this.districtCdnList)t.substring(0,4)==e.substring(0,4)&&i.push({districtCode:t,districtName:this.districtCdnList[t]});this.districtList=i},getDistrict(){this.districtFlag||this.cityCode&&this._getNeedDistrict()},changeDistrict(i){let e;this.districtList.map(t=>{t.districtCode==i&&(e=t.districtName)}),this.$emit("addressSelect",[i,e])}}},d0={class:"cv-geo-city"},f0={key:0},p0={key:1};function m0(i,e,t,n,s,r){const o=l.resolveComponent("el-option"),a=l.resolveComponent("el-select"),c=l.resolveDirective("loading");return l.withDirectives((l.openBlock(),l.createElementBlock("div",d0,[l.createElementVNode("div",null,[l.createVNode(a,{modelValue:s.provinceCode,"onUpdate:modelValue":e[0]||(e[0]=h=>s.provinceCode=h),onFocus:r.getProvinces,onChange:r.changeProvince,placeholder:"省",filterable:""},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.provinceList,(h,u)=>(l.openBlock(),l.createBlock(o,{onClick:d=>r.handleChoose("provinceCode",h,u),key:h.provinceCode,label:h.provinceName,value:h.provinceCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])]),t.cityHide?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",f0,[l.createVNode(a,{modelValue:s.cityCode,"onUpdate:modelValue":e[1]||(e[1]=h=>s.cityCode=h),onFocus:r.getCities,onChange:r.changeCity,placeholder:"市",filterable:""},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.cityList,(h,u)=>(l.openBlock(),l.createBlock(o,{onClick:d=>r.handleChoose("cityCode",h,u),key:h.cityCode,label:h.cityName,value:h.cityCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])])),!t.cityHide&&!t.districtHide?(l.openBlock(),l.createElementBlock("div",p0,[l.createVNode(a,{modelValue:s.districtCode,"onUpdate:modelValue":e[2]||(e[2]=h=>s.districtCode=h),onFocus:r.getDistrict,onChange:r.changeDistrict,placeholder:"区/县",filterable:""},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.districtList,(h,u)=>(l.openBlock(),l.createBlock(o,{onClick:d=>r.handleChoose("districtCode",h,u),key:h.districtCode,label:h.districtName,value:h.districtCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])])):l.createCommentVNode("",!0)])),[[c,s.isCdnLoading]])}const er=x(u0,[["render",m0],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/geo/src/geo-city.vue"]]),g0={name:"cvGeoCity2",mixins:[],components:{},props:{modelValue:{type:[String,Array,Number],default(){return[]}},cityHide:{type:Boolean,default:!1},districtHide:{type:Boolean,default:!1},initChoose:{type:[String,Array,Number],default(){return[]}},initStr:{type:[String,Array,Number],default(){return[]}}},watch:{initChoose:{deep:!0,immediate:!0,handler(i){this.initProvince(i)}}},data(){return{provinceCdnList:{},cityCdnList:{},districtCdnList:{},isCdnLoading:!0,provinceList:[],cityList:[],districtList:[],provinceCode:"",cityCode:"",districtCode:"",hideMunicipality:!1,municipalities:["110000","120000","310000","500000","北京市","天津市","上海市","重庆市"],provinceFlag:!1,cityFlag:!1,districtFlag:!1,activeSelectArr:{}}},async mounted(){await ze(this.CDN_URL_UI+"/dict/dict-area/area-province.js"),await ze(this.CDN_URL_UI+"/dict/dict-area/area-city.js"),await ze(this.CDN_URL_UI+"/dict/dict-area/area-district.js").then(()=>{this.initLoad()})},methods:{initLoad(){setTimeout(()=>{this.provinceCdnList=window.cdn__DictAreaProvince,this.cityCdnList=window.cdn__DictAreaCity,this.districtCdnList=window.cdn__DictAreaDistrict,this.provinceFlag=!1,this.isCdnLoading=!1,this.getProvinces()},200)},initProvince(i){this.getProvinces();let e=i[0]||"";if(e!=""){let t=parseInt(e);this.provinceList.some((n,s)=>{if((isNaN(t)?n.provinceName:n.provinceCode)==e)return this.provinceCode=n.provinceCode,this.handleChoose("provinceCode",n,s),!0})}this.changeProvince(this.provinceCode),this.initCity(i)},initCity(i){let e=i[1]||"";if(e!=""){let t=parseInt(e);this.cityList.some((n,s)=>{if((isNaN(t)?n.cityName:n.cityCode)==e)return this.cityCode=n.cityCode,this.handleChoose("cityCode",n,s),!0})}this.changeCity(this.cityCode),this.initDistrict(i)},initDistrict(i){let e=i[2]||"";if(e!=""){let t=parseInt(e);this.districtList.some((n,s)=>{if((isNaN(t)?n.districtName:n.districtCode)==e)return this.districtCode=n.districtCode,this.handleChoose("districtCode",n,s),!0})}this.changeDistrict(this.districtCode)},handleChoose(i,e,t){switch(e.index=t,i){case"provinceCode":if(delete this.activeSelectArr.city,delete this.activeSelectArr.district,Object.assign(this.activeSelectArr,{province:{text:e.provinceName,value:e.provinceCode,index:e.index}}),this._getNeedDistrict(),this.municipalities.indexOf(e.provinceCode)>-1){this.cityList.length==0&&this._getNeedCity();const n=this.cityList[0];this.cityCode=n.cityCode,this.changeCity(n.cityCode),this.handleChoose("cityCode",n,0);break}break;case"cityCode":delete this.activeSelectArr.district,Object.assign(this.activeSelectArr,{city:{text:e.cityName,value:e.cityCode,index:e.index}});break;case"districtCode":Object.assign(this.activeSelectArr,{district:{text:e.districtName,value:e.districtCode,index:e.index}});break}this.$emit("onChoose",this.activeSelectArr)},getProvinces(){if(!this.provinceFlag&&typeof this.provinceCdnList=="object"){let i=[];for(let e in this.provinceCdnList)i.push({provinceCode:e,provinceName:this.provinceCdnList[e]});this.provinceList=i,this.provinceFlag=!0}},changeProvince(i){this._getNeedCity(),this.cityFlag=!0,this.cityCode="",this.districtCode="";let e;this.provinceList.map(t=>{t.provinceCode==i&&(e=t.provinceName)}),this.hideMunicipality=this.municipalities.indexOf(this.provinceCode)>-1,this.$emit("addressSelect",[i,e])},_getNeedCity(){let i=[],e=this.provinceCode;for(let t in this.cityCdnList)t.substring(0,2)==e.substring(0,2)&&i.push({cityCode:t,cityName:this.cityCdnList[t]});this.cityList=i},getCities(){this.cityFlag||this.provinceCode&&(this._getNeedCity(),this.cityFlag=!0)},changeCity(i){this._getNeedDistrict(),this.districtFlag=!0,this.districtCode="";let e;this.cityList.map(t=>{t.cityCode==i&&(e=t.cityName)}),this.$emit("addressSelect",[i,e])},_getNeedDistrict(){let i=[],e=this.cityCode;for(let t in this.districtCdnList)t.substring(0,4)==e.substring(0,4)&&i.push({districtCode:t,districtName:this.districtCdnList[t]}),e=="500100"&&t.substring(0,4)=="5002"&&i.push({districtCode:t,districtName:this.districtCdnList[t]});this.districtList=i},getDistrict(){this.districtFlag||this.cityCode&&this._getNeedDistrict()},changeDistrict(i){let e;this.districtList.map(t=>{t.districtCode==i&&(e=t.districtName)}),this.$emit("addressSelect",[i,e])}}},O0={class:"cv-geo-city"},y0=["hidden"],b0={key:1};function k0(i,e,t,n,s,r){const o=l.resolveComponent("el-option"),a=l.resolveComponent("el-select"),c=l.resolveDirective("loading");return l.withDirectives((l.openBlock(),l.createElementBlock("div",O0,[l.createElementVNode("div",null,[l.createVNode(a,{modelValue:s.provinceCode,"onUpdate:modelValue":e[0]||(e[0]=h=>s.provinceCode=h),onFocus:r.getProvinces,onChange:r.changeProvince,placeholder:"省",filterable:""},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.provinceList,(h,u)=>(l.openBlock(),l.createBlock(o,{onClick:d=>r.handleChoose("provinceCode",h,u),key:h.provinceCode,label:h.provinceName,value:h.provinceCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])]),t.cityHide?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:0,hidden:s.hideMunicipality},[l.createVNode(a,{modelValue:s.cityCode,"onUpdate:modelValue":e[1]||(e[1]=h=>s.cityCode=h),onFocus:r.getCities,onChange:r.changeCity,placeholder:"市",filterable:""},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.cityList,(h,u)=>(l.openBlock(),l.createBlock(o,{onClick:d=>r.handleChoose("cityCode",h,u),key:h.cityCode,label:h.cityName,value:h.cityCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])],8,y0)),!t.cityHide&&!t.districtHide?(l.openBlock(),l.createElementBlock("div",b0,[l.createVNode(a,{modelValue:s.districtCode,"onUpdate:modelValue":e[2]||(e[2]=h=>s.districtCode=h),onFocus:r.getDistrict,onChange:r.changeDistrict,placeholder:"区/县",filterable:""},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.districtList,(h,u)=>(l.openBlock(),l.createBlock(o,{onClick:d=>r.handleChoose("districtCode",h,u),key:h.districtCode,label:h.districtName,value:h.districtCode},null,8,["onClick","label","value"]))),128))]),_:1},8,["modelValue","onFocus","onChange"])])):l.createCommentVNode("",!0)])),[[c,s.isCdnLoading]])}const tr=x(g0,[["render",k0],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/geo/src/geo-city2.vue"]]);er.install=function(i){i.component(er.name,er)};tr.install=function(i){i.component(tr.name,tr)};const w0={...T.ElOption,extends:T.ElOption,name:"cvSelectOpt"},ir=x(w0,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/option.vue"]]),v0={name:"cvSelectBase",emits:["onChoose","change","update:modelValue"],props:{...T.ElSelect.props,modelValue:{type:[String,Array,Number],default(){return""}},dataLists:{type:[Array],default(){return[]}},dataField:{type:[Object],default(){return{}}},dataDisabled:{type:[Array],default(){return[]}},disabled:{type:Boolean,default:!1},placeholder:{type:[String,Number],default:"请选择"}},watch:{modelValue(i){this.localVal=i},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0},localVal(i){this.handleChange()}},data(){return{localVal:this.modelValue,localOpt:[]}},methods:{handleChoose(i,e){this.$emit("onChoose",i,e)},handleChange(){this.$emit("change",this.localVal),this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let i=[];if(this.dataLists&&this.dataLists.length!==0)if(typeof this.dataLists[0]=="string")this.dataLists.map(n=>{i.push({label:n,value:n})}),this.localOpt=i;else{var e=this.dataField&&this.dataField.label||"label",t=this.dataField&&this.dataField.value||"value";this.dataLists.map(n=>{let s=n[e]===0?0:n[e]||"",r=n[t]===0?0:n[t]||"";if(r=r===0?0:r||s,this.dataDisabled.length>0)for(let o in this.dataDisabled)this.dataDisabled[o][t]==r&&(n.disabled=!0);i.push({label:s,value:r,disabled:n.disabled&&!0||!1}),(n.checked=="true"||n.checked==!0)&&(typeof this.localVal=="string"?this.localVal=r:(typeof this.localVal=="array"||typeof this.localVal=="object")&&this.localVal.push(r))}),this.localOpt=i}}}};function S0(i,e,t,n,s,r){const o=l.resolveComponent("el-option"),a=l.resolveComponent("el-select");return l.openBlock(),l.createBlock(a,l.mergeProps({class:"cv-select-base"},i.$props,{modelValue:s.localVal,"onUpdate:modelValue":e[0]||(e[0]=c=>s.localVal=c),size:i.size,filterable:"",clearable:""}),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default",{},()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.localOpt,(c,h)=>(l.openBlock(),l.createBlock(o,{onClick:u=>r.handleChoose(c,h),disabled:c.disabled,label:c.label,value:c.value,key:h},null,8,["onClick","disabled","label","value"]))),128))])]),_:3},16,["modelValue","size"])}const nr=x(v0,[["render",S0],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/select-base.vue"]]),C0={name:"cvSelectTree",emits:["update:modelValue","change"],props:{...T.ElSelect.props,modelValue:{type:[String,Array,Number],default(){return""}},dataLists:{type:[Array],default(){return[]}},dataField:{type:[Object],default:()=>({value:"id",label:"title",children:"children"})},clearable:{type:Boolean,default:!0},accordion:{type:Boolean,default:!1},defaultExpandAll:{type:Boolean,default:!0},dataDisabled:{type:[Array],default(){return[]}},disabled:{type:Boolean,default:!1},placeholder:{type:[String,Number],default:"请选择"},showAllLevels:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},emitPath:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},refID:{type:[String],required:!1,default(){return"cvSelectTree-"+ +new Date+((Math.random()/1e4).toFixed(0)+"")}}},watch:{modelValue(){this.localVal=this.modelValue,this.initHandle()},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0},localVal(){this.handleChange()}},data(){return{localVal:"",localOpt:[],localTitle:"",defaultExpandedKey:[]}},computed:{props2(){return Object.assign(this.dataField,{emitPath:this.emitPath},{multiple:this.multiple})}},created(){},mounted(){this.localVal=this.modelValue,this.initHandle()},methods:{initHandle(){if(this.localVal){var i=this.$refs[this.refID+"tree"].getNode(this.localVal);i&&(this.localTitle=i.data[this.dataField.label],this.$refs[this.refID+"tree"].setCurrentKey(this.localVal),this.defaultExpandedKey=[this.localVal])}else this.clearHandle();this.initScroll()},initScroll(){this.$nextTick(()=>{let i=document.querySelectorAll(".cv-select-tree .el-scrollbar .el-select-dropdown__wrap")[0],e=document.querySelectorAll(".cv-select-tree .el-scrollbar .el-scrollbar__bar");i.style.cssText="margin: 0px; max-height: none; overflow: hidden;",e.forEach(t=>t.style.width=0)})},handleNodeClick(i,e,t){i.disabled||(this.localTitle=i[this.dataField.label],this.localVal=i[this.dataField.value],this.defaultExpandedKey=[],this.$refs[this.refID].blur())},clearHandle(){this.localTitle="",this.localVal="",this.defaultExpandedKey=[],this.clearSelected()},clearSelected(){document.querySelectorAll(`#${this.refID}tree .el-tree-node`).forEach(e=>e.classList.remove("is-current"))},handleChange(){this.$emit("change",this.localVal),this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let i=this.dataLists;this.dataField&&this.dataField.label;let e=this.dataField&&this.dataField.value||"value",t=this.dataField&&this.dataField.children||"children",n=this.dataDisabled;s(i);function s(r){for(let o in r)n.map(a=>{r[o][e]==a[e]&&(r[o].disabled=!0)}),r[o][t]&&s(r[o][t])}this.localOpt=i}}};function x0(i,e,t,n,s,r){const o=l.resolveComponent("el-tree"),a=l.resolveComponent("el-option"),c=l.resolveComponent("el-select");return l.openBlock(),l.createBlock(c,l.mergeProps(i.$props,{ref:t.refID,"popper-class":"cv-select-tree",modelValue:s.localTitle,onClear:r.clearHandle}),{default:l.withCtx(()=>[l.createVNode(a,{value:s.localTitle,label:s.localTitle,class:"options"},{default:l.withCtx(()=>[l.createVNode(o,{"highlight-current":"",id:t.refID+"tree",ref:t.refID+"tree",accordion:t.accordion,showCheckbox:t.showCheckbox,data:s.localOpt,props:t.dataField,"node-key":t.dataField.value,onNodeClick:r.handleNodeClick,"default-expand-all":t.defaultExpandAll},null,8,["id","accordion","showCheckbox","data","props","node-key","onNodeClick","default-expand-all"])]),_:1},8,["value","label"])]),_:1},16,["modelValue","onClear"])}const sr=x(C0,[["render",x0],["__scopeId","data-v-604c350d"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/select/src/select-tree.vue"]]);ir.install=function(i){i.component(ir.name,ir)};nr.install=function(i){i.component(nr.name,nr)};sr.install=function(i){i.component(sr.name,sr)};const $0={name:"cvCascaderBase",components:{},props:{...T.ElCascader.props,modelValue:{type:[String,Array,Number],default(){}},dataLists:{type:[Array],default(){return[]}},dataDisabled:{type:[Array],default(){return[]}},disabled:{type:Boolean,default:!1},placeholder:{type:[String,Number],default:"请选择"},showAllLevels:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},dataField:{type:[Object],default(){return{}}},emitPath:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1}},watch:{modelValue(){this.localVal=this.modelValue},dataLists:{handler(){this._parseLocalOpt()},immediate:!0,deep:!0},localVal(){this.handleChange(),this.handleInput()}},data(){return{localVal:this.modelValue,localOpt:[]}},computed:{props2(){return Object.assign(this.dataField,{emitPath:this.emitPath},{multiple:this.multiple})}},created(){},methods:{handleChange(){this.$emit("change",this.localVal)},handleInput(){this.$emit("update:modelValue",this.localVal)},_parseLocalOpt(){let i=this.dataLists,e=this.dataField&&this.dataField.value||"value",t=this.dataDisabled;n(i);function n(s){for(let r in s)t.map(o=>{s[r][e]==o[e]&&(s[r].disabled=!0)}),s[r].children&&n(s[r].children)}this.localOpt=i},getCheckedNodes(){}}},_0={class:"cv-cascader-base block"};function P0(i,e,t,n,s,r){const o=l.resolveComponent("el-cascader");return l.openBlock(),l.createElementBlock("div",_0,[l.createVNode(o,l.mergeProps(i.$props,{props:r.props2,modelValue:s.localVal,"onUpdate:modelValue":e[0]||(e[0]=a=>s.localVal=a),options:s.localOpt,onChange:r.handleChange,onGetCheckedNodes:r.getCheckedNodes}),null,16,["props","modelValue","options","onChange","onGetCheckedNodes"])])}const rr=x($0,[["render",P0],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/cascader/src/base.vue"]]);rr.install=function(i){i.component(rr.name,rr)};const Id={props:{...T.ElTimePicker.props,modelValue:{type:[String,Array,Number,Object,Date],default:null}},watch:{modelValue:{handler(){if(this.valueFormat=="timestamp"){if(Array.isArray(this.modelValue)){var i;if(i=this.modelValue.map(e=>{if(!isNaN(e)&&e.toString().length==10)return e*1e3}),this.localVal&&this.localVal[0]==i[0]&&this.localVal[1]==i[1])return;this.localVal=i}else this.modelValue&&this.modelValue.toString().length==10&&this.localVal!=this.modelValue*1e3&&(this.localVal=this.modelValue*1e3);return}this.localVal=this.modelValue},immediate:!0,deep:!0},localVal(){if(this.valueFormat=="timestamp"){var i;if(Array.isArray(this.localVal)){if(i=this.localVal.map(e=>{if(!isNaN(e)&&e.toString().length==13)return parseInt(e/1e3)}),this.modelValue&&i[0]==this.modelValue[0]&&i[1]==this.modelValue[1])return;this.$emit("update:modelValue",i)}else!isNaN(this.localVal)&&this.localVal.toString().length==13&&(i=parseInt(this.localVal/1e3),this.modelValue!=i&&this.$emit("update:modelValue",i));return}this.$emit("update:modelValue",this.localVal)}},data(){return{localVal:""}},created(){},methods:{}},Q0={name:"cvTimeBase",mixins:[Id],props:{format:{type:String,default:"HH:mm:ss"},valueFormat:{type:String,default:"HH:mm:ss"},placeholder:{type:[String,Number],default:"选择时间"}}};function V0(i,e,t,n,s,r){const o=l.resolveComponent("el-time-picker");return l.openBlock(),l.createBlock(o,l.mergeProps({class:"cv-timePicker-base"},i.$props,{modelValue:i.localVal,"onUpdate:modelValue":e[0]||(e[0]=a=>i.localVal=a),format:t.format,"picker-options":{}}),null,16,["modelValue","format"])}const or=x(Q0,[["render",V0],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/time-base.vue"]]),T0={name:"cvTimeRange",mixins:[Id],props:{format:{type:String,default:"HH:mm:ss"},valueFormat:{type:String,default:"HH:mm:ss"},startPlaceholder:{type:[String,Number],default:"开始时间"},rangeSeparator:{type:[String,Number],default:"至"},endPlaceholder:{type:[String,Number],default:"结束时间"}}};function E0(i,e,t,n,s,r){const o=l.resolveComponent("el-time-picker");return l.openBlock(),l.createBlock(o,l.mergeProps({class:"cv-timePicker-range"},i.$props,{"is-range":"",modelValue:i.localVal,"onUpdate:modelValue":e[0]||(e[0]=a=>i.localVal=a),format:t.format,"range-separator":t.rangeSeparator,"start-placeholder":t.startPlaceholder,"end-placeholder":t.endPlaceholder}),null,16,["modelValue","format","range-separator","start-placeholder","end-placeholder"])}const lr=x(T0,[["render",E0],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/time-range.vue"]]),Z0={name:"cvTimeSelect"};function A0(i,e,t,n,s,r){const o=l.resolveComponent("el-time-select");return l.openBlock(),l.createBlock(o,l.mergeProps({class:"cv-time-select"},i.$props),null,16)}const ar=x(Z0,[["render",A0],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/time-select.vue"]]),jo={props:{...T.ElDatePicker.props,modelValue:{type:[String,Array,Number,Object,Date],default:null},pickerOptions:{type:Boolean,default:!1}},watch:{modelValue:{handler(){if(this.valueFormat=="timestamp"){if(Array.isArray(this.modelValue)){var i;if(i=this.modelValue.map(e=>{if(!isNaN(e)&&e.toString().length==10)return e*1e3}),this.localVal&&this.localVal[0]==i[0]&&this.localVal[1]==i[1])return;this.localVal=i}else this.modelValue&&this.modelValue.toString().length==10&&this.localVal!=this.modelValue*1e3&&(this.localVal=this.modelValue*1e3);return}this.localVal=this.modelValue},immediate:!0,deep:!0},localVal(){if(this.valueFormat=="timestamp"){var i;if(Array.isArray(this.localVal)){if(i=this.localVal.map(e=>{if(!isNaN(e)&&e.toString().length==13)return parseInt(e/1e3)}),this.modelValue&&i[0]==this.modelValue[0]&&i[1]==this.modelValue[1])return;this.$emit("update:modelValue",i)}else!isNaN(this.localVal)&&this.localVal.toString().length==13&&(i=parseInt(this.localVal/1e3),this.modelValue!=i&&this.$emit("update:modelValue",i));return}this.$emit("update:modelValue",this.localVal)}},data(){return{localVal:""}}},B0={name:"cvDateBase",mixins:[jo],props:{format:{type:String,default:"YYYY-MM-DD"},valueFormat:{type:String,default:"YYYY-MM-DD"},placeholder:{type:[String,Number],default:"选择日期"}},data(){return{localPickerOptions:{disabledDate(i){return i.getTime()>Date.now()},shortcuts:[{text:"今天",onClick(i){i.$emit("pick",new Date)}},{text:"昨天",onClick(i){const e=new Date;e.setTime(e.getTime()-3600*1e3*24),i.$emit("pick",e)}},{text:"一周前",onClick(i){const e=new Date;e.setTime(e.getTime()-3600*1e3*24*7),i.$emit("pick",e)}},{text:"一个月前",onClick(i){const e=new Date;e.setTime(e.getTime()-3600*1e3*24*30),i.$emit("pick",e)}},{text:"三个月前",onClick(i){const e=new Date;e.setTime(e.getTime()-3600*1e3*24*90),i.$emit("pick",e)}},{text:"六个月前",onClick(i){const e=new Date;e.setTime(e.getTime()-3600*1e3*24*180),i.$emit("pick",e)}},{text:"一年前",onClick(i){const e=new Date;e.setTime(e.getTime()-3600*1e3*24*365),i.$emit("pick",e)}}]}}}};function D0(i,e,t,n,s,r){const o=l.resolveComponent("el-date-picker");return l.openBlock(),l.createBlock(o,l.mergeProps(i.$props,{modelValue:i.localVal,"onUpdate:modelValue":e[0]||(e[0]=a=>i.localVal=a),type:"date","value-format":t.valueFormat,placeholder:t.placeholder,"picker-options":i.pickerOptions&&s.localPickerOptions}),null,16,["modelValue","value-format","placeholder","picker-options"])}const cr=x(B0,[["render",D0],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/date-base.vue"]]),N0={name:"cvDateRange",mixins:[jo],props:{valueFormat:{type:String,default:"yyyy-MM-dd"},startPlaceholder:{type:[String,Number],default:"开始日期"},rangeSeparator:{type:[String,Number],default:"至"},endPlaceholder:{type:[String,Number],default:"结束日期"}},data(){return{localPickerOptions:{shortcuts:[{text:"今天",onClick(i){const e=new Date,t=new Date;i.$emit("pick",[t,e])}},{text:"昨天",onClick(i){const e=new Date,t=new Date;t.setTime(t.getTime()-3600*1e3*24),e.setTime(e.getTime()-3600*1e3*24),i.$emit("pick",[t,e])}},{text:"最近一周",onClick(i){const e=new Date,t=new Date;t.setTime(t.getTime()-3600*1e3*24*7),i.$emit("pick",[t,e])}},{text:"最近一个月",onClick(i){const e=new Date,t=new Date;t.setTime(t.getTime()-3600*1e3*24*30),i.$emit("pick",[t,e])}},{text:"最近三个月",onClick(i){const e=new Date,t=new Date;t.setTime(t.getTime()-3600*1e3*24*90),i.$emit("pick",[t,e])}},{text:"最近六个月",onClick(i){const e=new Date,t=new Date;t.setTime(t.getTime()-3600*1e3*24*180),i.$emit("pick",[t,e])}},{text:"最近一年",onClick(i){const e=new Date,t=new Date;t.setTime(t.getTime()-3600*1e3*24*365),i.$emit("pick",[t,e])}}]}}}};function R0(i,e,t,n,s,r){const o=l.resolveComponent("el-date-picker");return l.openBlock(),l.createBlock(o,l.mergeProps(i.$props,{modelValue:i.localVal,"onUpdate:modelValue":e[0]||(e[0]=a=>i.localVal=a),type:"daterange","value-format":t.valueFormat,"range-separator":t.rangeSeparator,"start-placeholder":t.startPlaceholder,"end-placeholder":t.endPlaceholder,"picker-options":i.pickerOptions&&s.localPickerOptions}),null,16,["modelValue","value-format","range-separator","start-placeholder","end-placeholder","picker-options"])}const hr=x(N0,[["render",R0],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/date-range.vue"]]),I0={name:"cvDatetimeBase",mixins:[jo],props:{format:{type:String,default:"YYYY-MM-DD HH:mm:ss"},valueFormat:{type:String,default:"YYYY-MM-DD HH:mm:ss"},placeholder:{type:[String,Number],default:"选择日期时间"}},data(){return{localPickerOptions:{disabledDate(i){return i.getTime()>Date.now()},shortcuts:[{text:"今天",onClick(i){i.$emit("pick",new Date)}},{text:"昨天",onClick(i){const e=new Date;e.setTime(e.getTime()-3600*1e3*24),i.$emit("pick",e)}},{text:"一周前",onClick(i){const e=new Date;e.setTime(e.getTime()-3600*1e3*24*7),i.$emit("pick",e)}},{text:"一个月前",onClick(i){const e=new Date;e.setTime(e.getTime()-3600*1e3*24*30),i.$emit("pick",e)}},{text:"三个月前",onClick(i){const e=new Date;e.setTime(e.getTime()-3600*1e3*24*90),i.$emit("pick",e)}},{text:"六个月前",onClick(i){const e=new Date;e.setTime(e.getTime()-3600*1e3*24*180),i.$emit("pick",e)}},{text:"一年前",onClick(i){const e=new Date;e.setTime(e.getTime()-3600*1e3*24*365),i.$emit("pick",e)}}]}}}};function L0(i,e,t,n,s,r){const o=l.resolveComponent("el-date-picker");return l.openBlock(),l.createBlock(o,l.mergeProps(i.$props,{modelValue:i.localVal,"onUpdate:modelValue":e[0]||(e[0]=a=>i.localVal=a),type:"datetime","value-format":t.valueFormat,placeholder:t.placeholder,"picker-options":i.pickerOptions&&s.localPickerOptions}),null,16,["modelValue","value-format","placeholder","picker-options"])}const ur=x(I0,[["render",L0],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/datetime-base.vue"]]),M0={name:"cvDatetimeRange",mixins:[jo],props:{valueFormat:{type:String,default:"YYYY-MM-DD HH:mm:ss"},startPlaceholder:{type:[String,Number],default:"开始日期"},rangeSeparator:{type:[String,Number],default:"至"},endPlaceholder:{type:[String,Number],default:"结束日期"}},data(){return{localPickerOptions:{shortcuts:[{text:"今天",onClick(i){const e=new Date,t=new Date;i.$emit("pick",[t,e])}},{text:"昨天",onClick(i){const e=new Date,t=new Date;t.setTime(t.getTime()-3600*1e3*24),e.setTime(e.getTime()-3600*1e3*24),i.$emit("pick",[t,e])}},{text:"最近一周",onClick(i){const e=new Date,t=new Date;t.setTime(t.getTime()-3600*1e3*24*7),i.$emit("pick",[t,e])}},{text:"最近一个月",onClick(i){const e=new Date,t=new Date;t.setTime(t.getTime()-3600*1e3*24*30),i.$emit("pick",[t,e])}},{text:"最近三个月",onClick(i){const e=new Date,t=new Date;t.setTime(t.getTime()-3600*1e3*24*90),i.$emit("pick",[t,e])}},{text:"最近六个月",onClick(i){const e=new Date,t=new Date;t.setTime(t.getTime()-3600*1e3*24*180),i.$emit("pick",[t,e])}},{text:"最近一年",onClick(i){const e=new Date,t=new Date;t.setTime(t.getTime()-3600*1e3*24*365),i.$emit("pick",[t,e])}}]}}}};function X0(i,e,t,n,s,r){const o=l.resolveComponent("el-date-picker");return l.openBlock(),l.createBlock(o,l.mergeProps(i.$props,{modelValue:i.localVal,"onUpdate:modelValue":e[0]||(e[0]=a=>i.localVal=a),type:"datetimerange","value-format":t.valueFormat,"range-separator":t.rangeSeparator,"start-placeholder":t.startPlaceholder,"end-placeholder":t.endPlaceholder,align:"right","picker-options":i.pickerOptions&&s.localPickerOptions}),null,16,["modelValue","value-format","range-separator","start-placeholder","end-placeholder","picker-options"])}const dr=x(M0,[["render",X0],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/datetime/src/datetime-range.vue"]]);or.install=function(i){i.component(or.name,or)};lr.install=function(i){i.component(lr.name,lr)};ar.install=function(i){i.component(ar.name,ar)};cr.install=function(i){i.component(cr.name,cr)};hr.install=function(i){i.component(hr.name,hr)};ur.install=function(i){i.component(ur.name,ur)};dr.install=function(i){i.component(dr.name,dr)};const j0={name:"cvSwitchBase",props:{...T.ElSwitch.props,activeColor:{type:[String],default:""},inactiveColor:{type:[String],default:""},disabled:{type:Boolean,default:!1}},watch:{modelValue(){this.localVal=this.modelValue},localVal(){this.$emit("update:modelValue",this.localVal)}},data(){return{localVal:this.modelValue}},created(){this.localVal=this.modelValue},methods:{}};function z0(i,e,t,n,s,r){const o=l.resolveComponent("el-switch");return l.openBlock(),l.createBlock(o,l.mergeProps(i.$props,{modelValue:s.localVal,"onUpdate:modelValue":e[0]||(e[0]=a=>s.localVal=a)}),null,16,["modelValue"])}const fr=x(j0,[["render",z0],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/switch/src/base.vue"]]);fr.install=function(i){i.component(fr.name,fr)};const W0={name:"cvCodeSms",mixins:[],components:{},props:{...T.ElInput.props,modelValue:{type:[Number,String],default:""},placeholder:{type:[Number,String],default:"请输入验证码"},disabled:{type:Boolean,default:!1},mobile:{type:[Number,String],default:""},mobileParam:{type:String,default:"mobile"},codeUrl:{type:String,default:""},codeSign:{type:Boolean,default:!1},codeApiFunc:{type:Function,default:null},waitTime:{type:[Number,String],default:60}},watch:{mobile(i){this.localMobile=i},modelValue(i){this.localVal=i}},data(){return{localVal:this.modelValue,localMobile:"",nextTime:0,diyPlaceholder:"短信验证码",btnDisabled:!1,btnText:"获取验证码",btnIntervalObj:null}},created(){this.localMobile=this.mobile},methods:{showDiyMsg(i){this.$message(i)},getSmsCode(){if(!this.localMobile){this.showDiyMsg("手机号不正确"),this.$emit("onGetSms",!1);return}if(!/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(this.localMobile)){this.showDiyMsg("手机号格式不正确"),this.$emit("onGetSms",!1);return}if(!this.codeUrl&&!this.codeApiFunc){this.showDiyMsg("短信接口地址不能为空");return}this.btnDisabled=!0,!this.btnIntervalObj&&this.btnDisabled&&(this.btnText="请稍后...",this.codeApiFunc?this.codeApiFunc({postType:"sendSms",cto_sms_type:"alterMobile",sendCode:"发送验证码",[this.mobileParam]:this.localMobile}).then(e=>{let t=e;t.status==200?(this.showDiyMsg("发送成功!"),setTimeout(()=>{if(this.codeSign){let n=t.data&&t.data.sign||"";this.diyPlaceholder="识别码:"+n}this.smsCodeWaitTime()},500)):(this.showDiyMsg("短信获取失败,请检查网络"),this.btnDisabled=!1,this.btnText="获取验证码")}).catch(e=>{this.btnDisabled=!1,this.btnText="获取验证码"}):(this.btnDisabled=!1,this.btnText="重新获取验证码"))},smsCodeWaitTime(){this.nextTime=Date.parse(new Date)/1e3+parseInt(this.waitTime),this.btnIntervalObj=setInterval(()=>{let i=this.nextTime-Date.parse(new Date)/1e3;i<=0?(clearInterval(this.btnIntervalObj),this.btnText="重新获取验证码",this.btnIntervalObj=0,this.btnDisabled=!1):(this.btnDisabled=!0,this.btnText=i.toString()+"s")},100)},updateInput(i){this.$emit("update:modelValue",this.localVal)}}};function Y0(i,e,t,n,s,r){const o=l.resolveComponent("el-button"),a=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(a,l.mergeProps(i.$props,{modelValue:s.localVal,"onUpdate:modelValue":e[0]||(e[0]=c=>s.localVal=c),clearable:"",placeholder:s.diyPlaceholder,onInput:r.updateInput}),{append:l.withCtx(()=>[l.createVNode(o,{onClick:r.getSmsCode,disabled:s.btnDisabled},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(s.btnText),1)]),_:1},8,["onClick","disabled"])]),_:1},16,["modelValue","placeholder","onInput"])}const pr=x(W0,[["render",Y0],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/code/src/code-sms.vue"]]);pr.install=function(i){i.component(pr.name,pr)};function F0(i,e,t){let n;t.response?n=`${t.response.error||t.response}`:t.responseText?n=`${t.responseText}`:n=`fail to post ${i} ${t.status}`;const s=new Error(n);return s.status=t.status,s.method="post",s.url=i,s}function q0(i){const e=i.responseText||i.response;if(!e)return e;try{return JSON.parse(e)}catch{return e}}function U0(i){if(typeof XMLHttpRequest>"u")return;const e=new XMLHttpRequest,t=i.action;e.upload&&(e.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),i.onProgress(o)});const n=new FormData;i.data&&Object.keys(i.data).forEach(r=>{n.append(r,i.data[r])}),n.append(i.filename,i.file,i.file.name),e.onerror=function(o){i.onError(o)},e.onload=function(){if(e.status<200||e.status>=300)return i.onError(F0(t,i,e));i.onSuccess(q0(e))},e.open("post",t,!0),i.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);const s=i.headers||{};for(const r in s)Object.prototype.hasOwnProperty.call(s,r)&&s[r]!==null&&e.setRequestHeader(r,s[r]);return e.send(n),e}const zo={inheritAttrs:!1,props:{valInit:{type:[String,Array],default:()=>""},drag:{type:Boolean,default:!1},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},httpRequest:Function,accept:String,beforeRemove:Function,upResponseFn:Function},data(){return{}},computed:{upAction(){return this.mergeAttrs.upAction||""},upHeaders(){return this.mergeAttrs.upHeaders||{}},upData(){return this.mergeAttrs.upData||{}},upName(){return this.mergeAttrs.upName||"file"},componentName(){return this.$options.name},mergeAttrs(){let i=this.$cvUiParams||{},e=i.upload||{},t=Object.assign({},e,i[this.componentName]);return Object.assign({},t,this.$attrs)}},methods:{handleImageUpload(i,e){const t=this.mergeAttrs;if(!i){this.$message.error("文件不存在");return}if(t.fileSize&&!(i.size/1024/1024<t.fileSize)){this.$message.error(`上传文件大小 ${t.fileSize} MB!`);return}if(!i.type.includes("image")){this.$message.error("上传类型错误");return}if(!t.upAction){this.$message.error("上传地址错误");return}U0({action:t.upAction,file:i,headers:t.upHeaders,filename:t.upName,data:t.upData,onProgress(){return!1},onSuccess:s=>{t.upResponseFn&&(i.url=URL.createObjectURL(i),s=t.upResponseFn(s,i)),e(s)},onError:s=>{this.$message.error("上传错误")}})},beforeRemove2(){return new Promise((i,e)=>{this.$confirm("提示",{title:"确定删除??",showCancelButton:!0,confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{i(!0)}).catch(()=>{e(!1)})})},uploadRequestFn(i){let e=new FormData;e.append("file",i.file);let t="";i.file.type==="image/png"?t="png":t="jpg",axios({url:"http://api.10.com/v1sdk/ctofile.file_img_opt",methods:"post",data:e,headers:{"Content-Type":"multipart/form-data",...this.headers}}).then(n=>{})}}},G0={name:"cvUploadAvatar",mixins:[zo],components:{},props:{fileSize:{type:[Number],default:1},src:{type:[String],default:""}},data(){return{imageUrl:""}},mounted(){this.imageUrl=this.src||""},methods:{upAvatarBefore(i){var e=new Array;e=i.name.split(".");const t=e[e.length-1]==="jpg",n=e[e.length-1]==="png",s=e[e.length-1]==="gif",r=e[e.length-1]==="jpeg";if(!t&&!n&&!r&&s)return this.$message.error("只能上传jpg/png/gif/jpeg格式图片!"),!1;const o=i.size/1024/1024<this.fileSize;return o||this.$message.error(`上传头像图片大小不能超过 ${this.fileSize}MB!`),t||n||s||r&&o},upAvatarSuccess(i,e){this.imageUrl=URL.createObjectURL(e.raw)}}},H0={class:"cv-upload-avatar"},K0=["src"];function J0(i,e,t,n,s,r){const o=l.resolveComponent("Plus"),a=l.resolveComponent("el-icon"),c=l.resolveComponent("el-upload");return l.openBlock(),l.createElementBlock("div",H0,[l.createVNode(c,l.mergeProps({action:i.upAction,withCredentials:i.withCredentials,showFileList:!1},{"before-upload":r.upAvatarBefore,"on-success":r.upAvatarSuccess}),{default:l.withCtx(()=>[s.imageUrl?(l.openBlock(),l.createElementBlock("img",{key:0,src:s.imageUrl,class:"cv-upload-avatar__img"},null,8,K0)):(l.openBlock(),l.createBlock(a,{key:1,class:"cv-upload-avatar__icon"},{default:l.withCtx(()=>[l.createVNode(o)]),_:1}))]),_:1},16,["before-upload","on-success"])])}const mr=x(G0,[["render",J0],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-avatar.vue"]]),ey={name:"cvUploadImage",mixins:[zo],components:{ShowGallery:Ys},props:{modelValue:{type:[String,Array,Object],default(){return[]}},galleryLabel:{type:String,default:""},fileSize:{type:Number,default:2},fileType:{type:Array,default:()=>["png","jpg","jpeg","gif"]},isShowSuccessTip:{type:Boolean,default:!0},thumbSuffix:{type:String,default:""},showSize:{type:Number,default:150},showTipState:{type:Boolean,default:!0},lazy:{type:Boolean,default:!1},drag:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},upAccept:{type:String,default:"image/*"}},mounted(){this.initShowList()},data(){return{existFileList:[],existShowList:[],imageUrl:"",uploading:!1,dialogVisibleImg:!1,ImgName:"",dialogImageUrl:""}},computed:{showStyle(){return{width:this.showSize+"px",height:this.showSize+"px",lineHeight:this.showSize+"px"}},limit(){return this.multiple==!1?1:5},showTipLastState(){return this.showTipState&&(this.fileType.length||this.fileSize)},computedValues(){return this.modelValue?typeof this.modelValue=="string"?[this.modelValue]:Object.prototype.toString.call(this.modelValue)==="[object Object]"?[]:[...this.modelValue]:[]},isShowUpload(){return this.multiple?!0:this.computedValues.length===0},successFiles(){return this.fileList.filter(i=>i.status==="success")}},watch:{valInit(i){this.initShowList()}},methods:{getFileInfo(i){let e=i.lastIndexOf("/"),t=i.substring(e+1,i.length),n="";return t.lastIndexOf(".")>-1&&(n=t.slice(t.lastIndexOf(".")+1),n="image/"+n),{name:t,url:i,type:n}},initShowList(){if(this.valInit){const i=this.valInit;let e=[];if(typeof i=="string")this.imageUrl=i;else if(Object.prototype.toString.call(i)==="[object Object]")i.name&&i.url&&e.push(i);else if(Object.prototype.toString.call(i)==="[object Array]")for(let t in i){let n=i[t];typeof n=="string"?e.push(this.getFileInfo(n)):Object.prototype.toString.call(n)==="[object Object]"&&n.name&&n.url&&e.push(n)}this.existFileList=e,this.existFileList=e}else return[]},upImageBefore(i){let e=!1;if(this.fileType.length){let t="";i.name.lastIndexOf(".")>-1&&(t=i.name.slice(i.name.lastIndexOf(".")+1)),e=this.fileType.some(n=>!!(i.type.indexOf(n)>-1||t&&t.indexOf(n)>-1))}else e=i.type.indexOf("image")>-1;return e?this.fileSize&&!(i.size/1024/1024<this.fileSize)?(this.$message.error(`上传图片大小不能超过 ${this.fileSize} MB!`),!1):(this.uploading=!0,!0):(this.$message.error(`文件格式不正确, 请上传${this.fileType.join("/")}图片格式文件!`),!1)},upImageChange(i,e){this.uploading=!1,this.existFileList=e},upImageExceed(){this.$message.error(`最多上传${this.limit}张图片`)},upImageError(i){this.uploading=!1,this.$message.error("上传失败, 请重试"),this.$emit("error",i)},upImageSuccess(i,e,t){let n=i;this.uploading=!1,this.isShowSuccessTip&&this.$message.success("上传成功");const s=this.mergeAttrs;let r=null;s&&typeof s.upResponseFn=="function"&&(r=s.upResponseFn(i,e)),this.upResponseFn&&(r=this.upResponseFn(i,e,this.successFiles)),Object.prototype.toString.call(r)==="[object String]"?n=r:Object.prototype.toString.call(r)==="[object Object]"&&(n=r.value||""),this.multiple?Array.isArray(this.modelValue)?this.$emit("update:modelValue",[...this.modelValue,n]):this.$emit("update:modelValue",[n]):this.$emit("update:modelValue",n)},handlePictureCardPreview(i){var n,s,r;let e=i.raw||i,t="";e.type?t=e.type.split("/")[0]:t=(r=(s=(n=i==null?void 0:i.response)==null?void 0:n.body)==null?void 0:s.type)==null?void 0:r.split("/")[0],t=="image"?(this.dialogImageUrl=i.url,this.dialogVisibleImg=!0,this.ImgName=i.name):window.open(i.url)},doRemove(i){if(this.multiple){const e=[...this.computedValues];e.splice(i,1),this.$emit("update:modelValue",e||[])}else this.existFileList=[],this.$emit("update:modelValue","")},handleRemoveDiy(i){if(!this.beforeRemove)this.doRemove(i);else if(typeof this.beforeRemove=="function"){const e=this.multiple?this.computedValues[i]:this.computedValues,t=this.beforeRemove(e,this.computedValues);t&&t.then?t.then(()=>{this.doRemove(i)},()=>{}):t!==!1&&this.doRemove(i)}},handleRemove(i,e){if(this.existFileList.length>0&&this.multiple)for(let t in this.existFileList)this.existFileList[t].uid==i.uid&&this.handleRemoveDiy(t);else this.handleRemoveDiy(i);this.existFileList=e||[]}}},ty={class:"cv-upload-image"},iy=l.createElementVNode("div",{class:"el-upload__text"},[l.createTextVNode(" 将文件拖到此处,或 "),l.createElementVNode("em",null,"点击上传")],-1),ny=["src"],sy={class:"el-upload__tip"},ry={style:{color:"#f56c6c"}},oy={style:{color:"#f56c6c"}},ly={style:{color:"#f56c6c"}},ay=["src"];function cy(i,e,t,n,s,r){const o=l.resolveComponent("Upload"),a=l.resolveComponent("el-icon"),c=l.resolveComponent("Plus"),h=l.resolveComponent("el-upload"),u=l.resolveComponent("el-dialog"),d=l.resolveComponent("ShowGallery"),f=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock("div",ty,[l.withDirectives(l.createVNode(h,l.mergeProps({ref:"upload",style:{marginBottom:t.multiple&&r.computedValues.length?"20px":"0px"}},{action:i.upAction,headers:i.upHeaders,data:i.upData,name:i.upName,accept:t.upAccept,withCredentials:i.withCredentials,limit:r.limit,multiple:t.multiple,drag:!!t.drag,listType:t.drag?"picture":"picture-card",disabled:s.uploading,showFileList:!0},{"file-list":s.existFileList,"before-upload":r.upImageBefore,"on-change":r.upImageChange,"on-exceed":r.upImageExceed,"on-error":r.upImageError,"on-success":r.upImageSuccess,"http-request":i.httpRequest,"on-remove":r.handleRemove,"on-preview":r.handlePictureCardPreview}),{tip:l.withCtx(()=>[l.createElementVNode("div",sy,[l.createTextVNode(" 请上传 "),l.createElementVNode("b",ry,l.toDisplayString(t.fileType.length?t.fileType.join("/"):"图片"),1),l.createTextVNode(" 格式文件 "),t.fileSize?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createTextVNode(" ,且大小不超过 "),l.createElementVNode("b",oy,l.toDisplayString(t.fileSize)+"MB",1)],64)):l.createCommentVNode("",!0),t.multiple?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(" ,多图上传默认 "),l.createElementVNode("b",ly,l.toDisplayString(r.limit)+"张",1)],64)):l.createCommentVNode("",!0)])]),default:l.withCtx(()=>[l.withDirectives((l.openBlock(),l.createElementBlock("div",null,[t.drag?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(a,null,{default:l.withCtx(()=>[l.createVNode(o)]),_:1}),iy],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[s.imageUrl?(l.openBlock(),l.createElementBlock("img",{key:0,src:s.imageUrl,class:"cv-upload-img__perview",style:l.normalizeStyle(r.showStyle)},null,12,ny)):(l.openBlock(),l.createElementBlock("div",{key:1,class:"cv-upload-img__plusicon",style:l.normalizeStyle(r.showStyle)},[l.createVNode(a,{size:t.showSize/3},{default:l.withCtx(()=>[l.createVNode(c)]),_:1},8,["size"])],4))],64))])),[[f,s.uploading]])]),_:1},16,["style","file-list","before-upload","on-change","on-exceed","on-error","on-success","http-request","on-remove","on-preview"]),[[l.vShow,r.isShowUpload]]),l.createVNode(u,{modelValue:s.dialogVisibleImg,"onUpdate:modelValue":e[0]||(e[0]=p=>s.dialogVisibleImg=p),title:s.ImgName,"append-to-body":!0,style:{"text-align":"center"}},{default:l.withCtx(()=>[l.createElementVNode("img",{width:"100%",src:s.dialogImageUrl,alt:"",style:{"max-width":"300px"}},null,8,ay)]),_:1},8,["modelValue","title"]),l.renderSlot(i.$slots,"gallery"),r.isShowUpload?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(d,{key:0,lazy:t.lazy,"remove-fn":r.handleRemove,size:t.showSize,sliceSingle:!0,source:s.existShowList,thumbSuffix:t.thumbSuffix,title:t.galleryLabel},null,8,["lazy","remove-fn","size","source","thumbSuffix","title"]))])}const gr=x(ey,[["render",cy],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-image.vue"]]),hy={mdb:"access",accdb:"access",ai:"ai",html:"html",htm:"html",asp:"web",pdf:"pdf",psd:"photoshop",psb:"photoshop",mpo:"photoshop",eps:"photoshop",avi:"video",wmv:"video",rm:"video",rmvb:"video",mp4:"video","3gp":"video",asf:"video",mov:"video",m4v:"video",flv:"video",f4v:"video",mkv:"video",mts:"video",swf:"flash",ts:"video",mp3:"audio",wav:"audio",wma:"audio",ape:"audio",aac:"audio",zip:"zip",rar:"zip",gz:"zip","7z":"zip",z:"zip",bmp:"image",jpg:"image",jpeg:"image",png:"image",gif:"image",webp:"image",svg:"image",txt:"txt",rtf:"txt",xls:"excel",xlsx:"excel",xlsm:"excel",xltx:"excel",doc:"word",docx:"word",docm:"word",wps:"word",dotx:"word",dotm:"word",ppt:"powerpoint",pptx:"powerpoint",mdf:"db",db:"db",dbf:"db",wdb:"db",vue:"vue",php:"php",jar:"jar",ini:"ini",bat:"bat",config:"config",fla:"fla",eot:"font",otf:"font",fon:"font",font:"font",ttf:"font",ttc:"font",woff:"font",woff2:"font",js:"js",md:"markdown",one:"onenote",jsx:"reactjs",xfl:"xfl",file:"file",css:"css"};function ll(i){return`https://10ui.cn/icon_ext/${hy[i]}.svg`}const uy={name:"uploadList",props:{files:{type:Array,default(){return[]}},isShowDeleteConfim:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},isCanDownload:{type:Boolean,default:!0},isCanDelete:{type:Boolean,default:!0}},methods:{getExtension(i){if(i.lastIndexOf(".")>-1){const e=i.slice(i.lastIndexOf(".")+1).toLowerCase();return ll[e]||ll.file}else return ll.file},getSize(i){return i&&!isNaN(Number(i))?i:""},parsePercentage(i){return parseInt(i,10)},handleDownload(i){i.url},handleDelete(i,e){this.isShowDeleteConfim?this.$confirm("确认删除该文件吗? ").then(()=>{this.$emit("remove",i,e)}).catch(()=>{}):this.$emit("remove",i,e)}}},dy=["src"],fy={class:"cv-upload-list__item-content-action"};function py(i,e,t,n,s,r){const o=l.resolveComponent("el-link");return l.openBlock(),l.createBlock(l.TransitionGroup,{class:"cv-upload-file-list el-upload-list el-upload-list--text",name:"el-list",tag:"ul"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.files,(a,c)=>(l.openBlock(),l.createElementBlock("li",{key:a.uid,class:"el-upload-list__item cv-upload-list__item-content"},[l.createVNode(o,{href:a.url,underline:!1,target:"_blank"},{default:l.withCtx(()=>[l.createElementVNode("img",{src:r.getExtension(a.name),class:"el-upload-list__item-content-name-icon"},null,8,dy),l.createElementVNode("span",null,l.toDisplayString(a.name),1)]),_:2},1032,["href"]),l.createElementVNode("div",fy,[l.createVNode(o,{underline:!1},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(r.getSize(a.size)),1)]),_:2},1024),t.isCanDownload?(l.openBlock(),l.createBlock(o,{key:0,underline:!1,onClick:h=>r.handleDownload(a)},{default:l.withCtx(()=>[l.createTextVNode("下载")]),_:2},1032,["onClick"])):l.createCommentVNode("",!0),!t.disabled&&t.isCanDelete?(l.openBlock(),l.createBlock(o,{key:1,underline:!1,onClick:h=>r.handleDelete(c,a),type:"danger"},{default:l.withCtx(()=>[l.createTextVNode(" 删除 ")]),_:2},1032,["onClick"])):l.createCommentVNode("",!0)])]))),128))]),_:1})}const my=x(uy,[["render",py],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/comp/UploadList.vue"]]),gy={inheritAttrs:!1,name:"cvUploadFile",mixins:[zo],components:{uploadList:my},props:{modelValue:[String,Object,Array],fileSize:{type:Number,default:5},fileType:Array,placeholder:String,disabled:Boolean,isCanDownload:{type:Boolean,default:!0},isCanDelete:{type:Boolean,default:!0},isShowDeleteConfim:{type:Boolean,default:!0},isCanUploadSame:{type:Boolean,default:!0},isShowTip:{type:Boolean,default:!0},isShowSuccessTip:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},limit:Number},data(){return{fileList:[]}},computed:{btnText(){return this.placeholder?this.placeholder:this.multiple?"上传文件":"上传单个文件"},showTip(){return this.isShowTip&&(this.fileType||this.fileSize)},list(){let i=1;return this.modelValue?(Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]).map(t=>(typeof t=="string"&&(t={name:t,url:t}),t.uid=t.uid||new Date().getTime()+i++,t)):[]}},methods:{upFileChange(i,e){this.fileList=e},upFileBefore(i){if(this.fileType){let e="";if(i.name.lastIndexOf(".")>-1&&(e=i.name.slice(i.name.lastIndexOf(".")+1)),!this.fileType.some(n=>!!(i.type.indexOf(n)>-1||e&&e.indexOf(n)>-1)))return this.$message.error(`文件格式不正确, 请上传${this.fileType.join("/")}格式文件!`),!1}return this.fileSize&&!(i.size/1024/1024<this.fileSize)?(this.$message.error(`上传文件大小不能超过 ${this.fileSize} MB!`),!1):!this.isCanUploadSame&&this.list.some(t=>t.name+t.size===i.name+i.size)?(this.$message.error("此文件已上传!"),!1):!0},upFileExceed(){this.$message.error(`最多上传${this.limit}个文件`)},upFileError(i){this.$message.error("上传失败, 请重试"),this.$emit("error",i)},upFileSuccess(i,e){this.isShowSuccessTip&&this.$message.success("上传成功"),this.upResponseFn&&(i=this.upResponseFn(i,e,this.list)),this.multiple?this.$emit("update:modelValue",[...this.list,i]):this.$emit("update:modelValue",i),this.$emit("success",i,this.list)},handleRemove(i){if(!this.beforeRemove)this.doRemove(i);else if(typeof this.beforeRemove=="function"){const e=this.beforeRemove(this.list[i],this.list);e&&e.then?e.then(()=>{this.doRemove(i)},()=>{}):e!==!1&&this.doRemove(i)}},doRemove(i){if(this.$emit("remove",this.list[i],this.list),this.fileList.splice(i,1),this.multiple){const e=[...this.list];e.splice(i,1),this.$emit("update:modelValue",e||[])}else this.$emit("update:modelValue",null)}},created(){this.fileList=this.list}},Oy={class:"cv-upload-file"},yy={key:0,class:"el-upload__tip"},by={style:{color:"#f56c6c"}},ky={style:{color:"#f56c6c"}};function wy(i,e,t,n,s,r){const o=l.resolveComponent("el-button"),a=l.resolveComponent("el-upload"),c=l.resolveComponent("upload-list");return l.openBlock(),l.createElementBlock("div",Oy,[t.disabled?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(a,l.mergeProps({key:0,class:"cv-upload-file-uploader",ref:"upload"},{action:i.upAction,headers:i.upHeaders,data:i.upData,name:i.upName,drag:!1,limit:t.limit,multiple:t.multiple,showFileList:!0,fileList:s.fileList},{"before-upload":r.upFileBefore,"on-change":r.upFileChange,"on-exceed":r.upFileExceed,"on-error":r.upFileError,"on-success":r.upFileSuccess}),{tip:l.withCtx(()=>[r.showTip?(l.openBlock(),l.createElementBlock("div",yy,[l.createTextVNode(" 请上传 "),t.fileSize?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createTextVNode(" 大小不超过 "),l.createElementVNode("b",by,l.toDisplayString(t.fileSize)+"MB",1)],64)):l.createCommentVNode("",!0),t.fileType?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(" 格式为 "),l.createElementVNode("b",ky,l.toDisplayString(t.fileType.join("/")),1)],64)):l.createCommentVNode("",!0),l.createTextVNode(" 的文件 ")])):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createVNode(o,{type:"primary",icon:"el-icon-upload"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(r.btnText),1)]),_:1})]),_:1},16,["before-upload","on-change","on-exceed","on-error","on-success"])),l.createVNode(c,{disabled:t.disabled,files:r.list,isCanDelete:t.isCanDelete,isCanDownload:t.isCanDownload,isShowDeleteConfim:t.isShowDeleteConfim,onRemove:r.handleRemove},null,8,["disabled","files","isCanDelete","isCanDownload","isShowDeleteConfim","onRemove"])])}const Or=x(gy,[["render",wy],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-file.vue"]]),vy={name:"cvUploadVideo",mixins:[zo],components:{},props:{modelValue:{type:String},fileSize:{type:Number,default:10},fileType:{type:Array},width:{type:Number,default:360},height:{type:Number},isShowTip:{type:Boolean,default:!0},isShowSuccessTip:{type:Boolean,default:!0},upAccept:{type:String,default:"image/*"}},data(){return{isShowVideo:!1,videoUploadPercent:0}},computed:{showTip(){return this.isShowTip&&(this.fileType||this.fileSize)}},methods:{upVideoBefore(i){let e=!1;if(Array.isArray(this.fileType)){const t=i.type.split("/");e=t[0]==="video"&&this.fileType.includes(t[1])}else e=i.type.includes("video");return e?this.fileSize&&!(i.size/1024/1024<this.fileSize)?(this.$message.error(`上传视频大小不能超过${this.fileSize}MB哦!`),!1):!0:(this.$message.error(`${i.name}格式不正确, 请上传格式正确的视频`),!1)},upVideoProcess(i,e){this.videoUploadPercent=Number(e.percentage.toFixed(0))},upVideoSuccess(i,e){this.videoUploadPercent=0,this.isShowSuccessTip&&this.$message.success("上传成功!"),this.upResponseFn?this.$emit("update:modelValue",this.upResponseFn(i,e)):this.$emit("update:modelValue",i)},upVideoError(i,e,t){this.$message.error("上传失败, 请重试!"),this.videoUploadPercent=0,this.$emit("error",i,e,t)},doRemove(){this.$emit("delete"),this.$emit("update:modelValue",null)},handleRemove(){if(!this.beforeRemove)this.doRemove();else if(typeof this.beforeRemove=="function"){const i=this.beforeRemove(this.modelValue);i&&i.then?i.then(()=>{this.doRemove()},()=>{}):i!==!1&&this.doRemove()}},handlePlayerVideo(){this.isShowVideo=!0},handleHoverClick(){this.$emit("click")}}},Sy={class:"cv-upload-video"},Cy=l.createElementVNode("div",{class:"el-upload__text"},[l.createTextVNode(" 将视频拖到此处,或 "),l.createElementVNode("em",null,"点击上传")],-1),xy={key:0,class:"el-upload__tip"},$y={style:{color:"#f56c6c"}},_y={style:{color:"#f56c6c"}},Py={key:1,class:"vue-hover-mask"},Qy=["src"],Vy=["src"];function Ty(i,e,t,n,s,r){const o=l.resolveComponent("el-progress"),a=l.resolveComponent("Upload"),c=l.resolveComponent("el-icon"),h=l.resolveComponent("el-upload"),u=l.resolveComponent("ZoomIn"),d=l.resolveComponent("Delete"),f=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",Sy,[t.modelValue?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(h,l.mergeProps({key:0},{action:i.upAction,headers:i.upHeaders,data:i.upData,name:i.upName,accept:t.upAccept,drag:!0,disabled:s.videoUploadPercent>0&&s.videoUploadPercent<100,showFileList:!1,withCredentials:i.withCredentials},{"before-upload":r.upVideoBefore,"on-error":r.upVideoError,"on-progress":r.upVideoProcess,"on-success":r.upVideoSuccess,httpRequest:i.httpRequest}),{default:l.withCtx(()=>[s.videoUploadPercent>0?(l.openBlock(),l.createBlock(o,{key:0,percentage:s.videoUploadPercent,style:{"margin-top":"20px"},type:"circle"},null,8,["percentage"])):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createVNode(c,null,{default:l.withCtx(()=>[l.createVNode(a)]),_:1}),Cy,r.showTip?(l.openBlock(),l.createElementBlock("div",xy,[l.createTextVNode(" 请上传 "),l.createElementVNode("span",$y," "+l.toDisplayString(this.fileType?this.fileType.join("/"):"视频")+" ",1),l.createTextVNode(" 格式文件 "),t.fileSize?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createTextVNode(" ,且文件大小不超过 "),l.createElementVNode("span",_y,l.toDisplayString(t.fileSize),1),l.createTextVNode("  MB ")],64)):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)],64))]),_:1},16,["before-upload","on-error","on-progress","on-success","httpRequest"])),t.modelValue?(l.openBlock(),l.createElementBlock("div",Py,[l.createElementVNode("video",{autoplay:!1,src:t.modelValue,style:l.normalizeStyle({width:t.width+"px",height:t.height?t.height+"px":"auto"})}," 您的浏览器不支持视频播放 ",12,Qy),l.createElementVNode("span",{onClick:e[2]||(e[2]=(...p)=>r.handleHoverClick&&r.handleHoverClick(...p)),class:"vue-hover-mask_actions"},[l.createElementVNode("span",{onClick:e[0]||(e[0]=(...p)=>r.handlePlayerVideo&&r.handlePlayerVideo(...p)),class:"cv-upload-video_mask__item"},[l.createVNode(c,null,{default:l.withCtx(()=>[l.createVNode(u)]),_:1})]),l.createElementVNode("span",{onClick:e[1]||(e[1]=(...p)=>r.handleRemove&&r.handleRemove(...p)),class:"cv-upload-video_mask__item"},[l.createVNode(c,null,{default:l.withCtx(()=>[l.createVNode(d)]),_:1})])])])):l.createCommentVNode("",!0),l.createVNode(f,{visible:s.isShowVideo,"append-to-body":""},{default:l.withCtx(()=>[s.isShowVideo?(l.openBlock(),l.createElementBlock("video",{key:0,autoplay:!0,src:t.modelValue,controls:"controls",style:{width:"100%"}}," 您的浏览器不支持视频播放 ",8,Vy)):l.createCommentVNode("",!0)]),_:1},8,["visible"])])}const yr=x(vy,[["render",Ty],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/upload/src/upload-video.vue"]]);mr.install=function(i){i.component(mr.name,mr)};gr.install=function(i){i.component(gr.name,gr)};Or.install=function(i){i.component(Or.name,Or)};yr.install=function(i){i.component(yr.name,yr)};const Ey={name:"cvTabsJump",props:{tabPosition:{type:String,default:"top"}},provide(){return{addChildComponents:i=>{this.childComponents.push(i)},clearChildClass:()=>{this.childComponents.map(i=>{i.className=null})}}},data(){return{childComponents:[]}},computed:{tabPositionClass(){return this.tabPosition=="left"?"left":this.tabPosition=="right"?"right":this.tabPosition=="bottom"?"bottom":"top"}},created(){},mounted(){}},Zy={class:"tabs-header"};function Ay(i,e,t,n,s,r){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["cv-tabs-jump",r.tabPositionClass])},[l.createElementVNode("div",Zy,[l.renderSlot(i.$slots,"default")])],2)}const br=x(Ey,[["render",Ay],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/tabs/src/tabs.vue"]]),By={name:"cvTabPane",emits:["click"],inject:["addChildComponents","clearChildClass"],data(){return{isshow:!0,className:null}},props:{label:{type:String,default:""},current:{type:Boolean,default:!1},name:{type:String}},mounted(){this.addChildComponents(this),this.initCurrent()},methods:{initCurrent(){this.current&&this.handleClick()},handleClick(){this.clearChildClass(),this.className="active",this.$emit("click")}}},Dy={key:1};function Ny(i,e,t,n,s,r){return l.withDirectives((l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["cv-tab-pane",s.className]),onClick:e[0]||(e[0]=(...o)=>r.handleClick&&r.handleClick(...o))},[i.$slots.label?l.renderSlot(i.$slots,"label",{key:0}):(l.openBlock(),l.createElementBlock("span",Dy,l.toDisplayString(t.label),1))],2)),[[l.vShow,s.isshow]])}const kr=x(By,[["render",Ny],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/tabs/src/tab-pane.vue"]]);br.install=function(i){i.component(br.name,br)};kr.install=function(i){i.component(kr.name,kr)};const Ry={name:"cvDrawCaptcha",props:{modelValue:{type:[String,Number],default:"1234"},baseCode:{type:String,default:"1234567890ABCDEFGHGKMNPQRSTUVWXY"},fontSizeMin:{type:Number,default:25},fontSizeMax:{type:Number,default:30},backgroundColorMin:{type:Number,default:255},backgroundColorMax:{type:Number,default:255},colorMin:{type:Number,default:0},colorMax:{type:Number,default:160},lineColorMin:{type:Number,default:100},lineColorMax:{type:Number,default:255},dotColorMin:{type:Number,default:0},dotColorMax:{type:Number,default:255},contentWidth:{type:Number,default:112},contentHeight:{type:Number,default:31},refreshNum:{type:Number,default:1}},data(){return{localCode:""}},watch:{modelValue(i){this.localCode=i,this.drawPic()},refreshNum(){this.refreshCode(),this.drawPic()}},mounted(){this.modelValue==""&&(this.refreshCode(),this.drawPic())},created(){this.localCode=this.modelValue},methods:{refreshCode(){this.localCode="",this.makeCode(this.baseCode,4),this.$emit("update:modelValue",this.localCode)},makeCode(i,e){for(let t=0;t<e;t++)this.localCode+=this.baseCode[this.randomNum(0,this.baseCode.length)]},randomNum(i,e){return Math.floor(Math.random()*(e-i)+i)},randomColor(i,e){let t=this.randomNum(i,e),n=this.randomNum(i,e),s=this.randomNum(i,e);return"rgb("+t+","+n+","+s+")"},drawPic(){let e=document.getElementById("cv-draw-captcha").getContext("2d");e.textBaseline="bottom",e.fillStyle=this.randomColor(this.backgroundColorMin,this.backgroundColorMax),e.fillRect(0,0,this.contentWidth,this.contentHeight);for(let t=0;t<this.localCode.length;t++)this.drawText(e,this.localCode[t],t);this.drawLine(e),this.drawDot(e)},drawText(i,e,t){i.fillStyle=this.randomColor(this.colorMin,this.colorMax),i.font=this.randomNum(this.fontSizeMin,this.fontSizeMax)+"px SimHei";let n=(t+1)*(this.contentWidth/(this.localCode.length+1)),s=this.randomNum(this.fontSizeMax,this.contentHeight-5);var r=this.randomNum(-45,45);i.translate(n,s),i.rotate(r*Math.PI/180),i.fillText(e,0,0),i.rotate(-r*Math.PI/180),i.translate(-n,-s)},drawLine(i){for(let e=0;e<5;e++)i.strokeStyle=this.randomColor(this.lineColorMin,this.lineColorMax),i.beginPath(),i.moveTo(this.randomNum(0,this.contentWidth),this.randomNum(0,this.contentHeight)),i.lineTo(this.randomNum(0,this.contentWidth),this.randomNum(0,this.contentHeight)),i.stroke()},drawDot(i){for(let e=0;e<80;e++)i.fillStyle=this.randomColor(0,255),i.beginPath(),i.arc(this.randomNum(0,this.contentWidth),this.randomNum(0,this.contentHeight),1,0,2*Math.PI),i.fill()}}},Iy={class:"cv-draw-captcha"},Ly=["width","height"];function My(i,e,t,n,s,r){return l.openBlock(),l.createElementBlock("div",Iy,[l.createElementVNode("canvas",{id:"cv-draw-captcha",width:t.contentWidth,height:t.contentHeight,onClick:e[0]||(e[0]=(...o)=>r.refreshCode&&r.refreshCode(...o))},null,8,Ly)])}const wr=x(Ry,[["render",My],["__scopeId","data-v-14994255"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/draw/src/captcha.vue"]]),Xy={name:"cvDrawQrcode",data(){return{}}};function jy(i,e,t,n,s,r){return l.openBlock(),l.createElementBlock("div",null,"二维码")}const vr=x(Xy,[["render",jy],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/draw/src/qrcode.vue"]]);wr.install=function(i){i.component(wr.name,wr)};vr.install=function(i){i.component(vr.name,vr)};const zy={name:"cvTagBase",mixins:[],components:{},props:{...T.ElTag.props,modelValue:{type:Array,default:null},closable:{type:Boolean,default:!1},disableTransitions:{type:Boolean,default:!1},effect:{type:String,default:"light"},color:{type:String,default:""},hit:{type:Boolean,default:!1}},watch:{modelValue(){this.localVal=this.modelValue},localVal(){this.$emit("update:modelValue",this.localVal)}},data(){return{localVal:this.modelValue}},created(){},methods:{addTag(){this.localVal.push("新标签"),this.$nextTick(()=>{let i=this.localVal.length,e=this.$refs[`newTag${i-1}`][0],t=document.createRange();t.selectNodeContents(e),window.getSelection().removeAllRanges(),window.getSelection().addRange(t)})},checkTag(i){let e=this.$refs[`newTag${i}`][0].innerText.trim();e.length==0?this.localVal.pop():this.localVal[i]=e},removeTag(i){this.localVal.splice(i,1)}}},Wy={class:"cv-tag-base"},Yy=["onBlur"];function Fy(i,e,t,n,s,r){const o=l.resolveComponent("el-tag"),a=l.resolveComponent("CirclePlus"),c=l.resolveComponent("el-icon");return l.openBlock(),l.createElementBlock("div",Wy,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.localVal,(h,u)=>(l.openBlock(),l.createBlock(o,l.mergeProps({class:"cv-tag-content"},{closable:t.closable,disableTransitions:t.disableTransitions,effect:t.effect,type:i.type,color:t.color,hit:t.hit,size:i.size},{onClose:d=>r.removeTag(u),key:u}),{default:l.withCtx(()=>[l.createElementVNode("div",{contenteditable:"plaintext-only",ref_for:!0,ref:`newTag${u}`,onBlur:d=>r.checkTag(u)},l.toDisplayString(h),41,Yy)]),_:2},1040,["onClose"]))),128)),l.createVNode(c,{onClick:e[0]||(e[0]=h=>r.addTag())},{default:l.withCtx(()=>[l.createVNode(a)]),_:1})])}const Sr=x(zy,[["render",Fy],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/tag/src/base.vue"]]);Sr.install=function(i){i.component(Sr.name,Sr)};const qy={name:"cvTransferTable",props:{modelValue:{type:[Array],default(){return[]}},showQuery:{type:Boolean,default:!1},showPagination:{type:Boolean,default:!1},paginationCallBack:{type:Function,default:function(){return new Promise((i,e)=>{try{i({total:0,data:null})}catch{e()}})}},titleTexts:{type:Array,default(){return["待选项","已选项"]}},buttonTexts:{type:Array,default(){return[]}},queryTexts:{type:Array,default(){return["查询","筛选"]}},leftColumns:{type:Array,default(){return[]}},rightColumns:{type:Array,default(){}},minHeight:{type:String,default:"300px"},maxHeight:{type:String,default:"500px"},tableRowKey:{type:Function,default(i){return i&&i&&i.id}}},data(){return{leftTableData:[],rightTableData:[],pageIndex:1,pageSize:20,totalSize:0,leftSelection:[],rightSelection:[],leftQueryCondition:{},rightQueryCondition:{},rightConditionTemp:void 0}},watch:{modelValue(i){this.rightTableData=i}},created(){this.rightTableData=this.modelValue,this.handlePaginationCallBack()},computed:{hasButtonTexts(){return this.buttonTexts.length===2},buttonClasses(){return["transfer-button",{"is-with-texts":this.hasButtonTexts}]},disabledLeftButton(){return!this.leftSelection.some(i=>!this.rightTableData.some(e=>this.checkObjectIsEqual(i,e)))},calcRightTableData(){if(this.showQuery&&this.rightConditionTemp){const i=Object.keys(this.rightConditionTemp);return this.rightTableData.filter(e=>i.some(t=>{const n=e[t],s=this.rightConditionTemp[t].trim();return n?String(n).indexOf(s)>-1:!0}))}return this.rightTableData}},methods:{handleLeftSelectionChange(i){this.leftSelection=i},handleRightSelectionChange(i){this.rightSelection=i},handleLeftRowClick(i){this.rightTableData.some(e=>this.checkObjectIsEqual(e,i))||this.$refs.leftTable.toggleRowSelection(i)},handleRightRowClick(i){this.$refs.rightTable.toggleRowSelection(i)},handleSizeChange(i){this.pageSize=i,this.handlePaginationCallBack()},handleCurrentChange(i){this.pageIndex=i,this.handlePaginationCallBack()},handlePaginationCallBack(){if(this.showPagination&&this.paginationCallBack){const i={pageIndex:this.pageIndex,pageSize:this.pageSize,...this.leftQueryCondition};this.paginationCallBack.call(null,i).then(e=>{e&&Array.isArray(e.data)&&(this.leftTableData=e.data,this.totalSize=e.total),this.$nextTick(()=>{this.leftTableData.forEach(t=>{const n=this.rightTableData.some(s=>this.checkObjectIsEqual(s,t));this.$refs.leftTable.toggleRowSelection(t,n)})})})}},handleRowStyle({row:i}){return this.rightTableData.some(e=>this.checkObjectIsEqual(e,i))?{color:"blue"}:{}},handleSelectable(i){return!this.rightTableData.some(e=>this.checkObjectIsEqual(e,i))},addToRight(){for(const i of this.leftSelection)this.rightTableData.some(t=>this.checkObjectIsEqual(t,i))||this.rightTableData.push(i);this.$emit("update:modelValue",this.rightTableData)},addToLeft(){this.rightSelection.forEach(i=>{const e=this.rightTableData.findIndex(t=>this.checkObjectIsEqual(t,i));if(e!==-1){this.rightTableData.splice(e,1);const t=this.leftTableData.find(n=>this.checkObjectIsEqual(n,i));t&&this.$refs.leftTable.toggleRowSelection(t,!1)}}),this.$emit("update:modelValue",this.rightTableData)},onLeftQuerySubmit(){this.handlePaginationCallBack()},onRightQuerySubmit(){this.rightConditionTemp=JSON.parse(JSON.stringify(this.rightQueryCondition))},checkObjectIsEqual(i,e){return this.tableRowKey(i)===this.tableRowKey(e)},clear(){this.rightTableData=[],this.$refs.leftTable.clearSelection();for(const i in this.leftQueryCondition)this.leftQueryCondition[i]=void 0;for(const i in this.rightQueryCondition)this.rightQueryCondition[i]=void 0;this.pageIndex=1,this.handlePaginationCallBack()}}},Uy={class:"cv-transfer-table"},Gy={class:"transfer-panel"},Hy={class:"transfer-panel-header"},Ky={key:0},Jy={style:{padding:"5px"}},eb={class:"transfer-buttons"},tb={key:0,class:"button-text"},ib={key:0,class:"button-text"},nb={class:"transfer-panel"},sb={class:"transfer-panel-header"},rb={key:0},ob={style:{padding:"5px"}};function lb(i,e,t,n,s,r){const o=l.resolveComponent("el-button"),a=l.resolveComponent("el-form-item"),c=l.resolveComponent("el-form"),h=l.resolveComponent("el-table-column"),u=l.resolveComponent("el-table"),d=l.resolveComponent("el-pagination"),f=l.resolveComponent("ArrowRight"),p=l.resolveComponent("el-icon"),m=l.resolveComponent("ArrowLeft");return l.openBlock(),l.createElementBlock("div",Uy,[l.createElementVNode("div",Gy,[l.createElementVNode("p",Hy,[l.createElementVNode("span",null,l.toDisplayString(t.titleTexts&&t.titleTexts[0]),1),l.createElementVNode("span",null,l.toDisplayString(s.leftSelection.length)+"/"+l.toDisplayString(s.leftTableData.length),1)]),t.showQuery?(l.openBlock(),l.createElementBlock("div",Ky,[l.createVNode(c,{inline:!0,model:s.leftQueryCondition,class:"cv-transfer-form"},{default:l.withCtx(()=>[l.renderSlot(i.$slots,"leftCondition",{scope:s.leftQueryCondition},void 0,!0),l.createVNode(a,null,{default:l.withCtx(()=>[l.createVNode(o,{type:"primary",onClick:e[0]||(e[0]=g=>r.onLeftQuerySubmit())},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.queryTexts[0]),1)]),_:1})]),_:1})]),_:3},8,["model"])])):l.createCommentVNode("",!0),l.createVNode(u,{ref:"leftTable","max-height":t.maxHeight,height:t.minHeight,data:s.leftTableData,"row-key":t.tableRowKey,"row-style":r.handleRowStyle,onRowClick:r.handleLeftRowClick,onSelectionChange:r.handleLeftSelectionChange,border:"",stripe:""},{default:l.withCtx(()=>[l.createVNode(h,{width:"40px",type:"selection",selectable:r.handleSelectable},null,8,["selectable"]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.leftColumns,g=>(l.openBlock(),l.createBlock(h,{prop:g.id,key:g.id,label:g.label,width:g.width},{default:l.withCtx(y=>[l.renderSlot(i.$slots,"default",{scope:{row:y.row,col:g}},()=>[l.createElementVNode("span",null,l.toDisplayString(y.row[g.id]),1)],!0)]),_:2},1032,["prop","label","width"]))),128))]),_:3},8,["max-height","height","data","row-key","row-style","onRowClick","onSelectionChange"]),l.createElementVNode("div",Jy,[t.showPagination?(l.openBlock(),l.createBlock(d,{key:0,onSizeChange:r.handleSizeChange,onCurrentChange:r.handleCurrentChange,"current-page":s.pageIndex,"page-sizes":[10,20,50,100],"page-size":s.pageSize,"pager-count":5,total:s.totalSize,layout:"total, sizes, prev, pager, next"},null,8,["onSizeChange","onCurrentChange","current-page","page-size","total"])):l.createCommentVNode("",!0)])]),l.createElementVNode("div",eb,[l.createVNode(o,{type:"primary",class:l.normalizeClass(r.buttonClasses),disabled:r.disabledLeftButton,onClick:r.addToRight},{default:l.withCtx(()=>[t.buttonTexts[0]!==void 0?(l.openBlock(),l.createElementBlock("span",tb,l.toDisplayString(t.buttonTexts[0]),1)):l.createCommentVNode("",!0),l.createVNode(p,null,{default:l.withCtx(()=>[l.createVNode(f)]),_:1})]),_:1},8,["class","disabled","onClick"]),l.createVNode(o,{type:"primary",class:l.normalizeClass(r.buttonClasses),disabled:s.rightSelection.length===0,onClick:r.addToLeft},{default:l.withCtx(()=>[l.createVNode(p,null,{default:l.withCtx(()=>[l.createVNode(m)]),_:1}),t.buttonTexts[1]!==void 0?(l.openBlock(),l.createElementBlock("span",ib,l.toDisplayString(t.buttonTexts[1]),1)):l.createCommentVNode("",!0)]),_:1},8,["class","disabled","onClick"])]),l.createElementVNode("div",nb,[l.createElementVNode("p",sb,[l.createElementVNode("span",null,l.toDisplayString(t.titleTexts&&t.titleTexts[1]),1),l.createElementVNode("span",null,l.toDisplayString(s.rightSelection.length)+"/"+l.toDisplayString(s.rightTableData.length),1)]),t.showQuery?(l.openBlock(),l.createElementBlock("div",rb,[l.createVNode(c,{inline:!0,model:s.rightQueryCondition,class:"cv-transfer-form"},{default:l.withCtx(()=>[l.renderSlot(i.$slots,"rightCondition",{scope:s.rightQueryCondition},void 0,!0),l.createVNode(a,null,{default:l.withCtx(()=>[l.createVNode(o,{type:"primary",onClick:e[1]||(e[1]=g=>r.onRightQuerySubmit())},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.queryTexts[1]),1)]),_:1})]),_:1})]),_:3},8,["model"])])):l.createCommentVNode("",!0),l.createVNode(u,{ref:"rightTable","max-height":t.maxHeight,height:t.minHeight,data:r.calcRightTableData,"row-key":t.tableRowKey,onRowClick:r.handleRightRowClick,onSelectionChange:r.handleRightSelectionChange,border:"",stripe:""},{default:l.withCtx(()=>[l.createVNode(h,{width:"40px",type:"selection"}),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.rightColumns||t.leftColumns,g=>(l.openBlock(),l.createBlock(h,{prop:g.id,key:g.id,label:g.label,width:g.width},{default:l.withCtx(y=>[l.renderSlot(i.$slots,"default",{scope:{row:y.row,col:g}},()=>[l.createElementVNode("span",null,l.toDisplayString(y.row[g.id]),1)],!0)]),_:2},1032,["prop","label","width"]))),128))]),_:3},8,["max-height","height","data","row-key","onRowClick","onSelectionChange"]),l.createElementVNode("div",ob,[t.showPagination?(l.openBlock(),l.createBlock(d,{key:0,total:s.rightTableData.length,layout:"total"},null,8,["total"])):l.createCommentVNode("",!0)])])])}const Cr=x(qy,[["render",lb],["__scopeId","data-v-d01ca678"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/transfer/src/table.vue"]]);Cr.install=function(i){i.component(Cr.name,Cr)};const ic={provide(){return{pageCurr:this.loadConfigSetting.pageCurr||1,pageLimit:this.loadConfigSetting.pageLimit||10}},props:{...T.ElTable.props,modelValue:{type:[Array,Object],default(){return[]}},headerCellStyle:{type:[Function,Object],default:()=>({})}},data(){return{loadDataList:[]}},watch:{modelValue(i){this.loadDataList=i},loadDataList(i){this.$emit("update:modelValue",i)}},created(){this.loadDataList=this.modelValue},methods:{_getPageCurr(){return this.loadPageCurr},_getPageSize(){return this.loadPageLimit},handleCurrentChange(i){this.loadPageCurr=i,this.getData()},handleSizeChange(i){this.loadPageLimit=i,this.getData()}}},ab={name:"cvTableBase",mixins:[Xo,ic],props:{align:{type:String,default:"left"},showPagebreak:{type:[Boolean,String],default:!0},tablePagin:{type:Object,default(){return{}}},tableConfig:{type:Object,default(){return{}}},tableRefresh:{type:Number,default(){return 0}}},data(){return{paginationGroup:[10,20,30,50,100,200],paginationCount:7,searchData:{},tableConfDef:{}}},watch:{tableRefresh(i,e){this.initConfAll(),this.refresh()}},updated(){},created(){this.initConfAll(),this.getData()},mounted(){},methods:{getData(){this.loadDataList=[],this.loadGetData()},handleSelectionChange(i){this.$emit("selection-change",i)},initConfAll(){let i={};Object.assign(i,this.loadConfigDef,this.tableConfDef,this.tableConfig),this.loadPageCurr=i.pageCurr||1,this.loadPageLimit=i.pageLimit||this.paginationGroup[0],Object.assign(i.where,this.searchData),this.loadConfigSetting=i},searchSubmit(i){if(this.searchData=i||{},this.loadConfigSetting.isSkip){({...this.searchData});return}this.page=1,this.getData()},searchReset(i){this.searchData={},this.page=1,this.getData()},refresh(i){this.getData()}}},cb={class:"cv-table-list"},hb={key:0,class:"cv-tablie-list-page page"};function ub(i,e,t,n,s,r){const o=l.resolveComponent("el-table"),a=l.resolveComponent("cv-icons"),c=l.resolveComponent("el-button"),h=l.resolveComponent("el-pagination"),u=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock("div",cb,[l.withDirectives((l.openBlock(),l.createBlock(o,l.mergeProps(i.$props,{data:i.loadDataList,style:{width:"100%"},onSelectionChange:r.handleSelectionChange}),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},16,["data","onSelectionChange"])),[[u,i.loadDataLoading]]),t.showPagebreak?l.withDirectives((l.openBlock(),l.createElementBlock("div",hb,[l.createVNode(c,{onClick:r.refresh,style:{float:"left",margin:"0 10px 0 0",padding:"5px 10px"}},{default:l.withCtx(()=>[l.createVNode(a,{type:"refresh",size:"14"})]),_:1},8,["onClick"]),l.createVNode(h,{background:"",onSizeChange:i.handleSizeChange,onCurrentChange:i.handleCurrentChange,"pager-count":s.paginationCount,"page-sizes":s.paginationGroup,"current-page":i.loadPageCurr,"page-size":i.loadPageLimit,layout:"total, sizes, prev, pager, next, jumper",total:i.loadDataTotal},null,8,["onSizeChange","onCurrentChange","pager-count","page-sizes","current-page","page-size","total"])],512)),[[l.vShow,i.loadDataLoading===!1]]):l.createCommentVNode("",!0)])}const xr=x(ab,[["render",ub],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/table-base.vue"]]),db={name:"cvTableTree",mixins:[Xo,ic],props:{tableConfig:{type:Object,default(){return{}}},tableRefresh:{type:Number,default(){return 0}}},data(){return{searchData:{},tableConfDef:{tablePrimary:"",childName:"children"},pager_count:7,page:1}},watch:{tableRefresh(i,e){this.refresh()}},created(){this.initConfAll(),this.getData()},mounted(){},methods:{getData(){this.loadDataList=[],this.loadGetData()},handleSelectionChange(i){this.$emit("selection-change",i)},initConfAll(){let i={};Object.assign(i,this.loadConfigDef,this.tableConfDef,this.tableConfig),Object.assign(i.where,this.searchData),this.loadConfigSetting=i},searchSubmit(i){if(this.searchData=i||{},this.loadConfigSetting.isSkip){({...this.searchData});return}this.page=1,this.getData()},searchReset(i){this.searchData={},this.page=1,this.getData()},refresh(i){this.getData()}}},fb={class:"cv-table-tree"};function pb(i,e,t,n,s,r){const o=l.resolveComponent("el-table"),a=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock("div",fb,[l.withDirectives((l.openBlock(),l.createBlock(o,l.mergeProps(i.$props,{data:i.loadDataList,style:{width:"100%"},onSelectionChange:r.handleSelectionChange,"row-key":i.loadConfigSetting.tablePrimary,"tree-props":{children:i.loadConfigSetting.childName,hasChildren:"hasChildren"}}),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},16,["data","onSelectionChange","row-key","tree-props"])),[[a,i.loadDataLoading]])])}const $r=x(db,[["render",pb],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/table-tree.vue"]]),mb={name:"cvTableEditor",mixins:[Xo,ic],props:{border:{type:[Boolean],default:!0},tableConfig:{type:[Array,Object],default(){return{}}}},data(){return{mergeRules:{},apiFunc:null,tableConfDef:{},cell_click_index:null,cell_click_label:""}},watch:{},created(){this.loadConfigSetting=Object.assign({},this.tableConfDef,this.tableConfig)},mounted(){},methods:{cell_click(i,e,t,n){switch(this.cell_click_index=i.index,this.cell_click_label=e.label,e.label){case"taskid":this.cell_click_index=i.index,this.cell_click_label=e.label;break;case"taskname":this.cell_click_index=i.index,this.cell_click_label=e.label;break;default:return}},handleChangeTData(i){}}},gb={class:"cv-table-editor"};function Ob(i,e,t,n,s,r){const o=l.resolveComponent("el-table"),a=l.resolveDirective("loading");return l.openBlock(),l.createElementBlock("div",gb,[l.withDirectives((l.openBlock(),l.createBlock(o,l.mergeProps(i.$props,{data:i.loadDataList,style:{width:"100%"},"row-class-name":"cv-tbed-tr"}),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default")]),_:3},16,["data"])),[[a,i.loadDataLoading]])])}const _r=x(mb,[["render",Ob],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/table-editor.vue"]]),yb={name:"cvTbColumnIndex",inject:{pageCurr:{default:1},pageLimit:{default:10}},props:{...T.ElTableColumn.props,fixed:{type:[String],default:"left"},align:{type:String,default:"center"},width:{type:[String,Number],default:55},continuity:{type:[Boolean,String],default:!1}},data(){return{}},created(){},methods:{indexMethod(i){return this.continuity&&this.pageCurr&&this.pageLimit?i+1+(this.pageCurr-1)*this.pageLimit:i+1}}};function bb(i,e,t,n,s,r){const o=l.resolveComponent("el-table-column");return l.openBlock(),l.createBlock(o,l.mergeProps(i.$props,{type:"index",index:r.indexMethod}),null,16,["index"])}const Pr=x(yb,[["render",bb],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-index.vue"]]),kb={name:"cvTbColumnCheck",props:{...T.ElTableColumn.props,fixed:{type:[String],default:"left"},align:{type:[String],default:"center"},width:{type:[String,Number],default:55}},data(){return{}},created(){}};function wb(i,e,t,n,s,r){const o=l.resolveComponent("el-table-column");return l.openBlock(),l.createBlock(o,l.mergeProps(i.$props,{type:"selection"}),null,16)}const Qr=x(kb,[["render",wb],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-check.vue"]]),vb={name:"cvTbColumnText",props:{...T.ElTableColumn.props},data(){return{}},created(){},methods:{getContentText(i){let e=i.row[this.prop];return this.formatter&&(e=this.formatter(i.row,i.column)),e}}},Sb={style:{display:"contents"}};function Cb(i,e,t,n,s,r){const o=l.resolveComponent("el-table-column");return l.openBlock(),l.createBlock(o,l.normalizeProps(l.guardReactiveProps(i.$props)),{default:l.withCtx(a=>[l.createElementVNode("div",Sb,l.toDisplayString(a.row[i.prop]),1)]),_:1},16)}const Vr=x(vb,[["render",Cb],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-text.vue"]]),xb={name:"cvTbColumnImg",props:{...T.ElTableColumn.props,imgWidth:{type:[String,Number],default:null},imgHeight:{type:[String,Number],default:null}},data(){return{localImgWidth:"50px",localImgHeight:"50px",localImgArr:[],localImgOne:""}},created(){this.imgWidth&&(this.localImgWidth=this.imgWidth.indexOf("px")!==-1?this.imgWidth:this.imgWidth+"px"),this.imgHeight&&(this.localImgHeight=this.imgHeight.indexOf("px")!==-1?this.imgHeight:this.imgHeight+"px")},methods:{handleImgOne(i){let e=i[this.prop]||null;if(e){if(Object.prototype.toString.call(e)==="[object Array]")return e[0];if(Object.prototype.toString.call(e)==="[object String]")return e}},handleImgArr(i){let e=i[this.prop]||null;if(e){if(Object.prototype.toString.call(e)==="[object Array]")return e;if(Object.prototype.toString.call(e)==="[object String]")return[e]}},handleImgLeng(i){let e=i[this.prop]||null;if(e){if(Object.prototype.toString.call(e)==="[object Array]")return e.length;if(Object.prototype.toString.call(e)==="[object String]")return 1}else return 0}}},$b=l.createElementVNode("span",{class:"el-image__error cv-table-column-img-err",slot:"error"},[l.createTextVNode(" 暂无 "),l.createElementVNode("br"),l.createTextVNode(" 图片 ")],-1),_b={key:0,class:"cv-table-column-img-mark"},Pb={class:"cv-table-column-img-text"};function Qb(i,e,t,n,s,r){const o=l.resolveComponent("el-image"),a=l.resolveComponent("el-table-column");return l.openBlock(),l.createBlock(a,l.normalizeProps(l.guardReactiveProps(i.$props)),{default:l.withCtx(c=>[l.createElementVNode("div",{class:"cv-table-column-img-box",style:l.normalizeStyle({width:s.localImgWidth,height:s.localImgHeight})},[l.createVNode(o,{style:l.normalizeStyle({width:s.localImgWidth,height:s.localImgHeight}),fit:"scale-down",lazy:"",src:r.handleImgOne(c.row),"preview-src-list":r.handleImgArr(c.row)},{default:l.withCtx(()=>[$b]),_:2},1032,["style","src","preview-src-list"]),r.handleImgLeng(c.row)>1?(l.openBlock(),l.createElementBlock("p",_b,[l.createElementVNode("span",Pb,l.toDisplayString(r.handleImgLeng(c.row))+"张",1)])):l.createCommentVNode("",!0)],4)]),_:1},16)}const Tr=x(xb,[["render",Qb],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-img.vue"]]),Vb={name:"cvTbColumnOpt",props:{...T.ElTableColumn.props,fixed:{type:[String],default:"right"},label:{type:[String],default:"操作"}},data(){return{}},created(){}};function Tb(i,e,t,n,s,r){const o=l.resolveComponent("el-table-column");return l.openBlock(),l.createBlock(o,l.normalizeProps(l.guardReactiveProps(i.$props)),{default:l.withCtx(a=>[l.renderSlot(i.$slots,"default",l.normalizeProps(l.guardReactiveProps({row:a.row,$index:a.$index,scope:a})))]),_:3},16)}const Er=x(Vb,[["render",Tb],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-opt.vue"]]),Eb={name:"cvTbColumnBase",props:{...T.ElTableColumn.props,width:{type:[String,Number],default:""}},data(){return{}},created(){}};function Zb(i,e,t,n,s,r){const o=l.resolveComponent("el-table-column");return l.openBlock(),l.createBlock(o,l.normalizeProps(l.guardReactiveProps(i.$props)),{default:l.withCtx(a=>[l.renderSlot(i.$slots,"default",l.normalizeProps(l.guardReactiveProps({row:a.row,$index:a.$index,scope:a})))]),_:3},16)}const Zr=x(Eb,[["render",Zb],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-base.vue"]]),Ab={name:"cvTbColumnExpand",props:{...T.ElTableColumn.props},data(){return{}},created(){}};function Bb(i,e,t,n,s,r){const o=l.resolveComponent("el-table-column");return l.openBlock(),l.createBlock(o,l.mergeProps(i.$props,{type:"expand"}),{default:l.withCtx(a=>[l.renderSlot(i.$slots,"default",l.normalizeProps(l.guardReactiveProps({row:a.row,$index:a.$index,props:a})))]),_:3},16)}const Ar=x(Ab,[["render",Bb],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-expand.vue"]]),Db={name:"cvTbColumnEnum",props:{...T.ElTableColumn.props,dataLists:{type:[Object,Array],default:()=>({})}},data(){return{}},created(){},methods:{dealTypeEnum(i){let e=Object.keys(this.dataLists);return i[this.prop]?this.dataLists[i[this.prop]]||"":this.dataLists[e[0]]||""}}};function Nb(i,e,t,n,s,r){const o=l.resolveComponent("el-table-column");return l.openBlock(),l.createBlock(o,l.normalizeProps(l.guardReactiveProps(i.$props)),{default:l.withCtx(a=>[l.createElementVNode("span",null,l.toDisplayString(r.dealTypeEnum(a.row)),1)]),_:1},16)}const Br=x(Db,[["render",Nb],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/column-enum.vue"]]),Rb={name:"cvTbEditSearch",props:{...T.ElTableColumn.props,modelValue:{type:[String],default:""},align:{type:[String],default:"left"}},data(){return{isEditIndex:null,localVal:"",autocompleteAttr:{debounce:0},searchSett:{searchFunc:null,searchParam:{},searchMockData:null,searchField:{}},searchResList:[],searchCurrClass:"",searchCurrTbIndex:0,searchIsSelect:!1}},watch:{modelValue(i){},localVal(i){this.$emit("update:modelValue",i)}},directives:{edfocus:{mounted:i=>{}}},created(){},methods:{searchEdit(i,e){this.isEditIndex=e,this.$nextTick(()=>{this.$refs[`cv-tbce-autocomplete${e}`].focus()})},searchSave(i,e){this.isEditIndex=null},searchSelect(i,e,t){this.searchIsSelect=!0,this.localTableData[t]=Object.assign(this.localTableData[t],i),this.localTableData[t].row_num=1,i.row_attr?this.localTableData[t].row_name=i.row_name+`<br><span class="cv-tbce-showtext-attr">[ ${i.row_attr} ]</span>`:this.localTableData[t].row_name=i.row_name},searchFocus(i,e){this.searchCurrClass="cvtegac"+i,this.searchCurrTbIndex=i},searchBlur(i,e){this.searchIsSelect||(this.isEditIndex=null)},searchQuery(i,e){this.searchIsSelect=!1,this.searchResList=[];const t=this.searchSett;if(t.searchMockData!=null&&t.searchMockData){if(!(typeof t.searchMockData!="Array"&&typeof t.searchMockData!="object")){const n=this.sortOutData(t.searchMockData);this.tableData=n,this.$message({message:n.msg||"",type:"warning",duration:1300})}this.$nextTick(()=>{this.tableLoading=!1})}else t.searchFunc&&typeof t.searchFunc=="function"&&t.searchFunc({page:1,pagesize:20,keyword:i,...t.searchParam}).then(n=>{this.searchResList=[...n.data],this.searchParseData(i,e)})},searchParseData(i,e){var t=[],n=[];const s=this.searchSett;if(this.searchResList.length>0){for(let r in this.searchResList){let o=this.searchResList[r];const a=s.searchField.row_price;o.row_price=o[a];const c=s.searchField.row_stock;o.row_stock=o[c];const h=s.searchField.row_attr;o.row_attr=o[h];const u=s.searchField.row_name;o.row_name=o[u];const d=s.searchField.row_unit;o.row_unit=o[d];const f=s.searchField.row_id;o.row_id=o[f],o.value=o.row_name,n.push(o)}t=n}clearTimeout(this.timeout),this.timeout=setTimeout(()=>{e(t)},600)},inputSearchFilter(i){return e=>e.value.toLowerCase().indexOf(i.toLowerCase())===0},searchIconClick(){this.isEditIndex=null}}},Ib={class:"name"},Lb={class:"addr"},Mb={class:"addr"},Xb={class:"droplist-item"},jb={class:"name"},zb={key:0,class:"attr"},Wb={class:"price"},Yb={class:"rest"},Fb=["onClick"];function qb(i,e,t,n,s,r){const o=l.resolveComponent("CircleClose"),a=l.resolveComponent("el-icon"),c=l.resolveComponent("el-autocomplete"),h=l.resolveComponent("el-table-column");return l.openBlock(),l.createBlock(h,l.mergeProps(i.$props,{"class-name":"cv-table-editor-search-column"}),{default:l.withCtx(u=>[s.isEditIndex==u.$index?(l.openBlock(),l.createBlock(c,l.mergeProps({key:0,ref:`cv-tbce-autocomplete${u.$index}`},s.autocompleteAttr,{modelValue:u.row[i.prop],"onUpdate:modelValue":d=>u.row[i.prop]=d,"popper-class":`cv-tbce-autocomplete cvtegac${u.$index}`,"fetch-suggestions":r.searchQuery,onSelect:d=>r.searchSelect(d,u.row,u.$index),onFocus:d=>r.searchFocus(u.$index,d),onBlur:d=>r.searchBlur(u.row,u.$index)}),{suffix:l.withCtx(()=>[l.createVNode(a,{onClick:d=>r.searchIconClick(u.row,u.$index)},{default:l.withCtx(()=>[l.createVNode(o)]),_:2},1032,["onClick"])]),default:l.withCtx(({item:d})=>[l.renderSlot(i.$slots,"default",{item:d},()=>[l.createElementVNode("div",Ib,l.toDisplayString(d.row_name),1),l.createElementVNode("span",Lb,"价格:"+l.toDisplayString(d.row_price),1),l.createElementVNode("span",Mb,l.toDisplayString(d.row_rest),1),l.createElementVNode("div",Xb,[l.createElementVNode("div",jb,[l.createTextVNode(l.toDisplayString(d.row_name)+" ",1),d.row_attr?(l.openBlock(),l.createElementBlock("div",zb,"[ "+l.toDisplayString(d.row_attr)+"]",1)):l.createCommentVNode("",!0)]),l.createElementVNode("div",Wb,"¥ "+l.toDisplayString(d.row_price),1),l.createElementVNode("div",Yb,l.toDisplayString(d.attr_stock),1)])])]),_:2},1040,["modelValue","onUpdate:modelValue","popper-class","fetch-suggestions","onSelect","onFocus","onBlur"])):(l.openBlock(),l.createElementBlock("span",{key:1,class:"showtext",onClick:d=>r.searchEdit(u.row,u.$index)},l.toDisplayString(u.row[i.prop]),9,Fb))]),_:3},16)}const Dr=x(Rb,[["render",qb],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-search.vue"]]),Ub={name:"cvTbEditOpt",props:{tableData:{type:[Array],default:()=>[]},...T.ElTableColumn.props,label:{type:[String],default:"操作"},align:{type:[String],default:"center"},width:{type:[String],default:"100"},fixed:{type:[String],default:"left"},btnAdd:{type:[Boolean,String],default:!0},btnDel:{type:[Boolean,String],default:!0}},data(){return{localTbData:[]}},watch:{tableData(i){this.localTbData=i}},created(){this.localTbData=this.tableData},methods:{optHdDelete(i,e){this.localTbData.splice(i,1),this.localTbData.length<1&&this.optHdAdd()},optHdAdd(){this.localTbData.push({})}}};function Gb(i,e,t,n,s,r){const o=l.resolveComponent("Plus"),a=l.resolveComponent("el-icon"),c=l.resolveComponent("el-button"),h=l.resolveComponent("Close"),u=l.resolveComponent("el-table-column");return l.openBlock(),l.createBlock(u,l.normalizeProps(l.guardReactiveProps(i.$props)),{default:l.withCtx(d=>[t.btnAdd?(l.openBlock(),l.createBlock(c,{key:0,plain:"",style:{padding:"5px",width:"26px",height:"26px"},onClick:e[0]||(e[0]=f=>r.optHdAdd())},{default:l.withCtx(()=>[l.createVNode(a,null,{default:l.withCtx(()=>[l.createVNode(o)]),_:1})]),_:1})):l.createCommentVNode("",!0),t.btnDel?(l.openBlock(),l.createBlock(c,{key:1,plain:"",style:{padding:"5px",width:"26px",height:"26px"},onClick:f=>r.optHdDelete(d.$index,d.row)},{default:l.withCtx(()=>[l.createVNode(a,null,{default:l.withCtx(()=>[l.createVNode(h)]),_:1})]),_:2},1032,["onClick"])):l.createCommentVNode("",!0)]),_:1},16)}const Nr=x(Ub,[["render",Gb],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-opt.vue"]]),Hb={name:"cvTbEditText",props:{...T.ElTableColumn.props,width:{type:[String,Number],default:""},editAttr:{type:[Object],default:()=>({placeholder:"请输入"})},editClearable:{type:[Boolean],default:!0},editStyle:{type:[Object],default:()=>({"--el-input-border":0,"--el-input-border-radius":0,"--el-input-height":"36px"})},editClass:{type:[Object],default:()=>({})},editChange:{type:[Function],default:()=>{}},editFormatter:{type:[Function],default:()=>{}},toFixed:{type:[String,Number],default:""}},data(){return{currValue:"",isEditIndex:null,isErrIndex:[]}},directives:{edfocus:{mounted:i=>{i.querySelector("input").focus()},inserted:function(i){i.querySelector("input").focus()}}},created(){},methods:{textIsError(i){return this.isErrIndex&&this.isErrIndex[i]&&this.isErrIndex[i][this.prop]},textHdEdit(i,e){this.isEditIndex=e},textHdClear(i,e){},textHdSave(i,e){this.isEditIndex=null;let t=i[this.prop];if(this.toFixed!=""){let n=parseInt(this.toFixed);isNaN(t)||(i[this.prop]=parseFloat(t).toFixed(n))}else i[this.prop]=t}},render22(i,e){let t=this;return i("el-table-column",{props:{...this.$props},scopedSlots:{default:n=>{this.currValue=n.row[this.prop];let s=n.$index;return this.isEditIndex==s?i("el-input",{props:{style:this.editStyle,class:this.editClass},domProps:{value:this.currValue},props:{placeholder:this.placeholder,value:this.param},nativeOn:{keyup:r=>{r.keyCode===13&&(this.$emit("update:param",r.target.value),this.callback&&this.callback())}},on:{blur:r=>{this.$emit("update:param",r.target.value),this.callback&&this.callback()},input:function(r){t.currValue=r||r.target.value},blur:r=>{this.isEditIndex=null,t.currValue=r||r.target.value}}},this.currValue):i("span",{class:{showtext:!0},on:{click:()=>{this.isEditIndex=s}}},this.currValue)}}})}},Kb=["onClick"];function Jb(i,e,t,n,s,r){const o=l.resolveComponent("el-input"),a=l.resolveComponent("el-table-column"),c=l.resolveDirective("edfocus");return l.openBlock(),l.createBlock(a,l.mergeProps(i.$props,{"class-name":"cv-table-editor-text-column"}),{default:l.withCtx(h=>[s.isEditIndex==h.$index&&!t.editAttr.disabled?l.withDirectives((l.openBlock(),l.createBlock(o,l.mergeProps({key:0},t.editAttr,{clearable:t.editClearable,style:t.editStyle,class:t.editClass,modelValue:h.row[i.prop],"onUpdate:modelValue":u=>h.row[i.prop]=u,onBlur:l.withModifiers(u=>r.textHdSave(h.row,h.$index),["prevent"]),onClear:u=>r.textHdClear(h.row,h.$index)}),null,16,["clearable","style","class","modelValue","onUpdate:modelValue","onBlur","onClear"])),[[c]]):(l.openBlock(),l.createElementBlock("span",{key:1,class:"showtext",onClick:u=>r.textHdEdit(h.row,h.$index)},l.toDisplayString(h.row[i.prop]),9,Kb))]),_:1},16)}const Rr=x(Hb,[["render",Jb],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-text.vue"]]),ek={name:"cvTbEditRadio",props:{...T.ElTableColumn.props,editAttr:{type:[Object],default:()=>({})},editStyle:{type:[Object],default:()=>({})},editClass:{type:[Object],default:()=>({})},dataLists:{type:[Object,Array],default:()=>({})},dataField:{type:Object,default:()=>({label:"label",value:"value"})},editChange:{type:[Function],default:()=>{}},editFormatter:{type:[Function],default:()=>{}}},data(){return{}},created(){}};function tk(i,e,t,n,s,r){const o=l.resolveComponent("el-radio"),a=l.resolveComponent("el-radio-group"),c=l.resolveComponent("el-table-column");return l.openBlock(),l.createBlock(c,l.normalizeProps(l.guardReactiveProps(i.$props)),{default:l.withCtx(h=>[l.createVNode(a,l.mergeProps({style:t.editStyle,class:t.editClass,modelValue:h.row[i.prop],"onUpdate:modelValue":u=>h.row[i.prop]=u},t.editAttr),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.dataLists,(u,d)=>(l.openBlock(),l.createBlock(o,{key:d,label:u[t.dataField.label],value:u[t.dataField.value]},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(u[t.dataField.label]),1)]),_:2},1032,["label","value"]))),128))]),_:2},1040,["style","class","modelValue","onUpdate:modelValue"])]),_:1},16)}const Ir=x(ek,[["render",tk],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-radio.vue"]]),ik={name:"cvTbEditCheckbox",props:{...T.ElTableColumn.props,editAttr:{type:[Object],default:()=>({})},editStyle:{type:[Object],default:()=>({})},editClass:{type:[Object],default:()=>({})},dataLists:{type:[Object,Array],default:()=>({})},dataField:{type:Object,default:()=>({label:"label",value:"value"})},editChange:{type:[Function],default:()=>{}},editFormatter:{type:[Function],default:()=>{}}},data(){return{localVal:[]}},created(){},methods:{handleParseValue(i){this.localVal=[]}}};function nk(i,e,t,n,s,r){const o=l.resolveComponent("el-checkbox"),a=l.resolveComponent("el-checkbox-group"),c=l.resolveComponent("el-table-column");return l.openBlock(),l.createBlock(c,l.normalizeProps(l.guardReactiveProps(i.$props)),{default:l.withCtx(h=>[h.row[i.prop]?(l.openBlock(),l.createBlock(a,l.mergeProps({key:0,style:t.editStyle,class:t.editClass,modelValue:h.row[i.prop],"onUpdate:modelValue":u=>h.row[i.prop]=u},t.editAttr),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.dataLists,(u,d)=>(l.openBlock(),l.createBlock(o,{key:d,label:u[t.dataField.label],value:u[t.dataField.value]},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(u[t.dataField.label]),1)]),_:2},1032,["label","value"]))),128))]),_:2},1040,["style","class","modelValue","onUpdate:modelValue"])):l.createCommentVNode("",!0)]),_:1},16)}const Lr=x(ik,[["render",nk],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-checkbox.vue"]]),sk={name:"cvTbEditSelect",props:{...T.ElTableColumn.props,editAttr:{type:[Object],default:()=>({})},editStyle:{type:[Object],default:()=>({})},editClass:{type:[Object],default:()=>({})},dataLists:{type:[Object,Array],default:()=>({})},dataField:{type:Object,default:()=>({label:"label",value:"value"})},editChange:{type:[Function],default:()=>{}},editFormatter:{type:[Function],default:()=>{}}},data(){return{}},created(){}};function rk(i,e,t,n,s,r){const o=l.resolveComponent("el-option"),a=l.resolveComponent("el-select"),c=l.resolveComponent("el-table-column");return l.openBlock(),l.createBlock(c,l.normalizeProps(l.guardReactiveProps(i.$props)),{default:l.withCtx(h=>[l.createVNode(a,l.mergeProps({style:t.editStyle,class:t.editClass,modelValue:h.row[i.prop],"onUpdate:modelValue":u=>h.row[i.prop]=u},t.editAttr),{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.dataLists,(u,d)=>(l.openBlock(),l.createBlock(o,{key:d,label:u[t.dataField.label],value:u[t.dataField.value]},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(u[t.dataField.label]),1)]),_:2},1032,["label","value"]))),128))]),_:2},1040,["style","class","modelValue","onUpdate:modelValue"])]),_:1},16)}const Mr=x(sk,[["render",rk],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/table-list/src/edit-select.vue"]]);xr.install=function(i){i.component(xr.name,xr)};$r.install=function(i){i.component($r.name,$r)};_r.install=function(i){i.component(_r.name,_r)};Pr.install=function(i){i.component(Pr.name,Pr)};Qr.install=function(i){i.component(Qr.name,Qr)};Vr.install=function(i){i.component(Vr.name,Vr)};Tr.install=function(i){i.component(Tr.name,Tr)};Er.install=function(i){i.component(Er.name,Er)};Zr.install=function(i){i.component(Zr.name,Zr)};Ar.install=function(i){i.component(Ar.name,Ar)};Br.install=function(i){i.component(Br.name,Br)};Dr.install=function(i){i.component(Dr.name,Dr)};Nr.install=function(i){i.component(Nr.name,Nr)};Rr.install=function(i){i.component(Rr.name,Rr)};Ir.install=function(i){i.component(Ir.name,Ir)};Lr.install=function(i){i.component(Lr.name,Lr)};Mr.install=function(i){i.component(Mr.name,Mr)};function ok(i){return typeof Array.isArray=="function"?Array.isArray(i):Object.prototype.toString.call(i)==="[object Array]"}function lk(i){return Object.prototype.toString.call(i)==="[object Object]"}function wi(i){return ok(i)?i.length===0:lk(i)?Object.keys(i).length===0:i===""||i===void 0||i===null}const un=(i,e)=>wi(i)?e:i,ak=(i,e=200,t=!1)=>{let n=!1,s=null;const r=(...o)=>new Promise((a,c)=>{if(s&&clearTimeout(s),t&&!n){const h=i.apply(void 0,o);a(h),n=!0}else s=setTimeout(()=>{const h=i.apply(void 0,o);a(h),n=!1,s=null},e)});return r.cancel=()=>{s&&clearTimeout(s),n=!1},r};function ti(i){return i==null?"":String(i)}function ck(i){let e=["png","jpg","jpeg","gif","webp","svg"],t=i.lastIndexOf("."),n=i.substring(t+1);return e.indexOf(n.toLowerCase())!=-1}function hk(i){return window.URL?window.URL.createObjectURL(i):window.webkitURL?window.webkitURL.createObjectURL(i):""}function uk(i){var e=new Date,t=new Date(i),n=e-t,s=Math.floor(n/1e3),r=Math.floor(s/60),o=Math.floor(r/60);if(r<1)var a=s+"秒前";else if(o<1)var a=r+"分钟前";else if(o<24)var a=o+"小时前";else var a=t.toLocaleString();return a}const dk={},fk={width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pk=l.createElementVNode("rect",{width:"12",height:"12",rx:"2",fill:"#86909C"},null,-1),mk=l.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.98095 5.49307L8.22012 3.25389C8.28521 3.18881 8.39074 3.18881 8.45582 3.25389L8.69153 3.4896C8.75661 3.55468 8.75661 3.66021 8.69153 3.7253L6.45235 5.96447L8.69153 8.20364C8.75661 8.26873 8.75661 8.37426 8.69153 8.43934L8.45582 8.67505C8.39074 8.74013 8.28521 8.74013 8.22012 8.67505L5.98095 6.43587L3.74178 8.67505C3.67669 8.74013 3.57116 8.74013 3.50608 8.67505L3.27037 8.43934C3.20529 8.37426 3.20529 8.26873 3.27037 8.20364L5.50954 5.96447L3.27037 3.7253C3.20529 3.66021 3.20529 3.55468 3.27037 3.4896L3.50608 3.25389C3.57116 3.18881 3.67669 3.18881 3.74178 3.25389L5.98095 5.49307Z",fill:"white"},null,-1),gk=[pk,mk];function Ok(i,e){return l.openBlock(),l.createElementBlock("svg",fk,[...gk])}const yk=x(dk,[["render",Ok],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-clear.vue"]]),bk={},kk={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon"},wk=l.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00002 0.666504C12.0501 0.666504 15.3334 3.94975 15.3334 7.99984C15.3334 12.0499 12.0501 15.3332 8.00002 15.3332C3.94993 15.3332 0.666687 12.0499 0.666687 7.99984C0.666687 3.94975 3.94993 0.666504 8.00002 0.666504ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM10.6667 5.66667V7.66667H9.33333V5.66667H10.6667ZM6.66667 5.66667V7.66667H5.33333V5.66667H6.66667ZM10.0767 9.33333H11.0495C11.1804 9.33333 11.2866 9.43951 11.2866 9.57048C11.2866 9.60754 11.2779 9.64409 11.2612 9.67718L11.244 9.71053C10.6294 10.8739 9.40726 11.6667 7.99998 11.6667C6.61523 11.6667 5.40977 10.8991 4.7859 9.76612L4.73786 9.67593C4.67845 9.56052 4.72385 9.4188 4.83926 9.35939C4.87253 9.34226 4.90941 9.33333 4.94683 9.33333H5.92347C6.02396 9.33332 6.11908 9.37865 6.18238 9.4567C6.26207 9.55496 6.32833 9.62955 6.38117 9.68046C6.80074 10.0847 7.37133 10.3333 7.99998 10.3333C8.63289 10.3333 9.20694 10.0814 9.62728 9.67224C9.67791 9.62296 9.74135 9.55121 9.8176 9.45698C9.88089 9.37877 9.97611 9.33333 10.0767 9.33333Z"},null,-1),vk=[wk];function Sk(i,e){return l.openBlock(),l.createElementBlock("svg",kk,[...vk])}const Ck=x(bk,[["render",Sk],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-emoji.vue"]]),xk={},$k={class:"comment-common-icon"},_k=l.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:""},[l.createElementVNode("path",{d:"M4.88933 0.613974C4.92947 0.616946 4.96831 0.629568 5.00253 0.650767C6.67348 1.68589 7.55141 3.13884 7.63632 5.00962C7.947 5.00962 8.2245 4.65999 8.46882 3.96072L8.49487 3.88447C8.53862 3.75351 8.68025 3.68282 8.8112 3.72656C8.83398 3.73417 8.85554 3.74502 8.87522 3.75878C9.96316 4.5193 10.5048 5.50231 10.5 6.70782C10.4999 6.73762 10.4982 6.76675 10.495 6.7952C10.4985 6.86294 10.5 6.93131 10.5 7.00005C10.5 9.48533 8.48528 11.5 6 11.5C3.51472 11.5 1.5 9.48533 1.5 7.00005C1.5 6.90255 1.5031 6.80578 1.50921 6.70983C1.5062 6.70917 1.5031 6.70849 1.5 6.70782C1.50864 6.60849 1.52139 6.50994 1.53824 6.41219C1.54515 6.35775 1.55321 6.30373 1.56222 6.25003L1.57017 6.24983C1.7622 5.3813 2.28426 4.57601 3.13635 3.83394C4.00892 3.07405 4.50079 2.11523 4.61198 0.957499L4.62156 0.844839C4.63175 0.707146 4.75163 0.603784 4.88933 0.613974Z"})],-1),Pk=[_k];function Qk(i,e){return l.openBlock(),l.createElementBlock("i",$k,[...Pk])}const Vk=x(xk,[["render",Qk],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-hot.vue"]]),Tk={},Ek={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon"},Zk=l.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 1.3335C14.3514 1.3335 14.6394 1.60546 14.6648 1.95041L14.6666 2.00016V14.0002C14.6666 14.3516 14.3947 14.6396 14.0497 14.665L14 14.6668H1.99998C1.64853 14.6668 1.36059 14.3949 1.33514 14.0499L1.33331 14.0002V2.00016C1.33331 1.64871 1.60527 1.36077 1.95023 1.33532L1.99998 1.3335H14ZM13.3333 2.66618H2.66664V13.3328H13.3333V2.66618ZM11.9219 6.7879C11.9719 6.83791 12 6.90574 12 6.97647V11.7993C12 11.9098 11.9104 11.9993 11.8 11.9993H6.81615C6.7975 11.9993 6.77945 11.9968 6.76232 11.992L3.91042 11.9847C3.79996 11.9844 3.71063 11.8947 3.7109 11.7842C3.71102 11.7313 3.73209 11.6807 3.76948 11.6433L6.52468 8.88807C6.62882 8.78393 6.79766 8.78393 6.9018 8.88807L8.17297 10.1593L11.5447 6.7879C11.6489 6.68376 11.8177 6.68376 11.9219 6.7879ZM5.99997 3.99951V5.99951H3.99997V3.99951H5.99997Z"},null,-1),Ak=[Zk];function Bk(i,e){return l.openBlock(),l.createElementBlock("svg",Ek,[...Ak])}const Dk=x(Tk,[["render",Bk],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-image.vue"]]),Nk={},Rk={class:"comment-common-icon"},Ik=l.createElementVNode("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M586.624 234.624a74.624 74.624 0 1 1-149.184 0 74.624 74.624 0 0 1 149.12 0z m0 554.624a74.624 74.624 0 1 1-149.248 0 74.624 74.624 0 0 1 149.248 0zM512 586.624a74.624 74.624 0 1 0 0-149.248 74.624 74.624 0 0 0 0 149.248z",fill:"currentColor"})],-1),Lk=[Ik];function Mk(i,e){return l.openBlock(),l.createElementBlock("i",Rk,[...Lk])}const Xk=x(Nk,[["render",Mk],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-itemopt.vue"]]),jk={},zk={class:"comment-common-icon",style:{color:"#1e80ff"}},Wk=l.createElementVNode("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1534"},[l.createElementVNode("path",{d:"M668.928 166.912c-20.48-53.504-47.9744-84.7872-82.0224-94.9248-33.5872-10.0352-61.952 4.096-76.032 13.9776-27.5456 19.3536-41.216 49.664-50.0224 74.1376-3.3792 9.3184-6.4512 19.0976-9.216 27.9552l-2.6624 8.3968a227.8912 227.8912 0 0 1-10.3936 27.9552c-25.344 52.9408-47.4112 84.5312-66.7648 104.96-18.944 19.968-36.4544 30.464-55.1936 39.7824a45.3632 45.3632 0 0 0-25.088 40.5504l-0.1024 480.7168c0 24.9344 20.2752 45.2096 45.2096 45.2096h423.0656c21.7088 0 38.144-6.912 50.0224-16.9984a72.192 72.192 0 0 0 14.4896-16.896l0.2048-0.2048 0.0512-0.1536 0.8192-1.024 1.2288-1.8944c39.424-63.7952 66.7648-114.688 88.2176-175.616 24.4224-69.4784 36.8128-129.6896 42.0352-176.64 5.12-45.6704 3.7888-81.664-1.5872-101.376a77.9776 77.9776 0 0 0-45.568-52.3264 116.5824 116.5824 0 0 0-45.4144-8.6016l-192.8192-2.6624c28.1088-115.0976 10.0864-181.6064-2.4576-214.3744zM64.0512 413.9008a45.2096 45.2096 0 0 1 45.1584-47.36H176.128c24.9344 0 45.2096 20.2752 45.2096 45.2096v480.6144a45.2096 45.2096 0 0 1-45.2096 45.2096h-44.288a45.2096 45.2096 0 0 1-45.1584-43.0592L64 413.952z","p-id":"1535"})],-1),Yk=[Wk];function Fk(i,e){return l.openBlock(),l.createElementBlock("i",zk,[...Yk])}const qk=x(jk,[["render",Fk],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-like-on.vue"]]),Uk={},Gk={class:"comment-common-icon"},Hk=l.createElementVNode("svg",{t:"1650360973068",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1168",width:"200",height:"200"},[l.createElementVNode("path",{d:"M547.968 138.88c6.656-4.672 14.08-6.976 20.48-5.056 6.08 1.792 22.848 10.752 40.192 56.128 8.576 22.4 27.264 81.536-5.632 197.504a45.44 45.44 0 0 0 42.88 57.984l217.6 3.008h0.448a53.12 53.12 0 0 1 20.096 3.328 16.256 16.256 0 0 1 5.568 3.648 14.464 14.464 0 0 1 3.264 6.4c2.176 7.808 4.608 33.984-0.256 77.248-4.672 41.984-15.936 97.408-38.784 162.368-19.136 54.336-43.52 100.48-81.472 161.792a56.384 56.384 0 0 0-1.664 2.496l-0.128 0.128-1.408 2.112a7.872 7.872 0 0 1-1.28 1.472 3.84 3.84 0 0 1-1.28 0.64 20.48 20.48 0 0 1-6.848 0.96H356.032V421.44c19.712-10.624 40.704-24.576 62.592-47.616 25.472-26.88 51.008-64.768 78.208-121.6 5.568-11.584 9.856-24.384 13.632-36.032l3.072-9.856c2.688-8.448 5.184-16.384 8.064-24.32 8.064-22.4 16.128-36.032 26.368-43.136z m120.96 27.968c-20.48-53.44-48-84.736-81.984-94.912-33.6-9.984-61.952 4.16-76.032 14.08-27.584 19.264-41.28 49.6-50.048 74.048-3.392 9.344-6.464 19.2-9.216 27.968l-2.688 8.448a227.84 227.84 0 0 1-10.432 27.904c-25.28 52.928-47.36 84.544-66.752 104.96-18.944 19.968-36.48 30.464-55.168 39.808a45.376 45.376 0 0 0-25.088 40.576l-0.064 480.64c0 24.96 20.224 45.248 45.184 45.248h423.04c21.76 0 38.144-6.912 50.048-16.96a71.808 71.808 0 0 0 14.528-16.896l0.128-0.256 0.128-0.128 0.832-0.96 1.152-1.92c39.424-63.872 66.816-114.688 88.256-175.68a810.24 810.24 0 0 0 42.048-176.64c5.12-45.632 3.776-81.664-1.6-101.376a77.952 77.952 0 0 0-45.568-52.288 116.544 116.544 0 0 0-45.44-8.64l-192.768-2.688c28.096-115.072 10.048-181.568-2.496-214.336z m-604.864 247.04a45.184 45.184 0 0 1 45.12-47.296h67.008c24.96 0 45.184 20.288 45.184 45.248v480.64c0 24.96-20.224 45.12-45.184 45.12H131.84a45.184 45.184 0 0 1-45.12-43.072l-22.656-480.64z","p-id":"1169"})],-1),Kk=[Hk];function Jk(i,e){return l.openBlock(),l.createElementBlock("i",Gk,[...Kk])}const ew=x(Uk,[["render",Jk],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-like-off.vue"]]),tw={},iw={width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:""},nw=l.createElementVNode("path",{"data-v-d6f79dbc":"","fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.99976 7.93206L10.0656 3.86619C10.1633 3.76856 10.3215 3.76856 10.4192 3.86619L10.7727 4.21975C10.8704 4.31738 10.8704 4.47567 10.7727 4.5733L6.35331 8.99272C6.15805 9.18798 5.84147 9.18798 5.6462 8.99272L1.22679 4.5733C1.12916 4.47567 1.12916 4.31738 1.22679 4.21975L1.58034 3.86619C1.67797 3.76856 1.83626 3.76856 1.93389 3.86619L5.99976 7.93206Z"},null,-1),sw=[nw];function rw(i,e){return l.openBlock(),l.createElementBlock("svg",iw,[...sw])}const ow=x(tw,[["render",rw],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-look.vue"]]),lw={},aw={class:"comment-common-icon"},cw=l.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:""},[l.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.99951 0.5C9.03708 0.5 11.4995 2.96243 11.4995 6C11.4995 9.03757 9.03708 11.5 5.99951 11.5C2.96195 11.5 0.499512 9.03757 0.499512 6C0.499512 2.96243 2.96195 0.5 5.99951 0.5ZM6.25 3.49988C6.38807 3.49988 6.5 3.61181 6.5 3.74988V5.49988H8.25C8.38807 5.49988 8.5 5.61181 8.5 5.74988V6.24988C8.5 6.38795 8.38807 6.49988 8.25 6.49988H5.75C5.61193 6.49988 5.5 6.38795 5.5 6.24988V3.74988C5.5 3.61181 5.61193 3.49988 5.75 3.49988H6.25Z"})],-1),hw=[cw];function uw(i,e){return l.openBlock(),l.createElementBlock("i",aw,[...hw])}const dw=x(lw,[["render",uw],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-new.vue"]]),fw={},pw={class:"comment-common-icon"},mw=l.createElementVNode("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1320",width:"200",height:"200"},[l.createElementVNode("path",{d:"M147.264 647.296V220.928c0-49.536 40.128-89.728 89.6-89.728H793.6c49.536 0 89.728 40.192 89.728 89.728v426.368c0 49.536-40.128 89.728-89.6 89.728h-145.216a47.04 47.04 0 0 0-28.16 9.408l-194.56 145.792a3.392 3.392 0 0 1-5.12-1.984l-26.752-116.672a47.04 47.04 0 0 0-45.824-36.544H236.992a89.728 89.728 0 0 1-89.728-89.728zM236.864 64A156.928 156.928 0 0 0 80 220.928l0.064 426.368a156.928 156.928 0 0 0 156.928 156.928h94.976l23.232 101.312 0.064 0.448a70.592 70.592 0 0 0 109.696 40.832l190.208-142.592H793.6a156.928 156.928 0 0 0 156.928-156.928l-0.064-426.368A156.928 156.928 0 0 0 793.536 64H236.928z m69.44 442.496a65.344 65.344 0 1 0 0-130.752 65.344 65.344 0 0 0 0 130.752z m268.8-65.344a65.344 65.344 0 1 1-130.752 0 65.344 65.344 0 0 1 130.752 0z m138.368 65.344a65.344 65.344 0 1 0 0-130.752 65.344 65.344 0 0 0 0 130.752z","p-id":"1321"})],-1),gw=[mw];function Ow(i,e){return l.openBlock(),l.createElementBlock("i",pw,[...gw])}const yw=x(fw,[["render",Ow],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/icons/icon-reply.vue"]]),bw=i=>(l.pushScopeId("data-v-60eb8f0b"),i=i(),l.popScopeId(),i),kw={class:"cv-comment-emoji"},ww={class:"face-tooltip-head select-none"},vw=["onClick"],Sw=["src"],Cw={class:"emoji-body select-none"},xw={style:{padding:"0 5px"}},$w=["onClick"],_w={class:"emoji-btn select-none"},Pw={key:0},Qw=bw(()=>l.createElementVNode("span",null,"表情",-1)),Vw=Object.assign({name:"CompInputEmoji"},{__name:"input-emoji",props:{emoji:{faceList:[],emojiList:[],allEmoji:{}},placement:"bottom"},emits:["addEmoji"],setup(i,{emit:e}){const t=i,n=l.ref(0),s=l.ref(0),r=l.ref(new Array(2)),{emojiList:o,faceList:a}=t.emoji;function c(u){switch(n.value=u,u){case 0:s.value=0;break;case 1:s.value=-50,r.value[1]=o[1];break}}function h(){r.value[0]=o[0]}return(u,d)=>(l.openBlock(),l.createElementBlock("div",kw,[l.createVNode(l.unref(T.ElPopover),{placement:i.placement,"popper-class":"emoji-popover",width:250,trigger:"click",onBeforeEnter:h},{reference:l.withCtx(()=>[l.createElementVNode("div",_w,[u.$slots.default?l.renderSlot(u.$slots,"default",{key:1},void 0,!0):(l.openBlock(),l.createElementBlock("div",Pw,[l.createVNode(l.unref(Ck)),Qw]))])]),default:l.withCtx(()=>[l.createElementVNode("div",ww,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(a),(f,p)=>(l.openBlock(),l.createElementBlock("label",{key:p,class:l.normalizeClass(n.value==p?"active":""),onClick:m=>c(p)},[l.createElementVNode("img",{src:f,alt:""},null,8,Sw)],10,vw))),128))]),l.createElementVNode("div",Cw,[l.createElementVNode("div",{class:"emjio-container",style:l.normalizeStyle({transform:`translateX(${s.value}%)`})},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,(f,p)=>(l.openBlock(),l.createElementBlock("div",{key:p,class:"emoji-wrapper"},[l.createVNode(l.unref(T.ElScrollbar),null,{default:l.withCtx(()=>[l.createElementVNode("div",xw,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f,(m,g)=>(l.openBlock(),l.createElementBlock("span",{key:g,class:"emoji-item",onClick:y=>u.$emit("addEmoji",g)},[l.createVNode(l.unref(T.ElImage),{src:m,title:String(g),class:"emoji",style:{width:"24px",height:"24px",margin:"5px"},lazy:""},null,8,["src","title"])],8,$w))),128))])]),_:2},1024)]))),128))],4)])]),_:3},8,["placement"])]))}}),Tw=x(Vw,[["__scopeId","data-v-60eb8f0b"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/input-emoji.vue"]]),Ld=i=>(l.pushScopeId("data-v-cb6d934c"),i=i(),l.popScopeId(),i),Ew={class:"cv-comment-editor"},Zw=["placeholder","innerHTML"],Aw=["src"],Bw=["onClick"],Dw={key:0,class:"cv-comment-editor__action"},Nw=Ld(()=>l.createElementVNode("span",null,"图片",-1)),Rw=Ld(()=>l.createElementVNode("span",{style:{"margin-right":"10px"}},[l.createTextVNode(" 文明上网理性发言,请遵守 "),l.createElementVNode("a",{href:"###",target:"_blank"},"《新闻评论服务协议》")],-1)),Iw={__name:"input-box",props:{placeholder:"",contentBtn:"",parentId:"",reply:""},emits:["hide","close"],setup(i,{expose:e,emit:t}){const n=i,s=l.ref(""),r=l.ref(),o=l.ref(!1),a=l.ref(!1),c=l.ref(),h=l.ref(!0),u=l.ref(),d=l.ref(),f=l.ref([]),p=l.ref([]),m=l.reactive({imgLength:0}),g={minHeight:64},y=l.ref(),b=l.ref(!1),k=l.ref(),w=l.computed(()=>g.minHeight+"px"),S=l.computed(()=>"8px 12px"),v=t,{upload:P,submit:_,focus:N}=l.inject("InjectInputBox"),L=l.inject("InjectionEmojiApi");l.watch(()=>s.value,j=>{b.value||(r.value=j)});function X(){_({content:n.reply?`回复 <span style="color: var(--cv-color-success-dark-2);">@${n.reply.user.username}:</span> ${s.value}`:s.value,parentId:un(n.parentId,null),reply:n.reply,files:p.value,clear:()=>{ae(),v("close")}})}function M(j){wi(s.value)&&!m.imgLength&&(a.value=!1,v("hide",j))}function I(j){b.value=!0,o.value=!0,a.value=!0,l.nextTick(()=>{u.value=document.querySelector("div[id^='el-popper-container']")}),N()}function G(j){var z,oe;y.value=(z=window.getSelection())==null?void 0:z.getRangeAt(0),(oe=c.value)!=null&&oe.innerHTML||(o.value=!1),b.value=!1}function Y(j){const{innerHTML:z}=(j==null?void 0:j.target)||j;s.value=z||"",wi(s.value.replace(/&nbsp;|<br>| /g,""))?h.value=!0:h.value=!1}function ie(j){var oe;let z=window.getSelection();z&&(z.removeAllRanges(),y.value||(ge(),y.value=z.getRangeAt(0)),y.value.deleteContents(),y.value.insertNode(y.value.createContextualFragment(j)),y.value.collapse(!1),z.addRange(y.value),s.value=((oe=c==null?void 0:c.value)==null?void 0:oe.innerHTML)||"",wi(s.value.replace(/&nbsp;|<br>| /g,""))?h.value=!0:h.value=!1)}function Se(){c.value&&(c.value.innerHTML="",s.value=c.value.innerHTML,o.value=!1)}function ge(){l.nextTick(()=>{var j;(j=c.value)==null||j.focus()})}function Qe(j){j.ctrlKey&&j.key=="Enter"&&(wi(s.value.replace(/&nbsp;|<br>| /g,""))?T.ElMessage({message:"内容不能为空",type:"info"}):X())}function Ze(j){var oe;f.value.length=0,p.value.length=0;const z=(oe=d.value)==null?void 0:oe.files;if(m.imgLength=un(z==null?void 0:z.length,0),z)for(let Ce=0;Ce<z.length;Ce++){let At=z[Ce].name,hO=hk(z[Ce]);p.value.push(z[Ce]),ck(At)?f.value.push(hO):T.ElMessage({type:"warn",message:"请选择图片类型文件!",duration:2500})}}function ae(){Se(),f.value.length=0,p.value=[],h.value=!0}function Ae(j){var z;(z=f==null?void 0:f.value)==null||z.splice(j,1)}return l.onMounted(()=>{var j;(j=c.value)==null||j.addEventListener("keyup",z=>{const oe=z.target;oe.innerHTML=="<br>"&&(oe.innerHTML="")})}),e({focus:()=>ge()}),(j,z)=>l.withDirectives((l.openBlock(),l.createElementBlock("div",Ew,[l.createElementVNode("div",{class:l.normalizeClass(["cv-comment-editor__box",{active:o.value,"input-active":a.value}])},[l.createElementVNode("div",{ref_key:"editorRef",ref:c,class:"rich-input",contenteditable:"true",placeholder:n.placeholder,onFocus:I,onInput:Y,onBlur:G,onKeydown:l.withKeys(Qe,["enter"]),innerHTML:r.value,style:l.normalizeStyle({minHeight:w.value,padding:S.value})},null,44,Zw),l.createElementVNode("div",{ref_key:"imageRef",ref:k,class:"image-preview-box"},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f.value,(oe,Ce)=>(l.openBlock(),l.createElementBlock("div",{key:Ce,class:"image-preview"},[l.createElementVNode("img",{src:oe,alt:""},null,8,Aw),l.createElementVNode("div",{class:"clean-btn",onClick:At=>Ae(Ce)},[l.createVNode(l.unref(yk))],8,Bw)]))),128))],512)],2),l.createVNode(l.Transition,{name:"fade"},{default:l.withCtx(()=>[a.value?(l.openBlock(),l.createElementBlock("div",Dw,[l.createElementVNode("div",null,[l.createVNode(Tw,{emoji:l.unref(L),onAddEmoji:z[0]||(z[0]=oe=>ie(oe))},null,8,["emoji"]),l.createElementVNode("div",{class:"picture",onClick:z[1]||(z[1]=(...oe)=>{var Ce,At;return((Ce=d.value)==null?void 0:Ce.click)&&((At=d.value)==null?void 0:At.click(...oe))})},[l.createVNode(l.unref(Dk)),Nw,l.createElementVNode("input",{id:"comment-upload",ref_key:"inputRef",ref:d,type:"file",multiple:"",onChange:Ze},null,544)])]),l.createElementVNode("div",null,[Rw,l.createVNode(l.unref(T.ElButton),{type:"primary",disabled:h.value,onClick:X},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(n.contentBtn),1)]),_:1},8,["disabled"])])])):l.createCommentVNode("",!0)]),_:1})])),[[l.unref(T.ClickOutside),M,u.value]])}},Md=x(Iw,[["__scopeId","data-v-cb6d934c"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/input-box.vue"]]),Lw={class:"u-fold"},Mw={class:"action-box select-none"},Xw=Object.assign({name:"UFold"},{__name:"fold",props:{line:{type:[Number,String],default:5}},setup(i){l.useCssVars(a=>({"11c6ae4f-line":t.value}));const e=i,t=l.computed(()=>{let a=Math.trunc(Number(e.line));return a>0?a:1}),n=l.ref(!0),s=l.ref(!1),r=l.ref();let o;return l.onMounted(()=>{o=new ResizeObserver(a=>{n.value&&r.value&&(s.value=r.value.offsetHeight<r.value.scrollHeight)}),o.observe(r.value)}),l.onUnmounted(()=>{o.disconnect()}),(a,c)=>(l.openBlock(),l.createElementBlock("div",Lw,[l.createElementVNode("div",{class:l.normalizeClass(["txt-box",{"over-hidden":n.value}])},[l.createElementVNode("div",{ref_key:"divBox",ref:r},[l.renderSlot(a.$slots,"default",{},void 0,!0)],512)],2),l.createElementVNode("div",Mw,[s.value&&a.unfold?(l.openBlock(),l.createElementBlock("div",{key:0,class:"expand-btn",onClick:c[0]||(c[0]=h=>n.value=!n.value)},l.toDisplayString(n.value?"展开":"收起"),1)):l.createCommentVNode("",!0)])]))}}),jw=x(Xw,[["__scopeId","data-v-11c6ae4f"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/fold.vue"]]),zw={__name:"user-card",props:{uid:""},setup(i){const e=l.ref({}),{showInfo:t}=l.inject("InjectContentBox"),n=l.inject("InjectSlots"),s=()=>l.h("div",n.card(e.value));return(r,o)=>l.unref(n).card?(l.openBlock(),l.createBlock(l.unref(T.ElPopover),{key:0,placement:"top",width:300,"show-after":300,onBeforeEnter:o[0]||(o[0]=()=>l.unref(t)(i.uid,a=>e.value=a))},{reference:l.withCtx(()=>[l.renderSlot(r.$slots,"default")]),default:l.withCtx(()=>[l.createVNode(s)]),_:3})):l.renderSlot(r.$slots,"default",{key:1})}},Uc=x(zw,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/comp/user-card.vue"]]);function Xd(i){return l.getCurrentScope()?(l.onScopeDispose(i),!0):!1}function Wo(i){return typeof i=="function"?i():l.unref(i)}const nc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ww=Object.prototype.toString,Yw=i=>Ww.call(i)==="[object Object]",Fw=()=>{};function qw(i){let e;function t(){return e||(e=i()),e}return t.reset=async()=>{const n=e;e=void 0,n&&await n},t}function Uw(i,e,t={}){const{immediate:n=!0}=t,s=l.ref(!1);let r=null;function o(){r&&(clearTimeout(r),r=null)}function a(){s.value=!1,o()}function c(...h){o(),s.value=!0,r=setTimeout(()=>{s.value=!1,r=null,i(...h)},Wo(e))}return n&&(s.value=!0,nc&&c()),Xd(a),{isPending:l.readonly(s),start:c,stop:a}}function Gw(i){var e;const t=Wo(i);return(e=t==null?void 0:t.$el)!=null?e:t}const Hw=nc?window:void 0,jd=nc?window.navigator:void 0;function zd(...i){let e,t,n,s;if(typeof i[0]=="string"||Array.isArray(i[0])?([t,n,s]=i,e=Hw):[e,t,n,s]=i,!e)return Fw;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const r=[],o=()=>{r.forEach(u=>u()),r.length=0},a=(u,d,f,p)=>(u.addEventListener(d,f,p),()=>u.removeEventListener(d,f,p)),c=l.watch(()=>[Gw(e),Wo(s)],([u,d])=>{if(o(),!u)return;const f=Yw(d)?{...d}:d;r.push(...t.flatMap(p=>n.map(m=>a(u,p,m,f))))},{immediate:!0,flush:"post"}),h=()=>{c(),o()};return Xd(h),h}function Kw(){const i=l.ref(!1),e=l.getCurrentInstance();return e&&l.onMounted(()=>{i.value=!0},e),i}function Wd(i){const e=Kw();return l.computed(()=>(e.value,!!i()))}function Gc(i,e={}){const{controls:t=!1,navigator:n=jd}=e,s=Wd(()=>n&&"permissions"in n);let r;const o=typeof i=="string"?{name:i}:i,a=l.ref(),c=()=>{r&&(a.value=r.state)},h=qw(async()=>{if(s.value){if(!r)try{r=await n.permissions.query(o),zd(r,"change",c),c()}catch{a.value="prompt"}return r}});return h(),t?{state:a,isSupported:s,query:h}:a}function Jw(i={}){const{navigator:e=jd,read:t=!1,source:n,copiedDuring:s=1500,legacy:r=!1}=i,o=Wd(()=>e&&"clipboard"in e),a=Gc("clipboard-read"),c=Gc("clipboard-write"),h=l.computed(()=>o.value||r),u=l.ref(""),d=l.ref(!1),f=Uw(()=>d.value=!1,s);function p(){o.value&&b(a.value)?e.clipboard.readText().then(k=>{u.value=k}):u.value=y()}h.value&&t&&zd(["copy","cut"],p);async function m(k=Wo(n)){h.value&&k!=null&&(o.value&&b(c.value)?await e.clipboard.writeText(k):g(k),u.value=k,d.value=!0,f.start())}function g(k){const w=document.createElement("textarea");w.value=k??"",w.style.position="absolute",w.style.opacity="0",document.body.appendChild(w),w.select(),document.execCommand("copy"),w.remove()}function y(){var k,w,S;return(S=(w=(k=document==null?void 0:document.getSelection)==null?void 0:k.call(document))==null?void 0:w.toString())!=null?S:""}function b(k){return k==="granted"||k==="prompt"}return{isSupported:h,text:u,copied:d,copy:m}}const ev={class:"comment-list-actbox__right"},tv={class:"operation-warp"},iv={class:"dialog-footer"},nv={__name:"comment-operate",props:{data:{type:[Object],default:()=>({})}},setup(i){const{copy:e}=Jw(),t=l.ref(!1),n=l.ref({report_type:"",report_content:""}),s=i;function r(){let a=s.data||{};t.value=!1,T.ElMessage({type:"info",message:"举报成功: "+a.id})}function o(a){let c=s.data||{};switch(a){case"remove":setTimeout(()=>{var h;(h=commentRef.value)==null||h.remove(c)},200);break;case"report":t.value=!0;break;case"copy":e(c.content),T.ElMessage({type:"info",message:"复制成功"})}}return(a,c)=>{const h=l.resolveComponent("el-dropdown-item"),u=l.resolveComponent("el-dropdown-menu"),d=l.resolveComponent("el-dropdown"),f=l.resolveComponent("el-radio"),p=l.resolveComponent("el-radio-group"),m=l.resolveComponent("el-form-item"),g=l.resolveComponent("el-input"),y=l.resolveComponent("el-form"),b=l.resolveComponent("el-button"),k=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",ev,[l.createVNode(d,{trigger:"click",onCommand:c[0]||(c[0]=w=>o(w))},{dropdown:l.withCtx(()=>[l.createVNode(u,null,{default:l.withCtx(()=>[l.createVNode(h,{command:"report"},{default:l.withCtx(()=>[l.createTextVNode("举报")]),_:1}),l.createVNode(h,{command:"remove"},{default:l.withCtx(()=>[l.createTextVNode("删除")]),_:1}),l.createVNode(h,{divided:"",command:"copy"},{default:l.withCtx(()=>[l.createTextVNode("复制")]),_:1})]),_:1})]),default:l.withCtx(()=>[l.createElementVNode("div",tv,[l.createVNode(l.unref(Xk))])]),_:1}),l.createVNode(k,{title:"举报",modelValue:t.value,"onUpdate:modelValue":c[4]||(c[4]=w=>t.value=w),width:"400px",style:{width:"90%","max-width":"400px"}},{footer:l.withCtx(()=>[l.createElementVNode("span",iv,[l.createVNode(b,{onClick:c[3]||(c[3]=w=>t.value=!1)},{default:l.withCtx(()=>[l.createTextVNode("取消")]),_:1}),l.createVNode(b,{type:"primary",onClick:r},{default:l.withCtx(()=>[l.createTextVNode("提交")]),_:1})])]),default:l.withCtx(()=>[l.createVNode(y,{"label-position":"top"},{default:l.withCtx(()=>[l.createVNode(m,{label:"您为什么要举报此信息?"},{default:l.withCtx(()=>[l.createVNode(p,{modelValue:n.value.report_type,"onUpdate:modelValue":c[1]||(c[1]=w=>n.value.report_type=w)},{default:l.withCtx(()=>[l.createVNode(f,{value:"色情淫秽"},{default:l.withCtx(()=>[l.createTextVNode("色情淫秽")]),_:1}),l.createVNode(f,{value:"骚扰谩骂"},{default:l.withCtx(()=>[l.createTextVNode("骚扰谩骂")]),_:1}),l.createVNode(f,{value:"广告欺诈"},{default:l.withCtx(()=>[l.createTextVNode("广告欺诈")]),_:1}),l.createVNode(f,{value:"反动"},{default:l.withCtx(()=>[l.createTextVNode("反动")]),_:1}),l.createVNode(f,{value:"其他"},{default:l.withCtx(()=>[l.createTextVNode("其他")]),_:1})]),_:1},8,["modelValue"])]),_:1}),l.createVNode(m,{label:"举报说明(可选):"},{default:l.withCtx(()=>[l.createVNode(g,{type:"textarea",modelValue:n.value.report_content,"onUpdate:modelValue":c[2]||(c[2]=w=>n.value.report_content=w),maxlength:"200",placeholder:"描述恶意行为",rows:"3"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}},sv=x(nv,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-operate.vue"]]),rv=i=>(l.pushScopeId("data-v-1d5332e1"),i=i(),l.popScopeId(),i),ov={class:"comment-sub"},lv=["href"],av=rv(()=>l.createElementVNode("img",{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"},null,-1)),cv={class:"comment-primary"},hv={class:"comment-main"},uv={key:1,class:"user-info"},dv=["href"],fv={class:"username"},pv={class:"name",style:{"max-width":"10em"}},mv={blank:"true",class:"rank"},gv=["innerHTML"],Ov={class:"address",style:{color:"#939393","font-size":"12px"}},yv={class:"time"},bv={class:"content"},kv=["innerHTML"],wv={class:"imgbox",style:{display:"flex"}},vv={class:"comment-list-actbox select-none"},Sv={class:"comment-list-actbox__left"},Cv={key:2},xv={class:"comment-list-actbox__right"},$v={key:2},_v={__name:"content-box",props:{reply:{type:[Boolean],default:!1},data:{type:[Object],default:()=>({})},id:{type:[String],default:""}},setup(i){const e=i,t=l.reactive({active:!1}),n=l.ref(),s=l.ref(),r=l.computed(()=>{let b=e.data.contentImg;return wi(b)?[]:b==null?void 0:b.split("||")}),{allEmoji:o}=l.inject("InjectionEmojiApi"),{like:a,user:c,relativeTime:h}=l.inject("InjectContentBox");function u(){t.active=!t.active,t.active&&l.nextTick(()=>{var b;(b=n.value)==null||b.focus()})}function d(b){var w;const k=b.target;(w=s.value)!=null&&w.contains(k)||(t.active=!1)}const f=l.inject("InjectSlots"),p=()=>l.h("div",f.info(e.data)),m=(b,k)=>{const w=/\[.+?\]/g;return k=k.replace(w,S=>{const v=b[S];return v?['<img src="',v,'" width="20" height="20" alt="',S,'" title="',S,'" style="margin: 0 1px; vertical-align: text-bottom"',"/>"].join(""):S}),k},g=l.computed(()=>m(o,e.data.content)),y=b=>{switch(b){case 1:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="831"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#8CDBF4" p-id="832"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="833"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m950.857143-365.714285l73.142857-73.142858v146.285715h-73.142857z m73.142857-73.142858h146.285715v146.285715h-146.285715z m0 146.285715h146.285715v438.857143h-146.285715z" fill="#FFFFFF"></path></svg>';case 2:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="765"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#6ECEFF" p-id="766"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="767"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m877.714286-438.857143h365.714286v146.285715h-365.714286z m219.428572 146.285715h146.285714v146.285714h-146.285714z m-219.428572 292.571428V512h146.285714v146.285714z" fill="#FFFFFF" p-id="768"></path><path d="M1097.142857 585.142857V438.857143h365.714286v146.285714z m0 73.142857h365.714286v146.285715h-365.714286z" fill="#FFFFFF"></path></svg>';case 3:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="799"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#599DFF" p-id="800"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="801"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m877.714286-438.857143h365.714286v146.285715h-365.714286z m219.428572 146.285715h146.285714v73.142857h-146.285714z m0 219.428571h146.285714v73.142857h-146.285714z m-146.285715-146.285714h292.571429v146.285714h-292.571429z m-73.142857 219.428571h365.714286v146.285715h-365.714286z" fill="#FFFFFF"></path></svg>';case 4:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="815"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#34D19B" p-id="816"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="817"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m975.213715-365.714285L1243.428571 219.428571v219.428572h-146.285714zM1097.142857 438.857143h146.285714v292.571428h-146.285714z m146.285714 146.285714h73.142858v146.285714h-73.142858z m0-365.714286h73.142858v146.285715h-73.142858z m73.142858 0h146.285714v585.142858h-146.285714z" fill="#FFFFFF"></path></svg>';case 5:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="782"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#FFA000" p-id="783"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="784"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m1097.142858-73.142857h146.285714v219.428572h-146.285714z m-219.428572-365.714286h365.714286v146.285715h-365.714286z m0 438.857143h219.428572v146.285715h-219.428572z m73.142857-219.428571h219.428572v146.285714h-219.428572z" fill="#FFFFFF" p-id="785"></path><path d="M1316.571429 438.857143h146.285714v146.285714h-146.285714z m-219.428572-73.142857h146.285714v219.428571h-146.285714z" fill="#FFFFFF"></path></svg>';case 6:return'<svg viewBox="0 0 1682 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="748"><path d="M219.428571 73.142857h1243.428572a146.285714 146.285714 0 0 1 146.285714 146.285714v585.142858a146.285714 146.285714 0 0 1-146.285714 146.285714H219.428571a146.285714 146.285714 0 0 1-146.285714-146.285714V219.428571a146.285714 146.285714 0 0 1 146.285714-146.285714z" fill="#F36262" p-id="749"></path><path d="M219.428571 292.571429h146.285715v512H219.428571z m365.714286 146.285714h146.285714l146.285715 365.714286h-146.285715z" fill="#FFFFFF" p-id="750"></path><path d="M1024 438.857143h-146.285714l-146.285715 365.714286h146.285715zM219.428571 658.285714h365.714286v146.285715H219.428571z m1097.142858-146.285714h146.285714v292.571429h-146.285714z m-73.142858-292.571429h146.285715v146.285715h-146.285715z m-146.285714 146.285715h146.285714v438.857143h-146.285714z" fill="#FFFFFF" p-id="751"></path><path d="M1243.428571 438.857143h219.428572v146.285714h-219.428572z m-48.786285-170.642286L1243.428571 219.428571v146.285715h-146.285714zM1243.428571 658.285714h146.285715v146.285715h-146.285715z" fill="#FFFFFF"></path></svg>';default:return""}};return(b,k)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["comment",{reply:e.reply}])},[l.createElementVNode("div",ov,[l.createVNode(Uc,{uid:l.unref(ti)(i.data.uid)},{default:l.withCtx(()=>[l.createElementVNode("a",{href:i.data.user.homeLink,target:"_blank",class:"no-underline",style:{display:"block"}},[l.createVNode(l.unref(T.ElAvatar),{style:{"margin-top":"5px"},size:40,fit:"cover",src:i.data.user.avatar},{default:l.withCtx(()=>[av]),_:1},8,["src"])],8,lv)]),_:1},8,["uid"])]),l.createElementVNode("div",cv,[l.createElementVNode("div",hv,[l.unref(f).info?(l.openBlock(),l.createBlock(p,{key:0})):(l.openBlock(),l.createElementBlock("div",uv,[l.createVNode(Uc,{uid:l.unref(ti)(i.data.uid)},{default:l.withCtx(()=>[l.createElementVNode("a",{href:i.data.user.homeLink,target:"_blank",class:"no-underline",style:{display:"block"}},[l.createElementVNode("div",fv,[l.createElementVNode("span",pv,l.toDisplayString(i.data.user.username),1),l.createElementVNode("span",mv,[l.createElementVNode("i",{class:"comment-common-icon",style:{"font-size":"24px"},innerHTML:y(i.data.user.level)},null,8,gv)])])],8,dv)]),_:1},8,["uid"]),l.createElementVNode("span",Ov,"  "+l.toDisplayString(i.data.address),1),l.createElementVNode("time",yv,l.toDisplayString(l.unref(h)?l.unref(uk)(i.data.createTime):i.data.createTime),1)])),l.createElementVNode("div",bv,[l.createVNode(jw,{unfold:""},{default:l.withCtx(()=>[l.createElementVNode("div",{innerHTML:g.value},null,8,kv),l.createElementVNode("div",wv,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,(w,S)=>(l.openBlock(),l.createBlock(l.unref(T.ElImage),{key:S,src:w,style:{height:"72px",padding:"8px 4px"},lazy:"","preview-src-list":r.value,"initial-index":S},null,8,["src","preview-src-list","initial-index"]))),128))])]),_:1})]),l.createElementVNode("div",vv,[l.createElementVNode("div",Sv,[l.createElementVNode("div",{"data-tip":"点赞",class:"item",onClick:k[0]||(k[0]=w=>l.unref(a)(l.unref(ti)(i.data.id)))},[l.unref(c).likeIds.map(String).indexOf(l.unref(ti)(i.data.id))==-1?(l.openBlock(),l.createBlock(l.unref(ew),{key:0})):(l.openBlock(),l.createBlock(l.unref(qk),{key:1})),i.data.likes!=0?(l.openBlock(),l.createElementBlock("span",Cv,l.toDisplayString(i.data.likes),1)):l.createCommentVNode("",!0)]),l.createElementVNode("div",{"data-tip":"回复",ref_key:"btnRef",ref:s,class:l.normalizeClass(["item",{active:t.active}]),onClick:u},[l.createVNode(l.unref(yw)),l.createElementVNode("span",null,l.toDisplayString(t.active?"取消回复":"回复"),1)],2)]),l.createElementVNode("div",xv,[l.renderSlot(b.$slots,"operate",{},()=>[l.createVNode(sv,{data:e.data},null,8,["data"])],!0)])]),t.active?(l.openBlock(),l.createElementBlock("div",$v,[l.createVNode(Md,{ref_key:"commentRef",ref:n,"parent-id":l.unref(ti)(i.id),placeholder:`回复 @${i.data.user.username}...`,reply:i.data,"content-btn":"发布",style:{"margin-top":"12px"},onHide:d,onClose:k[1]||(k[1]=w=>t.active=!1)},null,8,["parent-id","placeholder","reply"])])):l.createCommentVNode("",!0)]),l.renderSlot(b.$slots,"default",{},void 0,!0)])],2))}},Yd=x(_v,[["__scopeId","data-v-1d5332e1"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/content-box.vue"]]),Pv={key:0,class:"reply-box"},Qv={class:"reply-list"},Vv={key:0,class:"fetch-more"},Tv={key:0},Ev={key:1},Zv={key:0},Av={key:1,class:"fetch-more"},Bv={__name:"reply-box",props:{data:{type:[Array,Object],default:()=>null},id:{type:[String],default:""}},setup(i){const e=i,t=l.reactive({loading:!1,over:!1,pageNum:1,pageSize:5}),{replyPage:n,replyShowSize:s,comments:r,page:o}=l.inject("InjectReplyBox"),a=l.computed(()=>{let f={total:0,length:0,list:[]};if(e.data){let p=e.data.list.length;f={total:e.data.total,length:p,list:e.data.list}}if(!t.over){let p=f.list.slice(0,s);f.list=p}return o&&(f.list=f.list.slice(0,5)),f}),c=()=>{t.over=!0},h=f=>{r.value.forEach(p=>{p.id==e.id&&p.reply&&(p.reply=f)})},u=f=>{t.pageNum=f,n(e.id,f,t.pageSize,p=>h(p))},d=f=>{t.pageSize=f,n(e.id,t.pageNum,f,p=>h(p))};return(f,p)=>a.value.length>0?(l.openBlock(),l.createElementBlock("div",Pv,[l.createElementVNode("div",Qv,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.value.list,(m,g)=>(l.openBlock(),l.createBlock(Yd,{id:i.id,key:g,data:m,reply:""},null,8,["id","data"]))),128)),a.value.length>l.unref(s)?(l.openBlock(),l.createElementBlock("div",Vv,[t.loading?(l.openBlock(),l.createElementBlock("span",Tv,"加载中...")):(l.openBlock(),l.createElementBlock("div",Ev,[t.over?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",Zv,[l.createTextVNode(" 共"+l.toDisplayString(a.value.total)+"条回复, ",1),l.createElementVNode("span",{class:"fetch-more-comment select-none",onClick:c},[l.createTextVNode(" 点击查看 "),l.createVNode(l.unref(ow))])]))]))])):l.createCommentVNode("",!0),t.over&&l.unref(o)?(l.openBlock(),l.createElementBlock("div",Av,[l.createVNode(l.unref(T.ElPagination),{small:"","hide-on-single-page":"",layout:"total, prev, pager, next",total:a.value.total,"page-size":t.pageSize,onCurrentChange:u,onSizeChange:d},null,8,["total","page-size"])])):l.createCommentVNode("",!0)])])):l.createCommentVNode("",!0)}},Dv=x(Bv,[["__scopeId","data-v-dd890122"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/reply-box.vue"]]),Nv={key:0,class:"comment-list"},Rv={__name:"comment-list",props:{data:{type:[Array,Object],default:()=>[]},total:{type:[Number],default:0},showSize:{type:[Number],default:0}},setup(i){return(e,t)=>i.data?(l.openBlock(),l.createElementBlock("div",Nv,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.data,(n,s)=>(l.openBlock(),l.createBlock(Yd,{id:l.unref(ti)(n.id),key:s,data:n},{default:l.withCtx(()=>[l.createVNode(Dv,{id:l.unref(ti)(n.id),data:n.reply},null,8,["id","data"])]),_:2},1032,["id","data"]))),128))])):l.createCommentVNode("",!0)}},Iv=x(Rv,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-list.vue"]]),Lv={class:"cv-comment-base"},Mv={class:"cv-comment-form"},Xv=l.createElementVNode("div",{class:"cv-comment-form__header"},[l.createElementVNode("span",{class:"cv-comment-form__hdtitle"},"评论")],-1),jv={class:"cv-comment-form__content"},zv={class:"cv-comment-form__avatar"},Wv=l.createElementVNode("img",{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"},null,-1),Yv=l.createElementVNode("div",{class:"title"},"全部评论",-1),Fv={class:"cv-comment-list-wrapper"},qv=Object.assign({name:"cvCommentBase"},{__name:"comment",props:{config:{},page:!1,upload:!1,relativeTime:!1},emits:["submit","like","replyPage","showInfo","focus"],setup(i,{expose:e,emit:t}){const n=i,{user:s,comments:r,showSize:o,replyShowSize:a,total:c}=l.toRefs(n.config),h=t,u=({content:g,parentId:y,reply:b,files:k,clear:w})=>{h("submit",{content:g,parentId:y,reply:b,files:k,finish:v=>{if(w(),y){let P=r.value.find(_=>_.id==y);if(P){let _=P.reply;_?(_.list.unshift(v),_.total++):P.reply={total:1,list:[v]}}}else r.value.unshift(v)}})},d={upload:n.upload,submit:u,focus:()=>h("focus")};l.provide("InjectInputBox",d);const f=(g,y)=>{let b=null;r.value.forEach(k=>{var w;k.id==g?b=k:b=(w=k.reply)==null?void 0:w.list.find(S=>S.id==g),b&&(b.likes+=y)})},p=g=>{const y=n.config.user.likeIds;h("like",g,()=>{if(y.findIndex(b=>b==g)==-1)y.push(g),f(g,1);else{let b=y.findIndex(k=>k==g);b!=-1&&(y.splice(b,1),f(g,-1))}})};l.provide("InjectContentBox",{user:s,like:p,relativeTime:un(n.relativeTime,!1),showInfo:(g,y)=>h("showInfo",g,y)}),l.provide("InjectReplyBox",{page:n.page,replyPage:(g,y,b,k)=>{h("replyPage",{parentId:g,pageNum:y,pageSize:b,finish:k})},replyShowSize:un(a,3),comments:r});const m=g=>{const{parentId:y,id:b}=g;if(y){let k=r.value.find(S=>S.id==y),w=k==null?void 0:k.reply;if(w){let S=w.list.findIndex(v=>v.id==b);S!=-1&&(w.list.splice(S,1),w.total--)}}else{let k=r.value.findIndex(w=>w.id==b);k!=-1&&r.value.splice(k,1)}};return l.provide("InjectionEmojiApi",n.config.emoji),l.provide("InjectSlots",l.useSlots()),e({remove:m}),(g,y)=>{const b=l.resolveComponent("el-avatar");return l.openBlock(),l.createElementBlock("div",Lv,[l.createElementVNode("div",Mv,[Xv,l.createElementVNode("div",jv,[l.createElementVNode("div",zv,[l.createVNode(b,{size:40,src:i.config.user.avatar},{default:l.withCtx(()=>[Wv]),_:1},8,["src"])]),l.createVNode(Md,{placeholder:"输入评论(Enter换行,Ctrl + Enter发送)","content-btn":"发表评论"})])]),l.renderSlot(g.$slots,"default",{},()=>[Yv]),l.createElementVNode("div",Fv,[l.createVNode(Iv,{data:l.unref(r),total:l.unref(c),"show-size":l.unref(un)(l.unref(o),5)},null,8,["data","total","show-size"])])])}}}),Xr=x(qv,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment.vue"]]),Uv={class:"comment-scroll"},Gv=["infinite-scroll-disabled"],Hv={class:"scroll-btn"},Kv={key:1},Jv={key:2},eS=Object.assign({name:"cvCommentScroll"},{__name:"comment-scroll",props:{disable:{type:[Boolean],default:!1},show:{type:[Boolean],default:!1}},emits:["more"],setup(i,{emit:e}){const t=i,n=l.ref(!1),s=l.ref(!1),r=e,o=l.computed(()=>s.value&&t.disable),a=l.computed(()=>!s.value||n.value||o.value),c=ak(()=>{r("more"),n.value=!1},500),h=()=>{n.value=!0,c()};return(u,d)=>{const f=l.resolveComponent("el-link"),p=l.resolveDirective("infinite-scroll");return l.openBlock(),l.createElementBlock("div",Uv,[l.withDirectives((l.openBlock(),l.createElementBlock("div",{"infinite-scroll-disabled":a.value,"infinite-scroll-distance":"2"},[l.renderSlot(u.$slots,"default"),l.createElementVNode("div",Hv,[s.value?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(f,{key:0,type:"primary",underline:!1,onClick:d[0]||(d[0]=m=>s.value=!s.value)},{default:l.withCtx(()=>[l.createTextVNode("加载更多")]),_:1})),n.value?(l.openBlock(),l.createElementBlock("p",Kv,"加载中...")):l.createCommentVNode("",!0),o.value?(l.openBlock(),l.createElementBlock("p",Jv,"没有更多了")):l.createCommentVNode("",!0)])],8,Gv)),[[p,h]])])}}}),jr=x(eS,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-scroll.vue"]]),tS={class:"cv-comment-nav-wrap"},iS=l.createElementVNode("span",{class:"cv-comment-nav__title"},"全部评论",-1),nS={class:"cv-comment-nav__sort"},sS=Object.assign({name:"cvCommentNav"},{__name:"comment-nav",props:{modelValue:!1},emits:["update:modelValue","sorted"],setup(i,{emit:e}){const t=i,n=e,s=l.computed({get(){return t.modelValue},set(r){n("update:modelValue",r),n("sorted",r)}});return(r,o)=>(l.openBlock(),l.createElementBlock("div",tS,[iS,l.createElementVNode("div",nS,[l.createElementVNode("div",{class:l.normalizeClass(["item select-none",{active:s.value}]),onClick:o[0]||(o[0]=a=>s.value=!0)},[l.createVNode(l.unref(dw)),l.createTextVNode(" 最新 ")],2),l.createElementVNode("div",{class:l.normalizeClass(["item select-none",{active:!s.value}]),onClick:o[1]||(o[1]=a=>s.value=!1)},[l.createVNode(l.unref(Vk)),l.createTextVNode(" 最热 ")],2)])]))}}),zr=x(sS,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/comment/src/comment-nav.vue"]]);Xr.install=function(i){i.component(Xr.name,Xr)};jr.install=function(i){i.component(jr.name,jr)};zr.install=function(i){i.component(zr.name,zr)};const rS={name:"cvIcons",props:{...T.ElIcon.prop,type:{type:[String],default:""},size:{type:[String,Number],default:12},name:{type:[String],default:""}},data(){return{}},computed:{style(){return{fontSize:isNaN(Number(this.size))?this.size+"px":this.size,color:props.color}}},created(){},methods:{}},oS={key:0,"aria-hidden":"true"},lS=["xlink:href"];function aS(i,e,t,n,s,r){const o=l.resolveComponent("el-icon");return l.openBlock(),l.createBlock(o,l.normalizeProps(l.guardReactiveProps(i.$props)),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default",{},()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.type)))]),t.name?(l.openBlock(),l.createElementBlock("svg",oS,[l.createElementVNode("use",{"xlink:href":t.name},null,8,lS)])):l.createCommentVNode("",!0)]),_:3},16)}const Wr=x(rS,[["render",aS],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/icons/src/index.vue"]]);Wr.install=function(i){i.component(Wr.name,Wr)};const Fd=i=>(l.pushScopeId("data-v-cbcaef8c"),i=i(),l.popScopeId(),i),cS={class:"u-emoji"},hS={class:"face-tooltip-head select-none"},uS=["onClick"],dS=["src"],fS={class:"emoji-body select-none"},pS={style:{padding:"0 5px"}},mS=["onClick"],gS={class:"emoji-btn select-none"},OS={key:0},yS=Fd(()=>l.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.00002 0.666504C12.0501 0.666504 15.3334 3.94975 15.3334 7.99984C15.3334 12.0499 12.0501 15.3332 8.00002 15.3332C3.94993 15.3332 0.666687 12.0499 0.666687 7.99984C0.666687 3.94975 3.94993 0.666504 8.00002 0.666504ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM10.6667 5.66667V7.66667H9.33333V5.66667H10.6667ZM6.66667 5.66667V7.66667H5.33333V5.66667H6.66667ZM10.0767 9.33333H11.0495C11.1804 9.33333 11.2866 9.43951 11.2866 9.57048C11.2866 9.60754 11.2779 9.64409 11.2612 9.67718L11.244 9.71053C10.6294 10.8739 9.40726 11.6667 7.99998 11.6667C6.61523 11.6667 5.40977 10.8991 4.7859 9.76612L4.73786 9.67593C4.67845 9.56052 4.72385 9.4188 4.83926 9.35939C4.87253 9.34226 4.90941 9.33333 4.94683 9.33333H5.92347C6.02396 9.33332 6.11908 9.37865 6.18238 9.4567C6.26207 9.55496 6.32833 9.62955 6.38117 9.68046C6.80074 10.0847 7.37133 10.3333 7.99998 10.3333C8.63289 10.3333 9.20694 10.0814 9.62728 9.67224C9.67791 9.62296 9.74135 9.55121 9.8176 9.45698C9.88089 9.37877 9.97611 9.33333 10.0767 9.33333Z"})],-1)),bS=Fd(()=>l.createElementVNode("span",null,"表情",-1)),kS=[yS,bS],wS=Object.assign({name:"cvEmoji"},{__name:"emoji",props:{emoji:{faceList:[],emojiList:[],allEmoji:{}},placement:"bottom"},emits:["addEmoji"],setup(i,{emit:e}){const t=i,n=l.ref(0),s=l.ref(0),r=l.ref(new Array(2)),{emojiList:o,faceList:a}=t.emoji;function c(u){switch(n.value=u,u){case 0:s.value=0;break;case 1:s.value=-50,r.value[1]=o[1];break}}function h(){r.value[0]=o[0]}return(u,d)=>(l.openBlock(),l.createElementBlock("div",cS,[l.createVNode(l.unref(T.ElPopover),{placement:i.placement,"popper-class":"emoji-popover",width:250,trigger:"click",onBeforeEnter:h},{reference:l.withCtx(()=>[l.createElementVNode("div",gS,[u.$slots.default?l.renderSlot(u.$slots,"default",{key:1},void 0,!0):(l.openBlock(),l.createElementBlock("div",OS,[...kS]))])]),default:l.withCtx(()=>[l.createElementVNode("div",hS,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(a),(f,p)=>(l.openBlock(),l.createElementBlock("label",{key:p,class:l.normalizeClass(n.value==p?"active":""),onClick:m=>c(p)},[l.createElementVNode("img",{src:f,alt:""},null,8,dS)],10,uS))),128))]),l.createElementVNode("div",fS,[l.createElementVNode("div",{class:"emjio-container",style:l.normalizeStyle({transform:`translateX(${s.value}%)`})},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,(f,p)=>(l.openBlock(),l.createElementBlock("div",{key:p,class:"emoji-wrapper"},[l.createVNode(l.unref(T.ElScrollbar),null,{default:l.withCtx(()=>[l.createElementVNode("div",pS,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(f,(m,g)=>(l.openBlock(),l.createElementBlock("span",{key:g,class:"emoji-item",onClick:y=>u.$emit("addEmoji",g)},[l.createVNode(l.unref(T.ElImage),{src:m,title:String(g),class:"emoji",style:{width:"24px",height:"24px",margin:"5px"},lazy:""},null,8,["src","title"])],8,mS))),128))])]),_:2},1024)]))),128))],4)])]),_:3},8,["placement"])]))}}),vS=x(wS,[["__scopeId","data-v-cbcaef8c"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/chat/comp/emoji.vue"]]),SS={class:"cv-chat-message"},CS={class:"chat-list"},xS=l.createElementVNode("img",{src:"https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png"},null,-1),$S={class:"content"},_S={key:0,class:"username"},PS=["innerHTML"],QS=l.createElementVNode("div",{class:"date"},null,-1),VS={__name:"message",props:{data:{type:[Array],default:()=>[]},userId:{type:[Number],default:0}},setup(i,{expose:e}){const{allEmoji:t}=l.inject("InjectionEmojiApi"),n=l.ref();e({scroll:()=>{l.nextTick(()=>{const o=document.querySelector(".chat-item:last-child");n.value.setScrollTop(o.offsetTop)})}});const r=(o,a)=>{const c=/\[.+?\]/g;return a=a.replace(c,h=>{const u=o[h];return u?['<img src="',u,'" width="20" height="20" alt="',h,'" title="',h,'" style="margin: 0 1px; vertical-align: text-bottom"',"/>"].join(""):h}),a};return(o,a)=>(l.openBlock(),l.createElementBlock("div",SS,[l.createVNode(l.unref(T.ElScrollbar),{ref_key:"scrollbarRef",ref:n},{default:l.withCtx(()=>[l.createElementVNode("div",CS,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.data,(c,h)=>(l.openBlock(),l.createElementBlock("div",{key:h,class:l.normalizeClass([{self:i.userId==c.id},"chat-item"])},[l.createElementVNode("div",null,[l.createVNode(l.unref(T.ElAvatar),null,{default:l.withCtx(()=>[xS]),_:1})]),l.createElementVNode("div",$S,[i.userId!=c.id?(l.openBlock(),l.createElementBlock("div",_S,l.toDisplayString(c.username),1)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:"card-box",innerHTML:r(l.unref(t),c.content)},null,8,PS)]),QS],2))),128))])]),_:1},512)]))}},TS=x(VS,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/chat/src/message.vue"]]),ES={class:"cv-chat-wrap"},ZS={class:"header"},AS=l.createElementVNode("svg",{viewBox:"0 0 1318 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[l.createElementVNode("path",{d:"M1318.502489 432.779052c0-231.790522-209.29842-419.704826-467.458992-419.704826s-467.56979 188.357498-467.56979 419.704826 209.409219 419.704826 467.56979 419.704826a512.110799 512.110799 0 0 0 183.482363-33.239559l93.292361 93.292361a25.816057 25.816057 0 0 0 44.319412-19.168145L1165.822116 742.350141C1259.336074 665.56676 1318.502489 555.433023 1318.502489 432.779052z",fill:"#612273","p-id":"10993"}),l.createElementVNode("path",{d:"M1034.304263 745.784895a509.673231 509.673231 0 0 1-183.482363 33.239559c-244.532352 0-445.077689-168.524562-465.353819-383.25211-1.107985 12.07704-1.883575 24.264878-1.883575 36.563514 0 231.790522 209.409219 419.704826 467.56979 419.704826a512.110799 512.110799 0 0 0 183.482363-33.239559l93.292361 93.292361a25.816057 25.816057 0 0 0 44.319411-19.168145 25.262064 25.262064 0 0 0-7.5343-17.284571zM1165.822116 669.223112l2.769964 70.689461C1260.44406 663.239991 1318.502489 553.992642 1318.502489 432.779052a366.632331 366.632331 0 0 0-1.883575-36.785111 403.971435 403.971435 0 0 1-150.796798 273.229171z",fill:"#612273",opacity:".2","p-id":"10994"}),l.createElementVNode("path",{d:"M383.25211 432.779052a383.141311 383.141311 0 0 1 41.881844-172.956503c-12.298637-0.997187-24.81887-1.661978-37.449903-1.661978C173.510496 258.160571 0 413.943302 0 606.178749c0 101.713049 48.97295 193.011037 126.421121 256.609392l-5.761524 148.470028a12.187838 12.187838 0 0 0 20.830124 9.08548l94.06795-93.957153A425.577148 425.577148 0 0 0 387.79485 954.196927a404.636226 404.636226 0 0 0 300.37481-128.304696c-177.831638-59.388011-304.91755-212.733175-304.91755-393.113179z",fill:"#EB3D72","p-id":"10995"}),l.createElementVNode("path",{d:"M342.256654 391.672798c0 117.557239 53.958883 223.59143 140.714132 299.71002a391.008007 391.008007 0 0 1-99.718676-258.603766 383.141311 383.141311 0 0 1 41.881844-172.956503c-12.298637-0.997187-24.81887-1.661978-37.449903-1.661978-7.091106 0-14.071413 0-21.05172 0.553993a375.939407 375.939407 0 0 0-24.375677 132.958234zM630.111231 802.181346a407.627786 407.627786 0 0 1-283.533434 110.798528 424.136767 424.136767 0 0 1-152.12638-27.699632l-71.686647 71.686648-2.105173 54.291279a12.187838 12.187838 0 0 0 20.830124 9.08548l94.06795-93.957153A425.577148 425.577148 0 0 0 387.79485 954.196927a404.636226 404.636226 0 0 0 300.37481-128.304696 486.294741 486.294741 0 0 1-58.058429-23.710885zM85.425665 821.792686l-5.761523-4.985934c1.883575 2.215971 3.656351 4.431941 5.650725 6.647911z",fill:"#EB3D72",opacity:".5","p-id":"10996"}),l.createElementVNode("path",{d:"M833.426531 332.395585c64.263147-10.193465 64.041549-66.479117 62.601169-75.342999s-15.400995-54.291279-59.942004-47.200173S799.078987 254.836615 799.078987 254.836615a28.475222 28.475222 0 1 0 56.174854-8.97468s6.315516 3.323956 8.30989 20.27613-11.966241 29.029214-35.455529 33.239559-88.638823-19.943735-104.039819-115.452067C709.110582 96.39472 781.57282 28.253625 838.966457 13.185025a55.399264 55.399264 0 0 0-64.041549-5.318329c-56.064055 35.123134-97.170309 109.579745-85.536464 182.817571 14.957801 93.846354 79.664142 151.904783 144.038087 141.711318zM203.980091 573.825579a53.072495 53.072495 0 0 0 33.90435-67.919498c-2.659165-6.537113-21.162519-38.225492-53.51569-25.040467a30.026401 30.026401 0 0 0-19.832936 40.773858 22.159706 22.159706 0 1 0 40.773858-16.619779s5.318329 1.329582 9.861069 13.739017-3.988747 24.043281-21.05172 31.023588-70.02467 0.553993-98.832288-68.695087C68.916685 417.599654 110.798528 353.558104 151.904783 332.395585a42.879031 42.879031 0 0 0-48.97295 7.423502 146.918849 146.918849 0 0 0-32.574767 152.458775c27.810431 68.141095 86.866046 100.605064 133.623025 81.547717z",fill:"#FED150","p-id":"10997"})],-1),BS=l.createElementVNode("div",{style:{"margin-left":"12px"}},[l.createElementVNode("div",null,"聊天室"),l.createElementVNode("div",{style:{"font-size":"12px"}},"当前2人在线")],-1),DS={id:"chat-footer",class:"footer"},NS=l.createElementVNode("svg",{width:"22",height:"22",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7186"},[l.createElementVNode("path",{d:"M510.944 960c-247.04 0-448-200.96-448-448s200.992-448 448-448c247.008 0 448 200.96 448 448S757.984 960 510.944 960zM510.944 128c-211.744 0-384 172.256-384 384 0 211.744 172.256 384 384 384 211.744 0 384-172.256 384-384C894.944 300.256 722.688 128 510.944 128zM512 773.344c-89.184 0-171.904-40.32-226.912-110.624-10.88-13.92-8.448-34.016 5.472-44.896 13.888-10.912 34.016-8.48 44.928 5.472 42.784 54.688 107.136 86.048 176.512 86.048 70.112 0 134.88-31.904 177.664-87.552 10.784-14.016 30.848-16.672 44.864-5.888 14.016 10.784 16.672 30.88 5.888 44.864C685.408 732.32 602.144 773.344 512 773.344zM368 515.2c-26.528 0-48-21.472-48-48l0-64c0-26.528 21.472-48 48-48s48 21.472 48 48l0 64C416 493.696 394.496 515.2 368 515.2zM656 515.2c-26.496 0-48-21.472-48-48l0-64c0-26.528 21.504-48 48-48s48 21.472 48 48l0 64C704 493.696 682.496 515.2 656 515.2z","p-id":"7187"})],-1),RS=l.createElementVNode("svg",{viewBox:"0 0 1025 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15072"},[l.createElementVNode("path",{d:"M1008.00076 6.285714q18.857143 13.714286 15.428571 36.571429l-146.285714 877.714286q-2.857143 16.571429-18.285714 25.714286-8 4.571429-17.714286 4.571429-6.285714 0-13.714286-2.857143l-258.857143-105.714286-138.285714 168.571429q-10.285714 13.142857-28 13.142857-7.428571 0-12.571429-2.285714-10.857143-4-17.428571-13.428571t-6.571429-20.857143l0-199.428571 493.714286-605.142857-610.857143 528.571429-225.714286-92.571429q-21.142857-8-22.857143-31.428571-1.142857-22.857143 18.285714-33.714286l950.857143-548.571429q8.571429-5.142857 18.285714-5.142857 11.428571 0 20.571429 6.285714z","p-id":"15073"})],-1),IS=Object.assign({name:"cvChat"},{__name:"chat",props:{data:{type:[Array],default:()=>[]},userId:{type:[Number],default:0},emoji:{type:[Object],default:()=>({})}},emits:["submit"],setup(i,{emit:e}){const t=i,n=l.ref(!1),s=l.ref(""),r=l.ref(),{data:o}=t,a=e,c=f=>{const{ctrlKey:p,key:m}=f;p&&m=="Enter"&&u()},h=()=>{s.value="",r.value.scroll()},u=()=>{let f=s.value;f.trim()?(f=f.replace(/\n/g,"<br/>"),a("submit",{clear:h,content:f})):T.ElMessage({type:"error",message:"内容不能为空"})},d=f=>{let p=document.getElementById("emojiInput"),m=p.selectionStart,g=p.selectionEnd,y=p.value;if(m===null||g===null)return;let b=y.substring(0,m)+f+y.substring(g);p.value=b,p.focus(),p.selectionStart=m+f.length,p.selectionEnd=m+f.length,s.value=b};return l.provide("InjectionEmojiApi",t.emoji),(f,p)=>{const m=l.resolveComponent("cvIcons");return l.openBlock(),l.createElementBlock("div",ES,[l.createElementVNode("div",{class:l.normalizeClass([{active:n.value},"chat-container translate"])},[l.createElementVNode("div",ZS,[l.createVNode(m,{size:"32"},{default:l.withCtx(()=>[AS]),_:1}),BS]),l.createVNode(TS,{ref_key:"messageRef",ref:r,data:l.unref(o),"user-id":i.userId},null,8,["data","user-id"]),l.createElementVNode("div",DS,[l.createVNode(l.unref(T.ElInput),{id:"emojiInput",modelValue:s.value,"onUpdate:modelValue":p[0]||(p[0]=g=>s.value=g),type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"请输入内容",onKeydown:l.withKeys(c,["enter"])},null,8,["modelValue"]),l.createVNode(vS,{style:{margin:"0 8px 0"},emoji:i.emoji,placement:"top-end",onAddEmoji:d},{default:l.withCtx(()=>[NS]),_:1},8,["emoji"]),l.createVNode(m,{size:"18",class:l.normalizeClass([{".cv-chat-wrap submit-btn":s.value.trim()!=""},"select-none cursor-pointer"]),style:{"padding-bottom":"5px"},onClick:u},{default:l.withCtx(()=>[RS]),_:1},8,["class"])])],2),l.createVNode(l.unref(T.ElButton),{class:"chat-btn",onClick:p[1]||(p[1]=g=>n.value=!n.value)},{default:l.withCtx(()=>[l.createTextVNode("chat")]),_:1})])}}}),Yr=x(IS,[["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/chat/src/chat.vue"]]);Yr.install=function(i){i.component(Yr.name,Yr)};const LS={key:0},MS=Object.assign({name:"cvNoticeBar"},{__name:"notice-bar",props:{data:{type:[String,Array],default:()=>[]},vertical:{type:[Boolean],default:!1},suffixIcon:{type:[String],default:""},prefixIcon:{type:[String],default:""},size:{type:[Number],default:14},height:{type:[Number],default:40},delay:{type:[Number],default:1e3},spped:{type:[Number],default:100},color:{type:[String],default:"--color-warning"},background:{type:[String],default:"var(--color-warning-light-9)"}},setup(i){const e=i,{data:t,vertical:n,suffixIcon:s,prefixIcon:r,size:o,height:a,delay:c,spped:h,color:u,background:d}=e,f=l.reactive({boxWidth:0,textWidth:0,oneTime:0,twoTime:0,order:1}),p=l.ref({}),m=l.ref({}),g=l.computed(()=>e.delay>2e3?e.delay:2e3),y=()=>{l.nextTick(()=>{f.boxWidth=p.value.offsetWidth,f.textWidth=m.value.offsetWidth,document.styleSheets[0].insertRule(`@keyframes oneAnimation {0% {left: 0px;} 100% {left: -${f.textWidth}px;}}`),document.styleSheets[0].insertRule(`@keyframes twoAnimation {0% {left: ${f.boxWidth}px;} 100% {left: -${f.textWidth}px;}}`),b(),setTimeout(()=>{k()},e.delay)})},b=()=>{f.oneTime=f.textWidth/e.spped,f.twoTime=(f.textWidth+f.boxWidth)/e.spped},k=()=>{f.order===1?(m.value.style.cssText=`animation: oneAnimation ${f.oneTime}s linear; opactity: 1;}`,f.order=2):m.value.style.cssText=`animation: twoAnimation ${f.twoTime}s linear infinite; opacity: 1;`},w=()=>{m.value.addEventListener("animationend",()=>{k()},!1)};return l.onMounted(()=>{e.vertical||(y(),w())}),(S,v)=>{const P=l.resolveComponent("el-carousel-item"),_=l.resolveComponent("el-carousel"),N=l.resolveComponent("cvIcons");return l.openBlock(),l.createElementBlock("div",{class:"cv-notice-bar",style:l.normalizeStyle({background:l.unref(d),height:`${l.unref(a)}px`})},[l.unref(n)?(l.openBlock(),l.createElementBlock("div",LS,[l.createVNode(_,{height:"40px",direction:"vertical",autoplay:!0,"indicator-position":"none",interval:g.value},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(t),L=>(l.openBlock(),l.createBlock(P,{key:L},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(L),1)]),_:2},1024))),128))]),_:1},8,["interval"])])):(l.openBlock(),l.createElementBlock("div",{key:1,style:l.normalizeStyle({color:l.unref(u),fontSize:`${l.unref(o)}px`}),class:"cv-notice-bar-wrap"},[l.unref(r)?(l.openBlock(),l.createBlock(N,{key:0,name:l.unref(r)},null,8,["name"])):l.createCommentVNode("",!0),l.createElementVNode("div",{ref_key:"boxRef",ref:p,class:"text-box"},[l.createElementVNode("div",{ref_key:"textRef",ref:m,class:"text"},l.toDisplayString(l.unref(t)),513)],512),l.unref(s)?(l.openBlock(),l.createBlock(N,{key:1,name:l.unref(s)},null,8,["name"])):l.createCommentVNode("",!0)],4))],4)}}}),Fr=x(MS,[["__scopeId","data-v-f2fc7608"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/notice-bar/src/notice-bar.vue"]]);Fr.install=function(i){i.component(Fr.name,Fr)};const XS={name:"cvEditorCode",props:{options:{type:[Object],default:()=>({autoRefresh:!0,autofocus:!1,lineNumbers:!0,tabSize:4,indentUnit:2,line:!0,styleActiveLine:!0})},modelValue:{type:[String],default:""},toolbars:{type:[Array],default:()=>["copy"]},theme:{type:[String],default:"juejin"},language:{type:[String],default:"Plain Text"},readOnly:{type:[Boolean],default:!1},id:{type:[String],required:!1,default(){return"myCvEditorCode-"+ +new Date+((Math.random()*1e3).toFixed(0)+"")}}},watch:{modelValue(i){this.localVal=i,this.currPoint==null&&this.editorInstance.setValue(i)}},data(){return{isCdnLoading:!0,localToolbar:{copy:!0},localToolNum:0,localOption:{},localVal:"",localMode:"",currPoint:null,editorId:this.id,editorInstance:null}},created(){this.localVal=this.modelValue,this.localToolNum=this.toolbars.length,this.localToolbar=this.toolbars.reduce((i,e)=>(i[e]=!0,i),{})},async mounted(){await Gl(this.CDN_URL_UI+"/codemirror/@5.65.15/lib/codemirror.css"),await Gl(this.CDN_URL_UI+`/codemirror/@5.65.15/theme/${this.theme}.css`),await ze(this.CDN_URL_UI+"/codemirror/@5.65.15/lib/codemirror.js").then(()=>{setTimeout(()=>{ze(this.CDN_URL_UI+"/codemirror/@5.65.15/addon/display/autorefresh.js").then(()=>{this.isCdnLoading=!1,setTimeout(()=>{this.$nextTick(()=>{this.initEditor()})},250)})},250)})},methods:{initEditor(){const i=window.CodeMirror||CodeMirror;this.editorInstance=i(this.$refs[this.editorId],{value:this.localVal,readOnly:this.readOnly,mode:this.localMode,theme:this.theme,...this.options}),this.editorInstance.setValue(this.value||this.localVal),this.editorInstance.on("change",(e,t)=>{this.localVal=e.getValue(),t.origin=="+input"&&(this.currPoint=t.to||null),t.origin=="setValue"&&(this.currPoint=null),this.$emit("update:modelValue",this.localVal)}),ze(this.CDN_URL_UI+"/codemirror/@5.65.15/mode/meta-cvjs.js").then(()=>{setTimeout(()=>{this.$nextTick(()=>{}),this._getLanguageToMode()},250)})},async _getLanguageToMode(i){i=i||this.language,window.CodeMirror||CodeMirror;const e=CodeMirror.findModeByName(i),t=e.mode||"",n=e.addonMode||"";this.localMode=e.mime||"",n!="null"&&n!=""&&await ze(this.CDN_URL_UI+`/codemirror/@5.65.15/addon/mode/${n}.js`),t!="null"&&t!=""&&await ze(this.CDN_URL_UI+`/codemirror/@5.65.15/mode/${t}/${t}.js`),this.editorInstance.setOption("mode",this.localMode)},changeMode(i){this.editorInstance.setOption("mode",`text/${i}`),this._getLanguage(i).label.toLowerCase()},handleCopy(){this.$cvCopy(this.localVal)},handleChange(i){}}},jS={class:"cv-editor-code-wrap cv-editor-vars"},zS={class:"cv-editor-mainbox"};function WS(i,e,t,n,s,r){const o=l.resolveComponent("EditorTopbar"),a=l.resolveDirective("loading");return l.withDirectives((l.openBlock(),l.createElementBlock("div",jS,[l.createVNode(o),l.createElementVNode("div",zS,[l.createElementVNode("div",{class:"cv-editor-container",ref:s.editorId},null,512)])])),[[a,s.isCdnLoading]])}const qr=x(XS,[["render",WS],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/code.vue"]]),YS={name:"cvEditorJson",components:{},props:{modelValue:{type:[Object,Array,Number,String,Boolean],default:""},editorID:{type:[String],required:!1,default(){return"json-editor-"+ +new Date+((Math.random()*1e3).toFixed(0)+"")}},mode:{type:[String],default:"text"},readOnly:{type:[Boolean],default:!1},options:{type:[Object],default:()=>({mode:"text"})},height:{type:String},plus:{type:Boolean,default:!0}},data(){return{editorInstance:null,style:{},max:!1,internalChange:!1,localVal:""}},watch:{modelValue:{handler(i){this.localVal!=i&&(this.localVal=i,this.updateVal(i))},deep:!0},max(i){this.$nextTick(()=>{this.initNewEditor()})},options:{handler(i){this.options&&this.options.mode&&this.editor},deep:!0}},computed:{getHeight(){return this.height&&!this.max?{height:this.height}:{}}},async mounted(){this.initNewEditor()},updated(){this.editorInstance.updateProps({mode:this.mode,readOnly:this.readOnly})},beforeUnmount(){this.destroyView()},beforeDestroy(){this.destroyView()},methods:{initNewEditor(){this.editor||(this.editor=new uO.JSONEditor({target:this.$refs[this.editorID],props:{value:this.modelValue,mode:this.mode,readOnly:this.readOnly,...this.options,onChange:this.onChange}}),this.updateVal(this.modelValue))},onChange(){let i=null,e={};try{e=this.editorInstance.get()}catch(t){i=t}i?this.$emit("error",i):this.editor&&(this.internalChange=!0,this.localVal=e,this.$emit("update:modelValue",this.localVal),this.$nextTick(()=>{this.internalChange=!1}))},updateVal(i){this.editor&&i!==void 0&&!this.internalChange&&this.editorInstance.update({json:i})},isJSON(i){try{return JSON.parse(i),!0}catch{return!1}},destroyView(){this.editor&&(this.editorInstance.destroy(),this.editor=null)},handleChange(i){this.emitData||(this.emitData=c0(400,e=>{this.$emit("update:modelValue",e)})),this.emitData(i)}}};function FS(i,e,t,n,s,r){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["cv-editor-json",{"max-box":s.max,"min-box":!s.max}]),style:l.normalizeStyle(r.getHeight)},[l.createElementVNode("div",{ref:t.editorID,class:"jsoneditor-box"},null,512),l.createElementVNode("a",{onClick:e[0]||(e[0]=o=>s.max=!s.max),class:"max-btn"})],6)}const Ur=x(YS,[["render",FS],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/json.vue"]]),qd=1024;let qS=0,Ue=class{constructor(e,t){this.from=e,this.to=t}};class D{constructor(e={}){this.id=qS++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=pe.match(e)),t=>{let n=e(t);return n===void 0?null:[this,n]}}}D.closedBy=new D({deserialize:i=>i.split(" ")});D.openedBy=new D({deserialize:i=>i.split(" ")});D.group=new D({deserialize:i=>i.split(" ")});D.isolate=new D({deserialize:i=>{if(i&&i!="rtl"&&i!="ltr"&&i!="auto")throw new RangeError("Invalid value for isolate: "+i);return i||"auto"}});D.contextHash=new D({perNode:!0});D.lookAhead=new D({perNode:!0});D.mounted=new D({perNode:!0});class bn{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[D.mounted.id]}}const US=Object.create(null);class pe{constructor(e,t,n,s=0){this.name=e,this.props=t,this.id=n,this.flags=s}static define(e){let t=e.props&&e.props.length?Object.create(null):US,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),s=new pe(e.name||"",t,e.id,n);if(e.props){for(let r of e.props)if(Array.isArray(r)||(r=r(s)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}}return s}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(D.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let s of n.split(" "))t[s]=e[n];return n=>{for(let s=n.prop(D.group),r=-1;r<(s?s.length:0);r++){let o=t[r<0?n.name:s[r]];if(o)return o}}}}pe.none=new pe("",Object.create(null),0,8);class Ln{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let s=null;for(let r of e){let o=r(n);o&&(s||(s=Object.assign({},n.props)),s[o[0].id]=o[1])}t.push(s?new pe(n.name,s,n.id,n.flags):n)}return new Ln(t)}}const Gn=new WeakMap,Hc=new WeakMap;var J;(function(i){i[i.ExcludeBuffers=1]="ExcludeBuffers",i[i.IncludeAnonymous=2]="IncludeAnonymous",i[i.IgnoreMounts=4]="IgnoreMounts",i[i.IgnoreOverlays=8]="IgnoreOverlays"})(J||(J={}));class U{constructor(e,t,n,s,r){if(this.type=e,this.children=t,this.positions=n,this.length=s,this.props=null,r&&r.length){this.props=Object.create(null);for(let[o,a]of r)this.props[typeof o=="number"?o:o.id]=a}}toString(){let e=bn.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let n of this.children){let s=n.toString();s&&(t&&(t+=","),t+=s)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new fo(this.topNode,e)}cursorAt(e,t=0,n=0){let s=Gn.get(this)||this.topNode,r=new fo(s);return r.moveTo(e,t),Gn.set(this,r._tree),r}get topNode(){return new _e(this,0,0,null)}resolve(e,t=0){let n=kn(Gn.get(this)||this.topNode,e,t,!1);return Gn.set(this,n),n}resolveInner(e,t=0){let n=kn(Hc.get(this)||this.topNode,e,t,!0);return Hc.set(this,n),n}resolveStack(e,t=0){return KS(this,e,t)}iterate(e){let{enter:t,leave:n,from:s=0,to:r=this.length}=e,o=e.mode||0,a=(o&J.IncludeAnonymous)>0;for(let c=this.cursor(o|J.IncludeAnonymous);;){let h=!1;if(c.from<=r&&c.to>=s&&(!a&&c.type.isAnonymous||t(c)!==!1)){if(c.firstChild())continue;h=!0}for(;h&&n&&(a||!c.type.isAnonymous)&&n(c),!c.nextSibling();){if(!c.parent())return;h=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:oc(pe.none,this.children,this.positions,0,this.children.length,0,this.length,(t,n,s)=>new U(this.type,t,n,s,this.propValues),e.makeTree||((t,n,s)=>new U(pe.none,t,n,s)))}static build(e){return JS(e)}}U.empty=new U(pe.none,[],[],0);class sc{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new sc(this.buffer,this.index)}}class Yt{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return pe.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],s=this.set.types[t],r=s.name;if(/\W/.test(r)&&!s.isError&&(r=JSON.stringify(r)),e+=4,n==e)return r;let o=[];for(;e<n;)o.push(this.childString(e)),e=this.buffer[e+3];return r+"("+o.join(",")+")"}findChild(e,t,n,s,r){let{buffer:o}=this,a=-1;for(let c=e;c!=t&&!(Ud(r,s,o[c+1],o[c+2])&&(a=c,n>0));c=o[c+3]);return a}slice(e,t,n){let s=this.buffer,r=new Uint16Array(t-e),o=0;for(let a=e,c=0;a<t;){r[c++]=s[a++],r[c++]=s[a++]-n;let h=r[c++]=s[a++]-n;r[c++]=s[a++]-e,o=Math.max(o,h)}return new Yt(r,o,this.set)}}function Ud(i,e,t,n){switch(i){case-2:return t<e;case-1:return n>=e&&t<e;case 0:return t<e&&n>e;case 1:return t<=e&&n>e;case 2:return n>e;case 4:return!0}}function kn(i,e,t,n){for(var s;i.from==i.to||(t<1?i.from>=e:i.from>e)||(t>-1?i.to<=e:i.to<e);){let o=!n&&i instanceof _e&&i.index<0?null:i.parent;if(!o)return i;i=o}let r=n?0:J.IgnoreOverlays;if(n)for(let o=i,a=o.parent;a;o=a,a=o.parent)o instanceof _e&&o.index<0&&((s=a.enter(e,t,r))===null||s===void 0?void 0:s.from)!=o.from&&(i=a);for(;;){let o=i.enter(e,t,r);if(!o)return i;i=o}}class Gd{cursor(e=0){return new fo(this,e)}getChild(e,t=null,n=null){let s=Kc(this,e,t,n);return s.length?s[0]:null}getChildren(e,t=null,n=null){return Kc(this,e,t,n)}resolve(e,t=0){return kn(this,e,t,!1)}resolveInner(e,t=0){return kn(this,e,t,!0)}matchContext(e){return Hl(this,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let s=t.lastChild;if(!s||s.to!=t.to)break;s.type.isError&&s.from==s.to?(n=t,t=s.prevSibling):t=s}return n}get node(){return this}get next(){return this.parent}}class _e extends Gd{constructor(e,t,n,s){super(),this._tree=e,this.from=t,this.index=n,this._parent=s}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,s,r=0){for(let o=this;;){for(let{children:a,positions:c}=o._tree,h=t>0?a.length:-1;e!=h;e+=t){let u=a[e],d=c[e]+o.from;if(Ud(s,n,d,d+u.length)){if(u instanceof Yt){if(r&J.ExcludeBuffers)continue;let f=u.findChild(0,u.buffer.length,t,n-d,s);if(f>-1)return new gt(new GS(o,u,e,d),null,f)}else if(r&J.IncludeAnonymous||!u.type.isAnonymous||rc(u)){let f;if(!(r&J.IgnoreMounts)&&(f=bn.get(u))&&!f.overlay)return new _e(f.tree,d,e,o);let p=new _e(u,d,e,o);return r&J.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(t<0?u.children.length-1:0,t,n,s)}}}if(r&J.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+t:e=t<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let s;if(!(n&J.IgnoreOverlays)&&(s=bn.get(this._tree))&&s.overlay){let r=e-this.from;for(let{from:o,to:a}of s.overlay)if((t>0?o<=r:o<r)&&(t<0?a>=r:a>r))return new _e(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Kc(i,e,t,n){let s=i.cursor(),r=[];if(!s.firstChild())return r;if(t!=null){for(let o=!1;!o;)if(o=s.type.is(t),!s.nextSibling())return r}for(;;){if(n!=null&&s.type.is(n))return r;if(s.type.is(e)&&r.push(s.node),!s.nextSibling())return n==null?r:[]}}function Hl(i,e,t=e.length-1){for(let n=i.parent;t>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[t]&&e[t]!=n.name)return!1;t--}}return!0}class GS{constructor(e,t,n,s){this.parent=e,this.buffer=t,this.index=n,this.start=s}}class gt extends Gd{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:s}=this.context,r=s.findChild(this.index+4,s.buffer[this.index+3],e,t-this.context.start,n);return r<0?null:new gt(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&J.ExcludeBuffers)return null;let{buffer:s}=this.context,r=s.findChild(this.index+4,s.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new gt(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new gt(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new gt(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,s=this.index+4,r=n.buffer[this.index+3];if(r>s){let o=n.buffer[this.index+1];e.push(n.slice(s,r,o)),t.push(0)}return new U(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Hd(i){if(!i.length)return null;let e=0,t=i[0];for(let r=1;r<i.length;r++){let o=i[r];(o.from>t.from||o.to<t.to)&&(t=o,e=r)}let n=t instanceof _e&&t.index<0?null:t.parent,s=i.slice();return n?s[e]=n:s.splice(e,1),new HS(s,t)}class HS{constructor(e,t){this.heads=e,this.node=t}get next(){return Hd(this.heads)}}function KS(i,e,t){let n=i.resolveInner(e,t),s=null;for(let r=n instanceof _e?n:n.context.parent;r;r=r.parent)if(r.index<0){let o=r.parent;(s||(s=[n])).push(o.resolve(e,t)),r=o}else{let o=bn.get(r.tree);if(o&&o.overlay&&o.overlay[0].from<=e&&o.overlay[o.overlay.length-1].to>=e){let a=new _e(o.tree,o.overlay[0].from+r.from,-1,r);(s||(s=[n])).push(kn(a,e,t,!1))}}return s?Hd(s):n}class fo{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof _e)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:n,buffer:s}=this.buffer;return this.type=t||s.set.types[s.buffer[e]],this.from=n+s.buffer[e+1],this.to=n+s.buffer[e+2],!0}yield(e){return e?e instanceof _e?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:s}=this.buffer,r=s.findChild(this.index+4,s.buffer[this.index+3],e,t-this.buffer.start,n);return r<0?!1:(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?n&J.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&J.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&J.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let s=n<0?0:this.stack[n]+4;if(this.index!=s)return this.yieldBuf(t.findChild(s,this.index,-1,0,4))}else{let s=t.buffer[this.index+3];if(s<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(s)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:s}=this;if(s){if(e>0){if(this.index<s.buffer.buffer.length)return!1}else for(let r=0;r<this.index;r++)if(s.buffer.buffer[r+3]<this.index)return!1;({index:t,parent:n}=s)}else({index:t,_parent:n}=this._tree);for(;n;{index:t,_parent:n}=n)if(t>-1)for(let r=t+e,o=e<0?-1:n._tree.children.length;r!=o;r+=e){let a=n._tree.children[r];if(this.mode&J.IncludeAnonymous||a instanceof Yt||!a.type.isAnonymous||rc(a))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let s=this.index,r=this.stack.length;r>=0;){for(let o=e;o;o=o._parent)if(o.index==s){if(s==this.index)return o;t=o,n=r+1;break e}s=this.stack[--r]}for(let s=n;s<this.stack.length;s++)t=new gt(this.buffer,t,this.stack[s]);return this.bufferNode=new gt(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let s=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(s=!0)}for(;s&&t&&t(this),s=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,s=!0}}}matchContext(e){if(!this.buffer)return Hl(this.node,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let s=e.length-1,r=this.stack.length-1;s>=0;r--){if(r<0)return Hl(this.node,e,s);let o=n[t.buffer[this.stack[r]]];if(!o.isAnonymous){if(e[s]&&e[s]!=o.name)return!1;s--}}return!0}}function rc(i){return i.children.some(e=>e instanceof Yt||!e.type.isAnonymous||rc(e))}function JS(i){var e;let{buffer:t,nodeSet:n,maxBufferLength:s=qd,reused:r=[],minRepeatType:o=n.types.length}=i,a=Array.isArray(t)?new sc(t,t.length):t,c=n.types,h=0,u=0;function d(v,P,_,N,L,X){let{id:M,start:I,end:G,size:Y}=a,ie=u;for(;Y<0;)if(a.next(),Y==-1){let ae=r[M];_.push(ae),N.push(I-v);return}else if(Y==-3){h=M;return}else if(Y==-4){u=M;return}else throw new RangeError(`Unrecognized record size: ${Y}`);let Se=c[M],ge,Qe,Ze=I-v;if(G-I<=s&&(Qe=y(a.pos-P,L))){let ae=new Uint16Array(Qe.size-Qe.skip),Ae=a.pos-Qe.size,j=ae.length;for(;a.pos>Ae;)j=b(Qe.start,ae,j);ge=new Yt(ae,G-Qe.start,n),Ze=Qe.start-v}else{let ae=a.pos-Y;a.next();let Ae=[],j=[],z=M>=o?M:-1,oe=0,Ce=G;for(;a.pos>ae;)z>=0&&a.id==z&&a.size>=0?(a.end<=Ce-s&&(m(Ae,j,I,oe,a.end,Ce,z,ie),oe=Ae.length,Ce=a.end),a.next()):X>2500?f(I,ae,Ae,j):d(I,ae,Ae,j,z,X+1);if(z>=0&&oe>0&&oe<Ae.length&&m(Ae,j,I,oe,I,Ce,z,ie),Ae.reverse(),j.reverse(),z>-1&&oe>0){let At=p(Se);ge=oc(Se,Ae,j,0,Ae.length,0,G-I,At,At)}else ge=g(Se,Ae,j,G-I,ie-G)}_.push(ge),N.push(Ze)}function f(v,P,_,N){let L=[],X=0,M=-1;for(;a.pos>P;){let{id:I,start:G,end:Y,size:ie}=a;if(ie>4)a.next();else{if(M>-1&&G<M)break;M<0&&(M=Y-s),L.push(I,G,Y),X++,a.next()}}if(X){let I=new Uint16Array(X*4),G=L[L.length-2];for(let Y=L.length-3,ie=0;Y>=0;Y-=3)I[ie++]=L[Y],I[ie++]=L[Y+1]-G,I[ie++]=L[Y+2]-G,I[ie++]=ie;_.push(new Yt(I,L[2]-G,n)),N.push(G-v)}}function p(v){return(P,_,N)=>{let L=0,X=P.length-1,M,I;if(X>=0&&(M=P[X])instanceof U){if(!X&&M.type==v&&M.length==N)return M;(I=M.prop(D.lookAhead))&&(L=_[X]+M.length+I)}return g(v,P,_,N,L)}}function m(v,P,_,N,L,X,M,I){let G=[],Y=[];for(;v.length>N;)G.push(v.pop()),Y.push(P.pop()+_-L);v.push(g(n.types[M],G,Y,X-L,I-X)),P.push(L-_)}function g(v,P,_,N,L=0,X){if(h){let M=[D.contextHash,h];X=X?[M].concat(X):[M]}if(L>25){let M=[D.lookAhead,L];X=X?[M].concat(X):[M]}return new U(v,P,_,N,X)}function y(v,P){let _=a.fork(),N=0,L=0,X=0,M=_.end-s,I={size:0,start:0,skip:0};e:for(let G=_.pos-v;_.pos>G;){let Y=_.size;if(_.id==P&&Y>=0){I.size=N,I.start=L,I.skip=X,X+=4,N+=4,_.next();continue}let ie=_.pos-Y;if(Y<0||ie<G||_.start<M)break;let Se=_.id>=o?4:0,ge=_.start;for(_.next();_.pos>ie;){if(_.size<0)if(_.size==-3)Se+=4;else break e;else _.id>=o&&(Se+=4);_.next()}L=ge,N+=Y,X+=Se}return(P<0||N==v)&&(I.size=N,I.start=L,I.skip=X),I.size>4?I:void 0}function b(v,P,_){let{id:N,start:L,end:X,size:M}=a;if(a.next(),M>=0&&N<o){let I=_;if(M>4){let G=a.pos-(M-4);for(;a.pos>G;)_=b(v,P,_)}P[--_]=I,P[--_]=X-v,P[--_]=L-v,P[--_]=N}else M==-3?h=N:M==-4&&(u=N);return _}let k=[],w=[];for(;a.pos>0;)d(i.start||0,i.bufferStart||0,k,w,-1,0);let S=(e=i.length)!==null&&e!==void 0?e:k.length?w[0]+k[0].length:0;return new U(c[i.topID],k.reverse(),w.reverse(),S)}const Jc=new WeakMap;function Gr(i,e){if(!i.isAnonymous||e instanceof Yt||e.type!=i)return 1;let t=Jc.get(e);if(t==null){t=1;for(let n of e.children){if(n.type!=i||!(n instanceof U)){t=1;break}t+=Gr(i,n)}Jc.set(e,t)}return t}function oc(i,e,t,n,s,r,o,a,c){let h=0;for(let m=n;m<s;m++)h+=Gr(i,e[m]);let u=Math.ceil(h*1.5/8),d=[],f=[];function p(m,g,y,b,k){for(let w=y;w<b;){let S=w,v=g[w],P=Gr(i,m[w]);for(w++;w<b;w++){let _=Gr(i,m[w]);if(P+_>=u)break;P+=_}if(w==S+1){if(P>u){let _=m[S];p(_.children,_.positions,0,_.children.length,g[S]+k);continue}d.push(m[S])}else{let _=g[w-1]+m[w-1].length-v;d.push(oc(i,m,g,S,w,v,_,null,c))}f.push(v+k-r)}}return p(e,t,n,s,0),(a||c)(d,f,o)}class Kd{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let s=this.map.get(e);s||this.map.set(e,s=new Map),s.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof gt?this.setBuffer(e.context.buffer,e.index,t):e instanceof _e&&this.map.set(e.tree,t)}get(e){return e instanceof gt?this.getBuffer(e.context.buffer,e.index):e instanceof _e?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class $t{constructor(e,t,n,s,r=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=s,this.open=(r?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],n=!1){let s=[new $t(0,e.length,e,0,!1,n)];for(let r of t)r.to>e.length&&s.push(r);return s}static applyChanges(e,t,n=128){if(!t.length)return e;let s=[],r=1,o=e.length?e[0]:null;for(let a=0,c=0,h=0;;a++){let u=a<t.length?t[a]:null,d=u?u.fromA:1e9;if(d-c>=n)for(;o&&o.from<d;){let f=o;if(c>=f.from||d<=f.to||h){let p=Math.max(f.from,c)-h,m=Math.min(f.to,d)-h;f=p>=m?null:new $t(p,m,f.tree,f.offset+h,a>0,!!u)}if(f&&s.push(f),o.to>d)break;o=r<e.length?e[r++]:null}if(!u)break;c=u.toA,h=u.toA-u.toB}return s}}class lc{startParse(e,t,n){return typeof e=="string"&&(e=new eC(e)),n=n?n.length?n.map(s=>new Ue(s.from,s.to)):[new Ue(0,0)]:[new Ue(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let s=this.startParse(e,t,n);for(;;){let r=s.advance();if(r)return r}}}class eC{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function Jd(i){return(e,t,n,s)=>new iC(e,i,t,n,s)}class eh{constructor(e,t,n,s,r){this.parser=e,this.parse=t,this.overlay=n,this.target=s,this.from=r}}function th(i){if(!i.length||i.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(i))}class tC{constructor(e,t,n,s,r,o,a){this.parser=e,this.predicate=t,this.mounts=n,this.index=s,this.start=r,this.target=o,this.prev=a,this.depth=0,this.ranges=[]}}const Kl=new D({perNode:!0});class iC{constructor(e,t,n,s,r){this.nest=t,this.input=n,this.fragments=s,this.ranges=r,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let n=this.baseParse.advance();if(!n)return null;if(this.baseParse=null,this.baseTree=n,this.startInner(),this.stoppedAt!=null)for(let s of this.inner)s.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return this.stoppedAt!=null&&(n=new U(n.type,n.children,n.positions,n.length,n.propValues.concat([[Kl,this.stoppedAt]]))),n}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[D.mounted.id]=new bn(t,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new rC(this.fragments),t=null,n=null,s=new fo(new _e(this.baseTree,this.ranges[0].from,0,null),J.IncludeAnonymous|J.IgnoreMounts);e:for(let r,o;;){let a=!0,c;if(this.stoppedAt!=null&&s.from>=this.stoppedAt)a=!1;else if(e.hasNode(s)){if(t){let h=t.mounts.find(u=>u.frag.from<=s.from&&u.frag.to>=s.to&&u.mount.overlay);if(h)for(let u of h.mount.overlay){let d=u.from+h.pos,f=u.to+h.pos;d>=s.from&&f<=s.to&&!t.ranges.some(p=>p.from<f&&p.to>d)&&t.ranges.push({from:d,to:f})}}a=!1}else if(n&&(o=nC(n.ranges,s.from,s.to)))a=o!=2;else if(!s.type.isAnonymous&&(r=this.nest(s,this.input))&&(s.from<s.to||!r.overlay)){s.tree||sC(s);let h=e.findMounts(s.from,r.parser);if(typeof r.overlay=="function")t=new tC(r.parser,r.overlay,h,this.inner.length,s.from,s.tree,t);else{let u=sh(this.ranges,r.overlay||(s.from<s.to?[new Ue(s.from,s.to)]:[]));u.length&&th(u),(u.length||!r.overlay)&&this.inner.push(new eh(r.parser,u.length?r.parser.startParse(this.input,rh(h,u),u):r.parser.startParse(""),r.overlay?r.overlay.map(d=>new Ue(d.from-s.from,d.to-s.from)):null,s.tree,u.length?u[0].from:s.from)),r.overlay?u.length&&(n={ranges:u,depth:0,prev:n}):a=!1}}else t&&(c=t.predicate(s))&&(c===!0&&(c=new Ue(s.from,s.to)),c.from<c.to&&t.ranges.push(c));if(a&&s.firstChild())t&&t.depth++,n&&n.depth++;else for(;!s.nextSibling();){if(!s.parent())break e;if(t&&!--t.depth){let h=sh(this.ranges,t.ranges);h.length&&(th(h),this.inner.splice(t.index,0,new eh(t.parser,t.parser.startParse(this.input,rh(t.mounts,h),h),t.ranges.map(u=>new Ue(u.from-t.start,u.to-t.start)),t.target,h[0].from))),t=t.prev}n&&!--n.depth&&(n=n.prev)}}}}function nC(i,e,t){for(let n of i){if(n.from>=t)break;if(n.to>e)return n.from<=e&&n.to>=t?2:1}return 0}function ih(i,e,t,n,s,r){if(e<t){let o=i.buffer[e+1];n.push(i.slice(e,t,o)),s.push(o-r)}}function sC(i){let{node:e}=i,t=[],n=e.context.buffer;do t.push(i.index),i.parent();while(!i.tree);let s=i.tree,r=s.children.indexOf(n),o=s.children[r],a=o.buffer,c=[r];function h(u,d,f,p,m,g){let y=t[g],b=[],k=[];ih(o,u,y,b,k,p);let w=a[y+1],S=a[y+2];c.push(b.length);let v=g?h(y+4,a[y+3],o.set.types[a[y]],w,S-w,g-1):e.toTree();return b.push(v),k.push(w-p),ih(o,a[y+3],d,b,k,p),new U(f,b,k,m)}s.children[r]=h(0,a.length,pe.none,0,o.length,t.length-1);for(let u of c){let d=i.tree.children[u],f=i.tree.positions[u];i.yield(new _e(d,f+i.from,u,i._tree))}}class nh{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(J.IncludeAnonymous|J.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from<n;)t.to>=e&&t.enter(n,1,J.IgnoreOverlays|J.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&t.positions[0]==0&&t.children[0]instanceof U)t=t.children[0];else break}return!1}}let rC=class{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=(t=n.tree.prop(Kl))!==null&&t!==void 0?t:n.to,this.inner=new nh(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=(e=t.tree.prop(Kl))!==null&&e!==void 0?e:t.to,this.inner=new nh(t.tree,-t.offset)}}findMounts(e,t){var n;let s=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let r=this.inner.cursor.node;r;r=r.parent){let o=(n=r.tree)===null||n===void 0?void 0:n.prop(D.mounted);if(o&&o.parser==t)for(let a=this.fragI;a<this.fragments.length;a++){let c=this.fragments[a];if(c.from>=r.to)break;c.tree==this.curFrag.tree&&s.push({frag:c,pos:r.from-c.offset,mount:o})}}}return s}};function sh(i,e){let t=null,n=e;for(let s=1,r=0;s<i.length;s++){let o=i[s-1].to,a=i[s].from;for(;r<n.length;r++){let c=n[r];if(c.from>=a)break;c.to<=o||(t||(n=t=e.slice()),c.from<o?(t[r]=new Ue(c.from,o),c.to>a&&t.splice(r+1,0,new Ue(a,c.to))):c.to>a?t[r--]=new Ue(a,c.to):t.splice(r--,1))}}return n}function oC(i,e,t,n){let s=0,r=0,o=!1,a=!1,c=-1e9,h=[];for(;;){let u=s==i.length?1e9:o?i[s].to:i[s].from,d=r==e.length?1e9:a?e[r].to:e[r].from;if(o!=a){let f=Math.max(c,t),p=Math.min(u,d,n);f<p&&h.push(new Ue(f,p))}if(c=Math.min(u,d),c==1e9)break;u==c&&(o?(o=!1,s++):o=!0),d==c&&(a?(a=!1,r++):a=!0)}return h}function rh(i,e){let t=[];for(let{pos:n,mount:s,frag:r}of i){let o=n+(s.overlay?s.overlay[0].from:0),a=o+s.tree.length,c=Math.max(r.from,o),h=Math.min(r.to,a);if(s.overlay){let u=s.overlay.map(f=>new Ue(f.from+n,f.to+n)),d=oC(e,u,c,h);for(let f=0,p=c;;f++){let m=f==d.length,g=m?h:d[f].from;if(g>p&&t.push(new $t(p,g,s.tree,-o,r.from>=p||r.openStart,r.to<=g||r.openEnd)),m)break;p=d[f].to}}else t.push(new $t(c,h,s.tree,-o,r.from>=o||r.openStart,r.to<=a||r.openEnd))}return t}class po{constructor(e,t,n,s,r,o,a,c,h,u=0,d){this.p=e,this.stack=t,this.state=n,this.reducePos=s,this.pos=r,this.score=o,this.buffer=a,this.bufferBase=c,this.curContext=h,this.lookAhead=u,this.parent=d}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let s=e.parser.context;return new po(e,[],t,n,n,0,[],0,s?new oh(s,s.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,s=e&65535,{parser:r}=this.p,o=r.dynamicPrecedence(s);if(o&&(this.score+=o),n==0){this.pushState(r.getGoto(this.state,s,!0),this.reducePos),s<r.minRepeatTerm&&this.storeNode(s,this.reducePos,this.reducePos,4,!0),this.reduceContext(s,this.reducePos);return}let a=this.stack.length-(n-1)*3-(e&262144?6:0),c=a?this.stack[a-2]:this.p.ranges[0].from,h=this.reducePos-c;h>=2e3&&!(!((t=this.p.parser.nodeSet.types[s])===null||t===void 0)&&t.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=h):this.p.lastBigReductionSize<h&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=c,this.p.lastBigReductionSize=h));let u=a?this.stack[a-1]:0,d=this.bufferBase+this.buffer.length-u;if(s<r.minRepeatTerm||e&131072){let f=r.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(s,c,f,d+4,!0)}if(e&262144)this.state=this.stack[a];else{let f=this.stack[a-3];this.state=r.getGoto(f,s,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(s,c)}storeNode(e,t,n,s=4,r=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this,a=this.buffer.length;if(a==0&&o.parent&&(a=o.bufferBase-o.parent.bufferBase,o=o.parent),a>0&&o.buffer[a-4]==0&&o.buffer[a-1]>-1){if(t==n)return;if(o.buffer[a-2]>=t){o.buffer[a-2]=n;return}}}if(!r||this.pos==n)this.buffer.push(e,t,n,s);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0)for(;o>0&&this.buffer[o-2]>n;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,s>4&&(s-=4);this.buffer[o]=e,this.buffer[o+1]=t,this.buffer[o+2]=n,this.buffer[o+3]=s}}shift(e,t,n,s){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=s,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,s,4);else{let r=e,{parser:o}=this.p;(s>this.pos||t<=o.maxNode)&&(this.pos=s,o.stateFlag(r,1)||(this.reducePos=s)),this.pushState(r,n),this.shiftContext(t,n),t<=o.maxNode&&this.buffer.push(t,n,s,4)}}apply(e,t,n,s){e&65536?this.reduce(e):this.shift(e,t,n,s)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let s=this.pos;this.reducePos=this.pos=s+e.length,this.pushState(t,s),this.buffer.push(n,s,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),s=e.bufferBase+t;for(;e&&s==e.bufferBase;)e=e.parent;return new po(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,s,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new lC(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(n==0)return!1;if(!(n&65536))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let s=[];for(let r=0,o;r<t.length;r+=2)(o=t[r+1])!=this.state&&this.p.parser.hasAction(o,e)&&s.push(t[r],o);if(this.stack.length<120)for(let r=0;s.length<8&&r<t.length;r+=2){let o=t[r+1];s.some((a,c)=>c&1&&a==o)||s.push(t[r],o)}t=s}let n=[];for(let s=0;s<t.length&&n.length<4;s+=2){let r=t[s+1];if(r==this.state)continue;let o=this.split();o.pushState(r,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(t[s],this.pos),o.reducePos=this.pos,o.score-=200,n.push(o)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(!(t&65536))return!1;if(!e.validAction(this.state,t)){let n=t>>19,s=t&65535,r=this.stack.length-n*3;if(r<0||e.getGoto(this.stack[r],s,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;t=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(s,r)=>{if(!t.includes(s))return t.push(s),e.allActions(s,o=>{if(!(o&393216))if(o&65536){let a=(o>>19)-r;if(a>1){let c=o&65535,h=this.stack.length-a*3;if(h>=0&&e.getGoto(this.stack[h],c,!1)>=0)return a<<19|65536|c}}else{let a=n(o,r+1);if(a!=null)return a}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new oh(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class oh{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class lC{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let s=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=s}}class mo{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new mo(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new mo(this.stack,this.pos,this.index)}}function rn(i,e=Uint16Array){if(typeof i!="string")return i;let t=null;for(let n=0,s=0;n<i.length;){let r=0;for(;;){let o=i.charCodeAt(n++),a=!1;if(o==126){r=65535;break}o>=92&&o--,o>=34&&o--;let c=o-32;if(c>=46&&(c-=46,a=!0),r+=c,a)break;r*=46}t?t[s++]=r:t=new e(r)}return t}class Hr{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const lh=new Hr;class aC{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=lh,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,s=this.rangeIndex,r=this.pos+e;for(;r<n.from;){if(!s)return null;let o=this.ranges[--s];r-=n.from-o.to,n=o}for(;t<0?r>n.to:r>=n.to;){if(s==this.ranges.length-1)return null;let o=this.ranges[++s];r+=o.from-n.to,n=o}return r}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,s;if(t>=0&&t<this.chunk.length)n=this.pos+e,s=this.chunk.charCodeAt(t);else{let r=this.resolveOffset(e,1);if(r==null)return-1;if(n=r,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)s=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let o=this.rangeIndex,a=this.range;for(;a.to<=n;)a=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-n)),s=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),s}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(n==null||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=lh,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let s of this.ranges){if(s.from>=t)break;s.to>e&&(n+=this.input.read(Math.max(s.from,e),Math.min(s.to,t)))}return n}}class Ci{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;ef(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}Ci.prototype.contextual=Ci.prototype.fallback=Ci.prototype.extend=!1;class go{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data=typeof e=="string"?rn(e):e}token(e,t){let n=e.pos,s=0;for(;;){let r=e.next<0,o=e.resolveOffset(1,1);if(ef(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(r||s++,o==null)break;e.reset(o,e.token)}s&&(e.reset(n,e.token),e.acceptToken(this.elseToken,s))}}go.prototype.contextual=Ci.prototype.fallback=Ci.prototype.extend=!1;class lt{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function ef(i,e,t,n,s,r){let o=0,a=1<<n,{dialect:c}=t.p.parser;e:for(;a&i[o];){let h=i[o+1];for(let p=o+3;p<h;p+=2)if((i[p+1]&a)>0){let m=i[p];if(c.allows(m)&&(e.token.value==-1||e.token.value==m||cC(m,e.token.value,s,r))){e.acceptToken(m);break}}let u=e.next,d=0,f=i[o+2];if(e.next<0&&f>d&&i[h+f*3-3]==65535){o=i[h+f*3-1];continue e}for(;d<f;){let p=d+f>>1,m=h+p+(p<<1),g=i[m],y=i[m+1]||65536;if(u<g)f=p;else if(u>=y)d=p+1;else{o=i[m+2],e.advance();continue e}}break}}function ah(i,e,t){for(let n=e,s;(s=i[n])!=65535;n++)if(s==t)return n-e;return-1}function cC(i,e,t,n){let s=ah(t,n,e);return s<0||ah(t,n,i)<s}const Ie=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let al=null;function ch(i,e,t){let n=i.cursor(J.IncludeAnonymous);for(n.moveTo(e);;)if(!(t<0?n.childBefore(e):n.childAfter(e)))for(;;){if((t<0?n.to<e:n.from>e)&&!n.type.isError)return t<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(i.length,Math.max(n.from+1,e+25));if(t<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return t<0?0:i.length}}let hC=class{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?ch(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?ch(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],s=this.index[t];if(s==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let r=n.children[s],o=this.start[t]+n.positions[s];if(o>e)return this.nextStart=o,null;if(r instanceof U){if(o==e){if(o<this.safeFrom)return null;let a=o+r.length;if(a<=this.safeTo){let c=r.prop(D.lookAhead);if(!c||a+c<this.fragment.to)return r}}this.index[t]++,o+r.length>=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+r.length}}};class uC{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new Hr)}getActions(e){let t=0,n=null,{parser:s}=e.p,{tokenizers:r}=s,o=s.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,c=0;for(let h=0;h<r.length;h++){if(!(1<<h&o))continue;let u=r[h],d=this.tokens[h];if(!(n&&!u.fallback)&&((u.contextual||d.start!=e.pos||d.mask!=o||d.context!=a)&&(this.updateCachedToken(d,u,e),d.mask=o,d.context=a),d.lookAhead>d.end+25&&(c=Math.max(d.lookAhead,c)),d.value!=0)){let f=t;if(d.extended>-1&&(t=this.addActions(e,d.extended,d.end,t)),t=this.addActions(e,d.value,d.end,t),!u.extend&&(n=d,t>f))break}}for(;this.actions.length>t;)this.actions.pop();return c&&e.setLookAhead(c),!n&&e.pos==this.stream.end&&(n=new Hr,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new Hr,{pos:n,p:s}=e;return t.start=n,t.end=Math.min(n+1,s.stream.end),t.value=n==s.stream.end?s.parser.eofTerm:0,t}updateCachedToken(e,t,n){let s=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(s,e),n),e.value>-1){let{parser:r}=n.p;for(let o=0;o<r.specialized.length;o++)if(r.specialized[o]==e.value){let a=r.specializers[o](this.stream.read(e.start,e.end),n);if(a>=0&&n.p.parser.dialect.allows(a>>1)){a&1?e.extended=a>>1:e.value=a>>1;break}}}else e.value=0,e.end=this.stream.clipPos(s+1)}putAction(e,t,n,s){for(let r=0;r<s;r+=3)if(this.actions[r]==e)return s;return this.actions[s++]=e,this.actions[s++]=t,this.actions[s++]=n,s}addActions(e,t,n,s){let{state:r}=e,{parser:o}=e.p,{data:a}=o;for(let c=0;c<2;c++)for(let h=o.stateSlot(r,c?2:1);;h+=3){if(a[h]==65535)if(a[h+1]==1)h=xt(a,h+2);else{s==0&&a[h+1]==2&&(s=this.putAction(xt(a,h+2),t,n,s));break}a[h]==t&&(s=this.putAction(xt(a,h+1),t,n,s))}return s}}class dC{constructor(e,t,n,s){this.parser=e,this.input=t,this.ranges=s,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new aC(t,s),this.tokens=new uC(e,this.stream),this.topTerm=e.top[1];let{from:r}=s[0];this.stacks=[po.start(this,e.top[0],r)],this.fragments=n.length&&this.stream.end-r>e.bufferLength*4?new hC(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,n=this.stacks=[],s,r;if(this.bigReductionCount>300&&e.length==1){let[o]=e;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<e.length;o++){let a=e[o];for(;;){if(this.tokens.mainToken=null,a.pos>t)n.push(a);else{if(this.advanceStack(a,n,e))continue;{s||(s=[],r=[]),s.push(a);let c=this.tokens.getMainToken(a);r.push(c.value,c.end)}}break}}if(!n.length){let o=s&&pC(s);if(o)return this.stackToTree(o);if(this.parser.strict)throw new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&s){let o=this.stoppedAt!=null&&s[0].pos>this.stoppedAt?s[0]:this.runRecovery(s,r,n);if(o)return this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(n.length>o)for(n.sort((a,c)=>c.score-a.score);n.length>o;)n.pop();n.some(a=>a.reducePos>t)&&this.recovering--}else if(n.length>1){e:for(let o=0;o<n.length-1;o++){let a=n[o];for(let c=o+1;c<n.length;c++){let h=n[c];if(a.sameState(h)||a.buffer.length>500&&h.buffer.length>500)if((a.score-h.score||a.buffer.length-h.buffer.length)>0)n.splice(c--,1);else{n.splice(o--,1);continue e}}}n.length>12&&n.splice(12,n.length-12)}this.minStackPos=n[0].pos;for(let o=1;o<n.length;o++)n[o].pos<this.minStackPos&&(this.minStackPos=n[o].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let s=e.pos,{parser:r}=this,o=Ie?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&s>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let h=e.curContext&&e.curContext.tracker.strict,u=h?e.curContext.hash:0;for(let d=this.fragments.nodeAt(s);d;){let f=this.parser.nodeSet.types[d.type.id]==d.type?r.getGoto(e.state,d.type.id):-1;if(f>-1&&d.length&&(!h||(d.prop(D.contextHash)||0)==u))return e.useNode(d,f),!0;if(!(d instanceof U)||d.children.length==0||d.positions[0]>0)break;let p=d.children[0];if(p instanceof U&&d.positions[0]==0)d=p;else break}}let a=r.stateSlot(e.state,4);if(a>0)return e.reduce(a),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let c=this.tokens.getActions(e);for(let h=0;h<c.length;){let u=c[h++],d=c[h++],f=c[h++],p=h==c.length||!n,m=p?e:e.split(),g=this.tokens.mainToken;if(m.apply(u,d,g?g.start:m.pos,f),p)return!0;m.pos>s?t.push(m):n.push(m)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return hh(e,t),!0}}runRecovery(e,t,n){let s=null,r=!1;for(let o=0;o<e.length;o++){let a=e[o],c=t[o<<1],h=t[(o<<1)+1],u=Ie?this.stackID(a)+" -> ":"";if(a.deadEnd&&(r||(r=!0,a.restart(),this.advanceFully(a,n))))continue;let d=a.split(),f=u;for(let p=0;d.forceReduce()&&p<10&&!this.advanceFully(d,n);p++)Ie&&(f=this.stackID(d)+" -> ");for(let p of a.recoverByInsert(c))this.advanceFully(p,n);this.stream.end>a.pos?(h==a.pos&&(h++,c=0),a.recoverByDelete(c,h),hh(a,n)):(!s||s.score<a.score)&&(s=a)}return s}stackToTree(e){return e.close(),U.build({buffer:mo.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(al||(al=new WeakMap)).get(e);return t||al.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function hh(i,e){for(let t=0;t<e.length;t++){let n=e[t];if(n.pos==i.pos&&n.sameState(i)){e[t].score<i.score&&(e[t]=i);return}}e.push(i)}class fC{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}}const cl=i=>i;class tf{constructor(e){this.start=e.start,this.shift=e.shift||cl,this.reduce=e.reduce||cl,this.reuse=e.reuse||cl,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class li extends lc{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let a=0;a<e.repeatNodeCount;a++)t.push("");let n=Object.keys(e.topRules).map(a=>e.topRules[a][1]),s=[];for(let a=0;a<t.length;a++)s.push([]);function r(a,c,h){s[a].push([c,c.deserialize(String(h))])}if(e.nodeProps)for(let a of e.nodeProps){let c=a[0];typeof c=="string"&&(c=D[c]);for(let h=1;h<a.length;){let u=a[h++];if(u>=0)r(u,c,a[h++]);else{let d=a[h+-u];for(let f=-u;f>0;f--)r(a[h++],c,d);h++}}}this.nodeSet=new Ln(t.map((a,c)=>pe.define({name:c>=this.minRepeatTerm?void 0:a,id:c,props:s[c],top:n.indexOf(c)>-1,error:c==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(c)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=qd;let o=rn(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(uh),this.states=rn(e.states,Uint32Array),this.data=rn(e.stateData),this.goto=rn(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(a=>typeof a=="number"?new Ci(o,a):a),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let s=new dC(this,e,t,n);for(let r of this.wrappers)s=r(s,e,t,n);return s}getGoto(e,t,n=!1){let s=this.goto;if(t>=s[0])return-1;for(let r=s[t+1];;){let o=s[r++],a=o&1,c=s[r++];if(a&&n)return c;for(let h=r+(o>>1);r<h;r++)if(s[r]==e)return c;if(a)return-1}}hasAction(e,t){let n=this.data;for(let s=0;s<2;s++)for(let r=this.stateSlot(e,s?2:1),o;;r+=3){if((o=n[r])==65535)if(n[r+1]==1)o=n[r=xt(n,r+2)];else{if(n[r+1]==2)return xt(n,r+2);break}if(o==t||o==0)return xt(n,r+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,n=>n==t?!0:null)}allActions(e,t){let n=this.stateSlot(e,4),s=n?t(n):void 0;for(let r=this.stateSlot(e,1);s==null;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=xt(this.data,r+2);else break;s=t(xt(this.data,r+1))}return s}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=xt(this.data,n+2);else break;if(!(this.data[n+2]&1)){let s=this.data[n+1];t.some((r,o)=>o&1&&r==s)||t.push(this.data[n],s)}}return t}configure(e){let t=Object.assign(Object.create(li.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(n=>{let s=e.tokenizers.find(r=>r.from==n);return s?s.to:n})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,s)=>{let r=e.specializers.find(a=>a.from==n.external);if(!r)return n;let o=Object.assign(Object.assign({},n),{external:r.to});return t.specializers[s]=uh(o),o})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let r of e.split(" ")){let o=t.indexOf(r);o>=0&&(n[o]=!0)}let s=null;for(let r=0;r<t.length;r++)if(!n[r])for(let o=this.dialects[t[r]],a;(a=this.data[o++])!=65535;)(s||(s=new Uint8Array(this.maxTerm+1)))[a]=1;return new fC(e,n,s)}static deserialize(e){return new li(e)}}function xt(i,e){return i[e]|i[e+1]<<16}function pC(i){let e=null;for(let t of i){let n=t.p.stoppedAt;(t.pos==t.p.stream.end||n!=null&&t.pos>n)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.score<t.score)&&(e=t)}return e}function uh(i){if(i.external){let e=i.extend?1:0;return(t,n)=>i.external(t,n)<<1|e}return i.get}let mC=0;class it{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=mC++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let t=new it([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new Oo;return t=>t.modified.indexOf(e)>-1?t:Oo.get(t.base||t,t.modified.concat(e).sort((n,s)=>n.id-s.id))}}let gC=0;class Oo{constructor(){this.instances=[],this.id=gC++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(a=>a.base==e&&OC(t,a.modified));if(n)return n;let s=[],r=new it(s,e,t);for(let a of t)a.instances.push(r);let o=yC(t);for(let a of e.set)if(!a.modified.length)for(let c of o)s.push(Oo.get(a,c));return r}}function OC(i,e){return i.length==e.length&&i.every((t,n)=>t==e[n])}function yC(i){let e=[[]];for(let t=0;t<i.length;t++)for(let n=0,s=e.length;n<s;n++)e.push(e[n].concat(i[t]));return e.sort((t,n)=>n.length-t.length)}function pi(i){let e=Object.create(null);for(let t in i){let n=i[t];Array.isArray(n)||(n=[n]);for(let s of t.split(" "))if(s){let r=[],o=2,a=s;for(let d=0;;){if(a=="..."&&d>0&&d+3==s.length){o=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!f)throw new RangeError("Invalid path: "+s);if(r.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),d+=f[0].length,d==s.length)break;let p=s[d++];if(d==s.length&&p=="!"){o=0;break}if(p!="/")throw new RangeError("Invalid path: "+s);a=s.slice(d)}let c=r.length-1,h=r[c];if(!h)throw new RangeError("Invalid path: "+s);let u=new yo(n,o,c>0?r.slice(0,c):null);e[h]=u.sort(e[h])}}return nf.add(e)}const nf=new D;class yo{constructor(e,t,n,s){this.tags=e,this.mode=t,this.context=n,this.next=s}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}yo.empty=new yo([],2,null);function sf(i,e){let t=Object.create(null);for(let r of i)if(!Array.isArray(r.tag))t[r.tag.id]=r.class;else for(let o of r.tag)t[o.id]=r.class;let{scope:n,all:s=null}=e||{};return{style:r=>{let o=s;for(let a of r)for(let c of a.set){let h=t[c.id];if(h){o=o?o+" "+h:h;break}}return o},scope:n}}function bC(i,e){let t=null;for(let n of i){let s=n.style(e);s&&(t=t?t+" "+s:s)}return t}function kC(i,e,t,n=0,s=i.length){let r=new wC(n,Array.isArray(e)?e:[e],t);r.highlightRange(i.cursor(),n,s,"",r.highlighters),r.flush(s)}class wC{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,s,r){let{type:o,from:a,to:c}=e;if(a>=n||c<=t)return;o.isTop&&(r=this.highlighters.filter(p=>!p.scope||p.scope(o)));let h=s,u=vC(e)||yo.empty,d=bC(r,u.tags);if(d&&(h&&(h+=" "),h+=d,u.mode==1&&(s+=(s?" ":"")+d)),this.startSpan(Math.max(t,a),h),u.opaque)return;let f=e.tree&&e.tree.prop(D.mounted);if(f&&f.overlay){let p=e.node.enter(f.overlay[0].from+a,1),m=this.highlighters.filter(y=>!y.scope||y.scope(f.tree.type)),g=e.firstChild();for(let y=0,b=a;;y++){let k=y<f.overlay.length?f.overlay[y]:null,w=k?k.from+a:c,S=Math.max(t,b),v=Math.min(n,w);if(S<v&&g)for(;e.from<v&&(this.highlightRange(e,S,v,s,r),this.startSpan(Math.min(v,e.to),h),!(e.to>=w||!e.nextSibling())););if(!k||w>n)break;b=k.to+a,b>t&&(this.highlightRange(p.cursor(),Math.max(t,k.from+a),Math.min(n,b),"",m),this.startSpan(Math.min(n,b),h))}g&&e.parent()}else if(e.firstChild()){f&&(s="");do if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,s,r),this.startSpan(Math.min(n,e.to),h)}while(e.nextSibling());e.parent()}}}function vC(i){let e=i.type.prop(nf);for(;e&&e.context&&!i.matchContext(e.context);)e=e.next;return e||null}const Q=it.define,Hn=Q(),Dt=Q(),dh=Q(Dt),fh=Q(Dt),Nt=Q(),Kn=Q(Nt),hl=Q(Nt),ft=Q(),Jt=Q(ft),ht=Q(),ut=Q(),Jl=Q(),qi=Q(Jl),Jn=Q(),O={comment:Hn,lineComment:Q(Hn),blockComment:Q(Hn),docComment:Q(Hn),name:Dt,variableName:Q(Dt),typeName:dh,tagName:Q(dh),propertyName:fh,attributeName:Q(fh),className:Q(Dt),labelName:Q(Dt),namespace:Q(Dt),macroName:Q(Dt),literal:Nt,string:Kn,docString:Q(Kn),character:Q(Kn),attributeValue:Q(Kn),number:hl,integer:Q(hl),float:Q(hl),bool:Q(Nt),regexp:Q(Nt),escape:Q(Nt),color:Q(Nt),url:Q(Nt),keyword:ht,self:Q(ht),null:Q(ht),atom:Q(ht),unit:Q(ht),modifier:Q(ht),operatorKeyword:Q(ht),controlKeyword:Q(ht),definitionKeyword:Q(ht),moduleKeyword:Q(ht),operator:ut,derefOperator:Q(ut),arithmeticOperator:Q(ut),logicOperator:Q(ut),bitwiseOperator:Q(ut),compareOperator:Q(ut),updateOperator:Q(ut),definitionOperator:Q(ut),typeOperator:Q(ut),controlOperator:Q(ut),punctuation:Jl,separator:Q(Jl),bracket:qi,angleBracket:Q(qi),squareBracket:Q(qi),paren:Q(qi),brace:Q(qi),content:ft,heading:Jt,heading1:Q(Jt),heading2:Q(Jt),heading3:Q(Jt),heading4:Q(Jt),heading5:Q(Jt),heading6:Q(Jt),contentSeparator:Q(ft),list:Q(ft),quote:Q(ft),emphasis:Q(ft),strong:Q(ft),link:Q(ft),monospace:Q(ft),strikethrough:Q(ft),inserted:Q(),deleted:Q(),changed:Q(),invalid:Q(),meta:Jn,documentMeta:Q(Jn),annotation:Q(Jn),processingInstruction:Q(Jn),definition:it.defineModifier(),constant:it.defineModifier(),function:it.defineModifier(),standard:it.defineModifier(),local:it.defineModifier(),special:it.defineModifier()};sf([{tag:O.link,class:"tok-link"},{tag:O.heading,class:"tok-heading"},{tag:O.emphasis,class:"tok-emphasis"},{tag:O.strong,class:"tok-strong"},{tag:O.keyword,class:"tok-keyword"},{tag:O.atom,class:"tok-atom"},{tag:O.bool,class:"tok-bool"},{tag:O.url,class:"tok-url"},{tag:O.labelName,class:"tok-labelName"},{tag:O.inserted,class:"tok-inserted"},{tag:O.deleted,class:"tok-deleted"},{tag:O.literal,class:"tok-literal"},{tag:O.string,class:"tok-string"},{tag:O.number,class:"tok-number"},{tag:[O.regexp,O.escape,O.special(O.string)],class:"tok-string2"},{tag:O.variableName,class:"tok-variableName"},{tag:O.local(O.variableName),class:"tok-variableName tok-local"},{tag:O.definition(O.variableName),class:"tok-variableName tok-definition"},{tag:O.special(O.variableName),class:"tok-variableName2"},{tag:O.definition(O.propertyName),class:"tok-propertyName tok-definition"},{tag:O.typeName,class:"tok-typeName"},{tag:O.namespace,class:"tok-namespace"},{tag:O.className,class:"tok-className"},{tag:O.macroName,class:"tok-macroName"},{tag:O.propertyName,class:"tok-propertyName"},{tag:O.operator,class:"tok-operator"},{tag:O.comment,class:"tok-comment"},{tag:O.meta,class:"tok-meta"},{tag:O.invalid,class:"tok-invalid"},{tag:O.punctuation,class:"tok-punctuation"}]);const SC=309,ph=1,CC=2,xC=3,$C=310,_C=312,PC=313,QC=4,VC=5,TC=0,ea=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],rf=125,EC=59,ta=47,ZC=42,AC=43,BC=45,DC=60,NC=44,RC=new tf({start:!1,shift(i,e){return e==QC||e==VC||e==_C?i:e==PC},strict:!1}),IC=new lt((i,e)=>{let{next:t}=i;(t==rf||t==-1||e.context)&&i.acceptToken($C)},{contextual:!0,fallback:!0}),LC=new lt((i,e)=>{let{next:t}=i,n;ea.indexOf(t)>-1||t==ta&&((n=i.peek(1))==ta||n==ZC)||t!=rf&&t!=EC&&t!=-1&&!e.context&&i.acceptToken(SC)},{contextual:!0}),MC=new lt((i,e)=>{let{next:t}=i;if((t==AC||t==BC)&&(i.advance(),t==i.next)){i.advance();let n=!e.context&&e.canShift(ph);i.acceptToken(n?ph:CC)}},{contextual:!0});function ul(i,e){return i>=65&&i<=90||i>=97&&i<=122||i==95||i>=192||!e&&i>=48&&i<=57}const XC=new lt((i,e)=>{if(i.next!=DC||!e.dialectEnabled(TC)||(i.advance(),i.next==ta))return;let t=0;for(;ea.indexOf(i.next)>-1;)i.advance(),t++;if(ul(i.next,!0)){for(i.advance(),t++;ul(i.next,!1);)i.advance(),t++;for(;ea.indexOf(i.next)>-1;)i.advance(),t++;if(i.next==NC)return;for(let n=0;;n++){if(n==7){if(!ul(i.next,!0))return;break}if(i.next!="extends".charCodeAt(n))break;i.advance(),t++}}i.acceptToken(xC,-t)}),jC=pi({"get set async static":O.modifier,"for while do if else switch try catch finally return throw break continue default case":O.controlKeyword,"in of await yield void typeof delete instanceof":O.operatorKeyword,"let var const using function class extends":O.definitionKeyword,"import export from":O.moduleKeyword,"with debugger as new":O.keyword,TemplateString:O.special(O.string),super:O.atom,BooleanLiteral:O.bool,this:O.self,null:O.null,Star:O.modifier,VariableName:O.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":O.function(O.variableName),VariableDefinition:O.definition(O.variableName),Label:O.labelName,PropertyName:O.propertyName,PrivatePropertyName:O.special(O.propertyName),"CallExpression/MemberExpression/PropertyName":O.function(O.propertyName),"FunctionDeclaration/VariableDefinition":O.function(O.definition(O.variableName)),"ClassDeclaration/VariableDefinition":O.definition(O.className),PropertyDefinition:O.definition(O.propertyName),PrivatePropertyDefinition:O.definition(O.special(O.propertyName)),UpdateOp:O.updateOperator,"LineComment Hashbang":O.lineComment,BlockComment:O.blockComment,Number:O.number,String:O.string,Escape:O.escape,ArithOp:O.arithmeticOperator,LogicOp:O.logicOperator,BitOp:O.bitwiseOperator,CompareOp:O.compareOperator,RegExp:O.regexp,Equals:O.definitionOperator,Arrow:O.function(O.punctuation),": Spread":O.punctuation,"( )":O.paren,"[ ]":O.squareBracket,"{ }":O.brace,"InterpolationStart InterpolationEnd":O.special(O.brace),".":O.derefOperator,", ;":O.separator,"@":O.meta,TypeName:O.typeName,TypeDefinition:O.definition(O.typeName),"type enum interface implements namespace module declare":O.definitionKeyword,"abstract global Privacy readonly override":O.modifier,"is keyof unique infer":O.operatorKeyword,JSXAttributeValue:O.attributeValue,JSXText:O.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":O.angleBracket,"JSXIdentifier JSXNameSpacedName":O.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":O.attributeName,"JSXBuiltin/JSXIdentifier":O.standard(O.tagName)}),zC={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},WC={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},YC={__proto__:null,"<":143},FC=li.deserialize({version:14,states:"$<UO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ08SO'#ChO+RO!bO'#CiO+aO#tO'#CiO+oO?MpO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DyO0fQ^O'#EROOQ07b'#EZ'#EZO1PQWO'#EWOOQO'#El'#ElOOQO'#Ie'#IeO1XQWO'#GmO1dQWO'#EkO1iQWO'#EkO3kQ08SO'#JiO6[Q08SO'#JjO6xQWO'#FZO6}Q&jO'#FqOOQ07b'#Fc'#FcO7YO,YO'#FcO7hQ7[O'#FxO9UQWO'#FwOOQ07b'#Jj'#JjOOQ07`'#Ji'#JiO9ZQWO'#GqOOQU'#KU'#KUO9fQWO'#IRO9kQ07hO'#ISOOQU'#JW'#JWOOQU'#IW'#IWQ`Q^OOO`Q^OOO%[Q^O'#DqO9sQ^O'#D}O9zQ^O'#EPO9aQWO'#GmO:RQ7[O'#CnO:aQWO'#EjO:lQWO'#EuO:qQ7[O'#FbO;`QWO'#GmOOQO'#KV'#KVO;eQWO'#KVO;sQWO'#GuO;sQWO'#GvO;sQWO'#GxO9aQWO'#G{O<jQWO'#HOO>RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#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3i:uQ3j:vQ3k.sQ3n:{Q3o;YQ3t:wQ4k0aQ4s0qQ6U;ZQ6[2mQ6a2sQ6o3ZQ6p;[Q6y;^Q6z;eQ7r5WQ8a6SQ8e6]Q8n;fQ8t;oQ8u;pQ9k8gQ9{9WQ:S9iQ:e#RR<P<]R#ZWR'U!eY!tQ'Z-Y1[5]S'Q!e-QQ'f!rS'p!u!xS'r!y5_S,}'R'YS-i'g'hQ-k'iQ2b-WR2p-jR(t#wR(w#xQ!fQT-X'Z-Y]!qQ!r'Z-Y1[5]Q#o]R'd:dT#jZ%bS#iZ%bS%hm,dU(a#g#h#kS-}(b(cQ.R(dQ0c+TQ2u.OU2v.P.Q.SS6c2w2xR8h6d`#]W#V#Y%e'}(W+Q-xr#fZm#g#h#k%b(b(c(d+T.O.P.Q.S2w2x6dQ1q,dQ2X,zQ6Q2PQ8`6RT;w'S+RT#`W%eS#_W%eS(O#V(WS(T#Y+QS-P'S+RT-s'}-xT'X!e%fQ$kfR)s$pT)h$k)iR3r.zT*X$x*ZR*a${Q0g+]Q2z.ZQ5`1^Q6h3OQ7z5cQ8k6gQ9Y7yQ9l8jQ9}9[Q:V9nQ:[:OR:_:WnqOXst!Z#c%j&m&o&p&r,h,m1w1zQ&g!VR,]&dtmOXst!U!V!Z#c%j&d&m&o&p&r,h,m1w1zR,d&jT%im,dR1W+|R,[&bQ&Q|R+t&RR+j%{T&k!W&nT&l!W&nT1y,m1z",nodeNames:"⚠ ArithOp ArithOp JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:RC,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[jC],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$<k#p#q$=a#q#r$>q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'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^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(Z~~",141,332),new go("j~RQYZXz{^~^O'x~~aP!P!Qd~iO'y~~",25,315)],topRules:{Script:[0,6],SingleExpression:[1,269],SingleClassItem:[2,270]},dialects:{jsx:0,ts:14614},dynamicPrecedences:{69:1,79:1,81:1,165:1,193:1},specialized:[{term:319,get:i=>zC[i]||-1},{term:334,get:i=>WC[i]||-1},{term:70,get:i=>YC[i]||-1}],tokenPrec:14638});class q{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=Ei(this,e,t);let s=[];return this.decompose(0,e,s,2),n.length&&n.decompose(0,n.length,s,3),this.decompose(t,this.length,s,1),pt.from(s,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Ei(this,e,t);let n=[];return this.decompose(e,t,n,0),pt.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),s=new dn(this),r=new dn(e);for(let o=t,a=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(a+=s.value.length,s.done||a>=n)return!0}}iter(e=1){return new dn(this,e)}iterRange(e,t=this.length){return new of(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;n=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new lf(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?q.empty:e.length<=32?new ce(e):pt.from(ce.split(e,[]))}}class ce extends q{constructor(e,t=qC(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,s){for(let r=0;;r++){let o=this.text[r],a=s+o.length;if((t?n:a)>=e)return new UC(s,a,n,o);s=a+1,n++}}decompose(e,t,n,s){let r=e<=0&&t>=this.length?this:new ce(mh(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=n.pop(),a=Kr(r.text,o.text.slice(),0,r.length);if(a.length<=32)n.push(new ce(a,o.length+r.length));else{let c=a.length>>1;n.push(new ce(a.slice(0,c)),new ce(a.slice(c)))}}else n.push(r)}replace(e,t,n){if(!(n instanceof ce))return super.replace(e,t,n);[e,t]=Ei(this,e,t);let s=Kr(this.text,Kr(n.text,mh(this.text,0,e)),t),r=this.length+n.length-(t-e);return s.length<=32?new ce(s,r):pt.from(ce.split(s,[]),r)}sliceString(e,t=this.length,n=`
2
+ `){[e,t]=Ei(this,e,t);let s="";for(let r=0,o=0;r<=t&&o<this.text.length;o++){let a=this.text[o],c=r+a.length;r>e&&o&&(s+=n),e<c&&t>r&&(s+=a.slice(Math.max(0,e-r),t-r)),r=c+1}return s}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],s=-1;for(let r of e)n.push(r),s+=r.length+1,n.length==32&&(t.push(new ce(n,s)),n=[],s=-1);return s>-1&&t.push(new ce(n,s)),t}}class pt extends q{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,s){for(let r=0;;r++){let o=this.children[r],a=s+o.length,c=n+o.lines-1;if((t?c:a)>=e)return o.lineInner(e,t,n,s);s=a+1,n=c+1}}decompose(e,t,n,s){for(let r=0,o=0;o<=t&&r<this.children.length;r++){let a=this.children[r],c=o+a.length;if(e<=c&&t>=o){let h=s&((o<=e?1:0)|(c>=t?2:0));o>=e&&c<=t&&!h?n.push(a):a.decompose(e-o,t-o,n,h)}o=c+1}}replace(e,t,n){if([e,t]=Ei(this,e,t),n.lines<this.lines)for(let s=0,r=0;s<this.children.length;s++){let o=this.children[s],a=r+o.length;if(e>=r&&t<=a){let c=o.replace(e-r,t-r,n),h=this.lines-o.lines+c.lines;if(c.lines<h>>4&&c.lines>h>>6){let u=this.children.slice();return u[s]=c,new pt(u,this.length-(t-e)+n.length)}return super.replace(r,a,c)}r=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n=`
3
+ `){[e,t]=Ei(this,e,t);let s="";for(let r=0,o=0;r<this.children.length&&o<=t;r++){let a=this.children[r],c=o+a.length;o>e&&r&&(s+=n),e<c&&t>o&&(s+=a.sliceString(e-o,t-o,n)),o=c+1}return s}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof pt))return 0;let n=0,[s,r,o,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;s+=t,r+=t){if(s==o||r==a)return n;let c=this.children[s],h=e.children[r];if(c!=h)return n+c.scanIdentical(h,t);n+=c.length+1}}static from(e,t=e.reduce((n,s)=>n+s.length+1,-1)){let n=0;for(let p of e)n+=p.lines;if(n<32){let p=[];for(let m of e)m.flatten(p);return new ce(p,t)}let s=Math.max(32,n>>5),r=s<<1,o=s>>1,a=[],c=0,h=-1,u=[];function d(p){let m;if(p.lines>r&&p instanceof pt)for(let g of p.children)d(g);else p.lines>o&&(c>o||!c)?(f(),a.push(p)):p instanceof ce&&c&&(m=u[u.length-1])instanceof ce&&p.lines+m.lines<=32?(c+=p.lines,h+=p.length+1,u[u.length-1]=new ce(m.text.concat(p.text),m.length+1+p.length)):(c+p.lines>s&&f(),c+=p.lines,h+=p.length+1,u.push(p))}function f(){c!=0&&(a.push(u.length==1?u[0]:pt.from(u,h)),h=-1,c=u.length=0)}for(let p of e)d(p);return f(),a.length==1?a[0]:new pt(a,t)}}q.empty=new ce([""],0);function qC(i){let e=-1;for(let t of i)e+=t.length+1;return e}function Kr(i,e,t=0,n=1e9){for(let s=0,r=0,o=!0;r<i.length&&s<=n;r++){let a=i[r],c=s+a.length;c>=t&&(c>n&&(a=a.slice(0,n-s)),s<t&&(a=a.slice(t-s)),o?(e[e.length-1]+=a,o=!1):e.push(a)),s=c+1}return e}function mh(i,e,t){return Kr(i,[""],e,t)}class dn{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof ce?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,s=this.nodes[n],r=this.offsets[n],o=r>>1,a=s instanceof ce?s.text.length:s.children.length;if(o==(t>0?a:0)){if(n==0)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=`
4
+ `,this;e--}else if(s instanceof ce){let c=s.text[o+(t<0?-1:0)];if(this.offsets[n]+=t,c.length>Math.max(0,e))return this.value=e==0?c:t>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=s.children[o+(t<0?-1:0)];e>c.length?(e-=c.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(c),this.offsets.push(t>0?1:(c instanceof ce?c.text.length:c.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class of{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new dn(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=n?s:t<0?s.slice(s.length-n):s.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class lf{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:s}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(q.prototype[Symbol.iterator]=function(){return this.iter()},dn.prototype[Symbol.iterator]=of.prototype[Symbol.iterator]=lf.prototype[Symbol.iterator]=function(){return this});let UC=class{constructor(e,t,n,s){this.from=e,this.to=t,this.number=n,this.text=s}get length(){return this.to-this.from}};function Ei(i,e,t){return e=Math.max(0,Math.min(i.length,e)),[e,Math.max(e,Math.min(i.length,t))]}let xi="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(i=>i?parseInt(i,36):1);for(let i=1;i<xi.length;i++)xi[i]+=xi[i-1];function GC(i){for(let e=1;e<xi.length;e+=2)if(xi[e]>i)return xi[e-1]<=i;return!1}function gh(i){return i>=127462&&i<=127487}const Oh=8205;function ve(i,e,t=!0,n=!0){return(t?af:HC)(i,e,n)}function af(i,e,t){if(e==i.length)return e;e&&cf(i.charCodeAt(e))&&hf(i.charCodeAt(e-1))&&e--;let n=ye(i,e);for(e+=qe(n);e<i.length;){let s=ye(i,e);if(n==Oh||s==Oh||t&&GC(s))e+=qe(s),n=s;else if(gh(s)){let r=0,o=e-2;for(;o>=0&&gh(ye(i,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function HC(i,e,t){for(;e>0;){let n=af(i,e-2,t);if(n<e)return n;e--}return 0}function cf(i){return i>=56320&&i<57344}function hf(i){return i>=55296&&i<56320}function ye(i,e){let t=i.charCodeAt(e);if(!hf(t)||e+1==i.length)return t;let n=i.charCodeAt(e+1);return cf(n)?(t-55296<<10)+(n-56320)+65536:t}function ac(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode((i>>10)+55296,(i&1023)+56320))}function qe(i){return i<65536?1:2}const ia=/\r\n?|\n/;var ke=function(i){return i[i.Simple=0]="Simple",i[i.TrackDel=1]="TrackDel",i[i.TrackBefore=2]="TrackBefore",i[i.TrackAfter=3]="TrackAfter",i}(ke||(ke={}));class bt{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,s=0;t<this.sections.length;){let r=this.sections[t++],o=this.sections[t++];o<0?(e(n,s,r),s+=r):s+=o,n+=r}}iterChangedRanges(e,t=!1){na(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],s=this.sections[t++];s<0?e.push(n,s):e.push(s,n)}return new bt(e)}composeDesc(e){return this.empty?e:e.empty?this:uf(this,e)}mapDesc(e,t=!1){return e.empty?this:sa(this,e,t)}mapPos(e,t=-1,n=ke.Simple){let s=0,r=0;for(let o=0;o<this.sections.length;){let a=this.sections[o++],c=this.sections[o++],h=s+a;if(c<0){if(h>e)return r+(e-s);r+=a}else{if(n!=ke.Simple&&h>=e&&(n==ke.TrackDel&&s<e&&h>e||n==ke.TrackBefore&&s<e||n==ke.TrackAfter&&h>e))return null;if(h>e||h==e&&t<0&&!a)return e==s||t<0?r:r+c;r+=c}s=h}if(e>s)throw new RangeError(`Position ${e} is out of range for changeset of length ${s}`);return r}touchesRange(e,t=e){for(let n=0,s=0;n<this.sections.length&&s<=t;){let r=this.sections[n++],o=this.sections[n++],a=s+r;if(o>=0&&s<=t&&a>=e)return s<e&&a>t?"cover":!0;s=a}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],s=this.sections[t++];e+=(e?" ":"")+n+(s>=0?":"+s:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new bt(e)}static create(e){return new bt(e)}}class fe extends bt{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return na(this,(t,n,s,r,o)=>e=e.replace(s,s+(n-t),o),!1),e}mapDesc(e,t=!1){return sa(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let s=0,r=0;s<t.length;s+=2){let o=t[s],a=t[s+1];if(a>=0){t[s]=a,t[s+1]=o;let c=s>>1;for(;n.length<c;)n.push(q.empty);n.push(o?e.slice(r,r+o):q.empty)}r+=o}return new fe(t,n)}compose(e){return this.empty?e:e.empty?this:uf(this,e,!0)}map(e,t=!1){return e.empty?this:sa(this,e,t,!0)}iterChanges(e,t=!1){na(this,e,t)}get desc(){return bt.create(this.sections)}filter(e){let t=[],n=[],s=[],r=new wn(this);e:for(let o=0,a=0;;){let c=o==e.length?1e9:e[o++];for(;a<c||a==c&&r.len==0;){if(r.done)break e;let u=Math.min(r.len,c-a);xe(s,u,-1);let d=r.ins==-1?-1:r.off==0?r.ins:0;xe(t,u,d),d>0&&It(n,t,r.text),r.forward(u),a+=u}let h=e[o++];for(;a<h;){if(r.done)break e;let u=Math.min(r.len,h-a);xe(t,u,-1),xe(s,u,r.ins==-1?-1:r.off==0?r.ins:0),r.forward(u),a+=u}}return{changes:new fe(t,n),filtered:bt.create(s)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],s=this.sections[t+1];s<0?e.push(n):s==0?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let s=[],r=[],o=0,a=null;function c(u=!1){if(!u&&!s.length)return;o<t&&xe(s,t-o,-1);let d=new fe(s,r);a=a?a.compose(d.map(a)):d,s=[],r=[],o=0}function h(u){if(Array.isArray(u))for(let d of u)h(d);else if(u instanceof fe){if(u.length!=t)throw new RangeError(`Mismatched change set length (got ${u.length}, expected ${t})`);c(),a=a?a.compose(u.map(a)):u}else{let{from:d,to:f=d,insert:p}=u;if(d>f||d<0||f>t)throw new RangeError(`Invalid change range ${d} to ${f} (in doc of length ${t})`);let m=p?typeof p=="string"?q.of(p.split(n||ia)):p:q.empty,g=m.length;if(d==f&&g==0)return;d<o&&c(),d>o&&xe(s,d-o,-1),xe(s,f-d,g),It(r,s,m),o=f}}return h(e),c(!a),a}static empty(e){return new fe(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let s=0;s<e.length;s++){let r=e[s];if(typeof r=="number")t.push(r,-1);else{if(!Array.isArray(r)||typeof r[0]!="number"||r.some((o,a)=>a&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)t.push(r[0],0);else{for(;n.length<s;)n.push(q.empty);n[s]=q.of(r.slice(1)),t.push(r[0],n[s].length)}}}return new fe(t,n)}static createSet(e,t){return new fe(e,t)}}function xe(i,e,t,n=!1){if(e==0&&t<=0)return;let s=i.length-2;s>=0&&t<=0&&t==i[s+1]?i[s]+=e:e==0&&i[s]==0?i[s+1]+=t:n?(i[s]+=e,i[s+1]+=t):i.push(e,t)}function It(i,e,t){if(t.length==0)return;let n=e.length-2>>1;if(n<i.length)i[i.length-1]=i[i.length-1].append(t);else{for(;i.length<n;)i.push(q.empty);i.push(t)}}function na(i,e,t){let n=i.inserted;for(let s=0,r=0,o=0;o<i.sections.length;){let a=i.sections[o++],c=i.sections[o++];if(c<0)s+=a,r+=a;else{let h=s,u=r,d=q.empty;for(;h+=a,u+=c,c&&n&&(d=d.append(n[o-2>>1])),!(t||o==i.sections.length||i.sections[o+1]<0);)a=i.sections[o++],c=i.sections[o++];e(s,h,r,u,d),s=h,r=u}}}function sa(i,e,t,n=!1){let s=[],r=n?[]:null,o=new wn(i),a=new wn(e);for(let c=-1;;)if(o.ins==-1&&a.ins==-1){let h=Math.min(o.len,a.len);xe(s,h,-1),o.forward(h),a.forward(h)}else if(a.ins>=0&&(o.ins<0||c==o.i||o.off==0&&(a.len<o.len||a.len==o.len&&!t))){let h=a.len;for(xe(s,a.ins,-1);h;){let u=Math.min(o.len,h);o.ins>=0&&c<o.i&&o.len<=u&&(xe(s,0,o.ins),r&&It(r,s,o.text),c=o.i),o.forward(u),h-=u}a.next()}else if(o.ins>=0){let h=0,u=o.len;for(;u;)if(a.ins==-1){let d=Math.min(u,a.len);h+=d,u-=d,a.forward(d)}else if(a.ins==0&&a.len<u)u-=a.len,a.next();else break;xe(s,h,c<o.i?o.ins:0),r&&c<o.i&&It(r,s,o.text),c=o.i,o.forward(o.len-u)}else{if(o.done&&a.done)return r?fe.createSet(s,r):bt.create(s);throw new Error("Mismatched change set lengths")}}function uf(i,e,t=!1){let n=[],s=t?[]:null,r=new wn(i),o=new wn(e);for(let a=!1;;){if(r.done&&o.done)return s?fe.createSet(n,s):bt.create(n);if(r.ins==0)xe(n,r.len,0,a),r.next();else if(o.len==0&&!o.done)xe(n,0,o.ins,a),s&&It(s,n,o.text),o.next();else{if(r.done||o.done)throw new Error("Mismatched change set lengths");{let c=Math.min(r.len2,o.len),h=n.length;if(r.ins==-1){let u=o.ins==-1?-1:o.off?0:o.ins;xe(n,c,u,a),s&&u&&It(s,n,o.text)}else o.ins==-1?(xe(n,r.off?0:r.len,c,a),s&&It(s,n,r.textBit(c))):(xe(n,r.off?0:r.len,o.off?0:o.ins,a),s&&!o.off&&It(s,n,o.text));a=(r.ins>c||o.ins>=0&&o.len>c)&&(a||n.length>h),r.forward2(c),o.forward(c)}}}}class wn{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?q.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?q.empty:t[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class si{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let n,s;return this.empty?n=s=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),s=e.mapPos(this.to,-1)),n==this.from&&s==this.to?this:new si(n,s,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return C.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return C.range(this.anchor,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return C.range(e.anchor,e.head)}static create(e,t,n){return new si(e,t,n)}}let C=class Xe{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:Xe.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new Xe([this.main],0)}addRange(e,t=!0){return Xe.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,Xe.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Xe(e.ranges.map(t=>si.fromJSON(t)),e.main)}static single(e,t=e){return new Xe([Xe.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let n=0,s=0;s<e.length;s++){let r=e[s];if(r.empty?r.from<=n:r.from<n)return Xe.normalized(e.slice(),t);n=r.to}return new Xe(e,t)}static cursor(e,t=0,n,s){return si.create(e,e,(t==0?0:t<0?8:16)|(n==null?7:Math.min(6,n))|(s??16777215)<<6)}static range(e,t,n,s){let r=(n??16777215)<<6|(s==null?7:Math.min(6,s));return t<e?si.create(t,e,48|r):si.create(e,t,(t>e?8:0)|r)}static normalized(e,t=0){let n=e[t];e.sort((s,r)=>s.from-r.from),t=e.indexOf(n);for(let s=1;s<e.length;s++){let r=e[s],o=e[s-1];if(r.empty?r.from<=o.to:r.from<o.to){let a=o.from,c=Math.max(r.to,o.to);s<=t&&t--,e.splice(--s,2,r.anchor>r.head?Xe.range(c,a):Xe.range(a,c))}}return new Xe(e,t)}};function df(i,e){for(let t of i.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let cc=0;class E{constructor(e,t,n,s,r){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=s,this.id=cc++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(e={}){return new E(e.combine||(t=>t),e.compareInput||((t,n)=>t===n),e.compare||(e.combine?(t,n)=>t===n:hc),!!e.static,e.enables)}of(e){return new Jr([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Jr(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Jr(e,this,2,t)}from(e,t){return t||(t=n=>n),this.compute([e],n=>t(n.field(e)))}}function hc(i,e){return i==e||i.length==e.length&&i.every((t,n)=>t===e[n])}class Jr{constructor(e,t,n,s){this.dependencies=e,this.facet=t,this.type=n,this.value=s,this.id=cc++}dynamicSlot(e){var t;let n=this.value,s=this.facet.compareInput,r=this.id,o=e[r]>>1,a=this.type==2,c=!1,h=!1,u=[];for(let d of this.dependencies)d=="doc"?c=!0:d=="selection"?h=!0:((t=e[d.id])!==null&&t!==void 0?t:1)&1||u.push(e[d.id]);return{create(d){return d.values[o]=n(d),1},update(d,f){if(c&&f.docChanged||h&&(f.docChanged||f.selection)||ra(d,u)){let p=n(d);if(a?!yh(p,d.values[o],s):!s(p,d.values[o]))return d.values[o]=p,1}return 0},reconfigure:(d,f)=>{let p,m=f.config.address[r];if(m!=null){let g=ko(f,m);if(this.dependencies.every(y=>y instanceof E?f.facet(y)===d.facet(y):y instanceof me?f.field(y,!1)==d.field(y,!1):!0)||(a?yh(p=n(d),g,s):s(p=n(d),g)))return d.values[o]=g,0}else p=n(d);return d.values[o]=p,1}}}}function yh(i,e,t){if(i.length!=e.length)return!1;for(let n=0;n<i.length;n++)if(!t(i[n],e[n]))return!1;return!0}function ra(i,e){let t=!1;for(let n of e)fn(i,n)&1&&(t=!0);return t}function KC(i,e,t){let n=t.map(c=>i[c.id]),s=t.map(c=>c.type),r=n.filter(c=>!(c&1)),o=i[e.id]>>1;function a(c){let h=[];for(let u=0;u<n.length;u++){let d=ko(c,n[u]);if(s[u]==2)for(let f of d)h.push(f);else h.push(d)}return e.combine(h)}return{create(c){for(let h of n)fn(c,h);return c.values[o]=a(c),1},update(c,h){if(!ra(c,r))return 0;let u=a(c);return e.compare(u,c.values[o])?0:(c.values[o]=u,1)},reconfigure(c,h){let u=ra(c,n),d=h.config.facets[e.id],f=h.facet(e);if(d&&!u&&hc(t,d))return c.values[o]=f,0;let p=a(c);return e.compare(p,f)?(c.values[o]=f,0):(c.values[o]=p,1)}}}const bh=E.define({static:!0});class me{constructor(e,t,n,s,r){this.id=e,this.createF=t,this.updateF=n,this.compareF=s,this.spec=r,this.provides=void 0}static define(e){let t=new me(cc++,e.create,e.update,e.compare||((n,s)=>n===s),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(bh).find(n=>n.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:n=>(n.values[t]=this.create(n),1),update:(n,s)=>{let r=n.values[t],o=this.updateF(r,s);return this.compareF(r,o)?0:(n.values[t]=o,1)},reconfigure:(n,s)=>s.config.address[this.id]!=null?(n.values[t]=s.field(this),0):(n.values[t]=this.create(n),1)}}init(e){return[this,bh.of({field:this,create:e})]}get extension(){return this}}const ii={lowest:4,low:3,default:2,high:1,highest:0};function Ui(i){return e=>new ff(e,i)}const Tt={highest:Ui(ii.highest),high:Ui(ii.high),default:Ui(ii.default),low:Ui(ii.low),lowest:Ui(ii.lowest)};class ff{constructor(e,t){this.inner=e,this.prec=t}}class Mn{of(e){return new oa(this,e)}reconfigure(e){return Mn.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class oa{constructor(e,t){this.compartment=e,this.inner=t}}class bo{constructor(e,t,n,s,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=s,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let s=[],r=Object.create(null),o=new Map;for(let f of JC(e,t,o))f instanceof me?s.push(f):(r[f.facet.id]||(r[f.facet.id]=[])).push(f);let a=Object.create(null),c=[],h=[];for(let f of s)a[f.id]=h.length<<1,h.push(p=>f.slot(p));let u=n==null?void 0:n.config.facets;for(let f in r){let p=r[f],m=p[0].facet,g=u&&u[f]||[];if(p.every(y=>y.type==0))if(a[m.id]=c.length<<1|1,hc(g,p))c.push(n.facet(m));else{let y=m.combine(p.map(b=>b.value));c.push(n&&m.compare(y,n.facet(m))?n.facet(m):y)}else{for(let y of p)y.type==0?(a[y.id]=c.length<<1|1,c.push(y.value)):(a[y.id]=h.length<<1,h.push(b=>y.dynamicSlot(b)));a[m.id]=h.length<<1,h.push(y=>KC(y,m,p))}}let d=h.map(f=>f(a));return new bo(e,o,d,a,c,r)}}function JC(i,e,t){let n=[[],[],[],[],[]],s=new Map;function r(o,a){let c=s.get(o);if(c!=null){if(c<=a)return;let h=n[c].indexOf(o);h>-1&&n[c].splice(h,1),o instanceof oa&&t.delete(o.compartment)}if(s.set(o,a),Array.isArray(o))for(let h of o)r(h,a);else if(o instanceof oa){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(o.compartment)||o.inner;t.set(o.compartment,h),r(h,a)}else if(o instanceof ff)r(o.inner,o.prec);else if(o instanceof me)n[a].push(o),o.provides&&r(o.provides,a);else if(o instanceof Jr)n[a].push(o),o.facet.extensions&&r(o.facet.extensions,ii.default);else{let h=o.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(h,a)}}return r(i,ii.default),n.reduce((o,a)=>o.concat(a))}function fn(i,e){if(e&1)return 2;let t=e>>1,n=i.status[t];if(n==4)throw new Error("Cyclic dependency between fields and/or facets");if(n&2)return n;i.status[t]=4;let s=i.computeSlot(i,i.config.dynamicSlots[t]);return i.status[t]=2|s}function ko(i,e){return e&1?i.config.staticValues[e>>1]:i.values[e>>1]}const pf=E.define(),la=E.define({combine:i=>i.some(e=>e),static:!0}),mf=E.define({combine:i=>i.length?i[0]:void 0,static:!0}),gf=E.define(),Of=E.define(),yf=E.define(),bf=E.define({combine:i=>i.length?i[0]:!1});class Et{constructor(e,t){this.type=e,this.value=t}static define(){return new e2}}class e2{of(e){return new Et(this,e)}}class t2{constructor(e){this.map=e}of(e){return new R(this,e)}}class R{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new R(this.type,t)}is(e){return this.type==e}static define(e={}){return new t2(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let s of e){let r=s.map(t);r&&n.push(r)}return n}}R.reconfigure=R.define();R.appendConfig=R.define();class ue{constructor(e,t,n,s,r,o){this.startState=e,this.changes=t,this.selection=n,this.effects=s,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,n&&df(n,t.newLength),r.some(a=>a.type==ue.time)||(this.annotations=r.concat(ue.time.of(Date.now())))}static create(e,t,n,s,r,o){return new ue(e,t,n,s,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ue.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}ue.time=Et.define();ue.userEvent=Et.define();ue.addToHistory=Et.define();ue.remote=Et.define();function i2(i,e){let t=[];for(let n=0,s=0;;){let r,o;if(n<i.length&&(s==e.length||e[s]>=i[n]))r=i[n++],o=i[n++];else if(s<e.length)r=e[s++],o=e[s++];else return t;!t.length||t[t.length-1]<r?t.push(r,o):t[t.length-1]<o&&(t[t.length-1]=o)}}function kf(i,e,t){var n;let s,r,o;return t?(s=e.changes,r=fe.empty(e.changes.length),o=i.changes.compose(e.changes)):(s=e.changes.map(i.changes),r=i.changes.mapDesc(e.changes,!0),o=i.changes.compose(s)),{changes:o,selection:e.selection?e.selection.map(r):(n=i.selection)===null||n===void 0?void 0:n.map(s),effects:R.mapEffects(i.effects,s).concat(R.mapEffects(e.effects,r)),annotations:i.annotations.length?i.annotations.concat(e.annotations):e.annotations,scrollIntoView:i.scrollIntoView||e.scrollIntoView}}function aa(i,e,t){let n=e.selection,s=$i(e.annotations);return e.userEvent&&(s=s.concat(ue.userEvent.of(e.userEvent))),{changes:e.changes instanceof fe?e.changes:fe.of(e.changes||[],t,i.facet(mf)),selection:n&&(n instanceof C?n:C.single(n.anchor,n.head)),effects:$i(e.effects),annotations:s,scrollIntoView:!!e.scrollIntoView}}function wf(i,e,t){let n=aa(i,e.length?e[0]:{},i.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let r=1;r<e.length;r++){e[r].filter===!1&&(t=!1);let o=!!e[r].sequential;n=kf(n,aa(i,e[r],o?n.changes.newLength:i.doc.length),o)}let s=ue.create(i,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return s2(t?n2(s):s)}function n2(i){let e=i.startState,t=!0;for(let s of e.facet(gf)){let r=s(i);if(r===!1){t=!1;break}Array.isArray(r)&&(t=t===!0?r:i2(t,r))}if(t!==!0){let s,r;if(t===!1)r=i.changes.invertedDesc,s=fe.empty(e.doc.length);else{let o=i.changes.filter(t);s=o.changes,r=o.filtered.mapDesc(o.changes).invertedDesc}i=ue.create(e,s,i.selection&&i.selection.map(r),R.mapEffects(i.effects,r),i.annotations,i.scrollIntoView)}let n=e.facet(Of);for(let s=n.length-1;s>=0;s--){let r=n[s](i);r instanceof ue?i=r:Array.isArray(r)&&r.length==1&&r[0]instanceof ue?i=r[0]:i=wf(e,$i(r),!1)}return i}function s2(i){let e=i.startState,t=e.facet(yf),n=i;for(let s=t.length-1;s>=0;s--){let r=t[s](i);r&&Object.keys(r).length&&(n=kf(n,aa(e,r,i.changes.newLength),!0))}return n==i?i:ue.create(e,i.changes,i.selection,n.effects,n.annotations,n.scrollIntoView)}const r2=[];function $i(i){return i==null?r2:Array.isArray(i)?i:[i]}var le=function(i){return i[i.Word=0]="Word",i[i.Space=1]="Space",i[i.Other=2]="Other",i}(le||(le={}));const o2=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let ca;try{ca=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function l2(i){if(ca)return ca.test(i);for(let e=0;e<i.length;e++){let t=i[e];if(/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||o2.test(t)))return!0}return!1}function a2(i){return e=>{if(!/\S/.test(e))return le.Space;if(l2(e))return le.Word;for(let t=0;t<i.length;t++)if(e.indexOf(i[t])>-1)return le.Word;return le.Other}}let ee=class tt{constructor(e,t,n,s,r,o){this.config=e,this.doc=t,this.selection=n,this.values=s,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let a=0;a<this.config.dynamicSlots.length;a++)fn(this,a<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(n==null){if(t)throw new RangeError("Field is not present in this state");return}return fn(this,n),ko(this,n)}update(...e){return wf(this,e,!0)}applyTransaction(e){let t=this.config,{base:n,compartments:s}=t;for(let a of e.effects)a.is(Mn.reconfigure)?(t&&(s=new Map,t.compartments.forEach((c,h)=>s.set(h,c)),t=null),s.set(a.value.compartment,a.value.extension)):a.is(R.reconfigure)?(t=null,n=a.value):a.is(R.appendConfig)&&(t=null,n=$i(n).concat(a.value));let r;t?r=e.startState.values.slice():(t=bo.resolve(n,s,this),r=new tt(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(c,h)=>h.reconfigure(c,this),null).values);let o=e.startState.facet(la)?e.newSelection:e.newSelection.asSingle();new tt(t,e.newDoc,o,r,(a,c)=>c.update(a,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:C.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),s=this.changes(n.changes),r=[n.range],o=$i(n.effects);for(let a=1;a<t.ranges.length;a++){let c=e(t.ranges[a]),h=this.changes(c.changes),u=h.map(s);for(let f=0;f<a;f++)r[f]=r[f].map(u);let d=s.mapDesc(h,!0);r.push(c.range.map(d)),s=s.compose(u),o=R.mapEffects(o,u).concat(R.mapEffects($i(c.effects),d))}return{changes:s,selection:C.create(r,t.mainIndex),effects:o}}changes(e=[]){return e instanceof fe?e:fe.of(e,this.doc.length,this.facet(tt.lineSeparator))}toText(e){return q.of(e.split(this.facet(tt.lineSeparator)||ia))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(fn(this,t),ko(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let s=e[n];s instanceof me&&this.config.address[s.id]!=null&&(t[n]=s.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let s=[];if(n){for(let r in n)if(Object.prototype.hasOwnProperty.call(e,r)){let o=n[r],a=e[r];s.push(o.init(c=>o.spec.fromJSON(a,c)))}}return tt.create({doc:e.doc,selection:C.fromJSON(e.selection),extensions:t.extensions?s.concat([t.extensions]):s})}static create(e={}){let t=bo.resolve(e.extensions||[],new Map),n=e.doc instanceof q?e.doc:q.of((e.doc||"").split(t.staticFacet(tt.lineSeparator)||ia)),s=e.selection?e.selection instanceof C?e.selection:C.single(e.selection.anchor,e.selection.head):C.single(0);return df(s,n.length),t.staticFacet(la)||(s=s.asSingle()),new tt(t,n,s,t.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(tt.tabSize)}get lineBreak(){return this.facet(tt.lineSeparator)||`
5
+ `}get readOnly(){return this.facet(bf)}phrase(e,...t){for(let n of this.facet(tt.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(n,s)=>{if(s=="$")return"$";let r=+(s||1);return!r||r>t.length?n:t[r-1]})),e}languageDataAt(e,t,n=-1){let s=[];for(let r of this.facet(pf))for(let o of r(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&s.push(o[e]);return s}charCategorizer(e){return a2(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:s}=this.doc.lineAt(e),r=this.charCategorizer(e),o=e-n,a=e-n;for(;o>0;){let c=ve(t,o,!1);if(r(t.slice(c,o))!=le.Word)break;o=c}for(;a<s;){let c=ve(t,a);if(r(t.slice(a,c))!=le.Word)break;a=c}return o==a?null:C.range(o+n,a+n)}};ee.allowMultipleSelections=la;ee.tabSize=E.define({combine:i=>i.length?i[0]:4});ee.lineSeparator=mf;ee.readOnly=bf;ee.phrases=E.define({compare(i,e){let t=Object.keys(i),n=Object.keys(e);return t.length==n.length&&t.every(s=>i[s]==e[s])}});ee.languageData=pf;ee.changeFilter=gf;ee.transactionFilter=Of;ee.transactionExtender=yf;Mn.reconfigure=R.define();function vt(i,e,t={}){let n={};for(let s of i)for(let r of Object.keys(s)){let o=s[r],a=n[r];if(a===void 0)n[r]=o;else if(!(a===o||o===void 0))if(Object.hasOwnProperty.call(t,r))n[r]=t[r](a,o);else throw new Error("Config merge conflict for field "+r)}for(let s in e)n[s]===void 0&&(n[s]=e[s]);return n}class ai{eq(e){return this==e}range(e,t=e){return vn.create(e,t,this)}}ai.prototype.startSide=ai.prototype.endSide=0;ai.prototype.point=!1;ai.prototype.mapMode=ke.TrackDel;class vn{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new vn(e,t,n)}}function ha(i,e){return i.from-e.from||i.value.startSide-e.value.startSide}class uc{constructor(e,t,n,s){this.from=e,this.to=t,this.value=n,this.maxPoint=s}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,s=0){let r=n?this.to:this.from;for(let o=s,a=r.length;;){if(o==a)return o;let c=o+a>>1,h=r[c]-e||(n?this.value[c].endSide:this.value[c].startSide)-t;if(c==o)return h>=0?o:a;h>=0?a=c:o=c+1}}between(e,t,n,s){for(let r=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,r);r<o;r++)if(s(this.from[r]+e,this.to[r]+e,this.value[r])===!1)return!1}map(e,t){let n=[],s=[],r=[],o=-1,a=-1;for(let c=0;c<this.value.length;c++){let h=this.value[c],u=this.from[c]+e,d=this.to[c]+e,f,p;if(u==d){let m=t.mapPos(u,h.startSide,h.mapMode);if(m==null||(f=p=m,h.startSide!=h.endSide&&(p=t.mapPos(u,h.endSide),p<f)))continue}else if(f=t.mapPos(u,h.startSide),p=t.mapPos(d,h.endSide),f>p||f==p&&h.startSide>0&&h.endSide<=0)continue;(p-f||h.endSide-h.startSide)<0||(o<0&&(o=f),h.point&&(a=Math.max(a,p-f)),n.push(h),s.push(f-o),r.push(p-o))}return{mapped:n.length?new uc(s,r,n,a):null,pos:o}}}class F{constructor(e,t,n,s){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=s}static create(e,t,n,s){return new F(e,t,n,s)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:s=0,filterTo:r=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(n&&(t=t.slice().sort(ha)),this.isEmpty)return t.length?F.of(t):this;let a=new vf(this,null,-1).goto(0),c=0,h=[],u=new Ft;for(;a.value||c<t.length;)if(c<t.length&&(a.from-t[c].from||a.startSide-t[c].value.startSide)>=0){let d=t[c++];u.addInner(d.from,d.to,d.value)||h.push(d)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(c==t.length||this.chunkEnd(a.chunkIndex)<t[c].from)&&(!o||s>this.chunkEnd(a.chunkIndex)||r<this.chunkPos[a.chunkIndex])&&u.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!o||s>a.to||r<a.from||o(a.from,a.to,a.value))&&(u.addInner(a.from,a.to,a.value)||h.push(vn.create(a.from,a.to,a.value))),a.next());return u.finishInner(this.nextLayer.isEmpty&&!h.length?F.empty:this.nextLayer.update({add:h,filter:o,filterFrom:s,filterTo:r}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],s=-1;for(let o=0;o<this.chunk.length;o++){let a=this.chunkPos[o],c=this.chunk[o],h=e.touchesRange(a,a+c.length);if(h===!1)s=Math.max(s,c.maxPoint),t.push(c),n.push(e.mapPos(a));else if(h===!0){let{mapped:u,pos:d}=c.map(a,e);u&&(s=Math.max(s,u.maxPoint),t.push(u),n.push(d))}}let r=this.nextLayer.map(e);return t.length==0?r:new F(n,t,r||F.empty,s)}between(e,t,n){if(!this.isEmpty){for(let s=0;s<this.chunk.length;s++){let r=this.chunkPos[s],o=this.chunk[s];if(t>=r&&e<=r+o.length&&o.between(r,e-r,t-r,n)===!1)return}this.nextLayer.between(e,t,n)}}iter(e=0){return Sn.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Sn.from(e).goto(t)}static compare(e,t,n,s,r=-1){let o=e.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=r),a=t.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=r),c=kh(o,a,n),h=new Gi(o,c,r),u=new Gi(a,c,r);n.iterGaps((d,f,p)=>wh(h,d,u,f,p,s)),n.empty&&n.length==0&&wh(h,0,u,0,0,s)}static eq(e,t,n=0,s){s==null&&(s=999999999);let r=e.filter(u=>!u.isEmpty&&t.indexOf(u)<0),o=t.filter(u=>!u.isEmpty&&e.indexOf(u)<0);if(r.length!=o.length)return!1;if(!r.length)return!0;let a=kh(r,o),c=new Gi(r,a,0).goto(n),h=new Gi(o,a,0).goto(n);for(;;){if(c.to!=h.to||!ua(c.active,h.active)||c.point&&(!h.point||!c.point.eq(h.point)))return!1;if(c.to>s)return!0;c.next(),h.next()}}static spans(e,t,n,s,r=-1){let o=new Gi(e,null,r).goto(t),a=t,c=o.openStart;for(;;){let h=Math.min(o.to,n);if(o.point){let u=o.activeForPoint(o.to),d=o.pointFrom<t?u.length+1:o.point.startSide<0?u.length:Math.min(u.length,c);s.point(a,h,o.point,u,d,o.pointRank),c=Math.min(o.openEnd(h),u.length)}else h>a&&(s.span(a,h,o.active,c),c=o.openEnd(h));if(o.to>n)return c+(o.point&&o.to>n?1:0);a=o.to,o.next()}}static of(e,t=!1){let n=new Ft;for(let s of e instanceof vn?[e]:t?c2(e):e)n.add(s.from,s.to,s.value);return n.finish()}static join(e){if(!e.length)return F.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let s=e[n];s!=F.empty;s=s.nextLayer)t=new F(s.chunkPos,s.chunk,t,Math.max(s.maxPoint,t.maxPoint));return t}}F.empty=new F([],[],null,-1);function c2(i){if(i.length>1)for(let e=i[0],t=1;t<i.length;t++){let n=i[t];if(ha(e,n)>0)return i.slice().sort(ha);e=n}return i}F.empty.nextLayer=F.empty;class Ft{finishChunk(e){this.chunks.push(new uc(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new Ft)).add(e,t,n)}addInner(e,t,n){let s=e-this.lastTo||n.startSide-this.last.endSide;if(s<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return s<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(F.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=F.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function kh(i,e,t){let n=new Map;for(let r of i)for(let o=0;o<r.chunk.length;o++)r.chunk[o].maxPoint<=0&&n.set(r.chunk[o],r.chunkPos[o]);let s=new Set;for(let r of e)for(let o=0;o<r.chunk.length;o++){let a=n.get(r.chunk[o]);a!=null&&(t?t.mapPos(a):a)==r.chunkPos[o]&&!(t!=null&&t.touchesRange(a,a+r.chunk[o].length))&&s.add(r.chunk[o])}return s}class vf{constructor(e,t,n,s=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=s}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let s=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(s)||this.layer.chunkEnd(this.chunkIndex)<e||s.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let s=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<s)&&this.setRangeIndex(s)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Sn{constructor(e){this.heap=e}static from(e,t=null,n=-1){let s=[];for(let r=0;r<e.length;r++)for(let o=e[r];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&s.push(new vf(o,t,n,r));return s.length==1?s[0]:new Sn(s)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)dl(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)dl(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),dl(this.heap,0)}}}function dl(i,e){for(let t=i[e];;){let n=(e<<1)+1;if(n>=i.length)break;let s=i[n];if(n+1<i.length&&s.compare(i[n+1])>=0&&(s=i[n+1],n++),t.compare(s)<0)break;i[n]=t,i[e]=s,e=n}}class Gi{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Sn.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){es(this.active,e),es(this.activeTo,e),es(this.activeRank,e),this.minActive=vh(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:s,rank:r}=this.cursor;for(;t<this.activeRank.length&&(r-this.activeRank[t]||s-this.activeTo[t])>0;)t++;ts(this.active,t,n),ts(this.activeTo,t,s),ts(this.activeRank,t,r),e&&ts(e,t,this.cursor.from),this.minActive=vh(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let s=this.minActive;if(s>-1&&(this.activeTo[s]-this.cursor.from||this.active[s].endSide-this.cursor.startSide)<0){if(this.activeTo[s]>e){this.to=this.activeTo[s],this.endSide=this.active[s].endSide;break}this.removeActive(s),n&&es(n,s)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let r=this.cursor.value;if(!r.point)this.addActive(n),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=r,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=r.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let s=n.length-1;s>=0&&n[s]<e;s--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function wh(i,e,t,n,s,r){i.goto(e),t.goto(n);let o=n+s,a=n,c=n-e;for(;;){let h=i.to+c-t.to||i.endSide-t.endSide,u=h<0?i.to+c:t.to,d=Math.min(u,o);if(i.point||t.point?i.point&&t.point&&(i.point==t.point||i.point.eq(t.point))&&ua(i.activeForPoint(i.to),t.activeForPoint(t.to))||r.comparePoint(a,d,i.point,t.point):d>a&&!ua(i.active,t.active)&&r.compareRange(a,d,i.active,t.active),u>o)break;a=u,h<=0&&i.next(),h>=0&&t.next()}}function ua(i,e){if(i.length!=e.length)return!1;for(let t=0;t<i.length;t++)if(i[t]!=e[t]&&!i[t].eq(e[t]))return!1;return!0}function es(i,e){for(let t=e,n=i.length-1;t<n;t++)i[t]=i[t+1];i.pop()}function ts(i,e,t){for(let n=i.length-1;n>=e;n--)i[n+1]=i[n];i[e]=t}function vh(i,e){let t=-1,n=1e9;for(let s=0;s<e.length;s++)(e[s]-n||i[s].endSide-i[t].endSide)<0&&(t=s,n=e[s]);return t}function st(i,e,t=i.length){let n=0;for(let s=0;s<t;)i.charCodeAt(s)==9?(n+=e-n%e,s++):(n++,s=ve(i,s));return n}function da(i,e,t,n){for(let s=0,r=0;;){if(r>=e)return s;if(s==i.length)break;r+=i.charCodeAt(s)==9?t-r%t:1,s=ve(i,s)}return n===!0?-1:i.length}const fa="ͼ",Sh=typeof Symbol>"u"?"__"+fa:Symbol.for(fa),pa=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Ch=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class qt{constructor(e,t){this.rules=[];let{finish:n}=t||{};function s(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function r(o,a,c,h){let u=[],d=/^@(\w+)\b/.exec(o[0]),f=d&&d[1]=="keyframes";if(d&&a==null)return c.push(o[0]+";");for(let p in a){let m=a[p];if(/&/.test(p))r(p.split(/,\s*/).map(g=>o.map(y=>g.replace(/&/,y))).reduce((g,y)=>g.concat(y)),m,c);else if(m&&typeof m=="object"){if(!d)throw new RangeError("The value of a property ("+p+") should be a primitive value.");r(s(p),m,u,f)}else m!=null&&u.push(p.replace(/_.*/,"").replace(/[A-Z]/g,g=>"-"+g.toLowerCase())+": "+m+";")}(u.length||f)&&c.push((n&&!d&&!h?o.map(n):o).join(", ")+" {"+u.join(" ")+"}")}for(let o in e)r(s(o),e[o],this.rules)}getRules(){return this.rules.join(`
6
+ `)}static newName(){let e=Ch[Sh]||1;return Ch[Sh]=e+1,fa+e.toString(36)}static mount(e,t,n){let s=e[pa],r=n&&n.nonce;s?r&&s.setNonce(r):s=new h2(e,r),s.mount(Array.isArray(t)?t:[t],e)}}let xh=new Map;class h2{constructor(e,t){let n=e.ownerDocument||e,s=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&s.CSSStyleSheet){let r=xh.get(n);if(r)return e[pa]=r;this.sheet=new s.CSSStyleSheet,xh.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[pa]=this}mount(e,t){let n=this.sheet,s=0,r=0;for(let o=0;o<e.length;o++){let a=e[o],c=this.modules.indexOf(a);if(c<r&&c>-1&&(this.modules.splice(c,1),r--,c=-1),c==-1){if(this.modules.splice(r++,0,a),n)for(let h=0;h<a.rules.length;h++)n.insertRule(a.rules[h],s++)}else{for(;r<c;)s+=this.modules[r++].rules.length;s+=a.rules.length,r++}}if(n)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let o="";for(let c=0;c<this.modules.length;c++)o+=this.modules[c].getRules()+`
7
+ `;this.styleTag.textContent=o;let a=t.head||t;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var Ut={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Cn={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},u2=typeof navigator<"u"&&/Mac/.test(navigator.platform),d2=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var be=0;be<10;be++)Ut[48+be]=Ut[96+be]=String(be);for(var be=1;be<=24;be++)Ut[be+111]="F"+be;for(var be=65;be<=90;be++)Ut[be]=String.fromCharCode(be+32),Cn[be]=String.fromCharCode(be);for(var fl in Ut)Cn.hasOwnProperty(fl)||(Cn[fl]=Ut[fl]);function f2(i){var e=u2&&i.metaKey&&i.shiftKey&&!i.ctrlKey&&!i.altKey||d2&&i.shiftKey&&i.key&&i.key.length==1||i.key=="Unidentified",t=!e&&i.key||(i.shiftKey?Cn:Ut)[i.keyCode]||i.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function wo(i){let e;return i.nodeType==11?e=i.getSelection?i:i.ownerDocument:e=i,e.getSelection()}function ma(i,e){return e?i==e||i.contains(e.nodeType!=1?e.parentNode:e):!1}function p2(i){let e=i.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function eo(i,e){if(!e.anchorNode)return!1;try{return ma(i,e.anchorNode)}catch{return!1}}function Zi(i){return i.nodeType==3?ci(i,0,i.nodeValue.length).getClientRects():i.nodeType==1?i.getClientRects():[]}function pn(i,e,t,n){return t?$h(i,e,t,n,-1)||$h(i,e,t,n,1):!1}function xn(i){for(var e=0;;e++)if(i=i.previousSibling,!i)return e}function $h(i,e,t,n,s){for(;;){if(i==t&&e==n)return!0;if(e==(s<0?0:_t(i))){if(i.nodeName=="DIV")return!1;let r=i.parentNode;if(!r||r.nodeType!=1)return!1;e=xn(i)+(s<0?0:1),i=r}else if(i.nodeType==1){if(i=i.childNodes[e+(s<0?-1:0)],i.nodeType==1&&i.contentEditable=="false")return!1;e=s<0?_t(i):0}else return!1}}function _t(i){return i.nodeType==3?i.nodeValue.length:i.childNodes.length}function Yo(i,e){let t=e?i.left:i.right;return{left:t,right:t,top:i.top,bottom:i.bottom}}function m2(i){let e=i.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:i.innerWidth,top:0,bottom:i.innerHeight}}function Sf(i,e){let t=e.width/i.offsetWidth,n=e.height/i.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-i.offsetWidth)<1)&&(t=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.height-i.offsetHeight)<1)&&(n=1),{scaleX:t,scaleY:n}}function g2(i,e,t,n,s,r,o,a){let c=i.ownerDocument,h=c.defaultView||window;for(let u=i,d=!1;u&&!d;)if(u.nodeType==1){let f,p=u==c.body,m=1,g=1;if(p)f=m2(h);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(d=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let k=u.getBoundingClientRect();({scaleX:m,scaleY:g}=Sf(u,k)),f={left:k.left,right:k.left+u.clientWidth*m,top:k.top,bottom:k.top+u.clientHeight*g}}let y=0,b=0;if(s=="nearest")e.top<f.top?(b=-(f.top-e.top+o),t>0&&e.bottom>f.bottom+b&&(b=e.bottom-f.bottom+b+o)):e.bottom>f.bottom&&(b=e.bottom-f.bottom+o,t<0&&e.top-b<f.top&&(b=-(f.top+b-e.top+o)));else{let k=e.bottom-e.top,w=f.bottom-f.top;b=(s=="center"&&k<=w?e.top+k/2-w/2:s=="start"||s=="center"&&t<0?e.top-o:e.bottom-w+o)-f.top}if(n=="nearest"?e.left<f.left?(y=-(f.left-e.left+r),t>0&&e.right>f.right+y&&(y=e.right-f.right+y+r)):e.right>f.right&&(y=e.right-f.right+r,t<0&&e.left<f.left+y&&(y=-(f.left+y-e.left+r))):y=(n=="center"?e.left+(e.right-e.left)/2-(f.right-f.left)/2:n=="start"==a?e.left-r:e.right-(f.right-f.left)+r)-f.left,y||b)if(p)h.scrollBy(y,b);else{let k=0,w=0;if(b){let S=u.scrollTop;u.scrollTop+=b/g,w=(u.scrollTop-S)*g}if(y){let S=u.scrollLeft;u.scrollLeft+=y/m,k=(u.scrollLeft-S)*m}e={left:e.left-k,top:e.top-w,right:e.right-k,bottom:e.bottom-w},k&&Math.abs(k-y)<1&&(n="nearest"),w&&Math.abs(w-b)<1&&(s="nearest")}if(p)break;u=u.assignedSlot||u.parentNode}else if(u.nodeType==11)u=u.host;else break}function O2(i){let e=i.ownerDocument;for(let t=i.parentNode;t&&t!=e.body;)if(t.nodeType==1){if(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)return t;t=t.assignedSlot||t.parentNode}else if(t.nodeType==11)t=t.host;else break;return null}class y2{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?_t(t):0),n,Math.min(e.focusOffset,n?_t(n):0))}set(e,t,n,s){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=s}}let gi=null;function Cf(i){if(i.setActive)return i.setActive();if(gi)return i.focus(gi);let e=[];for(let t=i;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(i.focus(gi==null?{get preventScroll(){return gi={preventScroll:!0},!0}}:void 0),!gi){gi=!1;for(let t=0;t<e.length;){let n=e[t++],s=e[t++],r=e[t++];n.scrollTop!=s&&(n.scrollTop=s),n.scrollLeft!=r&&(n.scrollLeft=r)}}}let _h;function ci(i,e,t=e){let n=_h||(_h=document.createRange());return n.setEnd(i,t),n.setStart(i,e),n}function _i(i,e,t,n){let s={key:e,code:e,keyCode:t,which:t,cancelable:!0};n&&({altKey:s.altKey,ctrlKey:s.ctrlKey,shiftKey:s.shiftKey,metaKey:s.metaKey}=n);let r=new KeyboardEvent("keydown",s);r.synthetic=!0,i.dispatchEvent(r);let o=new KeyboardEvent("keyup",s);return o.synthetic=!0,i.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function b2(i){for(;i;){if(i&&(i.nodeType==9||i.nodeType==11&&i.host))return i;i=i.assignedSlot||i.parentNode}return null}function xf(i){for(;i.attributes.length;)i.removeAttributeNode(i.attributes[0])}function k2(i,e){let t=e.focusNode,n=e.focusOffset;if(!t||e.anchorNode!=t||e.anchorOffset!=n)return!1;for(n=Math.min(n,_t(t));;)if(n){if(t.nodeType!=1)return!1;let s=t.childNodes[n-1];s.contentEditable=="false"?n--:(t=s,n=_t(t))}else{if(t==i)return!0;n=xn(t),t=t.parentNode}}function $f(i){return i.scrollTop>Math.max(1,i.scrollHeight-i.clientHeight-4)}class $e{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new $e(e.parentNode,xn(e),t)}static after(e,t){return new $e(e.parentNode,xn(e)+1,t)}}const dc=[];class se{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(this.flags&2){let n=this.dom,s=null,r;for(let o of this.children){if(o.flags&7){if(!o.dom&&(r=s?s.nextSibling:n.firstChild)){let a=se.get(r);(!a||!a.parent&&a.canReuseDOM(o))&&o.reuseDOM(r)}o.sync(e,t),o.flags&=-8}if(r=s?s.nextSibling:n.firstChild,t&&!t.written&&t.node==n&&r!=o.dom&&(t.written=!0),o.dom.parentNode==n)for(;r&&r!=o.dom;)r=Ph(r);else n.insertBefore(o.dom,r);s=o.dom}for(r=s?s.nextSibling:n.firstChild,r&&t&&t.node==n&&(t.written=!0);r;)r=Ph(r)}else if(this.flags&1)for(let n of this.children)n.flags&7&&(n.sync(e,t),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let s=_t(e)==0?0:t==0?-1:1;for(;;){let r=e.parentNode;if(r==this.dom)break;s==0&&r.firstChild!=r.lastChild&&(e==r.firstChild?s=-1:s=1),e=r}s<0?n=e:n=e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!se.get(n);)n=n.nextSibling;if(!n)return this.length;for(let s=0,r=0;;s++){let o=this.children[s];if(o.dom==n)return r;r+=o.length+o.breakAfter}}domBoundsAround(e,t,n=0){let s=-1,r=-1,o=-1,a=-1;for(let c=0,h=n,u=n;c<this.children.length;c++){let d=this.children[c],f=h+d.length;if(h<e&&f>t)return d.domBoundsAround(e,t,h);if(f>=e&&s==-1&&(s=c,r=h),h>t&&d.dom.parentNode==this.dom){o=c,a=u;break}u=f,h=f+d.breakAfter}return{from:r,to:a<0?n+this.length:a,startDOM:(s?this.children[s-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=dc){this.markDirty();for(let s=e;s<t;s++){let r=this.children[s];r.parent==this&&n.indexOf(r)<0&&r.destroy()}this.children.splice(e,t-e,...n);for(let s=0;s<n.length;s++)n[s].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new _f(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,n,s,r,o){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}se.prototype.breakAfter=0;function Ph(i){let e=i.nextSibling;return i.parentNode.removeChild(i),e}class _f{constructor(e,t,n){this.children=e,this.pos=t,this.i=n,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function Pf(i,e,t,n,s,r,o,a,c){let{children:h}=i,u=h.length?h[e]:null,d=r.length?r[r.length-1]:null,f=d?d.breakAfter:o;if(!(e==n&&u&&!o&&!f&&r.length<2&&u.merge(t,s,r.length?d:null,t==0,a,c))){if(n<h.length){let p=h[n];p&&(s<p.length||p.breakAfter&&(d!=null&&d.breakAfter))?(e==n&&(p=p.split(s),s=0),!f&&d&&p.merge(0,s,d,!0,0,c)?r[r.length-1]=p:((s||p.children.length&&!p.children[0].length)&&p.merge(0,s,null,!1,0,c),r.push(p))):p!=null&&p.breakAfter&&(d?d.breakAfter=1:o=1),n++}for(u&&(u.breakAfter=o,t>0&&(!o&&r.length&&u.merge(t,u.length,r[0],!1,a,0)?u.breakAfter=r.shift().breakAfter:(t<u.length||u.children.length&&u.children[u.children.length-1].length==0)&&u.merge(t,u.length,null,!1,a,0),e++));e<n&&r.length;)if(h[n-1].become(r[r.length-1]))n--,r.pop(),c=r.length?0:a;else if(h[e].become(r[0]))e++,r.shift(),a=r.length?0:c;else break;!r.length&&e&&n<h.length&&!h[e-1].breakAfter&&h[n].merge(0,0,h[e-1],!1,a,c)&&e--,(e<n||r.length)&&i.replaceChildren(e,n,r)}}function Qf(i,e,t,n,s,r){let o=i.childCursor(),{i:a,off:c}=o.findPos(t,1),{i:h,off:u}=o.findPos(e,-1),d=e-t;for(let f of n)d+=f.length;i.length+=d,Pf(i,h,u,a,c,n,0,s,r)}let We=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},ga=typeof document<"u"?document:{documentElement:{style:{}}};const Oa=/Edge\/(\d+)/.exec(We.userAgent),Vf=/MSIE \d/.test(We.userAgent),ya=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(We.userAgent),Fo=!!(Vf||ya||Oa),Qh=!Fo&&/gecko\/(\d+)/i.test(We.userAgent),pl=!Fo&&/Chrome\/(\d+)/.exec(We.userAgent),Vh="webkitFontSmoothing"in ga.documentElement.style,Tf=!Fo&&/Apple Computer/.test(We.vendor),Th=Tf&&(/Mobile\/\w+/.test(We.userAgent)||We.maxTouchPoints>2);var Z={mac:Th||/Mac/.test(We.platform),windows:/Win/.test(We.platform),linux:/Linux|X11/.test(We.platform),ie:Fo,ie_version:Vf?ga.documentMode||6:ya?+ya[1]:Oa?+Oa[1]:0,gecko:Qh,gecko_version:Qh?+(/Firefox\/(\d+)/.exec(We.userAgent)||[0,0])[1]:0,chrome:!!pl,chrome_version:pl?+pl[1]:0,ios:Th,android:/Android\b/.test(We.userAgent),webkit:Vh,safari:Tf,webkit_version:Vh?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:ga.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const w2=256;class Pt extends se{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,n){return this.flags&8||n&&(!(n instanceof Pt)||this.length-(t-e)+n.length>w2||n.flags&8)?!1:(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new Pt(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new $e(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return v2(this.dom,e,t)}}class Qt extends se{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let s of t)s.setParent(this)}setAttrs(e){if(xf(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,s,r,o){return n&&(!(n instanceof Qt&&n.mark.eq(this.mark))||e&&r<=0||t<this.length&&o<=0)?!1:(Qf(this,e,t,n?n.children.slice():[],r-1,o-1),this.markDirty(),!0)}split(e){let t=[],n=0,s=-1,r=0;for(let a of this.children){let c=n+a.length;c>e&&t.push(n<e?a.split(e-n):a),s<0&&n>=e&&(s=r),n=c,r++}let o=this.length-e;return this.length=e,s>-1&&(this.children.length=s,this.markDirty()),new Qt(this.mark,t,o)}domAtPos(e){return Ef(this,e)}coordsAt(e,t){return Af(this,e,t)}}function v2(i,e,t){let n=i.nodeValue.length;e>n&&(e=n);let s=e,r=e,o=0;e==0&&t<0||e==n&&t>=0?Z.chrome||Z.gecko||(e?(s--,o=1):r<n&&(r++,o=-1)):t<0?s--:r<n&&r++;let a=ci(i,s,r).getClientRects();if(!a.length)return null;let c=a[(o?o<0:t>=0)?0:a.length-1];return Z.safari&&!o&&c.width==0&&(c=Array.prototype.find.call(a,h=>h.width)||c),o?Yo(c,o<0):c||null}class Lt extends se{static create(e,t,n){return new Lt(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=Lt.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,n,s,r,o){return n&&(!(n instanceof Lt)||!this.widget.compare(n.widget)||e>0&&r<=0||t<this.length&&o<=0)?!1:(this.length=e+(n?n.length:0)+(this.length-t),!0)}become(e){return e instanceof Lt&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return q.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,n=t&&t.state.doc,s=this.posAtStart;return n?n.slice(s,s+this.length):q.empty}domAtPos(e){return(this.length?e==0:this.side>0)?$e.before(this.dom):$e.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let s=this.dom.getClientRects(),r=null;if(!s.length)return null;let o=this.side?this.side<0:e>0;for(let a=o?s.length-1:0;r=s[a],!(e>0?a==0:a==s.length-1||r.top<r.bottom);a+=o?-1:1);return Yo(r,!o)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Ai extends se{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof Ai&&e.side==this.side}split(){return new Ai(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?$e.before(this.dom):$e.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return q.empty}get isHidden(){return!0}}Pt.prototype.children=Lt.prototype.children=Ai.prototype.children=dc;function Ef(i,e){let t=i.dom,{children:n}=i,s=0;for(let r=0;s<n.length;s++){let o=n[s],a=r+o.length;if(!(a==r&&o.getSide()<=0)){if(e>r&&e<a&&o.dom.parentNode==t)return o.domAtPos(e-r);if(e<=r)break;r=a}}for(let r=s;r>0;r--){let o=n[r-1];if(o.dom.parentNode==t)return o.domAtPos(o.length)}for(let r=s;r<n.length;r++){let o=n[r];if(o.dom.parentNode==t)return o.domAtPos(0)}return new $e(t,0)}function Zf(i,e,t){let n,{children:s}=i;t>0&&e instanceof Qt&&s.length&&(n=s[s.length-1])instanceof Qt&&n.mark.eq(e.mark)?Zf(n,e.children[0],t-1):(s.push(e),e.setParent(i)),i.length+=e.length}function Af(i,e,t){let n=null,s=-1,r=null,o=-1;function a(h,u){for(let d=0,f=0;d<h.children.length&&f<=u;d++){let p=h.children[d],m=f+p.length;m>=u&&(p.children.length?a(p,u-f):(!r||r.isHidden&&t>0)&&(m>u||f==m&&p.getSide()>0)?(r=p,o=u-f):(f<u||f==m&&p.getSide()<0&&!p.isHidden)&&(n=p,s=u-f)),f=m}}a(i,e);let c=(t<0?n:r)||n||r;return c?c.coordsAt(Math.max(0,c==n?s:o),t):S2(i)}function S2(i){let e=i.dom.lastChild;if(!e)return i.dom.getBoundingClientRect();let t=Zi(e);return t[t.length-1]||null}function ba(i,e){for(let t in i)t=="class"&&e.class?e.class+=" "+i.class:t=="style"&&e.style?e.style+=";"+i.style:e[t]=i[t];return e}const Eh=Object.create(null);function fc(i,e,t){if(i==e)return!0;i||(i=Eh),e||(e=Eh);let n=Object.keys(i),s=Object.keys(e);if(n.length-(t&&n.indexOf(t)>-1?1:0)!=s.length-(t&&s.indexOf(t)>-1?1:0))return!1;for(let r of n)if(r!=t&&(s.indexOf(r)==-1||i[r]!==e[r]))return!1;return!0}function ka(i,e,t){let n=!1;if(e)for(let s in e)t&&s in t||(n=!0,s=="style"?i.style.cssText="":i.removeAttribute(s));if(t)for(let s in t)e&&e[s]==t[s]||(n=!0,s=="style"?i.style.cssText=t[s]:i.setAttribute(s,t[s]));return n}function C2(i){let e=Object.create(null);for(let t=0;t<i.attributes.length;t++){let n=i.attributes[t];e[n.name]=n.value}return e}class de extends se{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,s,r,o){if(n){if(!(n instanceof de))return!1;this.dom||n.transferDOM(this)}return s&&this.setDeco(n?n.attrs:null),Qf(this,e,t,n?n.children.slice():[],r,o),!0}split(e){let t=new de;if(t.breakAfter=this.breakAfter,this.length==0)return t;let{i:n,off:s}=this.childPos(e);s&&(t.append(this.children[n].split(s),0),this.children[n].merge(s,this.children[n].length,null,!1,0,0),n++);for(let r=n;r<this.children.length;r++)t.append(this.children[r],0);for(;n>0&&this.children[n-1].length==0;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){fc(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){Zf(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=ba(t,this.attrs||{})),n&&(this.attrs=ba({class:n},this.attrs||{}))}domAtPos(e){return Ef(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?this.flags&4&&(xf(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(ka(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let s=this.dom.lastChild;for(;s&&se.get(s)instanceof Qt;)s=s.lastChild;if(!s||!this.length||s.nodeName!="BR"&&((n=se.get(s))===null||n===void 0?void 0:n.isEditable)==!1&&(!Z.ios||!this.children.some(r=>r instanceof Pt))){let r=document.createElement("BR");r.cmIgnore=!0,this.dom.appendChild(r)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let n of this.children){if(!(n instanceof Pt)||/[^ -~]/.test(n.text))return null;let s=Zi(n.dom);if(s.length!=1)return null;e+=s[0].width,t=s[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let n=Af(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:s}=this.parent.view.viewState,r=n.bottom-n.top;if(Math.abs(r-s.lineHeight)<2&&s.textHeight<r){let o=(r-s.textHeight)/2;return{top:n.top+o,bottom:n.bottom-o,left:n.left,right:n.left}}}return n}become(e){return!1}covers(){return!0}static find(e,t){for(let n=0,s=0;n<e.children.length;n++){let r=e.children[n],o=s+r.length;if(o>=t){if(r instanceof de)return r;if(o>t)break}s=o+r.breakAfter}return null}}class Xt extends se{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,s,r,o){return n&&(!(n instanceof Xt)||!this.widget.compare(n.widget)||e>0&&r<=0||t<this.length&&o<=0)?!1:(this.length=e+(n?n.length:0)+(this.length-t),!0)}domAtPos(e){return e==0?$e.before(this.dom):$e.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let n=new Xt(this.widget,t,this.deco);return n.breakAfter=this.breakAfter,n}get children(){return dc}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):q.empty}domBoundsAround(){return null}become(e){return e instanceof Xt&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){return this.widget.coordsAt(this.dom,e,t)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:n}=this.deco;return t==n?!1:e<0?t<0:n>0}}class St{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Te=function(i){return i[i.Text=0]="Text",i[i.WidgetBefore=1]="WidgetBefore",i[i.WidgetAfter=2]="WidgetAfter",i[i.WidgetRange=3]="WidgetRange",i}(Te||(Te={}));class A extends ai{constructor(e,t,n,s){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=s}get heightRelevant(){return!1}static mark(e){return new Xn(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new Gt(e,t,t,n,e.widget||null,!1)}static replace(e){let t=!!e.block,n,s;if(e.isBlockGap)n=-5e8,s=4e8;else{let{start:r,end:o}=Bf(e,t);n=(r?t?-3e8:-1:5e8)-1,s=(o?t?2e8:1:-6e8)+1}return new Gt(e,n,s,t,e.widget||null,!0)}static line(e){return new jn(e)}static set(e,t=!1){return F.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}A.none=F.empty;class Xn extends A{constructor(e){let{start:t,end:n}=Bf(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof Xn&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((n=e.attrs)===null||n===void 0?void 0:n.class))&&fc(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}Xn.prototype.point=!1;class jn extends A{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof jn&&this.spec.class==e.spec.class&&fc(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}jn.prototype.mapMode=ke.TrackBefore;jn.prototype.point=!0;class Gt extends A{constructor(e,t,n,s,r,o){super(t,n,r,e),this.block=s,this.isReplace=o,this.mapMode=s?t<=0?ke.TrackBefore:ke.TrackAfter:ke.TrackDel}get type(){return this.startSide!=this.endSide?Te.WidgetRange:this.startSide<=0?Te.WidgetBefore:Te.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Gt&&x2(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}Gt.prototype.point=!0;function Bf(i,e=!1){let{inclusiveStart:t,inclusiveEnd:n}=i;return t==null&&(t=i.inclusive),n==null&&(n=i.inclusive),{start:t??e,end:n??e}}function x2(i,e){return i==e||!!(i&&e&&i.compare(e))}function wa(i,e,t,n=0){let s=t.length-1;s>=0&&t[s]+n>=i?t[s]=Math.max(t[s],e):t.push(i,e)}class mn{constructor(e,t,n,s){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=s,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Xt&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new de),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(is(new Ai(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Xt)&&this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:r,lineBreak:o,done:a}=this.cursor.next(this.skip);if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=r,this.textOff=0}let s=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(is(new Pt(this.text.slice(this.textOff,this.textOff+s)),t),n),this.atCursorPos=!0,this.textOff+=s,e-=s,n=0}}span(e,t,n,s){this.buildText(t-e,n,s),this.pos=t,this.openStart<0&&(this.openStart=s)}point(e,t,n,s,r,o){if(this.disallowBlockEffectsFor[o]&&n instanceof Gt){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=t-e;if(n instanceof Gt)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Xt(n.widget||hi.block,a,n));else{let c=Lt.create(n.widget||hi.inline,a,a?0:n.startSide),h=this.atCursorPos&&!c.isEditable&&r<=s.length&&(e<t||n.startSide>0),u=!c.isEditable&&(e<t||r>s.length||n.startSide<=0),d=this.getLine();this.pendingBuffer==2&&!h&&!c.isEditable&&(this.pendingBuffer=0),this.flushBuffer(s),h&&(d.append(is(new Ai(1),s),r),r=s.length+Math.max(0,r-s.length)),d.append(is(c,s),r),this.atCursorPos=u,this.pendingBuffer=u?e<t||r>s.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=s.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=r)}static build(e,t,n,s,r){let o=new mn(e,t,n,r);return o.openEnd=F.spans(s,t,n,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function is(i,e){for(let t of e)i=new Qt(t,[i],i.length);return i}class hi extends St{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}hi.inline=new hi("span");hi.block=new hi("div");var re=function(i){return i[i.LTR=0]="LTR",i[i.RTL=1]="RTL",i}(re||(re={}));const ui=re.LTR,pc=re.RTL;function Df(i){let e=[];for(let t=0;t<i.length;t++)e.push(1<<+i[t]);return e}const $2=Df("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),_2=Df("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),va=Object.create(null),dt=[];for(let i of["()","[]","{}"]){let e=i.charCodeAt(0),t=i.charCodeAt(1);va[e]=t,va[t]=-e}function Nf(i){return i<=247?$2[i]:1424<=i&&i<=1524?2:1536<=i&&i<=1785?_2[i-1536]:1774<=i&&i<=2220?4:8192<=i&&i<=8204?256:64336<=i&&i<=65023?4:1}const P2=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class Mt{get dir(){return this.level%2?pc:ui}constructor(e,t,n){this.from=e,this.to=t,this.level=n}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,n,s){let r=-1;for(let o=0;o<e.length;o++){let a=e[o];if(a.from<=t&&a.to>=t){if(a.level==n)return o;(r<0||(s!=0?s<0?a.from<t:a.to>t:e[r].level>a.level))&&(r=o)}}if(r<0)throw new RangeError("Index out of range");return r}}function Rf(i,e){if(i.length!=e.length)return!1;for(let t=0;t<i.length;t++){let n=i[t],s=e[t];if(n.from!=s.from||n.to!=s.to||n.direction!=s.direction||!Rf(n.inner,s.inner))return!1}return!0}const H=[];function Q2(i,e,t,n,s){for(let r=0;r<=n.length;r++){let o=r?n[r-1].to:e,a=r<n.length?n[r].from:t,c=r?256:s;for(let h=o,u=c,d=c;h<a;h++){let f=Nf(i.charCodeAt(h));f==512?f=u:f==8&&d==4&&(f=16),H[h]=f==4?2:f,f&7&&(d=f),u=f}for(let h=o,u=c,d=c;h<a;h++){let f=H[h];if(f==128)h<a-1&&u==H[h+1]&&u&24?f=H[h]=u:H[h]=256;else if(f==64){let p=h+1;for(;p<a&&H[p]==64;)p++;let m=h&&u==8||p<t&&H[p]==8?d==1?1:8:256;for(let g=h;g<p;g++)H[g]=m;h=p-1}else f==8&&d==1&&(H[h]=1);u=f,f&7&&(d=f)}}}function V2(i,e,t,n,s){let r=s==1?2:1;for(let o=0,a=0,c=0;o<=n.length;o++){let h=o?n[o-1].to:e,u=o<n.length?n[o].from:t;for(let d=h,f,p,m;d<u;d++)if(p=va[f=i.charCodeAt(d)])if(p<0){for(let g=a-3;g>=0;g-=3)if(dt[g+1]==-p){let y=dt[g+2],b=y&2?s:y&4?y&1?r:s:0;b&&(H[d]=H[dt[g]]=b),a=g;break}}else{if(dt.length==189)break;dt[a++]=d,dt[a++]=f,dt[a++]=c}else if((m=H[d])==2||m==1){let g=m==s;c=g?0:1;for(let y=a-3;y>=0;y-=3){let b=dt[y+2];if(b&2)break;if(g)dt[y+2]|=2;else{if(b&4)break;dt[y+2]|=4}}}}}function T2(i,e,t,n){for(let s=0,r=n;s<=t.length;s++){let o=s?t[s-1].to:i,a=s<t.length?t[s].from:e;for(let c=o;c<a;){let h=H[c];if(h==256){let u=c+1;for(;;)if(u==a){if(s==t.length)break;u=t[s++].to,a=s<t.length?t[s].from:e}else if(H[u]==256)u++;else break;let d=r==1,f=(u<e?H[u]:n)==1,p=d==f?d?1:2:n;for(let m=u,g=s,y=g?t[g-1].to:i;m>c;)m==y&&(m=t[--g].from,y=g?t[g-1].to:i),H[--m]=p;c=u}else r=h,c++}}}function Sa(i,e,t,n,s,r,o){let a=n%2?2:1;if(n%2==s%2)for(let c=e,h=0;c<t;){let u=!0,d=!1;if(h==r.length||c<r[h].from){let g=H[c];g!=a&&(u=!1,d=g==16)}let f=!u&&a==1?[]:null,p=u?n:n+1,m=c;e:for(;;)if(h<r.length&&m==r[h].from){if(d)break e;let g=r[h];if(!u)for(let y=g.to,b=h+1;;){if(y==t)break e;if(b<r.length&&r[b].from==y)y=r[b++].to;else{if(H[y]==a)break e;break}}if(h++,f)f.push(g);else{g.from>c&&o.push(new Mt(c,g.from,p));let y=g.direction==ui!=!(p%2);Ca(i,y?n+1:n,s,g.inner,g.from,g.to,o),c=g.to}m=g.to}else{if(m==t||(u?H[m]!=a:H[m]==a))break;m++}f?Sa(i,c,m,n+1,s,f,o):c<m&&o.push(new Mt(c,m,p)),c=m}else for(let c=t,h=r.length;c>e;){let u=!0,d=!1;if(!h||c>r[h-1].to){let g=H[c-1];g!=a&&(u=!1,d=g==16)}let f=!u&&a==1?[]:null,p=u?n:n+1,m=c;e:for(;;)if(h&&m==r[h-1].to){if(d)break e;let g=r[--h];if(!u)for(let y=g.from,b=h;;){if(y==e)break e;if(b&&r[b-1].to==y)y=r[--b].from;else{if(H[y-1]==a)break e;break}}if(f)f.push(g);else{g.to<c&&o.push(new Mt(g.to,c,p));let y=g.direction==ui!=!(p%2);Ca(i,y?n+1:n,s,g.inner,g.from,g.to,o),c=g.from}m=g.from}else{if(m==e||(u?H[m-1]!=a:H[m-1]==a))break;m--}f?Sa(i,m,c,n+1,s,f,o):m<c&&o.push(new Mt(m,c,p)),c=m}}function Ca(i,e,t,n,s,r,o){let a=e%2?2:1;Q2(i,s,r,n,a),V2(i,s,r,n,a),T2(s,r,n,a),Sa(i,s,r,e,t,n,o)}function E2(i,e,t){if(!i)return[new Mt(0,0,e==pc?1:0)];if(e==ui&&!t.length&&!P2.test(i))return If(i.length);if(t.length)for(;i.length>H.length;)H[H.length]=256;let n=[],s=e==ui?0:1;return Ca(i,s,s,t,0,i.length,n),n}function If(i){return[new Mt(0,i,0)]}let Lf="";function Z2(i,e,t,n,s){var r;let o=n.head-i.from,a=Mt.find(e,o,(r=n.bidiLevel)!==null&&r!==void 0?r:-1,n.assoc),c=e[a],h=c.side(s,t);if(o==h){let f=a+=s?1:-1;if(f<0||f>=e.length)return null;c=e[a=f],o=c.side(!s,t),h=c.side(s,t)}let u=ve(i.text,o,c.forward(s,t));(u<c.from||u>c.to)&&(u=h),Lf=i.text.slice(Math.min(o,u),Math.max(o,u));let d=a==(s?e.length-1:0)?null:e[a+(s?1:-1)];return d&&u==h&&d.level+(s?0:1)<c.level?C.cursor(d.side(!s,t)+i.from,d.forward(s,t)?1:-1,d.level):C.cursor(u+i.from,c.forward(s,t)?-1:1,c.level)}function A2(i,e,t){for(let n=e;n<t;n++){let s=Nf(i.charCodeAt(n));if(s==1)return ui;if(s==2||s==4)return pc}return ui}const Mf=E.define(),Xf=E.define(),jf=E.define(),zf=E.define(),xa=E.define(),Wf=E.define(),Yf=E.define(),Ff=E.define({combine:i=>i.some(e=>e)}),qf=E.define({combine:i=>i.some(e=>e)}),Uf=E.define();class Pi{constructor(e,t="nearest",n="nearest",s=5,r=5,o=!1){this.range=e,this.y=t,this.x=n,this.yMargin=s,this.xMargin=r,this.isSnapshot=o}map(e){return e.empty?this:new Pi(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new Pi(C.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const ns=R.define({map:(i,e)=>i.map(e)});function Ne(i,e,t){let n=i.facet(zf);n.length?n[0](e):window.onerror&&window.onerror(String(e),t,void 0,void 0,e)}const qo=E.define({combine:i=>i.length?i[0]:!0});let B2=0;const on=E.define();class he{constructor(e,t,n,s,r){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=s,this.extension=r(this)}static define(e,t){const{eventHandlers:n,eventObservers:s,provide:r,decorations:o}=t||{};return new he(B2++,e,n,s,a=>{let c=[on.of(a)];return o&&c.push($n.of(h=>{let u=h.plugin(a);return u?o(u):A.none})),r&&c.push(r(a)),c})}static fromClass(e,t){return he.define(n=>new e(n),t)}}class ml{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(n){if(Ne(t.state,n,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){Ne(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(n){Ne(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Gf=E.define(),mc=E.define(),$n=E.define(),Hf=E.define(),gc=E.define(),Kf=E.define();function Zh(i,e){let t=i.state.facet(Kf);if(!t.length)return t;let n=t.map(r=>r instanceof Function?r(i):r),s=[];return F.spans(n,e.from,e.to,{point(){},span(r,o,a,c){let h=r-e.from,u=o-e.from,d=s;for(let f=a.length-1;f>=0;f--,c--){let p=a[f].spec.bidiIsolate,m;if(p==null&&(p=A2(e.text,h,u)),c>0&&d.length&&(m=d[d.length-1]).to==h&&m.direction==p)m.to=u,d=m.inner;else{let g={from:h,to:u,direction:p,inner:[]};d.push(g),d=g.inner}}}}),s}const Jf=E.define();function ep(i){let e=0,t=0,n=0,s=0;for(let r of i.state.facet(Jf)){let o=r(i);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(t=Math.max(t,o.right)),o.top!=null&&(n=Math.max(n,o.top)),o.bottom!=null&&(s=Math.max(s,o.bottom)))}return{left:e,right:t,top:n,bottom:s}}const ln=E.define();class Ke{constructor(e,t,n,s){this.fromA=e,this.toA=t,this.fromB=n,this.toB=s}join(e){return new Ke(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let s=e[t-1];if(!(s.fromA>n.toA)){if(s.toA<n.fromA)break;n=n.join(s),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(t.length==0)return e;let n=[];for(let s=0,r=0,o=0,a=0;;s++){let c=s==e.length?null:e[s],h=o-a,u=c?c.fromB:1e9;for(;r<t.length&&t[r]<u;){let d=t[r],f=t[r+1],p=Math.max(a,d),m=Math.min(u,f);if(p<=m&&new Ke(p+h,m+h,p,m).addToSet(n),f>u)break;r+=2}if(!c)return n;new Ke(c.fromA,c.toA,c.fromB,c.toB).addToSet(n),o=c.toA,a=c.toB}}}class vo{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=fe.empty(this.startState.doc.length);for(let r of n)this.changes=this.changes.compose(r.changes);let s=[];this.changes.iterChangedRanges((r,o,a,c)=>s.push(new Ke(r,o,a,c))),this.changedRanges=s}static create(e,t,n){return new vo(e,t,n)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class Ah extends se{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.compositionBarrier=A.none,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new de],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Ke(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:h,toA:u})=>u<this.minWidthFrom||h>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let s=-1;this.view.inputState.composing>=0&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?s=this.domChanged.newSel.head:!j2(e.changes,this.hasComposition)&&!e.selectionSet&&(s=e.state.selection.main.head));let r=s>-1?R2(this.view,e.changes,s):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:h,to:u}=this.hasComposition;n=new Ke(h,u,e.changes.mapPos(h,-1),e.changes.mapPos(u,1)).addToSet(n.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(Z.ie||Z.chrome)&&!r&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,a=this.updateDeco(),c=M2(o,a,e.changes);return n=Ke.extendWithRanges(n,c),!(this.flags&7)&&n.length==0?!1:(this.updateInner(n,e.startState.doc.length,r),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:s}=this.view;s.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let o=Z.chrome||Z.ios?{node:s.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,o),this.flags&=-8,o&&(o.written||s.selectionRange.focusNode!=o.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(o=>o.flags&=-9);let r=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let o of this.children)o instanceof Xt&&o.widget instanceof Bh&&r.push(o.dom);s.updateGaps(r)}updateChildren(e,t,n){let s=n?n.range.addToSet(e.slice()):e,r=this.childCursor(t);for(let o=s.length-1;;o--){let a=o>=0?s[o]:null;if(!a)break;let{fromA:c,toA:h,fromB:u,toB:d}=a,f,p,m,g;if(n&&n.range.fromB<d&&n.range.toB>u){let S=mn.build(this.view.state.doc,u,n.range.fromB,this.decorations,this.dynamicDecorationMap),v=mn.build(this.view.state.doc,n.range.toB,d,this.decorations,this.dynamicDecorationMap);p=S.breakAtStart,m=S.openStart,g=v.openEnd;let P=this.compositionView(n);v.breakAtStart?P.breakAfter=1:v.content.length&&P.merge(P.length,P.length,v.content[0],!1,v.openStart,0)&&(P.breakAfter=v.content[0].breakAfter,v.content.shift()),S.content.length&&P.merge(0,0,S.content[S.content.length-1],!0,0,S.openEnd)&&S.content.pop(),f=S.content.concat(P).concat(v.content)}else({content:f,breakAtStart:p,openStart:m,openEnd:g}=mn.build(this.view.state.doc,u,d,this.decorations,this.dynamicDecorationMap));let{i:y,off:b}=r.findPos(h,1),{i:k,off:w}=r.findPos(c,-1);Pf(this,k,w,y,b,f,p,m,g)}n&&this.fixCompositionDOM(n)}compositionView(e){let t=new Pt(e.text.nodeValue);t.flags|=8;for(let{deco:s}of e.marks)t=new Qt(s,[t],t.length);let n=new de;return n.append(t,0),n}fixCompositionDOM(e){let t=(r,o)=>{o.flags|=8|(o.children.some(c=>c.flags&7)?1:0),this.markedForComposition.add(o);let a=se.get(r);a&&a!=o&&(a.dom=null),o.setDOM(r)},n=this.childPos(e.range.fromB,1),s=this.children[n.i];t(e.line,s);for(let r=e.marks.length-1;r>=-1;r--)n=s.childPos(n.off,1),s=s.children[n.i],t(r>=0?e.marks[r].node:e.text,s)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let n=this.view.root.activeElement,s=n==this.dom,r=!s&&eo(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(s||t||r))return;let o=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,c=this.moveToLine(this.domAtPos(a.anchor)),h=a.empty?c:this.moveToLine(this.domAtPos(a.head));if(Z.gecko&&a.empty&&!this.hasComposition&&N2(c)){let d=document.createTextNode("");this.view.observer.ignore(()=>c.node.insertBefore(d,c.node.childNodes[c.offset]||null)),c=h=new $e(d,0),o=!0}let u=this.view.observer.selectionRange;(o||!u.focusNode||(!pn(c.node,c.offset,u.anchorNode,u.anchorOffset)||!pn(h.node,h.offset,u.focusNode,u.focusOffset))&&!this.suppressWidgetCursorChange(u,a))&&(this.view.observer.ignore(()=>{Z.android&&Z.chrome&&this.dom.contains(u.focusNode)&&X2(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let d=wo(this.view.root);if(d)if(a.empty){if(Z.gecko){let f=I2(c.node,c.offset);if(f&&f!=3){let p=ip(c.node,c.offset,f==1?1:-1);p&&(c=new $e(p.node,p.offset))}}d.collapse(c.node,c.offset),a.bidiLevel!=null&&d.caretBidiLevel!==void 0&&(d.caretBidiLevel=a.bidiLevel)}else if(d.extend){d.collapse(c.node,c.offset);try{d.extend(h.node,h.offset)}catch{}}else{let f=document.createRange();a.anchor>a.head&&([c,h]=[h,c]),f.setEnd(h.node,h.offset),f.setStart(c.node,c.offset),d.removeAllRanges(),d.addRange(f)}r&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())}),this.view.observer.setSelectionRange(c,h)),this.impreciseAnchor=c.precise?null:new $e(u.anchorNode,u.anchorOffset),this.impreciseHead=h.precise?null:new $e(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&!this.compositionBarrier.size&&pn(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=wo(e.root),{anchorNode:s,anchorOffset:r}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let o=de.find(this,t.head);if(!o)return;let a=o.posAtStart;if(t.head==a||t.head==a+o.length)return;let c=this.coordsAt(t.head,-1),h=this.coordsAt(t.head,1);if(!c||!h||c.bottom>h.top)return;let u=this.domAtPos(t.head+t.assoc);n.collapse(u.node,u.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let d=e.observer.selectionRange;e.docView.posFromDOM(d.anchorNode,d.anchorOffset)!=t.from&&n.collapse(s,r)}moveToLine(e){let t=this.dom,n;if(e.node!=t)return e;for(let s=e.offset;!n&&s<t.childNodes.length;s++){let r=se.get(t.childNodes[s]);r instanceof de&&(n=r.domAtPos(0))}for(let s=e.offset-1;!n&&s>=0;s--){let r=se.get(t.childNodes[s]);r instanceof de&&(n=r.domAtPos(r.length))}return n?new $e(n.node,n.offset,!0):e}nearest(e){for(let t=e;t;){let n=se.get(t);if(n&&n.rootView==this)return n;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let s=this.children[t];if(n<s.length||s instanceof de)break;t++,n=0}return this.children[t].domAtPos(n)}coordsAt(e,t){let n=null,s=0;for(let r=this.length,o=this.children.length-1;o>=0;o--){let a=this.children[o],c=r-a.breakAfter,h=c-a.length;if(c<e)break;h<=e&&(h<e||a.covers(-1))&&(c>e||a.covers(1))&&(!n||a instanceof de&&!(n instanceof de&&t>=0))&&(n=a,s=h),r=h}return n?n.coordsAt(e-s,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),s=this.children[t];if(!(s instanceof de))return null;for(;s.children.length;){let{i:a,off:c}=s.childPos(n,1);for(;;a++){if(a==s.children.length)return null;if((s=s.children[a]).length)break}n=c}if(!(s instanceof Pt))return null;let r=ve(s.text,n);if(r==n)return null;let o=ci(s.dom,n,r).getClientRects();for(let a=0;a<o.length;a++){let c=o[a];if(a==o.length-1||c.top<c.bottom&&c.left<c.right)return c}return null}measureVisibleLineHeights(e){let t=[],{from:n,to:s}=e,r=this.view.contentDOM.clientWidth,o=r>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,c=this.view.textDirection==re.LTR;for(let h=0,u=0;u<this.children.length;u++){let d=this.children[u],f=h+d.length;if(f>s)break;if(h>=n){let p=d.dom.getBoundingClientRect();if(t.push(p.height),o){let m=d.dom.lastChild,g=m?Zi(m):[];if(g.length){let y=g[g.length-1],b=c?y.right-p.left:p.right-y.left;b>a&&(a=b,this.minWidth=r,this.minWidthFrom=h,this.minWidthTo=f)}}}h=f+d.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?re.RTL:re.LTR}measureTextSize(){for(let r of this.children)if(r instanceof de){let o=r.measureTextSize();if(o)return o}let e=document.createElement("div"),t,n,s;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let r=Zi(e.firstChild)[0];t=e.getBoundingClientRect().height,n=r?r.width/27:7,s=r?r.height:t,e.remove()}),{lineHeight:t,charWidth:n,textHeight:s}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new _f(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,s=0;;s++){let r=s==t.viewports.length?null:t.viewports[s],o=r?r.from-1:this.length;if(o>n){let a=(t.lineBlockAt(o).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(A.replace({widget:new Bh(a),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!r)break;n=r.to+1}return A.set(e)}updateDeco(){let e=1,t=this.view.state.facet($n).map(r=>(this.dynamicDecorationMap[e++]=typeof r=="function")?r(this.view):r),n=!1,s=this.view.state.facet(Hf).map((r,o)=>{let a=typeof r=="function";return a&&(n=!0),a?r(this.view):r});for(s.length&&(this.dynamicDecorationMap[e++]=n,t.push(F.join(s))),this.decorations=[this.compositionBarrier,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}maybeCreateCompositionBarrier(){let{main:{head:e,empty:t}}=this.view.state.selection;if(!t)return!1;let n=null;for(let s of this.decorations)if(s.between(e,e,(r,o,a)=>{a.point?n=!1:a.endSide<0&&r<e&&o==e&&(n=!0)}),n===!1)break;return this.compositionBarrier=n?A.set(D2.range(e)):A.none,!!n}clearCompositionBarrier(){this.compositionBarrier=A.none}scrollIntoView(e){if(e.isSnapshot){let h=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=h.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let h of this.view.state.facet(Uf))try{if(h(this.view,e.range,e))return!0}catch(u){Ne(this.view.state,u,"scroll handler")}let{range:t}=e,n=this.coordsAt(t.head,t.empty?t.assoc:t.head>t.anchor?-1:1),s;if(!n)return;!t.empty&&(s=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(n={left:Math.min(n.left,s.left),top:Math.min(n.top,s.top),right:Math.max(n.right,s.right),bottom:Math.max(n.bottom,s.bottom)});let r=ep(this.view),o={left:n.left-r.left,top:n.top-r.top,right:n.right+r.right,bottom:n.bottom+r.bottom},{offsetWidth:a,offsetHeight:c}=this.view.scrollDOM;g2(this.view.scrollDOM,o,t.head<t.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,a),-a),Math.max(Math.min(e.yMargin,c),-c),this.view.textDirection==re.LTR)}}const D2=A.widget({side:-1,widget:hi.inline});function N2(i){return i.node.nodeType==1&&i.node.firstChild&&(i.offset==0||i.node.childNodes[i.offset-1].contentEditable=="false")&&(i.offset==i.node.childNodes.length||i.node.childNodes[i.offset].contentEditable=="false")}class Bh extends St{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function tp(i,e){let t=i.observer.selectionRange,n=t.focusNode&&ip(t.focusNode,t.focusOffset,0);if(!n)return null;let s=e-n.offset;return{from:s,to:s+n.node.nodeValue.length,node:n.node}}function R2(i,e,t){let n=tp(i,t);if(!n)return null;let{node:s,from:r,to:o}=n,a=s.nodeValue;if(/[\n\r]/.test(a)||i.state.doc.sliceString(n.from,n.to)!=a)return null;let c=e.invertedDesc,h=new Ke(c.mapPos(r),c.mapPos(o),r,o),u=[];for(let d=s.parentNode;;d=d.parentNode){let f=se.get(d);if(f instanceof Qt)u.push({node:d,deco:f.mark});else{if(f instanceof de||d.nodeName=="DIV"&&d.parentNode==i.contentDOM)return{range:h,text:s,marks:u,line:d};if(d!=i.contentDOM)u.push({node:d,deco:new Xn({inclusive:!0,attributes:C2(d),tagName:d.tagName.toLowerCase()})});else return null}}}function ip(i,e,t){if(t<=0)for(let n=i,s=e;;){if(n.nodeType==3)return{node:n,offset:s};if(n.nodeType==1&&s>0)n=n.childNodes[s-1],s=_t(n);else break}if(t>=0)for(let n=i,s=e;;){if(n.nodeType==3)return{node:n,offset:s};if(n.nodeType==1&&s<n.childNodes.length&&t>=0)n=n.childNodes[s],s=0;else break}return null}function I2(i,e){return i.nodeType!=1?0:(e&&i.childNodes[e-1].contentEditable=="false"?1:0)|(e<i.childNodes.length&&i.childNodes[e].contentEditable=="false"?2:0)}let L2=class{constructor(){this.changes=[]}compareRange(e,t){wa(e,t,this.changes)}comparePoint(e,t){wa(e,t,this.changes)}};function M2(i,e,t){let n=new L2;return F.compare(i,e,t,n),n.changes}function X2(i,e){for(let t=i;t&&t!=e;t=t.assignedSlot||t.parentNode)if(t.nodeType==1&&t.contentEditable=="false")return!0;return!1}function j2(i,e){let t=!1;return e&&i.iterChangedRanges((n,s)=>{n<e.to&&s>e.from&&(t=!0)}),t}function z2(i,e,t=1){let n=i.charCategorizer(e),s=i.doc.lineAt(e),r=e-s.from;if(s.length==0)return C.cursor(e);r==0?t=1:r==s.length&&(t=-1);let o=r,a=r;t<0?o=ve(s.text,r,!1):a=ve(s.text,r);let c=n(s.text.slice(o,a));for(;o>0;){let h=ve(s.text,o,!1);if(n(s.text.slice(h,o))!=c)break;o=h}for(;a<s.length;){let h=ve(s.text,a);if(n(s.text.slice(a,h))!=c)break;a=h}return C.range(o+s.from,a+s.from)}function W2(i,e){return e.left>i?e.left-i:Math.max(0,i-e.right)}function Y2(i,e){return e.top>i?e.top-i:Math.max(0,i-e.bottom)}function gl(i,e){return i.top<e.bottom-1&&i.bottom>e.top+1}function Dh(i,e){return e<i.top?{top:e,left:i.left,right:i.right,bottom:i.bottom}:i}function Nh(i,e){return e>i.bottom?{top:i.top,left:i.left,right:i.right,bottom:e}:i}function $a(i,e,t){let n,s,r,o,a=!1,c,h,u,d;for(let m=i.firstChild;m;m=m.nextSibling){let g=Zi(m);for(let y=0;y<g.length;y++){let b=g[y];s&&gl(s,b)&&(b=Dh(Nh(b,s.bottom),s.top));let k=W2(e,b),w=Y2(t,b);if(k==0&&w==0)return m.nodeType==3?Rh(m,e,t):$a(m,e,t);if(!n||o>w||o==w&&r>k){n=m,s=b,r=k,o=w;let S=w?t<b.top?-1:1:k?e<b.left?-1:1:0;a=!S||(S>0?y<g.length-1:y>0)}k==0?t>b.bottom&&(!u||u.bottom<b.bottom)?(c=m,u=b):t<b.top&&(!d||d.top>b.top)&&(h=m,d=b):u&&gl(u,b)?u=Nh(u,b.bottom):d&&gl(d,b)&&(d=Dh(d,b.top))}}if(u&&u.bottom>=t?(n=c,s=u):d&&d.top<=t&&(n=h,s=d),!n)return{node:i,offset:0};let f=Math.max(s.left,Math.min(s.right,e));if(n.nodeType==3)return Rh(n,f,t);if(a&&n.contentEditable!="false")return $a(n,f,t);let p=Array.prototype.indexOf.call(i.childNodes,n)+(e>=(s.left+s.right)/2?1:0);return{node:i,offset:p}}function Rh(i,e,t){let n=i.nodeValue.length,s=-1,r=1e9,o=0;for(let a=0;a<n;a++){let c=ci(i,a,a+1).getClientRects();for(let h=0;h<c.length;h++){let u=c[h];if(u.top==u.bottom)continue;o||(o=e-u.left);let d=(u.top>t?u.top-t:t-u.bottom)-1;if(u.left-1<=e&&u.right+1>=e&&d<r){let f=e>=(u.left+u.right)/2,p=f;if((Z.chrome||Z.gecko)&&ci(i,a).getBoundingClientRect().left==u.right&&(p=!f),d<=0)return{node:i,offset:a+(p?1:0)};s=a+(p?1:0),r=d}}}return{node:i,offset:s>-1?s:o>0?i.nodeValue.length:0}}function np(i,e,t,n=-1){var s,r;let o=i.contentDOM.getBoundingClientRect(),a=o.top+i.viewState.paddingTop,c,{docHeight:h}=i.viewState,{x:u,y:d}=e,f=d-a;if(f<0)return 0;if(f>h)return i.state.doc.length;for(let S=i.viewState.heightOracle.textHeight/2,v=!1;c=i.elementAtHeight(f),c.type!=Te.Text;)for(;f=n>0?c.bottom+S:c.top-S,!(f>=0&&f<=h);){if(v)return t?null:0;v=!0,n=-n}d=a+f;let p=c.from;if(p<i.viewport.from)return i.viewport.from==0?0:t?null:Ih(i,o,c,u,d);if(p>i.viewport.to)return i.viewport.to==i.state.doc.length?i.state.doc.length:t?null:Ih(i,o,c,u,d);let m=i.dom.ownerDocument,g=i.root.elementFromPoint?i.root:m,y=g.elementFromPoint(u,d);y&&!i.contentDOM.contains(y)&&(y=null),y||(u=Math.max(o.left+1,Math.min(o.right-1,u)),y=g.elementFromPoint(u,d),y&&!i.contentDOM.contains(y)&&(y=null));let b,k=-1;if(y&&((s=i.docView.nearest(y))===null||s===void 0?void 0:s.isEditable)!=!1){if(m.caretPositionFromPoint){let S=m.caretPositionFromPoint(u,d);S&&({offsetNode:b,offset:k}=S)}else if(m.caretRangeFromPoint){let S=m.caretRangeFromPoint(u,d);S&&({startContainer:b,startOffset:k}=S,(!i.contentDOM.contains(b)||Z.safari&&F2(b,k,u)||Z.chrome&&q2(b,k,u))&&(b=void 0))}}if(!b||!i.docView.dom.contains(b)){let S=de.find(i.docView,p);if(!S)return f>c.top+c.height/2?c.to:c.from;({node:b,offset:k}=$a(S.dom,u,d))}let w=i.docView.nearest(b);if(!w)return null;if(w.isWidget&&((r=w.dom)===null||r===void 0?void 0:r.nodeType)==1){let S=w.dom.getBoundingClientRect();return e.y<S.top||e.y<=S.bottom&&e.x<=(S.left+S.right)/2?w.posAtStart:w.posAtEnd}else return w.localPosFromDOM(b,k)+w.posAtStart}function Ih(i,e,t,n,s){let r=Math.round((n-e.left)*i.defaultCharacterWidth);if(i.lineWrapping&&t.height>i.defaultLineHeight*1.5){let a=i.viewState.heightOracle.textHeight,c=Math.floor((s-t.top-(i.defaultLineHeight-a)*.5)/a);r+=c*i.viewState.heightOracle.lineLength}let o=i.state.sliceDoc(t.from,t.to);return t.from+da(o,r,i.state.tabSize)}function F2(i,e,t){let n;if(i.nodeType!=3||e!=(n=i.nodeValue.length))return!1;for(let s=i.nextSibling;s;s=s.nextSibling)if(s.nodeType!=1||s.nodeName!="BR")return!1;return ci(i,n-1,n).getBoundingClientRect().left>t}function q2(i,e,t){if(e!=0)return!1;for(let s=i;;){let r=s.parentNode;if(!r||r.nodeType!=1||r.firstChild!=s)return!1;if(r.classList.contains("cm-line"))break;s=r}let n=i.nodeType==1?i.getBoundingClientRect():ci(i,0,Math.max(i.nodeValue.length,1)).getBoundingClientRect();return t-n.left>5}function _a(i,e){let t=i.lineBlockAt(e);if(Array.isArray(t.type)){for(let n of t.type)if(n.to>e||n.to==e&&(n.to==t.to||n.type==Te.Text))return n}return t}function U2(i,e,t,n){let s=_a(i,e.head),r=!n||s.type!=Te.Text||!(i.lineWrapping||s.widgetLineBreaks)?null:i.coordsAtPos(e.assoc<0&&e.head>s.from?e.head-1:e.head);if(r){let o=i.dom.getBoundingClientRect(),a=i.textDirectionAt(s.from),c=i.posAtCoords({x:t==(a==re.LTR)?o.right-1:o.left+1,y:(r.top+r.bottom)/2});if(c!=null)return C.cursor(c,t?-1:1)}return C.cursor(t?s.to:s.from,t?-1:1)}function Lh(i,e,t,n){let s=i.state.doc.lineAt(e.head),r=i.bidiSpans(s),o=i.textDirectionAt(s.from);for(let a=e,c=null;;){let h=Z2(s,r,o,a,t),u=Lf;if(!h){if(s.number==(t?i.state.doc.lines:1))return a;u=`
8
+ `,s=i.state.doc.line(s.number+(t?1:-1)),r=i.bidiSpans(s),h=i.visualLineSide(s,!t)}if(c){if(!c(u))return a}else{if(!n)return h;c=n(u)}a=h}}function G2(i,e,t){let n=i.state.charCategorizer(e),s=n(t);return r=>{let o=n(r);return s==le.Space&&(s=o),s==o}}function H2(i,e,t,n){let s=e.head,r=t?1:-1;if(s==(t?i.state.doc.length:0))return C.cursor(s,e.assoc);let o=e.goalColumn,a,c=i.contentDOM.getBoundingClientRect(),h=i.coordsAtPos(s,e.assoc||-1),u=i.documentTop;if(h)o==null&&(o=h.left-c.left),a=r<0?h.top:h.bottom;else{let p=i.viewState.lineBlockAt(s);o==null&&(o=Math.min(c.right-c.left,i.defaultCharacterWidth*(s-p.from))),a=(r<0?p.top:p.bottom)+u}let d=c.left+o,f=n??i.viewState.heightOracle.textHeight>>1;for(let p=0;;p+=10){let m=a+(f+p)*r,g=np(i,{x:d,y:m},!1,r);if(m<c.top||m>c.bottom||(r<0?g<s:g>s)){let y=i.docView.coordsForChar(g),b=!y||m<y.top?-1:1;return C.cursor(g,b,void 0,o)}}}function to(i,e,t){for(;;){let n=0;for(let s of i)s.between(e-1,e+1,(r,o,a)=>{if(e>r&&e<o){let c=n||t||(e-r<o-e?-1:1);e=c<0?r:o,n=c}});if(!n)return e}}function Ol(i,e,t){let n=to(i.state.facet(gc).map(s=>s(i)),t.from,e.head>t.from?-1:1);return n==t.from?t:C.cursor(n,n<t.from?1:-1)}class K2{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Z.safari&&e.contentDOM.addEventListener("input",()=>null),Z.gecko&&px(e.contentDOM.ownerDocument)}handleEvent(e){!ox(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let n=this.handlers[e];if(n){for(let s of n.observers)s(this.view,t);for(let s of n.handlers){if(t.defaultPrevented)break;if(s(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=J2(e),n=this.handlers,s=this.view.contentDOM;for(let r in t)if(r!="scroll"){let o=!t[r].handlers.length,a=n[r];a&&o!=!a.handlers.length&&(s.removeEventListener(r,this.handleEvent),a=null),a||s.addEventListener(r,this.handleEvent,{passive:o})}for(let r in n)r!="scroll"&&!t[r]&&s.removeEventListener(r,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()<this.lastEscPress+2e3)return!0;if(e.keyCode!=27&&rp.indexOf(e.keyCode)<0&&(this.view.inputState.lastEscPress=0),Z.android&&Z.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return Z.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=sp.find(n=>n.keyCode==e.keyCode))&&!e.ctrlKey||ex.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,_i(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:Z.safari&&!Z.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Mh(i,e){return(t,n)=>{try{return e.call(i,n,t)}catch(s){Ne(t.state,s)}}}function J2(i){let e=Object.create(null);function t(n){return e[n]||(e[n]={observers:[],handlers:[]})}for(let n of i){let s=n.spec;if(s&&s.domEventHandlers)for(let r in s.domEventHandlers){let o=s.domEventHandlers[r];o&&t(r).handlers.push(Mh(n.value,o))}if(s&&s.domEventObservers)for(let r in s.domEventObservers){let o=s.domEventObservers[r];o&&t(r).observers.push(Mh(n.value,o))}}for(let n in rt)t(n).handlers.push(rt[n]);for(let n in ot)t(n).observers.push(ot[n]);return e}const sp=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],ex="dthko",rp=[16,17,18,20,91,92,224,225],ss=6;function rs(i){return Math.max(0,i)*.7+8}function tx(i,e){return Math.max(Math.abs(i.clientX-e.clientX),Math.abs(i.clientY-e.clientY))}class ix{constructor(e,t,n,s){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=s,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=O2(e.contentDOM),this.atoms=e.state.facet(gc).map(o=>o(e));let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(ee.allowMultipleSelections)&&nx(e,t),this.dragging=rx(e,t)&&cp(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var t;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&tx(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let n=0,s=0,r=((t=this.scrollParent)===null||t===void 0?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},o=ep(this.view);e.clientX-o.left<=r.left+ss?n=-rs(r.left-e.clientX):e.clientX+o.right>=r.right-ss&&(n=rs(e.clientX-r.right)),e.clientY-o.top<=r.top+ss?s=-rs(r.top-e.clientY):e.clientY+o.bottom>=r.bottom-ss&&(s=rs(e.clientY-r.bottom)),this.setScrollSpeed(n,s)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;n<e.ranges.length;n++){let s=e.ranges[n],r=null;if(s.empty){let o=to(this.atoms,s.from,0);o!=s.from&&(r=C.cursor(o,-1))}else{let o=to(this.atoms,s.from,-1),a=to(this.atoms,s.to,1);(o!=s.from||a!=s.to)&&(r=C.range(s.from==s.anchor?o:a,s.from==s.head?o:a))}r&&(t||(t=e.ranges.slice()),t[n]=r)}return t?C.create(t,e.mainIndex):e}select(e){let{view:t}=this,n=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!n.eq(t.state.selection,this.dragging===!1))&&this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function nx(i,e){let t=i.state.facet(Mf);return t.length?t[0](e):Z.mac?e.metaKey:e.ctrlKey}function sx(i,e){let t=i.state.facet(Xf);return t.length?t[0](e):Z.mac?!e.altKey:!e.ctrlKey}function rx(i,e){let{main:t}=i.state.selection;if(t.empty)return!1;let n=wo(i.root);if(!n||n.rangeCount==0)return!0;let s=n.getRangeAt(0).getClientRects();for(let r=0;r<s.length;r++){let o=s[r];if(o.left<=e.clientX&&o.right>=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function ox(i,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,n;t!=i.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(n=se.get(t))&&n.ignoreEvent(e))return!1;return!0}const rt=Object.create(null),ot=Object.create(null),op=Z.ie&&Z.ie_version<15||Z.ios&&Z.webkit_version<604;function lx(i){let e=i.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{i.focus(),t.remove(),lp(i,t.value)},50)}function lp(i,e){let{state:t}=i,n,s=1,r=t.toText(e),o=r.lines==t.selection.ranges.length;if(Pa!=null&&t.selection.ranges.every(c=>c.empty)&&Pa==r.toString()){let c=-1;n=t.changeByRange(h=>{let u=t.doc.lineAt(h.from);if(u.from==c)return{range:h};c=u.from;let d=t.toText((o?r.line(s++).text:e)+t.lineBreak);return{changes:{from:u.from,insert:d},range:C.cursor(h.from+d.length)}})}else o?n=t.changeByRange(c=>{let h=r.line(s++);return{changes:{from:c.from,to:c.to,insert:h.text},range:C.cursor(c.from+h.length)}}):n=t.replaceSelection(r);i.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}ot.scroll=i=>{i.inputState.lastScrollTop=i.scrollDOM.scrollTop,i.inputState.lastScrollLeft=i.scrollDOM.scrollLeft};rt.keydown=(i,e)=>(i.inputState.setSelectionOrigin("select"),e.keyCode==27&&(i.inputState.lastEscPress=Date.now()),!1);ot.touchstart=(i,e)=>{i.inputState.lastTouchTime=Date.now(),i.inputState.setSelectionOrigin("select.pointer")};ot.touchmove=i=>{i.inputState.setSelectionOrigin("select.pointer")};rt.mousedown=(i,e)=>{if(i.observer.flush(),i.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let n of i.state.facet(jf))if(t=n(i,e),t)break;if(!t&&e.button==0&&(t=hx(i,e)),t){let n=!i.hasFocus;i.inputState.startMouseSelection(new ix(i,e,t,n)),n&&i.observer.ignore(()=>Cf(i.contentDOM));let s=i.inputState.mouseSelection;if(s)return s.start(e),s.dragging===!1}return!1};function Xh(i,e,t,n){if(n==1)return C.cursor(e,t);if(n==2)return z2(i.state,e,t);{let s=de.find(i.docView,e),r=i.state.doc.lineAt(s?s.posAtEnd:e),o=s?s.posAtStart:r.from,a=s?s.posAtEnd:r.to;return a<i.state.doc.length&&a==r.to&&a++,C.range(o,a)}}let ap=(i,e)=>i>=e.top&&i<=e.bottom,jh=(i,e,t)=>ap(e,t)&&i>=t.left&&i<=t.right;function ax(i,e,t,n){let s=de.find(i.docView,e);if(!s)return 1;let r=e-s.posAtStart;if(r==0)return 1;if(r==s.length)return-1;let o=s.coordsAt(r,-1);if(o&&jh(t,n,o))return-1;let a=s.coordsAt(r,1);return a&&jh(t,n,a)?1:o&&ap(n,o)?-1:1}function zh(i,e){let t=i.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:ax(i,t,e.clientX,e.clientY)}}const cx=Z.ie&&Z.ie_version<=11;let Wh=null,Yh=0,Fh=0;function cp(i){if(!cx)return i.detail;let e=Wh,t=Fh;return Wh=i,Fh=Date.now(),Yh=!e||t>Date.now()-400&&Math.abs(e.clientX-i.clientX)<2&&Math.abs(e.clientY-i.clientY)<2?(Yh+1)%3:1}function hx(i,e){let t=zh(i,e),n=cp(e),s=i.state.selection;return{update(r){r.docChanged&&(t.pos=r.changes.mapPos(t.pos),s=s.map(r.changes))},get(r,o,a){let c=zh(i,r),h,u=Xh(i,c.pos,c.bias,n);if(t.pos!=c.pos&&!o){let d=Xh(i,t.pos,t.bias,n),f=Math.min(d.from,u.from),p=Math.max(d.to,u.to);u=f<u.from?C.range(f,p):C.range(p,f)}return o?s.replaceRange(s.main.extend(u.from,u.to)):a&&n==1&&s.ranges.length>1&&(h=ux(s,c.pos))?h:a?s.addRange(u):C.create([u])}}}function ux(i,e){for(let t=0;t<i.ranges.length;t++){let{from:n,to:s}=i.ranges[t];if(n<=e&&s>=e)return C.create(i.ranges.slice(0,t).concat(i.ranges.slice(t+1)),i.mainIndex==t?0:i.mainIndex-(i.mainIndex>t?1:0))}return null}rt.dragstart=(i,e)=>{let{selection:{main:t}}=i.state;if(e.target.draggable){let s=i.docView.nearest(e.target);if(s&&s.isWidget){let r=s.posAtStart,o=r+s.length;(r>=t.to||o<=t.from)&&(t=C.range(r,o))}}let{inputState:n}=i;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",i.state.sliceDoc(t.from,t.to)),e.dataTransfer.effectAllowed="copyMove"),!1};rt.dragend=i=>(i.inputState.draggedContent=null,!1);function qh(i,e,t,n){if(!t)return;let s=i.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:r}=i.inputState,o=n&&r&&sx(i,e)?{from:r.from,to:r.to}:null,a={from:s,insert:t},c=i.state.changes(o?[o,a]:a);i.focus(),i.dispatch({changes:c,selection:{anchor:c.mapPos(s,-1),head:c.mapPos(s,1)},userEvent:o?"move.drop":"input.drop"}),i.inputState.draggedContent=null}rt.drop=(i,e)=>{if(!e.dataTransfer)return!1;if(i.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let n=Array(t.length),s=0,r=()=>{++s==t.length&&qh(i,e,n.filter(o=>o!=null).join(i.state.lineBreak),!1)};for(let o=0;o<t.length;o++){let a=new FileReader;a.onerror=r,a.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(n[o]=a.result),r()},a.readAsText(t[o])}return!0}else{let n=e.dataTransfer.getData("Text");if(n)return qh(i,e,n,!0),!0}return!1};rt.paste=(i,e)=>{if(i.state.readOnly)return!0;i.observer.flush();let t=op?null:e.clipboardData;return t?(lp(i,t.getData("text/plain")||t.getData("text/uri-list")),!0):(lx(i),!1)};function dx(i,e){let t=i.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=e,n.focus(),n.selectionEnd=e.length,n.selectionStart=0,setTimeout(()=>{n.remove(),i.focus()},50)}function fx(i){let e=[],t=[],n=!1;for(let s of i.selection.ranges)s.empty||(e.push(i.sliceDoc(s.from,s.to)),t.push(s));if(!e.length){let s=-1;for(let{from:r}of i.selection.ranges){let o=i.doc.lineAt(r);o.number>s&&(e.push(o.text),t.push({from:o.from,to:Math.min(i.doc.length,o.to+1)})),s=o.number}n=!0}return{text:e.join(i.lineBreak),ranges:t,linewise:n}}let Pa=null;rt.copy=rt.cut=(i,e)=>{let{text:t,ranges:n,linewise:s}=fx(i.state);if(!t&&!s)return!1;Pa=s?t:null,e.type=="cut"&&!i.state.readOnly&&i.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let r=op?null:e.clipboardData;return r?(r.clearData(),r.setData("text/plain",t),!0):(dx(i,t),!1)};const hp=Et.define();function up(i,e){let t=[];for(let n of i.facet(Yf)){let s=n(i,e);s&&t.push(s)}return t?i.update({effects:t,annotations:hp.of(!0)}):null}function dp(i){setTimeout(()=>{let e=i.hasFocus;if(e!=i.inputState.notifiedFocused){let t=up(i.state,e);t?i.dispatch(t):i.update([])}},10)}ot.focus=i=>{i.inputState.lastFocusTime=Date.now(),!i.scrollDOM.scrollTop&&(i.inputState.lastScrollTop||i.inputState.lastScrollLeft)&&(i.scrollDOM.scrollTop=i.inputState.lastScrollTop,i.scrollDOM.scrollLeft=i.inputState.lastScrollLeft),dp(i)};ot.blur=i=>{i.observer.clearSelectionRange(),dp(i)};ot.compositionstart=ot.compositionupdate=i=>{i.inputState.compositionFirstChange==null&&(i.inputState.compositionFirstChange=!0),i.inputState.composing<0&&(i.inputState.composing=0,i.docView.maybeCreateCompositionBarrier()&&(i.update([]),i.docView.clearCompositionBarrier()))};ot.compositionend=i=>{i.inputState.composing=-1,i.inputState.compositionEndedAt=Date.now(),i.inputState.compositionPendingKey=!0,i.inputState.compositionPendingChange=i.observer.pendingRecords().length>0,i.inputState.compositionFirstChange=null,Z.chrome&&Z.android?i.observer.flushSoon():i.inputState.compositionPendingChange?Promise.resolve().then(()=>i.observer.flush()):setTimeout(()=>{i.inputState.composing<0&&i.docView.hasComposition&&i.update([])},50)};ot.contextmenu=i=>{i.inputState.lastContextMenu=Date.now()};rt.beforeinput=(i,e)=>{var t;let n;if(Z.chrome&&Z.android&&(n=sp.find(s=>s.inputType==e.inputType))&&(i.observer.delayAndroidKey(n.key,n.keyCode),n.key=="Backspace"||n.key=="Delete")){let s=((t=window.visualViewport)===null||t===void 0?void 0:t.height)||0;setTimeout(()=>{var r;(((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0)>s+10&&i.hasFocus&&(i.contentDOM.blur(),i.focus())},100)}return Z.ios&&e.inputType=="deleteContentForward"&&i.observer.flushSoon(),!1};const Uh=new Set;function px(i){Uh.has(i)||(Uh.add(i),i.addEventListener("copy",()=>{}),i.addEventListener("cut",()=>{}))}const Gh=["pre-wrap","normal","pre-line","break-spaces"];class mx{constructor(e){this.lineWrapping=e,this.doc=q.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Gh.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let s=e[n];s<0?n++:this.heightSamples[Math.floor(s*10)]||(t=!0,this.heightSamples[Math.floor(s*10)]=!0)}return t}refresh(e,t,n,s,r,o){let a=Gh.indexOf(e)>-1,c=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=n,this.textHeight=s,this.lineLength=r,c){this.heightSamples={};for(let h=0;h<o.length;h++){let u=o[h];u<0?h++:this.heightSamples[Math.floor(u*10)]=!0}}return c}}class gx{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class mt{constructor(e,t,n,s,r){this.from=e,this.length=t,this.top=n,this.height=s,this._content=r}get type(){return typeof this._content=="number"?Te.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Gt?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new mt(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var ne=function(i){return i[i.ByPos=0]="ByPos",i[i.ByHeight=1]="ByHeight",i[i.ByPosNoHeight=2]="ByPosNoHeight",i}(ne||(ne={}));const io=.001;class Ee{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>io&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return Ee.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,s){let r=this,o=n.doc;for(let a=s.length-1;a>=0;a--){let{fromA:c,toA:h,fromB:u,toB:d}=s[a],f=r.lineAt(c,ne.ByPosNoHeight,n.setDoc(t),0,0),p=f.to>=h?f:r.lineAt(h,ne.ByPosNoHeight,n,0,0);for(d+=p.to-h,h=p.to;a>0&&f.from<=s[a-1].toA;)c=s[a-1].fromA,u=s[a-1].fromB,a--,c<f.from&&(f=r.lineAt(c,ne.ByPosNoHeight,n,0,0));u+=f.from-c,c=f.from;let m=Oc.build(n.setDoc(o),e,u,d);r=r.replace(c,h,m)}return r.updateHeight(n,0)}static empty(){return new je(0,0)}static of(e){if(e.length==1)return e[0];let t=0,n=e.length,s=0,r=0;for(;;)if(t==n)if(s>r*2){let a=e[t-1];a.break?e.splice(--t,1,a.left,null,a.right):e.splice(--t,1,a.left,a.right),n+=1+a.break,s-=a.size}else if(r>s*2){let a=e[n];a.break?e.splice(n,1,a.left,null,a.right):e.splice(n,1,a.left,a.right),n+=2+a.break,r-=a.size}else break;else if(s<r){let a=e[t++];a&&(s+=a.size)}else{let a=e[--n];a&&(r+=a.size)}let o=0;return e[t-1]==null?(o=1,t--):e[t]==null&&(o=1,n++),new Ox(Ee.of(e.slice(0,t)),o,Ee.of(e.slice(n)))}}Ee.prototype.size=1;class fp extends Ee{constructor(e,t,n){super(e,t),this.deco=n}blockAt(e,t,n,s){return new mt(s,this.length,n,this.height,this.deco||0)}lineAt(e,t,n,s,r){return this.blockAt(0,n,s,r)}forEachLine(e,t,n,s,r,o){e<=r+this.length&&t>=r&&o(this.blockAt(0,n,s,r))}updateHeight(e,t=0,n=!1,s){return s&&s.from<=t&&s.more&&this.setHeight(e,s.heights[s.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class je extends fp{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,s){return new mt(s,this.length,n,this.height,this.breaks)}replace(e,t,n){let s=n[0];return n.length==1&&(s instanceof je||s instanceof Oe&&s.flags&4)&&Math.abs(this.length-s.length)<10?(s instanceof Oe?s=new je(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):Ee.of(n)}updateHeight(e,t=0,n=!1,s){return s&&s.from<=t&&s.more?this.setHeight(e,s.heights[s.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Oe extends Ee{constructor(e){super(e,0)}heightMetrics(e,t){let n=e.doc.lineAt(t).number,s=e.doc.lineAt(t+this.length).number,r=s-n+1,o,a=0;if(e.lineWrapping){let c=Math.min(this.height,e.lineHeight*r);o=c/r,this.length>r+1&&(a=(this.height-c)/(this.length-r-1))}else o=this.height/r;return{firstLine:n,lastLine:s,perLine:o,perChar:a}}blockAt(e,t,n,s){let{firstLine:r,lastLine:o,perLine:a,perChar:c}=this.heightMetrics(t,s);if(t.lineWrapping){let h=s+Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length),u=t.doc.lineAt(h),d=a+u.length*c,f=Math.max(n,e-d/2);return new mt(u.from,u.length,f,d,0)}else{let h=Math.max(0,Math.min(o-r,Math.floor((e-n)/a))),{from:u,length:d}=t.doc.line(r+h);return new mt(u,d,n+a*h,a,0)}}lineAt(e,t,n,s,r){if(t==ne.ByHeight)return this.blockAt(e,n,s,r);if(t==ne.ByPosNoHeight){let{from:p,to:m}=n.doc.lineAt(e);return new mt(p,m-p,0,0,0)}let{firstLine:o,perLine:a,perChar:c}=this.heightMetrics(n,r),h=n.doc.lineAt(e),u=a+h.length*c,d=h.number-o,f=s+a*d+c*(h.from-r-d);return new mt(h.from,h.length,Math.max(s,Math.min(f,s+this.height-u)),u,0)}forEachLine(e,t,n,s,r,o){e=Math.max(e,r),t=Math.min(t,r+this.length);let{firstLine:a,perLine:c,perChar:h}=this.heightMetrics(n,r);for(let u=e,d=s;u<=t;){let f=n.doc.lineAt(u);if(u==e){let m=f.number-a;d+=c*m+h*(e-r-m)}let p=c+h*f.length;o(new mt(f.from,f.length,d,p,0)),d+=p,u=f.to+1}}replace(e,t,n){let s=this.length-t;if(s>0){let r=n[n.length-1];r instanceof Oe?n[n.length-1]=new Oe(r.length+s):n.push(null,new Oe(s-1))}if(e>0){let r=n[0];r instanceof Oe?n[0]=new Oe(e+r.length):n.unshift(new Oe(e-1),null)}return Ee.of(n)}decomposeLeft(e,t){t.push(new Oe(e-1),null)}decomposeRight(e,t){t.push(null,new Oe(this.length-e-1))}updateHeight(e,t=0,n=!1,s){let r=t+this.length;if(s&&s.from<=t+this.length&&s.more){let o=[],a=Math.max(t,s.from),c=-1;for(s.from>t&&o.push(new Oe(s.from-t-1).updateHeight(e,t));a<=r&&s.more;){let u=e.doc.lineAt(a).length;o.length&&o.push(null);let d=s.heights[s.index++];c==-1?c=d:Math.abs(d-c)>=io&&(c=-2);let f=new je(u,d);f.outdated=!1,o.push(f),a+=u+1}a<=r&&o.push(null,new Oe(r-a).updateHeight(e,a));let h=Ee.of(o);return(c<0||Math.abs(h.height-this.height)>=io||Math.abs(c-this.heightMetrics(e,t).perLine)>=io)&&(e.heightChanged=!0),h}else(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class Ox extends Ee{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return this.flags&1}blockAt(e,t,n,s){let r=n+this.left.height;return e<r?this.left.blockAt(e,t,n,s):this.right.blockAt(e,t,r,s+this.left.length+this.break)}lineAt(e,t,n,s,r){let o=s+this.left.height,a=r+this.left.length+this.break,c=t==ne.ByHeight?e<o:e<a,h=c?this.left.lineAt(e,t,n,s,r):this.right.lineAt(e,t,n,o,a);if(this.break||(c?h.to<a:h.from>a))return h;let u=t==ne.ByPosNoHeight?ne.ByPosNoHeight:ne.ByPos;return c?h.join(this.right.lineAt(a,u,n,o,a)):this.left.lineAt(a,u,n,s,r).join(h)}forEachLine(e,t,n,s,r,o){let a=s+this.left.height,c=r+this.left.length+this.break;if(this.break)e<c&&this.left.forEachLine(e,t,n,s,r,o),t>=c&&this.right.forEachLine(e,t,n,a,c,o);else{let h=this.lineAt(c,ne.ByPos,n,s,r);e<h.from&&this.left.forEachLine(e,h.from-1,n,s,r,o),h.to>=e&&h.from<=t&&o(h),t>h.to&&this.right.forEachLine(h.to+1,t,n,a,c,o)}}replace(e,t,n){let s=this.left.length+this.break;if(t<s)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-s,t-s,n));let r=[];e>0&&this.decomposeLeft(e,r);let o=r.length;for(let a of n)r.push(a);if(e>0&&Hh(r,o-1),t<this.length){let a=r.length;this.decomposeRight(t,r),Hh(r,a)}return Ee.of(r)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(n++,e>=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,s=n+this.break;if(e>=s)return this.right.decomposeRight(e-s,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<s&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?Ee.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,s){let{left:r,right:o}=this,a=t+r.length+this.break,c=null;return s&&s.from<=t+r.length&&s.more?c=r=r.updateHeight(e,t,n,s):r.updateHeight(e,t,n),s&&s.from<=a+o.length&&s.more?c=o=o.updateHeight(e,a,n,s):o.updateHeight(e,a,n),c?this.balanced(r,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Hh(i,e){let t,n;i[e]==null&&(t=i[e-1])instanceof Oe&&(n=i[e+1])instanceof Oe&&i.splice(e-1,3,new Oe(t.length+1+n.length))}const yx=5;class Oc{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let n=Math.min(t,this.lineEnd),s=this.nodes[this.nodes.length-1];s instanceof je?s.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new je(n-this.pos,-1)),this.writtenTo=n,t>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let s=n.widget?n.widget.estimatedHeight:0,r=n.widget?n.widget.lineBreaks:0;s<0&&(s=this.oracle.lineHeight);let o=t-e;n.block?this.addBlock(new fp(o,s,n)):(o||r||s>=yx)&&this.addLineDeco(s,r,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new je(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new Oe(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof je)return e;let t=new je(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let s=this.ensureLine();s.length+=n,s.collapsed+=n,s.widgetHeight=Math.max(s.widgetHeight,e),s.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof je)&&!this.isCovered?this.nodes.push(new je(0,-1)):(this.writtenTo<this.pos||t==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let n=e;for(let s of this.nodes)s instanceof je&&s.updateHeight(this.oracle,n),n+=s?s.length:1;return this.nodes}static build(e,t,n,s){let r=new Oc(n,e);return F.spans(t,n,s,r,0),r.finish(n)}}function bx(i,e,t){let n=new kx;return F.compare(i,e,t,n,0),n.changes}class kx{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,s){(e<t||n&&n.heightRelevant||s&&s.heightRelevant)&&wa(e,t,this.changes,5)}}function wx(i,e){let t=i.getBoundingClientRect(),n=i.ownerDocument,s=n.defaultView||window,r=Math.max(0,t.left),o=Math.min(s.innerWidth,t.right),a=Math.max(0,t.top),c=Math.min(s.innerHeight,t.bottom);for(let h=i.parentNode;h&&h!=n.body;)if(h.nodeType==1){let u=h,d=window.getComputedStyle(u);if((u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth)&&d.overflow!="visible"){let f=u.getBoundingClientRect();r=Math.max(r,f.left),o=Math.min(o,f.right),a=Math.max(a,f.top),c=h==i.parentNode?f.bottom:Math.min(c,f.bottom)}h=d.position=="absolute"||d.position=="fixed"?u.offsetParent:u.parentNode}else if(h.nodeType==11)h=h.host;else break;return{left:r-t.left,right:Math.max(r,o)-t.left,top:a-(t.top+e),bottom:Math.max(a,c)-(t.top+e)}}function vx(i,e){let t=i.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class yl{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let s=e[n],r=t[n];if(s.from!=r.from||s.to!=r.to||s.size!=r.size)return!1}return!0}draw(e,t){return A.replace({widget:new Sx(this.size*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class Sx extends St{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class Kh{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!0,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=Jh,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=re.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(mc).some(n=>typeof n!="function"&&n.class=="cm-lineWrapping");this.heightOracle=new mx(t),this.stateDeco=e.facet($n).filter(n=>typeof n!="function"),this.heightMap=Ee.empty().applyChanges(this.stateDeco,q.empty,this.heightOracle.setDoc(e.doc),[new Ke(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=A.set(this.lineGaps.map(n=>n.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let s=n?t.head:t.anchor;if(!e.some(({from:r,to:o})=>s>=r&&s<=o)){let{from:r,to:o}=this.lineBlockAt(s);e.push(new os(r,o))}}this.viewports=e.sort((n,s)=>n.from-s.from),this.scaler=this.heightMap.height<=7e6?Jh:new $x(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:an(e,this.scaler))})}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet($n).filter(u=>typeof u!="function");let s=e.changedRanges,r=Ke.extendWithRanges(s,bx(n,this.stateDeco,e?e.changes:fe.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),this.heightMap.height!=o&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let c=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<c.from||t.range.head>c.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,t));let h=!e.changes.empty||e.flags&2||c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,this.updateForViewport(),h&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(qf)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),s=this.heightOracle,r=n.whiteSpace;this.defaultTextDirection=n.direction=="rtl"?re.RTL:re.LTR;let o=this.heightOracle.mustRefreshForWrapping(r),a=t.getBoundingClientRect(),c=o||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let h=0,u=0;if(a.width&&a.height){let{scaleX:S,scaleY:v}=Sf(t,a);(S>.005&&Math.abs(this.scaleX-S)>.005||v>.005&&Math.abs(this.scaleY-v)>.005)&&(this.scaleX=S,this.scaleY=v,h|=8,o=c=!0)}let d=(parseInt(n.paddingTop)||0)*this.scaleY,f=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=d||this.paddingBottom!=f)&&(this.paddingTop=d,this.paddingBottom=f,h|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(s.lineWrapping&&(c=!0),this.editorWidth=e.scrollDOM.clientWidth,h|=8);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=$f(e.scrollDOM);let m=(this.printing?vx:wx)(t,this.paddingTop),g=m.top-this.pixelViewport.top,y=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let b=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(b!=this.inView&&(this.inView=b,b&&(c=!0)),!this.inView&&!this.scrollTarget)return 0;let k=a.width;if((this.contentDOMWidth!=k||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,h|=8),c){let S=e.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(S)&&(o=!0),o||s.lineWrapping&&Math.abs(k-this.contentDOMWidth)>s.charWidth){let{lineHeight:v,charWidth:P,textHeight:_}=e.docView.measureTextSize();o=v>0&&s.refresh(r,v,P,_,k/P,S),o&&(e.docView.minWidth=0,h|=8)}g>0&&y>0?u=Math.max(g,y):g<0&&y<0&&(u=Math.min(g,y)),s.heightChanged=!1;for(let v of this.viewports){let P=v.from==this.viewport.from?S:e.docView.measureVisibleLineHeights(v);this.heightMap=(o?Ee.empty().applyChanges(this.stateDeco,q.empty,this.heightOracle,[new Ke(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(s,0,o,new gx(v.from,P))}s.heightChanged&&(h|=2)}let w=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return w&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(h&2||w)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),s=this.heightMap,r=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,c=new os(s.lineAt(o-n*1e3,ne.ByHeight,r,0,0).from,s.lineAt(a+(1-n)*1e3,ne.ByHeight,r,0,0).to);if(t){let{head:h}=t.range;if(h<c.from||h>c.to){let u=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),d=s.lineAt(h,ne.ByPos,r,0,0),f;t.y=="center"?f=(d.top+d.bottom)/2-u/2:t.y=="start"||t.y=="nearest"&&h<c.from?f=d.top:f=d.bottom-u,c=new os(s.lineAt(f-1e3/2,ne.ByHeight,r,0,0).from,s.lineAt(f+u+1e3/2,ne.ByHeight,r,0,0).to)}}return c}mapViewport(e,t){let n=t.mapPos(e.from,-1),s=t.mapPos(e.to,1);return new os(this.heightMap.lineAt(n,ne.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(s,ne.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:s}=this.heightMap.lineAt(e,ne.ByPos,this.heightOracle,0,0),{bottom:r}=this.heightMap.lineAt(t,ne.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:a}=this;return(e==0||s<=o-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||r>=a+Math.max(10,Math.min(n,250)))&&s>o-2*1e3&&r<a+2*1e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let s of e)t.touchesRange(s.from,s.to)||n.push(new yl(t.mapPos(s.from),t.mapPos(s.to),s.size));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,s=n?1e4:2e3,r=s>>1,o=s<<1;if(this.defaultTextDirection!=re.LTR&&!n)return[];let a=[],c=(h,u,d,f)=>{if(u-h<r)return;let p=this.state.selection.main,m=[p.from];p.empty||m.push(p.to);for(let y of m)if(y>h&&y<u){c(h,y-10,d,f),c(y+10,u,d,f);return}let g=xx(e,y=>y.from>=d.from&&y.to<=d.to&&Math.abs(y.from-h)<r&&Math.abs(y.to-u)<r&&!m.some(b=>y.from<b&&y.to>b));if(!g){if(u<d.to&&t&&n&&t.visibleRanges.some(y=>y.from<=u&&y.to>=u)){let y=t.moveToLineBoundary(C.cursor(u),!1,!0).head;y>h&&(u=y)}g=new yl(h,u,this.gapSize(d,h,u,f))}a.push(g)};for(let h of this.viewportLines){if(h.length<o)continue;let u=Cx(h.from,h.to,this.stateDeco);if(u.total<o)continue;let d=this.scrollTarget?this.scrollTarget.range.head:null,f,p;if(n){let m=s/this.heightOracle.lineLength*this.heightOracle.lineHeight,g,y;if(d!=null){let b=as(u,d),k=((this.visibleBottom-this.visibleTop)/2+m)/h.height;g=b-k,y=b+k}else g=(this.visibleTop-h.top-m)/h.height,y=(this.visibleBottom-h.top+m)/h.height;f=ls(u,g),p=ls(u,y)}else{let m=u.total*this.heightOracle.charWidth,g=s*this.heightOracle.charWidth,y,b;if(d!=null){let k=as(u,d),w=((this.pixelViewport.right-this.pixelViewport.left)/2+g)/m;y=k-w,b=k+w}else y=(this.pixelViewport.left-g)/m,b=(this.pixelViewport.right+g)/m;f=ls(u,y),p=ls(u,b)}f>h.from&&c(h.from,f,h,u),p<h.to&&c(p,h.to,h,u)}return a}gapSize(e,t,n,s){let r=as(s,n)-as(s,t);return this.heightOracle.lineWrapping?e.height*r:s.total*this.heightOracle.charWidth*r}updateLineGaps(e){yl.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=A.set(e.map(t=>t.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];F.spans(e,this.viewport.from,this.viewport.to,{span(s,r){t.push({from:s,to:r})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some((s,r)=>s.from!=t[r].from||s.to!=t[r].to);return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||an(this.heightMap.lineAt(e,ne.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return an(this.heightMap.lineAt(this.scaler.fromDOM(e),ne.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return an(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class os{constructor(e,t){this.from=e,this.to=t}}function Cx(i,e,t){let n=[],s=i,r=0;return F.spans(t,i,e,{span(){},point(o,a){o>s&&(n.push({from:s,to:o}),r+=o-s),s=a}},20),s<e&&(n.push({from:s,to:e}),r+=e-s),{total:r,ranges:n}}function ls({total:i,ranges:e},t){if(t<=0)return e[0].from;if(t>=1)return e[e.length-1].to;let n=Math.floor(i*t);for(let s=0;;s++){let{from:r,to:o}=e[s],a=o-r;if(n<=a)return r+n;n-=a}}function as(i,e){let t=0;for(let{from:n,to:s}of i.ranges){if(e<=s){t+=e-n;break}t+=s-n}return t/i.total}function xx(i,e){for(let t of i)if(e(t))return t}const Jh={toDOM(i){return i},fromDOM(i){return i},scale:1};class $x{constructor(e,t,n){let s=0,r=0,o=0;this.viewports=n.map(({from:a,to:c})=>{let h=t.lineAt(a,ne.ByPos,e,0,0).top,u=t.lineAt(c,ne.ByPos,e,0,0).bottom;return s+=u-h,{from:a,to:c,top:h,bottom:u,domTop:0,domBottom:0}}),this.scale=(7e6-s)/(t.height-s);for(let a of this.viewports)a.domTop=o+(a.top-r)*this.scale,o=a.domBottom=a.domTop+(a.bottom-a.top),r=a.bottom}toDOM(e){for(let t=0,n=0,s=0;;t++){let r=t<this.viewports.length?this.viewports[t]:null;if(!r||e<r.top)return s+(e-n)*this.scale;if(e<=r.bottom)return r.domTop+(e-r.top);n=r.bottom,s=r.domBottom}}fromDOM(e){for(let t=0,n=0,s=0;;t++){let r=t<this.viewports.length?this.viewports[t]:null;if(!r||e<r.domTop)return n+(e-s)/this.scale;if(e<=r.domBottom)return r.top+(e-r.domTop);n=r.bottom,s=r.domBottom}}}function an(i,e){if(e.scale==1)return i;let t=e.toDOM(i.top),n=e.toDOM(i.bottom);return new mt(i.from,i.length,t,n-t,Array.isArray(i._content)?i._content.map(s=>an(s,e)):i._content)}const cs=E.define({combine:i=>i.join(" ")}),Qa=E.define({combine:i=>i.indexOf(!0)>-1}),Va=qt.newName(),pp=qt.newName(),mp=qt.newName(),gp={"&light":"."+pp,"&dark":"."+mp};function Ta(i,e,t){return new qt(e,{finish(n){return/&/.test(n)?n.replace(/&\w*/,s=>{if(s=="&")return i;if(!t||!t[s])throw new RangeError(`Unsupported selector: ${s}`);return t[s]}):i+" "+n}})}const _x=Ta("."+Va,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},gp),cn="￿";class Px{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(ee.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=cn}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let s=e;;){this.findPointBefore(n,s);let r=this.text.length;this.readNode(s);let o=s.nextSibling;if(o==t)break;let a=se.get(s),c=se.get(o);(a&&c?a.breakAfter:(a?a.breakAfter:eu(s))||eu(o)&&(s.nodeName!="BR"||s.cmIgnore)&&this.text.length>r)&&this.lineBreak(),s=o}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){let r=-1,o=1,a;if(this.lineSeparator?(r=t.indexOf(this.lineSeparator,n),o=this.lineSeparator.length):(a=s.exec(t))&&(r=a.index,o=a[0].length),this.append(t.slice(n,r<0?t.length:r)),r<0)break;if(this.lineBreak(),o>1)for(let c of this.points)c.node==e&&c.pos>this.text.length&&(c.pos-=o-1);n=r+o}}readNode(e){if(e.cmIgnore)return;let t=se.get(e),n=t&&t.overrideDOMText;if(n!=null){this.findPointInside(e,n.length);for(let s=n.iter();!s.next().done;)s.lineBreak?this.lineBreak():this.append(s.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(e.nodeType==3?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(Qx(e,n.node,n.offset)?t:0))}}function Qx(i,e,t){for(;;){if(!e||t<_t(e))return!1;if(e==i)return!0;t=xn(e)+1,e=e.parentNode}}function eu(i){return i.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(i.nodeName)}class tu{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class Vx{constructor(e,t,n,s){this.typeOver=s,this.bounds=null,this.text="";let{impreciseHead:r,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let a=r||o?[]:Zx(e),c=new Px(a,e.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=Ax(a,this.bounds.from)}else{let a=e.observer.selectionRange,c=r&&r.node==a.focusNode&&r.offset==a.focusOffset||!ma(e.contentDOM,a.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),h=o&&o.node==a.anchorNode&&o.offset==a.anchorOffset||!ma(e.contentDOM,a.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),u=e.viewport;if((Z.ios||Z.chrome)&&e.state.selection.main.empty&&c!=h&&(u.from>0||u.to<e.state.doc.length)){let d=Math.min(c,h),f=Math.max(c,h),p=u.from-d,m=u.to-f;(p==0||p==1||d==0)&&(m==0||m==-1||f==e.state.doc.length)&&(c=0,h=e.state.doc.length)}this.newSel=C.single(h,c)}}}function Op(i,e){let t,{newSel:n}=e,s=i.state.selection.main,r=i.inputState.lastKeyTime>Date.now()-100?i.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:a}=e.bounds,c=s.from,h=null;(r===8||Z.android&&e.text.length<a-o)&&(c=s.to,h="end");let u=Ex(i.state.doc.sliceString(o,a,cn),e.text,c-o,h);u&&(Z.chrome&&r==13&&u.toB==u.from+2&&e.text.slice(u.from,u.toB)==cn+cn&&u.toB--,t={from:o+u.from,to:o+u.toA,insert:q.of(e.text.slice(u.from,u.toB).split(cn))})}else n&&(!i.hasFocus&&i.state.facet(qo)||n.main.eq(s))&&(n=null);if(!t&&!n)return!1;if(!t&&e.typeOver&&!s.empty&&n&&n.main.empty?t={from:s.from,to:s.to,insert:i.state.doc.slice(s.from,s.to)}:t&&t.from>=s.from&&t.to<=s.to&&(t.from!=s.from||t.to!=s.to)&&s.to-s.from-(t.to-t.from)<=4?t={from:s.from,to:s.to,insert:i.state.doc.slice(s.from,t.from).append(t.insert).append(i.state.doc.slice(t.to,s.to))}:(Z.mac||Z.android)&&t&&t.from==t.to&&t.from==s.head-1&&/^\. ?$/.test(t.insert.toString())&&i.contentDOM.getAttribute("autocorrect")=="off"?(n&&t.insert.length==2&&(n=C.single(n.main.anchor-1,n.main.head-1)),t={from:s.from,to:s.to,insert:q.of([" "])}):Z.chrome&&t&&t.from==t.to&&t.from==s.head&&t.insert.toString()==`
9
+ `&&i.lineWrapping&&(n&&(n=C.single(n.main.anchor-1,n.main.head-1)),t={from:s.from,to:s.to,insert:q.of([" "])}),t){if(Z.ios&&i.inputState.flushIOSKey(t)||Z.android&&(t.to==s.to&&(t.from==s.from||t.from==s.from-1&&i.state.sliceDoc(t.from,s.from)==" ")&&t.insert.length==1&&t.insert.lines==2&&_i(i.contentDOM,"Enter",13)||(t.from==s.from-1&&t.to==s.to&&t.insert.length==0||r==8&&t.insert.length<t.to-t.from&&t.to>s.head)&&_i(i.contentDOM,"Backspace",8)||t.from==s.from&&t.to==s.to+1&&t.insert.length==0&&_i(i.contentDOM,"Delete",46)))return!0;let o=t.insert.toString();i.inputState.composing>=0&&i.inputState.composing++;let a,c=()=>a||(a=Tx(i,t,n));return i.state.facet(Wf).some(h=>h(i,t.from,t.to,o,c))||i.dispatch(c()),!0}else if(n&&!n.main.eq(s)){let o=!1,a="select";return i.inputState.lastSelectionTime>Date.now()-50&&(i.inputState.lastSelectionOrigin=="select"&&(o=!0),a=i.inputState.lastSelectionOrigin),i.dispatch({selection:n,scrollIntoView:o,userEvent:a}),!0}else return!1}function Tx(i,e,t){let n,s=i.state,r=s.selection.main;if(e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&i.inputState.composing<0){let a=r.from<e.from?s.sliceDoc(r.from,e.from):"",c=r.to>e.to?s.sliceDoc(e.to,r.to):"";n=s.replaceSelection(i.state.toText(a+e.insert.sliceString(0,void 0,i.state.lineBreak)+c))}else{let a=s.changes(e),c=t&&t.main.to<=a.newLength?t.main:void 0;if(s.selection.ranges.length>1&&i.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){let h=i.state.sliceDoc(e.from,e.to),u,d=t&&tp(i,t.main.head);if(d){let m=e.insert.length-(e.to-e.from);u={from:d.from,to:d.to-m}}else u=i.state.doc.lineAt(r.head);let f=r.to-e.to,p=r.to-r.from;n=s.changeByRange(m=>{if(m.from==r.from&&m.to==r.to)return{changes:a,range:c||m.map(a)};let g=m.to-f,y=g-h.length;if(m.to-m.from!=p||i.state.sliceDoc(y,g)!=h||m.to>=u.from&&m.from<=u.to)return{range:m};let b=s.changes({from:y,to:g,insert:e.insert}),k=m.to-r.to;return{changes:b,range:c?C.range(Math.max(0,c.anchor+k),Math.max(0,c.head+k)):m.map(b)}})}else n={changes:a,selection:c&&s.selection.replaceRange(c)}}let o="input.type";return(i.composing||i.inputState.compositionPendingChange&&i.inputState.compositionEndedAt>Date.now()-50)&&(i.inputState.compositionPendingChange=!1,o+=".compose",i.inputState.compositionFirstChange&&(o+=".start",i.inputState.compositionFirstChange=!1)),s.update(n,{userEvent:o,scrollIntoView:!0})}function Ex(i,e,t,n){let s=Math.min(i.length,e.length),r=0;for(;r<s&&i.charCodeAt(r)==e.charCodeAt(r);)r++;if(r==s&&i.length==e.length)return null;let o=i.length,a=e.length;for(;o>0&&a>0&&i.charCodeAt(o-1)==e.charCodeAt(a-1);)o--,a--;if(n=="end"){let c=Math.max(0,r-Math.min(o,a));t-=o+c-r}if(o<r&&i.length<e.length){let c=t<=r&&t>=o?r-t:0;r-=c,a=r+(a-o),o=r}else if(a<r){let c=t<=r&&t>=a?r-t:0;r-=c,o=r+(o-a),a=r}return{from:r,toA:o,toB:a}}function Zx(i){let e=[];if(i.root.activeElement!=i.contentDOM)return e;let{anchorNode:t,anchorOffset:n,focusNode:s,focusOffset:r}=i.observer.selectionRange;return t&&(e.push(new tu(t,n)),(s!=t||r!=n)&&e.push(new tu(s,r))),e}function Ax(i,e){if(i.length==0)return null;let t=i[0].pos,n=i.length==2?i[1].pos:t;return t>-1&&n>-1?C.single(t+e,n+e):null}const Bx={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},bl=Z.ie&&Z.ie_version<=11;class Dx{constructor(e){this.view=e,this.active=!1,this.selectionRange=new y2,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let n of t)this.queue.push(n);(Z.ie&&Z.ie_version<=11||Z.ios&&e.composing)&&t.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),bl&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){e.type=="change"&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,s=this.selectionRange;if(n.state.facet(qo)?n.root.activeElement!=this.dom:!eo(n.dom,s))return;let r=s.anchorNode&&n.docView.nearest(s.anchorNode);if(r&&r.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(Z.ie&&Z.ie_version<=11||Z.android&&Z.chrome)&&!n.state.selection.main.empty&&s.focusNode&&pn(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=Z.safari&&e.root.nodeType==11&&p2(this.dom.ownerDocument)==this.dom&&Nx(this.view)||wo(e.root);if(!t||this.selectionRange.eq(t))return!1;let n=eo(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&k2(this.dom,t)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(t),n&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(n.nodeType==1)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else if(n.nodeType==11)n=n.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);for(let n of this.scrollTargets=t)n.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Bx),bl&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),bl&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;if(!this.delayedAndroidKey){let s=()=>{let r=this.delayedAndroidKey;r&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=r.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&r.force&&_i(this.dom,r.key,r.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(s)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(!((n=this.delayedAndroidKey)===null||n===void 0)&&n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,s=!1;for(let r of e){let o=this.readMutation(r);o&&(o.typeOver&&(s=!0),t==-1?{from:t,to:n}=o:(t=Math.min(o.from,t),n=Math.max(o.to,n)))}return{from:t,to:n,typeOver:s}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),s=this.selectionChanged&&eo(this.dom,this.selectionRange);if(e<0&&!s)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let r=new Vx(this.view,e,t,n);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,s=Op(this.view,t);return this.view.state==n&&this.view.update([]),s}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let n=iu(t,e.previousSibling||e.target.previousSibling,-1),s=iu(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:s?t.posBefore(s):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(n=this.resizeScroll)===null||n===void 0||n.disconnect();for(let s of this.scrollTargets)s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function iu(i,e,t){for(;e;){let n=se.get(e);if(n&&n.parent==i)return n;let s=e.parentNode;e=s!=i.dom?s:t>0?e.nextSibling:e.previousSibling}return null}function Nx(i){let e=null;function t(c){c.preventDefault(),c.stopImmediatePropagation(),e=c.getTargetRanges()[0]}if(i.contentDOM.addEventListener("beforeinput",t,!0),i.dom.ownerDocument.execCommand("indent"),i.contentDOM.removeEventListener("beforeinput",t,!0),!e)return null;let n=e.startContainer,s=e.startOffset,r=e.endContainer,o=e.endOffset,a=i.docView.domAtPos(i.state.selection.main.anchor);return pn(a.node,a.offset,r,o)&&([n,s,r,o]=[r,o,n,s]),{anchorNode:n,anchorOffset:s,focusNode:r,focusOffset:o}}class V{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(n=>n.forEach(s=>t(s,this)))||(n=>this.update(n)),this.dispatch=this.dispatch.bind(this),this._root=e.root||b2(e.parent)||document,this.viewState=new Kh(e.state||ee.create(e)),e.scrollTo&&e.scrollTo.is(ns)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(on).map(n=>new ml(n));for(let n of this.plugins)n.update(this);this.observer=new Dx(this),this.inputState=new K2(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Ah(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let t=e.length==1&&e[0]instanceof ue?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,n=!1,s,r=this.state;for(let f of e){if(f.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=f.state}if(this.destroyed){this.viewState.state=r;return}let o=this.hasFocus,a=0,c=null;e.some(f=>f.annotation(hp))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,c=up(r,o),c||(a=1));let h=this.observer.delayedAndroidKey,u=null;if(h?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(u=null)):this.observer.clear(),r.facet(ee.phrases)!=this.state.facet(ee.phrases))return this.setState(r);s=vo.create(this,r,e),s.flags|=a;let d=this.viewState.scrollTarget;try{this.updateState=2;for(let f of e){if(d&&(d=d.map(f.changes)),f.scrollIntoView){let{main:p}=f.state.selection;d=new Pi(p.empty?p:C.cursor(p.head,p.head>p.anchor?-1:1))}for(let p of f.effects)p.is(ns)&&(d=p.value.clip(this.state))}this.viewState.update(s,d),this.bidiCache=So.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),t=this.docView.update(s),this.state.facet(ln)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(f=>f.isUserEvent("select.pointer")))}finally{this.updateState=0}if(s.startState.facet(cs)!=s.state.facet(cs)&&(this.viewState.mustMeasureContent=!0),(t||n||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!s.empty)for(let f of this.state.facet(xa))try{f(s)}catch(p){Ne(this.state,p,"update listener")}(c||u)&&Promise.resolve().then(()=>{c&&this.state==c.startState&&this.dispatch(c),u&&!Op(this,u)&&h.force&&_i(this.contentDOM,h.key,h.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let n of this.plugins)n.destroy(this);this.viewState=new Kh(e),this.plugins=e.facet(on).map(n=>new ml(n)),this.pluginMap.clear();for(let n of this.plugins)n.update(this);this.docView.destroy(),this.docView=new Ah(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(on),n=e.state.facet(on);if(t!=n){let s=[];for(let r of n){let o=t.indexOf(r);if(o<0)s.push(new ml(r));else{let a=this.plugins[o];a.mustUpdate=e,s.push(a)}}for(let r of this.plugins)r.mustUpdate!=e&&r.destroy(this);this.plugins=s,this.pluginMap.clear()}else for(let s of this.plugins)s.mustUpdate=e;for(let s=0;s<this.plugins.length;s++)this.plugins[s].update(this);t!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(n){Ne(this.state,n,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,s=n.scrollTop*this.scaleY,{scrollAnchorPos:r,scrollAnchorHeight:o}=this.viewState;Math.abs(s-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let a=0;;a++){if(o<0)if($f(n))r=-1,o=this.viewState.heightMap.height;else{let p=this.viewState.scrollAnchorAt(s);r=p.from,o=p.top}this.updateState=1;let c=this.viewState.measure(this);if(!c&&!this.measureRequests.length&&this.viewState.scrollTarget==null||a>5)break;let h=[];c&4||([this.measureRequests,h]=[h,this.measureRequests]);let u=h.map(p=>{try{return p.read(this)}catch(m){return Ne(this.state,m),nu}}),d=vo.create(this,this.state,[]),f=!1;d.flags|=c,t?t.flags|=c:t=d,this.updateState=2,d.empty||(this.updatePlugins(d),this.inputState.update(d),this.updateAttrs(),f=this.docView.update(d),f&&this.docViewUpdate());for(let p=0;p<h.length;p++)if(u[p]!=nu)try{let m=h[p];m.write&&m.write(u[p],this)}catch(m){Ne(this.state,m)}if(f&&this.docView.updateSelection(!0),!d.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else{let m=(r<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(r).top)-o;if(m>1||m<-1){s=s+m,n.scrollTop=s/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let a of this.state.facet(xa))a(t)}get themeClasses(){return Va+" "+(this.state.facet(Qa)?mp:pp)+" "+this.state.facet(cs)}updateAttrs(){let e=su(this,Gf,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(qo)?"true":"false",class:"cm-content",style:`${Z.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),su(this,mc,t);let n=this.observer.ignore(()=>{let s=ka(this.contentDOM,this.contentAttrs,t),r=ka(this.dom,this.editorAttrs,e);return s||r});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let s of n.effects)if(s.is(V.announce)){t&&(this.announceDOM.textContent=""),t=!1;let r=this.announceDOM.appendChild(document.createElement("div"));r.textContent=s.value}}mountStyles(){this.styleModules=this.state.facet(ln);let e=this.state.facet(V.cspNonce);qt.mount(this.root,this.styleModules.concat(_x).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(t===void 0||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find(n=>n.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return Ol(this,e,Lh(this,e,t,n))}moveByGroup(e,t){return Ol(this,e,Lh(this,e,t,n=>G2(this,e.head,n)))}visualLineSide(e,t){let n=this.bidiSpans(e),s=this.textDirectionAt(e.from),r=n[t?n.length-1:0];return C.cursor(r.side(t,s)+e.from,r.forward(!t,s)?1:-1)}moveToLineBoundary(e,t,n=!0){return U2(this,e,t,n)}moveVertically(e,t,n){return Ol(this,e,H2(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),np(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let s=this.state.doc.lineAt(e),r=this.bidiSpans(s),o=r[Mt.find(r,e-s.from,-1,t)];return Yo(n,o.dir==re.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Ff)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Rx)return If(e.length);let t=this.textDirectionAt(e.from),n;for(let r of this.bidiCache)if(r.from==e.from&&r.dir==t&&(r.fresh||Rf(r.isolates,n=Zh(this,e))))return r.order;n||(n=Zh(this,e));let s=E2(e.text,t,n);return this.bidiCache.push(new So(e.from,e.to,t,n,!0,s)),s}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Z.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Cf(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return ns.of(new Pi(typeof e=="number"?C.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return ns.of(new Pi(C.cursor(n.from),"start","start",n.top-e,t,!0))}static domEventHandlers(e){return he.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return he.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=qt.newName(),s=[cs.of(n),ln.of(Ta(`.${n}`,e))];return t&&t.dark&&s.push(Qa.of(!0)),s}static baseTheme(e){return Tt.lowest(ln.of(Ta("."+Va,e,gp)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),s=n&&se.get(n)||se.get(e);return((t=s==null?void 0:s.rootView)===null||t===void 0?void 0:t.view)||null}}V.styleModule=ln;V.inputHandler=Wf;V.scrollHandler=Uf;V.focusChangeEffect=Yf;V.perLineTextDirection=Ff;V.exceptionSink=zf;V.updateListener=xa;V.editable=qo;V.mouseSelectionStyle=jf;V.dragMovesSelection=Xf;V.clickAddsSelectionRange=Mf;V.decorations=$n;V.outerDecorations=Hf;V.atomicRanges=gc;V.bidiIsolatedRanges=Kf;V.scrollMargins=Jf;V.darkTheme=Qa;V.cspNonce=E.define({combine:i=>i.length?i[0]:""});V.contentAttributes=mc;V.editorAttributes=Gf;V.lineWrapping=V.contentAttributes.of({class:"cm-lineWrapping"});V.announce=R.define();const Rx=4096,nu={};class So{constructor(e,t,n,s,r,o){this.from=e,this.to=t,this.dir=n,this.isolates=s,this.fresh=r,this.order=o}static update(e,t){if(t.empty&&!e.some(r=>r.fresh))return e;let n=[],s=e.length?e[e.length-1].dir:re.LTR;for(let r=Math.max(0,e.length-10);r<e.length;r++){let o=e[r];o.dir==s&&!t.touchesRange(o.from,o.to)&&n.push(new So(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return n}}function su(i,e,t){for(let n=i.state.facet(e),s=n.length-1;s>=0;s--){let r=n[s],o=typeof r=="function"?r(i):r;o&&ba(o,t)}return t}const Ix=Z.mac?"mac":Z.windows?"win":Z.linux?"linux":"key";function Lx(i,e){const t=i.split(/-(?!$)/);let n=t[t.length-1];n=="Space"&&(n=" ");let s,r,o,a;for(let c=0;c<t.length-1;++c){const h=t[c];if(/^(cmd|meta|m)$/i.test(h))a=!0;else if(/^a(lt)?$/i.test(h))s=!0;else if(/^(c|ctrl|control)$/i.test(h))r=!0;else if(/^s(hift)?$/i.test(h))o=!0;else if(/^mod$/i.test(h))e=="mac"?a=!0:r=!0;else throw new Error("Unrecognized modifier name: "+h)}return s&&(n="Alt-"+n),r&&(n="Ctrl-"+n),a&&(n="Meta-"+n),o&&(n="Shift-"+n),n}function hs(i,e,t){return e.altKey&&(i="Alt-"+i),e.ctrlKey&&(i="Ctrl-"+i),e.metaKey&&(i="Meta-"+i),t!==!1&&e.shiftKey&&(i="Shift-"+i),i}const Mx=Tt.default(V.domEventHandlers({keydown(i,e){return bp(yp(e.state),i,e,"editor")}})),Xi=E.define({enables:Mx}),ru=new WeakMap;function yp(i){let e=i.facet(Xi),t=ru.get(e);return t||ru.set(e,t=zx(e.reduce((n,s)=>n.concat(s),[]))),t}function Xx(i,e,t){return bp(yp(i.state),e,i,t)}let Rt=null;const jx=4e3;function zx(i,e=Ix){let t=Object.create(null),n=Object.create(null),s=(o,a)=>{let c=n[o];if(c==null)n[o]=a;else if(c!=a)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},r=(o,a,c,h,u)=>{var d,f;let p=t[o]||(t[o]=Object.create(null)),m=a.split(/ (?!$)/).map(b=>Lx(b,e));for(let b=1;b<m.length;b++){let k=m.slice(0,b).join(" ");s(k,!0),p[k]||(p[k]={preventDefault:!0,stopPropagation:!1,run:[w=>{let S=Rt={view:w,prefix:k,scope:o};return setTimeout(()=>{Rt==S&&(Rt=null)},jx),!0}]})}let g=m.join(" ");s(g,!1);let y=p[g]||(p[g]={preventDefault:!1,stopPropagation:!1,run:((f=(d=p._any)===null||d===void 0?void 0:d.run)===null||f===void 0?void 0:f.slice())||[]});c&&y.run.push(c),h&&(y.preventDefault=!0),u&&(y.stopPropagation=!0)};for(let o of i){let a=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let h of a){let u=t[h]||(t[h]=Object.create(null));u._any||(u._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let d in u)u[d].run.push(o.any)}let c=o[e]||o.key;if(c)for(let h of a)r(h,c,o.run,o.preventDefault,o.stopPropagation),o.shift&&r(h,"Shift-"+c,o.shift,o.preventDefault,o.stopPropagation)}return t}function bp(i,e,t,n){let s=f2(e),r=ye(s,0),o=qe(r)==s.length&&s!=" ",a="",c=!1,h=!1,u=!1;Rt&&Rt.view==t&&Rt.scope==n&&(a=Rt.prefix+" ",rp.indexOf(e.keyCode)<0&&(h=!0,Rt=null));let d=new Set,f=y=>{if(y){for(let b of y.run)if(!d.has(b)&&(d.add(b),b(t,e)))return y.stopPropagation&&(u=!0),!0;y.preventDefault&&(y.stopPropagation&&(u=!0),h=!0)}return!1},p=i[n],m,g;return p&&(f(p[a+hs(s,e,!o)])?c=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(Z.windows&&e.ctrlKey&&e.altKey)&&(m=Ut[e.keyCode])&&m!=s?(f(p[a+hs(m,e,!0)])||e.shiftKey&&(g=Cn[e.keyCode])!=s&&g!=m&&f(p[a+hs(g,e,!1)]))&&(c=!0):o&&e.shiftKey&&f(p[a+hs(s,e,!0)])&&(c=!0),!c&&f(p._any)&&(c=!0)),h&&(c=!0),c&&u&&e.stopPropagation(),c}class zn{constructor(e,t,n,s,r){this.className=e,this.left=t,this.top=n,this.width=s,this.height=r}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let s=e.coordsAtPos(n.head,n.assoc||1);if(!s)return[];let r=kp(e);return[new zn(t,s.left-r.left,s.top-r.top,null,s.bottom-s.top)]}else return Wx(e,t,n)}}function kp(i){let e=i.scrollDOM.getBoundingClientRect();return{left:(i.textDirection==re.LTR?e.left:e.right-i.scrollDOM.clientWidth*i.scaleX)-i.scrollDOM.scrollLeft*i.scaleX,top:e.top-i.scrollDOM.scrollTop*i.scaleY}}function ou(i,e,t){let n=C.cursor(e);return{from:Math.max(t.from,i.moveToLineBoundary(n,!1,!0).from),to:Math.min(t.to,i.moveToLineBoundary(n,!0,!0).from),type:Te.Text}}function Wx(i,e,t){if(t.to<=i.viewport.from||t.from>=i.viewport.to)return[];let n=Math.max(t.from,i.viewport.from),s=Math.min(t.to,i.viewport.to),r=i.textDirection==re.LTR,o=i.contentDOM,a=o.getBoundingClientRect(),c=kp(i),h=o.querySelector(".cm-line"),u=h&&window.getComputedStyle(h),d=a.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),f=a.right-(u?parseInt(u.paddingRight):0),p=_a(i,n),m=_a(i,s),g=p.type==Te.Text?p:null,y=m.type==Te.Text?m:null;if(g&&(i.lineWrapping||p.widgetLineBreaks)&&(g=ou(i,n,g)),y&&(i.lineWrapping||m.widgetLineBreaks)&&(y=ou(i,s,y)),g&&y&&g.from==y.from)return k(w(t.from,t.to,g));{let v=g?w(t.from,null,g):S(p,!1),P=y?w(null,t.to,y):S(m,!0),_=[];return(g||p).to<(y||m).from-(g&&y?1:0)||p.widgetLineBreaks>1&&v.bottom+i.defaultLineHeight/2<P.top?_.push(b(d,v.bottom,f,P.top)):v.bottom<P.top&&i.elementAtHeight((v.bottom+P.top)/2).type==Te.Text&&(v.bottom=P.top=(v.bottom+P.top)/2),k(v).concat(_).concat(k(P))}function b(v,P,_,N){return new zn(e,v-c.left,P-c.top-.01,_-v,N-P+.01)}function k({top:v,bottom:P,horizontal:_}){let N=[];for(let L=0;L<_.length;L+=2)N.push(b(_[L],v,_[L+1],P));return N}function w(v,P,_){let N=1e9,L=-1e9,X=[];function M(Y,ie,Se,ge,Qe){let Ze=i.coordsAtPos(Y,Y==_.to?-2:2),ae=i.coordsAtPos(Se,Se==_.from?2:-2);!Ze||!ae||(N=Math.min(Ze.top,ae.top,N),L=Math.max(Ze.bottom,ae.bottom,L),Qe==re.LTR?X.push(r&&ie?d:Ze.left,r&&ge?f:ae.right):X.push(!r&&ge?d:ae.left,!r&&ie?f:Ze.right))}let I=v??_.from,G=P??_.to;for(let Y of i.visibleRanges)if(Y.to>I&&Y.from<G)for(let ie=Math.max(Y.from,I),Se=Math.min(Y.to,G);;){let ge=i.state.doc.lineAt(ie);for(let Qe of i.bidiSpans(ge)){let Ze=Qe.from+ge.from,ae=Qe.to+ge.from;if(Ze>=Se)break;ae>ie&&M(Math.max(Ze,ie),v==null&&Ze<=I,Math.min(ae,Se),P==null&&ae>=G,Qe.dir)}if(ie=ge.to+1,ie>=Se)break}return X.length==0&&M(I,v==null,G,P==null,i.textDirection),{top:N,bottom:L,horizontal:X}}function S(v,P){let _=a.top+(P?v.top:v.bottom);return{top:_,bottom:_,horizontal:[]}}}function Yx(i,e){return i.constructor==e.constructor&&i.eq(e)}class Fx{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(no)!=e.state.facet(no)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let t=0,n=e.facet(no);for(;t<n.length&&n[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;(e!=this.scaleX||t!=this.scaleY)&&(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some((t,n)=>!Yx(t,this.drawn[n]))){let t=this.dom.firstChild,n=0;for(let s of e)s.update&&t&&s.constructor&&this.drawn[n].constructor&&s.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(s.draw(),t);for(;t;){let s=t.nextSibling;t.remove(),t=s}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const no=E.define();function wp(i){return[he.define(e=>new Fx(e,i)),no.of(i)]}const vp=!Z.ios,_n=E.define({combine(i){return vt(i,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}});function qx(i={}){return[_n.of(i),Ux,Gx,Hx,qf.of(!0)]}function Sp(i){return i.startState.facet(_n)!=i.state.facet(_n)}const Ux=wp({above:!0,markers(i){let{state:e}=i,t=e.facet(_n),n=[];for(let s of e.selection.ranges){let r=s==e.selection.main;if(s.empty?!r||vp:t.drawRangeCursor){let o=r?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",a=s.empty?s:C.cursor(s.head,s.head>s.anchor?-1:1);for(let c of zn.forRange(i,o,a))n.push(c)}}return n},update(i,e){i.transactions.some(n=>n.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let t=Sp(i);return t&&lu(i.state,e),i.docChanged||i.selectionSet||t},mount(i,e){lu(e.state,i)},class:"cm-cursorLayer"});function lu(i,e){e.style.animationDuration=i.facet(_n).cursorBlinkRate+"ms"}const Gx=wp({above:!1,markers(i){return i.state.selection.ranges.map(e=>e.empty?[]:zn.forRange(i,"cm-selectionBackground",e)).reduce((e,t)=>e.concat(t))},update(i,e){return i.docChanged||i.selectionSet||i.viewportChanged||Sp(i)},class:"cm-selectionLayer"}),Ea={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};vp&&(Ea[".cm-line"].caretColor="transparent !important",Ea[".cm-content"]={caretColor:"transparent !important"});const Hx=Tt.highest(V.theme(Ea)),Cp=R.define({map(i,e){return i==null?null:e.mapPos(i)}}),hn=me.define({create(){return null},update(i,e){return i!=null&&(i=e.changes.mapPos(i)),e.effects.reduce((t,n)=>n.is(Cp)?n.value:t,i)}}),Kx=he.fromClass(class{constructor(i){this.view=i,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(i){var e;let t=i.state.field(hn);t==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(i.startState.field(hn)!=t||i.docChanged||i.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:i}=this,e=i.state.field(hn),t=e!=null&&i.coordsAtPos(e);if(!t)return null;let n=i.scrollDOM.getBoundingClientRect();return{left:t.left-n.left+i.scrollDOM.scrollLeft*i.scaleX,top:t.top-n.top+i.scrollDOM.scrollTop*i.scaleY,height:t.bottom-t.top}}drawCursor(i){if(this.cursor){let{scaleX:e,scaleY:t}=this.view;i?(this.cursor.style.left=i.left/e+"px",this.cursor.style.top=i.top/t+"px",this.cursor.style.height=i.height/t+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(i){this.view.state.field(hn)!=i&&this.view.dispatch({effects:Cp.of(i)})}},{eventObservers:{dragover(i){this.setDropPos(this.view.posAtCoords({x:i.clientX,y:i.clientY}))},dragleave(i){(i.target==this.view.contentDOM||!this.view.contentDOM.contains(i.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Jx(){return[hn,Kx]}function au(i,e,t,n,s){e.lastIndex=0;for(let r=i.iterRange(t,n),o=t,a;!r.next().done;o+=r.value.length)if(!r.lineBreak)for(;a=e.exec(r.value);)s(o+a.index,a)}function e$(i,e){let t=i.visibleRanges;if(t.length==1&&t[0].from==i.viewport.from&&t[0].to==i.viewport.to)return t;let n=[];for(let{from:s,to:r}of t)s=Math.max(i.state.doc.lineAt(s).from,s-e),r=Math.min(i.state.doc.lineAt(r).to,r+e),n.length&&n[n.length-1].to>=s?n[n.length-1].to=r:n.push({from:s,to:r});return n}class t${constructor(e){const{regexp:t,decoration:n,decorate:s,boundary:r,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,s)this.addMatch=(a,c,h,u)=>s(u,h,h+a[0].length,a,c);else if(typeof n=="function")this.addMatch=(a,c,h,u)=>{let d=n(a,c,h);d&&u(h,h+a[0].length,d)};else if(n)this.addMatch=(a,c,h,u)=>u(h,h+a[0].length,n);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=r,this.maxLength=o}createDeco(e){let t=new Ft,n=t.add.bind(t);for(let{from:s,to:r}of e$(e,this.maxLength))au(e.state.doc,this.regexp,s,r,(o,a)=>this.addMatch(a,e,o,n));return t.finish()}updateDeco(e,t){let n=1e9,s=-1;return e.docChanged&&e.changes.iterChanges((r,o,a,c)=>{c>e.view.viewport.from&&a<e.view.viewport.to&&(n=Math.min(a,n),s=Math.max(c,s))}),e.viewportChanged||s-n>1e3?this.createDeco(e.view):s>-1?this.updateRange(e.view,t.map(e.changes),n,s):t}updateRange(e,t,n,s){for(let r of e.visibleRanges){let o=Math.max(r.from,n),a=Math.min(r.to,s);if(a>o){let c=e.state.doc.lineAt(o),h=c.to<a?e.state.doc.lineAt(a):c,u=Math.max(r.from,c.from),d=Math.min(r.to,h.to);if(this.boundary){for(;o>c.from;o--)if(this.boundary.test(c.text[o-1-c.from])){u=o;break}for(;a<h.to;a++)if(this.boundary.test(h.text[a-h.from])){d=a;break}}let f=[],p,m=(g,y,b)=>f.push(b.range(g,y));if(c==h)for(this.regexp.lastIndex=u-c.from;(p=this.regexp.exec(c.text))&&p.index<d-c.from;)this.addMatch(p,e,p.index+c.from,m);else au(e.state.doc,this.regexp,u,d,(g,y)=>this.addMatch(y,e,g,m));t=t.update({filterFrom:u,filterTo:d,filter:(g,y)=>g<u||y>d,add:f})}}return t}}const Za=/x/.unicode!=null?"gu":"g",i$=new RegExp(`[\0-\b
10
+ --Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,Za),n$={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let kl=null;function s$(){var i;if(kl==null&&typeof document<"u"&&document.body){let e=document.body.style;kl=((i=e.tabSize)!==null&&i!==void 0?i:e.MozTabSize)!=null}return kl||!1}const so=E.define({combine(i){let e=vt(i,{render:null,specialChars:i$,addSpecialChars:null});return(e.replaceTabs=!s$())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Za)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Za)),e}});function r$(i={}){return[so.of(i),o$()]}let cu=null;function o$(){return cu||(cu=he.fromClass(class{constructor(i){this.view=i,this.decorations=A.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(i.state.facet(so)),this.decorations=this.decorator.createDeco(i)}makeDecorator(i){return new t$({regexp:i.specialChars,decoration:(e,t,n)=>{let{doc:s}=t.state,r=ye(e[0],0);if(r==9){let o=s.lineAt(n),a=t.state.tabSize,c=st(o.text,a,n-o.from);return A.replace({widget:new h$((a-c%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[r]||(this.decorationCache[r]=A.replace({widget:new c$(i,r)}))},boundary:i.replaceTabs?void 0:/[^]/})}update(i){let e=i.state.facet(so);i.startState.facet(so)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(i.view)):this.decorations=this.decorator.updateDeco(i,this.decorations)}},{decorations:i=>i.decorations}))}const l$="•";function a$(i){return i>=32?l$:i==10?"␤":String.fromCharCode(9216+i)}class c$ extends St{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=a$(this.code),n=e.state.phrase("Control character")+" "+(n$[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,n,t);if(s)return s;let r=document.createElement("span");return r.textContent=t,r.title=n,r.setAttribute("aria-label",n),r.className="cm-specialChar",r}ignoreEvent(){return!1}}class h$ extends St{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function u$(){return f$}const d$=A.line({class:"cm-activeLine"}),f$=he.fromClass(class{constructor(i){this.decorations=this.getDeco(i)}update(i){(i.docChanged||i.selectionSet)&&(this.decorations=this.getDeco(i.view))}getDeco(i){let e=-1,t=[];for(let n of i.state.selection.ranges){let s=i.lineBlockAt(n.head);s.from>e&&(t.push(d$.range(s.from)),e=s.from)}return A.set(t)}},{decorations:i=>i.decorations});class p$ extends St{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let t=e.firstChild?Zi(e.firstChild):[];if(!t.length)return null;let n=window.getComputedStyle(e.parentNode),s=Yo(t[0],n.direction!="rtl"),r=parseInt(n.lineHeight);return s.bottom-s.top>r*1.5?{left:s.left,right:s.right,top:s.top,bottom:s.top+r}:s}ignoreEvent(){return!1}}function m$(i){return he.fromClass(class{constructor(e){this.view=e,this.placeholder=i?A.set([A.widget({widget:new p$(i),side:1}).range(0)]):A.none}get decorations(){return this.view.state.doc.length?A.none:this.placeholder}},{decorations:e=>e.decorations})}const Aa=2e3;function g$(i,e,t){let n=Math.min(e.line,t.line),s=Math.max(e.line,t.line),r=[];if(e.off>Aa||t.off>Aa||e.col<0||t.col<0){let o=Math.min(e.off,t.off),a=Math.max(e.off,t.off);for(let c=n;c<=s;c++){let h=i.doc.line(c);h.length<=a&&r.push(C.range(h.from+o,h.to+a))}}else{let o=Math.min(e.col,t.col),a=Math.max(e.col,t.col);for(let c=n;c<=s;c++){let h=i.doc.line(c),u=da(h.text,o,i.tabSize,!0);if(u<0)r.push(C.cursor(h.to));else{let d=da(h.text,a,i.tabSize);r.push(C.range(h.from+u,h.from+d))}}}return r}function O$(i,e){let t=i.coordsAtPos(i.viewport.from);return t?Math.round(Math.abs((t.left-e)/i.defaultCharacterWidth)):-1}function hu(i,e){let t=i.posAtCoords({x:e.clientX,y:e.clientY},!1),n=i.state.doc.lineAt(t),s=t-n.from,r=s>Aa?-1:s==n.length?O$(i,e.clientX):st(n.text,i.state.tabSize,t-n.from);return{line:n.number,col:r,off:s}}function y$(i,e){let t=hu(i,e),n=i.state.selection;return t?{update(s){if(s.docChanged){let r=s.changes.mapPos(s.startState.doc.line(t.line).from),o=s.state.doc.lineAt(r);t={line:o.number,col:t.col,off:Math.min(t.off,o.length)},n=n.map(s.changes)}},get(s,r,o){let a=hu(i,s);if(!a)return n;let c=g$(i.state,t,a);return c.length?o?C.create(c.concat(n.ranges)):C.create(c):n}}:null}function b$(i){let e=(i==null?void 0:i.eventFilter)||(t=>t.altKey&&t.button==0);return V.mouseSelectionStyle.of((t,n)=>e(n)?y$(t,n):null)}const k$={Alt:[18,i=>!!i.altKey],Control:[17,i=>!!i.ctrlKey],Shift:[16,i=>!!i.shiftKey],Meta:[91,i=>!!i.metaKey]},w$={style:"cursor: crosshair"};function v$(i={}){let[e,t]=k$[i.key||"Alt"],n=he.fromClass(class{constructor(s){this.view=s,this.isDown=!1}set(s){this.isDown!=s&&(this.isDown=s,this.view.update([]))}},{eventObservers:{keydown(s){this.set(s.keyCode==e||t(s))},keyup(s){(s.keyCode==e||!t(s))&&this.set(!1)},mousemove(s){this.set(t(s))}}});return[n,V.contentAttributes.of(s=>{var r;return!((r=s.plugin(n))===null||r===void 0)&&r.isDown?w$:null})]}const Hi="-10000px";class xp{constructor(e,t,n,s){this.facet=t,this.createTooltipView=n,this.removeTooltipView=s,this.input=e.state.facet(t),this.tooltips=this.input.filter(o=>o);let r=null;this.tooltipViews=this.tooltips.map(o=>r=n(o,r))}update(e,t){var n;let s=e.state.facet(this.facet),r=s.filter(c=>c);if(s===this.input){for(let c of this.tooltipViews)c.update&&c.update(e);return!1}let o=[],a=t?[]:null;for(let c=0;c<r.length;c++){let h=r[c],u=-1;if(h){for(let d=0;d<this.tooltips.length;d++){let f=this.tooltips[d];f&&f.create==h.create&&(u=d)}if(u<0)o[c]=this.createTooltipView(h,c?o[c-1]:null),a&&(a[c]=!!h.above);else{let d=o[c]=this.tooltipViews[u];a&&(a[c]=t[u]),d.update&&d.update(e)}}}for(let c of this.tooltipViews)o.indexOf(c)<0&&(this.removeTooltipView(c),(n=c.destroy)===null||n===void 0||n.call(c));return t&&(a.forEach((c,h)=>t[h]=c),t.length=a.length),this.input=s,this.tooltips=r,this.tooltipViews=o,!0}}function S$(i){let{win:e}=i;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const wl=E.define({combine:i=>{var e,t,n;return{position:Z.ios?"absolute":((e=i.find(s=>s.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=i.find(s=>s.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((n=i.find(s=>s.tooltipSpace))===null||n===void 0?void 0:n.tooltipSpace)||S$}}}),uu=new WeakMap,yc=he.fromClass(class{constructor(i){this.view=i,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=i.state.facet(wl);this.position=e.position,this.parent=e.parent,this.classes=i.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new xp(i,bc,(t,n)=>this.createTooltip(t,n),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),i.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let i of this.manager.tooltipViews)this.intersectionObserver.observe(i.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(i){i.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(i,this.above);e&&this.observeIntersection();let t=e||i.geometryChanged,n=i.state.facet(wl);if(n.position!=this.position&&!this.madeAbsolute){this.position=n.position;for(let s of this.manager.tooltipViews)s.dom.style.position=this.position;t=!0}if(n.parent!=this.parent){this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer();for(let s of this.manager.tooltipViews)this.container.appendChild(s.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(i,e){let t=i.create(this.view),n=e?e.dom:null;if(t.dom.classList.add("cm-tooltip"),i.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let s=document.createElement("div");s.className="cm-tooltip-arrow",t.dom.insertBefore(s,n)}return t.dom.style.position=this.position,t.dom.style.top=Hi,t.dom.style.left="0px",this.container.insertBefore(t.dom,n),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var i,e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),(i=n.destroy)===null||i===void 0||i.call(n);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let i=this.view.dom.getBoundingClientRect(),e=1,t=1,n=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:s}=this.manager.tooltipViews[0];if(Z.gecko)n=s.offsetParent!=this.container.ownerDocument.body;else if(s.style.top==Hi&&s.style.left=="0px"){let r=s.getBoundingClientRect();n=Math.abs(r.top+1e4)>1||Math.abs(r.left)>1}}if(n||this.position=="absolute")if(this.parent){let s=this.parent.getBoundingClientRect();s.width&&s.height&&(e=s.width/this.parent.offsetWidth,t=s.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);return{editor:i,parent:this.parent?this.container.getBoundingClientRect():i,pos:this.manager.tooltips.map((s,r)=>{let o=this.manager.tooltipViews[r];return o.getCoords?o.getCoords(s.pos):this.view.coordsAtPos(s.pos)}),size:this.manager.tooltipViews.map(({dom:s})=>s.getBoundingClientRect()),space:this.view.state.facet(wl).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:n}}writeMeasure(i){var e;if(i.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let a of this.manager.tooltipViews)a.dom.style.position="absolute"}let{editor:t,space:n,scaleX:s,scaleY:r}=i,o=[];for(let a=0;a<this.manager.tooltips.length;a++){let c=this.manager.tooltips[a],h=this.manager.tooltipViews[a],{dom:u}=h,d=i.pos[a],f=i.size[a];if(!d||d.bottom<=Math.max(t.top,n.top)||d.top>=Math.min(t.bottom,n.bottom)||d.right<Math.max(t.left,n.left)-.1||d.left>Math.min(t.right,n.right)+.1){u.style.top=Hi;continue}let p=c.arrow?h.dom.querySelector(".cm-tooltip-arrow"):null,m=p?7:0,g=f.right-f.left,y=(e=uu.get(h))!==null&&e!==void 0?e:f.bottom-f.top,b=h.offset||x$,k=this.view.textDirection==re.LTR,w=f.width>n.right-n.left?k?n.left:n.right-f.width:k?Math.min(d.left-(p?14:0)+b.x,n.right-g):Math.max(n.left,d.left-g+(p?14:0)-b.x),S=this.above[a];!c.strictSide&&(S?d.top-(f.bottom-f.top)-b.y<n.top:d.bottom+(f.bottom-f.top)+b.y>n.bottom)&&S==n.bottom-d.bottom>d.top-n.top&&(S=this.above[a]=!S);let v=(S?d.top-n.top:n.bottom-d.bottom)-m;if(v<y&&h.resize!==!1){if(v<this.view.defaultLineHeight){u.style.top=Hi;continue}uu.set(h,y),u.style.height=(y=v)/r+"px"}else u.style.height&&(u.style.height="");let P=S?d.top-y-m-b.y:d.bottom+m+b.y,_=w+g;if(h.overlap!==!0)for(let N of o)N.left<_&&N.right>w&&N.top<P+y&&N.bottom>P&&(P=S?N.top-y-2-m:N.bottom+m+2);if(this.position=="absolute"?(u.style.top=(P-i.parent.top)/r+"px",u.style.left=(w-i.parent.left)/s+"px"):(u.style.top=P/r+"px",u.style.left=w/s+"px"),p){let N=d.left+(k?b.x:-b.x)-(w+14-7);p.style.left=N/s+"px"}h.overlap!==!0&&o.push({left:w,top:P,right:_,bottom:P+y}),u.classList.toggle("cm-tooltip-above",S),u.classList.toggle("cm-tooltip-below",!S),h.positioned&&h.positioned(i.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let i of this.manager.tooltipViews)i.dom.style.top=Hi}},{eventObservers:{scroll(){this.maybeMeasure()}}}),C$=V.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),x$={x:0,y:0},bc=E.define({enables:[yc,C$]}),Co=E.define({combine:i=>i.reduce((e,t)=>e.concat(t),[])});class Uo{static create(e){return new Uo(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new xp(e,Co,(t,n)=>this.createHostedView(t,n),t=>t.dom.remove())}createHostedView(e,t){let n=e.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(n.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&n.mount&&n.mount(this.view),n}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)===null||e===void 0||e.call(t)}passProp(e){let t;for(let n of this.manager.tooltipViews){let s=n[e];if(s!==void 0){if(t===void 0)t=s;else if(t!==s)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const $$=bc.compute([Co],i=>{let e=i.facet(Co);return e.length===0?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.map(t=>{var n;return(n=t.end)!==null&&n!==void 0?n:t.pos})),create:Uo.create,above:e[0].above,arrow:e.some(t=>t.arrow)}});class _${constructor(e,t,n,s,r){this.view=e,this.source=t,this.field=n,this.setHover=s,this.hoverTime=r,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,n=e.docView.nearest(t.target);if(!n)return;let s,r=1;if(n instanceof Lt)s=n.posAtStart;else{if(s=e.posAtCoords(t),s==null)return;let a=e.coordsAtPos(s);if(!a||t.y<a.top||t.y>a.bottom||t.x<a.left-e.defaultCharacterWidth||t.x>a.right+e.defaultCharacterWidth)return;let c=e.bidiSpans(e.state.doc.lineAt(s)).find(u=>u.from<=s&&u.to>=s),h=c&&c.dir==re.RTL?-1:1;r=t.x<a.left?-h:h}let o=this.source(e,s,r);if(o!=null&&o.then){let a=this.pending={pos:s};o.then(c=>{this.pending==a&&(this.pending=null,c&&!(Array.isArray(c)&&!c.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(c)?c:[c])}))},c=>Ne(e.state,c,"hover tooltip"))}else o&&!(Array.isArray(o)&&!o.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])})}get tooltip(){let e=this.view.plugin(yc),t=e?e.manager.tooltips.findIndex(n=>n.create==Uo.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,n;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:s,tooltip:r}=this;if(s.length&&r&&!P$(r.dom,e)||this.pending){let{pos:o}=s[0]||this.pending,a=(n=(t=s[0])===null||t===void 0?void 0:t.end)!==null&&n!==void 0?n:o;(o==a?this.view.posAtCoords(this.lastMove)!=o:!Q$(this.view,o,a,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:n}=this;n&&n.dom.contains(e.relatedTarget)?this.watchTooltipLeave(n.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=n=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const us=4;function P$(i,e){let t=i.getBoundingClientRect();return e.clientX>=t.left-us&&e.clientX<=t.right+us&&e.clientY>=t.top-us&&e.clientY<=t.bottom+us}function Q$(i,e,t,n,s,r){let o=i.scrollDOM.getBoundingClientRect(),a=i.documentTop+i.documentPadding.top+i.contentHeight;if(o.left>n||o.right<n||o.top>s||Math.min(o.bottom,a)<s)return!1;let c=i.posAtCoords({x:n,y:s},!1);return c>=e&&c<=t}function V$(i,e={}){let t=R.define(),n=me.define({create(){return[]},update(s,r){if(s.length&&(e.hideOnChange&&(r.docChanged||r.selection)?s=[]:e.hideOn&&(s=s.filter(o=>!e.hideOn(r,o))),r.docChanged)){let o=[];for(let a of s){let c=r.changes.mapPos(a.pos,-1,ke.TrackDel);if(c!=null){let h=Object.assign(Object.create(null),a);h.pos=c,h.end!=null&&(h.end=r.changes.mapPos(h.end)),o.push(h)}}s=o}for(let o of r.effects)o.is(t)&&(s=o.value),o.is(T$)&&(s=[]);return s},provide:s=>Co.from(s)});return[n,he.define(s=>new _$(s,i,n,t,e.hoverTime||300)),$$]}function $p(i,e){let t=i.plugin(yc);if(!t)return null;let n=t.manager.tooltips.indexOf(e);return n<0?null:t.manager.tooltipViews[n]}const T$=R.define(),du=E.define({combine(i){let e,t;for(let n of i)e=e||n.topContainer,t=t||n.bottomContainer;return{topContainer:e,bottomContainer:t}}});function Pn(i,e){let t=i.plugin(_p),n=t?t.specs.indexOf(e):-1;return n>-1?t.panels[n]:null}const _p=he.fromClass(class{constructor(i){this.input=i.state.facet(Qn),this.specs=this.input.filter(t=>t),this.panels=this.specs.map(t=>t(i));let e=i.state.facet(du);this.top=new ds(i,!0,e.topContainer),this.bottom=new ds(i,!1,e.bottomContainer),this.top.sync(this.panels.filter(t=>t.top)),this.bottom.sync(this.panels.filter(t=>!t.top));for(let t of this.panels)t.dom.classList.add("cm-panel"),t.mount&&t.mount()}update(i){let e=i.state.facet(du);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new ds(i.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new ds(i.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let t=i.state.facet(Qn);if(t!=this.input){let n=t.filter(c=>c),s=[],r=[],o=[],a=[];for(let c of n){let h=this.specs.indexOf(c),u;h<0?(u=c(i.view),a.push(u)):(u=this.panels[h],u.update&&u.update(i)),s.push(u),(u.top?r:o).push(u)}this.specs=n,this.panels=s,this.top.sync(r),this.bottom.sync(o);for(let c of a)c.dom.classList.add("cm-panel"),c.mount&&c.mount()}else for(let n of this.panels)n.update&&n.update(i)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:i=>V.scrollMargins.of(e=>{let t=e.plugin(i);return t&&{top:t.top.scrollMargin(),bottom:t.bottom.scrollMargin()}})});class ds{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=fu(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=fu(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function fu(i){let e=i.nextSibling;return i.remove(),e}const Qn=E.define({enables:_p});class Vt extends ai{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Vt.prototype.elementClass="";Vt.prototype.toDOM=void 0;Vt.prototype.mapMode=ke.TrackBefore;Vt.prototype.startSide=Vt.prototype.endSide=-1;Vt.prototype.point=!0;const ro=E.define(),E$={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>F.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},gn=E.define();function Z$(i){return[Pp(),gn.of(Object.assign(Object.assign({},E$),i))]}const Ba=E.define({combine:i=>i.some(e=>e)});function Pp(i){let e=[A$];return i&&i.fixed===!1&&e.push(Ba.of(!0)),e}const A$=he.fromClass(class{constructor(i){this.view=i,this.prevViewport=i.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=i.state.facet(gn).map(e=>new mu(i,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!i.state.facet(Ba),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),i.scrollDOM.insertBefore(this.dom,i.contentDOM)}update(i){if(this.updateGutters(i)){let e=this.prevViewport,t=i.view.viewport,n=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(n<(t.to-t.from)*.8)}i.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(Ba)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=i.view.viewport}syncGutters(i){let e=this.dom.nextSibling;i&&this.dom.remove();let t=F.iter(this.view.state.facet(ro),this.view.viewport.from),n=[],s=this.gutters.map(r=>new B$(r,this.view.viewport,-this.view.documentPadding.top));for(let r of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(r.type)){let o=!0;for(let a of r.type)if(a.type==Te.Text&&o){Da(t,n,a.from);for(let c of s)c.line(this.view,a,n);o=!1}else if(a.widget)for(let c of s)c.widget(this.view,a)}else if(r.type==Te.Text){Da(t,n,r.from);for(let o of s)o.line(this.view,r,n)}else if(r.widget)for(let o of s)o.widget(this.view,r);for(let r of s)r.finish();i&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(i){let e=i.startState.facet(gn),t=i.state.facet(gn),n=i.docChanged||i.heightChanged||i.viewportChanged||!F.eq(i.startState.facet(ro),i.state.facet(ro),i.view.viewport.from,i.view.viewport.to);if(e==t)for(let s of this.gutters)s.update(i)&&(n=!0);else{n=!0;let s=[];for(let r of t){let o=e.indexOf(r);o<0?s.push(new mu(this.view,r)):(this.gutters[o].update(i),s.push(this.gutters[o]))}for(let r of this.gutters)r.dom.remove(),s.indexOf(r)<0&&r.destroy();for(let r of s)this.dom.appendChild(r.dom);this.gutters=s}return n}destroy(){for(let i of this.gutters)i.destroy();this.dom.remove()}},{provide:i=>V.scrollMargins.of(e=>{let t=e.plugin(i);return!t||t.gutters.length==0||!t.fixed?null:e.textDirection==re.LTR?{left:t.dom.offsetWidth*e.scaleX}:{right:t.dom.offsetWidth*e.scaleX}})});function pu(i){return Array.isArray(i)?i:[i]}function Da(i,e,t){for(;i.value&&i.from<=t;)i.from==t&&e.push(i.value),i.next()}class B${constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=F.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:s}=this,r=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==s.elements.length){let a=new Qp(e,o,r,n);s.elements.push(a),s.dom.appendChild(a.dom)}else s.elements[this.i].update(e,o,r,n);this.height=t.bottom,this.i++}line(e,t,n){let s=[];Da(this.cursor,s,t.from),n.length&&(s=s.concat(n));let r=this.gutter.config.lineMarker(e,t,s);r&&s.unshift(r);let o=this.gutter;s.length==0&&!o.config.renderEmptyElements||this.addElement(e,t,s)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class mu{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,s=>{let r=s.target,o;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let c=r.getBoundingClientRect();o=(c.top+c.bottom)/2}else o=s.clientY;let a=e.lineBlockAtHeight(o-e.documentTop);t.domEventHandlers[n](e,a,s)&&s.preventDefault()});this.markers=pu(t.markers(e)),t.initialSpacer&&(this.spacer=new Qp(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=pu(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let s=this.config.updateSpacer(this.spacer.markers[0],e);s!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[s])}let n=e.view.viewport;return!F.eq(this.markers,t,n.from,n.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class Qp{constructor(e,t,n,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,s)}update(e,t,n,s){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),D$(this.markers,s)||this.setMarkers(e,s)}setMarkers(e,t){let n="cm-gutterElement",s=this.dom.firstChild;for(let r=0,o=0;;){let a=o,c=r<t.length?t[r++]:null,h=!1;if(c){let u=c.elementClass;u&&(n+=" "+u);for(let d=o;d<this.markers.length;d++)if(this.markers[d].compare(c)){a=d,h=!0;break}}else a=this.markers.length;for(;o<a;){let u=this.markers[o++];if(u.toDOM){u.destroy(s);let d=s.nextSibling;s.remove(),s=d}}if(!c)break;c.toDOM&&(h?s=s.nextSibling:this.dom.insertBefore(c.toDOM(e),s)),h&&o++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}function D$(i,e){if(i.length!=e.length)return!1;for(let t=0;t<i.length;t++)if(!i[t].compare(e[t]))return!1;return!0}const N$=E.define(),vi=E.define({combine(i){return vt(i,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let s in t){let r=n[s],o=t[s];n[s]=r?(a,c,h)=>r(a,c,h)||o(a,c,h):o}return n}})}});class vl extends Vt{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Sl(i,e){return i.state.facet(vi).formatNumber(e,i.state)}const R$=gn.compute([vi],i=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(N$)},lineMarker(e,t,n){return n.some(s=>s.toDOM)?null:new vl(Sl(e,e.state.doc.lineAt(t.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(vi)!=e.state.facet(vi),initialSpacer(e){return new vl(Sl(e,gu(e.state.doc.lines)))},updateSpacer(e,t){let n=Sl(t.view,gu(t.view.state.doc.lines));return n==e.number?e:new vl(n)},domEventHandlers:i.facet(vi).domEventHandlers}));function I$(i={}){return[vi.of(i),Pp(),R$]}function gu(i){let e=9;for(;e<i;)e=e*10+9;return e}const L$=new class extends Vt{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},M$=ro.compute(["selection"],i=>{let e=[],t=-1;for(let n of i.selection.ranges){let s=i.doc.lineAt(n.head).from;s>t&&(t=s,e.push(L$.range(s)))}return F.of(e)});function X$(){return M$}var Cl;const ri=new D;function kc(i){return E.define({combine:i?e=>e.concat(i):void 0})}const wc=new D;class Ge{constructor(e,t,n=[],s=""){this.data=e,this.name=s,ee.prototype.hasOwnProperty("tree")||Object.defineProperty(ee.prototype,"tree",{get(){return te(this)}}),this.parser=t,this.extension=[Ht.of(this),ee.languageData.of((r,o,a)=>{let c=Ou(r,o,a),h=c.type.prop(ri);if(!h)return[];let u=r.facet(h),d=c.type.prop(wc);if(d){let f=c.resolve(o-c.from,a);for(let p of d)if(p.test(f,r)){let m=r.facet(p.facet);return p.type=="replace"?m:m.concat(u)}}return u})].concat(n)}isActiveAt(e,t,n=-1){return Ou(e,t,n).type.prop(ri)==this.data}findRegions(e){let t=e.facet(Ht);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],s=(r,o)=>{if(r.prop(ri)==this.data){n.push({from:o,to:o+r.length});return}let a=r.prop(D.mounted);if(a){if(a.tree.prop(ri)==this.data){if(a.overlay)for(let c of a.overlay)n.push({from:c.from+o,to:c.to+o});else n.push({from:o,to:o+r.length});return}else if(a.overlay){let c=n.length;if(s(a.tree,a.overlay[0].from+o),n.length>c)return}}for(let c=0;c<r.children.length;c++){let h=r.children[c];h instanceof U&&s(h,r.positions[c]+o)}};return s(te(e),0),n}get allowsNesting(){return!0}}Ge.setState=R.define();function Ou(i,e,t){let n=i.facet(Ht),s=te(i).topNode;if(!n||n.allowsNesting)for(let r=s;r;r=r.enter(e,t,J.ExcludeBuffers))r.type.isTop&&(s=r);return s}class di extends Ge{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){let t=kc(e.languageData);return new di(t,e.parser.configure({props:[ri.add(n=>n.isTop?t:void 0)]}),e.name)}configure(e,t){return new di(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function te(i){let e=i.field(Ge.state,!1);return e?e.tree:U.empty}class j${constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let Ki=null;class Vn{constructor(e,t,n=[],s,r,o,a,c){this.parser=e,this.state=t,this.fragments=n,this.tree=s,this.treeLen=r,this.viewport=o,this.skipped=a,this.scheduleOn=c,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new Vn(e,t,[],U.empty,0,n,[],null)}startParse(){return this.parser.startParse(new j$(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=U.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if(typeof e=="number"){let s=Date.now()+e;e=()=>Date.now()>s}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let s=this.parse.advance();if(s)if(this.fragments=this.withoutTempSkipped($t.addTree(s,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(n=this.parse.stoppedAt)!==null&&n!==void 0?n:this.state.doc.length,this.tree=s,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped($t.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Ki;Ki=this;try{return e()}finally{Ki=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=yu(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:s,treeLen:r,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let c=[];if(e.iterChangedRanges((h,u,d,f)=>c.push({fromA:h,toA:u,fromB:d,toB:f})),n=$t.applyChanges(n,c),s=U.empty,r=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let h of this.skipped){let u=e.mapPos(h.from,1),d=e.mapPos(h.to,-1);u<d&&a.push({from:u,to:d})}}}return new Vn(this.parser,t,n,s,r,o,a,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:s,to:r}=this.skipped[n];s<e.to&&r>e.from&&(this.fragments=yu(this.fragments,s,r),this.skipped.splice(n--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends lc{createParse(t,n,s){let r=s[0].from,o=s[s.length-1].to;return{parsedPos:r,advance(){let c=Ki;if(c){for(let h of s)c.tempSkipped.push(h);e&&(c.scheduleOn=c.scheduleOn?Promise.all([c.scheduleOn,e]):e)}return this.parsedPos=o,new U(pe.none,[],[],o-r)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return Ki}}function yu(i,e,t){return $t.applyChanges(i,[{fromA:e,toA:t,fromB:e,toB:t}])}class Bi{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new Bi(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=Vn.create(e.facet(Ht).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new Bi(n)}}Ge.state=me.define({create:Bi.init,update(i,e){for(let t of e.effects)if(t.is(Ge.setState))return t.value;return e.startState.facet(Ht)!=e.state.facet(Ht)?Bi.init(e.state):i.apply(e)}});let Vp=i=>{let e=setTimeout(()=>i(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Vp=i=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(i,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const xl=typeof navigator<"u"&&(!((Cl=navigator.scheduling)===null||Cl===void 0)&&Cl.isInputPending)?()=>navigator.scheduling.isInputPending():null,z$=he.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Ge.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Ge.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=Vp(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:s}}=this.view,r=n.field(Ge.state);if(r.tree==r.context.tree&&r.context.isDone(s+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!xl?Math.max(25,e.timeRemaining()-5):1e9),a=r.context.treeLen<s&&n.doc.length>s+1e3,c=r.context.work(()=>xl&&xl()||Date.now()>o,s+(a?0:1e5));this.chunkBudget-=Date.now()-t,(c||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:Ge.setState.of(new Bi(r.context))})),this.chunkBudget>0&&!(c&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>Ne(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Ht=E.define({combine(i){return i.length?i[0]:null},enables:i=>[Ge.state,z$,V.contentAttributes.compute([i],e=>{let t=e.facet(i);return t&&t.name?{"data-language":t.name}:{}})]});class Di{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}class xo{constructor(e,t,n,s,r,o=void 0){this.name=e,this.alias=t,this.extensions=n,this.filename=s,this.loadFunc=r,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:t,support:n}=e;if(!t){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(n)}return new xo(e.name,(e.alias||[]).concat(e.name).map(s=>s.toLowerCase()),e.extensions||[],e.filename,t,n)}static matchFilename(e,t){for(let s of e)if(s.filename&&s.filename.test(t))return s;let n=/\.([^.]+)$/.exec(t);if(n){for(let s of e)if(s.extensions.indexOf(n[1])>-1)return s}return null}static matchLanguageName(e,t,n=!0){t=t.toLowerCase();for(let s of e)if(s.alias.some(r=>r==t))return s;if(n)for(let s of e)for(let r of s.alias){let o=t.indexOf(r);if(o>-1&&(r.length>2||!/\w/.test(t[o-1])&&!/\w/.test(t[o+r.length])))return s}return null}}const W$=E.define(),ji=E.define({combine:i=>{if(!i.length)return" ";let e=i[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(i[0]));return e}});function $o(i){let e=i.facet(ji);return e.charCodeAt(0)==9?i.tabSize*e.length:e.length}function Tn(i,e){let t="",n=i.tabSize,s=i.facet(ji)[0];if(s==" "){for(;e>=n;)t+=" ",e-=n;s=" "}for(let r=0;r<e;r++)t+=s;return t}function vc(i,e){i instanceof ee&&(i=new Go(i));for(let n of i.state.facet(W$)){let s=n(i,e);if(s!==void 0)return s}let t=te(i.state);return t.length>=e?Y$(i,t,e):null}class Go{constructor(e,t={}){this.state=e,this.options=t,this.unit=$o(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:s,simulateDoubleBreak:r}=this.options;return s!=null&&s>=n.from&&s<=n.to?r&&s==e?{text:"",from:e}:(t<0?s<e:s<=e)?{text:n.text.slice(s-n.from),from:s}:{text:n.text.slice(0,s-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:s}=this.lineAt(e,t);return n.slice(e-s,Math.min(n.length,e+100-s))}column(e,t=1){let{text:n,from:s}=this.lineAt(e,t),r=this.countColumn(n,e-s),o=this.options.overrideIndentation?this.options.overrideIndentation(s):-1;return o>-1&&(r+=o-this.countColumn(n,n.search(/\S|$/))),r}countColumn(e,t=e.length){return st(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:s}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let o=r(s);if(o>-1)return o}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const zi=new D;function Y$(i,e,t){let n=e.resolveStack(t),s=n.node.enterUnfinishedNodesBefore(t);if(s!=n.node){let r=[];for(let o=s;o!=n.node;o=o.parent)r.push(o);for(let o=r.length-1;o>=0;o--)n={node:r[o],next:n}}return Tp(n,i,t)}function Tp(i,e,t){for(let n=i;n;n=n.next){let s=q$(n.node);if(s)return s(Sc.create(e,t,n))}return 0}function F$(i){return i.pos==i.options.simulateBreak&&i.options.simulateDoubleBreak}function q$(i){let e=i.type.prop(zi);if(e)return e;let t=i.firstChild,n;if(t&&(n=t.type.prop(D.closedBy))){let s=i.lastChild,r=s&&n.indexOf(s.name)>-1;return o=>Ep(o,!0,1,void 0,r&&!F$(o)?s.from:void 0)}return i.parent==null?U$:null}function U$(){return 0}class Sc extends Go{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new Sc(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(G$(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return Tp(this.context.next,this.base,this.pos)}}function G$(i,e){for(let t=e;t;t=t.parent)if(i==t)return!0;return!1}function H$(i){let e=i.node,t=e.childAfter(e.from),n=e.lastChild;if(!t)return null;let s=i.options.simulateBreak,r=i.state.doc.lineAt(t.from),o=s==null||s<=r.from?r.to:Math.min(r.to,s);for(let a=t.to;;){let c=e.childAfter(a);if(!c||c==n)return null;if(!c.type.isSkipped)return c.from<o?t:null;a=c.to}}function K$({closing:i,align:e=!0,units:t=1}){return n=>Ep(n,e,t,i)}function Ep(i,e,t,n,s){let r=i.textAfter,o=r.match(/^\s*/)[0].length,a=n&&r.slice(o,o+n.length)==n||s==i.pos+o,c=e?H$(i):null;return c?a?i.column(c.from):i.column(c.to):i.baseIndent+(a?0:i.unit*t)}const J$=i=>i.baseIndent;function Qi({except:i,units:e=1}={}){return t=>{let n=i&&i.test(t.textAfter);return t.baseIndent+(n?0:e*t.unit)}}const e5=200;function t5(){return ee.transactionFilter.of(i=>{if(!i.docChanged||!i.isUserEvent("input.type")&&!i.isUserEvent("input.complete"))return i;let e=i.startState.languageDataAt("indentOnInput",i.startState.selection.main.head);if(!e.length)return i;let t=i.newDoc,{head:n}=i.newSelection.main,s=t.lineAt(n);if(n>s.from+e5)return i;let r=t.sliceString(s.from,n);if(!e.some(h=>h.test(r)))return i;let{state:o}=i,a=-1,c=[];for(let{head:h}of o.selection.ranges){let u=o.doc.lineAt(h);if(u.from==a)continue;a=u.from;let d=vc(o,u.from);if(d==null)continue;let f=/^\s*/.exec(u.text)[0],p=Tn(o,d);f!=p&&c.push({from:u.from,to:u.from+f.length,insert:p})}return c.length?[i,{changes:c,sequential:!0}]:i})}const Zp=E.define(),mi=new D;function Cc(i){let e=i.firstChild,t=i.lastChild;return e&&e.to<t.from?{from:e.to,to:t.type.isError?i.to:t.from}:null}function i5(i,e,t){let n=te(i);if(n.length<t)return null;let s=n.resolveStack(t,1),r=null;for(let o=s;o;o=o.next){let a=o.node;if(a.to<=t||a.from>t)continue;if(r&&a.from<e)break;let c=a.type.prop(mi);if(c&&(a.to<n.length-50||n.length==i.doc.length||!n5(a))){let h=c(a,i);h&&h.from<=t&&h.from>=e&&h.to>t&&(r=h)}}return r}function n5(i){let e=i.lastChild;return e&&e.to==i.to&&e.type.isError}function _o(i,e,t){for(let n of i.facet(Zp)){let s=n(i,e,t);if(s)return s}return i5(i,e,t)}function Ap(i,e){let t=e.mapPos(i.from,1),n=e.mapPos(i.to,-1);return t>=n?void 0:{from:t,to:n}}const Ho=R.define({map:Ap}),Wn=R.define({map:Ap});function Bp(i){let e=[];for(let{head:t}of i.state.selection.ranges)e.some(n=>n.from<=t&&n.to>=t)||e.push(i.lineBlockAt(t));return e}const fi=me.define({create(){return A.none},update(i,e){i=i.map(e.changes);for(let t of e.effects)if(t.is(Ho)&&!s5(i,t.value.from,t.value.to)){let{preparePlaceholder:n}=e.state.facet(xc),s=n?A.replace({widget:new u5(n(e.state,t.value))}):bu;i=i.update({add:[s.range(t.value.from,t.value.to)]})}else t.is(Wn)&&(i=i.update({filter:(n,s)=>t.value.from!=n||t.value.to!=s,filterFrom:t.value.from,filterTo:t.value.to}));if(e.selection){let t=!1,{head:n}=e.selection.main;i.between(n,n,(s,r)=>{s<n&&r>n&&(t=!0)}),t&&(i=i.update({filterFrom:n,filterTo:n,filter:(s,r)=>r<=n||s>=n}))}return i},provide:i=>V.decorations.from(i),toJSON(i,e){let t=[];return i.between(0,e.doc.length,(n,s)=>{t.push(n,s)}),t},fromJSON(i){if(!Array.isArray(i)||i.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let t=0;t<i.length;){let n=i[t++],s=i[t++];if(typeof n!="number"||typeof s!="number")throw new RangeError("Invalid JSON for fold state");e.push(bu.range(n,s))}return A.set(e,!0)}});function Po(i,e,t){var n;let s=null;return(n=i.field(fi,!1))===null||n===void 0||n.between(e,t,(r,o)=>{(!s||s.from>r)&&(s={from:r,to:o})}),s}function s5(i,e,t){let n=!1;return i.between(e,e,(s,r)=>{s==e&&r==t&&(n=!0)}),n}function Dp(i,e){return i.field(fi,!1)?e:e.concat(R.appendConfig.of(Rp()))}const r5=i=>{for(let e of Bp(i)){let t=_o(i.state,e.from,e.to);if(t)return i.dispatch({effects:Dp(i.state,[Ho.of(t),Np(i,t)])}),!0}return!1},o5=i=>{if(!i.state.field(fi,!1))return!1;let e=[];for(let t of Bp(i)){let n=Po(i.state,t.from,t.to);n&&e.push(Wn.of(n),Np(i,n,!1))}return e.length&&i.dispatch({effects:e}),e.length>0};function Np(i,e,t=!0){let n=i.state.doc.lineAt(e.from).number,s=i.state.doc.lineAt(e.to).number;return V.announce.of(`${i.state.phrase(t?"Folded lines":"Unfolded lines")} ${n} ${i.state.phrase("to")} ${s}.`)}const l5=i=>{let{state:e}=i,t=[];for(let n=0;n<e.doc.length;){let s=i.lineBlockAt(n),r=_o(e,s.from,s.to);r&&t.push(Ho.of(r)),n=(r?i.lineBlockAt(r.to):s).to+1}return t.length&&i.dispatch({effects:Dp(i.state,t)}),!!t.length},a5=i=>{let e=i.state.field(fi,!1);if(!e||!e.size)return!1;let t=[];return e.between(0,i.state.doc.length,(n,s)=>{t.push(Wn.of({from:n,to:s}))}),i.dispatch({effects:t}),!0},c5=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:r5},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:o5},{key:"Ctrl-Alt-[",run:l5},{key:"Ctrl-Alt-]",run:a5}],h5={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},xc=E.define({combine(i){return vt(i,h5)}});function Rp(i){let e=[fi,p5];return i&&e.push(xc.of(i)),e}function Ip(i,e){let{state:t}=i,n=t.facet(xc),s=o=>{let a=i.lineBlockAt(i.posAtDOM(o.target)),c=Po(i.state,a.from,a.to);c&&i.dispatch({effects:Wn.of(c)}),o.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(i,s,e);let r=document.createElement("span");return r.textContent=n.placeholderText,r.setAttribute("aria-label",t.phrase("folded code")),r.title=t.phrase("unfold"),r.className="cm-foldPlaceholder",r.onclick=s,r}const bu=A.replace({widget:new class extends St{toDOM(i){return Ip(i,null)}}});class u5 extends St{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Ip(e,this.value)}}const d5={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class $l extends Vt{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function f5(i={}){let e=Object.assign(Object.assign({},d5),i),t=new $l(e,!0),n=new $l(e,!1),s=he.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(Ht)!=o.state.facet(Ht)||o.startState.field(fi,!1)!=o.state.field(fi,!1)||te(o.startState)!=te(o.state)||e.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let a=new Ft;for(let c of o.viewportLineBlocks){let h=Po(o.state,c.from,c.to)?n:_o(o.state,c.from,c.to)?t:null;h&&a.add(c.from,c.from,h)}return a.finish()}}),{domEventHandlers:r}=e;return[s,Z$({class:"cm-foldGutter",markers(o){var a;return((a=o.plugin(s))===null||a===void 0?void 0:a.markers)||F.empty},initialSpacer(){return new $l(e,!1)},domEventHandlers:Object.assign(Object.assign({},r),{click:(o,a,c)=>{if(r.click&&r.click(o,a,c))return!0;let h=Po(o.state,a.from,a.to);if(h)return o.dispatch({effects:Wn.of(h)}),!0;let u=_o(o.state,a.from,a.to);return u?(o.dispatch({effects:Ho.of(u)}),!0):!1}})}),Rp()]}const p5=V.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Yn{constructor(e,t){this.specs=e;let n;function s(a){let c=qt.newName();return(n||(n=Object.create(null)))["."+c]=a,c}const r=typeof t.all=="string"?t.all:t.all?s(t.all):void 0,o=t.scope;this.scope=o instanceof Ge?a=>a.prop(ri)==o.data:o?a=>a==o:void 0,this.style=sf(e.map(a=>({tag:a.tag,class:a.class||s(Object.assign({},a,{tag:null}))})),{all:r}).style,this.module=n?new qt(n):null,this.themeType=t.themeType}static define(e,t){return new Yn(e,t||{})}}const Na=E.define(),Lp=E.define({combine(i){return i.length?[i[0]]:null}});function _l(i){let e=i.facet(Na);return e.length?e:i.facet(Lp)}function Mp(i,e){let t=[g5],n;return i instanceof Yn&&(i.module&&t.push(V.styleModule.of(i.module)),n=i.themeType),e!=null&&e.fallback?t.push(Lp.of(i)):n?t.push(Na.computeN([V.darkTheme],s=>s.facet(V.darkTheme)==(n=="dark")?[i]:[])):t.push(Na.of(i)),t}class m5{constructor(e){this.markCache=Object.create(null),this.tree=te(e.state),this.decorations=this.buildDeco(e,_l(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=te(e.state),n=_l(e.state),s=n!=_l(e.startState),{viewport:r}=e.view,o=e.changes.mapPos(this.decoratedTo,1);t.length<r.to&&!s&&t.type==this.tree.type&&o>=r.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(t!=this.tree||e.viewportChanged||s)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=r.to)}buildDeco(e,t){if(!t||!this.tree.length)return A.none;let n=new Ft;for(let{from:s,to:r}of e.visibleRanges)kC(this.tree,t,(o,a,c)=>{n.add(o,a,this.markCache[c]||(this.markCache[c]=A.mark({class:c})))},s,r);return n.finish()}}const g5=Tt.high(he.fromClass(m5,{decorations:i=>i.decorations})),O5=Yn.define([{tag:O.meta,color:"#404740"},{tag:O.link,textDecoration:"underline"},{tag:O.heading,textDecoration:"underline",fontWeight:"bold"},{tag:O.emphasis,fontStyle:"italic"},{tag:O.strong,fontWeight:"bold"},{tag:O.strikethrough,textDecoration:"line-through"},{tag:O.keyword,color:"#708"},{tag:[O.atom,O.bool,O.url,O.contentSeparator,O.labelName],color:"#219"},{tag:[O.literal,O.inserted],color:"#164"},{tag:[O.string,O.deleted],color:"#a11"},{tag:[O.regexp,O.escape,O.special(O.string)],color:"#e40"},{tag:O.definition(O.variableName),color:"#00f"},{tag:O.local(O.variableName),color:"#30a"},{tag:[O.typeName,O.namespace],color:"#085"},{tag:O.className,color:"#167"},{tag:[O.special(O.variableName),O.macroName],color:"#256"},{tag:O.definition(O.propertyName),color:"#00c"},{tag:O.comment,color:"#940"},{tag:O.invalid,color:"#f00"}]),y5=V.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Xp=1e4,jp="()[]{}",zp=E.define({combine(i){return vt(i,{afterCursor:!0,brackets:jp,maxScanDistance:Xp,renderMatch:w5})}}),b5=A.mark({class:"cm-matchingBracket"}),k5=A.mark({class:"cm-nonmatchingBracket"});function w5(i){let e=[],t=i.matched?b5:k5;return e.push(t.range(i.start.from,i.start.to)),i.end&&e.push(t.range(i.end.from,i.end.to)),e}const v5=me.define({create(){return A.none},update(i,e){if(!e.docChanged&&!e.selection)return i;let t=[],n=e.state.facet(zp);for(let s of e.state.selection.ranges){if(!s.empty)continue;let r=Ot(e.state,s.head,-1,n)||s.head>0&&Ot(e.state,s.head-1,1,n)||n.afterCursor&&(Ot(e.state,s.head,1,n)||s.head<e.state.doc.length&&Ot(e.state,s.head+1,-1,n));r&&(t=t.concat(n.renderMatch(r,e.state)))}return A.set(t,!0)},provide:i=>V.decorations.from(i)}),S5=[v5,y5];function C5(i={}){return[zp.of(i),S5]}const Wp=new D;function Ra(i,e,t){let n=i.prop(e<0?D.openedBy:D.closedBy);if(n)return n;if(i.name.length==1){let s=t.indexOf(i.name);if(s>-1&&s%2==(e<0?1:0))return[t[s+e]]}return null}function Ia(i){let e=i.type.prop(Wp);return e?e(i.node):i}function Ot(i,e,t,n={}){let s=n.maxScanDistance||Xp,r=n.brackets||jp,o=te(i),a=o.resolveInner(e,t);for(let c=a;c;c=c.parent){let h=Ra(c.type,t,r);if(h&&c.from<c.to){let u=Ia(c);if(u&&(t>0?e>=u.from&&e<u.to:e>u.from&&e<=u.to))return x5(i,e,t,c,u,h,r)}}return $5(i,e,t,o,a.type,s,r)}function x5(i,e,t,n,s,r,o){let a=n.parent,c={from:s.from,to:s.to},h=0,u=a==null?void 0:a.cursor();if(u&&(t<0?u.childBefore(n.from):u.childAfter(n.to)))do if(t<0?u.to<=n.from:u.from>=n.to){if(h==0&&r.indexOf(u.type.name)>-1&&u.from<u.to){let d=Ia(u);return{start:c,end:d?{from:d.from,to:d.to}:void 0,matched:!0}}else if(Ra(u.type,t,o))h++;else if(Ra(u.type,-t,o)){if(h==0){let d=Ia(u);return{start:c,end:d&&d.from<d.to?{from:d.from,to:d.to}:void 0,matched:!1}}h--}}while(t<0?u.prevSibling():u.nextSibling());return{start:c,matched:!1}}function $5(i,e,t,n,s,r,o){let a=t<0?i.sliceDoc(e-1,e):i.sliceDoc(e,e+1),c=o.indexOf(a);if(c<0||c%2==0!=t>0)return null;let h={from:t<0?e-1:e,to:t>0?e+1:e},u=i.doc.iterRange(e,t>0?i.doc.length:0),d=0;for(let f=0;!u.next().done&&f<=r;){let p=u.value;t<0&&(f+=p.length);let m=e+f*t;for(let g=t>0?0:p.length-1,y=t>0?p.length:-1;g!=y;g+=t){let b=o.indexOf(p[g]);if(!(b<0||n.resolveInner(m+g,1).type!=s))if(b%2==0==t>0)d++;else{if(d==1)return{start:h,end:{from:m+g,to:m+g+1},matched:b>>1==c>>1};d--}}t>0&&(f+=p.length)}return u.done?{start:h,matched:!1}:null}const _5=Object.create(null),ku=[pe.none],wu=[],vu=Object.create(null),P5=Object.create(null);for(let[i,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])P5[i]=Q5(_5,e);function Pl(i,e){wu.indexOf(i)>-1||wu.push(i)}function Q5(i,e){let t=[];for(let a of e.split(" ")){let c=[];for(let h of a.split(".")){let u=i[h]||O[h];u?typeof u=="function"?c.length?c=c.map(u):Pl(h,`Modifier ${h} used at start of tag`):c.length?Pl(h,`Tag ${h} used as modifier`):c=Array.isArray(u)?u:[u]:Pl(h,`Unknown highlighting tag ${h}`)}for(let h of c)t.push(h)}if(!t.length)return 0;let n=e.replace(/ /g,"_"),s=n+" "+t.map(a=>a.id),r=vu[s];if(r)return r.id;let o=vu[s]=pe.define({id:ku.length,name:n,props:[pi({[n]:t})]});return ku.push(o),o.id}re.RTL,re.LTR;class $c{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=te(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),s=t.text.slice(n-t.from,this.pos-t.from),r=s.search(Fp(e,!1));return r<0?null:{from:n+r,to:this.pos,text:s.slice(r)}}get aborted(){return this.abortListeners==null}addEventListener(e,t){e=="abort"&&this.abortListeners&&this.abortListeners.push(t)}}function Su(i){let e=Object.keys(i).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function V5(i){let e=Object.create(null),t=Object.create(null);for(let{label:s}of i){e[s[0]]=!0;for(let r=1;r<s.length;r++)t[s[r]]=!0}let n=Su(e)+Su(t)+"*$";return[new RegExp("^"+n),new RegExp(n)]}function Yp(i){let e=i.map(s=>typeof s=="string"?{label:s}:s),[t,n]=e.every(s=>/^\w+$/.test(s.label))?[/\w*$/,/\w+$/]:V5(e);return s=>{let r=s.matchBefore(n);return r||s.explicit?{from:r?r.from:s.pos,options:e,validFor:t}:null}}function T5(i,e){return t=>{for(let n=te(t.state).resolveInner(t.pos,-1);n;n=n.parent){if(i.indexOf(n.name)>-1)return null;if(n.type.isTop)break}return e(t)}}class Cu{constructor(e,t,n,s){this.completion=e,this.source=t,this.match=n,this.score=s}}function jt(i){return i.selection.main.from}function Fp(i,e){var t;let{source:n}=i,s=e&&n[0]!="^",r=n[n.length-1]!="$";return!s&&!r?i:new RegExp(`${s?"^":""}(?:${n})${r?"$":""}`,(t=i.flags)!==null&&t!==void 0?t:i.ignoreCase?"i":"")}const qp=Et.define();function E5(i,e,t,n){let{main:s}=i.selection,r=t-s.from,o=n-s.from;return Object.assign(Object.assign({},i.changeByRange(a=>a!=s&&t!=n&&i.sliceDoc(a.from+r,a.from+o)!=i.sliceDoc(t,n)?{range:a}:{changes:{from:a.from+r,to:n==s.from?a.to:a.from+o,insert:e},range:C.cursor(a.from+r+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const xu=new WeakMap;function Z5(i){if(!Array.isArray(i))return i;let e=xu.get(i);return e||xu.set(i,e=Yp(i)),e}const Qo=R.define(),En=R.define();class A5{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=ye(e,t),s=qe(n);this.chars.push(n);let r=e.slice(t,t+s),o=r.toUpperCase();this.folded.push(ye(o==r?r.toLowerCase():o,0)),t+=s}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:s,precise:r,byWord:o}=this;if(t.length==1){let k=ye(e,0),w=qe(k),S=w==e.length?0:-100;if(k!=t[0])if(k==n[0])S+=-200;else return null;return this.ret(S,[0,w])}let a=e.indexOf(this.pattern);if(a==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let c=t.length,h=0;if(a<0){for(let k=0,w=Math.min(e.length,200);k<w&&h<c;){let S=ye(e,k);(S==t[h]||S==n[h])&&(s[h++]=k),k+=qe(S)}if(h<c)return null}let u=0,d=0,f=!1,p=0,m=-1,g=-1,y=/[a-z]/.test(e),b=!0;for(let k=0,w=Math.min(e.length,200),S=0;k<w&&d<c;){let v=ye(e,k);a<0&&(u<c&&v==t[u]&&(r[u++]=k),p<c&&(v==t[p]||v==n[p]?(p==0&&(m=k),g=k+1,p++):p=0));let P,_=v<255?v>=48&&v<=57||v>=97&&v<=122?2:v>=65&&v<=90?1:0:(P=ac(v))!=P.toLowerCase()?1:P!=P.toUpperCase()?2:0;(!k||_==1&&y||S==0&&_!=0)&&(t[d]==v||n[d]==v&&(f=!0)?o[d++]=k:o.length&&(b=!1)),S=_,k+=qe(v)}return d==c&&o[0]==0&&b?this.result(-100+(f?-200:0),o,e):p==c&&m==0?this.ret(-200-e.length+(g==e.length?0:-100),[0,g]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):p==c?this.ret(-900-e.length,[m,g]):d==c?this.result(-100+(f?-200:0)+-700+(b?0:-1100),o,e):t.length==2?null:this.result((s[0]?-700:0)+-200+-1100,s,e)}result(e,t,n){let s=[],r=0;for(let o of t){let a=o+(this.astral?qe(ye(n,o)):1);r&&s[r-1]==o?s[r-1]=a:(s[r++]=o,s[r++]=a)}return this.ret(e-n.length,s)}}class B5{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return n==null?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}}const we=E.define({combine(i){return vt(i,{activateOnTyping:!0,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:D5,filterStrict:!1,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>$u(e(n),t(n)),optionClass:(e,t)=>n=>$u(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})}});function $u(i,e){return i?e?i+" "+e:i:e}function D5(i,e,t,n,s,r){let o=i.textDirection==re.RTL,a=o,c=!1,h="top",u,d,f=e.left-s.left,p=s.right-e.right,m=n.right-n.left,g=n.bottom-n.top;if(a&&f<Math.min(m,p)?a=!1:!a&&p<Math.min(m,f)&&(a=!0),m<=(a?f:p))u=Math.max(s.top,Math.min(t.top,s.bottom-g))-e.top,d=Math.min(400,a?f:p);else{c=!0,d=Math.min(400,(o?e.right:s.right-e.left)-30);let k=s.bottom-e.bottom;k>=g||k>e.top?u=t.bottom-e.top:(h="bottom",u=e.bottom-t.top)}let y=(e.bottom-e.top)/r.offsetHeight,b=(e.right-e.left)/r.offsetWidth;return{style:`${h}: ${u/y}px; max-width: ${d/b}px`,class:"cm-completionInfo-"+(c?o?"left-narrow":"right-narrow":a?"left":"right")}}function N5(i){let e=i.addToOptions.slice();return i.icons&&e.push({render(t){let n=document.createElement("div");return n.classList.add("cm-completionIcon"),t.type&&n.classList.add(...t.type.split(/\s+/g).map(s=>"cm-completionIcon-"+s)),n.setAttribute("aria-hidden","true"),n},position:20}),e.push({render(t,n,s,r){let o=document.createElement("span");o.className="cm-completionLabel";let a=t.displayLabel||t.label,c=0;for(let h=0;h<r.length;){let u=r[h++],d=r[h++];u>c&&o.appendChild(document.createTextNode(a.slice(c,u)));let f=o.appendChild(document.createElement("span"));f.appendChild(document.createTextNode(a.slice(u,d))),f.className="cm-completionMatchedText",c=d}return c<a.length&&o.appendChild(document.createTextNode(a.slice(c))),o},position:50},{render(t){if(!t.detail)return null;let n=document.createElement("span");return n.className="cm-completionDetail",n.textContent=t.detail,n},position:80}),e.sort((t,n)=>t.position-n.position).map(t=>t.render)}function Ql(i,e,t){if(i<=t)return{from:0,to:i};if(e<0&&(e=0),e<=i>>1){let s=Math.floor(e/t);return{from:s*t,to:(s+1)*t}}let n=Math.floor((i-e)/t);return{from:i-(n+1)*t,to:i-n*t}}class R5{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:c=>this.placeInfo(c),key:this},this.space=null,this.currentClass="";let s=e.state.field(t),{options:r,selected:o}=s.open,a=e.state.facet(we);this.optionContent=N5(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=Ql(r.length,o,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",c=>{let{options:h}=e.state.field(t).open;for(let u=c.target,d;u&&u!=this.dom;u=u.parentNode)if(u.nodeName=="LI"&&(d=/-(\d+)$/.exec(u.id))&&+d[1]<h.length){this.applyCompletion(e,h[+d[1]]),c.preventDefault();return}}),this.dom.addEventListener("focusout",c=>{let h=e.state.field(this.stateField,!1);h&&h.tooltip&&e.state.facet(we).closeOnBlur&&c.relatedTarget!=e.contentDOM&&e.dispatch({effects:En.of(null)})}),this.showOptions(r,s.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let n=e.state.field(this.stateField),s=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=s){let{options:r,selected:o,disabled:a}=n.open;(!s.open||s.open.options!=r)&&(this.range=Ql(r.length,o,e.state.facet(we).maxRenderedOptions),this.showOptions(r,n.id)),this.updateSel(),a!=((t=s.open)===null||t===void 0?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let n of this.currentClass.split(" "))n&&this.dom.classList.remove(n);for(let n of t.split(" "))n&&this.dom.classList.add(n);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=Ql(t.options.length,t.selected,this.view.state.facet(we).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:s}=n;if(!s)return;let r=typeof s=="string"?document.createTextNode(s):s(n);if(!r)return;"then"in r?r.then(o=>{o&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(o,n)}).catch(o=>Ne(this.view.state,o,"completion info")):this.addInfoPane(r,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:s,destroy:r}=e;n.appendChild(s),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,s=this.range.from;n;n=n.nextSibling,s++)n.nodeName!="LI"||!n.id?s--:s==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected");return t&&L5(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),s=e.getBoundingClientRect(),r=this.space;if(!r){let o=this.dom.ownerDocument.defaultView||window;r={left:0,top:0,right:o.innerWidth,bottom:o.innerHeight}}return s.top>Math.min(r.bottom,t.bottom)-10||s.bottom<Math.max(r.top,t.top)+10?null:this.view.state.facet(we).positionInfo(this.view,t,s,n,r,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,n){const s=document.createElement("ul");s.id=t,s.setAttribute("role","listbox"),s.setAttribute("aria-expanded","true"),s.setAttribute("aria-label",this.view.state.phrase("Completions"));let r=null;for(let o=n.from;o<n.to;o++){let{completion:a,match:c}=e[o],{section:h}=a;if(h){let f=typeof h=="string"?h:h.name;if(f!=r&&(o>n.from||n.from==0))if(r=f,typeof h!="string"&&h.header)s.appendChild(h.header(h));else{let p=s.appendChild(document.createElement("completion-section"));p.textContent=f}}const u=s.appendChild(document.createElement("li"));u.id=t+"-"+o,u.setAttribute("role","option");let d=this.optionClass(a);d&&(u.className=d);for(let f of this.optionContent){let p=f(a,this.view.state,this.view,c);p&&u.appendChild(p)}}return n.from&&s.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&s.classList.add("cm-completionListIncompleteBottom"),s}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function I5(i,e){return t=>new R5(t,i,e)}function L5(i,e){let t=i.getBoundingClientRect(),n=e.getBoundingClientRect(),s=t.height/i.offsetHeight;n.top<t.top?i.scrollTop-=(t.top-n.top)/s:n.bottom>t.bottom&&(i.scrollTop+=(n.bottom-t.bottom)/s)}function _u(i){return(i.boost||0)*100+(i.apply?10:0)+(i.info?5:0)+(i.type?1:0)}function M5(i,e){let t=[],n=null,s=h=>{t.push(h);let{section:u}=h.completion;if(u){n||(n=[]);let d=typeof u=="string"?u:u.name;n.some(f=>f.name==d)||n.push(typeof u=="string"?{name:d}:u)}},r=e.facet(we);for(let h of i)if(h.hasResult()){let u=h.result.getMatch;if(h.result.filter===!1)for(let d of h.result.options)s(new Cu(d,h.source,u?u(d):[],1e9-t.length));else{let d=e.sliceDoc(h.from,h.to),f,p=r.filterStrict?new B5(d):new A5(d);for(let m of h.result.options)if(f=p.match(m.label)){let g=m.displayLabel?u?u(m,f.matched):[]:f.matched;s(new Cu(m,h.source,g,f.score+(m.boost||0)))}}}if(n){let h=Object.create(null),u=0,d=(f,p)=>{var m,g;return((m=f.rank)!==null&&m!==void 0?m:1e9)-((g=p.rank)!==null&&g!==void 0?g:1e9)||(f.name<p.name?-1:1)};for(let f of n.sort(d))u-=1e5,h[f.name]=u;for(let f of t){let{section:p}=f.completion;p&&(f.score+=h[typeof p=="string"?p:p.name])}}let o=[],a=null,c=r.compareCompletions;for(let h of t.sort((u,d)=>d.score-u.score||c(u.completion,d.completion))){let u=h.completion;!a||a.label!=u.label||a.detail!=u.detail||a.type!=null&&u.type!=null&&a.type!=u.type||a.apply!=u.apply||a.boost!=u.boost?o.push(h):_u(h.completion)>_u(a)&&(o[o.length-1]=h),a=h.completion}return o}class Si{constructor(e,t,n,s,r,o){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=s,this.selected=r,this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new Si(this.options,Pu(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,s,r){let o=M5(e,t);if(!o.length)return s&&e.some(c=>c.state==1)?new Si(s.options,s.attrs,s.tooltip,s.timestamp,s.selected,!0):null;let a=t.facet(we).selectOnOpen?0:-1;if(s&&s.selected!=a&&s.selected!=-1){let c=s.options[s.selected].completion;for(let h=0;h<o.length;h++)if(o[h].completion==c){a=h;break}}return new Si(o,Pu(n,a),{pos:e.reduce((c,h)=>h.hasResult()?Math.min(c,h.from):c,1e8),create:Y5,above:r.aboveCursor},s?s.timestamp:Date.now(),a,!1)}map(e){return new Si(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class Vo{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new Vo(z5,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,n=t.facet(we),r=(n.override||t.languageDataAt("autocomplete",jt(t)).map(Z5)).map(a=>(this.active.find(h=>h.source==a)||new Ve(a,this.active.some(h=>h.state!=0)?1:0)).update(e,n));r.length==this.active.length&&r.every((a,c)=>a==this.active[c])&&(r=this.active);let o=this.open;o&&e.docChanged&&(o=o.map(e.changes)),e.selection||r.some(a=>a.hasResult()&&e.changes.touchesRange(a.from,a.to))||!X5(r,this.active)?o=Si.build(r,t,this.id,o,n):o&&o.disabled&&!r.some(a=>a.state==1)&&(o=null),!o&&r.every(a=>a.state!=1)&&r.some(a=>a.hasResult())&&(r=r.map(a=>a.hasResult()?new Ve(a.source,0):a));for(let a of e.effects)a.is(Gp)&&(o=o&&o.setSelected(a.value,this.id));return r==this.active&&o==this.open?this:new Vo(r,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:j5}}function X5(i,e){if(i==e)return!0;for(let t=0,n=0;;){for(;t<i.length&&!i[t].hasResult;)t++;for(;n<e.length&&!e[n].hasResult;)n++;let s=t==i.length,r=n==e.length;if(s||r)return s==r;if(i[t++].result!=e[n++].result)return!1}}const j5={"aria-autocomplete":"list"};function Pu(i,e){let t={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":i};return e>-1&&(t["aria-activedescendant"]=i+"-"+e),t}const z5=[];function La(i){return i.isUserEvent("input.type")?"input":i.isUserEvent("delete.backward")?"delete":null}class Ve{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=La(e),s=this;n?s=s.handleUserEvent(e,n,t):e.docChanged?s=s.handleChange(e):e.selection&&s.state!=0&&(s=new Ve(s.source,0));for(let r of e.effects)if(r.is(Qo))s=new Ve(s.source,1,r.value?jt(e.state):-1);else if(r.is(En))s=new Ve(s.source,0);else if(r.is(Up))for(let o of r.value)o.source==s.source&&(s=o);return s}handleUserEvent(e,t,n){return t=="delete"||!n.activateOnTyping?this.map(e.changes):new Ve(this.source,1)}handleChange(e){return e.changes.touchesRange(jt(e.startState))?new Ve(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new Ve(this.source,this.state,e.mapPos(this.explicitPos))}}class Vi extends Ve{constructor(e,t,n,s,r){super(e,2,t),this.result=n,this.from=s,this.to=r}hasResult(){return!0}handleUserEvent(e,t,n){var s;let r=this.result;r.map&&!e.changes.empty&&(r=r.map(r,e.changes));let o=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),c=jt(e.state);if((this.explicitPos<0?c<=o:c<this.from)||c>a||!r||t=="delete"&&jt(e.startState)==this.from)return new Ve(this.source,t=="input"&&n.activateOnTyping?1:0);let h=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return W5(r.validFor,e.state,o,a)?new Vi(this.source,h,r,o,a):r.update&&(r=r.update(r,o,a,new $c(e.state,c,h>=0)))?new Vi(this.source,h,r,r.from,(s=r.to)!==null&&s!==void 0?s:jt(e.state)):new Ve(this.source,1,h)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new Ve(this.source,0):this.map(e.changes)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new Vi(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new Ve(this.source,0)}}function W5(i,e,t,n){if(!i)return!1;let s=e.sliceDoc(t,n);return typeof i=="function"?i(s,t,n,e):Fp(i,!0).test(s)}const Up=R.define({map(i,e){return i.map(t=>t.map(e))}}),Gp=R.define(),De=me.define({create(){return Vo.start()},update(i,e){return i.update(e)},provide:i=>[bc.from(i,e=>e.tooltip),V.contentAttributes.from(i,e=>e.attrs)]});function _c(i,e){const t=e.completion.apply||e.completion.label;let n=i.state.field(De).active.find(s=>s.source==e.source);return n instanceof Vi?(typeof t=="string"?i.dispatch(Object.assign(Object.assign({},E5(i.state,t,n.from,n.to)),{annotations:qp.of(e.completion)})):t(i,e.completion,n.from,n.to),!0):!1}const Y5=I5(De,_c);function fs(i,e="option"){return t=>{let n=t.state.field(De,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp<t.state.facet(we).interactionDelay)return!1;let s=1,r;e=="page"&&(r=$p(t,n.open.tooltip))&&(s=Math.max(2,Math.floor(r.dom.offsetHeight/r.dom.querySelector("li").offsetHeight)-1));let{length:o}=n.open.options,a=n.open.selected>-1?n.open.selected+s*(i?1:-1):i?0:o-1;return a<0?a=e=="page"?0:o-1:a>=o&&(a=e=="page"?o-1:0),t.dispatch({effects:Gp.of(a)}),!0}}const F5=i=>{let e=i.state.field(De,!1);return i.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<i.state.facet(we).interactionDelay?!1:_c(i,e.open.options[e.open.selected])},q5=i=>i.state.field(De,!1)?(i.dispatch({effects:Qo.of(!0)}),!0):!1,U5=i=>{let e=i.state.field(De,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(i.dispatch({effects:En.of(null)}),!0)};class G5{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const H5=50,K5=1e3,J5=he.fromClass(class{constructor(i){this.view=i,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of i.state.field(De).active)e.state==1&&this.startQuery(e)}update(i){let e=i.state.field(De);if(!i.selectionSet&&!i.docChanged&&i.startState.field(De)==e)return;let t=i.transactions.some(s=>(s.selection||s.docChanged)&&!La(s));for(let s=0;s<this.running.length;s++){let r=this.running[s];if(t||r.updates.length+i.transactions.length>H5&&Date.now()-r.time>K5){for(let o of r.context.abortListeners)try{o()}catch(a){Ne(this.view.state,a)}r.context.abortListeners=null,this.running.splice(s--,1)}else r.updates.push(...i.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),i.transactions.some(s=>s.effects.some(r=>r.is(Qo)))&&(this.pendingStart=!0);let n=this.pendingStart?50:i.state.facet(we).activateOnTypingDelay;if(this.debounceUpdate=e.active.some(s=>s.state==1&&!this.running.some(r=>r.active.source==s.source))?setTimeout(()=>this.startUpdate(),n):-1,this.composing!=0)for(let s of i.transactions)La(s)=="input"?this.composing=2:this.composing==2&&s.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:i}=this.view,e=i.field(De);for(let t of e.active)t.state==1&&!this.running.some(n=>n.active.source==t.source)&&this.startQuery(t)}startQuery(i){let{state:e}=this.view,t=jt(e),n=new $c(e,t,i.explicitPos==t),s=new G5(i,n);this.running.push(s),Promise.resolve(i.source(n)).then(r=>{s.context.aborted||(s.done=r||null,this.scheduleAccept())},r=>{this.view.dispatch({effects:En.of(null)}),Ne(this.view.state,r)})}scheduleAccept(){this.running.every(i=>i.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(we).updateSyncTime))}accept(){var i;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(we);for(let n=0;n<this.running.length;n++){let s=this.running[n];if(s.done===void 0)continue;if(this.running.splice(n--,1),s.done){let o=new Vi(s.active.source,s.active.explicitPos,s.done,s.done.from,(i=s.done.to)!==null&&i!==void 0?i:jt(s.updates.length?s.updates[0].startState:this.view.state));for(let a of s.updates)o=o.update(a,t);if(o.hasResult()){e.push(o);continue}}let r=this.view.state.field(De).active.find(o=>o.source==s.active.source);if(r&&r.state==1)if(s.done==null){let o=new Ve(s.active.source,0);for(let a of s.updates)o=o.update(a,t);o.state!=1&&e.push(o)}else this.startQuery(r)}e.length&&this.view.dispatch({effects:Up.of(e)})}},{eventHandlers:{blur(i){let e=this.view.state.field(De,!1);if(e&&e.tooltip&&this.view.state.facet(we).closeOnBlur){let t=e.open&&$p(this.view,e.open.tooltip);(!t||!t.dom.contains(i.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:En.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Qo.of(!1)}),20),this.composing=0}}}),e_=typeof navigator=="object"&&/Win/.test(navigator.platform),t_=Tt.highest(V.domEventHandlers({keydown(i,e){let t=e.state.field(De,!1);if(!t||!t.open||t.open.disabled||t.open.selected<0||i.key.length>1||i.ctrlKey&&!(e_&&i.altKey)||i.metaKey)return!1;let n=t.open.options[t.open.selected],s=t.active.find(o=>o.source==n.source),r=n.completion.commitCharacters||s.result.commitCharacters;return r&&r.indexOf(i.key)>-1&&_c(e,n),!1}})),Hp=V.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class i_{constructor(e,t,n,s){this.field=e,this.line=t,this.from=n,this.to=s}}class Pc{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,ke.TrackDel),n=e.mapPos(this.to,1,ke.TrackDel);return t==null||n==null?null:new Pc(this.field,t,n)}}class Qc{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],s=[t],r=e.doc.lineAt(t),o=/^\s*/.exec(r.text)[0];for(let c of this.lines){if(n.length){let h=o,u=/^\t*/.exec(c)[0].length;for(let d=0;d<u;d++)h+=e.facet(ji);s.push(t+h.length-u),c=h+c.slice(u)}n.push(c),t+=c.length+1}let a=this.fieldPositions.map(c=>new Pc(c.field,s[c.line]+c.from,s[c.line]+c.to));return{text:n,ranges:a}}static parse(e){let t=[],n=[],s=[],r;for(let o of e.split(/\r\n?|\n/)){for(;r=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(o);){let a=r[1]?+r[1]:null,c=r[2]||r[3]||"",h=-1;for(let u=0;u<t.length;u++)(a!=null?t[u].seq==a:c&&t[u].name==c)&&(h=u);if(h<0){let u=0;for(;u<t.length&&(a==null||t[u].seq!=null&&t[u].seq<a);)u++;t.splice(u,0,{seq:a,name:c}),h=u;for(let d of s)d.field>=h&&d.field++}s.push(new i_(h,n.length,r.index,r.index+c.length)),o=o.slice(0,r.index)+c+o.slice(r.index+r[0].length)}for(let a;a=/\\([{}])/.exec(o);){o=o.slice(0,a.index)+a[1]+o.slice(a.index+a[0].length);for(let c of s)c.line==n.length&&c.from>a.index&&(c.from--,c.to--)}n.push(o)}return new Qc(n,s)}}let n_=A.widget({widget:new class extends St{toDOM(){let i=document.createElement("span");return i.className="cm-snippetFieldPosition",i}ignoreEvent(){return!1}}}),s_=A.mark({class:"cm-snippetField"});class Wi{constructor(e,t){this.ranges=e,this.active=t,this.deco=A.set(e.map(n=>(n.from==n.to?n_:s_).range(n.from,n.to)))}map(e){let t=[];for(let n of this.ranges){let s=n.map(e);if(!s)return null;t.push(s)}return new Wi(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(n=>n.field==this.active&&n.from<=t.from&&n.to>=t.to))}}const Fn=R.define({map(i,e){return i&&i.map(e)}}),r_=R.define(),Zn=me.define({create(){return null},update(i,e){for(let t of e.effects){if(t.is(Fn))return t.value;if(t.is(r_)&&i)return new Wi(i.ranges,t.value)}return i&&e.docChanged&&(i=i.map(e.changes)),i&&e.selection&&!i.selectionInsideField(e.selection)&&(i=null),i},provide:i=>V.decorations.from(i,e=>e?e.deco:A.none)});function Vc(i,e){return C.create(i.filter(t=>t.field==e).map(t=>C.range(t.from,t.to)))}function o_(i){let e=Qc.parse(i);return(t,n,s,r)=>{let{text:o,ranges:a}=e.instantiate(t.state,s),c={changes:{from:s,to:r,insert:q.of(o)},scrollIntoView:!0,annotations:n?[qp.of(n),ue.userEvent.of("input.complete")]:void 0};if(a.length&&(c.selection=Vc(a,0)),a.some(h=>h.field>0)){let h=new Wi(a,0),u=c.effects=[Fn.of(h)];t.state.field(Zn,!1)===void 0&&u.push(R.appendConfig.of([Zn,u_,d_,Hp]))}t.dispatch(t.state.update(c))}}function Kp(i){return({state:e,dispatch:t})=>{let n=e.field(Zn,!1);if(!n||i<0&&n.active==0)return!1;let s=n.active+i,r=i>0&&!n.ranges.some(o=>o.field==s+i);return t(e.update({selection:Vc(n.ranges,s),effects:Fn.of(r?null:new Wi(n.ranges,s)),scrollIntoView:!0})),!0}}const l_=({state:i,dispatch:e})=>i.field(Zn,!1)?(e(i.update({effects:Fn.of(null)})),!0):!1,a_=Kp(1),c_=Kp(-1),h_=[{key:"Tab",run:a_,shift:c_},{key:"Escape",run:l_}],Qu=E.define({combine(i){return i.length?i[0]:h_}}),u_=Tt.highest(Xi.compute([Qu],i=>i.facet(Qu)));function Be(i,e){return Object.assign(Object.assign({},e),{apply:o_(i)})}const d_=V.domEventHandlers({mousedown(i,e){let t=e.state.field(Zn,!1),n;if(!t||(n=e.posAtCoords({x:i.clientX,y:i.clientY}))==null)return!1;let s=t.ranges.find(r=>r.from<=n&&r.to>=n);return!s||s.field==t.active?!1:(e.dispatch({selection:Vc(t.ranges,s.field),effects:Fn.of(t.ranges.some(r=>r.field>s.field)?new Wi(t.ranges,s.field):null),scrollIntoView:!0}),!0)}}),An={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},oi=R.define({map(i,e){let t=e.mapPos(i,-1,ke.TrackAfter);return t??void 0}}),Tc=new class extends ai{};Tc.startSide=1;Tc.endSide=-1;const Jp=me.define({create(){return F.empty},update(i,e){if(i=i.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);i=i.update({filter:n=>n>=t.from&&n<=t.to})}for(let t of e.effects)t.is(oi)&&(i=i.update({add:[Tc.range(t.value,t.value+1)]}));return i}});function f_(){return[m_,Jp]}const Vl="()[]{}<>";function em(i){for(let e=0;e<Vl.length;e+=2)if(Vl.charCodeAt(e)==i)return Vl.charAt(e+1);return ac(i<128?i:i+1)}function tm(i,e){return i.languageDataAt("closeBrackets",e)[0]||An}const p_=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),m_=V.inputHandler.of((i,e,t,n)=>{if((p_?i.composing:i.compositionStarted)||i.state.readOnly)return!1;let s=i.state.selection.main;if(n.length>2||n.length==2&&qe(ye(n,0))==1||e!=s.from||t!=s.to)return!1;let r=y_(i.state,n);return r?(i.dispatch(r),!0):!1}),g_=({state:i,dispatch:e})=>{if(i.readOnly)return!1;let n=tm(i,i.selection.main.head).brackets||An.brackets,s=null,r=i.changeByRange(o=>{if(o.empty){let a=b_(i.doc,o.head);for(let c of n)if(c==a&&Ko(i.doc,o.head)==em(ye(c,0)))return{changes:{from:o.head-c.length,to:o.head+c.length},range:C.cursor(o.head-c.length)}}return{range:s=o}});return s||e(i.update(r,{scrollIntoView:!0,userEvent:"delete.backward"})),!s},O_=[{key:"Backspace",run:g_}];function y_(i,e){let t=tm(i,i.selection.main.head),n=t.brackets||An.brackets;for(let s of n){let r=em(ye(s,0));if(e==s)return r==s?v_(i,s,n.indexOf(s+s+s)>-1,t):k_(i,s,r,t.before||An.before);if(e==r&&im(i,i.selection.main.from))return w_(i,s,r)}return null}function im(i,e){let t=!1;return i.field(Jp).between(0,i.doc.length,n=>{n==e&&(t=!0)}),t}function Ko(i,e){let t=i.sliceString(e,e+2);return t.slice(0,qe(ye(t,0)))}function b_(i,e){let t=i.sliceString(e-2,e);return qe(ye(t,0))==t.length?t:t.slice(1)}function k_(i,e,t,n){let s=null,r=i.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:t,from:o.to}],effects:oi.of(o.to+e.length),range:C.range(o.anchor+e.length,o.head+e.length)};let a=Ko(i.doc,o.head);return!a||/\s/.test(a)||n.indexOf(a)>-1?{changes:{insert:e+t,from:o.head},effects:oi.of(o.head+e.length),range:C.cursor(o.head+e.length)}:{range:s=o}});return s?null:i.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function w_(i,e,t){let n=null,s=i.changeByRange(r=>r.empty&&Ko(i.doc,r.head)==t?{changes:{from:r.head,to:r.head+t.length,insert:t},range:C.cursor(r.head+t.length)}:n={range:r});return n?null:i.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function v_(i,e,t,n){let s=n.stringPrefixes||An.stringPrefixes,r=null,o=i.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:e,from:a.to}],effects:oi.of(a.to+e.length),range:C.range(a.anchor+e.length,a.head+e.length)};let c=a.head,h=Ko(i.doc,c),u;if(h==e){if(Vu(i,c))return{changes:{insert:e+e,from:c},effects:oi.of(c+e.length),range:C.cursor(c+e.length)};if(im(i,c)){let f=t&&i.sliceDoc(c,c+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:c,to:c+f.length,insert:f},range:C.cursor(c+f.length)}}}else{if(t&&i.sliceDoc(c-2*e.length,c)==e+e&&(u=Tu(i,c-2*e.length,s))>-1&&Vu(i,u))return{changes:{insert:e+e+e+e,from:c},effects:oi.of(c+e.length),range:C.cursor(c+e.length)};if(i.charCategorizer(c)(h)!=le.Word&&Tu(i,c,s)>-1&&!S_(i,c,e,s))return{changes:{insert:e+e,from:c},effects:oi.of(c+e.length),range:C.cursor(c+e.length)}}return{range:r=a}});return r?null:i.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function Vu(i,e){let t=te(i).resolveInner(e+1);return t.parent&&t.from==e}function S_(i,e,t,n){let s=te(i).resolveInner(e,-1),r=n.reduce((o,a)=>Math.max(o,a.length),0);for(let o=0;o<5;o++){let a=i.sliceDoc(s.from,Math.min(s.to,s.from+t.length+r)),c=a.indexOf(t);if(!c||c>-1&&n.indexOf(a.slice(0,c))>-1){let u=s.firstChild;for(;u&&u.from==s.from&&u.to-u.from>t.length+c;){if(i.sliceDoc(u.to-t.length,u.to)==t)return!1;u=u.firstChild}return!0}let h=s.to==e&&s.parent;if(!h)break;s=h}return!1}function Tu(i,e,t){let n=i.charCategorizer(e);if(n(i.sliceDoc(e-1,e))!=le.Word)return e;for(let s of t){let r=e-s.length;if(i.sliceDoc(r,e)==s&&n(i.sliceDoc(r-1,r))!=le.Word)return r}return-1}function C_(i={}){return[t_,De,we.of(i),J5,x_,Hp]}const nm=[{key:"Ctrl-Space",run:q5},{key:"Escape",run:U5},{key:"ArrowDown",run:fs(!0)},{key:"ArrowUp",run:fs(!1)},{key:"PageDown",run:fs(!0,"page")},{key:"PageUp",run:fs(!1,"page")},{key:"Enter",run:F5}],x_=Tt.highest(Xi.computeN([we],i=>i.facet(we).defaultKeymap?[nm]:[])),sm=[Be("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Be("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Be("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Be("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Be("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Be(`try {
11
+ \${}
12
+ } catch (\${error}) {
13
+ \${}
14
+ }`,{label:"try",detail:"/ catch block",type:"keyword"}),Be("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Be(`if (\${}) {
15
+ \${}
16
+ } else {
17
+ \${}
18
+ }`,{label:"if",detail:"/ else block",type:"keyword"}),Be(`class \${name} {
19
+ constructor(\${params}) {
20
+ \${}
21
+ }
22
+ }`,{label:"class",detail:"definition",type:"keyword"}),Be('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Be('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],$_=sm.concat([Be("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Be("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Be("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Eu=new Kd,rm=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Ji(i){return(e,t)=>{let n=e.node.getChild("VariableDefinition");return n&&t(n,i),!0}}const __=["FunctionDeclaration"],P_={FunctionDeclaration:Ji("function"),ClassDeclaration:Ji("class"),ClassExpression:()=>!0,EnumDeclaration:Ji("constant"),TypeAliasDeclaration:Ji("type"),NamespaceDeclaration:Ji("namespace"),VariableDefinition(i,e){i.matchContext(__)||e(i,"variable")},TypeDefinition(i,e){e(i,"type")},__proto__:null};function om(i,e){let t=Eu.get(e);if(t)return t;let n=[],s=!0;function r(o,a){let c=i.sliceString(o.from,o.to);n.push({label:c,type:a})}return e.cursor(J.IncludeAnonymous).iterate(o=>{if(s)s=!1;else if(o.name){let a=P_[o.name];if(a&&a(o,r)||rm.has(o.name))return!1}else if(o.to-o.from>8192){for(let a of om(i,o.node))n.push(a);return!1}}),Eu.set(e,n),n}const Zu=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,lm=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function Q_(i){let e=te(i.state).resolveInner(i.pos,-1);if(lm.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&Zu.test(i.state.sliceDoc(e.from,e.to));if(!t&&!i.explicit)return null;let n=[];for(let s=e;s;s=s.parent)rm.has(s.name)&&(n=n.concat(om(i.state.doc,s)));return{options:n,from:t?e.from:i.pos,validFor:Zu}}const kt=di.define({name:"javascript",parser:FC.configure({props:[zi.add({IfStatement:Qi({except:/^\s*({|else\b)/}),TryStatement:Qi({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:J$,SwitchBody:i=>{let e=i.textAfter,t=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return i.baseIndent+(t?0:n?1:2)*i.unit},Block:K$({closing:"}"}),ArrowFunction:i=>i.baseIndent+i.unit,"TemplateString BlockComment":()=>null,"Statement Property":Qi({except:/^{/}),JSXElement(i){let e=/^\s*<\//.test(i.textAfter);return i.lineIndent(i.node.from)+(e?0:i.unit)},JSXEscape(i){let e=/\s*\}/.test(i.textAfter);return i.lineIndent(i.node.from)+(e?0:i.unit)},"JSXOpenTag JSXSelfClosingTag"(i){return i.column(i.node.from)+i.unit}}),mi.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Cc,BlockComment(i){return{from:i.from+2,to:i.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),am={test:i=>/^JSX/.test(i.name),facet:kc({commentTokens:{block:{open:"{/*",close:"*/}"}}})},cm=kt.configure({dialect:"ts"},"typescript"),hm=kt.configure({dialect:"jsx",props:[wc.add(i=>i.isTop?[am]:void 0)]}),um=kt.configure({dialect:"jsx ts",props:[wc.add(i=>i.isTop?[am]:void 0)]},"typescript");let dm=i=>({label:i,type:"keyword"});const fm="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(dm),V_=fm.concat(["declare","implements","private","protected","public"].map(dm));function pm(i={}){let e=i.jsx?i.typescript?um:hm:i.typescript?cm:kt,t=i.typescript?$_.concat(V_):sm.concat(fm);return new Di(e,[kt.data.of({autocomplete:T5(lm,Yp(t))}),kt.data.of({autocomplete:Q_}),i.jsx?Z_:[]])}function T_(i){for(;;){if(i.name=="JSXOpenTag"||i.name=="JSXSelfClosingTag"||i.name=="JSXFragmentTag")return i;if(i.name=="JSXEscape"||!i.parent)return null;i=i.parent}}function Au(i,e,t=i.length){for(let n=e==null?void 0:e.firstChild;n;n=n.nextSibling)if(n.name=="JSXIdentifier"||n.name=="JSXBuiltin"||n.name=="JSXNamespacedName"||n.name=="JSXMemberExpression")return i.sliceString(n.from,Math.min(n.to,t));return""}const E_=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Z_=V.inputHandler.of((i,e,t,n,s)=>{if((E_?i.composing:i.compositionStarted)||i.state.readOnly||e!=t||n!=">"&&n!="/"||!kt.isActiveAt(i.state,e,-1))return!1;let r=s(),{state:o}=r,a=o.changeByRange(c=>{var h;let{head:u}=c,d=te(o).resolveInner(u-1,-1),f;if(d.name=="JSXStartTag"&&(d=d.parent),!(o.doc.sliceString(u-1,u)!=n||d.name=="JSXAttributeValue"&&d.to>u)){if(n==">"&&d.name=="JSXFragmentTag")return{range:c,changes:{from:u,insert:"</>"}};if(n=="/"&&d.name=="JSXStartCloseTag"){let p=d.parent,m=p.parent;if(m&&p.from==u-2&&((f=Au(o.doc,m.firstChild,u))||((h=m.firstChild)===null||h===void 0?void 0:h.name)=="JSXFragmentTag")){let g=`${f}>`;return{range:C.cursor(u+g.length,-1),changes:{from:u,insert:g}}}}else if(n==">"){let p=T_(d);if(p&&p.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(u,u+2))&&(f=Au(o.doc,p,u)))return{range:c,changes:{from:u,insert:`</${f}>`}}}}return{range:c}});return a.changes.empty?!1:(i.dispatch([r,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),A_=54,B_=1,D_=55,N_=2,R_=56,I_=3,Bu=4,L_=5,To=6,mm=7,gm=8,Om=9,ym=10,M_=11,X_=12,j_=13,Tl=57,z_=14,Du=58,bm=20,W_=22,km=23,Y_=24,Ma=26,wm=27,F_=28,q_=31,U_=34,G_=36,H_=37,K_=0,J_=1,eP={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},tP={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Nu={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function iP(i){return i==45||i==46||i==58||i>=65&&i<=90||i==95||i>=97&&i<=122||i>=161}function vm(i){return i==9||i==10||i==13||i==32}let Ru=null,Iu=null,Lu=0;function Xa(i,e){let t=i.pos+e;if(Lu==t&&Iu==i)return Ru;let n=i.peek(e);for(;vm(n);)n=i.peek(++e);let s="";for(;iP(n);)s+=String.fromCharCode(n),n=i.peek(++e);return Iu=i,Lu=t,Ru=s?s.toLowerCase():n==nP||n==sP?void 0:null}const Sm=60,Eo=62,Ec=47,nP=63,sP=33,rP=45;function Mu(i,e){this.name=i,this.parent=e,this.hash=e?e.hash:0;for(let t=0;t<i.length;t++)this.hash+=(this.hash<<4)+i.charCodeAt(t)+(i.charCodeAt(t)<<8)}const oP=[To,ym,mm,gm,Om],lP=new tf({start:null,shift(i,e,t,n){return oP.indexOf(e)>-1?new Mu(Xa(n,1)||"",i):i},reduce(i,e){return e==bm&&i?i.parent:i},reuse(i,e,t,n){let s=e.type.id;return s==To||s==G_?new Mu(Xa(n,1)||"",i):i},hash(i){return i?i.hash:0},strict:!1}),aP=new lt((i,e)=>{if(i.next!=Sm){i.next<0&&e.context&&i.acceptToken(Tl);return}i.advance();let t=i.next==Ec;t&&i.advance();let n=Xa(i,0);if(n===void 0)return;if(!n)return i.acceptToken(t?z_:To);let s=e.context?e.context.name:null;if(t){if(n==s)return i.acceptToken(M_);if(s&&tP[s])return i.acceptToken(Tl,-2);if(e.dialectEnabled(K_))return i.acceptToken(X_);for(let r=e.context;r;r=r.parent)if(r.name==n)return;i.acceptToken(j_)}else{if(n=="script")return i.acceptToken(mm);if(n=="style")return i.acceptToken(gm);if(n=="textarea")return i.acceptToken(Om);if(eP.hasOwnProperty(n))return i.acceptToken(ym);s&&Nu[s]&&Nu[s][n]?i.acceptToken(Tl,-1):i.acceptToken(To)}},{contextual:!0}),cP=new lt(i=>{for(let e=0,t=0;;t++){if(i.next<0){t&&i.acceptToken(Du);break}if(i.next==rP)e++;else if(i.next==Eo&&e>=2){t>=3&&i.acceptToken(Du,-2);break}else e=0;i.advance()}});function hP(i){for(;i;i=i.parent)if(i.name=="svg"||i.name=="math")return!0;return!1}const uP=new lt((i,e)=>{if(i.next==Ec&&i.peek(1)==Eo){let t=e.dialectEnabled(J_)||hP(e.context);i.acceptToken(t?L_:Bu,2)}else i.next==Eo&&i.acceptToken(Bu,1)});function Zc(i,e,t){let n=2+i.length;return new lt(s=>{for(let r=0,o=0,a=0;;a++){if(s.next<0){a&&s.acceptToken(e);break}if(r==0&&s.next==Sm||r==1&&s.next==Ec||r>=2&&r<n&&s.next==i.charCodeAt(r-2))r++,o++;else if((r==2||r==n)&&vm(s.next))o++;else if(r==n&&s.next==Eo){a>o?s.acceptToken(e,-o):s.acceptToken(t,-(o-2));break}else if((s.next==10||s.next==13)&&a){s.acceptToken(e,1);break}else r=o=0;s.advance()}})}const dP=Zc("script",A_,B_),fP=Zc("style",D_,N_),pP=Zc("textarea",R_,I_),mP=pi({"Text RawText":O.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":O.angleBracket,TagName:O.tagName,"MismatchedCloseTag/TagName":[O.tagName,O.invalid],AttributeName:O.attributeName,"AttributeValue UnquotedAttributeValue":O.attributeValue,Is:O.definitionOperator,"EntityReference CharacterReference":O.character,Comment:O.blockComment,ProcessingInst:O.processingInstruction,DoctypeDecl:O.documentMeta}),gP=li.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!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O~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OT}OhyO~OS!POT}OhyO~OS!ROT}OhyO~OS!TOT}OhyO~OS}OT}OhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXTgXhgX~OS!fOT!gOhyO~OS!hOT!gOhyO~OS!iOT!gOhyO~OS!jOT!gOhyO~OS!gOT!gOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:lP,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[mP],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UV`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pT`POv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!cpOv(Vx;'S(V;'S;=`(h<%l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w!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[dP,fP,pP,uP,aP,cP,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:509},tokenPrec:511});function Cm(i,e){let t=Object.create(null);for(let n of i.getChildren(km)){let s=n.getChild(Y_),r=n.getChild(Ma)||n.getChild(wm);s&&(t[e.read(s.from,s.to)]=r?r.type.id==Ma?e.read(r.from+1,r.to-1):e.read(r.from,r.to):"")}return t}function Xu(i,e){let t=i.getChild(W_);return t?e.read(t.from,t.to):" "}function El(i,e,t){let n;for(let s of t)if(!s.attrs||s.attrs(n||(n=Cm(i.node.parent.firstChild,e))))return{parser:s.parser};return null}function xm(i=[],e=[]){let t=[],n=[],s=[],r=[];for(let a of i)(a.tag=="script"?t:a.tag=="style"?n:a.tag=="textarea"?s:r).push(a);let o=e.length?Object.create(null):null;for(let a of e)(o[a.name]||(o[a.name]=[])).push(a);return Jd((a,c)=>{let h=a.type.id;if(h==F_)return El(a,c,t);if(h==q_)return El(a,c,n);if(h==U_)return El(a,c,s);if(h==bm&&r.length){let u=a.node,d=u.firstChild,f=d&&Xu(d,c),p;if(f){for(let m of r)if(m.tag==f&&(!m.attrs||m.attrs(p||(p=Cm(u,c))))){let g=u.lastChild,y=g.type.id==H_?g.from:u.to;if(y>d.to)return{parser:m.parser,overlay:[{from:d.to,to:y}]}}}}if(o&&h==km){let u=a.node,d;if(d=u.firstChild){let f=o[c.read(d.from,d.to)];if(f)for(let p of f){if(p.tagName&&p.tagName!=Xu(u.parent,c))continue;let m=u.lastChild;if(m.type.id==Ma){let g=m.from+1,y=m.lastChild,b=m.to-(y&&y.isError?0:1);if(b>g)return{parser:p.parser,overlay:[{from:g,to:b}]}}else if(m.type.id==wm)return{parser:p.parser,overlay:[{from:m.from,to:m.to}]}}}}return null})}const OP=99,ju=1,yP=100,bP=101,zu=2,$m=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],kP=58,wP=40,_m=95,vP=91,oo=45,SP=46,CP=35,xP=37,$P=38,_P=92,PP=10;function Bn(i){return i>=65&&i<=90||i>=97&&i<=122||i>=161}function Pm(i){return i>=48&&i<=57}const QP=new lt((i,e)=>{for(let t=!1,n=0,s=0;;s++){let{next:r}=i;if(Bn(r)||r==oo||r==_m||t&&Pm(r))!t&&(r!=oo||s>0)&&(t=!0),n===s&&r==oo&&n++,i.advance();else if(r==_P&&i.peek(1)!=PP)i.advance(),i.next>-1&&i.advance(),t=!0;else{t&&i.acceptToken(r==wP?yP:n==2&&e.canShift(zu)?zu:bP);break}}}),VP=new lt(i=>{if($m.includes(i.peek(-1))){let{next:e}=i;(Bn(e)||e==_m||e==CP||e==SP||e==vP||e==kP&&Bn(i.peek(1))||e==oo||e==$P)&&i.acceptToken(OP)}}),TP=new lt(i=>{if(!$m.includes(i.peek(-1))){let{next:e}=i;if(e==xP&&(i.advance(),i.acceptToken(ju)),Bn(e)){do i.advance();while(Bn(i.next)||Pm(i.next));i.acceptToken(ju)}}}),EP=pi({"AtKeyword import charset namespace keyframes media supports":O.definitionKeyword,"from to selector":O.keyword,NamespaceName:O.namespace,KeyframeName:O.labelName,KeyframeRangeName:O.operatorKeyword,TagName:O.tagName,ClassName:O.className,PseudoClassName:O.constant(O.className),IdName:O.labelName,"FeatureName PropertyName":O.propertyName,AttributeName:O.attributeName,NumberLiteral:O.number,KeywordQuery:O.keyword,UnaryQueryOp:O.operatorKeyword,"CallTag ValueName":O.atom,VariableName:O.variableName,Callee:O.operatorKeyword,Unit:O.unit,"UniversalSelector NestingSelector":O.definitionOperator,MatchOp:O.compareOperator,"ChildOp SiblingOp, LogicOp":O.logicOperator,BinOp:O.arithmeticOperator,Important:O.modifier,Comment:O.blockComment,ColorLiteral:O.color,"ParenthesizedContent StringLiteral":O.string,":":O.punctuation,"PseudoOp #":O.derefOperator,"; ,":O.separator,"( )":O.paren,"[ ]":O.squareBracket,"{ }":O.brace}),ZP={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},AP={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},BP={__proto__:null,not:132,only:132},DP=li.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#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^R#l!gT#^!Z#_Q|VR!yqQ!x|R#x!yQ!PWR!{rQ!RXR!|sQxUQ!wpQ#i!cQ#o!jQ#p!kQ${$eR%X$zSgPwQ!phQ#r!nR$l#sZfPhw!n#sa!b[`a!V!^!`#d#eR#b!^R!g^R!i_R#n!iS$e#m$fR%V$yV$c#m$f$yQ!rjR#v!rQdOShPwU!ldh#sR#s!nQ$P#SU$p$P$v%SQ$v$YR%S$qQ#_!ZR$W#_Q$r$PR%T$rQpUS!vp$nR$n#|Q$j#qR%P$jQ!ogS#t!o#uR#u!pQ#f!_R$^#fQ$f#mR$|$fQ$z$eR%W$z_cOPdhw!n#s^UOPdhw!n#sQ!uoQ!}tQ#OuQ#PvQ#|#RR$_#hR$Q#SQ!VZQ!d]Q#V!TQ#q!m[$O#S$P$Y$q$v%SQ$R#UQ$T#XS$h#q$jQ$m#zR%O$iR#}#RQiPR#QwQ!c[Q!kaR#Y!VU!_[a!VQ!j`Q#c!^Q#g!`Q$[#dR$]#e",nodeNames:"⚠ Unit VariableName Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName , PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports AtRule Styles",maxTerm:117,nodeProps:[["isolate",-2,3,24,""],["openedBy",17,"(",32,"[",50,"{"],["closedBy",18,")",33,"]",51,"}"]],propSources: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^;'S;=`%o<%lO%^dCoS|SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!OQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!OQo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[![Qo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[VP,TP,QP,1,2,3,4,new go("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:i=>ZP[i]||-1},{term:58,get:i=>AP[i]||-1},{term:101,get:i=>BP[i]||-1}],tokenPrec:1200});let Zl=null;function Al(){if(!Zl&&typeof document=="object"&&document.body){let{style:i}=document.body,e=[],t=new Set;for(let n in i)n!="cssText"&&n!="cssFloat"&&typeof i[n]=="string"&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,s=>"-"+s.toLowerCase())),t.has(n)||(e.push(n),t.add(n)));Zl=e.sort().map(n=>({type:"property",label:n}))}return Zl||[]}const Wu=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(i=>({type:"class",label:i})),Yu=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(i=>({type:"keyword",label:i})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(i=>({type:"constant",label:i}))),NP=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(i=>({type:"type",label:i})),Bt=/^(\w[\w-]*|-\w[\w-]*|)$/,RP=/^-(-[\w-]*)?$/;function IP(i,e){var t;if((i.name=="("||i.type.isError)&&(i=i.parent||i),i.name!="ArgList")return!1;let n=(t=i.parent)===null||t===void 0?void 0:t.firstChild;return(n==null?void 0:n.name)!="Callee"?!1:e.sliceString(n.from,n.to)=="var"}const Fu=new Kd,LP=["Declaration"];function MP(i){for(let e=i;;){if(e.type.isTop)return e;if(!(e=e.parent))return i}}function Qm(i,e,t){if(e.to-e.from>4096){let n=Fu.get(e);if(n)return n;let s=[],r=new Set,o=e.cursor(J.IncludeAnonymous);if(o.firstChild())do for(let a of Qm(i,o.node,t))r.has(a.label)||(r.add(a.label),s.push(a));while(o.nextSibling());return Fu.set(e,s),s}else{let n=[],s=new Set;return e.cursor().iterate(r=>{var o;if(t(r)&&r.matchContext(LP)&&((o=r.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let a=i.sliceString(r.from,r.to);s.has(a)||(s.add(a),n.push({label:a,type:"variable"}))}}),n}}const XP=i=>e=>{let{state:t,pos:n}=e,s=te(t).resolveInner(n,-1),r=s.type.isError&&s.from==s.to-1&&t.doc.sliceString(s.from,s.to)=="-";if(s.name=="PropertyName"||(r||s.name=="TagName")&&/^(Block|Styles)$/.test(s.resolve(s.to).name))return{from:s.from,options:Al(),validFor:Bt};if(s.name=="ValueName")return{from:s.from,options:Yu,validFor:Bt};if(s.name=="PseudoClassName")return{from:s.from,options:Wu,validFor:Bt};if(i(s)||(e.explicit||r)&&IP(s,t.doc))return{from:i(s)||r?s.from:n,options:Qm(t.doc,MP(s),i),validFor:RP};if(s.name=="TagName"){for(let{parent:c}=s;c;c=c.parent)if(c.name=="Block")return{from:s.from,options:Al(),validFor:Bt};return{from:s.from,options:NP,validFor:Bt}}if(!e.explicit)return null;let o=s.resolve(n),a=o.childBefore(n);return a&&a.name==":"&&o.name=="PseudoClassSelector"?{from:n,options:Wu,validFor:Bt}:a&&a.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:n,options:Yu,validFor:Bt}:o.name=="Block"||o.name=="Styles"?{from:n,options:Al(),validFor:Bt}:null},jP=XP(i=>i.name=="VariableName"),Zo=di.define({name:"css",parser:DP.configure({props:[zi.add({Declaration:Qi()}),mi.add({"Block KeyframeList":Cc})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function zP(){return new Di(Zo,Zo.data.of({autocomplete:jP}))}const en=["_blank","_self","_top","_parent"],Bl=["ascii","utf-8","utf-16","latin1","latin1"],Dl=["get","post","put","delete"],Nl=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Le=["true","false"],B={},WP={a:{attrs:{href:null,ping:null,type:null,media:null,target:en,hreflang:null}},abbr:B,address:B,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:B,aside:B,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:B,base:{attrs:{href:null,target:en}},bdi:B,bdo:B,blockquote:{attrs:{cite:null}},body:B,br:B,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Nl,formmethod:Dl,formnovalidate:["novalidate"],formtarget:en,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:B,center:B,cite:B,code:B,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:B,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:B,div:B,dl:B,dt:B,em:B,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:B,figure:B,footer:B,form:{attrs:{action:null,name:null,"accept-charset":Bl,autocomplete:["on","off"],enctype:Nl,method:Dl,novalidate:["novalidate"],target:en}},h1:B,h2:B,h3:B,h4:B,h5:B,h6:B,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:B,hgroup:B,hr:B,html:{attrs:{manifest:null}},i:B,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Nl,formmethod:Dl,formnovalidate:["novalidate"],formtarget:en,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:B,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:B,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:B,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Bl,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:B,noscript:B,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:B,param:{attrs:{name:null,value:null}},pre:B,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:B,rt:B,ruby:B,samp:B,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Bl}},section:B,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:B,source:{attrs:{src:null,type:null,media:null}},span:B,strong:B,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:B,summary:B,sup:B,table:B,tbody:B,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:B,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:B,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:B,time:{attrs:{datetime:null}},title:B,tr:B,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:B,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:B},Vm={accesskey:null,class:null,contenteditable:Le,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Le,autocorrect:Le,autocapitalize:Le,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Le,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Le,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Le,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Le,"aria-hidden":Le,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Le,"aria-multiselectable":Le,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Le,"aria-relevant":null,"aria-required":Le,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Tm="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(i=>"on"+i);for(let i of Tm)Vm[i]=null;class Dn{constructor(e,t){this.tags=Object.assign(Object.assign({},WP),e),this.globalAttrs=Object.assign(Object.assign({},Vm),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}Dn.default=new Dn;function Ni(i,e,t=i.length){if(!e)return"";let n=e.firstChild,s=n&&n.getChild("TagName");return s?i.sliceString(s.from,Math.min(s.to,t)):""}function Ri(i,e=!1){for(;i;i=i.parent)if(i.name=="Element")if(e)e=!1;else return i;return null}function Em(i,e,t){let n=t.tags[Ni(i,Ri(e))];return(n==null?void 0:n.children)||t.allTags}function Ac(i,e){let t=[];for(let n=Ri(e);n&&!n.type.isTop;n=Ri(n.parent)){let s=Ni(i,n);if(s&&n.lastChild.name=="CloseTag")break;s&&t.indexOf(s)<0&&(e.name=="EndTag"||e.from>=n.firstChild.to)&&t.push(s)}return t}const Zm=/^[:\-\.\w\u00b7-\uffff]*$/;function qu(i,e,t,n,s){let r=/\s*>/.test(i.sliceDoc(s,s+5))?"":">",o=Ri(t,!0);return{from:n,to:s,options:Em(i.doc,o,e).map(a=>({label:a,type:"type"})).concat(Ac(i.doc,t).map((a,c)=>({label:"/"+a,apply:"/"+a+r,type:"type",boost:99-c}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Uu(i,e,t,n){let s=/\s*>/.test(i.sliceDoc(n,n+5))?"":">";return{from:t,to:n,options:Ac(i.doc,e).map((r,o)=>({label:r,apply:r+s,type:"type",boost:99-o})),validFor:Zm}}function YP(i,e,t,n){let s=[],r=0;for(let o of Em(i.doc,t,e))s.push({label:"<"+o,type:"type"});for(let o of Ac(i.doc,t))s.push({label:"</"+o+">",type:"type",boost:99-r++});return{from:n,to:n,options:s,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function FP(i,e,t,n,s){let r=Ri(t),o=r?e.tags[Ni(i.doc,r)]:null,a=o&&o.attrs?Object.keys(o.attrs):[],c=o&&o.globalAttrs===!1?a:a.length?a.concat(e.globalAttrNames):e.globalAttrNames;return{from:n,to:s,options:c.map(h=>({label:h,type:"property"})),validFor:Zm}}function qP(i,e,t,n,s){var r;let o=(r=t.parent)===null||r===void 0?void 0:r.getChild("AttributeName"),a=[],c;if(o){let h=i.sliceDoc(o.from,o.to),u=e.globalAttrs[h];if(!u){let d=Ri(t),f=d?e.tags[Ni(i.doc,d)]:null;u=(f==null?void 0:f.attrs)&&f.attrs[h]}if(u){let d=i.sliceDoc(n,s).toLowerCase(),f='"',p='"';/^['"]/.test(d)?(c=d[0]=='"'?/^[^"]*$/:/^[^']*$/,f="",p=i.sliceDoc(s,s+1)==d[0]?"":d[0],d=d.slice(1),n++):c=/^[^\s<>='"]*$/;for(let m of u)a.push({label:m,apply:f+m+p,type:"constant"})}}return{from:n,to:s,options:a,validFor:c}}function Am(i,e){let{state:t,pos:n}=e,s=te(t).resolveInner(n,-1),r=s.resolve(n);for(let o=n,a;r==s&&(a=s.childBefore(o));){let c=a.lastChild;if(!c||!c.type.isError||c.from<c.to)break;r=s=a,o=c.from}return s.name=="TagName"?s.parent&&/CloseTag$/.test(s.parent.name)?Uu(t,s,s.from,n):qu(t,i,s,s.from,n):s.name=="StartTag"?qu(t,i,s,n,n):s.name=="StartCloseTag"||s.name=="IncompleteCloseTag"?Uu(t,s,n,n):s.name=="OpenTag"||s.name=="SelfClosingTag"||s.name=="AttributeName"?FP(t,i,s,s.name=="AttributeName"?s.from:n,n):s.name=="Is"||s.name=="AttributeValue"||s.name=="UnquotedAttributeValue"?qP(t,i,s,s.name=="Is"?n:s.from,n):e.explicit&&(r.name=="Element"||r.name=="Text"||r.name=="Document")?YP(t,i,s,n):null}function UP(i){return Am(Dn.default,i)}function GP(i){let{extraTags:e,extraGlobalAttributes:t}=i,n=t||e?new Dn(e,t):Dn.default;return s=>Am(n,s)}const HP=kt.parser.configure({top:"SingleExpression"}),Bm=[{tag:"script",attrs:i=>i.type=="text/typescript"||i.lang=="ts",parser:cm.parser},{tag:"script",attrs:i=>i.type=="text/babel"||i.type=="text/jsx",parser:hm.parser},{tag:"script",attrs:i=>i.type=="text/typescript-jsx",parser:um.parser},{tag:"script",attrs(i){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(i.type)},parser:HP},{tag:"script",attrs(i){return!i.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(i.type)},parser:kt.parser},{tag:"style",attrs(i){return(!i.lang||i.lang=="css")&&(!i.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(i.type))},parser:Zo.parser}],Dm=[{name:"style",parser:Zo.parser.configure({top:"Styles"})}].concat(Tm.map(i=>({name:i,parser:kt.parser}))),Nm=di.define({name:"html",parser:gP.configure({props:[zi.add({Element(i){let e=/^(\s*)(<\/)?/.exec(i.textAfter);return i.node.to<=i.pos+e[0].length?i.continue():i.lineIndent(i.node.from)+(e[2]?0:i.unit)},"OpenTag CloseTag SelfClosingTag"(i){return i.column(i.node.from)+i.unit},Document(i){if(i.pos+/\s*/.exec(i.textAfter)[0].length<i.node.to)return i.continue();let e=null,t;for(let n=i.node;;){let s=n.lastChild;if(!s||s.name!="Element"||s.to!=n.to)break;e=n=s}return e&&!((t=e.lastChild)&&(t.name=="CloseTag"||t.name=="SelfClosingTag"))?i.lineIndent(e.from)+i.unit:null}}),mi.add({Element(i){let e=i.firstChild,t=i.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:t.name=="CloseTag"?t.from:i.to}}}),Wp.add({"OpenTag CloseTag":i=>i.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),lo=Nm.configure({wrap:xm(Bm,Dm)});function Rm(i={}){let e="",t;i.matchClosingTags===!1&&(e="noMatch"),i.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(i.nestedLanguages&&i.nestedLanguages.length||i.nestedAttributes&&i.nestedAttributes.length)&&(t=xm((i.nestedLanguages||[]).concat(Bm),(i.nestedAttributes||[]).concat(Dm)));let n=t?Nm.configure({wrap:t,dialect:e}):e?lo.configure({dialect:e}):lo;return new Di(n,[lo.data.of({autocomplete:GP(i)}),i.autoCloseTags!==!1?KP:[],pm().support,zP().support])}const Gu=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),KP=V.inputHandler.of((i,e,t,n,s)=>{if(i.composing||i.state.readOnly||e!=t||n!=">"&&n!="/"||!lo.isActiveAt(i.state,e,-1))return!1;let r=s(),{state:o}=r,a=o.changeByRange(c=>{var h,u,d;let f=o.doc.sliceString(c.from-1,c.to)==n,{head:p}=c,m=te(o).resolveInner(p-1,-1),g;if((m.name=="TagName"||m.name=="StartTag")&&(m=m.parent),f&&n==">"&&m.name=="OpenTag"){if(((u=(h=m.parent)===null||h===void 0?void 0:h.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(g=Ni(o.doc,m.parent,p))&&!Gu.has(g)){let y=p+(o.doc.sliceString(p,p+1)===">"?1:0),b=`</${g}>`;return{range:c,changes:{from:p,to:y,insert:b}}}}else if(f&&n=="/"&&m.name=="IncompleteCloseTag"){let y=m.parent;if(m.from==p-2&&((d=y.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(g=Ni(o.doc,y,p))&&!Gu.has(g)){let b=p+(o.doc.sliceString(p,p+1)===">"?1:0),k=`${g}>`;return{range:C.cursor(p+k.length,-1),changes:{from:p,to:b,insert:k}}}}return{range:c}});return a.changes.empty?!1:(i.dispatch([r,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),JP=pi({String:O.string,Number:O.number,"True False":O.bool,PropertyName:O.propertyName,Null:O.null,",":O.separator,"[ ]":O.squareBracket,"{ }":O.brace}),e4=li.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[JP],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),t4=di.define({name:"json",parser:e4.configure({props:[zi.add({Object:Qi({except:/^\s*\}/}),Array:Qi({except:/^\s*\]/})}),mi.add({"Object Array":Cc})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function i4(){return new Di(t4)}class Ao{static create(e,t,n,s,r){let o=s+(s<<8)+e+(t<<4)|0;return new Ao(e,t,n,o,r,[],[])}constructor(e,t,n,s,r,o,a){this.type=e,this.value=t,this.from=n,this.hash=s,this.end=r,this.children=o,this.positions=a,this.hashProp=[[D.contextHash,s]]}addChild(e,t){e.prop(D.contextHash)!=this.hash&&(e=new U(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(t)}toTree(e,t=this.end){let n=this.children.length-1;return n>=0&&(t=Math.max(t,this.positions[n]+this.children[n].length+this.from)),new U(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(s,r,o)=>new U(pe.none,s,r,o,this.hashProp)})}}var $;(function(i){i[i.Document=1]="Document",i[i.CodeBlock=2]="CodeBlock",i[i.FencedCode=3]="FencedCode",i[i.Blockquote=4]="Blockquote",i[i.HorizontalRule=5]="HorizontalRule",i[i.BulletList=6]="BulletList",i[i.OrderedList=7]="OrderedList",i[i.ListItem=8]="ListItem",i[i.ATXHeading1=9]="ATXHeading1",i[i.ATXHeading2=10]="ATXHeading2",i[i.ATXHeading3=11]="ATXHeading3",i[i.ATXHeading4=12]="ATXHeading4",i[i.ATXHeading5=13]="ATXHeading5",i[i.ATXHeading6=14]="ATXHeading6",i[i.SetextHeading1=15]="SetextHeading1",i[i.SetextHeading2=16]="SetextHeading2",i[i.HTMLBlock=17]="HTMLBlock",i[i.LinkReference=18]="LinkReference",i[i.Paragraph=19]="Paragraph",i[i.CommentBlock=20]="CommentBlock",i[i.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",i[i.Escape=22]="Escape",i[i.Entity=23]="Entity",i[i.HardBreak=24]="HardBreak",i[i.Emphasis=25]="Emphasis",i[i.StrongEmphasis=26]="StrongEmphasis",i[i.Link=27]="Link",i[i.Image=28]="Image",i[i.InlineCode=29]="InlineCode",i[i.HTMLTag=30]="HTMLTag",i[i.Comment=31]="Comment",i[i.ProcessingInstruction=32]="ProcessingInstruction",i[i.Autolink=33]="Autolink",i[i.HeaderMark=34]="HeaderMark",i[i.QuoteMark=35]="QuoteMark",i[i.ListMark=36]="ListMark",i[i.LinkMark=37]="LinkMark",i[i.EmphasisMark=38]="EmphasisMark",i[i.CodeMark=39]="CodeMark",i[i.CodeText=40]="CodeText",i[i.CodeInfo=41]="CodeInfo",i[i.LinkTitle=42]="LinkTitle",i[i.LinkLabel=43]="LinkLabel",i[i.URL=44]="URL"})($||($={}));class n4{constructor(e,t){this.start=e,this.content=t,this.marks=[],this.parsers=[]}}class s4{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return On(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let s=t;s<e;s++)n+=this.text.charCodeAt(s)==9?4-n%4:1;return n}findColumn(e){let t=0;for(let n=0;t<this.text.length&&n<e;t++)n+=this.text.charCodeAt(t)==9?4-n%4:1;return t}scrub(){if(!this.baseIndent)return this.text;let e="";for(let t=0;t<this.basePos;t++)e+=" ";return e+this.text.slice(this.basePos)}}function Hu(i,e,t){if(t.pos==t.text.length||i!=e.block&&t.indent>=e.stack[t.depth+1].value+t.baseIndent)return!0;if(t.indent>=t.baseIndent+4)return!1;let n=(i.type==$.OrderedList?Nc:Dc)(t,e,!1);return n>0&&(i.type!=$.BulletList||Bc(t,e,!1)<0)&&t.text.charCodeAt(t.pos+n-1)==i.value}const Im={[$.Blockquote](i,e,t){return t.next!=62?!1:(t.markers.push(W($.QuoteMark,e.lineStart+t.pos,e.lineStart+t.pos+1)),t.moveBase(t.pos+(Je(t.text.charCodeAt(t.pos+1))?2:1)),i.end=e.lineStart+t.text.length,!0)},[$.ListItem](i,e,t){return t.indent<t.baseIndent+i.value&&t.next>-1?!1:(t.moveBaseColumn(t.baseIndent+i.value),!0)},[$.OrderedList]:Hu,[$.BulletList]:Hu,[$.Document](){return!0}};function Je(i){return i==32||i==9||i==10||i==13}function On(i,e=0){for(;e<i.length&&Je(i.charCodeAt(e));)e++;return e}function Ku(i,e,t){for(;e>t&&Je(i.charCodeAt(e-1));)e--;return e}function Lm(i){if(i.next!=96&&i.next!=126)return-1;let e=i.pos+1;for(;e<i.text.length&&i.text.charCodeAt(e)==i.next;)e++;if(e<i.pos+3)return-1;if(i.next==96){for(let t=e;t<i.text.length;t++)if(i.text.charCodeAt(t)==96)return-1}return e}function Mm(i){return i.next!=62?-1:i.text.charCodeAt(i.pos+1)==32?2:1}function Bc(i,e,t){if(i.next!=42&&i.next!=45&&i.next!=95)return-1;let n=1;for(let s=i.pos+1;s<i.text.length;s++){let r=i.text.charCodeAt(s);if(r==i.next)n++;else if(!Je(r))return-1}return t&&i.next==45&&zm(i)>-1&&i.depth==e.stack.length||n<3?-1:1}function Xm(i,e){for(let t=i.stack.length-1;t>=0;t--)if(i.stack[t].type==e)return!0;return!1}function Dc(i,e,t){return(i.next==45||i.next==43||i.next==42)&&(i.pos==i.text.length-1||Je(i.text.charCodeAt(i.pos+1)))&&(!t||Xm(e,$.BulletList)||i.skipSpace(i.pos+2)<i.text.length)?1:-1}function Nc(i,e,t){let n=i.pos,s=i.next;for(;s>=48&&s<=57;){n++;if(n==i.text.length)return-1;s=i.text.charCodeAt(n)}return n==i.pos||n>i.pos+9||s!=46&&s!=41||n<i.text.length-1&&!Je(i.text.charCodeAt(n+1))||t&&!Xm(e,$.OrderedList)&&(i.skipSpace(n+1)==i.text.length||n>i.pos+1||i.next!=49)?-1:n+1-i.pos}function jm(i){if(i.next!=35)return-1;let e=i.pos+1;for(;e<i.text.length&&i.text.charCodeAt(e)==35;)e++;if(e<i.text.length&&i.text.charCodeAt(e)!=32)return-1;let t=e-i.pos;return t>6?-1:t}function zm(i){if(i.next!=45&&i.next!=61||i.indent>=i.baseIndent+4)return-1;let e=i.pos+1;for(;e<i.text.length&&i.text.charCodeAt(e)==i.next;)e++;let t=e;for(;e<i.text.length&&Je(i.text.charCodeAt(e));)e++;return e==i.text.length?t:-1}const ja=/^[ \t]*$/,Wm=/-->/,Ym=/\?>/,za=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,Wm],[/^\s*<\?/,Ym],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,ja],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,ja]];function Fm(i,e,t){if(i.next!=60)return-1;let n=i.text.slice(i.pos);for(let s=0,r=za.length-(t?1:0);s<r;s++)if(za[s][0].test(n))return s;return-1}function Ju(i,e){let t=i.countIndent(e,i.pos,i.indent),n=i.countIndent(i.skipSpace(e),e,t);return n>=t+5?t+1:n}function ei(i,e,t){let n=i.length-1;n>=0&&i[n].to==e&&i[n].type==$.CodeText?i[n].to=t:i.push(W($.CodeText,e,t))}const ps={LinkReference:void 0,IndentedCode(i,e){let t=e.baseIndent+4;if(e.indent<t)return!1;let n=e.findColumn(t),s=i.lineStart+n,r=i.lineStart+e.text.length,o=[],a=[];for(ei(o,s,r);i.nextLine()&&e.depth>=i.stack.length;)if(e.pos==e.text.length){ei(a,i.lineStart-1,i.lineStart);for(let c of e.markers)a.push(c)}else{if(e.indent<t)break;{if(a.length){for(let h of a)h.type==$.CodeText?ei(o,h.from,h.to):o.push(h);a=[]}ei(o,i.lineStart-1,i.lineStart);for(let h of e.markers)o.push(h);r=i.lineStart+e.text.length;let c=i.lineStart+e.findColumn(e.baseIndent+4);c<r&&ei(o,c,r)}}return a.length&&(a=a.filter(c=>c.type!=$.CodeText),a.length&&(e.markers=a.concat(e.markers))),i.addNode(i.buffer.writeElements(o,-s).finish($.CodeBlock,r-s),s),!0},FencedCode(i,e){let t=Lm(e);if(t<0)return!1;let n=i.lineStart+e.pos,s=e.next,r=t-e.pos,o=e.skipSpace(t),a=Ku(e.text,e.text.length,o),c=[W($.CodeMark,n,n+r)];o<a&&c.push(W($.CodeInfo,i.lineStart+o,i.lineStart+a));for(let h=!0;i.nextLine()&&e.depth>=i.stack.length;h=!1){let u=e.pos;if(e.indent-e.baseIndent<4)for(;u<e.text.length&&e.text.charCodeAt(u)==s;)u++;if(u-e.pos>=r&&e.skipSpace(u)==e.text.length){for(let d of e.markers)c.push(d);c.push(W($.CodeMark,i.lineStart+e.pos,i.lineStart+u)),i.nextLine();break}else{h||ei(c,i.lineStart-1,i.lineStart);for(let p of e.markers)c.push(p);let d=i.lineStart+e.basePos,f=i.lineStart+e.text.length;d<f&&ei(c,d,f)}}return i.addNode(i.buffer.writeElements(c,-n).finish($.FencedCode,i.prevLineEnd()-n),n),!0},Blockquote(i,e){let t=Mm(e);return t<0?!1:(i.startContext($.Blockquote,e.pos),i.addNode($.QuoteMark,i.lineStart+e.pos,i.lineStart+e.pos+1),e.moveBase(e.pos+t),null)},HorizontalRule(i,e){if(Bc(e,i,!1)<0)return!1;let t=i.lineStart+e.pos;return i.nextLine(),i.addNode($.HorizontalRule,t),!0},BulletList(i,e){let t=Dc(e,i,!1);if(t<0)return!1;i.block.type!=$.BulletList&&i.startContext($.BulletList,e.basePos,e.next);let n=Ju(e,e.pos+1);return i.startContext($.ListItem,e.basePos,n-e.baseIndent),i.addNode($.ListMark,i.lineStart+e.pos,i.lineStart+e.pos+t),e.moveBaseColumn(n),null},OrderedList(i,e){let t=Nc(e,i,!1);if(t<0)return!1;i.block.type!=$.OrderedList&&i.startContext($.OrderedList,e.basePos,e.text.charCodeAt(e.pos+t-1));let n=Ju(e,e.pos+t);return i.startContext($.ListItem,e.basePos,n-e.baseIndent),i.addNode($.ListMark,i.lineStart+e.pos,i.lineStart+e.pos+t),e.moveBaseColumn(n),null},ATXHeading(i,e){let t=jm(e);if(t<0)return!1;let n=e.pos,s=i.lineStart+n,r=Ku(e.text,e.text.length,n),o=r;for(;o>n&&e.text.charCodeAt(o-1)==e.next;)o--;(o==r||o==n||!Je(e.text.charCodeAt(o-1)))&&(o=e.text.length);let a=i.buffer.write($.HeaderMark,0,t).writeElements(i.parser.parseInline(e.text.slice(n+t+1,o),s+t+1),-s);o<e.text.length&&a.write($.HeaderMark,o-n,r-n);let c=a.finish($.ATXHeading1-1+t,e.text.length-n);return i.nextLine(),i.addNode(c,s),!0},HTMLBlock(i,e){let t=Fm(e,i,!1);if(t<0)return!1;let n=i.lineStart+e.pos,s=za[t][1],r=[],o=s!=ja;for(;!s.test(e.text)&&i.nextLine();){if(e.depth<i.stack.length){o=!1;break}for(let h of e.markers)r.push(h)}o&&i.nextLine();let a=s==Wm?$.CommentBlock:s==Ym?$.ProcessingInstructionBlock:$.HTMLBlock,c=i.prevLineEnd();return i.addNode(i.buffer.writeElements(r,-n).finish(a,c-n),n),!0},SetextHeading:void 0};class r4{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,t,n){if(this.stage==-1)return!1;let s=n.content+`
23
+ `+t.scrub(),r=this.advance(s);return r>-1&&r<s.length?this.complete(e,n,r):!1}finish(e,t){return(this.stage==2||this.stage==3)&&On(t.content,this.pos)==t.content.length?this.complete(e,t,t.content.length):!1}complete(e,t,n){return e.addLeafElement(t,W($.LinkReference,this.start,this.start+n,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(e===!1&&(this.stage=-1),!1)}advance(e){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(ig(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(W($.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(eg(e,On(e,this.pos),this.start)))return-1}else if(this.stage==2){let t=On(e,this.pos),n=0;if(t>this.pos){let s=tg(e,t,this.start);if(s){let r=Rl(e,s.to-this.start);r>0&&(this.nextStage(s),n=r)}}return n||(n=Rl(e,this.pos)),n>0&&n<e.length?n:-1}else return Rl(e,this.pos)}}}function Rl(i,e){for(;e<i.length;e++){let t=i.charCodeAt(e);if(t==10)break;if(!Je(t))return-1}return e}class o4{nextLine(e,t,n){let s=t.depth<e.stack.length?-1:zm(t),r=t.next;if(s<0)return!1;let o=W($.HeaderMark,e.lineStart+t.pos,e.lineStart+s);return e.nextLine(),e.addLeafElement(n,W(r==61?$.SetextHeading1:$.SetextHeading2,n.start,e.prevLineEnd(),[...e.parser.parseInline(n.content,n.start),o])),!0}finish(){return!1}}const l4={LinkReference(i,e){return e.content.charCodeAt(0)==91?new r4(e):null},SetextHeading(){return new o4}},a4=[(i,e)=>jm(e)>=0,(i,e)=>Lm(e)>=0,(i,e)=>Mm(e)>=0,(i,e)=>Dc(e,i,!0)>=0,(i,e)=>Nc(e,i,!0)>=0,(i,e)=>Bc(e,i,!0)>=0,(i,e)=>Fm(e,i,!0)>=0],c4={text:"",end:0};class h4{constructor(e,t,n,s){this.parser=e,this.input=t,this.ranges=s,this.line=new s4,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=s[s.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=s[0].from,this.block=Ao.create($.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=n.length?new p4(n,t):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let n=0;;){let s=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;n<e.markers.length&&(!s||e.markers[n].from<s.end);){let r=e.markers[n++];this.addNode(r.type,r.from,r.to)}if(!s)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;e:for(;;){for(let n of this.parser.blockParsers)if(n){let s=n(this,e);if(s!=!1){if(s==!0)return null;e.forward();continue e}}break}let t=new n4(this.lineStart+e.pos,e.text.slice(e.pos));for(let n of this.parser.leafBlockParsers)if(n){let s=n(this,t);s&&t.parsers.push(s)}e:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4){for(let n of this.parser.endLeafBlock)if(n(this,e,t))break e}for(let n of t.parsers)if(n.nextLine(this,e,t))return null;t.content+=`
24
+ `+e.scrub();for(let n of e.markers)t.marks.push(n)}return this.finishLeaf(t),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let t=this.fragments.takeNodes(this);return t?(this.absoluteLineStart+=t,this.lineStart=ng(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let t=c4;if(t.end=e,e>=this.to)t.text="";else if(t.text=this.lineChunkAt(e),t.end+=t.text.length,this.ranges.length>1){let n=this.absoluteLineStart,s=this.rangeI;for(;this.ranges[s].to<t.end;){s++;let r=this.ranges[s].from,o=this.lineChunkAt(r);t.end=r+o.length,t.text=t.text.slice(0,this.ranges[s-1].to-n)+o,n=t.end-t.text.length}}return t}readLine(){let{line:e}=this,{text:t,end:n}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=n,e.reset(t);e.depth<this.stack.length;e.depth++){let s=this.stack[e.depth],r=this.parser.skipContextMarkup[s.type];if(!r)throw new Error("Unhandled block context "+$[s.type]);if(!r(s,this,e))break;e.forward()}}lineChunkAt(e){let t=this.input.chunk(e),n;if(this.input.lineChunks)n=t==`
25
+ `?"":t;else{let s=t.indexOf(`
26
+ `);n=s<0?t:t.slice(0,s)}return e+n.length>this.to?n.slice(0,this.to-e):n}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,t,n=0){this.block=Ao.create(e,n,this.lineStart+t,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,t,n=0){this.startContext(this.parser.getNodeType(e),t,n)}addNode(e,t,n){typeof e=="number"&&(e=new U(this.parser.nodeSet.types[e],Ii,Ii,(n??this.prevLineEnd())-t)),this.block.addChild(e,t-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,t){this.addNode(this.buffer.writeElements(Ya(t.children,e.marks),-t.from).finish(t.type,t.to-t.from),t.from)}finishContext(){let e=this.stack.pop(),t=this.stack[this.stack.length-1];t.addChild(e.toTree(this.parser.nodeSet),e.from-t.from),this.block=t}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?qm(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let n of e.parsers)if(n.finish(this,e))return;let t=Ya(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(t,-e.start).finish($.Paragraph,e.content.length),e.start)}elt(e,t,n,s){return typeof e=="string"?W(this.parser.getNodeType(e),t,n,s):new Hm(e,t)}get buffer(){return new Gm(this.parser.nodeSet)}}function qm(i,e,t,n,s){let r=i[e].to,o=[],a=[],c=t.from+n;function h(u,d){for(;d?u>=r:u>r;){let f=i[e+1].from-r;n+=f,u+=f,e++,r=i[e].to}}for(let u=t.firstChild;u;u=u.nextSibling){h(u.from+n,!0);let d=u.from+n,f,p=s.get(u.tree);p?f=p:u.to+n>r?(f=qm(i,e,u,n,s),h(u.to+n,!1)):f=u.toTree(),o.push(f),a.push(d-c)}return h(t.to+n,!1),new U(t.type,o,a,t.to+n-c,t.tree?t.tree.propValues:void 0)}class Jo extends lc{constructor(e,t,n,s,r,o,a,c,h){super(),this.nodeSet=e,this.blockParsers=t,this.leafBlockParsers=n,this.blockNames=s,this.endLeafBlock=r,this.skipContextMarkup=o,this.inlineParsers=a,this.inlineNames=c,this.wrappers=h,this.nodeTypes=Object.create(null);for(let u of e.types)this.nodeTypes[u.name]=u.id}createParse(e,t,n){let s=new h4(this,e,t,n);for(let r of this.wrappers)s=r(s,e,t,n);return s}configure(e){let t=Wa(e);if(!t)return this;let{nodeSet:n,skipContextMarkup:s}=this,r=this.blockParsers.slice(),o=this.leafBlockParsers.slice(),a=this.blockNames.slice(),c=this.inlineParsers.slice(),h=this.inlineNames.slice(),u=this.endLeafBlock.slice(),d=this.wrappers;if(tn(t.defineNodes)){s=Object.assign({},s);let f=n.types.slice(),p;for(let m of t.defineNodes){let{name:g,block:y,composite:b,style:k}=typeof m=="string"?{name:m}:m;if(f.some(v=>v.name==g))continue;b&&(s[f.length]=(v,P,_)=>b(P,_,v.value));let w=f.length,S=b?["Block","BlockContext"]:y?w>=$.ATXHeading1&&w<=$.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;f.push(pe.define({id:w,name:g,props:S&&[[D.group,S]]})),k&&(p||(p={}),Array.isArray(k)||k instanceof it?p[g]=k:Object.assign(p,k))}n=new Ln(f),p&&(n=n.extend(pi(p)))}if(tn(t.props)&&(n=n.extend(...t.props)),tn(t.remove))for(let f of t.remove){let p=this.blockNames.indexOf(f),m=this.inlineNames.indexOf(f);p>-1&&(r[p]=o[p]=void 0),m>-1&&(c[m]=void 0)}if(tn(t.parseBlock))for(let f of t.parseBlock){let p=a.indexOf(f.name);if(p>-1)r[p]=f.parse,o[p]=f.leaf;else{let m=f.before?ms(a,f.before):f.after?ms(a,f.after)+1:a.length-1;r.splice(m,0,f.parse),o.splice(m,0,f.leaf),a.splice(m,0,f.name)}f.endLeaf&&u.push(f.endLeaf)}if(tn(t.parseInline))for(let f of t.parseInline){let p=h.indexOf(f.name);if(p>-1)c[p]=f.parse;else{let m=f.before?ms(h,f.before):f.after?ms(h,f.after)+1:h.length-1;c.splice(m,0,f.parse),h.splice(m,0,f.name)}}return t.wrap&&(d=d.concat(t.wrap)),new Jo(n,r,o,a,u,s,c,h,d)}getNodeType(e){let t=this.nodeTypes[e];if(t==null)throw new RangeError(`Unknown node type '${e}'`);return t}parseInline(e,t){let n=new d4(this,e,t);e:for(let s=t;s<n.end;){let r=n.char(s);for(let o of this.inlineParsers)if(o){let a=o(n,r,s);if(a>=0){s=a;continue e}}s++}return n.resolveMarkers(0)}}function tn(i){return i!=null&&i.length>0}function Wa(i){if(!Array.isArray(i))return i;if(i.length==0)return null;let e=Wa(i[0]);if(i.length==1)return e;let t=Wa(i.slice(1));if(!t||!e)return e||t;let n=(o,a)=>(o||Ii).concat(a||Ii),s=e.wrap,r=t.wrap;return{props:n(e.props,t.props),defineNodes:n(e.defineNodes,t.defineNodes),parseBlock:n(e.parseBlock,t.parseBlock),parseInline:n(e.parseInline,t.parseInline),remove:n(e.remove,t.remove),wrap:s?r?(o,a,c,h)=>s(r(o,a,c,h),a,c,h):s:r}}function ms(i,e){let t=i.indexOf(e);if(t<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return t}let Um=[pe.none];for(let i=1,e;e=$[i];i++)Um[i]=pe.define({id:i,name:e,props:i>=$.Escape?[]:[[D.group,i in Im?["Block","BlockContext"]:["Block","LeafBlock"]]],top:e=="Document"});const Ii=[];class Gm{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,t,n,s=0){return this.content.push(e,t,n,4+s*4),this}writeElements(e,t=0){for(let n of e)n.writeTo(this,t);return this}finish(e,t){return U.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:t})}}class Nn{constructor(e,t,n,s=Ii){this.type=e,this.from=t,this.to=n,this.children=s}writeTo(e,t){let n=e.content.length;e.writeElements(this.children,t),e.content.push(this.type,this.from+t,this.to+t,e.content.length+4-n)}toTree(e){return new Gm(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}}class Hm{constructor(e,t){this.tree=e,this.from=t}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return Ii}writeTo(e,t){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+t,this.to+t,-1)}toTree(){return this.tree}}function W(i,e,t,n){return new Nn(i,e,t,n)}const Km={resolve:"Emphasis",mark:"EmphasisMark"},Jm={resolve:"Emphasis",mark:"EmphasisMark"},nn={},ed={};class nt{constructor(e,t,n,s){this.type=e,this.from=t,this.to=n,this.side=s}}const td="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let Rn=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Rn=new RegExp("[\\p{Pc}|\\p{Pd}|\\p{Pe}|\\p{Pf}|\\p{Pi}|\\p{Po}|\\p{Ps}]","u")}catch{}const Il={Escape(i,e,t){if(e!=92||t==i.end-1)return-1;let n=i.char(t+1);for(let s=0;s<td.length;s++)if(td.charCodeAt(s)==n)return i.append(W($.Escape,t,t+2));return-1},Entity(i,e,t){if(e!=38)return-1;let n=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(i.slice(t+1,t+31));return n?i.append(W($.Entity,t,t+1+n[0].length)):-1},InlineCode(i,e,t){if(e!=96||t&&i.char(t-1)==96)return-1;let n=t+1;for(;n<i.end&&i.char(n)==96;)n++;let s=n-t,r=0;for(;n<i.end;n++)if(i.char(n)==96){if(r++,r==s&&i.char(n+1)!=96)return i.append(W($.InlineCode,t,n+1,[W($.CodeMark,t,t+s),W($.CodeMark,n+1-s,n+1)]))}else r=0;return-1},HTMLTag(i,e,t){if(e!=60||t==i.end-1)return-1;let n=i.slice(t+1,i.end),s=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(n);if(s)return i.append(W($.Autolink,t,t+1+s[0].length,[W($.LinkMark,t,t+1),W($.URL,t+1,t+s[0].length),W($.LinkMark,t+s[0].length,t+1+s[0].length)]));let r=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(n);if(r)return i.append(W($.Comment,t,t+1+r[0].length));let o=/^\?[^]*?\?>/.exec(n);if(o)return i.append(W($.ProcessingInstruction,t,t+1+o[0].length));let a=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(n);return a?i.append(W($.HTMLTag,t,t+1+a[0].length)):-1},Emphasis(i,e,t){if(e!=95&&e!=42)return-1;let n=t+1;for(;i.char(n)==e;)n++;let s=i.slice(t-1,t),r=i.slice(n,n+1),o=Rn.test(s),a=Rn.test(r),c=/\s|^$/.test(s),h=/\s|^$/.test(r),u=!h&&(!a||c||o),d=!c&&(!o||h||a),f=u&&(e==42||!d||o),p=d&&(e==42||!u||a);return i.append(new nt(e==95?Km:Jm,t,n,(f?1:0)|(p?2:0)))},HardBreak(i,e,t){if(e==92&&i.char(t+1)==10)return i.append(W($.HardBreak,t,t+2));if(e==32){let n=t+1;for(;i.char(n)==32;)n++;if(i.char(n)==10&&n>=t+2)return i.append(W($.HardBreak,t,n+1))}return-1},Link(i,e,t){return e==91?i.append(new nt(nn,t,t+1,1)):-1},Image(i,e,t){return e==33&&i.char(t+1)==91?i.append(new nt(ed,t,t+2,1)):-1},LinkEnd(i,e,t){if(e!=93)return-1;for(let n=i.parts.length-1;n>=0;n--){let s=i.parts[n];if(s instanceof nt&&(s.type==nn||s.type==ed)){if(!s.side||i.skipSpace(s.to)==t&&!/[(\[]/.test(i.slice(t+1,t+2)))return i.parts[n]=null,-1;let r=i.takeContent(n),o=i.parts[n]=u4(i,r,s.type==nn?$.Link:$.Image,s.from,t+1);if(s.type==nn)for(let a=0;a<n;a++){let c=i.parts[a];c instanceof nt&&c.type==nn&&(c.side=0)}return o.to}}return-1}};function u4(i,e,t,n,s){let{text:r}=i,o=i.char(s),a=s;if(e.unshift(W($.LinkMark,n,n+(t==$.Image?2:1))),e.push(W($.LinkMark,s-1,s)),o==40){let c=i.skipSpace(s+1),h=eg(r,c-i.offset,i.offset),u;h&&(c=i.skipSpace(h.to),c!=h.to&&(u=tg(r,c-i.offset,i.offset),u&&(c=i.skipSpace(u.to)))),i.char(c)==41&&(e.push(W($.LinkMark,s,s+1)),a=c+1,h&&e.push(h),u&&e.push(u),e.push(W($.LinkMark,c,a)))}else if(o==91){let c=ig(r,s-i.offset,i.offset,!1);c&&(e.push(c),a=c.to)}return W(t,n,a,e)}function eg(i,e,t){if(i.charCodeAt(e)==60){for(let s=e+1;s<i.length;s++){let r=i.charCodeAt(s);if(r==62)return W($.URL,e+t,s+1+t);if(r==60||r==10)return!1}return null}else{let s=0,r=e;for(let o=!1;r<i.length;r++){let a=i.charCodeAt(r);if(Je(a))break;if(o)o=!1;else if(a==40)s++;else if(a==41){if(!s)break;s--}else a==92&&(o=!0)}return r>e?W($.URL,e+t,r+t):r==i.length?null:!1}}function tg(i,e,t){let n=i.charCodeAt(e);if(n!=39&&n!=34&&n!=40)return!1;let s=n==40?41:n;for(let r=e+1,o=!1;r<i.length;r++){let a=i.charCodeAt(r);if(o)o=!1;else{if(a==s)return W($.LinkTitle,e+t,r+1+t);a==92&&(o=!0)}}return null}function ig(i,e,t,n){for(let s=!1,r=e+1,o=Math.min(i.length,r+999);r<o;r++){let a=i.charCodeAt(r);if(s)s=!1;else{if(a==93)return n?!1:W($.LinkLabel,e+t,r+1+t);if(n&&!Je(a)&&(n=!1),a==91)return!1;a==92&&(s=!0)}}return null}class d4{constructor(e,t,n){this.parser=e,this.text=t,this.offset=n,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,t,n,s,r){return this.append(new nt(e,t,n,(s?1:0)|(r?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let n=e;n<this.parts.length;n++){let s=this.parts[n];if(!(s instanceof nt&&s.type.resolve&&s.side&2))continue;let r=s.type==Km||s.type==Jm,o=s.to-s.from,a,c=n-1;for(;c>=e;c--){let g=this.parts[c];if(g instanceof nt&&g.side&1&&g.type==s.type&&!(r&&(s.side&1||g.side&2)&&(g.to-g.from+o)%3==0&&((g.to-g.from)%3||o%3))){a=g;break}}if(!a)continue;let h=s.type.resolve,u=[],d=a.from,f=s.to;if(r){let g=Math.min(2,a.to-a.from,o);d=a.to-g,f=s.from+g,h=g==1?"Emphasis":"StrongEmphasis"}a.type.mark&&u.push(this.elt(a.type.mark,d,a.to));for(let g=c+1;g<n;g++)this.parts[g]instanceof Nn&&u.push(this.parts[g]),this.parts[g]=null;s.type.mark&&u.push(this.elt(s.type.mark,s.from,f));let p=this.elt(h,d,f,u);this.parts[c]=r&&a.from!=d?new nt(a.type,a.from,d,a.side):null,(this.parts[n]=r&&s.to!=f?new nt(s.type,f,s.to,s.side):null)?this.parts.splice(n,0,p):this.parts[n]=p}let t=[];for(let n=e;n<this.parts.length;n++){let s=this.parts[n];s instanceof Nn&&t.push(s)}return t}findOpeningDelimiter(e){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof nt&&n.type==e)return t}return null}takeContent(e){let t=this.resolveMarkers(e);return this.parts.length=e,t}skipSpace(e){return On(this.text,e-this.offset)+this.offset}elt(e,t,n,s){return typeof e=="string"?W(this.parser.getNodeType(e),t,n,s):new Hm(e,t)}}function Ya(i,e){if(!e.length)return i;if(!i.length)return e;let t=i.slice(),n=0;for(let s of e){for(;n<t.length&&t[n].to<s.to;)n++;if(n<t.length&&t[n].from<s.from){let r=t[n];r instanceof Nn&&(t[n]=new Nn(r.type,r.from,r.to,Ya(r.children,[s])))}else t.splice(n++,0,s)}return t}const f4=[$.CodeBlock,$.ListItem,$.OrderedList,$.BulletList];class p4{constructor(e,t){this.fragments=e,this.input=t,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,t){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let r=this.fragment.to;for(;r>0&&this.input.read(r-1,r)!=`
27
+ `;)r--;this.fragmentEnd=r?r-1:0}let n=this.cursor;n||(n=this.cursor=this.fragment.tree.cursor(),n.firstChild());let s=e+this.fragment.offset;for(;n.to<=s;)if(!n.parent())return!1;for(;;){if(n.from>=s)return this.fragment.from<=t;if(!n.childAfter(s))return!1}}matches(e){let t=this.cursor.tree;return t&&t.prop(D.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,s=this.fragmentEnd-(this.fragment.openEnd?1:0),r=e.absoluteLineStart,o=r,a=e.block.children.length,c=o,h=a;for(;;){if(t.to-n>s){if(t.type.isAnonymous&&t.firstChild())continue;break}let u=ng(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to)e.addNode(t.tree,u);else{let d=new U(e.parser.nodeSet.types[$.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(d,t.tree),e.addNode(d,u)}if(t.type.is("Block")&&(f4.indexOf(t.type.id)<0?(o=t.to-n,a=e.block.children.length):(o=c,a=h,c=t.to-n,h=e.block.children.length)),!t.nextSibling())break}for(;e.block.children.length>a;)e.block.children.pop(),e.block.positions.pop();return o-r}}function ng(i,e){let t=i;for(let n=1;n<e.length;n++){let s=e[n-1].to,r=e[n].from;s<i&&(t-=r-s)}return t}const m4=pi({"Blockquote/...":O.quote,HorizontalRule:O.contentSeparator,"ATXHeading1/... SetextHeading1/...":O.heading1,"ATXHeading2/... SetextHeading2/...":O.heading2,"ATXHeading3/...":O.heading3,"ATXHeading4/...":O.heading4,"ATXHeading5/...":O.heading5,"ATXHeading6/...":O.heading6,"Comment CommentBlock":O.comment,Escape:O.escape,Entity:O.character,"Emphasis/...":O.emphasis,"StrongEmphasis/...":O.strong,"Link/... Image/...":O.link,"OrderedList/... BulletList/...":O.list,"BlockQuote/...":O.quote,"InlineCode CodeText":O.monospace,"URL Autolink":O.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":O.processingInstruction,"CodeInfo LinkLabel":O.labelName,LinkTitle:O.string,Paragraph:O.content}),g4=new Jo(new Ln(Um).extend(m4),Object.keys(ps).map(i=>ps[i]),Object.keys(ps).map(i=>l4[i]),Object.keys(ps),a4,Im,Object.keys(Il).map(i=>Il[i]),Object.keys(Il),[]);function O4(i,e,t){let n=[];for(let s=i.firstChild,r=e;;s=s.nextSibling){let o=s?s.from:t;if(o>r&&n.push({from:r,to:o}),!s)break;r=s.to}return n}function y4(i){let{codeParser:e,htmlParser:t}=i;return{wrap:Jd((s,r)=>{let o=s.type.id;if(e&&(o==$.CodeBlock||o==$.FencedCode)){let a="";if(o==$.FencedCode){let h=s.node.getChild($.CodeInfo);h&&(a=r.read(h.from,h.to))}let c=e(a);if(c)return{parser:c,overlay:h=>h.type.id==$.CodeText}}else if(t&&(o==$.HTMLBlock||o==$.HTMLTag))return{parser:t,overlay:O4(s.node,s.from,s.to)};return null})}}const b4={resolve:"Strikethrough",mark:"StrikethroughMark"},k4={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":O.strikethrough}},{name:"StrikethroughMark",style:O.processingInstruction}],parseInline:[{name:"Strikethrough",parse(i,e,t){if(e!=126||i.char(t+1)!=126||i.char(t+2)==126)return-1;let n=i.slice(t-1,t),s=i.slice(t+2,t+3),r=/\s|^$/.test(n),o=/\s|^$/.test(s),a=Rn.test(n),c=Rn.test(s);return i.addDelimiter(b4,t,t+2,!o&&(!c||r||a),!r&&(!a||o||c))},after:"Emphasis"}]};function yn(i,e,t=0,n,s=0){let r=0,o=!0,a=-1,c=-1,h=!1,u=()=>{n.push(i.elt("TableCell",s+a,s+c,i.parser.parseInline(e.slice(a,c),s+a)))};for(let d=t;d<e.length;d++){let f=e.charCodeAt(d);f==124&&!h?((!o||a>-1)&&r++,o=!1,n&&(a>-1&&u(),n.push(i.elt("TableDelimiter",d+s,d+s+1))),a=c=-1):(h||f!=32&&f!=9)&&(a<0&&(a=d),c=d+1),h=!h&&f==92}return a>-1&&(r++,n&&u()),r}function id(i,e){for(let t=e;t<i.length;t++){let n=i.charCodeAt(t);if(n==124)return!0;n==92&&t++}return!1}const sg=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class nd{constructor(){this.rows=null}nextLine(e,t,n){if(this.rows==null){this.rows=!1;let s;if((t.next==45||t.next==58||t.next==124)&&sg.test(s=t.text.slice(t.pos))){let r=[];yn(e,n.content,0,r,n.start)==yn(e,s,t.pos)&&(this.rows=[e.elt("TableHeader",n.start,n.start+n.content.length,r),e.elt("TableDelimiter",e.lineStart+t.pos,e.lineStart+t.text.length)])}}else if(this.rows){let s=[];yn(e,t.text,t.pos,s,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+t.pos,e.lineStart+t.text.length,s))}return!1}finish(e,t){return this.rows?(e.addLeafElement(t,e.elt("Table",t.start,t.start+t.content.length,this.rows)),!0):!1}}const w4={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":O.heading}},"TableRow",{name:"TableCell",style:O.content},{name:"TableDelimiter",style:O.processingInstruction}],parseBlock:[{name:"Table",leaf(i,e){return id(e.content,0)?new nd:null},endLeaf(i,e,t){if(t.parsers.some(s=>s instanceof nd)||!id(e.text,e.basePos))return!1;let n=i.scanLine(i.absoluteLineEnd+1).text;return sg.test(n)&&yn(i,e.text,e.basePos)==yn(i,n,e.basePos)},before:"SetextHeading"}]};class v4{nextLine(){return!1}finish(e,t){return e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)])),!0}}const S4={defineNodes:[{name:"Task",block:!0,style:O.list},{name:"TaskMarker",style:O.atom}],parseBlock:[{name:"TaskList",leaf(i,e){return/^\[[ xX]\][ \t]/.test(e.content)&&i.parentType().name=="ListItem"?new v4:null},after:"SetextHeading"}]},sd=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,rd=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,C4=/[\w-]+\.[\w-]+($|\/)/,od=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,ld=/\/[a-zA-Z\d@.]+/gy;function ad(i,e,t,n){let s=0;for(let r=e;r<t;r++)i[r]==n&&s++;return s}function x4(i,e){rd.lastIndex=e;let t=rd.exec(i);if(!t||C4.exec(t[0])[0].indexOf("_")>-1)return-1;let n=e+t[0].length;for(;;){let s=i[n-1],r;if(/[?!.,:*_~]/.test(s)||s==")"&&ad(i,e,n,")")>ad(i,e,n,"("))n--;else if(s==";"&&(r=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(i.slice(e,n))))n=e+r.index;else break}return n}function cd(i,e){od.lastIndex=e;let t=od.exec(i);if(!t)return-1;let n=t[0][t[0].length-1];return n=="_"||n=="-"?-1:e+t[0].length-(n=="."?1:0)}const $4={parseInline:[{name:"Autolink",parse(i,e,t){let n=t-i.offset;sd.lastIndex=n;let s=sd.exec(i.text),r=-1;return!s||(s[1]||s[2]?r=x4(i.text,n+s[0].length):s[3]?r=cd(i.text,n):(r=cd(i.text,n+s[0].length),r>-1&&s[0]=="xmpp:"&&(ld.lastIndex=r,s=ld.exec(i.text),s&&(r=s.index+s[0].length))),r<0)?-1:(i.addElement(i.elt("URL",t,r+i.offset)),r+i.offset)}}]},_4=[w4,S4,k4,$4];function rg(i,e,t){return(n,s,r)=>{if(s!=i||n.char(r+1)==i)return-1;let o=[n.elt(t,r,r+1)];for(let a=r+1;a<n.end;a++){let c=n.char(a);if(c==i)return n.addElement(n.elt(e,r,a+1,o.concat(n.elt(t,a,a+1))));if(c==92&&o.push(n.elt("Escape",a,a+++2)),Je(c))break}return-1}}const P4={defineNodes:[{name:"Superscript",style:O.special(O.content)},{name:"SuperscriptMark",style:O.processingInstruction}],parseInline:[{name:"Superscript",parse:rg(94,"Superscript","SuperscriptMark")}]},Q4={defineNodes:[{name:"Subscript",style:O.special(O.content)},{name:"SubscriptMark",style:O.processingInstruction}],parseInline:[{name:"Subscript",parse:rg(126,"Subscript","SubscriptMark")}]},V4={defineNodes:[{name:"Emoji",style:O.character}],parseInline:[{name:"Emoji",parse(i,e,t){let n;return e!=58||!(n=/^[a-zA-Z_0-9]+:/.exec(i.slice(t+1,i.end)))?-1:i.addElement(i.elt("Emoji",t,t+1+n[0].length))}}]},og=kc({commentTokens:{block:{open:"<!--",close:"-->"}}}),lg=new D,ag=g4.configure({props:[mi.add(i=>!i.is("Block")||i.is("Document")||Fa(i)!=null?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})),lg.add(Fa),zi.add({Document:()=>null}),ri.add({Document:og})]});function Fa(i){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(i.name);return e?+e[1]:void 0}function T4(i,e){let t=i;for(;;){let n=t.nextSibling,s;if(!n||(s=Fa(n.type))!=null&&s<=e)break;t=n}return t.to}const E4=Zp.of((i,e,t)=>{for(let n=te(i).resolveInner(t,-1);n&&!(n.from<e);n=n.parent){let s=n.type.prop(lg);if(s==null)continue;let r=T4(n,s);if(r>t)return{from:t,to:r}}return null});function Rc(i){return new Ge(og,i,[E4],"markdown")}const Z4=Rc(ag),A4=ag.configure([_4,Q4,P4,V4,{props:[mi.add({Table:(i,e)=>({from:e.doc.lineAt(i.from).to,to:i.to})})]}]),cg=Rc(A4);function B4(i,e){return t=>{if(t&&i){let n=null;if(t=/\S*/.exec(t)[0],typeof i=="function"?n=i(t):n=xo.matchLanguageName(i,t,!0),n instanceof xo)return n.support?n.support.language.parser:Vn.getSkippingParser(n.load());if(n)return n.parser}return e?e.parser:null}}class gs{constructor(e,t,n,s,r,o,a){this.node=e,this.from=t,this.to=n,this.spaceBefore=s,this.spaceAfter=r,this.type=o,this.item=a}blank(e,t=!0){let n=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;n.length<e;)n+=" ";return n}else{for(let s=this.to-this.from-n.length-this.spaceAfter.length;s>0;s--)n+=" ";return n+(t?this.spaceAfter:"")}}marker(e,t){let n=this.node.name=="OrderedList"?String(+ug(this.item,e)[2]+t):"";return this.spaceBefore+n+this.type+this.spaceAfter}}function hg(i,e){let t=[];for(let s=i;s&&s.name!="Document";s=s.parent)(s.name=="ListItem"||s.name=="Blockquote"||s.name=="FencedCode")&&t.push(s);let n=[];for(let s=t.length-1;s>=0;s--){let r=t[s],o,a=e.lineAt(r.from),c=r.from-a.from;if(r.name=="FencedCode")n.push(new gs(r,c,c,"","","",null));else if(r.name=="Blockquote"&&(o=/^ *>( ?)/.exec(a.text.slice(c))))n.push(new gs(r,c,c+o[0].length,"",o[1],">",null));else if(r.name=="ListItem"&&r.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(a.text.slice(c)))){let h=o[3],u=o[0].length;h.length>=4&&(h=h.slice(0,h.length-4),u-=4),n.push(new gs(r.parent,c,c+u,o[1],h,o[2],r))}else if(r.name=="ListItem"&&r.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(a.text.slice(c)))){let h=o[4],u=o[0].length;h.length>4&&(h=h.slice(0,h.length-4),u-=4);let d=o[2];o[3]&&(d+=o[3].replace(/[xX]/," ")),n.push(new gs(r.parent,c,c+u,o[1],h,d,r))}}return n}function ug(i,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(i.from,i.from+10))}function Ll(i,e,t,n=0){for(let s=-1,r=i;;){if(r.name=="ListItem"){let a=ug(r,e),c=+a[2];if(s>=0){if(c!=s+1)return;t.push({from:r.from+a[1].length,to:r.from+a[0].length,insert:String(s+2+n)})}s=c}let o=r.nextSibling;if(!o)break;r=o}}function Ic(i,e){let t=/^[ \t]*/.exec(i)[0].length;if(!t||e.facet(ji)!=" ")return i;let n=st(i,4,t),s="";for(let r=n;r>0;)r>=4?(s+=" ",r-=4):(s+=" ",r--);return s+i.slice(t)}const D4=({state:i,dispatch:e})=>{let t=te(i),{doc:n}=i,s=null,r=i.changeByRange(o=>{if(!o.empty||!cg.isActiveAt(i,o.from))return s={range:o};let a=o.from,c=n.lineAt(a),h=hg(t.resolveInner(a,-1),n);for(;h.length&&h[h.length-1].from>a-c.from;)h.pop();if(!h.length)return s={range:o};let u=h[h.length-1];if(u.to-u.spaceAfter.length>a-c.from)return s={range:o};let d=a>=u.to-u.spaceAfter.length&&!/\S/.test(c.text.slice(u.to));if(u.item&&d){let y=u.node.firstChild,b=u.node.getChild("ListItem","ListItem");if(y.to>=a||b&&b.to<a||c.from>0&&!/[^\s>]/.test(n.lineAt(c.from-1).text)){let k=h.length>1?h[h.length-2]:null,w,S="";k&&k.item?(w=c.from+k.from,S=k.marker(n,1)):w=c.from+(k?k.to:0);let v=[{from:w,to:a,insert:S}];return u.node.name=="OrderedList"&&Ll(u.item,n,v,-2),k&&k.node.name=="OrderedList"&&Ll(k.item,n,v),{range:C.cursor(w+S.length),changes:v}}else{let k=ud(h,i,c);return{range:C.cursor(a+k.length+1),changes:{from:c.from,insert:k+i.lineBreak}}}}if(u.node.name=="Blockquote"&&d&&c.from){let y=n.lineAt(c.from-1),b=/>\s*$/.exec(y.text);if(b&&b.index==u.from){let k=i.changes([{from:y.from+b.index,to:y.to},{from:c.from+u.from,to:c.to}]);return{range:o.map(k),changes:k}}}let f=[];u.node.name=="OrderedList"&&Ll(u.item,n,f);let p=u.item&&u.item.from<c.from,m="";if(!p||/^[\s\d.)\-+*>]*/.exec(c.text)[0].length>=u.to)for(let y=0,b=h.length-1;y<=b;y++)m+=y==b&&!p?h[y].marker(n,1):h[y].blank(y<b?st(c.text,4,h[y+1].from)-m.length:null);let g=a;for(;g>c.from&&/\s/.test(c.text.charAt(g-c.from-1));)g--;return m=Ic(m,i),N4(u.node,i.doc)&&(m=ud(h,i,c)+i.lineBreak+m),f.push({from:g,to:a,insert:i.lineBreak+m}),{range:C.cursor(g+m.length+1),changes:f}});return s?!1:(e(i.update(r,{scrollIntoView:!0,userEvent:"input"})),!0)};function hd(i){return i.name=="QuoteMark"||i.name=="ListMark"}function N4(i,e){if(i.name!="OrderedList"&&i.name!="BulletList")return!1;let t=i.firstChild,n=i.getChild("ListItem","ListItem");if(!n)return!1;let s=e.lineAt(t.to),r=e.lineAt(n.from),o=/^[\s>]*$/.test(s.text);return s.number+(o?0:1)<r.number}function ud(i,e,t){let n="";for(let s=0,r=i.length-2;s<=r;s++)n+=i[s].blank(s<r?st(t.text,4,i[s+1].from)-n.length:null,s<r);return Ic(n,e)}function R4(i,e){let t=i.resolveInner(e,-1),n=e;hd(t)&&(n=t.from,t=t.parent);for(let s;s=t.childBefore(n);)if(hd(s))n=s.from;else if(s.name=="OrderedList"||s.name=="BulletList")t=s.lastChild,n=t.to;else break;return t}const I4=({state:i,dispatch:e})=>{let t=te(i),n=null,s=i.changeByRange(r=>{let o=r.from,{doc:a}=i;if(r.empty&&cg.isActiveAt(i,r.from)){let c=a.lineAt(o),h=hg(R4(t,o),a);if(h.length){let u=h[h.length-1],d=u.to-u.spaceAfter.length+(u.spaceAfter?1:0);if(o-c.from>d&&!/\S/.test(c.text.slice(d,o-c.from)))return{range:C.cursor(c.from+d),changes:{from:c.from+d,to:o}};if(o-c.from==d&&(!u.item||c.from<=u.item.from||!/\S/.test(c.text.slice(0,u.to)))){let f=c.from+u.from;if(u.item&&u.node.from<u.item.from&&/\S/.test(c.text.slice(u.from,u.to))){let p=u.blank(st(c.text,4,u.to)-st(c.text,4,u.from));return f==c.from&&(p=Ic(p,i)),{range:C.cursor(f+p.length),changes:{from:f,to:c.from+u.to,insert:p}}}if(f<o)return{range:C.cursor(f),changes:{from:f,to:o}}}}}return n={range:r}});return n?!1:(e(i.update(s,{scrollIntoView:!0,userEvent:"delete"})),!0)},L4=[{key:"Enter",run:D4},{key:"Backspace",run:I4}],qa=Rm({matchClosingTags:!1});function M4(i={}){let{codeLanguages:e,defaultCodeLanguage:t,addKeymap:n=!0,base:{parser:s}=Z4,completeHTMLTags:r=!0}=i;if(!(s instanceof Jo))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let o=i.extensions?[i.extensions]:[],a=[qa.support],c;t instanceof Di?(a.push(t.support),c=t.language):t&&(c=t);let h=e||c?B4(e,c):void 0;o.push(y4({codeParser:h,htmlParser:qa.language.parser})),n&&a.push(Tt.high(Xi.of(L4)));let u=Rc(s.configure(o));return r&&a.push(u.data.of({autocomplete:X4})),new Di(u,a)}function X4(i){let{state:e,pos:t}=i,n=/<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(t-25,t));if(!n)return null;let s=te(e).resolveInner(t,-1);for(;s&&!s.type.isTop;){if(s.name=="CodeBlock"||s.name=="FencedCode"||s.name=="ProcessingInstructionBlock"||s.name=="CommentBlock"||s.name=="Link"||s.name=="Image")return null;s=s.parent}return{from:t-n[0].length,to:t,options:j4(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let Ml=null;function j4(){if(Ml)return Ml;let i=UP(new $c(ee.create({extensions:qa}),0,!0));return Ml=i?i.options:[]}const z4="#e5c07b",dd="#e06c75",W4="#56b6c2",Y4="#ffffff",ao="#abb2bf",Ua="#7d8799",F4="#61afef",q4="#98c379",fd="#d19a66",U4="#c678dd",G4="#21252b",pd="#2c313a",md="#282c34",Xl="#353a42",H4="#3E4451",gd="#528bff",K4=V.theme({"&":{color:ao,backgroundColor:md},".cm-content":{caretColor:gd},".cm-cursor, .cm-dropCursor":{borderLeftColor:gd},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:H4},".cm-panels":{backgroundColor:G4,color:ao},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:md,color:Ua,border:"none"},".cm-activeLineGutter":{backgroundColor:pd},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Xl},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Xl,borderBottomColor:Xl},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:pd,color:ao}}},{dark:!0}),J4=Yn.define([{tag:O.keyword,color:U4},{tag:[O.name,O.deleted,O.character,O.propertyName,O.macroName],color:dd},{tag:[O.function(O.variableName),O.labelName],color:F4},{tag:[O.color,O.constant(O.name),O.standard(O.name)],color:fd},{tag:[O.definition(O.name),O.separator],color:ao},{tag:[O.typeName,O.className,O.number,O.changed,O.annotation,O.modifier,O.self,O.namespace],color:z4},{tag:[O.operator,O.operatorKeyword,O.url,O.escape,O.regexp,O.link,O.special(O.string)],color:W4},{tag:[O.meta,O.comment],color:Ua},{tag:O.strong,fontWeight:"bold"},{tag:O.emphasis,fontStyle:"italic"},{tag:O.strikethrough,textDecoration:"line-through"},{tag:O.link,color:Ua,textDecoration:"underline"},{tag:O.heading,fontWeight:"bold",color:dd},{tag:[O.atom,O.bool,O.special(O.variableName)],color:fd},{tag:[O.processingInstruction,O.string,O.inserted],color:q4},{tag:O.invalid,color:Y4}]),eQ=[K4,Mp(J4)],tQ=i=>{let{state:e}=i,t=e.doc.lineAt(e.selection.main.from),n=Mc(i.state,t.from);return n.line?iQ(i):n.block?sQ(i):!1};function Lc(i,e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let s=i(e,t);return s?(n(t.update(s)),!0):!1}}const iQ=Lc(lQ,0),nQ=Lc(dg,0),sQ=Lc((i,e)=>dg(i,e,oQ(e)),0);function Mc(i,e){let t=i.languageDataAt("commentTokens",e);return t.length?t[0]:{}}const sn=50;function rQ(i,{open:e,close:t},n,s){let r=i.sliceDoc(n-sn,n),o=i.sliceDoc(s,s+sn),a=/\s*$/.exec(r)[0].length,c=/^\s*/.exec(o)[0].length,h=r.length-a;if(r.slice(h-e.length,h)==e&&o.slice(c,c+t.length)==t)return{open:{pos:n-a,margin:a&&1},close:{pos:s+c,margin:c&&1}};let u,d;s-n<=2*sn?u=d=i.sliceDoc(n,s):(u=i.sliceDoc(n,n+sn),d=i.sliceDoc(s-sn,s));let f=/^\s*/.exec(u)[0].length,p=/\s*$/.exec(d)[0].length,m=d.length-p-t.length;return u.slice(f,f+e.length)==e&&d.slice(m,m+t.length)==t?{open:{pos:n+f+e.length,margin:/\s/.test(u.charAt(f+e.length))?1:0},close:{pos:s-p-t.length,margin:/\s/.test(d.charAt(m-1))?1:0}}:null}function oQ(i){let e=[];for(let t of i.selection.ranges){let n=i.doc.lineAt(t.from),s=t.to<=n.to?n:i.doc.lineAt(t.to),r=e.length-1;r>=0&&e[r].to>n.from?e[r].to=s.to:e.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:s.to})}return e}function dg(i,e,t=e.selection.ranges){let n=t.map(r=>Mc(e,r.from).block);if(!n.every(r=>r))return null;let s=t.map((r,o)=>rQ(e,n[o],r.from,r.to));if(i!=2&&!s.every(r=>r))return{changes:e.changes(t.map((r,o)=>s[o]?[]:[{from:r.from,insert:n[o].open+" "},{from:r.to,insert:" "+n[o].close}]))};if(i!=1&&s.some(r=>r)){let r=[];for(let o=0,a;o<s.length;o++)if(a=s[o]){let c=n[o],{open:h,close:u}=a;r.push({from:h.pos-c.open.length,to:h.pos+h.margin},{from:u.pos-u.margin,to:u.pos+c.close.length})}return{changes:r}}return null}function lQ(i,e,t=e.selection.ranges){let n=[],s=-1;for(let{from:r,to:o}of t){let a=n.length,c=1e9,h=Mc(e,r).line;if(h){for(let u=r;u<=o;){let d=e.doc.lineAt(u);if(d.from>s&&(r==o||o>d.from)){s=d.from;let f=/^\s*/.exec(d.text)[0].length,p=f==d.length,m=d.text.slice(f,f+h.length)==h?f:-1;f<d.text.length&&f<c&&(c=f),n.push({line:d,comment:m,token:h,indent:f,empty:p,single:!1})}u=d.to+1}if(c<1e9)for(let u=a;u<n.length;u++)n[u].indent<n[u].line.text.length&&(n[u].indent=c);n.length==a+1&&(n[a].single=!0)}}if(i!=2&&n.some(r=>r.comment<0&&(!r.empty||r.single))){let r=[];for(let{line:a,token:c,indent:h,empty:u,single:d}of n)(d||!u)&&r.push({from:a.from+h,insert:c+" "});let o=e.changes(r);return{changes:o,selection:e.selection.map(o,1)}}else if(i!=1&&n.some(r=>r.comment>=0)){let r=[];for(let{line:o,comment:a,token:c}of n)if(a>=0){let h=o.from+a,u=h+c.length;o.text[u-o.from]==" "&&u++,r.push({from:h,to:u})}return{changes:r}}return null}const Ga=Et.define(),aQ=Et.define(),cQ=E.define(),fg=E.define({combine(i){return vt(i,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,s)=>e(n,s)||t(n,s)})}}),pg=me.define({create(){return yt.empty},update(i,e){let t=e.state.facet(fg),n=e.annotation(Ga);if(n){let c=Re.fromTransaction(e,n.selection),h=n.side,u=h==0?i.undone:i.done;return c?u=Bo(u,u.length,t.minDepth,c):u=Og(u,e.startState.selection),new yt(h==0?n.rest:u,h==0?u:n.rest)}let s=e.annotation(aQ);if((s=="full"||s=="before")&&(i=i.isolate()),e.annotation(ue.addToHistory)===!1)return e.changes.empty?i:i.addMapping(e.changes.desc);let r=Re.fromTransaction(e),o=e.annotation(ue.time),a=e.annotation(ue.userEvent);return r?i=i.addChanges(r,o,a,t,e):e.selection&&(i=i.addSelection(e.startState.selection,o,a,t.newGroupDelay)),(s=="full"||s=="after")&&(i=i.isolate()),i},toJSON(i){return{done:i.done.map(e=>e.toJSON()),undone:i.undone.map(e=>e.toJSON())}},fromJSON(i){return new yt(i.done.map(Re.fromJSON),i.undone.map(Re.fromJSON))}});function hQ(i={}){return[pg,fg.of(i),V.domEventHandlers({beforeinput(e,t){let n=e.inputType=="historyUndo"?mg:e.inputType=="historyRedo"?Ha:null;return n?(e.preventDefault(),n(t)):!1}})]}function el(i,e){return function({state:t,dispatch:n}){if(!e&&t.readOnly)return!1;let s=t.field(pg,!1);if(!s)return!1;let r=s.pop(i,t,e);return r?(n(r),!0):!1}}const mg=el(0,!1),Ha=el(1,!1),uQ=el(0,!0),dQ=el(1,!0);class Re{constructor(e,t,n,s,r){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=s,this.selectionsAfter=r}setSelAfter(e){return new Re(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(s=>s.toJSON())}}static fromJSON(e){return new Re(e.changes&&fe.fromJSON(e.changes),[],e.mapped&&bt.fromJSON(e.mapped),e.startSelection&&C.fromJSON(e.startSelection),e.selectionsAfter.map(C.fromJSON))}static fromTransaction(e,t){let n=He;for(let s of e.startState.facet(cQ)){let r=s(e);r.length&&(n=n.concat(r))}return!n.length&&e.changes.empty?null:new Re(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,He)}static selection(e){return new Re(void 0,He,void 0,void 0,e)}}function Bo(i,e,t,n){let s=e+1>t+20?e-t-1:0,r=i.slice(s,e);return r.push(n),r}function fQ(i,e){let t=[],n=!1;return i.iterChangedRanges((s,r)=>t.push(s,r)),e.iterChangedRanges((s,r,o,a)=>{for(let c=0;c<t.length;){let h=t[c++],u=t[c++];a>=h&&o<=u&&(n=!0)}}),n}function pQ(i,e){return i.ranges.length==e.ranges.length&&i.ranges.filter((t,n)=>t.empty!=e.ranges[n].empty).length===0}function gg(i,e){return i.length?e.length?i.concat(e):i:e}const He=[],mQ=200;function Og(i,e){if(i.length){let t=i[i.length-1],n=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-mQ));return n.length&&n[n.length-1].eq(e)?i:(n.push(e),Bo(i,i.length-1,1e9,t.setSelAfter(n)))}else return[Re.selection([e])]}function gQ(i){let e=i[i.length-1],t=i.slice();return t[i.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function jl(i,e){if(!i.length)return i;let t=i.length,n=He;for(;t;){let s=OQ(i[t-1],e,n);if(s.changes&&!s.changes.empty||s.effects.length){let r=i.slice(0,t);return r[t-1]=s,r}else e=s.mapped,t--,n=s.selectionsAfter}return n.length?[Re.selection(n)]:He}function OQ(i,e,t){let n=gg(i.selectionsAfter.length?i.selectionsAfter.map(a=>a.map(e)):He,t);if(!i.changes)return Re.selection(n);let s=i.changes.map(e),r=e.mapDesc(i.changes,!0),o=i.mapped?i.mapped.composeDesc(r):r;return new Re(s,R.mapEffects(i.effects,e),o,i.startSelection.map(r),n)}const yQ=/^(input\.type|delete)($|\.)/;class yt{constructor(e,t,n=0,s=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=s}isolate(){return this.prevTime?new yt(this.done,this.undone):this}addChanges(e,t,n,s,r){let o=this.done,a=o[o.length-1];return a&&a.changes&&!a.changes.empty&&e.changes&&(!n||yQ.test(n))&&(!a.selectionsAfter.length&&t-this.prevTime<s.newGroupDelay&&s.joinToEvent(r,fQ(a.changes,e.changes))||n=="input.type.compose")?o=Bo(o,o.length-1,s.minDepth,new Re(e.changes.compose(a.changes),gg(e.effects,a.effects),a.mapped,a.startSelection,He)):o=Bo(o,o.length,s.minDepth,e),new yt(o,He,t,n)}addSelection(e,t,n,s){let r=this.done.length?this.done[this.done.length-1].selectionsAfter:He;return r.length>0&&t-this.prevTime<s&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&pQ(r[r.length-1],e)?this:new yt(Og(this.done,e),this.undone,t,n)}addMapping(e){return new yt(jl(this.done,e),jl(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let s=e==0?this.done:this.undone;if(s.length==0)return null;let r=s[s.length-1],o=r.selectionsAfter[0]||t.selection;if(n&&r.selectionsAfter.length)return t.update({selection:r.selectionsAfter[r.selectionsAfter.length-1],annotations:Ga.of({side:e,rest:gQ(s),selection:o}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(r.changes){let a=s.length==1?He:s.slice(0,s.length-1);return r.mapped&&(a=jl(a,r.mapped)),t.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:Ga.of({side:e,rest:a,selection:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}yt.empty=new yt(He,He);const bQ=[{key:"Mod-z",run:mg,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Ha,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Ha,preventDefault:!0},{key:"Mod-u",run:uQ,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:dQ,preventDefault:!0}];function Yi(i,e){return C.create(i.ranges.map(e),i.mainIndex)}function Ct(i,e){return i.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function at({state:i,dispatch:e},t){let n=Yi(i.selection,t);return n.eq(i.selection,!0)?!1:(e(Ct(i,n)),!0)}function tl(i,e){return C.cursor(e?i.to:i.from)}function yg(i,e){return at(i,t=>t.empty?i.moveByChar(t,e):tl(t,e))}function Pe(i){return i.textDirectionAt(i.state.selection.main.head)==re.LTR}const bg=i=>yg(i,!Pe(i)),kg=i=>yg(i,Pe(i));function wg(i,e){return at(i,t=>t.empty?i.moveByGroup(t,e):tl(t,e))}const kQ=i=>wg(i,!Pe(i)),wQ=i=>wg(i,Pe(i));function vQ(i,e,t){if(e.type.prop(t))return!0;let n=e.to-e.from;return n&&(n>2||/[^\s,.;:]/.test(i.sliceDoc(e.from,e.to)))||e.firstChild}function il(i,e,t){let n=te(i).resolveInner(e.head),s=t?D.closedBy:D.openedBy;for(let c=e.head;;){let h=t?n.childAfter(c):n.childBefore(c);if(!h)break;vQ(i,h,s)?n=h:c=t?h.to:h.from}let r=n.type.prop(s),o,a;return r&&(o=t?Ot(i,n.from,1):Ot(i,n.to,-1))&&o.matched?a=t?o.end.to:o.end.from:a=t?n.to:n.from,C.cursor(a,t?-1:1)}const SQ=i=>at(i,e=>il(i.state,e,!Pe(i))),CQ=i=>at(i,e=>il(i.state,e,Pe(i)));function vg(i,e){return at(i,t=>{if(!t.empty)return tl(t,e);let n=i.moveVertically(t,e);return n.head!=t.head?n:i.moveToLineBoundary(t,e)})}const Sg=i=>vg(i,!1),Cg=i=>vg(i,!0);function xg(i){let e=i.scrollDOM.clientHeight<i.scrollDOM.scrollHeight-2,t=0,n=0,s;if(e){for(let r of i.state.facet(V.scrollMargins)){let o=r(i);o!=null&&o.top&&(t=Math.max(o==null?void 0:o.top,t)),o!=null&&o.bottom&&(n=Math.max(o==null?void 0:o.bottom,n))}s=i.scrollDOM.clientHeight-t-n}else s=(i.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:t,marginBottom:n,selfScroll:e,height:Math.max(i.defaultLineHeight,s-5)}}function $g(i,e){let t=xg(i),{state:n}=i,s=Yi(n.selection,o=>o.empty?i.moveVertically(o,e,t.height):tl(o,e));if(s.eq(n.selection))return!1;let r;if(t.selfScroll){let o=i.coordsAtPos(n.selection.main.head),a=i.scrollDOM.getBoundingClientRect(),c=a.top+t.marginTop,h=a.bottom-t.marginBottom;o&&o.top>c&&o.bottom<h&&(r=V.scrollIntoView(s.main.head,{y:"start",yMargin:o.top-c}))}return i.dispatch(Ct(n,s),{effects:r}),!0}const Od=i=>$g(i,!1),Ka=i=>$g(i,!0);function Kt(i,e,t){let n=i.lineBlockAt(e.head),s=i.moveToLineBoundary(e,t);if(s.head==e.head&&s.head!=(t?n.to:n.from)&&(s=i.moveToLineBoundary(e,t,!1)),!t&&s.head==n.from&&n.length){let r=/^\s*/.exec(i.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;r&&e.head!=n.from+r&&(s=C.cursor(n.from+r))}return s}const xQ=i=>at(i,e=>Kt(i,e,!0)),$Q=i=>at(i,e=>Kt(i,e,!1)),_Q=i=>at(i,e=>Kt(i,e,!Pe(i))),PQ=i=>at(i,e=>Kt(i,e,Pe(i))),QQ=i=>at(i,e=>C.cursor(i.lineBlockAt(e.head).from,1)),VQ=i=>at(i,e=>C.cursor(i.lineBlockAt(e.head).to,-1));function TQ(i,e,t){let n=!1,s=Yi(i.selection,r=>{let o=Ot(i,r.head,-1)||Ot(i,r.head,1)||r.head>0&&Ot(i,r.head-1,1)||r.head<i.doc.length&&Ot(i,r.head+1,-1);if(!o||!o.end)return r;n=!0;let a=o.start.from==r.head?o.end.to:o.end.from;return t?C.range(r.anchor,a):C.cursor(a)});return n?(e(Ct(i,s)),!0):!1}const EQ=({state:i,dispatch:e})=>TQ(i,e,!1);function et(i,e){let t=Yi(i.state.selection,n=>{let s=e(n);return C.range(n.anchor,s.head,s.goalColumn,s.bidiLevel||void 0)});return t.eq(i.state.selection)?!1:(i.dispatch(Ct(i.state,t)),!0)}function _g(i,e){return et(i,t=>i.moveByChar(t,e))}const Pg=i=>_g(i,!Pe(i)),Qg=i=>_g(i,Pe(i));function Vg(i,e){return et(i,t=>i.moveByGroup(t,e))}const ZQ=i=>Vg(i,!Pe(i)),AQ=i=>Vg(i,Pe(i)),BQ=i=>et(i,e=>il(i.state,e,!Pe(i))),DQ=i=>et(i,e=>il(i.state,e,Pe(i)));function Tg(i,e){return et(i,t=>i.moveVertically(t,e))}const Eg=i=>Tg(i,!1),Zg=i=>Tg(i,!0);function Ag(i,e){return et(i,t=>i.moveVertically(t,e,xg(i).height))}const yd=i=>Ag(i,!1),bd=i=>Ag(i,!0),NQ=i=>et(i,e=>Kt(i,e,!0)),RQ=i=>et(i,e=>Kt(i,e,!1)),IQ=i=>et(i,e=>Kt(i,e,!Pe(i))),LQ=i=>et(i,e=>Kt(i,e,Pe(i))),MQ=i=>et(i,e=>C.cursor(i.lineBlockAt(e.head).from)),XQ=i=>et(i,e=>C.cursor(i.lineBlockAt(e.head).to)),kd=({state:i,dispatch:e})=>(e(Ct(i,{anchor:0})),!0),wd=({state:i,dispatch:e})=>(e(Ct(i,{anchor:i.doc.length})),!0),vd=({state:i,dispatch:e})=>(e(Ct(i,{anchor:i.selection.main.anchor,head:0})),!0),Sd=({state:i,dispatch:e})=>(e(Ct(i,{anchor:i.selection.main.anchor,head:i.doc.length})),!0),jQ=({state:i,dispatch:e})=>(e(i.update({selection:{anchor:0,head:i.doc.length},userEvent:"select"})),!0),zQ=({state:i,dispatch:e})=>{let t=nl(i).map(({from:n,to:s})=>C.range(n,Math.min(s+1,i.doc.length)));return e(i.update({selection:C.create(t),userEvent:"select"})),!0},WQ=({state:i,dispatch:e})=>{let t=Yi(i.selection,n=>{var s;let r=te(i).resolveStack(n.from,1);for(let o=r;o;o=o.next){let{node:a}=o;if((a.from<n.from&&a.to>=n.to||a.to>n.to&&a.from<=n.from)&&(!((s=a.parent)===null||s===void 0)&&s.parent))return C.range(a.to,a.from)}return n});return e(Ct(i,t)),!0},YQ=({state:i,dispatch:e})=>{let t=i.selection,n=null;return t.ranges.length>1?n=C.create([t.main]):t.main.empty||(n=C.create([C.cursor(t.main.head)])),n?(e(Ct(i,n)),!0):!1};function qn(i,e){if(i.state.readOnly)return!1;let t="delete.selection",{state:n}=i,s=n.changeByRange(r=>{let{from:o,to:a}=r;if(o==a){let c=e(r);c<o?(t="delete.backward",c=Os(i,c,!1)):c>o&&(t="delete.forward",c=Os(i,c,!0)),o=Math.min(o,c),a=Math.max(a,c)}else o=Os(i,o,!1),a=Os(i,a,!0);return o==a?{range:r}:{changes:{from:o,to:a},range:C.cursor(o,o<r.head?-1:1)}});return s.changes.empty?!1:(i.dispatch(n.update(s,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?V.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function Os(i,e,t){if(i instanceof V)for(let n of i.state.facet(V.atomicRanges).map(s=>s(i)))n.between(e,e,(s,r)=>{s<e&&r>e&&(e=t?r:s)});return e}const Bg=(i,e)=>qn(i,t=>{let n=t.from,{state:s}=i,r=s.doc.lineAt(n),o,a;if(!e&&n>r.from&&n<r.from+200&&!/[^ \t]/.test(o=r.text.slice(0,n-r.from))){if(o[o.length-1]==" ")return n-1;let c=st(o,s.tabSize),h=c%$o(s)||$o(s);for(let u=0;u<h&&o[o.length-1-u]==" ";u++)n--;a=n}else a=ve(r.text,n-r.from,e,e)+r.from,a==n&&r.number!=(e?s.doc.lines:1)?a+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(r.text.slice(a-r.from,n-r.from))&&(a=ve(r.text,a-r.from,!1,!1)+r.from);return a}),Ja=i=>Bg(i,!1),Dg=i=>Bg(i,!0),Ng=(i,e)=>qn(i,t=>{let n=t.head,{state:s}=i,r=s.doc.lineAt(n),o=s.charCategorizer(n);for(let a=null;;){if(n==(e?r.to:r.from)){n==t.head&&r.number!=(e?s.doc.lines:1)&&(n+=e?1:-1);break}let c=ve(r.text,n-r.from,e)+r.from,h=r.text.slice(Math.min(n,c)-r.from,Math.max(n,c)-r.from),u=o(h);if(a!=null&&u!=a)break;(h!=" "||n!=t.head)&&(a=u),n=c}return n}),Rg=i=>Ng(i,!1),FQ=i=>Ng(i,!0),qQ=i=>qn(i,e=>{let t=i.lineBlockAt(e.head).to;return e.head<t?t:Math.min(i.state.doc.length,e.head+1)}),UQ=i=>qn(i,e=>{let t=i.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),GQ=i=>qn(i,e=>{let t=i.moveToLineBoundary(e,!0).head;return e.head<t?t:Math.min(i.state.doc.length,e.head+1)}),HQ=({state:i,dispatch:e})=>{if(i.readOnly)return!1;let t=i.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:q.of(["",""])},range:C.cursor(n.from)}));return e(i.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},KQ=({state:i,dispatch:e})=>{if(i.readOnly)return!1;let t=i.changeByRange(n=>{if(!n.empty||n.from==0||n.from==i.doc.length)return{range:n};let s=n.from,r=i.doc.lineAt(s),o=s==r.from?s-1:ve(r.text,s-r.from,!1)+r.from,a=s==r.to?s+1:ve(r.text,s-r.from,!0)+r.from;return{changes:{from:o,to:a,insert:i.doc.slice(s,a).append(i.doc.slice(o,s))},range:C.cursor(a)}});return t.changes.empty?!1:(e(i.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function nl(i){let e=[],t=-1;for(let n of i.selection.ranges){let s=i.doc.lineAt(n.from),r=i.doc.lineAt(n.to);if(!n.empty&&n.to==r.from&&(r=i.doc.lineAt(n.to-1)),t>=s.number){let o=e[e.length-1];o.to=r.to,o.ranges.push(n)}else e.push({from:s.from,to:r.to,ranges:[n]});t=r.number+1}return e}function Ig(i,e,t){if(i.readOnly)return!1;let n=[],s=[];for(let r of nl(i)){if(t?r.to==i.doc.length:r.from==0)continue;let o=i.doc.lineAt(t?r.to+1:r.from-1),a=o.length+1;if(t){n.push({from:r.to,to:o.to},{from:r.from,insert:o.text+i.lineBreak});for(let c of r.ranges)s.push(C.range(Math.min(i.doc.length,c.anchor+a),Math.min(i.doc.length,c.head+a)))}else{n.push({from:o.from,to:r.from},{from:r.to,insert:i.lineBreak+o.text});for(let c of r.ranges)s.push(C.range(c.anchor-a,c.head-a))}}return n.length?(e(i.update({changes:n,scrollIntoView:!0,selection:C.create(s,i.selection.mainIndex),userEvent:"move.line"})),!0):!1}const JQ=({state:i,dispatch:e})=>Ig(i,e,!1),e8=({state:i,dispatch:e})=>Ig(i,e,!0);function Lg(i,e,t){if(i.readOnly)return!1;let n=[];for(let s of nl(i))t?n.push({from:s.from,insert:i.doc.slice(s.from,s.to)+i.lineBreak}):n.push({from:s.to,insert:i.lineBreak+i.doc.slice(s.from,s.to)});return e(i.update({changes:n,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const t8=({state:i,dispatch:e})=>Lg(i,e,!1),i8=({state:i,dispatch:e})=>Lg(i,e,!0),n8=i=>{if(i.state.readOnly)return!1;let{state:e}=i,t=e.changes(nl(e).map(({from:s,to:r})=>(s>0?s--:r<e.doc.length&&r++,{from:s,to:r}))),n=Yi(e.selection,s=>i.moveVertically(s,!0)).map(t);return i.dispatch({changes:t,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0};function s8(i,e){if(/\(\)|\[\]|\{\}/.test(i.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=te(i).resolveInner(e),n=t.childBefore(e),s=t.childAfter(e),r;return n&&s&&n.to<=e&&s.from>=e&&(r=n.type.prop(D.closedBy))&&r.indexOf(s.name)>-1&&i.doc.lineAt(n.to).from==i.doc.lineAt(s.from).from&&!/\S/.test(i.sliceDoc(n.to,s.from))?{from:n.to,to:s.from}:null}const r8=Mg(!1),o8=Mg(!0);function Mg(i){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(s=>{let{from:r,to:o}=s,a=e.doc.lineAt(r),c=!i&&r==o&&s8(e,r);i&&(r=o=(o<=a.to?a:e.doc.lineAt(o)).to);let h=new Go(e,{simulateBreak:r,simulateDoubleBreak:!!c}),u=vc(h,r);for(u==null&&(u=st(/^\s*/.exec(e.doc.lineAt(r).text)[0],e.tabSize));o<a.to&&/\s/.test(a.text[o-a.from]);)o++;c?{from:r,to:o}=c:r>a.from&&r<a.from+100&&!/\S/.test(a.text.slice(0,r))&&(r=a.from);let d=["",Tn(e,u)];return c&&d.push(Tn(e,h.lineIndent(a.from,-1))),{changes:{from:r,to:o,insert:q.of(d)},range:C.cursor(r+1+d[1].length)}});return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}function Xc(i,e){let t=-1;return i.changeByRange(n=>{let s=[];for(let o=n.from;o<=n.to;){let a=i.doc.lineAt(o);a.number>t&&(n.empty||n.to>a.from)&&(e(a,s,n),t=a.number),o=a.to+1}let r=i.changes(s);return{changes:s,range:C.range(r.mapPos(n.anchor,1),r.mapPos(n.head,1))}})}const l8=({state:i,dispatch:e})=>{if(i.readOnly)return!1;let t=Object.create(null),n=new Go(i,{overrideIndentation:r=>{let o=t[r];return o??-1}}),s=Xc(i,(r,o,a)=>{let c=vc(n,r.from);if(c==null)return;/\S/.test(r.text)||(c=0);let h=/^\s*/.exec(r.text)[0],u=Tn(i,c);(h!=u||a.from<r.from+h.length)&&(t[r.from]=c,o.push({from:r.from,to:r.from+h.length,insert:u}))});return s.changes.empty||e(i.update(s,{userEvent:"indent"})),!0},Xg=({state:i,dispatch:e})=>i.readOnly?!1:(e(i.update(Xc(i,(t,n)=>{n.push({from:t.from,insert:i.facet(ji)})}),{userEvent:"input.indent"})),!0),jg=({state:i,dispatch:e})=>i.readOnly?!1:(e(i.update(Xc(i,(t,n)=>{let s=/^\s*/.exec(t.text)[0];if(!s)return;let r=st(s,i.tabSize),o=0,a=Tn(i,Math.max(0,r-$o(i)));for(;o<s.length&&o<a.length&&s.charCodeAt(o)==a.charCodeAt(o);)o++;n.push({from:t.from+o,to:t.from+s.length,insert:a.slice(o)})}),{userEvent:"delete.dedent"})),!0),a8=[{key:"Ctrl-b",run:bg,shift:Pg,preventDefault:!0},{key:"Ctrl-f",run:kg,shift:Qg},{key:"Ctrl-p",run:Sg,shift:Eg},{key:"Ctrl-n",run:Cg,shift:Zg},{key:"Ctrl-a",run:QQ,shift:MQ},{key:"Ctrl-e",run:VQ,shift:XQ},{key:"Ctrl-d",run:Dg},{key:"Ctrl-h",run:Ja},{key:"Ctrl-k",run:qQ},{key:"Ctrl-Alt-h",run:Rg},{key:"Ctrl-o",run:HQ},{key:"Ctrl-t",run:KQ},{key:"Ctrl-v",run:Ka}],c8=[{key:"ArrowLeft",run:bg,shift:Pg,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:kQ,shift:ZQ,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:_Q,shift:IQ,preventDefault:!0},{key:"ArrowRight",run:kg,shift:Qg,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:wQ,shift:AQ,preventDefault:!0},{mac:"Cmd-ArrowRight",run:PQ,shift:LQ,preventDefault:!0},{key:"ArrowUp",run:Sg,shift:Eg,preventDefault:!0},{mac:"Cmd-ArrowUp",run:kd,shift:vd},{mac:"Ctrl-ArrowUp",run:Od,shift:yd},{key:"ArrowDown",run:Cg,shift:Zg,preventDefault:!0},{mac:"Cmd-ArrowDown",run:wd,shift:Sd},{mac:"Ctrl-ArrowDown",run:Ka,shift:bd},{key:"PageUp",run:Od,shift:yd},{key:"PageDown",run:Ka,shift:bd},{key:"Home",run:$Q,shift:RQ,preventDefault:!0},{key:"Mod-Home",run:kd,shift:vd},{key:"End",run:xQ,shift:NQ,preventDefault:!0},{key:"Mod-End",run:wd,shift:Sd},{key:"Enter",run:r8},{key:"Mod-a",run:jQ},{key:"Backspace",run:Ja,shift:Ja},{key:"Delete",run:Dg},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Rg},{key:"Mod-Delete",mac:"Alt-Delete",run:FQ},{mac:"Mod-Backspace",run:UQ},{mac:"Mod-Delete",run:GQ}].concat(a8.map(i=>({mac:i.key,run:i.run,shift:i.shift}))),h8=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:SQ,shift:BQ},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:CQ,shift:DQ},{key:"Alt-ArrowUp",run:JQ},{key:"Shift-Alt-ArrowUp",run:t8},{key:"Alt-ArrowDown",run:e8},{key:"Shift-Alt-ArrowDown",run:i8},{key:"Escape",run:YQ},{key:"Mod-Enter",run:o8},{key:"Alt-l",mac:"Ctrl-l",run:zQ},{key:"Mod-i",run:WQ,preventDefault:!0},{key:"Mod-[",run:jg},{key:"Mod-]",run:Xg},{key:"Mod-Alt-\\",run:l8},{key:"Shift-Mod-k",run:n8},{key:"Shift-Mod-\\",run:EQ},{key:"Mod-/",run:tQ},{key:"Alt-A",run:nQ}].concat(c8),u8={key:"Tab",run:Xg,shift:jg};function K(){var i=arguments[0];typeof i=="string"&&(i=document.createElement(i));var e=1,t=arguments[1];if(t&&typeof t=="object"&&t.nodeType==null&&!Array.isArray(t)){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var s=t[n];typeof s=="string"?i.setAttribute(n,s):s!=null&&(i[n]=s)}e++}for(;e<arguments.length;e++)zg(i,arguments[e]);return i}function zg(i,e){if(typeof e=="string")i.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)i.appendChild(e);else if(Array.isArray(e))for(var t=0;t<e.length;t++)zg(i,e[t]);else throw new RangeError("Unsupported child node: "+e)}const Cd=typeof String.prototype.normalize=="function"?i=>i.normalize("NFKD"):i=>i;class Li{constructor(e,t,n=0,s=e.length,r,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,s),this.bufferStart=n,this.normalize=r?a=>r(Cd(a)):Cd,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return ye(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=ac(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=qe(e);let s=this.normalize(t);for(let r=0,o=n;;r++){let a=s.charCodeAt(r),c=this.match(a,o,this.bufferPos+this.bufferStart);if(r==s.length-1){if(c)return this.value=c,this;break}o==n&&r<t.length&&t.charCodeAt(r)==a&&o++}}}match(e,t,n){let s=null;for(let r=0;r<this.matches.length;r+=2){let o=this.matches[r],a=!1;this.query.charCodeAt(o)==e&&(o==this.query.length-1?s={from:this.matches[r+1],to:n}:(this.matches[r]++,a=!0)),a||(this.matches.splice(r,2),r-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?s={from:t,to:n}:this.matches.push(1,t)),s&&this.test&&!this.test(s.from,s.to,this.buffer,this.bufferStart)&&(s=null),s}}typeof Symbol<"u"&&(Li.prototype[Symbol.iterator]=function(){return this});const Wg={from:-1,to:-1,match:/.*/.exec("")},jc="gm"+(/x/.unicode==null?"":"u");class Yg{constructor(e,t,n,s=0,r=e.length){if(this.text=e,this.to=r,this.curLine="",this.done=!1,this.value=Wg,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new Fg(e,t,n,s,r);this.re=new RegExp(t,jc+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.iter=e.iter();let o=e.lineAt(s);this.curLineStart=o.from,this.matchPos=Do(e,s),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,s=n+t[0].length;if(this.matchPos=Do(this.text,s+(n==s?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<s||n>this.value.to)&&(!this.test||this.test(n,s,t)))return this.value={from:n,to:s,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const zl=new WeakMap;class Ti{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let s=zl.get(e);if(!s||s.from>=n||s.to<=t){let a=new Ti(t,e.sliceString(t,n));return zl.set(e,a),a}if(s.from==t&&s.to==n)return s;let{text:r,from:o}=s;return o>t&&(r=e.sliceString(t,o)+r,o=t),s.to<n&&(r+=e.sliceString(s.to,n)),zl.set(e,new Ti(o,r)),new Ti(t,r.slice(t-o,n-o))}}class Fg{constructor(e,t,n,s,r){this.text=e,this.to=r,this.done=!1,this.value=Wg,this.matchPos=Do(e,s),this.re=new RegExp(t,jc+(n!=null&&n.ignoreCase?"i":"")),this.test=n==null?void 0:n.test,this.flat=Ti.get(e,s,this.chunkEnd(s+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let n=this.flat.from+t.index,s=n+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,s,t)))return this.value={from:n,to:s,match:t},this.matchPos=Do(this.text,s+(n==s?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Ti.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(Yg.prototype[Symbol.iterator]=Fg.prototype[Symbol.iterator]=function(){return this});function d8(i){try{return new RegExp(i,jc),!0}catch{return!1}}function Do(i,e){if(e>=i.length)return e;let t=i.lineAt(e),n;for(;e<t.to&&(n=t.text.charCodeAt(e-t.from))>=56320&&n<57344;)e++;return e}function ec(i){let e=String(i.state.doc.lineAt(i.state.selection.main.head).number),t=K("input",{class:"cm-textfield",name:"line",value:e}),n=K("form",{class:"cm-gotoLine",onkeydown:r=>{r.keyCode==27?(r.preventDefault(),i.dispatch({effects:No.of(!1)}),i.focus()):r.keyCode==13&&(r.preventDefault(),s())},onsubmit:r=>{r.preventDefault(),s()}},K("label",i.state.phrase("Go to line"),": ",t)," ",K("button",{class:"cm-button",type:"submit"},i.state.phrase("go")));function s(){let r=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!r)return;let{state:o}=i,a=o.doc.lineAt(o.selection.main.head),[,c,h,u,d]=r,f=u?+u.slice(1):0,p=h?+h:a.number;if(h&&d){let y=p/100;c&&(y=y*(c=="-"?-1:1)+a.number/o.doc.lines),p=Math.round(o.doc.lines*y)}else h&&c&&(p=p*(c=="-"?-1:1)+a.number);let m=o.doc.line(Math.max(1,Math.min(o.doc.lines,p))),g=C.cursor(m.from+Math.max(0,Math.min(f,m.length)));i.dispatch({effects:[No.of(!1),V.scrollIntoView(g.from,{y:"center"})],selection:g}),i.focus()}return{dom:n}}const No=R.define(),xd=me.define({create(){return!0},update(i,e){for(let t of e.effects)t.is(No)&&(i=t.value);return i},provide:i=>Qn.from(i,e=>e?ec:null)}),f8=i=>{let e=Pn(i,ec);if(!e){let t=[No.of(!0)];i.state.field(xd,!1)==null&&t.push(R.appendConfig.of([xd,p8])),i.dispatch({effects:t}),e=Pn(i,ec)}return e&&e.dom.querySelector("input").select(),!0},p8=V.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),m8={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},qg=E.define({combine(i){return vt(i,m8,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function g8(i){let e=[w8,k8];return i&&e.push(qg.of(i)),e}const O8=A.mark({class:"cm-selectionMatch"}),y8=A.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function $d(i,e,t,n){return(t==0||i(e.sliceDoc(t-1,t))!=le.Word)&&(n==e.doc.length||i(e.sliceDoc(n,n+1))!=le.Word)}function b8(i,e,t,n){return i(e.sliceDoc(t,t+1))==le.Word&&i(e.sliceDoc(n-1,n))==le.Word}const k8=he.fromClass(class{constructor(i){this.decorations=this.getDeco(i)}update(i){(i.selectionSet||i.docChanged||i.viewportChanged)&&(this.decorations=this.getDeco(i.view))}getDeco(i){let e=i.state.facet(qg),{state:t}=i,n=t.selection;if(n.ranges.length>1)return A.none;let s=n.main,r,o=null;if(s.empty){if(!e.highlightWordAroundCursor)return A.none;let c=t.wordAt(s.head);if(!c)return A.none;o=t.charCategorizer(s.head),r=t.sliceDoc(c.from,c.to)}else{let c=s.to-s.from;if(c<e.minSelectionLength||c>200)return A.none;if(e.wholeWords){if(r=t.sliceDoc(s.from,s.to),o=t.charCategorizer(s.head),!($d(o,t,s.from,s.to)&&b8(o,t,s.from,s.to)))return A.none}else if(r=t.sliceDoc(s.from,s.to),!r)return A.none}let a=[];for(let c of i.visibleRanges){let h=new Li(t.doc,r,c.from,c.to);for(;!h.next().done;){let{from:u,to:d}=h.value;if((!o||$d(o,t,u,d))&&(s.empty&&u<=s.from&&d>=s.to?a.push(y8.range(u,d)):(u>=s.to||d<=s.from)&&a.push(O8.range(u,d)),a.length>e.maxMatches))return A.none}}return A.set(a)}},{decorations:i=>i.decorations}),w8=V.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),v8=({state:i,dispatch:e})=>{let{selection:t}=i,n=C.create(t.ranges.map(s=>i.wordAt(s.head)||C.cursor(s.head)),t.mainIndex);return n.eq(t)?!1:(e(i.update({selection:n})),!0)};function S8(i,e){let{main:t,ranges:n}=i.selection,s=i.wordAt(t.head),r=s&&s.from==t.from&&s.to==t.to;for(let o=!1,a=new Li(i.doc,e,n[n.length-1].to);;)if(a.next(),a.done){if(o)return null;a=new Li(i.doc,e,0,Math.max(0,n[n.length-1].from-1)),o=!0}else{if(o&&n.some(c=>c.from==a.value.from))continue;if(r){let c=i.wordAt(a.value.from);if(!c||c.from!=a.value.from||c.to!=a.value.to)continue}return a.value}}const C8=({state:i,dispatch:e})=>{let{ranges:t}=i.selection;if(t.some(r=>r.from===r.to))return v8({state:i,dispatch:e});let n=i.sliceDoc(t[0].from,t[0].to);if(i.selection.ranges.some(r=>i.sliceDoc(r.from,r.to)!=n))return!1;let s=S8(i,n);return s?(e(i.update({selection:i.selection.addRange(C.range(s.from,s.to),!1),effects:V.scrollIntoView(s.to)})),!0):!1},Fi=E.define({combine(i){return vt(i,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new D8(e),scrollToMatch:e=>V.scrollIntoView(e)})}});class Ug{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||d8(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(t,n)=>n=="n"?`
28
+ `:n=="r"?"\r":n=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new P8(this):new $8(this)}getCursor(e,t=0,n){let s=e.doc?e:ee.create({doc:e});return n==null&&(n=s.doc.length),this.regexp?bi(this,s,t,n):yi(this,s,t,n)}}class Gg{constructor(e){this.spec=e}}function yi(i,e,t,n){return new Li(e.doc,i.unquoted,t,n,i.caseSensitive?void 0:s=>s.toLowerCase(),i.wholeWord?x8(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function x8(i,e){return(t,n,s,r)=>((r>t||r+s.length<n)&&(r=Math.max(0,t-2),s=i.sliceString(r,Math.min(i.length,n+2))),(e(Ro(s,t-r))!=le.Word||e(Io(s,t-r))!=le.Word)&&(e(Io(s,n-r))!=le.Word||e(Ro(s,n-r))!=le.Word))}class $8 extends Gg{constructor(e){super(e)}nextMatch(e,t,n){let s=yi(this.spec,e,n,e.doc.length).nextOverlapping();return s.done&&(s=yi(this.spec,e,0,t).nextOverlapping()),s.done?null:s.value}prevMatchInRange(e,t,n){for(let s=n;;){let r=Math.max(t,s-1e4-this.spec.unquoted.length),o=yi(this.spec,e,r,s),a=null;for(;!o.nextOverlapping().done;)a=o.value;if(a)return a;if(r==t)return null;s-=1e4}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=yi(this.spec,e,0,e.doc.length),s=[];for(;!n.next().done;){if(s.length>=t)return null;s.push(n.value)}return s}highlight(e,t,n,s){let r=yi(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!r.next().done;)s(r.value.from,r.value.to)}}function bi(i,e,t,n){return new Yg(e.doc,i.search,{ignoreCase:!i.caseSensitive,test:i.wholeWord?_8(e.charCategorizer(e.selection.main.head)):void 0},t,n)}function Ro(i,e){return i.slice(ve(i,e,!1),e)}function Io(i,e){return i.slice(e,ve(i,e))}function _8(i){return(e,t,n)=>!n[0].length||(i(Ro(n.input,n.index))!=le.Word||i(Io(n.input,n.index))!=le.Word)&&(i(Io(n.input,n.index+n[0].length))!=le.Word||i(Ro(n.input,n.index+n[0].length))!=le.Word)}class P8 extends Gg{nextMatch(e,t,n){let s=bi(this.spec,e,n,e.doc.length).next();return s.done&&(s=bi(this.spec,e,0,t).next()),s.done?null:s.value}prevMatchInRange(e,t,n){for(let s=1;;s++){let r=Math.max(t,n-s*1e4),o=bi(this.spec,e,r,n),a=null;for(;!o.next().done;)a=o.value;if(a&&(r==t||a.from>r+10))return a;if(r==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(t,n)=>n=="$"?"$":n=="&"?e.match[0]:n!="0"&&+n<e.match.length?e.match[n]:t)}matchAll(e,t){let n=bi(this.spec,e,0,e.doc.length),s=[];for(;!n.next().done;){if(s.length>=t)return null;s.push(n.value)}return s}highlight(e,t,n,s){let r=bi(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!r.next().done;)s(r.value.from,r.value.to)}}const In=R.define(),zc=R.define(),zt=me.define({create(i){return new Wl(tc(i).create(),null)},update(i,e){for(let t of e.effects)t.is(In)?i=new Wl(t.value.create(),i.panel):t.is(zc)&&(i=new Wl(i.query,t.value?Wc:null));return i},provide:i=>Qn.from(i,e=>e.panel)});class Wl{constructor(e,t){this.query=e,this.panel=t}}const Q8=A.mark({class:"cm-searchMatch"}),V8=A.mark({class:"cm-searchMatch cm-searchMatch-selected"}),T8=he.fromClass(class{constructor(i){this.view=i,this.decorations=this.highlight(i.state.field(zt))}update(i){let e=i.state.field(zt);(e!=i.startState.field(zt)||i.docChanged||i.selectionSet||i.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:i,panel:e}){if(!e||!i.spec.valid)return A.none;let{view:t}=this,n=new Ft;for(let s=0,r=t.visibleRanges,o=r.length;s<o;s++){let{from:a,to:c}=r[s];for(;s<o-1&&c>r[s+1].from-2*250;)c=r[++s].to;i.highlight(t.state,a,c,(h,u)=>{let d=t.state.selection.ranges.some(f=>f.from==h&&f.to==u);n.add(h,u,d?V8:Q8)})}return n.finish()}},{decorations:i=>i.decorations});function Un(i){return e=>{let t=e.state.field(zt,!1);return t&&t.query.spec.valid?i(e,t):Jg(e)}}const Lo=Un((i,{query:e})=>{let{to:t}=i.state.selection.main,n=e.nextMatch(i.state,t,t);if(!n)return!1;let s=C.single(n.from,n.to),r=i.state.facet(Fi);return i.dispatch({selection:s,effects:[Yc(i,n),r.scrollToMatch(s.main,i)],userEvent:"select.search"}),Kg(i),!0}),Mo=Un((i,{query:e})=>{let{state:t}=i,{from:n}=t.selection.main,s=e.prevMatch(t,n,n);if(!s)return!1;let r=C.single(s.from,s.to),o=i.state.facet(Fi);return i.dispatch({selection:r,effects:[Yc(i,s),o.scrollToMatch(r.main,i)],userEvent:"select.search"}),Kg(i),!0}),E8=Un((i,{query:e})=>{let t=e.matchAll(i.state,1e3);return!t||!t.length?!1:(i.dispatch({selection:C.create(t.map(n=>C.range(n.from,n.to))),userEvent:"select.search.matches"}),!0)}),Z8=({state:i,dispatch:e})=>{let t=i.selection;if(t.ranges.length>1||t.main.empty)return!1;let{from:n,to:s}=t.main,r=[],o=0;for(let a=new Li(i.doc,i.sliceDoc(n,s));!a.next().done;){if(r.length>1e3)return!1;a.value.from==n&&(o=r.length),r.push(C.range(a.value.from,a.value.to))}return e(i.update({selection:C.create(r,o),userEvent:"select.search.matches"})),!0},_d=Un((i,{query:e})=>{let{state:t}=i,{from:n,to:s}=t.selection.main;if(t.readOnly)return!1;let r=e.nextMatch(t,n,n);if(!r)return!1;let o=[],a,c,h=[];if(r.from==n&&r.to==s&&(c=t.toText(e.getReplacement(r)),o.push({from:r.from,to:r.to,insert:c}),r=e.nextMatch(t,r.from,r.to),h.push(V.announce.of(t.phrase("replaced match on line $",t.doc.lineAt(n).number)+"."))),r){let u=o.length==0||o[0].from>=r.to?0:r.to-r.from-c.length;a=C.single(r.from-u,r.to-u),h.push(Yc(i,r)),h.push(t.facet(Fi).scrollToMatch(a.main,i))}return i.dispatch({changes:o,selection:a,effects:h,userEvent:"input.replace"}),!0}),A8=Un((i,{query:e})=>{if(i.state.readOnly)return!1;let t=e.matchAll(i.state,1e9).map(s=>{let{from:r,to:o}=s;return{from:r,to:o,insert:e.getReplacement(s)}});if(!t.length)return!1;let n=i.state.phrase("replaced $ matches",t.length)+".";return i.dispatch({changes:t,effects:V.announce.of(n),userEvent:"input.replace.all"}),!0});function Wc(i){return i.state.facet(Fi).createPanel(i)}function tc(i,e){var t,n,s,r,o;let a=i.selection.main,c=a.empty||a.to>a.from+100?"":i.sliceDoc(a.from,a.to);if(e&&!c)return e;let h=i.facet(Fi);return new Ug({search:((t=e==null?void 0:e.literal)!==null&&t!==void 0?t:h.literal)?c:c.replace(/\n/g,"\\n"),caseSensitive:(n=e==null?void 0:e.caseSensitive)!==null&&n!==void 0?n:h.caseSensitive,literal:(s=e==null?void 0:e.literal)!==null&&s!==void 0?s:h.literal,regexp:(r=e==null?void 0:e.regexp)!==null&&r!==void 0?r:h.regexp,wholeWord:(o=e==null?void 0:e.wholeWord)!==null&&o!==void 0?o:h.wholeWord})}function Hg(i){let e=Pn(i,Wc);return e&&e.dom.querySelector("[main-field]")}function Kg(i){let e=Hg(i);e&&e==i.root.activeElement&&e.select()}const Jg=i=>{let e=i.state.field(zt,!1);if(e&&e.panel){let t=Hg(i);if(t&&t!=i.root.activeElement){let n=tc(i.state,e.query.spec);n.valid&&i.dispatch({effects:In.of(n)}),t.focus(),t.select()}}else i.dispatch({effects:[zc.of(!0),e?In.of(tc(i.state,e.query.spec)):R.appendConfig.of(R8)]});return!0},eO=i=>{let e=i.state.field(zt,!1);if(!e||!e.panel)return!1;let t=Pn(i,Wc);return t&&t.dom.contains(i.root.activeElement)&&i.focus(),i.dispatch({effects:zc.of(!1)}),!0},B8=[{key:"Mod-f",run:Jg,scope:"editor search-panel"},{key:"F3",run:Lo,shift:Mo,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Lo,shift:Mo,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:eO,scope:"editor search-panel"},{key:"Mod-Shift-l",run:Z8},{key:"Mod-Alt-g",run:f8},{key:"Mod-d",run:C8,preventDefault:!0}];class D8{constructor(e){this.view=e;let t=this.query=e.state.field(zt).query.spec;this.commit=this.commit.bind(this),this.searchField=K("input",{value:t.search,placeholder:Me(e,"Find"),"aria-label":Me(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=K("input",{value:t.replace,placeholder:Me(e,"Replace"),"aria-label":Me(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=K("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=K("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=K("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function n(s,r,o){return K("button",{class:"cm-button",name:s,onclick:r,type:"button"},o)}this.dom=K("div",{onkeydown:s=>this.keydown(s),class:"cm-search"},[this.searchField,n("next",()=>Lo(e),[Me(e,"next")]),n("prev",()=>Mo(e),[Me(e,"previous")]),n("select",()=>E8(e),[Me(e,"all")]),K("label",null,[this.caseField,Me(e,"match case")]),K("label",null,[this.reField,Me(e,"regexp")]),K("label",null,[this.wordField,Me(e,"by word")]),...e.state.readOnly?[]:[K("br"),this.replaceField,n("replace",()=>_d(e),[Me(e,"replace")]),n("replaceAll",()=>A8(e),[Me(e,"replace all")])],K("button",{name:"close",onclick:()=>eO(e),"aria-label":Me(e,"close"),type:"button"},["×"])])}commit(){let e=new Ug({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:In.of(e)}))}keydown(e){Xx(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Mo:Lo)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),_d(this.view))}update(e){for(let t of e.transactions)for(let n of t.effects)n.is(In)&&!n.value.eq(this.query)&&this.setQuery(n.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Fi).top}}function Me(i,e){return i.state.phrase(e)}const ys=30,bs=/[\s\.,:;?!]/;function Yc(i,{from:e,to:t}){let n=i.state.doc.lineAt(e),s=i.state.doc.lineAt(t).to,r=Math.max(n.from,e-ys),o=Math.min(s,t+ys),a=i.state.sliceDoc(r,o);if(r!=n.from){for(let c=0;c<ys;c++)if(!bs.test(a[c+1])&&bs.test(a[c])){a=a.slice(c);break}}if(o!=s){for(let c=a.length-1;c>a.length-ys;c--)if(!bs.test(a[c-1])&&bs.test(a[c])){a=a.slice(0,c);break}}return V.announce.of(`${i.state.phrase("current match")}. ${a} ${i.state.phrase("on line")} ${n.number}.`)}const N8=V.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),R8=[zt,Tt.low(T8),N8];class I8{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class ni{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let s=e,r=n.facet(nO).markerFilter;r&&(s=r(s,n));let o=A.set(s.map(a=>a.from==a.to||a.from==a.to-1&&n.doc.lineAt(a.from).to==a.from?A.widget({widget:new q8(a),diagnostic:a}).range(a.from):A.mark({attributes:{class:"cm-lintRange cm-lintRange-"+a.severity+(a.markClass?" "+a.markClass:"")},diagnostic:a,inclusive:!0}).range(a.from,a.to)),!0);return new ni(o,t,Mi(o))}}function Mi(i,e=null,t=0){let n=null;return i.between(t,1e9,(s,r,{spec:o})=>{if(!(e&&o.diagnostic!=e))return n=new I8(s,r,o.diagnostic),!1}),n}function L8(i,e){let t=i.startState.doc.lineAt(e.pos);return!!(i.effects.some(n=>n.is(tO))||i.changes.touchesRange(t.from,t.to))}function M8(i,e){return i.field(Ye,!1)?e:e.concat(R.appendConfig.of(H8))}const tO=R.define(),Fc=R.define(),iO=R.define(),Ye=me.define({create(){return new ni(A.none,null,null)},update(i,e){if(e.docChanged){let t=i.diagnostics.map(e.changes),n=null;if(i.selected){let s=e.changes.mapPos(i.selected.from,1);n=Mi(t,i.selected.diagnostic,s)||Mi(t,null,s)}i=new ni(t,i.panel,n)}for(let t of e.effects)t.is(tO)?i=ni.init(t.value,i.panel,e.state):t.is(Fc)?i=new ni(i.diagnostics,t.value?sl.open:null,i.selected):t.is(iO)&&(i=new ni(i.diagnostics,i.panel,t.value));return i},provide:i=>[Qn.from(i,e=>e.panel),V.decorations.from(i,e=>e.diagnostics)]}),X8=A.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function j8(i,e,t){let{diagnostics:n}=i.state.field(Ye),s=[],r=2e8,o=0;n.between(e-(t<0?1:0),e+(t>0?1:0),(c,h,{spec:u})=>{e>=c&&e<=h&&(c==h||(e>c||t>0)&&(e<h||t<0))&&(s.push(u.diagnostic),r=Math.min(c,r),o=Math.max(h,o))});let a=i.state.facet(nO).tooltipFilter;return a&&(s=a(s,i.state)),s.length?{pos:r,end:o,above:i.state.doc.lineAt(r).to<o,create(){return{dom:z8(i,s)}}}:null}function z8(i,e){return K("ul",{class:"cm-tooltip-lint"},e.map(t=>rO(i,t,!1)))}const W8=i=>{let e=i.state.field(Ye,!1);(!e||!e.panel)&&i.dispatch({effects:M8(i.state,[Fc.of(!0)])});let t=Pn(i,sl.open);return t&&t.dom.querySelector(".cm-panel-lint ul").focus(),!0},Pd=i=>{let e=i.state.field(Ye,!1);return!e||!e.panel?!1:(i.dispatch({effects:Fc.of(!1)}),!0)},Y8=i=>{let e=i.state.field(Ye,!1);if(!e)return!1;let t=i.state.selection.main,n=e.diagnostics.iter(t.to+1);return!n.value&&(n=e.diagnostics.iter(0),!n.value||n.from==t.from&&n.to==t.to)?!1:(i.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0}),!0)},F8=[{key:"Mod-Shift-m",run:W8,preventDefault:!0},{key:"F8",run:Y8}],nO=E.define({combine(i){return Object.assign({sources:i.map(e=>e.source).filter(e=>e!=null)},vt(i.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))}});function sO(i){let e=[];if(i)e:for(let{name:t}of i){for(let n=0;n<t.length;n++){let s=t[n];if(/[a-zA-Z]/.test(s)&&!e.some(r=>r.toLowerCase()==s.toLowerCase())){e.push(s);continue e}}e.push("")}return e}function rO(i,e,t){var n;let s=t?sO(e.actions):[];return K("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},K("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),(n=e.actions)===null||n===void 0?void 0:n.map((r,o)=>{let a=!1,c=f=>{if(f.preventDefault(),a)return;a=!0;let p=Mi(i.state.field(Ye).diagnostics,e);p&&r.apply(i,p.from,p.to)},{name:h}=r,u=s[o]?h.indexOf(s[o]):-1,d=u<0?h:[h.slice(0,u),K("u",h.slice(u,u+1)),h.slice(u+1)];return K("button",{type:"button",class:"cm-diagnosticAction",onclick:c,onmousedown:c,"aria-label":` Action: ${h}${u<0?"":` (access key "${s[o]})"`}.`},d)}),e.source&&K("div",{class:"cm-diagnosticSource"},e.source))}class q8 extends St{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return K("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class Qd{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=rO(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class sl{constructor(e){this.view=e,this.items=[];let t=s=>{if(s.keyCode==27)Pd(this.view),this.view.focus();else if(s.keyCode==38||s.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(s.keyCode==40||s.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(s.keyCode==36)this.moveSelection(0);else if(s.keyCode==35)this.moveSelection(this.items.length-1);else if(s.keyCode==13)this.view.focus();else if(s.keyCode>=65&&s.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:r}=this.items[this.selectedIndex],o=sO(r.actions);for(let a=0;a<o.length;a++)if(o[a].toUpperCase().charCodeAt(0)==s.keyCode){let c=Mi(this.view.state.field(Ye).diagnostics,r);c&&r.actions[a].apply(e,c.from,c.to)}}else return;s.preventDefault()},n=s=>{for(let r=0;r<this.items.length;r++)this.items[r].dom.contains(s.target)&&this.moveSelection(r)};this.list=K("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t,onclick:n}),this.dom=K("div",{class:"cm-panel-lint"},this.list,K("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>Pd(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Ye).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(Ye),n=0,s=!1,r=null;for(e.between(0,this.view.state.doc.length,(o,a,{spec:c})=>{let h=-1,u;for(let d=n;d<this.items.length;d++)if(this.items[d].diagnostic==c.diagnostic){h=d;break}h<0?(u=new Qd(this.view,c.diagnostic),this.items.splice(n,0,u),s=!0):(u=this.items[h],h>n&&(this.items.splice(n,h-n),s=!0)),t&&u.diagnostic==t.diagnostic?u.dom.hasAttribute("aria-selected")||(u.dom.setAttribute("aria-selected","true"),r=u):u.dom.hasAttribute("aria-selected")&&u.dom.removeAttribute("aria-selected"),n++});n<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)s=!0,this.items.pop();this.items.length==0&&(this.items.push(new Qd(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),s=!0),r?(this.list.setAttribute("aria-activedescendant",r.id),this.view.requestMeasure({key:this,read:()=>({sel:r.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:o,panel:a})=>{let c=a.height/this.list.offsetHeight;o.top<a.top?this.list.scrollTop-=(a.top-o.top)/c:o.bottom>a.bottom&&(this.list.scrollTop+=(o.bottom-a.bottom)/c)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),s&&this.sync()}sync(){let e=this.list.firstChild;function t(){let n=e;e=n.nextSibling,n.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=this.view.state.field(Ye),n=Mi(t.diagnostics,this.items[e].diagnostic);n&&this.view.dispatch({selection:{anchor:n.from,head:n.to},scrollIntoView:!0,effects:iO.of(n)})}static open(e){return new sl(e)}}function U8(i,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(i)}</svg>')`}function ks(i){return U8(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${i}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const G8=V.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:ks("#d11")},".cm-lintRange-warning":{backgroundImage:ks("orange")},".cm-lintRange-info":{backgroundImage:ks("#999")},".cm-lintRange-hint":{backgroundImage:ks("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),H8=[Ye,V.decorations.compute([Ye],i=>{let{selected:e,panel:t}=i.field(Ye);return!e||!t||e.from==e.to?A.none:A.set([X8.range(e.from,e.to)])}),V$(j8,{hideOn:L8}),G8],K8=[I$(),X$(),r$(),hQ(),f5(),qx(),Jx(),ee.allowMultipleSelections.of(!0),t5(),Mp(O5,{fallback:!0}),C5(),f_(),C_(),b$(),v$(),u$(),g8(),Xi.of([...O_,...h8,...B8,...bQ,...c5,...nm,...F8])],J8=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[K8]}),e7=Symbol("vue-codemirror-global-config"),t7=()=>l.inject(e7,{}),Fe={Change:"change",Update:"update",Focus:"focus",Blur:"blur",Ready:"ready",ModelUpdate:"update:modelValue"},i7=({onUpdate:i,onChange:e,onFocus:t,onBlur:n,...s})=>ee.create({doc:s.doc,selection:s.selection,extensions:[...Array.isArray(s.extensions)?s.extensions:[s.extensions],V.updateListener.of(r=>{i(r),r.docChanged&&e(r.state.doc.toString(),r),r.focusChanged&&(r.view.hasFocus?t(r):n(r))})]}),ki=i=>{const e=new Mn;return{compartment:e,run:n=>{e.get(i.state)?i.dispatch({effects:e.reconfigure(n)}):i.dispatch({effects:R.appendConfig.of(e.of(n))})}}},Vd=(i,e)=>{const{compartment:t,run:n}=ki(i);return s=>{const r=t.get(i.state);n(s??r!==e?e:[])}},n7=i=>{const e=()=>i.state.doc.toString(),t=g=>{g!==e()&&i.dispatch({changes:{from:0,to:i.state.doc.length,insert:g}})},n=()=>i.focus(),{run:s}=ki(i),r=Vd(i,[V.editable.of(!1),ee.readOnly.of(!0)]),o=Vd(i,Xi.of([u8])),{run:a}=ki(i),c=g=>{a([ee.tabSize.of(g),ji.of(" ".repeat(g))])},{run:h}=ki(i),u=g=>{h([ee.phrases.of(g)])},{run:d}=ki(i),f=g=>{d(m$(g))},{run:p}=ki(i);return{focus:n,getDoc:e,setDoc:t,reExtensions:s,toggleDisabled:r,toggleIndentWithTab:o,setTabSize:c,setPhrases:u,setPlaceholder:f,setStyle:(g={})=>{p(V.theme({"&":{...g}}))}}},s7=l.defineComponent({name:"VueCodemirror",props:{modelValue:{type:String,default:""},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},indentWithTab:{type:Boolean,default:!1},tabSize:Number,placeholder:String,style:Object,autoDestroy:{type:Boolean,default:!1},phrases:Object,root:Object,extensions:Array,selection:Object},emits:{[Fe.Change]:(i,e)=>!0,[Fe.Update]:i=>!0,[Fe.Focus]:i=>!0,[Fe.Blur]:i=>!0,[Fe.Ready]:i=>!0,[Fe.ModelUpdate]:(i,e)=>!0},setup(i,e){const t=l.shallowRef(),n=l.shallowRef(),s=l.shallowRef(),r={...J8,...t7()},o=l.computed(()=>{const a={};return Object.keys(l.toRaw(i)).forEach(c=>{c!=="modelValue"&&(a[c]=i[c]??r[c])}),a});return l.onMounted(()=>{n.value=i7({doc:i.modelValue,selection:o.value.selection,extensions:r.extensions??[],onFocus:c=>e.emit(Fe.Focus,c),onBlur:c=>e.emit(Fe.Blur,c),onUpdate:c=>e.emit(Fe.Update,c),onChange:(c,h)=>{c!==i.modelValue&&(e.emit(Fe.Change,c,h),e.emit(Fe.ModelUpdate,c,h))}}),s.value=new V({state:n.value,parent:t.value,root:o.value.root}),s.value.contentDOM.addEventListener("scroll",c=>{});const a=n7(s.value);l.watch(()=>i.modelValue,c=>{c!==a.getDoc()&&a.setDoc(c)}),l.watch(()=>i.extensions,c=>a.reExtensions(c||[]),{immediate:!0}),l.watch(()=>o.value.disabled,c=>a.toggleDisabled(c),{immediate:!0}),l.watch(()=>o.value.indentWithTab,c=>a.toggleIndentWithTab(c),{immediate:!0}),l.watch(()=>o.value.tabSize,c=>a.setTabSize(c),{immediate:!0}),l.watch(()=>o.value.phrases,c=>a.setPhrases(c||{}),{immediate:!0}),l.watch(()=>o.value.placeholder,c=>a.setPlaceholder(c),{immediate:!0}),l.watch(()=>o.value.style,c=>a.setStyle(c),{immediate:!0}),o.value.autofocus&&a.focus(),e.emit(Fe.Ready,{state:n.value,view:s.value,container:t.value,editorTools:a})}),l.onBeforeUnmount(()=>{o.value.autoDestroy&&s.value&&s.value.destroy()}),()=>l.h("div",{class:"cv-editor-codemirror",ref:t})}}),r7={props:{editorID:{type:[String],required:!1,default(){return""}}},computed:{editorRefID(){return this.editorID?this.editorID:this.$options.name+ +new Date+((Math.random()*1e3).toFixed(0)+"")}}};function o7(i,e){var t=document.createElement("a");if(t.setAttribute("href","data:text/plain;charset=UTF-8,"+encodeURIComponent(i)),t.setAttribute("download",e),t.style.display="none",document.createEvent){const n=document.createEvent("MouseEvents");n.initEvent("click",!0,!0),t.dispatchEvent(n)}else t.click()}function ws(i){return i<10?"0"+i:i}const l7={undo:!1,redo:!1,strong:!0,italic:!0,overline:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,hr:!0,quote:!0,ul:!0,ol:!0,notChecked:!0,checked:!0,link:!0,image:!0,uploadImage:!1,table:!0,code:!0,importmd:!0,exportmd:!0,split:!0,preview:!0,scrollSync:!0,save:!0,clear:!0,fullscreen:!0,theme:!0,backgroundColor:!1,language:!1,phrases:!1,disabled:!1,autofocus:!1,indentWithTab:!1},a7={props:{exportFileName:{type:String,default:""},toolbars:{type:Object,default(){return{}}},isPreview:{type:Boolean,default:!1}},computed:{lastExpFileName(){let i=new Date,e=i.getFullYear(),t=i.getMonth()+1,n=i.getDate(),s=i.getHours(),r=i.getMinutes(),o=e+"-"+ws(t)+"-"+ws(n)+"_"+ws(s)+"-"+ws(r);return this.exportFileName||o},toolConfig(){const{toolbars:i={}}=this;return{...l7,...i}}},data(){return{actionThemeDropdown:!1,actionPhrasesDropdown:!1,actionLanguageDropdown:!1,actionBgColorDropdown:!1,actionSplit:!0,actionPreview:!1,actionScrollSync:!0,actionFullscreen:!1}},created(){this.actionPreview=this.isPreview||!1},methods:{actionPhrasesSet(i){this.localConfig.phrases=i,this.actionPhrasesDropdown=!1},actionLanguageSet(i){this.localConfig.language=i,this.actionLanguageDropdown=!1},actionBgColorSet(i){this.localConfig.backgroundColor=i,this.actionBgColorDropdown=!1},actionThemesSet(i){this.localConfig.theme=i,this.actionThemeDropdown=!1,this.$emit("on-theme-change",i)},actionFullscreenSet(i){this.actionFullscreen=i;let e=this.$refs[this.markdownRefID];i?e.classList.add("fullscreen"):e.classList.remove("fullscreen")},chooseImage(){const i=document.createElement("input");i.type="file",i.accept="image/*",i.onchange=()=>{const e=i.files;e[0]&&(this.$emit("on-upload-image",e[0]),i.value="")},i.click()},actionInsBg(){const i=this.getLastPoint(),e=this.getSelectionText();e?this.insertContent("=="+e+"=="):(this.insertContent("===="),this.setCursor(i.line,i.ch+1))},actionUndo(){if(this.editorViewInst){const i=this.editorViewInst.state.behavior(EditorState.effect(EditorState.undo));this.editorViewInst.update([{changes:{from:0,to:i.doc.length,insert:i.doc},selection:EditorSelection.single(0)}])}},actionRedo(){this.editorViewInst&&this.editorViewInst.dispatch({...this.editorViewInst.state,effects:EditorState.redo()})},actionInsStrong(){const i=this.getLastPoint(),e=i.content||!1;let t="";e?(t="**"+e+"**",this.deleteContent(i.start,i.end),this.insertContent(i.start,t)):(t="****",this.insertContent(i.start,t)),this.setCursor(i.start+t.length,i.start+t.length)},actionInsItalic(){const i=this.getLastPoint(),e=i.content||!1;let t="";e?(t="*"+e+"*",this.deleteContent(i.start,i.end),this.insertContent(i.start,t)):(t="**",this.insertContent(i.start,t)),this.setCursor(i.start+t.length,i.start+t.length)},actionInsOverline(){const i=this.getLastPoint(),e=i.content||!1;let t="";e?(t="~~"+e+"~~",this.deleteContent(i.start,i.end),this.insertContent(i.start,t)):(t="~~~~",this.insertContent(i.start,t)),this.setCursor(i.start+t.length,i.start+t.length)},actionInsUnderline(){const i=this.getLastPoint(),e=i.content||!1;let t="";e?(t="<u>"+e+"</u>",this.deleteContent(i.start,i.end),this.insertContent(i.start,t)):(t="<u></u>",this.insertContent(i.start,t)),this.setCursor(i.start+t.length,i.start+t.length)},actionInsTitle(i){const t={1:"# ",2:"## ",3:"### ",4:"#### ",5:"##### ",6:"###### "}[i],n=this.getLastPoint(),s=n.content||!1;let r=`
29
+ `+t+`标题
15
30
 
31
+ `;s?s.startsWith("#")?this.insertContent(n.end+1,r):(r=`
32
+ `+t+s+`
33
+ `,this.deleteContent(n.start,n.end),this.insertContent(n.start,r)):this.insertContent(n.start,r),this.setCursor(n.start+r.length,n.start+r.length)},actionInsLine(){const i=this.getLastPoint(),e=i.content||!1;let t=`
16
34
  ----
17
- `)},insertQuote(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent(`
18
- > `+o+`
35
+ `;e?this.insertContent(i.end+1,t):this.insertContent(i.start,t),this.setCursor(i.start+t.length,i.start+t.length)},actionInsQuote(){const i=this.getLastPoint(),e=i.content||!1;let t="";e?(t=`
36
+ > `+e+`
19
37
 
20
- `):this.editor.isClean()?(this.insertContent("> "),this.setCursor(0,3)):(this.insertContent(`
21
- > `),this.setCursor(t.line+1,3))},insertUl(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent(`
22
- - `+o+`
38
+ `,this.deleteContent(i.start,i.end),this.insertContent(i.start,t)):(t="> ",this.insertContent(i.start,t)),this.setCursor(i.start+t.length,i.start+t.length)},insertUl(){const i=this.getLastPoint(),e=i.content||!1;let t="";e?(t=`
39
+ - `+e,this.deleteContent(i.start,i.end),this.insertContent(i.start,t)):(t="- ",this.insertContent(i.start,t)),this.setCursor(i.start+t.length,i.start+t.length)},insertOl(){const i=this.getLastPoint(),e=i.content||!1;let t="";e?(t=`
40
+ 1. `+e,this.deleteContent(i.start,i.end),this.insertContent(i.start,t)):(t="1. ",this.insertContent(i.start,t)),this.setCursor(i.start+t.length,i.start+t.length)},insertNotFinished(){const i=this.getLastPoint(),e=i.content||!1;let t="";e?(t=`
41
+ - [ ] `+e,this.deleteContent(i.start,i.end),this.insertContent(i.start,t)):(t="- [ ] ",this.insertContent(i.start,t)),this.setCursor(i.start+t.length,i.start+t.length)},insertFinished(){const i=this.getLastPoint(),e=i.content||!1;let t="";e?(t=`
42
+ - [x] `+e,this.deleteContent(i.start,i.end),this.insertContent(i.start,t)):(t="- [x] ",this.insertContent(i.start,t)),this.setCursor(i.start+t.length,i.start+t.length)},actionInsLink(){const i=this.getLastPoint(),e=i.content||!1;let t=`
43
+ [link](http://cvjs.cn)`;var n=/\[.*?\]\(.*?\)/g;e?e.match(n)!=null?this.insertContent(i.end,t):(t=`
44
+ [${e}](http://cvjs.cn)`,this.deleteContent(i.start,i.end),this.insertContent(i.start,t)):this.insertContent(i.start,t),this.setCursor(i.start+t.length,i.start+t.length)},actionInsImage(){const i=this.getLastPoint();let e="";e=`
23
45
 
24
- `):this.editor.isClean()||t.ch===0?(this.insertContent("- "),this.setCursor(t.line,3)):(this.insertContent(`
25
- - `),this.setCursor(t.line+1,3))},insertOl(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent(`
26
- 1. `+o+`
46
+ ![图片](https://f.10yun.com/default/default.gif)`,this.insertContent(i.end,e),this.setCursor(i.start+e.length,i.start+e.length)},actionInsTable(){const i=this.getLastPoint();let e="";e=`
27
47
 
28
- `):this.editor.isClean()||t.ch===0?(this.insertContent("1. "),this.setCursor(t.line,4)):(this.insertContent(`
29
- 1. `),this.setCursor(t.line+1,4))},insertCode(){const t=this.getSelectionText();t?this.insertContent("\n```\n"+t+"\n```\n"):this.editor.isClean()?(this.insertContent("```\n\n```"),this.setCursor(1,0)):(this.insertContent("\n```\n\n```"),this.setCursor(this.lastPos.line+2,0))},insertFinished(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent(`
30
- - [x] `+o+`
31
-
32
- `):this.editor.isClean()||t.ch===0?(this.insertContent("- [x] "),this.setCursor(t.line,6)):(this.insertContent(`
33
- - [x] `),this.setCursor(t.line+1,6))},insertNotFinished(){const t=this.getLastPoint(),o=this.getSelectionText();o?this.insertContent(`
34
- - [ ] `+o+`
48
+ 表头 1 | 表头 2
49
+ :---|:---
50
+ row 1 col 1 | row 1 col 2
51
+ row 2 col 1 | row 2 col 2
35
52
 
36
- `):this.editor.isClean()||t.ch===0?(this.insertContent("- [ ] "),this.setCursor(t.line,6)):(this.insertContent(`
37
- - [ ] `),this.setCursor(t.line+1,6))},topbarType(t=""){}}},iu={strong:!0,italic:!0,overline:!0,h1:!0,h2:!0,h3:!0,h4:!1,h5:!1,h6:!1,hr:!0,quote:!0,ul:!0,ol:!0,code:!0,link:!0,image:!0,uploadImage:!1,table:!0,checked:!0,notChecked:!0,split:!0,preview:!0,fullscreen:!0,theme:!0,exportmd:!0,importmd:!0,save:!1,clear:!1},su={name:"markdown",mixins:[au],props:{modelValue:{type:[String,Number],default:""},editorIsSimple:{type:[Boolean],default:!1},editorID:{type:[String],required:!1,default(){return"markdown-editor-"+ +new Date+((Math.random()*1e3).toFixed(0)+"")}},editorConfig:{type:[Object],default:()=>({tabSize:4,styleActiveLine:!0,lineNumbers:!0,lineWrapping:!1,line:!0,mode:"text/x-src",theme:"default",cursorHeight:.8,lineWiseCopyCut:!0,height:"500px",fontSize:"14px"})},theme:{type:String,default:"light"},width:{type:[Number,String],default:"auto"},height:{type:[Number,String],default:600},toolbars:{type:Object,default(){return{}}},bordered:{type:Boolean,default:!0},autoSave:{type:Boolean,default:!1},interval:{type:Number,default:1e4},exportFileName:{type:String,default:"unnamed"},markedOptions:{type:Object,default(){return{}}},copyCode:{type:Boolean,default:!0},copyBtnText:{type:String,default:"复制代码"},isPreview:{type:Boolean,default:!1}},data(){return{currentValue:"",timeoutId:null,indexLenth:1,html:"",preview:!1,split:!0,fullscreen:!1,scrollSide:"",lastInsert:"",timerId:null,themeName:"",themeSlideDown:!1,imgSlideDown:!1,imgs:[],scrolling:!0,editorScrollHeight:0,previewImgModal:!1,previewImgSrc:"",previewImgMode:""}},computed:{editorBind(){return{}},heightNum(){let t=""+this.height;return t.includes("px")?t.replace("px"):this.height},heightPx(){let t=""+this.height;return t.includes("px")?t:t+"px"},calcWidth(){return""+this.width,this.width.includes("px")?this.width:this.width+"px"},tools(){const{toolbars:t={}}=this;return{...iu,...t}}},methods:{handleSave(){const{currentValue:t,themeName:o,html:n}=this;this.$emit("on-save",{theme:o,value:t,html:n})},toggleSlideDown(){this.slideDown=!this.slideDown},setThemes(t){this.themeName=t,this.themeSlideDown=!1,this.$emit("on-theme-change",t)},exportFile(){lu(this.currentValue,this.exportFileName+".md")},importFile(t){const o=t.target.files[0];if(!o)return;const n=new FileReader;n.readAsText(o,{encoding:"utf-8"}),n.onload=()=>{this.currentValue=n.result,t.target.value="",this.pro&&this.editor.setOption("value",this.currentValue)},n.onerror=i=>{}},handlePaste(t,o){const{clipboardData:n={}}=o,{types:i=[],items:l}=n;let a=null;for(let s=0;s<i.length;s++)if(i[s]==="Files"){a=l[s];break}if(a){const s=a.getAsFile();/image/gi.test(s.type)&&(this.$emit("on-upload-image",s),o.preventDefault())}},mousescrollSide(t){this.scrollSide=t},addImageClickListener(){const{imgs:t=[]}=this;if(t.length>0)for(let o=0,n=t.length;o<n;o++)t[o].onclick=null;setTimeout(()=>{this.imgs=this.$refs.preview.querySelectorAll("img");for(let o=0,n=this.imgs.length;o<n;o++)this.imgs[o].onclick=()=>{const i=this.imgs[o].getAttribute("src");this.previewImage(i)}},600)},previewImage(t){const o=new Image;o.src=t,o.onload=()=>{const n=o.naturalWidth;o.naturalHeight/n>1.4?this.previewImgMode="horizontal":this.previewImgMode="vertical",this.previewImgSrc=t,this.previewImgModal=!0}},chooseImage(){const t=document.createElement("input");t.type="file",t.accept="image/*",t.onchange=()=>{const o=t.files;o[0]&&(this.$emit("on-upload-image",o[0]),t.value="")},t.click()},addCopyListener(){setTimeout(()=>{const t=document.querySelectorAll(".code-block .copy-code");this.btns=t;for(let o=0,n=t.length;o<n;o++)t[o].onclick=()=>{const i=t[o].parentNode.querySelectorAll("pre")[0].innerText,l=document.createElement("input");l.setAttribute("value",i),document.body.appendChild(l),l.select(),document.execCommand("copy"),document.body.removeChild(l),this.$emit("on-copy",i)}},600)}},destroyed(){clearInterval(this.timerId)}},ru={name:"cvEditorMarkdown",mixins:[su],data(){return{textareaHeight:this.heightNum,pro:!0,editor:null,lastPos:""}},watch:{currentValue(){clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{const t=new marked.Marked(Zt({langPrefix:"hljs language-",highlight(n,i){const l=hljs.getLanguage(i)?i:"plaintext";return hljs.highlight(n,{language:l}).value}}));t.use({gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0});let o=t.parse(this.currentValue,{sanitize:!1,...this.markedOptions});o=o.replace(/href="/gi,'target="_blank" href="'),this.copyCode&&o!==""&&(o=o.replace(/<pre>/g,'<div class="code-block"><span class="copy-code">'+this.copyBtnText+"</span><pre>").replace(/<\/pre>/g,"</pre></div>")),this.html=o,this.indexLenth=this.currentValue.split(`
38
- `).length,this.textareaHeight=this.indexLenth*22,this.addCopyListener(),this.addImageClickListener(),this.$emit("input",this.currentValue)},30)},modelValue(){this.currentValue!==this.modelValue&&(this.currentValue=this.modelValue,this.editor.setOption("value",this.modelValue))}},async mounted(){await P(this.CDN_URL_UI+"/codemirror/@5.65.15/lib/codemirror.css"),await N(this.CDN_URL_UI+"/codemirror/@5.65.15/lib/codemirror.js"),await N(this.CDN_URL_UI+"/highlight.js/@11.8.0/highlight.min.js"),P(this.CDN_URL_UI+"/highlight.js/@11.8.0/styles/foundation.min.css"),N(this.CDN_URL_UI+"/highlight.js/@11.8.0/languages/php.min.js"),N(this.CDN_URL_UI+"/highlight.js/@11.8.0/languages/javascript.min.js"),N(this.CDN_URL_UI+"/highlight.js/@11.8.0/languages/java.min.js"),N(this.CDN_URL_UI+"/highlight.js/@11.8.0/languages/plaintext.min.js"),await N(this.CDN_URL_UI+"/marked/@7.0.4/marked.min.js").then(()=>{this.init(),this.editorIsSimple?this.createSimple:this.createEditor()})},methods:{init(){this.currentValue=this.modelValue,this.themeName=this.theme,this.preview=this.isPreview,!this.isPreview&&setTimeout(()=>{this.autoSave&&(this.timerId=setInterval(()=>{this.handleSave()},this.interval))},20)},createSimple(){setTimeout(()=>{const t=this.$refs.textarea;t.focus(),t.addEventListener("keydown",o=>{o.keyCode===83&&(o.metaKey||o.ctrlKey)&&(o.preventDefault(),this.handleSave())}),t.addEventListener("paste",this.handlePaste),this.$emit("on-ready",{vm:this,insertContent:this.insertContent})},20)},createEditor(){this.editor=new CodeMirror(this.$refs[this.editorID],{value:this.currentValue,onload:t=>{const{doc:{height:o=0}}=t;this.editorScrollHeight=o},...this.editorConfig}),this.editor.setSize("height",this.heightPx),this.addEditorLintener(),this.$emit("on-ready",{vm:this,insertContent:this.insertContent})},addEditorLintener(){this.editor,this.editor.on("change",t=>{this.lastPos=this.editor.getCursor(),this.currentValue=this.editor.getValue();const{doc:{height:o}}=t;this.editorScrollHeight=o}),this.editor.on("scroll",this.markdownScroll),this.editor.on("paste",this.handlePaste),this.editor.on("keydown",(t,o)=>{o.keyCode===83?(o.metaKey||o.ctrlKey)&&(o.preventDefault(),this.handleSave()):o.keyCode===13?this.listerenKeyupEnter(o):o.keyCode===8&&this.listerenDelete(t)}),this.editor.on("focus",()=>{this.lastPos=this.editor.getCursor()})},setCursor(t=0,o=0){this.editorIsSimple||(this.editor.setCursor(t,o),this.editor.focus())},setCursor2(t){const o=this.$refs.textarea;if(o.setSelectionRange)o.focus(),o.setSelectionRange(t,t);else if(o.createTextRange){let n=o.createTextRange();n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select()}},getCursortPosition(){const t=this.$refs.textarea;let o=0;if(document.selection){t.focus();let n=document.selection.createRange();n.moveStart("character",-this.currentValue.length),o=n.text.length}else(t.selectionStart||parseInt(t.selectionStart,0)===0)&&(o=t.selectionStart);return o},getSelectionText(){return this.editor.getSelection()},getLastPoint(){return this.lastPos||{line:0,ch:0}},insertContent(t){if(this.editorIsSimple){this.lastInsert=t.replace(/\n/g,"");const o=this.getCursortPosition(),n=this.currentValue.substring(o-1,o),i=this.currentValue.substring(o-4,o);if(n!==`
39
- `&&this.currentValue!==""&&i!==" "){const l=`
40
- `+initStr;this.insertAfterText(l)}else this.insertAfterText(initStr)}else this.editor.replaceSelection(t),this.lastInsert=t.replace(/\n/g,"")},listerenKeyupEnter(t){this.lastInsert&&(["-","- [ ]","- [x]"].includes(this.lastInsert.trim())?(t.preventDefault(),this.insertContent(`
41
- `+this.lastInsert)):/^\d+\.$/.test(this.lastInsert.trim())&&(t.preventDefault(),this.insertContent(`
42
- `+(parseInt(this.lastInsert,0)+1)+". ")))},listerenDelete(){setTimeout(()=>{this.editor.isClean()||this.editor.getValue().split(`
43
- `).pop()===""&&(this.lastInsert="")},20)},onEnter(){["- ","1. ","- [ ] ","- [x] "].includes(this.lastInsert)&&this.insertContent(this.lastInsert)},enter(){this.onEnter()},onDelete(){const t=this.currentValue.split(`
44
- `);t[t.length-1]===""&&(this.lastInsert="")},getScrollData(){const t=this.$refs[this.editorID],o=t.scrollHeight,n=t.scrollTop,i=this.$refs.preview,l=i.offsetHeight,a=i.scrollHeight,s=i.scrollTop||0;return{markdownRef:t,markdownScrollHeight:o,markdownScrollTop:n,previewRef:i,contentHeight:l,previewScrollHeight:a,previewScrollTop:s}},markdownScroll(t){if(!this.scrollSide)return;let o=0,n=0;if(t.doc?(o=t.doc.scrollTop,n=t.doc.height):t.target&&(o=t.target.scrollTop,n=t.target.offsetHeight),this.scrollSide==="left"){const{markdownRef:i,markdownScrollHeight:l,markdownScrollTop:a,previewRef:s,contentHeight:r,previewScrollHeight:d,previewScrollTop:c}=this.getScrollData();s.scrollTop=parseInt(o*(d-r)/(n-r),0)}},previewScroll(){if(this.scrollSide&&this.scrollSide==="right"){const{markdownRef:t,markdownScrollHeight:o,markdownScrollTop:n,previewRef:i,contentHeight:l,previewScrollHeight:a,previewScrollTop:s}=this.getScrollData(),r=parseInt(s*(this.editorScrollHeight-l)/(a-l),0);this.editor.scrollTo(0,r)}},redo(){this.editor.redo(),setTimeout(()=>{this.editor.refresh()},20)},tabxxx(t){this.insertContent(" ",this),t.preventDefault?t.preventDefault():t.returnValue=!1},insertAfterText2(t){const o=this.$refs.textarea;let n;if(document.selection)o.focus(),n=document.selection.createRange(),n.text=t,o.focus();else if(o.selectionStart||parseInt(o.selectionStart,0)===0){const i=o.selectionStart,l=o.selectionEnd,a=o.scrollTop;o.value=o.value.substring(0,i)+t+o.value.substring(l,o.value.length),o.focus(),o.selectionStart=i+t.length,o.selectionEnd=i+t.length,o.scrollTop=a}else o.value+=t,o.focus();this.$set(this,"currentValue",o.value)}}},cu={class:"cv-editor-toolbars"},du={key:0,name:"撤销"},uu=e.createElementVNode("span",{class:"iconfont icon-redo"},null,-1),hu=[uu],pu={key:2,name:"粗体"},mu={key:3,name:"斜体"},fu={key:4,name:"删除线"},gu={key:5,name:"下划线"},vu={key:6,name:"标题1"},_u={key:7,name:"标题2"},yu={key:8,name:"标题3"},Cu={key:9,name:"标题4"},wu={key:10,name:"标题5"},ku={key:11,name:"标题6"},bu={key:12,name:"分割线"},Vu={key:13,name:"引用"},Su={key:14,name:"无序列表"},Nu={key:15,name:"有序列表"},Bu={key:16,name:"代码块"},Eu={key:17,name:"未完成列表"},xu={key:18,name:"已完成列表"},$u={key:19,name:"链接"},Tu={key:20,name:"图片"},Du={key:21,name:"本地图片"},Lu={key:22,name:"表格"},Iu={key:23,class:"shift-theme",name:"代码块主题"},Fu={name:"导入文件",class:"import-file"},zu={name:"保存到本地"},ju={key:24,name:"全屏编辑"},Ou={key:25,name:"分屏显示"},Pu={key:26,name:"预览"},Au=e.createElementVNode("span",{class:"iconfont icon-clear"},null,-1),Uu=[Au],Ru=e.createElementVNode("span",{class:"iconfont icon-save"},null,-1),Mu=[Ru],Hu=["name"],qu=e.createElementVNode("li",{class:"empty"},null,-1),Wu={key:29,name:"全屏"},Ku={key:30,name:"退出全屏"},Gu=e.createElementVNode("span",{class:"iconfont icon-close"},null,-1),Zu=[Gu],Qu=["innerHTML"],Yu=["src"];function Ju(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",{ref:"markdown",class:e.normalizeClass(["cv-markdown-wrap markdown-var",`markdown ${t.fullscreen?"fullscreen":""} ${t.bordered?"border":""}`]),style:e.normalizeStyle({width:t.calcWidth})},[e.withDirectives(e.createElementVNode("ul",cu,[e.createElementVNode("li",null,[e.renderSlot(t.$slots,"title")]),t.tools.undo?(e.openBlock(),e.createElementBlock("li",du,[e.createElementVNode("span",{class:"iconfont icon-undo",onClick:o[0]||(o[0]=s=>l.editor.undo())})])):e.createCommentVNode("",!0),t.tools.redo?(e.openBlock(),e.createElementBlock("li",{key:1,name:"重做",onClick:o[1]||(o[1]=(...s)=>a.redo&&a.redo(...s))},[...hu])):e.createCommentVNode("",!0),t.tools.strong?(e.openBlock(),e.createElementBlock("li",pu,[e.createElementVNode("span",{onClick:o[2]||(o[2]=(...s)=>t.insertStrong&&t.insertStrong(...s)),class:"iconfont icon-bold"})])):e.createCommentVNode("",!0),t.tools.italic?(e.openBlock(),e.createElementBlock("li",mu,[e.createElementVNode("span",{onClick:o[3]||(o[3]=(...s)=>t.insertItalic&&t.insertItalic(...s)),class:"iconfont icon-italic"})])):e.createCommentVNode("",!0),t.tools.overline?(e.openBlock(),e.createElementBlock("li",fu,[e.createElementVNode("span",{onClick:o[4]||(o[4]=(...s)=>t.insertOverline&&t.insertOverline(...s)),class:"iconfont icon-overline"})])):e.createCommentVNode("",!0),t.tools.overline?(e.openBlock(),e.createElementBlock("li",gu,[e.createElementVNode("span",{onClick:o[5]||(o[5]=(...s)=>t.insertUnderline&&t.insertUnderline(...s)),class:"iconfont icon-under-line"})])):e.createCommentVNode("",!0),t.tools.h1?(e.openBlock(),e.createElementBlock("li",vu,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[6]||(o[6]=s=>t.insertTitle(1))},"h1")])):e.createCommentVNode("",!0),t.tools.h2?(e.openBlock(),e.createElementBlock("li",_u,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[7]||(o[7]=s=>t.insertTitle(2))},"h2")])):e.createCommentVNode("",!0),t.tools.h3?(e.openBlock(),e.createElementBlock("li",yu,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[8]||(o[8]=s=>t.insertTitle(3))},"h3")])):e.createCommentVNode("",!0),t.tools.h4?(e.openBlock(),e.createElementBlock("li",Cu,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[9]||(o[9]=s=>t.insertTitle(4))},"h4")])):e.createCommentVNode("",!0),t.tools.h5?(e.openBlock(),e.createElementBlock("li",wu,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[10]||(o[10]=s=>t.insertTitle(5))},"h5")])):e.createCommentVNode("",!0),t.tools.h6?(e.openBlock(),e.createElementBlock("li",ku,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[11]||(o[11]=s=>t.insertTitle(6))},"h6")])):e.createCommentVNode("",!0),t.tools.hr?(e.openBlock(),e.createElementBlock("li",bu,[e.createElementVNode("span",{onClick:o[12]||(o[12]=(...s)=>t.insertLine&&t.insertLine(...s)),class:"iconfont icon-horizontal"})])):e.createCommentVNode("",!0),t.tools.quote?(e.openBlock(),e.createElementBlock("li",Vu,[e.createElementVNode("span",{style:{"font-size":"16px"},onClick:o[13]||(o[13]=(...s)=>t.insertQuote&&t.insertQuote(...s)),class:"iconfont icon-quote"})])):e.createCommentVNode("",!0),t.tools.ul?(e.openBlock(),e.createElementBlock("li",Su,[e.createElementVNode("span",{onClick:o[14]||(o[14]=(...s)=>t.insertUl&&t.insertUl(...s)),class:"iconfont icon-ul"})])):e.createCommentVNode("",!0),t.tools.ol?(e.openBlock(),e.createElementBlock("li",Nu,[e.createElementVNode("span",{onClick:o[15]||(o[15]=(...s)=>t.insertOl&&t.insertOl(...s)),class:"iconfont icon-ol"})])):e.createCommentVNode("",!0),t.tools.code?(e.openBlock(),e.createElementBlock("li",Bu,[e.createElementVNode("span",{onClick:o[16]||(o[16]=(...s)=>t.insertCode&&t.insertCode(...s)),class:"iconfont icon-code"})])):e.createCommentVNode("",!0),t.tools.notChecked?(e.openBlock(),e.createElementBlock("li",Eu,[e.createElementVNode("span",{onClick:o[17]||(o[17]=(...s)=>t.insertNotFinished&&t.insertNotFinished(...s)),class:"iconfont icon-checked-false"})])):e.createCommentVNode("",!0),t.tools.checked?(e.openBlock(),e.createElementBlock("li",xu,[e.createElementVNode("span",{onClick:o[18]||(o[18]=(...s)=>t.insertFinished&&t.insertFinished(...s)),class:"iconfont icon-checked"})])):e.createCommentVNode("",!0),t.tools.link?(e.openBlock(),e.createElementBlock("li",$u,[e.createElementVNode("span",{onClick:o[19]||(o[19]=(...s)=>t.insertLink&&t.insertLink(...s)),class:"iconfont icon-link"})])):e.createCommentVNode("",!0),t.tools.image?(e.openBlock(),e.createElementBlock("li",Tu,[e.createElementVNode("span",{onClick:o[20]||(o[20]=(...s)=>t.insertImage&&t.insertImage(...s)),class:"iconfont icon-img"})])):e.createCommentVNode("",!0),t.tools.uploadImage?(e.openBlock(),e.createElementBlock("li",Du,[e.createElementVNode("span",{onClick:o[21]||(o[21]=(...s)=>t.chooseImage&&t.chooseImage(...s)),class:"iconfont icon-upload-img"})])):e.createCommentVNode("",!0),t.tools.table?(e.openBlock(),e.createElementBlock("li",Lu,[e.createElementVNode("span",{onClick:o[22]||(o[22]=(...s)=>t.insertTable&&t.insertTable(...s)),class:"iconfont icon-table"})])):e.createCommentVNode("",!0),t.tools.theme?(e.openBlock(),e.createElementBlock("li",Iu,[e.createElementVNode("div",null,[e.createElementVNode("span",{class:"iconfont icon-theme",onClick:o[23]||(o[23]=s=>t.themeSlideDown=!t.themeSlideDown)}),e.createElementVNode("ul",{class:e.normalizeClass({active:t.themeSlideDown}),onMouseleave:o[28]||(o[28]=s=>t.themeSlideDown=!1)},[e.createElementVNode("li",{onClick:o[24]||(o[24]=s=>t.setThemes("light"))},"Light"),e.createElementVNode("li",{onClick:o[25]||(o[25]=s=>t.setThemes("dark"))},"VS Code"),e.createElementVNode("li",{onClick:o[26]||(o[26]=s=>t.setThemes("oneDark"))},"Atom OneDark"),e.createElementVNode("li",{onClick:o[27]||(o[27]=s=>t.setThemes("gitHub"))},"GitHub")],34)])])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("li",Fu,[e.createElementVNode("span",{class:"iconfont icon-daoru",onClick:o[29]||(o[29]=(...s)=>t.importFile&&t.importFile(...s))}),e.createElementVNode("input",{type:"file",onChange:o[30]||(o[30]=s=>t.importFile(s)),accept:"text/markdown"},null,32)],512),[[e.vShow,t.tools.importmd]]),e.withDirectives(e.createElementVNode("li",zu,[e.createElementVNode("span",{class:"iconfont icon-download",onClick:o[31]||(o[31]=(...s)=>t.exportFile&&t.exportFile(...s))})],512),[[e.vShow,t.tools.exportmd]]),t.tools.split&&t.split?(e.openBlock(),e.createElementBlock("li",ju,[e.createElementVNode("span",{onClick:o[32]||(o[32]=s=>t.split=!1),class:"iconfont icon-md"})])):e.createCommentVNode("",!0),t.tools.split&&!t.split?(e.openBlock(),e.createElementBlock("li",Ou,[e.createElementVNode("span",{onClick:o[33]||(o[33]=s=>t.split=!0),class:"iconfont icon-group"})])):e.createCommentVNode("",!0),t.tools.preview?(e.openBlock(),e.createElementBlock("li",Pu,[e.createElementVNode("span",{onClick:o[34]||(o[34]=s=>t.preview=!0),class:"iconfont icon-preview"})])):e.createCommentVNode("",!0),t.tools.clear?(e.openBlock(),e.createElementBlock("li",{key:27,name:"清空",onClick:o[35]||(o[35]=s=>t.value="")},[...Uu])):e.createCommentVNode("",!0),t.tools.save?(e.openBlock(),e.createElementBlock("li",{key:28,name:"保存",onClick:o[36]||(o[36]=(...s)=>t.handleSave&&t.handleSave(...s))},[...Mu])):e.createCommentVNode("",!0),e.createElementVNode("li",{name:t.scrolling?"同步滚动:开":"同步滚动:关"},[e.withDirectives(e.createElementVNode("span",{onClick:o[37]||(o[37]=s=>t.scrolling=!t.scrolling),class:"iconfont icon-on"},null,512),[[e.vShow,t.scrolling]]),e.withDirectives(e.createElementVNode("span",{onClick:o[38]||(o[38]=s=>t.scrolling=!t.scrolling),class:"iconfont icon-off"},null,512),[[e.vShow,!t.scrolling]])],8,Hu),qu,t.tools.fullscreen&&!t.fullscreen?(e.openBlock(),e.createElementBlock("li",Wu,[e.createElementVNode("span",{onClick:o[39]||(o[39]=s=>t.fullscreen=!t.fullscreen),class:"iconfont icon-fullscreen"})])):e.createCommentVNode("",!0),t.tools.fullscreen&&t.fullscreen?(e.openBlock(),e.createElementBlock("li",Ku,[e.createElementVNode("span",{onClick:o[40]||(o[40]=s=>t.fullscreen=!t.fullscreen),class:"iconfont icon-quite"})])):e.createCommentVNode("",!0)],512),[[e.vShow,!t.preview]]),e.withDirectives(e.createElementVNode("div",{class:"close-preview",onClick:o[41]||(o[41]=s=>t.preview=!1)},[...Zu],512),[[e.vShow,t.preview&&!t.isPreview]]),e.createElementVNode("div",{class:"markdown-content",style:e.normalizeStyle({background:t.preview?"#fff":""})},[t.editorIsSimple?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"codemirror",ref:t.editorID,style:e.normalizeStyle({height:t.heightPx}),onMouseenter:o[42]||(o[42]=s=>t.mousescrollSide("left"))},null,36)),[[e.vShow,!t.preview]]),t.editorIsSimple?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:1,class:"markdown-editor",ref:t.editorID,style:e.normalizeStyle({height:t.heightPx}),onScroll:o[48]||(o[48]=(...s)=>a.markdownScroll&&a.markdownScroll(...s)),onMouseenter:o[49]||(o[49]=s=>t.mousescrollSide("markdown"))},[e.createElementVNode("ul",{class:"index",ref:"index",style:e.normalizeStyle({height:l.textareaHeight?`${l.textareaHeight}px`:"100%"})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.indexLenth,s=>(e.openBlock(),e.createElementBlock("li",{key:s},e.toDisplayString(s),1))),128))],4),e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":o[43]||(o[43]=s=>t.currentValue=s),ref:"textarea",onKeydown:o[44]||(o[44]=e.withKeys((...s)=>t.tab&&t.tab(...s),["tab"])),onKeyup:[o[45]||(o[45]=e.withKeys((...s)=>a.onEnter&&a.onEnter(...s),["enter"])),o[46]||(o[46]=e.withKeys((...s)=>a.onDelete&&a.onDelete(...s),["delete"]))],onMouseenter:o[47]||(o[47]=s=>t.mousescrollSide("left")),style:e.normalizeStyle({height:l.textareaHeight?`${l.textareaHeight}px`:"100%"})},null,36),[[e.vModelText,t.currentValue]])],36)),[[e.vShow,!t.preview]]):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`markdown-preview ${"markdown-theme-"+t.themeName}`),ref:"preview",style:e.normalizeStyle({height:t.heightPx}),onScroll:o[50]||(o[50]=(...s)=>a.previewScroll&&a.previewScroll(...s)),onMouseenter:o[51]||(o[51]=s=>t.mousescrollSide("right"))},[e.createElementVNode("div",{innerHTML:t.html,ref:"previewInner"},null,8,Qu)],38),[[e.vShow,t.preview?t.preview:t.split]])],4),e.createElementVNode("div",{class:e.normalizeClass(["preview-img",t.previewImgModal?"active":""])},[e.createElementVNode("span",{class:"close icon-close iconfont",onClick:o[52]||(o[52]=s=>t.previewImgModal=!1)}),e.createElementVNode("img",{src:t.previewImgSrc,class:e.normalizeClass([t.previewImgMode]),alt:""},null,10,Yu)],2)],6)}const gt=p(ru,[["render",Ju],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/markdown.vue"]]),Xu={name:"cvMarkdownShow",props:{value:{type:String,default:""},currRefID:{type:[String],required:!1,default(){return"markdown-editor-"+ +new Date+((Math.random()*1e3).toFixed(0)+"")}},markedOptions:{type:Object,default:()=>({})},theme:{type:String,default:"light"},copyCode:{type:Boolean,default:!0},copyBtnText:{type:String,default:"复制代码"}},watch:{value(){this.translateMarkdown()}},data(){return{localVal:"",localHtml:"",previewImgModal:!1,previewImgSrc:"",previewImgMode:"",imgs:[]}},created(){this.localVal=this.value||""},async mounted(){await N(this.CDN_URL_UI+"/highlight.js/@11.8.0/highlight.min.js"),await P(this.CDN_URL_UI+"/highlight.js/@11.8.0/styles/default.min.css"),await N(this.CDN_URL_UI+"/marked/@7.0.4/marked.min.js").then(()=>{setTimeout(()=>{hljs.highlightAll()},30),this.translateMarkdown()})},methods:{translateMarkdown(){setTimeout(()=>{const t=new marked.Marked(Zt({langPrefix:"hljs language-",highlight(n,i){const l=hljs.getLanguage(i)?i:"plaintext";return hljs.highlight(n,{language:l}).value}}));t.use({gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0});let o=t.parse(this.localVal,{sanitize:!1,...this.markedOptions});o=o.replace(/href="/gi,'target="_blank" href="'),this.copyCode&&(o=o.replace(/<pre>/g,'<div class="code-block"><span class="copy-code">'+this.copyBtnText+"</span><pre>").replace(/<\/pre>/g,"</pre></div>")),this.localHtml=o,this.addCopyListener(),this.addImageClickListener()},30)},addCopyListener(){setTimeout(()=>{const t=document.querySelectorAll(".code-block .copy-code");this.btns=t;for(let o=0,n=t.length;o<n;o++)t[o].onclick=()=>{const i=t[o].parentNode.querySelectorAll("pre")[0].innerText,l=document.createElement("input");l.setAttribute("value",i),document.body.appendChild(l),l.select(),document.execCommand("copy"),document.body.removeChild(l),this.$emit("on-copy",i)}},600)},addImageClickListener(){if(this.imgs.length>0)for(let t=0,o=this.imgs.length;t<o;t++)this.imgs[t].onclick=null;setTimeout(()=>{this.imgs=this.$refs[this.currRefID].querySelectorAll("img");for(let t=0,o=this.imgs.length;t<o;t++)this.imgs[t].onclick=()=>{const n=this.imgs[t].getAttribute("src");this.previewImage(n)}},600)},previewImage(t){const o=new Image;o.src=t,o.onload=()=>{const n=o.naturalWidth;o.naturalHeight/n>1.4?this.previewImgMode="horizontal":this.previewImgMode="vertical",this.previewImgSrc=t,this.previewImgModal=!0}}}},eh=["innerHTML"],th=["src"];function oh(t,o,n,i,l,a){return e.openBlock(),e.createElementBlock("div",{class:"cv-markdown-preview",ref:n.currRefID},[t.$slots.default?e.renderSlot(t.$slots,"default",{key:0},()=>[e.createTextVNode(e.toDisplayString(l.localHtml),1)],!0):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(`markdown-preview ${"markdown-theme-"+n.theme}`),innerHTML:l.localHtml},null,10,eh),e.createElementVNode("div",{class:e.normalizeClass(["preview-img",l.previewImgModal?"active":""])},[e.createElementVNode("span",{class:"close icon-close iconfont",onClick:o[0]||(o[0]=s=>l.previewImgModal=!1)}),e.createElementVNode("img",{src:l.previewImgSrc,class:e.normalizeClass([l.previewImgMode]),alt:""},null,10,th)],2)],512)}const vt=p(Xu,[["render",oh],["__scopeId","data-v-3f36c1bf"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/markdown-show.vue"]]),nh={name:"EditorSlideUpload",props:{color:{type:String,default:"#1890ff"},accept:{type:[String],default:"image/jpeg,image/gif,image/png"},upName:{type:[String],default:""},upAction:{type:[String],default:""},upResponseFn:{type:[Function],default:()=>{}},upHeaders:{type:[Object],default:()=>{}},upData:{type:[Object],default:()=>{}}},data(){return{dialogVisible:!1,listObj:{},fileList:[],diyUpList:new FormData}},methods:{checkAllSuccess(){return Object.keys(this.listObj).every(t=>this.listObj[t].hasSuccess)},handleSubmit(){const t=Object.keys(this.listObj).map(o=>this.listObj[o]);if(!this.checkAllSuccess()){this.$message("请等待所有图片上传成功。如果出现网络问题,请刷新页面并重新上传!");return}this.$emit("successCBK",t),this.listObj={},this.fileList=[],this.dialogVisible=!1},handleSuccess(t,o){const n=o.uid,i=Object.keys(this.listObj);for(let l=0,a=i.length;l<a;l++)if(this.listObj[i[l]].uid===n){this.upResponseFn&&typeof this.upResponseFn=="function"?this.listObj[i[l]].url=this.upResponseFn(t):this.listObj[i[l]].url=t.files.file||"",this.listObj[i[l]].hasSuccess=!0;return}},handleRemove(t){const o=t.uid,n=Object.keys(this.listObj);for(let i=0,l=n.length;i<l;i++)if(this.listObj[n[i]].uid===o){delete this.listObj[n[i]];return}},beforeUpload(t){const o=this,n=window.URL||window.webkitURL,i=t.uid;return this.listObj[i]={},new Promise((l,a)=>{const s=new Image;s.src=n.createObjectURL(t),s.onload=function(){o.listObj[i]={hasSuccess:!1,uid:t.uid,width:this.width,height:this.height}},l(!0)})}}},lh={class:"cv-editor-upload-container"};function ah(t,o,n,i,l,a){const s=e.resolveComponent("Upload"),r=e.resolveComponent("el-icon"),d=e.resolveComponent("el-button"),c=e.resolveComponent("el-upload"),u=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",lh,[e.createVNode(d,{style:e.normalizeStyle({background:n.color,borderColor:n.color,fontSize:"16px"}),type:"primary",onClick:o[0]||(o[0]=h=>l.dialogVisible=!0)},{default:e.withCtx(()=>[e.createVNode(r,{style:{"margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(s)]),_:1}),e.createTextVNode(" 上传 ")]),_:1},8,["style"]),e.createVNode(u,{visible:l.dialogVisible},{default:e.withCtx(()=>[e.createVNode(c,e.mergeProps({class:"editor-slide-upload"},{action:n.upAction,headers:n.upHeaders,data:n.upData,name:n.upName,multiple:!0,showFileList:!0,listType:"picture-card",autoUpload:!0},{"file-list":l.fileList,"on-remove":a.handleRemove,"on-success":a.handleSuccess,"before-upload":a.beforeUpload}),{default:e.withCtx(()=>[e.createVNode(d,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("点击上传")]),_:1})]),_:1},16,["file-list","on-remove","on-success","before-upload"]),e.createVNode(d,{onClick:o[1]||(o[1]=h=>l.dialogVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(d,{type:"primary",onClick:a.handleSubmit},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:1},8,["onClick"])]),_:1},8,["visible"])])}const ih=p(nh,[["render",ah],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/Tinymce/EditorImage.vue"]]),sh=["advlist","anchor","autolink","autosave","code","codesample","directionality","emoticons","fullscreen","image","insertdatetime","link","lists","media","nonbreaking","pagebreak","preview","save","searchreplace","table","visualblocks","visualchars","wordcount"],rh=["hr blockquote anchor pagebreak insertdatetime table emoticons | searchreplace preview code codesample | fullscreen | link media image ","inserttemplate undo redo | styles | removeformat subscript superscript forecolor backcolor bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist indent"];let F=[];function ch(){return window.tinymce}const dh=(t,o)=>{const n=document.getElementById(t),i=o||function(){};if(!n){const s=document.createElement("script");s.src=t,s.id=t,document.body.appendChild(s),F.push(i),("onload"in s?l:a)(s)}n&&i&&(ch()?i(null,n):F.push(i));function l(s){s.onload=function(){this.onerror=this.onload=null;for(const r of F)r(null,s);F=null},s.onerror=function(){this.onerror=this.onload=null,i(new Error("Failed to load "+t),s)}}function a(s){s.onreadystatechange=function(){if(!(this.readyState!=="complete"&&this.readyState!=="loaded")){this.onreadystatechange=null;for(const r of F)r(null,s);F=null}}}},uh="https://10ui.cn/tinymce/@6.6.2/tinymce.min.js",hh={inheritAttrs:!1,name:"cvEditorTinymce",components:{EditorSlideUpload:ih},props:{value:{type:String,default:""},id:{type:String,default:function(){return"vue-tinymce-"+ +new Date+((Math.random()*1e3).toFixed(0)+"")}},toolbar:{type:Array,required:!1,default(){return[]}},menubar:{type:String,default:"file edit insert view format table"},height:{type:[Number,String],required:!1,default:360},width:{type:[Number,String],required:!1,default:"100%"},uploadAttr:{type:[Object],default:()=>({})}},data(){return{hasChange:!1,hasInit:!1,quillEditorId:this.id,fullscreen:!1,languageTypeList:{en:"en",zh:"zh_CN",es:"es_MX",ja:"ja"}}},computed:{containerWidth(){const t=this.width;return/^[\d]+(\.[\d]+)?$/.test(t)?`${t}px`:t}},watch:{value(t){!this.hasChange&&this.hasInit&&this.$nextTick(()=>window.tinymce.get(this.quillEditorId).setContent(t||""))}},mounted(){this.initLoad()},activated(){window.tinymce&&this.initTinymce()},deactivated(){this.destroyTinymce()},destroyed(){this.destroyTinymce()},methods:{initLoad(){dh(uh,t=>{if(t){this.$message.error(t.message);return}this.initTinymce()})},initTinymce(){const t=this;window.tinymce.init({selector:`#${this.quillEditorId}`,language:this.languageTypeList.zh,height:this.height,body_class:"panel-body ",object_resizing:!1,toolbar:this.toolbar.length>0?this.toolbar:rh,menubar:this.menubar,plugins:sh,end_container_on_empty_block:!0,powerpaste_word_import:"clean",code_dialog_height:450,code_dialog_width:1e3,advlist_bullet_styles:"square",advlist_number_styles:"default",editimage_cors_hosts:["www.tinymce.com","codepen.io"],link_default_target:"_blank",link_title:!1,nonbreaking_force_tab:!0,init_instance_callback:o=>{t.value&&o.setContent(t.value),t.hasInit=!0,o.on("NodeChange Change KeyUp SetContent",()=>{this.hasChange=!0,this.$emit("input",o.getContent())})},setup(o){o.on("FullscreenStateChanged",n=>{t.fullscreen=n.state})},convert_urls:!1,images_upload_handler(o,n,i,l){l(0),new FormData}})},destroyTinymce(){const t=window.tinymce.get(this.quillEditorId);this.fullscreen&&t.execCommand("mceFullScreen"),t&&t.destroy()},setContent(t){window.tinymce.get(this.quillEditorId).setContent(t)},getContent(){window.tinymce.get(this.quillEditorId).getContent()},imageSuccessCBK(t){t.forEach(o=>window.tinymce.get(this.quillEditorId).insertContent(`<img class="wscnph" src="${o.url}" >`))}}},ph=["id"],mh={class:"editor-custom-btn-container"};function fh(t,o,n,i,l,a){const s=e.resolveComponent("EditorSlideUpload");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["cv-editor-tinymce tinymce-container",{fullscreen:l.fullscreen}]),style:e.normalizeStyle({width:a.containerWidth})},[e.createElementVNode("textarea",{id:l.quillEditorId,class:"tinymce-textarea"},null,8,ph),e.createElementVNode("div",mh,[e.createVNode(s,e.mergeProps({color:"#1890ff",class:"editor-upload-btn",onSuccessCBK:a.imageSuccessCBK},n.uploadAttr),null,16,["onSuccessCBK"])])],6)}const _t=p(hh,[["render",fh],["__scopeId","data-v-c4f0a714"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/tinymce.vue"]]);mt.install=function(t){t.component(mt.name,mt)};ft.install=function(t){t.component(ft.name,ft)};gt.install=function(t){t.component(gt.name,gt)};vt.install=function(t){t.component(vt.name,vt)};_t.install=function(t){t.component(_t.name,_t)};function Ot(t){return Object.prototype.toString.call(t)==="[object Object]"}function gh(t){return Array.isArray(t)}function L(t,...o){return o.reduce((n,i)=>Object.keys(i).reduce((l,a)=>{const s=i[a];return Ot(s)?l[a]=L(l[a]?l[a]:{},s):gh(s)?l[a]=s.map((r,d)=>{if(Ot(r)){const c=l[a]?l[a]:[];return L(c[d]?c[d]:{},r)}else return r}):l[a]=s,l},n),t)}function Vt(t){return{...{text:"按钮",clickFn:null,type:"default",isHide:!1,order:2},...t}}const R=e.ref(!1),St=e.ref({});class vh{constructor(o,n){this.WinVue=o,this.vmCompObj=null,this.vmComponent=null,this.vmApp=null,this.dialogObj=null,this.boxOptions=L({isConfirm:!1,width:"40%",title:"默认标题",destroyOnClose:!0},n.diyOpts),St.value=this.boxOptions,this.bodyComponent=n.component||"",this.bodyOptions=L({},n.props),this.bodyFunc=L({},n.onFunc);for(const i in this.bodyFunc)if(this.bodyFunc.hasOwnProperty(i)&&!i.startsWith("on")){const l="on"+i.charAt(0).toUpperCase()+i.slice(1);this.bodyFunc[l]=this.bodyFunc[i],delete this.bodyFunc[i]}this.defaultFunc={onOK:()=>{this.close()},onCancel:()=>{this.close()}},this._initVm()}_initVm(){var o=this;const n={data(){return{}},methods:{clearVm(){o.vmApp&&o.close()}},mounted(){},unmounted(){document.body.removeChild(o.vmTargetElement)},render(){const a=e.createVNode(o.bodyComponent,{...o.bodyOptions,ref:"inner",onSetTitle(h){St.value.title=h},onClose:this.clearVm,...o.bodyFunc},{default:()=>""});let s={ok:Vt({text:"确定",type:"primary",order:0}),cancel:Vt({text:"取消",order:1})};Object.entries(s).forEach(([h,m])=>{if(["ok","cancel"].includes(h)){const f=h==="ok"?o.defaultFunc.onOK:o.defaultFunc.onCancel;m.clickFn=m.clickFn||f}else s[h]=Vt(m)});const d=Object.values(s).filter(h=>!h.isHide);e.createVNode("div",{},d.map(h=>e.createVNode(g.ElButton,{type:h.type,onClick:h.clickFn},h.text)));const c=s.cancel.clickFn;return e.createVNode(g.ElDialog,{...St.value,vModel:R.value,modelValue:R.value,beforeClose:()=>{o.boxOptions.isConfirm?g.ElMessageBox.confirm("确认关闭?","提示").then(h=>{c()}).catch(h=>{}):c()},onClosed2(h){this.clearVm()},closed:this.clearVm,onClosed:this.clearVm},{default:()=>a})}};this.vmComponent=n;const i=document.createElement("div");document.body.appendChild(i),this.vmTargetElement=i;const l=e.createVNode(n);l.appContext=this.WinVue._context,e.render(l,this.vmTargetElement),this.vmApp=l}close(){R.value=!1,e.render(null,this.vmTargetElement)}show(){R.value=!0}getInner(){return this.vmCompObj.$refs.inner}}function Nt(t){return{...{text:"按钮",clickFn:null,type:"default",isHide:!1,order:2},...t}}const M=e.ref(!1),Bt=e.ref({});class _h{constructor(o,n){this.WinVue=o,this.vmCompObj=null,this.vmComponent=null,this.vmApp=null,this.dialogObj=null,this.boxOptions=L({isConfirm:!0,width:"40%",title:"默认标题",destroyOnClose:!0},n.diyOpts),Bt.value=this.boxOptions,this.bodyComponent=n.component||"",this.bodyOptions=L({},n.props),this.bodyFunc=L({},n.onFunc);for(const i in this.bodyFunc)if(this.bodyFunc.hasOwnProperty(i)&&!i.startsWith("on")){const l="on"+i.charAt(0).toUpperCase()+i.slice(1);this.bodyFunc[l]=this.bodyFunc[i],delete this.bodyFunc[i]}this.defaultFunc={onOK:()=>{this.close()},onCancel:()=>{this.close()}},this._initVm()}_initVm(){var o=this;const n={data(){return{}},methods:{clearVm(){o.vmApp&&o.close()}},mounted(){},unmounted(){document.body.removeChild(o.vmTargetElement)},render(){const a=e.createVNode(o.bodyComponent,{...o.bodyOptions,ref:"inner",onSetTitle(h){Bt.value.title=h},onClose:this.clearVm,...o.bodyFunc},{default:()=>""});let s={ok:Nt({text:"确定",type:"primary",order:0}),cancel:Nt({text:"取消",order:1})};Object.entries(s).forEach(([h,m])=>{if(["ok","cancel"].includes(h)){const f=h==="ok"?o.defaultFunc.onOK:o.defaultFunc.onCancel;m.clickFn=m.clickFn||f}else s[h]=Nt(m)});const d=Object.values(s).filter(h=>!h.isHide);e.createVNode("div",{},d.map(h=>e.createVNode(g.ElButton,{type:h.type,onClick:h.clickFn},h.text)));const c=s.cancel.clickFn;return e.createVNode(g.ElDrawer,{...Bt.value,vModel:M.value,modelValue:M.value,beforeClose:()=>{o.boxOptions.isConfirm?g.ElMessageBox.confirm("确认关闭?","提示").then(h=>{c()}).catch(h=>{}):c()},onClosed2(h){this.clearVm()},closed:this.clearVm,onClosed:this.clearVm},{default:()=>a})}};this.vmComponent=n;const i=document.createElement("div");document.body.appendChild(i),this.vmTargetElement=i;const l=e.createVNode(n);l.appContext=this.WinVue._context,e.render(l,this.vmTargetElement),this.vmApp=l}close(){M.value=!1,e.render(null,this.vmTargetElement)}show(){M.value=!0}getInner(){return this.vmCompObj.$refs.inner}}function yh(t,o=null,n={},i={},l={}){const a=new vh(t,{component:o,diyOpts:n,props:i,onFunc:l,onOK(){a.getInner(),a.close()},onCancel(){a.close()}});return a}function Ch(t,o="",n={},i={},l=null){const a=new _h(t,{component:o,diyOpts:{...n},props:i,onFunc:l,onOK(){a.getInner(),a.close()},onCancel(){a.close()}});return a}var Jt=[H,q,W,K,G,Z,Q,Y,J,Fo,X,ee,te,oe,ne,le,se,re,ae,ie,ce,de,ue,fe,pe,me,ye,ge,ve,_e,ke,be,Ve,Se,Ne,Be,Ee,xe,$e,Te,De,Le,Fe,ze,je,Oe,Me,He,Ie,Ue,Re,We,qe,Ke,ot,nt,lt,at,it,st,Ge,Ze,Qe,Ye,Je,Xe,et,tt,Pe,Ae,Ce,we,rt,ct,dt,ut,ht,pt,mt,ft,gt,_t,vt];const $t=function(t,o={}){Jt.forEach(n=>{t.component(n.name,n)}),t.config.globalProperties.$cvUiParams={...o},t.config.globalProperties.$cvDialogRender=function(){return yh(t,...arguments)},t.config.globalProperties.$cvCopy=ul,t.config.globalProperties.$cvDrawerRender=function(){return Ch(t,...arguments)},t.config.globalProperties.CDN_URL_UI="https://10ui.cn/"};typeof window<"u"&&window._vueApp_&&$t(window._vueApp_);const wh={version:"0.3.1",install:$t};exports.components=Jt;exports.default=wh;exports.install=$t;
53
+ `,this.insertContent(i.end,e),this.setCursor(i.start+e.length,i.start+e.length)},insertCode(){const i=this.getLastPoint(),e=i.content||!1;let t="";e?(t="\n```text\n"+e+"\n```\n",this.deleteContent(i.start,i.end),this.insertContent(i.start,t)):(t="\n```text\n\n```\n",this.insertContent(i.start,t)),this.setCursor(i.start+t.length,i.start+t.length)},actionImportFile(i){const e=i.target.files[0];if(!e)return;const t=new FileReader;t.readAsText(e,{encoding:"utf-8"}),t.onload=()=>{this.currentValue=t.result},t.onerror=n=>{}},actionExportFile(){o7(this.currentValue,this.lastExpFileName+".md")}}},c7={tabSize:4,styleActiveLine:!0,lineNumbers:!0,lineWrapping:!1,matchBrackets:!0,autoCloseBrackets:!0,autoRefresh:!0,line:!0,mode:"javascript",theme:"default",cursorHeight:.8,lineWiseCopyCut:!0,height:"500px",fontSize:"14px",disabled:!1,indentWithTab:!0,tabSize:4,autofocus:!0,placeholder:"input...",backgroundColor:"white",language:"markdown",theme:"default",phrases:"en-us"},h7={name:"cvEditorMarkdown",mixins:[r7,a7],components:{Codemirror:s7},emits:["update:config","update:modelValue"],props:{modelValue:{type:[String,Number],default:""},config:{type:[Object],default:()=>({})},theme:{type:String,default:"light"},width:{type:[Number,String],default:"auto"},height:{type:[Number,String],default:600},toolbars:{type:Object,default(){return{}}},bordered:{type:Boolean,default:!0},autoSave:{type:Boolean,default:!1},interval:{type:Number,default:1e4}},data(){return{editorViewInst:null,editorStateInst:null,editorInstance:null,lastPos:"",lastInsert:"",scrollSide:"",editorScrollHeight:0,themes:{oneDark:eQ},languages:{javascript:pm(),html:Rm(),json:i4(),markdown:M4()},localConfig:c7,currentValue:l.shallowRef("console.log('Hello World')"),view:l.shallowRef(),germanPhrases:{"Control character":"Steuerzeichen","Selection deleted":"Auswahl gelöscht","Folded lines":"Eingeklappte Zeilen","Unfolded lines":"Ausgeklappte Zeilen",to:"bis","folded code":"eingeklappter Code",unfold:"ausklappen","Fold line":"Zeile einklappen","Unfold line":"Zeile ausklappen","Go to line":"Springe zu Zeile",go:"OK",Find:"Suchen",Replace:"Ersetzen",next:"nächste",previous:"vorherige",all:"alle","match case":"groß/klein beachten","by word":"ganze Wörter",replace:"ersetzen","replace all":"alle ersetzen",close:"schließen","current match":"aktueller Treffer","replaced $ matches":"$ Treffer ersetzt","replaced match on line $":"Treffer on Zeile $ ersetzt","on line":"auf Zeile",Completions:"Vervollständigungen",Diagnostics:"Diagnosen","No diagnostics":"Keine Diagnosen"}}},watch:{currentValue(i){this.$emit("update:modelValue",i)},localConfig(i){this.$emit("update:config",i)},modelValue(i){this.currentValue!=i&&(this.currentValue=i)}},computed:{markdownRefID(){return this.editorRefID+"wrap"},previewRefID(){return this.editorRefID+"preview"},editorBind(){return{}},heightNum(){let i=""+this.height;return i.includes("px")?i.replace("px"):this.height},heightPx(){let i=""+this.height;return i.includes("px")?i:i+"px"},calcWidth(){return""+this.width,this.width.includes("px")?this.width:this.width+"px"},extensions(){const i=[];return i.push(this.languages[this.localConfig.language]),this.themes[this.localConfig.theme]&&i.push(this.themes[this.localConfig.theme]),i}},created(){this.currentValue=this.modelValue},mounted(){},destroyed(){},methods:{consoleLog(i,e){},handleReady(i){const{container:e,state:t,view:n}=i;this.editorStateInst=t,this.editorViewInst=n},createEditor(){this.editorInstance.on("keydown",(i,e)=>{e.keyCode===83?(e.metaKey||e.ctrlKey)&&(e.preventDefault(),this.handleSave()):e.keyCode===13?this.listerenKeyupEnter(e):e.keyCode===8&&this.listerenDelete(i)})},setCursor(i,e){this.editorViewInst.dispatch({selection:{anchor:i,head:e}}),this.editorViewInst.focus()},getSelectionText(){const i=this.editorViewState.selection.main.head,e=this.editorViewState.doc.lineAt(i).number,n=this.editorViewState.doc.line(e).text.trim();return n===""?!1:n},deleteContent(i,e){this.editorViewInst.dispatch({changes:{from:i,to:e}})},getLastPoint(){const i=this.editorViewInst.state.selection.main.head,e=this.editorViewInst.state.doc.lineAt(i).number,t=this.editorViewInst.state.doc.line(e).from,n=this.editorViewInst.state.doc.line(e).to,s=this.editorViewInst.state.doc.line(e).text;return this.lastPos||{line:e,start:t,end:n,content:s}},insertContent(i,e){this.getLastPoint(),this.editorViewInst.dispatch({changes:{from:i,insert:e}})},listerenKeyupEnter(i){this.lastInsert&&(["-","- [ ]","- [x]"].includes(this.lastInsert.trim())?(i.preventDefault(),this.insertContent(`
54
+ `+this.lastInsert)):/^\d+\.$/.test(this.lastInsert.trim())&&(i.preventDefault(),this.insertContent(`
55
+ `+(parseInt(this.lastInsert,0)+1)+". ")))},listerenDelete(){setTimeout(()=>{this.editorInstance.isClean()||this.editorInstance.getValue().split(`
56
+ `).pop()===""&&(this.lastInsert="")},20)},mousescrollSide(i){this.scrollSide=i},getScrollData(){const i=this.$refs[this.editorRefID].$el||this.$refs[this.editorRefID],e=i.scrollHeight,t=i.scrollTop,n=this.$refs[this.previewRefID].$el||this.$refs[this.previewRefID],s=n.offsetHeight,r=n.scrollHeight,o=n.scrollTop||0;return{markdownRef:i,markdownScrollHeight:e,markdownScrollTop:t,previewRef:n,contentHeight:s,previewScrollHeight:r,previewScrollTop:o}},markdownScroll(i){if(!this.scrollSide)return;let e=0,t=0;if(i.doc?(e=i.doc.scrollTop,t=i.doc.height):i.target&&(e=i.target.scrollTop,t=i.target.offsetHeight),this.scrollSide==="left"){const{markdownRef:n,markdownScrollHeight:s,markdownScrollTop:r,previewRef:o,contentHeight:a,previewScrollHeight:c,previewScrollTop:h}=this.getScrollData();o.scrollTop=parseInt(e*(c-a)/(t-a),0)}},previewScroll(){if(this.scrollSide&&this.scrollSide==="right"){const{markdownRef:i,markdownScrollHeight:e,markdownScrollTop:t,previewRef:n,contentHeight:s,previewScrollHeight:r,previewScrollTop:o}=this.getScrollData(),a=parseInt(o*(this.editorScrollHeight-s)/(r-s),0)}},insertAfterText2(i){const e=this.$refs.textarea;let t;if(document.selection)e.focus(),t=document.selection.createRange(),t.text=i,e.focus();else if(e.selectionStart||parseInt(e.selectionStart,0)===0){const n=e.selectionStart,s=e.selectionEnd,r=e.scrollTop;e.value=e.value.substring(0,n)+i+e.value.substring(s,e.value.length),e.focus(),e.selectionStart=n+i.length,e.selectionEnd=n+i.length,e.scrollTop=r}else e.value+=i,e.focus();this.$set(this,"currentValue",e.value)},handleSave(){this.$emit("on-save",{theme:this.localConfig.theme||"",value:this.currentValue||""})},handlePaste(i,e){const{clipboardData:t={}}=e,{types:n=[],items:s}=t;let r=null;for(let o=0;o<n.length;o++)if(n[o]==="Files"){r=s[o];break}if(r){const o=r.getAsFile();/image/gi.test(o.type)&&(this.$emit("on-upload-image",o),e.preventDefault())}}}},u7={class:"cv-editor-toolbars"},d7={key:0,name:"撤销"},f7=l.createElementVNode("span",{class:"iconfont icon-redo"},null,-1),p7=[f7],m7={key:2,name:"粗体"},g7={key:3,name:"斜体"},O7={key:4,name:"删除线"},y7={key:5,name:"下划线"},b7={key:6,name:"标题1"},k7={key:7,name:"标题2"},w7={key:8,name:"标题3"},v7={key:9,name:"标题4"},S7={key:10,name:"标题5"},C7={key:11,name:"标题6"},x7={key:12,name:"分割线"},$7={key:13,name:"引用"},_7={key:14,name:"无序列表"},P7={key:15,name:"有序列表"},Q7={key:16,name:"未完成列表"},V7={key:17,name:"已完成列表"},T7={key:18,name:"链接"},E7={key:19,name:"图片"},Z7={key:20,name:"本地图片"},A7={key:21,name:"表格"},B7={key:22,name:"代码块"},D7={key:23,class:"shift-theme",name:"代码块主题"},N7=["onClick"],R7={name:"导入文件",class:"import-file"},I7={name:"保存到本地"},L7=l.createElementVNode("li",{class:"empty"},null,-1),M7={key:24,name:"全屏编辑"},X7={key:25,name:"分屏显示"},j7={key:26,name:"预览"},z7=l.createElementVNode("span",{class:"iconfont icon-clear"},null,-1),W7=[z7],Y7=l.createElementVNode("span",{class:"iconfont icon-save"},null,-1),F7=[Y7],q7=["name"],U7=["name"],G7=l.createElementVNode("span",{class:"iconfont icon-save"},null,-1),H7=[G7],K7=l.createElementVNode("span",{class:"iconfont icon-close"},null,-1),J7=[K7];function e6(i,e,t,n,s,r){const o=l.resolveComponent("codemirror"),a=l.resolveComponent("cv-markdown-show");return l.openBlock(),l.createElementBlock("div",{ref:r.markdownRefID,class:l.normalizeClass(["cv-markdown-wrap",`${t.bordered?"border":""}`]),style:l.normalizeStyle({width:r.calcWidth})},[l.withDirectives(l.createElementVNode("div",null,[l.createElementVNode("ul",u7,[l.createElementVNode("li",null,[l.renderSlot(i.$slots,"title")]),i.toolConfig.undo?(l.openBlock(),l.createElementBlock("li",d7,[l.createElementVNode("span",{class:"iconfont icon-undo",onClick:e[0]||(e[0]=(...c)=>i.actionUndo&&i.actionUndo(...c))})])):l.createCommentVNode("",!0),i.toolConfig.redo?(l.openBlock(),l.createElementBlock("li",{key:1,name:"重做",onClick:e[1]||(e[1]=(...c)=>i.actionRedo&&i.actionRedo(...c))},[...p7])):l.createCommentVNode("",!0),i.toolConfig.strong?(l.openBlock(),l.createElementBlock("li",m7,[l.createElementVNode("span",{onClick:e[2]||(e[2]=(...c)=>i.actionInsStrong&&i.actionInsStrong(...c)),class:"iconfont icon-bold"})])):l.createCommentVNode("",!0),i.toolConfig.italic?(l.openBlock(),l.createElementBlock("li",g7,[l.createElementVNode("span",{onClick:e[3]||(e[3]=(...c)=>i.actionInsItalic&&i.actionInsItalic(...c)),class:"iconfont icon-italic"})])):l.createCommentVNode("",!0),i.toolConfig.overline?(l.openBlock(),l.createElementBlock("li",O7,[l.createElementVNode("span",{onClick:e[4]||(e[4]=(...c)=>i.actionInsOverline&&i.actionInsOverline(...c)),class:"iconfont icon-overline"})])):l.createCommentVNode("",!0),i.toolConfig.overline?(l.openBlock(),l.createElementBlock("li",y7,[l.createElementVNode("span",{onClick:e[5]||(e[5]=(...c)=>i.actionInsUnderline&&i.actionInsUnderline(...c)),class:"iconfont icon-under-line"})])):l.createCommentVNode("",!0),i.toolConfig.h1?(l.openBlock(),l.createElementBlock("li",b7,[l.createElementVNode("span",{style:{"font-size":"16px"},onClick:e[6]||(e[6]=c=>i.actionInsTitle(1))},"h1")])):l.createCommentVNode("",!0),i.toolConfig.h2?(l.openBlock(),l.createElementBlock("li",k7,[l.createElementVNode("span",{style:{"font-size":"16px"},onClick:e[7]||(e[7]=c=>i.actionInsTitle(2))},"h2")])):l.createCommentVNode("",!0),i.toolConfig.h3?(l.openBlock(),l.createElementBlock("li",w7,[l.createElementVNode("span",{style:{"font-size":"16px"},onClick:e[8]||(e[8]=c=>i.actionInsTitle(3))},"h3")])):l.createCommentVNode("",!0),i.toolConfig.h4?(l.openBlock(),l.createElementBlock("li",v7,[l.createElementVNode("span",{style:{"font-size":"16px"},onClick:e[9]||(e[9]=c=>i.actionInsTitle(4))},"h4")])):l.createCommentVNode("",!0),i.toolConfig.h5?(l.openBlock(),l.createElementBlock("li",S7,[l.createElementVNode("span",{style:{"font-size":"16px"},onClick:e[10]||(e[10]=c=>i.actionInsTitle(5))},"h5")])):l.createCommentVNode("",!0),i.toolConfig.h6?(l.openBlock(),l.createElementBlock("li",C7,[l.createElementVNode("span",{style:{"font-size":"16px"},onClick:e[11]||(e[11]=c=>i.actionInsTitle(6))},"h6")])):l.createCommentVNode("",!0),i.toolConfig.hr?(l.openBlock(),l.createElementBlock("li",x7,[l.createElementVNode("span",{onClick:e[12]||(e[12]=(...c)=>i.actionInsLine&&i.actionInsLine(...c)),class:"iconfont icon-horizontal"})])):l.createCommentVNode("",!0),i.toolConfig.quote?(l.openBlock(),l.createElementBlock("li",$7,[l.createElementVNode("span",{style:{"font-size":"16px"},onClick:e[13]||(e[13]=(...c)=>i.actionInsQuote&&i.actionInsQuote(...c)),class:"iconfont icon-quote"})])):l.createCommentVNode("",!0),i.toolConfig.ul?(l.openBlock(),l.createElementBlock("li",_7,[l.createElementVNode("span",{onClick:e[14]||(e[14]=(...c)=>i.insertUl&&i.insertUl(...c)),class:"iconfont icon-ul"})])):l.createCommentVNode("",!0),i.toolConfig.ol?(l.openBlock(),l.createElementBlock("li",P7,[l.createElementVNode("span",{onClick:e[15]||(e[15]=(...c)=>i.insertOl&&i.insertOl(...c)),class:"iconfont icon-ol"})])):l.createCommentVNode("",!0),i.toolConfig.notChecked?(l.openBlock(),l.createElementBlock("li",Q7,[l.createElementVNode("span",{onClick:e[16]||(e[16]=(...c)=>i.insertNotFinished&&i.insertNotFinished(...c)),class:"iconfont icon-checked-false"})])):l.createCommentVNode("",!0),i.toolConfig.checked?(l.openBlock(),l.createElementBlock("li",V7,[l.createElementVNode("span",{onClick:e[17]||(e[17]=(...c)=>i.insertFinished&&i.insertFinished(...c)),class:"iconfont icon-checked"})])):l.createCommentVNode("",!0),i.toolConfig.link?(l.openBlock(),l.createElementBlock("li",T7,[l.createElementVNode("span",{onClick:e[18]||(e[18]=(...c)=>i.actionInsLink&&i.actionInsLink(...c)),class:"iconfont icon-link"})])):l.createCommentVNode("",!0),i.toolConfig.image?(l.openBlock(),l.createElementBlock("li",E7,[l.createElementVNode("span",{onClick:e[19]||(e[19]=(...c)=>i.actionInsImage&&i.actionInsImage(...c)),class:"iconfont icon-img"})])):l.createCommentVNode("",!0),i.toolConfig.uploadImage?(l.openBlock(),l.createElementBlock("li",Z7,[l.createElementVNode("span",{onClick:e[20]||(e[20]=(...c)=>i.chooseImage&&i.chooseImage(...c)),class:"iconfont icon-upload-img"})])):l.createCommentVNode("",!0),i.toolConfig.table?(l.openBlock(),l.createElementBlock("li",A7,[l.createElementVNode("span",{onClick:e[21]||(e[21]=(...c)=>i.actionInsTable&&i.actionInsTable(...c)),class:"iconfont icon-table"})])):l.createCommentVNode("",!0),i.toolConfig.code?(l.openBlock(),l.createElementBlock("li",B7,[l.createElementVNode("span",{onClick:e[22]||(e[22]=(...c)=>i.insertCode&&i.insertCode(...c)),class:"iconfont icon-code"})])):l.createCommentVNode("",!0),i.toolConfig.theme?(l.openBlock(),l.createElementBlock("li",D7,[l.createElementVNode("div",null,[l.createElementVNode("span",{class:"iconfont icon-theme",onClick:e[23]||(e[23]=c=>i.actionThemeDropdown=!i.actionThemeDropdown)}),l.createElementVNode("ul",{class:l.normalizeClass({active:i.actionThemeDropdown}),onMouseleave:e[24]||(e[24]=c=>i.actionThemeDropdown=!1)},[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(["default","oneDark"],c=>l.createElementVNode("li",{onClick:h=>i.actionThemesSet(c)},l.toDisplayString(c),9,N7)),64))],34)])])):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("li",R7,[l.createElementVNode("span",{class:"iconfont icon-daoru",onClick:e[25]||(e[25]=(...c)=>i.actionImportFile&&i.actionImportFile(...c))}),l.createElementVNode("input",{type:"file",onChange:e[26]||(e[26]=c=>i.actionImportFile(c)),accept:"text/markdown"},null,32)],512),[[l.vShow,i.toolConfig.importmd]]),l.withDirectives(l.createElementVNode("li",I7,[l.createElementVNode("span",{class:"iconfont icon-download",onClick:e[27]||(e[27]=(...c)=>i.actionExportFile&&i.actionExportFile(...c))})],512),[[l.vShow,i.toolConfig.exportmd]]),L7,i.toolConfig.split&&i.actionSplit?(l.openBlock(),l.createElementBlock("li",M7,[l.createElementVNode("span",{onClick:e[28]||(e[28]=c=>i.actionSplit=!1),class:"iconfont icon-md"})])):l.createCommentVNode("",!0),i.toolConfig.split&&!i.actionSplit?(l.openBlock(),l.createElementBlock("li",X7,[l.createElementVNode("span",{onClick:e[29]||(e[29]=c=>i.actionSplit=!0),class:"iconfont icon-group"})])):l.createCommentVNode("",!0),i.toolConfig.preview?(l.openBlock(),l.createElementBlock("li",j7,[l.createElementVNode("span",{onClick:e[30]||(e[30]=c=>i.actionPreview=!0),class:"iconfont icon-preview"})])):l.createCommentVNode("",!0),i.toolConfig.clear?(l.openBlock(),l.createElementBlock("li",{key:27,name:"清空",onClick:e[31]||(e[31]=c=>s.currentValue="")},[...W7])):l.createCommentVNode("",!0),i.toolConfig.save?(l.openBlock(),l.createElementBlock("li",{key:28,name:"保存",onClick:e[32]||(e[32]=(...c)=>r.handleSave&&r.handleSave(...c))},[...F7])):l.createCommentVNode("",!0),i.toolConfig.scrollSync?(l.openBlock(),l.createElementBlock("li",{key:29,name:i.actionScrollSync?"同步滚动:开":"同步滚动:关"},[l.withDirectives(l.createElementVNode("span",{onClick:e[33]||(e[33]=c=>i.actionScrollSync=!i.actionScrollSync),class:"iconfont icon-on"},null,512),[[l.vShow,i.actionScrollSync]]),l.withDirectives(l.createElementVNode("span",{onClick:e[34]||(e[34]=c=>i.actionScrollSync=!i.actionScrollSync),class:"iconfont icon-off"},null,512),[[l.vShow,!i.actionScrollSync]])],8,q7)):l.createCommentVNode("",!0),i.toolConfig.fullscreen?(l.openBlock(),l.createElementBlock("li",{key:30,name:i.actionFullscreen?"退出全屏":"全屏"},[l.withDirectives(l.createElementVNode("span",{onClick:e[35]||(e[35]=c=>i.actionFullscreenSet(!1)),class:"iconfont icon-quite"},null,512),[[l.vShow,i.actionFullscreen]]),l.withDirectives(l.createElementVNode("span",{onClick:e[36]||(e[36]=c=>i.actionFullscreenSet(!0)),class:"iconfont icon-fullscreen"},null,512),[[l.vShow,!i.actionFullscreen]])],8,U7)):l.createCommentVNode("",!0),i.toolConfig.copy?(l.openBlock(),l.createElementBlock("li",{key:31,name:"复制",onClick:e[37]||(e[37]=(...c)=>i.handleCopy&&i.handleCopy(...c))},[...H7])):l.createCommentVNode("",!0)]),l.createCommentVNode("",!0)],512),[[l.vShow,!i.actionPreview]]),l.withDirectives(l.createElementVNode("div",{class:"close-preview",onClick:e[52]||(e[52]=c=>i.actionPreview=!1)},[...J7],512),[[l.vShow,i.actionPreview]]),l.createElementVNode("div",{class:"markdown-content",style:l.normalizeStyle({background:i.actionPreview?"#fff":""})},[l.withDirectives(l.createVNode(o,{class:"codemirror",id:i.editorRefID,ref:i.editorRefID,autofocus:s.localConfig.autofocus,placeholder:s.localConfig.placeholder,indentWithTab:s.localConfig.indentWithTab,tabSize:s.localConfig.tabSize,disabled:s.localConfig.disabled,style:l.normalizeStyle({height:r.heightPx,backgroundColor:s.localConfig.backgroundColor}),extensions:r.extensions,phrases:s.localConfig.phrases==="en-us"?{}:s.germanPhrases,modelValue:s.currentValue,"onUpdate:modelValue":e[53]||(e[53]=c=>s.currentValue=c),onReady:r.handleReady,onChange:e[54]||(e[54]=c=>r.consoleLog("change",c)),onFocus:e[55]||(e[55]=c=>r.consoleLog("focus",c)),onBlur:e[56]||(e[56]=c=>r.consoleLog("blur",c)),onMouseenter:e[57]||(e[57]=c=>r.mousescrollSide("left"))},null,8,["id","autofocus","placeholder","indentWithTab","tabSize","disabled","style","extensions","phrases","modelValue","onReady"]),[[l.vShow,!i.actionPreview]]),l.withDirectives(l.createVNode(a,{ref:r.previewRefID,editorID:r.previewRefID,modelValue:s.currentValue,theme:t.theme,style:l.normalizeStyle([{flex:"1",height:"100%","border-left":"1px solid #dedede","overflow-y":"auto"},{height:r.heightPx}]),onScroll:r.previewScroll,onMouseenter:e[58]||(e[58]=c=>r.mousescrollSide("right"))},null,8,["editorID","modelValue","theme","style","onScroll"]),[[l.vShow,i.actionPreview?i.actionPreview:i.actionSplit]])],4)],6)}const co=x(h7,[["render",e6],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/markdown.vue"]]);function t6(i){if(typeof i=="function"&&(i={highlight:i}),!i||typeof i.highlight!="function")throw new Error("Must provide highlight function");return typeof i.langPrefix!="string"&&(i.langPrefix="language-"),{async:!!i.async,walkTokens(e){if(e.type!=="code")return;const t=i6(e);if(i.async)return Promise.resolve(i.highlight(e.text,t)).then(Td(e));const n=i.highlight(e.text,t);if(n instanceof Promise)throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");Td(e)(n)},renderer:{code(e,t,n){const s=(t||"").match(/\S*/)[0],r=s?` class="${i.langPrefix}${Zd(s)}"`:"";return e=e.replace(/\n$/,""),`<pre><code${r}>${n?e:Zd(e,!0)}
57
+ </code></pre>`}}}}function i6(i){return(i.lang||"").match(/\S*/)[0]}function Td(i){return e=>{typeof e=="string"&&e!==i.text&&(i.escaped=!0,i.text=e)}}const oO=/[&<>"']/,n6=new RegExp(oO.source,"g"),lO=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,s6=new RegExp(lO.source,"g"),r6={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ed=i=>r6[i];function Zd(i,e){if(e){if(oO.test(i))return i.replace(n6,Ed)}else if(lO.test(i))return i.replace(s6,Ed);return i}const o6=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;function rl(i){switch(i){case 9:case 32:return!0}return!1}function Ad(i){if(i>=8192&&i<=8202)return!0;switch(i){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Bd(i){return o6.test(i)}function Dd(i){switch(i){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function ct(i,e,t){this.type=i,this.tag=e,this.attrs=null,this.map=null,this.nesting=t,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}ct.prototype.attrIndex=function(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,s=t.length;n<s;n++)if(t[n][0]===e)return n;return-1};ct.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};ct.prototype.attrSet=function(e,t){const n=this.attrIndex(e),s=[e,t];n<0?this.attrPush(s):this.attrs[n]=s};ct.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n};ct.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};function l6(i,e,t){this.src=i,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=e}l6.prototype.Token=ct;function Zt(i,e,t,n){this.src=i,this.md=e,this.env=t,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const s=this.src;for(let r=0,o=0,a=0,c=0,h=s.length,u=!1;o<h;o++){const d=s.charCodeAt(o);if(!u)if(rl(d)){a++,d===9?c+=4-c%4:c++;continue}else u=!0;(d===10||o===h-1)&&(d!==10&&o++,this.bMarks.push(r),this.eMarks.push(o),this.tShift.push(a),this.sCount.push(c),this.bsCount.push(0),u=!1,a=0,c=0,r=o+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Zt.prototype.push=function(i,e,t){const n=new ct(i,e,t);return n.block=!0,t<0&&this.level--,n.level=this.level,t>0&&this.level++,this.tokens.push(n),n};Zt.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Zt.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Zt.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t;e++){const n=this.src.charCodeAt(e);if(!rl(n))break}return e};Zt.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!rl(this.src.charCodeAt(--e)))return e+1;return e};Zt.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e};Zt.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e};Zt.prototype.getLines=function(e,t,n,s){if(e>=t)return"";const r=new Array(t-e);for(let o=0,a=e;a<t;a++,o++){let c=0;const h=this.bMarks[a];let u=h,d;for(a+1<t||s?d=this.eMarks[a]+1:d=this.eMarks[a];u<d&&c<n;){const f=this.src.charCodeAt(u);if(rl(f))f===9?c+=4-(c+this.bsCount[a])%4:c++;else if(u-h<this.tShift[a])c++;else break;u++}c>n?r[o]=new Array(c-n+1).join(" ")+this.src.slice(u,d):r[o]=this.src.slice(u,d)}return r.join("")};Zt.prototype.Token=ct;const a6=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],c6="[a-zA-Z_:][a-zA-Z0-9:._-]*",h6="[^\"'=<>`\\x00-\\x20]+",u6="'[^']*'",d6='"[^"]*"',f6="(?:"+h6+"|"+u6+"|"+d6+")",p6="(?:\\s+"+c6+"(?:\\s*=\\s*"+f6+")?)",m6="<[A-Za-z][A-Za-z0-9\\-]*"+p6+"*\\s*\\/?>",g6="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",O6=new RegExp("^(?:"+m6+"|"+g6+")");new RegExp("^</?("+a6.join("|")+")(?=(\\s|/?>|$))","i"),new RegExp(O6.source+"\\s*$");function ol(i,e,t,n){this.src=i,this.env=t,this.md=e,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}ol.prototype.pushPending=function(){const i=new ct("text","",0);return i.content=this.pending,i.level=this.pendingLevel,this.tokens.push(i),this.pending="",i};ol.prototype.push=function(i,e,t){this.pending&&this.pushPending();const n=new ct(i,e,t);let s=null;return t<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,t>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],s={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(s),n};ol.prototype.scanDelims=function(i,e){let t,n,s=!0,r=!0;const o=this.posMax,a=this.src.charCodeAt(i),c=i>0?this.src.charCodeAt(i-1):32;let h=i;for(;h<o&&this.src.charCodeAt(h)===a;)h++;const u=h-i,d=h<o?this.src.charCodeAt(h):32,f=Dd(c)||Bd(String.fromCharCode(c)),p=Dd(d)||Bd(String.fromCharCode(d)),m=Ad(c),g=Ad(d);return g?s=!1:p&&(m||f||(s=!1)),m?r=!1:f&&(g||p||(r=!1)),e?(t=s,n=r):(t=s&&(!r||f),n=r&&(!s||p)),{can_open:t,can_close:n,length:u}};ol.prototype.Token=ct;const aO=[];for(let i=0;i<256;i++)aO.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(i){aO[i.charCodeAt(0)]=1});const y6={name:"cvMarkdownShow",props:{modelValue:{type:String,default:""},editorID:{type:[String],required:!1,default(){return""}},markedOptions:{type:Object,default:()=>({})},theme:{type:String,default:"light"},copyCode:{type:Boolean,default:!0},copyBtnText:{type:String,default:"复制代码"}},watch:{modelValue(i){this.localVal=i||"",this.translateMarkdown()}},computed:{editorRefID(){return this.editorID?this.editorID:this.$options.name+ +new Date+((Math.random()*1e3).toFixed(0)+"")}},data(){return{localVal:"",localHtml:"",previewImgModal:!1,previewImgSrc:"",previewImgMode:"",timeoutId:null,imgs:[]}},created(){this.localVal=this.modelValue||""},async mounted(){await ze(this.CDN_URL_UI+"/highlight.js/@11.8.0/highlight.min.js"),await Gl(this.CDN_URL_UI+"/highlight.js/@11.8.0/styles/default.min.css"),await ze(this.CDN_URL_UI+"/marked/@7.0.4/marked.min.js").then(()=>{setTimeout(()=>{hljs.highlightAll(),this.translateMarkdown()},100)})},methods:{translateMarkdown(){setTimeout(()=>{const i=new marked.Marked(t6({langPrefix:"hljs language-",highlight(t,n){const s=hljs.getLanguage(n)?n:"plaintext";return hljs.highlight(t,{language:s}).value}}));i.use({gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0});let e=i.parse(this.localVal,{sanitize:!1,...this.markedOptions});e=e.replace(/href="/gi,'target="_blank" href="'),this.copyCode&&(e=e.replace(/<pre>/g,'<div class="code-block"><span class="copy-code">'+this.copyBtnText+"</span><pre>").replace(/<\/pre>/g,"</pre></div>")),this.localHtml=e,this.addCopyListener(),this.addImageClickListener()},30)},addCopyListener(){setTimeout(()=>{const i=document.querySelectorAll(".code-block .copy-code");this.btns=i;for(let e=0,t=i.length;e<t;e++)i[e].onclick=()=>{const n=i[e].parentNode.querySelectorAll("pre")[0].innerText,s=document.createElement("input");s.setAttribute("value",n),document.body.appendChild(s),s.select(),document.execCommand("copy"),document.body.removeChild(s),this.$emit("on-copy",n)}},600)},addImageClickListener(){if(this.imgs.length>0)for(let i=0,e=this.imgs.length;i<e;i++)this.imgs[i].onclick=null;setTimeout(()=>{this.imgs=this.$refs[this.editorRefID].querySelectorAll("img");for(let i=0,e=this.imgs.length;i<e;i++)this.imgs[i].onclick=()=>{const t=this.imgs[i].getAttribute("src");this.previewImage(t)}},600)},previewImage(i){const e=new Image;e.src=i,e.onload=()=>{const t=e.naturalWidth;e.naturalHeight/t>1.4?this.previewImgMode="horizontal":this.previewImgMode="vertical",this.previewImgSrc=i,this.previewImgModal=!0}}}},b6=["id"],k6=["innerHTML"],w6=["src"];function v6(i,e,t,n,s,r){return l.openBlock(),l.createElementBlock("div",{class:"cv-markdown-preview",id:r.editorRefID,ref:r.editorRefID},[i.$slots.default?l.renderSlot(i.$slots,"default",{key:0},()=>[l.createTextVNode(l.toDisplayString(s.localHtml),1)]):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(`markdown-preview markdown-theme-base ${"markdown-theme-"+t.theme}`),innerHTML:s.localHtml},null,10,k6),l.createElementVNode("div",{class:l.normalizeClass(["preview-img",s.previewImgModal?"active":""])},[l.createElementVNode("span",{class:"close icon-close iconfont",onClick:e[0]||(e[0]=o=>s.previewImgModal=!1)}),l.createElementVNode("img",{src:s.previewImgSrc,class:l.normalizeClass([s.previewImgMode]),alt:""},null,10,w6)],2)],8,b6)}const ho=x(y6,[["render",v6],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/markdown-show.vue"]]),S6={name:"EditorSlideUpload",props:{color:{type:String,default:"#1890ff"},accept:{type:[String],default:"image/jpeg,image/gif,image/png"},upName:{type:[String],default:""},upAction:{type:[String],default:""},upResponseFn:{type:[Function],default:()=>{}},upHeaders:{type:[Object],default:()=>{}},upData:{type:[Object],default:()=>{}}},data(){return{dialogVisible:!1,listObj:{},fileList:[],diyUpList:new FormData}},methods:{checkAllSuccess(){return Object.keys(this.listObj).every(i=>this.listObj[i].hasSuccess)},handleSubmit(){const i=Object.keys(this.listObj).map(e=>this.listObj[e]);if(!this.checkAllSuccess()){this.$message("请等待所有图片上传成功。如果出现网络问题,请刷新页面并重新上传!");return}this.$emit("successCBK",i),this.listObj={},this.fileList=[],this.dialogVisible=!1},handleSuccess(i,e){const t=e.uid,n=Object.keys(this.listObj);for(let s=0,r=n.length;s<r;s++)if(this.listObj[n[s]].uid===t){this.upResponseFn&&typeof this.upResponseFn=="function"?this.listObj[n[s]].url=this.upResponseFn(i):this.listObj[n[s]].url=i.files.file||"",this.listObj[n[s]].hasSuccess=!0;return}},handleRemove(i){const e=i.uid,t=Object.keys(this.listObj);for(let n=0,s=t.length;n<s;n++)if(this.listObj[t[n]].uid===e){delete this.listObj[t[n]];return}},beforeUpload(i){const e=this,t=window.URL||window.webkitURL,n=i.uid;return this.listObj[n]={},new Promise((s,r)=>{const o=new Image;o.src=t.createObjectURL(i),o.onload=function(){e.listObj[n]={hasSuccess:!1,uid:i.uid,width:this.width,height:this.height}},s(!0)})}}},C6={class:"cv-editor-upload-container"};function x6(i,e,t,n,s,r){const o=l.resolveComponent("Upload"),a=l.resolveComponent("el-icon"),c=l.resolveComponent("el-button"),h=l.resolveComponent("el-upload"),u=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",C6,[l.createVNode(c,{style:l.normalizeStyle({background:t.color,borderColor:t.color,fontSize:"16px"}),type:"primary",onClick:e[0]||(e[0]=d=>s.dialogVisible=!0)},{default:l.withCtx(()=>[l.createVNode(a,{style:{"margin-right":"10px"}},{default:l.withCtx(()=>[l.createVNode(o)]),_:1}),l.createTextVNode(" 上传 ")]),_:1},8,["style"]),l.createVNode(u,{visible:s.dialogVisible},{default:l.withCtx(()=>[l.createVNode(h,l.mergeProps({class:"editor-slide-upload"},{action:t.upAction,headers:t.upHeaders,data:t.upData,name:t.upName,multiple:!0,showFileList:!0,listType:"picture-card",autoUpload:!0},{"file-list":s.fileList,"on-remove":r.handleRemove,"on-success":r.handleSuccess,"before-upload":r.beforeUpload}),{default:l.withCtx(()=>[l.createVNode(c,{type:"primary"},{default:l.withCtx(()=>[l.createTextVNode("点击上传")]),_:1})]),_:1},16,["file-list","on-remove","on-success","before-upload"]),l.createVNode(c,{onClick:e[1]||(e[1]=d=>s.dialogVisible=!1)},{default:l.withCtx(()=>[l.createTextVNode("取消")]),_:1}),l.createVNode(c,{type:"primary",onClick:r.handleSubmit},{default:l.withCtx(()=>[l.createTextVNode("确定")]),_:1},8,["onClick"])]),_:1},8,["visible"])])}const $6=x(S6,[["render",x6],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/Tinymce/EditorImage.vue"]]),_6=["advlist","anchor","autolink","autosave","code","codesample","directionality","emoticons","fullscreen","image","insertdatetime","link","lists","media","nonbreaking","pagebreak","preview","save","searchreplace","table","visualblocks","visualchars","wordcount"],P6=["hr blockquote anchor pagebreak insertdatetime table emoticons | searchreplace preview code codesample | fullscreen | link media image ","inserttemplate undo redo | styles | removeformat subscript superscript forecolor backcolor bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist indent"];let Oi=[];function Q6(){return window.tinymce}const V6=(i,e)=>{const t=document.getElementById(i),n=e||function(){};if(!t){const o=document.createElement("script");o.src=i,o.id=i,document.body.appendChild(o),Oi.push(n),("onload"in o?s:r)(o)}t&&n&&(Q6()?n(null,t):Oi.push(n));function s(o){o.onload=function(){this.onerror=this.onload=null;for(const a of Oi)a(null,o);Oi=null},o.onerror=function(){this.onerror=this.onload=null,n(new Error("Failed to load "+i),o)}}function r(o){o.onreadystatechange=function(){if(!(this.readyState!=="complete"&&this.readyState!=="loaded")){this.onreadystatechange=null;for(const a of Oi)a(null,o);Oi=null}}}},T6="https://10ui.cn/tinymce/@6.6.2/tinymce.min.js",E6={inheritAttrs:!1,name:"cvEditorTinymce",components:{EditorSlideUpload:$6},emits:["update:modelValue"],props:{modelValue:{type:String,default:""},id:{type:String,default:function(){return"vue-tinymce-"+ +new Date+((Math.random()*1e3).toFixed(0)+"")}},toolbar:{type:Array,required:!1,default(){return[]}},menubar:{type:String,default:"file edit insert view format table"},height:{type:[Number,String],required:!1,default:360},width:{type:[Number,String],required:!1,default:"100%"},uploadAttr:{type:[Object],default:()=>({})}},data(){return{localVal:"",editorID:this.id,fullscreen:!1,languageTypeList:{en:"en",zh:"zh_CN",es:"es_MX",ja:"ja"}}},computed:{containerWidth(){const i=this.width;return/^[\d]+(\.[\d]+)?$/.test(i)?`${i}px`:i}},watch:{modelValue(i){this.localVal!=i&&(this.localVal=i,window.tinymce.get(this.editorID).setContent(i||""))}},created(){this.localVal=this.modelValue},mounted(){this.initLoad()},activated(){window.tinymce&&this.initTinymce()},deactivated(){this.destroyTinymce()},destroyed(){this.destroyTinymce()},methods:{initLoad(){V6(T6,i=>{if(i){this.$message.error(i.message);return}this.initTinymce()})},initTinymce(){const i=this;window.tinymce.init({selector:`#${this.editorID}`,language:this.languageTypeList.zh,height:this.height,body_class:"panel-body ",object_resizing:!1,toolbar:this.toolbar.length>0?this.toolbar:P6,menubar:this.menubar,plugins:_6,end_container_on_empty_block:!0,powerpaste_word_import:"clean",code_dialog_height:450,code_dialog_width:1e3,advlist_bullet_styles:"square",advlist_number_styles:"default",editimage_cors_hosts:["www.tinymce.com","codepen.io"],link_default_target:"_blank",link_title:!1,nonbreaking_force_tab:!0,init_instance_callback:e=>{i.localVal&&e.setContent(i.localVal)},setup(e){e.on("FullscreenStateChanged",t=>{i.fullscreen=t.state}),e.on("input",t=>{i.localVal=e.getContent(),i.$emit("update:modelValue",i.localVal)})},convert_urls:!1,images_upload_handler(e,t,n,s){s(0),new FormData}})},destroyTinymce(){const i=window.tinymce.get(this.editorID);this.fullscreen&&i.execCommand("mceFullScreen"),i&&i.destroy()},setContent(i){window.tinymce.get(this.editorID).setContent(i)},getContent(){window.tinymce.get(this.editorID).getContent()},imageSuccessCBK(i){i.forEach(e=>window.tinymce.get(this.editorID).insertContent(`<img class="wscnph" src="${e.url}" >`))}}},Z6=["id"],A6={class:"editor-custom-btn-container"};function B6(i,e,t,n,s,r){const o=l.resolveComponent("EditorSlideUpload");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["cv-editor-tinymce tinymce-container",{fullscreen:s.fullscreen}]),style:l.normalizeStyle({width:r.containerWidth})},[l.createElementVNode("textarea",{id:s.editorID,class:"tinymce-textarea"},null,8,Z6),l.createElementVNode("div",A6,[l.createVNode(o,l.mergeProps({color:"#1890ff",class:"editor-upload-btn",onSuccessCBK:r.imageSuccessCBK},t.uploadAttr),null,16,["onSuccessCBK"])])],6)}const uo=x(E6,[["render",B6],["__scopeId","data-v-c4f0a714"],["__file","/Users/zhuanghuangwei/www_syky/cv-pc-ui/packages/editor/src/tinymce.vue"]]);qr.install=function(i){i.component(qr.name,qr)};Ur.install=function(i){i.component(Ur.name,Ur)};co.install=function(i){i.component(co.name,co)};ho.install=function(i){i.component(ho.name,ho)};uo.install=function(i){i.component(uo.name,uo)};function Nd(i){return Object.prototype.toString.call(i)==="[object Object]"}function D6(i){return Array.isArray(i)}function Wt(i,...e){return e.reduce((t,n)=>Object.keys(n).reduce((s,r)=>{const o=n[r];return Nd(o)?s[r]=Wt(s[r]?s[r]:{},o):D6(o)?s[r]=o.map((a,c)=>{if(Nd(a)){const h=s[r]?s[r]:[];return Wt(h[c]?h[c]:{},a)}else return a}):s[r]=o,s},t),i)}function Yl(i){return{...{text:"按钮",clickFn:null,type:"default",isHide:!1,order:2},...i}}const vs=l.ref(!1),Fl=l.ref({});class N6{constructor(e,t){this.WinVue=e,this.vmCompObj=null,this.vmComponent=null,this.vmApp=null,this.dialogObj=null,this.boxOptions=Wt({isConfirm:!1,width:"40%",title:"默认标题",destroyOnClose:!0},t.diyOpts),Fl.value=this.boxOptions,this.bodyComponent=t.component||"",this.bodyOptions=Wt({},t.props),this.bodyFunc=Wt({},t.onFunc);for(const n in this.bodyFunc)if(this.bodyFunc.hasOwnProperty(n)&&!n.startsWith("on")){const s="on"+n.charAt(0).toUpperCase()+n.slice(1);this.bodyFunc[s]=this.bodyFunc[n],delete this.bodyFunc[n]}this.defaultFunc={onOK:()=>{this.close()},onCancel:()=>{this.close()}},this._initVm()}_initVm(){var e=this;const t={data(){return{}},methods:{clearVm(){e.vmApp&&e.close()}},mounted(){},unmounted(){document.body.removeChild(e.vmTargetElement)},render(){const r=l.createVNode(e.bodyComponent,{...e.bodyOptions,ref:"inner",onSetTitle(d){Fl.value.title=d},onClose:this.clearVm,...e.bodyFunc},{default:()=>""});let o={ok:Yl({text:"确定",type:"primary",order:0}),cancel:Yl({text:"取消",order:1})};Object.entries(o).forEach(([d,f])=>{if(["ok","cancel"].includes(d)){const p=d==="ok"?e.defaultFunc.onOK:e.defaultFunc.onCancel;f.clickFn=f.clickFn||p}else o[d]=Yl(f)});const c=Object.values(o).filter(d=>!d.isHide);l.createVNode("div",{},c.map(d=>l.createVNode(T.ElButton,{type:d.type,onClick:d.clickFn},d.text)));const h=o.cancel.clickFn;return l.createVNode(T.ElDialog,{...Fl.value,vModel:vs.value,modelValue:vs.value,beforeClose:()=>{e.boxOptions.isConfirm?T.ElMessageBox.confirm("确认关闭?","提示").then(d=>{h()}).catch(d=>{}):h()},onClosed2(d){this.clearVm()},closed:this.clearVm,onClosed:this.clearVm},{default:()=>r})}};this.vmComponent=t;const n=document.createElement("div");document.body.appendChild(n),this.vmTargetElement=n;const s=l.createVNode(t);s.appContext=this.WinVue._context,l.render(s,this.vmTargetElement),this.vmApp=s}close(){vs.value=!1,l.render(null,this.vmTargetElement)}show(){vs.value=!0}getInner(){return this.vmCompObj.$refs.inner}}function ql(i){return{...{text:"按钮",clickFn:null,type:"default",isHide:!1,order:2},...i}}const Ss=l.ref(!1),Ul=l.ref({});class R6{constructor(e,t){this.WinVue=e,this.vmCompObj=null,this.vmComponent=null,this.vmApp=null,this.dialogObj=null,this.boxOptions=Wt({isConfirm:!0,width:"40%",title:"默认标题",destroyOnClose:!0},t.diyOpts),Ul.value=this.boxOptions,this.bodyComponent=t.component||"",this.bodyOptions=Wt({},t.props),this.bodyFunc=Wt({},t.onFunc);for(const n in this.bodyFunc)if(this.bodyFunc.hasOwnProperty(n)&&!n.startsWith("on")){const s="on"+n.charAt(0).toUpperCase()+n.slice(1);this.bodyFunc[s]=this.bodyFunc[n],delete this.bodyFunc[n]}this.defaultFunc={onOK:()=>{this.close()},onCancel:()=>{this.close()}},this._initVm()}_initVm(){var e=this;const t={data(){return{}},methods:{clearVm(){e.vmApp&&e.close()}},mounted(){},unmounted(){document.body.removeChild(e.vmTargetElement)},render(){const r=l.createVNode(e.bodyComponent,{...e.bodyOptions,ref:"inner",onSetTitle(d){Ul.value.title=d},onClose:this.clearVm,...e.bodyFunc},{default:()=>""});let o={ok:ql({text:"确定",type:"primary",order:0}),cancel:ql({text:"取消",order:1})};Object.entries(o).forEach(([d,f])=>{if(["ok","cancel"].includes(d)){const p=d==="ok"?e.defaultFunc.onOK:e.defaultFunc.onCancel;f.clickFn=f.clickFn||p}else o[d]=ql(f)});const c=Object.values(o).filter(d=>!d.isHide);l.createVNode("div",{},c.map(d=>l.createVNode(T.ElButton,{type:d.type,onClick:d.clickFn},d.text)));const h=o.cancel.clickFn;return l.createVNode(T.ElDrawer,{...Ul.value,vModel:Ss.value,modelValue:Ss.value,beforeClose:()=>{e.boxOptions.isConfirm?T.ElMessageBox.confirm("确认关闭?","提示").then(d=>{h()}).catch(d=>{}):h()},onClosed2(d){this.clearVm()},closed:this.clearVm,onClosed:this.clearVm},{default:()=>r})}};this.vmComponent=t;const n=document.createElement("div");document.body.appendChild(n),this.vmTargetElement=n;const s=l.createVNode(t);s.appContext=this.WinVue._context,l.render(s,this.vmTargetElement),this.vmApp=s}close(){Ss.value=!1,l.render(null,this.vmTargetElement)}show(){Ss.value=!0}getInner(){return this.vmCompObj.$refs.inner}}function I6(i,e=null,t={},n={},s={}){const r=new N6(i,{component:e,diyOpts:t,props:n,onFunc:s,onOK(){r.getInner(),r.close()},onCancel(){r.close()}});return r}function L6(i,e="",t={},n={},s=null){const r=new R6(i,{component:e,diyOpts:{...t},props:n,onFunc:s,onOK(){r.getInner(),r.close()},onCancel(){r.close()}});return r}var cO=[Cs,xs,$s,_s,Ps,Qs,Vs,Ts,Es,BO,Zs,As,Bs,Ds,Ns,Rs,Ms,Xs,Is,Ls,js,zs,Ws,Us,Fs,qs,Js,Gs,Hs,Ks,ir,nr,sr,rr,or,lr,ar,cr,hr,ur,dr,fr,mr,gr,Or,yr,Sr,Cr,pr,wr,vr,$r,xr,_r,Dr,Nr,Rr,Ir,Lr,Mr,Pr,Qr,Vr,Tr,Er,Zr,Ar,Br,br,kr,er,tr,Xr,jr,zr,Wr,Yr,Fr,qr,Ur,co,uo,ho];const qc=function(i,e={}){cO.forEach(t=>{i.component(t.name,t)}),i.config.globalProperties.$cvUiParams={...e},i.config.globalProperties.$cvDialogRender=function(){return I6(i,...arguments)},i.config.globalProperties.$cvCopy=h0,i.config.globalProperties.$cvDrawerRender=function(){return L6(i,...arguments)},i.config.globalProperties.CDN_URL_UI="https://10ui.cn/"};typeof window<"u"&&window._vueApp_&&qc(window._vueApp_);const M6={version:"0.3.1",install:qc};exports.components=cO;exports.default=M6;exports.install=qc;