ray-template/js/utils-BjslFNLa.js

3 lines
38 KiB
JavaScript

import{k as O,a as Mt,o as It,q as Wt}from"./@vue_reactivity@3.5.13-Bs-wdPxR.js";import{w as M,f as m,i as ne,h as L,j as Lt}from"./@vue_runtime-core@3.5.13-Moo8VrGQ.js";import{F as Bt,k as Ot,f as P,d as F,a as w,p as Nt,G as B,H as Pt,q as oe,b as jt,j as Dt,c as qt,I as Kt,i as j,h as I,J as pe,K as be,L as zt,m as me,M as Tt,N as Vt,v as Ut}from"./date-fns@3.6.0-DkXg27G5.js";import{o as K,j as z,y as Gt,t as T,p as le,f as V,u as U,m as G,v as Ht,w as ce,r as _,q as ue,x as de,d as H}from"./seemly@0.3.9-BPHzmlAk.js";import{a0 as A,a1 as Yt,a2 as ye,a3 as ae,a4 as Xt,a5 as Y,a6 as Jt,a7 as Qt,a8 as Zt,a9 as er,aa as tr,ab as rr}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-bZwGa67N.js";import{g as nr,z as or,c as ar,r as sr}from"./lodash-es@4.17.21-UVJw7vmf.js";import{u as ir,a as lr,b as cr,L as ur,S as dr,c as fr,A as hr,d as pr}from"./hooks-ClCg6qvp.js";import{c as g}from"./currency.js@2.0.4-9OAR_aOO.js";import{c as re}from"./crypto-js@4.2.0-Dv3RD6s_.js";import"./dayjs@1.11.13-BPpqO9Hf.js";import"./print-js@1.6.0-CNuQ_Icd.js";import"./vue-hooks-plus@2.2.3_vue@3.5.13_typescript@5.6.3_-BF2NczCu.js";import"./lodash@4.17.21-MV68C9EV.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-D-G20XJY.js";import"./jsbarcode@3.11.6-Dw2l8iJP.js";import"./@logicflow_core@2.0.10-DN_57zVH.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-SwmSNyX5.js";import"./preact@10.25.4-CrjB-ZC0.js";let v=null;function ge(){if(v===null&&(v=document.getElementById("v-binder-view-measurer"),v===null)){v=document.createElement("div"),v.id="v-binder-view-measurer";const{style:e}=v;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(v)}return v.getBoundingClientRect()}function pn(e,t){const r=ge();return{top:t,left:e,height:0,width:0,right:r.width-e,bottom:r.height-t}}function bn(e){const t=e.getBoundingClientRect(),r=ge();return{left:t.left-r.left,top:t.top-r.top,bottom:r.height+r.top-t.bottom,right:r.width+r.left-t.right,width:t.width,height:t.height}}function br(e){return e.nodeType===9?null:e.parentNode}function mr(e){if(e===null)return null;const t=br(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(r+o+n))return t}return mr(t)}function Se(e){return e instanceof HTMLElement}function yr(e){for(let t=0;t<e.childNodes.length;t++){const r=e.childNodes[t];if(Se(r)&&(we(r)||yr(r)))return!0}return!1}function gr(e){for(let t=e.childNodes.length-1;t>=0;t--){const r=e.childNodes[t];if(Se(r)&&(we(r)||gr(r)))return!0}return!1}function we(e){if(!Sr(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function Sr(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}function mn(e){let t=0;for(const r of e)t++;return t}function yn(e){return e===""||e==null}function gn(e){const t=O(null);function r(){const{value:s}=e;if(!(s!=null&&s.focus)){o();return}const{selectionStart:a,selectionEnd:i,value:l}=s;if(a==null||i==null){o();return}t.value={start:a,end:i,beforeText:l.slice(0,a),afterText:l.slice(i)}}function n(){var s;const{value:a}=t,{value:i}=e;if(!a||!i)return;const{value:l}=i,{start:u,beforeText:d,afterText:f}=a;let p=l.length;if(l.endsWith(f))p=l.length-f.length;else if(l.startsWith(d))p=d.length;else{const b=d[u-1],c=l.indexOf(b,u-1);c!==-1&&(p=c+1)}(s=i.setSelectionRange)===null||s===void 0||s.call(i,p,p)}function o(){t.value=null}return M(e,o),{recordCursor:r,restoreCursor:n}}function N(e){return e.type==="group"}function Ce(e){return e.type==="ignored"}function Sn(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function wn(e,t){return{getIsGroup:N,getIgnored:Ce,getKey(n){return N(n)?n.name||n.key||"key-required":n[e]},getChildren(n){return n[t]}}}function Cn(e,t,r,n){if(!t)return e;function o(s){if(!Array.isArray(s))return[];const a=[];for(const i of s)if(N(i)){const l=o(i[n]);l.length&&a.push(Object.assign({},i,{[n]:l}))}else{if(Ce(i))continue;t(r,i)&&a.push(i)}return a}return o(e)}function xn(e,t,r){const n=new Map;return e.forEach(o=>{N(o)?o[r].forEach(s=>{n.set(s[t],s)}):n.set(o[t],o)}),n}function wr(e={}){var t;const{root:r=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof r=="string"?document.querySelector(r):r)||document.documentElement})}}const X=new WeakMap,J=new WeakMap,Q=new WeakMap,vn=(e,t,r)=>{if(!e)return()=>{};const n=wr(t),{root:o}=n.options;let s;const a=X.get(o);a?s=a:(s=new Map,X.set(o,s));let i,l;s.has(n.hash)?(l=s.get(n.hash),l[1].has(e)||(i=l[0],l[1].add(e),i.observe(e))):(i=new IntersectionObserver(f=>{f.forEach(p=>{if(p.isIntersecting){const b=J.get(p.target),c=Q.get(p.target);b&&b(),c&&(c.value=!0)}})},n.options),i.observe(e),l=[i,new Set([e])],s.set(n.hash,l));let u=!1;const d=()=>{u||(J.delete(e),Q.delete(e),u=!0,l[1].has(e)&&(l[0].unobserve(e),l[1].delete(e)),l[1].size<=0&&s.delete(n.hash),s.size||X.delete(o))};return J.set(e,d),Q.set(e,r),d},Cr={date:Tt,month:j,year:pe,quarter:be};function xr(e){return(t,r)=>{const n=(e+1)%7;return Vt(t,r,{weekStartsOn:n})}}function y(e,t,r,n=0){return(r==="week"?xr(n):Cr[r])(e,t)}function Z(e,t,r,n,o,s){return o==="date"?vr(e,t,r,n):Ar(e,t,r,n,s)}function vr(e,t,r,n){let o=!1,s=!1,a=!1;Array.isArray(r)&&(r[0]<e&&e<r[1]&&(o=!0),y(r[0],e,"date")&&(s=!0),y(r[1],e,"date")&&(a=!0));const i=r!==null&&(Array.isArray(r)?y(r[0],e,"date")||y(r[1],e,"date"):y(r,e,"date"));return{type:"date",dateObject:{date:me(e),month:F(e),year:I(e)},inCurrentMonth:j(e,t),isCurrentDate:y(n,e,"date"),inSpan:o,inSelectedWeek:!1,startOfSpan:s,endOfSpan:a,selected:i,ts:w(e)}}function An(e,t,r){const n=new Date(2e3,e,1).getTime();return P(n,t,{locale:r})}function kn(e,t,r){const n=new Date(e,1,1).getTime();return P(n,t,{locale:r})}function En(e,t,r){const n=new Date(2e3,e*3-2,1).getTime();return P(n,t,{locale:r})}function Ar(e,t,r,n,o){let s=!1,a=!1,i=!1;Array.isArray(r)&&(r[0]<e&&e<r[1]&&(s=!0),y(r[0],e,"week",o)&&(a=!0),y(r[1],e,"week",o)&&(i=!0));const l=r!==null&&(Array.isArray(r)?y(r[0],e,"week",o)||y(r[1],e,"week",o):y(r,e,"week",o));return{type:"date",dateObject:{date:me(e),month:F(e),year:I(e)},inCurrentMonth:j(e,t),isCurrentDate:y(n,e,"date"),inSpan:s,startOfSpan:a,endOfSpan:i,selected:!1,inSelectedWeek:l,ts:w(e)}}function kr(e,t,r,{monthFormat:n}){return{type:"month",monthFormat:n,dateObject:{month:F(e),year:I(e)},isCurrent:j(r,e),selected:t!==null&&y(t,e,"month"),ts:w(e)}}function Er(e,t,r,{yearFormat:n}){return{type:"year",yearFormat:n,dateObject:{year:I(e)},isCurrent:pe(r,e),selected:t!==null&&y(t,e,"year"),ts:w(e)}}function _r(e,t,r,{quarterFormat:n}){return{type:"quarter",quarterFormat:n,dateObject:{quarter:zt(e),year:I(e)},isCurrent:be(r,e),selected:t!==null&&y(t,e,"quarter"),ts:w(e)}}function _n(e,t,r,n,o=!1,s=!1){const a=s?"week":"date",i=F(e);let l=w(Nt(e)),u=w(B(l,-1));const d=[];let f=!o;for(;Pt(u)!==n||f;)d.unshift(Z(u,e,t,r,a,n)),u=w(B(u,-1)),f=!1;for(;F(l)===i;)d.push(Z(l,e,t,r,a,n)),l=w(B(l,1));const p=o?d.length<=28?28:d.length<=35?35:42:42;for(;d.length<p;)d.push(Z(l,e,t,r,a,n)),l=w(B(l,1));return d}function Fn(e,t,r,n){const o=[],s=oe(e);for(let a=0;a<12;a++)o.push(kr(w(jt(s,a)),t,r,n));return o}function Rn(e,t,r,n){const o=[],s=oe(e);for(let a=0;a<4;a++)o.push(_r(w(Kt(s,a)),t,r,n));return o}function $n(e,t,r,n){const o=n.value,s=[],a=oe(Dt(new Date,o[0]));for(let i=0;i<o[1]-o[0];i++)s.push(Er(w(qt(a,i)),e,t,r));return s}function Mn(e,t,r,n){const o=Bt(e,t,r,n);return Ot(o)?P(o,t,n)===e?o:new Date(Number.NaN):o}function In(e){if(e===void 0)return;if(typeof e=="number")return e;const[t,r,n]=e.split(":");return{hours:Number(t),minutes:Number(r),seconds:Number(n)}}function Wn(e,t){return Array.isArray(e)?e[t==="start"?0:1]:null}function Ln(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function Fr(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function Bn(e){return e=Math.round(e),e>=360?359:e<0?0:e}function On(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const Rr={rgb:{hex(e){return V(_(e))},hsl(e){const[t,r,n,o]=_(e);return z([...de(t,r,n),o])},hsv(e){const[t,r,n,o]=_(e);return G([...ue(t,r,n),o])}},hex:{rgb(e){return T(_(e))},hsl(e){const[t,r,n,o]=_(e);return z([...de(t,r,n),o])},hsv(e){const[t,r,n,o]=_(e);return G([...ue(t,r,n),o])}},hsl:{hex(e){const[t,r,n,o]=U(e);return V([...ce(t,r,n),o])},rgb(e){const[t,r,n,o]=U(e);return T([...ce(t,r,n),o])},hsv(e){const[t,r,n,o]=U(e);return G([...Ht(t,r,n),o])}},hsv:{hex(e){const[t,r,n,o]=K(e);return V([...le(t,r,n),o])},rgb(e){const[t,r,n,o]=K(e);return T([...le(t,r,n),o])},hsl(e){const[t,r,n,o]=K(e);return z([...Gt(t,r,n),o])}}};function Nn(e,t,r){return r=r||Fr(e),r?r===t?e:Rr[r][t](e):null}function Pn(e){var t;if(!e)return 10;const{defaultPageSize:r}=e;if(r!==void 0)return r;const n=(t=e.pageSizes)===null||t===void 0?void 0:t[0];return typeof n=="number"?n:(n==null?void 0:n.value)||10}function jn(e,t,r,n){let o=!1,s=!1,a=1,i=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:i,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:i,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const l=1,u=t;let d=e,f=e;const p=(r-5)/2;f+=Math.ceil(p),f=Math.min(Math.max(f,l+r-3),u-2),d-=Math.floor(p),d=Math.max(Math.min(d,u-r+3),l+2);let b=!1,c=!1;d>l+2&&(b=!0),f<u-2&&(c=!0);const h=[];h.push({type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}),b?(o=!0,a=d-1,h.push({type:"fast-backward",active:!1,label:void 0,options:n?fe(l+1,d-1):null})):u>=l+1&&h.push({type:"page",label:l+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===l+1});for(let C=d;C<=f;++C)h.push({type:"page",label:C,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===C});return c?(s=!0,i=f+1,h.push({type:"fast-forward",active:!1,label:void 0,options:n?fe(f+1,u-1):null})):f===u-2&&h[h.length-1].label!==u-1&&h.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:u-1,active:e===u-1}),h[h.length-1].label!==u&&h.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:u,active:e===u}),{hasFastBackward:o,hasFastForward:s,fastBackwardTo:a,fastForwardTo:i,items:h}}function fe(e,t){const r=[];for(let n=e;n<=t;++n)r.push({label:`${n}`,value:n});return r}const xe=40,ve=40;function Dn(e){if(e.type==="selection")return e.width===void 0?xe:H(e.width);if(e.type==="expand")return e.width===void 0?ve:H(e.width);if(!("children"in e))return typeof e.width=="string"?H(e.width):e.width}function $r(e){var t,r;if(e.type==="selection")return A((t=e.width)!==null&&t!==void 0?t:xe);if(e.type==="expand")return A((r=e.width)!==null&&r!==void 0?r:ve);if(!("children"in e))return A(e.width)}function qn(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function Kn(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function zn(e){return e==="ascend"?1:e==="descend"?-1:0}function Tn(e,t,r){return r!==void 0&&(e=Math.min(e,typeof r=="number"?r:Number.parseFloat(r))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:Number.parseFloat(t))),e}function Vn(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const r=$r(e),{minWidth:n,maxWidth:o}=e;return{width:r,minWidth:A(n)||r,maxWidth:A(o)}}function Un(e,t,r){return typeof r=="function"?r(e,t):r||""}function Gn(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function Hn(e){return"children"in e?!1:!!e.sorter}function Yn(e){return"children"in e&&e.children.length?!1:!!e.resizable}function Xn(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function he(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function Jn(e,t){return e.sorter===void 0?null:t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:he(!1)}:Object.assign(Object.assign({},t),{order:he(t.order)})}function Qn(e,t){return t.find(r=>r.columnKey===e.key&&r.order)!==void 0}function Mr(e){return typeof e=="string"?e.replace(/,/g,"\\,"):e==null?"":`${e}`.replace(/,/g,"\\,")}function Zn(e,t,r,n){const o=e.filter(i=>i.type!=="expand"&&i.type!=="selection"&&i.allowExport!==!1),s=o.map(i=>n?n(i):i.title).join(","),a=t.map(i=>o.map(l=>r?r(i[l.key],i,l):Mr(i[l.key])).join(","));return[s,...a].join(`
`)}function eo(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function to(e){return e.type==="group"}function ro(e){return e.type==="divider"}function no(e){return e.type==="render"}const Ir={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function ee(e){return`00${e}`.slice(-2)}function Wr(e,t,r){return Array.isArray(t)?(r==="am"?t.filter(n=>n<12):r==="pm"?t.filter(n=>n>=12).map(n=>n===12?12:n-12):t).map(n=>ee(n)):typeof t=="number"?r==="am"?e.filter(n=>{const o=Number(n);return o<12&&o%t===0}):r==="pm"?e.filter(n=>{const o=Number(n);return o>=12&&o%t===0}).map(n=>{const o=Number(n);return ee(o===12?12:o-12)}):e.filter(n=>Number(n)%t===0):r==="am"?e.filter(n=>Number(n)<12):r==="pm"?e.map(n=>Number(n)).filter(n=>Number(n)>=12).map(n=>ee(n===12?12:n-12)):e}function oo(e,t,r){return r?typeof r=="number"?e%r===0:r.includes(e):!0}function ao(e,t,r){const n=Wr(Ir[t],r).map(Number);let o,s;for(let a=0;a<n.length;++a){const i=n[a];if(i===e)return i;if(i>e){s=i;break}o=i}return o===void 0?(s||Yt("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),s):s===void 0||s-e>e-o?o:s}function so(e){return Ut(e)<12?"am":"pm"}const Lr="DESCRIPTION_ITEM_FLAG";function io(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[Lr]:!1}let te;function lo(){if(!ye)return!0;if(te===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),te=t}return te}function co(e){const t=ne(ae,null);return{mergedSize:m(()=>e.size!==void 0?e.size:(t==null?void 0:t.props.size)!==void 0?t.props.size:"medium")}}function uo(e){const t=ne(ae,null),r=m(()=>{const{labelPlacement:c}=e;return c!==void 0?c:t!=null&&t.props.labelPlacement?t.props.labelPlacement:"top"}),n=m(()=>r.value==="left"&&(e.labelWidth==="auto"||(t==null?void 0:t.props.labelWidth)==="auto")),o=m(()=>{if(r.value==="top")return;const{labelWidth:c}=e;if(c!==void 0&&c!=="auto")return A(c);if(n.value){const h=t==null?void 0:t.maxChildLabelWidthRef.value;return h!==void 0?A(h):void 0}if((t==null?void 0:t.props.labelWidth)!==void 0)return A(t.props.labelWidth)}),s=m(()=>{const{labelAlign:c}=e;if(c)return c;if(t!=null&&t.props.labelAlign)return t.props.labelAlign}),a=m(()=>{var c;return[(c=e.labelProps)===null||c===void 0?void 0:c.style,e.labelStyle,{width:o.value}]}),i=m(()=>{const{showRequireMark:c}=e;return c!==void 0?c:t==null?void 0:t.props.showRequireMark}),l=m(()=>{const{requireMarkPlacement:c}=e;return c!==void 0?c:(t==null?void 0:t.props.requireMarkPlacement)||"right"}),u=O(!1),d=O(!1),f=m(()=>{const{validationStatus:c}=e;if(c!==void 0)return c;if(u.value)return"error";if(d.value)return"warning"}),p=m(()=>{const{showFeedback:c}=e;return c!==void 0?c:(t==null?void 0:t.props.showFeedback)!==void 0?t.props.showFeedback:!0}),b=m(()=>{const{showLabel:c}=e;return c!==void 0?c:(t==null?void 0:t.props.showLabel)!==void 0?t.props.showLabel:!0});return{validationErrored:u,validationWarned:d,mergedLabelStyle:a,mergedLabelPlacement:r,mergedLabelAlign:s,mergedShowRequireMark:i,mergedRequireMarkPlacement:l,mergedValidationStatus:f,mergedShowFeedback:p,mergedShowLabel:b,isAutoLabelWidth:n}}function fo(e){const t=ne(ae,null),r=m(()=>{const{rulePath:a}=e;if(a!==void 0)return a;const{path:i}=e;if(i!==void 0)return i}),n=m(()=>{const a=[],{rule:i}=e;if(i!==void 0&&(Array.isArray(i)?a.push(...i):a.push(i)),t){const{rules:l}=t.props,{value:u}=r;if(l!==void 0&&u!==void 0){const d=nr(l,u);d!==void 0&&(Array.isArray(d)?a.push(...d):a.push(d))}}return a}),o=m(()=>n.value.some(a=>a.required)),s=m(()=>o.value||e.required);return{mergedRules:n,mergedRequired:s}}function ho(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function po(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^-?\d*$/.test(e))||e==="-"||e==="-0"}function bo(e){return e==null?!0:!Number.isNaN(e)}function mo(e,t){return typeof e!="number"?"":t===void 0?String(e):e.toFixed(t)}function yo(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}function Br(e){return e.type==="divider"||e.type==="render"}function Or(e){return e.type==="divider"}function go(e,t){const{rawNode:r}=e,{show:n}=r;if(n===!1)return null;if(Br(r))return Or(r)?L(Xt,Object.assign({key:e.key},r.props)):null;const{labelField:o}=t,{key:s,level:a,isGroup:i}=e,l=Object.assign(Object.assign({},r),{title:r.title||r[o],extra:r.titleExtra||r.extra,key:s,internalKey:s,level:a,root:a===0,isGroup:i});return e.children?e.isGroup?L(Qt,Y(l,Jt,{tmNode:e,tmNodes:e.children,key:s})):L(er,Y(l,Zt,{key:s,rawNodes:r[t.childrenField],tmNodes:e.children,tmNode:e})):L(rr,Y(l,tr,{key:s,tmNode:e}))}function So(e){return m(()=>e.leafOnly?"child":e.checkStrategy)}function wo(e,t){return!!e.rawNode[t]}function Ae(e,t,r,n){e==null||e.forEach(o=>{r(o),Ae(o[t],t,r,n),n(o)})}function Co(e,t,r,n,o){const s=new Set,a=new Set,i=[];return Ae(e,n,l=>{if(i.push(l),o(t,l)){a.add(l[r]);for(let u=i.length-2;u>=0;--u)if(!s.has(i[u][r]))s.add(i[u][r]);else return}},()=>{i.pop()}),{expandedKeys:Array.from(s),highlightKeySet:a}}if(ye&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function xo(e,t,r,n,o){const s=new Set,a=new Set,i=new Set,l=[],u=[],d=[];function f(b){b.forEach(c=>{if(d.push(c),t(r,c)){s.add(c[n]),i.add(c[n]);for(let C=d.length-2;C>=0;--C){const k=d[C][n];if(!a.has(k))a.add(k),s.has(k)&&s.delete(k);else break}}const h=c[o];h&&f(h),d.pop()})}f(e);function p(b,c){b.forEach(h=>{const C=h[n],k=s.has(C),$t=a.has(C);if(!k&&!$t)return;const se=h[o];if(se)if(k)c.push(h);else{l.push(C);const ie=Object.assign(Object.assign({},h),{[o]:[]});c.push(ie),p(se,ie[o])}else c.push(h)})}return p(e,u),{filteredTree:u,highlightKeySet:i,expandedKeys:l}}const ke=["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2","#9b8bba","#e098c7","#8fd3e8","#71669e","#cc70af","#7cb4cc","#7EC4FF","#5FCBB0","#49C4BF","#F0C9CA","#34DC90","#3295E0","#EAB62E","#76C3F3","#2DC2C0","#FCC43F","#84CFFF"],Ee="transparent",_e={},Fe={textStyle:{color:"#ffffff"},subtextStyle:{color:"#dddddd"}},Re={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},$e={itemStyle:{borderWidth:"4"},lineStyle:{width:"3"},symbolSize:"0",symbol:"circle",smooth:!0},Me={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},Ie={itemStyle:{borderWidth:0,borderColor:"#ccc"}},We={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Le={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Be={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Oe={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Ne={itemStyle:{borderWidth:0,borderColor:"#ccc"}},Pe={itemStyle:{borderWidth:0,borderColor:"#ccc"}},je={itemStyle:{color:"#fc97af",color0:"transparent",borderColor:"#fc97af",borderColor0:"#87f7cf",borderWidth:"2"}},De={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:"1",color:"#ffffff"},symbolSize:"0",symbol:"circle",smooth:!0,color:["#fc97af","#87f7cf","#f7f494","#72ccff","#f7c5a0","#d4a4eb","#d2f5a6","#76f2f2"],label:{color:"#293441"}},qe={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},Ke={itemStyle:{areaColor:"#f3f3f3",borderColor:"#999999",borderWidth:.5},label:{color:"#893448"},emphasis:{itemStyle:{areaColor:"rgba(255,178,72,1)",borderColor:"#eb8146",borderWidth:1},label:{color:"rgb(137,52,72)"}}},ze={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Te={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Ve={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Ue={axisLine:{show:!0,lineStyle:{color:"#666666"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#aaaaaa"},splitLine:{show:!1,lineStyle:{color:["#e6e6e6"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},Ge={iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},He={textStyle:{color:"#999999"},pageTextStyle:{color:"#999999"}},Ye={axisPointer:{lineStyle:{color:"#cccccc",width:1},crossStyle:{color:"#cccccc",width:1}}},Xe={lineStyle:{color:"#87f7cf",width:1},itemStyle:{color:"#87f7cf",borderWidth:1},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},checkpointStyle:{color:"#fc97af",borderColor:"#fc97af"},label:{color:"#87f7cf"},emphasis:{itemStyle:{color:"#f7f494"},controlStyle:{color:"#87f7cf",borderColor:"#87f7cf",borderWidth:.5},label:{color:"#87f7cf"}}},Je={color:["#fc97af","#87f7cf"]},Qe={backgroundColor:"rgba(255,255,255,0)",dataBackgroundColor:"rgba(114,204,255,1)",fillerColor:"rgba(114,204,255,0.2)",handleColor:"#72ccff",handleSize:"100%",textStyle:{color:"#333333"}},Ze={label:{color:"#293441"},emphasis:{label:{color:"#293441"}}},Nr={color:ke,backgroundColor:Ee,textStyle:_e,title:Fe,line:Re,radar:$e,bar:Me,pie:Ie,scatter:We,boxplot:Le,parallel:Be,sankey:Oe,funnel:Ne,gauge:Pe,candlestick:je,graph:De,map:qe,geo:Ke,categoryAxis:ze,valueAxis:Te,logAxis:Ve,timeAxis:Ue,toolbox:Ge,legend:He,tooltip:Ye,timeline:Xe,visualMap:Je,dataZoom:Qe,markPoint:Ze},Pr=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:Ee,bar:Me,boxplot:Le,candlestick:je,categoryAxis:ze,color:ke,dataZoom:Qe,default:Nr,funnel:Ne,gauge:Pe,geo:Ke,graph:De,legend:He,line:Re,logAxis:Ve,map:qe,markPoint:Ze,parallel:Be,pie:Ie,radar:$e,sankey:Oe,scatter:We,textStyle:_e,timeAxis:Ue,timeline:Xe,title:Fe,toolbox:Ge,tooltip:Ye,valueAxis:Te,visualMap:Je},Symbol.toStringTag,{value:"Module"})),et=["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089","#516b91","#59c4e6","#edafda","#93b7e3","#a5e7f0","#cbb0e3"],tt="transparent",rt={},nt={textStyle:{color:"#008acd"},subtextStyle:{color:"#aaaaaa"}},ot={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},at={itemStyle:{borderWidth:1},lineStyle:{width:2},symbolSize:3,symbol:"emptyCircle",smooth:!0},st={itemStyle:{barBorderWidth:0,barBorderColor:"#ccc"}},it={itemStyle:{borderWidth:0,borderColor:"#ccc"}},lt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ct={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ut={itemStyle:{borderWidth:0,borderColor:"#ccc"}},dt={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ft={itemStyle:{borderWidth:0,borderColor:"#ccc"}},ht={itemStyle:{borderWidth:0,borderColor:"#ccc"}},pt={itemStyle:{color:"#d87a80",color0:"#2ec7c9",borderColor:"#d87a80",borderColor0:"#2ec7c9",borderWidth:1}},bt={itemStyle:{borderWidth:0,borderColor:"#ccc"},lineStyle:{width:1,color:"#aaa"},symbolSize:3,symbol:"emptyCircle",smooth:!0,color:["#2ec7c9","#b6a2de","#5ab1ef","#ffb980","#d87a80","#8d98b3","#e5cf0d","#97b552","#95706d","#dc69aa","#07a2a4","#9a7fd1","#588dd5","#f5994e","#c05050","#59678c","#c9ab00","#7eb00a","#6f5553","#c14089"],label:{color:"#eee"}},mt={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},yt={itemStyle:{areaColor:"#dddddd",borderColor:"#eeeeee",borderWidth:.5},label:{color:"#d87a80"},emphasis:{itemStyle:{areaColor:"rgba(254,153,78,1)",borderColor:"#444",borderWidth:1},label:{color:"rgb(100,0,0)"}}},gt={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},St={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},wt={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},Ct={axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},xt={iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},vt={textStyle:{color:"#333333"}},At={axisPointer:{lineStyle:{color:"#008acd",width:"1"},crossStyle:{color:"#008acd",width:"1"}}},kt={lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#008acd"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},Et={color:["#5ab1ef","#e0ffff"]},_t={backgroundColor:"rgba(47,69,84,0)",dataBackgroundColor:"#efefff",fillerColor:"rgba(182,162,222,0.2)",handleColor:"#008acd",handleSize:"100%",textStyle:{color:"#333333"}},Ft={label:{color:"#eee"},emphasis:{label:{color:"#eee"}}},jr={color:et,backgroundColor:tt,textStyle:rt,title:nt,line:ot,radar:at,bar:st,pie:it,scatter:lt,boxplot:ct,parallel:ut,sankey:dt,funnel:ft,gauge:ht,candlestick:pt,graph:bt,map:mt,geo:yt,categoryAxis:gt,valueAxis:St,logAxis:wt,timeAxis:Ct,toolbox:xt,legend:vt,tooltip:At,timeline:kt,visualMap:Et,dataZoom:_t,markPoint:Ft},Dr=Object.freeze(Object.defineProperty({__proto__:null,backgroundColor:tt,bar:st,boxplot:ct,candlestick:pt,categoryAxis:gt,color:et,dataZoom:_t,default:jr,funnel:ft,gauge:ht,geo:yt,graph:bt,legend:vt,line:ot,logAxis:wt,map:mt,markPoint:Ft,parallel:ut,pie:it,radar:at,sankey:dt,scatter:lt,textStyle:rt,timeAxis:Ct,timeline:kt,title:nt,toolbox:xt,tooltip:At,valueAxis:St,visualMap:Et},Symbol.toStringTag,{value:"Module"})),vo=()=>{const e=Object.assign({"/src/app-config/echart-themes/macarons/macarons-dark.json":Pr,"/src/app-config/echart-themes/macarons/macarons.json":Dr}),t=/\/([^/]+)\.json$/;return Object.keys(e).reduce((n,o)=>{var a;const s=(a=o.match(t))==null?void 0:a[1];if(s)return n.push({name:s,theme:e[o].default}),n;throw new Error(`[RChart Theme Error]: name ${o} is invalid!`)},[])},Ao=e=>{const{getAppTheme:t}=ir(),{theme:r}=t();return Object.assign({},e,{text:"loading",color:"#c23531",textColor:r?"#fff":"#000",maskColor:r?"rgba(0, 0, 0, 0.8)":"rgba(255, 255, 255, 0.8)",zlevel:0,fontSize:12,showSpinner:!0,spinnerRadius:10,lineWidth:5,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"})},ko=()=>({notMerge:!0,lazyUpdate:!0,silent:!1,replaceMerge:[]}),Eo=(e,t)=>{var s;const{domToImageOptions:r,printOptions:n}=t??{},{create:o}=lr(e,{...r,beforeCreate:a=>{var i,l;(i=r==null?void 0:r.beforeCreate)==null||i.call(r,a),(l=window.$loadingBar)==null||l.start()},created(a,i){var l,u;(l=r==null?void 0:r.created)==null||l.call(r,a,i),(u=window.$loadingBar)==null||u.finish()},createdError(a){var i,l;(i=r==null?void 0:r.createdError)==null||i.call(r,a),(l=window.$loadingBar)==null||l.error()}});(s=o("jpeg"))==null||s.then(a=>{const{print:i}=cr(a,{type:"image",base64:!0,targetStyles:["*"],...or(n,["type","base64"])});i()})},qr=".n-menu-item-content--selected",Kr=".n-menu-item",zr=".n-menu-item-content--child-active",_o=()=>{const e=x(ur),t=(e==null?void 0:e.querySelector(qr))||(e==null?void 0:e.querySelector(zr)),r=x(dr);let n=0;const o=e==null?void 0:e.querySelector(Kr);if(r){const{height:s}=r.getBoundingClientRect();n=s}if(t&&e){const s=t.getBoundingClientRect(),a=e.getBoundingClientRect();if(!(s.top>=a.top+n&&s.bottom<=a.bottom)){const l=fr(),u=e.scrollTop,d=o?parseInt(window.getComputedStyle(o).marginTop):6;l({top:s.top-a.top+u-n-d,left:0,behavior:"smooth"})}}};var E=(e=>(e.Windows="Windows",e.MacOS="MacOS",e.Linux="Linux",e.Android="Android",e.IOS="IOS",e.Unknown="Unknown",e))(E||{});const Tr={BASE_URL:"/ray-template/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_APP_OFFICE_PROXY_URL:"https://office.yka.one/",VITE_APP_OFFICE_SCRIPT_URL:"https://office.yka.one/web-apps/apps/api/documents/api.js",VITE_APP_URL:"/"},Fo=()=>Tr,Ro=(e,t)=>{const r=document.createElement("a");r.href=e,r.download=t,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)},R=(e,t)=>Object.prototype.toString.call(e).includes(t),$o=(e=16,t=62)=>{const r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[],o=window.crypto||window.msCrypto;let s=0;for(s=0;s<e;s++){const a=new Uint32Array(1);o.getRandomValues(a);const i=a[0]%t;n.push(r[i])}return n.join("")},Mo=()=>{const e=navigator.userAgent;return/windows/i.test(e)?E.Windows:/macintosh|mac os x/i.test(e)?E.MacOS:/linux/i.test(e)?E.Linux:/android/i.test(e)?E.Android:/iphone|ipad|ipod/i.test(e)?E.IOS:E.Unknown},Io=(e,t)=>{const r=e.split("?").filter(Boolean)[0],n=t.split("?").filter(Boolean)[0],o=/\/$/;return r.replace(o,"")===n.replace(o,"")},D=(e="sessionStorage")=>e==="localStorage"?window.localStorage:window.sessionStorage,$=(e,t)=>{const{prefix:r,prefixKey:n}=t??{};return r?(n||hr)+e:e};function Wo(e,t="sessionStorage",r){const n=$(e,r),o=D(t);return Object.keys(o).includes(n)}function Lo(e,t,r="sessionStorage",n){if(!e){console.error("[setStorage]: Failed to set stored data: key is empty");return}const o=$(e,n),s=D(r);try{s.setItem(o,JSON.stringify(t))}catch(a){console.error(`[setStorage]: Failed to set stored data for key '${e}'`,a)}}function Bo(e,t="sessionStorage",r){const n=$(e,r),o=D(t),{defaultValue:s}=r??{};try{const a=o.getItem(n);return a===null?s??null:JSON.parse(a)}catch(a){return console.error(`[getStorage]: Failed to get stored data for key '${e}'`,a),s??null}}const Oo=(e,t,r)=>{if(!e){console.error("[removeStorage]: Failed to remove stored data: key is empty");return}const n=$(e,r),o=window.localStorage,s=window.sessionStorage,a=i=>{Object.keys(i).forEach(l=>i.removeItem($(l,r)))};switch(e){case"__all__":a(o),a(s);break;case"__all_sessionStorage__":a(s);break;case"__all_localStorage__":a(o);break;default:D(t).removeItem(n)}},No=(e,t)=>{const n=M(()=>x(e),()=>{const o=x(e);o&&(typeof t=="string"?t.trim().split(" "):t).forEach(a=>{a&&o.classList.add(a)})},{immediate:!0});W(n)},Po=(e,t)=>{const n=M(()=>x(e),()=>{const o=x(e);if(o)if(t==="removeAllClass"){const s=o.classList;s.forEach(a=>s.remove(a))}else(typeof t=="string"?t.trim().split(" "):t).forEach(a=>{a&&o.classList.remove(a)})},{immediate:!0});W(n)},jo=(e,t)=>{const r=O(!1),o=M(()=>x(e),()=>{const s=x(e);if(!s)r.value=!1;else{const a=s.className,i=t.trim().split(" ").filter(l=>l!=="");r.value=i.some(l=>a.includes(l))}},{immediate:!0});return W(o),r},Vr=e=>{const t=["webkit","moz","ms","o"],r={};return t.forEach(n=>{r[`${n}${e.charAt(0).toUpperCase()}${e.slice(1)}`]=e}),r[e]=e,r},Do=(e,t)=>{const r=(s,a)=>{s.split(";").forEach(i=>{const[l,u]=i.split(":");if(l&&u){const d=l.trim(),f=u.trim();if(l.startsWith("--"))a.style.setProperty(d,f);else if(l.startsWith("-"))a.style.setProperty(l,u);else{const p=Vr(d);Object.keys(p).forEach(b=>{a.style.setProperty(b,p[b])}),a.style.setProperty(d,f)}}})},o=M(()=>x(e),()=>{const s=x(e);s&&(R(t,"String")?r(t,s):R(t,"Array")?t.forEach(a=>{r(a,s)}):Object.keys(t).forEach(i=>{r(`${i}: ${t[i]}`,s)}))},{immediate:!0});W(o)},qo=(e,t=1,r)=>{if(!e)return e;if(e.includes("rgba"))return e.replace(/rgba\((.*?),(.*?),(.*?),.*?\)/,`rgba($1,$2,$3,${t})`);if(e.includes("rgb("))return e.replace("rgb","rgba").replace(")",`, ${t})`);if(e.includes("hsla"))return e.replace(/hsla\((.*?),(.*?),(.*?),.*?\)/,`hsla($1,$2,$3,${t})`);if(e.includes("hsl("))return e.replace("hsl","hsla").replace(")",`, ${t})`);if(e.startsWith("#")){const n=e.replace("#","");try{switch(n.length){case 3:return`rgba(${parseInt(n[0]+n[0],16)}, ${parseInt(n[1]+n[1],16)}, ${parseInt(n[2]+n[2],16)}, ${t})`;case 6:return`rgba(${parseInt(n.slice(0,2),16)}, ${parseInt(n.slice(2,4),16)}, ${parseInt(n.slice(4,6),16)}, ${t})`;case 8:return`rgba(${parseInt(n.slice(0,2),16)}, ${parseInt(n.slice(2,4),16)}, ${parseInt(n.slice(4,6),16)}, ${t})`;default:return r||e}}catch{return e}}return e},Ko=(e,t)=>{const{defaultElement:r}={};if(!e)return r?[r]:null;const n=e.startsWith("attr:")?`[${e.replace("attr:","")}]`:e;try{const o=Array.from(document.querySelectorAll(n));return!o.length&&r?[r]:o}catch(o){return console.error(`[queryElements]: Failed to get elements for selector '${e}'`,o),r?[r]:null}},zo=(e,t="px")=>e==="auto"?e:typeof e=="number"?e.toString()+t:R(e,"String")&&pr.cssUnit.test(e)?e:e+t,S={precision:8,decimal:"."},q=(e,t,r)=>{if(!(e!=null&&e.length))return g(0,S);if(e.length===1)return g(e[0],S);const n=g(t,S);return e.reduce(r,n)},Ur=(e,t)=>{const r={...S,...t},n=g(e,r),{type:o="number"}=r;return o==="number"?n.value:n.toString()},To=(...e)=>e.length?e.length===1?g(e[0],S).add(0):q(e,0,(t,r)=>t.add(r)):g(0,S),Vo=(...e)=>{if(!e.length)return g(0,S);if(e.length===1)return g(e[0],S).subtract(0);if(e.length===2){const[n,o]=e;return g(n,S).subtract(o)}const[t,...r]=e;return q(r,t,(n,o)=>n.subtract(o))},Uo=(...e)=>e.length===1?g(e[0],S).multiply(1):q(e,1,(t,r)=>g(t,S).multiply(r)),Go=(...e)=>{if(e.length===1)return g(e[0],S).divide(1);if(e.length===2){const[n,o]=e;return g(n,S).divide(o)}const t=ar(e),r=t.shift();return q(t,r,(n,o)=>g(n,S).divide(o))},Ho=(e,t,r)=>{if(t<=1)return[e||0];if(!e)return new Array(t).fill(0);const n={...S,...r};return g(e,n).distribute(t).map(s=>Ur(s,n))};function Gr(e,...t){if(Array.isArray(e))e.forEach(r=>Gr(r,...t));else return e(...t)}function x(e,t){var n;if(!e)return t;let r;return typeof e=="function"?r=e():Mt(e)?r=((n=e.value)==null?void 0:n.$el)??e.value:r=e,r}function Yo(e,t){if(!e){const{defaultElement:r=null}=t??{};return typeof r=="function"?r:()=>r}if(typeof e=="string"||R(e,"Object"))return()=>e;if(typeof e=="function")return e}function W(e){return It()?(Wt(e),!0):!1}function Xo(e,t){const r=Lt(e,t);W(r)}const Rt="4cP+dX5FI2EVYzln",Jo=(e,t)=>{try{const n=re.AES.decrypt(e,t||Rt).toString(re.enc.Utf8);return JSON.parse(n)}catch(r){console.error(`Unknown error: ${r}`)}},Qo=(e,t)=>re.AES.encrypt(JSON.stringify(e),Rt).toString(),Zo=(e,t,r,n)=>{if(!e||typeof e!="object"){console.warn(`[updateObjectValue]: targetObject must be an object, received ${typeof e}`);return}Object.hasOwn(e,t)&&(R(r,"Object")?e[t]={...e[t],...r}:e[t]=r,n==null||n())},ea=e=>sr(Object.entries(e).reverse(),(t,[r,n])=>(t[r]=n,t),{});export{Jn as $,jo as A,Jo as B,Xo as C,mn as D,gn as E,yn as F,vn as G,On as H,Fr as I,Nn as J,Bn as K,Ln as L,wn as M,Sn as N,Cn as O,xn as P,Pn as Q,jn as R,Gn as S,eo as T,ro as U,no as V,to as W,qn as X,Hn as Y,Xn as Z,Qn as _,Fo as a,Tn as a0,Yn as a1,Un as a2,Vn as a3,Dn as a4,zn as a5,Kn as a6,Zn as a7,_n as a8,Fn as a9,wo as aA,xo as aB,So as aC,Co as aD,mr as aE,pn as aF,bn as aG,yr as aH,gr as aI,Qo as aJ,Wo as aK,Go as aL,Uo as aM,Vo as aN,To as aO,Ur as aP,Ho as aQ,$n as aa,Rn as ab,Mn as ac,In as ad,En as ae,An as af,kn as ag,Wn as ah,Wr as ai,so as aj,Ir as ak,oo as al,ao as am,io as an,Lr as ao,lo as ap,co as aq,uo as ar,fo as as,yo as at,bo as au,mo as av,ho as aw,po as ax,go as ay,Br as az,Do as b,qo as c,zo as d,x as e,ko as f,Bo as g,vo as h,R as i,Ro as j,Gr as k,Ao as l,$o as m,No as n,W as o,Eo as p,Ko as q,Yo as r,Lo as s,ea as t,Zo as u,Io as v,Oo as w,_o as x,Po as y,Mo as z};