@gct-paas/core-web 0.1.4-dev.2 → 0.1.4-dev.3

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.
@@ -1,5 +1,5 @@
1
- "use strict";var wu=Object.defineProperty;var Su=(e,t,r)=>t in e?wu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var q=(e,t,r)=>Su(e,typeof t!="symbol"?t+"":t,r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),w=require("@gct-paas/core"),De=require("ant-design-vue"),gt=require("lodash-es");function Ou(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ra(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function na(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ra(Object(r),!0).forEach(function(n){Ou(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ra(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xu(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Eu(e,t){if(e==null)return{};var r=xu(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ku(e,t){return _u(e)||Tu(e,t)||Nu(e,t)||Au()}function _u(e){if(Array.isArray(e))return e}function Tu(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,a=void 0;try{for(var u=e[Symbol.iterator](),l;!(n=(l=u.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(s){o=!0,a=s}finally{try{!n&&u.return!=null&&u.return()}finally{if(o)throw a}}return r}}function Nu(e,t){if(e){if(typeof e=="string")return oa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oa(e,t)}}function oa(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Au(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ru=require("../internals/export"),Pu=require("../internals/array-includes").includes,ju=require("../internals/fails"),Iu=require("../internals/add-to-unscopables"),Vu=ju(function(){return!Array(1).includes()});Ru({target:"Array",proto:!0,forced:Vu},{includes:function(t){return Pu(this,t,arguments.length>1?arguments[1]:void 0)}});Iu("includes");function $u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ia(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aa(Object(r),!0).forEach(function(n){$u(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aa(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,a){return a(o)},n)}}function kt(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),s=0;s<u;s++)l[s]=arguments[s];return t.apply(r,[].concat(o,l))}}}function lr(e){return{}.toString.call(e).includes("Object")}function Fu(e){return!Object.keys(e).length}function It(e){return typeof e=="function"}function Mu(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function qu(e,t){return lr(t)||Pe("changeType"),Object.keys(t).some(function(r){return!Mu(e,r)})&&Pe("changeField"),t}function Du(e){It(e)||Pe("selectorType")}function Gu(e){It(e)||lr(e)||Pe("handlerType"),lr(e)&&Object.values(e).some(function(t){return!It(t)})&&Pe("handlersType")}function Lu(e){e||Pe("initialIsRequired"),lr(e)||Pe("initialType"),Fu(e)&&Pe("initialContent")}function Hu(e,t){throw new Error(e[t]||e.default)}var Uu={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Pe=kt(Hu)(Uu),Xt={changes:qu,selector:Du,handler:Gu,initial:Lu};function zu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Xt.initial(e),Xt.handler(t);var r={current:e},n=kt(Yu)(r,t),o=kt(Ku)(r),a=kt(Xt.changes)(e),u=kt(Wu)(r);function l(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return Xt.selector(d),d(r.current)}function s(d){Bu(n,o,a,u)(d)}return[l,s]}function Wu(e,t){return It(t)?t(e.current):t}function Ku(e,t){return e.current=ia(ia({},e.current),t),t}function Yu(e,t,r){return It(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var Xu={create:zu},Ju={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function Zu(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),s=0;s<u;s++)l[s]=arguments[s];return t.apply(r,[].concat(o,l))}}}function Qu(e){return{}.toString.call(e).includes("Object")}function ec(e){return e||la("configIsRequired"),Qu(e)||la("configType"),e.urls?(tc(),{paths:{vs:e.urls.monacoBase}}):e}function tc(){console.warn(Vl.deprecation)}function rc(e,t){throw new Error(e[t]||e.default)}var Vl={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),w=require("@gct-paas/core"),qe=require("ant-design-vue"),vt=require("lodash-es");function yu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ea(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ta(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ea(Object(r),!0).forEach(function(n){yu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ea(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bu(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Cu(e,t){if(e==null)return{};var r=bu(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wu(e,t){return Su(e)||Ou(e,t)||xu(e,t)||Eu()}function Su(e){if(Array.isArray(e))return e}function Ou(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,i=void 0;try{for(var u=e[Symbol.iterator](),l;!(n=(l=u.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(s){o=!0,i=s}finally{try{!n&&u.return!=null&&u.return()}finally{if(o)throw i}}return r}}function xu(e,t){if(e){if(typeof e=="string")return ra(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ra(e,t)}}function ra(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Eu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ku=require("../internals/export"),_u=require("../internals/array-includes").includes,Tu=require("../internals/fails"),Nu=require("../internals/add-to-unscopables"),Au=Tu(function(){return!Array(1).includes()});ku({target:"Array",proto:!0,forced:Au},{includes:function(t){return _u(this,t,arguments.length>1?arguments[1]:void 0)}});Nu("includes");function Pu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function na(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function oa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?na(Object(r),!0).forEach(function(n){Pu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):na(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ru(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function Et(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),s=0;s<u;s++)l[s]=arguments[s];return t.apply(r,[].concat(o,l))}}}function ir(e){return{}.toString.call(e).includes("Object")}function ju(e){return!Object.keys(e).length}function jt(e){return typeof e=="function"}function Iu(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Vu(e,t){return ir(t)||Pe("changeType"),Object.keys(t).some(function(r){return!Iu(e,r)})&&Pe("changeField"),t}function $u(e){jt(e)||Pe("selectorType")}function Bu(e){jt(e)||ir(e)||Pe("handlerType"),ir(e)&&Object.values(e).some(function(t){return!jt(t)})&&Pe("handlersType")}function Fu(e){e||Pe("initialIsRequired"),ir(e)||Pe("initialType"),ju(e)&&Pe("initialContent")}function Mu(e,t){throw new Error(e[t]||e.default)}var qu={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Pe=Et(Mu)(qu),Yt={changes:Vu,selector:$u,handler:Bu,initial:Fu};function Du(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Yt.initial(e),Yt.handler(t);var r={current:e},n=Et(Hu)(r,t),o=Et(Lu)(r),i=Et(Yt.changes)(e),u=Et(Gu)(r);function l(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return Yt.selector(d),d(r.current)}function s(d){Ru(n,o,i,u)(d)}return[l,s]}function Gu(e,t){return jt(t)?t(e.current):t}function Lu(e,t){return e.current=oa(oa({},e.current),t),t}function Hu(e,t,r){return jt(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var Uu={create:Du},zu={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function Wu(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),s=0;s<u;s++)l[s]=arguments[s];return t.apply(r,[].concat(o,l))}}}function Ku(e){return{}.toString.call(e).includes("Object")}function Yu(e){return e||aa("configIsRequired"),Ku(e)||aa("configType"),e.urls?(Xu(),{paths:{vs:e.urls.monacoBase}}):e}function Xu(){console.warn(Rl.deprecation)}function Ju(e,t){throw new Error(e[t]||e.default)}var Rl={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
3
3
  You are using deprecated way of configuration.
4
4
 
5
5
  Instead of using
@@ -8,13 +8,13 @@ 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
- `},la=Zu(rc)(Vl),nc={config:ec},oc=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 $l(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],$l(e[r],t[r]))}),na(na({},e),t)}var ac={type:"cancelation",msg:"operation is manually canceled"};function Vr(e){var t=!1,r=new Promise(function(n,o){e.then(function(a){return t?o(ac):n(a)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var ic=Xu.create({config:Ju,isInitialized:!1,resolve:null,reject:null,monaco:null}),Bl=ku(ic,2),Dt=Bl[0],wr=Bl[1];function lc(e){var t=nc.config(e),r=t.monaco,n=Eu(t,["monaco"]);wr(function(o){return{config:$l(o.config,n),monaco:r}})}function sc(){var e=Dt(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(wr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Vr($r);if(window.monaco&&window.monaco.editor)return Fl(window.monaco),e.resolve(window.monaco),Vr($r);oc(uc,dc)(fc)}return Vr($r)}function uc(e){return document.body.appendChild(e)}function cc(e){var t=document.createElement("script");return e&&(t.src=e),t}function dc(e){var t=Dt(function(n){var o=n.config,a=n.reject;return{config:o,reject:a}}),r=cc("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function fc(){var e=Dt(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){Fl(r),e.resolve(r)},function(r){e.reject(r)})}function Fl(e){Dt().monaco||wr({monaco:e})}function pc(){return Dt(function(e){var t=e.monaco;return t})}var $r=new Promise(function(e,t){return wr({resolve:e,reject:t})}),hc={config:lc,init:sc,__getMonacoInstance:pc};const Jn=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(()=>{hc.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)}}),Zn=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 vc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const sa=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(Zn,{layout:o,style:this.getItemStyle(n.props.model)},vc(n)?n:{default:()=>[n]})})])}});function ua(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const ca=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},ua(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},ua(a)?a:{default:()=>[a]})}))?e:{default:()=>[e]})}}),da=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])}}),gc=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 mc{constructor(){q(this,"component","gct-form-length-unit")}}const yc=w.widthEditorInstall(w.EditorTypeOld.LENGTH_UNIT,()=>new mc,gc),Ml=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 ql{constructor(){q(this,"component","gct-form-color")}}const bc=w.widthEditorInstall(w.EditorType.COLOR,()=>new ql,Ml),Cc=w.widthEditorInstall(w.EditorTypeOld.COLOR,()=>new ql,Ml);class wc{constructor(){q(this,"component","gct-form-check-switch")}}const Sc=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]})}}),Oc=w.widthEditorInstall(w.EditorTypeOld.CHECK_SWITCH,()=>new wc,Sc);class xc{constructor(){q(this,"component","gct-form-i18n")}}const Ec=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)}}),kc=w.widthEditorInstall(w.EditorTypeOld.I18N,()=>new xc,Ec),_c=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 Tc=class{constructor(){q(this,"component","gct-form-icon-select")}};const Nc=w.widthEditorInstall(w.EditorTypeOld.ICON_SELECT,()=>new Tc,_c);class Dl{constructor(){q(this,"component","gct-form-number")}}const Gl=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)}}),Ac=w.widthEditorInstall(w.EditorType.NUMBER,()=>new Dl,Gl),Rc=w.widthEditorInstall(w.EditorTypeOld.NUMBER,()=>new Dl,Gl);class Pc{constructor(){q(this,"component","gct-form-picker")}}const jc=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)}}),Ic=w.widthEditorInstall(w.EditorTypeOld.PICKER,()=>new Pc,jc);class Vc{constructor(){q(this,"component","gct-form-select")}}const $c=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)}}),Bc=w.widthEditorInstall(w.EditorTypeOld.SELECT,()=>new Vc,$c);class Fc{constructor(){q(this,"component","gct-form-Modal-select")}}const Mc=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)]})}}),qc=w.widthEditorInstall(w.EditorTypeOld.MODEL_SELECT,()=>new Fc,Mc);class Dc{constructor(){q(this,"component","gct-form-field-select")}}const Gc={class:"gct-box"},Lc=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",Gc,[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,__:[2]},8,["visible"])}}}),Hc=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},fa=Hc(Lc,[["__scopeId","data-v-bff0c27a"]]),Uc=i.defineComponent({name:"GctFormFieldSelect",components:{modal:fa},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(fa,{value:this.visible,"onUpdate:value":e=>this.visible=e},null)])}}),zc=w.widthEditorInstall(w.EditorTypeOld.Field_SELECT,()=>new Dc,Uc);class Wc{constructor(){q(this,"component","gct-form-span")}}const Kc=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&&De.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)])])}}),Yc=w.widthEditorInstall(w.EditorTypeOld.SPAN,()=>new Wc,Kc);class Ll{constructor(){q(this,"component","gct-form-switch")}}const Hl=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)])}}),Xc=w.widthEditorInstall(w.EditorType.SWITCH,()=>new Ll,Hl),Jc=w.widthEditorInstall(w.EditorTypeOld.SWITCH,()=>new Ll,Hl);class Ul{constructor(){q(this,"component","gct-form-text")}}const zl=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)}}),Zc=w.widthEditorInstall(w.EditorType.TEXT,()=>new Ul,zl),Qc=w.widthEditorInstall(w.EditorTypeOld.TEXT,()=>new Ul,zl);class ed{constructor(){q(this,"component","gct-form-textarea")}}const td=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)}}),rd=w.widthEditorInstall(w.EditorTypeOld.TEXTAREA,()=>new ed,td);function nd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Wl=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(De.RadioGroup,i.mergeProps({value:this.val,"onUpdate:value":r=>this.val=r,size:"small","button-style":"solid"},e),nd(t=this.c.state.options.map(r=>i.createVNode(De.RadioButton,{key:r.value,value:r.value},{default:()=>[r.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),i.createVNode(De.RadioGroup,i.mergeProps({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let Kl=class{constructor(){q(this,"component","gct-form-radio")}};const od=w.widthEditorInstall(w.EditorType.RADIO,()=>new Kl,Wl),ad=w.widthEditorInstall(w.EditorTypeOld.RADIO,()=>new Kl,Wl),id=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 ld=class{constructor(){q(this,"component","gct-form-info")}};const sd=w.widthEditorInstall(w.EditorTypeOld.INFO,()=>new ld,id),Yl=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(()=>gt.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(De.CheckboxGroup,i.mergeProps({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class Xl{constructor(){q(this,"component","gct-form-checkbox")}}const ud=w.widthEditorInstall(w.EditorType.CHECKBOX,()=>new Xl,Yl),cd=w.widthEditorInstall(w.EditorTypeOld.CHECKBOX,()=>new Xl,Yl);var Jl=require("../internals/global-this"),Zl=require("../internals/function-call"),po=require("../internals/array-buffer-view-core"),dd=require("../internals/length-of-array-like"),fd=require("../internals/to-offset"),pd=require("../internals/to-object"),Ql=require("../internals/fails"),hd=Jl.RangeError,Qn=Jl.Int8Array,pa=Qn&&Qn.prototype,es=pa&&pa.set,vd=po.aTypedArray,gd=po.exportTypedArrayMethod,eo=!Ql(function(){var e=new Uint8ClampedArray(2);return Zl(es,e,{length:1,0:3},1),e[1]!==3}),md=eo&&po.NATIVE_ARRAY_BUFFER_VIEWS&&Ql(function(){var e=new Qn(2);return e.set(1),e.set("2",1),e[0]!==0||e[1]!==2});gd("set",function(t){vd(this);var r=fd(arguments.length>1?arguments[1]:void 0,1),n=pd(t);if(eo)return Zl(es,this,n,r);var o=this.length,a=dd(n),u=0;if(a+r>o)throw new hd("Wrong length");for(;u<a;)this[r+u]=n[u++]},!eo||md);function ts(e){return i.getCurrentScope()?(i.onScopeDispose(e),!0):!1}const Sr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const yd=Object.prototype.toString,bd=e=>yd.call(e)==="[object Object]",Ee=()=>{},Cd=wd();function wd(){var e,t;return Sr&&((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 Sd(...e){if(e.length!==1)return i.toRef(...e);const t=e[0];return typeof t=="function"?i.readonly(i.customRef(()=>({get:t,set:Ee}))):i.ref(t)}function rs(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 ns=e=>e();function Od(e,t={}){let r,n,o=Ee;const a=s=>{clearTimeout(s),o(),o=Ee};let u;return s=>{const d=i.toValue(e),c=i.toValue(t.maxWait);return r&&a(r),d<=0||c!==void 0&&c<=0?(n&&(a(n),n=void 0),Promise.resolve(s())):new Promise((f,p)=>{o=t.rejectOnCancel?p:f,u=s,c&&!n&&(n=setTimeout(()=>{r&&a(r),n=void 0,f(u())},c)),r=setTimeout(()=>{n&&a(n),n=void 0,f(s())},d)})}}function xd(e=ns,t={}){const{initialState:r="active"}=t,n=Sd(r==="active");function o(){n.value=!1}function a(){n.value=!0}const u=(...l)=>{n.value&&e(...l)};return{isActive:i.readonly(n),pause:o,resume:a,eventFilter:u}}function Ed(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 Br(e){return Array.isArray(e)?e:[e]}function kd(e){return i.getCurrentInstance()}function ke(e,t=200,r={}){return rs(Od(t,r),e)}function _d(e,t,r={}){const{eventFilter:n=ns,...o}=r;return i.watch(e,rs(n,t),o)}function Td(e,t,r={}){const{eventFilter:n,initialState:o="active",...a}=r,{eventFilter:u,pause:l,resume:s,isActive:d}=xd(n,{initialState:o});return{stop:_d(e,t,{...a,eventFilter:u}),pause:l,resume:s,isActive:d}}function We(e,t=!0,r){kd()?i.onMounted(e,r):t?e():i.nextTick(e)}function Nd(e,t,r={}){const{immediate:n=!0,immediateCallback:o=!1}=r,a=i.shallowRef(!1);let u;function l(){u&&(clearTimeout(u),u=void 0)}function s(){a.value=!1,l()}function d(...c){o&&e(),l(),a.value=!0,u=setTimeout(()=>{a.value=!1,u=void 0,e(...c)},i.toValue(t))}return n&&(a.value=!0,Sr&&d()),ts(s),{isPending:i.shallowReadonly(a),start:d,stop:s}}function Ad(e,t,r){return i.watch(e,t,{...r,immediate:!0})}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}const Vt=Sr?window:void 0,os=Sr?window.navigator:void 0;function _t(e){var t;const r=i.toValue(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Ge(...e){const t=[],r=()=>{t.forEach(l=>l()),t.length=0},n=(l,s,d,c)=>(l.addEventListener(s,d,c),()=>l.removeEventListener(s,d,c)),o=i.computed(()=>{const l=Br(i.toValue(e[0])).filter(s=>s!=null);return l.every(s=>typeof s!="string")?l:void 0}),a=Ad(()=>{var l,s;return[(s=(l=o.value)==null?void 0:l.map(d=>_t(d)))!=null?s:[Vt].filter(d=>d!=null),Br(i.toValue(o.value?e[1]:e[0])),Br(i.unref(o.value?e[2]:e[1])),i.toValue(o.value?e[3]:e[2])]},([l,s,d,c])=>{if(r(),!(l!=null&&l.length)||!(s!=null&&s.length)||!(d!=null&&d.length))return;const f=bd(c)?{...c}:c;t.push(...l.flatMap(p=>s.flatMap(h=>d.map(y=>n(p,h,y,f)))))},{flush:"post"}),u=()=>{a(),r()};return ts(r),u}let ha=!1;function Rd(e,t,r={}){const{window:n=Vt,ignore:o=[],capture:a=!0,detectIframe:u=!1,controls:l=!1}=r;if(!n)return l?{stop:Ee,cancel:Ee,trigger:Ee}:Ee;if(Cd&&!ha){ha=!0;const v={passive:!0};Array.from(n.document.body.children).forEach(g=>g.addEventListener("click",Ee,v)),n.document.documentElement.addEventListener("click",Ee,v)}let s=!0;const d=v=>i.toValue(o).some(g=>{if(typeof g=="string")return Array.from(n.document.querySelectorAll(g)).some(m=>m===v.target||v.composedPath().includes(m));{const m=_t(g);return m&&(v.target===m||v.composedPath().includes(m))}});function c(v){const g=i.toValue(v);return g&&g.$.subTree.shapeFlag===16}function f(v,g){const m=i.toValue(v),C=m.$.subTree&&m.$.subTree.children;return C==null||!Array.isArray(C)?!1:C.some(O=>O.el===g.target||g.composedPath().includes(O.el))}const p=v=>{const g=_t(e);if(v.target!=null&&!(!(g instanceof Element)&&c(e)&&f(e,v))&&!(!g||g===v.target||v.composedPath().includes(g))){if("detail"in v&&v.detail===0&&(s=!d(v)),!s){s=!0;return}t(v)}};let h=!1;const y=[Ge(n,"click",v=>{h||(h=!0,setTimeout(()=>{h=!1},0),p(v))},{passive:!0,capture:a}),Ge(n,"pointerdown",v=>{const g=_t(e);s=!d(v)&&!!(g&&!v.composedPath().includes(g))},{passive:!0}),u&&Ge(n,"blur",v=>{setTimeout(()=>{var g;const m=_t(e);((g=n.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(m!=null&&m.contains(n.document.activeElement))&&t(v)},0)},{passive:!0})].filter(Boolean),b=()=>y.forEach(v=>v());return l?{stop:b,cancel:()=>{s=!1},trigger:v=>{s=!0,p(v),s=!1}}:b}function Pd(){const e=i.shallowRef(!1),t=i.getCurrentInstance();return t&&i.onMounted(()=>{e.value=!0},t),e}function as(e){const t=Pd();return i.computed(()=>(t.value,!!e()))}function va(e,t={}){const{controls:r=!1,navigator:n=os}=t,o=as(()=>n&&"permissions"in n),a=i.shallowRef(),u=typeof e=="string"?{name:e}:e,l=i.shallowRef(),s=()=>{var c,f;l.value=(f=(c=a.value)==null?void 0:c.state)!=null?f:"prompt"};Ge(a,"change",s,{passive:!0});const d=Ed(async()=>{if(o.value){if(!a.value)try{a.value=await n.permissions.query(u)}catch{a.value=void 0}finally{s()}if(r)return i.toRaw(a.value)}});return d(),r?{state:l,isSupported:o,query:d}:l}function jd(e={}){const{navigator:t=os,read:r=!1,source:n,copiedDuring:o=1500,legacy:a=!1}=e,u=as(()=>t&&"clipboard"in t),l=va("clipboard-read"),s=va("clipboard-write"),d=i.computed(()=>u.value||a),c=i.shallowRef(""),f=i.shallowRef(!1),p=Nd(()=>f.value=!1,o,{immediate:!1});async function h(){let m=!(u.value&&g(l.value));if(!m)try{c.value=await t.clipboard.readText()}catch{m=!0}m&&(c.value=v())}d.value&&r&&Ge(["copy","cut"],h,{passive:!0});async function y(m=i.toValue(n)){if(d.value&&m!=null){let C=!(u.value&&g(s.value));if(!C)try{await t.clipboard.writeText(m)}catch{C=!0}C&&b(m),c.value=m,f.value=!0,p.start()}}function b(m){const C=document.createElement("textarea");C.value=m??"",C.style.position="absolute",C.style.opacity="0",document.body.appendChild(C),C.select(),document.execCommand("copy"),C.remove()}function v(){var m,C,O;return(O=(C=(m=document==null?void 0:document.getSelection)==null?void 0:m.call(document))==null?void 0:C.toString())!=null?O:""}function g(m){return m==="granted"||m==="prompt"}return{isSupported:d,text:c,copied:f,copy:y}}const Jt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Zt="__vueuse_ssr_handlers__",Id=Vd();function Vd(){return Zt in Jt||(Jt[Zt]=Jt[Zt]||{}),Jt[Zt]}function $d(e,t){return Id[e]||t}function Bd(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 Fd={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()}},ga="vueuse-storage";function Md(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=Vt,eventFilter:p,onError:h=_=>{console.error(_)},initOnMounted:y}=n,b=(c?i.shallowRef:i.ref)(typeof t=="function"?t():t),v=i.computed(()=>i.toValue(e));if(!r)try{r=$d("getDefaultStorage",()=>{var _;return(_=Vt)==null?void 0:_.localStorage})()}catch(_){h(_)}if(!r)return b;const g=i.toValue(t),m=Bd(g),C=(o=n.serializer)!=null?o:Fd[m],{pause:O,resume:k}=Td(b,_=>F(_),{flush:a,deep:u,eventFilter:p});i.watch(v,()=>T(),{flush:a});let E=!1;const P=_=>{y&&!E||T(_)},B=_=>{y&&!E||j(_)};f&&l&&(r instanceof Storage?Ge(f,"storage",P,{passive:!0}):Ge(f,ga,B)),y?We(()=>{E=!0,T()}):T();function I(_,A){if(f){const $={key:v.value,oldValue:_,newValue:A,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent("storage",$):new CustomEvent(ga,{detail:$}))}}function F(_){try{const A=r.getItem(v.value);if(_==null)I(A,null),r.removeItem(v.value);else{const $=C.write(_);A!==$&&(r.setItem(v.value,$),I(A,$))}}catch(A){h(A)}}function S(_){const A=_?_.newValue:r.getItem(v.value);if(A==null)return s&&g!=null&&r.setItem(v.value,C.write(g)),g;if(!_&&d){const $=C.read(A);return typeof d=="function"?d($,g):m==="object"&&!Array.isArray($)?{...g,...$}:$}else return typeof A!="string"?A:C.read(A)}function T(_){if(!(_&&_.storageArea!==r)){if(_&&_.key==null){b.value=g;return}if(!(_&&_.key!==v.value)){O();try{const A=C.write(b.value);(_===void 0||(_==null?void 0:_.newValue)!==A)&&(b.value=S(_))}catch(A){h(A)}finally{_?i.nextTick(k):k()}}}}function j(_){T(_.detail)}return b}function ho(e,t,r={}){const{window:n=Vt}=r;return Md(e,t,n==null?void 0:n.localStorage,r)}function sr(e){"@babel/helpers - typeof";return sr=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},sr(e)}var qd=/^\s+/,Dd=/\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=Gd(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=is(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ya(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ya(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=ma(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString: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.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+o+"%)":"hsla("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return ba(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return zd(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:of[ba(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+Ca(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var a=x(t);n="#"+Ca(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(Xd,arguments)},brighten:function(){return this._applyModification(Jd,arguments)},darken:function(){return this._applyModification(Zd,arguments)},desaturate:function(){return this._applyModification(Wd,arguments)},saturate:function(){return this._applyModification(Kd,arguments)},greyscale:function(){return this._applyModification(Yd,arguments)},spin:function(){return this._applyModification(Qd,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(rf,arguments)},complement:function(){return this._applyCombination(ef,arguments)},monochromatic:function(){return this._applyCombination(nf,arguments)},splitcomplement:function(){return this._applyCombination(tf,arguments)},triad:function(){return this._applyCombination(wa,[3])},tetrad:function(){return this._applyCombination(wa,[4])}};x.fromRatio=function(e,t){if(sr(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 Gd(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=uf(e)),sr(e)=="object"&&(Oe(e.r)&&Oe(e.g)&&Oe(e.b)?(t=Ld(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=Ud(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=Hd(e.h,n,a),u=!0,l="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=is(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 Ld(e,t,r){return{r:G(e,255)*255,g:G(t,255)*255,b:G(r,255)*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+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 Hd(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 ya(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 Ud(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 ba(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 zd(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(ls(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 Ca(e,t,r,n){var o=[ve(ls(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 Wd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s-=t/100,r.s=Or(r.s),x(r)}function Kd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s+=t/100,r.s=Or(r.s),x(r)}function Yd(e){return x(e).desaturate(100)}function Xd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l+=t/100,r.l=Or(r.l),x(r)}function Jd(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 Zd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l-=t/100,r.l=Or(r.l),x(r)}function Qd(e,t){var r=x(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,x(r)}function ef(e){var t=x(e).toHsl();return t.h=(t.h+180)%360,x(t)}function wa(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 tf(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 rf(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 nf(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=cf(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 to=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"},of=x.hexNames=af(to);function af(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function is(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function G(e,t){lf(e)&&(e="100%");var r=sf(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 Or(e){return Math.min(1,Math.max(0,e))}function oe(e){return parseInt(e,16)}function lf(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function sf(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 ls(e){return Math.round(parseFloat(e)*255).toString(16)}function Sa(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 uf(e){e=e.replace(qd,"").replace(Dd,"").toLowerCase();var t=!1;if(to[e])e=to[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:Sa(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:Sa(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 cf(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 Oa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qt={},xa;function df(){if(xa)return Qt;xa=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(N){var V=new Error(r+": "+N);throw V.source=r,V}function o(){var N=a();return r.length>0&&n("Invalid input not EOF"),N}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(N,V,M){return s(V,function(ee){var me=M();return me&&($(t.comma)||n("Missing comma before color stops")),{type:N,orientation:me,colorStops:O(k)}})}function s(N,V){var M=$(N);if(M){$(t.startCall)||n("Missing (");var ee=V(M);return $(t.endCall)||n("Missing )"),ee}}function d(){return c()||f()}function c(){return A("directional",t.sideOrCorner,1)}function f(){return A("angular",t.angleValue,1)}function p(){var N,V=h(),M;return V&&(N=[],N.push(V),M=r,$(t.comma)&&(V=h(),V?N.push(V):r=M)),N}function h(){var N=y()||b();if(N)N.at=g();else{var V=v();if(V){N=V;var M=g();M&&(N.at=M)}else{var ee=m();ee&&(N={type:"default-radial",at:ee})}}return N}function y(){var N=A("shape",/^(circle)/i,0);return N&&(N.style=_()||v()),N}function b(){var N=A("shape",/^(ellipse)/i,0);return N&&(N.style=T()||v()),N}function v(){return A("extent-keyword",t.extentKeywords,1)}function g(){if(A("position",/^at/,0)){var N=m();return N||n("Missing positioning value"),N}}function m(){var N=C();if(N.x||N.y)return{type:"position",value:N}}function C(){return{x:T(),y:T()}}function O(N){var V=N(),M=[];if(V)for(M.push(V);$(t.comma);)V=N(),V?M.push(V):n("One extra comma");return M}function k(){var N=E();return N||n("Expected color definition"),N.length=T(),N}function E(){return B()||F()||I()||P()}function P(){return A("literal",t.literalColor,0)}function B(){return A("hex",t.hexColor,1)}function I(){return s(t.rgbColor,function(){return{type:"rgb",value:O(S)}})}function F(){return s(t.rgbaColor,function(){return{type:"rgba",value:O(S)}})}function S(){return $(t.number)[1]}function T(){return A("%",t.percentageValue,1)||j()||_()}function j(){return A("position-keyword",t.positionKeywords,1)}function _(){return A("px",t.pixelValue,1)||A("em",t.emValue,1)}function A(N,V,M){var ee=$(V);if(ee)return{type:N,value:ee[M]}}function $(N){var V,M;return M=/^[\n\r\t\s]+/.exec(r),M&&Y(M[0].length),V=N.exec(r),V&&Y(V[0].length),V}function Y(N){r=r.substr(N)}return function(N){return r=N.toString(),o()}})(),Qt.parse=e.parse,Qt.stringify=e.stringify,Qt}var Ea=df(),te="top",de="bottom",fe="right",re="left",vo="auto",Gt=[te,de,fe,re],lt="start",$t="end",ff="clippingParents",ss="viewport",wt="popper",pf="reference",ka=Gt.reduce(function(e,t){return e.concat([t+"-"+lt,t+"-"+$t])},[]),us=[].concat(Gt,[vo]).reduce(function(e,t){return e.concat([t,t+"-"+lt,t+"-"+$t])},[]),hf="beforeRead",vf="read",gf="afterRead",mf="beforeMain",yf="main",bf="afterMain",Cf="beforeWrite",wf="write",Sf="afterWrite",Of=[hf,vf,gf,mf,yf,bf,Cf,wf,Sf];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 go(e){if(typeof ShadowRoot>"u")return!1;var t=ae(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function xf(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 Ef(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 kf={name:"applyStyles",enabled:!0,phase:"write",fn:xf,effect:Ef,requires:["computeStyles"]};function Ce(e){return e.split("-")[0]}var Le=Math.max,ur=Math.min,st=Math.round;function ro(){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 cs(){return!/^((?!chrome|android).)*safari/i.test(ro())}function ut(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&&st(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&st(n.height)/e.offsetHeight||1);var u=He(e)?ae(e):window,l=u.visualViewport,s=!cs()&&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 mo(e){var t=ut(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 ds(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&go(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Te(e){return ae(e).getComputedStyle(e)}function _f(e){return["table","td","th"].indexOf(we(e))>=0}function $e(e){return((He(e)?e.ownerDocument:e.document)||window.document).documentElement}function xr(e){return we(e)==="html"?e:e.assignedSlot||e.parentNode||(go(e)?e.host:null)||$e(e)}function _a(e){return!ue(e)||Te(e).position==="fixed"?null:e.offsetParent}function Tf(e){var t=/firefox/i.test(ro()),r=/Trident/i.test(ro());if(r&&ue(e)){var n=Te(e);if(n.position==="fixed")return null}var o=xr(e);for(go(o)&&(o=o.host);ue(o)&&["html","body"].indexOf(we(o))<0;){var a=Te(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 Lt(e){for(var t=ae(e),r=_a(e);r&&_f(r)&&Te(r).position==="static";)r=_a(r);return r&&(we(r)==="html"||we(r)==="body"&&Te(r).position==="static")?t:r||Tf(e)||t}function yo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function At(e,t,r){return Le(e,ur(t,r))}function Nf(e,t,r){var n=At(e,t,r);return n>r?r:n}function fs(){return{top:0,right:0,bottom:0,left:0}}function ps(e){return Object.assign({},fs(),e)}function hs(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Af=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ps(typeof t!="number"?t:hs(t,Gt))};function Rf(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=yo(l),d=[re,fe].indexOf(l)>=0,c=d?"height":"width";if(!(!a||!u)){var f=Af(o.padding,r),p=mo(a),h=s==="y"?te:re,y=s==="y"?de:fe,b=r.rects.reference[c]+r.rects.reference[s]-u[s]-r.rects.popper[c],v=u[s]-r.rects.reference[s],g=Lt(a),m=g?s==="y"?g.clientHeight||0:g.clientWidth||0:0,C=b/2-v/2,O=f[h],k=m-p[c]-f[y],E=m/2-p[c]/2+C,P=At(O,E,k),B=s;r.modifiersData[n]=(t={},t[B]=P,t.centerOffset=P-E,t)}}function Pf(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)||ds(t.elements.popper,o)&&(t.elements.arrow=o))}const jf={name:"arrow",enabled:!0,phase:"main",fn:Rf,effect:Pf,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ct(e){return e.split("-")[1]}var If={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vf(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:st(r*o)/o||0,y:st(n*o)/o||0}}function Ta(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,y=u.y,b=y===void 0?0:y,v=typeof c=="function"?c({x:h,y:b}):{x:h,y:b};h=v.x,b=v.y;var g=u.hasOwnProperty("x"),m=u.hasOwnProperty("y"),C=re,O=te,k=window;if(d){var E=Lt(r),P="clientHeight",B="clientWidth";if(E===ae(r)&&(E=$e(r),Te(E).position!=="static"&&l==="absolute"&&(P="scrollHeight",B="scrollWidth")),E=E,o===te||(o===re||o===fe)&&a===$t){O=de;var I=f&&E===k&&k.visualViewport?k.visualViewport.height:E[P];b-=I-n.height,b*=s?1:-1}if(o===re||(o===te||o===de)&&a===$t){C=fe;var F=f&&E===k&&k.visualViewport?k.visualViewport.width:E[B];h-=F-n.width,h*=s?1:-1}}var S=Object.assign({position:l},d&&If),T=c===!0?Vf({x:h,y:b},ae(r)):{x:h,y:b};if(h=T.x,b=T.y,s){var j;return Object.assign({},S,(j={},j[O]=m?"0":"",j[C]=g?"0":"",j.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",j))}return Object.assign({},S,(t={},t[O]=m?b+"px":"",t[C]=g?h+"px":"",t.transform="",t))}function $f(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:ct(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,Ta(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,Ta(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 Bf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$f,data:{}};var er={passive:!0};function Ff(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,er)}),l&&s.addEventListener("resize",r.update,er),function(){a&&d.forEach(function(c){c.removeEventListener("scroll",r.update,er)}),l&&s.removeEventListener("resize",r.update,er)}}const Mf={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ff,data:{}};var qf={left:"right",right:"left",bottom:"top",top:"bottom"};function or(e){return e.replace(/left|right|bottom|top/g,function(t){return qf[t]})}var Df={start:"end",end:"start"};function Na(e){return e.replace(/start|end/g,function(t){return Df[t]})}function bo(e){var t=ae(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Co(e){return ut($e(e)).left+bo(e).scrollLeft}function Gf(e,t){var r=ae(e),n=$e(e),o=r.visualViewport,a=n.clientWidth,u=n.clientHeight,l=0,s=0;if(o){a=o.width,u=o.height;var d=cs();(d||!d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:u,x:l+Co(e),y:s}}function Lf(e){var t,r=$e(e),n=bo(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Le(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),u=Le(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+Co(e),s=-n.scrollTop;return Te(o||r).direction==="rtl"&&(l+=Le(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:u,x:l,y:s}}function wo(e){var t=Te(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function vs(e){return["html","body","#document"].indexOf(we(e))>=0?e.ownerDocument.body:ue(e)&&wo(e)?e:vs(xr(e))}function Rt(e,t){var r;t===void 0&&(t=[]);var n=vs(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=ae(n),u=o?[a].concat(a.visualViewport||[],wo(n)?n:[]):n,l=t.concat(u);return o?l:l.concat(Rt(xr(u)))}function no(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Hf(e,t){var r=ut(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 Aa(e,t,r){return t===ss?no(Gf(e,r)):He(t)?Hf(t,r):no(Lf($e(e)))}function Uf(e){var t=Rt(xr(e)),r=["absolute","fixed"].indexOf(Te(e).position)>=0,n=r&&ue(e)?Lt(e):e;return He(n)?t.filter(function(o){return He(o)&&ds(o,n)&&we(o)!=="body"}):[]}function zf(e,t,r,n){var o=t==="clippingParents"?Uf(e):[].concat(t),a=[].concat(o,[r]),u=a[0],l=a.reduce(function(s,d){var c=Aa(e,d,n);return s.top=Le(c.top,s.top),s.right=ur(c.right,s.right),s.bottom=ur(c.bottom,s.bottom),s.left=Le(c.left,s.left),s},Aa(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 gs(e){var t=e.reference,r=e.element,n=e.placement,o=n?Ce(n):null,a=n?ct(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?yo(o):null;if(d!=null){var c=d==="y"?"height":"width";switch(a){case lt:s[d]=s[d]-(t[c]/2-r[c]/2);break;case $t:s[d]=s[d]+(t[c]/2-r[c]/2);break}}return s}function Bt(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?ff:l,d=r.rootBoundary,c=d===void 0?ss:d,f=r.elementContext,p=f===void 0?wt:f,h=r.altBoundary,y=h===void 0?!1:h,b=r.padding,v=b===void 0?0:b,g=ps(typeof v!="number"?v:hs(v,Gt)),m=p===wt?pf:wt,C=e.rects.popper,O=e.elements[y?m:p],k=zf(He(O)?O:O.contextElement||$e(e.elements.popper),s,c,u),E=ut(e.elements.reference),P=gs({reference:E,element:C,placement:o}),B=no(Object.assign({},C,P)),I=p===wt?B:E,F={top:k.top-I.top+g.top,bottom:I.bottom-k.bottom+g.bottom,left:k.left-I.left+g.left,right:I.right-k.right+g.right},S=e.modifiersData.offset;if(p===wt&&S){var T=S[o];Object.keys(F).forEach(function(j){var _=[fe,de].indexOf(j)>=0?1:-1,A=[te,de].indexOf(j)>=0?"y":"x";F[j]+=T[A]*_})}return F}function Wf(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?us:s,c=ct(n),f=c?l?ka:ka.filter(function(y){return ct(y)===c}):Gt,p=f.filter(function(y){return d.indexOf(y)>=0});p.length===0&&(p=f);var h=p.reduce(function(y,b){return y[b]=Bt(e,{placement:b,boundary:o,rootBoundary:a,padding:u})[Ce(b)],y},{});return Object.keys(h).sort(function(y,b){return h[y]-h[b]})}function Kf(e){if(Ce(e)===vo)return[];var t=or(e);return[Na(e),t,Na(t)]}function Yf(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,y=h===void 0?!0:h,b=r.allowedAutoPlacements,v=t.options.placement,g=Ce(v),m=g===v,C=s||(m||!y?[or(v)]:Kf(v)),O=[v].concat(C).reduce(function(Re,ye){return Re.concat(Ce(ye)===vo?Wf(t,{placement:ye,boundary:c,rootBoundary:f,padding:d,flipVariations:y,allowedAutoPlacements:b}):ye)},[]),k=t.rects.reference,E=t.rects.popper,P=new Map,B=!0,I=O[0],F=0;F<O.length;F++){var S=O[F],T=Ce(S),j=ct(S)===lt,_=[te,de].indexOf(T)>=0,A=_?"width":"height",$=Bt(t,{placement:S,boundary:c,rootBoundary:f,altBoundary:p,padding:d}),Y=_?j?fe:re:j?de:te;k[A]>E[A]&&(Y=or(Y));var N=or(Y),V=[];if(a&&V.push($[T]<=0),l&&V.push($[Y]<=0,$[N]<=0),V.every(function(Re){return Re})){I=S,B=!1;break}P.set(S,V)}if(B)for(var M=y?3:1,ee=function(ye){var Ct=O.find(function(Kt){var Fe=P.get(Kt);if(Fe)return Fe.slice(0,ye).every(function(Pr){return Pr})});if(Ct)return I=Ct,"break"},me=M;me>0;me--){var Qe=ee(me);if(Qe==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}const Xf={name:"flip",enabled:!0,phase:"main",fn:Yf,requiresIfExists:["offset"],data:{_skip:!1}};function Ra(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 Jf(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,u=Bt(t,{elementContext:"reference"}),l=Bt(t,{altBoundary:!0}),s=Ra(u,n),d=Ra(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 Zf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Jf};function Qf(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 ep(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,u=us.reduce(function(c,f){return c[f]=Qf(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 tp={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ep};function rp(e){var t=e.state,r=e.name;t.modifiersData[r]=gs({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const np={name:"popperOffsets",enabled:!0,phase:"read",fn:rp,data:{}};function op(e){return e==="x"?"y":"x"}function ap(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,y=r.tetherOffset,b=y===void 0?0:y,v=Bt(t,{boundary:s,rootBoundary:d,padding:f,altBoundary:c}),g=Ce(t.placement),m=ct(t.placement),C=!m,O=yo(g),k=op(O),E=t.modifiersData.popperOffsets,P=t.rects.reference,B=t.rects.popper,I=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,F=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(E){if(a){var j,_=O==="y"?te:re,A=O==="y"?de:fe,$=O==="y"?"height":"width",Y=E[O],N=Y+v[_],V=Y-v[A],M=h?-B[$]/2:0,ee=m===lt?P[$]:B[$],me=m===lt?-B[$]:-P[$],Qe=t.elements.arrow,Re=h&&Qe?mo(Qe):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:fs(),Ct=ye[_],Kt=ye[A],Fe=At(0,P[$],Re[$]),Pr=C?P[$]/2-M-Fe-Ct-F.mainAxis:ee-Fe-Ct-F.mainAxis,vu=C?-P[$]/2+M+Fe+Kt+F.mainAxis:me+Fe+Kt+F.mainAxis,jr=t.elements.arrow&&Lt(t.elements.arrow),gu=jr?O==="y"?jr.clientTop||0:jr.clientLeft||0:0,Wo=(j=S==null?void 0:S[O])!=null?j:0,mu=Y+Pr-Wo-gu,yu=Y+vu-Wo,Ko=At(h?ur(N,mu):N,Y,h?Le(V,yu):V);E[O]=Ko,T[O]=Ko-Y}if(l){var Yo,bu=O==="x"?te:re,Cu=O==="x"?de:fe,Me=E[k],Yt=k==="y"?"height":"width",Xo=Me+v[bu],Jo=Me-v[Cu],Ir=[te,re].indexOf(g)!==-1,Zo=(Yo=S==null?void 0:S[k])!=null?Yo:0,Qo=Ir?Xo:Me-P[Yt]-B[Yt]-Zo+F.altAxis,ea=Ir?Me+P[Yt]+B[Yt]-Zo-F.altAxis:Jo,ta=h&&Ir?Nf(Qo,Me,ea):At(h?Qo:Xo,Me,h?ea:Jo);E[k]=ta,T[k]=ta-Me}t.modifiersData[n]=T}}const ip={name:"preventOverflow",enabled:!0,phase:"main",fn:ap,requiresIfExists:["offset"]};function lp(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function sp(e){return e===ae(e)||!ue(e)?bo(e):lp(e)}function up(e){var t=e.getBoundingClientRect(),r=st(t.width)/e.offsetWidth||1,n=st(t.height)/e.offsetHeight||1;return r!==1||n!==1}function cp(e,t,r){r===void 0&&(r=!1);var n=ue(t),o=ue(t)&&up(t),a=$e(t),u=ut(e,o,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((we(t)!=="body"||wo(a))&&(l=sp(t)),ue(t)?(s=ut(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=Co(a))),{x:u.left+l.scrollLeft-s.x,y:u.top+l.scrollTop-s.y,width:u.width,height:u.height}}function dp(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 fp(e){var t=dp(e);return Of.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function pp(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function hp(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 ja={placement:"bottom",modifiers:[],strategy:"absolute"};function Ia(){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 vp(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?ja:o;return function(l,s,d){d===void 0&&(d=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},ja,a),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},f=[],p=!1,h={state:c,setOptions:function(g){var m=typeof g=="function"?g(c.options):g;b(),c.options=Object.assign({},a,c.options,m),c.scrollParents={reference:He(l)?Rt(l):l.contextElement?Rt(l.contextElement):[],popper:Rt(s)};var C=fp(hp([].concat(n,c.options.modifiers)));return c.orderedModifiers=C.filter(function(O){return O.enabled}),y(),h.update()},forceUpdate:function(){if(!p){var g=c.elements,m=g.reference,C=g.popper;if(Ia(m,C)){c.rects={reference:cp(m,Lt(C),c.options.strategy==="fixed"),popper:mo(C)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(F){return c.modifiersData[F.name]=Object.assign({},F.data)});for(var O=0;O<c.orderedModifiers.length;O++){if(c.reset===!0){c.reset=!1,O=-1;continue}var k=c.orderedModifiers[O],E=k.fn,P=k.options,B=P===void 0?{}:P,I=k.name;typeof E=="function"&&(c=E({state:c,options:B,name:I,instance:h})||c)}}}},update:pp(function(){return new Promise(function(v){h.forceUpdate(),v(c)})}),destroy:function(){b(),p=!0}};if(!Ia(l,s))return h;h.setOptions(d).then(function(v){!p&&d.onFirstUpdate&&d.onFirstUpdate(v)});function y(){c.orderedModifiers.forEach(function(v){var g=v.name,m=v.options,C=m===void 0?{}:m,O=v.effect;if(typeof O=="function"){var k=O({state:c,name:g,instance:h,options:C}),E=function(){};f.push(k||E)}})}function b(){f.forEach(function(v){return v()}),f=[]}return h}}var gp=[Mf,np,Bf,kf,tp,Xf,ip,jf,Zf],mp=vp({defaultModifiers:gp});function yp(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 ms(e,t,r){return r&&yp(e,r),e}function ar(){return(ar=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 ys(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function bs(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 Va(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var Cs=Object.prototype,ws=Cs.toString,bp=Cs.hasOwnProperty,Ss=/^\s*function (\w+)/;function $a(e){var t,r=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(r){var n=r.toString().match(Ss);return n?n[1]:""}return""}var Ue=function(e){var t,r;return Va(e)!==!1&&typeof(t=e.constructor)=="function"&&Va(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1},Os=function(e){return e},ne=Os;if(process.env.NODE_ENV!=="production"){var Cp=typeof console<"u";ne=Cp?function(e){console.warn("[VueTypes warn]: "+e)}:Os}var Ft=function(e,t){return bp.call(e,t)},wp=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},dt=Array.isArray||function(e){return ws.call(e)==="[object Array]"},ft=function(e){return ws.call(e)==="[object Function]"},cr=function(e){return Ue(e)&&Ft(e,"_vueTypes_name")},xs=function(e){return Ue(e)&&(Ft(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return Ft(e,t)}))};function So(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=cr(n)?n._vueTypes_name+" - ":"";if(xs(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t===void 0)return o;dt(n.type)?(o=n.type.some(function(f){return Ke(f,t)===!0}),a=n.type.map(function(f){return $a(f)}).join(" or ")):o=(a=$a(n))==="Array"?dt(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(Ss);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(Ft(n,"validator")&&ft(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
- * `);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?ft(o)||Ke(this,o)===!0?(this.default=dt(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 ft(n)&&(r.validator=So(n,r)),r}function Se(e,t){var r=ie(e,t);return Object.defineProperty(r,"validate",{value:function(n){return ft(this.validator)&&ne(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
13
- `+JSON.stringify(this)),this.validator=So(n,this),this}})}function Ba(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=bs(r,["validator"]);if(ft(s)){var c=a.validator;c&&(c=(l=(u=c).__original)!==null&&l!==void 0?l:u),a.validator=So(c?function(f){return c.call(this,f)&&s.call(this,f)}:s,a)}return Object.assign(a,d)}function Er(e){return e.replace(/^(?!\s*$)/gm," ")}var Sp=function(){return Se("any",{})},Op=function(){return Se("function",{type:Function})},xp=function(){return Se("boolean",{type:Boolean})},Ep=function(){return Se("string",{type:String})},kp=function(){return Se("number",{type:Number})},_p=function(){return Se("array",{type:Array})},Tp=function(){return Se("object",{type:Object})},Np=function(){return ie("integer",{type:Number,validator:function(e){return wp(e)}})},Ap=function(){return ie("symbol",{validator:function(e){return typeof e=="symbol"}})};function Rp(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 Pp(e){if(!dt(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 jp(e){if(!dt(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(xs(o)){if(cr(o)&&o._vueTypes_name==="oneOf"){r=r.concat(o.type);continue}if(ft(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(cr(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
- `+Er(u.join(`
15
- `))),l}}:{type:r})}function Ip(e){return ie("arrayOf",{type:Array,validator:function(t){var r,n=t.every(function(o){return(r=Ke(e,o))===!0});return n||ne(`arrayOf - value validation error:
16
- `+Er(r)),n}})}function Vp(e){return ie("instanceOf",{type:e})}function $p(e){return ie("objectOf",{type:Object,validator:function(t){var r,n=Object.keys(t).every(function(o){return(r=Ke(e,t[o]))===!0});return n||ne(`objectOf - value validation error:
17
- `+Er(r)),n}})}function Bp(e){var t=Object.keys(e),r=t.filter(function(o){var a;return!!(!((a=e[o])===null||a===void 0)&&a.required)}),n=ie("shape",{type:Object,validator:function(o){var a=this;if(!Ue(o))return!1;var u=Object.keys(o);if(r.length>0&&r.some(function(s){return u.indexOf(s)===-1})){var l=r.filter(function(s){return u.indexOf(s)===-1});return ne(l.length===1?'shape - required property "'+l[0]+'" is not defined.':'shape - required properties "'+l.join('", "')+'" are not defined.'),!1}return u.every(function(s){if(t.indexOf(s)===-1)return a._vueTypes_isLoose===!0||(ne('shape - shape definition does not include a "'+s+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var d=Ke(e[s],o[s]);return typeof d=="string"&&ne('shape - "'+s+`" property validation error:
18
- `+Er(d)),d===!0})}});return Object.defineProperty(n,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(n,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),n}var be=(function(){function e(){}return e.extend=function(t){var r=this;if(dt(t))return t.forEach(function(f){return r.extend(f)}),this;var n=t.name,o=t.validate,a=o!==void 0&&o,u=t.getter,l=u!==void 0&&u,s=bs(t,["name","validate","getter"]);if(Ft(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var d,c=s.type;return cr(c)?(delete s.type,Object.defineProperty(this,n,l?{get:function(){return Ba(n,c,s)}}:{value:function(){var f,p=Ba(n,c,s);return p.validator&&(p.validator=(f=p.validator).bind.apply(f,[p].concat([].slice.call(arguments)))),p}})):(d=l?{get:function(){var f=Object.assign({},s);return a?Se(n,f):ie(n,f)},enumerable:!0}:{value:function(){var f,p,h=Object.assign({},s);return f=a?Se(n,h):ie(n,h),h.validator&&(f.validator=(p=h.validator).bind.apply(p,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,n,d))},ms(e,null,[{key:"any",get:function(){return Sp()}},{key:"func",get:function(){return Op().def(this.defaults.func)}},{key:"bool",get:function(){return xp().def(this.defaults.bool)}},{key:"string",get:function(){return Ep().def(this.defaults.string)}},{key:"number",get:function(){return kp().def(this.defaults.number)}},{key:"array",get:function(){return _p().def(this.defaults.array)}},{key:"object",get:function(){return Tp().def(this.defaults.object)}},{key:"integer",get:function(){return Np().def(this.defaults.integer)}},{key:"symbol",get:function(){return Ap()}}]),e})();function Fp(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=(function(r){function n(){return r.apply(this,arguments)||this}return ys(n,r),ms(n,null,[{key:"sensibleDefaults",get:function(){return ar({},this.defaults)},set:function(o){this.defaults=o!==!1?ar({},o!==!0?o:e):{}}}]),n})(be)).defaults=ar({},e),t}be.defaults={},be.custom=Rp,be.oneOf=Pp,be.instanceOf=Vp,be.oneOfType=jp,be.arrayOf=Ip,be.objectOf=$p,be.shape=Bp,be.utils={validate:function(e,t){return Ke(t,e)===!0},toType:function(e,t,r){return r===void 0&&(r=!1),r?Se(e,t):ie(e,t)}};var R=(function(e){function t(){return e.apply(this,arguments)||this}return ys(t,e),t})(Fp()),Fa={},Fr,Ma;function Ye(){return Ma||(Ma=1,Fr=function(e){try{return!!e()}catch{return!0}}),Fr}var Mr,qa;function Xe(){if(qa)return Mr;qa=1;var e=Ye();return Mr=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Mr}var qr={exports:{}},Dr,Da;function Es(){if(Da)return Dr;Da=1;var e=Ye();return Dr=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),Dr}var Gr,Ga;function Ht(){if(Ga)return Gr;Ga=1;var e=Es(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return Gr=e?n:function(o){return function(){return r.apply(o,arguments)}},Gr}var Lr,La;function Be(){if(La)return Lr;La=1;var e=typeof document=="object"&&document.all;return Lr=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},Lr}var Hr,Ha;function ks(){return Ha||(Ha=1,Hr=function(e){return e==null}),Hr}var Ur,Ua;function Mp(){if(Ua)return Ur;Ua=1;var e=ks(),t=TypeError;return Ur=function(r){if(e(r))throw new t("Can't call method on "+r);return r},Ur}var zr,za;function qp(){if(za)return zr;za=1;var e=Mp(),t=Object;return zr=function(r){return t(e(r))},zr}var Wr,Wa;function kr(){if(Wa)return Wr;Wa=1;var e=Ht(),t=qp(),r=e({}.hasOwnProperty);return Wr=Object.hasOwn||function(o,a){return r(t(o),a)},Wr}var Kr,Ka;function Dp(){if(Ka)return Kr;Ka=1;var e=Xe(),t=kr(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,o=t(r,"name"),a=o&&(function(){}).name==="something",u=o&&(!e||e&&n(r,"name").configurable);return Kr={EXISTS:o,PROPER:a,CONFIGURABLE:u},Kr}var Yr={exports:{}},Xr,Ya;function Gp(){return Ya||(Ya=1,Xr=!1),Xr}var St,Xa;function ge(){if(Xa)return St;Xa=1;var e=function(t){return t&&t.Math===Math&&t};return St=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof Oa=="object"&&Oa)||e(typeof St=="object"&&St)||(function(){return this})()||Function("return this")(),St}var Jr,Ja;function Lp(){if(Ja)return Jr;Ja=1;var e=ge(),t=Object.defineProperty;return Jr=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},Jr}var Za;function Oo(){if(Za)return Yr.exports;Za=1;var e=Gp(),t=ge(),r=Lp(),n="__core-js_shared__",o=Yr.exports=t[n]||r(n,{});return(o.versions||(o.versions=[])).push({version:"3.45.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Yr.exports}var Zr,Qa;function Hp(){if(Qa)return Zr;Qa=1;var e=Ht(),t=Be(),r=Oo(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(o){return n(o)}),Zr=r.inspectSource,Zr}var Qr,ei;function Up(){if(ei)return Qr;ei=1;var e=ge(),t=Be(),r=e.WeakMap;return Qr=t(r)&&/native code/.test(String(r)),Qr}var en,ti;function Ut(){if(ti)return en;ti=1;var e=Be();return en=function(t){return typeof t=="object"?t!==null:e(t)},en}var tn={},rn,ri;function zp(){if(ri)return rn;ri=1;var e=ge(),t=Ut(),r=e.document,n=t(r)&&t(r.createElement);return rn=function(o){return n?r.createElement(o):{}},rn}var nn,ni;function Wp(){if(ni)return nn;ni=1;var e=Xe(),t=Ye(),r=zp();return nn=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),nn}var on,oi;function Kp(){if(oi)return on;oi=1;var e=Xe(),t=Ye();return on=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),on}var an,ai;function _s(){if(ai)return an;ai=1;var e=Ut(),t=String,r=TypeError;return an=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},an}var ln,ii;function Ts(){if(ii)return ln;ii=1;var e=Es(),t=Function.prototype.call;return ln=e?t.bind(t):function(){return t.apply(t,arguments)},ln}var sn,li;function Yp(){if(li)return sn;li=1;var e=ge(),t=Be(),r=function(n){return t(n)?n:void 0};return sn=function(n,o){return arguments.length<2?r(e[n]):e[n]&&e[n][o]},sn}var un,si;function Xp(){if(si)return un;si=1;var e=Ht();return un=e({}.isPrototypeOf),un}var cn,ui;function Jp(){if(ui)return cn;ui=1;var e=ge(),t=e.navigator,r=t&&t.userAgent;return cn=r?String(r):"",cn}var dn,ci;function Zp(){if(ci)return dn;ci=1;var e=ge(),t=Jp(),r=e.process,n=e.Deno,o=r&&r.versions||n&&n.version,a=o&&o.v8,u,l;return a&&(u=a.split("."),l=u[0]>0&&u[0]<4?1:+(u[0]+u[1])),!l&&t&&(u=t.match(/Edge\/(\d+)/),(!u||u[1]>=74)&&(u=t.match(/Chrome\/(\d+)/),u&&(l=+u[1]))),dn=l,dn}var fn,di;function Ns(){if(di)return fn;di=1;var e=Zp(),t=Ye(),r=ge(),n=r.String;return fn=!!Object.getOwnPropertySymbols&&!t(function(){var o=Symbol("symbol detection");return!n(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&e&&e<41}),fn}var pn,fi;function As(){if(fi)return pn;fi=1;var e=Ns();return pn=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",pn}var hn,pi;function Rs(){if(pi)return hn;pi=1;var e=Yp(),t=Be(),r=Xp(),n=As(),o=Object;return hn=n?function(a){return typeof a=="symbol"}:function(a){var u=e("Symbol");return t(u)&&r(u.prototype,o(a))},hn}var vn,hi;function Qp(){if(hi)return vn;hi=1;var e=String;return vn=function(t){try{return e(t)}catch{return"Object"}},vn}var gn,vi;function eh(){if(vi)return gn;vi=1;var e=Be(),t=Qp(),r=TypeError;return gn=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},gn}var mn,gi;function th(){if(gi)return mn;gi=1;var e=eh(),t=ks();return mn=function(r,n){var o=r[n];return t(o)?void 0:e(o)},mn}var yn,mi;function rh(){if(mi)return yn;mi=1;var e=Ts(),t=Be(),r=Ut(),n=TypeError;return yn=function(o,a){var u,l;if(a==="string"&&t(u=o.toString)&&!r(l=e(u,o))||t(u=o.valueOf)&&!r(l=e(u,o))||a!=="string"&&t(u=o.toString)&&!r(l=e(u,o)))return l;throw new n("Can't convert object to primitive value")},yn}var bn,yi;function Ps(){if(yi)return bn;yi=1;var e=Oo();return bn=function(t,r){return e[t]||(e[t]=r||{})},bn}var Cn,bi;function js(){if(bi)return Cn;bi=1;var e=Ht(),t=0,r=Math.random(),n=e(1.1.toString);return Cn=function(o){return"Symbol("+(o===void 0?"":o)+")_"+n(++t+r,36)},Cn}var wn,Ci;function nh(){if(Ci)return wn;Ci=1;var e=ge(),t=Ps(),r=kr(),n=js(),o=Ns(),a=As(),u=e.Symbol,l=t("wks"),s=a?u.for||u:u&&u.withoutSetter||n;return wn=function(d){return r(l,d)||(l[d]=o&&r(u,d)?u[d]:s("Symbol."+d)),l[d]},wn}var Sn,wi;function oh(){if(wi)return Sn;wi=1;var e=Ts(),t=Ut(),r=Rs(),n=th(),o=rh(),a=nh(),u=TypeError,l=a("toPrimitive");return Sn=function(s,d){if(!t(s)||r(s))return s;var c=n(s,l),f;if(c){if(d===void 0&&(d="default"),f=e(c,s,d),!t(f)||r(f))return f;throw new u("Can't convert object to primitive value")}return d===void 0&&(d="number"),o(s,d)},Sn}var On,Si;function ah(){if(Si)return On;Si=1;var e=oh(),t=Rs();return On=function(r){var n=e(r,"string");return t(n)?n:n+""},On}var Oi;function Is(){if(Oi)return tn;Oi=1;var e=Xe(),t=Wp(),r=Kp(),n=_s(),o=ah(),a=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s="enumerable",d="configurable",c="writable";return tn.f=e?r?function(p,h,y){if(n(p),h=o(h),n(y),typeof p=="function"&&h==="prototype"&&"value"in y&&c in y&&!y[c]){var b=l(p,h);b&&b[c]&&(p[h]=y.value,y={configurable:d in y?y[d]:b[d],enumerable:s in y?y[s]:b[s],writable:!1})}return u(p,h,y)}:u:function(p,h,y){if(n(p),h=o(h),n(y),t)try{return u(p,h,y)}catch{}if("get"in y||"set"in y)throw new a("Accessors not supported");return"value"in y&&(p[h]=y.value),p},tn}var xn,xi;function ih(){return xi||(xi=1,xn=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),xn}var En,Ei;function lh(){if(Ei)return En;Ei=1;var e=Xe(),t=Is(),r=ih();return En=e?function(n,o,a){return t.f(n,o,r(1,a))}:function(n,o,a){return n[o]=a,n},En}var kn,ki;function sh(){if(ki)return kn;ki=1;var e=Ps(),t=js(),r=e("keys");return kn=function(n){return r[n]||(r[n]=t(n))},kn}var _n,_i;function uh(){return _i||(_i=1,_n={}),_n}var Tn,Ti;function ch(){if(Ti)return Tn;Ti=1;var e=Up(),t=ge(),r=Ut(),n=lh(),o=kr(),a=Oo(),u=sh(),l=uh(),s="Object already initialized",d=t.TypeError,c=t.WeakMap,f,p,h,y=function(m){return h(m)?p(m):f(m,{})},b=function(m){return function(C){var O;if(!r(C)||(O=p(C)).type!==m)throw new d("Incompatible receiver, "+m+" required");return O}};if(e||a.state){var v=a.state||(a.state=new c);v.get=v.get,v.has=v.has,v.set=v.set,f=function(m,C){if(v.has(m))throw new d(s);return C.facade=m,v.set(m,C),C},p=function(m){return v.get(m)||{}},h=function(m){return v.has(m)}}else{var g=u("state");l[g]=!0,f=function(m,C){if(o(m,g))throw new d(s);return C.facade=m,n(m,g,C),C},p=function(m){return o(m,g)?m[g]:{}},h=function(m){return o(m,g)}}return Tn={set:f,get:p,has:h,enforce:y,getterFor:b},Tn}var Ni;function dh(){if(Ni)return qr.exports;Ni=1;var e=Ht(),t=Ye(),r=Be(),n=kr(),o=Xe(),a=Dp().CONFIGURABLE,u=Hp(),l=ch(),s=l.enforce,d=l.get,c=String,f=Object.defineProperty,p=e("".slice),h=e("".replace),y=e([].join),b=o&&!t(function(){return f(function(){},"length",{value:8}).length!==8}),v=String(String).split("String"),g=qr.exports=function(m,C,O){p(c(C),0,7)==="Symbol("&&(C="["+h(c(C),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),O&&O.getter&&(C="get "+C),O&&O.setter&&(C="set "+C),(!n(m,"name")||a&&m.name!==C)&&(o?f(m,"name",{value:C,configurable:!0}):m.name=C),b&&O&&n(O,"arity")&&m.length!==O.arity&&f(m,"length",{value:O.arity});try{O&&n(O,"constructor")&&O.constructor?o&&f(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch{}var k=s(m);return n(k,"source")||(k.source=y(v,typeof C=="string"?C:"")),m};return Function.prototype.toString=g(function(){return r(this)&&d(this).source||u(this)},"toString"),qr.exports}var Nn,Ai;function fh(){if(Ai)return Nn;Ai=1;var e=dh(),t=Is();return Nn=function(r,n,o){return o.get&&e(o.get,n,{getter:!0}),o.set&&e(o.set,n,{setter:!0}),t.f(r,n,o)},Nn}var An,Ri;function ph(){if(Ri)return An;Ri=1;var e=ge(),t=Ye(),r=e.RegExp,n=!t(function(){var o=!0;try{r(".","d")}catch{o=!1}var a={},u="",l=o?"dgimsy":"gimsy",s=function(p,h){Object.defineProperty(a,p,{get:function(){return u+=h,!0}})},d={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};o&&(d.hasIndices="d");for(var c in d)s(c,d[c]);var f=Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(a);return f!==l||u!==l});return An={correct:n},An}var Rn,Pi;function hh(){if(Pi)return Rn;Pi=1;var e=_s();return Rn=function(){var t=e(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},Rn}var ji;function vh(){if(ji)return Fa;ji=1;var e=Xe(),t=fh(),r=ph(),n=hh();return e&&!r.correct&&(t(RegExp.prototype,"flags",{configurable:!0,get:n}),r.correct=!0),Fa}vh();var Ii=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xo(e){var t={exports:{}};return e(t,t.exports),t.exports}var tr=function(e){return e&&e.Math==Math&&e},W=tr(typeof globalThis=="object"&&globalThis)||tr(typeof window=="object"&&window)||tr(typeof self=="object"&&self)||tr(typeof Ii=="object"&&Ii)||(function(){return this})()||Function("return this")(),D=function(e){try{return!!e()}catch{return!0}},se=!D(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Vi={}.propertyIsEnumerable,$i=Object.getOwnPropertyDescriptor,gh={f:$i&&!Vi.call({1:2},1)?function(e){var t=$i(this,e);return!!t&&t.enumerable}:Vi},_r=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},mh={}.toString,_e=function(e){return mh.call(e).slice(8,-1)},yh="".split,Tr=D(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return _e(e)=="String"?yh.call(e,""):Object(e)}:Object,je=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},mt=function(e){return Tr(je(e))},K=function(e){return typeof e=="object"?e!==null:typeof e=="function"},Eo=function(e,t){if(!K(e))return e;var r,n;if(t&&typeof(r=e.toString)=="function"&&!K(n=r.call(e))||typeof(r=e.valueOf)=="function"&&!K(n=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!K(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},bh={}.hasOwnProperty,z=function(e,t){return bh.call(e,t)},oo=W.document,Ch=K(oo)&&K(oo.createElement),Vs=function(e){return Ch?oo.createElement(e):{}},$s=!se&&!D(function(){return Object.defineProperty(Vs("div"),"a",{get:function(){return 7}}).a!=7}),Bi=Object.getOwnPropertyDescriptor,ko={f:se?Bi:function(e,t){if(e=mt(e),t=Eo(t,!0),$s)try{return Bi(e,t)}catch{}if(z(e,t))return _r(!gh.f.call(e,t),e[t])}},Q=function(e){if(!K(e))throw TypeError(String(e)+" is not an object");return e},Fi=Object.defineProperty,Ne={f:se?Fi:function(e,t,r){if(Q(e),t=Eo(t,!0),Q(r),$s)try{return Fi(e,t,r)}catch{}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},ce=se?function(e,t,r){return Ne.f(e,t,_r(1,r))}:function(e,t,r){return e[t]=r,e},_o=function(e,t){try{ce(W,e,t)}catch{W[e]=t}return t},ze=W["__core-js_shared__"]||_o("__core-js_shared__",{}),wh=Function.toString;typeof ze.inspectSource!="function"&&(ze.inspectSource=function(e){return wh.call(e)});var dr,Pt,fr,Bs=ze.inspectSource,Mi=W.WeakMap,Sh=typeof Mi=="function"&&/native code/.test(Bs(Mi)),Fs=xo(function(e){(e.exports=function(t,r){return ze[t]||(ze[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Oh=0,xh=Math.random(),To=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++Oh+xh).toString(36)},qi=Fs("keys"),No=function(e){return qi[e]||(qi[e]=To(e))},Nr={},Eh=W.WeakMap;if(Sh){var et=ze.state||(ze.state=new Eh),kh=et.get,_h=et.has,Th=et.set;dr=function(e,t){return t.facade=e,Th.call(et,e,t),t},Pt=function(e){return kh.call(et,e)||{}},fr=function(e){return _h.call(et,e)}}else{var Ot=No("state");Nr[Ot]=!0,dr=function(e,t){return t.facade=e,ce(e,Ot,t),t},Pt=function(e){return z(e,Ot)?e[Ot]:{}},fr=function(e){return z(e,Ot)}}var Ie={set:dr,get:Pt,has:fr,enforce:function(e){return fr(e)?Pt(e):dr(e,{})},getterFor:function(e){return function(t){var r;if(!K(t)||(r=Pt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},Ve=xo(function(e){var t=Ie.get,r=Ie.enforce,n=String(String).split("String");(e.exports=function(o,a,u,l){var s,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet;typeof u=="function"&&(typeof a!="string"||z(u,"name")||ce(u,"name",a),(s=r(u)).source||(s.source=n.join(typeof a=="string"?a:""))),o!==W?(d?!f&&o[a]&&(c=!0):delete o[a],c?o[a]=u:ce(o,a,u)):c?o[a]=u:_o(a,u)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||Bs(this)})}),Pn=W,Di=function(e){return typeof e=="function"?e:void 0},Ar=function(e,t){return arguments.length<2?Di(Pn[e])||Di(W[e]):Pn[e]&&Pn[e][t]||W[e]&&W[e][t]},Nh=Math.ceil,Ah=Math.floor,yt=function(e){return isNaN(e=+e)?0:(e>0?Ah:Nh)(e)},Rh=Math.min,le=function(e){return e>0?Rh(yt(e),9007199254740991):0},Ph=Math.max,jh=Math.min,pr=function(e,t){var r=yt(e);return r<0?Ph(r+t,0):jh(r,t)},Ih=function(e){return function(t,r,n){var o,a=mt(t),u=le(a.length),l=pr(n,u);if(e&&r!=r){for(;u>l;)if((o=a[l++])!=o)return!0}else for(;u>l;l++)if((e||l in a)&&a[l]===r)return e||l||0;return!e&&-1}},Ms={indexOf:Ih(!1)},Vh=Ms.indexOf,qs=function(e,t){var r,n=mt(e),o=0,a=[];for(r in n)!z(Nr,r)&&z(n,r)&&a.push(r);for(;t.length>o;)z(n,r=t[o++])&&(~Vh(a,r)||a.push(r));return a},hr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$h=hr.concat("length","prototype"),Bh={f:Object.getOwnPropertyNames||function(e){return qs(e,$h)}},Fh={f:Object.getOwnPropertySymbols},Mh=Ar("Reflect","ownKeys")||function(e){var t=Bh.f(Q(e)),r=Fh.f;return r?t.concat(r(e)):t},qh=function(e,t){for(var r=Mh(t),n=Ne.f,o=ko.f,a=0;a<r.length;a++){var u=r[a];z(e,u)||n(e,u,o(t,u))}},Dh=/#|\.prototype\./,zt=function(e,t){var r=Lh[Gh(e)];return r==Uh||r!=Hh&&(typeof t=="function"?D(t):!!t)},Gh=zt.normalize=function(e){return String(e).replace(Dh,".").toLowerCase()},Lh=zt.data={},Hh=zt.NATIVE="N",Uh=zt.POLYFILL="P",ao=zt,zh=ko.f,Z=function(e,t){var r,n,o,a,u,l=e.target,s=e.global,d=e.stat;if(r=s?W:d?W[l]||_o(l,{}):(W[l]||{}).prototype)for(n in t){if(a=t[n],o=e.noTargetGet?(u=zh(r,n))&&u.value:r[n],!ao(s?n:l+(d?".":"#")+n,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;qh(a,o)}(e.sham||o&&o.sham)&&ce(a,"sham",!0),Ve(r,n,a,e)}},Ao=function(e,t){var r=[][e];return!!r&&D(function(){r.call(null,t||function(){throw 1},1)})},Wh=Object.defineProperty,jn={},Gi=function(e){throw e},bt=function(e,t){if(z(jn,e))return jn[e];t||(t={});var r=[][e],n=!!z(t,"ACCESSORS")&&t.ACCESSORS,o=z(t,0)?t[0]:Gi,a=z(t,1)?t[1]:void 0;return jn[e]=!!r&&!D(function(){if(n&&!se)return!0;var u={length:-1};n?Wh(u,1,{enumerable:!0,get:Gi}):u[1]=1,r.call(u,o,a)})},Kh=Ms.indexOf,Ds=[].indexOf,Li=!!Ds&&1/[1].indexOf(1,-0)<0,Yh=Ao("indexOf"),Xh=bt("indexOf",{ACCESSORS:!0,1:0});function Je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jh(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 Ze(e,t,r){return r&&Jh(e,r),e}Z({target:"Array",proto:!0,forced:Li||!Yh||!Xh},{indexOf:function(e){return Li?Ds.apply(this,arguments)||0:Kh(this,e,arguments.length>1?arguments[1]:void 0)}});(function(){function e(){Je(this,e)}return Ze(e,null,[{key:"isInBrowser",value:function(){return typeof window<"u"}},{key:"isServer",value:function(){return typeof window>"u"}},{key:"getUA",value:function(){return e.isInBrowser()?window.navigator.userAgent.toLowerCase():""}},{key:"isMobile",value:function(){return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion)}},{key:"isOpera",value:function(){return navigator.userAgent.indexOf("Opera")!==-1}},{key:"isIE",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie")>0}},{key:"isIE9",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie 9.0")>0}},{key:"isEdge",value:function(){var t=e.getUA();return t!==""&&t.indexOf("edge/")>0}},{key:"isChrome",value:function(){var t=e.getUA();return t!==""&&/chrome\/\d+/.test(t)&&!e.isEdge()}},{key:"isPhantomJS",value:function(){var t=e.getUA();return t!==""&&/phantomjs/.test(t)}},{key:"isFirefox",value:function(){var t=e.getUA();return t!==""&&/firefox/.test(t)}}]),e})();var Zh=[].join,Qh=Tr!=Object,ev=Ao("join",",");Z({target:"Array",proto:!0,forced:Qh||!ev},{join:function(e){return Zh.call(mt(this),e===void 0?",":e)}});var tt,vr,Ae=function(e){return Object(je(e))},pt=Array.isArray||function(e){return _e(e)=="Array"},Gs=!!Object.getOwnPropertySymbols&&!D(function(){return!String(Symbol())}),tv=Gs&&!Symbol.sham&&typeof Symbol.iterator=="symbol",rr=Fs("wks"),jt=W.Symbol,rv=tv?jt:jt&&jt.withoutSetter||To,H=function(e){return z(rr,e)||(Gs&&z(jt,e)?rr[e]=jt[e]:rr[e]=rv("Symbol."+e)),rr[e]},nv=H("species"),Rr=function(e,t){var r;return pt(e)&&(typeof(r=e.constructor)!="function"||r!==Array&&!pt(r.prototype)?K(r)&&(r=r[nv])===null&&(r=void 0):r=void 0),new(r===void 0?Array:r)(t===0?0:t)},ht=function(e,t,r){var n=Eo(t);n in e?Ne.f(e,n,_r(0,r)):e[n]=r},In=Ar("navigator","userAgent")||"",Hi=W.process,Ui=Hi&&Hi.versions,zi=Ui&&Ui.v8;zi?vr=(tt=zi.split("."))[0]+tt[1]:In&&(!(tt=In.match(/Edge\/(\d+)/))||tt[1]>=74)&&(tt=In.match(/Chrome\/(\d+)/))&&(vr=tt[1]);var gr=vr&&+vr,ov=H("species"),Ro=function(e){return gr>=51||!D(function(){var t=[];return(t.constructor={})[ov]=function(){return{foo:1}},t[e](Boolean).foo!==1})},av=Ro("splice"),iv=bt("splice",{ACCESSORS:!0,0:0,1:2}),lv=Math.max,sv=Math.min;Z({target:"Array",proto:!0,forced:!av||!iv},{splice:function(e,t){var r,n,o,a,u,l,s=Ae(this),d=le(s.length),c=pr(e,d),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=d-c):(r=f-2,n=sv(lv(yt(t),0),d-c)),d+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=Rr(s,n),a=0;a<n;a++)(u=c+a)in s&&ht(o,a,s[u]);if(o.length=n,r<n){for(a=c;a<d-n;a++)l=a+r,(u=a+n)in s?s[l]=s[u]:delete s[l];for(a=d;a>d-n+r;a--)delete s[a-1]}else if(r>n)for(a=d-n;a>c;a--)l=a+r-1,(u=a+n-1)in s?s[l]=s[u]:delete s[l];for(a=0;a<r;a++)s[a+c]=arguments[a+2];return s.length=d-n+r,o}});var Ls={};Ls[H("toStringTag")]="z";var Po=String(Ls)==="[object z]",uv=H("toStringTag"),cv=_e((function(){return arguments})())=="Arguments",Hs=Po?_e:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,a){try{return o[a]}catch{}})(t=Object(e),uv))=="string"?r:cv?_e(t):(n=_e(t))=="Object"&&typeof t.callee=="function"?"Arguments":n},dv=Po?{}.toString:function(){return"[object "+Hs(this)+"]"};Po||Ve(Object.prototype,"toString",dv,{unsafe:!0});var Us=function(){var e=Q(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function Wi(e,t){return RegExp(e,t)}var Vn,$n,Ki={UNSUPPORTED_Y:D(function(){var e=Wi("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),BROKEN_CARET:D(function(){var e=Wi("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},mr=RegExp.prototype.exec,fv=String.prototype.replace,zs=mr,Bn=(Vn=/a/,$n=/b*/g,mr.call(Vn,"a"),mr.call($n,"a"),Vn.lastIndex!==0||$n.lastIndex!==0),Yi=Ki.UNSUPPORTED_Y||Ki.BROKEN_CARET,Fn=/()??/.exec("")[1]!==void 0;(Bn||Fn||Yi)&&(zs=function(e){var t,r,n,o,a=this,u=Yi&&a.sticky,l=Us.call(a),s=a.source,d=0,c=e;return u&&((l=l.replace("y","")).indexOf("g")===-1&&(l+="g"),c=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&e[a.lastIndex-1]!==`
19
- `)&&(s="(?: "+s+")",c=" "+c,d++),r=new RegExp("^(?:"+s+")",l)),Fn&&(r=new RegExp("^"+s+"$(?!\\s)",l)),Bn&&(t=a.lastIndex),n=mr.call(u?r:a,c),u?n?(n.input=n.input.slice(d),n[0]=n[0].slice(d),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:Bn&&n&&(a.lastIndex=a.global?n.index+n[0].length:t),Fn&&n&&n.length>1&&fv.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(n[o]=void 0)}),n});var Mt=zs;Z({target:"RegExp",proto:!0,forced:/./.exec!==Mt},{exec:Mt});var Ws=RegExp.prototype,Ks=Ws.toString,pv=D(function(){return Ks.call({source:"a",flags:"b"})!="/a/b"}),hv=Ks.name!="toString";(pv||hv)&&Ve(RegExp.prototype,"toString",function(){var e=Q(this),t=String(e.source),r=e.flags;return"/"+t+"/"+String(r===void 0&&e instanceof RegExp&&!("flags"in Ws)?Us.call(e):r)},{unsafe:!0});var vv=H("species"),gv=!D(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}),Xi="a".replace(/./,"$0")==="$0",Ji=H("replace"),Zi=!!/./[Ji]&&/./[Ji]("a","$0")==="",mv=!D(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Ys=function(e,t,r,n){var o=H(e),a=!D(function(){var f={};return f[o]=function(){return 7},""[e](f)!=7}),u=a&&!D(function(){var f=!1,p=/a/;return e==="split"&&((p={}).constructor={},p.constructor[vv]=function(){return p},p.flags="",p[o]=/./[o]),p.exec=function(){return f=!0,null},p[o](""),!f});if(!a||!u||e==="replace"&&(!gv||!Xi||Zi)||e==="split"&&!mv){var l=/./[o],s=r(o,""[e],function(f,p,h,y,b){return p.exec===Mt?a&&!b?{done:!0,value:l.call(p,h,y)}:{done:!0,value:f.call(h,p,y)}:{done:!1}},{REPLACE_KEEPS_$0:Xi,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Zi}),d=s[0],c=s[1];Ve(String.prototype,e,d),Ve(RegExp.prototype,o,function(f,p){return c.call(f,this,p)})}n&&ce(RegExp.prototype[o],"sham",!0)},yv=H("match"),Xs=function(e){var t;return K(e)&&((t=e[yv])!==void 0?!!t:_e(e)=="RegExp")},jo=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},bv=H("species"),Cv=function(e){return function(t,r){var n,o,a=String(je(t)),u=yt(r),l=a.length;return u<0||u>=l?e?"":void 0:(n=a.charCodeAt(u))<55296||n>56319||u+1===l||(o=a.charCodeAt(u+1))<56320||o>57343?e?a.charAt(u):n:e?a.slice(u,u+2):o-56320+(n-55296<<10)+65536}},Js={charAt:Cv(!0)},wv=Js.charAt,Zs=function(e,t,r){return t+(r?wv(e,t).length:1)},io=function(e,t){var r=e.exec;if(typeof r=="function"){var n=r.call(e,t);if(typeof n!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return n}if(_e(e)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return Mt.call(e,t)},Sv=[].push,Ov=Math.min,rt=!D(function(){return!RegExp(4294967295,"y")});Ys("split",2,function(e,t,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,a){var u=String(je(this)),l=a===void 0?4294967295:a>>>0;if(l===0)return[];if(o===void 0)return[u];if(!Xs(o))return t.call(u,o,l);for(var s,d,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),h=0,y=new RegExp(o.source,p+"g");(s=Mt.call(y,u))&&!((d=y.lastIndex)>h&&(f.push(u.slice(h,s.index)),s.length>1&&s.index<u.length&&Sv.apply(f,s.slice(1)),c=s[0].length,h=d,f.length>=l));)y.lastIndex===s.index&&y.lastIndex++;return h===u.length?!c&&y.test("")||f.push(""):f.push(u.slice(h)),f.length>l?f.slice(0,l):f}:"0".split(void 0,0).length?function(o,a){return o===void 0&&a===0?[]:t.call(this,o,a)}:t,[function(o,a){var u=je(this),l=o==null?void 0:o[e];return l!==void 0?l.call(o,u,a):n.call(String(u),o,a)},function(o,a){var u=r(n,o,this,a,n!==t);if(u.done)return u.value;var l=Q(o),s=String(this),d=(function(O,k){var E,P=Q(O).constructor;return P===void 0||(E=Q(P)[bv])==null?k:jo(E)})(l,RegExp),c=l.unicode,f=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(rt?"y":"g"),p=new d(rt?l:"^(?:"+l.source+")",f),h=a===void 0?4294967295:a>>>0;if(h===0)return[];if(s.length===0)return io(p,s)===null?[s]:[];for(var y=0,b=0,v=[];b<s.length;){p.lastIndex=rt?b:0;var g,m=io(p,rt?s:s.slice(b));if(m===null||(g=Ov(le(p.lastIndex+(rt?0:b)),s.length))===y)b=Zs(s,b,c);else{if(v.push(s.slice(y,b)),v.length===h)return v;for(var C=1;C<=m.length-1;C++)if(v.push(m[C]),v.length===h)return v;b=y=g}}return v.push(s.slice(y)),v}]},!rt);var lo=`
20
- \v\f\r                 \u2028\u2029\uFEFF`,yr="["+lo+"]",xv=RegExp("^"+yr+yr+"*"),Ev=RegExp(yr+yr+"*$"),kv=function(e){return function(t){var r=String(je(t));return 1&e&&(r=r.replace(xv,"")),2&e&&(r=r.replace(Ev,"")),r}},_v={trim:kv(3)},Tv=_v.trim;Z({target:"String",proto:!0,forced:(function(e){return D(function(){return!!lo[e]()||"​…᠎"[e]()!="​…᠎"||lo[e].name!==e})})("trim")},{trim:function(){return Tv(this)}});var Nv=Ro("slice"),Av=bt("slice",{ACCESSORS:!0,0:0,1:2}),Rv=H("species"),Pv=[].slice,jv=Math.max;Z({target:"Array",proto:!0,forced:!Nv||!Av},{slice:function(e,t){var r,n,o,a=mt(this),u=le(a.length),l=pr(e,u),s=pr(t===void 0?u:t,u);if(pt(a)&&(typeof(r=a.constructor)!="function"||r!==Array&&!pt(r.prototype)?K(r)&&(r=r[Rv])===null&&(r=void 0):r=void 0,r===Array||r===void 0))return Pv.call(a,l,s);for(n=new(r===void 0?Array:r)(jv(s-l,0)),o=0;l<s;l++,o++)l in a&&ht(n,o,a[l]);return n.length=o,n}});var Io=Object.keys||function(e){return qs(e,hr)},Iv=D(function(){Io(1)});Z({target:"Object",stat:!0,forced:Iv},{keys:function(e){return Io(Ae(e))}});var Mn,Vv=function(e){if(Xs(e))throw TypeError("The method doesn't accept regular expressions");return e},$v=H("match"),Bv=ko.f,Qi="".startsWith,Fv=Math.min,Qs=(function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[$v]=!1,"/./"[e](t)}catch{}}return!1})("startsWith"),Mv=!(Qs||(Mn=Bv(String.prototype,"startsWith"),!Mn||Mn.writable));function eu(e){return(eu=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})(e)}Z({target:"String",proto:!0,forced:!Mv&&!Qs},{startsWith:function(e){var t=String(je(this));Vv(e);var r=le(Fv(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return Qi?Qi.call(t,n,r):t.slice(r,r+n.length)===n}});var nt=function(e){return typeof e=="string"},ot=function(e){return e!==null&&eu(e)==="object"},qt=(function(){function e(){Je(this,e)}return Ze(e,null,[{key:"isWindow",value:function(t){return t===window}},{key:"addEventListener",value:function(t,r,n){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&r&&n&&t.addEventListener(r,n,o)}},{key:"removeEventListener",value:function(t,r,n){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&r&&n&&t.removeEventListener(r,n,o)}},{key:"triggerDragEvent",value:function(t,r){var n=!1,o=function(u){var l;(l=r.drag)===null||l===void 0||l.call(r,u)},a=function u(l){var s;e.removeEventListener(document,"mousemove",o),e.removeEventListener(document,"mouseup",u),document.onselectstart=null,document.ondragstart=null,n=!1,(s=r.end)===null||s===void 0||s.call(r,l)};e.addEventListener(t,"mousedown",function(u){var l;n||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},e.addEventListener(document,"mousemove",o),e.addEventListener(document,"mouseup",a),n=!0,(l=r.start)===null||l===void 0||l.call(r,u))})}},{key:"getBoundingClientRect",value:function(t){return t&&ot(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,r){return!!(t&&ot(t)&&nt(r)&&t.nodeType===1)&&t.classList.contains(r.trim())}},{key:"addClass",value:function(t,r){if(t&&ot(t)&&nt(r)&&t.nodeType===1&&(r=r.trim(),!e.hasClass(t,r))){var n=t.className;t.className=n?n+" "+r:r}}},{key:"removeClass",value:function(t,r){if(t&&ot(t)&&nt(r)&&t.nodeType===1&&typeof t.className=="string"){r=r.trim();for(var n=t.className.trim().split(" "),o=n.length-1;o>=0;o--)n[o]=n[o].trim(),n[o]&&n[o]!==r||n.splice(o,1);t.className=n.join(" ")}}},{key:"toggleClass",value:function(t,r,n){t&&ot(t)&&nt(r)&&t.nodeType===1&&t.classList.toggle(r,n)}},{key:"replaceClass",value:function(t,r,n){t&&ot(t)&&nt(r)&&nt(n)&&t.nodeType===1&&(r=r.trim(),n=n.trim(),e.removeClass(t,r),e.addClass(t,n))}},{key:"getScrollTop",value:function(t){var r="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(r,0)}},{key:"setScrollTop",value:function(t,r){"scrollTop"in t?t.scrollTop=r:t.scrollTo(t.scrollX,r)}},{key:"getRootScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},{key:"setRootScrollTop",value:function(t){e.setScrollTop(window,t),e.setScrollTop(document.body,t)}},{key:"getElementTop",value:function(t,r){if(e.isWindow(t))return 0;var n=r?e.getScrollTop(r):e.getRootScrollTop();return t.getBoundingClientRect().top+n}},{key:"getVisibleHeight",value:function(t){return e.isWindow(t)?t.innerHeight:t.getBoundingClientRect().height}},{key:"isHidden",value:function(t){if(!t)return!1;var r=window.getComputedStyle(t),n=r.display==="none",o=t.offsetParent===null&&r.position!=="fixed";return n||o}},{key:"triggerEvent",value:function(t,r){if("createEvent"in document){var n=document.createEvent("HTMLEvents");n.initEvent(r,!1,!0),t.dispatchEvent(n)}}},{key:"calcAngle",value:function(t,r){var n=t.getBoundingClientRect(),o=n.left+n.width/2,a=n.top+n.height/2,u=Math.abs(o-r.clientX),l=Math.abs(a-r.clientY),s=l/Math.sqrt(Math.pow(u,2)+Math.pow(l,2)),d=Math.acos(s),c=Math.floor(180/(Math.PI/d));return r.clientX>o&&r.clientY>a&&(c=180-c),r.clientX==o&&r.clientY>a&&(c=180),r.clientX>o&&r.clientY==a&&(c=90),r.clientX<o&&r.clientY>a&&(c=180+c),r.clientX<o&&r.clientY==a&&(c=270),r.clientX<o&&r.clientY<a&&(c=360-c),c}},{key:"querySelector",value:function(t,r){return r?r.querySelector(t):document.querySelector(t)}},{key:"createElement",value:function(t){for(var r=document.createElement(t),n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];for(var u=0;u<o.length;u++)o[u]&&r.classList.add(o[u]);return r}},{key:"appendChild",value:function(t){for(var r=0;r<(arguments.length<=1?0:arguments.length-1);r++)t.appendChild(r+1<1||arguments.length<=r+1?void 0:arguments[r+1])}},{key:"getWindow",value:function(t){if(t.toString()!=="[object Window]"){var r=t.ownerDocument;return r&&r.defaultView||window}return t}},{key:"isElement",value:function(t){return t instanceof this.getWindow(t).Element||t instanceof Element}},{key:"isHTMLElement",value:function(t){return t instanceof this.getWindow(t).HTMLElement||t instanceof HTMLElement}},{key:"isShadowRoot",value:function(t){return typeof ShadowRoot<"u"&&(t instanceof this.getWindow(t).ShadowRoot||t instanceof ShadowRoot)}},{key:"getWindowScroll",value:function(t){var r=this.getWindow(t);return{scrollLeft:r.pageXOffset||0,scrollTop:r.pageYOffset||0}}}]),e})(),qv=Math.floor,Dv="".replace,Gv=/\$([$&'`]|\d\d?|<[^>]*>)/g,Lv=/\$([$&'`]|\d\d?)/g,Hv=function(e,t,r,n,o,a){var u=r+e.length,l=n.length,s=Lv;return o!==void 0&&(o=Ae(o),s=Gv),Dv.call(a,s,function(d,c){var f;switch(c.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(u);case"<":f=o[c.slice(1,-1)];break;default:var p=+c;if(p===0)return d;if(p>l){var h=qv(p/10);return h===0?d:h<=l?n[h-1]===void 0?c.charAt(1):n[h-1]+c.charAt(1):d}f=n[p-1]}return f===void 0?"":f})},Uv=Math.max,zv=Math.min;Ys("replace",2,function(e,t,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,a=n.REPLACE_KEEPS_$0,u=o?"$":"$0";return[function(l,s){var d=je(this),c=l==null?void 0:l[e];return c!==void 0?c.call(l,d,s):t.call(String(d),l,s)},function(l,s){if(!o&&a||typeof s=="string"&&s.indexOf(u)===-1){var d=r(t,l,this,s);if(d.done)return d.value}var c=Q(l),f=String(this),p=typeof s=="function";p||(s=String(s));var h=c.global;if(h){var y=c.unicode;c.lastIndex=0}for(var b=[];;){var v=io(c,f);if(v===null||(b.push(v),!h))break;String(v[0])===""&&(c.lastIndex=Zs(f,le(c.lastIndex),y))}for(var g,m="",C=0,O=0;O<b.length;O++){v=b[O];for(var k=String(v[0]),E=Uv(zv(yt(v.index),f.length),0),P=[],B=1;B<v.length;B++)P.push((g=v[B])===void 0?g:String(g));var I=v.groups;if(p){var F=[k].concat(P,E,f);I!==void 0&&F.push(I);var S=String(s.apply(void 0,F))}else S=Hv(k,f,E,P,I,s);E>=C&&(m+=f.slice(C,E)+S,C=E+k.length)}return m+f.slice(C)}]});(function(){function e(){Je(this,e)}return Ze(e,null,[{key:"camelize",value:function(t){return t.replace(/-(\w)/g,function(r,n){return n?n.toUpperCase():""})}},{key:"capitalize",value:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}]),e})();(function(){function e(){Je(this,e)}return Ze(e,null,[{key:"_clone",value:function(){}}]),e})();var tu=H("isConcatSpreadable"),Wv=gr>=51||!D(function(){var e=[];return e[tu]=!1,e.concat()[0]!==e}),Kv=Ro("concat"),Yv=function(e){if(!K(e))return!1;var t=e[tu];return t!==void 0?!!t:pt(e)};Z({target:"Array",proto:!0,forced:!Wv||!Kv},{concat:function(e){var t,r,n,o,a,u=Ae(this),l=Rr(u,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(Yv(a=t===-1?u:arguments[t])){if(s+(o=le(a.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in a&&ht(l,s,a[r])}else{if(s>=9007199254740991)throw TypeError("Maximum allowed index exceeded");ht(l,s++,a)}return l.length=s,l}});var qn,Wt=function(e,t,r){if(jo(e),t===void 0)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,a){return e.call(t,n,o,a)}}return function(){return e.apply(t,arguments)}},el=[].push,tl=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,a=e==6,u=e==7,l=e==5||a;return function(s,d,c,f){for(var p,h,y=Ae(s),b=Tr(y),v=Wt(d,c,3),g=le(b.length),m=0,C=f||Rr,O=t?C(s,g):r||u?C(s,0):void 0;g>m;m++)if((l||m in b)&&(h=v(p=b[m],m,y),e))if(t)O[m]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:el.call(O,p)}else switch(e){case 4:return!1;case 7:el.call(O,p)}return a?-1:n||o?o:O}},ru={find:tl(5),findIndex:tl(6)},Xv=se?Object.defineProperties:function(e,t){Q(e);for(var r,n=Io(t),o=n.length,a=0;o>a;)Ne.f(e,r=n[a++],t[r]);return e},Jv=Ar("document","documentElement"),nu=No("IE_PROTO"),Dn=function(){},rl=function(e){return"<script>"+e+"<\/script>"},ir=function(){try{qn=document.domain&&new ActiveXObject("htmlfile")}catch{}var e,t;ir=qn?(function(n){n.write(rl("")),n.close();var o=n.parentWindow.Object;return n=null,o})(qn):((t=Vs("iframe")).style.display="none",Jv.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(rl("document.F=Object")),e.close(),e.F);for(var r=hr.length;r--;)delete ir.prototype[hr[r]];return ir()};Nr[nu]=!0;var Vo=Object.create||function(e,t){var r;return e!==null?(Dn.prototype=Q(e),r=new Dn,Dn.prototype=null,r[nu]=e):r=ir(),t===void 0?r:Xv(r,t)},so=H("unscopables"),uo=Array.prototype;uo[so]==null&&Ne.f(uo,so,{configurable:!0,value:Vo(null)});var it=function(e){uo[so][e]=!0},Zv=ru.find,nl=!0,Qv=bt("find");"find"in[]&&Array(1).find(function(){nl=!1}),Z({target:"Array",proto:!0,forced:nl||!Qv},{find:function(e){return Zv(this,e,arguments.length>1?arguments[1]:void 0)}}),it("find");var eg=ru.findIndex,ol=!0,tg=bt("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){ol=!1}),Z({target:"Array",proto:!0,forced:ol||!tg},{findIndex:function(e){return eg(this,e,arguments.length>1?arguments[1]:void 0)}}),it("findIndex");var ou=function(e,t,r,n,o,a,u,l){for(var s,d=o,c=0,f=!!u&&Wt(u,l,3);c<n;){if(c in r){if(s=f?f(r[c],c,t):r[c],a>0&&pt(s))d=ou(e,t,s,le(s.length),d,a-1)-1;else{if(d>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[d]=s}d++}c++}return d},rg=ou;Z({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Ae(this),r=le(t.length),n=Rr(t,0);return n.length=rg(n,t,t,r,0,e===void 0?1:yt(e)),n}});var co=function(e){var t=e.return;if(t!==void 0)return Q(t.call(e)).value},ng=function(e,t,r,n){try{return n?t(Q(r)[0],r[1]):t(r)}catch(o){throw co(e),o}},vt={},og=H("iterator"),ag=Array.prototype,au=function(e){return e!==void 0&&(vt.Array===e||ag[og]===e)},ig=H("iterator"),iu=function(e){if(e!=null)return e[ig]||e["@@iterator"]||vt[Hs(e)]},lu=H("iterator"),su=!1;try{var lg=0,al={next:function(){return{done:!!lg++}},return:function(){su=!0}};al[lu]=function(){return this},Array.from(al,function(){throw 2})}catch{}var uu=function(e,t){if(!su)return!1;var r=!1;try{var n={};n[lu]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},sg=!uu(function(e){Array.from(e)});Z({target:"Array",stat:!0,forced:sg},{from:function(e){var t,r,n,o,a,u,l=Ae(e),s=typeof this=="function"?this:Array,d=arguments.length,c=d>1?arguments[1]:void 0,f=c!==void 0,p=iu(l),h=0;if(f&&(c=Wt(c,d>2?arguments[2]:void 0,2)),p==null||s==Array&&au(p))for(r=new s(t=le(l.length));t>h;h++)u=f?c(l[h],h):l[h],ht(r,h,u);else for(a=(o=p.call(l)).next,r=new s;!(n=a.call(o)).done;h++)u=f?ng(o,c,[n.value,h],!0):n.value,ht(r,h,u);return r.length=h,r}});var ug=function(e){return function(t,r,n,o){jo(r);var a=Ae(t),u=Tr(a),l=le(a.length),s=e?l-1:0,d=e?-1:1;if(n<2)for(;;){if(s in u){o=u[s],s+=d;break}if(s+=d,e?s<0:l<=s)throw TypeError("Reduce of empty array with no initial value")}for(;e?s>=0:l>s;s+=d)s in u&&(o=r(o,u[s],s,a));return o}},cg={left:ug(!1)},dg=_e(W.process)=="process",fg=cg.left,pg=Ao("reduce"),hg=bt("reduce",{1:0});Z({target:"Array",proto:!0,forced:!pg||!hg||!dg&&gr>79&&gr<83},{reduce:function(e){return fg(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}}),it("flat");var qe,il,ll,vg=!D(function(){return Object.isExtensible(Object.preventExtensions({}))}),cu=xo(function(e){var t=Ne.f,r=To("meta"),n=0,o=Object.isExtensible||function(){return!0},a=function(l){t(l,r,{value:{objectID:"O"+ ++n,weakData:{}}})},u=e.exports={REQUIRED:!1,fastKey:function(l,s){if(!K(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!z(l,r)){if(!o(l))return"F";if(!s)return"E";a(l)}return l[r].objectID},getWeakData:function(l,s){if(!z(l,r)){if(!o(l))return!0;if(!s)return!1;a(l)}return l[r].weakData},onFreeze:function(l){return vg&&u.REQUIRED&&o(l)&&!z(l,r)&&a(l),l}};Nr[r]=!0}),xt=function(e,t){this.stopped=e,this.result=t},sl=function(e,t,r){var n,o,a,u,l,s,d,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),y=Wt(t,c,1+f+h),b=function(g){return n&&co(n),new xt(!0,g)},v=function(g){return f?(Q(g),h?y(g[0],g[1],b):y(g[0],g[1])):h?y(g,b):y(g)};if(p)n=e;else{if(typeof(o=iu(e))!="function")throw TypeError("Target is not iterable");if(au(o)){for(a=0,u=le(e.length);u>a;a++)if((l=v(e[a]))&&l instanceof xt)return l;return new xt(!1)}n=o.call(e)}for(s=n.next;!(d=s.call(n)).done;){try{l=v(d.value)}catch(g){throw co(n),g}if(typeof l=="object"&&l&&l instanceof xt)return l}return new xt(!1)},ul=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},gg=Ne.f,cl=H("toStringTag"),fo=function(e,t,r){e&&!z(e=r?e:e.prototype,cl)&&gg(e,cl,{configurable:!0,value:t})},br=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch{}return function(n,o){return Q(n),(function(a){if(!K(a)&&a!==null)throw TypeError("Can't set "+String(a)+" as a prototype")})(o),t?e.call(n,o):n.__proto__=o,n}})():void 0),dl=function(e,t,r){for(var n in t)Ve(e,n,t[n],r);return e},mg=!D(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),fl=No("IE_PROTO"),yg=Object.prototype,Cr=mg?Object.getPrototypeOf:function(e){return e=Ae(e),z(e,fl)?e[fl]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?yg:null},Gn=H("iterator"),du=!1;[].keys&&("next"in(ll=[].keys())?(il=Cr(Cr(ll)))!==Object.prototype&&(qe=il):du=!0),(qe==null||D(function(){var e={};return qe[Gn].call(e)!==e}))&&(qe={}),z(qe,Gn)||ce(qe,Gn,function(){return this});var $o={IteratorPrototype:qe,BUGGY_SAFARI_ITERATORS:du},bg=$o.IteratorPrototype,Cg=function(){return this},Ln=$o.IteratorPrototype,nr=$o.BUGGY_SAFARI_ITERATORS,Et=H("iterator"),wg=function(){return this},Bo=function(e,t,r,n,o,a,u){(function(g,m,C){var O=m+" Iterator";g.prototype=Vo(bg,{next:_r(1,C)}),fo(g,O,!1),vt[O]=Cg})(r,t,n);var l,s,d,c=function(g){if(g===o&&b)return b;if(!nr&&g in h)return h[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,y=h[Et]||h["@@iterator"]||o&&h[o],b=!nr&&y||c(o),v=t=="Array"&&h.entries||y;if(v&&(l=Cr(v.call(new e)),Ln!==Object.prototype&&l.next&&(Cr(l)!==Ln&&(br?br(l,Ln):typeof l[Et]!="function"&&ce(l,Et,wg)),fo(l,f,!0))),o=="values"&&y&&y.name!=="values"&&(p=!0,b=function(){return y.call(this)}),h[Et]!==b&&ce(h,Et,b),vt[t]=b,o)if(s={values:c("values"),keys:a?b:c("keys"),entries:c("entries")},u)for(d in s)(nr||p||!(d in h))&&Ve(h,d,s[d]);else Z({target:t,proto:!0,forced:nr||p},s);return s},pl=H("species"),Sg=Ne.f,hl=cu.fastKey,vl=Ie.set,Hn=Ie.getterFor;(function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,a=n?"set":"add",u=W[e],l=u&&u.prototype,s=u,d={},c=function(v){var g=l[v];Ve(l,v,v=="add"?function(m){return g.call(this,m===0?0:m),this}:v=="delete"?function(m){return!(o&&!K(m))&&g.call(this,m===0?0:m)}:v=="get"?function(m){return o&&!K(m)?void 0:g.call(this,m===0?0:m)}:v=="has"?function(m){return!(o&&!K(m))&&g.call(this,m===0?0:m)}:function(m,C){return g.call(this,m===0?0:m,C),this})};if(ao(e,typeof u!="function"||!(o||l.forEach&&!D(function(){new u().entries().next()}))))s=r.getConstructor(t,e,n,a),cu.REQUIRED=!0;else if(ao(e,!0)){var f=new s,p=f[a](o?{}:-0,1)!=f,h=D(function(){f.has(1)}),y=uu(function(v){new u(v)}),b=!o&&D(function(){for(var v=new u,g=5;g--;)v[a](g,g);return!v.has(-0)});y||((s=t(function(v,g){ul(v,s,e);var m=(function(C,O,k){var E,P;return br&&typeof(E=O.constructor)=="function"&&E!==k&&K(P=E.prototype)&&P!==k.prototype&&br(C,P),C})(new u,v,s);return g!=null&&sl(g,m[a],{that:m,AS_ENTRIES:n}),m})).prototype=l,l.constructor=s),(h||b)&&(c("delete"),c("has"),n&&c("get")),(b||p)&&c(a),o&&l.clear&&delete l.clear}d[e]=s,Z({global:!0,forced:s!=u},d),fo(s,e),o||r.setStrong(s,e,n)})("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},{getConstructor:function(e,t,r,n){var o=e(function(s,d){ul(s,o,t),vl(s,{type:t,index:Vo(null),first:void 0,last:void 0,size:0}),se||(s.size=0),d!=null&&sl(d,s[n],{that:s,AS_ENTRIES:r})}),a=Hn(t),u=function(s,d,c){var f,p,h=a(s),y=l(s,d);return y?y.value=c:(h.last=y={index:p=hl(d,!0),key:d,value:c,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=y),f&&(f.next=y),se?h.size++:s.size++,p!=="F"&&(h.index[p]=y)),s},l=function(s,d){var c,f=a(s),p=hl(d);if(p!=="F")return f.index[p];for(c=f.first;c;c=c.next)if(c.key==d)return c};return dl(o.prototype,{clear:function(){for(var s=a(this),d=s.index,c=s.first;c;)c.removed=!0,c.previous&&(c.previous=c.previous.next=void 0),delete d[c.index],c=c.next;s.first=s.last=void 0,se?s.size=0:this.size=0},delete:function(s){var d=this,c=a(d),f=l(d,s);if(f){var p=f.next,h=f.previous;delete c.index[f.index],f.removed=!0,h&&(h.next=p),p&&(p.previous=h),c.first==f&&(c.first=p),c.last==f&&(c.last=h),se?c.size--:d.size--}return!!f},forEach:function(s){for(var d,c=a(this),f=Wt(s,arguments.length>1?arguments[1]:void 0,3);d=d?d.next:c.first;)for(f(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(s){return!!l(this,s)}}),dl(o.prototype,r?{get:function(s){var d=l(this,s);return d&&d.value},set:function(s,d){return u(this,s===0?0:s,d)}}:{add:function(s){return u(this,s=s===0?0:s,s)}}),se&&Sg(o.prototype,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=Hn(t),a=Hn(n);Bo(e,t,function(u,l){vl(this,{type:n,target:u,state:o(u),kind:l,last:void 0})},function(){for(var u=a(this),l=u.kind,s=u.last;s&&s.removed;)s=s.previous;return u.target&&(u.last=s=s?s.next:u.state.first)?l=="keys"?{value:s.key,done:!1}:l=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(u.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),(function(u){var l=Ar(u),s=Ne.f;se&&l&&!l[pl]&&s(l,pl,{configurable:!0,get:function(){return this}})})(t)}});var Og=Js.charAt,xg=Ie.set,Eg=Ie.getterFor("String Iterator");Bo(String,"String",function(e){xg(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=Eg(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Og(r,n),t.index+=e.length,{value:e,done:!1})});var gl={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},kg=Ie.set,_g=Ie.getterFor("Array Iterator"),Nt=Bo(Array,"Array",function(e,t){kg(this,{type:"Array Iterator",target:mt(e),index:0,kind:t})},function(){var e=_g(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");vt.Arguments=vt.Array,it("keys"),it("values"),it("entries");var Un=H("iterator"),ml=H("toStringTag"),zn=Nt.values;for(var Wn in gl){var yl=W[Wn],xe=yl&&yl.prototype;if(xe){if(xe[Un]!==zn)try{ce(xe,Un,zn)}catch{xe[Un]=zn}if(xe[ml]||ce(xe,ml,Wn),gl[Wn]){for(var at in Nt)if(xe[at]!==Nt[at])try{ce(xe,at,Nt[at])}catch{xe[at]=Nt[at]}}}}(function(){function e(){Je(this,e)}return Ze(e,null,[{key:"deduplicate",value:function(t){return Array.from(new Set(t))}},{key:"flat",value:function(t){return t.reduce(function(r,n){var o=Array.isArray(n)?e.flat(n):n;return r.concat(o)},[])}},{key:"find",value:function(t,r){return t.find(r)}},{key:"findIndex",value:function(t,r){return t.findIndex(r)}}]),e})();(function(){function e(){Je(this,e)}return Ze(e,null,[{key:"today",value:function(){return new Date}}]),e})();(function(){function e(){Je(this,e)}return Ze(e,null,[{key:"range",value:function(t,r,n){return Math.min(Math.max(t,r),n)}},{key:"clamp",value:function(t,r,n){return r<n?t<r?r:t>n?n:t:t<n?n:t>r?r:t}}]),e})();var Tg=Object.defineProperty,Ng=(e,t,r)=>t in e?Tg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X=(e,t,r)=>(Ng(e,typeof t!="symbol"?t+"":t,r),r);const U=e=>Math.round(e*100)/100;class L{constructor(t){X(this,"instance"),X(this,"alphaValue",0),X(this,"redValue",0),X(this,"greenValue",0),X(this,"blueValue",0),X(this,"hueValue",0),X(this,"saturationValue",0),X(this,"brightnessValue",0),X(this,"hslSaturationValue",0),X(this,"lightnessValue",0),X(this,"initAlpha",()=>{const r=this.instance.getAlpha();this.alphaValue=Math.min(1,r)*100}),X(this,"initLightness",()=>{const{s:r,l:n}=this.instance.toHsl();this.hslSaturationValue=U(r),this.lightnessValue=U(n)}),X(this,"initRgb",()=>{const{r,g:n,b:o}=this.instance.toRgb();this.redValue=U(r),this.greenValue=U(n),this.blueValue=U(o)}),X(this,"initHsb",()=>{const{h:r,s:n,v:o}=this.instance.toHsv();this.hueValue=Math.min(360,Math.ceil(r)),this.saturationValue=U(n),this.brightnessValue=U(o)}),X(this,"toHexString",()=>this.instance.toHexString()),X(this,"toRgbString",()=>this.instance.toRgbString()),this.instance=x(t),this.initRgb(),this.initHsb(),this.initLightness(),this.initAlpha()}toString(t){return this.instance.toString(t)}get hex(){return this.instance.toHex()}set hex(t){this.instance=x(t),this.initHsb(),this.initRgb(),this.initAlpha(),this.initLightness()}set hue(t){this.saturation===0&&this.brightness===0&&(this.saturationValue=1,this.brightnessValue=1),this.instance=x({h:U(t),s:this.saturation,v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.hueValue=U(t)}get hue(){return this.hueValue}set saturation(t){this.instance=x({h:this.hue,s:U(t),v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.saturationValue=U(t)}get saturation(){return this.saturationValue}set brightness(t){this.instance=x({h:this.hue,s:this.saturation,v:U(t),a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.brightnessValue=U(t)}get brightness(){return this.brightnessValue}set lightness(t){this.instance=x({h:this.hue,s:this.hslSaturationValue,l:U(t),a:this.alphaValue/100}),this.initRgb(),this.initHsb(),this.lightnessValue=U(t)}get lightness(){return this.lightnessValue}set red(t){const r=this.instance.toRgb();this.instance=x({...r,r:U(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.redValue=U(t)}get red(){return this.redValue}set green(t){const r=this.instance.toRgb();this.instance=x({...r,g:U(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.greenValue=U(t)}get green(){return this.greenValue}set blue(t){const r=this.instance.toRgb();this.instance=x({...r,b:U(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.blueValue=U(t)}get blue(){return this.blueValue}set alpha(t){this.instance.setAlpha(t/100),this.alphaValue=t}get alpha(){return this.alphaValue}get RGB(){return[this.red,this.green,this.blue,parseFloat((this.alpha/100).toFixed(2))]}get HSB(){return[this.hue,this.saturation,this.brightness,parseFloat((this.alpha/100).toFixed(2))]}get HSL(){return[this.hue,this.hslSaturationValue,this.lightness,parseFloat((this.alpha/100).toFixed(2))]}}function bl(e,t,r,n){return`rgba(${[e,t,r,n/100].join(",")})`}const Kn=(e,t,r)=>t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e,Fo="color-history",Mo=8,pe=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},Ag=i.defineComponent({name:"Alpha",props:{color:R.instanceOf(L),size:R.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=i.ref(null),n=i.ref(null);let o=e.color||new L;const a=i.reactive({red:o.red,green:o.green,blue:o.blue,alpha:o.alpha});i.watch(()=>e.color,f=>{f&&(o=f,gt.merge(a,{red:f.red,green:f.green,blue:f.blue,alpha:f.alpha}))},{deep:!0});const u=i.computed(()=>{const f=bl(a.red,a.green,a.blue,0),p=bl(a.red,a.green,a.blue,100);return{background:`linear-gradient(to right, ${f} , ${p})`}}),l=()=>{if(r.value&&n.value){const f=a.alpha/100,p=r.value.getBoundingClientRect(),h=n.value.offsetWidth;return Math.round(f*(p.width-h)+h/2)}return 0},s=i.computed(()=>({left:l()+"px",top:0})),d=f=>{f.target!==r.value&&c(f)},c=f=>{if(f.stopPropagation(),r.value&&n.value){const p=r.value.getBoundingClientRect(),h=n.value.offsetWidth;let y=f.clientX-p.left;y=Math.max(h/2,y),y=Math.min(y,p.width-h/2);const b=Math.round((y-h/2)/(p.width-h)*100);o.alpha=b,a.alpha=b,t("change",b)}};return We(()=>{const f={drag:p=>{c(p)},end:p=>{c(p)}};r.value&&n.value&&qt.triggerDragEvent(r.value,f)}),{barElement:r,cursorElement:n,getCursorStyle:s,getBackgroundStyle:u,onClickSider:d}}}),Rg=e=>(i.pushScopeId("data-v-18925ba6"),e=e(),i.popScopeId(),e),Pg=Rg(()=>i.createElementVNode("div",{class:"vc-alpha-slider__bar-handle"},null,-1)),jg=[Pg];function Ig(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-alpha-slider","transparent",{"small-slider":e.size==="small"}])},[i.createElementVNode("div",{ref:"barElement",class:"vc-alpha-slider__bar",style:i.normalizeStyle(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickSider&&e.onClickSider(...u))},[i.createElementVNode("div",{class:i.normalizeClass(["vc-alpha-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:i.normalizeStyle(e.getCursorStyle)},jg,6)],4)],2)}const qo=pe(Ag,[["render",Ig],["__scopeId","data-v-18925ba6"]]),Vg=[["#fcc02e","#f67c01","#e64a19","#d81b43","#8e24aa","#512da7","#1f87e8","#008781","#05a045"],["#fed835","#fb8c00","#f5511e","#eb1d4e","#9c28b1","#5d35b0","#2097f3","#029688","#4cb050"],["#ffeb3c","#ffa727","#fe5722","#eb4165","#aa47bc","#673bb7","#42a5f6","#26a59a","#83c683"],["#fff176","#ffb74e","#ff8a66","#f1627e","#b968c7","#7986cc","#64b5f6","#80cbc4","#a5d6a7"],["#fff59c","#ffcc80","#ffab91","#fb879e","#cf93d9","#9ea8db","#90caf8","#b2dfdc","#c8e6ca"],["transparent","#ffffff","#dedede","#a9a9a9","#4b4b4b","#353535","#212121","#000000","advance"]],$g=i.defineComponent({name:"Palette",emits:["change"],setup(e,{emit:t}){return{palettes:Vg,computedBgStyle:r=>r==="transparent"?r:r==="advance"?{}:{background:x(r).toRgbString()},onColorChange:r=>{t("change",r)}}}}),Bg={class:"vc-compact"},Fg=["onClick"];function Mg(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",Bg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.palettes,(u,l)=>(i.openBlock(),i.createElementBlock("div",{key:l,class:"vc-compact__row"},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u,(s,d)=>(i.openBlock(),i.createElementBlock("div",{key:d,class:"vc-compact__color-cube--wrap",onClick:c=>e.onColorChange(s)},[i.createElementVNode("div",{class:i.normalizeClass(["vc-compact__color_cube",{advance:s==="advance",transparent:s==="transparent"}]),style:i.normalizeStyle(e.computedBgStyle(s))},null,6)],8,Fg))),128))]))),128))])}const fu=pe($g,[["render",Mg],["__scopeId","data-v-b969fd48"]]),qg=i.defineComponent({name:"Board",props:{color:R.instanceOf(L),round:R.bool.def(!1),hide:R.bool.def(!0)},emits:["change"],setup(e,{emit:t}){var r,n,o;const a=i.getCurrentInstance(),u={h:((r=e.color)==null?void 0:r.hue)||0,s:1,v:1},l=new L(u).toHexString(),s=i.reactive({hueColor:l,saturation:((n=e.color)==null?void 0:n.saturation)||0,brightness:((o=e.color)==null?void 0:o.brightness)||0}),d=i.ref(0),c=i.ref(0),f=i.ref(),p=i.computed(()=>({top:d.value+"px",left:c.value+"px"})),h=()=>{if(a){const C=a.vnode.el;c.value=s.saturation*(C==null?void 0:C.clientWidth),d.value=(1-s.brightness)*(C==null?void 0:C.clientHeight)}};let y=!1;const b=C=>{y=!0,m(C)},v=C=>{y&&m(C)},g=()=>{y=!1},m=C=>{if(a){const O=a.vnode.el,k=O==null?void 0:O.getBoundingClientRect();let E=C.clientX-k.left,P=C.clientY-k.top;E=Kn(E,0,k.width),P=Kn(P,0,k.height);const B=E/k.width,I=Kn(-(P/k.height)+1,0,1);c.value=E,d.value=P,s.saturation=B,s.brightness=I,t("change",B,I)}};return We(()=>{a&&a.vnode.el&&f.value&&i.nextTick(()=>{h()})}),J(()=>e.color,C=>{gt.merge(s,{hueColor:new L({h:C.hue,s:1,v:1}).toHexString(),saturation:C.saturation,brightness:C.brightness}),h()},{deep:!0}),{state:s,cursorElement:f,getCursorStyle:p,onClickBoard:b,onDrag:v,onDragEnd:g}}}),Do=e=>(i.pushScopeId("data-v-7f0cdcdf"),e=e(),i.popScopeId(),e),Dg=Do(()=>i.createElementVNode("div",{class:"vc-saturation__white"},null,-1)),Gg=Do(()=>i.createElementVNode("div",{class:"vc-saturation__black"},null,-1)),Lg=Do(()=>i.createElementVNode("div",null,null,-1)),Hg=[Lg];function Ug(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",{ref:"boardElement",class:i.normalizeClass(["vc-saturation",{"vc-saturation__chrome":e.round,"vc-saturation__hidden":e.hide}]),style:i.normalizeStyle({backgroundColor:e.state.hueColor}),onMousedown:t[0]||(t[0]=(...u)=>e.onClickBoard&&e.onClickBoard(...u)),onMousemove:t[1]||(t[1]=(...u)=>e.onDrag&&e.onDrag(...u)),onMouseup:t[2]||(t[2]=(...u)=>e.onDragEnd&&e.onDragEnd(...u))},[Dg,Gg,i.createElementVNode("div",{class:"vc-saturation__cursor",ref:"cursorElement",style:i.normalizeStyle(e.getCursorStyle)},Hg,4)],38)}const Go=pe(qg,[["render",Ug],["__scopeId","data-v-7f0cdcdf"]]),zg=i.defineComponent({name:"Hue",props:{color:R.instanceOf(L),size:R.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=i.ref(null),n=i.ref(null);let o=e.color||new L;const a=i.reactive({hue:o.hue||0});i.watch(()=>e.color,c=>{c&&(o=c,gt.merge(a,{hue:o.hue}))},{deep:!0});const u=()=>{if(r.value&&n.value){const c=r.value.getBoundingClientRect(),f=n.value.offsetWidth;return a.hue===360?c.width-f/2:a.hue%360*(c.width-f)/360+f/2}return 0},l=i.computed(()=>({left:u()+"px",top:0})),s=c=>{c.target!==r.value&&d(c)},d=c=>{if(c.stopPropagation(),r.value&&n.value){const f=r.value.getBoundingClientRect(),p=n.value.offsetWidth;let h=c.clientX-f.left;h=Math.min(h,f.width-p/2),h=Math.max(p/2,h);const y=Math.round((h-p/2)/(f.width-p)*360);o.hue=y,a.hue=y,t("change",y)}};return We(()=>{const c={drag:f=>{d(f)},end:f=>{d(f)}};r.value&&n.value&&qt.triggerDragEvent(r.value,c)}),{barElement:r,cursorElement:n,getCursorStyle:l,onClickSider:s}}}),Wg=e=>(i.pushScopeId("data-v-e1a08576"),e=e(),i.popScopeId(),e),Kg=Wg(()=>i.createElementVNode("div",{class:"vc-hue-slider__bar-handle"},null,-1)),Yg=[Kg];function Xg(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-hue-slider",{"small-slider":e.size==="small"}])},[i.createElementVNode("div",{ref:"barElement",class:"vc-hue-slider__bar",onClick:t[0]||(t[0]=(...u)=>e.onClickSider&&e.onClickSider(...u))},[i.createElementVNode("div",{class:i.normalizeClass(["vc-hue-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:i.normalizeStyle(e.getCursorStyle)},Yg,6)],512)],2)}const Lo=pe(zg,[["render",Xg],["__scopeId","data-v-e1a08576"]]),Jg=i.defineComponent({name:"Lightness",props:{color:R.instanceOf(L),size:R.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=i.ref(null),n=i.ref(null);let o=e.color||new L;const[a,u,l]=o.HSL,s=i.reactive({hue:a,saturation:u,lightness:l});i.watch(()=>e.color,y=>{if(y){o=y;const[b,v,g]=o.HSL;gt.merge(s,{hue:b,saturation:v,lightness:g})}},{deep:!0});const d=i.computed(()=>{const y=x({h:s.hue,s:s.saturation,l:.8}).toPercentageRgbString(),b=x({h:s.hue,s:s.saturation,l:.6}).toPercentageRgbString(),v=x({h:s.hue,s:s.saturation,l:.4}).toPercentageRgbString(),g=x({h:s.hue,s:s.saturation,l:.2}).toPercentageRgbString();return{background:[`linear-gradient(to right, rgb(255, 255, 255), ${y}, ${b}, ${v}, ${g}, rgb(0, 0, 0))`,`-webkit-linear-gradient(left, rgb(255, 255, 255), ${y}, ${b}, ${v}, ${g}, rgb(0, 0, 0))`,`-moz-linear-gradient(left, rgb(255, 255, 255), ${y}, ${b}, ${v}, ${g}, rgb(0, 0, 0))`,`-ms-linear-gradient(left, rgb(255, 255, 255), ${y}, ${b}, ${v}, ${g}, rgb(0, 0, 0))`]}}),c=()=>{if(r.value&&n.value){const y=s.lightness,b=r.value.getBoundingClientRect(),v=n.value.offsetWidth;return(1-y)*(b.width-v)+v/2}return 0},f=i.computed(()=>({left:c()+"px",top:0})),p=y=>{y.target!==r.value&&h(y)},h=y=>{if(y.stopPropagation(),r.value&&n.value){const b=r.value.getBoundingClientRect(),v=n.value.offsetWidth;let g=y.clientX-b.left;g=Math.max(v/2,g),g=Math.min(g,b.width-v/2);const m=1-(g-v/2)/(b.width-v);o.lightness=m,t("change",m)}};return We(()=>{const y={drag:b=>{h(b)},end:b=>{h(b)}};r.value&&n.value&&qt.triggerDragEvent(r.value,y)}),{barElement:r,cursorElement:n,getCursorStyle:f,getBackgroundStyle:d,onClickSider:p}}}),Zg=e=>(i.pushScopeId("data-v-94a50a9e"),e=e(),i.popScopeId(),e),Qg=Zg(()=>i.createElementVNode("div",{class:"vc-lightness-slider__bar-handle"},null,-1)),em=[Qg];function tm(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-lightness-slider",{"small-slider":e.size==="small"}])},[i.createElementVNode("div",{ref:"barElement",class:"vc-lightness-slider__bar",style:i.normalizeStyle(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickSider&&e.onClickSider(...u))},[i.createElementVNode("div",{class:i.normalizeClass(["vc-lightness-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:i.normalizeStyle(e.getCursorStyle)},em,6)],4)],2)}const pu=pe(Jg,[["render",tm],["__scopeId","data-v-94a50a9e"]]),rm=i.defineComponent({name:"History",props:{colors:R.arrayOf(String).def(()=>[]),round:R.bool.def(!1)},emits:["change"],setup(e,{emit:t}){return{onColorSelect:r=>{t("change",r)}}}}),nm={key:0,class:"vc-colorPicker__record"},om={class:"color-list"},am=["onClick"];function im(e,t,r,n,o,a){return e.colors&&e.colors.length>0?(i.openBlock(),i.createElementBlock("div",nm,[i.createElementVNode("div",om,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.colors,(u,l)=>(i.openBlock(),i.createElementBlock("div",{key:l,class:i.normalizeClass(["color-item","transparent",{"color-item__round":e.round}]),onClick:s=>e.onColorSelect(u)},[i.createElementVNode("div",{class:"color-item__display",style:i.normalizeStyle({backgroundColor:u})},null,4)],10,am))),128))])])):i.createCommentVNode("",!0)}const Ho=pe(rm,[["render",im],["__scopeId","data-v-0f657238"]]),lm=i.defineComponent({name:"Display",props:{color:R.instanceOf(L),disableAlpha:R.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){var r,n,o,a;const{copy:u,copied:l,isSupported:s}=jd(),d=i.ref("hex"),c=i.reactive({color:e.color,hex:(r=e.color)==null?void 0:r.hex,alpha:Math.round(((n=e.color)==null?void 0:n.alpha)||100),rgba:(o=e.color)==null?void 0:o.RGB,previewBgColor:(a=e.color)==null?void 0:a.toRgbString()}),f=i.computed(()=>({background:c.previewBgColor})),p=()=>{d.value=d.value==="rgba"?"hex":"rgba"},h=ke(g=>{if(!g.target.value)return;let m=parseInt(g.target.value.replace("%",""));m>100&&(g.target.value="100",m=100),m<0&&(g.target.value="0",m=0),isNaN(m)&&(g.target.value="100",m=100),!isNaN(m)&&c.color&&(c.color.alpha=m),t("change",c.color)},300),y=ke((g,m)=>{if(c.color){if(d.value==="hex"){const C=g.target.value.replace("#","");x(C).isValid()?[3,4].includes(C.length)&&(c.color.hex=C):c.color.hex="000000",t("change",c.color)}else if(d.value==="rgba"&&m===3&&g.target.value.toString()==="0."&&c.rgba){c.rgba[m]=g.target.value;const[C,O,k,E]=c.rgba;c.color.hex=x({r:C,g:O,b:k}).toHex(),c.color.alpha=Math.round(E*100),t("change",c.color)}}},100),b=ke((g,m)=>{if(g.target.value){if(d.value==="hex"){const C=g.target.value.replace("#","");x(C).isValid()&&c.color&&[6,8].includes(C.length)&&(c.color.hex=C)}else if(m!==void 0&&c.rgba&&c.color){if(g.target.value<0&&(g.target.value=0),m===3&&((g.target.value>1||isNaN(g.target.value))&&(g.target.value=1),g.target.value.toString()==="0."))return;m<3&&g.target.value>255&&(g.target.value=255),c.rgba[m]=g.target.value;const[C,O,k,E]=c.rgba;c.color.hex=x({r:C,g:O,b:k}).toHex(),c.color.alpha=Math.round(E*100)}t("change",c.color)}},300),v=()=>{if(s&&c.color){const g=d.value==="hex"?c.color.toString(c.color.alpha===100?"hex6":"hex8"):c.color.toRgbString();u(g||"")}};return J(()=>e.color,g=>{g&&(c.color=g,c.alpha=Math.round(c.color.alpha),c.hex=c.color.hex,c.rgba=c.color.RGB)},{deep:!0}),J(()=>c.color,()=>{c.color&&(c.previewBgColor=c.color.toRgbString())},{deep:!0}),{state:c,getBgColorStyle:f,inputType:d,copied:l,onInputTypeChange:p,onAlphaBlur:h,onInputChange:b,onBlurChange:y,onCopyColorStr:v}}}),sm={class:"vc-display"},um={class:"vc-current-color vc-transparent"},cm={key:0,class:"copy-text"},dm={key:0,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},fm={class:"vc-color-input"},pm={key:0,class:"vc-alpha-input"},hm=["value"],vm={key:1,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},gm=["value","onInput","onBlur"];function mm(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",sm,[i.createElementVNode("div",um,[i.createElementVNode("div",{class:"color-cube",style:i.normalizeStyle(e.getBgColorStyle),onClick:t[0]||(t[0]=(...u)=>e.onCopyColorStr&&e.onCopyColorStr(...u))},[e.copied?(i.openBlock(),i.createElementBlock("span",cm,"Copied!")):i.createCommentVNode("",!0)],4)]),e.inputType==="hex"?(i.openBlock(),i.createElementBlock("div",dm,[i.createElementVNode("div",fm,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=u=>e.state.hex=u),maxlength:"8",onInput:t[2]||(t[2]=(...u)=>e.onInputChange&&e.onInputChange(...u)),onBlur:t[3]||(t[3]=(...u)=>e.onBlurChange&&e.onBlurChange(...u))},null,544),[[i.vModelText,e.state.hex]])]),e.disableAlpha?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",pm,[i.createElementVNode("input",{class:"vc-alpha-input__inner",value:e.state.alpha,onInput:t[4]||(t[4]=(...u)=>e.onAlphaBlur&&e.onAlphaBlur(...u))},null,40,hm),i.createTextVNode("% ")]))])):e.state.rgba?(i.openBlock(),i.createElementBlock("div",vm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.state.rgba,(u,l)=>(i.openBlock(),i.createElementBlock("div",{class:"vc-color-input",key:l},[i.createElementVNode("input",{value:u,onInput:s=>e.onInputChange(s,l),onBlur:s=>e.onBlurChange(s,l)},null,40,gm)]))),128))])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"vc-input-toggle",onClick:t[5]||(t[5]=(...u)=>e.onInputTypeChange&&e.onInputTypeChange(...u))},i.toDisplayString(e.inputType),1)])}const Uo=pe(lm,[["render",mm],["__scopeId","data-v-7334ac20"]]),ym=i.defineComponent({name:"FkColorPicker",components:{Display:Uo,Alpha:qo,Palette:fu,Board:Go,Hue:Lo,Lightness:pu,History:Ho},props:{color:R.instanceOf(L),disableHistory:R.bool.def(!1),roundHistory:R.bool.def(!1),disableAlpha:R.bool.def(!1)},emits:["update:color","change","advanceChange"],setup(e,{emit:t}){const r=e.color||new L,n=i.reactive({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=i.ref(!1),a=i.computed(()=>({background:n.rgb})),u=()=>{o.value=!1,t("advanceChange",!1)},l=ho(Fo,[],{}),s=ke(()=>{if(e.disableHistory)return;const b=n.color.toRgbString();if(l.value=l.value.filter(v=>!x.equals(v,b)),!l.value.includes(b)){for(;l.value.length>Mo;)l.value.pop();l.value.unshift(b)}},500),d=b=>{b==="advance"?(o.value=!0,t("advanceChange",!0)):(n.color.hex=b,t("advanceChange",!1))},c=b=>{n.color.alpha=b},f=b=>{n.color.hue=b},p=(b,v)=>{n.color.saturation=b,n.color.brightness=v},h=b=>{n.color.lightness=b},y=b=>{const v=b.target.value.replace("#","");x(v).isValid()&&(n.color.hex=v)};return J(()=>e.color,b=>{b&&(n.color=b)},{deep:!0}),J(()=>n.color,()=>{n.hex=n.color.hex,n.rgb=n.color.toRgbString(),s(),t("update:color",n.color),t("change",n.color)},{deep:!0}),{state:n,advancePanelShow:o,onBack:u,onCompactChange:d,onAlphaChange:c,onHueChange:f,onBoardChange:p,onLightChange:h,onInputChange:y,previewStyle:a,historyColors:l}}}),bm=e=>(i.pushScopeId("data-v-48e3c224"),e=e(),i.popScopeId(),e),Cm={class:"vc-fk-colorPicker"},wm={class:"vc-fk-colorPicker__inner"},Sm={class:"vc-fk-colorPicker__header"},Om=bm(()=>i.createElementVNode("div",{class:"back"},null,-1)),xm=[Om];function Em(e,t,r,n,o,a){const u=i.resolveComponent("Palette"),l=i.resolveComponent("Board"),s=i.resolveComponent("Hue"),d=i.resolveComponent("Lightness"),c=i.resolveComponent("Alpha"),f=i.resolveComponent("Display"),p=i.resolveComponent("History");return i.openBlock(),i.createElementBlock("div",Cm,[i.createElementVNode("div",wm,[i.createElementVNode("div",Sm,[e.advancePanelShow?(i.openBlock(),i.createElementBlock("span",{key:0,style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...h)=>e.onBack&&e.onBack(...h))},xm)):i.createCommentVNode("",!0)]),e.advancePanelShow?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(u,{key:0,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?(i.openBlock(),i.createBlock(l,{key:1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"])):i.createCommentVNode("",!0),e.advancePanelShow?(i.openBlock(),i.createBlock(s,{key:2,color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"])):i.createCommentVNode("",!0),e.advancePanelShow?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:3,color:e.state.color,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(c,{key:4,color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"])),i.createVNode(f,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(p,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const Cl=pe(ym,[["render",Em],["__scopeId","data-v-48e3c224"]]),km=i.defineComponent({name:"ChromeColorPicker",components:{Display:Uo,Alpha:qo,Board:Go,Hue:Lo,History:Ho},props:{color:R.instanceOf(L),disableHistory:R.bool.def(!1),roundHistory:R.bool.def(!1),disableAlpha:R.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){const r=e.color||new L,n=i.reactive({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=i.computed(()=>({background:n.rgb})),a=ho(Fo,[],{}),u=ke(()=>{if(e.disableHistory)return;const p=n.color.toRgbString();if(a.value=a.value.filter(h=>!x.equals(h,p)),!a.value.includes(p)){for(;a.value.length>Mo;)a.value.pop();a.value.unshift(p)}},500),l=p=>{n.color.alpha=p},s=p=>{n.color.hue=p},d=p=>{p.hex!==void 0&&(n.color.hex=p.hex),p.alpha!==void 0&&(n.color.alpha=p.alpha)},c=(p,h)=>{n.color.saturation=p,n.color.brightness=h},f=p=>{p!=="advance"&&(n.color.hex=p)};return J(()=>e.color,p=>{p&&(n.color=p)},{deep:!0}),J(()=>n.color,()=>{n.hex=n.color.hex,n.rgb=n.color.toRgbString(),u(),t("update:color",n.color),t("change",n.color)},{deep:!0}),{state:n,previewStyle:o,historyColors:a,onAlphaChange:l,onHueChange:s,onBoardChange:c,onInputChange:d,onCompactChange:f}}}),_m={class:"vc-chrome-colorPicker"},Tm={class:"vc-chrome-colorPicker-body"},Nm={class:"chrome-controls"},Am={class:"chrome-sliders"};function Rm(e,t,r,n,o,a){const u=i.resolveComponent("Board"),l=i.resolveComponent("Hue"),s=i.resolveComponent("Alpha"),d=i.resolveComponent("Display"),c=i.resolveComponent("History");return i.openBlock(),i.createElementBlock("div",_m,[i.createVNode(u,{round:!0,hide:!1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"]),i.createElementVNode("div",Tm,[i.createElementVNode("div",Nm,[i.createElementVNode("div",Am,[i.createVNode(l,{size:"small",color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"]),e.disableAlpha?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(s,{key:0,size:"small",color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"]))])]),i.createVNode(d,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(c,{key:0,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const wl=pe(km,[["render",Rm],["__scopeId","data-v-2611d66c"]]),zo="Vue3ColorPickerProvider",Pm=(e,t)=>{const r=e.getBoundingClientRect(),n=r.left+r.width/2,o=r.top+r.height/2,a=Math.abs(n-t.clientX),u=Math.abs(o-t.clientY),l=Math.sqrt(Math.pow(a,2)+Math.pow(u,2)),s=u/l,d=Math.acos(s);let c=Math.floor(180/(Math.PI/d));return t.clientX>n&&t.clientY>o&&(c=180-c),t.clientX==n&&t.clientY>o&&(c=180),t.clientX>n&&t.clientY==o&&(c=90),t.clientX<n&&t.clientY>o&&(c=180+c),t.clientX<n&&t.clientY==o&&(c=270),t.clientX<n&&t.clientY<o&&(c=360-c),c};let Yn=!1;const jm=(e,t)=>{const r=function(o){var a;(a=t.drag)==null||a.call(t,o)},n=function(o){var a;document.removeEventListener("mousemove",r,!1),document.removeEventListener("mouseup",n,!1),document.onselectstart=null,document.ondragstart=null,Yn=!1,(a=t.end)==null||a.call(t,o)};e&&e.addEventListener("mousedown",o=>{var a;Yn||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",n,!1),Yn=!0,(a=t.start)==null||a.call(t,o))})},Im={angle:{type:Number,default:0},size:{type:Number,default:16,validator:e=>e>=16},borderWidth:{type:Number,default:1,validator:e=>e>=1},borderColor:{type:String,default:"#666"}},Vm=i.defineComponent({name:"Angle",props:Im,emits:["update:angle","change"],setup(e,{emit:t}){const r=i.ref(null),n=i.ref(0);i.watch(()=>e.angle,l=>{n.value=l});const o=()=>{let l=Number(n.value);isNaN(l)||(l=l>360||l<0?e.angle:l,n.value=l===360?0:l,t("update:angle",n.value),t("change",n.value))},a=i.computed(()=>({width:e.size+"px",height:e.size+"px",borderWidth:e.borderWidth+"px",borderColor:e.borderColor,transform:`rotate(${n.value}deg)`})),u=l=>{r.value&&(n.value=Pm(r.value,l)%360,o())};return i.onMounted(()=>{const l={drag:s=>{u(s)},end:s=>{u(s)}};r.value&&jm(r.value,l)}),()=>i.createVNode("div",{class:"bee-angle"},[i.createVNode("div",{class:"bee-angle__round",ref:r,style:a.value},null)])}}),$m=i.defineComponent({name:"GradientColorPicker",components:{Angle:Vm,Display:Uo,Alpha:qo,Palette:fu,Board:Go,Hue:Lo,Lightness:pu,History:Ho},props:{startColor:R.instanceOf(L).isRequired,endColor:R.instanceOf(L).isRequired,startColorStop:R.number.def(0),endColorStop:R.number.def(100),angle:R.number.def(0),type:R.oneOf(["linear","radial"]).def("linear"),disableHistory:R.bool.def(!1),roundHistory:R.bool.def(!1),disableAlpha:R.bool.def(!1),pickerType:R.oneOf(["fk","chrome"]).def("fk")},emits:["update:startColor","update:endColor","update:angle","update:startColorStop","update:endColorStop","startColorChange","endColorChange","advanceChange","angleChange","startColorStopChange","endColorStopChange","typeChange"],setup(e,{emit:t}){const r=i.reactive({startActive:!0,startColor:e.startColor,endColor:e.endColor,startColorStop:e.startColorStop,endColorStop:e.endColorStop,angle:e.angle,type:e.type,startColorRgba:e.startColor.toRgbString(),endColorRgba:e.endColor.toRgbString()}),n=i.inject(zo),o=i.ref(e.pickerType==="chrome"),a=i.ref(),u=i.ref(),l=i.ref();i.watch(()=>[e.startColor,e.endColor,e.angle],S=>{r.startColor=S[0],r.endColor=S[1],r.angle=S[2]}),i.watch(()=>e.type,S=>{r.type=S});const s=i.computed({get:()=>r.startActive?r.startColor:r.endColor,set:S=>{if(r.startActive){r.startColor=S;return}r.endColor=S}}),d=i.computed(()=>{if(l.value&&a.value){const S=r.startColorStop/100,T=l.value.getBoundingClientRect(),j=a.value.offsetWidth;return Math.round(S*(T.width-j)+j/2)}return 0}),c=i.computed(()=>{if(l.value&&u.value){const S=r.endColorStop/100,T=l.value.getBoundingClientRect(),j=u.value.offsetWidth;return Math.round(S*(T.width-j)+j/2)}return 0}),f=i.computed(()=>{let S=`background: linear-gradient(${r.angle}deg, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`;return r.type==="radial"&&(S=`background: radial-gradient(circle, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`),S}),p=S=>{var T;if(r.startActive=!0,l.value&&a.value){const j=(T=l.value)==null?void 0:T.getBoundingClientRect();let _=S.clientX-j.left;_=Math.max(a.value.offsetWidth/2,_),_=Math.min(_,j.width-a.value.offsetWidth/2),r.startColorStop=Math.round((_-a.value.offsetWidth/2)/(j.width-a.value.offsetWidth)*100),t("update:startColorStop",r.startColorStop),t("startColorStopChange",r.startColorStop)}},h=S=>{var T;if(r.startActive=!1,l.value&&u.value){const j=(T=l.value)==null?void 0:T.getBoundingClientRect();let _=S.clientX-j.left;_=Math.max(u.value.offsetWidth/2,_),_=Math.min(_,j.width-u.value.offsetWidth/2),r.endColorStop=Math.round((_-u.value.offsetWidth/2)/(j.width-u.value.offsetWidth)*100),t("update:endColorStop",r.endColorStop),t("endColorStopChange",r.endColorStop)}},y=S=>{const T=S.target,j=parseInt(T.value.replace("°",""));isNaN(j)||(r.angle=j%360),t("update:angle",r.angle),t("angleChange",r.angle)},b=S=>{r.angle=S,t("update:angle",r.angle),t("angleChange",r.angle)},v=S=>{S==="advance"?(o.value=!0,t("advanceChange",!0)):(s.value.hex=S,t("advanceChange",!1)),E()},g=S=>{s.value.alpha=S,E()},m=S=>{s.value.hue=S,E()},C=(S,T)=>{s.value.saturation=S,s.value.brightness=T,E()},O=S=>{s.value.lightness=S,E()},k=()=>{E()},E=()=>{r.startActive?(t("update:startColor",r.startColor),t("startColorChange",r.startColor)):(t("update:endColor",r.endColor),t("endColorChange",r.endColor))},P=()=>{o.value=!1,t("advanceChange",!1)},B=()=>{r.type=r.type==="linear"?"radial":"linear",t("typeChange",r.type)},I=ho(Fo,[],{}),F=ke(()=>{if(e.disableHistory)return;const S=s.value.toRgbString();if(I.value=I.value.filter(T=>!x.equals(T,S)),!I.value.includes(S)){for(;I.value.length>Mo;)I.value.pop();I.value.unshift(S)}},500);return We(()=>{u.value&&a.value&&(qt.triggerDragEvent(u.value,{drag:S=>{h(S)},end:S=>{h(S)}}),qt.triggerDragEvent(a.value,{drag:S=>{p(S)},end:S=>{p(S)}}))}),J(()=>r.startColor,S=>{r.startColorRgba=S.toRgbString()},{deep:!0}),J(()=>r.endColor,S=>{r.endColorRgba=S.toRgbString()},{deep:!0}),J(()=>s.value,()=>{F()},{deep:!0}),{startGradientRef:a,stopGradientRef:u,colorRangeRef:l,state:r,currentColor:s,getStartColorLeft:d,getEndColorLeft:c,gradientBg:f,advancePanelShow:o,onDegreeBlur:y,onCompactChange:v,onAlphaChange:g,onHueChange:m,onBoardChange:C,onLightChange:O,historyColors:I,onBack:P,onDegreeChange:b,onDisplayChange:k,onTypeChange:B,lang:n==null?void 0:n.lang}}}),hu=e=>(i.pushScopeId("data-v-c4d6d6ea"),e=e(),i.popScopeId(),e),Bm={class:"vc-gradient-picker"},Fm={class:"vc-gradient-picker__header"},Mm={class:"vc-gradient__types"},qm={class:"vc-gradient-wrap__types"},Dm={class:"vc-picker-degree-input vc-degree-input"},Gm={class:"vc-degree-input__control"},Lm=["value"],Hm={class:"vc-degree-input__panel"},Um={class:"vc-degree-input__disk"},zm={class:"vc-gradient-picker__body"},Wm={class:"vc-color-range",ref:"colorRangeRef"},Km={class:"vc-color-range__container"},Ym={class:"vc-gradient__stop__container"},Xm=["title"],Jm=hu(()=>i.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),Zm=[Jm],Qm=["title"],ey=hu(()=>i.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),ty=[ey];function ry(e,t,r,n,o,a){var u,l;const s=i.resolveComponent("Angle"),d=i.resolveComponent("Board"),c=i.resolveComponent("Hue"),f=i.resolveComponent("Palette"),p=i.resolveComponent("Lightness"),h=i.resolveComponent("Alpha"),y=i.resolveComponent("Display"),b=i.resolveComponent("History");return i.openBlock(),i.createElementBlock("div",Bm,[i.createElementVNode("div",Fm,[i.createElementVNode("div",null,[i.withDirectives(i.createElementVNode("div",{class:"back",style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...v)=>e.onBack&&e.onBack(...v))},null,512),[[i.vShow,e.pickerType==="fk"&&e.advancePanelShow]])]),i.createElementVNode("div",Mm,[i.createElementVNode("div",qm,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(["linear","radial"],v=>i.createElementVNode("div",{class:i.normalizeClass(["vc-gradient__type",{active:e.state.type===v}]),key:v,onClick:t[1]||(t[1]=(...g)=>e.onTypeChange&&e.onTypeChange(...g))},i.toDisplayString(e.lang?e.lang[v]:v),3)),64))]),i.withDirectives(i.createElementVNode("div",Dm,[i.createElementVNode("div",Gm,[i.createElementVNode("input",{value:e.state.angle,onBlur:t[2]||(t[2]=(...v)=>e.onDegreeBlur&&e.onDegreeBlur(...v))},null,40,Lm),i.createTextVNode("deg ")]),i.createElementVNode("div",Hm,[i.createElementVNode("div",Um,[i.createVNode(s,{angle:e.state.angle,"onUpdate:angle":t[3]||(t[3]=v=>e.state.angle=v),size:40,onChange:e.onDegreeChange},null,8,["angle","onChange"])])])],512),[[i.vShow,e.state.type==="linear"]])])]),i.createElementVNode("div",zm,[i.createElementVNode("div",Wm,[i.createElementVNode("div",Km,[i.createElementVNode("div",{class:"vc-background",style:i.normalizeStyle(e.gradientBg)},null,4),i.createElementVNode("div",Ym,[i.createElementVNode("div",{class:i.normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":e.state.startActive}]),ref:"startGradientRef",title:(u=e.lang)==null?void 0:u.start,style:i.normalizeStyle({left:e.getStartColorLeft+"px",backgroundColor:e.state.startColorRgba})},Zm,14,Xm),i.createElementVNode("div",{class:i.normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":!e.state.startActive}]),ref:"stopGradientRef",title:(l=e.lang)==null?void 0:l.end,style:i.normalizeStyle({left:e.getEndColorLeft+"px",backgroundColor:e.state.endColorRgba})},ty,14,Qm)])])],512)]),e.advancePanelShow?(i.openBlock(),i.createBlock(d,{key:0,color:e.currentColor,onChange:e.onBoardChange},null,8,["color","onChange"])):i.createCommentVNode("",!0),e.advancePanelShow?(i.openBlock(),i.createBlock(c,{key:1,color:e.currentColor,onChange:e.onHueChange},null,8,["color","onChange"])):i.createCommentVNode("",!0),e.advancePanelShow?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(f,{key:2,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(p,{key:3,color:e.currentColor,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(h,{key:4,color:e.currentColor,onChange:e.onAlphaChange},null,8,["color","onChange"])),i.createVNode(y,{color:e.currentColor,"disable-alpha":e.disableAlpha,onChange:e.onDisplayChange},null,8,["color","disable-alpha","onChange"]),e.disableHistory?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(b,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])}const Sl=pe($m,[["render",ry],["__scopeId","data-v-c4d6d6ea"]]),ny=i.defineComponent({name:"WrapContainer",props:{theme:R.oneOf(["white","black"]).def("white"),showTab:R.bool.def(!1),activeKey:R.oneOf(["pure","gradient"]).def("pure")},emits:["update:activeKey","change"],setup(e,{emit:t}){const r=i.reactive({activeKey:e.activeKey}),n=i.inject(zo),o=a=>{r.activeKey=a,t("update:activeKey",a),t("change",a)};return J(()=>e.activeKey,a=>{r.activeKey=a}),{state:r,onActiveKeyChange:o,lang:n==null?void 0:n.lang}}}),oy={class:"vc-colorpicker--container"},ay={key:0,class:"vc-colorpicker--tabs"},iy={class:"vc-colorpicker--tabs__inner"},ly={class:"vc-btn__content"},sy={class:"vc-btn__content"};function uy(e,t,r,n,o,a){var u,l;return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vc-colorpicker",e.theme])},[i.createElementVNode("div",oy,[e.showTab?(i.openBlock(),i.createElementBlock("div",ay,[i.createElementVNode("div",iy,[i.createElementVNode("div",{class:i.normalizeClass(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="pure"}]),onClick:t[0]||(t[0]=s=>e.onActiveKeyChange("pure"))},[i.createElementVNode("button",null,[i.createElementVNode("div",ly,i.toDisplayString((u=e.lang)==null?void 0:u.pure),1)])],2),i.createElementVNode("div",{class:i.normalizeClass(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="gradient"}]),onClick:t[1]||(t[1]=s=>e.onActiveKeyChange("gradient"))},[i.createElementVNode("button",null,[i.createElementVNode("div",sy,i.toDisplayString((l=e.lang)==null?void 0:l.gradient),1)])],2),i.createElementVNode("div",{class:"vc-colorpicker--tabs__bg",style:i.normalizeStyle({width:"50%",left:`calc(${e.state.activeKey==="gradient"?50:0}%)`})},null,4)])])):i.createCommentVNode("",!0),i.renderSlot(e.$slots,"default",{},void 0,!0)])],2)}const cy=pe(ny,[["render",uy],["__scopeId","data-v-0492277d"]]),dy={start:"Start",end:"End",pure:"Pure",gradient:"Gradient",linear:"linear",radial:"radial"},fy={start:"开始",end:"结束",pure:"纯色",gradient:"渐变",linear:"线性",radial:"径向"},py={En:dy,"ZH-cn":fy},hy={isWidget:R.bool.def(!1),pickerType:R.oneOf(["fk","chrome"]).def("fk"),shape:R.oneOf(["circle","square"]).def("square"),pureColor:{type:[String,Object],default:"#000000"},gradientColor:R.string.def("linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),format:{type:String,default:"rgb"},disableAlpha:R.bool.def(!1),disableHistory:R.bool.def(!1),roundHistory:R.bool.def(!1),useType:R.oneOf(["pure","gradient","both"]).def("pure"),activeKey:R.oneOf(["pure","gradient"]).def("pure"),lang:{type:String,default:"ZH-cn"},zIndex:R.number.def(9999),pickerContainer:{type:[String,HTMLElement],default:"body"},debounce:R.number.def(100),theme:R.oneOf(["white","black"]).def("white"),blurClose:R.bool.def(!1),defaultPopup:R.bool.def(!1)},vy=i.defineComponent({name:"ColorPicker",components:{FkColorPicker:Cl,ChromeColorPicker:wl,GradientColorPicker:Sl,WrapContainer:cy},inheritAttrs:!1,props:hy,emits:["update:pureColor","pureColorChange","update:gradientColor","gradientColorChange","update:activeKey","activeKeyChange"],setup(e,{emit:t}){i.provide(zo,{lang:i.computed(()=>py[e.lang||"ZH-cn"])});const r=!!i.useSlots().extra,n=i.reactive({pureColor:e.pureColor||"",activeKey:e.useType==="gradient"?"gradient":e.activeKey,isAdvanceMode:!1}),o=new L("#000"),a=new L("#000"),u=new L(n.pureColor),l=i.reactive({startColor:o,endColor:a,startColorStop:0,endColorStop:100,angle:0,type:"linear",gradientColor:e.gradientColor}),s=i.ref(u),d=i.ref(e.defaultPopup),c=i.ref(null),f=i.ref(null);let p=null;const h=i.computed(()=>({background:n.activeKey!=="gradient"?x(n.pureColor).toRgbString():l.gradientColor})),y=i.computed(()=>n.activeKey==="gradient"?Sl.name:e.pickerType==="fk"?Cl.name:wl.name),b=S=>{n.isAdvanceMode=S},v=i.computed(()=>{const S={disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,pickerType:e.pickerType};return n.activeKey==="gradient"?{...S,startColor:l.startColor,endColor:l.endColor,angle:l.angle,type:l.type,startColorStop:l.startColorStop,endColorStop:l.endColorStop,onStartColorChange:T=>{l.startColor=T,k()},onEndColorChange:T=>{l.endColor=T,k()},onStartColorStopChange:T=>{l.startColorStop=T,k()},onEndColorStopChange:T=>{l.endColorStop=T,k()},onAngleChange:T=>{l.angle=T,k()},onTypeChange:T=>{l.type=T,k()},onAdvanceChange:b}:{...S,disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,color:s.value,onChange:B,onAdvanceChange:b}}),g=()=>{d.value=!0,p?p.update():P()},m=()=>{d.value=!1},C=ke(()=>{!e.isWidget&&e.blurClose&&m()},100);Rd(f,()=>{m()});const O=()=>{var S,T,j,_;try{const[A]=Ea.parse(l.gradientColor);if(A&&A.type.includes("gradient")&&A.colorStops.length>=2){const $=A.colorStops[0],Y=A.colorStops[1];l.startColorStop=Number((S=$.length)==null?void 0:S.value)||0,l.endColorStop=Number((T=Y.length)==null?void 0:T.value)||0,A.type==="linear-gradient"&&((j=A.orientation)==null?void 0:j.type)==="angular"&&(l.angle=Number((_=A.orientation)==null?void 0:_.value)||0),l.type=A.type.split("-")[0];const[N,V,M,ee]=$.value,[me,Qe,Re,ye]=Y.value;l.startColor=new L({r:Number(N),g:Number(V),b:Number(M),a:Number(ee)}),l.endColor=new L({r:Number(me),g:Number(Qe),b:Number(Re),a:Number(ye)})}}catch(A){console.log(`[Parse Color]: ${A}`)}},k=ke(()=>{const S=E();try{l.gradientColor=Ea.stringify(S),t("update:gradientColor",l.gradientColor),t("gradientColorChange",l.gradientColor)}catch(T){console.log(T)}},e.debounce),E=()=>{const S=[],T=l.startColor.RGB.map(A=>A.toString()),j=l.endColor.RGB.map(A=>A.toString()),_=[{type:"rgba",value:[T[0],T[1],T[2],T[3]],length:{value:l.startColorStop+"",type:"%"}},{type:"rgba",value:[j[0],j[1],j[2],j[3]],length:{value:l.endColorStop+"",type:"%"}}];return l.type==="linear"?S.push({type:"linear-gradient",orientation:{type:"angular",value:l.angle+""},colorStops:_}):l.type==="radial"&&S.push({type:"radial-gradient",orientation:[{type:"shape",value:"circle"}],colorStops:_}),S},P=()=>{c.value&&f.value&&(p=mp(c.value,f.value,{placement:"auto",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{allowedAutoPlacements:["top","bottom","left","right"],rootBoundary:"viewport"}}]}))},B=S=>{s.value=S,n.pureColor=S.toString(e.format),I()},I=ke(()=>{t("update:pureColor",n.pureColor),t("pureColorChange",n.pureColor)},e.debounce),F=S=>{n.activeKey=S,t("update:activeKey",S),t("activeKeyChange",S)};return We(()=>{O(),p||P()}),J(()=>e.gradientColor,S=>{S!=l.gradientColor&&(l.gradientColor=S)}),J(()=>l.gradientColor,()=>{O()}),J(()=>e.activeKey,S=>{n.activeKey=S}),J(()=>e.useType,S=>{n.activeKey!=="gradient"&&S==="gradient"?n.activeKey="gradient":n.activeKey="pure"}),J(()=>e.pureColor,S=>{x.equals(S,n.pureColor)||(n.pureColor=S,s.value=new L(S))},{deep:!0}),{colorCubeRef:c,pickerRef:f,showPicker:d,colorInstance:s,getBgColorStyle:h,getComponentName:y,getBindArgs:v,state:n,hasExtra:r,onColorChange:B,onShowPicker:g,onActiveKeyChange:F,onAutoClose:C}}}),gy={key:0,class:"vc-color-extra"},my={key:0,class:"vc-color-extra"};function yy(e,t,r,n,o,a){const u=i.resolveComponent("WrapContainer");return i.openBlock(),i.createElementBlock(i.Fragment,null,[e.isWidget?(i.openBlock(),i.createBlock(u,{key:0,"active-key":e.state.activeKey,"onUpdate:activeKey":t[0]||(t[0]=l=>e.state.activeKey=l),"show-tab":e.useType==="both",style:i.normalizeStyle({zIndex:e.zIndex}),theme:e.theme,onChange:e.onActiveKeyChange},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.getComponentName),i.mergeProps({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(i.openBlock(),i.createElementBlock("div",gy,[i.renderSlot(e.$slots,"extra",{},void 0,!0)])):i.createCommentVNode("",!0)]),_:3},8,["active-key","show-tab","style","theme","onChange"])):i.createCommentVNode("",!0),e.isWidget?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createElementVNode("div",{class:i.normalizeClass(["vc-color-wrap transparent",{round:e.shape==="circle"}]),ref:"colorCubeRef"},[i.createElementVNode("div",{class:"current-color",style:i.normalizeStyle(e.getBgColorStyle),onClick:t[1]||(t[1]=(...l)=>e.onShowPicker&&e.onShowPicker(...l))},null,4)],2),(i.openBlock(),i.createBlock(i.Teleport,{to:e.pickerContainer},[i.withDirectives(i.createElementVNode("div",{ref:"pickerRef",style:i.normalizeStyle({zIndex:e.zIndex}),onMouseleave:t[3]||(t[3]=(...l)=>e.onAutoClose&&e.onAutoClose(...l))},[e.showPicker?(i.openBlock(),i.createBlock(u,{key:0,"show-tab":e.useType==="both"&&!e.state.isAdvanceMode,theme:e.theme,"active-key":e.state.activeKey,"onUpdate:activeKey":t[2]||(t[2]=l=>e.state.activeKey=l),onChange:e.onActiveKeyChange},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.getComponentName),i.mergeProps({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(i.openBlock(),i.createElementBlock("div",my,[i.renderSlot(e.$slots,"extra",{},void 0,!0)])):i.createCommentVNode("",!0)]),_:3},8,["show-tab","theme","active-key","onChange"])):i.createCommentVNode("",!0)],36),[[i.vShow,e.showPicker]])],8,["to"]))],64))],64)}const by=pe(vy,[["render",yy],["__scopeId","data-v-354ca836"]]),Cy={install(e){e.use(yc),e.use(bc),e.use(Oc),e.use(kc),e.use(Nc),e.use(Ac),e.use(Ic),e.use(Bc),e.use(qc),e.use(zc),e.use(Yc),e.use(Xc),e.use(Zc),e.use(rd),e.use(od),e.use(sd),e.use(ud),e.use(cd),e.use(Cc),e.use(ad),e.use(Jc),e.use(Qc),e.use(Rc),e.component("ColorPicker",by)}},Ol=i.defineComponent({name:"GctEditForm",props:{embed:{type:Boolean,default:!1},context:{type:Object,default:()=>({})},params:{type:Object,default:()=>({})},controller:{type:Object},model:{type:Object,required:!0},data:{type:Object}},emits:["update:data"],setup(e,{emit:t}){const r=w.useNamespace("gct-edit-form");if(!e.model)throw new Error("未传递表单模型配置");const n=e.controller||w.useEditFormController(()=>new w.EditFormController(e.model)),o=i.ref(null),a=async()=>{try{await o.value.formRef.validate()}catch(l){return console.error(l),!1}return!0},u=async l=>{try{await o.value.formRef.validateFields(l)}catch(s){return console.error(s),!1}return!0};return n.validate=a,n.validateItem=u,i.watch(e.context,()=>{Object.assign(n.context,e.context),n.state.isNew=!n.context.id},{immediate:!0}),i.watch(e.params,()=>{Object.assign(n.params,e.params)}),w.useModal(async()=>{try{await o.value.formRef.validate();const l=await n.save();if(l)return{ok:!0,data:[gt.cloneDeep(l)]}}catch(l){console.error(l)}return{ok:!1}}),e.data?(Object.assign(n.state.data,e.data),n.loaded()):n.state.isNew!==!0?n.load().then(()=>{n.loaded()}):n.loaded(),e.embed&&n.evt.on("change",()=>{t("update:data",n.getData())}),{ns:r,c:n,formRef:o}},render(){let e=null;return(this.c.state.isNew||this.c.state.isNew==!1&&this.c.state.loaded)&&(e=i.createVNode(i.resolveComponent("gct-form"),{class:"h-full",ref:"formRef",model:this.model,c:this.c},null)),i.createVNode("div",{class:this.ns.b()},[e])}}),wy={install(e){e.component(Ol.name,Ol)}};function Sy(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const xl=i.defineComponent({name:"GctFormItem",props:{c:{type:Object,required:!0},formModel:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form-item"),r={};e.formModel.labelWidth&&(r[t.cssVarName("form-item-label-width")]=e.formModel.labelWidth),e.model.labelWidth&&(r[t.cssVarName("form-item-label-width")]=e.model.labelWidth),e.model.labelAlign&&(r[t.cssVarName("form-item-label-align")]=e.model.labelAlign),e.model.editorAlign&&(r[t.cssVarName("form-item-editor-align")]=e.model.editorAlign),e.model.width&&(r[t.cssVarName("form-item-width")]=e.model.width),e.model.margin&&(r.margin=e.model.margin),e.model.padding&&(r.padding=e.model.padding);const n=i.computed(()=>{var a;return!!((a=e.model.rules)!=null&&a.find(u=>u.required))});return{ns:t,style:r,required:n,renderLabelTooltip:()=>e.model.labelTooltip?i.createVNode(i.resolveComponent("a-tooltip"),{class:t.e("label-tooltip"),placement:"topLeft",title:e.model.labelTooltip},{default:()=>[i.createVNode("span",{class:"iconfont icon-assist ml5px text-[#bfbfbf]"},null)]}):null}},render(){const e=_gct.register.editor.get(w.EditorRegisterConst.PREFIX+this.model.editor.type);if(!e)return console.error(`未找到表单项${this.model.name}的编辑器${this.model.editor.type}的适配器实例:`,this.model),null;const t=this.model.labelPosition||"left";let r=null;e?e.render?r=e.render(this.c.editorValue,this.c.data,this.model):e.component?r=i.h(typeof e.component=="string"?i.resolveComponent(e.component):e.component,{key:this.model.name,c:this.c,value:this.c.editorValue,itemModel:this.model,model:this.model.editor,data:this.c.data,disabled:this.c.state.disabled,readonly:this.c.state.readonly,keepalive:this.c.state.keepalive,visible:this.c.state.visible,class:[this.ns.e("editor"),this.ns.e(t),this.model.editor.class],style:this.model.editor.style,"onUpdate:value":o=>{this.c.editorValue=o}}):console.error(`未找到编辑器绘制组件:${this.model.name} - ${this.model.editor.type},请实现 component 或 render 方法`):console.error(`未找到编辑器适配器:${this.model.name} - ${this.model.editor.type}`),this.model.label&&t==="top"&&(r=[i.createVNode("div",{class:[this.ns.e("label"),this.ns.em("label",t)]},[this.model.label,this.renderLabelTooltip()]),r]);const n={default:()=>r};return t==="left"&&this.model.label&&(n.label=()=>[i.createVNode("span",null,[this.model.label]),this.renderLabelTooltip()]),i.createVNode(i.resolveComponent("a-form-item"),{key:this.c.model.name,colon:this.formModel.noColon===!0?!1:this.model.noColon!==!0,name:this.model.name,label:void 0,class:[this.ns.b(),this.ns.is("readonly",this.model.editor.readonly===!0),this.ns.is("required",this.required),this.ns.is("hidden",this.c.state.visible===!1),this.ns.is("hidden-label",!this.model.label),this.ns.m("label-"+t)],style:this.style,rules:this.c.state.visible===!0?this.model.rules:[],layout:"horizontal"},Sy(n)?n:{default:()=>[n]})}});function Oy(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const El=i.defineComponent({name:"GctForm",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form");i.provide("formController",e.c);const r=i.ref(null),n=e.c;Object.keys(n.item).forEach(d=>{const c=n.item[d];c.state=i.reactive(c.state)});const a=d=>i.createVNode(i.resolveComponent("gct-form-item"),{class:d.class,style:d.style,c:n.item[d.name],formModel:e.model,model:d},null),u=d=>{const c=n.provider[d.name];if(!c)return console.error(`未找到表单项适配器实例:${d.name}`,d),null;if(c)return i.h(typeof c.component=="string"?i.resolveComponent(c.component):c.component,{key:d.name,model:d,formModel:e.model,c:n.item[d.name],data:n.state.data,class:d.class,style:d.style},l(d.children||[]));console.error(`未找到表单容器适配器:${d.name} - ${d.type}`)},l=d=>{if(!d)return[];const c=[];return d.forEach(f=>{if(f.type==="hidden")return null;let p=null;const h=f;h.type==="container"||h.container?p=u(h):p=a(f),p&&c.push(p)}),c},s={};return e.model.labelWidth&&(s[t.cssVarName("form-item-label-width")]=e.model.labelWidth),{ns:t,formRef:r,staticStyle:s,renderItem:a,renderContainer:u,renderChildren:l}},render(){let e;return i.createVNode(i.resolveComponent("a-form"),{ref:"formRef",layout:this.model.layout,model:this.c.state.data,class:[this.ns.b(),this.ns.is("info",this.model.info===!0)],autocomplete:"off",style:this.staticStyle},Oy(e=this.model.children.map(t=>this.renderContainer(t)))?e:{default:()=>[e]})}});class xy{constructor(){q(this,"component","gct-form-item")}createController(t,r){return w.useFormItemController(()=>new w.FormItemController(t,r))}}class Ey{constructor(){q(this,"component","gct-form-hidden-item")}createController(t,r){return w.useFormItemController(()=>new w.FormHiddenItemController(t,r))}}class ky{constructor(){q(this,"component","gct-form-collapse-pane")}createController(t,r){return w.useFormItemController(()=>new w.FormCollapsePaneController(t,r))}}function kl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const _l=i.defineComponent({name:"GctFormCollapsePane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("form-collapse-pane"),r={};function n(o){if(e.model.layout==="flex")return i.createVNode(i.resolveComponent("flex-container"),{layout:e.model.flex},kl(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return i.createVNode(i.resolveComponent("grid-container"),{layout:e.model.grid},kl(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(r[t.cssVarName("form-collapse-pane-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-collapse-pane-height")]=e.model.height),{ns:t,style:r,renderContainer:n}},render(){var r,n;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((n=(r=this.$slots).default)==null?void 0:n.call(r))||[],t=e[e.length-1];return t&&(t.props=i.mergeProps(t.props||{},{class:this.ns.e("last-child")})),i.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),_y={install(e){_gct.register.formItem.register("collapse-pane",()=>new ky),e.component(_l.name,_l)}};class Ty{constructor(){q(this,"component","gct-form-collapse")}createController(t,r){return w.useFormItemController(()=>new w.FormCollapseController(t,r))}}const Tl=i.defineComponent({name:"GctFormCollapse",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){var u;const t=w.useNamespace("form-collapse"),r=i.ref([0]),n={};e.model.width&&(n[t.cssVarName("form-collapse-width")]=e.model.width),e.model.height&&(n[t.cssVarName("form-collapse-height")]=e.model.height);const o=i.ref([]);o.value=((u=e.model.children)==null?void 0:u.map(l=>l.name))||[];const a=i.computed(()=>e.model.expandIconPosition==="left"?"left":"right");return{ns:t,keys:r,style:n,activeKeys:o,expandIconPosition:a}},render(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return i.createVNode(De.Collapse,{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1),this.ns.m("icon-"+(this.model.expandIconStyle||"up-down"))],style:this.style,accordion:this.model.accordion,expandIconPosition:this.expandIconPosition,activeKey:this.activeKeys,"onUpdate:activeKey":n=>this.activeKeys=n},{default:()=>{var n;return[(n=this.model.children)==null?void 0:n.map((o,a)=>{if(e[a].props.c.state.visible===!1)return;const l=o.collapsible!==!1?void 0:"disabled";return i.createVNode(De.Collapse.Panel,{key:o.name,header:o.title,collapsible:l},{default:()=>[e[a]]})})]}})}}),Ny={install(e){_gct.register.formItem.register("collapse",()=>new Ty),e.component(Tl.name,Tl)}};class Ay{constructor(){q(this,"component","gct-form-group")}createController(t,r){return w.useFormItemController(()=>new w.FormGroupController(t,r))}}function Xn(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Nl=i.defineComponent({name:"GctFormGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form-group"),r=i.ref([0]);function n(a){if(e.model.layout==="flex")return i.createVNode(i.resolveComponent("flex-container"),{layout:e.model.flex},Xn(a)?a:{default:()=>[a]});if(e.model.layout==="grid")return i.createVNode(i.resolveComponent("grid-container"),{layout:e.model.grid},Xn(a)?a:{default:()=>[a]});console.error("不支持的layout类型"+e.model.layout)}const o={};return e.model.width&&(o[t.cssVarName("form-group-width")]=e.model.width),e.model.height&&(o[t.cssVarName("form-group-height")]=e.model.height),{ns:t,keys:r,style:o,renderContainer:n}},render(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];if(this.model.isCollapse){let n;return i.createVNode(i.resolveComponent("a-collapse"),{activeKey:this.keys,"onUpdate:activeKey":o=>this.keys=o,class:[this.ns.b(),this.ns.is("hidden-header",this.model.showHeader===!1),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style,ghost:!0},{default:()=>[i.createVNode(i.resolveComponent("a-collapse-panel"),{key:"0",header:this.model.title},Xn(n=this.renderContainer(e))?n:{default:()=>[n]})]})}return i.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden-header",this.model.showHeader===!1),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.model.showHeader===!1?i.createVNode("div",{class:this.ns.e("title")},[this.model.title]):null,i.createVNode("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),Ry={install(e){_gct.register.formItem.register("container",()=>new Ay),e.component(Nl.name,Nl)}};class Py{constructor(){q(this,"component","gct-form-tab")}createController(t,r){return w.useFormItemController(()=>new w.FormTabController(t,r))}}const Al=i.defineComponent({name:"GctFormTab",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("form-tab"),r={};return e.model.width&&(r[t.cssVarName("form-tab-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-tab-height")]=e.model.height),{ns:t,style:r}},render(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return i.createVNode(i.resolveComponent("a-tabs"),{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1),this.ns.m(this.model.navPosition||"left")],style:this.style},{default:()=>{var n;return[(n=this.model.children)==null?void 0:n.map((o,a)=>i.createVNode(i.resolveComponent("a-tab-pane"),{key:o.name,tab:o.title},{default:()=>[e[a]]}))]}})}}),jy={install(e){_gct.register.formItem.register("tab",()=>new Py),e.component(Al.name,Al)}};class Iy{constructor(){q(this,"component","gct-form-tab-pane")}createController(t,r){return w.useFormItemController(()=>new w.FormTabPaneController(t,r))}}function Rl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Pl=i.defineComponent({name:"GctFormTabPane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("form-tab-pane"),r={};function n(o){if(e.model.layout==="flex")return i.createVNode(i.resolveComponent("flex-container"),{layout:e.model.flex},Rl(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return i.createVNode(i.resolveComponent("grid-container"),{layout:e.model.grid},Rl(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(r[t.cssVarName("form-tab-pane-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-tab-pane-height")]=e.model.height),{ns:t,style:r,renderContainer:n}},render(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return i.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),Vy={install(e){_gct.register.formItem.register("tab-pane",()=>new Iy),e.component(Pl.name,Pl)}};class $y{constructor(){q(this,"component","gct-form-title-group")}createController(t,r){return w.useFormItemController(()=>new w.FormGroupController(t,r))}}function jl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Il=i.defineComponent({name:"GctFormTitleGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form-title-group"),r=i.ref([0]);function n(a){if(e.model.layout==="flex")return i.createVNode(i.resolveComponent("flex-container"),{layout:e.model.flex},jl(a)?a:{default:()=>[a]});if(e.model.layout==="grid")return i.createVNode(i.resolveComponent("grid-container"),{layout:e.model.grid},jl(a)?a:{default:()=>[a]});console.error("不支持的layout类型"+e.model.layout)}const o={};return e.model.width&&(o[t.cssVarName("form-title-group-width")]=e.model.width),e.model.height&&(o[t.cssVarName("form-title-group-height")]=e.model.height),{ns:t,keys:r,style:o,renderContainer:n}},render(){var t,r;if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return i.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[i.createVNode("div",{class:this.ns.e("title")},[this.model.title]),i.createVNode("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),By={install(e){_gct.register.formItem.register(w.FormContainerType.FORM_TITLE_GROUP,()=>new $y),e.component(Il.name,Il)}},Fy={install(e){_gct.register.formItem.register("item",()=>new xy),_gct.register.formItem.register("hidden",()=>new Ey),e.use(_y),e.use(Ny),e.use(Ry),e.use(jy),e.use(Vy),e.use(By),e.component(El.name,El),e.component(xl.name,xl)}},My=(e,t)=>(e.install=r=>{const n=e.name||e.displayName;n&&(r.component(n,e),t&&(r.config.globalProperties[t]=e))},e),qy={install(e){e.use(Cy),e.use(wy),e.use(Fy),e.component(Jn.name,Jn),e.component(sa.name,sa),e.component(Zn.name,Zn),e.component(ca.name,ca),e.component(da.name,da)}};exports.CodeEditor=Jn;exports.default=qy;exports.withInstall=My;
11
+ `},aa=Wu(Ju)(Rl),Zu={config:Yu},Qu=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(i,u){return u(i)},o)}};function jl(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],jl(e[r],t[r]))}),ta(ta({},e),t)}var ec={type:"cancelation",msg:"operation is manually canceled"};function Ir(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o(ec):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var tc=Uu.create({config:zu,isInitialized:!1,resolve:null,reject:null,monaco:null}),Il=wu(tc,2),qt=Il[0],Cr=Il[1];function rc(e){var t=Zu.config(e),r=t.monaco,n=Cu(t,["monaco"]);Cr(function(o){return{config:jl(o.config,n),monaco:r}})}function nc(){var e=qt(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(Cr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Ir(Vr);if(window.monaco&&window.monaco.editor)return Vl(window.monaco),e.resolve(window.monaco),Ir(Vr);Qu(oc,ic)(lc)}return Ir(Vr)}function oc(e){return document.body.appendChild(e)}function ac(e){var t=document.createElement("script");return e&&(t.src=e),t}function ic(e){var t=qt(function(n){var o=n.config,i=n.reject;return{config:o,reject:i}}),r=ac("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function lc(){var e=qt(function(r){var n=r.config,o=r.resolve,i=r.reject;return{config:n,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){Vl(r),e.resolve(r)},function(r){e.reject(r)})}function Vl(e){qt().monaco||Cr({monaco:e})}function sc(){return qt(function(e){var t=e.monaco;return t})}var Vr=new Promise(function(e,t){return Cr({resolve:e,reject:t})}),uc={config:rc,init:nc,__getMonacoInstance:sc};const Yn=a.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=a.computed({get(){return e.value||""},set(u){t("update:value",u)}}),o=a.ref(null);let i=null;return a.onMounted(()=>{uc.init().then(u=>{o.value&&(i=u.editor.create(o.value,w.deepMerge({value:n.value,language:e.language,automaticLayout:!0,minimap:{enabled:!1}},e.config)),i.onDidBlurEditorText(()=>{n.value=i.getValue()}))})}),a.onUnmounted(()=>{i?.dispose()}),{ns:r,el:o}},render(){return a.createVNode("div",{ref:"el",class:this.ns.b()},null)}}),Xn=a.defineComponent({name:"FlexItem",props:{layout:Object},setup(e){return{ns:w.useNamespace("flex-item"),getStyle:()=>{const n={};if(e.layout){const{order:o,alignSelf:i,flexBasis:u,flexGrow:l,flexShrink:s}=e.layout;o!=null&&(n.order=o),i!=null&&(n["align-self"]=i),u!=null&&(n["flex-basis"]=u),l!=null&&(n["flex-grow"]=l),s!=null&&(n["flex-shrink"]=s)}return n}}},render(){return a.createVNode("div",{class:this.ns.b(),style:this.getStyle()},[this.$slots.default?.()])}});function cc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const ia=a.defineComponent({name:"FlexContainer",props:{layout:Object},setup(e){return{ns:w.useNamespace("flex-container"),getStyle:()=>{const o={};if(e.layout){const{alignContent:i,alignItems:u,flexDirection:l,flexWrap:s,justifyContent:d}=e.layout;i!=null&&(o.alignContent=i),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 i={};if(o){const{width:u,height:l}=o;u!=null&&(i.width=u),l!=null&&(i.height=l)}return i}}},render(){let e=this.$slots.default?.()||[];return e.length>0&&(e=e[0].children||[]),a.createVNode("div",{class:this.ns.b(),style:this.getStyle()},[e.map(t=>{if(!t)return null;const r=t.props.model.flexItem;return a.createVNode(Xn,{layout:r,style:this.getItemStyle(t.props.model)},cc(t)?t:{default:()=>[t]})})])}});function la(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const sa=a.defineComponent({name:"GridContainer",props:{layout:Object},setup(){return{ns:w.useNamespace("grid-container")}},render(){let e;const t=this.layout||{};let r=this.$slots.default?.()||[];return r.length>0&&(r=r[0].children||[]),a.createVNode(a.resolveComponent("a-row"),{class:this.ns.b(),wrap:!0,gutter:t.gutter},la(e=r.map(n=>{if(!n)return null;const o=n.props.model.gridItem;return a.createVNode(a.resolveComponent("a-col"),{span:o?o.span??24:24,offset:o?o.offset??0:0},la(n)?n:{default:()=>[n]})}))?e:{default:()=>[e]})}}),ua=a.defineComponent({name:"ViewContainer",props:{context:{type:Object},params:{type:Object},modal:{type:Object,required:!0}},setup(){return{ns:w.useNamespace("view-container")}},render(){return a.createVNode("div",{class:this.ns.b()},[this.$slots.header?a.createVNode("div",{class:this.ns.b("header")},[this.$slots.header()]):null,a.createVNode("div",{class:this.ns.b("content")},[this.$slots.default?.()]),this.$slots.footer?a.createVNode("div",{class:this.ns.b("footer")},[this.$slots.footer()]):null])}}),dc=a.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 a.createVNode(a.resolveComponent("length-unit-editor"),a.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 fc{component="gct-form-length-unit"}const pc=w.widthEditorInstall(w.EditorTypeOld.LENGTH_UNIT,()=>new fc,dc),$l=a.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 a.createVNode(a.resolveComponent("color-picker"),a.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 Bl{component="gct-form-color"}const hc=w.widthEditorInstall(w.EditorType.COLOR,()=>new Bl,$l),vc=w.widthEditorInstall(w.EditorTypeOld.COLOR,()=>new Bl,$l);class gc{component="gct-form-check-switch"}const mc=a.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?a.createVNode("div",{class:[this.ns.b(),this.ns.m("switch"),this.ns.is("readonly",this.model.readonly)]},[a.createVNode(a.resolveComponent("a-switch"),a.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)]):a.createVNode(a.resolveComponent("a-checkbox"),a.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]})}}),yc=w.widthEditorInstall(w.EditorTypeOld.CHECK_SWITCH,()=>new gc,mc);class bc{component="gct-form-i18n"}const Cc=a.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=a.computed({get:()=>r?r.value:"",set:i=>{r&&(r.value=i)}});return{ns:e,val:n,i18nConfigValue:o}},render(){return a.createVNode(a.resolveComponent("i18n-select-input"),a.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)}}),wc=w.widthEditorInstall(w.EditorTypeOld.I18N,()=>new bc,Cc),Sc=a.defineComponent({name:"GctFormIconSelect",props:{value:{type:Object},model:{type:Object,required:!0}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("gct-form-icon-select"),n=a.ref(e.value),o=a.ref(n.value?.icon||e.model.defaultIcon),i=a.ref(n.value?.color||e.model.defaultColor),u=a.ref(n.value?.background||e.model.defaultBackground);a.watch(()=>e.value,s=>{n.value=s,s&&(o.value=s.icon,i.value=s.color)}),a.watch([o,i,u],()=>{n.value={icon:o.value,color:i.value},t("update:value",n.value)});const l=a.computed(()=>{if(e.model.size)return{"--box-size":e.model.size+"px"}});return{ns:r,icon:o,color:i,background:u,nextPickerStyle:l}},render(){return a.createVNode("div",{class:this.ns.b()},[a.createVNode(a.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?a.createVNode("span",{class:this.ns.e("title")},[this.model.label]):null])}});let Oc=class{component="gct-form-icon-select"};const xc=w.widthEditorInstall(w.EditorTypeOld.ICON_SELECT,()=>new Oc,Sc);class Fl{component="gct-form-number"}const Ml=a.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 a.createVNode(a.resolveComponent("a-input-number"),a.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)}}),Ec=w.widthEditorInstall(w.EditorType.NUMBER,()=>new Fl,Ml),kc=w.widthEditorInstall(w.EditorTypeOld.NUMBER,()=>new Fl,Ml);class _c{component="gct-form-picker"}const Tc=a.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=a.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=a.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)}}),i=()=>e.c.loadDictionary();return o.value!=null&&e.c.loadDictionary(),{ns:r,val:o,nameVal:n,loadOptions:i,onChange:(l,s)=>{n.value=s.label}}},render(){return a.createVNode(a.resolveComponent("a-select"),a.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)}}),Nc=w.widthEditorInstall(w.EditorTypeOld.PICKER,()=>new _c,Tc);class Ac{component="gct-form-select"}const Pc=a.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=a.computed(()=>e.c.state.options&&e.c.state.options.length>0?e.c.state.options:[]);return{ns:t,val:r,options:n}},render(){return a.createVNode(a.resolveComponent("a-select"),a.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)}}),Rc=w.widthEditorInstall(w.EditorTypeOld.SELECT,()=>new Ac,Pc);class jc{component="gct-form-Modal-select"}const Ic=a.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=a.ref("1"),r=w.useGctFormValue(),n=a.computed({get(){return r.value||void 0},set(i){r.value=i}}),o=a.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 a.createVNode(a.resolveComponent("a-input-group"),{class:this.ns.b()},{default:()=>[a.createVNode(a.resolveComponent("a-form-item-rest"),null,{default:()=>[a.createVNode(a.resolveComponent("a-select"),a.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)]}),a.createVNode(a.resolveComponent("a-select"),a.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)]})}}),Vc=w.widthEditorInstall(w.EditorTypeOld.MODEL_SELECT,()=>new jc,Ic);class $c{component="gct-form-field-select"}const Bc={class:"gct-box"},Fc=a.defineComponent({__name:"gct-model-select",props:{value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,n=t,o=a.computed({get(){return r.value},set(d){n("update:value",d)}}),i=a.ref([{key:0,title:"公司名称"},{key:1,title:"ID"},{key:2,title:"创建人"},{key:3,title:"创建部门"},{key:4,title:"修改时间"},{key:5,title:"修改人"},{key:6,title:"修改部门"}]),u=a.ref([]),l=(d,c)=>{console.log()};function s(){o.value=!1}return(d,c)=>{const f=a.resolveComponent("a-transfer"),p=a.resolveComponent("a-modal");return a.openBlock(),a.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:a.withCtx(()=>[c[2]||(c[2]=a.createElementVNode("div",null,"所属模型:公司",-1)),a.createElementVNode("div",Bc,[a.createVNode(f,{"target-keys":u.value,"onUpdate:targetKeys":c[0]||(c[0]=h=>u.value=h),locale:{itemUnit:"项已选",itemsUnit:"项未选",searchPlaceholder:"请输入搜索内容"},"data-source":i.value,"show-search":"","filter-option":l,render:h=>h.title},null,8,["target-keys","data-source","render"])])]),_:1,__:[2]},8,["visible"])}}}),Mc=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},ca=Mc(Fc,[["__scopeId","data-v-bff0c27a"]]),qc=a.defineComponent({name:"GctFormFieldSelect",components:{modal:ca},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=a.ref(!1);return{ns:e,visible:t}},render(){return a.createVNode("div",null,[a.createVNode(a.resolveComponent("a-button"),{onClick:()=>this.visible=!0,block:!0},{default:()=>[a.createTextVNode("选择模型字段")]}),a.createVNode(ca,{value:this.visible,"onUpdate:value":e=>this.visible=e},null)])}}),Dc=w.widthEditorInstall(w.EditorTypeOld.Field_SELECT,()=>new $c,qc);class Gc{component="gct-form-span"}const Lc=a.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}=a.toRefs(e);function i(){const{isSuccessRef:l}=w.useCopyToClipboard(e.value);l.value&&qe.message.success(_gct.t("sys.copySuccess"))}o.value.loadDictionary();const u=a.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:i}},render(){return a.createVNode("div",{class:this.ns.b()},[a.createVNode("span",{class:this.ns.e("info")},[this.val]),this.model.copy&&a.createVNode("span",{class:this.ns.e("copy")},[a.createVNode("i",{class:"iconfont icon-fuzhi primary-gct",onClick:this.handleClipboardKey},null)])])}}),Hc=w.widthEditorInstall(w.EditorTypeOld.SPAN,()=>new Gc,Lc);class ql{component="gct-form-switch"}const Dl=a.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 a.createVNode("div",{class:this.ns.b()},[a.createVNode(a.resolveComponent("a-switch"),a.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)])}}),Uc=w.widthEditorInstall(w.EditorType.SWITCH,()=>new ql,Dl),zc=w.widthEditorInstall(w.EditorTypeOld.SWITCH,()=>new ql,Dl);class Gl{component="gct-form-text"}const Ll=a.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 a.createVNode(a.resolveComponent("a-input"),a.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)}}),Wc=w.widthEditorInstall(w.EditorType.TEXT,()=>new Gl,Ll),Kc=w.widthEditorInstall(w.EditorTypeOld.TEXT,()=>new Gl,Ll);class Yc{component="gct-form-textarea"}const Xc=a.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 a.createVNode(a.resolveComponent("a-textarea"),a.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)}}),Jc=w.widthEditorInstall(w.EditorTypeOld.TEXTAREA,()=>new Yc,Xc);function Zc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Hl=a.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")),a.createVNode(qe.RadioGroup,a.mergeProps({value:this.val,"onUpdate:value":r=>this.val=r,size:"small","button-style":"solid"},e),Zc(t=this.c.state.options.map(r=>a.createVNode(qe.RadioButton,{key:r.value,value:r.value},{default:()=>[r.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),a.createVNode(qe.RadioGroup,a.mergeProps({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let Ul=class{component="gct-form-radio"};const Qc=w.widthEditorInstall(w.EditorType.RADIO,()=>new Ul,Hl),ed=w.widthEditorInstall(w.EditorTypeOld.RADIO,()=>new Ul,Hl),td=a.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 a.createVNode("div",{class:this.ns.b()},[this.model.icon?a.createVNode("span",{class:this.ns.e("icon")},[a.createVNode("i",{class:`iconfont ${this.model.icon}`},null)]):null,a.createVNode("span",{class:this.ns.e("content")},[this.val||this.model.content])])}});let rd=class{component="gct-form-info"};const nd=w.widthEditorInstall(w.EditorTypeOld.INFO,()=>new rd,td),zl=a.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=a.computed(()=>n.value),i=a.computed(()=>vt.cloneDeep(e.c.state.options));return{ns:r,checked:o,onChange:l=>{i.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:i}},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 a.createVNode(qe.CheckboxGroup,a.mergeProps({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class Wl{component="gct-form-checkbox"}const od=w.widthEditorInstall(w.EditorType.CHECKBOX,()=>new Wl,zl),ad=w.widthEditorInstall(w.EditorTypeOld.CHECKBOX,()=>new Wl,zl);var Kl=require("../internals/global-this"),Yl=require("../internals/function-call"),co=require("../internals/array-buffer-view-core"),id=require("../internals/length-of-array-like"),ld=require("../internals/to-offset"),sd=require("../internals/to-object"),Xl=require("../internals/fails"),ud=Kl.RangeError,Jn=Kl.Int8Array,da=Jn&&Jn.prototype,Jl=da&&da.set,cd=co.aTypedArray,dd=co.exportTypedArrayMethod,Zn=!Xl(function(){var e=new Uint8ClampedArray(2);return Yl(Jl,e,{length:1,0:3},1),e[1]!==3}),fd=Zn&&co.NATIVE_ARRAY_BUFFER_VIEWS&&Xl(function(){var e=new Jn(2);return e.set(1),e.set("2",1),e[0]!==0||e[1]!==2});dd("set",function(t){cd(this);var r=ld(arguments.length>1?arguments[1]:void 0,1),n=sd(t);if(Zn)return Yl(Jl,this,n,r);var o=this.length,i=id(n),u=0;if(i+r>o)throw new ud("Wrong length");for(;u<i;)this[r+u]=n[u++]},!Zn||fd);function Zl(e){return a.getCurrentScope()?(a.onScopeDispose(e),!0):!1}const wr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const pd=Object.prototype.toString,hd=e=>pd.call(e)==="[object Object]",xe=()=>{},vd=gd();function gd(){var e,t;return wr&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function md(...e){if(e.length!==1)return a.toRef(...e);const t=e[0];return typeof t=="function"?a.readonly(a.customRef(()=>({get:t,set:xe}))):a.ref(t)}function Ql(e,t){function r(...n){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(i)})}return r}const es=e=>e();function yd(e,t={}){let r,n,o=xe;const i=s=>{clearTimeout(s),o(),o=xe};let u;return s=>{const d=a.toValue(e),c=a.toValue(t.maxWait);return r&&i(r),d<=0||c!==void 0&&c<=0?(n&&(i(n),n=void 0),Promise.resolve(s())):new Promise((f,p)=>{o=t.rejectOnCancel?p:f,u=s,c&&!n&&(n=setTimeout(()=>{r&&i(r),n=void 0,f(u())},c)),r=setTimeout(()=>{n&&i(n),n=void 0,f(s())},d)})}}function bd(e=es,t={}){const{initialState:r="active"}=t,n=md(r==="active");function o(){n.value=!1}function i(){n.value=!0}const u=(...l)=>{n.value&&e(...l)};return{isActive:a.readonly(n),pause:o,resume:i,eventFilter:u}}function Cd(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 $r(e){return Array.isArray(e)?e:[e]}function wd(e){return a.getCurrentInstance()}function Ee(e,t=200,r={}){return Ql(yd(t,r),e)}function Sd(e,t,r={}){const{eventFilter:n=es,...o}=r;return a.watch(e,Ql(n,t),o)}function Od(e,t,r={}){const{eventFilter:n,initialState:o="active",...i}=r,{eventFilter:u,pause:l,resume:s,isActive:d}=bd(n,{initialState:o});return{stop:Sd(e,t,{...i,eventFilter:u}),pause:l,resume:s,isActive:d}}function ze(e,t=!0,r){wd()?a.onMounted(e,r):t?e():a.nextTick(e)}function xd(e,t,r={}){const{immediate:n=!0,immediateCallback:o=!1}=r,i=a.shallowRef(!1);let u;function l(){u&&(clearTimeout(u),u=void 0)}function s(){i.value=!1,l()}function d(...c){o&&e(),l(),i.value=!0,u=setTimeout(()=>{i.value=!1,u=void 0,e(...c)},a.toValue(t))}return n&&(i.value=!0,wr&&d()),Zl(s),{isPending:a.shallowReadonly(i),start:d,stop:s}}function Ed(e,t,r){return a.watch(e,t,{...r,immediate:!0})}function X(e,t,r){const n=a.watch(e,(o,i,u)=>{o&&(r?.once&&a.nextTick(()=>n()),t(o,i,u))},{...r,once:!1});return n}const It=wr?window:void 0,ts=wr?window.navigator:void 0;function kt(e){var t;const r=a.toValue(e);return(t=r?.$el)!=null?t:r}function De(...e){const t=[],r=()=>{t.forEach(l=>l()),t.length=0},n=(l,s,d,c)=>(l.addEventListener(s,d,c),()=>l.removeEventListener(s,d,c)),o=a.computed(()=>{const l=$r(a.toValue(e[0])).filter(s=>s!=null);return l.every(s=>typeof s!="string")?l:void 0}),i=Ed(()=>{var l,s;return[(s=(l=o.value)==null?void 0:l.map(d=>kt(d)))!=null?s:[It].filter(d=>d!=null),$r(a.toValue(o.value?e[1]:e[0])),$r(a.unref(o.value?e[2]:e[1])),a.toValue(o.value?e[3]:e[2])]},([l,s,d,c])=>{if(r(),!l?.length||!s?.length||!d?.length)return;const f=hd(c)?{...c}:c;t.push(...l.flatMap(p=>s.flatMap(h=>d.map(y=>n(p,h,y,f)))))},{flush:"post"}),u=()=>{i(),r()};return Zl(r),u}let fa=!1;function kd(e,t,r={}){const{window:n=It,ignore:o=[],capture:i=!0,detectIframe:u=!1,controls:l=!1}=r;if(!n)return l?{stop:xe,cancel:xe,trigger:xe}:xe;if(vd&&!fa){fa=!0;const v={passive:!0};Array.from(n.document.body.children).forEach(g=>g.addEventListener("click",xe,v)),n.document.documentElement.addEventListener("click",xe,v)}let s=!0;const d=v=>a.toValue(o).some(g=>{if(typeof g=="string")return Array.from(n.document.querySelectorAll(g)).some(m=>m===v.target||v.composedPath().includes(m));{const m=kt(g);return m&&(v.target===m||v.composedPath().includes(m))}});function c(v){const g=a.toValue(v);return g&&g.$.subTree.shapeFlag===16}function f(v,g){const m=a.toValue(v),C=m.$.subTree&&m.$.subTree.children;return C==null||!Array.isArray(C)?!1:C.some(O=>O.el===g.target||g.composedPath().includes(O.el))}const p=v=>{const g=kt(e);if(v.target!=null&&!(!(g instanceof Element)&&c(e)&&f(e,v))&&!(!g||g===v.target||v.composedPath().includes(g))){if("detail"in v&&v.detail===0&&(s=!d(v)),!s){s=!0;return}t(v)}};let h=!1;const y=[De(n,"click",v=>{h||(h=!0,setTimeout(()=>{h=!1},0),p(v))},{passive:!0,capture:i}),De(n,"pointerdown",v=>{const g=kt(e);s=!d(v)&&!!(g&&!v.composedPath().includes(g))},{passive:!0}),u&&De(n,"blur",v=>{setTimeout(()=>{var g;const m=kt(e);((g=n.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!m?.contains(n.document.activeElement)&&t(v)},0)},{passive:!0})].filter(Boolean),b=()=>y.forEach(v=>v());return l?{stop:b,cancel:()=>{s=!1},trigger:v=>{s=!0,p(v),s=!1}}:b}function _d(){const e=a.shallowRef(!1),t=a.getCurrentInstance();return t&&a.onMounted(()=>{e.value=!0},t),e}function rs(e){const t=_d();return a.computed(()=>(t.value,!!e()))}function pa(e,t={}){const{controls:r=!1,navigator:n=ts}=t,o=rs(()=>n&&"permissions"in n),i=a.shallowRef(),u=typeof e=="string"?{name:e}:e,l=a.shallowRef(),s=()=>{var c,f;l.value=(f=(c=i.value)==null?void 0:c.state)!=null?f:"prompt"};De(i,"change",s,{passive:!0});const d=Cd(async()=>{if(o.value){if(!i.value)try{i.value=await n.permissions.query(u)}catch{i.value=void 0}finally{s()}if(r)return a.toRaw(i.value)}});return d(),r?{state:l,isSupported:o,query:d}:l}function Td(e={}){const{navigator:t=ts,read:r=!1,source:n,copiedDuring:o=1500,legacy:i=!1}=e,u=rs(()=>t&&"clipboard"in t),l=pa("clipboard-read"),s=pa("clipboard-write"),d=a.computed(()=>u.value||i),c=a.shallowRef(""),f=a.shallowRef(!1),p=xd(()=>f.value=!1,o,{immediate:!1});async function h(){let m=!(u.value&&g(l.value));if(!m)try{c.value=await t.clipboard.readText()}catch{m=!0}m&&(c.value=v())}d.value&&r&&De(["copy","cut"],h,{passive:!0});async function y(m=a.toValue(n)){if(d.value&&m!=null){let C=!(u.value&&g(s.value));if(!C)try{await t.clipboard.writeText(m)}catch{C=!0}C&&b(m),c.value=m,f.value=!0,p.start()}}function b(m){const C=document.createElement("textarea");C.value=m??"",C.style.position="absolute",C.style.opacity="0",document.body.appendChild(C),C.select(),document.execCommand("copy"),C.remove()}function v(){var m,C,O;return(O=(C=(m=document?.getSelection)==null?void 0:m.call(document))==null?void 0:C.toString())!=null?O:""}function g(m){return m==="granted"||m==="prompt"}return{isSupported:d,text:c,copied:f,copy:y}}const Xt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Jt="__vueuse_ssr_handlers__",Nd=Ad();function Ad(){return Jt in Xt||(Xt[Jt]=Xt[Jt]||{}),Xt[Jt]}function Pd(e,t){return Nd[e]||t}function Rd(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 jd={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()}},ha="vueuse-storage";function Id(e,t,r,n={}){var o;const{flush:i="pre",deep:u=!0,listenToStorageChanges:l=!0,writeDefaults:s=!0,mergeDefaults:d=!1,shallow:c,window:f=It,eventFilter:p,onError:h=_=>{console.error(_)},initOnMounted:y}=n,b=(c?a.shallowRef:a.ref)(typeof t=="function"?t():t),v=a.computed(()=>a.toValue(e));if(!r)try{r=Pd("getDefaultStorage",()=>{var _;return(_=It)==null?void 0:_.localStorage})()}catch(_){h(_)}if(!r)return b;const g=a.toValue(t),m=Rd(g),C=(o=n.serializer)!=null?o:jd[m],{pause:O,resume:k}=Od(b,_=>F(_),{flush:i,deep:u,eventFilter:p});a.watch(v,()=>T(),{flush:i});let E=!1;const R=_=>{y&&!E||T(_)},B=_=>{y&&!E||j(_)};f&&l&&(r instanceof Storage?De(f,"storage",R,{passive:!0}):De(f,ha,B)),y?ze(()=>{E=!0,T()}):T();function I(_,A){if(f){const $={key:v.value,oldValue:_,newValue:A,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent("storage",$):new CustomEvent(ha,{detail:$}))}}function F(_){try{const A=r.getItem(v.value);if(_==null)I(A,null),r.removeItem(v.value);else{const $=C.write(_);A!==$&&(r.setItem(v.value,$),I(A,$))}}catch(A){h(A)}}function S(_){const A=_?_.newValue:r.getItem(v.value);if(A==null)return s&&g!=null&&r.setItem(v.value,C.write(g)),g;if(!_&&d){const $=C.read(A);return typeof d=="function"?d($,g):m==="object"&&!Array.isArray($)?{...g,...$}:$}else return typeof A!="string"?A:C.read(A)}function T(_){if(!(_&&_.storageArea!==r)){if(_&&_.key==null){b.value=g;return}if(!(_&&_.key!==v.value)){O();try{const A=C.write(b.value);(_===void 0||_?.newValue!==A)&&(b.value=S(_))}catch(A){h(A)}finally{_?a.nextTick(k):k()}}}}function j(_){T(_.detail)}return b}function fo(e,t,r={}){const{window:n=It}=r;return Id(e,t,n?.localStorage,r)}function lr(e){"@babel/helpers - typeof";return lr=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},lr(e)}var Vd=/^\s+/,$d=/\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=Bd(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,i,u,l;return r=t.r/255,n=t.g/255,o=t.b/255,r<=.03928?i=r/12.92:i=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*i+.7152*u+.0722*l},setAlpha:function(t){return this._a=ns(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ga(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString: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.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+o+"%)":"hsva("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=va(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=va(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 ma(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return Dd(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(D(this._r,255)*100)+"%",g:Math.round(D(this._g,255)*100)+"%",b:Math.round(D(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(D(this._r,255)*100)+"%, "+Math.round(D(this._g,255)*100)+"%, "+Math.round(D(this._b,255)*100)+"%)":"rgba("+Math.round(D(this._r,255)*100)+"%, "+Math.round(D(this._g,255)*100)+"%, "+Math.round(D(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Qd[ma(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+ya(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var i=x(t);n="#"+ya(i._r,i._g,i._b,i._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,i=!r&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?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(Ud,arguments)},brighten:function(){return this._applyModification(zd,arguments)},darken:function(){return this._applyModification(Wd,arguments)},desaturate:function(){return this._applyModification(Gd,arguments)},saturate:function(){return this._applyModification(Ld,arguments)},greyscale:function(){return this._applyModification(Hd,arguments)},spin:function(){return this._applyModification(Kd,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(Jd,arguments)},complement:function(){return this._applyCombination(Yd,arguments)},monochromatic:function(){return this._applyCombination(Zd,arguments)},splitcomplement:function(){return this._applyCombination(Xd,arguments)},triad:function(){return this._applyCombination(ba,[3])},tetrad:function(){return this._applyCombination(ba,[4])}};x.fromRatio=function(e,t){if(lr(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=_t(e[n]));e=r}return x(e,t)};function Bd(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,i=null,u=!1,l=!1;return typeof e=="string"&&(e=nf(e)),lr(e)=="object"&&(Se(e.r)&&Se(e.g)&&Se(e.b)?(t=Fd(e.r,e.g,e.b),u=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Se(e.h)&&Se(e.s)&&Se(e.v)?(n=_t(e.s),o=_t(e.v),t=qd(e.h,n,o),u=!0,l="hsv"):Se(e.h)&&Se(e.s)&&Se(e.l)&&(n=_t(e.s),i=_t(e.l),t=Md(e.h,n,i),u=!0,l="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=ns(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 Fd(e,t,r){return{r:D(e,255)*255,g:D(t,255)*255,b:D(r,255)*255}}function va(e,t,r){e=D(e,255),t=D(t,255),r=D(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i,u,l=(n+o)/2;if(n==o)i=u=0;else{var s=n-o;switch(u=l>.5?s/(2-n-o):s/(n+o),n){case e:i=(t-r)/s+(t<r?6:0);break;case t:i=(r-e)/s+2;break;case r:i=(e-t)/s+4;break}i/=6}return{h:i,s:u,l}}function Md(e,t,r){var n,o,i;e=D(e,360),t=D(t,100),r=D(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=i=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),i=u(s,l,e-1/3)}return{r:n*255,g:o*255,b:i*255}}function ga(e,t,r){e=D(e,255),t=D(t,255),r=D(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i,u,l=n,s=n-o;if(u=n===0?0:s/n,n==o)i=0;else{switch(n){case e:i=(t-r)/s+(t<r?6:0);break;case t:i=(r-e)/s+2;break;case r:i=(e-t)/s+4;break}i/=6}return{h:i,s:u,v:l}}function qd(e,t,r){e=D(e,360)*6,t=D(t,100),r=D(r,100);var n=Math.floor(e),o=e-n,i=r*(1-t),u=r*(1-o*t),l=r*(1-(1-o)*t),s=n%6,d=[r,u,i,i,l,r][s],c=[l,r,r,u,i,i][s],f=[i,i,l,r,r,u][s];return{r:d*255,g:c*255,b:f*255}}function ma(e,t,r,n){var o=[he(Math.round(e).toString(16)),he(Math.round(t).toString(16)),he(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 Dd(e,t,r,n,o){var i=[he(Math.round(e).toString(16)),he(Math.round(t).toString(16)),he(Math.round(r).toString(16)),he(os(n))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function ya(e,t,r,n){var o=[he(os(n)),he(Math.round(e).toString(16)),he(Math.round(t).toString(16)),he(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 Gd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s-=t/100,r.s=Sr(r.s),x(r)}function Ld(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s+=t/100,r.s=Sr(r.s),x(r)}function Hd(e){return x(e).desaturate(100)}function Ud(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l+=t/100,r.l=Sr(r.l),x(r)}function zd(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 Wd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l-=t/100,r.l=Sr(r.l),x(r)}function Kd(e,t){var r=x(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,x(r)}function Yd(e){var t=x(e).toHsl();return t.h=(t.h+180)%360,x(t)}function ba(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,i=1;i<t;i++)n.push(x({h:(r.h+i*o)%360,s:r.s,l:r.l}));return n}function Xd(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 Jd(e,t,r){t=t||6,r=r||30;var n=x(e).toHsl(),o=360/r,i=[x(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(x(n));return i}function Zd(e,t){t=t||6;for(var r=x(e).toHsv(),n=r.h,o=r.s,i=r.v,u=[],l=1/t;t--;)u.push(x({h:n,s:o,v:i})),i=(i+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(),i=r/100,u={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+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,i;switch(i=!1,o=of(r),o.level+o.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i};x.mostReadable=function(e,t,r){var n=null,o=0,i,u,l,s;r=r||{},u=r.includeFallbackColors,l=r.level,s=r.size;for(var d=0;d<t.length;d++)i=x.readability(e,t[d]),i>o&&(o=i,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 Qn=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"},Qd=x.hexNames=ef(Qn);function ef(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function ns(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(e,t){tf(e)&&(e="100%");var r=rf(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 Sr(e){return Math.min(1,Math.max(0,e))}function ne(e){return parseInt(e,16)}function tf(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function rf(e){return typeof e=="string"&&e.indexOf("%")!=-1}function he(e){return e.length==1?"0"+e:""+e}function _t(e){return e<=1&&(e=e*100+"%"),e}function os(e){return Math.round(parseFloat(e)*255).toString(16)}function Ca(e){return ne(e)/255}var pe=(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 Se(e){return!!pe.CSS_UNIT.exec(e)}function nf(e){e=e.replace(Vd,"").replace($d,"").toLowerCase();var t=!1;if(Qn[e])e=Qn[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=pe.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=pe.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=pe.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=pe.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=pe.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=pe.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=pe.hex8.exec(e))?{r:ne(r[1]),g:ne(r[2]),b:ne(r[3]),a:Ca(r[4]),format:t?"name":"hex8"}:(r=pe.hex6.exec(e))?{r:ne(r[1]),g:ne(r[2]),b:ne(r[3]),format:t?"name":"hex"}:(r=pe.hex4.exec(e))?{r:ne(r[1]+""+r[1]),g:ne(r[2]+""+r[2]),b:ne(r[3]+""+r[3]),a:Ca(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=pe.hex3.exec(e))?{r:ne(r[1]+""+r[1]),g:ne(r[2]+""+r[2]),b:ne(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function of(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 wa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Zt={},Sa;function af(){if(Sa)return Zt;Sa=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),i=t.visit(r.style);return i&&(n+=" "+i),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,i=t.visit(n.length);return i&&(o+=" "+i),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(i,u){n+=t.visit(i),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(N){var V=new Error(r+": "+N);throw V.source=r,V}function o(){var N=i();return r.length>0&&n("Invalid input not EOF"),N}function i(){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(N,V,M){return s(V,function(Q){var ge=M();return ge&&($(t.comma)||n("Missing comma before color stops")),{type:N,orientation:ge,colorStops:O(k)}})}function s(N,V){var M=$(N);if(M){$(t.startCall)||n("Missing (");var Q=V(M);return $(t.endCall)||n("Missing )"),Q}}function d(){return c()||f()}function c(){return A("directional",t.sideOrCorner,1)}function f(){return A("angular",t.angleValue,1)}function p(){var N,V=h(),M;return V&&(N=[],N.push(V),M=r,$(t.comma)&&(V=h(),V?N.push(V):r=M)),N}function h(){var N=y()||b();if(N)N.at=g();else{var V=v();if(V){N=V;var M=g();M&&(N.at=M)}else{var Q=m();Q&&(N={type:"default-radial",at:Q})}}return N}function y(){var N=A("shape",/^(circle)/i,0);return N&&(N.style=_()||v()),N}function b(){var N=A("shape",/^(ellipse)/i,0);return N&&(N.style=T()||v()),N}function v(){return A("extent-keyword",t.extentKeywords,1)}function g(){if(A("position",/^at/,0)){var N=m();return N||n("Missing positioning value"),N}}function m(){var N=C();if(N.x||N.y)return{type:"position",value:N}}function C(){return{x:T(),y:T()}}function O(N){var V=N(),M=[];if(V)for(M.push(V);$(t.comma);)V=N(),V?M.push(V):n("One extra comma");return M}function k(){var N=E();return N||n("Expected color definition"),N.length=T(),N}function E(){return B()||F()||I()||R()}function R(){return A("literal",t.literalColor,0)}function B(){return A("hex",t.hexColor,1)}function I(){return s(t.rgbColor,function(){return{type:"rgb",value:O(S)}})}function F(){return s(t.rgbaColor,function(){return{type:"rgba",value:O(S)}})}function S(){return $(t.number)[1]}function T(){return A("%",t.percentageValue,1)||j()||_()}function j(){return A("position-keyword",t.positionKeywords,1)}function _(){return A("px",t.pixelValue,1)||A("em",t.emValue,1)}function A(N,V,M){var Q=$(V);if(Q)return{type:N,value:Q[M]}}function $(N){var V,M;return M=/^[\n\r\t\s]+/.exec(r),M&&K(M[0].length),V=N.exec(r),V&&K(V[0].length),V}function K(N){r=r.substr(N)}return function(N){return r=N.toString(),o()}})(),Zt.parse=e.parse,Zt.stringify=e.stringify,Zt}var Oa=af(),ee="top",ce="bottom",de="right",te="left",po="auto",Dt=[ee,ce,de,te],it="start",Vt="end",lf="clippingParents",as="viewport",Ct="popper",sf="reference",xa=Dt.reduce(function(e,t){return e.concat([t+"-"+it,t+"-"+Vt])},[]),is=[].concat(Dt,[po]).reduce(function(e,t){return e.concat([t,t+"-"+it,t+"-"+Vt])},[]),uf="beforeRead",cf="read",df="afterRead",ff="beforeMain",pf="main",hf="afterMain",vf="beforeWrite",gf="write",mf="afterWrite",yf=[uf,cf,df,ff,pf,hf,vf,gf,mf];function Ce(e){return e?(e.nodeName||"").toLowerCase():null}function oe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Le(e){var t=oe(e).Element;return e instanceof t||e instanceof Element}function se(e){var t=oe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ho(e){if(typeof ShadowRoot>"u")return!1;var t=oe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bf(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!se(i)||!Ce(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(u){var l=o[u];l===!1?i.removeAttribute(u):i.setAttribute(u,l===!0?"":l)}))})}function Cf(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],i=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},{});!se(o)||!Ce(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(s){o.removeAttribute(s)}))})}}const wf={name:"applyStyles",enabled:!0,phase:"write",fn:bf,effect:Cf,requires:["computeStyles"]};function be(e){return e.split("-")[0]}var Ge=Math.max,sr=Math.min,lt=Math.round;function eo(){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 ls(){return!/^((?!chrome|android).)*safari/i.test(eo())}function st(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&se(e)&&(o=e.offsetWidth>0&&lt(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&lt(n.height)/e.offsetHeight||1);var u=Le(e)?oe(e):window,l=u.visualViewport,s=!ls()&&r,d=(n.left+(s&&l?l.offsetLeft:0))/o,c=(n.top+(s&&l?l.offsetTop:0))/i,f=n.width/o,p=n.height/i;return{width:f,height:p,top:c,right:d+f,bottom:c+p,left:d,x:d,y:c}}function vo(e){var t=st(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 ss(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ho(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 oe(e).getComputedStyle(e)}function Sf(e){return["table","td","th"].indexOf(Ce(e))>=0}function Ve(e){return((Le(e)?e.ownerDocument:e.document)||window.document).documentElement}function Or(e){return Ce(e)==="html"?e:e.assignedSlot||e.parentNode||(ho(e)?e.host:null)||Ve(e)}function Ea(e){return!se(e)||_e(e).position==="fixed"?null:e.offsetParent}function Of(e){var t=/firefox/i.test(eo()),r=/Trident/i.test(eo());if(r&&se(e)){var n=_e(e);if(n.position==="fixed")return null}var o=Or(e);for(ho(o)&&(o=o.host);se(o)&&["html","body"].indexOf(Ce(o))<0;){var i=_e(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Gt(e){for(var t=oe(e),r=Ea(e);r&&Sf(r)&&_e(r).position==="static";)r=Ea(r);return r&&(Ce(r)==="html"||Ce(r)==="body"&&_e(r).position==="static")?t:r||Of(e)||t}function go(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Nt(e,t,r){return Ge(e,sr(t,r))}function xf(e,t,r){var n=Nt(e,t,r);return n>r?r:n}function us(){return{top:0,right:0,bottom:0,left:0}}function cs(e){return Object.assign({},us(),e)}function ds(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Ef=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,cs(typeof t!="number"?t:ds(t,Dt))};function kf(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,u=r.modifiersData.popperOffsets,l=be(r.placement),s=go(l),d=[te,de].indexOf(l)>=0,c=d?"height":"width";if(!(!i||!u)){var f=Ef(o.padding,r),p=vo(i),h=s==="y"?ee:te,y=s==="y"?ce:de,b=r.rects.reference[c]+r.rects.reference[s]-u[s]-r.rects.popper[c],v=u[s]-r.rects.reference[s],g=Gt(i),m=g?s==="y"?g.clientHeight||0:g.clientWidth||0:0,C=b/2-v/2,O=f[h],k=m-p[c]-f[y],E=m/2-p[c]/2+C,R=Nt(O,E,k),B=s;r.modifiersData[n]=(t={},t[B]=R,t.centerOffset=R-E,t)}}function _f(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)||ss(t.elements.popper,o)&&(t.elements.arrow=o))}const Tf={name:"arrow",enabled:!0,phase:"main",fn:kf,effect:_f,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ut(e){return e.split("-")[1]}var Nf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Af(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:lt(r*o)/o||0,y:lt(n*o)/o||0}}function ka(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=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,y=u.y,b=y===void 0?0:y,v=typeof c=="function"?c({x:h,y:b}):{x:h,y:b};h=v.x,b=v.y;var g=u.hasOwnProperty("x"),m=u.hasOwnProperty("y"),C=te,O=ee,k=window;if(d){var E=Gt(r),R="clientHeight",B="clientWidth";if(E===oe(r)&&(E=Ve(r),_e(E).position!=="static"&&l==="absolute"&&(R="scrollHeight",B="scrollWidth")),E=E,o===ee||(o===te||o===de)&&i===Vt){O=ce;var I=f&&E===k&&k.visualViewport?k.visualViewport.height:E[R];b-=I-n.height,b*=s?1:-1}if(o===te||(o===ee||o===ce)&&i===Vt){C=de;var F=f&&E===k&&k.visualViewport?k.visualViewport.width:E[B];h-=F-n.width,h*=s?1:-1}}var S=Object.assign({position:l},d&&Nf),T=c===!0?Af({x:h,y:b},oe(r)):{x:h,y:b};if(h=T.x,b=T.y,s){var j;return Object.assign({},S,(j={},j[O]=m?"0":"",j[C]=g?"0":"",j.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",j))}return Object.assign({},S,(t={},t[O]=m?b+"px":"",t[C]=g?h+"px":"",t.transform="",t))}function Pf(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,u=i===void 0?!0:i,l=r.roundOffsets,s=l===void 0?!0:l,d={placement:be(t.placement),variation:ut(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,ka(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,ka(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 Rf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Pf,data:{}};var Qt={passive:!0};function jf(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,u=n.resize,l=u===void 0?!0:u,s=oe(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(c){c.addEventListener("scroll",r.update,Qt)}),l&&s.addEventListener("resize",r.update,Qt),function(){i&&d.forEach(function(c){c.removeEventListener("scroll",r.update,Qt)}),l&&s.removeEventListener("resize",r.update,Qt)}}const If={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:jf,data:{}};var Vf={left:"right",right:"left",bottom:"top",top:"bottom"};function nr(e){return e.replace(/left|right|bottom|top/g,function(t){return Vf[t]})}var $f={start:"end",end:"start"};function _a(e){return e.replace(/start|end/g,function(t){return $f[t]})}function mo(e){var t=oe(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function yo(e){return st(Ve(e)).left+mo(e).scrollLeft}function Bf(e,t){var r=oe(e),n=Ve(e),o=r.visualViewport,i=n.clientWidth,u=n.clientHeight,l=0,s=0;if(o){i=o.width,u=o.height;var d=ls();(d||!d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:u,x:l+yo(e),y:s}}function Ff(e){var t,r=Ve(e),n=mo(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=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+yo(e),s=-n.scrollTop;return _e(o||r).direction==="rtl"&&(l+=Ge(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:u,x:l,y:s}}function bo(e){var t=_e(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function fs(e){return["html","body","#document"].indexOf(Ce(e))>=0?e.ownerDocument.body:se(e)&&bo(e)?e:fs(Or(e))}function At(e,t){var r;t===void 0&&(t=[]);var n=fs(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=oe(n),u=o?[i].concat(i.visualViewport||[],bo(n)?n:[]):n,l=t.concat(u);return o?l:l.concat(At(Or(u)))}function to(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Mf(e,t){var r=st(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===as?to(Bf(e,r)):Le(t)?Mf(t,r):to(Ff(Ve(e)))}function qf(e){var t=At(Or(e)),r=["absolute","fixed"].indexOf(_e(e).position)>=0,n=r&&se(e)?Gt(e):e;return Le(n)?t.filter(function(o){return Le(o)&&ss(o,n)&&Ce(o)!=="body"}):[]}function Df(e,t,r,n){var o=t==="clippingParents"?qf(e):[].concat(t),i=[].concat(o,[r]),u=i[0],l=i.reduce(function(s,d){var c=Ta(e,d,n);return s.top=Ge(c.top,s.top),s.right=sr(c.right,s.right),s.bottom=sr(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 ps(e){var t=e.reference,r=e.element,n=e.placement,o=n?be(n):null,i=n?ut(n):null,u=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,s;switch(o){case ee:s={x:u,y:t.y-r.height};break;case ce:s={x:u,y:t.y+t.height};break;case de:s={x:t.x+t.width,y:l};break;case te:s={x:t.x-r.width,y:l};break;default:s={x:t.x,y:t.y}}var d=o?go(o):null;if(d!=null){var c=d==="y"?"height":"width";switch(i){case it:s[d]=s[d]-(t[c]/2-r[c]/2);break;case Vt:s[d]=s[d]+(t[c]/2-r[c]/2);break}}return s}function $t(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,u=i===void 0?e.strategy:i,l=r.boundary,s=l===void 0?lf:l,d=r.rootBoundary,c=d===void 0?as:d,f=r.elementContext,p=f===void 0?Ct:f,h=r.altBoundary,y=h===void 0?!1:h,b=r.padding,v=b===void 0?0:b,g=cs(typeof v!="number"?v:ds(v,Dt)),m=p===Ct?sf:Ct,C=e.rects.popper,O=e.elements[y?m:p],k=Df(Le(O)?O:O.contextElement||Ve(e.elements.popper),s,c,u),E=st(e.elements.reference),R=ps({reference:E,element:C,placement:o}),B=to(Object.assign({},C,R)),I=p===Ct?B:E,F={top:k.top-I.top+g.top,bottom:I.bottom-k.bottom+g.bottom,left:k.left-I.left+g.left,right:I.right-k.right+g.right},S=e.modifiersData.offset;if(p===Ct&&S){var T=S[o];Object.keys(F).forEach(function(j){var _=[de,ce].indexOf(j)>=0?1:-1,A=[ee,ce].indexOf(j)>=0?"y":"x";F[j]+=T[A]*_})}return F}function Gf(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,u=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,d=s===void 0?is:s,c=ut(n),f=c?l?xa:xa.filter(function(y){return ut(y)===c}):Dt,p=f.filter(function(y){return d.indexOf(y)>=0});p.length===0&&(p=f);var h=p.reduce(function(y,b){return y[b]=$t(e,{placement:b,boundary:o,rootBoundary:i,padding:u})[be(b)],y},{});return Object.keys(h).sort(function(y,b){return h[y]-h[b]})}function Lf(e){if(be(e)===po)return[];var t=nr(e);return[_a(e),t,_a(t)]}function Hf(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=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,y=h===void 0?!0:h,b=r.allowedAutoPlacements,v=t.options.placement,g=be(v),m=g===v,C=s||(m||!y?[nr(v)]:Lf(v)),O=[v].concat(C).reduce(function(Ae,me){return Ae.concat(be(me)===po?Gf(t,{placement:me,boundary:c,rootBoundary:f,padding:d,flipVariations:y,allowedAutoPlacements:b}):me)},[]),k=t.rects.reference,E=t.rects.popper,R=new Map,B=!0,I=O[0],F=0;F<O.length;F++){var S=O[F],T=be(S),j=ut(S)===it,_=[ee,ce].indexOf(T)>=0,A=_?"width":"height",$=$t(t,{placement:S,boundary:c,rootBoundary:f,altBoundary:p,padding:d}),K=_?j?de:te:j?ce:ee;k[A]>E[A]&&(K=nr(K));var N=nr(K),V=[];if(i&&V.push($[T]<=0),l&&V.push($[K]<=0,$[N]<=0),V.every(function(Ae){return Ae})){I=S,B=!1;break}R.set(S,V)}if(B)for(var M=y?3:1,Q=function(me){var bt=O.find(function(Wt){var Be=R.get(Wt);if(Be)return Be.slice(0,me).every(function(Pr){return Pr})});if(bt)return I=bt,"break"},ge=M;ge>0;ge--){var Ze=Q(ge);if(Ze==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}const Uf={name:"flip",enabled:!0,phase:"main",fn:Hf,requiresIfExists:["offset"],data:{_skip:!1}};function Na(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 Aa(e){return[ee,de,ce,te].some(function(t){return e[t]>=0})}function zf(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,u=$t(t,{elementContext:"reference"}),l=$t(t,{altBoundary:!0}),s=Na(u,n),d=Na(l,o,i),c=Aa(s),f=Aa(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 Wf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zf};function Kf(e,t,r){var n=be(e),o=[te,ee].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=i[0],l=i[1];return u=u||0,l=(l||0)*o,[te,de].indexOf(n)>=0?{x:l,y:u}:{x:u,y:l}}function Yf(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,u=is.reduce(function(c,f){return c[f]=Kf(f,t.rects,i),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 Xf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Yf};function Jf(e){var t=e.state,r=e.name;t.modifiersData[r]=ps({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Zf={name:"popperOffsets",enabled:!0,phase:"read",fn:Jf,data:{}};function Qf(e){return e==="x"?"y":"x"}function ep(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=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,y=r.tetherOffset,b=y===void 0?0:y,v=$t(t,{boundary:s,rootBoundary:d,padding:f,altBoundary:c}),g=be(t.placement),m=ut(t.placement),C=!m,O=go(g),k=Qf(O),E=t.modifiersData.popperOffsets,R=t.rects.reference,B=t.rects.popper,I=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,F=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(E){if(i){var j,_=O==="y"?ee:te,A=O==="y"?ce:de,$=O==="y"?"height":"width",K=E[O],N=K+v[_],V=K-v[A],M=h?-B[$]/2:0,Q=m===it?R[$]:B[$],ge=m===it?-B[$]:-R[$],Ze=t.elements.arrow,Ae=h&&Ze?vo(Ze):{width:0,height:0},me=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:us(),bt=me[_],Wt=me[A],Be=Nt(0,R[$],Ae[$]),Pr=C?R[$]/2-M-Be-bt-F.mainAxis:Q-Be-bt-F.mainAxis,fu=C?-R[$]/2+M+Be+Wt+F.mainAxis:ge+Be+Wt+F.mainAxis,Rr=t.elements.arrow&&Gt(t.elements.arrow),pu=Rr?O==="y"?Rr.clientTop||0:Rr.clientLeft||0:0,Uo=(j=S?.[O])!=null?j:0,hu=K+Pr-Uo-pu,vu=K+fu-Uo,zo=Nt(h?sr(N,hu):N,K,h?Ge(V,vu):V);E[O]=zo,T[O]=zo-K}if(l){var Wo,gu=O==="x"?ee:te,mu=O==="x"?ce:de,Fe=E[k],Kt=k==="y"?"height":"width",Ko=Fe+v[gu],Yo=Fe-v[mu],jr=[ee,te].indexOf(g)!==-1,Xo=(Wo=S?.[k])!=null?Wo:0,Jo=jr?Ko:Fe-R[Kt]-B[Kt]-Xo+F.altAxis,Zo=jr?Fe+R[Kt]+B[Kt]-Xo-F.altAxis:Yo,Qo=h&&jr?xf(Jo,Fe,Zo):Nt(h?Jo:Ko,Fe,h?Zo:Yo);E[k]=Qo,T[k]=Qo-Fe}t.modifiersData[n]=T}}const tp={name:"preventOverflow",enabled:!0,phase:"main",fn:ep,requiresIfExists:["offset"]};function rp(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function np(e){return e===oe(e)||!se(e)?mo(e):rp(e)}function op(e){var t=e.getBoundingClientRect(),r=lt(t.width)/e.offsetWidth||1,n=lt(t.height)/e.offsetHeight||1;return r!==1||n!==1}function ap(e,t,r){r===void 0&&(r=!1);var n=se(t),o=se(t)&&op(t),i=Ve(t),u=st(e,o,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((Ce(t)!=="body"||bo(i))&&(l=np(t)),se(t)?(s=st(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=yo(i))),{x:u.left+l.scrollLeft-s.x,y:u.top+l.scrollTop-s.y,width:u.width,height:u.height}}function ip(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var u=[].concat(i.requires||[],i.requiresIfExists||[]);u.forEach(function(l){if(!r.has(l)){var s=t.get(l);s&&o(s)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function lp(e){var t=ip(e);return yf.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function sp(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function up(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 Pa={placement:"bottom",modifiers:[],strategy:"absolute"};function Ra(){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 cp(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?Pa:o;return function(l,s,d){d===void 0&&(d=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pa,i),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},f=[],p=!1,h={state:c,setOptions:function(g){var m=typeof g=="function"?g(c.options):g;b(),c.options=Object.assign({},i,c.options,m),c.scrollParents={reference:Le(l)?At(l):l.contextElement?At(l.contextElement):[],popper:At(s)};var C=lp(up([].concat(n,c.options.modifiers)));return c.orderedModifiers=C.filter(function(O){return O.enabled}),y(),h.update()},forceUpdate:function(){if(!p){var g=c.elements,m=g.reference,C=g.popper;if(Ra(m,C)){c.rects={reference:ap(m,Gt(C),c.options.strategy==="fixed"),popper:vo(C)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(F){return c.modifiersData[F.name]=Object.assign({},F.data)});for(var O=0;O<c.orderedModifiers.length;O++){if(c.reset===!0){c.reset=!1,O=-1;continue}var k=c.orderedModifiers[O],E=k.fn,R=k.options,B=R===void 0?{}:R,I=k.name;typeof E=="function"&&(c=E({state:c,options:B,name:I,instance:h})||c)}}}},update:sp(function(){return new Promise(function(v){h.forceUpdate(),v(c)})}),destroy:function(){b(),p=!0}};if(!Ra(l,s))return h;h.setOptions(d).then(function(v){!p&&d.onFirstUpdate&&d.onFirstUpdate(v)});function y(){c.orderedModifiers.forEach(function(v){var g=v.name,m=v.options,C=m===void 0?{}:m,O=v.effect;if(typeof O=="function"){var k=O({state:c,name:g,instance:h,options:C}),E=function(){};f.push(k||E)}})}function b(){f.forEach(function(v){return v()}),f=[]}return h}}var dp=[If,Zf,Rf,wf,Xf,Uf,tp,Tf,Wf],fp=cp({defaultModifiers:dp});function pp(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 hs(e,t,r){return r&&pp(e,r),e}function or(){return(or=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 vs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function gs(e,t){if(e==null)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}function ja(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var ms=Object.prototype,ys=ms.toString,hp=ms.hasOwnProperty,bs=/^\s*function (\w+)/;function Ia(e){var t,r=(t=e?.type)!==null&&t!==void 0?t:e;if(r){var n=r.toString().match(bs);return n?n[1]:""}return""}var He=function(e){var t,r;return ja(e)!==!1&&typeof(t=e.constructor)=="function"&&ja(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1},Cs=function(e){return e},re=Cs;if(process.env.NODE_ENV!=="production"){var vp=typeof console<"u";re=vp?function(e){console.warn("[VueTypes warn]: "+e)}:Cs}var Bt=function(e,t){return hp.call(e,t)},gp=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},ct=Array.isArray||function(e){return ys.call(e)==="[object Array]"},dt=function(e){return ys.call(e)==="[object Function]"},ur=function(e){return He(e)&&Bt(e,"_vueTypes_name")},ws=function(e){return He(e)&&(Bt(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return Bt(e,t)}))};function Co(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function We(e,t,r){var n,o=!0,i="";n=He(e)?e:{type:e};var u=ur(n)?n._vueTypes_name+" - ":"";if(ws(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t===void 0)return o;ct(n.type)?(o=n.type.some(function(f){return We(f,t)===!0}),i=n.type.map(function(f){return Ia(f)}).join(" or ")):o=(i=Ia(n))==="Array"?ct(t):i==="Object"?He(t):i==="String"||i==="Number"||i==="Boolean"||i==="Function"?(function(f){if(f==null)return"";var p=f.constructor.toString().match(bs);return p?p[1]:""})(t)===i:t instanceof n.type}if(!o){var l=u+'value "'+t+'" should be of type "'+i+'"';return l}if(Bt(n,"validator")&&dt(n.validator)){var s=re,d=[];if(re=function(f){d.push(f)},o=n.validator(t),re=s,!o){var c=(d.length>1?"* ":"")+d.join(`
12
+ * `);return d.length=0,c}}return o}function ae(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?dt(o)||We(this,o)===!0?(this.default=ct(o)?function(){return[].concat(o)}:He(o)?function(){return Object.assign({},o)}:o,this):(re(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),n=r.validator;return dt(n)&&(r.validator=Co(n,r)),r}function we(e,t){var r=ae(e,t);return Object.defineProperty(r,"validate",{value:function(n){return dt(this.validator)&&re(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
13
+ `+JSON.stringify(this)),this.validator=Co(n,this),this}})}function Va(e,t,r){var n,o,i=(n=t,o={},Object.getOwnPropertyNames(n).forEach(function(f){o[f]=Object.getOwnPropertyDescriptor(n,f)}),Object.defineProperties({},o));if(i._vueTypes_name=e,!He(r))return i;var u,l,s=r.validator,d=gs(r,["validator"]);if(dt(s)){var c=i.validator;c&&(c=(l=(u=c).__original)!==null&&l!==void 0?l:u),i.validator=Co(c?function(f){return c.call(this,f)&&s.call(this,f)}:s,i)}return Object.assign(i,d)}function xr(e){return e.replace(/^(?!\s*$)/gm," ")}var mp=function(){return we("any",{})},yp=function(){return we("function",{type:Function})},bp=function(){return we("boolean",{type:Boolean})},Cp=function(){return we("string",{type:String})},wp=function(){return we("number",{type:Number})},Sp=function(){return we("array",{type:Array})},Op=function(){return we("object",{type:Object})},xp=function(){return ae("integer",{type:Number,validator:function(e){return gp(e)}})},Ep=function(){return ae("symbol",{validator:function(e){return typeof e=="symbol"}})};function kp(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 ae(e.name||"<<anonymous function>>",{validator:function(r){var n=e(r);return n||re(this._vueTypes_name+" - "+t),n}})}function _p(e){if(!ct(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 i=o.constructor;n.indexOf(i)===-1&&n.push(i)}return n},[]);return ae("oneOf",{type:r.length>0?r:void 0,validator:function(n){var o=e.indexOf(n)!==-1;return o||re(t),o}})}function Tp(e){if(!ct(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(ws(o)){if(ur(o)&&o._vueTypes_name==="oneOf"){r=r.concat(o.type);continue}if(dt(o.validator)&&(t=!0),o.type!==!0&&o.type){r=r.concat(o.type);continue}}r.push(o)}return r=r.filter(function(i,u){return r.indexOf(i)===u}),ae("oneOfType",t?{type:r,validator:function(i){var u=[],l=e.some(function(s){var d=We(ur(s)&&s._vueTypes_name==="oneOf"?s.type||null:s,i);return typeof d=="string"&&u.push(d),d===!0});return l||re("oneOfType - provided value does not match any of the "+u.length+` passed-in validators:
14
+ `+xr(u.join(`
15
+ `))),l}}:{type:r})}function Np(e){return ae("arrayOf",{type:Array,validator:function(t){var r,n=t.every(function(o){return(r=We(e,o))===!0});return n||re(`arrayOf - value validation error:
16
+ `+xr(r)),n}})}function Ap(e){return ae("instanceOf",{type:e})}function Pp(e){return ae("objectOf",{type:Object,validator:function(t){var r,n=Object.keys(t).every(function(o){return(r=We(e,t[o]))===!0});return n||re(`objectOf - value validation error:
17
+ `+xr(r)),n}})}function Rp(e){var t=Object.keys(e),r=t.filter(function(o){var i;return!!(!((i=e[o])===null||i===void 0)&&i.required)}),n=ae("shape",{type:Object,validator:function(o){var i=this;if(!He(o))return!1;var u=Object.keys(o);if(r.length>0&&r.some(function(s){return u.indexOf(s)===-1})){var l=r.filter(function(s){return u.indexOf(s)===-1});return re(l.length===1?'shape - required property "'+l[0]+'" is not defined.':'shape - required properties "'+l.join('", "')+'" are not defined.'),!1}return u.every(function(s){if(t.indexOf(s)===-1)return i._vueTypes_isLoose===!0||(re('shape - shape definition does not include a "'+s+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var d=We(e[s],o[s]);return typeof d=="string"&&re('shape - "'+s+`" property validation error:
18
+ `+xr(d)),d===!0})}});return Object.defineProperty(n,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(n,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),n}var ye=(function(){function e(){}return e.extend=function(t){var r=this;if(ct(t))return t.forEach(function(f){return r.extend(f)}),this;var n=t.name,o=t.validate,i=o!==void 0&&o,u=t.getter,l=u!==void 0&&u,s=gs(t,["name","validate","getter"]);if(Bt(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var d,c=s.type;return ur(c)?(delete s.type,Object.defineProperty(this,n,l?{get:function(){return Va(n,c,s)}}:{value:function(){var f,p=Va(n,c,s);return p.validator&&(p.validator=(f=p.validator).bind.apply(f,[p].concat([].slice.call(arguments)))),p}})):(d=l?{get:function(){var f=Object.assign({},s);return i?we(n,f):ae(n,f)},enumerable:!0}:{value:function(){var f,p,h=Object.assign({},s);return f=i?we(n,h):ae(n,h),h.validator&&(f.validator=(p=h.validator).bind.apply(p,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,n,d))},hs(e,null,[{key:"any",get:function(){return mp()}},{key:"func",get:function(){return yp().def(this.defaults.func)}},{key:"bool",get:function(){return bp().def(this.defaults.bool)}},{key:"string",get:function(){return Cp().def(this.defaults.string)}},{key:"number",get:function(){return wp().def(this.defaults.number)}},{key:"array",get:function(){return Sp().def(this.defaults.array)}},{key:"object",get:function(){return Op().def(this.defaults.object)}},{key:"integer",get:function(){return xp().def(this.defaults.integer)}},{key:"symbol",get:function(){return Ep()}}]),e})();function jp(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=(function(r){function n(){return r.apply(this,arguments)||this}return vs(n,r),hs(n,null,[{key:"sensibleDefaults",get:function(){return or({},this.defaults)},set:function(o){this.defaults=o!==!1?or({},o!==!0?o:e):{}}}]),n})(ye)).defaults=or({},e),t}ye.defaults={},ye.custom=kp,ye.oneOf=_p,ye.instanceOf=Ap,ye.oneOfType=Tp,ye.arrayOf=Np,ye.objectOf=Pp,ye.shape=Rp,ye.utils={validate:function(e,t){return We(t,e)===!0},toType:function(e,t,r){return r===void 0&&(r=!1),r?we(e,t):ae(e,t)}};var P=(function(e){function t(){return e.apply(this,arguments)||this}return vs(t,e),t})(jp()),$a={},wt,Ba;function ve(){if(Ba)return wt;Ba=1;var e=function(t){return t&&t.Math===Math&&t};return wt=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof wa=="object"&&wa)||e(typeof wt=="object"&&wt)||(function(){return this})()||Function("return this")(),wt}var Br,Fa;function Ke(){return Fa||(Fa=1,Br=function(e){try{return!!e()}catch{return!0}}),Br}var Fr,Ma;function Ye(){if(Ma)return Fr;Ma=1;var e=Ke();return Fr=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Fr}var Mr={exports:{}},qr,qa;function Ss(){if(qa)return qr;qa=1;var e=Ke();return qr=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),qr}var Dr,Da;function Lt(){if(Da)return Dr;Da=1;var e=Ss(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return Dr=e?n:function(o){return function(){return r.apply(o,arguments)}},Dr}var Gr,Ga;function $e(){if(Ga)return Gr;Ga=1;var e=typeof document=="object"&&document.all;return Gr=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},Gr}var Lr,La;function Os(){return La||(La=1,Lr=function(e){return e==null}),Lr}var Hr,Ha;function Ip(){if(Ha)return Hr;Ha=1;var e=Os(),t=TypeError;return Hr=function(r){if(e(r))throw new t("Can't call method on "+r);return r},Hr}var Ur,Ua;function Vp(){if(Ua)return Ur;Ua=1;var e=Ip(),t=Object;return Ur=function(r){return t(e(r))},Ur}var zr,za;function Er(){if(za)return zr;za=1;var e=Lt(),t=Vp(),r=e({}.hasOwnProperty);return zr=Object.hasOwn||function(o,i){return r(t(o),i)},zr}var Wr,Wa;function $p(){if(Wa)return Wr;Wa=1;var e=Ye(),t=Er(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,o=t(r,"name"),i=o&&(function(){}).name==="something",u=o&&(!e||e&&n(r,"name").configurable);return Wr={EXISTS:o,PROPER:i,CONFIGURABLE:u},Wr}var Kr={exports:{}},Yr,Ka;function Bp(){return Ka||(Ka=1,Yr=!1),Yr}var Xr,Ya;function Fp(){if(Ya)return Xr;Ya=1;var e=ve(),t=Object.defineProperty;return Xr=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},Xr}var Xa;function wo(){if(Xa)return Kr.exports;Xa=1;var e=Bp(),t=ve(),r=Fp(),n="__core-js_shared__",o=Kr.exports=t[n]||r(n,{});return(o.versions||(o.versions=[])).push({version:"3.41.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Kr.exports}var Jr,Ja;function Mp(){if(Ja)return Jr;Ja=1;var e=Lt(),t=$e(),r=wo(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(o){return n(o)}),Jr=r.inspectSource,Jr}var Zr,Za;function qp(){if(Za)return Zr;Za=1;var e=ve(),t=$e(),r=e.WeakMap;return Zr=t(r)&&/native code/.test(String(r)),Zr}var Qr,Qa;function Ht(){if(Qa)return Qr;Qa=1;var e=$e();return Qr=function(t){return typeof t=="object"?t!==null:e(t)},Qr}var en={},tn,ei;function Dp(){if(ei)return tn;ei=1;var e=ve(),t=Ht(),r=e.document,n=t(r)&&t(r.createElement);return tn=function(o){return n?r.createElement(o):{}},tn}var rn,ti;function Gp(){if(ti)return rn;ti=1;var e=Ye(),t=Ke(),r=Dp();return rn=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),rn}var nn,ri;function Lp(){if(ri)return nn;ri=1;var e=Ye(),t=Ke();return nn=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),nn}var on,ni;function xs(){if(ni)return on;ni=1;var e=Ht(),t=String,r=TypeError;return on=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},on}var an,oi;function Es(){if(oi)return an;oi=1;var e=Ss(),t=Function.prototype.call;return an=e?t.bind(t):function(){return t.apply(t,arguments)},an}var ln,ai;function Hp(){if(ai)return ln;ai=1;var e=ve(),t=$e(),r=function(n){return t(n)?n:void 0};return ln=function(n,o){return arguments.length<2?r(e[n]):e[n]&&e[n][o]},ln}var sn,ii;function Up(){if(ii)return sn;ii=1;var e=Lt();return sn=e({}.isPrototypeOf),sn}var un,li;function zp(){if(li)return un;li=1;var e=ve(),t=e.navigator,r=t&&t.userAgent;return un=r?String(r):"",un}var cn,si;function Wp(){if(si)return cn;si=1;var e=ve(),t=zp(),r=e.process,n=e.Deno,o=r&&r.versions||n&&n.version,i=o&&o.v8,u,l;return i&&(u=i.split("."),l=u[0]>0&&u[0]<4?1:+(u[0]+u[1])),!l&&t&&(u=t.match(/Edge\/(\d+)/),(!u||u[1]>=74)&&(u=t.match(/Chrome\/(\d+)/),u&&(l=+u[1]))),cn=l,cn}var dn,ui;function ks(){if(ui)return dn;ui=1;var e=Wp(),t=Ke(),r=ve(),n=r.String;return dn=!!Object.getOwnPropertySymbols&&!t(function(){var o=Symbol("symbol detection");return!n(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&e&&e<41}),dn}var fn,ci;function _s(){if(ci)return fn;ci=1;var e=ks();return fn=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",fn}var pn,di;function Ts(){if(di)return pn;di=1;var e=Hp(),t=$e(),r=Up(),n=_s(),o=Object;return pn=n?function(i){return typeof i=="symbol"}:function(i){var u=e("Symbol");return t(u)&&r(u.prototype,o(i))},pn}var hn,fi;function Kp(){if(fi)return hn;fi=1;var e=String;return hn=function(t){try{return e(t)}catch{return"Object"}},hn}var vn,pi;function Yp(){if(pi)return vn;pi=1;var e=$e(),t=Kp(),r=TypeError;return vn=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},vn}var gn,hi;function Xp(){if(hi)return gn;hi=1;var e=Yp(),t=Os();return gn=function(r,n){var o=r[n];return t(o)?void 0:e(o)},gn}var mn,vi;function Jp(){if(vi)return mn;vi=1;var e=Es(),t=$e(),r=Ht(),n=TypeError;return mn=function(o,i){var u,l;if(i==="string"&&t(u=o.toString)&&!r(l=e(u,o))||t(u=o.valueOf)&&!r(l=e(u,o))||i!=="string"&&t(u=o.toString)&&!r(l=e(u,o)))return l;throw new n("Can't convert object to primitive value")},mn}var yn,gi;function Ns(){if(gi)return yn;gi=1;var e=wo();return yn=function(t,r){return e[t]||(e[t]=r||{})},yn}var bn,mi;function As(){if(mi)return bn;mi=1;var e=Lt(),t=0,r=Math.random(),n=e(1 .toString);return bn=function(o){return"Symbol("+(o===void 0?"":o)+")_"+n(++t+r,36)},bn}var Cn,yi;function Zp(){if(yi)return Cn;yi=1;var e=ve(),t=Ns(),r=Er(),n=As(),o=ks(),i=_s(),u=e.Symbol,l=t("wks"),s=i?u.for||u:u&&u.withoutSetter||n;return Cn=function(d){return r(l,d)||(l[d]=o&&r(u,d)?u[d]:s("Symbol."+d)),l[d]},Cn}var wn,bi;function Qp(){if(bi)return wn;bi=1;var e=Es(),t=Ht(),r=Ts(),n=Xp(),o=Jp(),i=Zp(),u=TypeError,l=i("toPrimitive");return wn=function(s,d){if(!t(s)||r(s))return s;var c=n(s,l),f;if(c){if(d===void 0&&(d="default"),f=e(c,s,d),!t(f)||r(f))return f;throw new u("Can't convert object to primitive value")}return d===void 0&&(d="number"),o(s,d)},wn}var Sn,Ci;function eh(){if(Ci)return Sn;Ci=1;var e=Qp(),t=Ts();return Sn=function(r){var n=e(r,"string");return t(n)?n:n+""},Sn}var wi;function Ps(){if(wi)return en;wi=1;var e=Ye(),t=Gp(),r=Lp(),n=xs(),o=eh(),i=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s="enumerable",d="configurable",c="writable";return en.f=e?r?function(p,h,y){if(n(p),h=o(h),n(y),typeof p=="function"&&h==="prototype"&&"value"in y&&c in y&&!y[c]){var b=l(p,h);b&&b[c]&&(p[h]=y.value,y={configurable:d in y?y[d]:b[d],enumerable:s in y?y[s]:b[s],writable:!1})}return u(p,h,y)}:u:function(p,h,y){if(n(p),h=o(h),n(y),t)try{return u(p,h,y)}catch{}if("get"in y||"set"in y)throw new i("Accessors not supported");return"value"in y&&(p[h]=y.value),p},en}var On,Si;function th(){return Si||(Si=1,On=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),On}var xn,Oi;function rh(){if(Oi)return xn;Oi=1;var e=Ye(),t=Ps(),r=th();return xn=e?function(n,o,i){return t.f(n,o,r(1,i))}:function(n,o,i){return n[o]=i,n},xn}var En,xi;function nh(){if(xi)return En;xi=1;var e=Ns(),t=As(),r=e("keys");return En=function(n){return r[n]||(r[n]=t(n))},En}var kn,Ei;function oh(){return Ei||(Ei=1,kn={}),kn}var _n,ki;function ah(){if(ki)return _n;ki=1;var e=qp(),t=ve(),r=Ht(),n=rh(),o=Er(),i=wo(),u=nh(),l=oh(),s="Object already initialized",d=t.TypeError,c=t.WeakMap,f,p,h,y=function(m){return h(m)?p(m):f(m,{})},b=function(m){return function(C){var O;if(!r(C)||(O=p(C)).type!==m)throw new d("Incompatible receiver, "+m+" required");return O}};if(e||i.state){var v=i.state||(i.state=new c);v.get=v.get,v.has=v.has,v.set=v.set,f=function(m,C){if(v.has(m))throw new d(s);return C.facade=m,v.set(m,C),C},p=function(m){return v.get(m)||{}},h=function(m){return v.has(m)}}else{var g=u("state");l[g]=!0,f=function(m,C){if(o(m,g))throw new d(s);return C.facade=m,n(m,g,C),C},p=function(m){return o(m,g)?m[g]:{}},h=function(m){return o(m,g)}}return _n={set:f,get:p,has:h,enforce:y,getterFor:b},_n}var _i;function ih(){if(_i)return Mr.exports;_i=1;var e=Lt(),t=Ke(),r=$e(),n=Er(),o=Ye(),i=$p().CONFIGURABLE,u=Mp(),l=ah(),s=l.enforce,d=l.get,c=String,f=Object.defineProperty,p=e("".slice),h=e("".replace),y=e([].join),b=o&&!t(function(){return f(function(){},"length",{value:8}).length!==8}),v=String(String).split("String"),g=Mr.exports=function(m,C,O){p(c(C),0,7)==="Symbol("&&(C="["+h(c(C),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),O&&O.getter&&(C="get "+C),O&&O.setter&&(C="set "+C),(!n(m,"name")||i&&m.name!==C)&&(o?f(m,"name",{value:C,configurable:!0}):m.name=C),b&&O&&n(O,"arity")&&m.length!==O.arity&&f(m,"length",{value:O.arity});try{O&&n(O,"constructor")&&O.constructor?o&&f(m,"prototype",{writable:!1}):m.prototype&&(m.prototype=void 0)}catch{}var k=s(m);return n(k,"source")||(k.source=y(v,typeof C=="string"?C:"")),m};return Function.prototype.toString=g(function(){return r(this)&&d(this).source||u(this)},"toString"),Mr.exports}var Tn,Ti;function lh(){if(Ti)return Tn;Ti=1;var e=ih(),t=Ps();return Tn=function(r,n,o){return o.get&&e(o.get,n,{getter:!0}),o.set&&e(o.set,n,{setter:!0}),t.f(r,n,o)},Tn}var Nn,Ni;function sh(){if(Ni)return Nn;Ni=1;var e=xs();return Nn=function(){var t=e(this),r="";return t.hasIndices&&(r+="d"),t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.unicodeSets&&(r+="v"),t.sticky&&(r+="y"),r},Nn}var Ai;function uh(){if(Ai)return $a;Ai=1;var e=ve(),t=Ye(),r=lh(),n=sh(),o=Ke(),i=e.RegExp,u=i.prototype,l=t&&o(function(){var s=!0;try{i(".","d")}catch{s=!1}var d={},c="",f=s?"dgimsy":"gimsy",p=function(v,g){Object.defineProperty(d,v,{get:function(){return c+=g,!0}})},h={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};s&&(h.hasIndices="d");for(var y in h)p(y,h[y]);var b=Object.getOwnPropertyDescriptor(u,"flags").get.call(d);return b!==f||c!==f});return l&&r(u,"flags",{configurable:!0,get:n}),$a}uh();var Pi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function So(e){var t={exports:{}};return e(t,t.exports),t.exports}var er=function(e){return e&&e.Math==Math&&e},z=er(typeof globalThis=="object"&&globalThis)||er(typeof window=="object"&&window)||er(typeof self=="object"&&self)||er(typeof Pi=="object"&&Pi)||(function(){return this})()||Function("return this")(),q=function(e){try{return!!e()}catch{return!0}},le=!q(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ri={}.propertyIsEnumerable,ji=Object.getOwnPropertyDescriptor,ch={f:ji&&!Ri.call({1:2},1)?function(e){var t=ji(this,e);return!!t&&t.enumerable}:Ri},kr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},dh={}.toString,ke=function(e){return dh.call(e).slice(8,-1)},fh="".split,_r=q(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return ke(e)=="String"?fh.call(e,""):Object(e)}:Object,Re=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},gt=function(e){return _r(Re(e))},W=function(e){return typeof e=="object"?e!==null:typeof e=="function"},Oo=function(e,t){if(!W(e))return e;var r,n;if(t&&typeof(r=e.toString)=="function"&&!W(n=r.call(e))||typeof(r=e.valueOf)=="function"&&!W(n=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!W(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},ph={}.hasOwnProperty,U=function(e,t){return ph.call(e,t)},ro=z.document,hh=W(ro)&&W(ro.createElement),Rs=function(e){return hh?ro.createElement(e):{}},js=!le&&!q(function(){return Object.defineProperty(Rs("div"),"a",{get:function(){return 7}}).a!=7}),Ii=Object.getOwnPropertyDescriptor,xo={f:le?Ii:function(e,t){if(e=gt(e),t=Oo(t,!0),js)try{return Ii(e,t)}catch{}if(U(e,t))return kr(!ch.f.call(e,t),e[t])}},Z=function(e){if(!W(e))throw TypeError(String(e)+" is not an object");return e},Vi=Object.defineProperty,Te={f:le?Vi:function(e,t,r){if(Z(e),t=Oo(t,!0),Z(r),js)try{return Vi(e,t,r)}catch{}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},ue=le?function(e,t,r){return Te.f(e,t,kr(1,r))}:function(e,t,r){return e[t]=r,e},Eo=function(e,t){try{ue(z,e,t)}catch{z[e]=t}return t},Ue=z["__core-js_shared__"]||Eo("__core-js_shared__",{}),vh=Function.toString;typeof Ue.inspectSource!="function"&&(Ue.inspectSource=function(e){return vh.call(e)});var cr,Pt,dr,Is=Ue.inspectSource,$i=z.WeakMap,gh=typeof $i=="function"&&/native code/.test(Is($i)),Vs=So(function(e){(e.exports=function(t,r){return Ue[t]||(Ue[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),mh=0,yh=Math.random(),ko=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++mh+yh).toString(36)},Bi=Vs("keys"),_o=function(e){return Bi[e]||(Bi[e]=ko(e))},Tr={},bh=z.WeakMap;if(gh){var Qe=Ue.state||(Ue.state=new bh),Ch=Qe.get,wh=Qe.has,Sh=Qe.set;cr=function(e,t){return t.facade=e,Sh.call(Qe,e,t),t},Pt=function(e){return Ch.call(Qe,e)||{}},dr=function(e){return wh.call(Qe,e)}}else{var St=_o("state");Tr[St]=!0,cr=function(e,t){return t.facade=e,ue(e,St,t),t},Pt=function(e){return U(e,St)?e[St]:{}},dr=function(e){return U(e,St)}}var je={set:cr,get:Pt,has:dr,enforce:function(e){return dr(e)?Pt(e):cr(e,{})},getterFor:function(e){return function(t){var r;if(!W(t)||(r=Pt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},Ie=So(function(e){var t=je.get,r=je.enforce,n=String(String).split("String");(e.exports=function(o,i,u,l){var s,d=!!l&&!!l.unsafe,c=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet;typeof u=="function"&&(typeof i!="string"||U(u,"name")||ue(u,"name",i),(s=r(u)).source||(s.source=n.join(typeof i=="string"?i:""))),o!==z?(d?!f&&o[i]&&(c=!0):delete o[i],c?o[i]=u:ue(o,i,u)):c?o[i]=u:Eo(i,u)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||Is(this)})}),An=z,Fi=function(e){return typeof e=="function"?e:void 0},Nr=function(e,t){return arguments.length<2?Fi(An[e])||Fi(z[e]):An[e]&&An[e][t]||z[e]&&z[e][t]},Oh=Math.ceil,xh=Math.floor,mt=function(e){return isNaN(e=+e)?0:(e>0?xh:Oh)(e)},Eh=Math.min,ie=function(e){return e>0?Eh(mt(e),9007199254740991):0},kh=Math.max,_h=Math.min,fr=function(e,t){var r=mt(e);return r<0?kh(r+t,0):_h(r,t)},Th=function(e){return function(t,r,n){var o,i=gt(t),u=ie(i.length),l=fr(n,u);if(e&&r!=r){for(;u>l;)if((o=i[l++])!=o)return!0}else for(;u>l;l++)if((e||l in i)&&i[l]===r)return e||l||0;return!e&&-1}},$s={indexOf:Th(!1)},Nh=$s.indexOf,Bs=function(e,t){var r,n=gt(e),o=0,i=[];for(r in n)!U(Tr,r)&&U(n,r)&&i.push(r);for(;t.length>o;)U(n,r=t[o++])&&(~Nh(i,r)||i.push(r));return i},pr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ah=pr.concat("length","prototype"),Ph={f:Object.getOwnPropertyNames||function(e){return Bs(e,Ah)}},Rh={f:Object.getOwnPropertySymbols},jh=Nr("Reflect","ownKeys")||function(e){var t=Ph.f(Z(e)),r=Rh.f;return r?t.concat(r(e)):t},Ih=function(e,t){for(var r=jh(t),n=Te.f,o=xo.f,i=0;i<r.length;i++){var u=r[i];U(e,u)||n(e,u,o(t,u))}},Vh=/#|\.prototype\./,Ut=function(e,t){var r=Bh[$h(e)];return r==Mh||r!=Fh&&(typeof t=="function"?q(t):!!t)},$h=Ut.normalize=function(e){return String(e).replace(Vh,".").toLowerCase()},Bh=Ut.data={},Fh=Ut.NATIVE="N",Mh=Ut.POLYFILL="P",no=Ut,qh=xo.f,J=function(e,t){var r,n,o,i,u,l=e.target,s=e.global,d=e.stat;if(r=s?z:d?z[l]||Eo(l,{}):(z[l]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(u=qh(r,n))&&u.value:r[n],!no(s?n:l+(d?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Ih(i,o)}(e.sham||o&&o.sham)&&ue(i,"sham",!0),Ie(r,n,i,e)}},To=function(e,t){var r=[][e];return!!r&&q(function(){r.call(null,t||function(){throw 1},1)})},Dh=Object.defineProperty,Pn={},Mi=function(e){throw e},yt=function(e,t){if(U(Pn,e))return Pn[e];t||(t={});var r=[][e],n=!!U(t,"ACCESSORS")&&t.ACCESSORS,o=U(t,0)?t[0]:Mi,i=U(t,1)?t[1]:void 0;return Pn[e]=!!r&&!q(function(){if(n&&!le)return!0;var u={length:-1};n?Dh(u,1,{enumerable:!0,get:Mi}):u[1]=1,r.call(u,o,i)})},Gh=$s.indexOf,Fs=[].indexOf,qi=!!Fs&&1/[1].indexOf(1,-0)<0,Lh=To("indexOf"),Hh=yt("indexOf",{ACCESSORS:!0,1:0});function Xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uh(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 Je(e,t,r){return r&&Uh(e,r),e}J({target:"Array",proto:!0,forced:qi||!Lh||!Hh},{indexOf:function(e){return qi?Fs.apply(this,arguments)||0:Gh(this,e,arguments.length>1?arguments[1]:void 0)}});(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"isInBrowser",value:function(){return typeof window<"u"}},{key:"isServer",value:function(){return typeof window>"u"}},{key:"getUA",value:function(){return e.isInBrowser()?window.navigator.userAgent.toLowerCase():""}},{key:"isMobile",value:function(){return/Mobile|mini|Fennec|Android|iP(ad|od|hone)/.test(navigator.appVersion)}},{key:"isOpera",value:function(){return navigator.userAgent.indexOf("Opera")!==-1}},{key:"isIE",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie")>0}},{key:"isIE9",value:function(){var t=e.getUA();return t!==""&&t.indexOf("msie 9.0")>0}},{key:"isEdge",value:function(){var t=e.getUA();return t!==""&&t.indexOf("edge/")>0}},{key:"isChrome",value:function(){var t=e.getUA();return t!==""&&/chrome\/\d+/.test(t)&&!e.isEdge()}},{key:"isPhantomJS",value:function(){var t=e.getUA();return t!==""&&/phantomjs/.test(t)}},{key:"isFirefox",value:function(){var t=e.getUA();return t!==""&&/firefox/.test(t)}}]),e})();var zh=[].join,Wh=_r!=Object,Kh=To("join",",");J({target:"Array",proto:!0,forced:Wh||!Kh},{join:function(e){return zh.call(gt(this),e===void 0?",":e)}});var et,hr,Ne=function(e){return Object(Re(e))},ft=Array.isArray||function(e){return ke(e)=="Array"},Ms=!!Object.getOwnPropertySymbols&&!q(function(){return!String(Symbol())}),Yh=Ms&&!Symbol.sham&&typeof Symbol.iterator=="symbol",tr=Vs("wks"),Rt=z.Symbol,Xh=Yh?Rt:Rt&&Rt.withoutSetter||ko,L=function(e){return U(tr,e)||(Ms&&U(Rt,e)?tr[e]=Rt[e]:tr[e]=Xh("Symbol."+e)),tr[e]},Jh=L("species"),Ar=function(e,t){var r;return ft(e)&&(typeof(r=e.constructor)!="function"||r!==Array&&!ft(r.prototype)?W(r)&&(r=r[Jh])===null&&(r=void 0):r=void 0),new(r===void 0?Array:r)(t===0?0:t)},pt=function(e,t,r){var n=Oo(t);n in e?Te.f(e,n,kr(0,r)):e[n]=r},Rn=Nr("navigator","userAgent")||"",Di=z.process,Gi=Di&&Di.versions,Li=Gi&&Gi.v8;Li?hr=(et=Li.split("."))[0]+et[1]:Rn&&(!(et=Rn.match(/Edge\/(\d+)/))||et[1]>=74)&&(et=Rn.match(/Chrome\/(\d+)/))&&(hr=et[1]);var vr=hr&&+hr,Zh=L("species"),No=function(e){return vr>=51||!q(function(){var t=[];return(t.constructor={})[Zh]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Qh=No("splice"),ev=yt("splice",{ACCESSORS:!0,0:0,1:2}),tv=Math.max,rv=Math.min;J({target:"Array",proto:!0,forced:!Qh||!ev},{splice:function(e,t){var r,n,o,i,u,l,s=Ne(this),d=ie(s.length),c=fr(e,d),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=d-c):(r=f-2,n=rv(tv(mt(t),0),d-c)),d+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=Ar(s,n),i=0;i<n;i++)(u=c+i)in s&&pt(o,i,s[u]);if(o.length=n,r<n){for(i=c;i<d-n;i++)l=i+r,(u=i+n)in s?s[l]=s[u]:delete s[l];for(i=d;i>d-n+r;i--)delete s[i-1]}else if(r>n)for(i=d-n;i>c;i--)l=i+r-1,(u=i+n-1)in s?s[l]=s[u]:delete s[l];for(i=0;i<r;i++)s[i+c]=arguments[i+2];return s.length=d-n+r,o}});var qs={};qs[L("toStringTag")]="z";var Ao=String(qs)==="[object z]",nv=L("toStringTag"),ov=ke((function(){return arguments})())=="Arguments",Ds=Ao?ke:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=Object(e),nv))=="string"?r:ov?ke(t):(n=ke(t))=="Object"&&typeof t.callee=="function"?"Arguments":n},av=Ao?{}.toString:function(){return"[object "+Ds(this)+"]"};Ao||Ie(Object.prototype,"toString",av,{unsafe:!0});var Gs=function(){var e=Z(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function Hi(e,t){return RegExp(e,t)}var jn,In,Ui={UNSUPPORTED_Y:q(function(){var e=Hi("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),BROKEN_CARET:q(function(){var e=Hi("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},gr=RegExp.prototype.exec,iv=String.prototype.replace,Ls=gr,Vn=(jn=/a/,In=/b*/g,gr.call(jn,"a"),gr.call(In,"a"),jn.lastIndex!==0||In.lastIndex!==0),zi=Ui.UNSUPPORTED_Y||Ui.BROKEN_CARET,$n=/()??/.exec("")[1]!==void 0;(Vn||$n||zi)&&(Ls=function(e){var t,r,n,o,i=this,u=zi&&i.sticky,l=Gs.call(i),s=i.source,d=0,c=e;return u&&((l=l.replace("y","")).indexOf("g")===-1&&(l+="g"),c=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&e[i.lastIndex-1]!==`
19
+ `)&&(s="(?: "+s+")",c=" "+c,d++),r=new RegExp("^(?:"+s+")",l)),$n&&(r=new RegExp("^"+s+"$(?!\\s)",l)),Vn&&(t=i.lastIndex),n=gr.call(u?r:i,c),u?n?(n.input=n.input.slice(d),n[0]=n[0].slice(d),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:Vn&&n&&(i.lastIndex=i.global?n.index+n[0].length:t),$n&&n&&n.length>1&&iv.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(n[o]=void 0)}),n});var Ft=Ls;J({target:"RegExp",proto:!0,forced:/./.exec!==Ft},{exec:Ft});var Hs=RegExp.prototype,Us=Hs.toString,lv=q(function(){return Us.call({source:"a",flags:"b"})!="/a/b"}),sv=Us.name!="toString";(lv||sv)&&Ie(RegExp.prototype,"toString",function(){var e=Z(this),t=String(e.source),r=e.flags;return"/"+t+"/"+String(r===void 0&&e instanceof RegExp&&!("flags"in Hs)?Gs.call(e):r)},{unsafe:!0});var uv=L("species"),cv=!q(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}),Wi="a".replace(/./,"$0")==="$0",Ki=L("replace"),Yi=!!/./[Ki]&&/./[Ki]("a","$0")==="",dv=!q(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),zs=function(e,t,r,n){var o=L(e),i=!q(function(){var f={};return f[o]=function(){return 7},""[e](f)!=7}),u=i&&!q(function(){var f=!1,p=/a/;return e==="split"&&((p={}).constructor={},p.constructor[uv]=function(){return p},p.flags="",p[o]=/./[o]),p.exec=function(){return f=!0,null},p[o](""),!f});if(!i||!u||e==="replace"&&(!cv||!Wi||Yi)||e==="split"&&!dv){var l=/./[o],s=r(o,""[e],function(f,p,h,y,b){return p.exec===Ft?i&&!b?{done:!0,value:l.call(p,h,y)}:{done:!0,value:f.call(h,p,y)}:{done:!1}},{REPLACE_KEEPS_$0:Wi,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Yi}),d=s[0],c=s[1];Ie(String.prototype,e,d),Ie(RegExp.prototype,o,function(f,p){return c.call(f,this,p)})}n&&ue(RegExp.prototype[o],"sham",!0)},fv=L("match"),Ws=function(e){var t;return W(e)&&((t=e[fv])!==void 0?!!t:ke(e)=="RegExp")},Po=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},pv=L("species"),hv=function(e){return function(t,r){var n,o,i=String(Re(t)),u=mt(r),l=i.length;return u<0||u>=l?e?"":void 0:(n=i.charCodeAt(u))<55296||n>56319||u+1===l||(o=i.charCodeAt(u+1))<56320||o>57343?e?i.charAt(u):n:e?i.slice(u,u+2):o-56320+(n-55296<<10)+65536}},Ks={charAt:hv(!0)},vv=Ks.charAt,Ys=function(e,t,r){return t+(r?vv(e,t).length:1)},oo=function(e,t){var r=e.exec;if(typeof r=="function"){var n=r.call(e,t);if(typeof n!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return n}if(ke(e)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return Ft.call(e,t)},gv=[].push,mv=Math.min,tt=!q(function(){return!RegExp(4294967295,"y")});zs("split",2,function(e,t,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var u=String(Re(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[u];if(!Ws(o))return t.call(u,o,l);for(var s,d,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),h=0,y=new RegExp(o.source,p+"g");(s=Ft.call(y,u))&&!((d=y.lastIndex)>h&&(f.push(u.slice(h,s.index)),s.length>1&&s.index<u.length&&gv.apply(f,s.slice(1)),c=s[0].length,h=d,f.length>=l));)y.lastIndex===s.index&&y.lastIndex++;return h===u.length?!c&&y.test("")||f.push(""):f.push(u.slice(h)),f.length>l?f.slice(0,l):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:t.call(this,o,i)}:t,[function(o,i){var u=Re(this),l=o?.[e];return l!==void 0?l.call(o,u,i):n.call(String(u),o,i)},function(o,i){var u=r(n,o,this,i,n!==t);if(u.done)return u.value;var l=Z(o),s=String(this),d=(function(O,k){var E,R=Z(O).constructor;return R===void 0||(E=Z(R)[pv])==null?k:Po(E)})(l,RegExp),c=l.unicode,f=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(tt?"y":"g"),p=new d(tt?l:"^(?:"+l.source+")",f),h=i===void 0?4294967295:i>>>0;if(h===0)return[];if(s.length===0)return oo(p,s)===null?[s]:[];for(var y=0,b=0,v=[];b<s.length;){p.lastIndex=tt?b:0;var g,m=oo(p,tt?s:s.slice(b));if(m===null||(g=mv(ie(p.lastIndex+(tt?0:b)),s.length))===y)b=Ys(s,b,c);else{if(v.push(s.slice(y,b)),v.length===h)return v;for(var C=1;C<=m.length-1;C++)if(v.push(m[C]),v.length===h)return v;b=y=g}}return v.push(s.slice(y)),v}]},!tt);var ao=`
20
+ \v\f\r                 \u2028\u2029\uFEFF`,mr="["+ao+"]",yv=RegExp("^"+mr+mr+"*"),bv=RegExp(mr+mr+"*$"),Cv=function(e){return function(t){var r=String(Re(t));return 1&e&&(r=r.replace(yv,"")),2&e&&(r=r.replace(bv,"")),r}},wv={trim:Cv(3)},Sv=wv.trim;J({target:"String",proto:!0,forced:(function(e){return q(function(){return!!ao[e]()||"​…᠎"[e]()!="​…᠎"||ao[e].name!==e})})("trim")},{trim:function(){return Sv(this)}});var Ov=No("slice"),xv=yt("slice",{ACCESSORS:!0,0:0,1:2}),Ev=L("species"),kv=[].slice,_v=Math.max;J({target:"Array",proto:!0,forced:!Ov||!xv},{slice:function(e,t){var r,n,o,i=gt(this),u=ie(i.length),l=fr(e,u),s=fr(t===void 0?u:t,u);if(ft(i)&&(typeof(r=i.constructor)!="function"||r!==Array&&!ft(r.prototype)?W(r)&&(r=r[Ev])===null&&(r=void 0):r=void 0,r===Array||r===void 0))return kv.call(i,l,s);for(n=new(r===void 0?Array:r)(_v(s-l,0)),o=0;l<s;l++,o++)l in i&&pt(n,o,i[l]);return n.length=o,n}});var Ro=Object.keys||function(e){return Bs(e,pr)},Tv=q(function(){Ro(1)});J({target:"Object",stat:!0,forced:Tv},{keys:function(e){return Ro(Ne(e))}});var Bn,Nv=function(e){if(Ws(e))throw TypeError("The method doesn't accept regular expressions");return e},Av=L("match"),Pv=xo.f,Xi="".startsWith,Rv=Math.min,Xs=(function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Av]=!1,"/./"[e](t)}catch{}}return!1})("startsWith"),jv=!(Xs||(Bn=Pv(String.prototype,"startsWith"),!Bn||Bn.writable));function Js(e){return(Js=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})(e)}J({target:"String",proto:!0,forced:!jv&&!Xs},{startsWith:function(e){var t=String(Re(this));Nv(e);var r=ie(Rv(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return Xi?Xi.call(t,n,r):t.slice(r,r+n.length)===n}});var rt=function(e){return typeof e=="string"},nt=function(e){return e!==null&&Js(e)==="object"},Mt=(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"isWindow",value:function(t){return t===window}},{key:"addEventListener",value:function(t,r,n){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&r&&n&&t.addEventListener(r,n,o)}},{key:"removeEventListener",value:function(t,r,n){var o=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t&&r&&n&&t.removeEventListener(r,n,o)}},{key:"triggerDragEvent",value:function(t,r){var n=!1,o=function(u){var l;(l=r.drag)===null||l===void 0||l.call(r,u)},i=function u(l){var s;e.removeEventListener(document,"mousemove",o),e.removeEventListener(document,"mouseup",u),document.onselectstart=null,document.ondragstart=null,n=!1,(s=r.end)===null||s===void 0||s.call(r,l)};e.addEventListener(t,"mousedown",function(u){var l;n||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},e.addEventListener(document,"mousemove",o),e.addEventListener(document,"mouseup",i),n=!0,(l=r.start)===null||l===void 0||l.call(r,u))})}},{key:"getBoundingClientRect",value:function(t){return t&&nt(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,r){return!!(t&&nt(t)&&rt(r)&&t.nodeType===1)&&t.classList.contains(r.trim())}},{key:"addClass",value:function(t,r){if(t&&nt(t)&&rt(r)&&t.nodeType===1&&(r=r.trim(),!e.hasClass(t,r))){var n=t.className;t.className=n?n+" "+r:r}}},{key:"removeClass",value:function(t,r){if(t&&nt(t)&&rt(r)&&t.nodeType===1&&typeof t.className=="string"){r=r.trim();for(var n=t.className.trim().split(" "),o=n.length-1;o>=0;o--)n[o]=n[o].trim(),n[o]&&n[o]!==r||n.splice(o,1);t.className=n.join(" ")}}},{key:"toggleClass",value:function(t,r,n){t&&nt(t)&&rt(r)&&t.nodeType===1&&t.classList.toggle(r,n)}},{key:"replaceClass",value:function(t,r,n){t&&nt(t)&&rt(r)&&rt(n)&&t.nodeType===1&&(r=r.trim(),n=n.trim(),e.removeClass(t,r),e.addClass(t,n))}},{key:"getScrollTop",value:function(t){var r="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(r,0)}},{key:"setScrollTop",value:function(t,r){"scrollTop"in t?t.scrollTop=r:t.scrollTo(t.scrollX,r)}},{key:"getRootScrollTop",value:function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},{key:"setRootScrollTop",value:function(t){e.setScrollTop(window,t),e.setScrollTop(document.body,t)}},{key:"getElementTop",value:function(t,r){if(e.isWindow(t))return 0;var n=r?e.getScrollTop(r):e.getRootScrollTop();return t.getBoundingClientRect().top+n}},{key:"getVisibleHeight",value:function(t){return e.isWindow(t)?t.innerHeight:t.getBoundingClientRect().height}},{key:"isHidden",value:function(t){if(!t)return!1;var r=window.getComputedStyle(t),n=r.display==="none",o=t.offsetParent===null&&r.position!=="fixed";return n||o}},{key:"triggerEvent",value:function(t,r){if("createEvent"in document){var n=document.createEvent("HTMLEvents");n.initEvent(r,!1,!0),t.dispatchEvent(n)}}},{key:"calcAngle",value:function(t,r){var n=t.getBoundingClientRect(),o=n.left+n.width/2,i=n.top+n.height/2,u=Math.abs(o-r.clientX),l=Math.abs(i-r.clientY),s=l/Math.sqrt(Math.pow(u,2)+Math.pow(l,2)),d=Math.acos(s),c=Math.floor(180/(Math.PI/d));return r.clientX>o&&r.clientY>i&&(c=180-c),r.clientX==o&&r.clientY>i&&(c=180),r.clientX>o&&r.clientY==i&&(c=90),r.clientX<o&&r.clientY>i&&(c=180+c),r.clientX<o&&r.clientY==i&&(c=270),r.clientX<o&&r.clientY<i&&(c=360-c),c}},{key:"querySelector",value:function(t,r){return r?r.querySelector(t):document.querySelector(t)}},{key:"createElement",value:function(t){for(var r=document.createElement(t),n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];for(var u=0;u<o.length;u++)o[u]&&r.classList.add(o[u]);return r}},{key:"appendChild",value:function(t){for(var r=0;r<(arguments.length<=1?0:arguments.length-1);r++)t.appendChild(r+1<1||arguments.length<=r+1?void 0:arguments[r+1])}},{key:"getWindow",value:function(t){if(t.toString()!=="[object Window]"){var r=t.ownerDocument;return r&&r.defaultView||window}return t}},{key:"isElement",value:function(t){return t instanceof this.getWindow(t).Element||t instanceof Element}},{key:"isHTMLElement",value:function(t){return t instanceof this.getWindow(t).HTMLElement||t instanceof HTMLElement}},{key:"isShadowRoot",value:function(t){return typeof ShadowRoot<"u"&&(t instanceof this.getWindow(t).ShadowRoot||t instanceof ShadowRoot)}},{key:"getWindowScroll",value:function(t){var r=this.getWindow(t);return{scrollLeft:r.pageXOffset||0,scrollTop:r.pageYOffset||0}}}]),e})(),Iv=Math.floor,Vv="".replace,$v=/\$([$&'`]|\d\d?|<[^>]*>)/g,Bv=/\$([$&'`]|\d\d?)/g,Fv=function(e,t,r,n,o,i){var u=r+e.length,l=n.length,s=Bv;return o!==void 0&&(o=Ne(o),s=$v),Vv.call(i,s,function(d,c){var f;switch(c.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(u);case"<":f=o[c.slice(1,-1)];break;default:var p=+c;if(p===0)return d;if(p>l){var h=Iv(p/10);return h===0?d:h<=l?n[h-1]===void 0?c.charAt(1):n[h-1]+c.charAt(1):d}f=n[p-1]}return f===void 0?"":f})},Mv=Math.max,qv=Math.min;zs("replace",2,function(e,t,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=n.REPLACE_KEEPS_$0,u=o?"$":"$0";return[function(l,s){var d=Re(this),c=l?.[e];return c!==void 0?c.call(l,d,s):t.call(String(d),l,s)},function(l,s){if(!o&&i||typeof s=="string"&&s.indexOf(u)===-1){var d=r(t,l,this,s);if(d.done)return d.value}var c=Z(l),f=String(this),p=typeof s=="function";p||(s=String(s));var h=c.global;if(h){var y=c.unicode;c.lastIndex=0}for(var b=[];;){var v=oo(c,f);if(v===null||(b.push(v),!h))break;String(v[0])===""&&(c.lastIndex=Ys(f,ie(c.lastIndex),y))}for(var g,m="",C=0,O=0;O<b.length;O++){v=b[O];for(var k=String(v[0]),E=Mv(qv(mt(v.index),f.length),0),R=[],B=1;B<v.length;B++)R.push((g=v[B])===void 0?g:String(g));var I=v.groups;if(p){var F=[k].concat(R,E,f);I!==void 0&&F.push(I);var S=String(s.apply(void 0,F))}else S=Fv(k,f,E,R,I,s);E>=C&&(m+=f.slice(C,E)+S,C=E+k.length)}return m+f.slice(C)}]});(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"camelize",value:function(t){return t.replace(/-(\w)/g,function(r,n){return n?n.toUpperCase():""})}},{key:"capitalize",value:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}}]),e})();(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"_clone",value:function(){}}]),e})();var Zs=L("isConcatSpreadable"),Dv=vr>=51||!q(function(){var e=[];return e[Zs]=!1,e.concat()[0]!==e}),Gv=No("concat"),Lv=function(e){if(!W(e))return!1;var t=e[Zs];return t!==void 0?!!t:ft(e)};J({target:"Array",proto:!0,forced:!Dv||!Gv},{concat:function(e){var t,r,n,o,i,u=Ne(this),l=Ar(u,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(Lv(i=t===-1?u:arguments[t])){if(s+(o=ie(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&pt(l,s,i[r])}else{if(s>=9007199254740991)throw TypeError("Maximum allowed index exceeded");pt(l,s++,i)}return l.length=s,l}});var Fn,zt=function(e,t,r){if(Po(e),t===void 0)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,i){return e.call(t,n,o,i)}}return function(){return e.apply(t,arguments)}},Ji=[].push,Zi=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,u=e==7,l=e==5||i;return function(s,d,c,f){for(var p,h,y=Ne(s),b=_r(y),v=zt(d,c,3),g=ie(b.length),m=0,C=f||Ar,O=t?C(s,g):r||u?C(s,0):void 0;g>m;m++)if((l||m in b)&&(h=v(p=b[m],m,y),e))if(t)O[m]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return m;case 2:Ji.call(O,p)}else switch(e){case 4:return!1;case 7:Ji.call(O,p)}return i?-1:n||o?o:O}},Qs={find:Zi(5),findIndex:Zi(6)},Hv=le?Object.defineProperties:function(e,t){Z(e);for(var r,n=Ro(t),o=n.length,i=0;o>i;)Te.f(e,r=n[i++],t[r]);return e},Uv=Nr("document","documentElement"),eu=_o("IE_PROTO"),Mn=function(){},Qi=function(e){return"<script>"+e+"<\/script>"},ar=function(){try{Fn=document.domain&&new ActiveXObject("htmlfile")}catch{}var e,t;ar=Fn?(function(n){n.write(Qi("")),n.close();var o=n.parentWindow.Object;return n=null,o})(Fn):((t=Rs("iframe")).style.display="none",Uv.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Qi("document.F=Object")),e.close(),e.F);for(var r=pr.length;r--;)delete ar.prototype[pr[r]];return ar()};Tr[eu]=!0;var jo=Object.create||function(e,t){var r;return e!==null?(Mn.prototype=Z(e),r=new Mn,Mn.prototype=null,r[eu]=e):r=ar(),t===void 0?r:Hv(r,t)},io=L("unscopables"),lo=Array.prototype;lo[io]==null&&Te.f(lo,io,{configurable:!0,value:jo(null)});var at=function(e){lo[io][e]=!0},zv=Qs.find,el=!0,Wv=yt("find");"find"in[]&&Array(1).find(function(){el=!1}),J({target:"Array",proto:!0,forced:el||!Wv},{find:function(e){return zv(this,e,arguments.length>1?arguments[1]:void 0)}}),at("find");var Kv=Qs.findIndex,tl=!0,Yv=yt("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){tl=!1}),J({target:"Array",proto:!0,forced:tl||!Yv},{findIndex:function(e){return Kv(this,e,arguments.length>1?arguments[1]:void 0)}}),at("findIndex");var tu=function(e,t,r,n,o,i,u,l){for(var s,d=o,c=0,f=!!u&&zt(u,l,3);c<n;){if(c in r){if(s=f?f(r[c],c,t):r[c],i>0&&ft(s))d=tu(e,t,s,ie(s.length),d,i-1)-1;else{if(d>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[d]=s}d++}c++}return d},Xv=tu;J({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Ne(this),r=ie(t.length),n=Ar(t,0);return n.length=Xv(n,t,t,r,0,e===void 0?1:mt(e)),n}});var so=function(e){var t=e.return;if(t!==void 0)return Z(t.call(e)).value},Jv=function(e,t,r,n){try{return n?t(Z(r)[0],r[1]):t(r)}catch(o){throw so(e),o}},ht={},Zv=L("iterator"),Qv=Array.prototype,ru=function(e){return e!==void 0&&(ht.Array===e||Qv[Zv]===e)},eg=L("iterator"),nu=function(e){if(e!=null)return e[eg]||e["@@iterator"]||ht[Ds(e)]},ou=L("iterator"),au=!1;try{var tg=0,rl={next:function(){return{done:!!tg++}},return:function(){au=!0}};rl[ou]=function(){return this},Array.from(rl,function(){throw 2})}catch{}var iu=function(e,t){if(!au)return!1;var r=!1;try{var n={};n[ou]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},rg=!iu(function(e){Array.from(e)});J({target:"Array",stat:!0,forced:rg},{from:function(e){var t,r,n,o,i,u,l=Ne(e),s=typeof this=="function"?this:Array,d=arguments.length,c=d>1?arguments[1]:void 0,f=c!==void 0,p=nu(l),h=0;if(f&&(c=zt(c,d>2?arguments[2]:void 0,2)),p==null||s==Array&&ru(p))for(r=new s(t=ie(l.length));t>h;h++)u=f?c(l[h],h):l[h],pt(r,h,u);else for(i=(o=p.call(l)).next,r=new s;!(n=i.call(o)).done;h++)u=f?Jv(o,c,[n.value,h],!0):n.value,pt(r,h,u);return r.length=h,r}});var ng=function(e){return function(t,r,n,o){Po(r);var i=Ne(t),u=_r(i),l=ie(i.length),s=e?l-1:0,d=e?-1:1;if(n<2)for(;;){if(s in u){o=u[s],s+=d;break}if(s+=d,e?s<0:l<=s)throw TypeError("Reduce of empty array with no initial value")}for(;e?s>=0:l>s;s+=d)s in u&&(o=r(o,u[s],s,i));return o}},og={left:ng(!1)},ag=ke(z.process)=="process",ig=og.left,lg=To("reduce"),sg=yt("reduce",{1:0});J({target:"Array",proto:!0,forced:!lg||!sg||!ag&&vr>79&&vr<83},{reduce:function(e){return ig(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}}),at("flat");var Me,nl,ol,ug=!q(function(){return Object.isExtensible(Object.preventExtensions({}))}),lu=So(function(e){var t=Te.f,r=ko("meta"),n=0,o=Object.isExtensible||function(){return!0},i=function(l){t(l,r,{value:{objectID:"O"+ ++n,weakData:{}}})},u=e.exports={REQUIRED:!1,fastKey:function(l,s){if(!W(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!U(l,r)){if(!o(l))return"F";if(!s)return"E";i(l)}return l[r].objectID},getWeakData:function(l,s){if(!U(l,r)){if(!o(l))return!0;if(!s)return!1;i(l)}return l[r].weakData},onFreeze:function(l){return ug&&u.REQUIRED&&o(l)&&!U(l,r)&&i(l),l}};Tr[r]=!0}),Ot=function(e,t){this.stopped=e,this.result=t},al=function(e,t,r){var n,o,i,u,l,s,d,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),y=zt(t,c,1+f+h),b=function(g){return n&&so(n),new Ot(!0,g)},v=function(g){return f?(Z(g),h?y(g[0],g[1],b):y(g[0],g[1])):h?y(g,b):y(g)};if(p)n=e;else{if(typeof(o=nu(e))!="function")throw TypeError("Target is not iterable");if(ru(o)){for(i=0,u=ie(e.length);u>i;i++)if((l=v(e[i]))&&l instanceof Ot)return l;return new Ot(!1)}n=o.call(e)}for(s=n.next;!(d=s.call(n)).done;){try{l=v(d.value)}catch(g){throw so(n),g}if(typeof l=="object"&&l&&l instanceof Ot)return l}return new Ot(!1)},il=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},cg=Te.f,ll=L("toStringTag"),uo=function(e,t,r){e&&!U(e=r?e:e.prototype,ll)&&cg(e,ll,{configurable:!0,value:t})},yr=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch{}return function(n,o){return Z(n),(function(i){if(!W(i)&&i!==null)throw TypeError("Can't set "+String(i)+" as a prototype")})(o),t?e.call(n,o):n.__proto__=o,n}})():void 0),sl=function(e,t,r){for(var n in t)Ie(e,n,t[n],r);return e},dg=!q(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ul=_o("IE_PROTO"),fg=Object.prototype,br=dg?Object.getPrototypeOf:function(e){return e=Ne(e),U(e,ul)?e[ul]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?fg:null},qn=L("iterator"),su=!1;[].keys&&("next"in(ol=[].keys())?(nl=br(br(ol)))!==Object.prototype&&(Me=nl):su=!0),(Me==null||q(function(){var e={};return Me[qn].call(e)!==e}))&&(Me={}),U(Me,qn)||ue(Me,qn,function(){return this});var Io={IteratorPrototype:Me,BUGGY_SAFARI_ITERATORS:su},pg=Io.IteratorPrototype,hg=function(){return this},Dn=Io.IteratorPrototype,rr=Io.BUGGY_SAFARI_ITERATORS,xt=L("iterator"),vg=function(){return this},Vo=function(e,t,r,n,o,i,u){(function(g,m,C){var O=m+" Iterator";g.prototype=jo(pg,{next:kr(1,C)}),uo(g,O,!1),ht[O]=hg})(r,t,n);var l,s,d,c=function(g){if(g===o&&b)return b;if(!rr&&g in h)return h[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,y=h[xt]||h["@@iterator"]||o&&h[o],b=!rr&&y||c(o),v=t=="Array"&&h.entries||y;if(v&&(l=br(v.call(new e)),Dn!==Object.prototype&&l.next&&(br(l)!==Dn&&(yr?yr(l,Dn):typeof l[xt]!="function"&&ue(l,xt,vg)),uo(l,f,!0))),o=="values"&&y&&y.name!=="values"&&(p=!0,b=function(){return y.call(this)}),h[xt]!==b&&ue(h,xt,b),ht[t]=b,o)if(s={values:c("values"),keys:i?b:c("keys"),entries:c("entries")},u)for(d in s)(rr||p||!(d in h))&&Ie(h,d,s[d]);else J({target:t,proto:!0,forced:rr||p},s);return s},cl=L("species"),gg=Te.f,dl=lu.fastKey,fl=je.set,Gn=je.getterFor;(function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",u=z[e],l=u&&u.prototype,s=u,d={},c=function(v){var g=l[v];Ie(l,v,v=="add"?function(m){return g.call(this,m===0?0:m),this}:v=="delete"?function(m){return!(o&&!W(m))&&g.call(this,m===0?0:m)}:v=="get"?function(m){return o&&!W(m)?void 0:g.call(this,m===0?0:m)}:v=="has"?function(m){return!(o&&!W(m))&&g.call(this,m===0?0:m)}:function(m,C){return g.call(this,m===0?0:m,C),this})};if(no(e,typeof u!="function"||!(o||l.forEach&&!q(function(){new u().entries().next()}))))s=r.getConstructor(t,e,n,i),lu.REQUIRED=!0;else if(no(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,h=q(function(){f.has(1)}),y=iu(function(v){new u(v)}),b=!o&&q(function(){for(var v=new u,g=5;g--;)v[i](g,g);return!v.has(-0)});y||((s=t(function(v,g){il(v,s,e);var m=(function(C,O,k){var E,R;return yr&&typeof(E=O.constructor)=="function"&&E!==k&&W(R=E.prototype)&&R!==k.prototype&&yr(C,R),C})(new u,v,s);return g!=null&&al(g,m[i],{that:m,AS_ENTRIES:n}),m})).prototype=l,l.constructor=s),(h||b)&&(c("delete"),c("has"),n&&c("get")),(b||p)&&c(i),o&&l.clear&&delete l.clear}d[e]=s,J({global:!0,forced:s!=u},d),uo(s,e),o||r.setStrong(s,e,n)})("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},{getConstructor:function(e,t,r,n){var o=e(function(s,d){il(s,o,t),fl(s,{type:t,index:jo(null),first:void 0,last:void 0,size:0}),le||(s.size=0),d!=null&&al(d,s[n],{that:s,AS_ENTRIES:r})}),i=Gn(t),u=function(s,d,c){var f,p,h=i(s),y=l(s,d);return y?y.value=c:(h.last=y={index:p=dl(d,!0),key:d,value:c,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=y),f&&(f.next=y),le?h.size++:s.size++,p!=="F"&&(h.index[p]=y)),s},l=function(s,d){var c,f=i(s),p=dl(d);if(p!=="F")return f.index[p];for(c=f.first;c;c=c.next)if(c.key==d)return c};return sl(o.prototype,{clear:function(){for(var s=i(this),d=s.index,c=s.first;c;)c.removed=!0,c.previous&&(c.previous=c.previous.next=void 0),delete d[c.index],c=c.next;s.first=s.last=void 0,le?s.size=0:this.size=0},delete:function(s){var d=this,c=i(d),f=l(d,s);if(f){var p=f.next,h=f.previous;delete c.index[f.index],f.removed=!0,h&&(h.next=p),p&&(p.previous=h),c.first==f&&(c.first=p),c.last==f&&(c.last=h),le?c.size--:d.size--}return!!f},forEach:function(s){for(var d,c=i(this),f=zt(s,arguments.length>1?arguments[1]:void 0,3);d=d?d.next:c.first;)for(f(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function(s){return!!l(this,s)}}),sl(o.prototype,r?{get:function(s){var d=l(this,s);return d&&d.value},set:function(s,d){return u(this,s===0?0:s,d)}}:{add:function(s){return u(this,s=s===0?0:s,s)}}),le&&gg(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=Gn(t),i=Gn(n);Vo(e,t,function(u,l){fl(this,{type:n,target:u,state:o(u),kind:l,last:void 0})},function(){for(var u=i(this),l=u.kind,s=u.last;s&&s.removed;)s=s.previous;return u.target&&(u.last=s=s?s.next:u.state.first)?l=="keys"?{value:s.key,done:!1}:l=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(u.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),(function(u){var l=Nr(u),s=Te.f;le&&l&&!l[cl]&&s(l,cl,{configurable:!0,get:function(){return this}})})(t)}});var mg=Ks.charAt,yg=je.set,bg=je.getterFor("String Iterator");Vo(String,"String",function(e){yg(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=bg(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=mg(r,n),t.index+=e.length,{value:e,done:!1})});var pl={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Cg=je.set,wg=je.getterFor("Array Iterator"),Tt=Vo(Array,"Array",function(e,t){Cg(this,{type:"Array Iterator",target:gt(e),index:0,kind:t})},function(){var e=wg(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");ht.Arguments=ht.Array,at("keys"),at("values"),at("entries");var Ln=L("iterator"),hl=L("toStringTag"),Hn=Tt.values;for(var Un in pl){var vl=z[Un],Oe=vl&&vl.prototype;if(Oe){if(Oe[Ln]!==Hn)try{ue(Oe,Ln,Hn)}catch{Oe[Ln]=Hn}if(Oe[hl]||ue(Oe,hl,Un),pl[Un]){for(var ot in Tt)if(Oe[ot]!==Tt[ot])try{ue(Oe,ot,Tt[ot])}catch{Oe[ot]=Tt[ot]}}}}(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"deduplicate",value:function(t){return Array.from(new Set(t))}},{key:"flat",value:function(t){return t.reduce(function(r,n){var o=Array.isArray(n)?e.flat(n):n;return r.concat(o)},[])}},{key:"find",value:function(t,r){return t.find(r)}},{key:"findIndex",value:function(t,r){return t.findIndex(r)}}]),e})();(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"today",value:function(){return new Date}}]),e})();(function(){function e(){Xe(this,e)}return Je(e,null,[{key:"range",value:function(t,r,n){return Math.min(Math.max(t,r),n)}},{key:"clamp",value:function(t,r,n){return r<n?t<r?r:t>n?n:t:t<n?n:t>r?r:t}}]),e})();var Sg=Object.defineProperty,Og=(e,t,r)=>t in e?Sg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Y=(e,t,r)=>(Og(e,typeof t!="symbol"?t+"":t,r),r);const H=e=>Math.round(e*100)/100;class G{constructor(t){Y(this,"instance"),Y(this,"alphaValue",0),Y(this,"redValue",0),Y(this,"greenValue",0),Y(this,"blueValue",0),Y(this,"hueValue",0),Y(this,"saturationValue",0),Y(this,"brightnessValue",0),Y(this,"hslSaturationValue",0),Y(this,"lightnessValue",0),Y(this,"initAlpha",()=>{const r=this.instance.getAlpha();this.alphaValue=Math.min(1,r)*100}),Y(this,"initLightness",()=>{const{s:r,l:n}=this.instance.toHsl();this.hslSaturationValue=H(r),this.lightnessValue=H(n)}),Y(this,"initRgb",()=>{const{r,g:n,b:o}=this.instance.toRgb();this.redValue=H(r),this.greenValue=H(n),this.blueValue=H(o)}),Y(this,"initHsb",()=>{const{h:r,s:n,v:o}=this.instance.toHsv();this.hueValue=Math.min(360,Math.ceil(r)),this.saturationValue=H(n),this.brightnessValue=H(o)}),Y(this,"toHexString",()=>this.instance.toHexString()),Y(this,"toRgbString",()=>this.instance.toRgbString()),this.instance=x(t),this.initRgb(),this.initHsb(),this.initLightness(),this.initAlpha()}toString(t){return this.instance.toString(t)}get hex(){return this.instance.toHex()}set hex(t){this.instance=x(t),this.initHsb(),this.initRgb(),this.initAlpha(),this.initLightness()}set hue(t){this.saturation===0&&this.brightness===0&&(this.saturationValue=1,this.brightnessValue=1),this.instance=x({h:H(t),s:this.saturation,v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.hueValue=H(t)}get hue(){return this.hueValue}set saturation(t){this.instance=x({h:this.hue,s:H(t),v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.saturationValue=H(t)}get saturation(){return this.saturationValue}set brightness(t){this.instance=x({h:this.hue,s:this.saturation,v:H(t),a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.brightnessValue=H(t)}get brightness(){return this.brightnessValue}set lightness(t){this.instance=x({h:this.hue,s:this.hslSaturationValue,l:H(t),a:this.alphaValue/100}),this.initRgb(),this.initHsb(),this.lightnessValue=H(t)}get lightness(){return this.lightnessValue}set red(t){const r=this.instance.toRgb();this.instance=x({...r,r:H(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.redValue=H(t)}get red(){return this.redValue}set green(t){const r=this.instance.toRgb();this.instance=x({...r,g:H(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.greenValue=H(t)}get green(){return this.greenValue}set blue(t){const r=this.instance.toRgb();this.instance=x({...r,b:H(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.blueValue=H(t)}get blue(){return this.blueValue}set alpha(t){this.instance.setAlpha(t/100),this.alphaValue=t}get alpha(){return this.alphaValue}get RGB(){return[this.red,this.green,this.blue,parseFloat((this.alpha/100).toFixed(2))]}get HSB(){return[this.hue,this.saturation,this.brightness,parseFloat((this.alpha/100).toFixed(2))]}get HSL(){return[this.hue,this.hslSaturationValue,this.lightness,parseFloat((this.alpha/100).toFixed(2))]}}function gl(e,t,r,n){return`rgba(${[e,t,r,n/100].join(",")})`}const zn=(e,t,r)=>t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e,$o="color-history",Bo=8,fe=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},xg=a.defineComponent({name:"Alpha",props:{color:P.instanceOf(G),size:P.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=a.ref(null),n=a.ref(null);let o=e.color||new G;const i=a.reactive({red:o.red,green:o.green,blue:o.blue,alpha:o.alpha});a.watch(()=>e.color,f=>{f&&(o=f,vt.merge(i,{red:f.red,green:f.green,blue:f.blue,alpha:f.alpha}))},{deep:!0});const u=a.computed(()=>{const f=gl(i.red,i.green,i.blue,0),p=gl(i.red,i.green,i.blue,100);return{background:`linear-gradient(to right, ${f} , ${p})`}}),l=()=>{if(r.value&&n.value){const f=i.alpha/100,p=r.value.getBoundingClientRect(),h=n.value.offsetWidth;return Math.round(f*(p.width-h)+h/2)}return 0},s=a.computed(()=>({left:l()+"px",top:0})),d=f=>{f.target!==r.value&&c(f)},c=f=>{if(f.stopPropagation(),r.value&&n.value){const p=r.value.getBoundingClientRect(),h=n.value.offsetWidth;let y=f.clientX-p.left;y=Math.max(h/2,y),y=Math.min(y,p.width-h/2);const b=Math.round((y-h/2)/(p.width-h)*100);o.alpha=b,i.alpha=b,t("change",b)}};return ze(()=>{const f={drag:p=>{c(p)},end:p=>{c(p)}};r.value&&n.value&&Mt.triggerDragEvent(r.value,f)}),{barElement:r,cursorElement:n,getCursorStyle:s,getBackgroundStyle:u,onClickSider:d}}}),Eg=e=>(a.pushScopeId("data-v-18925ba6"),e=e(),a.popScopeId(),e),kg=Eg(()=>a.createElementVNode("div",{class:"vc-alpha-slider__bar-handle"},null,-1)),_g=[kg];function Tg(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-alpha-slider","transparent",{"small-slider":e.size==="small"}])},[a.createElementVNode("div",{ref:"barElement",class:"vc-alpha-slider__bar",style:a.normalizeStyle(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickSider&&e.onClickSider(...u))},[a.createElementVNode("div",{class:a.normalizeClass(["vc-alpha-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},_g,6)],4)],2)}const Fo=fe(xg,[["render",Tg],["__scopeId","data-v-18925ba6"]]),Ng=[["#fcc02e","#f67c01","#e64a19","#d81b43","#8e24aa","#512da7","#1f87e8","#008781","#05a045"],["#fed835","#fb8c00","#f5511e","#eb1d4e","#9c28b1","#5d35b0","#2097f3","#029688","#4cb050"],["#ffeb3c","#ffa727","#fe5722","#eb4165","#aa47bc","#673bb7","#42a5f6","#26a59a","#83c683"],["#fff176","#ffb74e","#ff8a66","#f1627e","#b968c7","#7986cc","#64b5f6","#80cbc4","#a5d6a7"],["#fff59c","#ffcc80","#ffab91","#fb879e","#cf93d9","#9ea8db","#90caf8","#b2dfdc","#c8e6ca"],["transparent","#ffffff","#dedede","#a9a9a9","#4b4b4b","#353535","#212121","#000000","advance"]],Ag=a.defineComponent({name:"Palette",emits:["change"],setup(e,{emit:t}){return{palettes:Ng,computedBgStyle:r=>r==="transparent"?r:r==="advance"?{}:{background:x(r).toRgbString()},onColorChange:r=>{t("change",r)}}}}),Pg={class:"vc-compact"},Rg=["onClick"];function jg(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",Pg,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.palettes,(u,l)=>(a.openBlock(),a.createElementBlock("div",{key:l,class:"vc-compact__row"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u,(s,d)=>(a.openBlock(),a.createElementBlock("div",{key:d,class:"vc-compact__color-cube--wrap",onClick:c=>e.onColorChange(s)},[a.createElementVNode("div",{class:a.normalizeClass(["vc-compact__color_cube",{advance:s==="advance",transparent:s==="transparent"}]),style:a.normalizeStyle(e.computedBgStyle(s))},null,6)],8,Rg))),128))]))),128))])}const uu=fe(Ag,[["render",jg],["__scopeId","data-v-b969fd48"]]),Ig=a.defineComponent({name:"Board",props:{color:P.instanceOf(G),round:P.bool.def(!1),hide:P.bool.def(!0)},emits:["change"],setup(e,{emit:t}){var r,n,o;const i=a.getCurrentInstance(),u={h:((r=e.color)==null?void 0:r.hue)||0,s:1,v:1},l=new G(u).toHexString(),s=a.reactive({hueColor:l,saturation:((n=e.color)==null?void 0:n.saturation)||0,brightness:((o=e.color)==null?void 0:o.brightness)||0}),d=a.ref(0),c=a.ref(0),f=a.ref(),p=a.computed(()=>({top:d.value+"px",left:c.value+"px"})),h=()=>{if(i){const C=i.vnode.el;c.value=s.saturation*C?.clientWidth,d.value=(1-s.brightness)*C?.clientHeight}};let y=!1;const b=C=>{y=!0,m(C)},v=C=>{y&&m(C)},g=()=>{y=!1},m=C=>{if(i){const O=i.vnode.el,k=O?.getBoundingClientRect();let E=C.clientX-k.left,R=C.clientY-k.top;E=zn(E,0,k.width),R=zn(R,0,k.height);const B=E/k.width,I=zn(-(R/k.height)+1,0,1);c.value=E,d.value=R,s.saturation=B,s.brightness=I,t("change",B,I)}};return ze(()=>{i&&i.vnode.el&&f.value&&a.nextTick(()=>{h()})}),X(()=>e.color,C=>{vt.merge(s,{hueColor:new G({h:C.hue,s:1,v:1}).toHexString(),saturation:C.saturation,brightness:C.brightness}),h()},{deep:!0}),{state:s,cursorElement:f,getCursorStyle:p,onClickBoard:b,onDrag:v,onDragEnd:g}}}),Mo=e=>(a.pushScopeId("data-v-7f0cdcdf"),e=e(),a.popScopeId(),e),Vg=Mo(()=>a.createElementVNode("div",{class:"vc-saturation__white"},null,-1)),$g=Mo(()=>a.createElementVNode("div",{class:"vc-saturation__black"},null,-1)),Bg=Mo(()=>a.createElementVNode("div",null,null,-1)),Fg=[Bg];function Mg(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",{ref:"boardElement",class:a.normalizeClass(["vc-saturation",{"vc-saturation__chrome":e.round,"vc-saturation__hidden":e.hide}]),style:a.normalizeStyle({backgroundColor:e.state.hueColor}),onMousedown:t[0]||(t[0]=(...u)=>e.onClickBoard&&e.onClickBoard(...u)),onMousemove:t[1]||(t[1]=(...u)=>e.onDrag&&e.onDrag(...u)),onMouseup:t[2]||(t[2]=(...u)=>e.onDragEnd&&e.onDragEnd(...u))},[Vg,$g,a.createElementVNode("div",{class:"vc-saturation__cursor",ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},Fg,4)],38)}const qo=fe(Ig,[["render",Mg],["__scopeId","data-v-7f0cdcdf"]]),qg=a.defineComponent({name:"Hue",props:{color:P.instanceOf(G),size:P.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=a.ref(null),n=a.ref(null);let o=e.color||new G;const i=a.reactive({hue:o.hue||0});a.watch(()=>e.color,c=>{c&&(o=c,vt.merge(i,{hue:o.hue}))},{deep:!0});const u=()=>{if(r.value&&n.value){const c=r.value.getBoundingClientRect(),f=n.value.offsetWidth;return i.hue===360?c.width-f/2:i.hue%360*(c.width-f)/360+f/2}return 0},l=a.computed(()=>({left:u()+"px",top:0})),s=c=>{c.target!==r.value&&d(c)},d=c=>{if(c.stopPropagation(),r.value&&n.value){const f=r.value.getBoundingClientRect(),p=n.value.offsetWidth;let h=c.clientX-f.left;h=Math.min(h,f.width-p/2),h=Math.max(p/2,h);const y=Math.round((h-p/2)/(f.width-p)*360);o.hue=y,i.hue=y,t("change",y)}};return ze(()=>{const c={drag:f=>{d(f)},end:f=>{d(f)}};r.value&&n.value&&Mt.triggerDragEvent(r.value,c)}),{barElement:r,cursorElement:n,getCursorStyle:l,onClickSider:s}}}),Dg=e=>(a.pushScopeId("data-v-e1a08576"),e=e(),a.popScopeId(),e),Gg=Dg(()=>a.createElementVNode("div",{class:"vc-hue-slider__bar-handle"},null,-1)),Lg=[Gg];function Hg(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-hue-slider",{"small-slider":e.size==="small"}])},[a.createElementVNode("div",{ref:"barElement",class:"vc-hue-slider__bar",onClick:t[0]||(t[0]=(...u)=>e.onClickSider&&e.onClickSider(...u))},[a.createElementVNode("div",{class:a.normalizeClass(["vc-hue-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},Lg,6)],512)],2)}const Do=fe(qg,[["render",Hg],["__scopeId","data-v-e1a08576"]]),Ug=a.defineComponent({name:"Lightness",props:{color:P.instanceOf(G),size:P.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=a.ref(null),n=a.ref(null);let o=e.color||new G;const[i,u,l]=o.HSL,s=a.reactive({hue:i,saturation:u,lightness:l});a.watch(()=>e.color,y=>{if(y){o=y;const[b,v,g]=o.HSL;vt.merge(s,{hue:b,saturation:v,lightness:g})}},{deep:!0});const d=a.computed(()=>{const y=x({h:s.hue,s:s.saturation,l:.8}).toPercentageRgbString(),b=x({h:s.hue,s:s.saturation,l:.6}).toPercentageRgbString(),v=x({h:s.hue,s:s.saturation,l:.4}).toPercentageRgbString(),g=x({h:s.hue,s:s.saturation,l:.2}).toPercentageRgbString();return{background:[`linear-gradient(to right, rgb(255, 255, 255), ${y}, ${b}, ${v}, ${g}, rgb(0, 0, 0))`,`-webkit-linear-gradient(left, rgb(255, 255, 255), ${y}, ${b}, ${v}, ${g}, rgb(0, 0, 0))`,`-moz-linear-gradient(left, rgb(255, 255, 255), ${y}, ${b}, ${v}, ${g}, rgb(0, 0, 0))`,`-ms-linear-gradient(left, rgb(255, 255, 255), ${y}, ${b}, ${v}, ${g}, rgb(0, 0, 0))`]}}),c=()=>{if(r.value&&n.value){const y=s.lightness,b=r.value.getBoundingClientRect(),v=n.value.offsetWidth;return(1-y)*(b.width-v)+v/2}return 0},f=a.computed(()=>({left:c()+"px",top:0})),p=y=>{y.target!==r.value&&h(y)},h=y=>{if(y.stopPropagation(),r.value&&n.value){const b=r.value.getBoundingClientRect(),v=n.value.offsetWidth;let g=y.clientX-b.left;g=Math.max(v/2,g),g=Math.min(g,b.width-v/2);const m=1-(g-v/2)/(b.width-v);o.lightness=m,t("change",m)}};return ze(()=>{const y={drag:b=>{h(b)},end:b=>{h(b)}};r.value&&n.value&&Mt.triggerDragEvent(r.value,y)}),{barElement:r,cursorElement:n,getCursorStyle:f,getBackgroundStyle:d,onClickSider:p}}}),zg=e=>(a.pushScopeId("data-v-94a50a9e"),e=e(),a.popScopeId(),e),Wg=zg(()=>a.createElementVNode("div",{class:"vc-lightness-slider__bar-handle"},null,-1)),Kg=[Wg];function Yg(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-lightness-slider",{"small-slider":e.size==="small"}])},[a.createElementVNode("div",{ref:"barElement",class:"vc-lightness-slider__bar",style:a.normalizeStyle(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickSider&&e.onClickSider(...u))},[a.createElementVNode("div",{class:a.normalizeClass(["vc-lightness-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:a.normalizeStyle(e.getCursorStyle)},Kg,6)],4)],2)}const cu=fe(Ug,[["render",Yg],["__scopeId","data-v-94a50a9e"]]),Xg=a.defineComponent({name:"History",props:{colors:P.arrayOf(String).def(()=>[]),round:P.bool.def(!1)},emits:["change"],setup(e,{emit:t}){return{onColorSelect:r=>{t("change",r)}}}}),Jg={key:0,class:"vc-colorPicker__record"},Zg={class:"color-list"},Qg=["onClick"];function em(e,t,r,n,o,i){return e.colors&&e.colors.length>0?(a.openBlock(),a.createElementBlock("div",Jg,[a.createElementVNode("div",Zg,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.colors,(u,l)=>(a.openBlock(),a.createElementBlock("div",{key:l,class:a.normalizeClass(["color-item","transparent",{"color-item__round":e.round}]),onClick:s=>e.onColorSelect(u)},[a.createElementVNode("div",{class:"color-item__display",style:a.normalizeStyle({backgroundColor:u})},null,4)],10,Qg))),128))])])):a.createCommentVNode("",!0)}const Go=fe(Xg,[["render",em],["__scopeId","data-v-0f657238"]]),tm=a.defineComponent({name:"Display",props:{color:P.instanceOf(G),disableAlpha:P.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){var r,n,o,i;const{copy:u,copied:l,isSupported:s}=Td(),d=a.ref("hex"),c=a.reactive({color:e.color,hex:(r=e.color)==null?void 0:r.hex,alpha:Math.round(((n=e.color)==null?void 0:n.alpha)||100),rgba:(o=e.color)==null?void 0:o.RGB,previewBgColor:(i=e.color)==null?void 0:i.toRgbString()}),f=a.computed(()=>({background:c.previewBgColor})),p=()=>{d.value=d.value==="rgba"?"hex":"rgba"},h=Ee(g=>{if(!g.target.value)return;let m=parseInt(g.target.value.replace("%",""));m>100&&(g.target.value="100",m=100),m<0&&(g.target.value="0",m=0),isNaN(m)&&(g.target.value="100",m=100),!isNaN(m)&&c.color&&(c.color.alpha=m),t("change",c.color)},300),y=Ee((g,m)=>{if(c.color){if(d.value==="hex"){const C=g.target.value.replace("#","");x(C).isValid()?[3,4].includes(C.length)&&(c.color.hex=C):c.color.hex="000000",t("change",c.color)}else if(d.value==="rgba"&&m===3&&g.target.value.toString()==="0."&&c.rgba){c.rgba[m]=g.target.value;const[C,O,k,E]=c.rgba;c.color.hex=x({r:C,g:O,b:k}).toHex(),c.color.alpha=Math.round(E*100),t("change",c.color)}}},100),b=Ee((g,m)=>{if(g.target.value){if(d.value==="hex"){const C=g.target.value.replace("#","");x(C).isValid()&&c.color&&[6,8].includes(C.length)&&(c.color.hex=C)}else if(m!==void 0&&c.rgba&&c.color){if(g.target.value<0&&(g.target.value=0),m===3&&((g.target.value>1||isNaN(g.target.value))&&(g.target.value=1),g.target.value.toString()==="0."))return;m<3&&g.target.value>255&&(g.target.value=255),c.rgba[m]=g.target.value;const[C,O,k,E]=c.rgba;c.color.hex=x({r:C,g:O,b:k}).toHex(),c.color.alpha=Math.round(E*100)}t("change",c.color)}},300),v=()=>{if(s&&c.color){const g=d.value==="hex"?c.color.toString(c.color.alpha===100?"hex6":"hex8"):c.color.toRgbString();u(g||"")}};return X(()=>e.color,g=>{g&&(c.color=g,c.alpha=Math.round(c.color.alpha),c.hex=c.color.hex,c.rgba=c.color.RGB)},{deep:!0}),X(()=>c.color,()=>{c.color&&(c.previewBgColor=c.color.toRgbString())},{deep:!0}),{state:c,getBgColorStyle:f,inputType:d,copied:l,onInputTypeChange:p,onAlphaBlur:h,onInputChange:b,onBlurChange:y,onCopyColorStr:v}}}),rm={class:"vc-display"},nm={class:"vc-current-color vc-transparent"},om={key:0,class:"copy-text"},am={key:0,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},im={class:"vc-color-input"},lm={key:0,class:"vc-alpha-input"},sm=["value"],um={key:1,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},cm=["value","onInput","onBlur"];function dm(e,t,r,n,o,i){return a.openBlock(),a.createElementBlock("div",rm,[a.createElementVNode("div",nm,[a.createElementVNode("div",{class:"color-cube",style:a.normalizeStyle(e.getBgColorStyle),onClick:t[0]||(t[0]=(...u)=>e.onCopyColorStr&&e.onCopyColorStr(...u))},[e.copied?(a.openBlock(),a.createElementBlock("span",om,"Copied!")):a.createCommentVNode("",!0)],4)]),e.inputType==="hex"?(a.openBlock(),a.createElementBlock("div",am,[a.createElementVNode("div",im,[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":t[1]||(t[1]=u=>e.state.hex=u),maxlength:"8",onInput:t[2]||(t[2]=(...u)=>e.onInputChange&&e.onInputChange(...u)),onBlur:t[3]||(t[3]=(...u)=>e.onBlurChange&&e.onBlurChange(...u))},null,544),[[a.vModelText,e.state.hex]])]),e.disableAlpha?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",lm,[a.createElementVNode("input",{class:"vc-alpha-input__inner",value:e.state.alpha,onInput:t[4]||(t[4]=(...u)=>e.onAlphaBlur&&e.onAlphaBlur(...u))},null,40,sm),a.createTextVNode("% ")]))])):e.state.rgba?(a.openBlock(),a.createElementBlock("div",um,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.state.rgba,(u,l)=>(a.openBlock(),a.createElementBlock("div",{class:"vc-color-input",key:l},[a.createElementVNode("input",{value:u,onInput:s=>e.onInputChange(s,l),onBlur:s=>e.onBlurChange(s,l)},null,40,cm)]))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:"vc-input-toggle",onClick:t[5]||(t[5]=(...u)=>e.onInputTypeChange&&e.onInputTypeChange(...u))},a.toDisplayString(e.inputType),1)])}const Lo=fe(tm,[["render",dm],["__scopeId","data-v-7334ac20"]]),fm=a.defineComponent({name:"FkColorPicker",components:{Display:Lo,Alpha:Fo,Palette:uu,Board:qo,Hue:Do,Lightness:cu,History:Go},props:{color:P.instanceOf(G),disableHistory:P.bool.def(!1),roundHistory:P.bool.def(!1),disableAlpha:P.bool.def(!1)},emits:["update:color","change","advanceChange"],setup(e,{emit:t}){const r=e.color||new G,n=a.reactive({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=a.ref(!1),i=a.computed(()=>({background:n.rgb})),u=()=>{o.value=!1,t("advanceChange",!1)},l=fo($o,[],{}),s=Ee(()=>{if(e.disableHistory)return;const b=n.color.toRgbString();if(l.value=l.value.filter(v=>!x.equals(v,b)),!l.value.includes(b)){for(;l.value.length>Bo;)l.value.pop();l.value.unshift(b)}},500),d=b=>{b==="advance"?(o.value=!0,t("advanceChange",!0)):(n.color.hex=b,t("advanceChange",!1))},c=b=>{n.color.alpha=b},f=b=>{n.color.hue=b},p=(b,v)=>{n.color.saturation=b,n.color.brightness=v},h=b=>{n.color.lightness=b},y=b=>{const v=b.target.value.replace("#","");x(v).isValid()&&(n.color.hex=v)};return X(()=>e.color,b=>{b&&(n.color=b)},{deep:!0}),X(()=>n.color,()=>{n.hex=n.color.hex,n.rgb=n.color.toRgbString(),s(),t("update:color",n.color),t("change",n.color)},{deep:!0}),{state:n,advancePanelShow:o,onBack:u,onCompactChange:d,onAlphaChange:c,onHueChange:f,onBoardChange:p,onLightChange:h,onInputChange:y,previewStyle:i,historyColors:l}}}),pm=e=>(a.pushScopeId("data-v-48e3c224"),e=e(),a.popScopeId(),e),hm={class:"vc-fk-colorPicker"},vm={class:"vc-fk-colorPicker__inner"},gm={class:"vc-fk-colorPicker__header"},mm=pm(()=>a.createElementVNode("div",{class:"back"},null,-1)),ym=[mm];function bm(e,t,r,n,o,i){const u=a.resolveComponent("Palette"),l=a.resolveComponent("Board"),s=a.resolveComponent("Hue"),d=a.resolveComponent("Lightness"),c=a.resolveComponent("Alpha"),f=a.resolveComponent("Display"),p=a.resolveComponent("History");return a.openBlock(),a.createElementBlock("div",hm,[a.createElementVNode("div",vm,[a.createElementVNode("div",gm,[e.advancePanelShow?(a.openBlock(),a.createElementBlock("span",{key:0,style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...h)=>e.onBack&&e.onBack(...h))},ym)):a.createCommentVNode("",!0)]),e.advancePanelShow?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(u,{key:0,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?(a.openBlock(),a.createBlock(l,{key:1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"])):a.createCommentVNode("",!0),e.advancePanelShow?(a.openBlock(),a.createBlock(s,{key:2,color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"])):a.createCommentVNode("",!0),e.advancePanelShow?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(d,{key:3,color:e.state.color,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(c,{key:4,color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"])),a.createVNode(f,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(p,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const ml=fe(fm,[["render",bm],["__scopeId","data-v-48e3c224"]]),Cm=a.defineComponent({name:"ChromeColorPicker",components:{Display:Lo,Alpha:Fo,Board:qo,Hue:Do,History:Go},props:{color:P.instanceOf(G),disableHistory:P.bool.def(!1),roundHistory:P.bool.def(!1),disableAlpha:P.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){const r=e.color||new G,n=a.reactive({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=a.computed(()=>({background:n.rgb})),i=fo($o,[],{}),u=Ee(()=>{if(e.disableHistory)return;const p=n.color.toRgbString();if(i.value=i.value.filter(h=>!x.equals(h,p)),!i.value.includes(p)){for(;i.value.length>Bo;)i.value.pop();i.value.unshift(p)}},500),l=p=>{n.color.alpha=p},s=p=>{n.color.hue=p},d=p=>{p.hex!==void 0&&(n.color.hex=p.hex),p.alpha!==void 0&&(n.color.alpha=p.alpha)},c=(p,h)=>{n.color.saturation=p,n.color.brightness=h},f=p=>{p!=="advance"&&(n.color.hex=p)};return X(()=>e.color,p=>{p&&(n.color=p)},{deep:!0}),X(()=>n.color,()=>{n.hex=n.color.hex,n.rgb=n.color.toRgbString(),u(),t("update:color",n.color),t("change",n.color)},{deep:!0}),{state:n,previewStyle:o,historyColors:i,onAlphaChange:l,onHueChange:s,onBoardChange:c,onInputChange:d,onCompactChange:f}}}),wm={class:"vc-chrome-colorPicker"},Sm={class:"vc-chrome-colorPicker-body"},Om={class:"chrome-controls"},xm={class:"chrome-sliders"};function Em(e,t,r,n,o,i){const u=a.resolveComponent("Board"),l=a.resolveComponent("Hue"),s=a.resolveComponent("Alpha"),d=a.resolveComponent("Display"),c=a.resolveComponent("History");return a.openBlock(),a.createElementBlock("div",wm,[a.createVNode(u,{round:!0,hide:!1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"]),a.createElementVNode("div",Sm,[a.createElementVNode("div",Om,[a.createElementVNode("div",xm,[a.createVNode(l,{size:"small",color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"]),e.disableAlpha?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(s,{key:0,size:"small",color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"]))])]),a.createVNode(d,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(c,{key:0,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const yl=fe(Cm,[["render",Em],["__scopeId","data-v-2611d66c"]]),Ho="Vue3ColorPickerProvider",km=(e,t)=>{const r=e.getBoundingClientRect(),n=r.left+r.width/2,o=r.top+r.height/2,i=Math.abs(n-t.clientX),u=Math.abs(o-t.clientY),l=Math.sqrt(Math.pow(i,2)+Math.pow(u,2)),s=u/l,d=Math.acos(s);let c=Math.floor(180/(Math.PI/d));return t.clientX>n&&t.clientY>o&&(c=180-c),t.clientX==n&&t.clientY>o&&(c=180),t.clientX>n&&t.clientY==o&&(c=90),t.clientX<n&&t.clientY>o&&(c=180+c),t.clientX<n&&t.clientY==o&&(c=270),t.clientX<n&&t.clientY<o&&(c=360-c),c};let Wn=!1;const _m=(e,t)=>{const r=function(o){var i;(i=t.drag)==null||i.call(t,o)},n=function(o){var i;document.removeEventListener("mousemove",r,!1),document.removeEventListener("mouseup",n,!1),document.onselectstart=null,document.ondragstart=null,Wn=!1,(i=t.end)==null||i.call(t,o)};e&&e.addEventListener("mousedown",o=>{var i;Wn||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",n,!1),Wn=!0,(i=t.start)==null||i.call(t,o))})},Tm={angle:{type:Number,default:0},size:{type:Number,default:16,validator:e=>e>=16},borderWidth:{type:Number,default:1,validator:e=>e>=1},borderColor:{type:String,default:"#666"}},Nm=a.defineComponent({name:"Angle",props:Tm,emits:["update:angle","change"],setup(e,{emit:t}){const r=a.ref(null),n=a.ref(0);a.watch(()=>e.angle,l=>{n.value=l});const o=()=>{let l=Number(n.value);isNaN(l)||(l=l>360||l<0?e.angle:l,n.value=l===360?0:l,t("update:angle",n.value),t("change",n.value))},i=a.computed(()=>({width:e.size+"px",height:e.size+"px",borderWidth:e.borderWidth+"px",borderColor:e.borderColor,transform:`rotate(${n.value}deg)`})),u=l=>{r.value&&(n.value=km(r.value,l)%360,o())};return a.onMounted(()=>{const l={drag:s=>{u(s)},end:s=>{u(s)}};r.value&&_m(r.value,l)}),()=>a.createVNode("div",{class:"bee-angle"},[a.createVNode("div",{class:"bee-angle__round",ref:r,style:i.value},null)])}}),Am=a.defineComponent({name:"GradientColorPicker",components:{Angle:Nm,Display:Lo,Alpha:Fo,Palette:uu,Board:qo,Hue:Do,Lightness:cu,History:Go},props:{startColor:P.instanceOf(G).isRequired,endColor:P.instanceOf(G).isRequired,startColorStop:P.number.def(0),endColorStop:P.number.def(100),angle:P.number.def(0),type:P.oneOf(["linear","radial"]).def("linear"),disableHistory:P.bool.def(!1),roundHistory:P.bool.def(!1),disableAlpha:P.bool.def(!1),pickerType:P.oneOf(["fk","chrome"]).def("fk")},emits:["update:startColor","update:endColor","update:angle","update:startColorStop","update:endColorStop","startColorChange","endColorChange","advanceChange","angleChange","startColorStopChange","endColorStopChange","typeChange"],setup(e,{emit:t}){const r=a.reactive({startActive:!0,startColor:e.startColor,endColor:e.endColor,startColorStop:e.startColorStop,endColorStop:e.endColorStop,angle:e.angle,type:e.type,startColorRgba:e.startColor.toRgbString(),endColorRgba:e.endColor.toRgbString()}),n=a.inject(Ho),o=a.ref(e.pickerType==="chrome"),i=a.ref(),u=a.ref(),l=a.ref();a.watch(()=>[e.startColor,e.endColor,e.angle],S=>{r.startColor=S[0],r.endColor=S[1],r.angle=S[2]}),a.watch(()=>e.type,S=>{r.type=S});const s=a.computed({get:()=>r.startActive?r.startColor:r.endColor,set:S=>{if(r.startActive){r.startColor=S;return}r.endColor=S}}),d=a.computed(()=>{if(l.value&&i.value){const S=r.startColorStop/100,T=l.value.getBoundingClientRect(),j=i.value.offsetWidth;return Math.round(S*(T.width-j)+j/2)}return 0}),c=a.computed(()=>{if(l.value&&u.value){const S=r.endColorStop/100,T=l.value.getBoundingClientRect(),j=u.value.offsetWidth;return Math.round(S*(T.width-j)+j/2)}return 0}),f=a.computed(()=>{let S=`background: linear-gradient(${r.angle}deg, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`;return r.type==="radial"&&(S=`background: radial-gradient(circle, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`),S}),p=S=>{var T;if(r.startActive=!0,l.value&&i.value){const j=(T=l.value)==null?void 0:T.getBoundingClientRect();let _=S.clientX-j.left;_=Math.max(i.value.offsetWidth/2,_),_=Math.min(_,j.width-i.value.offsetWidth/2),r.startColorStop=Math.round((_-i.value.offsetWidth/2)/(j.width-i.value.offsetWidth)*100),t("update:startColorStop",r.startColorStop),t("startColorStopChange",r.startColorStop)}},h=S=>{var T;if(r.startActive=!1,l.value&&u.value){const j=(T=l.value)==null?void 0:T.getBoundingClientRect();let _=S.clientX-j.left;_=Math.max(u.value.offsetWidth/2,_),_=Math.min(_,j.width-u.value.offsetWidth/2),r.endColorStop=Math.round((_-u.value.offsetWidth/2)/(j.width-u.value.offsetWidth)*100),t("update:endColorStop",r.endColorStop),t("endColorStopChange",r.endColorStop)}},y=S=>{const T=S.target,j=parseInt(T.value.replace("°",""));isNaN(j)||(r.angle=j%360),t("update:angle",r.angle),t("angleChange",r.angle)},b=S=>{r.angle=S,t("update:angle",r.angle),t("angleChange",r.angle)},v=S=>{S==="advance"?(o.value=!0,t("advanceChange",!0)):(s.value.hex=S,t("advanceChange",!1)),E()},g=S=>{s.value.alpha=S,E()},m=S=>{s.value.hue=S,E()},C=(S,T)=>{s.value.saturation=S,s.value.brightness=T,E()},O=S=>{s.value.lightness=S,E()},k=()=>{E()},E=()=>{r.startActive?(t("update:startColor",r.startColor),t("startColorChange",r.startColor)):(t("update:endColor",r.endColor),t("endColorChange",r.endColor))},R=()=>{o.value=!1,t("advanceChange",!1)},B=()=>{r.type=r.type==="linear"?"radial":"linear",t("typeChange",r.type)},I=fo($o,[],{}),F=Ee(()=>{if(e.disableHistory)return;const S=s.value.toRgbString();if(I.value=I.value.filter(T=>!x.equals(T,S)),!I.value.includes(S)){for(;I.value.length>Bo;)I.value.pop();I.value.unshift(S)}},500);return ze(()=>{u.value&&i.value&&(Mt.triggerDragEvent(u.value,{drag:S=>{h(S)},end:S=>{h(S)}}),Mt.triggerDragEvent(i.value,{drag:S=>{p(S)},end:S=>{p(S)}}))}),X(()=>r.startColor,S=>{r.startColorRgba=S.toRgbString()},{deep:!0}),X(()=>r.endColor,S=>{r.endColorRgba=S.toRgbString()},{deep:!0}),X(()=>s.value,()=>{F()},{deep:!0}),{startGradientRef:i,stopGradientRef:u,colorRangeRef:l,state:r,currentColor:s,getStartColorLeft:d,getEndColorLeft:c,gradientBg:f,advancePanelShow:o,onDegreeBlur:y,onCompactChange:v,onAlphaChange:g,onHueChange:m,onBoardChange:C,onLightChange:O,historyColors:I,onBack:R,onDegreeChange:b,onDisplayChange:k,onTypeChange:B,lang:n?.lang}}}),du=e=>(a.pushScopeId("data-v-c4d6d6ea"),e=e(),a.popScopeId(),e),Pm={class:"vc-gradient-picker"},Rm={class:"vc-gradient-picker__header"},jm={class:"vc-gradient__types"},Im={class:"vc-gradient-wrap__types"},Vm={class:"vc-picker-degree-input vc-degree-input"},$m={class:"vc-degree-input__control"},Bm=["value"],Fm={class:"vc-degree-input__panel"},Mm={class:"vc-degree-input__disk"},qm={class:"vc-gradient-picker__body"},Dm={class:"vc-color-range",ref:"colorRangeRef"},Gm={class:"vc-color-range__container"},Lm={class:"vc-gradient__stop__container"},Hm=["title"],Um=du(()=>a.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),zm=[Um],Wm=["title"],Km=du(()=>a.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),Ym=[Km];function Xm(e,t,r,n,o,i){var u,l;const s=a.resolveComponent("Angle"),d=a.resolveComponent("Board"),c=a.resolveComponent("Hue"),f=a.resolveComponent("Palette"),p=a.resolveComponent("Lightness"),h=a.resolveComponent("Alpha"),y=a.resolveComponent("Display"),b=a.resolveComponent("History");return a.openBlock(),a.createElementBlock("div",Pm,[a.createElementVNode("div",Rm,[a.createElementVNode("div",null,[a.withDirectives(a.createElementVNode("div",{class:"back",style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...v)=>e.onBack&&e.onBack(...v))},null,512),[[a.vShow,e.pickerType==="fk"&&e.advancePanelShow]])]),a.createElementVNode("div",jm,[a.createElementVNode("div",Im,[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(["linear","radial"],v=>a.createElementVNode("div",{class:a.normalizeClass(["vc-gradient__type",{active:e.state.type===v}]),key:v,onClick:t[1]||(t[1]=(...g)=>e.onTypeChange&&e.onTypeChange(...g))},a.toDisplayString(e.lang?e.lang[v]:v),3)),64))]),a.withDirectives(a.createElementVNode("div",Vm,[a.createElementVNode("div",$m,[a.createElementVNode("input",{value:e.state.angle,onBlur:t[2]||(t[2]=(...v)=>e.onDegreeBlur&&e.onDegreeBlur(...v))},null,40,Bm),a.createTextVNode("deg ")]),a.createElementVNode("div",Fm,[a.createElementVNode("div",Mm,[a.createVNode(s,{angle:e.state.angle,"onUpdate:angle":t[3]||(t[3]=v=>e.state.angle=v),size:40,onChange:e.onDegreeChange},null,8,["angle","onChange"])])])],512),[[a.vShow,e.state.type==="linear"]])])]),a.createElementVNode("div",qm,[a.createElementVNode("div",Dm,[a.createElementVNode("div",Gm,[a.createElementVNode("div",{class:"vc-background",style:a.normalizeStyle(e.gradientBg)},null,4),a.createElementVNode("div",Lm,[a.createElementVNode("div",{class:a.normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":e.state.startActive}]),ref:"startGradientRef",title:(u=e.lang)==null?void 0:u.start,style:a.normalizeStyle({left:e.getStartColorLeft+"px",backgroundColor:e.state.startColorRgba})},zm,14,Hm),a.createElementVNode("div",{class:a.normalizeClass(["vc-gradient__stop",{"vc-gradient__stop--current":!e.state.startActive}]),ref:"stopGradientRef",title:(l=e.lang)==null?void 0:l.end,style:a.normalizeStyle({left:e.getEndColorLeft+"px",backgroundColor:e.state.endColorRgba})},Ym,14,Wm)])])],512)]),e.advancePanelShow?(a.openBlock(),a.createBlock(d,{key:0,color:e.currentColor,onChange:e.onBoardChange},null,8,["color","onChange"])):a.createCommentVNode("",!0),e.advancePanelShow?(a.openBlock(),a.createBlock(c,{key:1,color:e.currentColor,onChange:e.onHueChange},null,8,["color","onChange"])):a.createCommentVNode("",!0),e.advancePanelShow?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(f,{key:2,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(p,{key:3,color:e.currentColor,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(h,{key:4,color:e.currentColor,onChange:e.onAlphaChange},null,8,["color","onChange"])),a.createVNode(y,{color:e.currentColor,"disable-alpha":e.disableAlpha,onChange:e.onDisplayChange},null,8,["color","disable-alpha","onChange"]),e.disableHistory?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(b,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])}const bl=fe(Am,[["render",Xm],["__scopeId","data-v-c4d6d6ea"]]),Jm=a.defineComponent({name:"WrapContainer",props:{theme:P.oneOf(["white","black"]).def("white"),showTab:P.bool.def(!1),activeKey:P.oneOf(["pure","gradient"]).def("pure")},emits:["update:activeKey","change"],setup(e,{emit:t}){const r=a.reactive({activeKey:e.activeKey}),n=a.inject(Ho),o=i=>{r.activeKey=i,t("update:activeKey",i),t("change",i)};return X(()=>e.activeKey,i=>{r.activeKey=i}),{state:r,onActiveKeyChange:o,lang:n?.lang}}}),Zm={class:"vc-colorpicker--container"},Qm={key:0,class:"vc-colorpicker--tabs"},ey={class:"vc-colorpicker--tabs__inner"},ty={class:"vc-btn__content"},ry={class:"vc-btn__content"};function ny(e,t,r,n,o,i){var u,l;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["vc-colorpicker",e.theme])},[a.createElementVNode("div",Zm,[e.showTab?(a.openBlock(),a.createElementBlock("div",Qm,[a.createElementVNode("div",ey,[a.createElementVNode("div",{class:a.normalizeClass(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="pure"}]),onClick:t[0]||(t[0]=s=>e.onActiveKeyChange("pure"))},[a.createElementVNode("button",null,[a.createElementVNode("div",ty,a.toDisplayString((u=e.lang)==null?void 0:u.pure),1)])],2),a.createElementVNode("div",{class:a.normalizeClass(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="gradient"}]),onClick:t[1]||(t[1]=s=>e.onActiveKeyChange("gradient"))},[a.createElementVNode("button",null,[a.createElementVNode("div",ry,a.toDisplayString((l=e.lang)==null?void 0:l.gradient),1)])],2),a.createElementVNode("div",{class:"vc-colorpicker--tabs__bg",style:a.normalizeStyle({width:"50%",left:`calc(${e.state.activeKey==="gradient"?50:0}%)`})},null,4)])])):a.createCommentVNode("",!0),a.renderSlot(e.$slots,"default",{},void 0,!0)])],2)}const oy=fe(Jm,[["render",ny],["__scopeId","data-v-0492277d"]]),ay={start:"Start",end:"End",pure:"Pure",gradient:"Gradient",linear:"linear",radial:"radial"},iy={start:"开始",end:"结束",pure:"纯色",gradient:"渐变",linear:"线性",radial:"径向"},ly={En:ay,"ZH-cn":iy},sy={isWidget:P.bool.def(!1),pickerType:P.oneOf(["fk","chrome"]).def("fk"),shape:P.oneOf(["circle","square"]).def("square"),pureColor:{type:[String,Object],default:"#000000"},gradientColor:P.string.def("linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),format:{type:String,default:"rgb"},disableAlpha:P.bool.def(!1),disableHistory:P.bool.def(!1),roundHistory:P.bool.def(!1),useType:P.oneOf(["pure","gradient","both"]).def("pure"),activeKey:P.oneOf(["pure","gradient"]).def("pure"),lang:{type:String,default:"ZH-cn"},zIndex:P.number.def(9999),pickerContainer:{type:[String,HTMLElement],default:"body"},debounce:P.number.def(100),theme:P.oneOf(["white","black"]).def("white"),blurClose:P.bool.def(!1),defaultPopup:P.bool.def(!1)},uy=a.defineComponent({name:"ColorPicker",components:{FkColorPicker:ml,ChromeColorPicker:yl,GradientColorPicker:bl,WrapContainer:oy},inheritAttrs:!1,props:sy,emits:["update:pureColor","pureColorChange","update:gradientColor","gradientColorChange","update:activeKey","activeKeyChange"],setup(e,{emit:t}){a.provide(Ho,{lang:a.computed(()=>ly[e.lang||"ZH-cn"])});const r=!!a.useSlots().extra,n=a.reactive({pureColor:e.pureColor||"",activeKey:e.useType==="gradient"?"gradient":e.activeKey,isAdvanceMode:!1}),o=new G("#000"),i=new G("#000"),u=new G(n.pureColor),l=a.reactive({startColor:o,endColor:i,startColorStop:0,endColorStop:100,angle:0,type:"linear",gradientColor:e.gradientColor}),s=a.ref(u),d=a.ref(e.defaultPopup),c=a.ref(null),f=a.ref(null);let p=null;const h=a.computed(()=>({background:n.activeKey!=="gradient"?x(n.pureColor).toRgbString():l.gradientColor})),y=a.computed(()=>n.activeKey==="gradient"?bl.name:e.pickerType==="fk"?ml.name:yl.name),b=S=>{n.isAdvanceMode=S},v=a.computed(()=>{const S={disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,pickerType:e.pickerType};return n.activeKey==="gradient"?{...S,startColor:l.startColor,endColor:l.endColor,angle:l.angle,type:l.type,startColorStop:l.startColorStop,endColorStop:l.endColorStop,onStartColorChange:T=>{l.startColor=T,k()},onEndColorChange:T=>{l.endColor=T,k()},onStartColorStopChange:T=>{l.startColorStop=T,k()},onEndColorStopChange:T=>{l.endColorStop=T,k()},onAngleChange:T=>{l.angle=T,k()},onTypeChange:T=>{l.type=T,k()},onAdvanceChange:b}:{...S,disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,color:s.value,onChange:B,onAdvanceChange:b}}),g=()=>{d.value=!0,p?p.update():R()},m=()=>{d.value=!1},C=Ee(()=>{!e.isWidget&&e.blurClose&&m()},100);kd(f,()=>{m()});const O=()=>{var S,T,j,_;try{const[A]=Oa.parse(l.gradientColor);if(A&&A.type.includes("gradient")&&A.colorStops.length>=2){const $=A.colorStops[0],K=A.colorStops[1];l.startColorStop=Number((S=$.length)==null?void 0:S.value)||0,l.endColorStop=Number((T=K.length)==null?void 0:T.value)||0,A.type==="linear-gradient"&&((j=A.orientation)==null?void 0:j.type)==="angular"&&(l.angle=Number((_=A.orientation)==null?void 0:_.value)||0),l.type=A.type.split("-")[0];const[N,V,M,Q]=$.value,[ge,Ze,Ae,me]=K.value;l.startColor=new G({r:Number(N),g:Number(V),b:Number(M),a:Number(Q)}),l.endColor=new G({r:Number(ge),g:Number(Ze),b:Number(Ae),a:Number(me)})}}catch(A){console.log(`[Parse Color]: ${A}`)}},k=Ee(()=>{const S=E();try{l.gradientColor=Oa.stringify(S),t("update:gradientColor",l.gradientColor),t("gradientColorChange",l.gradientColor)}catch(T){console.log(T)}},e.debounce),E=()=>{const S=[],T=l.startColor.RGB.map(A=>A.toString()),j=l.endColor.RGB.map(A=>A.toString()),_=[{type:"rgba",value:[T[0],T[1],T[2],T[3]],length:{value:l.startColorStop+"",type:"%"}},{type:"rgba",value:[j[0],j[1],j[2],j[3]],length:{value:l.endColorStop+"",type:"%"}}];return l.type==="linear"?S.push({type:"linear-gradient",orientation:{type:"angular",value:l.angle+""},colorStops:_}):l.type==="radial"&&S.push({type:"radial-gradient",orientation:[{type:"shape",value:"circle"}],colorStops:_}),S},R=()=>{c.value&&f.value&&(p=fp(c.value,f.value,{placement:"auto",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{allowedAutoPlacements:["top","bottom","left","right"],rootBoundary:"viewport"}}]}))},B=S=>{s.value=S,n.pureColor=S.toString(e.format),I()},I=Ee(()=>{t("update:pureColor",n.pureColor),t("pureColorChange",n.pureColor)},e.debounce),F=S=>{n.activeKey=S,t("update:activeKey",S),t("activeKeyChange",S)};return ze(()=>{O(),p||R()}),X(()=>e.gradientColor,S=>{S!=l.gradientColor&&(l.gradientColor=S)}),X(()=>l.gradientColor,()=>{O()}),X(()=>e.activeKey,S=>{n.activeKey=S}),X(()=>e.useType,S=>{n.activeKey!=="gradient"&&S==="gradient"?n.activeKey="gradient":n.activeKey="pure"}),X(()=>e.pureColor,S=>{x.equals(S,n.pureColor)||(n.pureColor=S,s.value=new G(S))},{deep:!0}),{colorCubeRef:c,pickerRef:f,showPicker:d,colorInstance:s,getBgColorStyle:h,getComponentName:y,getBindArgs:v,state:n,hasExtra:r,onColorChange:B,onShowPicker:g,onActiveKeyChange:F,onAutoClose:C}}}),cy={key:0,class:"vc-color-extra"},dy={key:0,class:"vc-color-extra"};function fy(e,t,r,n,o,i){const u=a.resolveComponent("WrapContainer");return a.openBlock(),a.createElementBlock(a.Fragment,null,[e.isWidget?(a.openBlock(),a.createBlock(u,{key:0,"active-key":e.state.activeKey,"onUpdate:activeKey":t[0]||(t[0]=l=>e.state.activeKey=l),"show-tab":e.useType==="both",style:a.normalizeStyle({zIndex:e.zIndex}),theme:e.theme,onChange:e.onActiveKeyChange},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.getComponentName),a.mergeProps({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(a.openBlock(),a.createElementBlock("div",cy,[a.renderSlot(e.$slots,"extra",{},void 0,!0)])):a.createCommentVNode("",!0)]),_:3},8,["active-key","show-tab","style","theme","onChange"])):a.createCommentVNode("",!0),e.isWidget?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",{class:a.normalizeClass(["vc-color-wrap transparent",{round:e.shape==="circle"}]),ref:"colorCubeRef"},[a.createElementVNode("div",{class:"current-color",style:a.normalizeStyle(e.getBgColorStyle),onClick:t[1]||(t[1]=(...l)=>e.onShowPicker&&e.onShowPicker(...l))},null,4)],2),(a.openBlock(),a.createBlock(a.Teleport,{to:e.pickerContainer},[a.withDirectives(a.createElementVNode("div",{ref:"pickerRef",style:a.normalizeStyle({zIndex:e.zIndex}),onMouseleave:t[3]||(t[3]=(...l)=>e.onAutoClose&&e.onAutoClose(...l))},[e.showPicker?(a.openBlock(),a.createBlock(u,{key:0,"show-tab":e.useType==="both"&&!e.state.isAdvanceMode,theme:e.theme,"active-key":e.state.activeKey,"onUpdate:activeKey":t[2]||(t[2]=l=>e.state.activeKey=l),onChange:e.onActiveKeyChange},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.getComponentName),a.mergeProps({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?(a.openBlock(),a.createElementBlock("div",dy,[a.renderSlot(e.$slots,"extra",{},void 0,!0)])):a.createCommentVNode("",!0)]),_:3},8,["show-tab","theme","active-key","onChange"])):a.createCommentVNode("",!0)],36),[[a.vShow,e.showPicker]])],8,["to"]))],64))],64)}const py=fe(uy,[["render",fy],["__scopeId","data-v-354ca836"]]),hy={install(e){e.use(pc),e.use(hc),e.use(yc),e.use(wc),e.use(xc),e.use(Ec),e.use(Nc),e.use(Rc),e.use(Vc),e.use(Dc),e.use(Hc),e.use(Uc),e.use(Wc),e.use(Jc),e.use(Qc),e.use(nd),e.use(od),e.use(ad),e.use(vc),e.use(ed),e.use(zc),e.use(Kc),e.use(kc),e.component("ColorPicker",py)}},Cl=a.defineComponent({name:"GctEditForm",props:{embed:{type:Boolean,default:!1},context:{type:Object,default:()=>({})},params:{type:Object,default:()=>({})},controller:{type:Object},model:{type:Object,required:!0},data:{type:Object}},emits:["update:data"],setup(e,{emit:t}){const r=w.useNamespace("gct-edit-form");if(!e.model)throw new Error("未传递表单模型配置");const n=e.controller||w.useEditFormController(()=>new w.EditFormController(e.model)),o=a.ref(null),i=async()=>{try{await o.value.formRef.validate()}catch(l){return console.error(l),!1}return!0},u=async l=>{try{await o.value.formRef.validateFields(l)}catch(s){return console.error(s),!1}return!0};return n.validate=i,n.validateItem=u,a.watch(e.context,()=>{Object.assign(n.context,e.context),n.state.isNew=!n.context.id},{immediate:!0}),a.watch(e.params,()=>{Object.assign(n.params,e.params)}),w.useModal(async()=>{try{await o.value.formRef.validate();const l=await n.save();if(l)return{ok:!0,data:[vt.cloneDeep(l)]}}catch(l){console.error(l)}return{ok:!1}}),e.data?(Object.assign(n.state.data,e.data),n.loaded()):n.state.isNew!==!0?n.load().then(()=>{n.loaded()}):n.loaded(),e.embed&&n.evt.on("change",()=>{t("update:data",n.getData())}),{ns:r,c:n,formRef:o}},render(){let e=null;return(this.c.state.isNew||this.c.state.isNew==!1&&this.c.state.loaded)&&(e=a.createVNode(a.resolveComponent("gct-form"),{class:"h-full",ref:"formRef",model:this.model,c:this.c},null)),a.createVNode("div",{class:this.ns.b()},[e])}}),vy={install(e){e.component(Cl.name,Cl)}};function gy(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const wl=a.defineComponent({name:"GctFormItem",props:{c:{type:Object,required:!0},formModel:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form-item"),r={};e.formModel.labelWidth&&(r[t.cssVarName("form-item-label-width")]=e.formModel.labelWidth),e.model.labelWidth&&(r[t.cssVarName("form-item-label-width")]=e.model.labelWidth),e.model.labelAlign&&(r[t.cssVarName("form-item-label-align")]=e.model.labelAlign),e.model.editorAlign&&(r[t.cssVarName("form-item-editor-align")]=e.model.editorAlign),e.model.width&&(r[t.cssVarName("form-item-width")]=e.model.width),e.model.margin&&(r.margin=e.model.margin),e.model.padding&&(r.padding=e.model.padding);const n=a.computed(()=>!!e.model.rules?.find(i=>i.required));return{ns:t,style:r,required:n,renderLabelTooltip:()=>e.model.labelTooltip?a.createVNode(a.resolveComponent("a-tooltip"),{class:t.e("label-tooltip"),placement:"topLeft",title:e.model.labelTooltip},{default:()=>[a.createVNode("span",{class:"iconfont icon-assist ml5px text-[#bfbfbf]"},null)]}):null}},render(){const e=_gct.register.editor.get(w.EditorRegisterConst.PREFIX+this.model.editor.type);if(!e)return console.error(`未找到表单项${this.model.name}的编辑器${this.model.editor.type}的适配器实例:`,this.model),null;const t=this.model.labelPosition||"left";let r=null;e?e.render?r=e.render(this.c.editorValue,this.c.data,this.model):e.component?r=a.h(typeof e.component=="string"?a.resolveComponent(e.component):e.component,{key:this.model.name,c:this.c,value:this.c.editorValue,itemModel:this.model,model:this.model.editor,data:this.c.data,disabled:this.c.state.disabled,readonly:this.c.state.readonly,keepalive:this.c.state.keepalive,visible:this.c.state.visible,class:[this.ns.e("editor"),this.ns.e(t),this.model.editor.class],style:this.model.editor.style,"onUpdate:value":o=>{this.c.editorValue=o}}):console.error(`未找到编辑器绘制组件:${this.model.name} - ${this.model.editor.type},请实现 component 或 render 方法`):console.error(`未找到编辑器适配器:${this.model.name} - ${this.model.editor.type}`),this.model.label&&t==="top"&&(r=[a.createVNode("div",{class:[this.ns.e("label"),this.ns.em("label",t)]},[this.model.label,this.renderLabelTooltip()]),r]);const n={default:()=>r};return t==="left"&&this.model.label&&(n.label=()=>[a.createVNode("span",null,[this.model.label]),this.renderLabelTooltip()]),a.createVNode(a.resolveComponent("a-form-item"),{key:this.c.model.name,colon:this.formModel.noColon===!0?!1:this.model.noColon!==!0,name:this.model.name,label:void 0,class:[this.ns.b(),this.ns.is("readonly",this.model.editor.readonly===!0),this.ns.is("required",this.required),this.ns.is("hidden",this.c.state.visible===!1),this.ns.is("hidden-label",!this.model.label),this.ns.m("label-"+t)],style:this.style,rules:this.c.state.visible===!0?this.model.rules:[],layout:"horizontal"},gy(n)?n:{default:()=>[n]})}});function my(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Sl=a.defineComponent({name:"GctForm",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form");a.provide("formController",e.c);const r=a.ref(null),n=e.c;Object.keys(n.item).forEach(d=>{const c=n.item[d];c.state=a.reactive(c.state)});const i=d=>a.createVNode(a.resolveComponent("gct-form-item"),{class:d.class,style:d.style,c:n.item[d.name],formModel:e.model,model:d},null),u=d=>{const c=n.provider[d.name];if(!c)return console.error(`未找到表单项适配器实例:${d.name}`,d),null;if(c)return a.h(typeof c.component=="string"?a.resolveComponent(c.component):c.component,{key:d.name,model:d,formModel:e.model,c:n.item[d.name],data:n.state.data,class:d.class,style:d.style},l(d.children||[]));console.error(`未找到表单容器适配器:${d.name} - ${d.type}`)},l=d=>{if(!d)return[];const c=[];return d.forEach(f=>{if(f.type==="hidden")return null;let p=null;const h=f;h.type==="container"||h.container?p=u(h):p=i(f),p&&c.push(p)}),c},s={};return e.model.labelWidth&&(s[t.cssVarName("form-item-label-width")]=e.model.labelWidth),{ns:t,formRef:r,staticStyle:s,renderItem:i,renderContainer:u,renderChildren:l}},render(){let e;return a.createVNode(a.resolveComponent("a-form"),{ref:"formRef",layout:this.model.layout,model:this.c.state.data,class:[this.ns.b(),this.ns.is("info",this.model.info===!0)],autocomplete:"off",style:this.staticStyle},my(e=this.model.children.map(t=>this.renderContainer(t)))?e:{default:()=>[e]})}});class yy{component="gct-form-item";createController(t,r){return w.useFormItemController(()=>new w.FormItemController(t,r))}}class by{component="gct-form-hidden-item";createController(t,r){return w.useFormItemController(()=>new w.FormHiddenItemController(t,r))}}class Cy{component="gct-form-collapse-pane";createController(t,r){return w.useFormItemController(()=>new w.FormCollapsePaneController(t,r))}}function Ol(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const xl=a.defineComponent({name:"GctFormCollapsePane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("form-collapse-pane"),r={};function n(o){if(e.model.layout==="flex")return a.createVNode(a.resolveComponent("flex-container"),{layout:e.model.flex},Ol(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},Ol(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(r[t.cssVarName("form-collapse-pane-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-collapse-pane-height")]=e.model.height),{ns:t,style:r,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[],t=e[e.length-1];return t&&(t.props=a.mergeProps(t.props||{},{class:this.ns.e("last-child")})),a.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),wy={install(e){_gct.register.formItem.register("collapse-pane",()=>new Cy),e.component(xl.name,xl)}};class Sy{component="gct-form-collapse";createController(t,r){return w.useFormItemController(()=>new w.FormCollapseController(t,r))}}const El=a.defineComponent({name:"GctFormCollapse",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("form-collapse"),r=a.ref([0]),n={};e.model.width&&(n[t.cssVarName("form-collapse-width")]=e.model.width),e.model.height&&(n[t.cssVarName("form-collapse-height")]=e.model.height);const o=a.ref([]);o.value=e.model.children?.map(u=>u.name)||[];const i=a.computed(()=>e.model.expandIconPosition==="left"?"left":"right");return{ns:t,keys:r,style:n,activeKeys:o,expandIconPosition:i}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return a.createVNode(qe.Collapse,{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1),this.ns.m("icon-"+(this.model.expandIconStyle||"up-down"))],style:this.style,accordion:this.model.accordion,expandIconPosition:this.expandIconPosition,activeKey:this.activeKeys,"onUpdate:activeKey":t=>this.activeKeys=t},{default:()=>[this.model.children?.map((t,r)=>{if(e[r].props.c.state.visible===!1)return;const o=t.collapsible!==!1?void 0:"disabled";return a.createVNode(qe.Collapse.Panel,{key:t.name,header:t.title,collapsible:o},{default:()=>[e[r]]})})]})}}),Oy={install(e){_gct.register.formItem.register("collapse",()=>new Sy),e.component(El.name,El)}};class xy{component="gct-form-group";createController(t,r){return w.useFormItemController(()=>new w.FormGroupController(t,r))}}function Kn(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const kl=a.defineComponent({name:"GctFormGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form-group"),r=a.ref([0]);function n(i){if(e.model.layout==="flex")return a.createVNode(a.resolveComponent("flex-container"),{layout:e.model.flex},Kn(i)?i:{default:()=>[i]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},Kn(i)?i:{default:()=>[i]});console.error("不支持的layout类型"+e.model.layout)}const o={};return e.model.width&&(o[t.cssVarName("form-group-width")]=e.model.width),e.model.height&&(o[t.cssVarName("form-group-height")]=e.model.height),{ns:t,keys:r,style:o,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];if(this.model.isCollapse){let t;return a.createVNode(a.resolveComponent("a-collapse"),{activeKey:this.keys,"onUpdate:activeKey":r=>this.keys=r,class:[this.ns.b(),this.ns.is("hidden-header",this.model.showHeader===!1),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style,ghost:!0},{default:()=>[a.createVNode(a.resolveComponent("a-collapse-panel"),{key:"0",header:this.model.title},Kn(t=this.renderContainer(e))?t:{default:()=>[t]})]})}return a.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden-header",this.model.showHeader===!1),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.model.showHeader===!1?a.createVNode("div",{class:this.ns.e("title")},[this.model.title]):null,a.createVNode("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),Ey={install(e){_gct.register.formItem.register("container",()=>new xy),e.component(kl.name,kl)}};class ky{component="gct-form-tab";createController(t,r){return w.useFormItemController(()=>new w.FormTabController(t,r))}}const _l=a.defineComponent({name:"GctFormTab",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("form-tab"),r={};return e.model.width&&(r[t.cssVarName("form-tab-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-tab-height")]=e.model.height),{ns:t,style:r}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return a.createVNode(a.resolveComponent("a-tabs"),{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1),this.ns.m(this.model.navPosition||"left")],style:this.style},{default:()=>[this.model.children?.map((t,r)=>a.createVNode(a.resolveComponent("a-tab-pane"),{key:t.name,tab:t.title},{default:()=>[e[r]]}))]})}}),_y={install(e){_gct.register.formItem.register("tab",()=>new ky),e.component(_l.name,_l)}};class Ty{component="gct-form-tab-pane";createController(t,r){return w.useFormItemController(()=>new w.FormTabPaneController(t,r))}}function Tl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Nl=a.defineComponent({name:"GctFormTabPane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("form-tab-pane"),r={};function n(o){if(e.model.layout==="flex")return a.createVNode(a.resolveComponent("flex-container"),{layout:e.model.flex},Tl(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},Tl(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(r[t.cssVarName("form-tab-pane-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-tab-pane-height")]=e.model.height),{ns:t,style:r,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return a.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),Ny={install(e){_gct.register.formItem.register("tab-pane",()=>new Ty),e.component(Nl.name,Nl)}};class Ay{component="gct-form-title-group";createController(t,r){return w.useFormItemController(()=>new w.FormGroupController(t,r))}}function Al(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const Pl=a.defineComponent({name:"GctFormTitleGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=w.useNamespace("gct-form-title-group"),r=a.ref([0]);function n(i){if(e.model.layout==="flex")return a.createVNode(a.resolveComponent("flex-container"),{layout:e.model.flex},Al(i)?i:{default:()=>[i]});if(e.model.layout==="grid")return a.createVNode(a.resolveComponent("grid-container"),{layout:e.model.grid},Al(i)?i:{default:()=>[i]});console.error("不支持的layout类型"+e.model.layout)}const o={};return e.model.width&&(o[t.cssVarName("form-title-group-width")]=e.model.width),e.model.height&&(o[t.cssVarName("form-title-group-height")]=e.model.height),{ns:t,keys:r,style:o,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return a.createVNode("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[a.createVNode("div",{class:this.ns.e("title")},[this.model.title]),a.createVNode("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),Py={install(e){_gct.register.formItem.register(w.FormContainerType.FORM_TITLE_GROUP,()=>new Ay),e.component(Pl.name,Pl)}},Ry={install(e){_gct.register.formItem.register("item",()=>new yy),_gct.register.formItem.register("hidden",()=>new by),e.use(wy),e.use(Oy),e.use(Ey),e.use(_y),e.use(Ny),e.use(Py),e.component(Sl.name,Sl),e.component(wl.name,wl)}},jy=(e,t)=>(e.install=r=>{const n=e.name||e.displayName;n&&(r.component(n,e),t&&(r.config.globalProperties[t]=e))},e),Iy={install(e){e.use(hy),e.use(vy),e.use(Ry),e.component(Yn.name,Yn),e.component(ia.name,ia),e.component(Xn.name,Xn),e.component(sa.name,sa),e.component(ua.name,ua)}};exports.CodeEditor=Yn;exports.default=Iy;exports.withInstall=jy;