This commit is contained in:
Silent YANG 2024-05-27 01:09:50 +08:00
parent 07e8128ecd
commit 95c278fa2f
110 changed files with 823 additions and 826 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1 +0,0 @@
@keyframes t-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.t-icon{display:inline-block;vertical-align:middle;width:1em;height:1em}.t-icon:before{font-family:unset}.t-icon-loading{animation:t-spin 1s linear infinite}.t-icon{fill:currentColor}.t-icon.t-size-s,i.t-size-s{font-size:14px}.t-icon.t-size-m,i.t-size-m{font-size:16px}.t-icon.t-size-l,i.t-size-l{font-size:18px}

View File

@ -1,17 +0,0 @@
import{h as P,c as l,d as h}from"./arco.f43727df.js";import{w as S,Q as w,a9 as A,aa as E,ab as L,$,E as j,ac as F,ad as x,ae as D,af as z,ag as I,ah as N}from"./index.28b8c38d.js";import{d as O,e as R,m as K}from"./index.3c6542a6.js";function p(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?u(Object(t),!0).forEach(function(r){p(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function M(e){var n=["fillOpacity","fillRule","clipRule"];return n.includes(e)?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():e}function m(e,n){var t=Object.keys(e.attrs).reduce((r,a)=>(r[M(a)]=e.attrs[a],r),{});return P(e.tag,f(f({},t),n),(e.children||[]).map(r=>m(r,{})))}var T="t",G="zh-CN",U={classPrefix:T,locale:G};const k=U;function Z(){var{classPrefix:e}=k;return{SIZE:{default:"",xs:"".concat(e,"-size-xs"),small:"".concat(e,"-size-s"),medium:"".concat(e,"-size-m"),large:"".concat(e,"-size-l"),xl:"".concat(e,"-size-xl"),block:"".concat(e,"-size-full-width")},STATUS:{loading:"".concat(e,"-is-loading"),disabled:"".concat(e,"-is-disabled"),focused:"".concat(e,"-is-focused"),success:"".concat(e,"-is-success"),error:"".concat(e,"-is-error"),warning:"".concat(e,"-is-warning"),selected:"".concat(e,"-is-selected"),active:"".concat(e,"-is-active"),checked:"".concat(e,"-is-checked"),current:"".concat(e,"-is-current"),hidden:"".concat(e,"-is-hidden"),visible:"".concat(e,"-is-visible"),expanded:"".concat(e,"-is-expanded"),indeterminate:"".concat(e,"-is-indeterminate")}}}function B(e){var n=Z().SIZE,t=l(()=>e.value in n?n[e.value]:""),r=l(()=>e.value===void 0||e.value in n?{}:{fontSize:e.value});return{style:r,className:t}}function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?v(Object(t),!0).forEach(function(r){p(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var Q={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M7.05 5.64L12 10.59l4.95-4.95 1.41 1.41L13.41 12l4.95 4.95-1.41 1.41L12 13.41l-4.95 4.95-1.41-1.41L10.59 12 5.64 7.05l1.41-1.41z"}}]},X=h({name:"CloseIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,n){var{attrs:t}=n,r=l(()=>e.size),{className:a,style:s}=B(r),c=l(()=>["t-icon","t-icon-close",a.value]),i=l(()=>b(b({},s.value),t.style)),C=l(()=>({class:c.value,style:i.value,onClick:y=>{var o;return(o=e.onClick)===null||o===void 0?void 0:o.call(e,{e:y})}}));return()=>m(Q,C.value)}});const Me=X;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Te(e){var n=S("icon"),t=n.globalConfig,r={};return Object.keys(e).forEach(function(a){var s;r[a]=((s=t.value)===null||s===void 0?void 0:s[a])||e[a]}),r}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Y(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}var q=Y;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var d=w,H=$,J=j,g=d?d.isConcatSpreadable:void 0;function V(e){return J(e)||H(e)||!!(g&&e&&e[g])}var W=V,ee=L,ne=W;function _(e,n,t,r,a){var s=-1,c=e.length;for(t||(t=ne),a||(a=[]);++s<c;){var i=e[s];n>0&&t(i)?n>1?_(i,n-1,t,r,a):ee(a,i):r||(a[a.length]=i)}return a}var te=_,re=te;function ae(e){var n=e==null?0:e.length;return n?re(e,1):[]}var se=ae,ie=se,le=A,ce=E;function oe(e){return ce(le(e,void 0,ie),e+"")}var ue=oe;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var fe=K,ve=I;function be(e,n){return n.length<2?e:fe(e,ve(n,0,-1))}var de=be,ge=O,Oe=q,pe=de,me=R;function _e(e,n){return n=ge(n,e),e=pe(e,n),e==null||delete e[me(Oe(n))]}var Ce=_e,ye=N;function Pe(e){return ye(e)?void 0:e}var he=Pe,Se=F,we=z,Ae=Ce,Ee=O,Le=x,$e=he,je=ue,Fe=D,xe=1,De=2,ze=4,Ie=je(function(e,n){var t={};if(e==null)return t;var r=!1;n=Se(n,function(s){return s=Ee(s,e),r||(r=s.length>1),s}),Le(e,Fe(e),t),r&&(t=we(t,xe|De|ze,$e));for(var a=n.length;a--;)Ae(t,n[a]);return t}),Ge=Ie;export{Me as C,p as _,Te as a,te as b,ue as c,q as l,Ge as o,m as r,B as u};

Binary file not shown.

View File

@ -1 +0,0 @@
.t-tooltip .t-popup__content{display:inline-block;border:0;z-index:5600;margin-bottom:1px;max-width:480px;word-break:break-word;box-sizing:border-box;border-radius:var(--td-radius-medium);color:var(--td-text-color-primary)}.t-tooltip--default .t-popup__content{color:var(--td-text-color-anti);background:var(--td-gray-color-13);box-shadow:inset 0 .5px 0 var(--td-gray-color-9),inset .5px 0 0 var(--td-gray-color-9),inset 0 -.5px 0 var(--td-gray-color-9),inset -.5px 0 0 var(--td-gray-color-9)}.t-tooltip--default[data-popper-placement^=left] .t-popup__arrow:before{box-shadow:inset -.5px 0 0 var(--td-gray-color-9),inset 0 .5px 0 var(--td-gray-color-9)}.t-tooltip--default[data-popper-placement^=right] .t-popup__arrow:before{box-shadow:inset .5px 0 0 var(--td-gray-color-9),inset 0 -.5px 0 var(--td-gray-color-9)}.t-tooltip--default[data-popper-placement^=top] .t-popup__arrow:before{box-shadow:inset 0 -.5px 0 var(--td-gray-color-9),inset -.5px 0 0 var(--td-gray-color-9)}.t-tooltip--default[data-popper-placement^=bottom] .t-popup__arrow:before{box-shadow:inset .5px 0 0 var(--td-gray-color-9),inset 0 .5px 0 var(--td-gray-color-9)}.t-tooltip--primary .t-popup__content{color:var(--td-brand-color);background:var(--td-brand-color-light)}.t-tooltip--success .t-popup__content{color:var(--td-success-color);background:var(--td-success-color-light)}.t-tooltip--danger .t-popup__content{color:var(--td-error-color);background:var(--td-error-color-light)}.t-tooltip--warning .t-popup__content{color:var(--td-warning-color);background:var(--td-warning-color-light)}.t-tooltip .t-popup__arrow{background:inherit;height:auto}.t-tooltip .t-popup__arrow:before{background:inherit}.t-tooltip--noshadow .t-popup__content,.t-tooltip--noshadow[data-popper-placement] .t-popup__arrow:before{box-shadow:none}

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1,33 +0,0 @@
import{y as k,_ as X,u as J,c as N,f as K,E as Z,F as q,G as Q,H as ee}from"./index.3c6542a6.js";import{f as h,o as z,bs as te,d as ae,t as ne,c as O,w as A,aI as re,bB as le,g as ue}from"./arco.f43727df.js";import{G as oe,x as ie,B as ve,y as se,t as fe,a7 as L,Z as de}from"./index.28b8c38d.js";import{o as ce}from"./dep-281dbb92.b7bdc3eb.js";import{n as be,l as he,d as ge}from"./index.c6a389a9.js";import{b as me,e as pe}from"./dep-f6f516d9.c729faf9.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var ye={delay:{type:Number},destroyOnClose:{type:Boolean,default:!0},duration:{type:Number},placement:{type:String,default:"top"},showArrow:{type:Boolean,default:!0},theme:{type:String,default:"default",validator:function(e){return e?["default","primary","success","danger","warning","light"].includes(e):!0}}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Se=function(){var e=h(0),t=h(0),n=function(f){e.value=f.clientX,t.value=f.clientY};return k||(z(function(){window.addEventListener("mousemove",n,{passive:!0})}),te(function(){window.removeEventListener("mousemove",n)})),{x:e,y:t}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function B(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),t.push.apply(t,n)}return t}function _(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?B(Object(t),!0).forEach(function(n){N(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):B(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}var we=ae({name:"TTooltip",props:_(_({},be),ye),setup:function(e,t){var n=h(null),s=h(null),f=ne(e),b=f.visible,m=f.modelValue,c=me(b,m,e.defaultVisible,e.onVisibleChange,"visible"),p=X(c,2),R=p[0],y=p[1],d=ue(),g=h(e.visible||e.defaultVisible),j=J(),x=ie(),V=ve(),C=Se(),P=C.x,T=h(P.value);z(function(){e.duration&&g.value&&(n.value=setTimeout(function(){y(!1,{}),clearTimeout(n.value),n.value=null},e.duration))});var E=function(u,i){n.value&&(i==null?void 0:i.trigger)!=="document"||(u&&(T.value=P.value),y(u,i))},$=O(function(){return["".concat(j.value,"-tooltip"),N({},"".concat(j.value,"-tooltip--").concat(e.theme),e.theme),e.overlayClassName]}),o=O(function(){return _(_({},(d==null?void 0:d.vnode.props)||{}),{},{placement:e.placement==="mouse"?"bottom-left":e.placement,showArrow:e.placement==="mouse"?!1:e.showArrow,overlayClassName:$.value,onVisibleChange:E,disabled:e.disabled})}),r=O(function(){if(e.placement!=="mouse"||T.value===0)return e.overlayInnerStyle;var l=function(i){return{transform:"translateX(".concat(T.value-i.getBoundingClientRect().left,"px)")}};return e.overlayInnerStyle?function(u,i){return _(_({},l(u)),oe(e.overlayInnerStyle)?e.overlayInnerStyle(u,i):e.overlayInnerStyle)}:l});A(function(){return g.value},function(){n.value&&!g.value&&(clearTimeout(n.value),n.value=null)});var v=function(){var u,i;(u=s.value)===null||u===void 0||(i=u.update)===null||i===void 0||i.call(u)};return t.expose({updatePopper:v}),function(){var l=x("content");return!l&&!e.content?V("default","triggerElement"):re(he,le(ce(o.value,["content","default"]),{ref:s,overlayInnerStyle:r.value,visible:R.value}),{default:function(){return[V("default","triggerElement")]},content:function(){return l}})}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var tt=se(we);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function F(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(a,s).enumerable})),t.push.apply(t,n)}return t}function _e(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?F(Object(t),!0).forEach(function(n){N(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):F(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function at(a,e){for(var t=_e({},a),n=0;n<e.length;n++){var s=e[n];delete t[s]}return t}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Oe=ge,xe=fe,Te="Expected a function";function Ie(a,e,t){var n=!0,s=!0;if(typeof a!="function")throw new TypeError(Te);return xe(t)&&(n="leading"in t?!!t.leading:n,s="trailing"in t?!!t.trailing:s),Oe(a,e,{leading:n,maxWait:e,trailing:s})}var Re=Ie;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var je=de;function Ve(a,e,t){for(var n=-1,s=a.length;++n<s;){var f=a[n],b=e(f);if(b!=null&&(m===void 0?b===b&&!je(b):t(b,m)))var m=b,c=f}return c}var U=Ve;function Pe(a,e){return a>e}var Ee=Pe,Ce=U,$e=Ee,Me=L;function De(a){return a&&a.length?Ce(a,Me,$e):void 0}var He=De;function Ae(a,e){return a<e}var Ne=Ae,Le=U,Be=Ne,Fe=L;function Xe(a){return a&&a.length?Le(a,Fe,Be):void 0}var ze=Xe;function Ue(a,e){for(var t,n=-1,s=a.length;++n<s;){var f=e(a[n]);f!==void 0&&(t=t===void 0?f:t+f)}return t}var Ye=Ue,Ge=Ye,We=L;function ke(a){return a&&a.length?Ge(a,We):0}var H=ke,nt=function(e,t){var n,s,f=h([]),b=h((((n=t.value.data)===null||n===void 0?void 0:n.length)||0)*(((s=t.value.scroll)===null||s===void 0?void 0:s.rowHeight)||50)),m=h(0),c=[],p=h(0),R=h(0),y=h([0,15]),d=O(function(){var o,r=t.value.scroll;return r?{bufferSize:r.bufferSize||10,isFixedRowHeight:(o=r.isFixedRowHeight)!==null&&o!==void 0?o:!1,rowHeight:r.rowHeight||47,threshold:r.threshold||100,type:r.type}:{}}),g=O(function(){var o=t.value.data;return d.value.type==="virtual"&&d.value.threshold<o.length});function j(){for(var o,r,v=(o=(r=e.value)===null||r===void 0?void 0:r.scrollTop)!==null&&o!==void 0?o:0,l=[],u=0,i=-1,S=-1,I=0,w=0,Y=t.value.data.length;w<Y;w++){var M,D=(M=c[w])!==null&&M!==void 0?M:d.value.rowHeight;if(I=I+D,I>v&&i===-1&&(i=w,i-d.value.bufferSize>0&&(u=I-D-H(l))),i===-1&&(l.push(D),l.length>d.value.bufferSize&&l.shift()),S===-1&&(I>p.value+v||w===t.value.data.length-1)&&(S=w),i!==-1&&S!==-1)break}var G=He([i-d.value.bufferSize,0]),W=ze([S+d.value.bufferSize,t.value.data.length]);return{startIndex:G,endIndex:W,translateY:u}}var x=Re(function(){var o=j(),r=o.startIndex,v=o.endIndex,l=o.translateY;y.value.join()!==[r,v].join()&&r>=0&&(b.value=l,f.value=t.value.data.slice(r,v),y.value=[r,v])},100),V=function(r){var v;if(!(!g.value||!r||d.value.isFixedRowHeight||!e.value)){var l=(v=r.ref.value)===null||v===void 0?void 0:v.getBoundingClientRect().height,u=r.data.VIRTUAL_SCROLL_INDEX;if(c[u]!==l){var i=l-c[u];c[u]=l,m.value=m.value+i}}},C=function(){!g.value||x()},P=function(r){var v=X(r,1),l=v[0].contentRect,u=16;Math.abs(l.width-R.value)>u&&(e.value.scrollTop=0,b.value=0),R.value=l.width,p.value=l.height},T=function(r){r.forEach(function(v,l){v.VIRTUAL_SCROLL_INDEX=l})},E=function(r){var v=r.index,l=r.top,u=l===void 0?0:l,i=r.behavior,S=H(c.slice(0,v))-u;e.value.scrollTo({top:S,behavior:i||"auto"})},$=function(r){if(E(r),!d.value.isFixedRowHeight)var v,l=(v=r.time)!==null&&v!==void 0?v:60,u=setTimeout(function(){E(r),clearTimeout(u)},l)};return pe(O(function(){return g.value?e.value:void 0}),P),A(function(){return[K(t.value.data),d.value,g.value,e.value]},function(){if(!(!g.value||!e.value)){var o=t.value.data;if(T(o),p.value=e.value.getBoundingClientRect().height,c.length!==t.value.data.length){var r=Array.from(c);r.length=t.value.data.length,r.fill(d.value.rowHeight||47),c=r}m.value=H(c),y.value=[0,0],x()}},{immediate:!0}),A(function(){return p.value},function(){x()}),{visibleData:f,translateY:b,scrollHeight:m,isVirtualScroll:g,handleScroll:C,handleRowMounted:V,scrollToElement:$}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function rt(a){return Z(a)||q(a)||Q(a)||ee()}export{tt as T,rt as _,at as o,Re as t,nt as u};

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1,69 +0,0 @@
import{u as B,i as Te,g as Be,a as ce,_ as we,l as Ee,b as $e,c as _,d as Ae,e as Le}from"./index.3c6542a6.js";import{d as K,c as h,f as M,g as Oe,w as E,b as Ce,i as _e,o as Ie,t as Pe,n as ee,aI as C,bn as De,bo as Ke,bB as Re}from"./arco.f43727df.js";import{u as ne,r as te,_ as ae,a as ze}from"./dep-281dbb92.b7bdc3eb.js";import{s as He,t as Se,w as We,x as xe,y as Me,z as ke,A as Ue}from"./index.28b8c38d.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Ge(e,n){if(e==null)return{};var a={},t=Object.keys(e),r,m;for(m=0;m<t.length;m++)r=t[m],!(n.indexOf(r)>=0)&&(a[r]=e[r]);return a}function Je(e,n){if(e==null)return{};var a=Ge(e,n),t,r;if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(e);for(r=0;r<m.length;r++)t=m[r],!(n.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(a[t]=e[t]))}return a}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Xe(e){return e===void 0}var Ze=Xe;function se(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,t)}return a}function ve(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?se(Object(a),!0).forEach(function(t){ae(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):se(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var qe={tag:"svg",attrs:{fill:"none",viewBox:"0 0 26 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M4 1.59l6.17 6.17 7.07 7.07L23.41 21 22 22.41l-2.97-2.96A12.5 12.5 0 011.08 12.3L1 12l.1-.3c.77-2.4 2.24-4.5 4.18-6.02L2.59 3 4 1.59zM6.7 7.1A10.53 10.53 0 003.1 12a10.5 10.5 0 0014.45 5.97l-1.8-1.8a5 5 0 01-6.93-6.93L6.7 7.11zm3.6 3.6a3 3 0 004 4l-4-4zM13 5c-.58 0-1.14.05-1.7.14l-.98.16L10 3.32l.99-.16A12.5 12.5 0 0124.9 11.7l.1.31-.1.3c-.41 1.3-1.03 2.5-1.82 3.58l-.59.8-1.61-1.18.59-.8c.6-.82 1.08-1.73 1.42-2.7A10.5 10.5 0 0013 5zm.51 1.93l.96.29a5 5 0 013.31 3.31l.3.96-1.92.58-.3-.95a3 3 0 00-1.98-1.99l-.95-.3.58-1.9z"}}]},Qe=K({name:"BrowseOffIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,n){var{attrs:a}=n,t=h(()=>e.size),{className:r,style:m}=ne(t),s=h(()=>["t-icon","t-icon-browse-off",r.value]),i=h(()=>ve(ve({},m.value),a.style)),v=h(()=>({class:s.value,style:i.value,onClick:p=>{var d;return(d=e.onClick)===null||d===void 0?void 0:d.call(e,{e:p})}}));return()=>te(qe,v.value)}});const Ye=Qe;function fe(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,t)}return a}function de(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?fe(Object(a),!0).forEach(function(t){ae(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):fe(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var en={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"g",attrs:{clipPath:"url(#clip0_8726_7319)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.1 12a10.5 10.5 0 0019.8 0 10.5 10.5 0 00-19.8 0zm-2.01-.3a12.5 12.5 0 0123.82 0l.1.3-.1.3a12.5 12.5 0 01-23.82 0l-.1-.3.1-.3zM12 9a3 3 0 100 6 3 3 0 000-6zm-5 3a5 5 0 1110 0 5 5 0 01-10 0z"}}]}]},nn=K({name:"BrowseIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,n){var{attrs:a}=n,t=h(()=>e.size),{className:r,style:m}=ne(t),s=h(()=>["t-icon","t-icon-browse",r.value]),i=h(()=>de(de({},m.value),a.style)),v=h(()=>({class:s.value,style:i.value,onClick:p=>{var d;return(d=e.onClick)===null||d===void 0?void 0:d.call(e,{e:p})}}));return()=>te(en,v.value)}});const tn=nn;function me(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,t)}return a}function pe(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?me(Object(a),!0).forEach(function(t){ae(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):me(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var an={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12 23a11 11 0 100-22 11 11 0 000 22zM8.82 7.4L12 10.6l3.18-3.19 1.42 1.42L13.4 12l3.19 3.18-1.42 1.42L12 13.4 8.82 16.6 7.4 15.18 10.6 12 7.4 8.82 8.82 7.4z"}}]},rn=K({name:"CloseCircleFilledIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,n){var{attrs:a}=n,t=h(()=>e.size),{className:r,style:m}=ne(t),s=h(()=>["t-icon","t-icon-close-circle-filled",r.value]),i=h(()=>pe(pe({},m.value),a.style)),v=h(()=>({class:s.value,style:i.value,onClick:p=>{var d;return(d=e.onClick)===null||d===void 0?void 0:d.call(e,{e:p})}}));return()=>te(an,v.value)}});const ln=rn;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function on(e,n,a,t){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"value",m=Oe(),s=m.emit,i=m.vnode,v=M(),p=i.props||{},d=Object.prototype.hasOwnProperty.call(p,"modelValue")||Object.prototype.hasOwnProperty.call(p,"model-value"),l=Object.prototype.hasOwnProperty.call(p,r)||Object.prototype.hasOwnProperty.call(p,He(r));return d?[n,function(c){s("update:modelValue",c);for(var f=arguments.length,w=new Array(f>1?f-1:0),b=1;b<f;b++)w[b-1]=arguments[b];t==null||t.apply(void 0,[c].concat(w))}]:l?[e,function(c){s("update:".concat(r),c);for(var f=arguments.length,w=new Array(f>1?f-1:0),b=1;b<f;b++)w[b-1]=arguments[b];t==null||t.apply(void 0,[c].concat(w))}]:(v.value=a,[v,function(c){v.value=c;for(var f=arguments.length,w=new Array(f>1?f-1:0),b=1;b<f;b++)w[b-1]=arguments[b];t==null||t.apply(void 0,[c].concat(w))}])}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var k=new Set,un={warn:function(n,a){console.warn("TDesign ".concat(n," Warn: ").concat(a))},warnOnce:function(n,a){var t="TDesign ".concat(n," Warn: ").concat(a);k.has(t)||(k.add(t),console.warn(t))},error:function(n,a){console.error("TDesign ".concat(n," Error: ").concat(a))},errorOnce:function(n,a){var t="TDesign ".concat(n," Error: ").concat(a);k.has(t)||(k.add(t),console.error(t))},info:function(n,a){console.info("TDesign ".concat(n," Info: ").concat(a))}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function cn(e,n){if(!(typeof window>"u")){var a=window&&window.ResizeObserver;if(!!a){var t=null,r=function(){!t||!e.value||(t.unobserve(e.value),t.disconnect(),t=null)},m=function(i){t=new ResizeObserver(n),t.observe(i)};e&&E(e,function(s){r(),s&&m(s)},{immediate:!0,flush:"post"}),Ce(function(){r()})}}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var sn={align:{type:String,default:"left",validator:function(n){return n?["left","center","right"].includes(n):!0}},allowInputOverMax:Boolean,autoWidth:Boolean,autocomplete:{type:String,default:void 0},autofocus:Boolean,borderless:Boolean,clearable:Boolean,disabled:Boolean,format:{type:Function},inputClass:{type:[String,Object,Array]},label:{type:[String,Function]},maxcharacter:{type:Number},maxlength:{type:[String,Number]},name:{type:String,default:""},placeholder:{type:String,default:void 0},prefixIcon:{type:Function},readonly:Boolean,showClearIconOnEmpty:Boolean,showLimitNumber:Boolean,size:{type:String,default:"medium",validator:function(n){return n?["small","medium","large"].includes(n):!0}},status:{type:String,default:void 0,validator:function(n){return n?["default","success","warning","error"].includes(n):!0}},suffix:{type:[String,Function]},suffixIcon:{type:Function},tips:{type:[String,Function]},type:{type:String,default:"text",validator:function(n){return n?["text","number","url","tel","password","search","submit","hidden"].includes(n):!0}},value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},defaultValue:{type:[String,Number]},onBlur:Function,onChange:Function,onClear:Function,onClick:Function,onCompositionend:Function,onCompositionstart:Function,onEnter:Function,onFocus:Function,onKeydown:Function,onKeypress:Function,onKeyup:Function,onMouseenter:Function,onMouseleave:Function,onPaste:Function,onValidate:Function,onWheel:Function};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function je(e){var n=Oe(),a=h(function(){return n.props.disabled}),t=_e("formDisabled",Object.create(null)),r=t.disabled;return h(function(){return a.value||(r==null?void 0:r.value)||(e==null?void 0:e.value)||!1})}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Fn=function(){var n=B();return h(function(){var a="".concat(n.value,"-form"),t="".concat(n.value,"-input"),r="".concat(n.value,"-is");return{form:a,label:"".concat(a,"__label"),labelTop:"".concat(a,"__label--top"),inline:"".concat(a,"-inline"),formItem:"".concat(a,"__item"),formItemWithHelp:"".concat(a,"__item-with-help"),formItemWithExtra:"".concat(a,"__item-with-extra"),controls:"".concat(a,"__controls"),controlsContent:"".concat(a,"__controls-content"),status:"".concat(a,"__status"),extra:"".concat(t,"__extra"),help:"".concat(t,"__help"),success:"".concat(r,"-success"),successBorder:"".concat(a,"--success-border"),error:"".concat(r,"-error"),warning:"".concat(r,"-warning")}})},vn=function(e){return e.TO_BE_VALIDATED="not",e.SUCCESS="success",e.FAIL="fail",e}(vn||{}),Tn=Symbol("FormProvide"),fn=Symbol("FormItemProvide");/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function dn(e){var n=function(i){var v=e.value,p=v.allowInputOverMax,d=v.maxlength,l=v.maxcharacter;if(!(d||l)||p||!i)return i;if(d)return Ee(i,d);if(l){var c=ce(i,l);if(Se(c))return c.characters}},a=h(function(){var s=e.value,i=s.maxlength,v=s.maxcharacter,p=s.value;if(Te(p))return String(p);if(i&&v&&un.warn("Input","Pick one of maxlength and maxcharacter please."),i){var d=p!=null&&p.length?Be(p):0;return"".concat(d,"/").concat(i)}return v?"".concat(ce(p||""),"/").concat(v):""}),t=h(function(){if(a.value){var s=a.value.split("/"),i=we(s,2),v=i[0],p=i[1];return Number(v)>Number(p)?"error":""}return""}),r=h(function(){var s=e.value.status;return s||t.value}),m=function(){var i,v;(i=(v=e.value).onValidate)===null||i===void 0||i.call(v,{error:t.value?"exceed-maximum":void 0})};return E(t,m),Ie(function(){t.value&&m()}),{tStatus:r,limitNumber:a,getValueByLimitNumber:n}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function U(e,n){return n==="number"?e||e===0?Number(e):void 0:e}function mn(e,n){var a=Pe(e),t=a.value,r=a.modelValue,m=M(),s=M(!1),i=M(),v=M(null),p=M(),d=je(),l=on(t,r,e.defaultValue,e.onChange),c=we(l,2),f=c[0],w=c[1],b=M(!1),V=M(!1),S=M(e.type),I=M(null),P=h(function(){return{value:[void 0,null].includes(f.value)?void 0:String(f.value),status:e.status,maxlength:Number(e.maxlength),maxcharacter:e.maxcharacter,allowInputOverMax:e.allowInputOverMax,onValidate:e.onValidate}}),$=dn(P),F=$.limitNumber,A=$.getValueByLimitNumber,L=$.tStatus,R=h(function(){return(f.value&&!d.value&&e.clearable&&!e.readonly||e.showClearIconOnEmpty)&&b.value}),D=function(){var u;V.value=!0,(u=I.value)===null||u===void 0||u.focus()},G=function(){var u;V.value=!1,(u=I.value)===null||u===void 0||u.blur()},J=function(u){var o;b.value&&V.value||(m.value=f.value,!e.disabled&&(V.value=!0,(o=e.onFocus)===null||o===void 0||o.call(e,f.value,{e:u})))},X=function(u){var o,y=u.e,N=e.type==="number"?void 0:"";w(N,{e:y,trigger:"clear"}),(o=e.onClear)===null||o===void 0||o.call(e,{e:y})},z=function(u){p.value=u.target},H=function(){var u=S.value==="password"?"text":"password";S.value=u},O=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=I.value;if(!!o){var y=String(u);!o.value||o.value!==y&&(o.value=y)}},W=function(u){var o,y=u.target,N=y.value;e.type!=="number"&&typeof f.value=="string"&&N.length>((o=f.value)===null||o===void 0?void 0:o.length)&&(N=A(N)),w(U(N,e.type),{e:u,trigger:"input"}),ee(function(){O(f.value)})},Z=function(u){var o=u.inputType&&u.inputType==="insertCompositionText",y=u.currentTarget.value;if(o||s.value){i.value=y;return}W(u)},j=function(){var u,o=p.value;if(!o||!o.tagName||!((u=v.value)!==null&&u!==void 0&&u.$el)||!["path","svg"].includes(o.tagName))return!1;for(;o;){var y;if(((y=v.value)===null||y===void 0?void 0:y.$el)===o)return!0;o=o.parentNode}return!1},T=_e(fn,void 0),q=function(u){if(j())D();else{var o;e.format&&(m.value=typeof f.value=="number"||e.type==="number"?f.value:e.format(f.value)),V.value=!1,(o=e.onBlur)===null||o===void 0||o.call(e,f.value,{e:u}),T==null||T.handleBlur()}},Q=function(u){var o;s.value=!1,i.value="",W(u),(o=e.onCompositionend)===null||o===void 0||o.call(e,String(f.value),{e:u})},Y=function(u){var o;s.value=!0;var y=u.currentTarget.value;i.value=y,(o=e.onCompositionstart)===null||o===void 0||o.call(e,String(f.value),{e:u})},x=function(u){var o,y;(o=I.value)===null||o===void 0||o.focus(),(y=e.onClick)===null||y===void 0||y.call(e,{e:u})};return E(function(){return e.autofocus},function(g){g===!0&&ee(function(){var u;(u=I.value)===null||u===void 0||u.focus()})},{immediate:!0}),E(f,function(g,u){var o=e.type==="number";u===void 0&&e.format&&typeof g!="number"&&!o?m.value=e.format(g):m.value=g;var y=typeof g=="number"?g:A(g);y!==g&&!o&&w(y,{trigger:"initial"})},{immediate:!0}),E(function(){return e.type},function(g){S.value=g},{immediate:!0}),n({inputRef:I,focus:D,blur:G}),{isHover:b,focused:V,renderType:S,showClear:R,inputRef:I,clearIconRef:v,inputValue:m,isComposition:s,compositionValue:i,limitNumber:F,tStatus:L,emitFocus:J,formatAndEmitBlur:q,onHandleCompositionend:Q,onHandleCompositionstart:Y,onRootClick:x,emitPassword:H,handleInput:Z,emitClear:X,onClearIconMousedown:z,innerValue:f}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function pn(e,n){var a=function(l){if(!e.disabled){var c=l.code,f=U(l.currentTarget.value,e.type);if(/enter/i.test(c)||/enter/i.test(l.key)){var w;(w=e.onEnter)===null||w===void 0||w.call(e,f,{e:l})}else{var b;(b=e.onKeydown)===null||b===void 0||b.call(e,f,{e:l})}}},t=function(l){var c;if(!e.disabled){var f=U(l.currentTarget.value,e.type);(c=e.onKeyup)===null||c===void 0||c.call(e,f,{e:l})}},r=function(l){var c;if(!e.disabled){var f=U(l.currentTarget.value,e.type);(c=e.onKeypress)===null||c===void 0||c.call(e,f,{e:l})}},m=function(l){var c;if(!e.disabled){var f=l.clipboardData||window.clipboardData;(c=e.onPaste)===null||c===void 0||c.call(e,{e:l,pasteValue:f==null?void 0:f.getData("text/plain")})}},s=function(l){return n.value=l},i=function(l){var c;return(c=e.onWheel)===null||c===void 0?void 0:c.call(e,{e:l})},v=function(l){var c;s(!0),(c=e.onMouseenter)===null||c===void 0||c.call(e,{e:l})},p=function(l){var c;s(!1),(c=e.onMouseleave)===null||c===void 0||c.call(e,{e:l})};return{isHover:n,handleKeydown:a,handleKeyUp:t,handleKeypress:r,onHandlePaste:m,onHandleMousewheel:i,onInputMouseenter:v,onInputMouseleave:p}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var gn=100;function yn(e,n,a){var t=Pe(e),r=t.autoWidth,m=t.placeholder,s=M(null),i=M(null),v=function(){if(!(!s.value||!n.value)){var l=s.value.getBoundingClientRect(),c=l.width;n.value.style.width="".concat(c||0,"px")}};cn(n,function(){r.value&&(i.value=setTimeout(function(){v(),clearTimeout(i.value)},gn))}),Ce(function(){clearTimeout(i.value)});var p=function(){E([a,m],function(){!r.value||ee(function(){v()})},{immediate:!0})};return Ie(function(){r.value&&p()}),{inputPreRef:s}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var bn=["isHover","tStatus","inputRef","renderType","showClear","focused","inputValue","isComposition","compositionValue","innerValue","limitNumber"];function ge(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,t)}return a}function ye(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?ge(Object(a),!0).forEach(function(t){_(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ge(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function be(e){var n={};return Object.keys(e).forEach(function(a){Ze(e[a])||(n[a]=e[a])}),n}var hn=K({name:"TInput",props:ye(ye({},sn),{},{showInput:{type:Boolean,default:!0},keepWrapperWidth:{type:Boolean,default:!1}}),setup:function(n,a){var t=a.expose,r=We("input"),m=r.globalConfig,s=ze({BrowseIcon:tn,BrowseOffIcon:Ye,CloseCircleFilledIcon:ln}),i=s.BrowseIcon,v=s.BrowseOffIcon,p=s.CloseCircleFilledIcon,d=je(),l=B("input"),c=B("input__wrap"),f=B("input__tips"),w=$e(),b=w.STATUS,V=w.SIZE,S=B(),I=xe(),P=mn(n,t),$=P.isHover,F=P.tStatus,A=P.inputRef,L=P.renderType,R=P.showClear,D=P.focused,G=P.inputValue,J=P.isComposition,X=P.compositionValue,z=P.innerValue,H=P.limitNumber,O=Je(P,bn),W=yn(n,A,z),Z=W.inputPreRef,j=pn(n,$),T=h(function(){var x;return(x=n.placeholder)!==null&&x!==void 0?x:m.value.placeholder}),q=h(function(){var x;return be({autofocus:n.autofocus,disabled:d.value,readonly:n.readonly,placeholder:T.value,maxlength:!n.allowInputOverMax&&n.maxlength||void 0,name:n.name||void 0,type:L.value,autocomplete:(x=n.autocomplete)!==null&&x!==void 0?x:m.value.autocomplete||void 0,unselectable:n.readonly?"on":void 0})}),Q=h(function(){return[c.value,_({},"".concat(l.value,"--auto-width"),n.autoWidth&&!n.keepWrapperWidth)]}),Y=be({onFocus:O.emitFocus,onBlur:O.formatAndEmitBlur,onKeydown:j.handleKeydown,onKeyup:j.handleKeyUp,onKeypress:j.handleKeypress,onPaste:j.onHandlePaste,onCompositionend:O.onHandleCompositionend,onCompositionstart:O.onHandleCompositionstart});return function(){var x,g,u=I("prefixIcon"),o=I("suffixIcon"),y=I("passwordIcon"),N=I("label",{silent:!0}),re=I("suffix"),le=H.value&&n.showLimitNumber?C("div",{class:["".concat(S.value,"-input__limit-number"),_({},"".concat(S.value,"-is-disabled"),d.value)]},[H.value]):null,oe=N?C("div",{class:"".concat(l.value,"__prefix")},[N]):null,ue=re||le?C("div",{class:"".concat(l.value,"__suffix")},[re,le]):null;n.type==="password"&&(L.value==="password"?o=C(v,{class:"".concat(l.value,"__suffix-clear"),onClick:O.emitPassword},null):L.value==="text"&&(o=C(i,{class:"".concat(l.value,"__suffix-clear"),onClick:O.emitPassword},null))),R.value&&(n.type==="password"?y=C(p,{ref:O.clearIconRef,class:"".concat(l.value,"__suffix-clear"),onClick:O.emitClear,onMousedown:O.onClearIconMousedown},null):o=C(p,{ref:O.clearIconRef,class:"".concat(l.value,"__suffix-clear"),onClick:O.emitClear,onMousedown:O.onClearIconMousedown},null));var Ne=[l.value,n.inputClass,_(_(_(_(_(_(_(_(_({},V.value[n.size],n.size!=="medium"),b.value.disabled,d.value),b.value.focused,d.value?!1:D.value),"".concat(S.value,"-is-").concat(F.value),F.value&&F.value!=="default"),"".concat(S.value,"-align-").concat(n.align),n.align!=="left"),"".concat(S.value,"-is-readonly"),n.readonly),"".concat(l.value,"--prefix"),u||oe),"".concat(l.value,"--suffix"),o||ue),"".concat(l.value,"--focused"),D.value)],ie=I("tips"),Ve=[f.value,"".concat(S.value,"-tips"),"".concat(S.value,"-is-").concat(F.value||"default")];return De(C("div",{class:Q.value},[C("div",{class:Ne,onClick:O.onRootClick,onMouseenter:j.onInputMouseenter,onMouseleave:j.onInputMouseleave,onWheel:j.onHandleMousewheel},[u?C("span",{class:["".concat(l.value,"__prefix"),"".concat(l.value,"__prefix-icon")]},[u]):null,oe,C("input",Re({class:["".concat(l.value,"__inner"),_({},"".concat(l.value,"--soft-hidden"),!n.showInput)]},q.value,Y,{ref:A,value:J.value?(x=X.value)!==null&&x!==void 0?x:"":(g=G.value)!==null&&g!==void 0?g:"",onInput:function(Fe){return O.handleInput(Fe)}}),null),n.autoWidth&&C("span",{ref:Z,class:"".concat(S.value,"-input__input-pre")},[z.value||T.value]),ue,y?C("span",{class:["".concat(l.value,"__suffix"),"".concat(l.value,"__suffix-icon"),"".concat(l.value,"__clear")]},[y]):null,o?C("span",{class:["".concat(l.value,"__suffix"),"".concat(l.value,"__suffix-icon"),_({},"".concat(l.value,"__clear"),R.value)]},[o]):null]),ie&&C("div",{class:Ve},[ie])]),[[Ke,n.type!=="hidden"]])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var wn={separate:Boolean};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var On=K({name:"TInputGroup",props:wn,setup:function(n){var a=B("input-group"),t=xe(),r=h(function(){return[a.value,_({},"".concat(a.value,"--separate"),n.separate)]});return function(){return C("div",{class:r.value},[t("default")])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Bn=Me(hn);Me(On);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Cn=ke,_n=Ae,In=Ue,he=Se,Pn=Le;function Sn(e,n,a,t){if(!he(e))return e;n=_n(n,e);for(var r=-1,m=n.length,s=m-1,i=e;i!=null&&++r<m;){var v=Pn(n[r]),p=a;if(v==="__proto__"||v==="constructor"||v==="prototype")return e;if(r!=s){var d=i[v];p=t?t(d,v,i):void 0,p===void 0&&(p=he(d)?d:In(n[r+1])?[]:{})}Cn(i,v,p),i=i[v]}return e}var En=Sn;export{tn as B,ln as C,Tn as F,Bn as I,vn as V,En as _,fn as a,on as b,je as c,Je as d,cn as e,dn as f,Ze as i,un as l,Fn as u};

Binary file not shown.

50
assets/dialog.1f891b76.js Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

1
assets/index.0ae4f65a.js Normal file

File diff suppressed because one or more lines are too long

BIN
assets/index.0ae4f65a.js.gz Normal file

Binary file not shown.

210
assets/index.121828d4.js Normal file

File diff suppressed because one or more lines are too long

BIN
assets/index.121828d4.js.gz Normal file

Binary file not shown.

View File

@ -1 +0,0 @@
import{e as P,ar as F,_ as L}from"./index.28b8c38d.js";/* empty css *//* empty css *//* empty css */import{d as R,r as V,o as H,bH as A,bO as O,C as b,D as w,aI as g,aH as _,G as v,aK as C,aJ as M,F as T,aM as $,aN as B,a$ as U,ba as q,bI as z,bL as K,be as j,bf as G}from"./arco.f43727df.js";import{h as J}from"./vue.cbdb927d.js";import{e as Q,b as W,g as X}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";const E=y=>(j("data-v-2d8f1ddd"),y=y(),G(),y),Y={class:"container"},Z=E(()=>v("div",{id:"canvasDiv",style:{zoom:"250%",display:"none"}},null,-1)),tt={style:{padding:"0",margin:"0","border-spacing":"0"}},et=["onMousedown","onMouseover"],ot=E(()=>v("br",null,null,-1)),nt={name:"Backup"},at=R({...nt,setup(y){const f=P(),i=V({binaryFile:void 0,loading:!1,matrix:[],mousedown:!1}),I=J();H(()=>{I.query.url&&D(I.query.url)});const S=(e,s)=>{if(i.mousedown){const l=i.matrix;l[s][e]=i.matrix[s][e]=="#fff"?"#000":"#fff",i.matrix=l}},D=e=>{const s=document.createElement("canvas");s.width=128,s.height=64;const l=s.cloneNode(),o=document.getElementById("canvasDiv");o.innerHTML="",o==null||o.append(s,l);const p=new Image;p.src=e,p.onload=()=>{const r=s.getContext("2d");r==null||r.drawImage(p,0,0,128,64);const m=r==null?void 0:r.getImageData(0,0,s.width,s.height).data;function d(t,n){const a=(n*128+t)*4;return m[a]+m[a+1]+m[a+2]>128*3?0:1}const u=[];for(let t=0;t<64;t++){u.push([]),u[t]=[];for(let n=0;n<128;n++){const c=!d(n,t);u[t][n]=c?"#fff":"#000"}}i.matrix=u}},N=()=>{const e=document.createElement("input");e.type="file",e.onchange=async()=>{const s=new Blob([e.files[0]],{type:"application/octet-stream"}),l=URL.createObjectURL(s),o=document.createElement("canvas");o.width=128,o.height=64;const p=o.cloneNode(),r=document.getElementById("canvasDiv");r.innerHTML="",r==null||r.append(o,p);const m=new Image;m.src=l,m.onload=()=>{const d=o.getContext("2d");d==null||d.drawImage(m,0,0,128,64);const u=d==null?void 0:d.getImageData(0,0,o.width,o.height).data;function t(c,a){const x=(a*128+c)*4;return u[x]+u[x+1]+u[x+2]>128*3?0:1}const n=[];for(let c=0;c<64;c++){n.push([]),n[c]=[];for(let a=0;a<128;a++){const h=!t(a,c);n[c][a]=h?"#fff":"#000"}}i.matrix=n}},e.click()},k=async()=>{var p,r,m,d,u;const e=new Uint8Array(1024);let s=0;for(let t=0;t<64;t+=8)for(let n=0;n<128;n++){let c=0;for(let a=0;a<8;a++)c|=(i.matrix[t+a][n]=="#000"?1:0)<<a;e[s++]=c}if(i.binaryFile=e,f.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((p=f.configuration)==null?void 0:p.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}if(((r=f.configuration)==null?void 0:r.charset)!="losehu"&&((m=f.configuration)==null?void 0:m.charset)!="gb2312"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}i.loading=!0;let l=123728;((d=f.configuration)==null?void 0:d.charset)=="gb2312"&&(l=8320),await Q(f.connectPort);const o=i.binaryFile;for(let t=l;t<o.length+l;t+=128)await W(f.connectPort,t,o.slice(t-l,t-l+128),128,(u=f.configuration)==null?void 0:u.uart);await X(f.connectPort),i.loading=!1};return(e,s)=>{const l=F,o=U,p=q,r=A,m=O,d=z,u=K;return b(),w("div",Y,[g(l,{items:[e.$t("menu.list"),e.$t("menu.image")]},null,8,["items"]),g(u,{gutter:20,align:"stretch"},{default:_(()=>[g(d,{span:24},{default:_(()=>[g(m,{loading:i.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:_(()=>[g(r,{class:"general-card",title:e.$t("menu.image")+e.$t("global.onStart")},{default:_(()=>[Z,v("div",null,[v("table",tt,[(b(!0),w(C,null,M(i.matrix,(t,n)=>(b(),w("tr",null,[(b(!0),w(C,null,M(t,(c,a)=>(b(),w("td",{onMousedown:h=>{i.mousedown=!0,S(a,n)},onMouseup:s[0]||(s[0]=h=>{i.mousedown=!1}),onMouseover:h=>S(a,n),style:T("background-color: "+c+"; height: 5px; width: 3.5px;")},null,44,et))),256))]))),256))])]),ot,g(p,null,{default:_(()=>[g(o,{onClick:N},{default:_(()=>[$(B(e.$t("tool.selectImage")),1)]),_:1}),g(o,{type:"primary",disabled:i.matrix.length<64,onClick:k},{default:_(()=>[$(B(e.$t("tool.write")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["title"])]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const pt=L(at,[["__scopeId","data-v-2d8f1ddd"]]);export{pt as default};

Binary file not shown.

Binary file not shown.

View File

@ -1 +0,0 @@
.container[data-v-2d8f1ddd]{padding:0 20px 20px}.container[data-v-2d8f1ddd] .arco-list-content{overflow-x:hidden}.container[data-v-2d8f1ddd] .arco-card-meta-title{font-size:14px}[data-v-2d8f1ddd] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-2d8f1ddd] .arco-list-item{width:33%}[data-v-2d8f1ddd] .block-title{margin:0 0 12px;font-size:14px}[data-v-2d8f1ddd] .list-wrap .list-row{align-items:stretch}[data-v-2d8f1ddd] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-2d8f1ddd] .list-wrap :deep(.arco-space){width:100%}[data-v-2d8f1ddd] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}

