@gct-paas/core-web 0.1.1 → 0.1.4-dev.0

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 bu=Object.defineProperty;var Cu=(e,t,r)=>t in e?bu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var M=(e,t,r)=>Cu(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"),qe=require("ant-design-vue"),mt=require("lodash-es");function wu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ta(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 ra(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ta(Object(r),!0).forEach(function(n){wu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ta(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Su(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 Ou(e,t){if(e==null)return{};var r=Su(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 xu(e,t){return Eu(e)||ku(e,t)||_u(e,t)||Nu()}function Eu(e){if(Array.isArray(e))return e}function ku(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 _u(e,t){if(e){if(typeof e=="string")return na(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 na(e,t)}}function na(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 Nu(){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 Tu=require("../internals/export"),Au=require("../internals/array-includes").includes,Pu=require("../internals/fails"),Ru=require("../internals/add-to-unscopables"),ju=Pu(function(){return!Array(1).includes()});Tu({target:"Array",proto:!0,forced:ju},{includes:function(t){return Au(this,t,arguments.length>1?arguments[1]:void 0)}});Ru("includes");function Iu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oa(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 aa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oa(Object(r),!0).forEach(function(n){Iu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oa(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vu(){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 _t(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 sr(e){return{}.toString.call(e).includes("Object")}function $u(e){return!Object.keys(e).length}function Vt(e){return typeof e=="function"}function Bu(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Fu(e,t){return sr(t)||Pe("changeType"),Object.keys(t).some(function(r){return!Bu(e,r)})&&Pe("changeField"),t}function Mu(e){Vt(e)||Pe("selectorType")}function qu(e){Vt(e)||sr(e)||Pe("handlerType"),sr(e)&&Object.values(e).some(function(t){return!Vt(t)})&&Pe("handlersType")}function Du(e){e||Pe("initialIsRequired"),sr(e)||Pe("initialType"),$u(e)&&Pe("initialContent")}function Gu(e,t){throw new Error(e[t]||e.default)}var Lu={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=_t(Gu)(Lu),Jt={changes:Fu,selector:Mu,handler:qu,initial:Du};function Hu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Jt.initial(e),Jt.handler(t);var r={current:e},n=_t(Wu)(r,t),o=_t(zu)(r),a=_t(Jt.changes)(e),u=_t(Uu)(r);function l(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return Jt.selector(d),d(r.current)}function s(d){Vu(n,o,a,u)(d)}return[l,s]}function Uu(e,t){return Vt(t)?t(e.current):t}function zu(e,t){return e.current=aa(aa({},e.current),t),t}function Wu(e,t,r){return Vt(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 Ku={create:Hu},Yu={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function Xu(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 Ju(e){return{}.toString.call(e).includes("Object")}function Zu(e){return e||ia("configIsRequired"),Ju(e)||ia("configType"),e.urls?(Qu(),{paths:{vs:e.urls.monacoBase}}):e}function Qu(){console.warn(jl.deprecation)}function ec(e,t){throw new Error(e[t]||e.default)}var jl={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";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 M=(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"),qe=require("ant-design-vue"),mt=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 Pu=require("../internals/export"),Ru=require("../internals/array-includes").includes,ju=require("../internals/fails"),Iu=require("../internals/add-to-unscopables"),Vu=ju(function(){return!Array(1).includes()});Pu({target:"Array",proto:!0,forced:Vu},{includes:function(t){return Ru(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 _t(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 sr(e){return{}.toString.call(e).includes("Object")}function Fu(e){return!Object.keys(e).length}function Vt(e){return typeof e=="function"}function Mu(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function qu(e,t){return sr(t)||Pe("changeType"),Object.keys(t).some(function(r){return!Mu(e,r)})&&Pe("changeField"),t}function Du(e){Vt(e)||Pe("selectorType")}function Gu(e){Vt(e)||sr(e)||Pe("handlerType"),sr(e)&&Object.values(e).some(function(t){return!Vt(t)})&&Pe("handlersType")}function Lu(e){e||Pe("initialIsRequired"),sr(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=_t(Hu)(Uu),Jt={changes:qu,selector:Du,handler:Gu,initial:Lu};function zu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Jt.initial(e),Jt.handler(t);var r={current:e},n=_t(Yu)(r,t),o=_t(Ku)(r),a=_t(Jt.changes)(e),u=_t(Wu)(r);function l(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(c){return c};return Jt.selector(d),d(r.current)}function s(d){Bu(n,o,a,u)(d)}return[l,s]}function Wu(e,t){return Vt(t)?t(e.current):t}function Ku(e,t){return e.current=ia(ia({},e.current),t),t}function Yu(e,t,r){return Vt(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!
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
- `},ia=Xu(ec)(jl),tc={config:Zu},rc=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(a,u){return u(a)},o)}};function Il(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],Il(e[r],t[r]))}),ra(ra({},e),t)}var nc={type:"cancelation",msg:"operation is manually canceled"};function $r(e){var t=!1,r=new Promise(function(n,o){e.then(function(a){return t?o(nc):n(a)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var oc=Ku.create({config:Yu,isInitialized:!1,resolve:null,reject:null,monaco:null}),Vl=xu(oc,2),Gt=Vl[0],Sr=Vl[1];function ac(e){var t=tc.config(e),r=t.monaco,n=Ou(t,["monaco"]);Sr(function(o){return{config:Il(o.config,n),monaco:r}})}function ic(){var e=Gt(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(Sr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),$r(Br);if(window.monaco&&window.monaco.editor)return $l(window.monaco),e.resolve(window.monaco),$r(Br);rc(lc,uc)(cc)}return $r(Br)}function lc(e){return document.body.appendChild(e)}function sc(e){var t=document.createElement("script");return e&&(t.src=e),t}function uc(e){var t=Gt(function(n){var o=n.config,a=n.reject;return{config:o,reject:a}}),r=sc("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function cc(){var e=Gt(function(r){var n=r.config,o=r.resolve,a=r.reject;return{config:n,resolve:o,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){$l(r),e.resolve(r)},function(r){e.reject(r)})}function $l(e){Gt().monaco||Sr({monaco:e})}function dc(){return Gt(function(e){var t=e.monaco;return t})}var Br=new Promise(function(e,t){return Sr({resolve:e,reject:t})}),fc={config:ac,init:ic,__getMonacoInstance:dc};const Xn=i.defineComponent({name:"CodeEditor",props:{value:{type:String,default:""},config:{type:Object,default:()=>({})},language:{type:String,default:"typescript"}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("code-editor"),n=i.computed({get(){return e.value||""},set(u){t("update:value",u)}}),o=i.ref(null);let a=null;return i.onMounted(()=>{fc.init().then(u=>{o.value&&(a=u.editor.create(o.value,w.deepMerge({value:n.value,language:e.language,automaticLayout:!0,minimap:{enabled:!1}},e.config)),a.onDidBlurEditorText(()=>{n.value=a.getValue()}))})}),i.onUnmounted(()=>{a==null||a.dispose()}),{ns:r,el:o}},render(){return i.createVNode("div",{ref:"el",class:this.ns.b()},null)}}),Jn=i.defineComponent({name:"FlexItem",props:{layout:Object},setup(e){return{ns:w.useNamespace("flex-item"),getStyle:()=>{const n={};if(e.layout){const{order:o,alignSelf:a,flexBasis:u,flexGrow:l,flexShrink:s}=e.layout;o!=null&&(n.order=o),a!=null&&(n["align-self"]=a),u!=null&&(n["flex-basis"]=u),l!=null&&(n["flex-grow"]=l),s!=null&&(n["flex-shrink"]=s)}return n}}},render(){var e,t;return i.createVNode("div",{class:this.ns.b(),style:this.getStyle()},[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}});function pc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const la=i.defineComponent({name:"FlexContainer",props:{layout:Object},setup(e){return{ns:w.useNamespace("flex-container"),getStyle:()=>{const o={};if(e.layout){const{alignContent:a,alignItems:u,flexDirection:l,flexWrap:s,justifyContent:d}=e.layout;a!=null&&(o.alignContent=a),u!=null&&(o.alignItems=u),l!=null&&(o.flexDirection=l),s!=null&&(o.flexWrap=s),d!=null&&(o.justifyContent=d)}return o},getItemStyle:o=>{const a={};if(o){const{width:u,height:l}=o;u!=null&&(a.width=u),l!=null&&(a.height=l)}return a}}},render(){var t,r;let e=((r=(t=this.$slots).default)==null?void 0:r.call(t))||[];return e.length>0&&(e=e[0].children||[]),i.createVNode("div",{class:this.ns.b(),style:this.getStyle()},[e.map(n=>{if(!n)return null;const o=n.props.model.flexItem;return i.createVNode(Jn,{layout:o,style:this.getItemStyle(n.props.model)},pc(n)?n:{default:()=>[n]})})])}});function sa(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const ua=i.defineComponent({name:"GridContainer",props:{layout:Object},setup(){return{ns:w.useNamespace("grid-container")}},render(){var n,o;let e;const t=this.layout||{};let r=((o=(n=this.$slots).default)==null?void 0:o.call(n))||[];return r.length>0&&(r=r[0].children||[]),i.createVNode(i.resolveComponent("a-row"),{class:this.ns.b(),wrap:!0,gutter:t.gutter},sa(e=r.map(a=>{if(!a)return null;const u=a.props.model.gridItem;return i.createVNode(i.resolveComponent("a-col"),{span:u?u.span??24:24,offset:u?u.offset??0:0},sa(a)?a:{default:()=>[a]})}))?e:{default:()=>[e]})}}),ca=i.defineComponent({name:"ViewContainer",props:{context:{type:Object},params:{type:Object},modal:{type:Object,required:!0}},setup(){return{ns:w.useNamespace("view-container")}},render(){var e,t;return i.createVNode("div",{class:this.ns.b()},[this.$slots.header?i.createVNode("div",{class:this.ns.b("header")},[this.$slots.header()]):null,i.createVNode("div",{class:this.ns.b("content")},[(t=(e=this.$slots).default)==null?void 0:t.call(e)]),this.$slots.footer?i.createVNode("div",{class:this.ns.b("footer")},[this.$slots.footer()]):null])}}),hc=i.defineComponent({name:"GctFormLengthUnit",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,required:!0}},emits:["update:value"],setup(e){const t=w.useNamespace("form-length-unit"),r=new w.LengthUnitEditorController(e.model),n=w.useGctFormValue();return{ns:t,c:r,val:n}},render(){return i.createVNode(i.resolveComponent("length-unit-editor"),i.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]}),null)}});class vc{constructor(){M(this,"component","gct-form-length-unit")}}const gc=w.widthEditorInstall(w.EditorTypeOld.LENGTH_UNIT,()=>new vc,hc),Bl=i.defineComponent({name:"GctFormColor",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String}},emits:["update:value"],setup(){const e=w.useNamespace("form-color"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return i.createVNode(i.resolveComponent("color-picker"),i.mergeProps({pureColor:this.val,"onUpdate:pureColor":e=>this.val=e,format:"rgba",shape:"circle","use-type":"pure","picker-type":"chrome",class:[this.ns.b(),this.ns.is("readonly",this.model.readonly)]},this.model.props||{}),null)}});class Fl{constructor(){M(this,"component","gct-form-color")}}const mc=w.widthEditorInstall(w.EditorType.COLOR,()=>new Fl,Bl),yc=w.widthEditorInstall(w.EditorTypeOld.COLOR,()=>new Fl,Bl);class bc{constructor(){M(this,"component","gct-form-check-switch")}}const Cc=i.defineComponent({name:"GctFormCheckSwitch",props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:Boolean,default:!1}},emits:["update:value"],setup(e){const t=w.useNamespace("gct-form-check-switch"),r=new w.EditorController(e.model),n=w.useGctFormValue();return{ns:t,c:r,val:n}},render(){return this.model.isSwitch?i.createVNode("div",{class:[this.ns.b(),this.ns.m("switch"),this.ns.is("readonly",this.model.readonly)]},[i.createVNode(i.resolveComponent("a-switch"),i.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)]):i.createVNode(i.resolveComponent("a-checkbox"),i.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{},{class:[this.ns.b(),this.ns.m("checkbox"),this.ns.is("readonly",this.model.readonly)]}),{default:()=>[this.model.label]})}}),wc=w.widthEditorInstall(w.EditorTypeOld.CHECK_SWITCH,()=>new bc,Cc);class Sc{constructor(){M(this,"component","gct-form-i18n")}}const Oc=i.defineComponent({name:"GctFormI18n",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-i18n"),r=w.useForm().item.i18nConfig,n=w.useGctFormValue(),o=i.computed({get:()=>r?r.value:"",set:a=>{r&&(r.value=a)}});return{ns:e,val:n,i18nConfigValue:o}},render(){return i.createVNode(i.resolveComponent("i18n-select-input"),i.mergeProps(this.model.props||{},{i18nText:this.val,"onUpdate:i18nText":e=>this.val=e,i18nConfig:this.i18nConfigValue,"onUpdate:i18nConfig":e=>this.i18nConfigValue=e,inputExtraProps:{showCount:!0,maxlength:32,disabled:this.c.state.disabled}}),null)}}),xc=w.widthEditorInstall(w.EditorTypeOld.I18N,()=>new Sc,Oc),Ec=i.defineComponent({name:"GctFormIconSelect",props:{value:{type:Object},model:{type:Object,required:!0}},emits:["update:value"],setup(e,{emit:t}){var s,d,c;const r=w.useNamespace("gct-form-icon-select"),n=i.ref(e.value),o=i.ref(((s=n.value)==null?void 0:s.icon)||e.model.defaultIcon),a=i.ref(((d=n.value)==null?void 0:d.color)||e.model.defaultColor),u=i.ref(((c=n.value)==null?void 0:c.background)||e.model.defaultBackground);i.watch(()=>e.value,f=>{n.value=f,f&&(o.value=f.icon,a.value=f.color)}),i.watch([o,a,u],()=>{n.value={icon:o.value,color:a.value},t("update:value",n.value)});const l=i.computed(()=>{if(e.model.size)return{"--box-size":e.model.size+"px"}});return{ns:r,icon:o,color:a,background:u,nextPickerStyle:l}},render(){return i.createVNode("div",{class:this.ns.b()},[i.createVNode(i.resolveComponent("icon-next-picker"),{value:this.icon,"onUpdate:value":e=>this.icon=e,color:this.color,"onUpdate:color":e=>this.color=e,background:"#f5f5f5",disabled:this.model.disabled,showColor:this.model.showColor!==!1,style:this.nextPickerStyle},null),this.model.label?i.createVNode("span",{class:this.ns.e("title")},[this.model.label]):null])}});let kc=class{constructor(){M(this,"component","gct-form-icon-select")}};const _c=w.widthEditorInstall(w.EditorTypeOld.ICON_SELECT,()=>new kc,Ec);class Ml{constructor(){M(this,"component","gct-form-number")}}const ql=i.defineComponent({name:"GctFormNumber",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-number"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return i.createVNode(i.resolveComponent("a-input-number"),i.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e,class:this.ns.b(),prefix:this.model.prefix,suffix:this.model.suffix,addonBefore:this.model.addonBefore,addonAfter:this.model.addonAfter,placeholder:this.model.placeholder,max:this.model.max,min:this.model.min,precision:this.model.precision},this.model.props||{}),null)}}),Nc=w.widthEditorInstall(w.EditorType.NUMBER,()=>new Ml,ql),Tc=w.widthEditorInstall(w.EditorTypeOld.NUMBER,()=>new Ml,ql);class Ac{constructor(){M(this,"component","gct-form-picker")}}const Pc=i.defineComponent({name:"GctFormPicker",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("gct-form-picker"),n=i.computed({get(){return e.model.nameField?e.c.data[e.model.nameField]:""},set(l){e.model.nameField&&(e.c.data[e.model.nameField]=l)}}),o=i.computed({get:()=>!e.c.state.options.find(s=>s.value===e.value)&&n.value?n.value:e.value,set:l=>{typeof l=="string"&&(l=l.trim()),!(typeof l!="object"&&e.value==l)&&t("update:value",l)}}),a=()=>e.c.loadDictionary();return o.value!=null&&e.c.loadDictionary(),{ns:r,val:o,nameVal:n,loadOptions:a,onChange:(l,s)=>{n.value=s.label}}},render(){return i.createVNode(i.resolveComponent("a-select"),i.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),disabled:this.c.state.disabled,loading:this.c.state.loading,options:this.c.state.options,placeholder:this.model.placeholder,onDropdownVisibleChange:this.loadOptions,onChange:this.onChange}),null)}}),Rc=w.widthEditorInstall(w.EditorTypeOld.PICKER,()=>new Ac,Pc);class jc{constructor(){M(this,"component","gct-form-select")}}const Ic=i.defineComponent({name:"GctFormSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=w.useNamespace("gct-form-select"),r=w.useGctFormValue(),n=i.computed(()=>e.c.state.options&&e.c.state.options.length>0?e.c.state.options:[]);return{ns:t,val:r,options:n}},render(){return i.createVNode(i.resolveComponent("a-select"),i.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),options:this.options,allowClear:!0,disabled:this.c.state.disabled}),null)}}),Vc=w.widthEditorInstall(w.EditorTypeOld.SELECT,()=>new jc,Ic);class $c{constructor(){M(this,"component","gct-form-Modal-select")}}const Bc=i.defineComponent({name:"GctFormModalSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-modal-select"),t=i.ref("1"),r=w.useGctFormValue(),n=i.computed({get(){return r.value||void 0},set(a){r.value=a}}),o=i.computed(()=>[{label:"默认",options:[{value:"1",label:"模型一"},{value:"2",label:"模型二"}]},{label:"产品建模",options:[{value:"3",label:"产品信息"},{value:"4",label:"产品类型"}]}]);return{ns:e,val:n,options:o,modelCategory:t}},render(){return i.createVNode(i.resolveComponent("a-input-group"),{class:this.ns.b()},{default:()=>[i.createVNode(i.resolveComponent("a-form-item-rest"),null,{default:()=>[i.createVNode(i.resolveComponent("a-select"),i.mergeProps({value:this.modelCategory,"onUpdate:value":e=>this.modelCategory=e},this.model.props||{},{placeholder:"请选择",options:[{value:"1",label:"实体"},{value:"2",label:"视图"},{value:"3",label:"数据"}],disabled:this.c.state.disabled}),null)]}),i.createVNode(i.resolveComponent("a-select"),i.mergeProps({class:this.ns.e("select"),value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{placeholder:"请选择",options:this.options,allowClear:!0,disabled:this.c.state.disabled}),null)]})}}),Fc=w.widthEditorInstall(w.EditorTypeOld.MODEL_SELECT,()=>new $c,Bc);class Mc{constructor(){M(this,"component","gct-form-field-select")}}const qc={class:"gct-box"},Dc=i.defineComponent({__name:"gct-model-select",props:{value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,n=t,o=i.computed({get(){return r.value},set(d){n("update:value",d)}}),a=i.ref([{key:0,title:"公司名称"},{key:1,title:"ID"},{key:2,title:"创建人"},{key:3,title:"创建部门"},{key:4,title:"修改时间"},{key:5,title:"修改人"},{key:6,title:"修改部门"}]),u=i.ref([]),l=(d,c)=>{console.log()};function s(){o.value=!1}return(d,c)=>{const f=i.resolveComponent("a-transfer"),p=i.resolveComponent("a-modal");return i.openBlock(),i.createBlock(p,{visible:o.value,"onUpdate:visible":c[1]||(c[1]=h=>o.value=h),width:"600px",title:"关联模型字段","ok-text":"确认","cancel-text":"取消",onOk:s},{default:i.withCtx(()=>[c[2]||(c[2]=i.createElementVNode("div",null,"所属模型:公司",-1)),i.createElementVNode("div",qc,[i.createVNode(f,{"target-keys":u.value,"onUpdate:targetKeys":c[0]||(c[0]=h=>u.value=h),locale:{itemUnit:"项已选",itemsUnit:"项未选",searchPlaceholder:"请输入搜索内容"},"data-source":a.value,"show-search":"","filter-option":l,render:h=>h.title},null,8,["target-keys","data-source","render"])])]),_:1},8,["visible"])}}}),Gc=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},da=Gc(Dc,[["__scopeId","data-v-bff0c27a"]]),Lc=i.defineComponent({name:"GctFormFieldSelect",components:{modal:da},props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-field-select"),t=i.ref(!1);return{ns:e,visible:t}},render(){return i.createVNode("div",null,[i.createVNode(i.resolveComponent("a-button"),{onClick:()=>this.visible=!0,block:!0},{default:()=>[i.createTextVNode("选择模型字段")]}),i.createVNode(da,{value:this.visible,"onUpdate:value":e=>this.visible=e},null)])}}),Hc=w.widthEditorInstall(w.EditorTypeOld.Field_SELECT,()=>new Mc,Lc);class Uc{constructor(){M(this,"component","gct-form-span")}}const zc=i.defineComponent({name:"GctFormSpan",props:{c:{type:Object,required:!0},itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},setup(e){const t=w.useNamespace("form-span"),{model:r,itemModel:n,c:o}=i.toRefs(e);function a(){const{isSuccessRef:l}=w.useCopyToClipboard(e.value);l.value&&qe.message.success(_gct.t("sys.copySuccess"))}o.value.loadDictionary();const u=i.computed(()=>{if(r.value.format&&typeof r.value.format=="function")return r.value.format(o.value.data,n.value,o.value);if(e.value==null||e.value==="")return e.value;if(n.value.dictionary){const s=(n.value.dictionary.items||[]).find(d=>d.value==e.value);if(s)return s.label}if(o.value.state.options.length>0){const l=o.value.state.options.find(s=>s.value==e.value);if(l)return l.label}return e.value});return{ns:t,val:u,handleClipboardKey:a}},render(){return i.createVNode("div",{class:this.ns.b()},[i.createVNode("span",{class:this.ns.e("info")},[this.val]),this.model.copy&&i.createVNode("span",{class:this.ns.e("copy")},[i.createVNode("i",{class:"iconfont icon-fuzhi primary-gct",onClick:this.handleClipboardKey},null)])])}}),Wc=w.widthEditorInstall(w.EditorTypeOld.SPAN,()=>new Uc,zc);class Dl{constructor(){M(this,"component","gct-form-switch")}}const Gl=i.defineComponent({name:"GctFormSwitch",props:{model:{type:Object,required:!0},value:{type:String,default:""}},setup(){const e=w.useNamespace("gct-form-switch"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return i.createVNode("div",{class:this.ns.b()},[i.createVNode(i.resolveComponent("a-switch"),i.mergeProps({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)])}}),Kc=w.widthEditorInstall(w.EditorType.SWITCH,()=>new Dl,Gl),Yc=w.widthEditorInstall(w.EditorTypeOld.SWITCH,()=>new Dl,Gl);class Ll{constructor(){M(this,"component","gct-form-text")}}const Hl=i.defineComponent({name:"GctFormText",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=w.useNamespace("gct-form-text"),r=new w.EditorController(e.model),n=w.useGctFormValueByText(e.model.prefix||e.model.addonBefore,e.model.suffix||e.model.addonAfter);return{ns:t,c:r,val:n}},render(){return i.createVNode(i.resolveComponent("a-input"),i.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),prefix:this.model.prefix,suffix:this.model.suffix,addonBefore:this.model.addonBefore,addonAfter:this.model.addonAfter,placeholder:this.model.placeholder,"show-count":this.model.max!=null,maxlength:this.model.max}),null)}}),Xc=w.widthEditorInstall(w.EditorType.TEXT,()=>new Ll,Hl),Jc=w.widthEditorInstall(w.EditorTypeOld.TEXT,()=>new Ll,Hl);class Zc{constructor(){M(this,"component","gct-form-textarea")}}const Qc=i.defineComponent({name:"GctFormTextarea",props:{model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-textarea"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return i.createVNode(i.resolveComponent("a-textarea"),i.mergeProps({value:this.val,"onUpdate:value":e=>this.val=e},this.model.props||{},{class:this.ns.b(),"auto-size":this.model.autoSize,"show-count":this.model.max!=null,maxlength:this.model.max,placeholder:this.model.placeholder}),null)}}),ed=w.widthEditorInstall(w.EditorTypeOld.TEXTAREA,()=>new Zc,Qc);function td(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Ul=i.defineComponent({name:"GctFormRadio",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-radio"),t=w.useGctFormValue();return{ns:e,val:t}},render(){const e={...this.model.props||{},class:[this.ns.b()],allowClear:!0,disabled:this.c.state.disabled};if(this.model.buttonMode){let t;return e.class.push(this.ns.m("button")),i.createVNode(qe.RadioGroup,i.mergeProps({value:this.val,"onUpdate:value":r=>this.val=r,size:"small","button-style":"solid"},e),td(t=this.c.state.options.map(r=>i.createVNode(qe.RadioButton,{key:r.value,value:r.value},{default:()=>[r.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),i.createVNode(qe.RadioGroup,i.mergeProps({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let zl=class{constructor(){M(this,"component","gct-form-radio")}};const rd=w.widthEditorInstall(w.EditorType.RADIO,()=>new zl,Ul),nd=w.widthEditorInstall(w.EditorTypeOld.RADIO,()=>new zl,Ul),od=i.defineComponent({name:"GctFormInfo",props:{value:{type:String,default:""},model:{type:Object,required:!0}},emits:["update:value"],setup(){const e=w.useNamespace("gct-form-info"),t=w.useGctFormValue();return{ns:e,val:t}},render(){return i.createVNode("div",{class:this.ns.b()},[this.model.icon?i.createVNode("span",{class:this.ns.e("icon")},[i.createVNode("i",{class:`iconfont ${this.model.icon}`},null)]):null,i.createVNode("span",{class:this.ns.e("content")},[this.val||this.model.content])])}});let ad=class{constructor(){M(this,"component","gct-form-info")}};const id=w.widthEditorInstall(w.EditorTypeOld.INFO,()=>new ad,od),Wl=i.defineComponent({name:"GctFormCheckbox",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:t}){const r=w.useNamespace("gct-form-checkbox"),n=w.useGctFormValue(),o=i.computed(()=>n.value),a=i.computed(()=>mt.cloneDeep(e.c.state.options));return{ns:r,checked:o,onChange:l=>{a.value.forEach(s=>{e.model.minLength&&l.length<=e.model.minLength&&l.includes(s.value)?s.disabled=!0:s.disabled=!1,s.checked=l.includes(s.value)}),t("update:value",l)},options:a}},render(){const e={...this.model.props||{},class:[this.ns.b(),this.ns.m("checkbox"),this.model.layout==="column"&&"isColumn"],disabled:this.c.state.disabled};return i.createVNode(qe.CheckboxGroup,i.mergeProps({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class Kl{constructor(){M(this,"component","gct-form-checkbox")}}const ld=w.widthEditorInstall(w.EditorType.CHECKBOX,()=>new Kl,Wl),sd=w.widthEditorInstall(w.EditorTypeOld.CHECKBOX,()=>new Kl,Wl);var Yl=require("../internals/global-this"),Xl=require("../internals/function-call"),fo=require("../internals/array-buffer-view-core"),ud=require("../internals/length-of-array-like"),cd=require("../internals/to-offset"),dd=require("../internals/to-object"),Jl=require("../internals/fails"),fd=Yl.RangeError,Zn=Yl.Int8Array,fa=Zn&&Zn.prototype,Zl=fa&&fa.set,pd=fo.aTypedArray,hd=fo.exportTypedArrayMethod,Qn=!Jl(function(){var e=new Uint8ClampedArray(2);return Xl(Zl,e,{length:1,0:3},1),e[1]!==3}),vd=Qn&&fo.NATIVE_ARRAY_BUFFER_VIEWS&&Jl(function(){var e=new Zn(2);return e.set(1),e.set("2",1),e[0]!==0||e[1]!==2});hd("set",function(t){pd(this);var r=cd(arguments.length>1?arguments[1]:void 0,1),n=dd(t);if(Qn)return Xl(Zl,this,n,r);var o=this.length,a=ud(n),u=0;if(a+r>o)throw new fd("Wrong length");for(;u<a;)this[r+u]=n[u++]},!Qn||vd);function Ql(e){return i.getCurrentScope()?(i.onScopeDispose(e),!0):!1}function Le(e){return typeof e=="function"?e():i.unref(e)}const Or=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const gd=Object.prototype.toString,md=e=>gd.call(e)==="[object Object]",it=()=>{},yd=bd();function bd(){var e,t;return Or&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function es(e,t){function r(...n){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(o).catch(a)})}return r}const ts=e=>e();function Cd(e,t={}){let r,n,o=it;const a=l=>{clearTimeout(l),o(),o=it};return l=>{const s=Le(e),d=Le(t.maxWait);return r&&a(r),s<=0||d!==void 0&&d<=0?(n&&(a(n),n=null),Promise.resolve(l())):new Promise((c,f)=>{o=t.rejectOnCancel?f:c,d&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,c(l())},d)),r=setTimeout(()=>{n&&a(n),n=null,c(l())},s)})}}function wd(e=ts){const t=i.ref(!0);function r(){t.value=!1}function n(){t.value=!0}const o=(...a)=>{t.value&&e(...a)};return{isActive:i.readonly(t),pause:r,resume:n,eventFilter:o}}function Sd(e){let t;function r(){return t||(t=e()),t}return r.reset=async()=>{const n=t;t=void 0,n&&await n},r}function Od(e){return i.getCurrentInstance()}function Ee(e,t=200,r={}){return es(Cd(t,r),e)}function xd(e,t,r={}){const{eventFilter:n=ts,...o}=r;return i.watch(e,es(n,t),o)}function Ed(e,t,r={}){const{eventFilter:n,...o}=r,{eventFilter:a,pause:u,resume:l,isActive:s}=wd(n);return{stop:xd(e,t,{...o,eventFilter:a}),pause:u,resume:l,isActive:s}}function We(e,t=!0,r){Od()?i.onMounted(e,r):t?e():i.nextTick(e)}function kd(e,t,r={}){const{immediate:n=!0}=r,o=i.ref(!1);let a=null;function u(){a&&(clearTimeout(a),a=null)}function l(){o.value=!1,u()}function s(...d){u(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=null,e(...d)},Le(t))}return n&&(o.value=!0,Or&&s()),Ql(l),{isPending:i.readonly(o),start:s,stop:l}}function J(e,t,r){const n=i.watch(e,(o,a,u)=>{o&&(r!=null&&r.once&&i.nextTick(()=>n()),t(o,a,u))},{...r,once:!1});return n}function Nt(e){var t;const r=Le(e);return(t=r==null?void 0:r.$el)!=null?t:r}const $t=Or?window:void 0,rs=Or?window.navigator:void 0;function De(...e){let t,r,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,o]=e,t=$t):[t,r,n,o]=e,!t)return it;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],u=()=>{a.forEach(c=>c()),a.length=0},l=(c,f,p,h)=>(c.addEventListener(f,p,h),()=>c.removeEventListener(f,p,h)),s=i.watch(()=>[Nt(t),Le(o)],([c,f])=>{if(u(),!c)return;const p=md(f)?{...f}:f;a.push(...r.flatMap(h=>n.map(v=>l(c,h,v,p))))},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return Ql(d),d}let pa=!1;function _d(e,t,r={}){const{window:n=$t,ignore:o=[],capture:a=!0,detectIframe:u=!1}=r;if(!n)return it;yd&&!pa&&(pa=!0,Array.from(n.document.body.children).forEach(p=>p.addEventListener("click",it)),n.document.documentElement.addEventListener("click",it));let l=!0;const s=p=>o.some(h=>{if(typeof h=="string")return Array.from(n.document.querySelectorAll(h)).some(v=>v===p.target||p.composedPath().includes(v));{const v=Nt(h);return v&&(p.target===v||p.composedPath().includes(v))}}),c=[De(n,"click",p=>{const h=Nt(e);if(!(!h||h===p.target||p.composedPath().includes(h))){if(p.detail===0&&(l=!s(p)),!l){l=!0;return}t(p)}},{passive:!0,capture:a}),De(n,"pointerdown",p=>{const h=Nt(e);l=!s(p)&&!!(h&&!p.composedPath().includes(h))},{passive:!0}),u&&De(n,"blur",p=>{setTimeout(()=>{var h;const v=Nt(e);((h=n.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(v!=null&&v.contains(n.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>c.forEach(p=>p())}function Nd(){const e=i.ref(!1),t=i.getCurrentInstance();return t&&i.onMounted(()=>{e.value=!0},t),e}function ns(e){const t=Nd();return i.computed(()=>(t.value,!!e()))}function ha(e,t={}){const{controls:r=!1,navigator:n=rs}=t,o=ns(()=>n&&"permissions"in n);let a;const u=typeof e=="string"?{name:e}:e,l=i.ref(),s=()=>{a&&(l.value=a.state)},d=Sd(async()=>{if(o.value){if(!a)try{a=await n.permissions.query(u),De(a,"change",s),s()}catch{l.value="prompt"}return a}});return d(),r?{state:l,isSupported:o,query:d}:l}function Td(e={}){const{navigator:t=rs,read:r=!1,source:n,copiedDuring:o=1500,legacy:a=!1}=e,u=ns(()=>t&&"clipboard"in t),l=ha("clipboard-read"),s=ha("clipboard-write"),d=i.computed(()=>u.value||a),c=i.ref(""),f=i.ref(!1),p=kd(()=>f.value=!1,o);function h(){u.value&&b(l.value)?t.clipboard.readText().then(g=>{c.value=g}):c.value=m()}d.value&&r&&De(["copy","cut"],h);async function v(g=Le(n)){d.value&&g!=null&&(u.value&&b(s.value)?await t.clipboard.writeText(g):y(g),c.value=g,f.value=!0,p.start())}function y(g){const S=document.createElement("textarea");S.value=g??"",S.style.position="absolute",S.style.opacity="0",document.body.appendChild(S),S.select(),document.execCommand("copy"),S.remove()}function m(){var g,S,O;return(O=(S=(g=document==null?void 0:document.getSelection)==null?void 0:g.call(document))==null?void 0:S.toString())!=null?O:""}function b(g){return g==="granted"||g==="prompt"}return{isSupported:d,text:c,copied:f,copy:v}}const Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qt="__vueuse_ssr_handlers__",Ad=Pd();function Pd(){return Qt in Zt||(Zt[Qt]=Zt[Qt]||{}),Zt[Qt]}function Rd(e,t){return Ad[e]||t}function jd(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Id={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},va="vueuse-storage";function Vd(e,t,r,n={}){var o;const{flush:a="pre",deep:u=!0,listenToStorageChanges:l=!0,writeDefaults:s=!0,mergeDefaults:d=!1,shallow:c,window:f=$t,eventFilter:p,onError:h=N=>{console.error(N)},initOnMounted:v}=n,y=(c?i.shallowRef:i.ref)(typeof t=="function"?t():t);if(!r)try{r=Rd("getDefaultStorage",()=>{var N;return(N=$t)==null?void 0:N.localStorage})()}catch(N){h(N)}if(!r)return y;const m=Le(t),b=jd(m),g=(o=n.serializer)!=null?o:Id[b],{pause:S,resume:O}=Ed(y,()=>k(y.value),{flush:a,deep:u,eventFilter:p});f&&l&&We(()=>{De(f,"storage",V),De(f,va,j),v&&V()}),v||V();function E(N,C){f&&f.dispatchEvent(new CustomEvent(va,{detail:{key:e,oldValue:N,newValue:C,storageArea:r}}))}function k(N){try{const C=r.getItem(e);if(N==null)E(C,null),r.removeItem(e);else{const _=g.write(N);C!==_&&(r.setItem(e,_),E(C,_))}}catch(C){h(C)}}function P(N){const C=N?N.newValue:r.getItem(e);if(C==null)return s&&m!=null&&r.setItem(e,g.write(m)),m;if(!N&&d){const _=g.read(C);return typeof d=="function"?d(_,m):b==="object"&&!Array.isArray(_)?{...m,..._}:_}else return typeof C!="string"?C:g.read(C)}function V(N){if(!(N&&N.storageArea!==r)){if(N&&N.key==null){y.value=m;return}if(!(N&&N.key!==e)){S();try{(N==null?void 0:N.newValue)!==g.write(y.value)&&(y.value=P(N))}catch(C){h(C)}finally{N?i.nextTick(O):O()}}}}function j(N){V(N.detail)}return y}function po(e,t,r={}){const{window:n=$t}=r;return Vd(e,t,n==null?void 0:n.localStorage,r)}function ur(e){"@babel/helpers - typeof";return ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ur(e)}var $d=/^\s+/,Bd=/\s+$/;function x(e,t){if(e=e||"",t=t||{},e instanceof x)return e;if(!(this instanceof x))return new x(e,t);var r=Fd(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}x.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,o,a,u,l;return r=t.r/255,n=t.g/255,o=t.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),n<=.03928?u=n/12.92:u=Math.pow((n+.055)/1.055,2.4),o<=.03928?l=o/12.92:l=Math.pow((o+.055)/1.055,2.4),.2126*a+.7152*u+.0722*l},setAlpha:function(t){return this._a=os(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=ma(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=ma(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+o+"%)":"hsva("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=ga(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=ga(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+o+"%)":"hsla("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return ya(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return Gd(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(G(this._r,255)*100)+"%",g:Math.round(G(this._g,255)*100)+"%",b:Math.round(G(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(G(this._r,255)*100)+"%, "+Math.round(G(this._g,255)*100)+"%, "+Math.round(G(this._b,255)*100)+"%)":"rgba("+Math.round(G(this._r,255)*100)+"%, "+Math.round(G(this._g,255)*100)+"%, "+Math.round(G(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ef[ya(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+ba(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var a=x(t);n="#"+ba(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,o=this._a<1&&this._a>=0,a=!r&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return x(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(zd,arguments)},brighten:function(){return this._applyModification(Wd,arguments)},darken:function(){return this._applyModification(Kd,arguments)},desaturate:function(){return this._applyModification(Ld,arguments)},saturate:function(){return this._applyModification(Hd,arguments)},greyscale:function(){return this._applyModification(Ud,arguments)},spin:function(){return this._applyModification(Yd,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(Zd,arguments)},complement:function(){return this._applyCombination(Xd,arguments)},monochromatic:function(){return this._applyCombination(Qd,arguments)},splitcomplement:function(){return this._applyCombination(Jd,arguments)},triad:function(){return this._applyCombination(Ca,[3])},tetrad:function(){return this._applyCombination(Ca,[4])}};x.fromRatio=function(e,t){if(ur(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=Tt(e[n]));e=r}return x(e,t)};function Fd(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,a=null,u=!1,l=!1;return typeof e=="string"&&(e=of(e)),ur(e)=="object"&&(Oe(e.r)&&Oe(e.g)&&Oe(e.b)?(t=Md(e.r,e.g,e.b),u=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Oe(e.h)&&Oe(e.s)&&Oe(e.v)?(n=Tt(e.s),o=Tt(e.v),t=Dd(e.h,n,o),u=!0,l="hsv"):Oe(e.h)&&Oe(e.s)&&Oe(e.l)&&(n=Tt(e.s),a=Tt(e.l),t=qd(e.h,n,a),u=!0,l="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=os(r),{ok:u,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function Md(e,t,r){return{r:G(e,255)*255,g:G(t,255)*255,b:G(r,255)*255}}function ga(e,t,r){e=G(e,255),t=G(t,255),r=G(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,u,l=(n+o)/2;if(n==o)a=u=0;else{var s=n-o;switch(u=l>.5?s/(2-n-o):s/(n+o),n){case e:a=(t-r)/s+(t<r?6:0);break;case t:a=(r-e)/s+2;break;case r:a=(e-t)/s+4;break}a/=6}return{h:a,s:u,l}}function qd(e,t,r){var n,o,a;e=G(e,360),t=G(t,100),r=G(r,100);function u(d,c,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?d+(c-d)*6*f:f<1/2?c:f<2/3?d+(c-d)*(2/3-f)*6:d}if(t===0)n=o=a=r;else{var l=r<.5?r*(1+t):r+t-r*t,s=2*r-l;n=u(s,l,e+1/3),o=u(s,l,e),a=u(s,l,e-1/3)}return{r:n*255,g:o*255,b:a*255}}function ma(e,t,r){e=G(e,255),t=G(t,255),r=G(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,u,l=n,s=n-o;if(u=n===0?0:s/n,n==o)a=0;else{switch(n){case e:a=(t-r)/s+(t<r?6:0);break;case t:a=(r-e)/s+2;break;case r:a=(e-t)/s+4;break}a/=6}return{h:a,s:u,v:l}}function Dd(e,t,r){e=G(e,360)*6,t=G(t,100),r=G(r,100);var n=Math.floor(e),o=e-n,a=r*(1-t),u=r*(1-o*t),l=r*(1-(1-o)*t),s=n%6,d=[r,u,a,a,l,r][s],c=[l,r,r,u,a,a][s],f=[a,a,l,r,r,u][s];return{r:d*255,g:c*255,b:f*255}}function ya(e,t,r,n){var o=[ve(Math.round(e).toString(16)),ve(Math.round(t).toString(16)),ve(Math.round(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Gd(e,t,r,n,o){var a=[ve(Math.round(e).toString(16)),ve(Math.round(t).toString(16)),ve(Math.round(r).toString(16)),ve(as(n))];return o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function ba(e,t,r,n){var o=[ve(as(n)),ve(Math.round(e).toString(16)),ve(Math.round(t).toString(16)),ve(Math.round(r).toString(16))];return o.join("")}x.equals=function(e,t){return!e||!t?!1:x(e).toRgbString()==x(t).toRgbString()};x.random=function(){return x.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Ld(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s-=t/100,r.s=xr(r.s),x(r)}function Hd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s+=t/100,r.s=xr(r.s),x(r)}function Ud(e){return x(e).desaturate(100)}function zd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l+=t/100,r.l=xr(r.l),x(r)}function Wd(e,t){t=t===0?0:t||10;var r=x(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),x(r)}function Kd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l-=t/100,r.l=xr(r.l),x(r)}function Yd(e,t){var r=x(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,x(r)}function Xd(e){var t=x(e).toHsl();return t.h=(t.h+180)%360,x(t)}function Ca(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=x(e).toHsl(),n=[x(e)],o=360/t,a=1;a<t;a++)n.push(x({h:(r.h+a*o)%360,s:r.s,l:r.l}));return n}function Jd(e){var t=x(e).toHsl(),r=t.h;return[x(e),x({h:(r+72)%360,s:t.s,l:t.l}),x({h:(r+216)%360,s:t.s,l:t.l})]}function Zd(e,t,r){t=t||6,r=r||30;var n=x(e).toHsl(),o=360/r,a=[x(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(x(n));return a}function Qd(e,t){t=t||6;for(var r=x(e).toHsv(),n=r.h,o=r.s,a=r.v,u=[],l=1/t;t--;)u.push(x({h:n,s:o,v:a})),a=(a+l)%1;return u}x.mix=function(e,t,r){r=r===0?0:r||50;var n=x(e).toRgb(),o=x(t).toRgb(),a=r/100,u={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return x(u)};x.readability=function(e,t){var r=x(e),n=x(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};x.isReadable=function(e,t,r){var n=x.readability(e,t),o,a;switch(a=!1,o=af(r),o.level+o.size){case"AAsmall":case"AAAlarge":a=n>=4.5;break;case"AAlarge":a=n>=3;break;case"AAAsmall":a=n>=7;break}return a};x.mostReadable=function(e,t,r){var n=null,o=0,a,u,l,s;r=r||{},u=r.includeFallbackColors,l=r.level,s=r.size;for(var d=0;d<t.length;d++)a=x.readability(e,t[d]),a>o&&(o=a,n=x(t[d]));return x.isReadable(e,n,{level:l,size:s})||!u?n:(r.includeFallbackColors=!1,x.mostReadable(e,["#fff","#000"],r))};var eo=x.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ef=x.hexNames=tf(eo);function tf(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function os(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function G(e,t){rf(e)&&(e="100%");var r=nf(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function xr(e){return Math.min(1,Math.max(0,e))}function oe(e){return parseInt(e,16)}function rf(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function nf(e){return typeof e=="string"&&e.indexOf("%")!=-1}function ve(e){return e.length==1?"0"+e:""+e}function Tt(e){return e<=1&&(e=e*100+"%"),e}function as(e){return Math.round(parseFloat(e)*255).toString(16)}function wa(e){return oe(e)/255}var he=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Oe(e){return!!he.CSS_UNIT.exec(e)}function of(e){e=e.replace($d,"").replace(Bd,"").toLowerCase();var t=!1;if(eo[e])e=eo[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=he.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=he.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=he.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=he.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=he.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=he.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=he.hex8.exec(e))?{r:oe(r[1]),g:oe(r[2]),b:oe(r[3]),a:wa(r[4]),format:t?"name":"hex8"}:(r=he.hex6.exec(e))?{r:oe(r[1]),g:oe(r[2]),b:oe(r[3]),format:t?"name":"hex"}:(r=he.hex4.exec(e))?{r:oe(r[1]+""+r[1]),g:oe(r[2]+""+r[2]),b:oe(r[3]+""+r[3]),a:wa(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=he.hex3.exec(e))?{r:oe(r[1]+""+r[1]),g:oe(r[2]+""+r[2]),b:oe(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function af(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var Sa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},er={},Oa;function lf(){if(Oa)return er;Oa=1;var e=e||{};e.stringify=function(){var t={"visit_linear-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-linear-gradient":function(r){return t.visit_gradient(r)},"visit_radial-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-radial-gradient":function(r){return t.visit_gradient(r)},visit_gradient:function(r){var n=t.visit(r.orientation);return n&&(n+=", "),r.type+"("+n+t.visit(r.colorStops)+")"},visit_shape:function(r){var n=r.value,o=t.visit(r.at),a=t.visit(r.style);return a&&(n+=" "+a),o&&(n+=" at "+o),n},"visit_default-radial":function(r){var n="",o=t.visit(r.at);return o&&(n+=o),n},"visit_extent-keyword":function(r){var n=r.value,o=t.visit(r.at);return o&&(n+=" at "+o),n},"visit_position-keyword":function(r){return r.value},visit_position:function(r){return t.visit(r.value.x)+" "+t.visit(r.value.y)},"visit_%":function(r){return r.value+"%"},visit_em:function(r){return r.value+"em"},visit_px:function(r){return r.value+"px"},visit_literal:function(r){return t.visit_color(r.value,r)},visit_hex:function(r){return t.visit_color("#"+r.value,r)},visit_rgb:function(r){return t.visit_color("rgb("+r.value.join(", ")+")",r)},visit_rgba:function(r){return t.visit_color("rgba("+r.value.join(", ")+")",r)},visit_color:function(r,n){var o=r,a=t.visit(n.length);return a&&(o+=" "+a),o},visit_angular:function(r){return r.value+"deg"},visit_directional:function(r){return"to "+r.value},visit_array:function(r){var n="",o=r.length;return r.forEach(function(a,u){n+=t.visit(a),u<o-1&&(n+=", ")}),n},visit:function(r){if(!r)return"";var n="";if(r instanceof Array)return t.visit_array(r,n);if(r.type){var o=t["visit_"+r.type];if(o)return o(r);throw Error("Missing visitor visit_"+r.type)}else throw Error("Invalid node.")}};return function(r){return t.visit(r)}}();var e=e||{};return e.parse=function(){var t={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},r="";function n(T){var I=new Error(r+": "+T);throw I.source=r,I}function o(){var T=a();return r.length>0&&n("Invalid input not EOF"),T}function a(){return O(u)}function u(){return l("linear-gradient",t.linearGradient,d)||l("repeating-linear-gradient",t.repeatingLinearGradient,d)||l("radial-gradient",t.radialGradient,p)||l("repeating-radial-gradient",t.repeatingRadialGradient,p)}function l(T,I,F){return s(I,function(ee){var me=F();return me&&(q(t.comma)||n("Missing comma before color stops")),{type:T,orientation:me,colorStops:O(E)}})}function s(T,I){var F=q(T);if(F){q(t.startCall)||n("Missing (");var ee=I(F);return q(t.endCall)||n("Missing )"),ee}}function d(){return c()||f()}function c(){return $("directional",t.sideOrCorner,1)}function f(){return $("angular",t.angleValue,1)}function p(){var T,I=h(),F;return I&&(T=[],T.push(I),F=r,q(t.comma)&&(I=h(),I?T.push(I):r=F)),T}function h(){var T=v()||y();if(T)T.at=b();else{var I=m();if(I){T=I;var F=b();F&&(T.at=F)}else{var ee=g();ee&&(T={type:"default-radial",at:ee})}}return T}function v(){var T=$("shape",/^(circle)/i,0);return T&&(T.style=B()||m()),T}function y(){var T=$("shape",/^(ellipse)/i,0);return T&&(T.style=_()||m()),T}function m(){return $("extent-keyword",t.extentKeywords,1)}function b(){if($("position",/^at/,0)){var T=g();return T||n("Missing positioning value"),T}}function g(){var T=S();if(T.x||T.y)return{type:"position",value:T}}function S(){return{x:_(),y:_()}}function O(T){var I=T(),F=[];if(I)for(F.push(I);q(t.comma);)I=T(),I?F.push(I):n("One extra comma");return F}function E(){var T=k();return T||n("Expected color definition"),T.length=_(),T}function k(){return V()||N()||j()||P()}function P(){return $("literal",t.literalColor,0)}function V(){return $("hex",t.hexColor,1)}function j(){return s(t.rgbColor,function(){return{type:"rgb",value:O(C)}})}function N(){return s(t.rgbaColor,function(){return{type:"rgba",value:O(C)}})}function C(){return q(t.number)[1]}function _(){return $("%",t.percentageValue,1)||R()||B()}function R(){return $("position-keyword",t.positionKeywords,1)}function B(){return $("px",t.pixelValue,1)||$("em",t.emValue,1)}function $(T,I,F){var ee=q(I);if(ee)return{type:T,value:ee[F]}}function q(T){var I,F;return F=/^[\n\r\t\s]+/.exec(r),F&&Y(F[0].length),I=T.exec(r),I&&Y(I[0].length),I}function Y(T){r=r.substr(T)}return function(T){return r=T.toString(),o()}}(),er.parse=e.parse,er.stringify=e.stringify,er}var xa=lf(),te="top",de="bottom",fe="right",re="left",ho="auto",Lt=[te,de,fe,re],st="start",Bt="end",sf="clippingParents",is="viewport",St="popper",uf="reference",Ea=Lt.reduce(function(e,t){return e.concat([t+"-"+st,t+"-"+Bt])},[]),ls=[].concat(Lt,[ho]).reduce(function(e,t){return e.concat([t,t+"-"+st,t+"-"+Bt])},[]),cf="beforeRead",df="read",ff="afterRead",pf="beforeMain",hf="main",vf="afterMain",gf="beforeWrite",mf="write",yf="afterWrite",bf=[cf,df,ff,pf,hf,vf,gf,mf,yf];function we(e){return e?(e.nodeName||"").toLowerCase():null}function ae(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function He(e){var t=ae(e).Element;return e instanceof t||e instanceof Element}function ue(e){var t=ae(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function vo(e){if(typeof ShadowRoot>"u")return!1;var t=ae(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Cf(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!ue(a)||!we(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(u){var l=o[u];l===!1?a.removeAttribute(u):a.setAttribute(u,l===!0?"":l)}))})}function wf(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},u=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=u.reduce(function(s,d){return s[d]="",s},{});!ue(o)||!we(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(s){o.removeAttribute(s)}))})}}const Sf={name:"applyStyles",enabled:!0,phase:"write",fn:Cf,effect:wf,requires:["computeStyles"]};function Ce(e){return e.split("-")[0]}var Ge=Math.max,cr=Math.min,ut=Math.round;function to(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ss(){return!/^((?!chrome|android).)*safari/i.test(to())}function ct(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&ue(e)&&(o=e.offsetWidth>0&&ut(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ut(n.height)/e.offsetHeight||1);var u=He(e)?ae(e):window,l=u.visualViewport,s=!ss()&&r,d=(n.left+(s&&l?l.offsetLeft:0))/o,c=(n.top+(s&&l?l.offsetTop:0))/a,f=n.width/o,p=n.height/a;return{width:f,height:p,top:c,right:d+f,bottom:c+p,left:d,x:d,y:c}}function go(e){var t=ct(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function us(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&vo(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function _e(e){return ae(e).getComputedStyle(e)}function Of(e){return["table","td","th"].indexOf(we(e))>=0}function Ve(e){return((He(e)?e.ownerDocument:e.document)||window.document).documentElement}function Er(e){return we(e)==="html"?e:e.assignedSlot||e.parentNode||(vo(e)?e.host:null)||Ve(e)}function ka(e){return!ue(e)||_e(e).position==="fixed"?null:e.offsetParent}function xf(e){var t=/firefox/i.test(to()),r=/Trident/i.test(to());if(r&&ue(e)){var n=_e(e);if(n.position==="fixed")return null}var o=Er(e);for(vo(o)&&(o=o.host);ue(o)&&["html","body"].indexOf(we(o))<0;){var a=_e(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Ht(e){for(var t=ae(e),r=ka(e);r&&Of(r)&&_e(r).position==="static";)r=ka(r);return r&&(we(r)==="html"||we(r)==="body"&&_e(r).position==="static")?t:r||xf(e)||t}function mo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pt(e,t,r){return Ge(e,cr(t,r))}function Ef(e,t,r){var n=Pt(e,t,r);return n>r?r:n}function cs(){return{top:0,right:0,bottom:0,left:0}}function ds(e){return Object.assign({},cs(),e)}function fs(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var kf=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ds(typeof t!="number"?t:fs(t,Lt))};function _f(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,u=r.modifiersData.popperOffsets,l=Ce(r.placement),s=mo(l),d=[re,fe].indexOf(l)>=0,c=d?"height":"width";if(!(!a||!u)){var f=kf(o.padding,r),p=go(a),h=s==="y"?te:re,v=s==="y"?de:fe,y=r.rects.reference[c]+r.rects.reference[s]-u[s]-r.rects.popper[c],m=u[s]-r.rects.reference[s],b=Ht(a),g=b?s==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-m/2,O=f[h],E=g-p[c]-f[v],k=g/2-p[c]/2+S,P=Pt(O,k,E),V=s;r.modifiersData[n]=(t={},t[V]=P,t.centerOffset=P-k,t)}}function Nf(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||us(t.elements.popper,o)&&(t.elements.arrow=o))}const Tf={name:"arrow",enabled:!0,phase:"main",fn:_f,effect:Nf,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dt(e){return e.split("-")[1]}var Af={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pf(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:ut(r*o)/o||0,y:ut(n*o)/o||0}}function _a(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,u=e.offsets,l=e.position,s=e.gpuAcceleration,d=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=u.x,h=p===void 0?0:p,v=u.y,y=v===void 0?0:v,m=typeof c=="function"?c({x:h,y}):{x:h,y};h=m.x,y=m.y;var b=u.hasOwnProperty("x"),g=u.hasOwnProperty("y"),S=re,O=te,E=window;if(d){var k=Ht(r),P="clientHeight",V="clientWidth";if(k===ae(r)&&(k=Ve(r),_e(k).position!=="static"&&l==="absolute"&&(P="scrollHeight",V="scrollWidth")),k=k,o===te||(o===re||o===fe)&&a===Bt){O=de;var j=f&&k===E&&E.visualViewport?E.visualViewport.height:k[P];y-=j-n.height,y*=s?1:-1}if(o===re||(o===te||o===de)&&a===Bt){S=fe;var N=f&&k===E&&E.visualViewport?E.visualViewport.width:k[V];h-=N-n.width,h*=s?1:-1}}var C=Object.assign({position:l},d&&Af),_=c===!0?Pf({x:h,y},ae(r)):{x:h,y};if(h=_.x,y=_.y,s){var R;return Object.assign({},C,(R={},R[O]=g?"0":"",R[S]=b?"0":"",R.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",R))}return Object.assign({},C,(t={},t[O]=g?y+"px":"",t[S]=b?h+"px":"",t.transform="",t))}function Rf(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,u=a===void 0?!0:a,l=r.roundOffsets,s=l===void 0?!0:l,d={placement:Ce(t.placement),variation:dt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_a(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_a(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const jf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Rf,data:{}};var tr={passive:!0};function If(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,u=n.resize,l=u===void 0?!0:u,s=ae(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(c){c.addEventListener("scroll",r.update,tr)}),l&&s.addEventListener("resize",r.update,tr),function(){a&&d.forEach(function(c){c.removeEventListener("scroll",r.update,tr)}),l&&s.removeEventListener("resize",r.update,tr)}}const Vf={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:If,data:{}};var $f={left:"right",right:"left",bottom:"top",top:"bottom"};function ar(e){return e.replace(/left|right|bottom|top/g,function(t){return $f[t]})}var Bf={start:"end",end:"start"};function Na(e){return e.replace(/start|end/g,function(t){return Bf[t]})}function yo(e){var t=ae(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function bo(e){return ct(Ve(e)).left+yo(e).scrollLeft}function Ff(e,t){var r=ae(e),n=Ve(e),o=r.visualViewport,a=n.clientWidth,u=n.clientHeight,l=0,s=0;if(o){a=o.width,u=o.height;var d=ss();(d||!d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:u,x:l+bo(e),y:s}}function Mf(e){var t,r=Ve(e),n=yo(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Ge(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),u=Ge(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+bo(e),s=-n.scrollTop;return _e(o||r).direction==="rtl"&&(l+=Ge(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:u,x:l,y:s}}function Co(e){var t=_e(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function ps(e){return["html","body","#document"].indexOf(we(e))>=0?e.ownerDocument.body:ue(e)&&Co(e)?e:ps(Er(e))}function Rt(e,t){var r;t===void 0&&(t=[]);var n=ps(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=ae(n),u=o?[a].concat(a.visualViewport||[],Co(n)?n:[]):n,l=t.concat(u);return o?l:l.concat(Rt(Er(u)))}function ro(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qf(e,t){var r=ct(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Ta(e,t,r){return t===is?ro(Ff(e,r)):He(t)?qf(t,r):ro(Mf(Ve(e)))}function Df(e){var t=Rt(Er(e)),r=["absolute","fixed"].indexOf(_e(e).position)>=0,n=r&&ue(e)?Ht(e):e;return He(n)?t.filter(function(o){return He(o)&&us(o,n)&&we(o)!=="body"}):[]}function Gf(e,t,r,n){var o=t==="clippingParents"?Df(e):[].concat(t),a=[].concat(o,[r]),u=a[0],l=a.reduce(function(s,d){var c=Ta(e,d,n);return s.top=Ge(c.top,s.top),s.right=cr(c.right,s.right),s.bottom=cr(c.bottom,s.bottom),s.left=Ge(c.left,s.left),s},Ta(e,u,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function hs(e){var t=e.reference,r=e.element,n=e.placement,o=n?Ce(n):null,a=n?dt(n):null,u=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,s;switch(o){case te:s={x:u,y:t.y-r.height};break;case de:s={x:u,y:t.y+t.height};break;case fe:s={x:t.x+t.width,y:l};break;case re:s={x:t.x-r.width,y:l};break;default:s={x:t.x,y:t.y}}var d=o?mo(o):null;if(d!=null){var c=d==="y"?"height":"width";switch(a){case st:s[d]=s[d]-(t[c]/2-r[c]/2);break;case Bt:s[d]=s[d]+(t[c]/2-r[c]/2);break}}return s}function Ft(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,u=a===void 0?e.strategy:a,l=r.boundary,s=l===void 0?sf:l,d=r.rootBoundary,c=d===void 0?is:d,f=r.elementContext,p=f===void 0?St:f,h=r.altBoundary,v=h===void 0?!1:h,y=r.padding,m=y===void 0?0:y,b=ds(typeof m!="number"?m:fs(m,Lt)),g=p===St?uf:St,S=e.rects.popper,O=e.elements[v?g:p],E=Gf(He(O)?O:O.contextElement||Ve(e.elements.popper),s,c,u),k=ct(e.elements.reference),P=hs({reference:k,element:S,placement:o}),V=ro(Object.assign({},S,P)),j=p===St?V:k,N={top:E.top-j.top+b.top,bottom:j.bottom-E.bottom+b.bottom,left:E.left-j.left+b.left,right:j.right-E.right+b.right},C=e.modifiersData.offset;if(p===St&&C){var _=C[o];Object.keys(N).forEach(function(R){var B=[fe,de].indexOf(R)>=0?1:-1,$=[te,de].indexOf(R)>=0?"y":"x";N[R]+=_[$]*B})}return N}function Lf(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,u=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,d=s===void 0?ls:s,c=dt(n),f=c?l?Ea:Ea.filter(function(v){return dt(v)===c}):Lt,p=f.filter(function(v){return d.indexOf(v)>=0});p.length===0&&(p=f);var h=p.reduce(function(v,y){return v[y]=Ft(e,{placement:y,boundary:o,rootBoundary:a,padding:u})[Ce(y)],v},{});return Object.keys(h).sort(function(v,y){return h[v]-h[y]})}function Hf(e){if(Ce(e)===ho)return[];var t=ar(e);return[Na(e),t,Na(t)]}function Uf(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,u=r.altAxis,l=u===void 0?!0:u,s=r.fallbackPlacements,d=r.padding,c=r.boundary,f=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,y=r.allowedAutoPlacements,m=t.options.placement,b=Ce(m),g=b===m,S=s||(g||!v?[ar(m)]:Hf(m)),O=[m].concat(S).reduce(function(Ae,ye){return Ae.concat(Ce(ye)===ho?Lf(t,{placement:ye,boundary:c,rootBoundary:f,padding:d,flipVariations:v,allowedAutoPlacements:y}):ye)},[]),E=t.rects.reference,k=t.rects.popper,P=new Map,V=!0,j=O[0],N=0;N<O.length;N++){var C=O[N],_=Ce(C),R=dt(C)===st,B=[te,de].indexOf(_)>=0,$=B?"width":"height",q=Ft(t,{placement:C,boundary:c,rootBoundary:f,altBoundary:p,padding:d}),Y=B?R?fe:re:R?de:te;E[$]>k[$]&&(Y=ar(Y));var T=ar(Y),I=[];if(a&&I.push(q[_]<=0),l&&I.push(q[Y]<=0,q[T]<=0),I.every(function(Ae){return Ae})){j=C,V=!1;break}P.set(C,I)}if(V)for(var F=v?3:1,ee=function(ye){var wt=O.find(function(Yt){var Be=P.get(Yt);if(Be)return Be.slice(0,ye).every(function(jr){return jr})});if(wt)return j=wt,"break"},me=F;me>0;me--){var Qe=ee(me);if(Qe==="break")break}t.placement!==j&&(t.modifiersData[n]._skip=!0,t.placement=j,t.reset=!0)}}const zf={name:"flip",enabled:!0,phase:"main",fn:Uf,requiresIfExists:["offset"],data:{_skip:!1}};function Aa(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Pa(e){return[te,fe,de,re].some(function(t){return e[t]>=0})}function Wf(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,u=Ft(t,{elementContext:"reference"}),l=Ft(t,{altBoundary:!0}),s=Aa(u,n),d=Aa(l,o,a),c=Pa(s),f=Pa(d);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:d,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Kf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Wf};function Yf(e,t,r){var n=Ce(e),o=[re,te].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=a[0],l=a[1];return u=u||0,l=(l||0)*o,[re,fe].indexOf(n)>=0?{x:l,y:u}:{x:u,y:l}}function Xf(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,u=ls.reduce(function(c,f){return c[f]=Yf(f,t.rects,a),c},{}),l=u[t.placement],s=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=u}const Jf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Xf};function Zf(e){var t=e.state,r=e.name;t.modifiersData[r]=hs({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Qf={name:"popperOffsets",enabled:!0,phase:"read",fn:Zf,data:{}};function ep(e){return e==="x"?"y":"x"}function tp(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,u=r.altAxis,l=u===void 0?!1:u,s=r.boundary,d=r.rootBoundary,c=r.altBoundary,f=r.padding,p=r.tether,h=p===void 0?!0:p,v=r.tetherOffset,y=v===void 0?0:v,m=Ft(t,{boundary:s,rootBoundary:d,padding:f,altBoundary:c}),b=Ce(t.placement),g=dt(t.placement),S=!g,O=mo(b),E=ep(O),k=t.modifiersData.popperOffsets,P=t.rects.reference,V=t.rects.popper,j=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,N=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(k){if(a){var R,B=O==="y"?te:re,$=O==="y"?de:fe,q=O==="y"?"height":"width",Y=k[O],T=Y+m[B],I=Y-m[$],F=h?-V[q]/2:0,ee=g===st?P[q]:V[q],me=g===st?-V[q]:-P[q],Qe=t.elements.arrow,Ae=h&&Qe?go(Qe):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cs(),wt=ye[B],Yt=ye[$],Be=Pt(0,P[q],Ae[q]),jr=S?P[q]/2-F-Be-wt-N.mainAxis:ee-Be-wt-N.mainAxis,pu=S?-P[q]/2+F+Be+Yt+N.mainAxis:me+Be+Yt+N.mainAxis,Ir=t.elements.arrow&&Ht(t.elements.arrow),hu=Ir?O==="y"?Ir.clientTop||0:Ir.clientLeft||0:0,zo=(R=C==null?void 0:C[O])!=null?R:0,vu=Y+jr-zo-hu,gu=Y+pu-zo,Wo=Pt(h?cr(T,vu):T,Y,h?Ge(I,gu):I);k[O]=Wo,_[O]=Wo-Y}if(l){var Ko,mu=O==="x"?te:re,yu=O==="x"?de:fe,Fe=k[E],Xt=E==="y"?"height":"width",Yo=Fe+m[mu],Xo=Fe-m[yu],Vr=[te,re].indexOf(b)!==-1,Jo=(Ko=C==null?void 0:C[E])!=null?Ko:0,Zo=Vr?Yo:Fe-P[Xt]-V[Xt]-Jo+N.altAxis,Qo=Vr?Fe+P[Xt]+V[Xt]-Jo-N.altAxis:Xo,ea=h&&Vr?Ef(Zo,Fe,Qo):Pt(h?Zo:Yo,Fe,h?Qo:Xo);k[E]=ea,_[E]=ea-Fe}t.modifiersData[n]=_}}const rp={name:"preventOverflow",enabled:!0,phase:"main",fn:tp,requiresIfExists:["offset"]};function np(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function op(e){return e===ae(e)||!ue(e)?yo(e):np(e)}function ap(e){var t=e.getBoundingClientRect(),r=ut(t.width)/e.offsetWidth||1,n=ut(t.height)/e.offsetHeight||1;return r!==1||n!==1}function ip(e,t,r){r===void 0&&(r=!1);var n=ue(t),o=ue(t)&&ap(t),a=Ve(t),u=ct(e,o,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((we(t)!=="body"||Co(a))&&(l=op(t)),ue(t)?(s=ct(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=bo(a))),{x:u.left+l.scrollLeft-s.x,y:u.top+l.scrollTop-s.y,width:u.width,height:u.height}}function lp(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var u=[].concat(a.requires||[],a.requiresIfExists||[]);u.forEach(function(l){if(!r.has(l)){var s=t.get(l);s&&o(s)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function sp(e){var t=lp(e);return bf.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function up(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function cp(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Ra={placement:"bottom",modifiers:[],strategy:"absolute"};function ja(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function dp(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?Ra:o;return function(l,s,d){d===void 0&&(d=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ra,a),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},f=[],p=!1,h={state:c,setOptions:function(b){var g=typeof b=="function"?b(c.options):b;y(),c.options=Object.assign({},a,c.options,g),c.scrollParents={reference:He(l)?Rt(l):l.contextElement?Rt(l.contextElement):[],popper:Rt(s)};var S=sp(cp([].concat(n,c.options.modifiers)));return c.orderedModifiers=S.filter(function(O){return O.enabled}),v(),h.update()},forceUpdate:function(){if(!p){var b=c.elements,g=b.reference,S=b.popper;if(ja(g,S)){c.rects={reference:ip(g,Ht(S),c.options.strategy==="fixed"),popper:go(S)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(N){return c.modifiersData[N.name]=Object.assign({},N.data)});for(var O=0;O<c.orderedModifiers.length;O++){if(c.reset===!0){c.reset=!1,O=-1;continue}var E=c.orderedModifiers[O],k=E.fn,P=E.options,V=P===void 0?{}:P,j=E.name;typeof k=="function"&&(c=k({state:c,options:V,name:j,instance:h})||c)}}}},update:up(function(){return new Promise(function(m){h.forceUpdate(),m(c)})}),destroy:function(){y(),p=!0}};if(!ja(l,s))return h;h.setOptions(d).then(function(m){!p&&d.onFirstUpdate&&d.onFirstUpdate(m)});function v(){c.orderedModifiers.forEach(function(m){var b=m.name,g=m.options,S=g===void 0?{}:g,O=m.effect;if(typeof O=="function"){var E=O({state:c,name:b,instance:h,options:S}),k=function(){};f.push(E||k)}})}function y(){f.forEach(function(m){return m()}),f=[]}return h}}var fp=[Vf,Qf,jf,Sf,Jf,zf,rp,Tf,Kf],pp=dp({defaultModifiers:fp});function hp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vs(e,t,r){return r&&hp(e,r),e}function ir(){return(ir=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function gs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ms(e,t){if(e==null)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(o[r]=e[r]);return o}function Ia(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var ys=Object.prototype,bs=ys.toString,vp=ys.hasOwnProperty,Cs=/^\s*function (\w+)/;function Va(e){var t,r=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(r){var n=r.toString().match(Cs);return n?n[1]:""}return""}var Ue=function(e){var t,r;return Ia(e)!==!1&&typeof(t=e.constructor)=="function"&&Ia(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1},ws=function(e){return e},ne=ws;if(process.env.NODE_ENV!=="production"){var gp=typeof console<"u";ne=gp?function(e){console.warn("[VueTypes warn]: "+e)}:ws}var Mt=function(e,t){return vp.call(e,t)},mp=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},ft=Array.isArray||function(e){return bs.call(e)==="[object Array]"},pt=function(e){return bs.call(e)==="[object Function]"},dr=function(e){return Ue(e)&&Mt(e,"_vueTypes_name")},Ss=function(e){return Ue(e)&&(Mt(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return Mt(e,t)}))};function wo(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Ke(e,t,r){var n,o=!0,a="";n=Ue(e)?e:{type:e};var u=dr(n)?n._vueTypes_name+" - ":"";if(Ss(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t===void 0)return o;ft(n.type)?(o=n.type.some(function(f){return Ke(f,t)===!0}),a=n.type.map(function(f){return Va(f)}).join(" or ")):o=(a=Va(n))==="Array"?ft(t):a==="Object"?Ue(t):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?function(f){if(f==null)return"";var p=f.constructor.toString().match(Cs);return p?p[1]:""}(t)===a:t instanceof n.type}if(!o){var l=u+'value "'+t+'" should be of type "'+a+'"';return l}if(Mt(n,"validator")&&pt(n.validator)){var s=ne,d=[];if(ne=function(f){d.push(f)},o=n.validator(t),ne=s,!o){var c=(d.length>1?"* ":"")+d.join(`
12
- * `);return d.length=0,c}}return o}function ie(e,t){var r=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(o){return o!==void 0||this.default?pt(o)||Ke(this,o)===!0?(this.default=ft(o)?function(){return[].concat(o)}:Ue(o)?function(){return Object.assign({},o)}:o,this):(ne(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),n=r.validator;return pt(n)&&(r.validator=wo(n,r)),r}function Se(e,t){var r=ie(e,t);return Object.defineProperty(r,"validate",{value:function(n){return pt(this.validator)&&ne(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
13
- `+JSON.stringify(this)),this.validator=wo(n,this),this}})}function $a(e,t,r){var n,o,a=(n=t,o={},Object.getOwnPropertyNames(n).forEach(function(f){o[f]=Object.getOwnPropertyDescriptor(n,f)}),Object.defineProperties({},o));if(a._vueTypes_name=e,!Ue(r))return a;var u,l,s=r.validator,d=ms(r,["validator"]);if(pt(s)){var c=a.validator;c&&(c=(l=(u=c).__original)!==null&&l!==void 0?l:u),a.validator=wo(c?function(f){return c.call(this,f)&&s.call(this,f)}:s,a)}return Object.assign(a,d)}function kr(e){return e.replace(/^(?!\s*$)/gm," ")}var yp=function(){return Se("any",{})},bp=function(){return Se("function",{type:Function})},Cp=function(){return Se("boolean",{type:Boolean})},wp=function(){return Se("string",{type:String})},Sp=function(){return Se("number",{type:Number})},Op=function(){return Se("array",{type:Array})},xp=function(){return Se("object",{type:Object})},Ep=function(){return ie("integer",{type:Number,validator:function(e){return mp(e)}})},kp=function(){return ie("symbol",{validator:function(e){return typeof e=="symbol"}})};function _p(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return ie(e.name||"<<anonymous function>>",{validator:function(r){var n=e(r);return n||ne(this._vueTypes_name+" - "+t),n}})}function Np(e){if(!ft(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',r=e.reduce(function(n,o){if(o!=null){var a=o.constructor;n.indexOf(a)===-1&&n.push(a)}return n},[]);return ie("oneOf",{type:r.length>0?r:void 0,validator:function(n){var o=e.indexOf(n)!==-1;return o||ne(t),o}})}function Tp(e){if(!ft(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,r=[],n=0;n<e.length;n+=1){var o=e[n];if(Ss(o)){if(dr(o)&&o._vueTypes_name==="oneOf"){r=r.concat(o.type);continue}if(pt(o.validator)&&(t=!0),o.type!==!0&&o.type){r=r.concat(o.type);continue}}r.push(o)}return r=r.filter(function(a,u){return r.indexOf(a)===u}),ie("oneOfType",t?{type:r,validator:function(a){var u=[],l=e.some(function(s){var d=Ke(dr(s)&&s._vueTypes_name==="oneOf"?s.type||null:s,a);return typeof d=="string"&&u.push(d),d===!0});return l||ne("oneOfType - provided value does not match any of the "+u.length+` passed-in validators:
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 $r(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),Gt=Bl[0],Sr=Bl[1];function lc(e){var t=nc.config(e),r=t.monaco,n=Eu(t,["monaco"]);Sr(function(o){return{config:$l(o.config,n),monaco:r}})}function sc(){var e=Gt(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(Sr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),$r(Br);if(window.monaco&&window.monaco.editor)return Fl(window.monaco),e.resolve(window.monaco),$r(Br);oc(uc,dc)(fc)}return $r(Br)}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=Gt(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=Gt(function(r){var n=r.config,o=r.resolve,a=r.reject;return{config:n,resolve:o,reject:a}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){Fl(r),e.resolve(r)},function(r){e.reject(r)})}function Fl(e){Gt().monaco||Sr({monaco:e})}function pc(){return Gt(function(e){var t=e.monaco;return t})}var Br=new Promise(function(e,t){return Sr({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(){M(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(){M(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(){M(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(){M(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(){M(this,"component","gct-form-icon-select")}};const Nc=w.widthEditorInstall(w.EditorTypeOld.ICON_SELECT,()=>new Tc,_c);class Dl{constructor(){M(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),Pc=w.widthEditorInstall(w.EditorTypeOld.NUMBER,()=>new Dl,Gl);class Rc{constructor(){M(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 Rc,jc);class Vc{constructor(){M(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(){M(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(){M(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},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(){M(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&&qe.message.success(_gct.t("sys.copySuccess"))}o.value.loadDictionary();const u=i.computed(()=>{if(r.value.format&&typeof r.value.format=="function")return r.value.format(o.value.data,n.value,o.value);if(e.value==null||e.value==="")return e.value;if(n.value.dictionary){const s=(n.value.dictionary.items||[]).find(d=>d.value==e.value);if(s)return s.label}if(o.value.state.options.length>0){const l=o.value.state.options.find(s=>s.value==e.value);if(l)return l.label}return e.value});return{ns:t,val:u,handleClipboardKey:a}},render(){return i.createVNode("div",{class:this.ns.b()},[i.createVNode("span",{class:this.ns.e("info")},[this.val]),this.model.copy&&i.createVNode("span",{class:this.ns.e("copy")},[i.createVNode("i",{class:"iconfont icon-fuzhi primary-gct",onClick:this.handleClipboardKey},null)])])}}),Yc=w.widthEditorInstall(w.EditorTypeOld.SPAN,()=>new Wc,Kc);class Ll{constructor(){M(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(){M(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(){M(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(qe.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(qe.RadioButton,{key:r.value,value:r.value},{default:()=>[r.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),i.createVNode(qe.RadioGroup,i.mergeProps({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let Kl=class{constructor(){M(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(){M(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(()=>mt.cloneDeep(e.c.state.options));return{ns:r,checked:o,onChange:l=>{a.value.forEach(s=>{e.model.minLength&&l.length<=e.model.minLength&&l.includes(s.value)?s.disabled=!0:s.disabled=!1,s.checked=l.includes(s.value)}),t("update:value",l)},options:a}},render(){const e={...this.model.props||{},class:[this.ns.b(),this.ns.m("checkbox"),this.model.layout==="column"&&"isColumn"],disabled:this.c.state.disabled};return i.createVNode(qe.CheckboxGroup,i.mergeProps({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class Xl{constructor(){M(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}function Le(e){return typeof e=="function"?e():i.unref(e)}const Or=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const yd=Object.prototype.toString,bd=e=>yd.call(e)==="[object Object]",it=()=>{},Cd=wd();function wd(){var e,t;return Or&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function 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 Sd(e,t={}){let r,n,o=it;const a=l=>{clearTimeout(l),o(),o=it};return l=>{const s=Le(e),d=Le(t.maxWait);return r&&a(r),s<=0||d!==void 0&&d<=0?(n&&(a(n),n=null),Promise.resolve(l())):new Promise((c,f)=>{o=t.rejectOnCancel?f:c,d&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,c(l())},d)),r=setTimeout(()=>{n&&a(n),n=null,c(l())},s)})}}function Od(e=ns){const t=i.ref(!0);function r(){t.value=!1}function n(){t.value=!0}const o=(...a)=>{t.value&&e(...a)};return{isActive:i.readonly(t),pause:r,resume:n,eventFilter:o}}function xd(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 Ed(e){return i.getCurrentInstance()}function Ee(e,t=200,r={}){return rs(Sd(t,r),e)}function kd(e,t,r={}){const{eventFilter:n=ns,...o}=r;return i.watch(e,rs(n,t),o)}function _d(e,t,r={}){const{eventFilter:n,...o}=r,{eventFilter:a,pause:u,resume:l,isActive:s}=Od(n);return{stop:kd(e,t,{...o,eventFilter:a}),pause:u,resume:l,isActive:s}}function We(e,t=!0,r){Ed()?i.onMounted(e,r):t?e():i.nextTick(e)}function Td(e,t,r={}){const{immediate:n=!0}=r,o=i.ref(!1);let a=null;function u(){a&&(clearTimeout(a),a=null)}function l(){o.value=!1,u()}function s(...d){u(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=null,e(...d)},Le(t))}return n&&(o.value=!0,Or&&s()),ts(l),{isPending:i.readonly(o),start:s,stop:l}}function J(e,t,r){const n=i.watch(e,(o,a,u)=>{o&&(r!=null&&r.once&&i.nextTick(()=>n()),t(o,a,u))},{...r,once:!1});return n}function Tt(e){var t;const r=Le(e);return(t=r==null?void 0:r.$el)!=null?t:r}const $t=Or?window:void 0,os=Or?window.navigator:void 0;function De(...e){let t,r,n,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,o]=e,t=$t):[t,r,n,o]=e,!t)return it;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],u=()=>{a.forEach(c=>c()),a.length=0},l=(c,f,p,h)=>(c.addEventListener(f,p,h),()=>c.removeEventListener(f,p,h)),s=i.watch(()=>[Tt(t),Le(o)],([c,f])=>{if(u(),!c)return;const p=bd(f)?{...f}:f;a.push(...r.flatMap(h=>n.map(g=>l(c,h,g,p))))},{immediate:!0,flush:"post"}),d=()=>{s(),u()};return ts(d),d}let ha=!1;function Nd(e,t,r={}){const{window:n=$t,ignore:o=[],capture:a=!0,detectIframe:u=!1}=r;if(!n)return it;Cd&&!ha&&(ha=!0,Array.from(n.document.body.children).forEach(p=>p.addEventListener("click",it)),n.document.documentElement.addEventListener("click",it));let l=!0;const s=p=>o.some(h=>{if(typeof h=="string")return Array.from(n.document.querySelectorAll(h)).some(g=>g===p.target||p.composedPath().includes(g));{const g=Tt(h);return g&&(p.target===g||p.composedPath().includes(g))}}),c=[De(n,"click",p=>{const h=Tt(e);if(!(!h||h===p.target||p.composedPath().includes(h))){if(p.detail===0&&(l=!s(p)),!l){l=!0;return}t(p)}},{passive:!0,capture:a}),De(n,"pointerdown",p=>{const h=Tt(e);l=!s(p)&&!!(h&&!p.composedPath().includes(h))},{passive:!0}),u&&De(n,"blur",p=>{setTimeout(()=>{var h;const g=Tt(e);((h=n.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(g!=null&&g.contains(n.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>c.forEach(p=>p())}function Ad(){const e=i.ref(!1),t=i.getCurrentInstance();return t&&i.onMounted(()=>{e.value=!0},t),e}function as(e){const t=Ad();return i.computed(()=>(t.value,!!e()))}function va(e,t={}){const{controls:r=!1,navigator:n=os}=t,o=as(()=>n&&"permissions"in n);let a;const u=typeof e=="string"?{name:e}:e,l=i.ref(),s=()=>{a&&(l.value=a.state)},d=xd(async()=>{if(o.value){if(!a)try{a=await n.permissions.query(u),De(a,"change",s),s()}catch{l.value="prompt"}return a}});return d(),r?{state:l,isSupported:o,query:d}:l}function Pd(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.ref(""),f=i.ref(!1),p=Td(()=>f.value=!1,o);function h(){u.value&&b(l.value)?t.clipboard.readText().then(v=>{c.value=v}):c.value=m()}d.value&&r&&De(["copy","cut"],h);async function g(v=Le(n)){d.value&&v!=null&&(u.value&&b(s.value)?await t.clipboard.writeText(v):y(v),c.value=v,f.value=!0,p.start())}function y(v){const S=document.createElement("textarea");S.value=v??"",S.style.position="absolute",S.style.opacity="0",document.body.appendChild(S),S.select(),document.execCommand("copy"),S.remove()}function m(){var v,S,O;return(O=(S=(v=document==null?void 0:document.getSelection)==null?void 0:v.call(document))==null?void 0:S.toString())!=null?O:""}function b(v){return v==="granted"||v==="prompt"}return{isSupported:d,text:c,copied:f,copy:g}}const Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qt="__vueuse_ssr_handlers__",Rd=jd();function jd(){return Qt in Zt||(Zt[Qt]=Zt[Qt]||{}),Zt[Qt]}function Id(e,t){return Rd[e]||t}function Vd(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 $d={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 Bd(e,t,r,n={}){var o;const{flush:a="pre",deep:u=!0,listenToStorageChanges:l=!0,writeDefaults:s=!0,mergeDefaults:d=!1,shallow:c,window:f=$t,eventFilter:p,onError:h=T=>{console.error(T)},initOnMounted:g}=n,y=(c?i.shallowRef:i.ref)(typeof t=="function"?t():t);if(!r)try{r=Id("getDefaultStorage",()=>{var T;return(T=$t)==null?void 0:T.localStorage})()}catch(T){h(T)}if(!r)return y;const m=Le(t),b=Vd(m),v=(o=n.serializer)!=null?o:$d[b],{pause:S,resume:O}=_d(y,()=>k(y.value),{flush:a,deep:u,eventFilter:p});f&&l&&We(()=>{De(f,"storage",V),De(f,ga,j),g&&V()}),g||V();function E(T,C){f&&f.dispatchEvent(new CustomEvent(ga,{detail:{key:e,oldValue:T,newValue:C,storageArea:r}}))}function k(T){try{const C=r.getItem(e);if(T==null)E(C,null),r.removeItem(e);else{const _=v.write(T);C!==_&&(r.setItem(e,_),E(C,_))}}catch(C){h(C)}}function P(T){const C=T?T.newValue:r.getItem(e);if(C==null)return s&&m!=null&&r.setItem(e,v.write(m)),m;if(!T&&d){const _=v.read(C);return typeof d=="function"?d(_,m):b==="object"&&!Array.isArray(_)?{...m,..._}:_}else return typeof C!="string"?C:v.read(C)}function V(T){if(!(T&&T.storageArea!==r)){if(T&&T.key==null){y.value=m;return}if(!(T&&T.key!==e)){S();try{(T==null?void 0:T.newValue)!==v.write(y.value)&&(y.value=P(T))}catch(C){h(C)}finally{T?i.nextTick(O):O()}}}}function j(T){V(T.detail)}return y}function ho(e,t,r={}){const{window:n=$t}=r;return Bd(e,t,n==null?void 0:n.localStorage,r)}function ur(e){"@babel/helpers - typeof";return ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ur(e)}var Fd=/^\s+/,Md=/\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=qd(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 Hd(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:rf[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(Kd,arguments)},brighten:function(){return this._applyModification(Yd,arguments)},darken:function(){return this._applyModification(Xd,arguments)},desaturate:function(){return this._applyModification(Ud,arguments)},saturate:function(){return this._applyModification(zd,arguments)},greyscale:function(){return this._applyModification(Wd,arguments)},spin:function(){return this._applyModification(Jd,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(ef,arguments)},complement:function(){return this._applyCombination(Zd,arguments)},monochromatic:function(){return this._applyCombination(tf,arguments)},splitcomplement:function(){return this._applyCombination(Qd,arguments)},triad:function(){return this._applyCombination(wa,[3])},tetrad:function(){return this._applyCombination(wa,[4])}};x.fromRatio=function(e,t){if(ur(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=Nt(e[n]));e=r}return x(e,t)};function qd(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=lf(e)),ur(e)=="object"&&(Oe(e.r)&&Oe(e.g)&&Oe(e.b)?(t=Dd(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=Nt(e.s),o=Nt(e.v),t=Ld(e.h,n,o),u=!0,l="hsv"):Oe(e.h)&&Oe(e.s)&&Oe(e.l)&&(n=Nt(e.s),a=Nt(e.l),t=Gd(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 Dd(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 Gd(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 Ld(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 Hd(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 Ud(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s-=t/100,r.s=xr(r.s),x(r)}function zd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.s+=t/100,r.s=xr(r.s),x(r)}function Wd(e){return x(e).desaturate(100)}function Kd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l+=t/100,r.l=xr(r.l),x(r)}function Yd(e,t){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 Xd(e,t){t=t===0?0:t||10;var r=x(e).toHsl();return r.l-=t/100,r.l=xr(r.l),x(r)}function Jd(e,t){var r=x(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,x(r)}function Zd(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 Qd(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 ef(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 tf(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=sf(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"},rf=x.hexNames=nf(to);function nf(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){of(e)&&(e="100%");var r=af(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function xr(e){return Math.min(1,Math.max(0,e))}function oe(e){return parseInt(e,16)}function of(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function af(e){return typeof e=="string"&&e.indexOf("%")!=-1}function ve(e){return e.length==1?"0"+e:""+e}function Nt(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 lf(e){e=e.replace(Fd,"").replace(Md,"").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 sf(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:{},er={},xa;function uf(){if(xa)return er;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 I=new Error(r+": "+N);throw I.source=r,I}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,I,F){return s(I,function(ee){var me=F();return me&&(q(t.comma)||n("Missing comma before color stops")),{type:N,orientation:me,colorStops:O(E)}})}function s(N,I){var F=q(N);if(F){q(t.startCall)||n("Missing (");var ee=I(F);return q(t.endCall)||n("Missing )"),ee}}function d(){return c()||f()}function c(){return $("directional",t.sideOrCorner,1)}function f(){return $("angular",t.angleValue,1)}function p(){var N,I=h(),F;return I&&(N=[],N.push(I),F=r,q(t.comma)&&(I=h(),I?N.push(I):r=F)),N}function h(){var N=g()||y();if(N)N.at=b();else{var I=m();if(I){N=I;var F=b();F&&(N.at=F)}else{var ee=v();ee&&(N={type:"default-radial",at:ee})}}return N}function g(){var N=$("shape",/^(circle)/i,0);return N&&(N.style=B()||m()),N}function y(){var N=$("shape",/^(ellipse)/i,0);return N&&(N.style=_()||m()),N}function m(){return $("extent-keyword",t.extentKeywords,1)}function b(){if($("position",/^at/,0)){var N=v();return N||n("Missing positioning value"),N}}function v(){var N=S();if(N.x||N.y)return{type:"position",value:N}}function S(){return{x:_(),y:_()}}function O(N){var I=N(),F=[];if(I)for(F.push(I);q(t.comma);)I=N(),I?F.push(I):n("One extra comma");return F}function E(){var N=k();return N||n("Expected color definition"),N.length=_(),N}function k(){return V()||T()||j()||P()}function P(){return $("literal",t.literalColor,0)}function V(){return $("hex",t.hexColor,1)}function j(){return s(t.rgbColor,function(){return{type:"rgb",value:O(C)}})}function T(){return s(t.rgbaColor,function(){return{type:"rgba",value:O(C)}})}function C(){return q(t.number)[1]}function _(){return $("%",t.percentageValue,1)||R()||B()}function R(){return $("position-keyword",t.positionKeywords,1)}function B(){return $("px",t.pixelValue,1)||$("em",t.emValue,1)}function $(N,I,F){var ee=q(I);if(ee)return{type:N,value:ee[F]}}function q(N){var I,F;return F=/^[\n\r\t\s]+/.exec(r),F&&Y(F[0].length),I=N.exec(r),I&&Y(I[0].length),I}function Y(N){r=r.substr(N)}return function(N){return r=N.toString(),o()}})(),er.parse=e.parse,er.stringify=e.stringify,er}var Ea=uf(),te="top",de="bottom",fe="right",re="left",vo="auto",Lt=[te,de,fe,re],st="start",Bt="end",cf="clippingParents",ss="viewport",St="popper",df="reference",ka=Lt.reduce(function(e,t){return e.concat([t+"-"+st,t+"-"+Bt])},[]),us=[].concat(Lt,[vo]).reduce(function(e,t){return e.concat([t,t+"-"+st,t+"-"+Bt])},[]),ff="beforeRead",pf="read",hf="afterRead",vf="beforeMain",gf="main",mf="afterMain",yf="beforeWrite",bf="write",Cf="afterWrite",wf=[ff,pf,hf,vf,gf,mf,yf,bf,Cf];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 Sf(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 Of(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 xf={name:"applyStyles",enabled:!0,phase:"write",fn:Sf,effect:Of,requires:["computeStyles"]};function Ce(e){return e.split("-")[0]}var Ge=Math.max,cr=Math.min,ut=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 ct(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&ue(e)&&(o=e.offsetWidth>0&&ut(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ut(n.height)/e.offsetHeight||1);var u=He(e)?ae(e):window,l=u.visualViewport,s=!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=ct(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function 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 _e(e){return ae(e).getComputedStyle(e)}function Ef(e){return["table","td","th"].indexOf(we(e))>=0}function Ve(e){return((He(e)?e.ownerDocument:e.document)||window.document).documentElement}function Er(e){return we(e)==="html"?e:e.assignedSlot||e.parentNode||(go(e)?e.host:null)||Ve(e)}function _a(e){return!ue(e)||_e(e).position==="fixed"?null:e.offsetParent}function kf(e){var t=/firefox/i.test(ro()),r=/Trident/i.test(ro());if(r&&ue(e)){var n=_e(e);if(n.position==="fixed")return null}var o=Er(e);for(go(o)&&(o=o.host);ue(o)&&["html","body"].indexOf(we(o))<0;){var a=_e(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Ht(e){for(var t=ae(e),r=_a(e);r&&Ef(r)&&_e(r).position==="static";)r=_a(r);return r&&(we(r)==="html"||we(r)==="body"&&_e(r).position==="static")?t:r||kf(e)||t}function yo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pt(e,t,r){return Ge(e,cr(t,r))}function _f(e,t,r){var n=Pt(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 Tf=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ps(typeof t!="number"?t:hs(t,Lt))};function Nf(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=Tf(o.padding,r),p=mo(a),h=s==="y"?te:re,g=s==="y"?de:fe,y=r.rects.reference[c]+r.rects.reference[s]-u[s]-r.rects.popper[c],m=u[s]-r.rects.reference[s],b=Ht(a),v=b?s==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-m/2,O=f[h],E=v-p[c]-f[g],k=v/2-p[c]/2+S,P=Pt(O,k,E),V=s;r.modifiersData[n]=(t={},t[V]=P,t.centerOffset=P-k,t)}}function Af(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 Pf={name:"arrow",enabled:!0,phase:"main",fn:Nf,effect:Af,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dt(e){return e.split("-")[1]}var Rf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jf(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:ut(r*o)/o||0,y:ut(n*o)/o||0}}function 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,g=u.y,y=g===void 0?0:g,m=typeof c=="function"?c({x:h,y}):{x:h,y};h=m.x,y=m.y;var b=u.hasOwnProperty("x"),v=u.hasOwnProperty("y"),S=re,O=te,E=window;if(d){var k=Ht(r),P="clientHeight",V="clientWidth";if(k===ae(r)&&(k=Ve(r),_e(k).position!=="static"&&l==="absolute"&&(P="scrollHeight",V="scrollWidth")),k=k,o===te||(o===re||o===fe)&&a===Bt){O=de;var j=f&&k===E&&E.visualViewport?E.visualViewport.height:k[P];y-=j-n.height,y*=s?1:-1}if(o===re||(o===te||o===de)&&a===Bt){S=fe;var T=f&&k===E&&E.visualViewport?E.visualViewport.width:k[V];h-=T-n.width,h*=s?1:-1}}var C=Object.assign({position:l},d&&Rf),_=c===!0?jf({x:h,y},ae(r)):{x:h,y};if(h=_.x,y=_.y,s){var R;return Object.assign({},C,(R={},R[O]=v?"0":"",R[S]=b?"0":"",R.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",R))}return Object.assign({},C,(t={},t[O]=v?y+"px":"",t[S]=b?h+"px":"",t.transform="",t))}function If(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,u=a===void 0?!0:a,l=r.roundOffsets,s=l===void 0?!0:l,d={placement:Ce(t.placement),variation:dt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,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 Vf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:If,data:{}};var tr={passive:!0};function $f(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,u=n.resize,l=u===void 0?!0:u,s=ae(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(c){c.addEventListener("scroll",r.update,tr)}),l&&s.addEventListener("resize",r.update,tr),function(){a&&d.forEach(function(c){c.removeEventListener("scroll",r.update,tr)}),l&&s.removeEventListener("resize",r.update,tr)}}const Bf={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$f,data:{}};var Ff={left:"right",right:"left",bottom:"top",top:"bottom"};function ar(e){return e.replace(/left|right|bottom|top/g,function(t){return Ff[t]})}var Mf={start:"end",end:"start"};function Na(e){return e.replace(/start|end/g,function(t){return Mf[t]})}function bo(e){var t=ae(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Co(e){return ct(Ve(e)).left+bo(e).scrollLeft}function qf(e,t){var r=ae(e),n=Ve(e),o=r.visualViewport,a=n.clientWidth,u=n.clientHeight,l=0,s=0;if(o){a=o.width,u=o.height;var d=cs();(d||!d&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:u,x:l+Co(e),y:s}}function Df(e){var t,r=Ve(e),n=bo(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Ge(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),u=Ge(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+Co(e),s=-n.scrollTop;return _e(o||r).direction==="rtl"&&(l+=Ge(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:u,x:l,y:s}}function wo(e){var t=_e(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(Er(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(Er(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 Gf(e,t){var r=ct(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Aa(e,t,r){return t===ss?no(qf(e,r)):He(t)?Gf(t,r):no(Df(Ve(e)))}function Lf(e){var t=Rt(Er(e)),r=["absolute","fixed"].indexOf(_e(e).position)>=0,n=r&&ue(e)?Ht(e):e;return He(n)?t.filter(function(o){return He(o)&&ds(o,n)&&we(o)!=="body"}):[]}function Hf(e,t,r,n){var o=t==="clippingParents"?Lf(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=Ge(c.top,s.top),s.right=cr(c.right,s.right),s.bottom=cr(c.bottom,s.bottom),s.left=Ge(c.left,s.left),s},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?dt(n):null,u=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,s;switch(o){case te:s={x:u,y:t.y-r.height};break;case de:s={x:u,y:t.y+t.height};break;case fe:s={x:t.x+t.width,y:l};break;case re:s={x:t.x-r.width,y:l};break;default:s={x:t.x,y:t.y}}var d=o?yo(o):null;if(d!=null){var c=d==="y"?"height":"width";switch(a){case st:s[d]=s[d]-(t[c]/2-r[c]/2);break;case Bt:s[d]=s[d]+(t[c]/2-r[c]/2);break}}return s}function Ft(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,u=a===void 0?e.strategy:a,l=r.boundary,s=l===void 0?cf:l,d=r.rootBoundary,c=d===void 0?ss:d,f=r.elementContext,p=f===void 0?St:f,h=r.altBoundary,g=h===void 0?!1:h,y=r.padding,m=y===void 0?0:y,b=ps(typeof m!="number"?m:hs(m,Lt)),v=p===St?df:St,S=e.rects.popper,O=e.elements[g?v:p],E=Hf(He(O)?O:O.contextElement||Ve(e.elements.popper),s,c,u),k=ct(e.elements.reference),P=gs({reference:k,element:S,placement:o}),V=no(Object.assign({},S,P)),j=p===St?V:k,T={top:E.top-j.top+b.top,bottom:j.bottom-E.bottom+b.bottom,left:E.left-j.left+b.left,right:j.right-E.right+b.right},C=e.modifiersData.offset;if(p===St&&C){var _=C[o];Object.keys(T).forEach(function(R){var B=[fe,de].indexOf(R)>=0?1:-1,$=[te,de].indexOf(R)>=0?"y":"x";T[R]+=_[$]*B})}return T}function Uf(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=dt(n),f=c?l?ka:ka.filter(function(g){return dt(g)===c}):Lt,p=f.filter(function(g){return d.indexOf(g)>=0});p.length===0&&(p=f);var h=p.reduce(function(g,y){return g[y]=Ft(e,{placement:y,boundary:o,rootBoundary:a,padding:u})[Ce(y)],g},{});return Object.keys(h).sort(function(g,y){return h[g]-h[y]})}function zf(e){if(Ce(e)===vo)return[];var t=ar(e);return[Na(e),t,Na(t)]}function Wf(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,g=h===void 0?!0:h,y=r.allowedAutoPlacements,m=t.options.placement,b=Ce(m),v=b===m,S=s||(v||!g?[ar(m)]:zf(m)),O=[m].concat(S).reduce(function(Ae,ye){return Ae.concat(Ce(ye)===vo?Uf(t,{placement:ye,boundary:c,rootBoundary:f,padding:d,flipVariations:g,allowedAutoPlacements:y}):ye)},[]),E=t.rects.reference,k=t.rects.popper,P=new Map,V=!0,j=O[0],T=0;T<O.length;T++){var C=O[T],_=Ce(C),R=dt(C)===st,B=[te,de].indexOf(_)>=0,$=B?"width":"height",q=Ft(t,{placement:C,boundary:c,rootBoundary:f,altBoundary:p,padding:d}),Y=B?R?fe:re:R?de:te;E[$]>k[$]&&(Y=ar(Y));var N=ar(Y),I=[];if(a&&I.push(q[_]<=0),l&&I.push(q[Y]<=0,q[N]<=0),I.every(function(Ae){return Ae})){j=C,V=!1;break}P.set(C,I)}if(V)for(var F=g?3:1,ee=function(ye){var wt=O.find(function(Yt){var Be=P.get(Yt);if(Be)return Be.slice(0,ye).every(function(jr){return jr})});if(wt)return j=wt,"break"},me=F;me>0;me--){var Qe=ee(me);if(Qe==="break")break}t.placement!==j&&(t.modifiersData[n]._skip=!0,t.placement=j,t.reset=!0)}}const Kf={name:"flip",enabled:!0,phase:"main",fn:Wf,requiresIfExists:["offset"],data:{_skip:!1}};function Pa(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 Ra(e){return[te,fe,de,re].some(function(t){return e[t]>=0})}function Yf(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,u=Ft(t,{elementContext:"reference"}),l=Ft(t,{altBoundary:!0}),s=Pa(u,n),d=Pa(l,o,a),c=Ra(s),f=Ra(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 Xf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Yf};function Jf(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 Zf(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]=Jf(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 Qf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Zf};function ep(e){var t=e.state,r=e.name;t.modifiersData[r]=gs({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const tp={name:"popperOffsets",enabled:!0,phase:"read",fn:ep,data:{}};function rp(e){return e==="x"?"y":"x"}function np(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,g=r.tetherOffset,y=g===void 0?0:g,m=Ft(t,{boundary:s,rootBoundary:d,padding:f,altBoundary:c}),b=Ce(t.placement),v=dt(t.placement),S=!v,O=yo(b),E=rp(O),k=t.modifiersData.popperOffsets,P=t.rects.reference,V=t.rects.popper,j=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,T=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(k){if(a){var R,B=O==="y"?te:re,$=O==="y"?de:fe,q=O==="y"?"height":"width",Y=k[O],N=Y+m[B],I=Y-m[$],F=h?-V[q]/2:0,ee=v===st?P[q]:V[q],me=v===st?-V[q]:-P[q],Qe=t.elements.arrow,Ae=h&&Qe?mo(Qe):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:fs(),wt=ye[B],Yt=ye[$],Be=Pt(0,P[q],Ae[q]),jr=S?P[q]/2-F-Be-wt-T.mainAxis:ee-Be-wt-T.mainAxis,vu=S?-P[q]/2+F+Be+Yt+T.mainAxis:me+Be+Yt+T.mainAxis,Ir=t.elements.arrow&&Ht(t.elements.arrow),gu=Ir?O==="y"?Ir.clientTop||0:Ir.clientLeft||0:0,Wo=(R=C==null?void 0:C[O])!=null?R:0,mu=Y+jr-Wo-gu,yu=Y+vu-Wo,Ko=Pt(h?cr(N,mu):N,Y,h?Ge(I,yu):I);k[O]=Ko,_[O]=Ko-Y}if(l){var Yo,bu=O==="x"?te:re,Cu=O==="x"?de:fe,Fe=k[E],Xt=E==="y"?"height":"width",Xo=Fe+m[bu],Jo=Fe-m[Cu],Vr=[te,re].indexOf(b)!==-1,Zo=(Yo=C==null?void 0:C[E])!=null?Yo:0,Qo=Vr?Xo:Fe-P[Xt]-V[Xt]-Zo+T.altAxis,ea=Vr?Fe+P[Xt]+V[Xt]-Zo-T.altAxis:Jo,ta=h&&Vr?_f(Qo,Fe,ea):Pt(h?Qo:Xo,Fe,h?ea:Jo);k[E]=ta,_[E]=ta-Fe}t.modifiersData[n]=_}}const op={name:"preventOverflow",enabled:!0,phase:"main",fn:np,requiresIfExists:["offset"]};function ap(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ip(e){return e===ae(e)||!ue(e)?bo(e):ap(e)}function lp(e){var t=e.getBoundingClientRect(),r=ut(t.width)/e.offsetWidth||1,n=ut(t.height)/e.offsetHeight||1;return r!==1||n!==1}function sp(e,t,r){r===void 0&&(r=!1);var n=ue(t),o=ue(t)&&lp(t),a=Ve(t),u=ct(e,o,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((we(t)!=="body"||wo(a))&&(l=ip(t)),ue(t)?(s=ct(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 up(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 cp(e){var t=up(e);return wf.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function dp(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function fp(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 pp(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(b){var v=typeof b=="function"?b(c.options):b;y(),c.options=Object.assign({},a,c.options,v),c.scrollParents={reference:He(l)?Rt(l):l.contextElement?Rt(l.contextElement):[],popper:Rt(s)};var S=cp(fp([].concat(n,c.options.modifiers)));return c.orderedModifiers=S.filter(function(O){return O.enabled}),g(),h.update()},forceUpdate:function(){if(!p){var b=c.elements,v=b.reference,S=b.popper;if(Ia(v,S)){c.rects={reference:sp(v,Ht(S),c.options.strategy==="fixed"),popper:mo(S)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(T){return c.modifiersData[T.name]=Object.assign({},T.data)});for(var O=0;O<c.orderedModifiers.length;O++){if(c.reset===!0){c.reset=!1,O=-1;continue}var E=c.orderedModifiers[O],k=E.fn,P=E.options,V=P===void 0?{}:P,j=E.name;typeof k=="function"&&(c=k({state:c,options:V,name:j,instance:h})||c)}}}},update:dp(function(){return new Promise(function(m){h.forceUpdate(),m(c)})}),destroy:function(){y(),p=!0}};if(!Ia(l,s))return h;h.setOptions(d).then(function(m){!p&&d.onFirstUpdate&&d.onFirstUpdate(m)});function g(){c.orderedModifiers.forEach(function(m){var b=m.name,v=m.options,S=v===void 0?{}:v,O=m.effect;if(typeof O=="function"){var E=O({state:c,name:b,instance:h,options:S}),k=function(){};f.push(E||k)}})}function y(){f.forEach(function(m){return m()}),f=[]}return h}}var hp=[Bf,tp,Vf,xf,Qf,Kf,op,Pf,Xf],vp=pp({defaultModifiers:hp});function gp(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&&gp(e,r),e}function ir(){return(ir=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function 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,mp=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 yp=typeof console<"u";ne=yp?function(e){console.warn("[VueTypes warn]: "+e)}:Os}var Mt=function(e,t){return mp.call(e,t)},bp=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},ft=Array.isArray||function(e){return ws.call(e)==="[object Array]"},pt=function(e){return ws.call(e)==="[object Function]"},dr=function(e){return Ue(e)&&Mt(e,"_vueTypes_name")},xs=function(e){return Ue(e)&&(Mt(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return Mt(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=dr(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;ft(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"?ft(t):a==="Object"?Ue(t):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?(function(f){if(f==null)return"";var p=f.constructor.toString().match(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(Mt(n,"validator")&&pt(n.validator)){var s=ne,d=[];if(ne=function(f){d.push(f)},o=n.validator(t),ne=s,!o){var c=(d.length>1?"* ":"")+d.join(`
12
+ * `);return d.length=0,c}}return o}function ie(e,t){var r=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(o){return o!==void 0||this.default?pt(o)||Ke(this,o)===!0?(this.default=ft(o)?function(){return[].concat(o)}:Ue(o)?function(){return Object.assign({},o)}:o,this):(ne(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),n=r.validator;return pt(n)&&(r.validator=So(n,r)),r}function Se(e,t){var r=ie(e,t);return Object.defineProperty(r,"validate",{value:function(n){return pt(this.validator)&&ne(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
13
+ `+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(pt(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 kr(e){return e.replace(/^(?!\s*$)/gm," ")}var Cp=function(){return Se("any",{})},wp=function(){return Se("function",{type:Function})},Sp=function(){return Se("boolean",{type:Boolean})},Op=function(){return Se("string",{type:String})},xp=function(){return Se("number",{type:Number})},Ep=function(){return Se("array",{type:Array})},kp=function(){return Se("object",{type:Object})},_p=function(){return ie("integer",{type:Number,validator:function(e){return bp(e)}})},Tp=function(){return ie("symbol",{validator:function(e){return typeof e=="symbol"}})};function Np(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 Ap(e){if(!ft(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',r=e.reduce(function(n,o){if(o!=null){var a=o.constructor;n.indexOf(a)===-1&&n.push(a)}return n},[]);return ie("oneOf",{type:r.length>0?r:void 0,validator:function(n){var o=e.indexOf(n)!==-1;return o||ne(t),o}})}function Pp(e){if(!ft(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,r=[],n=0;n<e.length;n+=1){var o=e[n];if(xs(o)){if(dr(o)&&o._vueTypes_name==="oneOf"){r=r.concat(o.type);continue}if(pt(o.validator)&&(t=!0),o.type!==!0&&o.type){r=r.concat(o.type);continue}}r.push(o)}return r=r.filter(function(a,u){return r.indexOf(a)===u}),ie("oneOfType",t?{type:r,validator:function(a){var u=[],l=e.some(function(s){var d=Ke(dr(s)&&s._vueTypes_name==="oneOf"?s.type||null:s,a);return typeof d=="string"&&u.push(d),d===!0});return l||ne("oneOfType - provided value does not match any of the "+u.length+` passed-in validators:
14
14
  `+kr(u.join(`
15
- `))),l}}:{type:r})}function Ap(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
- `+kr(r)),n}})}function Pp(e){return ie("instanceOf",{type:e})}function Rp(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
- `+kr(r)),n}})}function jp(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
- `+kr(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(ft(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=ms(t,["name","validate","getter"]);if(Mt(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var d,c=s.type;return dr(c)?(delete s.type,Object.defineProperty(this,n,l?{get:function(){return $a(n,c,s)}}:{value:function(){var f,p=$a(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))},vs(e,null,[{key:"any",get:function(){return yp()}},{key:"func",get:function(){return bp().def(this.defaults.func)}},{key:"bool",get:function(){return Cp().def(this.defaults.bool)}},{key:"string",get:function(){return wp().def(this.defaults.string)}},{key:"number",get:function(){return Sp().def(this.defaults.number)}},{key:"array",get:function(){return Op().def(this.defaults.array)}},{key:"object",get:function(){return xp().def(this.defaults.object)}},{key:"integer",get:function(){return Ep().def(this.defaults.integer)}},{key:"symbol",get:function(){return kp()}}]),e}();function Ip(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 gs(n,r),vs(n,null,[{key:"sensibleDefaults",get:function(){return ir({},this.defaults)},set:function(o){this.defaults=o!==!1?ir({},o!==!0?o:e):{}}}]),n}(be)).defaults=ir({},e),t}be.defaults={},be.custom=_p,be.oneOf=Np,be.instanceOf=Pp,be.oneOfType=Tp,be.arrayOf=Ap,be.objectOf=Rp,be.shape=jp,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 A=function(e){function t(){return e.apply(this,arguments)||this}return gs(t,e),t}(Ip()),Ba={},Ot,Fa;function ge(){if(Fa)return Ot;Fa=1;var e=function(t){return t&&t.Math===Math&&t};return Ot=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof Sa=="object"&&Sa)||e(typeof Ot=="object"&&Ot)||function(){return this}()||Function("return this")(),Ot}var 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 Os(){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 Ut(){if(Ga)return Gr;Ga=1;var e=Os(),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 $e(){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 xs(){return Ha||(Ha=1,Hr=function(e){return e==null}),Hr}var Ur,Ua;function Vp(){if(Ua)return Ur;Ua=1;var e=xs(),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 $p(){if(za)return zr;za=1;var e=Vp(),t=Object;return zr=function(r){return t(e(r))},zr}var Wr,Wa;function _r(){if(Wa)return Wr;Wa=1;var e=Ut(),t=$p(),r=e({}.hasOwnProperty);return Wr=Object.hasOwn||function(o,a){return r(t(o),a)},Wr}var Kr,Ka;function Bp(){if(Ka)return Kr;Ka=1;var e=Xe(),t=_r(),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 Fp(){return Ya||(Ya=1,Xr=!1),Xr}var Jr,Xa;function Mp(){if(Xa)return Jr;Xa=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 Ja;function So(){if(Ja)return Yr.exports;Ja=1;var e=Fp(),t=ge(),r=Mp(),n="__core-js_shared__",o=Yr.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"}),Yr.exports}var Zr,Za;function qp(){if(Za)return Zr;Za=1;var e=Ut(),t=$e(),r=So(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(o){return n(o)}),Zr=r.inspectSource,Zr}var Qr,Qa;function Dp(){if(Qa)return Qr;Qa=1;var e=ge(),t=$e(),r=e.WeakMap;return Qr=t(r)&&/native code/.test(String(r)),Qr}var en,ei;function zt(){if(ei)return en;ei=1;var e=$e();return en=function(t){return typeof t=="object"?t!==null:e(t)},en}var tn={},rn,ti;function Gp(){if(ti)return rn;ti=1;var e=ge(),t=zt(),r=e.document,n=t(r)&&t(r.createElement);return rn=function(o){return n?r.createElement(o):{}},rn}var nn,ri;function Lp(){if(ri)return nn;ri=1;var e=Xe(),t=Ye(),r=Gp();return nn=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),nn}var on,ni;function Hp(){if(ni)return on;ni=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,oi;function Es(){if(oi)return an;oi=1;var e=zt(),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,ai;function ks(){if(ai)return ln;ai=1;var e=Os(),t=Function.prototype.call;return ln=e?t.bind(t):function(){return t.apply(t,arguments)},ln}var sn,ii;function Up(){if(ii)return sn;ii=1;var e=ge(),t=$e(),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,li;function zp(){if(li)return un;li=1;var e=Ut();return un=e({}.isPrototypeOf),un}var cn,si;function Wp(){if(si)return cn;si=1;var e=ge(),t=e.navigator,r=t&&t.userAgent;return cn=r?String(r):"",cn}var dn,ui;function Kp(){if(ui)return dn;ui=1;var e=ge(),t=Wp(),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,ci;function _s(){if(ci)return fn;ci=1;var e=Kp(),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,di;function Ns(){if(di)return pn;di=1;var e=_s();return pn=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",pn}var hn,fi;function Ts(){if(fi)return hn;fi=1;var e=Up(),t=$e(),r=zp(),n=Ns(),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,pi;function Yp(){if(pi)return vn;pi=1;var e=String;return vn=function(t){try{return e(t)}catch{return"Object"}},vn}var gn,hi;function Xp(){if(hi)return gn;hi=1;var e=$e(),t=Yp(),r=TypeError;return gn=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},gn}var mn,vi;function Jp(){if(vi)return mn;vi=1;var e=Xp(),t=xs();return mn=function(r,n){var o=r[n];return t(o)?void 0:e(o)},mn}var yn,gi;function Zp(){if(gi)return yn;gi=1;var e=ks(),t=$e(),r=zt(),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,mi;function As(){if(mi)return bn;mi=1;var e=So();return bn=function(t,r){return e[t]||(e[t]=r||{})},bn}var Cn,yi;function Ps(){if(yi)return Cn;yi=1;var e=Ut(),t=0,r=Math.random(),n=e(1 .toString);return Cn=function(o){return"Symbol("+(o===void 0?"":o)+")_"+n(++t+r,36)},Cn}var wn,bi;function Qp(){if(bi)return wn;bi=1;var e=ge(),t=As(),r=_r(),n=Ps(),o=_s(),a=Ns(),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,Ci;function eh(){if(Ci)return Sn;Ci=1;var e=ks(),t=zt(),r=Ts(),n=Jp(),o=Zp(),a=Qp(),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,wi;function th(){if(wi)return On;wi=1;var e=eh(),t=Ts();return On=function(r){var n=e(r,"string");return t(n)?n:n+""},On}var Si;function Rs(){if(Si)return tn;Si=1;var e=Xe(),t=Lp(),r=Hp(),n=Es(),o=th(),a=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s="enumerable",d="configurable",c="writable";return tn.f=e?r?function(p,h,v){if(n(p),h=o(h),n(v),typeof p=="function"&&h==="prototype"&&"value"in v&&c in v&&!v[c]){var y=l(p,h);y&&y[c]&&(p[h]=v.value,v={configurable:d in v?v[d]:y[d],enumerable:s in v?v[s]:y[s],writable:!1})}return u(p,h,v)}:u:function(p,h,v){if(n(p),h=o(h),n(v),t)try{return u(p,h,v)}catch{}if("get"in v||"set"in v)throw new a("Accessors not supported");return"value"in v&&(p[h]=v.value),p},tn}var xn,Oi;function rh(){return Oi||(Oi=1,xn=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),xn}var En,xi;function nh(){if(xi)return En;xi=1;var e=Xe(),t=Rs(),r=rh();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,Ei;function oh(){if(Ei)return kn;Ei=1;var e=As(),t=Ps(),r=e("keys");return kn=function(n){return r[n]||(r[n]=t(n))},kn}var _n,ki;function ah(){return ki||(ki=1,_n={}),_n}var Nn,_i;function ih(){if(_i)return Nn;_i=1;var e=Dp(),t=ge(),r=zt(),n=nh(),o=_r(),a=So(),u=oh(),l=ah(),s="Object already initialized",d=t.TypeError,c=t.WeakMap,f,p,h,v=function(g){return h(g)?p(g):f(g,{})},y=function(g){return function(S){var O;if(!r(S)||(O=p(S)).type!==g)throw new d("Incompatible receiver, "+g+" required");return O}};if(e||a.state){var m=a.state||(a.state=new c);m.get=m.get,m.has=m.has,m.set=m.set,f=function(g,S){if(m.has(g))throw new d(s);return S.facade=g,m.set(g,S),S},p=function(g){return m.get(g)||{}},h=function(g){return m.has(g)}}else{var b=u("state");l[b]=!0,f=function(g,S){if(o(g,b))throw new d(s);return S.facade=g,n(g,b,S),S},p=function(g){return o(g,b)?g[b]:{}},h=function(g){return o(g,b)}}return Nn={set:f,get:p,has:h,enforce:v,getterFor:y},Nn}var Ni;function lh(){if(Ni)return qr.exports;Ni=1;var e=Ut(),t=Ye(),r=$e(),n=_r(),o=Xe(),a=Bp().CONFIGURABLE,u=qp(),l=ih(),s=l.enforce,d=l.get,c=String,f=Object.defineProperty,p=e("".slice),h=e("".replace),v=e([].join),y=o&&!t(function(){return f(function(){},"length",{value:8}).length!==8}),m=String(String).split("String"),b=qr.exports=function(g,S,O){p(c(S),0,7)==="Symbol("&&(S="["+h(c(S),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),O&&O.getter&&(S="get "+S),O&&O.setter&&(S="set "+S),(!n(g,"name")||a&&g.name!==S)&&(o?f(g,"name",{value:S,configurable:!0}):g.name=S),y&&O&&n(O,"arity")&&g.length!==O.arity&&f(g,"length",{value:O.arity});try{O&&n(O,"constructor")&&O.constructor?o&&f(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch{}var E=s(g);return n(E,"source")||(E.source=v(m,typeof S=="string"?S:"")),g};return Function.prototype.toString=b(function(){return r(this)&&d(this).source||u(this)},"toString"),qr.exports}var Tn,Ti;function sh(){if(Ti)return Tn;Ti=1;var e=lh(),t=Rs();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 An,Ai;function uh(){if(Ai)return An;Ai=1;var e=Es();return An=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},An}var Pi;function ch(){if(Pi)return Ba;Pi=1;var e=ge(),t=Xe(),r=sh(),n=uh(),o=Ye(),a=e.RegExp,u=a.prototype,l=t&&o(function(){var s=!0;try{a(".","d")}catch{s=!1}var d={},c="",f=s?"dgimsy":"gimsy",p=function(m,b){Object.defineProperty(d,m,{get:function(){return c+=b,!0}})},h={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};s&&(h.hasIndices="d");for(var v in h)p(v,h[v]);var y=Object.getOwnPropertyDescriptor(u,"flags").get.call(d);return y!==f||c!==f});return l&&r(u,"flags",{configurable:!0,get:n}),Ba}ch();var Ri=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oo(e){var t={exports:{}};return e(t,t.exports),t.exports}var rr=function(e){return e&&e.Math==Math&&e},W=rr(typeof globalThis=="object"&&globalThis)||rr(typeof window=="object"&&window)||rr(typeof self=="object"&&self)||rr(typeof Ri=="object"&&Ri)||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}),ji={}.propertyIsEnumerable,Ii=Object.getOwnPropertyDescriptor,dh={f:Ii&&!ji.call({1:2},1)?function(e){var t=Ii(this,e);return!!t&&t.enumerable}:ji},Nr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},fh={}.toString,ke=function(e){return fh.call(e).slice(8,-1)},ph="".split,Tr=D(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return ke(e)=="String"?ph.call(e,""):Object(e)}:Object,Re=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},yt=function(e){return Tr(Re(e))},K=function(e){return typeof e=="object"?e!==null:typeof e=="function"},xo=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")},hh={}.hasOwnProperty,z=function(e,t){return hh.call(e,t)},no=W.document,vh=K(no)&&K(no.createElement),js=function(e){return vh?no.createElement(e):{}},Is=!se&&!D(function(){return Object.defineProperty(js("div"),"a",{get:function(){return 7}}).a!=7}),Vi=Object.getOwnPropertyDescriptor,Eo={f:se?Vi:function(e,t){if(e=yt(e),t=xo(t,!0),Is)try{return Vi(e,t)}catch{}if(z(e,t))return Nr(!dh.f.call(e,t),e[t])}},Q=function(e){if(!K(e))throw TypeError(String(e)+" is not an object");return e},$i=Object.defineProperty,Ne={f:se?$i:function(e,t,r){if(Q(e),t=xo(t,!0),Q(r),Is)try{return $i(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,Nr(1,r))}:function(e,t,r){return e[t]=r,e},ko=function(e,t){try{ce(W,e,t)}catch{W[e]=t}return t},ze=W["__core-js_shared__"]||ko("__core-js_shared__",{}),gh=Function.toString;typeof ze.inspectSource!="function"&&(ze.inspectSource=function(e){return gh.call(e)});var fr,jt,pr,Vs=ze.inspectSource,Bi=W.WeakMap,mh=typeof Bi=="function"&&/native code/.test(Vs(Bi)),$s=Oo(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)"})}),yh=0,bh=Math.random(),_o=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++yh+bh).toString(36)},Fi=$s("keys"),No=function(e){return Fi[e]||(Fi[e]=_o(e))},Ar={},Ch=W.WeakMap;if(mh){var et=ze.state||(ze.state=new Ch),wh=et.get,Sh=et.has,Oh=et.set;fr=function(e,t){return t.facade=e,Oh.call(et,e,t),t},jt=function(e){return wh.call(et,e)||{}},pr=function(e){return Sh.call(et,e)}}else{var xt=No("state");Ar[xt]=!0,fr=function(e,t){return t.facade=e,ce(e,xt,t),t},jt=function(e){return z(e,xt)?e[xt]:{}},pr=function(e){return z(e,xt)}}var je={set:fr,get:jt,has:pr,enforce:function(e){return pr(e)?jt(e):fr(e,{})},getterFor:function(e){return function(t){var r;if(!K(t)||(r=jt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},Ie=Oo(function(e){var t=je.get,r=je.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:ko(a,u)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||Vs(this)})}),Pn=W,Mi=function(e){return typeof e=="function"?e:void 0},Pr=function(e,t){return arguments.length<2?Mi(Pn[e])||Mi(W[e]):Pn[e]&&Pn[e][t]||W[e]&&W[e][t]},xh=Math.ceil,Eh=Math.floor,bt=function(e){return isNaN(e=+e)?0:(e>0?Eh:xh)(e)},kh=Math.min,le=function(e){return e>0?kh(bt(e),9007199254740991):0},_h=Math.max,Nh=Math.min,hr=function(e,t){var r=bt(e);return r<0?_h(r+t,0):Nh(r,t)},Th=function(e){return function(t,r,n){var o,a=yt(t),u=le(a.length),l=hr(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}},Bs={indexOf:Th(!1)},Ah=Bs.indexOf,Fs=function(e,t){var r,n=yt(e),o=0,a=[];for(r in n)!z(Ar,r)&&z(n,r)&&a.push(r);for(;t.length>o;)z(n,r=t[o++])&&(~Ah(a,r)||a.push(r));return a},vr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ph=vr.concat("length","prototype"),Rh={f:Object.getOwnPropertyNames||function(e){return Fs(e,Ph)}},jh={f:Object.getOwnPropertySymbols},Ih=Pr("Reflect","ownKeys")||function(e){var t=Rh.f(Q(e)),r=jh.f;return r?t.concat(r(e)):t},Vh=function(e,t){for(var r=Ih(t),n=Ne.f,o=Eo.f,a=0;a<r.length;a++){var u=r[a];z(e,u)||n(e,u,o(t,u))}},$h=/#|\.prototype\./,Wt=function(e,t){var r=Fh[Bh(e)];return r==qh||r!=Mh&&(typeof t=="function"?D(t):!!t)},Bh=Wt.normalize=function(e){return String(e).replace($h,".").toLowerCase()},Fh=Wt.data={},Mh=Wt.NATIVE="N",qh=Wt.POLYFILL="P",oo=Wt,Dh=Eo.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]||ko(l,{}):(W[l]||{}).prototype)for(n in t){if(a=t[n],o=e.noTargetGet?(u=Dh(r,n))&&u.value:r[n],!oo(s?n:l+(d?".":"#")+n,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;Vh(a,o)}(e.sham||o&&o.sham)&&ce(a,"sham",!0),Ie(r,n,a,e)}},To=function(e,t){var r=[][e];return!!r&&D(function(){r.call(null,t||function(){throw 1},1)})},Gh=Object.defineProperty,Rn={},qi=function(e){throw e},Ct=function(e,t){if(z(Rn,e))return Rn[e];t||(t={});var r=[][e],n=!!z(t,"ACCESSORS")&&t.ACCESSORS,o=z(t,0)?t[0]:qi,a=z(t,1)?t[1]:void 0;return Rn[e]=!!r&&!D(function(){if(n&&!se)return!0;var u={length:-1};n?Gh(u,1,{enumerable:!0,get:qi}):u[1]=1,r.call(u,o,a)})},Lh=Bs.indexOf,Ms=[].indexOf,Di=!!Ms&&1/[1].indexOf(1,-0)<0,Hh=To("indexOf"),Uh=Ct("indexOf",{ACCESSORS:!0,1:0});function Je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zh(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&&zh(e,r),e}Z({target:"Array",proto:!0,forced:Di||!Hh||!Uh},{indexOf:function(e){return Di?Ms.apply(this,arguments)||0:Lh(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 Wh=[].join,Kh=Tr!=Object,Yh=To("join",",");Z({target:"Array",proto:!0,forced:Kh||!Yh},{join:function(e){return Wh.call(yt(this),e===void 0?",":e)}});var tt,gr,Te=function(e){return Object(Re(e))},ht=Array.isArray||function(e){return ke(e)=="Array"},qs=!!Object.getOwnPropertySymbols&&!D(function(){return!String(Symbol())}),Xh=qs&&!Symbol.sham&&typeof Symbol.iterator=="symbol",nr=$s("wks"),It=W.Symbol,Jh=Xh?It:It&&It.withoutSetter||_o,H=function(e){return z(nr,e)||(qs&&z(It,e)?nr[e]=It[e]:nr[e]=Jh("Symbol."+e)),nr[e]},Zh=H("species"),Rr=function(e,t){var r;return ht(e)&&(typeof(r=e.constructor)!="function"||r!==Array&&!ht(r.prototype)?K(r)&&(r=r[Zh])===null&&(r=void 0):r=void 0),new(r===void 0?Array:r)(t===0?0:t)},vt=function(e,t,r){var n=xo(t);n in e?Ne.f(e,n,Nr(0,r)):e[n]=r},jn=Pr("navigator","userAgent")||"",Gi=W.process,Li=Gi&&Gi.versions,Hi=Li&&Li.v8;Hi?gr=(tt=Hi.split("."))[0]+tt[1]:jn&&(!(tt=jn.match(/Edge\/(\d+)/))||tt[1]>=74)&&(tt=jn.match(/Chrome\/(\d+)/))&&(gr=tt[1]);var mr=gr&&+gr,Qh=H("species"),Ao=function(e){return mr>=51||!D(function(){var t=[];return(t.constructor={})[Qh]=function(){return{foo:1}},t[e](Boolean).foo!==1})},ev=Ao("splice"),tv=Ct("splice",{ACCESSORS:!0,0:0,1:2}),rv=Math.max,nv=Math.min;Z({target:"Array",proto:!0,forced:!ev||!tv},{splice:function(e,t){var r,n,o,a,u,l,s=Te(this),d=le(s.length),c=hr(e,d),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=d-c):(r=f-2,n=nv(rv(bt(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&&vt(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 Ds={};Ds[H("toStringTag")]="z";var Po=String(Ds)==="[object z]",ov=H("toStringTag"),av=ke(function(){return arguments}())=="Arguments",Gs=Po?ke: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),ov))=="string"?r:av?ke(t):(n=ke(t))=="Object"&&typeof t.callee=="function"?"Arguments":n},iv=Po?{}.toString:function(){return"[object "+Gs(this)+"]"};Po||Ie(Object.prototype,"toString",iv,{unsafe:!0});var Ls=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 Ui(e,t){return RegExp(e,t)}var In,Vn,zi={UNSUPPORTED_Y:D(function(){var e=Ui("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),BROKEN_CARET:D(function(){var e=Ui("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},yr=RegExp.prototype.exec,lv=String.prototype.replace,Hs=yr,$n=(In=/a/,Vn=/b*/g,yr.call(In,"a"),yr.call(Vn,"a"),In.lastIndex!==0||Vn.lastIndex!==0),Wi=zi.UNSUPPORTED_Y||zi.BROKEN_CARET,Bn=/()??/.exec("")[1]!==void 0;($n||Bn||Wi)&&(Hs=function(e){var t,r,n,o,a=this,u=Wi&&a.sticky,l=Ls.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)),Bn&&(r=new RegExp("^"+s+"$(?!\\s)",l)),$n&&(t=a.lastIndex),n=yr.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:$n&&n&&(a.lastIndex=a.global?n.index+n[0].length:t),Bn&&n&&n.length>1&&lv.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(n[o]=void 0)}),n});var qt=Hs;Z({target:"RegExp",proto:!0,forced:/./.exec!==qt},{exec:qt});var Us=RegExp.prototype,zs=Us.toString,sv=D(function(){return zs.call({source:"a",flags:"b"})!="/a/b"}),uv=zs.name!="toString";(sv||uv)&&Ie(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 Us)?Ls.call(e):r)},{unsafe:!0});var cv=H("species"),dv=!D(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}),Ki="a".replace(/./,"$0")==="$0",Yi=H("replace"),Xi=!!/./[Yi]&&/./[Yi]("a","$0")==="",fv=!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"}),Ws=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[cv]=function(){return p},p.flags="",p[o]=/./[o]),p.exec=function(){return f=!0,null},p[o](""),!f});if(!a||!u||e==="replace"&&(!dv||!Ki||Xi)||e==="split"&&!fv){var l=/./[o],s=r(o,""[e],function(f,p,h,v,y){return p.exec===qt?a&&!y?{done:!0,value:l.call(p,h,v)}:{done:!0,value:f.call(h,p,v)}:{done:!1}},{REPLACE_KEEPS_$0:Ki,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Xi}),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&&ce(RegExp.prototype[o],"sham",!0)},pv=H("match"),Ks=function(e){var t;return K(e)&&((t=e[pv])!==void 0?!!t:ke(e)=="RegExp")},Ro=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},hv=H("species"),vv=function(e){return function(t,r){var n,o,a=String(Re(t)),u=bt(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}},Ys={charAt:vv(!0)},gv=Ys.charAt,Xs=function(e,t,r){return t+(r?gv(e,t).length:1)},ao=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 qt.call(e,t)},mv=[].push,yv=Math.min,rt=!D(function(){return!RegExp(4294967295,"y")});Ws("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(Re(this)),l=a===void 0?4294967295:a>>>0;if(l===0)return[];if(o===void 0)return[u];if(!Ks(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,v=new RegExp(o.source,p+"g");(s=qt.call(v,u))&&!((d=v.lastIndex)>h&&(f.push(u.slice(h,s.index)),s.length>1&&s.index<u.length&&mv.apply(f,s.slice(1)),c=s[0].length,h=d,f.length>=l));)v.lastIndex===s.index&&v.lastIndex++;return h===u.length?!c&&v.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=Re(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,E){var k,P=Q(O).constructor;return P===void 0||(k=Q(P)[hv])==null?E:Ro(k)}(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 ao(p,s)===null?[s]:[];for(var v=0,y=0,m=[];y<s.length;){p.lastIndex=rt?y:0;var b,g=ao(p,rt?s:s.slice(y));if(g===null||(b=yv(le(p.lastIndex+(rt?0:y)),s.length))===v)y=Xs(s,y,c);else{if(m.push(s.slice(v,y)),m.length===h)return m;for(var S=1;S<=g.length-1;S++)if(m.push(g[S]),m.length===h)return m;y=v=b}}return m.push(s.slice(v)),m}]},!rt);var io=`
20
- \v\f\r                 \u2028\u2029\uFEFF`,br="["+io+"]",bv=RegExp("^"+br+br+"*"),Cv=RegExp(br+br+"*$"),wv=function(e){return function(t){var r=String(Re(t));return 1&e&&(r=r.replace(bv,"")),2&e&&(r=r.replace(Cv,"")),r}},Sv={trim:wv(3)},Ov=Sv.trim;Z({target:"String",proto:!0,forced:function(e){return D(function(){return!!io[e]()||"​…᠎"[e]()!="​…᠎"||io[e].name!==e})}("trim")},{trim:function(){return Ov(this)}});var xv=Ao("slice"),Ev=Ct("slice",{ACCESSORS:!0,0:0,1:2}),kv=H("species"),_v=[].slice,Nv=Math.max;Z({target:"Array",proto:!0,forced:!xv||!Ev},{slice:function(e,t){var r,n,o,a=yt(this),u=le(a.length),l=hr(e,u),s=hr(t===void 0?u:t,u);if(ht(a)&&(typeof(r=a.constructor)!="function"||r!==Array&&!ht(r.prototype)?K(r)&&(r=r[kv])===null&&(r=void 0):r=void 0,r===Array||r===void 0))return _v.call(a,l,s);for(n=new(r===void 0?Array:r)(Nv(s-l,0)),o=0;l<s;l++,o++)l in a&&vt(n,o,a[l]);return n.length=o,n}});var jo=Object.keys||function(e){return Fs(e,vr)},Tv=D(function(){jo(1)});Z({target:"Object",stat:!0,forced:Tv},{keys:function(e){return jo(Te(e))}});var Fn,Av=function(e){if(Ks(e))throw TypeError("The method doesn't accept regular expressions");return e},Pv=H("match"),Rv=Eo.f,Ji="".startsWith,jv=Math.min,Js=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Pv]=!1,"/./"[e](t)}catch{}}return!1}("startsWith"),Iv=!(Js||(Fn=Rv(String.prototype,"startsWith"),!Fn||Fn.writable));function Zs(e){return(Zs=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:!Iv&&!Js},{startsWith:function(e){var t=String(Re(this));Av(e);var r=le(jv(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return Ji?Ji.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&&Zs(e)==="object"},Dt=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}(),Vv=Math.floor,$v="".replace,Bv=/\$([$&'`]|\d\d?|<[^>]*>)/g,Fv=/\$([$&'`]|\d\d?)/g,Mv=function(e,t,r,n,o,a){var u=r+e.length,l=n.length,s=Fv;return o!==void 0&&(o=Te(o),s=Bv),$v.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=Vv(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})},qv=Math.max,Dv=Math.min;Ws("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=Re(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 v=c.unicode;c.lastIndex=0}for(var y=[];;){var m=ao(c,f);if(m===null||(y.push(m),!h))break;String(m[0])===""&&(c.lastIndex=Xs(f,le(c.lastIndex),v))}for(var b,g="",S=0,O=0;O<y.length;O++){m=y[O];for(var E=String(m[0]),k=qv(Dv(bt(m.index),f.length),0),P=[],V=1;V<m.length;V++)P.push((b=m[V])===void 0?b:String(b));var j=m.groups;if(p){var N=[E].concat(P,k,f);j!==void 0&&N.push(j);var C=String(s.apply(void 0,N))}else C=Mv(E,f,k,P,j,s);k>=S&&(g+=f.slice(S,k)+C,S=k+E.length)}return g+f.slice(S)}]});(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 Qs=H("isConcatSpreadable"),Gv=mr>=51||!D(function(){var e=[];return e[Qs]=!1,e.concat()[0]!==e}),Lv=Ao("concat"),Hv=function(e){if(!K(e))return!1;var t=e[Qs];return t!==void 0?!!t:ht(e)};Z({target:"Array",proto:!0,forced:!Gv||!Lv},{concat:function(e){var t,r,n,o,a,u=Te(this),l=Rr(u,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(Hv(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&&vt(l,s,a[r])}else{if(s>=9007199254740991)throw TypeError("Maximum allowed index exceeded");vt(l,s++,a)}return l.length=s,l}});var Mn,Kt=function(e,t,r){if(Ro(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)}},Zi=[].push,Qi=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,v=Te(s),y=Tr(v),m=Kt(d,c,3),b=le(y.length),g=0,S=f||Rr,O=t?S(s,b):r||u?S(s,0):void 0;b>g;g++)if((l||g in y)&&(h=m(p=y[g],g,v),e))if(t)O[g]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return g;case 2:Zi.call(O,p)}else switch(e){case 4:return!1;case 7:Zi.call(O,p)}return a?-1:n||o?o:O}},eu={find:Qi(5),findIndex:Qi(6)},Uv=se?Object.defineProperties:function(e,t){Q(e);for(var r,n=jo(t),o=n.length,a=0;o>a;)Ne.f(e,r=n[a++],t[r]);return e},zv=Pr("document","documentElement"),tu=No("IE_PROTO"),qn=function(){},el=function(e){return"<script>"+e+"<\/script>"},lr=function(){try{Mn=document.domain&&new ActiveXObject("htmlfile")}catch{}var e,t;lr=Mn?function(n){n.write(el("")),n.close();var o=n.parentWindow.Object;return n=null,o}(Mn):((t=js("iframe")).style.display="none",zv.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(el("document.F=Object")),e.close(),e.F);for(var r=vr.length;r--;)delete lr.prototype[vr[r]];return lr()};Ar[tu]=!0;var Io=Object.create||function(e,t){var r;return e!==null?(qn.prototype=Q(e),r=new qn,qn.prototype=null,r[tu]=e):r=lr(),t===void 0?r:Uv(r,t)},lo=H("unscopables"),so=Array.prototype;so[lo]==null&&Ne.f(so,lo,{configurable:!0,value:Io(null)});var lt=function(e){so[lo][e]=!0},Wv=eu.find,tl=!0,Kv=Ct("find");"find"in[]&&Array(1).find(function(){tl=!1}),Z({target:"Array",proto:!0,forced:tl||!Kv},{find:function(e){return Wv(this,e,arguments.length>1?arguments[1]:void 0)}}),lt("find");var Yv=eu.findIndex,rl=!0,Xv=Ct("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){rl=!1}),Z({target:"Array",proto:!0,forced:rl||!Xv},{findIndex:function(e){return Yv(this,e,arguments.length>1?arguments[1]:void 0)}}),lt("findIndex");var ru=function(e,t,r,n,o,a,u,l){for(var s,d=o,c=0,f=!!u&&Kt(u,l,3);c<n;){if(c in r){if(s=f?f(r[c],c,t):r[c],a>0&&ht(s))d=ru(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},Jv=ru;Z({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Te(this),r=le(t.length),n=Rr(t,0);return n.length=Jv(n,t,t,r,0,e===void 0?1:bt(e)),n}});var uo=function(e){var t=e.return;if(t!==void 0)return Q(t.call(e)).value},Zv=function(e,t,r,n){try{return n?t(Q(r)[0],r[1]):t(r)}catch(o){throw uo(e),o}},gt={},Qv=H("iterator"),eg=Array.prototype,nu=function(e){return e!==void 0&&(gt.Array===e||eg[Qv]===e)},tg=H("iterator"),ou=function(e){if(e!=null)return e[tg]||e["@@iterator"]||gt[Gs(e)]},au=H("iterator"),iu=!1;try{var rg=0,nl={next:function(){return{done:!!rg++}},return:function(){iu=!0}};nl[au]=function(){return this},Array.from(nl,function(){throw 2})}catch{}var lu=function(e,t){if(!iu)return!1;var r=!1;try{var n={};n[au]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},ng=!lu(function(e){Array.from(e)});Z({target:"Array",stat:!0,forced:ng},{from:function(e){var t,r,n,o,a,u,l=Te(e),s=typeof this=="function"?this:Array,d=arguments.length,c=d>1?arguments[1]:void 0,f=c!==void 0,p=ou(l),h=0;if(f&&(c=Kt(c,d>2?arguments[2]:void 0,2)),p==null||s==Array&&nu(p))for(r=new s(t=le(l.length));t>h;h++)u=f?c(l[h],h):l[h],vt(r,h,u);else for(a=(o=p.call(l)).next,r=new s;!(n=a.call(o)).done;h++)u=f?Zv(o,c,[n.value,h],!0):n.value,vt(r,h,u);return r.length=h,r}});var og=function(e){return function(t,r,n,o){Ro(r);var a=Te(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}},ag={left:og(!1)},ig=ke(W.process)=="process",lg=ag.left,sg=To("reduce"),ug=Ct("reduce",{1:0});Z({target:"Array",proto:!0,forced:!sg||!ug||!ig&&mr>79&&mr<83},{reduce:function(e){return lg(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}}),lt("flat");var Me,ol,al,cg=!D(function(){return Object.isExtensible(Object.preventExtensions({}))}),su=Oo(function(e){var t=Ne.f,r=_o("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 cg&&u.REQUIRED&&o(l)&&!z(l,r)&&a(l),l}};Ar[r]=!0}),Et=function(e,t){this.stopped=e,this.result=t},il=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),v=Kt(t,c,1+f+h),y=function(b){return n&&uo(n),new Et(!0,b)},m=function(b){return f?(Q(b),h?v(b[0],b[1],y):v(b[0],b[1])):h?v(b,y):v(b)};if(p)n=e;else{if(typeof(o=ou(e))!="function")throw TypeError("Target is not iterable");if(nu(o)){for(a=0,u=le(e.length);u>a;a++)if((l=m(e[a]))&&l instanceof Et)return l;return new Et(!1)}n=o.call(e)}for(s=n.next;!(d=s.call(n)).done;){try{l=m(d.value)}catch(b){throw uo(n),b}if(typeof l=="object"&&l&&l instanceof Et)return l}return new Et(!1)},ll=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},dg=Ne.f,sl=H("toStringTag"),co=function(e,t,r){e&&!z(e=r?e:e.prototype,sl)&&dg(e,sl,{configurable:!0,value:t})},Cr=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),ul=function(e,t,r){for(var n in t)Ie(e,n,t[n],r);return e},fg=!D(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),cl=No("IE_PROTO"),pg=Object.prototype,wr=fg?Object.getPrototypeOf:function(e){return e=Te(e),z(e,cl)?e[cl]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?pg:null},Dn=H("iterator"),uu=!1;[].keys&&("next"in(al=[].keys())?(ol=wr(wr(al)))!==Object.prototype&&(Me=ol):uu=!0),(Me==null||D(function(){var e={};return Me[Dn].call(e)!==e}))&&(Me={}),z(Me,Dn)||ce(Me,Dn,function(){return this});var Vo={IteratorPrototype:Me,BUGGY_SAFARI_ITERATORS:uu},hg=Vo.IteratorPrototype,vg=function(){return this},Gn=Vo.IteratorPrototype,or=Vo.BUGGY_SAFARI_ITERATORS,kt=H("iterator"),gg=function(){return this},$o=function(e,t,r,n,o,a,u){(function(b,g,S){var O=g+" Iterator";b.prototype=Io(hg,{next:Nr(1,S)}),co(b,O,!1),gt[O]=vg})(r,t,n);var l,s,d,c=function(b){if(b===o&&y)return y;if(!or&&b in h)return h[b];switch(b){case"keys":case"values":case"entries":return function(){return new r(this,b)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,v=h[kt]||h["@@iterator"]||o&&h[o],y=!or&&v||c(o),m=t=="Array"&&h.entries||v;if(m&&(l=wr(m.call(new e)),Gn!==Object.prototype&&l.next&&(wr(l)!==Gn&&(Cr?Cr(l,Gn):typeof l[kt]!="function"&&ce(l,kt,gg)),co(l,f,!0))),o=="values"&&v&&v.name!=="values"&&(p=!0,y=function(){return v.call(this)}),h[kt]!==y&&ce(h,kt,y),gt[t]=y,o)if(s={values:c("values"),keys:a?y:c("keys"),entries:c("entries")},u)for(d in s)(or||p||!(d in h))&&Ie(h,d,s[d]);else Z({target:t,proto:!0,forced:or||p},s);return s},dl=H("species"),mg=Ne.f,fl=su.fastKey,pl=je.set,Ln=je.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(m){var b=l[m];Ie(l,m,m=="add"?function(g){return b.call(this,g===0?0:g),this}:m=="delete"?function(g){return!(o&&!K(g))&&b.call(this,g===0?0:g)}:m=="get"?function(g){return o&&!K(g)?void 0:b.call(this,g===0?0:g)}:m=="has"?function(g){return!(o&&!K(g))&&b.call(this,g===0?0:g)}:function(g,S){return b.call(this,g===0?0:g,S),this})};if(oo(e,typeof u!="function"||!(o||l.forEach&&!D(function(){new u().entries().next()}))))s=r.getConstructor(t,e,n,a),su.REQUIRED=!0;else if(oo(e,!0)){var f=new s,p=f[a](o?{}:-0,1)!=f,h=D(function(){f.has(1)}),v=lu(function(m){new u(m)}),y=!o&&D(function(){for(var m=new u,b=5;b--;)m[a](b,b);return!m.has(-0)});v||((s=t(function(m,b){ll(m,s,e);var g=function(S,O,E){var k,P;return Cr&&typeof(k=O.constructor)=="function"&&k!==E&&K(P=k.prototype)&&P!==E.prototype&&Cr(S,P),S}(new u,m,s);return b!=null&&il(b,g[a],{that:g,AS_ENTRIES:n}),g})).prototype=l,l.constructor=s),(h||y)&&(c("delete"),c("has"),n&&c("get")),(y||p)&&c(a),o&&l.clear&&delete l.clear}d[e]=s,Z({global:!0,forced:s!=u},d),co(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){ll(s,o,t),pl(s,{type:t,index:Io(null),first:void 0,last:void 0,size:0}),se||(s.size=0),d!=null&&il(d,s[n],{that:s,AS_ENTRIES:r})}),a=Ln(t),u=function(s,d,c){var f,p,h=a(s),v=l(s,d);return v?v.value=c:(h.last=v={index:p=fl(d,!0),key:d,value:c,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=v),f&&(f.next=v),se?h.size++:s.size++,p!=="F"&&(h.index[p]=v)),s},l=function(s,d){var c,f=a(s),p=fl(d);if(p!=="F")return f.index[p];for(c=f.first;c;c=c.next)if(c.key==d)return c};return ul(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=Kt(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)}}),ul(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&&mg(o.prototype,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=Ln(t),a=Ln(n);$o(e,t,function(u,l){pl(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=Pr(u),s=Ne.f;se&&l&&!l[dl]&&s(l,dl,{configurable:!0,get:function(){return this}})}(t)}});var yg=Ys.charAt,bg=je.set,Cg=je.getterFor("String Iterator");$o(String,"String",function(e){bg(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=Cg(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=yg(r,n),t.index+=e.length,{value:e,done:!1})});var hl={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},wg=je.set,Sg=je.getterFor("Array Iterator"),At=$o(Array,"Array",function(e,t){wg(this,{type:"Array Iterator",target:yt(e),index:0,kind:t})},function(){var e=Sg(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");gt.Arguments=gt.Array,lt("keys"),lt("values"),lt("entries");var Hn=H("iterator"),vl=H("toStringTag"),Un=At.values;for(var zn in hl){var gl=W[zn],xe=gl&&gl.prototype;if(xe){if(xe[Hn]!==Un)try{ce(xe,Hn,Un)}catch{xe[Hn]=Un}if(xe[vl]||ce(xe,vl,zn),hl[zn]){for(var at in At)if(xe[at]!==At[at])try{ce(xe,at,At[at])}catch{xe[at]=At[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 Og=Object.defineProperty,xg=(e,t,r)=>t in e?Og(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X=(e,t,r)=>(xg(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 ml(e,t,r,n){return`rgba(${[e,t,r,n/100].join(",")})`}const Wn=(e,t,r)=>t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e,Bo="color-history",Fo=8,pe=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},Eg=i.defineComponent({name:"Alpha",props:{color:A.instanceOf(L),size:A.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,mt.merge(a,{red:f.red,green:f.green,blue:f.blue,alpha:f.alpha}))},{deep:!0});const u=i.computed(()=>{const f=ml(a.red,a.green,a.blue,0),p=ml(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 v=f.clientX-p.left;v=Math.max(h/2,v),v=Math.min(v,p.width-h/2);const y=Math.round((v-h/2)/(p.width-h)*100);o.alpha=y,a.alpha=y,t("change",y)}};return We(()=>{const f={drag:p=>{c(p)},end:p=>{c(p)}};r.value&&n.value&&Dt.triggerDragEvent(r.value,f)}),{barElement:r,cursorElement:n,getCursorStyle:s,getBackgroundStyle:u,onClickSider:d}}}),kg=e=>(i.pushScopeId("data-v-18925ba6"),e=e(),i.popScopeId(),e),_g=kg(()=>i.createElementVNode("div",{class:"vc-alpha-slider__bar-handle"},null,-1)),Ng=[_g];function Tg(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)},Ng,6)],4)],2)}const Mo=pe(Eg,[["render",Tg],["__scopeId","data-v-18925ba6"]]),Ag=[["#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"]],Pg=i.defineComponent({name:"Palette",emits:["change"],setup(e,{emit:t}){return{palettes:Ag,computedBgStyle:r=>r==="transparent"?r:r==="advance"?{}:{background:x(r).toRgbString()},onColorChange:r=>{t("change",r)}}}}),Rg={class:"vc-compact"},jg=["onClick"];function Ig(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",Rg,[(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,jg))),128))]))),128))])}const cu=pe(Pg,[["render",Ig],["__scopeId","data-v-b969fd48"]]),Vg=i.defineComponent({name:"Board",props:{color:A.instanceOf(L),round:A.bool.def(!1),hide:A.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 S=a.vnode.el;c.value=s.saturation*(S==null?void 0:S.clientWidth),d.value=(1-s.brightness)*(S==null?void 0:S.clientHeight)}};let v=!1;const y=S=>{v=!0,g(S)},m=S=>{v&&g(S)},b=()=>{v=!1},g=S=>{if(a){const O=a.vnode.el,E=O==null?void 0:O.getBoundingClientRect();let k=S.clientX-E.left,P=S.clientY-E.top;k=Wn(k,0,E.width),P=Wn(P,0,E.height);const V=k/E.width,j=Wn(-(P/E.height)+1,0,1);c.value=k,d.value=P,s.saturation=V,s.brightness=j,t("change",V,j)}};return We(()=>{a&&a.vnode.el&&f.value&&i.nextTick(()=>{h()})}),J(()=>e.color,S=>{mt.merge(s,{hueColor:new L({h:S.hue,s:1,v:1}).toHexString(),saturation:S.saturation,brightness:S.brightness}),h()},{deep:!0}),{state:s,cursorElement:f,getCursorStyle:p,onClickBoard:y,onDrag:m,onDragEnd:b}}}),qo=e=>(i.pushScopeId("data-v-7f0cdcdf"),e=e(),i.popScopeId(),e),$g=qo(()=>i.createElementVNode("div",{class:"vc-saturation__white"},null,-1)),Bg=qo(()=>i.createElementVNode("div",{class:"vc-saturation__black"},null,-1)),Fg=qo(()=>i.createElementVNode("div",null,null,-1)),Mg=[Fg];function qg(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))},[$g,Bg,i.createElementVNode("div",{class:"vc-saturation__cursor",ref:"cursorElement",style:i.normalizeStyle(e.getCursorStyle)},Mg,4)],38)}const Do=pe(Vg,[["render",qg],["__scopeId","data-v-7f0cdcdf"]]),Dg=i.defineComponent({name:"Hue",props:{color:A.instanceOf(L),size:A.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,mt.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 v=Math.round((h-p/2)/(f.width-p)*360);o.hue=v,a.hue=v,t("change",v)}};return We(()=>{const c={drag:f=>{d(f)},end:f=>{d(f)}};r.value&&n.value&&Dt.triggerDragEvent(r.value,c)}),{barElement:r,cursorElement:n,getCursorStyle:l,onClickSider:s}}}),Gg=e=>(i.pushScopeId("data-v-e1a08576"),e=e(),i.popScopeId(),e),Lg=Gg(()=>i.createElementVNode("div",{class:"vc-hue-slider__bar-handle"},null,-1)),Hg=[Lg];function Ug(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)},Hg,6)],512)],2)}const Go=pe(Dg,[["render",Ug],["__scopeId","data-v-e1a08576"]]),zg=i.defineComponent({name:"Lightness",props:{color:A.instanceOf(L),size:A.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,v=>{if(v){o=v;const[y,m,b]=o.HSL;mt.merge(s,{hue:y,saturation:m,lightness:b})}},{deep:!0});const d=i.computed(()=>{const v=x({h:s.hue,s:s.saturation,l:.8}).toPercentageRgbString(),y=x({h:s.hue,s:s.saturation,l:.6}).toPercentageRgbString(),m=x({h:s.hue,s:s.saturation,l:.4}).toPercentageRgbString(),b=x({h:s.hue,s:s.saturation,l:.2}).toPercentageRgbString();return{background:[`linear-gradient(to right, rgb(255, 255, 255), ${v}, ${y}, ${m}, ${b}, rgb(0, 0, 0))`,`-webkit-linear-gradient(left, rgb(255, 255, 255), ${v}, ${y}, ${m}, ${b}, rgb(0, 0, 0))`,`-moz-linear-gradient(left, rgb(255, 255, 255), ${v}, ${y}, ${m}, ${b}, rgb(0, 0, 0))`,`-ms-linear-gradient(left, rgb(255, 255, 255), ${v}, ${y}, ${m}, ${b}, rgb(0, 0, 0))`]}}),c=()=>{if(r.value&&n.value){const v=s.lightness,y=r.value.getBoundingClientRect(),m=n.value.offsetWidth;return(1-v)*(y.width-m)+m/2}return 0},f=i.computed(()=>({left:c()+"px",top:0})),p=v=>{v.target!==r.value&&h(v)},h=v=>{if(v.stopPropagation(),r.value&&n.value){const y=r.value.getBoundingClientRect(),m=n.value.offsetWidth;let b=v.clientX-y.left;b=Math.max(m/2,b),b=Math.min(b,y.width-m/2);const g=1-(b-m/2)/(y.width-m);o.lightness=g,t("change",g)}};return We(()=>{const v={drag:y=>{h(y)},end:y=>{h(y)}};r.value&&n.value&&Dt.triggerDragEvent(r.value,v)}),{barElement:r,cursorElement:n,getCursorStyle:f,getBackgroundStyle:d,onClickSider:p}}}),Wg=e=>(i.pushScopeId("data-v-94a50a9e"),e=e(),i.popScopeId(),e),Kg=Wg(()=>i.createElementVNode("div",{class:"vc-lightness-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-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)},Yg,6)],4)],2)}const du=pe(zg,[["render",Xg],["__scopeId","data-v-94a50a9e"]]),Jg=i.defineComponent({name:"History",props:{colors:A.arrayOf(String).def(()=>[]),round:A.bool.def(!1)},emits:["change"],setup(e,{emit:t}){return{onColorSelect:r=>{t("change",r)}}}}),Zg={key:0,class:"vc-colorPicker__record"},Qg={class:"color-list"},em=["onClick"];function tm(e,t,r,n,o,a){return e.colors&&e.colors.length>0?(i.openBlock(),i.createElementBlock("div",Zg,[i.createElementVNode("div",Qg,[(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,em))),128))])])):i.createCommentVNode("",!0)}const Lo=pe(Jg,[["render",tm],["__scopeId","data-v-0f657238"]]),rm=i.defineComponent({name:"Display",props:{color:A.instanceOf(L),disableAlpha:A.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){var r,n,o,a;const{copy:u,copied:l,isSupported:s}=Td(),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=Ee(b=>{if(!b.target.value)return;let g=parseInt(b.target.value.replace("%",""));g>100&&(b.target.value="100",g=100),g<0&&(b.target.value="0",g=0),isNaN(g)&&(b.target.value="100",g=100),!isNaN(g)&&c.color&&(c.color.alpha=g),t("change",c.color)},300),v=Ee((b,g)=>{if(c.color){if(d.value==="hex"){const S=b.target.value.replace("#","");x(S).isValid()?[3,4].includes(S.length)&&(c.color.hex=S):c.color.hex="000000",t("change",c.color)}else if(d.value==="rgba"&&g===3&&b.target.value.toString()==="0."&&c.rgba){c.rgba[g]=b.target.value;const[S,O,E,k]=c.rgba;c.color.hex=x({r:S,g:O,b:E}).toHex(),c.color.alpha=Math.round(k*100),t("change",c.color)}}},100),y=Ee((b,g)=>{if(b.target.value){if(d.value==="hex"){const S=b.target.value.replace("#","");x(S).isValid()&&c.color&&[6,8].includes(S.length)&&(c.color.hex=S)}else if(g!==void 0&&c.rgba&&c.color){if(b.target.value<0&&(b.target.value=0),g===3&&((b.target.value>1||isNaN(b.target.value))&&(b.target.value=1),b.target.value.toString()==="0."))return;g<3&&b.target.value>255&&(b.target.value=255),c.rgba[g]=b.target.value;const[S,O,E,k]=c.rgba;c.color.hex=x({r:S,g:O,b:E}).toHex(),c.color.alpha=Math.round(k*100)}t("change",c.color)}},300),m=()=>{if(s&&c.color){const b=d.value==="hex"?c.color.toString(c.color.alpha===100?"hex6":"hex8"):c.color.toRgbString();u(b||"")}};return J(()=>e.color,b=>{b&&(c.color=b,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:y,onBlurChange:v,onCopyColorStr:m}}}),nm={class:"vc-display"},om={class:"vc-current-color vc-transparent"},am={key:0,class:"copy-text"},im={key:0,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},lm={class:"vc-color-input"},sm={key:0,class:"vc-alpha-input"},um=["value"],cm={key:1,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},dm=["value","onInput","onBlur"];function fm(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",nm,[i.createElementVNode("div",om,[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",am,"Copied!")):i.createCommentVNode("",!0)],4)]),e.inputType==="hex"?(i.openBlock(),i.createElementBlock("div",im,[i.createElementVNode("div",lm,[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",sm,[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,um),i.createTextVNode("% ")]))])):e.state.rgba?(i.openBlock(),i.createElementBlock("div",cm,[(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,dm)]))),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 Ho=pe(rm,[["render",fm],["__scopeId","data-v-7334ac20"]]),pm=i.defineComponent({name:"FkColorPicker",components:{Display:Ho,Alpha:Mo,Palette:cu,Board:Do,Hue:Go,Lightness:du,History:Lo},props:{color:A.instanceOf(L),disableHistory:A.bool.def(!1),roundHistory:A.bool.def(!1),disableAlpha:A.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=po(Bo,[],{}),s=Ee(()=>{if(e.disableHistory)return;const y=n.color.toRgbString();if(l.value=l.value.filter(m=>!x.equals(m,y)),!l.value.includes(y)){for(;l.value.length>Fo;)l.value.pop();l.value.unshift(y)}},500),d=y=>{y==="advance"?(o.value=!0,t("advanceChange",!0)):(n.color.hex=y,t("advanceChange",!1))},c=y=>{n.color.alpha=y},f=y=>{n.color.hue=y},p=(y,m)=>{n.color.saturation=y,n.color.brightness=m},h=y=>{n.color.lightness=y},v=y=>{const m=y.target.value.replace("#","");x(m).isValid()&&(n.color.hex=m)};return J(()=>e.color,y=>{y&&(n.color=y)},{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:v,previewStyle:a,historyColors:l}}}),hm=e=>(i.pushScopeId("data-v-48e3c224"),e=e(),i.popScopeId(),e),vm={class:"vc-fk-colorPicker"},gm={class:"vc-fk-colorPicker__inner"},mm={class:"vc-fk-colorPicker__header"},ym=hm(()=>i.createElementVNode("div",{class:"back"},null,-1)),bm=[ym];function Cm(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",vm,[i.createElementVNode("div",gm,[i.createElementVNode("div",mm,[e.advancePanelShow?(i.openBlock(),i.createElementBlock("span",{key:0,style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...h)=>e.onBack&&e.onBack(...h))},bm)):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 yl=pe(pm,[["render",Cm],["__scopeId","data-v-48e3c224"]]),wm=i.defineComponent({name:"ChromeColorPicker",components:{Display:Ho,Alpha:Mo,Board:Do,Hue:Go,History:Lo},props:{color:A.instanceOf(L),disableHistory:A.bool.def(!1),roundHistory:A.bool.def(!1),disableAlpha:A.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=po(Bo,[],{}),u=Ee(()=>{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>Fo;)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}}}),Sm={class:"vc-chrome-colorPicker"},Om={class:"vc-chrome-colorPicker-body"},xm={class:"chrome-controls"},Em={class:"chrome-sliders"};function km(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",Sm,[i.createVNode(u,{round:!0,hide:!1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"]),i.createElementVNode("div",Om,[i.createElementVNode("div",xm,[i.createElementVNode("div",Em,[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 bl=pe(wm,[["render",km],["__scopeId","data-v-2611d66c"]]),Uo="Vue3ColorPickerProvider",_m=(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 Kn=!1;const Nm=(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,Kn=!1,(a=t.end)==null||a.call(t,o)};e&&e.addEventListener("mousedown",o=>{var a;Kn||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",n,!1),Kn=!0,(a=t.start)==null||a.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"}},Am=i.defineComponent({name:"Angle",props:Tm,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=_m(r.value,l)%360,o())};return i.onMounted(()=>{const l={drag:s=>{u(s)},end:s=>{u(s)}};r.value&&Nm(r.value,l)}),()=>i.createVNode("div",{class:"bee-angle"},[i.createVNode("div",{class:"bee-angle__round",ref:r,style:a.value},null)])}}),Pm=i.defineComponent({name:"GradientColorPicker",components:{Angle:Am,Display:Ho,Alpha:Mo,Palette:cu,Board:Do,Hue:Go,Lightness:du,History:Lo},props:{startColor:A.instanceOf(L).isRequired,endColor:A.instanceOf(L).isRequired,startColorStop:A.number.def(0),endColorStop:A.number.def(100),angle:A.number.def(0),type:A.oneOf(["linear","radial"]).def("linear"),disableHistory:A.bool.def(!1),roundHistory:A.bool.def(!1),disableAlpha:A.bool.def(!1),pickerType:A.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(Uo),o=i.ref(e.pickerType==="chrome"),a=i.ref(),u=i.ref(),l=i.ref();i.watch(()=>[e.startColor,e.endColor,e.angle],C=>{r.startColor=C[0],r.endColor=C[1],r.angle=C[2]}),i.watch(()=>e.type,C=>{r.type=C});const s=i.computed({get:()=>r.startActive?r.startColor:r.endColor,set:C=>{if(r.startActive){r.startColor=C;return}r.endColor=C}}),d=i.computed(()=>{if(l.value&&a.value){const C=r.startColorStop/100,_=l.value.getBoundingClientRect(),R=a.value.offsetWidth;return Math.round(C*(_.width-R)+R/2)}return 0}),c=i.computed(()=>{if(l.value&&u.value){const C=r.endColorStop/100,_=l.value.getBoundingClientRect(),R=u.value.offsetWidth;return Math.round(C*(_.width-R)+R/2)}return 0}),f=i.computed(()=>{let C=`background: linear-gradient(${r.angle}deg, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`;return r.type==="radial"&&(C=`background: radial-gradient(circle, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`),C}),p=C=>{var _;if(r.startActive=!0,l.value&&a.value){const R=(_=l.value)==null?void 0:_.getBoundingClientRect();let B=C.clientX-R.left;B=Math.max(a.value.offsetWidth/2,B),B=Math.min(B,R.width-a.value.offsetWidth/2),r.startColorStop=Math.round((B-a.value.offsetWidth/2)/(R.width-a.value.offsetWidth)*100),t("update:startColorStop",r.startColorStop),t("startColorStopChange",r.startColorStop)}},h=C=>{var _;if(r.startActive=!1,l.value&&u.value){const R=(_=l.value)==null?void 0:_.getBoundingClientRect();let B=C.clientX-R.left;B=Math.max(u.value.offsetWidth/2,B),B=Math.min(B,R.width-u.value.offsetWidth/2),r.endColorStop=Math.round((B-u.value.offsetWidth/2)/(R.width-u.value.offsetWidth)*100),t("update:endColorStop",r.endColorStop),t("endColorStopChange",r.endColorStop)}},v=C=>{const _=C.target,R=parseInt(_.value.replace("°",""));isNaN(R)||(r.angle=R%360),t("update:angle",r.angle),t("angleChange",r.angle)},y=C=>{r.angle=C,t("update:angle",r.angle),t("angleChange",r.angle)},m=C=>{C==="advance"?(o.value=!0,t("advanceChange",!0)):(s.value.hex=C,t("advanceChange",!1)),k()},b=C=>{s.value.alpha=C,k()},g=C=>{s.value.hue=C,k()},S=(C,_)=>{s.value.saturation=C,s.value.brightness=_,k()},O=C=>{s.value.lightness=C,k()},E=()=>{k()},k=()=>{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)},V=()=>{r.type=r.type==="linear"?"radial":"linear",t("typeChange",r.type)},j=po(Bo,[],{}),N=Ee(()=>{if(e.disableHistory)return;const C=s.value.toRgbString();if(j.value=j.value.filter(_=>!x.equals(_,C)),!j.value.includes(C)){for(;j.value.length>Fo;)j.value.pop();j.value.unshift(C)}},500);return We(()=>{u.value&&a.value&&(Dt.triggerDragEvent(u.value,{drag:C=>{h(C)},end:C=>{h(C)}}),Dt.triggerDragEvent(a.value,{drag:C=>{p(C)},end:C=>{p(C)}}))}),J(()=>r.startColor,C=>{r.startColorRgba=C.toRgbString()},{deep:!0}),J(()=>r.endColor,C=>{r.endColorRgba=C.toRgbString()},{deep:!0}),J(()=>s.value,()=>{N()},{deep:!0}),{startGradientRef:a,stopGradientRef:u,colorRangeRef:l,state:r,currentColor:s,getStartColorLeft:d,getEndColorLeft:c,gradientBg:f,advancePanelShow:o,onDegreeBlur:v,onCompactChange:m,onAlphaChange:b,onHueChange:g,onBoardChange:S,onLightChange:O,historyColors:j,onBack:P,onDegreeChange:y,onDisplayChange:E,onTypeChange:V,lang:n==null?void 0:n.lang}}}),fu=e=>(i.pushScopeId("data-v-c4d6d6ea"),e=e(),i.popScopeId(),e),Rm={class:"vc-gradient-picker"},jm={class:"vc-gradient-picker__header"},Im={class:"vc-gradient__types"},Vm={class:"vc-gradient-wrap__types"},$m={class:"vc-picker-degree-input vc-degree-input"},Bm={class:"vc-degree-input__control"},Fm=["value"],Mm={class:"vc-degree-input__panel"},qm={class:"vc-degree-input__disk"},Dm={class:"vc-gradient-picker__body"},Gm={class:"vc-color-range",ref:"colorRangeRef"},Lm={class:"vc-color-range__container"},Hm={class:"vc-gradient__stop__container"},Um=["title"],zm=fu(()=>i.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),Wm=[zm],Km=["title"],Ym=fu(()=>i.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),Xm=[Ym];function Jm(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"),v=i.resolveComponent("Display"),y=i.resolveComponent("History");return i.openBlock(),i.createElementBlock("div",Rm,[i.createElementVNode("div",jm,[i.createElementVNode("div",null,[i.withDirectives(i.createElementVNode("div",{class:"back",style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...m)=>e.onBack&&e.onBack(...m))},null,512),[[i.vShow,e.pickerType==="fk"&&e.advancePanelShow]])]),i.createElementVNode("div",Im,[i.createElementVNode("div",Vm,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(["linear","radial"],m=>i.createElementVNode("div",{class:i.normalizeClass(["vc-gradient__type",{active:e.state.type===m}]),key:m,onClick:t[1]||(t[1]=(...b)=>e.onTypeChange&&e.onTypeChange(...b))},i.toDisplayString(e.lang?e.lang[m]:m),3)),64))]),i.withDirectives(i.createElementVNode("div",$m,[i.createElementVNode("div",Bm,[i.createElementVNode("input",{value:e.state.angle,onBlur:t[2]||(t[2]=(...m)=>e.onDegreeBlur&&e.onDegreeBlur(...m))},null,40,Fm),i.createTextVNode("deg ")]),i.createElementVNode("div",Mm,[i.createElementVNode("div",qm,[i.createVNode(s,{angle:e.state.angle,"onUpdate:angle":t[3]||(t[3]=m=>e.state.angle=m),size:40,onChange:e.onDegreeChange},null,8,["angle","onChange"])])])],512),[[i.vShow,e.state.type==="linear"]])])]),i.createElementVNode("div",Dm,[i.createElementVNode("div",Gm,[i.createElementVNode("div",Lm,[i.createElementVNode("div",{class:"vc-background",style:i.normalizeStyle(e.gradientBg)},null,4),i.createElementVNode("div",Hm,[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})},Wm,14,Um),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})},Xm,14,Km)])])],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(v,{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(y,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])}const Cl=pe(Pm,[["render",Jm],["__scopeId","data-v-c4d6d6ea"]]),Zm=i.defineComponent({name:"WrapContainer",props:{theme:A.oneOf(["white","black"]).def("white"),showTab:A.bool.def(!1),activeKey:A.oneOf(["pure","gradient"]).def("pure")},emits:["update:activeKey","change"],setup(e,{emit:t}){const r=i.reactive({activeKey:e.activeKey}),n=i.inject(Uo),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}}}),Qm={class:"vc-colorpicker--container"},ey={key:0,class:"vc-colorpicker--tabs"},ty={class:"vc-colorpicker--tabs__inner"},ry={class:"vc-btn__content"},ny={class:"vc-btn__content"};function oy(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",Qm,[e.showTab?(i.openBlock(),i.createElementBlock("div",ey,[i.createElementVNode("div",ty,[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",ry,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",ny,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 ay=pe(Zm,[["render",oy],["__scopeId","data-v-0492277d"]]),iy={start:"Start",end:"End",pure:"Pure",gradient:"Gradient",linear:"linear",radial:"radial"},ly={start:"开始",end:"结束",pure:"纯色",gradient:"渐变",linear:"线性",radial:"径向"},sy={En:iy,"ZH-cn":ly},uy={isWidget:A.bool.def(!1),pickerType:A.oneOf(["fk","chrome"]).def("fk"),shape:A.oneOf(["circle","square"]).def("square"),pureColor:{type:[String,Object],default:"#000000"},gradientColor:A.string.def("linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),format:{type:String,default:"rgb"},disableAlpha:A.bool.def(!1),disableHistory:A.bool.def(!1),roundHistory:A.bool.def(!1),useType:A.oneOf(["pure","gradient","both"]).def("pure"),activeKey:A.oneOf(["pure","gradient"]).def("pure"),lang:{type:String,default:"ZH-cn"},zIndex:A.number.def(9999),pickerContainer:{type:[String,HTMLElement],default:"body"},debounce:A.number.def(100),theme:A.oneOf(["white","black"]).def("white"),blurClose:A.bool.def(!1),defaultPopup:A.bool.def(!1)},cy=i.defineComponent({name:"ColorPicker",components:{FkColorPicker:yl,ChromeColorPicker:bl,GradientColorPicker:Cl,WrapContainer:ay},inheritAttrs:!1,props:uy,emits:["update:pureColor","pureColorChange","update:gradientColor","gradientColorChange","update:activeKey","activeKeyChange"],setup(e,{emit:t}){i.provide(Uo,{lang:i.computed(()=>sy[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})),v=i.computed(()=>n.activeKey==="gradient"?Cl.name:e.pickerType==="fk"?yl.name:bl.name),y=C=>{n.isAdvanceMode=C},m=i.computed(()=>{const C={disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,pickerType:e.pickerType};return n.activeKey==="gradient"?{...C,startColor:l.startColor,endColor:l.endColor,angle:l.angle,type:l.type,startColorStop:l.startColorStop,endColorStop:l.endColorStop,onStartColorChange:_=>{l.startColor=_,E()},onEndColorChange:_=>{l.endColor=_,E()},onStartColorStopChange:_=>{l.startColorStop=_,E()},onEndColorStopChange:_=>{l.endColorStop=_,E()},onAngleChange:_=>{l.angle=_,E()},onTypeChange:_=>{l.type=_,E()},onAdvanceChange:y}:{...C,disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,color:s.value,onChange:V,onAdvanceChange:y}}),b=()=>{d.value=!0,p?p.update():P()},g=()=>{d.value=!1},S=Ee(()=>{!e.isWidget&&e.blurClose&&g()},100);_d(f,()=>{g()});const O=()=>{var C,_,R,B;try{const[$]=xa.parse(l.gradientColor);if($&&$.type.includes("gradient")&&$.colorStops.length>=2){const q=$.colorStops[0],Y=$.colorStops[1];l.startColorStop=Number((C=q.length)==null?void 0:C.value)||0,l.endColorStop=Number((_=Y.length)==null?void 0:_.value)||0,$.type==="linear-gradient"&&((R=$.orientation)==null?void 0:R.type)==="angular"&&(l.angle=Number((B=$.orientation)==null?void 0:B.value)||0),l.type=$.type.split("-")[0];const[T,I,F,ee]=q.value,[me,Qe,Ae,ye]=Y.value;l.startColor=new L({r:Number(T),g:Number(I),b:Number(F),a:Number(ee)}),l.endColor=new L({r:Number(me),g:Number(Qe),b:Number(Ae),a:Number(ye)})}}catch($){console.log(`[Parse Color]: ${$}`)}},E=Ee(()=>{const C=k();try{l.gradientColor=xa.stringify(C),t("update:gradientColor",l.gradientColor),t("gradientColorChange",l.gradientColor)}catch(_){console.log(_)}},e.debounce),k=()=>{const C=[],_=l.startColor.RGB.map($=>$.toString()),R=l.endColor.RGB.map($=>$.toString()),B=[{type:"rgba",value:[_[0],_[1],_[2],_[3]],length:{value:l.startColorStop+"",type:"%"}},{type:"rgba",value:[R[0],R[1],R[2],R[3]],length:{value:l.endColorStop+"",type:"%"}}];return l.type==="linear"?C.push({type:"linear-gradient",orientation:{type:"angular",value:l.angle+""},colorStops:B}):l.type==="radial"&&C.push({type:"radial-gradient",orientation:[{type:"shape",value:"circle"}],colorStops:B}),C},P=()=>{c.value&&f.value&&(p=pp(c.value,f.value,{placement:"auto",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{allowedAutoPlacements:["top","bottom","left","right"],rootBoundary:"viewport"}}]}))},V=C=>{s.value=C,n.pureColor=C.toString(e.format),j()},j=Ee(()=>{t("update:pureColor",n.pureColor),t("pureColorChange",n.pureColor)},e.debounce),N=C=>{n.activeKey=C,t("update:activeKey",C),t("activeKeyChange",C)};return We(()=>{O(),p||P()}),J(()=>e.gradientColor,C=>{C!=l.gradientColor&&(l.gradientColor=C)}),J(()=>l.gradientColor,()=>{O()}),J(()=>e.activeKey,C=>{n.activeKey=C}),J(()=>e.useType,C=>{n.activeKey!=="gradient"&&C==="gradient"?n.activeKey="gradient":n.activeKey="pure"}),J(()=>e.pureColor,C=>{x.equals(C,n.pureColor)||(n.pureColor=C,s.value=new L(C))},{deep:!0}),{colorCubeRef:c,pickerRef:f,showPicker:d,colorInstance:s,getBgColorStyle:h,getComponentName:v,getBindArgs:m,state:n,hasExtra:r,onColorChange:V,onShowPicker:b,onActiveKeyChange:N,onAutoClose:S}}}),dy={key:0,class:"vc-color-extra"},fy={key:0,class:"vc-color-extra"};function py(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",dy,[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",fy,[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 hy=pe(cy,[["render",py],["__scopeId","data-v-354ca836"]]),vy={install(e){e.use(gc),e.use(mc),e.use(wc),e.use(xc),e.use(_c),e.use(Nc),e.use(Rc),e.use(Vc),e.use(Fc),e.use(Hc),e.use(Wc),e.use(Kc),e.use(Xc),e.use(ed),e.use(rd),e.use(id),e.use(ld),e.use(sd),e.use(yc),e.use(nd),e.use(Yc),e.use(Jc),e.use(Tc),e.component("ColorPicker",hy)}},wl=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:[mt.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])}}),gy={install(e){e.component(wl.name,wl)}};function my(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Sl=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"},my(n)?n:{default:()=>[n]})}});function yy(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Ol=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},yy(e=this.model.children.map(t=>this.renderContainer(t)))?e:{default:()=>[e]})}});class by{constructor(){M(this,"component","gct-form-item")}createController(t,r){return w.useFormItemController(()=>new w.FormItemController(t,r))}}class Cy{constructor(){M(this,"component","gct-form-hidden-item")}createController(t,r){return w.useFormItemController(()=>new w.FormHiddenItemController(t,r))}}class wy{constructor(){M(this,"component","gct-form-collapse-pane")}createController(t,r){return w.useFormItemController(()=>new w.FormCollapsePaneController(t,r))}}function xl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const El=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},xl(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return i.createVNode(i.resolveComponent("grid-container"),{layout:e.model.grid},xl(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)])}}),Sy={install(e){_gct.register.formItem.register("collapse-pane",()=>new wy),e.component(El.name,El)}};class Oy{constructor(){M(this,"component","gct-form-collapse")}createController(t,r){return w.useFormItemController(()=>new w.FormCollapseController(t,r))}}const kl=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(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":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(qe.Collapse.Panel,{key:o.name,header:o.title,collapsible:l},{default:()=>[e[a]]})})]}})}}),xy={install(e){_gct.register.formItem.register("collapse",()=>new Oy),e.component(kl.name,kl)}};class Ey{constructor(){M(this,"component","gct-form-group")}createController(t,r){return w.useFormItemController(()=>new w.FormGroupController(t,r))}}function Yn(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const _l=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},Yn(a)?a:{default:()=>[a]});if(e.model.layout==="grid")return i.createVNode(i.resolveComponent("grid-container"),{layout:e.model.grid},Yn(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},Yn(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)])])}}),ky={install(e){_gct.register.formItem.register("container",()=>new Ey),e.component(_l.name,_l)}};class _y{constructor(){M(this,"component","gct-form-tab")}createController(t,r){return w.useFormItemController(()=>new w.FormTabController(t,r))}}const Nl=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]]}))]}})}}),Ny={install(e){_gct.register.formItem.register("tab",()=>new _y),e.component(Nl.name,Nl)}};class Ty{constructor(){M(this,"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]"&&!i.isVNode(e)}const Al=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},Tl(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return i.createVNode(i.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(){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)])}}),Ay={install(e){_gct.register.formItem.register("tab-pane",()=>new Ty),e.component(Al.name,Al)}};class Py{constructor(){M(this,"component","gct-form-title-group")}createController(t,r){return w.useFormItemController(()=>new w.FormGroupController(t,r))}}function Pl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Rl=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},Pl(a)?a:{default:()=>[a]});if(e.model.layout==="grid")return i.createVNode(i.resolveComponent("grid-container"),{layout:e.model.grid},Pl(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)])])}}),Ry={install(e){_gct.register.formItem.register(w.FormContainerType.FORM_TITLE_GROUP,()=>new Py),e.component(Rl.name,Rl)}},jy={install(e){_gct.register.formItem.register("item",()=>new by),_gct.register.formItem.register("hidden",()=>new Cy),e.use(Sy),e.use(xy),e.use(ky),e.use(Ny),e.use(Ay),e.use(Ry),e.component(Ol.name,Ol),e.component(Sl.name,Sl)}},Iy={install(e){e.use(vy),e.use(gy),e.use(jy),e.component(Xn.name,Xn),e.component(la.name,la),e.component(Jn.name,Jn),e.component(ua.name,ua),e.component(ca.name,ca)}};exports.CodeEditor=Xn;exports.default=Iy;
15
+ `))),l}}:{type:r})}function Rp(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
+ `+kr(r)),n}})}function jp(e){return ie("instanceOf",{type:e})}function Ip(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
+ `+kr(r)),n}})}function Vp(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
+ `+kr(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(ft(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(Mt(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var d,c=s.type;return dr(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 Cp()}},{key:"func",get:function(){return wp().def(this.defaults.func)}},{key:"bool",get:function(){return Sp().def(this.defaults.bool)}},{key:"string",get:function(){return Op().def(this.defaults.string)}},{key:"number",get:function(){return xp().def(this.defaults.number)}},{key:"array",get:function(){return Ep().def(this.defaults.array)}},{key:"object",get:function(){return kp().def(this.defaults.object)}},{key:"integer",get:function(){return _p().def(this.defaults.integer)}},{key:"symbol",get:function(){return Tp()}}]),e})();function $p(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 ir({},this.defaults)},set:function(o){this.defaults=o!==!1?ir({},o!==!0?o:e):{}}}]),n})(be)).defaults=ir({},e),t}be.defaults={},be.custom=Np,be.oneOf=Ap,be.instanceOf=jp,be.oneOfType=Pp,be.arrayOf=Rp,be.objectOf=Ip,be.shape=Vp,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 A=(function(e){function t(){return e.apply(this,arguments)||this}return ys(t,e),t})($p()),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 Ut(){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 $e(){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 Bp(){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 Fp(){if(za)return zr;za=1;var e=Bp(),t=Object;return zr=function(r){return t(e(r))},zr}var Wr,Wa;function _r(){if(Wa)return Wr;Wa=1;var e=Ut(),t=Fp(),r=e({}.hasOwnProperty);return Wr=Object.hasOwn||function(o,a){return r(t(o),a)},Wr}var Kr,Ka;function Mp(){if(Ka)return Kr;Ka=1;var e=Xe(),t=_r(),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 qp(){return Ya||(Ya=1,Xr=!1),Xr}var Ot,Xa;function ge(){if(Xa)return Ot;Xa=1;var e=function(t){return t&&t.Math===Math&&t};return Ot=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof Oa=="object"&&Oa)||e(typeof Ot=="object"&&Ot)||(function(){return this})()||Function("return this")(),Ot}var Jr,Ja;function Dp(){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=qp(),t=ge(),r=Dp(),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 Gp(){if(Qa)return Zr;Qa=1;var e=Ut(),t=$e(),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 Lp(){if(ei)return Qr;ei=1;var e=ge(),t=$e(),r=e.WeakMap;return Qr=t(r)&&/native code/.test(String(r)),Qr}var en,ti;function zt(){if(ti)return en;ti=1;var e=$e();return en=function(t){return typeof t=="object"?t!==null:e(t)},en}var tn={},rn,ri;function Hp(){if(ri)return rn;ri=1;var e=ge(),t=zt(),r=e.document,n=t(r)&&t(r.createElement);return rn=function(o){return n?r.createElement(o):{}},rn}var nn,ni;function Up(){if(ni)return nn;ni=1;var e=Xe(),t=Ye(),r=Hp();return nn=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),nn}var on,oi;function zp(){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=zt(),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 Wp(){if(li)return sn;li=1;var e=ge(),t=$e(),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 Kp(){if(si)return un;si=1;var e=Ut();return un=e({}.isPrototypeOf),un}var cn,ui;function Yp(){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 Xp(){if(ci)return dn;ci=1;var e=ge(),t=Yp(),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=Xp(),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 Ps(){if(pi)return hn;pi=1;var e=Wp(),t=$e(),r=Kp(),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 Jp(){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 Zp(){if(vi)return gn;vi=1;var e=$e(),t=Jp(),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 Qp(){if(gi)return mn;gi=1;var e=Zp(),t=ks();return mn=function(r,n){var o=r[n];return t(o)?void 0:e(o)},mn}var yn,mi;function eh(){if(mi)return yn;mi=1;var e=Ts(),t=$e(),r=zt(),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 Rs(){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=Ut(),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 th(){if(Ci)return wn;Ci=1;var e=ge(),t=Rs(),r=_r(),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 rh(){if(wi)return Sn;wi=1;var e=Ts(),t=zt(),r=Ps(),n=Qp(),o=eh(),a=th(),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 nh(){if(Si)return On;Si=1;var e=rh(),t=Ps();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=Up(),r=zp(),n=_s(),o=nh(),a=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s="enumerable",d="configurable",c="writable";return tn.f=e?r?function(p,h,g){if(n(p),h=o(h),n(g),typeof p=="function"&&h==="prototype"&&"value"in g&&c in g&&!g[c]){var y=l(p,h);y&&y[c]&&(p[h]=g.value,g={configurable:d in g?g[d]:y[d],enumerable:s in g?g[s]:y[s],writable:!1})}return u(p,h,g)}:u:function(p,h,g){if(n(p),h=o(h),n(g),t)try{return u(p,h,g)}catch{}if("get"in g||"set"in g)throw new a("Accessors not supported");return"value"in g&&(p[h]=g.value),p},tn}var xn,xi;function oh(){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 ah(){if(Ei)return En;Ei=1;var e=Xe(),t=Is(),r=oh();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 ih(){if(ki)return kn;ki=1;var e=Rs(),t=js(),r=e("keys");return kn=function(n){return r[n]||(r[n]=t(n))},kn}var _n,_i;function lh(){return _i||(_i=1,_n={}),_n}var Tn,Ti;function sh(){if(Ti)return Tn;Ti=1;var e=Lp(),t=ge(),r=zt(),n=ah(),o=_r(),a=Oo(),u=ih(),l=lh(),s="Object already initialized",d=t.TypeError,c=t.WeakMap,f,p,h,g=function(v){return h(v)?p(v):f(v,{})},y=function(v){return function(S){var O;if(!r(S)||(O=p(S)).type!==v)throw new d("Incompatible receiver, "+v+" required");return O}};if(e||a.state){var m=a.state||(a.state=new c);m.get=m.get,m.has=m.has,m.set=m.set,f=function(v,S){if(m.has(v))throw new d(s);return S.facade=v,m.set(v,S),S},p=function(v){return m.get(v)||{}},h=function(v){return m.has(v)}}else{var b=u("state");l[b]=!0,f=function(v,S){if(o(v,b))throw new d(s);return S.facade=v,n(v,b,S),S},p=function(v){return o(v,b)?v[b]:{}},h=function(v){return o(v,b)}}return Tn={set:f,get:p,has:h,enforce:g,getterFor:y},Tn}var Ni;function uh(){if(Ni)return qr.exports;Ni=1;var e=Ut(),t=Ye(),r=$e(),n=_r(),o=Xe(),a=Mp().CONFIGURABLE,u=Gp(),l=sh(),s=l.enforce,d=l.get,c=String,f=Object.defineProperty,p=e("".slice),h=e("".replace),g=e([].join),y=o&&!t(function(){return f(function(){},"length",{value:8}).length!==8}),m=String(String).split("String"),b=qr.exports=function(v,S,O){p(c(S),0,7)==="Symbol("&&(S="["+h(c(S),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),O&&O.getter&&(S="get "+S),O&&O.setter&&(S="set "+S),(!n(v,"name")||a&&v.name!==S)&&(o?f(v,"name",{value:S,configurable:!0}):v.name=S),y&&O&&n(O,"arity")&&v.length!==O.arity&&f(v,"length",{value:O.arity});try{O&&n(O,"constructor")&&O.constructor?o&&f(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var E=s(v);return n(E,"source")||(E.source=g(m,typeof S=="string"?S:"")),v};return Function.prototype.toString=b(function(){return r(this)&&d(this).source||u(this)},"toString"),qr.exports}var Nn,Ai;function ch(){if(Ai)return Nn;Ai=1;var e=uh(),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,Pi;function dh(){if(Pi)return An;Pi=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 Pn,Ri;function fh(){if(Ri)return Pn;Ri=1;var e=_s();return Pn=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},Pn}var ji;function ph(){if(ji)return Fa;ji=1;var e=Xe(),t=ch(),r=dh(),n=fh();return e&&!r.correct&&(t(RegExp.prototype,"flags",{configurable:!0,get:n}),r.correct=!0),Fa}ph();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 rr=function(e){return e&&e.Math==Math&&e},W=rr(typeof globalThis=="object"&&globalThis)||rr(typeof window=="object"&&window)||rr(typeof self=="object"&&self)||rr(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,hh={f:$i&&!Vi.call({1:2},1)?function(e){var t=$i(this,e);return!!t&&t.enumerable}:Vi},Tr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},vh={}.toString,ke=function(e){return vh.call(e).slice(8,-1)},gh="".split,Nr=D(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return ke(e)=="String"?gh.call(e,""):Object(e)}:Object,Re=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},yt=function(e){return Nr(Re(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")},mh={}.hasOwnProperty,z=function(e,t){return mh.call(e,t)},oo=W.document,yh=K(oo)&&K(oo.createElement),Vs=function(e){return yh?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=yt(e),t=Eo(t,!0),$s)try{return Bi(e,t)}catch{}if(z(e,t))return Tr(!hh.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,Te={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 Te.f(e,t,Tr(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__",{}),bh=Function.toString;typeof ze.inspectSource!="function"&&(ze.inspectSource=function(e){return bh.call(e)});var fr,jt,pr,Bs=ze.inspectSource,Mi=W.WeakMap,Ch=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)"})}),wh=0,Sh=Math.random(),To=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++wh+Sh).toString(36)},qi=Fs("keys"),No=function(e){return qi[e]||(qi[e]=To(e))},Ar={},Oh=W.WeakMap;if(Ch){var et=ze.state||(ze.state=new Oh),xh=et.get,Eh=et.has,kh=et.set;fr=function(e,t){return t.facade=e,kh.call(et,e,t),t},jt=function(e){return xh.call(et,e)||{}},pr=function(e){return Eh.call(et,e)}}else{var xt=No("state");Ar[xt]=!0,fr=function(e,t){return t.facade=e,ce(e,xt,t),t},jt=function(e){return z(e,xt)?e[xt]:{}},pr=function(e){return z(e,xt)}}var je={set:fr,get:jt,has:pr,enforce:function(e){return pr(e)?jt(e):fr(e,{})},getterFor:function(e){return function(t){var r;if(!K(t)||(r=jt(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},Ie=xo(function(e){var t=je.get,r=je.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)})}),Rn=W,Di=function(e){return typeof e=="function"?e:void 0},Pr=function(e,t){return arguments.length<2?Di(Rn[e])||Di(W[e]):Rn[e]&&Rn[e][t]||W[e]&&W[e][t]},_h=Math.ceil,Th=Math.floor,bt=function(e){return isNaN(e=+e)?0:(e>0?Th:_h)(e)},Nh=Math.min,le=function(e){return e>0?Nh(bt(e),9007199254740991):0},Ah=Math.max,Ph=Math.min,hr=function(e,t){var r=bt(e);return r<0?Ah(r+t,0):Ph(r,t)},Rh=function(e){return function(t,r,n){var o,a=yt(t),u=le(a.length),l=hr(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:Rh(!1)},jh=Ms.indexOf,qs=function(e,t){var r,n=yt(e),o=0,a=[];for(r in n)!z(Ar,r)&&z(n,r)&&a.push(r);for(;t.length>o;)z(n,r=t[o++])&&(~jh(a,r)||a.push(r));return a},vr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ih=vr.concat("length","prototype"),Vh={f:Object.getOwnPropertyNames||function(e){return qs(e,Ih)}},$h={f:Object.getOwnPropertySymbols},Bh=Pr("Reflect","ownKeys")||function(e){var t=Vh.f(Q(e)),r=$h.f;return r?t.concat(r(e)):t},Fh=function(e,t){for(var r=Bh(t),n=Te.f,o=ko.f,a=0;a<r.length;a++){var u=r[a];z(e,u)||n(e,u,o(t,u))}},Mh=/#|\.prototype\./,Wt=function(e,t){var r=Dh[qh(e)];return r==Lh||r!=Gh&&(typeof t=="function"?D(t):!!t)},qh=Wt.normalize=function(e){return String(e).replace(Mh,".").toLowerCase()},Dh=Wt.data={},Gh=Wt.NATIVE="N",Lh=Wt.POLYFILL="P",ao=Wt,Hh=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=Hh(r,n))&&u.value:r[n],!ao(s?n:l+(d?".":"#")+n,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;Fh(a,o)}(e.sham||o&&o.sham)&&ce(a,"sham",!0),Ie(r,n,a,e)}},Ao=function(e,t){var r=[][e];return!!r&&D(function(){r.call(null,t||function(){throw 1},1)})},Uh=Object.defineProperty,jn={},Gi=function(e){throw e},Ct=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?Uh(u,1,{enumerable:!0,get:Gi}):u[1]=1,r.call(u,o,a)})},zh=Ms.indexOf,Ds=[].indexOf,Li=!!Ds&&1/[1].indexOf(1,-0)<0,Wh=Ao("indexOf"),Kh=Ct("indexOf",{ACCESSORS:!0,1:0});function Je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yh(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&&Yh(e,r),e}Z({target:"Array",proto:!0,forced:Li||!Wh||!Kh},{indexOf:function(e){return Li?Ds.apply(this,arguments)||0:zh(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 Xh=[].join,Jh=Nr!=Object,Zh=Ao("join",",");Z({target:"Array",proto:!0,forced:Jh||!Zh},{join:function(e){return Xh.call(yt(this),e===void 0?",":e)}});var tt,gr,Ne=function(e){return Object(Re(e))},ht=Array.isArray||function(e){return ke(e)=="Array"},Gs=!!Object.getOwnPropertySymbols&&!D(function(){return!String(Symbol())}),Qh=Gs&&!Symbol.sham&&typeof Symbol.iterator=="symbol",nr=Fs("wks"),It=W.Symbol,ev=Qh?It:It&&It.withoutSetter||To,H=function(e){return z(nr,e)||(Gs&&z(It,e)?nr[e]=It[e]:nr[e]=ev("Symbol."+e)),nr[e]},tv=H("species"),Rr=function(e,t){var r;return ht(e)&&(typeof(r=e.constructor)!="function"||r!==Array&&!ht(r.prototype)?K(r)&&(r=r[tv])===null&&(r=void 0):r=void 0),new(r===void 0?Array:r)(t===0?0:t)},vt=function(e,t,r){var n=Eo(t);n in e?Te.f(e,n,Tr(0,r)):e[n]=r},In=Pr("navigator","userAgent")||"",Hi=W.process,Ui=Hi&&Hi.versions,zi=Ui&&Ui.v8;zi?gr=(tt=zi.split("."))[0]+tt[1]:In&&(!(tt=In.match(/Edge\/(\d+)/))||tt[1]>=74)&&(tt=In.match(/Chrome\/(\d+)/))&&(gr=tt[1]);var mr=gr&&+gr,rv=H("species"),Po=function(e){return mr>=51||!D(function(){var t=[];return(t.constructor={})[rv]=function(){return{foo:1}},t[e](Boolean).foo!==1})},nv=Po("splice"),ov=Ct("splice",{ACCESSORS:!0,0:0,1:2}),av=Math.max,iv=Math.min;Z({target:"Array",proto:!0,forced:!nv||!ov},{splice:function(e,t){var r,n,o,a,u,l,s=Ne(this),d=le(s.length),c=hr(e,d),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=d-c):(r=f-2,n=iv(av(bt(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&&vt(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 Ro=String(Ls)==="[object z]",lv=H("toStringTag"),sv=ke((function(){return arguments})())=="Arguments",Hs=Ro?ke: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),lv))=="string"?r:sv?ke(t):(n=ke(t))=="Object"&&typeof t.callee=="function"?"Arguments":n},uv=Ro?{}.toString:function(){return"[object "+Hs(this)+"]"};Ro||Ie(Object.prototype,"toString",uv,{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})},yr=RegExp.prototype.exec,cv=String.prototype.replace,zs=yr,Bn=(Vn=/a/,$n=/b*/g,yr.call(Vn,"a"),yr.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=yr.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&&cv.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(n[o]=void 0)}),n});var qt=zs;Z({target:"RegExp",proto:!0,forced:/./.exec!==qt},{exec:qt});var Ws=RegExp.prototype,Ks=Ws.toString,dv=D(function(){return Ks.call({source:"a",flags:"b"})!="/a/b"}),fv=Ks.name!="toString";(dv||fv)&&Ie(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 pv=H("species"),hv=!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")==="",vv=!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[pv]=function(){return p},p.flags="",p[o]=/./[o]),p.exec=function(){return f=!0,null},p[o](""),!f});if(!a||!u||e==="replace"&&(!hv||!Xi||Zi)||e==="split"&&!vv){var l=/./[o],s=r(o,""[e],function(f,p,h,g,y){return p.exec===qt?a&&!y?{done:!0,value:l.call(p,h,g)}:{done:!0,value:f.call(h,p,g)}:{done:!1}},{REPLACE_KEEPS_$0:Xi,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Zi}),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&&ce(RegExp.prototype[o],"sham",!0)},gv=H("match"),Xs=function(e){var t;return K(e)&&((t=e[gv])!==void 0?!!t:ke(e)=="RegExp")},jo=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},mv=H("species"),yv=function(e){return function(t,r){var n,o,a=String(Re(t)),u=bt(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:yv(!0)},bv=Js.charAt,Zs=function(e,t,r){return t+(r?bv(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(ke(e)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return qt.call(e,t)},Cv=[].push,wv=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(Re(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,g=new RegExp(o.source,p+"g");(s=qt.call(g,u))&&!((d=g.lastIndex)>h&&(f.push(u.slice(h,s.index)),s.length>1&&s.index<u.length&&Cv.apply(f,s.slice(1)),c=s[0].length,h=d,f.length>=l));)g.lastIndex===s.index&&g.lastIndex++;return h===u.length?!c&&g.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=Re(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,E){var k,P=Q(O).constructor;return P===void 0||(k=Q(P)[mv])==null?E:jo(k)})(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 g=0,y=0,m=[];y<s.length;){p.lastIndex=rt?y:0;var b,v=io(p,rt?s:s.slice(y));if(v===null||(b=wv(le(p.lastIndex+(rt?0:y)),s.length))===g)y=Zs(s,y,c);else{if(m.push(s.slice(g,y)),m.length===h)return m;for(var S=1;S<=v.length-1;S++)if(m.push(v[S]),m.length===h)return m;y=g=b}}return m.push(s.slice(g)),m}]},!rt);var lo=`
20
+ \v\f\r                 \u2028\u2029\uFEFF`,br="["+lo+"]",Sv=RegExp("^"+br+br+"*"),Ov=RegExp(br+br+"*$"),xv=function(e){return function(t){var r=String(Re(t));return 1&e&&(r=r.replace(Sv,"")),2&e&&(r=r.replace(Ov,"")),r}},Ev={trim:xv(3)},kv=Ev.trim;Z({target:"String",proto:!0,forced:(function(e){return D(function(){return!!lo[e]()||"​…᠎"[e]()!="​…᠎"||lo[e].name!==e})})("trim")},{trim:function(){return kv(this)}});var _v=Po("slice"),Tv=Ct("slice",{ACCESSORS:!0,0:0,1:2}),Nv=H("species"),Av=[].slice,Pv=Math.max;Z({target:"Array",proto:!0,forced:!_v||!Tv},{slice:function(e,t){var r,n,o,a=yt(this),u=le(a.length),l=hr(e,u),s=hr(t===void 0?u:t,u);if(ht(a)&&(typeof(r=a.constructor)!="function"||r!==Array&&!ht(r.prototype)?K(r)&&(r=r[Nv])===null&&(r=void 0):r=void 0,r===Array||r===void 0))return Av.call(a,l,s);for(n=new(r===void 0?Array:r)(Pv(s-l,0)),o=0;l<s;l++,o++)l in a&&vt(n,o,a[l]);return n.length=o,n}});var Io=Object.keys||function(e){return qs(e,vr)},Rv=D(function(){Io(1)});Z({target:"Object",stat:!0,forced:Rv},{keys:function(e){return Io(Ne(e))}});var Mn,jv=function(e){if(Xs(e))throw TypeError("The method doesn't accept regular expressions");return e},Iv=H("match"),Vv=ko.f,Qi="".startsWith,$v=Math.min,Qs=(function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Iv]=!1,"/./"[e](t)}catch{}}return!1})("startsWith"),Bv=!(Qs||(Mn=Vv(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:!Bv&&!Qs},{startsWith:function(e){var t=String(Re(this));jv(e);var r=le($v(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"},Dt=(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})(),Fv=Math.floor,Mv="".replace,qv=/\$([$&'`]|\d\d?|<[^>]*>)/g,Dv=/\$([$&'`]|\d\d?)/g,Gv=function(e,t,r,n,o,a){var u=r+e.length,l=n.length,s=Dv;return o!==void 0&&(o=Ne(o),s=qv),Mv.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=Fv(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})},Lv=Math.max,Hv=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=Re(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 g=c.unicode;c.lastIndex=0}for(var y=[];;){var m=io(c,f);if(m===null||(y.push(m),!h))break;String(m[0])===""&&(c.lastIndex=Zs(f,le(c.lastIndex),g))}for(var b,v="",S=0,O=0;O<y.length;O++){m=y[O];for(var E=String(m[0]),k=Lv(Hv(bt(m.index),f.length),0),P=[],V=1;V<m.length;V++)P.push((b=m[V])===void 0?b:String(b));var j=m.groups;if(p){var T=[E].concat(P,k,f);j!==void 0&&T.push(j);var C=String(s.apply(void 0,T))}else C=Gv(E,f,k,P,j,s);k>=S&&(v+=f.slice(S,k)+C,S=k+E.length)}return v+f.slice(S)}]});(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"),Uv=mr>=51||!D(function(){var e=[];return e[tu]=!1,e.concat()[0]!==e}),zv=Po("concat"),Wv=function(e){if(!K(e))return!1;var t=e[tu];return t!==void 0?!!t:ht(e)};Z({target:"Array",proto:!0,forced:!Uv||!zv},{concat:function(e){var t,r,n,o,a,u=Ne(this),l=Rr(u,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(Wv(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&&vt(l,s,a[r])}else{if(s>=9007199254740991)throw TypeError("Maximum allowed index exceeded");vt(l,s++,a)}return l.length=s,l}});var qn,Kt=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,g=Ne(s),y=Nr(g),m=Kt(d,c,3),b=le(y.length),v=0,S=f||Rr,O=t?S(s,b):r||u?S(s,0):void 0;b>v;v++)if((l||v in y)&&(h=m(p=y[v],v,g),e))if(t)O[v]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return v;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)},Kv=se?Object.defineProperties:function(e,t){Q(e);for(var r,n=Io(t),o=n.length,a=0;o>a;)Te.f(e,r=n[a++],t[r]);return e},Yv=Pr("document","documentElement"),nu=No("IE_PROTO"),Dn=function(){},rl=function(e){return"<script>"+e+"<\/script>"},lr=function(){try{qn=document.domain&&new ActiveXObject("htmlfile")}catch{}var e,t;lr=qn?(function(n){n.write(rl("")),n.close();var o=n.parentWindow.Object;return n=null,o})(qn):((t=Vs("iframe")).style.display="none",Yv.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(rl("document.F=Object")),e.close(),e.F);for(var r=vr.length;r--;)delete lr.prototype[vr[r]];return lr()};Ar[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=lr(),t===void 0?r:Kv(r,t)},so=H("unscopables"),uo=Array.prototype;uo[so]==null&&Te.f(uo,so,{configurable:!0,value:Vo(null)});var lt=function(e){uo[so][e]=!0},Xv=ru.find,nl=!0,Jv=Ct("find");"find"in[]&&Array(1).find(function(){nl=!1}),Z({target:"Array",proto:!0,forced:nl||!Jv},{find:function(e){return Xv(this,e,arguments.length>1?arguments[1]:void 0)}}),lt("find");var Zv=ru.findIndex,ol=!0,Qv=Ct("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){ol=!1}),Z({target:"Array",proto:!0,forced:ol||!Qv},{findIndex:function(e){return Zv(this,e,arguments.length>1?arguments[1]:void 0)}}),lt("findIndex");var ou=function(e,t,r,n,o,a,u,l){for(var s,d=o,c=0,f=!!u&&Kt(u,l,3);c<n;){if(c in r){if(s=f?f(r[c],c,t):r[c],a>0&&ht(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},eg=ou;Z({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Ne(this),r=le(t.length),n=Rr(t,0);return n.length=eg(n,t,t,r,0,e===void 0?1:bt(e)),n}});var co=function(e){var t=e.return;if(t!==void 0)return Q(t.call(e)).value},tg=function(e,t,r,n){try{return n?t(Q(r)[0],r[1]):t(r)}catch(o){throw co(e),o}},gt={},rg=H("iterator"),ng=Array.prototype,au=function(e){return e!==void 0&&(gt.Array===e||ng[rg]===e)},og=H("iterator"),iu=function(e){if(e!=null)return e[og]||e["@@iterator"]||gt[Hs(e)]},lu=H("iterator"),su=!1;try{var ag=0,al={next:function(){return{done:!!ag++}},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},ig=!uu(function(e){Array.from(e)});Z({target:"Array",stat:!0,forced:ig},{from:function(e){var t,r,n,o,a,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=iu(l),h=0;if(f&&(c=Kt(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],vt(r,h,u);else for(a=(o=p.call(l)).next,r=new s;!(n=a.call(o)).done;h++)u=f?tg(o,c,[n.value,h],!0):n.value,vt(r,h,u);return r.length=h,r}});var lg=function(e){return function(t,r,n,o){jo(r);var a=Ne(t),u=Nr(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}},sg={left:lg(!1)},ug=ke(W.process)=="process",cg=sg.left,dg=Ao("reduce"),fg=Ct("reduce",{1:0});Z({target:"Array",proto:!0,forced:!dg||!fg||!ug&&mr>79&&mr<83},{reduce:function(e){return cg(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}}),lt("flat");var Me,il,ll,pg=!D(function(){return Object.isExtensible(Object.preventExtensions({}))}),cu=xo(function(e){var t=Te.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 pg&&u.REQUIRED&&o(l)&&!z(l,r)&&a(l),l}};Ar[r]=!0}),Et=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),g=Kt(t,c,1+f+h),y=function(b){return n&&co(n),new Et(!0,b)},m=function(b){return f?(Q(b),h?g(b[0],b[1],y):g(b[0],b[1])):h?g(b,y):g(b)};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=m(e[a]))&&l instanceof Et)return l;return new Et(!1)}n=o.call(e)}for(s=n.next;!(d=s.call(n)).done;){try{l=m(d.value)}catch(b){throw co(n),b}if(typeof l=="object"&&l&&l instanceof Et)return l}return new Et(!1)},ul=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},hg=Te.f,cl=H("toStringTag"),fo=function(e,t,r){e&&!z(e=r?e:e.prototype,cl)&&hg(e,cl,{configurable:!0,value:t})},Cr=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)Ie(e,n,t[n],r);return e},vg=!D(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),fl=No("IE_PROTO"),gg=Object.prototype,wr=vg?Object.getPrototypeOf:function(e){return e=Ne(e),z(e,fl)?e[fl]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?gg:null},Gn=H("iterator"),du=!1;[].keys&&("next"in(ll=[].keys())?(il=wr(wr(ll)))!==Object.prototype&&(Me=il):du=!0),(Me==null||D(function(){var e={};return Me[Gn].call(e)!==e}))&&(Me={}),z(Me,Gn)||ce(Me,Gn,function(){return this});var $o={IteratorPrototype:Me,BUGGY_SAFARI_ITERATORS:du},mg=$o.IteratorPrototype,yg=function(){return this},Ln=$o.IteratorPrototype,or=$o.BUGGY_SAFARI_ITERATORS,kt=H("iterator"),bg=function(){return this},Bo=function(e,t,r,n,o,a,u){(function(b,v,S){var O=v+" Iterator";b.prototype=Vo(mg,{next:Tr(1,S)}),fo(b,O,!1),gt[O]=yg})(r,t,n);var l,s,d,c=function(b){if(b===o&&y)return y;if(!or&&b in h)return h[b];switch(b){case"keys":case"values":case"entries":return function(){return new r(this,b)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,h=e.prototype,g=h[kt]||h["@@iterator"]||o&&h[o],y=!or&&g||c(o),m=t=="Array"&&h.entries||g;if(m&&(l=wr(m.call(new e)),Ln!==Object.prototype&&l.next&&(wr(l)!==Ln&&(Cr?Cr(l,Ln):typeof l[kt]!="function"&&ce(l,kt,bg)),fo(l,f,!0))),o=="values"&&g&&g.name!=="values"&&(p=!0,y=function(){return g.call(this)}),h[kt]!==y&&ce(h,kt,y),gt[t]=y,o)if(s={values:c("values"),keys:a?y:c("keys"),entries:c("entries")},u)for(d in s)(or||p||!(d in h))&&Ie(h,d,s[d]);else Z({target:t,proto:!0,forced:or||p},s);return s},pl=H("species"),Cg=Te.f,hl=cu.fastKey,vl=je.set,Hn=je.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(m){var b=l[m];Ie(l,m,m=="add"?function(v){return b.call(this,v===0?0:v),this}:m=="delete"?function(v){return!(o&&!K(v))&&b.call(this,v===0?0:v)}:m=="get"?function(v){return o&&!K(v)?void 0:b.call(this,v===0?0:v)}:m=="has"?function(v){return!(o&&!K(v))&&b.call(this,v===0?0:v)}:function(v,S){return b.call(this,v===0?0:v,S),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)}),g=uu(function(m){new u(m)}),y=!o&&D(function(){for(var m=new u,b=5;b--;)m[a](b,b);return!m.has(-0)});g||((s=t(function(m,b){ul(m,s,e);var v=(function(S,O,E){var k,P;return Cr&&typeof(k=O.constructor)=="function"&&k!==E&&K(P=k.prototype)&&P!==E.prototype&&Cr(S,P),S})(new u,m,s);return b!=null&&sl(b,v[a],{that:v,AS_ENTRIES:n}),v})).prototype=l,l.constructor=s),(h||y)&&(c("delete"),c("has"),n&&c("get")),(y||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),g=l(s,d);return g?g.value=c:(h.last=g={index:p=hl(d,!0),key:d,value:c,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=g),f&&(f.next=g),se?h.size++:s.size++,p!=="F"&&(h.index[p]=g)),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=Kt(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&&Cg(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=Pr(u),s=Te.f;se&&l&&!l[pl]&&s(l,pl,{configurable:!0,get:function(){return this}})})(t)}});var wg=Js.charAt,Sg=je.set,Og=je.getterFor("String Iterator");Bo(String,"String",function(e){Sg(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=Og(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=wg(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},xg=je.set,Eg=je.getterFor("Array Iterator"),At=Bo(Array,"Array",function(e,t){xg(this,{type:"Array Iterator",target:yt(e),index:0,kind:t})},function(){var e=Eg(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");gt.Arguments=gt.Array,lt("keys"),lt("values"),lt("entries");var Un=H("iterator"),ml=H("toStringTag"),zn=At.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 At)if(xe[at]!==At[at])try{ce(xe,at,At[at])}catch{xe[at]=At[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 kg=Object.defineProperty,_g=(e,t,r)=>t in e?kg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,X=(e,t,r)=>(_g(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},Tg=i.defineComponent({name:"Alpha",props:{color:A.instanceOf(L),size:A.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,mt.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 g=f.clientX-p.left;g=Math.max(h/2,g),g=Math.min(g,p.width-h/2);const y=Math.round((g-h/2)/(p.width-h)*100);o.alpha=y,a.alpha=y,t("change",y)}};return We(()=>{const f={drag:p=>{c(p)},end:p=>{c(p)}};r.value&&n.value&&Dt.triggerDragEvent(r.value,f)}),{barElement:r,cursorElement:n,getCursorStyle:s,getBackgroundStyle:u,onClickSider:d}}}),Ng=e=>(i.pushScopeId("data-v-18925ba6"),e=e(),i.popScopeId(),e),Ag=Ng(()=>i.createElementVNode("div",{class:"vc-alpha-slider__bar-handle"},null,-1)),Pg=[Ag];function Rg(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)},Pg,6)],4)],2)}const qo=pe(Tg,[["render",Rg],["__scopeId","data-v-18925ba6"]]),jg=[["#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"]],Ig=i.defineComponent({name:"Palette",emits:["change"],setup(e,{emit:t}){return{palettes:jg,computedBgStyle:r=>r==="transparent"?r:r==="advance"?{}:{background:x(r).toRgbString()},onColorChange:r=>{t("change",r)}}}}),Vg={class:"vc-compact"},$g=["onClick"];function Bg(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",Vg,[(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,$g))),128))]))),128))])}const fu=pe(Ig,[["render",Bg],["__scopeId","data-v-b969fd48"]]),Fg=i.defineComponent({name:"Board",props:{color:A.instanceOf(L),round:A.bool.def(!1),hide:A.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 S=a.vnode.el;c.value=s.saturation*(S==null?void 0:S.clientWidth),d.value=(1-s.brightness)*(S==null?void 0:S.clientHeight)}};let g=!1;const y=S=>{g=!0,v(S)},m=S=>{g&&v(S)},b=()=>{g=!1},v=S=>{if(a){const O=a.vnode.el,E=O==null?void 0:O.getBoundingClientRect();let k=S.clientX-E.left,P=S.clientY-E.top;k=Kn(k,0,E.width),P=Kn(P,0,E.height);const V=k/E.width,j=Kn(-(P/E.height)+1,0,1);c.value=k,d.value=P,s.saturation=V,s.brightness=j,t("change",V,j)}};return We(()=>{a&&a.vnode.el&&f.value&&i.nextTick(()=>{h()})}),J(()=>e.color,S=>{mt.merge(s,{hueColor:new L({h:S.hue,s:1,v:1}).toHexString(),saturation:S.saturation,brightness:S.brightness}),h()},{deep:!0}),{state:s,cursorElement:f,getCursorStyle:p,onClickBoard:y,onDrag:m,onDragEnd:b}}}),Do=e=>(i.pushScopeId("data-v-7f0cdcdf"),e=e(),i.popScopeId(),e),Mg=Do(()=>i.createElementVNode("div",{class:"vc-saturation__white"},null,-1)),qg=Do(()=>i.createElementVNode("div",{class:"vc-saturation__black"},null,-1)),Dg=Do(()=>i.createElementVNode("div",null,null,-1)),Gg=[Dg];function Lg(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))},[Mg,qg,i.createElementVNode("div",{class:"vc-saturation__cursor",ref:"cursorElement",style:i.normalizeStyle(e.getCursorStyle)},Gg,4)],38)}const Go=pe(Fg,[["render",Lg],["__scopeId","data-v-7f0cdcdf"]]),Hg=i.defineComponent({name:"Hue",props:{color:A.instanceOf(L),size:A.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,mt.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 g=Math.round((h-p/2)/(f.width-p)*360);o.hue=g,a.hue=g,t("change",g)}};return We(()=>{const c={drag:f=>{d(f)},end:f=>{d(f)}};r.value&&n.value&&Dt.triggerDragEvent(r.value,c)}),{barElement:r,cursorElement:n,getCursorStyle:l,onClickSider:s}}}),Ug=e=>(i.pushScopeId("data-v-e1a08576"),e=e(),i.popScopeId(),e),zg=Ug(()=>i.createElementVNode("div",{class:"vc-hue-slider__bar-handle"},null,-1)),Wg=[zg];function Kg(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)},Wg,6)],512)],2)}const Lo=pe(Hg,[["render",Kg],["__scopeId","data-v-e1a08576"]]),Yg=i.defineComponent({name:"Lightness",props:{color:A.instanceOf(L),size:A.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,g=>{if(g){o=g;const[y,m,b]=o.HSL;mt.merge(s,{hue:y,saturation:m,lightness:b})}},{deep:!0});const d=i.computed(()=>{const g=x({h:s.hue,s:s.saturation,l:.8}).toPercentageRgbString(),y=x({h:s.hue,s:s.saturation,l:.6}).toPercentageRgbString(),m=x({h:s.hue,s:s.saturation,l:.4}).toPercentageRgbString(),b=x({h:s.hue,s:s.saturation,l:.2}).toPercentageRgbString();return{background:[`linear-gradient(to right, rgb(255, 255, 255), ${g}, ${y}, ${m}, ${b}, rgb(0, 0, 0))`,`-webkit-linear-gradient(left, rgb(255, 255, 255), ${g}, ${y}, ${m}, ${b}, rgb(0, 0, 0))`,`-moz-linear-gradient(left, rgb(255, 255, 255), ${g}, ${y}, ${m}, ${b}, rgb(0, 0, 0))`,`-ms-linear-gradient(left, rgb(255, 255, 255), ${g}, ${y}, ${m}, ${b}, rgb(0, 0, 0))`]}}),c=()=>{if(r.value&&n.value){const g=s.lightness,y=r.value.getBoundingClientRect(),m=n.value.offsetWidth;return(1-g)*(y.width-m)+m/2}return 0},f=i.computed(()=>({left:c()+"px",top:0})),p=g=>{g.target!==r.value&&h(g)},h=g=>{if(g.stopPropagation(),r.value&&n.value){const y=r.value.getBoundingClientRect(),m=n.value.offsetWidth;let b=g.clientX-y.left;b=Math.max(m/2,b),b=Math.min(b,y.width-m/2);const v=1-(b-m/2)/(y.width-m);o.lightness=v,t("change",v)}};return We(()=>{const g={drag:y=>{h(y)},end:y=>{h(y)}};r.value&&n.value&&Dt.triggerDragEvent(r.value,g)}),{barElement:r,cursorElement:n,getCursorStyle:f,getBackgroundStyle:d,onClickSider:p}}}),Xg=e=>(i.pushScopeId("data-v-94a50a9e"),e=e(),i.popScopeId(),e),Jg=Xg(()=>i.createElementVNode("div",{class:"vc-lightness-slider__bar-handle"},null,-1)),Zg=[Jg];function Qg(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)},Zg,6)],4)],2)}const pu=pe(Yg,[["render",Qg],["__scopeId","data-v-94a50a9e"]]),em=i.defineComponent({name:"History",props:{colors:A.arrayOf(String).def(()=>[]),round:A.bool.def(!1)},emits:["change"],setup(e,{emit:t}){return{onColorSelect:r=>{t("change",r)}}}}),tm={key:0,class:"vc-colorPicker__record"},rm={class:"color-list"},nm=["onClick"];function om(e,t,r,n,o,a){return e.colors&&e.colors.length>0?(i.openBlock(),i.createElementBlock("div",tm,[i.createElementVNode("div",rm,[(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,nm))),128))])])):i.createCommentVNode("",!0)}const Ho=pe(em,[["render",om],["__scopeId","data-v-0f657238"]]),am=i.defineComponent({name:"Display",props:{color:A.instanceOf(L),disableAlpha:A.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){var r,n,o,a;const{copy:u,copied:l,isSupported:s}=Pd(),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=Ee(b=>{if(!b.target.value)return;let v=parseInt(b.target.value.replace("%",""));v>100&&(b.target.value="100",v=100),v<0&&(b.target.value="0",v=0),isNaN(v)&&(b.target.value="100",v=100),!isNaN(v)&&c.color&&(c.color.alpha=v),t("change",c.color)},300),g=Ee((b,v)=>{if(c.color){if(d.value==="hex"){const S=b.target.value.replace("#","");x(S).isValid()?[3,4].includes(S.length)&&(c.color.hex=S):c.color.hex="000000",t("change",c.color)}else if(d.value==="rgba"&&v===3&&b.target.value.toString()==="0."&&c.rgba){c.rgba[v]=b.target.value;const[S,O,E,k]=c.rgba;c.color.hex=x({r:S,g:O,b:E}).toHex(),c.color.alpha=Math.round(k*100),t("change",c.color)}}},100),y=Ee((b,v)=>{if(b.target.value){if(d.value==="hex"){const S=b.target.value.replace("#","");x(S).isValid()&&c.color&&[6,8].includes(S.length)&&(c.color.hex=S)}else if(v!==void 0&&c.rgba&&c.color){if(b.target.value<0&&(b.target.value=0),v===3&&((b.target.value>1||isNaN(b.target.value))&&(b.target.value=1),b.target.value.toString()==="0."))return;v<3&&b.target.value>255&&(b.target.value=255),c.rgba[v]=b.target.value;const[S,O,E,k]=c.rgba;c.color.hex=x({r:S,g:O,b:E}).toHex(),c.color.alpha=Math.round(k*100)}t("change",c.color)}},300),m=()=>{if(s&&c.color){const b=d.value==="hex"?c.color.toString(c.color.alpha===100?"hex6":"hex8"):c.color.toRgbString();u(b||"")}};return J(()=>e.color,b=>{b&&(c.color=b,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:y,onBlurChange:g,onCopyColorStr:m}}}),im={class:"vc-display"},lm={class:"vc-current-color vc-transparent"},sm={key:0,class:"copy-text"},um={key:0,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},cm={class:"vc-color-input"},dm={key:0,class:"vc-alpha-input"},fm=["value"],pm={key:1,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},hm=["value","onInput","onBlur"];function vm(e,t,r,n,o,a){return i.openBlock(),i.createElementBlock("div",im,[i.createElementVNode("div",lm,[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",sm,"Copied!")):i.createCommentVNode("",!0)],4)]),e.inputType==="hex"?(i.openBlock(),i.createElementBlock("div",um,[i.createElementVNode("div",cm,[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",dm,[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,fm),i.createTextVNode("% ")]))])):e.state.rgba?(i.openBlock(),i.createElementBlock("div",pm,[(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,hm)]))),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(am,[["render",vm],["__scopeId","data-v-7334ac20"]]),gm=i.defineComponent({name:"FkColorPicker",components:{Display:Uo,Alpha:qo,Palette:fu,Board:Go,Hue:Lo,Lightness:pu,History:Ho},props:{color:A.instanceOf(L),disableHistory:A.bool.def(!1),roundHistory:A.bool.def(!1),disableAlpha:A.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=Ee(()=>{if(e.disableHistory)return;const y=n.color.toRgbString();if(l.value=l.value.filter(m=>!x.equals(m,y)),!l.value.includes(y)){for(;l.value.length>Mo;)l.value.pop();l.value.unshift(y)}},500),d=y=>{y==="advance"?(o.value=!0,t("advanceChange",!0)):(n.color.hex=y,t("advanceChange",!1))},c=y=>{n.color.alpha=y},f=y=>{n.color.hue=y},p=(y,m)=>{n.color.saturation=y,n.color.brightness=m},h=y=>{n.color.lightness=y},g=y=>{const m=y.target.value.replace("#","");x(m).isValid()&&(n.color.hex=m)};return J(()=>e.color,y=>{y&&(n.color=y)},{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:g,previewStyle:a,historyColors:l}}}),mm=e=>(i.pushScopeId("data-v-48e3c224"),e=e(),i.popScopeId(),e),ym={class:"vc-fk-colorPicker"},bm={class:"vc-fk-colorPicker__inner"},Cm={class:"vc-fk-colorPicker__header"},wm=mm(()=>i.createElementVNode("div",{class:"back"},null,-1)),Sm=[wm];function Om(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",ym,[i.createElementVNode("div",bm,[i.createElementVNode("div",Cm,[e.advancePanelShow?(i.openBlock(),i.createElementBlock("span",{key:0,style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...h)=>e.onBack&&e.onBack(...h))},Sm)):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(gm,[["render",Om],["__scopeId","data-v-48e3c224"]]),xm=i.defineComponent({name:"ChromeColorPicker",components:{Display:Uo,Alpha:qo,Board:Go,Hue:Lo,History:Ho},props:{color:A.instanceOf(L),disableHistory:A.bool.def(!1),roundHistory:A.bool.def(!1),disableAlpha:A.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=Ee(()=>{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}}}),Em={class:"vc-chrome-colorPicker"},km={class:"vc-chrome-colorPicker-body"},_m={class:"chrome-controls"},Tm={class:"chrome-sliders"};function Nm(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",Em,[i.createVNode(u,{round:!0,hide:!1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"]),i.createElementVNode("div",km,[i.createElementVNode("div",_m,[i.createElementVNode("div",Tm,[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(xm,[["render",Nm],["__scopeId","data-v-2611d66c"]]),zo="Vue3ColorPickerProvider",Am=(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 Pm=(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))})},Rm={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"}},jm=i.defineComponent({name:"Angle",props:Rm,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=Am(r.value,l)%360,o())};return i.onMounted(()=>{const l={drag:s=>{u(s)},end:s=>{u(s)}};r.value&&Pm(r.value,l)}),()=>i.createVNode("div",{class:"bee-angle"},[i.createVNode("div",{class:"bee-angle__round",ref:r,style:a.value},null)])}}),Im=i.defineComponent({name:"GradientColorPicker",components:{Angle:jm,Display:Uo,Alpha:qo,Palette:fu,Board:Go,Hue:Lo,Lightness:pu,History:Ho},props:{startColor:A.instanceOf(L).isRequired,endColor:A.instanceOf(L).isRequired,startColorStop:A.number.def(0),endColorStop:A.number.def(100),angle:A.number.def(0),type:A.oneOf(["linear","radial"]).def("linear"),disableHistory:A.bool.def(!1),roundHistory:A.bool.def(!1),disableAlpha:A.bool.def(!1),pickerType:A.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],C=>{r.startColor=C[0],r.endColor=C[1],r.angle=C[2]}),i.watch(()=>e.type,C=>{r.type=C});const s=i.computed({get:()=>r.startActive?r.startColor:r.endColor,set:C=>{if(r.startActive){r.startColor=C;return}r.endColor=C}}),d=i.computed(()=>{if(l.value&&a.value){const C=r.startColorStop/100,_=l.value.getBoundingClientRect(),R=a.value.offsetWidth;return Math.round(C*(_.width-R)+R/2)}return 0}),c=i.computed(()=>{if(l.value&&u.value){const C=r.endColorStop/100,_=l.value.getBoundingClientRect(),R=u.value.offsetWidth;return Math.round(C*(_.width-R)+R/2)}return 0}),f=i.computed(()=>{let C=`background: linear-gradient(${r.angle}deg, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`;return r.type==="radial"&&(C=`background: radial-gradient(circle, ${r.startColorRgba} ${r.startColorStop}%, ${r.endColorRgba} ${r.endColorStop}%)`),C}),p=C=>{var _;if(r.startActive=!0,l.value&&a.value){const R=(_=l.value)==null?void 0:_.getBoundingClientRect();let B=C.clientX-R.left;B=Math.max(a.value.offsetWidth/2,B),B=Math.min(B,R.width-a.value.offsetWidth/2),r.startColorStop=Math.round((B-a.value.offsetWidth/2)/(R.width-a.value.offsetWidth)*100),t("update:startColorStop",r.startColorStop),t("startColorStopChange",r.startColorStop)}},h=C=>{var _;if(r.startActive=!1,l.value&&u.value){const R=(_=l.value)==null?void 0:_.getBoundingClientRect();let B=C.clientX-R.left;B=Math.max(u.value.offsetWidth/2,B),B=Math.min(B,R.width-u.value.offsetWidth/2),r.endColorStop=Math.round((B-u.value.offsetWidth/2)/(R.width-u.value.offsetWidth)*100),t("update:endColorStop",r.endColorStop),t("endColorStopChange",r.endColorStop)}},g=C=>{const _=C.target,R=parseInt(_.value.replace("°",""));isNaN(R)||(r.angle=R%360),t("update:angle",r.angle),t("angleChange",r.angle)},y=C=>{r.angle=C,t("update:angle",r.angle),t("angleChange",r.angle)},m=C=>{C==="advance"?(o.value=!0,t("advanceChange",!0)):(s.value.hex=C,t("advanceChange",!1)),k()},b=C=>{s.value.alpha=C,k()},v=C=>{s.value.hue=C,k()},S=(C,_)=>{s.value.saturation=C,s.value.brightness=_,k()},O=C=>{s.value.lightness=C,k()},E=()=>{k()},k=()=>{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)},V=()=>{r.type=r.type==="linear"?"radial":"linear",t("typeChange",r.type)},j=ho(Fo,[],{}),T=Ee(()=>{if(e.disableHistory)return;const C=s.value.toRgbString();if(j.value=j.value.filter(_=>!x.equals(_,C)),!j.value.includes(C)){for(;j.value.length>Mo;)j.value.pop();j.value.unshift(C)}},500);return We(()=>{u.value&&a.value&&(Dt.triggerDragEvent(u.value,{drag:C=>{h(C)},end:C=>{h(C)}}),Dt.triggerDragEvent(a.value,{drag:C=>{p(C)},end:C=>{p(C)}}))}),J(()=>r.startColor,C=>{r.startColorRgba=C.toRgbString()},{deep:!0}),J(()=>r.endColor,C=>{r.endColorRgba=C.toRgbString()},{deep:!0}),J(()=>s.value,()=>{T()},{deep:!0}),{startGradientRef:a,stopGradientRef:u,colorRangeRef:l,state:r,currentColor:s,getStartColorLeft:d,getEndColorLeft:c,gradientBg:f,advancePanelShow:o,onDegreeBlur:g,onCompactChange:m,onAlphaChange:b,onHueChange:v,onBoardChange:S,onLightChange:O,historyColors:j,onBack:P,onDegreeChange:y,onDisplayChange:E,onTypeChange:V,lang:n==null?void 0:n.lang}}}),hu=e=>(i.pushScopeId("data-v-c4d6d6ea"),e=e(),i.popScopeId(),e),Vm={class:"vc-gradient-picker"},$m={class:"vc-gradient-picker__header"},Bm={class:"vc-gradient__types"},Fm={class:"vc-gradient-wrap__types"},Mm={class:"vc-picker-degree-input vc-degree-input"},qm={class:"vc-degree-input__control"},Dm=["value"],Gm={class:"vc-degree-input__panel"},Lm={class:"vc-degree-input__disk"},Hm={class:"vc-gradient-picker__body"},Um={class:"vc-color-range",ref:"colorRangeRef"},zm={class:"vc-color-range__container"},Wm={class:"vc-gradient__stop__container"},Km=["title"],Ym=hu(()=>i.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),Xm=[Ym],Jm=["title"],Zm=hu(()=>i.createElementVNode("span",{class:"vc-gradient__stop--inner"},null,-1)),Qm=[Zm];function ey(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"),g=i.resolveComponent("Display"),y=i.resolveComponent("History");return i.openBlock(),i.createElementBlock("div",Vm,[i.createElementVNode("div",$m,[i.createElementVNode("div",null,[i.withDirectives(i.createElementVNode("div",{class:"back",style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...m)=>e.onBack&&e.onBack(...m))},null,512),[[i.vShow,e.pickerType==="fk"&&e.advancePanelShow]])]),i.createElementVNode("div",Bm,[i.createElementVNode("div",Fm,[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(["linear","radial"],m=>i.createElementVNode("div",{class:i.normalizeClass(["vc-gradient__type",{active:e.state.type===m}]),key:m,onClick:t[1]||(t[1]=(...b)=>e.onTypeChange&&e.onTypeChange(...b))},i.toDisplayString(e.lang?e.lang[m]:m),3)),64))]),i.withDirectives(i.createElementVNode("div",Mm,[i.createElementVNode("div",qm,[i.createElementVNode("input",{value:e.state.angle,onBlur:t[2]||(t[2]=(...m)=>e.onDegreeBlur&&e.onDegreeBlur(...m))},null,40,Dm),i.createTextVNode("deg ")]),i.createElementVNode("div",Gm,[i.createElementVNode("div",Lm,[i.createVNode(s,{angle:e.state.angle,"onUpdate:angle":t[3]||(t[3]=m=>e.state.angle=m),size:40,onChange:e.onDegreeChange},null,8,["angle","onChange"])])])],512),[[i.vShow,e.state.type==="linear"]])])]),i.createElementVNode("div",Hm,[i.createElementVNode("div",Um,[i.createElementVNode("div",zm,[i.createElementVNode("div",{class:"vc-background",style:i.normalizeStyle(e.gradientBg)},null,4),i.createElementVNode("div",Wm,[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})},Xm,14,Km),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})},Qm,14,Jm)])])],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(g,{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(y,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])}const Sl=pe(Im,[["render",ey],["__scopeId","data-v-c4d6d6ea"]]),ty=i.defineComponent({name:"WrapContainer",props:{theme:A.oneOf(["white","black"]).def("white"),showTab:A.bool.def(!1),activeKey:A.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}}}),ry={class:"vc-colorpicker--container"},ny={key:0,class:"vc-colorpicker--tabs"},oy={class:"vc-colorpicker--tabs__inner"},ay={class:"vc-btn__content"},iy={class:"vc-btn__content"};function ly(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",ry,[e.showTab?(i.openBlock(),i.createElementBlock("div",ny,[i.createElementVNode("div",oy,[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",ay,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",iy,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 sy=pe(ty,[["render",ly],["__scopeId","data-v-0492277d"]]),uy={start:"Start",end:"End",pure:"Pure",gradient:"Gradient",linear:"linear",radial:"radial"},cy={start:"开始",end:"结束",pure:"纯色",gradient:"渐变",linear:"线性",radial:"径向"},dy={En:uy,"ZH-cn":cy},fy={isWidget:A.bool.def(!1),pickerType:A.oneOf(["fk","chrome"]).def("fk"),shape:A.oneOf(["circle","square"]).def("square"),pureColor:{type:[String,Object],default:"#000000"},gradientColor:A.string.def("linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),format:{type:String,default:"rgb"},disableAlpha:A.bool.def(!1),disableHistory:A.bool.def(!1),roundHistory:A.bool.def(!1),useType:A.oneOf(["pure","gradient","both"]).def("pure"),activeKey:A.oneOf(["pure","gradient"]).def("pure"),lang:{type:String,default:"ZH-cn"},zIndex:A.number.def(9999),pickerContainer:{type:[String,HTMLElement],default:"body"},debounce:A.number.def(100),theme:A.oneOf(["white","black"]).def("white"),blurClose:A.bool.def(!1),defaultPopup:A.bool.def(!1)},py=i.defineComponent({name:"ColorPicker",components:{FkColorPicker:Cl,ChromeColorPicker:wl,GradientColorPicker:Sl,WrapContainer:sy},inheritAttrs:!1,props:fy,emits:["update:pureColor","pureColorChange","update:gradientColor","gradientColorChange","update:activeKey","activeKeyChange"],setup(e,{emit:t}){i.provide(zo,{lang:i.computed(()=>dy[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})),g=i.computed(()=>n.activeKey==="gradient"?Sl.name:e.pickerType==="fk"?Cl.name:wl.name),y=C=>{n.isAdvanceMode=C},m=i.computed(()=>{const C={disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,pickerType:e.pickerType};return n.activeKey==="gradient"?{...C,startColor:l.startColor,endColor:l.endColor,angle:l.angle,type:l.type,startColorStop:l.startColorStop,endColorStop:l.endColorStop,onStartColorChange:_=>{l.startColor=_,E()},onEndColorChange:_=>{l.endColor=_,E()},onStartColorStopChange:_=>{l.startColorStop=_,E()},onEndColorStopChange:_=>{l.endColorStop=_,E()},onAngleChange:_=>{l.angle=_,E()},onTypeChange:_=>{l.type=_,E()},onAdvanceChange:y}:{...C,disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,color:s.value,onChange:V,onAdvanceChange:y}}),b=()=>{d.value=!0,p?p.update():P()},v=()=>{d.value=!1},S=Ee(()=>{!e.isWidget&&e.blurClose&&v()},100);Nd(f,()=>{v()});const O=()=>{var C,_,R,B;try{const[$]=Ea.parse(l.gradientColor);if($&&$.type.includes("gradient")&&$.colorStops.length>=2){const q=$.colorStops[0],Y=$.colorStops[1];l.startColorStop=Number((C=q.length)==null?void 0:C.value)||0,l.endColorStop=Number((_=Y.length)==null?void 0:_.value)||0,$.type==="linear-gradient"&&((R=$.orientation)==null?void 0:R.type)==="angular"&&(l.angle=Number((B=$.orientation)==null?void 0:B.value)||0),l.type=$.type.split("-")[0];const[N,I,F,ee]=q.value,[me,Qe,Ae,ye]=Y.value;l.startColor=new L({r:Number(N),g:Number(I),b:Number(F),a:Number(ee)}),l.endColor=new L({r:Number(me),g:Number(Qe),b:Number(Ae),a:Number(ye)})}}catch($){console.log(`[Parse Color]: ${$}`)}},E=Ee(()=>{const C=k();try{l.gradientColor=Ea.stringify(C),t("update:gradientColor",l.gradientColor),t("gradientColorChange",l.gradientColor)}catch(_){console.log(_)}},e.debounce),k=()=>{const C=[],_=l.startColor.RGB.map($=>$.toString()),R=l.endColor.RGB.map($=>$.toString()),B=[{type:"rgba",value:[_[0],_[1],_[2],_[3]],length:{value:l.startColorStop+"",type:"%"}},{type:"rgba",value:[R[0],R[1],R[2],R[3]],length:{value:l.endColorStop+"",type:"%"}}];return l.type==="linear"?C.push({type:"linear-gradient",orientation:{type:"angular",value:l.angle+""},colorStops:B}):l.type==="radial"&&C.push({type:"radial-gradient",orientation:[{type:"shape",value:"circle"}],colorStops:B}),C},P=()=>{c.value&&f.value&&(p=vp(c.value,f.value,{placement:"auto",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{allowedAutoPlacements:["top","bottom","left","right"],rootBoundary:"viewport"}}]}))},V=C=>{s.value=C,n.pureColor=C.toString(e.format),j()},j=Ee(()=>{t("update:pureColor",n.pureColor),t("pureColorChange",n.pureColor)},e.debounce),T=C=>{n.activeKey=C,t("update:activeKey",C),t("activeKeyChange",C)};return We(()=>{O(),p||P()}),J(()=>e.gradientColor,C=>{C!=l.gradientColor&&(l.gradientColor=C)}),J(()=>l.gradientColor,()=>{O()}),J(()=>e.activeKey,C=>{n.activeKey=C}),J(()=>e.useType,C=>{n.activeKey!=="gradient"&&C==="gradient"?n.activeKey="gradient":n.activeKey="pure"}),J(()=>e.pureColor,C=>{x.equals(C,n.pureColor)||(n.pureColor=C,s.value=new L(C))},{deep:!0}),{colorCubeRef:c,pickerRef:f,showPicker:d,colorInstance:s,getBgColorStyle:h,getComponentName:g,getBindArgs:m,state:n,hasExtra:r,onColorChange:V,onShowPicker:b,onActiveKeyChange:T,onAutoClose:S}}}),hy={key:0,class:"vc-color-extra"},vy={key:0,class:"vc-color-extra"};function gy(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",hy,[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",vy,[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 my=pe(py,[["render",gy],["__scopeId","data-v-354ca836"]]),yy={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(Pc),e.component("ColorPicker",my)}},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:[mt.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])}}),by={install(e){e.component(Ol.name,Ol)}};function Cy(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"},Cy(n)?n:{default:()=>[n]})}});function wy(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},wy(e=this.model.children.map(t=>this.renderContainer(t)))?e:{default:()=>[e]})}});class Sy{constructor(){M(this,"component","gct-form-item")}createController(t,r){return w.useFormItemController(()=>new w.FormItemController(t,r))}}class Oy{constructor(){M(this,"component","gct-form-hidden-item")}createController(t,r){return w.useFormItemController(()=>new w.FormHiddenItemController(t,r))}}class xy{constructor(){M(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)])}}),Ey={install(e){_gct.register.formItem.register("collapse-pane",()=>new xy),e.component(_l.name,_l)}};class ky{constructor(){M(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(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":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(qe.Collapse.Panel,{key:o.name,header:o.title,collapsible:l},{default:()=>[e[a]]})})]}})}}),_y={install(e){_gct.register.formItem.register("collapse",()=>new ky),e.component(Tl.name,Tl)}};class Ty{constructor(){M(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)])])}}),Ny={install(e){_gct.register.formItem.register("container",()=>new Ty),e.component(Nl.name,Nl)}};class Ay{constructor(){M(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]]}))]}})}}),Py={install(e){_gct.register.formItem.register("tab",()=>new Ay),e.component(Al.name,Al)}};class Ry{constructor(){M(this,"component","gct-form-tab-pane")}createController(t,r){return w.useFormItemController(()=>new w.FormTabPaneController(t,r))}}function Pl(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const Rl=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},Pl(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return i.createVNode(i.resolveComponent("grid-container"),{layout:e.model.grid},Pl(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)])}}),jy={install(e){_gct.register.formItem.register("tab-pane",()=>new Ry),e.component(Rl.name,Rl)}};class Iy{constructor(){M(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)])])}}),Vy={install(e){_gct.register.formItem.register(w.FormContainerType.FORM_TITLE_GROUP,()=>new Iy),e.component(Il.name,Il)}},$y={install(e){_gct.register.formItem.register("item",()=>new Sy),_gct.register.formItem.register("hidden",()=>new Oy),e.use(Ey),e.use(_y),e.use(Ny),e.use(Py),e.use(jy),e.use(Vy),e.component(El.name,El),e.component(xl.name,xl)}},By={install(e){e.use(yy),e.use(by),e.use($y),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=By;