@gct-paas/core-web 0.1.4-dev.3 → 0.1.4-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core-web.css +1 -1
- package/dist/index.min.cjs +11 -11
- package/dist/index.system.min.js +11 -11
- package/es/components/code-editor/code-editor.mjs +1 -2
- package/es/editor/gct-form-field-select/gct-model-select.vue +2 -2
- package/es/editor/index.mjs +2 -2
- package/package.json +5 -5
- package/es/_virtual/_commonjsHelpers.mjs +0 -44
- package/es/_virtual/node.mjs +0 -7
- package/es/_virtual/node2.mjs +0 -3
- package/es/node_modules/.pnpm/@aesoper_normal-utils@0.1.5/node_modules/@aesoper/normal-utils/NormalUtils.es.mjs +0 -3
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.mjs +0 -142
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/config/index.mjs +0 -7
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/index.mjs +0 -1
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/loader/index.mjs +0 -188
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/compose.mjs +0 -13
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/curry.mjs +0 -19
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.mjs +0 -14
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/isObject.mjs +0 -5
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.mjs +0 -20
- package/es/node_modules/.pnpm/@monaco-editor_loader@1.5.0/node_modules/@monaco-editor/loader/lib/es/validators/index.mjs +0 -49
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/createPopper.mjs +0 -200
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/contains.mjs +0 -26
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.mjs +0 -44
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.mjs +0 -72
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.mjs +0 -60
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.mjs +0 -9
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.mjs +0 -32
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.mjs +0 -8
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.mjs +0 -28
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeName.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.mjs +0 -14
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.mjs +0 -71
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getParentNode.mjs +0 -22
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.mjs +0 -19
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.mjs +0 -34
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindow.mjs +0 -14
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.mjs +0 -13
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.mjs +0 -16
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/instanceOf.mjs +0 -23
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.mjs +0 -13
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/isTableElement.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.mjs +0 -29
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/enums.mjs +0 -33
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/index.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/applyStyles.mjs +0 -87
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/arrow.mjs +0 -92
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/computeStyles.mjs +0 -171
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/eventListeners.mjs +0 -51
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/flip.mjs +0 -149
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/hide.mjs +0 -63
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/index.mjs +0 -9
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/offset.mjs +0 -56
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/popperOffsets.mjs +0 -27
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/modifiers/preventOverflow.mjs +0 -144
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/popper-lite.mjs +0 -12
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/popper.mjs +0 -19
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.mjs +0 -46
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/computeOffsets.mjs +0 -73
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/debounce.mjs +0 -17
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/detectOverflow.mjs +0 -67
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/expandToHashMap.mjs +0 -8
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getAltAxis.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getBasePlacement.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getFreshSideObject.mjs +0 -10
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositePlacement.mjs +0 -13
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.mjs +0 -11
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/getVariation.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/math.mjs +0 -5
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/mergeByName.mjs +0 -16
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/mergePaddingObject.mjs +0 -7
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/orderModifiers.mjs +0 -46
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/rectToClientRect.mjs +0 -10
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/userAgent.mjs +0 -13
- package/es/node_modules/.pnpm/@popperjs_core@2.11.8/node_modules/@popperjs/core/lib/utils/within.mjs +0 -11
- package/es/node_modules/.pnpm/@vueuse_core@13.7.0_vue@3.5.18_typescript@5.9.2_/node_modules/@vueuse/core/index.mjs +0 -8285
- package/es/node_modules/.pnpm/@vueuse_shared@13.7.0_vue@3.5.18_typescript@5.9.2_/node_modules/@vueuse/shared/index.mjs +0 -1641
- package/es/node_modules/.pnpm/gradient-parser@1.0.2/node_modules/gradient-parser/build/node.mjs +0 -528
- package/es/node_modules/.pnpm/state-local@1.0.7/node_modules/state-local/lib/es/state-local.mjs +0 -193
- package/es/node_modules/.pnpm/tinycolor2@1.6.0/node_modules/tinycolor2/esm/tinycolor.mjs +0 -1180
- package/es/node_modules/.pnpm/vue-types@3.0.2_vue@3.5.18_typescript@5.9.2_/node_modules/vue-types/dist/vue-types.m.mjs +0 -3
- package/es/node_modules/.pnpm/vue3-colorpicker@2.3.0_@aesoper_normal-utils@0.1.5_@popperjs_core@2.11.8_@vueuse_core@1_c6850a6c65df63e96440af393dfce213/node_modules/vue3-colorpicker/index.es.mjs +0 -1815
package/dist/index.system.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
System.register(["vue","@gct-paas/core","ant-design-vue","lodash-es"],(function(hn,
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var
|
|
1
|
+
System.register(["vue","@gct-paas/core","ant-design-vue","lodash-es"],(function(hn,r0){"use strict";var M,S,G,B,Vt,qa,Fe,T,re,he,ee,$,xr,E,Or,Na,Ut,_r,Je,Ba,pe,Da,Ga,vn,La,Ha,Va,Ua,Ce,pn,gn,Wa,U,se,ae,Ze,xt,z,Wt,Ka,Kt,kr,Er,it,lt,mn,za,yn,V,Ya,Xa,we,X,ie,st,bn,Ja,Za,Qa,ei,ti,ri,ni,Le,oi,ai,ii,li,Cn,si,ui,ci,fi,wn,di,hi,Sn,xn,zt;return{setters:[x=>{M=x.defineComponent,S=x.createVNode,G=x.computed,B=x.ref,Vt=x.onMounted,qa=x.onUnmounted,Fe=x.isVNode,T=x.resolveComponent,re=x.mergeProps,he=x.watch,ee=x.createBlock,$=x.openBlock,xr=x.withCtx,E=x.createElementVNode,Or=x.createTextVNode,Na=x.toRefs,Ut=x.nextTick,_r=x.getCurrentInstance,Je=x.shallowRef,Ba=x.shallowReadonly,pe=x.toValue,Da=x.getCurrentScope,Ga=x.onScopeDispose,vn=x.readonly,La=x.toRef,Ha=x.customRef,Va=x.unref,Ua=x.toRaw,Ce=x.reactive,pn=x.inject,gn=x.provide,Wa=x.useSlots,U=x.createElementBlock,se=x.normalizeClass,ae=x.normalizeStyle,Ze=x.Fragment,xt=x.renderList,z=x.createCommentVNode,Wt=x.withDirectives,Ka=x.vModelText,Kt=x.toDisplayString,kr=x.renderSlot,Er=x.vShow,it=x.pushScopeId,lt=x.popScopeId,mn=x.resolveDynamicComponent,za=x.Teleport,yn=x.h},x=>{V=x.useNamespace,Ya=x.deepMerge,Xa=x.LengthUnitEditorController,we=x.useGctFormValue,X=x.widthEditorInstall,ie=x.EditorTypeOld,st=x.EditorType,bn=x.EditorController,Ja=x.useForm,Za=x.useCopyToClipboard,Qa=x.useGctFormValueByText,ei=x.useEditFormController,ti=x.EditFormController,ri=x.useModal,ni=x.EditorRegisterConst,Le=x.useFormItemController,oi=x.FormItemController,ai=x.FormHiddenItemController,ii=x.FormCollapsePaneController,li=x.FormCollapseController,Cn=x.FormGroupController,si=x.FormTabController,ui=x.FormTabPaneController,ci=x.FormContainerType},x=>{fi=x.message,wn=x.RadioGroup,di=x.RadioButton,hi=x.CheckboxGroup,Sn=x.Collapse},x=>{xn=x.cloneDeep,zt=x.merge}],execute:(function(){function x(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vi(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 pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vi(Object(r),!0).forEach(function(n){x(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qc(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 Nc(e,t){if(e==null)return{};var r=qc(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 Bc(e,t){return Dc(e)||Gc(e,t)||Lc(e,t)||Hc()}function Dc(e){if(Array.isArray(e))return e}function Gc(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,a=void 0;try{for(var s=e[Symbol.iterator](),i;!(n=(i=s.next()).done)&&(r.push(i.value),!(t&&r.length===t));n=!0);}catch(l){o=!0,a=l}finally{try{!n&&s.return!=null&&s.return()}finally{if(o)throw a}}return r}}function Lc(e,t){if(e){if(typeof e=="string")return gi(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 gi(e,t)}}function gi(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 Hc(){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 Vc=require("../internals/export"),Uc=require("../internals/array-includes").includes,Wc=require("../internals/fails"),Kc=require("../internals/add-to-unscopables"),zc=Wc(function(){return!Array(1).includes()});Vc({target:"Array",proto:!0,forced:zc},{includes:function(t){return Uc(this,t,arguments.length>1?arguments[1]:void 0)}}),Kc("includes");function Yc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mi(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 yi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mi(Object(r),!0).forEach(function(n){Yc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xc(){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 Yt(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 s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];return t.apply(r,[].concat(o,i))}}}function Ar(e){return{}.toString.call(e).includes("Object")}function Jc(e){return!Object.keys(e).length}function Xt(e){return typeof e=="function"}function Zc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Qc(e,t){return Ar(t)||Qe("changeType"),Object.keys(t).some(function(r){return!Zc(e,r)})&&Qe("changeField"),t}function ef(e){Xt(e)||Qe("selectorType")}function tf(e){Xt(e)||Ar(e)||Qe("handlerType"),Ar(e)&&Object.values(e).some(function(t){return!Xt(t)})&&Qe("handlersType")}function rf(e){e||Qe("initialIsRequired"),Ar(e)||Qe("initialType"),Jc(e)&&Qe("initialContent")}function nf(e,t){throw new Error(e[t]||e.default)}var of={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"},Qe=Yt(nf)(of),Tr={changes:Qc,selector:ef,handler:tf,initial:rf};function af(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Tr.initial(e),Tr.handler(t);var r={current:e},n=Yt(uf)(r,t),o=Yt(sf)(r),a=Yt(Tr.changes)(e),s=Yt(lf)(r);function i(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(u){return u};return Tr.selector(c),c(r.current)}function l(c){Xc(n,o,a,s)(c)}return[i,l]}function lf(e,t){return Xt(t)?t(e.current):t}function sf(e,t){return e.current=yi(yi({},e.current),t),t}function uf(e,t,r){return Xt(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 cf={create:af},ff={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function df(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 s=arguments.length,i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];return t.apply(r,[].concat(o,i))}}}function hf(e){return{}.toString.call(e).includes("Object")}function vf(e){return e||Ci("configIsRequired"),hf(e)||Ci("configType"),e.urls?(pf(),{paths:{vs:e.urls.monacoBase}}):e}function pf(){console.warn(bi.deprecation)}function gf(e,t){throw new Error(e[t]||e.default)}var bi={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
|
-
`},bi=cf(vf)(yi),pf={config:df},gf=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(a,s){return s(a)},o)}};function Ci(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],Ci(e[r],t[r]))}),vi(vi({},e),t)}var mf={type:"cancelation",msg:"operation is manually canceled"};function On(e){var t=!1,r=new Promise(function(n,o){e.then(function(a){return t?o(mf):n(a)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var yf=sf.create({config:uf,isInitialized:!1,resolve:null,reject:null,monaco:null}),wi=qc(yf,2),Jt=wi[0],Rr=wi[1];function bf(e){var t=pf.config(e),r=t.monaco,n=Fc(t,["monaco"]);Rr(function(o){return{config:Ci(o.config,n),monaco:r}})}function Cf(){var e=Jt(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(Rr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),On(_n);if(window.monaco&&window.monaco.editor)return Si(window.monaco),e.resolve(window.monaco),On(_n);gf(wf,xf)(Of)}return On(_n)}function wf(e){return document.body.appendChild(e)}function Sf(e){var t=document.createElement("script");return e&&(t.src=e),t}function xf(e){var t=Jt(function(n){var o=n.config,a=n.reject;return{config:o,reject:a}}),r=Sf("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function Of(){var e=Jt(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){Si(r),e.resolve(r)},function(r){e.reject(r)})}function Si(e){Jt().monaco||Rr({monaco:e})}function _f(){return Jt(function(e){var t=e.monaco;return t})}var _n=new Promise(function(e,t){return Rr({resolve:e,reject:t})}),kf={config:bf,init:Cf,__getMonacoInstance:_f};const xi=hn("CodeEditor",F({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=V("code-editor"),n=L({get(){return e.value||""},set(s){t("update:value",s)}}),o=B(null);let a=null;return Vt(()=>{kf.init().then(s=>{o.value&&(a=s.editor.create(o.value,za({value:n.value,language:e.language,automaticLayout:!0,minimap:{enabled:!1}},e.config)),a.onDidBlurEditorText(()=>{n.value=a.getValue()}))})}),Fa(()=>{a?.dispose()}),{ns:r,el:o}},render(){return S("div",{ref:"el",class:this.ns.b()},null)}})),kn=F({name:"FlexItem",props:{layout:Object},setup(e){return{ns:V("flex-item"),getStyle:()=>{const n={};if(e.layout){const{order:o,alignSelf:a,flexBasis:s,flexGrow:i,flexShrink:l}=e.layout;o!=null&&(n.order=o),a!=null&&(n["align-self"]=a),s!=null&&(n["flex-basis"]=s),i!=null&&(n["flex-grow"]=i),l!=null&&(n["flex-shrink"]=l)}return n}}},render(){return S("div",{class:this.ns.b(),style:this.getStyle()},[this.$slots.default?.()])}});function Ef(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Me(e)}const Oi=F({name:"FlexContainer",props:{layout:Object},setup(e){return{ns:V("flex-container"),getStyle:()=>{const o={};if(e.layout){const{alignContent:a,alignItems:s,flexDirection:i,flexWrap:l,justifyContent:c}=e.layout;a!=null&&(o.alignContent=a),s!=null&&(o.alignItems=s),i!=null&&(o.flexDirection=i),l!=null&&(o.flexWrap=l),c!=null&&(o.justifyContent=c)}return o},getItemStyle:o=>{const a={};if(o){const{width:s,height:i}=o;s!=null&&(a.width=s),i!=null&&(a.height=i)}return a}}},render(){let e=this.$slots.default?.()||[];return e.length>0&&(e=e[0].children||[]),S("div",{class:this.ns.b(),style:this.getStyle()},[e.map(t=>{if(!t)return null;const r=t.props.model.flexItem;return S(kn,{layout:r,style:this.getItemStyle(t.props.model)},Ef(t)?t:{default:()=>[t]})})])}});function _i(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Me(e)}const ki=F({name:"GridContainer",props:{layout:Object},setup(){return{ns:V("grid-container")}},render(){let e;const t=this.layout||{};let r=this.$slots.default?.()||[];return r.length>0&&(r=r[0].children||[]),S(T("a-row"),{class:this.ns.b(),wrap:!0,gutter:t.gutter},_i(e=r.map(n=>{if(!n)return null;const o=n.props.model.gridItem;return S(T("a-col"),{span:o?o.span??24:24,offset:o?o.offset??0:0},_i(n)?n:{default:()=>[n]})}))?e:{default:()=>[e]})}}),Ei=F({name:"ViewContainer",props:{context:{type:Object},params:{type:Object},modal:{type:Object,required:!0}},setup(){return{ns:V("view-container")}},render(){return S("div",{class:this.ns.b()},[this.$slots.header?S("div",{class:this.ns.b("header")},[this.$slots.header()]):null,S("div",{class:this.ns.b("content")},[this.$slots.default?.()]),this.$slots.footer?S("div",{class:this.ns.b("footer")},[this.$slots.footer()]):null])}}),Af=F({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=V("form-length-unit"),r=new Ya(e.model),n=we();return{ns:t,c:r,val:n}},render(){return S(T("length-unit-editor"),re({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 Tf{component="gct-form-length-unit"}const Rf=X(ie.LENGTH_UNIT,()=>new Tf,Af),Ai=F({name:"GctFormColor",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String}},emits:["update:value"],setup(){const e=V("form-color"),t=we();return{ns:e,val:t}},render(){return S(T("color-picker"),re({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 Ti{component="gct-form-color"}const jf=X(st.COLOR,()=>new Ti,Ai),Pf=X(ie.COLOR,()=>new Ti,Ai);class $f{component="gct-form-check-switch"}const If=F({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=V("gct-form-check-switch"),r=new bn(e.model),n=we();return{ns:t,c:r,val:n}},render(){return this.model.isSwitch?S("div",{class:[this.ns.b(),this.ns.m("switch"),this.ns.is("readonly",this.model.readonly)]},[S(T("a-switch"),re({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)]):S(T("a-checkbox"),re({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]})}}),Mf=X(ie.CHECK_SWITCH,()=>new $f,If);class Ff{component="gct-form-i18n"}const qf=F({name:"GctFormI18n",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=V("gct-form-i18n"),r=Xa().item.i18nConfig,n=we(),o=L({get:()=>r?r.value:"",set:a=>{r&&(r.value=a)}});return{ns:e,val:n,i18nConfigValue:o}},render(){return S(T("i18n-select-input"),re(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)}}),Nf=X(ie.I18N,()=>new Ff,qf),Bf=F({name:"GctFormIconSelect",props:{value:{type:Object},model:{type:Object,required:!0}},emits:["update:value"],setup(e,{emit:t}){const r=V("gct-form-icon-select"),n=B(e.value),o=B(n.value?.icon||e.model.defaultIcon),a=B(n.value?.color||e.model.defaultColor),s=B(n.value?.background||e.model.defaultBackground);he(()=>e.value,l=>{n.value=l,l&&(o.value=l.icon,a.value=l.color)}),he([o,a,s],()=>{n.value={icon:o.value,color:a.value},t("update:value",n.value)});const i=L(()=>{if(e.model.size)return{"--box-size":e.model.size+"px"}});return{ns:r,icon:o,color:a,background:s,nextPickerStyle:i}},render(){return S("div",{class:this.ns.b()},[S(T("icon-next-picker"),{value:this.icon,"onUpdate:value":e=>this.icon=e,color:this.color,"onUpdate:color":e=>this.color=e,background:"#f5f5f5",disabled:this.model.disabled,showColor:this.model.showColor!==!1,style:this.nextPickerStyle},null),this.model.label?S("span",{class:this.ns.e("title")},[this.model.label]):null])}});let Df=class{component="gct-form-icon-select"};const Lf=X(ie.ICON_SELECT,()=>new Df,Bf);class Ri{component="gct-form-number"}const ji=F({name:"GctFormNumber",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=V("gct-form-number"),t=we();return{ns:e,val:t}},render(){return S(T("a-input-number"),re({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)}}),Gf=X(st.NUMBER,()=>new Ri,ji),Hf=X(ie.NUMBER,()=>new Ri,ji);class Vf{component="gct-form-picker"}const Uf=F({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=V("gct-form-picker"),n=L({get(){return e.model.nameField?e.c.data[e.model.nameField]:""},set(i){e.model.nameField&&(e.c.data[e.model.nameField]=i)}}),o=L({get:()=>!e.c.state.options.find(l=>l.value===e.value)&&n.value?n.value:e.value,set:i=>{typeof i=="string"&&(i=i.trim()),!(typeof i!="object"&&e.value==i)&&t("update:value",i)}}),a=()=>e.c.loadDictionary();return o.value!=null&&e.c.loadDictionary(),{ns:r,val:o,nameVal:n,loadOptions:a,onChange:(i,l)=>{n.value=l.label}}},render(){return S(T("a-select"),re({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)}}),Wf=X(ie.PICKER,()=>new Vf,Uf);class Kf{component="gct-form-select"}const zf=F({name:"GctFormSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=V("gct-form-select"),r=we(),n=L(()=>e.c.state.options&&e.c.state.options.length>0?e.c.state.options:[]);return{ns:t,val:r,options:n}},render(){return S(T("a-select"),re({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)}}),Yf=X(ie.SELECT,()=>new Kf,zf);class Xf{component="gct-form-Modal-select"}const Jf=F({name:"GctFormModalSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=V("gct-form-modal-select"),t=B("1"),r=we(),n=L({get(){return r.value||void 0},set(a){r.value=a}}),o=L(()=>[{label:"默认",options:[{value:"1",label:"模型一"},{value:"2",label:"模型二"}]},{label:"产品建模",options:[{value:"3",label:"产品信息"},{value:"4",label:"产品类型"}]}]);return{ns:e,val:n,options:o,modelCategory:t}},render(){return S(T("a-input-group"),{class:this.ns.b()},{default:()=>[S(T("a-form-item-rest"),null,{default:()=>[S(T("a-select"),re({value:this.modelCategory,"onUpdate:value":e=>this.modelCategory=e},this.model.props||{},{placeholder:"请选择",options:[{value:"1",label:"实体"},{value:"2",label:"视图"},{value:"3",label:"数据"}],disabled:this.c.state.disabled}),null)]}),S(T("a-select"),re({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)]})}}),Zf=X(ie.MODEL_SELECT,()=>new Xf,Jf);class Qf{component="gct-form-field-select"}const ed={class:"gct-box"},Pi=((e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r})(F({__name:"gct-model-select",props:{value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,n=t,o=L({get(){return r.value},set(c){n("update:value",c)}}),a=B([{key:0,title:"公司名称"},{key:1,title:"ID"},{key:2,title:"创建人"},{key:3,title:"创建部门"},{key:4,title:"修改时间"},{key:5,title:"修改人"},{key:6,title:"修改部门"}]),s=B([]),i=(c,u)=>{console.log()};function l(){o.value=!1}return(c,u)=>{const f=T("a-transfer"),d=T("a-modal");return $(),ee(d,{visible:o.value,"onUpdate:visible":u[1]||(u[1]=h=>o.value=h),width:"600px",title:"关联模型字段","ok-text":"确认","cancel-text":"取消",onOk:l},{default:xr(()=>[u[2]||(u[2]=E("div",null,"所属模型:公司",-1)),E("div",ed,[S(f,{"target-keys":s.value,"onUpdate:targetKeys":u[0]||(u[0]=h=>s.value=h),locale:{itemUnit:"项已选",itemsUnit:"项未选",searchPlaceholder:"请输入搜索内容"},"data-source":a.value,"show-search":"","filter-option":i,render:h=>h.title},null,8,["target-keys","data-source","render"])])]),_:1,__:[2]},8,["visible"])}}}),[["__scopeId","data-v-bff0c27a"]]),td=F({name:"GctFormFieldSelect",components:{modal:Pi},props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=V("gct-form-field-select"),t=B(!1);return{ns:e,visible:t}},render(){return S("div",null,[S(T("a-button"),{onClick:()=>this.visible=!0,block:!0},{default:()=>[Or("选择模型字段")]}),S(Pi,{value:this.visible,"onUpdate:value":e=>this.visible=e},null)])}}),rd=X(ie.Field_SELECT,()=>new Qf,td);class nd{component="gct-form-span"}const od=F({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=V("form-span"),{model:r,itemModel:n,c:o}=qa(e);function a(){const{isSuccessRef:i}=Ja(e.value);i.value&&ci.success(_gct.t("sys.copySuccess"))}o.value.loadDictionary();const s=L(()=>{if(r.value.format&&typeof r.value.format=="function")return r.value.format(o.value.data,n.value,o.value);if(e.value==null||e.value==="")return e.value;if(n.value.dictionary){const l=(n.value.dictionary.items||[]).find(c=>c.value==e.value);if(l)return l.label}if(o.value.state.options.length>0){const i=o.value.state.options.find(l=>l.value==e.value);if(i)return i.label}return e.value});return{ns:t,val:s,handleClipboardKey:a}},render(){return S("div",{class:this.ns.b()},[S("span",{class:this.ns.e("info")},[this.val]),this.model.copy&&S("span",{class:this.ns.e("copy")},[S("i",{class:"iconfont icon-fuzhi primary-gct",onClick:this.handleClipboardKey},null)])])}}),ad=X(ie.SPAN,()=>new nd,od);class $i{component="gct-form-switch"}const Ii=F({name:"GctFormSwitch",props:{model:{type:Object,required:!0},value:{type:String,default:""}},setup(){const e=V("gct-form-switch"),t=we();return{ns:e,val:t}},render(){return S("div",{class:this.ns.b()},[S(T("a-switch"),re({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)])}}),id=X(st.SWITCH,()=>new $i,Ii),ld=X(ie.SWITCH,()=>new $i,Ii);class Mi{component="gct-form-text"}const Fi=F({name:"GctFormText",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=V("gct-form-text"),r=new bn(e.model),n=Za(e.model.prefix||e.model.addonBefore,e.model.suffix||e.model.addonAfter);return{ns:t,c:r,val:n}},render(){return S(T("a-input"),re({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)}}),sd=X(st.TEXT,()=>new Mi,Fi),ud=X(ie.TEXT,()=>new Mi,Fi);class cd{component="gct-form-textarea"}const fd=F({name:"GctFormTextarea",props:{model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(){const e=V("gct-form-textarea"),t=we();return{ns:e,val:t}},render(){return S(T("a-textarea"),re({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)}}),dd=X(ie.TEXTAREA,()=>new cd,fd);function hd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Me(e)}const qi=F({name:"GctFormRadio",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=V("gct-form-radio"),t=we();return{ns:e,val:t}},render(){const e={...this.model.props||{},class:[this.ns.b()],allowClear:!0,disabled:this.c.state.disabled};if(this.model.buttonMode){let t;return e.class.push(this.ns.m("button")),S(wn,re({value:this.val,"onUpdate:value":r=>this.val=r,size:"small","button-style":"solid"},e),hd(t=this.c.state.options.map(r=>S(fi,{key:r.value,value:r.value},{default:()=>[r.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),S(wn,re({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let Ni=class{component="gct-form-radio"};const vd=X(st.RADIO,()=>new Ni,qi),pd=X(ie.RADIO,()=>new Ni,qi),gd=F({name:"GctFormInfo",props:{value:{type:String,default:""},model:{type:Object,required:!0}},emits:["update:value"],setup(){const e=V("gct-form-info"),t=we();return{ns:e,val:t}},render(){return S("div",{class:this.ns.b()},[this.model.icon?S("span",{class:this.ns.e("icon")},[S("i",{class:`iconfont ${this.model.icon}`},null)]):null,S("span",{class:this.ns.e("content")},[this.val||this.model.content])])}});let md=class{component="gct-form-info"};const yd=X(ie.INFO,()=>new md,gd),Bi=F({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=V("gct-form-checkbox"),n=we(),o=L(()=>n.value),a=L(()=>xn(e.c.state.options));return{ns:r,checked:o,onChange:i=>{a.value.forEach(l=>{e.model.minLength&&i.length<=e.model.minLength&&i.includes(l.value)?l.disabled=!0:l.disabled=!1,l.checked=i.includes(l.value)}),t("update:value",i)},options:a}},render(){const e={...this.model.props||{},class:[this.ns.b(),this.ns.m("checkbox"),this.model.layout==="column"&&"isColumn"],disabled:this.c.state.disabled};return S(di,re({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class Di{component="gct-form-checkbox"}const bd=X(st.CHECKBOX,()=>new Di,Bi),Cd=X(ie.CHECKBOX,()=>new Di,Bi);var Li=require("../internals/global-this"),Gi=require("../internals/function-call"),En=require("../internals/array-buffer-view-core"),wd=require("../internals/length-of-array-like"),Sd=require("../internals/to-offset"),xd=require("../internals/to-object"),Hi=require("../internals/fails"),Od=Li.RangeError,An=Li.Int8Array,Vi=An&&An.prototype,Ui=Vi&&Vi.set,_d=En.aTypedArray,kd=En.exportTypedArrayMethod,Tn=!Hi(function(){var e=new Uint8ClampedArray(2);return Gi(Ui,e,{length:1,0:3},1),e[1]!==3}),Ed=Tn&&En.NATIVE_ARRAY_BUFFER_VIEWS&&Hi(function(){var e=new An(2);return e.set(1),e.set("2",1),e[0]!==0||e[1]!==2});kd("set",function(t){_d(this);var r=Sd(arguments.length>1?arguments[1]:void 0,1),n=xd(t);if(Tn)return Gi(Ui,this,n,r);var o=this.length,a=wd(n),s=0;if(a+r>o)throw new Od("Wrong length");for(;s<a;)this[r+s]=n[s++]},!Tn||Ed);function Wi(e){return Ba()?(Da(e),!0):!1}const jr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ad=Object.prototype.toString,Td=e=>Ad.call(e)==="[object Object]",He=()=>{},Rd=jd();function jd(){var e,t;return jr&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Pd(...e){if(e.length!==1)return La(...e);const t=e[0];return typeof t=="function"?vn(Ga(()=>({get:t,set:He}))):B(t)}function Ki(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 zi=e=>e();function $d(e,t={}){let r,n,o=He;const a=l=>{clearTimeout(l),o(),o=He};let s;return l=>{const c=pe(e),u=pe(t.maxWait);return r&&a(r),c<=0||u!==void 0&&u<=0?(n&&(a(n),n=void 0),Promise.resolve(l())):new Promise((f,d)=>{o=t.rejectOnCancel?d:f,s=l,u&&!n&&(n=setTimeout(()=>{r&&a(r),n=void 0,f(s())},u)),r=setTimeout(()=>{n&&a(n),n=void 0,f(l())},c)})}}function Id(e=zi,t={}){const{initialState:r="active"}=t,n=Pd(r==="active");function o(){n.value=!1}function a(){n.value=!0}const s=(...i)=>{n.value&&e(...i)};return{isActive:vn(n),pause:o,resume:a,eventFilter:s}}function Md(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 Rn(e){return Array.isArray(e)?e:[e]}function Fd(e){return _r()}function Ve(e,t=200,r={}){return Ki($d(t,r),e)}function qd(e,t,r={}){const{eventFilter:n=zi,...o}=r;return he(e,Ki(n,t),o)}function Nd(e,t,r={}){const{eventFilter:n,initialState:o="active",...a}=r,{eventFilter:s,pause:i,resume:l,isActive:c}=Id(n,{initialState:o});return{stop:qd(e,t,{...a,eventFilter:s}),pause:i,resume:l,isActive:c}}function ut(e,t=!0,r){Fd()?Vt(e,r):t?e():Ut(e)}function Bd(e,t,r={}){const{immediate:n=!0,immediateCallback:o=!1}=r,a=Je(!1);let s;function i(){s&&(clearTimeout(s),s=void 0)}function l(){a.value=!1,i()}function c(...u){o&&e(),i(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=void 0,e(...u)},pe(t))}return n&&(a.value=!0,jr&&c()),Wi(l),{isPending:Na(a),start:c,stop:l}}function Dd(e,t,r){return he(e,t,{...r,immediate:!0})}function ce(e,t,r){const n=he(e,(o,a,s)=>{o&&(r?.once&&Ut(()=>n()),t(o,a,s))},{...r,once:!1});return n}const Zt=jr?window:void 0,Yi=jr?window.navigator:void 0;function Qt(e){var t;const r=pe(e);return(t=r?.$el)!=null?t:r}function ct(...e){const t=[],r=()=>{t.forEach(i=>i()),t.length=0},n=(i,l,c,u)=>(i.addEventListener(l,c,u),()=>i.removeEventListener(l,c,u)),o=L(()=>{const i=Rn(pe(e[0])).filter(l=>l!=null);return i.every(l=>typeof l!="string")?i:void 0}),a=Dd(()=>{var i,l;return[(l=(i=o.value)==null?void 0:i.map(c=>Qt(c)))!=null?l:[Zt].filter(c=>c!=null),Rn(pe(o.value?e[1]:e[0])),Rn(Ha(o.value?e[2]:e[1])),pe(o.value?e[3]:e[2])]},([i,l,c,u])=>{if(r(),!i?.length||!l?.length||!c?.length)return;const f=Td(u)?{...u}:u;t.push(...i.flatMap(d=>l.flatMap(h=>c.map(m=>n(d,h,m,f)))))},{flush:"post"}),s=()=>{a(),r()};return Wi(r),s}let Xi=!1;function Ld(e,t,r={}){const{window:n=Zt,ignore:o=[],capture:a=!0,detectIframe:s=!1,controls:i=!1}=r;if(!n)return i?{stop:He,cancel:He,trigger:He}:He;if(Rd&&!Xi){Xi=!0;const v={passive:!0};Array.from(n.document.body.children).forEach(p=>p.addEventListener("click",He,v)),n.document.documentElement.addEventListener("click",He,v)}let l=!0;const c=v=>pe(o).some(p=>{if(typeof p=="string")return Array.from(n.document.querySelectorAll(p)).some(g=>g===v.target||v.composedPath().includes(g));{const g=Qt(p);return g&&(v.target===g||v.composedPath().includes(g))}});function u(v){const p=pe(v);return p&&p.$.subTree.shapeFlag===16}function f(v,p){const g=pe(v),b=g.$.subTree&&g.$.subTree.children;return b==null||!Array.isArray(b)?!1:b.some(w=>w.el===p.target||p.composedPath().includes(w.el))}const d=v=>{const p=Qt(e);if(v.target!=null&&!(!(p instanceof Element)&&u(e)&&f(e,v))&&!(!p||p===v.target||v.composedPath().includes(p))){if("detail"in v&&v.detail===0&&(l=!c(v)),!l){l=!0;return}t(v)}};let h=!1;const m=[ct(n,"click",v=>{h||(h=!0,setTimeout(()=>{h=!1},0),d(v))},{passive:!0,capture:a}),ct(n,"pointerdown",v=>{const p=Qt(e);l=!c(v)&&!!(p&&!v.composedPath().includes(p))},{passive:!0}),s&&ct(n,"blur",v=>{setTimeout(()=>{var p;const g=Qt(e);((p=n.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!g?.contains(n.document.activeElement)&&t(v)},0)},{passive:!0})].filter(Boolean),y=()=>m.forEach(v=>v());return i?{stop:y,cancel:()=>{l=!1},trigger:v=>{l=!0,d(v),l=!1}}:y}function Gd(){const e=Je(!1),t=_r();return t&&Vt(()=>{e.value=!0},t),e}function Ji(e){const t=Gd();return L(()=>(t.value,!!e()))}function Zi(e,t={}){const{controls:r=!1,navigator:n=Yi}=t,o=Ji(()=>n&&"permissions"in n),a=Je(),s=typeof e=="string"?{name:e}:e,i=Je(),l=()=>{var u,f;i.value=(f=(u=a.value)==null?void 0:u.state)!=null?f:"prompt"};ct(a,"change",l,{passive:!0});const c=Md(async()=>{if(o.value){if(!a.value)try{a.value=await n.permissions.query(s)}catch{a.value=void 0}finally{l()}if(r)return Va(a.value)}});return c(),r?{state:i,isSupported:o,query:c}:i}function Hd(e={}){const{navigator:t=Yi,read:r=!1,source:n,copiedDuring:o=1500,legacy:a=!1}=e,s=Ji(()=>t&&"clipboard"in t),i=Zi("clipboard-read"),l=Zi("clipboard-write"),c=L(()=>s.value||a),u=Je(""),f=Je(!1),d=Bd(()=>f.value=!1,o,{immediate:!1});async function h(){let g=!(s.value&&p(i.value));if(!g)try{u.value=await t.clipboard.readText()}catch{g=!0}g&&(u.value=v())}c.value&&r&&ct(["copy","cut"],h,{passive:!0});async function m(g=pe(n)){if(c.value&&g!=null){let b=!(s.value&&p(l.value));if(!b)try{await t.clipboard.writeText(g)}catch{b=!0}b&&y(g),u.value=g,f.value=!0,d.start()}}function y(g){const b=document.createElement("textarea");b.value=g??"",b.style.position="absolute",b.style.opacity="0",document.body.appendChild(b),b.select(),document.execCommand("copy"),b.remove()}function v(){var g,b,w;return(w=(b=(g=document?.getSelection)==null?void 0:g.call(document))==null?void 0:b.toString())!=null?w:""}function p(g){return g==="granted"||g==="prompt"}return{isSupported:c,text:u,copied:f,copy:m}}const Pr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$r="__vueuse_ssr_handlers__",Vd=Ud();function Ud(){return $r in Pr||(Pr[$r]=Pr[$r]||{}),Pr[$r]}function Wd(e,t){return Vd[e]||t}function Kd(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 zd={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()}},Qi="vueuse-storage";function Yd(e,t,r,n={}){var o;const{flush:a="pre",deep:s=!0,listenToStorageChanges:i=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=Zt,eventFilter:d,onError:h=A=>{console.error(A)},initOnMounted:m}=n,y=(u?Je:B)(typeof t=="function"?t():t),v=L(()=>pe(e));if(!r)try{r=Wd("getDefaultStorage",()=>{var A;return(A=Zt)==null?void 0:A.localStorage})()}catch(A){h(A)}if(!r)return y;const p=pe(t),g=Kd(p),b=(o=n.serializer)!=null?o:zd[g],{pause:w,resume:k}=Nd(y,A=>W(A),{flush:a,deep:s,eventFilter:d});he(v,()=>R(),{flush:a});let _=!1;const M=A=>{m&&!_||R(A)},H=A=>{m&&!_||q(A)};f&&i&&(r instanceof Storage?ct(f,"storage",M,{passive:!0}):ct(f,Qi,H)),m?ut(()=>{_=!0,R()}):R();function N(A,P){if(f){const G={key:v.value,oldValue:A,newValue:P,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent("storage",G):new CustomEvent(Qi,{detail:G}))}}function W(A){try{const P=r.getItem(v.value);if(A==null)N(P,null),r.removeItem(v.value);else{const G=b.write(A);P!==G&&(r.setItem(v.value,G),N(P,G))}}catch(P){h(P)}}function C(A){const P=A?A.newValue:r.getItem(v.value);if(P==null)return l&&p!=null&&r.setItem(v.value,b.write(p)),p;if(!A&&c){const G=b.read(P);return typeof c=="function"?c(G,p):g==="object"&&!Array.isArray(G)?{...p,...G}:G}else return typeof P!="string"?P:b.read(P)}function R(A){if(!(A&&A.storageArea!==r)){if(A&&A.key==null){y.value=p;return}if(!(A&&A.key!==v.value)){w();try{const P=b.write(y.value);(A===void 0||A?.newValue!==P)&&(y.value=C(A))}catch(P){h(P)}finally{A?Ut(k):k()}}}}function q(A){R(A.detail)}return y}function jn(e,t,r={}){const{window:n=Zt}=r;return Yd(e,t,n?.localStorage,r)}function Ir(e){"@babel/helpers - typeof";return Ir=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},Ir(e)}var Xd=/^\s+/,Jd=/\s+$/;function O(e,t){if(e=e||"",t=t||{},e instanceof O)return e;if(!(this instanceof O))return new O(e,t);var r=Zd(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}O.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,o,a,s,i;return r=t.r/255,n=t.g/255,o=t.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),n<=.03928?s=n/12.92:s=Math.pow((n+.055)/1.055,2.4),o<=.03928?i=o/12.92:i=Math.pow((o+.055)/1.055,2.4),.2126*a+.7152*s+.0722*i},setAlpha:function(t){return this._a=al(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=tl(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=tl(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=el(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=el(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 rl(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return rh(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(J(this._r,255)*100)+"%",g:Math.round(J(this._g,255)*100)+"%",b:Math.round(J(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(J(this._r,255)*100)+"%, "+Math.round(J(this._g,255)*100)+"%, "+Math.round(J(this._b,255)*100)+"%)":"rgba("+Math.round(J(this._r,255)*100)+"%, "+Math.round(J(this._g,255)*100)+"%, "+Math.round(J(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:vh[rl(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+nl(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var a=O(t);n="#"+nl(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 O(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(ih,arguments)},brighten:function(){return this._applyModification(lh,arguments)},darken:function(){return this._applyModification(sh,arguments)},desaturate:function(){return this._applyModification(nh,arguments)},saturate:function(){return this._applyModification(oh,arguments)},greyscale:function(){return this._applyModification(ah,arguments)},spin:function(){return this._applyModification(uh,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(dh,arguments)},complement:function(){return this._applyCombination(ch,arguments)},monochromatic:function(){return this._applyCombination(hh,arguments)},splitcomplement:function(){return this._applyCombination(fh,arguments)},triad:function(){return this._applyCombination(ol,[3])},tetrad:function(){return this._applyCombination(ol,[4])}},O.fromRatio=function(e,t){if(Ir(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=er(e[n]));e=r}return O(e,t)};function Zd(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,a=null,s=!1,i=!1;return typeof e=="string"&&(e=yh(e)),Ir(e)=="object"&&(Ue(e.r)&&Ue(e.g)&&Ue(e.b)?(t=Qd(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ue(e.h)&&Ue(e.s)&&Ue(e.v)?(n=er(e.s),o=er(e.v),t=th(e.h,n,o),s=!0,i="hsv"):Ue(e.h)&&Ue(e.s)&&Ue(e.l)&&(n=er(e.s),a=er(e.l),t=eh(e.h,n,a),s=!0,i="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=al(r),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function Qd(e,t,r){return{r:J(e,255)*255,g:J(t,255)*255,b:J(r,255)*255}}function el(e,t,r){e=J(e,255),t=J(t,255),r=J(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,s,i=(n+o)/2;if(n==o)a=s=0;else{var l=n-o;switch(s=i>.5?l/(2-n-o):l/(n+o),n){case e:a=(t-r)/l+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s,l:i}}function eh(e,t,r){var n,o,a;e=J(e,360),t=J(t,100),r=J(r,100);function s(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}if(t===0)n=o=a=r;else{var i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;n=s(l,i,e+1/3),o=s(l,i,e),a=s(l,i,e-1/3)}return{r:n*255,g:o*255,b:a*255}}function tl(e,t,r){e=J(e,255),t=J(t,255),r=J(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,s,i=n,l=n-o;if(s=n===0?0:l/n,n==o)a=0;else{switch(n){case e:a=(t-r)/l+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s,v:i}}function th(e,t,r){e=J(e,360)*6,t=J(t,100),r=J(r,100);var n=Math.floor(e),o=e-n,a=r*(1-t),s=r*(1-o*t),i=r*(1-(1-o)*t),l=n%6,c=[r,s,a,a,i,r][l],u=[i,r,r,s,a,a][l],f=[a,a,i,r,r,s][l];return{r:c*255,g:u*255,b:f*255}}function rl(e,t,r,n){var o=[Pe(Math.round(e).toString(16)),Pe(Math.round(t).toString(16)),Pe(Math.round(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function rh(e,t,r,n,o){var a=[Pe(Math.round(e).toString(16)),Pe(Math.round(t).toString(16)),Pe(Math.round(r).toString(16)),Pe(il(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 nl(e,t,r,n){var o=[Pe(il(n)),Pe(Math.round(e).toString(16)),Pe(Math.round(t).toString(16)),Pe(Math.round(r).toString(16))];return o.join("")}O.equals=function(e,t){return!e||!t?!1:O(e).toRgbString()==O(t).toRgbString()},O.random=function(){return O.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function nh(e,t){t=t===0?0:t||10;var r=O(e).toHsl();return r.s-=t/100,r.s=Mr(r.s),O(r)}function oh(e,t){t=t===0?0:t||10;var r=O(e).toHsl();return r.s+=t/100,r.s=Mr(r.s),O(r)}function ah(e){return O(e).desaturate(100)}function ih(e,t){t=t===0?0:t||10;var r=O(e).toHsl();return r.l+=t/100,r.l=Mr(r.l),O(r)}function lh(e,t){t=t===0?0:t||10;var r=O(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)))),O(r)}function sh(e,t){t=t===0?0:t||10;var r=O(e).toHsl();return r.l-=t/100,r.l=Mr(r.l),O(r)}function uh(e,t){var r=O(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,O(r)}function ch(e){var t=O(e).toHsl();return t.h=(t.h+180)%360,O(t)}function ol(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=O(e).toHsl(),n=[O(e)],o=360/t,a=1;a<t;a++)n.push(O({h:(r.h+a*o)%360,s:r.s,l:r.l}));return n}function fh(e){var t=O(e).toHsl(),r=t.h;return[O(e),O({h:(r+72)%360,s:t.s,l:t.l}),O({h:(r+216)%360,s:t.s,l:t.l})]}function dh(e,t,r){t=t||6,r=r||30;var n=O(e).toHsl(),o=360/r,a=[O(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(O(n));return a}function hh(e,t){t=t||6;for(var r=O(e).toHsv(),n=r.h,o=r.s,a=r.v,s=[],i=1/t;t--;)s.push(O({h:n,s:o,v:a})),a=(a+i)%1;return s}O.mix=function(e,t,r){r=r===0?0:r||50;var n=O(e).toRgb(),o=O(t).toRgb(),a=r/100,s={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return O(s)},O.readability=function(e,t){var r=O(e),n=O(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},O.isReadable=function(e,t,r){var n=O.readability(e,t),o,a;switch(a=!1,o=bh(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},O.mostReadable=function(e,t,r){var n=null,o=0,a,s,i,l;r=r||{},s=r.includeFallbackColors,i=r.level,l=r.size;for(var c=0;c<t.length;c++)a=O.readability(e,t[c]),a>o&&(o=a,n=O(t[c]));return O.isReadable(e,n,{level:i,size:l})||!s?n:(r.includeFallbackColors=!1,O.mostReadable(e,["#fff","#000"],r))};var Pn=O.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"},vh=O.hexNames=ph(Pn);function ph(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function al(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function J(e,t){gh(e)&&(e="100%");var r=mh(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 Mr(e){return Math.min(1,Math.max(0,e))}function Se(e){return parseInt(e,16)}function gh(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function mh(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Pe(e){return e.length==1?"0"+e:""+e}function er(e){return e<=1&&(e=e*100+"%"),e}function il(e){return Math.round(parseFloat(e)*255).toString(16)}function ll(e){return Se(e)/255}var $e=(function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Ue(e){return!!$e.CSS_UNIT.exec(e)}function yh(e){e=e.replace(Xd,"").replace(Jd,"").toLowerCase();var t=!1;if(Pn[e])e=Pn[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=$e.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=$e.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=$e.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=$e.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=$e.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=$e.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=$e.hex8.exec(e))?{r:Se(r[1]),g:Se(r[2]),b:Se(r[3]),a:ll(r[4]),format:t?"name":"hex8"}:(r=$e.hex6.exec(e))?{r:Se(r[1]),g:Se(r[2]),b:Se(r[3]),format:t?"name":"hex"}:(r=$e.hex4.exec(e))?{r:Se(r[1]+""+r[1]),g:Se(r[2]+""+r[2]),b:Se(r[3]+""+r[3]),a:ll(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=$e.hex3.exec(e))?{r:Se(r[1]+""+r[1]),g:Se(r[2]+""+r[2]),b:Se(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function bh(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 sl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fr={},ul;function Ch(){if(ul)return Fr;ul=1;var e=e||{};e.stringify=(function(){var t={"visit_linear-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-linear-gradient":function(r){return t.visit_gradient(r)},"visit_radial-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-radial-gradient":function(r){return t.visit_gradient(r)},visit_gradient:function(r){var n=t.visit(r.orientation);return n&&(n+=", "),r.type+"("+n+t.visit(r.colorStops)+")"},visit_shape:function(r){var n=r.value,o=t.visit(r.at),a=t.visit(r.style);return a&&(n+=" "+a),o&&(n+=" at "+o),n},"visit_default-radial":function(r){var n="",o=t.visit(r.at);return o&&(n+=o),n},"visit_extent-keyword":function(r){var n=r.value,o=t.visit(r.at);return o&&(n+=" at "+o),n},"visit_position-keyword":function(r){return r.value},visit_position:function(r){return t.visit(r.value.x)+" "+t.visit(r.value.y)},"visit_%":function(r){return r.value+"%"},visit_em:function(r){return r.value+"em"},visit_px:function(r){return r.value+"px"},visit_literal:function(r){return t.visit_color(r.value,r)},visit_hex:function(r){return t.visit_color("#"+r.value,r)},visit_rgb:function(r){return t.visit_color("rgb("+r.value.join(", ")+")",r)},visit_rgba:function(r){return t.visit_color("rgba("+r.value.join(", ")+")",r)},visit_color:function(r,n){var o=r,a=t.visit(n.length);return a&&(o+=" "+a),o},visit_angular:function(r){return r.value+"deg"},visit_directional:function(r){return"to "+r.value},visit_array:function(r){var n="",o=r.length;return r.forEach(function(a,s){n+=t.visit(a),s<o-1&&(n+=", ")}),n},visit:function(r){if(!r)return"";var n="";if(r instanceof Array)return t.visit_array(r,n);if(r.type){var o=t["visit_"+r.type];if(o)return o(r);throw Error("Missing visitor visit_"+r.type)}else throw Error("Invalid node.")}};return function(r){return t.visit(r)}})();var e=e||{};return e.parse=(function(){var t={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},r="";function n(j){var D=new Error(r+": "+j);throw D.source=r,D}function o(){var j=a();return r.length>0&&n("Invalid input not EOF"),j}function a(){return w(s)}function s(){return i("linear-gradient",t.linearGradient,c)||i("repeating-linear-gradient",t.repeatingLinearGradient,c)||i("radial-gradient",t.radialGradient,d)||i("repeating-radial-gradient",t.repeatingRadialGradient,d)}function i(j,D,K){return l(D,function(be){var De=K();return De&&(G(t.comma)||n("Missing comma before color stops")),{type:j,orientation:De,colorStops:w(k)}})}function l(j,D){var K=G(j);if(K){G(t.startCall)||n("Missing (");var be=D(K);return G(t.endCall)||n("Missing )"),be}}function c(){return u()||f()}function u(){return P("directional",t.sideOrCorner,1)}function f(){return P("angular",t.angleValue,1)}function d(){var j,D=h(),K;return D&&(j=[],j.push(D),K=r,G(t.comma)&&(D=h(),D?j.push(D):r=K)),j}function h(){var j=m()||y();if(j)j.at=p();else{var D=v();if(D){j=D;var K=p();K&&(j.at=K)}else{var be=g();be&&(j={type:"default-radial",at:be})}}return j}function m(){var j=P("shape",/^(circle)/i,0);return j&&(j.style=A()||v()),j}function y(){var j=P("shape",/^(ellipse)/i,0);return j&&(j.style=R()||v()),j}function v(){return P("extent-keyword",t.extentKeywords,1)}function p(){if(P("position",/^at/,0)){var j=g();return j||n("Missing positioning value"),j}}function g(){var j=b();if(j.x||j.y)return{type:"position",value:j}}function b(){return{x:R(),y:R()}}function w(j){var D=j(),K=[];if(D)for(K.push(D);G(t.comma);)D=j(),D?K.push(D):n("One extra comma");return K}function k(){var j=_();return j||n("Expected color definition"),j.length=R(),j}function _(){return H()||W()||N()||M()}function M(){return P("literal",t.literalColor,0)}function H(){return P("hex",t.hexColor,1)}function N(){return l(t.rgbColor,function(){return{type:"rgb",value:w(C)}})}function W(){return l(t.rgbaColor,function(){return{type:"rgba",value:w(C)}})}function C(){return G(t.number)[1]}function R(){return P("%",t.percentageValue,1)||q()||A()}function q(){return P("position-keyword",t.positionKeywords,1)}function A(){return P("px",t.pixelValue,1)||P("em",t.emValue,1)}function P(j,D,K){var be=G(D);if(be)return{type:j,value:be[K]}}function G(j){var D,K;return K=/^[\n\r\t\s]+/.exec(r),K&&ue(K[0].length),D=j.exec(r),D&&ue(D[0].length),D}function ue(j){r=r.substr(j)}return function(j){return r=j.toString(),o()}})(),Fr.parse=e.parse,Fr.stringify=e.stringify,Fr}var cl=Ch(),ge="top",ke="bottom",Ee="right",me="left",$n="auto",tr=[ge,ke,Ee,me],Ot="start",rr="end",wh="clippingParents",fl="viewport",nr="popper",Sh="reference",dl=tr.reduce(function(e,t){return e.concat([t+"-"+Ot,t+"-"+rr])},[]),hl=[].concat(tr,[$n]).reduce(function(e,t){return e.concat([t,t+"-"+Ot,t+"-"+rr])},[]),xh="beforeRead",Oh="read",_h="afterRead",kh="beforeMain",Eh="main",Ah="afterMain",Th="beforeWrite",Rh="write",jh="afterWrite",Ph=[xh,Oh,_h,kh,Eh,Ah,Th,Rh,jh];function Fe(e){return e?(e.nodeName||"").toLowerCase():null}function xe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ft(e){var t=xe(e).Element;return e instanceof t||e instanceof Element}function Ae(e){var t=xe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function In(e){if(typeof ShadowRoot>"u")return!1;var t=xe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function $h(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!Ae(a)||!Fe(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(s){var i=o[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function Ih(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),i=s.reduce(function(l,c){return l[c]="",l},{});!Ae(o)||!Fe(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const Mh={name:"applyStyles",enabled:!0,phase:"write",fn:$h,effect:Ih,requires:["computeStyles"]};function qe(e){return e.split("-")[0]}var dt=Math.max,qr=Math.min,_t=Math.round;function Mn(){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 vl(){return!/^((?!chrome|android).)*safari/i.test(Mn())}function kt(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Ae(e)&&(o=e.offsetWidth>0&&_t(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&_t(n.height)/e.offsetHeight||1);var s=ft(e)?xe(e):window,i=s.visualViewport,l=!vl()&&r,c=(n.left+(l&&i?i.offsetLeft:0))/o,u=(n.top+(l&&i?i.offsetTop:0))/a,f=n.width/o,d=n.height/a;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function Fn(e){var t=kt(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 pl(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&In(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function We(e){return xe(e).getComputedStyle(e)}function Fh(e){return["table","td","th"].indexOf(Fe(e))>=0}function et(e){return((ft(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nr(e){return Fe(e)==="html"?e:e.assignedSlot||e.parentNode||(In(e)?e.host:null)||et(e)}function gl(e){return!Ae(e)||We(e).position==="fixed"?null:e.offsetParent}function qh(e){var t=/firefox/i.test(Mn()),r=/Trident/i.test(Mn());if(r&&Ae(e)){var n=We(e);if(n.position==="fixed")return null}var o=Nr(e);for(In(o)&&(o=o.host);Ae(o)&&["html","body"].indexOf(Fe(o))<0;){var a=We(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 or(e){for(var t=xe(e),r=gl(e);r&&Fh(r)&&We(r).position==="static";)r=gl(r);return r&&(Fe(r)==="html"||Fe(r)==="body"&&We(r).position==="static")?t:r||qh(e)||t}function qn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ar(e,t,r){return dt(e,qr(t,r))}function Nh(e,t,r){var n=ar(e,t,r);return n>r?r:n}function ml(){return{top:0,right:0,bottom:0,left:0}}function yl(e){return Object.assign({},ml(),e)}function bl(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Bh=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,yl(typeof t!="number"?t:bl(t,tr))};function Dh(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,i=qe(r.placement),l=qn(i),c=[me,Ee].indexOf(i)>=0,u=c?"height":"width";if(!(!a||!s)){var f=Bh(o.padding,r),d=Fn(a),h=l==="y"?ge:me,m=l==="y"?ke:Ee,y=r.rects.reference[u]+r.rects.reference[l]-s[l]-r.rects.popper[u],v=s[l]-r.rects.reference[l],p=or(a),g=p?l==="y"?p.clientHeight||0:p.clientWidth||0:0,b=y/2-v/2,w=f[h],k=g-d[u]-f[m],_=g/2-d[u]/2+b,M=ar(w,_,k),H=l;r.modifiersData[n]=(t={},t[H]=M,t.centerOffset=M-_,t)}}function Lh(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)||pl(t.elements.popper,o)&&(t.elements.arrow=o))}const Gh={name:"arrow",enabled:!0,phase:"main",fn:Dh,effect:Lh,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Et(e){return e.split("-")[1]}var Hh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vh(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:_t(r*o)/o||0,y:_t(n*o)/o||0}}function Cl(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=s.x,h=d===void 0?0:d,m=s.y,y=m===void 0?0:m,v=typeof u=="function"?u({x:h,y}):{x:h,y};h=v.x,y=v.y;var p=s.hasOwnProperty("x"),g=s.hasOwnProperty("y"),b=me,w=ge,k=window;if(c){var _=or(r),M="clientHeight",H="clientWidth";if(_===xe(r)&&(_=et(r),We(_).position!=="static"&&i==="absolute"&&(M="scrollHeight",H="scrollWidth")),_=_,o===ge||(o===me||o===Ee)&&a===rr){w=ke;var N=f&&_===k&&k.visualViewport?k.visualViewport.height:_[M];y-=N-n.height,y*=l?1:-1}if(o===me||(o===ge||o===ke)&&a===rr){b=Ee;var W=f&&_===k&&k.visualViewport?k.visualViewport.width:_[H];h-=W-n.width,h*=l?1:-1}}var C=Object.assign({position:i},c&&Hh),R=u===!0?Vh({x:h,y},xe(r)):{x:h,y};if(h=R.x,y=R.y,l){var q;return Object.assign({},C,(q={},q[w]=g?"0":"",q[b]=p?"0":"",q.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",q))}return Object.assign({},C,(t={},t[w]=g?y+"px":"",t[b]=p?h+"px":"",t.transform="",t))}function Uh(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,s=a===void 0?!0:a,i=r.roundOffsets,l=i===void 0?!0:i,c={placement:qe(t.placement),variation:Et(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,Cl(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Cl(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Wh={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Uh,data:{}};var Br={passive:!0};function Kh(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,s=n.resize,i=s===void 0?!0:s,l=xe(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",r.update,Br)}),i&&l.addEventListener("resize",r.update,Br),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",r.update,Br)}),i&&l.removeEventListener("resize",r.update,Br)}}const zh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Kh,data:{}};var Yh={left:"right",right:"left",bottom:"top",top:"bottom"};function Dr(e){return e.replace(/left|right|bottom|top/g,function(t){return Yh[t]})}var Xh={start:"end",end:"start"};function wl(e){return e.replace(/start|end/g,function(t){return Xh[t]})}function Nn(e){var t=xe(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Bn(e){return kt(et(e)).left+Nn(e).scrollLeft}function Jh(e,t){var r=xe(e),n=et(e),o=r.visualViewport,a=n.clientWidth,s=n.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;var c=vl();(c||!c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i+Bn(e),y:l}}function Zh(e){var t,r=et(e),n=Nn(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=dt(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=dt(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-n.scrollLeft+Bn(e),l=-n.scrollTop;return We(o||r).direction==="rtl"&&(i+=dt(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}function Dn(e){var t=We(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Sl(e){return["html","body","#document"].indexOf(Fe(e))>=0?e.ownerDocument.body:Ae(e)&&Dn(e)?e:Sl(Nr(e))}function ir(e,t){var r;t===void 0&&(t=[]);var n=Sl(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=xe(n),s=o?[a].concat(a.visualViewport||[],Dn(n)?n:[]):n,i=t.concat(s);return o?i:i.concat(ir(Nr(s)))}function Ln(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Qh(e,t){var r=kt(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 xl(e,t,r){return t===fl?Ln(Jh(e,r)):ft(t)?Qh(t,r):Ln(Zh(et(e)))}function ev(e){var t=ir(Nr(e)),r=["absolute","fixed"].indexOf(We(e).position)>=0,n=r&&Ae(e)?or(e):e;return ft(n)?t.filter(function(o){return ft(o)&&pl(o,n)&&Fe(o)!=="body"}):[]}function tv(e,t,r,n){var o=t==="clippingParents"?ev(e):[].concat(t),a=[].concat(o,[r]),s=a[0],i=a.reduce(function(l,c){var u=xl(e,c,n);return l.top=dt(u.top,l.top),l.right=qr(u.right,l.right),l.bottom=qr(u.bottom,l.bottom),l.left=dt(u.left,l.left),l},xl(e,s,n));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Ol(e){var t=e.reference,r=e.element,n=e.placement,o=n?qe(n):null,a=n?Et(n):null,s=t.x+t.width/2-r.width/2,i=t.y+t.height/2-r.height/2,l;switch(o){case ge:l={x:s,y:t.y-r.height};break;case ke:l={x:s,y:t.y+t.height};break;case Ee:l={x:t.x+t.width,y:i};break;case me:l={x:t.x-r.width,y:i};break;default:l={x:t.x,y:t.y}}var c=o?qn(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Ot:l[c]=l[c]-(t[u]/2-r[u]/2);break;case rr:l[c]=l[c]+(t[u]/2-r[u]/2);break}}return l}function lr(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,s=a===void 0?e.strategy:a,i=r.boundary,l=i===void 0?wh:i,c=r.rootBoundary,u=c===void 0?fl:c,f=r.elementContext,d=f===void 0?nr:f,h=r.altBoundary,m=h===void 0?!1:h,y=r.padding,v=y===void 0?0:y,p=yl(typeof v!="number"?v:bl(v,tr)),g=d===nr?Sh:nr,b=e.rects.popper,w=e.elements[m?g:d],k=tv(ft(w)?w:w.contextElement||et(e.elements.popper),l,u,s),_=kt(e.elements.reference),M=Ol({reference:_,element:b,placement:o}),H=Ln(Object.assign({},b,M)),N=d===nr?H:_,W={top:k.top-N.top+p.top,bottom:N.bottom-k.bottom+p.bottom,left:k.left-N.left+p.left,right:N.right-k.right+p.right},C=e.modifiersData.offset;if(d===nr&&C){var R=C[o];Object.keys(W).forEach(function(q){var A=[Ee,ke].indexOf(q)>=0?1:-1,P=[ge,ke].indexOf(q)>=0?"y":"x";W[q]+=R[P]*A})}return W}function rv(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,s=r.padding,i=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?hl:l,u=Et(n),f=u?i?dl:dl.filter(function(m){return Et(m)===u}):tr,d=f.filter(function(m){return c.indexOf(m)>=0});d.length===0&&(d=f);var h=d.reduce(function(m,y){return m[y]=lr(e,{placement:y,boundary:o,rootBoundary:a,padding:s})[qe(y)],m},{});return Object.keys(h).sort(function(m,y){return h[m]-h[y]})}function nv(e){if(qe(e)===$n)return[];var t=Dr(e);return[wl(e),t,wl(t)]}function ov(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,i=s===void 0?!0:s,l=r.fallbackPlacements,c=r.padding,u=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,m=h===void 0?!0:h,y=r.allowedAutoPlacements,v=t.options.placement,p=qe(v),g=p===v,b=l||(g||!m?[Dr(v)]:nv(v)),w=[v].concat(b).reduce(function(at,Le){return at.concat(qe(Le)===$n?rv(t,{placement:Le,boundary:u,rootBoundary:f,padding:c,flipVariations:m,allowedAutoPlacements:y}):Le)},[]),k=t.rects.reference,_=t.rects.popper,M=new Map,H=!0,N=w[0],W=0;W<w.length;W++){var C=w[W],R=qe(C),q=Et(C)===Ot,A=[ge,ke].indexOf(R)>=0,P=A?"width":"height",G=lr(t,{placement:C,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),ue=A?q?Ee:me:q?ke:ge;k[P]>_[P]&&(ue=Dr(ue));var j=Dr(ue),D=[];if(a&&D.push(G[R]<=0),i&&D.push(G[ue]<=0,G[j]<=0),D.every(function(at){return at})){N=C,H=!1;break}M.set(C,D)}if(H)for(var K=m?3:1,be=function(Le){var Sr=w.find(function(fn){var wt=M.get(fn);if(wt)return wt.slice(0,Le).every(function($a){return $a})});if(Sr)return N=Sr,"break"},De=K;De>0;De--){var Ht=be(De);if(Ht==="break")break}t.placement!==N&&(t.modifiersData[n]._skip=!0,t.placement=N,t.reset=!0)}}const av={name:"flip",enabled:!0,phase:"main",fn:ov,requiresIfExists:["offset"],data:{_skip:!1}};function _l(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 kl(e){return[ge,Ee,ke,me].some(function(t){return e[t]>=0})}function iv(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=lr(t,{elementContext:"reference"}),i=lr(t,{altBoundary:!0}),l=_l(s,n),c=_l(i,o,a),u=kl(l),f=kl(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const lv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:iv};function sv(e,t,r){var n=qe(e),o=[me,ge].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=a[0],i=a[1];return s=s||0,i=(i||0)*o,[me,Ee].indexOf(n)>=0?{x:i,y:s}:{x:s,y:i}}function uv(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,s=hl.reduce(function(u,f){return u[f]=sv(f,t.rects,a),u},{}),i=s[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}const cv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:uv};function fv(e){var t=e.state,r=e.name;t.modifiersData[r]=Ol({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const dv={name:"popperOffsets",enabled:!0,phase:"read",fn:fv,data:{}};function hv(e){return e==="x"?"y":"x"}function vv(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,i=s===void 0?!1:s,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,m=r.tetherOffset,y=m===void 0?0:m,v=lr(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),p=qe(t.placement),g=Et(t.placement),b=!g,w=qn(p),k=hv(w),_=t.modifiersData.popperOffsets,M=t.rects.reference,H=t.rects.popper,N=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,W=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(_){if(a){var q,A=w==="y"?ge:me,P=w==="y"?ke:Ee,G=w==="y"?"height":"width",ue=_[w],j=ue+v[A],D=ue-v[P],K=h?-H[G]/2:0,be=g===Ot?M[G]:H[G],De=g===Ot?-H[G]:-M[G],Ht=t.elements.arrow,at=h&&Ht?Fn(Ht):{width:0,height:0},Le=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ml(),Sr=Le[A],fn=Le[P],wt=ar(0,M[G],at[G]),$a=b?M[G]/2-K-wt-Sr-W.mainAxis:be-wt-Sr-W.mainAxis,Kb=b?-M[G]/2+K+wt+fn+W.mainAxis:De+wt+fn+W.mainAxis,Ia=t.elements.arrow&&or(t.elements.arrow),zb=Ia?w==="y"?Ia.clientTop||0:Ia.clientLeft||0:0,kc=(q=C?.[w])!=null?q:0,Yb=ue+$a-kc-zb,Xb=ue+Kb-kc,Ec=ar(h?qr(j,Yb):j,ue,h?dt(D,Xb):D);_[w]=Ec,R[w]=Ec-ue}if(i){var Ac,Jb=w==="x"?ge:me,Zb=w==="x"?ke:Ee,St=_[k],dn=k==="y"?"height":"width",Tc=St+v[Jb],Rc=St-v[Zb],Ma=[ge,me].indexOf(p)!==-1,jc=(Ac=C?.[k])!=null?Ac:0,Pc=Ma?Tc:St-M[dn]-H[dn]-jc+W.altAxis,$c=Ma?St+M[dn]+H[dn]-jc-W.altAxis:Rc,Ic=h&&Ma?Nh(Pc,St,$c):ar(h?Pc:Tc,St,h?$c:Rc);_[k]=Ic,R[k]=Ic-St}t.modifiersData[n]=R}}const pv={name:"preventOverflow",enabled:!0,phase:"main",fn:vv,requiresIfExists:["offset"]};function gv(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mv(e){return e===xe(e)||!Ae(e)?Nn(e):gv(e)}function yv(e){var t=e.getBoundingClientRect(),r=_t(t.width)/e.offsetWidth||1,n=_t(t.height)/e.offsetHeight||1;return r!==1||n!==1}function bv(e,t,r){r===void 0&&(r=!1);var n=Ae(t),o=Ae(t)&&yv(t),a=et(t),s=kt(e,o,r),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Fe(t)!=="body"||Dn(a))&&(i=mv(t)),Ae(t)?(l=kt(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Bn(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function Cv(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!r.has(i)){var l=t.get(i);l&&o(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function wv(e){var t=Cv(e);return Ph.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Sv(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function xv(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 El={placement:"bottom",modifiers:[],strategy:"absolute"};function Al(){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 Ov(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?El:o;return function(i,l,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},El,a),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:u,setOptions:function(p){var g=typeof p=="function"?p(u.options):p;y(),u.options=Object.assign({},a,u.options,g),u.scrollParents={reference:ft(i)?ir(i):i.contextElement?ir(i.contextElement):[],popper:ir(l)};var b=wv(xv([].concat(n,u.options.modifiers)));return u.orderedModifiers=b.filter(function(w){return w.enabled}),m(),h.update()},forceUpdate:function(){if(!d){var p=u.elements,g=p.reference,b=p.popper;if(Al(g,b)){u.rects={reference:bv(g,or(b),u.options.strategy==="fixed"),popper:Fn(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(W){return u.modifiersData[W.name]=Object.assign({},W.data)});for(var w=0;w<u.orderedModifiers.length;w++){if(u.reset===!0){u.reset=!1,w=-1;continue}var k=u.orderedModifiers[w],_=k.fn,M=k.options,H=M===void 0?{}:M,N=k.name;typeof _=="function"&&(u=_({state:u,options:H,name:N,instance:h})||u)}}}},update:Sv(function(){return new Promise(function(v){h.forceUpdate(),v(u)})}),destroy:function(){y(),d=!0}};if(!Al(i,l))return h;h.setOptions(c).then(function(v){!d&&c.onFirstUpdate&&c.onFirstUpdate(v)});function m(){u.orderedModifiers.forEach(function(v){var p=v.name,g=v.options,b=g===void 0?{}:g,w=v.effect;if(typeof w=="function"){var k=w({state:u,name:p,instance:h,options:b}),_=function(){};f.push(k||_)}})}function y(){f.forEach(function(v){return v()}),f=[]}return h}}var _v=[zh,dv,Wh,Mh,cv,av,pv,Gh,lv],kv=Ov({defaultModifiers:_v});function Ev(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 Tl(e,t,r){return r&&Ev(e,r),e}function Lr(){return(Lr=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 Rl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function jl(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 Pl(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var $l=Object.prototype,Il=$l.toString,Av=$l.hasOwnProperty,Ml=/^\s*function (\w+)/;function Fl(e){var t,r=(t=e?.type)!==null&&t!==void 0?t:e;if(r){var n=r.toString().match(Ml);return n?n[1]:""}return""}var ht=function(e){var t,r;return Pl(e)!==!1&&typeof(t=e.constructor)=="function"&&Pl(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1},ql=function(e){return e},ye=ql;if(process.env.NODE_ENV!=="production"){var Tv=typeof console<"u";ye=Tv?function(e){console.warn("[VueTypes warn]: "+e)}:ql}var sr=function(e,t){return Av.call(e,t)},Rv=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},At=Array.isArray||function(e){return Il.call(e)==="[object Array]"},Tt=function(e){return Il.call(e)==="[object Function]"},Gr=function(e){return ht(e)&&sr(e,"_vueTypes_name")},Nl=function(e){return ht(e)&&(sr(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return sr(e,t)}))};function Gn(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function vt(e,t,r){var n,o=!0,a="";n=ht(e)?e:{type:e};var s=Gr(n)?n._vueTypes_name+" - ":"";if(Nl(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t===void 0)return o;At(n.type)?(o=n.type.some(function(f){return vt(f,t)===!0}),a=n.type.map(function(f){return Fl(f)}).join(" or ")):o=(a=Fl(n))==="Array"?At(t):a==="Object"?ht(t):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?(function(f){if(f==null)return"";var d=f.constructor.toString().match(Ml);return d?d[1]:""})(t)===a:t instanceof n.type}if(!o){var i=s+'value "'+t+'" should be of type "'+a+'"';return i}if(sr(n,"validator")&&Tt(n.validator)){var l=ye,c=[];if(ye=function(f){c.push(f)},o=n.validator(t),ye=l,!o){var u=(c.length>1?"* ":"")+c.join(`
|
|
12
|
-
* `);return c.length=0,u}}return o}function Oe(e,t){var r=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(o){return o!==void 0||this.default?Tt(o)||vt(this,o)===!0?(this.default=At(o)?function(){return[].concat(o)}:ht(o)?function(){return Object.assign({},o)}:o,this):(ye(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),n=r.validator;return Tt(n)&&(r.validator=
|
|
13
|
-
`+JSON.stringify(this)),this.validator=
|
|
11
|
+
`},Ci=df(gf)(bi),mf={config:vf},yf=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(a,s){return s(a)},o)}};function wi(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],wi(e[r],t[r]))}),pi(pi({},e),t)}var bf={type:"cancelation",msg:"operation is manually canceled"};function On(e){var t=!1,r=new Promise(function(n,o){e.then(function(a){return t?o(bf):n(a)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var Cf=cf.create({config:ff,isInitialized:!1,resolve:null,reject:null,monaco:null}),Si=Bc(Cf,2),Jt=Si[0],Rr=Si[1];function wf(e){var t=mf.config(e),r=t.monaco,n=Nc(t,["monaco"]);Rr(function(o){return{config:wi(o.config,n),monaco:r}})}function Sf(){var e=Jt(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(Rr({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),On(_n);if(window.monaco&&window.monaco.editor)return xi(window.monaco),e.resolve(window.monaco),On(_n);yf(xf,_f)(kf)}return On(_n)}function xf(e){return document.body.appendChild(e)}function Of(e){var t=document.createElement("script");return e&&(t.src=e),t}function _f(e){var t=Jt(function(n){var o=n.config,a=n.reject;return{config:o,reject:a}}),r=Of("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function kf(){var e=Jt(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){xi(r),e.resolve(r)},function(r){e.reject(r)})}function xi(e){Jt().monaco||Rr({monaco:e})}function Ef(){return Jt(function(e){var t=e.monaco;return t})}var _n=new Promise(function(e,t){return Rr({resolve:e,reject:t})}),Af={config:wf,init:Sf,__getMonacoInstance:Ef};const Oi=hn("CodeEditor",M({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=V("code-editor"),n=G({get(){return e.value||""},set(s){t("update:value",s)}}),o=B(null);let a=null;return Vt(()=>{Af.init().then(s=>{o.value&&(a=s.editor.create(o.value,Ya({value:n.value,language:e.language,automaticLayout:!0,minimap:{enabled:!1}},e.config)),a.onDidBlurEditorText(()=>{n.value=a.getValue()}))})}),qa(()=>{a?.dispose()}),{ns:r,el:o}},render(){return S("div",{ref:"el",class:this.ns.b()},null)}})),kn=M({name:"FlexItem",props:{layout:Object},setup(e){return{ns:V("flex-item"),getStyle:()=>{const n={};if(e.layout){const{order:o,alignSelf:a,flexBasis:s,flexGrow:i,flexShrink:l}=e.layout;o!=null&&(n.order=o),a!=null&&(n["align-self"]=a),s!=null&&(n["flex-basis"]=s),i!=null&&(n["flex-grow"]=i),l!=null&&(n["flex-shrink"]=l)}return n}}},render(){return S("div",{class:this.ns.b(),style:this.getStyle()},[this.$slots.default?.()])}});function Tf(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Fe(e)}const _i=M({name:"FlexContainer",props:{layout:Object},setup(e){return{ns:V("flex-container"),getStyle:()=>{const o={};if(e.layout){const{alignContent:a,alignItems:s,flexDirection:i,flexWrap:l,justifyContent:c}=e.layout;a!=null&&(o.alignContent=a),s!=null&&(o.alignItems=s),i!=null&&(o.flexDirection=i),l!=null&&(o.flexWrap=l),c!=null&&(o.justifyContent=c)}return o},getItemStyle:o=>{const a={};if(o){const{width:s,height:i}=o;s!=null&&(a.width=s),i!=null&&(a.height=i)}return a}}},render(){let e=this.$slots.default?.()||[];return e.length>0&&(e=e[0].children||[]),S("div",{class:this.ns.b(),style:this.getStyle()},[e.map(t=>{if(!t)return null;const r=t.props.model.flexItem;return S(kn,{layout:r,style:this.getItemStyle(t.props.model)},Tf(t)?t:{default:()=>[t]})})])}});function ki(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Fe(e)}const Ei=M({name:"GridContainer",props:{layout:Object},setup(){return{ns:V("grid-container")}},render(){let e;const t=this.layout||{};let r=this.$slots.default?.()||[];return r.length>0&&(r=r[0].children||[]),S(T("a-row"),{class:this.ns.b(),wrap:!0,gutter:t.gutter},ki(e=r.map(n=>{if(!n)return null;const o=n.props.model.gridItem;return S(T("a-col"),{span:o?o.span??24:24,offset:o?o.offset??0:0},ki(n)?n:{default:()=>[n]})}))?e:{default:()=>[e]})}}),Ai=M({name:"ViewContainer",props:{context:{type:Object},params:{type:Object},modal:{type:Object,required:!0}},setup(){return{ns:V("view-container")}},render(){return S("div",{class:this.ns.b()},[this.$slots.header?S("div",{class:this.ns.b("header")},[this.$slots.header()]):null,S("div",{class:this.ns.b("content")},[this.$slots.default?.()]),this.$slots.footer?S("div",{class:this.ns.b("footer")},[this.$slots.footer()]):null])}}),Rf=M({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=V("form-length-unit"),r=new Xa(e.model),n=we();return{ns:t,c:r,val:n}},render(){return S(T("length-unit-editor"),re({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 jf{component="gct-form-length-unit"}const Pf=X(ie.LENGTH_UNIT,()=>new jf,Rf),Ti=M({name:"GctFormColor",inheritAttrs:!1,props:{itemModel:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String}},emits:["update:value"],setup(){const e=V("form-color"),t=we();return{ns:e,val:t}},render(){return S(T("color-picker"),re({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 Ri{component="gct-form-color"}const $f=X(st.COLOR,()=>new Ri,Ti),If=X(ie.COLOR,()=>new Ri,Ti);class Ff{component="gct-form-check-switch"}const Mf=M({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=V("gct-form-check-switch"),r=new bn(e.model),n=we();return{ns:t,c:r,val:n}},render(){return this.model.isSwitch?S("div",{class:[this.ns.b(),this.ns.m("switch"),this.ns.is("readonly",this.model.readonly)]},[S(T("a-switch"),re({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)]):S(T("a-checkbox"),re({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]})}}),qf=X(ie.CHECK_SWITCH,()=>new Ff,Mf);class Nf{component="gct-form-i18n"}const Bf=M({name:"GctFormI18n",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=V("gct-form-i18n"),r=Ja().item.i18nConfig,n=we(),o=G({get:()=>r?r.value:"",set:a=>{r&&(r.value=a)}});return{ns:e,val:n,i18nConfigValue:o}},render(){return S(T("i18n-select-input"),re(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)}}),Df=X(ie.I18N,()=>new Nf,Bf),Gf=M({name:"GctFormIconSelect",props:{value:{type:Object},model:{type:Object,required:!0}},emits:["update:value"],setup(e,{emit:t}){const r=V("gct-form-icon-select"),n=B(e.value),o=B(n.value?.icon||e.model.defaultIcon),a=B(n.value?.color||e.model.defaultColor),s=B(n.value?.background||e.model.defaultBackground);he(()=>e.value,l=>{n.value=l,l&&(o.value=l.icon,a.value=l.color)}),he([o,a,s],()=>{n.value={icon:o.value,color:a.value},t("update:value",n.value)});const i=G(()=>{if(e.model.size)return{"--box-size":e.model.size+"px"}});return{ns:r,icon:o,color:a,background:s,nextPickerStyle:i}},render(){return S("div",{class:this.ns.b()},[S(T("icon-next-picker"),{value:this.icon,"onUpdate:value":e=>this.icon=e,color:this.color,"onUpdate:color":e=>this.color=e,background:"#f5f5f5",disabled:this.model.disabled,showColor:this.model.showColor!==!1,style:this.nextPickerStyle},null),this.model.label?S("span",{class:this.ns.e("title")},[this.model.label]):null])}});let Lf=class{component="gct-form-icon-select"};const Hf=X(ie.ICON_SELECT,()=>new Lf,Gf);class ji{component="gct-form-number"}const Pi=M({name:"GctFormNumber",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=V("gct-form-number"),t=we();return{ns:e,val:t}},render(){return S(T("a-input-number"),re({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)}}),Vf=X(st.NUMBER,()=>new ji,Pi),Uf=X(ie.NUMBER,()=>new ji,Pi);class Wf{component="gct-form-picker"}const Kf=M({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=V("gct-form-picker"),n=G({get(){return e.model.nameField?e.c.data[e.model.nameField]:""},set(i){e.model.nameField&&(e.c.data[e.model.nameField]=i)}}),o=G({get:()=>!e.c.state.options.find(l=>l.value===e.value)&&n.value?n.value:e.value,set:i=>{typeof i=="string"&&(i=i.trim()),!(typeof i!="object"&&e.value==i)&&t("update:value",i)}}),a=()=>e.c.loadDictionary();return o.value!=null&&e.c.loadDictionary(),{ns:r,val:o,nameVal:n,loadOptions:a,onChange:(i,l)=>{n.value=l.label}}},render(){return S(T("a-select"),re({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)}}),zf=X(ie.PICKER,()=>new Wf,Kf);class Yf{component="gct-form-select"}const Xf=M({name:"GctFormSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=V("gct-form-select"),r=we(),n=G(()=>e.c.state.options&&e.c.state.options.length>0?e.c.state.options:[]);return{ns:t,val:r,options:n}},render(){return S(T("a-select"),re({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)}}),Jf=X(ie.SELECT,()=>new Yf,Xf);class Zf{component="gct-form-Modal-select"}const Qf=M({name:"GctFormModalSelect",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=V("gct-form-modal-select"),t=B("1"),r=we(),n=G({get(){return r.value||void 0},set(a){r.value=a}}),o=G(()=>[{label:"默认",options:[{value:"1",label:"模型一"},{value:"2",label:"模型二"}]},{label:"产品建模",options:[{value:"3",label:"产品信息"},{value:"4",label:"产品类型"}]}]);return{ns:e,val:n,options:o,modelCategory:t}},render(){return S(T("a-input-group"),{class:this.ns.b()},{default:()=>[S(T("a-form-item-rest"),null,{default:()=>[S(T("a-select"),re({value:this.modelCategory,"onUpdate:value":e=>this.modelCategory=e},this.model.props||{},{placeholder:"请选择",options:[{value:"1",label:"实体"},{value:"2",label:"视图"},{value:"3",label:"数据"}],disabled:this.c.state.disabled}),null)]}),S(T("a-select"),re({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)]})}}),ed=X(ie.MODEL_SELECT,()=>new Zf,Qf);class td{component="gct-form-field-select"}const rd={class:"gct-box"},$i=((e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r})(M({__name:"gct-model-select",props:{value:{type:Boolean}},emits:["update:value"],setup(e,{emit:t}){const r=e,n=t,o=G({get(){return r.value},set(c){n("update:value",c)}}),a=B([{key:0,title:"公司名称"},{key:1,title:"ID"},{key:2,title:"创建人"},{key:3,title:"创建部门"},{key:4,title:"修改时间"},{key:5,title:"修改人"},{key:6,title:"修改部门"}]),s=B([]),i=(c,u)=>{console.log()};function l(){o.value=!1}return(c,u)=>{const f=T("a-transfer"),d=T("a-modal");return $(),ee(d,{visible:o.value,"onUpdate:visible":u[1]||(u[1]=h=>o.value=h),width:"600px",title:"关联模型字段","ok-text":"确认","cancel-text":"取消",onOk:l},{default:xr(()=>[u[2]||(u[2]=E("div",null,"所属模型:公司",-1)),E("div",rd,[S(f,{"target-keys":s.value,"onUpdate:targetKeys":u[0]||(u[0]=h=>s.value=h),locale:{itemUnit:"项已选",itemsUnit:"项未选",searchPlaceholder:"请输入搜索内容"},"data-source":a.value,"show-search":"","filter-option":i,render:h=>h.title},null,8,["target-keys","data-source","render"])])]),_:1,__:[2]},8,["visible"])}}}),[["__scopeId","data-v-5fc49e2a"]]),nd=M({name:"GctFormFieldSelect",components:{modal:$i},props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=V("gct-form-field-select"),t=B(!1);return{ns:e,visible:t}},render(){return S("div",null,[S(T("a-button"),{onClick:()=>this.visible=!0,block:!0},{default:()=>[Or("选择模型字段")]}),S($i,{value:this.visible,"onUpdate:value":e=>this.visible=e},null)])}}),od=X(ie.Field_SELECT,()=>new td,nd);class ad{component="gct-form-span"}const id=M({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=V("form-span"),{model:r,itemModel:n,c:o}=Na(e);function a(){const{isSuccessRef:i}=Za(e.value);i.value&&fi.success(_gct.t("sys.copySuccess"))}o.value.loadDictionary();const s=G(()=>{if(r.value.format&&typeof r.value.format=="function")return r.value.format(o.value.data,n.value,o.value);if(e.value==null||e.value==="")return e.value;if(n.value.dictionary){const l=(n.value.dictionary.items||[]).find(c=>c.value==e.value);if(l)return l.label}if(o.value.state.options.length>0){const i=o.value.state.options.find(l=>l.value==e.value);if(i)return i.label}return e.value});return{ns:t,val:s,handleClipboardKey:a}},render(){return S("div",{class:this.ns.b()},[S("span",{class:this.ns.e("info")},[this.val]),this.model.copy&&S("span",{class:this.ns.e("copy")},[S("i",{class:"iconfont icon-fuzhi primary-gct",onClick:this.handleClipboardKey},null)])])}}),ld=X(ie.SPAN,()=>new ad,id);class Ii{component="gct-form-switch"}const Fi=M({name:"GctFormSwitch",props:{model:{type:Object,required:!0},value:{type:String,default:""}},setup(){const e=V("gct-form-switch"),t=we();return{ns:e,val:t}},render(){return S("div",{class:this.ns.b()},[S(T("a-switch"),re({checked:this.val,"onUpdate:checked":e=>this.val=e},this.model.props||{}),null)])}}),sd=X(st.SWITCH,()=>new Ii,Fi),ud=X(ie.SWITCH,()=>new Ii,Fi);class Mi{component="gct-form-text"}const qi=M({name:"GctFormText",props:{model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(e){const t=V("gct-form-text"),r=new bn(e.model),n=Qa(e.model.prefix||e.model.addonBefore,e.model.suffix||e.model.addonAfter);return{ns:t,c:r,val:n}},render(){return S(T("a-input"),re({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)}}),cd=X(st.TEXT,()=>new Mi,qi),fd=X(ie.TEXT,()=>new Mi,qi);class dd{component="gct-form-textarea"}const hd=M({name:"GctFormTextarea",props:{model:{type:Object,required:!0},value:{type:String,default:null}},emits:["update:value"],setup(){const e=V("gct-form-textarea"),t=we();return{ns:e,val:t}},render(){return S(T("a-textarea"),re({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)}}),vd=X(ie.TEXTAREA,()=>new dd,hd);function pd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Fe(e)}const Ni=M({name:"GctFormRadio",props:{c:{type:Object,required:!0},model:{type:Object,required:!0},value:{type:String,default:""}},emits:["update:value"],setup(){const e=V("gct-form-radio"),t=we();return{ns:e,val:t}},render(){const e={...this.model.props||{},class:[this.ns.b()],allowClear:!0,disabled:this.c.state.disabled};if(this.model.buttonMode){let t;return e.class.push(this.ns.m("button")),S(wn,re({value:this.val,"onUpdate:value":r=>this.val=r,size:"small","button-style":"solid"},e),pd(t=this.c.state.options.map(r=>S(di,{key:r.value,value:r.value},{default:()=>[r.label]})))?t:{default:()=>[t]})}return e.class.push(this.ns.m("radio")),S(wn,re({value:this.val,"onUpdate:value":t=>this.val=t,options:this.c.state.options},e),null)}});let Bi=class{component="gct-form-radio"};const gd=X(st.RADIO,()=>new Bi,Ni),md=X(ie.RADIO,()=>new Bi,Ni),yd=M({name:"GctFormInfo",props:{value:{type:String,default:""},model:{type:Object,required:!0}},emits:["update:value"],setup(){const e=V("gct-form-info"),t=we();return{ns:e,val:t}},render(){return S("div",{class:this.ns.b()},[this.model.icon?S("span",{class:this.ns.e("icon")},[S("i",{class:`iconfont ${this.model.icon}`},null)]):null,S("span",{class:this.ns.e("content")},[this.val||this.model.content])])}});let bd=class{component="gct-form-info"};const Cd=X(ie.INFO,()=>new bd,yd),Di=M({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=V("gct-form-checkbox"),n=we(),o=G(()=>n.value),a=G(()=>xn(e.c.state.options));return{ns:r,checked:o,onChange:i=>{a.value.forEach(l=>{e.model.minLength&&i.length<=e.model.minLength&&i.includes(l.value)?l.disabled=!0:l.disabled=!1,l.checked=i.includes(l.value)}),t("update:value",i)},options:a}},render(){const e={...this.model.props||{},class:[this.ns.b(),this.ns.m("checkbox"),this.model.layout==="column"&&"isColumn"],disabled:this.c.state.disabled};return S(hi,re({value:this.checked,"onUpdate:value":t=>this.checked=t,options:this.options},e,{onChange:this.onChange}),null)}});class Gi{component="gct-form-checkbox"}const wd=X(st.CHECKBOX,()=>new Gi,Di),Sd=X(ie.CHECKBOX,()=>new Gi,Di);var Li=require("../internals/global-this"),Hi=require("../internals/function-call"),En=require("../internals/array-buffer-view-core"),xd=require("../internals/length-of-array-like"),Od=require("../internals/to-offset"),_d=require("../internals/to-object"),Vi=require("../internals/fails"),kd=Li.RangeError,An=Li.Int8Array,Ui=An&&An.prototype,Wi=Ui&&Ui.set,Ed=En.aTypedArray,Ad=En.exportTypedArrayMethod,Tn=!Vi(function(){var e=new Uint8ClampedArray(2);return Hi(Wi,e,{length:1,0:3},1),e[1]!==3}),Td=Tn&&En.NATIVE_ARRAY_BUFFER_VIEWS&&Vi(function(){var e=new An(2);return e.set(1),e.set("2",1),e[0]!==0||e[1]!==2});Ad("set",function(t){Ed(this);var r=Od(arguments.length>1?arguments[1]:void 0,1),n=_d(t);if(Tn)return Hi(Wi,this,n,r);var o=this.length,a=xd(n),s=0;if(a+r>o)throw new kd("Wrong length");for(;s<a;)this[r+s]=n[s++]},!Tn||Td);function Ki(e){return Da()?(Ga(e),!0):!1}const jr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Rd=Object.prototype.toString,jd=e=>Rd.call(e)==="[object Object]",He=()=>{},Pd=$d();function $d(){var e,t;return jr&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Id(...e){if(e.length!==1)return La(...e);const t=e[0];return typeof t=="function"?vn(Ha(()=>({get:t,set:He}))):B(t)}function zi(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 Yi=e=>e();function Fd(e,t={}){let r,n,o=He;const a=l=>{clearTimeout(l),o(),o=He};let s;return l=>{const c=pe(e),u=pe(t.maxWait);return r&&a(r),c<=0||u!==void 0&&u<=0?(n&&(a(n),n=void 0),Promise.resolve(l())):new Promise((f,d)=>{o=t.rejectOnCancel?d:f,s=l,u&&!n&&(n=setTimeout(()=>{r&&a(r),n=void 0,f(s())},u)),r=setTimeout(()=>{n&&a(n),n=void 0,f(l())},c)})}}function Md(e=Yi,t={}){const{initialState:r="active"}=t,n=Id(r==="active");function o(){n.value=!1}function a(){n.value=!0}const s=(...i)=>{n.value&&e(...i)};return{isActive:vn(n),pause:o,resume:a,eventFilter:s}}function qd(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 Rn(e){return Array.isArray(e)?e:[e]}function Nd(e){return _r()}function Ve(e,t=200,r={}){return zi(Fd(t,r),e)}function Bd(e,t,r={}){const{eventFilter:n=Yi,...o}=r;return he(e,zi(n,t),o)}function Dd(e,t,r={}){const{eventFilter:n,initialState:o="active",...a}=r,{eventFilter:s,pause:i,resume:l,isActive:c}=Md(n,{initialState:o});return{stop:Bd(e,t,{...a,eventFilter:s}),pause:i,resume:l,isActive:c}}function ut(e,t=!0,r){Nd()?Vt(e,r):t?e():Ut(e)}function Gd(e,t,r={}){const{immediate:n=!0,immediateCallback:o=!1}=r,a=Je(!1);let s;function i(){s&&(clearTimeout(s),s=void 0)}function l(){a.value=!1,i()}function c(...u){o&&e(),i(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=void 0,e(...u)},pe(t))}return n&&(a.value=!0,jr&&c()),Ki(l),{isPending:Ba(a),start:c,stop:l}}function Ld(e,t,r){return he(e,t,{...r,immediate:!0})}function ce(e,t,r){const n=he(e,(o,a,s)=>{o&&(r?.once&&Ut(()=>n()),t(o,a,s))},{...r,once:!1});return n}const Zt=jr?window:void 0,Xi=jr?window.navigator:void 0;function Qt(e){var t;const r=pe(e);return(t=r?.$el)!=null?t:r}function ct(...e){const t=[],r=()=>{t.forEach(i=>i()),t.length=0},n=(i,l,c,u)=>(i.addEventListener(l,c,u),()=>i.removeEventListener(l,c,u)),o=G(()=>{const i=Rn(pe(e[0])).filter(l=>l!=null);return i.every(l=>typeof l!="string")?i:void 0}),a=Ld(()=>{var i,l;return[(l=(i=o.value)==null?void 0:i.map(c=>Qt(c)))!=null?l:[Zt].filter(c=>c!=null),Rn(pe(o.value?e[1]:e[0])),Rn(Va(o.value?e[2]:e[1])),pe(o.value?e[3]:e[2])]},([i,l,c,u])=>{if(r(),!i?.length||!l?.length||!c?.length)return;const f=jd(u)?{...u}:u;t.push(...i.flatMap(d=>l.flatMap(h=>c.map(m=>n(d,h,m,f)))))},{flush:"post"}),s=()=>{a(),r()};return Ki(r),s}let Ji=!1;function Hd(e,t,r={}){const{window:n=Zt,ignore:o=[],capture:a=!0,detectIframe:s=!1,controls:i=!1}=r;if(!n)return i?{stop:He,cancel:He,trigger:He}:He;if(Pd&&!Ji){Ji=!0;const v={passive:!0};Array.from(n.document.body.children).forEach(p=>p.addEventListener("click",He,v)),n.document.documentElement.addEventListener("click",He,v)}let l=!0;const c=v=>pe(o).some(p=>{if(typeof p=="string")return Array.from(n.document.querySelectorAll(p)).some(g=>g===v.target||v.composedPath().includes(g));{const g=Qt(p);return g&&(v.target===g||v.composedPath().includes(g))}});function u(v){const p=pe(v);return p&&p.$.subTree.shapeFlag===16}function f(v,p){const g=pe(v),b=g.$.subTree&&g.$.subTree.children;return b==null||!Array.isArray(b)?!1:b.some(w=>w.el===p.target||p.composedPath().includes(w.el))}const d=v=>{const p=Qt(e);if(v.target!=null&&!(!(p instanceof Element)&&u(e)&&f(e,v))&&!(!p||p===v.target||v.composedPath().includes(p))){if("detail"in v&&v.detail===0&&(l=!c(v)),!l){l=!0;return}t(v)}};let h=!1;const m=[ct(n,"click",v=>{h||(h=!0,setTimeout(()=>{h=!1},0),d(v))},{passive:!0,capture:a}),ct(n,"pointerdown",v=>{const p=Qt(e);l=!c(v)&&!!(p&&!v.composedPath().includes(p))},{passive:!0}),s&&ct(n,"blur",v=>{setTimeout(()=>{var p;const g=Qt(e);((p=n.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!g?.contains(n.document.activeElement)&&t(v)},0)},{passive:!0})].filter(Boolean),y=()=>m.forEach(v=>v());return i?{stop:y,cancel:()=>{l=!1},trigger:v=>{l=!0,d(v),l=!1}}:y}function Vd(){const e=Je(!1),t=_r();return t&&Vt(()=>{e.value=!0},t),e}function Zi(e){const t=Vd();return G(()=>(t.value,!!e()))}function Qi(e,t={}){const{controls:r=!1,navigator:n=Xi}=t,o=Zi(()=>n&&"permissions"in n),a=Je(),s=typeof e=="string"?{name:e}:e,i=Je(),l=()=>{var u,f;i.value=(f=(u=a.value)==null?void 0:u.state)!=null?f:"prompt"};ct(a,"change",l,{passive:!0});const c=qd(async()=>{if(o.value){if(!a.value)try{a.value=await n.permissions.query(s)}catch{a.value=void 0}finally{l()}if(r)return Ua(a.value)}});return c(),r?{state:i,isSupported:o,query:c}:i}function Ud(e={}){const{navigator:t=Xi,read:r=!1,source:n,copiedDuring:o=1500,legacy:a=!1}=e,s=Zi(()=>t&&"clipboard"in t),i=Qi("clipboard-read"),l=Qi("clipboard-write"),c=G(()=>s.value||a),u=Je(""),f=Je(!1),d=Gd(()=>f.value=!1,o,{immediate:!1});async function h(){let g=!(s.value&&p(i.value));if(!g)try{u.value=await t.clipboard.readText()}catch{g=!0}g&&(u.value=v())}c.value&&r&&ct(["copy","cut"],h,{passive:!0});async function m(g=pe(n)){if(c.value&&g!=null){let b=!(s.value&&p(l.value));if(!b)try{await t.clipboard.writeText(g)}catch{b=!0}b&&y(g),u.value=g,f.value=!0,d.start()}}function y(g){const b=document.createElement("textarea");b.value=g??"",b.style.position="absolute",b.style.opacity="0",document.body.appendChild(b),b.select(),document.execCommand("copy"),b.remove()}function v(){var g,b,w;return(w=(b=(g=document?.getSelection)==null?void 0:g.call(document))==null?void 0:b.toString())!=null?w:""}function p(g){return g==="granted"||g==="prompt"}return{isSupported:c,text:u,copied:f,copy:m}}const Pr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$r="__vueuse_ssr_handlers__",Wd=Kd();function Kd(){return $r in Pr||(Pr[$r]=Pr[$r]||{}),Pr[$r]}function zd(e,t){return Wd[e]||t}function Yd(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 Xd={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()}},el="vueuse-storage";function Jd(e,t,r,n={}){var o;const{flush:a="pre",deep:s=!0,listenToStorageChanges:i=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=Zt,eventFilter:d,onError:h=A=>{console.error(A)},initOnMounted:m}=n,y=(u?Je:B)(typeof t=="function"?t():t),v=G(()=>pe(e));if(!r)try{r=zd("getDefaultStorage",()=>{var A;return(A=Zt)==null?void 0:A.localStorage})()}catch(A){h(A)}if(!r)return y;const p=pe(t),g=Yd(p),b=(o=n.serializer)!=null?o:Xd[g],{pause:w,resume:k}=Dd(y,A=>W(A),{flush:a,deep:s,eventFilter:d});he(v,()=>R(),{flush:a});let _=!1;const F=A=>{m&&!_||R(A)},H=A=>{m&&!_||q(A)};f&&i&&(r instanceof Storage?ct(f,"storage",F,{passive:!0}):ct(f,el,H)),m?ut(()=>{_=!0,R()}):R();function N(A,P){if(f){const L={key:v.value,oldValue:A,newValue:P,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent("storage",L):new CustomEvent(el,{detail:L}))}}function W(A){try{const P=r.getItem(v.value);if(A==null)N(P,null),r.removeItem(v.value);else{const L=b.write(A);P!==L&&(r.setItem(v.value,L),N(P,L))}}catch(P){h(P)}}function C(A){const P=A?A.newValue:r.getItem(v.value);if(P==null)return l&&p!=null&&r.setItem(v.value,b.write(p)),p;if(!A&&c){const L=b.read(P);return typeof c=="function"?c(L,p):g==="object"&&!Array.isArray(L)?{...p,...L}:L}else return typeof P!="string"?P:b.read(P)}function R(A){if(!(A&&A.storageArea!==r)){if(A&&A.key==null){y.value=p;return}if(!(A&&A.key!==v.value)){w();try{const P=b.write(y.value);(A===void 0||A?.newValue!==P)&&(y.value=C(A))}catch(P){h(P)}finally{A?Ut(k):k()}}}}function q(A){R(A.detail)}return y}function jn(e,t,r={}){const{window:n=Zt}=r;return Jd(e,t,n?.localStorage,r)}function Ir(e){"@babel/helpers - typeof";return Ir=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},Ir(e)}var Zd=/^\s+/,Qd=/\s+$/;function O(e,t){if(e=e||"",t=t||{},e instanceof O)return e;if(!(this instanceof O))return new O(e,t);var r=eh(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}O.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,o,a,s,i;return r=t.r/255,n=t.g/255,o=t.b/255,r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),n<=.03928?s=n/12.92:s=Math.pow((n+.055)/1.055,2.4),o<=.03928?i=o/12.92:i=Math.pow((o+.055)/1.055,2.4),.2126*a+.7152*s+.0722*i},setAlpha:function(t){return this._a=il(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=rl(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=rl(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=tl(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=tl(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 nl(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return oh(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(J(this._r,255)*100)+"%",g:Math.round(J(this._g,255)*100)+"%",b:Math.round(J(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(J(this._r,255)*100)+"%, "+Math.round(J(this._g,255)*100)+"%, "+Math.round(J(this._b,255)*100)+"%)":"rgba("+Math.round(J(this._r,255)*100)+"%, "+Math.round(J(this._g,255)*100)+"%, "+Math.round(J(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:gh[nl(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+ol(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var a=O(t);n="#"+ol(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 O(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(sh,arguments)},brighten:function(){return this._applyModification(uh,arguments)},darken:function(){return this._applyModification(ch,arguments)},desaturate:function(){return this._applyModification(ah,arguments)},saturate:function(){return this._applyModification(ih,arguments)},greyscale:function(){return this._applyModification(lh,arguments)},spin:function(){return this._applyModification(fh,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(vh,arguments)},complement:function(){return this._applyCombination(dh,arguments)},monochromatic:function(){return this._applyCombination(ph,arguments)},splitcomplement:function(){return this._applyCombination(hh,arguments)},triad:function(){return this._applyCombination(al,[3])},tetrad:function(){return this._applyCombination(al,[4])}},O.fromRatio=function(e,t){if(Ir(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=er(e[n]));e=r}return O(e,t)};function eh(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,a=null,s=!1,i=!1;return typeof e=="string"&&(e=Ch(e)),Ir(e)=="object"&&(Ue(e.r)&&Ue(e.g)&&Ue(e.b)?(t=th(e.r,e.g,e.b),s=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ue(e.h)&&Ue(e.s)&&Ue(e.v)?(n=er(e.s),o=er(e.v),t=nh(e.h,n,o),s=!0,i="hsv"):Ue(e.h)&&Ue(e.s)&&Ue(e.l)&&(n=er(e.s),a=er(e.l),t=rh(e.h,n,a),s=!0,i="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=il(r),{ok:s,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function th(e,t,r){return{r:J(e,255)*255,g:J(t,255)*255,b:J(r,255)*255}}function tl(e,t,r){e=J(e,255),t=J(t,255),r=J(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,s,i=(n+o)/2;if(n==o)a=s=0;else{var l=n-o;switch(s=i>.5?l/(2-n-o):l/(n+o),n){case e:a=(t-r)/l+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s,l:i}}function rh(e,t,r){var n,o,a;e=J(e,360),t=J(t,100),r=J(r,100);function s(c,u,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}if(t===0)n=o=a=r;else{var i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;n=s(l,i,e+1/3),o=s(l,i,e),a=s(l,i,e-1/3)}return{r:n*255,g:o*255,b:a*255}}function rl(e,t,r){e=J(e,255),t=J(t,255),r=J(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),a,s,i=n,l=n-o;if(s=n===0?0:l/n,n==o)a=0;else{switch(n){case e:a=(t-r)/l+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s,v:i}}function nh(e,t,r){e=J(e,360)*6,t=J(t,100),r=J(r,100);var n=Math.floor(e),o=e-n,a=r*(1-t),s=r*(1-o*t),i=r*(1-(1-o)*t),l=n%6,c=[r,s,a,a,i,r][l],u=[i,r,r,s,a,a][l],f=[a,a,i,r,r,s][l];return{r:c*255,g:u*255,b:f*255}}function nl(e,t,r,n){var o=[Pe(Math.round(e).toString(16)),Pe(Math.round(t).toString(16)),Pe(Math.round(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function oh(e,t,r,n,o){var a=[Pe(Math.round(e).toString(16)),Pe(Math.round(t).toString(16)),Pe(Math.round(r).toString(16)),Pe(ll(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 ol(e,t,r,n){var o=[Pe(ll(n)),Pe(Math.round(e).toString(16)),Pe(Math.round(t).toString(16)),Pe(Math.round(r).toString(16))];return o.join("")}O.equals=function(e,t){return!e||!t?!1:O(e).toRgbString()==O(t).toRgbString()},O.random=function(){return O.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function ah(e,t){t=t===0?0:t||10;var r=O(e).toHsl();return r.s-=t/100,r.s=Fr(r.s),O(r)}function ih(e,t){t=t===0?0:t||10;var r=O(e).toHsl();return r.s+=t/100,r.s=Fr(r.s),O(r)}function lh(e){return O(e).desaturate(100)}function sh(e,t){t=t===0?0:t||10;var r=O(e).toHsl();return r.l+=t/100,r.l=Fr(r.l),O(r)}function uh(e,t){t=t===0?0:t||10;var r=O(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)))),O(r)}function ch(e,t){t=t===0?0:t||10;var r=O(e).toHsl();return r.l-=t/100,r.l=Fr(r.l),O(r)}function fh(e,t){var r=O(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,O(r)}function dh(e){var t=O(e).toHsl();return t.h=(t.h+180)%360,O(t)}function al(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=O(e).toHsl(),n=[O(e)],o=360/t,a=1;a<t;a++)n.push(O({h:(r.h+a*o)%360,s:r.s,l:r.l}));return n}function hh(e){var t=O(e).toHsl(),r=t.h;return[O(e),O({h:(r+72)%360,s:t.s,l:t.l}),O({h:(r+216)%360,s:t.s,l:t.l})]}function vh(e,t,r){t=t||6,r=r||30;var n=O(e).toHsl(),o=360/r,a=[O(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,a.push(O(n));return a}function ph(e,t){t=t||6;for(var r=O(e).toHsv(),n=r.h,o=r.s,a=r.v,s=[],i=1/t;t--;)s.push(O({h:n,s:o,v:a})),a=(a+i)%1;return s}O.mix=function(e,t,r){r=r===0?0:r||50;var n=O(e).toRgb(),o=O(t).toRgb(),a=r/100,s={r:(o.r-n.r)*a+n.r,g:(o.g-n.g)*a+n.g,b:(o.b-n.b)*a+n.b,a:(o.a-n.a)*a+n.a};return O(s)},O.readability=function(e,t){var r=O(e),n=O(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},O.isReadable=function(e,t,r){var n=O.readability(e,t),o,a;switch(a=!1,o=wh(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},O.mostReadable=function(e,t,r){var n=null,o=0,a,s,i,l;r=r||{},s=r.includeFallbackColors,i=r.level,l=r.size;for(var c=0;c<t.length;c++)a=O.readability(e,t[c]),a>o&&(o=a,n=O(t[c]));return O.isReadable(e,n,{level:i,size:l})||!s?n:(r.includeFallbackColors=!1,O.mostReadable(e,["#fff","#000"],r))};var Pn=O.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"},gh=O.hexNames=mh(Pn);function mh(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function il(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function J(e,t){yh(e)&&(e="100%");var r=bh(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 Fr(e){return Math.min(1,Math.max(0,e))}function Se(e){return parseInt(e,16)}function yh(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function bh(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Pe(e){return e.length==1?"0"+e:""+e}function er(e){return e<=1&&(e=e*100+"%"),e}function ll(e){return Math.round(parseFloat(e)*255).toString(16)}function sl(e){return Se(e)/255}var $e=(function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Ue(e){return!!$e.CSS_UNIT.exec(e)}function Ch(e){e=e.replace(Zd,"").replace(Qd,"").toLowerCase();var t=!1;if(Pn[e])e=Pn[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=$e.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=$e.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=$e.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=$e.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=$e.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=$e.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=$e.hex8.exec(e))?{r:Se(r[1]),g:Se(r[2]),b:Se(r[3]),a:sl(r[4]),format:t?"name":"hex8"}:(r=$e.hex6.exec(e))?{r:Se(r[1]),g:Se(r[2]),b:Se(r[3]),format:t?"name":"hex"}:(r=$e.hex4.exec(e))?{r:Se(r[1]+""+r[1]),g:Se(r[2]+""+r[2]),b:Se(r[3]+""+r[3]),a:sl(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=$e.hex3.exec(e))?{r:Se(r[1]+""+r[1]),g:Se(r[2]+""+r[2]),b:Se(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function wh(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 ul=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Mr={},cl;function Sh(){if(cl)return Mr;cl=1;var e=e||{};e.stringify=(function(){var t={"visit_linear-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-linear-gradient":function(r){return t.visit_gradient(r)},"visit_radial-gradient":function(r){return t.visit_gradient(r)},"visit_repeating-radial-gradient":function(r){return t.visit_gradient(r)},visit_gradient:function(r){var n=t.visit(r.orientation);return n&&(n+=", "),r.type+"("+n+t.visit(r.colorStops)+")"},visit_shape:function(r){var n=r.value,o=t.visit(r.at),a=t.visit(r.style);return a&&(n+=" "+a),o&&(n+=" at "+o),n},"visit_default-radial":function(r){var n="",o=t.visit(r.at);return o&&(n+=o),n},"visit_extent-keyword":function(r){var n=r.value,o=t.visit(r.at);return o&&(n+=" at "+o),n},"visit_position-keyword":function(r){return r.value},visit_position:function(r){return t.visit(r.value.x)+" "+t.visit(r.value.y)},"visit_%":function(r){return r.value+"%"},visit_em:function(r){return r.value+"em"},visit_px:function(r){return r.value+"px"},visit_literal:function(r){return t.visit_color(r.value,r)},visit_hex:function(r){return t.visit_color("#"+r.value,r)},visit_rgb:function(r){return t.visit_color("rgb("+r.value.join(", ")+")",r)},visit_rgba:function(r){return t.visit_color("rgba("+r.value.join(", ")+")",r)},visit_color:function(r,n){var o=r,a=t.visit(n.length);return a&&(o+=" "+a),o},visit_angular:function(r){return r.value+"deg"},visit_directional:function(r){return"to "+r.value},visit_array:function(r){var n="",o=r.length;return r.forEach(function(a,s){n+=t.visit(a),s<o-1&&(n+=", ")}),n},visit:function(r){if(!r)return"";var n="";if(r instanceof Array)return t.visit_array(r,n);if(r.type){var o=t["visit_"+r.type];if(o)return o(r);throw Error("Missing visitor visit_"+r.type)}else throw Error("Invalid node.")}};return function(r){return t.visit(r)}})();var e=e||{};return e.parse=(function(){var t={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},r="";function n(j){var D=new Error(r+": "+j);throw D.source=r,D}function o(){var j=a();return r.length>0&&n("Invalid input not EOF"),j}function a(){return w(s)}function s(){return i("linear-gradient",t.linearGradient,c)||i("repeating-linear-gradient",t.repeatingLinearGradient,c)||i("radial-gradient",t.radialGradient,d)||i("repeating-radial-gradient",t.repeatingRadialGradient,d)}function i(j,D,K){return l(D,function(be){var De=K();return De&&(L(t.comma)||n("Missing comma before color stops")),{type:j,orientation:De,colorStops:w(k)}})}function l(j,D){var K=L(j);if(K){L(t.startCall)||n("Missing (");var be=D(K);return L(t.endCall)||n("Missing )"),be}}function c(){return u()||f()}function u(){return P("directional",t.sideOrCorner,1)}function f(){return P("angular",t.angleValue,1)}function d(){var j,D=h(),K;return D&&(j=[],j.push(D),K=r,L(t.comma)&&(D=h(),D?j.push(D):r=K)),j}function h(){var j=m()||y();if(j)j.at=p();else{var D=v();if(D){j=D;var K=p();K&&(j.at=K)}else{var be=g();be&&(j={type:"default-radial",at:be})}}return j}function m(){var j=P("shape",/^(circle)/i,0);return j&&(j.style=A()||v()),j}function y(){var j=P("shape",/^(ellipse)/i,0);return j&&(j.style=R()||v()),j}function v(){return P("extent-keyword",t.extentKeywords,1)}function p(){if(P("position",/^at/,0)){var j=g();return j||n("Missing positioning value"),j}}function g(){var j=b();if(j.x||j.y)return{type:"position",value:j}}function b(){return{x:R(),y:R()}}function w(j){var D=j(),K=[];if(D)for(K.push(D);L(t.comma);)D=j(),D?K.push(D):n("One extra comma");return K}function k(){var j=_();return j||n("Expected color definition"),j.length=R(),j}function _(){return H()||W()||N()||F()}function F(){return P("literal",t.literalColor,0)}function H(){return P("hex",t.hexColor,1)}function N(){return l(t.rgbColor,function(){return{type:"rgb",value:w(C)}})}function W(){return l(t.rgbaColor,function(){return{type:"rgba",value:w(C)}})}function C(){return L(t.number)[1]}function R(){return P("%",t.percentageValue,1)||q()||A()}function q(){return P("position-keyword",t.positionKeywords,1)}function A(){return P("px",t.pixelValue,1)||P("em",t.emValue,1)}function P(j,D,K){var be=L(D);if(be)return{type:j,value:be[K]}}function L(j){var D,K;return K=/^[\n\r\t\s]+/.exec(r),K&&ue(K[0].length),D=j.exec(r),D&&ue(D[0].length),D}function ue(j){r=r.substr(j)}return function(j){return r=j.toString(),o()}})(),Mr.parse=e.parse,Mr.stringify=e.stringify,Mr}var fl=Sh(),ge="top",ke="bottom",Ee="right",me="left",$n="auto",tr=[ge,ke,Ee,me],Ot="start",rr="end",xh="clippingParents",dl="viewport",nr="popper",Oh="reference",hl=tr.reduce(function(e,t){return e.concat([t+"-"+Ot,t+"-"+rr])},[]),vl=[].concat(tr,[$n]).reduce(function(e,t){return e.concat([t,t+"-"+Ot,t+"-"+rr])},[]),_h="beforeRead",kh="read",Eh="afterRead",Ah="beforeMain",Th="main",Rh="afterMain",jh="beforeWrite",Ph="write",$h="afterWrite",Ih=[_h,kh,Eh,Ah,Th,Rh,jh,Ph,$h];function Me(e){return e?(e.nodeName||"").toLowerCase():null}function xe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ft(e){var t=xe(e).Element;return e instanceof t||e instanceof Element}function Ae(e){var t=xe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function In(e){if(typeof ShadowRoot>"u")return!1;var t=xe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Fh(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!Ae(a)||!Me(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(s){var i=o[s];i===!1?a.removeAttribute(s):a.setAttribute(s,i===!0?"":i)}))})}function Mh(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),i=s.reduce(function(l,c){return l[c]="",l},{});!Ae(o)||!Me(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(l){o.removeAttribute(l)}))})}}const qh={name:"applyStyles",enabled:!0,phase:"write",fn:Fh,effect:Mh,requires:["computeStyles"]};function qe(e){return e.split("-")[0]}var dt=Math.max,qr=Math.min,_t=Math.round;function Fn(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function pl(){return!/^((?!chrome|android).)*safari/i.test(Fn())}function kt(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Ae(e)&&(o=e.offsetWidth>0&&_t(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&_t(n.height)/e.offsetHeight||1);var s=ft(e)?xe(e):window,i=s.visualViewport,l=!pl()&&r,c=(n.left+(l&&i?i.offsetLeft:0))/o,u=(n.top+(l&&i?i.offsetTop:0))/a,f=n.width/o,d=n.height/a;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function Mn(e){var t=kt(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 gl(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&In(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function We(e){return xe(e).getComputedStyle(e)}function Nh(e){return["table","td","th"].indexOf(Me(e))>=0}function et(e){return((ft(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nr(e){return Me(e)==="html"?e:e.assignedSlot||e.parentNode||(In(e)?e.host:null)||et(e)}function ml(e){return!Ae(e)||We(e).position==="fixed"?null:e.offsetParent}function Bh(e){var t=/firefox/i.test(Fn()),r=/Trident/i.test(Fn());if(r&&Ae(e)){var n=We(e);if(n.position==="fixed")return null}var o=Nr(e);for(In(o)&&(o=o.host);Ae(o)&&["html","body"].indexOf(Me(o))<0;){var a=We(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 or(e){for(var t=xe(e),r=ml(e);r&&Nh(r)&&We(r).position==="static";)r=ml(r);return r&&(Me(r)==="html"||Me(r)==="body"&&We(r).position==="static")?t:r||Bh(e)||t}function qn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ar(e,t,r){return dt(e,qr(t,r))}function Dh(e,t,r){var n=ar(e,t,r);return n>r?r:n}function yl(){return{top:0,right:0,bottom:0,left:0}}function bl(e){return Object.assign({},yl(),e)}function Cl(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Gh=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,bl(typeof t!="number"?t:Cl(t,tr))};function Lh(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,i=qe(r.placement),l=qn(i),c=[me,Ee].indexOf(i)>=0,u=c?"height":"width";if(!(!a||!s)){var f=Gh(o.padding,r),d=Mn(a),h=l==="y"?ge:me,m=l==="y"?ke:Ee,y=r.rects.reference[u]+r.rects.reference[l]-s[l]-r.rects.popper[u],v=s[l]-r.rects.reference[l],p=or(a),g=p?l==="y"?p.clientHeight||0:p.clientWidth||0:0,b=y/2-v/2,w=f[h],k=g-d[u]-f[m],_=g/2-d[u]/2+b,F=ar(w,_,k),H=l;r.modifiersData[n]=(t={},t[H]=F,t.centerOffset=F-_,t)}}function Hh(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)||gl(t.elements.popper,o)&&(t.elements.arrow=o))}const Vh={name:"arrow",enabled:!0,phase:"main",fn:Lh,effect:Hh,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Et(e){return e.split("-")[1]}var Uh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wh(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:_t(r*o)/o||0,y:_t(n*o)/o||0}}function wl(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=s.x,h=d===void 0?0:d,m=s.y,y=m===void 0?0:m,v=typeof u=="function"?u({x:h,y}):{x:h,y};h=v.x,y=v.y;var p=s.hasOwnProperty("x"),g=s.hasOwnProperty("y"),b=me,w=ge,k=window;if(c){var _=or(r),F="clientHeight",H="clientWidth";if(_===xe(r)&&(_=et(r),We(_).position!=="static"&&i==="absolute"&&(F="scrollHeight",H="scrollWidth")),_=_,o===ge||(o===me||o===Ee)&&a===rr){w=ke;var N=f&&_===k&&k.visualViewport?k.visualViewport.height:_[F];y-=N-n.height,y*=l?1:-1}if(o===me||(o===ge||o===ke)&&a===rr){b=Ee;var W=f&&_===k&&k.visualViewport?k.visualViewport.width:_[H];h-=W-n.width,h*=l?1:-1}}var C=Object.assign({position:i},c&&Uh),R=u===!0?Wh({x:h,y},xe(r)):{x:h,y};if(h=R.x,y=R.y,l){var q;return Object.assign({},C,(q={},q[w]=g?"0":"",q[b]=p?"0":"",q.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",q))}return Object.assign({},C,(t={},t[w]=g?y+"px":"",t[b]=p?h+"px":"",t.transform="",t))}function Kh(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,s=a===void 0?!0:a,i=r.roundOffsets,l=i===void 0?!0:i,c={placement:qe(t.placement),variation:Et(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,wl(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,wl(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const zh={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Kh,data:{}};var Br={passive:!0};function Yh(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,s=n.resize,i=s===void 0?!0:s,l=xe(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",r.update,Br)}),i&&l.addEventListener("resize",r.update,Br),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",r.update,Br)}),i&&l.removeEventListener("resize",r.update,Br)}}const Xh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Yh,data:{}};var Jh={left:"right",right:"left",bottom:"top",top:"bottom"};function Dr(e){return e.replace(/left|right|bottom|top/g,function(t){return Jh[t]})}var Zh={start:"end",end:"start"};function Sl(e){return e.replace(/start|end/g,function(t){return Zh[t]})}function Nn(e){var t=xe(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Bn(e){return kt(et(e)).left+Nn(e).scrollLeft}function Qh(e,t){var r=xe(e),n=et(e),o=r.visualViewport,a=n.clientWidth,s=n.clientHeight,i=0,l=0;if(o){a=o.width,s=o.height;var c=pl();(c||!c&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:i+Bn(e),y:l}}function ev(e){var t,r=et(e),n=Nn(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=dt(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=dt(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-n.scrollLeft+Bn(e),l=-n.scrollTop;return We(o||r).direction==="rtl"&&(i+=dt(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:i,y:l}}function Dn(e){var t=We(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function xl(e){return["html","body","#document"].indexOf(Me(e))>=0?e.ownerDocument.body:Ae(e)&&Dn(e)?e:xl(Nr(e))}function ir(e,t){var r;t===void 0&&(t=[]);var n=xl(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=xe(n),s=o?[a].concat(a.visualViewport||[],Dn(n)?n:[]):n,i=t.concat(s);return o?i:i.concat(ir(Nr(s)))}function Gn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function tv(e,t){var r=kt(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 Ol(e,t,r){return t===dl?Gn(Qh(e,r)):ft(t)?tv(t,r):Gn(ev(et(e)))}function rv(e){var t=ir(Nr(e)),r=["absolute","fixed"].indexOf(We(e).position)>=0,n=r&&Ae(e)?or(e):e;return ft(n)?t.filter(function(o){return ft(o)&&gl(o,n)&&Me(o)!=="body"}):[]}function nv(e,t,r,n){var o=t==="clippingParents"?rv(e):[].concat(t),a=[].concat(o,[r]),s=a[0],i=a.reduce(function(l,c){var u=Ol(e,c,n);return l.top=dt(u.top,l.top),l.right=qr(u.right,l.right),l.bottom=qr(u.bottom,l.bottom),l.left=dt(u.left,l.left),l},Ol(e,s,n));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function _l(e){var t=e.reference,r=e.element,n=e.placement,o=n?qe(n):null,a=n?Et(n):null,s=t.x+t.width/2-r.width/2,i=t.y+t.height/2-r.height/2,l;switch(o){case ge:l={x:s,y:t.y-r.height};break;case ke:l={x:s,y:t.y+t.height};break;case Ee:l={x:t.x+t.width,y:i};break;case me:l={x:t.x-r.width,y:i};break;default:l={x:t.x,y:t.y}}var c=o?qn(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Ot:l[c]=l[c]-(t[u]/2-r[u]/2);break;case rr:l[c]=l[c]+(t[u]/2-r[u]/2);break}}return l}function lr(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,s=a===void 0?e.strategy:a,i=r.boundary,l=i===void 0?xh:i,c=r.rootBoundary,u=c===void 0?dl:c,f=r.elementContext,d=f===void 0?nr:f,h=r.altBoundary,m=h===void 0?!1:h,y=r.padding,v=y===void 0?0:y,p=bl(typeof v!="number"?v:Cl(v,tr)),g=d===nr?Oh:nr,b=e.rects.popper,w=e.elements[m?g:d],k=nv(ft(w)?w:w.contextElement||et(e.elements.popper),l,u,s),_=kt(e.elements.reference),F=_l({reference:_,element:b,placement:o}),H=Gn(Object.assign({},b,F)),N=d===nr?H:_,W={top:k.top-N.top+p.top,bottom:N.bottom-k.bottom+p.bottom,left:k.left-N.left+p.left,right:N.right-k.right+p.right},C=e.modifiersData.offset;if(d===nr&&C){var R=C[o];Object.keys(W).forEach(function(q){var A=[Ee,ke].indexOf(q)>=0?1:-1,P=[ge,ke].indexOf(q)>=0?"y":"x";W[q]+=R[P]*A})}return W}function ov(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,s=r.padding,i=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?vl:l,u=Et(n),f=u?i?hl:hl.filter(function(m){return Et(m)===u}):tr,d=f.filter(function(m){return c.indexOf(m)>=0});d.length===0&&(d=f);var h=d.reduce(function(m,y){return m[y]=lr(e,{placement:y,boundary:o,rootBoundary:a,padding:s})[qe(y)],m},{});return Object.keys(h).sort(function(m,y){return h[m]-h[y]})}function av(e){if(qe(e)===$n)return[];var t=Dr(e);return[Sl(e),t,Sl(t)]}function iv(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,i=s===void 0?!0:s,l=r.fallbackPlacements,c=r.padding,u=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,m=h===void 0?!0:h,y=r.allowedAutoPlacements,v=t.options.placement,p=qe(v),g=p===v,b=l||(g||!m?[Dr(v)]:av(v)),w=[v].concat(b).reduce(function(at,Ge){return at.concat(qe(Ge)===$n?ov(t,{placement:Ge,boundary:u,rootBoundary:f,padding:c,flipVariations:m,allowedAutoPlacements:y}):Ge)},[]),k=t.rects.reference,_=t.rects.popper,F=new Map,H=!0,N=w[0],W=0;W<w.length;W++){var C=w[W],R=qe(C),q=Et(C)===Ot,A=[ge,ke].indexOf(R)>=0,P=A?"width":"height",L=lr(t,{placement:C,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),ue=A?q?Ee:me:q?ke:ge;k[P]>_[P]&&(ue=Dr(ue));var j=Dr(ue),D=[];if(a&&D.push(L[R]<=0),i&&D.push(L[ue]<=0,L[j]<=0),D.every(function(at){return at})){N=C,H=!1;break}F.set(C,D)}if(H)for(var K=m?3:1,be=function(Ge){var Sr=w.find(function(fn){var wt=F.get(fn);if(wt)return wt.slice(0,Ge).every(function(Ia){return Ia})});if(Sr)return N=Sr,"break"},De=K;De>0;De--){var Ht=be(De);if(Ht==="break")break}t.placement!==N&&(t.modifiersData[n]._skip=!0,t.placement=N,t.reset=!0)}}const lv={name:"flip",enabled:!0,phase:"main",fn:iv,requiresIfExists:["offset"],data:{_skip:!1}};function kl(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 El(e){return[ge,Ee,ke,me].some(function(t){return e[t]>=0})}function sv(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,s=lr(t,{elementContext:"reference"}),i=lr(t,{altBoundary:!0}),l=kl(s,n),c=kl(i,o,a),u=El(l),f=El(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const uv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sv};function cv(e,t,r){var n=qe(e),o=[me,ge].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=a[0],i=a[1];return s=s||0,i=(i||0)*o,[me,Ee].indexOf(n)>=0?{x:i,y:s}:{x:s,y:i}}function fv(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,s=vl.reduce(function(u,f){return u[f]=cv(f,t.rects,a),u},{}),i=s[t.placement],l=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}const dv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fv};function hv(e){var t=e.state,r=e.name;t.modifiersData[r]=_l({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const vv={name:"popperOffsets",enabled:!0,phase:"read",fn:hv,data:{}};function pv(e){return e==="x"?"y":"x"}function gv(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,s=r.altAxis,i=s===void 0?!1:s,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,m=r.tetherOffset,y=m===void 0?0:m,v=lr(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),p=qe(t.placement),g=Et(t.placement),b=!g,w=qn(p),k=pv(w),_=t.modifiersData.popperOffsets,F=t.rects.reference,H=t.rects.popper,N=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,W=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(_){if(a){var q,A=w==="y"?ge:me,P=w==="y"?ke:Ee,L=w==="y"?"height":"width",ue=_[w],j=ue+v[A],D=ue-v[P],K=h?-H[L]/2:0,be=g===Ot?F[L]:H[L],De=g===Ot?-H[L]:-F[L],Ht=t.elements.arrow,at=h&&Ht?Mn(Ht):{width:0,height:0},Ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:yl(),Sr=Ge[A],fn=Ge[P],wt=ar(0,F[L],at[L]),Ia=b?F[L]/2-K-wt-Sr-W.mainAxis:be-wt-Sr-W.mainAxis,Xb=b?-F[L]/2+K+wt+fn+W.mainAxis:De+wt+fn+W.mainAxis,Fa=t.elements.arrow&&or(t.elements.arrow),Jb=Fa?w==="y"?Fa.clientTop||0:Fa.clientLeft||0:0,Ac=(q=C?.[w])!=null?q:0,Zb=ue+Ia-Ac-Jb,Qb=ue+Xb-Ac,Tc=ar(h?qr(j,Zb):j,ue,h?dt(D,Qb):D);_[w]=Tc,R[w]=Tc-ue}if(i){var Rc,e0=w==="x"?ge:me,t0=w==="x"?ke:Ee,St=_[k],dn=k==="y"?"height":"width",jc=St+v[e0],Pc=St-v[t0],Ma=[ge,me].indexOf(p)!==-1,$c=(Rc=C?.[k])!=null?Rc:0,Ic=Ma?jc:St-F[dn]-H[dn]-$c+W.altAxis,Fc=Ma?St+F[dn]+H[dn]-$c-W.altAxis:Pc,Mc=h&&Ma?Dh(Ic,St,Fc):ar(h?Ic:jc,St,h?Fc:Pc);_[k]=Mc,R[k]=Mc-St}t.modifiersData[n]=R}}const mv={name:"preventOverflow",enabled:!0,phase:"main",fn:gv,requiresIfExists:["offset"]};function yv(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function bv(e){return e===xe(e)||!Ae(e)?Nn(e):yv(e)}function Cv(e){var t=e.getBoundingClientRect(),r=_t(t.width)/e.offsetWidth||1,n=_t(t.height)/e.offsetHeight||1;return r!==1||n!==1}function wv(e,t,r){r===void 0&&(r=!1);var n=Ae(t),o=Ae(t)&&Cv(t),a=et(t),s=kt(e,o,r),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Me(t)!=="body"||Dn(a))&&(i=bv(t)),Ae(t)?(l=kt(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Bn(a))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function Sv(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(i){if(!r.has(i)){var l=t.get(i);l&&o(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function xv(e){var t=Sv(e);return Ih.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Ov(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function _v(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 Al={placement:"bottom",modifiers:[],strategy:"absolute"};function Tl(){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 kv(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?Al:o;return function(i,l,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Al,a),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:u,setOptions:function(p){var g=typeof p=="function"?p(u.options):p;y(),u.options=Object.assign({},a,u.options,g),u.scrollParents={reference:ft(i)?ir(i):i.contextElement?ir(i.contextElement):[],popper:ir(l)};var b=xv(_v([].concat(n,u.options.modifiers)));return u.orderedModifiers=b.filter(function(w){return w.enabled}),m(),h.update()},forceUpdate:function(){if(!d){var p=u.elements,g=p.reference,b=p.popper;if(Tl(g,b)){u.rects={reference:wv(g,or(b),u.options.strategy==="fixed"),popper:Mn(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(W){return u.modifiersData[W.name]=Object.assign({},W.data)});for(var w=0;w<u.orderedModifiers.length;w++){if(u.reset===!0){u.reset=!1,w=-1;continue}var k=u.orderedModifiers[w],_=k.fn,F=k.options,H=F===void 0?{}:F,N=k.name;typeof _=="function"&&(u=_({state:u,options:H,name:N,instance:h})||u)}}}},update:Ov(function(){return new Promise(function(v){h.forceUpdate(),v(u)})}),destroy:function(){y(),d=!0}};if(!Tl(i,l))return h;h.setOptions(c).then(function(v){!d&&c.onFirstUpdate&&c.onFirstUpdate(v)});function m(){u.orderedModifiers.forEach(function(v){var p=v.name,g=v.options,b=g===void 0?{}:g,w=v.effect;if(typeof w=="function"){var k=w({state:u,name:p,instance:h,options:b}),_=function(){};f.push(k||_)}})}function y(){f.forEach(function(v){return v()}),f=[]}return h}}var Ev=[Xh,vv,zh,qh,dv,lv,mv,Vh,uv],Av=kv({defaultModifiers:Ev});function Tv(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 Rl(e,t,r){return r&&Tv(e,r),e}function Gr(){return(Gr=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 jl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Pl(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 $l(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var Il=Object.prototype,Fl=Il.toString,Rv=Il.hasOwnProperty,Ml=/^\s*function (\w+)/;function ql(e){var t,r=(t=e?.type)!==null&&t!==void 0?t:e;if(r){var n=r.toString().match(Ml);return n?n[1]:""}return""}var ht=function(e){var t,r;return $l(e)!==!1&&typeof(t=e.constructor)=="function"&&$l(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1},Nl=function(e){return e},ye=Nl;if(process.env.NODE_ENV!=="production"){var jv=typeof console<"u";ye=jv?function(e){console.warn("[VueTypes warn]: "+e)}:Nl}var sr=function(e,t){return Rv.call(e,t)},Pv=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},At=Array.isArray||function(e){return Fl.call(e)==="[object Array]"},Tt=function(e){return Fl.call(e)==="[object Function]"},Lr=function(e){return ht(e)&&sr(e,"_vueTypes_name")},Bl=function(e){return ht(e)&&(sr(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return sr(e,t)}))};function Ln(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function vt(e,t,r){var n,o=!0,a="";n=ht(e)?e:{type:e};var s=Lr(n)?n._vueTypes_name+" - ":"";if(Bl(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t===void 0)return o;At(n.type)?(o=n.type.some(function(f){return vt(f,t)===!0}),a=n.type.map(function(f){return ql(f)}).join(" or ")):o=(a=ql(n))==="Array"?At(t):a==="Object"?ht(t):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?(function(f){if(f==null)return"";var d=f.constructor.toString().match(Ml);return d?d[1]:""})(t)===a:t instanceof n.type}if(!o){var i=s+'value "'+t+'" should be of type "'+a+'"';return i}if(sr(n,"validator")&&Tt(n.validator)){var l=ye,c=[];if(ye=function(f){c.push(f)},o=n.validator(t),ye=l,!o){var u=(c.length>1?"* ":"")+c.join(`
|
|
12
|
+
* `);return c.length=0,u}}return o}function Oe(e,t){var r=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(o){return o!==void 0||this.default?Tt(o)||vt(this,o)===!0?(this.default=At(o)?function(){return[].concat(o)}:ht(o)?function(){return Object.assign({},o)}:o,this):(ye(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),n=r.validator;return Tt(n)&&(r.validator=Ln(n,r)),r}function Ne(e,t){var r=Oe(e,t);return Object.defineProperty(r,"validate",{value:function(n){return Tt(this.validator)&&ye(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
|
|
13
|
+
`+JSON.stringify(this)),this.validator=Ln(n,this),this}})}function Dl(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,!ht(r))return a;var s,i,l=r.validator,c=Pl(r,["validator"]);if(Tt(l)){var u=a.validator;u&&(u=(i=(s=u).__original)!==null&&i!==void 0?i:s),a.validator=Ln(u?function(f){return u.call(this,f)&&l.call(this,f)}:l,a)}return Object.assign(a,c)}function Hr(e){return e.replace(/^(?!\s*$)/gm," ")}var $v=function(){return Ne("any",{})},Iv=function(){return Ne("function",{type:Function})},Fv=function(){return Ne("boolean",{type:Boolean})},Mv=function(){return Ne("string",{type:String})},qv=function(){return Ne("number",{type:Number})},Nv=function(){return Ne("array",{type:Array})},Bv=function(){return Ne("object",{type:Object})},Dv=function(){return Oe("integer",{type:Number,validator:function(e){return Pv(e)}})},Gv=function(){return Oe("symbol",{validator:function(e){return typeof e=="symbol"}})};function Lv(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return Oe(e.name||"<<anonymous function>>",{validator:function(r){var n=e(r);return n||ye(this._vueTypes_name+" - "+t),n}})}function Hv(e){if(!At(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',r=e.reduce(function(n,o){if(o!=null){var a=o.constructor;n.indexOf(a)===-1&&n.push(a)}return n},[]);return Oe("oneOf",{type:r.length>0?r:void 0,validator:function(n){var o=e.indexOf(n)!==-1;return o||ye(t),o}})}function Vv(e){if(!At(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(Bl(o)){if(Lr(o)&&o._vueTypes_name==="oneOf"){r=r.concat(o.type);continue}if(Tt(o.validator)&&(t=!0),o.type!==!0&&o.type){r=r.concat(o.type);continue}}r.push(o)}return r=r.filter(function(a,s){return r.indexOf(a)===s}),Oe("oneOfType",t?{type:r,validator:function(a){var s=[],i=e.some(function(l){var c=vt(Lr(l)&&l._vueTypes_name==="oneOf"?l.type||null:l,a);return typeof c=="string"&&s.push(c),c===!0});return i||ye("oneOfType - provided value does not match any of the "+s.length+` passed-in validators:
|
|
14
14
|
`+Hr(s.join(`
|
|
15
|
-
`))),i}}:{type:r})}function
|
|
16
|
-
`+Hr(r)),n}})}function
|
|
17
|
-
`+Hr(r)),n}})}function
|
|
18
|
-
`+Hr(c)),c===!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(At(t))return t.forEach(function(f){return r.extend(f)}),this;var n=t.name,o=t.validate,a=o!==void 0&&o,s=t.getter,i=s!==void 0&&s,l=jl(t,["name","validate","getter"]);if(sr(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var c,u=l.type;return Gr(u)?(delete l.type,Object.defineProperty(this,n,i?{get:function(){return Bl(n,u,l)}}:{value:function(){var f,d=Bl(n,u,l);return d.validator&&(d.validator=(f=d.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d}})):(c=i?{get:function(){var f=Object.assign({},l);return a?Ne(n,f):Oe(n,f)},enumerable:!0}:{value:function(){var f,d,h=Object.assign({},l);return f=a?Ne(n,h):Oe(n,h),h.validator&&(f.validator=(d=h.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,n,c))},Tl(e,null,[{key:"any",get:function(){return jv()}},{key:"func",get:function(){return Pv().def(this.defaults.func)}},{key:"bool",get:function(){return $v().def(this.defaults.bool)}},{key:"string",get:function(){return Iv().def(this.defaults.string)}},{key:"number",get:function(){return Mv().def(this.defaults.number)}},{key:"array",get:function(){return Fv().def(this.defaults.array)}},{key:"object",get:function(){return qv().def(this.defaults.object)}},{key:"integer",get:function(){return Nv().def(this.defaults.integer)}},{key:"symbol",get:function(){return Bv()}}]),e})();function Kv(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 Rl(n,r),Tl(n,null,[{key:"sensibleDefaults",get:function(){return Lr({},this.defaults)},set:function(o){this.defaults=o!==!1?Lr({},o!==!0?o:e):{}}}]),n})(Be)).defaults=Lr({},e),t}Be.defaults={},Be.custom=Dv,Be.oneOf=Lv,Be.instanceOf=Vv,Be.oneOfType=Gv,Be.arrayOf=Hv,Be.objectOf=Uv,Be.shape=Wv,Be.utils={validate:function(e,t){return vt(t,e)===!0},toType:function(e,t,r){return r===void 0&&(r=!1),r?Ne(e,t):Oe(e,t)}};var I=(function(e){function t(){return e.apply(this,arguments)||this}return Rl(t,e),t})(Kv()),Dl={},ur,Ll;function Ie(){if(Ll)return ur;Ll=1;var e=function(t){return t&&t.Math===Math&&t};return ur=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof sl=="object"&&sl)||e(typeof ur=="object"&&ur)||(function(){return this})()||Function("return this")(),ur}var Hn,Gl;function pt(){return Gl||(Gl=1,Hn=function(e){try{return!!e()}catch{return!0}}),Hn}var Vn,Hl;function gt(){if(Hl)return Vn;Hl=1;var e=pt();return Vn=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Vn}var Un={exports:{}},Wn,Vl;function Ul(){if(Vl)return Wn;Vl=1;var e=pt();return Wn=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),Wn}var Kn,Wl;function cr(){if(Wl)return Kn;Wl=1;var e=Ul(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return Kn=e?n:function(o){return function(){return r.apply(o,arguments)}},Kn}var zn,Kl;function tt(){if(Kl)return zn;Kl=1;var e=typeof document=="object"&&document.all;return zn=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},zn}var Yn,zl;function Yl(){return zl||(zl=1,Yn=function(e){return e==null}),Yn}var Xn,Xl;function zv(){if(Xl)return Xn;Xl=1;var e=Yl(),t=TypeError;return Xn=function(r){if(e(r))throw new t("Can't call method on "+r);return r},Xn}var Jn,Jl;function Yv(){if(Jl)return Jn;Jl=1;var e=zv(),t=Object;return Jn=function(r){return t(e(r))},Jn}var Zn,Zl;function Vr(){if(Zl)return Zn;Zl=1;var e=cr(),t=Yv(),r=e({}.hasOwnProperty);return Zn=Object.hasOwn||function(o,a){return r(t(o),a)},Zn}var Qn,Ql;function Xv(){if(Ql)return Qn;Ql=1;var e=gt(),t=Vr(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,o=t(r,"name"),a=o&&(function(){}).name==="something",s=o&&(!e||e&&n(r,"name").configurable);return Qn={EXISTS:o,PROPER:a,CONFIGURABLE:s},Qn}var eo={exports:{}},to,es;function Jv(){return es||(es=1,to=!1),to}var ro,ts;function Zv(){if(ts)return ro;ts=1;var e=Ie(),t=Object.defineProperty;return ro=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},ro}var rs;function no(){if(rs)return eo.exports;rs=1;var e=Jv(),t=Ie(),r=Zv(),n="__core-js_shared__",o=eo.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"}),eo.exports}var oo,ns;function Qv(){if(ns)return oo;ns=1;var e=cr(),t=tt(),r=no(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(o){return n(o)}),oo=r.inspectSource,oo}var ao,os;function ep(){if(os)return ao;os=1;var e=Ie(),t=tt(),r=e.WeakMap;return ao=t(r)&&/native code/.test(String(r)),ao}var io,as;function fr(){if(as)return io;as=1;var e=tt();return io=function(t){return typeof t=="object"?t!==null:e(t)},io}var lo={},so,is;function tp(){if(is)return so;is=1;var e=Ie(),t=fr(),r=e.document,n=t(r)&&t(r.createElement);return so=function(o){return n?r.createElement(o):{}},so}var uo,ls;function rp(){if(ls)return uo;ls=1;var e=gt(),t=pt(),r=tp();return uo=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),uo}var co,ss;function np(){if(ss)return co;ss=1;var e=gt(),t=pt();return co=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),co}var fo,us;function cs(){if(us)return fo;us=1;var e=fr(),t=String,r=TypeError;return fo=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},fo}var ho,fs;function ds(){if(fs)return ho;fs=1;var e=Ul(),t=Function.prototype.call;return ho=e?t.bind(t):function(){return t.apply(t,arguments)},ho}var vo,hs;function op(){if(hs)return vo;hs=1;var e=Ie(),t=tt(),r=function(n){return t(n)?n:void 0};return vo=function(n,o){return arguments.length<2?r(e[n]):e[n]&&e[n][o]},vo}var po,vs;function ap(){if(vs)return po;vs=1;var e=cr();return po=e({}.isPrototypeOf),po}var go,ps;function ip(){if(ps)return go;ps=1;var e=Ie(),t=e.navigator,r=t&&t.userAgent;return go=r?String(r):"",go}var mo,gs;function lp(){if(gs)return mo;gs=1;var e=Ie(),t=ip(),r=e.process,n=e.Deno,o=r&&r.versions||n&&n.version,a=o&&o.v8,s,i;return a&&(s=a.split("."),i=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!i&&t&&(s=t.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=t.match(/Chrome\/(\d+)/),s&&(i=+s[1]))),mo=i,mo}var yo,ms;function ys(){if(ms)return yo;ms=1;var e=lp(),t=pt(),r=Ie(),n=r.String;return yo=!!Object.getOwnPropertySymbols&&!t(function(){var o=Symbol("symbol detection");return!n(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&e&&e<41}),yo}var bo,bs;function Cs(){if(bs)return bo;bs=1;var e=ys();return bo=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",bo}var Co,ws;function Ss(){if(ws)return Co;ws=1;var e=op(),t=tt(),r=ap(),n=Cs(),o=Object;return Co=n?function(a){return typeof a=="symbol"}:function(a){var s=e("Symbol");return t(s)&&r(s.prototype,o(a))},Co}var wo,xs;function sp(){if(xs)return wo;xs=1;var e=String;return wo=function(t){try{return e(t)}catch{return"Object"}},wo}var So,Os;function up(){if(Os)return So;Os=1;var e=tt(),t=sp(),r=TypeError;return So=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},So}var xo,_s;function cp(){if(_s)return xo;_s=1;var e=up(),t=Yl();return xo=function(r,n){var o=r[n];return t(o)?void 0:e(o)},xo}var Oo,ks;function fp(){if(ks)return Oo;ks=1;var e=ds(),t=tt(),r=fr(),n=TypeError;return Oo=function(o,a){var s,i;if(a==="string"&&t(s=o.toString)&&!r(i=e(s,o))||t(s=o.valueOf)&&!r(i=e(s,o))||a!=="string"&&t(s=o.toString)&&!r(i=e(s,o)))return i;throw new n("Can't convert object to primitive value")},Oo}var _o,Es;function As(){if(Es)return _o;Es=1;var e=no();return _o=function(t,r){return e[t]||(e[t]=r||{})},_o}var ko,Ts;function Rs(){if(Ts)return ko;Ts=1;var e=cr(),t=0,r=Math.random(),n=e(1 .toString);return ko=function(o){return"Symbol("+(o===void 0?"":o)+")_"+n(++t+r,36)},ko}var Eo,js;function dp(){if(js)return Eo;js=1;var e=Ie(),t=As(),r=Vr(),n=Rs(),o=ys(),a=Cs(),s=e.Symbol,i=t("wks"),l=a?s.for||s:s&&s.withoutSetter||n;return Eo=function(c){return r(i,c)||(i[c]=o&&r(s,c)?s[c]:l("Symbol."+c)),i[c]},Eo}var Ao,Ps;function hp(){if(Ps)return Ao;Ps=1;var e=ds(),t=fr(),r=Ss(),n=cp(),o=fp(),a=dp(),s=TypeError,i=a("toPrimitive");return Ao=function(l,c){if(!t(l)||r(l))return l;var u=n(l,i),f;if(u){if(c===void 0&&(c="default"),f=e(u,l,c),!t(f)||r(f))return f;throw new s("Can't convert object to primitive value")}return c===void 0&&(c="number"),o(l,c)},Ao}var To,$s;function vp(){if($s)return To;$s=1;var e=hp(),t=Ss();return To=function(r){var n=e(r,"string");return t(n)?n:n+""},To}var Is;function Ms(){if(Is)return lo;Is=1;var e=gt(),t=rp(),r=np(),n=cs(),o=vp(),a=TypeError,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l="enumerable",c="configurable",u="writable";return lo.f=e?r?function(d,h,m){if(n(d),h=o(h),n(m),typeof d=="function"&&h==="prototype"&&"value"in m&&u in m&&!m[u]){var y=i(d,h);y&&y[u]&&(d[h]=m.value,m={configurable:c in m?m[c]:y[c],enumerable:l in m?m[l]:y[l],writable:!1})}return s(d,h,m)}:s:function(d,h,m){if(n(d),h=o(h),n(m),t)try{return s(d,h,m)}catch{}if("get"in m||"set"in m)throw new a("Accessors not supported");return"value"in m&&(d[h]=m.value),d},lo}var Ro,Fs;function pp(){return Fs||(Fs=1,Ro=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),Ro}var jo,qs;function gp(){if(qs)return jo;qs=1;var e=gt(),t=Ms(),r=pp();return jo=e?function(n,o,a){return t.f(n,o,r(1,a))}:function(n,o,a){return n[o]=a,n},jo}var Po,Ns;function mp(){if(Ns)return Po;Ns=1;var e=As(),t=Rs(),r=e("keys");return Po=function(n){return r[n]||(r[n]=t(n))},Po}var $o,Bs;function yp(){return Bs||(Bs=1,$o={}),$o}var Io,Ds;function bp(){if(Ds)return Io;Ds=1;var e=ep(),t=Ie(),r=fr(),n=gp(),o=Vr(),a=no(),s=mp(),i=yp(),l="Object already initialized",c=t.TypeError,u=t.WeakMap,f,d,h,m=function(g){return h(g)?d(g):f(g,{})},y=function(g){return function(b){var w;if(!r(b)||(w=d(b)).type!==g)throw new c("Incompatible receiver, "+g+" required");return w}};if(e||a.state){var v=a.state||(a.state=new u);v.get=v.get,v.has=v.has,v.set=v.set,f=function(g,b){if(v.has(g))throw new c(l);return b.facade=g,v.set(g,b),b},d=function(g){return v.get(g)||{}},h=function(g){return v.has(g)}}else{var p=s("state");i[p]=!0,f=function(g,b){if(o(g,p))throw new c(l);return b.facade=g,n(g,p,b),b},d=function(g){return o(g,p)?g[p]:{}},h=function(g){return o(g,p)}}return Io={set:f,get:d,has:h,enforce:m,getterFor:y},Io}var Ls;function Cp(){if(Ls)return Un.exports;Ls=1;var e=cr(),t=pt(),r=tt(),n=Vr(),o=gt(),a=Xv().CONFIGURABLE,s=Qv(),i=bp(),l=i.enforce,c=i.get,u=String,f=Object.defineProperty,d=e("".slice),h=e("".replace),m=e([].join),y=o&&!t(function(){return f(function(){},"length",{value:8}).length!==8}),v=String(String).split("String"),p=Un.exports=function(g,b,w){d(u(b),0,7)==="Symbol("&&(b="["+h(u(b),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),w&&w.getter&&(b="get "+b),w&&w.setter&&(b="set "+b),(!n(g,"name")||a&&g.name!==b)&&(o?f(g,"name",{value:b,configurable:!0}):g.name=b),y&&w&&n(w,"arity")&&g.length!==w.arity&&f(g,"length",{value:w.arity});try{w&&n(w,"constructor")&&w.constructor?o&&f(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch{}var k=l(g);return n(k,"source")||(k.source=m(v,typeof b=="string"?b:"")),g};return Function.prototype.toString=p(function(){return r(this)&&c(this).source||s(this)},"toString"),Un.exports}var Mo,Gs;function wp(){if(Gs)return Mo;Gs=1;var e=Cp(),t=Ms();return Mo=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)},Mo}var Fo,Hs;function Sp(){if(Hs)return Fo;Hs=1;var e=cs();return Fo=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},Fo}var Vs;function xp(){if(Vs)return Dl;Vs=1;var e=Ie(),t=gt(),r=wp(),n=Sp(),o=pt(),a=e.RegExp,s=a.prototype,i=t&&o(function(){var l=!0;try{a(".","d")}catch{l=!1}var c={},u="",f=l?"dgimsy":"gimsy",d=function(v,p){Object.defineProperty(c,v,{get:function(){return u+=p,!0}})},h={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};l&&(h.hasIndices="d");for(var m in h)d(m,h[m]);var y=Object.getOwnPropertyDescriptor(s,"flags").get.call(c);return y!==f||u!==f});return i&&r(s,"flags",{configurable:!0,get:n}),Dl}xp();var Us=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qo(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ur=function(e){return e&&e.Math==Math&&e},oe=Ur(typeof globalThis=="object"&&globalThis)||Ur(typeof window=="object"&&window)||Ur(typeof self=="object"&&self)||Ur(typeof Us=="object"&&Us)||(function(){return this})()||Function("return this")(),Y=function(e){try{return!!e()}catch{return!0}},Te=!Y(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ws={}.propertyIsEnumerable,Ks=Object.getOwnPropertyDescriptor,Op={f:Ks&&!Ws.call({1:2},1)?function(e){var t=Ks(this,e);return!!t&&t.enumerable}:Ws},Wr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_p={}.toString,Ke=function(e){return _p.call(e).slice(8,-1)},kp="".split,Kr=Y(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return Ke(e)=="String"?kp.call(e,""):Object(e)}:Object,rt=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},Rt=function(e){return Kr(rt(e))},le=function(e){return typeof e=="object"?e!==null:typeof e=="function"},No=function(e,t){if(!le(e))return e;var r,n;if(t&&typeof(r=e.toString)=="function"&&!le(n=r.call(e))||typeof(r=e.valueOf)=="function"&&!le(n=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!le(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},Ep={}.hasOwnProperty,ne=function(e,t){return Ep.call(e,t)},Bo=oe.document,Ap=le(Bo)&&le(Bo.createElement),zs=function(e){return Ap?Bo.createElement(e):{}},Ys=!Te&&!Y(function(){return Object.defineProperty(zs("div"),"a",{get:function(){return 7}}).a!=7}),Xs=Object.getOwnPropertyDescriptor,Do={f:Te?Xs:function(e,t){if(e=Rt(e),t=No(t,!0),Ys)try{return Xs(e,t)}catch{}if(ne(e,t))return Wr(!Op.f.call(e,t),e[t])}},ve=function(e){if(!le(e))throw TypeError(String(e)+" is not an object");return e},Js=Object.defineProperty,ze={f:Te?Js:function(e,t,r){if(ve(e),t=No(t,!0),ve(r),Ys)try{return Js(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}},Re=Te?function(e,t,r){return ze.f(e,t,Wr(1,r))}:function(e,t,r){return e[t]=r,e},Lo=function(e,t){try{Re(oe,e,t)}catch{oe[e]=t}return t},mt=oe["__core-js_shared__"]||Lo("__core-js_shared__",{}),Tp=Function.toString;typeof mt.inspectSource!="function"&&(mt.inspectSource=function(e){return Tp.call(e)});var zr,dr,Yr,Zs=mt.inspectSource,Qs=oe.WeakMap,Rp=typeof Qs=="function"&&/native code/.test(Zs(Qs)),eu=qo(function(e){(e.exports=function(t,r){return mt[t]||(mt[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),jp=0,Pp=Math.random(),Go=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++jp+Pp).toString(36)},tu=eu("keys"),Ho=function(e){return tu[e]||(tu[e]=Go(e))},Xr={},$p=oe.WeakMap;if(Rp){var jt=mt.state||(mt.state=new $p),Ip=jt.get,Mp=jt.has,Fp=jt.set;zr=function(e,t){return t.facade=e,Fp.call(jt,e,t),t},dr=function(e){return Ip.call(jt,e)||{}},Yr=function(e){return Mp.call(jt,e)}}else{var hr=Ho("state");Xr[hr]=!0,zr=function(e,t){return t.facade=e,Re(e,hr,t),t},dr=function(e){return ne(e,hr)?e[hr]:{}},Yr=function(e){return ne(e,hr)}}var nt={set:zr,get:dr,has:Yr,enforce:function(e){return Yr(e)?dr(e):zr(e,{})},getterFor:function(e){return function(t){var r;if(!le(t)||(r=dr(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},ot=qo(function(e){var t=nt.get,r=nt.enforce,n=String(String).split("String");(e.exports=function(o,a,s,i){var l,c=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,f=!!i&&!!i.noTargetGet;typeof s=="function"&&(typeof a!="string"||ne(s,"name")||Re(s,"name",a),(l=r(s)).source||(l.source=n.join(typeof a=="string"?a:""))),o!==oe?(c?!f&&o[a]&&(u=!0):delete o[a],u?o[a]=s:Re(o,a,s)):u?o[a]=s:Lo(a,s)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||Zs(this)})}),Vo=oe,ru=function(e){return typeof e=="function"?e:void 0},Jr=function(e,t){return arguments.length<2?ru(Vo[e])||ru(oe[e]):Vo[e]&&Vo[e][t]||oe[e]&&oe[e][t]},qp=Math.ceil,Np=Math.floor,Pt=function(e){return isNaN(e=+e)?0:(e>0?Np:qp)(e)},Bp=Math.min,_e=function(e){return e>0?Bp(Pt(e),9007199254740991):0},Dp=Math.max,Lp=Math.min,Zr=function(e,t){var r=Pt(e);return r<0?Dp(r+t,0):Lp(r,t)},Gp=function(e){return function(t,r,n){var o,a=Rt(t),s=_e(a.length),i=Zr(n,s);if(e&&r!=r){for(;s>i;)if((o=a[i++])!=o)return!0}else for(;s>i;i++)if((e||i in a)&&a[i]===r)return e||i||0;return!e&&-1}},nu={indexOf:Gp(!1)},Hp=nu.indexOf,ou=function(e,t){var r,n=Rt(e),o=0,a=[];for(r in n)!ne(Xr,r)&&ne(n,r)&&a.push(r);for(;t.length>o;)ne(n,r=t[o++])&&(~Hp(a,r)||a.push(r));return a},Qr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vp=Qr.concat("length","prototype"),Up={f:Object.getOwnPropertyNames||function(e){return ou(e,Vp)}},Wp={f:Object.getOwnPropertySymbols},Kp=Jr("Reflect","ownKeys")||function(e){var t=Up.f(ve(e)),r=Wp.f;return r?t.concat(r(e)):t},zp=function(e,t){for(var r=Kp(t),n=ze.f,o=Do.f,a=0;a<r.length;a++){var s=r[a];ne(e,s)||n(e,s,o(t,s))}},Yp=/#|\.prototype\./,vr=function(e,t){var r=Jp[Xp(e)];return r==Qp||r!=Zp&&(typeof t=="function"?Y(t):!!t)},Xp=vr.normalize=function(e){return String(e).replace(Yp,".").toLowerCase()},Jp=vr.data={},Zp=vr.NATIVE="N",Qp=vr.POLYFILL="P",Uo=vr,eg=Do.f,fe=function(e,t){var r,n,o,a,s,i=e.target,l=e.global,c=e.stat;if(r=l?oe:c?oe[i]||Lo(i,{}):(oe[i]||{}).prototype)for(n in t){if(a=t[n],o=e.noTargetGet?(s=eg(r,n))&&s.value:r[n],!Uo(l?n:i+(c?".":"#")+n,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;zp(a,o)}(e.sham||o&&o.sham)&&Re(a,"sham",!0),ot(r,n,a,e)}},Wo=function(e,t){var r=[][e];return!!r&&Y(function(){r.call(null,t||function(){throw 1},1)})},tg=Object.defineProperty,Ko={},au=function(e){throw e},$t=function(e,t){if(ne(Ko,e))return Ko[e];t||(t={});var r=[][e],n=!!ne(t,"ACCESSORS")&&t.ACCESSORS,o=ne(t,0)?t[0]:au,a=ne(t,1)?t[1]:void 0;return Ko[e]=!!r&&!Y(function(){if(n&&!Te)return!0;var s={length:-1};n?tg(s,1,{enumerable:!0,get:au}):s[1]=1,r.call(s,o,a)})},rg=nu.indexOf,iu=[].indexOf,lu=!!iu&&1/[1].indexOf(1,-0)<0,ng=Wo("indexOf"),og=$t("indexOf",{ACCESSORS:!0,1:0});function yt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ag(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 bt(e,t,r){return r&&ag(e,r),e}fe({target:"Array",proto:!0,forced:lu||!ng||!og},{indexOf:function(e){return lu?iu.apply(this,arguments)||0:rg(this,e,arguments.length>1?arguments[1]:void 0)}}),(function(){function e(){yt(this,e)}return bt(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 ig=[].join,lg=Kr!=Object,sg=Wo("join",",");fe({target:"Array",proto:!0,forced:lg||!sg},{join:function(e){return ig.call(Rt(this),e===void 0?",":e)}});var It,en,Ye=function(e){return Object(rt(e))},Mt=Array.isArray||function(e){return Ke(e)=="Array"},su=!!Object.getOwnPropertySymbols&&!Y(function(){return!String(Symbol())}),ug=su&&!Symbol.sham&&typeof Symbol.iterator=="symbol",tn=eu("wks"),pr=oe.Symbol,cg=ug?pr:pr&&pr.withoutSetter||Go,Z=function(e){return ne(tn,e)||(su&&ne(pr,e)?tn[e]=pr[e]:tn[e]=cg("Symbol."+e)),tn[e]},fg=Z("species"),rn=function(e,t){var r;return Mt(e)&&(typeof(r=e.constructor)!="function"||r!==Array&&!Mt(r.prototype)?le(r)&&(r=r[fg])===null&&(r=void 0):r=void 0),new(r===void 0?Array:r)(t===0?0:t)},Ft=function(e,t,r){var n=No(t);n in e?ze.f(e,n,Wr(0,r)):e[n]=r},zo=Jr("navigator","userAgent")||"",uu=oe.process,cu=uu&&uu.versions,fu=cu&&cu.v8;fu?en=(It=fu.split("."))[0]+It[1]:zo&&(!(It=zo.match(/Edge\/(\d+)/))||It[1]>=74)&&(It=zo.match(/Chrome\/(\d+)/))&&(en=It[1]);var nn=en&&+en,dg=Z("species"),Yo=function(e){return nn>=51||!Y(function(){var t=[];return(t.constructor={})[dg]=function(){return{foo:1}},t[e](Boolean).foo!==1})},hg=Yo("splice"),vg=$t("splice",{ACCESSORS:!0,0:0,1:2}),pg=Math.max,gg=Math.min;fe({target:"Array",proto:!0,forced:!hg||!vg},{splice:function(e,t){var r,n,o,a,s,i,l=Ye(this),c=_e(l.length),u=Zr(e,c),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=c-u):(r=f-2,n=gg(pg(Pt(t),0),c-u)),c+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=rn(l,n),a=0;a<n;a++)(s=u+a)in l&&Ft(o,a,l[s]);if(o.length=n,r<n){for(a=u;a<c-n;a++)i=a+r,(s=a+n)in l?l[i]=l[s]:delete l[i];for(a=c;a>c-n+r;a--)delete l[a-1]}else if(r>n)for(a=c-n;a>u;a--)i=a+r-1,(s=a+n-1)in l?l[i]=l[s]:delete l[i];for(a=0;a<r;a++)l[a+u]=arguments[a+2];return l.length=c-n+r,o}});var du={};du[Z("toStringTag")]="z";var Xo=String(du)==="[object z]",mg=Z("toStringTag"),yg=Ke((function(){return arguments})())=="Arguments",hu=Xo?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),mg))=="string"?r:yg?Ke(t):(n=Ke(t))=="Object"&&typeof t.callee=="function"?"Arguments":n},bg=Xo?{}.toString:function(){return"[object "+hu(this)+"]"};Xo||ot(Object.prototype,"toString",bg,{unsafe:!0});var vu=function(){var e=ve(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 pu(e,t){return RegExp(e,t)}var Jo,Zo,gu={UNSUPPORTED_Y:Y(function(){var e=pu("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),BROKEN_CARET:Y(function(){var e=pu("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},on=RegExp.prototype.exec,Cg=String.prototype.replace,mu=on,Qo=(Jo=/a/,Zo=/b*/g,on.call(Jo,"a"),on.call(Zo,"a"),Jo.lastIndex!==0||Zo.lastIndex!==0),yu=gu.UNSUPPORTED_Y||gu.BROKEN_CARET,ea=/()??/.exec("")[1]!==void 0;(Qo||ea||yu)&&(mu=function(e){var t,r,n,o,a=this,s=yu&&a.sticky,i=vu.call(a),l=a.source,c=0,u=e;return s&&((i=i.replace("y","")).indexOf("g")===-1&&(i+="g"),u=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&e[a.lastIndex-1]!==`
|
|
19
|
-
`)&&(l="(?: "+l+")",u=" "+u,c++),r=new RegExp("^(?:"+l+")",i)),
|
|
20
|
-
\v\f\r \u2028\u2029\uFEFF`,an="["+na+"]",Pg=RegExp("^"+an+an+"*"),$g=RegExp(an+an+"*$"),Ig=function(e){return function(t){var r=String(rt(t));return 1&e&&(r=r.replace(Pg,"")),2&e&&(r=r.replace($g,"")),r}},Mg={trim:Ig(3)},Fg=Mg.trim;fe({target:"String",proto:!0,forced:(function(e){return Y(function(){return!!na[e]()||"
"[e]()!="
"||na[e].name!==e})})("trim")},{trim:function(){return Fg(this)}});var qg=Yo("slice"),Ng=$t("slice",{ACCESSORS:!0,0:0,1:2}),Bg=Z("species"),Dg=[].slice,Lg=Math.max;fe({target:"Array",proto:!0,forced:!qg||!Ng},{slice:function(e,t){var r,n,o,a=Rt(this),s=_e(a.length),i=Zr(e,s),l=Zr(t===void 0?s:t,s);if(Mt(a)&&(typeof(r=a.constructor)!="function"||r!==Array&&!Mt(r.prototype)?le(r)&&(r=r[Bg])===null&&(r=void 0):r=void 0,r===Array||r===void 0))return Dg.call(a,i,l);for(n=new(r===void 0?Array:r)(Lg(l-i,0)),o=0;i<l;i++,o++)i in a&&Ft(n,o,a[i]);return n.length=o,n}});var oa=Object.keys||function(e){return ou(e,Qr)},Gg=Y(function(){oa(1)});fe({target:"Object",stat:!0,forced:Gg},{keys:function(e){return oa(Ye(e))}});var aa,Hg=function(e){if(_u(e))throw TypeError("The method doesn't accept regular expressions");return e},Vg=Z("match"),Ug=Do.f,Au="".startsWith,Wg=Math.min,Tu=(function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Vg]=!1,"/./"[e](t)}catch{}}return!1})("startsWith"),Kg=!(Tu||(aa=Ug(String.prototype,"startsWith"),!aa||aa.writable));function Ru(e){return(Ru=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)}fe({target:"String",proto:!0,forced:!Kg&&!Tu},{startsWith:function(e){var t=String(rt(this));Hg(e);var r=_e(Wg(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return Au?Au.call(t,n,r):t.slice(r,r+n.length)===n}});var Nt=function(e){return typeof e=="string"},Bt=function(e){return e!==null&&Ru(e)==="object"},mr=(function(){function e(){yt(this,e)}return bt(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(s){var i;(i=r.drag)===null||i===void 0||i.call(r,s)},a=function s(i){var l;e.removeEventListener(document,"mousemove",o),e.removeEventListener(document,"mouseup",s),document.onselectstart=null,document.ondragstart=null,n=!1,(l=r.end)===null||l===void 0||l.call(r,i)};e.addEventListener(t,"mousedown",function(s){var i;n||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},e.addEventListener(document,"mousemove",o),e.addEventListener(document,"mouseup",a),n=!0,(i=r.start)===null||i===void 0||i.call(r,s))})}},{key:"getBoundingClientRect",value:function(t){return t&&Bt(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,r){return!!(t&&Bt(t)&&Nt(r)&&t.nodeType===1)&&t.classList.contains(r.trim())}},{key:"addClass",value:function(t,r){if(t&&Bt(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&&Bt(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&&Bt(t)&&Nt(r)&&t.nodeType===1&&t.classList.toggle(r,n)}},{key:"replaceClass",value:function(t,r,n){t&&Bt(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,s=Math.abs(o-r.clientX),i=Math.abs(a-r.clientY),l=i/Math.sqrt(Math.pow(s,2)+Math.pow(i,2)),c=Math.acos(l),u=Math.floor(180/(Math.PI/c));return r.clientX>o&&r.clientY>a&&(u=180-u),r.clientX==o&&r.clientY>a&&(u=180),r.clientX>o&&r.clientY==a&&(u=90),r.clientX<o&&r.clientY>a&&(u=180+u),r.clientX<o&&r.clientY==a&&(u=270),r.clientX<o&&r.clientY<a&&(u=360-u),u}},{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 s=0;s<o.length;s++)o[s]&&r.classList.add(o[s]);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})(),zg=Math.floor,Yg="".replace,Xg=/\$([$&'`]|\d\d?|<[^>]*>)/g,Jg=/\$([$&'`]|\d\d?)/g,Zg=function(e,t,r,n,o,a){var s=r+e.length,i=n.length,l=Jg;return o!==void 0&&(o=Ye(o),l=Xg),Yg.call(a,l,function(c,u){var f;switch(u.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(s);case"<":f=o[u.slice(1,-1)];break;default:var d=+u;if(d===0)return c;if(d>i){var h=zg(d/10);return h===0?c:h<=i?n[h-1]===void 0?u.charAt(1):n[h-1]+u.charAt(1):c}f=n[d-1]}return f===void 0?"":f})},Qg=Math.max,em=Math.min;Ou("replace",2,function(e,t,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,a=n.REPLACE_KEEPS_$0,s=o?"$":"$0";return[function(i,l){var c=rt(this),u=i?.[e];return u!==void 0?u.call(i,c,l):t.call(String(c),i,l)},function(i,l){if(!o&&a||typeof l=="string"&&l.indexOf(s)===-1){var c=r(t,i,this,l);if(c.done)return c.value}var u=ve(i),f=String(this),d=typeof l=="function";d||(l=String(l));var h=u.global;if(h){var m=u.unicode;u.lastIndex=0}for(var y=[];;){var v=ra(u,f);if(v===null||(y.push(v),!h))break;String(v[0])===""&&(u.lastIndex=Eu(f,_e(u.lastIndex),m))}for(var p,g="",b=0,w=0;w<y.length;w++){v=y[w];for(var k=String(v[0]),_=Qg(em(Pt(v.index),f.length),0),M=[],H=1;H<v.length;H++)M.push((p=v[H])===void 0?p:String(p));var N=v.groups;if(d){var W=[k].concat(M,_,f);N!==void 0&&W.push(N);var C=String(l.apply(void 0,W))}else C=Zg(k,f,_,M,N,l);_>=b&&(g+=f.slice(b,_)+C,b=_+k.length)}return g+f.slice(b)}]}),(function(){function e(){yt(this,e)}return bt(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(){yt(this,e)}return bt(e,null,[{key:"_clone",value:function(){}}]),e})();var ju=Z("isConcatSpreadable"),tm=nn>=51||!Y(function(){var e=[];return e[ju]=!1,e.concat()[0]!==e}),rm=Yo("concat"),nm=function(e){if(!le(e))return!1;var t=e[ju];return t!==void 0?!!t:Mt(e)};fe({target:"Array",proto:!0,forced:!tm||!rm},{concat:function(e){var t,r,n,o,a,s=Ye(this),i=rn(s,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(nm(a=t===-1?s:arguments[t])){if(l+(o=_e(a.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,l++)r in a&&Ft(i,l,a[r])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ft(i,l++,a)}return i.length=l,i}});var ia,yr=function(e,t,r){if(ta(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)}},Pu=[].push,$u=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,a=e==6,s=e==7,i=e==5||a;return function(l,c,u,f){for(var d,h,m=Ye(l),y=Kr(m),v=yr(c,u,3),p=_e(y.length),g=0,b=f||rn,w=t?b(l,p):r||s?b(l,0):void 0;p>g;g++)if((i||g in y)&&(h=v(d=y[g],g,m),e))if(t)w[g]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return g;case 2:Pu.call(w,d)}else switch(e){case 4:return!1;case 7:Pu.call(w,d)}return a?-1:n||o?o:w}},Iu={find:$u(5),findIndex:$u(6)},om=Te?Object.defineProperties:function(e,t){ve(e);for(var r,n=oa(t),o=n.length,a=0;o>a;)ze.f(e,r=n[a++],t[r]);return e},am=Jr("document","documentElement"),Mu=Ho("IE_PROTO"),la=function(){},Fu=function(e){return"<script>"+e+"<\/script>"},ln=function(){try{ia=document.domain&&new ActiveXObject("htmlfile")}catch{}var e,t;ln=ia?(function(n){n.write(Fu("")),n.close();var o=n.parentWindow.Object;return n=null,o})(ia):((t=zs("iframe")).style.display="none",am.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Fu("document.F=Object")),e.close(),e.F);for(var r=Qr.length;r--;)delete ln.prototype[Qr[r]];return ln()};Xr[Mu]=!0;var sa=Object.create||function(e,t){var r;return e!==null?(la.prototype=ve(e),r=new la,la.prototype=null,r[Mu]=e):r=ln(),t===void 0?r:om(r,t)},ua=Z("unscopables"),ca=Array.prototype;ca[ua]==null&&ze.f(ca,ua,{configurable:!0,value:sa(null)});var Dt=function(e){ca[ua][e]=!0},im=Iu.find,qu=!0,lm=$t("find");"find"in[]&&Array(1).find(function(){qu=!1}),fe({target:"Array",proto:!0,forced:qu||!lm},{find:function(e){return im(this,e,arguments.length>1?arguments[1]:void 0)}}),Dt("find");var sm=Iu.findIndex,Nu=!0,um=$t("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){Nu=!1}),fe({target:"Array",proto:!0,forced:Nu||!um},{findIndex:function(e){return sm(this,e,arguments.length>1?arguments[1]:void 0)}}),Dt("findIndex");var Bu=function(e,t,r,n,o,a,s,i){for(var l,c=o,u=0,f=!!s&&yr(s,i,3);u<n;){if(u in r){if(l=f?f(r[u],u,t):r[u],a>0&&Mt(l))c=Bu(e,t,l,_e(l.length),c,a-1)-1;else{if(c>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[c]=l}c++}u++}return c},cm=Bu;fe({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Ye(this),r=_e(t.length),n=rn(t,0);return n.length=cm(n,t,t,r,0,e===void 0?1:Pt(e)),n}});var fa=function(e){var t=e.return;if(t!==void 0)return ve(t.call(e)).value},fm=function(e,t,r,n){try{return n?t(ve(r)[0],r[1]):t(r)}catch(o){throw fa(e),o}},Lt={},dm=Z("iterator"),hm=Array.prototype,Du=function(e){return e!==void 0&&(Lt.Array===e||hm[dm]===e)},vm=Z("iterator"),Lu=function(e){if(e!=null)return e[vm]||e["@@iterator"]||Lt[hu(e)]},Gu=Z("iterator"),Hu=!1;try{var pm=0,Vu={next:function(){return{done:!!pm++}},return:function(){Hu=!0}};Vu[Gu]=function(){return this},Array.from(Vu,function(){throw 2})}catch{}var Uu=function(e,t){if(!Hu)return!1;var r=!1;try{var n={};n[Gu]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},gm=!Uu(function(e){Array.from(e)});fe({target:"Array",stat:!0,forced:gm},{from:function(e){var t,r,n,o,a,s,i=Ye(e),l=typeof this=="function"?this:Array,c=arguments.length,u=c>1?arguments[1]:void 0,f=u!==void 0,d=Lu(i),h=0;if(f&&(u=yr(u,c>2?arguments[2]:void 0,2)),d==null||l==Array&&Du(d))for(r=new l(t=_e(i.length));t>h;h++)s=f?u(i[h],h):i[h],Ft(r,h,s);else for(a=(o=d.call(i)).next,r=new l;!(n=a.call(o)).done;h++)s=f?fm(o,u,[n.value,h],!0):n.value,Ft(r,h,s);return r.length=h,r}});var mm=function(e){return function(t,r,n,o){ta(r);var a=Ye(t),s=Kr(a),i=_e(a.length),l=e?i-1:0,c=e?-1:1;if(n<2)for(;;){if(l in s){o=s[l],l+=c;break}if(l+=c,e?l<0:i<=l)throw TypeError("Reduce of empty array with no initial value")}for(;e?l>=0:i>l;l+=c)l in s&&(o=r(o,s[l],l,a));return o}},ym={left:mm(!1)},bm=Ke(oe.process)=="process",Cm=ym.left,wm=Wo("reduce"),Sm=$t("reduce",{1:0});fe({target:"Array",proto:!0,forced:!wm||!Sm||!bm&&nn>79&&nn<83},{reduce:function(e){return Cm(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}}),Dt("flat");var Ct,Wu,Ku,xm=!Y(function(){return Object.isExtensible(Object.preventExtensions({}))}),zu=qo(function(e){var t=ze.f,r=Go("meta"),n=0,o=Object.isExtensible||function(){return!0},a=function(i){t(i,r,{value:{objectID:"O"+ ++n,weakData:{}}})},s=e.exports={REQUIRED:!1,fastKey:function(i,l){if(!le(i))return typeof i=="symbol"?i:(typeof i=="string"?"S":"P")+i;if(!ne(i,r)){if(!o(i))return"F";if(!l)return"E";a(i)}return i[r].objectID},getWeakData:function(i,l){if(!ne(i,r)){if(!o(i))return!0;if(!l)return!1;a(i)}return i[r].weakData},onFreeze:function(i){return xm&&s.REQUIRED&&o(i)&&!ne(i,r)&&a(i),i}};Xr[r]=!0}),br=function(e,t){this.stopped=e,this.result=t},Yu=function(e,t,r){var n,o,a,s,i,l,c,u=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),m=yr(t,u,1+f+h),y=function(p){return n&&fa(n),new br(!0,p)},v=function(p){return f?(ve(p),h?m(p[0],p[1],y):m(p[0],p[1])):h?m(p,y):m(p)};if(d)n=e;else{if(typeof(o=Lu(e))!="function")throw TypeError("Target is not iterable");if(Du(o)){for(a=0,s=_e(e.length);s>a;a++)if((i=v(e[a]))&&i instanceof br)return i;return new br(!1)}n=o.call(e)}for(l=n.next;!(c=l.call(n)).done;){try{i=v(c.value)}catch(p){throw fa(n),p}if(typeof i=="object"&&i&&i instanceof br)return i}return new br(!1)},Xu=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},Om=ze.f,Ju=Z("toStringTag"),da=function(e,t,r){e&&!ne(e=r?e:e.prototype,Ju)&&Om(e,Ju,{configurable:!0,value:t})},sn=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 ve(n),(function(a){if(!le(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),Zu=function(e,t,r){for(var n in t)ot(e,n,t[n],r);return e},_m=!Y(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Qu=Ho("IE_PROTO"),km=Object.prototype,un=_m?Object.getPrototypeOf:function(e){return e=Ye(e),ne(e,Qu)?e[Qu]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?km:null},ha=Z("iterator"),ec=!1;[].keys&&("next"in(Ku=[].keys())?(Wu=un(un(Ku)))!==Object.prototype&&(Ct=Wu):ec=!0),(Ct==null||Y(function(){var e={};return Ct[ha].call(e)!==e}))&&(Ct={}),ne(Ct,ha)||Re(Ct,ha,function(){return this});var va={IteratorPrototype:Ct,BUGGY_SAFARI_ITERATORS:ec},Em=va.IteratorPrototype,Am=function(){return this},pa=va.IteratorPrototype,cn=va.BUGGY_SAFARI_ITERATORS,Cr=Z("iterator"),Tm=function(){return this},ga=function(e,t,r,n,o,a,s){(function(p,g,b){var w=g+" Iterator";p.prototype=sa(Em,{next:Wr(1,b)}),da(p,w,!1),Lt[w]=Am})(r,t,n);var i,l,c,u=function(p){if(p===o&&y)return y;if(!cn&&p in h)return h[p];switch(p){case"keys":case"values":case"entries":return function(){return new r(this,p)}}return function(){return new r(this)}},f=t+" Iterator",d=!1,h=e.prototype,m=h[Cr]||h["@@iterator"]||o&&h[o],y=!cn&&m||u(o),v=t=="Array"&&h.entries||m;if(v&&(i=un(v.call(new e)),pa!==Object.prototype&&i.next&&(un(i)!==pa&&(sn?sn(i,pa):typeof i[Cr]!="function"&&Re(i,Cr,Tm)),da(i,f,!0))),o=="values"&&m&&m.name!=="values"&&(d=!0,y=function(){return m.call(this)}),h[Cr]!==y&&Re(h,Cr,y),Lt[t]=y,o)if(l={values:u("values"),keys:a?y:u("keys"),entries:u("entries")},s)for(c in l)(cn||d||!(c in h))&&ot(h,c,l[c]);else fe({target:t,proto:!0,forced:cn||d},l);return l},tc=Z("species"),Rm=ze.f,rc=zu.fastKey,nc=nt.set,ma=nt.getterFor;(function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,a=n?"set":"add",s=oe[e],i=s&&s.prototype,l=s,c={},u=function(v){var p=i[v];ot(i,v,v=="add"?function(g){return p.call(this,g===0?0:g),this}:v=="delete"?function(g){return!(o&&!le(g))&&p.call(this,g===0?0:g)}:v=="get"?function(g){return o&&!le(g)?void 0:p.call(this,g===0?0:g)}:v=="has"?function(g){return!(o&&!le(g))&&p.call(this,g===0?0:g)}:function(g,b){return p.call(this,g===0?0:g,b),this})};if(Uo(e,typeof s!="function"||!(o||i.forEach&&!Y(function(){new s().entries().next()}))))l=r.getConstructor(t,e,n,a),zu.REQUIRED=!0;else if(Uo(e,!0)){var f=new l,d=f[a](o?{}:-0,1)!=f,h=Y(function(){f.has(1)}),m=Uu(function(v){new s(v)}),y=!o&&Y(function(){for(var v=new s,p=5;p--;)v[a](p,p);return!v.has(-0)});m||((l=t(function(v,p){Xu(v,l,e);var g=(function(b,w,k){var _,M;return sn&&typeof(_=w.constructor)=="function"&&_!==k&&le(M=_.prototype)&&M!==k.prototype&&sn(b,M),b})(new s,v,l);return p!=null&&Yu(p,g[a],{that:g,AS_ENTRIES:n}),g})).prototype=i,i.constructor=l),(h||y)&&(u("delete"),u("has"),n&&u("get")),(y||d)&&u(a),o&&i.clear&&delete i.clear}c[e]=l,fe({global:!0,forced:l!=s},c),da(l,e),o||r.setStrong(l,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(l,c){Xu(l,o,t),nc(l,{type:t,index:sa(null),first:void 0,last:void 0,size:0}),Te||(l.size=0),c!=null&&Yu(c,l[n],{that:l,AS_ENTRIES:r})}),a=ma(t),s=function(l,c,u){var f,d,h=a(l),m=i(l,c);return m?m.value=u:(h.last=m={index:d=rc(c,!0),key:c,value:u,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=m),f&&(f.next=m),Te?h.size++:l.size++,d!=="F"&&(h.index[d]=m)),l},i=function(l,c){var u,f=a(l),d=rc(c);if(d!=="F")return f.index[d];for(u=f.first;u;u=u.next)if(u.key==c)return u};return Zu(o.prototype,{clear:function(){for(var l=a(this),c=l.index,u=l.first;u;)u.removed=!0,u.previous&&(u.previous=u.previous.next=void 0),delete c[u.index],u=u.next;l.first=l.last=void 0,Te?l.size=0:this.size=0},delete:function(l){var c=this,u=a(c),f=i(c,l);if(f){var d=f.next,h=f.previous;delete u.index[f.index],f.removed=!0,h&&(h.next=d),d&&(d.previous=h),u.first==f&&(u.first=d),u.last==f&&(u.last=h),Te?u.size--:c.size--}return!!f},forEach:function(l){for(var c,u=a(this),f=yr(l,arguments.length>1?arguments[1]:void 0,3);c=c?c.next:u.first;)for(f(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!i(this,l)}}),Zu(o.prototype,r?{get:function(l){var c=i(this,l);return c&&c.value},set:function(l,c){return s(this,l===0?0:l,c)}}:{add:function(l){return s(this,l=l===0?0:l,l)}}),Te&&Rm(o.prototype,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=ma(t),a=ma(n);ga(e,t,function(s,i){nc(this,{type:n,target:s,state:o(s),kind:i,last:void 0})},function(){for(var s=a(this),i=s.kind,l=s.last;l&&l.removed;)l=l.previous;return s.target&&(s.last=l=l?l.next:s.state.first)?i=="keys"?{value:l.key,done:!1}:i=="values"?{value:l.value,done:!1}:{value:[l.key,l.value],done:!1}:(s.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),(function(s){var i=Jr(s),l=ze.f;Te&&i&&!i[tc]&&l(i,tc,{configurable:!0,get:function(){return this}})})(t)}});var jm=ku.charAt,Pm=nt.set,$m=nt.getterFor("String Iterator");ga(String,"String",function(e){Pm(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=$m(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=jm(r,n),t.index+=e.length,{value:e,done:!1})});var oc={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},Im=nt.set,Mm=nt.getterFor("Array Iterator"),wr=ga(Array,"Array",function(e,t){Im(this,{type:"Array Iterator",target:Rt(e),index:0,kind:t})},function(){var e=Mm(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");Lt.Arguments=Lt.Array,Dt("keys"),Dt("values"),Dt("entries");var ya=Z("iterator"),ac=Z("toStringTag"),ba=wr.values;for(var Ca in oc){var ic=oe[Ca],Xe=ic&&ic.prototype;if(Xe){if(Xe[ya]!==ba)try{Re(Xe,ya,ba)}catch{Xe[ya]=ba}if(Xe[ac]||Re(Xe,ac,Ca),oc[Ca]){for(var Gt in wr)if(Xe[Gt]!==wr[Gt])try{Re(Xe,Gt,wr[Gt])}catch{Xe[Gt]=wr[Gt]}}}}(function(){function e(){yt(this,e)}return bt(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(){yt(this,e)}return bt(e,null,[{key:"today",value:function(){return new Date}}]),e})(),(function(){function e(){yt(this,e)}return bt(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 Fm=Object.defineProperty,qm=(e,t,r)=>t in e?Fm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,de=(e,t,r)=>(qm(e,typeof t!="symbol"?t+"":t,r),r);const te=e=>Math.round(e*100)/100;class Q{constructor(t){de(this,"instance"),de(this,"alphaValue",0),de(this,"redValue",0),de(this,"greenValue",0),de(this,"blueValue",0),de(this,"hueValue",0),de(this,"saturationValue",0),de(this,"brightnessValue",0),de(this,"hslSaturationValue",0),de(this,"lightnessValue",0),de(this,"initAlpha",()=>{const r=this.instance.getAlpha();this.alphaValue=Math.min(1,r)*100}),de(this,"initLightness",()=>{const{s:r,l:n}=this.instance.toHsl();this.hslSaturationValue=te(r),this.lightnessValue=te(n)}),de(this,"initRgb",()=>{const{r,g:n,b:o}=this.instance.toRgb();this.redValue=te(r),this.greenValue=te(n),this.blueValue=te(o)}),de(this,"initHsb",()=>{const{h:r,s:n,v:o}=this.instance.toHsv();this.hueValue=Math.min(360,Math.ceil(r)),this.saturationValue=te(n),this.brightnessValue=te(o)}),de(this,"toHexString",()=>this.instance.toHexString()),de(this,"toRgbString",()=>this.instance.toRgbString()),this.instance=O(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=O(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=O({h:te(t),s:this.saturation,v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.hueValue=te(t)}get hue(){return this.hueValue}set saturation(t){this.instance=O({h:this.hue,s:te(t),v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.saturationValue=te(t)}get saturation(){return this.saturationValue}set brightness(t){this.instance=O({h:this.hue,s:this.saturation,v:te(t),a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.brightnessValue=te(t)}get brightness(){return this.brightnessValue}set lightness(t){this.instance=O({h:this.hue,s:this.hslSaturationValue,l:te(t),a:this.alphaValue/100}),this.initRgb(),this.initHsb(),this.lightnessValue=te(t)}get lightness(){return this.lightnessValue}set red(t){const r=this.instance.toRgb();this.instance=O({...r,r:te(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.redValue=te(t)}get red(){return this.redValue}set green(t){const r=this.instance.toRgb();this.instance=O({...r,g:te(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.greenValue=te(t)}get green(){return this.greenValue}set blue(t){const r=this.instance.toRgb();this.instance=O({...r,b:te(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.blueValue=te(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 lc(e,t,r,n){return`rgba(${[e,t,r,n/100].join(",")})`}const wa=(e,t,r)=>t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e,Sa="color-history",xa=8,je=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},Nm=F({name:"Alpha",props:{color:I.instanceOf(Q),size:I.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=B(null),n=B(null);let o=e.color||new Q;const a=Ce({red:o.red,green:o.green,blue:o.blue,alpha:o.alpha});he(()=>e.color,f=>{f&&(o=f,zt(a,{red:f.red,green:f.green,blue:f.blue,alpha:f.alpha}))},{deep:!0});const s=L(()=>{const f=lc(a.red,a.green,a.blue,0),d=lc(a.red,a.green,a.blue,100);return{background:`linear-gradient(to right, ${f} , ${d})`}}),i=()=>{if(r.value&&n.value){const f=a.alpha/100,d=r.value.getBoundingClientRect(),h=n.value.offsetWidth;return Math.round(f*(d.width-h)+h/2)}return 0},l=L(()=>({left:i()+"px",top:0})),c=f=>{f.target!==r.value&&u(f)},u=f=>{if(f.stopPropagation(),r.value&&n.value){const d=r.value.getBoundingClientRect(),h=n.value.offsetWidth;let m=f.clientX-d.left;m=Math.max(h/2,m),m=Math.min(m,d.width-h/2);const y=Math.round((m-h/2)/(d.width-h)*100);o.alpha=y,a.alpha=y,t("change",y)}};return ut(()=>{const f={drag:d=>{u(d)},end:d=>{u(d)}};r.value&&n.value&&mr.triggerDragEvent(r.value,f)}),{barElement:r,cursorElement:n,getCursorStyle:l,getBackgroundStyle:s,onClickSider:c}}}),Bm=e=>(it("data-v-18925ba6"),e=e(),lt(),e),Dm=Bm(()=>E("div",{class:"vc-alpha-slider__bar-handle"},null,-1)),Lm=[Dm];function Gm(e,t,r,n,o,a){return $(),U("div",{class:se(["vc-alpha-slider","transparent",{"small-slider":e.size==="small"}])},[E("div",{ref:"barElement",class:"vc-alpha-slider__bar",style:ae(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickSider&&e.onClickSider(...s))},[E("div",{class:se(["vc-alpha-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:ae(e.getCursorStyle)},Lm,6)],4)],2)}const Oa=je(Nm,[["render",Gm],["__scopeId","data-v-18925ba6"]]),Hm=[["#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"]],Vm=F({name:"Palette",emits:["change"],setup(e,{emit:t}){return{palettes:Hm,computedBgStyle:r=>r==="transparent"?r:r==="advance"?{}:{background:O(r).toRgbString()},onColorChange:r=>{t("change",r)}}}}),Um={class:"vc-compact"},Wm=["onClick"];function Km(e,t,r,n,o,a){return $(),U("div",Um,[($(!0),U(Ze,null,xt(e.palettes,(s,i)=>($(),U("div",{key:i,class:"vc-compact__row"},[($(!0),U(Ze,null,xt(s,(l,c)=>($(),U("div",{key:c,class:"vc-compact__color-cube--wrap",onClick:u=>e.onColorChange(l)},[E("div",{class:se(["vc-compact__color_cube",{advance:l==="advance",transparent:l==="transparent"}]),style:ae(e.computedBgStyle(l))},null,6)],8,Wm))),128))]))),128))])}const sc=je(Vm,[["render",Km],["__scopeId","data-v-b969fd48"]]),zm=F({name:"Board",props:{color:I.instanceOf(Q),round:I.bool.def(!1),hide:I.bool.def(!0)},emits:["change"],setup(e,{emit:t}){var r,n,o;const a=_r(),s={h:((r=e.color)==null?void 0:r.hue)||0,s:1,v:1},i=new Q(s).toHexString(),l=Ce({hueColor:i,saturation:((n=e.color)==null?void 0:n.saturation)||0,brightness:((o=e.color)==null?void 0:o.brightness)||0}),c=B(0),u=B(0),f=B(),d=L(()=>({top:c.value+"px",left:u.value+"px"})),h=()=>{if(a){const b=a.vnode.el;u.value=l.saturation*b?.clientWidth,c.value=(1-l.brightness)*b?.clientHeight}};let m=!1;const y=b=>{m=!0,g(b)},v=b=>{m&&g(b)},p=()=>{m=!1},g=b=>{if(a){const w=a.vnode.el,k=w?.getBoundingClientRect();let _=b.clientX-k.left,M=b.clientY-k.top;_=wa(_,0,k.width),M=wa(M,0,k.height);const H=_/k.width,N=wa(-(M/k.height)+1,0,1);u.value=_,c.value=M,l.saturation=H,l.brightness=N,t("change",H,N)}};return ut(()=>{a&&a.vnode.el&&f.value&&Ut(()=>{h()})}),ce(()=>e.color,b=>{zt(l,{hueColor:new Q({h:b.hue,s:1,v:1}).toHexString(),saturation:b.saturation,brightness:b.brightness}),h()},{deep:!0}),{state:l,cursorElement:f,getCursorStyle:d,onClickBoard:y,onDrag:v,onDragEnd:p}}}),_a=e=>(it("data-v-7f0cdcdf"),e=e(),lt(),e),Ym=_a(()=>E("div",{class:"vc-saturation__white"},null,-1)),Xm=_a(()=>E("div",{class:"vc-saturation__black"},null,-1)),Jm=_a(()=>E("div",null,null,-1)),Zm=[Jm];function Qm(e,t,r,n,o,a){return $(),U("div",{ref:"boardElement",class:se(["vc-saturation",{"vc-saturation__chrome":e.round,"vc-saturation__hidden":e.hide}]),style:ae({backgroundColor:e.state.hueColor}),onMousedown:t[0]||(t[0]=(...s)=>e.onClickBoard&&e.onClickBoard(...s)),onMousemove:t[1]||(t[1]=(...s)=>e.onDrag&&e.onDrag(...s)),onMouseup:t[2]||(t[2]=(...s)=>e.onDragEnd&&e.onDragEnd(...s))},[Ym,Xm,E("div",{class:"vc-saturation__cursor",ref:"cursorElement",style:ae(e.getCursorStyle)},Zm,4)],38)}const ka=je(zm,[["render",Qm],["__scopeId","data-v-7f0cdcdf"]]),ey=F({name:"Hue",props:{color:I.instanceOf(Q),size:I.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=B(null),n=B(null);let o=e.color||new Q;const a=Ce({hue:o.hue||0});he(()=>e.color,u=>{u&&(o=u,zt(a,{hue:o.hue}))},{deep:!0});const s=()=>{if(r.value&&n.value){const u=r.value.getBoundingClientRect(),f=n.value.offsetWidth;return a.hue===360?u.width-f/2:a.hue%360*(u.width-f)/360+f/2}return 0},i=L(()=>({left:s()+"px",top:0})),l=u=>{u.target!==r.value&&c(u)},c=u=>{if(u.stopPropagation(),r.value&&n.value){const f=r.value.getBoundingClientRect(),d=n.value.offsetWidth;let h=u.clientX-f.left;h=Math.min(h,f.width-d/2),h=Math.max(d/2,h);const m=Math.round((h-d/2)/(f.width-d)*360);o.hue=m,a.hue=m,t("change",m)}};return ut(()=>{const u={drag:f=>{c(f)},end:f=>{c(f)}};r.value&&n.value&&mr.triggerDragEvent(r.value,u)}),{barElement:r,cursorElement:n,getCursorStyle:i,onClickSider:l}}}),ty=e=>(it("data-v-e1a08576"),e=e(),lt(),e),ry=ty(()=>E("div",{class:"vc-hue-slider__bar-handle"},null,-1)),ny=[ry];function oy(e,t,r,n,o,a){return $(),U("div",{class:se(["vc-hue-slider",{"small-slider":e.size==="small"}])},[E("div",{ref:"barElement",class:"vc-hue-slider__bar",onClick:t[0]||(t[0]=(...s)=>e.onClickSider&&e.onClickSider(...s))},[E("div",{class:se(["vc-hue-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:ae(e.getCursorStyle)},ny,6)],512)],2)}const Ea=je(ey,[["render",oy],["__scopeId","data-v-e1a08576"]]),ay=F({name:"Lightness",props:{color:I.instanceOf(Q),size:I.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=B(null),n=B(null);let o=e.color||new Q;const[a,s,i]=o.HSL,l=Ce({hue:a,saturation:s,lightness:i});he(()=>e.color,m=>{if(m){o=m;const[y,v,p]=o.HSL;zt(l,{hue:y,saturation:v,lightness:p})}},{deep:!0});const c=L(()=>{const m=O({h:l.hue,s:l.saturation,l:.8}).toPercentageRgbString(),y=O({h:l.hue,s:l.saturation,l:.6}).toPercentageRgbString(),v=O({h:l.hue,s:l.saturation,l:.4}).toPercentageRgbString(),p=O({h:l.hue,s:l.saturation,l:.2}).toPercentageRgbString();return{background:[`linear-gradient(to right, rgb(255, 255, 255), ${m}, ${y}, ${v}, ${p}, rgb(0, 0, 0))`,`-webkit-linear-gradient(left, rgb(255, 255, 255), ${m}, ${y}, ${v}, ${p}, rgb(0, 0, 0))`,`-moz-linear-gradient(left, rgb(255, 255, 255), ${m}, ${y}, ${v}, ${p}, rgb(0, 0, 0))`,`-ms-linear-gradient(left, rgb(255, 255, 255), ${m}, ${y}, ${v}, ${p}, rgb(0, 0, 0))`]}}),u=()=>{if(r.value&&n.value){const m=l.lightness,y=r.value.getBoundingClientRect(),v=n.value.offsetWidth;return(1-m)*(y.width-v)+v/2}return 0},f=L(()=>({left:u()+"px",top:0})),d=m=>{m.target!==r.value&&h(m)},h=m=>{if(m.stopPropagation(),r.value&&n.value){const y=r.value.getBoundingClientRect(),v=n.value.offsetWidth;let p=m.clientX-y.left;p=Math.max(v/2,p),p=Math.min(p,y.width-v/2);const g=1-(p-v/2)/(y.width-v);o.lightness=g,t("change",g)}};return ut(()=>{const m={drag:y=>{h(y)},end:y=>{h(y)}};r.value&&n.value&&mr.triggerDragEvent(r.value,m)}),{barElement:r,cursorElement:n,getCursorStyle:f,getBackgroundStyle:c,onClickSider:d}}}),iy=e=>(it("data-v-94a50a9e"),e=e(),lt(),e),ly=iy(()=>E("div",{class:"vc-lightness-slider__bar-handle"},null,-1)),sy=[ly];function uy(e,t,r,n,o,a){return $(),U("div",{class:se(["vc-lightness-slider",{"small-slider":e.size==="small"}])},[E("div",{ref:"barElement",class:"vc-lightness-slider__bar",style:ae(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickSider&&e.onClickSider(...s))},[E("div",{class:se(["vc-lightness-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:ae(e.getCursorStyle)},sy,6)],4)],2)}const uc=je(ay,[["render",uy],["__scopeId","data-v-94a50a9e"]]),cy=F({name:"History",props:{colors:I.arrayOf(String).def(()=>[]),round:I.bool.def(!1)},emits:["change"],setup(e,{emit:t}){return{onColorSelect:r=>{t("change",r)}}}}),fy={key:0,class:"vc-colorPicker__record"},dy={class:"color-list"},hy=["onClick"];function vy(e,t,r,n,o,a){return e.colors&&e.colors.length>0?($(),U("div",fy,[E("div",dy,[($(!0),U(Ze,null,xt(e.colors,(s,i)=>($(),U("div",{key:i,class:se(["color-item","transparent",{"color-item__round":e.round}]),onClick:l=>e.onColorSelect(s)},[E("div",{class:"color-item__display",style:ae({backgroundColor:s})},null,4)],10,hy))),128))])])):z("",!0)}const Aa=je(cy,[["render",vy],["__scopeId","data-v-0f657238"]]),py=F({name:"Display",props:{color:I.instanceOf(Q),disableAlpha:I.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){var r,n,o,a;const{copy:s,copied:i,isSupported:l}=Hd(),c=B("hex"),u=Ce({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=L(()=>({background:u.previewBgColor})),d=()=>{c.value=c.value==="rgba"?"hex":"rgba"},h=Ve(p=>{if(!p.target.value)return;let g=parseInt(p.target.value.replace("%",""));g>100&&(p.target.value="100",g=100),g<0&&(p.target.value="0",g=0),isNaN(g)&&(p.target.value="100",g=100),!isNaN(g)&&u.color&&(u.color.alpha=g),t("change",u.color)},300),m=Ve((p,g)=>{if(u.color){if(c.value==="hex"){const b=p.target.value.replace("#","");O(b).isValid()?[3,4].includes(b.length)&&(u.color.hex=b):u.color.hex="000000",t("change",u.color)}else if(c.value==="rgba"&&g===3&&p.target.value.toString()==="0."&&u.rgba){u.rgba[g]=p.target.value;const[b,w,k,_]=u.rgba;u.color.hex=O({r:b,g:w,b:k}).toHex(),u.color.alpha=Math.round(_*100),t("change",u.color)}}},100),y=Ve((p,g)=>{if(p.target.value){if(c.value==="hex"){const b=p.target.value.replace("#","");O(b).isValid()&&u.color&&[6,8].includes(b.length)&&(u.color.hex=b)}else if(g!==void 0&&u.rgba&&u.color){if(p.target.value<0&&(p.target.value=0),g===3&&((p.target.value>1||isNaN(p.target.value))&&(p.target.value=1),p.target.value.toString()==="0."))return;g<3&&p.target.value>255&&(p.target.value=255),u.rgba[g]=p.target.value;const[b,w,k,_]=u.rgba;u.color.hex=O({r:b,g:w,b:k}).toHex(),u.color.alpha=Math.round(_*100)}t("change",u.color)}},300),v=()=>{if(l&&u.color){const p=c.value==="hex"?u.color.toString(u.color.alpha===100?"hex6":"hex8"):u.color.toRgbString();s(p||"")}};return ce(()=>e.color,p=>{p&&(u.color=p,u.alpha=Math.round(u.color.alpha),u.hex=u.color.hex,u.rgba=u.color.RGB)},{deep:!0}),ce(()=>u.color,()=>{u.color&&(u.previewBgColor=u.color.toRgbString())},{deep:!0}),{state:u,getBgColorStyle:f,inputType:c,copied:i,onInputTypeChange:d,onAlphaBlur:h,onInputChange:y,onBlurChange:m,onCopyColorStr:v}}}),gy={class:"vc-display"},my={class:"vc-current-color vc-transparent"},yy={key:0,class:"copy-text"},by={key:0,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},Cy={class:"vc-color-input"},wy={key:0,class:"vc-alpha-input"},Sy=["value"],xy={key:1,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},Oy=["value","onInput","onBlur"];function _y(e,t,r,n,o,a){return $(),U("div",gy,[E("div",my,[E("div",{class:"color-cube",style:ae(e.getBgColorStyle),onClick:t[0]||(t[0]=(...s)=>e.onCopyColorStr&&e.onCopyColorStr(...s))},[e.copied?($(),U("span",yy,"Copied!")):z("",!0)],4)]),e.inputType==="hex"?($(),U("div",by,[E("div",Cy,[Wt(E("input",{"onUpdate:modelValue":t[1]||(t[1]=s=>e.state.hex=s),maxlength:"8",onInput:t[2]||(t[2]=(...s)=>e.onInputChange&&e.onInputChange(...s)),onBlur:t[3]||(t[3]=(...s)=>e.onBlurChange&&e.onBlurChange(...s))},null,544),[[Wa,e.state.hex]])]),e.disableAlpha?z("",!0):($(),U("div",wy,[E("input",{class:"vc-alpha-input__inner",value:e.state.alpha,onInput:t[4]||(t[4]=(...s)=>e.onAlphaBlur&&e.onAlphaBlur(...s))},null,40,Sy),Or("% ")]))])):e.state.rgba?($(),U("div",xy,[($(!0),U(Ze,null,xt(e.state.rgba,(s,i)=>($(),U("div",{class:"vc-color-input",key:i},[E("input",{value:s,onInput:l=>e.onInputChange(l,i),onBlur:l=>e.onBlurChange(l,i)},null,40,Oy)]))),128))])):z("",!0),E("div",{class:"vc-input-toggle",onClick:t[5]||(t[5]=(...s)=>e.onInputTypeChange&&e.onInputTypeChange(...s))},Kt(e.inputType),1)])}const Ta=je(py,[["render",_y],["__scopeId","data-v-7334ac20"]]),ky=F({name:"FkColorPicker",components:{Display:Ta,Alpha:Oa,Palette:sc,Board:ka,Hue:Ea,Lightness:uc,History:Aa},props:{color:I.instanceOf(Q),disableHistory:I.bool.def(!1),roundHistory:I.bool.def(!1),disableAlpha:I.bool.def(!1)},emits:["update:color","change","advanceChange"],setup(e,{emit:t}){const r=e.color||new Q,n=Ce({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=B(!1),a=L(()=>({background:n.rgb})),s=()=>{o.value=!1,t("advanceChange",!1)},i=jn(Sa,[],{}),l=Ve(()=>{if(e.disableHistory)return;const y=n.color.toRgbString();if(i.value=i.value.filter(v=>!O.equals(v,y)),!i.value.includes(y)){for(;i.value.length>xa;)i.value.pop();i.value.unshift(y)}},500),c=y=>{y==="advance"?(o.value=!0,t("advanceChange",!0)):(n.color.hex=y,t("advanceChange",!1))},u=y=>{n.color.alpha=y},f=y=>{n.color.hue=y},d=(y,v)=>{n.color.saturation=y,n.color.brightness=v},h=y=>{n.color.lightness=y},m=y=>{const v=y.target.value.replace("#","");O(v).isValid()&&(n.color.hex=v)};return ce(()=>e.color,y=>{y&&(n.color=y)},{deep:!0}),ce(()=>n.color,()=>{n.hex=n.color.hex,n.rgb=n.color.toRgbString(),l(),t("update:color",n.color),t("change",n.color)},{deep:!0}),{state:n,advancePanelShow:o,onBack:s,onCompactChange:c,onAlphaChange:u,onHueChange:f,onBoardChange:d,onLightChange:h,onInputChange:m,previewStyle:a,historyColors:i}}}),Ey=e=>(it("data-v-48e3c224"),e=e(),lt(),e),Ay={class:"vc-fk-colorPicker"},Ty={class:"vc-fk-colorPicker__inner"},Ry={class:"vc-fk-colorPicker__header"},jy=Ey(()=>E("div",{class:"back"},null,-1)),Py=[jy];function $y(e,t,r,n,o,a){const s=T("Palette"),i=T("Board"),l=T("Hue"),c=T("Lightness"),u=T("Alpha"),f=T("Display"),d=T("History");return $(),U("div",Ay,[E("div",Ty,[E("div",Ry,[e.advancePanelShow?($(),U("span",{key:0,style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...h)=>e.onBack&&e.onBack(...h))},Py)):z("",!0)]),e.advancePanelShow?z("",!0):($(),ee(s,{key:0,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?($(),ee(i,{key:1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"])):z("",!0),e.advancePanelShow?($(),ee(l,{key:2,color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"])):z("",!0),e.advancePanelShow?z("",!0):($(),ee(c,{key:3,color:e.state.color,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?z("",!0):($(),ee(u,{key:4,color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"])),S(f,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?z("",!0):($(),ee(d,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const cc=je(ky,[["render",$y],["__scopeId","data-v-48e3c224"]]),Iy=F({name:"ChromeColorPicker",components:{Display:Ta,Alpha:Oa,Board:ka,Hue:Ea,History:Aa},props:{color:I.instanceOf(Q),disableHistory:I.bool.def(!1),roundHistory:I.bool.def(!1),disableAlpha:I.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){const r=e.color||new Q,n=Ce({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=L(()=>({background:n.rgb})),a=jn(Sa,[],{}),s=Ve(()=>{if(e.disableHistory)return;const d=n.color.toRgbString();if(a.value=a.value.filter(h=>!O.equals(h,d)),!a.value.includes(d)){for(;a.value.length>xa;)a.value.pop();a.value.unshift(d)}},500),i=d=>{n.color.alpha=d},l=d=>{n.color.hue=d},c=d=>{d.hex!==void 0&&(n.color.hex=d.hex),d.alpha!==void 0&&(n.color.alpha=d.alpha)},u=(d,h)=>{n.color.saturation=d,n.color.brightness=h},f=d=>{d!=="advance"&&(n.color.hex=d)};return ce(()=>e.color,d=>{d&&(n.color=d)},{deep:!0}),ce(()=>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,previewStyle:o,historyColors:a,onAlphaChange:i,onHueChange:l,onBoardChange:u,onInputChange:c,onCompactChange:f}}}),My={class:"vc-chrome-colorPicker"},Fy={class:"vc-chrome-colorPicker-body"},qy={class:"chrome-controls"},Ny={class:"chrome-sliders"};function By(e,t,r,n,o,a){const s=T("Board"),i=T("Hue"),l=T("Alpha"),c=T("Display"),u=T("History");return $(),U("div",My,[S(s,{round:!0,hide:!1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"]),E("div",Fy,[E("div",qy,[E("div",Ny,[S(i,{size:"small",color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"]),e.disableAlpha?z("",!0):($(),ee(l,{key:0,size:"small",color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"]))])]),S(c,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?z("",!0):($(),ee(u,{key:0,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const fc=je(Iy,[["render",By],["__scopeId","data-v-2611d66c"]]),Ra="Vue3ColorPickerProvider",Dy=(e,t)=>{const r=e.getBoundingClientRect(),n=r.left+r.width/2,o=r.top+r.height/2,a=Math.abs(n-t.clientX),s=Math.abs(o-t.clientY),i=Math.sqrt(Math.pow(a,2)+Math.pow(s,2)),l=s/i,c=Math.acos(l);let u=Math.floor(180/(Math.PI/c));return t.clientX>n&&t.clientY>o&&(u=180-u),t.clientX==n&&t.clientY>o&&(u=180),t.clientX>n&&t.clientY==o&&(u=90),t.clientX<n&&t.clientY>o&&(u=180+u),t.clientX<n&&t.clientY==o&&(u=270),t.clientX<n&&t.clientY<o&&(u=360-u),u};let ja=!1;const Ly=(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,ja=!1,(a=t.end)==null||a.call(t,o)};e&&e.addEventListener("mousedown",o=>{var a;ja||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",n,!1),ja=!0,(a=t.start)==null||a.call(t,o))})},Gy={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"}},Hy=F({name:"Angle",props:Gy,emits:["update:angle","change"],setup(e,{emit:t}){const r=B(null),n=B(0);he(()=>e.angle,i=>{n.value=i});const o=()=>{let i=Number(n.value);isNaN(i)||(i=i>360||i<0?e.angle:i,n.value=i===360?0:i,t("update:angle",n.value),t("change",n.value))},a=L(()=>({width:e.size+"px",height:e.size+"px",borderWidth:e.borderWidth+"px",borderColor:e.borderColor,transform:`rotate(${n.value}deg)`})),s=i=>{r.value&&(n.value=Dy(r.value,i)%360,o())};return Vt(()=>{const i={drag:l=>{s(l)},end:l=>{s(l)}};r.value&&Ly(r.value,i)}),()=>S("div",{class:"bee-angle"},[S("div",{class:"bee-angle__round",ref:r,style:a.value},null)])}}),Vy=F({name:"GradientColorPicker",components:{Angle:Hy,Display:Ta,Alpha:Oa,Palette:sc,Board:ka,Hue:Ea,Lightness:uc,History:Aa},props:{startColor:I.instanceOf(Q).isRequired,endColor:I.instanceOf(Q).isRequired,startColorStop:I.number.def(0),endColorStop:I.number.def(100),angle:I.number.def(0),type:I.oneOf(["linear","radial"]).def("linear"),disableHistory:I.bool.def(!1),roundHistory:I.bool.def(!1),disableAlpha:I.bool.def(!1),pickerType:I.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=Ce({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=pn(Ra),o=B(e.pickerType==="chrome"),a=B(),s=B(),i=B();he(()=>[e.startColor,e.endColor,e.angle],C=>{r.startColor=C[0],r.endColor=C[1],r.angle=C[2]}),he(()=>e.type,C=>{r.type=C});const l=L({get:()=>r.startActive?r.startColor:r.endColor,set:C=>{if(r.startActive){r.startColor=C;return}r.endColor=C}}),c=L(()=>{if(i.value&&a.value){const C=r.startColorStop/100,R=i.value.getBoundingClientRect(),q=a.value.offsetWidth;return Math.round(C*(R.width-q)+q/2)}return 0}),u=L(()=>{if(i.value&&s.value){const C=r.endColorStop/100,R=i.value.getBoundingClientRect(),q=s.value.offsetWidth;return Math.round(C*(R.width-q)+q/2)}return 0}),f=L(()=>{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}),d=C=>{var R;if(r.startActive=!0,i.value&&a.value){const q=(R=i.value)==null?void 0:R.getBoundingClientRect();let A=C.clientX-q.left;A=Math.max(a.value.offsetWidth/2,A),A=Math.min(A,q.width-a.value.offsetWidth/2),r.startColorStop=Math.round((A-a.value.offsetWidth/2)/(q.width-a.value.offsetWidth)*100),t("update:startColorStop",r.startColorStop),t("startColorStopChange",r.startColorStop)}},h=C=>{var R;if(r.startActive=!1,i.value&&s.value){const q=(R=i.value)==null?void 0:R.getBoundingClientRect();let A=C.clientX-q.left;A=Math.max(s.value.offsetWidth/2,A),A=Math.min(A,q.width-s.value.offsetWidth/2),r.endColorStop=Math.round((A-s.value.offsetWidth/2)/(q.width-s.value.offsetWidth)*100),t("update:endColorStop",r.endColorStop),t("endColorStopChange",r.endColorStop)}},m=C=>{const R=C.target,q=parseInt(R.value.replace("°",""));isNaN(q)||(r.angle=q%360),t("update:angle",r.angle),t("angleChange",r.angle)},y=C=>{r.angle=C,t("update:angle",r.angle),t("angleChange",r.angle)},v=C=>{C==="advance"?(o.value=!0,t("advanceChange",!0)):(l.value.hex=C,t("advanceChange",!1)),_()},p=C=>{l.value.alpha=C,_()},g=C=>{l.value.hue=C,_()},b=(C,R)=>{l.value.saturation=C,l.value.brightness=R,_()},w=C=>{l.value.lightness=C,_()},k=()=>{_()},_=()=>{r.startActive?(t("update:startColor",r.startColor),t("startColorChange",r.startColor)):(t("update:endColor",r.endColor),t("endColorChange",r.endColor))},M=()=>{o.value=!1,t("advanceChange",!1)},H=()=>{r.type=r.type==="linear"?"radial":"linear",t("typeChange",r.type)},N=jn(Sa,[],{}),W=Ve(()=>{if(e.disableHistory)return;const C=l.value.toRgbString();if(N.value=N.value.filter(R=>!O.equals(R,C)),!N.value.includes(C)){for(;N.value.length>xa;)N.value.pop();N.value.unshift(C)}},500);return ut(()=>{s.value&&a.value&&(mr.triggerDragEvent(s.value,{drag:C=>{h(C)},end:C=>{h(C)}}),mr.triggerDragEvent(a.value,{drag:C=>{d(C)},end:C=>{d(C)}}))}),ce(()=>r.startColor,C=>{r.startColorRgba=C.toRgbString()},{deep:!0}),ce(()=>r.endColor,C=>{r.endColorRgba=C.toRgbString()},{deep:!0}),ce(()=>l.value,()=>{W()},{deep:!0}),{startGradientRef:a,stopGradientRef:s,colorRangeRef:i,state:r,currentColor:l,getStartColorLeft:c,getEndColorLeft:u,gradientBg:f,advancePanelShow:o,onDegreeBlur:m,onCompactChange:v,onAlphaChange:p,onHueChange:g,onBoardChange:b,onLightChange:w,historyColors:N,onBack:M,onDegreeChange:y,onDisplayChange:k,onTypeChange:H,lang:n?.lang}}}),dc=e=>(it("data-v-c4d6d6ea"),e=e(),lt(),e),Uy={class:"vc-gradient-picker"},Wy={class:"vc-gradient-picker__header"},Ky={class:"vc-gradient__types"},zy={class:"vc-gradient-wrap__types"},Yy={class:"vc-picker-degree-input vc-degree-input"},Xy={class:"vc-degree-input__control"},Jy=["value"],Zy={class:"vc-degree-input__panel"},Qy={class:"vc-degree-input__disk"},eb={class:"vc-gradient-picker__body"},tb={class:"vc-color-range",ref:"colorRangeRef"},rb={class:"vc-color-range__container"},nb={class:"vc-gradient__stop__container"},ob=["title"],ab=dc(()=>E("span",{class:"vc-gradient__stop--inner"},null,-1)),ib=[ab],lb=["title"],sb=dc(()=>E("span",{class:"vc-gradient__stop--inner"},null,-1)),ub=[sb];function cb(e,t,r,n,o,a){var s,i;const l=T("Angle"),c=T("Board"),u=T("Hue"),f=T("Palette"),d=T("Lightness"),h=T("Alpha"),m=T("Display"),y=T("History");return $(),U("div",Uy,[E("div",Wy,[E("div",null,[Wt(E("div",{class:"back",style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...v)=>e.onBack&&e.onBack(...v))},null,512),[[Er,e.pickerType==="fk"&&e.advancePanelShow]])]),E("div",Ky,[E("div",zy,[($(),U(Ze,null,xt(["linear","radial"],v=>E("div",{class:se(["vc-gradient__type",{active:e.state.type===v}]),key:v,onClick:t[1]||(t[1]=(...p)=>e.onTypeChange&&e.onTypeChange(...p))},Kt(e.lang?e.lang[v]:v),3)),64))]),Wt(E("div",Yy,[E("div",Xy,[E("input",{value:e.state.angle,onBlur:t[2]||(t[2]=(...v)=>e.onDegreeBlur&&e.onDegreeBlur(...v))},null,40,Jy),Or("deg ")]),E("div",Zy,[E("div",Qy,[S(l,{angle:e.state.angle,"onUpdate:angle":t[3]||(t[3]=v=>e.state.angle=v),size:40,onChange:e.onDegreeChange},null,8,["angle","onChange"])])])],512),[[Er,e.state.type==="linear"]])])]),E("div",eb,[E("div",tb,[E("div",rb,[E("div",{class:"vc-background",style:ae(e.gradientBg)},null,4),E("div",nb,[E("div",{class:se(["vc-gradient__stop",{"vc-gradient__stop--current":e.state.startActive}]),ref:"startGradientRef",title:(s=e.lang)==null?void 0:s.start,style:ae({left:e.getStartColorLeft+"px",backgroundColor:e.state.startColorRgba})},ib,14,ob),E("div",{class:se(["vc-gradient__stop",{"vc-gradient__stop--current":!e.state.startActive}]),ref:"stopGradientRef",title:(i=e.lang)==null?void 0:i.end,style:ae({left:e.getEndColorLeft+"px",backgroundColor:e.state.endColorRgba})},ub,14,lb)])])],512)]),e.advancePanelShow?($(),ee(c,{key:0,color:e.currentColor,onChange:e.onBoardChange},null,8,["color","onChange"])):z("",!0),e.advancePanelShow?($(),ee(u,{key:1,color:e.currentColor,onChange:e.onHueChange},null,8,["color","onChange"])):z("",!0),e.advancePanelShow?z("",!0):($(),ee(f,{key:2,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?z("",!0):($(),ee(d,{key:3,color:e.currentColor,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?z("",!0):($(),ee(h,{key:4,color:e.currentColor,onChange:e.onAlphaChange},null,8,["color","onChange"])),S(m,{color:e.currentColor,"disable-alpha":e.disableAlpha,onChange:e.onDisplayChange},null,8,["color","disable-alpha","onChange"]),e.disableHistory?z("",!0):($(),ee(y,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])}const hc=je(Vy,[["render",cb],["__scopeId","data-v-c4d6d6ea"]]),fb=F({name:"WrapContainer",props:{theme:I.oneOf(["white","black"]).def("white"),showTab:I.bool.def(!1),activeKey:I.oneOf(["pure","gradient"]).def("pure")},emits:["update:activeKey","change"],setup(e,{emit:t}){const r=Ce({activeKey:e.activeKey}),n=pn(Ra),o=a=>{r.activeKey=a,t("update:activeKey",a),t("change",a)};return ce(()=>e.activeKey,a=>{r.activeKey=a}),{state:r,onActiveKeyChange:o,lang:n?.lang}}}),db={class:"vc-colorpicker--container"},hb={key:0,class:"vc-colorpicker--tabs"},vb={class:"vc-colorpicker--tabs__inner"},pb={class:"vc-btn__content"},gb={class:"vc-btn__content"};function mb(e,t,r,n,o,a){var s,i;return $(),U("div",{class:se(["vc-colorpicker",e.theme])},[E("div",db,[e.showTab?($(),U("div",hb,[E("div",vb,[E("div",{class:se(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="pure"}]),onClick:t[0]||(t[0]=l=>e.onActiveKeyChange("pure"))},[E("button",null,[E("div",pb,Kt((s=e.lang)==null?void 0:s.pure),1)])],2),E("div",{class:se(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="gradient"}]),onClick:t[1]||(t[1]=l=>e.onActiveKeyChange("gradient"))},[E("button",null,[E("div",gb,Kt((i=e.lang)==null?void 0:i.gradient),1)])],2),E("div",{class:"vc-colorpicker--tabs__bg",style:ae({width:"50%",left:`calc(${e.state.activeKey==="gradient"?50:0}%)`})},null,4)])])):z("",!0),kr(e.$slots,"default",{},void 0,!0)])],2)}const yb=je(fb,[["render",mb],["__scopeId","data-v-0492277d"]]),bb={start:"Start",end:"End",pure:"Pure",gradient:"Gradient",linear:"linear",radial:"radial"},Cb={start:"开始",end:"结束",pure:"纯色",gradient:"渐变",linear:"线性",radial:"径向"},wb={En:bb,"ZH-cn":Cb},Sb={isWidget:I.bool.def(!1),pickerType:I.oneOf(["fk","chrome"]).def("fk"),shape:I.oneOf(["circle","square"]).def("square"),pureColor:{type:[String,Object],default:"#000000"},gradientColor:I.string.def("linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),format:{type:String,default:"rgb"},disableAlpha:I.bool.def(!1),disableHistory:I.bool.def(!1),roundHistory:I.bool.def(!1),useType:I.oneOf(["pure","gradient","both"]).def("pure"),activeKey:I.oneOf(["pure","gradient"]).def("pure"),lang:{type:String,default:"ZH-cn"},zIndex:I.number.def(9999),pickerContainer:{type:[String,HTMLElement],default:"body"},debounce:I.number.def(100),theme:I.oneOf(["white","black"]).def("white"),blurClose:I.bool.def(!1),defaultPopup:I.bool.def(!1)},xb=F({name:"ColorPicker",components:{FkColorPicker:cc,ChromeColorPicker:fc,GradientColorPicker:hc,WrapContainer:yb},inheritAttrs:!1,props:Sb,emits:["update:pureColor","pureColorChange","update:gradientColor","gradientColorChange","update:activeKey","activeKeyChange"],setup(e,{emit:t}){gn(Ra,{lang:L(()=>wb[e.lang||"ZH-cn"])});const r=!!Ua().extra,n=Ce({pureColor:e.pureColor||"",activeKey:e.useType==="gradient"?"gradient":e.activeKey,isAdvanceMode:!1}),o=new Q("#000"),a=new Q("#000"),s=new Q(n.pureColor),i=Ce({startColor:o,endColor:a,startColorStop:0,endColorStop:100,angle:0,type:"linear",gradientColor:e.gradientColor}),l=B(s),c=B(e.defaultPopup),u=B(null),f=B(null);let d=null;const h=L(()=>({background:n.activeKey!=="gradient"?O(n.pureColor).toRgbString():i.gradientColor})),m=L(()=>n.activeKey==="gradient"?hc.name:e.pickerType==="fk"?cc.name:fc.name),y=C=>{n.isAdvanceMode=C},v=L(()=>{const C={disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,pickerType:e.pickerType};return n.activeKey==="gradient"?{...C,startColor:i.startColor,endColor:i.endColor,angle:i.angle,type:i.type,startColorStop:i.startColorStop,endColorStop:i.endColorStop,onStartColorChange:R=>{i.startColor=R,k()},onEndColorChange:R=>{i.endColor=R,k()},onStartColorStopChange:R=>{i.startColorStop=R,k()},onEndColorStopChange:R=>{i.endColorStop=R,k()},onAngleChange:R=>{i.angle=R,k()},onTypeChange:R=>{i.type=R,k()},onAdvanceChange:y}:{...C,disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,color:l.value,onChange:H,onAdvanceChange:y}}),p=()=>{c.value=!0,d?d.update():M()},g=()=>{c.value=!1},b=Ve(()=>{!e.isWidget&&e.blurClose&&g()},100);Ld(f,()=>{g()});const w=()=>{var C,R,q,A;try{const[P]=cl.parse(i.gradientColor);if(P&&P.type.includes("gradient")&&P.colorStops.length>=2){const G=P.colorStops[0],ue=P.colorStops[1];i.startColorStop=Number((C=G.length)==null?void 0:C.value)||0,i.endColorStop=Number((R=ue.length)==null?void 0:R.value)||0,P.type==="linear-gradient"&&((q=P.orientation)==null?void 0:q.type)==="angular"&&(i.angle=Number((A=P.orientation)==null?void 0:A.value)||0),i.type=P.type.split("-")[0];const[j,D,K,be]=G.value,[De,Ht,at,Le]=ue.value;i.startColor=new Q({r:Number(j),g:Number(D),b:Number(K),a:Number(be)}),i.endColor=new Q({r:Number(De),g:Number(Ht),b:Number(at),a:Number(Le)})}}catch(P){console.log(`[Parse Color]: ${P}`)}},k=Ve(()=>{const C=_();try{i.gradientColor=cl.stringify(C),t("update:gradientColor",i.gradientColor),t("gradientColorChange",i.gradientColor)}catch(R){console.log(R)}},e.debounce),_=()=>{const C=[],R=i.startColor.RGB.map(P=>P.toString()),q=i.endColor.RGB.map(P=>P.toString()),A=[{type:"rgba",value:[R[0],R[1],R[2],R[3]],length:{value:i.startColorStop+"",type:"%"}},{type:"rgba",value:[q[0],q[1],q[2],q[3]],length:{value:i.endColorStop+"",type:"%"}}];return i.type==="linear"?C.push({type:"linear-gradient",orientation:{type:"angular",value:i.angle+""},colorStops:A}):i.type==="radial"&&C.push({type:"radial-gradient",orientation:[{type:"shape",value:"circle"}],colorStops:A}),C},M=()=>{u.value&&f.value&&(d=kv(u.value,f.value,{placement:"auto",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{allowedAutoPlacements:["top","bottom","left","right"],rootBoundary:"viewport"}}]}))},H=C=>{l.value=C,n.pureColor=C.toString(e.format),N()},N=Ve(()=>{t("update:pureColor",n.pureColor),t("pureColorChange",n.pureColor)},e.debounce),W=C=>{n.activeKey=C,t("update:activeKey",C),t("activeKeyChange",C)};return ut(()=>{w(),d||M()}),ce(()=>e.gradientColor,C=>{C!=i.gradientColor&&(i.gradientColor=C)}),ce(()=>i.gradientColor,()=>{w()}),ce(()=>e.activeKey,C=>{n.activeKey=C}),ce(()=>e.useType,C=>{n.activeKey!=="gradient"&&C==="gradient"?n.activeKey="gradient":n.activeKey="pure"}),ce(()=>e.pureColor,C=>{O.equals(C,n.pureColor)||(n.pureColor=C,l.value=new Q(C))},{deep:!0}),{colorCubeRef:u,pickerRef:f,showPicker:c,colorInstance:l,getBgColorStyle:h,getComponentName:m,getBindArgs:v,state:n,hasExtra:r,onColorChange:H,onShowPicker:p,onActiveKeyChange:W,onAutoClose:b}}}),Ob={key:0,class:"vc-color-extra"},_b={key:0,class:"vc-color-extra"};function kb(e,t,r,n,o,a){const s=T("WrapContainer");return $(),U(Ze,null,[e.isWidget?($(),ee(s,{key:0,"active-key":e.state.activeKey,"onUpdate:activeKey":t[0]||(t[0]=i=>e.state.activeKey=i),"show-tab":e.useType==="both",style:ae({zIndex:e.zIndex}),theme:e.theme,onChange:e.onActiveKeyChange},{default:xr(()=>[($(),ee(mn(e.getComponentName),re({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?($(),U("div",Ob,[kr(e.$slots,"extra",{},void 0,!0)])):z("",!0)]),_:3},8,["active-key","show-tab","style","theme","onChange"])):z("",!0),e.isWidget?z("",!0):($(),U(Ze,{key:1},[E("div",{class:se(["vc-color-wrap transparent",{round:e.shape==="circle"}]),ref:"colorCubeRef"},[E("div",{class:"current-color",style:ae(e.getBgColorStyle),onClick:t[1]||(t[1]=(...i)=>e.onShowPicker&&e.onShowPicker(...i))},null,4)],2),($(),ee(Ka,{to:e.pickerContainer},[Wt(E("div",{ref:"pickerRef",style:ae({zIndex:e.zIndex}),onMouseleave:t[3]||(t[3]=(...i)=>e.onAutoClose&&e.onAutoClose(...i))},[e.showPicker?($(),ee(s,{key:0,"show-tab":e.useType==="both"&&!e.state.isAdvanceMode,theme:e.theme,"active-key":e.state.activeKey,"onUpdate:activeKey":t[2]||(t[2]=i=>e.state.activeKey=i),onChange:e.onActiveKeyChange},{default:xr(()=>[($(),ee(mn(e.getComponentName),re({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?($(),U("div",_b,[kr(e.$slots,"extra",{},void 0,!0)])):z("",!0)]),_:3},8,["show-tab","theme","active-key","onChange"])):z("",!0)],36),[[Er,e.showPicker]])],8,["to"]))],64))],64)}const Eb=je(xb,[["render",kb],["__scopeId","data-v-354ca836"]]),Ab={install(e){e.use(Rf),e.use(jf),e.use(Mf),e.use(Nf),e.use(Lf),e.use(Gf),e.use(Wf),e.use(Yf),e.use(Zf),e.use(rd),e.use(ad),e.use(id),e.use(sd),e.use(dd),e.use(vd),e.use(yd),e.use(bd),e.use(Cd),e.use(Pf),e.use(pd),e.use(ld),e.use(ud),e.use(Hf),e.component("ColorPicker",Eb)}},vc=F({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=V("gct-edit-form");if(!e.model)throw new Error("未传递表单模型配置");const n=e.controller||Qa(()=>new ei(e.model)),o=B(null),a=async()=>{try{await o.value.formRef.validate()}catch(i){return console.error(i),!1}return!0},s=async i=>{try{await o.value.formRef.validateFields(i)}catch(l){return console.error(l),!1}return!0};return n.validate=a,n.validateItem=s,he(e.context,()=>{Object.assign(n.context,e.context),n.state.isNew=!n.context.id},{immediate:!0}),he(e.params,()=>{Object.assign(n.params,e.params)}),ti(async()=>{try{await o.value.formRef.validate();const i=await n.save();if(i)return{ok:!0,data:[xn(i)]}}catch(i){console.error(i)}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=S(T("gct-form"),{class:"h-full",ref:"formRef",model:this.model,c:this.c},null)),S("div",{class:this.ns.b()},[e])}}),Tb={install(e){e.component(vc.name,vc)}};function Rb(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Me(e)}const pc=F({name:"GctFormItem",props:{c:{type:Object,required:!0},formModel:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("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=L(()=>!!e.model.rules?.find(a=>a.required));return{ns:t,style:r,required:n,renderLabelTooltip:()=>e.model.labelTooltip?S(T("a-tooltip"),{class:t.e("label-tooltip"),placement:"topLeft",title:e.model.labelTooltip},{default:()=>[S("span",{class:"iconfont icon-assist ml5px text-[#bfbfbf]"},null)]}):null}},render(){const e=_gct.register.editor.get(ri.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=yn(typeof e.component=="string"?T(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=[S("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=()=>[S("span",null,[this.model.label]),this.renderLabelTooltip()]),S(T("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"},Rb(n)?n:{default:()=>[n]})}});function jb(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Me(e)}const gc=F({name:"GctForm",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("gct-form");gn("formController",e.c);const r=B(null),n=e.c;Object.keys(n.item).forEach(c=>{const u=n.item[c];u.state=Ce(u.state)});const a=c=>S(T("gct-form-item"),{class:c.class,style:c.style,c:n.item[c.name],formModel:e.model,model:c},null),s=c=>{const u=n.provider[c.name];if(!u)return console.error(`未找到表单项适配器实例:${c.name}`,c),null;if(u)return yn(typeof u.component=="string"?T(u.component):u.component,{key:c.name,model:c,formModel:e.model,c:n.item[c.name],data:n.state.data,class:c.class,style:c.style},i(c.children||[]));console.error(`未找到表单容器适配器:${c.name} - ${c.type}`)},i=c=>{if(!c)return[];const u=[];return c.forEach(f=>{if(f.type==="hidden")return null;let d=null;const h=f;h.type==="container"||h.container?d=s(h):d=a(f),d&&u.push(d)}),u},l={};return e.model.labelWidth&&(l[t.cssVarName("form-item-label-width")]=e.model.labelWidth),{ns:t,formRef:r,staticStyle:l,renderItem:a,renderContainer:s,renderChildren:i}},render(){let e;return S(T("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},jb(e=this.model.children.map(t=>this.renderContainer(t)))?e:{default:()=>[e]})}});class Pb{component="gct-form-item";createController(t,r){return Ge(()=>new ni(t,r))}}class $b{component="gct-form-hidden-item";createController(t,r){return Ge(()=>new oi(t,r))}}class Ib{component="gct-form-collapse-pane";createController(t,r){return Ge(()=>new ai(t,r))}}function mc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Me(e)}const yc=F({name:"GctFormCollapsePane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("form-collapse-pane"),r={};function n(o){if(e.model.layout==="flex")return S(T("flex-container"),{layout:e.model.flex},mc(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return S(T("grid-container"),{layout:e.model.grid},mc(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(r[t.cssVarName("form-collapse-pane-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-collapse-pane-height")]=e.model.height),{ns:t,style:r,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[],t=e[e.length-1];return t&&(t.props=re(t.props||{},{class:this.ns.e("last-child")})),S("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),Mb={install(e){_gct.register.formItem.register("collapse-pane",()=>new Ib),e.component(yc.name,yc)}};class Fb{component="gct-form-collapse";createController(t,r){return Ge(()=>new ii(t,r))}}const bc=F({name:"GctFormCollapse",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("form-collapse"),r=B([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=B([]);o.value=e.model.children?.map(s=>s.name)||[];const a=L(()=>e.model.expandIconPosition==="left"?"left":"right");return{ns:t,keys:r,style:n,activeKeys:o,expandIconPosition:a}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return S(Sn,{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1),this.ns.m("icon-"+(this.model.expandIconStyle||"up-down"))],style:this.style,accordion:this.model.accordion,expandIconPosition:this.expandIconPosition,activeKey:this.activeKeys,"onUpdate:activeKey":t=>this.activeKeys=t},{default:()=>[this.model.children?.map((t,r)=>{if(e[r].props.c.state.visible===!1)return;const o=t.collapsible!==!1?void 0:"disabled";return S(Sn.Panel,{key:t.name,header:t.title,collapsible:o},{default:()=>[e[r]]})})]})}}),qb={install(e){_gct.register.formItem.register("collapse",()=>new Fb),e.component(bc.name,bc)}};class Nb{component="gct-form-group";createController(t,r){return Ge(()=>new Cn(t,r))}}function Pa(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Me(e)}const Cc=F({name:"GctFormGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("gct-form-group"),r=B([0]);function n(a){if(e.model.layout==="flex")return S(T("flex-container"),{layout:e.model.flex},Pa(a)?a:{default:()=>[a]});if(e.model.layout==="grid")return S(T("grid-container"),{layout:e.model.grid},Pa(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(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];if(this.model.isCollapse){let t;return S(T("a-collapse"),{activeKey:this.keys,"onUpdate:activeKey":r=>this.keys=r,class:[this.ns.b(),this.ns.is("hidden-header",this.model.showHeader===!1),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style,ghost:!0},{default:()=>[S(T("a-collapse-panel"),{key:"0",header:this.model.title},Pa(t=this.renderContainer(e))?t:{default:()=>[t]})]})}return S("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?S("div",{class:this.ns.e("title")},[this.model.title]):null,S("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),Bb={install(e){_gct.register.formItem.register("container",()=>new Nb),e.component(Cc.name,Cc)}};class Db{component="gct-form-tab";createController(t,r){return Ge(()=>new li(t,r))}}const wc=F({name:"GctFormTab",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("form-tab"),r={};return e.model.width&&(r[t.cssVarName("form-tab-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-tab-height")]=e.model.height),{ns:t,style:r}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return S(T("a-tabs"),{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1),this.ns.m(this.model.navPosition||"left")],style:this.style},{default:()=>[this.model.children?.map((t,r)=>S(T("a-tab-pane"),{key:t.name,tab:t.title},{default:()=>[e[r]]}))]})}}),Lb={install(e){_gct.register.formItem.register("tab",()=>new Db),e.component(wc.name,wc)}};class Gb{component="gct-form-tab-pane";createController(t,r){return Ge(()=>new si(t,r))}}function Sc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Me(e)}const xc=F({name:"GctFormTabPane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("form-tab-pane"),r={};function n(o){if(e.model.layout==="flex")return S(T("flex-container"),{layout:e.model.flex},Sc(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return S(T("grid-container"),{layout:e.model.grid},Sc(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(r[t.cssVarName("form-tab-pane-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-tab-pane-height")]=e.model.height),{ns:t,style:r,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return S("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),Hb={install(e){_gct.register.formItem.register("tab-pane",()=>new Gb),e.component(xc.name,xc)}};class Vb{component="gct-form-title-group";createController(t,r){return Ge(()=>new Cn(t,r))}}function Oc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Me(e)}const _c=F({name:"GctFormTitleGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("gct-form-title-group"),r=B([0]);function n(a){if(e.model.layout==="flex")return S(T("flex-container"),{layout:e.model.flex},Oc(a)?a:{default:()=>[a]});if(e.model.layout==="grid")return S(T("grid-container"),{layout:e.model.grid},Oc(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(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return S("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[S("div",{class:this.ns.e("title")},[this.model.title]),S("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),Ub={install(e){_gct.register.formItem.register(ui.FORM_TITLE_GROUP,()=>new Vb),e.component(_c.name,_c)}},Wb={install(e){_gct.register.formItem.register("item",()=>new Pb),_gct.register.formItem.register("hidden",()=>new $b),e.use(Mb),e.use(qb),e.use(Bb),e.use(Lb),e.use(Hb),e.use(Ub),e.component(gc.name,gc),e.component(pc.name,pc)}},r0=hn("withInstall",(e,t)=>(e.install=r=>{const n=e.name||e.displayName;n&&(r.component(n,e),t&&(r.config.globalProperties[t]=e))},e)),n0=hn("default",{install(e){e.use(Ab),e.use(Tb),e.use(Wb),e.component(xi.name,xi),e.component(Oi.name,Oi),e.component(kn.name,kn),e.component(ki.name,ki),e.component(Ei.name,Ei)}})})}}));
|
|
15
|
+
`))),i}}:{type:r})}function Uv(e){return Oe("arrayOf",{type:Array,validator:function(t){var r,n=t.every(function(o){return(r=vt(e,o))===!0});return n||ye(`arrayOf - value validation error:
|
|
16
|
+
`+Hr(r)),n}})}function Wv(e){return Oe("instanceOf",{type:e})}function Kv(e){return Oe("objectOf",{type:Object,validator:function(t){var r,n=Object.keys(t).every(function(o){return(r=vt(e,t[o]))===!0});return n||ye(`objectOf - value validation error:
|
|
17
|
+
`+Hr(r)),n}})}function zv(e){var t=Object.keys(e),r=t.filter(function(o){var a;return!!(!((a=e[o])===null||a===void 0)&&a.required)}),n=Oe("shape",{type:Object,validator:function(o){var a=this;if(!ht(o))return!1;var s=Object.keys(o);if(r.length>0&&r.some(function(l){return s.indexOf(l)===-1})){var i=r.filter(function(l){return s.indexOf(l)===-1});return ye(i.length===1?'shape - required property "'+i[0]+'" is not defined.':'shape - required properties "'+i.join('", "')+'" are not defined.'),!1}return s.every(function(l){if(t.indexOf(l)===-1)return a._vueTypes_isLoose===!0||(ye('shape - shape definition does not include a "'+l+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var c=vt(e[l],o[l]);return typeof c=="string"&&ye('shape - "'+l+`" property validation error:
|
|
18
|
+
`+Hr(c)),c===!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(At(t))return t.forEach(function(f){return r.extend(f)}),this;var n=t.name,o=t.validate,a=o!==void 0&&o,s=t.getter,i=s!==void 0&&s,l=Pl(t,["name","validate","getter"]);if(sr(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var c,u=l.type;return Lr(u)?(delete l.type,Object.defineProperty(this,n,i?{get:function(){return Dl(n,u,l)}}:{value:function(){var f,d=Dl(n,u,l);return d.validator&&(d.validator=(f=d.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d}})):(c=i?{get:function(){var f=Object.assign({},l);return a?Ne(n,f):Oe(n,f)},enumerable:!0}:{value:function(){var f,d,h=Object.assign({},l);return f=a?Ne(n,h):Oe(n,h),h.validator&&(f.validator=(d=h.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,n,c))},Rl(e,null,[{key:"any",get:function(){return $v()}},{key:"func",get:function(){return Iv().def(this.defaults.func)}},{key:"bool",get:function(){return Fv().def(this.defaults.bool)}},{key:"string",get:function(){return Mv().def(this.defaults.string)}},{key:"number",get:function(){return qv().def(this.defaults.number)}},{key:"array",get:function(){return Nv().def(this.defaults.array)}},{key:"object",get:function(){return Bv().def(this.defaults.object)}},{key:"integer",get:function(){return Dv().def(this.defaults.integer)}},{key:"symbol",get:function(){return Gv()}}]),e})();function Yv(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 jl(n,r),Rl(n,null,[{key:"sensibleDefaults",get:function(){return Gr({},this.defaults)},set:function(o){this.defaults=o!==!1?Gr({},o!==!0?o:e):{}}}]),n})(Be)).defaults=Gr({},e),t}Be.defaults={},Be.custom=Lv,Be.oneOf=Hv,Be.instanceOf=Wv,Be.oneOfType=Vv,Be.arrayOf=Uv,Be.objectOf=Kv,Be.shape=zv,Be.utils={validate:function(e,t){return vt(t,e)===!0},toType:function(e,t,r){return r===void 0&&(r=!1),r?Ne(e,t):Oe(e,t)}};var I=(function(e){function t(){return e.apply(this,arguments)||this}return jl(t,e),t})(Yv()),Gl={},Hn,Ll;function pt(){return Ll||(Ll=1,Hn=function(e){try{return!!e()}catch{return!0}}),Hn}var Vn,Hl;function gt(){if(Hl)return Vn;Hl=1;var e=pt();return Vn=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Vn}var Un={exports:{}},Wn,Vl;function Ul(){if(Vl)return Wn;Vl=1;var e=pt();return Wn=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),Wn}var Kn,Wl;function ur(){if(Wl)return Kn;Wl=1;var e=Ul(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return Kn=e?n:function(o){return function(){return r.apply(o,arguments)}},Kn}var zn,Kl;function tt(){if(Kl)return zn;Kl=1;var e=typeof document=="object"&&document.all;return zn=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},zn}var Yn,zl;function Yl(){return zl||(zl=1,Yn=function(e){return e==null}),Yn}var Xn,Xl;function Xv(){if(Xl)return Xn;Xl=1;var e=Yl(),t=TypeError;return Xn=function(r){if(e(r))throw new t("Can't call method on "+r);return r},Xn}var Jn,Jl;function Jv(){if(Jl)return Jn;Jl=1;var e=Xv(),t=Object;return Jn=function(r){return t(e(r))},Jn}var Zn,Zl;function Vr(){if(Zl)return Zn;Zl=1;var e=ur(),t=Jv(),r=e({}.hasOwnProperty);return Zn=Object.hasOwn||function(o,a){return r(t(o),a)},Zn}var Qn,Ql;function Zv(){if(Ql)return Qn;Ql=1;var e=gt(),t=Vr(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,o=t(r,"name"),a=o&&(function(){}).name==="something",s=o&&(!e||e&&n(r,"name").configurable);return Qn={EXISTS:o,PROPER:a,CONFIGURABLE:s},Qn}var eo={exports:{}},to,es;function Qv(){return es||(es=1,to=!1),to}var cr,ts;function Ie(){if(ts)return cr;ts=1;var e=function(t){return t&&t.Math===Math&&t};return cr=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof ul=="object"&&ul)||e(typeof cr=="object"&&cr)||(function(){return this})()||Function("return this")(),cr}var ro,rs;function ep(){if(rs)return ro;rs=1;var e=Ie(),t=Object.defineProperty;return ro=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},ro}var ns;function no(){if(ns)return eo.exports;ns=1;var e=Qv(),t=Ie(),r=ep(),n="__core-js_shared__",o=eo.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"}),eo.exports}var oo,os;function tp(){if(os)return oo;os=1;var e=ur(),t=tt(),r=no(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(o){return n(o)}),oo=r.inspectSource,oo}var ao,as;function rp(){if(as)return ao;as=1;var e=Ie(),t=tt(),r=e.WeakMap;return ao=t(r)&&/native code/.test(String(r)),ao}var io,is;function fr(){if(is)return io;is=1;var e=tt();return io=function(t){return typeof t=="object"?t!==null:e(t)},io}var lo={},so,ls;function np(){if(ls)return so;ls=1;var e=Ie(),t=fr(),r=e.document,n=t(r)&&t(r.createElement);return so=function(o){return n?r.createElement(o):{}},so}var uo,ss;function op(){if(ss)return uo;ss=1;var e=gt(),t=pt(),r=np();return uo=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),uo}var co,us;function ap(){if(us)return co;us=1;var e=gt(),t=pt();return co=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),co}var fo,cs;function fs(){if(cs)return fo;cs=1;var e=fr(),t=String,r=TypeError;return fo=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},fo}var ho,ds;function hs(){if(ds)return ho;ds=1;var e=Ul(),t=Function.prototype.call;return ho=e?t.bind(t):function(){return t.apply(t,arguments)},ho}var vo,vs;function ip(){if(vs)return vo;vs=1;var e=Ie(),t=tt(),r=function(n){return t(n)?n:void 0};return vo=function(n,o){return arguments.length<2?r(e[n]):e[n]&&e[n][o]},vo}var po,ps;function lp(){if(ps)return po;ps=1;var e=ur();return po=e({}.isPrototypeOf),po}var go,gs;function sp(){if(gs)return go;gs=1;var e=Ie(),t=e.navigator,r=t&&t.userAgent;return go=r?String(r):"",go}var mo,ms;function up(){if(ms)return mo;ms=1;var e=Ie(),t=sp(),r=e.process,n=e.Deno,o=r&&r.versions||n&&n.version,a=o&&o.v8,s,i;return a&&(s=a.split("."),i=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!i&&t&&(s=t.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=t.match(/Chrome\/(\d+)/),s&&(i=+s[1]))),mo=i,mo}var yo,ys;function bs(){if(ys)return yo;ys=1;var e=up(),t=pt(),r=Ie(),n=r.String;return yo=!!Object.getOwnPropertySymbols&&!t(function(){var o=Symbol("symbol detection");return!n(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&e&&e<41}),yo}var bo,Cs;function ws(){if(Cs)return bo;Cs=1;var e=bs();return bo=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",bo}var Co,Ss;function xs(){if(Ss)return Co;Ss=1;var e=ip(),t=tt(),r=lp(),n=ws(),o=Object;return Co=n?function(a){return typeof a=="symbol"}:function(a){var s=e("Symbol");return t(s)&&r(s.prototype,o(a))},Co}var wo,Os;function cp(){if(Os)return wo;Os=1;var e=String;return wo=function(t){try{return e(t)}catch{return"Object"}},wo}var So,_s;function fp(){if(_s)return So;_s=1;var e=tt(),t=cp(),r=TypeError;return So=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},So}var xo,ks;function dp(){if(ks)return xo;ks=1;var e=fp(),t=Yl();return xo=function(r,n){var o=r[n];return t(o)?void 0:e(o)},xo}var Oo,Es;function hp(){if(Es)return Oo;Es=1;var e=hs(),t=tt(),r=fr(),n=TypeError;return Oo=function(o,a){var s,i;if(a==="string"&&t(s=o.toString)&&!r(i=e(s,o))||t(s=o.valueOf)&&!r(i=e(s,o))||a!=="string"&&t(s=o.toString)&&!r(i=e(s,o)))return i;throw new n("Can't convert object to primitive value")},Oo}var _o,As;function Ts(){if(As)return _o;As=1;var e=no();return _o=function(t,r){return e[t]||(e[t]=r||{})},_o}var ko,Rs;function js(){if(Rs)return ko;Rs=1;var e=ur(),t=0,r=Math.random(),n=e(1.1.toString);return ko=function(o){return"Symbol("+(o===void 0?"":o)+")_"+n(++t+r,36)},ko}var Eo,Ps;function vp(){if(Ps)return Eo;Ps=1;var e=Ie(),t=Ts(),r=Vr(),n=js(),o=bs(),a=ws(),s=e.Symbol,i=t("wks"),l=a?s.for||s:s&&s.withoutSetter||n;return Eo=function(c){return r(i,c)||(i[c]=o&&r(s,c)?s[c]:l("Symbol."+c)),i[c]},Eo}var Ao,$s;function pp(){if($s)return Ao;$s=1;var e=hs(),t=fr(),r=xs(),n=dp(),o=hp(),a=vp(),s=TypeError,i=a("toPrimitive");return Ao=function(l,c){if(!t(l)||r(l))return l;var u=n(l,i),f;if(u){if(c===void 0&&(c="default"),f=e(u,l,c),!t(f)||r(f))return f;throw new s("Can't convert object to primitive value")}return c===void 0&&(c="number"),o(l,c)},Ao}var To,Is;function gp(){if(Is)return To;Is=1;var e=pp(),t=xs();return To=function(r){var n=e(r,"string");return t(n)?n:n+""},To}var Fs;function Ms(){if(Fs)return lo;Fs=1;var e=gt(),t=op(),r=ap(),n=fs(),o=gp(),a=TypeError,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l="enumerable",c="configurable",u="writable";return lo.f=e?r?function(d,h,m){if(n(d),h=o(h),n(m),typeof d=="function"&&h==="prototype"&&"value"in m&&u in m&&!m[u]){var y=i(d,h);y&&y[u]&&(d[h]=m.value,m={configurable:c in m?m[c]:y[c],enumerable:l in m?m[l]:y[l],writable:!1})}return s(d,h,m)}:s:function(d,h,m){if(n(d),h=o(h),n(m),t)try{return s(d,h,m)}catch{}if("get"in m||"set"in m)throw new a("Accessors not supported");return"value"in m&&(d[h]=m.value),d},lo}var Ro,qs;function mp(){return qs||(qs=1,Ro=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),Ro}var jo,Ns;function yp(){if(Ns)return jo;Ns=1;var e=gt(),t=Ms(),r=mp();return jo=e?function(n,o,a){return t.f(n,o,r(1,a))}:function(n,o,a){return n[o]=a,n},jo}var Po,Bs;function bp(){if(Bs)return Po;Bs=1;var e=Ts(),t=js(),r=e("keys");return Po=function(n){return r[n]||(r[n]=t(n))},Po}var $o,Ds;function Cp(){return Ds||(Ds=1,$o={}),$o}var Io,Gs;function wp(){if(Gs)return Io;Gs=1;var e=rp(),t=Ie(),r=fr(),n=yp(),o=Vr(),a=no(),s=bp(),i=Cp(),l="Object already initialized",c=t.TypeError,u=t.WeakMap,f,d,h,m=function(g){return h(g)?d(g):f(g,{})},y=function(g){return function(b){var w;if(!r(b)||(w=d(b)).type!==g)throw new c("Incompatible receiver, "+g+" required");return w}};if(e||a.state){var v=a.state||(a.state=new u);v.get=v.get,v.has=v.has,v.set=v.set,f=function(g,b){if(v.has(g))throw new c(l);return b.facade=g,v.set(g,b),b},d=function(g){return v.get(g)||{}},h=function(g){return v.has(g)}}else{var p=s("state");i[p]=!0,f=function(g,b){if(o(g,p))throw new c(l);return b.facade=g,n(g,p,b),b},d=function(g){return o(g,p)?g[p]:{}},h=function(g){return o(g,p)}}return Io={set:f,get:d,has:h,enforce:m,getterFor:y},Io}var Ls;function Sp(){if(Ls)return Un.exports;Ls=1;var e=ur(),t=pt(),r=tt(),n=Vr(),o=gt(),a=Zv().CONFIGURABLE,s=tp(),i=wp(),l=i.enforce,c=i.get,u=String,f=Object.defineProperty,d=e("".slice),h=e("".replace),m=e([].join),y=o&&!t(function(){return f(function(){},"length",{value:8}).length!==8}),v=String(String).split("String"),p=Un.exports=function(g,b,w){d(u(b),0,7)==="Symbol("&&(b="["+h(u(b),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),w&&w.getter&&(b="get "+b),w&&w.setter&&(b="set "+b),(!n(g,"name")||a&&g.name!==b)&&(o?f(g,"name",{value:b,configurable:!0}):g.name=b),y&&w&&n(w,"arity")&&g.length!==w.arity&&f(g,"length",{value:w.arity});try{w&&n(w,"constructor")&&w.constructor?o&&f(g,"prototype",{writable:!1}):g.prototype&&(g.prototype=void 0)}catch{}var k=l(g);return n(k,"source")||(k.source=m(v,typeof b=="string"?b:"")),g};return Function.prototype.toString=p(function(){return r(this)&&c(this).source||s(this)},"toString"),Un.exports}var Fo,Hs;function xp(){if(Hs)return Fo;Hs=1;var e=Sp(),t=Ms();return Fo=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)},Fo}var Mo,Vs;function Op(){if(Vs)return Mo;Vs=1;var e=Ie(),t=pt(),r=e.RegExp,n=!t(function(){var o=!0;try{r(".","d")}catch{o=!1}var a={},s="",i=o?"dgimsy":"gimsy",l=function(d,h){Object.defineProperty(a,d,{get:function(){return s+=h,!0}})},c={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};o&&(c.hasIndices="d");for(var u in c)l(u,c[u]);var f=Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(a);return f!==i||s!==i});return Mo={correct:n},Mo}var qo,Us;function _p(){if(Us)return qo;Us=1;var e=fs();return qo=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},qo}var Ws;function kp(){if(Ws)return Gl;Ws=1;var e=gt(),t=xp(),r=Op(),n=_p();return e&&!r.correct&&(t(RegExp.prototype,"flags",{configurable:!0,get:n}),r.correct=!0),Gl}kp();var Ks=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function No(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ur=function(e){return e&&e.Math==Math&&e},oe=Ur(typeof globalThis=="object"&&globalThis)||Ur(typeof window=="object"&&window)||Ur(typeof self=="object"&&self)||Ur(typeof Ks=="object"&&Ks)||(function(){return this})()||Function("return this")(),Y=function(e){try{return!!e()}catch{return!0}},Te=!Y(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),zs={}.propertyIsEnumerable,Ys=Object.getOwnPropertyDescriptor,Ep={f:Ys&&!zs.call({1:2},1)?function(e){var t=Ys(this,e);return!!t&&t.enumerable}:zs},Wr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ap={}.toString,Ke=function(e){return Ap.call(e).slice(8,-1)},Tp="".split,Kr=Y(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return Ke(e)=="String"?Tp.call(e,""):Object(e)}:Object,rt=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},Rt=function(e){return Kr(rt(e))},le=function(e){return typeof e=="object"?e!==null:typeof e=="function"},Bo=function(e,t){if(!le(e))return e;var r,n;if(t&&typeof(r=e.toString)=="function"&&!le(n=r.call(e))||typeof(r=e.valueOf)=="function"&&!le(n=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!le(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},Rp={}.hasOwnProperty,ne=function(e,t){return Rp.call(e,t)},Do=oe.document,jp=le(Do)&&le(Do.createElement),Xs=function(e){return jp?Do.createElement(e):{}},Js=!Te&&!Y(function(){return Object.defineProperty(Xs("div"),"a",{get:function(){return 7}}).a!=7}),Zs=Object.getOwnPropertyDescriptor,Go={f:Te?Zs:function(e,t){if(e=Rt(e),t=Bo(t,!0),Js)try{return Zs(e,t)}catch{}if(ne(e,t))return Wr(!Ep.f.call(e,t),e[t])}},ve=function(e){if(!le(e))throw TypeError(String(e)+" is not an object");return e},Qs=Object.defineProperty,ze={f:Te?Qs:function(e,t,r){if(ve(e),t=Bo(t,!0),ve(r),Js)try{return Qs(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}},Re=Te?function(e,t,r){return ze.f(e,t,Wr(1,r))}:function(e,t,r){return e[t]=r,e},Lo=function(e,t){try{Re(oe,e,t)}catch{oe[e]=t}return t},mt=oe["__core-js_shared__"]||Lo("__core-js_shared__",{}),Pp=Function.toString;typeof mt.inspectSource!="function"&&(mt.inspectSource=function(e){return Pp.call(e)});var zr,dr,Yr,eu=mt.inspectSource,tu=oe.WeakMap,$p=typeof tu=="function"&&/native code/.test(eu(tu)),ru=No(function(e){(e.exports=function(t,r){return mt[t]||(mt[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.8.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Ip=0,Fp=Math.random(),Ho=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++Ip+Fp).toString(36)},nu=ru("keys"),Vo=function(e){return nu[e]||(nu[e]=Ho(e))},Xr={},Mp=oe.WeakMap;if($p){var jt=mt.state||(mt.state=new Mp),qp=jt.get,Np=jt.has,Bp=jt.set;zr=function(e,t){return t.facade=e,Bp.call(jt,e,t),t},dr=function(e){return qp.call(jt,e)||{}},Yr=function(e){return Np.call(jt,e)}}else{var hr=Vo("state");Xr[hr]=!0,zr=function(e,t){return t.facade=e,Re(e,hr,t),t},dr=function(e){return ne(e,hr)?e[hr]:{}},Yr=function(e){return ne(e,hr)}}var nt={set:zr,get:dr,has:Yr,enforce:function(e){return Yr(e)?dr(e):zr(e,{})},getterFor:function(e){return function(t){var r;if(!le(t)||(r=dr(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},ot=No(function(e){var t=nt.get,r=nt.enforce,n=String(String).split("String");(e.exports=function(o,a,s,i){var l,c=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,f=!!i&&!!i.noTargetGet;typeof s=="function"&&(typeof a!="string"||ne(s,"name")||Re(s,"name",a),(l=r(s)).source||(l.source=n.join(typeof a=="string"?a:""))),o!==oe?(c?!f&&o[a]&&(u=!0):delete o[a],u?o[a]=s:Re(o,a,s)):u?o[a]=s:Lo(a,s)})(Function.prototype,"toString",function(){return typeof this=="function"&&t(this).source||eu(this)})}),Uo=oe,ou=function(e){return typeof e=="function"?e:void 0},Jr=function(e,t){return arguments.length<2?ou(Uo[e])||ou(oe[e]):Uo[e]&&Uo[e][t]||oe[e]&&oe[e][t]},Dp=Math.ceil,Gp=Math.floor,Pt=function(e){return isNaN(e=+e)?0:(e>0?Gp:Dp)(e)},Lp=Math.min,_e=function(e){return e>0?Lp(Pt(e),9007199254740991):0},Hp=Math.max,Vp=Math.min,Zr=function(e,t){var r=Pt(e);return r<0?Hp(r+t,0):Vp(r,t)},Up=function(e){return function(t,r,n){var o,a=Rt(t),s=_e(a.length),i=Zr(n,s);if(e&&r!=r){for(;s>i;)if((o=a[i++])!=o)return!0}else for(;s>i;i++)if((e||i in a)&&a[i]===r)return e||i||0;return!e&&-1}},au={indexOf:Up(!1)},Wp=au.indexOf,iu=function(e,t){var r,n=Rt(e),o=0,a=[];for(r in n)!ne(Xr,r)&&ne(n,r)&&a.push(r);for(;t.length>o;)ne(n,r=t[o++])&&(~Wp(a,r)||a.push(r));return a},Qr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Kp=Qr.concat("length","prototype"),zp={f:Object.getOwnPropertyNames||function(e){return iu(e,Kp)}},Yp={f:Object.getOwnPropertySymbols},Xp=Jr("Reflect","ownKeys")||function(e){var t=zp.f(ve(e)),r=Yp.f;return r?t.concat(r(e)):t},Jp=function(e,t){for(var r=Xp(t),n=ze.f,o=Go.f,a=0;a<r.length;a++){var s=r[a];ne(e,s)||n(e,s,o(t,s))}},Zp=/#|\.prototype\./,vr=function(e,t){var r=eg[Qp(e)];return r==rg||r!=tg&&(typeof t=="function"?Y(t):!!t)},Qp=vr.normalize=function(e){return String(e).replace(Zp,".").toLowerCase()},eg=vr.data={},tg=vr.NATIVE="N",rg=vr.POLYFILL="P",Wo=vr,ng=Go.f,fe=function(e,t){var r,n,o,a,s,i=e.target,l=e.global,c=e.stat;if(r=l?oe:c?oe[i]||Lo(i,{}):(oe[i]||{}).prototype)for(n in t){if(a=t[n],o=e.noTargetGet?(s=ng(r,n))&&s.value:r[n],!Wo(l?n:i+(c?".":"#")+n,e.forced)&&o!==void 0){if(typeof a==typeof o)continue;Jp(a,o)}(e.sham||o&&o.sham)&&Re(a,"sham",!0),ot(r,n,a,e)}},Ko=function(e,t){var r=[][e];return!!r&&Y(function(){r.call(null,t||function(){throw 1},1)})},og=Object.defineProperty,zo={},lu=function(e){throw e},$t=function(e,t){if(ne(zo,e))return zo[e];t||(t={});var r=[][e],n=!!ne(t,"ACCESSORS")&&t.ACCESSORS,o=ne(t,0)?t[0]:lu,a=ne(t,1)?t[1]:void 0;return zo[e]=!!r&&!Y(function(){if(n&&!Te)return!0;var s={length:-1};n?og(s,1,{enumerable:!0,get:lu}):s[1]=1,r.call(s,o,a)})},ag=au.indexOf,su=[].indexOf,uu=!!su&&1/[1].indexOf(1,-0)<0,ig=Ko("indexOf"),lg=$t("indexOf",{ACCESSORS:!0,1:0});function yt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sg(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 bt(e,t,r){return r&&sg(e,r),e}fe({target:"Array",proto:!0,forced:uu||!ig||!lg},{indexOf:function(e){return uu?su.apply(this,arguments)||0:ag(this,e,arguments.length>1?arguments[1]:void 0)}}),(function(){function e(){yt(this,e)}return bt(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 ug=[].join,cg=Kr!=Object,fg=Ko("join",",");fe({target:"Array",proto:!0,forced:cg||!fg},{join:function(e){return ug.call(Rt(this),e===void 0?",":e)}});var It,en,Ye=function(e){return Object(rt(e))},Ft=Array.isArray||function(e){return Ke(e)=="Array"},cu=!!Object.getOwnPropertySymbols&&!Y(function(){return!String(Symbol())}),dg=cu&&!Symbol.sham&&typeof Symbol.iterator=="symbol",tn=ru("wks"),pr=oe.Symbol,hg=dg?pr:pr&&pr.withoutSetter||Ho,Z=function(e){return ne(tn,e)||(cu&&ne(pr,e)?tn[e]=pr[e]:tn[e]=hg("Symbol."+e)),tn[e]},vg=Z("species"),rn=function(e,t){var r;return Ft(e)&&(typeof(r=e.constructor)!="function"||r!==Array&&!Ft(r.prototype)?le(r)&&(r=r[vg])===null&&(r=void 0):r=void 0),new(r===void 0?Array:r)(t===0?0:t)},Mt=function(e,t,r){var n=Bo(t);n in e?ze.f(e,n,Wr(0,r)):e[n]=r},Yo=Jr("navigator","userAgent")||"",fu=oe.process,du=fu&&fu.versions,hu=du&&du.v8;hu?en=(It=hu.split("."))[0]+It[1]:Yo&&(!(It=Yo.match(/Edge\/(\d+)/))||It[1]>=74)&&(It=Yo.match(/Chrome\/(\d+)/))&&(en=It[1]);var nn=en&&+en,pg=Z("species"),Xo=function(e){return nn>=51||!Y(function(){var t=[];return(t.constructor={})[pg]=function(){return{foo:1}},t[e](Boolean).foo!==1})},gg=Xo("splice"),mg=$t("splice",{ACCESSORS:!0,0:0,1:2}),yg=Math.max,bg=Math.min;fe({target:"Array",proto:!0,forced:!gg||!mg},{splice:function(e,t){var r,n,o,a,s,i,l=Ye(this),c=_e(l.length),u=Zr(e,c),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=c-u):(r=f-2,n=bg(yg(Pt(t),0),c-u)),c+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=rn(l,n),a=0;a<n;a++)(s=u+a)in l&&Mt(o,a,l[s]);if(o.length=n,r<n){for(a=u;a<c-n;a++)i=a+r,(s=a+n)in l?l[i]=l[s]:delete l[i];for(a=c;a>c-n+r;a--)delete l[a-1]}else if(r>n)for(a=c-n;a>u;a--)i=a+r-1,(s=a+n-1)in l?l[i]=l[s]:delete l[i];for(a=0;a<r;a++)l[a+u]=arguments[a+2];return l.length=c-n+r,o}});var vu={};vu[Z("toStringTag")]="z";var Jo=String(vu)==="[object z]",Cg=Z("toStringTag"),wg=Ke((function(){return arguments})())=="Arguments",pu=Jo?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),Cg))=="string"?r:wg?Ke(t):(n=Ke(t))=="Object"&&typeof t.callee=="function"?"Arguments":n},Sg=Jo?{}.toString:function(){return"[object "+pu(this)+"]"};Jo||ot(Object.prototype,"toString",Sg,{unsafe:!0});var gu=function(){var e=ve(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 mu(e,t){return RegExp(e,t)}var Zo,Qo,yu={UNSUPPORTED_Y:Y(function(){var e=mu("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),BROKEN_CARET:Y(function(){var e=mu("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},on=RegExp.prototype.exec,xg=String.prototype.replace,bu=on,ea=(Zo=/a/,Qo=/b*/g,on.call(Zo,"a"),on.call(Qo,"a"),Zo.lastIndex!==0||Qo.lastIndex!==0),Cu=yu.UNSUPPORTED_Y||yu.BROKEN_CARET,ta=/()??/.exec("")[1]!==void 0;(ea||ta||Cu)&&(bu=function(e){var t,r,n,o,a=this,s=Cu&&a.sticky,i=gu.call(a),l=a.source,c=0,u=e;return s&&((i=i.replace("y","")).indexOf("g")===-1&&(i+="g"),u=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&e[a.lastIndex-1]!==`
|
|
19
|
+
`)&&(l="(?: "+l+")",u=" "+u,c++),r=new RegExp("^(?:"+l+")",i)),ta&&(r=new RegExp("^"+l+"$(?!\\s)",i)),ea&&(t=a.lastIndex),n=on.call(s?r:a,u),s?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:ea&&n&&(a.lastIndex=a.global?n.index+n[0].length:t),ta&&n&&n.length>1&&xg.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)arguments[o]===void 0&&(n[o]=void 0)}),n});var gr=bu;fe({target:"RegExp",proto:!0,forced:/./.exec!==gr},{exec:gr});var wu=RegExp.prototype,Su=wu.toString,Og=Y(function(){return Su.call({source:"a",flags:"b"})!="/a/b"}),_g=Su.name!="toString";(Og||_g)&&ot(RegExp.prototype,"toString",function(){var e=ve(this),t=String(e.source),r=e.flags;return"/"+t+"/"+String(r===void 0&&e instanceof RegExp&&!("flags"in wu)?gu.call(e):r)},{unsafe:!0});var kg=Z("species"),Eg=!Y(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}),xu="a".replace(/./,"$0")==="$0",Ou=Z("replace"),_u=!!/./[Ou]&&/./[Ou]("a","$0")==="",Ag=!Y(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"}),ku=function(e,t,r,n){var o=Z(e),a=!Y(function(){var f={};return f[o]=function(){return 7},""[e](f)!=7}),s=a&&!Y(function(){var f=!1,d=/a/;return e==="split"&&((d={}).constructor={},d.constructor[kg]=function(){return d},d.flags="",d[o]=/./[o]),d.exec=function(){return f=!0,null},d[o](""),!f});if(!a||!s||e==="replace"&&(!Eg||!xu||_u)||e==="split"&&!Ag){var i=/./[o],l=r(o,""[e],function(f,d,h,m,y){return d.exec===gr?a&&!y?{done:!0,value:i.call(d,h,m)}:{done:!0,value:f.call(h,d,m)}:{done:!1}},{REPLACE_KEEPS_$0:xu,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:_u}),c=l[0],u=l[1];ot(String.prototype,e,c),ot(RegExp.prototype,o,function(f,d){return u.call(f,this,d)})}n&&Re(RegExp.prototype[o],"sham",!0)},Tg=Z("match"),Eu=function(e){var t;return le(e)&&((t=e[Tg])!==void 0?!!t:Ke(e)=="RegExp")},ra=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e},Rg=Z("species"),jg=function(e){return function(t,r){var n,o,a=String(rt(t)),s=Pt(r),i=a.length;return s<0||s>=i?e?"":void 0:(n=a.charCodeAt(s))<55296||n>56319||s+1===i||(o=a.charCodeAt(s+1))<56320||o>57343?e?a.charAt(s):n:e?a.slice(s,s+2):o-56320+(n-55296<<10)+65536}},Au={charAt:jg(!0)},Pg=Au.charAt,Tu=function(e,t,r){return t+(r?Pg(e,t).length:1)},na=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 gr.call(e,t)},$g=[].push,Ig=Math.min,qt=!Y(function(){return!RegExp(4294967295,"y")});ku("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 s=String(rt(this)),i=a===void 0?4294967295:a>>>0;if(i===0)return[];if(o===void 0)return[s];if(!Eu(o))return t.call(s,o,i);for(var l,c,u,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),h=0,m=new RegExp(o.source,d+"g");(l=gr.call(m,s))&&!((c=m.lastIndex)>h&&(f.push(s.slice(h,l.index)),l.length>1&&l.index<s.length&&$g.apply(f,l.slice(1)),u=l[0].length,h=c,f.length>=i));)m.lastIndex===l.index&&m.lastIndex++;return h===s.length?!u&&m.test("")||f.push(""):f.push(s.slice(h)),f.length>i?f.slice(0,i):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 s=rt(this),i=o?.[e];return i!==void 0?i.call(o,s,a):n.call(String(s),o,a)},function(o,a){var s=r(n,o,this,a,n!==t);if(s.done)return s.value;var i=ve(o),l=String(this),c=(function(w,k){var _,F=ve(w).constructor;return F===void 0||(_=ve(F)[Rg])==null?k:ra(_)})(i,RegExp),u=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(qt?"y":"g"),d=new c(qt?i:"^(?:"+i.source+")",f),h=a===void 0?4294967295:a>>>0;if(h===0)return[];if(l.length===0)return na(d,l)===null?[l]:[];for(var m=0,y=0,v=[];y<l.length;){d.lastIndex=qt?y:0;var p,g=na(d,qt?l:l.slice(y));if(g===null||(p=Ig(_e(d.lastIndex+(qt?0:y)),l.length))===m)y=Tu(l,y,u);else{if(v.push(l.slice(m,y)),v.length===h)return v;for(var b=1;b<=g.length-1;b++)if(v.push(g[b]),v.length===h)return v;y=m=p}}return v.push(l.slice(m)),v}]},!qt);var oa=`
|
|
20
|
+
\v\f\r \u2028\u2029\uFEFF`,an="["+oa+"]",Fg=RegExp("^"+an+an+"*"),Mg=RegExp(an+an+"*$"),qg=function(e){return function(t){var r=String(rt(t));return 1&e&&(r=r.replace(Fg,"")),2&e&&(r=r.replace(Mg,"")),r}},Ng={trim:qg(3)},Bg=Ng.trim;fe({target:"String",proto:!0,forced:(function(e){return Y(function(){return!!oa[e]()||"
"[e]()!="
"||oa[e].name!==e})})("trim")},{trim:function(){return Bg(this)}});var Dg=Xo("slice"),Gg=$t("slice",{ACCESSORS:!0,0:0,1:2}),Lg=Z("species"),Hg=[].slice,Vg=Math.max;fe({target:"Array",proto:!0,forced:!Dg||!Gg},{slice:function(e,t){var r,n,o,a=Rt(this),s=_e(a.length),i=Zr(e,s),l=Zr(t===void 0?s:t,s);if(Ft(a)&&(typeof(r=a.constructor)!="function"||r!==Array&&!Ft(r.prototype)?le(r)&&(r=r[Lg])===null&&(r=void 0):r=void 0,r===Array||r===void 0))return Hg.call(a,i,l);for(n=new(r===void 0?Array:r)(Vg(l-i,0)),o=0;i<l;i++,o++)i in a&&Mt(n,o,a[i]);return n.length=o,n}});var aa=Object.keys||function(e){return iu(e,Qr)},Ug=Y(function(){aa(1)});fe({target:"Object",stat:!0,forced:Ug},{keys:function(e){return aa(Ye(e))}});var ia,Wg=function(e){if(Eu(e))throw TypeError("The method doesn't accept regular expressions");return e},Kg=Z("match"),zg=Go.f,Ru="".startsWith,Yg=Math.min,ju=(function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Kg]=!1,"/./"[e](t)}catch{}}return!1})("startsWith"),Xg=!(ju||(ia=zg(String.prototype,"startsWith"),!ia||ia.writable));function Pu(e){return(Pu=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)}fe({target:"String",proto:!0,forced:!Xg&&!ju},{startsWith:function(e){var t=String(rt(this));Wg(e);var r=_e(Yg(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return Ru?Ru.call(t,n,r):t.slice(r,r+n.length)===n}});var Nt=function(e){return typeof e=="string"},Bt=function(e){return e!==null&&Pu(e)==="object"},mr=(function(){function e(){yt(this,e)}return bt(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(s){var i;(i=r.drag)===null||i===void 0||i.call(r,s)},a=function s(i){var l;e.removeEventListener(document,"mousemove",o),e.removeEventListener(document,"mouseup",s),document.onselectstart=null,document.ondragstart=null,n=!1,(l=r.end)===null||l===void 0||l.call(r,i)};e.addEventListener(t,"mousedown",function(s){var i;n||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},e.addEventListener(document,"mousemove",o),e.addEventListener(document,"mouseup",a),n=!0,(i=r.start)===null||i===void 0||i.call(r,s))})}},{key:"getBoundingClientRect",value:function(t){return t&&Bt(t)&&t.nodeType===1?t.getBoundingClientRect():null}},{key:"hasClass",value:function(t,r){return!!(t&&Bt(t)&&Nt(r)&&t.nodeType===1)&&t.classList.contains(r.trim())}},{key:"addClass",value:function(t,r){if(t&&Bt(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&&Bt(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&&Bt(t)&&Nt(r)&&t.nodeType===1&&t.classList.toggle(r,n)}},{key:"replaceClass",value:function(t,r,n){t&&Bt(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,s=Math.abs(o-r.clientX),i=Math.abs(a-r.clientY),l=i/Math.sqrt(Math.pow(s,2)+Math.pow(i,2)),c=Math.acos(l),u=Math.floor(180/(Math.PI/c));return r.clientX>o&&r.clientY>a&&(u=180-u),r.clientX==o&&r.clientY>a&&(u=180),r.clientX>o&&r.clientY==a&&(u=90),r.clientX<o&&r.clientY>a&&(u=180+u),r.clientX<o&&r.clientY==a&&(u=270),r.clientX<o&&r.clientY<a&&(u=360-u),u}},{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 s=0;s<o.length;s++)o[s]&&r.classList.add(o[s]);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})(),Jg=Math.floor,Zg="".replace,Qg=/\$([$&'`]|\d\d?|<[^>]*>)/g,em=/\$([$&'`]|\d\d?)/g,tm=function(e,t,r,n,o,a){var s=r+e.length,i=n.length,l=em;return o!==void 0&&(o=Ye(o),l=Qg),Zg.call(a,l,function(c,u){var f;switch(u.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(s);case"<":f=o[u.slice(1,-1)];break;default:var d=+u;if(d===0)return c;if(d>i){var h=Jg(d/10);return h===0?c:h<=i?n[h-1]===void 0?u.charAt(1):n[h-1]+u.charAt(1):c}f=n[d-1]}return f===void 0?"":f})},rm=Math.max,nm=Math.min;ku("replace",2,function(e,t,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,a=n.REPLACE_KEEPS_$0,s=o?"$":"$0";return[function(i,l){var c=rt(this),u=i?.[e];return u!==void 0?u.call(i,c,l):t.call(String(c),i,l)},function(i,l){if(!o&&a||typeof l=="string"&&l.indexOf(s)===-1){var c=r(t,i,this,l);if(c.done)return c.value}var u=ve(i),f=String(this),d=typeof l=="function";d||(l=String(l));var h=u.global;if(h){var m=u.unicode;u.lastIndex=0}for(var y=[];;){var v=na(u,f);if(v===null||(y.push(v),!h))break;String(v[0])===""&&(u.lastIndex=Tu(f,_e(u.lastIndex),m))}for(var p,g="",b=0,w=0;w<y.length;w++){v=y[w];for(var k=String(v[0]),_=rm(nm(Pt(v.index),f.length),0),F=[],H=1;H<v.length;H++)F.push((p=v[H])===void 0?p:String(p));var N=v.groups;if(d){var W=[k].concat(F,_,f);N!==void 0&&W.push(N);var C=String(l.apply(void 0,W))}else C=tm(k,f,_,F,N,l);_>=b&&(g+=f.slice(b,_)+C,b=_+k.length)}return g+f.slice(b)}]}),(function(){function e(){yt(this,e)}return bt(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(){yt(this,e)}return bt(e,null,[{key:"_clone",value:function(){}}]),e})();var $u=Z("isConcatSpreadable"),om=nn>=51||!Y(function(){var e=[];return e[$u]=!1,e.concat()[0]!==e}),am=Xo("concat"),im=function(e){if(!le(e))return!1;var t=e[$u];return t!==void 0?!!t:Ft(e)};fe({target:"Array",proto:!0,forced:!om||!am},{concat:function(e){var t,r,n,o,a,s=Ye(this),i=rn(s,0),l=0;for(t=-1,n=arguments.length;t<n;t++)if(im(a=t===-1?s:arguments[t])){if(l+(o=_e(a.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,l++)r in a&&Mt(i,l,a[r])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Mt(i,l++,a)}return i.length=l,i}});var la,yr=function(e,t,r){if(ra(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)}},Iu=[].push,Fu=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,a=e==6,s=e==7,i=e==5||a;return function(l,c,u,f){for(var d,h,m=Ye(l),y=Kr(m),v=yr(c,u,3),p=_e(y.length),g=0,b=f||rn,w=t?b(l,p):r||s?b(l,0):void 0;p>g;g++)if((i||g in y)&&(h=v(d=y[g],g,m),e))if(t)w[g]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return g;case 2:Iu.call(w,d)}else switch(e){case 4:return!1;case 7:Iu.call(w,d)}return a?-1:n||o?o:w}},Mu={find:Fu(5),findIndex:Fu(6)},lm=Te?Object.defineProperties:function(e,t){ve(e);for(var r,n=aa(t),o=n.length,a=0;o>a;)ze.f(e,r=n[a++],t[r]);return e},sm=Jr("document","documentElement"),qu=Vo("IE_PROTO"),sa=function(){},Nu=function(e){return"<script>"+e+"<\/script>"},ln=function(){try{la=document.domain&&new ActiveXObject("htmlfile")}catch{}var e,t;ln=la?(function(n){n.write(Nu("")),n.close();var o=n.parentWindow.Object;return n=null,o})(la):((t=Xs("iframe")).style.display="none",sm.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Nu("document.F=Object")),e.close(),e.F);for(var r=Qr.length;r--;)delete ln.prototype[Qr[r]];return ln()};Xr[qu]=!0;var ua=Object.create||function(e,t){var r;return e!==null?(sa.prototype=ve(e),r=new sa,sa.prototype=null,r[qu]=e):r=ln(),t===void 0?r:lm(r,t)},ca=Z("unscopables"),fa=Array.prototype;fa[ca]==null&&ze.f(fa,ca,{configurable:!0,value:ua(null)});var Dt=function(e){fa[ca][e]=!0},um=Mu.find,Bu=!0,cm=$t("find");"find"in[]&&Array(1).find(function(){Bu=!1}),fe({target:"Array",proto:!0,forced:Bu||!cm},{find:function(e){return um(this,e,arguments.length>1?arguments[1]:void 0)}}),Dt("find");var fm=Mu.findIndex,Du=!0,dm=$t("findIndex");"findIndex"in[]&&Array(1).findIndex(function(){Du=!1}),fe({target:"Array",proto:!0,forced:Du||!dm},{findIndex:function(e){return fm(this,e,arguments.length>1?arguments[1]:void 0)}}),Dt("findIndex");var Gu=function(e,t,r,n,o,a,s,i){for(var l,c=o,u=0,f=!!s&&yr(s,i,3);u<n;){if(u in r){if(l=f?f(r[u],u,t):r[u],a>0&&Ft(l))c=Gu(e,t,l,_e(l.length),c,a-1)-1;else{if(c>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[c]=l}c++}u++}return c},hm=Gu;fe({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Ye(this),r=_e(t.length),n=rn(t,0);return n.length=hm(n,t,t,r,0,e===void 0?1:Pt(e)),n}});var da=function(e){var t=e.return;if(t!==void 0)return ve(t.call(e)).value},vm=function(e,t,r,n){try{return n?t(ve(r)[0],r[1]):t(r)}catch(o){throw da(e),o}},Gt={},pm=Z("iterator"),gm=Array.prototype,Lu=function(e){return e!==void 0&&(Gt.Array===e||gm[pm]===e)},mm=Z("iterator"),Hu=function(e){if(e!=null)return e[mm]||e["@@iterator"]||Gt[pu(e)]},Vu=Z("iterator"),Uu=!1;try{var ym=0,Wu={next:function(){return{done:!!ym++}},return:function(){Uu=!0}};Wu[Vu]=function(){return this},Array.from(Wu,function(){throw 2})}catch{}var Ku=function(e,t){if(!Uu)return!1;var r=!1;try{var n={};n[Vu]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},bm=!Ku(function(e){Array.from(e)});fe({target:"Array",stat:!0,forced:bm},{from:function(e){var t,r,n,o,a,s,i=Ye(e),l=typeof this=="function"?this:Array,c=arguments.length,u=c>1?arguments[1]:void 0,f=u!==void 0,d=Hu(i),h=0;if(f&&(u=yr(u,c>2?arguments[2]:void 0,2)),d==null||l==Array&&Lu(d))for(r=new l(t=_e(i.length));t>h;h++)s=f?u(i[h],h):i[h],Mt(r,h,s);else for(a=(o=d.call(i)).next,r=new l;!(n=a.call(o)).done;h++)s=f?vm(o,u,[n.value,h],!0):n.value,Mt(r,h,s);return r.length=h,r}});var Cm=function(e){return function(t,r,n,o){ra(r);var a=Ye(t),s=Kr(a),i=_e(a.length),l=e?i-1:0,c=e?-1:1;if(n<2)for(;;){if(l in s){o=s[l],l+=c;break}if(l+=c,e?l<0:i<=l)throw TypeError("Reduce of empty array with no initial value")}for(;e?l>=0:i>l;l+=c)l in s&&(o=r(o,s[l],l,a));return o}},wm={left:Cm(!1)},Sm=Ke(oe.process)=="process",xm=wm.left,Om=Ko("reduce"),_m=$t("reduce",{1:0});fe({target:"Array",proto:!0,forced:!Om||!_m||!Sm&&nn>79&&nn<83},{reduce:function(e){return xm(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}}),Dt("flat");var Ct,zu,Yu,km=!Y(function(){return Object.isExtensible(Object.preventExtensions({}))}),Xu=No(function(e){var t=ze.f,r=Ho("meta"),n=0,o=Object.isExtensible||function(){return!0},a=function(i){t(i,r,{value:{objectID:"O"+ ++n,weakData:{}}})},s=e.exports={REQUIRED:!1,fastKey:function(i,l){if(!le(i))return typeof i=="symbol"?i:(typeof i=="string"?"S":"P")+i;if(!ne(i,r)){if(!o(i))return"F";if(!l)return"E";a(i)}return i[r].objectID},getWeakData:function(i,l){if(!ne(i,r)){if(!o(i))return!0;if(!l)return!1;a(i)}return i[r].weakData},onFreeze:function(i){return km&&s.REQUIRED&&o(i)&&!ne(i,r)&&a(i),i}};Xr[r]=!0}),br=function(e,t){this.stopped=e,this.result=t},Ju=function(e,t,r){var n,o,a,s,i,l,c,u=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),m=yr(t,u,1+f+h),y=function(p){return n&&da(n),new br(!0,p)},v=function(p){return f?(ve(p),h?m(p[0],p[1],y):m(p[0],p[1])):h?m(p,y):m(p)};if(d)n=e;else{if(typeof(o=Hu(e))!="function")throw TypeError("Target is not iterable");if(Lu(o)){for(a=0,s=_e(e.length);s>a;a++)if((i=v(e[a]))&&i instanceof br)return i;return new br(!1)}n=o.call(e)}for(l=n.next;!(c=l.call(n)).done;){try{i=v(c.value)}catch(p){throw da(n),p}if(typeof i=="object"&&i&&i instanceof br)return i}return new br(!1)},Zu=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e},Em=ze.f,Qu=Z("toStringTag"),ha=function(e,t,r){e&&!ne(e=r?e:e.prototype,Qu)&&Em(e,Qu,{configurable:!0,value:t})},sn=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 ve(n),(function(a){if(!le(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),ec=function(e,t,r){for(var n in t)ot(e,n,t[n],r);return e},Am=!Y(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),tc=Vo("IE_PROTO"),Tm=Object.prototype,un=Am?Object.getPrototypeOf:function(e){return e=Ye(e),ne(e,tc)?e[tc]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Tm:null},va=Z("iterator"),rc=!1;[].keys&&("next"in(Yu=[].keys())?(zu=un(un(Yu)))!==Object.prototype&&(Ct=zu):rc=!0),(Ct==null||Y(function(){var e={};return Ct[va].call(e)!==e}))&&(Ct={}),ne(Ct,va)||Re(Ct,va,function(){return this});var pa={IteratorPrototype:Ct,BUGGY_SAFARI_ITERATORS:rc},Rm=pa.IteratorPrototype,jm=function(){return this},ga=pa.IteratorPrototype,cn=pa.BUGGY_SAFARI_ITERATORS,Cr=Z("iterator"),Pm=function(){return this},ma=function(e,t,r,n,o,a,s){(function(p,g,b){var w=g+" Iterator";p.prototype=ua(Rm,{next:Wr(1,b)}),ha(p,w,!1),Gt[w]=jm})(r,t,n);var i,l,c,u=function(p){if(p===o&&y)return y;if(!cn&&p in h)return h[p];switch(p){case"keys":case"values":case"entries":return function(){return new r(this,p)}}return function(){return new r(this)}},f=t+" Iterator",d=!1,h=e.prototype,m=h[Cr]||h["@@iterator"]||o&&h[o],y=!cn&&m||u(o),v=t=="Array"&&h.entries||m;if(v&&(i=un(v.call(new e)),ga!==Object.prototype&&i.next&&(un(i)!==ga&&(sn?sn(i,ga):typeof i[Cr]!="function"&&Re(i,Cr,Pm)),ha(i,f,!0))),o=="values"&&m&&m.name!=="values"&&(d=!0,y=function(){return m.call(this)}),h[Cr]!==y&&Re(h,Cr,y),Gt[t]=y,o)if(l={values:u("values"),keys:a?y:u("keys"),entries:u("entries")},s)for(c in l)(cn||d||!(c in h))&&ot(h,c,l[c]);else fe({target:t,proto:!0,forced:cn||d},l);return l},nc=Z("species"),$m=ze.f,oc=Xu.fastKey,ac=nt.set,ya=nt.getterFor;(function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,a=n?"set":"add",s=oe[e],i=s&&s.prototype,l=s,c={},u=function(v){var p=i[v];ot(i,v,v=="add"?function(g){return p.call(this,g===0?0:g),this}:v=="delete"?function(g){return!(o&&!le(g))&&p.call(this,g===0?0:g)}:v=="get"?function(g){return o&&!le(g)?void 0:p.call(this,g===0?0:g)}:v=="has"?function(g){return!(o&&!le(g))&&p.call(this,g===0?0:g)}:function(g,b){return p.call(this,g===0?0:g,b),this})};if(Wo(e,typeof s!="function"||!(o||i.forEach&&!Y(function(){new s().entries().next()}))))l=r.getConstructor(t,e,n,a),Xu.REQUIRED=!0;else if(Wo(e,!0)){var f=new l,d=f[a](o?{}:-0,1)!=f,h=Y(function(){f.has(1)}),m=Ku(function(v){new s(v)}),y=!o&&Y(function(){for(var v=new s,p=5;p--;)v[a](p,p);return!v.has(-0)});m||((l=t(function(v,p){Zu(v,l,e);var g=(function(b,w,k){var _,F;return sn&&typeof(_=w.constructor)=="function"&&_!==k&&le(F=_.prototype)&&F!==k.prototype&&sn(b,F),b})(new s,v,l);return p!=null&&Ju(p,g[a],{that:g,AS_ENTRIES:n}),g})).prototype=i,i.constructor=l),(h||y)&&(u("delete"),u("has"),n&&u("get")),(y||d)&&u(a),o&&i.clear&&delete i.clear}c[e]=l,fe({global:!0,forced:l!=s},c),ha(l,e),o||r.setStrong(l,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(l,c){Zu(l,o,t),ac(l,{type:t,index:ua(null),first:void 0,last:void 0,size:0}),Te||(l.size=0),c!=null&&Ju(c,l[n],{that:l,AS_ENTRIES:r})}),a=ya(t),s=function(l,c,u){var f,d,h=a(l),m=i(l,c);return m?m.value=u:(h.last=m={index:d=oc(c,!0),key:c,value:u,previous:f=h.last,next:void 0,removed:!1},h.first||(h.first=m),f&&(f.next=m),Te?h.size++:l.size++,d!=="F"&&(h.index[d]=m)),l},i=function(l,c){var u,f=a(l),d=oc(c);if(d!=="F")return f.index[d];for(u=f.first;u;u=u.next)if(u.key==c)return u};return ec(o.prototype,{clear:function(){for(var l=a(this),c=l.index,u=l.first;u;)u.removed=!0,u.previous&&(u.previous=u.previous.next=void 0),delete c[u.index],u=u.next;l.first=l.last=void 0,Te?l.size=0:this.size=0},delete:function(l){var c=this,u=a(c),f=i(c,l);if(f){var d=f.next,h=f.previous;delete u.index[f.index],f.removed=!0,h&&(h.next=d),d&&(d.previous=h),u.first==f&&(u.first=d),u.last==f&&(u.last=h),Te?u.size--:c.size--}return!!f},forEach:function(l){for(var c,u=a(this),f=yr(l,arguments.length>1?arguments[1]:void 0,3);c=c?c.next:u.first;)for(f(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!i(this,l)}}),ec(o.prototype,r?{get:function(l){var c=i(this,l);return c&&c.value},set:function(l,c){return s(this,l===0?0:l,c)}}:{add:function(l){return s(this,l=l===0?0:l,l)}}),Te&&$m(o.prototype,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=ya(t),a=ya(n);ma(e,t,function(s,i){ac(this,{type:n,target:s,state:o(s),kind:i,last:void 0})},function(){for(var s=a(this),i=s.kind,l=s.last;l&&l.removed;)l=l.previous;return s.target&&(s.last=l=l?l.next:s.state.first)?i=="keys"?{value:l.key,done:!1}:i=="values"?{value:l.value,done:!1}:{value:[l.key,l.value],done:!1}:(s.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),(function(s){var i=Jr(s),l=ze.f;Te&&i&&!i[nc]&&l(i,nc,{configurable:!0,get:function(){return this}})})(t)}});var Im=Au.charAt,Fm=nt.set,Mm=nt.getterFor("String Iterator");ma(String,"String",function(e){Fm(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=Mm(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Im(r,n),t.index+=e.length,{value:e,done:!1})});var ic={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},qm=nt.set,Nm=nt.getterFor("Array Iterator"),wr=ma(Array,"Array",function(e,t){qm(this,{type:"Array Iterator",target:Rt(e),index:0,kind:t})},function(){var e=Nm(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,Dt("keys"),Dt("values"),Dt("entries");var ba=Z("iterator"),lc=Z("toStringTag"),Ca=wr.values;for(var wa in ic){var sc=oe[wa],Xe=sc&&sc.prototype;if(Xe){if(Xe[ba]!==Ca)try{Re(Xe,ba,Ca)}catch{Xe[ba]=Ca}if(Xe[lc]||Re(Xe,lc,wa),ic[wa]){for(var Lt in wr)if(Xe[Lt]!==wr[Lt])try{Re(Xe,Lt,wr[Lt])}catch{Xe[Lt]=wr[Lt]}}}}(function(){function e(){yt(this,e)}return bt(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(){yt(this,e)}return bt(e,null,[{key:"today",value:function(){return new Date}}]),e})(),(function(){function e(){yt(this,e)}return bt(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 Bm=Object.defineProperty,Dm=(e,t,r)=>t in e?Bm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,de=(e,t,r)=>(Dm(e,typeof t!="symbol"?t+"":t,r),r);const te=e=>Math.round(e*100)/100;class Q{constructor(t){de(this,"instance"),de(this,"alphaValue",0),de(this,"redValue",0),de(this,"greenValue",0),de(this,"blueValue",0),de(this,"hueValue",0),de(this,"saturationValue",0),de(this,"brightnessValue",0),de(this,"hslSaturationValue",0),de(this,"lightnessValue",0),de(this,"initAlpha",()=>{const r=this.instance.getAlpha();this.alphaValue=Math.min(1,r)*100}),de(this,"initLightness",()=>{const{s:r,l:n}=this.instance.toHsl();this.hslSaturationValue=te(r),this.lightnessValue=te(n)}),de(this,"initRgb",()=>{const{r,g:n,b:o}=this.instance.toRgb();this.redValue=te(r),this.greenValue=te(n),this.blueValue=te(o)}),de(this,"initHsb",()=>{const{h:r,s:n,v:o}=this.instance.toHsv();this.hueValue=Math.min(360,Math.ceil(r)),this.saturationValue=te(n),this.brightnessValue=te(o)}),de(this,"toHexString",()=>this.instance.toHexString()),de(this,"toRgbString",()=>this.instance.toRgbString()),this.instance=O(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=O(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=O({h:te(t),s:this.saturation,v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.hueValue=te(t)}get hue(){return this.hueValue}set saturation(t){this.instance=O({h:this.hue,s:te(t),v:this.brightness,a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.saturationValue=te(t)}get saturation(){return this.saturationValue}set brightness(t){this.instance=O({h:this.hue,s:this.saturation,v:te(t),a:this.alphaValue/100}),this.initRgb(),this.initLightness(),this.brightnessValue=te(t)}get brightness(){return this.brightnessValue}set lightness(t){this.instance=O({h:this.hue,s:this.hslSaturationValue,l:te(t),a:this.alphaValue/100}),this.initRgb(),this.initHsb(),this.lightnessValue=te(t)}get lightness(){return this.lightnessValue}set red(t){const r=this.instance.toRgb();this.instance=O({...r,r:te(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.redValue=te(t)}get red(){return this.redValue}set green(t){const r=this.instance.toRgb();this.instance=O({...r,g:te(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.greenValue=te(t)}get green(){return this.greenValue}set blue(t){const r=this.instance.toRgb();this.instance=O({...r,b:te(t),a:this.alphaValue/100}),this.initHsb(),this.initLightness(),this.blueValue=te(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 uc(e,t,r,n){return`rgba(${[e,t,r,n/100].join(",")})`}const Sa=(e,t,r)=>t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e,xa="color-history",Oa=8,je=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},Gm=M({name:"Alpha",props:{color:I.instanceOf(Q),size:I.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=B(null),n=B(null);let o=e.color||new Q;const a=Ce({red:o.red,green:o.green,blue:o.blue,alpha:o.alpha});he(()=>e.color,f=>{f&&(o=f,zt(a,{red:f.red,green:f.green,blue:f.blue,alpha:f.alpha}))},{deep:!0});const s=G(()=>{const f=uc(a.red,a.green,a.blue,0),d=uc(a.red,a.green,a.blue,100);return{background:`linear-gradient(to right, ${f} , ${d})`}}),i=()=>{if(r.value&&n.value){const f=a.alpha/100,d=r.value.getBoundingClientRect(),h=n.value.offsetWidth;return Math.round(f*(d.width-h)+h/2)}return 0},l=G(()=>({left:i()+"px",top:0})),c=f=>{f.target!==r.value&&u(f)},u=f=>{if(f.stopPropagation(),r.value&&n.value){const d=r.value.getBoundingClientRect(),h=n.value.offsetWidth;let m=f.clientX-d.left;m=Math.max(h/2,m),m=Math.min(m,d.width-h/2);const y=Math.round((m-h/2)/(d.width-h)*100);o.alpha=y,a.alpha=y,t("change",y)}};return ut(()=>{const f={drag:d=>{u(d)},end:d=>{u(d)}};r.value&&n.value&&mr.triggerDragEvent(r.value,f)}),{barElement:r,cursorElement:n,getCursorStyle:l,getBackgroundStyle:s,onClickSider:c}}}),Lm=e=>(it("data-v-18925ba6"),e=e(),lt(),e),Hm=Lm(()=>E("div",{class:"vc-alpha-slider__bar-handle"},null,-1)),Vm=[Hm];function Um(e,t,r,n,o,a){return $(),U("div",{class:se(["vc-alpha-slider","transparent",{"small-slider":e.size==="small"}])},[E("div",{ref:"barElement",class:"vc-alpha-slider__bar",style:ae(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickSider&&e.onClickSider(...s))},[E("div",{class:se(["vc-alpha-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:ae(e.getCursorStyle)},Vm,6)],4)],2)}const _a=je(Gm,[["render",Um],["__scopeId","data-v-18925ba6"]]),Wm=[["#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"]],Km=M({name:"Palette",emits:["change"],setup(e,{emit:t}){return{palettes:Wm,computedBgStyle:r=>r==="transparent"?r:r==="advance"?{}:{background:O(r).toRgbString()},onColorChange:r=>{t("change",r)}}}}),zm={class:"vc-compact"},Ym=["onClick"];function Xm(e,t,r,n,o,a){return $(),U("div",zm,[($(!0),U(Ze,null,xt(e.palettes,(s,i)=>($(),U("div",{key:i,class:"vc-compact__row"},[($(!0),U(Ze,null,xt(s,(l,c)=>($(),U("div",{key:c,class:"vc-compact__color-cube--wrap",onClick:u=>e.onColorChange(l)},[E("div",{class:se(["vc-compact__color_cube",{advance:l==="advance",transparent:l==="transparent"}]),style:ae(e.computedBgStyle(l))},null,6)],8,Ym))),128))]))),128))])}const cc=je(Km,[["render",Xm],["__scopeId","data-v-b969fd48"]]),Jm=M({name:"Board",props:{color:I.instanceOf(Q),round:I.bool.def(!1),hide:I.bool.def(!0)},emits:["change"],setup(e,{emit:t}){var r,n,o;const a=_r(),s={h:((r=e.color)==null?void 0:r.hue)||0,s:1,v:1},i=new Q(s).toHexString(),l=Ce({hueColor:i,saturation:((n=e.color)==null?void 0:n.saturation)||0,brightness:((o=e.color)==null?void 0:o.brightness)||0}),c=B(0),u=B(0),f=B(),d=G(()=>({top:c.value+"px",left:u.value+"px"})),h=()=>{if(a){const b=a.vnode.el;u.value=l.saturation*b?.clientWidth,c.value=(1-l.brightness)*b?.clientHeight}};let m=!1;const y=b=>{m=!0,g(b)},v=b=>{m&&g(b)},p=()=>{m=!1},g=b=>{if(a){const w=a.vnode.el,k=w?.getBoundingClientRect();let _=b.clientX-k.left,F=b.clientY-k.top;_=Sa(_,0,k.width),F=Sa(F,0,k.height);const H=_/k.width,N=Sa(-(F/k.height)+1,0,1);u.value=_,c.value=F,l.saturation=H,l.brightness=N,t("change",H,N)}};return ut(()=>{a&&a.vnode.el&&f.value&&Ut(()=>{h()})}),ce(()=>e.color,b=>{zt(l,{hueColor:new Q({h:b.hue,s:1,v:1}).toHexString(),saturation:b.saturation,brightness:b.brightness}),h()},{deep:!0}),{state:l,cursorElement:f,getCursorStyle:d,onClickBoard:y,onDrag:v,onDragEnd:p}}}),ka=e=>(it("data-v-7f0cdcdf"),e=e(),lt(),e),Zm=ka(()=>E("div",{class:"vc-saturation__white"},null,-1)),Qm=ka(()=>E("div",{class:"vc-saturation__black"},null,-1)),ey=ka(()=>E("div",null,null,-1)),ty=[ey];function ry(e,t,r,n,o,a){return $(),U("div",{ref:"boardElement",class:se(["vc-saturation",{"vc-saturation__chrome":e.round,"vc-saturation__hidden":e.hide}]),style:ae({backgroundColor:e.state.hueColor}),onMousedown:t[0]||(t[0]=(...s)=>e.onClickBoard&&e.onClickBoard(...s)),onMousemove:t[1]||(t[1]=(...s)=>e.onDrag&&e.onDrag(...s)),onMouseup:t[2]||(t[2]=(...s)=>e.onDragEnd&&e.onDragEnd(...s))},[Zm,Qm,E("div",{class:"vc-saturation__cursor",ref:"cursorElement",style:ae(e.getCursorStyle)},ty,4)],38)}const Ea=je(Jm,[["render",ry],["__scopeId","data-v-7f0cdcdf"]]),ny=M({name:"Hue",props:{color:I.instanceOf(Q),size:I.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=B(null),n=B(null);let o=e.color||new Q;const a=Ce({hue:o.hue||0});he(()=>e.color,u=>{u&&(o=u,zt(a,{hue:o.hue}))},{deep:!0});const s=()=>{if(r.value&&n.value){const u=r.value.getBoundingClientRect(),f=n.value.offsetWidth;return a.hue===360?u.width-f/2:a.hue%360*(u.width-f)/360+f/2}return 0},i=G(()=>({left:s()+"px",top:0})),l=u=>{u.target!==r.value&&c(u)},c=u=>{if(u.stopPropagation(),r.value&&n.value){const f=r.value.getBoundingClientRect(),d=n.value.offsetWidth;let h=u.clientX-f.left;h=Math.min(h,f.width-d/2),h=Math.max(d/2,h);const m=Math.round((h-d/2)/(f.width-d)*360);o.hue=m,a.hue=m,t("change",m)}};return ut(()=>{const u={drag:f=>{c(f)},end:f=>{c(f)}};r.value&&n.value&&mr.triggerDragEvent(r.value,u)}),{barElement:r,cursorElement:n,getCursorStyle:i,onClickSider:l}}}),oy=e=>(it("data-v-e1a08576"),e=e(),lt(),e),ay=oy(()=>E("div",{class:"vc-hue-slider__bar-handle"},null,-1)),iy=[ay];function ly(e,t,r,n,o,a){return $(),U("div",{class:se(["vc-hue-slider",{"small-slider":e.size==="small"}])},[E("div",{ref:"barElement",class:"vc-hue-slider__bar",onClick:t[0]||(t[0]=(...s)=>e.onClickSider&&e.onClickSider(...s))},[E("div",{class:se(["vc-hue-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:ae(e.getCursorStyle)},iy,6)],512)],2)}const Aa=je(ny,[["render",ly],["__scopeId","data-v-e1a08576"]]),sy=M({name:"Lightness",props:{color:I.instanceOf(Q),size:I.oneOf(["small","default"]).def("default")},emits:["change"],setup(e,{emit:t}){const r=B(null),n=B(null);let o=e.color||new Q;const[a,s,i]=o.HSL,l=Ce({hue:a,saturation:s,lightness:i});he(()=>e.color,m=>{if(m){o=m;const[y,v,p]=o.HSL;zt(l,{hue:y,saturation:v,lightness:p})}},{deep:!0});const c=G(()=>{const m=O({h:l.hue,s:l.saturation,l:.8}).toPercentageRgbString(),y=O({h:l.hue,s:l.saturation,l:.6}).toPercentageRgbString(),v=O({h:l.hue,s:l.saturation,l:.4}).toPercentageRgbString(),p=O({h:l.hue,s:l.saturation,l:.2}).toPercentageRgbString();return{background:[`linear-gradient(to right, rgb(255, 255, 255), ${m}, ${y}, ${v}, ${p}, rgb(0, 0, 0))`,`-webkit-linear-gradient(left, rgb(255, 255, 255), ${m}, ${y}, ${v}, ${p}, rgb(0, 0, 0))`,`-moz-linear-gradient(left, rgb(255, 255, 255), ${m}, ${y}, ${v}, ${p}, rgb(0, 0, 0))`,`-ms-linear-gradient(left, rgb(255, 255, 255), ${m}, ${y}, ${v}, ${p}, rgb(0, 0, 0))`]}}),u=()=>{if(r.value&&n.value){const m=l.lightness,y=r.value.getBoundingClientRect(),v=n.value.offsetWidth;return(1-m)*(y.width-v)+v/2}return 0},f=G(()=>({left:u()+"px",top:0})),d=m=>{m.target!==r.value&&h(m)},h=m=>{if(m.stopPropagation(),r.value&&n.value){const y=r.value.getBoundingClientRect(),v=n.value.offsetWidth;let p=m.clientX-y.left;p=Math.max(v/2,p),p=Math.min(p,y.width-v/2);const g=1-(p-v/2)/(y.width-v);o.lightness=g,t("change",g)}};return ut(()=>{const m={drag:y=>{h(y)},end:y=>{h(y)}};r.value&&n.value&&mr.triggerDragEvent(r.value,m)}),{barElement:r,cursorElement:n,getCursorStyle:f,getBackgroundStyle:c,onClickSider:d}}}),uy=e=>(it("data-v-94a50a9e"),e=e(),lt(),e),cy=uy(()=>E("div",{class:"vc-lightness-slider__bar-handle"},null,-1)),fy=[cy];function dy(e,t,r,n,o,a){return $(),U("div",{class:se(["vc-lightness-slider",{"small-slider":e.size==="small"}])},[E("div",{ref:"barElement",class:"vc-lightness-slider__bar",style:ae(e.getBackgroundStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickSider&&e.onClickSider(...s))},[E("div",{class:se(["vc-lightness-slider__bar-pointer",{"small-bar":e.size==="small"}]),ref:"cursorElement",style:ae(e.getCursorStyle)},fy,6)],4)],2)}const fc=je(sy,[["render",dy],["__scopeId","data-v-94a50a9e"]]),hy=M({name:"History",props:{colors:I.arrayOf(String).def(()=>[]),round:I.bool.def(!1)},emits:["change"],setup(e,{emit:t}){return{onColorSelect:r=>{t("change",r)}}}}),vy={key:0,class:"vc-colorPicker__record"},py={class:"color-list"},gy=["onClick"];function my(e,t,r,n,o,a){return e.colors&&e.colors.length>0?($(),U("div",vy,[E("div",py,[($(!0),U(Ze,null,xt(e.colors,(s,i)=>($(),U("div",{key:i,class:se(["color-item","transparent",{"color-item__round":e.round}]),onClick:l=>e.onColorSelect(s)},[E("div",{class:"color-item__display",style:ae({backgroundColor:s})},null,4)],10,gy))),128))])])):z("",!0)}const Ta=je(hy,[["render",my],["__scopeId","data-v-0f657238"]]),yy=M({name:"Display",props:{color:I.instanceOf(Q),disableAlpha:I.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){var r,n,o,a;const{copy:s,copied:i,isSupported:l}=Ud(),c=B("hex"),u=Ce({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=G(()=>({background:u.previewBgColor})),d=()=>{c.value=c.value==="rgba"?"hex":"rgba"},h=Ve(p=>{if(!p.target.value)return;let g=parseInt(p.target.value.replace("%",""));g>100&&(p.target.value="100",g=100),g<0&&(p.target.value="0",g=0),isNaN(g)&&(p.target.value="100",g=100),!isNaN(g)&&u.color&&(u.color.alpha=g),t("change",u.color)},300),m=Ve((p,g)=>{if(u.color){if(c.value==="hex"){const b=p.target.value.replace("#","");O(b).isValid()?[3,4].includes(b.length)&&(u.color.hex=b):u.color.hex="000000",t("change",u.color)}else if(c.value==="rgba"&&g===3&&p.target.value.toString()==="0."&&u.rgba){u.rgba[g]=p.target.value;const[b,w,k,_]=u.rgba;u.color.hex=O({r:b,g:w,b:k}).toHex(),u.color.alpha=Math.round(_*100),t("change",u.color)}}},100),y=Ve((p,g)=>{if(p.target.value){if(c.value==="hex"){const b=p.target.value.replace("#","");O(b).isValid()&&u.color&&[6,8].includes(b.length)&&(u.color.hex=b)}else if(g!==void 0&&u.rgba&&u.color){if(p.target.value<0&&(p.target.value=0),g===3&&((p.target.value>1||isNaN(p.target.value))&&(p.target.value=1),p.target.value.toString()==="0."))return;g<3&&p.target.value>255&&(p.target.value=255),u.rgba[g]=p.target.value;const[b,w,k,_]=u.rgba;u.color.hex=O({r:b,g:w,b:k}).toHex(),u.color.alpha=Math.round(_*100)}t("change",u.color)}},300),v=()=>{if(l&&u.color){const p=c.value==="hex"?u.color.toString(u.color.alpha===100?"hex6":"hex8"):u.color.toRgbString();s(p||"")}};return ce(()=>e.color,p=>{p&&(u.color=p,u.alpha=Math.round(u.color.alpha),u.hex=u.color.hex,u.rgba=u.color.RGB)},{deep:!0}),ce(()=>u.color,()=>{u.color&&(u.previewBgColor=u.color.toRgbString())},{deep:!0}),{state:u,getBgColorStyle:f,inputType:c,copied:i,onInputTypeChange:d,onAlphaBlur:h,onInputChange:y,onBlurChange:m,onCopyColorStr:v}}}),by={class:"vc-display"},Cy={class:"vc-current-color vc-transparent"},wy={key:0,class:"copy-text"},Sy={key:0,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},xy={class:"vc-color-input"},Oy={key:0,class:"vc-alpha-input"},_y=["value"],ky={key:1,style:{display:"flex",flex:"1",gap:"4px",height:"100%"}},Ey=["value","onInput","onBlur"];function Ay(e,t,r,n,o,a){return $(),U("div",by,[E("div",Cy,[E("div",{class:"color-cube",style:ae(e.getBgColorStyle),onClick:t[0]||(t[0]=(...s)=>e.onCopyColorStr&&e.onCopyColorStr(...s))},[e.copied?($(),U("span",wy,"Copied!")):z("",!0)],4)]),e.inputType==="hex"?($(),U("div",Sy,[E("div",xy,[Wt(E("input",{"onUpdate:modelValue":t[1]||(t[1]=s=>e.state.hex=s),maxlength:"8",onInput:t[2]||(t[2]=(...s)=>e.onInputChange&&e.onInputChange(...s)),onBlur:t[3]||(t[3]=(...s)=>e.onBlurChange&&e.onBlurChange(...s))},null,544),[[Ka,e.state.hex]])]),e.disableAlpha?z("",!0):($(),U("div",Oy,[E("input",{class:"vc-alpha-input__inner",value:e.state.alpha,onInput:t[4]||(t[4]=(...s)=>e.onAlphaBlur&&e.onAlphaBlur(...s))},null,40,_y),Or("% ")]))])):e.state.rgba?($(),U("div",ky,[($(!0),U(Ze,null,xt(e.state.rgba,(s,i)=>($(),U("div",{class:"vc-color-input",key:i},[E("input",{value:s,onInput:l=>e.onInputChange(l,i),onBlur:l=>e.onBlurChange(l,i)},null,40,Ey)]))),128))])):z("",!0),E("div",{class:"vc-input-toggle",onClick:t[5]||(t[5]=(...s)=>e.onInputTypeChange&&e.onInputTypeChange(...s))},Kt(e.inputType),1)])}const Ra=je(yy,[["render",Ay],["__scopeId","data-v-7334ac20"]]),Ty=M({name:"FkColorPicker",components:{Display:Ra,Alpha:_a,Palette:cc,Board:Ea,Hue:Aa,Lightness:fc,History:Ta},props:{color:I.instanceOf(Q),disableHistory:I.bool.def(!1),roundHistory:I.bool.def(!1),disableAlpha:I.bool.def(!1)},emits:["update:color","change","advanceChange"],setup(e,{emit:t}){const r=e.color||new Q,n=Ce({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=B(!1),a=G(()=>({background:n.rgb})),s=()=>{o.value=!1,t("advanceChange",!1)},i=jn(xa,[],{}),l=Ve(()=>{if(e.disableHistory)return;const y=n.color.toRgbString();if(i.value=i.value.filter(v=>!O.equals(v,y)),!i.value.includes(y)){for(;i.value.length>Oa;)i.value.pop();i.value.unshift(y)}},500),c=y=>{y==="advance"?(o.value=!0,t("advanceChange",!0)):(n.color.hex=y,t("advanceChange",!1))},u=y=>{n.color.alpha=y},f=y=>{n.color.hue=y},d=(y,v)=>{n.color.saturation=y,n.color.brightness=v},h=y=>{n.color.lightness=y},m=y=>{const v=y.target.value.replace("#","");O(v).isValid()&&(n.color.hex=v)};return ce(()=>e.color,y=>{y&&(n.color=y)},{deep:!0}),ce(()=>n.color,()=>{n.hex=n.color.hex,n.rgb=n.color.toRgbString(),l(),t("update:color",n.color),t("change",n.color)},{deep:!0}),{state:n,advancePanelShow:o,onBack:s,onCompactChange:c,onAlphaChange:u,onHueChange:f,onBoardChange:d,onLightChange:h,onInputChange:m,previewStyle:a,historyColors:i}}}),Ry=e=>(it("data-v-48e3c224"),e=e(),lt(),e),jy={class:"vc-fk-colorPicker"},Py={class:"vc-fk-colorPicker__inner"},$y={class:"vc-fk-colorPicker__header"},Iy=Ry(()=>E("div",{class:"back"},null,-1)),Fy=[Iy];function My(e,t,r,n,o,a){const s=T("Palette"),i=T("Board"),l=T("Hue"),c=T("Lightness"),u=T("Alpha"),f=T("Display"),d=T("History");return $(),U("div",jy,[E("div",Py,[E("div",$y,[e.advancePanelShow?($(),U("span",{key:0,style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...h)=>e.onBack&&e.onBack(...h))},Fy)):z("",!0)]),e.advancePanelShow?z("",!0):($(),ee(s,{key:0,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?($(),ee(i,{key:1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"])):z("",!0),e.advancePanelShow?($(),ee(l,{key:2,color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"])):z("",!0),e.advancePanelShow?z("",!0):($(),ee(c,{key:3,color:e.state.color,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?z("",!0):($(),ee(u,{key:4,color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"])),S(f,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?z("",!0):($(),ee(d,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const dc=je(Ty,[["render",My],["__scopeId","data-v-48e3c224"]]),qy=M({name:"ChromeColorPicker",components:{Display:Ra,Alpha:_a,Board:Ea,Hue:Aa,History:Ta},props:{color:I.instanceOf(Q),disableHistory:I.bool.def(!1),roundHistory:I.bool.def(!1),disableAlpha:I.bool.def(!1)},emits:["update:color","change"],setup(e,{emit:t}){const r=e.color||new Q,n=Ce({color:r,hex:r.toHexString(),rgb:r.toRgbString()}),o=G(()=>({background:n.rgb})),a=jn(xa,[],{}),s=Ve(()=>{if(e.disableHistory)return;const d=n.color.toRgbString();if(a.value=a.value.filter(h=>!O.equals(h,d)),!a.value.includes(d)){for(;a.value.length>Oa;)a.value.pop();a.value.unshift(d)}},500),i=d=>{n.color.alpha=d},l=d=>{n.color.hue=d},c=d=>{d.hex!==void 0&&(n.color.hex=d.hex),d.alpha!==void 0&&(n.color.alpha=d.alpha)},u=(d,h)=>{n.color.saturation=d,n.color.brightness=h},f=d=>{d!=="advance"&&(n.color.hex=d)};return ce(()=>e.color,d=>{d&&(n.color=d)},{deep:!0}),ce(()=>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,previewStyle:o,historyColors:a,onAlphaChange:i,onHueChange:l,onBoardChange:u,onInputChange:c,onCompactChange:f}}}),Ny={class:"vc-chrome-colorPicker"},By={class:"vc-chrome-colorPicker-body"},Dy={class:"chrome-controls"},Gy={class:"chrome-sliders"};function Ly(e,t,r,n,o,a){const s=T("Board"),i=T("Hue"),l=T("Alpha"),c=T("Display"),u=T("History");return $(),U("div",Ny,[S(s,{round:!0,hide:!1,color:e.state.color,onChange:e.onBoardChange},null,8,["color","onChange"]),E("div",By,[E("div",Dy,[E("div",Gy,[S(i,{size:"small",color:e.state.color,onChange:e.onHueChange},null,8,["color","onChange"]),e.disableAlpha?z("",!0):($(),ee(l,{key:0,size:"small",color:e.state.color,onChange:e.onAlphaChange},null,8,["color","onChange"]))])]),S(c,{color:e.state.color,"disable-alpha":e.disableAlpha},null,8,["color","disable-alpha"]),e.disableHistory?z("",!0):($(),ee(u,{key:0,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])])}const hc=je(qy,[["render",Ly],["__scopeId","data-v-2611d66c"]]),ja="Vue3ColorPickerProvider",Hy=(e,t)=>{const r=e.getBoundingClientRect(),n=r.left+r.width/2,o=r.top+r.height/2,a=Math.abs(n-t.clientX),s=Math.abs(o-t.clientY),i=Math.sqrt(Math.pow(a,2)+Math.pow(s,2)),l=s/i,c=Math.acos(l);let u=Math.floor(180/(Math.PI/c));return t.clientX>n&&t.clientY>o&&(u=180-u),t.clientX==n&&t.clientY>o&&(u=180),t.clientX>n&&t.clientY==o&&(u=90),t.clientX<n&&t.clientY>o&&(u=180+u),t.clientX<n&&t.clientY==o&&(u=270),t.clientX<n&&t.clientY<o&&(u=360-u),u};let Pa=!1;const Vy=(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,Pa=!1,(a=t.end)==null||a.call(t,o)};e&&e.addEventListener("mousedown",o=>{var a;Pa||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",n,!1),Pa=!0,(a=t.start)==null||a.call(t,o))})},Uy={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"}},Wy=M({name:"Angle",props:Uy,emits:["update:angle","change"],setup(e,{emit:t}){const r=B(null),n=B(0);he(()=>e.angle,i=>{n.value=i});const o=()=>{let i=Number(n.value);isNaN(i)||(i=i>360||i<0?e.angle:i,n.value=i===360?0:i,t("update:angle",n.value),t("change",n.value))},a=G(()=>({width:e.size+"px",height:e.size+"px",borderWidth:e.borderWidth+"px",borderColor:e.borderColor,transform:`rotate(${n.value}deg)`})),s=i=>{r.value&&(n.value=Hy(r.value,i)%360,o())};return Vt(()=>{const i={drag:l=>{s(l)},end:l=>{s(l)}};r.value&&Vy(r.value,i)}),()=>S("div",{class:"bee-angle"},[S("div",{class:"bee-angle__round",ref:r,style:a.value},null)])}}),Ky=M({name:"GradientColorPicker",components:{Angle:Wy,Display:Ra,Alpha:_a,Palette:cc,Board:Ea,Hue:Aa,Lightness:fc,History:Ta},props:{startColor:I.instanceOf(Q).isRequired,endColor:I.instanceOf(Q).isRequired,startColorStop:I.number.def(0),endColorStop:I.number.def(100),angle:I.number.def(0),type:I.oneOf(["linear","radial"]).def("linear"),disableHistory:I.bool.def(!1),roundHistory:I.bool.def(!1),disableAlpha:I.bool.def(!1),pickerType:I.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=Ce({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=pn(ja),o=B(e.pickerType==="chrome"),a=B(),s=B(),i=B();he(()=>[e.startColor,e.endColor,e.angle],C=>{r.startColor=C[0],r.endColor=C[1],r.angle=C[2]}),he(()=>e.type,C=>{r.type=C});const l=G({get:()=>r.startActive?r.startColor:r.endColor,set:C=>{if(r.startActive){r.startColor=C;return}r.endColor=C}}),c=G(()=>{if(i.value&&a.value){const C=r.startColorStop/100,R=i.value.getBoundingClientRect(),q=a.value.offsetWidth;return Math.round(C*(R.width-q)+q/2)}return 0}),u=G(()=>{if(i.value&&s.value){const C=r.endColorStop/100,R=i.value.getBoundingClientRect(),q=s.value.offsetWidth;return Math.round(C*(R.width-q)+q/2)}return 0}),f=G(()=>{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}),d=C=>{var R;if(r.startActive=!0,i.value&&a.value){const q=(R=i.value)==null?void 0:R.getBoundingClientRect();let A=C.clientX-q.left;A=Math.max(a.value.offsetWidth/2,A),A=Math.min(A,q.width-a.value.offsetWidth/2),r.startColorStop=Math.round((A-a.value.offsetWidth/2)/(q.width-a.value.offsetWidth)*100),t("update:startColorStop",r.startColorStop),t("startColorStopChange",r.startColorStop)}},h=C=>{var R;if(r.startActive=!1,i.value&&s.value){const q=(R=i.value)==null?void 0:R.getBoundingClientRect();let A=C.clientX-q.left;A=Math.max(s.value.offsetWidth/2,A),A=Math.min(A,q.width-s.value.offsetWidth/2),r.endColorStop=Math.round((A-s.value.offsetWidth/2)/(q.width-s.value.offsetWidth)*100),t("update:endColorStop",r.endColorStop),t("endColorStopChange",r.endColorStop)}},m=C=>{const R=C.target,q=parseInt(R.value.replace("°",""));isNaN(q)||(r.angle=q%360),t("update:angle",r.angle),t("angleChange",r.angle)},y=C=>{r.angle=C,t("update:angle",r.angle),t("angleChange",r.angle)},v=C=>{C==="advance"?(o.value=!0,t("advanceChange",!0)):(l.value.hex=C,t("advanceChange",!1)),_()},p=C=>{l.value.alpha=C,_()},g=C=>{l.value.hue=C,_()},b=(C,R)=>{l.value.saturation=C,l.value.brightness=R,_()},w=C=>{l.value.lightness=C,_()},k=()=>{_()},_=()=>{r.startActive?(t("update:startColor",r.startColor),t("startColorChange",r.startColor)):(t("update:endColor",r.endColor),t("endColorChange",r.endColor))},F=()=>{o.value=!1,t("advanceChange",!1)},H=()=>{r.type=r.type==="linear"?"radial":"linear",t("typeChange",r.type)},N=jn(xa,[],{}),W=Ve(()=>{if(e.disableHistory)return;const C=l.value.toRgbString();if(N.value=N.value.filter(R=>!O.equals(R,C)),!N.value.includes(C)){for(;N.value.length>Oa;)N.value.pop();N.value.unshift(C)}},500);return ut(()=>{s.value&&a.value&&(mr.triggerDragEvent(s.value,{drag:C=>{h(C)},end:C=>{h(C)}}),mr.triggerDragEvent(a.value,{drag:C=>{d(C)},end:C=>{d(C)}}))}),ce(()=>r.startColor,C=>{r.startColorRgba=C.toRgbString()},{deep:!0}),ce(()=>r.endColor,C=>{r.endColorRgba=C.toRgbString()},{deep:!0}),ce(()=>l.value,()=>{W()},{deep:!0}),{startGradientRef:a,stopGradientRef:s,colorRangeRef:i,state:r,currentColor:l,getStartColorLeft:c,getEndColorLeft:u,gradientBg:f,advancePanelShow:o,onDegreeBlur:m,onCompactChange:v,onAlphaChange:p,onHueChange:g,onBoardChange:b,onLightChange:w,historyColors:N,onBack:F,onDegreeChange:y,onDisplayChange:k,onTypeChange:H,lang:n?.lang}}}),vc=e=>(it("data-v-c4d6d6ea"),e=e(),lt(),e),zy={class:"vc-gradient-picker"},Yy={class:"vc-gradient-picker__header"},Xy={class:"vc-gradient__types"},Jy={class:"vc-gradient-wrap__types"},Zy={class:"vc-picker-degree-input vc-degree-input"},Qy={class:"vc-degree-input__control"},eb=["value"],tb={class:"vc-degree-input__panel"},rb={class:"vc-degree-input__disk"},nb={class:"vc-gradient-picker__body"},ob={class:"vc-color-range",ref:"colorRangeRef"},ab={class:"vc-color-range__container"},ib={class:"vc-gradient__stop__container"},lb=["title"],sb=vc(()=>E("span",{class:"vc-gradient__stop--inner"},null,-1)),ub=[sb],cb=["title"],fb=vc(()=>E("span",{class:"vc-gradient__stop--inner"},null,-1)),db=[fb];function hb(e,t,r,n,o,a){var s,i;const l=T("Angle"),c=T("Board"),u=T("Hue"),f=T("Palette"),d=T("Lightness"),h=T("Alpha"),m=T("Display"),y=T("History");return $(),U("div",zy,[E("div",Yy,[E("div",null,[Wt(E("div",{class:"back",style:{cursor:"pointer"},onClick:t[0]||(t[0]=(...v)=>e.onBack&&e.onBack(...v))},null,512),[[Er,e.pickerType==="fk"&&e.advancePanelShow]])]),E("div",Xy,[E("div",Jy,[($(),U(Ze,null,xt(["linear","radial"],v=>E("div",{class:se(["vc-gradient__type",{active:e.state.type===v}]),key:v,onClick:t[1]||(t[1]=(...p)=>e.onTypeChange&&e.onTypeChange(...p))},Kt(e.lang?e.lang[v]:v),3)),64))]),Wt(E("div",Zy,[E("div",Qy,[E("input",{value:e.state.angle,onBlur:t[2]||(t[2]=(...v)=>e.onDegreeBlur&&e.onDegreeBlur(...v))},null,40,eb),Or("deg ")]),E("div",tb,[E("div",rb,[S(l,{angle:e.state.angle,"onUpdate:angle":t[3]||(t[3]=v=>e.state.angle=v),size:40,onChange:e.onDegreeChange},null,8,["angle","onChange"])])])],512),[[Er,e.state.type==="linear"]])])]),E("div",nb,[E("div",ob,[E("div",ab,[E("div",{class:"vc-background",style:ae(e.gradientBg)},null,4),E("div",ib,[E("div",{class:se(["vc-gradient__stop",{"vc-gradient__stop--current":e.state.startActive}]),ref:"startGradientRef",title:(s=e.lang)==null?void 0:s.start,style:ae({left:e.getStartColorLeft+"px",backgroundColor:e.state.startColorRgba})},ub,14,lb),E("div",{class:se(["vc-gradient__stop",{"vc-gradient__stop--current":!e.state.startActive}]),ref:"stopGradientRef",title:(i=e.lang)==null?void 0:i.end,style:ae({left:e.getEndColorLeft+"px",backgroundColor:e.state.endColorRgba})},db,14,cb)])])],512)]),e.advancePanelShow?($(),ee(c,{key:0,color:e.currentColor,onChange:e.onBoardChange},null,8,["color","onChange"])):z("",!0),e.advancePanelShow?($(),ee(u,{key:1,color:e.currentColor,onChange:e.onHueChange},null,8,["color","onChange"])):z("",!0),e.advancePanelShow?z("",!0):($(),ee(f,{key:2,onChange:e.onCompactChange},null,8,["onChange"])),e.advancePanelShow?z("",!0):($(),ee(d,{key:3,color:e.currentColor,onChange:e.onLightChange},null,8,["color","onChange"])),e.disableAlpha?z("",!0):($(),ee(h,{key:4,color:e.currentColor,onChange:e.onAlphaChange},null,8,["color","onChange"])),S(m,{color:e.currentColor,"disable-alpha":e.disableAlpha,onChange:e.onDisplayChange},null,8,["color","disable-alpha","onChange"]),e.disableHistory?z("",!0):($(),ee(y,{key:5,round:e.roundHistory,colors:e.historyColors,onChange:e.onCompactChange},null,8,["round","colors","onChange"]))])}const pc=je(Ky,[["render",hb],["__scopeId","data-v-c4d6d6ea"]]),vb=M({name:"WrapContainer",props:{theme:I.oneOf(["white","black"]).def("white"),showTab:I.bool.def(!1),activeKey:I.oneOf(["pure","gradient"]).def("pure")},emits:["update:activeKey","change"],setup(e,{emit:t}){const r=Ce({activeKey:e.activeKey}),n=pn(ja),o=a=>{r.activeKey=a,t("update:activeKey",a),t("change",a)};return ce(()=>e.activeKey,a=>{r.activeKey=a}),{state:r,onActiveKeyChange:o,lang:n?.lang}}}),pb={class:"vc-colorpicker--container"},gb={key:0,class:"vc-colorpicker--tabs"},mb={class:"vc-colorpicker--tabs__inner"},yb={class:"vc-btn__content"},bb={class:"vc-btn__content"};function Cb(e,t,r,n,o,a){var s,i;return $(),U("div",{class:se(["vc-colorpicker",e.theme])},[E("div",pb,[e.showTab?($(),U("div",gb,[E("div",mb,[E("div",{class:se(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="pure"}]),onClick:t[0]||(t[0]=l=>e.onActiveKeyChange("pure"))},[E("button",null,[E("div",yb,Kt((s=e.lang)==null?void 0:s.pure),1)])],2),E("div",{class:se(["vc-colorpicker--tabs__btn",{"vc-btn-active":e.state.activeKey==="gradient"}]),onClick:t[1]||(t[1]=l=>e.onActiveKeyChange("gradient"))},[E("button",null,[E("div",bb,Kt((i=e.lang)==null?void 0:i.gradient),1)])],2),E("div",{class:"vc-colorpicker--tabs__bg",style:ae({width:"50%",left:`calc(${e.state.activeKey==="gradient"?50:0}%)`})},null,4)])])):z("",!0),kr(e.$slots,"default",{},void 0,!0)])],2)}const wb=je(vb,[["render",Cb],["__scopeId","data-v-0492277d"]]),Sb={start:"Start",end:"End",pure:"Pure",gradient:"Gradient",linear:"linear",radial:"radial"},xb={start:"开始",end:"结束",pure:"纯色",gradient:"渐变",linear:"线性",radial:"径向"},Ob={En:Sb,"ZH-cn":xb},_b={isWidget:I.bool.def(!1),pickerType:I.oneOf(["fk","chrome"]).def("fk"),shape:I.oneOf(["circle","square"]).def("square"),pureColor:{type:[String,Object],default:"#000000"},gradientColor:I.string.def("linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%)"),format:{type:String,default:"rgb"},disableAlpha:I.bool.def(!1),disableHistory:I.bool.def(!1),roundHistory:I.bool.def(!1),useType:I.oneOf(["pure","gradient","both"]).def("pure"),activeKey:I.oneOf(["pure","gradient"]).def("pure"),lang:{type:String,default:"ZH-cn"},zIndex:I.number.def(9999),pickerContainer:{type:[String,HTMLElement],default:"body"},debounce:I.number.def(100),theme:I.oneOf(["white","black"]).def("white"),blurClose:I.bool.def(!1),defaultPopup:I.bool.def(!1)},kb=M({name:"ColorPicker",components:{FkColorPicker:dc,ChromeColorPicker:hc,GradientColorPicker:pc,WrapContainer:wb},inheritAttrs:!1,props:_b,emits:["update:pureColor","pureColorChange","update:gradientColor","gradientColorChange","update:activeKey","activeKeyChange"],setup(e,{emit:t}){gn(ja,{lang:G(()=>Ob[e.lang||"ZH-cn"])});const r=!!Wa().extra,n=Ce({pureColor:e.pureColor||"",activeKey:e.useType==="gradient"?"gradient":e.activeKey,isAdvanceMode:!1}),o=new Q("#000"),a=new Q("#000"),s=new Q(n.pureColor),i=Ce({startColor:o,endColor:a,startColorStop:0,endColorStop:100,angle:0,type:"linear",gradientColor:e.gradientColor}),l=B(s),c=B(e.defaultPopup),u=B(null),f=B(null);let d=null;const h=G(()=>({background:n.activeKey!=="gradient"?O(n.pureColor).toRgbString():i.gradientColor})),m=G(()=>n.activeKey==="gradient"?pc.name:e.pickerType==="fk"?dc.name:hc.name),y=C=>{n.isAdvanceMode=C},v=G(()=>{const C={disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,pickerType:e.pickerType};return n.activeKey==="gradient"?{...C,startColor:i.startColor,endColor:i.endColor,angle:i.angle,type:i.type,startColorStop:i.startColorStop,endColorStop:i.endColorStop,onStartColorChange:R=>{i.startColor=R,k()},onEndColorChange:R=>{i.endColor=R,k()},onStartColorStopChange:R=>{i.startColorStop=R,k()},onEndColorStopChange:R=>{i.endColorStop=R,k()},onAngleChange:R=>{i.angle=R,k()},onTypeChange:R=>{i.type=R,k()},onAdvanceChange:y}:{...C,disableAlpha:e.disableAlpha,disableHistory:e.disableHistory,roundHistory:e.roundHistory,color:l.value,onChange:H,onAdvanceChange:y}}),p=()=>{c.value=!0,d?d.update():F()},g=()=>{c.value=!1},b=Ve(()=>{!e.isWidget&&e.blurClose&&g()},100);Hd(f,()=>{g()});const w=()=>{var C,R,q,A;try{const[P]=fl.parse(i.gradientColor);if(P&&P.type.includes("gradient")&&P.colorStops.length>=2){const L=P.colorStops[0],ue=P.colorStops[1];i.startColorStop=Number((C=L.length)==null?void 0:C.value)||0,i.endColorStop=Number((R=ue.length)==null?void 0:R.value)||0,P.type==="linear-gradient"&&((q=P.orientation)==null?void 0:q.type)==="angular"&&(i.angle=Number((A=P.orientation)==null?void 0:A.value)||0),i.type=P.type.split("-")[0];const[j,D,K,be]=L.value,[De,Ht,at,Ge]=ue.value;i.startColor=new Q({r:Number(j),g:Number(D),b:Number(K),a:Number(be)}),i.endColor=new Q({r:Number(De),g:Number(Ht),b:Number(at),a:Number(Ge)})}}catch(P){console.log(`[Parse Color]: ${P}`)}},k=Ve(()=>{const C=_();try{i.gradientColor=fl.stringify(C),t("update:gradientColor",i.gradientColor),t("gradientColorChange",i.gradientColor)}catch(R){console.log(R)}},e.debounce),_=()=>{const C=[],R=i.startColor.RGB.map(P=>P.toString()),q=i.endColor.RGB.map(P=>P.toString()),A=[{type:"rgba",value:[R[0],R[1],R[2],R[3]],length:{value:i.startColorStop+"",type:"%"}},{type:"rgba",value:[q[0],q[1],q[2],q[3]],length:{value:i.endColorStop+"",type:"%"}}];return i.type==="linear"?C.push({type:"linear-gradient",orientation:{type:"angular",value:i.angle+""},colorStops:A}):i.type==="radial"&&C.push({type:"radial-gradient",orientation:[{type:"shape",value:"circle"}],colorStops:A}),C},F=()=>{u.value&&f.value&&(d=Av(u.value,f.value,{placement:"auto",modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"flip",options:{allowedAutoPlacements:["top","bottom","left","right"],rootBoundary:"viewport"}}]}))},H=C=>{l.value=C,n.pureColor=C.toString(e.format),N()},N=Ve(()=>{t("update:pureColor",n.pureColor),t("pureColorChange",n.pureColor)},e.debounce),W=C=>{n.activeKey=C,t("update:activeKey",C),t("activeKeyChange",C)};return ut(()=>{w(),d||F()}),ce(()=>e.gradientColor,C=>{C!=i.gradientColor&&(i.gradientColor=C)}),ce(()=>i.gradientColor,()=>{w()}),ce(()=>e.activeKey,C=>{n.activeKey=C}),ce(()=>e.useType,C=>{n.activeKey!=="gradient"&&C==="gradient"?n.activeKey="gradient":n.activeKey="pure"}),ce(()=>e.pureColor,C=>{O.equals(C,n.pureColor)||(n.pureColor=C,l.value=new Q(C))},{deep:!0}),{colorCubeRef:u,pickerRef:f,showPicker:c,colorInstance:l,getBgColorStyle:h,getComponentName:m,getBindArgs:v,state:n,hasExtra:r,onColorChange:H,onShowPicker:p,onActiveKeyChange:W,onAutoClose:b}}}),Eb={key:0,class:"vc-color-extra"},Ab={key:0,class:"vc-color-extra"};function Tb(e,t,r,n,o,a){const s=T("WrapContainer");return $(),U(Ze,null,[e.isWidget?($(),ee(s,{key:0,"active-key":e.state.activeKey,"onUpdate:activeKey":t[0]||(t[0]=i=>e.state.activeKey=i),"show-tab":e.useType==="both",style:ae({zIndex:e.zIndex}),theme:e.theme,onChange:e.onActiveKeyChange},{default:xr(()=>[($(),ee(mn(e.getComponentName),re({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?($(),U("div",Eb,[kr(e.$slots,"extra",{},void 0,!0)])):z("",!0)]),_:3},8,["active-key","show-tab","style","theme","onChange"])):z("",!0),e.isWidget?z("",!0):($(),U(Ze,{key:1},[E("div",{class:se(["vc-color-wrap transparent",{round:e.shape==="circle"}]),ref:"colorCubeRef"},[E("div",{class:"current-color",style:ae(e.getBgColorStyle),onClick:t[1]||(t[1]=(...i)=>e.onShowPicker&&e.onShowPicker(...i))},null,4)],2),($(),ee(za,{to:e.pickerContainer},[Wt(E("div",{ref:"pickerRef",style:ae({zIndex:e.zIndex}),onMouseleave:t[3]||(t[3]=(...i)=>e.onAutoClose&&e.onAutoClose(...i))},[e.showPicker?($(),ee(s,{key:0,"show-tab":e.useType==="both"&&!e.state.isAdvanceMode,theme:e.theme,"active-key":e.state.activeKey,"onUpdate:activeKey":t[2]||(t[2]=i=>e.state.activeKey=i),onChange:e.onActiveKeyChange},{default:xr(()=>[($(),ee(mn(e.getComponentName),re({key:e.getComponentName},e.getBindArgs),null,16)),e.hasExtra?($(),U("div",Ab,[kr(e.$slots,"extra",{},void 0,!0)])):z("",!0)]),_:3},8,["show-tab","theme","active-key","onChange"])):z("",!0)],36),[[Er,e.showPicker]])],8,["to"]))],64))],64)}const Rb=je(kb,[["render",Tb],["__scopeId","data-v-354ca836"]]),jb={install(e){e.use(Pf),e.use($f),e.use(qf),e.use(Df),e.use(Hf),e.use(Vf),e.use(zf),e.use(Jf),e.use(ed),e.use(od),e.use(ld),e.use(sd),e.use(cd),e.use(vd),e.use(gd),e.use(Cd),e.use(wd),e.use(Sd),e.use(If),e.use(md),e.use(ud),e.use(fd),e.use(Uf),e.component("ColorPicker",Rb)}},gc=M({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=V("gct-edit-form");if(!e.model)throw new Error("未传递表单模型配置");const n=e.controller||ei(()=>new ti(e.model)),o=B(null),a=async()=>{try{await o.value.formRef.validate()}catch(i){return console.error(i),!1}return!0},s=async i=>{try{await o.value.formRef.validateFields(i)}catch(l){return console.error(l),!1}return!0};return n.validate=a,n.validateItem=s,he(e.context,()=>{Object.assign(n.context,e.context),n.state.isNew=!n.context.id},{immediate:!0}),he(e.params,()=>{Object.assign(n.params,e.params)}),ri(async()=>{try{await o.value.formRef.validate();const i=await n.save();if(i)return{ok:!0,data:[xn(i)]}}catch(i){console.error(i)}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=S(T("gct-form"),{class:"h-full",ref:"formRef",model:this.model,c:this.c},null)),S("div",{class:this.ns.b()},[e])}}),Pb={install(e){e.component(gc.name,gc)}};function $b(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Fe(e)}const mc=M({name:"GctFormItem",props:{c:{type:Object,required:!0},formModel:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("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=G(()=>!!e.model.rules?.find(a=>a.required));return{ns:t,style:r,required:n,renderLabelTooltip:()=>e.model.labelTooltip?S(T("a-tooltip"),{class:t.e("label-tooltip"),placement:"topLeft",title:e.model.labelTooltip},{default:()=>[S("span",{class:"iconfont icon-assist ml5px text-[#bfbfbf]"},null)]}):null}},render(){const e=_gct.register.editor.get(ni.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=yn(typeof e.component=="string"?T(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=[S("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=()=>[S("span",null,[this.model.label]),this.renderLabelTooltip()]),S(T("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"},$b(n)?n:{default:()=>[n]})}});function Ib(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Fe(e)}const yc=M({name:"GctForm",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("gct-form");gn("formController",e.c);const r=B(null),n=e.c;Object.keys(n.item).forEach(c=>{const u=n.item[c];u.state=Ce(u.state)});const a=c=>S(T("gct-form-item"),{class:c.class,style:c.style,c:n.item[c.name],formModel:e.model,model:c},null),s=c=>{const u=n.provider[c.name];if(!u)return console.error(`未找到表单项适配器实例:${c.name}`,c),null;if(u)return yn(typeof u.component=="string"?T(u.component):u.component,{key:c.name,model:c,formModel:e.model,c:n.item[c.name],data:n.state.data,class:c.class,style:c.style},i(c.children||[]));console.error(`未找到表单容器适配器:${c.name} - ${c.type}`)},i=c=>{if(!c)return[];const u=[];return c.forEach(f=>{if(f.type==="hidden")return null;let d=null;const h=f;h.type==="container"||h.container?d=s(h):d=a(f),d&&u.push(d)}),u},l={};return e.model.labelWidth&&(l[t.cssVarName("form-item-label-width")]=e.model.labelWidth),{ns:t,formRef:r,staticStyle:l,renderItem:a,renderContainer:s,renderChildren:i}},render(){let e;return S(T("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},Ib(e=this.model.children.map(t=>this.renderContainer(t)))?e:{default:()=>[e]})}});class Fb{component="gct-form-item";createController(t,r){return Le(()=>new oi(t,r))}}class Mb{component="gct-form-hidden-item";createController(t,r){return Le(()=>new ai(t,r))}}class qb{component="gct-form-collapse-pane";createController(t,r){return Le(()=>new ii(t,r))}}function bc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Fe(e)}const Cc=M({name:"GctFormCollapsePane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("form-collapse-pane"),r={};function n(o){if(e.model.layout==="flex")return S(T("flex-container"),{layout:e.model.flex},bc(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return S(T("grid-container"),{layout:e.model.grid},bc(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(r[t.cssVarName("form-collapse-pane-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-collapse-pane-height")]=e.model.height),{ns:t,style:r,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[],t=e[e.length-1];return t&&(t.props=re(t.props||{},{class:this.ns.e("last-child")})),S("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),Nb={install(e){_gct.register.formItem.register("collapse-pane",()=>new qb),e.component(Cc.name,Cc)}};class Bb{component="gct-form-collapse";createController(t,r){return Le(()=>new li(t,r))}}const wc=M({name:"GctFormCollapse",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("form-collapse"),r=B([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=B([]);o.value=e.model.children?.map(s=>s.name)||[];const a=G(()=>e.model.expandIconPosition==="left"?"left":"right");return{ns:t,keys:r,style:n,activeKeys:o,expandIconPosition:a}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return S(Sn,{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1),this.ns.m("icon-"+(this.model.expandIconStyle||"up-down"))],style:this.style,accordion:this.model.accordion,expandIconPosition:this.expandIconPosition,activeKey:this.activeKeys,"onUpdate:activeKey":t=>this.activeKeys=t},{default:()=>[this.model.children?.map((t,r)=>{if(e[r].props.c.state.visible===!1)return;const o=t.collapsible!==!1?void 0:"disabled";return S(Sn.Panel,{key:t.name,header:t.title,collapsible:o},{default:()=>[e[r]]})})]})}}),Db={install(e){_gct.register.formItem.register("collapse",()=>new Bb),e.component(wc.name,wc)}};class Gb{component="gct-form-group";createController(t,r){return Le(()=>new Cn(t,r))}}function $a(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Fe(e)}const Sc=M({name:"GctFormGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("gct-form-group"),r=B([0]);function n(a){if(e.model.layout==="flex")return S(T("flex-container"),{layout:e.model.flex},$a(a)?a:{default:()=>[a]});if(e.model.layout==="grid")return S(T("grid-container"),{layout:e.model.grid},$a(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(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];if(this.model.isCollapse){let t;return S(T("a-collapse"),{activeKey:this.keys,"onUpdate:activeKey":r=>this.keys=r,class:[this.ns.b(),this.ns.is("hidden-header",this.model.showHeader===!1),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style,ghost:!0},{default:()=>[S(T("a-collapse-panel"),{key:"0",header:this.model.title},$a(t=this.renderContainer(e))?t:{default:()=>[t]})]})}return S("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?S("div",{class:this.ns.e("title")},[this.model.title]):null,S("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),Lb={install(e){_gct.register.formItem.register("container",()=>new Gb),e.component(Sc.name,Sc)}};class Hb{component="gct-form-tab";createController(t,r){return Le(()=>new si(t,r))}}const xc=M({name:"GctFormTab",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("form-tab"),r={};return e.model.width&&(r[t.cssVarName("form-tab-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-tab-height")]=e.model.height),{ns:t,style:r}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return S(T("a-tabs"),{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1),this.ns.m(this.model.navPosition||"left")],style:this.style},{default:()=>[this.model.children?.map((t,r)=>S(T("a-tab-pane"),{key:t.name,tab:t.title},{default:()=>[e[r]]}))]})}}),Vb={install(e){_gct.register.formItem.register("tab",()=>new Hb),e.component(xc.name,xc)}};class Ub{component="gct-form-tab-pane";createController(t,r){return Le(()=>new ui(t,r))}}function Oc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Fe(e)}const _c=M({name:"GctFormTabPane",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("form-tab-pane"),r={};function n(o){if(e.model.layout==="flex")return S(T("flex-container"),{layout:e.model.flex},Oc(o)?o:{default:()=>[o]});if(e.model.layout==="grid")return S(T("grid-container"),{layout:e.model.grid},Oc(o)?o:{default:()=>[o]});console.error("不支持的layout类型"+e.model.layout)}return e.model.width&&(r[t.cssVarName("form-tab-pane-width")]=e.model.width),e.model.height&&(r[t.cssVarName("form-tab-pane-height")]=e.model.height),{ns:t,style:r,renderContainer:n}},render(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return S("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[this.renderContainer(e)])}}),Wb={install(e){_gct.register.formItem.register("tab-pane",()=>new Ub),e.component(_c.name,_c)}};class Kb{component="gct-form-title-group";createController(t,r){return Le(()=>new Cn(t,r))}}function kc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Fe(e)}const Ec=M({name:"GctFormTitleGroup",props:{c:{type:Object,required:!0},model:{type:Object,required:!0}},setup(e){const t=V("gct-form-title-group"),r=B([0]);function n(a){if(e.model.layout==="flex")return S(T("flex-container"),{layout:e.model.flex},kc(a)?a:{default:()=>[a]});if(e.model.layout==="grid")return S(T("grid-container"),{layout:e.model.grid},kc(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(){if(this.c.state.keepalive!==!0&&this.c.state.visible===!1)return null;const e=this.$slots.default?.()||[];return S("div",{class:[this.ns.b(),this.ns.is("hidden",this.c.state.visible===!1)],style:this.style},[S("div",{class:this.ns.e("title")},[this.model.title]),S("div",{class:this.ns.e("content")},[this.renderContainer(e)])])}}),zb={install(e){_gct.register.formItem.register(ci.FORM_TITLE_GROUP,()=>new Kb),e.component(Ec.name,Ec)}},Yb={install(e){_gct.register.formItem.register("item",()=>new Fb),_gct.register.formItem.register("hidden",()=>new Mb),e.use(Nb),e.use(Db),e.use(Lb),e.use(Vb),e.use(Wb),e.use(zb),e.component(yc.name,yc),e.component(mc.name,mc)}},a0=hn("withInstall",(e,t)=>(e.install=r=>{const n=e.name||e.displayName;n&&(r.component(n,e),t&&(r.config.globalProperties[t]=e))},e)),i0=hn("default",{install(e){e.use(jb),e.use(Pb),e.use(Yb),e.component(Oi.name,Oi),e.component(_i.name,_i),e.component(kn.name,kn),e.component(Ei.name,Ei),e.component(Ai.name,Ai)}})})}}));
|