fogact 1.1.9 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/frontend/index.html +2 -2
- package/frontend/user/assets/DashboardLayout-DDkxHYFj.js +1 -1
- package/frontend/user/assets/Welcome-Dtfp6oER.js +1 -1
- package/frontend/user/assets/announcement-35mOnjRL.js +1 -1
- package/frontend/user/assets/index-Da98HOxL.js +2 -2
- package/frontend/user/index.html +4 -4
- package/lib/services/activation-orchestrator.js +1 -25
- package/package.json +1 -1
package/frontend/index.html
CHANGED
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
<section class="market-hero" aria-labelledby="hero-title">
|
|
56
56
|
<div class="market-hero-main">
|
|
57
57
|
<div class="market-kicker"><span class="market-kicker-dot"></span> CLI 激活与配额管理</div>
|
|
58
|
-
<h1 id="hero-title" class="market-title"
|
|
58
|
+
<h1 id="hero-title" class="market-title"><span>Fog Coding</span><br />网关入口</h1>
|
|
59
59
|
<p class="market-copy">
|
|
60
|
-
|
|
60
|
+
连接 Codex、Claude 等服务,处理激活码、用户和额度,一站完成。
|
|
61
61
|
</p>
|
|
62
62
|
|
|
63
63
|
<label class="market-search" aria-label="搜索功能入口">
|
|
@@ -77,4 +77,4 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
77
77
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Jp="1.14.0";function _t(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Kt=_t(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Nr=_t(/Edge/i),Gi=_t(/firefox/i),ur=_t(/safari/i)&&!_t(/chrome/i)&&!_t(/android/i),Nl=_t(/iP(ad|od|hone)/i),qp=_t(/chrome/i)&&_t(/android/i),Al={capture:!1,passive:!1};function he(e,t,n){e.addEventListener(t,n,!Kt&&Al)}function de(e,t,n){e.removeEventListener(t,n,!Kt&&Al)}function ho(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Qp(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Nt(e,t,n,o){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&ho(e,t):ho(e,t))||o&&e===n)return e;if(e===n)break}while(e=Qp(e))}return null}var Hi=/\s+/g;function Le(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(Hi," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(Hi," ")}}function Y(e,t,n){var o=e&&e.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in o)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),o[t]=n+(typeof n=="string"?"":"px")}}function gn(e,t){var n="";if(typeof e=="string")n=e;else do{var o=Y(e,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function Pl(e,t,n){if(e){var o=e.getElementsByTagName(t),a=0,i=o.length;if(n)for(;a<i;a++)n(o[a],a);return o}return[]}function wt(){var e=document.scrollingElement;return e||document.documentElement}function Me(e,t,n,o,a){if(!(!e.getBoundingClientRect&&e!==window)){var i,r,s,l,u,f,c;if(e!==window&&e.parentNode&&e!==wt()?(i=e.getBoundingClientRect(),r=i.top,s=i.left,l=i.bottom,u=i.right,f=i.height,c=i.width):(r=0,s=0,l=window.innerHeight,u=window.innerWidth,f=window.innerHeight,c=window.innerWidth),(t||n)&&e!==window&&(a=a||e.parentNode,!Kt))do if(a&&a.getBoundingClientRect&&(Y(a,"transform")!=="none"||n&&Y(a,"position")!=="static")){var d=a.getBoundingClientRect();r-=d.top+parseInt(Y(a,"border-top-width")),s-=d.left+parseInt(Y(a,"border-left-width")),l=r+i.height,u=s+i.width;break}while(a=a.parentNode);if(o&&e!==window){var p=gn(a||e),h=p&&p.a,m=p&&p.d;p&&(r/=m,s/=h,c/=h,f/=m,l=r+f,u=s+c)}return{top:r,left:s,bottom:l,right:u,width:c,height:f}}}function Wi(e,t,n){for(var o=Zt(e,!0),a=Me(e)[t];o;){var i=Me(o)[n],r=void 0;if(r=a>=i,!r)return o;if(o===wt())break;o=Zt(o,!1)}return!1}function Vn(e,t,n,o){for(var a=0,i=0,r=e.children;i<r.length;){if(r[i].style.display!=="none"&&r[i]!==te.ghost&&(o||r[i]!==te.dragged)&&Nt(r[i],n.draggable,e,!1)){if(a===t)return r[i];a++}i++}return null}function si(e,t){for(var n=e.lastElementChild;n&&(n===te.ghost||Y(n,"display")==="none"||t&&!ho(n,t));)n=n.previousElementSibling;return n||null}function Be(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==te.clone&&(!t||ho(e,t))&&n++;return n}function zi(e){var t=0,n=0,o=wt();if(e)do{var a=gn(e),i=a.a,r=a.d;t+=e.scrollLeft*i,n+=e.scrollTop*r}while(e!==o&&(e=e.parentNode));return[t,n]}function Zp(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n)}return-1}function Zt(e,t){if(!e||!e.getBoundingClientRect)return wt();var n=e,o=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var a=Y(n);if(n.clientWidth<n.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return wt();if(o||t)return n;o=!0}}while(n=n.parentNode);return wt()}function eh(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Yo(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var cr;function Dl(e,t){return function(){if(!cr){var n=arguments,o=this;n.length===1?e.call(o,n[0]):e.apply(o,n),cr=setTimeout(function(){cr=void 0},t)}}}function th(){clearTimeout(cr),cr=void 0}function Rl(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function li(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Yi(e,t){Y(e,"position","absolute"),Y(e,"top",t.top),Y(e,"left",t.left),Y(e,"width",t.width),Y(e,"height",t.height)}function Jo(e){Y(e,"position",""),Y(e,"top",""),Y(e,"left",""),Y(e,"width",""),Y(e,"height","")}var tt="Sortable"+new Date().getTime();function nh(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(a){if(!(Y(a,"display")==="none"||a===te.ghost)){e.push({target:a,rect:Me(a)});var i=Lt({},e[e.length-1].rect);if(a.thisAnimationDuration){var r=gn(a,!0);r&&(i.top-=r.f,i.left-=r.e)}a.fromRect=i}})}},addAnimationState:function(o){e.push(o)},removeAnimationState:function(o){e.splice(Zp(e,{target:o}),1)},animateAll:function(o){var a=this;if(!this.options.animation){clearTimeout(t),typeof o=="function"&&o();return}var i=!1,r=0;e.forEach(function(s){var l=0,u=s.target,f=u.fromRect,c=Me(u),d=u.prevFromRect,p=u.prevToRect,h=s.rect,m=gn(u,!0);m&&(c.top-=m.f,c.left-=m.e),u.toRect=c,u.thisAnimationDuration&&Yo(d,c)&&!Yo(f,c)&&(h.top-c.top)/(h.left-c.left)===(f.top-c.top)/(f.left-c.left)&&(l=oh(h,d,p,a.options)),Yo(c,f)||(u.prevFromRect=f,u.prevToRect=c,l||(l=a.options.animation),a.animate(u,h,c,l)),l&&(i=!0,r=Math.max(r,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),i?t=setTimeout(function(){typeof o=="function"&&o()},r):typeof o=="function"&&o(),e=[]},animate:function(o,a,i,r){if(r){Y(o,"transition",""),Y(o,"transform","");var s=gn(this.el),l=s&&s.a,u=s&&s.d,f=(a.left-i.left)/(l||1),c=(a.top-i.top)/(u||1);o.animatingX=!!f,o.animatingY=!!c,Y(o,"transform","translate3d("+f+"px,"+c+"px,0)"),this.forRepaintDummy=rh(o),Y(o,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),Y(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){Y(o,"transition",""),Y(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},r)}}}}function rh(e){return e.offsetWidth}function oh(e,t,n,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*o.animation}var Cn=[],qo={initializeByDefault:!0},Ar={mount:function(t){for(var n in qo)qo.hasOwnProperty(n)&&!(n in t)&&(t[n]=qo[n]);Cn.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Cn.push(t)},pluginEvent:function(t,n,o){var a=this;this.eventCanceled=!1,o.cancel=function(){a.eventCanceled=!0};var i=t+"Global";Cn.forEach(function(r){n[r.pluginName]&&(n[r.pluginName][i]&&n[r.pluginName][i](Lt({sortable:n},o)),n.options[r.pluginName]&&n[r.pluginName][t]&&n[r.pluginName][t](Lt({sortable:n},o)))})},initializePlugins:function(t,n,o,a){Cn.forEach(function(s){var l=s.pluginName;if(!(!t.options[l]&&!s.initializeByDefault)){var u=new s(t,n,t.options);u.sortable=t,u.options=t.options,t[l]=u,bt(o,u.defaults)}});for(var i in t.options)if(t.options.hasOwnProperty(i)){var r=this.modifyOption(t,i,t.options[i]);typeof r<"u"&&(t.options[i]=r)}},getEventProperties:function(t,n){var o={};return Cn.forEach(function(a){typeof a.eventProperties=="function"&&bt(o,a.eventProperties.call(n[a.pluginName],t))}),o},modifyOption:function(t,n,o){var a;return Cn.forEach(function(i){t[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[n]=="function"&&(a=i.optionListeners[n].call(t[i.pluginName],o))}),a}};function Qn(e){var t=e.sortable,n=e.rootEl,o=e.name,a=e.targetEl,i=e.cloneEl,r=e.toEl,s=e.fromEl,l=e.oldIndex,u=e.newIndex,f=e.oldDraggableIndex,c=e.newDraggableIndex,d=e.originalEvent,p=e.putSortable,h=e.extraEventProperties;if(t=t||n&&n[tt],!!t){var m,v=t.options,y="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!Kt&&!Nr?m=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent(o,!0,!0)),m.to=r||n,m.from=s||n,m.item=a||n,m.clone=i,m.oldIndex=l,m.newIndex=u,m.oldDraggableIndex=f,m.newDraggableIndex=c,m.originalEvent=d,m.pullMode=p?p.lastPutMode:void 0;var E=Lt(Lt({},h),Ar.getEventProperties(o,t));for(var x in E)m[x]=E[x];n&&n.dispatchEvent(m),v[y]&&v[y].call(t,m)}}var ah=["evt"],lt=function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.evt,i=Xp(o,ah);Ar.pluginEvent.bind(te)(t,n,Lt({dragEl:G,parentEl:$e,ghostEl:le,rootEl:De,nextEl:fn,lastDownEl:Zr,cloneEl:Fe,cloneHidden:Yt,dragStarted:Zn,putSortable:Ye,activeSortable:te.active,originalEvent:a,oldIndex:Rn,oldDraggableIndex:fr,newIndex:ht,newDraggableIndex:zt,hideGhostForTarget:$l,unhideGhostForTarget:Fl,cloneNowHidden:function(){Yt=!0},cloneNowShown:function(){Yt=!1},dispatchSortableEvent:function(s){rt({sortable:n,name:s,originalEvent:a})}},i))};function rt(e){Qn(Lt({putSortable:Ye,cloneEl:Fe,targetEl:G,rootEl:De,oldIndex:Rn,oldDraggableIndex:fr,newIndex:ht,newDraggableIndex:zt},e))}var G,$e,le,De,fn,Zr,Fe,Yt,Rn,ht,fr,zt,Vr,Ye,Dn=!1,mo=!1,vo=[],ln,xt,Qo,Zo,Ji,qi,Zn,Nn,dr,pr=!1,Ur=!1,eo,Qe,ea=[],ma=!1,go=[],jo=typeof document<"u",jr=Nl,Qi=Nr||Kt?"cssFloat":"float",ih=jo&&!qp&&!Nl&&"draggable"in document.createElement("div"),wl=(function(){if(jo){if(Kt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}})(),Ml=function(t,n){var o=Y(t),a=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),i=Vn(t,0,n),r=Vn(t,1,n),s=i&&Y(i),l=r&&Y(r),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Me(i).width,f=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Me(r).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&s.float&&s.float!=="none"){var c=s.float==="left"?"left":"right";return r&&(l.clear==="both"||l.clear===c)?"vertical":"horizontal"}return i&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||u>=a&&o[Qi]==="none"||r&&o[Qi]==="none"&&u+f>a)?"vertical":"horizontal"},sh=function(t,n,o){var a=o?t.left:t.top,i=o?t.right:t.bottom,r=o?t.width:t.height,s=o?n.left:n.top,l=o?n.right:n.bottom,u=o?n.width:n.height;return a===s||i===l||a+r/2===s+u/2},lh=function(t,n){var o;return vo.some(function(a){var i=a[tt].options.emptyInsertThreshold;if(!(!i||si(a))){var r=Me(a),s=t>=r.left-i&&t<=r.right+i,l=n>=r.top-i&&n<=r.bottom+i;if(s&&l)return o=a}}),o},Ll=function(t){function n(i,r){return function(s,l,u,f){var c=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(i==null&&(r||c))return!0;if(i==null||i===!1)return!1;if(r&&i==="clone")return i;if(typeof i=="function")return n(i(s,l,u,f),r)(s,l,u,f);var d=(r?s:l).options.group.name;return i===!0||typeof i=="string"&&i===d||i.join&&i.indexOf(d)>-1}}var o={},a=t.group;(!a||Qr(a)!="object")&&(a={name:a}),o.name=a.name,o.checkPull=n(a.pull,!0),o.checkPut=n(a.put),o.revertClone=a.revertClone,t.group=o},$l=function(){!wl&&le&&Y(le,"display","none")},Fl=function(){!wl&&le&&Y(le,"display","")};jo&&document.addEventListener("click",function(e){if(mo)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),mo=!1,!1},!0);var un=function(t){if(G){t=t.touches?t.touches[0]:t;var n=lh(t.clientX,t.clientY);if(n){var o={};for(var a in t)t.hasOwnProperty(a)&&(o[a]=t[a]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[tt]._onDragOver(o)}}},uh=function(t){G&&G.parentNode[tt]._isOutsideThisEl(t.target)};function te(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=bt({},t),e[tt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ml(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(r,s){r.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:te.supportPointer!==!1&&"PointerEvent"in window&&!ur,emptyInsertThreshold:5};Ar.initializePlugins(this,e,n);for(var o in n)!(o in t)&&(t[o]=n[o]);Ll(t);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=t.forceFallback?!1:ih,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?he(e,"pointerdown",this._onTapStart):(he(e,"mousedown",this._onTapStart),he(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(he(e,"dragover",this),he(e,"dragenter",this)),vo.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),bt(this,nh())}te.prototype={constructor:te,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Nn=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,G):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,o=this.el,a=this.options,i=a.preventOnFilter,r=t.type,s=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(s||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,f=a.filter;if(gh(o),!G&&!(/mousedown|pointerdown/.test(r)&&t.button!==0||a.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&ur&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Nt(l,a.draggable,o,!1),!(l&&l.animated)&&Zr!==l)){if(Rn=Be(l),fr=Be(l,a.draggable),typeof f=="function"){if(f.call(this,t,l,this)){rt({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:o,fromEl:o}),lt("filter",n,{evt:t}),i&&t.cancelable&&t.preventDefault();return}}else if(f&&(f=f.split(",").some(function(c){if(c=Nt(u,c.trim(),o,!1),c)return rt({sortable:n,rootEl:c,name:"filter",targetEl:l,fromEl:o,toEl:o}),lt("filter",n,{evt:t}),!0}),f)){i&&t.cancelable&&t.preventDefault();return}a.handle&&!Nt(u,a.handle,o,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,n,o){var a=this,i=a.el,r=a.options,s=i.ownerDocument,l;if(o&&!G&&o.parentNode===i){var u=Me(o);if(De=i,G=o,$e=G.parentNode,fn=G.nextSibling,Zr=o,Vr=r.group,te.dragged=G,ln={target:G,clientX:(n||t).clientX,clientY:(n||t).clientY},Ji=ln.clientX-u.left,qi=ln.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,G.style["will-change"]="all",l=function(){if(lt("delayEnded",a,{evt:t}),te.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!Gi&&a.nativeDraggable&&(G.draggable=!0),a._triggerDragStart(t,n),rt({sortable:a,name:"choose",originalEvent:t}),Le(G,r.chosenClass,!0)},r.ignore.split(",").forEach(function(f){Pl(G,f.trim(),ta)}),he(s,"dragover",un),he(s,"mousemove",un),he(s,"touchmove",un),he(s,"mouseup",a._onDrop),he(s,"touchend",a._onDrop),he(s,"touchcancel",a._onDrop),Gi&&this.nativeDraggable&&(this.options.touchStartThreshold=4,G.draggable=!0),lt("delayStart",this,{evt:t}),r.delay&&(!r.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Nr||Kt))){if(te.eventCanceled){this._onDrop();return}he(s,"mouseup",a._disableDelayedDrag),he(s,"touchend",a._disableDelayedDrag),he(s,"touchcancel",a._disableDelayedDrag),he(s,"mousemove",a._delayedDragTouchMoveHandler),he(s,"touchmove",a._delayedDragTouchMoveHandler),r.supportPointer&&he(s,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(l,r.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){G&&ta(G),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;de(t,"mouseup",this._disableDelayedDrag),de(t,"touchend",this._disableDelayedDrag),de(t,"touchcancel",this._disableDelayedDrag),de(t,"mousemove",this._delayedDragTouchMoveHandler),de(t,"touchmove",this._delayedDragTouchMoveHandler),de(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?he(document,"pointermove",this._onTouchMove):n?he(document,"touchmove",this._onTouchMove):he(document,"mousemove",this._onTouchMove):(he(G,"dragend",this),he(De,"dragstart",this._onDragStart));try{document.selection?to(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Dn=!1,De&&G){lt("dragStarted",this,{evt:n}),this.nativeDraggable&&he(document,"dragover",uh);var o=this.options;!t&&Le(G,o.dragClass,!1),Le(G,o.ghostClass,!0),te.active=this,t&&this._appendGhost(),rt({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(xt){this._lastX=xt.clientX,this._lastY=xt.clientY,$l();for(var t=document.elementFromPoint(xt.clientX,xt.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(xt.clientX,xt.clientY),t!==n);)n=t;if(G.parentNode[tt]._isOutsideThisEl(t),n)do{if(n[tt]){var o=void 0;if(o=n[tt]._onDragOver({clientX:xt.clientX,clientY:xt.clientY,target:t,rootEl:n}),o&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Fl()}},_onTouchMove:function(t){if(ln){var n=this.options,o=n.fallbackTolerance,a=n.fallbackOffset,i=t.touches?t.touches[0]:t,r=le&&gn(le,!0),s=le&&r&&r.a,l=le&&r&&r.d,u=jr&&Qe&&zi(Qe),f=(i.clientX-ln.clientX+a.x)/(s||1)+(u?u[0]-ea[0]:0)/(s||1),c=(i.clientY-ln.clientY+a.y)/(l||1)+(u?u[1]-ea[1]:0)/(l||1);if(!te.active&&!Dn){if(o&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(le){r?(r.e+=f-(Qo||0),r.f+=c-(Zo||0)):r={a:1,b:0,c:0,d:1,e:f,f:c};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");Y(le,"webkitTransform",d),Y(le,"mozTransform",d),Y(le,"msTransform",d),Y(le,"transform",d),Qo=f,Zo=c,xt=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!le){var t=this.options.fallbackOnBody?document.body:De,n=Me(G,!0,jr,!0,t),o=this.options;if(jr){for(Qe=t;Y(Qe,"position")==="static"&&Y(Qe,"transform")==="none"&&Qe!==document;)Qe=Qe.parentNode;Qe!==document.body&&Qe!==document.documentElement?(Qe===document&&(Qe=wt()),n.top+=Qe.scrollTop,n.left+=Qe.scrollLeft):Qe=wt(),ea=zi(Qe)}le=G.cloneNode(!0),Le(le,o.ghostClass,!1),Le(le,o.fallbackClass,!0),Le(le,o.dragClass,!0),Y(le,"transition",""),Y(le,"transform",""),Y(le,"box-sizing","border-box"),Y(le,"margin",0),Y(le,"top",n.top),Y(le,"left",n.left),Y(le,"width",n.width),Y(le,"height",n.height),Y(le,"opacity","0.8"),Y(le,"position",jr?"absolute":"fixed"),Y(le,"zIndex","100000"),Y(le,"pointerEvents","none"),te.ghost=le,t.appendChild(le),Y(le,"transform-origin",Ji/parseInt(le.style.width)*100+"% "+qi/parseInt(le.style.height)*100+"%")}},_onDragStart:function(t,n){var o=this,a=t.dataTransfer,i=o.options;if(lt("dragStart",this,{evt:t}),te.eventCanceled){this._onDrop();return}lt("setupClone",this),te.eventCanceled||(Fe=li(G),Fe.draggable=!1,Fe.style["will-change"]="",this._hideClone(),Le(Fe,this.options.chosenClass,!1),te.clone=Fe),o.cloneId=to(function(){lt("clone",o),!te.eventCanceled&&(o.options.removeCloneOnHide||De.insertBefore(Fe,G),o._hideClone(),rt({sortable:o,name:"clone"}))}),!n&&Le(G,i.dragClass,!0),n?(mo=!0,o._loopId=setInterval(o._emulateDragOver,50)):(de(document,"mouseup",o._onDrop),de(document,"touchend",o._onDrop),de(document,"touchcancel",o._onDrop),a&&(a.effectAllowed="move",i.setData&&i.setData.call(o,a,G)),he(document,"drop",o),Y(G,"transform","translateZ(0)")),Dn=!0,o._dragStartId=to(o._dragStarted.bind(o,n,t)),he(document,"selectstart",o),Zn=!0,ur&&Y(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,o=t.target,a,i,r,s=this.options,l=s.group,u=te.active,f=Vr===l,c=s.sort,d=Ye||u,p,h=this,m=!1;if(ma)return;function v(Q,me){lt(Q,h,Lt({evt:t,isOwner:f,axis:p?"vertical":"horizontal",revert:r,dragRect:a,targetRect:i,canSort:c,fromSortable:d,target:o,completed:E,onMove:function(W,N){return _r(De,n,G,a,W,Me(W),t,N)},changed:x},me))}function y(){v("dragOverAnimationCapture"),h.captureAnimationState(),h!==d&&d.captureAnimationState()}function E(Q){return v("dragOverCompleted",{insertion:Q}),Q&&(f?u._hideClone():u._showClone(h),h!==d&&(Le(G,Ye?Ye.options.ghostClass:u.options.ghostClass,!1),Le(G,s.ghostClass,!0)),Ye!==h&&h!==te.active?Ye=h:h===te.active&&Ye&&(Ye=null),d===h&&(h._ignoreWhileAnimating=o),h.animateAll(function(){v("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(o===G&&!G.animated||o===n&&!o.animated)&&(Nn=null),!s.dragoverBubble&&!t.rootEl&&o!==document&&(G.parentNode[tt]._isOutsideThisEl(t.target),!Q&&un(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function x(){ht=Be(G),zt=Be(G,s.draggable),rt({sortable:h,name:"change",toEl:n,newIndex:ht,newDraggableIndex:zt,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=Nt(o,s.draggable,n,!0),v("dragOver"),te.eventCanceled)return m;if(G.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||h._ignoreWhileAnimating===o)return E(!1);if(mo=!1,u&&!s.disabled&&(f?c||(r=$e!==De):Ye===this||(this.lastPutMode=Vr.checkPull(this,u,G,t))&&l.checkPut(this,u,G,t))){if(p=this._getDirection(t,o)==="vertical",a=Me(G),v("dragOverValid"),te.eventCanceled)return m;if(r)return $e=De,y(),this._hideClone(),v("revert"),te.eventCanceled||(fn?De.insertBefore(G,fn):De.appendChild(G)),E(!0);var b=si(n,s.draggable);if(!b||ph(t,p,this)&&!b.animated){if(b===G)return E(!1);if(b&&n===t.target&&(o=b),o&&(i=Me(o)),_r(De,n,G,a,o,i,t,!!o)!==!1)return y(),n.appendChild(G),$e=n,x(),E(!0)}else if(b&&dh(t,p,this)){var C=Vn(n,0,s,!0);if(C===G)return E(!1);if(o=C,i=Me(o),_r(De,n,G,a,o,i,t,!1)!==!1)return y(),n.insertBefore(G,C),$e=n,x(),E(!0)}else if(o.parentNode===n){i=Me(o);var P=0,K,$=G.parentNode!==n,S=!sh(G.animated&&G.toRect||a,o.animated&&o.toRect||i,p),L=p?"top":"left",k=Wi(o,"top","top")||Wi(G,"top","top"),j=k?k.scrollTop:void 0;Nn!==o&&(K=i[L],pr=!1,Ur=!S&&s.invertSwap||$),P=hh(t,o,i,p,S?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,Ur,Nn===o);var M;if(P!==0){var F=Be(G);do F-=P,M=$e.children[F];while(M&&(Y(M,"display")==="none"||M===le))}if(P===0||M===o)return E(!1);Nn=o,dr=P;var O=o.nextElementSibling,w=!1;w=P===1;var V=_r(De,n,G,a,o,i,t,w);if(V!==!1)return(V===1||V===-1)&&(w=V===1),ma=!0,setTimeout(fh,30),y(),w&&!O?n.appendChild(G):o.parentNode.insertBefore(G,w?O:o),k&&Rl(k,0,j-k.scrollTop),$e=G.parentNode,K!==void 0&&!Ur&&(eo=Math.abs(K-Me(o)[L])),x(),E(!0)}if(n.contains(G))return E(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){de(document,"mousemove",this._onTouchMove),de(document,"touchmove",this._onTouchMove),de(document,"pointermove",this._onTouchMove),de(document,"dragover",un),de(document,"mousemove",un),de(document,"touchmove",un)},_offUpEvents:function(){var t=this.el.ownerDocument;de(t,"mouseup",this._onDrop),de(t,"touchend",this._onDrop),de(t,"pointerup",this._onDrop),de(t,"touchcancel",this._onDrop),de(document,"selectstart",this)},_onDrop:function(t){var n=this.el,o=this.options;if(ht=Be(G),zt=Be(G,o.draggable),lt("drop",this,{evt:t}),$e=G&&G.parentNode,ht=Be(G),zt=Be(G,o.draggable),te.eventCanceled){this._nulling();return}Dn=!1,Ur=!1,pr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),va(this.cloneId),va(this._dragStartId),this.nativeDraggable&&(de(document,"drop",this),de(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ur&&Y(document.body,"user-select",""),Y(G,"transform",""),t&&(Zn&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),le&&le.parentNode&&le.parentNode.removeChild(le),(De===$e||Ye&&Ye.lastPutMode!=="clone")&&Fe&&Fe.parentNode&&Fe.parentNode.removeChild(Fe),G&&(this.nativeDraggable&&de(G,"dragend",this),ta(G),G.style["will-change"]="",Zn&&!Dn&&Le(G,Ye?Ye.options.ghostClass:this.options.ghostClass,!1),Le(G,this.options.chosenClass,!1),rt({sortable:this,name:"unchoose",toEl:$e,newIndex:null,newDraggableIndex:null,originalEvent:t}),De!==$e?(ht>=0&&(rt({rootEl:$e,name:"add",toEl:$e,fromEl:De,originalEvent:t}),rt({sortable:this,name:"remove",toEl:$e,originalEvent:t}),rt({rootEl:$e,name:"sort",toEl:$e,fromEl:De,originalEvent:t}),rt({sortable:this,name:"sort",toEl:$e,originalEvent:t})),Ye&&Ye.save()):ht!==Rn&&ht>=0&&(rt({sortable:this,name:"update",toEl:$e,originalEvent:t}),rt({sortable:this,name:"sort",toEl:$e,originalEvent:t})),te.active&&((ht==null||ht===-1)&&(ht=Rn,zt=fr),rt({sortable:this,name:"end",toEl:$e,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){lt("nulling",this),De=G=$e=le=fn=Fe=Zr=Yt=ln=xt=Zn=ht=zt=Rn=fr=Nn=dr=Ye=Vr=te.dragged=te.ghost=te.clone=te.active=null,go.forEach(function(t){t.checked=!0}),go.length=Qo=Zo=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":G&&(this._onDragOver(t),ch(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,o=this.el.children,a=0,i=o.length,r=this.options;a<i;a++)n=o[a],Nt(n,r.draggable,this.el,!1)&&t.push(n.getAttribute(r.dataIdAttr)||vh(n));return t},sort:function(t,n){var o={},a=this.el;this.toArray().forEach(function(i,r){var s=a.children[r];Nt(s,this.options.draggable,a,!1)&&(o[i]=s)},this),n&&this.captureAnimationState(),t.forEach(function(i){o[i]&&(a.removeChild(o[i]),a.appendChild(o[i]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return Nt(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var o=this.options;if(n===void 0)return o[t];var a=Ar.modifyOption(this,t,n);typeof a<"u"?o[t]=a:o[t]=n,t==="group"&&Ll(o)},destroy:function(){lt("destroy",this);var t=this.el;t[tt]=null,de(t,"mousedown",this._onTapStart),de(t,"touchstart",this._onTapStart),de(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(de(t,"dragover",this),de(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),vo.splice(vo.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Yt){if(lt("hideClone",this),te.eventCanceled)return;Y(Fe,"display","none"),this.options.removeCloneOnHide&&Fe.parentNode&&Fe.parentNode.removeChild(Fe),Yt=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Yt){if(lt("showClone",this),te.eventCanceled)return;G.parentNode==De&&!this.options.group.revertClone?De.insertBefore(Fe,G):fn?De.insertBefore(Fe,fn):De.appendChild(Fe),this.options.group.revertClone&&this.animate(G,Fe),Y(Fe,"display",""),Yt=!1}}};function ch(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function _r(e,t,n,o,a,i,r,s){var l,u=e[tt],f=u.options.onMove,c;return window.CustomEvent&&!Kt&&!Nr?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=o,l.related=a||t,l.relatedRect=i||Me(t),l.willInsertAfter=s,l.originalEvent=r,e.dispatchEvent(l),f&&(c=f.call(u,l,r)),c}function ta(e){e.draggable=!1}function fh(){ma=!1}function dh(e,t,n){var o=Me(Vn(n.el,0,n.options,!0)),a=10;return t?e.clientX<o.left-a||e.clientY<o.top&&e.clientX<o.right:e.clientY<o.top-a||e.clientY<o.bottom&&e.clientX<o.left}function ph(e,t,n){var o=Me(si(n.el,n.options.draggable)),a=10;return t?e.clientX>o.right+a||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+a}function hh(e,t,n,o,a,i,r,s){var l=o?e.clientY:e.clientX,u=o?n.height:n.width,f=o?n.top:n.left,c=o?n.bottom:n.right,d=!1;if(!r){if(s&&eo<u*a){if(!pr&&(dr===1?l>f+u*i/2:l<c-u*i/2)&&(pr=!0),pr)d=!0;else if(dr===1?l<f+eo:l>c-eo)return-dr}else if(l>f+u*(1-a)/2&&l<c-u*(1-a)/2)return mh(t)}return d=d||r,d&&(l<f+u*i/2||l>c-u*i/2)?l>f+u/2?1:-1:0}function mh(e){return Be(G)<Be(e)?1:-1}function vh(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function gh(e){go.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var o=t[n];o.checked&&go.push(o)}}function to(e){return setTimeout(e,0)}function va(e){return clearTimeout(e)}jo&&he(document,"touchmove",function(e){(te.active||Dn)&&e.cancelable&&e.preventDefault()});te.utils={on:he,off:de,css:Y,find:Pl,is:function(t,n){return!!Nt(t,n,t,!1)},extend:eh,throttle:Dl,closest:Nt,toggleClass:Le,clone:li,index:Be,nextTick:to,cancelNextTick:va,detectDirection:Ml,getChild:Vn};te.get=function(e){return e[tt]};te.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(te.utils=Lt(Lt({},te.utils),o.utils)),Ar.mount(o)})};te.create=function(e,t){return new te(e,t)};te.version=Jp;var Ke=[],er,ga,ya=!1,na,ra,yo,tr;function yh(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var o=n.originalEvent;this.sortable.nativeDraggable?he(document,"dragover",this._handleAutoScroll):this.options.supportPointer?he(document,"pointermove",this._handleFallbackAutoScroll):o.touches?he(document,"touchmove",this._handleFallbackAutoScroll):he(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var o=n.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?de(document,"dragover",this._handleAutoScroll):(de(document,"pointermove",this._handleFallbackAutoScroll),de(document,"touchmove",this._handleFallbackAutoScroll),de(document,"mousemove",this._handleFallbackAutoScroll)),Zi(),no(),th()},nulling:function(){yo=ga=er=ya=tr=na=ra=null,Ke.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,o){var a=this,i=(n.touches?n.touches[0]:n).clientX,r=(n.touches?n.touches[0]:n).clientY,s=document.elementFromPoint(i,r);if(yo=n,o||this.options.forceAutoScrollFallback||Nr||Kt||ur){oa(n,this.options,s,o);var l=Zt(s,!0);ya&&(!tr||i!==na||r!==ra)&&(tr&&Zi(),tr=setInterval(function(){var u=Zt(document.elementFromPoint(i,r),!0);u!==l&&(l=u,no()),oa(n,a.options,u,o)},10),na=i,ra=r)}else{if(!this.options.bubbleScroll||Zt(s,!0)===wt()){no();return}oa(n,this.options,Zt(s,!1),!1)}}},bt(e,{pluginName:"scroll",initializeByDefault:!0})}function no(){Ke.forEach(function(e){clearInterval(e.pid)}),Ke=[]}function Zi(){clearInterval(tr)}var oa=Dl(function(e,t,n,o){if(t.scroll){var a=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,r=t.scrollSensitivity,s=t.scrollSpeed,l=wt(),u=!1,f;ga!==n&&(ga=n,no(),er=t.scroll,f=t.scrollFn,er===!0&&(er=Zt(n,!0)));var c=0,d=er;do{var p=d,h=Me(p),m=h.top,v=h.bottom,y=h.left,E=h.right,x=h.width,b=h.height,C=void 0,P=void 0,K=p.scrollWidth,$=p.scrollHeight,S=Y(p),L=p.scrollLeft,k=p.scrollTop;p===l?(C=x<K&&(S.overflowX==="auto"||S.overflowX==="scroll"||S.overflowX==="visible"),P=b<$&&(S.overflowY==="auto"||S.overflowY==="scroll"||S.overflowY==="visible")):(C=x<K&&(S.overflowX==="auto"||S.overflowX==="scroll"),P=b<$&&(S.overflowY==="auto"||S.overflowY==="scroll"));var j=C&&(Math.abs(E-a)<=r&&L+x<K)-(Math.abs(y-a)<=r&&!!L),M=P&&(Math.abs(v-i)<=r&&k+b<$)-(Math.abs(m-i)<=r&&!!k);if(!Ke[c])for(var F=0;F<=c;F++)Ke[F]||(Ke[F]={});(Ke[c].vx!=j||Ke[c].vy!=M||Ke[c].el!==p)&&(Ke[c].el=p,Ke[c].vx=j,Ke[c].vy=M,clearInterval(Ke[c].pid),(j!=0||M!=0)&&(u=!0,Ke[c].pid=setInterval((function(){o&&this.layer===0&&te.active._onTouchMove(yo);var O=Ke[this.layer].vy?Ke[this.layer].vy*s:0,w=Ke[this.layer].vx?Ke[this.layer].vx*s:0;typeof f=="function"&&f.call(te.dragged.parentNode[tt],w,O,e,yo,Ke[this.layer].el)!=="continue"||Rl(Ke[this.layer].el,w,O)}).bind({layer:c}),24))),c++}while(t.bubbleScroll&&d!==l&&(d=Zt(d,!1)));ya=u}},30),kl=function(t){var n=t.originalEvent,o=t.putSortable,a=t.dragEl,i=t.activeSortable,r=t.dispatchSortableEvent,s=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var u=o||i;s();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,c=document.elementFromPoint(f.clientX,f.clientY);l(),u&&!u.el.contains(c)&&(r("spill"),this.onSpill({dragEl:a,putSortable:o}))}};function ui(){}ui.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var a=Vn(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(n,a):this.sortable.el.appendChild(n),this.sortable.animateAll(),o&&o.animateAll()},drop:kl};bt(ui,{pluginName:"revertOnSpill"});function ci(){}ci.prototype={onSpill:function(t){var n=t.dragEl,o=t.putSortable,a=o||this.sortable;a.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),a.animateAll()},drop:kl};bt(ci,{pluginName:"removeOnSpill"});var yt;function Eh(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var o=n.dragEl;yt=o},dragOverValid:function(n){var o=n.completed,a=n.target,i=n.onMove,r=n.activeSortable,s=n.changed,l=n.cancel;if(r.options.swap){var u=this.sortable.el,f=this.options;if(a&&a!==u){var c=yt;i(a)!==!1?(Le(a,f.swapClass,!0),yt=a):yt=null,c&&c!==yt&&Le(c,f.swapClass,!1)}s(),o(!0),l()}},drop:function(n){var o=n.activeSortable,a=n.putSortable,i=n.dragEl,r=a||this.sortable,s=this.options;yt&&Le(yt,s.swapClass,!1),yt&&(s.swap||a&&a.options.swap)&&i!==yt&&(r.captureAnimationState(),r!==o&&o.captureAnimationState(),Sh(i,yt),r.animateAll(),r!==o&&o.animateAll())},nulling:function(){yt=null}},bt(e,{pluginName:"swap",eventProperties:function(){return{swapItem:yt}}})}function Sh(e,t){var n=e.parentNode,o=t.parentNode,a,i;!n||!o||n.isEqualNode(t)||o.isEqualNode(e)||(a=Be(e),i=Be(t),n.isEqualNode(o)&&a<i&&i++,n.insertBefore(t,n.children[a]),o.insertBefore(e,o.children[i]))}var oe=[],pt=[],Yn,Ot,Jn=!1,ut=!1,An=!1,Ce,qn,Kr;function bh(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?he(document,"pointerup",this._deselectMultiDrag):(he(document,"mouseup",this._deselectMultiDrag),he(document,"touchend",this._deselectMultiDrag)),he(document,"keydown",this._checkKeyDown),he(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(a,i){var r="";oe.length&&Ot===t?oe.forEach(function(s,l){r+=(l?", ":"")+s.textContent}):r=i.textContent,a.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var o=n.dragEl;Ce=o},delayEnded:function(){this.isMultiDrag=~oe.indexOf(Ce)},setupClone:function(n){var o=n.sortable,a=n.cancel;if(this.isMultiDrag){for(var i=0;i<oe.length;i++)pt.push(li(oe[i])),pt[i].sortableIndex=oe[i].sortableIndex,pt[i].draggable=!1,pt[i].style["will-change"]="",Le(pt[i],this.options.selectedClass,!1),oe[i]===Ce&&Le(pt[i],this.options.chosenClass,!1);o._hideClone(),a()}},clone:function(n){var o=n.sortable,a=n.rootEl,i=n.dispatchSortableEvent,r=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||oe.length&&Ot===o&&(es(!0,a),i("clone"),r()))},showClone:function(n){var o=n.cloneNowShown,a=n.rootEl,i=n.cancel;this.isMultiDrag&&(es(!1,a),pt.forEach(function(r){Y(r,"display","")}),o(),Kr=!1,i())},hideClone:function(n){var o=this;n.sortable;var a=n.cloneNowHidden,i=n.cancel;this.isMultiDrag&&(pt.forEach(function(r){Y(r,"display","none"),o.options.removeCloneOnHide&&r.parentNode&&r.parentNode.removeChild(r)}),a(),Kr=!0,i())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Ot&&Ot.multiDrag._deselectMultiDrag(),oe.forEach(function(o){o.sortableIndex=Be(o)}),oe=oe.sort(function(o,a){return o.sortableIndex-a.sortableIndex}),An=!0},dragStarted:function(n){var o=this,a=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(a.captureAnimationState(),this.options.animation)){oe.forEach(function(r){r!==Ce&&Y(r,"position","absolute")});var i=Me(Ce,!1,!0,!0);oe.forEach(function(r){r!==Ce&&Yi(r,i)}),ut=!0,Jn=!0}a.animateAll(function(){ut=!1,Jn=!1,o.options.animation&&oe.forEach(function(r){Jo(r)}),o.options.sort&&Xr()})}},dragOver:function(n){var o=n.target,a=n.completed,i=n.cancel;ut&&~oe.indexOf(o)&&(a(!1),i())},revert:function(n){var o=n.fromSortable,a=n.rootEl,i=n.sortable,r=n.dragRect;oe.length>1&&(oe.forEach(function(s){i.addAnimationState({target:s,rect:ut?Me(s):r}),Jo(s),s.fromRect=r,o.removeAnimationState(s)}),ut=!1,Th(!this.options.removeCloneOnHide,a))},dragOverCompleted:function(n){var o=n.sortable,a=n.isOwner,i=n.insertion,r=n.activeSortable,s=n.parentEl,l=n.putSortable,u=this.options;if(i){if(a&&r._hideClone(),Jn=!1,u.animation&&oe.length>1&&(ut||!a&&!r.options.sort&&!l)){var f=Me(Ce,!1,!0,!0);oe.forEach(function(d){d!==Ce&&(Yi(d,f),s.appendChild(d))}),ut=!0}if(!a)if(ut||Xr(),oe.length>1){var c=Kr;r._showClone(o),r.options.animation&&!Kr&&c&&pt.forEach(function(d){r.addAnimationState({target:d,rect:qn}),d.fromRect=qn,d.thisAnimationDuration=null})}else r._showClone(o)}},dragOverAnimationCapture:function(n){var o=n.dragRect,a=n.isOwner,i=n.activeSortable;if(oe.forEach(function(s){s.thisAnimationDuration=null}),i.options.animation&&!a&&i.multiDrag.isMultiDrag){qn=bt({},o);var r=gn(Ce,!0);qn.top-=r.f,qn.left-=r.e}},dragOverAnimationComplete:function(){ut&&(ut=!1,Xr())},drop:function(n){var o=n.originalEvent,a=n.rootEl,i=n.parentEl,r=n.sortable,s=n.dispatchSortableEvent,l=n.oldIndex,u=n.putSortable,f=u||this.sortable;if(o){var c=this.options,d=i.children;if(!An)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Le(Ce,c.selectedClass,!~oe.indexOf(Ce)),~oe.indexOf(Ce))oe.splice(oe.indexOf(Ce),1),Yn=null,Qn({sortable:r,rootEl:a,name:"deselect",targetEl:Ce});else{if(oe.push(Ce),Qn({sortable:r,rootEl:a,name:"select",targetEl:Ce}),o.shiftKey&&Yn&&r.el.contains(Yn)){var p=Be(Yn),h=Be(Ce);if(~p&&~h&&p!==h){var m,v;for(h>p?(v=p,m=h):(v=h,m=p+1);v<m;v++)~oe.indexOf(d[v])||(Le(d[v],c.selectedClass,!0),oe.push(d[v]),Qn({sortable:r,rootEl:a,name:"select",targetEl:d[v]}))}}else Yn=Ce;Ot=f}if(An&&this.isMultiDrag){if(ut=!1,(i[tt].options.sort||i!==a)&&oe.length>1){var y=Me(Ce),E=Be(Ce,":not(."+this.options.selectedClass+")");if(!Jn&&c.animation&&(Ce.thisAnimationDuration=null),f.captureAnimationState(),!Jn&&(c.animation&&(Ce.fromRect=y,oe.forEach(function(b){if(b.thisAnimationDuration=null,b!==Ce){var C=ut?Me(b):y;b.fromRect=C,f.addAnimationState({target:b,rect:C})}})),Xr(),oe.forEach(function(b){d[E]?i.insertBefore(b,d[E]):i.appendChild(b),E++}),l===Be(Ce))){var x=!1;oe.forEach(function(b){if(b.sortableIndex!==Be(b)){x=!0;return}}),x&&s("update")}oe.forEach(function(b){Jo(b)}),f.animateAll()}Ot=f}(a===i||u&&u.lastPutMode!=="clone")&&pt.forEach(function(b){b.parentNode&&b.parentNode.removeChild(b)})}},nullingGlobal:function(){this.isMultiDrag=An=!1,pt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),de(document,"pointerup",this._deselectMultiDrag),de(document,"mouseup",this._deselectMultiDrag),de(document,"touchend",this._deselectMultiDrag),de(document,"keydown",this._checkKeyDown),de(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof An<"u"&&An)&&Ot===this.sortable&&!(n&&Nt(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;oe.length;){var o=oe[0];Le(o,this.options.selectedClass,!1),oe.shift(),Qn({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:o})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},bt(e,{pluginName:"multiDrag",utils:{select:function(n){var o=n.parentNode[tt];!o||!o.options.multiDrag||~oe.indexOf(n)||(Ot&&Ot!==o&&(Ot.multiDrag._deselectMultiDrag(),Ot=o),Le(n,o.options.selectedClass,!0),oe.push(n))},deselect:function(n){var o=n.parentNode[tt],a=oe.indexOf(n);!o||!o.options.multiDrag||!~a||(Le(n,o.options.selectedClass,!1),oe.splice(a,1))}},eventProperties:function(){var n=this,o=[],a=[];return oe.forEach(function(i){o.push({multiDragElement:i,index:i.sortableIndex});var r;ut&&i!==Ce?r=-1:ut?r=Be(i,":not(."+n.options.selectedClass+")"):r=Be(i),a.push({multiDragElement:i,index:r})}),{items:Gp(oe),clones:[].concat(pt),oldIndicies:o,newIndicies:a}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function Th(e,t){oe.forEach(function(n,o){var a=t.children[n.sortableIndex+(e?Number(o):0)];a?t.insertBefore(n,a):t.appendChild(n)})}function es(e,t){pt.forEach(function(n,o){var a=t.children[n.sortableIndex+(e?Number(o):0)];a?t.insertBefore(n,a):t.appendChild(n)})}function Xr(){oe.forEach(function(e){e!==Ce&&e.parentNode&&e.parentNode.removeChild(e)})}te.mount(new yh);te.mount(ci,ui);const Ih=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:bh,Sortable:te,Swap:Eh,default:te},Symbol.toStringTag,{value:"Module"})),xh=To(Ih);var Oh=Gr.exports,ts;function Ch(){return ts||(ts=1,(function(e,t){(function(o,a){e.exports=a(jp(),xh)})(typeof self<"u"?self:Oh,function(n,o){return(function(a){var i={};function r(s){if(i[s])return i[s].exports;var l=i[s]={i:s,l:!1,exports:{}};return a[s].call(l.exports,l,l.exports,r),l.l=!0,l.exports}return r.m=a,r.c=i,r.d=function(s,l,u){r.o(s,l)||Object.defineProperty(s,l,{enumerable:!0,get:u})},r.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},r.t=function(s,l){if(l&1&&(s=r(s)),l&8||l&4&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(r.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),l&2&&typeof s!="string")for(var f in s)r.d(u,f,(function(c){return s[c]}).bind(null,f));return u},r.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return r.d(l,"a",l),l},r.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},r.p="",r(r.s="fb15")})({"00ee":(function(a,i,r){var s=r("b622"),l=s("toStringTag"),u={};u[l]="z",a.exports=String(u)==="[object z]"}),"0366":(function(a,i,r){var s=r("1c0b");a.exports=function(l,u,f){if(s(l),u===void 0)return l;switch(f){case 0:return function(){return l.call(u)};case 1:return function(c){return l.call(u,c)};case 2:return function(c,d){return l.call(u,c,d)};case 3:return function(c,d,p){return l.call(u,c,d,p)}}return function(){return l.apply(u,arguments)}}}),"057f":(function(a,i,r){var s=r("fc6a"),l=r("241c").f,u={}.toString,f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(d){try{return l(d)}catch{return f.slice()}};a.exports.f=function(p){return f&&u.call(p)=="[object Window]"?c(p):l(s(p))}}),"06cf":(function(a,i,r){var s=r("83ab"),l=r("d1e7"),u=r("5c6c"),f=r("fc6a"),c=r("c04e"),d=r("5135"),p=r("0cfb"),h=Object.getOwnPropertyDescriptor;i.f=s?h:function(v,y){if(v=f(v),y=c(y,!0),p)try{return h(v,y)}catch{}if(d(v,y))return u(!l.f.call(v,y),v[y])}}),"0cfb":(function(a,i,r){var s=r("83ab"),l=r("d039"),u=r("cc12");a.exports=!s&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})}),"13d5":(function(a,i,r){var s=r("23e7"),l=r("d58f").left,u=r("a640"),f=r("ae40"),c=u("reduce"),d=f("reduce",{1:0});s({target:"Array",proto:!0,forced:!c||!d},{reduce:function(h){return l(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}})}),"14c3":(function(a,i,r){var s=r("c6b6"),l=r("9263");a.exports=function(u,f){var c=u.exec;if(typeof c=="function"){var d=c.call(u,f);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(s(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,f)}}),"159b":(function(a,i,r){var s=r("da84"),l=r("fdbc"),u=r("17c2"),f=r("9112");for(var c in l){var d=s[c],p=d&&d.prototype;if(p&&p.forEach!==u)try{f(p,"forEach",u)}catch{p.forEach=u}}}),"17c2":(function(a,i,r){var s=r("b727").forEach,l=r("a640"),u=r("ae40"),f=l("forEach"),c=u("forEach");a.exports=!f||!c?function(p){return s(this,p,arguments.length>1?arguments[1]:void 0)}:[].forEach}),"1be4":(function(a,i,r){var s=r("d066");a.exports=s("document","documentElement")}),"1c0b":(function(a,i){a.exports=function(r){if(typeof r!="function")throw TypeError(String(r)+" is not a function");return r}}),"1c7e":(function(a,i,r){var s=r("b622"),l=s("iterator"),u=!1;try{var f=0,c={next:function(){return{done:!!f++}},return:function(){u=!0}};c[l]=function(){return this},Array.from(c,function(){throw 2})}catch{}a.exports=function(d,p){if(!p&&!u)return!1;var h=!1;try{var m={};m[l]=function(){return{next:function(){return{done:h=!0}}}},d(m)}catch{}return h}}),"1d80":(function(a,i){a.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}}),"1dde":(function(a,i,r){var s=r("d039"),l=r("b622"),u=r("2d00"),f=l("species");a.exports=function(c){return u>=51||!s(function(){var d=[],p=d.constructor={};return p[f]=function(){return{foo:1}},d[c](Boolean).foo!==1})}}),"23cb":(function(a,i,r){var s=r("a691"),l=Math.max,u=Math.min;a.exports=function(f,c){var d=s(f);return d<0?l(d+c,0):u(d,c)}}),"23e7":(function(a,i,r){var s=r("da84"),l=r("06cf").f,u=r("9112"),f=r("6eeb"),c=r("ce4e"),d=r("e893"),p=r("94ca");a.exports=function(h,m){var v=h.target,y=h.global,E=h.stat,x,b,C,P,K,$;if(y?b=s:E?b=s[v]||c(v,{}):b=(s[v]||{}).prototype,b)for(C in m){if(K=m[C],h.noTargetGet?($=l(b,C),P=$&&$.value):P=b[C],x=p(y?C:v+(E?".":"#")+C,h.forced),!x&&P!==void 0){if(typeof K==typeof P)continue;d(K,P)}(h.sham||P&&P.sham)&&u(K,"sham",!0),f(b,C,K,h)}}}),"241c":(function(a,i,r){var s=r("ca84"),l=r("7839"),u=l.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(c){return s(c,u)}}),"25f0":(function(a,i,r){var s=r("6eeb"),l=r("825a"),u=r("d039"),f=r("ad6d"),c="toString",d=RegExp.prototype,p=d[c],h=u(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),m=p.name!=c;(h||m)&&s(RegExp.prototype,c,function(){var y=l(this),E=String(y.source),x=y.flags,b=String(x===void 0&&y instanceof RegExp&&!("flags"in d)?f.call(y):x);return"/"+E+"/"+b},{unsafe:!0})}),"2ca0":(function(a,i,r){var s=r("23e7"),l=r("06cf").f,u=r("50c4"),f=r("5a34"),c=r("1d80"),d=r("ab13"),p=r("c430"),h="".startsWith,m=Math.min,v=d("startsWith"),y=!p&&!v&&!!(function(){var E=l(String.prototype,"startsWith");return E&&!E.writable})();s({target:"String",proto:!0,forced:!y&&!v},{startsWith:function(x){var b=String(c(this));f(x);var C=u(m(arguments.length>1?arguments[1]:void 0,b.length)),P=String(x);return h?h.call(b,P,C):b.slice(C,C+P.length)===P}})}),"2d00":(function(a,i,r){var s=r("da84"),l=r("342f"),u=s.process,f=u&&u.versions,c=f&&f.v8,d,p;c?(d=c.split("."),p=d[0]+d[1]):l&&(d=l.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=l.match(/Chrome\/(\d+)/),d&&(p=d[1]))),a.exports=p&&+p}),"342f":(function(a,i,r){var s=r("d066");a.exports=s("navigator","userAgent")||""}),"35a1":(function(a,i,r){var s=r("f5df"),l=r("3f8c"),u=r("b622"),f=u("iterator");a.exports=function(c){if(c!=null)return c[f]||c["@@iterator"]||l[s(c)]}}),"37e8":(function(a,i,r){var s=r("83ab"),l=r("9bf2"),u=r("825a"),f=r("df75");a.exports=s?Object.defineProperties:function(d,p){u(d);for(var h=f(p),m=h.length,v=0,y;m>v;)l.f(d,y=h[v++],p[y]);return d}}),"3bbe":(function(a,i,r){var s=r("861d");a.exports=function(l){if(!s(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}}),"3ca3":(function(a,i,r){var s=r("6547").charAt,l=r("69f3"),u=r("7dd0"),f="String Iterator",c=l.set,d=l.getterFor(f);u(String,"String",function(p){c(this,{type:f,string:String(p),index:0})},function(){var h=d(this),m=h.string,v=h.index,y;return v>=m.length?{value:void 0,done:!0}:(y=s(m,v),h.index+=y.length,{value:y,done:!1})})}),"3f8c":(function(a,i){a.exports={}}),4160:(function(a,i,r){var s=r("23e7"),l=r("17c2");s({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})}),"428f":(function(a,i,r){var s=r("da84");a.exports=s}),"44ad":(function(a,i,r){var s=r("d039"),l=r("c6b6"),u="".split;a.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return l(f)=="String"?u.call(f,""):Object(f)}:Object}),"44d2":(function(a,i,r){var s=r("b622"),l=r("7c73"),u=r("9bf2"),f=s("unscopables"),c=Array.prototype;c[f]==null&&u.f(c,f,{configurable:!0,value:l(null)}),a.exports=function(d){c[f][d]=!0}}),"44e7":(function(a,i,r){var s=r("861d"),l=r("c6b6"),u=r("b622"),f=u("match");a.exports=function(c){var d;return s(c)&&((d=c[f])!==void 0?!!d:l(c)=="RegExp")}}),4930:(function(a,i,r){var s=r("d039");a.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})}),"4d64":(function(a,i,r){var s=r("fc6a"),l=r("50c4"),u=r("23cb"),f=function(c){return function(d,p,h){var m=s(d),v=l(m.length),y=u(h,v),E;if(c&&p!=p){for(;v>y;)if(E=m[y++],E!=E)return!0}else for(;v>y;y++)if((c||y in m)&&m[y]===p)return c||y||0;return!c&&-1}};a.exports={includes:f(!0),indexOf:f(!1)}}),"4de4":(function(a,i,r){var s=r("23e7"),l=r("b727").filter,u=r("1dde"),f=r("ae40"),c=u("filter"),d=f("filter");s({target:"Array",proto:!0,forced:!c||!d},{filter:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}})}),"4df4":(function(a,i,r){var s=r("0366"),l=r("7b0b"),u=r("9bdd"),f=r("e95a"),c=r("50c4"),d=r("8418"),p=r("35a1");a.exports=function(m){var v=l(m),y=typeof this=="function"?this:Array,E=arguments.length,x=E>1?arguments[1]:void 0,b=x!==void 0,C=p(v),P=0,K,$,S,L,k,j;if(b&&(x=s(x,E>2?arguments[2]:void 0,2)),C!=null&&!(y==Array&&f(C)))for(L=C.call(v),k=L.next,$=new y;!(S=k.call(L)).done;P++)j=b?u(L,x,[S.value,P],!0):S.value,d($,P,j);else for(K=c(v.length),$=new y(K);K>P;P++)j=b?x(v[P],P):v[P],d($,P,j);return $.length=P,$}}),"4fad":(function(a,i,r){var s=r("23e7"),l=r("6f53").entries;s({target:"Object",stat:!0},{entries:function(f){return l(f)}})}),"50c4":(function(a,i,r){var s=r("a691"),l=Math.min;a.exports=function(u){return u>0?l(s(u),9007199254740991):0}}),5135:(function(a,i){var r={}.hasOwnProperty;a.exports=function(s,l){return r.call(s,l)}}),5319:(function(a,i,r){var s=r("d784"),l=r("825a"),u=r("7b0b"),f=r("50c4"),c=r("a691"),d=r("1d80"),p=r("8aa5"),h=r("14c3"),m=Math.max,v=Math.min,y=Math.floor,E=/\$([$&'`]|\d\d?|<[^>]*>)/g,x=/\$([$&'`]|\d\d?)/g,b=function(C){return C===void 0?C:String(C)};s("replace",2,function(C,P,K,$){var S=$.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,L=$.REPLACE_KEEPS_$0,k=S?"$":"$0";return[function(F,O){var w=d(this),V=F==null?void 0:F[C];return V!==void 0?V.call(F,w,O):P.call(String(w),F,O)},function(M,F){if(!S&&L||typeof F=="string"&&F.indexOf(k)===-1){var O=K(P,M,this,F);if(O.done)return O.value}var w=l(M),V=String(this),Q=typeof F=="function";Q||(F=String(F));var me=w.global;if(me){var ie=w.unicode;w.lastIndex=0}for(var W=[];;){var N=h(w,V);if(N===null||(W.push(N),!me))break;var U=String(N[0]);U===""&&(w.lastIndex=p(V,f(w.lastIndex),ie))}for(var X="",se=0,fe=0;fe<W.length;fe++){N=W[fe];for(var ve=String(N[0]),Ne=m(v(c(N.index),V.length),0),Oe=[],it=1;it<N.length;it++)Oe.push(b(N[it]));var an=N.groups;if(Q){var Xt=[ve].concat(Oe,Ne,V);an!==void 0&&Xt.push(an);var We=String(F.apply(void 0,Xt))}else We=j(ve,V,Ne,Oe,an,F);Ne>=se&&(X+=V.slice(se,Ne)+We,se=Ne+ve.length)}return X+V.slice(se)}];function j(M,F,O,w,V,Q){var me=O+M.length,ie=w.length,W=x;return V!==void 0&&(V=u(V),W=E),P.call(Q,W,function(N,U){var X;switch(U.charAt(0)){case"$":return"$";case"&":return M;case"`":return F.slice(0,O);case"'":return F.slice(me);case"<":X=V[U.slice(1,-1)];break;default:var se=+U;if(se===0)return N;if(se>ie){var fe=y(se/10);return fe===0?N:fe<=ie?w[fe-1]===void 0?U.charAt(1):w[fe-1]+U.charAt(1):N}X=w[se-1]}return X===void 0?"":X})}})}),5692:(function(a,i,r){var s=r("c430"),l=r("c6cd");(a.exports=function(u,f){return l[u]||(l[u]=f!==void 0?f:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),"56ef":(function(a,i,r){var s=r("d066"),l=r("241c"),u=r("7418"),f=r("825a");a.exports=s("Reflect","ownKeys")||function(d){var p=l.f(f(d)),h=u.f;return h?p.concat(h(d)):p}}),"5a34":(function(a,i,r){var s=r("44e7");a.exports=function(l){if(s(l))throw TypeError("The method doesn't accept regular expressions");return l}}),"5c6c":(function(a,i){a.exports=function(r,s){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:s}}}),"5db7":(function(a,i,r){var s=r("23e7"),l=r("a2bf"),u=r("7b0b"),f=r("50c4"),c=r("1c0b"),d=r("65f0");s({target:"Array",proto:!0},{flatMap:function(h){var m=u(this),v=f(m.length),y;return c(h),y=d(m,0),y.length=l(y,m,m,v,0,1,h,arguments.length>1?arguments[1]:void 0),y}})}),6547:(function(a,i,r){var s=r("a691"),l=r("1d80"),u=function(f){return function(c,d){var p=String(l(c)),h=s(d),m=p.length,v,y;return h<0||h>=m?f?"":void 0:(v=p.charCodeAt(h),v<55296||v>56319||h+1===m||(y=p.charCodeAt(h+1))<56320||y>57343?f?p.charAt(h):v:f?p.slice(h,h+2):(v-55296<<10)+(y-56320)+65536)}};a.exports={codeAt:u(!1),charAt:u(!0)}}),"65f0":(function(a,i,r){var s=r("861d"),l=r("e8b5"),u=r("b622"),f=u("species");a.exports=function(c,d){var p;return l(c)&&(p=c.constructor,typeof p=="function"&&(p===Array||l(p.prototype))?p=void 0:s(p)&&(p=p[f],p===null&&(p=void 0))),new(p===void 0?Array:p)(d===0?0:d)}}),"69f3":(function(a,i,r){var s=r("7f9a"),l=r("da84"),u=r("861d"),f=r("9112"),c=r("5135"),d=r("f772"),p=r("d012"),h=l.WeakMap,m,v,y,E=function(S){return y(S)?v(S):m(S,{})},x=function(S){return function(L){var k;if(!u(L)||(k=v(L)).type!==S)throw TypeError("Incompatible receiver, "+S+" required");return k}};if(s){var b=new h,C=b.get,P=b.has,K=b.set;m=function(S,L){return K.call(b,S,L),L},v=function(S){return C.call(b,S)||{}},y=function(S){return P.call(b,S)}}else{var $=d("state");p[$]=!0,m=function(S,L){return f(S,$,L),L},v=function(S){return c(S,$)?S[$]:{}},y=function(S){return c(S,$)}}a.exports={set:m,get:v,has:y,enforce:E,getterFor:x}}),"6eeb":(function(a,i,r){var s=r("da84"),l=r("9112"),u=r("5135"),f=r("ce4e"),c=r("8925"),d=r("69f3"),p=d.get,h=d.enforce,m=String(String).split("String");(a.exports=function(v,y,E,x){var b=x?!!x.unsafe:!1,C=x?!!x.enumerable:!1,P=x?!!x.noTargetGet:!1;if(typeof E=="function"&&(typeof y=="string"&&!u(E,"name")&&l(E,"name",y),h(E).source=m.join(typeof y=="string"?y:"")),v===s){C?v[y]=E:f(y,E);return}else b?!P&&v[y]&&(C=!0):delete v[y];C?v[y]=E:l(v,y,E)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||c(this)})}),"6f53":(function(a,i,r){var s=r("83ab"),l=r("df75"),u=r("fc6a"),f=r("d1e7").f,c=function(d){return function(p){for(var h=u(p),m=l(h),v=m.length,y=0,E=[],x;v>y;)x=m[y++],(!s||f.call(h,x))&&E.push(d?[x,h[x]]:h[x]);return E}};a.exports={entries:c(!0),values:c(!1)}}),"73d9":(function(a,i,r){var s=r("44d2");s("flatMap")}),7418:(function(a,i){i.f=Object.getOwnPropertySymbols}),"746f":(function(a,i,r){var s=r("428f"),l=r("5135"),u=r("e538"),f=r("9bf2").f;a.exports=function(c){var d=s.Symbol||(s.Symbol={});l(d,c)||f(d,c,{value:u.f(c)})}}),7839:(function(a,i){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),"7b0b":(function(a,i,r){var s=r("1d80");a.exports=function(l){return Object(s(l))}}),"7c73":(function(a,i,r){var s=r("825a"),l=r("37e8"),u=r("7839"),f=r("d012"),c=r("1be4"),d=r("cc12"),p=r("f772"),h=">",m="<",v="prototype",y="script",E=p("IE_PROTO"),x=function(){},b=function(S){return m+y+h+S+m+"/"+y+h},C=function(S){S.write(b("")),S.close();var L=S.parentWindow.Object;return S=null,L},P=function(){var S=d("iframe"),L="java"+y+":",k;return S.style.display="none",c.appendChild(S),S.src=String(L),k=S.contentWindow.document,k.open(),k.write(b("document.F=Object")),k.close(),k.F},K,$=function(){try{K=document.domain&&new ActiveXObject("htmlfile")}catch{}$=K?C(K):P();for(var S=u.length;S--;)delete $[v][u[S]];return $()};f[E]=!0,a.exports=Object.create||function(L,k){var j;return L!==null?(x[v]=s(L),j=new x,x[v]=null,j[E]=L):j=$(),k===void 0?j:l(j,k)}}),"7dd0":(function(a,i,r){var s=r("23e7"),l=r("9ed3"),u=r("e163"),f=r("d2bb"),c=r("d44e"),d=r("9112"),p=r("6eeb"),h=r("b622"),m=r("c430"),v=r("3f8c"),y=r("ae93"),E=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,b=h("iterator"),C="keys",P="values",K="entries",$=function(){return this};a.exports=function(S,L,k,j,M,F,O){l(k,L,j);var w=function(fe){if(fe===M&&W)return W;if(!x&&fe in me)return me[fe];switch(fe){case C:return function(){return new k(this,fe)};case P:return function(){return new k(this,fe)};case K:return function(){return new k(this,fe)}}return function(){return new k(this)}},V=L+" Iterator",Q=!1,me=S.prototype,ie=me[b]||me["@@iterator"]||M&&me[M],W=!x&&ie||w(M),N=L=="Array"&&me.entries||ie,U,X,se;if(N&&(U=u(N.call(new S)),E!==Object.prototype&&U.next&&(!m&&u(U)!==E&&(f?f(U,E):typeof U[b]!="function"&&d(U,b,$)),c(U,V,!0,!0),m&&(v[V]=$))),M==P&&ie&&ie.name!==P&&(Q=!0,W=function(){return ie.call(this)}),(!m||O)&&me[b]!==W&&d(me,b,W),v[L]=W,M)if(X={values:w(P),keys:F?W:w(C),entries:w(K)},O)for(se in X)(x||Q||!(se in me))&&p(me,se,X[se]);else s({target:L,proto:!0,forced:x||Q},X);return X}}),"7f9a":(function(a,i,r){var s=r("da84"),l=r("8925"),u=s.WeakMap;a.exports=typeof u=="function"&&/native code/.test(l(u))}),"825a":(function(a,i,r){var s=r("861d");a.exports=function(l){if(!s(l))throw TypeError(String(l)+" is not an object");return l}}),"83ab":(function(a,i,r){var s=r("d039");a.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),8418:(function(a,i,r){var s=r("c04e"),l=r("9bf2"),u=r("5c6c");a.exports=function(f,c,d){var p=s(c);p in f?l.f(f,p,u(0,d)):f[p]=d}}),"861d":(function(a,i){a.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}}),8875:(function(a,i,r){var s,l,u;(function(f,c){l=[],s=c,u=typeof s=="function"?s.apply(i,l):s,u!==void 0&&(a.exports=u)})(typeof self<"u"?self:this,function(){function f(){var c=Object.getOwnPropertyDescriptor(document,"currentScript");if(!c&&"currentScript"in document&&document.currentScript||c&&c.get!==f&&document.currentScript)return document.currentScript;try{throw new Error}catch(K){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,p=/@([^@]*):(\d+):(\d+)\s*$/ig,h=d.exec(K.stack)||p.exec(K.stack),m=h&&h[1]||!1,v=h&&h[2]||!1,y=document.location.href.replace(document.location.hash,""),E,x,b,C=document.getElementsByTagName("script");m===y&&(E=document.documentElement.outerHTML,x=new RegExp("(?:[^\\n]+?\\n){0,"+(v-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),b=E.replace(x,"$1").trim());for(var P=0;P<C.length;P++)if(C[P].readyState==="interactive"||C[P].src===m||m===y&&C[P].innerHTML&&C[P].innerHTML.trim()===b)return C[P];return null}}return f})}),8925:(function(a,i,r){var s=r("c6cd"),l=Function.toString;typeof s.inspectSource!="function"&&(s.inspectSource=function(u){return l.call(u)}),a.exports=s.inspectSource}),"8aa5":(function(a,i,r){var s=r("6547").charAt;a.exports=function(l,u,f){return u+(f?s(l,u).length:1)}}),"8bbf":(function(a,i){a.exports=n}),"90e3":(function(a,i){var r=0,s=Math.random();a.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++r+s).toString(36)}}),9112:(function(a,i,r){var s=r("83ab"),l=r("9bf2"),u=r("5c6c");a.exports=s?function(f,c,d){return l.f(f,c,u(1,d))}:function(f,c,d){return f[c]=d,f}}),9263:(function(a,i,r){var s=r("ad6d"),l=r("9f7f"),u=RegExp.prototype.exec,f=String.prototype.replace,c=u,d=(function(){var v=/a/,y=/b*/g;return u.call(v,"a"),u.call(y,"a"),v.lastIndex!==0||y.lastIndex!==0})(),p=l.UNSUPPORTED_Y||l.BROKEN_CARET,h=/()??/.exec("")[1]!==void 0,m=d||h||p;m&&(c=function(y){var E=this,x,b,C,P,K=p&&E.sticky,$=s.call(E),S=E.source,L=0,k=y;return K&&($=$.replace("y",""),$.indexOf("g")===-1&&($+="g"),k=String(y).slice(E.lastIndex),E.lastIndex>0&&(!E.multiline||E.multiline&&y[E.lastIndex-1]!==`
|
|
78
78
|
`)&&(S="(?: "+S+")",k=" "+k,L++),b=new RegExp("^(?:"+S+")",$)),h&&(b=new RegExp("^"+S+"$(?!\\s)",$)),d&&(x=E.lastIndex),C=u.call(K?b:E,k),K?C?(C.input=C.input.slice(L),C[0]=C[0].slice(L),C.index=E.lastIndex,E.lastIndex+=C[0].length):E.lastIndex=0:d&&C&&(E.lastIndex=E.global?C.index+C[0].length:x),h&&C&&C.length>1&&f.call(C[0],b,function(){for(P=1;P<arguments.length-2;P++)arguments[P]===void 0&&(C[P]=void 0)}),C}),a.exports=c}),"94ca":(function(a,i,r){var s=r("d039"),l=/#|\.prototype\./,u=function(h,m){var v=c[f(h)];return v==p?!0:v==d?!1:typeof m=="function"?s(m):!!m},f=u.normalize=function(h){return String(h).replace(l,".").toLowerCase()},c=u.data={},d=u.NATIVE="N",p=u.POLYFILL="P";a.exports=u}),"99af":(function(a,i,r){var s=r("23e7"),l=r("d039"),u=r("e8b5"),f=r("861d"),c=r("7b0b"),d=r("50c4"),p=r("8418"),h=r("65f0"),m=r("1dde"),v=r("b622"),y=r("2d00"),E=v("isConcatSpreadable"),x=9007199254740991,b="Maximum allowed index exceeded",C=y>=51||!l(function(){var S=[];return S[E]=!1,S.concat()[0]!==S}),P=m("concat"),K=function(S){if(!f(S))return!1;var L=S[E];return L!==void 0?!!L:u(S)},$=!C||!P;s({target:"Array",proto:!0,forced:$},{concat:function(L){var k=c(this),j=h(k,0),M=0,F,O,w,V,Q;for(F=-1,w=arguments.length;F<w;F++)if(Q=F===-1?k:arguments[F],K(Q)){if(V=d(Q.length),M+V>x)throw TypeError(b);for(O=0;O<V;O++,M++)O in Q&&p(j,M,Q[O])}else{if(M>=x)throw TypeError(b);p(j,M++,Q)}return j.length=M,j}})}),"9bdd":(function(a,i,r){var s=r("825a");a.exports=function(l,u,f,c){try{return c?u(s(f)[0],f[1]):u(f)}catch(p){var d=l.return;throw d!==void 0&&s(d.call(l)),p}}}),"9bf2":(function(a,i,r){var s=r("83ab"),l=r("0cfb"),u=r("825a"),f=r("c04e"),c=Object.defineProperty;i.f=s?c:function(p,h,m){if(u(p),h=f(h,!0),u(m),l)try{return c(p,h,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(p[h]=m.value),p}}),"9ed3":(function(a,i,r){var s=r("ae93").IteratorPrototype,l=r("7c73"),u=r("5c6c"),f=r("d44e"),c=r("3f8c"),d=function(){return this};a.exports=function(p,h,m){var v=h+" Iterator";return p.prototype=l(s,{next:u(1,m)}),f(p,v,!1,!0),c[v]=d,p}}),"9f7f":(function(a,i,r){var s=r("d039");function l(u,f){return RegExp(u,f)}i.UNSUPPORTED_Y=s(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),i.BROKEN_CARET=s(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})}),a2bf:(function(a,i,r){var s=r("e8b5"),l=r("50c4"),u=r("0366"),f=function(c,d,p,h,m,v,y,E){for(var x=m,b=0,C=y?u(y,E,3):!1,P;b<h;){if(b in p){if(P=C?C(p[b],b,d):p[b],v>0&&s(P))x=f(c,d,P,l(P.length),x,v-1)-1;else{if(x>=9007199254740991)throw TypeError("Exceed the acceptable array length");c[x]=P}x++}b++}return x};a.exports=f}),a352:(function(a,i){a.exports=o}),a434:(function(a,i,r){var s=r("23e7"),l=r("23cb"),u=r("a691"),f=r("50c4"),c=r("7b0b"),d=r("65f0"),p=r("8418"),h=r("1dde"),m=r("ae40"),v=h("splice"),y=m("splice",{ACCESSORS:!0,0:0,1:2}),E=Math.max,x=Math.min,b=9007199254740991,C="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!v||!y},{splice:function(K,$){var S=c(this),L=f(S.length),k=l(K,L),j=arguments.length,M,F,O,w,V,Q;if(j===0?M=F=0:j===1?(M=0,F=L-k):(M=j-2,F=x(E(u($),0),L-k)),L+M-F>b)throw TypeError(C);for(O=d(S,F),w=0;w<F;w++)V=k+w,V in S&&p(O,w,S[V]);if(O.length=F,M<F){for(w=k;w<L-F;w++)V=w+F,Q=w+M,V in S?S[Q]=S[V]:delete S[Q];for(w=L;w>L-F+M;w--)delete S[w-1]}else if(M>F)for(w=L-F;w>k;w--)V=w+F-1,Q=w+M-1,V in S?S[Q]=S[V]:delete S[Q];for(w=0;w<M;w++)S[w+k]=arguments[w+2];return S.length=L-F+M,O}})}),a4d3:(function(a,i,r){var s=r("23e7"),l=r("da84"),u=r("d066"),f=r("c430"),c=r("83ab"),d=r("4930"),p=r("fdbf"),h=r("d039"),m=r("5135"),v=r("e8b5"),y=r("861d"),E=r("825a"),x=r("7b0b"),b=r("fc6a"),C=r("c04e"),P=r("5c6c"),K=r("7c73"),$=r("df75"),S=r("241c"),L=r("057f"),k=r("7418"),j=r("06cf"),M=r("9bf2"),F=r("d1e7"),O=r("9112"),w=r("6eeb"),V=r("5692"),Q=r("f772"),me=r("d012"),ie=r("90e3"),W=r("b622"),N=r("e538"),U=r("746f"),X=r("d44e"),se=r("69f3"),fe=r("b727").forEach,ve=Q("hidden"),Ne="Symbol",Oe="prototype",it=W("toPrimitive"),an=se.set,Xt=se.getterFor(Ne),We=Object[Oe],ze=l.Symbol,sn=u("JSON","stringify"),At=j.f,Pt=M.f,Pr=L.f,_o=F.f,It=V("symbols"),Gt=V("op-symbols"),xn=V("string-to-symbol-registry"),Kn=V("symbol-to-string-registry"),Xn=V("wks"),Gn=l.QObject,Hn=!Gn||!Gn[Oe]||!Gn[Oe].findChild,Wn=c&&h(function(){return K(Pt({},"a",{get:function(){return Pt(this,"a",{value:7}).a}})).a!=7})?function(re,J,ee){var ge=At(We,J);ge&&delete We[J],Pt(re,J,ee),ge&&re!==We&&Pt(We,J,ge)}:Pt,zn=function(re,J){var ee=It[re]=K(ze[Oe]);return an(ee,{type:Ne,tag:re,description:J}),c||(ee.description=J),ee},I=p?function(re){return typeof re=="symbol"}:function(re){return Object(re)instanceof ze},T=function(J,ee,ge){J===We&&T(Gt,ee,ge),E(J);var Ee=C(ee,!0);return E(ge),m(It,Ee)?(ge.enumerable?(m(J,ve)&&J[ve][Ee]&&(J[ve][Ee]=!1),ge=K(ge,{enumerable:P(0,!1)})):(m(J,ve)||Pt(J,ve,P(1,{})),J[ve][Ee]=!0),Wn(J,Ee,ge)):Pt(J,Ee,ge)},R=function(J,ee){E(J);var ge=b(ee),Ee=$(ge).concat(be(ge));return fe(Ee,function(st){(!c||z.call(ge,st))&&T(J,st,ge[st])}),J},B=function(J,ee){return ee===void 0?K(J):R(K(J),ee)},z=function(J){var ee=C(J,!0),ge=_o.call(this,ee);return this===We&&m(It,ee)&&!m(Gt,ee)?!1:ge||!m(this,ee)||!m(It,ee)||m(this,ve)&&this[ve][ee]?ge:!0},ne=function(J,ee){var ge=b(J),Ee=C(ee,!0);if(!(ge===We&&m(It,Ee)&&!m(Gt,Ee))){var st=At(ge,Ee);return st&&m(It,Ee)&&!(m(ge,ve)&&ge[ve][Ee])&&(st.enumerable=!0),st}},ue=function(J){var ee=Pr(b(J)),ge=[];return fe(ee,function(Ee){!m(It,Ee)&&!m(me,Ee)&&ge.push(Ee)}),ge},be=function(J){var ee=J===We,ge=Pr(ee?Gt:b(J)),Ee=[];return fe(ge,function(st){m(It,st)&&(!ee||m(We,st))&&Ee.push(It[st])}),Ee};if(d||(ze=function(){if(this instanceof ze)throw TypeError("Symbol is not a constructor");var J=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ee=ie(J),ge=function(Ee){this===We&&ge.call(Gt,Ee),m(this,ve)&&m(this[ve],ee)&&(this[ve][ee]=!1),Wn(this,ee,P(1,Ee))};return c&&Hn&&Wn(We,ee,{configurable:!0,set:ge}),zn(ee,J)},w(ze[Oe],"toString",function(){return Xt(this).tag}),w(ze,"withoutSetter",function(re){return zn(ie(re),re)}),F.f=z,M.f=T,j.f=ne,S.f=L.f=ue,k.f=be,N.f=function(re){return zn(W(re),re)},c&&(Pt(ze[Oe],"description",{configurable:!0,get:function(){return Xt(this).description}}),f||w(We,"propertyIsEnumerable",z,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:ze}),fe($(Xn),function(re){U(re)}),s({target:Ne,stat:!0,forced:!d},{for:function(re){var J=String(re);if(m(xn,J))return xn[J];var ee=ze(J);return xn[J]=ee,Kn[ee]=J,ee},keyFor:function(J){if(!I(J))throw TypeError(J+" is not a symbol");if(m(Kn,J))return Kn[J]},useSetter:function(){Hn=!0},useSimple:function(){Hn=!1}}),s({target:"Object",stat:!0,forced:!d,sham:!c},{create:B,defineProperty:T,defineProperties:R,getOwnPropertyDescriptor:ne}),s({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:ue,getOwnPropertySymbols:be}),s({target:"Object",stat:!0,forced:h(function(){k.f(1)})},{getOwnPropertySymbols:function(J){return k.f(x(J))}}),sn){var Ue=!d||h(function(){var re=ze();return sn([re])!="[null]"||sn({a:re})!="{}"||sn(Object(re))!="{}"});s({target:"JSON",stat:!0,forced:Ue},{stringify:function(J,ee,ge){for(var Ee=[J],st=1,Ko;arguments.length>st;)Ee.push(arguments[st++]);if(Ko=ee,!(!y(ee)&&J===void 0||I(J)))return v(ee)||(ee=function(Bl,Dr){if(typeof Ko=="function"&&(Dr=Ko.call(this,Bl,Dr)),!I(Dr))return Dr}),Ee[1]=ee,sn.apply(null,Ee)}})}ze[Oe][it]||O(ze[Oe],it,ze[Oe].valueOf),X(ze,Ne),me[ve]=!0}),a630:(function(a,i,r){var s=r("23e7"),l=r("4df4"),u=r("1c7e"),f=!u(function(c){Array.from(c)});s({target:"Array",stat:!0,forced:f},{from:l})}),a640:(function(a,i,r){var s=r("d039");a.exports=function(l,u){var f=[][l];return!!f&&s(function(){f.call(null,u||function(){throw 1},1)})}}),a691:(function(a,i){var r=Math.ceil,s=Math.floor;a.exports=function(l){return isNaN(l=+l)?0:(l>0?s:r)(l)}}),ab13:(function(a,i,r){var s=r("b622"),l=s("match");a.exports=function(u){var f=/./;try{"/./"[u](f)}catch{try{return f[l]=!1,"/./"[u](f)}catch{}}return!1}}),ac1f:(function(a,i,r){var s=r("23e7"),l=r("9263");s({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})}),ad6d:(function(a,i,r){var s=r("825a");a.exports=function(){var l=s(this),u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),l.dotAll&&(u+="s"),l.unicode&&(u+="u"),l.sticky&&(u+="y"),u}}),ae40:(function(a,i,r){var s=r("83ab"),l=r("d039"),u=r("5135"),f=Object.defineProperty,c={},d=function(p){throw p};a.exports=function(p,h){if(u(c,p))return c[p];h||(h={});var m=[][p],v=u(h,"ACCESSORS")?h.ACCESSORS:!1,y=u(h,0)?h[0]:d,E=u(h,1)?h[1]:void 0;return c[p]=!!m&&!l(function(){if(v&&!s)return!0;var x={length:-1};v?f(x,1,{enumerable:!0,get:d}):x[1]=1,m.call(x,y,E)})}}),ae93:(function(a,i,r){var s=r("e163"),l=r("9112"),u=r("5135"),f=r("b622"),c=r("c430"),d=f("iterator"),p=!1,h=function(){return this},m,v,y;[].keys&&(y=[].keys(),"next"in y?(v=s(s(y)),v!==Object.prototype&&(m=v)):p=!0),m==null&&(m={}),!c&&!u(m,d)&&l(m,d,h),a.exports={IteratorPrototype:m,BUGGY_SAFARI_ITERATORS:p}}),b041:(function(a,i,r){var s=r("00ee"),l=r("f5df");a.exports=s?{}.toString:function(){return"[object "+l(this)+"]"}}),b0c0:(function(a,i,r){var s=r("83ab"),l=r("9bf2").f,u=Function.prototype,f=u.toString,c=/^\s*function ([^ (]*)/,d="name";s&&!(d in u)&&l(u,d,{configurable:!0,get:function(){try{return f.call(this).match(c)[1]}catch{return""}}})}),b622:(function(a,i,r){var s=r("da84"),l=r("5692"),u=r("5135"),f=r("90e3"),c=r("4930"),d=r("fdbf"),p=l("wks"),h=s.Symbol,m=d?h:h&&h.withoutSetter||f;a.exports=function(v){return u(p,v)||(c&&u(h,v)?p[v]=h[v]:p[v]=m("Symbol."+v)),p[v]}}),b64b:(function(a,i,r){var s=r("23e7"),l=r("7b0b"),u=r("df75"),f=r("d039"),c=f(function(){u(1)});s({target:"Object",stat:!0,forced:c},{keys:function(p){return u(l(p))}})}),b727:(function(a,i,r){var s=r("0366"),l=r("44ad"),u=r("7b0b"),f=r("50c4"),c=r("65f0"),d=[].push,p=function(h){var m=h==1,v=h==2,y=h==3,E=h==4,x=h==6,b=h==5||x;return function(C,P,K,$){for(var S=u(C),L=l(S),k=s(P,K,3),j=f(L.length),M=0,F=$||c,O=m?F(C,j):v?F(C,0):void 0,w,V;j>M;M++)if((b||M in L)&&(w=L[M],V=k(w,M,S),h)){if(m)O[M]=V;else if(V)switch(h){case 3:return!0;case 5:return w;case 6:return M;case 2:d.call(O,w)}else if(E)return!1}return x?-1:y||E?E:O}};a.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6)}}),c04e:(function(a,i,r){var s=r("861d");a.exports=function(l,u){if(!s(l))return l;var f,c;if(u&&typeof(f=l.toString)=="function"&&!s(c=f.call(l))||typeof(f=l.valueOf)=="function"&&!s(c=f.call(l))||!u&&typeof(f=l.toString)=="function"&&!s(c=f.call(l)))return c;throw TypeError("Can't convert object to primitive value")}}),c430:(function(a,i){a.exports=!1}),c6b6:(function(a,i){var r={}.toString;a.exports=function(s){return r.call(s).slice(8,-1)}}),c6cd:(function(a,i,r){var s=r("da84"),l=r("ce4e"),u="__core-js_shared__",f=s[u]||l(u,{});a.exports=f}),c740:(function(a,i,r){var s=r("23e7"),l=r("b727").findIndex,u=r("44d2"),f=r("ae40"),c="findIndex",d=!0,p=f(c);c in[]&&Array(1)[c](function(){d=!1}),s({target:"Array",proto:!0,forced:d||!p},{findIndex:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}}),u(c)}),c8ba:(function(a,i){var r;r=(function(){return this})();try{r=r||new Function("return this")()}catch{typeof window=="object"&&(r=window)}a.exports=r}),c975:(function(a,i,r){var s=r("23e7"),l=r("4d64").indexOf,u=r("a640"),f=r("ae40"),c=[].indexOf,d=!!c&&1/[1].indexOf(1,-0)<0,p=u("indexOf"),h=f("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:d||!p||!h},{indexOf:function(v){return d?c.apply(this,arguments)||0:l(this,v,arguments.length>1?arguments[1]:void 0)}})}),ca84:(function(a,i,r){var s=r("5135"),l=r("fc6a"),u=r("4d64").indexOf,f=r("d012");a.exports=function(c,d){var p=l(c),h=0,m=[],v;for(v in p)!s(f,v)&&s(p,v)&&m.push(v);for(;d.length>h;)s(p,v=d[h++])&&(~u(m,v)||m.push(v));return m}}),caad:(function(a,i,r){var s=r("23e7"),l=r("4d64").includes,u=r("44d2"),f=r("ae40"),c=f("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:!c},{includes:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}}),u("includes")}),cc12:(function(a,i,r){var s=r("da84"),l=r("861d"),u=s.document,f=l(u)&&l(u.createElement);a.exports=function(c){return f?u.createElement(c):{}}}),ce4e:(function(a,i,r){var s=r("da84"),l=r("9112");a.exports=function(u,f){try{l(s,u,f)}catch{s[u]=f}return f}}),d012:(function(a,i){a.exports={}}),d039:(function(a,i){a.exports=function(r){try{return!!r()}catch{return!0}}}),d066:(function(a,i,r){var s=r("428f"),l=r("da84"),u=function(f){return typeof f=="function"?f:void 0};a.exports=function(f,c){return arguments.length<2?u(s[f])||u(l[f]):s[f]&&s[f][c]||l[f]&&l[f][c]}}),d1e7:(function(a,i,r){var s={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!s.call({1:2},1);i.f=u?function(c){var d=l(this,c);return!!d&&d.enumerable}:s}),d28b:(function(a,i,r){var s=r("746f");s("iterator")}),d2bb:(function(a,i,r){var s=r("825a"),l=r("3bbe");a.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var u=!1,f={},c;try{c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,c.call(f,[]),u=f instanceof Array}catch{}return function(p,h){return s(p),l(h),u?c.call(p,h):p.__proto__=h,p}})():void 0)}),d3b7:(function(a,i,r){var s=r("00ee"),l=r("6eeb"),u=r("b041");s||l(Object.prototype,"toString",u,{unsafe:!0})}),d44e:(function(a,i,r){var s=r("9bf2").f,l=r("5135"),u=r("b622"),f=u("toStringTag");a.exports=function(c,d,p){c&&!l(c=p?c:c.prototype,f)&&s(c,f,{configurable:!0,value:d})}}),d58f:(function(a,i,r){var s=r("1c0b"),l=r("7b0b"),u=r("44ad"),f=r("50c4"),c=function(d){return function(p,h,m,v){s(h);var y=l(p),E=u(y),x=f(y.length),b=d?x-1:0,C=d?-1:1;if(m<2)for(;;){if(b in E){v=E[b],b+=C;break}if(b+=C,d?b<0:x<=b)throw TypeError("Reduce of empty array with no initial value")}for(;d?b>=0:x>b;b+=C)b in E&&(v=h(v,E[b],b,y));return v}};a.exports={left:c(!1),right:c(!0)}}),d784:(function(a,i,r){r("ac1f");var s=r("6eeb"),l=r("d039"),u=r("b622"),f=r("9263"),c=r("9112"),d=u("species"),p=!l(function(){var E=/./;return E.exec=function(){var x=[];return x.groups={a:"7"},x},"".replace(E,"$<a>")!=="7"}),h=(function(){return"a".replace(/./,"$0")==="$0"})(),m=u("replace"),v=(function(){return/./[m]?/./[m]("a","$0")==="":!1})(),y=!l(function(){var E=/(?:)/,x=E.exec;E.exec=function(){return x.apply(this,arguments)};var b="ab".split(E);return b.length!==2||b[0]!=="a"||b[1]!=="b"});a.exports=function(E,x,b,C){var P=u(E),K=!l(function(){var M={};return M[P]=function(){return 7},""[E](M)!=7}),$=K&&!l(function(){var M=!1,F=/a/;return E==="split"&&(F={},F.constructor={},F.constructor[d]=function(){return F},F.flags="",F[P]=/./[P]),F.exec=function(){return M=!0,null},F[P](""),!M});if(!K||!$||E==="replace"&&!(p&&h&&!v)||E==="split"&&!y){var S=/./[P],L=b(P,""[E],function(M,F,O,w,V){return F.exec===f?K&&!V?{done:!0,value:S.call(F,O,w)}:{done:!0,value:M.call(O,F,w)}:{done:!1}},{REPLACE_KEEPS_$0:h,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:v}),k=L[0],j=L[1];s(String.prototype,E,k),s(RegExp.prototype,P,x==2?function(M,F){return j.call(M,this,F)}:function(M){return j.call(M,this)})}C&&c(RegExp.prototype[P],"sham",!0)}}),d81d:(function(a,i,r){var s=r("23e7"),l=r("b727").map,u=r("1dde"),f=r("ae40"),c=u("map"),d=f("map");s({target:"Array",proto:!0,forced:!c||!d},{map:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}})}),da84:(function(a,i,r){(function(s){var l=function(u){return u&&u.Math==Math&&u};a.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof s=="object"&&s)||Function("return this")()}).call(this,r("c8ba"))}),dbb4:(function(a,i,r){var s=r("23e7"),l=r("83ab"),u=r("56ef"),f=r("fc6a"),c=r("06cf"),d=r("8418");s({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(h){for(var m=f(h),v=c.f,y=u(m),E={},x=0,b,C;y.length>x;)C=v(m,b=y[x++]),C!==void 0&&d(E,b,C);return E}})}),dbf1:(function(a,i,r){(function(s){r.d(i,"a",function(){return u});function l(){return typeof window<"u"?window.console:s.console}var u=l()}).call(this,r("c8ba"))}),ddb0:(function(a,i,r){var s=r("da84"),l=r("fdbc"),u=r("e260"),f=r("9112"),c=r("b622"),d=c("iterator"),p=c("toStringTag"),h=u.values;for(var m in l){var v=s[m],y=v&&v.prototype;if(y){if(y[d]!==h)try{f(y,d,h)}catch{y[d]=h}if(y[p]||f(y,p,m),l[m]){for(var E in u)if(y[E]!==u[E])try{f(y,E,u[E])}catch{y[E]=u[E]}}}}}),df75:(function(a,i,r){var s=r("ca84"),l=r("7839");a.exports=Object.keys||function(f){return s(f,l)}}),e01a:(function(a,i,r){var s=r("23e7"),l=r("83ab"),u=r("da84"),f=r("5135"),c=r("861d"),d=r("9bf2").f,p=r("e893"),h=u.Symbol;if(l&&typeof h=="function"&&(!("description"in h.prototype)||h().description!==void 0)){var m={},v=function(){var P=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),K=this instanceof v?new h(P):P===void 0?h():h(P);return P===""&&(m[K]=!0),K};p(v,h);var y=v.prototype=h.prototype;y.constructor=v;var E=y.toString,x=String(h("test"))=="Symbol(test)",b=/^Symbol\((.*)\)[^)]+$/;d(y,"description",{configurable:!0,get:function(){var P=c(this)?this.valueOf():this,K=E.call(P);if(f(m,P))return"";var $=x?K.slice(7,-1):K.replace(b,"$1");return $===""?void 0:$}}),s({global:!0,forced:!0},{Symbol:v})}}),e163:(function(a,i,r){var s=r("5135"),l=r("7b0b"),u=r("f772"),f=r("e177"),c=u("IE_PROTO"),d=Object.prototype;a.exports=f?Object.getPrototypeOf:function(p){return p=l(p),s(p,c)?p[c]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?d:null}}),e177:(function(a,i,r){var s=r("d039");a.exports=!s(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})}),e260:(function(a,i,r){var s=r("fc6a"),l=r("44d2"),u=r("3f8c"),f=r("69f3"),c=r("7dd0"),d="Array Iterator",p=f.set,h=f.getterFor(d);a.exports=c(Array,"Array",function(m,v){p(this,{type:d,target:s(m),index:0,kind:v})},function(){var m=h(this),v=m.target,y=m.kind,E=m.index++;return!v||E>=v.length?(m.target=void 0,{value:void 0,done:!0}):y=="keys"?{value:E,done:!1}:y=="values"?{value:v[E],done:!1}:{value:[E,v[E]],done:!1}},"values"),u.Arguments=u.Array,l("keys"),l("values"),l("entries")}),e439:(function(a,i,r){var s=r("23e7"),l=r("d039"),u=r("fc6a"),f=r("06cf").f,c=r("83ab"),d=l(function(){f(1)}),p=!c||d;s({target:"Object",stat:!0,forced:p,sham:!c},{getOwnPropertyDescriptor:function(m,v){return f(u(m),v)}})}),e538:(function(a,i,r){var s=r("b622");i.f=s}),e893:(function(a,i,r){var s=r("5135"),l=r("56ef"),u=r("06cf"),f=r("9bf2");a.exports=function(c,d){for(var p=l(d),h=f.f,m=u.f,v=0;v<p.length;v++){var y=p[v];s(c,y)||h(c,y,m(d,y))}}}),e8b5:(function(a,i,r){var s=r("c6b6");a.exports=Array.isArray||function(u){return s(u)=="Array"}}),e95a:(function(a,i,r){var s=r("b622"),l=r("3f8c"),u=s("iterator"),f=Array.prototype;a.exports=function(c){return c!==void 0&&(l.Array===c||f[u]===c)}}),f5df:(function(a,i,r){var s=r("00ee"),l=r("c6b6"),u=r("b622"),f=u("toStringTag"),c=l((function(){return arguments})())=="Arguments",d=function(p,h){try{return p[h]}catch{}};a.exports=s?l:function(p){var h,m,v;return p===void 0?"Undefined":p===null?"Null":typeof(m=d(h=Object(p),f))=="string"?m:c?l(h):(v=l(h))=="Object"&&typeof h.callee=="function"?"Arguments":v}}),f772:(function(a,i,r){var s=r("5692"),l=r("90e3"),u=s("keys");a.exports=function(f){return u[f]||(u[f]=l(f))}}),fb15:(function(a,i,r){if(r.r(i),typeof window<"u"){var s=window.document.currentScript;{var l=r("8875");s=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var u=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(r.p=u[1])}r("99af"),r("4de4"),r("4160"),r("c975"),r("d81d"),r("a434"),r("159b"),r("a4d3"),r("e439"),r("dbb4"),r("b64b");function f(I,T,R){return T in I?Object.defineProperty(I,T,{value:R,enumerable:!0,configurable:!0,writable:!0}):I[T]=R,I}function c(I,T){var R=Object.keys(I);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(I);T&&(B=B.filter(function(z){return Object.getOwnPropertyDescriptor(I,z).enumerable})),R.push.apply(R,B)}return R}function d(I){for(var T=1;T<arguments.length;T++){var R=arguments[T]!=null?arguments[T]:{};T%2?c(Object(R),!0).forEach(function(B){f(I,B,R[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(R)):c(Object(R)).forEach(function(B){Object.defineProperty(I,B,Object.getOwnPropertyDescriptor(R,B))})}return I}function p(I){if(Array.isArray(I))return I}r("e01a"),r("d28b"),r("e260"),r("d3b7"),r("3ca3"),r("ddb0");function h(I,T){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(I)))){var R=[],B=!0,z=!1,ne=void 0;try{for(var ue=I[Symbol.iterator](),be;!(B=(be=ue.next()).done)&&(R.push(be.value),!(T&&R.length===T));B=!0);}catch(Ue){z=!0,ne=Ue}finally{try{!B&&ue.return!=null&&ue.return()}finally{if(z)throw ne}}return R}}r("a630"),r("fb6a"),r("b0c0"),r("25f0");function m(I,T){(T==null||T>I.length)&&(T=I.length);for(var R=0,B=new Array(T);R<T;R++)B[R]=I[R];return B}function v(I,T){if(I){if(typeof I=="string")return m(I,T);var R=Object.prototype.toString.call(I).slice(8,-1);if(R==="Object"&&I.constructor&&(R=I.constructor.name),R==="Map"||R==="Set")return Array.from(I);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return m(I,T)}}function y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
79
79
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E(I,T){return p(I)||h(I,T)||v(I,T)||y()}function x(I){if(Array.isArray(I))return m(I)}function b(I){if(typeof Symbol<"u"&&Symbol.iterator in Object(I))return Array.from(I)}function C(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
80
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P(I){return x(I)||b(I)||v(I)||C()}var K=r("a352"),$=r.n(K);function S(I){I.parentElement!==null&&I.parentElement.removeChild(I)}function L(I,T,R){var B=R===0?I.children[0]:I.children[R-1].nextSibling;I.insertBefore(T,B)}var k=r("dbf1");r("13d5"),r("4fad"),r("ac1f"),r("5319");function j(I){var T=Object.create(null);return function(B){var z=T[B];return z||(T[B]=I(B))}}var M=/-(\w)/g,F=j(function(I){return I.replace(M,function(T,R){return R.toUpperCase()})});r("5db7"),r("73d9");var O=["Start","Add","Remove","Update","End"],w=["Choose","Unchoose","Sort","Filter","Clone"],V=["Move"],Q=[V,O,w].flatMap(function(I){return I}).map(function(I){return"on".concat(I)}),me={manage:V,manageAndEmit:O,emit:w};function ie(I){return Q.indexOf(I)!==-1}r("caad"),r("2ca0");var W=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function N(I){return W.includes(I)}function U(I){return["transition-group","TransitionGroup"].includes(I)}function X(I){return["id","class","role","style"].includes(I)||I.startsWith("data-")||I.startsWith("aria-")||I.startsWith("on")}function se(I){return I.reduce(function(T,R){var B=E(R,2),z=B[0],ne=B[1];return T[z]=ne,T},{})}function fe(I){var T=I.$attrs,R=I.componentData,B=R===void 0?{}:R,z=se(Object.entries(T).filter(function(ne){var ue=E(ne,2),be=ue[0];return ue[1],X(be)}));return d(d({},z),B)}function ve(I){var T=I.$attrs,R=I.callBackBuilder,B=se(Ne(T));Object.entries(R).forEach(function(ne){var ue=E(ne,2),be=ue[0],Ue=ue[1];me[be].forEach(function(re){B["on".concat(re)]=Ue(re)})});var z="[data-draggable]".concat(B.draggable||"");return d(d({},B),{},{draggable:z})}function Ne(I){return Object.entries(I).filter(function(T){var R=E(T,2),B=R[0];return R[1],!X(B)}).map(function(T){var R=E(T,2),B=R[0],z=R[1];return[F(B),z]}).filter(function(T){var R=E(T,2),B=R[0];return R[1],!ie(B)})}r("c740");function Oe(I,T){if(!(I instanceof T))throw new TypeError("Cannot call a class as a function")}function it(I,T){for(var R=0;R<T.length;R++){var B=T[R];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(I,B.key,B)}}function an(I,T,R){return T&&it(I.prototype,T),I}var Xt=function(T){var R=T.el;return R},We=function(T,R){return T.__draggable_context=R},ze=function(T){return T.__draggable_context},sn=(function(){function I(T){var R=T.nodes,B=R.header,z=R.default,ne=R.footer,ue=T.root,be=T.realList;Oe(this,I),this.defaultNodes=z,this.children=[].concat(P(B),P(z),P(ne)),this.externalComponent=ue.externalComponent,this.rootTransition=ue.transition,this.tag=ue.tag,this.realList=be}return an(I,[{key:"render",value:function(R,B){var z=this.tag,ne=this.children,ue=this._isRootComponent,be=ue?{default:function(){return ne}}:ne;return R(z,B,be)}},{key:"updated",value:function(){var R=this.defaultNodes,B=this.realList;R.forEach(function(z,ne){We(Xt(z),{element:B[ne],index:ne})})}},{key:"getUnderlyingVm",value:function(R){return ze(R)}},{key:"getVmIndexFromDomIndex",value:function(R,B){var z=this.defaultNodes,ne=z.length,ue=B.children,be=ue.item(R);if(be===null)return ne;var Ue=ze(be);if(Ue)return Ue.index;if(ne===0)return 0;var re=Xt(z[0]),J=P(ue).findIndex(function(ee){return ee===re});return R<J?0:ne}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),I})(),At=r("8bbf");function Pt(I,T){var R=I[T];return R?R():[]}function Pr(I){var T=I.$slots,R=I.realList,B=I.getKey,z=R||[],ne=["header","footer"].map(function(ee){return Pt(T,ee)}),ue=E(ne,2),be=ue[0],Ue=ue[1],re=T.item;if(!re)throw new Error("draggable element must have an item slot");var J=z.flatMap(function(ee,ge){return re({element:ee,index:ge}).map(function(Ee){return Ee.key=B(ee),Ee.props=d(d({},Ee.props||{}),{},{"data-draggable":!0}),Ee})});if(J.length!==z.length)throw new Error("Item slot must have only one child");return{header:be,footer:Ue,default:J}}function _o(I){var T=U(I),R=!N(I)&&!T;return{transition:T,externalComponent:R,tag:R?Object(At.resolveComponent)(I):T?At.TransitionGroup:I}}function It(I){var T=I.$slots,R=I.tag,B=I.realList,z=I.getKey,ne=Pr({$slots:T,realList:B,getKey:z}),ue=_o(R);return new sn({nodes:ne,root:ue,realList:B})}function Gt(I,T){var R=this;Object(At.nextTick)(function(){return R.$emit(I.toLowerCase(),T)})}function xn(I){var T=this;return function(R,B){if(T.realList!==null)return T["onDrag".concat(I)](R,B)}}function Kn(I){var T=this,R=xn.call(this,I);return function(B,z){R.call(T,B,z),Gt.call(T,I,B)}}var Xn=null,Gn={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(T){return T}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Hn=["update:modelValue","change"].concat(P([].concat(P(me.manageAndEmit),P(me.emit)).map(function(I){return I.toLowerCase()}))),Wn=Object(At.defineComponent)({name:"draggable",inheritAttrs:!1,props:Gn,emits:Hn,data:function(){return{error:!1}},render:function(){try{this.error=!1;var T=this.$slots,R=this.$attrs,B=this.tag,z=this.componentData,ne=this.realList,ue=this.getKey,be=It({$slots:T,tag:B,realList:ne,getKey:ue});this.componentStructure=be;var Ue=fe({$attrs:R,componentData:z});return be.render(At.h,Ue)}catch(re){return this.error=!0,Object(At.h)("pre",{style:{color:"red"}},re.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&k.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var T=this;if(!this.error){var R=this.$attrs,B=this.$el,z=this.componentStructure;z.updated();var ne=ve({$attrs:R,callBackBuilder:{manageAndEmit:function(Ue){return Kn.call(T,Ue)},emit:function(Ue){return Gt.bind(T,Ue)},manage:function(Ue){return xn.call(T,Ue)}}}),ue=B.nodeType===1?B:B.parentElement;this._sortable=new $.a(ue,ne),this.targetDomElement=ue,ue.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var T=this.list;return T||this.modelValue},getKey:function(){var T=this.itemKey;return typeof T=="function"?T:function(R){return R[T]}}},watch:{$attrs:{handler:function(T){var R=this._sortable;R&&Ne(T).forEach(function(B){var z=E(B,2),ne=z[0],ue=z[1];R.option(ne,ue)})},deep:!0}},methods:{getUnderlyingVm:function(T){return this.componentStructure.getUnderlyingVm(T)||null},getUnderlyingPotencialDraggableComponent:function(T){return T.__draggable_component__},emitChanges:function(T){var R=this;Object(At.nextTick)(function(){return R.$emit("change",T)})},alterList:function(T){if(this.list){T(this.list);return}var R=P(this.modelValue);T(R),this.$emit("update:modelValue",R)},spliceList:function(){var T=arguments,R=function(z){return z.splice.apply(z,P(T))};this.alterList(R)},updatePosition:function(T,R){var B=function(ne){return ne.splice(R,0,ne.splice(T,1)[0])};this.alterList(B)},getRelatedContextFromMoveEvent:function(T){var R=T.to,B=T.related,z=this.getUnderlyingPotencialDraggableComponent(R);if(!z)return{component:z};var ne=z.realList,ue={list:ne,component:z};if(R!==B&&ne){var be=z.getUnderlyingVm(B)||{};return d(d({},be),ue)}return ue},getVmIndexFromDomIndex:function(T){return this.componentStructure.getVmIndexFromDomIndex(T,this.targetDomElement)},onDragStart:function(T){this.context=this.getUnderlyingVm(T.item),T.item._underlying_vm_=this.clone(this.context.element),Xn=T.item},onDragAdd:function(T){var R=T.item._underlying_vm_;if(R!==void 0){S(T.item);var B=this.getVmIndexFromDomIndex(T.newIndex);this.spliceList(B,0,R);var z={element:R,newIndex:B};this.emitChanges({added:z})}},onDragRemove:function(T){if(L(this.$el,T.item,T.oldIndex),T.pullMode==="clone"){S(T.clone);return}var R=this.context,B=R.index,z=R.element;this.spliceList(B,1);var ne={element:z,oldIndex:B};this.emitChanges({removed:ne})},onDragUpdate:function(T){S(T.item),L(T.from,T.item,T.oldIndex);var R=this.context.index,B=this.getVmIndexFromDomIndex(T.newIndex);this.updatePosition(R,B);var z={element:this.context.element,oldIndex:R,newIndex:B};this.emitChanges({moved:z})},computeFutureIndex:function(T,R){if(!T.element)return 0;var B=P(R.to.children).filter(function(be){return be.style.display!=="none"}),z=B.indexOf(R.related),ne=T.component.getVmIndexFromDomIndex(z),ue=B.indexOf(Xn)!==-1;return ue||!R.willInsertAfter?ne:ne+1},onDragMove:function(T,R){var B=this.move,z=this.realList;if(!B||!z)return!0;var ne=this.getRelatedContextFromMoveEvent(T),ue=this.computeFutureIndex(ne,T),be=d(d({},this.context),{},{futureIndex:ue}),Ue=d(d({},T),{},{relatedContext:ne,draggedContext:be});return B(Ue,R)},onDragEnd:function(){Xn=null}}}),zn=Wn;i.default=zn}),fb6a:(function(a,i,r){var s=r("23e7"),l=r("861d"),u=r("e8b5"),f=r("23cb"),c=r("50c4"),d=r("fc6a"),p=r("8418"),h=r("b622"),m=r("1dde"),v=r("ae40"),y=m("slice"),E=v("slice",{ACCESSORS:!0,0:0,1:2}),x=h("species"),b=[].slice,C=Math.max;s({target:"Array",proto:!0,forced:!y||!E},{slice:function(K,$){var S=d(this),L=c(S.length),k=f(K,L),j=f($===void 0?L:$,L),M,F,O;if(u(S)&&(M=S.constructor,typeof M=="function"&&(M===Array||u(M.prototype))?M=void 0:l(M)&&(M=M[x],M===null&&(M=void 0)),M===Array||M===void 0))return b.call(S,k,j);for(F=new(M===void 0?Array:M)(C(j-k,0)),O=0;k<j;k++,O++)k in S&&p(F,O,S[k]);return F.length=O,F}})}),fc6a:(function(a,i,r){var s=r("44ad"),l=r("1d80");a.exports=function(u){return s(l(u))}}),fdbc:(function(a,i){a.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),fdbf:(function(a,i,r){var s=r("4930");a.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"})}).default})})(Gr)),Gr.exports}var Nh=Ch();const Ah=Gf(Nh),Ph={class:"flex flex-col h-full w-64"},Dh={class:"flex items-center h-14 flex-shrink-0"},Rh={key:"expanded",class:"flex items-center gap-2.5 flex-1 min-w-0 px-3"},wh={class:"w-8 h-8 rounded-lg bg-gradient-to-br from-primary to-primary/60 flex items-center justify-center flex-shrink-0"},Mh={key:"collapsed",class:"flex items-center justify-center w-16"},Lh={key:"mobile-nav-expanded",class:"px-3 pt-1 pb-2 flex-shrink-0"},$h={class:"space-y-0.5"},Fh={key:0,class:"relative inline-flex h-2 w-2 ml-auto"},kh={key:"mobile-nav-hidden",class:"h-0 flex-shrink-0 overflow-hidden","aria-hidden":"true"},Bh={key:"expanded",class:"p-3 flex-shrink-0"},Vh={key:"collapsed",class:"flex justify-center py-3 flex-shrink-0 w-16"},Uh={class:"flex-1 min-h-0"},jh={class:"px-3 py-3"},_h={class:"flex flex-col items-center gap-2 py-3 w-16"},Kh=["onClick"],Xh={key:2},Gh={class:"space-y-1.5"},Hh={class:"flex items-center gap-1.5"},Wh={class:"text-sm font-medium truncate"},zh={class:"text-xs text-muted-foreground tabular-nums ml-auto"},Yh={class:"h-1.5 w-full rounded-full bg-muted overflow-hidden"},Jh={class:"text-[11px] text-muted-foreground"},qh={class:"flex-shrink-0 pb-3 pt-2"},Qh={key:"expanded",class:"flex items-center justify-between rounded-lg bg-muted/40 mx-3 px-3 py-2"},Zh={class:"text-xs text-muted-foreground"},em={class:"flex items-center gap-1"},tm={key:"collapsed",class:"flex flex-col items-center gap-1 w-16"},nm={class:"space-y-4"},rm={class:"space-y-2"},om=ye({__name:"AppSidebar",props:{isExpanded:{type:Boolean},isMobile:{type:Boolean},isMobileOpen:{type:Boolean}},setup(e){const t=e,n=ds(),o=Ca(),a=Ou(),i=is("sidebarState",null),r={"/dashboard":zu,"/card-bind":Vu,"/renewal":Ku,"/quota-pack":_u,"/announcements":hs,"/settings":Zu},s=Z(t.isExpanded||t.isMobile&&t.isMobileOpen);let l=null;Rt(()=>t.isExpanded||t.isMobile&&t.isMobileOpen,W=>{l&&(clearTimeout(l),l=null),W?l=setTimeout(()=>{s.value=!0},50):s.value=!1}),Ea(()=>{l&&clearTimeout(l)});const u=Z(!1),f=Z(!0),c=Z(!1),d=Z(!1),p=Z(null),h=Z(""),m=Z(!1),v=Z(null),y=Z(""),E=Z(!1),x=Te(()=>o.apiKeyList),b=Te(()=>o.activeKeyId),C=Te(()=>o.keyCount),P=Te({get:()=>[...o.apiKeyList],set:W=>{const N=W.map(U=>U.id);o.reorderKeys(N)}});function K(W){W!==b.value&&o.switchKey(W)}function $(W){const N=x.value.find(U=>U.id===W);N&&(p.value=W,h.value=N.name,d.value=!0)}function S(){p.value&&o.updateKeyMeta(p.value,h.value.trim()),d.value=!1,Et.success("保存成功")}function L(W){const N=x.value.find(U=>U.id===W);N&&(v.value=W,y.value=N.name,m.value=!0)}function k(){v.value&&(o.removeKey(v.value),o.hasKeys||n.push({name:"welcome"})),m.value=!1,Et.success("已删除")}function j(W){const N=x.value.find(U=>U.id===W);N&&navigator.clipboard.writeText(N.key).then(()=>Et.success("已复制到剪贴板")).catch(()=>Et.error("复制失败"))}function M(){n.currentRoute.value.name!=="dashboard"&&n.push({name:"dashboard"})}function F(){E.value=!0}function O(){o.logoutAll(),E.value=!1,Et.info("已登出所有 Key"),n.push({name:"welcome"})}function w(W){const N=o.getKeyInfo(W);if(!(N!=null&&N.quota))return 0;const U=N.billing_type,X=N.quota;if(U==="duration"){const se=X.daily_quota||0,fe=Math.max(0,se-(X.daily_spent||0)),ve=we(X.quota_pack_expires_at)&&X.quota_pack||0,Ne=we(X.quota_pack_expires_at)&&X.quota_pack_remaining||0,Oe=se+ve,it=fe+Ne;return Oe>0?Math.round((Oe-it)/Oe*100):0}if(U==="quota"){const se=X.total_quota||0,fe=X.remaining_quota||0,ve=we(X.quota_pack_expires_at)&&X.quota_pack||0,Ne=we(X.quota_pack_expires_at)&&X.quota_pack_remaining||0,Oe=se+ve,it=fe+Ne;return Oe>0?Math.round((Oe-it)/Oe*100):0}if(U==="count"){const se=X.max_requests||0,fe=X.remaining_count||0,ve=we(X.requests_pack_expires_at)&&X.requests_pack||0,Ne=we(X.requests_pack_expires_at)&&X.requests_pack_remaining||0,Oe=se+ve,it=fe+Ne;return Oe>0?Math.round((Oe-it)/Oe*100):0}return 0}function V(W){var X;if(o.isKeyInvalid(W))return W===b.value?"bg-red-100 text-red-600 hover:bg-red-200/70 dark:bg-red-500/15 dark:text-red-400 dark:hover:bg-red-500/25":"bg-red-50 text-red-600 hover:bg-red-100/80 dark:bg-red-500/10 dark:text-red-400 dark:hover:bg-red-500/20";const N=((X=o.getKeyInfo(W))==null?void 0:X.service_type)||"",U=Oa(N);return W===b.value?U.activeBtn:U.inactiveBtn}function Q(W){if(o.isKeyInvalid(W))return"Key 已失效";const N=o.getKeyInfo(W);if(!(N!=null&&N.quota))return"";const U=N.billing_type,X=N.quota;if(U==="duration"){const se=X.daily_quota||0,fe=Math.max(0,se-(X.daily_spent||0)),ve=we(X.quota_pack_expires_at)&&X.quota_pack||0,Ne=we(X.quota_pack_expires_at)&&X.quota_pack_remaining||0;return`剩余 ${qt(fe+Ne)} / ${qt(se+ve)}`}if(U==="quota"){const se=X.total_quota||0,fe=X.remaining_quota||0,ve=we(X.quota_pack_expires_at)&&X.quota_pack||0,Ne=we(X.quota_pack_expires_at)&&X.quota_pack_remaining||0;return`剩余 ${qt(fe+Ne)} / ${qt(se+ve)}`}if(U==="count"){const se=X.max_requests||0,fe=X.remaining_count||0,ve=we(X.requests_pack_expires_at)&&X.requests_pack||0,Ne=we(X.requests_pack_expires_at)&&X.requests_pack_remaining||0;return`剩余 ${fe+Ne} / ${se+ve} 次`}return""}function me(W){const N=w(W);return N>80?"bg-destructive":N>50?"bg-[hsl(var(--warning))]":"bg-primary"}function ie(W){return xa(o.getKeyStatus(W))}return br(()=>{o.fetchAllKeyInfo()}),(W,N)=>(_(),Se(en,null,[H("div",Ph,[H("div",Dh,[D(Pn,{name:"sf",mode:"out-in"},{default:A(()=>[s.value?(_(),Se("div",Rh,[H("div",wh,[D(g(ju),{class:"w-4 h-4 text-white"})]),N[18]||(N[18]=H("div",{class:"flex flex-col min-w-0"},[H("span",{class:"font-semibold text-sm leading-tight"},"FogAct"),H("span",{class:"text-[10px] text-muted-foreground leading-tight"},"API Monitor")],-1)),N[19]||(N[19]=H("div",{class:"flex-1"},null,-1)),e.isMobile?vt("",!0):(_(),q(g(ke),{key:0,variant:"ghost",size:"icon",class:"h-8 w-8 flex-shrink-0",onClick:N[0]||(N[0]=U=>{var X;return(X=g(i))==null?void 0:X.toggle()}),title:"折叠侧边栏"},{default:A(()=>[D(g(Ju),{class:"h-4 w-4"})]),_:1}))])):(_(),Se("div",Mh,[D(g(ke),{variant:"ghost",size:"icon",class:"h-8 w-8",onClick:N[1]||(N[1]=U=>{var X;return(X=g(i))==null?void 0:X.toggle()}),title:"展开侧边栏"},{default:A(()=>[D(g(qu),{class:"h-4 w-4"})]),_:1})]))]),_:1})]),D(Pn,{name:"sf",mode:"out-in"},{default:A(()=>[e.isMobile&&s.value?(_(),Se("div",Lh,[D(g(yf),{open:f.value,class:"group/collapsible","onUpdate:open":N[2]||(N[2]=U=>f.value=U)},{default:A(()=>[D(g(Sf),{class:"flex items-center justify-between w-full px-3 py-2 text-xs font-medium text-muted-foreground uppercase tracking-wider hover:text-foreground transition-colors rounded-md"},{default:A(()=>[N[20]||(N[20]=H("span",null,"导航",-1)),D(g(ms),{class:"h-3.5 w-3.5 transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})]),_:1}),D(g(Ef),null,{default:A(()=>{var U;return[H("nav",$h,[(_(!0),Se(en,null,ro(((U=g(i))==null?void 0:U.menuItems)??[],X=>{var se;return _(),q(g(ps),{key:X.path,to:X.path,class:et(["flex min-h-10 items-center gap-3 px-3 py-2 text-[13px] font-medium rounded-lg transition-colors",(se=g(i))!=null&&se.isActive(X.path)?"bg-primary/10 text-primary font-semibold":"text-muted-foreground hover:bg-muted hover:text-foreground"])},{default:A(()=>{var fe;return[(_(),q(tu(r[X.path]),{class:"h-4 w-4 flex-shrink-0"})),H("span",null,Ae(X.title),1),X.path==="/announcements"&&((fe=g(i))!=null&&fe.shouldShowAnnouncementDot.value)?(_(),Se("span",Fh,[...N[21]||(N[21]=[H("span",{class:"absolute inline-flex h-full w-full animate-ping rounded-full bg-destructive/75"},null,-1),H("span",{class:"relative inline-flex h-2 w-2 rounded-full bg-destructive"},null,-1)])])):vt("",!0)]}),_:2},1032,["to","class"])}),128))])]}),_:1})]),_:1},8,["open"]),N[22]||(N[22]=H("div",{class:"mt-2 border-b border-border/40"},null,-1))])):(_(),Se("div",kh))]),_:1}),D(Pn,{name:"sf",mode:"out-in"},{default:A(()=>[s.value?(_(),Se("div",Bh,[D(g(ke),{class:"w-full gap-2",onClick:N[3]||(N[3]=U=>c.value=!0)},{default:A(()=>[D(g(ao),{class:"h-4 w-4"}),N[23]||(N[23]=ce(" 添加 API Key ",-1))]),_:1})])):(_(),Se("div",Vh,[D(g(wr),null,{default:A(()=>[D(g(Mr),null,{default:A(()=>[D(g(Lr),{"as-child":""},{default:A(()=>[D(g(ke),{size:"icon",class:"h-10 w-10 rounded-full",onClick:N[4]||(N[4]=U=>c.value=!0)},{default:A(()=>[D(g(ao),{class:"h-4 w-4"})]),_:1})]),_:1}),D(g($r),{side:"right"},{default:A(()=>[...N[24]||(N[24]=[ce("添加 API Key",-1)])]),_:1})]),_:1})]),_:1})]))]),_:1}),H("div",Uh,[D(Pn,{name:"sf",mode:"out-in"},{default:A(()=>[s.value?(_(),q(g(vi),{key:"expanded",class:"h-full"},{default:A(()=>[H("div",jh,[D(g(Ah),{modelValue:P.value,"onUpdate:modelValue":N[5]||(N[5]=U=>P.value=U),"item-key":"id","ghost-class":"drag-ghost","chosen-class":"drag-chosen","drag-class":"drag-active",animation:200,delay:150,"delay-on-touch-only":!1,"touch-start-threshold":5,"force-fallback":!0,"fallback-on-body":!0,"fallback-tolerance":3,filter:".no-drag","prevent-on-filter":!1,class:"space-y-2",onStart:N[6]||(N[6]=U=>u.value=!0),onEnd:N[7]||(N[7]=U=>u.value=!1)},{item:A(({element:U})=>[D(Vf,{"stored-key":U,"key-info":g(o).getKeyInfo(U.id),"is-invalid":g(o).isKeyInvalid(U.id),"is-active":U.id===b.value,"is-dragging":u.value,onClick:X=>K(U.id),onEdit:X=>$(U.id),onDelete:X=>L(U.id),onCopy:X=>j(U.id)},null,8,["stored-key","key-info","is-invalid","is-active","is-dragging","onClick","onEdit","onDelete","onCopy"])]),_:1},8,["modelValue"])])]),_:1})):(_(),q(g(vi),{key:"collapsed",class:"h-full"},{default:A(()=>[H("div",_h,[D(g(wr),null,{default:A(()=>[(_(!0),Se(en,null,ro(x.value,U=>(_(),q(g(Mr),{key:U.id},{default:A(()=>[D(g(Lr),{"as-child":""},{default:A(()=>{var X,se;return[H("button",{class:et(["w-10 h-10 rounded-full flex items-center justify-center text-xs font-bold transition-all",V(U.id)]),onClick:fe=>K(U.id)},[((X=g(o).getKeyInfo(U.id))==null?void 0:X.service_type)==="claude"?(_(),q(g(vs),{key:0,class:"w-4 h-4"})):((se=g(o).getKeyInfo(U.id))==null?void 0:se.service_type)==="codex"?(_(),q(g(gs),{key:1,class:"w-4 h-4"})):(_(),Se("span",Xh,Ae(U.name.charAt(0).toUpperCase()),1))],10,Kh)]}),_:2},1024),D(g($r),{side:"right","side-offset":8,class:"w-48 rounded-lg border bg-popover p-3 text-popover-foreground shadow-md"},{default:A(()=>[H("div",Gh,[H("div",Hh,[H("span",{class:et(["w-1.5 h-1.5 rounded-full flex-shrink-0",ie(U.id)])},null,2),H("span",Wh,Ae(U.name),1),H("span",zh,Ae(w(U.id))+"%",1)]),H("div",Yh,[H("div",{class:et(["h-full rounded-full transition-all",me(U.id)]),style:nu({width:w(U.id)+"%"})},null,6)]),H("div",Jh,Ae(Q(U.id)),1)])]),_:2},1024)]),_:2},1024))),128))]),_:1})])]),_:1}))]),_:1})]),H("div",qh,[D(Pn,{name:"sf",mode:"out-in"},{default:A(()=>[s.value?(_(),Se("div",Qh,[H("span",Zh,Ae(C.value)+" 张卡片",1),H("div",em,[D(g(ke),{variant:"ghost",size:"icon",class:"h-7 w-7",onClick:N[8]||(N[8]=U=>g(a).toggleTheme()),title:"切换主题"},{default:A(()=>[g(a).isDark?(_(),q(g(yi),{key:0,class:"h-3.5 w-3.5"})):(_(),q(g(Ei),{key:1,class:"h-3.5 w-3.5"}))]),_:1}),D(g(ke),{variant:"ghost",size:"icon",class:"h-7 w-7 hover:bg-red-500/10 hover:text-red-500",onClick:F,title:"登出所有"},{default:A(()=>[D(g(Si),{class:"h-3.5 w-3.5"})]),_:1})])])):(_(),Se("div",tm,[D(g(wr),null,{default:A(()=>[D(g(Mr),null,{default:A(()=>[D(g(Lr),{"as-child":""},{default:A(()=>[D(g(ke),{variant:"ghost",size:"icon",class:"h-7 w-7",onClick:N[9]||(N[9]=U=>g(a).toggleTheme())},{default:A(()=>[g(a).isDark?(_(),q(g(yi),{key:0,class:"h-3.5 w-3.5"})):(_(),q(g(Ei),{key:1,class:"h-3.5 w-3.5"}))]),_:1})]),_:1}),D(g($r),{side:"right"},{default:A(()=>[...N[25]||(N[25]=[ce("切换主题",-1)])]),_:1})]),_:1})]),_:1}),D(g(wr),null,{default:A(()=>[D(g(Mr),null,{default:A(()=>[D(g(Lr),{"as-child":""},{default:A(()=>[D(g(ke),{variant:"ghost",size:"icon",class:"h-7 w-7 hover:bg-red-500/10 hover:text-red-500",onClick:F},{default:A(()=>[D(g(Si),{class:"h-3.5 w-3.5"})]),_:1})]),_:1}),D(g($r),{side:"right"},{default:A(()=>[...N[26]||(N[26]=[ce("登出所有",-1)])]),_:1})]),_:1})]),_:1})]))]),_:1})])]),D(Xf,{open:c.value,"onUpdate:open":N[10]||(N[10]=U=>c.value=U),onAdded:M},null,8,["open"]),D(g(lr),{open:d.value,"onUpdate:open":N[13]||(N[13]=U=>d.value=U)},{default:A(()=>[D(g(rr),{class:"sm:max-w-md"},{default:A(()=>[D(g(or),null,{default:A(()=>[D(g(ar),null,{default:A(()=>[...N[27]||(N[27]=[ce("编辑 API Key",-1)])]),_:1}),D(g(ir),null,{default:A(()=>[...N[28]||(N[28]=[ce("修改名称",-1)])]),_:1})]),_:1}),H("div",nm,[H("div",rm,[D(g(la),{for:"edit-name"},{default:A(()=>[...N[29]||(N[29]=[ce("名称",-1)])]),_:1}),D(g(sa),{id:"edit-name",modelValue:h.value,"onUpdate:modelValue":N[11]||(N[11]=U=>h.value=U),placeholder:"自定义名称"},null,8,["modelValue"])])]),D(g(sr),null,{default:A(()=>[D(g(ke),{variant:"outline",onClick:N[12]||(N[12]=U=>d.value=!1)},{default:A(()=>[...N[30]||(N[30]=[ce("取消",-1)])]),_:1}),D(g(ke),{onClick:S},{default:A(()=>[...N[31]||(N[31]=[ce("保存",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),D(g(lr),{open:m.value,"onUpdate:open":N[15]||(N[15]=U=>m.value=U)},{default:A(()=>[D(g(rr),{class:"sm:max-w-sm"},{default:A(()=>[D(g(or),null,{default:A(()=>[D(g(ar),null,{default:A(()=>[...N[32]||(N[32]=[ce("确认删除",-1)])]),_:1}),D(g(ir),null,{default:A(()=>[ce(" 确定要删除「"+Ae(y.value)+"」吗?此操作不可撤销。 ",1)]),_:1})]),_:1}),D(g(sr),null,{default:A(()=>[D(g(ke),{variant:"outline",onClick:N[14]||(N[14]=U=>m.value=!1)},{default:A(()=>[...N[33]||(N[33]=[ce("取消",-1)])]),_:1}),D(g(ke),{variant:"destructive",onClick:k},{default:A(()=>[...N[34]||(N[34]=[ce("删除",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),D(g(lr),{open:E.value,"onUpdate:open":N[17]||(N[17]=U=>E.value=U)},{default:A(()=>[D(g(rr),{class:"sm:max-w-sm"},{default:A(()=>[D(g(or),null,{default:A(()=>[D(g(ar),null,{default:A(()=>[...N[35]||(N[35]=[ce("确认登出",-1)])]),_:1}),D(g(ir),null,{default:A(()=>[...N[36]||(N[36]=[ce(" 确定要登出所有 API Key 吗?您需要重新输入 Key 才能继续使用。 ",-1)])]),_:1})]),_:1}),D(g(sr),null,{default:A(()=>[D(g(ke),{variant:"outline",onClick:N[16]||(N[16]=U=>E.value=!1)},{default:A(()=>[...N[37]||(N[37]=[ce("取消",-1)])]),_:1}),D(g(ke),{variant:"destructive",onClick:O},{default:A(()=>[...N[38]||(N[38]=[ce("登出",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])],64))}}),am=ys(om,[["__scopeId","data-v-f6c24705"]]),im={class:"min-h-screen bg-background"},sm={class:"sticky top-0 z-30 w-full border-b border-border/40 bg-card"},lm={class:"flex h-14 items-center px-4 max-w-7xl mx-auto"},um={key:1,class:"text-sm font-semibold text-foreground truncate"},cm={key:2,class:"flex items-center gap-1"},fm={class:"inline-flex items-center gap-1.5"},dm={key:0,class:"relative inline-flex h-2 w-2"},pm={class:"flex items-center gap-2"},hm={class:"hidden sm:flex items-center gap-1.5"},mm={class:"truncate"},vm={class:"p-4 sm:p-6"},ns="fogact_sidebar_expanded",rs=768,os=1280,gm=ye({__name:"DashboardLayout",setup(e){const t=Cu(),n=ds(),o=Ca(),a=wu(),i=Z(window.innerWidth),r=Te(()=>i.value<rs),s=Te(()=>i.value>=rs&&i.value<os),l=Te(()=>i.value>=os),u=Z(!1);function f(){i.value=window.innerWidth}br(()=>{window.addEventListener("resize",f),a.hydrate(),a.refreshRecent(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{u.value=!0})})}),Ea(()=>{window.removeEventListener("resize",f),document.body.style.overflow=""});const c=Z(localStorage.getItem(ns)!=="false"),d=Z(!1),p=Z(!1),h=Te(()=>r.value?!1:s.value?p.value:c.value),m=Te(()=>r.value&&d.value||s.value&&p.value),v=Te(()=>r.value?d.value?"w-64 translate-x-0":"w-64 -translate-x-full":s.value?p.value?"w-64":"w-16":c.value?"w-64":"w-16"),y=Te(()=>r.value?"pl-0":s.value?"pl-16":c.value?"pl-64":"pl-16");function E(){r.value?d.value=!d.value:s.value?p.value=!p.value:(c.value=!c.value,localStorage.setItem(ns,String(c.value)))}function x(){d.value=!1,p.value=!1}Rt([r,s,l],()=>{d.value=!1,p.value=!1,document.body.style.overflow=""}),Rt(m,ie=>{document.body.style.overflow=ie?"hidden":""}),Rt(()=>t.path,()=>{r.value&&(d.value=!1)});const b=[{path:"/dashboard",title:"仪表盘"},{path:"/card-bind",title:"叠卡"},{path:"/renewal",title:"续费"},{path:"/quota-pack",title:"额度包"},{path:"/announcements",title:"公告"},{path:"/settings",title:"设置"}],C=ie=>t.path===ie||t.path.startsWith(`${ie}/`),P=Te(()=>{const ie=b.find(W=>C(W.path));return(ie==null?void 0:ie.title)??"FogAct"}),K=Te(()=>t.name==="announcements"||t.name==="announcement-detail"),$=Te(()=>a.hasUnread);aa("sidebarState",{isSidebarExpanded:c,isMobileSidebarOpen:d,isMobile:r,isTablet:s,isDesktop:l,isTabletOverlayOpen:p,toggle:E,menuItems:b,isActive:C,shouldShowAnnouncementDot:$});const S=Te(()=>a.shouldShowPopup&&!K.value),L=Z(!1),k=Z(!1),j=Z(0);aa(Xu,{refreshTick:j});async function M(){if(!k.value){k.value=!0;try{if(!await o.fetchInfo()&&!o.apiKeyInfo){Et.error(o.error||"刷新失败");return}await o.refreshAllKeyInfo(),await a.refreshRecent(),j.value++,Et.success("数据已刷新")}catch{Et.error("刷新失败")}finally{setTimeout(()=>{k.value=!1},600)}}}function F(){L.value=S.value}function O(ie){L.value=ie}function w(){a.dismissPopupOnce(),L.value=!1}function V(){a.dismissPopupForToday(),L.value=!1}function Q(){L.value=!1,n.push({name:"announcements"})}function me(ie){L.value=!1,n.push({name:"announcement-detail",params:{id:ie}})}return Rt(S,()=>{F()}),(ie,W)=>(_(),Se("div",im,[D(Pn,{name:"fade"},{default:A(()=>[m.value?(_(),Se("div",{key:0,class:"fixed inset-0 z-40 bg-white/60 dark:bg-black/40 backdrop-blur-sm",onClick:x})):vt("",!0)]),_:1}),H("aside",{class:et(["fixed inset-y-0 left-0 z-50 border-r border-border/40 bg-card overflow-hidden",[v.value,u.value?"transition-[width,transform] duration-300":""]])},[D(am,{"is-expanded":h.value,"is-mobile":r.value,"is-mobile-open":d.value},null,8,["is-expanded","is-mobile","is-mobile-open"])],2),H("div",{class:et([y.value,u.value?"transition-[padding-left] duration-300":""])},[H("header",sm,[H("div",lm,[r.value?(_(),q(g(ke),{key:0,variant:"ghost",size:"icon",class:"h-9 w-9 mr-2",onClick:E},{default:A(()=>[D(g(Yu),{class:"h-5 w-5"})]),_:1})):vt("",!0),r.value?(_(),Se("span",um,Ae(P.value),1)):vt("",!0),r.value?vt("",!0):(_(),Se("nav",cm,[(_(),Se(en,null,ro(b,N=>D(g(ps),{key:N.path,to:N.path,class:et(["px-3 py-1.5 text-sm font-medium rounded-md transition-colors",C(N.path)?"bg-primary/10 text-primary font-semibold":"text-muted-foreground hover:bg-muted hover:text-foreground"])},{default:A(()=>[H("span",fm,[H("span",null,Ae(N.title),1),N.path==="/announcements"&&$.value?(_(),Se("span",dm,[...W[0]||(W[0]=[H("span",{class:"absolute inline-flex h-full w-full animate-ping rounded-full bg-destructive/75"},null,-1),H("span",{class:"relative inline-flex h-2 w-2 rounded-full bg-destructive"},null,-1)])])):vt("",!0)])]),_:2},1032,["to","class"])),64))])),W[1]||(W[1]=H("div",{class:"flex-1"},null,-1)),H("div",pm,[D(g(ke),{variant:"ghost",size:"icon",class:"h-8 w-8",disabled:k.value,onClick:M,title:"刷新数据"},{default:A(()=>[D(g(Gu),{class:et(["h-4 w-4 transition-transform",{"animate-spin":k.value}])},null,8,["class"])]),_:1},8,["disabled"]),H("div",hm,[g(o).apiKeyInfo?(_(),Se(en,{key:0},[D(g(Bt),{variant:"outline",class:"text-xs font-mono rounded-full px-2.5"},{default:A(()=>[ce(Ae(g(o).apiKeyInfo.key_preview),1)]),_:1}),D(g(Bt),{variant:"outline",class:et(["text-xs rounded-full px-2.5 gap-1 max-w-[18rem]",g(Oa)(g(o).apiKeyInfo.service_type).badge]),title:g(hi)(g(o).apiKeyInfo.service_type,g(o).apiKeyInfo.sub_service_type_name)},{default:A(()=>[g(o).apiKeyInfo.service_type==="claude"?(_(),q(g(vs),{key:0,class:"h-3 w-3"})):g(o).apiKeyInfo.service_type==="codex"?(_(),q(g(gs),{key:1,class:"h-3 w-3"})):vt("",!0),H("span",mm,Ae(g(hi)(g(o).apiKeyInfo.service_type,g(o).apiKeyInfo.sub_service_type_name)),1)]),_:1},8,["class","title"]),D(g(Bt),{variant:"outline",class:et(["text-xs rounded-full px-2.5 gap-1.5",g(Au)(g(o).apiKeyInfo.status)])},{default:A(()=>[H("span",{class:et(["h-1.5 w-1.5 rounded-full shrink-0",g(xa)(g(o).apiKeyInfo.status)])},null,2),ce(" "+Ae(g(Nu)(g(o).apiKeyInfo.status)),1)]),_:1},8,["class"])],64)):(_(),q(g(Bt),{key:1,variant:"outline",class:"text-xs rounded-full px-2.5 border-amber-500/20 bg-amber-500/10 text-amber-600 dark:text-amber-400"},{default:A(()=>[ce(Ae(g(o).error?"加载失败":"Key 恢复中"),1)]),_:1}))])])])]),H("main",vm,[D(g(Pu))])],2),D(gf,{open:L.value,items:g(a).popupItems,"onUpdate:open":O,onCloseOnce:w,onCloseToday:V,onViewAll:Q,onViewAnnouncement:me},null,8,["open","items"])]))}}),Fm=ys(gm,[["__scopeId","data-v-bc32f76d"]]);export{Fm as default};
|
|
80
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P(I){return x(I)||b(I)||v(I)||C()}var K=r("a352"),$=r.n(K);function S(I){I.parentElement!==null&&I.parentElement.removeChild(I)}function L(I,T,R){var B=R===0?I.children[0]:I.children[R-1].nextSibling;I.insertBefore(T,B)}var k=r("dbf1");r("13d5"),r("4fad"),r("ac1f"),r("5319");function j(I){var T=Object.create(null);return function(B){var z=T[B];return z||(T[B]=I(B))}}var M=/-(\w)/g,F=j(function(I){return I.replace(M,function(T,R){return R.toUpperCase()})});r("5db7"),r("73d9");var O=["Start","Add","Remove","Update","End"],w=["Choose","Unchoose","Sort","Filter","Clone"],V=["Move"],Q=[V,O,w].flatMap(function(I){return I}).map(function(I){return"on".concat(I)}),me={manage:V,manageAndEmit:O,emit:w};function ie(I){return Q.indexOf(I)!==-1}r("caad"),r("2ca0");var W=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function N(I){return W.includes(I)}function U(I){return["transition-group","TransitionGroup"].includes(I)}function X(I){return["id","class","role","style"].includes(I)||I.startsWith("data-")||I.startsWith("aria-")||I.startsWith("on")}function se(I){return I.reduce(function(T,R){var B=E(R,2),z=B[0],ne=B[1];return T[z]=ne,T},{})}function fe(I){var T=I.$attrs,R=I.componentData,B=R===void 0?{}:R,z=se(Object.entries(T).filter(function(ne){var ue=E(ne,2),be=ue[0];return ue[1],X(be)}));return d(d({},z),B)}function ve(I){var T=I.$attrs,R=I.callBackBuilder,B=se(Ne(T));Object.entries(R).forEach(function(ne){var ue=E(ne,2),be=ue[0],Ue=ue[1];me[be].forEach(function(re){B["on".concat(re)]=Ue(re)})});var z="[data-draggable]".concat(B.draggable||"");return d(d({},B),{},{draggable:z})}function Ne(I){return Object.entries(I).filter(function(T){var R=E(T,2),B=R[0];return R[1],!X(B)}).map(function(T){var R=E(T,2),B=R[0],z=R[1];return[F(B),z]}).filter(function(T){var R=E(T,2),B=R[0];return R[1],!ie(B)})}r("c740");function Oe(I,T){if(!(I instanceof T))throw new TypeError("Cannot call a class as a function")}function it(I,T){for(var R=0;R<T.length;R++){var B=T[R];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(I,B.key,B)}}function an(I,T,R){return T&&it(I.prototype,T),I}var Xt=function(T){var R=T.el;return R},We=function(T,R){return T.__draggable_context=R},ze=function(T){return T.__draggable_context},sn=(function(){function I(T){var R=T.nodes,B=R.header,z=R.default,ne=R.footer,ue=T.root,be=T.realList;Oe(this,I),this.defaultNodes=z,this.children=[].concat(P(B),P(z),P(ne)),this.externalComponent=ue.externalComponent,this.rootTransition=ue.transition,this.tag=ue.tag,this.realList=be}return an(I,[{key:"render",value:function(R,B){var z=this.tag,ne=this.children,ue=this._isRootComponent,be=ue?{default:function(){return ne}}:ne;return R(z,B,be)}},{key:"updated",value:function(){var R=this.defaultNodes,B=this.realList;R.forEach(function(z,ne){We(Xt(z),{element:B[ne],index:ne})})}},{key:"getUnderlyingVm",value:function(R){return ze(R)}},{key:"getVmIndexFromDomIndex",value:function(R,B){var z=this.defaultNodes,ne=z.length,ue=B.children,be=ue.item(R);if(be===null)return ne;var Ue=ze(be);if(Ue)return Ue.index;if(ne===0)return 0;var re=Xt(z[0]),J=P(ue).findIndex(function(ee){return ee===re});return R<J?0:ne}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),I})(),At=r("8bbf");function Pt(I,T){var R=I[T];return R?R():[]}function Pr(I){var T=I.$slots,R=I.realList,B=I.getKey,z=R||[],ne=["header","footer"].map(function(ee){return Pt(T,ee)}),ue=E(ne,2),be=ue[0],Ue=ue[1],re=T.item;if(!re)throw new Error("draggable element must have an item slot");var J=z.flatMap(function(ee,ge){return re({element:ee,index:ge}).map(function(Ee){return Ee.key=B(ee),Ee.props=d(d({},Ee.props||{}),{},{"data-draggable":!0}),Ee})});if(J.length!==z.length)throw new Error("Item slot must have only one child");return{header:be,footer:Ue,default:J}}function _o(I){var T=U(I),R=!N(I)&&!T;return{transition:T,externalComponent:R,tag:R?Object(At.resolveComponent)(I):T?At.TransitionGroup:I}}function It(I){var T=I.$slots,R=I.tag,B=I.realList,z=I.getKey,ne=Pr({$slots:T,realList:B,getKey:z}),ue=_o(R);return new sn({nodes:ne,root:ue,realList:B})}function Gt(I,T){var R=this;Object(At.nextTick)(function(){return R.$emit(I.toLowerCase(),T)})}function xn(I){var T=this;return function(R,B){if(T.realList!==null)return T["onDrag".concat(I)](R,B)}}function Kn(I){var T=this,R=xn.call(this,I);return function(B,z){R.call(T,B,z),Gt.call(T,I,B)}}var Xn=null,Gn={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(T){return T}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Hn=["update:modelValue","change"].concat(P([].concat(P(me.manageAndEmit),P(me.emit)).map(function(I){return I.toLowerCase()}))),Wn=Object(At.defineComponent)({name:"draggable",inheritAttrs:!1,props:Gn,emits:Hn,data:function(){return{error:!1}},render:function(){try{this.error=!1;var T=this.$slots,R=this.$attrs,B=this.tag,z=this.componentData,ne=this.realList,ue=this.getKey,be=It({$slots:T,tag:B,realList:ne,getKey:ue});this.componentStructure=be;var Ue=fe({$attrs:R,componentData:z});return be.render(At.h,Ue)}catch(re){return this.error=!0,Object(At.h)("pre",{style:{color:"red"}},re.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&k.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var T=this;if(!this.error){var R=this.$attrs,B=this.$el,z=this.componentStructure;z.updated();var ne=ve({$attrs:R,callBackBuilder:{manageAndEmit:function(Ue){return Kn.call(T,Ue)},emit:function(Ue){return Gt.bind(T,Ue)},manage:function(Ue){return xn.call(T,Ue)}}}),ue=B.nodeType===1?B:B.parentElement;this._sortable=new $.a(ue,ne),this.targetDomElement=ue,ue.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var T=this.list;return T||this.modelValue},getKey:function(){var T=this.itemKey;return typeof T=="function"?T:function(R){return R[T]}}},watch:{$attrs:{handler:function(T){var R=this._sortable;R&&Ne(T).forEach(function(B){var z=E(B,2),ne=z[0],ue=z[1];R.option(ne,ue)})},deep:!0}},methods:{getUnderlyingVm:function(T){return this.componentStructure.getUnderlyingVm(T)||null},getUnderlyingPotencialDraggableComponent:function(T){return T.__draggable_component__},emitChanges:function(T){var R=this;Object(At.nextTick)(function(){return R.$emit("change",T)})},alterList:function(T){if(this.list){T(this.list);return}var R=P(this.modelValue);T(R),this.$emit("update:modelValue",R)},spliceList:function(){var T=arguments,R=function(z){return z.splice.apply(z,P(T))};this.alterList(R)},updatePosition:function(T,R){var B=function(ne){return ne.splice(R,0,ne.splice(T,1)[0])};this.alterList(B)},getRelatedContextFromMoveEvent:function(T){var R=T.to,B=T.related,z=this.getUnderlyingPotencialDraggableComponent(R);if(!z)return{component:z};var ne=z.realList,ue={list:ne,component:z};if(R!==B&&ne){var be=z.getUnderlyingVm(B)||{};return d(d({},be),ue)}return ue},getVmIndexFromDomIndex:function(T){return this.componentStructure.getVmIndexFromDomIndex(T,this.targetDomElement)},onDragStart:function(T){this.context=this.getUnderlyingVm(T.item),T.item._underlying_vm_=this.clone(this.context.element),Xn=T.item},onDragAdd:function(T){var R=T.item._underlying_vm_;if(R!==void 0){S(T.item);var B=this.getVmIndexFromDomIndex(T.newIndex);this.spliceList(B,0,R);var z={element:R,newIndex:B};this.emitChanges({added:z})}},onDragRemove:function(T){if(L(this.$el,T.item,T.oldIndex),T.pullMode==="clone"){S(T.clone);return}var R=this.context,B=R.index,z=R.element;this.spliceList(B,1);var ne={element:z,oldIndex:B};this.emitChanges({removed:ne})},onDragUpdate:function(T){S(T.item),L(T.from,T.item,T.oldIndex);var R=this.context.index,B=this.getVmIndexFromDomIndex(T.newIndex);this.updatePosition(R,B);var z={element:this.context.element,oldIndex:R,newIndex:B};this.emitChanges({moved:z})},computeFutureIndex:function(T,R){if(!T.element)return 0;var B=P(R.to.children).filter(function(be){return be.style.display!=="none"}),z=B.indexOf(R.related),ne=T.component.getVmIndexFromDomIndex(z),ue=B.indexOf(Xn)!==-1;return ue||!R.willInsertAfter?ne:ne+1},onDragMove:function(T,R){var B=this.move,z=this.realList;if(!B||!z)return!0;var ne=this.getRelatedContextFromMoveEvent(T),ue=this.computeFutureIndex(ne,T),be=d(d({},this.context),{},{futureIndex:ue}),Ue=d(d({},T),{},{relatedContext:ne,draggedContext:be});return B(Ue,R)},onDragEnd:function(){Xn=null}}}),zn=Wn;i.default=zn}),fb6a:(function(a,i,r){var s=r("23e7"),l=r("861d"),u=r("e8b5"),f=r("23cb"),c=r("50c4"),d=r("fc6a"),p=r("8418"),h=r("b622"),m=r("1dde"),v=r("ae40"),y=m("slice"),E=v("slice",{ACCESSORS:!0,0:0,1:2}),x=h("species"),b=[].slice,C=Math.max;s({target:"Array",proto:!0,forced:!y||!E},{slice:function(K,$){var S=d(this),L=c(S.length),k=f(K,L),j=f($===void 0?L:$,L),M,F,O;if(u(S)&&(M=S.constructor,typeof M=="function"&&(M===Array||u(M.prototype))?M=void 0:l(M)&&(M=M[x],M===null&&(M=void 0)),M===Array||M===void 0))return b.call(S,k,j);for(F=new(M===void 0?Array:M)(C(j-k,0)),O=0;k<j;k++,O++)k in S&&p(F,O,S[k]);return F.length=O,F}})}),fc6a:(function(a,i,r){var s=r("44ad"),l=r("1d80");a.exports=function(u){return s(l(u))}}),fdbc:(function(a,i){a.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),fdbf:(function(a,i,r){var s=r("4930");a.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"})}).default})})(Gr)),Gr.exports}var Nh=Ch();const Ah=Gf(Nh),Ph={class:"flex flex-col h-full w-64"},Dh={class:"flex items-center h-14 flex-shrink-0"},Rh={key:"expanded",class:"flex items-center gap-2.5 flex-1 min-w-0 px-3"},wh={class:"w-8 h-8 rounded-lg bg-gradient-to-br from-primary to-primary/60 flex items-center justify-center flex-shrink-0"},Mh={key:"collapsed",class:"flex items-center justify-center w-16"},Lh={key:"mobile-nav-expanded",class:"px-3 pt-1 pb-2 flex-shrink-0"},$h={class:"space-y-0.5"},Fh={key:0,class:"relative inline-flex h-2 w-2 ml-auto"},kh={key:"mobile-nav-hidden",class:"h-0 flex-shrink-0 overflow-hidden","aria-hidden":"true"},Bh={key:"expanded",class:"p-3 flex-shrink-0"},Vh={key:"collapsed",class:"flex justify-center py-3 flex-shrink-0 w-16"},Uh={class:"flex-1 min-h-0"},jh={class:"px-3 py-3"},_h={class:"flex flex-col items-center gap-2 py-3 w-16"},Kh=["onClick"],Xh={key:2},Gh={class:"space-y-1.5"},Hh={class:"flex items-center gap-1.5"},Wh={class:"text-sm font-medium truncate"},zh={class:"text-xs text-muted-foreground tabular-nums ml-auto"},Yh={class:"h-1.5 w-full rounded-full bg-muted overflow-hidden"},Jh={class:"text-[11px] text-muted-foreground"},qh={class:"flex-shrink-0 pb-3 pt-2"},Qh={key:"expanded",class:"flex items-center justify-between rounded-lg bg-muted/40 mx-3 px-3 py-2"},Zh={class:"text-xs text-muted-foreground"},em={class:"flex items-center gap-1"},tm={key:"collapsed",class:"flex flex-col items-center gap-1 w-16"},nm={class:"space-y-4"},rm={class:"space-y-2"},om=ye({__name:"AppSidebar",props:{isExpanded:{type:Boolean},isMobile:{type:Boolean},isMobileOpen:{type:Boolean}},setup(e){const t=e,n=ds(),o=Ca(),a=Ou(),i=is("sidebarState",null),r={"/dashboard":zu,"/card-bind":Vu,"/renewal":Ku,"/quota-pack":_u,"/announcements":hs,"/settings":Zu},s=Z(t.isExpanded||t.isMobile&&t.isMobileOpen);let l=null;Rt(()=>t.isExpanded||t.isMobile&&t.isMobileOpen,W=>{l&&(clearTimeout(l),l=null),W?l=setTimeout(()=>{s.value=!0},50):s.value=!1}),Ea(()=>{l&&clearTimeout(l)});const u=Z(!1),f=Z(!0),c=Z(!1),d=Z(!1),p=Z(null),h=Z(""),m=Z(!1),v=Z(null),y=Z(""),E=Z(!1),x=Te(()=>o.apiKeyList),b=Te(()=>o.activeKeyId),C=Te(()=>o.keyCount),P=Te({get:()=>[...o.apiKeyList],set:W=>{const N=W.map(U=>U.id);o.reorderKeys(N)}});function K(W){W!==b.value&&o.switchKey(W)}function $(W){const N=x.value.find(U=>U.id===W);N&&(p.value=W,h.value=N.name,d.value=!0)}function S(){p.value&&o.updateKeyMeta(p.value,h.value.trim()),d.value=!1,Et.success("保存成功")}function L(W){const N=x.value.find(U=>U.id===W);N&&(v.value=W,y.value=N.name,m.value=!0)}function k(){v.value&&(o.removeKey(v.value),o.hasKeys||n.push({name:"welcome"})),m.value=!1,Et.success("已删除")}function j(W){const N=x.value.find(U=>U.id===W);N&&navigator.clipboard.writeText(N.key).then(()=>Et.success("已复制到剪贴板")).catch(()=>Et.error("复制失败"))}function M(){n.currentRoute.value.name!=="dashboard"&&n.push({name:"dashboard"})}function F(){E.value=!0}function O(){o.logoutAll(),E.value=!1,Et.info("已登出所有 Key"),n.push({name:"welcome"})}function w(W){const N=o.getKeyInfo(W);if(!(N!=null&&N.quota))return 0;const U=N.billing_type,X=N.quota;if(U==="duration"){const se=X.daily_quota||0,fe=Math.max(0,se-(X.daily_spent||0)),ve=we(X.quota_pack_expires_at)&&X.quota_pack||0,Ne=we(X.quota_pack_expires_at)&&X.quota_pack_remaining||0,Oe=se+ve,it=fe+Ne;return Oe>0?Math.round((Oe-it)/Oe*100):0}if(U==="quota"){const se=X.total_quota||0,fe=X.remaining_quota||0,ve=we(X.quota_pack_expires_at)&&X.quota_pack||0,Ne=we(X.quota_pack_expires_at)&&X.quota_pack_remaining||0,Oe=se+ve,it=fe+Ne;return Oe>0?Math.round((Oe-it)/Oe*100):0}if(U==="count"){const se=X.max_requests||0,fe=X.remaining_count||0,ve=we(X.requests_pack_expires_at)&&X.requests_pack||0,Ne=we(X.requests_pack_expires_at)&&X.requests_pack_remaining||0,Oe=se+ve,it=fe+Ne;return Oe>0?Math.round((Oe-it)/Oe*100):0}return 0}function V(W){var X;if(o.isKeyInvalid(W))return W===b.value?"bg-red-100 text-red-600 hover:bg-red-200/70 dark:bg-red-500/15 dark:text-red-400 dark:hover:bg-red-500/25":"bg-red-50 text-red-600 hover:bg-red-100/80 dark:bg-red-500/10 dark:text-red-400 dark:hover:bg-red-500/20";const N=((X=o.getKeyInfo(W))==null?void 0:X.service_type)||"",U=Oa(N);return W===b.value?U.activeBtn:U.inactiveBtn}function Q(W){if(o.isKeyInvalid(W))return"Key 已失效";const N=o.getKeyInfo(W);if(!(N!=null&&N.quota))return"";const U=N.billing_type,X=N.quota;if(U==="duration"){const se=X.daily_quota||0,fe=Math.max(0,se-(X.daily_spent||0)),ve=we(X.quota_pack_expires_at)&&X.quota_pack||0,Ne=we(X.quota_pack_expires_at)&&X.quota_pack_remaining||0;return`剩余 ${qt(fe+Ne)} / ${qt(se+ve)}`}if(U==="quota"){const se=X.total_quota||0,fe=X.remaining_quota||0,ve=we(X.quota_pack_expires_at)&&X.quota_pack||0,Ne=we(X.quota_pack_expires_at)&&X.quota_pack_remaining||0;return`剩余 ${qt(fe+Ne)} / ${qt(se+ve)}`}if(U==="count"){const se=X.max_requests||0,fe=X.remaining_count||0,ve=we(X.requests_pack_expires_at)&&X.requests_pack||0,Ne=we(X.requests_pack_expires_at)&&X.requests_pack_remaining||0;return`剩余 ${fe+Ne} / ${se+ve} 次`}return""}function me(W){const N=w(W);return N>80?"bg-destructive":N>50?"bg-[hsl(var(--warning))]":"bg-primary"}function ie(W){return xa(o.getKeyStatus(W))}return br(()=>{o.fetchAllKeyInfo()}),(W,N)=>(_(),Se(en,null,[H("div",Ph,[H("div",Dh,[D(Pn,{name:"sf",mode:"out-in"},{default:A(()=>[s.value?(_(),Se("div",Rh,[H("div",wh,[D(g(ju),{class:"w-4 h-4 text-white"})]),N[18]||(N[18]=H("div",{class:"flex flex-col min-w-0"},[H("span",{class:"font-semibold text-sm leading-tight"},"云驿"),H("span",{class:"text-[10px] text-muted-foreground leading-tight"},"API Monitor")],-1)),N[19]||(N[19]=H("div",{class:"flex-1"},null,-1)),e.isMobile?vt("",!0):(_(),q(g(ke),{key:0,variant:"ghost",size:"icon",class:"h-8 w-8 flex-shrink-0",onClick:N[0]||(N[0]=U=>{var X;return(X=g(i))==null?void 0:X.toggle()}),title:"折叠侧边栏"},{default:A(()=>[D(g(Ju),{class:"h-4 w-4"})]),_:1}))])):(_(),Se("div",Mh,[D(g(ke),{variant:"ghost",size:"icon",class:"h-8 w-8",onClick:N[1]||(N[1]=U=>{var X;return(X=g(i))==null?void 0:X.toggle()}),title:"展开侧边栏"},{default:A(()=>[D(g(qu),{class:"h-4 w-4"})]),_:1})]))]),_:1})]),D(Pn,{name:"sf",mode:"out-in"},{default:A(()=>[e.isMobile&&s.value?(_(),Se("div",Lh,[D(g(yf),{open:f.value,class:"group/collapsible","onUpdate:open":N[2]||(N[2]=U=>f.value=U)},{default:A(()=>[D(g(Sf),{class:"flex items-center justify-between w-full px-3 py-2 text-xs font-medium text-muted-foreground uppercase tracking-wider hover:text-foreground transition-colors rounded-md"},{default:A(()=>[N[20]||(N[20]=H("span",null,"导航",-1)),D(g(ms),{class:"h-3.5 w-3.5 transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})]),_:1}),D(g(Ef),null,{default:A(()=>{var U;return[H("nav",$h,[(_(!0),Se(en,null,ro(((U=g(i))==null?void 0:U.menuItems)??[],X=>{var se;return _(),q(g(ps),{key:X.path,to:X.path,class:et(["flex min-h-10 items-center gap-3 px-3 py-2 text-[13px] font-medium rounded-lg transition-colors",(se=g(i))!=null&&se.isActive(X.path)?"bg-primary/10 text-primary font-semibold":"text-muted-foreground hover:bg-muted hover:text-foreground"])},{default:A(()=>{var fe;return[(_(),q(tu(r[X.path]),{class:"h-4 w-4 flex-shrink-0"})),H("span",null,Ae(X.title),1),X.path==="/announcements"&&((fe=g(i))!=null&&fe.shouldShowAnnouncementDot.value)?(_(),Se("span",Fh,[...N[21]||(N[21]=[H("span",{class:"absolute inline-flex h-full w-full animate-ping rounded-full bg-destructive/75"},null,-1),H("span",{class:"relative inline-flex h-2 w-2 rounded-full bg-destructive"},null,-1)])])):vt("",!0)]}),_:2},1032,["to","class"])}),128))])]}),_:1})]),_:1},8,["open"]),N[22]||(N[22]=H("div",{class:"mt-2 border-b border-border/40"},null,-1))])):(_(),Se("div",kh))]),_:1}),D(Pn,{name:"sf",mode:"out-in"},{default:A(()=>[s.value?(_(),Se("div",Bh,[D(g(ke),{class:"w-full gap-2",onClick:N[3]||(N[3]=U=>c.value=!0)},{default:A(()=>[D(g(ao),{class:"h-4 w-4"}),N[23]||(N[23]=ce(" 添加 API Key ",-1))]),_:1})])):(_(),Se("div",Vh,[D(g(wr),null,{default:A(()=>[D(g(Mr),null,{default:A(()=>[D(g(Lr),{"as-child":""},{default:A(()=>[D(g(ke),{size:"icon",class:"h-10 w-10 rounded-full",onClick:N[4]||(N[4]=U=>c.value=!0)},{default:A(()=>[D(g(ao),{class:"h-4 w-4"})]),_:1})]),_:1}),D(g($r),{side:"right"},{default:A(()=>[...N[24]||(N[24]=[ce("添加 API Key",-1)])]),_:1})]),_:1})]),_:1})]))]),_:1}),H("div",Uh,[D(Pn,{name:"sf",mode:"out-in"},{default:A(()=>[s.value?(_(),q(g(vi),{key:"expanded",class:"h-full"},{default:A(()=>[H("div",jh,[D(g(Ah),{modelValue:P.value,"onUpdate:modelValue":N[5]||(N[5]=U=>P.value=U),"item-key":"id","ghost-class":"drag-ghost","chosen-class":"drag-chosen","drag-class":"drag-active",animation:200,delay:150,"delay-on-touch-only":!1,"touch-start-threshold":5,"force-fallback":!0,"fallback-on-body":!0,"fallback-tolerance":3,filter:".no-drag","prevent-on-filter":!1,class:"space-y-2",onStart:N[6]||(N[6]=U=>u.value=!0),onEnd:N[7]||(N[7]=U=>u.value=!1)},{item:A(({element:U})=>[D(Vf,{"stored-key":U,"key-info":g(o).getKeyInfo(U.id),"is-invalid":g(o).isKeyInvalid(U.id),"is-active":U.id===b.value,"is-dragging":u.value,onClick:X=>K(U.id),onEdit:X=>$(U.id),onDelete:X=>L(U.id),onCopy:X=>j(U.id)},null,8,["stored-key","key-info","is-invalid","is-active","is-dragging","onClick","onEdit","onDelete","onCopy"])]),_:1},8,["modelValue"])])]),_:1})):(_(),q(g(vi),{key:"collapsed",class:"h-full"},{default:A(()=>[H("div",_h,[D(g(wr),null,{default:A(()=>[(_(!0),Se(en,null,ro(x.value,U=>(_(),q(g(Mr),{key:U.id},{default:A(()=>[D(g(Lr),{"as-child":""},{default:A(()=>{var X,se;return[H("button",{class:et(["w-10 h-10 rounded-full flex items-center justify-center text-xs font-bold transition-all",V(U.id)]),onClick:fe=>K(U.id)},[((X=g(o).getKeyInfo(U.id))==null?void 0:X.service_type)==="claude"?(_(),q(g(vs),{key:0,class:"w-4 h-4"})):((se=g(o).getKeyInfo(U.id))==null?void 0:se.service_type)==="codex"?(_(),q(g(gs),{key:1,class:"w-4 h-4"})):(_(),Se("span",Xh,Ae(U.name.charAt(0).toUpperCase()),1))],10,Kh)]}),_:2},1024),D(g($r),{side:"right","side-offset":8,class:"w-48 rounded-lg border bg-popover p-3 text-popover-foreground shadow-md"},{default:A(()=>[H("div",Gh,[H("div",Hh,[H("span",{class:et(["w-1.5 h-1.5 rounded-full flex-shrink-0",ie(U.id)])},null,2),H("span",Wh,Ae(U.name),1),H("span",zh,Ae(w(U.id))+"%",1)]),H("div",Yh,[H("div",{class:et(["h-full rounded-full transition-all",me(U.id)]),style:nu({width:w(U.id)+"%"})},null,6)]),H("div",Jh,Ae(Q(U.id)),1)])]),_:2},1024)]),_:2},1024))),128))]),_:1})])]),_:1}))]),_:1})]),H("div",qh,[D(Pn,{name:"sf",mode:"out-in"},{default:A(()=>[s.value?(_(),Se("div",Qh,[H("span",Zh,Ae(C.value)+" 张卡片",1),H("div",em,[D(g(ke),{variant:"ghost",size:"icon",class:"h-7 w-7",onClick:N[8]||(N[8]=U=>g(a).toggleTheme()),title:"切换主题"},{default:A(()=>[g(a).isDark?(_(),q(g(yi),{key:0,class:"h-3.5 w-3.5"})):(_(),q(g(Ei),{key:1,class:"h-3.5 w-3.5"}))]),_:1}),D(g(ke),{variant:"ghost",size:"icon",class:"h-7 w-7 hover:bg-red-500/10 hover:text-red-500",onClick:F,title:"登出所有"},{default:A(()=>[D(g(Si),{class:"h-3.5 w-3.5"})]),_:1})])])):(_(),Se("div",tm,[D(g(wr),null,{default:A(()=>[D(g(Mr),null,{default:A(()=>[D(g(Lr),{"as-child":""},{default:A(()=>[D(g(ke),{variant:"ghost",size:"icon",class:"h-7 w-7",onClick:N[9]||(N[9]=U=>g(a).toggleTheme())},{default:A(()=>[g(a).isDark?(_(),q(g(yi),{key:0,class:"h-3.5 w-3.5"})):(_(),q(g(Ei),{key:1,class:"h-3.5 w-3.5"}))]),_:1})]),_:1}),D(g($r),{side:"right"},{default:A(()=>[...N[25]||(N[25]=[ce("切换主题",-1)])]),_:1})]),_:1})]),_:1}),D(g(wr),null,{default:A(()=>[D(g(Mr),null,{default:A(()=>[D(g(Lr),{"as-child":""},{default:A(()=>[D(g(ke),{variant:"ghost",size:"icon",class:"h-7 w-7 hover:bg-red-500/10 hover:text-red-500",onClick:F},{default:A(()=>[D(g(Si),{class:"h-3.5 w-3.5"})]),_:1})]),_:1}),D(g($r),{side:"right"},{default:A(()=>[...N[26]||(N[26]=[ce("登出所有",-1)])]),_:1})]),_:1})]),_:1})]))]),_:1})])]),D(Xf,{open:c.value,"onUpdate:open":N[10]||(N[10]=U=>c.value=U),onAdded:M},null,8,["open"]),D(g(lr),{open:d.value,"onUpdate:open":N[13]||(N[13]=U=>d.value=U)},{default:A(()=>[D(g(rr),{class:"sm:max-w-md"},{default:A(()=>[D(g(or),null,{default:A(()=>[D(g(ar),null,{default:A(()=>[...N[27]||(N[27]=[ce("编辑 API Key",-1)])]),_:1}),D(g(ir),null,{default:A(()=>[...N[28]||(N[28]=[ce("修改名称",-1)])]),_:1})]),_:1}),H("div",nm,[H("div",rm,[D(g(la),{for:"edit-name"},{default:A(()=>[...N[29]||(N[29]=[ce("名称",-1)])]),_:1}),D(g(sa),{id:"edit-name",modelValue:h.value,"onUpdate:modelValue":N[11]||(N[11]=U=>h.value=U),placeholder:"自定义名称"},null,8,["modelValue"])])]),D(g(sr),null,{default:A(()=>[D(g(ke),{variant:"outline",onClick:N[12]||(N[12]=U=>d.value=!1)},{default:A(()=>[...N[30]||(N[30]=[ce("取消",-1)])]),_:1}),D(g(ke),{onClick:S},{default:A(()=>[...N[31]||(N[31]=[ce("保存",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),D(g(lr),{open:m.value,"onUpdate:open":N[15]||(N[15]=U=>m.value=U)},{default:A(()=>[D(g(rr),{class:"sm:max-w-sm"},{default:A(()=>[D(g(or),null,{default:A(()=>[D(g(ar),null,{default:A(()=>[...N[32]||(N[32]=[ce("确认删除",-1)])]),_:1}),D(g(ir),null,{default:A(()=>[ce(" 确定要删除「"+Ae(y.value)+"」吗?此操作不可撤销。 ",1)]),_:1})]),_:1}),D(g(sr),null,{default:A(()=>[D(g(ke),{variant:"outline",onClick:N[14]||(N[14]=U=>m.value=!1)},{default:A(()=>[...N[33]||(N[33]=[ce("取消",-1)])]),_:1}),D(g(ke),{variant:"destructive",onClick:k},{default:A(()=>[...N[34]||(N[34]=[ce("删除",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),D(g(lr),{open:E.value,"onUpdate:open":N[17]||(N[17]=U=>E.value=U)},{default:A(()=>[D(g(rr),{class:"sm:max-w-sm"},{default:A(()=>[D(g(or),null,{default:A(()=>[D(g(ar),null,{default:A(()=>[...N[35]||(N[35]=[ce("确认登出",-1)])]),_:1}),D(g(ir),null,{default:A(()=>[...N[36]||(N[36]=[ce(" 确定要登出所有 API Key 吗?您需要重新输入 Key 才能继续使用。 ",-1)])]),_:1})]),_:1}),D(g(sr),null,{default:A(()=>[D(g(ke),{variant:"outline",onClick:N[16]||(N[16]=U=>E.value=!1)},{default:A(()=>[...N[37]||(N[37]=[ce("取消",-1)])]),_:1}),D(g(ke),{variant:"destructive",onClick:O},{default:A(()=>[...N[38]||(N[38]=[ce("登出",-1)])]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])],64))}}),am=ys(om,[["__scopeId","data-v-f6c24705"]]),im={class:"min-h-screen bg-background"},sm={class:"sticky top-0 z-30 w-full border-b border-border/40 bg-card"},lm={class:"flex h-14 items-center px-4 max-w-7xl mx-auto"},um={key:1,class:"text-sm font-semibold text-foreground truncate"},cm={key:2,class:"flex items-center gap-1"},fm={class:"inline-flex items-center gap-1.5"},dm={key:0,class:"relative inline-flex h-2 w-2"},pm={class:"flex items-center gap-2"},hm={class:"hidden sm:flex items-center gap-1.5"},mm={class:"truncate"},vm={class:"p-4 sm:p-6"},ns="yunyi_sidebar_expanded",rs=768,os=1280,gm=ye({__name:"DashboardLayout",setup(e){const t=Cu(),n=ds(),o=Ca(),a=wu(),i=Z(window.innerWidth),r=Te(()=>i.value<rs),s=Te(()=>i.value>=rs&&i.value<os),l=Te(()=>i.value>=os),u=Z(!1);function f(){i.value=window.innerWidth}br(()=>{window.addEventListener("resize",f),a.hydrate(),a.refreshRecent(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{u.value=!0})})}),Ea(()=>{window.removeEventListener("resize",f),document.body.style.overflow=""});const c=Z(localStorage.getItem(ns)!=="false"),d=Z(!1),p=Z(!1),h=Te(()=>r.value?!1:s.value?p.value:c.value),m=Te(()=>r.value&&d.value||s.value&&p.value),v=Te(()=>r.value?d.value?"w-64 translate-x-0":"w-64 -translate-x-full":s.value?p.value?"w-64":"w-16":c.value?"w-64":"w-16"),y=Te(()=>r.value?"pl-0":s.value?"pl-16":c.value?"pl-64":"pl-16");function E(){r.value?d.value=!d.value:s.value?p.value=!p.value:(c.value=!c.value,localStorage.setItem(ns,String(c.value)))}function x(){d.value=!1,p.value=!1}Rt([r,s,l],()=>{d.value=!1,p.value=!1,document.body.style.overflow=""}),Rt(m,ie=>{document.body.style.overflow=ie?"hidden":""}),Rt(()=>t.path,()=>{r.value&&(d.value=!1)});const b=[{path:"/dashboard",title:"仪表盘"},{path:"/card-bind",title:"叠卡"},{path:"/renewal",title:"续费"},{path:"/quota-pack",title:"额度包"},{path:"/announcements",title:"公告"},{path:"/settings",title:"设置"}],C=ie=>t.path===ie||t.path.startsWith(`${ie}/`),P=Te(()=>{const ie=b.find(W=>C(W.path));return(ie==null?void 0:ie.title)??"云驿"}),K=Te(()=>t.name==="announcements"||t.name==="announcement-detail"),$=Te(()=>a.hasUnread);aa("sidebarState",{isSidebarExpanded:c,isMobileSidebarOpen:d,isMobile:r,isTablet:s,isDesktop:l,isTabletOverlayOpen:p,toggle:E,menuItems:b,isActive:C,shouldShowAnnouncementDot:$});const S=Te(()=>a.shouldShowPopup&&!K.value),L=Z(!1),k=Z(!1),j=Z(0);aa(Xu,{refreshTick:j});async function M(){if(!k.value){k.value=!0;try{if(!await o.fetchInfo()&&!o.apiKeyInfo){Et.error(o.error||"刷新失败");return}await o.refreshAllKeyInfo(),await a.refreshRecent(),j.value++,Et.success("数据已刷新")}catch{Et.error("刷新失败")}finally{setTimeout(()=>{k.value=!1},600)}}}function F(){L.value=S.value}function O(ie){L.value=ie}function w(){a.dismissPopupOnce(),L.value=!1}function V(){a.dismissPopupForToday(),L.value=!1}function Q(){L.value=!1,n.push({name:"announcements"})}function me(ie){L.value=!1,n.push({name:"announcement-detail",params:{id:ie}})}return Rt(S,()=>{F()}),(ie,W)=>(_(),Se("div",im,[D(Pn,{name:"fade"},{default:A(()=>[m.value?(_(),Se("div",{key:0,class:"fixed inset-0 z-40 bg-white/60 dark:bg-black/40 backdrop-blur-sm",onClick:x})):vt("",!0)]),_:1}),H("aside",{class:et(["fixed inset-y-0 left-0 z-50 border-r border-border/40 bg-card overflow-hidden",[v.value,u.value?"transition-[width,transform] duration-300":""]])},[D(am,{"is-expanded":h.value,"is-mobile":r.value,"is-mobile-open":d.value},null,8,["is-expanded","is-mobile","is-mobile-open"])],2),H("div",{class:et([y.value,u.value?"transition-[padding-left] duration-300":""])},[H("header",sm,[H("div",lm,[r.value?(_(),q(g(ke),{key:0,variant:"ghost",size:"icon",class:"h-9 w-9 mr-2",onClick:E},{default:A(()=>[D(g(Yu),{class:"h-5 w-5"})]),_:1})):vt("",!0),r.value?(_(),Se("span",um,Ae(P.value),1)):vt("",!0),r.value?vt("",!0):(_(),Se("nav",cm,[(_(),Se(en,null,ro(b,N=>D(g(ps),{key:N.path,to:N.path,class:et(["px-3 py-1.5 text-sm font-medium rounded-md transition-colors",C(N.path)?"bg-primary/10 text-primary font-semibold":"text-muted-foreground hover:bg-muted hover:text-foreground"])},{default:A(()=>[H("span",fm,[H("span",null,Ae(N.title),1),N.path==="/announcements"&&$.value?(_(),Se("span",dm,[...W[0]||(W[0]=[H("span",{class:"absolute inline-flex h-full w-full animate-ping rounded-full bg-destructive/75"},null,-1),H("span",{class:"relative inline-flex h-2 w-2 rounded-full bg-destructive"},null,-1)])])):vt("",!0)])]),_:2},1032,["to","class"])),64))])),W[1]||(W[1]=H("div",{class:"flex-1"},null,-1)),H("div",pm,[D(g(ke),{variant:"ghost",size:"icon",class:"h-8 w-8",disabled:k.value,onClick:M,title:"刷新数据"},{default:A(()=>[D(g(Gu),{class:et(["h-4 w-4 transition-transform",{"animate-spin":k.value}])},null,8,["class"])]),_:1},8,["disabled"]),H("div",hm,[g(o).apiKeyInfo?(_(),Se(en,{key:0},[D(g(Bt),{variant:"outline",class:"text-xs font-mono rounded-full px-2.5"},{default:A(()=>[ce(Ae(g(o).apiKeyInfo.key_preview),1)]),_:1}),D(g(Bt),{variant:"outline",class:et(["text-xs rounded-full px-2.5 gap-1 max-w-[18rem]",g(Oa)(g(o).apiKeyInfo.service_type).badge]),title:g(hi)(g(o).apiKeyInfo.service_type,g(o).apiKeyInfo.sub_service_type_name)},{default:A(()=>[g(o).apiKeyInfo.service_type==="claude"?(_(),q(g(vs),{key:0,class:"h-3 w-3"})):g(o).apiKeyInfo.service_type==="codex"?(_(),q(g(gs),{key:1,class:"h-3 w-3"})):vt("",!0),H("span",mm,Ae(g(hi)(g(o).apiKeyInfo.service_type,g(o).apiKeyInfo.sub_service_type_name)),1)]),_:1},8,["class","title"]),D(g(Bt),{variant:"outline",class:et(["text-xs rounded-full px-2.5 gap-1.5",g(Au)(g(o).apiKeyInfo.status)])},{default:A(()=>[H("span",{class:et(["h-1.5 w-1.5 rounded-full shrink-0",g(xa)(g(o).apiKeyInfo.status)])},null,2),ce(" "+Ae(g(Nu)(g(o).apiKeyInfo.status)),1)]),_:1},8,["class"])],64)):(_(),q(g(Bt),{key:1,variant:"outline",class:"text-xs rounded-full px-2.5 border-amber-500/20 bg-amber-500/10 text-amber-600 dark:text-amber-400"},{default:A(()=>[ce(Ae(g(o).error?"加载失败":"Key 恢复中"),1)]),_:1}))])])])]),H("main",vm,[D(g(Pu))])],2),D(gf,{open:L.value,items:g(a).popupItems,"onUpdate:open":O,onCloseOnce:w,onCloseToday:V,onViewAll:Q,onViewAnnouncement:me},null,8,["open","items"])]))}}),Fm=ys(gm,[["__scopeId","data-v-bc32f76d"]]);export{Fm as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as K,r as f,d as S,L as P,x as w,A as t,H as a,u as s,P as d,E as x,_ as C,D as n,y as o,F as I}from"./chart-vendor-CULJE59K.js";import{u as V,a as j,b as E,_ as g,K as N,L as $,A as B,t as L}from"./index-Da98HOxL.js";import{_ as v,E as M}from"./Input.vue_vue_type_script_setup_true_lang-B0SyPmYb.js";import{_ as h}from"./Label.vue_vue_type_script_setup_true_lang-CxYORSgN.js";import{C as T,S as z,M as F,_ as R}from"./_plugin-vue_export-helper-5cjT4u0R.js";import{Z as U,S as _}from"./zap-l5zbZqrM.js";import{A as D}from"./activity-wYWtyqTJ.js";import{E as W}from"./eye-CY62vip0.js";const Z={class:"min-h-screen flex flex-col md:flex-row"},H={class:"relative w-full md:w-1/2 lg:w-[55%] bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900 dark:from-gray-950 dark:via-slate-900 dark:to-gray-950 overflow-hidden flex flex-col justify-center py-12 px-6 md:py-16 md:px-10 lg:px-16"},O={class:"relative z-10 max-w-lg mx-auto md:mx-0 md:max-w-none"},q={class:"flex items-center gap-3 mb-8 opacity-0 animate-slide-in-left [animation-fill-mode:forwards]",style:{"animation-delay":"0.1s"}},G={class:"w-10 h-10 rounded-xl bg-white/10 border border-white/20 flex items-center justify-center backdrop-blur-sm"},J={class:"hidden md:grid grid-cols-1 lg:grid-cols-3 gap-3 mb-10"},Q={class:"rounded-xl bg-white/[0.05] border border-white/[0.08] p-4 opacity-0 animate-scale-in [animation-fill-mode:forwards]",style:{"animation-delay":"0.4s"}},X={class:"w-8 h-8 rounded-lg bg-blue-500/20 flex items-center justify-center mb-3"},Y={class:"rounded-xl bg-white/[0.05] border border-white/[0.08] p-4 opacity-0 animate-scale-in [animation-fill-mode:forwards]",style:{"animation-delay":"0.5s"}},ee={class:"w-8 h-8 rounded-lg bg-emerald-500/20 flex items-center justify-center mb-3"},te={class:"rounded-xl bg-white/[0.05] border border-white/[0.08] p-4 opacity-0 animate-scale-in [animation-fill-mode:forwards]",style:{"animation-delay":"0.6s"}},se={class:"w-8 h-8 rounded-lg bg-violet-500/20 flex items-center justify-center mb-3"},ae={class:"right-panel relative w-full md:w-1/2 lg:w-[45%] bg-background flex flex-col justify-center px-6 py-8 md:px-8 lg:px-12"},le={class:"absolute top-4 right-4 z-20"},oe={class:"w-full max-w-sm mx-auto opacity-0 animate-slide-in-right [animation-fill-mode:forwards]",style:{"animation-delay":"0.2s"}},ie={class:"space-y-2"},de={class:"relative"},ne=["disabled"],re={class:"space-y-2"},me={class:"mt-8 pt-6 border-t border-border"},ue={class:"flex items-center justify-center gap-2 text-xs text-muted-foreground"},fe=K({__name:"Welcome",setup(xe){const b=E(),r=V(),c=j(),m=f(""),p=f(""),l=f(!1),u=f(!1),y=S(()=>m.value.trim().length>0);P(()=>{r.hasKeys&&b.push({name:"dashboard"})});async function k(){if(!y.value)return;l.value=!0,r.clearError(),await r.addKey(m.value.trim(),p.value.trim())?b.push({name:"dashboard"}):L.error("验证失败",r.error||"请检查 API Key"),l.value=!1}return(A,e)=>(o(),w("div",Z,[t("div",H,[e[14]||(e[14]=t("div",{class:"absolute inset-0 dot-grid opacity-[0.03]"},null,-1)),e[15]||(e[15]=t("div",{class:"absolute top-[-10%] left-[-5%] w-[400px] h-[400px] bg-blue-500/10 rounded-full blur-3xl animate-float"},null,-1)),e[16]||(e[16]=t("div",{class:"absolute bottom-[-15%] right-[-10%] w-[350px] h-[350px] bg-indigo-500/10 rounded-full blur-3xl animate-float",style:{"animation-duration":"8s","animation-delay":"-2s"}},null,-1)),e[17]||(e[17]=t("div",{class:"absolute top-[40%] right-[20%] w-[250px] h-[250px] bg-cyan-500/8 rounded-full blur-3xl animate-float",style:{"animation-duration":"10s","animation-delay":"-4s"}},null,-1)),t("div",O,[t("div",q,[t("div",G,[a(s(T),{class:"w-5 h-5 text-white"})]),e[4]||(e[4]=t("span",{class:"text-xl font-semibold text-white tracking-wide"},"
|
|
1
|
+
import{j as K,r as f,d as S,L as P,x as w,A as t,H as a,u as s,P as d,E as x,_ as C,D as n,y as o,F as I}from"./chart-vendor-CULJE59K.js";import{u as V,a as j,b as E,_ as g,K as N,L as $,A as B,t as L}from"./index-Da98HOxL.js";import{_ as v,E as M}from"./Input.vue_vue_type_script_setup_true_lang-B0SyPmYb.js";import{_ as h}from"./Label.vue_vue_type_script_setup_true_lang-CxYORSgN.js";import{C as T,S as z,M as F,_ as R}from"./_plugin-vue_export-helper-5cjT4u0R.js";import{Z as U,S as _}from"./zap-l5zbZqrM.js";import{A as D}from"./activity-wYWtyqTJ.js";import{E as W}from"./eye-CY62vip0.js";const Z={class:"min-h-screen flex flex-col md:flex-row"},H={class:"relative w-full md:w-1/2 lg:w-[55%] bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900 dark:from-gray-950 dark:via-slate-900 dark:to-gray-950 overflow-hidden flex flex-col justify-center py-12 px-6 md:py-16 md:px-10 lg:px-16"},O={class:"relative z-10 max-w-lg mx-auto md:mx-0 md:max-w-none"},q={class:"flex items-center gap-3 mb-8 opacity-0 animate-slide-in-left [animation-fill-mode:forwards]",style:{"animation-delay":"0.1s"}},G={class:"w-10 h-10 rounded-xl bg-white/10 border border-white/20 flex items-center justify-center backdrop-blur-sm"},J={class:"hidden md:grid grid-cols-1 lg:grid-cols-3 gap-3 mb-10"},Q={class:"rounded-xl bg-white/[0.05] border border-white/[0.08] p-4 opacity-0 animate-scale-in [animation-fill-mode:forwards]",style:{"animation-delay":"0.4s"}},X={class:"w-8 h-8 rounded-lg bg-blue-500/20 flex items-center justify-center mb-3"},Y={class:"rounded-xl bg-white/[0.05] border border-white/[0.08] p-4 opacity-0 animate-scale-in [animation-fill-mode:forwards]",style:{"animation-delay":"0.5s"}},ee={class:"w-8 h-8 rounded-lg bg-emerald-500/20 flex items-center justify-center mb-3"},te={class:"rounded-xl bg-white/[0.05] border border-white/[0.08] p-4 opacity-0 animate-scale-in [animation-fill-mode:forwards]",style:{"animation-delay":"0.6s"}},se={class:"w-8 h-8 rounded-lg bg-violet-500/20 flex items-center justify-center mb-3"},ae={class:"right-panel relative w-full md:w-1/2 lg:w-[45%] bg-background flex flex-col justify-center px-6 py-8 md:px-8 lg:px-12"},le={class:"absolute top-4 right-4 z-20"},oe={class:"w-full max-w-sm mx-auto opacity-0 animate-slide-in-right [animation-fill-mode:forwards]",style:{"animation-delay":"0.2s"}},ie={class:"space-y-2"},de={class:"relative"},ne=["disabled"],re={class:"space-y-2"},me={class:"mt-8 pt-6 border-t border-border"},ue={class:"flex items-center justify-center gap-2 text-xs text-muted-foreground"},fe=K({__name:"Welcome",setup(xe){const b=E(),r=V(),c=j(),m=f(""),p=f(""),l=f(!1),u=f(!1),y=S(()=>m.value.trim().length>0);P(()=>{r.hasKeys&&b.push({name:"dashboard"})});async function k(){if(!y.value)return;l.value=!0,r.clearError(),await r.addKey(m.value.trim(),p.value.trim())?b.push({name:"dashboard"}):L.error("验证失败",r.error||"请检查 API Key"),l.value=!1}return(A,e)=>(o(),w("div",Z,[t("div",H,[e[14]||(e[14]=t("div",{class:"absolute inset-0 dot-grid opacity-[0.03]"},null,-1)),e[15]||(e[15]=t("div",{class:"absolute top-[-10%] left-[-5%] w-[400px] h-[400px] bg-blue-500/10 rounded-full blur-3xl animate-float"},null,-1)),e[16]||(e[16]=t("div",{class:"absolute bottom-[-15%] right-[-10%] w-[350px] h-[350px] bg-indigo-500/10 rounded-full blur-3xl animate-float",style:{"animation-duration":"8s","animation-delay":"-2s"}},null,-1)),e[17]||(e[17]=t("div",{class:"absolute top-[40%] right-[20%] w-[250px] h-[250px] bg-cyan-500/8 rounded-full blur-3xl animate-float",style:{"animation-duration":"10s","animation-delay":"-4s"}},null,-1)),t("div",O,[t("div",q,[t("div",G,[a(s(T),{class:"w-5 h-5 text-white"})]),e[4]||(e[4]=t("span",{class:"text-xl font-semibold text-white tracking-wide"},"云驿",-1))]),e[11]||(e[11]=t("h1",{class:"text-3xl lg:text-5xl font-bold text-white leading-tight mb-4 opacity-0 animate-slide-in-left [animation-fill-mode:forwards]",style:{"animation-delay":"0.2s"}},[d(" 智能 API 中转"),t("br"),d("监控与管理平台 ")],-1)),e[12]||(e[12]=t("p",{class:"text-base lg:text-lg text-white/60 mb-10 max-w-md opacity-0 animate-slide-in-left [animation-fill-mode:forwards]",style:{"animation-delay":"0.3s"}}," 为开发者提供高性能的 Claude API 代理服务,实时追踪用量与成本 ",-1)),t("div",J,[t("div",Q,[t("div",X,[a(s(U),{class:"w-4 h-4 text-blue-400"})]),e[5]||(e[5]=t("h3",{class:"text-sm font-medium text-white mb-1"},"极速转发",-1)),e[6]||(e[6]=t("p",{class:"text-xs text-white/40 leading-relaxed"},"低延迟高吞吐的 API 代理服务",-1))]),t("div",Y,[t("div",ee,[a(s(D),{class:"w-4 h-4 text-emerald-400"})]),e[7]||(e[7]=t("h3",{class:"text-sm font-medium text-white mb-1"},"实时监控",-1)),e[8]||(e[8]=t("p",{class:"text-xs text-white/40 leading-relaxed"},"Token 用量与成本实时追踪",-1))]),t("div",te,[t("div",se,[a(s(_),{class:"w-4 h-4 text-violet-400"})]),e[9]||(e[9]=t("h3",{class:"text-sm font-medium text-white mb-1"},"安全可靠",-1)),e[10]||(e[10]=t("p",{class:"text-xs text-white/40 leading-relaxed"},"自动重试与故障转移,服务永不中断",-1))])]),e[13]||(e[13]=t("div",{class:"hidden md:flex items-center gap-2 opacity-0 animate-slide-in-left [animation-fill-mode:forwards]",style:{"animation-delay":"0.7s"}},[t("span",{class:"px-3 py-1.5 rounded-full text-xs font-medium bg-white/[0.06] border border-white/[0.1] text-white/50"},"Claude API"),t("span",{class:"px-3 py-1.5 rounded-full text-xs font-medium bg-white/[0.06] border border-white/[0.1] text-white/50"},"Codex API"),t("span",{class:"px-3 py-1.5 rounded-full text-xs font-medium bg-white/[0.06] border border-white/[0.1] text-white/50"},"SSE Streaming")],-1))])]),t("div",ae,[t("div",le,[a(s(g),{variant:"ghost",size:"icon",class:"h-9 w-9 text-muted-foreground hover:text-foreground",onClick:e[0]||(e[0]=i=>s(c).toggleTheme()),title:"切换主题"},{default:x(()=>[s(c).isDark?(o(),n(s(z),{key:0,class:"h-4 w-4"})):(o(),n(s(F),{key:1,class:"h-4 w-4"}))]),_:1})]),t("div",oe,[e[22]||(e[22]=t("div",{class:"mb-8"},[t("h2",{class:"text-2xl font-bold text-foreground mb-2"},"开始使用"),t("p",{class:"text-sm text-muted-foreground"}," 输入您的 API Key 以访问使用量监控面板 ")],-1)),t("form",{onSubmit:C(k,["prevent"]),class:"space-y-5"},[t("div",ie,[a(s(h),{for:"apiKey",class:"flex items-center gap-2 text-sm font-medium"},{default:x(()=>[a(s(N),{class:"h-3.5 w-3.5 text-muted-foreground"}),e[18]||(e[18]=d(" API Key ",-1))]),_:1}),t("div",de,[a(s(v),{id:"apiKey",modelValue:m.value,"onUpdate:modelValue":e[1]||(e[1]=i=>m.value=i),type:u.value?"text":"password",placeholder:"请输入您的 API Key",class:"pr-10 h-10",disabled:l.value,autocomplete:"off"},null,8,["modelValue","type","disabled"]),t("button",{type:"button",class:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors",onClick:e[2]||(e[2]=i=>u.value=!u.value),disabled:l.value},[u.value?(o(),n(s(M),{key:1,class:"h-4 w-4"})):(o(),n(s(W),{key:0,class:"h-4 w-4"}))],8,ne)])]),t("div",re,[a(s(h),{for:"keyName",class:"text-sm font-medium"},{default:x(()=>[...e[19]||(e[19]=[d("自定义名称(选填)",-1)])]),_:1}),a(s(v),{id:"keyName",modelValue:p.value,"onUpdate:modelValue":e[3]||(e[3]=i=>p.value=i),placeholder:"例如:我的 Claude Key",class:"h-10",disabled:l.value},null,8,["modelValue","disabled"])]),a(s(g),{type:"submit",class:"w-full h-11 gap-2",disabled:l.value||!y.value},{default:x(()=>[l.value?(o(),n(s($),{key:0,class:"h-4 w-4 animate-spin"})):(o(),w(I,{key:1},[e[20]||(e[20]=d(" 开始使用 ",-1)),a(s(B),{class:"h-4 w-4"})],64))]),_:1},8,["disabled"])],32),t("div",me,[t("div",ue,[a(s(_),{class:"h-3.5 w-3.5"}),e[21]||(e[21]=t("span",null,"您的 API Key 仅存储在本地浏览器中",-1))])])])])]))}}),_e=R(fe,[["__scopeId","data-v-699caeec"]]);export{_e as default};
|
|
@@ -13,4 +13,4 @@ import{c as D,aF as G,ay as H}from"./index-Da98HOxL.js";import{r as c,d as o}fro
|
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const ne=D("PinIcon",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]),b="
|
|
16
|
+
*/const ne=D("PinIcon",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]),b="yunyi_user_announcement_state",f=2,K=20;let z=!1;function h(){return{version:f,readIds:[],tracked:{},snoozedUntilDate:null}}function q(e){return"content_html"in e}function O(e){return{id:e.id,title:e.title,intro:e.intro||"",isPinned:e.isPinned===!0,publishedAt:e.publishedAt||"",updatedAt:e.updatedAt||e.publishedAt||""}}function _(e){return"publishedAt"in e?O(e):{id:e.id,title:e.title,intro:e.intro||"",isPinned:e.is_pinned===!0,publishedAt:e.published_at,updatedAt:(q(e),e.updated_at)}}function Q(e,n){if(e.isPinned!==n.isPinned)return e.isPinned?-1:1;const a=new Date(n.publishedAt).getTime()-new Date(e.publishedAt).getTime();if(a!==0)return a;const r=new Date(n.updatedAt).getTime()-new Date(e.updatedAt).getTime();return r!==0?r:n.id.localeCompare(e.id)}function M(e){return[...e].sort(Q)}function U(){const e=new Date,n=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return`${n}-${a}-${r}`}function W(e){if(!e||typeof e!="object")return h();const n=e;if(n.version!==1&&n.version!==f)return h();const a=Object.fromEntries(Object.entries(n.tracked||{}).flatMap(([r,s])=>!s||!s.title?[]:[[r,O({...s,id:r})]]));return{version:f,readIds:Array.from(new Set((n.readIds||[]).filter(Boolean))),tracked:a,snoozedUntilDate:n.snoozedUntilDate||null}}const ae=G("announcement",()=>{const e=c(!1),n=c([]),a=c({}),r=c([]),s=c(null),v=c("");function y(){try{localStorage.setItem(b,JSON.stringify({version:f,readIds:n.value,tracked:a.value,snoozedUntilDate:s.value}))}catch{}}function m(t){n.value=t.readIds,a.value=t.tracked,s.value=t.snoozedUntilDate}function T(){try{const t=localStorage.getItem(b);if(!t){m(h());return}m(W(JSON.parse(t)))}catch{m(h())}}function C(t){t.key===b&&T()}function L(){z||(window.addEventListener("storage",C),z=!0)}function l(){e.value||(T(),L(),e.value=!0)}function A(t){if(t.length===0)return;const u={...a.value};let p=!1;t.forEach(Y=>{const i=_(Y),d=u[i.id];(!d||d.title!==i.title||d.intro!==i.intro||d.isPinned!==i.isPinned||d.publishedAt!==i.publishedAt||d.updatedAt!==i.updatedAt)&&(u[i.id]=i,p=!0)}),p&&(a.value=u,y())}async function R(){l();try{const t=await H.getList({limit:K}),u=M(t.items.map(p=>_(p)));return r.value=u,A(u),u}catch{return r.value}}function j(t,u){l(),t&&(u&&A([u]),!n.value.includes(t)&&(n.value=[...n.value,t],y()))}function x(t=I.value){v.value=t}function F(t=U()){l(),s.value=t,v.value=I.value,y()}function V(t){return k.value.has(t)}const k=o(()=>new Set(n.value)),E=o(()=>M(Object.values(a.value))),g=o(()=>E.value.filter(t=>!k.value.has(t.id))),S=o(()=>M(r.value.filter(t=>!k.value.has(t.id)))),N=o(()=>S.value.slice(0,5)),$=o(()=>g.value[0]||null),P=o(()=>g.value.length),B=o(()=>P.value>0),w=o(()=>s.value===U()),I=o(()=>S.value.map(t=>t.id).join("|")),J=o(()=>N.value.length===0||w.value?!1:v.value!==I.value);return{hydrated:e,recentItems:r,snoozedUntilDate:s,trackedItems:E,knownUnreadItems:g,recentUnreadItems:S,popupItems:N,latestUnreadItem:$,unreadCount:P,hasUnread:B,isSnoozedToday:w,shouldShowPopup:J,hydrate:l,refreshRecent:R,trackAnnouncements:A,markAsRead:j,dismissPopupOnce:x,dismissPopupForToday:F,isAnnouncementRead:V}});export{ee as C,te as M,ne as P,ae as u};
|