@gct-paas/core-web 0.0.1-dev.25 → 0.0.1-dev.26

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.
@@ -8,7 +8,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8
8
  monaco.config({ paths: { vs: '...' } })
9
9
 
10
10
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
11
- `},ia=Xu(ec)(jl),tc={config:Zu},rc=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(a,u){return u(a)},o)}};function Il(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],Il(e[r],t[r]))}),ra(ra({},e),t)}var nc={type:"cancelation",msg:"operation is manually canceled"};function $r(e){var t=!1,r=new Promise(function(n,o){e.then(function(a){return t?o(nc):n(a)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var oc=Ku.create({config:Yu,isInitialized:!1,resolve:null,reject:null,monaco:null}),Vl=xu(oc,2),Gt=Vl[0],Sr=Vl[1];function ac(e){var t=tc.config(e),r=t.monaco,n=Ou(t,["monaco"]);Sr(function(o){return{config:Il(o.config,n),monaco:r}})}function ic(){var e=Gt(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(Sr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),$r(Br);if(window.monaco&&window.monaco.editor)return $l(window.monaco),e.resolve(window.monaco),$r(Br);rc(lc,uc)(cc)}return $r(Br)}function lc(e){return document.body.appendChild(e)}function sc(e){var t=document.createElement("script");return e&&(t.src=e),t}function uc(e){var t=Gt(function(n){var o=n.config,a=n.reject;return{config:o,reject:a}}),r=sc("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function cc(){var e=Gt(function(r){var n=r.config,o=r.resolve,a=r.reject;return{config:n,resolve:o,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){$l(r),e.resolve(r)},function(r){e.reject(r)})}function $l(e){Gt().monaco||Sr({monaco:e})}function dc(){return Gt(function(e){var t=e.monaco;return t})}var Br=new Promise(function(e,t){return Sr({resolve:e,reject:t})}),fc={config:ac,init:ic,__getMonacoInstance:dc};const Xn=i.defineComponent({name:"CodeEditor",props:{value:{type:String,default:""},config:{type:Object,default:()=>({})},language:{type:String,default:"typescript"}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("code-editor"),n=i.computed({get(){return e.value||""},set(u){t("update:value",u)}}),o=i.ref(null);let a=null;return i.onMounted(()=>{fc.init().then(u=>{o.value&&(a=u.editor.create(o.value,w.deepMerge({value:n.value,language:e.language,automaticLayout:!0,minimap:{enabled:!1}},e.config)),a.onDidBlurEditorText(()=>{n.value=a.getValue()}))})}),i.onUnmounted(()=>{a==null||a.dispose()}),{ns:r,el:o}},render(){return i.createVNode("div",{ref:"el",class:this.ns.b()},null)}}),Jn=i.defineComponent({name:"FlexItem",props:{layout:Object},setup(e){return{ns:w.useNamespace("flex-item"),getStyle:()=>{const n={};if(e.layout){const{order:o,alignSelf:a,flexBasis:u,flexGrow:l,flexShrink:s}=e.layout;o!=null&&(n.order=o),a!=null&&(n["align-self"]=a),u!=null&&(n["flex-basis"]=u),l!=null&&(n["flex-grow"]=l),s!=null&&(n["flex-shrink"]=s)}return n}}},render(){var e,t;return i.createVNode("div",{class:this.ns.b(),style:this.getStyle()},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}});function pc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const la=i.defineComponent({name:"FlexContainer",props:{layout:Object},setup(e){return{ns:w.useNamespace("flex-container"),getStyle:()=>{const o={};if(e.layout){const{alignContent:a,alignItems:u,flexDirection:l,flexWrap:s,justifyContent:d}=e.layout;a!=null&&(o.alignContent=a),u!=null&&(o.alignItems=u),l!=null&&(o.flexDirection=l),s!=null&&(o.flexWrap=s),d!=null&&(o.justifyContent=d)}return o},getItemStyle:o=>{const a={};if(o){const{width:u,height:l}=o;u!=null&&(a.width=u),l!=null&&(a.height=l)}return a}}},render(){var t,r;let e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return e.length>0&&(e=e[0].children||[]),i.createVNode("div",{class:this.ns.b(),style:this.getStyle()},[e.map(n=>{if(!n)return null;const o=n.props.model.flexItem;return i.createVNode(Jn,{layout:o,style:this.getItemStyle(n.props.model)},pc(n)?n:{default:()=>[n]})})])}});function sa(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const ua=i.defineComponent({name:"GridContainer",props:{layout:Object},setup(){return{ns:w.useNamespace("grid-container")}},render(){var n,o;let e;const t=this.layout||{};let r=((o=(n=this.$slots).default)==null?void 0:o.call(n))||[];return r.length>0&&(r=r[0].children||[]),i.createVNode(i.resolveComponent("a-row"),{class:this.ns.b(),wrap:!0,gutter:t.gutter},sa(e=r.map(a=>{if(!a)return null;const u=a.props.model.gridItem;return i.createVNode(i.resolveComponent("a-col"),{span:u?u.span??24:24,offset:u?u.offset??0:0},sa(a)?a:{default:()=>[a]})}))?e:{default:()=>[e]})}}),ca=i.defineComponent({name:"ViewContainer",props:{context:{type:Object},params:{type:Object},modal:{type:Object,required:!0}},setup(){return{ns:w.useNamespace("view-container")}},render(){var e,t;return i.createVNode("div",{class:this.ns.b()},[this.$slots.header?i.createVNode("div",{class:this.ns.b("header")},[this.$slots.header()]):null,i.createVNode("div",{class:this.ns.b("content")},[(t=(e=this.$slots).default)==null?void 0:t.call(e)]),this.$slots.footer?i.createVNode("div",{class:this.ns.b("footer")},[this.$slots.footer()]):null])}}),hc=i.defineComponent({name:"GctFormLengthUnit",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,required:!0}},emits:["update:value"],setup(e){const t=w.useNamespace("form-length-unit"),r=new w.LengthUnitEditorController(e.model),n=w.useGctFormValue();return{ns:t,c:r,val:n}},render(){return i.createVNode(i.resolveComponent("length-unit-editor"),i.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]}),null)}});class vc{constructor(){M(this,"component","gct-form-length-unit")}}const gc=w.widthEditorInstall(w.EditorTypeOld.LENGTH_UNIT,()=>new vc,hc),Bl=i.defineComponent({name:"GctFormColor",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String}},emits:["update:value"],setup(){const e=w.useNamespace("form-color"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return i.createVNode(i.resolveComponent("color-picker"),i.mergeProps({pureColor:this.val,"onUpdate:pureColor":e=>this.val=e,format:"rgba",shape:"circle","use-type":"pure","picker-type":"chrome",class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]},this.model.props||{}),null)}});class Fl{constructor(){M(this,"component","gct-form-color")}}const mc=w.widthEditorInstall(w.EditorType.COLOR,()=>new Fl,Bl),yc=w.widthEditorInstall(w.EditorTypeOld.COLOR,()=>new Fl,Bl);class bc{constructor(){M(this,"component","gct-form-check-switch")}}const Cc=i.defineComponent({name:"GctFormCheckSwitch",props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:Boolean,default:!1}},emits:["update:value"],setup(e){const t=w.useNamespace("gct-form-check-switch"),r=new w.EditorController(e.model),n=w.useGctFormValue();return{ns:t,c:r,val:n}},render(){return this.model.isSwitch?i.createVNode("div",{class:[this.ns.b(),this.ns.m("switch"),this.ns.is("readonly",this.model.readonly)]},[i.createVNode(i.resolveComponent("a-switch"),i.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)]):i.createVNode(i.resolveComponent("a-checkbox"),i.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{},{class:[this.ns.b(),this.ns.m("checkbox"),this.ns.is("readonly",this.model.readonly)]}),{default:()=>[this.model.label]})}}),wc=w.widthEditorInstall(w.EditorTypeOld.CHECK_SWITCH,()=>new bc,Cc);class Sc{constructor(){M(this,"component","gct-form-i18n")}}const Oc=i.defineComponent({name:"GctFormI18n",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-i18n"),r=w.useForm().item.i18nConfig,n=w.useGctFormValue(),o=i.computed({get:()=>r?r.value:"",set:a=>{r&&(r.value=a)}});return{ns:e,val:n,i18nConfigValue:o}},render(){return i.createVNode(i.resolveComponent("i18n-select-input"),i.mergeProps(this.model.props||{},{i18nText:this.val,"onUpdate:i18nText":e=>this.val=e,i18nConfig:this.i18nConfigValue,"onUpdate:i18nConfig":e=>this.i18nConfigValue=e,inputExtraProps:{showCount:!0,maxlength:32,disabled:this.c.state.disabled}}),null)}}),xc=w.widthEditorInstall(w.EditorTypeOld.I18N,()=>new Sc,Oc),Ec=i.defineComponent({name:"GctFormIconSelect",props:{value:{type:Object},model:{type:Object,required:!0}},emits:["update:value"],setup(e,{emit:t}){var s,d,c;const r=w.useNamespace("gct-form-icon-select"),n=i.ref(e.value),o=i.ref(((s=n.value)==null?void 0:s.icon)||e.model.defaultIcon),a=i.ref(((d=n.value)==null?void 0:d.color)||e.model.defaultColor),u=i.ref(((c=n.value)==null?void 0:c.background)||e.model.defaultBackground);i.watch(()=>e.value,f=>{n.value=f,f&&(o.value=f.icon,a.value=f.color)}),i.watch([o,a,u],()=>{n.value={icon:o.value,color:a.value},t("update:value",n.value)});const l=i.computed(()=>{if(e.model.size)return{"--box-size":e.model.size+"px"}});return{ns:r,icon:o,color:a,background:u,nextPickerStyle:l}},render(){return i.createVNode("div",{class:this.ns.b()},[i.createVNode(i.resolveComponent("icon-next-picker"),{value:this.icon,"onUpdate:value":e=>this.icon=e,color:this.color,"onUpdate:color":e=>this.color=e,background:"#f5f5f5",disabled:this.model.disabled,showColor:this.model.showColor!==!1,style:this.nextPickerStyle},null),this.model.label?i.createVNode("span",{class:this.ns.e("title")},[this.model.label]):null])}});let kc=class{constructor(){M(this,"component","gct-form-icon-select")}};const _c=w.widthEditorInstall(w.EditorTypeOld.ICON_SELECT,()=>new kc,Ec);class Ml{constructor(){M(this,"component","gct-form-number")}}const ql=i.defineComponent({name:"GctFormNumber",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-number"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return i.createVNode(i.resolveComponent("a-input-number"),i.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e,class:this.ns.b(),prefix:this.model.prefix,suffix:this.model.suffix,addonBefore:this.model.addonBefore,addonAfter:this.model.addonAfter,placeholder:this.model.placeholder,max:this.model.max,min:this.model.min,precision:this.model.precision},this.model.props||{}),null)}}),Nc=w.widthEditorInstall(w.EditorType.NUMBER,()=>new Ml,ql),Tc=w.widthEditorInstall(w.EditorTypeOld.NUMBER,()=>new Ml,ql);class Ac{constructor(){M(this,"component","gct-form-picker")}}const Pc=i.defineComponent({name:"GctFormPicker",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("gct-form-picker"),n=i.computed({get(){return e.model.nameField?e.c.data[e.model.nameField]:""},set(l){e.model.nameField&&(e.c.data[e.model.nameField]=l)}}),o=i.computed({get:()=>!e.c.state.options.find(s=>s.value===e.value)&&n.value?n.value:e.value,set:l=>{typeof l=="string"&&(l=l.trim()),!(typeof l!="object"&&e.value==l)&&t("update:value",l)}}),a=()=>e.c.loadDictionary();return o.value!=null&&e.c.loadDictionary(),{ns:r,val:o,nameVal:n,loadOptions:a,onChange:(l,s)=>{n.value=s.label}}},render(){return i.createVNode(i.resolveComponent("a-select"),i.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),disabled:this.c.state.disabled,loading:this.c.state.loading,options:this.c.state.options,placeholder:this.model.placeholder,onDropdownVisibleChange:this.loadOptions,onChange:this.onChange}),null)}}),Rc=w.widthEditorInstall(w.EditorTypeOld.PICKER,()=>new Ac,Pc);class jc{constructor(){M(this,"component","gct-form-select")}}const Ic=i.defineComponent({name:"GctFormSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=w.useNamespace("gct-form-select"),r=w.useGctFormValue(),n=i.computed(()=>e.c.state.options&&e.c.state.options.length>0?e.c.state.options:[]);return{ns:t,val:r,options:n}},render(){return i.createVNode(i.resolveComponent("a-select"),i.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),options:this.options,allowClear:!0,disabled:this.c.state.disabled}),null)}}),Vc=w.widthEditorInstall(w.EditorTypeOld.SELECT,()=>new jc,Ic);class $c{constructor(){M(this,"component","gct-form-Modal-select")}}const Bc=i.defineComponent({name:"GctFormModalSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-modal-select"),t=i.ref("1"),r=w.useGctFormValue(),n=i.computed({get(){return r.value||void 0},set(a){r.value=a}}),o=i.computed(()=>[{label:"默认",options:[{value:"1",label:"模型一"},{value:"2",label:"模型二"}]},{label:"产品建模",options:[{value:"3",label:"产品信息"},{value:"4",label:"产品类型"}]}]);return{ns:e,val:n,options:o,modelCategory:t}},render(){return i.createVNode(i.resolveComponent("a-input-group"),{class:this.ns.b()},{default:()=>[i.createVNode(i.resolveComponent("a-form-item-rest"),null,{default:()=>[i.createVNode(i.resolveComponent("a-select"),i.mergeProps({value:this.modelCategory,"onUpdate:value":e=>this.modelCategory=e},this.model.props||{},{placeholder:"请选择",options:[{value:"1",label:"实体"},{value:"2",label:"视图"},{value:"3",label:"数据"}],disabled:this.c.state.disabled}),null)]}),i.createVNode(i.resolveComponent("a-select"),i.mergeProps({class:this.ns.e("select"),value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{placeholder:"请选择",options:this.options,allowClear:!0,disabled:this.c.state.disabled}),null)]})}}),Fc=w.widthEditorInstall(w.EditorTypeOld.MODEL_SELECT,()=>new $c,Bc);class Mc{constructor(){M(this,"component","gct-form-field-select")}}const qc={class:"gct-box"},Dc=i.defineComponent({__name:"gct-model-select",props:{value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,n=t,o=i.computed({get(){return r.value},set(d){n("update:value",d)}}),a=i.ref([{key:0,title:"公司名称"},{key:1,title:"ID"},{key:2,title:"创建人"},{key:3,title:"创建部门"},{key:4,title:"修改时间"},{key:5,title:"修改人"},{key:6,title:"修改部门"}]),u=i.ref([]),l=(d,c)=>{console.log()};function s(){o.value=!1}return(d,c)=>{const f=i.resolveComponent("a-transfer"),p=i.resolveComponent("a-modal");return i.openBlock(),i.createBlock(p,{visible:o.value,"onUpdate:visible":c[1]||(c[1]=h=>o.value=h),width:"600px",title:"关联模型字段","ok-text":"确认","cancel-text":"取消",onOk:s},{default:i.withCtx(()=>[c[2]||(c[2]=i.createElementVNode("div",null,"所属模型:公司",-1)),i.createElementVNode("div",qc,[i.createVNode(f,{"target-keys":u.value,"onUpdate:targetKeys":c[0]||(c[0]=h=>u.value=h),locale:{itemUnit:"项已选",itemsUnit:"项未选",searchPlaceholder:"请输入搜索内容"},"data-source":a.value,"show-search":"","filter-option":l,render:h=>h.title},null,8,["target-keys","data-source","render"])])]),_:1},8,["visible"])}}}),Gc=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},da=Gc(Dc,[["__scopeId","data-v-bff0c27a"]]),Lc=i.defineComponent({name:"GctFormFieldSelect",components:{modal:da},props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-field-select"),t=i.ref(!1);return{ns:e,visible:t}},render(){return i.createVNode("div",null,[i.createVNode(i.resolveComponent("a-button"),{onClick:()=>this.visible=!0,block:!0},{default:()=>[i.createTextVNode("选择模型字段")]}),i.createVNode(da,{value:this.visible,"onUpdate:value":e=>this.visible=e},null)])}}),Hc=w.widthEditorInstall(w.EditorTypeOld.Field_SELECT,()=>new Mc,Lc);class Uc{constructor(){M(this,"component","gct-form-span")}}const zc=i.defineComponent({name:"GctFormSpan",props:{c:{type:Object,required:!0},itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},setup(e){const t=w.useNamespace("form-span"),{model:r,itemModel:n,c:o}=i.toRefs(e);function a(){const{isSuccessRef:l}=w.useCopyToClipboard(e.value);l.value&&qe.message.success(_gct.t("sys.copySuccess"))}o.value.loadDictionary();const u=i.computed(()=>{if(r.value.format&&typeof r.value.format=="function")return r.value.format(o.value.data,n.value,o.value);if(e.value==null||e.value==="")return e.value;if(n.value.dictionary){const s=(n.value.dictionary.items||[]).find(d=>d.value==e.value);if(s)return s.label}if(o.value.state.options.length>0){const l=o.value.state.options.find(s=>s.value==e.value);if(l)return l.label}return e.value});return{ns:t,val:u,handleClipboardKey:a}},render(){return i.createVNode("div",{class:this.ns.b()},[i.createVNode("span",{class:this.ns.e("info")},[this.val]),this.model.copy&&i.createVNode("span",{class:this.ns.e("copy")},[i.createVNode("i",{class:"iconfont icon-fuzhi primary-gct",onClick:this.handleClipboardKey},null)])])}}),Wc=w.widthEditorInstall(w.EditorTypeOld.SPAN,()=>new Uc,zc);class Dl{constructor(){M(this,"component","gct-form-switch")}}const Gl=i.defineComponent({name:"GctFormSwitch",props:{model:{type:Object,required:!0},value:{type:String,default:""}},setup(){const e=w.useNamespace("gct-form-switch"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return i.createVNode("div",{class:this.ns.b()},[i.createVNode(i.resolveComponent("a-switch"),i.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)])}}),Kc=w.widthEditorInstall(w.EditorType.SWITCH,()=>new Dl,Gl),Yc=w.widthEditorInstall(w.EditorTypeOld.SWITCH,()=>new Dl,Gl);class Ll{constructor(){M(this,"component","gct-form-text")}}const Hl=i.defineComponent({name:"GctFormText",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=w.useNamespace("gct-form-text"),r=new w.EditorController(e.model),n=w.useGctFormValueByText(e.model.prefix||e.model.addonBefore,e.model.suffix||e.model.addonAfter);return{ns:t,c:r,val:n}},render(){return i.createVNode(i.resolveComponent("a-select"),i.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),prefix:this.model.prefix,suffix:this.model.suffix,addonBefore:this.model.addonBefore,addonAfter:this.model.addonAfter,placeholder:this.model.placeholder,"show-count":this.model.max!=null,maxlength:this.model.max}),null)}}),Xc=w.widthEditorInstall(w.EditorType.TEXT,()=>new Ll,Hl),Jc=w.widthEditorInstall(w.EditorTypeOld.TEXT,()=>new Ll,Hl);class Zc{constructor(){M(this,"component","gct-form-textarea")}}const Qc=i.defineComponent({name:"GctFormTextarea",props:{model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-textarea"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return i.createVNode(i.resolveComponent("a-textarea"),i.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),"auto-size":this.model.autoSize,"show-count":this.model.max!=null,maxlength:this.model.max,placeholder:this.model.placeholder}),null)}}),ed=w.widthEditorInstall(w.EditorTypeOld.TEXTAREA,()=>new Zc,Qc);function td(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Ul=i.defineComponent({name:"GctFormRadio",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-radio"),t=w.useGctFormValue();return{ns:e,val:t}},render(){const e={...this.model.props||{},class:[this.ns.b()],allowClear:!0,disabled:this.c.state.disabled};if(this.model.buttonMode){let t;return e.class.push(this.ns.m("button")),i.createVNode(qe.RadioGroup,i.mergeProps({value:this.val,"onUpdate:value":r=>this.val=r,size:"small","button-style":"solid"},e),td(t=this.c.state.options.map(r=>i.createVNode(qe.RadioButton,{key:r.value,value:r.value},{default:()=>[r.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),i.createVNode(qe.RadioGroup,i.mergeProps({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let zl=class{constructor(){M(this,"component","gct-form-radio")}};const rd=w.widthEditorInstall(w.EditorType.RADIO,()=>new zl,Ul),nd=w.widthEditorInstall(w.EditorTypeOld.RADIO,()=>new zl,Ul),od=i.defineComponent({name:"GctFormInfo",props:{value:{type:String,default:""},model:{type:Object,required:!0}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-info"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return i.createVNode("div",{class:this.ns.b()},[this.model.icon?i.createVNode("span",{class:this.ns.e("icon")},[i.createVNode("i",{class:`iconfont ${this.model.icon}`},null)]):null,i.createVNode("span",{class:this.ns.e("content")},[this.val||this.model.content])])}});let ad=class{constructor(){M(this,"component","gct-form-info")}};const id=w.widthEditorInstall(w.EditorTypeOld.INFO,()=>new ad,od),Wl=i.defineComponent({name:"GctFormCheckbox",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("gct-form-checkbox"),n=w.useGctFormValue(),o=i.computed(()=>n.value),a=i.computed(()=>mt.cloneDeep(e.c.state.options));return{ns:r,checked:o,onChange:l=>{a.value.forEach(s=>{e.model.minLength&&l.length<=e.model.minLength&&l.includes(s.value)?s.disabled=!0:s.disabled=!1,s.checked=l.includes(s.value)}),t("update:value",l)},options:a}},render(){const e={...this.model.props||{},class:[this.ns.b(),this.ns.m("checkbox"),this.model.layout==="column"&&"isColumn"],disabled:this.c.state.disabled};return i.createVNode(qe.CheckboxGroup,i.mergeProps({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class Kl{constructor(){M(this,"component","gct-form-checkbox")}}const ld=w.widthEditorInstall(w.EditorType.CHECKBOX,()=>new Kl,Wl),sd=w.widthEditorInstall(w.EditorTypeOld.CHECKBOX,()=>new Kl,Wl);var Yl=require("../internals/global-this"),Xl=require("../internals/function-call"),fo=require("../internals/array-buffer-view-core"),ud=require("../internals/length-of-array-like"),cd=require("../internals/to-offset"),dd=require("../internals/to-object"),Jl=require("../internals/fails"),fd=Yl.RangeError,Zn=Yl.Int8Array,fa=Zn&&Zn.prototype,Zl=fa&&fa.set,pd=fo.aTypedArray,hd=fo.exportTypedArrayMethod,Qn=!Jl(function(){var e=new Uint8ClampedArray(2);return Xl(Zl,e,{length:1,0:3},1),e[1]!==3}),vd=Qn&&fo.NATIVE_ARRAY_BUFFER_VIEWS&&Jl(function(){var e=new Zn(2);return e.set(1),e.set("2",1),e[0]!==0||e[1]!==2});hd("set",function(t){pd(this);var r=cd(arguments.length>1?arguments[1]:void 0,1),n=dd(t);if(Qn)return Xl(Zl,this,n,r);var o=this.length,a=ud(n),u=0;if(a+r>o)throw new fd("Wrong length");for(;u<a;)this[r+u]=n[u++]},!Qn||vd);function Ql(e){return i.getCurrentScope()?(i.onScopeDispose(e),!0):!1}function Le(e){return typeof e=="function"?e():i.unref(e)}const Or=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const gd=Object.prototype.toString,md=e=>gd.call(e)==="[object Object]",it=()=>{},yd=bd();function bd(){var e,t;return Or&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function es(e,t){function r(...n){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(a)})}return r}const ts=e=>e();function Cd(e,t={}){let r,n,o=it;const a=l=>{clearTimeout(l),o(),o=it};return l=>{const s=Le(e),d=Le(t.maxWait);return r&&a(r),s<=0||d!==void 0&&d<=0?(n&&(a(n),n=null),Promise.resolve(l())):new Promise((c,f)=>{o=t.rejectOnCancel?f:c,d&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,c(l())},d)),r=setTimeout(()=>{n&&a(n),n=null,c(l())},s)})}}function wd(e=ts){const t=i.ref(!0);function r(){t.value=!1}function n(){t.value=!0}const o=(...a)=>{t.value&&e(...a)};return{isActive:i.readonly(t),pause:r,resume:n,eventFilter:o}}function Sd(e){let t;function r(){return t||(t=e()),t}return r.reset=async()=>{const n=t;t=void 0,n&&await n},r}function Od(e){return i.getCurrentInstance()}function Ee(e,t=200,r={}){return es(Cd(t,r),e)}function xd(e,t,r={}){const{eventFilter:n=ts,...o}=r;return i.watch(e,es(n,t),o)}function Ed(e,t,r={}){const{eventFilter:n,...o}=r,{eventFilter:a,pause:u,resume:l,isActive:s}=wd(n);return{stop:xd(e,t,{...o,eventFilter:a}),pause:u,resume:l,isActive:s}}function We(e,t=!0,r){Od()?i.onMounted(e,r):t?e():i.nextTick(e)}function kd(e,t,r={}){const{immediate:n=!0}=r,o=i.ref(!1);let a=null;function u(){a&&(clearTimeout(a),a=null)}function l(){o.value=!1,u()}function s(...d){u(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=null,e(...d)},Le(t))}return n&&(o.value=!0,Or&&s()),Ql(l),{isPending:i.readonly(o),start:s,stop:l}}function J(e,t,r){const n=i.watch(e,(o,a,u)=>{o&&(r!=null&&r.once&&i.nextTick(()=>n()),t(o,a,u))},{...r,once:!1});return n}function Nt(e){var t;const r=Le(e);return(t=r==null?void 0:r.$el)!=null?t:r}const $t=Or?window:void 0,rs=Or?window.navigator:void 0;function De(...e){let t,r,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,o]=e,t=$t):[t,r,n,o]=e,!t)return it;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],u=()=>{a.forEach(c=>c()),a.length=0},l=(c,f,p,h)=>(c.addEventListener(f,p,h),()=>c.removeEventListener(f,p,h)),s=i.watch(()=>[Nt(t),Le(o)],([c,f])=>{if(u(),!c)return;const p=md(f)?{...f}:f;a.push(...r.flatMap(h=>n.map(v=>l(c,h,v,p))))},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return Ql(d),d}let pa=!1;function _d(e,t,r={}){const{window:n=$t,ignore:o=[],capture:a=!0,detectIframe:u=!1}=r;if(!n)return it;yd&&!pa&&(pa=!0,Array.from(n.document.body.children).forEach(p=>p.addEventListener("click",it)),n.document.documentElement.addEventListener("click",it));let l=!0;const s=p=>o.some(h=>{if(typeof h=="string")return Array.from(n.document.querySelectorAll(h)).some(v=>v===p.target||p.composedPath().includes(v));{const v=Nt(h);return v&&(p.target===v||p.composedPath().includes(v))}}),c=[De(n,"click",p=>{const h=Nt(e);if(!(!h||h===p.target||p.composedPath().includes(h))){if(p.detail===0&&(l=!s(p)),!l){l=!0;return}t(p)}},{passive:!0,capture:a}),De(n,"pointerdown",p=>{const h=Nt(e);l=!s(p)&&!!(h&&!p.composedPath().includes(h))},{passive:!0}),u&&De(n,"blur",p=>{setTimeout(()=>{var h;const v=Nt(e);((h=n.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(v!=null&&v.contains(n.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>c.forEach(p=>p())}function Nd(){const e=i.ref(!1),t=i.getCurrentInstance();return t&&i.onMounted(()=>{e.value=!0},t),e}function ns(e){const t=Nd();return i.computed(()=>(t.value,!!e()))}function ha(e,t={}){const{controls:r=!1,navigator:n=rs}=t,o=ns(()=>n&&"permissions"in n);let a;const u=typeof e=="string"?{name:e}:e,l=i.ref(),s=()=>{a&&(l.value=a.state)},d=Sd(async()=>{if(o.value){if(!a)try{a=await n.permissions.query(u),De(a,"change",s),s()}catch{l.value="prompt"}return a}});return d(),r?{state:l,isSupported:o,query:d}:l}function Td(e={}){const{navigator:t=rs,read:r=!1,source:n,copiedDuring:o=1500,legacy:a=!1}=e,u=ns(()=>t&&"clipboard"in t),l=ha("clipboard-read"),s=ha("clipboard-write"),d=i.computed(()=>u.value||a),c=i.ref(""),f=i.ref(!1),p=kd(()=>f.value=!1,o);function h(){u.value&&b(l.value)?t.clipboard.readText().then(g=>{c.value=g}):c.value=m()}d.value&&r&&De(["copy","cut"],h);async function v(g=Le(n)){d.value&&g!=null&&(u.value&&b(s.value)?await t.clipboard.writeText(g):y(g),c.value=g,f.value=!0,p.start())}function y(g){const S=document.createElement("textarea");S.value=g??"",S.style.position="absolute",S.style.opacity="0",document.body.appendChild(S),S.select(),document.execCommand("copy"),S.remove()}function m(){var g,S,O;return(O=(S=(g=document==null?void 0:document.getSelection)==null?void 0:g.call(document))==null?void 0:S.toString())!=null?O:""}function b(g){return g==="granted"||g==="prompt"}return{isSupported:d,text:c,copied:f,copy:v}}const Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qt="__vueuse_ssr_handlers__",Ad=Pd();function Pd(){return Qt in Zt||(Zt[Qt]=Zt[Qt]||{}),Zt[Qt]}function Rd(e,t){return Ad[e]||t}function jd(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Id={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},va="vueuse-storage";function Vd(e,t,r,n={}){var o;const{flush:a="pre",deep:u=!0,listenToStorageChanges:l=!0,writeDefaults:s=!0,mergeDefaults:d=!1,shallow:c,window:f=$t,eventFilter:p,onError:h=N=>{console.error(N)},initOnMounted:v}=n,y=(c?i.shallowRef:i.ref)(typeof t=="function"?t():t);if(!r)try{r=Rd("getDefaultStorage",()=>{var N;return(N=$t)==null?void 0:N.localStorage})()}catch(N){h(N)}if(!r)return y;const m=Le(t),b=jd(m),g=(o=n.serializer)!=null?o:Id[b],{pause:S,resume:O}=Ed(y,()=>k(y.value),{flush:a,deep:u,eventFilter:p});f&&l&&We(()=>{De(f,"storage",V),De(f,va,j),v&&V()}),v||V();function E(N,C){f&&f.dispatchEvent(new CustomEvent(va,{detail:{key:e,oldValue:N,newValue:C,storageArea:r}}))}function k(N){try{const C=r.getItem(e);if(N==null)E(C,null),r.removeItem(e);else{const _=g.write(N);C!==_&&(r.setItem(e,_),E(C,_))}}catch(C){h(C)}}function P(N){const C=N?N.newValue:r.getItem(e);if(C==null)return s&&m!=null&&r.setItem(e,g.write(m)),m;if(!N&&d){const _=g.read(C);return typeof d=="function"?d(_,m):b==="object"&&!Array.isArray(_)?{...m,..._}:_}else return typeof C!="string"?C:g.read(C)}function V(N){if(!(N&&N.storageArea!==r)){if(N&&N.key==null){y.value=m;return}if(!(N&&N.key!==e)){S();try{(N==null?void 0:N.newValue)!==g.write(y.value)&&(y.value=P(N))}catch(C){h(C)}finally{N?i.nextTick(O):O()}}}}function j(N){V(N.detail)}return y}function po(e,t,r={}){const{window:n=$t}=r;return Vd(e,t,n==null?void 0:n.localStorage,r)}function ur(e){"@babel/helpers - typeof";return ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ur(e)}var $d=/^\s+/,Bd=/\s+$/;function x(e,t){if(e=e||"",t=t||{},e instanceof x)return e;if(!(this instanceof x))return new x(e,t);var r=Fd(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}x.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,o,a,u,l;return r=t.r/255,n=t.g/255,o=t.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),n<=.03928?u=n/12.92:u=Math.pow((n+.055)/1.055,2.4),o<=.03928?l=o/12.92:l=Math.pow((o+.055)/1.055,2.4),.2126*a+.7152*u+.0722*l},setAlpha:function(t){return this._a=os(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ma(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ma(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+o+"%)":"hsva("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=ga(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=ga(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+o+"%)":"hsla("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return ya(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return Gd(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(G(this._r,255)*100)+"%",g:Math.round(G(this._g,255)*100)+"%",b:Math.round(G(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(G(this._r,255)*100)+"%, "+Math.round(G(this._g,255)*100)+"%, "+Math.round(G(this._b,255)*100)+"%)":"rgba("+Math.round(G(this._r,255)*100)+"%, "+Math.round(G(this._g,255)*100)+"%, "+Math.round(G(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ef[ya(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+ba(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var a=x(t);n="#"+ba(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,o=this._a<1&&this._a>=0,a=!r&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return x(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(zd,arguments)},brighten:function(){return this._applyModification(Wd,arguments)},darken:function(){return this._applyModification(Kd,arguments)},desaturate:function(){return this._applyModification(Ld,arguments)},saturate:function(){return this._applyModification(Hd,arguments)},greyscale:function(){return this._applyModification(Ud,arguments)},spin:function(){return this._applyModification(Yd,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(Zd,arguments)},complement:function(){return this._applyCombination(Xd,arguments)},monochromatic:function(){return this._applyCombination(Qd,arguments)},splitcomplement:function(){return this._applyCombination(Jd,arguments)},triad:function(){return this._applyCombination(Ca,[3])},tetrad:function(){return this._applyCombination(Ca,[4])}};x.fromRatio=function(e,t){if(ur(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=Tt(e[n]));e=r}return x(e,t)};function Fd(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,a=null,u=!1,l=!1;return typeof e=="string"&&(e=of(e)),ur(e)=="object"&&(Oe(e.r)&&Oe(e.g)&&Oe(e.b)?(t=Md(e.r,e.g,e.b),u=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Oe(e.h)&&Oe(e.s)&&Oe(e.v)?(n=Tt(e.s),o=Tt(e.v),t=Dd(e.h,n,o),u=!0,l="hsv"):Oe(e.h)&&Oe(e.s)&&Oe(e.l)&&(n=Tt(e.s),a=Tt(e.l),t=qd(e.h,n,a),u=!0,l="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=os(r),{ok:u,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function Md(e,t,r){return{r:G(e,255)*255,g:G(t,255)*255,b:G(r,255)*255}}function ga(e,t,r){e=G(e,255),t=G(t,255),r=G(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,u,l=(n+o)/2;if(n==o)a=u=0;else{var s=n-o;switch(u=l>.5?s/(2-n-o):s/(n+o),n){case e:a=(t-r)/s+(t<r?6:0);break;case t:a=(r-e)/s+2;break;case r:a=(e-t)/s+4;break}a/=6}return{h:a,s:u,l}}function qd(e,t,r){var n,o,a;e=G(e,360),t=G(t,100),r=G(r,100);function u(d,c,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?d+(c-d)*6*f:f<1/2?c:f<2/3?d+(c-d)*(2/3-f)*6:d}if(t===0)n=o=a=r;else{var l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;n=u(s,l,e+1/3),o=u(s,l,e),a=u(s,l,e-1/3)}return{r:n*255,g:o*255,b:a*255}}function ma(e,t,r){e=G(e,255),t=G(t,255),r=G(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,u,l=n,s=n-o;if(u=n===0?0:s/n,n==o)a=0;else{switch(n){case e:a=(t-r)/s+(t<r?6:0);break;case t:a=(r-e)/s+2;break;case r:a=(e-t)/s+4;break}a/=6}return{h:a,s:u,v:l}}function Dd(e,t,r){e=G(e,360)*6,t=G(t,100),r=G(r,100);var n=Math.floor(e),o=e-n,a=r*(1-t),u=r*(1-o*t),l=r*(1-(1-o)*t),s=n%6,d=[r,u,a,a,l,r][s],c=[l,r,r,u,a,a][s],f=[a,a,l,r,r,u][s];return{r:d*255,g:c*255,b:f*255}}function ya(e,t,r,n){var o=[ve(Math.round(e).toString(16)),ve(Math.round(t).toString(16)),ve(Math.round(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Gd(e,t,r,n,o){var a=[ve(Math.round(e).toString(16)),ve(Math.round(t).toString(16)),ve(Math.round(r).toString(16)),ve(as(n))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function ba(e,t,r,n){var o=[ve(as(n)),ve(Math.round(e).toString(16)),ve(Math.round(t).toString(16)),ve(Math.round(r).toString(16))];return o.join("")}x.equals=function(e,t){return!e||!t?!1:x(e).toRgbString()==x(t).toRgbString()};x.random=function(){return x.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Ld(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s-=t/100,r.s=xr(r.s),x(r)}function Hd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s+=t/100,r.s=xr(r.s),x(r)}function Ud(e){return x(e).desaturate(100)}function zd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l+=t/100,r.l=xr(r.l),x(r)}function Wd(e,t){t=t===0?0:t||10;var r=x(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),x(r)}function Kd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l-=t/100,r.l=xr(r.l),x(r)}function Yd(e,t){var r=x(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,x(r)}function Xd(e){var t=x(e).toHsl();return t.h=(t.h+180)%360,x(t)}function Ca(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=x(e).toHsl(),n=[x(e)],o=360/t,a=1;a<t;a++)n.push(x({h:(r.h+a*o)%360,s:r.s,l:r.l}));return n}function Jd(e){var t=x(e).toHsl(),r=t.h;return[x(e),x({h:(r+72)%360,s:t.s,l:t.l}),x({h:(r+216)%360,s:t.s,l:t.l})]}function Zd(e,t,r){t=t||6,r=r||30;var n=x(e).toHsl(),o=360/r,a=[x(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(x(n));return a}function Qd(e,t){t=t||6;for(var r=x(e).toHsv(),n=r.h,o=r.s,a=r.v,u=[],l=1/t;t--;)u.push(x({h:n,s:o,v:a})),a=(a+l)%1;return u}x.mix=function(e,t,r){r=r===0?0:r||50;var n=x(e).toRgb(),o=x(t).toRgb(),a=r/100,u={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return x(u)};x.readability=function(e,t){var r=x(e),n=x(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};x.isReadable=function(e,t,r){var n=x.readability(e,t),o,a;switch(a=!1,o=af(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};x.mostReadable=function(e,t,r){var n=null,o=0,a,u,l,s;r=r||{},u=r.includeFallbackColors,l=r.level,s=r.size;for(var d=0;d<t.length;d++)a=x.readability(e,t[d]),a>o&&(o=a,n=x(t[d]));return x.isReadable(e,n,{level:l,size:s})||!u?n:(r.includeFallbackColors=!1,x.mostReadable(e,["#fff","#000"],r))};var eo=x.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ef=x.hexNames=tf(eo);function tf(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function os(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function G(e,t){rf(e)&&(e="100%");var r=nf(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function xr(e){return Math.min(1,Math.max(0,e))}function oe(e){return parseInt(e,16)}function rf(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function nf(e){return typeof e=="string"&&e.indexOf("%")!=-1}function ve(e){return e.length==1?"0"+e:""+e}function Tt(e){return e<=1&&(e=e*100+"%"),e}function as(e){return Math.round(parseFloat(e)*255).toString(16)}function wa(e){return oe(e)/255}var he=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Oe(e){return!!he.CSS_UNIT.exec(e)}function of(e){e=e.replace($d,"").replace(Bd,"").toLowerCase();var t=!1;if(eo[e])e=eo[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=he.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=he.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=he.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=he.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=he.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=he.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=he.hex8.exec(e))?{r:oe(r[1]),g:oe(r[2]),b:oe(r[3]),a:wa(r[4]),format:t?"name":"hex8"}:(r=he.hex6.exec(e))?{r:oe(r[1]),g:oe(r[2]),b:oe(r[3]),format:t?"name":"hex"}:(r=he.hex4.exec(e))?{r:oe(r[1]+""+r[1]),g:oe(r[2]+""+r[2]),b:oe(r[3]+""+r[3]),a:wa(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=he.hex3.exec(e))?{r:oe(r[1]+""+r[1]),g:oe(r[2]+""+r[2]),b:oe(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function af(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var Sa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},er={},Oa;function lf(){if(Oa)return er;Oa=1;var e=e||{};e.stringify=function(){var t={"visit_linear-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-linear-gradient":function(r){return t.visit_gradient(r)},"visit_radial-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-radial-gradient":function(r){return t.visit_gradient(r)},visit_gradient:function(r){var n=t.visit(r.orientation);return n&&(n+=", "),r.type+"("+n+t.visit(r.colorStops)+")"},visit_shape:function(r){var n=r.value,o=t.visit(r.at),a=t.visit(r.style);return a&&(n+=" "+a),o&&(n+=" at "+o),n},"visit_default-radial":function(r){var n="",o=t.visit(r.at);return o&&(n+=o),n},"visit_extent-keyword":function(r){var n=r.value,o=t.visit(r.at);return o&&(n+=" at "+o),n},"visit_position-keyword":function(r){return r.value},visit_position:function(r){return t.visit(r.value.x)+" "+t.visit(r.value.y)},"visit_%":function(r){return r.value+"%"},visit_em:function(r){return r.value+"em"},visit_px:function(r){return r.value+"px"},visit_literal:function(r){return t.visit_color(r.value,r)},visit_hex:function(r){return t.visit_color("#"+r.value,r)},visit_rgb:function(r){return t.visit_color("rgb("+r.value.join(", ")+")",r)},visit_rgba:function(r){return t.visit_color("rgba("+r.value.join(", ")+")",r)},visit_color:function(r,n){var o=r,a=t.visit(n.length);return a&&(o+=" "+a),o},visit_angular:function(r){return r.value+"deg"},visit_directional:function(r){return"to "+r.value},visit_array:function(r){var n="",o=r.length;return r.forEach(function(a,u){n+=t.visit(a),u<o-1&&(n+=", ")}),n},visit:function(r){if(!r)return"";var n="";if(r instanceof Array)return t.visit_array(r,n);if(r.type){var o=t["visit_"+r.type];if(o)return o(r);throw Error("Missing visitor visit_"+r.type)}else throw Error("Invalid node.")}};return function(r){return t.visit(r)}}();var e=e||{};return e.parse=function(){var t={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},r="";function n(T){var I=new Error(r+": "+T);throw I.source=r,I}function o(){var T=a();return r.length>0&&n("Invalid input not EOF"),T}function a(){return O(u)}function u(){return l("linear-gradient",t.linearGradient,d)||l("repeating-linear-gradient",t.repeatingLinearGradient,d)||l("radial-gradient",t.radialGradient,p)||l("repeating-radial-gradient",t.repeatingRadialGradient,p)}function l(T,I,F){return s(I,function(ee){var me=F();return me&&(q(t.comma)||n("Missing comma before color stops")),{type:T,orientation:me,colorStops:O(E)}})}function s(T,I){var F=q(T);if(F){q(t.startCall)||n("Missing (");var ee=I(F);return q(t.endCall)||n("Missing )"),ee}}function d(){return c()||f()}function c(){return $("directional",t.sideOrCorner,1)}function f(){return $("angular",t.angleValue,1)}function p(){var T,I=h(),F;return I&&(T=[],T.push(I),F=r,q(t.comma)&&(I=h(),I?T.push(I):r=F)),T}function h(){var T=v()||y();if(T)T.at=b();else{var I=m();if(I){T=I;var F=b();F&&(T.at=F)}else{var ee=g();ee&&(T={type:"default-radial",at:ee})}}return T}function v(){var T=$("shape",/^(circle)/i,0);return T&&(T.style=B()||m()),T}function y(){var T=$("shape",/^(ellipse)/i,0);return T&&(T.style=_()||m()),T}function m(){return $("extent-keyword",t.extentKeywords,1)}function b(){if($("position",/^at/,0)){var T=g();return T||n("Missing positioning value"),T}}function g(){var T=S();if(T.x||T.y)return{type:"position",value:T}}function S(){return{x:_(),y:_()}}function O(T){var I=T(),F=[];if(I)for(F.push(I);q(t.comma);)I=T(),I?F.push(I):n("One extra comma");return F}function E(){var T=k();return T||n("Expected color definition"),T.length=_(),T}function k(){return V()||N()||j()||P()}function P(){return $("literal",t.literalColor,0)}function V(){return $("hex",t.hexColor,1)}function j(){return s(t.rgbColor,function(){return{type:"rgb",value:O(C)}})}function N(){return s(t.rgbaColor,function(){return{type:"rgba",value:O(C)}})}function C(){return q(t.number)[1]}function _(){return $("%",t.percentageValue,1)||R()||B()}function R(){return $("position-keyword",t.positionKeywords,1)}function B(){return $("px",t.pixelValue,1)||$("em",t.emValue,1)}function $(T,I,F){var ee=q(I);if(ee)return{type:T,value:ee[F]}}function q(T){var I,F;return F=/^[\n\r\t\s]+/.exec(r),F&&Y(F[0].length),I=T.exec(r),I&&Y(I[0].length),I}function Y(T){r=r.substr(T)}return function(T){return r=T.toString(),o()}}(),er.parse=e.parse,er.stringify=e.stringify,er}var xa=lf(),te="top",de="bottom",fe="right",re="left",ho="auto",Lt=[te,de,fe,re],st="start",Bt="end",sf="clippingParents",is="viewport",St="popper",uf="reference",Ea=Lt.reduce(function(e,t){return e.concat([t+"-"+st,t+"-"+Bt])},[]),ls=[].concat(Lt,[ho]).reduce(function(e,t){return e.concat([t,t+"-"+st,t+"-"+Bt])},[]),cf="beforeRead",df="read",ff="afterRead",pf="beforeMain",hf="main",vf="afterMain",gf="beforeWrite",mf="write",yf="afterWrite",bf=[cf,df,ff,pf,hf,vf,gf,mf,yf];function we(e){return e?(e.nodeName||"").toLowerCase():null}function ae(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function He(e){var t=ae(e).Element;return e instanceof t||e instanceof Element}function ue(e){var t=ae(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function vo(e){if(typeof ShadowRoot>"u")return!1;var t=ae(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Cf(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!ue(a)||!we(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(u){var l=o[u];l===!1?a.removeAttribute(u):a.setAttribute(u,l===!0?"":l)}))})}function wf(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},u=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=u.reduce(function(s,d){return s[d]="",s},{});!ue(o)||!we(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(s){o.removeAttribute(s)}))})}}const Sf={name:"applyStyles",enabled:!0,phase:"write",fn:Cf,effect:wf,requires:["computeStyles"]};function Ce(e){return e.split("-")[0]}var Ge=Math.max,cr=Math.min,ut=Math.round;function to(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ss(){return!/^((?!chrome|android).)*safari/i.test(to())}function ct(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&ue(e)&&(o=e.offsetWidth>0&&ut(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ut(n.height)/e.offsetHeight||1);var u=He(e)?ae(e):window,l=u.visualViewport,s=!ss()&&r,d=(n.left+(s&&l?l.offsetLeft:0))/o,c=(n.top+(s&&l?l.offsetTop:0))/a,f=n.width/o,p=n.height/a;return{width:f,height:p,top:c,right:d+f,bottom:c+p,left:d,x:d,y:c}}function go(e){var t=ct(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function us(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&vo(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function _e(e){return ae(e).getComputedStyle(e)}function Of(e){return["table","td","th"].indexOf(we(e))>=0}function Ve(e){return((He(e)?e.ownerDocument:e.document)||window.document).documentElement}function Er(e){return we(e)==="html"?e:e.assignedSlot||e.parentNode||(vo(e)?e.host:null)||Ve(e)}function ka(e){return!ue(e)||_e(e).position==="fixed"?null:e.offsetParent}function xf(e){var t=/firefox/i.test(to()),r=/Trident/i.test(to());if(r&&ue(e)){var n=_e(e);if(n.position==="fixed")return null}var o=Er(e);for(vo(o)&&(o=o.host);ue(o)&&["html","body"].indexOf(we(o))<0;){var a=_e(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Ht(e){for(var t=ae(e),r=ka(e);r&&Of(r)&&_e(r).position==="static";)r=ka(r);return r&&(we(r)==="html"||we(r)==="body"&&_e(r).position==="static")?t:r||xf(e)||t}function mo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pt(e,t,r){return Ge(e,cr(t,r))}function Ef(e,t,r){var n=Pt(e,t,r);return n>r?r:n}function cs(){return{top:0,right:0,bottom:0,left:0}}function ds(e){return Object.assign({},cs(),e)}function fs(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var kf=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ds(typeof t!="number"?t:fs(t,Lt))};function _f(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,u=r.modifiersData.popperOffsets,l=Ce(r.placement),s=mo(l),d=[re,fe].indexOf(l)>=0,c=d?"height":"width";if(!(!a||!u)){var f=kf(o.padding,r),p=go(a),h=s==="y"?te:re,v=s==="y"?de:fe,y=r.rects.reference[c]+r.rects.reference[s]-u[s]-r.rects.popper[c],m=u[s]-r.rects.reference[s],b=Ht(a),g=b?s==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-m/2,O=f[h],E=g-p[c]-f[v],k=g/2-p[c]/2+S,P=Pt(O,k,E),V=s;r.modifiersData[n]=(t={},t[V]=P,t.centerOffset=P-k,t)}}function Nf(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||us(t.elements.popper,o)&&(t.elements.arrow=o))}const Tf={name:"arrow",enabled:!0,phase:"main",fn:_f,effect:Nf,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dt(e){return e.split("-")[1]}var Af={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pf(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:ut(r*o)/o||0,y:ut(n*o)/o||0}}function _a(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,u=e.offsets,l=e.position,s=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=u.x,h=p===void 0?0:p,v=u.y,y=v===void 0?0:v,m=typeof c=="function"?c({x:h,y}):{x:h,y};h=m.x,y=m.y;var b=u.hasOwnProperty("x"),g=u.hasOwnProperty("y"),S=re,O=te,E=window;if(d){var k=Ht(r),P="clientHeight",V="clientWidth";if(k===ae(r)&&(k=Ve(r),_e(k).position!=="static"&&l==="absolute"&&(P="scrollHeight",V="scrollWidth")),k=k,o===te||(o===re||o===fe)&&a===Bt){O=de;var j=f&&k===E&&E.visualViewport?E.visualViewport.height:k[P];y-=j-n.height,y*=s?1:-1}if(o===re||(o===te||o===de)&&a===Bt){S=fe;var N=f&&k===E&&E.visualViewport?E.visualViewport.width:k[V];h-=N-n.width,h*=s?1:-1}}var C=Object.assign({position:l},d&&Af),_=c===!0?Pf({x:h,y},ae(r)):{x:h,y};if(h=_.x,y=_.y,s){var R;return Object.assign({},C,(R={},R[O]=g?"0":"",R[S]=b?"0":"",R.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",R))}return Object.assign({},C,(t={},t[O]=g?y+"px":"",t[S]=b?h+"px":"",t.transform="",t))}function Rf(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,u=a===void 0?!0:a,l=r.roundOffsets,s=l===void 0?!0:l,d={placement:Ce(t.placement),variation:dt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_a(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_a(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const jf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Rf,data:{}};var tr={passive:!0};function If(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,u=n.resize,l=u===void 0?!0:u,s=ae(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(c){c.addEventListener("scroll",r.update,tr)}),l&&s.addEventListener("resize",r.update,tr),function(){a&&d.forEach(function(c){c.removeEventListener("scroll",r.update,tr)}),l&&s.removeEventListener("resize",r.update,tr)}}const Vf={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:If,data:{}};var $f={left:"right",right:"left",bottom:"top",top:"bottom"};function ar(e){return e.replace(/left|right|bottom|top/g,function(t){return $f[t]})}var Bf={start:"end",end:"start"};function Na(e){return e.replace(/start|end/g,function(t){return Bf[t]})}function yo(e){var t=ae(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function bo(e){return ct(Ve(e)).left+yo(e).scrollLeft}function Ff(e,t){var r=ae(e),n=Ve(e),o=r.visualViewport,a=n.clientWidth,u=n.clientHeight,l=0,s=0;if(o){a=o.width,u=o.height;var d=ss();(d||!d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:u,x:l+bo(e),y:s}}function Mf(e){var t,r=Ve(e),n=yo(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Ge(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),u=Ge(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+bo(e),s=-n.scrollTop;return _e(o||r).direction==="rtl"&&(l+=Ge(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:u,x:l,y:s}}function Co(e){var t=_e(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function ps(e){return["html","body","#document"].indexOf(we(e))>=0?e.ownerDocument.body:ue(e)&&Co(e)?e:ps(Er(e))}function Rt(e,t){var r;t===void 0&&(t=[]);var n=ps(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=ae(n),u=o?[a].concat(a.visualViewport||[],Co(n)?n:[]):n,l=t.concat(u);return o?l:l.concat(Rt(Er(u)))}function ro(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qf(e,t){var r=ct(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Ta(e,t,r){return t===is?ro(Ff(e,r)):He(t)?qf(t,r):ro(Mf(Ve(e)))}function Df(e){var t=Rt(Er(e)),r=["absolute","fixed"].indexOf(_e(e).position)>=0,n=r&&ue(e)?Ht(e):e;return He(n)?t.filter(function(o){return He(o)&&us(o,n)&&we(o)!=="body"}):[]}function Gf(e,t,r,n){var o=t==="clippingParents"?Df(e):[].concat(t),a=[].concat(o,[r]),u=a[0],l=a.reduce(function(s,d){var c=Ta(e,d,n);return s.top=Ge(c.top,s.top),s.right=cr(c.right,s.right),s.bottom=cr(c.bottom,s.bottom),s.left=Ge(c.left,s.left),s},Ta(e,u,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function hs(e){var t=e.reference,r=e.element,n=e.placement,o=n?Ce(n):null,a=n?dt(n):null,u=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,s;switch(o){case te:s={x:u,y:t.y-r.height};break;case de:s={x:u,y:t.y+t.height};break;case fe:s={x:t.x+t.width,y:l};break;case re:s={x:t.x-r.width,y:l};break;default:s={x:t.x,y:t.y}}var d=o?mo(o):null;if(d!=null){var c=d==="y"?"height":"width";switch(a){case st:s[d]=s[d]-(t[c]/2-r[c]/2);break;case Bt:s[d]=s[d]+(t[c]/2-r[c]/2);break}}return s}function Ft(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,u=a===void 0?e.strategy:a,l=r.boundary,s=l===void 0?sf:l,d=r.rootBoundary,c=d===void 0?is:d,f=r.elementContext,p=f===void 0?St:f,h=r.altBoundary,v=h===void 0?!1:h,y=r.padding,m=y===void 0?0:y,b=ds(typeof m!="number"?m:fs(m,Lt)),g=p===St?uf:St,S=e.rects.popper,O=e.elements[v?g:p],E=Gf(He(O)?O:O.contextElement||Ve(e.elements.popper),s,c,u),k=ct(e.elements.reference),P=hs({reference:k,element:S,placement:o}),V=ro(Object.assign({},S,P)),j=p===St?V:k,N={top:E.top-j.top+b.top,bottom:j.bottom-E.bottom+b.bottom,left:E.left-j.left+b.left,right:j.right-E.right+b.right},C=e.modifiersData.offset;if(p===St&&C){var _=C[o];Object.keys(N).forEach(function(R){var B=[fe,de].indexOf(R)>=0?1:-1,$=[te,de].indexOf(R)>=0?"y":"x";N[R]+=_[$]*B})}return N}function Lf(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,u=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,d=s===void 0?ls:s,c=dt(n),f=c?l?Ea:Ea.filter(function(v){return dt(v)===c}):Lt,p=f.filter(function(v){return d.indexOf(v)>=0});p.length===0&&(p=f);var h=p.reduce(function(v,y){return v[y]=Ft(e,{placement:y,boundary:o,rootBoundary:a,padding:u})[Ce(y)],v},{});return Object.keys(h).sort(function(v,y){return h[v]-h[y]})}function Hf(e){if(Ce(e)===ho)return[];var t=ar(e);return[Na(e),t,Na(t)]}function Uf(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,u=r.altAxis,l=u===void 0?!0:u,s=r.fallbackPlacements,d=r.padding,c=r.boundary,f=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,y=r.allowedAutoPlacements,m=t.options.placement,b=Ce(m),g=b===m,S=s||(g||!v?[ar(m)]:Hf(m)),O=[m].concat(S).reduce(function(Ae,ye){return Ae.concat(Ce(ye)===ho?Lf(t,{placement:ye,boundary:c,rootBoundary:f,padding:d,flipVariations:v,allowedAutoPlacements:y}):ye)},[]),E=t.rects.reference,k=t.rects.popper,P=new Map,V=!0,j=O[0],N=0;N<O.length;N++){var C=O[N],_=Ce(C),R=dt(C)===st,B=[te,de].indexOf(_)>=0,$=B?"width":"height",q=Ft(t,{placement:C,boundary:c,rootBoundary:f,altBoundary:p,padding:d}),Y=B?R?fe:re:R?de:te;E[$]>k[$]&&(Y=ar(Y));var T=ar(Y),I=[];if(a&&I.push(q[_]<=0),l&&I.push(q[Y]<=0,q[T]<=0),I.every(function(Ae){return Ae})){j=C,V=!1;break}P.set(C,I)}if(V)for(var F=v?3:1,ee=function(ye){var wt=O.find(function(Yt){var Be=P.get(Yt);if(Be)return Be.slice(0,ye).every(function(jr){return jr})});if(wt)return j=wt,"break"},me=F;me>0;me--){var Qe=ee(me);if(Qe==="break")break}t.placement!==j&&(t.modifiersData[n]._skip=!0,t.placement=j,t.reset=!0)}}const zf={name:"flip",enabled:!0,phase:"main",fn:Uf,requiresIfExists:["offset"],data:{_skip:!1}};function Aa(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Pa(e){return[te,fe,de,re].some(function(t){return e[t]>=0})}function Wf(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,u=Ft(t,{elementContext:"reference"}),l=Ft(t,{altBoundary:!0}),s=Aa(u,n),d=Aa(l,o,a),c=Pa(s),f=Pa(d);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Kf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Wf};function Yf(e,t,r){var n=Ce(e),o=[re,te].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=a[0],l=a[1];return u=u||0,l=(l||0)*o,[re,fe].indexOf(n)>=0?{x:l,y:u}:{x:u,y:l}}function Xf(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,u=ls.reduce(function(c,f){return c[f]=Yf(f,t.rects,a),c},{}),l=u[t.placement],s=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=u}const Jf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Xf};function Zf(e){var t=e.state,r=e.name;t.modifiersData[r]=hs({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Qf={name:"popperOffsets",enabled:!0,phase:"read",fn:Zf,data:{}};function ep(e){return e==="x"?"y":"x"}function tp(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,u=r.altAxis,l=u===void 0?!1:u,s=r.boundary,d=r.rootBoundary,c=r.altBoundary,f=r.padding,p=r.tether,h=p===void 0?!0:p,v=r.tetherOffset,y=v===void 0?0:v,m=Ft(t,{boundary:s,rootBoundary:d,padding:f,altBoundary:c}),b=Ce(t.placement),g=dt(t.placement),S=!g,O=mo(b),E=ep(O),k=t.modifiersData.popperOffsets,P=t.rects.reference,V=t.rects.popper,j=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,N=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(k){if(a){var R,B=O==="y"?te:re,$=O==="y"?de:fe,q=O==="y"?"height":"width",Y=k[O],T=Y+m[B],I=Y-m[$],F=h?-V[q]/2:0,ee=g===st?P[q]:V[q],me=g===st?-V[q]:-P[q],Qe=t.elements.arrow,Ae=h&&Qe?go(Qe):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cs(),wt=ye[B],Yt=ye[$],Be=Pt(0,P[q],Ae[q]),jr=S?P[q]/2-F-Be-wt-N.mainAxis:ee-Be-wt-N.mainAxis,pu=S?-P[q]/2+F+Be+Yt+N.mainAxis:me+Be+Yt+N.mainAxis,Ir=t.elements.arrow&&Ht(t.elements.arrow),hu=Ir?O==="y"?Ir.clientTop||0:Ir.clientLeft||0:0,zo=(R=C==null?void 0:C[O])!=null?R:0,vu=Y+jr-zo-hu,gu=Y+pu-zo,Wo=Pt(h?cr(T,vu):T,Y,h?Ge(I,gu):I);k[O]=Wo,_[O]=Wo-Y}if(l){var Ko,mu=O==="x"?te:re,yu=O==="x"?de:fe,Fe=k[E],Xt=E==="y"?"height":"width",Yo=Fe+m[mu],Xo=Fe-m[yu],Vr=[te,re].indexOf(b)!==-1,Jo=(Ko=C==null?void 0:C[E])!=null?Ko:0,Zo=Vr?Yo:Fe-P[Xt]-V[Xt]-Jo+N.altAxis,Qo=Vr?Fe+P[Xt]+V[Xt]-Jo-N.altAxis:Xo,ea=h&&Vr?Ef(Zo,Fe,Qo):Pt(h?Zo:Yo,Fe,h?Qo:Xo);k[E]=ea,_[E]=ea-Fe}t.modifiersData[n]=_}}const rp={name:"preventOverflow",enabled:!0,phase:"main",fn:tp,requiresIfExists:["offset"]};function np(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function op(e){return e===ae(e)||!ue(e)?yo(e):np(e)}function ap(e){var t=e.getBoundingClientRect(),r=ut(t.width)/e.offsetWidth||1,n=ut(t.height)/e.offsetHeight||1;return r!==1||n!==1}function ip(e,t,r){r===void 0&&(r=!1);var n=ue(t),o=ue(t)&&ap(t),a=Ve(t),u=ct(e,o,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((we(t)!=="body"||Co(a))&&(l=op(t)),ue(t)?(s=ct(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=bo(a))),{x:u.left+l.scrollLeft-s.x,y:u.top+l.scrollTop-s.y,width:u.width,height:u.height}}function lp(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var u=[].concat(a.requires||[],a.requiresIfExists||[]);u.forEach(function(l){if(!r.has(l)){var s=t.get(l);s&&o(s)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function sp(e){var t=lp(e);return bf.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function up(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function cp(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Ra={placement:"bottom",modifiers:[],strategy:"absolute"};function ja(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function dp(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?Ra:o;return function(l,s,d){d===void 0&&(d=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ra,a),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},f=[],p=!1,h={state:c,setOptions:function(b){var g=typeof b=="function"?b(c.options):b;y(),c.options=Object.assign({},a,c.options,g),c.scrollParents={reference:He(l)?Rt(l):l.contextElement?Rt(l.contextElement):[],popper:Rt(s)};var S=sp(cp([].concat(n,c.options.modifiers)));return c.orderedModifiers=S.filter(function(O){return O.enabled}),v(),h.update()},forceUpdate:function(){if(!p){var b=c.elements,g=b.reference,S=b.popper;if(ja(g,S)){c.rects={reference:ip(g,Ht(S),c.options.strategy==="fixed"),popper:go(S)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(N){return c.modifiersData[N.name]=Object.assign({},N.data)});for(var O=0;O<c.orderedModifiers.length;O++){if(c.reset===!0){c.reset=!1,O=-1;continue}var E=c.orderedModifiers[O],k=E.fn,P=E.options,V=P===void 0?{}:P,j=E.name;typeof k=="function"&&(c=k({state:c,options:V,name:j,instance:h})||c)}}}},update:up(function(){return new Promise(function(m){h.forceUpdate(),m(c)})}),destroy:function(){y(),p=!0}};if(!ja(l,s))return h;h.setOptions(d).then(function(m){!p&&d.onFirstUpdate&&d.onFirstUpdate(m)});function v(){c.orderedModifiers.forEach(function(m){var b=m.name,g=m.options,S=g===void 0?{}:g,O=m.effect;if(typeof O=="function"){var E=O({state:c,name:b,instance:h,options:S}),k=function(){};f.push(E||k)}})}function y(){f.forEach(function(m){return m()}),f=[]}return h}}var fp=[Vf,Qf,jf,Sf,Jf,zf,rp,Tf,Kf],pp=dp({defaultModifiers:fp});function hp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vs(e,t,r){return r&&hp(e,r),e}function ir(){return(ir=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function gs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ms(e,t){if(e==null)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}function Ia(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var ys=Object.prototype,bs=ys.toString,vp=ys.hasOwnProperty,Cs=/^\s*function (\w+)/;function Va(e){var t,r=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(r){var n=r.toString().match(Cs);return n?n[1]:""}return""}var Ue=function(e){var t,r;return Ia(e)!==!1&&typeof(t=e.constructor)=="function"&&Ia(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1},ws=function(e){return e},ne=ws;if(process.env.NODE_ENV!=="production"){var gp=typeof console<"u";ne=gp?function(e){console.warn("[VueTypes warn]: "+e)}:ws}var Mt=function(e,t){return vp.call(e,t)},mp=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},ft=Array.isArray||function(e){return bs.call(e)==="[object Array]"},pt=function(e){return bs.call(e)==="[object Function]"},dr=function(e){return Ue(e)&&Mt(e,"_vueTypes_name")},Ss=function(e){return Ue(e)&&(Mt(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return Mt(e,t)}))};function wo(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Ke(e,t,r){var n,o=!0,a="";n=Ue(e)?e:{type:e};var u=dr(n)?n._vueTypes_name+" - ":"";if(Ss(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t===void 0)return o;ft(n.type)?(o=n.type.some(function(f){return Ke(f,t)===!0}),a=n.type.map(function(f){return Va(f)}).join(" or ")):o=(a=Va(n))==="Array"?ft(t):a==="Object"?Ue(t):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?function(f){if(f==null)return"";var p=f.constructor.toString().match(Cs);return p?p[1]:""}(t)===a:t instanceof n.type}if(!o){var l=u+'value "'+t+'" should be of type "'+a+'"';return l}if(Mt(n,"validator")&&pt(n.validator)){var s=ne,d=[];if(ne=function(f){d.push(f)},o=n.validator(t),ne=s,!o){var c=(d.length>1?"* ":"")+d.join(`
11
+ `},ia=Xu(ec)(jl),tc={config:Zu},rc=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(a,u){return u(a)},o)}};function Il(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],Il(e[r],t[r]))}),ra(ra({},e),t)}var nc={type:"cancelation",msg:"operation is manually canceled"};function $r(e){var t=!1,r=new Promise(function(n,o){e.then(function(a){return t?o(nc):n(a)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var oc=Ku.create({config:Yu,isInitialized:!1,resolve:null,reject:null,monaco:null}),Vl=xu(oc,2),Gt=Vl[0],Sr=Vl[1];function ac(e){var t=tc.config(e),r=t.monaco,n=Ou(t,["monaco"]);Sr(function(o){return{config:Il(o.config,n),monaco:r}})}function ic(){var e=Gt(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(Sr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),$r(Br);if(window.monaco&&window.monaco.editor)return $l(window.monaco),e.resolve(window.monaco),$r(Br);rc(lc,uc)(cc)}return $r(Br)}function lc(e){return document.body.appendChild(e)}function sc(e){var t=document.createElement("script");return e&&(t.src=e),t}function uc(e){var t=Gt(function(n){var o=n.config,a=n.reject;return{config:o,reject:a}}),r=sc("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function cc(){var e=Gt(function(r){var n=r.config,o=r.resolve,a=r.reject;return{config:n,resolve:o,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){$l(r),e.resolve(r)},function(r){e.reject(r)})}function $l(e){Gt().monaco||Sr({monaco:e})}function dc(){return Gt(function(e){var t=e.monaco;return t})}var Br=new Promise(function(e,t){return Sr({resolve:e,reject:t})}),fc={config:ac,init:ic,__getMonacoInstance:dc};const Xn=i.defineComponent({name:"CodeEditor",props:{value:{type:String,default:""},config:{type:Object,default:()=>({})},language:{type:String,default:"typescript"}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("code-editor"),n=i.computed({get(){return e.value||""},set(u){t("update:value",u)}}),o=i.ref(null);let a=null;return i.onMounted(()=>{fc.init().then(u=>{o.value&&(a=u.editor.create(o.value,w.deepMerge({value:n.value,language:e.language,automaticLayout:!0,minimap:{enabled:!1}},e.config)),a.onDidBlurEditorText(()=>{n.value=a.getValue()}))})}),i.onUnmounted(()=>{a==null||a.dispose()}),{ns:r,el:o}},render(){return i.createVNode("div",{ref:"el",class:this.ns.b()},null)}}),Jn=i.defineComponent({name:"FlexItem",props:{layout:Object},setup(e){return{ns:w.useNamespace("flex-item"),getStyle:()=>{const n={};if(e.layout){const{order:o,alignSelf:a,flexBasis:u,flexGrow:l,flexShrink:s}=e.layout;o!=null&&(n.order=o),a!=null&&(n["align-self"]=a),u!=null&&(n["flex-basis"]=u),l!=null&&(n["flex-grow"]=l),s!=null&&(n["flex-shrink"]=s)}return n}}},render(){var e,t;return i.createVNode("div",{class:this.ns.b(),style:this.getStyle()},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}});function pc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const la=i.defineComponent({name:"FlexContainer",props:{layout:Object},setup(e){return{ns:w.useNamespace("flex-container"),getStyle:()=>{const o={};if(e.layout){const{alignContent:a,alignItems:u,flexDirection:l,flexWrap:s,justifyContent:d}=e.layout;a!=null&&(o.alignContent=a),u!=null&&(o.alignItems=u),l!=null&&(o.flexDirection=l),s!=null&&(o.flexWrap=s),d!=null&&(o.justifyContent=d)}return o},getItemStyle:o=>{const a={};if(o){const{width:u,height:l}=o;u!=null&&(a.width=u),l!=null&&(a.height=l)}return a}}},render(){var t,r;let e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return e.length>0&&(e=e[0].children||[]),i.createVNode("div",{class:this.ns.b(),style:this.getStyle()},[e.map(n=>{if(!n)return null;const o=n.props.model.flexItem;return i.createVNode(Jn,{layout:o,style:this.getItemStyle(n.props.model)},pc(n)?n:{default:()=>[n]})})])}});function sa(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const ua=i.defineComponent({name:"GridContainer",props:{layout:Object},setup(){return{ns:w.useNamespace("grid-container")}},render(){var n,o;let e;const t=this.layout||{};let r=((o=(n=this.$slots).default)==null?void 0:o.call(n))||[];return r.length>0&&(r=r[0].children||[]),i.createVNode(i.resolveComponent("a-row"),{class:this.ns.b(),wrap:!0,gutter:t.gutter},sa(e=r.map(a=>{if(!a)return null;const u=a.props.model.gridItem;return i.createVNode(i.resolveComponent("a-col"),{span:u?u.span??24:24,offset:u?u.offset??0:0},sa(a)?a:{default:()=>[a]})}))?e:{default:()=>[e]})}}),ca=i.defineComponent({name:"ViewContainer",props:{context:{type:Object},params:{type:Object},modal:{type:Object,required:!0}},setup(){return{ns:w.useNamespace("view-container")}},render(){var e,t;return i.createVNode("div",{class:this.ns.b()},[this.$slots.header?i.createVNode("div",{class:this.ns.b("header")},[this.$slots.header()]):null,i.createVNode("div",{class:this.ns.b("content")},[(t=(e=this.$slots).default)==null?void 0:t.call(e)]),this.$slots.footer?i.createVNode("div",{class:this.ns.b("footer")},[this.$slots.footer()]):null])}}),hc=i.defineComponent({name:"GctFormLengthUnit",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,required:!0}},emits:["update:value"],setup(e){const t=w.useNamespace("form-length-unit"),r=new w.LengthUnitEditorController(e.model),n=w.useGctFormValue();return{ns:t,c:r,val:n}},render(){return i.createVNode(i.resolveComponent("length-unit-editor"),i.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]}),null)}});class vc{constructor(){M(this,"component","gct-form-length-unit")}}const gc=w.widthEditorInstall(w.EditorTypeOld.LENGTH_UNIT,()=>new vc,hc),Bl=i.defineComponent({name:"GctFormColor",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String}},emits:["update:value"],setup(){const e=w.useNamespace("form-color"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return i.createVNode(i.resolveComponent("color-picker"),i.mergeProps({pureColor:this.val,"onUpdate:pureColor":e=>this.val=e,format:"rgba",shape:"circle","use-type":"pure","picker-type":"chrome",class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]},this.model.props||{}),null)}});class Fl{constructor(){M(this,"component","gct-form-color")}}const mc=w.widthEditorInstall(w.EditorType.COLOR,()=>new Fl,Bl),yc=w.widthEditorInstall(w.EditorTypeOld.COLOR,()=>new Fl,Bl);class bc{constructor(){M(this,"component","gct-form-check-switch")}}const Cc=i.defineComponent({name:"GctFormCheckSwitch",props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:Boolean,default:!1}},emits:["update:value"],setup(e){const t=w.useNamespace("gct-form-check-switch"),r=new w.EditorController(e.model),n=w.useGctFormValue();return{ns:t,c:r,val:n}},render(){return this.model.isSwitch?i.createVNode("div",{class:[this.ns.b(),this.ns.m("switch"),this.ns.is("readonly",this.model.readonly)]},[i.createVNode(i.resolveComponent("a-switch"),i.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)]):i.createVNode(i.resolveComponent("a-checkbox"),i.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{},{class:[this.ns.b(),this.ns.m("checkbox"),this.ns.is("readonly",this.model.readonly)]}),{default:()=>[this.model.label]})}}),wc=w.widthEditorInstall(w.EditorTypeOld.CHECK_SWITCH,()=>new bc,Cc);class Sc{constructor(){M(this,"component","gct-form-i18n")}}const Oc=i.defineComponent({name:"GctFormI18n",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-i18n"),r=w.useForm().item.i18nConfig,n=w.useGctFormValue(),o=i.computed({get:()=>r?r.value:"",set:a=>{r&&(r.value=a)}});return{ns:e,val:n,i18nConfigValue:o}},render(){return i.createVNode(i.resolveComponent("i18n-select-input"),i.mergeProps(this.model.props||{},{i18nText:this.val,"onUpdate:i18nText":e=>this.val=e,i18nConfig:this.i18nConfigValue,"onUpdate:i18nConfig":e=>this.i18nConfigValue=e,inputExtraProps:{showCount:!0,maxlength:32,disabled:this.c.state.disabled}}),null)}}),xc=w.widthEditorInstall(w.EditorTypeOld.I18N,()=>new Sc,Oc),Ec=i.defineComponent({name:"GctFormIconSelect",props:{value:{type:Object},model:{type:Object,required:!0}},emits:["update:value"],setup(e,{emit:t}){var s,d,c;const r=w.useNamespace("gct-form-icon-select"),n=i.ref(e.value),o=i.ref(((s=n.value)==null?void 0:s.icon)||e.model.defaultIcon),a=i.ref(((d=n.value)==null?void 0:d.color)||e.model.defaultColor),u=i.ref(((c=n.value)==null?void 0:c.background)||e.model.defaultBackground);i.watch(()=>e.value,f=>{n.value=f,f&&(o.value=f.icon,a.value=f.color)}),i.watch([o,a,u],()=>{n.value={icon:o.value,color:a.value},t("update:value",n.value)});const l=i.computed(()=>{if(e.model.size)return{"--box-size":e.model.size+"px"}});return{ns:r,icon:o,color:a,background:u,nextPickerStyle:l}},render(){return i.createVNode("div",{class:this.ns.b()},[i.createVNode(i.resolveComponent("icon-next-picker"),{value:this.icon,"onUpdate:value":e=>this.icon=e,color:this.color,"onUpdate:color":e=>this.color=e,background:"#f5f5f5",disabled:this.model.disabled,showColor:this.model.showColor!==!1,style:this.nextPickerStyle},null),this.model.label?i.createVNode("span",{class:this.ns.e("title")},[this.model.label]):null])}});let kc=class{constructor(){M(this,"component","gct-form-icon-select")}};const _c=w.widthEditorInstall(w.EditorTypeOld.ICON_SELECT,()=>new kc,Ec);class Ml{constructor(){M(this,"component","gct-form-number")}}const ql=i.defineComponent({name:"GctFormNumber",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-number"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return i.createVNode(i.resolveComponent("a-input-number"),i.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e,class:this.ns.b(),prefix:this.model.prefix,suffix:this.model.suffix,addonBefore:this.model.addonBefore,addonAfter:this.model.addonAfter,placeholder:this.model.placeholder,max:this.model.max,min:this.model.min,precision:this.model.precision},this.model.props||{}),null)}}),Nc=w.widthEditorInstall(w.EditorType.NUMBER,()=>new Ml,ql),Tc=w.widthEditorInstall(w.EditorTypeOld.NUMBER,()=>new Ml,ql);class Ac{constructor(){M(this,"component","gct-form-picker")}}const Pc=i.defineComponent({name:"GctFormPicker",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("gct-form-picker"),n=i.computed({get(){return e.model.nameField?e.c.data[e.model.nameField]:""},set(l){e.model.nameField&&(e.c.data[e.model.nameField]=l)}}),o=i.computed({get:()=>!e.c.state.options.find(s=>s.value===e.value)&&n.value?n.value:e.value,set:l=>{typeof l=="string"&&(l=l.trim()),!(typeof l!="object"&&e.value==l)&&t("update:value",l)}}),a=()=>e.c.loadDictionary();return o.value!=null&&e.c.loadDictionary(),{ns:r,val:o,nameVal:n,loadOptions:a,onChange:(l,s)=>{n.value=s.label}}},render(){return i.createVNode(i.resolveComponent("a-select"),i.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),disabled:this.c.state.disabled,loading:this.c.state.loading,options:this.c.state.options,placeholder:this.model.placeholder,onDropdownVisibleChange:this.loadOptions,onChange:this.onChange}),null)}}),Rc=w.widthEditorInstall(w.EditorTypeOld.PICKER,()=>new Ac,Pc);class jc{constructor(){M(this,"component","gct-form-select")}}const Ic=i.defineComponent({name:"GctFormSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=w.useNamespace("gct-form-select"),r=w.useGctFormValue(),n=i.computed(()=>e.c.state.options&&e.c.state.options.length>0?e.c.state.options:[]);return{ns:t,val:r,options:n}},render(){return i.createVNode(i.resolveComponent("a-select"),i.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),options:this.options,allowClear:!0,disabled:this.c.state.disabled}),null)}}),Vc=w.widthEditorInstall(w.EditorTypeOld.SELECT,()=>new jc,Ic);class $c{constructor(){M(this,"component","gct-form-Modal-select")}}const Bc=i.defineComponent({name:"GctFormModalSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-modal-select"),t=i.ref("1"),r=w.useGctFormValue(),n=i.computed({get(){return r.value||void 0},set(a){r.value=a}}),o=i.computed(()=>[{label:"默认",options:[{value:"1",label:"模型一"},{value:"2",label:"模型二"}]},{label:"产品建模",options:[{value:"3",label:"产品信息"},{value:"4",label:"产品类型"}]}]);return{ns:e,val:n,options:o,modelCategory:t}},render(){return i.createVNode(i.resolveComponent("a-input-group"),{class:this.ns.b()},{default:()=>[i.createVNode(i.resolveComponent("a-form-item-rest"),null,{default:()=>[i.createVNode(i.resolveComponent("a-select"),i.mergeProps({value:this.modelCategory,"onUpdate:value":e=>this.modelCategory=e},this.model.props||{},{placeholder:"请选择",options:[{value:"1",label:"实体"},{value:"2",label:"视图"},{value:"3",label:"数据"}],disabled:this.c.state.disabled}),null)]}),i.createVNode(i.resolveComponent("a-select"),i.mergeProps({class:this.ns.e("select"),value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{placeholder:"请选择",options:this.options,allowClear:!0,disabled:this.c.state.disabled}),null)]})}}),Fc=w.widthEditorInstall(w.EditorTypeOld.MODEL_SELECT,()=>new $c,Bc);class Mc{constructor(){M(this,"component","gct-form-field-select")}}const qc={class:"gct-box"},Dc=i.defineComponent({__name:"gct-model-select",props:{value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,n=t,o=i.computed({get(){return r.value},set(d){n("update:value",d)}}),a=i.ref([{key:0,title:"公司名称"},{key:1,title:"ID"},{key:2,title:"创建人"},{key:3,title:"创建部门"},{key:4,title:"修改时间"},{key:5,title:"修改人"},{key:6,title:"修改部门"}]),u=i.ref([]),l=(d,c)=>{console.log()};function s(){o.value=!1}return(d,c)=>{const f=i.resolveComponent("a-transfer"),p=i.resolveComponent("a-modal");return i.openBlock(),i.createBlock(p,{visible:o.value,"onUpdate:visible":c[1]||(c[1]=h=>o.value=h),width:"600px",title:"关联模型字段","ok-text":"确认","cancel-text":"取消",onOk:s},{default:i.withCtx(()=>[c[2]||(c[2]=i.createElementVNode("div",null,"所属模型:公司",-1)),i.createElementVNode("div",qc,[i.createVNode(f,{"target-keys":u.value,"onUpdate:targetKeys":c[0]||(c[0]=h=>u.value=h),locale:{itemUnit:"项已选",itemsUnit:"项未选",searchPlaceholder:"请输入搜索内容"},"data-source":a.value,"show-search":"","filter-option":l,render:h=>h.title},null,8,["target-keys","data-source","render"])])]),_:1},8,["visible"])}}}),Gc=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},da=Gc(Dc,[["__scopeId","data-v-bff0c27a"]]),Lc=i.defineComponent({name:"GctFormFieldSelect",components:{modal:da},props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-field-select"),t=i.ref(!1);return{ns:e,visible:t}},render(){return i.createVNode("div",null,[i.createVNode(i.resolveComponent("a-button"),{onClick:()=>this.visible=!0,block:!0},{default:()=>[i.createTextVNode("选择模型字段")]}),i.createVNode(da,{value:this.visible,"onUpdate:value":e=>this.visible=e},null)])}}),Hc=w.widthEditorInstall(w.EditorTypeOld.Field_SELECT,()=>new Mc,Lc);class Uc{constructor(){M(this,"component","gct-form-span")}}const zc=i.defineComponent({name:"GctFormSpan",props:{c:{type:Object,required:!0},itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},setup(e){const t=w.useNamespace("form-span"),{model:r,itemModel:n,c:o}=i.toRefs(e);function a(){const{isSuccessRef:l}=w.useCopyToClipboard(e.value);l.value&&qe.message.success(_gct.t("sys.copySuccess"))}o.value.loadDictionary();const u=i.computed(()=>{if(r.value.format&&typeof r.value.format=="function")return r.value.format(o.value.data,n.value,o.value);if(e.value==null||e.value==="")return e.value;if(n.value.dictionary){const s=(n.value.dictionary.items||[]).find(d=>d.value==e.value);if(s)return s.label}if(o.value.state.options.length>0){const l=o.value.state.options.find(s=>s.value==e.value);if(l)return l.label}return e.value});return{ns:t,val:u,handleClipboardKey:a}},render(){return i.createVNode("div",{class:this.ns.b()},[i.createVNode("span",{class:this.ns.e("info")},[this.val]),this.model.copy&&i.createVNode("span",{class:this.ns.e("copy")},[i.createVNode("i",{class:"iconfont icon-fuzhi primary-gct",onClick:this.handleClipboardKey},null)])])}}),Wc=w.widthEditorInstall(w.EditorTypeOld.SPAN,()=>new Uc,zc);class Dl{constructor(){M(this,"component","gct-form-switch")}}const Gl=i.defineComponent({name:"GctFormSwitch",props:{model:{type:Object,required:!0},value:{type:String,default:""}},setup(){const e=w.useNamespace("gct-form-switch"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return i.createVNode("div",{class:this.ns.b()},[i.createVNode(i.resolveComponent("a-switch"),i.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)])}}),Kc=w.widthEditorInstall(w.EditorType.SWITCH,()=>new Dl,Gl),Yc=w.widthEditorInstall(w.EditorTypeOld.SWITCH,()=>new Dl,Gl);class Ll{constructor(){M(this,"component","gct-form-text")}}const Hl=i.defineComponent({name:"GctFormText",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=w.useNamespace("gct-form-text"),r=new w.EditorController(e.model),n=w.useGctFormValueByText(e.model.prefix||e.model.addonBefore,e.model.suffix||e.model.addonAfter);return{ns:t,c:r,val:n}},render(){return i.createVNode(i.resolveComponent("a-input"),i.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),prefix:this.model.prefix,suffix:this.model.suffix,addonBefore:this.model.addonBefore,addonAfter:this.model.addonAfter,placeholder:this.model.placeholder,"show-count":this.model.max!=null,maxlength:this.model.max}),null)}}),Xc=w.widthEditorInstall(w.EditorType.TEXT,()=>new Ll,Hl),Jc=w.widthEditorInstall(w.EditorTypeOld.TEXT,()=>new Ll,Hl);class Zc{constructor(){M(this,"component","gct-form-textarea")}}const Qc=i.defineComponent({name:"GctFormTextarea",props:{model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-textarea"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return i.createVNode(i.resolveComponent("a-textarea"),i.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),"auto-size":this.model.autoSize,"show-count":this.model.max!=null,maxlength:this.model.max,placeholder:this.model.placeholder}),null)}}),ed=w.widthEditorInstall(w.EditorTypeOld.TEXTAREA,()=>new Zc,Qc);function td(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Ul=i.defineComponent({name:"GctFormRadio",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-radio"),t=w.useGctFormValue();return{ns:e,val:t}},render(){const e={...this.model.props||{},class:[this.ns.b()],allowClear:!0,disabled:this.c.state.disabled};if(this.model.buttonMode){let t;return e.class.push(this.ns.m("button")),i.createVNode(qe.RadioGroup,i.mergeProps({value:this.val,"onUpdate:value":r=>this.val=r,size:"small","button-style":"solid"},e),td(t=this.c.state.options.map(r=>i.createVNode(qe.RadioButton,{key:r.value,value:r.value},{default:()=>[r.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),i.createVNode(qe.RadioGroup,i.mergeProps({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let zl=class{constructor(){M(this,"component","gct-form-radio")}};const rd=w.widthEditorInstall(w.EditorType.RADIO,()=>new zl,Ul),nd=w.widthEditorInstall(w.EditorTypeOld.RADIO,()=>new zl,Ul),od=i.defineComponent({name:"GctFormInfo",props:{value:{type:String,default:""},model:{type:Object,required:!0}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-info"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return i.createVNode("div",{class:this.ns.b()},[this.model.icon?i.createVNode("span",{class:this.ns.e("icon")},[i.createVNode("i",{class:`iconfont ${this.model.icon}`},null)]):null,i.createVNode("span",{class:this.ns.e("content")},[this.val||this.model.content])])}});let ad=class{constructor(){M(this,"component","gct-form-info")}};const id=w.widthEditorInstall(w.EditorTypeOld.INFO,()=>new ad,od),Wl=i.defineComponent({name:"GctFormCheckbox",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("gct-form-checkbox"),n=w.useGctFormValue(),o=i.computed(()=>n.value),a=i.computed(()=>mt.cloneDeep(e.c.state.options));return{ns:r,checked:o,onChange:l=>{a.value.forEach(s=>{e.model.minLength&&l.length<=e.model.minLength&&l.includes(s.value)?s.disabled=!0:s.disabled=!1,s.checked=l.includes(s.value)}),t("update:value",l)},options:a}},render(){const e={...this.model.props||{},class:[this.ns.b(),this.ns.m("checkbox"),this.model.layout==="column"&&"isColumn"],disabled:this.c.state.disabled};return i.createVNode(qe.CheckboxGroup,i.mergeProps({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class Kl{constructor(){M(this,"component","gct-form-checkbox")}}const ld=w.widthEditorInstall(w.EditorType.CHECKBOX,()=>new Kl,Wl),sd=w.widthEditorInstall(w.EditorTypeOld.CHECKBOX,()=>new Kl,Wl);var Yl=require("../internals/global-this"),Xl=require("../internals/function-call"),fo=require("../internals/array-buffer-view-core"),ud=require("../internals/length-of-array-like"),cd=require("../internals/to-offset"),dd=require("../internals/to-object"),Jl=require("../internals/fails"),fd=Yl.RangeError,Zn=Yl.Int8Array,fa=Zn&&Zn.prototype,Zl=fa&&fa.set,pd=fo.aTypedArray,hd=fo.exportTypedArrayMethod,Qn=!Jl(function(){var e=new Uint8ClampedArray(2);return Xl(Zl,e,{length:1,0:3},1),e[1]!==3}),vd=Qn&&fo.NATIVE_ARRAY_BUFFER_VIEWS&&Jl(function(){var e=new Zn(2);return e.set(1),e.set("2",1),e[0]!==0||e[1]!==2});hd("set",function(t){pd(this);var r=cd(arguments.length>1?arguments[1]:void 0,1),n=dd(t);if(Qn)return Xl(Zl,this,n,r);var o=this.length,a=ud(n),u=0;if(a+r>o)throw new fd("Wrong length");for(;u<a;)this[r+u]=n[u++]},!Qn||vd);function Ql(e){return i.getCurrentScope()?(i.onScopeDispose(e),!0):!1}function Le(e){return typeof e=="function"?e():i.unref(e)}const Or=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const gd=Object.prototype.toString,md=e=>gd.call(e)==="[object Object]",it=()=>{},yd=bd();function bd(){var e,t;return Or&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function es(e,t){function r(...n){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(a)})}return r}const ts=e=>e();function Cd(e,t={}){let r,n,o=it;const a=l=>{clearTimeout(l),o(),o=it};return l=>{const s=Le(e),d=Le(t.maxWait);return r&&a(r),s<=0||d!==void 0&&d<=0?(n&&(a(n),n=null),Promise.resolve(l())):new Promise((c,f)=>{o=t.rejectOnCancel?f:c,d&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,c(l())},d)),r=setTimeout(()=>{n&&a(n),n=null,c(l())},s)})}}function wd(e=ts){const t=i.ref(!0);function r(){t.value=!1}function n(){t.value=!0}const o=(...a)=>{t.value&&e(...a)};return{isActive:i.readonly(t),pause:r,resume:n,eventFilter:o}}function Sd(e){let t;function r(){return t||(t=e()),t}return r.reset=async()=>{const n=t;t=void 0,n&&await n},r}function Od(e){return i.getCurrentInstance()}function Ee(e,t=200,r={}){return es(Cd(t,r),e)}function xd(e,t,r={}){const{eventFilter:n=ts,...o}=r;return i.watch(e,es(n,t),o)}function Ed(e,t,r={}){const{eventFilter:n,...o}=r,{eventFilter:a,pause:u,resume:l,isActive:s}=wd(n);return{stop:xd(e,t,{...o,eventFilter:a}),pause:u,resume:l,isActive:s}}function We(e,t=!0,r){Od()?i.onMounted(e,r):t?e():i.nextTick(e)}function kd(e,t,r={}){const{immediate:n=!0}=r,o=i.ref(!1);let a=null;function u(){a&&(clearTimeout(a),a=null)}function l(){o.value=!1,u()}function s(...d){u(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=null,e(...d)},Le(t))}return n&&(o.value=!0,Or&&s()),Ql(l),{isPending:i.readonly(o),start:s,stop:l}}function J(e,t,r){const n=i.watch(e,(o,a,u)=>{o&&(r!=null&&r.once&&i.nextTick(()=>n()),t(o,a,u))},{...r,once:!1});return n}function Nt(e){var t;const r=Le(e);return(t=r==null?void 0:r.$el)!=null?t:r}const $t=Or?window:void 0,rs=Or?window.navigator:void 0;function De(...e){let t,r,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,o]=e,t=$t):[t,r,n,o]=e,!t)return it;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],u=()=>{a.forEach(c=>c()),a.length=0},l=(c,f,p,h)=>(c.addEventListener(f,p,h),()=>c.removeEventListener(f,p,h)),s=i.watch(()=>[Nt(t),Le(o)],([c,f])=>{if(u(),!c)return;const p=md(f)?{...f}:f;a.push(...r.flatMap(h=>n.map(v=>l(c,h,v,p))))},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return Ql(d),d}let pa=!1;function _d(e,t,r={}){const{window:n=$t,ignore:o=[],capture:a=!0,detectIframe:u=!1}=r;if(!n)return it;yd&&!pa&&(pa=!0,Array.from(n.document.body.children).forEach(p=>p.addEventListener("click",it)),n.document.documentElement.addEventListener("click",it));let l=!0;const s=p=>o.some(h=>{if(typeof h=="string")return Array.from(n.document.querySelectorAll(h)).some(v=>v===p.target||p.composedPath().includes(v));{const v=Nt(h);return v&&(p.target===v||p.composedPath().includes(v))}}),c=[De(n,"click",p=>{const h=Nt(e);if(!(!h||h===p.target||p.composedPath().includes(h))){if(p.detail===0&&(l=!s(p)),!l){l=!0;return}t(p)}},{passive:!0,capture:a}),De(n,"pointerdown",p=>{const h=Nt(e);l=!s(p)&&!!(h&&!p.composedPath().includes(h))},{passive:!0}),u&&De(n,"blur",p=>{setTimeout(()=>{var h;const v=Nt(e);((h=n.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(v!=null&&v.contains(n.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>c.forEach(p=>p())}function Nd(){const e=i.ref(!1),t=i.getCurrentInstance();return t&&i.onMounted(()=>{e.value=!0},t),e}function ns(e){const t=Nd();return i.computed(()=>(t.value,!!e()))}function ha(e,t={}){const{controls:r=!1,navigator:n=rs}=t,o=ns(()=>n&&"permissions"in n);let a;const u=typeof e=="string"?{name:e}:e,l=i.ref(),s=()=>{a&&(l.value=a.state)},d=Sd(async()=>{if(o.value){if(!a)try{a=await n.permissions.query(u),De(a,"change",s),s()}catch{l.value="prompt"}return a}});return d(),r?{state:l,isSupported:o,query:d}:l}function Td(e={}){const{navigator:t=rs,read:r=!1,source:n,copiedDuring:o=1500,legacy:a=!1}=e,u=ns(()=>t&&"clipboard"in t),l=ha("clipboard-read"),s=ha("clipboard-write"),d=i.computed(()=>u.value||a),c=i.ref(""),f=i.ref(!1),p=kd(()=>f.value=!1,o);function h(){u.value&&b(l.value)?t.clipboard.readText().then(g=>{c.value=g}):c.value=m()}d.value&&r&&De(["copy","cut"],h);async function v(g=Le(n)){d.value&&g!=null&&(u.value&&b(s.value)?await t.clipboard.writeText(g):y(g),c.value=g,f.value=!0,p.start())}function y(g){const S=document.createElement("textarea");S.value=g??"",S.style.position="absolute",S.style.opacity="0",document.body.appendChild(S),S.select(),document.execCommand("copy"),S.remove()}function m(){var g,S,O;return(O=(S=(g=document==null?void 0:document.getSelection)==null?void 0:g.call(document))==null?void 0:S.toString())!=null?O:""}function b(g){return g==="granted"||g==="prompt"}return{isSupported:d,text:c,copied:f,copy:v}}const Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qt="__vueuse_ssr_handlers__",Ad=Pd();function Pd(){return Qt in Zt||(Zt[Qt]=Zt[Qt]||{}),Zt[Qt]}function Rd(e,t){return Ad[e]||t}function jd(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Id={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},va="vueuse-storage";function Vd(e,t,r,n={}){var o;const{flush:a="pre",deep:u=!0,listenToStorageChanges:l=!0,writeDefaults:s=!0,mergeDefaults:d=!1,shallow:c,window:f=$t,eventFilter:p,onError:h=N=>{console.error(N)},initOnMounted:v}=n,y=(c?i.shallowRef:i.ref)(typeof t=="function"?t():t);if(!r)try{r=Rd("getDefaultStorage",()=>{var N;return(N=$t)==null?void 0:N.localStorage})()}catch(N){h(N)}if(!r)return y;const m=Le(t),b=jd(m),g=(o=n.serializer)!=null?o:Id[b],{pause:S,resume:O}=Ed(y,()=>k(y.value),{flush:a,deep:u,eventFilter:p});f&&l&&We(()=>{De(f,"storage",V),De(f,va,j),v&&V()}),v||V();function E(N,C){f&&f.dispatchEvent(new CustomEvent(va,{detail:{key:e,oldValue:N,newValue:C,storageArea:r}}))}function k(N){try{const C=r.getItem(e);if(N==null)E(C,null),r.removeItem(e);else{const _=g.write(N);C!==_&&(r.setItem(e,_),E(C,_))}}catch(C){h(C)}}function P(N){const C=N?N.newValue:r.getItem(e);if(C==null)return s&&m!=null&&r.setItem(e,g.write(m)),m;if(!N&&d){const _=g.read(C);return typeof d=="function"?d(_,m):b==="object"&&!Array.isArray(_)?{...m,..._}:_}else return typeof C!="string"?C:g.read(C)}function V(N){if(!(N&&N.storageArea!==r)){if(N&&N.key==null){y.value=m;return}if(!(N&&N.key!==e)){S();try{(N==null?void 0:N.newValue)!==g.write(y.value)&&(y.value=P(N))}catch(C){h(C)}finally{N?i.nextTick(O):O()}}}}function j(N){V(N.detail)}return y}function po(e,t,r={}){const{window:n=$t}=r;return Vd(e,t,n==null?void 0:n.localStorage,r)}function ur(e){"@babel/helpers - typeof";return ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ur(e)}var $d=/^\s+/,Bd=/\s+$/;function x(e,t){if(e=e||"",t=t||{},e instanceof x)return e;if(!(this instanceof x))return new x(e,t);var r=Fd(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}x.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,o,a,u,l;return r=t.r/255,n=t.g/255,o=t.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),n<=.03928?u=n/12.92:u=Math.pow((n+.055)/1.055,2.4),o<=.03928?l=o/12.92:l=Math.pow((o+.055)/1.055,2.4),.2126*a+.7152*u+.0722*l},setAlpha:function(t){return this._a=os(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ma(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ma(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+o+"%)":"hsva("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=ga(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=ga(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+o+"%)":"hsla("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return ya(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return Gd(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(G(this._r,255)*100)+"%",g:Math.round(G(this._g,255)*100)+"%",b:Math.round(G(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(G(this._r,255)*100)+"%, "+Math.round(G(this._g,255)*100)+"%, "+Math.round(G(this._b,255)*100)+"%)":"rgba("+Math.round(G(this._r,255)*100)+"%, "+Math.round(G(this._g,255)*100)+"%, "+Math.round(G(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ef[ya(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+ba(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var a=x(t);n="#"+ba(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,o=this._a<1&&this._a>=0,a=!r&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return x(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(zd,arguments)},brighten:function(){return this._applyModification(Wd,arguments)},darken:function(){return this._applyModification(Kd,arguments)},desaturate:function(){return this._applyModification(Ld,arguments)},saturate:function(){return this._applyModification(Hd,arguments)},greyscale:function(){return this._applyModification(Ud,arguments)},spin:function(){return this._applyModification(Yd,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(Zd,arguments)},complement:function(){return this._applyCombination(Xd,arguments)},monochromatic:function(){return this._applyCombination(Qd,arguments)},splitcomplement:function(){return this._applyCombination(Jd,arguments)},triad:function(){return this._applyCombination(Ca,[3])},tetrad:function(){return this._applyCombination(Ca,[4])}};x.fromRatio=function(e,t){if(ur(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=Tt(e[n]));e=r}return x(e,t)};function Fd(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,a=null,u=!1,l=!1;return typeof e=="string"&&(e=of(e)),ur(e)=="object"&&(Oe(e.r)&&Oe(e.g)&&Oe(e.b)?(t=Md(e.r,e.g,e.b),u=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Oe(e.h)&&Oe(e.s)&&Oe(e.v)?(n=Tt(e.s),o=Tt(e.v),t=Dd(e.h,n,o),u=!0,l="hsv"):Oe(e.h)&&Oe(e.s)&&Oe(e.l)&&(n=Tt(e.s),a=Tt(e.l),t=qd(e.h,n,a),u=!0,l="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=os(r),{ok:u,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function Md(e,t,r){return{r:G(e,255)*255,g:G(t,255)*255,b:G(r,255)*255}}function ga(e,t,r){e=G(e,255),t=G(t,255),r=G(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,u,l=(n+o)/2;if(n==o)a=u=0;else{var s=n-o;switch(u=l>.5?s/(2-n-o):s/(n+o),n){case e:a=(t-r)/s+(t<r?6:0);break;case t:a=(r-e)/s+2;break;case r:a=(e-t)/s+4;break}a/=6}return{h:a,s:u,l}}function qd(e,t,r){var n,o,a;e=G(e,360),t=G(t,100),r=G(r,100);function u(d,c,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?d+(c-d)*6*f:f<1/2?c:f<2/3?d+(c-d)*(2/3-f)*6:d}if(t===0)n=o=a=r;else{var l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;n=u(s,l,e+1/3),o=u(s,l,e),a=u(s,l,e-1/3)}return{r:n*255,g:o*255,b:a*255}}function ma(e,t,r){e=G(e,255),t=G(t,255),r=G(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,u,l=n,s=n-o;if(u=n===0?0:s/n,n==o)a=0;else{switch(n){case e:a=(t-r)/s+(t<r?6:0);break;case t:a=(r-e)/s+2;break;case r:a=(e-t)/s+4;break}a/=6}return{h:a,s:u,v:l}}function Dd(e,t,r){e=G(e,360)*6,t=G(t,100),r=G(r,100);var n=Math.floor(e),o=e-n,a=r*(1-t),u=r*(1-o*t),l=r*(1-(1-o)*t),s=n%6,d=[r,u,a,a,l,r][s],c=[l,r,r,u,a,a][s],f=[a,a,l,r,r,u][s];return{r:d*255,g:c*255,b:f*255}}function ya(e,t,r,n){var o=[ve(Math.round(e).toString(16)),ve(Math.round(t).toString(16)),ve(Math.round(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Gd(e,t,r,n,o){var a=[ve(Math.round(e).toString(16)),ve(Math.round(t).toString(16)),ve(Math.round(r).toString(16)),ve(as(n))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function ba(e,t,r,n){var o=[ve(as(n)),ve(Math.round(e).toString(16)),ve(Math.round(t).toString(16)),ve(Math.round(r).toString(16))];return o.join("")}x.equals=function(e,t){return!e||!t?!1:x(e).toRgbString()==x(t).toRgbString()};x.random=function(){return x.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Ld(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s-=t/100,r.s=xr(r.s),x(r)}function Hd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s+=t/100,r.s=xr(r.s),x(r)}function Ud(e){return x(e).desaturate(100)}function zd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l+=t/100,r.l=xr(r.l),x(r)}function Wd(e,t){t=t===0?0:t||10;var r=x(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),x(r)}function Kd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l-=t/100,r.l=xr(r.l),x(r)}function Yd(e,t){var r=x(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,x(r)}function Xd(e){var t=x(e).toHsl();return t.h=(t.h+180)%360,x(t)}function Ca(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=x(e).toHsl(),n=[x(e)],o=360/t,a=1;a<t;a++)n.push(x({h:(r.h+a*o)%360,s:r.s,l:r.l}));return n}function Jd(e){var t=x(e).toHsl(),r=t.h;return[x(e),x({h:(r+72)%360,s:t.s,l:t.l}),x({h:(r+216)%360,s:t.s,l:t.l})]}function Zd(e,t,r){t=t||6,r=r||30;var n=x(e).toHsl(),o=360/r,a=[x(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(x(n));return a}function Qd(e,t){t=t||6;for(var r=x(e).toHsv(),n=r.h,o=r.s,a=r.v,u=[],l=1/t;t--;)u.push(x({h:n,s:o,v:a})),a=(a+l)%1;return u}x.mix=function(e,t,r){r=r===0?0:r||50;var n=x(e).toRgb(),o=x(t).toRgb(),a=r/100,u={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return x(u)};x.readability=function(e,t){var r=x(e),n=x(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};x.isReadable=function(e,t,r){var n=x.readability(e,t),o,a;switch(a=!1,o=af(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};x.mostReadable=function(e,t,r){var n=null,o=0,a,u,l,s;r=r||{},u=r.includeFallbackColors,l=r.level,s=r.size;for(var d=0;d<t.length;d++)a=x.readability(e,t[d]),a>o&&(o=a,n=x(t[d]));return x.isReadable(e,n,{level:l,size:s})||!u?n:(r.includeFallbackColors=!1,x.mostReadable(e,["#fff","#000"],r))};var eo=x.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ef=x.hexNames=tf(eo);function tf(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function os(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function G(e,t){rf(e)&&(e="100%");var r=nf(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function xr(e){return Math.min(1,Math.max(0,e))}function oe(e){return parseInt(e,16)}function rf(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function nf(e){return typeof e=="string"&&e.indexOf("%")!=-1}function ve(e){return e.length==1?"0"+e:""+e}function Tt(e){return e<=1&&(e=e*100+"%"),e}function as(e){return Math.round(parseFloat(e)*255).toString(16)}function wa(e){return oe(e)/255}var he=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Oe(e){return!!he.CSS_UNIT.exec(e)}function of(e){e=e.replace($d,"").replace(Bd,"").toLowerCase();var t=!1;if(eo[e])e=eo[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=he.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=he.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=he.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=he.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=he.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=he.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=he.hex8.exec(e))?{r:oe(r[1]),g:oe(r[2]),b:oe(r[3]),a:wa(r[4]),format:t?"name":"hex8"}:(r=he.hex6.exec(e))?{r:oe(r[1]),g:oe(r[2]),b:oe(r[3]),format:t?"name":"hex"}:(r=he.hex4.exec(e))?{r:oe(r[1]+""+r[1]),g:oe(r[2]+""+r[2]),b:oe(r[3]+""+r[3]),a:wa(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=he.hex3.exec(e))?{r:oe(r[1]+""+r[1]),g:oe(r[2]+""+r[2]),b:oe(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function af(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var Sa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},er={},Oa;function lf(){if(Oa)return er;Oa=1;var e=e||{};e.stringify=function(){var t={"visit_linear-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-linear-gradient":function(r){return t.visit_gradient(r)},"visit_radial-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-radial-gradient":function(r){return t.visit_gradient(r)},visit_gradient:function(r){var n=t.visit(r.orientation);return n&&(n+=", "),r.type+"("+n+t.visit(r.colorStops)+")"},visit_shape:function(r){var n=r.value,o=t.visit(r.at),a=t.visit(r.style);return a&&(n+=" "+a),o&&(n+=" at "+o),n},"visit_default-radial":function(r){var n="",o=t.visit(r.at);return o&&(n+=o),n},"visit_extent-keyword":function(r){var n=r.value,o=t.visit(r.at);return o&&(n+=" at "+o),n},"visit_position-keyword":function(r){return r.value},visit_position:function(r){return t.visit(r.value.x)+" "+t.visit(r.value.y)},"visit_%":function(r){return r.value+"%"},visit_em:function(r){return r.value+"em"},visit_px:function(r){return r.value+"px"},visit_literal:function(r){return t.visit_color(r.value,r)},visit_hex:function(r){return t.visit_color("#"+r.value,r)},visit_rgb:function(r){return t.visit_color("rgb("+r.value.join(", ")+")",r)},visit_rgba:function(r){return t.visit_color("rgba("+r.value.join(", ")+")",r)},visit_color:function(r,n){var o=r,a=t.visit(n.length);return a&&(o+=" "+a),o},visit_angular:function(r){return r.value+"deg"},visit_directional:function(r){return"to "+r.value},visit_array:function(r){var n="",o=r.length;return r.forEach(function(a,u){n+=t.visit(a),u<o-1&&(n+=", ")}),n},visit:function(r){if(!r)return"";var n="";if(r instanceof Array)return t.visit_array(r,n);if(r.type){var o=t["visit_"+r.type];if(o)return o(r);throw Error("Missing visitor visit_"+r.type)}else throw Error("Invalid node.")}};return function(r){return t.visit(r)}}();var e=e||{};return e.parse=function(){var t={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},r="";function n(T){var I=new Error(r+": "+T);throw I.source=r,I}function o(){var T=a();return r.length>0&&n("Invalid input not EOF"),T}function a(){return O(u)}function u(){return l("linear-gradient",t.linearGradient,d)||l("repeating-linear-gradient",t.repeatingLinearGradient,d)||l("radial-gradient",t.radialGradient,p)||l("repeating-radial-gradient",t.repeatingRadialGradient,p)}function l(T,I,F){return s(I,function(ee){var me=F();return me&&(q(t.comma)||n("Missing comma before color stops")),{type:T,orientation:me,colorStops:O(E)}})}function s(T,I){var F=q(T);if(F){q(t.startCall)||n("Missing (");var ee=I(F);return q(t.endCall)||n("Missing )"),ee}}function d(){return c()||f()}function c(){return $("directional",t.sideOrCorner,1)}function f(){return $("angular",t.angleValue,1)}function p(){var T,I=h(),F;return I&&(T=[],T.push(I),F=r,q(t.comma)&&(I=h(),I?T.push(I):r=F)),T}function h(){var T=v()||y();if(T)T.at=b();else{var I=m();if(I){T=I;var F=b();F&&(T.at=F)}else{var ee=g();ee&&(T={type:"default-radial",at:ee})}}return T}function v(){var T=$("shape",/^(circle)/i,0);return T&&(T.style=B()||m()),T}function y(){var T=$("shape",/^(ellipse)/i,0);return T&&(T.style=_()||m()),T}function m(){return $("extent-keyword",t.extentKeywords,1)}function b(){if($("position",/^at/,0)){var T=g();return T||n("Missing positioning value"),T}}function g(){var T=S();if(T.x||T.y)return{type:"position",value:T}}function S(){return{x:_(),y:_()}}function O(T){var I=T(),F=[];if(I)for(F.push(I);q(t.comma);)I=T(),I?F.push(I):n("One extra comma");return F}function E(){var T=k();return T||n("Expected color definition"),T.length=_(),T}function k(){return V()||N()||j()||P()}function P(){return $("literal",t.literalColor,0)}function V(){return $("hex",t.hexColor,1)}function j(){return s(t.rgbColor,function(){return{type:"rgb",value:O(C)}})}function N(){return s(t.rgbaColor,function(){return{type:"rgba",value:O(C)}})}function C(){return q(t.number)[1]}function _(){return $("%",t.percentageValue,1)||R()||B()}function R(){return $("position-keyword",t.positionKeywords,1)}function B(){return $("px",t.pixelValue,1)||$("em",t.emValue,1)}function $(T,I,F){var ee=q(I);if(ee)return{type:T,value:ee[F]}}function q(T){var I,F;return F=/^[\n\r\t\s]+/.exec(r),F&&Y(F[0].length),I=T.exec(r),I&&Y(I[0].length),I}function Y(T){r=r.substr(T)}return function(T){return r=T.toString(),o()}}(),er.parse=e.parse,er.stringify=e.stringify,er}var xa=lf(),te="top",de="bottom",fe="right",re="left",ho="auto",Lt=[te,de,fe,re],st="start",Bt="end",sf="clippingParents",is="viewport",St="popper",uf="reference",Ea=Lt.reduce(function(e,t){return e.concat([t+"-"+st,t+"-"+Bt])},[]),ls=[].concat(Lt,[ho]).reduce(function(e,t){return e.concat([t,t+"-"+st,t+"-"+Bt])},[]),cf="beforeRead",df="read",ff="afterRead",pf="beforeMain",hf="main",vf="afterMain",gf="beforeWrite",mf="write",yf="afterWrite",bf=[cf,df,ff,pf,hf,vf,gf,mf,yf];function we(e){return e?(e.nodeName||"").toLowerCase():null}function ae(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function He(e){var t=ae(e).Element;return e instanceof t||e instanceof Element}function ue(e){var t=ae(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function vo(e){if(typeof ShadowRoot>"u")return!1;var t=ae(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Cf(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!ue(a)||!we(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(u){var l=o[u];l===!1?a.removeAttribute(u):a.setAttribute(u,l===!0?"":l)}))})}function wf(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},u=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=u.reduce(function(s,d){return s[d]="",s},{});!ue(o)||!we(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(s){o.removeAttribute(s)}))})}}const Sf={name:"applyStyles",enabled:!0,phase:"write",fn:Cf,effect:wf,requires:["computeStyles"]};function Ce(e){return e.split("-")[0]}var Ge=Math.max,cr=Math.min,ut=Math.round;function to(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ss(){return!/^((?!chrome|android).)*safari/i.test(to())}function ct(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&ue(e)&&(o=e.offsetWidth>0&&ut(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ut(n.height)/e.offsetHeight||1);var u=He(e)?ae(e):window,l=u.visualViewport,s=!ss()&&r,d=(n.left+(s&&l?l.offsetLeft:0))/o,c=(n.top+(s&&l?l.offsetTop:0))/a,f=n.width/o,p=n.height/a;return{width:f,height:p,top:c,right:d+f,bottom:c+p,left:d,x:d,y:c}}function go(e){var t=ct(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function us(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&vo(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function _e(e){return ae(e).getComputedStyle(e)}function Of(e){return["table","td","th"].indexOf(we(e))>=0}function Ve(e){return((He(e)?e.ownerDocument:e.document)||window.document).documentElement}function Er(e){return we(e)==="html"?e:e.assignedSlot||e.parentNode||(vo(e)?e.host:null)||Ve(e)}function ka(e){return!ue(e)||_e(e).position==="fixed"?null:e.offsetParent}function xf(e){var t=/firefox/i.test(to()),r=/Trident/i.test(to());if(r&&ue(e)){var n=_e(e);if(n.position==="fixed")return null}var o=Er(e);for(vo(o)&&(o=o.host);ue(o)&&["html","body"].indexOf(we(o))<0;){var a=_e(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Ht(e){for(var t=ae(e),r=ka(e);r&&Of(r)&&_e(r).position==="static";)r=ka(r);return r&&(we(r)==="html"||we(r)==="body"&&_e(r).position==="static")?t:r||xf(e)||t}function mo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pt(e,t,r){return Ge(e,cr(t,r))}function Ef(e,t,r){var n=Pt(e,t,r);return n>r?r:n}function cs(){return{top:0,right:0,bottom:0,left:0}}function ds(e){return Object.assign({},cs(),e)}function fs(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var kf=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ds(typeof t!="number"?t:fs(t,Lt))};function _f(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,u=r.modifiersData.popperOffsets,l=Ce(r.placement),s=mo(l),d=[re,fe].indexOf(l)>=0,c=d?"height":"width";if(!(!a||!u)){var f=kf(o.padding,r),p=go(a),h=s==="y"?te:re,v=s==="y"?de:fe,y=r.rects.reference[c]+r.rects.reference[s]-u[s]-r.rects.popper[c],m=u[s]-r.rects.reference[s],b=Ht(a),g=b?s==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-m/2,O=f[h],E=g-p[c]-f[v],k=g/2-p[c]/2+S,P=Pt(O,k,E),V=s;r.modifiersData[n]=(t={},t[V]=P,t.centerOffset=P-k,t)}}function Nf(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||us(t.elements.popper,o)&&(t.elements.arrow=o))}const Tf={name:"arrow",enabled:!0,phase:"main",fn:_f,effect:Nf,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dt(e){return e.split("-")[1]}var Af={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pf(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:ut(r*o)/o||0,y:ut(n*o)/o||0}}function _a(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,u=e.offsets,l=e.position,s=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=u.x,h=p===void 0?0:p,v=u.y,y=v===void 0?0:v,m=typeof c=="function"?c({x:h,y}):{x:h,y};h=m.x,y=m.y;var b=u.hasOwnProperty("x"),g=u.hasOwnProperty("y"),S=re,O=te,E=window;if(d){var k=Ht(r),P="clientHeight",V="clientWidth";if(k===ae(r)&&(k=Ve(r),_e(k).position!=="static"&&l==="absolute"&&(P="scrollHeight",V="scrollWidth")),k=k,o===te||(o===re||o===fe)&&a===Bt){O=de;var j=f&&k===E&&E.visualViewport?E.visualViewport.height:k[P];y-=j-n.height,y*=s?1:-1}if(o===re||(o===te||o===de)&&a===Bt){S=fe;var N=f&&k===E&&E.visualViewport?E.visualViewport.width:k[V];h-=N-n.width,h*=s?1:-1}}var C=Object.assign({position:l},d&&Af),_=c===!0?Pf({x:h,y},ae(r)):{x:h,y};if(h=_.x,y=_.y,s){var R;return Object.assign({},C,(R={},R[O]=g?"0":"",R[S]=b?"0":"",R.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",R))}return Object.assign({},C,(t={},t[O]=g?y+"px":"",t[S]=b?h+"px":"",t.transform="",t))}function Rf(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,u=a===void 0?!0:a,l=r.roundOffsets,s=l===void 0?!0:l,d={placement:Ce(t.placement),variation:dt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_a(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_a(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const jf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Rf,data:{}};var tr={passive:!0};function If(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,u=n.resize,l=u===void 0?!0:u,s=ae(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(c){c.addEventListener("scroll",r.update,tr)}),l&&s.addEventListener("resize",r.update,tr),function(){a&&d.forEach(function(c){c.removeEventListener("scroll",r.update,tr)}),l&&s.removeEventListener("resize",r.update,tr)}}const Vf={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:If,data:{}};var $f={left:"right",right:"left",bottom:"top",top:"bottom"};function ar(e){return e.replace(/left|right|bottom|top/g,function(t){return $f[t]})}var Bf={start:"end",end:"start"};function Na(e){return e.replace(/start|end/g,function(t){return Bf[t]})}function yo(e){var t=ae(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function bo(e){return ct(Ve(e)).left+yo(e).scrollLeft}function Ff(e,t){var r=ae(e),n=Ve(e),o=r.visualViewport,a=n.clientWidth,u=n.clientHeight,l=0,s=0;if(o){a=o.width,u=o.height;var d=ss();(d||!d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:u,x:l+bo(e),y:s}}function Mf(e){var t,r=Ve(e),n=yo(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Ge(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),u=Ge(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+bo(e),s=-n.scrollTop;return _e(o||r).direction==="rtl"&&(l+=Ge(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:u,x:l,y:s}}function Co(e){var t=_e(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function ps(e){return["html","body","#document"].indexOf(we(e))>=0?e.ownerDocument.body:ue(e)&&Co(e)?e:ps(Er(e))}function Rt(e,t){var r;t===void 0&&(t=[]);var n=ps(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=ae(n),u=o?[a].concat(a.visualViewport||[],Co(n)?n:[]):n,l=t.concat(u);return o?l:l.concat(Rt(Er(u)))}function ro(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qf(e,t){var r=ct(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Ta(e,t,r){return t===is?ro(Ff(e,r)):He(t)?qf(t,r):ro(Mf(Ve(e)))}function Df(e){var t=Rt(Er(e)),r=["absolute","fixed"].indexOf(_e(e).position)>=0,n=r&&ue(e)?Ht(e):e;return He(n)?t.filter(function(o){return He(o)&&us(o,n)&&we(o)!=="body"}):[]}function Gf(e,t,r,n){var o=t==="clippingParents"?Df(e):[].concat(t),a=[].concat(o,[r]),u=a[0],l=a.reduce(function(s,d){var c=Ta(e,d,n);return s.top=Ge(c.top,s.top),s.right=cr(c.right,s.right),s.bottom=cr(c.bottom,s.bottom),s.left=Ge(c.left,s.left),s},Ta(e,u,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function hs(e){var t=e.reference,r=e.element,n=e.placement,o=n?Ce(n):null,a=n?dt(n):null,u=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,s;switch(o){case te:s={x:u,y:t.y-r.height};break;case de:s={x:u,y:t.y+t.height};break;case fe:s={x:t.x+t.width,y:l};break;case re:s={x:t.x-r.width,y:l};break;default:s={x:t.x,y:t.y}}var d=o?mo(o):null;if(d!=null){var c=d==="y"?"height":"width";switch(a){case st:s[d]=s[d]-(t[c]/2-r[c]/2);break;case Bt:s[d]=s[d]+(t[c]/2-r[c]/2);break}}return s}function Ft(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,u=a===void 0?e.strategy:a,l=r.boundary,s=l===void 0?sf:l,d=r.rootBoundary,c=d===void 0?is:d,f=r.elementContext,p=f===void 0?St:f,h=r.altBoundary,v=h===void 0?!1:h,y=r.padding,m=y===void 0?0:y,b=ds(typeof m!="number"?m:fs(m,Lt)),g=p===St?uf:St,S=e.rects.popper,O=e.elements[v?g:p],E=Gf(He(O)?O:O.contextElement||Ve(e.elements.popper),s,c,u),k=ct(e.elements.reference),P=hs({reference:k,element:S,placement:o}),V=ro(Object.assign({},S,P)),j=p===St?V:k,N={top:E.top-j.top+b.top,bottom:j.bottom-E.bottom+b.bottom,left:E.left-j.left+b.left,right:j.right-E.right+b.right},C=e.modifiersData.offset;if(p===St&&C){var _=C[o];Object.keys(N).forEach(function(R){var B=[fe,de].indexOf(R)>=0?1:-1,$=[te,de].indexOf(R)>=0?"y":"x";N[R]+=_[$]*B})}return N}function Lf(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,u=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,d=s===void 0?ls:s,c=dt(n),f=c?l?Ea:Ea.filter(function(v){return dt(v)===c}):Lt,p=f.filter(function(v){return d.indexOf(v)>=0});p.length===0&&(p=f);var h=p.reduce(function(v,y){return v[y]=Ft(e,{placement:y,boundary:o,rootBoundary:a,padding:u})[Ce(y)],v},{});return Object.keys(h).sort(function(v,y){return h[v]-h[y]})}function Hf(e){if(Ce(e)===ho)return[];var t=ar(e);return[Na(e),t,Na(t)]}function Uf(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,u=r.altAxis,l=u===void 0?!0:u,s=r.fallbackPlacements,d=r.padding,c=r.boundary,f=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,y=r.allowedAutoPlacements,m=t.options.placement,b=Ce(m),g=b===m,S=s||(g||!v?[ar(m)]:Hf(m)),O=[m].concat(S).reduce(function(Ae,ye){return Ae.concat(Ce(ye)===ho?Lf(t,{placement:ye,boundary:c,rootBoundary:f,padding:d,flipVariations:v,allowedAutoPlacements:y}):ye)},[]),E=t.rects.reference,k=t.rects.popper,P=new Map,V=!0,j=O[0],N=0;N<O.length;N++){var C=O[N],_=Ce(C),R=dt(C)===st,B=[te,de].indexOf(_)>=0,$=B?"width":"height",q=Ft(t,{placement:C,boundary:c,rootBoundary:f,altBoundary:p,padding:d}),Y=B?R?fe:re:R?de:te;E[$]>k[$]&&(Y=ar(Y));var T=ar(Y),I=[];if(a&&I.push(q[_]<=0),l&&I.push(q[Y]<=0,q[T]<=0),I.every(function(Ae){return Ae})){j=C,V=!1;break}P.set(C,I)}if(V)for(var F=v?3:1,ee=function(ye){var wt=O.find(function(Yt){var Be=P.get(Yt);if(Be)return Be.slice(0,ye).every(function(jr){return jr})});if(wt)return j=wt,"break"},me=F;me>0;me--){var Qe=ee(me);if(Qe==="break")break}t.placement!==j&&(t.modifiersData[n]._skip=!0,t.placement=j,t.reset=!0)}}const zf={name:"flip",enabled:!0,phase:"main",fn:Uf,requiresIfExists:["offset"],data:{_skip:!1}};function Aa(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Pa(e){return[te,fe,de,re].some(function(t){return e[t]>=0})}function Wf(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,u=Ft(t,{elementContext:"reference"}),l=Ft(t,{altBoundary:!0}),s=Aa(u,n),d=Aa(l,o,a),c=Pa(s),f=Pa(d);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Kf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Wf};function Yf(e,t,r){var n=Ce(e),o=[re,te].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=a[0],l=a[1];return u=u||0,l=(l||0)*o,[re,fe].indexOf(n)>=0?{x:l,y:u}:{x:u,y:l}}function Xf(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,u=ls.reduce(function(c,f){return c[f]=Yf(f,t.rects,a),c},{}),l=u[t.placement],s=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=u}const Jf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Xf};function Zf(e){var t=e.state,r=e.name;t.modifiersData[r]=hs({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Qf={name:"popperOffsets",enabled:!0,phase:"read",fn:Zf,data:{}};function ep(e){return e==="x"?"y":"x"}function tp(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,u=r.altAxis,l=u===void 0?!1:u,s=r.boundary,d=r.rootBoundary,c=r.altBoundary,f=r.padding,p=r.tether,h=p===void 0?!0:p,v=r.tetherOffset,y=v===void 0?0:v,m=Ft(t,{boundary:s,rootBoundary:d,padding:f,altBoundary:c}),b=Ce(t.placement),g=dt(t.placement),S=!g,O=mo(b),E=ep(O),k=t.modifiersData.popperOffsets,P=t.rects.reference,V=t.rects.popper,j=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,N=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(k){if(a){var R,B=O==="y"?te:re,$=O==="y"?de:fe,q=O==="y"?"height":"width",Y=k[O],T=Y+m[B],I=Y-m[$],F=h?-V[q]/2:0,ee=g===st?P[q]:V[q],me=g===st?-V[q]:-P[q],Qe=t.elements.arrow,Ae=h&&Qe?go(Qe):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cs(),wt=ye[B],Yt=ye[$],Be=Pt(0,P[q],Ae[q]),jr=S?P[q]/2-F-Be-wt-N.mainAxis:ee-Be-wt-N.mainAxis,pu=S?-P[q]/2+F+Be+Yt+N.mainAxis:me+Be+Yt+N.mainAxis,Ir=t.elements.arrow&&Ht(t.elements.arrow),hu=Ir?O==="y"?Ir.clientTop||0:Ir.clientLeft||0:0,zo=(R=C==null?void 0:C[O])!=null?R:0,vu=Y+jr-zo-hu,gu=Y+pu-zo,Wo=Pt(h?cr(T,vu):T,Y,h?Ge(I,gu):I);k[O]=Wo,_[O]=Wo-Y}if(l){var Ko,mu=O==="x"?te:re,yu=O==="x"?de:fe,Fe=k[E],Xt=E==="y"?"height":"width",Yo=Fe+m[mu],Xo=Fe-m[yu],Vr=[te,re].indexOf(b)!==-1,Jo=(Ko=C==null?void 0:C[E])!=null?Ko:0,Zo=Vr?Yo:Fe-P[Xt]-V[Xt]-Jo+N.altAxis,Qo=Vr?Fe+P[Xt]+V[Xt]-Jo-N.altAxis:Xo,ea=h&&Vr?Ef(Zo,Fe,Qo):Pt(h?Zo:Yo,Fe,h?Qo:Xo);k[E]=ea,_[E]=ea-Fe}t.modifiersData[n]=_}}const rp={name:"preventOverflow",enabled:!0,phase:"main",fn:tp,requiresIfExists:["offset"]};function np(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function op(e){return e===ae(e)||!ue(e)?yo(e):np(e)}function ap(e){var t=e.getBoundingClientRect(),r=ut(t.width)/e.offsetWidth||1,n=ut(t.height)/e.offsetHeight||1;return r!==1||n!==1}function ip(e,t,r){r===void 0&&(r=!1);var n=ue(t),o=ue(t)&&ap(t),a=Ve(t),u=ct(e,o,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((we(t)!=="body"||Co(a))&&(l=op(t)),ue(t)?(s=ct(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=bo(a))),{x:u.left+l.scrollLeft-s.x,y:u.top+l.scrollTop-s.y,width:u.width,height:u.height}}function lp(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var u=[].concat(a.requires||[],a.requiresIfExists||[]);u.forEach(function(l){if(!r.has(l)){var s=t.get(l);s&&o(s)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function sp(e){var t=lp(e);return bf.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function up(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function cp(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Ra={placement:"bottom",modifiers:[],strategy:"absolute"};function ja(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function dp(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?Ra:o;return function(l,s,d){d===void 0&&(d=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ra,a),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},f=[],p=!1,h={state:c,setOptions:function(b){var g=typeof b=="function"?b(c.options):b;y(),c.options=Object.assign({},a,c.options,g),c.scrollParents={reference:He(l)?Rt(l):l.contextElement?Rt(l.contextElement):[],popper:Rt(s)};var S=sp(cp([].concat(n,c.options.modifiers)));return c.orderedModifiers=S.filter(function(O){return O.enabled}),v(),h.update()},forceUpdate:function(){if(!p){var b=c.elements,g=b.reference,S=b.popper;if(ja(g,S)){c.rects={reference:ip(g,Ht(S),c.options.strategy==="fixed"),popper:go(S)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(N){return c.modifiersData[N.name]=Object.assign({},N.data)});for(var O=0;O<c.orderedModifiers.length;O++){if(c.reset===!0){c.reset=!1,O=-1;continue}var E=c.orderedModifiers[O],k=E.fn,P=E.options,V=P===void 0?{}:P,j=E.name;typeof k=="function"&&(c=k({state:c,options:V,name:j,instance:h})||c)}}}},update:up(function(){return new Promise(function(m){h.forceUpdate(),m(c)})}),destroy:function(){y(),p=!0}};if(!ja(l,s))return h;h.setOptions(d).then(function(m){!p&&d.onFirstUpdate&&d.onFirstUpdate(m)});function v(){c.orderedModifiers.forEach(function(m){var b=m.name,g=m.options,S=g===void 0?{}:g,O=m.effect;if(typeof O=="function"){var E=O({state:c,name:b,instance:h,options:S}),k=function(){};f.push(E||k)}})}function y(){f.forEach(function(m){return m()}),f=[]}return h}}var fp=[Vf,Qf,jf,Sf,Jf,zf,rp,Tf,Kf],pp=dp({defaultModifiers:fp});function hp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vs(e,t,r){return r&&hp(e,r),e}function ir(){return(ir=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function gs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ms(e,t){if(e==null)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}function Ia(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var ys=Object.prototype,bs=ys.toString,vp=ys.hasOwnProperty,Cs=/^\s*function (\w+)/;function Va(e){var t,r=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(r){var n=r.toString().match(Cs);return n?n[1]:""}return""}var Ue=function(e){var t,r;return Ia(e)!==!1&&typeof(t=e.constructor)=="function"&&Ia(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1},ws=function(e){return e},ne=ws;if(process.env.NODE_ENV!=="production"){var gp=typeof console<"u";ne=gp?function(e){console.warn("[VueTypes warn]: "+e)}:ws}var Mt=function(e,t){return vp.call(e,t)},mp=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},ft=Array.isArray||function(e){return bs.call(e)==="[object Array]"},pt=function(e){return bs.call(e)==="[object Function]"},dr=function(e){return Ue(e)&&Mt(e,"_vueTypes_name")},Ss=function(e){return Ue(e)&&(Mt(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return Mt(e,t)}))};function wo(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Ke(e,t,r){var n,o=!0,a="";n=Ue(e)?e:{type:e};var u=dr(n)?n._vueTypes_name+" - ":"";if(Ss(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t===void 0)return o;ft(n.type)?(o=n.type.some(function(f){return Ke(f,t)===!0}),a=n.type.map(function(f){return Va(f)}).join(" or ")):o=(a=Va(n))==="Array"?ft(t):a==="Object"?Ue(t):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?function(f){if(f==null)return"";var p=f.constructor.toString().match(Cs);return p?p[1]:""}(t)===a:t instanceof n.type}if(!o){var l=u+'value "'+t+'" should be of type "'+a+'"';return l}if(Mt(n,"validator")&&pt(n.validator)){var s=ne,d=[];if(ne=function(f){d.push(f)},o=n.validator(t),ne=s,!o){var c=(d.length>1?"* ":"")+d.join(`
12
12
  * `);return d.length=0,c}}return o}function ie(e,t){var r=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(o){return o!==void 0||this.default?pt(o)||Ke(this,o)===!0?(this.default=ft(o)?function(){return[].concat(o)}:Ue(o)?function(){return Object.assign({},o)}:o,this):(ne(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),n=r.validator;return pt(n)&&(r.validator=wo(n,r)),r}function Se(e,t){var r=ie(e,t);return Object.defineProperty(r,"validate",{value:function(n){return pt(this.validator)&&ne(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
13
13
  `+JSON.stringify(this)),this.validator=wo(n,this),this}})}function $a(e,t,r){var n,o,a=(n=t,o={},Object.getOwnPropertyNames(n).forEach(function(f){o[f]=Object.getOwnPropertyDescriptor(n,f)}),Object.defineProperties({},o));if(a._vueTypes_name=e,!Ue(r))return a;var u,l,s=r.validator,d=ms(r,["validator"]);if(pt(s)){var c=a.validator;c&&(c=(l=(u=c).__original)!==null&&l!==void 0?l:u),a.validator=wo(c?function(f){return c.call(this,f)&&s.call(this,f)}:s,a)}return Object.assign(a,d)}function kr(e){return e.replace(/^(?!\s*$)/gm," ")}var yp=function(){return Se("any",{})},bp=function(){return Se("function",{type:Function})},Cp=function(){return Se("boolean",{type:Boolean})},wp=function(){return Se("string",{type:String})},Sp=function(){return Se("number",{type:Number})},Op=function(){return Se("array",{type:Array})},xp=function(){return Se("object",{type:Object})},Ep=function(){return ie("integer",{type:Number,validator:function(e){return mp(e)}})},kp=function(){return ie("symbol",{validator:function(e){return typeof e=="symbol"}})};function _p(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return ie(e.name||"<<anonymous function>>",{validator:function(r){var n=e(r);return n||ne(this._vueTypes_name+" - "+t),n}})}function Np(e){if(!ft(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',r=e.reduce(function(n,o){if(o!=null){var a=o.constructor;n.indexOf(a)===-1&&n.push(a)}return n},[]);return ie("oneOf",{type:r.length>0?r:void 0,validator:function(n){var o=e.indexOf(n)!==-1;return o||ne(t),o}})}function Tp(e){if(!ft(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,r=[],n=0;n<e.length;n+=1){var o=e[n];if(Ss(o)){if(dr(o)&&o._vueTypes_name==="oneOf"){r=r.concat(o.type);continue}if(pt(o.validator)&&(t=!0),o.type!==!0&&o.type){r=r.concat(o.type);continue}}r.push(o)}return r=r.filter(function(a,u){return r.indexOf(a)===u}),ie("oneOfType",t?{type:r,validator:function(a){var u=[],l=e.some(function(s){var d=Ke(dr(s)&&s._vueTypes_name==="oneOf"?s.type||null:s,a);return typeof d=="string"&&u.push(d),d===!0});return l||ne("oneOfType - provided value does not match any of the "+u.length+` passed-in validators:
14
14
  `+kr(u.join(`
@@ -8,7 +8,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8
8
  monaco.config({ paths: { vs: '...' } })
9
9
 
10
10
  For more please check the link https://github.com/suren-atoyan/monaco-loader#config
11
- `},gi=lf(ff)(pi),df={config:uf},hf=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(a,s){return s(a)},o)}};function mi(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],mi(e[r],t[r]))}),fi(fi({},e),t)}var vf={type:"cancelation",msg:"operation is manually canceled"};function _n(e){var t=!1,r=new Promise(function(n,o){e.then(function(a){return t?o(vf):n(a)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var pf=of.create({config:af,isInitialized:!1,resolve:null,reject:null,monaco:null}),yi=Ic(pf,2),Qt=yi[0],Pr=yi[1];function gf(e){var t=df.config(e),r=t.monaco,n=$c(t,["monaco"]);Pr(function(o){return{config:mi(o.config,n),monaco:r}})}function mf(){var e=Qt(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(Pr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),_n(kn);if(window.monaco&&window.monaco.editor)return bi(window.monaco),e.resolve(window.monaco),_n(kn);hf(yf,Cf)(wf)}return _n(kn)}function yf(e){return document.body.appendChild(e)}function bf(e){var t=document.createElement("script");return e&&(t.src=e),t}function Cf(e){var t=Qt(function(n){var o=n.config,a=n.reject;return{config:o,reject:a}}),r=bf("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function wf(){var e=Qt(function(r){var n=r.config,o=r.resolve,a=r.reject;return{config:n,resolve:o,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){bi(r),e.resolve(r)},function(r){e.reject(r)})}function bi(e){Qt().monaco||Pr({monaco:e})}function Sf(){return Qt(function(e){var t=e.monaco;return t})}var kn=new Promise(function(e,t){return Pr({resolve:e,reject:t})}),xf={config:gf,init:mf,__getMonacoInstance:Sf};const Ci=Xe("CodeEditor",P({name:"CodeEditor",props:{value:{type:String,default:""},config:{type:Object,default:()=>({})},language:{type:String,default:"typescript"}},emits:["update:value"],setup(e,{emit:t}){const r=H("code-editor"),n=L({get(){return e.value||""},set(s){t("update:value",s)}}),o=M(null);let a=null;return Wt(()=>{xf.init().then(s=>{o.value&&(a=s.editor.create(o.value,Ua({value:n.value,language:e.language,automaticLayout:!0,minimap:{enabled:!1}},e.config)),a.onDidBlurEditorText(()=>{n.value=a.getValue()}))})}),Ma(()=>{a==null||a.dispose()}),{ns:r,el:o}},render(){return S("div",{ref:"el",class:this.ns.b()},null)}})),En=P({name:"FlexItem",props:{layout:Object},setup(e){return{ns:H("flex-item"),getStyle:()=>{const n={};if(e.layout){const{order:o,alignSelf:a,flexBasis:s,flexGrow:i,flexShrink:l}=e.layout;o!=null&&(n.order=o),a!=null&&(n["align-self"]=a),s!=null&&(n["flex-basis"]=s),i!=null&&(n["flex-grow"]=i),l!=null&&(n["flex-shrink"]=l)}return n}}},render(){var e,t;return S("div",{class:this.ns.b(),style:this.getStyle()},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}});function Of(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Fe(e)}const wi=P({name:"FlexContainer",props:{layout:Object},setup(e){return{ns:H("flex-container"),getStyle:()=>{const o={};if(e.layout){const{alignContent:a,alignItems:s,flexDirection:i,flexWrap:l,justifyContent:c}=e.layout;a!=null&&(o.alignContent=a),s!=null&&(o.alignItems=s),i!=null&&(o.flexDirection=i),l!=null&&(o.flexWrap=l),c!=null&&(o.justifyContent=c)}return o},getItemStyle:o=>{const a={};if(o){const{width:s,height:i}=o;s!=null&&(a.width=s),i!=null&&(a.height=i)}return a}}},render(){var t,r;let e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return e.length>0&&(e=e[0].children||[]),S("div",{class:this.ns.b(),style:this.getStyle()},[e.map(n=>{if(!n)return null;const o=n.props.model.flexItem;return S(En,{layout:o,style:this.getItemStyle(n.props.model)},Of(n)?n:{default:()=>[n]})})])}});function Si(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Fe(e)}const xi=P({name:"GridContainer",props:{layout:Object},setup(){return{ns:H("grid-container")}},render(){var n,o;let e;const t=this.layout||{};let r=((o=(n=this.$slots).default)==null?void 0:o.call(n))||[];return r.length>0&&(r=r[0].children||[]),S(T("a-row"),{class:this.ns.b(),wrap:!0,gutter:t.gutter},Si(e=r.map(a=>{if(!a)return null;const s=a.props.model.gridItem;return S(T("a-col"),{span:s?s.span??24:24,offset:s?s.offset??0:0},Si(a)?a:{default:()=>[a]})}))?e:{default:()=>[e]})}}),Oi=P({name:"ViewContainer",props:{context:{type:Object},params:{type:Object},modal:{type:Object,required:!0}},setup(){return{ns:H("view-container")}},render(){var e,t;return S("div",{class:this.ns.b()},[this.$slots.header?S("div",{class:this.ns.b("header")},[this.$slots.header()]):null,S("div",{class:this.ns.b("content")},[(t=(e=this.$slots).default)==null?void 0:t.call(e)]),this.$slots.footer?S("div",{class:this.ns.b("footer")},[this.$slots.footer()]):null])}}),_f=P({name:"GctFormLengthUnit",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,required:!0}},emits:["update:value"],setup(e){const t=H("form-length-unit"),r=new Wa(e.model),n=we();return{ns:t,c:r,val:n}},render(){return S(T("length-unit-editor"),ne({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]}),null)}});class kf{constructor(){z(this,"component","gct-form-length-unit")}}const Ef=J(le.LENGTH_UNIT,()=>new kf,_f),_i=P({name:"GctFormColor",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String}},emits:["update:value"],setup(){const e=H("form-color"),t=we();return{ns:e,val:t}},render(){return S(T("color-picker"),ne({pureColor:this.val,"onUpdate:pureColor":e=>this.val=e,format:"rgba",shape:"circle","use-type":"pure","picker-type":"chrome",class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]},this.model.props||{}),null)}});class ki{constructor(){z(this,"component","gct-form-color")}}const Af=J(st.COLOR,()=>new ki,_i),Tf=J(le.COLOR,()=>new ki,_i);class Rf{constructor(){z(this,"component","gct-form-check-switch")}}const jf=P({name:"GctFormCheckSwitch",props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:Boolean,default:!1}},emits:["update:value"],setup(e){const t=H("gct-form-check-switch"),r=new Cn(e.model),n=we();return{ns:t,c:r,val:n}},render(){return this.model.isSwitch?S("div",{class:[this.ns.b(),this.ns.m("switch"),this.ns.is("readonly",this.model.readonly)]},[S(T("a-switch"),ne({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)]):S(T("a-checkbox"),ne({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{},{class:[this.ns.b(),this.ns.m("checkbox"),this.ns.is("readonly",this.model.readonly)]}),{default:()=>[this.model.label]})}}),Pf=J(le.CHECK_SWITCH,()=>new Rf,jf);class $f{constructor(){z(this,"component","gct-form-i18n")}}const If=P({name:"GctFormI18n",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=H("gct-form-i18n"),r=Ka().item.i18nConfig,n=we(),o=L({get:()=>r?r.value:"",set:a=>{r&&(r.value=a)}});return{ns:e,val:n,i18nConfigValue:o}},render(){return S(T("i18n-select-input"),ne(this.model.props||{},{i18nText:this.val,"onUpdate:i18nText":e=>this.val=e,i18nConfig:this.i18nConfigValue,"onUpdate:i18nConfig":e=>this.i18nConfigValue=e,inputExtraProps:{showCount:!0,maxlength:32,disabled:this.c.state.disabled}}),null)}}),Ff=J(le.I18N,()=>new $f,If),Mf=P({name:"GctFormIconSelect",props:{value:{type:Object},model:{type:Object,required:!0}},emits:["update:value"],setup(e,{emit:t}){var l,c,u;const r=H("gct-form-icon-select"),n=M(e.value),o=M(((l=n.value)==null?void 0:l.icon)||e.model.defaultIcon),a=M(((c=n.value)==null?void 0:c.color)||e.model.defaultColor),s=M(((u=n.value)==null?void 0:u.background)||e.model.defaultBackground);pe(()=>e.value,f=>{n.value=f,f&&(o.value=f.icon,a.value=f.color)}),pe([o,a,s],()=>{n.value={icon:o.value,color:a.value},t("update:value",n.value)});const i=L(()=>{if(e.model.size)return{"--box-size":e.model.size+"px"}});return{ns:r,icon:o,color:a,background:s,nextPickerStyle:i}},render(){return S("div",{class:this.ns.b()},[S(T("icon-next-picker"),{value:this.icon,"onUpdate:value":e=>this.icon=e,color:this.color,"onUpdate:color":e=>this.color=e,background:"#f5f5f5",disabled:this.model.disabled,showColor:this.model.showColor!==!1,style:this.nextPickerStyle},null),this.model.label?S("span",{class:this.ns.e("title")},[this.model.label]):null])}});let qf=class{constructor(){z(this,"component","gct-form-icon-select")}};const Bf=J(le.ICON_SELECT,()=>new qf,Mf);class Ei{constructor(){z(this,"component","gct-form-number")}}const Ai=P({name:"GctFormNumber",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=H("gct-form-number"),t=we();return{ns:e,val:t}},render(){return S(T("a-input-number"),ne({value:this.val,"onUpdate:value":e=>this.val=e,class:this.ns.b(),prefix:this.model.prefix,suffix:this.model.suffix,addonBefore:this.model.addonBefore,addonAfter:this.model.addonAfter,placeholder:this.model.placeholder,max:this.model.max,min:this.model.min,precision:this.model.precision},this.model.props||{}),null)}}),Nf=J(st.NUMBER,()=>new Ei,Ai),Df=J(le.NUMBER,()=>new Ei,Ai);class Gf{constructor(){z(this,"component","gct-form-picker")}}const Lf=P({name:"GctFormPicker",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(e,{emit:t}){const r=H("gct-form-picker"),n=L({get(){return e.model.nameField?e.c.data[e.model.nameField]:""},set(i){e.model.nameField&&(e.c.data[e.model.nameField]=i)}}),o=L({get:()=>!e.c.state.options.find(l=>l.value===e.value)&&n.value?n.value:e.value,set:i=>{typeof i=="string"&&(i=i.trim()),!(typeof i!="object"&&e.value==i)&&t("update:value",i)}}),a=()=>e.c.loadDictionary();return o.value!=null&&e.c.loadDictionary(),{ns:r,val:o,nameVal:n,loadOptions:a,onChange:(i,l)=>{n.value=l.label}}},render(){return S(T("a-select"),ne({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),disabled:this.c.state.disabled,loading:this.c.state.loading,options:this.c.state.options,placeholder:this.model.placeholder,onDropdownVisibleChange:this.loadOptions,onChange:this.onChange}),null)}}),Hf=J(le.PICKER,()=>new Gf,Lf);class Vf{constructor(){z(this,"component","gct-form-select")}}const Uf=P({name:"GctFormSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=H("gct-form-select"),r=we(),n=L(()=>e.c.state.options&&e.c.state.options.length>0?e.c.state.options:[]);return{ns:t,val:r,options:n}},render(){return S(T("a-select"),ne({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),options:this.options,allowClear:!0,disabled:this.c.state.disabled}),null)}}),Wf=J(le.SELECT,()=>new Vf,Uf);class Kf{constructor(){z(this,"component","gct-form-Modal-select")}}const zf=P({name:"GctFormModalSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=H("gct-form-modal-select"),t=M("1"),r=we(),n=L({get(){return r.value||void 0},set(a){r.value=a}}),o=L(()=>[{label:"默认",options:[{value:"1",label:"模型一"},{value:"2",label:"模型二"}]},{label:"产品建模",options:[{value:"3",label:"产品信息"},{value:"4",label:"产品类型"}]}]);return{ns:e,val:n,options:o,modelCategory:t}},render(){return S(T("a-input-group"),{class:this.ns.b()},{default:()=>[S(T("a-form-item-rest"),null,{default:()=>[S(T("a-select"),ne({value:this.modelCategory,"onUpdate:value":e=>this.modelCategory=e},this.model.props||{},{placeholder:"请选择",options:[{value:"1",label:"实体"},{value:"2",label:"视图"},{value:"3",label:"数据"}],disabled:this.c.state.disabled}),null)]}),S(T("a-select"),ne({class:this.ns.e("select"),value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{placeholder:"请选择",options:this.options,allowClear:!0,disabled:this.c.state.disabled}),null)]})}}),Yf=J(le.MODEL_SELECT,()=>new Kf,zf);class Xf{constructor(){z(this,"component","gct-form-field-select")}}const Jf={class:"gct-box"},Ti=((e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r})(P({__name:"gct-model-select",props:{value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,n=t,o=L({get(){return r.value},set(c){n("update:value",c)}}),a=M([{key:0,title:"公司名称"},{key:1,title:"ID"},{key:2,title:"创建人"},{key:3,title:"创建部门"},{key:4,title:"修改时间"},{key:5,title:"修改人"},{key:6,title:"修改部门"}]),s=M([]),i=(c,u)=>{console.log()};function l(){o.value=!1}return(c,u)=>{const f=T("a-transfer"),d=T("a-modal");return $(),te(d,{visible:o.value,"onUpdate:visible":u[1]||(u[1]=h=>o.value=h),width:"600px",title:"关联模型字段","ok-text":"确认","cancel-text":"取消",onOk:l},{default:_r(()=>[u[2]||(u[2]=k("div",null,"所属模型:公司",-1)),k("div",Jf,[S(f,{"target-keys":s.value,"onUpdate:targetKeys":u[0]||(u[0]=h=>s.value=h),locale:{itemUnit:"项已选",itemsUnit:"项未选",searchPlaceholder:"请输入搜索内容"},"data-source":a.value,"show-search":"","filter-option":i,render:h=>h.title},null,8,["target-keys","data-source","render"])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-bff0c27a"]]),Zf=P({name:"GctFormFieldSelect",components:{modal:Ti},props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=H("gct-form-field-select"),t=M(!1);return{ns:e,visible:t}},render(){return S("div",null,[S(T("a-button"),{onClick:()=>this.visible=!0,block:!0},{default:()=>[kr("选择模型字段")]}),S(Ti,{value:this.visible,"onUpdate:value":e=>this.visible=e},null)])}}),Qf=J(le.Field_SELECT,()=>new Xf,Zf);class ed{constructor(){z(this,"component","gct-form-span")}}const td=P({name:"GctFormSpan",props:{c:{type:Object,required:!0},itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},setup(e){const t=H("form-span"),{model:r,itemModel:n,c:o}=qa(e);function a(){const{isSuccessRef:i}=za(e.value);i.value&&li.success(_gct.t("sys.copySuccess"))}o.value.loadDictionary();const s=L(()=>{if(r.value.format&&typeof r.value.format=="function")return r.value.format(o.value.data,n.value,o.value);if(e.value==null||e.value==="")return e.value;if(n.value.dictionary){const l=(n.value.dictionary.items||[]).find(c=>c.value==e.value);if(l)return l.label}if(o.value.state.options.length>0){const i=o.value.state.options.find(l=>l.value==e.value);if(i)return i.label}return e.value});return{ns:t,val:s,handleClipboardKey:a}},render(){return S("div",{class:this.ns.b()},[S("span",{class:this.ns.e("info")},[this.val]),this.model.copy&&S("span",{class:this.ns.e("copy")},[S("i",{class:"iconfont icon-fuzhi primary-gct",onClick:this.handleClipboardKey},null)])])}}),rd=J(le.SPAN,()=>new ed,td);class Ri{constructor(){z(this,"component","gct-form-switch")}}const ji=P({name:"GctFormSwitch",props:{model:{type:Object,required:!0},value:{type:String,default:""}},setup(){const e=H("gct-form-switch"),t=we();return{ns:e,val:t}},render(){return S("div",{class:this.ns.b()},[S(T("a-switch"),ne({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)])}}),nd=J(st.SWITCH,()=>new Ri,ji),od=J(le.SWITCH,()=>new Ri,ji);class Pi{constructor(){z(this,"component","gct-form-text")}}const $i=P({name:"GctFormText",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=H("gct-form-text"),r=new Cn(e.model),n=Ya(e.model.prefix||e.model.addonBefore,e.model.suffix||e.model.addonAfter);return{ns:t,c:r,val:n}},render(){return S(T("a-select"),ne({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),prefix:this.model.prefix,suffix:this.model.suffix,addonBefore:this.model.addonBefore,addonAfter:this.model.addonAfter,placeholder:this.model.placeholder,"show-count":this.model.max!=null,maxlength:this.model.max}),null)}}),ad=J(st.TEXT,()=>new Pi,$i),id=J(le.TEXT,()=>new Pi,$i);class ld{constructor(){z(this,"component","gct-form-textarea")}}const sd=P({name:"GctFormTextarea",props:{model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(){const e=H("gct-form-textarea"),t=we();return{ns:e,val:t}},render(){return S(T("a-textarea"),ne({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),"auto-size":this.model.autoSize,"show-count":this.model.max!=null,maxlength:this.model.max,placeholder:this.model.placeholder}),null)}}),ud=J(le.TEXTAREA,()=>new ld,sd);function cd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Fe(e)}const Ii=P({name:"GctFormRadio",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=H("gct-form-radio"),t=we();return{ns:e,val:t}},render(){const e={...this.model.props||{},class:[this.ns.b()],allowClear:!0,disabled:this.c.state.disabled};if(this.model.buttonMode){let t;return e.class.push(this.ns.m("button")),S(Sn,ne({value:this.val,"onUpdate:value":r=>this.val=r,size:"small","button-style":"solid"},e),cd(t=this.c.state.options.map(r=>S(si,{key:r.value,value:r.value},{default:()=>[r.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),S(Sn,ne({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let Fi=class{constructor(){z(this,"component","gct-form-radio")}};const fd=J(st.RADIO,()=>new Fi,Ii),dd=J(le.RADIO,()=>new Fi,Ii),hd=P({name:"GctFormInfo",props:{value:{type:String,default:""},model:{type:Object,required:!0}},emits:["update:value"],setup(){const e=H("gct-form-info"),t=we();return{ns:e,val:t}},render(){return S("div",{class:this.ns.b()},[this.model.icon?S("span",{class:this.ns.e("icon")},[S("i",{class:`iconfont ${this.model.icon}`},null)]):null,S("span",{class:this.ns.e("content")},[this.val||this.model.content])])}});let vd=class{constructor(){z(this,"component","gct-form-info")}};const pd=J(le.INFO,()=>new vd,hd),Mi=P({name:"GctFormCheckbox",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:t}){const r=H("gct-form-checkbox"),n=we(),o=L(()=>n.value),a=L(()=>On(e.c.state.options));return{ns:r,checked:o,onChange:i=>{a.value.forEach(l=>{e.model.minLength&&i.length<=e.model.minLength&&i.includes(l.value)?l.disabled=!0:l.disabled=!1,l.checked=i.includes(l.value)}),t("update:value",i)},options:a}},render(){const e={...this.model.props||{},class:[this.ns.b(),this.ns.m("checkbox"),this.model.layout==="column"&&"isColumn"],disabled:this.c.state.disabled};return S(ui,ne({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class qi{constructor(){z(this,"component","gct-form-checkbox")}}const gd=J(st.CHECKBOX,()=>new qi,Mi),md=J(le.CHECKBOX,()=>new qi,Mi);var Bi=require("../internals/global-this"),Ni=require("../internals/function-call"),An=require("../internals/array-buffer-view-core"),yd=require("../internals/length-of-array-like"),bd=require("../internals/to-offset"),Cd=require("../internals/to-object"),Di=require("../internals/fails"),wd=Bi.RangeError,Tn=Bi.Int8Array,Gi=Tn&&Tn.prototype,Li=Gi&&Gi.set,Sd=An.aTypedArray,xd=An.exportTypedArrayMethod,Rn=!Di(function(){var e=new Uint8ClampedArray(2);return Ni(Li,e,{length:1,0:3},1),e[1]!==3}),Od=Rn&&An.NATIVE_ARRAY_BUFFER_VIEWS&&Di(function(){var e=new Tn(2);return e.set(1),e.set("2",1),e[0]!==0||e[1]!==2});xd("set",function(t){Sd(this);var r=bd(arguments.length>1?arguments[1]:void 0,1),n=Cd(t);if(Rn)return Ni(Li,this,n,r);var o=this.length,a=yd(n),s=0;if(a+r>o)throw new wd("Wrong length");for(;s<a;)this[r+s]=n[s++]},!Rn||Od);function Hi(e){return Na()?(Da(e),!0):!1}function ut(e){return typeof e=="function"?e():Ba(e)}const $r=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const _d=Object.prototype.toString,kd=e=>_d.call(e)==="[object Object]",_t=()=>{},Ed=Ad();function Ad(){var e,t;return $r&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Vi(e,t){function r(...n){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(a)})}return r}const Ui=e=>e();function Td(e,t={}){let r,n,o=_t;const a=i=>{clearTimeout(i),o(),o=_t};return i=>{const l=ut(e),c=ut(t.maxWait);return r&&a(r),l<=0||c!==void 0&&c<=0?(n&&(a(n),n=null),Promise.resolve(i())):new Promise((u,f)=>{o=t.rejectOnCancel?f:u,c&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,u(i())},c)),r=setTimeout(()=>{n&&a(n),n=null,u(i())},l)})}}function Rd(e=Ui){const t=M(!0);function r(){t.value=!1}function n(){t.value=!0}const o=(...a)=>{t.value&&e(...a)};return{isActive:pn(t),pause:r,resume:n,eventFilter:o}}function jd(e){let t;function r(){return t||(t=e()),t}return r.reset=async()=>{const n=t;t=void 0,n&&await n},r}function Pd(e){return Er()}function He(e,t=200,r={}){return Vi(Td(t,r),e)}function $d(e,t,r={}){const{eventFilter:n=Ui,...o}=r;return pe(e,Vi(n,t),o)}function Id(e,t,r={}){const{eventFilter:n,...o}=r,{eventFilter:a,pause:s,resume:i,isActive:l}=Rd(n);return{stop:$d(e,t,{...o,eventFilter:a}),pause:s,resume:i,isActive:l}}function ct(e,t=!0,r){Pd()?Wt(e,r):t?e():Kt(e)}function Fd(e,t,r={}){const{immediate:n=!0}=r,o=M(!1);let a=null;function s(){a&&(clearTimeout(a),a=null)}function i(){o.value=!1,s()}function l(...c){s(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=null,e(...c)},ut(t))}return n&&(o.value=!0,$r&&l()),Hi(i),{isPending:pn(o),start:l,stop:i}}function fe(e,t,r){const n=pe(e,(o,a,s)=>{o&&(r!=null&&r.once&&Kt(()=>n()),t(o,a,s))},{...r,once:!1});return n}function er(e){var t;const r=ut(e);return(t=r==null?void 0:r.$el)!=null?t:r}const tr=$r?window:void 0,Wi=$r?window.navigator:void 0;function ft(...e){let t,r,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,o]=e,t=tr):[t,r,n,o]=e,!t)return _t;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],s=()=>{a.forEach(u=>u()),a.length=0},i=(u,f,d,h)=>(u.addEventListener(f,d,h),()=>u.removeEventListener(f,d,h)),l=pe(()=>[er(t),ut(o)],([u,f])=>{if(s(),!u)return;const d=kd(f)?{...f}:f;a.push(...r.flatMap(h=>n.map(v=>i(u,h,v,d))))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return Hi(c),c}let Ki=!1;function Md(e,t,r={}){const{window:n=tr,ignore:o=[],capture:a=!0,detectIframe:s=!1}=r;if(!n)return _t;Ed&&!Ki&&(Ki=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",_t)),n.document.documentElement.addEventListener("click",_t));let i=!0;const l=d=>o.some(h=>{if(typeof h=="string")return Array.from(n.document.querySelectorAll(h)).some(v=>v===d.target||d.composedPath().includes(v));{const v=er(h);return v&&(d.target===v||d.composedPath().includes(v))}}),u=[ft(n,"click",d=>{const h=er(e);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(i=!l(d)),!i){i=!0;return}t(d)}},{passive:!0,capture:a}),ft(n,"pointerdown",d=>{const h=er(e);i=!l(d)&&!!(h&&!d.composedPath().includes(h))},{passive:!0}),s&&ft(n,"blur",d=>{setTimeout(()=>{var h;const v=er(e);((h=n.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(v!=null&&v.contains(n.document.activeElement))&&t(d)},0)})].filter(Boolean);return()=>u.forEach(d=>d())}function qd(){const e=M(!1),t=Er();return t&&Wt(()=>{e.value=!0},t),e}function zi(e){const t=qd();return L(()=>(t.value,!!e()))}function Yi(e,t={}){const{controls:r=!1,navigator:n=Wi}=t,o=zi(()=>n&&"permissions"in n);let a;const s=typeof e=="string"?{name:e}:e,i=M(),l=()=>{a&&(i.value=a.state)},c=jd(async()=>{if(o.value){if(!a)try{a=await n.permissions.query(s),ft(a,"change",l),l()}catch{i.value="prompt"}return a}});return c(),r?{state:i,isSupported:o,query:c}:i}function Bd(e={}){const{navigator:t=Wi,read:r=!1,source:n,copiedDuring:o=1500,legacy:a=!1}=e,s=zi(()=>t&&"clipboard"in t),i=Yi("clipboard-read"),l=Yi("clipboard-write"),c=L(()=>s.value||a),u=M(""),f=M(!1),d=Fd(()=>f.value=!1,o);function h(){s.value&&y(i.value)?t.clipboard.readText().then(p=>{u.value=p}):u.value=g()}c.value&&r&&ft(["copy","cut"],h);async function v(p=ut(n)){c.value&&p!=null&&(s.value&&y(l.value)?await t.clipboard.writeText(p):m(p),u.value=p,f.value=!0,d.start())}function m(p){const C=document.createElement("textarea");C.value=p??"",C.style.position="absolute",C.style.opacity="0",document.body.appendChild(C),C.select(),document.execCommand("copy"),C.remove()}function g(){var p,C,w;return(w=(C=(p=document==null?void 0:document.getSelection)==null?void 0:p.call(document))==null?void 0:C.toString())!=null?w:""}function y(p){return p==="granted"||p==="prompt"}return{isSupported:c,text:u,copied:f,copy:v}}const Ir=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fr="__vueuse_ssr_handlers__",Nd=Dd();function Dd(){return Fr in Ir||(Ir[Fr]=Ir[Fr]||{}),Ir[Fr]}function Gd(e,t){return Nd[e]||t}function Ld(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Hd={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Xi="vueuse-storage";function Vd(e,t,r,n={}){var o;const{flush:a="pre",deep:s=!0,listenToStorageChanges:i=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=tr,eventFilter:d,onError:h=R=>{console.error(R)},initOnMounted:v}=n,m=(u?Ga:M)(typeof t=="function"?t():t);if(!r)try{r=Gd("getDefaultStorage",()=>{var R;return(R=tr)==null?void 0:R.localStorage})()}catch(R){h(R)}if(!r)return m;const g=ut(t),y=Ld(g),p=(o=n.serializer)!=null?o:Hd[y],{pause:C,resume:w}=Id(m,()=>E(m.value),{flush:a,deep:s,eventFilter:d});f&&i&&ct(()=>{ft(f,"storage",D),ft(f,Xi,B),v&&D()}),v||D();function _(R,b){f&&f.dispatchEvent(new CustomEvent(Xi,{detail:{key:e,oldValue:R,newValue:b,storageArea:r}}))}function E(R){try{const b=r.getItem(e);if(R==null)_(b,null),r.removeItem(e);else{const A=p.write(R);b!==A&&(r.setItem(e,A),_(b,A))}}catch(b){h(b)}}function F(R){const b=R?R.newValue:r.getItem(e);if(b==null)return l&&g!=null&&r.setItem(e,p.write(g)),g;if(!R&&c){const A=p.read(b);return typeof c=="function"?c(A,g):y==="object"&&!Array.isArray(A)?{...g,...A}:A}else return typeof b!="string"?b:p.read(b)}function D(R){if(!(R&&R.storageArea!==r)){if(R&&R.key==null){m.value=g;return}if(!(R&&R.key!==e)){C();try{(R==null?void 0:R.newValue)!==p.write(m.value)&&(m.value=F(R))}catch(b){h(b)}finally{R?Kt(w):w()}}}}function B(R){D(R.detail)}return m}function jn(e,t,r={}){const{window:n=tr}=r;return Vd(e,t,n==null?void 0:n.localStorage,r)}function Mr(e){"@babel/helpers - typeof";return Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mr(e)}var Ud=/^\s+/,Wd=/\s+$/;function x(e,t){if(e=e||"",t=t||{},e instanceof x)return e;if(!(this instanceof x))return new x(e,t);var r=Kd(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}x.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,o,a,s,i;return r=t.r/255,n=t.g/255,o=t.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),n<=.03928?s=n/12.92:s=Math.pow((n+.055)/1.055,2.4),o<=.03928?i=o/12.92:i=Math.pow((o+.055)/1.055,2.4),.2126*a+.7152*s+.0722*i},setAlpha:function(t){return this._a=rl(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Zi(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Zi(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+o+"%)":"hsva("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=Ji(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Ji(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+o+"%)":"hsla("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return Qi(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return Jd(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Z(this._r,255)*100)+"%",g:Math.round(Z(this._g,255)*100)+"%",b:Math.round(Z(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Z(this._r,255)*100)+"%, "+Math.round(Z(this._g,255)*100)+"%, "+Math.round(Z(this._b,255)*100)+"%)":"rgba("+Math.round(Z(this._r,255)*100)+"%, "+Math.round(Z(this._g,255)*100)+"%, "+Math.round(Z(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:uh[Qi(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+el(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var a=x(t);n="#"+el(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,o=this._a<1&&this._a>=0,a=!r&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return x(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(th,arguments)},brighten:function(){return this._applyModification(rh,arguments)},darken:function(){return this._applyModification(nh,arguments)},desaturate:function(){return this._applyModification(Zd,arguments)},saturate:function(){return this._applyModification(Qd,arguments)},greyscale:function(){return this._applyModification(eh,arguments)},spin:function(){return this._applyModification(oh,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(lh,arguments)},complement:function(){return this._applyCombination(ah,arguments)},monochromatic:function(){return this._applyCombination(sh,arguments)},splitcomplement:function(){return this._applyCombination(ih,arguments)},triad:function(){return this._applyCombination(tl,[3])},tetrad:function(){return this._applyCombination(tl,[4])}},x.fromRatio=function(e,t){if(Mr(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=rr(e[n]));e=r}return x(e,t)};function Kd(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,a=null,s=!1,i=!1;return typeof e=="string"&&(e=hh(e)),Mr(e)=="object"&&(Ve(e.r)&&Ve(e.g)&&Ve(e.b)?(t=zd(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ve(e.h)&&Ve(e.s)&&Ve(e.v)?(n=rr(e.s),o=rr(e.v),t=Xd(e.h,n,o),s=!0,i="hsv"):Ve(e.h)&&Ve(e.s)&&Ve(e.l)&&(n=rr(e.s),a=rr(e.l),t=Yd(e.h,n,a),s=!0,i="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=rl(r),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function zd(e,t,r){return{r:Z(e,255)*255,g:Z(t,255)*255,b:Z(r,255)*255}}function Ji(e,t,r){e=Z(e,255),t=Z(t,255),r=Z(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,s,i=(n+o)/2;if(n==o)a=s=0;else{var l=n-o;switch(s=i>.5?l/(2-n-o):l/(n+o),n){case e:a=(t-r)/l+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s,l:i}}function Yd(e,t,r){var n,o,a;e=Z(e,360),t=Z(t,100),r=Z(r,100);function s(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}if(t===0)n=o=a=r;else{var i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;n=s(l,i,e+1/3),o=s(l,i,e),a=s(l,i,e-1/3)}return{r:n*255,g:o*255,b:a*255}}function Zi(e,t,r){e=Z(e,255),t=Z(t,255),r=Z(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,s,i=n,l=n-o;if(s=n===0?0:l/n,n==o)a=0;else{switch(n){case e:a=(t-r)/l+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s,v:i}}function Xd(e,t,r){e=Z(e,360)*6,t=Z(t,100),r=Z(r,100);var n=Math.floor(e),o=e-n,a=r*(1-t),s=r*(1-o*t),i=r*(1-(1-o)*t),l=n%6,c=[r,s,a,a,i,r][l],u=[i,r,r,s,a,a][l],f=[a,a,i,r,r,s][l];return{r:c*255,g:u*255,b:f*255}}function Qi(e,t,r,n){var o=[Pe(Math.round(e).toString(16)),Pe(Math.round(t).toString(16)),Pe(Math.round(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Jd(e,t,r,n,o){var a=[Pe(Math.round(e).toString(16)),Pe(Math.round(t).toString(16)),Pe(Math.round(r).toString(16)),Pe(nl(n))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function el(e,t,r,n){var o=[Pe(nl(n)),Pe(Math.round(e).toString(16)),Pe(Math.round(t).toString(16)),Pe(Math.round(r).toString(16))];return o.join("")}x.equals=function(e,t){return!e||!t?!1:x(e).toRgbString()==x(t).toRgbString()},x.random=function(){return x.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Zd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s-=t/100,r.s=qr(r.s),x(r)}function Qd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s+=t/100,r.s=qr(r.s),x(r)}function eh(e){return x(e).desaturate(100)}function th(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l+=t/100,r.l=qr(r.l),x(r)}function rh(e,t){t=t===0?0:t||10;var r=x(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),x(r)}function nh(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l-=t/100,r.l=qr(r.l),x(r)}function oh(e,t){var r=x(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,x(r)}function ah(e){var t=x(e).toHsl();return t.h=(t.h+180)%360,x(t)}function tl(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=x(e).toHsl(),n=[x(e)],o=360/t,a=1;a<t;a++)n.push(x({h:(r.h+a*o)%360,s:r.s,l:r.l}));return n}function ih(e){var t=x(e).toHsl(),r=t.h;return[x(e),x({h:(r+72)%360,s:t.s,l:t.l}),x({h:(r+216)%360,s:t.s,l:t.l})]}function lh(e,t,r){t=t||6,r=r||30;var n=x(e).toHsl(),o=360/r,a=[x(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(x(n));return a}function sh(e,t){t=t||6;for(var r=x(e).toHsv(),n=r.h,o=r.s,a=r.v,s=[],i=1/t;t--;)s.push(x({h:n,s:o,v:a})),a=(a+i)%1;return s}x.mix=function(e,t,r){r=r===0?0:r||50;var n=x(e).toRgb(),o=x(t).toRgb(),a=r/100,s={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return x(s)},x.readability=function(e,t){var r=x(e),n=x(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},x.isReadable=function(e,t,r){var n=x.readability(e,t),o,a;switch(a=!1,o=vh(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a},x.mostReadable=function(e,t,r){var n=null,o=0,a,s,i,l;r=r||{},s=r.includeFallbackColors,i=r.level,l=r.size;for(var c=0;c<t.length;c++)a=x.readability(e,t[c]),a>o&&(o=a,n=x(t[c]));return x.isReadable(e,n,{level:i,size:l})||!s?n:(r.includeFallbackColors=!1,x.mostReadable(e,["#fff","#000"],r))};var Pn=x.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},uh=x.hexNames=ch(Pn);function ch(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function rl(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Z(e,t){fh(e)&&(e="100%");var r=dh(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function qr(e){return Math.min(1,Math.max(0,e))}function Se(e){return parseInt(e,16)}function fh(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function dh(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Pe(e){return e.length==1?"0"+e:""+e}function rr(e){return e<=1&&(e=e*100+"%"),e}function nl(e){return Math.round(parseFloat(e)*255).toString(16)}function ol(e){return Se(e)/255}var $e=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ve(e){return!!$e.CSS_UNIT.exec(e)}function hh(e){e=e.replace(Ud,"").replace(Wd,"").toLowerCase();var t=!1;if(Pn[e])e=Pn[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=$e.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=$e.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=$e.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=$e.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=$e.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=$e.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=$e.hex8.exec(e))?{r:Se(r[1]),g:Se(r[2]),b:Se(r[3]),a:ol(r[4]),format:t?"name":"hex8"}:(r=$e.hex6.exec(e))?{r:Se(r[1]),g:Se(r[2]),b:Se(r[3]),format:t?"name":"hex"}:(r=$e.hex4.exec(e))?{r:Se(r[1]+""+r[1]),g:Se(r[2]+""+r[2]),b:Se(r[3]+""+r[3]),a:ol(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=$e.hex3.exec(e))?{r:Se(r[1]+""+r[1]),g:Se(r[2]+""+r[2]),b:Se(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function vh(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var al=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Br={},il;function ph(){if(il)return Br;il=1;var e=e||{};e.stringify=function(){var t={"visit_linear-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-linear-gradient":function(r){return t.visit_gradient(r)},"visit_radial-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-radial-gradient":function(r){return t.visit_gradient(r)},visit_gradient:function(r){var n=t.visit(r.orientation);return n&&(n+=", "),r.type+"("+n+t.visit(r.colorStops)+")"},visit_shape:function(r){var n=r.value,o=t.visit(r.at),a=t.visit(r.style);return a&&(n+=" "+a),o&&(n+=" at "+o),n},"visit_default-radial":function(r){var n="",o=t.visit(r.at);return o&&(n+=o),n},"visit_extent-keyword":function(r){var n=r.value,o=t.visit(r.at);return o&&(n+=" at "+o),n},"visit_position-keyword":function(r){return r.value},visit_position:function(r){return t.visit(r.value.x)+" "+t.visit(r.value.y)},"visit_%":function(r){return r.value+"%"},visit_em:function(r){return r.value+"em"},visit_px:function(r){return r.value+"px"},visit_literal:function(r){return t.visit_color(r.value,r)},visit_hex:function(r){return t.visit_color("#"+r.value,r)},visit_rgb:function(r){return t.visit_color("rgb("+r.value.join(", ")+")",r)},visit_rgba:function(r){return t.visit_color("rgba("+r.value.join(", ")+")",r)},visit_color:function(r,n){var o=r,a=t.visit(n.length);return a&&(o+=" "+a),o},visit_angular:function(r){return r.value+"deg"},visit_directional:function(r){return"to "+r.value},visit_array:function(r){var n="",o=r.length;return r.forEach(function(a,s){n+=t.visit(a),s<o-1&&(n+=", ")}),n},visit:function(r){if(!r)return"";var n="";if(r instanceof Array)return t.visit_array(r,n);if(r.type){var o=t["visit_"+r.type];if(o)return o(r);throw Error("Missing visitor visit_"+r.type)}else throw Error("Invalid node.")}};return function(r){return t.visit(r)}}();var e=e||{};return e.parse=function(){var t={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},r="";function n(j){var N=new Error(r+": "+j);throw N.source=r,N}function o(){var j=a();return r.length>0&&n("Invalid input not EOF"),j}function a(){return w(s)}function s(){return i("linear-gradient",t.linearGradient,c)||i("repeating-linear-gradient",t.repeatingLinearGradient,c)||i("radial-gradient",t.radialGradient,d)||i("repeating-radial-gradient",t.repeatingRadialGradient,d)}function i(j,N,W){return l(N,function(be){var De=W();return De&&(X(t.comma)||n("Missing comma before color stops")),{type:j,orientation:De,colorStops:w(_)}})}function l(j,N){var W=X(j);if(W){X(t.startCall)||n("Missing (");var be=N(W);return X(t.endCall)||n("Missing )"),be}}function c(){return u()||f()}function u(){return G("directional",t.sideOrCorner,1)}function f(){return G("angular",t.angleValue,1)}function d(){var j,N=h(),W;return N&&(j=[],j.push(N),W=r,X(t.comma)&&(N=h(),N?j.push(N):r=W)),j}function h(){var j=v()||m();if(j)j.at=y();else{var N=g();if(N){j=N;var W=y();W&&(j.at=W)}else{var be=p();be&&(j={type:"default-radial",at:be})}}return j}function v(){var j=G("shape",/^(circle)/i,0);return j&&(j.style=U()||g()),j}function m(){var j=G("shape",/^(ellipse)/i,0);return j&&(j.style=A()||g()),j}function g(){return G("extent-keyword",t.extentKeywords,1)}function y(){if(G("position",/^at/,0)){var j=p();return j||n("Missing positioning value"),j}}function p(){var j=C();if(j.x||j.y)return{type:"position",value:j}}function C(){return{x:A(),y:A()}}function w(j){var N=j(),W=[];if(N)for(W.push(N);X(t.comma);)N=j(),N?W.push(N):n("One extra comma");return W}function _(){var j=E();return j||n("Expected color definition"),j.length=A(),j}function E(){return D()||R()||B()||F()}function F(){return G("literal",t.literalColor,0)}function D(){return G("hex",t.hexColor,1)}function B(){return l(t.rgbColor,function(){return{type:"rgb",value:w(b)}})}function R(){return l(t.rgbaColor,function(){return{type:"rgba",value:w(b)}})}function b(){return X(t.number)[1]}function A(){return G("%",t.percentageValue,1)||q()||U()}function q(){return G("position-keyword",t.positionKeywords,1)}function U(){return G("px",t.pixelValue,1)||G("em",t.emValue,1)}function G(j,N,W){var be=X(N);if(be)return{type:j,value:be[W]}}function X(j){var N,W;return W=/^[\n\r\t\s]+/.exec(r),W&&ce(W[0].length),N=j.exec(r),N&&ce(N[0].length),N}function ce(j){r=r.substr(j)}return function(j){return r=j.toString(),o()}}(),Br.parse=e.parse,Br.stringify=e.stringify,Br}var ll=ph(),ge="top",ke="bottom",Ee="right",me="left",$n="auto",nr=[ge,ke,Ee,me],kt="start",or="end",gh="clippingParents",sl="viewport",ar="popper",mh="reference",ul=nr.reduce(function(e,t){return e.concat([t+"-"+kt,t+"-"+or])},[]),cl=[].concat(nr,[$n]).reduce(function(e,t){return e.concat([t,t+"-"+kt,t+"-"+or])},[]),yh="beforeRead",bh="read",Ch="afterRead",wh="beforeMain",Sh="main",xh="afterMain",Oh="beforeWrite",_h="write",kh="afterWrite",Eh=[yh,bh,Ch,wh,Sh,xh,Oh,_h,kh];function Me(e){return e?(e.nodeName||"").toLowerCase():null}function xe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dt(e){var t=xe(e).Element;return e instanceof t||e instanceof Element}function Ae(e){var t=xe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function In(e){if(typeof ShadowRoot>"u")return!1;var t=xe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ah(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!Ae(a)||!Me(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(s){var i=o[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function Th(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),i=s.reduce(function(l,c){return l[c]="",l},{});!Ae(o)||!Me(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const Rh={name:"applyStyles",enabled:!0,phase:"write",fn:Ah,effect:Th,requires:["computeStyles"]};function qe(e){return e.split("-")[0]}var ht=Math.max,Nr=Math.min,Et=Math.round;function Fn(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function fl(){return!/^((?!chrome|android).)*safari/i.test(Fn())}function At(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Ae(e)&&(o=e.offsetWidth>0&&Et(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Et(n.height)/e.offsetHeight||1);var s=dt(e)?xe(e):window,i=s.visualViewport,l=!fl()&&r,c=(n.left+(l&&i?i.offsetLeft:0))/o,u=(n.top+(l&&i?i.offsetTop:0))/a,f=n.width/o,d=n.height/a;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function Mn(e){var t=At(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function dl(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&In(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ue(e){return xe(e).getComputedStyle(e)}function jh(e){return["table","td","th"].indexOf(Me(e))>=0}function et(e){return((dt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Dr(e){return Me(e)==="html"?e:e.assignedSlot||e.parentNode||(In(e)?e.host:null)||et(e)}function hl(e){return!Ae(e)||Ue(e).position==="fixed"?null:e.offsetParent}function Ph(e){var t=/firefox/i.test(Fn()),r=/Trident/i.test(Fn());if(r&&Ae(e)){var n=Ue(e);if(n.position==="fixed")return null}var o=Dr(e);for(In(o)&&(o=o.host);Ae(o)&&["html","body"].indexOf(Me(o))<0;){var a=Ue(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function ir(e){for(var t=xe(e),r=hl(e);r&&jh(r)&&Ue(r).position==="static";)r=hl(r);return r&&(Me(r)==="html"||Me(r)==="body"&&Ue(r).position==="static")?t:r||Ph(e)||t}function qn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lr(e,t,r){return ht(e,Nr(t,r))}function $h(e,t,r){var n=lr(e,t,r);return n>r?r:n}function vl(){return{top:0,right:0,bottom:0,left:0}}function pl(e){return Object.assign({},vl(),e)}function gl(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Ih=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,pl(typeof t!="number"?t:gl(t,nr))};function Fh(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,i=qe(r.placement),l=qn(i),c=[me,Ee].indexOf(i)>=0,u=c?"height":"width";if(!(!a||!s)){var f=Ih(o.padding,r),d=Mn(a),h=l==="y"?ge:me,v=l==="y"?ke:Ee,m=r.rects.reference[u]+r.rects.reference[l]-s[l]-r.rects.popper[u],g=s[l]-r.rects.reference[l],y=ir(a),p=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,C=m/2-g/2,w=f[h],_=p-d[u]-f[v],E=p/2-d[u]/2+C,F=lr(w,E,_),D=l;r.modifiersData[n]=(t={},t[D]=F,t.centerOffset=F-E,t)}}function Mh(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||dl(t.elements.popper,o)&&(t.elements.arrow=o))}const qh={name:"arrow",enabled:!0,phase:"main",fn:Fh,effect:Mh,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Tt(e){return e.split("-")[1]}var Bh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nh(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Et(r*o)/o||0,y:Et(n*o)/o||0}}function ml(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=s.x,h=d===void 0?0:d,v=s.y,m=v===void 0?0:v,g=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var y=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),C=me,w=ge,_=window;if(c){var E=ir(r),F="clientHeight",D="clientWidth";if(E===xe(r)&&(E=et(r),Ue(E).position!=="static"&&i==="absolute"&&(F="scrollHeight",D="scrollWidth")),E=E,o===ge||(o===me||o===Ee)&&a===or){w=ke;var B=f&&E===_&&_.visualViewport?_.visualViewport.height:E[F];m-=B-n.height,m*=l?1:-1}if(o===me||(o===ge||o===ke)&&a===or){C=Ee;var R=f&&E===_&&_.visualViewport?_.visualViewport.width:E[D];h-=R-n.width,h*=l?1:-1}}var b=Object.assign({position:i},c&&Bh),A=u===!0?Nh({x:h,y:m},xe(r)):{x:h,y:m};if(h=A.x,m=A.y,l){var q;return Object.assign({},b,(q={},q[w]=p?"0":"",q[C]=y?"0":"",q.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",q))}return Object.assign({},b,(t={},t[w]=p?m+"px":"",t[C]=y?h+"px":"",t.transform="",t))}function Dh(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,s=a===void 0?!0:a,i=r.roundOffsets,l=i===void 0?!0:i,c={placement:qe(t.placement),variation:Tt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ml(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ml(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Gh={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Dh,data:{}};var Gr={passive:!0};function Lh(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,s=n.resize,i=s===void 0?!0:s,l=xe(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",r.update,Gr)}),i&&l.addEventListener("resize",r.update,Gr),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",r.update,Gr)}),i&&l.removeEventListener("resize",r.update,Gr)}}const Hh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Lh,data:{}};var Vh={left:"right",right:"left",bottom:"top",top:"bottom"};function Lr(e){return e.replace(/left|right|bottom|top/g,function(t){return Vh[t]})}var Uh={start:"end",end:"start"};function yl(e){return e.replace(/start|end/g,function(t){return Uh[t]})}function Bn(e){var t=xe(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Nn(e){return At(et(e)).left+Bn(e).scrollLeft}function Wh(e,t){var r=xe(e),n=et(e),o=r.visualViewport,a=n.clientWidth,s=n.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;var c=fl();(c||!c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i+Nn(e),y:l}}function Kh(e){var t,r=et(e),n=Bn(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=ht(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ht(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-n.scrollLeft+Nn(e),l=-n.scrollTop;return Ue(o||r).direction==="rtl"&&(i+=ht(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}function Dn(e){var t=Ue(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function bl(e){return["html","body","#document"].indexOf(Me(e))>=0?e.ownerDocument.body:Ae(e)&&Dn(e)?e:bl(Dr(e))}function sr(e,t){var r;t===void 0&&(t=[]);var n=bl(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=xe(n),s=o?[a].concat(a.visualViewport||[],Dn(n)?n:[]):n,i=t.concat(s);return o?i:i.concat(sr(Dr(s)))}function Gn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zh(e,t){var r=At(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Cl(e,t,r){return t===sl?Gn(Wh(e,r)):dt(t)?zh(t,r):Gn(Kh(et(e)))}function Yh(e){var t=sr(Dr(e)),r=["absolute","fixed"].indexOf(Ue(e).position)>=0,n=r&&Ae(e)?ir(e):e;return dt(n)?t.filter(function(o){return dt(o)&&dl(o,n)&&Me(o)!=="body"}):[]}function Xh(e,t,r,n){var o=t==="clippingParents"?Yh(e):[].concat(t),a=[].concat(o,[r]),s=a[0],i=a.reduce(function(l,c){var u=Cl(e,c,n);return l.top=ht(u.top,l.top),l.right=Nr(u.right,l.right),l.bottom=Nr(u.bottom,l.bottom),l.left=ht(u.left,l.left),l},Cl(e,s,n));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function wl(e){var t=e.reference,r=e.element,n=e.placement,o=n?qe(n):null,a=n?Tt(n):null,s=t.x+t.width/2-r.width/2,i=t.y+t.height/2-r.height/2,l;switch(o){case ge:l={x:s,y:t.y-r.height};break;case ke:l={x:s,y:t.y+t.height};break;case Ee:l={x:t.x+t.width,y:i};break;case me:l={x:t.x-r.width,y:i};break;default:l={x:t.x,y:t.y}}var c=o?qn(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case kt:l[c]=l[c]-(t[u]/2-r[u]/2);break;case or:l[c]=l[c]+(t[u]/2-r[u]/2);break}}return l}function ur(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,s=a===void 0?e.strategy:a,i=r.boundary,l=i===void 0?gh:i,c=r.rootBoundary,u=c===void 0?sl:c,f=r.elementContext,d=f===void 0?ar:f,h=r.altBoundary,v=h===void 0?!1:h,m=r.padding,g=m===void 0?0:m,y=pl(typeof g!="number"?g:gl(g,nr)),p=d===ar?mh:ar,C=e.rects.popper,w=e.elements[v?p:d],_=Xh(dt(w)?w:w.contextElement||et(e.elements.popper),l,u,s),E=At(e.elements.reference),F=wl({reference:E,element:C,placement:o}),D=Gn(Object.assign({},C,F)),B=d===ar?D:E,R={top:_.top-B.top+y.top,bottom:B.bottom-_.bottom+y.bottom,left:_.left-B.left+y.left,right:B.right-_.right+y.right},b=e.modifiersData.offset;if(d===ar&&b){var A=b[o];Object.keys(R).forEach(function(q){var U=[Ee,ke].indexOf(q)>=0?1:-1,G=[ge,ke].indexOf(q)>=0?"y":"x";R[q]+=A[G]*U})}return R}function Jh(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,s=r.padding,i=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?cl:l,u=Tt(n),f=u?i?ul:ul.filter(function(v){return Tt(v)===u}):nr,d=f.filter(function(v){return c.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,m){return v[m]=ur(e,{placement:m,boundary:o,rootBoundary:a,padding:s})[qe(m)],v},{});return Object.keys(h).sort(function(v,m){return h[v]-h[m]})}function Zh(e){if(qe(e)===$n)return[];var t=Lr(e);return[yl(e),t,yl(t)]}function Qh(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,i=s===void 0?!0:s,l=r.fallbackPlacements,c=r.padding,u=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,m=r.allowedAutoPlacements,g=t.options.placement,y=qe(g),p=y===g,C=l||(p||!v?[Lr(g)]:Zh(g)),w=[g].concat(C).reduce(function(at,Ge){return at.concat(qe(Ge)===$n?Jh(t,{placement:Ge,boundary:u,rootBoundary:f,padding:c,flipVariations:v,allowedAutoPlacements:m}):Ge)},[]),_=t.rects.reference,E=t.rects.popper,F=new Map,D=!0,B=w[0],R=0;R<w.length;R++){var b=w[R],A=qe(b),q=Tt(b)===kt,U=[ge,ke].indexOf(A)>=0,G=U?"width":"height",X=ur(t,{placement:b,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),ce=U?q?Ee:me:q?ke:ge;_[G]>E[G]&&(ce=Lr(ce));var j=Lr(ce),N=[];if(a&&N.push(X[A]<=0),i&&N.push(X[ce]<=0,X[j]<=0),N.every(function(at){return at})){B=b,D=!1;break}F.set(b,N)}if(D)for(var W=v?3:1,be=function(Ge){var Or=w.find(function(hn){var St=F.get(hn);if(St)return St.slice(0,Ge).every(function($a){return $a})});if(Or)return B=Or,"break"},De=W;De>0;De--){var Ut=be(De);if(Ut==="break")break}t.placement!==B&&(t.modifiersData[n]._skip=!0,t.placement=B,t.reset=!0)}}const ev={name:"flip",enabled:!0,phase:"main",fn:Qh,requiresIfExists:["offset"],data:{_skip:!1}};function Sl(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function xl(e){return[ge,Ee,ke,me].some(function(t){return e[t]>=0})}function tv(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=ur(t,{elementContext:"reference"}),i=ur(t,{altBoundary:!0}),l=Sl(s,n),c=Sl(i,o,a),u=xl(l),f=xl(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const rv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tv};function nv(e,t,r){var n=qe(e),o=[me,ge].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=a[0],i=a[1];return s=s||0,i=(i||0)*o,[me,Ee].indexOf(n)>=0?{x:i,y:s}:{x:s,y:i}}function ov(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,s=cl.reduce(function(u,f){return u[f]=nv(f,t.rects,a),u},{}),i=s[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}const av={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ov};function iv(e){var t=e.state,r=e.name;t.modifiersData[r]=wl({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const lv={name:"popperOffsets",enabled:!0,phase:"read",fn:iv,data:{}};function sv(e){return e==="x"?"y":"x"}function uv(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,i=s===void 0?!1:s,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,v=r.tetherOffset,m=v===void 0?0:v,g=ur(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),y=qe(t.placement),p=Tt(t.placement),C=!p,w=qn(y),_=sv(w),E=t.modifiersData.popperOffsets,F=t.rects.reference,D=t.rects.popper,B=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,R=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),b=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(E){if(a){var q,U=w==="y"?ge:me,G=w==="y"?ke:Ee,X=w==="y"?"height":"width",ce=E[w],j=ce+g[U],N=ce-g[G],W=h?-D[X]/2:0,be=p===kt?F[X]:D[X],De=p===kt?-D[X]:-F[X],Ut=t.elements.arrow,at=h&&Ut?Mn(Ut):{width:0,height:0},Ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:vl(),Or=Ge[U],hn=Ge[G],St=lr(0,F[X],at[X]),$a=C?F[X]/2-W-St-Or-R.mainAxis:be-St-Or-R.mainAxis,Lb=C?-F[X]/2+W+St+hn+R.mainAxis:De+St+hn+R.mainAxis,Ia=t.elements.arrow&&ir(t.elements.arrow),Hb=Ia?w==="y"?Ia.clientTop||0:Ia.clientLeft||0:0,xc=(q=b==null?void 0:b[w])!=null?q:0,Vb=ce+$a-xc-Hb,Ub=ce+Lb-xc,Oc=lr(h?Nr(j,Vb):j,ce,h?ht(N,Ub):N);E[w]=Oc,A[w]=Oc-ce}if(i){var _c,Wb=w==="x"?ge:me,Kb=w==="x"?ke:Ee,xt=E[_],vn=_==="y"?"height":"width",kc=xt+g[Wb],Ec=xt-g[Kb],Fa=[ge,me].indexOf(y)!==-1,Ac=(_c=b==null?void 0:b[_])!=null?_c:0,Tc=Fa?kc:xt-F[vn]-D[vn]-Ac+R.altAxis,Rc=Fa?xt+F[vn]+D[vn]-Ac-R.altAxis:Ec,jc=h&&Fa?$h(Tc,xt,Rc):lr(h?Tc:kc,xt,h?Rc:Ec);E[_]=jc,A[_]=jc-xt}t.modifiersData[n]=A}}const cv={name:"preventOverflow",enabled:!0,phase:"main",fn:uv,requiresIfExists:["offset"]};function fv(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function dv(e){return e===xe(e)||!Ae(e)?Bn(e):fv(e)}function hv(e){var t=e.getBoundingClientRect(),r=Et(t.width)/e.offsetWidth||1,n=Et(t.height)/e.offsetHeight||1;return r!==1||n!==1}function vv(e,t,r){r===void 0&&(r=!1);var n=Ae(t),o=Ae(t)&&hv(t),a=et(t),s=At(e,o,r),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Me(t)!=="body"||Dn(a))&&(i=dv(t)),Ae(t)?(l=At(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Nn(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function pv(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!r.has(i)){var l=t.get(i);l&&o(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function gv(e){var t=pv(e);return Eh.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function mv(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function yv(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Ol={placement:"bottom",modifiers:[],strategy:"absolute"};function _l(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function bv(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?Ol:o;return function(i,l,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ol,a),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:u,setOptions:function(y){var p=typeof y=="function"?y(u.options):y;m(),u.options=Object.assign({},a,u.options,p),u.scrollParents={reference:dt(i)?sr(i):i.contextElement?sr(i.contextElement):[],popper:sr(l)};var C=gv(yv([].concat(n,u.options.modifiers)));return u.orderedModifiers=C.filter(function(w){return w.enabled}),v(),h.update()},forceUpdate:function(){if(!d){var y=u.elements,p=y.reference,C=y.popper;if(_l(p,C)){u.rects={reference:vv(p,ir(C),u.options.strategy==="fixed"),popper:Mn(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(R){return u.modifiersData[R.name]=Object.assign({},R.data)});for(var w=0;w<u.orderedModifiers.length;w++){if(u.reset===!0){u.reset=!1,w=-1;continue}var _=u.orderedModifiers[w],E=_.fn,F=_.options,D=F===void 0?{}:F,B=_.name;typeof E=="function"&&(u=E({state:u,options:D,name:B,instance:h})||u)}}}},update:mv(function(){return new Promise(function(g){h.forceUpdate(),g(u)})}),destroy:function(){m(),d=!0}};if(!_l(i,l))return h;h.setOptions(c).then(function(g){!d&&c.onFirstUpdate&&c.onFirstUpdate(g)});function v(){u.orderedModifiers.forEach(function(g){var y=g.name,p=g.options,C=p===void 0?{}:p,w=g.effect;if(typeof w=="function"){var _=w({state:u,name:y,instance:h,options:C}),E=function(){};f.push(_||E)}})}function m(){f.forEach(function(g){return g()}),f=[]}return h}}var Cv=[Hh,lv,Gh,Rh,av,ev,cv,qh,rv],wv=bv({defaultModifiers:Cv});function Sv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function kl(e,t,r){return r&&Sv(e,r),e}function Hr(){return(Hr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function El(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Al(e,t){if(e==null)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}function Tl(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var Rl=Object.prototype,jl=Rl.toString,xv=Rl.hasOwnProperty,Pl=/^\s*function (\w+)/;function $l(e){var t,r=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(r){var n=r.toString().match(Pl);return n?n[1]:""}return""}var vt=function(e){var t,r;return Tl(e)!==!1&&typeof(t=e.constructor)=="function"&&Tl(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1},Il=function(e){return e},ye=Il;if(process.env.NODE_ENV!=="production"){var Ov=typeof console<"u";ye=Ov?function(e){console.warn("[VueTypes warn]: "+e)}:Il}var cr=function(e,t){return xv.call(e,t)},_v=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Rt=Array.isArray||function(e){return jl.call(e)==="[object Array]"},jt=function(e){return jl.call(e)==="[object Function]"},Vr=function(e){return vt(e)&&cr(e,"_vueTypes_name")},Fl=function(e){return vt(e)&&(cr(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return cr(e,t)}))};function Ln(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function pt(e,t,r){var n,o=!0,a="";n=vt(e)?e:{type:e};var s=Vr(n)?n._vueTypes_name+" - ":"";if(Fl(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t===void 0)return o;Rt(n.type)?(o=n.type.some(function(f){return pt(f,t)===!0}),a=n.type.map(function(f){return $l(f)}).join(" or ")):o=(a=$l(n))==="Array"?Rt(t):a==="Object"?vt(t):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?function(f){if(f==null)return"";var d=f.constructor.toString().match(Pl);return d?d[1]:""}(t)===a:t instanceof n.type}if(!o){var i=s+'value "'+t+'" should be of type "'+a+'"';return i}if(cr(n,"validator")&&jt(n.validator)){var l=ye,c=[];if(ye=function(f){c.push(f)},o=n.validator(t),ye=l,!o){var u=(c.length>1?"* ":"")+c.join(`
11
+ `},gi=lf(ff)(pi),df={config:uf},hf=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(a,s){return s(a)},o)}};function mi(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],mi(e[r],t[r]))}),fi(fi({},e),t)}var vf={type:"cancelation",msg:"operation is manually canceled"};function _n(e){var t=!1,r=new Promise(function(n,o){e.then(function(a){return t?o(vf):n(a)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var pf=of.create({config:af,isInitialized:!1,resolve:null,reject:null,monaco:null}),yi=Ic(pf,2),Qt=yi[0],Pr=yi[1];function gf(e){var t=df.config(e),r=t.monaco,n=$c(t,["monaco"]);Pr(function(o){return{config:mi(o.config,n),monaco:r}})}function mf(){var e=Qt(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(Pr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),_n(kn);if(window.monaco&&window.monaco.editor)return bi(window.monaco),e.resolve(window.monaco),_n(kn);hf(yf,Cf)(wf)}return _n(kn)}function yf(e){return document.body.appendChild(e)}function bf(e){var t=document.createElement("script");return e&&(t.src=e),t}function Cf(e){var t=Qt(function(n){var o=n.config,a=n.reject;return{config:o,reject:a}}),r=bf("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function wf(){var e=Qt(function(r){var n=r.config,o=r.resolve,a=r.reject;return{config:n,resolve:o,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){bi(r),e.resolve(r)},function(r){e.reject(r)})}function bi(e){Qt().monaco||Pr({monaco:e})}function Sf(){return Qt(function(e){var t=e.monaco;return t})}var kn=new Promise(function(e,t){return Pr({resolve:e,reject:t})}),xf={config:gf,init:mf,__getMonacoInstance:Sf};const Ci=Xe("CodeEditor",P({name:"CodeEditor",props:{value:{type:String,default:""},config:{type:Object,default:()=>({})},language:{type:String,default:"typescript"}},emits:["update:value"],setup(e,{emit:t}){const r=H("code-editor"),n=L({get(){return e.value||""},set(s){t("update:value",s)}}),o=M(null);let a=null;return Wt(()=>{xf.init().then(s=>{o.value&&(a=s.editor.create(o.value,Ua({value:n.value,language:e.language,automaticLayout:!0,minimap:{enabled:!1}},e.config)),a.onDidBlurEditorText(()=>{n.value=a.getValue()}))})}),Ma(()=>{a==null||a.dispose()}),{ns:r,el:o}},render(){return S("div",{ref:"el",class:this.ns.b()},null)}})),En=P({name:"FlexItem",props:{layout:Object},setup(e){return{ns:H("flex-item"),getStyle:()=>{const n={};if(e.layout){const{order:o,alignSelf:a,flexBasis:s,flexGrow:i,flexShrink:l}=e.layout;o!=null&&(n.order=o),a!=null&&(n["align-self"]=a),s!=null&&(n["flex-basis"]=s),i!=null&&(n["flex-grow"]=i),l!=null&&(n["flex-shrink"]=l)}return n}}},render(){var e,t;return S("div",{class:this.ns.b(),style:this.getStyle()},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}});function Of(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Fe(e)}const wi=P({name:"FlexContainer",props:{layout:Object},setup(e){return{ns:H("flex-container"),getStyle:()=>{const o={};if(e.layout){const{alignContent:a,alignItems:s,flexDirection:i,flexWrap:l,justifyContent:c}=e.layout;a!=null&&(o.alignContent=a),s!=null&&(o.alignItems=s),i!=null&&(o.flexDirection=i),l!=null&&(o.flexWrap=l),c!=null&&(o.justifyContent=c)}return o},getItemStyle:o=>{const a={};if(o){const{width:s,height:i}=o;s!=null&&(a.width=s),i!=null&&(a.height=i)}return a}}},render(){var t,r;let e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return e.length>0&&(e=e[0].children||[]),S("div",{class:this.ns.b(),style:this.getStyle()},[e.map(n=>{if(!n)return null;const o=n.props.model.flexItem;return S(En,{layout:o,style:this.getItemStyle(n.props.model)},Of(n)?n:{default:()=>[n]})})])}});function Si(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Fe(e)}const xi=P({name:"GridContainer",props:{layout:Object},setup(){return{ns:H("grid-container")}},render(){var n,o;let e;const t=this.layout||{};let r=((o=(n=this.$slots).default)==null?void 0:o.call(n))||[];return r.length>0&&(r=r[0].children||[]),S(T("a-row"),{class:this.ns.b(),wrap:!0,gutter:t.gutter},Si(e=r.map(a=>{if(!a)return null;const s=a.props.model.gridItem;return S(T("a-col"),{span:s?s.span??24:24,offset:s?s.offset??0:0},Si(a)?a:{default:()=>[a]})}))?e:{default:()=>[e]})}}),Oi=P({name:"ViewContainer",props:{context:{type:Object},params:{type:Object},modal:{type:Object,required:!0}},setup(){return{ns:H("view-container")}},render(){var e,t;return S("div",{class:this.ns.b()},[this.$slots.header?S("div",{class:this.ns.b("header")},[this.$slots.header()]):null,S("div",{class:this.ns.b("content")},[(t=(e=this.$slots).default)==null?void 0:t.call(e)]),this.$slots.footer?S("div",{class:this.ns.b("footer")},[this.$slots.footer()]):null])}}),_f=P({name:"GctFormLengthUnit",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,required:!0}},emits:["update:value"],setup(e){const t=H("form-length-unit"),r=new Wa(e.model),n=we();return{ns:t,c:r,val:n}},render(){return S(T("length-unit-editor"),ne({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]}),null)}});class kf{constructor(){z(this,"component","gct-form-length-unit")}}const Ef=J(le.LENGTH_UNIT,()=>new kf,_f),_i=P({name:"GctFormColor",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String}},emits:["update:value"],setup(){const e=H("form-color"),t=we();return{ns:e,val:t}},render(){return S(T("color-picker"),ne({pureColor:this.val,"onUpdate:pureColor":e=>this.val=e,format:"rgba",shape:"circle","use-type":"pure","picker-type":"chrome",class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]},this.model.props||{}),null)}});class ki{constructor(){z(this,"component","gct-form-color")}}const Af=J(st.COLOR,()=>new ki,_i),Tf=J(le.COLOR,()=>new ki,_i);class Rf{constructor(){z(this,"component","gct-form-check-switch")}}const jf=P({name:"GctFormCheckSwitch",props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:Boolean,default:!1}},emits:["update:value"],setup(e){const t=H("gct-form-check-switch"),r=new Cn(e.model),n=we();return{ns:t,c:r,val:n}},render(){return this.model.isSwitch?S("div",{class:[this.ns.b(),this.ns.m("switch"),this.ns.is("readonly",this.model.readonly)]},[S(T("a-switch"),ne({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)]):S(T("a-checkbox"),ne({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{},{class:[this.ns.b(),this.ns.m("checkbox"),this.ns.is("readonly",this.model.readonly)]}),{default:()=>[this.model.label]})}}),Pf=J(le.CHECK_SWITCH,()=>new Rf,jf);class $f{constructor(){z(this,"component","gct-form-i18n")}}const If=P({name:"GctFormI18n",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=H("gct-form-i18n"),r=Ka().item.i18nConfig,n=we(),o=L({get:()=>r?r.value:"",set:a=>{r&&(r.value=a)}});return{ns:e,val:n,i18nConfigValue:o}},render(){return S(T("i18n-select-input"),ne(this.model.props||{},{i18nText:this.val,"onUpdate:i18nText":e=>this.val=e,i18nConfig:this.i18nConfigValue,"onUpdate:i18nConfig":e=>this.i18nConfigValue=e,inputExtraProps:{showCount:!0,maxlength:32,disabled:this.c.state.disabled}}),null)}}),Ff=J(le.I18N,()=>new $f,If),Mf=P({name:"GctFormIconSelect",props:{value:{type:Object},model:{type:Object,required:!0}},emits:["update:value"],setup(e,{emit:t}){var l,c,u;const r=H("gct-form-icon-select"),n=M(e.value),o=M(((l=n.value)==null?void 0:l.icon)||e.model.defaultIcon),a=M(((c=n.value)==null?void 0:c.color)||e.model.defaultColor),s=M(((u=n.value)==null?void 0:u.background)||e.model.defaultBackground);pe(()=>e.value,f=>{n.value=f,f&&(o.value=f.icon,a.value=f.color)}),pe([o,a,s],()=>{n.value={icon:o.value,color:a.value},t("update:value",n.value)});const i=L(()=>{if(e.model.size)return{"--box-size":e.model.size+"px"}});return{ns:r,icon:o,color:a,background:s,nextPickerStyle:i}},render(){return S("div",{class:this.ns.b()},[S(T("icon-next-picker"),{value:this.icon,"onUpdate:value":e=>this.icon=e,color:this.color,"onUpdate:color":e=>this.color=e,background:"#f5f5f5",disabled:this.model.disabled,showColor:this.model.showColor!==!1,style:this.nextPickerStyle},null),this.model.label?S("span",{class:this.ns.e("title")},[this.model.label]):null])}});let qf=class{constructor(){z(this,"component","gct-form-icon-select")}};const Bf=J(le.ICON_SELECT,()=>new qf,Mf);class Ei{constructor(){z(this,"component","gct-form-number")}}const Ai=P({name:"GctFormNumber",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=H("gct-form-number"),t=we();return{ns:e,val:t}},render(){return S(T("a-input-number"),ne({value:this.val,"onUpdate:value":e=>this.val=e,class:this.ns.b(),prefix:this.model.prefix,suffix:this.model.suffix,addonBefore:this.model.addonBefore,addonAfter:this.model.addonAfter,placeholder:this.model.placeholder,max:this.model.max,min:this.model.min,precision:this.model.precision},this.model.props||{}),null)}}),Nf=J(st.NUMBER,()=>new Ei,Ai),Df=J(le.NUMBER,()=>new Ei,Ai);class Gf{constructor(){z(this,"component","gct-form-picker")}}const Lf=P({name:"GctFormPicker",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(e,{emit:t}){const r=H("gct-form-picker"),n=L({get(){return e.model.nameField?e.c.data[e.model.nameField]:""},set(i){e.model.nameField&&(e.c.data[e.model.nameField]=i)}}),o=L({get:()=>!e.c.state.options.find(l=>l.value===e.value)&&n.value?n.value:e.value,set:i=>{typeof i=="string"&&(i=i.trim()),!(typeof i!="object"&&e.value==i)&&t("update:value",i)}}),a=()=>e.c.loadDictionary();return o.value!=null&&e.c.loadDictionary(),{ns:r,val:o,nameVal:n,loadOptions:a,onChange:(i,l)=>{n.value=l.label}}},render(){return S(T("a-select"),ne({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),disabled:this.c.state.disabled,loading:this.c.state.loading,options:this.c.state.options,placeholder:this.model.placeholder,onDropdownVisibleChange:this.loadOptions,onChange:this.onChange}),null)}}),Hf=J(le.PICKER,()=>new Gf,Lf);class Vf{constructor(){z(this,"component","gct-form-select")}}const Uf=P({name:"GctFormSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=H("gct-form-select"),r=we(),n=L(()=>e.c.state.options&&e.c.state.options.length>0?e.c.state.options:[]);return{ns:t,val:r,options:n}},render(){return S(T("a-select"),ne({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),options:this.options,allowClear:!0,disabled:this.c.state.disabled}),null)}}),Wf=J(le.SELECT,()=>new Vf,Uf);class Kf{constructor(){z(this,"component","gct-form-Modal-select")}}const zf=P({name:"GctFormModalSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=H("gct-form-modal-select"),t=M("1"),r=we(),n=L({get(){return r.value||void 0},set(a){r.value=a}}),o=L(()=>[{label:"默认",options:[{value:"1",label:"模型一"},{value:"2",label:"模型二"}]},{label:"产品建模",options:[{value:"3",label:"产品信息"},{value:"4",label:"产品类型"}]}]);return{ns:e,val:n,options:o,modelCategory:t}},render(){return S(T("a-input-group"),{class:this.ns.b()},{default:()=>[S(T("a-form-item-rest"),null,{default:()=>[S(T("a-select"),ne({value:this.modelCategory,"onUpdate:value":e=>this.modelCategory=e},this.model.props||{},{placeholder:"请选择",options:[{value:"1",label:"实体"},{value:"2",label:"视图"},{value:"3",label:"数据"}],disabled:this.c.state.disabled}),null)]}),S(T("a-select"),ne({class:this.ns.e("select"),value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{placeholder:"请选择",options:this.options,allowClear:!0,disabled:this.c.state.disabled}),null)]})}}),Yf=J(le.MODEL_SELECT,()=>new Kf,zf);class Xf{constructor(){z(this,"component","gct-form-field-select")}}const Jf={class:"gct-box"},Ti=((e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r})(P({__name:"gct-model-select",props:{value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,n=t,o=L({get(){return r.value},set(c){n("update:value",c)}}),a=M([{key:0,title:"公司名称"},{key:1,title:"ID"},{key:2,title:"创建人"},{key:3,title:"创建部门"},{key:4,title:"修改时间"},{key:5,title:"修改人"},{key:6,title:"修改部门"}]),s=M([]),i=(c,u)=>{console.log()};function l(){o.value=!1}return(c,u)=>{const f=T("a-transfer"),d=T("a-modal");return $(),te(d,{visible:o.value,"onUpdate:visible":u[1]||(u[1]=h=>o.value=h),width:"600px",title:"关联模型字段","ok-text":"确认","cancel-text":"取消",onOk:l},{default:_r(()=>[u[2]||(u[2]=k("div",null,"所属模型:公司",-1)),k("div",Jf,[S(f,{"target-keys":s.value,"onUpdate:targetKeys":u[0]||(u[0]=h=>s.value=h),locale:{itemUnit:"项已选",itemsUnit:"项未选",searchPlaceholder:"请输入搜索内容"},"data-source":a.value,"show-search":"","filter-option":i,render:h=>h.title},null,8,["target-keys","data-source","render"])])]),_:1},8,["visible"])}}}),[["__scopeId","data-v-bff0c27a"]]),Zf=P({name:"GctFormFieldSelect",components:{modal:Ti},props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=H("gct-form-field-select"),t=M(!1);return{ns:e,visible:t}},render(){return S("div",null,[S(T("a-button"),{onClick:()=>this.visible=!0,block:!0},{default:()=>[kr("选择模型字段")]}),S(Ti,{value:this.visible,"onUpdate:value":e=>this.visible=e},null)])}}),Qf=J(le.Field_SELECT,()=>new Xf,Zf);class ed{constructor(){z(this,"component","gct-form-span")}}const td=P({name:"GctFormSpan",props:{c:{type:Object,required:!0},itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},setup(e){const t=H("form-span"),{model:r,itemModel:n,c:o}=qa(e);function a(){const{isSuccessRef:i}=za(e.value);i.value&&li.success(_gct.t("sys.copySuccess"))}o.value.loadDictionary();const s=L(()=>{if(r.value.format&&typeof r.value.format=="function")return r.value.format(o.value.data,n.value,o.value);if(e.value==null||e.value==="")return e.value;if(n.value.dictionary){const l=(n.value.dictionary.items||[]).find(c=>c.value==e.value);if(l)return l.label}if(o.value.state.options.length>0){const i=o.value.state.options.find(l=>l.value==e.value);if(i)return i.label}return e.value});return{ns:t,val:s,handleClipboardKey:a}},render(){return S("div",{class:this.ns.b()},[S("span",{class:this.ns.e("info")},[this.val]),this.model.copy&&S("span",{class:this.ns.e("copy")},[S("i",{class:"iconfont icon-fuzhi primary-gct",onClick:this.handleClipboardKey},null)])])}}),rd=J(le.SPAN,()=>new ed,td);class Ri{constructor(){z(this,"component","gct-form-switch")}}const ji=P({name:"GctFormSwitch",props:{model:{type:Object,required:!0},value:{type:String,default:""}},setup(){const e=H("gct-form-switch"),t=we();return{ns:e,val:t}},render(){return S("div",{class:this.ns.b()},[S(T("a-switch"),ne({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)])}}),nd=J(st.SWITCH,()=>new Ri,ji),od=J(le.SWITCH,()=>new Ri,ji);class Pi{constructor(){z(this,"component","gct-form-text")}}const $i=P({name:"GctFormText",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=H("gct-form-text"),r=new Cn(e.model),n=Ya(e.model.prefix||e.model.addonBefore,e.model.suffix||e.model.addonAfter);return{ns:t,c:r,val:n}},render(){return S(T("a-input"),ne({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),prefix:this.model.prefix,suffix:this.model.suffix,addonBefore:this.model.addonBefore,addonAfter:this.model.addonAfter,placeholder:this.model.placeholder,"show-count":this.model.max!=null,maxlength:this.model.max}),null)}}),ad=J(st.TEXT,()=>new Pi,$i),id=J(le.TEXT,()=>new Pi,$i);class ld{constructor(){z(this,"component","gct-form-textarea")}}const sd=P({name:"GctFormTextarea",props:{model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(){const e=H("gct-form-textarea"),t=we();return{ns:e,val:t}},render(){return S(T("a-textarea"),ne({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),"auto-size":this.model.autoSize,"show-count":this.model.max!=null,maxlength:this.model.max,placeholder:this.model.placeholder}),null)}}),ud=J(le.TEXTAREA,()=>new ld,sd);function cd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Fe(e)}const Ii=P({name:"GctFormRadio",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=H("gct-form-radio"),t=we();return{ns:e,val:t}},render(){const e={...this.model.props||{},class:[this.ns.b()],allowClear:!0,disabled:this.c.state.disabled};if(this.model.buttonMode){let t;return e.class.push(this.ns.m("button")),S(Sn,ne({value:this.val,"onUpdate:value":r=>this.val=r,size:"small","button-style":"solid"},e),cd(t=this.c.state.options.map(r=>S(si,{key:r.value,value:r.value},{default:()=>[r.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),S(Sn,ne({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let Fi=class{constructor(){z(this,"component","gct-form-radio")}};const fd=J(st.RADIO,()=>new Fi,Ii),dd=J(le.RADIO,()=>new Fi,Ii),hd=P({name:"GctFormInfo",props:{value:{type:String,default:""},model:{type:Object,required:!0}},emits:["update:value"],setup(){const e=H("gct-form-info"),t=we();return{ns:e,val:t}},render(){return S("div",{class:this.ns.b()},[this.model.icon?S("span",{class:this.ns.e("icon")},[S("i",{class:`iconfont ${this.model.icon}`},null)]):null,S("span",{class:this.ns.e("content")},[this.val||this.model.content])])}});let vd=class{constructor(){z(this,"component","gct-form-info")}};const pd=J(le.INFO,()=>new vd,hd),Mi=P({name:"GctFormCheckbox",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:t}){const r=H("gct-form-checkbox"),n=we(),o=L(()=>n.value),a=L(()=>On(e.c.state.options));return{ns:r,checked:o,onChange:i=>{a.value.forEach(l=>{e.model.minLength&&i.length<=e.model.minLength&&i.includes(l.value)?l.disabled=!0:l.disabled=!1,l.checked=i.includes(l.value)}),t("update:value",i)},options:a}},render(){const e={...this.model.props||{},class:[this.ns.b(),this.ns.m("checkbox"),this.model.layout==="column"&&"isColumn"],disabled:this.c.state.disabled};return S(ui,ne({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class qi{constructor(){z(this,"component","gct-form-checkbox")}}const gd=J(st.CHECKBOX,()=>new qi,Mi),md=J(le.CHECKBOX,()=>new qi,Mi);var Bi=require("../internals/global-this"),Ni=require("../internals/function-call"),An=require("../internals/array-buffer-view-core"),yd=require("../internals/length-of-array-like"),bd=require("../internals/to-offset"),Cd=require("../internals/to-object"),Di=require("../internals/fails"),wd=Bi.RangeError,Tn=Bi.Int8Array,Gi=Tn&&Tn.prototype,Li=Gi&&Gi.set,Sd=An.aTypedArray,xd=An.exportTypedArrayMethod,Rn=!Di(function(){var e=new Uint8ClampedArray(2);return Ni(Li,e,{length:1,0:3},1),e[1]!==3}),Od=Rn&&An.NATIVE_ARRAY_BUFFER_VIEWS&&Di(function(){var e=new Tn(2);return e.set(1),e.set("2",1),e[0]!==0||e[1]!==2});xd("set",function(t){Sd(this);var r=bd(arguments.length>1?arguments[1]:void 0,1),n=Cd(t);if(Rn)return Ni(Li,this,n,r);var o=this.length,a=yd(n),s=0;if(a+r>o)throw new wd("Wrong length");for(;s<a;)this[r+s]=n[s++]},!Rn||Od);function Hi(e){return Na()?(Da(e),!0):!1}function ut(e){return typeof e=="function"?e():Ba(e)}const $r=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const _d=Object.prototype.toString,kd=e=>_d.call(e)==="[object Object]",_t=()=>{},Ed=Ad();function Ad(){var e,t;return $r&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Vi(e,t){function r(...n){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(a)})}return r}const Ui=e=>e();function Td(e,t={}){let r,n,o=_t;const a=i=>{clearTimeout(i),o(),o=_t};return i=>{const l=ut(e),c=ut(t.maxWait);return r&&a(r),l<=0||c!==void 0&&c<=0?(n&&(a(n),n=null),Promise.resolve(i())):new Promise((u,f)=>{o=t.rejectOnCancel?f:u,c&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,u(i())},c)),r=setTimeout(()=>{n&&a(n),n=null,u(i())},l)})}}function Rd(e=Ui){const t=M(!0);function r(){t.value=!1}function n(){t.value=!0}const o=(...a)=>{t.value&&e(...a)};return{isActive:pn(t),pause:r,resume:n,eventFilter:o}}function jd(e){let t;function r(){return t||(t=e()),t}return r.reset=async()=>{const n=t;t=void 0,n&&await n},r}function Pd(e){return Er()}function He(e,t=200,r={}){return Vi(Td(t,r),e)}function $d(e,t,r={}){const{eventFilter:n=Ui,...o}=r;return pe(e,Vi(n,t),o)}function Id(e,t,r={}){const{eventFilter:n,...o}=r,{eventFilter:a,pause:s,resume:i,isActive:l}=Rd(n);return{stop:$d(e,t,{...o,eventFilter:a}),pause:s,resume:i,isActive:l}}function ct(e,t=!0,r){Pd()?Wt(e,r):t?e():Kt(e)}function Fd(e,t,r={}){const{immediate:n=!0}=r,o=M(!1);let a=null;function s(){a&&(clearTimeout(a),a=null)}function i(){o.value=!1,s()}function l(...c){s(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=null,e(...c)},ut(t))}return n&&(o.value=!0,$r&&l()),Hi(i),{isPending:pn(o),start:l,stop:i}}function fe(e,t,r){const n=pe(e,(o,a,s)=>{o&&(r!=null&&r.once&&Kt(()=>n()),t(o,a,s))},{...r,once:!1});return n}function er(e){var t;const r=ut(e);return(t=r==null?void 0:r.$el)!=null?t:r}const tr=$r?window:void 0,Wi=$r?window.navigator:void 0;function ft(...e){let t,r,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,o]=e,t=tr):[t,r,n,o]=e,!t)return _t;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],s=()=>{a.forEach(u=>u()),a.length=0},i=(u,f,d,h)=>(u.addEventListener(f,d,h),()=>u.removeEventListener(f,d,h)),l=pe(()=>[er(t),ut(o)],([u,f])=>{if(s(),!u)return;const d=kd(f)?{...f}:f;a.push(...r.flatMap(h=>n.map(v=>i(u,h,v,d))))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return Hi(c),c}let Ki=!1;function Md(e,t,r={}){const{window:n=tr,ignore:o=[],capture:a=!0,detectIframe:s=!1}=r;if(!n)return _t;Ed&&!Ki&&(Ki=!0,Array.from(n.document.body.children).forEach(d=>d.addEventListener("click",_t)),n.document.documentElement.addEventListener("click",_t));let i=!0;const l=d=>o.some(h=>{if(typeof h=="string")return Array.from(n.document.querySelectorAll(h)).some(v=>v===d.target||d.composedPath().includes(v));{const v=er(h);return v&&(d.target===v||d.composedPath().includes(v))}}),u=[ft(n,"click",d=>{const h=er(e);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(i=!l(d)),!i){i=!0;return}t(d)}},{passive:!0,capture:a}),ft(n,"pointerdown",d=>{const h=er(e);i=!l(d)&&!!(h&&!d.composedPath().includes(h))},{passive:!0}),s&&ft(n,"blur",d=>{setTimeout(()=>{var h;const v=er(e);((h=n.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(v!=null&&v.contains(n.document.activeElement))&&t(d)},0)})].filter(Boolean);return()=>u.forEach(d=>d())}function qd(){const e=M(!1),t=Er();return t&&Wt(()=>{e.value=!0},t),e}function zi(e){const t=qd();return L(()=>(t.value,!!e()))}function Yi(e,t={}){const{controls:r=!1,navigator:n=Wi}=t,o=zi(()=>n&&"permissions"in n);let a;const s=typeof e=="string"?{name:e}:e,i=M(),l=()=>{a&&(i.value=a.state)},c=jd(async()=>{if(o.value){if(!a)try{a=await n.permissions.query(s),ft(a,"change",l),l()}catch{i.value="prompt"}return a}});return c(),r?{state:i,isSupported:o,query:c}:i}function Bd(e={}){const{navigator:t=Wi,read:r=!1,source:n,copiedDuring:o=1500,legacy:a=!1}=e,s=zi(()=>t&&"clipboard"in t),i=Yi("clipboard-read"),l=Yi("clipboard-write"),c=L(()=>s.value||a),u=M(""),f=M(!1),d=Fd(()=>f.value=!1,o);function h(){s.value&&y(i.value)?t.clipboard.readText().then(p=>{u.value=p}):u.value=g()}c.value&&r&&ft(["copy","cut"],h);async function v(p=ut(n)){c.value&&p!=null&&(s.value&&y(l.value)?await t.clipboard.writeText(p):m(p),u.value=p,f.value=!0,d.start())}function m(p){const C=document.createElement("textarea");C.value=p??"",C.style.position="absolute",C.style.opacity="0",document.body.appendChild(C),C.select(),document.execCommand("copy"),C.remove()}function g(){var p,C,w;return(w=(C=(p=document==null?void 0:document.getSelection)==null?void 0:p.call(document))==null?void 0:C.toString())!=null?w:""}function y(p){return p==="granted"||p==="prompt"}return{isSupported:c,text:u,copied:f,copy:v}}const Ir=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fr="__vueuse_ssr_handlers__",Nd=Dd();function Dd(){return Fr in Ir||(Ir[Fr]=Ir[Fr]||{}),Ir[Fr]}function Gd(e,t){return Nd[e]||t}function Ld(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Hd={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Xi="vueuse-storage";function Vd(e,t,r,n={}){var o;const{flush:a="pre",deep:s=!0,listenToStorageChanges:i=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=tr,eventFilter:d,onError:h=R=>{console.error(R)},initOnMounted:v}=n,m=(u?Ga:M)(typeof t=="function"?t():t);if(!r)try{r=Gd("getDefaultStorage",()=>{var R;return(R=tr)==null?void 0:R.localStorage})()}catch(R){h(R)}if(!r)return m;const g=ut(t),y=Ld(g),p=(o=n.serializer)!=null?o:Hd[y],{pause:C,resume:w}=Id(m,()=>E(m.value),{flush:a,deep:s,eventFilter:d});f&&i&&ct(()=>{ft(f,"storage",D),ft(f,Xi,B),v&&D()}),v||D();function _(R,b){f&&f.dispatchEvent(new CustomEvent(Xi,{detail:{key:e,oldValue:R,newValue:b,storageArea:r}}))}function E(R){try{const b=r.getItem(e);if(R==null)_(b,null),r.removeItem(e);else{const A=p.write(R);b!==A&&(r.setItem(e,A),_(b,A))}}catch(b){h(b)}}function F(R){const b=R?R.newValue:r.getItem(e);if(b==null)return l&&g!=null&&r.setItem(e,p.write(g)),g;if(!R&&c){const A=p.read(b);return typeof c=="function"?c(A,g):y==="object"&&!Array.isArray(A)?{...g,...A}:A}else return typeof b!="string"?b:p.read(b)}function D(R){if(!(R&&R.storageArea!==r)){if(R&&R.key==null){m.value=g;return}if(!(R&&R.key!==e)){C();try{(R==null?void 0:R.newValue)!==p.write(m.value)&&(m.value=F(R))}catch(b){h(b)}finally{R?Kt(w):w()}}}}function B(R){D(R.detail)}return m}function jn(e,t,r={}){const{window:n=tr}=r;return Vd(e,t,n==null?void 0:n.localStorage,r)}function Mr(e){"@babel/helpers - typeof";return Mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mr(e)}var Ud=/^\s+/,Wd=/\s+$/;function x(e,t){if(e=e||"",t=t||{},e instanceof x)return e;if(!(this instanceof x))return new x(e,t);var r=Kd(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}x.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,o,a,s,i;return r=t.r/255,n=t.g/255,o=t.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),n<=.03928?s=n/12.92:s=Math.pow((n+.055)/1.055,2.4),o<=.03928?i=o/12.92:i=Math.pow((o+.055)/1.055,2.4),.2126*a+.7152*s+.0722*i},setAlpha:function(t){return this._a=rl(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Zi(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Zi(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+o+"%)":"hsva("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=Ji(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Ji(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+o+"%)":"hsla("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return Qi(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return Jd(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Z(this._r,255)*100)+"%",g:Math.round(Z(this._g,255)*100)+"%",b:Math.round(Z(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Z(this._r,255)*100)+"%, "+Math.round(Z(this._g,255)*100)+"%, "+Math.round(Z(this._b,255)*100)+"%)":"rgba("+Math.round(Z(this._r,255)*100)+"%, "+Math.round(Z(this._g,255)*100)+"%, "+Math.round(Z(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:uh[Qi(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+el(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var a=x(t);n="#"+el(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,o=this._a<1&&this._a>=0,a=!r&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return x(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(th,arguments)},brighten:function(){return this._applyModification(rh,arguments)},darken:function(){return this._applyModification(nh,arguments)},desaturate:function(){return this._applyModification(Zd,arguments)},saturate:function(){return this._applyModification(Qd,arguments)},greyscale:function(){return this._applyModification(eh,arguments)},spin:function(){return this._applyModification(oh,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(lh,arguments)},complement:function(){return this._applyCombination(ah,arguments)},monochromatic:function(){return this._applyCombination(sh,arguments)},splitcomplement:function(){return this._applyCombination(ih,arguments)},triad:function(){return this._applyCombination(tl,[3])},tetrad:function(){return this._applyCombination(tl,[4])}},x.fromRatio=function(e,t){if(Mr(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=rr(e[n]));e=r}return x(e,t)};function Kd(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,a=null,s=!1,i=!1;return typeof e=="string"&&(e=hh(e)),Mr(e)=="object"&&(Ve(e.r)&&Ve(e.g)&&Ve(e.b)?(t=zd(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ve(e.h)&&Ve(e.s)&&Ve(e.v)?(n=rr(e.s),o=rr(e.v),t=Xd(e.h,n,o),s=!0,i="hsv"):Ve(e.h)&&Ve(e.s)&&Ve(e.l)&&(n=rr(e.s),a=rr(e.l),t=Yd(e.h,n,a),s=!0,i="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=rl(r),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function zd(e,t,r){return{r:Z(e,255)*255,g:Z(t,255)*255,b:Z(r,255)*255}}function Ji(e,t,r){e=Z(e,255),t=Z(t,255),r=Z(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,s,i=(n+o)/2;if(n==o)a=s=0;else{var l=n-o;switch(s=i>.5?l/(2-n-o):l/(n+o),n){case e:a=(t-r)/l+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s,l:i}}function Yd(e,t,r){var n,o,a;e=Z(e,360),t=Z(t,100),r=Z(r,100);function s(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}if(t===0)n=o=a=r;else{var i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;n=s(l,i,e+1/3),o=s(l,i,e),a=s(l,i,e-1/3)}return{r:n*255,g:o*255,b:a*255}}function Zi(e,t,r){e=Z(e,255),t=Z(t,255),r=Z(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,s,i=n,l=n-o;if(s=n===0?0:l/n,n==o)a=0;else{switch(n){case e:a=(t-r)/l+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s,v:i}}function Xd(e,t,r){e=Z(e,360)*6,t=Z(t,100),r=Z(r,100);var n=Math.floor(e),o=e-n,a=r*(1-t),s=r*(1-o*t),i=r*(1-(1-o)*t),l=n%6,c=[r,s,a,a,i,r][l],u=[i,r,r,s,a,a][l],f=[a,a,i,r,r,s][l];return{r:c*255,g:u*255,b:f*255}}function Qi(e,t,r,n){var o=[Pe(Math.round(e).toString(16)),Pe(Math.round(t).toString(16)),Pe(Math.round(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Jd(e,t,r,n,o){var a=[Pe(Math.round(e).toString(16)),Pe(Math.round(t).toString(16)),Pe(Math.round(r).toString(16)),Pe(nl(n))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function el(e,t,r,n){var o=[Pe(nl(n)),Pe(Math.round(e).toString(16)),Pe(Math.round(t).toString(16)),Pe(Math.round(r).toString(16))];return o.join("")}x.equals=function(e,t){return!e||!t?!1:x(e).toRgbString()==x(t).toRgbString()},x.random=function(){return x.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Zd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s-=t/100,r.s=qr(r.s),x(r)}function Qd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s+=t/100,r.s=qr(r.s),x(r)}function eh(e){return x(e).desaturate(100)}function th(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l+=t/100,r.l=qr(r.l),x(r)}function rh(e,t){t=t===0?0:t||10;var r=x(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),x(r)}function nh(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l-=t/100,r.l=qr(r.l),x(r)}function oh(e,t){var r=x(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,x(r)}function ah(e){var t=x(e).toHsl();return t.h=(t.h+180)%360,x(t)}function tl(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=x(e).toHsl(),n=[x(e)],o=360/t,a=1;a<t;a++)n.push(x({h:(r.h+a*o)%360,s:r.s,l:r.l}));return n}function ih(e){var t=x(e).toHsl(),r=t.h;return[x(e),x({h:(r+72)%360,s:t.s,l:t.l}),x({h:(r+216)%360,s:t.s,l:t.l})]}function lh(e,t,r){t=t||6,r=r||30;var n=x(e).toHsl(),o=360/r,a=[x(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(x(n));return a}function sh(e,t){t=t||6;for(var r=x(e).toHsv(),n=r.h,o=r.s,a=r.v,s=[],i=1/t;t--;)s.push(x({h:n,s:o,v:a})),a=(a+i)%1;return s}x.mix=function(e,t,r){r=r===0?0:r||50;var n=x(e).toRgb(),o=x(t).toRgb(),a=r/100,s={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return x(s)},x.readability=function(e,t){var r=x(e),n=x(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},x.isReadable=function(e,t,r){var n=x.readability(e,t),o,a;switch(a=!1,o=vh(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a},x.mostReadable=function(e,t,r){var n=null,o=0,a,s,i,l;r=r||{},s=r.includeFallbackColors,i=r.level,l=r.size;for(var c=0;c<t.length;c++)a=x.readability(e,t[c]),a>o&&(o=a,n=x(t[c]));return x.isReadable(e,n,{level:i,size:l})||!s?n:(r.includeFallbackColors=!1,x.mostReadable(e,["#fff","#000"],r))};var Pn=x.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},uh=x.hexNames=ch(Pn);function ch(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function rl(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Z(e,t){fh(e)&&(e="100%");var r=dh(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function qr(e){return Math.min(1,Math.max(0,e))}function Se(e){return parseInt(e,16)}function fh(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function dh(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Pe(e){return e.length==1?"0"+e:""+e}function rr(e){return e<=1&&(e=e*100+"%"),e}function nl(e){return Math.round(parseFloat(e)*255).toString(16)}function ol(e){return Se(e)/255}var $e=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ve(e){return!!$e.CSS_UNIT.exec(e)}function hh(e){e=e.replace(Ud,"").replace(Wd,"").toLowerCase();var t=!1;if(Pn[e])e=Pn[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=$e.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=$e.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=$e.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=$e.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=$e.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=$e.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=$e.hex8.exec(e))?{r:Se(r[1]),g:Se(r[2]),b:Se(r[3]),a:ol(r[4]),format:t?"name":"hex8"}:(r=$e.hex6.exec(e))?{r:Se(r[1]),g:Se(r[2]),b:Se(r[3]),format:t?"name":"hex"}:(r=$e.hex4.exec(e))?{r:Se(r[1]+""+r[1]),g:Se(r[2]+""+r[2]),b:Se(r[3]+""+r[3]),a:ol(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=$e.hex3.exec(e))?{r:Se(r[1]+""+r[1]),g:Se(r[2]+""+r[2]),b:Se(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function vh(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var al=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Br={},il;function ph(){if(il)return Br;il=1;var e=e||{};e.stringify=function(){var t={"visit_linear-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-linear-gradient":function(r){return t.visit_gradient(r)},"visit_radial-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-radial-gradient":function(r){return t.visit_gradient(r)},visit_gradient:function(r){var n=t.visit(r.orientation);return n&&(n+=", "),r.type+"("+n+t.visit(r.colorStops)+")"},visit_shape:function(r){var n=r.value,o=t.visit(r.at),a=t.visit(r.style);return a&&(n+=" "+a),o&&(n+=" at "+o),n},"visit_default-radial":function(r){var n="",o=t.visit(r.at);return o&&(n+=o),n},"visit_extent-keyword":function(r){var n=r.value,o=t.visit(r.at);return o&&(n+=" at "+o),n},"visit_position-keyword":function(r){return r.value},visit_position:function(r){return t.visit(r.value.x)+" "+t.visit(r.value.y)},"visit_%":function(r){return r.value+"%"},visit_em:function(r){return r.value+"em"},visit_px:function(r){return r.value+"px"},visit_literal:function(r){return t.visit_color(r.value,r)},visit_hex:function(r){return t.visit_color("#"+r.value,r)},visit_rgb:function(r){return t.visit_color("rgb("+r.value.join(", ")+")",r)},visit_rgba:function(r){return t.visit_color("rgba("+r.value.join(", ")+")",r)},visit_color:function(r,n){var o=r,a=t.visit(n.length);return a&&(o+=" "+a),o},visit_angular:function(r){return r.value+"deg"},visit_directional:function(r){return"to "+r.value},visit_array:function(r){var n="",o=r.length;return r.forEach(function(a,s){n+=t.visit(a),s<o-1&&(n+=", ")}),n},visit:function(r){if(!r)return"";var n="";if(r instanceof Array)return t.visit_array(r,n);if(r.type){var o=t["visit_"+r.type];if(o)return o(r);throw Error("Missing visitor visit_"+r.type)}else throw Error("Invalid node.")}};return function(r){return t.visit(r)}}();var e=e||{};return e.parse=function(){var t={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},r="";function n(j){var N=new Error(r+": "+j);throw N.source=r,N}function o(){var j=a();return r.length>0&&n("Invalid input not EOF"),j}function a(){return w(s)}function s(){return i("linear-gradient",t.linearGradient,c)||i("repeating-linear-gradient",t.repeatingLinearGradient,c)||i("radial-gradient",t.radialGradient,d)||i("repeating-radial-gradient",t.repeatingRadialGradient,d)}function i(j,N,W){return l(N,function(be){var De=W();return De&&(X(t.comma)||n("Missing comma before color stops")),{type:j,orientation:De,colorStops:w(_)}})}function l(j,N){var W=X(j);if(W){X(t.startCall)||n("Missing (");var be=N(W);return X(t.endCall)||n("Missing )"),be}}function c(){return u()||f()}function u(){return G("directional",t.sideOrCorner,1)}function f(){return G("angular",t.angleValue,1)}function d(){var j,N=h(),W;return N&&(j=[],j.push(N),W=r,X(t.comma)&&(N=h(),N?j.push(N):r=W)),j}function h(){var j=v()||m();if(j)j.at=y();else{var N=g();if(N){j=N;var W=y();W&&(j.at=W)}else{var be=p();be&&(j={type:"default-radial",at:be})}}return j}function v(){var j=G("shape",/^(circle)/i,0);return j&&(j.style=U()||g()),j}function m(){var j=G("shape",/^(ellipse)/i,0);return j&&(j.style=A()||g()),j}function g(){return G("extent-keyword",t.extentKeywords,1)}function y(){if(G("position",/^at/,0)){var j=p();return j||n("Missing positioning value"),j}}function p(){var j=C();if(j.x||j.y)return{type:"position",value:j}}function C(){return{x:A(),y:A()}}function w(j){var N=j(),W=[];if(N)for(W.push(N);X(t.comma);)N=j(),N?W.push(N):n("One extra comma");return W}function _(){var j=E();return j||n("Expected color definition"),j.length=A(),j}function E(){return D()||R()||B()||F()}function F(){return G("literal",t.literalColor,0)}function D(){return G("hex",t.hexColor,1)}function B(){return l(t.rgbColor,function(){return{type:"rgb",value:w(b)}})}function R(){return l(t.rgbaColor,function(){return{type:"rgba",value:w(b)}})}function b(){return X(t.number)[1]}function A(){return G("%",t.percentageValue,1)||q()||U()}function q(){return G("position-keyword",t.positionKeywords,1)}function U(){return G("px",t.pixelValue,1)||G("em",t.emValue,1)}function G(j,N,W){var be=X(N);if(be)return{type:j,value:be[W]}}function X(j){var N,W;return W=/^[\n\r\t\s]+/.exec(r),W&&ce(W[0].length),N=j.exec(r),N&&ce(N[0].length),N}function ce(j){r=r.substr(j)}return function(j){return r=j.toString(),o()}}(),Br.parse=e.parse,Br.stringify=e.stringify,Br}var ll=ph(),ge="top",ke="bottom",Ee="right",me="left",$n="auto",nr=[ge,ke,Ee,me],kt="start",or="end",gh="clippingParents",sl="viewport",ar="popper",mh="reference",ul=nr.reduce(function(e,t){return e.concat([t+"-"+kt,t+"-"+or])},[]),cl=[].concat(nr,[$n]).reduce(function(e,t){return e.concat([t,t+"-"+kt,t+"-"+or])},[]),yh="beforeRead",bh="read",Ch="afterRead",wh="beforeMain",Sh="main",xh="afterMain",Oh="beforeWrite",_h="write",kh="afterWrite",Eh=[yh,bh,Ch,wh,Sh,xh,Oh,_h,kh];function Me(e){return e?(e.nodeName||"").toLowerCase():null}function xe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dt(e){var t=xe(e).Element;return e instanceof t||e instanceof Element}function Ae(e){var t=xe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function In(e){if(typeof ShadowRoot>"u")return!1;var t=xe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ah(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!Ae(a)||!Me(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(s){var i=o[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function Th(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),i=s.reduce(function(l,c){return l[c]="",l},{});!Ae(o)||!Me(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const Rh={name:"applyStyles",enabled:!0,phase:"write",fn:Ah,effect:Th,requires:["computeStyles"]};function qe(e){return e.split("-")[0]}var ht=Math.max,Nr=Math.min,Et=Math.round;function Fn(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function fl(){return!/^((?!chrome|android).)*safari/i.test(Fn())}function At(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Ae(e)&&(o=e.offsetWidth>0&&Et(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Et(n.height)/e.offsetHeight||1);var s=dt(e)?xe(e):window,i=s.visualViewport,l=!fl()&&r,c=(n.left+(l&&i?i.offsetLeft:0))/o,u=(n.top+(l&&i?i.offsetTop:0))/a,f=n.width/o,d=n.height/a;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function Mn(e){var t=At(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function dl(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&In(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ue(e){return xe(e).getComputedStyle(e)}function jh(e){return["table","td","th"].indexOf(Me(e))>=0}function et(e){return((dt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Dr(e){return Me(e)==="html"?e:e.assignedSlot||e.parentNode||(In(e)?e.host:null)||et(e)}function hl(e){return!Ae(e)||Ue(e).position==="fixed"?null:e.offsetParent}function Ph(e){var t=/firefox/i.test(Fn()),r=/Trident/i.test(Fn());if(r&&Ae(e)){var n=Ue(e);if(n.position==="fixed")return null}var o=Dr(e);for(In(o)&&(o=o.host);Ae(o)&&["html","body"].indexOf(Me(o))<0;){var a=Ue(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function ir(e){for(var t=xe(e),r=hl(e);r&&jh(r)&&Ue(r).position==="static";)r=hl(r);return r&&(Me(r)==="html"||Me(r)==="body"&&Ue(r).position==="static")?t:r||Ph(e)||t}function qn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lr(e,t,r){return ht(e,Nr(t,r))}function $h(e,t,r){var n=lr(e,t,r);return n>r?r:n}function vl(){return{top:0,right:0,bottom:0,left:0}}function pl(e){return Object.assign({},vl(),e)}function gl(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Ih=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,pl(typeof t!="number"?t:gl(t,nr))};function Fh(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,i=qe(r.placement),l=qn(i),c=[me,Ee].indexOf(i)>=0,u=c?"height":"width";if(!(!a||!s)){var f=Ih(o.padding,r),d=Mn(a),h=l==="y"?ge:me,v=l==="y"?ke:Ee,m=r.rects.reference[u]+r.rects.reference[l]-s[l]-r.rects.popper[u],g=s[l]-r.rects.reference[l],y=ir(a),p=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,C=m/2-g/2,w=f[h],_=p-d[u]-f[v],E=p/2-d[u]/2+C,F=lr(w,E,_),D=l;r.modifiersData[n]=(t={},t[D]=F,t.centerOffset=F-E,t)}}function Mh(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||dl(t.elements.popper,o)&&(t.elements.arrow=o))}const qh={name:"arrow",enabled:!0,phase:"main",fn:Fh,effect:Mh,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Tt(e){return e.split("-")[1]}var Bh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nh(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Et(r*o)/o||0,y:Et(n*o)/o||0}}function ml(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=s.x,h=d===void 0?0:d,v=s.y,m=v===void 0?0:v,g=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var y=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),C=me,w=ge,_=window;if(c){var E=ir(r),F="clientHeight",D="clientWidth";if(E===xe(r)&&(E=et(r),Ue(E).position!=="static"&&i==="absolute"&&(F="scrollHeight",D="scrollWidth")),E=E,o===ge||(o===me||o===Ee)&&a===or){w=ke;var B=f&&E===_&&_.visualViewport?_.visualViewport.height:E[F];m-=B-n.height,m*=l?1:-1}if(o===me||(o===ge||o===ke)&&a===or){C=Ee;var R=f&&E===_&&_.visualViewport?_.visualViewport.width:E[D];h-=R-n.width,h*=l?1:-1}}var b=Object.assign({position:i},c&&Bh),A=u===!0?Nh({x:h,y:m},xe(r)):{x:h,y:m};if(h=A.x,m=A.y,l){var q;return Object.assign({},b,(q={},q[w]=p?"0":"",q[C]=y?"0":"",q.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",q))}return Object.assign({},b,(t={},t[w]=p?m+"px":"",t[C]=y?h+"px":"",t.transform="",t))}function Dh(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,s=a===void 0?!0:a,i=r.roundOffsets,l=i===void 0?!0:i,c={placement:qe(t.placement),variation:Tt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ml(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ml(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Gh={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Dh,data:{}};var Gr={passive:!0};function Lh(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,s=n.resize,i=s===void 0?!0:s,l=xe(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",r.update,Gr)}),i&&l.addEventListener("resize",r.update,Gr),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",r.update,Gr)}),i&&l.removeEventListener("resize",r.update,Gr)}}const Hh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Lh,data:{}};var Vh={left:"right",right:"left",bottom:"top",top:"bottom"};function Lr(e){return e.replace(/left|right|bottom|top/g,function(t){return Vh[t]})}var Uh={start:"end",end:"start"};function yl(e){return e.replace(/start|end/g,function(t){return Uh[t]})}function Bn(e){var t=xe(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Nn(e){return At(et(e)).left+Bn(e).scrollLeft}function Wh(e,t){var r=xe(e),n=et(e),o=r.visualViewport,a=n.clientWidth,s=n.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;var c=fl();(c||!c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i+Nn(e),y:l}}function Kh(e){var t,r=et(e),n=Bn(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=ht(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ht(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-n.scrollLeft+Nn(e),l=-n.scrollTop;return Ue(o||r).direction==="rtl"&&(i+=ht(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}function Dn(e){var t=Ue(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function bl(e){return["html","body","#document"].indexOf(Me(e))>=0?e.ownerDocument.body:Ae(e)&&Dn(e)?e:bl(Dr(e))}function sr(e,t){var r;t===void 0&&(t=[]);var n=bl(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=xe(n),s=o?[a].concat(a.visualViewport||[],Dn(n)?n:[]):n,i=t.concat(s);return o?i:i.concat(sr(Dr(s)))}function Gn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zh(e,t){var r=At(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Cl(e,t,r){return t===sl?Gn(Wh(e,r)):dt(t)?zh(t,r):Gn(Kh(et(e)))}function Yh(e){var t=sr(Dr(e)),r=["absolute","fixed"].indexOf(Ue(e).position)>=0,n=r&&Ae(e)?ir(e):e;return dt(n)?t.filter(function(o){return dt(o)&&dl(o,n)&&Me(o)!=="body"}):[]}function Xh(e,t,r,n){var o=t==="clippingParents"?Yh(e):[].concat(t),a=[].concat(o,[r]),s=a[0],i=a.reduce(function(l,c){var u=Cl(e,c,n);return l.top=ht(u.top,l.top),l.right=Nr(u.right,l.right),l.bottom=Nr(u.bottom,l.bottom),l.left=ht(u.left,l.left),l},Cl(e,s,n));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function wl(e){var t=e.reference,r=e.element,n=e.placement,o=n?qe(n):null,a=n?Tt(n):null,s=t.x+t.width/2-r.width/2,i=t.y+t.height/2-r.height/2,l;switch(o){case ge:l={x:s,y:t.y-r.height};break;case ke:l={x:s,y:t.y+t.height};break;case Ee:l={x:t.x+t.width,y:i};break;case me:l={x:t.x-r.width,y:i};break;default:l={x:t.x,y:t.y}}var c=o?qn(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case kt:l[c]=l[c]-(t[u]/2-r[u]/2);break;case or:l[c]=l[c]+(t[u]/2-r[u]/2);break}}return l}function ur(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,s=a===void 0?e.strategy:a,i=r.boundary,l=i===void 0?gh:i,c=r.rootBoundary,u=c===void 0?sl:c,f=r.elementContext,d=f===void 0?ar:f,h=r.altBoundary,v=h===void 0?!1:h,m=r.padding,g=m===void 0?0:m,y=pl(typeof g!="number"?g:gl(g,nr)),p=d===ar?mh:ar,C=e.rects.popper,w=e.elements[v?p:d],_=Xh(dt(w)?w:w.contextElement||et(e.elements.popper),l,u,s),E=At(e.elements.reference),F=wl({reference:E,element:C,placement:o}),D=Gn(Object.assign({},C,F)),B=d===ar?D:E,R={top:_.top-B.top+y.top,bottom:B.bottom-_.bottom+y.bottom,left:_.left-B.left+y.left,right:B.right-_.right+y.right},b=e.modifiersData.offset;if(d===ar&&b){var A=b[o];Object.keys(R).forEach(function(q){var U=[Ee,ke].indexOf(q)>=0?1:-1,G=[ge,ke].indexOf(q)>=0?"y":"x";R[q]+=A[G]*U})}return R}function Jh(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,s=r.padding,i=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?cl:l,u=Tt(n),f=u?i?ul:ul.filter(function(v){return Tt(v)===u}):nr,d=f.filter(function(v){return c.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,m){return v[m]=ur(e,{placement:m,boundary:o,rootBoundary:a,padding:s})[qe(m)],v},{});return Object.keys(h).sort(function(v,m){return h[v]-h[m]})}function Zh(e){if(qe(e)===$n)return[];var t=Lr(e);return[yl(e),t,yl(t)]}function Qh(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,i=s===void 0?!0:s,l=r.fallbackPlacements,c=r.padding,u=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,m=r.allowedAutoPlacements,g=t.options.placement,y=qe(g),p=y===g,C=l||(p||!v?[Lr(g)]:Zh(g)),w=[g].concat(C).reduce(function(at,Ge){return at.concat(qe(Ge)===$n?Jh(t,{placement:Ge,boundary:u,rootBoundary:f,padding:c,flipVariations:v,allowedAutoPlacements:m}):Ge)},[]),_=t.rects.reference,E=t.rects.popper,F=new Map,D=!0,B=w[0],R=0;R<w.length;R++){var b=w[R],A=qe(b),q=Tt(b)===kt,U=[ge,ke].indexOf(A)>=0,G=U?"width":"height",X=ur(t,{placement:b,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),ce=U?q?Ee:me:q?ke:ge;_[G]>E[G]&&(ce=Lr(ce));var j=Lr(ce),N=[];if(a&&N.push(X[A]<=0),i&&N.push(X[ce]<=0,X[j]<=0),N.every(function(at){return at})){B=b,D=!1;break}F.set(b,N)}if(D)for(var W=v?3:1,be=function(Ge){var Or=w.find(function(hn){var St=F.get(hn);if(St)return St.slice(0,Ge).every(function($a){return $a})});if(Or)return B=Or,"break"},De=W;De>0;De--){var Ut=be(De);if(Ut==="break")break}t.placement!==B&&(t.modifiersData[n]._skip=!0,t.placement=B,t.reset=!0)}}const ev={name:"flip",enabled:!0,phase:"main",fn:Qh,requiresIfExists:["offset"],data:{_skip:!1}};function Sl(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function xl(e){return[ge,Ee,ke,me].some(function(t){return e[t]>=0})}function tv(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=ur(t,{elementContext:"reference"}),i=ur(t,{altBoundary:!0}),l=Sl(s,n),c=Sl(i,o,a),u=xl(l),f=xl(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const rv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tv};function nv(e,t,r){var n=qe(e),o=[me,ge].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=a[0],i=a[1];return s=s||0,i=(i||0)*o,[me,Ee].indexOf(n)>=0?{x:i,y:s}:{x:s,y:i}}function ov(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,s=cl.reduce(function(u,f){return u[f]=nv(f,t.rects,a),u},{}),i=s[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}const av={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ov};function iv(e){var t=e.state,r=e.name;t.modifiersData[r]=wl({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const lv={name:"popperOffsets",enabled:!0,phase:"read",fn:iv,data:{}};function sv(e){return e==="x"?"y":"x"}function uv(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,i=s===void 0?!1:s,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,v=r.tetherOffset,m=v===void 0?0:v,g=ur(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),y=qe(t.placement),p=Tt(t.placement),C=!p,w=qn(y),_=sv(w),E=t.modifiersData.popperOffsets,F=t.rects.reference,D=t.rects.popper,B=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,R=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),b=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(E){if(a){var q,U=w==="y"?ge:me,G=w==="y"?ke:Ee,X=w==="y"?"height":"width",ce=E[w],j=ce+g[U],N=ce-g[G],W=h?-D[X]/2:0,be=p===kt?F[X]:D[X],De=p===kt?-D[X]:-F[X],Ut=t.elements.arrow,at=h&&Ut?Mn(Ut):{width:0,height:0},Ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:vl(),Or=Ge[U],hn=Ge[G],St=lr(0,F[X],at[X]),$a=C?F[X]/2-W-St-Or-R.mainAxis:be-St-Or-R.mainAxis,Lb=C?-F[X]/2+W+St+hn+R.mainAxis:De+St+hn+R.mainAxis,Ia=t.elements.arrow&&ir(t.elements.arrow),Hb=Ia?w==="y"?Ia.clientTop||0:Ia.clientLeft||0:0,xc=(q=b==null?void 0:b[w])!=null?q:0,Vb=ce+$a-xc-Hb,Ub=ce+Lb-xc,Oc=lr(h?Nr(j,Vb):j,ce,h?ht(N,Ub):N);E[w]=Oc,A[w]=Oc-ce}if(i){var _c,Wb=w==="x"?ge:me,Kb=w==="x"?ke:Ee,xt=E[_],vn=_==="y"?"height":"width",kc=xt+g[Wb],Ec=xt-g[Kb],Fa=[ge,me].indexOf(y)!==-1,Ac=(_c=b==null?void 0:b[_])!=null?_c:0,Tc=Fa?kc:xt-F[vn]-D[vn]-Ac+R.altAxis,Rc=Fa?xt+F[vn]+D[vn]-Ac-R.altAxis:Ec,jc=h&&Fa?$h(Tc,xt,Rc):lr(h?Tc:kc,xt,h?Rc:Ec);E[_]=jc,A[_]=jc-xt}t.modifiersData[n]=A}}const cv={name:"preventOverflow",enabled:!0,phase:"main",fn:uv,requiresIfExists:["offset"]};function fv(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function dv(e){return e===xe(e)||!Ae(e)?Bn(e):fv(e)}function hv(e){var t=e.getBoundingClientRect(),r=Et(t.width)/e.offsetWidth||1,n=Et(t.height)/e.offsetHeight||1;return r!==1||n!==1}function vv(e,t,r){r===void 0&&(r=!1);var n=Ae(t),o=Ae(t)&&hv(t),a=et(t),s=At(e,o,r),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Me(t)!=="body"||Dn(a))&&(i=dv(t)),Ae(t)?(l=At(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Nn(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function pv(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!r.has(i)){var l=t.get(i);l&&o(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function gv(e){var t=pv(e);return Eh.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function mv(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function yv(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Ol={placement:"bottom",modifiers:[],strategy:"absolute"};function _l(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function bv(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?Ol:o;return function(i,l,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ol,a),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:u,setOptions:function(y){var p=typeof y=="function"?y(u.options):y;m(),u.options=Object.assign({},a,u.options,p),u.scrollParents={reference:dt(i)?sr(i):i.contextElement?sr(i.contextElement):[],popper:sr(l)};var C=gv(yv([].concat(n,u.options.modifiers)));return u.orderedModifiers=C.filter(function(w){return w.enabled}),v(),h.update()},forceUpdate:function(){if(!d){var y=u.elements,p=y.reference,C=y.popper;if(_l(p,C)){u.rects={reference:vv(p,ir(C),u.options.strategy==="fixed"),popper:Mn(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(R){return u.modifiersData[R.name]=Object.assign({},R.data)});for(var w=0;w<u.orderedModifiers.length;w++){if(u.reset===!0){u.reset=!1,w=-1;continue}var _=u.orderedModifiers[w],E=_.fn,F=_.options,D=F===void 0?{}:F,B=_.name;typeof E=="function"&&(u=E({state:u,options:D,name:B,instance:h})||u)}}}},update:mv(function(){return new Promise(function(g){h.forceUpdate(),g(u)})}),destroy:function(){m(),d=!0}};if(!_l(i,l))return h;h.setOptions(c).then(function(g){!d&&c.onFirstUpdate&&c.onFirstUpdate(g)});function v(){u.orderedModifiers.forEach(function(g){var y=g.name,p=g.options,C=p===void 0?{}:p,w=g.effect;if(typeof w=="function"){var _=w({state:u,name:y,instance:h,options:C}),E=function(){};f.push(_||E)}})}function m(){f.forEach(function(g){return g()}),f=[]}return h}}var Cv=[Hh,lv,Gh,Rh,av,ev,cv,qh,rv],wv=bv({defaultModifiers:Cv});function Sv(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function kl(e,t,r){return r&&Sv(e,r),e}function Hr(){return(Hr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function El(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Al(e,t){if(e==null)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}function Tl(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var Rl=Object.prototype,jl=Rl.toString,xv=Rl.hasOwnProperty,Pl=/^\s*function (\w+)/;function $l(e){var t,r=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(r){var n=r.toString().match(Pl);return n?n[1]:""}return""}var vt=function(e){var t,r;return Tl(e)!==!1&&typeof(t=e.constructor)=="function"&&Tl(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1},Il=function(e){return e},ye=Il;if(process.env.NODE_ENV!=="production"){var Ov=typeof console<"u";ye=Ov?function(e){console.warn("[VueTypes warn]: "+e)}:Il}var cr=function(e,t){return xv.call(e,t)},_v=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Rt=Array.isArray||function(e){return jl.call(e)==="[object Array]"},jt=function(e){return jl.call(e)==="[object Function]"},Vr=function(e){return vt(e)&&cr(e,"_vueTypes_name")},Fl=function(e){return vt(e)&&(cr(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return cr(e,t)}))};function Ln(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function pt(e,t,r){var n,o=!0,a="";n=vt(e)?e:{type:e};var s=Vr(n)?n._vueTypes_name+" - ":"";if(Fl(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t===void 0)return o;Rt(n.type)?(o=n.type.some(function(f){return pt(f,t)===!0}),a=n.type.map(function(f){return $l(f)}).join(" or ")):o=(a=$l(n))==="Array"?Rt(t):a==="Object"?vt(t):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?function(f){if(f==null)return"";var d=f.constructor.toString().match(Pl);return d?d[1]:""}(t)===a:t instanceof n.type}if(!o){var i=s+'value "'+t+'" should be of type "'+a+'"';return i}if(cr(n,"validator")&&jt(n.validator)){var l=ye,c=[];if(ye=function(f){c.push(f)},o=n.validator(t),ye=l,!o){var u=(c.length>1?"* ":"")+c.join(`
12
12
  * `);return c.length=0,u}}return o}function Oe(e,t){var r=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(o){return o!==void 0||this.default?jt(o)||pt(this,o)===!0?(this.default=Rt(o)?function(){return[].concat(o)}:vt(o)?function(){return Object.assign({},o)}:o,this):(ye(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),n=r.validator;return jt(n)&&(r.validator=Ln(n,r)),r}function Be(e,t){var r=Oe(e,t);return Object.defineProperty(r,"validate",{value:function(n){return jt(this.validator)&&ye(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
13
13
  `+JSON.stringify(this)),this.validator=Ln(n,this),this}})}function Ml(e,t,r){var n,o,a=(n=t,o={},Object.getOwnPropertyNames(n).forEach(function(f){o[f]=Object.getOwnPropertyDescriptor(n,f)}),Object.defineProperties({},o));if(a._vueTypes_name=e,!vt(r))return a;var s,i,l=r.validator,c=Al(r,["validator"]);if(jt(l)){var u=a.validator;u&&(u=(i=(s=u).__original)!==null&&i!==void 0?i:s),a.validator=Ln(u?function(f){return u.call(this,f)&&l.call(this,f)}:l,a)}return Object.assign(a,c)}function Ur(e){return e.replace(/^(?!\s*$)/gm," ")}var kv=function(){return Be("any",{})},Ev=function(){return Be("function",{type:Function})},Av=function(){return Be("boolean",{type:Boolean})},Tv=function(){return Be("string",{type:String})},Rv=function(){return Be("number",{type:Number})},jv=function(){return Be("array",{type:Array})},Pv=function(){return Be("object",{type:Object})},$v=function(){return Oe("integer",{type:Number,validator:function(e){return _v(e)}})},Iv=function(){return Oe("symbol",{validator:function(e){return typeof e=="symbol"}})};function Fv(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return Oe(e.name||"<<anonymous function>>",{validator:function(r){var n=e(r);return n||ye(this._vueTypes_name+" - "+t),n}})}function Mv(e){if(!Rt(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',r=e.reduce(function(n,o){if(o!=null){var a=o.constructor;n.indexOf(a)===-1&&n.push(a)}return n},[]);return Oe("oneOf",{type:r.length>0?r:void 0,validator:function(n){var o=e.indexOf(n)!==-1;return o||ye(t),o}})}function qv(e){if(!Rt(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,r=[],n=0;n<e.length;n+=1){var o=e[n];if(Fl(o)){if(Vr(o)&&o._vueTypes_name==="oneOf"){r=r.concat(o.type);continue}if(jt(o.validator)&&(t=!0),o.type!==!0&&o.type){r=r.concat(o.type);continue}}r.push(o)}return r=r.filter(function(a,s){return r.indexOf(a)===s}),Oe("oneOfType",t?{type:r,validator:function(a){var s=[],i=e.some(function(l){var c=pt(Vr(l)&&l._vueTypes_name==="oneOf"?l.type||null:l,a);return typeof c=="string"&&s.push(c),c===!0});return i||ye("oneOfType - provided value does not match any of the "+s.length+` passed-in validators:
14
14
  `+Ur(s.join(`
@@ -26,7 +26,7 @@ const GctFormText = /* @__PURE__ */ defineComponent({
26
26
  };
27
27
  },
28
28
  render() {
29
- return createVNode(resolveComponent("a-select"), mergeProps({
29
+ return createVNode(resolveComponent("a-input"), mergeProps({
30
30
  "value": this.val,
31
31
  "onUpdate:value": ($event) => this.val = $event
32
32
  }, this.model.props || {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/core-web",
3
- "version": "0.0.1-dev.25",
3
+ "version": "0.0.1-dev.26",
4
4
  "type": "module",
5
5
  "description": "paas 平台网页端核心包",
6
6
  "main": "dist/index.min.cjs",
@@ -44,7 +44,7 @@
44
44
  "gen-api:platform": "gct-paas gen-api --url=http://paas.paasdev.gct-paas.com --tag=platform -t ../cli/hbs-temp -o ./src/service/gct-platform && prettier './src/service/gct-platform' --write"
45
45
  },
46
46
  "dependencies": {
47
- "@gct-paas/core": "0.0.1-dev.25",
47
+ "@gct-paas/core": "0.0.1-dev.26",
48
48
  "@monaco-editor/loader": "^1.5.0",
49
49
  "ant-design-vue": "3.2.20",
50
50
  "lodash-es": "^4.17.21",
@@ -53,12 +53,12 @@
53
53
  "vue3-colorpicker": "^2.3.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@gct-paas/build": "0.0.1-dev.25",
57
- "@gct-paas/scss": "0.0.1-dev.25",
56
+ "@gct-paas/build": "0.0.1-dev.26",
57
+ "@gct-paas/scss": "0.0.1-dev.26",
58
58
  "sass": "^1.85.1"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "vue": "^3.x"
62
62
  },
63
- "gitHead": "cf7da3864624e714c70db014f5b7aa75e552d1b0"
63
+ "gitHead": "9cf5a8ec2d96167b764307bd52e291073cbd6476"
64
64
  }