@gct-paas/core-web 0.0.1-dev.24 → 0.0.1-dev.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.cjs +1 -1
- package/dist/index.system.min.js +6 -6
- package/es/editor/gct-form-check-switch/index.mjs +2 -2
- package/es/editor/gct-form-i18n/index.mjs +2 -2
- package/es/editor/gct-form-icon-select/index.mjs +2 -2
- package/es/editor/gct-form-info/index.mjs +2 -2
- package/es/editor/gct-form-length-unit/index.mjs +2 -2
- package/es/editor/gct-form-picker/index.mjs +2 -2
- package/es/editor/gct-form-select/index.mjs +2 -2
- package/es/editor/gct-form-span/index.mjs +2 -2
- package/es/editor/gct-form-text/gct-form-text.mjs +1 -1
- package/es/editor/gct-form-textarea/index.mjs +2 -2
- package/package.json +5 -5
package/dist/index.min.cjs
CHANGED
|
@@ -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.EditorType.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.EditorType.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.EditorType.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.EditorType.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.EditorType.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.EditorType.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.EditorType.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.EditorType.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.EditorType.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-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(`
|
|
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(`
|