1
assets/index.2f47e235.js Normal file
View File

@ -0,0 +1 @@
import{e as k,as as P,_ as R}from"./index.b3731552.js";/* empty css *//* empty css *//* empty css */import{d as F,r as U,o as V,bH as H,bO as O,C as b,D as w,aI as f,aH as _,G as v,aK as C,aJ as M,F as T,aM as $,aN as B,a$ as A,ba as j,bI as q,bL as z,be as K,bf as G}from"./arco.f43727df.js";import{h as J}from"./vue.cbdb927d.js";import{e as Q,b as W,g as X}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";const E=y=>(K("data-v-935d49c8"),y=y(),G(),y),Y={class:"container"},Z=E(()=>v("div",{id:"canvasDiv",style:{zoom:"250%",display:"none"}},null,-1)),tt={style:{padding:"0",margin:"0","border-spacing":"0"}},et=["onMousedown","onMouseover"],ot=E(()=>v("br",null,null,-1)),nt={name:"Backup"},at=F({...nt,setup(y){const g=k(),i=U({binaryFile:void 0,loading:!1,matrix:[],mousedown:!1}),I=J();V(async()=>{if(I.query.url){const t=await fetch(I.query.url,{responseType:"blob"});D(window.URL.createObjectURL(await t.blob()))}});const S=(t,s)=>{if(i.mousedown){const l=i.matrix;l[s][t]=i.matrix[s][t]=="#fff"?"#000":"#fff",i.matrix=l}},D=t=>{const s=document.createElement("canvas");s.width=128,s.height=64;const l=s.cloneNode(),o=document.getElementById("canvasDiv");o.innerHTML="",o==null||o.append(s,l);const p=new Image;p.src=t,p.onload=()=>{const r=s.getContext("2d");r==null||r.drawImage(p,0,0,128,64);const m=r==null?void 0:r.getImageData(0,0,s.width,s.height).data;function d(e,n){const a=(n*128+e)*4;return m[a]+m[a+1]+m[a+2]>128*3?0:1}const u=[];for(let e=0;e<64;e++){u.push([]),u[e]=[];for(let n=0;n<128;n++){const c=!d(n,e);u[e][n]=c?"#fff":"#000"}}i.matrix=u}},L=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const s=new Blob([t.files[0]],{type:"application/octet-stream"}),l=URL.createObjectURL(s),o=document.createElement("canvas");o.width=128,o.height=64;const p=o.cloneNode(),r=document.getElementById("canvasDiv");r.innerHTML="",r==null||r.append(o,p);const m=new Image;m.src=l,m.onload=()=>{const d=o.getContext("2d");d==null||d.drawImage(m,0,0,128,64);const u=d==null?void 0:d.getImageData(0,0,o.width,o.height).data;function e(c,a){const x=(a*128+c)*4;return u[x]+u[x+1]+u[x+2]>128*3?0:1}const n=[];for(let c=0;c<64;c++){n.push([]),n[c]=[];for(let a=0;a<128;a++){const h=!e(a,c);n[c][a]=h?"#fff":"#000"}}i.matrix=n}},t.click()},N=async()=>{var p,r,m,d,u;const t=new Uint8Array(1024);let s=0;for(let e=0;e<64;e+=8)for(let n=0;n<128;n++){let c=0;for(let a=0;a<8;a++)c|=(i.matrix[e+a][n]=="#000"?1:0)<<a;t[s++]=c}if(i.binaryFile=t,g.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((p=g.configuration)==null?void 0:p.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}if(((r=g.configuration)==null?void 0:r.charset)!="losehu"&&((m=g.configuration)==null?void 0:m.charset)!="gb2312"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}i.loading=!0;let l=123728;((d=g.configuration)==null?void 0:d.charset)=="gb2312"&&(l=8320),await Q(g.connectPort);const o=i.binaryFile;for(let e=l;e<o.length+l;e+=128)await W(g.connectPort,e,o.slice(e-l,e-l+128),128,(u=g.configuration)==null?void 0:u.uart);await X(g.connectPort),i.loading=!1};return(t,s)=>{const l=P,o=A,p=j,r=H,m=O,d=q,u=z;return b(),w("div",Y,[f(l,{items:[t.$t("menu.list"),t.$t("menu.image")]},null,8,["items"]),f(u,{gutter:20,align:"stretch"},{default:_(()=>[f(d,{span:24},{default:_(()=>[f(m,{loading:i.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:_(()=>[f(r,{class:"general-card",title:t.$t("menu.image")+t.$t("global.onStart")},{default:_(()=>[Z,v("div",null,[v("table",tt,[(b(!0),w(C,null,M(i.matrix,(e,n)=>(b(),w("tr",null,[(b(!0),w(C,null,M(e,(c,a)=>(b(),w("td",{onMousedown:h=>{i.mousedown=!0,S(a,n)},onMouseup:s[0]||(s[0]=h=>{i.mousedown=!1}),onMouseover:h=>S(a,n),style:T("background-color: "+c+"; height: 5px; width: 3.5px;")},null,44,et))),256))]))),256))])]),ot,f(p,null,{default:_(()=>[f(o,{onClick:L},{default:_(()=>[$(B(t.$t("tool.selectImage")),1)]),_:1}),f(o,{type:"primary",disabled:i.matrix.length<64,onClick:N},{default:_(()=>[$(B(t.$t("tool.write")),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["title"])]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const pt=R(at,[["__scopeId","data-v-935d49c8"]]);export{pt as default};

BIN
assets/index.2f47e235.js.gz Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
.container[data-v-935d49c8]{padding:0 20px 20px}.container[data-v-935d49c8] .arco-list-content{overflow-x:hidden}.container[data-v-935d49c8] .arco-card-meta-title{font-size:14px}[data-v-935d49c8] .arco-list-col{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}[data-v-935d49c8] .arco-list-item{width:33%}[data-v-935d49c8] .block-title{margin:0 0 12px;font-size:14px}[data-v-935d49c8] .list-wrap .list-row{align-items:stretch}[data-v-935d49c8] .list-wrap .list-row .list-col{margin-bottom:16px}[data-v-935d49c8] .list-wrap :deep(.arco-space){width:100%}[data-v-935d49c8] .list-wrap :deep(.arco-space) .arco-space-item:last-child{flex:1}

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
import{d as x,c as q,b5 as R,C as i,D as m,G as s,aI as e,aH as n,aK as D,aJ as E,aE as j,aN as r,b6 as z,f as A,r as G,b7 as H,b8 as J,b9 as K,ba as Q,bb as T,u as C,aM as f,a_ as W,bc as O,bd as X,a$ as Y,be as Z,bf as ee}from"./arco.f43727df.js";import{F as oe}from"./index.4d70dbb2.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.28b8c38d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.cbdb927d.js";import{u as le}from"./loading.a1d05891.js";import"./chart.3c227ebb.js";const S=""+new URL("login-banner.426fb77f.png",import.meta.url).href,ce={class:"banner"},ie={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},ue=["src"],me=x({__name:"banner",setup(c){const{t}=V.exports.useI18n(),g=q(()=>[{slogan:t("login.banner.slogan1"),subSlogan:t("login.banner.subSlogan1"),image:S},{slogan:t("login.banner.slogan2"),subSlogan:t("login.banner.subSlogan2"),image:S},{slogan:t("login.banner.slogan3"),subSlogan:t("login.banner.subSlogan3"),image:S}]);return(b,v)=>{const p=z,h=R;return i(),m("div",ce,[s("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(i(!0),m(D,null,E(g.value,a=>(i(),j(p,{key:a.slogan},{default:n(()=>[(i(),m("div",{key:a.slogan,class:"carousel-item"},[s("div",de,r(a.slogan),1),s("div",_e,r(a.subSlogan),1),s("img",{class:"carousel-image",src:a.image},null,8,ue)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(me,[["__scopeId","data-v-741ef175"]]),pe={class:"login-form-wrapper"},fe={class:"login-form-title"},be={class:"login-form-sub-title"},ve={class:"login-form-error-msg"},he={class:"login-form-password-actions"},we=x({__name:"login-form",setup(c){const t=te(),{t:g}=V.exports.useI18n(),b=A(""),{loading:v,setLoading:p}=le(),h=se(),a=re("login-config",{rememberPassword:!0,username:"admin",password:"admin"}),d=G({username:a.value.username,password:a.value.password}),F=async({errors:o,values:l})=>{if(!v.value&&!o){p(!0);try{await h.login(l);const{redirect:_,...w}=t.currentRoute.value.query;t.push({name:_||"Workplace",query:{...w}}),W.success(g("login.form.login.success"));const{rememberPassword:u}=a.value,{username:$,password:y}=l;a.value.username=u?$:"",a.value.password=u?y:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=H,u=O,$=ne,y=X,B=J,N=K,P=Y,M=Q,U=T;return i(),m("div",pe,[s("div",fe,r(o.$t("login.form.title")),1),s("div",be,r(o.$t("login.form.title")),1),s("div",ve,r(b.value),1),e(U,{ref:"loginForm",model:d,class:"login-form",layout:"vertical",onSubmit:F},{default:n(()=>[e(u,{field:"username",rules:[{required:!0,message:o.$t("login.form.userName.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(w,{modelValue:d.username,"onUpdate:modelValue":l[0]||(l[0]=I=>d.username=I),placeholder:o.$t("login.form.userName.placeholder")},{prefix:n(()=>[e(_)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(u,{field:"password",rules:[{required:!0,message:o.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(y,{modelValue:d.password,"onUpdate:modelValue":l[1]||(l[1]=I=>d.password=I),placeholder:o.$t("login.form.password.placeholder"),"allow-clear":""},{prefix:n(()=>[e($)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(M,{size:16,direction:"vertical"},{default:n(()=>[s("div",he,[e(B,{checked:"rememberPassword","model-value":C(a).rememberPassword,onChange:L},{default:n(()=>[f(r(o.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(N,null,{default:n(()=>[f(r(o.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:C(v)},{default:n(()=>[f(r(o.$t("login.form.login")),1)]),_:1},8,["loading"]),e(P,{type:"text",long:"",class:"login-form-register-btn"},{default:n(()=>[f(r(o.$t("login.form.register")),1)]),_:1})]),_:1})]),_:1},8,["model"])])}}});const $e=k(we,[["__scopeId","data-v-12db3177"]]),ye=c=>(Z("data-v-24cebde1"),c=c(),ee(),c),Ie={class:"container"},Se=ye(()=>s("div",{class:"logo"},[s("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),s("div",{class:"logo-text"},"Arco Design Pro")],-1)),xe={class:"content"},ke={class:"content-inner"},Pe={class:"footer"},Ce=x({__name:"index",setup(c){return(t,g)=>(i(),m("div",Ie,[Se,e(ge),s("div",xe,[s("div",ke,[e($e)]),s("div",Pe,[e(oe)])])]))}});const je=k(Ce,[["__scopeId","data-v-24cebde1"]]);export{je as default};
import{d as x,c as q,b5 as R,C as i,D as m,G as s,aI as e,aH as n,aK as D,aJ as E,aE as j,aN as r,b6 as z,f as A,r as G,b7 as H,b8 as J,b9 as K,ba as Q,bb as T,u as C,aM as f,a_ as W,bc as O,bd as X,a$ as Y,be as Z,bf as ee}from"./arco.f43727df.js";import{F as oe}from"./index.4daa8204.js";import{v as V,_ as k,u as se,I as ae,a as ne}from"./index.b3731552.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.cbdb927d.js";import{u as le}from"./loading.a1d05891.js";import"./chart.3c227ebb.js";const S=""+new URL("login-banner.426fb77f.png",import.meta.url).href,ce={class:"banner"},ie={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},ue=["src"],me=x({__name:"banner",setup(c){const{t}=V.exports.useI18n(),g=q(()=>[{slogan:t("login.banner.slogan1"),subSlogan:t("login.banner.subSlogan1"),image:S},{slogan:t("login.banner.slogan2"),subSlogan:t("login.banner.subSlogan2"),image:S},{slogan:t("login.banner.slogan3"),subSlogan:t("login.banner.subSlogan3"),image:S}]);return(b,v)=>{const p=z,h=R;return i(),m("div",ce,[s("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(i(!0),m(D,null,E(g.value,a=>(i(),j(p,{key:a.slogan},{default:n(()=>[(i(),m("div",{key:a.slogan,class:"carousel-item"},[s("div",de,r(a.slogan),1),s("div",_e,r(a.subSlogan),1),s("img",{class:"carousel-image",src:a.image},null,8,ue)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(me,[["__scopeId","data-v-741ef175"]]),pe={class:"login-form-wrapper"},fe={class:"login-form-title"},be={class:"login-form-sub-title"},ve={class:"login-form-error-msg"},he={class:"login-form-password-actions"},we=x({__name:"login-form",setup(c){const t=te(),{t:g}=V.exports.useI18n(),b=A(""),{loading:v,setLoading:p}=le(),h=se(),a=re("login-config",{rememberPassword:!0,username:"admin",password:"admin"}),d=G({username:a.value.username,password:a.value.password}),F=async({errors:o,values:l})=>{if(!v.value&&!o){p(!0);try{await h.login(l);const{redirect:_,...w}=t.currentRoute.value.query;t.push({name:_||"Workplace",query:{...w}}),W.success(g("login.form.login.success"));const{rememberPassword:u}=a.value,{username:$,password:y}=l;a.value.username=u?$:"",a.value.password=u?y:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=H,u=O,$=ne,y=X,B=J,N=K,P=Y,M=Q,U=T;return i(),m("div",pe,[s("div",fe,r(o.$t("login.form.title")),1),s("div",be,r(o.$t("login.form.title")),1),s("div",ve,r(b.value),1),e(U,{ref:"loginForm",model:d,class:"login-form",layout:"vertical",onSubmit:F},{default:n(()=>[e(u,{field:"username",rules:[{required:!0,message:o.$t("login.form.userName.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(w,{modelValue:d.username,"onUpdate:modelValue":l[0]||(l[0]=I=>d.username=I),placeholder:o.$t("login.form.userName.placeholder")},{prefix:n(()=>[e(_)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(u,{field:"password",rules:[{required:!0,message:o.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(y,{modelValue:d.password,"onUpdate:modelValue":l[1]||(l[1]=I=>d.password=I),placeholder:o.$t("login.form.password.placeholder"),"allow-clear":""},{prefix:n(()=>[e($)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(M,{size:16,direction:"vertical"},{default:n(()=>[s("div",he,[e(B,{checked:"rememberPassword","model-value":C(a).rememberPassword,onChange:L},{default:n(()=>[f(r(o.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(N,null,{default:n(()=>[f(r(o.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:C(v)},{default:n(()=>[f(r(o.$t("login.form.login")),1)]),_:1},8,["loading"]),e(P,{type:"text",long:"",class:"login-form-register-btn"},{default:n(()=>[f(r(o.$t("login.form.register")),1)]),_:1})]),_:1})]),_:1},8,["model"])])}}});const $e=k(we,[["__scopeId","data-v-12db3177"]]),ye=c=>(Z("data-v-24cebde1"),c=c(),ee(),c),Ie={class:"container"},Se=ye(()=>s("div",{class:"logo"},[s("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),s("div",{class:"logo-text"},"Arco Design Pro")],-1)),xe={class:"content"},ke={class:"content-inner"},Pe={class:"footer"},Ce=x({__name:"index",setup(c){return(t,g)=>(i(),m("div",Ie,[Se,e(ge),s("div",xe,[s("div",ke,[e($e)]),s("div",Pe,[e(oe)])])]))}});const je=k(Ce,[["__scopeId","data-v-24cebde1"]]);export{je as default};

BIN
assets/index.3d478e44.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

33
assets/index.49c060b9.js Normal file

File diff suppressed because one or more lines are too long

BIN
assets/index.49c060b9.js.gz Normal file

Binary file not shown.

View File

@ -1 +1 @@
import{_ as t}from"./index.28b8c38d.js";import{C as a,aE as s,aH as _,bg as c,be as n,bf as r,G as d}from"./arco.f43727df.js";const p={},f=e=>(n("data-v-77ebf61d"),e=e(),r(),e),i=f(()=>d("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web - V0.1.202405130020",-1));function b(e,l){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[i]),_:1})}const m=t(p,[["render",b],["__scopeId","data-v-77ebf61d"]]);export{m as F};
import{_ as t}from"./index.b3731552.js";import{C as a,aE as s,aH as _,bg as c,be as n,bf as r,G as d}from"./arco.f43727df.js";const p={},f=e=>(n("data-v-77ebf61d"),e=e(),r(),e),i=f(()=>d("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web - V0.1.202405130020",-1));function b(e,l){const o=c;return a(),s(o,{class:"footer"},{default:_(()=>[i]),_:1})}const m=t(p,[["render",b],["__scopeId","data-v-77ebf61d"]]);export{m as F};

View File

@ -1,4 +1,4 @@
import{u as P,b as R,c as d,L as I,f as N}from"./index.3c6542a6.js";import{f as A,o as z,bs as F,c as O,i as M,g as $,d as K,aI as E,h as X}from"./arco.f43727df.js";import{J as w,w as J,K as U,M as V,x as W,B as G,y as Z}from"./index.28b8c38d.js";/**
import{u as D,b as R,c as d,L as N,f as I}from"./index.7a815b78.js";import{f as A,o as z,bs as F,c as S,i as M,g as $,d as X,aI as E,h as G}from"./arco.f43727df.js";import{N as _,z as K,O as U,P as V,A as W,G as J,B as Z}from"./index.b3731552.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
@ -6,7 +6,7 @@ import{u as P,b as R,c as d,L as I,f as N}from"./index.3c6542a6.js";import{f as
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var H=w.expand,Q=w.ripple,Y=w.fade;function ee(){var t=J("animation"),e=t.globalConfig,n=function(o){var l,c,r=e.value;return r&&!((l=r.exclude)!==null&&l!==void 0&&l.includes(o))&&((c=r.include)===null||c===void 0?void 0:c.includes(o))};return{keepExpand:n(H),keepRipple:n(Q),keepFade:n(Y)}}/**
*/var H=_.expand,Q=_.ripple,Y=_.fade;function ee(){var t=K("animation"),e=t.globalConfig,n=function(o){var l,c,r=e.value;return r&&!((l=r.exclude)!==null&&l!==void 0&&l.includes(o))&&((c=r.include)===null||c===void 0?void 0:c.includes(o))};return{keepExpand:n(H),keepRipple:n(Q),keepFade:n(Y)}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
@ -14,20 +14,20 @@ import{u as P,b as R,c as d,L as I,f as N}from"./index.3c6542a6.js";import{f as
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var T=200,te="rgba(0, 0, 0, 0)",ne="rgba(0, 0, 0, 0.35)",ae=function(e,n){var a;if(n)return n;if(e!=null&&(a=e.dataset)!==null&&a!==void 0&&a.ripple){var o=e.dataset.ripple;return o}var l=getComputedStyle(e).getPropertyValue("--ripple-color");return l||ne};function re(t,e){var n=A(null),a=P(),o=ee(),l=o.keepRipple,c=function(m){var i=t.value,y=ae(i,e==null?void 0:e.value);if(!(m.button!==0||!t||!l)&&!(i.classList.contains("".concat(a.value,"-is-active"))||i.classList.contains("".concat(a.value,"-is-disabled"))||i.classList.contains("".concat(a.value,"-is-checked"))||i.classList.contains("".concat(a.value,"-is-loading")))){var b=getComputedStyle(i),v=parseInt(b.borderWidth,10),h=v>0?v:0,f=i.offsetWidth,u=i.offsetHeight;n.value.parentNode===null&&(L(n.value,{position:"absolute",left:"".concat(0-h,"px"),top:"".concat(0-h,"px"),width:"".concat(f,"px"),height:"".concat(u,"px"),borderRadius:b.borderRadius,pointerEvents:"none",overflow:"hidden"}),i.appendChild(n.value));var s=document.createElement("div");L(s,{marginTop:"0",marginLeft:"0",right:"".concat(f,"px"),width:"".concat(f+20,"px"),height:"100%",transition:"transform ".concat(T,"ms cubic-bezier(.38, 0, .24, 1), background ").concat(T*2,"ms linear"),transform:"skewX(-8deg)",pointerEvents:"none",position:"absolute",zIndex:0,backgroundColor:y,opacity:"0.9"});for(var k=new WeakMap,C=i.children.length,g=0;g<C;++g){var p=i.children[g];p.style.zIndex===""&&p!==n.value&&(p.style.zIndex="1",k.set(p,!0))}var x=i.style.position?i.style.position:getComputedStyle(i).position;(x===""||x==="static")&&(i.style.position="relative"),n.value.insertBefore(s,n.value.firstChild),setTimeout(function(){s.style.transform="translateX(".concat(f,"px)")},0);var _=function B(){s.style.backgroundColor=te,t.value&&(t.value.removeEventListener("pointerup",B,!1),t.value.removeEventListener("pointerleave",B,!1),setTimeout(function(){s.remove(),n.value.children.length===0&&n.value.remove()},T*2+100))};t.value.addEventListener("pointerup",_,!1),t.value.addEventListener("pointerleave",_,!1)}};z(function(){var r=t==null?void 0:t.value;!r||(n.value=document.createElement("div"),r.addEventListener("pointerdown",c,!1))}),F(function(){var r;t==null||(r=t.value)===null||r===void 0||r.removeEventListener("pointerdown",c,!1)})}/**
*/var T=200,te="rgba(0, 0, 0, 0)",ne="rgba(0, 0, 0, 0.35)",ae=function(e,n){var a;if(n)return n;if(e!=null&&(a=e.dataset)!==null&&a!==void 0&&a.ripple){var o=e.dataset.ripple;return o}var l=getComputedStyle(e).getPropertyValue("--ripple-color");return l||ne};function re(t,e){var n=A(null),a=D(),o=ee(),l=o.keepRipple,c=function(m){var i=t.value,h=ae(i,e==null?void 0:e.value);if(!(m.button!==0||!t||!l)&&!(i.classList.contains("".concat(a.value,"-is-active"))||i.classList.contains("".concat(a.value,"-is-disabled"))||i.classList.contains("".concat(a.value,"-is-checked"))||i.classList.contains("".concat(a.value,"-is-loading")))){var b=getComputedStyle(i),v=parseInt(b.borderWidth,10),y=v>0?v:0,f=i.offsetWidth,u=i.offsetHeight;n.value.parentNode===null&&(L(n.value,{position:"absolute",left:"".concat(0-y,"px"),top:"".concat(0-y,"px"),width:"".concat(f,"px"),height:"".concat(u,"px"),borderRadius:b.borderRadius,pointerEvents:"none",overflow:"hidden"}),i.appendChild(n.value));var s=document.createElement("div");L(s,{marginTop:"0",marginLeft:"0",right:"".concat(f,"px"),width:"".concat(f+20,"px"),height:"100%",transition:"transform ".concat(T,"ms cubic-bezier(.38, 0, .24, 1), background ").concat(T*2,"ms linear"),transform:"skewX(-8deg)",pointerEvents:"none",position:"absolute",zIndex:0,backgroundColor:h,opacity:"0.9"});for(var k=new WeakMap,C=i.children.length,g=0;g<C;++g){var p=i.children[g];p.style.zIndex===""&&p!==n.value&&(p.style.zIndex="1",k.set(p,!0))}var x=i.style.position?i.style.position:getComputedStyle(i).position;(x===""||x==="static")&&(i.style.position="relative"),n.value.insertBefore(s,n.value.firstChild),setTimeout(function(){s.style.transform="translateX(".concat(f,"px)")},0);var w=function B(){s.style.backgroundColor=te,t.value&&(t.value.removeEventListener("pointerup",B,!1),t.value.removeEventListener("pointerleave",B,!1),setTimeout(function(){s.remove(),n.value.children.length===0&&n.value.remove()},T*2+100))};t.value.addEventListener("pointerup",w,!1),t.value.addEventListener("pointerleave",w,!1)}};z(function(){var r=t==null?void 0:t.value;!r||(n.value=document.createElement("div"),r.addEventListener("pointerdown",c,!1))}),F(function(){var r;t==null||(r=t.value)===null||r===void 0||r.removeEventListener("pointerdown",c,!1)})}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var ie=U,oe=V,ue="[object Boolean]";function le(t){return t===!0||t===!1||oe(t)&&ie(t)==ue}var S=le;/**
*/var ie=U,oe=V,ue="[object Boolean]";function le(t){return t===!0||t===!1||oe(t)&&ie(t)==ue}var O=le;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function se(t){var e=$(),n=O(function(){return e.props.disabled}),a=M("formDisabled",Object.create(null));return O(function(){var o;return S(t==null?void 0:t.beforeDisabled.value)?t.beforeDisabled.value:S(n.value)?n.value:S(t==null?void 0:t.afterDisabled.value)?t.afterDisabled.value:S((o=a.disabled)===null||o===void 0?void 0:o.value)?a.disabled.value:!1})}/**
*/function se(t){var e=$(),n=S(function(){return e.props.disabled}),a=M("formDisabled",Object.create(null));return S(function(){var o;return O(t==null?void 0:t.beforeDisabled.value)?t.beforeDisabled.value:O(n.value)?n.value:O(t==null?void 0:t.afterDisabled.value)?t.afterDisabled.value:O((o=a.disabled)===null||o===void 0?void 0:o.value)?a.disabled.value:!1})}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function D(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?D(Object(n),!0).forEach(function(a){d(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var ce=K({name:"TButton",props:q,setup:function(e,n){var a=n.attrs,o=n.slots,l=W(),c=G(),r=P("button"),m=R(),i=m.STATUS,y=m.SIZE,b=A();re(b);var v=se(),h=O(function(){var u=e.theme,s=e.variant;return u||(s==="base"?"primary":"default")}),f=O(function(){return["".concat(r.value),"".concat(r.value,"--variant-").concat(e.variant),"".concat(r.value,"--theme-").concat(h.value),d(d(d(d(d(d({},y.value[e.size],e.size!=="medium"),i.value.disabled,v.value),i.value.loading,e.loading),"".concat(r.value,"--shape-").concat(e.shape),e.shape!=="rectangle"),"".concat(r.value,"--ghost"),e.ghost),y.value.block,e.block)]});return function(){var u=c("default","content"),s=e.loading?E(I,{inheritColor:!0},null):l("icon"),k=s&&!u,C=e.suffix||o.suffix?E("span",{className:"".concat(r.value,"__suffix")},[l("suffix")]):null;u=u?E("span",{class:"".concat(r.value,"__text")},[u]):"",s&&(u=[s,u]),C&&(u=[u].concat(C));var g=function(){return!e.tag&&e.href?"a":e.tag||"button"},p={class:[].concat(N(f.value),[d({},"".concat(r.value,"--icon-only"),k)]),type:e.type,disabled:v.value||e.loading,href:e.href,tabindex:v.value?void 0:"0"};return X(g(),j(j(j({ref:b},a),p),{},{onClick:e.onClick}),[u])}}});/**
*/function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,a)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?P(Object(n),!0).forEach(function(a){d(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}var ce=X({name:"TButton",props:q,setup:function(e,n){var a=n.attrs,o=n.slots,l=W(),c=J(),r=D("button"),m=R(),i=m.STATUS,h=m.SIZE,b=A();re(b);var v=se(),y=S(function(){var u=e.theme,s=e.variant;return u||(s==="base"?"primary":"default")}),f=S(function(){return["".concat(r.value),"".concat(r.value,"--variant-").concat(e.variant),"".concat(r.value,"--theme-").concat(y.value),d(d(d(d(d(d({},h.value[e.size],e.size!=="medium"),i.value.disabled,v.value),i.value.loading,e.loading),"".concat(r.value,"--shape-").concat(e.shape),e.shape!=="rectangle"),"".concat(r.value,"--ghost"),e.ghost),h.value.block,e.block)]});return function(){var u=c("default","content"),s=e.loading?E(N,{inheritColor:!0},null):l("icon"),k=s&&!u,C=e.suffix||o.suffix?E("span",{className:"".concat(r.value,"__suffix")},[l("suffix")]):null;u=u?E("span",{class:"".concat(r.value,"__text")},[u]):"",s&&(u=[s,u]),C&&(u=[u].concat(C));var g=function(){return!e.tag&&e.href?"a":e.tag||"button"},p={class:[].concat(I(f.value),[d({},"".concat(r.value,"--icon-only"),k)]),type:e.type,disabled:v.value||e.loading,href:e.href,tabindex:v.value?void 0:"0"};return G(g(),j(j(j({ref:b},a),p),{},{onClick:e.onClick}),[u])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var pe=Z(ce);export{pe as B,re as a,S as i,se as u};
*/var pe=Z(ce);export{pe as B,re as a,O as i,se as u};

BIN
assets/index.4efb2f62.js.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
import{d as R,r as Q,bH as W,C as U,aE as X,aH as s,aI as i,aM as d,aN as c,u as w,bn as Y,bo as Z,bp as tt,bI as ot,bF as at,a$ as nt,ba as et,be as rt,bf as ct,G as u,D as it}from"./arco.f43727df.js";import{v as st,e as ut,_ as j}from"./index.28b8c38d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as _t,a as n,b as e}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";const pt=""+new URL("../gy.png",import.meta.url).href,S=_=>(rt("data-v-769c6935"),_=_(),ct(),_),lt=S(()=>u("br",null,null,-1)),dt=S(()=>u("br",null,null,-1)),mt=S(()=>u("div",null,[u("img",{style:{"margin-bottom":"10px"},width:"600px",src:pt})],-1)),ft=R({__name:"banner",setup(_){const{t:r}=st.exports.useI18n(),t=ut(),P=Q({eepromSize:r("workplace.clickCheck")}),F=async()=>{var p,m,f,g,h,l,y,M,$,I,x,B,C,z,D,E,N,T,V,A,H;let o=r("workplace.unk");const v=[Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256)];await _t(t.connectPort);const a=new Uint8Array(v);if(((p=t.configuration)==null?void 0:p.uart)=="official"){const b=await n(t.connectPort,0,8,(m=t.configuration)==null?void 0:m.uart);await e(t.connectPort,0,a,8,(f=t.configuration)==null?void 0:f.uart);const k=await n(t.connectPort,0,8,(g=t.configuration)==null?void 0:g.uart);a.toString()==k.toString()&&(o=r("global.8kb")),await e(t.connectPort,0,b,8,(h=t.configuration)==null?void 0:h.uart)}else{const b=await n(t.connectPort,0,8,(l=t.configuration)==null?void 0:l.uart);await e(t.connectPort,0,a,8,(y=t.configuration)==null?void 0:y.uart);const k=await n(t.connectPort,0,8,(M=t.configuration)==null?void 0:M.uart);a.toString()==k.toString()&&(o=r("global.8kb")),await e(t.connectPort,0,b,8,($=t.configuration)==null?void 0:$.uart);const G=await n(t.connectPort,131064,8,(I=t.configuration)==null?void 0:I.uart);await e(t.connectPort,131064,a,8,(x=t.configuration)==null?void 0:x.uart);const L=await n(t.connectPort,131064,8,(B=t.configuration)==null?void 0:B.uart);a.toString()==L.toString()&&(o=r("global.128kb")),await e(t.connectPort,131064,G,8,(C=t.configuration)==null?void 0:C.uart);const O=await n(t.connectPort,262136,8,(z=t.configuration)==null?void 0:z.uart);await e(t.connectPort,262136,a,8,(D=t.configuration)==null?void 0:D.uart);const q=await n(t.connectPort,262136,8,(E=t.configuration)==null?void 0:E.uart);a.toString()==q.toString()&&(o=r("global.256kb")),await e(t.connectPort,262136,O,8,(N=t.configuration)==null?void 0:N.uart);const J=await n(t.connectPort,524280,8,(T=t.configuration)==null?void 0:T.uart);await e(t.connectPort,524280,a,8,(V=t.configuration)==null?void 0:V.uart);const K=await n(t.connectPort,524280,8,(A=t.configuration)==null?void 0:A.uart);a.toString()==K.toString()&&(o=r("global.512kb")),await e(t.connectPort,524280,J,8,(H=t.configuration)==null?void 0:H.uart)}P.eepromSize=o};return(o,v)=>{const a=tt,p=ot,m=at,f=nt,g=W,h=et;return U(),X(p,{class:"banner"},{default:s(()=>[i(p,null,{default:s(()=>[i(a,{heading:5,style:{"margin-top":"0"}},{default:s(()=>[d(c(w(t).connectState?o.$t("workplace.welcomeSuc"):o.$t("workplace.welcome")),1)]),_:1})]),_:1}),i(m,{class:"panel-border"}),i(h,null,{default:s(()=>[Y(i(g,{style:{marginTop:"2em",marginBottom:"2em"},title:o.$t("workplace.info")},{default:s(()=>{var l;return[d(c(o.$t("workplace.current"))+c(w(t).firmwareVersion)+" ",1),lt,d(" "+c(o.$t("workplace.writeconfig"))+c((l=w(t).configuration)==null?void 0:l.name)+" ",1),dt,d(" "+c(o.$t("workplace.eepromSize"))+c(P.eepromSize)+" ",1),i(f,{size:"mini",type:"primary",onClick:F},{default:s(()=>[d(c(o.$t("workplace.checkIt")),1)]),_:1})]}),_:1},8,["title"]),[[Z,w(t).connectState]])]),_:1}),mt]),_:1})}}});const gt=j(ft,[["__scopeId","data-v-769c6935"]]),ht={class:"container"},wt={class:"left-side"},bt={class:"panel"},kt={name:"Dashboard"},St=R({...kt,setup(_){return(r,t)=>(U(),it("div",ht,[u("div",wt,[u("div",bt,[i(gt)])])]))}});const Et=j(St,[["__scopeId","data-v-8f743d99"]]);export{Et as default};
import{d as R,r as Q,bH as W,C as U,aE as X,aH as s,aI as i,aM as d,aN as c,u as w,bn as Y,bo as Z,bp as tt,bI as ot,bF as at,a$ as nt,ba as et,be as rt,bf as ct,G as u,D as it}from"./arco.f43727df.js";import{v as st,e as ut,_ as j}from"./index.b3731552.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{e as _t,a as n,b as e}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";const pt=""+new URL("../gy.png",import.meta.url).href,S=_=>(rt("data-v-769c6935"),_=_(),ct(),_),lt=S(()=>u("br",null,null,-1)),dt=S(()=>u("br",null,null,-1)),mt=S(()=>u("div",null,[u("img",{style:{"margin-bottom":"10px"},width:"600px",src:pt})],-1)),ft=R({__name:"banner",setup(_){const{t:r}=st.exports.useI18n(),t=ut(),P=Q({eepromSize:r("workplace.clickCheck")}),F=async()=>{var p,m,f,g,h,l,y,M,$,I,x,B,C,z,D,E,N,T,V,A,H;let o=r("workplace.unk");const v=[Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256),Math.round(Math.random()*256)];await _t(t.connectPort);const a=new Uint8Array(v);if(((p=t.configuration)==null?void 0:p.uart)=="official"){const b=await n(t.connectPort,0,8,(m=t.configuration)==null?void 0:m.uart);await e(t.connectPort,0,a,8,(f=t.configuration)==null?void 0:f.uart);const k=await n(t.connectPort,0,8,(g=t.configuration)==null?void 0:g.uart);a.toString()==k.toString()&&(o=r("global.8kb")),await e(t.connectPort,0,b,8,(h=t.configuration)==null?void 0:h.uart)}else{const b=await n(t.connectPort,0,8,(l=t.configuration)==null?void 0:l.uart);await e(t.connectPort,0,a,8,(y=t.configuration)==null?void 0:y.uart);const k=await n(t.connectPort,0,8,(M=t.configuration)==null?void 0:M.uart);a.toString()==k.toString()&&(o=r("global.8kb")),await e(t.connectPort,0,b,8,($=t.configuration)==null?void 0:$.uart);const G=await n(t.connectPort,131064,8,(I=t.configuration)==null?void 0:I.uart);await e(t.connectPort,131064,a,8,(x=t.configuration)==null?void 0:x.uart);const L=await n(t.connectPort,131064,8,(B=t.configuration)==null?void 0:B.uart);a.toString()==L.toString()&&(o=r("global.128kb")),await e(t.connectPort,131064,G,8,(C=t.configuration)==null?void 0:C.uart);const O=await n(t.connectPort,262136,8,(z=t.configuration)==null?void 0:z.uart);await e(t.connectPort,262136,a,8,(D=t.configuration)==null?void 0:D.uart);const q=await n(t.connectPort,262136,8,(E=t.configuration)==null?void 0:E.uart);a.toString()==q.toString()&&(o=r("global.256kb")),await e(t.connectPort,262136,O,8,(N=t.configuration)==null?void 0:N.uart);const J=await n(t.connectPort,524280,8,(T=t.configuration)==null?void 0:T.uart);await e(t.connectPort,524280,a,8,(V=t.configuration)==null?void 0:V.uart);const K=await n(t.connectPort,524280,8,(A=t.configuration)==null?void 0:A.uart);a.toString()==K.toString()&&(o=r("global.512kb")),await e(t.connectPort,524280,J,8,(H=t.configuration)==null?void 0:H.uart)}P.eepromSize=o};return(o,v)=>{const a=tt,p=ot,m=at,f=nt,g=W,h=et;return U(),X(p,{class:"banner"},{default:s(()=>[i(p,null,{default:s(()=>[i(a,{heading:5,style:{"margin-top":"0"}},{default:s(()=>[d(c(w(t).connectState?o.$t("workplace.welcomeSuc"):o.$t("workplace.welcome")),1)]),_:1})]),_:1}),i(m,{class:"panel-border"}),i(h,null,{default:s(()=>[Y(i(g,{style:{marginTop:"2em",marginBottom:"2em"},title:o.$t("workplace.info")},{default:s(()=>{var l;return[d(c(o.$t("workplace.current"))+c(w(t).firmwareVersion)+" ",1),lt,d(" "+c(o.$t("workplace.writeconfig"))+c((l=w(t).configuration)==null?void 0:l.name)+" ",1),dt,d(" "+c(o.$t("workplace.eepromSize"))+c(P.eepromSize)+" ",1),i(f,{size:"mini",type:"primary",onClick:F},{default:s(()=>[d(c(o.$t("workplace.checkIt")),1)]),_:1})]}),_:1},8,["title"]),[[Z,w(t).connectState]])]),_:1}),mt]),_:1})}}});const gt=j(ft,[["__scopeId","data-v-769c6935"]]),ht={class:"container"},wt={class:"left-side"},bt={class:"panel"},kt={name:"Dashboard"},St=R({...kt,setup(_){return(r,t)=>(U(),it("div",ht,[u("div",wt,[u("div",bt,[i(gt)])])]))}});const Et=j(St,[["__scopeId","data-v-8f743d99"]]);export{Et as default};

BIN
assets/index.590de47b.js.gz Normal file

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
import{_}from"./index.28b8c38d.js";/* empty css */import{d as F,r as f,o as h,bF as g,a$ as m,D as y,bn as i,bo as c,G as o,aM as s,aI as a,aN as d,aH as v,be as A,bf as b,C as D}from"./arco.f43727df.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";const l=u=>(A("data-v-9a7d1078"),u=u(),b(),u),S={class:"container"},C={style:{"background-color":"#fff",padding:"10%"}},B=l(()=>o("br",null,null,-1)),E={style:{"background-color":"#fff",padding:"10%"}},x=l(()=>o("p",{style:{"font-size":"1.5rem","font-weight":"bold"}}," \u83B7\u53D6\u4FE1\u606F\uFF08Information\uFF09 ",-1)),k={name:"SatLoc"},w=F({...k,setup(u){const t=f({lat:0,lng:0,alt:0,type:0,uuid:""});h(()=>{t.uuid=new URLSearchParams(location.hash.replace("#/satloc?","")).get("uuid"),navigator.geolocation.getCurrentPosition(e=>{e.coords&&(t.lat=e.coords.latitude,t.lng=e.coords.longitude,e.coords.altitude&&(t.alt=e.coords.altitude))})});const r=async()=>{await fetch("https://k5.vicicode.com/api/lol",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({func:0,uuid:t.uuid,cache:JSON.stringify([t.lng,t.lat,t.alt])})}),t.type=1};return(e,I)=>{const n=g,p=m;return D(),y("div",S,[i(o("div",C,[s(" \u8BF7\u70B9\u51FB\u7F51\u9875\u201C\u5DF2\u626B\u7801\u4E0A\u4F20\u201D\u6309\u94AE "),B,s(' Please click on the "Scanned and Uploaded" button on PC page. ')],512),[[c,t.type!=0]]),i(o("div",E,[x,a(n),o("p",null," \u53F0\u7AD9\u7ECF\u5EA6\uFF08Longitude\uFF09\uFF1A"+d(t.lng),1),a(n),o("p",null," \u53F0\u7AD9\u7EAC\u5EA6\uFF08Latitude\uFF09\uFF1A"+d(t.lat),1),a(n),o("p",null," \u53F0\u7AD9\u6D77\u62D4\uFF08Altitude\uFF09\uFF1A"+d(t.alt),1),a(n),a(p,{type:"primary",onClick:r},{default:v(()=>[s("\u4E0A\u4F20\uFF08Upload\uFF09")]),_:1})],512),[[c,t.type==0]])])}}});const U=_(w,[["__scopeId","data-v-9a7d1078"]]);export{U as default};
import{_}from"./index.b3731552.js";/* empty css */import{d as F,r as f,o as h,bF as g,a$ as m,D as y,bn as i,bo as c,G as o,aM as s,aI as a,aN as d,aH as v,be as A,bf as b,C as D}from"./arco.f43727df.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";const l=u=>(A("data-v-9a7d1078"),u=u(),b(),u),S={class:"container"},C={style:{"background-color":"#fff",padding:"10%"}},B=l(()=>o("br",null,null,-1)),E={style:{"background-color":"#fff",padding:"10%"}},x=l(()=>o("p",{style:{"font-size":"1.5rem","font-weight":"bold"}}," \u83B7\u53D6\u4FE1\u606F\uFF08Information\uFF09 ",-1)),k={name:"SatLoc"},w=F({...k,setup(u){const t=f({lat:0,lng:0,alt:0,type:0,uuid:""});h(()=>{t.uuid=new URLSearchParams(location.hash.replace("#/satloc?","")).get("uuid"),navigator.geolocation.getCurrentPosition(e=>{e.coords&&(t.lat=e.coords.latitude,t.lng=e.coords.longitude,e.coords.altitude&&(t.alt=e.coords.altitude))})});const r=async()=>{await fetch("https://k5.vicicode.com/api/lol",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({func:0,uuid:t.uuid,cache:JSON.stringify([t.lng,t.lat,t.alt])})}),t.type=1};return(e,I)=>{const n=g,p=m;return D(),y("div",S,[i(o("div",C,[s(" \u8BF7\u70B9\u51FB\u7F51\u9875\u201C\u5DF2\u626B\u7801\u4E0A\u4F20\u201D\u6309\u94AE "),B,s(' Please click on the "Scanned and Uploaded" button on PC page. ')],512),[[c,t.type!=0]]),i(o("div",E,[x,a(n),o("p",null," \u53F0\u7AD9\u7ECF\u5EA6\uFF08Longitude\uFF09\uFF1A"+d(t.lng),1),a(n),o("p",null," \u53F0\u7AD9\u7EAC\u5EA6\uFF08Latitude\uFF09\uFF1A"+d(t.lat),1),a(n),o("p",null," \u53F0\u7AD9\u6D77\u62D4\uFF08Altitude\uFF09\uFF1A"+d(t.alt),1),a(n),a(p,{type:"primary",onClick:r},{default:v(()=>[s("\u4E0A\u4F20\uFF08Upload\uFF09")]),_:1})],512),[[c,t.type==0]])])}}});const U=_(w,[["__scopeId","data-v-9a7d1078"]]);export{U as default};

BIN
assets/index.7578b808.js.gz Normal file

Binary file not shown.

View File

@ -1,4 +1,4 @@
import{N,O as Pe,P as sr,Q as or,M as Ee,S as Te,T as lr,U as ur,E as G,V as cr,W as fr,X as vr,Y as dr,Z as xe,$ as gr,A as hr,a0 as mr,K as yr,w as Ie,a1 as Le,G as R,F as Me,a2 as le,a3 as pr,a4 as _r,t as Fe,a5 as br,a6 as Ne,a7 as Cr,a8 as wr,y as Ar}from"./index.28b8c38d.js";import{c as d,d as ne,o as ae,g as Sr,n as Or,aI as m,f as H,w as Re,t as $r,bB as K,bD as ue,r as Pr,h as Er,b4 as Tr}from"./arco.f43727df.js";/**
import{w as N,a1 as Pe,a2 as sr,Q as or,P as Ee,a3 as Te,a4 as lr,a5 as ur,J as z,a6 as cr,a7 as fr,a8 as vr,a9 as dr,aa as xe,V as gr,E as hr,ab as mr,O as yr,z as Ie,ac as Le,M as R,K as Me,ad as le,ae as pr,af as _r,y as Fe,ag as br,ah as Ne,ai as Cr,aj as wr,B as Ar}from"./index.b3731552.js";import{c as d,d as ne,o as ae,g as Or,n as Sr,aI as m,f as H,w as Re,t as $r,bB as G,bD as ue,r as Pr,h as Er,b4 as Tr}from"./arco.f43727df.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
@ -15,7 +15,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Nr="__lodash_hash_undefined__";function Rr(e){return this.__data__.set(e,Nr),this}var Dr=Rr;function Gr(e){return this.__data__.has(e)}var Kr=Gr,zr=Pe,qr=Dr,Br=Kr;function U(e){var r=-1,n=e==null?0:e.length;for(this.__data__=new zr;++r<n;)this.add(e[r])}U.prototype.add=U.prototype.push=qr;U.prototype.has=Br;var Hr=U;function Ur(e,r){return e.has(r)}var Wr=Ur;/**
*/var Nr="__lodash_hash_undefined__";function Rr(e){return this.__data__.set(e,Nr),this}var Dr=Rr;function zr(e){return this.__data__.has(e)}var Gr=zr,Kr=Pe,qr=Dr,Br=Gr;function U(e){var r=-1,n=e==null?0:e.length;for(this.__data__=new Kr;++r<n;)this.add(e[r])}U.prototype.add=U.prototype.push=qr;U.prototype.has=Br;var Hr=U;function Ur(e,r){return e.has(r)}var Wr=Ur;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
@ -23,11 +23,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Yr(e,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(e[n],n,e))return!0;return!1}var jr=Yr,Jr=Hr,Qr=jr,Vr=Wr,kr=1,en=2;function rn(e,r,n,a,t,i){var s=n&kr,o=e.length,l=r.length;if(o!=l&&!(s&&l>o))return!1;var u=i.get(e),c=i.get(r);if(u&&c)return u==r&&c==e;var f=-1,v=!0,p=n&en?new Jr:void 0;for(i.set(e,r),i.set(r,e);++f<o;){var g=e[f],h=r[f];if(a)var b=s?a(h,g,f,r,e,i):a(g,h,f,e,r,i);if(b!==void 0){if(b)continue;v=!1;break}if(p){if(!Qr(r,function(C,w){if(!Vr(p,w)&&(g===C||t(g,C,n,a,i)))return p.push(w)})){v=!1;break}}else if(!(g===h||t(g,h,n,a,i))){v=!1;break}}return i.delete(e),i.delete(r),v}var Ge=rn;function nn(e){var r=-1,n=Array(e.size);return e.forEach(function(a,t){n[++r]=[t,a]}),n}var an=nn,ce=or,fe=cr,tn=fr,sn=Ge,on=an,ln=Zr,un=1,cn=2,fn="[object Boolean]",vn="[object Date]",dn="[object Error]",gn="[object Map]",hn="[object Number]",mn="[object RegExp]",yn="[object Set]",pn="[object String]",_n="[object Symbol]",bn="[object ArrayBuffer]",Cn="[object DataView]",ve=ce?ce.prototype:void 0,Z=ve?ve.valueOf:void 0;function wn(e,r,n,a,t,i,s){switch(n){case Cn:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case bn:return!(e.byteLength!=r.byteLength||!i(new fe(e),new fe(r)));case fn:case vn:case hn:return tn(+e,+r);case dn:return e.name==r.name&&e.message==r.message;case mn:case pn:return e==r+"";case gn:var o=on;case yn:var l=a&un;if(o||(o=ln),e.size!=r.size&&!l)return!1;var u=s.get(e);if(u)return u==r;a|=cn,s.set(e,r);var c=sn(o(e),o(r),a,t,i,s);return s.delete(e),c;case _n:if(Z)return Z.call(e)==Z.call(r)}return!1}var An=wn,de=vr,Sn=1,On=Object.prototype,$n=On.hasOwnProperty;function Pn(e,r,n,a,t,i){var s=n&Sn,o=de(e),l=o.length,u=de(r),c=u.length;if(l!=c&&!s)return!1;for(var f=l;f--;){var v=o[f];if(!(s?v in r:$n.call(r,v)))return!1}var p=i.get(e),g=i.get(r);if(p&&g)return p==r&&g==e;var h=!0;i.set(e,r),i.set(r,e);for(var b=s;++f<l;){v=o[f];var C=e[v],w=r[v];if(a)var S=s?a(w,C,v,r,e,i):a(C,w,v,e,r,i);if(!(S===void 0?C===w||t(C,w,n,a,i):S)){h=!1;break}b||(b=v=="constructor")}if(h&&!b){var P=e.constructor,O=r.constructor;P!=O&&"constructor"in e&&"constructor"in r&&!(typeof P=="function"&&P instanceof P&&typeof O=="function"&&O instanceof O)&&(h=!1)}return i.delete(e),i.delete(r),h}var En=Pn,Y=Te,Tn=Ge,xn=An,In=En,ge=lr,he=G,me=sr.exports,Ln=ur,Mn=1,ye="[object Arguments]",pe="[object Array]",z="[object Object]",Fn=Object.prototype,_e=Fn.hasOwnProperty;function Nn(e,r,n,a,t,i){var s=he(e),o=he(r),l=s?pe:ge(e),u=o?pe:ge(r);l=l==ye?z:l,u=u==ye?z:u;var c=l==z,f=u==z,v=l==u;if(v&&me(e)){if(!me(r))return!1;s=!0,c=!1}if(v&&!c)return i||(i=new Y),s||Ln(e)?Tn(e,r,n,a,t,i):xn(e,r,l,n,a,t,i);if(!(n&Mn)){var p=c&&_e.call(e,"__wrapped__"),g=f&&_e.call(r,"__wrapped__");if(p||g){var h=p?e.value():e,b=g?r.value():r;return i||(i=new Y),t(h,b,n,a,i)}}return v?(i||(i=new Y),In(e,r,n,a,t,i)):!1}var Rn=Nn,Dn=Rn,be=Ee;function Ke(e,r,n,a,t){return e===r?!0:e==null||r==null||!be(e)&&!be(r)?e!==e&&r!==r:Dn(e,r,n,a,Ke,t)}var te=Ke,Gn=te;function Kn(e,r){return Gn(e,r)}var zn=Kn;/**
*/function jr(e,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(e[n],n,e))return!0;return!1}var Yr=jr,Jr=Hr,Qr=Yr,Vr=Wr,kr=1,en=2;function rn(e,r,n,a,t,i){var s=n&kr,o=e.length,l=r.length;if(o!=l&&!(s&&l>o))return!1;var u=i.get(e),c=i.get(r);if(u&&c)return u==r&&c==e;var f=-1,v=!0,p=n&en?new Jr:void 0;for(i.set(e,r),i.set(r,e);++f<o;){var g=e[f],h=r[f];if(a)var b=s?a(h,g,f,r,e,i):a(g,h,f,e,r,i);if(b!==void 0){if(b)continue;v=!1;break}if(p){if(!Qr(r,function(C,w){if(!Vr(p,w)&&(g===C||t(g,C,n,a,i)))return p.push(w)})){v=!1;break}}else if(!(g===h||t(g,h,n,a,i))){v=!1;break}}return i.delete(e),i.delete(r),v}var ze=rn;function nn(e){var r=-1,n=Array(e.size);return e.forEach(function(a,t){n[++r]=[t,a]}),n}var an=nn,ce=or,fe=cr,tn=fr,sn=ze,on=an,ln=Zr,un=1,cn=2,fn="[object Boolean]",vn="[object Date]",dn="[object Error]",gn="[object Map]",hn="[object Number]",mn="[object RegExp]",yn="[object Set]",pn="[object String]",_n="[object Symbol]",bn="[object ArrayBuffer]",Cn="[object DataView]",ve=ce?ce.prototype:void 0,Z=ve?ve.valueOf:void 0;function wn(e,r,n,a,t,i,s){switch(n){case Cn:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case bn:return!(e.byteLength!=r.byteLength||!i(new fe(e),new fe(r)));case fn:case vn:case hn:return tn(+e,+r);case dn:return e.name==r.name&&e.message==r.message;case mn:case pn:return e==r+"";case gn:var o=on;case yn:var l=a&un;if(o||(o=ln),e.size!=r.size&&!l)return!1;var u=s.get(e);if(u)return u==r;a|=cn,s.set(e,r);var c=sn(o(e),o(r),a,t,i,s);return s.delete(e),c;case _n:if(Z)return Z.call(e)==Z.call(r)}return!1}var An=wn,de=vr,On=1,Sn=Object.prototype,$n=Sn.hasOwnProperty;function Pn(e,r,n,a,t,i){var s=n&On,o=de(e),l=o.length,u=de(r),c=u.length;if(l!=c&&!s)return!1;for(var f=l;f--;){var v=o[f];if(!(s?v in r:$n.call(r,v)))return!1}var p=i.get(e),g=i.get(r);if(p&&g)return p==r&&g==e;var h=!0;i.set(e,r),i.set(r,e);for(var b=s;++f<l;){v=o[f];var C=e[v],w=r[v];if(a)var O=s?a(w,C,v,r,e,i):a(C,w,v,e,r,i);if(!(O===void 0?C===w||t(C,w,n,a,i):O)){h=!1;break}b||(b=v=="constructor")}if(h&&!b){var P=e.constructor,S=r.constructor;P!=S&&"constructor"in e&&"constructor"in r&&!(typeof P=="function"&&P instanceof P&&typeof S=="function"&&S instanceof S)&&(h=!1)}return i.delete(e),i.delete(r),h}var En=Pn,j=Te,Tn=ze,xn=An,In=En,ge=lr,he=z,me=sr.exports,Ln=ur,Mn=1,ye="[object Arguments]",pe="[object Array]",K="[object Object]",Fn=Object.prototype,_e=Fn.hasOwnProperty;function Nn(e,r,n,a,t,i){var s=he(e),o=he(r),l=s?pe:ge(e),u=o?pe:ge(r);l=l==ye?K:l,u=u==ye?K:u;var c=l==K,f=u==K,v=l==u;if(v&&me(e)){if(!me(r))return!1;s=!0,c=!1}if(v&&!c)return i||(i=new j),s||Ln(e)?Tn(e,r,n,a,t,i):xn(e,r,l,n,a,t,i);if(!(n&Mn)){var p=c&&_e.call(e,"__wrapped__"),g=f&&_e.call(r,"__wrapped__");if(p||g){var h=p?e.value():e,b=g?r.value():r;return i||(i=new j),t(h,b,n,a,i)}}return v?(i||(i=new j),In(e,r,n,a,t,i)):!1}var Rn=Nn,Dn=Rn,be=Ee;function Ge(e,r,n,a,t){return e===r?!0:e==null||r==null||!be(e)&&!be(r)?e!==e&&r!==r:Dn(e,r,n,a,Ge,t)}var te=Ge,zn=te;function Gn(e,r){return zn(e,r)}var Kn=Gn;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var qn=G,Bn=xe,Hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Un=/^\w*$/;function Wn(e,r){if(qn(e))return!1;var n=N(e);return n=="number"||n=="symbol"||n=="boolean"||e==null||Bn(e)?!0:Un.test(e)||!Hn.test(e)||r!=null&&e in Object(r)}var ie=Wn,ze=Pe,Xn="Expected a function";function se(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Xn);var n=function a(){var t=arguments,i=r?r.apply(this,t):t[0],s=a.cache;if(s.has(i))return s.get(i);var o=e.apply(this,t);return a.cache=s.set(i,o)||s,o};return n.cache=new(se.Cache||ze),n}se.Cache=ze;var Zn=se,Yn=Zn,jn=500;function Jn(e){var r=Yn(e,function(a){return n.size===jn&&n.clear(),a}),n=r.cache;return r}var Qn=Jn,Vn=Qn,kn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ea=/\\(\\)?/g,ra=Vn(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(kn,function(n,a,t,i){r.push(t?i.replace(ea,"$1"):a||n)}),r}),na=ra,aa=G,ta=ie,ia=na,sa=dr;function oa(e,r){return aa(e)?e:ta(e,r)?[e]:ia(sa(e))}var qe=oa,la=xe,ua=1/0;function ca(e){if(typeof e=="string"||la(e))return e;var r=e+"";return r=="0"&&1/e==-ua?"-0":r}var W=ca,fa=qe,va=W;function da(e,r){r=fa(r,e);for(var n=0,a=r.length;e!=null&&n<a;)e=e[va(r[n++])];return n&&n==a?e:void 0}var Be=da;/**
*/var qn=z,Bn=xe,Hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Un=/^\w*$/;function Wn(e,r){if(qn(e))return!1;var n=N(e);return n=="number"||n=="symbol"||n=="boolean"||e==null||Bn(e)?!0:Un.test(e)||!Hn.test(e)||r!=null&&e in Object(r)}var ie=Wn,Ke=Pe,Xn="Expected a function";function se(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Xn);var n=function a(){var t=arguments,i=r?r.apply(this,t):t[0],s=a.cache;if(s.has(i))return s.get(i);var o=e.apply(this,t);return a.cache=s.set(i,o)||s,o};return n.cache=new(se.Cache||Ke),n}se.Cache=Ke;var Zn=se,jn=Zn,Yn=500;function Jn(e){var r=jn(e,function(a){return n.size===Yn&&n.clear(),a}),n=r.cache;return r}var Qn=Jn,Vn=Qn,kn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ea=/\\(\\)?/g,ra=Vn(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(kn,function(n,a,t,i){r.push(t?i.replace(ea,"$1"):a||n)}),r}),na=ra,aa=z,ta=ie,ia=na,sa=dr;function oa(e,r){return aa(e)?e:ta(e,r)?[e]:ia(sa(e))}var qe=oa,la=xe,ua=1/0;function ca(e){if(typeof e=="string"||la(e))return e;var r=e+"";return r=="0"&&1/e==-ua?"-0":r}var W=ca,fa=qe,va=W;function da(e,r){r=fa(r,e);for(var n=0,a=r.length;e!=null&&n<a;)e=e[va(r[n++])];return n&&n==a?e:void 0}var Be=da;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
@ -35,7 +35,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function ya(e,r){return e!=null&&r in Object(e)}var pa=ya,_a=qe,ba=gr,Ca=G,wa=hr,Aa=mr,Sa=W;function Oa(e,r,n){r=_a(r,e);for(var a=-1,t=r.length,i=!1;++a<t;){var s=Sa(r[a]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++a!=t?i:(t=e==null?0:e.length,!!t&&Aa(t)&&wa(s,t)&&(Ca(e)||ba(e)))}var $a=Oa,Pa=pa,Ea=$a;function Ta(e,r){return e!=null&&Ea(e,r,Pa)}var xa=Ta;/**
*/function ya(e,r){return e!=null&&r in Object(e)}var pa=ya,_a=qe,ba=gr,Ca=z,wa=hr,Aa=mr,Oa=W;function Sa(e,r,n){r=_a(r,e);for(var a=-1,t=r.length,i=!1;++a<t;){var s=Oa(r[a]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++a!=t?i:(t=e==null?0:e.length,!!t&&Aa(t)&&wa(s,t)&&(Ca(e)||ba(e)))}var $a=Sa,Pa=pa,Ea=$a;function Ta(e,r){return e!=null&&Ea(e,r,Pa)}var xa=Ta;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
@ -52,7 +52,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Da=yr,Ga=Ee,Ka="[object Number]";function za(e){return typeof e=="number"||Ga(e)&&Da(e)==Ka}var qa=za;/**
*/var Da=yr,za=Ee,Ga="[object Number]";function Ka(e){return typeof e=="number"||za(e)&&Da(e)==Ga}var qa=Ka;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
@ -68,11 +68,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Ua=ne({name:"TLoadingGradient",setup:function(){var r=y();return ae(function(){var n=Sr().refs.circle;Or(function(){Ba(n)})}),{classPrefix:r}},render:function(){var r=this.classPrefix,n="".concat(r,"-loading__gradient"),a=[n,"".concat(r,"-icon-loading")];return m("svg",{class:a,viewBox:"0 0 12 12",version:"1.1",width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg"},[m("foreignObject",{x:"0",y:"0",width:"12",height:"12"},[m("div",{class:"".concat(n,"-conic"),ref:"circle"},null)])])}});/**
*/var Ua=ne({name:"TLoadingGradient",setup:function(){var r=y();return ae(function(){var n=Or().refs.circle;Sr(function(){Ba(n)})}),{classPrefix:r}},render:function(){var r=this.classPrefix,n="".concat(r,"-loading__gradient"),a=[n,"".concat(r,"-icon-loading")];return m("svg",{class:a,viewBox:"0 0 12 12",version:"1.1",width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg"},[m("foreignObject",{x:"0",y:"0",width:"12",height:"12"},[m("div",{class:"".concat(n,"-conic"),ref:"circle"},null)])])}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var oe={exports:{}},M={exports:{}};(function(){var e,r,n,a,t,i;typeof performance<"u"&&performance!==null&&performance.now?M.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(M.exports=function(){return(e()-t)/1e6},r=process.hrtime,e=function(){var o;return o=r(),o[0]*1e9+o[1]},a=e(),i=process.uptime()*1e9,t=a-i):Date.now?(M.exports=function(){return Date.now()-n},n=Date.now()):(M.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(Le);var Wa=M.exports,A=typeof window>"u"?Le:window,B=["moz","webkit"],T="AnimationFrame",x=A["request"+T],D=A["cancel"+T]||A["cancelRequest"+T];for(var L=0;!x&&L<B.length;L++)x=A[B[L]+"Request"+T],D=A[B[L]+"Cancel"+T]||A[B[L]+"CancelRequest"+T];if(!x||!D){var j=0,Ae=0,$=[],Xa=1e3/60;x=function(r){if($.length===0){var n=Wa(),a=Math.max(0,Xa-(n-j));j=a+n,setTimeout(function(){var t=$.slice(0);$.length=0;for(var i=function(){if(!t[s].cancelled)try{t[s].callback(j)}catch(l){setTimeout(function(){throw l},0)}},s=0;s<t.length;s++)i()},Math.round(a))}return $.push({handle:++Ae,callback:r,cancelled:!1}),Ae},D=function(r){for(var n=0;n<$.length;n++)$[n].handle===r&&($[n].cancelled=!0)}}oe.exports=function(e){return x.call(A,e)};oe.exports.cancel=function(){D.apply(A,arguments)};oe.exports.polyfill=function(e){e||(e=A),e.requestAnimationFrame=x,e.cancelAnimationFrame=D};var Ue=typeof window>"u",Za=function(r){return(r||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},Ya=function(){return!Ue&&document.addEventListener?function(e,r,n,a){e&&r&&n&&e.addEventListener(r,n,a)}:function(e,r,n){e&&r&&n&&e.attachEvent("on".concat(r),n)}}(),ja=function(){return!Ue&&document.removeEventListener?function(e,r,n,a){e&&r&&e.removeEventListener(r,n,a)}:function(e,r,n){e&&r&&e.detachEvent("on".concat(r),n)}}();function ui(e,r,n,a){var t=R(n)?n:n.handleEvent,i=function s(o){t(o),ja(e,r,s,a)};Ya(e,r,i,a)}function We(e,r){if(!e||!r)return!1;if(r.indexOf(" ")!==-1)throw new Error("className should not contain space.");return e.classList?e.classList.contains(r):" ".concat(e.className," ").indexOf(" ".concat(r," "))>-1}function V(e,r){if(!!e){for(var n=e.className,a=(r||"").split(" "),t=0,i=a.length;t<i;t++){var s=a[t];!s||(e.classList?e.classList.add(s):We(e,s)||(n+=" ".concat(s)))}e.classList||(e.className=n)}}function k(e,r){if(!(!e||!r)){for(var n=r.split(" "),a=" ".concat(e.className," "),t=0,i=n.length;t<i;t++){var s=n[t];!s||(e.classList?e.classList.remove(s):We(e,s)&&(a=a.replace(" ".concat(s," ")," ")))}e.classList||(e.className=Za(a))}}var Xe=function(r,n){var a=R(r)?r(n):r;return a?Me(a)?document.querySelector(a):a instanceof HTMLElement?a:document.body:document.body},Ja=function(){},ci=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"body";return Me(r)?document.querySelector(r):R(r)?r():r},fi=function(r){var n=r.clientWidth,a=n===void 0?0:n,t=r.scrollWidth,i=t===void 0?0:t;return i>a},vi=function(r){if(!(r instanceof HTMLFormElement))throw new Error("target must be HTMLFormElement");var n=document.createElement("input");n.type="submit",n.hidden=!0,r.appendChild(n),n.click(),r.removeChild(n)};/**
*/var oe={exports:{}},M={exports:{}};(function(){var e,r,n,a,t,i;typeof performance<"u"&&performance!==null&&performance.now?M.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(M.exports=function(){return(e()-t)/1e6},r=process.hrtime,e=function(){var o;return o=r(),o[0]*1e9+o[1]},a=e(),i=process.uptime()*1e9,t=a-i):Date.now?(M.exports=function(){return Date.now()-n},n=Date.now()):(M.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(Le);var Wa=M.exports,A=typeof window>"u"?Le:window,B=["moz","webkit"],T="AnimationFrame",x=A["request"+T],D=A["cancel"+T]||A["cancelRequest"+T];for(var L=0;!x&&L<B.length;L++)x=A[B[L]+"Request"+T],D=A[B[L]+"Cancel"+T]||A[B[L]+"CancelRequest"+T];if(!x||!D){var Y=0,Ae=0,$=[],Xa=1e3/60;x=function(r){if($.length===0){var n=Wa(),a=Math.max(0,Xa-(n-Y));Y=a+n,setTimeout(function(){var t=$.slice(0);$.length=0;for(var i=function(){if(!t[s].cancelled)try{t[s].callback(Y)}catch(l){setTimeout(function(){throw l},0)}},s=0;s<t.length;s++)i()},Math.round(a))}return $.push({handle:++Ae,callback:r,cancelled:!1}),Ae},D=function(r){for(var n=0;n<$.length;n++)$[n].handle===r&&($[n].cancelled=!0)}}oe.exports=function(e){return x.call(A,e)};oe.exports.cancel=function(){D.apply(A,arguments)};oe.exports.polyfill=function(e){e||(e=A),e.requestAnimationFrame=x,e.cancelAnimationFrame=D};var Ue=typeof window>"u",Za=function(r){return(r||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},ja=function(){return!Ue&&document.addEventListener?function(e,r,n,a){e&&r&&n&&e.addEventListener(r,n,a)}:function(e,r,n){e&&r&&n&&e.attachEvent("on".concat(r),n)}}(),Ya=function(){return!Ue&&document.removeEventListener?function(e,r,n,a){e&&r&&e.removeEventListener(r,n,a)}:function(e,r,n){e&&r&&e.detachEvent("on".concat(r),n)}}();function ui(e,r,n,a){var t=R(n)?n:n.handleEvent,i=function s(o){t(o),Ya(e,r,s,a)};ja(e,r,i,a)}function We(e,r){if(!e||!r)return!1;if(r.indexOf(" ")!==-1)throw new Error("className should not contain space.");return e.classList?e.classList.contains(r):" ".concat(e.className," ").indexOf(" ".concat(r," "))>-1}function V(e,r){if(!!e){for(var n=e.className,a=(r||"").split(" "),t=0,i=a.length;t<i;t++){var s=a[t];!s||(e.classList?e.classList.add(s):We(e,s)||(n+=" ".concat(s)))}e.classList||(e.className=n)}}function k(e,r){if(!(!e||!r)){for(var n=r.split(" "),a=" ".concat(e.className," "),t=0,i=n.length;t<i;t++){var s=n[t];!s||(e.classList?e.classList.remove(s):We(e,s)&&(a=a.replace(" ".concat(s," ")," ")))}e.classList||(e.className=Za(a))}}var Xe=function(r,n){var a=R(r)?r(n):r;return a?Me(a)?document.querySelector(a):a instanceof HTMLElement?a:document.body:document.body},Ja=function(){},ci=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"body";return Me(r)?document.querySelector(r):R(r)?r():r},fi=function(r){var n=r.clientWidth,a=n===void 0?0:n,t=r.scrollWidth,i=t===void 0?0:t;return i>a},vi=function(r){if(!(r instanceof HTMLFormElement))throw new Error("target must be HTMLFormElement");var n=document.createElement("input");n.type="submit",n.hidden=!0,r.appendChild(n),n.click(),r.removeChild(n)};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
@ -84,16 +84,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var ka=function(){return{name:y("loading"),centerClass:y("loading--center"),fullscreenClass:y("loading__fullscreen"),lockClass:y("loading--lock"),overlayClass:y("loading__overlay"),relativeClass:y("loading__parent"),fullClass:y("loading--full"),inheritColorClass:y("loading--inherit-color")}},ee=ne({name:"TLoading",inheritAttrs:!1,props:Qa,setup:function(r,n){var a=n.slots,t=H(!1),i=ka(),s=i.name,o=i.centerClass,l=i.fullscreenClass,u=i.lockClass,c=i.overlayClass,f=i.relativeClass,v=i.fullClass,p=i.inheritColorClass,g=y(),h=Ha(),b=h.SIZE,C=function(){t.value=!1;var I=setTimeout(function(){t.value=!0,clearTimeout(I)},r.delay)},w=Va(function(){return r.attach}),S=d(function(){return Boolean(!r.delay||r.delay&&t.value)}),P=d(function(){var _={};return r.zIndex!==void 0&&(_.zIndex=r.zIndex),["small","medium","large"].includes(r.size)||(_["font-size"]=r.size),_}),O=d(function(){return Boolean(r.default||a.default||r.content||a.content)}),X=d(function(){return r.preventScrollThrough&&r.fullscreen}),Qe=d(function(){return Boolean(r.text||a.text)}),Ve=d(function(){return O.value&&r.loading&&S.value}),ke=d(function(){return r.fullscreen&&r.loading&&S.value}),er=d(function(){return r.attach&&r.loading&&S.value}),rr=d(function(){return r.attach&&r.loading&&S.value}),nr=d(function(){var _=[o.value,b.value[r.size],F({},p.value,r.inheritColor)],I=[s.value,l.value,o.value,c.value];return{baseClasses:_,attachClasses:_.concat([s.value,v.value,F({},c.value,r.showOverlay)]),withContentClasses:_.concat([s.value,v.value,F({},c.value,r.showOverlay)]),fullScreenClasses:I,normalClasses:_.concat([s.value])}}),ar=$r(r),tr=ar.loading;return Re([tr],function(_){var I=Ra(_,1),ir=I[0];ir?(C(),X.value&&V(document.body,u.value)):X.value&&k(document.body,u.value)}),ae(function(){r.delay&&C()}),{classPrefix:g,relativeClass:f,delayShowLoading:t,styles:P,showText:Qe,hasContent:O,classes:nr,lockFullscreen:X,showWrapLoading:Ve,showNormalLoading:er,showFullScreenLoading:ke,showAttachedLoading:rr,teleportElement:w}},render:function(){var r=this,n=this.classes,a=n.fullScreenClasses,t=n.baseClasses,i=n.withContentClasses,s=n.attachClasses,o=n.normalClasses,l=m(Ua,{size:this.size},null),u=this.loading&&le(this,"indicator",l),c=this.showText&&m("div",{class:"".concat(this.classPrefix,"-loading__text")},[le(this,"text")]);return this.fullscreen?!this.showFullScreenLoading||!this.loading?null:m(ue,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[m("div",K({class:a,style:r.styles},r.$attrs),[m("div",{class:t},[u,c])])]}}):this.hasContent?m("div",K({class:this.relativeClass},this.$attrs),[pr(this,"default","content"),this.showWrapLoading&&m("div",{class:i,style:this.styles},[u,c])]):this.attach?!this.showAttachedLoading||!this.loading?null:m(ue,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[m("div",K({class:s,style:r.styles},r.$attrs),[u,c])]}}):this.loading?m("div",K({class:o,style:this.styles},this.$attrs),[u,c]):null}});/**
*/var ka=function(){return{name:y("loading"),centerClass:y("loading--center"),fullscreenClass:y("loading__fullscreen"),lockClass:y("loading--lock"),overlayClass:y("loading__overlay"),relativeClass:y("loading__parent"),fullClass:y("loading--full"),inheritColorClass:y("loading--inherit-color")}},ee=ne({name:"TLoading",inheritAttrs:!1,props:Qa,setup:function(r,n){var a=n.slots,t=H(!1),i=ka(),s=i.name,o=i.centerClass,l=i.fullscreenClass,u=i.lockClass,c=i.overlayClass,f=i.relativeClass,v=i.fullClass,p=i.inheritColorClass,g=y(),h=Ha(),b=h.SIZE,C=function(){t.value=!1;var I=setTimeout(function(){t.value=!0,clearTimeout(I)},r.delay)},w=Va(function(){return r.attach}),O=d(function(){return Boolean(!r.delay||r.delay&&t.value)}),P=d(function(){var _={};return r.zIndex!==void 0&&(_.zIndex=r.zIndex),["small","medium","large"].includes(r.size)||(_["font-size"]=r.size),_}),S=d(function(){return Boolean(r.default||a.default||r.content||a.content)}),X=d(function(){return r.preventScrollThrough&&r.fullscreen}),Qe=d(function(){return Boolean(r.text||a.text)}),Ve=d(function(){return S.value&&r.loading&&O.value}),ke=d(function(){return r.fullscreen&&r.loading&&O.value}),er=d(function(){return r.attach&&r.loading&&O.value}),rr=d(function(){return r.attach&&r.loading&&O.value}),nr=d(function(){var _=[o.value,b.value[r.size],F({},p.value,r.inheritColor)],I=[s.value,l.value,o.value,c.value];return{baseClasses:_,attachClasses:_.concat([s.value,v.value,F({},c.value,r.showOverlay)]),withContentClasses:_.concat([s.value,v.value,F({},c.value,r.showOverlay)]),fullScreenClasses:I,normalClasses:_.concat([s.value])}}),ar=$r(r),tr=ar.loading;return Re([tr],function(_){var I=Ra(_,1),ir=I[0];ir?(C(),X.value&&V(document.body,u.value)):X.value&&k(document.body,u.value)}),ae(function(){r.delay&&C()}),{classPrefix:g,relativeClass:f,delayShowLoading:t,styles:P,showText:Qe,hasContent:S,classes:nr,lockFullscreen:X,showWrapLoading:Ve,showNormalLoading:er,showFullScreenLoading:ke,showAttachedLoading:rr,teleportElement:w}},render:function(){var r=this,n=this.classes,a=n.fullScreenClasses,t=n.baseClasses,i=n.withContentClasses,s=n.attachClasses,o=n.normalClasses,l=m(Ua,{size:this.size},null),u=this.loading&&le(this,"indicator",l),c=this.showText&&m("div",{class:"".concat(this.classPrefix,"-loading__text")},[le(this,"text")]);return this.fullscreen?!this.showFullScreenLoading||!this.loading?null:m(ue,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[m("div",G({class:a,style:r.styles},r.$attrs),[m("div",{class:t},[u,c])])]}}):this.hasContent?m("div",G({class:this.relativeClass},this.$attrs),[pr(this,"default","content"),this.showWrapLoading&&m("div",{class:i,style:this.styles},[u,c])]):this.attach?!this.showAttachedLoading||!this.loading?null:m(ue,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[m("div",G({class:s,style:r.styles},r.$attrs),[u,c])]}}):this.loading?m("div",G({class:o,style:this.styles},this.$attrs),[u,c]):null}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function Se(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function et(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Se(Object(n),!0).forEach(function(a){F(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}var E=null;function rt(e){var r=_r({fullscreen:!1,attach:"body",loading:!0,preventScrollThrough:!0},e);return r}function Oe(e){var r=rt(e);if(r.fullscreen&&E)return E;var n=ne({setup:function(){var f=Pr(r);return{loadingOptions:f}},render:function(){return Er(ee,et({},this.loadingOptions))}}),a=Xe(r.fullscreen?"body":r.attach),t=Tr(n),i=t.mount(document.createElement("div")),s=y("loading__parent--relative").value,o=y("loading--lock"),l=r.preventScrollThrough&&r.fullscreen;l&&V(document.body,o.value),a?V(a,s):console.error("attach is not exist");var u={hide:function(){i.loading=!1,k(a,s),k(document.body,o.value),t.unmount()}};return u}function Ze(e){if(e===!0)return E=Oe({fullscreen:!0,loading:!0,attach:"body",preventScrollThrough:!0}),E;if(e===!1){var r;(r=E)===null||r===void 0||r.hide(),E=null;return}return Oe(e)}var Ye=Ze;Ye.install=function(e){e.config.globalProperties.$loading=Ze};/**
*/function Oe(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function et(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Oe(Object(n),!0).forEach(function(a){F(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}var E=null;function rt(e){var r=_r({fullscreen:!1,attach:"body",loading:!0,preventScrollThrough:!0},e);return r}function Se(e){var r=rt(e);if(r.fullscreen&&E)return E;var n=ne({setup:function(){var f=Pr(r);return{loadingOptions:f}},render:function(){return Er(ee,et({},this.loadingOptions))}}),a=Xe(r.fullscreen?"body":r.attach),t=Tr(n),i=t.mount(document.createElement("div")),s=y("loading__parent--relative").value,o=y("loading--lock"),l=r.preventScrollThrough&&r.fullscreen;l&&V(document.body,o.value),a?V(a,s):console.error("attach is not exist");var u={hide:function(){i.loading=!1,k(a,s),k(document.body,o.value),t.unmount()}};return u}function Ze(e){if(e===!0)return E=Se({fullscreen:!0,loading:!0,attach:"body",preventScrollThrough:!0}),E;if(e===!1){var r;(r=E)===null||r===void 0||r.hide(),E=null;return}return Se(e)}var je=Ze;je.install=function(e){e.config.globalProperties.$loading=Ze};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var nt=br,at=Ne;function tt(e,r){return e&&nt(e,r,at)}var it=tt,st=Te,ot=te,lt=1,ut=2;function ct(e,r,n,a){var t=n.length,i=t,s=!a;if(e==null)return!i;for(e=Object(e);t--;){var o=n[t];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++t<i;){o=n[t];var l=o[0],u=e[l],c=o[1];if(s&&o[2]){if(u===void 0&&!(l in e))return!1}else{var f=new st;if(a)var v=a(u,c,l,e,r,f);if(!(v===void 0?ot(c,u,lt|ut,a,f):v))return!1}}return!0}var ft=ct,vt=Fe;function dt(e){return e===e&&!vt(e)}var je=dt,gt=je,ht=Ne;function mt(e){for(var r=ht(e),n=r.length;n--;){var a=r[n],t=e[a];r[n]=[a,t,gt(t)]}return r}var yt=mt;function pt(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}var Je=pt,_t=ft,bt=yt,Ct=Je;function wt(e){var r=bt(e);return r.length==1&&r[0][2]?Ct(r[0][0],r[0][1]):function(n){return n===e||_t(n,e,r)}}var At=wt,St=te,Ot=ma,$t=xa,Pt=ie,Et=je,Tt=Je,xt=W,It=1,Lt=2;function Mt(e,r){return Pt(e)&&Et(r)?Tt(xt(e),r):function(n){var a=Ot(n,e);return a===void 0&&a===r?$t(n,e):St(r,a,It|Lt)}}var Ft=Mt,Nt=Be;function Rt(e){return function(r){return Nt(r,e)}}var Dt=Rt,Gt=La,Kt=Dt,zt=ie,qt=W;function Bt(e){return zt(e)?Gt(qt(e)):Kt(e)}var Ht=Bt,Ut=At,Wt=Ft,Xt=Cr,Zt=G,Yt=Ht;function jt(e){return typeof e=="function"?e:e==null?Xt:N(e)=="object"?Zt(e)?Wt(e[0],e[1]):Ut(e):Yt(e)}var Jt=jt,Qt=wr,Vt=it,kt=Jt;function ei(e,r){var n={};return r=kt(r),Vt(e,function(a,t,i){Qt(n,r(a,t,i),a)}),n}var ri=ei,re=Symbol("TdLoading"),$e=function(r,n){var a=n.modifiers,t=a.fullscreen,i=a.inheritColor,s={attach:function(){return r},fullscreen:t!=null?t:!1,inheritColor:i!=null?i:!1,loading:n.value};Fe(n.value)&&ri(n.value,function(o,l){s[l]=o}),r[re]={options:s,instance:Ye(s)}},ni={mounted:function(r,n){n.value&&$e(r,n)},updated:function(r,n){var a=r[re],t=n.value,i=n.oldValue;if(!zn(t,i)){var s,o=(s=t==null?void 0:t.loading)!==null&&s!==void 0?s:t;o?$e(r,n):a==null||a.instance.hide()}},unmounted:function(r){var n;(n=r[re])===null||n===void 0||n.instance.hide()}};/**
*/var nt=br,at=Ne;function tt(e,r){return e&&nt(e,r,at)}var it=tt,st=Te,ot=te,lt=1,ut=2;function ct(e,r,n,a){var t=n.length,i=t,s=!a;if(e==null)return!i;for(e=Object(e);t--;){var o=n[t];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++t<i;){o=n[t];var l=o[0],u=e[l],c=o[1];if(s&&o[2]){if(u===void 0&&!(l in e))return!1}else{var f=new st;if(a)var v=a(u,c,l,e,r,f);if(!(v===void 0?ot(c,u,lt|ut,a,f):v))return!1}}return!0}var ft=ct,vt=Fe;function dt(e){return e===e&&!vt(e)}var Ye=dt,gt=Ye,ht=Ne;function mt(e){for(var r=ht(e),n=r.length;n--;){var a=r[n],t=e[a];r[n]=[a,t,gt(t)]}return r}var yt=mt;function pt(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}var Je=pt,_t=ft,bt=yt,Ct=Je;function wt(e){var r=bt(e);return r.length==1&&r[0][2]?Ct(r[0][0],r[0][1]):function(n){return n===e||_t(n,e,r)}}var At=wt,Ot=te,St=ma,$t=xa,Pt=ie,Et=Ye,Tt=Je,xt=W,It=1,Lt=2;function Mt(e,r){return Pt(e)&&Et(r)?Tt(xt(e),r):function(n){var a=St(n,e);return a===void 0&&a===r?$t(n,e):Ot(r,a,It|Lt)}}var Ft=Mt,Nt=Be;function Rt(e){return function(r){return Nt(r,e)}}var Dt=Rt,zt=La,Gt=Dt,Kt=ie,qt=W;function Bt(e){return Kt(e)?zt(qt(e)):Gt(e)}var Ht=Bt,Ut=At,Wt=Ft,Xt=Cr,Zt=z,jt=Ht;function Yt(e){return typeof e=="function"?e:e==null?Xt:N(e)=="object"?Zt(e)?Wt(e[0],e[1]):Ut(e):jt(e)}var Jt=Yt,Qt=wr,Vt=it,kt=Jt;function ei(e,r){var n={};return r=kt(r),Vt(e,function(a,t,i){Qt(n,r(a,t,i),a)}),n}var ri=ei,re=Symbol("TdLoading"),$e=function(r,n){var a=n.modifiers,t=a.fullscreen,i=a.inheritColor,s={attach:function(){return r},fullscreen:t!=null?t:!1,inheritColor:i!=null?i:!1,loading:n.value};Fe(n.value)&&ri(n.value,function(o,l){s[l]=o}),r[re]={options:s,instance:je(s)}},ni={mounted:function(r,n){n.value&&$e(r,n)},updated:function(r,n){var a=r[re],t=n.value,i=n.oldValue;if(!Kn(t,i)){var s,o=(s=t==null?void 0:t.loading)!==null&&s!==void 0?s:t;o?$e(r,n):a==null||a.instance.hide()}},unmounted:function(r){var n;(n=r[re])===null||n===void 0||n.instance.hide()}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var di=Ar(ee,ee.name,{name:"loading",comp:ni});export{Ja as A,ui as B,Ce as C,xa as D,Ma as E,Ir as F,De as G,Na as H,ii as I,di as L,Ra as _,si as a,Ha as b,F as c,qe as d,W as e,Q as f,oi as g,ma as h,qa as i,He as j,Va as k,li as l,Be as m,ci as n,ja as o,Ya as p,Hr as q,vi as r,Wr as s,Fr as t,y as u,Xe as v,fi as w,Zr as x,Ue as y,We as z};
*/var di=Ar(ee,ee.name,{name:"loading",comp:ni});export{Ja as A,ui as B,Ce as C,xa as D,Ma as E,Ir as F,De as G,Na as H,ii as I,di as L,Ra as _,si as a,Ha as b,F as c,qe as d,W as e,Q as f,oi as g,ma as h,qa as i,Be as j,He as k,li as l,Va as m,ci as n,Ya as o,ja as p,Hr as q,vi as r,Wr as s,Fr as t,y as u,Xe as v,fi as w,Zr as x,Ue as y,We as z};

BIN
assets/index.7a815b78.js.gz Normal file

Binary file not shown.

Binary file not shown.

1
assets/index.83c113a6.js Normal file

File diff suppressed because one or more lines are too long

BIN
assets/index.83c113a6.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
assets/index.95abd92e.js.gz Normal file

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
assets/index.9c5081a0.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

BIN
assets/index.b3731552.js.gz Normal file

Binary file not shown.

View File

@ -1,13 +1,13 @@
import{d as R,c as t,aI as a,aU as V}from"./arco.f43727df.js";import{u,b as W,L as X}from"./index.3c6542a6.js";import{x as Z,F as U,y as k}from"./index.28b8c38d.js";/**
import{d as R,c as t,aI as a,aU as V}from"./arco.f43727df.js";import{u,b as W,L as X}from"./index.7a815b78.js";import{A as Z,K,B as U}from"./index.b3731552.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var q={actions:{type:[String,Function]},avatar:{type:[String,Function]},bordered:{type:Boolean,default:!0},content:{type:[String,Function]},cover:{type:[String,Function]},default:{type:[String,Function]},description:{type:[String,Function]},footer:{type:[String,Function]},header:{type:[String,Function]},headerBordered:Boolean,hoverShadow:Boolean,loading:{type:[Boolean,Function],default:!1},loadingProps:{type:Object},shadow:Boolean,size:{type:String,default:"medium",validator:function(e){return e?["medium","small"].includes(e):!0}},status:{type:String,default:""},subtitle:{type:[String,Function]},theme:{type:String,default:"normal",validator:function(e){return e?["normal","poster1","poster2"].includes(e):!0}},title:{type:[String,Function]}};/**
*/var k={actions:{type:[String,Function]},avatar:{type:[String,Function]},bordered:{type:Boolean,default:!0},content:{type:[String,Function]},cover:{type:[String,Function]},default:{type:[String,Function]},description:{type:[String,Function]},footer:{type:[String,Function]},header:{type:[String,Function]},headerBordered:Boolean,hoverShadow:Boolean,loading:{type:[Boolean,Function],default:!1},loadingProps:{type:Object},shadow:Boolean,size:{type:String,default:"medium",validator:function(e){return e?["medium","small"].includes(e):!0}},status:{type:String,default:""},subtitle:{type:[String,Function]},theme:{type:String,default:"normal",validator:function(e){return e?["normal","poster1","poster2"].includes(e):!0}},title:{type:[String,Function]}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function G(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!V(i)}var K=R({name:"TCard",props:q,setup:function(e,y){var o=y.slots,n=Z(),l=u("card"),w=W(),b=w.SIZE,p=t(function(){var r=[l.value];return e.size==="small"&&r.push("".concat(b.value[e.size])),e.bordered&&r.push("".concat(l.value,"--bordered")),e.shadow&&r.push("".concat(l.value,"--shadow")),e.hoverShadow&&r.push("".concat(l.value,"--shadow-hover")),r}),d=t(function(){var r=["".concat(l.value,"__header")];return e.headerBordered?r.concat("".concat(l.value,"__title--bordered")):["".concat(l.value,"__header")]}),F=u("card__header-wrapper"),N=u("card__avatar"),B=u("card__title"),T=u("card__subtitle"),x=u("card__description"),c=u("card__actions"),O=u("card__body"),P=u("card__cover"),j=u("card__footer"),A=u("card__footer-wrapper"),v=t(function(){return e.theme==="poster2"}),f=t(function(){return e.title||o.title}),h=t(function(){return e.header||o.header}),_=t(function(){return e.subtitle||o.subtitle}),C=t(function(){return e.avatar||o.avatar}),m=t(function(){return e.description||o.description}),S=t(function(){return e.status||o.status}),s=t(function(){return e.actions||o.actions}),E=t(function(){return e.footer||o.footer}),H=t(function(){return e.cover||o.cover}),I=t(function(){return e.loading||o.loading}),z=t(function(){return e.content||o.content||e.default||o.default}),L=t(function(){return h.value||f.value||_.value||m.value||C.value||S.value&&v.value||s.value&&!v.value}),D=t(function(){return E.value||s.value&&v.value}),J=function(){return h.value?a("div",{class:d.value},[n("header")]):a("div",{class:d.value},[a("div",{class:F.value},[C.value&&a("div",{class:N.value},[n("avatar")]),a("div",null,[f.value&&a("div",{class:B.value},[n("title")]),_.value&&a("div",{class:T.value},[n("subtitle")]),m.value&&a("p",{class:x.value},[n("description")])])]),s.value&&!v.value&&a("div",{class:c.value},[n("actions")]),S.value&&a("div",{class:c.value},[n("status")])])},M=function(){var g=U(e.cover);return a("div",{class:P.value},[g?a("img",{src:e.cover},null):n("cover")])};return function(){var r=a("div",{class:p.value},[L.value?J():null,H.value?M():null,z.value&&a("div",{class:O.value},[n("default")||n("content")]),D.value&&a("div",{class:j.value},[a("div",{class:A.value},[n("footer")]),s.value&&v.value&&a("div",{class:c.value},[n("actions")])])]);return I.value?n("loading")||a(X,e.loadingProps,G(r)?r:{default:function(){return[r]}}):r}}});/**
*/function q(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!V(i)}var G=R({name:"TCard",props:k,setup:function(e,w){var o=w.slots,n=Z(),l=u("card"),y=W(),b=y.SIZE,p=t(function(){var r=[l.value];return e.size==="small"&&r.push("".concat(b.value[e.size])),e.bordered&&r.push("".concat(l.value,"--bordered")),e.shadow&&r.push("".concat(l.value,"--shadow")),e.hoverShadow&&r.push("".concat(l.value,"--shadow-hover")),r}),d=t(function(){var r=["".concat(l.value,"__header")];return e.headerBordered?r.concat("".concat(l.value,"__title--bordered")):["".concat(l.value,"__header")]}),F=u("card__header-wrapper"),N=u("card__avatar"),B=u("card__title"),T=u("card__subtitle"),A=u("card__description"),c=u("card__actions"),O=u("card__body"),P=u("card__cover"),j=u("card__footer"),x=u("card__footer-wrapper"),v=t(function(){return e.theme==="poster2"}),f=t(function(){return e.title||o.title}),h=t(function(){return e.header||o.header}),_=t(function(){return e.subtitle||o.subtitle}),C=t(function(){return e.avatar||o.avatar}),m=t(function(){return e.description||o.description}),S=t(function(){return e.status||o.status}),s=t(function(){return e.actions||o.actions}),E=t(function(){return e.footer||o.footer}),H=t(function(){return e.cover||o.cover}),I=t(function(){return e.loading||o.loading}),z=t(function(){return e.content||o.content||e.default||o.default}),L=t(function(){return h.value||f.value||_.value||m.value||C.value||S.value&&v.value||s.value&&!v.value}),D=t(function(){return E.value||s.value&&v.value}),J=function(){return h.value?a("div",{class:d.value},[n("header")]):a("div",{class:d.value},[a("div",{class:F.value},[C.value&&a("div",{class:N.value},[n("avatar")]),a("div",null,[f.value&&a("div",{class:B.value},[n("title")]),_.value&&a("div",{class:T.value},[n("subtitle")]),m.value&&a("p",{class:A.value},[n("description")])])]),s.value&&!v.value&&a("div",{class:c.value},[n("actions")]),S.value&&a("div",{class:c.value},[n("status")])])},M=function(){var g=K(e.cover);return a("div",{class:P.value},[g?a("img",{src:e.cover},null):n("cover")])};return function(){var r=a("div",{class:p.value},[L.value?J():null,H.value?M():null,z.value&&a("div",{class:O.value},[n("default")||n("content")]),D.value&&a("div",{class:j.value},[a("div",{class:x.value},[n("footer")]),s.value&&v.value&&a("div",{class:c.value},[n("actions")])])]);return I.value?n("loading")||a(X,e.loadingProps,q(r)?r:{default:function(){return[r]}}):r}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var ee=k(K);export{ee as C};
*/var ee=U(G);export{ee as C};

BIN
assets/index.b6192539.js.gz Normal file

Binary file not shown.

View File

@ -1 +1 @@
import{e as B,ar as D,_ as L}from"./index.28b8c38d.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as N,r as T,aX as H,bO as K,bH as R,C as E,D as F,aI as e,aH as r,aM as V,aN as A,u as M,a6 as O,a$ as W,ba as X,bI as j,bL as q,b7 as x,bc as z}from"./arco.f43727df.js";import{u as G}from"./loading.a1d05891.js";import{e as $,a as S,f as w,s as h,b as P,g as J}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";const Q={class:"container"},Y={name:"Chi"},Z=N({...Y,setup(oo){const o=B(),{loading:I,setLoading:C}=G(!1),t=T({logo_line1:"",logo_line2:"",mdc_audio_local:!0}),v=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await $(o.connectPort),C(!0),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let a=new Uint8Array(38);a.set(await S(o.connectPort,123680,38,(i=o.configuration)==null?void 0:i.uart),0),t.logo_line1=w(a.subarray(0,19),(f=o.configuration)==null?void 0:f.charset),t.logo_line2=w(a.subarray(19,38),(c=o.configuration)==null?void 0:c.charset)}else if(((u=o.configuration)==null?void 0:u.charset)=="gb2312"){let a=new Uint8Array(36);a.set(await S(o.connectPort,8192,36,(m=o.configuration)==null?void 0:m.uart),0),t.logo_line1=w(a.subarray(0,18),(_=o.configuration)==null?void 0:_.charset),t.logo_line2=w(a.subarray(18,36),(g=o.configuration)==null?void 0:g.charset)}else{let a=new Uint8Array(32);a.set(await S(o.connectPort,3760,32,(d=o.configuration)==null?void 0:d.uart),0),t.logo_line1=w(a.subarray(0,16),(s=o.configuration)==null?void 0:s.charset),t.logo_line2=w(a.subarray(16,32),(b=o.configuration)==null?void 0:b.charset)}parseInt(await S(o.connectPort,8189,1,(y=o.configuration)==null?void 0:y.uart))==0?t.mdc_audio_local=!1:t.mdc_audio_local=!0,C(!1)},k=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y,a,p,U;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(C(!0),await $(o.connectPort),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let l=new Uint8Array(38);l.set(h(t.logo_line1,(i=o.configuration)==null?void 0:i.charset).subarray(0,19),0),l.set(h(t.logo_line2,(f=o.configuration)==null?void 0:f.charset).subarray(0,19),19),await P(o.connectPort,123678,[18,18],2,(c=o.configuration)==null?void 0:c.uart),await P(o.connectPort,123680,l,38,(u=o.configuration)==null?void 0:u.uart)}else if(((m=o.configuration)==null?void 0:m.charset)=="gb2312"){let l=new Uint8Array(36);l.set(h(t.logo_line1,(_=o.configuration)==null?void 0:_.charset).subarray(0,18),0),l.set(h(t.logo_line2,(g=o.configuration)==null?void 0:g.charset).subarray(0,18),18),await P(o.connectPort,8228,[18,18],2,(d=o.configuration)==null?void 0:d.uart),await P(o.connectPort,8192,l,36,(s=o.configuration)==null?void 0:s.uart)}else{let l=new Uint8Array(32);l.set(h(t.logo_line1,(b=o.configuration)==null?void 0:b.charset).subarray(0,16),0),l.set(h(t.logo_line2,(y=o.configuration)==null?void 0:y.charset).subarray(0,16),16),await P(o.connectPort,3760,l,32,(a=o.configuration)==null?void 0:a.uart)}(p=o.configuration)!=null&&p.localmdc&&await P(o.connectPort,8189,new Uint8Array([t.mdc_audio_local?1:0]),1,(U=o.configuration)==null?void 0:U.uart),await J(o.connectPort),C(!1)};return(n,i)=>{const f=D,c=O,u=W,m=X,_=j,g=q,d=x,s=z,b=H,y=K,a=R;return E(),F("div",Q,[e(f,{items:[n.$t("menu.dashboard"),n.$t("menu.cps.settings")]},null,8,["items"]),e(g,{gutter:20,align:"stretch"},{default:r(()=>[e(_,{span:24},{default:r(()=>[e(a,{class:"general-card",title:n.$t("menu.cps.settings")+n.$t("global.onStart")},{default:r(()=>[e(g,{style:{"margin-bottom":"16px"}},{default:r(()=>[e(_,{span:12},{default:r(()=>[e(m,null,{default:r(()=>[e(u,{type:"primary",onClick:v},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceRead")),1)]),_:1}),e(u,{onClick:k},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),e(y,{loading:M(I),style:{width:"100%"}},{default:r(()=>[e(s,{"label-col-style":{width:"25%"},field:"logo_line1",label:n.$t("cps.line1")},{default:r(()=>[e(d,{modelValue:t.logo_line1,"onUpdate:modelValue":i[0]||(i[0]=p=>t.logo_line1=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.line2")},{default:r(()=>[e(d,{modelValue:t.logo_line2,"onUpdate:modelValue":i[1]||(i[1]=p=>t.logo_line2=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.mdclocplay")},{default:r(()=>[e(b,{modelValue:t.mdc_audio_local,"onUpdate:modelValue":i[2]||(i[2]=p=>t.mdc_audio_local=p),type:"round"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["loading"])]),_:1},8,["title"])]),_:1})]),_:1})])}}});const _o=L(Z,[["__scopeId","data-v-739b81b7"]]);export{_o as default};
import{e as B,as as D,_ as L}from"./index.b3731552.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as N,r as T,aX as H,bO as K,bH as R,C as E,D as F,aI as e,aH as r,aM as V,aN as A,u as M,a6 as O,a$ as W,ba as X,bI as j,bL as q,b7 as x,bc as z}from"./arco.f43727df.js";import{u as G}from"./loading.a1d05891.js";import{e as $,a as S,f as w,s as h,b as P,g as J}from"./serial.c741fbda.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";const Q={class:"container"},Y={name:"Chi"},Z=N({...Y,setup(oo){const o=B(),{loading:I,setLoading:C}=G(!1),t=T({logo_line1:"",logo_line2:"",mdc_audio_local:!0}),v=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(await $(o.connectPort),C(!0),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let a=new Uint8Array(38);a.set(await S(o.connectPort,123680,38,(i=o.configuration)==null?void 0:i.uart),0),t.logo_line1=w(a.subarray(0,19),(f=o.configuration)==null?void 0:f.charset),t.logo_line2=w(a.subarray(19,38),(c=o.configuration)==null?void 0:c.charset)}else if(((u=o.configuration)==null?void 0:u.charset)=="gb2312"){let a=new Uint8Array(36);a.set(await S(o.connectPort,8192,36,(m=o.configuration)==null?void 0:m.uart),0),t.logo_line1=w(a.subarray(0,18),(_=o.configuration)==null?void 0:_.charset),t.logo_line2=w(a.subarray(18,36),(g=o.configuration)==null?void 0:g.charset)}else{let a=new Uint8Array(32);a.set(await S(o.connectPort,3760,32,(d=o.configuration)==null?void 0:d.uart),0),t.logo_line1=w(a.subarray(0,16),(s=o.configuration)==null?void 0:s.charset),t.logo_line2=w(a.subarray(16,32),(b=o.configuration)==null?void 0:b.charset)}parseInt(await S(o.connectPort,8189,1,(y=o.configuration)==null?void 0:y.uart))==0?t.mdc_audio_local=!1:t.mdc_audio_local=!0,C(!1)},k=async()=>{var n,i,f,c,u,m,_,g,d,s,b,y,a,p,U;if(o.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(C(!0),await $(o.connectPort),((n=o.configuration)==null?void 0:n.charset)=="losehu"){let l=new Uint8Array(38);l.set(h(t.logo_line1,(i=o.configuration)==null?void 0:i.charset).subarray(0,19),0),l.set(h(t.logo_line2,(f=o.configuration)==null?void 0:f.charset).subarray(0,19),19),await P(o.connectPort,123678,[18,18],2,(c=o.configuration)==null?void 0:c.uart),await P(o.connectPort,123680,l,38,(u=o.configuration)==null?void 0:u.uart)}else if(((m=o.configuration)==null?void 0:m.charset)=="gb2312"){let l=new Uint8Array(36);l.set(h(t.logo_line1,(_=o.configuration)==null?void 0:_.charset).subarray(0,18),0),l.set(h(t.logo_line2,(g=o.configuration)==null?void 0:g.charset).subarray(0,18),18),await P(o.connectPort,8228,[18,18],2,(d=o.configuration)==null?void 0:d.uart),await P(o.connectPort,8192,l,36,(s=o.configuration)==null?void 0:s.uart)}else{let l=new Uint8Array(32);l.set(h(t.logo_line1,(b=o.configuration)==null?void 0:b.charset).subarray(0,16),0),l.set(h(t.logo_line2,(y=o.configuration)==null?void 0:y.charset).subarray(0,16),16),await P(o.connectPort,3760,l,32,(a=o.configuration)==null?void 0:a.uart)}(p=o.configuration)!=null&&p.localmdc&&await P(o.connectPort,8189,new Uint8Array([t.mdc_audio_local?1:0]),1,(U=o.configuration)==null?void 0:U.uart),await J(o.connectPort),C(!1)};return(n,i)=>{const f=D,c=O,u=W,m=X,_=j,g=q,d=x,s=z,b=H,y=K,a=R;return E(),F("div",Q,[e(f,{items:[n.$t("menu.dashboard"),n.$t("menu.cps.settings")]},null,8,["items"]),e(g,{gutter:20,align:"stretch"},{default:r(()=>[e(_,{span:24},{default:r(()=>[e(a,{class:"general-card",title:n.$t("menu.cps.settings")+n.$t("global.onStart")},{default:r(()=>[e(g,{style:{"margin-bottom":"16px"}},{default:r(()=>[e(_,{span:12},{default:r(()=>[e(m,null,{default:r(()=>[e(u,{type:"primary",onClick:v},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceRead")),1)]),_:1}),e(u,{onClick:k},{icon:r(()=>[e(c)]),default:r(()=>[V(" "+A(n.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1})]),_:1}),e(y,{loading:M(I),style:{width:"100%"}},{default:r(()=>[e(s,{"label-col-style":{width:"25%"},field:"logo_line1",label:n.$t("cps.line1")},{default:r(()=>[e(d,{modelValue:t.logo_line1,"onUpdate:modelValue":i[0]||(i[0]=p=>t.logo_line1=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.line2")},{default:r(()=>[e(d,{modelValue:t.logo_line2,"onUpdate:modelValue":i[1]||(i[1]=p=>t.logo_line2=p)},null,8,["modelValue"])]),_:1},8,["label"]),e(s,{"label-col-style":{width:"25%"},field:"logo_line2",label:n.$t("cps.mdclocplay")},{default:r(()=>[e(b,{modelValue:t.mdc_audio_local,"onUpdate:modelValue":i[2]||(i[2]=p=>t.mdc_audio_local=p),type:"round"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["loading"])]),_:1},8,["title"])]),_:1})]),_:1})])}}});const _o=L(Z,[["__scopeId","data-v-739b81b7"]]);export{_o as default};

BIN
assets/index.b6a842f8.js.gz Normal file

Binary file not shown.

View File

@ -1 +1 @@
import{e as v,ar as B,_ as E}from"./index.28b8c38d.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as $,r as C,bH as A,C as F,D as S,aI as n,aH as o,G as y,aN as _,aM as b,a$ as H,ba as R,bF as D,bI as I,bL as P,n as T}from"./arco.f43727df.js";import{i as M,e as N,b as U,g as V}from"./serial.c741fbda.js";import{C as L}from"./index.c3c7e121.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";import"./index.3c6542a6.js";const z={class:"container"},G=["innerHTML"],K={name:"Chi"},O=$({...K,setup(j){const i=v(),u=C({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0}),w=async(e=0,t)=>{var p;await N(i.connectPort);for(let a=e;a<t.length+e;a+=128)await U(i.connectPort,a,t.slice(a-e,a-e+128),128,(p=i.configuration)==null?void 0:p.uart),u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((a-e)/t.length*100).toFixed(1)+"%<br/>",T(()=>{const r=document==null?void 0:document.getElementById("statusArea");r&&(r.scrollTop=r==null?void 0:r.scrollHeight)});u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await V(i.connectPort)},h=async(e=1)=>{var p,a,r,m,g;if(i.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((p=i.configuration)==null?void 0:p.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}u.status=u.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(e==4){(a=i.configuration)!=null&&a.newpinyin?t=await fetch("/pinyin_plus.bin"):t=await fetch("/pinyin.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(131072,l);return}if(e==5){const c=await M(i.connectPort,(r=i.configuration)==null?void 0:r.uart);if(c!=262144&&c!=262144){u.status=u.status+"\u53EA\u652F\u6301 2Mbit \u4EE5\u4E0A EEPROM \u5199\u5165<br/>";return}t=await fetch("/ssb.bin");const s=t.body.getReader(),l=[];for(;;){const{done:f,value:k}=await s.read();if(f)break;l.push(...k)}const d=new Uint8Array(l);await w(246312,d);return}if(e==1){if(((m=i.configuration)==null?void 0:m.charset)=="losehu"){t=await fetch("/old_font.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(8192,l);return}if(((g=i.configuration)==null?void 0:g.charset)=="gb2312"){t=await fetch("/new_font_k.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(9344,l);return}}};return(e,t)=>{const p=B,a=H,r=L,m=R,g=D,c=A,s=I,l=P;return F(),S("div",z,[n(p,{items:[e.$t("menu.list"),e.$t("menu.font")]},null,8,["items"]),n(l,{gutter:20,align:"stretch"},{default:o(()=>[n(s,{span:24},{default:o(()=>[n(c,{class:"general-card"},{title:o(()=>[y("span",{onClick:t[0]||(t[0]=()=>{u.showHide+=1})},_(e.$t("menu.font")+e.$t("global.onStart")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.fontwrite")),1)]),default:o(()=>[n(a,{onClick:t[1]||(t[1]=d=>h(1))},{default:o(()=>[b(_(e.$t("tool.writefontwrite")),1)]),_:1})]),_:1}),n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.pinyinwrite")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(a,{onClick:t[2]||(t[2]=d=>h(4))},{default:o(()=>[b(_(e.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.ssbpatch")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(a,{onClick:t[3]||(t[3]=d=>h(5))},{default:o(()=>[b(_(e.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),n(g),y("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:u.status},null,8,G)]),_:1})]),_:1})]),_:1})])}}});const nt=E(O,[["__scopeId","data-v-02011918"]]);export{nt as default};
import{e as v,as as B,_ as E}from"./index.b3731552.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as $,r as C,bH as A,C as F,D as S,aI as n,aH as o,G as y,aN as _,aM as b,a$ as H,ba as R,bF as D,bI as I,bL as P,n as T}from"./arco.f43727df.js";import{i as M,e as N,b as U,g as V}from"./serial.c741fbda.js";import{C as L}from"./index.b6192539.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";import"./index.7a815b78.js";const z={class:"container"},G=["innerHTML"],K={name:"Chi"},O=$({...K,setup(j){const i=v(),u=C({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907<br/><br/>",eepromType:"",showHide:0}),w=async(e=0,t)=>{var p;await N(i.connectPort);for(let a=e;a<t.length+e;a+=128)await U(i.connectPort,a,t.slice(a-e,a-e+128),128,(p=i.configuration)==null?void 0:p.uart),u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A"+((a-e)/t.length*100).toFixed(1)+"%<br/>",T(()=>{const r=document==null?void 0:document.getElementById("statusArea");r&&(r.scrollTop=r==null?void 0:r.scrollHeight)});u.status=u.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%<br/>",await V(i.connectPort)},h=async(e=1)=>{var p,a,r,m,g;if(i.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}if(((p=i.configuration)==null?void 0:p.uart)=="official"){alert(sessionStorage.getItem("noticeVersionNoSupport"));return}u.status=u.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...<br />";let t;if(e==4){(a=i.configuration)!=null&&a.newpinyin?t=await fetch("/pinyin_plus.bin"):t=await fetch("/pinyin.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(131072,l);return}if(e==5){const c=await M(i.connectPort,(r=i.configuration)==null?void 0:r.uart);if(c!=262144&&c!=262144){u.status=u.status+"\u53EA\u652F\u6301 2Mbit \u4EE5\u4E0A EEPROM \u5199\u5165<br/>";return}t=await fetch("/ssb.bin");const s=t.body.getReader(),l=[];for(;;){const{done:f,value:k}=await s.read();if(f)break;l.push(...k)}const d=new Uint8Array(l);await w(246312,d);return}if(e==1){if(((m=i.configuration)==null?void 0:m.charset)=="losehu"){t=await fetch("/old_font.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(8192,l);return}if(((g=i.configuration)==null?void 0:g.charset)=="gb2312"){t=await fetch("/new_font_k.bin");const c=t.body.getReader(),s=[];for(;;){const{done:d,value:f}=await c.read();if(d)break;s.push(...f)}const l=new Uint8Array(s);await w(9344,l);return}}};return(e,t)=>{const p=B,a=H,r=L,m=R,g=D,c=A,s=I,l=P;return F(),S("div",z,[n(p,{items:[e.$t("menu.list"),e.$t("menu.font")]},null,8,["items"]),n(l,{gutter:20,align:"stretch"},{default:o(()=>[n(s,{span:24},{default:o(()=>[n(c,{class:"general-card"},{title:o(()=>[y("span",{onClick:t[0]||(t[0]=()=>{u.showHide+=1})},_(e.$t("menu.font")+e.$t("global.onStart")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.fontwrite")),1)]),default:o(()=>[n(a,{onClick:t[1]||(t[1]=d=>h(1))},{default:o(()=>[b(_(e.$t("tool.writefontwrite")),1)]),_:1})]),_:1}),n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.pinyinwrite")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(a,{onClick:t[2]||(t[2]=d=>h(4))},{default:o(()=>[b(_(e.$t("tool.writepinyin")),1)]),_:1})]),_:1})]),_:1}),n(r,{bordered:""},{header:o(()=>[b(_(e.$t("tool.ssbpatch")),1)]),default:o(()=>[n(m,null,{default:o(()=>[n(a,{onClick:t[3]||(t[3]=d=>h(5))},{default:o(()=>[b(_(e.$t("tool.writessbpatch")),1)]),_:1})]),_:1})]),_:1})]),_:1}),n(g),y("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:u.status},null,8,G)]),_:1})]),_:1})]),_:1})])}}});const nt=E(O,[["__scopeId","data-v-02011918"]]);export{nt as default};

BIN
assets/index.c33ef6fc.js.gz Normal file

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

5
assets/index.cf5b9908.js Normal file
View File

@ -0,0 +1,5 @@
import{b as o}from"./dialog.1f891b76.js";import{B as a}from"./index.b3731552.js";import"./arco.f43727df.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var m=a(o);export{m as D};

View File

@ -1,5 +0,0 @@
import{_ as o}from"./dialog.d73192f7.js";import{y as a}from"./index.28b8c38d.js";import"./arco.f43727df.js";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var m=a(o);export{m as D};

File diff suppressed because one or more lines are too long

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More